**** BEGIN LOGGING AT Wed Dec 10 02:59:57 2008 Dec 10 04:26:20 hi there, i wish to know where is the sdk directory in my built-from-source? Dec 10 04:27:26 $topsourcedir/development/ ? Dec 10 04:44:09 hi, how to built sdk from the source? thanks. Dec 10 05:12:35 kennyyu: "make sdk" I think...there are docs in there Dec 10 05:17:14 zhobbs: thanks. may you perhaps show my the docs? :) i aren't sure where they are... Dec 10 05:24:20 kennyyu: hmm, can't find the docs...don't remember where I read about that... Dec 10 09:21:24 Can someone tell me why the Spinner doesnt react on the paddingRight 10px? http://dl.getdropbox.com/u/287197/layout.jpg Dec 10 10:46:17 * gambler__ got his G1....wheee Dec 10 12:20:56 Why does a Spinner not wrap around content if you set him to wrap_content for the width? Dec 10 14:34:17 Anybody have experience with writing a ContentProvider that doesn't have a SQL/database backend? Anybody have a simple custom Cursor lying around? Dec 10 15:41:27 i got a webview and i cant scroll it if im in an autocomplete text view wtf Dec 10 17:57:29 I can't figure out one thing - I have a SurfaceView in my activity - as soon as I call setContentView(surfaceView); in onCreate(), the app launch takes anywhere from 1 second to 125 seconds in one extreme case.. the typical startup time is ~30 seconds.. why does it vary THAT much every time? :/ Dec 10 17:58:42 (the time is taken from the line: INFO/ActivityManager(63): Displayed activity com.example/.Example: 18095 ms) Dec 10 17:59:16 the code is exactly the same each launch Dec 10 18:01:16 if I dont call setContentView(surfaceView); the activity launch takes ~300ms Dec 10 18:04:23 other than that I don't override onResume.. only onCreate.. and onCreate itself finishes also in less than a second.. but still the activity is displayed only after some 30 seconds.. Dec 10 18:04:57 I'm not blocking in onCreate with anything.. I output the time on the first and last line there.. and its under a second :) Dec 10 18:06:00 (..wheres romainguy when you need him.. I guess I have to wait till next month with it ;) ) Dec 10 19:03:49 ..I was wrong.. still seeing startup times of many minutes from time to time:/ Dec 10 19:05:15 tauno_: is it after firmware upgrades? Dec 10 19:05:58 from what ive seen, it needs to re-dex-optimize all installed packages if the firmware is upgraded, not sure exactly what else triggers that Dec 10 19:06:12 might watch logcat output during those long boots Dec 10 19:08:50 jsharkey, it's after I reinstall my app Dec 10 19:09:23 sometimes my app starts in a second.. sometimes it takes 2 minutes Dec 10 19:09:34 the app is alwasy the same.. I'm just reistalling it from eclipse Dec 10 19:09:42 oh hmm so its not reboot Dec 10 19:09:51 nope Dec 10 19:10:10 and I can't figure out what is the cause of these VERY different startup times :) Dec 10 19:10:24 ..drives me mad.. 2min isn't normal :/ Dec 10 19:10:37 does logcat show anything unusual during that longer time? Dec 10 19:11:16 nope.. jsut the garbagecollector doing it's work a few times Dec 10 19:11:49 does it only happen on the device, or does the delay also show up on the emulator? Dec 10 19:12:32 gimme a sec.. I'll try Dec 10 19:14:20 how can I keep a URLConnection from blocking the UI until completion? Dec 10 19:14:59 use a thread for your connection Dec 10 19:15:15 tric: would the same apply to a progressbar as well? Dec 10 19:15:25 because it seems that things happen out of order Dec 10 19:15:47 progressbar? out of order? Dec 10 19:15:54 yea Dec 10 19:15:57 for example Dec 10 19:16:08 I have a progressbar that I hide/show Dec 10 19:16:16 before and after a URLConnection begins and completes Dec 10 19:16:23 but it always does the URLConnection first Dec 10 19:16:32 jsharkey, it also happens on the emulator (before I tested it always on the device) Dec 10 19:16:39 so the progressbar is useless Dec 10 19:16:54 also using setText() before a URLConnection is executed out of order Dec 10 19:17:24 if, google docs tells you to use threads for all blocking operations or long running tasks. like network connection Dec 10 19:18:19 instead of the progressbar example, say you want a TextView to show "Loading..." while you make a URLConnection Dec 10 19:18:39 if you call setText() to give your 'Loading' text... then do the urlconnection, it does it backwards Dec 10 19:18:59 the connection always blocks and completes first, before it does the setText Dec 10 19:19:12 which I cannot figure out why... Dec 10 19:19:25 jsharkey, it's totally random.. now it took 1-5 seconds the first 7 times I reistalled/relaunched the app.. and about a minute the 8th time Dec 10 19:19:37 use threads! Dec 10 19:20:01 tauno_: have you tried profiling it to see where it is spending all its time? Dec 10 19:20:04 I need a separate thread just to call setText ?? Dec 10 19:20:30 I always want to be sure that it is called before the urlconnection even attempts to start Dec 10 19:20:32 marklar, ah yeah.. profiling :) Will do that right now :) Dec 10 19:20:46 called and completed, that is... the setText Dec 10 19:20:51 bparker: you need a separate thread for your connection Dec 10 19:20:53 bparker06, no, do the urlconnection in a separate thread :) Dec 10 19:21:04 ui need to stay in main thread Dec 10 19:21:12 hmm Dec 10 19:21:18 got any links to a turorial on that? Dec 10 19:21:21 ie youll need a handler to notify ui that your connection is finished Dec 10 19:21:35 I know nothing about java threads unfortunately :/ Dec 10 19:22:36 http://code.google.com/android/toolbox/responsiveness.html for the blocking issue Dec 10 19:22:42 thanks Dec 10 19:23:02 and http://java.sun.com/docs/books/tutorial/essential/concurrency/ Dec 10 19:47:51 hmm.. seems like Canvas.drawBitmap AND Canvas.drawColor are blocking (or just EXTREMELY slow) Dec 10 19:48:14 wonder how am I torturing them :/ Dec 10 19:51:14 yea ive noticed that canvas can be pretty slow because of the locking/unlocking overhead Dec 10 19:51:21 tho maybe i was using it wrong Dec 10 19:52:22 just doing: canvas = surfaceHolder.lockCanvas(null); synchronized (surfaceHolder) { canvas.drawColor(0xFF000000); } takes 7 seconds (sometimes more.. like 20 or 30 etc..) Dec 10 19:55:21 (I use lockCanvas(null) instead of lockCanvas() because of copypaste :P will change it..maybe it makes thing better :/ ) Dec 10 19:57:12 anno^da_: hah, nice app. pretty high and the all applications sorted by popularity list too. Dec 10 20:04:54 nope.. still the same using lockCanvas() Dec 10 20:06:26 do I need this synchronization block at all? Dec 10 20:07:55 unix_lappy: thanks. I'm just a bit amused about the guys stating that it does something that the standard os does :P Dec 10 20:09:50 But it is a bit annoying that I cant answer the comments directly Dec 10 20:11:31 tauno_: its unlikely google would design an interface that recommended you manually synchronize the object Dec 10 20:11:47 but i dont know specifically about your case so you can possibly ignore me Dec 10 20:12:54 jasta, good point - my problem is that I copied this logic from somewhere.. a tutorial or something.. don't remeber :/ Dec 10 20:13:14 it would be very clumsy to have such an interface, and i have not known google to design clumsy APIs in general Dec 10 20:13:45 they probably have required lock and unlockCanvas to do the proper synchronization, not your use of synchronized Dec 10 20:14:30 the docs say also something like that :)) Dec 10 20:14:35 jasta: have you got a solution for that problem? http://groups.google.com/group/android-developers/browse_thread/thread/79cb348c88bc36c2# - I'm still fighting with it to get a proper solution. Dec 10 20:14:54 arrgh.. where did I get that manual sync from... Dec 10 20:16:01 anno^da_: thats kind of hard for me to parse Dec 10 20:19:38 ..from there I guess: http://groups.google.com/group/android-developers/browse_thread/thread/2cde76a64038572a Dec 10 20:19:41 or there: http://groups.google.com/group/android-developers/browse_thread/thread/2cde76a64038572a Dec 10 20:19:45 sry Dec 10 20:19:52 http://www.anddev.org/viewtopic.php?p=14512 Dec 10 20:19:55 argh Dec 10 20:19:59 stupid me :/ Dec 10 20:20:49 http://www.youtube.com/watch?v=6iKje_0lUYg&eurl=http://www.engadget.com/2008/12/10/video-android-rocking-on-the-htc-touch/ Dec 10 20:20:58 makes me wonder if this is a widget or something else...hm.. Dec 10 20:21:07 (re keyboard) Dec 10 20:21:13 anno^da_: can you paraphrase this for me a little bit? what is he asking about? Dec 10 20:21:41 unix_lappy: the soft keyboard on the touch was/is a framebuffer driver hack in the kernel Dec 10 20:21:48 at least it was that way when i used it a few months ago Dec 10 20:24:11 jasta: since romain is out for a month i'm guessing IMF is ready to ship and being tested or IMF is delayed and wont be available until 09. Dec 10 20:24:49 ithe timeline said it was coming in 09 anyway Dec 10 20:25:00 i meant the soft keyboard on the htc touch Dec 10 20:25:06 it was written by some other dude, not at google Dec 10 22:15:15 hello evrybody Dec 10 22:15:24 hello Dec 10 22:16:45 i just joined this group because i'm curently realy interested on developping someting for android Dec 10 22:17:07 #android is pretty active Dec 10 22:17:13 and deals with development too Dec 10 22:17:13 but i have no idea to start Dec 10 22:17:29 http://code.google.com/android/documentation.html Dec 10 22:17:31 start here! Dec 10 22:17:37 download the sdk, get started with the emulator Dec 10 22:17:41 and make your first hello android app Dec 10 22:17:49 already did Dec 10 22:17:55 then uh.... Dec 10 22:17:59 make your second hello android app! :D Dec 10 22:18:40 or another tetris of course :) Dec 10 22:19:58 a free tetris app would be nice Dec 10 22:20:04 tilt-controlled would be nifty too Dec 10 22:20:27 honestly, join #android and ask for ideas there Dec 10 22:20:57 http://code.google.com/hosting/search?q=android+tetris&projectsearch=Search+Projects Dec 10 22:21:19 there are some exemples i'm tring to modify one of theme curently Dec 10 22:21:30 but it realy boring Dec 10 22:22:10 and there are many other projetcts hosted on google code Dec 10 22:22:30 honestly, just dick around with gps stuff : ) Dec 10 22:22:31 that's always fun Dec 10 22:23:11 maybe Dec 10 22:23:25 do you have a G1 phone Dec 10 22:25:33 yes Dec 10 22:25:57 not me we have to wait until mars Dec 11 00:15:47 * jasta casually wonders when google is gonna get their internal devs using git Dec 11 00:16:58 jasta: as soon as we have a recent tree out there'll be more activity on the git side. Dec 11 00:17:44 right, thats what i meant Dec 11 00:17:52 when are you going to put your perforce tree in git? Dec 11 00:18:01 as soon as we possibly can. Dec 11 00:19:19 We're actively working on it, but even at this point it's hard to know. Until we can have it staged on an internal server and be ready to pull the trigger, I'd rather not promise something I'm not sure we can deliver. Dec 11 00:21:27 i was just casually wondering ;) Dec 11 00:24:02 ;) Dec 11 00:36:08 hey guys. I have two standard T-Mobile G1s here my parents brought to me in Australia. Dec 11 00:36:18 I managed to get network unlocked Dec 11 00:36:55 But right now its not communicating with the email servers...is there a way to start the phone without entering email? Dec 11 00:42:59 no, you need to register them with google accounts before you can use them. Dec 11 00:43:27 Do you have a data icon (G/E/3G with 2 arrows) in the notification bar next to the signal strength indicator? Dec 11 00:46:08 nope. currently using my old sim which is GSM ...so I need to swap to a 3G SIM and set the APN is that right? Dec 11 00:49:31 Or you need to set the APN for the sim you currently have in it. The setting is reachable by pressing the menu key while in the setup wizard. **** ENDING LOGGING AT Thu Dec 11 02:59:57 2008