**** BEGIN LOGGING AT Sat May 30 02:59:57 2009 May 30 04:44:36 Yay May 30 04:46:18 * wmealing_ cheers .. what for he isnt sure May 30 08:53:52 im really sick of SoundPool 30% fo the time my app dies on loading sounds, it never gets out of the loud sounds routine, anyone got any clues? May 30 09:08:46 wow what's that about? May 30 09:08:56 can't make good sound apps on android? May 30 09:23:20 Gaz: afaik the sound loade has improved in 1.5 May 30 09:26:30 yes its improved a lot but still not flawless May 30 09:36:39 hey guys - anyone has any experience with translating cupcake? May 30 09:51:49 ralfs, ooops, mayeb post to the mailign list? May 30 09:56:51 how can my app find out what the firmware version is? May 30 09:57:18 you can request that your app only runs on a given version May 30 09:57:32 i know, but I just want to know what the version is. May 30 09:58:17 I want to collect some statistics, so I know then the majority of my users has updated to cupcake, so I can then add some cupcake-features to my app. May 30 10:04:15 soulreaper i think you specify that in when u build like in eclipse i have to say 1.1 or 1.5 now May 30 10:04:26 ooops sorry i misread May 30 10:04:29 disregard that May 30 10:04:34 ack ;) May 30 10:09:15 there should be such a function... maybe I have to use reflections to get information about a class that only exists in 1.5, or only has some special features in 1.5 that I can use to detect 1.5. May 30 10:09:34 but I am trying to avoid this, would be better if there is a simple method that simply returns the firmware version. May 30 10:11:27 good point May 30 10:11:44 i have an example in j2me you could try May 30 10:11:45 2 secs May 30 10:12:23 how do I rotate avd to test orientation changes? May 30 10:12:50 numpad 7 May 30 10:13:28 gonna paste 5 lines for gelb May 30 10:13:33 try { May 30 10:13:34 Class.forName("com.siemens.mp.game.Light"); // Set Siemens specific keycodes May 30 10:13:34 LeftSoftKey=-1; May 30 10:13:34 RightSoftKey=-4; May 30 10:13:34 } catch (ClassNotFoundException ignore) { May 30 10:13:57 if u can find classes that dont exist in 1.1 that do in 1.5 u might be able to do that May 30 10:14:11 thank you, I think I will try this. May 30 10:14:20 let me know if it works :) May 30 10:14:31 better than my endless searching for a method that returns the version... May 30 10:14:41 yeh May 30 10:14:49 unless it can grab stuff from manifest or something May 30 10:35:49 Gaz: I found something that works... May 30 10:35:59 Gaz: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html May 30 10:36:14 Gaz: can paste you the code I used in a query if you like. May 30 11:02:49 ah May 30 11:02:51 reflection May 30 11:02:53 you were right May 30 11:03:21 same sort of idea as the j2me one May 30 11:03:22 cool May 30 11:03:34 i still cant get soundpool to work reliably May 30 11:03:42 it often just dies when i add soudns to the sound pool May 30 11:07:27 hi.. May 30 11:07:29 got a quick question May 30 11:07:53 yo May 30 11:08:08 I got a EditText and I convert that to integer using Integer.parseInt May 30 11:08:30 however, this gives me a force close if the value I type in EditText is a decimal value.. Ex: 31.80 May 30 11:08:42 so is there a way to convert the string to a float or double? May 30 11:08:45 instead of int May 30 11:08:47 ? May 30 11:09:55 no ideas? May 30 11:09:58 hmm May 30 11:10:06 i do know May 30 11:10:10 just waiting for my head to remember May 30 11:10:34 Float.parseFloat(String s) May 30 11:10:36 try that May 30 11:12:05 may work.. running now.. h/o May 30 11:13:23 it worked! Thanks a billion! May 30 11:13:28 :-) May 30 11:13:29 np May 30 11:13:36 A bit embarrased I didnt think of it myself though, lol May 30 11:13:51 hehe yes it makes sense when you look at it May 30 11:15:11 hah, it does, doesnt it May 30 11:15:11 heh May 30 11:17:28 well, it worked.. maybe my android app will get some better ratings now that it doesnt force close when you try to use it, hah May 30 11:24:34 heehee May 30 11:24:40 even if you wrote linux on your own May 30 11:24:48 youd still get tons of people saying "GAY DOESNT WORK" May 30 11:24:54 so dont feel too bad :) May 30 11:26:18 lol May 30 11:26:24 still, it was my first Android app May 30 11:26:33 and it got poor ratings and comments about it force closing.. May 30 11:26:42 I just didnt think of the possibility of typing in decimals May 30 11:26:55 so it took me a day before I figured out why people got it to force close May 30 11:26:56 lol May 30 11:27:10 Ive updated it now though, so hopefully I can get some better feedback May 30 11:28:37 If you update an app, will it show up at the top on the "By Date" view in the Market? May 30 11:29:46 yes i thinks so May 30 11:29:51 yeh all my apps do that force close shit May 30 11:29:55 still tryin to work out why May 30 11:30:04 i can minimise it but it sometimes happens stillrarely May 30 11:30:32 heh May 30 11:30:53 Betting your app isnt as simple as mine though May 30 11:30:54 he May 30 11:32:26 :) May 30 11:32:52 morning everybody May 30 11:32:57 hey sammyF May 30 11:33:06 still wrestling with my SoundPool here May 30 11:33:50 Gaz: you had the problem of samples being played only once, right? May 30 11:33:57 not now May 30 11:34:05 latest problem is some samples are "not ready" May 30 11:34:07 even after loading May 30 11:34:16 this happens randomly May 30 11:34:24 hmm May 30 11:34:26 and also it crashes during loading my sounds and hangs my apps sometimes May 30 11:34:31 yeah .. got the same problem here May 30 11:34:40 im messing wth thread and all sorts now to see if i can get around it May 30 11:34:54 sometimes the application starts, but seems to hang while loading the samples May 30 11:35:10 "wait or force close" dialog and all the stuff May 30 11:35:16 yes i have a message LOAD SOUNDS before the calls to soundpoolmap.put May 30 11:35:20 and a message after SOUNDS DONE May 30 11:35:27 offten itll die before it gets to SOUNDS DONE May 30 11:35:43 like its dieing on adding to the soundpool May 30 11:36:58 Gaz: yep. same here May 30 11:37:22 doesn't seem to be a problem with my code though, as every other time everything works perfectly fine :/ May 30 11:37:44 me too May 30 11:40:52 pressing "wait" on the popup helps though ... so maybe putting up a notification until everything is loaded might solve the problem (kind of) May 30 11:41:10 tried waiting longer already? May 30 11:41:47 im addng sleeps in now infact May 30 11:42:01 and tryin to make sure my code doesnt kick off til after samples should be done May 30 11:42:07 but im shooting in the dark to be honest May 30 11:43:56 yeh it didnt help May 30 11:44:01 after 27 samples it stops May 30 11:44:17 and says W/WindowManager( 56): App freeze timeout expired. May 30 11:44:18 W/WindowManager( 56): Force clearing freeze: AppWindowToken{43293f38 token=HistoryRecord{43253868 May 30 11:44:18 .uk.SonoroxActivity}}} May 30 11:44:18 W/SurfaceFlinger( 56): timeout expired mFreezeDisplay=1, mFreezeCount=0 May 30 11:44:35 yep. the worst part is that people are going to complain about "frezzes my Pone" if you put it on the market May 30 11:44:38 and hangs on a blackscreen May 30 11:44:43 27 samples? that's quite a lot May 30 11:44:43 yeh May 30 11:44:50 yeh i need 30 May 30 11:44:57 but it works 70% of the time May 30 11:45:04 died on 13 there May 30 11:45:17 see if i cant quit normally i cant release soundpool that might be an issue May 30 11:45:24 then it takes a while for the GC to kill off the sound pool May 30 11:45:29 then it works nice again for a while May 30 11:45:57 reloaded there perfectly May 30 11:46:47 yeh i dont like the abuse u get from the market place if theres a bug in there May 30 11:48:05 * sammyF think he shold write a game "Frezze, my Pony" ;) May 30 11:50:35 hi all, has anyone encountered a strange gap when using addView ? May 30 11:57:32 consistently hangfing on 5th sound now sammyF May 30 11:57:42 a reboot usualyl fixes it heh May 30 11:59:06 now im losing my mind, im putting in System.gc(); May 30 11:59:08 lol May 30 12:03:15 ;) May 30 12:03:29 hmm May 30 12:03:53 cant really make this app unless i put a disclaimer - sorry still buggy May 30 12:03:56 just isnt reliable May 30 12:03:59 Does anyone know if you use addView to append a textview to an existing linear layout, the reason why that if the existing textview text within the xml are null, they still leave a blank space. ??? May 30 12:05:45 i cant remember johnnyzen :( i did mess with the ui for a while May 30 12:06:07 sammyF rebooted and it worked- its like the soundpool isnt flushed May 30 12:07:22 yep May 30 12:11:14 Gaz ...I'll try to play each sound directly after they are loaded May 30 12:11:15 and still some samples not ready May 30 12:11:22 thats a good idea May 30 12:11:31 i did that with the JIT issues in j2me May 30 12:11:33 for gfx May 30 12:11:35 Gaz: thanks anyways :) May 30 12:11:35 i`ll try that too May 30 12:11:44 :) May 30 12:12:10 so far it hung like half a sec once, but no wait dialog May 30 12:12:33 mine just freezes up and onylway to get out is to press and hold the "menu" key May 30 12:12:47 that brings up the wait/force clsoe May 30 12:14:45 seems to have worked for me, but I only have 8 samples and 1 music loop (and THAT is played through the mediaplayer anyway) May 30 12:15:16 soem slight noticeable delay the first time a sample is played, but no "wait/close" dialog anymore ... so far May 30 12:17:12 trying it now May 30 12:17:22 i think soundpools are mediaplayers underneath anyway May 30 12:17:25 maybe May 30 12:17:55 yep. but soundpool gives you greater control on some aspects somehow May 30 12:18:02 anybody here every embedded a SurfaceView into a view hirarchy? May 30 12:18:24 my SurfaceView doesn't participate in the surounding layout May 30 12:20:26 the sample is not ready if i try to play it immediately May 30 12:21:14 it implies you have to wait, but i doubt it would help May 30 12:21:21 plus my app launches right in with no intro etc May 30 12:23:15 lol i play all samples in a loop fast May 30 12:23:20 sounds mad, not sure if it helps yet May 30 12:23:21 yep. that might be problem. mine is a game, so I have a title screen and so forth May 30 12:23:32 yeh i could add one i gues May 30 12:23:57 damn it stuck on sample 16, i dont see any logic May 30 12:24:30 out of ressources maybe? May 30 12:24:37 how big are your samples? May 30 12:30:49 ni total about 600k of wavs May 30 12:31:00 it often handles it fine, then othertimes it wont May 30 12:31:05 ld try oggs May 30 12:31:30 617k of wavs, 30 wavs May 30 12:34:06 if i kill it, wait for a while it often works May 30 12:34:23 liek somehow the acitvity is truely cleared, but i finish() it and null everythign and release the pool so it should be ok May 30 12:34:38 often i cant quit "properly" tho as it hangs during loading, its a viscious circle May 30 12:35:57 Friendly greetings ! Im writing my first apps and reading the documentation about data-storage ( http://developer.android.com/guide/topics/data/data-storage.html ). i'd like to (safe) store login and password. should i use : public SharedPreferences getPreferences (int mode) ? May 30 12:36:03 well theres a new one now AudioFlinger is complaining, not even heard of that May 30 12:36:39 i'm confused about "Shared" in the class name May 30 12:37:33 argh!! where has audioflinger errors come trom May 30 12:39:08 it seems overkill to use SQLite for that :) May 30 12:41:51 looks like sound is just fucked May 30 12:41:59 in 1.5 too :( May 30 12:42:14 mmm ok, that's it. i should use SharedPreferences :) May 30 12:43:14 Gaz: hmm .. doesn't sound like ressources then. the sum of my samples is more than that ( around 800k I guess) May 30 12:44:27 yeh May 30 12:44:34 itworks just perfectly sometimes May 30 12:44:48 hey also do you ever notice ur g1 thinking its changed orientation when it hasnt? May 30 12:44:59 i just got May 30 12:45:00 I/WindowManager( 60): onOrientationChanged, rotation changed to 0 May 30 12:45:00 I/WindowManager( 60): onOrientationChanged, rotation changed to 1 May 30 12:45:00 I/WindowManager( 60): onOrientationChanged, rotation changed to 0 May 30 12:45:04 without touching it May 30 12:45:17 yep. but as I fix the orientation anyway .... :) May 30 12:45:27 annoying and odd May 30 12:48:10 hmm May 30 12:48:19 so yours never hang during loading now? May 30 12:48:28 are they ever "not ready" whn u try to play them May 30 12:53:04 new issue every ten mins, now it wont release the pool without crashing May 30 12:54:34 Gaz: well .. they do hang a bit on startup. I only notice it because the first button that is pressed takes some time to register (I play a custom sound when a button is pressed) May 30 12:54:48 right May 30 12:54:53 but I didn't get the "wait/close" dialog anymore so far May 30 12:56:14 I think it still hangs after the initial loading of the soundfile before it can be played at all May 30 12:56:47 but as I try playing it right away when the application starts and the user can't be THAT fast (hopefully), by the time the button is pressed the sample is loaded May 30 12:57:01 hehe May 30 12:57:27 I noticed that, for example, the Meridian mediaplayer takes some awfully long time to start a track sometimes. May 30 12:57:59 so it seems like it's a standard issue. Android takes ages to load sound samples :/ May 30 12:59:14 the weird thing is they load very fast seemingly May 30 12:59:22 even if i wait for 20 seconds before i try to play one May 30 12:59:26 itll still say "not ready" May 30 13:01:33 i must have done somethign weird because now i wotn even release the pool without hanging May 30 13:04:00 must be breathing funny May 30 13:06:05 hehe May 30 13:06:10 thats all it takes May 30 13:06:41 i played with sound also, i didnt get as far as you. May 30 13:06:51 its been pretty painstaking May 30 13:07:18 from what i understand the java is a thin wrapper around the lower level api May 30 13:07:33 i think understanding the lower level code will help May 30 13:07:39 good point May 30 13:07:48 i'm probably stating the obvious though May 30 13:07:48 Gaz: just to make sure you don't think I have it easy : I have to start and then directly pause the mediaplayer for the musicloop. I can't just load the loop, and call "start" when the game actually starts ;) May 30 13:08:00 wmealing not really i didnt think it delve into the internals May 30 13:08:18 sammyF oh thats good to know :) May 30 13:08:24 a bit of consolation May 30 13:08:25 hehe May 30 13:09:05 Gaz: yep. means that at the application, you hear a short "tweep" when the music is loaded and then stopped :P May 30 13:09:17 :( May 30 13:09:18 can't do anything about it somehow, even though it really doesn't make sense May 30 13:09:48 yeh even if i could detect the error and reload or something id be happier May 30 13:09:50 but i cant May 30 13:10:09 from what I could see the soundfile is loaded by the mediaplayer, but if it's not started and other sounds are loaded or played afterward, the mediaplayer just releases the ressources May 30 13:10:27 i had hoped that it would be more like console coding May 30 13:10:29 than J2ME coding May 30 13:11:03 if i had to be genuinely honest - id say so android is as good as j2me, but not better May 30 13:11:58 infact almost all development i do on all platforms is marred by bugs outside of my control May 30 13:12:15 XNA isnt yet, i havent found any bugs that stop me doing what i want May 30 13:12:21 Gaz, unlike other platforms you can fix this one. May 30 13:12:29 yeh but im not gonna do that May 30 13:12:38 as u cant guarantee that everyone has it May 30 13:12:45 but yes it will get fixed over time which is nice May 30 13:12:55 so really being open src doesnt affect me that much May 30 13:12:58 has what ? May 30 13:13:04 apart from maybe fixes are more frequent May 30 13:13:15 the updated OS version with fixes May 30 13:13:30 can't guarantee that on anything ever. May 30 13:13:57 some tricky coder has direct x 10 working on windows 95 May 30 13:13:59 playing crisis. May 30 13:14:26 what i mean is if i recompiled android and fixed the sound issue im having, instaled it on my phone and my app ran perfect - there would be no real advantage to me since if i send my app to you its still got the borken sound api May 30 13:14:51 hence opensrc is not that usful to me May 30 13:14:54 why can't you send me the changes ? May 30 13:15:16 what so i put my app on the market and ask every suer to download my custom version of android OS? May 30 13:15:34 just flash this 50 meg file onto your g1 then my app will work great - isnt goign to work is it :) May 30 13:15:51 i know what you're getting at, but it wont be 50m May 30 13:15:56 unless im missing something key May 30 13:16:06 * wmealing_ does a test May 30 13:16:14 can u make a little android os update like that? May 30 13:16:28 i havent lookeditno android at all apart from a java application dev poitn of view May 30 13:16:30 just for your app.. sure May 30 13:16:38 oh cool May 30 13:16:39 i dont know if its "supported" oor not May 30 13:16:54 yeh May 30 13:16:58 id like to hit the mass market May 30 13:17:05 im in this to make money to live off mostly May 30 13:17:21 btw. you lot seen the article at slashdot/Gamasutra about pricing? May 30 13:17:33 no May 30 13:18:16 url ? May 30 13:18:31 Gaz, i understand where you are coming from, dont get me wrong. May 30 13:18:32 wmealing: was looking for it ;) May 30 13:18:43 http://games.slashdot.org/story/09/05/30/0632220/On-the-Expectation-of-Value-From-Inexpensive-Games May 30 13:23:18 is there anyway to reserve more memory maybe May 30 13:23:20 like a stack May 30 13:23:28 or is that insane nonsense in this case May 30 13:28:44 hi May 30 13:28:53 anyone into widget development? May 30 13:29:44 ezome: nope, sorry May 30 13:30:13 ah hi sammy May 30 13:30:19 busted May 30 13:30:21 hows it going? May 30 13:31:27 ezome: phone ... one sec May 30 13:31:33 k May 30 13:32:52 my widget question is... when i call updateAppWidget any selected view looses focus... is there any way to keep the focus? May 30 13:35:21 does anyone know the name of the scroll bar handle (and the initial) that's displayed when scrolling through contacts? May 30 13:35:39 i want to implement my own, but i'm not sure of the terms to plug into google heh May 30 13:42:33 ezome: things are looking good. getting nice comments about my game per email ;) and I just kind of solved my last remaining (hopefully) bug which caused the game to hang sometimes when it was started May 30 13:44:18 ezome: I also added an extra bonus tile which isn't in the version you have. I call it the Yin Yang dirty bomb ;) Clears the screen (helpfull sometimes) but puts one of 5 patterns of undestructable tiles on the playfield. the player needs eraser bonuses or a real bomb to clear it. May 30 13:44:57 the Challenge button is also going to disappear (too much hassle) ... so all I need to do now is rewrite the eula and make the tutorial ... then it's off to the market :) May 30 13:50:30 :) sounds great May 30 13:56:55 daaammmnit May 30 13:56:58 no logic to this May 30 13:57:04 all i can think is g1 is out of mem butthats not possible May 30 13:57:07 cant be using much May 30 13:57:55 loading a sample cant be that hard surely May 30 13:57:57 :-x May 30 14:09:29 sammyF: http://www.mail-archive.com/android-developers@googlegroups.com/msg29929.html May 30 14:09:37 im def converting to OGG :) HOPE it works May 30 14:19:17 Gaz: I'm already using oggs ;) May 30 14:20:09 and it just hang again May 30 14:20:20 though first time in 20 or so tries ... May 30 14:20:57 and considering the Application Manager even hangs on me more often May 30 14:21:03 I think I'll let it be that way May 30 14:46:21 okay check it out May 30 14:46:28 who wants to create a really useful app? May 30 14:46:44 useful apps are overated :P May 30 14:46:55 are you a dev? May 30 14:47:12 you mean as in "workign for google?" then no May 30 14:47:17 no May 30 14:47:22 if you mean whether I write applications, then yes May 30 14:47:23 i mean create apps n shit for the market May 30 14:47:28 k cool May 30 14:47:33 ima tell you my idea May 30 14:47:53 * wmealing_ snarfs idea May 30 14:48:04 if it is a really cool app, the 100k is MINE !! May 30 14:48:21 this wouldn't be anything for the dev contest May 30 14:48:22 lol May 30 14:48:24 hah May 30 14:48:25 it isn't groundbreaking May 30 14:48:29 but it's very usefull May 30 14:48:30 Lieutenant: you'll find that most people in a channel called "Android-dev" do write applications (or at least try) May 30 14:49:32 i thought this was about building robots May 30 14:49:59 deebo, shuttup man.. dont TELL people May 30 14:50:14 googles plan for world domination May 30 14:50:16 its supposed to be a seeecret ! May 30 14:50:16 well now-a-days, you can go into "manage applications" and you can click on each individual app and they have their own cache you can clear. so my idea was that you can create an app that will clear the cache from all of the apps FOR you at the touch of a button. and you could modify the apps settings and set it to only clear specific apps cache's. cause if you notice, all the cache's from different apps add up in the lon May 30 14:50:20 oh god, now the cats out of the bag May 30 14:50:23 hopefully it didn't cut off ^^^ May 30 14:50:26 deebo: we'll have to put you in the bassin with teh angry seabasses with frikkin lasers on their head now May 30 14:51:44 add up in the... long run ? May 30 14:51:48 Lieutenant: it cut off after "addup in the lo" May 30 14:51:58 add up in the long run. you could clear probably 10 mb's on a phone. May 30 14:52:01 "lower intestine" ? May 30 14:52:28 i knew i felt at least 8mb there earlier. May 30 14:52:32 Lieutenant: I'm not even sure it's possible to clear the cache of foreign applications May 30 14:52:36 right in the lower intestine May 30 14:52:47 naw, cause i just checked, and you can clear weatherbug's cache May 30 14:52:58 wmealing: diet coke is supposed to help ;) May 30 14:53:01 from another app ? May 30 14:53:12 that i dont know. May 30 14:53:20 Lieutenant: that's the point May 30 14:53:22 sammyF, i'll tryy that May 30 14:53:22 you're the devs! May 30 14:53:22 lol May 30 14:53:36 Lieutenant, permission models stop apps from doing this to other apps May 30 14:53:47 i guess maybe a script will do that, right? May 30 14:53:58 Lieutenant: we're not *ZE* devs .. we're just lone souls trying to write applications for an OS created by google May 30 14:54:05 zee devs May 30 14:54:10 ;) May 30 14:55:11 Lieutenant: what's probably going to make that impossible is what wmealing said : chances are you can't delete the cache of an appliction you didn't write. which, seriously, makes a lot of sense May 30 14:55:32 http://www.google.com.sg/search?q=sammyf+kill+you+application May 30 14:55:41 see sammyf can KILL YOU application ! May 30 14:55:48 so dont mess with him/her May 30 14:56:05 i mean seriously. May 30 14:56:50 omg ... I'm a star at celebrity's Google Killing Deathmatch apparently May 30 14:57:13 yep May 30 14:57:16 be afraid May 30 14:57:23 but i'm saying, have have apps that i downloaded from the market and they have a "clear cache" option under "manage applications" examples are: weatherbug and locale May 30 14:57:50 but if it's not possible for OTHER apps to clear the cache, then i understand that. May 30 14:57:55 although I'm pretty sure I'm not the SammyF at mount and blade May 30 14:58:26 I never played the game enough to write "general tips for the early phase" May 30 14:58:37 sammyF, oh, i think you are. May 30 14:59:00 look, your secrets out May 30 14:59:10 we're just waiting for you to release your "killer app" May 30 14:59:11 haw haw haw May 30 14:59:20 wmealing: oookayyy .. what's .sg?? ;) May 30 14:59:28 singapore May 30 14:59:40 although i'm not singaporean, im from Australia. May 30 15:01:24 sigh .. my name is definitely too common May 30 15:01:47 sammyF, blessing in disguise May 30 15:02:15 sammyF, i've had someone join a bunch of mailing lists acting like an idiot with my name. May 30 15:02:29 not so fun May 30 15:05:45 yeah. I can guess May 30 15:06:45 Hi all, I want to make a Mask effect with 2 bitmaps. The first has to be masked May 30 15:06:47 by the second. What is the best way? I need it to redraw portions of May 30 15:06:47 the screen that are involved in animations. I have an object(bitmap) May 30 15:06:47 that moves on the screen and i need to redraw with a mask its last May 30 15:06:47 position with the background bitmap. tnks May 30 15:13:10 hpp-nu: you mean, you want to create a motion blur effect? May 30 15:14:49 no blur May 30 15:14:49 only redraw a portion of the screen with the bg bitmap May 30 15:16:10 now I use Canvas.drawBitmap(bg, null, dst, paint) dst is the Rect of the screen i want to redraw May 30 15:16:41 but its a regular region, i want to redraw a non regular one May 30 15:16:54 i hope its clear May 30 15:17:28 with a mask of the bitmap that moves on the screnn it would be simple May 30 15:45:10 hi all, does anyone know any information can be found about android phone screen sizes ? Is this something we need to think about in terms of background image sizes etc ? May 30 15:45:37 In terms of designing layouts for different models other than the G1 ? May 30 15:47:20 johnnyzen, i think if a developer avoids using the absolute layout, there shouldnt be much of a problem May 30 15:47:47 johnnyzen, I remember reading that there are higher resolution support coming soon May 30 15:48:03 although if you design correctly it shouldnt be too much of a problem. May 30 15:48:30 wmealing: ah cool. just wondered how application layouts are handled on small screen sizes. May 30 15:48:58 couldnt find any info on android dev guide. May 30 15:49:17 i think the G1 screen is the lowest supported resolution May 30 15:49:20 but on another note May 30 15:49:26 you do need to think about different layouts anyway May 30 15:49:33 because when you rotate the screen May 30 15:49:43 you're changing to a different resolution May 30 15:49:56 hmmm kinda disabled that ability for the moment, until I get my head around it May 30 15:51:22 layout was all messed up when rotated, so until I learn a bit more (total beginner) will not worry about it May 30 15:51:29 :) May 30 16:23:20 jonnyzen: if you could, I would recommend using 9-patch images for backgrounds, etc. May 30 16:56:22 *Yawn* May 30 16:56:35 Well, my app hasn't totally beeen panned by the Android market just yet. May 30 16:56:37 So that's good! May 30 17:09:28 Can you use a View class from one app in an activity from a different app? May 30 17:11:47 Here's what I'm trying to do. I have an activity with a list of things from content providers in other apps. When something from the list is focused on, a view in the same layout is changed to show details of that specific item. May 30 17:12:36 Ideally I want other apps to act as plugins so they can provide different kinds of items and customize the details view that shows up when their item is focused on. May 30 17:14:21 but I'm not sure how to accomplish the detail view part. Is there a way for the plugin apps to pass a view to another app? May 30 17:15:35 yes May 30 17:15:42 there is a limited thing called RemoteView May 30 17:15:50 and then you can embed an activity from one app into another May 30 17:16:30 oh awesome. I'll look at that now. thakns May 30 17:16:47 activitygroup, i think May 30 17:18:57 ah, this is how app widgets work too right? May 30 17:19:30 right, they use remotevies May 30 17:27:11 hmm, they seem pretty limited, but it makes sense that they would be May 30 17:29:25 well it's for security May 30 17:29:32 if you aren't worried about that, you could just invoke the activity directly May 30 17:49:55 hi May 30 17:50:28 can anybody help me with this problem? http://groups.google.com/group/repo-discuss/browse_thread/thread/6e163e636cd89b04?hl=en May 30 18:05:40 Serdar1: its git. there is nothing easy about git May 30 18:40:31 i'm using eclipse, i created a 2nd activity using the androidmanifest wizard, but i don't really inderstand how to launch this 2nd activity. i understand that it's startActivity(Intent). but i don't understand how do i say using intent how to launch a specific activity May 30 18:41:38 err... i mean : i have a new activity called "preferences". how do i launch it now ? :) May 30 18:44:12 Anybody into compiling c for android? May 30 18:44:19 I've gotten it for small, single file apps May 30 18:44:36 but now I'm looking to do it for some apps which need configure and make.. any tips? May 30 18:44:37 ker2x, Intent i = new Intent(this, Preferences.class); May 30 18:45:05 thx, trying :) May 30 18:46:25 yay \o/ May 30 18:46:31 thank you :) May 30 19:04:58 i can't find the right property/option/whatever to say "this is a password field and entries should look like ***** May 30 19:05:35 i'm using EditText for now May 30 19:09:05 hehe, found in the wizard : password=true :) May 30 19:22:20 The wizard for creating an new Android xml file? May 30 19:22:30 this crashes when i try to start in in eclipse May 30 19:23:55 i have an error because the created xml is totally empty May 30 19:24:16 but once i created manually the root of the xml file, it works May 30 19:47:15 this is a new wizard. it never starts for me May 30 20:03:45 where are the R.id.* fields declared? May 30 20:04:27 I'm trying to follow the notepad2 tutorial, and it tells me to use R.id.body in one place, but eclipse tells me it can't be resolved May 30 20:05:26 if it's in strings.xml, I see body there May 30 20:08:45 run a compile (ctrl-B) and it should generate R.java with all the id fields it fings May 30 20:08:47 finds May 30 20:09:04 plediii: R.java, which is auto-generated when you compile May 30 20:11:03 Thanks, I'm new to Java and eclipse. May 30 20:11:20 plediii: the file needs to be named like what you want to reference via R May 30 20:11:30 I'm on a mac and ctrl-B doesn't do anything. I can't find a build option in the menus. I tried "running" but it still gives me these errors May 30 20:11:37 and it is a good idea to turn autocompile on so you don't have to press strg+b May 30 20:11:45 autocompile is on May 30 20:11:46 (which is on by default anyways) May 30 20:11:49 yea May 30 20:12:02 try build -> clean May 30 20:12:08 that causes a rebuild as well May 30 20:12:19 i don't have a 'build' menu, where could I find that? May 30 20:12:30 Project -> Clean May 30 20:12:31 Project > Build May 30 20:12:31 sry May 30 20:12:35 err, clean. ya May 30 20:13:03 also when referencing a layout element in a layout file make sure it has an @+id May 30 20:13:08 (note the +) May 30 20:13:36 ok project -> clean... May 30 20:14:28 in the layout where body is used, it has @+id/body May 30 20:14:39 that sounds good May 30 20:14:54 make sure that the R you import is not the android.*.R May 30 20:14:57 but your own May 30 20:15:03 how do i evaluate a dynamic url like www.domain.nl/servlet?file=bla.zip into a file to download ? May 30 20:15:17 i dont want to dl the servlet but the bla.zip file. May 30 20:15:19 Johnster: create a URL from May 30 20:15:20 it May 30 20:15:36 how ? would you do that ? May 30 20:15:55 you just want to load the file from that specifc url? May 30 20:16:03 yes, correct May 30 20:16:07 There is a res/layout/note_edit.xml , and eclipse tells me R.layout.note_edit cannot be resolved May 30 20:16:09 use apache HTTPClient May 30 20:16:09 and i actually use TEmbeddedWB May 30 20:16:28 aha !! okay, how do you do it, continue ? May 30 20:16:41 Johnster: read a tut on the HTTPClient May 30 20:17:05 plediii: you have saved your file? May 30 20:27:46 yea May 30 20:30:08 this is my first time using eclipse, so I can't tell what is android plugin issues and what is eclipse issues May 30 20:44:10 plediii: in the Package Explorer, on the left, under your project is there a "gen" directory? May 30 20:44:39 yes May 30 20:45:23 i see R.id.body there May 30 20:45:32 is it possible i imported the wrong R? is android.R not it? May 30 20:45:33 that's where the generated R.java is. does it contain the ids you're using? May 30 20:45:50 Yeah, don't import android.R May 30 20:46:02 the generated R.java is in your projects package May 30 20:46:29 android.R is the system wide class that contains ids used by all of android May 30 20:47:15 i don't think I typed android.R, I guess eclipse tried to outsmart me May 30 20:47:35 so I import R? or R.java? May 30 20:48:13 plediii: check what is imported in your class May 30 20:48:14 you probably don't need to import R at all. By default it's in the same package as your source May 30 20:48:15 at the top May 30 20:48:28 ok May 30 20:48:55 ok, if I don't import android.R everything is fine May 30 20:49:01 absolutly May 30 20:49:10 why does it think R.* is android.R? what if I wanted to use android.R? May 30 20:49:39 it uses what is stated in your import May 30 20:50:04 maybe it never comes up, but if I wanted to use android.R, would I have to import it with a nickname or something? May 30 20:50:27 when using ids from android.R, use the full name in your code: android.R.id.whatever. Importing it gets confusing May 30 20:51:00 ah ok May 30 20:51:19 i'm used to python May 30 22:13:18 if an activity returns an intent with result RESULT_CANCELED, is the program supposed to quit unexpectedly? May 30 22:30:17 wheres instructions for loading a custom build onto a device that i compiled myself May 30 22:35:11 what do you mean custom build? May 30 22:38:17 like if i compiled the source myself May 30 22:38:22 and wanted to deploy to phone May 30 22:38:57 source for the OS? May 30 22:39:09 what did you build? May 30 22:42:38 i haven't a clue how to install a new OS on the phone May 30 22:42:47 or whatever device May 30 23:01:02 Hi, all, May 30 23:01:21 Is there a CDMA phone that runs Android, has a touch-screen, and a hardware QWERTY keyboard? May 30 23:01:29 Or will the G1 work on CDMA networks in the near future? May 30 23:01:40 Please May 30 23:31:28 ^_^ May 30 23:31:47 So what's a good number of downloads an Android app these days? May 31 00:00:16 svm_invictvs, depends on how new the app is May 31 00:04:08 just posted last night May 31 00:42:06 svm_invictvs, it also depends on the application in question, I suppose. What's the app and what numbers are you seeing? May 31 00:42:21 svm_invictvs, also, I feel that the active install percentage is more relevant May 31 01:30:34 Does anyone have a good design idea for a splash screen? I've used an activity which does prep work and then fires a start activity and then dies but it isn't ideal as the activity seems pointless. Should I just use an initial view layout with an image and then remove and replace instead on first display of a new activity ? May 31 02:07:16 recursv, I just inflate a ViewStub at runtime if the splash should be shown May 31 02:08:33 not a bad option, just need to keep state of the activity to ensure that you aren't being re-created by the o/s after being killed due to memory requirements May 31 02:09:42 recursv, ah, my splash screens are different than yours I think May 31 02:10:09 http://static.evancharlton.com/splash.png is an example May 31 02:10:30 it's a run-once, I'm-forcing-you-to-read-this-so-pay-attention sort of deal May 31 02:11:45 possibly not. I'm just saying that if you spawn an activity which then shows a splash on first view and then starts a sub-activity which consumes memory causing your initial activity to be killed then you would need to check on startup of the first activity of weather this is due to an initial start or an os recreation. I do like it though **** ENDING LOGGING AT Sun May 31 02:59:57 2009