**** BEGIN LOGGING AT Mon Dec 22 02:59:56 2008 Dec 22 04:18:39 I have a LinearLayout which contains a ListView and TextView with the id of "@+id/android:empty". Although for some reason when I run my application and the list is empty, it doesn't show the TextView. Am I doing something wrong? Dec 22 04:23:56 what's your list view id? Dec 22 04:25:52 savid: it should be @android:id/empty Dec 22 04:26:07 and your list should be @android:id/list Dec 22 04:26:20 ah Dec 22 04:26:31 not sure how I got that wrong :-p Dec 22 04:26:35 :) Dec 22 04:28:55 michaelnovakjr, hmm, that didn't seem to work. I'll pastebin my xml Dec 22 04:29:04 ok Dec 22 04:29:35 http://pastebin.com/m33a24a00 Dec 22 04:31:54 michaelnovakjr, let me know if something looks wrong there Dec 22 04:32:40 er, I mean michaelnovakjr_, Dec 22 04:33:59 hm, it looks fine... are you sure the list is empty Dec 22 04:34:17 yeah, have nothing to populate it with. odd Dec 22 04:34:57 print the size of the data out and make sure Dec 22 04:35:11 also make your you compiled again :) Dec 22 04:35:58 michaelnovakjr_, oh, I'm just hitting ctrl+f11 Dec 22 04:36:05 I assumed that would compile it Dec 22 04:36:12 I'm new to the IDE :-p Dec 22 04:36:16 which ide? Dec 22 04:36:24 eclipse w/ android plugin Dec 22 04:36:31 I'm kinda new to Java as well Dec 22 04:36:39 so forgive me if I show any ignorance Dec 22 04:37:26 ah, i haven't used the plugin in a long time Dec 22 04:37:32 are you using an emulator? Dec 22 04:37:32 oh Dec 22 04:37:36 yes Dec 22 04:37:45 it fires up the emulator when I hit run Dec 22 04:37:56 it restarts the emulator each time? Dec 22 04:39:04 well, it doesn't restart the emulator, but it restarts the app Dec 22 04:40:38 oh, I think I might have to set up the ListAdapter first. I haven't really started the meat of my app yet :) just messin' w/ layout Dec 22 04:41:37 ah yes Dec 22 04:41:44 you need to set the list in your code Dec 22 05:05:05 im confused, i dynamically register my broadcast receiver, but i get a receiver leak when my app is destroyed Dec 22 05:17:46 Hmm. I'm using the android stock dialog theme to make my app look like a floating dialog, but when I use the menu button, the menu pops up aligned with the bottom dialog and not with the bottom screen (ie, since the dialog has a layout_height of "wrap_content", the menu shows up in the middle of the screen and not at the bottom) Dec 22 07:47:14 where do manifest 's get stored? anyone know how i can do the same kind of registration in my app code? Dec 22 08:40:42 actually, it looks like you just register the receiver on the global application context... i was doing it on the activity context -__- Dec 22 09:50:51 yo all... Dec 22 09:51:07 anything interesting happened last few days? Just got back from my vacation. Dec 22 11:50:44 gambler: did you leave before or after cupcake dropped? Dec 22 12:02:13 obra, oh wow. googling :) Dec 22 12:02:18 (before) Dec 22 15:31:03 i've been looking around on how to re-flash an android dev phone with a new image i have built, but all i could do was find instructions on how to build for the g1/dev phone - are there instructions on what you have to do to reflash the image on there ? Dec 22 15:32:51 try #android, this is like a ghost town Dec 22 15:32:58 it's not Dec 22 15:33:05 but this is not the place for that kind of question :)) Dec 22 15:35:25 hrmm .. really? so the -dev just means application building, not necessarily reflashing the dev phone hardware ? Dec 22 15:35:47 yes, this is for apps Dec 22 15:36:23 so if i had a kernel panic, i wouldn't ask the dev channel, i'd ask the regular channel ? Dec 22 15:36:33 that's correct Dec 22 15:36:51 wow, very interesting Dec 22 15:36:53 thanks for the tip Dec 22 15:37:44 the enxt version of android, should include an app to put clothes on the little android mascot whereever he is Dec 22 15:37:55 google could sell hats and other accessories Dec 22 15:40:44 ..ok so this isn't for platform development? how .. odd. Dec 22 15:41:21 disconnect: romainguy pwns you Dec 22 15:41:43 haha Dec 22 15:41:47 micropurchases Dec 22 15:41:49 brilliant idea Dec 22 15:41:57 you can customize your android for only $0.99 a pop Dec 22 15:41:59 tell t-mobile Dec 22 19:28:29 hi Dec 22 19:29:34 hi Dec 22 19:37:25 i have a sperate class what extends "Thread", there i want to create an instance of MediaPlayer. The constructor wants the Context, how can i get the Context Dec 22 19:38:15 you'll have to pass it somehow Dec 22 19:38:24 theres a class what extends Activity and another one what extends View Dec 22 19:38:25 you can always create a constructor for the class that accepts a Context instance Dec 22 19:38:47 you can get the context from the activity Dec 22 19:39:07 (if you didn't know that already) Dec 22 19:40:29 i can get it directly out of my class what extends Thread? Dec 22 19:40:39 no Dec 22 19:40:53 oinkboink: create a constructor in your class that accepts a Context as an argument Dec 22 19:41:03 anyone know the link for checking out the apidemos from the svn repo? Dec 22 19:41:03 then, pass the context as an argument when you create that thread Dec 22 19:42:46 vol, ok i will try that, thanks Dec 22 20:48:32 is it possible to play more than one sound at one time and repeat playing about every 50millis with MediaPlayer? Dec 22 20:53:43 wow i hope not Dec 22 20:59:12 maybe SoundPool can do that for me Dec 22 21:00:16 sounds pretty obnoxious Dec 22 21:01:11 why that Dec 22 21:01:39 ^^ Dec 22 21:03:28 repeating a sound every 50ms Dec 22 21:11:52 actually, come to think of it Dec 22 21:12:06 is there a way to have a sound get piped through to the person at the other end of a phone call? Dec 22 21:12:18 because I would love to blare something the next time those fucking auto warrenty scammers call Dec 22 21:21:48 you just want to send an pipe-sound to the caller? Dec 22 21:26:10 yawn Dec 22 21:26:24 pretty much Dec 22 21:33:27 what's up jasta Dec 22 23:07:09 michaelnovakjr: not much, enjoying the snow storm in seattle :) Dec 22 23:17:54 Grr, brain fart using the NotificationManager Dec 22 23:18:30 ((NotificationManager)getSystemService(NOTIFICATION_SERVICE)).notify(0, new Notification(R.drawable.icon, "Notification", System.currentTimeMillis()); Dec 22 23:18:46 should create a notification, right? Dec 22 23:18:51 Why is it upset that I don't have a context, then? Dec 22 23:31:20 ah, it's because I'm so horrible as to want an icon Dec 22 23:31:25 yet I have to set up a custom view as well. Dec 22 23:31:26 argh Dec 22 23:31:32 I just want to throw up some text : ( Dec 23 02:10:21 ok, i'm totally confused about permissions. Dec 23 02:11:05 i did a in AndroidManifest.xml Dec 23 02:11:18 but I still can't create files Dec 23 02:12:21 i'm.. not sure that's what that permission does Dec 23 02:12:57 i was hoping it would allow me to call FileOutputStream("filename") w/o throwing a FileNotFoundException Dec 23 02:13:26 oh Dec 23 02:13:33 you just need to write to the right file Dec 23 02:13:44 i don't think it starts out in that spot Dec 23 02:13:58 doesn't the constructor create the file if it doesn't exist? Dec 23 02:14:04 yeah Dec 23 02:14:12 i'm just writing to /sdcard/filename Dec 23 02:14:20 but you need to write it to /data/data/app/ or something like that Dec 23 02:14:23 ah Dec 23 02:14:54 hmm, so i take it "app" would be my declated app name? Dec 23 02:15:06 yeah Dec 23 02:15:38 there may be a more standard way of writing files to that location.. and i'm sure there's a way to write to the sdcard Dec 23 02:16:29 hmm you should be able to write to /sdcard/anything Dec 23 02:16:47 guess FileOutputStream doesn't create by default? :x Dec 23 02:16:54 that's what I thought, cuz that wardriving app wrote files to /sdcard/ Dec 23 02:17:25 hmm, it does create o_O Dec 23 02:17:35 there's no option to open/create file. the constructor must be the one that creates the file Dec 23 02:17:41 what is the exact file you're trying to open? Dec 23 02:17:42 s/option/method Dec 23 02:18:17 file type or filename? Dec 23 02:18:22 file name Dec 23 02:18:25 full path Dec 23 02:18:50 /sdcard/drawtest.png Dec 23 02:19:11 is the sdcard mounted on a PC or such? Dec 23 02:19:22 i'm doing it in the emulator Dec 23 02:19:42 if i "adb shell" and do "ls" the /sdcard directory is empty Dec 23 02:19:56 what does ls -l say about /sdcard if you do it from /? Dec 23 02:20:03 it sounds like it doesn't have a card mounted Dec 23 02:20:36 hmm, permissions are d--------- Dec 23 02:20:43 yeah, not mounted Dec 23 02:21:01 dunno off-hand how to get the emulator to mount a 'sd card' Dec 23 02:21:08 ok Dec 23 02:21:14 guess i'll just try the phone Dec 23 02:23:26 omg, it worked on the phone Dec 23 02:23:28 woo hoo Dec 23 02:38:51 Hi, I'm using the @android:style/Theme.Dialog theme for my app to make it look like a floating dialog, but when I use the menu button, the menu pops up aligned with the bottom dialog and not with the bottom screen (ie, since the dialog has a layout_height of "wrap_content", the menu shows up in the middle of the screen and not at the bottom). Any ideas on why this might be happening? **** ENDING LOGGING AT Tue Dec 23 02:59:57 2008