**** BEGIN LOGGING AT Thu Nov 13 02:59:57 2008 Nov 13 05:13:00 when does android do network initialization? Nov 13 05:13:55 i can ping addresses(resolve as well) from a terminal on my device but the browser isn't happy Nov 13 07:40:05 ==> anyone know how sdk_deps.mk is created? Nov 13 14:17:15 anyone know how to discover the current screen orientation? Nov 13 14:19:24 yes. wait a moment... Nov 13 14:20:09 maybe not the best way Nov 13 14:20:32 http://www.anddev.org/screen_in_landscape_mode-t3463.html Nov 13 14:20:38 actually, what I want to do is Nov 13 14:20:49 use different layouts depending on whether the device is landscape, or portrait Nov 13 14:20:51 the ScreenOrientation-Constants are stored in sth like ActivityInfo.SCREENORIENTATION_XYZ Nov 13 14:22:18 I defined two layouts Nov 13 14:22:20 main Nov 13 14:22:22 and main_landscape Nov 13 14:22:49 I found this thread http://groups.google.com/group/android-developers/browse_thread/thread/baa791a8964efbe9/4f40b0e843ccefd8?lnk=raot that discusses that stuff Nov 13 14:27:32 when I change the orientation in eclipse I get a warning next to the Orient dialog Nov 13 14:34:24 ok, there is an easy way Nov 13 14:34:27 create layout-land Nov 13 14:34:31 and put a layout in there with the same name Nov 13 14:44:12 although eclipse dones't like it very much! Nov 13 14:44:18 if I edit the first, and the second layout Nov 13 14:44:25 it screws everything up :( Nov 13 15:04:05 morning Nov 13 15:22:15 evening :) Nov 13 15:25:24 morning :) Nov 13 16:03:29 why wouldn't the default onSaveInstanceState save the state of a spinner? Nov 13 16:03:56 actually, its a seek bar Nov 13 16:03:58 the spinner works Nov 13 16:05:47 actually... I bet this is related to why the seekbar never receives focus when using the trackball on the GT1 Nov 13 16:05:49 G1 Nov 13 16:29:19 duncanfoo, yeha, that has been bothering me also.. Nov 13 16:29:25 any idea on why save/restore doesn't work? Nov 13 16:30:59 it looks to me like a bug actually Nov 13 16:31:06 looking at the saved state after calling onSave... Nov 13 16:31:19 I see some state, but nothing for the seek bar Nov 13 16:32:58 I don't think progress bar (and therefore seek bar) supports it Nov 13 16:33:04 looking at the source... there is no saved state in there Nov 13 16:33:07 unlike the text view Nov 13 17:20:41 i dont think its appropriate for the progress bar to save state automaticlaly Nov 13 17:21:21 because, unlike a listview position, the progress is likely to have changed at some point between when the user left your activity and then returned. Nov 13 17:22:03 being that progress bars are used to indicate work. Nov 13 17:33:54 jasta, yes, but not the seek bar Nov 13 17:36:09 well, i use the seek bar in this way :) Nov 13 17:36:37 still, you could extend SeekBar and just implement saving its state can't you? Nov 13 17:57:22 sure.. I was just wondering why it's not built in:) Nov 13 18:05:26 its not so simple to extend it is it? Nov 13 18:05:34 how can I get it in a layout? Nov 13 18:10:10 if I change hte orientation while I'm showing a dialog in my actiivty Nov 13 18:10:13 I get an exception in the log Nov 13 18:10:41 11-13 18:09:39.674: ERROR/WindowManager(832): android.view.WindowLeaked: Activity .... has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43483af8 that was originally added here Nov 13 18:10:49 is that expected? Nov 13 18:11:00 if you leak the dialog, yes Nov 13 18:11:15 I guess so.. that happens every time when a dialog is open and you close the activity without closing the dialog Nov 13 18:11:31 it also happens to the "native" apps, so don't worry :P Nov 13 18:11:57 no, you have to worry about it Nov 13 18:12:07 the easiest way to do it properly is to use managed dialogs Nov 13 18:12:18 if you don't, then you have to dismiss the dialog yourself in onDestroy Nov 13 18:13:07 the dialog in question is an alert Nov 13 18:13:31 what you are suggesting then is to use a onCreateDialog dialog for that? Nov 13 18:13:34 so? you still should manage it properly :) Nov 13 18:13:40 yes Nov 13 18:14:17 ok Nov 13 18:14:35 any comment on the seekbar not saving state correctly? :) it smells like a bug to me, and it was certainly suprising :) Nov 13 18:15:30 probably a bug Nov 13 18:15:57 how to file? Nov 13 18:18:36 also if I use onCreateDialog to create an error message dialog which contains a different message (like, for example, an exception) Nov 13 18:18:43 then how to arrange that? Nov 13 18:18:58 save the text in a state varialbe, and then use onPrepareDialog? Nov 13 18:19:11 romainguy, (dorry, I'm hopping channels here) but I had no luck with the text centering -> I have a Y coordinate that's in the center.. I want the text to also use the same center. tried using (y+fontHeight/2-descent) etc but no luck.. Nov 13 18:19:32 ..ah I'm tired.. I don't understand what I'm trying to do anymore :P Nov 13 18:20:24 going to sleep.. let's see if I can cut the 1px mis-alignment tomorrow :P Nov 13 20:32:49 MediaPlayer needs a isPrepared method Nov 13 21:30:02 famast: why is that? Nov 13 22:03:22 marcone: did you ever look over some of the issues i posted regarding the MediaPlayer? Nov 13 22:03:37 like, the numerous ways in which it can hang the calling thread Nov 13 22:03:45 or throw IllegalStateException for no good reason Nov 13 22:04:39 Sorry, I haven't had time yet. We have someone working on the IllegalStateException stuff though. Nov 13 22:07:10 Can anyone internal to google tell me how you create new YAFFS2 images? Nov 13 22:07:18 and/or how to make a bigger effing /data mount Nov 13 22:07:37 say, the 128M on the phone instead of 64M on the emu Nov 13 22:13:21 or, for that matter, has anyone got a working binary of mkyaffsimage? : ( Nov 13 22:13:24 I'll settle for that Nov 13 22:23:13 or rather mkyaffs2image.c Nov 13 22:23:15 er Nov 13 22:23:20 mkyaffs2image Nov 13 22:31:46 nevermind, it's part of the source :P Nov 13 23:14:35 hi to all Nov 13 23:15:56 hi Nov 13 23:17:44 hi Nov 13 23:24:04 sup San Nov 13 23:24:46 wtf why does this keep changing me Nov 13 23:24:57 ... Nov 13 23:25:03 someone else has that name reserved? Nov 13 23:25:10 oh Nov 13 23:57:35 mikechan: hey Nov 14 00:04:28 hi ... what kind of permission I have to give to an application to be able to read from "/dev/urandom" (for example)? ... thanks Nov 14 00:28:19 filosofico, why would you want that? Nov 14 00:28:38 is there something wrong with java.util.Random? Nov 14 00:35:38 KNY: no, I'm developing an extension to the platform. In this platform an application have to read(/write?) specific devices. So i was testing device files from a simple test-application. Nov 14 00:36:24 filosofico, ahh, sorry. I don't know what to tell you for that. Nov 14 00:41:50 KNY: No problem. Anyway I have found that is possible to access devices according to their permission-bits (like any other linux system). In this case "/dev/urandom" is readable by anyone. Nov 14 01:49:32 If I change the height of a spinner, the default arrow does not change. How can I control the arrow size? Nov 14 01:49:41 or do I have to use a different arrow image Nov 14 01:54:59 different arrow image Nov 14 01:55:14 is it a 9-patch or an image? Nov 14 01:55:32 it probably should get the new size if it's a 9-patch Nov 14 02:01:32 I didn't change the arrow Nov 14 02:01:42 jmo: I just tried to use the exiting spinner Nov 14 02:02:06 jmo: so I need to create my own arrows, correct? Nov 14 02:10:30 how can the audio-channel be chosen of which the volume is controlled using the Hardware-Volume-Buttons? Nov 14 02:12:14 heh, I was thinking just the opposite Nov 14 02:12:15 setRIngerMode ? Nov 14 02:12:20 how can I take over the volume buttons Nov 14 02:12:30 I hate the map zoon in/out Nov 14 02:12:30 simply overwrite onKeyDown Nov 14 02:12:49 with a keycode... gimme a second Nov 14 02:13:11 int KEYCODE_VOLUME_DOWN 25 0x00000019 Nov 14 02:13:13 int KEYCODE_VOLUME_UP 24 0 Nov 14 02:13:22 works for me Nov 14 02:20:46 cool Nov 14 02:20:54 yeah, I've only see connectobt do it Nov 14 02:23:08 np Nov 14 02:25:36 gah, seriously Nov 14 02:25:41 the home app hangs all the freaking time now Nov 14 02:25:59 hi jasta Nov 14 02:26:03 * jasta investigates Nov 14 02:26:12 oh look, it's my app consuming inordinate amounts of CPU :) Nov 14 02:26:18 do you know this: Nov 14 02:26:22 how can the audio-channel be chosen of which the volume is controlled using the Hardware-Volume-Buttons? Nov 14 02:26:37 I mean when I push the Volume buttons the ringer volume gets adjusted Nov 14 02:26:42 setVolumeSomething :) Nov 14 02:26:44 hang on Nov 14 02:26:50 only if I'm currently playing a STREAM_MUSIC Nov 14 02:26:57 it controls the Music-Volume Nov 14 02:27:07 but I want it to always control the music-volume :/ Nov 14 02:27:19 setVOlumeControlStream Nov 14 02:27:35 in AudioManager ? Nov 14 02:27:36 Activity#... Nov 14 02:27:58 my player app sets it as soon as it enters so that volume buttons control music even when the mediaplayer is idle Nov 14 02:28:13 you need not unset it or remember its existing value Nov 14 02:28:29 no Nov 14 02:28:29 xD Nov 14 02:28:29 thx Nov 14 02:28:29 I was blind Nov 14 02:28:45 the only reason i found it was because i have thoroughly read through the Music app source code :) **** ENDING LOGGING AT Fri Nov 14 02:59:57 2008