**** BEGIN LOGGING AT Fri Dec 05 02:59:58 2008 Dec 05 06:41:21 I wonder if this was released with JavaFX today: http://www.youtube.com/watch?v=OYy4j9x2Mi4 Dec 05 06:41:33 (JavaFX on android) Dec 05 06:42:32 Oh I just read its not open source :( Dec 05 06:47:37 is it possible to reuse the layout and UI logic from an activity, but replace the backend logic? I'd like to create a custom Dialer that has the same UI, but does different stuff **** BEGIN LOGGING AT Fri Dec 05 07:45:09 2008 Dec 05 15:34:11 does anyone have information on decoding the amr-nb codec? specifically audio frequencies? Dec 05 17:01:47 if I have a URL to an MP3, how would I go about playing it in Music? Dec 05 17:24:04 KNY: as a user, or from an app your write? Dec 05 17:24:21 jbq, through the API Dec 05 17:24:55 Fire an ACTION_VIEW intent to start an activity with data="http://..." and mimetype="audio/mp3". Dec 05 17:25:02 Lemme find you the manifest that'll catch it. Dec 05 17:25:48 http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=AndroidManifest.xml;h=518e19db63ef624b806a5e73114908b75205e764;hb=HEAD#l74 Dec 05 17:26:29 jbq, awesome, thanks Dec 05 17:26:37 np Dec 05 17:30:28 jbq, 1) the mimetype goes in as putExtra() right? 2) is there a constant for the mimetype string? Dec 05 17:30:53 Lemme see how my code does it... I wrote it a while ago. Dec 05 17:31:19 brag, brag, brag ;) Dec 05 17:33:34 http://android.git.kernel.org/?p=platform/packages/providers/DownloadProvider.git;a=blob;f=src/com/android/providers/downloads/DownloadReceiver.java;h=e5bc4e1f19c6bfab1bc9b6dc37e217327b511e09;hb=master#l101 Dec 05 17:34:00 (didn't mean to brag, I'm just lazy, and it's easier to point at a place in the code that does it, rather than finding it in the doc) Dec 05 17:34:05 thanks, I didn't even know that method existed (setDataAndType()) Dec 05 17:34:38 I think it's a public API - it didn't get flagged when I tried to build that code against the SDK. Dec 05 17:34:51 yeah, eclipse didn't trigger any errors Dec 05 17:34:56 morning Dec 05 17:35:10 http://code.google.com/android/reference/android/content/Intent.html#setDataAndType(android.net.Uri,%20java.lang.String) Dec 05 17:41:20 hello San :) Dec 05 17:41:44 hey jasta Dec 05 17:41:45 whats up Dec 05 17:42:58 not too much Dec 05 22:18:51 * michaelnovakjr hates subversion with a passion and wonders when google code will support git Dec 05 22:21:09 michaelnovakjr: you should be happy that Android uses git :) Dec 05 22:21:19 i am :) Dec 05 22:31:48 * joakime hugs his subversion tools. Dec 05 22:34:02 hm, my ddms view in eclipse shows only the Console... no ddms instance, any idea? Dec 05 22:37:31 Window -> Reset View! Dec 05 22:41:31 may anyone help me on this http://groups.google.com/group/android-developers/browse_thread/thread/674899edfe55b9fe/ee7fecfb1eec249f?lnk=gst&q=mina+ramses#ee7fecfb1eec249f Dec 05 22:47:21 Like I told you several times, do NOT block the UI thread with a loop in onCreate() Dec 05 22:47:37 sup romain Dec 05 22:48:01 writing slides :) Dec 05 22:48:55 didnt finish your app did you? :) Dec 05 22:49:04 almost Dec 05 22:50:21 which app Dec 05 23:02:07 oh man, f00bar80. What romainguy said -- don't do blocking stuff in the UI (primary) thread like that. Dec 05 23:02:19 it's dont-cross-the-streams bad. Dec 05 23:03:01 well more like "your app will never start bad" Dec 05 23:03:25 permissions.BRICK is more cross-the-streams bad Dec 05 23:04:38 fair enough -- for local values of "bad" then, not global. Dec 05 23:05:01 can you say "Application Not Responding" boys and girls? i knew you could. Dec 05 23:25:06 ctate, some clarification please ??? Dec 05 23:25:17 f00bar80: don't do that Dec 05 23:25:20 that is bad Dec 05 23:25:51 f00bar80: you need to spawn a separate thread to do synchronous networking calls Dec 05 23:26:39 Unless you're 100% certain that your synchronous networking calls will return within 5 seconds. Dec 05 23:26:44 no Dec 05 23:26:44 Hint: you're not 100% certain. Dec 05 23:26:54 I'm 100% certain that they won't. Dec 05 23:27:06 also, gethostbyname almost never is fast enough Dec 05 23:27:22 what does the error "ActivityManager: DDM dispatch reg wait timeout" mean ? - I'm getting it when I'm trying to run the MapView demo Dec 05 23:27:47 joeo, another thread outside the onCreate() ? Dec 05 23:27:58 yes Dec 05 23:28:07 from onCreate, spawn a thread Dec 05 23:28:44 joeo, always i'm trying to run the appServer first is it right ? Dec 05 23:29:17 huh? Dec 05 23:29:24 your line that says Dec 05 23:29:25 while (wait4Data) { Dec 05 23:29:31 keeps it from ever returning Dec 05 23:29:51 which means your thread is blocked, and no UI will happen, until the activity manager kills you Dec 05 23:30:22 also, are these two Activities meant to be running on the same device? Dec 05 23:31:13 If you're doing networking, you probably want to have a Service, that your Activities bind to Dec 05 23:31:20 Oh, yeah. You don't want to run your server in onCreate, dude. Dec 05 23:31:32 * ahaberlach re-scrollbacks. Dec 05 23:32:16 reread http://code.google.com/android/intro/anatomy.html Dec 05 23:32:27 Actually, what ARE you trying to do? Dec 05 23:33:02 joeo, i want to at first try it on a single device and then one different emulators on 2 different machines Dec 05 23:33:07 an Activity is only alive while the app is on that screen. If the phone rings, it'll be stopped. You probably don't want everything to stop, so you should put that into the service. Dec 05 23:36:03 joeo, what do you mean by " keeps it from ever returning, which means your thread is blocked, and no UI will happen, until the activity manager kills you" Dec 05 23:36:29 f00bar80: you should read up on the concept of Activities and services on android's website Dec 05 23:37:09 When the underlying framework functions calls e.g. your onCreate code, it can't do anything else until your onCreate function returns, and after a few seconds it'll get impatient and kill your app. Dec 05 23:39:32 does anyone else see a horse around here getting beat to death? :) Dec 05 23:40:56 As long as it's not a pony... Dead ponies make people sad. Dec 05 23:41:14 especially the fadden Dec 05 23:42:25 What if you beat a horse to death with a pony? Dec 05 23:42:44 as long as it doesn't kill the pony, I guess you're fine. Dec 05 23:42:47 hard to believe that the pony wouldn't die also Dec 06 00:05:15 question for the google / android folk. of all the NON-developers on the Android team, how many use non-Android devices? Dec 06 00:09:44 I only mingle with engineers :) Dec 06 00:10:29 i imagine designers keep up to date with other devices **** ENDING LOGGING AT Sat Dec 06 02:59:57 2008