**** BEGIN LOGGING AT Fri May 29 02:59:57 2009 May 29 04:23:59 how do I determine what manifest branches there are in the repository using repo? Or is this something I need to do with git? May 29 04:26:33 herriojr: can you be more specific? May 29 04:26:45 do you mean how to figure out what values you can provide for "repo init -b"? May 29 04:27:11 jasta: when doing repo init -u ... -b somebranch, I want to identify what I can put as the branch May 29 04:27:23 cd .repo/manifests May 29 04:27:25 git branch -r May 29 04:27:46 I'll check that out, thanks May 29 04:27:48 parse the values after the '/', any will work. May 29 04:36:48 so if I'm going a fix that I would like to see in 1.5 (maybe r3 if they'd do it), do I want to make the change in donut or master? May 29 04:37:19 *to make a fix May 29 04:37:47 or am I SOL and just need to work in donut and hope donut gets out sooner than planned May 29 04:39:24 herriojr, I would guess master, but don't quote me on that May 29 04:39:35 I'm not holding my breath for donut May 29 04:40:21 I talked to Romain Guy and he said it would be out before the end of the year, but that would probably be an unofficial quote May 29 04:40:49 Hey,do where do apps store data on the phone? May 29 04:40:51 he may only have told me that because I cornered him in person ;) May 29 04:40:55 herriojr: you cannot make a change in 1.5 :) May 29 04:41:01 unless it's for the tools/sdk May 29 04:41:08 damn, ok May 29 04:41:40 btw, I had more questions for you but ran out of time after the end of your talk May 29 04:41:44 ^^ May 29 04:42:04 dude, I talked for 2 days straight :p May 29 04:42:20 I guess you want me to leave you alone then :) May 29 04:42:32 well at least here I type May 29 04:42:41 romainguy, I asked you before and you didn't know at the time, but is google putting up videos of these talks or anything? May 29 04:42:46 they are May 29 04:42:48 we are :) May 29 04:42:50 excellent May 29 04:43:10 I'm seriously bummed that I didn't get my ass around to going May 29 04:43:13 next year, I guess May 29 04:43:14 I'm excited we showed Wave \o/ May 29 04:43:26 yeah, and we got the magic for showing up KNY May 29 04:43:33 herriojr, don't rub it in May 29 04:43:37 ;) May 29 04:44:04 romainguy, I don't know if you can answer this, but do google employees get the inside scoop on stuff way before it's announced, even if they're not on the team? May 29 04:44:23 yes May 29 04:44:34 it's incredible that there aren't more leaks May 29 04:44:47 that said Wave was secret internally for a long time May 29 04:44:49 kinda like Android May 29 04:45:00 how long was android like that? May 29 04:45:05 KNY: no, it's not -- google employees probably like their jobs. May 29 04:45:16 leaking internal information is an easy way to lose it :) May 29 04:45:31 jasta: the first android leaks happened right after we told Google employees :)) May 29 04:45:40 jasta, yeah, I know but you'd think that there would be more "a friend of a friend of a brother's roommate" type of rumors out there May 29 04:45:52 KNY: there are lots of rumors just like that. May 29 04:46:21 but because of that chain, it hardly seems credible and you don't think anything of it ;) May 29 04:46:33 btw May 29 04:46:34 until a year later when it comes true hehe May 29 04:46:38 haha May 29 04:46:41 I would love if web sites stopped calling Donut ANdroid.20 May 29 04:46:44 Android 2.0 May 29 04:46:51 we never said that in any session or during the keynote May 29 04:46:52 seriously :) May 29 04:46:55 romainguy, what's the branch number? May 29 04:46:59 is there one? May 29 04:47:03 nope May 29 04:47:07 donut's donut May 29 04:47:11 got it May 29 04:47:20 what was with the jump from 1.1 to 1.5? just marketing? May 29 04:47:31 it was significant enough to warrant that jump, i'd say. May 29 04:47:58 jasta, I'm not saying it wasn't, but it's also not very logical May 29 04:48:17 (and it makes sense that people assume that donut will be 2.0) May 29 04:48:24 how is that not logical? May 29 04:48:34 well, what happened to 1.2-1.4? May 29 04:48:58 meh May 29 04:49:00 who cares? May 29 04:49:03 haha, no I May 29 04:49:07 not I* May 29 04:49:10 KNY: maybe they were just internal versions ;) May 29 04:49:12 but that's my point about being illogical May 29 04:49:24 illogical would be releasing 1.1 then 0.8 May 29 04:49:29 KNY: i wouldnt say its illogical, just not a strict enumerating pattern. May 29 04:49:42 jasta, I'll agree with that May 29 04:49:58 of course, would 1.1 -> 987987.6 make sense? May 29 04:50:05 sure May 29 04:50:12 look at J2SE 1.4 -> 5.0 :) May 29 04:50:21 or DirectX 3 -> 6 :p May 29 04:50:24 romainguy, that's 1.5, just called java 5 May 29 04:50:30 no May 29 04:50:36 I know virtually nothing about directx May 29 04:50:39 the full name was J2SE 5.0 version 1.5 :)) May 29 04:50:49 haha, now *that* is backwards May 29 04:50:52 and then it's Java SE 6 version 1.6 May 29 04:50:55 but it was J2SE 1.4 May 29 04:50:58 yeah May 29 04:51:23 well hell, I just worked for a company on a product that is now ProductName6 version 7, so who am I to talk? May 29 04:51:29 romainguy: i parse that as renaming the product itself 3 times, and releasing just 1 version of each :) May 29 04:51:44 jasta: or "wtf marketing??" May 29 04:51:52 romainguy: So no cupcake :( May 29 04:52:02 Cupcake is 1.5 :p May 29 04:52:02 no cupcake? May 29 04:52:09 haha May 29 04:52:41 I know May 29 04:52:43 romainguy, I think I'm as annoyed about "cupcake" becoming the mainstream term for 1.5 as you are about "2.0" being donut May 29 04:52:44 haha May 29 04:52:47 I haven't gotten it on my phone yet :( May 29 04:53:04 * svm_invictvs publishes his app tonight. May 29 04:53:06 svm_invictvs, the URL was found last week; couldn't you just flash it? May 29 04:53:19 KNY: I wanna keep my phone retail. May 29 04:53:26 svm_invictvs, it would be retail May 29 04:53:39 since it's signed with their keys, wouldn't you be able to flash it without downgrading>? May 29 04:53:47 just drop it on your SD card and install, right? May 29 04:53:57 maybe I'm way off target here, but I thought that's how it worked May 29 05:16:42 so, when I build android, and try to run the newly built "android list avd", it fails saying I need a platforms directory....what do I need to do to have a valid platforms directory? May 29 05:17:11 did you build the SDK? May 29 05:17:16 if not, then you don't use avds May 29 05:18:06 I downloaded the source, built it using "make", and I'm trying to figure out how to get my newly built system on an emulator May 29 05:18:15 type emulator May 29 05:19:02 emulator: ERROR: You did not specify a virtual device name, and the system directory could not be found May 29 05:19:36 that's why I was checking the list of avd's May 29 05:19:42 before I tried to build one May 29 05:19:48 to verify it was working May 29 05:20:02 did you do lunch/choosecombo first? May 29 05:20:10 note: we never use avd when we build from the tree May 29 05:20:10 no idea what that is May 29 05:20:23 did you do a source build/envsetup.sh? May 29 05:20:45 how about this, I can't find a link for this stuff, do you happen to have one (and yes I google searched it ;) ) May 29 05:21:01 I have a tendency to use the wrong keywords when searching May 29 05:21:19 hey May 29 05:21:28 the commit we did during our session finally showed up in gitweb May 29 05:21:30 stupid gitweb May 29 05:21:34 lol May 29 05:24:20 jsharkey got a kick out of the presentation, I heard him talking in the back ;) May 29 05:25:27 that's because he's in love with git and The GIMP :) May 29 05:25:51 nah, he said he wanted to hijack a presentation :P May 29 05:28:22 sad May 29 05:28:23 arf i downloaded some ebook to evaluate a book a wanted to buy, good thing i didnt buy it May 29 05:28:27 all those Google ION phones on eBay May 29 05:28:33 thsi guy uses ThisNamingConvention for variables in java May 29 05:29:48 was I seriously the only one to raise my hand for the "StackOverflowException"? May 29 05:30:48 deebo: But that's the standard naming convention for things in Java. May 29 05:31:02 umm for classes yes, not for variables May 29 05:31:08 int MyInteger = 0; May 29 05:31:51 herriojr: there was another one May 29 05:32:57 deebo: Oh I see, that is strange. May 29 05:33:14 I do have to say that my question I (tried to) ask after was related...ActivityGroups add quite a bit of depth with the contributed DecorViews ;) May 29 05:33:28 I hate talking in front of groups, I don't know how you do it May 29 05:34:45 I answered your question about activitygroups :p May 29 05:35:03 (and I actually do like to talk at conferences, I think it's fun) May 29 05:35:50 yes, you answered it without me getting to fully put it into question form :) May 29 05:36:16 more fun that way :p May 29 05:37:06 ok, now I know how to test my changes to Android, so I'm going to start testing things May 29 05:38:20 herriojr, the bigger the crowd, the easier it tends to be (up to a certain point, of course) May 29 05:39:03 KNY: the biggest I've done was 10,000 May 29 05:39:13 I had a hard time asking my question in front of that crowd :) May 29 05:39:14 it was also the easiest because I couldn't see past the first few rows :p May 29 05:39:15 bragbragbrag :) May 29 05:39:20 exactly May 29 05:42:29 ok, now that I (partially) know what I'm doing, I'm going to hit the sack May 29 05:42:30 goodnight May 29 06:01:08 romainguy: hmm, im running into a weird situation i cant figure out... May 29 06:01:11 you got a second? May 29 06:03:02 i tried splitting a few activities in my app into their own process (with android:process=":foo") and now suddenly some calls to getContentResolver().openInputStream(Uri) are yielding odd results May 29 06:03:13 basically, they retrun an empty stream May 29 06:03:35 not an error (or null), just an InputStream which has no data in it. read immediately yields eof May 29 06:04:11 sounds like an IPC issue May 29 06:04:28 I never tried to open a stream across processes May 29 06:04:38 I only used filedescriptors May 29 06:04:56 well whats weirder still is im stepping through the debugger... May 29 06:05:48 it looks like it's doing asset stuff that makes absolutely no sense to me? May 29 06:06:07 openAssetFileDescriptor gets called? May 29 06:06:32 none of this code reads quite right to me May 29 06:06:42 hey romainguy, I don't know if you are associated with the icon design guidelines that were posted (you're UI, so maybe...) but android.R.drawable.ic_menu_{forward,back} aren't in the _r2 SDK May 29 06:06:58 hmm, i need to spent some more time looking at this i guess May 29 06:07:00 im so confused May 29 06:07:05 KNY: I'm not, but good to know, can you file a bug? May 29 06:07:09 if you don't care, I'll just write up a b--sure :) May 29 06:07:13 :)) May 29 06:07:15 I do care May 29 06:07:17 but I'll forget :p May 29 06:07:23 haha, no worries May 29 06:07:28 give me the bug number, I'll send it to the UX guys May 29 06:09:52 romainguy, #2795 May 29 06:09:56 thanks May 29 06:10:00 no problem May 29 06:10:36 forwarded May 29 06:12:13 oh wait, i think i see whats going on here. weird.... May 29 06:12:25 eh May 29 06:12:30 I met someone from T-Mobile btw at I/O May 29 06:12:33 Yusuf I think May 29 06:16:26 heh, turns out they're actually missing 12 of the posted menu drawables (bug report updated) May 29 06:16:44 romainguy, I'm surprised you haven't met more people from t-mobile May 29 06:17:37 Ive been looking through the reference for the Spinner, but I cant seem to figure out how to get the selected value from a spinner.. May 29 06:18:03 getSelectedItem() May 29 06:18:30 yeah.. I tried.. hold on May 29 06:18:51 I want that value as a string, but it doesnt seem like getSelectedItem().toString works? May 29 06:19:06 it should work May 29 06:19:30 ah.. May 29 06:19:38 was missing a "()" May 29 06:19:39 thanks May 29 06:19:53 that would not even compile :p May 29 06:20:21 hrm May 29 06:24:30 argh, who came up with this stupid buggy autocomplete search box on developer.android.com? May 29 06:26:19 is it possible to determine whether a given Preference has been set yet? For example, I'd like to highlight settings that the user hasn't filled in yet May 29 06:50:18 Can I use any other fonts on a TextView than Monospace, "Normal", Sans or Serif? May 29 06:51:02 RangerCat, I believe you can bundle TTF fonts into your assets folder, but I could be wrong May 29 06:51:35 Ah, I see May 29 06:51:39 no biggie May 29 06:52:16 RangerCat, look through the ApiDemos app--I believe they mention it in there May 29 06:52:50 Ok.. I may have missed it May 29 06:54:07 RangerCat, I'm just going from memory so don't quote me :) May 29 06:55:14 RangerCat, seems like you put them in assets/fonts/ May 29 06:55:38 Thanks! I will double check it May 29 06:55:43 but at least I know what to look for May 29 06:56:14 second question though.. :) It doesnt seem like underline is possible (TextView font styles) May 29 06:56:18 ?* May 29 06:57:12 whats the http url of an application in the marketplace? May 29 06:57:13 Its just "normal", "bold", "italic" and "bold|italic" May 29 06:57:37 RangerCat, hmm, links are underlined so it must be possible May 29 06:58:37 I think I can define a string like this: test text May 29 06:58:42 just a thought.. will try it now May 29 06:59:56 lol.. didnt work :P May 29 07:00:02 you can do it with May 29 07:00:05 hmm May 29 07:00:32 not that important either though.. May 29 07:00:34 hehe May 29 07:03:04 RangerCat, you can use May 29 07:03:21 I have it in a TV with autoLink="web" and it works May 29 07:05:57 yeah, it worked when running the app, but just didnt see it in eclipse May 29 07:05:59 for some reason May 29 07:06:00 thanks ;) May 29 07:07:05 no problem May 29 07:07:12 WYSIWYG editors will be the death of you :) May 29 07:15:26 lol, yeah May 29 07:16:04 Man, developing for Android is so much fun May 29 07:16:05 ^^ May 29 07:16:14 love xml layouts ^^ May 29 07:16:31 yeah, they're definitely sweet May 29 07:17:34 trying to decide if I should go for Theme.light (white) or the default black theme... May 29 07:17:34 hmm May 29 07:18:15 the light theme isn't finished, IIRC May 29 07:18:25 how so? May 29 07:18:54 I do find eclipse a bit unstable though.. May 29 07:19:24 RangerCat, that's just what I've heard; I've never actually used the light theme May 29 07:19:49 RangerCat, eclipse is pretty stable, but the ADT plugin could use a little work May 29 07:20:03 but I've found that as long as I stay away from the WYSIWYG editors, I'm fine May 29 07:20:24 you dont get any outofmemory errors in eclipse? May 29 07:20:26 I'm also running x86_64 which messes with the SDK/plugin a bit May 29 07:20:29 no May 29 07:20:34 how much RAM do you have? May 29 07:20:42 4GB DDR3 May 29 07:20:55 how much is allocated for eclipse? May 29 07:21:05 you might need to increase your heap size May 29 07:21:15 hmm, I do that in Eclipse I presume? May 29 07:23:13 RangerCat, you do it when you start up eclipse May 29 07:23:20 KNY, I'm also running x86_64, what glitches are you aware of as far as the ADT plugin goes? May 29 07:23:41 TigerTael, if I use the layout editor, xorg starts to leak memory like a sieve May 29 07:24:00 I've had it use over 3GB of RAM before, even after killing all of java May 29 07:25:06 and by "use the layout editor" I mean "even if it accidentally opens for a split second" May 29 07:25:47 Aah. May 29 07:26:23 sometimes my debugger randomly disconnects as I'm debugging, too (which is incredibly annoying) May 29 07:38:18 is there a way to change the orientation in the emulator? (instead of having to have to seperate AVDs?) May 29 07:38:38 turn off numlock and hit numpad 7 May 29 07:39:25 Im on a laptop ^^ May 29 07:40:15 then use your "Fn" key that is on almost every laptop May 29 07:40:42 I hit Ctrl-F11 May 29 07:40:52 Easier than turning Fn on and off. May 29 07:40:57 ah May 29 07:41:16 It toggles orientations, but you have to fully release ctrl and then press ctrl again to toggle it. May 29 07:41:22 You can't simply hold control and hit F11. May 29 07:42:28 Although, depends on your preference really. May 29 07:43:17 hehe May 29 07:43:19 well, thanks May 29 07:43:35 I can just as easily hit Fn+7. May 29 07:43:48 Except with Fn+7 I don't have to fully felease Fn. May 29 08:25:54 Quick java question.. If I want to keep a double value to only two decimals.. May 29 08:26:06 as in, I dont want to get values such as 15,33333333 May 29 08:26:09 but just want 15,33.. May 29 08:27:54 Can I use Currency.format? May 29 08:28:42 String.format should do the trick too, with "%0.2f" May 29 08:28:53 ah ok May 29 08:28:54 thanks May 29 08:44:49 ((int)double_value * 100 ) / 100 May 29 08:45:11 something like this :D May 29 08:45:38 hehehe. May 29 09:17:11 oh my god, finally i get some sleep May 29 09:17:30 im so leaving at noon tomorrow :) May 29 10:06:46 Hi all May 29 10:07:26 I am having a nightmare with Cursor adapters, wondered if anyone can help me with a few answers ? May 29 10:17:16 ask the questions, someone might know : ) May 29 10:26:00 arg - net disappeared - did zenmaster ask his Cursor adapter question(s)? May 29 10:58:06 nope May 29 10:58:18 skyPhyr: No, zenmaster did not May 29 10:59:37 recursv1: at least I didn't miss anything :) May 29 11:19:19 hi there, sorry java crashing on windows 7 ightmare. May 29 11:21:11 I wondered if anyone can help with SimpleCursorAdapter ? I am trying to display a list of results from a linked table within a layout with other text, but am confused on what to do, as I dont want a listview, but as far as I can tell SimpleCursorAdapter only displays results in a list May 29 11:22:05 so I have been looking at trying to do a custom getView. Am I on the right lines ? May 29 11:25:30 can anyone read my messages here / May 29 11:25:31 ? May 29 11:25:56 no. May 29 11:26:07 no idea how to help, sorry :p May 29 11:27:10 deebo: talking to me ? sorry just getting message about registering, so unsure if I joined to the channel or not May 29 11:38:41 anyone here ? May 29 11:42:20 zenmaster: you just want all the results in a single test field? May 29 11:42:26 s/test/text/ May 29 11:43:11 or you want them all as individual items, but you want other things in your layout as well? May 29 11:43:45 johnnyzen: sorry - didn't notice the nick change May 29 11:44:26 skyPhyr: Hi, I have created a layout for the results eg. medical_pro_list. This list needs to go within another layout - procedure May 29 11:44:45 ok - place that layout within a scrollarea element May 29 11:45:18 which layout the medical_pro_list ? May 29 11:45:18 like see here http://www.binaryiris.com/node/28 on the config screen? May 29 11:45:27 I always have the save and cancel buttons at the bottom May 29 11:46:08 I do that by putting a scrollelement which contains all those pieces within the layout and putting all the bits I want to move around inside there May 29 11:46:16 yeah, you're medical_pro_list May 29 11:46:20 your not you're May 29 11:46:56 yeah kinda. i will do a screenshot to explain a bit better. prob. not explaining well. one sec :) May 29 11:48:20 you're a medical_pro_list! May 29 11:52:32 skyPhyr: http://tinypic.com/view.php?pic=6puav5&s=5 May 29 11:53:24 I hope this explains better on what I am trying to do. I like the cursoradapter because it will go through the linked database table, but the only view I can get is a list view. May 29 11:54:06 so I guess I need to write a custom getView ? May 29 11:58:52 johnnyzen: I wouldn't hook up to a view at all May 29 11:59:12 I'd just loop through the cursor results building a string and push that into a textview May 29 12:00:07 skyPhyr: yes, thought of this, thought I would try and be clever and use the simplecursoradapter. so you mean like a "for" statement ? May 29 12:00:35 johnnyzen: yeah, or a do while May 29 12:01:10 skyPhyr: Thanks skyPhyr, for your help and time :) May 29 12:01:18 the simplecursoradapter is more suited to when you wish to retain the data as a list. That's not so important here, though there's no reason you couldn't do it May 29 12:01:50 though you'd potentially be adding a lot of views (one per item) which adds more overhead to your app then going through them and putting out a single string May 29 12:02:25 ah ha, yes was trying, I guess I got caught up in trying to work out how to do it, when a while do, would be the best solution May 29 12:34:04 haha - how's that for strange. I add another set of buffers views and it shows - just the All Buffers one doesn't :) May 29 12:48:39 Hello. Was there a change in the method of HTTP delivery and installation of apps for cupcake? May 29 12:53:29 shouldn't be May 29 12:53:36 tmob has issues with small apks though, their proxies fuck it up May 29 13:00:07 i don't have a G1 or know anyone with one so i can't really debug the problem. i just got the 1.5sdk and i'm going to see if i can reproduce in the emulator May 29 13:01:56 hmm what do i put in the SDCard field when creating an emulator? a number or a path or what? May 29 13:02:07 a filename May 29 13:02:16 create that file using mksdcard May 29 13:02:33 ah ok. i did that once for 1.1 i believe. May 29 13:05:32 hi all, can anyone tell me how to append a new textview into an existing layout ? May 29 13:06:54 TextView tv = new TextView(this); May 29 13:07:01 tv.setText("Whatever"); May 29 13:07:54 but no indication on how to inject into a linearlayout within a layout.xml May 29 13:12:39 does anyone know what the MediaPlayer error "-26" refers to? May 29 13:16:23 is it possible to add a new textview to an exisiting xml layout ? May 29 13:16:30 can anyone help ? May 29 13:16:52 via new TextView ? May 29 13:18:14 johnnyzen: are you creating the new TextView programmatically or trying to load it from a second xml file? May 29 13:22:35 Can anyone recommend a tethering/proxy program? May 29 13:28:03 hi marklar, well I have an existing xml layout file, and I want to add some textViews programmatically into that layout May 29 13:28:08 is this possible ? May 29 13:28:30 johnnyzen: I've never done it myself, but I think its possible May 29 13:29:54 what about adding a xml into a another xml ? May 29 13:30:19 would that be easier ? May 29 13:30:52 I'm not sure May 29 13:31:07 :) thanks anyways May 29 13:31:35 marklar: give the layout an id May 29 13:32:03 use findViewById() to grab it, then use the addView() method May 29 13:32:20 johnnyzen: There you go May 29 13:32:50 If you need to do it from another layout file, you just need to take the extra step and call InflateView May 29 13:32:51 thanks mmmulani :) May 29 13:32:58 I believe you can do it from an xml file, never tried it though May 29 13:33:01 np May 29 13:33:16 oh, InflateView might be slow May 29 13:33:48 probably be better to start with InflateView and change to java if you need it, though May 29 13:35:26 mmmulani: Thanks, if I need to add the textview within a linearlayout - within a xml layout file - I cant seem to getViewById for the linearlayout id. May 29 13:36:11 sorry, ignore May 29 13:36:15 are you using R.id.? May 29 13:36:35 ahah fair enough May 29 13:40:55 Many Thanks mmmulani - got it working :) May 29 15:57:21 how would i combine two seperates apps ? Like i have two seperate apps which i would like to "bundle" up into one apk. ideally i would like to keep the two apps seperate as much as possible . i would not want to merge the resource files, they should stay seperate May 29 16:16:55 two separate apps = two separate apk May 29 16:21:26 Poke53281: What is the reason for having them in a single apk if they are different apps and won't be sharing data? May 29 16:24:32 well if they go up onto the android market it should be one download. they are sharing data in the sense that one is the dataprovider May 29 16:29:13 Poke53281: Have you looked at content providers? They let you share data between multiple applications: http://developer.android.com/reference/android/content/ContentProvider.html I don't know of any solution for having one download for two apps though May 29 16:29:37 Poke53281: more a workaround, but how about putting one of them as a free download, but the application checks whether the paid apps is installed? May 29 16:31:46 just don't forget to mention in the descriptions that the user needs BOTH. provide a link to the ~other~ application from within each May 29 16:32:10 not sure if that would work for your particular case of course May 29 16:32:58 Poke53281: something completely different : 53281 was the foreground, right? ;) May 29 16:33:08 you can also put dependency checking logic in, a bit like that TTS engine does May 29 16:33:13 oh sorry content provider. that's what i meant, not data provider. app 1 has a content-provider and some activities. app 2 is mostly unrelated different but uses the app 1 content provider May 29 16:33:39 Poke53281, you can have them share a content provider May 29 16:33:52 sammyF: : exactly ! you are the first one who actually mentions it May 29 16:34:21 Poke53281: it's been such a long time. I had to remember why it sounded so familiar ;) May 29 16:41:11 sammyF: i recently had to move all my old computer junk from A to B. suprisingly most of the stuff still worked when i tried it out. that probably was probably why i picked that nick recently May 29 17:26:32 can one app uninstall another app if they were signed by the certificate May 29 17:26:39 same certificate? May 29 17:27:13 jsharkey: when you query the People content provider and order by People.Name shouldn't the names start with small letters come after all the Capital letters? May 29 17:38:28 mm how does Log. work exactly, my program is passing a Log.d(string,string) in the code, but throws an exception after that and ddms doesnt get that debug message at all May 29 17:40:48 hmm no, my app just doesnt update on the emulator for some reason May 29 17:41:07 how does one make sure the LATEST version runs on the app when launching from eclipse May 29 17:42:32 running a clean in eclipse doesnt help May 29 17:46:27 does ur app build properly? May 29 17:46:36 did u do a build before u do a run? May 29 17:49:22 i just run through the eclipse run dialog May 29 17:49:43 yea but do u have the build automatic option checked? May 29 17:50:01 yes May 29 17:50:21 then watever u put on should be the newest build May 29 17:50:44 in the eclipse console do u see something similiar to Application already exists. Attempting to re-install instead? May 29 17:51:42 yes, i get that when i run, even tho the code i have doesnt match what the emulator is running May 29 17:53:00 deebo: what does it say in the console? May 29 17:53:11 Application already deployed. No need to reinstall. May 29 17:53:42 it sounds like either you already have the latest version, or somehow it got into a bad state May 29 17:53:58 and if it is in a bad state, just delete it from the emulator and do another install May 29 17:53:58 i swapped the avd and now it updated May 29 18:00:15 by the way, I don't know where to report this, but the gerrit code review tool doesn't work with Opera....but I doubt anyone really cares ;) May 29 18:00:55 oh wow, nvm, it works today May 29 18:05:12 hmm i got debugging working too, but logcat in eclipse isnt printing anything May 29 18:05:59 deebo: You can try running adb logcat in a shell to see what it says May 29 18:06:53 ye that works fine, but eclipse doesnt get the log May 29 18:26:45 chouman82: im assuming its based on how sqlite treats SORT BY May 29 18:27:07 *ORDER BY rather May 29 18:28:17 "when SQLite compares two text values, the result of the comparison is determined using memcmp" May 29 18:29:10 * jsharkey files a bug, i think ContactsProvider should use COLLATE NOCASE May 29 18:31:12 i.e. it should be different from the underlying sql comparison policy? hrm hum. May 29 18:31:53 hm? no, its just more-correct for the contacts-name case May 29 18:32:04 "Joe" appears next to "joe" May 29 18:32:18 which is what i would expect May 29 18:32:35 that sounds about right May 29 18:32:38 yeah May 29 18:32:59 when i query the ContactsProvider without providing the sortby field, it just sort by _id right? May 29 18:39:35 can anyone give me a clue where to start? I want to try to learn android programming May 29 18:39:40 I got eclipse installed May 29 18:39:55 I'm looking at the hello world example May 29 18:40:11 Do you know java? May 29 18:40:16 No May 29 18:40:20 do I need to learn it first? May 29 18:40:23 That's where to start. May 29 18:40:33 Ok May 29 18:40:46 you know any good guides out there for a beginner like myself? May 29 18:41:20 Do you know any other programming languages? May 29 18:41:27 I know Gambas May 29 18:41:52 and a tiny bit of python May 29 18:41:55 not a whole lot May 29 18:42:15 all my work is done in gambas May 29 18:42:41 M0E_lnx http://www.free-itebooks.com/?s=ebook+introduction+to+java May 29 18:43:20 * M0E_lnx bookmarks May 29 18:43:21 thanks May 29 18:43:43 happy coding May 29 18:43:48 M0E_lnx: http://www.mindview.net/Books/TIJ/ book availalbe in store or free as pdf/htm May 29 18:46:52 can i get eclipse to start debugging with a signle keyboard shortcut. if i hit the shortcut for debug it still pops up a "Debug As" window where i have to select Android Application May 29 18:58:37 so, uh, how do you get two widgets in a relativelayout not to overlap May 29 19:06:09 so, for this Contributor License Grant, am I the point of contact for the company if I'm contributing and do I sign it, or do I need to have someone else do it (like my boss)? May 29 19:07:26 kRutOn: even using android:layout_toLeftOf ? May 29 19:08:11 [or similar] May 29 19:15:15 ctateh i will try after the flight takes off :) May 29 19:17:19 kRutOn: heh May 29 19:27:36 Is there a way to hide the virtual keyboard based on an event (e.g. selecting enter in a text field hides the keyboard)? May 29 20:14:31 <_RyanA> Are there any known books in the works targeting 1.5? May 29 20:15:44 _RyanA, hello android has it, from what I read. May 29 20:16:01 the pdf version at least. May 29 20:20:15 <_RyanA> perfect i dont mind pdf although i prefer a hardcopy May 29 20:20:36 <_RyanA> thanks May 29 20:23:37 <_RyanA> im still trying to get a grasp on all the info i've read all over the place. so far i've only tried and successfully created the notepad tutorials, the views tutorials, and an xml reader from a url. May 29 20:25:24 <_RyanA> would you say the android language is not easy with oop? most tutorials ive tried avoid creating objects to maintain performance. im a c# dev and implementations are different from my experience May 29 20:25:45 Ahh... Its called an IME! Eureka! May 29 20:26:29 _RyanA, i'm a C and python developer. Its java to me.. I thought that java was the first mainstream OOP language out there May 29 20:26:34 so.. i assume its "good at it" May 29 20:27:35 * ctate | I thought that java was the first mainstream OOP language out there May 29 20:27:40 <_Phlogi> imho its very OOP May 29 20:27:43 smalltalk ? May 29 20:27:49 wow, that would make a lot of people very unhappy. May 29 20:27:58 yeah, Smalltalk, and maybe CLOS. May 29 20:28:01 <_Phlogi> :=) May 29 20:28:05 * wmealing_ nods May 29 20:28:09 we should all be programming in Ada. May 29 20:28:12 whcih only predate Java by like 20 years. May 29 20:28:14 there, i said it. May 29 20:28:19 or 30 May 29 20:28:21 ewon, you can sleep now May 29 20:28:49 (never heard of clos) May 29 20:29:06 <_Phlogi> anyone read the book: after the software wars? May 29 20:29:09 was running scala on android until the 1.5 upgrade, I dont know enough about ant to fix the build scripts thoguh. May 29 20:29:15 though May 29 20:30:11 _Phlogi, what ? its a war ? May 29 20:30:37 <_Phlogi> wmealing_: yes I think so :) May 29 20:30:38 wmealing: Common Lisp Object System May 29 20:30:48 ah May 29 20:30:48 iirc May 29 20:31:25 _Phlogi, i just thought we were building better tools.. for the job. May 29 20:31:57 wmealing_: you know more about maven2? May 29 20:32:03 biafra, negative. May 29 20:32:21 wmealing_: so you need the 1.5 apis? May 29 20:32:29 this is my first month in java land. May 29 20:32:33 biafra, correct. May 29 20:32:42 wmealing_: if not you could just continue to build for 1.1 May 29 20:33:37 wmealing_: what error do you get when compiling with ant? May 29 20:33:48 no errors, just massive binaries. May 29 20:33:56 i need to add a step in, and i dont know how May 29 20:34:04 i was following: http://chneukirchen.org/blog/archive/2009/04/programming-for-android-with-scala.html May 29 20:34:06 in 1.1 May 29 20:34:17 wmealing_: some class-level obfuscation could help May 29 20:34:50 wmealing_: like with proguard in your example May 29 20:34:53 yes. May 29 20:35:03 except my ant fu is too weak May 29 20:35:07 wmealing_: I had an increase of 800k with scala. May 29 20:35:12 you have more now? May 29 20:35:18 yes.. 950 ish May 29 20:35:32 wait.. i think i read your blog May 29 20:35:38 wmealing_: and that was better before? May 29 20:35:43 http://robey.lag.net/2009/01/19/scala-on-android.html <-- you ? May 29 20:35:48 no May 29 20:36:01 it used to be about 800, not sure why May 29 20:36:29 wmealing: well. 800 or 950 thats not much worse, is it? May 29 20:36:35 not in the scheme of things May 29 20:36:54 wmealing: wait til you use all scala features :-) May 29 20:37:06 biafra, i'm slowly getting there May 29 20:37:22 wmealing: it could be incraesing a lot more. I hat only a print-statement in my code May 29 20:38:14 wmealing_: println(s) even May 29 20:38:29 ah. May 29 20:38:43 * wmealing_ was wondering what you meant there for a second. May 29 20:38:51 biafra: proguard removes all the unused classes. and parts of classes May 29 20:39:05 sorry I meant had May 29 20:39:34 did you try using that ? May 29 20:39:56 i think it should be fine with scala, as all the types are matched up at compile time May 29 20:41:06 wmealing_: I was only checking that it really worked with my environment too. IntelliJ & maven2 May 29 20:41:36 wmealing_: right now I am learning the Andorid API and Environment. after that: Scala May 29 20:41:43 wmealing_: not too much at once May 29 20:41:51 biafra, i have the same plan May 29 20:42:43 biafra, do you blog or journal ? May 29 20:43:02 wmealing_: not regular. and if so in german May 29 20:43:27 wmealing_: we have an android meeting in berlin May 29 20:43:35 every last wednesday May 29 20:43:47 of the month May 29 20:43:54 cool May 29 20:44:44 singapore has an android meetup tomorrow . I have a fever of 40C, doctor has advised against going out. May 29 20:45:25 i dont want to wipe out a lot of potential coders ;) May 29 20:45:34 http://cyxdown.free.fr/reminiscence/ <-- need to start an Android port May 29 20:45:42 wmealing_: you have no headache with 40C? May 29 20:45:50 biafra, i have a headache. May 29 21:04:16 romainguy: ping May 29 21:08:09 if in an adapter using getView, you don't use the convertView, is it lost to the recycler? May 29 21:09:42 I'm hoping it is, so I can cache it myself May 29 21:11:25 O.o May 29 21:11:43 herriojr: thats bad :P May 29 21:11:50 don't cache it yourself ;) May 29 21:12:15 throw stuff in setTag() if you need it later May 29 21:12:34 the problem is that I use a different view when the item is clicked on than when it isn't May 29 21:12:40 with different data May 29 21:12:49 oh May 29 21:13:10 so, I cache the clicked view myself, so that I can easily reuse it May 29 21:13:14 in getViewTypeCount() return "2" May 29 21:13:21 then return the right type in getItemViewType(int position) May 29 21:13:40 does that pull it from the recycler? May 29 21:13:40 the recycler will pass the right type based on the state your adapter answers May 29 21:14:06 so if a position changes its type from 1 to 2, you'll get a type-2 from the recycler in convertView next time getView() is called May 29 21:15:19 awesome, I didn't know about that May 29 21:15:20 thank you May 29 21:15:37 if you want your application to create multiple shortcuts, must you create a UI to allow the user to select the shortcut of choice? Or can you simply provide an alias for each shortcut? May 29 21:16:38 ? May 29 21:18:29 jsharkey, ya, that's what I'm after. I have two activity aliases but can't figure out who to distinguish when creating the shortcut May 29 21:19:15 who = how May 29 21:21:04 so if I want to have a single activity or listener handle all of my shortcut creation, and I need to be able to create shortcut x and shortcut y, how do you do that? When the onStart (for activity) gets called, I don't see anything which communicates to me the x or y alias was selected by the user May 29 21:21:48 and by see anything, I mean the intent as provided by getIntent() May 29 21:22:12 jsharkey, any ideas? May 29 21:24:36 how are you unit-testing your code? something like "adb -e shell am instrument -w com.mypackage.app/android.test.InstrumentationTestRunner" ? May 29 21:24:57 after building and installing the whole thing? May 29 21:25:30 is there any CI integration for the "adb am instrument" output May 29 21:25:32 ? May 29 21:25:46 jsharkey, did I scare you off? ;) May 29 21:29:15 vol, any input on my shortcut creation question? May 29 21:29:58 back now May 29 21:30:18 BlindOracle: they can each have their own android:label and android:icon? May 29 21:30:25 jsharkey, yes May 29 21:30:27 ohhhhh May 29 21:30:30 but the incoming intent May 29 21:30:49 jsharkey, looks the same AFAI can see May 29 21:30:54 idk if it forces it down to the original componentname? May 29 21:31:20 or if it keeps the componentname of the original alias May 29 21:31:28 (or idk if aliases even have componentnames) May 29 21:33:02 jsharkey, ok, I'll take a look at that angle May 29 21:36:38 I have a TextView with a background drawable, and would like the drawable to change when pressed. I am already using an XML file, but that doesn't seem to do anything. If I define my own TextView subclass, override drawableStateChanged() and call invalidate() there, it suddenly works. Is the subclass really necessary? May 29 21:40:04 there must be something wrong with your drawable May 29 21:40:09 buttons on Android are just textviews May 29 21:40:24 jsharkey, you nailed it! Thanks. The component name reflects the alias used to request shortcut creation May 29 21:40:32 =D May 29 21:40:51 miracle2k: can you pastebin the selector? the order of items is really important May 29 21:43:23 jsharkey: http://pastebin.com/m205ac394 - that's one of them. They are more or less copied from the Camera app. May 29 21:44:09 I've also set android:clickable and android:focusable May 29 21:45:40 hmm May 29 21:46:54 jsharkey: good point, I wanted to add a feature to disable gestures anyway May 29 21:47:17 romainguy_: public chan? May 29 21:47:28 ah yeah May 29 21:47:45 Is it possible that this might be related to the view hierarchy I am using, i.e. is it worth it to try to simplify it, see if that's the problem somehow? May 29 21:57:55 anybody has any idea why DPAD_CENTER is only captured if the trackball is rolled in anydirection directly prior to a press? May 29 21:58:08 sammyF: ?? May 29 21:58:18 all I can think of is that your view doesn't have focus May 29 21:58:23 so moving the trackball gives it focus May 29 21:58:36 otherwise you have a very broken phone :) May 29 21:59:59 romainguy: I have a onKeyDown override. If I check for KEYCODE_DPAD_CENTER, nothing happens, unless I roll-click . only clicking doesn't trigger anything May 29 22:00:09 what I just said May 29 22:00:51 romainguy: well ... yep. I have focus, as I can capture any other DPAD event perfectly prior to that. May 29 22:01:16 so that leaves the second option ... are you really sure you don't have a third??? pllllleeeeeaase? ;) May 29 22:01:26 I'm pretty sure it's a focus issue May 29 22:01:41 and yes you can capture any dpad event pior to that May 29 22:01:46 because any other dpad event gives you focus May 29 22:02:06 romainguy: nice job with the UI performance talk yesterday, btw. learned some good stuff for version 2 May 29 22:02:07 so I should 'requestFocus" continuously? May 29 22:02:13 no May 29 22:02:23 just call requestFocus() once May 29 22:02:57 romainguy: I'll check. I'm rather sure I do that already though May 29 22:03:17 romainguy_: should implement demandFocus() too May 29 22:03:33 romainguy: thanks nevertheless May 29 22:04:17 not that requestFocus won't do shit in touch mode May 29 22:04:21 emmby: thanks May 29 22:08:14 well .. I already do requestFOcus. I'll break thing a bit more by overriding onFocusCHanged andn re-requesting the focus in there :P May 29 22:09:07 sammyF: that won't work May 29 22:09:28 sigh ... why not? May 29 22:09:57 I mean, can't you request focus from onFocusChanged? May 29 22:17:48 is there a way to force a button to never wrap its contents? May 29 22:18:42 make it wider? ;) May 29 22:18:57 ctate, haha, shush May 29 22:18:58 hm, can buttons do marquee? May 29 22:19:30 sure? May 29 22:19:53 ctate, well the issue is that I have several buttons in a row that get displayed in an activity with a dialog theme and under certain conditions, the dialog will be narrow and the button text will wrap May 29 22:21:38 setting maxLines="1" doesn't work, heh May 29 22:21:44 it was a long shot but I figured I'd try it May 29 22:22:25 there is a flag May 29 22:22:33 ellipsize="marquee" or something May 29 22:22:39 along with singleLine="true" iirc May 29 22:22:46 jsharkey, I don't want it to marquee May 29 22:22:51 ah, let me look for singleLine May 29 22:24:00 I mean, it was wrapping the word "delete", which I think would be a bit odd for a marquee May 29 22:24:28 damn, singleLine="true" just uses "De..." May 29 22:25:20 KNY, what do you want to happen if the text is too long for the button? May 29 22:25:38 miracle2k, expand the dialog width May 29 22:26:35 sounds like youir dialog layout is the problem May 29 22:27:54 ctate, all LinearLayouts all the way up the tree are android:layout_width='fill_parent' May 29 22:28:35 hmm. i am no expert here but shouldn't something be based on the size of the content? May 29 22:28:50 so that it doesn't squeeze things May 29 22:29:31 I would have assumed it should be wrap_content all the way up if the dialog should expand. May 29 22:35:50 jsharkey: I keep adding a new group to the contacts database, it returns a uri, but when I query the database, it doesn't exist May 29 22:36:36 miracle2k, yeah, that definitely doesn't work :) It just makes the dialog as absolutely small as possible haha May 29 22:37:52 KNY, so you want to have some minimum size, and then expand further as required? May 29 22:38:34 miracle2k, I want it sized correctly such that it shouldn't wrap single-word buttons :) May 29 22:39:31 miracle2k, I think I'm getting somewhere May 29 22:40:35 well, I'm not sure what your situtation is, but FWIW, I do think I remember there being min/max size attributes. May 29 22:41:47 well I don't want to set absolute sizes May 29 22:41:54 I don't know, I'll continue playing around with it May 29 22:41:59 thanks May 29 22:58:46 you could extend the button and implement the min-size May 29 23:02:25 jsharkey: nvm May 29 23:03:29 so i was messing around with the media player today May 29 23:03:54 and my goal is to stop the music at a random time May 29 23:04:05 but also allow the user to stop the music if he/she would liek May 29 23:05:02 so i created a new class which was a thread and when i wanted to start the music i would initiate the thread May 29 23:05:48 but when i create a while loop to continously check to stop the music, the music sounds horribly... May 29 23:05:51 any ideas? May 29 23:06:45 jsharkey: I've been debugging the TextView drawable state issue I mentioned earlier. The problem seems to be that when DrawableContainer.selectDrawable() calls invalidateSelf(), as the docs say it should, it does nothing because there is "no callback attached" (mCallback==null). May 29 23:07:12 titefuzz: are you calling isPlaying all the time in your thread? May 29 23:07:26 yep May 29 23:07:33 while(mp.ISPlaying() May 29 23:08:49 and also, i have a button in my application and for the life of me i cant change the layout of it May 29 23:08:57 it always shows up as the whole window May 29 23:12:20 sammyF would that be the reason for the pauses every few seconds? May 29 23:13:51 miracle2k: how are you setting the background on the textview? May 29 23:13:56 through android:background? May 29 23:16:09 jsharkey: I don't set a background, the parent RelativeLayout using a 9patch drawable with alpha May 29 23:17:07 oh, so is the relativelayout focusable/clickable? May 29 23:18:07 jsharkey: no, does it need to be? May 29 23:20:25 so the