**** BEGIN LOGGING AT Sat Apr 04 02:59:57 2009 Apr 04 03:28:29 I don't have a G1, but I'm planning on getting an android phone later on. Should I start making apps for it before I even have one? Apr 04 03:55:14 Jubb: sure, why not? Apr 04 03:55:26 Jubb: you'll want to find a friend with a G1 to test them on, though Apr 04 04:05:03 <_avatar> has anyone managed to get the adb usb driver working in windows 7? Apr 04 04:34:59 Hey all, I have a dev question. How can I preload frame by frame animations so that when they are called in the code they are ready to go? Apr 04 05:43:23 Anyone out there? Apr 04 05:49:11 hey all Apr 04 05:53:38 anyone on here mess with frame by frame animations? Apr 04 05:56:35 anyone on here mess with frame by frame animations? Apr 04 06:02:25 anyone here? Apr 04 14:11:08 hello... is this some official android dev channel? Apr 04 17:21:25 hi Apr 04 17:21:44 how to I access to the running android simulator instance with a terminal ? Apr 04 17:22:07 some doc page says to use the terminal in tools/ but I don't know which program to use Apr 04 17:22:13 (which executable) Apr 04 17:45:00 myselfhimself: it's called "emulator" Apr 04 17:51:09 I think he is really looking for adb Apr 04 17:51:33 or maybe adb shell Apr 04 17:52:29 yes Apr 04 17:52:31 that's it thank you Apr 04 17:52:41 people had actually replied to me on #android Apr 04 17:52:43 thank you Apr 04 17:52:52 I'll leave that channel Apr 04 17:52:54 thanks Apr 04 18:34:07 is there a decent timer class that works as easily as CountDownTimer, without actually counting down to an end? Apr 04 19:11:12 I have a problem with switching to a SurfaceView that turns black, the same problem described here: http://groups.google.com/group/android-developers/browse_thread/thread/0483d12fdfb94c26 Any ideas? Apr 04 19:17:39 hi Apr 04 19:17:56 how can I make a plug in to the google maps android application ? Apr 04 19:18:23 I want that when I click to get directions after the src & dest fields have been filled, then some special command is run instead of the usual one Apr 04 19:25:23 myselfhimself, as far as I know, you'd need to make your own mapping application to do that. Apr 04 20:33:26 hi all Apr 04 20:33:50 little question to everyone related to google I/O... Apr 04 20:34:10 is there a way to see conferences in streaming? Apr 04 20:35:23 another question... now about developing so maybe someone replies to me :-) Apr 04 20:36:40 several times I read customer asking about closing an app (not going back to menu, but closing all activities) do you think it has sense developing for android os? Apr 04 20:40:54 about google i/o I read just now only paid and only on site :-) . So my first question is cancelled Apr 04 20:42:42 Hello All Apr 04 20:42:57 esses: not really Apr 04 20:42:57 hi Apr 04 20:42:57 esses: you can close an app by pressing the home button ? Apr 04 20:43:19 Anyone ever use frame by frame animations? Apr 04 20:43:20 or by pressing the back button until you reach the launcher Apr 04 20:43:36 no as I read is android os that decide when app has to be closed Apr 04 20:43:52 after some time of no use Apr 04 20:43:58 yeah Apr 04 20:44:52 esses: why do they need to close the app? Apr 04 20:44:53 but many persons ask me a button to close all actiivities Apr 04 20:44:56 it does not matter Apr 04 20:45:03 i know Apr 04 20:45:14 why do they want that button though? what is their goal ? Apr 04 20:45:18 tell them that pressing Home closes the app :) Apr 04 20:45:20 boh Apr 04 20:45:38 they don't know android os behaviour Apr 04 20:45:45 probably Apr 04 20:46:20 Is there a was to "preload" the frame animations so that when they are needed they're ready to go? Apr 04 20:47:13 does anybody know if dexopt is smart enough to do full dce? like, if I have a log() function with if (false) ... inside it, are the calls to log automatically removed Apr 04 20:47:20 (when the arguments don't have side effects) Apr 04 20:47:44 it's not dexopt's jobs Apr 04 20:47:46 td: i don't know about your question, but you remember me something I need :-P Apr 04 20:47:46 javac does it for you Apr 04 20:47:58 oh sorry Apr 04 20:48:07 misread your question Apr 04 20:48:07 hm, i thought javac did no optimization at all Apr 04 20:48:13 javac removes dead code Apr 04 20:48:19 like if (false) Apr 04 20:48:25 ah ok Apr 04 20:49:03 let's check Apr 04 20:49:06 i used in a very intense way log method and I was thinking about one thing... Apr 04 20:49:06 i thought it might not, because it's dead code detector is apparently beaten by putting if (true) in front of a statement that would cause a region to become dead Apr 04 20:49:43 so Apr 04 20:49:45 if you have: Apr 04 20:49:57 void log(String s) { if (false) { ... } } Apr 04 20:50:07 javac does compile the method but with no code inside Apr 04 20:50:14 but all the calls to the method are compiled Apr 04 20:50:35 :( Apr 04 20:50:36 I don't know if dexopt removes the calls to empty methods afterwards Apr 04 20:50:42 ok, thanks Apr 04 20:50:49 in our code base we always use if (LOG) log("Blah") Apr 04 20:50:55 yeah Apr 04 20:51:03 suggests it can't Apr 04 20:51:16 if I want to allow user to send me the piece of logs jus before the unhandled exception is possible or I have only to put the logs into a file from the beginning and then if the app crashes allow user to send me this file? Apr 04 20:51:35 i guess the problem is i might classload a new class that subclasses this one, and override log() to be non-empty again Apr 04 20:51:35 there's that Apr 04 20:51:35 also Apr 04 20:51:39 so it's not safe to entirely elide those calls unless you know there's no dynamic code loading going on Apr 04 20:51:42 it might be useful to not disable ALL logs Apr 04 20:52:20 esses: the way i do it is just keep critical information in an ArrayList of strings. but i don't put logging stuff in there, just things that can vary from run to run, eg user input or server interactions Apr 04 20:52:43 esses: it's usually smaller and you can feed the critical information into your app with logging on to see what it does Apr 04 20:53:08 esses: then that array of strings is POSTed along with the stack trace to my server when i catch an exception Apr 04 20:53:33 right but my logs are so nice... :-) Apr 04 20:53:42 romainguy: the PMD rules I created deal with that protection for log.d and log.v. See http://pmd.sourceforge.net/rules/android.html#ProtectLogD I should post something on the mailing list now that the PMD eclipse plugin has been released... Apr 04 20:53:51 okay I'm cut and paste your reply Apr 04 20:54:19 sadly the top crasher of my app is flaky network :( i need to add Apr 04 20:54:22 even more robustness Apr 04 20:55:58 no one developed an uninstaller routine until now...I'm trying to avoid developing it Apr 04 20:56:22 uninstaller routine? Apr 04 20:57:28 yes Apr 04 20:59:24 I noticed that if an app uses external storage and an user forgot to use an option into it about deleting non local app data (not the one in the app package dir) the folders reamins there Apr 04 20:59:43 probably detecting uninstalling the app itself can delete them Apr 04 21:00:14 ah right Apr 04 21:02:15 I was thinking detecting action.DELETE (since last month saying the truth...) but I'm lazy Apr 04 21:38:29 is anyone else besides me having problems compiling master? Apr 04 21:40:53 goodnight (here) to all! Apr 04 21:41:05 go to sleep Apr 04 21:41:17 or better to see texas hold'em on tv :-) Apr 04 21:58:49 I've got ArrayAdapter adp = new ArrayAdapter(this, android.R.layout.simple_list_item_1); I can add/insert items, but is there any way to modify (or remove) item at position X? Apr 04 22:04:19 who Apr 04 22:08:05 Hey guy, sure you get this a lot, any good tutorial sites brewing out there? I'm currently only using developer. Apr 04 22:10:29 jsharky <- thanks for your help earlier. Apr 04 22:17:14 jsharky <- can you point me to that open source calendar project? Apr 04 22:44:01 jjohnson: http://android.git.kernel.org/?p=platform/packages/apps/Calendar.git;a=tree;h=refs/heads/master;hb=master Apr 04 22:56:14 Anyone know of any php editors with syntax highlighting that are working for android (w or w/o jme) Apr 04 23:01:01 jsharky: thanks Apr 04 23:03:09 jjohnson: yea, check inside their code, im pretty sure the edit screen has all the code for creating/editing recurrance rules Apr 04 23:03:17 including hooking it up with a GUI Apr 04 23:03:26 but it interfaces with the CalendarProvider backend, which iirc hasn Apr 04 23:03:39 hasn't been released into the public SDK yet Apr 04 23:03:49 its still present, but might be changed in future Apr 04 23:05:32 jsharkey, do u plan on maintaining group home? Apr 04 23:05:48 jsharky: great, that should be faster than tracing the EventParser code Apr 04 23:06:36 FFForever2: maybe someday, it was more just an idea exercise Apr 04 23:06:43 ive got other stuff im working on now ;) Apr 04 23:06:47 *in my free time Apr 04 23:06:53 FFForever2: feel free to take and run with it though Apr 04 23:06:57 =(, what about oilcan? Apr 04 23:07:05 jsharkey, i cant code java =( Apr 04 23:07:08 i had all of the categories hard-coded, after scraping from market manually Apr 04 23:07:50 might look at teaming up with the cyrket guy though, he has up-to-date category info for all apps Apr 04 23:08:07 yeah suarik :) Apr 04 23:08:18 and he keeps it pretty fresh Apr 04 23:08:22 hey jsharkey Apr 04 23:08:22 jsharkey, do u know where i can get the jdk5 u12? Apr 04 23:08:32 hey jbq :) Apr 04 23:08:53 the android page links to http://java.sun.com/javase/downloads/index.jsp but i don't see anything about jdk6 =\ Apr 04 23:08:54 FFForever2: hmm not sure what you mean by "u12" Apr 04 23:09:05 JDK 5.0, update 12 or higher Apr 04 23:09:10 update 12... Apr 04 23:09:17 FFForever2: you on window? Apr 04 23:09:20 *windows Apr 04 23:09:30 fedora (linux/rpm) Apr 04 23:09:36 windows is evil XD Apr 04 23:09:45 =D Apr 04 23:09:50 what are you on? Apr 04 23:09:57 should just be able to yum/apt it Apr 04 23:10:04 sometimes its sun-java in package managers Apr 04 23:10:13 * jsharkey runs gentoo Apr 04 23:10:31 i don't see anything for 5.0 =(, gentoo is awesome but lame on a laptop.... Apr 04 23:10:52 FFForever2: yea i agree, which is why i distcc stuff when compiling on my laptop ;) Apr 04 23:11:19 hmm odd @ not being in the repos Apr 04 23:11:42 i find packages for 6... Apr 04 23:12:06 oh, i guess im using 6 Apr 04 23:12:27 http://source.android.com/download says i cant use 6... =\ Apr 04 23:12:40 1.6.0_03-b05 Apr 04 23:13:40 Technically, you can build with java 6, but if you make contributions you right writing code that's not compatible with java 5. Apr 04 23:13:43 well i found 5 :D, will i run into problems having both jdk 5 & 6 Apr 04 23:14:17 FFForever2: update-java-alternatives helps you switch between versions Apr 04 23:14:20 Will someone please just make me a php editor already Apr 04 23:14:34 GuruDrew: write one yourself? :P Apr 04 23:14:36 GuruDrew, no but you can Apr 04 23:14:43 Bleh, but that's such a pain haha Apr 04 23:14:50 ur in a dev room asking for someone to write u an app highly unlikely... Apr 04 23:14:59 I'm joking, FFForever2, relax Apr 04 23:15:11 but u can write me one :D Apr 04 23:15:15 I know better than to be serious about a question like that Apr 04 23:15:35 What I really need is an android port of VS2008 Apr 04 23:15:37 someone get busy Apr 04 23:15:39 jbq who does ux for android (anyone that comes on irc) Apr 04 23:15:40 and I need VAX too Apr 04 23:15:51 GuruDrew, better get started :P Apr 04 23:15:54 haha Apr 04 23:15:58 Let me call Whole Tomato Apr 04 23:16:27 I guess I am going to have to write one Apr 04 23:16:30 I can't go editorless Apr 04 23:16:36 i am waiting for split android branches Apr 04 23:16:47 just use notepad :P Apr 04 23:16:48 split branches? Apr 04 23:17:10 I'd use notepad but it's clunky, doesn't show my current position, etc.. Apr 04 23:17:11 yeah where someone takes master and starts there own android type system :D Apr 04 23:17:28 FFForever2: There are a few already Apr 04 23:17:39 I forget the names, but I saw several while preparing to root Apr 04 23:18:00 where i couldn't find any that where not just a modded stock android to include a few files... Apr 04 23:18:24 I didn't actually look at any of them, and I'd assumed that's what they'd be. Apr 04 23:18:47 Ubuntu was just a stock Debian with a few extra/modded files way back when. Apr 04 23:19:40 FFForever2: you mean a fork :/ yea i hope there arent many Apr 04 23:19:59 jsharkey, i am just hoping for 2-3 good forks :D Apr 04 23:20:08 what the original isnt good enough? :P Apr 04 23:20:33 That's kind of funny Apr 04 23:20:39 Didn't Google just ask Sun to fork Java? Apr 04 23:20:47 For the android? Apr 04 23:20:58 jsharkey, nope there are a few minor things i hate about android that could be quick fixes Apr 04 23:21:00 I think if android forks nobody would be happier than Google Apr 04 23:21:00 There's so much effort going on behind the "real" one that the gains achieved by sticking with the real thing probably outweigh the gains done by forking. Apr 04 23:21:19 I'm pretty sure the whole point of this was to start the open source/freeware wave for phones just like it has happened for PC's Apr 04 23:21:28 like in the mail apps (gmail and the stock mail app) there is no way to make a contact out of an email address..., or the fact there is no time delay on the lock =\ Apr 04 23:21:41 FFForever2: lol thats just a feature :) Apr 04 23:21:50 oh, and i fixed that bug in cupcake Apr 04 23:21:51 ;) Apr 04 23:21:55 what bug? Apr 04 23:22:00 FFForever2: those probably don't justify forking 22 million lines... Apr 04 23:22:02 creating a contact from an email address Apr 04 23:22:13 jsharkey: How long should I wait before cupcaking? Is it worth waiting? Apr 04 23:22:21 jbq__, yeah it does :D Apr 04 23:22:22 actually, it lets you create a new one, or add the email to an existing contact Apr 04 23:22:26 I almost did it this morning Apr 04 23:22:51 jsharkey, nice i wish google would os everything they have.... Apr 04 23:23:07 FFForever2: its in the opensource tree? Apr 04 23:23:22 jsharkey, how often is master and cupcake merged? Apr 04 23:23:33 FFForever2: thats a jbq question :) Apr 04 23:24:03 Is maps multitouch fixed in cupcake? Apr 04 23:24:05 is jasonchen a robot btw? Apr 04 23:24:15 FFForever2: http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=blob;f=src/com/android/email/activity/MessageView.java;hb=master#l458 Apr 04 23:24:35 FFForever2: there's the code to add an email address to a new or existing contact :) Apr 04 23:24:50 jsharkey, did u also add it to gmail? Apr 04 23:24:56 FFForever2: yep Apr 04 23:25:07 :D Apr 04 23:25:24 so far, master has been merged each time there was a cupcake drop. Apr 04 23:25:26 jsharkey, do u guys get to play with sapphire phones @ work? Apr 04 23:26:06 ive done all of my dev work on a dream Apr 04 23:26:12 and emulator Apr 04 23:26:20 cool Apr 04 23:26:23 ditto for me. Apr 04 23:27:21 whats wrong with this?, ar crs out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/Directories.o out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o Apr 04 23:27:21 /bin/bash: javah: command not found Apr 04 23:27:21 make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/org_clearsilver_CS.h] Error 127 Apr 04 23:28:48 hmm sounds like java isnt in make's path Apr 04 23:29:14 =\, i only needed jdk right? Apr 04 23:30:21 i have a /bin/bash/java =\ Apr 04 23:36:10 Hi. I have recompiled android from source. When I try to send GPS data with DDMS i have got this message "no GPS emulation in this virtual device". Someone can help? There is an "gps limitation" of android-from-source? Apr 04 23:42:12 filosofico: makes sense that if the virtual device like the android doesnt support virtual GPS it would throw that error... Apr 04 23:42:32 regardless of whether it was the google distributed binary or the binary you built from source. Apr 04 23:46:29 thats it compiling errors win i give up on compiling master.... lol Apr 04 23:48:00 FFForever2: heh. Apr 04 23:48:36 unix_lappy, for the past few days ive tried to get master 2 compile and im just having 2 no luck time 2 just wait for disconnect to release a new image.... Apr 04 23:49:17 i was certain that there would be explicit instructions on getting latest master drops to build. Apr 04 23:49:29 if not from google then disconnect or jesusfreke. Apr 04 23:51:14 unix_lappy, for everyone else it builds fine for me i get a load of errors Apr 04 23:52:57 hmph, i'll take that flakyness into account when i try to start building images. Apr 04 23:53:14 maybe android hates me =\ Apr 04 23:53:18 just need need to buy / build my server before that though ;-) Apr 04 23:53:47 cool Apr 04 23:57:58 unix_lappy: uhm, ok ... I have just tried the emulator from 1.1_r1 SDK and the gps emulation has worked fine ... maybe the problem with my compiled emulator is the "ancient-ness" (more or less a checkout of GIT repo done in January) Apr 05 00:33:16 I want to override the sounds the dialer makes, is this possible without completely redesigning the dialer? Apr 05 00:33:30 Or, is the dialer source available so it could be extended? Apr 05 00:33:48 I like the dialer the way it is, was kinda hoping I could just extend/modify the object Apr 05 00:34:13 The references don't have much info on this topic Apr 05 00:47:30 GuruDrew: I just checked the current repo... Apr 05 00:47:40 GuruDrew: ... do you mean the DTMF tones? Apr 05 00:48:51 iirc the dtmf tones are generated dynamically Apr 05 00:48:58 GuruDrew: Anyway... I think you do. Check out packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialar.java Apr 05 00:49:28 And you will see that No, you can't override these sounds (as far as I can tell). Apr 05 00:49:37 jsharkey: I think you're right. Apr 05 00:50:08 Autarkis: That's what I was looking for, no override, huh? Apr 05 00:50:13 There's no source code available? Apr 05 00:50:16 No, but OpenSource. :) Apr 05 00:50:37 <_avatar> i asked this last night, but no one answered. has anyone managed to get the adb usb driver working in windows 7? Apr 05 00:50:41 Yes, in the current repo, the path I listed over theree. Apr 05 00:50:56 But if I have a rooted phone, essentially, I could replace these sounds by replacing TwelveKeyDialer, right? Apr 05 00:51:37 I've seen people extend/replace the browser, does this method not apply as well to the Dialer? Apr 05 00:51:43 GuruDrew: Well, not exactly, TwelveKeyDialar is but a component of Contacs.app. Apr 05 00:51:53 Oh, ok Apr 05 00:52:11 You'd have to rebuild at least Contacts.apk and problably all depending files. Apr 05 00:52:15 So then the best approach would be to replace the dialer with an entirely new dialer :\ sad Apr 05 00:52:15 Then you could replace it. Apr 05 00:52:23 Yes. And yes. Apr 05 00:52:37 GuruDrew: it depends, do you want to just recreate the initial dialpad, or the in-call dialpad? Apr 05 00:52:40 It would be cool to have different tons. Apr 05 00:52:48 the in-call dialpad lives over in Phone instead of Conctacts Apr 05 00:52:53 But it's really not a core feature of Android, so I'm overlooking it. ;) Apr 05 00:53:07 jsharkey: If I were to do it I'd want it on both dial pads, but the in-call would be the less important of the two Apr 05 00:53:23 you could totally write your own dialpad, just ask for the right CALL permission Apr 05 00:53:25 I suppose I could see the app working with just the initial dialpad Apr 05 00:53:40 Yeah, I think that's what I'll do, I just liked the android dialer Apr 05 00:53:42 you couldnt replace the one that shows in the contacts app tho, without replacing contacts Apr 05 00:54:13 Aaanyhow. Apr 05 00:54:16 Thanks for the tips Apr 05 00:54:21 It's 2:45 am, I'm off to bed! Apr 05 00:54:33 Good night. :) Apr 05 00:54:45 thats really all that the Contacts dialer works--it just queues up digits and then launches an intent to acutally dial them Apr 05 00:55:14 the Phone app picks up that intent, where it starts the in-call experience Apr 05 00:56:55 Is there a naming convention I should adhere to with package names? Apr 05 00:57:43 not anything thats enforced, as long as its unique Apr 05 00:57:59 and usually you dont want to tread into other people's package namespaces Apr 05 00:58:09 for example, com.ibm.something Apr 05 00:58:39 theres no rule about it, but i like to keep my packages reverse-resolveable as real domains Apr 05 00:58:55 so org.jsharkey.oilcan can be found at http://oilcan.jsharkey.org/ ;) Apr 05 00:58:59 jsharkey: do you know if it's possible to use an intent to bring the contacts favorites, the same way it's possible for the dialer or contacts pages there? Apr 05 00:59:06 can't start with a number Apr 05 00:59:10 com.1234.foo Apr 05 00:59:21 squalus: oh yea, that too :) Apr 05 00:59:23 the normal java way of getting around that with a _ doesn't work in android Apr 05 00:59:41 so com._1234.whatever works in normal java but not android.. so just avoid numbers Apr 05 00:59:59 jsharkey: that one caused me some headaches as I have a number domain ;) Apr 05 01:00:27 I was pulling my hair out for a while Apr 05 01:00:48 xlv-labs: DialtactsFavoritesEntryActivity ;) Apr 05 01:01:40 http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=AndroidManifest.xml;hb=master#l134 Apr 05 01:03:46 jsharkey: thanks, somehow I missed that but that's because I was looking at the release-1.0 branch... Apr 05 01:08:05 so if I write an mp3 to the sd card.. is there something I have to do to cause the media player to pick up on that? Apr 05 01:48:45 Whoo hoo!!! 2 hours from scratch to creating my own todolist calendar application. Bye all. **** ENDING LOGGING AT Sun Apr 05 02:59:57 2009