**** BEGIN LOGGING AT Sun Jun 07 02:59:57 2009 Jun 07 04:14:53 I hate to repeat myself, but anyone know if you can just use a PreferenceActivity without saving to a local file? I'd like to use to for settings that will be saved on a server (not local) Jun 07 04:21:12 KNY: I haven't ever done it myself, but I would imagine you can just subclass it and override the save method Jun 07 04:22:33 hmm... do you think it happens in onSaveInstanceState? Jun 07 04:26:37 I don't think that will work because it says that it saves as you enter each value Jun 07 04:28:39 the whole thing is open source Jun 07 04:28:45 just find the PreferenceActivity source Jun 07 04:28:47 and see how ti works Jun 07 04:28:50 csvy, right, I just looked through it Jun 07 04:28:51 haha Jun 07 04:28:58 :) Jun 07 04:28:59 ok Jun 07 04:29:05 there's no save() method; each preference saves itself as it goes Jun 07 04:29:20 will it not work to save each as you do it? Jun 07 04:29:21 which I could technically hook into but it would be a huge pain and a terrible hack Jun 07 04:29:32 csvy, on edge? that would be awful Jun 07 04:29:43 you could change that method to write to an array in memory Jun 07 04:29:54 and then override a method that is run when preferences is closed Jun 07 04:30:10 yeah Jun 07 04:30:11 hmm Jun 07 04:31:03 KNY: it calls persist(arg) Jun 07 04:31:27 "it" being preferenceactivity? Jun 07 04:31:55 either way, I'll look into it; thanks Jun 07 04:32:14 I think each `hateverPreference Jun 07 04:32:46 but searching for persist will find it Jun 07 04:32:51 thanks Jun 07 04:35:04 Hey, my app has 4 activities and when I install it to my phone it shows an icon for each one of those activities Jun 07 04:35:11 how do I get it to show only 1 activity? Jun 07 04:36:38 Cay|Home, did you set all of them to respond to the LAUNCHER intent? Jun 07 04:36:47 category* Jun 07 04:36:51 huh? Jun 07 04:37:00 no, didn't know I was supposed to :( Jun 07 04:37:03 Cay|Home, pastebin your AndroidManifest.xml file Jun 07 04:37:05 no, you're not Jun 07 04:37:15 Jun 07 04:37:19 you probably have that Jun 07 04:37:22 for each activity Jun 07 04:37:33 err yeah Jun 07 04:37:36 you only want that for the main one Jun 07 04:37:36 I do Jun 07 04:37:49 that tells it to show up as an icon Jun 07 04:37:53 yeah, remove all of the sections except for the main one Jun 07 04:38:24 misplaced intentions Jun 07 04:38:40 :D Jun 07 04:39:43 Still showing all 5 icons after doing that Jun 07 04:40:40 (making a new avd) Jun 07 04:41:13 Cay|Home, uninstall your whole package Jun 07 04:41:20 adb uninstall com.your.package.here Jun 07 04:41:34 rebooting home screen would also probably fix it Jun 07 04:41:43 it likely just doesn't know things have changed Jun 07 04:41:50 uninstall will also work though Jun 07 04:42:24 I needed to do this anyways, I am reading in a file onload with over 1k lines Jun 07 04:42:28 and loading it into memory Jun 07 04:42:44 so I figured it would be a great chance to test performance Jun 07 05:07:11 hmm.. I seem to have created an android project, but I didnt check the "Create Activity" box, and then I created an activity on my own that's similiar to the hello world activiyt on the SDK documentation. When I try to run it through the emulator, it doesnt seem to run or appear on the menu. Did I forget something? I can't seem to find it in either tutorials Jun 07 05:08:03 the9a3eedi, I would bet you're having the inverse problem that Cay|Home was having Jun 07 05:08:14 haha Jun 07 05:08:18 I would wager so too Jun 07 05:08:22 by the way thanks Jun 07 05:08:26 no problem Jun 07 05:09:02 KNY: oh. lol. didn't notice, sorry Jun 07 05:09:21 the9a3eedi, haha, don't worry about it. Just compare your AndroidManifest.xml against the sample one Jun 07 05:13:47 ah, I think I fixed hte problem now Jun 07 05:13:48 running Jun 07 05:13:51 * the9a3eedi crosses fingers :P Jun 07 05:14:31 I'm really new to programming on a non-standard platform lol so this is still very new to me Jun 07 05:16:04 cool, it works! thanks KNY Jun 07 05:16:12 don't mention it Jun 07 05:17:29 so. say I had several activities. and I wanted to have all of their layout designed in a nonprogrammatic way. Should I have an xml file for each activity? Jun 07 05:18:13 yes Jun 07 05:19:14 hmm.. I see.. interesting Jun 07 05:19:28 is there some guide to writing those XML files? lol Jun 07 05:20:54 the hello world and notepad tutorials are super helpful Jun 07 05:20:56 I would start by going through those Jun 07 05:21:06 those introduce you to the basics of most the platform Jun 07 05:21:08 I went through the hello world tutorial Jun 07 05:21:17 I'm going through the Hello Views now Jun 07 05:21:30 ok, you should have a pretty good idea after the tutorials Jun 07 05:21:44 they are quite good Jun 07 05:22:05 yeah I understand how they work. but is there like.. some kind of ....... list.. of stuff I can use for the layout xml? Jun 07 05:22:11 I can't explain lol Jun 07 05:22:59 I mean the hello world example only teaches me how to use a LinearLayout and a TextView, but what about all the other classes I can use? Jun 07 05:23:00 http://developer.android.com/reference/android/view/View.html Jun 07 05:23:06 that page lists all the subclasses of view Jun 07 05:24:00 as for view groups (containers), this should help: Jun 07 05:24:01 http://developer.android.com/guide/topics/ui/layout-objects.html Jun 07 05:24:27 finally, the API sample program contains pretty much every type of view, so you can look through that and see what you want Jun 07 05:25:40 yes, the ApiDemos project is your friend Jun 07 05:26:02 oh wow. Thanks. I guess I'll continue going through the hello views tutorial Jun 07 05:26:14 API Demos freaking rock Jun 07 05:27:05 Another thing. When I run my app in teh emulator, and I'm done with it. I close it. Then I modify the code a little, and start the emulator again. Is it necessary to start and stop the emulator everytime I want to run the app? or am I doing it wrong? Jun 07 05:27:12 I feel bad asking all these questions Jun 07 05:27:12 no Jun 07 05:27:16 don't restart it Jun 07 05:27:20 just leave it open Jun 07 05:27:26 your applicatino will restart each time you run it Jun 07 05:27:26 so I just keep it running? hmm.. Jun 07 05:27:30 awesome Jun 07 05:27:37 emulator takes too long to restart Jun 07 05:27:40 yeah XD Jun 07 05:29:56 hmm.. so the layout_wieght attribute is like a "percentage" on how much it uses up as opposed to other objects Jun 07 05:30:11 yeah Jun 07 05:30:23 you can use it like that Jun 07 05:30:29 though, if its higher, does that mean it uses more? Jun 07 05:30:39 ? Jun 07 05:31:00 .. nevermind Jun 07 05:40:45 hmm.. just noticed this.. in the dev guide.. under Resources and Assets.. theres a section called "Resources and I18n" Jun 07 05:40:58 "I18n"? typo? Jun 07 05:41:02 or am I reading it wrong? Jun 07 05:41:18 it's supposed to mean internationalization lol. Jun 07 05:44:28 yeah, i18n is a way to do internationalization Jun 07 05:44:43 but how does one read it? :P Jun 07 05:45:01 there's also l10n for localization Jun 07 05:45:20 the9a3eedi: the 18 stands for "18 letters" Jun 07 05:45:26 OH Jun 07 05:45:34 same thing for l10m Jun 07 05:45:36 which means "too damn long to type" Jun 07 05:45:38 l10n Jun 07 05:45:49 I was thinking I should read it like ieighteenn Jun 07 05:45:54 or something Jun 07 05:46:09 that's how I say it in my head because I'm used to typing it Jun 07 05:46:41 Is there any way to detect the physical keyboard layout a device (to distinguish between QWERTY and QWERTZ)? Jun 07 05:47:11 csvy, sammyF asked that for you the other day. I think the answer is on the android-developers mailing list Jun 07 05:48:52 I haven't been able to find anything in the mailing list Jun 07 05:51:08 romainguy_, I noticed that every time you flip a keyboard's ... layout, I guess is what it is (letters to symbols and back) the GC kicks in and frees up a bunch of stuff (at least 32, sometimes 50, and sometimes as high as 600+). Is that a bug I should write up? Jun 07 05:52:06 with the virtual keyboard? Jun 07 05:52:11 sorry, yes Jun 07 05:54:29 Hey, I have a ListView but I generate the list output in the class (and not in an xml) is there a way to change the font of the stuff output into the list? Jun 07 05:56:43 KNY: how is that a bug? :) Jun 07 05:57:00 but yeah, it'd be better if it didn't do that Jun 07 05:57:40 romainguy_, that's why I asked, haha Jun 07 05:58:32 I'm not sure if it's possible to "fix" that, but I figured I'd ask Jun 07 05:58:32 don't fear the reaper, er, I mean GC Jun 07 05:59:29 haha Jun 07 05:59:38 http://code.google.com/p/android/issues/detail?id=2897&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary&start=1400 Jun 07 05:59:39 wtf Jun 07 06:00:17 that's quite the diatribe Jun 07 06:00:32 I so want to close that bug with a "working as intended" Jun 07 06:00:46 hahaha Jun 07 06:00:46 wow Jun 07 06:00:52 haha Jun 07 06:00:58 haha Jun 07 06:01:05 I love the steps to reproduce the problem Jun 07 06:01:22 I could also close the bug with a "user error" Jun 07 06:02:04 can you specify custom reasons for closing? Jun 07 06:02:06 nah I think he has a point but the wrong solution to it. It's what you addressed (or appears to have been changed) in 1.5 Jun 07 06:02:18 KNY: yeah I can Jun 07 06:02:23 the phone doesn't dim off during a long call it get's the double tap to push Jun 07 06:02:40 Cay|Home: we cannot password protect gmail Jun 07 06:02:43 if you're on the phone, does the password protection thing kick in? Jun 07 06:02:44 I do think that there should be a way to specify extra "permissions" on apps, but yeah, that's a different discussion Jun 07 06:02:45 not saying to do that Jun 07 06:02:50 because we would then have to password protect every app ^^ Jun 07 06:02:57 yeah Jun 07 06:02:58 (btw, I personally spend $5B+/year on AdWords) Jun 07 06:03:00 I understand that Jun 07 06:03:06 kRutOn: yes Jun 07 06:03:11 I spend 0/year Jun 07 06:03:18 feel the love google Jun 07 06:03:19 feel the love Jun 07 06:03:25 romainguy_, you should close it telling him that he needs to file a bug with his girlfriend's parents Jun 07 06:03:35 ha Jun 07 06:03:38 or I should file a bug with him Jun 07 06:03:40 haha Jun 07 06:03:44 "don't talk sex with your ex" Jun 07 06:04:24 no wonder it takes a while to get legit bugs looked at if you have to filter out this crap Jun 07 06:04:52 the annoying ones are the ones that are not bugs :) Jun 07 06:04:55 legit bugs, such as the soft keyboard triggering GC to kick in for 50ms Jun 07 06:05:05 :) Jun 07 06:05:05 because it does take time to actually make sure it's not a bug, even though you're sure it's not :) Jun 07 06:05:11 haha Jun 07 06:05:17 did you have to verify this one? Jun 07 06:05:18 that's not a bug, it's an optimization request :p Jun 07 06:05:28 "damn it, I have to go find a psychotic girlfriend..." Jun 07 06:05:46 be thorough Jun 07 06:06:31 there should be a way to have a sort of digg-type system so we can help you filter out this crap Jun 07 06:06:32 awww marketplace doesn't like 1.apk Jun 07 06:06:35 poor little thing Jun 07 06:06:45 KNY: people can vote on bugs Jun 07 06:06:54 in our internal tracker we can vote +1/-1 Jun 07 06:06:55 how about mark it unable to reproduce and say that you couldn't find a girlfriend that psychotic Jun 07 06:06:56 well, I guess it would be more like ubuntu's brainstorm or whatever Jun 07 06:07:07 romainguy_, I thought that was only voting up Jun 07 06:07:15 csvy++ Jun 07 06:07:19 on the external tracker? I guess so Jun 07 06:07:46 romainguy_, and on the public tracker I can only "vote [up] and subscribe" Jun 07 06:07:58 yeah the public tracker kinda sucks Jun 07 06:08:06 romainguy, hahaha Jun 07 06:08:09 best bug report ever Jun 07 06:08:18 is your internal one a custom-rolled one? Jun 07 06:08:22 yes Jun 07 06:08:27 ah Jun 07 06:08:33 dude, we're google, we do everything ourselves :p Jun 07 06:08:38 NIH! Jun 07 06:08:49 man, I missed out on the JIRA $5 license sale a month or so ago, I'm so bummed Jun 07 06:08:55 question though, why would he save an offer like that from his ex Jun 07 06:09:03 romainguy_: http://www.xkcd.com/583/ Jun 07 06:09:05 Gary|tp, it's gmail! you never delete! Jun 07 06:09:27 then again, you also wrote the external one Jun 07 06:09:30 ::) Jun 07 06:09:30 fuck that, my ex texts me all the time with stupid shit my current GF would freak if she saw it. do you think I save any of that? Jun 07 06:09:33 perfinion, romainguy_ doesn't have the added bonus of making the pun, though Jun 07 06:09:40 KNY: I delete tons of emails in Gmail :) Jun 07 06:09:55 KNY: true :( Jun 07 06:09:59 I delete almost nothing Jun 07 06:10:00 romainguy, spam folder doesn't count. Jun 07 06:10:03 perfinion: I'll give you a penny if you add that as a comment on that bug Jun 07 06:10:07 dude, we get no spam at all Jun 07 06:10:10 me too, the only thing that gets deleted is spam, pretty much Jun 07 06:10:16 (from the spam folder) Jun 07 06:10:18 in two years at Google I may have received a dozen of spam only Jun 07 06:10:30 that sounds like a challenge, romainguy_ Jun 07 06:10:32 but I hate keeping emails that I don't care about ^^ Jun 07 06:10:50 KNY: not a challenge, just amazed by the spam filter Jun 07 06:10:55 But that is what archive is for Jun 07 06:10:57 http://code.google.com/p/android/issues/detail?id=2897 Jun 07 06:10:58 damnit Jun 07 06:11:01 kRutOn: done :D Jun 07 06:11:05 Spam (1230) Jun 07 06:11:07 csvy: it makes search results more cluttered :p Jun 07 06:11:08 gmail's spam filter is pretty much the sole reason I run GAfyD on all my sites Jun 07 06:11:08 no reason to throw anything away Jun 07 06:11:12 I guess Jun 07 06:11:17 You are lucky romainguy_ Jun 07 06:11:21 You just have to be more specific searching Jun 07 06:11:37 :) Jun 07 06:11:41 Gary|tp, you got beat! Jun 07 06:11:42 KNY, I do it cause it's easy as hell and I love the web UI. Jun 07 06:11:46 you probably don't receive the same amount of emails we do then :p Jun 07 06:11:47 Gary|tp, that too Jun 07 06:11:50 anyway Jun 07 06:12:01 :) Jun 07 06:12:25 I swear, Google's selling our email addresses to spammers, accounts I've never used get spam mail :p. Jun 07 06:12:55 haha Jun 07 06:12:55 Gary|tp, they probably do it so that they have more stuff to feed into the filtering routine and make it better :) Jun 07 06:13:03 its a genius strategy Jun 07 06:13:06 lol Jun 07 06:13:09 sell the emails, but blacklist them Jun 07 06:13:19 that way people think the spam filter is great Jun 07 06:13:27 "eh it's np, our spam filter will get it all anyway" Jun 07 06:14:03 so romainguy_, when am I going to be able to add multiple accounts to the gmail app? I know you know the guy who wrote it since I watched your talk :) Jun 07 06:14:39 KNY: Which talk was that? I don't remember that being mentioned Jun 07 06:14:40 ! Jun 07 06:14:52 csvy, the one about speeding up UIs Jun 07 06:15:07 it was a brief mention when he was talking about custom views and custom layouts Jun 07 06:15:09 oh! Jun 07 06:15:10 yeah Jun 07 06:15:12 uh-oh, I've only reported 1 bug on Android that's been fixed. Jun 07 06:15:15 the custom list item Jun 07 06:15:23 csvy, yeah Jun 07 06:15:27 kRutOn, patches welcome Jun 07 06:15:28 ! Jun 07 06:15:36 indeed Jun 07 06:15:43 KNY: Yeah, I should probably send patches with my reports Jun 07 06:15:55 Like this one: http://code.google.com/p/android/issues/detail?id=1549 Jun 07 06:15:57 patches go to r.android.com :) Jun 07 06:16:06 kRutOn, man, I got a bug report with steps to reproduce, *and* a patch once. I thought I had died and went to heaven Jun 07 06:16:34 I should test that to see if it was fixed Jun 07 06:19:26 I love bugs like this, too: http://code.google.com/p/android/issues/detail?id=2860&sort=-id&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary Jun 07 06:19:29 romainguy_: What if I go through the bug tracker and patch bugs Jun 07 06:20:11 KNY: "Unclear on the concept" Jun 07 06:20:14 (bonus points since it was reported by Jeffisagenius) Jun 07 06:20:26 he's a genius with a capital J Jun 07 06:21:10 I think that actually might be a bug though, I seem to remember that happening for me at one point Jun 07 06:22:02 csvy, yeah, but you're not supposed to write your life story in the subject field Jun 07 06:22:16 I bet he's one of those people that complains when mail servers have a limit on subject length Jun 07 06:24:22 Do they? I've never run into that before :) Jun 07 06:26:04 csvy, I'm sure that they *do*, sorta like how there's a limit to the size of a GET request :) Jun 07 06:26:17 even though it's like 4000 bytes on apache or something like that Jun 07 06:26:41 Also never run into that :P Jun 07 06:27:04 I'm surprised it's even that high though Jun 07 06:27:13 csvy, neither have I, because I'm not an imbecile. Some of my ex-coworkers on the other hand.. Jun 07 06:27:17 I can't imagine any good reason for a 4kb GET Jun 07 06:27:19 :) Jun 07 06:27:31 if someone asks you how to raise that limit, slap them into last week Jun 07 06:27:37 haha Jun 07 06:28:06 I should get to bed though, I told myself I was going an hour ago haha Jun 07 06:28:15 damn you, android! why must you be so interesting? Jun 07 06:28:29 the story of my free time lately Jun 07 06:28:33 maybe we should file a bug report Jun 07 06:28:35 :) Jun 07 06:28:40 hahaha Jun 07 06:28:41 [01:25:26] csvy, neither have I, because I'm not an imbecile. Some of my ex-coworkers on the other hand.. Jun 07 06:28:43 how the hell Jun 07 06:29:10 were they trying to submit files via GET or something? Jun 07 06:29:41 Gary|tp, one case it was the result of a WYSIWYG editor Jun 07 06:29:49 tags and all, urlencoded Jun 07 06:30:22 heh Jun 07 06:32:52 romainguy_: can you close 1549 or is that for someone else to do? Jun 07 07:32:03 kRutOn: done, thanks Jun 07 07:41:32 hm, I just implemented von Neumann whitening here. Jun 07 07:43:36 (that guy was a genius) Jun 07 10:41:48 hi all, does anyone know if it is possible to launch new activitys from linkify ? Jun 07 10:57:08 hi all, does anyone know if it is possible to launch new activitys from linkify ? Jun 07 10:57:29 well, you can certainly handle links any way you want Jun 07 10:57:47 that said, if you aren't taking the user to a web page, maybe a link is the wrong control to use? Jun 07 10:58:02 linked text is harder to press than a regular button, and its appearance suggests "web page" to users Jun 07 10:59:46 hi TD, yes I agree, although buttons wouldnt seem right. For example, I have some text instructions that contain words that fir other instructions, so I wanted the options for them to click on the link to take them to other instructions (related) Jun 07 11:00:16 look at the source for linkify to see how it works Jun 07 11:00:46 yes I looked, but it seems that I can only specify things like linkify.ALL Jun 07 11:01:53 using addLinks I can only have TextView text, Pattern pattern, String scheme Jun 07 11:02:40 ideally, I would want the string scheme to be starting a new intent Jun 07 11:03:30 the other solution could be buttons at end of instructions - maybe called related links Jun 07 11:04:49 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/text/style/URLSpan.java Jun 07 11:04:51 read that Jun 07 11:05:18 and this Jun 07 11:05:19 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/text/style/ClickableSpan.java;h=989ef54f3f8a97049e67f6aa53f36d7bee7dc137;hb=HEAD Jun 07 11:05:38 so you want to derive from ClickableSpan for each link, telling it to do what you want Jun 07 11:05:59 then you can apply it in the same way the Linkify class does Jun 07 11:06:10 which can be found here Jun 07 11:06:10 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/text/util/Linkify.java Jun 07 11:06:33 ah Nice TD, I will have a look at this :) thanks very much Jun 07 11:06:37 np Jun 07 11:34:31 referring to http://www.mail-archive.com/android-porting@googlegroups.com/msg01573.html Jun 07 11:34:44 how can i build my own mac toolchain for x86 target ? Jun 07 12:06:06 hi TD, thanks for the info, but a little over my head. I understand the class URLSpan, but wouldnt know how to write my own custom class based on this. Jun 07 12:06:24 derive from clickablespan Jun 07 12:06:38 then associate it with the text you want to make clickable. the linkify class shows you how to do that, or read the docs Jun 07 12:08:16 you mean to create a class for example. CustomURLSpan extends ClickableSpan ? Jun 07 12:08:38 right Jun 07 12:08:44 ActivityInvokerSpan or something Jun 07 12:08:52 :) Jun 07 12:09:35 sorry, TD, bit of a beginner. Jun 07 12:10:10 no problem! Jun 07 12:10:16 i might not be giving you the best way to do this Jun 07 12:10:27 i have used custom links but only to open web pages Jun 07 12:10:29 so i used a URLSpan Jun 07 12:18:03 no, looks the perfect way to me Jun 07 12:18:46 might have trouble building the custom class though. I think I dont need to use stuff like writeToParcel Jun 07 12:18:55 would this be correct ? Jun 07 12:19:34 i only need to overwrite the onClick within the URLspan. Jun 07 12:19:37 I think Jun 07 12:19:50 to start a new intent for a activity Jun 07 12:20:52 right Jun 07 12:22:13 now i have some questions for the channel :) Jun 07 12:22:33 when using a listview/listadapter where the adapters contents change in another thread, what's the best way to update the ui? Jun 07 12:22:44 i presume the observers that an adapter receives must be run in the ui thread Jun 07 12:44:47 When I put in my md5, it's a 404: http://code.google.com/android/add-ons/google-apis/maps-api-signup.html Jun 07 12:44:48 what to do? Jun 07 13:00:08 hello android developpers :) Jun 07 13:00:45 I need a google maps API dammit Jun 07 13:04:02 I am wondering what is the best way to organise classes to interact with the database. The tutorials show the use of a DBDAdapter. I usually like to work with class that reprensents my objects, for inheritance for instance. In this case, how should the DBAdapter implemented ? Let's say I have a class People and a PeopleDBAdapter and I want to create a new class for students (students being people.... :)). Not sure my question is clear ? anyone unders Jun 07 13:04:03 tands what I mean ? Jun 07 13:04:04 anxiolytic: report it to the android-developers forum, or file a bug Jun 07 14:57:04 Is there any list to find out all the android:layout options? like android:background="@android:drawable/editbox_background"/> Jun 07 15:14:40 hi Jun 07 15:15:01 is there someone there? Jun 07 15:23:53 Me? Jun 07 15:29:44 hi, I want to use 3rd party Java lib in my app. I added it in eclipse as a library and everything seems to work fine (there are some warnings about " Ignoring InnerClasses attribute ..." but it works). I just wonder where my 3rd party lib is being "deployed" in the filesystem ? I cannot find it Jun 07 15:30:10 What do you mean, deployed? Jun 07 15:30:27 the app goes to /data/app/my.app Jun 07 15:30:38 where is packed its library ? Jun 07 15:31:07 the .apk size is the same with and without 3rd party libs Jun 07 15:31:23 so, I suppose the libs is not in .apk Jun 07 15:38:06 That's quite a question, actually Jun 07 15:38:28 I dont know :( Jun 07 15:38:39 ok, thanks ! Jun 07 15:45:00 correct me if im wrong, when i want users to draw on an activity i should use surfaceview right? Jun 07 15:46:57 Uh. Jun 07 15:47:08 I'd say that'd be a Canvas. Jun 07 15:47:44 Oh. Jun 07 15:47:46 Users drawing on one? Jun 07 15:48:01 Yeah, use a SurfaceView. Jun 07 15:48:04 say i want users to draw circle or square Jun 07 15:48:42 surfaceview is the right one? Jun 07 15:48:53 Yeah. Jun 07 15:49:03 cool tnx a lot Jun 07 15:56:38 someone here have experience of selling apps on the market ? Jun 07 16:26:02 oki I am going to ask here.... please don't tell me to go to #java #eclipse or other because the problem is problem accross different things. I am writting an android app and I wanted to add JUnit tests (nothing related to android here). Running the tests results in an Internal Error. Can YOU create and run regular JUnit tests in your project ? Jun 07 16:30:15 nobody uses JUnit ? Jun 07 16:36:47 chevdor, its been something ive been thinking of doing for a while Jun 07 16:36:57 wmealing, :) Jun 07 16:37:06 wmealing, this is your chance to jump in :) Jun 07 16:37:23 fyi: I am testing my whole installation, and JUnit works (both 3 and 4) Jun 07 16:37:26 chevdor, i saw some examples in the apidemos code Jun 07 16:37:47 wmealing, right now I am NOT trying using the android testing framework but the 'regular' one Jun 07 16:38:00 wmealing, in my android project it fails.... for some reasons Jun 07 16:38:57 i didnt know there was regular and non regular Jun 07 16:39:12 give me a few minutes going to see what i can do Jun 07 16:41:12 by regular, you mean non android.test.package Jun 07 16:42:01 yes by regular I mean the JUnit that has nothing to do with android Jun 07 16:42:33 if you are doing anything that requires context, you'll need to run the specific android.test.package Jun 07 16:42:35 just from what im reading Jun 07 16:43:25 no, i don't do anything that complicated.... my unique JUnit test checks out if 6+2=12..... Jun 07 16:45:20 ok Jun 07 16:45:29 going to fire up a new project and try Jun 07 16:46:00 great Jun 07 16:46:35 in my case, using a brand new project, it works, using an existing android project (that works), then JUnit complains and not even run the test Jun 07 16:47:27 :( Jun 07 16:47:33 how do I make jarsigner work? Jun 07 16:47:33 i was kind of hoping to follow http://mylifewithandroid.blogspot.com/2008/11/junit-in-android.html Jun 07 16:47:56 chevdor, are you looking/have any specific guide ? Jun 07 16:48:23 wm for what ? Jun 07 16:48:33 on how you are having your / configuring your junit tests Jun 07 16:49:15 well with a regular project, I add a new test case (using eclipse, it is easy), then eclipse proposes to add eaither JUnit 3 or 4, and then I write my test and run Jun 07 16:49:50 the whole thing fits in 2 lines : Jun 07 16:49:52 import junit.framework.*; Jun 07 16:49:52 public class Tests extends TestCase { public void test1() { assertEquals(12, 6+2); } } Jun 07 16:50:25 no need to say this test should fail :) but this is not the point :))) Jun 07 16:50:42 yep, i get ti Jun 07 16:51:47 jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compres Jun 07 16:51:48 sed size (expected 2335 but got 2343 bytes) Jun 07 16:51:52 what Jun 07 16:52:30 just changed it ever so slightly and got: Jun 07 16:52:40 (expected 2336 but got 2346 bytes) Jun 07 16:53:54 have not given up yet, still working Jun 07 16:54:12 wmealing, :) Jun 07 17:04:24 wmealing, i found the pbm, checking out and I'll tell you if you run into it Jun 07 17:11:14 chevdor, i assume you put it in the tests directory Jun 07 17:11:29 wmealing, that's better yes :) Jun 07 17:11:51 made a suite, then added your tests to the suite Jun 07 17:11:57 ant reinstall it to the device Jun 07 17:12:00 then ran it ? Jun 07 17:12:05 yes Jun 07 17:12:14 then its.. broken when you do that ? Jun 07 17:12:19 you just dont need to install it to the device Jun 07 17:12:27 oh Jun 07 17:12:36 what Junit do you run eclipse or android ? Jun 07 17:12:38 what do you need to do then ? Jun 07 17:12:50 er, i use vim, so i guess android Jun 07 17:13:04 dont you need to install it, to run it on the device ? Jun 07 17:13:19 no there are two things Jun 07 17:13:39 lets say you wirtte a calculator for android Jun 07 17:13:49 as you do Jun 07 17:13:51 you want a unit test to check out your addition method Jun 07 17:14:01 you can test things at 2 places Jun 07 17:14:21 first, you can test the JAVA code using Junit, that has NOTHING to do with android Jun 07 17:14:26 this is what I do now Jun 07 17:14:52 hmm Jun 07 17:14:53 this is good because it is much faster than compiling, installing, and everyting on the emulator Jun 07 17:15:09 agreed, but you cant test any android specific problems though Jun 07 17:15:14 and then if you want, you can run the android JUnit onthe emulator, I did not try thi yet Jun 07 17:15:20 wmealing, agreed Jun 07 17:15:40 wmealing, but if you java code is fucked, you don't even need to go to the emulator to check it out Jun 07 17:16:55 do u see what I mean ? Jun 07 17:17:36 to make it work remove the bookstrap that is defined by default (you'll probably have to add it for the Android JUnit config I guess...) Jun 07 17:19:53 so you run two test cases Jun 07 17:19:55 one on the host Jun 07 17:19:58 the other on the guest Jun 07 17:20:18 i thought junit was all runtime Jun 07 17:20:19 wmealing, exactly Jun 07 17:20:45 wmealing, but honnestly, I'll probably run tests 'locally' much more... Jun 07 17:25:27 Hey is there any way to make the fontsize smaller on a list? Jun 07 17:28:38 rasperin, sure, change the layout used to render the items Jun 07 17:30:21 http://dpaste.com/52516/ <-- yay tests run Jun 07 17:32:47 chevdor, thanks for giving me a bit of a kick Jun 07 17:33:06 chevdor, i have the basics working.. now i gotta do the rest. Jun 07 17:33:27 wmealing, your welcome, thanks to you, I had to stay on the problem and fix it :) now it works, that's cool. IRC is not always THAT efficient :))) Jun 07 17:50:20 I'm kinda new to XML, so here's a question. Why is it that, for example in the layout file, every "property" of something starts with android:? Jun 07 17:50:22 like Jun 07 17:50:38 android:layout="..." Jun 07 17:50:45 or android:text="Hello" Jun 07 17:52:45 Buzzword = Namespace :) Jun 07 17:52:59 the9a3eedi, my guess is that it helps for parsing ? and maybe make a difference between the genuine properties and the extra ones ??? my 2 cents Jun 07 17:53:26 meaning = use the attribute "layout" from the namespace "android" Jun 07 17:55:14 maybe this will help (a little bit) http://www.w3.org/TR/REC-xml-names/ Jun 07 18:00:39 ah, I think it makes sense now :) thanks Jun 07 18:01:19 hmm, so in order to use an object that was declared in a layout, we get it using findViewById(), right? Jun 07 18:02:37 hey gents Jun 07 18:02:47 gota quick question, I have an EditText item, and I am attempting to access its content when I click a button on an EventHandler, how do I access it Jun 07 18:02:48 because I cannot use View.GetViewByID Jun 07 18:04:07 you can findViewById() in the onCreate() and keep a reference around inside your class Jun 07 18:04:25 or, if its something dynamic, setTag() on the button to help you find the right EditText Jun 07 18:06:12 hmm. what does @Override do? Jun 07 18:06:24 question, is there any open source pencil drawing app for android? I tried using canvas, surfaceview and point. It doesnt look too good. haha Jun 07 18:06:24 overrides warnings? Jun 07 18:06:27 Naw. Jun 07 18:06:38 @Override points out to the compiler that you're overriding that function Jun 07 18:06:46 Such as the public void run() {} function in Thread. Jun 07 18:08:32 ah. But is that needed? I mean, in J2SE we didnt really need @Override.. Jun 07 18:08:58 It's not really needed. Jun 07 18:09:09 Not in Android / not in J2SE Jun 07 18:09:14 I guess it's just good programming practice then. Sure why nto Jun 07 18:09:19 Yeah Jun 07 18:09:24 find the view by id on the oncreate Jun 07 18:09:29 and sorta keep an array of views? Jun 07 18:09:34 or more a hashmap Jun 07 18:09:39 then I can access that globally Jun 07 18:09:54 You wouldnt want an array of views. Jun 07 18:10:04 Why'd you want to globally access a view? Jun 07 18:10:13 well thgats the odd thing right - in my controller it doesny crash on the firts lne, but crashes on the second Jun 07 18:10:15 OnClickListener searchTeamListener = new OnClickListener() { Jun 07 18:10:15 public void onClick(View v) { Jun 07 18:10:15 TextView txt = (TextView) v.findViewById(R.id.textview3); Jun 07 18:10:15 EditText search = (EditText) v.findViewById(R.id.searchTeam); Jun 07 18:10:15 Jun 07 18:10:17 Jun 07 18:10:19 // txt.setText(search.getText()); Jun 07 18:10:21 } Jun 07 18:10:23 }; Jun 07 18:10:25 the TextView works Jun 07 18:10:25 AGH MY EYES Jun 07 18:10:27 but EditText crashes... Jun 07 18:10:29 sorry haha Jun 07 18:10:31 wont do that again Jun 07 18:10:34 pastebin plz in future :) Jun 07 18:10:38 sure np Jun 07 18:10:42 Are you sure searchTeam is an EditText? Jun 07 18:10:44 In the layout file? Jun 07 18:10:45 so Jun 07 18:10:48 lemme check Jun 07 18:11:09 ahhhhh shit Jun 07 18:11:10 remember that findViewById() only searches children of "v" Jun 07 18:11:20 so, the button clicked doesnt ahve any children Jun 07 18:11:20 but v in this case... Jun 07 18:11:22 iss.... Jun 07 18:11:27 so if this controlelr is attached to a button Jun 07 18:11:32 is v the parent of the button Jun 07 18:11:39 i.e my main layout Jun 07 18:11:40 no, v is the button Jun 07 18:11:52 What Jun 07 18:11:53 so how the heck does it find textView3 Jun 07 18:12:02 cos thats not a child of the button Jun 07 18:12:09 No Jun 07 18:12:34 Okay Jun 07 18:12:36 no what Matsy Jun 07 18:12:40 Before that function is called Jun 07 18:12:43 yea Jun 07 18:12:44 You should have an onCreate. Jun 07 18:12:47 yep Jun 07 18:12:53 More ideally, this should be in the onCreate. Jun 07 18:13:07 It should contain onCreate(Bundle savedInstanceState) Jun 07 18:13:15 how would it be accessible by the controller then Jun 07 18:13:20 Wait up Jun 07 18:13:22 Not finished yet ;p Jun 07 18:13:51 In the onCreate, type something like this. EditText search = (EditText)this.findViewById(R.id.searchTeam); Jun 07 18:14:08 And then you could do: Jun 07 18:14:09 right... Jun 07 18:14:33 final String whatevercontent = search.getText().toString(); Jun 07 18:14:46 It doesn't have to be final. Jun 07 18:14:57 sure....but do I really want to do that in oncreate - because the text wont have changed when oncreate is run Jun 07 18:15:05 No. Jun 07 18:15:09 But, when the button is clicked, it will. Jun 07 18:15:24 the onClick will only be called when the button is clicked Jun 07 18:15:29 so is that line u just said inside the button controller? Jun 07 18:15:34 Yeah. Jun 07 18:15:36 ahhh Jun 07 18:15:41 And, the line before that should be in the onCreate() Jun 07 18:15:45 how does it hav search in scope Jun 07 18:15:51 Well Jun 07 18:16:10 Make sure the search EditText is in the layout as defined from the current Content View. Jun 07 18:16:38 So, you set a content view using this.setContentView(R.layout.whatever), it should be in there Jun 07 18:17:01 im confused - so what would my controller look like Jun 07 18:17:11 referring to http://www.mail-archive.com/android-porting@googlegroups.com/msg01573.html Jun 07 18:17:12 how can i build my own mac toolchain for x86 target ? Jun 07 18:17:37 I'll copy my controller. Jun 07 18:17:40 cheers mate Jun 07 18:18:27 http://java.pastey.net/115530 Jun 07 18:18:52 Don't look at the other code Jun 07 18:18:59 This isn't in use anymore >_> Jun 07 18:19:17 But, should be clear how to use it. Jun 07 18:19:29 ah right, ok lemme see if I can get this Jun 07 18:22:06 nobody helps lil dade Jun 07 18:22:10 :o Jun 07 18:22:14 What, dade? Jun 07 18:22:18 Oh Jun 07 18:22:20 Dont know about that Jun 07 18:22:28 damn Jun 07 18:22:30 Might be something more for #android Jun 07 18:22:46 Oh, you asked there already ;p Jun 07 18:23:02 yes i'm a copypaste guy Jun 07 18:23:03 haha Jun 07 18:23:27 i'm stucked there Jun 07 18:23:34 can't find a solution Jun 07 18:23:52 Matsy ok i think i got it - so Can I use the standard java api for communication with web services etc Jun 07 18:24:01 Socket etc Jun 07 18:24:49 Yeah. Jun 07 18:24:56 this isnt like J2ME Jun 07 18:25:06 So, you have everything you normally do Jun 07 18:25:32 that is bloody fantastic Jun 07 18:25:41 Yesh. Jun 07 18:25:43 so it will automatically handle the wifi / 3g communication stuff Jun 07 18:25:50 Depends on what you want. Jun 07 18:25:50 i just say - go get it as i normallu would on a standard java app Jun 07 18:25:54 Oh. Jun 07 18:25:56 Yeah Jun 07 18:26:00 haha, thats incredible Jun 07 18:26:04 making apps has never been easier Jun 07 18:26:06 But. Jun 07 18:26:07 so what do you work on? Jun 07 18:26:11 Oh. Jun 07 18:26:26 I'm creating an application that finds bargains in a lot of stores Jun 07 18:26:33 And, it can plan routes to those stores Jun 07 18:26:37 It will automatically find closest stores Jun 07 18:26:45 Etc, etc. Jun 07 18:27:21 awesome Jun 07 18:27:46 Kinda Jun 07 18:27:56 I can't wait to finish it, though Jun 07 18:28:40 so can this phone handle Threads in exactly the same way also? Jun 07 18:28:58 Yeah. Jun 07 18:29:35 Thread thread = new Thread() { public void run() { //dosomething } }; thread.start(); Jun 07 18:29:43 Just works like that Jun 07 18:29:49 brill Jun 07 18:30:00 dam, i need to find a web service for football updates for a particular team Jun 07 18:30:01 cnt find any Jun 07 18:31:16 try www.programmableweb.com/apis Jun 07 18:33:21 ahhhhh, fuck yes - bbc has one Jun 07 18:33:25 its a bit crap Jun 07 18:33:31 cos its just a MASSIVE XML file Jun 07 18:33:37 gona have to scan it for the appropriate team Jun 07 18:33:52 I wouldnt suggest doing that with Android ;p Jun 07 18:34:23 no> Jun 07 18:34:23 ? Jun 07 18:34:24 why Jun 07 18:34:27 Well Jun 07 18:34:30 How large is the XML file? Jun 07 18:34:34 ud only need to do it on setup Jun 07 18:34:37 like ud pick ur team Jun 07 18:34:43 TD: After all this time, I have managed to write the class. thanks for your help, ever so grateful :) Jun 07 18:34:43 Oh. Jun 07 18:34:44 Yeah Jun 07 18:34:53 so yeah Jun 07 18:34:53 Make sure you use some ProgressDialog then. Jun 07 18:34:58 yeah, Jun 07 18:35:02 It'd be painful without one ;p Jun 07 18:35:37 eek, its 500kb Jun 07 18:35:43 but as soon as it finds the team it can stop looking Jun 07 18:35:43 can anyone help me to understand why the GPS stays active even though finish is called ? Jun 07 18:37:34 That's odd, Johnny Jun 07 18:42:07 perhaps something else is using it? Jun 07 18:42:22 If it is on the emulator, something else shouldn't be. Jun 07 18:42:32 Have you checked DDMS for silent processes? Jun 07 18:44:52 Hi, testing on actual device. Jun 07 18:45:05 Hmm. Jun 07 18:45:10 Matsy: wouldnt know how to test DDMS ? Jun 07 18:45:22 UH Jun 07 18:45:26 What IDE are you using? Jun 07 18:46:23 eclispe Jun 07 18:46:36 Then Jun 07 18:46:40 Open the DDMS perspective. Jun 07 18:46:43 renegadeandy: xpath / xquery Jun 07 18:47:08 ah ha Jun 07 18:47:10 hrm, that reminds me. I should document using JDEE with ddms and such Jun 07 18:47:36 So, Window -> Open Perspective -> DDMS Jun 07 18:47:45 unknown_lamer what do you mean xpath / xquery!? Jun 07 18:47:55 JDEE is not nearly as nice as slime and is horribly bloated and obtuse :-( It's like some java programmer sat down and decided to write some elisp... Jun 07 18:47:59 ok opened Jun 07 18:48:07 renegadeandy: you can trivially query the document for the team you want using either Jun 07 18:48:09 I think he's pointing at the fact that you can use xpath / xquery to browse through the file in a proper way. Jun 07 18:48:17 Yeah. Jun 07 18:48:18 how the heck do i do that on java! Jun 07 18:48:24 probably a one line xquery expression Jun 07 18:48:29 There are several tools for that Jun 07 18:48:35 I have never heard of xpath or xquery Jun 07 18:49:00 I'm not sure if I understand how dialogues work. So basically, if I wanted to show a dialog, I use showDialog(). This will call onCreateDialog as well. But what is the purpose of onCreateDialog? I'm going through the DatePicker tutorial. Why does the onCreateDialog return a DatePickerDialog? What happens to that DatePickerDialog? Jun 07 18:49:26 Search for dom4j Jun 07 18:49:31 That's what I use. Jun 07 18:49:48 Matsy: what am I looking at in DDMS ? Jun 07 18:49:56 Processes that shouldn't be there. Jun 07 18:49:57 'tho with a 500kB parser using a sax event handler might make more sense Jun 07 18:50:08 it only needs to do the file once tho Jun 07 18:50:11 Yeah Jun 07 18:50:17 It's better to use XPath for that Jun 07 18:50:19 so i use jaxp Jun 07 18:50:20 ? Jun 07 18:50:28 Sax seems like a bit of an overkill for on-time use Jun 07 18:50:32 tabs I have are Threads and File Explorer Jun 07 18:50:36 hm, where's the DatePicker tutorial? Jun 07 18:50:48 threads is blank Jun 07 18:50:48 * ctate doesn't see it offhand on developer.android.com Jun 07 18:50:57 so what kinda spec is the magic - what do i have to play with? Jun 07 18:50:59 ctate, it's on the Hello Views tutorial Jun 07 18:51:05 aha Jun 07 18:51:32 Uhuh Jun 07 18:51:36 Don't you have a Devices view. Jun 07 18:51:47 On the left <- Jun 07 18:52:09 ah yes, when I click on the device nothing happens Jun 07 18:52:58 That's odd Jun 07 18:53:01 guys how do i view my System.out.println() comments when under eclipse and using the emulator!? Jun 07 18:53:18 renegadeandy: adb lolcat Jun 07 18:53:20 I'd use Log.i() Jun 07 18:53:30 ... Jun 07 18:53:31 lolcat is kinda....funny Jun 07 18:53:49 ahh i c Jun 07 18:53:56 Log.i("ApplicationName","MessageHere") // And then check it at the LogCat. Jun 07 18:53:58 so there is some ranodm Log object which im just able to access Jun 07 18:54:04 the9a3eedi: the showDialog() -> onCreateDialog() callback mechanism is designed to make it easy for your app to have the OS manage the state of dialogs for you. Jun 07 18:54:04 Yes. Jun 07 18:54:05 how the heck do i access the LogCat Jun 07 18:54:13 Windows Jun 07 18:54:14 *Window Jun 07 18:54:16 Show View Jun 07 18:54:16 the9a3eedi: see http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int) for some discussion Jun 07 18:54:24 Goto Other.. Jun 07 18:54:33 And type LogCat there ;p Jun 07 18:54:39 renegadeandy: import android.util.Log; Jun 07 18:54:50 yeah i got it Jun 07 18:54:55 but where does it output Jun 07 18:54:58 where i comment Jun 07 18:55:01 writes to the log go to an in-memory ring buffer Jun 07 18:55:06 which is read by adb Jun 07 18:55:09 In the LogCat. Jun 07 18:55:10 wtf is adb Jun 07 18:55:13 speak sense Jun 07 18:55:26 renegadeandy: adb is a command line tool Jun 07 18:55:40 im on windows... Jun 07 18:55:44 tbh cnt be assed with that Jun 07 18:55:53 am in eclipse Jun 07 18:55:56 if you're using the SDK's Eclipse setup, Eclipse also reads the log from the running emulator or device and displays it somewhere Jun 07 18:55:57 is there nothing in there that can help Jun 07 18:55:57 Then Jun 07 18:55:59 It should be in logcat. Jun 07 18:56:02 renegadeandy: http://developer.android.com/guide/developing/tools/adb.html Jun 07 18:56:02 possibly in one of its console windows Jun 07 18:56:13 It shouldn't be in the Console Window. Jun 07 18:56:14 also, the DDMS tool reads the log and displays it in the main window Jun 07 18:56:20 Yeah. Jun 07 18:56:24 That's where you should check Jun 07 18:56:32 Matsy: i have never used the Eclipse SDK rig, so i dunno where it shows you the log Jun 07 18:56:36 i've just heard that it does :) Jun 07 18:56:41 Oh Jun 07 18:56:50 ctate: me too :-) Jun 07 18:57:18 .oO( I heard about that IDE called eclipse ) Jun 07 18:57:23 oh, i use Eclipse Jun 07 18:57:26 for editing and debugging Jun 07 18:57:33 ctate: so basically showDialog passes the dialog ID to onCreateDialog, which creates a dialog based on the ID, and returns it to showDialog, which then shows the returned Dialog..? Jun 07 18:57:38 but in a more hands-on way, running ddms manually and so on Jun 07 18:57:41 I can't even imagine developing Android applications without Eclipse. Jun 07 18:58:02 the9a3eedi: onCreateDialog() is essentially the dialog factory method Jun 07 18:58:06 All the manual actions.. Jun 07 18:58:09 Matsy: its possible Jun 07 18:58:15 you say showDialog() and the OS says huh, okay, i don't have that dialog yet Jun 07 18:58:24 Sure, it's possible. Jun 07 18:58:30 Matsy: I use Maven2 Jun 07 18:58:36 so it calls the factory callback -- onCreateDialog() -- which means "hey i need this dialog; gimme!" Jun 07 18:58:36 then onCreateDialog can be described as a sort of "multi-purpose Dialog Constructor" then :P Jun 07 18:58:53 eclipse is running the emulator and DDMS Jun 07 18:58:56 Matsy: and one of the other IDEs Jun 07 18:58:59 is DDMS for logoutput? Jun 07 18:59:06 DDMS is for a lot more. Jun 07 18:59:07 BUt, yeah Jun 07 18:59:12 It handles the log output too. Jun 07 18:59:13 so how do i access that Jun 07 18:59:18 and get it to spit out a message Jun 07 18:59:19 Well Jun 07 18:59:23 ddms is the general debugger interface for android devices. it's a command-line tool. Jun 07 18:59:24 You should only need the LogCat view. Jun 07 18:59:44 http://developer.android.com/guide/developing/tools/ddms.html Jun 07 18:59:46 In that view, you should already have a lot of information. Jun 07 18:59:55 im confused - logcat view.... Jun 07 18:59:59 renegadeandy: you really ought to read through the Dev Guide. :( Jun 07 19:00:04 Yeah. Jun 07 19:00:06 http://developer.android.com/guide/index.html Jun 07 19:00:16 ^ Jun 07 19:00:22 at least the overviews of various aspects of developing for Android Jun 07 19:00:56 i have read it, but need to get started quickly - all i need now is some debug output Jun 07 19:01:04 renegadeandy: are you sure, your app is running? Jun 07 19:01:06 i cannot see why I would need to add a view in my main.xml file for that Jun 07 19:01:09 of course it is Jun 07 19:01:12 when you launch ddms -- it's a command line tool or probably you can find it and double-click in Windows or whatever -- i believe it shows you the log in the bottom part of its main window Jun 07 19:01:23 renegadeandy: you don't have to Jun 07 19:01:35 Matsy: gonna test in emulator Jun 07 19:01:36 ...add a view to see log output Jun 07 19:01:44 Yeah, try that. Jun 07 19:01:49 There might be some other application hogging it Jun 07 19:01:52 you may have to select the device or emulator that you want to see, in the upper view that shows all available devices/emulators Jun 07 19:02:22 well ddms appaears to be one of the console windows under eclipse Jun 07 19:02:27 but i cannot see anything outputed on it Jun 07 19:02:37 And the application is running? Jun 07 19:02:54 * ctate doesn't know how the toolchain works under the SDK :( Jun 07 19:03:31 renegadeandy: what happens when you type "adb logcat" in one of the command windows Jun 07 19:03:40 ahh no i think i need to open a new view in eclipse for logcat Jun 07 19:03:42 or however the shell is called under windows Jun 07 19:03:48 Yeah Jun 07 19:03:52 There's a different view for LogCat. Jun 07 19:03:57 So, not the Console one. Jun 07 19:04:26 ok so i am getting a sax parse exception Jun 07 19:04:38 What's the exception? Jun 07 19:05:48 well its input to builder.parse() needs to be a reader or a inputreader Jun 07 19:05:51 and im passing it a url Jun 07 19:05:56 so i need to do that correctly Jun 07 19:05:58 oh Jun 07 19:05:59 Yeah Jun 07 19:06:01 bloody forgoten how Jun 07 19:06:12 new InputStream(url)); Jun 07 19:06:13 maybe? Jun 07 19:06:19 renegadeandy: so you have your log output now? Jun 07 19:06:27 emm, well i can seee the java error Jun 07 19:06:33 but its amongst a whole shit laod of other output Jun 07 19:06:38 not specifically my app Jun 07 19:06:41 Yeah. Jun 07 19:06:42 renegadeandy: yes Jun 07 19:06:47 There's a lot of output you won't use Jun 07 19:06:47 alright awesome Jun 07 19:07:04 but i can just filter for my tag i presume Jun 07 19:07:27 renegadeandy: yeah, most of the log output is from the OS itself, and is helpful to us Android folks when someone reports bugs :) Jun 07 19:07:32 Matsy: are the processes listed under the device ? Jun 07 19:07:38 Yes. Jun 07 19:08:16 I'd advice you to get a filter, renegadeandy that has the following information: Tag = AndroidRuntime, Log Level = error Jun 07 19:08:31 You can always see the runtime exceptions you're getting Jun 07 19:08:32 well, Tag= whatever you're using Jun 07 19:08:49 hmm it seems my application is not being killed off ? When app finishes, it should be removed from that process list ? Jun 07 19:08:58 but yeah, exceptions might be thrown by the internals but still be relevant to your app Jun 07 19:09:04 Yeah. Jun 07 19:09:10 johnnyzen: applications != processes in Android Jun 07 19:09:24 after your activity / app finishes, the process may be kept around, inactive, for a while Jun 07 19:09:31 johnnyzen: what do you mean by finish? Jun 07 19:09:32 as an optimization for launching the app again within a short period of time Jun 07 19:10:00 biafra: calling finish() Jun 07 19:10:25 finish() just destroys the current activity Jun 07 19:10:28 bloody hell how do i retrieve a file from the net using java straight into the document parser :@ Jun 07 19:10:31 not the application or its process Jun 07 19:10:47 renegadeandy: just create a stream to the URL? Jun 07 19:10:52 ctate: a ha. but need to kill the GPS when someone exits the app, for their battery sake. Jun 07 19:11:07 johnnyzen: you should be shutting it down in onStop() Jun 07 19:11:08 johnnyzen: do that in onPause/onStop Jun 07 19:11:28 or in onPause(), if you don't actually need it when keyguard is up, etc. Jun 07 19:11:37 log tag = AndysHTCAPP Jun 07 19:11:40 doesnt filter appropriately Jun 07 19:11:43 filters everything Jun 07 19:11:48 thats the name of my app... Jun 07 19:11:55 ok, thanks guys :) Jun 07 19:12:11 renegadeandy: the "tag" is the string you use when calling Log.v(...) Jun 07 19:12:18 ooo i c Jun 07 19:12:20 Yeah. Jun 07 19:12:25 ok, so how do i filter for all messages from my app? Jun 07 19:12:29 romainguy: nice talk about making android UIs more efficient Jun 07 19:12:29 or must it be tag Jun 07 19:12:33 so i just always use same tag? Jun 07 19:12:35 biafra: thanks Jun 07 19:12:41 Yesh. Jun 07 19:12:44 That's the way. Jun 07 19:12:45 just always use the same tag Jun 07 19:12:58 ahh, awesome, thanks guys - you are seriously helpful Jun 07 19:13:32 * ctate high-fives romainguy Jun 07 19:13:50 although ahem some other people answered all the eclipse/SDK questions... ;) Jun 07 19:14:13 romainguy_: Can you look at a change in gerrit and tell me if it's too costly? 10288 Jun 07 19:14:25 Haha ;p Jun 07 19:14:32 Sigh Jun 07 19:14:36 I want to finish this application. Jun 07 19:14:44 yeah I know Matsy cheers mate Jun 07 19:14:44 so, i have another tricky android question.... i try to download and install an application from my own website Jun 07 19:14:58 It's juist Jun 07 19:15:03 I can't be arsed working on it anymore Jun 07 19:15:05 kRutOn: I cannot accept this patch as is Jun 07 19:15:08 i send an intent: Starting activity: Intent { action=android.intent.action.PACKAGE_INSTALL data=http:// Jun 07 19:15:10 kRutOn: it might break existing behaviors Jun 07 19:15:23 but get a android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.PACKAGE_INSTALL Jun 07 19:15:28 anyone any idea?? Jun 07 19:15:40 if anything i thought i might cause a security exception? Jun 07 19:16:14 ctate: http://code.google.com/p/android/issues/detail?id=2897 Jun 07 19:16:52 romainguy_: Okay, that's what I kind of figured. Jun 07 19:17:26 kRutOn: but if there was an option to enable it that'd be awesome Jun 07 19:17:31 whilst on talkign about maps, is there anyway to grab the accuracy data ? Jun 07 19:17:41 romainguy_: BWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA Jun 07 19:17:43 Haha, romainguy Jun 07 19:17:53 romainguy_: like setAutoSummaries(boolean) or something? Jun 07 19:17:53 What the hell Jun 07 19:18:04 * ctate changes the channel name to #schadenfreude Jun 07 19:18:28 kRutOn: auto summary is misleading because it already does that, but yes Jun 07 19:18:37 you may also want to add an XML attribute to enable that option Jun 07 19:19:43 Hmm Jun 07 19:19:46 Gotta test something. Jun 07 19:20:18 Is Intent.putExtra generally used to insert some information that intent about what the purpose of the startup is? Jun 07 19:20:22 Or, am I totally wrong? Jun 07 19:21:00 kRutOn: FYI, your change description on 10288 is one long line. Can you please break it up into 80-col chunks? Jun 07 19:21:20 doesn't even fit in my browser window, let along playing nice with git :) Jun 07 19:21:31 i mean, in future submissions as a matter of policy Jun 07 19:21:51 git recommended style is 60 col for the first summary line, then a blank line, then 80 cols for the rest of the description Jun 07 19:21:53 ctate: let's face it, gerrit could do the wrapping Jun 07 19:21:55 sooo tired :) Jun 07 19:21:58 romainguy_: shhhhhhhhhhhh Jun 07 19:22:00 but yes Jun 07 19:22:07 he needs to use instead of
Jun 07 19:22:10  ctate: it's @#!# annoying when you do a git commit -m
Jun 07 19:22:20  what's -m ?
Jun 07 19:22:27  to specify the commit message
Jun 07 19:22:27  06-07 20:18:20.674: WARN/System.err(812): java.net.SocketException: Permission denied (maybe missing INTERNET permission)
Jun 07 19:22:32  how do i giv it permission?
Jun 07 19:22:35  Oh.
Jun 07 19:22:36  rejser
Jun 07 19:22:38  renegadeandy
Jun 07 19:22:41  ctate: I figured it would be wrapped, but I see it isn't :-)
Jun 07 19:22:44  In the AndroidManifest
Jun 07 19:22:59  (its the XML file on the left side)
Jun 07 19:23:00  renegadeandy: in your AndroidManifest.xml file you declare that your app wants to talk to the internet
Jun 07 19:23:06  renegadeandy: read the documentation. Permissions are documented very clearly in the introduction.
Jun 07 19:23:10  If only we had some kind of advanced technology that could figure out where to wrap lines.
Jun 07 19:23:23  manuals exist for a /reason/
Jun 07 19:23:33  kRutOn: you cannot expect git and related tools to be user friendly
Jun 07 19:23:48  that would make our lives easier!
Jun 07 19:23:51  Anyone: Do I just need to kill the location listener to shut down the GPS ?
Jun 07 19:23:54  unknown_lamer: yeah.. but I don't think that the fact that upper management wants to make developpers life a misery is going to help him much
Jun 07 19:24:04  romainguy_: Linus is a cruel man :)
Jun 07 19:24:09  unknown_lamer: :P
Jun 07 19:24:14  he thrusts technology onto the world only he is smart enough to use.
Jun 07 19:24:20  jasta: he's very good at some things, not so much as other things
Jun 07 19:24:25  or conceivably s/smart/bent/
Jun 07 19:24:26  like user friendliness :)
Jun 07 19:24:41  although i actually like git these days
Jun 07 19:24:42  jasta: nah, git is just the ultimte unix vc system
Jun 07 19:24:43  it has come a long way
Jun 07 19:24:52  I love the concepts behind git
Jun 07 19:24:57  and gerrit/repo is getting pretty slick
Jun 07 19:24:57  but it's such a pain to use
Jun 07 19:24:57  I was able to master darcs in a few days but git still hurts
Jun 07 19:25:00  i have spent the time to really learn how it works and it has changed the way i use version control radically
Jun 07 19:25:07  it throws its internal complexity in your face in every command
Jun 07 19:25:15  romainguy_: i really like the gitx tool.  have you checked that out?
Jun 07 19:25:18  yeah
Jun 07 19:25:27  romainguy_: you see my recent repo feature req?
Jun 07 19:25:29  i mostly use it to do line-scoped staging
Jun 07 19:25:37  I also discovered that adding the current branch name to my shell prompt makes my life easier :))
Jun 07 19:25:37  which is an amazing feature of git
Jun 07 19:25:40  ctate: no?
Jun 07 19:25:42  http://jira.source.android.com/jira/browse/REPO-28
Jun 07 19:25:48  romainguy_: oh, that is brilliant
Jun 07 19:25:52  i should definitely add that
Jun 07 19:26:02  romainguy_: omg yes please.  how does one do that?
Jun 07 19:26:07  one sec
Jun 07 19:26:29  ok so
Jun 07 19:26:32  this is getting frustrating
Jun 07 19:26:42  how can I have a reliable timer go off when the device is sleeping
Jun 07 19:26:55  setsotimeout doesnt work, handler doesnt work
Jun 07 19:27:25  set an alarm
Jun 07 19:27:35  and that will keep the cpu active
Jun 07 19:27:38  nope
Jun 07 19:27:40  ctate: http://pastebin.com/m19af4f92
Jun 07 19:27:49  oh it just brings the cpu active when it goes off
Jun 07 19:27:50  hm
Jun 07 19:27:52  nyt: correct
Jun 07 19:27:55  I guess thats the only way to do it then
Jun 07 19:27:56  I also included the build target name so that I don't build/sync the wrong one :)
Jun 07 19:28:02  and holds a wake lock for the duration of the alarm delivery broadcast
Jun 07 19:28:31  i remember some of the docs saying use handler for reliable timers
Jun 07 19:28:35  romainguy_: you can call shell funcs from within PS1?  o  m  g
Jun 07 19:28:40  yeah
Jun 07 19:28:47  nyt: that's while you're executing
Jun 07 19:28:54  but you're talking about a different kind of case
Jun 07 19:28:56  yea
Jun 07 19:29:04  this is what alarms are *for*
Jun 07 19:30:42  tmobile seems to disconnect sockets
Jun 07 19:30:46  if no data is sent over them for X amount of time
Jun 07 19:30:47  romainguy_: you might want to use something like git rev-parse --symbolic-full-name HEAD instead...
Jun 07 19:30:54  so need to keep some keepalives going
Jun 07 19:31:00  I have no idea what you just said
Jun 07 19:31:10  and I don't really care :)
Jun 07 19:31:11  heh
Jun 07 19:31:16  hmm?
Jun 07 19:34:29  romainguy_: wooooooooo branch in the prompt
Jun 07 19:34:37  :D
Jun 07 19:35:30  sorry guys, can anyone help me. I am not sure how to kill the GPS. Do I just need to kill the location listener ?
Jun 07 19:35:42  i believe so, johnnyzen
Jun 07 19:35:53  thanks ctate :)
Jun 07 19:36:18  wouldnt removeLocationListener work in the LocationManager service?
Jun 07 19:36:48  *removeUpdates
Jun 07 19:37:47  cool, i will give that a go.
Jun 07 19:37:49  i thought that's what he meant by killing the location listener, sorry
Jun 07 19:37:57  yeah, you tell the Location Manager that you're done
Jun 07 19:38:16  out of interest, is anyone making some good money from google apps ?
Jun 07 19:38:25  *sorry android apps
Jun 07 19:39:10   also remove any GPS status listener you have going
Jun 07 19:39:25  i don't think anybody's really talked about how lucrative their Android sw might be
Jun 07 19:39:30  ctate + matsy: cool
Jun 07 19:39:56  seen a lot of info on new android phones being developed
Jun 07 19:40:06 * kRutOn builds the repo again to make sure his changes don't blow up
Jun 07 19:40:15  johnnyzen: my guess is that a few are making okay money, most aren't
Jun 07 19:40:19  I can't even think about selling my aps
Jun 07 19:40:22  and heard of some iphone developers getting a fair wedge
Jun 07 19:40:26  But then again
Jun 07 19:40:34  My apps aren't even remotely good enough to be sold.
Jun 07 19:40:40  I do have a self service module built in!
Jun 07 19:40:44  johnnyzen: ofc there are a lot more iphones out there than android phones at the moment
Jun 07 19:40:50  A lot of apps lack that, seriously
Jun 07 19:41:10  johnnyzen: if I go by my aps, Things are slow to take off, with people buying the full version and returning it after 20 or so hours
Jun 07 19:41:37  sammy: and getting refunds ?
Jun 07 19:41:43  johnnyzen: yep
Jun 07 19:42:42  That's why I would never sell my app via the market
Jun 07 19:42:53  johnnyzen: I actually asked one of the persons who returned the full version of Circuits after 12 hours whether he'd care to ell me why. The answer was that it wasn't his kind of game .. something he might as well have found out by checking out the demo
Jun 07 19:43:02  do anything think that publishing a free (lite version) and paid is a better way to go ?
Jun 07 19:43:57  johnnyzen: putting out a demo is fairer to the customers imo, even if the customers don't really repay it in kind
Jun 07 19:44:00  sammyF: my experience of people is that they are generally a bit difficult to understand their actions
Jun 07 19:44:53 <_Auron_> in a few days I'm going to go back into heavy work on my game
Jun 07 19:45:08  sammyF: e.g. a bit weird lol. not saying I'm not weird, but find it difficult to understand why people do the things they do.
Jun 07 19:45:08  Heh.
Jun 07 19:45:17  I'm even developing a WoW guild chatter.
Jun 07 19:45:18 <_Auron_> but the app restoring problem I have needs to be fixed soon
Jun 07 19:45:23  That should be a lot more fun.
Jun 07 19:45:37  Chatting with guildmates on your phone.
Jun 07 19:45:42  i guess most android users dont have an account for paying like all iphone users need to have
Jun 07 19:45:56 <_Auron_> ?
Jun 07 19:45:56  Should be used by a lot of users.
Jun 07 19:46:15  You dont need to have some payment method attached to your Apple account, ulrich
Jun 07 19:46:27  At least, to use the iphone
Jun 07 19:46:44  where can i download the Xpath jar for java?
Jun 07 19:46:45  johnnyzen: as far as I can see, the only way to at least break even is to have very very polished applications out, and if possible more than one. charge more than 0.99c too .. it doesn't really matter to customers whether it's 99c or 2.99 .. the 2$ more don't make a real difference in THEIR purse, but will in yours,  and the comments and refund rates will be the same anyway. just make sure it's worth being bought
Jun 07 19:47:21  It seems the most succesful app I have seen is the game Abduction. He seemed to get it right (although I dont know his refund rates)
Jun 07 19:47:38  I dont like Abduction.
Jun 07 19:47:39  :(
Jun 07 19:47:46  that being said, the sales didn't even repay the phone so far
Jun 07 19:47:46  Its a lame version of PapiJump imo
Jun 07 19:48:02   where can i download the Xpath jar for java?
Jun 07 19:48:05  hm ok
Jun 07 19:48:10  cnt find it anywher
Jun 07 19:48:33  Download dom4j
Jun 07 19:48:37  And look at the documentation
Jun 07 19:48:39  www.dom4j.org
Jun 07 19:48:44  Should help you out with XPath
Jun 07 19:48:48  sammyF: yes good points. I wondered on the price structure of a app. - how to charge etc.
Jun 07 19:48:57  *how much to charge
Jun 07 19:48:58  but still there is some hurdle why android users buy less apps
Jun 07 19:49:04  Ah noooo
Jun 07 19:49:07  Wisdom teeth :<
Jun 07 19:49:22  ulrich. Android apps are generally of a lower quality
Jun 07 19:49:29  ulrich: whats the hurdle ?
Jun 07 19:49:56  Matsy: yes I agree.
Jun 07 19:50:18  iPhone developers are really bright
Jun 07 19:50:21  johnnyzen: of course, if the aplication was made by a team, you'll need to sell and probably charge more, to repay everybody. being a one man team myself (I do all the gfx, sound and coding :/ everything that comes in is .. well .. Actually it's for the ex and the kids, but it WOULD be mine otherwise ;)
Jun 07 19:50:27  I have to admit, there are some good Android application
Jun 07 19:50:28  well then someone should build a high quality app like aFart for money :p
Jun 07 19:50:42  And
Jun 07 19:50:44  ulrich: there is one on the market :P
Jun 07 19:51:12  I think
Jun 07 19:51:36  but it was too high-brow for me, so I didn't test nor buy it  :P
Jun 07 19:52:34  ffs
Jun 07 19:52:44  this is stupidly complex
Jun 07 19:52:50  might as well search the xml manually at this rate
Jun 07 19:52:54  hate frickn xml
Jun 07 19:53:06  I have seen some great looking games on the iphone, compared to Android, is the iphone better for developing games or is it the Android developers have less skills ?
Jun 07 19:53:31  johnnyzen: lol
Jun 07 19:53:51  Android hasn't been out as long
Jun 07 19:53:51  why does the gap seem so big ?
Jun 07 19:54:09  In my holidays
Jun 07 19:54:10  johnnyzen: you're lucky people here are generally quite mature. otherwise I'd say "start putting on your asbest suit" ;)
Jun 07 19:54:23  I'll be working a lot more with Android.
Jun 07 19:54:40  I don't think Android is "worse" than OS X
Jun 07 19:54:43  johnnyzen: the iPhone was out longer than any Android phone?
Jun 07 19:54:52  Yeah.
Jun 07 19:55:00  And they had a lot of experience in OS X programming
Jun 07 19:55:06  When Android was entirely new.
Jun 07 19:55:10  yep
Jun 07 19:55:36  johnnyzen: i also think that e.g. applie store rejects applications if they dont follow the UI styleguides   -  on android hardly anyone follows them
Jun 07 19:55:41  but its also because iphone developers can optimize their code even in assembler
Jun 07 19:55:57  johnnyzen:  this gives apps a much more "commercial" look and feel
Jun 07 19:55:59  sammyF: no offence intended
Jun 07 19:56:11  johnnyzen: none taken. don't worry :)
Jun 07 19:56:26  cnkurzke: yes good point :)
Jun 07 19:57:02  johnnyzen: I'd definitely say i'm *NOT* a skilled java programmer. I only started with it slightly over a month ago ;)
Jun 07 19:57:04  I think it needs the commerical look, as maybe people expect this
Jun 07 19:57:23  johnnyzen:  i think many android apps have the look and feel of early TCL/TK apps on unix (including my own... :( )
Jun 07 19:57:41  sammyF: well me too, i started about a month ago, and I do lack skills :)
Jun 07 19:58:22  johnnyzen: sammyF:  i'm pretty handy around Java, but i lack photoshop / Adobe illustrator skills
Jun 07 19:58:25  johnnyzen: nobody stops you from creating commercial looking applications. The API is actually quite nice, once you wrapped your head around some of the weirder concepts
Jun 07 19:58:52  sammyF: I hope the app. I am making looks good.
Jun 07 19:59:09  cnkurzke: if that's a consolation : all the stuff in my games was done using GIMP and Inkscape  ;)
Jun 07 19:59:18  i spent 4 hrs yesterday to understand Adobe Illustrator and create a 48 pixel icon following the design guidelines.  looks samn slick, but - took a SHITLOAD of time, compared to jsut a plain old unix png
Jun 07 19:59:24  cnkurzke: I have good graphic skills, if ever you need any help, I wil be happy to help
Jun 07 19:59:57  johnnyzen, i'd love to take you actually up on that, once my app is progressed a bit more, i could need some commercial grade graphics.
Jun 07 20:00:06  i'm a programmer, not an artist unfortunately... :(
Jun 07 20:00:29  cnkurzke: no problems, grab me a email at johnnyzen@gmail.com
Jun 07 20:00:35  johnnyzen, are you by any chance local to the bay area?
Jun 07 20:00:44  based in the UK
Jun 07 20:00:57  dang... oh well, still better than nothing.
Jun 07 20:01:03  :)
Jun 07 20:01:25   johnnyzen:  i was clost to going put a flyer up in the local arts college.
Jun 07 20:01:45  cnkurzke: maybe in return you could help with some programming headaches :)
Jun 07 20:02:20  johnnyzen: glad to help, but - my prob is i have ~10 yrs of java, and ~4 weeks of "android".
Jun 07 20:02:32  so i'm still struggling with the internals of the droid...
Jun 07 20:02:36  in Android, enums are bad :)
Jun 07 20:02:54  guys if i have added a jar to my build path - do I need to do anything in order for it to work
Jun 07 20:03:00  or do i just use the standard imports as normal
Jun 07 20:03:34  cnkurzke: well beats my java skills, took me  a week to work out a method meant
Jun 07 20:03:56  ;)
Jun 07 20:04:11  ...
Jun 07 20:04:18  Enums are bad in Android?
Jun 07 20:04:20  How so?
Jun 07 20:04:28  ..,,.^-^
Jun 07 20:04:30  .. I'm a frequent user of enums >_>
Jun 07 20:04:51   guys if i have added a jar to my build path - do I need to do anything in order for it to work
Jun 07 20:04:51   or do i just use the standard imports as normal
Jun 07 20:05:56  http://pastebin.com/m35984713
Jun 07 20:06:04  i am getting those errors on runnin an xpath query
Jun 07 20:06:08  Matsy: java enums are surprisingly high overhead
Jun 07 20:06:12  it seems the classes are not bein found or something
Jun 07 20:06:18  both in footprint and at runtime
Jun 07 20:07:27  Matsy: there is a video about game development for Android at the Google IO site. You might want to check it out
Jun 07 20:08:04  somebody please answer my question - i am getting errors : http://pastebin.com/m35984713 when I am trying to use an xpath query using dom4j, can anybody shade some light on the reason behind them, they make no sense to me
Jun 07 20:08:06  some very good stuff about performance (one of which was, if I recall correctly, AVOID ENUMS) ;)
Jun 07 20:13:11  johnnyzen: you got mail....
Jun 07 20:13:55  btw. ctate, you helped me a lot with my latest game, so if you want it just pm me your email address (even though I suppose you can have any product from the market for free ;)
Jun 07 20:14:02  heck no
Jun 07 20:14:17  the Market guys are really good about taht
Jun 07 20:14:31  you have to actually PAY?
Jun 07 20:14:37  we can't even get locked apps on our dev builds
Jun 07 20:14:45  woah
Jun 07 20:14:46  yeah
Jun 07 20:14:51  they're doing it right.
Jun 07 20:15:28  the paid apps i have, i paid for :)
Jun 07 20:15:36 <_Auron_> heh
Jun 07 20:15:38  renegadeandy: first, catch the exception to get more info
Jun 07 20:15:55  hm actually i'm not sure i have more than one paid app
Jun 07 20:15:57  i'd have to check
Jun 07 20:16:11  ctate: heh ... nice. well .. my offer still stands. most of the people here who helped me out one way or another got it for free (and then I wonder why don't make money .. go figure:P
Jun 07 20:16:20  the one locked app i have is Robo Defense
Jun 07 20:16:27  but i thought i'd bought a copule...
Jun 07 20:16:43  hm, maybe not
Jun 07 20:16:52  okay, the only paid app i have, i paid for :)
Jun 07 20:16:53  what means locked? No source available or ?
Jun 07 20:16:58  copy protected
Jun 07 20:17:04  oh
Jun 07 20:17:23  cnkurzke: just reading now :)
Jun 07 20:17:25  some for-pay apps are installed in a special way that prevents them from being copied off of the phone
Jun 07 20:17:25  interesting.
Jun 07 20:17:46  [unless you have a root-capable phone, like our internal engineering builds are]
Jun 07 20:17:55  don't I have access to the filesystem on a dev-phone?
Jun 07 20:18:06  the ADP1s are root-capable
Jun 07 20:18:18  but the Market doesn't show those users the copy-protected apps :)
Jun 07 20:18:22 * srm has no dev-phone atm. only the emulator :)
Jun 07 20:18:33  ctate: well....
Jun 07 20:18:52  ctate: /build.prop/
Jun 07 20:18:54  ;)
Jun 07 20:19:19  AakashPatel: i wouldn't be surprised if someday the server side of Market started enforcing it too
Jun 07 20:19:19  off for babylon a.d. :)
Jun 07 20:19:40  ctate: me either actually
Jun 07 20:19:58  well
Jun 07 20:20:12  ctate: it does...it reads the values of some stuff in build.pro
Jun 07 20:20:14  p
Jun 07 20:20:22  then it gives you the list of apps and stuff
Jun 07 20:21:13  well..it doesnt really read it...the market sends some values in the request to the server
Jun 07 20:25:49  srm i dont even know where its happeneing
Jun 07 20:27:37  http://pastebin.com/m2dd7fed9
Jun 07 20:27:44  it says it cannot find the class or somethig.....
Jun 07 20:29:20  ,.,,..,.,,..,.,.,:'(
Jun 07 20:31:23  If I submit API changes to gerrit, do I include current.xml as well?
Jun 07 20:32:41  renegadeandy: google the errors. I was refering to "Uncaught handler: thread main exiting due to uncaught exception" ... and I think "ERROR/dalvikvm(1000): Could not find class 'org.jaxen.dom4j.Dom4jXPath', referenced from method org.dom4j.xpath.DefaultXPath.parse" is at least obviuos
Jun 07 20:32:47  *obvious
Jun 07 20:33:19  renegadeandy: Are you trying to use external JARs in your project or something?
Jun 07 20:34:30  kRutOn yes
Jun 07 20:34:34  i have the dom4j.jar
Jun 07 20:34:39  i just added it to my build path
Jun 07 20:34:43  is there something else i need to do
Jun 07 20:36:20  kRutOn: If they're intended to be new public APIs, you will need to update current.xml otherwise the build will fail.
Jun 07 20:36:59  kRutOn: what are you proposing to add?
Jun 07 20:37:32  ctate: What romainguy suggested looking at that gerrit change
Jun 07 20:37:45  ^_^
Jun 07 20:37:58  I made API changes when I added WiFi EAP-TLS and stuff, I just never uploaded it to Gerrit
Jun 07 20:38:13  renegadeandy: You can't use external JARs AFAIK.
Jun 07 20:38:35  .....
Jun 07 20:38:49  Matsy suggested i used dom4j...
Jun 07 20:38:53  what's the number again, kRutOn
Jun 07 20:38:54  ?
Jun 07 20:38:55  and you cannot use external jars ////
Jun 07 20:39:01  so how the heck can you use xpath
Jun 07 20:39:02  ctate: 10288
Jun 07 20:39:59  i don't see why an API change is involved in that
Jun 07 20:40:22  ctate: Adding an attribute to ListPreference for the XML files
Jun 07 20:40:38  aha
Jun 07 20:40:48  but i see that you haven't actually uploaded that yet
Jun 07 20:40:59  so you cannot use external jars.... so is there a way to use xpath with standard java api
Jun 07 20:41:03  ctate: Yes, I was just making sure I need to include current.xml
Jun 07 20:41:28  when you add the new public attribute, the build will fail and tell you that you need to do a make update-api   :)
Jun 07 20:41:29  kRutOn: You can use external jars. though they have to be packaged into the apk
Jun 07 20:41:42  how...
Jun 07 20:41:48  how do you package them in biafra
Jun 07 20:42:02  renegadeandy: maven does that for me :-)
Jun 07 20:42:18  kRutOn: the update-api build target will adjust current.xml for you
Jun 07 20:42:30  (after you've made your changes)
Jun 07 20:42:36  ctate: okay, I just pushed the replacement
Jun 07 20:42:49  what folder do i put it in then...
Jun 07 20:42:58  cnkurzke: you have mail :)
Jun 07 20:42:58  assetts?
Jun 07 20:43:40  kRutOn: err, does it actually work?  i see that you haven't made it public.
Jun 07 20:43:52  (by putting a corresponding entry in public.xml)
Jun 07 20:44:20  huh, I have it on my local copy...
Jun 07 20:44:33  can somebody please bloody answer me - how do i add an external jar to my eclipse android project.....
Jun 07 20:44:44  it satsifies compiling but wont work when @ runtime
Jun 07 20:44:58  kRutOn: did you forget to commit the public.xml change before uploading?
Jun 07 20:45:00  ctate: Oh, I bet git did crlf translation.. it's on line 1015
Jun 07 20:45:13  oh wait, there it is, nm
Jun 07 20:45:27  holy fsck the crlf translation
Jun 07 20:45:38  that will get you an instant never-check-this-in
Jun 07 20:45:41  sorry
Jun 07 20:45:44  yeah
Jun 07 20:46:39  kRutOn please tell me : how do i add an external jar to my eclipse android project..
Jun 07 20:48:33  renegadeandy: You can either have a build tool like ant do some magic involving extracting the JAR into the correct directory or just include the source .java files
Jun 07 20:49:07  renegadeandy: I haven't done it, though, so that's probably about the extent of the help I can give you. Sorry.
Jun 07 20:49:27  god thats annoying.... so do you know if xpath works on opml files?
Jun 07 20:49:40  and do you know if standard java api supports xpath
Jun 07 20:50:35  libxml2 is in Android, but I'm not sure whether XPath is exposed to the Java stack
Jun 07 20:51:47  balls
Jun 07 20:51:51  so i need to parse the xml myself
Jun 07 20:51:59  time for some string.contains then
Jun 07 20:52:00  :'(
Jun 07 20:52:23  There are definitely XML parsers in Android.
Jun 07 20:53:27  where can i get example usage though
Jun 07 20:54:18  renegadeandy: you what's annyoing? http://lmgtfy.com/?q=android+parse+xml
Jun 07 20:54:26  *know
Jun 07 20:56:05  renegadeandy: How big is your XML source?
Jun 07 20:57:01   one TRILLION lines! 
Jun 07 20:57:16  Oh, you can just load that into memory then!
Jun 07 20:57:22  Anyone: can anyone help me, I am having trouble understanding how to match a word with a database text result, then putting it though a SpannableString ?
Jun 07 20:57:45 * kRutOn puts 500 changesets on Gerrit for a simple change.
Jun 07 20:57:59  heh
Jun 07 20:58:27  For example if  I want to make the word "hello" a clickable link from the result "hello my name is bill"
Jun 07 20:58:38  I still like how it tells you to do "p4 edit" to change the API
Jun 07 20:58:51  that hasn't been pushed?  bah
Jun 07 20:59:45  "Sir, what is your purpose for visiting the Google campus today?" "I need to find a machine where I can use p4 edit to get permissions to change the public API." "Go on in."
Jun 07 21:00:27  kRutOn: https://review.source.android.com/8253
Jun 07 21:01:19  ctate: That makes more sense to external people.
Jun 07 21:01:27  that's why the change
Jun 07 21:01:43  note the date.
Jun 07 21:02:42 * kRutOn gives it a +1
Jun 07 21:03:40  *bump*
Jun 07 21:03:43  is there something in java that can parse opml
Jun 07 21:04:44  it appears not
Jun 07 21:04:59  not within standard api at least
Jun 07 21:05:06  god - this is turning into a nightmare
Jun 07 21:05:13  renegadeandy: Isn't it just XML?
Jun 07 21:05:49  well, when trying to parse it as follows, it returns a sax parse exception http://pastebin.com/m2d2672d8
Jun 07 21:06:14  not well formed etc
Jun 07 21:06:16  apparantly
Jun 07 21:07:35  kRutOn: https://review.source.android.com/8253 again
Jun 07 21:08:07  ctate: hold on while I press the Staples button
Jun 07 21:08:15  Rome/Informa/Jakarta FeedParser ... all opml parsers according to google (if I didn't got it totally wrong)
Jun 07 21:08:36  ctate: Did you ping him or was he just looking at the change list
Jun 07 21:08:53  srm so how do i use one of those in my app
Jun 07 21:08:55  i went looking for someone with approval rights to platform/build
Jun 07 21:09:22  sammyF: sorry i didn't answer before; i got your email; thanks!
Jun 07 21:09:34  renegadeandy: no idea.
Jun 07 21:09:42  well thats the point
Jun 07 21:09:46  ctate: np. you got occupied by other stuff :) enjoyed
Jun 07 21:09:50  enjoy -ED
Jun 07 21:09:52  CAN ANYBODY TELL ME HOW TO PARSE OPML IN ANDROID!
Jun 07 21:10:13  that's to load for me...
Jun 07 21:10:19  loud that is
Jun 07 21:10:24  haha
Jun 07 21:10:39  i spent 2 hours just tryna parse one stupid file
Jun 07 21:10:46  i dont want to have to resort to a bufferedreader
Jun 07 21:11:29  anybody, in this world - have you got any idea how to parse opml with android
Jun 07 21:11:29  renegadeandy: Is the document malformed? You can define your own error handler.
Jun 07 21:11:32  not even google does
Jun 07 21:11:41  renegadeandy: http://developer.android.com/reference/javax/xml/parsers/DocumentBuilder.html#setErrorHandler(org.xml.sax.ErrorHandler)
Jun 07 21:11:46  doesnt look malformed to me
Jun 07 21:14:23  even defining my own error handler does nothing
Jun 07 21:14:27  it still crahses
Jun 07 21:14:29  ffs
Jun 07 21:14:42  i made my own error handler, which had nothing in the interface implemetnaiton stubs
Jun 07 21:14:45  yet it still crashes
Jun 07 21:18:40  screw it
Jun 07 21:18:42  im doing this manually
Jun 07 21:22:59  ctate: There are a lot of trivial changes hanging out, actually :-) https://review.source.android.com/8329
Jun 07 21:23:36  kRutOn: at least I approved it :p
Jun 07 21:23:39  er
Jun 07 21:23:41  LGTM'd
Jun 07 21:25:29  yeah, I had forgotten about it. I thought it was merged, actually.
Jun 07 21:28:27  kRutOn: yeah, i know.
Jun 07 21:45:56  the speed of execution in the emulator - is this accurate against the speed of execution when code runs on the actual phone?
Jun 07 21:46:32  yes
Jun 07 21:46:38  but drawing is much much faster
Jun 07 21:49:30  well, if you're on a fast desktop computer, the emulator's execution speed is comparable to a device's
Jun 07 21:49:47  if you have a somewhat slower desktop machine, the emulator is slower than a real device
Jun 07 21:49:55  the emulator is extremely cpu intensive
Jun 07 22:01:05  hi all, can i "inject" a new option field in to the default contact list ? ( i want to inject / add a chat language dropdown selector box.. ) so that i can sellect the language for the spell checker to user for that person
Jun 07 22:01:47  hello everybody, anybody knows a way to send two IM-addresses to a EDIT_OR_INSERT Intent?
Jun 07 22:01:47  i have manny persons on my phone where i use different language .. so i need ability for android to change the spell check language depending on who i am talking to ... can this be done ?
Jun 07 22:02:06  it sucks having to change the language all the time
Jun 07 22:02:11  fanno: you want global access or just one program?
Jun 07 22:02:36  you could create a ContentProvider yourself bound the contact ID:s
Jun 07 22:03:18  keychar: global i think so i can use it when sms / google talk .. email etc..
Jun 07 22:03:49  keychar: i have no idea what that means i wanna learn the api for this if i have to but i dont wanna learn it if i cant do what iam  trying to do.
Jun 07 22:04:21  keychar: i have no experiance with the api. =) so i am a "blank" slade
Jun 07 22:04:34  just hate changing language so much i wanted to try and make this
Jun 07 22:04:38  if posable
Jun 07 22:04:49  there's a problem, because I'm pretty sure you will not be able to add your data to those programs :(
Jun 07 22:05:26  so i would have to cteate my own sms app ect ?
Jun 07 22:05:29  aswell ?
Jun 07 22:05:42  probably
Jun 07 22:05:43 <_Auron_> wow, the little scrollbar resizes according to the length of the text messages when viewing message history with someone, so when you scroll up and down it looks like a worm inches its way up/down :X
Jun 07 22:05:54  keychar: damn =/
Jun 07 22:05:57 * _Auron_ never noticed
Jun 07 22:06:37  keychar: is there no "hooks" that can be used to detect who a taget is for google talk / sms ? etc ?
Jun 07 22:08:03  keychar: you can check out android.git.kernel.org and see if you find something you can use, but I don't think so
Jun 07 22:08:21  _Auron_: sounds cool, what program=?
Jun 07 22:08:32 <_Auron_> uh.. the default messaging app in android
Jun 07 22:08:35 <_Auron_> o.o
Jun 07 22:08:48  lol, first one was obviously to keychar
Jun 07 22:08:50 <_Auron_> its subtle but if you scroll up and down it looks like a worm inching up/down
Jun 07 22:09:00  aah, haven't tried it out
Jun 07 22:09:13  have 2 contacts on google talk :P
Jun 07 22:09:14 <_Auron_> by messaging I meant text messages, not IM
Jun 07 22:09:28  ahaa,
Jun 07 22:09:41  cool :D
Jun 07 22:10:03  keychar: i am suprised this is not a build in feature =/
Jun 07 22:10:53  english ... danish ... english ... danish .. driving me crazy ! hehe
Jun 07 22:11:09  _Auron_: yeah, we fixed that in Cupcake, or at least we fixed that in the framework, I'm not sure if the app enabled the flag that fixes this
Jun 07 22:11:38 <_Auron_> heh, well I'm on the HTC 1.5
Jun 07 22:11:46  romainguy: what's the point? can I get some useful data from it or is it just for the cool effect?
Jun 07 22:12:00  keychar: what?
Jun 07 22:12:20 <_Auron_> the effect is actually a bug, but it looks nifty
Jun 07 22:12:38  well it's not really a bug :p
Jun 07 22:12:48  so what is it for? :P
Jun 07 22:12:59  or simply: why? :P
Jun 07 22:13:05  it's a side effect of using items of different heights in a list
Jun 07 22:13:25  to "fix" this issue you need to disable the smooth scrollbars
Jun 07 22:13:31  aah, since not all objects is loaded at the same time?
Jun 07 22:13:34 <_Auron_> which text messages tend to be different lengths and as a side effect, creates different heights for each entry
Jun 07 22:13:35  yes
Jun 07 22:13:45  the scrollbar will keep its size stable but it will jump instead of smoothly moving
Jun 07 22:13:45 <_Auron_> so it 'guesses'
Jun 07 22:17:18  how come "import import android.widget.TextView;" doesnt work? just tyring out the HelloAndroid example, has there been changes in 1.5 thats why its changed or something?
Jun 07 22:17:59  double import?
Jun 07 22:18:30  err my bad thats just a type i typed here... its not actually double in my code
Jun 07 22:18:31  anyone got a clue on my original question? double IM addresses to a single ACTION_INSERT_OR_EDIT intent?
Jun 07 22:19:03  Can I have the emulator in landscape mode?
Jun 07 22:19:12  anxiolytic: numpad 7
Jun 07 22:19:35  k4r1m: any error message?
Jun 07 22:19:38 <_Auron_> or ctrl+f11
Jun 07 22:19:51  keychar: just a second i think it randomly started working lol
Jun 07 22:20:03  ^^
Jun 07 22:20:25 <_Auron_> although the emulator has a bug where it reinitializes the app if you switch, even if the app is locked to a specific orientation
Jun 07 22:21:02  keychar: yeah it compiles now
Jun 07 22:21:12  is the emulator suppose to take a long time to start up or what?
Jun 07 22:21:29  k4r1m: emulating hardware is heavy
Jun 07 22:22:15  ok so im going to have to go through that everytime per session or just the start?
Jun 07 22:22:49  everytime you start the emulator, but you don't have to restart it everytime you run a program or something
Jun 07 22:23:21  keychar, _Auron_: thanks
Jun 07 22:23:30  keychar: aight c00l thx
Jun 07 22:30:14  keychar: jsut to to be sure b4 i "give up" you dont think there is a way to detect and change the language ?
Jun 07 22:30:58  don't misstake me for an android pro, but I'm pretty sure there's no way to do what you describe
Jun 07 22:32:07  keychar: ok. makes me sad tho ! =P
Jun 07 22:32:18  since im a noob and havnt actually done anything, first i must ask is it possible to add something like the default menu slider on the bottom but instead of the bottom have it on the top?
Jun 07 22:46:20  hmmm
Jun 07 22:46:26  unsure - i would imagine so
Jun 07 22:46:33  you would make a widget
Jun 07 22:46:41  but im unsure if the limitations of widgets
Jun 07 22:47:16  im so not used to gimp lol its so hard hahah well it took me like 10 mins but here is what i mean http://i40.tinypic.com/33ktbo5.jpg
Jun 07 22:47:28  would that be done as a widget?
Jun 07 22:47:31  k4r1m: no
Jun 07 22:48:07  romainguy_: no for which?
Jun 07 22:48:16  both
Jun 07 22:48:46  ok next idea then
Jun 07 22:48:50  the universal "no"  :)
Jun 07 22:48:51  does android have hooks?
Jun 07 22:49:05  "hooks" meaning...?
Jun 07 22:49:19  meaning if i wanted to hook everytime the volume up button is pressed
Jun 07 22:49:35  your app can certainly detect that
Jun 07 22:49:42  but you want it globally?  no.
Jun 07 22:49:55  (that is, regardless of which app is currently receiving events)
Jun 07 22:50:34  so globally no? i thought there would be some sort of injectors already
Jun 07 22:51:24  there is injection but not for 3rd party apps to use
Jun 07 22:52:04  i mean, the "hook" you just described basically amounts to doing full keylogging
Jun 07 22:52:21  ctate: meaning you guys have it but just not avaliable as an api? yet?
Jun 07 22:52:37  the Instrumentation stuff can inject events
Jun 07 22:52:38  available*
Jun 07 22:52:43  but it's all gated on signature-only permissions
Jun 07 22:52:55  it's for platform testing, not for app use
Jun 07 22:53:40  hm i guess i would have to do something using the notification then
Jun 07 22:54:56  what ar eyou trying to do?
Jun 07 22:55:29  im trying to make like a facebook/twitter updater from any app... something that i had on my iphone called qTweeter
Jun 07 22:55:47  status updater that is.
Jun 07 22:56:04   you mean uploader?
Jun 07 22:56:15  or what is it going to do?
Jun 07 22:56:40  no not uploader... a simple status updater
Jun 07 22:56:59  from any app? how is that supposed to work?
Jun 07 22:57:29  and what's the point?
Jun 07 22:57:38  i didn't know, i thought there was hooks and injectors in android that were available
Jun 07 22:57:48  I mean ... why would you want to change your status from any app?
Jun 07 22:57:52  well, there are intent and intent listeners
Jun 07 22:58:02  but I don't see the point of what you describe
Jun 07 22:58:20 * sammyF is currently using the dialerr
Jun 07 22:58:23  sammyF: cuz you could be browsing something and just wanted to copy a text from there would having to launch a different app for status
Jun 07 22:58:28 * sammyF just pressed the number 1 
Jun 07 22:58:39  ...etc ... ?
Jun 07 22:58:50  sounds like an ongoing notification
Jun 07 22:59:01  doubt anyone would have that running though
Jun 07 22:59:16  k4r1m: ahh .. I see
Jun 07 22:59:29  keychar: no lol
Jun 07 22:59:39  its hard to describe just a sec...
Jun 07 22:59:42  aah, you mean part of the copy text meny+
Jun 07 22:59:44  *menu?
Jun 07 23:00:55  here http://www.youtube.com/watch?v=68_Fs79IeGM
Jun 07 23:01:43  that used the status bar gesture, i was thinking of something simpler using volume-up or volume-down
Jun 07 23:02:32  well, you could steal the green button long hold or something
Jun 07 23:02:41  I guess
Jun 07 23:03:16  what green button?
Jun 07 23:03:25  answer button
Jun 07 23:03:39  oh
Jun 07 23:03:42  your app can't intercept the call/home/end keys
Jun 07 23:03:45  the long hold is assigned to voice call as default
Jun 07 23:03:59  its assigned to voice commands here though
Jun 07 23:04:09  ctate: shouldn't you be able to do that with a default catcher?
Jun 07 23:04:12  no
Jun 07 23:04:28  the OS does not allow 3rd party apps to interfere with the handling of Call/Home/End
Jun 07 23:04:33  how abotu aHome?
Jun 07 23:04:46  or wait
Jun 07 23:04:57  never mind
Jun 07 23:05:36  ctate: what do you think would be the best approach to do this or closest to it?
Jun 07 23:06:15  at a first guess, through the Notification mechanism
Jun 07 23:06:21  makes it easy to get to your app from anywhere
Jun 07 23:06:41  my first thought too, seems like the easiest way
Jun 07 23:07:35  well is there another way because the way i see it thats my only option...
Jun 07 23:09:38  well, you could create a home screen launcher and make it twitter on single click and launch home screen if twitter is active
Jun 07 23:09:40  but that is ugly
Jun 07 23:09:59  ctate: cause that is possible, right?
Jun 07 23:11:00  well then that would defeat the purpose again cuz i want it so it would be possible while you are completely in the middle of something else
Jun 07 23:11:59  an ongoing notification running an alertdialog?
Jun 07 23:12:07  that's the best I can think of
Jun 07 23:12:37  that should work
Jun 07 23:12:49  but still not as classy as the iphone solution
Jun 07 23:13:18  true
Jun 07 23:14:35  keychar: write your own Home app?  yeah, could do.  lots of work, of course.
Jun 07 23:15:05  indeed
Jun 07 23:15:52  ctate: how does aHome does what ever it is? i havnt tried it since i dont see it on the market for some reason
Jun 07 23:18:18  evening gents - my app is crashing with the following errors : http://pastebin.com/m40e51751 any ideas?
Jun 07 23:19:56  what is the name of the window in eclipse with the tree hierarchy for browsing classes and resources etc
Jun 07 23:20:07  and how do I make it appear :-/
Jun 07 23:20:28  plediii Package Explorer?
Jun 07 23:20:39  ah navigator
Jun 07 23:20:51  I search the menus for like 10 minutes trying to find it.
Jun 07 23:20:56  plediii try window , show view
Jun 07 23:21:01  10 seconds after i ask in irc i find it.  it never fails
Jun 07 23:21:12  k4r1m: i dunno what aHome is, so.... ;)
Jun 07 23:21:17  thanks
Jun 07 23:22:04  np
Jun 07 23:23:55  .,.,., anybody?
Jun 07 23:37:35  .,.,,.
Jun 07 23:38:21  renegadeandy: doing that will only bump your first post up in history
Jun 07 23:38:49  what database are you using? and how?
Jun 07 23:41:35  off to play a bit in FO3's wasteland. night everybody
Jun 07 23:43:33  i am using sqlite
Jun 07 23:43:44  as per http://www.helloandroid.com/node/110?page=0,3
Jun 07 23:44:42  on what line does it fail?
Jun 07 23:48:00  im unsure
Jun 07 23:48:41  breakpoint until you find it
Jun 07 23:48:49  "you know it's sad but true"
Jun 07 23:51:39  gah
Jun 07 23:52:00  thing is
Jun 07 23:52:09  im just using bits and pieces of that example
Jun 07 23:52:24  so my code looks really quite different to the example
Jun 07 23:53:15  hmm, seems like a waste of time anyways, looking closer at that
Jun 07 23:53:27  seems like the garbage collector is acting out? :S
Jun 07 23:54:01  that pastebin thing is not a crash
Jun 07 23:54:08  it's telling you that you've leaked a db connection
Jun 07 23:55:49  ctate: you seem to be quite above my level, so maybe you have a clue on my problem? can I send two IM addresses in an intent of type Person?
Jun 07 23:56:45  i know nothing about IM / SMS / etc
Jun 07 23:56:49  sorry
Jun 07 23:57:13  ok :(
Jun 07 23:57:36  i suspect that in general no, you cannot specify multiple recipients
Jun 07 23:57:51  no, you are missunderstanding me
Jun 07 23:58:15  I want to send an ACTION_INSERT_OR_EDIT to add information to a contact
Jun 07 23:58:23  and I have multiple IM addresses
Jun 07 23:58:49  but an intent can only store data like a map
Jun 07 23:59:02  so i can't have two Insert.IM_HANDLE
Jun 07 23:59:27  ah, i see
Jun 07 23:59:33  so I need a way to fix this so that I can combine two intents or something
Jun 07 23:59:40  that'd depend on the contacts db schema, wouldn't it?
Jun 08 00:00:28  well, the ContactProvider seems to do a lot of that for me
Jun 08 00:00:32  splitting it up into different tables and stuff
Jun 08 00:00:40  yeah but above it , it says there is a sax exception, and then the  app crashes back to the home screen
Jun 08 00:00:43  so theoretically it should work
Jun 08 00:02:10  keychar: the thing is, if you're touching Contacts data, you need to be aware that the data is backed by server-side stuff
Jun 08 00:02:27  so you can't just go stuffing arbitrary data and have it work right -- if the server-side schema doesn't support it, you're just out of luck
Jun 08 00:03:19  yeah, but I'm hoping that there's a way it supports it :P
Jun 08 00:03:46  if there would be some way to combine intents, or something
Jun 08 00:05:18  well, gonna download ContactsProvider from the git and see if there is a way
Jun 08 00:19:09 * cnkurzke has a hopefully simple UI question:   i can declare a activity in the manifest as "Dialog",   but i dont see a way how i can have a fullscreen activity which opens a floating "dialog" style view
Jun 08 00:19:32  anyone know how i can have a floating dialog created on top of my application?
Jun 08 00:21:01  AlertDialog?
Jun 08 00:23:02  keychar: "AlertDialog seems somewhat limited, it has a fixed layout with 2 buttons.
Jun 08 00:23:51  keychar:  I would need to create my own view on top of that..... it seems the next i will try is to manually create a "dialog" in Java.... was hoping i could jsut define it in XML and "inflate" it.
Jun 08 00:25:59  		View v = ((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.yourLayout, null);
Jun 08 00:26:11  alertdialog.setView(v);
Jun 08 00:26:12  ?
Jun 08 00:26:59  cnkurzke:
Jun 08 00:27:06  will try that
Jun 08 00:27:44  right now my XML is f**ed up... ned to fix that first  ;-(
Jun 08 00:37:51 * kRutOn takes a break from algorithms
Jun 08 00:38:27  I'm seeing summations on the back of my eyelids
Jun 08 00:40:41  you can't take two from three -- two is less than three -- so you look at the four in the eights place
Jun 08 00:51:42  whats the view class called for TabbedViews?
Jun 08 01:00:09  anybody knows an example of how to use TabHost ?
Jun 08 01:32:35  how can i publish/package  sqllite data to production app ?
Jun 08 01:35:31  you could put it in a resource
Jun 08 01:35:40  then copy/insert it into a database
Jun 08 01:36:14  any examples of this you know if ?
Jun 08 01:36:16  know of
Jun 08 01:37:16  hm does someone have an example of a working TabHost layout using layout? trying different examples all of them give me a NullPointerException: null in eclipse and crash the app when i run it...
Jun 08 01:37:42  hunterp, my brain.
Jun 08 01:38:42  wmealing: so sql lite in java has a way to load a sql lite file ?
Jun 08 01:40:31  hunterp, http://groups.google.com/group/android-developers/browse_thread/thread/e7857f4eaf2856fd
Jun 08 01:40:35  may be what you're after
Jun 08 01:42:34  hunterp, do you mean sqlite database when yhou mean sqlite file ?
Jun 08 01:42:44  do you know of any easier ways to store read-only data ?
Jun 08 01:43:02  i was thinking of json, but the thought of parsing 300k worth of json seems slow to me
Jun 08 01:43:46  json parsing seemed pretty quick to me
Jun 08 01:44:03  i was parsing 2mb of it as a test
Jun 08 01:44:06  was not too bad
Jun 08 01:44:19  and you wont be doing this every run, only once i'd imagine
Jun 08 01:44:23  so make a pretty progress bar
Jun 08 01:44:49  yes every run. or would you suggest I store the data as a java serialized after the first run ?
Jun 08 01:45:13  wait, you are convering 300kb of json data, every run to sqlite ?
Jun 08 01:45:28  no. its either json or sqllite
Jun 08 01:45:37  i need persitent storage of this read-only data
Jun 08 01:45:51  so, put it in the sqlite database
Jun 08 01:46:22  and then read from it when you need to
Jun 08 01:46:49  loading from json at first run is easiest
Jun 08 01:47:04  and then serialize to java.ser files
Jun 08 01:47:23  sure, do that then
Jun 08 01:47:33  why dont you just send it already serialized
Jun 08 01:47:45  but json->sqllite one time only is faster
Jun 08 01:48:09  i suppose i could
Jun 08 01:48:18  see, here is the point
Jun 08 01:48:22  you need to choose something
Jun 08 01:48:30  the user doesn't care how hard it is for you
Jun 08 01:48:33  or how much time it takes you
Jun 08 01:48:38  what they want is the most responsive app
Jun 08 01:48:44  already serialized is the least maintenance, least code approach :-)
Jun 08 01:49:01  so, choose whatever makes the most sense for your users
Jun 08 01:50:28  good point, thx :-)
Jun 08 02:19:37  Is Cupcake RC30 or RC31?
Jun 08 02:28:09  KiRn: I think Android is out of the RC stage.  Correct me if I am wrong, but we use the Android version numbers (i.e. 1.5 Cupcake and 2.0 Donut) now.
Jun 08 02:37:57  Yeah Ill just wait until I know a bit more before attempting to root my phone
Jun 08 02:38:19  thanks for Info, and ohh Donut in works and I just got Cupcake the other day
Jun 08 02:41:40  twilightwolf90, I don't believe that "donut == 2.0" was ever announced. People assumed it but that doesn't mean it's right.
Jun 08 02:42:26  nobody has said what version number the next release will be.
Jun 08 02:43:04  that's what I thought
Jun 08 02:43:14  they should make it 1.5.1 just to fuck with people
Jun 08 02:43:17  lol
Jun 08 02:55:35  we NEVER said Donut == 2.0
Jun 08 02:55:45  it's a rumor that was started from a random blog
Jun 08 02:59:10  KNY++
Jun 08 02:59:13  1.5.1 would totally rule
Jun 08 02:59:30  or maybe sqrt(3)
Jun 08 02:59:44  they should really just use anything but 2.0
Jun 08 02:59:46  or even better, sqrt(Ï€)
Jun 08 02:59:54  so that everyone who assumed just looks like a bunch of schmucks
**** ENDING LOGGING AT Mon Jun 08 02:59:57 2009