**** BEGIN LOGGING AT Wed Apr 01 02:59:57 2009 Apr 01 03:01:12 well Apr 01 03:01:15 im booting debian Apr 01 03:01:25 and using tightvncserver in debian Apr 01 03:01:30 and connecting to it using vncviewer Apr 01 03:01:41 zinx: can you elaborate on that a little bit more? I understand that running X would require special drivers and all, but how would you boot into a standard distribution? Through the recovery image? Apr 01 03:02:05 ITechJunkie: please learn how Linux boots Apr 01 03:02:16 i am not going to teach you that : Apr 01 03:02:19 erh, :/ Apr 01 03:02:28 ITechJunkie: it basically runs init. that's it. Apr 01 03:02:43 ITechJunkie: if you use Android's init with Android's setup, it will boot Android Apr 01 03:02:49 ITechJunkie: put android in airport mode Apr 01 03:02:55 ITechJunkie: if you use a standard distro's init with a standard distro's init setup, it will boot a standard distro. Apr 01 03:02:56 it will save tons of cpu Apr 01 03:03:00 to boot debian Apr 01 03:03:08 but u lose wifi Apr 01 03:03:11 i think Apr 01 03:03:18 maybe a way around it Apr 01 03:03:29 zinx: I appreciate it. I wasn't looking for a lesson, but I do appreciate you pointing me in the right direction. Apr 01 03:03:58 if you're looking for a way to boot a conventional linux distro w/o android.. I'm not aware of any sorry Apr 01 03:04:34 but if you can do it on an ipod.. it's certainly possible Apr 01 03:04:38 squalus: it's easy. most people just don't bother because you can't use Android if you do it that way Apr 01 03:05:36 ya Apr 01 03:05:39 and the actual phone Apr 01 03:05:39 :/ Apr 01 03:05:44 and no x11 driver thats oss Apr 01 03:05:54 only reason I could see doing it for is if you wanted to use the phone for some other embedded application Apr 01 03:06:07 but it's a pretty expensive hardware option for that Apr 01 03:06:43 value in android is the app platform Apr 01 03:07:04 don't mind me while I type the obvious Apr 01 03:07:26 from a linux nerd standpoint android is a pretty neat take on a linux kernel based OS Apr 01 03:08:14 well more than just the kernel I suppose Apr 01 03:08:21 g1 is probaly gonna drop Apr 01 03:08:26 to the 100 range Apr 01 03:08:30 when magic comeso ut Apr 01 03:08:33 so maybe then Apr 01 03:08:33 :/ Apr 01 03:08:44 * arejay just paid freaking $350 for it Apr 01 03:08:44 from $400us? Apr 01 03:08:50 its $89 Apr 01 03:08:54 for new customers Apr 01 03:08:55 right now Apr 01 03:08:57 ! Apr 01 03:09:00 oh with a subscription Apr 01 03:09:05 exactly Apr 01 03:09:09 well.. financed Apr 01 03:09:21 but, i've had tmobile for 10 years Apr 01 03:09:23 who knows what their price is Apr 01 03:09:27 5 lines Apr 01 03:09:40 and i had no "upgrades" available Apr 01 03:09:40 I paid... $760cad for it Apr 01 03:09:44 or.. Apr 01 03:09:49 only a $50 discount for it Apr 01 03:09:54 CAD :/ Apr 01 03:10:14 what carrier you using it on? Apr 01 03:10:17 $600usd Apr 01 03:10:26 does it support there 3g spectrum Apr 01 03:10:26 rogers Apr 01 03:10:29 nope Apr 01 03:10:29 doubtful? Apr 01 03:10:34 whole point i got it Apr 01 03:10:38 was 3g + android Apr 01 03:10:46 I got it for a dev phone Apr 01 03:10:46 tmobiles first decent 3g phone Apr 01 03:10:54 and im about to move to LA Apr 01 03:10:59 no 3g where i'am now Apr 01 03:11:00 in anticipation of some more successful hardware with android on it Apr 01 03:11:08 * squalus crosses his fingers Apr 01 03:11:16 what do u mean Apr 01 03:11:26 the dev phone is running "better" hardware? Apr 01 03:11:31 i just thought it was adp 1.1 Apr 01 03:11:38 no no same hardware Apr 01 03:11:44 which can be ran on a regular dream Apr 01 03:11:46 but I needed something to test programs on Apr 01 03:11:56 I don't really expect to many people to buy this phone.. it's to bulky Apr 01 03:12:07 im gonna pass this one to my gf Apr 01 03:12:10 and get the magic Apr 01 03:12:15 the battery life is horriable Apr 01 03:12:18 on this thing Apr 01 03:12:18 ;[ Apr 01 03:12:22 there'll be a bunch of new phones this year apperently Apr 01 03:12:25 I'd hold off for a bit Apr 01 03:12:26 magic could be worse Apr 01 03:12:34 i only see it getting worse on 3g Apr 01 03:12:38 im on edge now Apr 01 03:13:10 I'd sit tight and see what lg, samsung, motorola, lenovo etc release Apr 01 03:13:24 true Apr 01 03:13:35 HTC produces some solid hardware Apr 01 03:13:42 well Apr 01 03:13:44 i would of like to see android on a touch 2 pro Apr 01 03:13:50 i know its been "ported" Apr 01 03:13:52 to run on it Apr 01 03:13:53 I guess it's solid Apr 01 03:13:53 but.. Apr 01 03:13:58 it's certainly big and heavy! Apr 01 03:13:59 native Apr 01 03:14:02 squalus: is lenovo making cell phones for the US? Apr 01 03:14:04 yes, it is Apr 01 03:14:12 i figured they would stick to china Apr 01 03:14:13 i dunno about lenova Apr 01 03:14:18 it's got character though.. I kinda like it Apr 01 03:14:27 <-- denial Apr 01 03:14:54 it's a great dev phone though.. it's got the kitchen sink as far as UI goes Apr 01 03:15:00 keyboards trackballs touchscreens Apr 01 03:15:16 compasses accelarometers Apr 01 03:15:42 a terrible camera but it makes a good barcode reader Apr 01 03:15:46 * squalus shrugs Apr 01 03:15:48 ya Apr 01 03:15:49 about it Apr 01 03:15:55 i mean if the object is moving.. Apr 01 03:15:58 ur shit outta luck Apr 01 03:15:59 :/ Apr 01 03:16:37 wait not lenovo asus Apr 01 03:16:50 there's musings of an eeephone Apr 01 03:17:55 oh.. my book subscription should work today! Apr 01 03:19:21 anyone else try the commonsware books? Apr 01 04:56:52 Is there perhaps an index of what each git repository contains so I don't have to keep asking what contains what? Apr 01 04:58:02 What do you mean more specifically? Apr 01 04:58:34 you could just look at the contents :x Apr 01 07:31:54 hm i'm referring to my button as com.company.appname.DerivedButton but logcat is giving the error java.lang.ClassNotFoundException: android.view.DerivedButton in loader dalvik.system.PathClassLoader@4339c0b0 Apr 01 07:32:22 referring to it in a layout xml file Apr 01 08:38:50 What classes should I be using to view/add/delete bookmarks? Apr 01 08:39:27 Ah. "Browser" Apr 01 13:18:30 luok: fix it yet? Apr 01 13:18:45 you probably have to fully qualify it in the xml file Apr 01 13:18:54 or is that what you're doing already, sorry Apr 01 13:26:15 I have an Activity that was created based on the TriangleRenderer example. It works flawlessly as a standalone project, but when I use it as the tab of a tabhost there is a problem. At startup the whole activity is just black - I can get touch events and do everything else but it doesnt show anything. When I change the orientation (and therefore recreate the activity) it all works well. Apr 01 13:29:17 The problem comes from the View focus. My SurfaceView is not focused when created inside of the tabhost. I tried to fiddle around with the methods available in my onCreate() and onPostCreate(), but couldnt find a way to have the SurfaceView focused at first start. Apr 01 13:30:35 uscheller: would it help to call http://developer.android.com/reference/android/view/View.html#setFocusable(boolean) in the surfaceview constructor? Apr 01 13:31:31 I don't really know, just throwing it out there Apr 01 13:32:03 didnt help Apr 01 13:32:48 what I dont understand is why it does work at second creation of the Activity Apr 01 13:39:07 uscheller: that makes two of us, I dont know much about surfaceview really. Have you checked to make sure the surface is being created the first time? Apr 01 13:41:18 http://rafb.net/p/8s8SzE39.html Apr 01 13:41:57 this is my activity. It is mainly taken from the example. Apr 01 13:43:32 http://rafb.net/p/HISNye43.html Apr 01 13:43:53 was just about to ask for that :) Apr 01 13:44:31 I found an interesting bug when playing with SurfaceViews Apr 01 13:44:45 if I didn't set a surfaceview to be the first thing that has setContentView set on it Apr 01 13:44:49 then it would only render black Apr 01 13:45:03 I don't know if this affects what you're doing Apr 01 13:46:22 what do you mean by "set a surfaceview to be the first thing that has setContentView set on it"? Apr 01 13:46:25 uscheller: I looked over those two pastes and couldn't see anything obviously wrong, sorry Apr 01 13:47:11 thanks marklar Apr 01 13:50:43 I mean, if the surface view wasn't the first thing on which I called setContentView Apr 01 13:51:03 it would show up black whenever I tried to use setContentView on it thereafter Apr 01 13:51:10 Inside this activity, there is only one setContentView and it is with the SurfaceView. But this whole Activity is a tab in the TabHost Apr 01 13:51:40 but if I used setContentView on it, and then in surfaceCreated had a one time only to immediately have setContentView point to something else, I could then use setContentView on that surfaceview normally Apr 01 13:51:56 I don't really know what to suggest in this case Apr 01 14:56:44 i have "solved" it with this hack: http://rafb.net/p/28vraY15.html Apr 01 14:58:03 hahaha what the heck? Apr 01 14:58:41 i dont know Apr 01 14:58:49 but this works? Apr 01 14:59:04 this takes an extra second for loading, but it works fine Apr 01 15:03:30 what does that hack solve? Apr 01 15:04:42 haha...yeah, what does that solve? Apr 01 15:05:15 I have a SurfaceView as child of a TabHost. This SurfaceView was black at start, but when I changed the orientation it showed the correct View. Apr 01 15:05:43 Now the orientation change is hacked into sourcecode Apr 01 15:06:34 From memory Tab's are kind of screwy in the current release Apr 01 15:44:43 Does anyone know of a good example for GestureDetector? Apr 01 15:45:36 errr... what's this business with gnupg ? Apr 01 15:45:46 with the new repo Apr 01 15:52:00 anyone has a clue about this message ? http://pastebin.com/m58c06b54 Apr 01 15:57:48 Where can i find a list of the parameters that i can set for the Camera on the G1? Apr 01 15:57:57 i cant find the parameters in the api... Apr 01 15:58:19 just methods to set parameters, no information about what i can set... Apr 01 16:40:48 I wonder, how does Android instatiate an Activity? Class.forName? Apr 01 17:32:28 Is this the right channel to ask about developing on android? Apr 01 17:32:35 yes Apr 01 17:32:48 What is the difference between onFling and onScroll in GestureDetector.OnGestureListener? Apr 01 17:33:01 one is fired when a scroll happens Apr 01 17:33:06 the other one when a fling happens :) Apr 01 17:33:31 romainguy_: I guess I should have asked what the difference between those are :P Apr 01 17:34:19 Does it depend on the view handling the touch? Apr 01 17:34:29 a fling happen when you "throw" the view with your finger Apr 01 17:34:36 a scroll is simply when you move your finger around Apr 01 17:34:42 (without letting go) Apr 01 17:34:48 ah ok, thanks! Apr 01 17:36:49 Hey, I'm having a problem getting the API GLSurfaceView with the CubeRenderer example working. I created the three classes and called them in exactly the same way that the GLSurfaceViewActivity did however it doesnt show. One odd thing is that if i pause the app and load it up again it starts rendering. Apr 01 17:37:24 mmjack: someone here had a similar problem earlier... Apr 01 17:37:43 uscheller, looks like he left though Apr 01 17:37:43 Did they solve it? Apr 01 17:37:56 yes, it was an ugly hack though, don't think he knew why it worked Apr 01 17:38:09 [10:56] uscheller: i have "solved" it with this hack: http://rafb.net/p/28vraY15.html Apr 01 17:38:40 His would also start rendering if he changed the orientation, not just restarted it Apr 01 17:39:31 My app just goes back to the main menu Apr 01 17:39:34 Lol. Apr 01 17:39:55 maybe not the same problem then Apr 01 17:43:47 Hmm, How can I handle changing the screen from landscape to portrait. Apr 01 17:43:56 Within the activity* Apr 01 17:45:22 it's handled automatically by default Apr 01 17:45:53 romainguy_: can you poke fadden with a stick for me and tell him to go on irc? Apr 01 17:46:13 he's too far from my desk :p Apr 01 17:46:16 also, the horrible problem I was having has been solved, check your messages please Apr 01 17:46:25 s/I was/we have been/ Apr 01 17:46:33 Whenever I open my keyboard it goes back to my main menu, How can I stop this? Apr 01 17:47:12 mmjack: what does the log say? Apr 01 17:49:33 One sec. Apr 01 17:52:48 i call finish() function to exit but my app is not exiting, any clue? Apr 01 17:53:32 what exactly do you mean by "not exiting"? Apr 01 17:53:35 htet: put in logging in onpause, onstop, and ondestroy Apr 01 17:53:40 and/or breakpoints Apr 01 17:53:45 finish should absolutely stop you Apr 01 17:53:49 when an Activity calls finish(), the Activity Manager shuts it down Apr 01 17:54:04 but it may not harvest the underlying Linux process yet Apr 01 17:54:18 that process will be reused if the user relaunches your Activity Apr 01 17:55:33 (finish() terminates an Activity, not an entire application / task, which potentially contains a history stack of several "live" Activities) Apr 01 17:56:24 Odd. The debugger wont attach to my device but it will attach to the emulator :S Apr 01 17:56:34 make sure you have your settings set Apr 01 17:56:40 settings -> applications Apr 01 17:56:44 ctate: imho, finish() termininate the activity and will get back to the previous screen like back but it is not doing that and my app still remain on the main screen Apr 01 17:56:51 allow usb debugging is a submenu in there Apr 01 17:57:08 Never mind I just restarted the app Apr 01 17:57:15 htet: is it possible you have multiple copies of the same activity on the stack? Apr 01 17:57:16 Reran debug Apr 01 17:57:17 * Apr 01 17:57:17 Settings -> Application -> Development -> USB debugging Apr 01 17:57:18 that's it Apr 01 17:57:20 and it works Apr 01 17:57:21 now Apr 01 17:57:56 hmm... multiple copies ? Apr 01 17:58:17 an activity can be launched several times Apr 01 17:58:24 it can also launch itself! Apr 01 17:58:42 you might have some sort of file browser activity that simply lists the contents of a directory Apr 01 17:58:50 when you 'open' a subdirectory it simply starts a new activity in that subdir Apr 01 17:58:56 well, i pressed the home button to see which apps are running, i only see one Apr 01 17:59:03 it will only show up as one Apr 01 17:59:11 try pressing the back button a time or two Apr 01 17:59:50 htet: It happened to me in an app where I was trying to use a notification to get back to the activity, and I wasn't specifying to open the existing one... ended up opening the same activity more than once Apr 01 18:00:22 it would still show up as one in the home button, since its one app with multiple activities in its stack Apr 01 18:02:14 vol, i press the back button and it just get me back to home screen but the exit button simply refuse to work so i don't think that i have opened more than one activity like marklar said, i might be wrong Apr 01 18:02:30 what does your exit button do? Are you sure that you have it hooked up? Apr 01 18:02:38 Use logcat, and the debugger, to ensure that things are actually happening Apr 01 18:02:39 yes Apr 01 18:02:45 when you call finish, things should really finish. Apr 01 18:02:58 ensure that you're calling finish on the right activity; maybe you're calling finish on a subactivity? Apr 01 18:03:48 :S Is there any reason why openeing the keyboard or swapping orientation would call onCreate again? Apr 01 18:03:54 i am calling it on main activity Apr 01 18:03:57 or is it supposed to do that? Apr 01 18:03:57 case R.id.exit_button: Apr 01 18:03:57 finish(); Apr 01 18:03:57 break; Apr 01 18:04:03 mmjack: its supposed to do that Apr 01 18:04:06 mmjack: feature, not bug. Apr 01 18:04:08 Ah ok. Apr 01 18:04:13 Ah Apr 01 18:04:34 Sorry, I'v just started looking into android :) Apr 01 18:04:35 http://developer.android.com/reference/android/app/Activity.html#ConfigurationChanges Apr 01 18:04:38 no problem Apr 01 18:04:43 I had a bug that took me forever to track down....I was doing something after finish() and it was getting executed Apr 01 18:04:48 you can handle these events yourself, but generally may not want to Apr 01 18:04:51 added a return in there and I was fine Apr 01 18:06:27 mmjack: when you change orientation, unless the activity says that it is prepared to handle orientation changes itself, the system-provided behavior is for the activity to be torn down and restarted in the new orientation Apr 01 18:06:43 this is because there is potentially a LOT of difference between resource sets for different orientations Apr 01 18:06:59 different layouts, potentially even different strings, etc Apr 01 18:07:00 in most of the UI's I've used it's been better to handle them myself Apr 01 18:07:23 I think if you can, handle it yourself...much quicker Apr 01 18:07:28 zhobbs: yeah, finish() is not like C's exit() Apr 01 18:07:58 it's possible to retain expensive-to-recreate objects across the orientation-change restart Apr 01 18:08:11 ctate: well, one object I guess Apr 01 18:08:18 Thanks for the advice zhobbs. Apr 01 18:08:18 plus parcelables Apr 01 18:08:23 yeah, but that one object can be whatever you want Apr 01 18:08:37 mmjack: beware, many googlers disagree with that Apr 01 18:08:41 so you can just stash everything into some sort of catch-all object Apr 01 18:08:44 mmjack: to me it's just easier Apr 01 18:08:45 Bah, The cube still isnt drawing :-( Apr 01 18:08:47 ctate: yeah Apr 01 18:09:35 see, if you say that your app handles "configuration changes" itself, you won't get torn down and restarted; you'll just have your onConfigurationChange() callback invoked, etc. Apr 01 18:09:47 note that orientation is not the only configuration change that causes this Apr 01 18:09:53 ctate: btw, onRetainNonConfigurationInstance() isn't the most obvious name....took me a long time to find that one :) Apr 01 18:09:56 it also happens with e.g. locale changes Apr 01 18:10:03 zhobbs: yeah yeah, i know Apr 01 18:11:46 zhobbs: http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html :p Apr 01 18:12:11 Argh, I cant get my CubeRenderer to start rendering. http://pastebin.com/m6ce072ed is my activity have I done something stupid? Apr 01 18:12:58 romainguy_: for the layout in that post you could just handle it manually (and probably do nothing) and it would look the same right? Apr 01 18:13:14 it would be more work Apr 01 18:13:35 because in this case the position of the views, their padding, etc. is different between the two orientations Apr 01 18:13:50 ok Apr 01 18:14:03 I found that letting the system do the destroy/create for me is much more flexible than handling it manually Apr 01 18:14:37 the most expensive thing is rebuilding the view hierarchy from the new-orientation layout, and that's a cost that you have to pay even if you handle the config change manually Apr 01 18:15:00 well, in many cases I "handle it manually", which just means I add the line to the activtiy's entry in the manifest and literally do nothing else Apr 01 18:15:18 (for simple layouts) Apr 01 18:15:23 i was about to say :) Apr 01 18:16:36 for more complex layouts then it's very convenient to use different resources Apr 01 18:16:43 very nice system Apr 01 18:17:14 we definitely see cases where people wind up using different layouts for some locales (!) Apr 01 18:17:16 mmjack: Don't you need to set the layout for the activity? setContentView() in onCreate(Bundle)? Apr 01 18:17:28 zhobbs: for simple layouts too Apr 01 18:17:32 ctate: can locale change during runtime? Apr 01 18:17:36 sure Apr 01 18:17:37 because you never know how you're going to evolve the app Apr 01 18:17:47 and with a simple layout the destroy/create cycle is very fast anyway Apr 01 18:18:09 zhobbs: your activity is running; user presses Home to bring the launcher to the front; settings -> change locale; user hits your app icon again to bring your app to the front Apr 01 18:18:10 voila Apr 01 18:18:27 which makes me think I need to rework Home to localize shortcuts Apr 01 18:18:30 there was someone in #android a few days ago implementing their own locale code, completely bypassing even the system setting :< Apr 01 18:18:43 zinx: yikes. time for a clue-by-four. Apr 01 18:18:51 for simple text too.. they could have done it with zero code, and i even told them how Apr 01 18:18:54 romainguy_: yeah...just got either stop/start or retain threads which, maybe I'm just too much of a n00b, but have had mixed results with Apr 01 18:18:56 they still insisted on their own code :x Apr 01 18:18:56 sheesh Apr 01 18:19:12 zhobbs: that's why I wrote the UserTask/AsyncTask Apr 01 18:19:28 which makes it easier to stop/recreate background actions Apr 01 18:19:39 I guess I should extend its API to have a save/restore instance Apr 01 18:19:45 with usertask would you stop/restart or can you retain it? Apr 01 18:19:45 and have the notion of managed async tasks Apr 01 18:19:48 romainguy: those are still only part of cupcake, no? Apr 01 18:19:55 AsyncTask is Apr 01 18:20:05 UserTask is available for 1.0 and 1.1 as an external class Apr 01 18:20:14 zhobbs: I stop/start it Apr 01 18:20:18 zhobbs: let me show you an example Apr 01 18:20:24 k Apr 01 18:20:26 * joakime is looking forward to a "books" category in the market. ;-) Apr 01 18:20:35 I have a horrible question Apr 01 18:20:44 is it possible to forward the display on the android device to a PC? Apr 01 18:20:49 vol: then expect horrible answers Apr 01 18:20:54 a coworker is going to be doing a demonstration Apr 01 18:20:57 zhobbs: http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/activity/ShelvesActivity.java Apr 01 18:21:01 and basically wants to display this over a projector Apr 01 18:21:03 look at the saveImportTask() method Apr 01 18:21:12 I use it to retain the state of the ImportTask Apr 01 18:21:23 vol: droidex can do that, but it requires the SDK, a usb cable, and is not realtime. Apr 01 18:21:25 and when the activity comes back, I create a new ImportTask initialized with the stored values Apr 01 18:21:28 it works really well Apr 01 18:21:34 hmm. Apr 01 18:21:56 but like I said, it'd be nice to have managed tasks in Activity Apr 01 18:22:02 that would call onSave/Restore on the task itself Apr 01 18:22:29 romainguy_: cool. I've tried to just let it keep running and save the task (onRetainNon...Instance()) and check the status on the other side and it generally worked but I could never get it to be bulletproof Apr 01 18:23:45 but I should probably just stop/restart it Apr 01 18:24:18 Argh, I'm thoroughly confused now. Apr 01 18:25:17 mmjack: I don't know if you missed what I said above, but you need to declare some sort of layout for your activity, whether in XML or programmatically Apr 01 18:25:53 zhobbs: the problem with letting the task run is that it might be referecing views/resources that are tied to the previous Context Apr 01 18:25:58 which causes leaks and weird UI issues Apr 01 18:26:22 actually I think the right solution to all this would be to have a more generic "managed resources" mechanism in Activity Apr 01 18:26:28 like we have managed dialogs and queries Apr 01 18:26:34 there should be an API to manage anything you want Apr 01 18:26:37 vol: erm, *why* do you want to know? Apr 01 18:26:42 and AsyncTask would support it out of the box Apr 01 18:27:02 vol: i note that ddms can take screenshots. it's not necessarily a huge leap from there to being able to one-way export the display to the pC Apr 01 18:27:04 ctate: my coworker is giving a presentation of our app to our owner's class Apr 01 18:27:11 our owner is a professor at a large uni Apr 01 18:27:16 but input handling is a whole nother world Apr 01 18:27:26 vol: when people here do device demos, they use an opaque projector. Apr 01 18:27:40 I think that droidex basically just continuously uses ddms to take screenies, so that might not be the worst idea Apr 01 18:27:46 yeah, well, I don't even know the setup Apr 01 18:27:51 * ctate nods. Apr 01 18:27:59 I just got an IM asking if this was possible Apr 01 18:28:01 vol: yeah, most universities have cameras now it seems Apr 01 18:28:39 there probably is a camera projector setup, it just may not be set up for the class Apr 01 18:35:53 hi everyone Apr 01 18:36:05 does anyone know anything about debian on android? Apr 01 18:40:08 edoroman1: that's more "Debian on the G1", since it involves removing Android from the phone. :) #android is probably a better channel than here, for what it's worth. Apr 01 18:40:33 depends a lot on who is in the channel when you ask Apr 01 18:57:32 ahh... sorry about my finish() question before. i forget to call setOnClickListener for it :D , i have left that part and coding other stuff Apr 01 19:00:10 is there any rationale for how the built-in apps manage the task stack? Apr 01 19:00:23 for instance the Settings app sets clearOnTaskLaunch Apr 01 19:00:51 however there's no comment in the source explaning why. it makes the phones UI quite confusing imho. the docs suggest that the behavior of the launch might change depending on how recently you used an app as well .... Apr 01 19:03:21 actually is there a mailing list for discussion android ui/ux issues, or is android-platform my best bet Apr 01 19:04:57 I think the settings app launch is very confusing Apr 01 19:05:11 maybe it wouldn't be if I didn't use anycut to get to the wireless settings Apr 01 19:06:28 the whole thing is very confusing imho. when i read the docs, the individual settings make sense, but i'm not able to figure out how the system works just by using it Apr 01 19:06:46 animations would help a lot to build peoples mental models of how it works. not sure if the g1 hardware is powerful enough to do a good job of that though Apr 01 19:06:58 you'd need to keep thumbnails of every activity in every task stack i think. might get storage intensive fast. Apr 01 19:07:35 romainguy, shelves still not ready? :) Apr 01 19:12:11 just asking because I tried it like a month ago and it seemed quite ready.. Apr 01 19:12:31 How badly does unnecessary indirection affect android performance. Apr 01 19:14:04 indirection at what level ? Apr 01 19:14:23 they recommend you use, eg, HashMap foo = new HashMap(); rather than defining the variable to be an interface Apr 01 19:14:45 svm_invictvs: http://developer.android.com/guide/practices/design/performance.html Apr 01 19:17:26 Hm. Apr 01 19:17:36 What's the deal with matrices? Apr 01 19:17:53 WhenI call offsetTo() positive y is down, correct? Apr 01 19:18:25 Hey, Whats the eisiest way to use onKeyDown? Apr 01 19:18:32 The view function Apr 01 19:18:36 ..just use it? :) Apr 01 19:18:39 Woops Apr 01 19:18:43 That..came out wrong Apr 01 19:19:18 Nvm :D Apr 01 19:20:52 romainguy, latest code doesn't compile against 1.1 :( Apr 01 19:21:30 ..or maybe I'm doing something wrong :) Apr 01 19:24:10 "ERROR Error: String types not allowed (at 'ellipsize' with value 'marquee')." Apr 01 19:25:59 FYI it's lunchtime @ Google right now, if you're looking for responses from Googlers Apr 01 19:26:44 I have lots of time till it's morning again and I have to go to work :) Apr 01 19:27:01 ctate, you should also eat something :) Apr 01 19:27:11 * ctate just got back Apr 01 19:27:35 food was good :) Apr 01 19:28:10 beef shawarma, prawn skewer with piri piri, grilled asparagus, moroccan lamb paella; bleu de basque cheese; teeny little cupcake and a saffron madeleine Apr 01 19:28:10 what do they give you there these days? Apr 01 19:28:28 mm..cupcakes :P Apr 01 19:28:41 this was the very Spanish/Basque cafe named Pintxo Apr 01 19:28:52 How do you implement onKeyDown within a view. I tried just putting it in and its not being called. Apr 01 19:29:38 mmjack: You may need to set it focusable with setFocusable() Apr 01 19:29:44 your view needs to be focused (or selected?) Apr 01 19:30:36 Thanks works perfectly! Apr 01 19:33:15 tauno: it was nice to partake of someone ELSE's cupcakes for a change :) Apr 01 19:48:19 bah, I forgot to change the SDK path to the 1.1 SDK in Eclipse :/ Apr 01 19:49:02 ..after changing the SDK path, R.java is not auto-generated anymore Apr 01 19:50:33 tauno: o_O Apr 01 19:51:24 it clearly something else that I'm doing wrong Apr 01 19:52:29 I screwed up my project properties somehow I guess, I'll try to do a clean chekout from svn Apr 01 19:53:11 tauno: If you're using eclipse I would try restarting it first, had that happen to me once Apr 01 19:53:47 too late, blew it up already Apr 01 19:55:16 hmz.. "cover to android project" is not working after cheking it out from svn (error message: "Shelves does not exist") Apr 01 19:59:47 got it wokring now Apr 01 20:13:54 Failed to find a VM compatible with target 'Android 1.5'. Launch aborted. Any ideas ? Apr 01 20:28:42 Can you use GL and have a set background resource? Apr 01 20:29:05 have a set background resource* Apr 01 20:31:34 depends on what you mean by 'set background resource' Apr 01 20:32:17 you can draw GL over an image, or you can draw the image and then draw whatever GL stuff Apr 01 20:32:26 the latter method is probably better Apr 01 20:32:44 erh, that is, draw the background image via GL, then draw whatever else Apr 01 20:34:02 How would I do that? When I set my background resource the GL is hidden, Would I have to draw it manually? Apr 01 20:34:16 you should draw it manually Apr 01 20:34:23 via GL Apr 01 20:34:52 that's not the only way.. but the other methods make the UI composite stuff, which is somewhat slow Apr 01 20:35:21 Ah, Ok. Is any of the canvas stuff going to be hardware rendered in the future? Apr 01 20:39:13 Sorry for another simple question, but how would I load a GL texture from a resource? Apr 01 20:47:23 mmjack: http://developer.android.com/reference/android/opengl/GLUtils.html Apr 01 20:47:31 thanks Apr 01 20:48:16 mmjack: probably want to use the texImage2D(int target, int level, Bitmap bitmap, int border) Apr 01 20:48:19 variant Apr 01 20:48:32 with GL_TEXTURE_2D, 0, ..., 0 Apr 01 21:02:25 Yeah, I gathered. Apr 01 21:37:22 oh good old times when you could just open an input/output stream of an http connection and do whtever you want with it. org.apache.http.* scares the shit out of me - it has more classes than the rest of the public API's together :P Apr 01 21:38:33 tauno: I agree...some of the apache commons stuff is way overkill Apr 01 21:41:10 ha Apr 01 21:41:39 ..not to mention the total lack of javadoc for some parts Apr 01 21:41:42 Any way to fake a gps location on a device, with permissions? Apr 01 21:41:57 it's pretty rainy outside and I can't get a signal :\ Apr 01 21:43:01 Does dalivk honor asserts? Apr 01 21:44:47 yes, but, iirc. Apr 01 21:46:24 but? Apr 01 21:46:28 but what? Apr 01 21:46:35 I don't know ._. Apr 01 21:46:41 I just know that they're there in some form Apr 01 21:46:47 sorry to be totally useless :D Apr 01 21:47:04 http://groups.google.com/group/android-beginners/browse_thread/thread/3dbc03300ab5ed60 Apr 01 21:58:52 vol: I know in J2SE you have to turn them on explicitly. I just wasn't sure if dalvik just ignored them or only enabled them when the debugger was attached. Apr 01 21:59:35 you have to set a property on the device it seems Apr 01 21:59:37 which may or may not work :D Apr 01 21:59:39 vol: Also, it just dawned on me I'm completely overengineering this because I can just type if (foo) { throw new RuntimeException(); } Apr 01 21:59:44 because thecode is temporary. Apr 01 21:59:49 hooray! Apr 01 22:10:04 how do I make a textview scrollable? I have a bunch of text appended to it and android:scrollbars="vertical" but i can't get it to scroll Apr 01 22:10:27 I'm overengineering my http connection also - ditching apache stuff and going back to good old plain input/outputstreams Apr 01 22:11:04 its not like anybody is ever going to use the stuff that I write :/ Apr 01 22:11:05 so I've got an intent-filter for action=VIEW and category=BROWSABLE and a WebView inside my app. Whenever I click a link, the intent gets resolved to browser.BrowserActivity. Anyone know how to get an embedded WebView to follow links inside the same WebView? Apr 01 22:57:12 When I use Canvas.translate(int, int) does it translate the current canvas' matrix? Apr 01 23:04:57 how can i find out if the user pressed the enter key on my editfield? Apr 01 23:09:14 Does anyone know of you can link the shell in the recovery image to a console on a pc? Apr 01 23:09:41 I'm not finding a whole heck of a lot of information on the recovery image Apr 01 23:10:21 If I understand right the adb daemon can be started but it only will push and pull objects. Apr 01 23:14:37 Bah, How can I load a Bitmap from a resource? Is there any automated way of doing it. Apr 01 23:22:19 mmjack: http://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeResource(android.content.res.Resources,%20int) Apr 01 23:22:38 BitmapFactory.decodeResource(resources, resID) Apr 01 23:23:21 in an Activity, the 'resources' argument will typically be just getResources() Apr 01 23:23:38 or in a View Apr 01 23:47:03 Does anyone know a good place to find detailed information about android's boot process? I'm scouring the xda-forums now. Apr 02 00:08:01 ITechJunkie: there's basically no detailed written documentation right now, just the source code. :-/ Apr 02 01:15:39 Trying to create tabs: Binary XML file line #5: Error inflating class tabHost Apr 02 01:15:40 any ideas? Apr 02 01:17:17 BeBoo: look at the logs Apr 02 01:17:20 it'll tell you why Apr 02 01:19:17 romainguy: only thing in LogCat up to the error is waiting for the debugger to settle and the debugger settling... nothing in the Console other than connecting to the debugger Apr 02 01:19:40 is there another log? Apr 02 01:19:47 no just the logcat Apr 02 01:19:58 but "Binary XML file line #5: Error inflating class tabHost" must be in the logcat Apr 02 01:20:04 along with stack traces Apr 02 01:22:10 romainguy: http://pastebin.com/d2fb52e25 Apr 02 01:22:50 i got that error from the variables tab Apr 02 01:23:52 but that's not relevant Apr 02 01:23:58 look in the logs for the inflation error Apr 02 01:24:49 but i'm trying to tell you that there is no errors... what i pastebin'd is what shows... right after the message that the debugger has settled is when it b0rks Apr 02 01:25:06 i must be missing something somewhere -_- Apr 02 01:38:00 romainguy: i got it... I didn't capitalize TabHost (it was tabHost) Apr 02 02:01:02 is there a way to force my R.java to update? it's not updating for some reason Apr 02 02:42:55 BeBoo, you probably have an error in one of your resource files. Also make sure "Build Automatically" is checked in the build menu **** ENDING LOGGING AT Thu Apr 02 02:59:57 2009