**** BEGIN LOGGING AT Tue Feb 12 03:00:07 2008 Feb 12 07:03:49 is there a built in way to add a separator into a listview? Feb 12 08:12:30 mornin Feb 12 13:14:27 ciao Feb 12 14:33:57 is there a list of all possible actions? Feb 12 14:46:15 i think the list of actions are available in Intents Feb 12 14:48:08 must agree the documentation is pretty limited on the list of actions and the list of contents Feb 12 14:48:57 There is a list on the Intent page Feb 12 14:49:17 of static vars used for actions and a *short* description Feb 12 14:49:55 yes.. but is that the complete list? Feb 12 14:50:09 well, you can use any string for an action Feb 12 14:50:42 you're not limited to those listed Feb 12 14:52:27 correct Feb 12 14:52:41 but for predefined intents we need to know Feb 12 14:53:17 zhobbs: are you done for the challenge? Feb 12 14:53:22 I don't even know if there is anything on the other side of lots of those intents Feb 12 14:53:34 sushmu: supposed to have it done next week Feb 12 14:53:40 great Feb 12 14:53:53 i invite you to join openintents Feb 12 14:53:54 yeah, then moving on to the next one Feb 12 14:54:07 yeah, I've meen monitoring openintents Feb 12 14:54:15 please join Feb 12 14:54:45 i think there's good potential Feb 12 14:55:12 so the idea is, if I create an app that provides some type of service I can submit specs on how to form an intent to utilize the service? Feb 12 14:55:40 yeah.. sort of Feb 12 14:56:05 the base objective is to make reusable intents available open and free Feb 12 14:56:41 a free android development stack, if you will Feb 12 14:56:50 yeah, it's a cool idea Feb 12 14:57:09 it can be the apache for android Feb 12 14:57:15 atleast that's what i think Feb 12 14:57:58 bye zhobbs.. time to go home Feb 12 14:58:11 sushmu: cya later Feb 12 16:53:41 re Feb 12 17:25:23 yawn Feb 12 17:47:24 re Feb 12 17:58:16 yawn Feb 12 17:58:19 i could do this all day :) Feb 12 17:58:50 me too :) Feb 12 17:59:10 i'm about to go into a meeting that is going to suck the fun right out of my whole day Feb 12 18:00:03 i have to tuck my tail and admit i overcommitted on a big project and we either need to scrap the project, or nearly double our initial deadline. Feb 12 18:00:17 management is going to flip ;) Feb 12 18:00:45 that's why you should always at least double your time estimates :) Feb 12 18:01:04 and then double it again if you can get away with it Feb 12 18:01:19 then deliver faster than they're expecting Feb 12 18:01:21 and you're a hero! Feb 12 18:03:46 yeah, i know the mantra Feb 12 18:03:47 i thought i was doing that ;) Feb 12 18:04:06 i was just not even in the right ballpark with my original idea of how much work was involved. Feb 12 18:04:39 really the problem is that i'm not the right person for this job. i'm a software engineer, and this project walked the designer line too much :) Feb 12 18:04:59 but hey, good news, i just found out the meeting was rescheduled to next Friday hehe Feb 12 21:00:34 I accidently deleted my android project :) Feb 12 21:01:06 oops...sfiga:-) Feb 12 21:05:10 eheh but I found a way to recover them maybe :) Feb 12 21:08:25 back up your files regularly? Feb 12 21:08:28 you don't use version control? Feb 12 21:08:58 i use version control even when i'm the only person working on a project, and only from one computer. Feb 12 21:09:05 it's just so nice having all that delicious meta data. Feb 12 21:09:16 yeah, me too Feb 12 21:09:29 that's even better than backups in any case because it's far more fine-grained Feb 12 21:11:17 mike1o: you recover it? Feb 12 21:12:07 jasta, I should start using mercurial Feb 12 21:12:49 in #debian they suggested to "string /dev/hda2 > temp" Feb 12 21:14:08 zhobbs, so now I have a 4GB file with all the strings I produced in the last months :) including my java sources Feb 12 21:14:47 doh, guess it's better than nothing Feb 12 21:16:29 mike1o, or git or subversion or whatever - just pick one and use it, instead of getting involved in the silly flame wars over which one is best Feb 12 21:16:54 and put it on a remote server Feb 12 21:17:11 if possible Feb 12 21:17:30 davidw, after I recover from this Ill definitely take all precautions :) Feb 12 21:17:34 my remote server is sitting next to my computer, which doesn't work if there is a fire Feb 12 21:18:32 yeah, something remote is good Feb 12 21:18:40 ill put stuff on the remote server too Feb 12 21:18:56 like get two external drives, and leave one with a friend/family member /at work every few weeks and swap them out Feb 12 21:19:34 I have a colocated box I use for hosting stuff...just too lazy to work up a rsync script of some type Feb 12 21:26:41 romainguy_ or romainguy: how do I define a selector for an ImageButton or Button? Feb 12 21:26:55 (in xml) Feb 12 21:27:46 id rather upload stuff via ssh Feb 12 21:27:52 to a remote server Feb 12 21:33:22 zhobbs: my remote server is in the living room, but the best part is that i frequently work on stuff after hours at work. so at any given time i at least have a recent subversion checkout offsite. Feb 12 21:33:49 but really thats the best advantage of open source projects. so many great online hosting options. Feb 12 21:34:12 i usually just use my local repositories until the project gets big enough to warrant somethign online Feb 12 21:38:02 wonder if my renters insurance would pay anything for my burned down code :) Feb 12 21:38:24 it's worth $25,000 in may at least! Feb 12 21:38:29 extremely doubtful. Feb 12 21:38:40 they'd know your code sucks ;) Feb 12 21:38:41 * jasta runs Feb 12 21:38:45 hehe Feb 12 21:39:53 zhobbs: wrt selector for imagebutton - if you have the selector xml, just set the background drawable to point to it. Feb 12 21:40:09 (that took me about a day or so to figure out :-/) Feb 12 21:40:58 anyone know where i can find specs on the 9patch format? Feb 12 21:41:04 well Feb 12 21:41:06 not the format Feb 12 21:41:14 but the documentation seems to be lacking for the NinePatch class Feb 12 21:41:18 i'm not too sure what to pass into chunk Feb 12 21:41:49 skicson: nice, thanks...I tried lot's of different made up attributes Feb 12 21:43:20 for a ListView it's listSelector, so I was tring buttonSelector, selector, et Feb 12 21:43:22 etc Feb 12 21:46:09 jerkface: i don't know about doing it programmatically, but you can draw your own ninepatch. it's very unforgiving tho Feb 12 21:46:12 just decompile the view :) Feb 12 21:46:34 skicson: define unforgiving? Feb 12 21:46:46 jasta: yes that's also an option ;) Feb 12 21:46:47 zhobbs: the same way you did before Feb 12 21:46:53 zhobbs: just set is as the background drawable Feb 12 21:47:49 jerkface: i found that if I had a gradient underneath, and then tried to draw the guidelines on top of the gradient it would not work. understandable i guess, it just took me a little while to realize what was going on Feb 12 21:49:41 it actually barfed in eclipse and kept the project from compiling too. Feb 12 21:54:23 .. Feb 12 21:55:10 [seko@localhost ~] $ Feb 12 21:56:01 yup. Feb 12 22:07:47 what are the default properties of a new paint object, does anyone know? Feb 12 22:19:47 jerkface03: I bet 0 for the flags Feb 12 22:20:26 any news about the new sdk? Feb 12 22:20:55 stifffff: nope Feb 12 23:30:21 any of you guys ever use google's AuthSub? Feb 12 23:47:13 davidw, what the hell is it? :) Feb 12 23:47:29 it's some kind of authentication system Feb 12 23:49:19 ok I don't think I've used it before then Feb 12 23:56:08 some video of ui: http://youtube.com/watch?v=Drxj-uL1UaY Feb 12 23:56:10 YouTube - Google Android chez Wind River Feb 12 23:56:24 shows an activity selection screen when user selected a video Feb 12 23:56:46 actually, does the current sdk have that? Feb 12 23:58:53 so, any videos of android prototype handsets from the 3G conference in spain? Feb 12 23:59:32 http://www.anddev.org/viewtopic.php?p=3542#3542 Feb 13 00:00:41 zhobbs: thx Feb 13 00:05:53 i dont really like the new android UI. i was hoping they'd evolve the home screen a LOT more. Feb 13 00:06:34 i like the home screen to have information just as much as program launchers. Feb 13 00:06:35 have the widget styles changed at all? I haven't seen any standard dialogs, progress bars, etc Feb 13 00:06:41 me neither Feb 13 00:07:01 jasta: luckily you can replace the homescreen activity Feb 13 00:07:07 yes, thank god :) Feb 13 00:08:10 jasta: what kind of information? Feb 13 00:08:26 well, i really like facade for WM, for example. Feb 13 00:09:01 it has problems, and is overly cluttered, but i can see an obvious path to improve things with much greater real estate. Feb 13 00:09:35 jasta: what kind of information does it show? Feb 13 00:09:38 having your schedule right there, easily accessible information like weather, news feed headlines, tasks, etc. Feb 13 00:09:45 ah Feb 13 00:09:46 I see Feb 13 00:09:50 I hate that kind of home screen :) Feb 13 00:10:03 why? Feb 13 00:10:06 that's like iGoogle Feb 13 00:10:17 too much going on Feb 13 00:10:18 that's why customization is great...no solution works for everyone Feb 13 00:10:24 jasta: because it usually shows way too much stuff Feb 13 00:10:32 romainguy: well that's exactly what i just said. Feb 13 00:10:44 facade is too cluttered, but the premise is not bad. they just didn't strike a balance. Feb 13 00:10:55 jasta: but I also don't want to customize my software ^^ Feb 13 00:11:02 having just a short recap of your schedule is the most important, i feel. Feb 13 00:11:09 rwhitby : http://www.pointgphone.com/mwc-2008-e28-android-phone-video-493 Feb 13 00:11:15 use a schedule app? Feb 13 00:11:21 well a summary like Symbian has right Feb 13 00:11:27 shows upcoming todos/meetings/X for this day Feb 13 00:11:28 romainguy: i didn't say it was a function of customization. facade packs too much information, but again, the idea is sound. Feb 13 00:11:30 on home screen if you desire Feb 13 00:11:56 f00f-: Yes, like that. It is also nice since these interfaces serve as program launchers in themselves. Feb 13 00:12:04 you can click on the calendar widget, or a specific item, for example Feb 13 00:12:41 it also makes the experience seem more cohesive. i hate the standard Windows Mobile UI because it just doesn't do anything useful. Feb 13 00:12:50 yea, placing arbitrary widgets on the home screen like MiniActivities might be intriguing Feb 13 00:13:34 i can understand the argument for smaller form factor devices Feb 13 00:13:47 but for the HVGA-P skin, that is just a waste. Feb 13 00:14:12 i mean, you might as well at least scale the size of the buttons so that it covers the maximum real estate so that fat fingered people can still use it. Feb 13 00:15:43 it's all about the market Feb 13 00:16:24 i doubt that Google is thinking so narrowly. Feb 13 00:16:48 the current market has a lot of low hanging fruit. it makes sense to take it. Feb 13 00:17:22 that said, the current market for these devices is largely business users; sales types, etc. they all have fat fingers :) Feb 13 00:18:11 google's not making the phones, OHA hw guys are Feb 13 00:18:29 it's like the s60 concept but on larger scale Feb 13 00:18:35 Sure, but what have we all learned from Windows Mobile? Feb 13 00:19:15 OEMs dont innovate far beyon the stock Windows Mobile experience, despite users largely screaming that it sucks and should be improved. Feb 13 00:19:43 you're talking about software innovation, true Feb 13 00:19:47 The calendar app is primitive and bad, there is no usable alarm application standard on the platform, etc. Feb 13 00:19:58 but they're OEMs, they dont have to modify the sw that runs on them Feb 13 00:20:05 Google should not fall into that same boat, assuming that innovation happens after what they ship. Feb 13 00:20:37 well all of the builtin android apps (i see today) are useless with regard to UI Feb 13 00:20:41 They need to provide something that is complete, and can be recommended for installation on a handset "as-is", and it should try to capture as much of the untapped market as possible. Feb 13 00:20:49 they don't feel inviting imho Feb 13 00:20:56 That means it has to be flexible to different form factors and accessible to more people. Feb 13 00:21:10 yeah, a qwerty phone is a business phone Feb 13 00:21:20 without business apps bundled with it, it's useless Feb 13 00:21:25 but those apps can be bundled by the OEMs Feb 13 00:21:32 You aren't listening to me. Feb 13 00:21:45 The reality of OEMs modifying the product or adding value to it is very low. Feb 13 00:21:50 exactly! Feb 13 00:21:55 The probability, I mean. Feb 13 00:22:36 What do you mean exactly? You seem to be arguing the opposite point. Feb 13 00:23:12 OEMs are not going to modify software, they're going to do hardware innovation Feb 13 00:23:21 they'll take the best OS implementation for the intended device Feb 13 00:23:51 That's hardly the point. Android is trying to build a platform that can potentially go anywhere. Feb 13 00:24:16 Google is, rather :) Feb 13 00:24:19 a platform, but not a turnkey bundled OS package Feb 13 00:24:46 but i guess we have to wait a few months before we can see what they're really trying to do Feb 13 00:24:56 Perhaps not, but if that's the case, this initiative will fail in the current market. Feb 13 00:25:14 The current market is too lazy to see value in something that's only part of what they need. Feb 13 00:25:27 Perhaps that's where the open source community can come in and kick ass. Feb 13 00:27:16 they're probably banking on it, even Feb 13 00:27:44 Well, I can't fault them for that. The open source community has traditionally been very good at that. Feb 13 00:28:14 That is, slacking off all the politics of 3rd party vendors and just getting their hands dirty. Feb 13 00:36:39 how can I get the height of an item in a ListView? Feb 13 00:39:18 zhobbs: getListView().getChildAt(...).getHeight() Feb 13 00:41:52 how can i make a TextView (inside a scrollview i guess) span to the bottom to fit the text Feb 13 00:41:58 i dont want to specify the layout_height Feb 13 00:42:10 since i wont know it until i get the text Feb 13 00:44:32 thanks romainguy Feb 13 00:45:46 f00f-: android:layout_height="wrap_content" ? Feb 13 00:47:18 zhobbs: thanks let me try it Feb 13 00:47:25 i've always done my layouts in code Feb 13 00:47:31 but i figure i should migrate to XML layouting Feb 13 00:47:45 You should avoid writing your GUIs with code Feb 13 00:48:06 yea, but somethings are done easier in code (android) than in XML Feb 13 00:48:11 the APIs are so warm and fuzzy :) Feb 13 00:48:30 Like what? Feb 13 00:49:06 custom views for example Feb 13 00:50:27 I'm having a hard time working with RelativeLayouts and code Feb 13 00:51:20 RelativeLayout in code feels hackish: rl.leftMargin = 35; Feb 13 00:51:43 i'm probably doing it the wrong way Feb 13 00:51:55 can i say left of widgetX by 5px ? Feb 13 00:52:33 yeah Feb 13 00:53:00 you have to setup a RelativeLayout.LayoutParams Feb 13 00:53:26 using addRule( LEFT_OF (or something), view ID) Feb 13 00:53:39 then add padding on the right Feb 13 00:53:45 ah great, thanks! Feb 13 00:53:48 but I can't get that to work very well Feb 13 00:53:53 zhobbs: or better yet, use margins Feb 13 00:55:16 I was trying to setup a rule for toRight but couldn't get it to work Feb 13 00:56:10 romainguy: are XML layouts compiled to code or is placement done during run-time? Feb 13 00:56:41 how is that different? Feb 13 00:56:46 but XML layouts are not compiled to code Feb 13 00:57:10 would you say XML layouts are slightly slower to display then? Feb 13 00:57:31 No, because I never measured the difference Feb 13 00:57:36 but I highly doubt it's noticeable Feb 13 00:57:49 And given all the extra features brought by the XML layout, I would not even think of not using them Feb 13 00:58:05 (support for screen resolutions, orientations, touch screen, non-touch screens, locale, etc.) Feb 13 00:59:25 one xml layout per screen resolution? Feb 13 00:59:34 if you want Feb 13 00:59:36 romainguy: the getListView().getChildAt(...) gives NPE until after ListView is drawn...how can I know when the view is drawn? Feb 13 00:59:36 but you don't have to Feb 13 00:59:53 ideally, you have one XML layout that works everywhere -- don't know if it handles this? Feb 13 01:00:02 zhobbs: it will give you an NPE until the ListView is first laid out Feb 13 01:00:22 zhobbs: so at drawing time, after the first layout, you should have the information Feb 13 01:00:31 you can just add an if (getChildCount() > 0) Feb 13 01:01:02 f00f-: it can certainly do that but you might definitely want to tweak your layout based on the device capabilities Feb 13 01:02:14 romainguy: one .apk supports all devices. different XML layouts for different resolutions/capabs. ok Feb 13 01:02:23 that is a goal i mean Feb 13 01:02:30 hmmm...so I need to make a custom listview that will alert me after onlayout...or maybe just have handlers keep trying until it works... Feb 13 01:03:01 zhobbs: not necessarily Feb 13 01:03:16 zhobbs: if you do a requestLayout() then post a Runnable that queries an item's height... Feb 13 01:03:31 another way would be to manually ask the adapter for a view and call measure() on it Feb 13 01:03:45 you could also use a hierarchy change listener to know when the first views are added to the listview Feb 13 01:04:43 Ahhh..I'll try OnHierarchyChangeListener...missed that Feb 13 01:07:45 zhobbs: but don't be surprised when you scroll a ListView, you'll get many hierarchy change events Feb 13 01:08:37 ok, thats fine Feb 13 01:08:59 this list is static with 3 items...I wish I could tell it "never scroll" Feb 13 01:09:51 how so? Feb 13 01:11:11 well, the view is always big enough to display all items, so I'd rather have it locked down Feb 13 01:11:28 well then it will not scroll Feb 13 01:12:43 well you can drag and scroll and if you setSelection(2) it will scroll (I know you said that will be fixed, so first might be fixed also) Feb 13 01:13:00 I said several times that both theses issues are fixed in the next SDK Feb 13 01:13:25 ok cool Feb 13 01:18:50 use the force, use the source Feb 13 01:18:52 or how did it go. Feb 13 01:18:59 *read Feb 13 01:28:45 whoa sweet Feb 13 01:30:05 i got the ActivityManager stoned Feb 13 01:33:17 jasta: what you mean? Feb 13 01:39:02 http://code.google.com/p/android/issues/detail?id=239 Feb 13 01:57:30 man, the android XML parser fucking sucks. Feb 13 01:57:37 it craps out on all sorts of junk. Feb 13 01:58:00 writer better xml :p Feb 13 01:58:04 lol Feb 13 01:58:19 i need to writer better england Feb 13 02:02:00 duey: it croaks on valid XML. for example, any entity reference (", &, etc) Feb 13 02:02:08 but also croaks on CDATA. Feb 13 02:02:11 cant seem to send XML over the XMPP data messaging even when it's escaped Feb 13 02:02:18 so your hands are tied. you can't transmit, for example, an ampersand. Feb 13 02:02:38 maybe it needs some entity definitions Feb 13 02:02:51 you using the pull parser? Feb 13 02:03:06 no, just the DOM stuff for now. Feb 13 02:03:28 ive had it work find on & Feb 13 02:03:54 i thought all XML parsers are required to support 3 entities: & < and > Feb 13 02:04:28 umdk1d3: What parser did you use? Feb 13 02:04:40 f00f-: They are, their implementation sucks. Feb 13 02:04:43 oh wait i handled it by using url-escaping %26 Feb 13 02:04:53 jasta: lemme look Feb 13 02:04:58 it handled both %26 and & Feb 13 02:05:25 umdk1d3: I have code proving the bug I encountered: http://code.google.com/p/android/issues/detail?id=225&q=reporter:jasta00&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary Feb 13 02:05:52 import org.xmlpull.v1.XmlPullParser; Feb 13 02:05:56 thats the one i used Feb 13 02:06:17 ahh, well, i'm not. Feb 13 02:06:27 XPP Feb 13 02:06:30 i love it Feb 13 02:07:04 perhaps i should switch, but it's hardly appropriate for what i'm doing. Feb 13 02:07:47 switch to what? Feb 13 02:08:24 using the pull parser, assuming that the bug doesn't exist there. Feb 13 02:28:49 I'm having an issue where the background on my main activity just turns to the grey/white tiles after it launches a dialog, and the dialog launches a fullscreen activity which closes back to the dialog Feb 13 02:29:14 if that makes any sense... Feb 13 02:29:17 maybe it's rebooting the app Feb 13 02:29:35 you mean like app-launch-tiles ? Feb 13 02:30:01 like the transparency tiles in gimp/photoshop Feb 13 02:30:54 i mean Feb 13 02:31:03 the tiles that appear when you launch your app in the emulator Feb 13 02:31:15 if you've ever seen them? Feb 13 02:31:22 yeah, like those Feb 13 02:31:32 it's probably supposed to do that so it doesn't have to redraw the activity that isn't focused Feb 13 02:44:53 zhobbs: when you see the checker board, there's a bug :) Feb 13 02:46:48 romainguy: ok, will report **** ENDING LOGGING AT Wed Feb 13 02:59:57 2008