**** BEGIN LOGGING AT Tue Mar 18 02:59:57 2008 Mar 18 03:24:41 No Geocoder DB file "/data/misc/location/geodb" Mar 18 04:10:04 romainguy: you ever used one of these "nap pods"? http://www.reuters.com/news/pictures/slideshow?collectionId=1648&galleryName=All%20Collections#a=4 Mar 18 04:15:09 would be interesting to measure performance of those napsters in their nappods Mar 18 04:17:53 I have a couch in my office and it hurts my productivity Mar 18 04:21:24 i want a couch.. really, the afternoon naps are so tempting these days Mar 18 06:08:13 hi guys and girls - i have a spinner that seems to want to fire its onItemSelected for the 0th item as soon as the page is rendered Mar 18 06:08:32 could someone pointme in the approx. direction of docs that will tell me what i am doing wrong? :) Mar 18 06:22:42 thedanier: did you try performClick(); Mar 18 06:29:16 muthu: i'm not sure what you mean Mar 18 06:30:04 muthu: first off, i don't want the event to fire when the thing is rendered, and second off, you don't get to use a normal OnItemClick with Spinners, you have to use setOnItemSelected instead (At least that's what I thought ,maybe this is where my problem is ) Mar 18 08:24:25 android needs something like flash-lite, silverlight etc., and they better build it now Mar 18 08:24:38 woah, deja vu. Mar 18 09:59:24 does anyone have an example of what the UI xml should look like for a ProgressBar? Mar 18 09:59:48 I'm looking at Google's ProgressBar1.java but the don't supply the xml code Mar 18 10:03:29 Mar 18 10:03:29 android:id="@+id/video_progress" Mar 18 10:03:29 style="?android:attr/progressBarStyleHorizontal" Mar 18 10:03:29 android:layout_width="fill_parent" Mar 18 10:03:30 android:layout_height="wrap_content" Mar 18 10:03:32 android:layout_weight="1.0" Mar 18 10:03:34 android:max="100" Mar 18 10:03:36 android:progress="0" Mar 18 10:03:38 android:secondaryProgress="0" Mar 18 10:03:40 /> Mar 18 10:04:16 the key here is to set the style Mar 18 10:05:16 thanks ... where do you find this stuff? :P Mar 18 10:07:12 there seems to be very little documentation on the UI xml stuff Mar 18 10:13:07 raidfive: don't remember exactly.. certainly not from the docs ;) Mar 18 10:14:30 :) Mar 18 16:36:11 Is there some way to access requestCode within a SubActivity? Mar 18 16:37:00 the documentation talks about it getting returned to onActivityResult, but can I see what the request code is within the subactivity class Mar 18 16:39:16 not sure on that... Mar 18 16:39:26 Seems like it should be possible. Mar 18 16:39:43 I mean, I'm passing a request parameter in...I should be able to see what the request is Mar 18 16:40:35 I think you are supposed to use the Action parameter in the Intent or bundle some extras for that purpose Mar 18 16:41:22 I'll take a look at Action, thanks. Mar 18 16:45:16 Error: No resource found that matches the given name (at 'background' with value '@drawable/yellow').Any syggestions????? Mar 18 16:45:34 make a drawable that's named yellow Mar 18 16:45:35 did you define drawable/yellow? Mar 18 16:45:54 in xml?No Mar 18 16:45:59 in colors.xml Mar 18 16:46:06 #7700ff00 Mar 18 16:46:11 (for instance) Mar 18 16:46:23 #ARGB Mar 18 16:46:48 can i put it in the same xml? Mar 18 16:46:54 in colors.xml Mar 18 16:46:58 yeah Mar 18 16:47:12 in your values folder Mar 18 16:47:16 yeah Mar 18 16:47:48 Have you got any ready colors.xml??? Mar 18 16:48:39 #44000000 Mar 18 16:48:47 that works for me Mar 18 16:49:06 yep Mar 18 16:56:28 nothing....This is my xml wrong code: id="@+id/label1" Mar 18 16:56:28 android:layout_width="33px" Mar 18 16:56:28 android:layout_height="wrap_content" Mar 18 16:56:28 android:background="@drawable/yellow" Mar 18 16:56:29 android:text="Key:" Mar 18 16:56:31 android:textColor="@drawable/black" Mar 18 16:56:33 android:layout_x="20px" Mar 18 16:56:35 android:layout_y="252px" Mar 18 16:56:37 > Mar 18 16:56:39 Mar 18 16:56:41 sorry.... Mar 18 16:57:00 sorry about what? Mar 18 16:57:19 for not using something like pastebin etc. Mar 18 16:57:27 oh Mar 18 16:57:34 What's wrong with it? Mar 18 16:57:49 you defined drawable/yellow? Mar 18 16:58:11 and drawable/black Mar 18 16:58:11 I create a new xml file using your lines but nothing Mar 18 16:58:30 did you replace "disabled_tab" with "yellow" Mar 18 16:58:32 ? Mar 18 16:58:44 yeah, paste that file Mar 18 17:00:10 i replaced "disabled_tab" with "yellow" but nothing Mar 18 17:00:32 and it's in res/values/colors.xml? Mar 18 17:00:38 yes Mar 18 17:01:03 Maybe "Fix Project Properties" Mar 18 17:02:58 I thing project is ok.DroidDraw.com have some wrong arguments. Mar 18 17:03:38 Okay, so I can do an intent.putExtra(string,int), but how do I access the "extra" from within the subActivity? Mar 18 17:04:24 getIntent().getExtra)( Mar 18 17:04:37 ah, thanks Mar 18 17:05:54 If i want change the screen.Simply I load a second xml????Is there a better way? Mar 18 17:06:14 You can do it that way Mar 18 17:06:19 if you're chaning it that much a new activity would probably be better Mar 18 17:06:19 You can also use an intent Mar 18 17:06:28 to create a new activity Mar 18 17:06:44 Yeah, if it's a small change, you can load a new xml into the current activity Mar 18 17:06:52 larger changes should probably have a new activity Mar 18 17:07:12 or if it's a small change you could just change the object you're changing with code Mar 18 17:07:40 True. Though, for instance, I have an activity with multiple "pages" with similar formatting, and I swap out XML for each page Mar 18 17:07:50 That seems to work pretty well Mar 18 17:08:30 yeah, I've done sometime similar with a FrameLayout or ViewAnimator Mar 18 17:08:38 Hmm...getIntent().getExtra() is depricated Mar 18 17:09:47 getExtras() Mar 18 17:09:57 will give you the Bundle Mar 18 17:10:27 hmm Mar 18 17:10:45 has anybody managed to place a displayZoomDialog(float x, float y)? I am not really sure about how it position itself Mar 18 17:10:47 its buggy Mar 18 17:10:51 are you putting a bundle? Mar 18 17:11:05 Well, I was putting an int Mar 18 17:11:22 a good tutorial for FrameLayout?(Not documentation) Mar 18 17:11:41 They aren't showing depreciated in the docs? Mar 18 17:12:08 Aetmos: getIntExtra() is depreciated? Mar 18 17:12:20 Well, GetExtra() is deprecated Mar 18 17:12:24 Let me check GetIntExtra Mar 18 17:12:43 Aetmos: I've always used a bundle so I haven't tried Mar 18 17:13:02 okay, getIntExtra seems to be okay Mar 18 17:13:05 thanks Mar 18 17:13:18 might need to use putIntExtra then Mar 18 17:13:40 doesn't exist Mar 18 17:13:51 :) Mar 18 17:13:56 I think the (string,int) override for putExtra should be sufficient, though Mar 18 17:14:02 oh yea Mar 18 17:14:33 btw: Bundle-Issue: http://code.google.com/p/android/issues/detail?id=252 Mar 18 17:14:51 lol Mar 18 17:15:23 Hey plusminus, you don't happen to know if it's possible to access the requestCode within a subactivity, do you? Mar 18 17:15:38 Though putExtra seems like it will work... Mar 18 17:15:46 Seems silly to send the same int twice, though Mar 18 17:18:36 hmm...nullpointerexception Mar 18 17:18:37 ;-( Mar 18 17:19:05 puttin or getting? Mar 18 17:19:20 getting Mar 18 17:21:05 In google's notelist app I think they use the intent's action Mar 18 17:21:51 hmm Mar 18 17:22:27 oh, shit, I was just trying to update the GUI before building it. Mar 18 17:22:53 trying again... Mar 18 17:23:27 Excellent! It works! Mar 18 17:23:28 Thanks Mar 18 17:23:43 :) Mar 18 18:01:02 hmm, sqlite3 is not behaving as i expect writing my blobs... Mar 18 18:01:26 (not in android, i know that its not supported there) Mar 18 18:13:01 <_avatar> i haven't tried this yet, but can a view defined by one layout XML file be used as a sub-view in a different layout XML? Mar 18 18:13:41 not directly, however you could (and should) create your own compound control to do this. Mar 18 18:15:20 <_avatar> i.e. subclass some sort of View? like a LinearLayout? Mar 18 18:18:43 <_avatar> cool, http://code.google.com/android/toolbox/custom-components.html is helpful. thanks Mar 18 19:02:50 is there any issues creating several content providers? Mar 18 19:03:28 my emulator keeps crashing as soon as I try to add a second content provider with a file observer crash Mar 18 19:23:33 I am going mental Mar 18 19:32:37 ok if I wipe data, I can start my application once. As soon as I try to launch it again via eclipse, it crashes my emulator and I need to wipe the data again Mar 18 19:34:47 have you looked at the logs? Mar 18 19:35:29 ERROR/FileObserver(878): Unhandled exception java.lang.NullPointerException (returned by observer android.server.PackageManagerService$AppDirObserver@400f6070) Mar 18 19:36:03 this is really strange, I declared 2 content provider in my manifest Mar 18 19:36:14 if I leave only one then it works (whichever) Mar 18 19:36:43 if I have the 2 then it creates only the first one when I launch the app for the first time and then crashes when I try the second time Mar 18 19:36:57 I tried with 2 different db or only 1 Mar 18 19:37:23 there seems to be a lock on it Mar 18 19:37:24 ERROR/FileObserver(878): at android.server.PackageManagerService.removePackageLocked(PackageManagerService.java:1176) Mar 18 19:38:17 and it is very frustrating because each time I need to wipe the data and try again Mar 18 20:23:42 jasta: you been playing mp3s much with MediaPlayer yet? Just wondering if you're experiences some bugs with random stoppages, etc Mar 18 20:28:22 i actually avoided the MediaPlayer for now Mar 18 20:28:27 it's really, really broken :) Mar 18 20:28:47 you are going to eventually use it though right? Or is there an alternative? Mar 18 20:30:10 i will have to Mar 18 20:30:17 my hope is that it will be fixed in the next month. Mar 18 20:30:25 if not, then i will have to just leave parts of my app pretty broken Mar 18 20:30:48 doubt they'll be fixed before challenge... Mar 18 20:30:56 me too Mar 18 20:31:09 that's why i hope and not expect :) Mar 18 20:34:31 i will "document" it well, though Mar 18 20:34:38 yeah Mar 18 20:34:49 like, display to the user that the reason it's not doing what you expect is because of issue # Mar 18 20:35:26 hey btw, has anyone successfully created a 9 patch? Mar 18 20:35:32 yeah Mar 18 20:35:34 yes Mar 18 20:35:35 im curious what these look like Mar 18 20:35:41 romainguy: other than you guys ;) Mar 18 20:35:44 didn't you read the tutorial online? Mar 18 20:36:04 just add black border for streatchable areas top and left Mar 18 20:36:53 jasta: http://code.google.com/android/reference/available-resources.html#ninepatch Mar 18 20:37:32 though I'm not sure why you would need the padding boxes Mar 18 20:37:46 the padding helps place the content Mar 18 20:38:01 that's what tells a button to put the text X pixels from the left at least for instance Mar 18 20:38:25 Hmm, just seems weird to stretch areas where content doesn't exist Mar 18 20:38:35 why? Mar 18 20:39:08 the example on the URL you gave shows a perfect example of why it's useful Mar 18 20:39:23 it's just padding Mar 18 20:39:31 it's like calling view.setPadding() yourself Mar 18 20:39:31 Ohh, I see now Mar 18 20:39:44 content may be placed in areas that aren't stretchable Mar 18 20:40:17 content can be placed anywhere Mar 18 20:40:27 the content has nothing to do with stretchable areas or not Mar 18 20:40:30 right **** ENDING LOGGING AT Tue Mar 18 21:11:42 2008 **** BEGIN LOGGING AT Wed Mar 19 01:22:24 2008 Mar 19 01:31:22 Is there anyway to mute the emulator? Seems to play audio with or without -useaudio Mar 19 01:32:07 -noaudio Mar 19 01:32:08 type emulator --help to see all options Mar 19 01:32:18 ahh Mar 19 01:49:03 romainguy: *poke* Mar 19 01:50:00 i have a SimpleCursorAdapter here with an image and text view, and whenever i scroll the list around it hangs for about a second with 4 lines sent to adb logcat in succession saying: Mar 19 01:50:05 D/dalvikvm( 1275): Exception Ljava/io/IOException; from BufferedInputStream.java:264 not caught locally Mar 19 01:50:13 then it draws just like i expect it to Mar 19 01:50:24 do you know what that's about? Mar 19 01:51:13 the rows in the database are mixed such that some of the rows have null instead of a content:// uri specifying an image resource. it seems like maybe it hangs when calling getView on those rows, actually. Mar 19 01:58:02 jasta: I've been wondering what kind of column does the SimpleCursorAdapter expect to be binded to an ImageView? Mar 19 01:58:14 text, specifying a content:// uri. Mar 19 01:58:20 ok Mar 19 01:58:46 i had hoped it would be able to tolerate null or empty values as well Mar 19 01:58:49 but maybe not :) Mar 19 01:59:14 gotta point it to an empty pic Mar 19 01:59:38 but yeah, you'd think it could handle null Mar 19 01:59:42 well it works, and maybe it has nothing to do with this Mar 19 01:59:46 but it's slow as hell as i'm using it now Mar 19 02:01:09 lol Mar 19 02:01:17 what the heck? Mar 19 02:01:24 the code looks like: Mar 19 02:01:46 try { v.setImageResource(Integer.valueOf(value)) } catch (NumberFormatException e) { v.setImageURI(Uri.parse(value)); } Mar 19 02:02:04 it first tries to interpret the database row as an image resource number? Mar 19 02:02:46 strange way of doing it Mar 19 02:03:10 agreed, i wonder why you'd ever want to store a resource id into a database? Mar 19 02:03:14 that seems like a miserable strategy Mar 19 02:03:39 i guess simplecursoradapter's not just for database cursors, though Mar 19 02:03:52 hm Mar 19 02:15:01 yeah, it's totally the null column that screws it up. i bet it's because it tries to load it as an image resource (resource 0?) Mar 19 02:16:23 not sure what Integer.valueOf("") yields, though. Mar 19 02:21:10 matybe a numformat ex Mar 19 02:21:31 yeah, it must throw the exception Mar 19 02:43:48 it's a nice feeling when code works the first time :) Mar 19 02:43:55 it's a rare feeling, for me at least :p Mar 19 02:44:25 for sure Mar 19 02:44:40 definitely , had that last night Mar 19 02:44:52 completely not happening tonight though Mar 19 02:45:42 My happiness has been devoured by SQL JOINS Mar 19 02:46:05 hehe Mar 19 02:46:10 mine is being destroyed by MediaPlayer + DeadObjectExceptions Mar 19 02:46:20 MediaPlayer crashing my service Mar 19 02:54:06 hello Mar 19 02:54:07 to all Mar 19 02:54:10 Hmm, youknow, why should you be getting DeadObjectExceptions on an emulator anyway? That should only happen when resources are low, right? Mar 19 02:54:18 i have a quick question Mar 19 02:54:26 ok, here goes... Mar 19 02:54:51 i am trying to find the location a business based on its proximity to a certain address Mar 19 02:55:00 for example, i could type into google maps: Mar 19 02:55:18 "starbucks near 1600 Amphitheather Parkway, Mountain View, CA" Mar 19 02:55:19 chaosvoyager: when the service crashes and then I try to use the remote interface it will give that exception Mar 19 02:55:31 however, this approach does not work Mar 19 02:55:48 ah, a crash, that makes sense. Mar 19 02:55:51 how can i make sure that the results returned are only profiles of starbucks locations? Mar 19 02:56:27 can anyone point me to a better channel? Mar 19 02:56:45 jjt009: you using the Search object? Mar 19 02:56:53 no Mar 19 02:57:08 i'm just connecting to Google Maps web service with UrlConnection Mar 19 02:57:20 Use a Search object Mar 19 02:57:22 this is a basically a question about the use of google maps Mar 19 02:57:29 ok what package? Mar 19 02:57:34 jjt: are you using the GmmGeocoder class? Mar 19 02:57:39 ohh Mar 19 02:57:51 GmmGeocoder is supposed to be unsupported Mar 19 02:57:59 yep Mar 19 02:58:03 i use it anyways tho. Mar 19 02:58:06 hmm.... Mar 19 02:58:07 it also doesn't work for me Mar 19 02:58:11 for some reason Mar 19 02:58:21 i've got it working fine except it doesn't return the business name for some reason Mar 19 02:58:55 i decompiled android.jar and found that it uses the same bogus White House addresses as the supported Geocoding classes Mar 19 02:59:28 zhobbs: where can i find the Search object? Mar 19 02:59:29 right, that's what GeoCoder uses.. however the Contacts application returns real addresses Mar 19 02:59:36 so it's either using GmmGeocoder, or the Google API Mar 19 02:59:45 jjt009: android.app.SearchManager Mar 19 02:59:48 i should try that out **** ENDING LOGGING AT Wed Mar 19 02:59:57 2008