**** BEGIN LOGGING AT Mon Jun 11 02:59:59 2012 Jun 11 03:40:58 Hey T-Dub|DlolPics You back bro? :) Jun 11 03:41:05 Yeah Jun 11 03:41:06 What's up Jun 11 03:41:21 Alright, heres the thing. You know how you told me to call from R. whatever Jun 11 03:41:31 The thing is, i create the text in the activity method Jun 11 03:41:39 So it cannot find it. Jun 11 03:41:51 Oh Jun 11 03:41:53 Well set a id Jun 11 03:42:00 or keep a reference Jun 11 03:42:08 textView.setId("blah"); Jun 11 03:42:08 will onCancel() not be called on a DialogFragment() when you press back? Jun 11 03:42:15 Alright Jun 11 03:42:18 and then instead of doing R.id.blah just do "blah" Jun 11 03:42:34 except it it has to be a int Jun 11 03:42:36 not a string Jun 11 03:42:36 ty. Sorry im just so new to android haha Jun 11 03:42:37 so my bad Jun 11 03:42:38 ive been trying to get my progress dialog's onCancelListener to be called for 3 hours Jun 11 03:42:39 ill learn, eventually. Jun 11 03:42:40 It's cool Jun 11 03:43:48 http://pastebin.com/5N3jwbB2 Jun 11 03:43:59 And one more question, what did you mean by 'context/ Jun 11 03:50:20 olimol: This might be technical and short but probably better than nothing: http://www.stackoverflow.com/questions/3572463 Jun 11 03:50:39 ty :) Jun 11 03:52:01 olimol: When you're dealing with activities, they keyword 'this' contains a context of the current activity that you can pass around. Jun 11 03:52:15 Is anyone aware of any keylogger apps which don't require root? My intuition is that they should not exist, but I have heard people mention them, and I'm guesing that the behavior they exploit is probably from some stupid OEM not giving proper file permissions or something... Jun 11 03:52:25 Ah ok. Jun 11 03:53:40 hello Jun 11 03:53:58 is it possible to remove an icon size limit from a launcher? Jun 11 03:54:12 or to run a tablet launcher on a phone? Jun 11 03:54:21 ZNaught: really, I didn't mean to invite you in here Jun 11 03:54:35 oh :( Jun 11 04:01:08 Ugh, this is frustrating haha. Jun 11 04:01:38 <[flux]> I love android Jun 11 04:01:47 <[flux]> Really Jun 11 04:01:55 me too Jun 11 04:02:01 I love ice cream sandwiches Jun 11 04:02:09 They taste so good Jun 11 04:02:11 yemm Jun 11 04:02:16 Im gonna have to get used to this lol Jun 11 04:02:19 yumm i mean Jun 11 04:02:37 <[flux]> olimol: No why? Jun 11 04:02:44 I tried to eat my phone with an ics, tasted like… plastic Jun 11 04:02:50 What do you mean, no why Jun 11 04:02:51 lol Jun 11 04:02:52 <[flux]> ^^^^^ Jun 11 04:02:59 <[flux]> Plastic is awesome. Jun 11 04:03:00 olimol: If you're going to stick with Android-development, definitely Jun 11 04:03:05 <[flux]> It breaks so easily Jun 11 04:03:05 Yeah :) Jun 11 04:03:07 I will though. Jun 11 04:03:14 Its fun, but.. frustrating at the same time Jun 11 04:03:14 <[flux]> And fun to bend. Jun 11 04:03:14 lol Jun 11 04:03:23 I like the little robot guy Jun 11 04:03:29 <[flux]> olimol: Or Jun 11 04:03:31 <[flux]> Or Jun 11 04:03:46 <[flux]> You can switch to iOS development Jun 11 04:04:11 [flux]: not helpful Jun 11 04:04:26 Nah, ill need a mac for that Jun 11 04:04:26 lol Jun 11 04:04:37 olimol: I don't know how far you've got in Android development, but stick to basics at first, come up with a few, small and simple ideas to test and use StackOverflow as if it was Google Jun 11 04:05:01 I started today, but i understand the basics. Just the gui parts bother me. Jun 11 04:05:20 olimol: Those are probably bother you more than other things, period. :p Jun 11 04:05:31 going to bother you... Jun 11 04:05:35 <[flux]> Can I use visual basic to develop in android? Jun 11 04:06:08 Wasn't there a C# translated kinda thing for Android development...? Jun 11 04:06:36 <[flux]> Hey, I asked the question :D Jun 11 04:06:49 drlaban: yeah, monodroid Jun 11 04:07:16 Leeds: Ah, yes. Thank you. Jun 11 04:15:41 http://www.basic4ppc.com/index.html :/ the guy asking about it left after i link this, but i dont know why one would use it Jun 11 04:23:51 mmm, Now my text isnt appearing on the screen Jun 11 04:24:19 http://pastebin.com/kPa3J0rb Jun 11 04:24:23 It should say "5" Jun 11 04:27:59 olimol: unless I'm missing something *really* obvious... you are :) Jun 11 04:28:22 you make a glsurfaceview and set it as the contentview... Jun 11 04:28:29 you make a linearlayout and set its options... Jun 11 04:28:30 Oh, so i cannot add to that? Jun 11 04:28:43 you make a textview and add it to your linearlayout... and set the content of the textview Jun 11 04:28:52 but you never actually *display* the linearlayout anywhere Jun 11 04:30:11 ty Jun 11 04:30:13 :) Jun 11 05:07:36 anyone from australia here? Jun 11 05:09:16 olie, yar Jun 11 05:29:25 Has anyone used findViewById(); before? Jun 11 05:29:31 I cant seem to access it from my other class :/ Jun 11 05:34:24 everybody uses findViewById() Jun 11 05:34:48 what do you mean you cant access it from your other class? Jun 11 05:34:59 Like, i write activity.findViewById(15) Jun 11 05:35:30 and it says Jun 11 05:35:38 Cannot make a static reference to the non-static method findViewById(int) from the type Activity Jun 11 05:36:04 2 problems, its not activity.findViewByID(), its(View).findViewById() Jun 11 05:36:33 and the paramter should generally be R.id.(you components id) Jun 11 05:36:46 Ah Alright. Jun 11 05:36:51 What if its not in the main.xml? Jun 11 05:36:57 What if its declared in the main file Jun 11 05:36:58 activity Jun 11 05:37:17 you mean you add the view programatically? Jun 11 05:37:34 Because i added text. Jun 11 05:37:54 and label.setId(15); Jun 11 05:37:56 when you add the view there should be amethod (View).setId(id) Jun 11 05:38:11 why aren't you using an XML layout, anyway - it's much simpler Jun 11 05:38:35 Because when i made labels they wouldnt come up Jun 11 05:38:39 =x Jun 11 05:38:44 Im so new to this.. sorry Jun 11 05:38:57 the int isnt for integers in this case, it should be a hex i think, but im not sure coz i havent used it for this, generally the int corresponds to a R.java integer Jun 11 05:38:59 would make it more obvious when you do silly thinks like declare a view but never add it to your layout... Jun 11 05:40:52 look at this to add the id progamatically http://stackoverflow.com/questions/3216294/android-programatically-add-id-to-r-id Jun 11 05:42:42 hey, guys. i need to have a set of object available to my application at any point of execution. essentially, i need a service that stays up while my application's running, but doesn't need to persist while suspended or the like. suggestions? Jun 11 05:43:53 josheee12: what exactly does the service do? Jun 11 05:44:10 just provide object instances Jun 11 05:45:04 i dont really get what you mean by that Jun 11 05:46:03 like, i have a data manager whose instance i need available regardless of the current activity (my app has 3 or 4). Jun 11 05:49:46 i can only think of sharedPreferences Jun 11 05:52:56 alright, thanks. i'll try it. Jun 11 05:55:04 I'm adding a textview to a layout programmatically. Is it possible to set style attribute to the textview through code? Or how do you people handle such a situation? Jun 11 05:56:23 napsteR: The omnipotent StackOverflow suggests using themes. I've never dont it myself, though. Jun 11 05:56:44 s/dont/done/ Jun 11 05:57:09 drlaban: Yeah I have gone through the same question Jun 11 05:57:12 napster: setTypeface() Jun 11 05:57:25 I would like to know if attributeSet can be used Jun 11 05:57:38 f2prateek_: let me try that :) Jun 11 05:59:50 also the construcotr for textview has a third attribute defStyle, nothing in the docs about that it is but i would assume its for a resource style Jun 11 06:00:08 http://developer.android.com/reference/android/widget/TextView.html#TextView(android.content.Context, android.util.AttributeSet, int) Jun 11 06:00:13 f2prateek_: ok Jun 11 06:06:05 f2prateek_: Thanks mate. It just does work :) Jun 11 06:06:49 cool which one? the constructor or typeface? Jun 11 06:07:28 f2prateek_: typeface Jun 11 06:07:39 nice, good to know Jun 11 06:09:35 f2prateek, thanks for the xml thing earlier Jun 11 06:09:38 Worked that out. Jun 11 06:09:53 Btw, i try to replace the labels text but it doesnt work. Jun 11 06:09:58 views.setTextViewText(R.id.label, "test"); Jun 11 06:10:33 olimol: Could you pastebin your code again? Jun 11 06:11:00 Sure thing Jun 11 06:11:00 :) Jun 11 06:11:10 just to 9TextView)View myText = (TextView) findVIewById(R.id.label) Jun 11 06:11:24 Activity File : http://pastebin.com/tZ4rLRe0 Jun 11 06:11:25 myText.setText("test") Jun 11 06:11:38 Game Layer: http://pastebin.com/ah90H5hg Jun 11 06:11:43 Lemme try that Jun 11 06:12:49 sorry for your code it should be Jun 11 06:12:51 TextView myText = (TextView) findVIewById(R.id.label) Jun 11 06:12:57 oh crap not that Jun 11 06:13:00 Yeah, looks like you're not fetching the view to set the text to. Jun 11 06:13:07 TextView myText = (TextView) views.findViewById(R.id.label) Jun 11 06:13:08 Oh.. Jun 11 06:13:13 myText.setText("test") Jun 11 06:13:24 yeah those two lines should work Jun 11 06:13:36 Alright, lemme try :) Thanks for your help Jun 11 06:13:46 you're welcome :) Jun 11 06:14:34 The method findViewById(int) is undefined for the type RemoteViews Jun 11 06:14:38 When i pasted that line in. Jun 11 06:14:40 O_O Jun 11 06:15:43 hmm... Jun 11 06:16:42 sorry i didnt see it was remote view Jun 11 06:16:51 your original code should have worked for that though Jun 11 06:17:22 olimol: I was just now looking at a service i built using remoteviews, and i see that the original code snippet you pasted here should've worked. Jun 11 06:17:36 Yeah, what f2prateek_ said. :) Jun 11 06:17:54 lol what did my original say? Jun 11 06:18:06 olimol: views.setTextViewText(R.id.label, "test"); Jun 11 06:18:07 Im sorta trying different things because something didnt work earlier. Jun 11 06:18:25 wierd. Jun 11 06:18:31 lemme try it again.. Jun 11 06:19:04 Yeah.. the label doesnt change. Jun 11 06:19:11 Am i using the function incorrectly? Jun 11 06:19:51 Hi, Jun 11 06:20:07 i think so, i havent worked with remote views ever though so i'm just relying on the documentation Jun 11 06:20:14 how to show all processes and threads? Jun 11 06:20:22 ps just shows processes Jun 11 06:20:27 adb shell ps Jun 11 06:20:45 Hm, I do see a difference between my Service class and your GameLayer, and that is the fact that I return a RemoteViews object when I'm done processing the TextViews. Jun 11 06:21:23 jimmy_lo_chien_f: if its for debugging theres a built in debugger in eclipse Jun 11 06:21:44 f2prateek_, you mean ddms? Jun 11 06:22:30 jimmy_lo_chien_f: no they are both two different perspectives Jun 11 06:22:33 http://developer.android.com/guide/developing/debugging/debugging-projects.html Jun 11 06:23:00 the debug perspective shows threads Jun 11 06:23:45 f2prateek_, OK, I'll try. Jun 11 06:23:50 f2prateek_, thank you. Jun 11 06:24:06 jimmy_lo_chien_f: no problem Jun 11 06:25:43 olimol: i'm looking at a remoteviews example and yeah you have to return it somehow (like drlaban said) Jun 11 06:25:48 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/appwidget/ExampleAppWidgetProvider.html Jun 11 06:26:06 in the example its passed aparameter in the last line Jun 11 06:26:21 *as a parameter Jun 11 06:27:13 hmm Jun 11 06:28:42 maybe have a handler in the main actiivty of the view to update the view Jun 11 06:28:55 Alright.. Jun 11 06:29:32 Never used a handler before haha Jun 11 06:30:28 its not that hard if you have somebodys working source for it Jun 11 06:30:44 vogella probably has a explainer for it Jun 11 06:30:55 kk Jun 11 06:31:04 found it Jun 11 06:31:04 :) Jun 11 06:51:24 Hi, Jun 11 06:52:51 I see a call stack of a thread with only dalvik.system.NativeStart Jun 11 06:53:32 howw trivial is it to add a button that prints out the current location, or copies it into a field so that it can be posted to facebook Jun 11 06:53:38 and I go to check the NativeStart.java Jun 11 06:54:30 It says that NativeStart.java is a dummy class used for JNI Jun 11 06:55:21 Any one knows something about this? Jun 11 06:56:33 It is mysterious. Jun 11 06:57:08 jimmy_lo_chien_f: it's for NativeActivity applications, iirc Jun 11 06:58:35 p_l, iirc?, what is this. Jun 11 06:58:53 I am studying android browser activity Jun 11 06:59:09 and android/webkit Jun 11 07:08:30 hehe Jun 11 07:08:32 a pea Jun 11 07:13:53 jimmy_lo_chien_f: IIRC = If I Recall Correctly Jun 11 07:14:16 p_l, oh. Jun 11 07:14:25 * p_l fondly remembers "introductory" books about internet that would explain netiquette and lingo Jun 11 07:14:29 p_l: you aren't |backup :O Jun 11 07:14:37 s/remembers/recalls/ Jun 11 07:14:44 g00s: backup kicked the bucket Jun 11 07:14:45 seriously Jun 11 07:15:46 fortunately by then, the current host finished migration from FreeBSD to Linux Jun 11 07:16:00 :) Jun 11 07:16:04 ... except it runs filesystem drivers I didn't dare to use, and that's saying something Jun 11 07:16:13 reiserfs? Jun 11 07:16:43 i used to use that :P Jun 11 07:17:33 Leeds: ZFS on Linux Jun 11 07:17:41 and I'm talking kernel mode ZFS Jun 11 07:18:05 ugh Jun 11 07:18:14 last time I looked at their bugzilla, they had long list of "critical" bugs.. Jun 11 07:18:23 in the meantime... http://www.hko.gov.hk/wxinfo/radars/radar_range1.htm?pv_mode=playback Jun 11 07:18:33 OTOH, well, LANL did use it.. Jun 11 07:18:36 I'm just to the south of the center of that picture... lots of adviews for me today! :) Jun 11 07:20:30 how's ZoL treating you? Jun 11 07:20:36 i still run Solaris on my main file server for ZFS Jun 11 07:20:43 the linux stuff wasn't stable enough at the time Jun 11 07:21:50 JakeWharton: well... I don't know if the owner of the server did the same RAID-Z tests as when it was set up on FreeBSD Jun 11 07:22:13 (aka "disconnect SATA cable during operation") Jun 11 07:22:33 yeah i have hot-swap bays, that's the first thing i tried when I first got it haha Jun 11 07:24:02 i still get the daily digest of the main zfsonlinux mailing list Jun 11 07:24:23 not too much horrific going on any more, i imagine it's pretty stable Jun 11 07:25:21 off to read Jun 11 07:26:47 JakeWharton: reading anything good ? Jun 11 07:28:41 JakeWharton: I'm wondering if it's not more of a "little changed recently and userbase is so small no one hit a catastrophic bug yet" Jun 11 07:31:12 p_l: i think his hard drive just crashed Jun 11 07:35:18 ah, i forgot tomorrow is wwdc Jun 11 07:35:28 what's today then Jun 11 07:35:34 oh yeah :) Jun 11 07:36:02 http://www.theverge.com/2012/6/10/3077212/andy-rubin-google-cloudcar-900000-android-activations Jun 11 07:39:27 it was mentioned a while back, rubin's success criteria for android was activations per day. Jun 11 07:39:56 activations per day = subjects to mine data from Jun 11 07:43:01 "iOS 6, expected to be announced during tomorrow's WWDC keynote, will not support the original iPad or third-generation iPod touch. " … i'm surprised they are already dropping the first gen ipad Jun 11 07:43:08 (rumor) Jun 11 07:44:15 g00s: ah, so tomorrow I should expect zombie mac people? ;) Jun 11 07:44:29 the interwebs will be crazy Jun 11 07:44:57 i usually sit it out for a few days and wait for some good website like theverge to summarize :) Jun 11 07:45:09 i usually ignore it Jun 11 07:45:12 yeah. "Hey, lis'n! We added a new framework to our OSX Embedded! Now act like you snorted coke!" Jun 11 07:45:17 when using new Intent("com.android.camera.action.CROP") , is it possible to stop the resizing and only have the crop box being dragged ? Jun 11 07:46:46 Blou_Aap copy from stackoverflow "action is not part of the Android SDK. There is no guarantee that it will work on any device." Jun 11 07:47:05 so the box is the size that i want. Im setting the ratio correctly and that works and prevents the handles dragging an arb ratio. Jun 11 07:47:30 ye but its gnu be on a android device that guarantees to have that. its not going on any other device Jun 11 07:47:40 going to* Jun 11 07:48:42 1. load image via BitmapFactory. Jun 11 07:49:10 2. create cropped bitmap Bitmap.createBitmap(specify your witdth etc etc) Jun 11 07:49:20 3. write with Bitmap.compress Jun 11 07:49:33 no they want control. its for a profile picture so they can drag a crop box over a face Jun 11 07:51:06 using bitmapfactory is easy. but the client and my manager (who pretends to know everything about android, but can't don't even have a clue) wants me to have a box dragged on the image to set a crop size to our set constraints Jun 11 07:53:54 good morning Jun 11 07:55:05 moorning ech0s7 Jun 11 07:55:19 good morning ech0s7 Jun 11 07:55:57 i have seen that it's possible to start Service with startForeground in order to lengthen its life, it's possible to do the same with "remote Service" ? Jun 11 07:56:23 bindable service Jun 11 07:58:28 What's the easiest way to make a game loop? I already have a page that draws some of the background and makes the character, so I don't want to rewrite all that. Jun 11 08:00:49 Onions: a page? while(true) { updatePhysics(); drawGraphics(); sleepToMatchFPS(); if(gameOver) { break; } } Jun 11 08:01:15 class* Jun 11 08:01:22 hmm Jun 11 08:01:38 How do I do sleepToMatchFPS() ? Jun 11 08:01:42 ah, missed a "readUserInput();" there... Jun 11 08:02:49 hello, anyone using a Sony Xperia here? in particular Sola Jun 11 08:02:52 Onions: if you want each frame to take a second, you perform all steps before sleepToMatchFPS and then see how long time it took. Then you do Thread.sleep(60000 - timeItTook); Jun 11 08:03:01 ahh Jun 11 08:03:09 oh, sorry 1000 - timeItTook maybe :) Jun 11 08:03:12 Do I need to extend / implement something special for that? Jun 11 08:03:48 right, I managed to piss off Android Jun 11 08:04:01 not hard, Ikarus Jun 11 08:04:02 lol Jun 11 08:04:07 immutable object style code does not agree with the way Garbage Collection is done on Android Jun 11 08:04:35 Onions: nope. I would recommend to look at some sample code. There is a game called LunarLander on developer.android.com which does all this I think. Jun 11 08:04:44 k will do Jun 11 08:04:44 esp not if you do it for 7 000 000 objects per second Jun 11 08:04:51 I have a question: I have a seekbar. At the start of the activity the slider must be in the middle of the seekbar. When it is used, however, the progress must be given a color. I can't get this to work. With a statelist there isn't an option like "is_used" or something like that. I tried working around the problem by changing the drawable at the first moment of touch but unfortunatly that resizes the whole slider which looks ver Jun 11 08:08:08 Onions: here is a great vid to check out (it's one hour, so check it when you have time :) - http://www.youtube.com/watch?v=U4Bk5rmIpic - Google I/O 2009 - Writing Real-Time Games for Android Jun 11 08:08:42 tyvm tors Jun 11 08:14:24 Can someone shed some light to this exception : gist.github.com/2909001 Jun 11 08:14:36 https://gist.github.com/2909001 Jun 11 08:23:41 hmm, http://news.ycombinator.com/item?id=4092532 Jun 11 08:52:49 Im soo confused Jun 11 08:53:26 uaehamed: get out of confusion :) Jun 11 08:53:44 lol ive been trying for few days Jun 11 08:56:19 I have an online mysql database. I understand that to connect to it from an android app, I need to use a REST web service. From what I understood until now is that I have to use a REST webservice + JSON and Jquery to handle everything. But the thing that I dont understand is do I need any coding to be done on my mysql web host domain? this REST web service needs to be coded within my android app? Jun 11 08:57:29 uaehamed: You sounds weird. I would be using "Parse" if I were you for such tasks :) Jun 11 08:58:09 hi, recommendations for chart engines? I saw chartdroid and achartengine Jun 11 09:24:12 anybody got example code that can fetch phone numbers and names from phone contacts? Jun 11 09:24:19 i've only managed to get names working so far Jun 11 09:28:16 uaehamed: You only need a webservice of you want to store/retrieve information to/from elsewhere (not on the phone). The REST webservice can be in many languages but probably the easiest way is to do it in PHP. You create all access with you external database within your PHP script and output the data as JSON or XML. Then in the Android app you use that information to do whatever you want with it. You only need a HTTP request fr Jun 11 09:42:36 so I just found out that my app gets in a deadlock sometimes when my database-transactions gets nested. Does anyone have any idea on exactly how this deadlock occurs? Jun 11 09:47:37 Well... Not sure how to describe it, but... I have a StackOverflow exception, and cant get it: is there a limit for nested linear layouts or so? Jun 11 09:48:07 (I have a lot of them) Jun 11 09:48:20 xa0c: i don't think stackoverflow would come from that. you may have too deep call stack Jun 11 09:48:31 if you have a lot of nested linearlayouts, you're probably doing something wrong Jun 11 09:48:49 and quite possibly would be better off with a relativelayout or two Jun 11 09:49:00 Not my case :) Jun 11 09:49:59 your case is special? Jun 11 09:50:07 g00s: I think, the reason is in layouts nesting. callstack shows me a lot of onDrawXXX() method calls Jun 11 09:50:14 yep. :) Jun 11 09:50:25 as always Jun 11 09:50:38 doubt it Jun 11 09:50:46 <[deXter]> So what do you peeps think about the sidepanel design navigation (as in the FB app)? Jun 11 09:51:22 xa0c: ah, interesting. well, try GridLayout :) Jun 11 09:51:39 Leeds: imagine quote. well, quote like all of you do at forums. imagine quote of quote. and quote of quote of quote. I want to draw it. Jun 11 09:51:49 [deXter]: i'm reading about it here http://news.ycombinator.com/item?id=4092532 Jun 11 09:52:39 So, my algorithm perfectly works for two levels of nesting, on third is chashes with 'overflow' Jun 11 09:53:00 xa0c: well, what if you have 10 levels ? Jun 11 09:53:04 or 15 ? Jun 11 09:53:09 see above :) Jun 11 09:53:22 I cant do it for 3 already :) Jun 11 09:54:14 [deXter]: interesting that Zigurd didn't like it Jun 11 09:54:16 if there is a limit for nested layouts, than I need to limit quoting-requoting. But I dont want to limit users. Jun 11 09:54:29 <[deXter]> g00s, I don't either. :P Jun 11 09:54:43 i'm not sure i do either Jun 11 09:54:58 <[deXter]> At least, not in it's present form.. Jun 11 09:55:29 but , problem is = seems like the apps with the nifties UI (foursquare, fb?) require accounts somewhere - which i am not interesting in doing just to see their app Jun 11 09:56:09 hm is it easy/possible to load up facebook comment box into an application Jun 11 09:58:43 [deXter]: seems lame Jun 11 09:58:58 <[deXter]> My thoughts exactly.. Jun 11 09:59:26 at least , there would have to be some standard impl of this - not every app doing something (slightly) different Jun 11 10:02:21 well... according to callstack there a next sequence of calls: parend.draw > child.draw > childOfChild.draw ...and so on until stackOverflow. Looks like there is a limit. Wasted another few hours on unusefull recursion draw. So sad. Jun 11 10:03:37 xa0c: not having deeply nested layouts has been advice given for a long time :) Jun 11 10:05:08 well. I know it. But what is an option for displaying "quoteOfQuote"? Jun 11 10:05:48 I wouldn't be displaying quotes as layout at all, just as content Jun 11 10:07:14 They are complicated: images, buttons, etc. I have a control that renders the message, so, in case of quote I tried to use such control as 'inner'. Jun 11 10:11:52 I suspect you're going about things the wrong way Jun 11 10:13:36 why? I asked abouw: what options I have? one layout and all views of inner quotes placed on this root layout? unreal to place them. a tonn of code. Jun 11 10:13:52 Android's default stack size is 8KB. This gets you 60-100 stack Jun 11 10:13:52 frames Jun 11 10:13:56 found it Jun 11 10:14:11 seriously, I think you're confusing UI with content Jun 11 10:14:23 put it in a webview if it's too complex to do in code Jun 11 10:15:11 well. this 'content' is a part of UI. as I said: images, buttons, they are clickable Jun 11 10:16:09 webview can have clickable stuff... Jun 11 10:16:58 webview... I prefer to limit nesting instead of using it :) Jun 11 10:17:12 well, thanks anyway, will think how to fix it. Jun 11 10:17:15 your choice Jun 11 10:17:23 do it your way, or do it the right way :) Jun 11 10:17:51 my way is the right way. always. :) Jun 11 10:19:30 possible to pull a development apk from a phone? Jun 11 10:19:56 i.e. i'vei nstalled an app on a phone, promptly lost the .apk i installed it from, would like to re-install it on a diffeerent phone Jun 11 10:21:40 [deXter]: i noticed the amazon website has something kinda liked that too :P Jun 11 10:23:40 My button's state isn't remembered. When the fragment starts, the 'next'-button is disabled. When the user has used some seekbars, the button gets enabled. I then use that button to proceed to the next fragment. However, when I get back from the second fragment to the first (with the hardware back button) the state of the button is set to disabled again. I thought Android automatically saved view's states. Why doesn't it work on Jun 11 10:24:10 Android does remember the state (position) of the seekbar's sliders. Only not the state of the button. Strange? Jun 11 10:36:48 is there a short cut in eclipse to comment out everything you have selected? Jun 11 10:37:36 gaz`: ctrl + / Jun 11 10:37:43 thx Jun 11 10:37:51 nice! Jun 11 10:37:51 In the documentation of SQLiteDatabase it says that transactions can be nested, but transactions in sqlite does not support transactions and I myself have experienced problems with using nested transactions. Does SQLiteDatabase really use savepoints instead of transactions, or what is the deal? romainguy ? Jun 11 10:46:12 is it bad practice to include the generated build.xml files into source control? Jun 11 10:51:00 hello, anyone here knows how non-root Backup Apps manage to backup apks of installed apps ???? Jun 11 10:56:39 i have a listview and i want user to be able to click on a row OR a button in the row, seems if i try this onitemclicked stops working on the list view, isthere a decent way to get around this? i was thinking i could detect if they touched near left side for one thing and right side for another mnaybe or is that too weird? Jun 11 11:04:15 funktronic: I just include src/ res/ and the manifest :) Jun 11 11:05:04 gaz`: Do you have a custom adapter? Jun 11 11:05:32 napster: ah Jun 11 11:05:48 i want to throw in a "build" command that would build everything, run the tests etc.. Jun 11 11:05:54 w/o needing any dependencies Jun 11 11:06:21 ok Jun 11 11:07:43 gaz`: If you have a custom adapter, you can specify an onClick listener to the child widget of a list item inside the getView() of the adapter. Thats what I do. Jun 11 11:08:39 yes napster Jun 11 11:08:58 hmm when i did that the onListItemClicked stopped working Jun 11 11:09:13 i was using an imagebutton in a row Jun 11 11:09:16 gaz`: Try adjusting the focus as well Jun 11 11:09:16 with a clicklistener on it Jun 11 11:09:31 in what way Jun 11 11:09:59 gaz`: Both your list item and the child should be focusable Jun 11 11:10:07 right Jun 11 11:10:11 and i can use an imagebutton? Jun 11 11:10:45 gaz`: Anything you wish Jun 11 11:10:50 nice one Jun 11 11:10:52 check this out gaz` http://www.geekmind.net/2009/11/android-custom-list-item-with-nested.html Jun 11 11:10:53 i will try that thanks Jun 11 11:10:58 awesome Jun 11 11:19:57 hello, anyone here knows how non-root Backup Apps manage to backup apks of installed apps ???? Jun 11 11:20:15 didn't know they could.. Jun 11 11:33:54 Pinas: what backup apps would that be? Jun 11 12:10:58 how to change time zone in android programmatically ? Jun 11 12:12:34 i believe android would not let you change that, unless you are creating custom rom Jun 11 12:13:03 is there reason to do it yourself, instead of user switching it automatically? Jun 11 12:13:28 i mean not automatically, but by hand from settings Jun 11 12:13:48 yeah, I would be very pissed off if an android app changed my timezone without my consent :p Jun 11 12:14:18 yes I build custom rom for many devices, and I want to set by default time zone on the devices on GMT+1 Jun 11 12:15:11 #android-root Jun 11 12:17:55 i have automatic network provided date & time and I am happy with that. Is there reason to hardcode any timezone in ROM as default? Jun 11 12:20:55 When I change in my databaseHandler the version (private static final int DATABASE_VERSION = 3;) the it starts the onUpgrade or? Jun 11 12:27:52 @pihhan: this device doesn't have any gms/lte module Jun 11 12:27:58 *gsm Jun 11 12:43:38 Hey guys, anyone there atm? Jun 11 12:44:22 I'm not ATM. I'm a answering machine. Jun 11 12:44:49 answer terminal machine Jun 11 12:45:02 lol Jun 11 12:45:16 So troll, you guys alright with android? Jun 11 12:45:19 Im new and im having trouble Jun 11 12:45:20 :x Jun 11 12:45:45 i just dont understand why u ask 30 question, before u ask the problem Jun 11 12:46:12 lol sorry Jun 11 12:46:13 Ok. Jun 11 12:46:15 http://pastebin.com/UTmmYvJ7 Jun 11 12:46:16 Theres my code Jun 11 12:46:22 basically , the label does not update Jun 11 12:46:27 to how i want it to. Jun 11 12:46:35 See where it says lives Jun 11 12:46:54 Yeah, i set an Async task at bottom Jun 11 12:46:58 but it does not set text. Jun 11 12:48:06 nice infinite loop in asynctask :) Jun 11 12:48:37 first i think remove infinite loop, try dump to log values.toString and try set a constant string to label Jun 11 12:49:14 Uhm, im new.. one at a time please :D Jun 11 12:49:19 How do i remove the infinite loop? Jun 11 12:50:08 increase times variable Jun 11 12:50:23 oh sorry its not local one, didnt saw first Jun 11 12:50:39 :P Jun 11 12:51:14 It should like count down Jun 11 12:51:24 u ever exec the async? Jun 11 12:51:25 Like when someone passes the outside of the screen it will - 1 Jun 11 12:51:32 :o, how do i do that Jun 11 12:51:33 lol Jun 11 12:51:37 Sorry.. im clueless. Jun 11 12:54:47 so u tried with execute? Jun 11 12:54:58 Cant find how to execute. Jun 11 12:55:06 is it run() ? Jun 11 12:55:18 http://developer.android.com/reference/android/os/AsyncTask.html Jun 11 12:56:22 olimol: are you new to coding, or new to Android? Jun 11 12:56:54 new to android. Jun 11 12:57:16 Not 100% with java though. Jun 11 12:58:17 looks was a good idea dont read code :D Jun 11 13:04:57 / Jun 11 13:23:01 Good morning all, I've inherited a defect related to our use of skia in our custom widget rendering in Android... unfortunately I'm not very familiar with Android and not familiar at all with Skia so please excuse my naive questions Jun 11 13:23:26 We're drawing pixels directly into a native skia bitmap, which works as expected unless an Android system widget causes an invalidation Jun 11 13:23:32 i.e. pulling the notification bar down or changing the volume Jun 11 13:23:38 in which case our widgets are obliterated Jun 11 13:23:44 and fail to redraw until interacted with Jun 11 13:24:42 My theory was that skia is double buffered and we're drawing into the front buffer only, causing it to incorrectly swap Jun 11 13:24:52 but I've found no documentation that leads me to believe it's true Jun 11 13:26:15 I'm planning recording short (0.5 sec) audio clips continuously and compare them to eachother in order to detect intrusion (house breakins, voices, all kind of variations). How can I do this comparisson with the AudioRecord object? Jun 11 13:27:53 xemi, i fear this is not gonna be that easy Jun 11 13:28:59 EPG, so how would you suggest approaching this: comparing 2 sound clips to spot major audio differences between them? Jun 11 13:29:17 maybe a fast fourier analysis Jun 11 13:29:36 it doesn't have to be all that sofisticated. Just "feel" major noise differences or something Jun 11 13:29:59 ok Jun 11 13:30:30 then you'd just have to extract the volume level of each track and compare them with a treshold Jun 11 13:30:52 so basically I'm going to classify each sound clip on volume levels? Jun 11 13:31:11 and major volume level differences will mean motion detection Jun 11 13:31:25 that's the way id do it in a less sophisticated way Jun 11 13:32:32 EPG, so basically I'll just capture clips using AudioRecord to buffers and then I'ma have myself some methods of comparing the volume in the recorded buffers Jun 11 13:33:32 i remember a function called getMaxAmplitude() or something, this might help Jun 11 13:34:00 just don't compare like if (old_vol < new_vol) then it should be fine Jun 11 13:34:01 ok EPG, thanks for your help. I'm get right on to it. Jun 11 13:34:44 instead compare the difference: if (abs(old_vol - new_vol) > threshold) Jun 11 13:35:15 however if there's usually no noise, you could also fire on a loud input Jun 11 14:02:07 It appears that AudioRecord doesn't have a straightforward way of getting the amplitude so I gotta switch over to MediaRecord object. Jun 11 14:27:48 hello all Jun 11 14:28:10 Does someone know why I can "catch" the share menu item click? Jun 11 14:28:19 in onOptionsItemSelected ? Jun 11 14:29:41 JakeWharton: ping ? Jun 11 14:29:52 PONG Jun 11 14:30:01 vekexasia: why do you want to do that Jun 11 14:30:12 poong Jun 11 14:30:19 mikedg: i'm using google analytics in order to track user interactions Jun 11 14:30:37 The funny thing is that if the share actionbar item is inside the overflow menu, Jun 11 14:30:45 the onoptionsMenuSelected works Jun 11 14:30:57 if it's not in the overflow menu it does not! Jun 11 14:30:59 there's callbacks Jun 11 14:31:15 set them on the ShareActionProvider Jun 11 14:31:36 createShareIntent ? Jun 11 14:31:36 http://developer.android.com/reference/android/widget/ShareActionProvider.html#setOnShareTargetSelectedListener(android.widget.ShareActionProvider.OnShareTargetSelectedListener) Jun 11 14:31:39 maybe here? Jun 11 14:32:29 well Nice one Jake... Love that solution Jun 11 14:32:55 we do the same thing and found that nobody shares shit :( Jun 11 14:33:02 lol Jun 11 14:33:12 so it's pointless to set up a tracking code there? :P Jun 11 14:34:00 well, hopefully not for your app Jun 11 14:34:16 Hahaha. my app was crashing on 2.2 because of something in LinkedList. anyone wanna venture a guess what it was? Jun 11 14:35:01 nosuchmethod push Jun 11 14:35:02 lol Jun 11 14:35:07 reverse iterator? Jun 11 14:35:07 too good to be true Jun 11 14:35:07 oh Jun 11 14:35:22 reverserator~1 Jun 11 14:35:50 i was like, of all methods of a linkedlist, you'd think push would be pretty dang essential. you learn something new every day.... Jun 11 14:35:59 JakeWharton: maybe your code is broken Jun 11 14:36:08 id believe that over users not sharing Jun 11 14:36:19 i use square all the time and share credit card details to my evernote account everyday Jun 11 14:36:24 I think push is part of Queue/Dequeue which came with Gingerbread Jun 11 14:36:50 right Jun 11 14:37:14 mikedg: i'm talking about pay with square Jun 11 14:37:18 cuz linkedlist implements queue or something like that... Jun 11 14:37:44 and by nobody I meant a relatively small margin of the entire user base Jun 11 14:38:40 who wants to share that they bought a street dildo from some homeless man with Square to twitter Jun 11 14:38:43 thats why noone uses it Jun 11 14:39:02 we have metrics on that Jun 11 14:39:04 it's pretty high Jun 11 14:39:20 well you'd have to be high to buy a dildo from a homeless man Jun 11 14:39:30 JakeWharton: any idea on how to get the choosed sharing "Activity?" Jun 11 14:39:42 read it from the intent component/package Jun 11 14:40:03 package null Jun 11 14:40:16 JakeWharton up early Jun 11 14:40:19 lol sorry for that Jun 11 14:40:28 yeah i'm on my way to Moscone Jun 11 14:40:38 JakeWharton: Where are you from? Jun 11 14:40:46 san francisco Jun 11 14:41:01 nice :) Jun 11 14:41:09 omg traitor Jun 11 14:41:13 he's going to get iosed Jun 11 14:41:13 i hear Google I/O is today Jun 11 14:41:33 so I'm wearing an Apple shirt to troll them all Jun 11 14:41:45 i'll be the only one Jun 11 14:42:01 :) Jun 11 14:42:22 i'm going to wear my android hoodie to WWDC on the 27th Jun 11 14:42:48 steve jobs will rise up from the grave and lynch you Jun 11 14:44:07 wear your android on your boob http://www.googlestore.com/Wearables/Ladies+Android+T-Shirt+-+Silver.axd Jun 11 15:00:15 how do you get all the fragments in your activity Jun 11 15:00:35 loop Jun 11 15:01:02 loop over... Jun 11 15:09:35 with ActionBarSherlock, is it not possible to call ab.setBackgroundDrawable twice? Jun 11 15:09:49 oh boo no JakeWharton Jun 11 15:11:01 canadiancow|work, yeah how can you avoid needing a tag or an id? Jun 11 15:11:21 i dont care waht the fragments are...i need to loop through them all Jun 11 15:11:30 the stupid fragment manager has a list of all fragments Jun 11 15:12:02 but how can you find them without an id or a tag? Jun 11 15:12:19 you mean it internally has all the frags? Jun 11 15:13:49 yes Jun 11 15:13:55 it has a List mAdded Jun 11 15:14:00 i basically need that list Jun 11 15:14:14 ask politely Jun 11 15:14:17 and id rather not revert to doing http://stackoverflow.com/questions/6102007/is-there-a-way-to-get-references-for-all-currently-active-fragments-in-an-activi Jun 11 15:14:25 getSupportFragmentManger().pleaseOhPleaseCanIHaveAllTheFragments() Jun 11 15:15:02 ... Jun 11 15:15:08 apparently someone aliased i-cant-think-for-myself.com to redirect to stackoverflow.com Jun 11 15:15:08 why are you being so unhelpful :( Jun 11 15:15:52 because there's no way to do it Jun 11 15:16:14 ugh so git-svn is picking up a commit, but not getting the changes Jun 11 15:16:14 wtf Jun 11 15:16:52 canadiancow|work, looks like theres a fragmentmanagerstate class in fragmentmanager that writes that array to a parcel, but dont see how to grab hold of that... Jun 11 15:17:11 it's package scoped Jun 11 15:17:15 just put your own class in the package Jun 11 15:17:28 anyone know of an issue with maybe samsung phones and crashes when using camera via intent? Jun 11 15:17:49 still the wrong thing to do, but at least it's less hacky than whatever else will be suggested Jun 11 15:18:00 i recommend you find a more standard way to communicate Jun 11 15:18:18 if you need all the fragments, have them register as a listener for events Jun 11 15:18:35 or a broadcastreceiver type thing Jun 11 15:18:52 jesus Jun 11 15:18:58 i just read that stack overflow you linked Jun 11 15:19:01 or actually can you not register that in a fragment lol Jun 11 15:19:34 i dont want to force registration though....almost all our fragments need to be informed of certain events Jun 11 15:19:40 use an eventbus Jun 11 15:19:45 JakeWharton, whats so eggregious about it? Jun 11 15:21:20 Can anyone tell me which encoding is returned from speechRegoniser intent? Im sending reconised text to a socket but theres an intermitent problem with sometimes the first word is perfix with a random character. I had assumed it was utf-8... Jun 11 15:21:34 event bus does not work in one of these cases Jun 11 15:24:18 then have your fragments register with their parent activity Jun 11 15:25:29 which is essentially waht that SO article does Jun 11 15:26:45 fuck git-svn :9 Jun 11 15:26:50 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 Jun 11 15:26:57 yeah but it does it in an ass-backwards way Jun 11 15:27:10 and it never unregisters Jun 11 15:27:42 reboot like it's hot Jun 11 15:29:06 I've set write to external storage and audio rec permissions, in my manifest file. Jun 11 15:32:02 hello darkness my old friend Jun 11 15:32:17 you can call me wongk Jun 11 15:44:44 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 ; I've set Audio Rec + Write External Storage permissions. Jun 11 15:50:41 an app just froze my tablet, had to power off. I thought it was not possible for an app to freeze whole system, is that wrong? Jun 11 15:51:06 toradam: theory and practice, man, theory and practice Jun 11 15:51:25 we talkin' bout practice Jun 11 15:51:41 http://www.youtube.com/watch?v=eGDBR2L5kzI Jun 11 15:52:15 toradam: anyway, I strongly suspect that 2.3+ is easier to crash this way than before Jun 11 15:52:39 4.0.3 Jun 11 15:53:13 brb Jun 11 16:03:12 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 ; I've set Audio Rec + Write External Storage permissions. Jun 11 16:04:26 Can someone clear my confusion on the android activity lifecycle? I have an activity that tracks gps movements to calculate total distance walked, if I lock my phone or if I switch apps, I don't want it to stop tracking me. My activity creates an inner class which implements a locationlistener Jun 11 16:17:13 ninjai, i wouldnt do it from an activity then Jun 11 16:17:51 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 ; I've set Audio Rec + Write External Storage permissions. Jun 11 16:18:03 canadiancow|work, what other option(s) do I have? Jun 11 16:18:11 a service? Jun 11 16:18:12 service? Jun 11 16:18:33 ok, time to go learn about services, thanks Jun 11 16:18:34 basically if you want something to happen when you arent showing the UI, an activity is probably not your best bet Jun 11 16:18:54 thats what I was thinking, I've never done a service before in android so time to learn :D Jun 11 16:37:23 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 ; I've set Audio Rec + Write External Storage permissions. Jun 11 16:45:39 what do you guys think of this emerging pattern of "side navigation"? when i saw it show up in google plus i thought it was such bs. to have the up navigation button in the actionbar just pop up the side menu seemed like such an anti-pattern. like it just admits that navigation is too complicated, that all the stuff about how to use the actionbar in the design guidelines is a fail, etc, etc, am i wrong? Jun 11 16:50:34 JakeWharton: is there something wrong with calling ab.setBackgroundDrawable() twice? the second time i do it, it removes the background (or sets it to null)... Jun 11 16:50:38 at least from what i'm seeing Jun 11 16:50:55 nothing wrong with that Jun 11 16:51:34 bah Jun 11 16:53:50 I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling AudioRecord.start() I've been looking for some time but can't find the cause of this... here's a piece of my code: http://pastebin.com/rpZHBnj4 ; I've set Audio Rec + Write External Storage permissions. Jun 11 16:56:32 I can't believe im stuck at this for 4 hours. Jun 11 16:56:58 xemi, stack trace? Jun 11 16:57:13 Im trying to debug an Android app through Eclipse using a emulated virtual device... I know how to see the values of variables and set breakpoints... but I need to run java expressions on the variables when I'm at a breakpoint to see what they would evaluate to. How do I do that? Jun 11 16:57:42 xemi what is tb? Jun 11 16:57:46 in soundcomponent Jun 11 16:58:10 Cira that is easy Jun 11 16:58:16 jeppy: catching the exception, the stacktrace prints "start called at an invalid state" Jun 11 16:58:21 Cira, you want to use the expressions window Jun 11 16:58:27 luxurymode: it's a textview I'm using Jun 11 16:58:45 how can you be calling prepare and start on it in a while loop? Jun 11 16:58:50 why the hell would you do that Jun 11 16:59:00 you need to configure, prepare and start your mediarecorder once Jun 11 16:59:17 the next time you call start in the while loop, you will immediately get an illegalstateexception Jun 11 16:59:32 luxurymode: im sorry I meant tb is a ToggleButton Jun 11 16:59:38 so Jun 11 16:59:39 same thing Jun 11 16:59:46 if(tb.isChecked()) Jun 11 16:59:48 not while Jun 11 16:59:58 and dont be sleeping threads and all this craziness Jun 11 17:00:32 luxurymode: I'm trying to continuously record 250 ms sound clips while a togglebutton is checked Jun 11 17:00:49 you can record one clip with a single mediarecorder Jun 11 17:00:50 but I'll try getting it out of the loop to see if I get rid of the invalidstate Jun 11 17:01:00 you wanna record another? great. release it and create acquire a new one Jun 11 17:01:02 How would one normally implement tabs in honeycomb without using the actionbar? Jun 11 17:01:41 I'm working on a map-app, and if the user clicks on an item, a new view should open somehow (dialog/new activity/whatever), and in this new window, there should be tabs for "Images", "Videos", "Audio" Jun 11 17:01:52 how would one normally implement this in a tablet app? Jun 11 17:01:54 XeruX, see the top of this page: http://developer.android.com/reference/android/app/TabActivity.html Jun 11 17:02:02 nothing tablet specific xerux Jun 11 17:02:07 but theres no reason to do it Jun 11 17:02:24 if you want tab navigation then use the actionbar with the viewpageindicator lib from github Jun 11 17:02:37 with jake's actionbarsherlock or the native one if you dont need backwards compat Jun 11 17:02:54 luxurymode: but wouldn't the user be confused if the actionbar suddenly has tabs? (When it originally does not) Jun 11 17:03:12 I'm only aiming at > 3.0, so no sherlock Jun 11 17:03:24 no, if they are at some point in the ui that calls for tabs, then use tabs there Jun 11 17:03:28 makes perfect sense to me Jun 11 17:03:39 different parts of an app call for different patterns Jun 11 17:03:56 luxurymode: Thanks alot for you input I'm trying your solution right now hope it'll work Jun 11 17:04:19 are you confused in the google plus app when you go from photos to somewhere else and suddenly there are tabs? Jun 11 17:04:35 lost connection: did you say something ? Jun 11 17:04:49 no, if they are at some point in the ui that calls for tabs, then use tabs there Jun 11 17:04:55 makes perfect sense to me Jun 11 17:04:58 different parts of an app call for different patterns Jun 11 17:04:59 are you confused in the google plus app when you go from photos to somewhere else and suddenly there are tabs? Jun 11 17:05:02 THANK YOU Jun 11 17:05:13 luxurymode: hm, maybe it does make sense. Jun 11 17:05:31 ;) Jun 11 17:05:43 I'll have a go at it and see what happens Jun 11 17:17:30 Hey all, I am looking to add a button programmtically to the bottom of a linearLayout which contains a webview. Would the correct way of going about this be to find the height of the device then subtract the height of the button and set that equal to the height of the webview? Currently, If i set the webview to be match_content then it gets set to just the size of the html, which in the case of what I am currently working on is just a Jun 11 17:17:30 div with a background, so its just the size of a small div. If I set the height of the webview to fill_parent it overwrites the button, or at least I think thats what its doing. Any ideas? Jun 11 17:23:53 gowie, give it a weight and set its height to 0dp, the weight denotes how much of the free space (relative to other views with a weight) the view should occupy Jun 11 17:24:46 so for example if you had two buttons side-by-side, and set both of their widths to 0dp, but leftButton had weight 1 and rightButton had weight 2, leftButton would take approximately 1/3 of the width of the screen while rightButton would take 2/3 Jun 11 17:28:17 robb_www Thanks a ton man, I appreciate the help! Jun 11 17:34:41 robb_www Hey one quick question, why do you suggest to set the width to 0dp? Is this basically telling it to wrap the content? Jun 11 17:39:50 robb_www Never mind, I got it now. Thanks again! Jun 11 17:45:11 dunno if anyones paying attention to wwdc keynote, but am i the only one who doesnt really care about the laptop screen? Jun 11 17:45:20 like...most of the time im connected to an external, larger monitor Jun 11 17:48:07 new mbp rocks Jun 11 17:49:46 #android-offtopic Jun 11 17:50:51 luxurymode: thanks the problem was exactly as you stated on the MediaRecorder while loop. Jun 11 17:51:04 xemi glad you got it working Jun 11 17:53:34 canadiancow|work, where you watching it? Jun 11 17:53:39 the new pro looks beastly Jun 11 17:53:45 STARTS at $2200?! Jun 11 17:53:49 #android-offtopic Jun 11 17:54:28 hehe true true Jun 11 17:54:30 it looks fine, but i never want to get into a situation where my "main" monitor (not laptop's) is significantly worse than the laptops Jun 11 17:54:59 #justsayin lol Jun 11 17:54:59 * Ge0rG is working with a laptop screen + keyboard 95% of the time Jun 11 17:55:39 canadiancow|work, i dont care about that. im also mostly connected to a cinema display but wont complain about having an awesome monitor on the machine itself Jun 11 17:57:57 luxurymode: Where can I take a look at the new mbp? Jun 11 17:58:31 interesting sharing feature Jun 11 17:59:02 napster, saw it on gizmodo but looks like its gonna be on apple.com today Jun 11 17:59:17 ok luxurymode Jun 11 18:02:11 hmmm, whats the best way to get the user to enter an IP address? Jun 11 18:04:42 luxurymode: don't want to annoy you but I've revised the while loop to reinitialize/reset every 250 miliseconds to get the samples. However now I don't understand, though recording is working properly, why would the getMaxAmplitude always sit on zero in this case http://pastebin.com/LXH1HMiz? Jun 11 18:05:17 xemi, have you released the other one before making a new one? Jun 11 18:05:47 also you're gonna have issues if you're doing this outside of a thread that has access to a looper Jun 11 18:07:32 I've tried both releasing and resetting Jun 11 18:08:41 I don't understand your second suggestion. Jun 11 18:10:54 can anyone help me to compile a library for android ndk with the toolchain Jun 11 18:11:13 hey all, I'm playing with ABS and SherlockPreferenceActivity. Does anyone know how I'm supposed to set the up action? I don't (think I) have access to the actionbar once a new preference screen is open. Jun 11 18:11:47 it will call onOptionsItemSelected with android.R.id.home as the itemId Jun 11 18:13:48 so this is why there's d.android.com Jun 11 18:13:50 Iceweasel can't find the server at develeoper.android.com. Jun 11 18:13:50 heh, hi Jake! I guess the problem is, I want the children's up action to push back to the top list of settings and the up action for the top settings to go back to the main app page. Is there a way to have different actions? Jun 11 18:15:40 hi, i'm debugging a web service used by my android app. how can I put the emulator on the same subnet as my internal web server? Jun 11 18:30:12 what's the difference between "@id" and "@+id"? Jun 11 18:31:18 + creates, no + refers Jun 11 18:31:53 Zharf: thank you :) Jun 11 18:42:51 Back to my ABS, SherlockPreferenceActivity question… Child preference screens actually don't call onOptionsItemSelected in the parent SPActivity. Hmmm… Jun 11 18:45:51 Not supported Jun 11 18:46:04 http://mobile.slashdot.org/story/12/06/11/166212/the-billions-in-mobile-ad-money-nobody-can-grab … doesn't seem like ads are the way to go :| Jun 11 18:46:08 fair enough Jun 11 18:52:34 it so quiet in here for a monday :| is everybody at wwdc :) Jun 11 18:53:39 oh man... the people in my office aren't even working Jun 11 18:53:50 just talking about all the latest apple updates Jun 11 18:53:56 g00s: LOL Jun 11 18:54:37 Rich787: i'll wait for a good summary in a few days :) but those new MBP machines look so sweet Jun 11 18:55:13 hehe yea they are pretty cool. I just couldn't bring myself to part with the money :P Jun 11 18:55:14 too bad i don't like os x much :( Jun 11 18:55:34 but...but... it's unhackable and doesn't get viruses Jun 11 18:56:07 but but Linux is free and fun to tinker with AND doesn't get viruses. Granted that you are patient enough to read all the documentation Jun 11 18:56:10 * tors watches ukraine vs sweden, european football championship Jun 11 18:56:34 ;) Jun 11 18:56:42 pff, BeOS ftw! Jun 11 18:56:50 but you're not cool unless you buy a mac Rich787 :-p Jun 11 18:57:01 hah that's what everyone keeps telling me Jun 11 18:57:13 resistance is futile Jun 11 18:57:18 I would like to play video in webview, I had referred http://stackoverflow.com/questions/4989738/how-to-play-a-video-in-a-webview-with-android link, but if my page has video tag then its not displaying anything Jun 11 18:57:41 i'm not gonna lie, the mag-adapter is pretty effin rad... but i can't justify the cost of entry for a laptop Jun 11 18:58:05 I have also implemented custom ChomeClient class and implemented all methods, but still it doesnt working. Jun 11 18:59:20 is anyone familiar with using the batch method to add a new contact? Jun 11 19:01:57 are there any tools to help with developing theme's for activity/dialogs in android? I want a dialogfragement with holo in api 8+. To do this I need to extract the correct style from the ics source but its all distributed accross many files. Are there any tools which ease the browsing of style files? Jun 11 19:06:15 evening Jun 11 19:06:45 hey there Jun 11 19:08:21 dialog fragment is not a UI component Jun 11 19:08:28 it's a management container around a dialog Jun 11 19:09:33 is there a Android supplied API for turning NV21 into RGB ? Jun 11 19:10:53 JakeWharton ur faec is a ui component Jun 11 19:11:03 Jun 11 19:11:25 Ikarus: Not to my knowledge. Jun 11 19:11:27 lol Jun 11 19:12:22 ctate: hm, so we really aren't expected to be doing anything with previewImage images Jun 11 19:13:37 for academic exercise we have to do silly things like implementing our own image rotation routines Jun 11 19:13:47 that work on realtime video Jun 11 19:14:01 is it just me, or does iOS6 only update apps? Jun 11 19:14:07 like did anything change in the actual OS Jun 11 19:14:11 but the previewImage is in NV21 format, the Canvas drawable for output is ARGB Jun 11 19:14:18 so I have to do a conversion at some point Jun 11 19:15:28 is there a better approach then using my own conversion routine (ie, is there a pixel output thing that does handle YUV ? or something) Jun 11 19:17:00 well, have you determined that the camera can *only* give you NV21? Jun 11 19:17:11 [that is, when you ask for supported preview formats, that's the only one it reports?] Jun 11 19:17:23 interesting. http://www.telegraph.co.uk/technology/internet/9324597/Stopping-internet-troll-using-computer-would-breach-his-human-rights-judge-rules.html Jun 11 19:17:37 ctate: I have tested that indeed, and sadly it supports nothing else Jun 11 19:18:00 can anyone help me with some ndk toolchain stuff? Jun 11 19:18:34 i don't have any experience on toolchain Jun 11 19:19:03 I'm trying to compile a library that uses stl and I'm having some trouble with the linking Jun 11 19:23:50 my phone is in the other room and I'm too lazy to go get it. does this qr image actually scan to any text or url? http://www.splitreason.com/product/1226 Jun 11 19:25:19 yeah it does Jun 11 19:25:24 http://zxing.org/w/decode?u=http%3A%2F%2Fwww.splitreason.com%2FProduct_Images%2F51abfd26e7db.jpg&full=true Jun 11 19:26:00 nice way to advertise Jun 11 19:29:19 how fast is message passing via handlers Jun 11 19:29:28 this Jun 11 19:29:29 fast Jun 11 19:30:26 Jun 11 19:31:17 i mean, can i do it 60 times a second, or will that not fly well Jun 11 19:31:45 jimi_hendrix: that depends, do you require precise timing? Jun 11 19:31:47 yes, it can certainly handle that Jun 11 19:32:00 ie, it will probably make that throughput Jun 11 19:32:01 but of course now the question is what you're actually trying to accomplish, etc. Jun 11 19:32:16 but latency-wise, afaik all bets are off Jun 11 19:32:25 alright Jun 11 19:32:31 i will need to figure out another way to do this Jun 11 19:32:38 do what? Jun 11 19:33:06 whatever he has to do Jun 11 19:33:12 he's obviously got it under conrol. Jun 11 19:33:16 * ctate hears "60 times a second" and immediately thinks fps Jun 11 19:33:21 same Jun 11 19:33:50 why would you need to do that 60 times a second Jun 11 19:33:54 are you making agame? Jun 11 19:34:05 if not noone gives a flying fuck about you updating something 60 times a second Jun 11 19:34:07 taht'd be my guess; he's posting a "draw the next frame now" message Jun 11 19:34:26 mikedg: that's not true; scrolling/flinging lists it is good to be able to hit 60fps too Jun 11 19:34:44 but yes, if you can't hit 60 then hitting 30 *exactly and reliably* is a lot better than waffling between 35 and 55 Jun 11 19:34:55 really? Jun 11 19:35:00 i am making an emulator. i know a million already exist, but it is a learning experience, and i want to do some things that other emulators dont Jun 11 19:35:07 canadiancow|work: usually, yes Jun 11 19:35:20 back in the 90's I used to lock my fps at 35-40 while playing quake1 for optimum harmony of my antiquated hardware Jun 11 19:35:42 pragma-: ... and got pwned by the folks with 80Hz monitors :) Jun 11 19:35:46 nope Jun 11 19:35:47 i already have it working as a desktop app, and i am porting it to android. Jun 11 19:35:50 you think anyone asking questions in here is making a list from scratch though? Jun 11 19:36:07 that's the big thing i miss in the migration from CRTs to LCD monitors Jun 11 19:36:12 I was often on the top of the leaderboard Jun 11 19:36:20 Why is it that this isn't working in intellij? Jun 11 19:36:24 I can probably still whup the young'uns today. Jun 11 19:36:24