**** BEGIN LOGGING AT Mon Feb 02 02:59:57 2009 Feb 02 12:29:07 hello Feb 02 12:29:46 anyone in? Feb 02 15:03:06 Siegel: no Feb 02 15:38:43 is it possible to set up an inverse dependency between two preferences? That is, have on pref enable when a checkbox is unchecked? And disable the other preference when the checkbox is checked? Feb 02 15:40:47 Or must be handled pragmatically? Feb 02 16:46:06 ahm, how again do i refer to android's own drawables in xml layout? Feb 02 16:47:15 @android:drawable/btn_flicker_minus Feb 02 16:47:17 doesn't seem to work Feb 02 16:47:47 ah, it's not working because it's not public... am I allowed to copy it over to my own project? Feb 02 17:07:13 yes, provided you comply with the license Feb 02 17:20:26 Could someone tell me the URI for the default alarm sounds on the G1? (used by the messaging app etc.) Feb 02 17:21:23 is it possible to set up an inverse dependency between two preferences? That is, have on pref enable when a checkbox is unchecked? And disable the other preference when the checkbox is checked? Feb 02 17:21:51 I guess that really suggests the need for a radio selection or something...hmm... Feb 02 17:28:29 BlindOracle: you can with a custom preference Feb 02 17:28:55 might just need to override shouldDisableDependents() Feb 02 18:19:13 soooo Feb 02 18:19:32 why does adb shell am return success exit code when the tests fail? Feb 02 18:20:18 i have a spare laptop, does anyone think it's worth putting ubuntu on it purely for developing apps for the g1? Feb 02 18:21:00 NetStorm84, it doesn't really matter what you put there if you want to develop apps :) Feb 02 18:21:21 im just think linux would be easier for developing rather than windows? Feb 02 18:21:56 NetStorm84, there's no difference if you are using eclipse or something like that for development anyway :) Feb 02 18:22:17 yea i will be using eclipse Feb 02 18:53:23 NetStorm84: probably don't need ubuntu either. Feb 02 21:54:17 hi guys Feb 02 21:54:46 is there an Intent to listen to get notified when the Device is connected to the PC...? maybe: android.content.Intent.ACTION_UMS_CONNECTED ? Feb 02 22:02:43 plusminus_: that intent is broadcast when a usb cable is connected which is *also* connected to a usb mass storage host... so i'd say most of the time, you'd be correct. Feb 02 22:06:04 When I pop it in and out, I get log messages: Feb 02 22:06:12 MountListener handleEvent ums_disconnected Feb 02 22:06:16 MountListener handleEvent ums_connected Feb 02 22:06:23 s/in and out/out and in/ Feb 02 22:06:31 so, take a look at the MountListener I guess Feb 02 22:06:44 vol: see my above Feb 02 22:06:59 you can use the UMS_CONNECTED and UMS_DISCONNECTED intents Feb 02 22:22:10 ive got public class OauthTokenPreference extends DialogPreference { ... } ... and a layout XML that says but Android says it cant inflate that class. what should i do? Feb 02 22:22:44 s/ I'm binding to a service from an Activity, within the onCreate() method. I call bindService with my ServiceCreation implementation. My ServiceConnection's onServiceConnected method then assigns a variable to the result of x.Stub.asInterface( service ). Are all these calls may synchronously within the same thread context of the original bindService call? Feb 02 22:31:46 may = made Feb 02 22:33:26 it appears to not be the case. I call bindService and then attempt to use the instance variable which is ultimately assigned by the onServiceConnected method but the variable is still null. Some time later, it gets set. Feb 02 22:34:12 Is this the expected behavior? And if so, what is the required protocol here? Am I suppose to add all the other logic to make this safe via handlers or what? Feb 02 22:35:37 The API example sucks in this regard as it is always safe because it is using a handler to call back via the provided callback which will only ever happen after the onServiceConnected method completes. So one is left wondering, WTF?! Feb 02 22:36:02 or is that the solution, you must always use a callback to signal initialization completion? Feb 02 22:58:46 * joakime wishes he had the skillset to port Android to a device like this ($48) -> http://www.davismicro.com/products/product_1539.htm Feb 02 22:59:28 much more cost effective devices. Feb 02 23:00:46 oh? Feb 02 23:24:47 BlindOracle: bindService() is asynchronous Feb 02 23:25:08 it will not block until onServiceConnected() is called Feb 02 23:25:53 [because it may take "a long time" for the requested service to be launched and become available] Feb 02 23:26:54 ctate: ok, thanks...seems the ServiceConnection's sole intention is to address my issue Feb 02 23:27:06 exactly. that is what it's there for :) Feb 02 23:27:40 Sorta odd they have an asynchronous interface to provide synchronous services. ;) Feb 02 23:27:42 note that this is why you cannot bind to services from inside broadcast receivers' onReceive() methods Feb 02 23:27:58 ctate: ya, I saw that Feb 02 23:28:14 it's an asynchronous interface to *requesting* the service. actually using the service is of course different. Feb 02 23:28:46 fair distinction...still sorta odd Feb 02 23:29:16 I guess every toolkit has its quirks Feb 02 23:29:35 by any chance does the author of tricorder hangout around here? Feb 02 23:30:45 yeah, it's a little odd, but the alternative is to make activity/application launch freeze for seconds at a time, potentially. that's Very Bad User Experience. Feb 02 23:31:51 agreed Feb 02 23:54:58 hey saurik, how do you gather the data for cyrket? Feb 02 23:55:54 ctate: btw, excluding bugs or service security issues, are there any reasons a service might fail to start via the bindService call? Feb 03 00:01:45 BlindOracle: I've never had it happen...docs don't give any reasons why it would happen Feb 03 02:33:04 You believe in miracles. Feb 03 02:33:07 Since I came along. Feb 03 02:33:18 I'm a sexy thing, I'm a sexy thing. Feb 03 02:33:39 Was it something I said? Feb 03 02:34:53 Baby come back! Feb 03 02:35:03 You can blame it all on you. Feb 03 02:35:08 You were wrong. Feb 03 02:35:12 And you just can't live without me. **** ENDING LOGGING AT Tue Feb 03 02:59:57 2009