**** BEGIN LOGGING AT Thu May 07 02:59:57 2009 May 07 04:11:33 join android May 07 04:11:35 woops May 07 04:16:59 Good Morning..!! May 07 04:19:20 Morning May 07 04:27:35 12:30am ramble.. dialog's work a lot better if you let the activiy manage them vs doing setOwnerActivity and .show() .dismiss() yourself May 07 04:59:33 I'm doing monkey testing, and got an out of memory exception, "bitmap size exceeds vm budget" but my app doesn't do anything with bitmaps.. my app's not in the callstack. anyone around who cares about htis? May 07 05:00:49 yes May 07 05:00:52 you use too much memory May 07 05:00:55 stop using so much memory May 07 05:01:05 if it's during a monkey run, it's probably due to a memory leak May 07 05:01:36 here's the dump... http://pastebin.com/d76324555 May 07 05:01:44 yeah May 07 05:01:47 I'm using too much memory? hmm... that'd be a surprise... ok May 07 05:01:47 you're using too much memory May 07 05:02:03 weird.. but ok May 07 05:02:10 like I said, probably a leak May 07 05:02:26 great, thanks. I'll hunt it down May 07 05:11:44 i miss destructors May 07 05:33:02 now it crashed in "com.android.inputmethod.pinyin" -- the dialog box has kanji in it. The exception isn't my pid this time... "short mst: unable to add window -- token null is not valid; is your activity running?" {my activity is visible} May 07 05:33:52 my app's not on the callstack... May 07 05:34:29 anyway maybe it's still my app, dunno, will look at tomorrow May 07 05:36:24 looks like monkey was exiting my app, all my onDestroy()'s were getting called (my app is a tabhost with 4 tabs), then that pinyin died in PinyinIME$PopupTimer.run(PinyinIME.java:1266) May 07 05:38:22 pinyin : http://pastebin.com/d16795d59 May 07 05:38:27 and I'm outta here... May 07 07:49:22 anybody up for a listview adapter q? May 07 07:49:52 go ahead May 07 07:52:39 Question in short-form: In my adapter getView(pos, oldview, parent), is it necessarily ok to return oldview if pos == oldview.position ? May 07 07:53:04 no, that's not how it works May 07 07:53:08 reuse the oldView May 07 07:53:12 but always rebind its values May 07 07:53:35 ListView should already be taking care of the case where the view is used at the same position May 07 07:53:36 Ok, that's what I originally thought but getView seems to be called repeatedly for the same position May 07 07:55:13 And, I did a simple test of recording the last assigned position to my view objects May 07 07:55:53 and found cases where oldView.pos equals the position parameter. May 07 07:56:18 just don't rely on that May 07 07:56:31 (with no need to update underlying data in oldView) May 07 07:56:58 just update it May 07 07:58:50 Ok, I won't. Am I necessariyl doing something funky if getView is being called 4x per position? (Simple layout: ListView in a TableLayout with a single TableRow header) May 07 08:00:07 Ah -- just googled that...thanks for your help. May 07 08:00:21 you are probably doing something weird yes May 07 08:00:38 and actually putting the listivew inside a tablelayout probably account for these calls May 07 08:00:57 (a ListView with height != fill_parent or != fixed size is very expensive to layout) May 07 08:01:23 That makes sense May 07 08:04:15 Thank you! May 07 08:49:09 hey all May 07 09:20:32 hey aVirulence May 07 09:27:16 a service does not seem to have a finish() method. Should I call onDestroy()? May 07 09:54:57 is there an event when the soft keyboard pops up you can capture? May 07 09:55:39 nevermind May 07 10:16:59 actually yeah, how do you detect when the soft keyboard pops up and resizes your app? May 07 10:22:56 nyt: there should be full docs of this in the cupcake sdk (i don't remember offhand but am sure there is such a thing) May 07 10:34:11 cupcake sdk doesnt even come with samples now May 07 10:34:15 hence why im asking =[ May 07 10:34:45 ive checked the reference / read the lsits, cant find anything May 07 10:34:53 might be because i havent slept yet, but i dont see it May 07 10:55:06 is it possible to manually set the locale in order for a date to be parsed in English? (So the first part of the date is for instance Sat, which would not load in other locales) May 07 11:00:56 hello all, I'd like to use git with my android project. Anyone using git to develop android app's here? May 07 11:04:10 yeah, the Android project itself ;-) May 07 11:05:23 Hi there. I've just installed Eclipse 3.4.2 and the Android SDK 1.5, plus the ADP from dl-code.google.com, and have checked out the code from scrobbledroid on code.google.com. It's showing the following error: "Android requires .class compatibility set to 5.0. Please fix project properties." - I've had a look around and while it seems like it's a known error, I can't set compatibility to 5.0 in the Java Compiler screen. Has anyone else seen th May 07 11:07:03 hi everybody May 07 11:07:18 Hi z3yo May 07 11:09:26 There are problems with ADT installations since the releases of 1.5 May 07 11:10:35 I've unsatisfied dependencies under Eclipse May 07 11:14:20 aVirulence, :) do you use any eclipse plugin? May 07 11:14:41 or only command line git? May 07 11:14:51 heh, torkiano, I'm not involved in the project, and I don't use git, sorry for implying that May 07 11:16:52 I use eclipse plugin May 07 11:20:32 Someone can help me ? May 07 11:24:47 z3yo: have you tried Project --> clean ? May 07 11:26:30 yes May 07 11:26:45 But ADT was not installed yet May 07 11:27:36 I have unsatisfied dependencies with ADT and I don't know why May 07 11:32:46 Finaly, It seems it's was eclipse version who caused that May 07 12:30:44 I'm running adb devices on my Ubuntu 9.04 box, and it's not showing any devices. I've got a UK based T-Mobile G1 with the Android 1.5 firmware loaded. Do I need to do anything *unusual* to make it work (like being root or running chmod on a file in /dev)? May 07 12:41:02 the phone doesn't tell you it is connected by USB? May 07 12:42:28 The phone show's it's connected. It looks like it might be an issue in the Ubuntu 9.04 udev rules May 07 12:42:40 http://almondmendoza.com/2009/03/23/connecting-and-debugging-your-application-with-your-phone-on-ubuntu-904/ May 07 12:42:48 (Answered my own question ;) ) May 07 12:43:26 And it's a failed cable as well! May 07 12:43:28 D'oh May 07 12:57:02 i just found 2 extra cables in my work drawer that fit my phone :) May 07 13:11:30 i suppose it would be possible to take a timestamp and then another one later, and do simple math to tell how much time had passed in between without using a background service for a counter? May 07 13:16:41 y May 07 13:16:45 that's exactly what I'm doing May 07 13:22:01 soreachilles, yes! May 07 13:22:09 i just need to stop being lazy then :) May 07 13:22:34 yeah May 07 13:22:36 :) May 07 13:26:11 i actually do that to pause my timer also. I just note the time it was paused, and when it's unpaused, note the time, do the subtract, and add the difference back into the timer.. so I don't need to track how long it was paused via a timer May 07 13:39:46 hmm why would this "dd MMM yyyy HH:mm:ss" not parse this "01 Jan 2001 00:00:00" May 07 13:44:18 aVirulence, that's what it loooks like it would do May 07 13:44:39 Laserbeak43: it's a locale issue May 07 13:44:52 just found out May 07 13:47:06 oh ok cool May 07 13:47:11 that was kind of scary :) May 07 13:49:30 well, I was wondering, something like this should work, right? http://www.pastie.org/471117 May 07 13:51:15 the user can set the locale in the settings May 07 13:51:17 might be kinda rude to change it May 07 13:51:46 I'm not sure if that does change it, it probably doesn't, but it'd at least parse different than what the user has set... worth a test anyway May 07 13:52:52 and yeah, it does :-) May 07 13:52:54 great May 07 13:54:29 well, the problem was the following: there is a date that comes in (through a RSS feed) which is in en_US. The user sets the locale to nl_NL, and the date won't parse. Solution: change the locale, reinitialize the DateFormat (doesn't work otherwise, just figured that out) parse, and change the locale back! May 07 13:58:05 oh, so what if it were going to be realtime date and time May 07 13:58:21 wouldn't you actually have to convert the date and time? May 07 14:01:38 fine, don May 07 14:01:39 t May 07 14:01:49 answer, :) you don't have to worr about that :P May 07 14:03:29 yeah, you're right May 07 14:03:59 I guess May 07 14:04:09 however, I'm very glad, it's working like this May 07 14:41:20 good :) May 07 15:55:34 Is aapt -c unbroken now? May 07 16:06:35 so, the 1.5 adp image doesn't change anything regarding protected apps, does it May 07 16:12:23 hey, I have a problem uploading my app to the market.. I get this error: Market requires the minSdkVersion to be set in AndroidManifest.xml. May 07 16:12:39 but this is set: May 07 16:13:44 yep May 07 16:13:50 has to be the very first tag under May 07 16:13:56 marketplace bug May 07 16:14:56 After I upgrade my app to 1.5 sdk, I got 'R.layout.main cannot be resolved' error. Could anyone tell me how to fix it? May 07 16:15:26 skyred, try tools--> clean project May 07 16:18:16 >_< May 07 16:18:29 Is it possible to debug an apk without uploading a fresh apk EVERY SINGLE TIME? May 07 16:18:33 even if nothing has changed? May 07 16:19:25 aVirulence, ok, I just did Project --> Clean.. --> all project. I noticed that one of the project is fixed. But the project I am working on hasn't changed May 07 16:19:46 skyred: you could delete R.java May 07 16:19:55 it will be automatically re-generated May 07 16:20:31 aVirulence, just did. but problem remains May 07 16:25:38 strange, you could try to set the SDK version with a right-click on your project --> properties --> android --> sdk version May 07 16:25:43 not sure if that will do any good May 07 16:26:41 okay, I'm still having problems uploading my app to the market. I moved the to the top, but now I'm just getting this error: The server could not process your apk. Try again. May 07 16:27:13 aVirulence, I tried use dot . to find R. it looks like eclipse can find R, and R.layout, but not R.layout.main May 07 16:28:57 aVirulence, ah, fixed it. I have import android.R . so I deleted that line May 07 16:29:10 ok, great :-) May 07 16:29:21 aVirulence, thanks May 07 16:29:43 you're welcome, well, you did it yourself, but ok ;-) May 07 16:41:45 does anyone have a clue why my apps icon looks funky in the market? May 07 16:41:58 doesn't the market support transparent pngs? May 07 16:46:18 anyoneplay with widgets yet? May 07 16:46:31 how do i change the background based on orientation? May 07 16:52:03 anyone else notice their eclipse memory usage jump to 1.2gb resident (3.4gb virtual) occasionally when editing xml layout files? May 07 16:52:04 blau-mikeDG: res/drawable-land May 07 16:52:27 vol: you can just connect the debugger yes May 07 16:55:50 i have eclipse jump to ridiuclous amounts randomly May 07 16:56:29 durrr thanks romain May 07 16:56:58 sometimes i just dont think May 07 17:04:55 seems that there are more people with problems with transparent pngs in the market (when using the 1.5 SDK): http://groups.google.com/group/android-developers/browse_thread/thread/fdd8837c3db4eb8c/4465c03d43cb10be#4465c03d43cb10be May 07 17:11:06 so May 07 17:11:13 anyone know how to detect when the soft keyboard pops up? May 07 17:11:41 you could try to listen to the debug output when running the emulator May 07 17:13:25 theres gotta be some kind of event handler i can listen for May 07 17:13:29 i just dont know what it is and cant find it May 07 17:24:31 quick question, so if a RemoteView can only have one PendingIntent on a click, how do I allow multiple buttons on an AppWidget? May 07 17:33:57 nevermind, I found out how May 07 17:39:31 so nobody knows how to detect when the soft keyboard opens? May 07 17:39:45 I haven't tried, so no May 07 17:45:02 how do you detect when your screen has been resized May 07 17:47:52 herrio: are you talking about for widgets or notifications May 07 17:47:59 cauase if notifications then i need help :) May 07 17:50:04 what activity handles ACTION_APPWIDGET_PICK? I grepped the android source and couldn't find it except for when it is thrown by the launcher May 07 17:50:57 try asking jsharky, he's the widget man May 07 17:51:14 ok, I have a bunch of questions to ask him :) May 07 17:52:16 I found the class May 07 17:52:26 I guess it doesn't reference the constant in the class that handles it May 07 17:52:32 I needed to search for the string May 07 17:52:50 yeah, can't use the constant in the manifest May 07 17:53:45 AppWidgetManager May 07 17:53:48 err no May 07 17:53:56 nevermind thats where the string is though May 07 17:54:28 why is it so hard to find out how to detect a display size change =[ May 07 17:54:50 nyt: orientation change? May 07 17:54:51 like to do what? May 07 17:54:55 no, size change May 07 17:54:57 the display size doesnt really change does it? May 07 17:54:59 ie: soft keyboard pops up May 07 17:55:31 dont forget ime's can be all different shapes and sizes May 07 17:55:56 sizes at least May 07 17:56:09 hence why a relative layout is used, but i want to hook the event when the keyboard is displayed or hidden May 07 17:56:12 and you should be able to handle the config change for the soft keyboard May 07 17:56:23 which is what i dont know how to detect currently May 07 17:56:27 dont know what to hook May 07 17:56:43 nyt: see Activity.onConfigurationChange May 07 17:57:05 zhobbs_: THANK YOU. May 07 17:57:50 not sure if you can distinguish between soft and hard keyboard, but I assume you can... May 07 17:58:41 i dont care May 07 17:58:44 i just want to hook the size change May 07 17:58:48 you can detect keyboard later May 07 17:58:56 but thats not important May 07 17:58:58 but with the soft keyboard it makes sense to put scrollviews around some activities that didn't need them before May 07 17:59:15 so they can scroll to see the whole activity when using soft keyboard May 07 17:59:26 my app resizes perfectly, however a textview inside of a scrollview has blank space at the bottom, and thats ugly, so i position the textview everytime text is added to it May 07 17:59:34 zhobbs: put them there in the first place then May 07 17:59:49 and since its technically scrolled up a few pixels, i need to move it down manually on display size change May 07 18:00:03 blau-mikeDG: well, before there was never a situation where scrolling would be necessary May 07 18:00:14 a smaller screen May 07 18:00:22 a square screen May 07 18:00:36 blau-mikeDG: well, when those are available I'll have to just use different layouts/drawables May 07 18:05:29 jsharkey: ping May 07 18:11:40 is there a google provided activity May 07 18:11:54 that will bring up a list of contacts and returns the contact that the user picked? May 07 18:14:15 yi: no, there is a provider that'll list contacts...and you have to figure out the selection part May 07 18:14:47 yi: I need what you are talking about though, that would be nice...and might let users pick contacts for apps without the app having full access to their contacts list May 07 18:15:48 ok, i guess i can build my own May 07 18:15:56 easy enough to get the list of contacts and extend the list view May 07 18:17:47 yi: you could do a multichoice AlertDialog and just pass the Cursor May 07 18:19:36 zhobbs_: i'll look into AlertDialog May 07 18:19:49 i'm just getting started with android so I don't know any of these classes yet :) May 07 18:20:15 Could someone give me some debugging tips? for example, can I do System.out.print("here") to print out message in Console? May 07 18:20:55 skyred: import android.util.Log; May 07 18:21:02 Log.v("MyTag", "here!"); May 07 18:21:12 ctate, thanks a lot May 07 18:55:53 romainguy: is there a straightforward way to do all of this via eclipse? May 07 19:17:39 Hi all, I would appreciate some help with this 10.0.2.2 ip: I have a webserver running on the same pc as the emulator, and I can access it just fine with the browser, but when I try to access the server from within code, the request does not go through. Any ideas what the problem might be? May 07 19:18:40 adb forward tcp:80 tcp:80 May 07 19:18:49 if it's on port 8080 or something, write tcp:8080 for both May 07 19:19:07 lemme try that, thanks May 07 19:21:27 is there any good way to switch a ProgressDialog between determinate and indeterminate rendering? May 07 19:26:23 vol: can you not just call setIndeterminate(boolean) on it on the fly? May 07 19:26:36 doesn't appear to do anything once you've actually shown the dialog May 07 19:26:44 you probably have to setIndeterminateDrawable() on it once if you didn't construct it in indeterminate mode May 07 19:26:49 hmm May 07 19:27:05 I can't switch from one to the other for either state May 07 19:27:23 meh. May 07 19:27:42 a very quick glance at the code suggests it would work, so feh. May 07 19:28:08 even if you post an invalidate on it explicitly? May 07 19:28:25 hrm May 07 19:28:30 * ctate | If this progress bar's style only supports indeterminate mode (such as the circular progress bars), then this will be ignored. May 07 19:28:30 I could try that. May 07 19:28:53 ah. May 07 19:29:07 grrr May 07 19:29:16 app is bitchin gabout permissions even though i added one May 07 19:29:26 which permission? May 07 19:29:42 bitchin permission May 07 19:29:50 vol: android.permission.CAMARO May 07 19:29:51 android.permission.SET_ORIENTATION May 07 19:30:13 haha May 07 19:30:23 SET_ORIENTATION is a signature-only permission May 07 19:30:23 think users care about permission warnings? I have something I want to do with reading contacts, I could do it without it, but it wouldn't be as smooth and easy for the user... May 07 19:30:26 05-07 15:30:21.157: WARN/WindowManager(61): Permission Denial: setRotation() from pid=3937, uid=10046 requires android.permission.SET_ORIENTATION May 07 19:30:42 zhobbs, go check out Do Not Buy Me in the market May 07 19:30:51 and then realise i've had 100's of downloads of that May 07 19:31:01 blau-mikeDG: no dice; only signed packages can use that permission. May 07 19:31:16 oh :/ where is that documented May 07 19:31:56 http://developer.android.com/reference/android/Manifest.permission.html#SET_ORIENTATION May 07 19:32:07 "Not for use by normal applications" May 07 19:32:53 the actual statement of privilege levels associated with all of the system permissions is frameworks/base/core/res/AndroidManifest.xml May 07 19:33:22 naughty! May 07 19:33:26 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/AndroidManifest.xml;h=9f6ebeded2ae600261d0c29b6aa1933bf99575ff;hb=HEAD May 07 19:34:00 and on SET_ORIENTATION you can see the property: android:protectionLevel="signature" May 07 19:34:25 thanks for trying vol, but I tried the command you suggested but I get a "error: cannot bind socket" when I try it with the port the webserver is running on May 07 19:34:55 xavd: you around...I'd really love to get some info about that verify error, it sucks :( May 07 19:35:21 zhobbs: fwiw it's lunchtime here, so people may be away a lot May 07 19:35:42 12:35 GST May 07 19:35:47 ctate: k, thanks...I'll bother him throughout the day :) May 07 19:36:03 andi_droid: what port are you trying to connect to May 07 19:36:11 and does it make sense for the emulator to try and connect to it May 07 19:36:18 er May 07 19:36:20 what ip, sorry May 07 19:36:33 I am using 10.0.2.2 May 07 19:36:49 try using 127.0.0.1 for now May 07 19:36:55 which is supposed to be the IP for the host (when looking at it from the emulators view) May 07 19:36:56 10.0.2.2 is an internal network ip iirc May 07 19:37:05 tried that, 127.0.0.1 is the same May 07 19:37:10 even with adb forward? May 07 19:37:30 oh, I will have to trz that May 07 19:38:33 fwiw, when I was having problem connecting from emulator to local server, i just changed the dynamic dns in my router so www.here.com would map to my router-assigned ip addr.. then didn't need to do any forwarding... May 07 19:38:46 then in all my code, I just connect to here.com May 07 19:40:16 alternatively could somehow muck around with the hosts file the emulator picks up May 07 20:07:58 how can I define a color with this: "#ff5fbb3e" if I don't want to put in the xml file? May 07 20:08:53 aVirulence: see the Color class May 07 20:09:07 zhobbs_ thanks May 07 20:22:47 anyone used to doing Testing on Providers? May 07 20:22:57 using ProviderTestCase2? May 07 20:26:50 is it possible to add a spinner to a menu? (so you just see a button and get a pop-up with choice selection? May 07 20:29:30 you can add submenus May 07 20:38:40 aVirulence: or you can use a dialog when you select an item from the menu May 07 20:41:05 ok, thanks May 07 20:53:01 any thoughts on what I should do with a background service that's collecting gps coords, and user hits back-arrow? user may want to keep collecting in the bg -- so prompt when I'm exiting? (ugly..) May 07 20:54:01 let it be a setting May 07 20:54:02 i'd say that when the user quits your app you should believe them :) May 07 20:54:10 y.. i tend to think so too May 07 20:54:12 show a notification in the notification bar to show you are still running May 07 20:54:14 but ==vol is not a bad thing to consider May 07 20:54:23 and DEFINITELY provide obvious feedback that you're active May 07 20:54:31 really, I would set a switch to enable/disable collecting gps data May 07 20:54:38 sure that's in there May 07 20:54:41 remember, the app can go out of scope by the user getting a phone call May 07 20:54:57 but there's not a switch to say, "bug me when I'm exiting to see if I really want to cancel the gps" May 07 20:54:59 you really don't want to keep the GPS live while you're not running unless you have a really good reason May 07 20:55:12 it's one of the biggest power drains May 07 20:55:35 sooo... prompt? I dunno, I can't get the experience clean May 07 20:56:04 right now, back arrow == app gone, no promts, nothing, service goes down, and notification goes away May 07 20:56:10 setting; default to "turn off GPS when not running" May 07 20:56:23 if you go that way May 07 20:57:18 can I really cancel the service from being killed by the os? May 07 20:57:29 romainguy: quick question, is the state set for a highlighted list row (as you'd see out of touch mode) ENABLED_FOCUSED_SELECTED_STATE_SET? May 07 20:57:33 I don't really want to. I'd rather just tell the user, hey you hit the button that makes me die May 07 20:57:47 soreachilles: no, you can't. May 07 20:57:53 that's good.. i prefer that May 07 20:58:04 so I can just tell the user, you killed me, i'm not collecting anymore May 07 20:58:13 soreachilles: nothing prevents the service from bringing itself back up, however. May 07 20:58:18 doh May 07 20:58:19 heh May 07 20:58:22 hm, maybe a toast is the right way to tell the user that May 07 20:58:26 y.. May 07 20:58:30 like it does for bluetooth headset disconnect May 07 20:58:30 that's what I do now.. May 07 20:58:35 but it comes up during orientation change too May 07 20:58:52 I haven't nailed it yet... May 07 20:58:54 your *service* is being torn down during orientation change? May 07 20:59:10 hm, i wonder whether you can carry the binding across May 07 20:59:14 hello developers May 07 20:59:20 hi cmcintosh33 May 07 20:59:34 i got a general question May 07 21:00:13 does anyone know if the Android Dev phone is compatible with the Verizon network May 07 21:00:24 yeah May 07 21:00:32 really? May 07 21:00:37 I think so, maybe I'm releasing the binding to itduring ondestroy May 07 21:00:38 isn't Verizon CDMA? May 07 21:00:50 yes May 07 21:01:00 then no, the G1 and ADP1 are not compatible. they are GSM devices. May 07 21:01:56 the ADP1 is also W-CDMA compatible which makes me think that but I am not sure May 07 21:03:16 that refers to the 3G data transport that the hardware supports May 07 21:03:27 but it's a GSM phone, it only takes GSM SIM cards, etc. May 07 21:03:42 ctate: aye, my bg service is getting onDestroy() during orientation, but maybe it's due to my call to unbindservice() in the onDestroy of the activity that bind()'d it ... shrug I'll keep hammering on it May 07 21:03:53 ha, yes, that's why soreachilles May 07 21:04:13 ctate: i'm afraid not to unbind it though :) May 07 21:04:23 ok thanks for your help :) , cya l8r May 07 21:04:28 take a look at Activity.onRetainNonConfigurationInstance() soreachilles May 07 21:04:42 k May 07 21:04:49 nice method name btw May 07 21:05:02 yeah well May 07 21:05:13 if you get that call, you know that you're just being relaunched for a config change May 07 21:05:18 so you don't unbind May 07 21:05:20 soreachilles: also, you may want to start the service before you bind to it...it'll stay running until you call stopSelf() May 07 21:05:42 if you just bind, then they stop onUnbind May 07 21:06:58 yeah i just bind to it with BIND_AUTO_CREATE May 07 21:07:55 so if I figure out how to make this thing service run forever... is that a good thing? I'd rather not have a modern day TSR, heh May 07 21:08:37 wow havent' thought of TSR's in a long time, wonder where that came from ... anyway .. don't you guys want apps to totally clean up themselves at some point? If I hang this bg gps collector out there with no ui... gawd, that can't be good May 07 21:09:10 read up on the Service class, soreachilles May 07 21:09:13 k May 07 21:09:29 e.g. the differences between bindService() and startService() behaviors May 07 21:12:35 kinda creeps me out, esp with gps in there, but ok. thanks for the info.. I'll work on a nicer flow May 07 21:17:35 hey my g1 shipped 4 days ahead of schedule from amzn May 07 21:17:47 wonder if my code will still work when it arrives :) May 07 21:21:53 Hey guys, I was wondering if anyone had some advice. I'm trying to build a library for both android and standard java apps. I'll want to provide resources for Intents to hook into, and maintain a library that has no android components. Is there any good best-practice to get this done? May 07 21:23:12 i'm going to setPersistent(true) on all my activities, that should fix a bunch of problems ;) May 07 21:25:32 anyone a sql guru here? May 07 21:27:16 not a guru at all, but what's the question? May 07 21:27:34 i am reading up the difference between truncate and delete May 07 21:28:18 in sqlite ? May 07 21:28:22 yea May 07 21:28:46 afaik truncate == delete in sqlite May 07 21:29:03 like delete w/o where = truncate May 07 21:29:31 it says that delete does not free the space that the table containing the table but truncate deos May 07 21:29:37 http://beginner-sql-tutorial.com/sql-delete-statement.htm May 07 21:29:56 i meant sapce containing the table May 07 21:30:50 well May 07 21:30:59 is it memory allocation? May 07 21:31:03 what space is it talking about May 07 21:31:10 android is using inmemory sqlite databases, where vacuum just does nothing anywya May 07 21:31:19 it's going to fee up space on a delete/drop/etc May 07 21:32:00 when looking for docs on using android's db, use the sqlite stuff. There's in the d.android.com docs, and also http://sqlite.org/docs.html May 07 21:32:24 alright i'll take a look at that May 07 21:33:20 i mean you should use the android api here: http://d.android.com/reference/android/database/sqlite/package-summary.html May 07 21:33:37 but if you're wondering how the underlying sqlite db does something, you can check that sqlite.org link May 07 21:39:09 i actually dunno if that's true about sqlite databases being :memory: I mean they are 'in memory' cuz there's no disk, but the ram must be mounted as an filesystem, so it must be creating a real sqlite database, which would need to be vacuumed eventually May 07 21:39:23 like every year.. May 07 22:01:27 hmm. May 07 22:06:44 . May 07 22:07:24 what's up jasta? May 07 22:08:13 not much, just frustrated that i can't clone a Drawable :) May 07 22:08:45 can't you do that in 1.5? May 07 22:08:59 what makes you say that? May 07 22:09:11 because they said you can :P May 07 22:09:28 where are you getting this info from? May 07 22:09:44 http://android-developers.blogspot.com/2009/05/drawable-mutations.html May 07 22:09:53 romainguy May 07 22:10:32 oh, nice May 07 22:13:07 thats really amazing, it doesnt even clone May 07 22:13:14 its just an interface that forces all the Drawable instances to fork their state May 07 22:13:17 insane :) May 07 22:13:23 but excellent May 07 22:14:11 :D May 07 22:16:33 Hm, anyone know if there is a special trick to generating an EMMA instrumented build in Android? I see it mentioned at http://developer.android.com/reference/android/test/InstrumentationTestRunner.html May 07 22:18:05 zinx: except that setState() isn't implemented to support this :( May 07 22:18:13 :( May 07 22:18:44 fucking lame :( May 07 22:21:22 i can work around this by grabbing the Drawable from the state i want to use though. May 07 22:21:30 DrawableContainer#getCurrent thankfully exists and is public May 07 22:39:27 ctate: looks like BroadcastReceiver.peekService() doesn't work for services running in a different process May 07 22:39:39 are you certain? May 07 22:39:44 hmm. May 07 22:39:58 like, even if it's a system service it fails? May 07 22:40:07 haven't tried system services May 07 22:40:09 peekService? May 07 22:40:17 new in cupcake, jasta May 07 22:40:20 jasta: yeah, it's new...handy too May 07 22:40:25 yeah that looks handy May 07 22:40:25 get an IBinder to an already-running service May 07 22:40:36 because you can't bindService() in onReceive() May 07 22:40:53 i could have used that yesterday actually hehe May 07 22:41:26 zinx: mostly the question is "are you absolutely sure the service really is live and running in that other process?" May 07 22:41:57 I can run the receiver in the same process as the service...doesn't matter, maybe should say that in the docs though May 07 22:42:38 it's not supposed to be tied to process location, only to lifetime of the target service May 07 22:50:34 ctate: can you do me a big favor? May 07 22:50:43 depends :) May 07 22:50:55 what is WEOF for android's widechar stuff? May 07 22:51:12 uh May 07 22:51:16 #include delightfully breaks the build thanks to typedeffing wchar_t May 07 22:51:22 i haven't a clue May 07 22:51:35 oh well, it was worth a shot. May 07 22:51:36 we dont' really do wchar_t stuff do we? May 07 22:51:45 ugh, you kind of sort of do sometimes. May 07 22:51:51 ok ok May 07 22:51:53 sigh May 07 22:52:06 it really is in a "this is broken, glhf" state though. May 07 22:52:25 we're using our own custom methods for pretty much all of the wc stuff iirc May 07 22:54:04 actually, strike that, I'm stupid. I don't think we're using any of the android stuff for wc May 07 22:57:43 lol May 07 22:59:03 ctate: bring a nerf gun to I/O. You get to shoot me in the head. May 07 22:59:55 tee hee May 07 23:03:34 is there a way for me to know the service has finished running? May 07 23:05:44 chouman82: have the server alert you when it is done. use broadcast intents if you want. May 07 23:06:06 u meant the service? May 07 23:06:21 is that the only one to do it? May 07 23:06:31 only way May 07 23:07:37 chouman82: what needs to know when the service is finished? May 07 23:08:06 trying to write a ServiceTestCase May 07 23:08:26 my service insert data into the database May 07 23:08:37 and so i need to check the database after service is done running May 07 23:08:58 writing functional tests May 07 23:09:06 xavd: you around? Sorry for pestering, just wondering if that internal bug got any feedback? May 07 23:11:06 zhobbs_: sorry, been busy with other stuff May 07 23:11:10 zhobbs_: ot May 07 23:11:20 zhobbs_: it's in the VM guys hand anyway May 07 23:11:31 they didn't have any idea last time i talked to them May 07 23:11:37 xavd: yeah, I figured it wasn't your dept May 07 23:11:43 would you be willing to send me an apk that shows the issue? May 07 23:11:46 sure May 07 23:12:01 cool, send it to xav@android.com May 07 23:12:29 k, thanks May 07 23:13:08 chouman82: if you've bound to the service, i believe your ServiceConnection will be called with onServiceDisconnected() when the service shuts itself down. May 07 23:16:02 ctate: thanks, i'll give that a try May 07 23:17:00 ctate: actually, thats unlikely, and depends on the flags used. May 07 23:17:05 meh May 07 23:17:34 normally, the service cannot die until after all connected clients leave. even if stopSelf() is called. May 07 23:17:41 got it May 07 23:18:02 this is why it is generally a good idea to introduce your own state for your service, and never rely on android's internal state. May 07 23:18:17 for instance, you could have your service broadcast some intent when it is "done" working, independent of whether it has been destroyed or not. May 07 23:18:23 yeah May 07 23:18:39 or, if it's running in your process, signal via package globals May 07 23:18:57 in other words, there is a concept of your service performing work which you define, and a concept of your service running which android defines. May 07 23:24:16 god damnit May 07 23:24:24 I dropped by dev phone May 07 23:24:55 screen is white with about 10% colored lines at the right side of the screen :( May 07 23:26:03 any chance that could just be the connectors or something? or does the whole screen need to be replaced May 07 23:31:14 so i should just have a broadcast in my service non-theless May 07 23:31:17 ? May 08 01:20:34 Hey, so if I use glSetScissor May 08 01:20:55 then call eglFlushGraphics, does that only flush the graphics for that portion of the screen? May 08 01:49:07 herriojr: hm? **** ENDING LOGGING AT Fri May 08 02:59:57 2009