**** BEGIN LOGGING AT Sun Nov 30 02:59:57 2008 Nov 30 12:51:58 TiberiumX, thanks, i think i'm slowly getting all those thread/handler/looper/service concepts :) Nov 30 16:30:09 eldenz: I don't know if I'm the one to thank. Maybe my incorrect answer prodded romainguy to give a correct one? Nov 30 16:35:14 heh, i actually figured it out myself by finding the examples in API Demos ... Nov 30 16:35:54 but runOnUiThread was very usefull to knokw :) Nov 30 18:05:08 is there a way to have a ListView where the items can't be highlighted? I've got android:choiceMode="none" in the XML Nov 30 18:08:09 you can hide it easily enough by setting a background in the child widget Nov 30 18:08:17 clickable but not highlightable right? Nov 30 18:11:10 Disconnect, no, not clickable Nov 30 18:11:41 well, I have a ListView where the children contain Spinners, so those need to be clickable Nov 30 18:12:22 set clickable to false? that might hide the selector. if not, setting the background on the children will prevent it showing up Nov 30 18:14:24 android:clickable="false" fixed the selection; I'll set the background next Nov 30 18:14:26 thanks! Nov 30 18:14:38 i had exactly the opposite problem yesterday so :) Nov 30 19:15:45 is findViewById expensive? cuz its taking -forever- to pick up 4 edittexts :( Nov 30 19:40:41 anyone know why my setcontentview is taking 2 seconds? :( its not a particularly complex layout. basically just a scrollview with rows (linear) containing a label and an edittext. Nov 30 20:29:08 Is there a class like wifimanager for 3g connections? Nov 30 20:34:47 Disconnect: how do you measure these 2 seconds? Nov 30 20:35:53 logcat timestamps. currently (#android) I have it converted to a tableview. its tearing through the oncreate and then nothing for 1.5 seconds before I get activitymanager saying "displayed activity" Nov 30 20:36:04 (and no display for that time either) Nov 30 20:38:00 maybe your adapter is taking a long time then Nov 30 20:38:09 between onCreate and the display, layout and drawing happen Nov 30 20:48:17 where do i look for that? its a standard xml layout, not doing anything funny. Nov 30 20:49:26 you would have to use traceview to profile that Nov 30 20:49:47 damn. :( Nov 30 20:52:36 http://pastie.org/327256 no output, exit 1 :/ Nov 30 20:52:57 ah Nov 30 20:53:03 because you don't get all the files Nov 30 20:53:08 there should be a .key file as well Nov 30 20:53:14 and you need to run traceview fillsWindow Nov 30 20:53:52 "remote object '/sdcard/fillsWindow.key' does not exist" Nov 30 20:54:07 i thought the key was built into the header now Nov 30 20:54:13 ah maybe it is Nov 30 20:54:15 let me check Nov 30 20:54:15 (there is at least a text block above everything) Nov 30 20:54:19 how do you generate your trace? Nov 30 20:54:35 i followed http://code.google.com/android/reference/traceview.html Nov 30 20:54:59 so i've got Debug.startMethodTracing("fillsWindow"); in onCreate, and Debug.stopMethodTracing() in onDestroy Nov 30 20:55:04 ok the .key is gone now Nov 30 20:55:09 can you try running traceview fillsWindow Nov 30 20:55:13 without the .trace? Nov 30 20:55:16 yah same error Nov 30 20:55:20 (or lack thereof) Nov 30 20:55:21 doh Nov 30 20:55:29 can you send me your .trace? Nov 30 20:56:05 sure. addy? Nov 30 20:56:12 romainguy@android.com Nov 30 20:57:48 sent Nov 30 20:59:03 wow Nov 30 20:59:13 I get the same thing Nov 30 20:59:21 looks like this trace file is busted somehow Nov 30 20:59:22 thats progress at least :) Nov 30 20:59:30 its the 50th or so I've generated (prolly 20 or so but..) Nov 30 20:59:42 some just covering onCreate, some covering the whole activity Nov 30 21:01:08 I tried other versions of traceview it fails as well Nov 30 21:01:36 the ones covering just onCreate also fail? Nov 30 21:01:43 yah. want one? Nov 30 21:02:05 that won't change anything Nov 30 21:02:07 actually.. they failed when oncreate took 1.5-2 seconds. not sure what they'll do now that the delay is after that. but i don't expect success :) Nov 30 21:02:42 what do you have exactly in your UI? Nov 30 21:04:34 linear vert < scroll < table < 6x rows of textview : edittext /table> /scroll> /linear> Nov 30 21:04:56 dang Nov 30 21:05:11 that + the very slow startup times you report for Home makes me think there's something bad going on on your device Nov 30 21:05:22 (I sent your trace to the traceview guy btw) Nov 30 21:05:36 trace from the emulator is no better Nov 30 21:10:31 hmm. dmtracedump says: Nov 30 21:10:32 Exit from method java/lang/BootClassLoader.getInstance ()Ljava/lang/BootClassLoader; does not match stack: Nov 30 21:10:32 0: 701 dalvik/system/VMDebug.startClassPrep ()V Nov 30 21:14:17 can you show me the source code of your activity? Nov 30 21:14:18 just the .java Nov 30 21:16:16 sent Nov 30 21:18:01 what is FillsDbAdapter? Nov 30 21:18:19 basically just an expanded notesDbAdapter from the tutorials Nov 30 21:19:14 there's nothing wrong with your code Nov 30 21:19:30 so for some reason your device is thrashing like crazy :(( Nov 30 21:19:38 do you have the same startup performance issue in the emulator ? Nov 30 21:19:39 other than style and such :) Nov 30 21:19:42 and yah, emulator is the same Nov 30 21:20:17 been moving back and forth depending on whether i need to charge the phone :) Nov 30 21:52:39 Any ideas why when i set the background color for linear layout it always goes black? Nov 30 21:53:13 doing it programmatically i mean Nov 30 21:57:04 e.g mLinearLayout.setBackgroundColor(0xfff443); Dec 01 01:39:24 hello all Dec 01 01:39:38 i've been bugging the poor guys in #android for the last week Dec 01 01:39:43 because I didnt know this channel was here Dec 01 01:41:51 lolwut? I had no idea! Dec 01 01:42:16 damn the word is out. we should start #android-realdevs Dec 01 01:42:22 lol Dec 01 01:42:24 =[ Dec 01 01:44:13 has anyone ever seen java.lang.IllegalStateException: System services not available to Activities before onCreate() ? Dec 01 01:46:09 no Dec 01 01:46:20 Yeah, it took awhile before I heard about this one. The problem is that it generally has less traffic and because of that is a worse place to get answers to questions. Dec 01 01:46:30 d03boy: alrighty, thanks Dec 01 01:46:50 What line in your onCreate does the trace output point you to? Dec 01 01:47:13 Sounds like you'd just want to move that to onStart or something. Dec 01 01:47:58 what is the proper event to handle what would happen if someone entered some text and then wanted to "submit" that text Dec 01 01:48:03 without the use o f abutton Dec 01 01:48:43 TextChangedListener? Dec 01 01:50:20 wouldnt that get called on every character they enter? Dec 01 01:50:58 TextWatcher class with addTextChangedListener (in TextView), I mean. Dec 01 01:51:24 Well, I guess you'd have to decide when the user was 'finished' and submit that text. Dec 01 01:51:39 well thats part of my question Dec 01 01:51:47 what is "standard" for the "enter" button? Dec 01 01:51:56 im sure some people want to push the scroll wheel button Dec 01 01:52:03 some want the Enter button Dec 01 01:52:08 what do you think? Dec 01 01:53:09 KeyListener and accept either? **** ENDING LOGGING AT Mon Dec 01 02:59:58 2008