**** BEGIN LOGGING AT Tue Mar 13 02:59:58 2012 Mar 13 03:02:21 anyone know of any decent google remote library? Mar 13 03:02:37 something that has like... searchForDevices(), connect(), sendData(), etc Mar 13 03:09:13 canadiancow|work: like http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html ? Mar 13 03:11:24 for the new ActionBarSherlock, to use custom drawables for action item backgrounds, I want to use the attr actionBarItemBackground correct? Mar 13 03:11:44 mmhmm Mar 13 03:12:23 wabz, that's not google tv, and something that requires ICS is no good Mar 13 03:12:40 google tv has its own pairing/usage protocol Mar 13 03:12:46 oh shit Mar 13 03:12:47 sorry Mar 13 03:12:49 i didnt sya "google tv" Mar 13 03:12:50 lol Mar 13 03:12:51 had no idea you were asking about google tv sorry :p Mar 13 03:12:51 the background drawables are showing up with the icon and title in my ABS, is there any way to get rid of that? Mar 13 03:15:24 hm... is the ActionBar title & icon both considered to be action items?? Mar 13 03:15:39 Didn't think the item was Mar 13 03:15:41 er Mar 13 03:15:42 title was Mar 13 03:16:35 t0mless, my custom bg drawable I set for the action items is showing up for the title & icon area as well.... Mar 13 03:16:48 let me take a gander at the code Mar 13 03:16:53 faint545 what version of android? Mar 13 03:16:59 2.3.3 Mar 13 03:17:08 does it do it on ICS as well? Mar 13 03:17:34 t0mless, yeah Mar 13 03:17:45 strangely enough... Mar 13 03:17:51 then that is a framework bug :-/ Mar 13 03:17:53 more than likely Mar 13 03:18:31 t0mless, hm.. i could of sworn the ABS Demo app has custom selectors/drawables for action items... Mar 13 03:20:39 well this sucks... Mar 13 03:21:24 i'll look in to it... riiiiiight after this game of dominion Mar 13 03:35:28 how do some apps respond to events from other apps (not system events). for example a wget app i saw on the market fires automatically whenever a file download starts from within the default web browser Mar 13 03:36:39 subscribe to the right broadcast intents Mar 13 03:39:32 ok thanks ron_frow_ had a feeling it would be a broadcast receiver Mar 13 03:41:48 hi Mar 13 03:43:14 hi krapsky Mar 13 03:57:46 has anyone tried using custom drawables for the background of action items in ActionBarSherlock 4.0? Mar 13 04:02:42 faint545 I think if it comes down to it you can set the background for the individual action items yourself Mar 13 04:02:47 instead of trying to use the one attribute Mar 13 04:05:11 t0mless, how would that be done? Mar 13 04:05:28 I think you can do it from xml, or by your onCreateOptions menu Mar 13 04:22:20 is it possible to record and play audio at the same time? Mar 13 04:22:29 http://www.technologyreview.com/blog/arxiv/27620/ Mar 13 04:29:25 oh my god, thats great Mar 13 04:33:20 hahaha Mar 13 04:37:44 t0mless, i just decided to get the ActionBarView and then get the children (title & home icon) view groups and set their background resource to transparent color Mar 13 04:38:05 that works Mar 13 04:55:37 is there any way to get id of the native actionbar? Mar 13 04:55:50 don't think it has one Mar 13 04:57:00 t0mless, well, i mean the actionbarview Mar 13 04:57:16 again, don't think it has an id Mar 13 04:57:35 but check in the code Mar 13 04:57:37 in hierarchyviewer it has id/action_bar but i cant access it. Mar 13 05:01:26 might be able to with getWindow().getDecorView() Mar 13 05:07:00 hi guys, I'm trying to swap the position of two buttons. e.g. to swap Button1 with Button2. Can anyone point me in the right direction? Mar 13 05:09:30 ooh layout might be it Mar 13 05:12:28 JakeWharton so now is the latest ABS in the dev branch? Mar 13 05:16:50 http://cl.ly/3G3Q3U3v2w1y0k2R0t0H Mar 13 05:20:39 congrats? Mar 13 05:21:10 no Mar 13 05:21:17 I want to root this device Mar 13 05:21:28 try #android-root Mar 13 05:21:32 instead of just posting a pic Mar 13 05:21:43 try saying what you want to do Mar 13 05:22:05 ok Mar 13 05:22:07 thanks Mar 13 05:22:16 ( wabz ): that was on NPR's wait wait don't tell me this past week :P Mar 13 05:53:06 holy mother of god just did http://developer.android.com/resources/tutorials/hello-world.html does the emulator always take this long to boot? Mar 13 05:53:33 i could get the apk onto my phone faster than this lol Mar 13 05:56:55 use snapshots Mar 13 05:56:59 and it will load faster Mar 13 05:57:07 but if you have a device Mar 13 05:57:08 you should use it Mar 13 05:57:19 emulator is not that great Mar 13 05:57:58 is there a way to have eclipse run->run push it on to my phone and run it? Mar 13 05:58:04 Yea Mar 13 05:58:06 nice Mar 13 05:58:12 set your run configuration Mar 13 05:59:56 Does anyone have a tutorial on how to implement a CursorLoader with a SQLite database loader. I'm looking at this class here(http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider/7422343#7422343) and not really sure how to implement it. Mar 13 06:08:17 the emulator is very slow in tablet configuration, not so bad as a phone - and like all Android devices, the first boot is very slow because it does a bunch of pre-caching Mar 13 06:09:30 Any one have any suggestions fort he question about CursorLoader? Mar 13 06:13:56 How can I change 'android:layout_alignParentRight' programmatically? currently set in XML but i want to be able to change it Mar 13 06:15:50 use RelativeLayout.LayoutParams Mar 13 06:16:20 yeah ive been looking at the docs.. cant quite get it Mar 13 06:17:07 ah just found a stackoverflow link Mar 13 06:17:09 thanks Mar 13 06:17:14 should work it out Mar 13 06:25:57 im getting confused by some Java syntax. can someone tell me whats going on in this line of code, " EditText fld=(EditText)findViewById(R.id.field); " Mar 13 06:26:31 it's pulling the View object with ID field from whatever content was set and casting it to an EditText Mar 13 06:27:01 casting Mar 13 06:27:02 ok Mar 13 06:27:03 thanks Mar 13 06:27:16 pretty common Java thing Mar 13 06:55:30 anyone know what the objectivec channel is? Mar 13 06:58:25 #iphone-dev? Mar 13 06:58:37 No idea tbh Mar 13 08:02:58 What would be the best way to get a thin progress bar (like in >= 3.0) in devices <= 2.3.3? Mar 13 08:11:55 ActionBarSherlock backports that progress bar Mar 13 08:12:51 goood morning Mar 13 08:13:18 I guess it's technically morning here Mar 13 08:13:23 t0mless: Worth a look, thanks Mar 13 08:13:26 4A here Mar 13 08:14:14 only 1 here Mar 13 08:14:26 9.15 AM Mar 13 08:14:36 so good morning! Mar 13 08:14:59 how is your tea Mar 13 08:15:33 it's coffee Mar 13 08:15:37 nice :) Mar 13 08:38:00 hi guyZ! Mar 13 08:41:26 i have this class that extends ArrayAdapter.. Mar 13 08:41:28 Good Morning! Mar 13 08:42:04 I want to set style attributes to the array item.. Mar 13 08:42:24 so i override: public View getView(int position, View convertView, ViewGroup parent) Mar 13 08:42:45 and? Mar 13 08:42:46 and then i use the layout.xml for that class.. Mar 13 08:43:20 ok.. sounds like you did everything right then... is there something else? Mar 13 08:43:20 but when i get see my arraylist in the activity, they are not styles.. Mar 13 08:43:30 show the code Mar 13 08:43:41 oki.. pastebin in x sec.. Mar 13 08:47:08 ok, i have defined a drawable for a photo send button: http://pastesite.com/32750 Mar 13 08:47:16 and i do setEnabled(false) in code Mar 13 08:47:38 but it doesn't show the bitmap for state_anabled="false" Mar 13 08:49:32 tapas: i think that's because you logically excluded it with your first two states Mar 13 08:49:39 since they are opposites Mar 13 08:49:47 and one of the first two states must always be true Mar 13 08:49:56 readme: ah, that makes total sense. thanks Mar 13 08:49:58 looking into it Mar 13 08:49:59 ;) Mar 13 08:51:17 hola! :) Mar 13 08:51:33 readme: that was exactly it. Mar 13 08:52:39 zarac: hola! Mar 13 08:54:24 hmm, so do i have to requestLayout after setEnabled(true)? Mar 13 08:54:31 How does one get the application object from context? (Such as in this code http://pastebin.com/ipKF06Ym) Mar 13 08:54:56 paradoxxjm: does the application inherit Context? Mar 13 08:55:12 if so, just cast the return value of getApplicationContext().. Mar 13 08:55:24 i didn't look in the docs though.. just a random guess Mar 13 08:55:45 http://developer.android.com/reference/android/app/Application.html Mar 13 08:55:47 seems so Mar 13 08:55:48 tapas, I'm getting a nullPointer in that code, which is why I'm asking Mar 13 08:56:45 paradoxxjm: how does that code compile at all? Mar 13 08:56:49 area is not declared? Mar 13 08:56:58 yep Mar 13 08:57:14 area is declared in the constructor Mar 13 08:58:22 paradoxxjm: did you declare your AreaApplication in the manifest? Mar 13 08:58:27 yep Mar 13 08:58:42 tapas, I've used it in other parts of my application already Mar 13 09:03:18 tapas I resolved the problem. Seems I hadn't initiated areaData. Mar 13 09:05:01 paradoxxjm: ok Mar 13 09:12:02 any1 knows a thing or two about UriMatcher ? Mar 13 09:16:25 in eclipse: is there a tool to automatically take all hardcoded strings in the layouts and put them into string.xml? Mar 13 09:16:37 maintaining a colleagues code ;D Mar 13 09:16:54 hire a noob Mar 13 09:17:22 write the tool? Mar 13 09:18:22 :D Mar 13 09:18:33 yeah, i have a deadline approaching though (yesterday) :D Mar 13 09:18:37 will look into it lateron.. Mar 13 09:19:02 so many WTFs in that code :D Mar 13 09:19:11 variable names like button0, button1, etc :D Mar 13 09:20:20 lol Mar 13 09:20:47 any1 knows a thing or two about UriMatcher ??? Mar 13 09:21:11 it's returning -1 for me while i would swear that it should get it correctly Mar 13 09:25:23 Is anyone in here familiar with maps? I need to put a bunch of points onto a map and draw paths between them. I want to do this without freezing up the UI Mar 13 09:25:46 ok i back.. Mar 13 09:26:03 I haven't tried it yet, so if android automatically seperates map updates from the ui thread then I have nothing to worry about Mar 13 09:26:08 readme here is the code..and a link to a picture explaining it: Mar 13 09:26:33 http://pastebin.com/iaJ1ex7w Mar 13 09:26:53 i know it can be a mess, feel free to ask questions about it.. Mar 13 09:28:01 Hi all...i want to center the videoview in linearlayout...i tried by setting gravity as center but no use..could anyone throw some light on it..thanks Mar 13 09:29:38 the fuck, this urimatcher isn't working for shit Mar 13 09:30:50 chithra1 what are the width/height set to on the layout/view? Mar 13 09:31:00 and where did you set the gravity? on the layout or the view? Mar 13 09:33:12 :t0mless i created new linearlayout and set the layout params i.e width as 250, hjeight as 250 and gravity as center Mar 13 09:33:25 oh, you created from code? Mar 13 09:33:38 yes i created programatically Mar 13 09:33:39 java* Mar 13 09:33:47 yes Mar 13 09:34:00 interesting Mar 13 09:34:02 and i add the videoview to the linear layout Mar 13 09:34:11 what layout params you use on that? Mar 13 09:34:27 layout.setLayoutParams(new LayoutParams(250, 250)); Mar 13 09:34:28 layout.setOrientation(LinearLayout.VERTICAL); Mar 13 09:34:28 layout.setGravity(Gravity.CENTER); Mar 13 09:34:44 i used linear layout params Mar 13 09:34:45 on the viewview... Mar 13 09:35:28 Which layout params did you use on the video view? Mar 13 09:35:29 i set the linearlayoutparams to the view Mar 13 09:36:37 by setting linearlayout params on the videoview, the height and width working fine but the view is not placed centre in the linear layout Mar 13 09:37:02 what linear layout params did you use? Mar 13 09:38:21 height, width and grravity **** BEGIN LOGGING AT Tue Mar 13 09:48:19 2012 Mar 13 09:49:20 and have you read http://developer.android.com/guide/topics/ui/themes.html ? Mar 13 09:50:43 I wouldn't mind seeing where you are supposedly defining these styles Mar 13 09:51:18 but its approaching 3am and i'm going to crash soon Mar 13 09:55:01 bestKoderEver here's the short of it, if you're trying to use ?whiteBackground to reference a style defined in styles.xml or any other xml files in a