**** BEGIN LOGGING AT Sat Jun 02 02:59:58 2012 Jun 02 03:08:23 anyone want to explain to me why the install chart on the play.google.com/store site updates like every 15 minutes, but the play.google.com/publish dev console updates once a day? Jun 02 03:09:13 j0hnsm1th: fix your connection! Jun 02 03:09:28 jubei_: fix your connection! Jun 02 03:10:44 j0hnsm1th: fix your connection! Jun 02 03:10:59 jubei_: fix your connection! Jun 02 03:11:06 ctate: do something useful! Jun 02 03:11:56 actually, ~jubei@*.za ignored Jun 02 03:13:28 something tells me i'm glad that i hid join/parts Jun 02 03:13:36 you're missing all the fun Jun 02 03:13:47 this is fun i'll let you enjoy Jun 02 03:14:13 there are so many witty quit messages Jun 02 03:15:58 stupid samsung Jun 02 03:16:05 can't debug in their desktop dock Jun 02 03:16:07 motorola is worse Jun 02 03:16:13 waste of $60 Jun 02 03:22:23 i hate old cards Jun 02 03:22:37 and dry hands... brb Jun 02 03:25:13 Are there any good options for promoting a new app for free? Like blogs I should contact or sites I should submit it to? Jun 02 03:32:06 Xonk: for $200, I'll promote your app on all major free blogs for free! Jun 02 03:32:32 wow that's one freeking good deal! Jun 02 03:32:46 Xonk: for free, I'll give you a 5 star rating on your market page if you give me $10 Jun 02 03:33:42 http://fiverr.com/ Jun 02 03:34:28 you can hire a lot of those people for $200 Jun 02 03:36:56 http://fiverr.com/twistedweb123/spell-out-your-message-in-scrabble-tiles-and-send-you-a-video has made at least $555 doing that... Jun 02 03:37:56 plastic bag man has sold 253 video testimonials Jun 02 03:38:03 I'm in the wrong business Jun 02 03:41:50 Pragma - So I guess that was a no. I think it was a legitimate question. It's not uncommon for there to be a 'new apps this week' type blog or free directories that it's common practice to submit to. Jun 02 03:42:49 Xonk: google for "new apps this week" and find their contact us links and submit your app Jun 02 03:46:19 Xonk: http://www.techcredo.com/android/top-10-android-blogs-the-best-sites-for-android-news-previews-reviews-rumors Jun 02 03:46:22 * pragma- useful. Jun 02 03:46:50 thanks. Jun 02 03:47:11 Does anyone know if the tun/tap kernel module (or built into the kernel) is included on any version of the stock android? Jun 02 04:10:46 fundamental java question: what's the difference between CharSequence and String? Jun 02 04:12:05 nm, researched and found the answer Jun 02 05:11:34 is it possible to take a fragment, preserve the current state in the back stack, and initiate a new instance of the same fragment? Jun 02 05:25:43 http://acidcow.com/pics/20120601/acid_picdump_28.jpg Jun 02 05:25:45 epic. Jun 02 05:26:05 seen it Jun 02 05:26:20 or should i say, reddit Jun 02 05:26:26 still epic. Jun 02 05:27:55 hmm. interesting quandry. i have an activity with full screen image set in XML. programmatically, if I create a new ImageView, set layout params to match parent, and add to layout...it comes out on top (as expected). however, if I do the same thing with a custom View that I made, it comes out underneath. any idea why? Jun 02 05:29:55 if this is a horizontal linearlayout, i would expect it to appear below the existing views in the layout Jun 02 05:30:00 er, vertical Jun 02 05:30:05 its inside a relative layout Jun 02 05:30:41 i have no opinion without any code pasted Jun 02 05:30:57 stated another way: the custom view appears exactly where it should. however, when I put a fullscreen image into the XML, it obscures the custom view. Jun 02 05:31:15 which doesnt make sense, because custom view is created and added afterward Jun 02 05:39:59 it's weird how building android apps in my vm is faster than building them on my host Jun 02 05:40:18 [success] Total time: 67 s, completed Jun 1, 2012 10:39:19 PM <- windows Jun 02 05:40:26 [success] Total time: 64 s, completed Jun 1, 2012 10:39:25 PM Jun 02 05:40:30 <- linux Jun 02 05:40:33 (vm) Jun 02 05:40:46 could be random fluctation Jun 02 05:41:02 nope, it's consistently 3-5s faster in the vm Jun 02 05:42:23 the only time my vm is slower is when my nfs serving vm decides to be stupid and not serve nfs Jun 02 05:45:14 #android Jun 02 05:47:03 nfs makes me want to punch things Jun 02 06:04:29 If nfs makes you want to punch things, don't try afs Jun 02 06:04:54 afs...invented at CMU Jun 02 06:16:13 can anyone suggest a free non gnu arm assembler? Jun 02 06:16:27 not fasmarm, its kinda crappy Jun 02 06:31:19 ugh... afs... *shudders* Jun 02 06:32:21 need some help on a growing android app, anyone interested? Jun 02 06:32:57 depends on the benefits! Jun 02 06:33:02 Dental? Vision? Jun 02 06:36:24 do you cover penis enlargement? Jun 02 06:36:24 gold? diamonds? bragging rights? Jun 02 06:36:36 for anyone who's serious, please msg me Jun 02 06:37:29 so does anyone know of ANY non gnu toolchain arm assembler suitibl for development of native android executables? Jun 02 06:37:57 why? Jun 02 06:37:58 this isnt a bs question... gas is horrendously difficult to use for this particular purpose Jun 02 06:38:03 I'd love to hear your latest rant Jun 02 06:38:16 i want to port my forth compiler to android? Jun 02 06:38:48 gnu's assembler just cant hack the macros i need for this... look at www.isforth.com sources (x86 linux) Jun 02 06:39:37 why do you need macros? Jun 02 06:39:48 pragma not ranting, gnu's assembler was never intended to be used for anything other than c's backend Jun 02 06:40:33 becayuse i assemble code and forth word headers to separate sections. the end resultant executable is identical to what the forth compiler would have produced had it compiled its own sources Jun 02 06:41:16 i need to be able to assemble multiple linked structures that both forward and reverse reference other structures and code Jun 02 06:41:56 and the linked lists need to be hashed. at assemble time or its a pita to fix it at run time Jun 02 06:42:04 even nasm cant do that at assemble time :/ Jun 02 06:42:24 tho the a386 assembler can (ye olde x86 dos assembler) Jun 02 06:42:52 oh, well there you go. Jun 02 06:43:01 problem solved Jun 02 06:43:10 ? Jun 02 06:45:16 * mahamoti wishes we'd all just go back to DOS Jun 02 06:45:29 dos had its plusses lol Jun 02 06:45:39 the games were better Jun 02 06:45:49 i didnt downgrade to windows till 98 came out. :/ Jun 02 06:46:16 so i guess nobody knows of an assembler for arm thats free and doesnt suck :P Jun 02 06:46:43 my first pc was a 386. it took a full 12 hours of sitting at room temperature before it would boot due to the cold air. i wanted SO badly to play Jetpack... Jun 02 06:47:04 wtf 12 hours Jun 02 06:47:07 i call bs on that Jun 02 06:47:37 I dont remember how many exactly,but it was definitely more than 3 Jun 02 06:47:51 HOURS? Jun 02 06:47:54 to BOOT? Jun 02 06:47:55 yah Jun 02 06:47:59 err no Jun 02 06:47:59 i thought it was broken Jun 02 06:49:02 its not that the actual boot took that long Jun 02 06:49:04 its that it wouldnt boot at all Jun 02 06:49:08 until it warmed up Jun 02 06:49:31 the vacuum tubes were still frozen lol Jun 02 06:49:34 mine was a cutting edge blazing fast 286 16mhz Jun 02 06:50:04 oooh did you have a ***super*** VGA monitor? Jun 02 06:51:27 we made 1 color look like 4 colors Jun 02 06:51:38 its all about the dithering. Jun 02 06:52:00 and back then, kids had imaginations. Jun 02 06:52:28 you saw +, and you thought "land mine" ! Jun 02 06:53:27 http://flowtv.org/wp-content/uploads/2007/06/custersrevengescreenshot.jpg Jun 02 06:54:05 didnt know that one Jun 02 06:54:09 my favorite -> http://blog.poweredbytoast.com/content/tunneler.jpg Jun 02 06:54:28 scorched earth ftw Jun 02 06:54:48 I wrote a bunch of scorched earth clones Jun 02 06:55:03 the settlers and ultima 3 ftw Jun 02 06:55:27 oregan trail. Jun 02 06:55:33 oregon Jun 02 06:55:57 i still play the settlers. dont have u3 and the new clones of it all SUCK Jun 02 06:56:09 Liero was the best game ever made Jun 02 06:56:22 mahamoti, you never played the settlers then :) Jun 02 06:56:43 mahamoti: you just like burrowing Jun 02 06:56:54 bah Jun 02 06:56:57 and i mean the original one, 2 3 4 5 6 7 etc are kiddie games in comparison Jun 02 06:57:05 like "warcraft" was Jun 02 06:57:10 there is no comparison to a chiquita bomb Jun 02 06:57:20 warcraft 2 was fun Jun 02 06:57:32 in a simple kind of way Jun 02 06:57:39 it made blizzard Jun 02 06:57:56 i still play wow Jun 02 06:58:10 i have never played wow Jun 02 06:58:15 boring Jun 02 06:58:17 i did play wc3 Jun 02 06:58:30 diablo 1 Jun 02 06:58:52 i watched my roommate play diablo 1/2 while i played quake1/2 Jun 02 06:59:20 i used to pay my brother $1/hr to create new games and check blacksmith until he found me kings swod of haste + godly plate of the whale Jun 02 06:59:40 godly plate of the whale Jun 02 07:00:17 fallout 1/2 > diablo 1/2 Jun 02 07:00:47 as far as adventure games go, i give it to Quest for Glory Jun 02 07:01:09 So u want to be a hero Jun 02 07:01:11 nope, my text-based Search for the Rune Sword was the best Jun 02 07:01:22 my mom said so Jun 02 07:01:28 nethack. just kidding. i hated nethack Jun 02 07:01:37 lol yea nethack was kinda sucky Jun 02 07:01:42 YOU DIE. Jun 02 07:01:52 noobs. Jun 02 07:02:06 nethack is like playing minesweeper blindfolded Jun 02 07:03:04 challenge accepted Jun 02 07:05:04 i had a gf woul could click 3 or 4 mines per second on hardest mode and WIN almsot every time Jun 02 07:05:16 i could never understand how her HANDS worked that fast, nevermind her brain Jun 02 07:08:06 i got really into it Jun 02 07:08:13 hello all Jun 02 07:08:18 my best was like 240 i think Jun 02 07:10:04 hello Utopic Jun 02 07:11:24 I have a LinearLayout fragment and I add views programatically to it, when I replace the fragment with another and later restore the first, I don't get the views I added, but if I try to add the views again, it complains about views already having a parent Jun 02 07:11:47 if the views already have a parent, and the parent is displayed, why the views aren't? Jun 02 07:13:03 onCreateView(){ if( getView() != null ) return getView() ); else return (LinearLayout)inflater.inflate(); } Jun 02 07:13:23 Hello, I try to use a pic as a button. I copied the png file in the drawable folder, create a xml file with the same name (without .png): http://pastebin.com/bse8BpaP. Now i get from eclipse this error: http://pastebin.com/hagZSC7v Jun 02 07:13:50 add_view(View v){ ((LinearLayout)getView().findViewById(id).addView(v); } Jun 02 07:17:44 the XML file should be placed inside layout folder sukramTM, and maybe both files should have different names Jun 02 07:18:54 "Resource entry scores_apgar is already defined." <-- quite explanatory Jun 02 07:19:00 it is the xml file for the picture like in this example: http://developer.android.com/resources/tutorials/views/hello-formstuff.html#CustomButton Jun 02 07:19:22 but how it could be that is defined in the png file? Jun 02 07:20:03 this example have differents names for images and xml files Jun 02 07:20:38 android_pressed, android_focused and android_normal for images files, and android_button for the xml Jun 02 07:22:37 Utopic: the layout file is in the layout folder Jun 02 07:23:38 it is not what your error tells Jun 02 07:23:47 [2012-06-02 09:05:15 - RettHelfer] res\drawable\scores_apgar.xml:0: error: Resource entry scores_apgar is already defined. Jun 02 07:23:52 res\drawable\scores_apgar.xml Jun 02 07:24:17 "scores_apgar is already defined." <-- quite explanatory: change names Jun 02 07:26:13 if you placed the xml inside layout folder, access it by R.layout.scores_apgar instead of R.drawable.scores_apgar Jun 02 07:27:39 I excuse my bad english, I think you dont understand me Jun 02 07:29:46 When I read this: http://developer.android.com/resources/tutorials/views/hello-formstuff.html#CustomButton I have to put a xml file () in the drawable folder together with the image. Jun 02 07:30:42 @drawable/scores_apgar <-- what does that reference to? to scores_apgar.xml or scores_apgar.png? both are defined! Jun 02 07:31:01 change names, as in the CustomButton example Jun 02 07:32:36 Ok now i understand, thx Jun 02 07:33:52 welcome Jun 02 07:35:26 also, if your button is a single image with no properties, you don't need the XML, you can reference to the .png file Jun 02 07:35:56 the customButton example defines the XML because the button have different images depending on it's state Jun 02 07:45:38 I have a LinearLayout fragment and I add views programatically to it, when I replace the fragment with another and later restore the first, I don't get the views I added, but if I try to add the views again, it complains about views already having a parent Jun 02 07:45:43 if the views already have a parent, and the parent is displayed, why the views aren't? Jun 02 07:45:58 onCreateView(){ if( getView() != null ) return getView() ); else return (LinearLayout)inflater.inflate(); } Jun 02 07:46:05 add_view(View v){ ((LinearLayout)getView().findViewById(id).addView(v); } Jun 02 08:07:40 can I use OnClickListener with a TextView ? Jun 02 08:11:59 sukramTM: si Jun 02 08:12:18 your_text_view.setClickable(true); Jun 02 08:15:22 Utopic: incorrect Jun 02 08:16:09 I do believe you mean el_texto_de_la_vista Jun 02 08:18:47 I think TextView class should be extended to include OnClickListener: public class clickListenerTextVi extends TextView implements OnClickListener{} Jun 02 08:21:29 you can just do: class MyOnClickListener extends OnClickListener { public void onClick(View v) { /* do something */ } } TextView tv = new TextView(); tv.setOnClickListener(new MyOnClickListener()); Jun 02 08:22:14 actually Jun 02 08:22:54 TextView tv = new TextView(); tv.setOnClickListener(new OnClickListener() { public void onClick(View vi) { /* do something */ } }); Jun 02 08:22:57 done. Jun 02 08:23:36 you java students and your java schools trying to extend and implement everything Jun 02 08:23:41 pragma-, do you know why my views are not displayed when I restore a fragment? Jun 02 08:23:57 because a) and c) Jun 02 08:24:46 what's a) and c)? Jun 02 08:26:09 in opengl, if I draw a triangle that is way larger than the screen, will the non visible parts be processed by the render? I assume they won't pass through the fragment shader? Jun 02 08:26:29 is draw9patch open source? Jun 02 08:29:56 Utopic: it might help if you paste the code somewhere, or link to the source repo Jun 02 08:30:16 you could be doing any number of things wrong Jun 02 08:30:53 sure, but there's a lot of code Jun 02 08:31:04 I'll try to paste it to pastebin Jun 02 08:31:17 you could just make another project that only has this specific issue Jun 02 08:31:27 making such a testcase might even help you figure out the problem yourself Jun 02 08:32:45 you know, create a debug project skeleton, then commit it into your repo, then use that repo to create new branches to test different functionality of android Jun 02 08:39:26 http://pastebin.com/fYRKRYfJ Jun 02 08:39:44 this is the code and sequence of my issue Jun 02 08:45:14 what's a Tab? Jun 02 08:46:23 calling getView() in onCreateView() seems whack Jun 02 08:46:36 just create the view and maintain an instance reference to it Jun 02 08:47:31 a Tab is a button with a fragment (I'm trying to paste it, pastebin tells me to wait) Jun 02 08:47:53 I can maintan the reference, or I can get it by calling getView(), can't I? Jun 02 08:48:37 I'd just maintain the reference. Jun 02 08:48:59 why to maintain it if the fragment already does that? Jun 02 08:49:08 anyway, I also tryed that Jun 02 08:50:22 getView() in onCreateView() seems whack, but also seems whack to me the fragment lifecycle Jun 02 08:50:24 mostly because I'm not entirely sure what getView() does exactly and because I like knowing exactly where and what my data is without depending on some blackbox API Jun 02 08:50:36 setRetainInstance(true) for great win Jun 02 08:51:39 http://pastebin.com/828uBAZa <-- with tab class Jun 02 08:52:37 in what function should I call setRetainInstance? Jun 02 08:52:46 in the right one Jun 02 08:52:48 constructor, onCreate, onCreateView? Jun 02 08:54:35 the right one is onActivityCreated Jun 02 09:05:20 does this mean that i got ICS for my mobile phone , should i go with this update ? http://i48.tinypic.com/k16sux.jpg please help Jun 02 09:06:29 jennie: #android Jun 02 09:11:09 setRetainInstance didn't solve my problem, nor keeping track of the view Jun 02 09:18:25 When I keep my finger pressed on the screen and swipe towards a button and hover over the button without releasing my finger, I want an event to occur.. Any thing in the API that does it? Jun 02 09:19:02 drag and drop Jun 02 09:19:25 I don;t really want to drop anything.. but I can use drag and drop just like that? Jun 02 09:20:42 i don't know, just trying to point you in the right direction Jun 02 09:20:45 no touch events fire? Jun 02 09:21:17 OnTouch does not fire unless I lift and drop my finger again on that button Jun 02 09:22:13 what about onInterceptTouchEvent or onTouchEvent? Jun 02 09:23:35 Hmm let me check.. Jun 02 09:24:25 how to restore a fragment? I mean, I have a fragment displayed, I change it to another fragment, and I want to show again the first fragment Jun 02 09:24:30 but it isn't displayed Jun 02 09:32:22 hm I have a in the developer console a OS Version which means translated "other", does anyone know what google groups under that? Jun 02 10:06:05 android api tells that FragmentTransaction.detach() funcition exists, http://developer.android.com/reference/android/app/FragmentTransaction.html#detach%28android.app.Fragment%29, but I don't have such a function! Jun 02 10:06:14 how is it possible? Jun 02 10:06:28 hello people Jun 02 10:07:15 is it possible to have string resources in multiple strings.xml files? for example strings_subSysOne.xml strings_subSysTwo.xml ..etc ? Jun 02 10:08:07 The method detach(Fragment) is undefined for the type FragmentTransaction Jun 02 10:08:12 eclipse tells Jun 02 10:18:27 i have a composite view that I need to repeat a few times in a layout. between the composite Views only some android:text attributes differ. is there a technique available that allows for concise re-using a composite View like this? Jun 02 10:25:42 HI :) Jun 02 10:33:50 hiya all :) Jun 02 10:33:58 morning Jun 02 10:34:50 i've got an eclipse question: i want to make a lib thats just java and then have an mylib_android.jar depend on that generic mylib.jar Jun 02 10:35:11 en than use that android lib in an app Jun 02 10:35:21 i'll figure it out i guess, all it takes is time Jun 02 10:35:52 but i had my first true opengl es 2.0 SurfaceView a few days ago :)) Jun 02 10:46:14 hey wat al isrequired 4 android development Jun 02 10:46:35 hey what all isrequired for android development??? Jun 02 10:46:42 can anyone help me??? Jun 02 10:51:49 what all? as in what software is required? Jun 02 10:55:16 what do you mean what is required....? simply answered, computer, eclipse or other development program, compiler (included in eclipse) and some knowledge of java, Jun 02 11:00:59 abhisinghal: is the answer ok? Jun 02 11:02:15 SUd hmm acually I am a newbie Jun 02 11:02:38 Sud Ihav started learning java now Jun 02 11:03:08 Can u tell me froem where should i study Java??? Jun 02 11:03:45 abhisinghal: do you know another programing language? how old are you? are you studying computing science or so? Jun 02 11:04:09 yes I am studying computer science Jun 02 11:04:14 Sud Jun 02 11:04:28 Sud I know c and C++ Jun 02 11:04:37 surely Java will be included in your computer sceince course Jun 02 11:04:43 so you know some theory about OOP, that's good Jun 02 11:04:44 yes Jun 02 11:05:05 if not a good way to get some grips are online...let me dig some links out. Jun 02 11:06:00 I want to learn Java and software development Jun 02 11:06:03 what i found most complicated about actual programming is learning the design decisions made by library creators Jun 02 11:06:24 ??? Jun 02 11:06:26 like you need to pass object A to class B, but it could have been pass object B to class A instead Jun 02 11:06:58 nothing special really, learning libraries always takes some time Jun 02 11:07:21 ofcourse it takes Jun 02 11:07:29 http://www.mybringback.com/series/java-2/ Jun 02 11:07:32 i used to think that OOP would make things easier and more intuitive than in C, but things are complicated anyway Jun 02 11:08:12 writing a single line of code may require you to read about 3 classes you never knew of Jun 02 11:08:22 hahaha Jun 02 11:09:03 that's the worst case, other times code is writen fast Jun 02 11:09:10 oop is nothing more or less than tool to manage the complexity. Jun 02 11:09:45 so Java compared to C++ is cleaner, no need to free memory, better strings, more object oriented Jun 02 11:10:02 madmcphil, give me some more links Jun 02 11:10:17 sorry for the talk, i don't know of good sources to learn java Jun 02 11:10:28 nonono Jun 02 11:10:31 I have always respected the book thinking in java Jun 02 11:10:46 alankila, author Jun 02 11:10:47 it starts from the reason why people care about oop in the first place, and is freely available Jun 02 11:10:55 don't remember Jun 02 11:11:02 its first 100 pages are probably worth it for a newcomer Jun 02 11:11:19 i was taught at the university. At that time the most cool you could do with java was a web applet Jun 02 11:12:04 digging for a brilliant link,, just trying to find it... its actually Berkeley university Java lectures. All of them. Brilliant lecturer too Jun 02 11:12:08 let me find Jun 02 11:12:58 I lie... its Stanford....let me find this link Jun 02 11:13:00 lol Jun 02 11:13:23 grate Jun 02 11:13:28 find bro Jun 02 11:15:04 ok Jun 02 11:15:11 28 lectures in video format Jun 02 11:15:12 http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111 Jun 02 11:16:08 this will get you going... Im no pro... I did my degree in It over 12 years ago...didnt do anything with it...now trying to re-learn Java myself so I can code for android for a past time Jun 02 11:16:57 ohkk Jun 02 11:17:46 also buy a couple of java books. "Just Java2" is a good one Jun 02 11:18:14 not a great fan of java in 24hours.... dont think its explained very well Jun 02 11:18:50 although saying that...there is an app learn java in 24 hours in the android market... its pretty good Jun 02 11:19:15 app is called Java in a day Jun 02 11:47:26 I think ##java recommends Effective Java (among others) Jun 02 11:48:48 I'm trying to refer to a theme from a reference project in my manifest, but it keeps failing. Anyone knows how to do this correctly? Jun 02 11:52:09 Looks like I found it, so never mind answering that previous question. Jun 02 12:21:08 Yay, almost 10% on ≥3.x Jun 02 12:24:24 I have created a seperate java file (Users.class) which holds my user info. I am having a problem with sql. It doesnt recognise openorcreatedatabase? any help? Jun 02 12:24:57 SQLiteDatabase opendb = openOrCreateDatabase(DBaseName, Context.MODE_PRIVATE, null); Jun 02 12:29:57 any help Jun 02 12:34:19 can anyone help? SQLiteDatabase opendb = openOrCreateDatabase(DBaseName, Context.MODE_PRIVATE, null); Jun 02 12:34:56 it works fine if I put it in an Activity class Jun 02 12:35:15 but not on its own file Users.class Jun 02 12:36:14 madmcphil: pass the activity to that method, call method on activity. Also learn java. Jun 02 12:36:34 methods don't just randomly exist in java. If your Users class is not defining it, or inheriting from class that defines it, why are you surprised? Jun 02 12:38:05 ? so your saying that although this Users.class isnt an Activity it should still extend Activity? Jun 02 12:38:10 No. Jun 02 12:38:27 extend Activity if you want it to be an Activity. You probably do not. Jun 02 12:38:51 no I rather it wasnt Jun 02 12:39:31 has anyone had any issues running the emulator with 4.0 and gpu emulation on? the text looks sorta pixelated on mine. Jun 02 12:39:50 can you explain to me a bit differently alankila Jun 02 12:39:55 I am learning java Jun 02 12:40:43 I don't know what to explain. Jun 02 12:40:54 madmcphil: what was your question Jun 02 12:41:35 Say a bound service needs to notify clients (bound activities) of a change in the state of the service. Are there alternatives to using a BroadcastReceiver? Jun 02 12:43:17 mgj: take a look at this -- https://bitbucket.org/alexfu/androidserviceexample/src. I'm not sure if this is the exact answer you are looking for but it sounds similar. Jun 02 12:43:31 thank you Jun 02 12:44:00 ok...let me explain what I am trying to do. I have my activity which displays user info. I built a public class which gets user info from a database and draws charts with the info. I want that class to be in a different file but when I move it out of my activity into a different file it contains errors and openorcreatedatabase is no longer is recognised. Jun 02 12:44:49 yes. And I told you above, to pass the activity to that method so that you can call openOrCreateDatabase on the activity. Jun 02 12:45:08 that should make it work, anyway. Jun 02 12:46:35 ok... thanks need to do some more reading Jun 02 12:46:51 madmcphil: right, so like alankila said, you can pass the Activity to the new class you want to make via the constructor and then use that Activity to get to the database. Jun 02 12:47:40 cheers alexfu.... makes a bit more sense Jun 02 12:47:48 IMHO, if you're just learning Java, you shouldn't be diving into Android, but thats just my opinion. Jun 02 12:48:07 do not store activity in other class, though. Jun 02 12:48:19 cool Jun 02 12:48:22 the objects whose lifecycles are managed by android should not be kept anywhere yourself Jun 02 12:49:25 ok..the reason I was doing it was because I have other activities which would need to use the class I made Jun 02 12:50:07 I thought that was the point of OO being able to re-use code Jun 02 12:50:19 alexfu, i did not know Messenger could be used "both ways" like that, very cool. Currently using a Binder for Activity->Service and BroadcastReceiver for Service->Activity... Its a bit messy compared to what you do in that link, thanks Jun 02 12:50:48 mgj: np. Jun 02 12:53:43 madmcphil: btw, you're using an SQLite database? Jun 02 12:54:51 yep using SqLite Jun 02 12:56:40 madmcphil: have you read this? http://www.vogella.com/articles/AndroidSQLite/article.html Jun 02 12:56:55 let me have a loo Jun 02 12:56:56 k Jun 02 13:17:23 I three different(but pretty similar) listview adapters. Is it better to make one which handles all of the three lists, or keep them seperated? Jun 02 13:28:16 hello! I need to compile a kernel module for an Android tablet (ftdi_sio.ko), and I'm having trouble finding documentation on how to do it... would anyone be so kind as to point me in the right direction? Jun 02 13:32:37 mansfeld: compile it like any other kernel module - grab the appropriate cross compiler, the kernel sources of the tablet in question, and voila Jun 02 13:33:55 thanks p_l, I'll see what I can do Jun 02 13:35:24 hey all, admob issue here. An app that was getting several thousand daily requests suddenly always gets onFailedToReceiveAd(), claiming lack of ad inventory. and this basically after exaclty 1 month of uptime. any ideas? Jun 02 13:41:15 contacting admob support would be a good idea. Jun 02 13:47:46 readme: I don't know, it seems to happen to others sometimes too, but still seems strange having no filters installed. Just wanted to see if some of you had a similar issue. I'll contact them tomorrow if things persist. Jun 02 13:54:38 ctate: sup yo Jun 02 14:01:26 JakeWharton Jun 02 14:22:36 any idea how to set the padding of a gradient drawable programmatically? Jun 02 14:37:59 Hi, I'm trying to create app which uses C2DM. Now it's registered under my personal accound and I don't want store my password on application server. Any suggestions? Jun 02 14:38:43 Make a dedicated C2DM account Jun 02 14:38:48 create a differnet account? Jun 02 14:38:49 independant of anything else Jun 02 15:01:12 anyone here have experience with bluetooth RFCOMM? Jun 02 15:04:51 Uru: Ages Beyond Myst Jun 02 15:06:50 Hiraghm: Indeed Jun 02 15:07:45 something I can't figure out; if I have a custom data file in /assets or /res/raw, and I want to read the data in, do I have to decompress it first? Jun 02 15:08:11 (how about if I want to read the data in C++?) Jun 02 15:13:11 Hiraghm: no, you should be able to just read them Jun 02 15:13:24 Hiraghm: I have no idea how/if you can read them from C++. Jun 02 15:32:21 if i register a click-handler method using the android:onClick attribute in xml is there a way to determine the click position in the View passed as parameter? Jun 02 15:34:53 maybe the state of the click is saved and accessible somewhere unrelated Jun 02 15:36:50 tapas: no, you have to set a TouchListener Jun 02 15:36:58 evancharlton: ah, too bad.. Jun 02 15:37:02 you can get it from the MotionEvent Jun 02 15:37:13 yeah, i was thinking about avoiding that :D Jun 02 15:37:17 but will go that route then Jun 02 15:41:59 well poop Jun 02 15:43:51 hi guys, i would like to know if it is possible to add a fragment to the backstack and make it pop again using certain calls even if it is not on the top of the stack Jun 02 15:44:15 is it a prerequisite to restore the fragment if and only if it is on the top of the backstack? Jun 02 15:51:25 ocx: hm, it appears that way Jun 02 15:51:44 it seems weird that you can't remove from the backstack but that's probably intentional for some reason Jun 02 15:52:18 i need to pop all the fragments above before reaching the fragment i would like to use? Jun 02 15:52:25 thats a bit illogical Jun 02 15:52:33 * evancharlton shrugs Jun 02 15:53:28 ok what i am trying to do is the following, maybe you can provide me an alternative approach Jun 02 15:55:45 i have a main bar at the bottom of the screen (a fragment) where you have 3 buttons, above the fragment is a framelayout which inflates a fragments everytime a button is pressed, now i want the state of each fragment to be saved each time the user is switching between the different fragments being creates on the different button clicks Jun 02 15:55:54 any idea whay a fragmenttransaction.replace doesn't actually replace? seems like the existing fragment doesn't detach. Jun 02 15:56:01 i'm getting overlaying Jun 02 15:56:20 b1n0ry: are you commiting? Jun 02 15:56:24 yes Jun 02 15:56:34 fighting with fragments too Jun 02 15:56:57 not only that, but i can't seem to get the previous instance of a fragment to remember that it's a different instance than the new instance of the fragment... Jun 02 15:57:24 so when they click back to go up the back stack, the "old" fragment, although in the right backstack position, shows the "new" fragment content. Jun 02 15:57:27 i am pushing into the backstack the fragment each time it is displayed in the framelayout, now i need a way to restore it back when the user pressed again the button which should restore that fragment Jun 02 15:57:32 (i'm using the same fragment class) Jun 02 15:58:08 b1n0ry: try pushin ginto the backstack and use the back button as a first step Jun 02 15:58:44 not sure what you mean by that Jun 02 15:59:14 i'm trying to use a listfragment to build a recursive drill-through Jun 02 15:59:37 select item a, it shows the children for item a. select one of the children, it shows its children, and so on. Jun 02 15:59:44 until they finally get to a node that doesn't have children Jun 02 16:00:02 in which case it instantiates a whole new activity Jun 02 16:00:17 (it's a chapter/heading/subheading browser for an ebook reader) Jun 02 16:01:17 i may switch for this particular piece to using a list activity instead of a list fragment. didn't seem to have these issues when i was doing that. Jun 02 16:08:49 is there a way to restore the whole bundle in savedInstanceState into the current display? Jun 02 16:09:02 or each member of the bundle needs to be mapped? Jun 02 16:10:41 ocx: i think you can do the whole bundle Jun 02 16:11:18 i am trying to save fragments into the backstack but then restoring the fragment even if it is not on top of the backstack, seems not possible so i am looking for another alternative Jun 02 16:11:25 onSaveInstanceState(Bundle outState) { suer.onSaveInstanceState(outState); outState = myBundle; Jun 02 16:11:43 super... Jun 02 16:11:59 but that would not refresh the screen right Jun 02 16:12:03 not suer. onSaveInstanceState passes a bundle to onCreate by default Jun 02 16:14:11 Has anyone used bluetooth RFCOMM in an app? Jun 02 16:25:13 sql ite NOT sql lite :( Jun 02 16:25:43 neither Jun 02 16:25:45 sqlite Jun 02 16:26:20 i was emphasizing the difference :P Jun 02 16:27:49 lol Jun 02 16:28:06 Hi all Jun 02 16:30:28 nooooooooooooo Jun 02 16:30:40 after doing all that programmatic graphics work Jun 02 16:30:46 it seems like it slows down shit WAY too much Jun 02 16:31:18 why is creating gradient drawables and stoing them any slower than importing 9patchs Jun 02 16:36:27 is there a way to save the whole bundle on pause() and restore the whole bundle onresume() ? instead of saving each view ? Jun 02 16:45:46 so, I'm almost done compiling my modules, but it's not working : tablet expects a 2.6.34 PREEMPT module and it's compiling without, although I have it enabled in .config file. How do I make it compile with preemption? Jun 02 16:45:50 is there a capitalization or other conventions with sqlite tablenames, fieldnames, queries, etc? (ALLCAPS, ProperCase,lowercase?) Jun 02 16:47:26 mansfeld, try #android-root Jun 02 16:48:39 ok Jun 02 16:59:36 can you add views to a viewgroup from another thread if that viewgroup is View.GONE? Jun 02 16:59:49 or View.INVISIBLE for that matter Jun 02 17:00:54 actually i can just wait to add the viewgroup until it is ready to avoid that altogether Jun 02 17:05:16 is there a way to save the whole bundle on pause() and restore the whole bundle onresume() ? instead of saving each view ? Jun 02 17:05:47 i'm not sure what that means Jun 02 17:07:06 what type of data are you trying to save Jun 02 17:07:26 jeppy`: no, you can't (re: adding from a background thread) Jun 02 17:07:47 evancharlton, ok. thanks Jun 02 17:08:34 jeppy`: i have like dynamic text views , fragments etc... i want to save the whole as 1 snapshot Jun 02 17:08:43 and restore onResume() the bundle as 1 snapshot Jun 02 17:09:06 insteaad of adding each view to the bundle and restore each view from the bundle Jun 02 17:11:14 i think you're stuck with doing them one by one Jun 02 17:11:53 ocx: if they're custom views, you can just override onSaveInstanceState() Jun 02 17:11:54 a smart person defined Set maybe which handles the whole problem, just add all your views in one set and you can do a loop over that and save each instance Jun 02 17:12:18 restoring is still challenging I guess. Jun 02 17:12:21 evancharlton: onsaveinstancestate() is not recommened better to use onPause() and onResume as the documentation says Jun 02 17:12:34 ocx: wat Jun 02 17:12:51 http://developer.android.com/reference/android/view/View.html#onSaveInstanceState() Jun 02 17:12:56 ocx, it depends on what you're saving and how long you are saving it Jun 02 17:13:17 its impossible to save states when you have dynamic views then... Jun 02 17:13:24 unless staticially done Jun 02 17:13:29 which is a headache Jun 02 17:13:35 it's not impossible, but it takes more manual work... Jun 02 17:13:47 ocx: that's a mighty strange definition of "impossible" Jun 02 17:13:48 ocx, can you post some code to give us a better idea of what you're trying to do? Jun 02 17:14:14 ocx, it's certainly not impossible Jun 02 17:14:18 I mean, if android is indeed designed in such a way that it can't handle dynamically constructed view trees. One problem I envision is that onCreate needs to somehow rebuild the view tree and if the configuration is dynamic you can't just do setContentView(R.layout.foo) Jun 02 17:14:38 jeppy`: : i have some views that get created for example on some events, what i want to do is to save these views with their current state when nagivation into other fragments/activities Jun 02 17:14:40 but chances are everything work if you can only rebuild the view relationships back ... and oh, maybe every view needs an id Jun 02 17:14:50 and restoring back these states when the activity is brought back into fg Jun 02 17:16:01 every view got an id, but i am looking for a way to save the whole layout Jun 02 17:16:11 with its views in 1 shot Jun 02 17:17:58 if i save the viewgroup (layout) will it save its child views? Jun 02 17:18:01 i dont think so Jun 02 17:18:34 nah I think view states are restored by the id, the bundle android does create about the views probably just holds the id <-> value mapping or something. I haven't looked into it. Jun 02 17:18:57 but I don't think anything saves the view relationships because for most applications you don't need such capability Jun 02 17:19:08 *sighs* Jun 02 17:19:12 the onCreate will always set the same layout tree, so why would you do it? Jun 02 17:19:30 i am trying to think of a solution to save as a snapshot Jun 02 17:19:35 save 1 shot , restore 1 shot Jun 02 17:19:41 it goes so far that you actually can't feed layoutinflater custom XML Jun 02 17:19:55 the XML has to be preprocessed by the apk build tools into something the layoutinflater handles specially Jun 02 17:20:01 thought about using the stack Jun 02 17:20:15 backstack, but i cant get elements from it unless it is on top Jun 02 17:20:40 so what solution do you sugguest ? :) Jun 02 17:20:58 maintain a datastructure when you add views, store that datastructure, rebuild view tree from that Jun 02 17:21:01 forget the views per se Jun 02 17:21:14 maybe use sharedprefs Jun 02 17:21:39 nah I think it should go into a Bundle, savedpreferences is a bit too permanent, isn't it Jun 02 17:21:49 ye it is Jun 02 17:22:13 maybe destroy it onDestroy() Jun 02 17:22:39 anyway the datastructure I talk about is pretty simple, one is just a Set recording the parameters required to build any View, and another is a Map> recording the parent-child relationships maybe Jun 02 17:22:52 the integer in latter is the view id which is also part of the Something Jun 02 17:23:26 so if you have that structure it boils down to having factory method that constructs all the views in the Set followed by a little bit of work to re-add the parent-child relationships and you're done Jun 02 17:24:01 you will also need to keep track of the type of view Jun 02 17:24:07 that's the Something's problem Jun 02 17:24:09 alankila: why not just walk the view hierarchy instead? Jun 02 17:24:25 evancharlton: I figured you could get by a little easier this way. *shrug* Jun 02 17:24:44 i will try using the sharedprefs and destroyin it onDestroo() Jun 02 17:25:25 why are you stuffing view state into sharedprefs? Jun 02 17:25:26 actually Jun 02 17:25:30 I don't really want to know Jun 02 17:25:47 I'm not sure how the views actually work -- like, can you save a view's configuration using some method and does android provide a factory method to rebuild any view from that Jun 02 17:26:06 so it could be like Bundle b = view.toBundle(); and later on ViewFactory.fromBundle(b) to get another back Jun 02 17:26:14 define "state" Jun 02 17:26:15 alankila: that's not how it works at all Jun 02 17:26:29 probably not. Hence I don't think walking the view tree makes much sense Jun 02 17:26:32 View, by default, doesn't save any state Jun 02 17:26:37 you need to maintain your own datastructures to deal with this Jun 02 17:26:39 TextViews will automatically save their state Jun 02 17:27:20 yeah yeah but the thing is, TextView inherits from View Jun 02 17:27:28 so I feel justified talking about View Jun 02 17:27:53 bah i left my music playing on google tv, and i couldnt figure out why i kept getting the "you are listening on another device" error Jun 02 17:27:55 anyway I guess no code like this exists because the default use case for android has fixed UI read from the preprocessed xml stuff Jun 02 17:28:05 so stuff like this = you're on your own Jun 02 17:28:17 alankila: what Jun 02 17:28:37 evancharlton: few people ever write 'new TextView(this)' when they want a textview Jun 02 17:28:37 sharedprefs will by default save all viewgroups and view when application goes into bg Jun 02 17:28:40 that's all I mean Jun 02 17:29:01 ocx: no it won't Jun 02 17:29:12 alankila: yeah but what does that have to do with saving state? Jun 02 17:29:38 evancharlton: the problem we are trying to solve for ocx is the problem of taking arbitrary, dynamically constructed view tree, and having it persist over android activity rebuild Jun 02 17:29:58 evancharlton: so the states of the views and the actual views and their relationships should be saved Jun 02 17:30:05 what are you trying to save? Jun 02 17:30:06 yes Jun 02 17:30:26 TextViews, Fragments mainly Jun 02 17:30:47 [13:28:38] sharedprefs will by default save all viewgroups and view when application goes into bg Jun 02 17:30:48 no it wont Jun 02 17:30:58 I am guessing here that android by default relies on onCreate (in activity) getting the view tree in order, and view states are reloaded from a Bundle with view's id as key and some state bundle as the value (could be wrong) Jun 02 17:31:18 but that seems like a simple, sensible design for the use case android designers had in mind, which has fixed layout tree that is always set up the same way by onCreate etc. Jun 02 17:31:30 alankila for any view with an id (so you have to set android:id="@+id/whatever"), it will be saved and restored in the event of a configuration change Jun 02 17:31:38 "it" being the view's state Jun 02 17:31:39 canadiancow: doubt it Jun 02 17:31:41 like the contents of an EditText Jun 02 17:31:42 ah, agree Jun 02 17:31:53 what's the preferred format/data type for storing map locations Jun 02 17:32:17 like database wise Jun 02 17:32:19 sqlite Jun 02 17:32:32 canadiancow: i was wondering if there is a kind of snapshot to save everything on the activity and then restore back that "thing" when the activity resumes Jun 02 17:32:37 GeeksOnHugs: that's like asking what the preferred tool is for building things Jun 02 17:32:45 GeeksOnHugs: what are you trying to do? Jun 02 17:32:50 ocx what do you mean? Jun 02 17:32:54 what is most likely missing is the generic ability to save arbitrary view trees. Jun 02 17:32:56 if the activity isn't destroyed, nothing will change Jun 02 17:33:01 because it's sitting their in RAM Jun 02 17:33:05 there* Jun 02 17:33:15 unless you have code in onResume that fucks shit up Jun 02 17:33:28 what if the garbage collector decides to kill it to free up some meory Jun 02 17:33:31 GeeksOnHugs, whatever works best for your use case Jun 02 17:33:31 canadiancow: nah, activities have a habit of dying off-screen Jun 02 17:33:38 ocx: that's mistaken understanding of garbage collector Jun 02 17:33:41 evancharlton storing user selected location for a location based to do list Jun 02 17:33:44 it only removes unused objects Jun 02 17:33:55 ocx, then it goes through its normal restore process Jun 02 17:34:00 or ... unreachable objects (and weak references, but that's another topic) Jun 02 17:34:00 and any view that had an id will have its state restored Jun 02 17:34:12 so lat/longitude as a string? Jun 02 17:34:24 when my activity is losing focus it is losing its dynamic data... like text entered in a text view in realtime by the user Jun 02 17:34:25 canadiancow: the trouble is, he doesn't have the view whose state to restore because he needs to rebuild the view tree Jun 02 17:34:40 why? Jun 02 17:34:44 or that much I understood anyway Jun 02 17:34:50 How to build adb? Jun 02 17:34:53 ffs Jun 02 17:34:55 * canadiancow leaves Jun 02 17:35:01 it seems to me like ocx might not himself understand the problem, at least judging from the talk about sharedpreferences :-p Jun 02 17:35:08 (and garbage collection) Jun 02 17:35:14 is it possible to run queries on location? like select * from mytable where location >= 20 miles of another location Jun 02 17:35:22 alankila: you understood my problem , actually Jun 02 17:35:35 oh, I sure hope so. And I'm telling you, the solution is a little bit of manual work Jun 02 17:35:36 he problem of taking arbitrary, dynamically constructed view tree, and having it persist over android activity rebuild Jun 02 17:36:04 whenever you create a new view, record it into some different datastructure you maintain, persist that datastructure any way you care (Serializable is fine), then rebuild views from that Jun 02 17:36:06 canadiancow or evan, what is best for my use case? Jun 02 17:36:14 GeeksOnHugs, I DONT KNOW Jun 02 17:36:16 yep o Jun 02 17:36:16 WHAT IS BEST? Jun 02 17:36:18 ok thanks Jun 02 17:36:20 what are you DOING with the data Jun 02 17:36:21 * Hiraghm hates on the NDK Jun 02 17:36:24 how MUCH data Jun 02 17:36:24 again, mainly storing location for a location based to do list Jun 02 17:36:35 then store it with the rest of the list Jun 02 17:36:41 so I'll allert them when they are close something that needs to be done//picked up/etc. Jun 02 17:37:15 no I mean in the database...like a string with latitude longitude? two fields with decimal numbers? Jun 02 17:37:25 I'm not sure if the GIS extensions to SQLite are included by standard in Android Jun 02 17:37:41 hi canadiancow Jun 02 17:37:45 work Jun 02 17:37:48 ocx: android should take care of the view state saving, your problem is recording the state of view tree during onDestroy and getting it back during onCreate Jun 02 17:37:52 id probably store them in two columns Jun 02 17:38:08 everything else ought to work, provided you make sure the view trees are exaclty the same way afterwards, especially you have to have same ids Jun 02 17:38:11 android should take care of the view state saving? Jun 02 17:38:13 canadiancow, do you know if there are SQL functions that allow you to work with locations/ Jun 02 17:38:23 putDouble() Jun 02 17:38:25 ocx: your EditText should have same text afterwards Jun 02 17:38:26 getDouble() Jun 02 17:38:35 like something that could say selecct where within a certain range of another place Jun 02 17:38:36 but android won't know how to create the EditText for you because you're doing things Differently. Jun 02 17:39:05 at least I understand this is the problem? that after activity destroy you don't have the old views? Jun 02 17:39:13 GeeksOnHugs: there are such things, but I don't think you can depend on the (already limited) SQLite support for it on android devices Jun 02 17:39:19 not when destyed Jun 02 17:39:21 when paused() Jun 02 17:39:27 when ti loses focus, data is lost Jun 02 17:39:32 I'm just curious, the API has a way to register with the location manager for a call back Jun 02 17:40:11 so it will alert my service when I'm close...OK, so I'm gonna use two fields (LAT, LON) with a decimal value...thank you! Jun 02 17:40:42 canadiancow|work: is there a way to restore an activity from the stack if that activity is not on the top of the stack? is there any kind of getPostionfromStack() ? Jun 02 17:40:45 ocx: hmm... not expecting that. You sure your views have ids? Jun 02 17:40:52 no Jun 02 17:40:53 wat Jun 02 17:40:55 why are you Jun 02 17:40:58 * canadiancow|work dies Jun 02 17:40:59 and that you don't change the ids around somehow? Jun 02 17:41:12 sometimes I wish java supported structs Jun 02 17:41:19 there is another....sky....waaaaa....lker... Jun 02 17:41:26 Hiraghm: public class Foo { public int x; public int y; } Jun 02 17:41:29 Hiraghm: done? Jun 02 17:41:34 that's a class Jun 02 17:41:37 not a struct :D Jun 02 17:41:42 yes everything has ids Jun 02 17:41:42 close enough for government work Jun 02 17:41:54 whom we'll all be working for, by and by :( Jun 02 17:42:23 anyway struct and class difference á la C# is that struct is copied by value Jun 02 17:42:29 java doesn't have that, of course. Jun 02 17:42:36 Hiraghm, your the first person besides me I've ever seen use by and by since 1894 Jun 02 17:42:58 ocx: unique ids even? Jun 02 17:43:12 blame Steampunk if it makes you feel better... :) Jun 02 17:43:23 oh haha...cool :) Jun 02 17:43:36 my viewgroups need to have ids too? layouts? Jun 02 17:43:58 ocx: doubt it... edittexts and such should have, because it's required for the automatic state saving if I'm understanding android correctly Jun 02 17:44:08 * alankila thinks it's time to read source Jun 02 17:44:19 RTFS Jun 02 17:45:22 no need to even read source Jun 02 17:45:39 the description of onSaveInstanceState says that the default implementation goes through the view tree saving all views that have an id Jun 02 17:45:56 where should I put 3d model data files... /assets or /res/raw ? Jun 02 17:46:14 another question, i have a main fragment with a button, when this button is clicked a fragment is added and displayed in a framelayout, now when another button is pressed another fragment is displayed in that framelayout, how can i restore the fragment state when the first button is repressed? Jun 02 17:46:37 * Hiraghm panics and screams at the mention of "fragment" Jun 02 17:46:44 the BitmapFactory.decodeStream(..) is returning java.io.IOException: BufferedInputStream is closed randomly! :-/ Jun 02 17:47:38 goes like 1) this Button1.click() -> frag1 displayed in framelayout, 2) button2 .click() -> fra2 replaces grag1 in framelayout, 3) Button1.click frag1.restore in framelayout Jun 02 17:47:59 bewildering implementation. Jun 02 17:48:28 I mean, this onSaveInstanceState shit. I wonder if there even are activity lifecycle callbacks it talks about Jun 02 17:48:51 are we still talking about this? Jun 02 17:49:17 what version of ADT supports the @TargetApi annotation Jun 02 17:49:55 ACTION  Jun 02 17:50:48 canadiancow minimum? Jun 02 17:51:06 canadiancow|work: 17 or 18 Jun 02 17:54:55 alankila: i think a good way is to create a fragment and include everything it, and then do a fragmenttransaction to replace when resuming the activity Jun 02 17:54:58 i am trying that Jun 02 17:55:16 * alankila wonders if fragments complicate this whole business. Jun 02 17:55:46 in any case I no longer have any idea what you are doing. Jun 02 17:55:51 lol Jun 02 17:56:10 some black magic i think Jun 02 17:56:34 ocx, use callbacks to the containing activity to manage everything Jun 02 17:58:30 so i had something on my maguro scree Jun 02 17:58:32 screen Jun 02 17:58:36 i was gonna get a bit of water and wipe it off Jun 02 17:58:39 i turned on the water Jun 02 17:58:45 and without thinking, shoved my phone under the running water Jun 02 17:58:46 T_T Jun 02 17:59:15 apparently my icloud storage is almost full Jun 02 17:59:17 which is funny Jun 02 17:59:21 because i dont even use it Jun 02 17:59:54 I thought you first said "I had some mango on my screen" Jun 02 18:00:31 canadiancow|work: you're an idiot Jun 02 18:00:43 fuck you evancharlton Jun 02 18:00:44 you're never borrowing my phone Jun 02 18:00:54 for the record, it still works Jun 02 18:01:04 "hey, let me take a picture of that dolphin!" *throws phone off bridge* Jun 02 18:01:09 ~_~ Jun 02 18:10:51 http://www.youtube.com/watch?v=tCnj-uiRCn8 Jun 02 18:11:55 canadiancow|work: maybe your icloud got full of water Jun 02 18:12:46 just bought an awesome three stooges shirt. larry moe and curly are posing like run dmc, complete with chains and boom boxes Jun 02 18:15:00 Dany0, there's a minute and a half i won't get back Jun 02 18:15:12 b1n0ry 3 minutes for me Jun 02 18:15:19 watched it twice did ya? Jun 02 18:15:23 yup Jun 02 18:15:44 b1n0ry and I didn't count the previous 4 I watched uncountable times Jun 02 18:15:57 well, im about to watch something culturally relevant. season 3 episode 3 of hercules: the legendary journeys with kevin sorbo Jun 02 18:16:22 b1n0ry well, I like trains Jun 02 18:16:49 i don't blame you Jun 02 18:17:25 Dany0: well that was an.. interesting video.. :P Jun 02 18:18:19 Zider and 4 other Jun 02 18:18:29 well I only watched that Jun 02 18:18:33 that one* Jun 02 18:19:44 http://edge.ebaumsworld.com/mediaFiles/picture/1044414/82570620.png Jun 02 18:20:14 Zider here's the other 4 ones http://www.youtube.com/watch?v=IYnsfV5N2n8 http://www.youtube.com/watch?v=tKB4h9gvmm0&feature=plcp Jun 02 18:20:21 Dany0: no thanks. :P Jun 02 18:20:30 http://www.youtube.com/watch?v=8PWlxfTFmyE&feature=plcp http://www.youtube.com/watch?v=am6fco14Gi0&feature=plcp http://www.youtube.com/watch?v=1gSZbRp0DHs&feature=plcp http://www.youtube.com/watch?v=oY6tCnu-1Do&feature=plcp Jun 02 18:20:52 http://www.youtube.com/watch?v=cYNdUM2gRsg&feature=plcp http://www.youtube.com/watch?v=hHkKJfcBXcw&feature=plcp Jun 02 18:21:41 umm.. stop? Jun 02 18:22:15 Zider I'm done already :P Jun 02 18:22:20 good. Jun 02 18:22:26 now watch them Jun 02 18:23:14 no. Jun 02 18:24:46 * b1n0ry values his brain cells. Jun 02 18:25:50 is it possible to set up a broadcast receiver who would alert my app when battery gets below lets say 15% of its energy Jun 02 18:27:00 Hi! Jun 02 18:27:49 hello! Jun 02 18:29:07 is there a MUD client for Android? Jun 02 18:30:12 http://paste.lisp.org/display/129794 Jun 02 18:30:23 can someone tell me what is wrong with this code? Jun 02 18:31:03 Hiraghm: MUD as in multi user dungeon? Jun 02 18:31:25 yes Jun 02 18:31:25 kenanb: ... Jun 02 18:31:31 Hiraghm: don't they use telnet? Jun 02 18:31:41 ha... why would you want to play a MUD from an Android device? Jun 02 18:31:44 Hiraghm: also, doesn't sound like a dev question.. Jun 02 18:31:46 kenanb: please tell us what you're attempting to do, what you think it's not working, and post a relevant logcat excerpt Jun 02 18:32:00 well you *can*, but mud clients support muds better. kind of like an IDE is better for development than notepad Jun 02 18:32:13 I am an ultimate noob in java, so I was thinking the problem is something obvious Jun 02 18:32:15 it's a dev question if I decide to write one cause nobody else has, ain't it? Jun 02 18:32:28 I copied this code as snippets and put them together Jun 02 18:32:33 from android sdk tutorials Jun 02 18:32:38 kenanb: no one in here is going to read 100 lines of code and search for an error Jun 02 18:33:06 I am trying to take a snapshot using the camera application of android Jun 02 18:33:07 besides, do you *really* want to help me figure out how to get the NDK to load Lightwave models using C++, Zider? Jun 02 18:33:23 Hiraghm: I don't even know what that means Jun 02 18:33:30 kenanb: and do you see a crash? Jun 02 18:34:12 http://paste.lisp.org/display/129794#1 Jun 02 18:34:21 that's what I thought. Jun 02 18:34:23 * Hiraghm nods Jun 02 18:34:23 I annotated the debug info from eclipse Jun 02 18:34:36 Hiraghm: not that I see the relevance tho Jun 02 18:34:56 also, fileUri seems to be null, which might be important Jun 02 18:34:57 kenanb: .. that's just a thread stack broken at a breakpoint. Get us an actual logcat crash, please Jun 02 18:35:33 kenanb if it's crashing, give us the stacktrace from logcat Jun 02 18:35:47 if it's not crashing, we need to know what you're expecting it to do and what it is actually doing Jun 02 18:36:34 How can I change layout in a AsyncTask (preExecute) ? Its that possibile? Jun 02 18:37:27 hi everyone Jun 02 18:38:08 Hi! Jun 02 18:38:59 t0mless: I am expecting it to take a picture using the camera app of android and save it to a file specified in getOutputMediaFile. and this is not my own code, it is taken from official sdk tutorials Jun 02 18:39:11 what it actually does is a mistery to me Jun 02 18:39:27 does it crash? Jun 02 18:39:40 does it show the camera? Jun 02 18:39:52 it seems to crash, since the program doesn't even show the camera and halts Jun 02 18:40:00 ... Jun 02 18:40:08 is it halting because you put a breakpoint? Jun 02 18:40:28 or is it just showing the "This application has stopped unexpectedly" crash window Jun 02 18:40:45 I have no idea if I put a breakpoint, I did it accidentally even if I did so Jun 02 18:42:23 dammit Jun 02 18:42:30 there actually was a line breakpoint Jun 02 18:42:38 disabled it Jun 02 18:43:10 this eclipse thing does things I don't intent to do :) Jun 02 18:43:47 You just posted us a breakpoint in the debug window Jun 02 18:43:57 which is why I knew you had the breakpoint Jun 02 18:44:19 yes, but I didn't know there was such thing as line breakpoint Jun 02 18:44:21 :) Jun 02 18:44:31 ... Jun 02 18:44:34 hehe I am aware of the fact that I am a pain in the arse Jun 02 18:44:36 Where else do breakpoints go? Jun 02 18:44:39 sorry for that Jun 02 18:45:53 How can I change layout in a AsyncTask ? Its that possibile? Jun 02 18:46:16 yea, either in the onPreExecute or onPostExecute Jun 02 18:46:17 under: onPostExecute, or abuse the progressupdate facility Jun 02 18:46:30 that's hardly an abuse of progress update Jun 02 18:46:31 or post to uiThread Jun 02 18:46:36 * alankila has tends to broadcast intents in onProgressUpdate Jun 02 18:46:36 t0mless: onPreExectute I get an error Jun 02 18:46:42 -has Jun 02 18:46:43 06-02 20:33:00.343: I/System.out(10490): 1338661980347 ### android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Jun 02 18:46:45 well then you're doing it wrong Jun 02 18:47:10 under: show us your code Jun 02 18:47:24 protected void onPreExecute () Jun 02 18:47:24 { Jun 02 18:47:24 activity.setContentView(R.layout.download); Jun 02 18:47:24 Jun 02 18:47:24 } Jun 02 18:47:39 under: use pastebin Jun 02 18:47:39 pastebin Jun 02 18:47:40 not here Jun 02 18:47:40 This code crash my APP: http://pastebin.com/G9MvZ8Ap When I delete the second OnClickListener, it works. How I can fix it? Jun 02 18:47:42 where activity is the main class Jun 02 18:48:12 sukramTM: show us your crash stack trace from logcat Jun 02 18:48:16 sukramTM look at the logcat and see why it's crashing Jun 02 18:48:27 under why are you setting content view in the asynctask? Jun 02 18:48:33 you should do that in oncreate of your activity Jun 02 18:48:41 I'd bet that apgarListHF is null though Jun 02 18:50:02 http://pastebin.com/2gqSERs8 Jun 02 18:50:42 t0mless: becouse on my activity I dont know when to change UI Jun 02 18:51:05 if you wanted a Random for all your objects to use, would you just make it a singleton? Or just create a static one in some class and get to it by calling MyClass.random.blah() Jun 02 18:51:15 does this sound legit? : http://www.ibm.com/developerworks/websphere/library/bestpractices/string_concatenation.html Jun 02 18:51:56 GeeksOnHugs: no Jun 02 18:52:15 kk...i didn't think so, but it's ibm :P Jun 02 18:52:17 GeeksOnHugs: but you can just write a test case and run it through javap and take a look Jun 02 18:52:58 ok cool....ill write a test and be back Jun 02 18:53:01 to let you know Jun 02 18:53:18 I'm not familiar with javap, what if I just write a timer in my code...or what is javap Jun 02 18:53:34 GeeksOnHugs: if you're concatenating strings, you should use StringBuilder anyway Jun 02 18:53:53 GeeksOnHugs: javap is a class disassembler Jun 02 18:54:26 so I should follow that web page? str buffer, or is builder something else? why should I be using it, just convention? Jun 02 18:55:11 strings are immutable Jun 02 18:55:24 a = "foo" + "bar" makes three objects Jun 02 18:55:45 a crafty fucker extracts the backing char[] array out of a string and modifies it ;-) Jun 02 18:56:02 GeeksOnHugs: Using stringbuilder is more efficient. Jun 02 18:56:04 alankila: no, that's a jackass Jun 02 18:56:08 it could make 4 objects, I think stringbuilder is generated for that Jun 02 18:56:21 if the compiler doesn't directly work it out... *shrug* Jun 02 18:56:27 alankila: that's why I'm telling him to run it through javap and see what the compiler does under the hood :) Jun 02 18:56:29 yep, thats what that article was saying...so doing it in line without thinking about it is creating a bunch of objects which wouldn't have crossed my mind Jun 02 18:56:32 I once watched disassembly of java code and it was painful Jun 02 18:56:44 there apparently is strbuffer and strbuilder, the code using them looks the same, not sure the diff Jun 02 18:56:45 the string stuff looks nice in source but god damn what junk gets generated for it Jun 02 18:56:57 it is my first app, how i can look @ the logcat? I use eclipse with the sdk emulator Jun 02 18:57:05 OK cool, i'll use string builder, thx :) Jun 02 18:57:15 StringBuilder is faster, StringBuffer is thread safe Jun 02 18:57:16 GeeksOnHugs: the stringbuffer is an abortion, it uses synchronization because lot of early java collections did that Jun 02 18:57:26 GeeksOnHugs: but it turned out that was pointless Jun 02 18:57:41 s/collections/data types/ maybe Jun 02 18:58:04 sukramTM: Window > Show View > Logcat Jun 02 18:58:07 you still see StringBuffer with the regex replace loop though. :-/ Jun 02 18:58:08 evancharlton ... what about a string constant that plugs in other constants so it can be re-used with copy paste? Jun 02 18:58:38 so like table name is a constant, and fields are a constant...then the query is a constant plugging in the other constants Jun 02 18:59:14 that uses a StringBuilder under the hood Jun 02 18:59:25 kk cool ty Jun 02 18:59:30 alexfu: thx Jun 02 18:59:42 assuming you're referring to String#format Jun 02 19:00:07 private static final String STRING_CREATE =         Jun 02 19:00:08 "CREATE TABLE " TABLE_NAME " (_id INTEGER PRIMARY KEY AUTOINCREMENT, "          Jun 02 19:00:08 COL_NAME " TEXT, " COL Jun 02 19:00:29 yikes Jun 02 19:00:34 that's going to make a bazillion objects Jun 02 19:00:38 its from a book Jun 02 19:00:44 ok Jun 02 19:01:02 it's a constant Jun 02 19:01:09 well at least it'll only be done once Jun 02 19:01:15 yep Jun 02 19:01:30 OK, so that's nothing to worry about then Jun 02 19:01:38 private static final String STRING_CREATE = new StringBuilder().append("CREATE TABLE").append(TABLE_NAME).append(" (id…..").toString(); Jun 02 19:01:44 JakeWharton: no it wont Jun 02 19:01:48 don't do that, JakeWharton :( Jun 02 19:01:49 oh yeah Jun 02 19:01:51 inlined Jun 02 19:01:54 nvm Jun 02 19:01:59 all that crap will be inlined and in a static table Jun 02 19:02:13 i've only been awake for 10min Jun 02 19:02:23 brain is only operating at 10% Jun 02 19:02:37 no worries bro :) OK, so what's the verdict lol Jun 02 19:02:46 GeeksOnHugs: don't optimize until there's a problem Jun 02 19:02:55 especially with strings Jun 02 19:03:28 ok...I have one device my original android, that is allways slow so I worry about users like that Jun 02 19:03:35 under whatever you need you can ask here, where more people have the opportunity to help Jun 02 19:03:37 original droid rathre Jun 02 19:03:39 rather Jun 02 19:03:52 don't go sending PM to people unsolicited Jun 02 19:04:08 GeeksOnHugs: I can guarantee you that building a DB creation string is not the slowest part of your app Jun 02 19:04:17 t0mless: yes but if you start a sentence, you can finish it as well Jun 02 19:04:19 but I like being efficient as possible...especially here cause it affects battery too Jun 02 19:05:12 uhh...what? Jun 02 19:06:45 t0mless: probably an answer you don't want to hear Jun 02 19:07:31 :P Jun 02 19:07:36 speaking of efficiency...what of smali, is that "real" assembler? it's supposed to be dex vm assembler, but it looks object oriented...real assembler wouldn't be OO, right? Jun 02 19:08:13 now he's just confused me though, wtf do you mean by that under? Jun 02 19:08:25 http://code.google.com/p/smali/ Jun 02 19:09:16 t0mless: off topic. Jun 02 19:09:20 Ok I have now the logcat file, but i dont help me: http://pastebin.com/6uxsREV3 This code crash my APP: http://pastebin.com/G9MvZ8Ap When I delete the second OnClickListener, it works. How I can fix it? Jun 02 19:11:33 06-02 19:02:18.940: E/AndroidRuntime(219): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.bod.rdhelf/de.bod.rdhelf.ScoresTab}: java.lang.NullPointerException Jun 02 19:11:36 sukramTM: as someone from this chat had mentioned (i dont remember who) but make sure apgarListHF is not null. Jun 02 19:11:39 sukramTM: that thing is null Jun 02 19:12:27 is it possible to write real, to the metal assembler with the Android NDK? Jun 02 19:12:41 GeeksOnHugs: probably, but why would you want to do that? Jun 02 19:12:53 im just curious Jun 02 19:13:10 can i use OnClickListener on a spinner? Jun 02 19:13:31 robably, but why would you want to do that? Jun 02 19:13:47 j/k Jun 02 19:14:22 Geeks: you mean me? Jun 02 19:14:28 ok back to the code...thx Jun 02 19:14:37 yah, it was a joke based on evans lost answer to me Jun 02 19:14:49 I don't know the answer to that question, but I would assume yes Jun 02 19:15:08 im still too noob to answer Jun 02 19:15:50 sukramTM: can you pastebin your R.layout.scores_layout? Jun 02 19:15:52 I want to show a toast, when the user select a object from the spinner Jun 02 19:17:16 sukramTM: that sorta seems redundant. Jun 02 19:18:40 ? Jun 02 19:19:06 sukramTM: nvm, can you post your R.layout.scores_layout Jun 02 19:19:43 this.jsonString = savedInstanceState.getString("jsonString", null); Jun 02 19:19:52 ^^ any idea why i'd be getting a NoSuchMethodError? Jun 02 19:20:30 seems to me, savedInstanceState is a bundle and .getString is a perfectly valid method Jun 02 19:21:11 http://pastebin.com/PXkeb7hM . If I update IU from AsyncTask I get this error. How can I fix this? Jun 02 19:21:50 looks like getString was added in a later API than i'm using Jun 02 19:22:22 under You should still be calling setContentView in your Activity class' onCreate Jun 02 19:22:26 b1n0ry: getString(String,String) was API 12 Jun 02 19:22:27 b1n0ry: getString(String s, String default) was introduced since 12 Jun 02 19:22:44 yep, that seems to be the issue Jun 02 19:22:48 what's the recommended alternative? Jun 02 19:22:50 b1n0ry: you probably want getString(String s) which has been around since 1. Jun 02 19:22:52 under also, pastebin the whole stacktrace and your whole activity and task Jun 02 19:22:57 alexfu: http://pastebin.com/REQETtd7 Jun 02 19:23:05 b1n0ry: check with .containsKey(String) Jun 02 19:23:35 if (!contains) { f = "someDefault"; } else { f = .getString("myKey"); } Jun 02 19:24:17 t0mless: ok, but is there a way to change UI from AsyncTask? Becouse my Activity doesnt when change UI Jun 02 19:24:20 alexfu: and the apgar_layout: http://pastebin.com/Dak0aepa Jun 02 19:24:27 sukramTM: There is no View that exists with the id apgar_hf_spin in that Layout. Thats why you're getting a NullPointerException. Jun 02 19:25:00 under You can alter your UI elements from onPre/PostExecute and from onProgressUpdate or whatever that method is Jun 02 19:25:03 gotta bounce brb Jun 02 19:25:07 those are run on the main thread Jun 02 19:25:08 No, not probably, guaranteed. Jun 02 19:25:31 evancharlton, and alexfu, taking off the default seemed to work, thanks Jun 02 19:25:37 t0mless: http://pastebin.com/VtjjjcKQ Jun 02 19:25:43 alexfu: Ok, so it dont work, when it load the layout with the id with the first onclick event? Jun 02 19:25:44 hello all Jun 02 19:25:50 hi QubeZ Jun 02 19:26:28 I just started an Android targeted sdk 15 project from scratch and I'm a bit confused with enabling proguard. Is it the same as before? i.e. in project.properties I add proguard.config=proguard.cfg? Jun 02 19:26:32 under are you running a pircbot on your android device? Jun 02 19:26:35 i dont see any proguard.cfg Jun 02 19:26:38 b1n0ry: for future reference, d.android.com lists the API level of every public API Jun 02 19:26:46 t0mless: I'm Jun 02 19:26:59 Is that wrong, t0mless ? Jun 02 19:27:06 sukramTM: ? ScoresTab is using the R.layout.scores_layout, but you are trying to access R.id.apgar_hf_spin which doesnt exist in R.layout.scores_layout Jun 02 19:27:27 Not sure wrong is the right word... incredibly silly maybe Jun 02 19:28:21 t0mless: why? What have I to use? Jun 02 19:28:28 expecially because it seems like you're running and app inside the pircbot inside the android device Jun 02 19:29:09 alexfu: and when u click on the button in the scores_layout, it load the apgar_layout Jun 02 19:29:20 http://pastesite.com/37550 Jun 02 19:29:20 No, is just an app that uses pircbot apis to access to irc network Jun 02 19:29:27 trying to give a text view a dashed border Jun 02 19:29:33 it turns out as just black.. Jun 02 19:29:40 oops Jun 02 19:30:04 http://pastesite.com/37551 Jun 02 19:30:09 added the dotted_rect.xml Jun 02 19:30:22 sorry if someone responded to me and I didn't see it, just got disconnected Jun 02 19:31:20 I guess the new way to enable proguard is: proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -- but after I add it, I see no mapping.txt or dump.txt in my project Jun 02 19:32:13 under without looking at the IRC code in there I can only guess, but it seems like you've got a pircbot running and it's trying to start an activity when it recieves a file transfer Jun 02 19:32:21 omgwtfbbq Jun 02 19:32:25 which is probably done on another thread Jun 02 19:32:27 the market wont let me upload an apk Jun 02 19:32:33 anyone else experiencing this problem Jun 02 19:32:44 t0mless: you're a genius :D Jun 02 19:33:05 Not sure wtf you're trying to do Jun 02 19:33:18 You're right Jun 02 19:33:22 but pretty damn sure you can't start activities from inside a pircbot Jun 02 19:33:33 pircbot? Jun 02 19:33:42 Java based IRCBot Jun 02 19:33:54 I actually have one somewhere Jun 02 19:34:06 starting activity from an irc bot.. what's the use case? Jun 02 19:34:14 * t0mless shrugs Jun 02 19:34:20 it's possible, but I need to hear the use case. Jun 02 19:34:21 t0mless: why? I dont think that is the problem, I mean: I just have to change UI when I receive a file to show the download progress Jun 02 19:34:38 because pircbot is multithreaded like a mofo Jun 02 19:35:04 PircBot is a framework, it's not an "IRCBot" Jun 02 19:35:15 right Jun 02 19:35:20 it's the framework for an IRCBot Jun 02 19:35:31 whats the use case Jun 02 19:35:50 allow to download from IRC Jun 02 19:36:03 sukramTM: ok. So the first layout, R.layout.scores_layout, doesnt have R.id.apgar_hf_spin. but you're still trying to access it so you can attach an OnClickListener. Thats why there's a NPE Jun 02 19:37:44 ok, got iy Jun 02 19:37:46 it Jun 02 19:40:41 sukramTM: plus, you're trying to cast a spinner to a textview which doesnt make sense. Jun 02 19:42:12 alexfu: ok. the best way is to start an new activity? Jun 02 19:42:44 sukramTM: definitely. Jun 02 19:43:09 ok i try Jun 02 19:45:44 has anyone used an emulator running 4.0 w/ gpu emulation enabled on a mac? Jun 02 19:46:34 suppose i have an activity that includes a list. and that activity gets instantiated multiple times in the back stack. how do i ensure that each instantiation retains its own list? Jun 02 19:47:15 right now, it seems when i go back up the back stack, whatever the last instantiation set the list to is what all of the activities in the stack use. Jun 02 19:48:23 list needs to be member of activity and somehow stored and restored when the activity goes out of view and comes back into view Jun 02 19:48:38 or the instructions to make the list need to be saved Jun 02 19:49:09 that might be the best way. the list builds from a json response. i can save the response in local storage Jun 02 19:49:23 maybe onResume reloads it out of local storage and rebuilds the list Jun 02 19:59:31 interesting.seems my jsonstring is getting saved by saveinstancestate Jun 02 19:59:39 so i don't have to cache to local storage. i can use that. Jun 02 20:11:12 cool... it's workin' Jun 02 20:18:45 been playing with dataram ramdisk for building my projects... holy fastness. Jun 02 20:37:49 Why doesn't setContentView() set the UI after his esecution but after a bit? Jun 02 20:39:32 i have a list of fixed size images I want to display in a grid, but I want the number of columns in the grid to vary depending on the screen size. Is there a layout that varies the number of columns in a grid automatically? Jun 02 20:44:42 it's a nightmare Jun 02 20:46:14 use GridView? Jun 02 20:46:29 or write your own ViewGroup Jun 02 20:46:35 Indeed Jun 02 20:46:49 Not that difficult, I've acutally done one of those Jun 02 20:47:46 it was only a grid of boxes that changed color, but concept is the same Jun 02 21:06:05 Hi, i started developing for android today. I want to build an APP that can send SMS with a delay. I think i have to create a service and use a pending intent with the alarmManager but what is the best was to pass the data to the service? Jun 02 21:07:27 intent extras Jun 02 21:08:57 thx Jun 02 21:10:05 Is safe to setContentView many times in the same activity? Jun 02 21:10:21 * xximjasonxx will go with no Jun 02 21:11:43 xximjasonxx: ViewFlipper ? Jun 02 21:12:02 under, I recall doing an app once where I thought a good solution would be to use setContentView in the onResume Jun 02 21:12:26 if you have the need to call setContentView multiple time, fragments are probably your best bet Jun 02 21:12:27 however, I spoke with someone in here and they said that it was a bad idea, as was calling setContentView outside onCreate Jun 02 21:12:34 +1 fragments Jun 02 21:12:52 you should only need to use setContentView once Jun 02 21:13:19 if you need to replace your entire layout you should either use fragments or start a new activity Jun 02 21:13:37 ok thanks Jun 02 21:20:09 Does anyone here know if I should be able to use the BackupAgent (google cloud) backup on an HTC ego 4g? I'm messing around here and I can't seem to get it to work, its runniing version 2.3.3 Jun 02 21:20:35 it should work, but not every device supports it Jun 02 21:20:40 check in the system settings Jun 02 21:20:48 so even if you have > 2.2 it doesn't necessarily support it? Jun 02 21:20:48 see if you have a backup setting Jun 02 21:20:53 Correct Jun 02 21:21:00 in system settings, is it supposed to be in 'privacy' ? Jun 02 21:21:03 i don't even see that listed Jun 02 21:21:35 i think this must be the problem, i was just doubting myself since I thought all devices > 2.2 supportred it Jun 02 21:21:36 man, i have been away from Java for too long. I cant even remember how to implement a method that is available to me from a base class Jun 02 21:21:40 yes, it should be in there Jordman Jun 02 21:21:52 looking at AppWidgetProvider trying to figure out how to implement onUpdate Jun 02 21:22:06 t0mless, thanks for the help....so I guess i'm stuck with exporting/importing settings to the SD-card to persist data across installs Jun 02 21:22:11 if you're just trying to see if your BackupAgent class is working right, you can set the device to use the local backup manager Jun 02 21:22:31 but again, not alllll devices support it Jun 02 21:22:36 so you shouldn't have your app depend on it Jun 02 21:22:41 hmm, is that a device setting or part of the app configuration Jun 02 21:23:08 device setting Jun 02 21:23:09 right now i'm sending the backup request to both the backupagent and also sending to external sd-card space Jun 02 21:23:13 ment really for just testing Jun 02 21:23:41 ok, well i can test on another device too, i guess i'll quit banging my head against the wall trying to test it on this device Jun 02 21:23:49 Indeed Jun 02 21:23:59 you should defenitely use it Jun 02 21:24:05 but not as a requirement for your app Jun 02 21:24:11 that makes sense Jun 02 21:24:16 because you cannot be sure it will ever be used Jun 02 21:24:22 because even if a device supports backup Jun 02 21:24:25 a user can disable it Jun 02 21:24:30 sure, thats true Jun 02 21:25:44 Has anyone here ever used the RFCOMM style Bluetooth connectivity stuff? Jun 02 21:26:39 yeah Jun 02 21:27:09 cool....so i've found some massive issues with it in general. For example this HTC evo ....the default API doesn't work Jun 02 21:27:20 you have to use reflection to call some hidden functions to connect Jun 02 21:27:26 which works..... Jun 02 21:27:37 but then it leads to all kinds of complications....which i've worked around Jun 02 21:27:51 just making sure I can talk... Jun 02 21:28:21 but now I find often times the connection stalls out....and there is no way to kill the connection....so i have to actually toggle bluetooth on the phone off and on to unstick it Jun 02 21:28:34 Jordman: are you talking about the rfcomm channel? this is probably due to the fact that your other endpoint does not support SDP Jun 02 21:29:00 regarding stalling, I haven't had that reported yet. Jun 02 21:29:18 Ge0rG, the connection works, and it supports SDP as far as I know... Jun 02 21:29:47 i've used it alot, but this stall is periodic and seems to be caused by unique events Jun 02 21:30:04 though I had another "nice" issue: on some devices, there is an exception when closing the socket, and e.printStackTrace() throws an exception as well, crashing my app without knowing the reason wh Jun 02 21:30:08 +y Jun 02 21:30:19 Jordman: is it related to the phone going asleep? Jun 02 21:30:31 Jordman: maybe you need a wake timer to keep it running then Jun 02 21:30:36 eh. wakelock Jun 02 21:30:47 Ge0rG, it could be....i was concerned that when it went to sleep it was creating the issue Jun 02 21:31:04 the wake timer to keep the connection alive? Jun 02 21:31:32 ive actually hit the issue fairly repeatadly when i'm debuggin the app....it connects...then i re-launch the app and it stalls, not 100% but very frequent Jun 02 21:31:39 then i toggle BT and it connects right away Jun 02 21:32:16 So i'm just determining if this is a 'unique' case to the particular phone i'm using or maybe something buggy with HTC drivers Jun 02 21:32:46 Jordman: most issues actually relate to a certain driver set. you should try with a different phone model Jun 02 21:33:09 yeah, i've started testing a little with another device, i dont have enough data to say one way or another Jun 02 21:33:13 Jordman: have a look at http://developer.android.com/reference/android/os/PowerManager.WakeLock.html - however be aware that it will be eating your battery Jun 02 21:33:24 so probably its not good for production Jun 02 21:33:43 result code of an activity started for result is always 0... even when I setResult(RESULT_OK)? Jun 02 21:33:45 i'll look into that...not real familiar with it Jun 02 21:34:11 if the driver is buggy though, it sort of stinks to try to release anything , as i'm not the only one that will run into the issue Jun 02 21:34:56 i wish there was some way a good thorough 'reset' to the BT device driver at the application launch,,,,without actually toggling the BT on and off Jun 02 21:38:27 result code of an activity started for result is always 0... even when I setResult(RESULT_OK)? Jun 02 21:39:03 having a devil of a time getting my first foray into widgets to work. keep getting class not found exewc Jun 02 21:39:48 Ge0rG, thanks for the help....I think i'll just focus on testing some other devices to see if its a specific device issue Jun 02 21:49:47 result code of an activity started for result is always 0... even when I setResult(RESULT_OK)? Jun 02 21:50:48 I'm gonna keep repeating that question every once in a while until someone answers me. Jun 02 21:55:28 Hey guys, I'm trying to start an Activity using a method in the same class.How would I do that, or am I approaching this all wrong? Jun 02 21:56:34 I think it's much easier and much more portable to just code everything you want in opengl rather than mess with views and viewgroups Jun 02 21:57:07 what a mess this ui stuff is, how come they don't simply copy HTML Jun 02 21:57:28 and CSS Jun 02 21:57:31 result code of an activity started for result is always 0... even when I setResult(RESULT_OK)? Jun 02 21:57:41 imbusy; it's similar to HTML Jun 02 21:57:47 cos, you know, XML Jun 02 21:57:53 still, nothing like it Jun 02 21:57:53 why not use Eclipse's Android plugin and use design view? Jun 02 21:58:13 i'm using it, but the available layouts just don't cut it Jun 02 21:58:23 then learn how to write your own and stop being so lazy Jun 02 21:58:31 even though I'm doing a very simple thing Jun 02 21:58:36 I will, in opengl Jun 02 21:58:43 then your users will hate you for it. Jun 02 21:58:57 doubt it, it's a game UI Jun 02 21:59:11 ... why are you trying to do a game UI with viewgroups anyway? Jun 02 21:59:20 cause I thought it might be easier Jun 02 21:59:32 I just wanted to list the available levels as a grid Jun 02 21:59:33 I thought you were being an idiot and writing an actual application to use opengl Jun 02 21:59:33 i have a gallery view, with a button to the side of it. if the button is a higher layer than the gallery, then gallery items go underneath it when they swipe. if the button is underneath, it cant be clicked. anyone know a resolution? Jun 02 22:02:09 IntelliJ > Eclipse Jun 02 22:02:35 seems to be that most people who start in Android use Eclipse, once they do Android long enough they switch to IntelliJ Jun 02 22:02:58 I have also a gallery question, how do I make the gallery start from the left side of the screen and not just the center. Jun 02 22:03:38 IntelliJ works on ubuntu ? Jun 02 22:03:39 How can start an activity of a method? Jun 02 22:04:02 you need to get the context of the Activity Jun 02 22:04:09 and start it from the context Jun 02 22:04:29 okand_, there is a Linux version. Ive never used it. Like Eclipse its written in Java, so it should run anywhere Jun 02 22:04:35 Which would be using Intent? Jun 02 22:04:56 u need to pass that method your context Jun 02 22:05:34 and then just call context.startActivity(new Intent(context,AnotherActivity.class)); Jun 02 22:06:29 What if the method is in the same source file as where your trying to start the activity from? Jun 02 22:06:42 Why i dont get a toast, when i select a Subject in the spinner? http://pastebin.com/FQ9vX1CY Jun 02 22:07:21 ZettaZete, is your method written inside an activity class? Jun 02 22:08:00 sukramTM, getApplicationContext doesnt mean what you think it means. But in your case, you can use "this" instead Jun 02 22:08:28 u can also use getBaseContext(); Jun 02 22:08:58 okand_, which will probably work better, seeing as I just noticed he spliced that source together. I dont think that onSelected method is in Activity Jun 02 22:09:02 in fact I hope it is not Jun 02 22:09:22 okand_ I'm basically filling in as a Android developer for a day. I have no idea what I'm doing, just what I need to achieve. XD I have a single source file which where I want to start an Activity of a method in the same file. Jun 02 22:09:23 likely in an adapter, which I usually pass Context to, or inject if I can Jun 02 22:10:36 If you are interested, I can paste bin the general idea of what I have. Jun 02 22:10:48 yea that could help Jun 02 22:12:23 stupid question: if i put a Button inside my widget, can the user press that button without launching into an activity and ONLY affecting the widget Jun 02 22:12:27 like I want to start a timer Jun 02 22:12:38 stopwatch rather Jun 02 22:13:21 i think i am going to order pizza tonight Jun 02 22:15:13 okand_ http://pastebin.com/wpvxiQnm here it is. Its not the whole source but the general idea of what I"m trying to do. Jun 02 22:16:03 The android testing stuff leaves something to be desired Jun 02 22:16:23 I'm looking at robolectric now, but it seems like so many hoops to jump through Jun 02 22:17:21 robolectric is slow as balls too Jun 02 22:17:35 i'd recommend abstracting your logic into POJOs and testing them with plain JUnit Jun 02 22:19:16 JakeWharton t0mless - if i want to code up a button which only has an effect on the widget itself, does not launch an application, is that possible? Jun 02 22:19:31 why are you asking me? Jun 02 22:19:44 t0mless, you seem to know your stuff :) Jun 02 22:20:57 yes Jun 02 22:21:19 ok, thats all i needed to know. thanks Jun 02 22:21:23 JakeWharton: that's what i've ended up doing Jun 02 22:23:54 * pragma- swears loudly at Spinner. Jun 02 22:24:27 pain to distinct programmatically selecting a spinner item vs the user selecting it -- either way, there's only onItemSelected which gets fired off in both cases Jun 02 22:25:09 async actions are a pain Jun 02 22:25:45 * xximjasonxx huggles C# :) Jun 02 22:26:24 is there an easy way to restore a Preference to its default value from within the PreferenceActivity? Jun 02 22:26:30 I dont understand why eclipse say: The type ApgarCalc must implement the inherited abstract method AdapterView.OnItemSelectedListener.onNothingSelected(AdapterView)http://pastebin.com/4VrMPtY7 Jun 02 22:26:38 http://pastebin.com/4VrMPtY7 Jun 02 22:27:00 because you have to implement all methods of an interface Jun 02 22:27:20 sukramTM, just use "this" for context Jun 02 22:31:47 okay, new question - how do I refresh the current preferences screen without having to exit it? Jun 02 22:33:14 okand_ alright figured it out, I was just making it too complicated. However, now my app is crashing because of RunInBackground Jun 02 22:34:31 sd Jun 02 22:35:37 http://i.imgur.com/mQAlN.jpg Jun 02 22:36:00 i thought onUpdate would fire based on the frequencey specified in my xml provider file. I am only seeing it fire the initial time and not after Jun 02 22:36:39 less than 24 hours from now, i'll be sitting in the sun in fabulous las vegas, nevada... mmmm Jun 02 22:36:49 just thought i'd brag Jun 02 22:37:28 What could cause an app to crash when using runinbackground Jun 02 22:38:29 ok, i am clearly reading in the docs that onUpdate should be called multiple times based on the polling value. So why isnt it Jun 02 22:38:35 anybody? anybody at all? refresh a preference screen without exiting? Jun 02 22:38:42 xximjasonxx: it is an other code Jun 02 22:39:41 JakeWharton: what i doesnt implent? Jun 02 22:40:26 b1n0ry: have fun in the dry sticky heat Jun 02 22:40:40 dry, sticky... that's an oxymoron ;) Jun 02 22:40:43 i love it there Jun 02 22:40:49 las vegas is a real shithole, unless you're just spending a weekend there and only stay in a hotel on the strip and never go 2 blocks off the stip Jun 02 22:41:14 3wks, orlando, hot japanese chick coming to visit from Japan == fun Jun 02 22:41:21 yeah for international friends Jun 02 22:41:27 what is it, 109 degrees there today? Jun 02 22:41:39 okay, erm, wtf, why am I getting a ClassCastException for java.lang.String on the line addPreferencesFromResource() ? Jun 02 22:42:42 I can see how you might think las vegas is a nice place if you're coming from some place like Wisconsin Jun 02 22:43:20 pragma-, i'm staying in a suite at the venetian Jun 02 22:43:24 am I being fucking ignored today or something? Jun 02 22:43:37 I've asked about 5 or so different questions and not one person's even acknowledged me Jun 02 22:43:38 chrizc, maybe knows an answer to your question... Jun 02 22:43:40 you're not asking intelligent, actionable questions Jun 02 22:43:51 *nobody Jun 02 22:44:33 although i'm having a heck of a time with my southwest early-bird check-in Jun 02 22:44:36 i hate their open seating Jun 02 22:44:38 I have family that lives in Vegas, and I visit that shithole city about 4 times a year, outside of the hotels and the strip. Jun 02 22:45:03 Even the hotels feel cheap and plastic, gold plated and pseudo-marble everywhere. Jun 02 22:45:04 alright fine, here's my preferences.xml http://pastie.org/private/5gqb3wepcq8em7sbnsjq and here's my preference activity. http://pastie.org/private/gz6qeznyacpu3w1vfnq8a error's been highlighted in the source Jun 02 22:45:50 pragma-, it's all about the show for tourists and the entertainment Jun 02 22:46:03 dumbest tourists on the planet Jun 02 22:46:12 * pragma- points at b1n0ry Jun 02 22:46:19 or smartest advertisers? Jun 02 22:46:30 sex,money, free4all Jun 02 22:46:45 you can walk into a bar and get free sex in most cities :/ Jun 02 22:46:54 but, its not vegas Jun 02 22:47:03 vegas has a persona Jun 02 22:47:08 * xximjasonxx has had a different experience with bars.... and he lives in Chicago Jun 02 22:47:12 what happens n vegas, stays Jun 02 22:47:49 like amsterdam, tons of weed and hookers, yet that's everywhere Jun 02 22:47:55 but to say u've been is the gold star u get Jun 02 22:47:55 pragma- must be a real ladies man Jun 02 22:48:16 xximjasonxx: it's called "here, let me buy you 10 shots until you pass out" Jun 02 22:48:37 * xximjasonxx is old fashioned, actually likes to have a conversation :) Jun 02 22:48:50 still nobody? Jun 02 22:48:51 xximjasonxx welcome to 2012 Jun 02 22:49:07 canvs2321, appreciate the welcome Jun 02 22:49:09 women these days of the mental capacity of a twitter message Jun 02 22:49:14 of/have Jun 02 22:49:19 :) np, just don't forget to tip Jun 02 22:49:38 pragma-, i'm married, and i'm entertainment ;) Jun 02 22:49:44 not a tourist this time around Jun 02 22:49:45 free lapdances on tips over 140characters Jun 02 22:49:54 when did #android-dev become #talkaboutsexandwomen Jun 02 22:49:55 ? Jun 02 22:50:03 pragma-, I tend to view women who are that easy with a bit of skepticism. I say to myself, if it is that easy to get in her pants, how many other guys have done it as well. Jun 02 22:50:04 when most #android-developers are guys Jun 02 22:50:19 xximjasonxx, or how much money will you be out in the morning ;) Jun 02 22:50:29 chrizc: today is a honorary #android-dev-ignores-chrizc day Jun 02 22:50:32 b1n0ry, rather avoid that problem if i can :) Jun 02 22:50:38 pragma- totally seems like it. Jun 02 22:50:56 i would probably like to go their as a tourist sometime mostly for the shows. Jun 02 22:51:01 there Jun 02 22:51:10 wow... mr. grammar police used the wrong 'their' Jun 02 22:51:11 chrizc: i'm sorry you are not getting any love, but i prefer #android-dev being #talkaboutsexandwomen rather than #complain Jun 02 22:51:41 b1n0ry, but seriously with the rampant nature of STDs these days, you fuck a chick who is that easy, god only knows what you could wake up with in the morning Jun 02 22:51:56 Deifyed if Android's error messages and reasons why it was erroring actually made logical sense, I wouldn't need to complain. Jun 02 22:51:58 xximjasonxx there's a pill for that Jun 02 22:52:05 very true, thus... i'm married anyway so not really looking for that. i'm a window shopper these days Jun 02 22:52:08 canvs2321, there is no pills for sifilis Jun 02 22:52:16 ^syphillis Jun 02 22:52:17 yes there is Jun 02 22:52:18 fuck you Jun 02 22:52:32 b1n0ry: you can still go in the dressing rooms and try on a garment and check it out in the mirror, then decide not to buy Jun 02 22:52:34 we aren't al capone Jun 02 22:52:35 there is one for syphillis. just not sifilis. maybe it's something different. Jun 02 22:52:40 lmao Jun 02 22:52:58 i find the error messages always manage to show me the way - its just a matter of time Jun 02 22:53:07 cyanide cures syphillis Jun 02 22:53:12 Deifyed, if only women had error messages Jun 02 22:53:19 they do Jun 02 22:53:23 i usually set try{}catch() on any stds Jun 02 22:53:25 they're always happy to tell you what you coded wrong Jun 02 22:53:27 b1n0ry, where is that damn logcat Jun 02 22:53:41 xximjasonxx: yeah, wheres the womencompiler Jun 02 22:54:00 Deifyed; well then, maybe you can find the way to my error - it's posted up above. Jun 02 22:54:01 I prefer to redirect the woman's logcat to /dev/null and keep her in the kitchen Jun 02 22:54:06 but a better question is, why the hell am i not seeing the expected behavior with this widget Jun 02 22:54:15 driving me up the wall Jun 02 22:54:26 one who tries to keep women in the kitchen obviously doesn't know what to do with them in the bedroom ;) Jun 02 22:54:36 that's what the mistress is for Jun 02 22:54:40 i'd rather make my own sandwich and keep her there Jun 02 22:54:50 *shakes head* Jun 02 22:54:53 b1n0ry sounds like someone's never had sex on the kitchen counter. Jun 02 22:54:58 you like to keep your woman in your sandwich? Jun 02 22:55:08 now there's an interesting concept... Jun 02 22:55:12 * b1n0ry daydreams Jun 02 22:55:35 chrizc, you'd be surprised... Jun 02 22:56:47 chrizc: maybe its cuz your using a deprecated method Jun 02 22:57:03 Deifyed; oh? which one this that? :S Jun 02 22:57:11 None of them have been flagged as deprecated in my IDE. Jun 02 22:57:19 pragma-, i'll be performing at at least 4 different places but i think they're all private events. not sure if i'll get opp. for any public performances. Jun 02 22:57:26 chrizc: addPreferencesFromResource Jun 02 22:57:34 :S Jun 02 22:57:41 so, erm, what the hell do you do instead. Jun 02 22:57:45 http://developer.android.com/reference/android/preference/PreferenceActivity.html#addPreferencesFromResource%28int%29 Jun 02 22:57:58 chrizc: http://stackoverflow.com/questions/6822319/what-to-use-instead-of-addpreferencesfromresource-in-a-preferenceactivity Jun 02 22:58:09 chrizc: i dunno, never used that stuff before Jun 02 22:58:36 dafuq android, seriously. this is why I hate developing for you. Jun 02 22:58:37 god damn. Jun 02 22:59:00 chrizc: its probably not the main problem, but maybe the other way might enlighten you somehow Jun 02 22:59:37 look what we did, we killed #talkaboutsexandwomen - shame on us Jun 02 22:59:55 wtf is wrong with you talking about android dev in our sex and women channel!? Jun 02 22:59:55 erm Jun 02 22:59:58 Deifyed Jun 02 23:00:13 the given sample code from PreferenceActivity quotes addPreferencesFromResource() Jun 02 23:00:14 :S Jun 02 23:00:28 another reason why I hate android - the support docs are always out of date and confusing. Jun 02 23:00:37 gotta love the "we're going to deprecate code but not give you any current examples" documentation Jun 02 23:00:39 b1n0ry: so sorry, don't tell no ops Jun 02 23:01:05 BAH, southwest won't let me early bird check in... Jun 02 23:01:31 chrizc: i've never messed with preferenceactivity's, but i'm assuming u r n control of the Content and preferences' etc...so why aren't u able to change settings upon changes? Jun 02 23:01:36 at least they gave me a "B" boarding group. i might at least get an aisle seat Jun 02 23:01:42 canvs2321 ...what? Jun 02 23:01:49 use full words and sentences, please. Jun 02 23:01:57 you r asking how to update it dynamically Jun 02 23:01:59 so, why can't u Jun 02 23:02:10 u created and r controlling code.....soooo Jun 02 23:02:11 I'm asking why the hell it's giving me a ClassCastException for no god damn reason. Jun 02 23:02:23 there's a reason, clean ur project and try again Jun 02 23:02:30 canvs2321 can you tell me why it's so difficult to type two extra letters per word? Jun 02 23:02:32 then find the error with logcat Jun 02 23:02:42 I have the freaking error Jun 02 23:02:43 cuz i've been drinkin? Jun 02 23:02:49 then find that line and fix it Jun 02 23:02:57 ... you've obviously not been reading along Jun 02 23:03:06 the error is ClassCastException: java.lang.String Jun 02 23:03:08 error line: Jun 02 23:03:12 addPreferencesFromResource(R.xml.preferences); Jun 02 23:03:24 so yeah. Jun 02 23:03:39 pretty much i deal with errors all the time, but it gives u the exact line of err, then you start back tracing Jun 02 23:03:44 to see what the exception is Jun 02 23:03:50 that's the only line within my program it gives me Jun 02 23:03:55 rest is inside android etc. Jun 02 23:04:02 canvs2321 I know how the fuck to debug shit with stack traces Jun 02 23:04:02 but there is other lines that led to that line Jun 02 23:04:06 no Jun 02 23:04:07 there isn't Jun 02 23:04:18 then u've narrowed it down, now fix it :) Jun 02 23:04:29 canvs2321 are you medically retarded Jun 02 23:04:39 possibly? Jun 02 23:04:40 how can you fix a ClassCastException on a line that does not cast any classes. Jun 02 23:04:46 chrizc: maybe your xml file is corrupt Jun 02 23:04:46 s/classes/casts Jun 02 23:04:48 you rebuild&clean Jun 02 23:05:47 canvs2321; done. exact same error. Jun 02 23:05:50 Deifyed; nope, xml file is fine. Jun 02 23:07:07 did you check the source for the deprecated method? it should tell you why its throwing classcastexception Jun 02 23:09:09 chrizc have u tried googling? just a quick search brought up something similar but for integers, http://stackoverflow.com/questions/5502915/addprefencesfromresource-causes-classcastexception Jun 02 23:09:22 chrizc: did you try to use the PreferenceFragment instead? Jun 02 23:09:31 ...haveitried... of course I've tried googling god damn Jun 02 23:10:08 http://stackoverflow.com/questions/4837489/why-am-i-getting-a-classcastexception-here Jun 02 23:10:10 etc... Jun 02 23:10:24 pretty much, there is an answer, but you hold all the keys Jun 02 23:10:34 chrizc: if you've tried everything, i doubt anyone here can help :P Jun 02 23:12:01 pretty much just those 2 stackoverflows would give me enough information to find my error Jun 02 23:13:03 alright, think I've found the problem - I'm using the ColorPickerPreference lib, and I'm attempting to restore the default values by writing Strings of the hex values back to to the preference... however CPP doesn't like me using strings... so how am I supposed to restore a HEX value back to a CPP? Jun 02 23:13:38 take the string and convert to hex? Jun 02 23:13:52 how would I do that, and then how would I use it with a preference Editor? Jun 02 23:14:29 you can always read the string char by char and turn into hex value? Jun 02 23:14:38 "and then how would I use it with a preference Editor?" Jun 02 23:14:41 hex is just 0-h right? Jun 02 23:14:46 shit man, google Jun 02 23:14:53 i can only give so much srry :) Jun 02 23:14:55 * Deifyed pets canvs2321 Jun 02 23:14:57 or you could just tell me how to easily restore a Preference's default value Jun 02 23:14:58 its ok, its ok Jun 02 23:15:02 I tried to google that one, too and got nothing Jun 02 23:15:16 canvs2321 and I meant a hex colour code. Jun 02 23:15:39 why is there no simple Preference.restoreDefault() method Jun 02 23:15:42 I mean, come on. Jun 02 23:15:51 chrizc: i'd like to meet you in person to shake your hand if you've actually managed to come across problems which isn't googlable Jun 02 23:15:59 heh. Jun 02 23:16:26 chrizc, just remember u r the conductor, you have 100% control of ur app, you may hit pitfalls, but if u r determined, anything is possible!!! all questions have answers, may just take a few to find them Jun 02 23:16:34 The only solution I've gotten from google about how to restore a Preference's default value is run from the main activity - I need something that can be run from the Preference Activity. Jun 02 23:16:43 canvs2321 how high are you. Jun 02 23:16:48 i'm drunk remember Jun 02 23:16:52 seriously, you give off an extreme aura of high Jun 02 23:17:03 you sound high, not drunk. Jun 02 23:17:05 pretty much u r n control of ur app Jun 02 23:17:14 ok i may b alittle high and drunk :P Jun 02 23:17:20 but i didn't inhale Jun 02 23:17:35 inhaling is the fun bit. Jun 02 23:17:36 your greatest mistake of the night yet Jun 02 23:17:44 hahaha Jun 02 23:18:46 hmm. someone should take responsability. chrizc, quick! create the Preferences.restoreDefaults() method! Jun 02 23:19:10 .-. how would I even go about doing that and submitting it to google Jun 02 23:19:15 chrizc: i started learning java for shits & giggles, i've managed to take that to a great place, but i have problems/errors all the time!! But I always know there is an answer. Anything is possible, its just realizing this and hunting! Jun 02 23:19:16 do they have a github or something Jun 02 23:19:28 * chrizc tapes canvs2321's mouth closed Jun 02 23:19:40 chrizc: source.android.com Jun 02 23:19:42 tapes is weak if moisture is present Jun 02 23:19:43 android is on github ye Jun 02 23:20:08 Deifyed: no Jun 02 23:20:21 no? Jun 02 23:20:25 all submissions must go through source.android.com Jun 02 23:20:38 ah, but its still on github Jun 02 23:20:41 the github mirror is out of date and not monitored or mirrored Jun 02 23:21:04 it was a one-time exception when kernel.org went down Jun 02 23:21:07 you scared me, i started wondering what i was watching Jun 02 23:21:12 and, frankly, should be taken down Jun 02 23:21:20 oh okey. thanks for enlightening me Jun 02 23:21:37 android.googlesource.com is the official source review tool and repository Jun 02 23:22:42 hm, an easy question then - say I have a variable in a class, then in that class I instantiate a new OnPreferenceClickListener() { } - how do I reference the variable inside the sub-class? Jun 02 23:22:58 you define it in the main class Jun 02 23:23:40 ...what? Jun 02 23:23:46 if you have it inside a method in that main class, then you have to make it final to get to a sub class Jun 02 23:23:51 if your listener is anonymous, you need to make the variable final, or pass it some how Jun 02 23:23:58 right Jun 02 23:24:03 or a member variable Jun 02 23:24:24 or the butterfly effect Jun 02 23:24:39 don't hate on me chriz :) i am really only trying to help, but i have that drunken swagger (: Jun 02 23:24:40 well, I tried looking into PreferenceManager.setDefaultValues() but that seems to reset the ENTIRE preferences Jun 02 23:24:53 why the hell did google make it so difficult just to simply restore a default value Jun 02 23:25:02 i have a gallery in the center of my activity with a button to the side of it. if the button comes first it cant be clicked, but if the button is in front then the images are obscured by it when they are swiped. anyone know a way to make it behind gallery but still clickable? Jun 02 23:25:48 mahamoti: why would you want a button behind a gallery? Jun 02 23:25:58 its not really behind, its off to the side of Jun 02 23:26:21 try giving the gallery weight:1.0 Jun 02 23:26:24 there is a swipable image in the center of the screen (gallery) and a button to the side of it Jun 02 23:26:26 &like i've said i've never dealt with preference activities, i just make my own preferenece activities, all custom for me, as i know i have control, so i dont have to learn new things :) Jun 02 23:26:43 the derp is strong here Jun 02 23:27:03 Deifyed, can you explain your reason for that suggestion? Jun 02 23:27:28 mahamoti: not really, i just know it presents room for stuff that sometimes disappears Jun 02 23:27:32 :P Jun 02 23:28:01 mahamoti: you should pastebin ur problems Jun 02 23:28:10 well, as i understand its the percentage of a linear layout that it fills... Jun 02 23:28:30 i would pastebin if it was a code issue, but this is a logic issue Jun 02 23:28:40 i need an IDEA Jun 02 23:28:56 i'd try the weight thing Jun 02 23:29:04 or use relativelayout instead Jun 02 23:29:06 but u say the button comes first, what does that mean Jun 02 23:29:15 the layout of it is properly set already Jun 02 23:29:24 and it is in relative layout so weight wouldnt work anyway Jun 02 23:29:59 then layout_alignToRight/Left ? Jun 02 23:30:09 ^^ Jun 02 23:30:13 fucking. finally. Jun 02 23:30:15 its not a layout issue Jun 02 23:30:19 the layout is perfect Jun 02 23:30:23 its a z-order issue Jun 02 23:30:25 finally figured the damn thing out Jun 02 23:30:30 chriz how? Jun 02 23:30:34 happyclapp chrizc Jun 02 23:30:36 Editor.clear(); Jun 02 23:30:52 returns it to its default value Jun 02 23:30:55 fundamentally, the question is, how can i detect onClick on a view and pass it down to a view thats underneath Jun 02 23:30:59 interesting, just google why it works :) Jun 02 23:31:05 why couldn't they make that more freaking obvious. Jun 02 23:31:14 noowwww, on to my earlier question Jun 02 23:31:25 how do I refresh a preferences page without exiting the activity? Jun 02 23:31:32 mahamoti: you have 100% control of all views Jun 02 23:31:35 mahamoti: doesnt gallary have an onclick thing? Jun 02 23:31:51 canvs2321 wtf is with you and 100% control? Jun 02 23:32:00 because that's how it is? Jun 02 23:32:03 do you get a dollar for every time you say it? o.o Jun 02 23:32:05 it's ur freakin app Jun 02 23:32:08 chrizc: its why he drinks, to have 100% control Jun 02 23:32:12 heh. Jun 02 23:32:15 :) Jun 02 23:32:34 it's code, you write it, and need to know it's flow, and you can control all of it? Jun 02 23:32:45 nothing is magical Jun 02 23:33:11 canvs2321: unless you write everything from scratch, you need to manouvre through the api-maze Jun 02 23:33:23 canvs2321 has been smoking some funky shit. Jun 02 23:33:30 i do write everything from scratch, it's how i learn Jun 02 23:33:43 sure maybe down the road i optimize, but i know wtf i'm doing Jun 02 23:33:54 or atleast what i expect Jun 02 23:34:06 in that case, impressedclap Jun 02 23:34:20 so, anybody? refresh preference screen without exiting the activity? Jun 02 23:34:34 oi - android updated github 9 days ago Jun 02 23:35:02 chrizc: i don't know how good this is, but setContentView again? Jun 02 23:35:15 that's a bad idea Jun 02 23:35:16 chriz refresh in what way, a checkbox gets checked, a new folder for downloading porn, a star to be added....what Jun 02 23:35:19 I don't think android uses github. That's an unofficial clone. Jun 02 23:35:21 t0mless: thanks Jun 02 23:35:28 Deifyed; I never even call setContentView Jun 02 23:35:34 simply addPreferencesFromResource Jun 02 23:35:58 well if u r loading from resource it wouldn't be updating, it'd be setting to default? Jun 02 23:36:00 canvs2321; refresh in the way that I've just updated some preferences via code, and I want those new values to be shown on screen without having to exit and re-enter the activity Jun 02 23:36:08 android uses https://android.googlesource.com/platform/manifest Jun 02 23:36:09 no idea. ill stop my guessing before i do something bad Jun 02 23:36:49 what can i do if ExifInterface.TAG_ORIENTATION always returning 0? Jun 02 23:36:53 https://android-review.googlesource.com is useful for finding code too Jun 02 23:36:56 pragma-: oki. this other dude earlier told me it was an old emergency solution when something went down Jun 02 23:37:12 yeah, kernel.org got hacked Jun 02 23:37:19 i need to know in what orentation image was taken Jun 02 23:37:46 daniel, maybe check width vs height? Jun 02 23:38:01 its always the same Jun 02 23:38:05 if width > height == landscape, etc Jun 02 23:38:13 then why matter? Jun 02 23:38:27 always width > height Jun 02 23:38:37 sounds suspect Jun 02 23:38:57 maby im checking it wrong? Jun 02 23:39:18 canvs2321: shouldn't you be somewhere else then irc when your drunk Jun 02 23:39:23 ooh, this.recreate(); seems promising. Jun 02 23:39:38 deifyed, probaly not, the whole dui thing Jun 02 23:40:11 oh that. your right Jun 02 23:40:17 inb4 this fails horrible. Jun 02 23:40:25 s/horrible/horribly Jun 02 23:40:25 am i not helpful? :) i just want ppl to know, that when creating an app, the coder can do anything! ? Jun 02 23:40:52 yep - failed horrible. Jun 02 23:41:07 yeah you are, i just ment you should be out having loadsa fun - like failing to convince a gal home to look at your code collection Jun 02 23:41:28 gah Jun 02 23:41:29 horribly* Jun 02 23:41:39 yeah that's where wife&kid slow my progress :P Jun 02 23:42:09 im trying another way... Jun 02 23:42:26 try away, u'll get it! Jun 02 23:42:28 canvs2321: your in 100% control, i bet you can find a way Jun 02 23:42:37 hahah :) Jun 02 23:42:55 okay, this.recreate() is a dead end Jun 02 23:42:55 ): Jun 02 23:43:42 chriz: why not on ur onclick listener, you update the preference activity of the loaded preferences' Jun 02 23:43:58 canvs2321 width > height always. my motorola razer automatically swapping Jun 02 23:44:01 that made no sense Jun 02 23:44:22 .commit()? Jun 02 23:44:24 canvs2321 you made zero sense. Jun 02 23:44:29 im not sure i understand your problem Jun 02 23:44:33 the derp is strong here Jun 02 23:44:35 Deifyed; me? Jun 02 23:44:39 chrizc: yeh Jun 02 23:44:44 alright, one sec Jun 02 23:45:15 chriz: i have a preference, i set an onclick listener, upon clicking i change the value/option/etc of the other preferences i've set with blah blahx = (blah)findViewById(blah); Jun 02 23:45:36 I have a set of preferences inside a preference screen. one of those preferences is a preference button which, on click, resets the other preferences to their default values. this happens fine. however, on the screen, the old values are still displayed. I have to exit the activity and re-enter for the changes to be displayed Jun 02 23:45:39 canvs2321 read above. Jun 02 23:46:00 I want the changes to be displayed without having to exit and re-enter the activity. Jun 02 23:46:44 hmmm Jun 02 23:47:07 may have found it - at least for the Color Picker preference I'm using Jun 02 23:47:09 standby Jun 02 23:47:15 are you defining your views in onCreate etc? if u make those views global, on ur onclick you can change/set them to different values/settings? Jun 02 23:47:30 chrizc: if i did that, i'd probably have a method which populated the views with values, i'd just call the populate method again Jun 02 23:47:50 I'm not populating any views, I'm just calling addPreferencesFromResource :S Jun 02 23:48:20 sorry thats where my lack of Preference activities fails, i'm sorry :) Jun 02 23:48:27 how are you displaying the values Jun 02 23:48:28 what can i do if ExifInterface.TAG_ORIENTATION always returning 0? Jun 02 23:48:47 daniel, do it manually and get the values Jun 02 23:49:00 they may not have been set with the camera Jun 02 23:49:07 Deifyed; I dunno, but they display fine just using addPreferencesFromResource inside onCreate Jun 02 23:49:10 or some ppl strip Exif data Jun 02 23:49:20 how can i do that please? Jun 02 23:49:37 wahoooo Jun 02 23:49:37 maybe using BitmapFactory and loading an getting the details? Jun 02 23:49:41 got it to work properly Jun 02 23:49:51 chrizc: sorry, im not very good with android and this is really confusing me. how are you displaying anything if its not a view or a toast Jun 02 23:49:52 had to change one simple private function in the ColorPickerPreference lib to public Jun 02 23:49:54 and it was fiiine. Jun 02 23:49:59 nice! Jun 02 23:49:59 :) Jun 02 23:50:01 i will check it. thanks canvs Jun 02 23:50:02 Deifyed; it's a PreferenceActivity. Jun 02 23:50:18 but yeah, got it working, finally. Jun 02 23:50:19 god damn. Jun 02 23:50:40 chriz: like i say u r n 100% control :P just have to debug alittle Jun 02 23:50:44 hmm. never used it. thanks for telling me :D Jun 02 23:50:57 i'da gone all canvs2321 on it and done it custom Jun 02 23:51:02 lol. Jun 02 23:51:04 :) Jun 02 23:51:08 custom ftw Jun 02 23:51:31 or for the lazy which i am :P i hate learning ways others do things, i wanna be the omega Jun 02 23:52:03 yeah, though i enjoy staying as android as possible - following their ways of doing it Jun 02 23:52:22 im going by the "whole android team probably knows how to do this better than me"-logic Jun 02 23:52:32 i'm slowly starting to go the android way, but shhhhh Jun 02 23:52:34 okay, got another problem. I have a text field which can only contain numbers. I set the android:inputType to "number", but when the keyboard comes up, it's not the number input - it's just the keyboard switched into number format Jun 02 23:52:40 how do I make it just come up with the numbers? Jun 02 23:52:43 like the phone dialer? Jun 02 23:53:05 chrizc: sounds to me you'd be interested in renting an android developer for your app Jun 02 23:53:30 nope. Jun 02 23:53:31 deifyed: he just needs to realize google is his bff Jun 02 23:53:33 i know it sounds cheaper asking #android-dev to code it, but in the end its more hazzle :P Jun 02 23:53:38 I /am/ an android developer. Jun 02 23:53:46 canvs2321: whaat, google is my bff! Jun 02 23:53:53 and I'm not asking them to code it - I'm asking them to help me learn why the hell it's not doing what it should be doing Jun 02 23:54:08 I've got loads of other portions of my app done entirely without #android-dev such as cache management and whatnot Jun 02 23:54:08 google has been cheating on me, cuz we were supposed to b exclusive! Jun 02 23:54:32 googles such a slut Jun 02 23:54:43 i thought that vjj seemed a bit loose Jun 02 23:56:03 chrizc: good luck with your next problem. im off - gn Jun 02 23:56:04 got it - using inputType="phone" Jun 02 23:56:51 chriz: good, have u googled why? Jun 02 23:57:04 canvs2321; what? Jun 02 23:57:12 why phone works instead of number Jun 02 23:57:28 ... why do I need to - it's because it's the phone dialer? Jun 02 23:57:48 maybe so u know? guess my work here is done, i like to know why things work Jun 02 23:58:49 http://i.imgur.com/mQAlN.jpg Jun 02 23:59:20 Nice Jun 02 23:59:24 that should go in the topic too Jun 03 00:00:00 :) Jun 03 00:00:02 yeah it should Jun 03 00:00:12 make sure to ask evan Jun 03 00:02:28 ? Jun 03 00:02:30 how can i know in what orentation image was taken?. w>h every check... Jun 03 00:03:07 and ExifInterface.TAG_ORIENTATION always returning 0 Jun 03 00:04:33 does 0 mean horizontal? Jun 03 00:09:54 right - I can't find the answer to this anywhere on google. my edittext has a inputType of "phone" - however, this input type does not offer a "hide keyboard" button. how do I get it to hide the keyboard when the screen is pressed outside of the edittext or keyboard? Jun 03 00:10:05 http://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_UNDEFINED Jun 03 00:13:16 yes evancharlton Jun 03 00:13:47 no, it means undefined Jun 03 00:13:52 sorry. it means.. Jun 03 00:13:53 yes Jun 03 00:13:56 thsnks Jun 03 00:14:04 so there is another way to know? Jun 03 00:30:26 how can i know in what orentation image was taken?. w>h every check... Jun 03 00:30:30 and ExifInterface.TAG_ORIENTATION always returning 0 Jun 03 00:31:15 you could look at it Jun 03 00:31:26 and? Jun 03 00:31:44 at what my friend? Jun 03 00:31:47 the image Jun 03 00:32:22 i want to display the image in the right way Jun 03 00:32:38 well obviously the EXIF was stripped or was taken with a crappy camera Jun 03 00:32:53 so just display it and pray Jun 03 00:32:54 i have motorola razer Jun 03 00:33:04 i cant do that... Jun 03 00:33:36 honestly its better to display the image the way that fitsthe screen...i hate when something tries to display a landscape image in portrait mode just to be 'cute'.. Jun 03 00:33:41 well you can't programmatically determine it either it seems Jun 03 00:34:21 emulator -avd 4.0.3 Jun 03 00:34:25 so how all those apps display the image right? Jun 03 00:34:28 oops, wrong window Jun 03 00:34:30 cd .. Jun 03 00:34:34 * pragma- facepalms. Jun 03 00:34:34 are there any nice overview of the listener/events available? As someone new to Android, I find it hard to figure out what I need to do certain UI events. Jun 03 00:34:48 i have activity with image button. you press and shoot Jun 03 00:35:10 they read the EXIF data or they guess when it isn't present Jun 03 00:35:26 gamingdroid, youve got the documentation..but honestly android is such a shitshow (imo) you'pre better off googling for every single thing you want to do to see how its done. Jun 03 00:36:36 goddamn, pushing a file to the emulator is slow Jun 03 00:36:56 * JakeWharton helps push Jun 03 00:37:39 yay, it finished Jun 03 00:38:28 mahamoti: it does seem overly complicated, but then again Java tends to be like that Jun 03 00:38:57 JakeWharton, i have another problem, i hope you can help me: i have a class which holds few asynctasks, im activating those asynctasks from another activities but im passing the context every time for a dialog show. the problem is: all the calculating time my app stuck and than the dialog jumps for sec and dismiss. Jun 03 00:39:15 nice. It truncates "Settings" to "Setting" in this emulator on the actionbar if it just barely doesn't fit Jun 03 00:39:52 enabled the -do-not-truncate-pluralizations flag Jun 03 00:39:54 -d Jun 03 00:40:00 bastards Jun 03 00:40:20 wait what, is there such a flag? Jun 03 00:40:31 haha Jun 03 00:40:32 n Jun 03 00:40:33 o Jun 03 00:40:35 :o Jun 03 00:40:43 android never ceases to surprise me Jun 03 00:41:17 i have a class which holds few asynctasks, im activating those asynctasks from another activities but im passing the context every time for a dialog show. the problem is: all the calculating time my app stuck and than the dialog jumps for sec and dismiss. what can i do? Jun 03 00:42:31 sigh Jun 03 00:42:34 sounds like you're running crap on the UI thread Jun 03 00:42:51 I almost brought up my finger to touch the screen in addition to using the mouse pointer in an attempt to multi-touch on the emulator Jun 03 00:43:06 I lifted my hand up an inch and then was like, wait what? Jun 03 00:43:38 ... how DO you multi-touch on the emulator? Jun 03 00:43:41 * pragma- googles. Jun 03 00:43:42 running crap? Jun 03 00:44:00 im just activating asynctask from there Jun 03 00:44:04 attach more mice Jun 03 00:44:14 Daniel_g: pastebin your code Jun 03 00:44:23 ok. just a sec Jun 03 00:44:42 attach more mice -- genius! Jun 03 00:45:38 hello Jun 03 00:45:57 I don't know if this is the right place to ask, but I don't know what would be Jun 03 00:46:17 I cannot find a launcher which allows icons larger than 90x90. Is there a way for me to mod one to allow for larger icon sizes? Jun 03 00:47:21 evancharlton, this is the class which holds the asynctasks: http://pastebin.com/zRkpeXJy Jun 03 00:47:26 login and register Jun 03 00:48:20 this class is a singletone. when im getting the instance im sending the UIcontext and setting it there Jun 03 00:49:03 Whats the smallest screen size we should support? Jun 03 00:49:50 apple741: that depends on your app Jun 03 00:50:59 evancharlton: It's a pretty basic one , text based and full of facts on various subjects. Jun 03 00:51:56 seems like it shouldn't be hard to support all of them, then Jun 03 00:52:54 I'm just worried about things being squashed on screen. Jun 03 00:54:04 why not let your users make that choice? Jun 03 00:54:16 chances are, the users with small screens are pretty used to it Jun 03 00:54:27 "1 star things are squashed on screen" Jun 03 00:54:35 evancharlton did you get my pastebin? Jun 03 00:56:04 yeah Jun 03 00:56:12 ok :] Jun 03 00:56:20 didn't see anything obvious and I didn't spend a whole lot of time trying to decipher that terrible formatting Jun 03 00:58:11 terrible formatting? Jun 03 00:58:23 TheTrash: Sorry , not sure what you mean? Jun 03 00:59:02 do you mean the formatting in pastebin? Jun 03 01:00:49 evancharlton, this is better http://pastebin.com/0ni6KRND Jun 03 01:01:02 thanks you Jun 03 01:01:06 thank* Jun 03 01:04:05 don't call .get() Jun 03 01:04:57 http://developer.android.com/reference/android/os/AsyncTask.html#get() Jun 03 01:06:23 and he didn't mean the paste bin formatting, he meant your code formatting Jun 03 01:07:59 can you advice me and tell me whats wrong in the code formatting? Jun 03 01:09:31 its very important to me... Jun 03 01:11:30 the design is not good? Jun 03 01:18:15 the design is not good ot just the format of the code? Jun 03 01:25:50 java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener Jun 03 01:25:51 ffs really? Jun 03 01:36:23 I'm really struggling with view.onDraw() and controlling the canvas. Jun 03 01:36:30 for days Jun 03 01:39:24 When I call my class which is a extented imageview. It creates the onDraw() auto like in that auto - it creates a canvas. How to I access that same canvas after an invalidate(); Jun 03 01:40:21 move a pixle invalidate() move a pixle invalidate() Jun 03 01:43:52 which sessage to mend? Jun 03 01:53:14 amoxibos: you can mend my sausage Jun 03 01:53:54 mending your sausage? Jun 03 01:54:29 < amoxibos> which sessage to mend?. Jun 03 01:55:26 nothin much Jun 03 01:55:32 sessage Jun 03 01:55:35 not sausage Jun 03 02:22:14 I publshed my apk but I can't see it Jun 03 02:22:17 when I searhc Jun 03 02:22:19 how do I get to it? Jun 03 02:23:26 play.google.com/store/apps/details?id=your.package.name Jun 03 02:23:27 I think Jun 03 02:25:43 that didn't work Jun 03 02:26:53 works for me Jun 03 02:26:57 well, for my app Jun 03 02:29:07 what am i missing for getting a ShareActionProvider working in ABS Jun 03 02:29:24 my actionbar now appears across the middle of the screen, and i cant touch anything but the overflow, and the rest of my UI doesnt show up Jun 03 02:29:35 oh wait no i can touch any of the action items Jun 03 02:29:45 but the split actionbar is taking the whole screen =\ Jun 03 02:31:00 I can't find my published app!!!!!!!!!!! Jun 03 02:31:03 help me please Jun 03 02:31:26 wait a couple hours Jun 03 02:31:39 can I not even search for it on the website? Jun 03 02:31:56 if i have app that quering a web service, in the web service there is like 5 functions and i need to write another code to activate every single function Jun 03 02:32:20 so, if i will make a class with 5 asynctasks there and every time i will execute another one? Jun 03 02:33:24 canadiancow: you're missing bug reports Jun 03 02:33:51 https://github.com/JakeWharton/ActionBarSherlock/issues/303 Jun 03 02:34:12 o hai Jun 03 02:34:15 i was just about to email you :) Jun 03 02:34:31 *strongbad voice* DELETED Jun 03 02:35:02 hello, anyone know the answer, how do I find my app?!!!! Jun 03 02:35:06 for fuck's sake Jun 03 02:35:09 are you fuckign kidding me? Jun 03 02:35:17 xp_prg wait a bit Jun 03 02:35:24 the ABS one is independent of the platform one Jun 03 02:35:30 for how long? Jun 03 02:35:32 feel free to figure out what's causing that to happen and fix it Jun 03 02:35:33 xp_prg also, you did activate the apk right? Jun 03 02:35:38 ya Jun 03 02:35:45 .:19:31:29:. ( canadiancow ) wait a couple hours Jun 03 02:35:54 the cow is wise. Jun 03 02:36:12 so JakeWharton, the bug's in android, and you're not willing to fix it in abs until google fixes it? Jun 03 02:36:16 or did i misunderstand Jun 03 02:36:29 i'm not willing to fix it because I don't have time and I don't use one in the split action bar Jun 03 02:36:38 if I used one in the split action bar for work i'd fix it Jun 03 02:36:58 but we don't, and it's super low on the TODO list Jun 03 02:37:06 but i mean you closed the issues, didnt you? Jun 03 02:37:17 no, it's open Jun 03 02:37:20 oh my bad Jun 03 02:37:23 if i have app that quering a web service, in the web service there is like 5 functions and i need to write another code to activate every single function Jun 03 02:37:24 so, if i will make a class with 5 asynctasks there and every time i will execute another one? Jun 03 02:37:27 well that was almost bad... Jun 03 02:37:40 ...getting ready to get on a plane tomorrow and realized i have flash paper in my laptop case... Jun 03 02:37:51 * b1n0ry would not be working on his app for awhile Jun 03 02:38:01 and might even make it on the news Jun 03 02:38:52 ah so JakeWharton the bug only occurs if its not in the overflow menu Jun 03 02:38:56 so i can at least shove it in there for now :) Jun 03 02:39:01 assuming i cant fix the bug Jun 03 02:39:11 Hi all, how can I reduce the usage of principal memory in android 4.0.3? Jun 03 02:39:29 i can't imagine its a hard one to fix Jun 03 02:39:35 i just really haven't had the time to investigate Jun 03 02:40:05 i'll take a look Jun 03 02:41:00 i dont like how it overflows shit on my tablet Jun 03 02:41:01 theres so much room Jun 03 02:43:20 ...oops, and there's a lighter...wow Jun 03 02:46:24 Which one is better android 4.0.3 or honeycomb 3.2 Jun 03 02:46:42 are you kidding me? Jun 03 02:46:45 define "better" Jun 03 02:46:50 and... seriously? Jun 03 02:46:51 are you a troll? Jun 03 02:47:02 lighter Jun 03 02:47:07 lighter? Jun 03 02:47:08 faster Jun 03 02:47:14 4.0.3 Jun 03 02:47:15 stronger Jun 03 02:47:18 +1 Jun 03 02:47:18 use less ram Jun 03 02:47:19 more perceptive Jun 03 02:47:43 tnx Jun 03 02:47:49 wtf im using a Uri.Builder, and it resulted in an output of "http:/www.mysite.com/..." Jun 03 02:47:52 notice the lack of a second slash Jun 03 02:48:03 work it, make it, do it makes us, harder better, faster stronger... Jun 03 02:49:19 * b1n0ry sees a second slash.. right after the m Jun 03 02:49:41 har har Jun 03 02:49:53 i know, i'm a funny guy Jun 03 02:54:41 I hate that there is no way for me to even see it! Jun 03 02:54:47 makes me sooo sad **** ENDING LOGGING AT Sun Jun 03 02:59:58 2012