**** BEGIN LOGGING AT Fri Oct 31 02:59:57 2008 Oct 31 04:08:39 muthu: it's pretty good Oct 31 04:08:56 i have issues with signal, no idea why Oct 31 04:09:04 i have a demo tomorrow, so hopefully it works Oct 31 04:09:10 f00f-: good luck Oct 31 04:09:12 thx Oct 31 04:13:57 f00f: When the phone is having issues with connectivity does your app have problems as well? Oct 31 04:14:31 dmoffett: it just can't access the network ;) Oct 31 04:14:38 i have to test with wifi at home Oct 31 04:14:52 and the screen locking on the G1 totally is a piece of garbage Oct 31 04:14:54 Right but do you get the force quit panel or wait panel? Oct 31 04:15:05 no Oct 31 04:15:11 i have exception handling in place :D Oct 31 04:15:52 At least I think I do but for some reason I htink it hangs long enough to get the panel. Oct 31 04:16:18 If wait is pressed then the app is fine. Oct 31 04:16:40 but the service that runs in the back ground is not behaving well. Oct 31 04:16:44 i also can't find a decent calendar app. built-in one is broken. Oct 31 04:17:03 dmoffett: hmm, you might be depending or blocking on some network activity? Oct 31 04:17:25 I guess I will need to add a thread :-( Oct 31 04:17:46 Or maybe I can time it out. Oct 31 04:18:55 yeah Oct 31 04:18:58 threa dit Oct 31 04:19:03 and kill the thread after some time Oct 31 04:19:04 err Oct 31 04:19:07 if you use HttpClient Oct 31 04:19:10 you can set a timeout Oct 31 04:19:45 It is the Geocode or getLastKnowLocation Oct 31 04:20:51 I really don't want to add threads but I guess that is the only way. :-( Oct 31 04:20:53 hmm ok Oct 31 04:20:59 probably getLKL Oct 31 04:21:03 also Geocode Oct 31 04:21:05 Geocode is lame Oct 31 04:21:06 actually Oct 31 04:21:11 it is probably blocking Oct 31 04:21:13 nice to know. Oct 31 04:22:59 put a Thread harness around it Oct 31 04:23:09 and brutally murder it if it takes too long Oct 31 04:23:37 the BofA app looks sexy Oct 31 04:23:44 iPhonesque lists Oct 31 04:28:45 murder. sex. . Oct 31 04:28:54 what channel is this ;) Oct 31 05:25:15 is there a way to compose an SMS but not send it? Oct 31 05:25:26 ie. open the SMS app with a recipient and a msg body Oct 31 07:48:34 hmm.. i might have found the alertdialog bug Oct 31 13:28:30 morning Oct 31 13:29:09 morning Oct 31 13:29:24 eburnette: you were looking for a file manager right? Oct 31 13:29:32 anybody know how people are a) detecting updates and b) from the app they are jumping to their android market page? Oct 31 13:30:07 michaelnovakjr: I found a file manager but I didn't like the ui Oct 31 13:30:18 http://androidnerds.com/ Oct 31 13:30:24 I wrote one called Glance Oct 31 13:30:32 i'm getting ready to put it on the market Oct 31 13:30:54 it came in handy yesterday Oct 31 13:30:55 just a few more things i'd like to take care of with it Oct 31 13:31:08 i'll download it when I see it Oct 31 13:31:17 cool Oct 31 13:31:22 should be up this weekend Oct 31 13:31:26 I swapped microsd cards, and the video player didn't see the new video files Oct 31 13:31:38 I wanted to check to make sure they were there without plugging in to the laptop via usb Oct 31 13:31:54 we need a good bash shell too Oct 31 13:32:10 i'm looking into that to Oct 31 13:32:11 o Oct 31 13:32:29 after glance accessed the microsd card, the video player finally picked up the videos Oct 31 13:32:38 i was attempting to port over my RemoteLogger for debugging but having trouble with the BufferedReader Oct 31 13:32:42 ok, then we need a better application manager :) Oct 31 13:33:45 I was trying to clear up some space this morning, it was painful. Oct 31 13:33:51 when you get the remotelogger working, it'll be great for other devs Oct 31 13:35:12 yea Oct 31 13:35:21 it runs the commands, but doesn't grab the output Oct 31 13:35:25 very odd Oct 31 13:35:30 TWIMC: Do you talk about Android in your blog? Get listed on PlanetAndroid.com, the Android community aggregator. Oct 31 13:35:58 o.O Oct 31 14:32:38 anyone knows if there are console-emulator-projects floating around (like for SNES) for Android? Oct 31 14:34:32 there's a agmeboy emu on the market, but it's far from complete Oct 31 14:34:36 *gameboy Oct 31 14:34:43 quite sure there are others Oct 31 14:34:58 they just haven't been revealed yet Oct 31 14:35:04 snes and others would be awesome :) Oct 31 14:35:19 give it time, they'll come. they always do Oct 31 14:35:20 Is it fast enough??? The cpu is plenty powerful enough to run GB natively... but from the dalvik VM? Oct 31 14:35:37 the gameboy emu is not fast enough, it needs more optimization Oct 31 14:35:55 but it looks like it may get there Oct 31 14:36:11 I'd be very impressed with dalvik if that were possible Oct 31 14:36:29 I don't see why it wouldn't be Oct 31 14:36:29 The Super Nintendo Entertainment System was Nintendo's first 16 bit gaming console that was originally released in Japan. Specs: * CPU: 65c816 (16-bit) * CPU speed: 2.68 and 3.58 Mhz * RAM memory: 1 Mbit (128 Kbyte) Oct 31 14:36:36 :-D Oct 31 14:37:14 so even if it takes 10x to emulate it would be still damn fast Oct 31 14:37:18 the snes had a couple of slave processors that needed to be emulated too Oct 31 14:37:32 a graphics and sound processor Oct 31 14:37:34 I can run snes ported flash games just fine on 400mhz celeron pc's with 32MB ram Oct 31 14:37:37 hm dunno but imo still possible Oct 31 14:38:04 that's with windows, background procs.. the works Oct 31 14:38:12 it's not the same Oct 31 14:38:20 android should end up far more efficient over time Oct 31 14:39:18 oh just seen this: http://www.mobilecrunch.com/2008/10/30/androidboy-game-boy-emulator-debuts-on-the-android-market/ probably what you've said before Oct 31 14:40:10 the description for that app says that it's a trial and will stop working in January Oct 31 14:40:32 which is fine. that way people go looking for an updated version later Oct 31 14:40:42 and don't whine that the one they have sucks Oct 31 14:41:00 languish: he's hoping he can charge for the d/l in january Oct 31 14:41:04 anyway, this convo belongs in #android Oct 31 14:42:14 a general noob question from me: I have two activities - one activity needs to do something if the user presses the back key to return to the previous one. How do I determine this event? catching KEYCODE_BACK in onKeyUp() does not do the trick because it is triggered also when I close the options menu in this activity.. but I wan tto catch it only when the user is navigating back to the... Oct 31 14:42:16 ...prev. activity.. Oct 31 14:43:08 Tauno: the back button will close the open activity, revealing the previous one Oct 31 14:43:45 when I have the menu open then it will just close the menu Oct 31 14:44:10 and trigger a onKeyUp() event with KEYCODE_BACK Oct 31 14:44:15 yeah, that's the expected behavior Oct 31 14:44:36 if I press back while there is no menu open then it will also trigger a onKeyUp() event with KEYCODE_BACK Oct 31 14:45:09 my problem is that I want to call foo() only in the second case.. Oct 31 14:45:17 I heard something about packaging a native library with your apk somehow? Oct 31 14:45:44 Tauno: generally you would just let it do it's thing and then maybe call foo in onDestroy()? Oct 31 14:46:09 or setResult() Oct 31 14:46:42 onDestroy() is called too late in my case (after ~10 seconds).. I want to do it right after the user presses "back" Oct 31 14:47:04 then do onKeyDown() or onKeyUp() Oct 31 14:48:25 zhobbs and how do I know if the onKeyUp is called in response to closing the menu or it's called when the user just pressed the back key to navigate away from the activity? :) Oct 31 14:50:14 Tauno: you sure onKeyDown is called when the user closes the menu? Oct 31 14:50:22 yes Oct 31 14:50:49 Tauno: I don't think it is... Oct 31 14:50:54 onKeyUp that is. Oct 31 14:50:59 I'll try onKeyDown then :) Oct 31 14:51:10 onKeyUp might, but onKeyDown doesn't look like it does Oct 31 14:56:07 whoa, thanks.. didn't think of it this way - the menu consumes the keydown event and closes itself.. and keyup is sent to the underlying activity :) Oct 31 14:56:29 yeah, I never thought about it before either Oct 31 15:25:34 Someone mentioned this in #android, but is there a specific listener/method for long touches? How do I capture them? Oct 31 15:25:52 yes Oct 31 15:26:00 there's a long click listener Oct 31 15:26:07 one sec Oct 31 15:28:54 android.view.View.OnLongClickListener Oct 31 15:29:21 Ah Oct 31 15:29:21 thanks Oct 31 15:30:52 Huh, I never saw that, was just looking for it. Oct 31 15:30:55 thanks Oct 31 15:37:01 interesting Oct 31 15:38:09 you can also so Activity.registerForContextMenu(View v) Oct 31 15:38:23 do* Oct 31 16:26:16 SanMehat: morning Oct 31 17:33:23 with a editview what can I use to get callbacks of text changes? I installed a focus lisestener, but when I press enter in the field it expands the field by a row? it also doesn't seem to give up focus when I, for example, click on a button... Oct 31 17:34:04 there's a TextWatcher Oct 31 17:34:08 or TextCHangeWatcher Oct 31 17:34:14 there's something, read the docs :) Oct 31 17:34:33 ahha, textwatcher is the one. thanks! Oct 31 17:35:26 but there is no concept that the user is "done" with the edit field? Oct 31 17:35:39 ie: on the iPhone you are explicitely told when the user is finished with editing the field Oct 31 17:35:40 not really Oct 31 17:35:53 depends what you mean by done Oct 31 17:36:25 the typical usage method is to ask the field for its value when the user does some activity then. Oct 31 17:36:36 (as opposed to caching the field when the user "finishes" editing the text field) Oct 31 17:36:44 *field value that is Oct 31 17:36:51 yes, usually you query getText() every time you need it Oct 31 17:37:22 ok. with the iPhone the editing of a field is always a very explicit activity because the keyboard pops up/down Oct 31 17:37:28 ok, thanks! Oct 31 17:37:37 because of the keyboard we couldn't do that Oct 31 17:37:41 EditText is focusable in touch mode Oct 31 17:37:56 meaning that if you have an EditText on screen, it keeps the focus even if you touch another widget Oct 31 17:38:02 (unelss that other widget is focusable in touch mode) Oct 31 17:38:40 yeah Oct 31 17:41:28 is it possible to set an onClickListener on a drawing(Canvas)? Oct 31 17:41:41 er, what? Oct 31 17:42:27 what? ^^ Oct 31 17:43:00 I don't understand what you want to do :) Oct 31 17:44:24 is there a possibility to draw e.g. an square and set an onClickListener for it Oct 31 17:44:52 or is that only possible with Buttons? Oct 31 17:48:47 you can't set a click listner on something you drew Oct 31 17:48:52 but you can set a click listener on your entire view Oct 31 17:49:12 or you could set a touch event listener and check the touch coordinates against the position/size of your square Oct 31 17:50:51 i need 36 fields on the screen, maybe the best way is to use Buttons Oct 31 17:52:46 ...for a easy drumcomputer, the fields are the samples which will be played when theyre activated Oct 31 18:23:01 what has replaced UIThreadUtilities? Oct 31 18:25:00 ok, Activity.runOnUiThread Oct 31 18:45:44 how do I stop an indeterminate progress bar from animating? Oct 31 19:12:43 you make it determined Oct 31 19:16:19 mm Oct 31 19:16:19 I tried that Oct 31 19:16:30 the documentation on that widget is a bit lacking I think Oct 31 19:16:59 file a bug or contribute :) Oct 31 19:17:26 if I knew how it was supposed to work I could think about that ;) Oct 31 19:18:10 well grab the source, read the code, submit a patch :) Oct 31 19:18:28 what hte demo does is make it invisibe. Oct 31 19:20:43 is there going to an SDK release soon with the source? Oct 31 19:21:33 the source has been released already Oct 31 19:21:48 in a .jar suitable for use with eclipse? :) Oct 31 19:22:07 just download the git repostiroy Oct 31 19:22:13 and point Eclipse to the source directly Oct 31 19:22:40 which git repo is the java source for android.blah ? Oct 31 19:22:52 platform/base Oct 31 19:24:48 git clone git://android.git.kernel.org/platform/base? Oct 31 19:25:09 yes Oct 31 19:25:30 mm... remote end hung up expectectedly Oct 31 19:29:43 frameworks/base perhaps? Oct 31 19:31:57 yes, that's where it is... ok, I'll look at that. thanks! Oct 31 20:04:25 is the class Context direct using the AndroidManifest.xml? Oct 31 20:34:53 why is it you can run a program through exec but output doesn't come through Oct 31 20:35:09 and the application runs successful Oct 31 20:57:28 /msg NickServ identify dims Oct 31 21:00:39 dims: ... Oct 31 21:03:48 ttuttle, oops! Oct 31 21:43:14 Activity question: when the keyboard is opened, my Activity is getting an onPause()/onResume() pair thrown at it, and when the SurfaceView gets recreated, it reflects the orientation change (e.g. 320x480 -> 480x320). Oct 31 21:43:14 That's really annoying, as it means I need to rejigger the OpenGL matrix state every time. Is there any way to turn this off? Oct 31 21:45:13 andyross: No, it's how it rotates. Oct 31 21:45:17 andyross: Actually, maybe. Oct 31 21:45:41 andyross: You can declare that your activity knows how to handle those configuration changes (rotations). But then you have to implement onConfigurationChanged (IIRC) and actually handle it. Oct 31 21:45:57 Sounds promising, off to the docs. Nov 01 00:01:52 I have an ANR happening randomly in my app and have no idea how to find out where it happens :/ (Breakpoints do no help a lot, as it happens really few) Nov 01 00:02:35 a Log-Messages in every loop are also not that pretty ;) Nov 01 00:08:16 plusminus_, you could try revwalking older versions of your code and then diffing them? Nov 01 00:10:59 oh I just saw that is random Nov 01 00:11:02 unlucky :p Nov 01 00:34:14 Imo its since I added a simple matrix to transform a view to look like it has depth Nov 01 00:34:31 but why should a calculating a matrix with managed methods cause a ANR :/ Nov 01 00:34:48 ok its an undocumeted API... Nov 01 00:35:12 or at least not properly documented: http://code.google.com/android/reference/android/graphics/Camera.html Nov 01 00:35:19 using some native code :/ Nov 01 01:01:14 ne1 haxorin on the GridView? **** ENDING LOGGING AT Sat Nov 01 02:59:57 2008