**** BEGIN LOGGING AT Tue Feb 14 02:59:56 2012 Feb 14 03:00:17 anyway.. Did you mean for your activity to be called HelloWebApp or HelloWebAppActivity? You seem to have a mismatch as to what your class is called vs what the manifest is looking to load Feb 14 03:01:01 Well i was looking to change the name of the app at this point actually Feb 14 03:01:20 Can I see your manifest? Feb 14 03:02:10 added to the bottom. Feb 14 03:02:12 Oh derp Feb 14 03:02:27 The linear layout the webview was in was set to horizontal orientation Feb 14 03:02:35 so it was to the right of the screen Feb 14 03:02:45 heh, I've done that Feb 14 03:02:48 Yeah thats exactly your problem, your manifest is looking for a class HelloWebApp, but you dont have that, you have HelloWebAppActivity, so either change i t in the manifest or refactor the class name Feb 14 03:03:46 Is this where I change it so that when its complied its called something else? Feb 14 03:03:52 or is that in a different place? Feb 14 03:04:10 well.. if your using eclipse, there should be a refactor button Feb 14 03:04:17 or I think you can do it via right clicking the class name Feb 14 03:04:19 err file Feb 14 03:05:15 i see refactor. What do I change it too Feb 14 03:05:22 HelloWebActivity Feb 14 03:05:29 err, HelloWebApp Feb 14 03:05:44 like that? Feb 14 03:05:54 line 45 Feb 14 03:06:04 you do realize that changing the class names in no way changes what the app is "called" Feb 14 03:06:08 yeah.. that should do the trick Feb 14 03:06:16 in fact, the user typically doesn't see any of that Feb 14 03:06:56 DrPenguin when i do that i get an error Feb 14 03:07:08 Description Resource Path Location Type Feb 14 03:07:11 The public type HelloWebApp must be defined in its own file HelloWebAppActivity.java /HelloWebApp/src/testdev/HelloWebApp line 13 Java Problem Feb 14 03:07:27 before it would at least complie Feb 14 03:07:29 Ahh.. You didnt refactr the actual class file it looks like Feb 14 03:07:43 i right clikced then went refactor Feb 14 03:08:28 hang o.. im pulling down eclipse Feb 14 03:09:28 ok... so what do i do then? Feb 14 03:09:34 I just said hang on Feb 14 03:10:44 has anyone used "show screen updates" before? Feb 14 03:10:49 i find that the whole damn screen is flashing constantly Feb 14 03:11:12 or rather Feb 14 03:11:18 its never just part of the screen Feb 14 03:11:21 its always the entire active window Feb 14 03:11:33 any game devs, do you use seperate thread for update and render or no? like I use libgdx Feb 14 03:11:50 I do Feb 14 03:11:51 trying to figure out how I can gain some fps Feb 14 03:12:00 definitly Feb 14 03:12:30 canadiancow|work: if you turn it on and don't touch anything, you'll probably see the status bar flash sooner or later Feb 14 03:12:40 oh no thjtas fine Feb 14 03:12:44 but i mean if i press down on a button Feb 14 03:12:48 its not just that button that flashes Feb 14 03:12:50 EVERYTHING flashes Feb 14 03:12:58 so is the whole screen getting redrawn? Feb 14 03:13:01 yep Feb 14 03:13:06 yup, that's the point Feb 14 03:13:11 i thought there have been so many updates to that shit Feb 14 03:13:12 canadiancow|work: oh ive used that feature.. yeah its supposed to do that Feb 14 03:13:15 so that only changed stuff Feb 14 03:13:30 like it wont redraw a textview if only the button's pressed state is active Feb 14 03:14:16 oh hmm Feb 14 03:14:20 on GB it only flashes the button Feb 14 03:14:22 on ICS it flashes everything Feb 14 03:14:25 is that the HW accel? Feb 14 03:14:46 canadiancow|work: I believe by default, forced HW accel is on.. try turning it off Feb 14 03:15:04 Unzip utility for mac, suggestion anyone? Feb 14 03:15:15 yea htat might be it Feb 14 03:15:23 with HW accel its redrawing everything, but the gpu is doing it Feb 14 03:15:26 hwrd_work: mac should nativelysuport unzip Feb 14 03:15:33 finder open Feb 14 03:15:40 it can zip also Feb 14 03:15:43 has for yearss Feb 14 03:15:54 DrPenguin: ugh. I meant like 7zip, rar, etc etc Feb 14 03:16:17 TheChaoticGood: I just did a refactor : rename and it worked for me.. Feb 14 03:16:20 TheBunny: it won't do rar though, will it? Feb 14 03:16:49 hwrd_work: well 7zip offeres the source.. maybe you can compile it for your mac Feb 14 03:17:12 7zip rocks Feb 14 03:17:16 seriously why does anyone user rar anymore? Feb 14 03:17:24 lzma is the new hotness Feb 14 03:17:37 or "xzip" as it's now known Feb 14 03:17:39 DrPenguin: Ugh. Too much work. Going to go for easy alternative Feb 14 03:17:39 (search the app store) Feb 14 03:17:43 .xz files Feb 14 03:17:51 hwrd_work: seriously? too much work? ugh Feb 14 03:18:01 7zip is sick, i just don't know if it works for mac Feb 14 03:18:29 there is a parallel version of 7zip too, it's nice to use all cores to crunch down a file Feb 14 03:18:44 or am I thinking of bzip Feb 14 03:19:36 Anyone remember how to fix layout editor not doing any previews? it's just sitting there with a blank grey window. I Feb 14 03:19:43 DrPenguin: lol Feb 14 03:19:44 (Eclipse) Feb 14 03:19:47 lazy programmer here Feb 14 03:19:58 hwrd_work: it would seem so Feb 14 03:20:06 if your computer would, I think it would stab you right now for that comment Feb 14 03:20:12 "too much work? BITCH Im the one compiling it!" Feb 14 03:20:58 ahh, when in doubt File->Restart ! Feb 14 03:21:03 all good *sigh* Feb 14 03:21:54 DrPenguin: lol Feb 14 03:24:36 woah Feb 14 03:24:40 that's actually a menu option Feb 14 03:25:03 DrPenguin, Any thoughts yet? Feb 14 03:25:36 TheChaoticGood: well, I said earlier, you probably did it wrong.. I just did a refactor rename and it worked Feb 14 03:26:27 ? I need more info then that. Im noobish so i don't know what i did wrong. I'm about 95% done with this app and want to get it done for blackberry for tonight. Feb 14 03:26:30 please help me. Feb 14 03:26:52 TheChaoticGood: this is a Java thing.. not an android thing, do you know how to code java? Feb 14 03:27:00 a little Feb 14 03:27:18 Id say you should learn more java before tackling android.. what your encountering is avery basic java concept Feb 14 03:27:58 after this project I think I will. But like I said I would really like to finish this up since I only have this one problem before its done. Feb 14 03:28:18 *sigh* Feb 14 03:28:39 The root class's name of a Java file must match the name of the Java file Feb 14 03:28:58 only one bug left! Feb 14 03:29:14 weird thing is that I don't remember ever changing that name and it used to work. Feb 14 03:29:34 TheChaoticGood: well you obviously did, because the class name doesnt match the class in the Manifest Feb 14 03:29:40 may be i did one late night without know it. Feb 14 03:30:17 99% of basic compiler issues can be googled by stacktrace or error Feb 14 03:30:53 ok so im going to refactor then rename correct? Feb 14 03:31:02 all while the class name is highlighted Feb 14 03:31:19 TheChaoticGood: you refactor the java file, not the class name Feb 14 03:31:29 refactoring the java file will automagically refactor the root class name Feb 14 03:31:32 OOOOoo Feb 14 03:32:02 * DrPenguin its times like this he is happy hes a C convert Feb 14 03:32:23 *can't tell if automagically is a typo or a clever pun* Feb 14 03:32:34 sarcasteak: clever pun ^^ Feb 14 03:32:35 common pun... Feb 14 03:33:00 ok i found it. so im going it update references Feb 14 03:33:09 sarcasteak: fun fact: in legacy grub (where you have a menu.lst file) on debian systems, they use automagical ^^ Feb 14 03:33:10 am i going to update simliarly named vaiables and methods? Feb 14 03:33:28 TheChaoticGood: why would you need to? unless the JVM or JC yell at you Feb 14 03:33:28 no Feb 14 03:33:36 its an eclipse checkbox Feb 14 03:33:43 don't check it Feb 14 03:34:08 refactor just do update references Feb 14 03:34:12 ok done Feb 14 03:34:21 YES! Feb 14 03:34:24 it works again Feb 14 03:34:26 thank god. Feb 14 03:34:34 Thank.. God? WTF Im the one who helped you Feb 14 03:34:35 yea Feb 14 03:34:36 thank god Feb 14 03:34:37 i don't ever remember changing that I swear Feb 14 03:34:39 lol Feb 14 03:34:42 DARN YOU JESUS, you take another one from me Feb 14 03:34:43 thank god, not the chat room Feb 14 03:34:43 LOLz Feb 14 03:34:53 DAMN JESUS, THANKS FOR SAVING MY LIFE Feb 14 03:34:56 NOT THE DOCTORS Feb 14 03:35:00 thank you guys Feb 14 03:35:07 So much hate :-p Feb 14 03:35:08 TheChaoticGood: too late Feb 14 03:35:18 its never to late :> Feb 14 03:35:33 I think i know what I was trying to do... Feb 14 03:35:38 I just wanted to rename the app Feb 14 03:35:46 so it doesn't say helloworld... Feb 14 03:35:51 go into the android manifest Feb 14 03:35:51 the app name is a value in string.xml Feb 14 03:36:19 android:name=".HelloWebApp" ? Feb 14 03:36:31 TheChaoticGood: nooooo dont touch that or I will break your fingers Feb 14 03:36:37 lol Feb 14 03:36:42 edit the app_name value in strings.xml Feb 14 03:37:21 then you have an annoying variable that is badly named but w/e Feb 14 03:37:42 It seems I'm doing something wrong in my manifest with an app that needs TWO home screen icons. TaskAffinity is being set, everything works great in that regard. Feb 14 03:38:03 Anyone recall how to specify which activity is the default? Feb 14 03:38:10 i.e., when opening from market? Feb 14 03:38:12 One day when I learn WTF im doing fill rewrite it. Feb 14 03:38:21 learn WTF? Feb 14 03:38:36 Is the 1280x720 resolution found in the Galaxy Nexus still the largest on any Android phone? Feb 14 03:38:49 "one say when I learn what the fuck I'm doing I'll rewrite it" Feb 14 03:38:55 thats what he meant DrPenguin Feb 14 03:39:01 one day* Feb 14 03:39:06 that makes more sense Feb 14 03:39:13 I was thinking its some variant of brainfuck or something Feb 14 03:39:17 lol Feb 14 03:39:32 @kerrick...as far as I know...but the Rezound and a few others have 1280x720 without on-screen buttons. Feb 14 03:39:40 Nexus winds up at 1184x720 IIRC Feb 14 03:40:00 my tf101 has 1280X720 too i think Feb 14 03:40:24 tf101=1280x800...he said phone though Feb 14 03:40:27 1280x800 Feb 14 03:40:43 hmm ok i opened up all the folders and i can't find strings.xml Feb 14 03:40:45 other than the gtablet, is there a tegra2 10.1 thats not 1280x800 Feb 14 03:40:48 I can't think of one Feb 14 03:40:55 ... nm Feb 14 03:41:00 there are 2 res folders Feb 14 03:41:09 should be res/values? Feb 14 03:41:14 so.. anyone know a good number of sprites to cap at on the screen for libgdx to work on most devices? Feb 14 03:41:43 around 50-100ish or so my fps starts to drop to 20ish Feb 14 03:41:51 on higher end devices Feb 14 03:41:54 Thank you guys. I love you long time Feb 14 03:41:59 O_O; Feb 14 03:42:59 on lower end phones game can hang around 5-10fps Feb 14 03:43:15 Does the Android Emulator support microphone input? Feb 14 03:43:28 assuming your update / rendering functionality isnt the problem.. your probably just overloading the system Feb 14 03:43:30 * coolstar-pc does know Android-x86 doesn't support it in Virtualbox Feb 14 03:43:41 also.. are you rendering in hw or sw? Feb 14 03:44:06 I use libgdx which uses opengl Feb 14 03:44:17 out of the box, no settings changed Feb 14 03:44:57 Hey guys Feb 14 03:45:04 I have a noobie question Feb 14 03:45:09 okay here goes Feb 14 03:45:16 tliebeck, Thanks Feb 14 03:45:36 not sure if I can expect 50-100 moving sprites on the screen at once .. Feb 14 03:45:36 trying to do somethign really simple like open a url from some event using this code http://www.tutorialforandroid.com/2009/04/open-urlwebsite-from-android.html Feb 14 03:45:56 however I get an error underneath the line startActivity(i); Feb 14 03:46:04 since im doing it from a customdialog class Feb 14 03:46:08 and not the main class? Feb 14 03:46:25 anywho I just dont know what to do now! Feb 14 03:46:35 understanding the error is a start Feb 14 03:47:10 sarcasteak: I think a good thing to do would be to try another engine and see if you can Feb 14 03:48:01 the method startActivity(Intent) is undefined for the type MyCustomDialog.OKListener2 Feb 14 03:48:02 when inflating from XML the only way to set a group ID on a menu item is via the surrounding tag right? Feb 14 03:48:26 mantas322: that sounds like your missing an import Feb 14 03:48:43 or your dialog is a static inner-class Feb 14 03:49:36 whats a quick and dirty brute for solution for this >:O Feb 14 03:49:42 force* Feb 14 03:49:55 mantas322: there is none without understanding the problem Feb 14 03:50:08 well see about that Feb 14 03:51:34 more time will be spent brute-forcing the problem than understanding scope and correcting the method call properly Feb 14 03:51:51 startActivity is an Activity method Feb 14 03:52:08 your dialog class clearly is not a non-static child class of an activity otherwise that would work Feb 14 03:52:15 yes Feb 14 03:52:19 this is true Feb 14 03:52:28 you must obtain a reference then to the activity in order to call that method Feb 14 03:52:42 either by passing it into the dialog's constructor or checking perhaps if getContext is an instanceof Activity Feb 14 03:52:53 and then casting Feb 14 03:52:57 okay thanks Feb 14 03:53:04 srsly thanks Feb 14 03:53:51 looks like this may have worked getContext().startActivity(i); Feb 14 03:54:05 if only it didnt take my app 5 minutes to boot up Feb 14 03:54:10 im so nervous Feb 14 03:55:05 It worked, thanks alot JakeWharton Feb 14 03:55:12 no problem Feb 14 04:03:08 Is startManagingCursor really bad that? Feb 14 04:03:23 it's deprecated Feb 14 04:03:29 if memory serves Feb 14 04:03:40 that doesn't make it bad Feb 14 04:03:57 it just means that eventually it will ascend into bytecode heaven Feb 14 04:04:12 JakeWharton: lets not sugar coat thigns Feb 14 04:04:18 we all know theres no Bytecode heaven Feb 14 04:04:38 a man can dream... Feb 14 04:04:40 a bytecode farm? where it can live out it's days happily? Feb 14 04:04:56 canadiancow|work, fix a bug Feb 14 04:06:25 ? Feb 14 04:06:26 can u really not show a Toast and then finish() ? I'm getting Activity leaked window Feb 14 04:06:38 makes sense but.... lame... Feb 14 04:06:49 You should be able to. Feb 14 04:06:52 I've done it before. Feb 14 04:07:19 canadiancow|work, https://github.com/JakeWharton/ActionBarSherlock/issues/212 Feb 14 04:07:20 go Feb 14 04:08:00 dont even know what that means Feb 14 04:08:06 i spent hours helping you find and fix a bug :P Feb 14 04:08:17 yeah Feb 14 04:08:18 on to the next Feb 14 04:08:28 got money in my pocket Feb 14 04:08:30 put your hands up Feb 14 04:09:37 hey JakeWharton wanna come work for zynga? Feb 14 04:09:44 no Feb 14 04:09:49 :( Feb 14 04:10:07 <3? Feb 14 04:11:37 <3 would have been if you said yes Feb 14 04:11:41 or even "i'll think about it" Feb 14 04:12:04 i could have done that, but I respect you too much to lie to your face... Feb 14 04:12:07 ..or something like that Feb 14 04:12:09 lol Feb 14 04:12:22 T______________________T Feb 14 04:12:48 time to debug heavy use of reflection and asynchronity Feb 14 04:12:49 yay Feb 14 04:13:27 classes are a 1:1 diff'd against AOSP so it must be the animation impl Feb 14 04:24:41 can I not compare and (int == int) ? Feb 14 04:24:54 hey guys Feb 14 04:25:18 just wondering if anyones heard any news about ICS for the Samsung Galaxy S II X t989? Feb 14 04:27:16 nvm Feb 14 04:32:13 I can't find my apk file ive run the file. where does it store it? Feb 14 04:33:54 bin Feb 14 04:34:06 just wondering if anyones heard any news about ICS for the Samsung Galaxy S II X t989? Feb 14 04:37:08 Where does eclipse store APK files after it builds them? Feb 14 04:37:52 I think they just go in workspace/project/bin from memory Feb 14 04:38:15 i believe that is true Feb 14 04:38:36 out Feb 14 04:38:41 bin Feb 14 04:39:03 has anyone uploaded their APK to blackberry? Feb 14 04:47:10 has anyone here added JakeWharton's maven repo to a nexus proxy? Feb 14 04:47:22 wtf is that Feb 14 04:47:46 JakeWharton's maven repo, wtf Feb 14 04:47:53 that, i know about Feb 14 04:47:53 alex_PP: make sense, please Feb 14 04:48:05 next major version of all my libs will be pushed to central Feb 14 04:48:06 we use an inhouse nexus server to proxy all our maven stuff Feb 14 04:48:14 ok Feb 14 04:48:52 it's a shame the maps API can't be in central Feb 14 04:50:31 this is driving me nuts, off to the nexus docs i go Feb 14 04:50:57 ask on the maven android mailing list Feb 14 04:51:08 manfred is a nexus whiz Feb 14 04:51:20 i will if i can't work it out soon Feb 14 04:53:14 damn my app is already to upload to Blackberry but i still havent received my rim develoipment key Feb 14 04:53:20 im not going to make the deadline... Feb 14 04:54:31 also, anyone here who didn't know what maven was, i recommend you look it up Feb 14 04:54:58 * p_l tried to get into maven, dropped it in disgust Feb 14 04:55:27 but I guess I just don't like a lot of Java tooling... Feb 14 04:56:08 once you have more than 2 jars that you depend on, it's sooooo much easier than anything else i've tried Feb 14 05:02:33 can't wait for platform dashboard update on wed. Feb 14 05:02:56 what's new? Feb 14 05:02:58 hopefully ICS is up around 1.5% and 1.6 drops to something like 0.8% Feb 14 05:03:46 actually I hope Honeycomb drops to around 2% total but that may be a bit optimistic Feb 14 05:04:36 Does anyone know how to change your icon in an app? Feb 14 05:04:49 I went and replaced the icons in the res folder but nothing happened. Feb 14 05:04:56 recompile Feb 14 05:05:05 i did and nothing :/ Feb 14 05:05:07 hit refresh in eclipse Feb 14 05:05:12 or clean Feb 14 05:05:57 FUCK Feb 14 05:06:04 doing that gave me that R error Feb 14 05:06:18 R cannot be resolved to a variable Feb 14 05:06:40 also i now get an error that says No resource found that matches that given name Feb 14 05:06:42 then you have a resources error Feb 14 05:07:04 i did another clean and it went agao Feb 14 05:07:06 away Feb 14 05:07:28 wtf Feb 14 05:07:43 the compiler deleted my custom icons Feb 14 05:07:54 and put the default in there again Feb 14 05:08:02 o_O Feb 14 05:12:41 man, i'd kill for less-style mixins in Android styles Feb 14 05:18:32 Why would Eclipse delete my custom icosn and put the defaults back in there? Feb 14 05:30:28 has anyone created the bar signer for Blackberry? Feb 14 05:36:20 Figured out the market launch issue...one activity has to be marked with CATEGORY_DEFAULT Feb 14 05:42:32 Would someone be willing to show me how to change my icons. ive tried and failed. Feb 14 05:43:00 SimonVT, anything blocking a RC1? Feb 14 05:48:33 damn... is there any way you can just "leave" the data retrieved from a cursor in a listview? Whenever i close the cursor thats in my adapter.. the list turns blank. Feb 14 05:49:02 can someone guide me with http://quitenoteworthy.blogspot.in/2010/12/handling-android-23-webviews-broken.html Feb 14 05:49:22 c_nick: place your faith in me and i'll guide you through the darkest nights Feb 14 05:49:38 * pragma_ bends over to receive your faith. Feb 14 05:50:36 hi all. I'm trying to create my own View. This View should change its size sometimes. I have overridden onMeasure(int, int), but how can I make Android to re-call this onMeasure() method? I tried to call setMeasuredDimension() not from onMeasure(), but this does not work Feb 14 05:51:06 pragma_, haha.. well my issue is steps 2 and 3 seems to be a bit confusing. javascript:function openQuestion(id) { window.location='http://jshandler:openQuestion:'+id; }; what is openQuestion is it a JS Function or my Class Function which i am trying to access for JS Feb 14 05:52:29 dragorn, call relayout() Feb 14 05:53:09 or something like that Feb 14 05:53:20 requestLayout()! Feb 14 05:56:52 JakeWharton: thanks, it works! Feb 14 06:02:14 I navigated to 'android-sdk-linux/tools' and typed in 'hierarchyviewer' but I get the message 'hierarchyviewer: command not found' - what gives? Feb 14 06:03:36 platform-tools maybe? Feb 14 06:04:00 JakeWharton: Good to see you again. Thank you. Lemme try that. Feb 14 06:04:18 JakeWharton: This is what I was reading ---> http://developer.android.com/guide/developing/tools/hierarchy-viewer.html Feb 14 06:05:18 JakeWharton: Nope. That didn't work. :-/ Feb 14 06:05:34 mine's in tools/ Feb 14 06:05:42 make sure you're typing ./hierarchyviewer Feb 14 06:05:49 the leading "./" is important Feb 14 06:06:52 JakeWharton: Hmmm - good point. Let me try it with the leading './'. Feb 14 06:07:36 JakeWharton: You da man. Thank you so much. That did it! Feb 14 06:07:52 JakeWharton: Didn't realise the leading './' was so important. Feb 14 06:07:55 IS there a good IRC channel for BlackBerry? Feb 14 06:08:05 #blackberry-dev Feb 14 06:08:13 Thanks Feb 14 06:08:29 aLearner, yep, every character matters on linux haha Feb 14 06:08:37 Jakewharton: i'm using abs, thanks for it!! Feb 14 06:09:04 JakeWharton: Right. :-) But how do I use it inspect my 'HelloWorld' project? Feb 14 06:09:13 dgmltn, you're welcome Feb 14 06:09:20 dgmltn, any apps on Market? Feb 14 06:09:32 aLearner, you should see your device in the window Feb 14 06:09:42 you just click the activity name and then there's a load hierarchy button Feb 14 06:10:03 JakeWharton: Should the project be running when I type in './hierarchyviewer'? Right now everything is grayed out. Feb 14 06:10:20 JakeWharton: Thank you for the detailed explanation. Feb 14 06:10:21 Not yet, though there would've been if i'd known about it sooner :-) Feb 14 06:10:43 dgmltn, well heads up the first release candidate of version 4 is landing tomorrow Feb 14 06:10:48 not sure what version you're using Feb 14 06:11:25 aLearner, doesn't matter. you can leave it open and then start your emulator and project Feb 14 06:11:29 there's a little refresh button Feb 14 06:11:45 guys, i can draw some text using Canvas.drawText(...). But how can i get size of text that will be drawn using specified Paint? I looked for something like Canvas.getTextSize(), or something with "measure", but still no luck Feb 14 06:12:24 size of text is specified on the paint Feb 14 06:12:48 sould be get/setTextSize Feb 14 06:13:25 JakeWharton: Got it. I now see the emulator and followed your instructions. This is amazing! :-) Feb 14 06:13:40 JakeWharton: Thanks so much for your help. I really appreciate it. Feb 14 06:13:41 Jakewharton: Actually weve looked into using @ work, a little hesitant b/c of the size it adds to the apk Feb 14 06:13:50 JakeWharton: i mean, i need actual size of string. Say, i have setTextSize(55) and typeface SANS_SERIF, and i need know the size of string "Hello World". Size means width and height Feb 14 06:14:00 dgmltn, if you strip out the theme you're not using it should take the size down quite a bit Feb 14 06:14:19 but I understand the concerns Feb 14 06:14:26 aLearner, no problem! Feb 14 06:14:39 Hmm, ok Feb 14 06:14:40 dfrank, there should be measureText methods Feb 14 06:15:06 half of the resources are dedicated towards a theme that you aren't using Feb 14 06:15:17 I need to head out. See you. Later :-) Feb 14 06:15:21 and I'm willing to bet the resources make up 60-70% of the size Feb 14 06:15:37 Right, that would add a lot Feb 14 06:15:46 Good idea Feb 14 06:16:23 dfrank, on the Paint: http://developer.android.com/reference/android/graphics/Paint.html#measureText(java.lang.String) Feb 14 06:16:51 JakeWharton: yeah, i just found it when you said about measureText methods. Thanks! Feb 14 06:18:01 dgmltn, if ADT supported resources in .jars it would be easier, then the library could be a .jar and then the dark/light themes could be separate jars Feb 14 06:18:06 then you just pick and choose what you want Feb 14 06:18:10 plus plugins Feb 14 06:18:11 etc. Feb 14 06:18:12 would be nice Feb 14 06:18:14 Jakewharton: actually i have an action bar question: is there a "good" way to do an animated refresh action button? Feb 14 06:18:25 Agreed. Feb 14 06:19:14 add a listener on the menu item and set an indeterminate spinner as the action view? Feb 14 06:19:23 then just set the action view as null when the operation is done Feb 14 06:20:04 How would u solve the r namespace problem to do that? Feb 14 06:20:18 dgmltn, http://code.google.com/p/styled-action-bar/source/browse/trunk/src/com/example/android/styledactionbar/MainActivity.java#86 Feb 14 06:20:52 not sure why that's commented out Feb 14 06:20:56 the action view set Feb 14 06:21:05 oh because they do it in the onOptionsItemSelected callback Feb 14 06:21:44 man they do that a bit odd Feb 14 06:22:14 Heh Feb 14 06:22:43 ugh it's late Feb 14 06:23:00 Yes it is, where's my cake? Feb 14 06:23:01 i can survive another half hour Feb 14 06:23:22 Jakewharton where ru? Feb 14 06:23:39 EST Feb 14 06:23:50 Not too bad here, pst Feb 14 06:23:51 Pittsburgh, PA for another two weeks Feb 14 06:23:58 then i'm SFO-bound Feb 14 06:29:16 SimonVT, canadiancow, ? Feb 14 06:29:31 ron_frown, ? Feb 14 06:29:44 oi Feb 14 06:30:30 I'll be somewhat surprised if I am still employed at same place in 2wk Feb 14 06:30:34 Do you think including the Holo.Dialog styles is relevant for ABSv4? They're not technically action bars, just simple views on top of the content view styled to look like a simple action bars. Feb 14 06:31:17 honestly considering holo actionbars themselves are nothing special Feb 14 06:31:22 I wouldnt think it'd matter Feb 14 06:31:31 other people might care Feb 14 06:31:33 I wont =) Feb 14 06:32:05 anyone else alive that has an opinion on the matter? Feb 14 06:32:13 i'm open to logical resoning Feb 14 06:32:18 also, resoning Feb 14 06:32:20 wtf Feb 14 06:32:23 reasoning Feb 14 06:34:17 What are the holo.dialog styles being used for in abs? Feb 14 06:34:43 They'd just be used to theme an activity like a dialog that looked like ICS Feb 14 06:35:10 I mean, I think their inclusion would only be an additional layout, two styles, and about 30 lines of code Feb 14 06:35:12 Oic just for completeness in < 3.0 Feb 14 06:35:15 yeah Feb 14 06:37:03 I dont think i wd want to write an app that looks like holo on < 3.0 Feb 14 06:37:20 aosp themes prior to 3.0 look pretty craptastic =) Feb 14 06:38:23 what if it was as simple as specifying Theme.Sherlock.Full in your manifest? Feb 14 06:39:40 Good points, that might be nice esp for the cheaper tablets Feb 14 06:42:40 is there any way to get access to the panel options menu other than through the normal menu callbacks? Feb 14 06:44:00 Panel options menu? Feb 14 06:47:53 alright Feb 14 06:47:57 it's really late now Feb 14 06:48:12 heading to bed, night Feb 14 06:48:38 Night Feb 14 06:59:42 I highly recommend against anyone here getting kidneystones Feb 14 07:00:16 noted Feb 14 07:00:59 This people signing in and out thing is insufferable. Feb 14 07:01:04 I need to figure out how to filter this. Feb 14 07:03:06 Srsly Feb 14 07:03:38 RMapZero: which client are you using? Feb 14 07:05:04 * ron_frown was pent up with stones and HEAVY painkillers all weekend Feb 14 07:06:01 all I can say Feb 14 07:06:47 dilaudid is fucking amazing... gods gift to mankind Feb 14 07:07:01 ron_frown: yes Feb 14 07:07:18 because in irssi it is pretty straight forward to ignore joinpart flood Feb 14 07:07:21 ron_frown: you are so right. it's my favorite. hydromorphone is definitley one of the best things ever invented. Feb 14 07:07:28 /ignore #android-dev JOINS PARTS QUITS NICKS Feb 14 07:08:11 I got prescribed that, and norco Feb 14 07:08:15 not to be taken at the same time =) Feb 14 07:08:51 I've never done illegal drugs or whatever... but after taking dillauded I can see why people might Feb 14 07:16:08 I said the exact same thing when I first took it haha Feb 14 07:47:07 Is it impossible to ask Google to help me recover a lost keystore? Feb 14 07:48:24 Yup Feb 14 07:48:46 Is it 100% impossible to recover a lost keystore besides actually finding it? lol Feb 14 07:49:17 russellc: in the range of "needs a ~30qbit quantum computer" Feb 14 07:49:22 yup :-D Feb 14 07:49:42 I was going to say "Virtually"... because we can go into the extremes hehe Feb 14 07:49:52 So contacting Google directly would be a pretty futile attempt? :p Feb 14 07:49:57 yes Feb 14 07:50:12 russellc: they wouldn't be able to help you even if they switched all clusters to cracking it, I believe Feb 14 07:50:25 Thats all I needed to hear, thanks. Time for damage control haha Feb 14 07:51:08 russellc: welcome to offsite backups Feb 14 07:51:50 Also, I guess there is also no way to directly propagate updates to existing users of a current app (without the same keystore as before)? Feb 14 07:52:12 nope Feb 14 07:52:12 yep Feb 14 07:52:24 maybe Feb 14 07:52:25 Haha, yeah. I blame the guy who was handling the Android app before me. He accidentally the keystore. Feb 14 07:52:44 ah, you've got to watch out for people your keystore accidentally Feb 14 07:52:45 i lost mine with a hard drive failure, just one of my hobby prjects though Feb 14 07:53:03 Maybe? Is there a way to do so on the current app? Of course, the app package name would remain the same. Feb 14 07:53:31 AFAIK there's no way - sorry, was just joking about two answers so far being "yep" and "nope" Feb 14 07:53:34 it wont let you upload one with the same package name but a new keystore Feb 14 07:54:06 russellc: you can try paying someone for data recovery from hard drive Feb 14 07:54:20 Oh ok no problem. Thanks guys Feb 14 07:55:09 I'm thinking about if there is any way to recover recently deleted data without asking someone to do it. Feb 14 08:30:56 How do you guys think my app looks? http://vassistant.co.cc/VAssistant2.png Feb 14 08:32:19 coolstar-ipod: looks like siri Feb 14 08:32:38 aiming to compete with Evi? Feb 14 08:32:54 hwrd_work: it is my own alternative to Siri Feb 14 08:36:48 coolstar-ipod: wouldn't it be better if your look'n'feel was more distinct instead of a so-so copy of the siri gui? Feb 14 08:37:28 appel1: I don't use any graphics from Siri itself. Feb 14 08:38:03 coolstar-ipod: I didn't claim that you do Feb 14 08:38:09 appel1: I once had a bright green UI, but that received too much criticism on IRC Feb 14 08:38:48 lol Feb 14 08:38:59 coolstar-ipod: yeah, that doesn't sound very nice either Feb 14 08:47:12 what exactly happens when the AlarmManager wakes a device up? Does it boot when it's off? Does the screen go bright? ...? Feb 14 08:48:24 coolstar-ipod: haha my Nod32 blocked access to that URL (vassistant.co.cc ...) Feb 14 08:49:40 dang`r`us: if the device is off then nothing will happen, for all android phones I'm aware of off really means off. Feb 14 08:53:12 hmm apparently nod32 blocks all co.cc (after a google search)... weird thing to do Feb 14 08:53:16 appel1, okay ... and what happens if e.g. the screen is black? is there a definition of wake somewhere? Feb 14 08:54:22 dang`r`us: then it wont automatically turn the screen on, but your app could do that if you want Feb 14 08:58:34 appel1, I know I can do that, but I'd really like to know what wake means Feb 14 08:59:55 dang`r`us: cpu does stuff :) Feb 14 09:03:31 appel1, I wonder, when might a device be in a state where the cpu doesn't do stuff but it's not totally powerered down? Feb 14 09:05:02 dang`r`us: when the screen is off unless one or more apps holds a partial wake lock to keep it awake Feb 14 09:08:04 appel1, hmmmm ... intriguing Feb 14 09:08:56 so as long as I don't e.g. use an alarm clock, a screen locked android phone will just run the baseband module? Feb 14 09:12:14 dang`r`us: other things like push notifications from gmail will also wake it Feb 14 09:14:27 after having written my first bit of jni code, i have caught the premature optimization bug Feb 14 09:23:06 appel1, sure ... I was simplifying a bit ... thx for your clarifications! Feb 14 09:31:51 i'm trying to make my button images keep their aspect ration: Feb 14 09:31:53 http://pastesite.com/31634 Feb 14 09:31:57 unsuccessfull though ;D Feb 14 09:36:15 If I have a web view in my Android app, and want to communicate with native… override the necessary method in native.. and run window.location.href = "test://.…" and everything is fine … but when I run multiple window.location.href = "…." after each other, only the last one is recognized in native .. anyone know how to fix this? Feb 14 09:44:25 <[1]dynamite> hello all... just wondering something... i've added a reboot to recovery option to my rom, it just reboots when clicked after i cook it fresh... however, when its manually pushed to the rom, it works fine.... any ideas whats up with that? Feb 14 09:46:02 [1]dynamite: #android-root may be able to help Feb 14 09:47:43 <[1]dynamite> oki doki. thanks Mikellip Feb 14 09:49:39 anyone know how to keep a galaxy s2 from falling asleep even when plguged in? the normal menu item in applications -> debug is not present :/ Feb 14 09:59:04 Hi, I've seen the word 'callback' used a lot in Android terminology and have tried to look up the word on the internet, however, it's not 100% clear to me. Could someone explain what it means, please? Feb 14 10:01:02 Quiet in here! :-) Feb 14 10:01:57 aLearner: callback = listener Feb 14 10:04:39 aLearner: a callback is a function that you pass to some system or framework Feb 14 10:04:49 the system or framework then calls the function for you Feb 14 10:05:23 say if you have aGUI application and you want to react on some button press.. in different GUI frameowrks you "register" the function you want to have called when the button is pressed as callback Feb 14 10:05:58 or take for example the jack audio connection kit. an audio application needs to process a bufffer of audio data when it comes from the soundcard.. Feb 14 10:06:24 in jack you thus register a process() callback that gets called for you every time there's a new chunk of audio ready to be processed Feb 14 10:06:42 the concept of callbacks is a widely used and useful one.. Feb 14 10:07:00 and yes, in java i guess, callbacks are called listeners, although there's some more semantics associated with that Feb 14 10:07:15 i.e. listeners are instances of classes that implement a certain interface.. Feb 14 10:07:37 in assembler a callback could be just an adress of memory which is then used in a JMP instruction Feb 14 10:07:55 in LISP a callback could be an anonymous function (a lambda expression) Feb 14 10:08:05 in C you could use a function pointer to reach this.. Feb 14 10:08:29 aLearner: is it more clear now? Feb 14 10:09:11 tapas: Thank you for the wonderful explanation. Just reading through it carefully. :-) Feb 14 10:09:25 tapas: I'd like to make sure I understand what you've written. Feb 14 10:09:46 aLearner: what's your favorite programming language? Feb 14 10:09:58 tapas: I've dealt with C for a few years. Feb 14 10:10:23 tapas: And we could pass functions using functions using a function pointer... Feb 14 10:11:00 yes.. i'm at work right now, so i don't have too much time on my hands.. but take a look at this: Feb 14 10:11:32 http://jackaudio.org/files/docs/html/group__ClientCallbacks.html#gafb5ec9fb4b736606d676c135fb97888b Feb 14 10:11:40 tapas: OK. I read through what you wrote and noticed that you mentioned C as well. I'm gonna copy paste your explanation and keep reading it till it becomes clearer. I'm somewhat new to Java. Feb 14 10:12:00 ok Feb 14 10:12:12 tapas: Oh cool. Thank you very much. Looking at what you sent through. Feb 14 10:12:12 i'm a java noob myself.. the concept of callbacks is rather universal though Feb 14 10:12:27 can anyone here help with this? sdk/usb driver issues Feb 14 10:12:27 [11:07:25] trying to do 23, 24, 25 http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK Feb 14 10:12:28 [11:07:31] it doesnt work Feb 14 10:12:28 [11:07:33] i get this http://i.imgur.com/rSF6m.png Feb 14 10:12:36 the common thing is: your program gives up control flow to some librayr/server/framework Feb 14 10:12:50 tapas: I've heard of them but never really used them. So the concept has remained vague. Feb 14 10:12:57 and it passes function pointers to the library/server/framework which get called whenever there's work to be done Feb 14 10:13:26 since in java everything is a class (ugh1!!) in java callbacks are implemented as instances of classes Feb 14 10:14:24 tapas: Thank you very much. I've put all that you've shared in a document to read over. :-) Feb 14 10:14:43 joffeloff: Looking at what you sent through now... Feb 14 10:14:52 aLearner: great. have fun.. there's also a channel #programmingwhich might be mre suited to these general questions Feb 14 10:15:04 and also #java for questions about how to use this concept in java Feb 14 10:15:33 tapas: Wow! Thank you so much. I didn't know these channels existed. I'll make sure I note them down. Thank you very much. Feb 14 10:15:50 tapas: I bookmarked the audio jack page. Feb 14 10:17:13 joffeloff: This is the Android developers IRC forums...You may have more luck here ---> http://forum.xda-developers.com/ Feb 14 10:17:36 joffeloff: Incidentally I do have Cyanogenmod on my device and that's the exact wiki page I used too. Feb 14 10:20:47 yeah i'm trying in the cyanogenmod irc channel but.. yeah absolutely no help at all. i figured perhaps the sdk was a prerequisite for what everyone here does so worth a try :p Feb 14 10:26:37 any way to draw a smooth gradient on a Survaceview canvas ? Feb 14 10:26:48 joffeloff: No worries. Give me some time. I'll try to help you out. Feb 14 10:26:52 LinearGradient(0, 0, 0, screen_height, colora, colorb, android.graphics.Shader.TileMode.CLAMP); Feb 14 10:27:02 seems to be a bit grainy Feb 14 10:27:16 Bitmap.createBitmap(screen_width, screen_height, Config.ARGB_8888); Feb 14 10:27:29 is that fine for the bitmap? Feb 14 10:28:54 it's smooth when i use it as a BitmapDrawable Feb 14 10:30:08 joffeloff: Your phone is rooted and you have su access - right? Feb 14 10:36:58 Looks like joffeloff left - so much for that Feb 14 10:40:57 hey aLearner - yeah it's rooted and i have terminal if that makes a difference :p Feb 14 10:45:49 hah Dither on Paint on SurfaceView Canvas did the trick Feb 14 10:47:08 joffeloff: OK. Good to see you back. Thought I'd lost you. Feb 14 10:47:22 joffeloff: OK...Let's pick this back up. Feb 14 10:47:41 yeah they're messing around with the net here, my router was disconnected for no good reason Feb 14 10:47:57 well 'my' the one i was connected to Feb 14 10:48:09 joffeloff: No worries. What's your device make? Feb 14 10:48:15 motorola defy Feb 14 10:49:26 joffeloff: And you are trying to do what again? Just install Cyanogenmod 7? Feb 14 10:50:12 joffeloff: or are you trying to set up a dev environment on your Windows 7 machine? Feb 14 10:50:17 well yes but i haven't gotten that far. :p at this point i'm installing the SDK which i appear to have managed to do, and trying to install the new USB driver on the phone because the SDK doesnt recognize it Feb 14 10:50:20 and that's where the snag is Feb 14 10:50:40 the CM instructions say that the SDK is required because i need ADB Feb 14 10:51:21 well i need it for clockworkrecovery, rather. which i imagine would be useful considering i dont want to brick my phone Feb 14 10:51:34 joffeloff:OK...But your primary goal is to get Cyanogenmod installed on your Motorola - right? Feb 14 10:51:40 yeah that's the end goal Feb 14 10:51:46 OK. Good. :-) Feb 14 10:52:35 joffeloff: And you don't have CWM yet either - right? Feb 14 10:52:50 joffeloff: CWM = ClockworkModRecovery Feb 14 10:53:23 nope Feb 14 10:53:25 joffeloff: There's gotta be better instructions. It wasn't so hard for me. Let me try to see if I can point you in the right direction here. It wasn't so complicated at all. Feb 14 10:53:35 joffeloff: Hang on. Feb 14 10:54:43 joffeloff: Our first step should be to get you all set up with CWM. We'll need that before you do anything. :-) Feb 14 10:55:14 joffeloff: It's always a great idea to back up your current OS before you go messing. CWM is a great tool for this. Feb 14 10:55:34 hi..I can POST to a webservice from soapUI, but not from my android app..i get 404 result.. im using same IP and same soap message.. Feb 14 10:55:34 my code: http://pastebin.com/WRkEzMuc Feb 14 10:56:10 that's the next step - according to the CM guide, ADB is required to install clockwork recovery, and in order to get ADB, i need the sdk (which i have), and in order to use the SDK to install bootmenu and clockwork, i need working drivers so that the SDK can recognize the phone... which is my current problem. as the screenshot shows, the driver i downloaded (the inf file) isnt recognized Feb 14 10:56:28 as a driver :c Feb 14 10:56:55 joffeloff: If your phone is rooted it may be that you already have ADB. See ---> http://wiki.cyanogenmod.com/wiki/Motorola_Defy:_Full_Update_Guide Feb 14 10:57:15 joffeloff: That's the first step in the instructions - you need ABD to root the phone. Feb 14 10:57:58 joffeloff: If your phone is rooted it may be that you already have ADB. See ---> http://wiki.cyanogenmod.com/wiki/Motorola_Defy:_Full_Update_Guide Feb 14 10:58:11 joffeloff: That's the first step in the instructions - you need ABD to root the phone. Feb 14 10:58:18 joffeloff: Repeating since you got disconnected. Feb 14 10:58:46 joffeloff: *AD to root the phone Feb 14 10:58:57 joffeloff: PM me. It'll be easier Feb 14 11:34:06 I've GOT IT! Feb 14 11:34:31 AChartEngine library out of the box sometimes stops drawing the lines on the chart Feb 14 11:34:51 from the very first time that I got it and ran it, sometimes I would see a lot of lines and sometimes only a trace of 5 to 6 Feb 14 11:35:11 but I didn't notice it back then, now when I've come to give it some real values and it stops, made me doubt myself! Feb 14 11:35:51 a "motherfucker" is due here Feb 14 11:35:53 motherfucker! Feb 14 11:36:10 charting packages are funny, there's always a dozen of them, they are generally impossibly bloated, and I end up writing my own because it's not like drawing a few coordinate axes is very difficult Feb 14 11:36:18 unless you have really *beautiful* graphs, but most of those do not Feb 14 11:36:28 no they're ugly! Feb 14 11:38:38 what I want is a system monitor just like gnome-system-monitor Feb 14 11:38:38 watch cpu and mem, that's it Feb 14 11:53:20 Hello.. i have a question.. is it possible to bring an activity from a service to foreground without using an intent ? Feb 14 11:54:26 the service is bound to the activity and the service can call activity methods via callback Feb 14 11:58:14 hi Feb 14 11:59:39 I might need to add a forum function to an app, is there a good example of app I could refer to for that ? Feb 14 12:04:19 ANdi``: you'll have to use an intent. and if you keep the service bound to the activity when it is not on screen you might be leaking the activity sometime. Feb 14 12:07:14 Xperimental i could define a broadcastreceiver in the activity right ? Feb 14 12:08:56 how can I find the screen-height WITHOUT the title/notification-bar ? Feb 14 12:09:51 for as low as android 2.1 Feb 14 12:10:10 ANdi``: yes, of course Feb 14 12:10:55 ANdi``: but what do you want to achieve? Feb 14 12:12:42 Xperimental want to have a payment listener service running that asks server for new payments.. if there is a new payment, the activity should be brought to the foreground and an alertdialog with the new payment should be shown Feb 14 12:17:55 ANdi``: have you considered displaying a notification instead which will open the activity when it is clicked by the user? Feb 14 12:18:59 also: if you only want the dialog to show, you can define an activity with the dialog style. it will then be shown above the currently running application Feb 14 12:20:19 Agreed, much better that background tasks spawn a notification Feb 14 12:22:36 hmm, i wonder: what is the canonical way to create an application wide singleton in android? Feb 14 12:22:49 so signup to c2dm stopped working for a few days because "a script stopped working" :p Feb 14 12:23:07 Xperimental thx for the suggestions... " it will then be shown above the currently running application".. how can an activity be shown above another activity ? Feb 14 12:24:10 canadiancow: Oh, by the way. Feb 14 12:24:18 when you define it to be using the dialog style it will look like a dialog. so another activity can be seen in the background. the google authenticator is using this for example for asking you for your password when you have swapped the sim-card. Feb 14 12:24:19 canadiancow: https://github.com/ninetwozero/BF3-Battlelog/blob/master/src/com/coveragemapper/android/Map/ExternalCacheDirectory.java Feb 14 12:24:26 actually the question is somewhat different: i have an activity that downloads data in an AsyncTask Feb 14 12:24:37 now nothing stops the user from interupting this activity.. Feb 14 12:24:55 but the AsyncTask keeps in running (which is OK, as the data needs to be synced anyways) Feb 14 12:25:05 the acra crash reporter is also using it... Feb 14 12:25:12 but once the user starts the activity again another AsyncTask is created.. Feb 14 12:25:29 so i want to have some sort of global application wide state to track the completion of the AsyncTask.. Feb 14 12:25:47 ah ok Feb 14 12:25:47 hmm, maybe just a static member in the subclass of AsyncTask might work.. Feb 14 12:26:35 tapas: use a service Feb 14 12:26:55 hi guys, there is in resources the drawable-mdpi,hdpi and ldpi, which is when used? Feb 14 12:27:06 Xperimental: ok, checking it out Feb 14 12:27:44 and if i want to use an image, for a tablet that image is to small and for a phone is too big, how can i make separate images and make the software choose the right one when its needed in function to the screen size? Feb 14 12:29:02 norbi: there are more resource qualifiers than XXdpi ... read here: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Feb 14 12:29:16 thank you Feb 14 12:33:18 scaling in android is not as easy like in html, that you can just define the size in pixels and it will keep that size no mather what Feb 14 12:33:24 or in percentage Feb 14 12:33:43 you have to take care about dpi and etc Feb 14 12:35:02 and how is screen resolution divided by dpi? Feb 14 12:35:49 norbi: http://developer.android.com/guide/practices/screens_support.html Feb 14 12:38:48 norbi: basically, just provide the 4 primary densities (ldpi, mdpi, hdpi and xhdpi) with 3:4:6:8 scaling factors Feb 14 12:39:06 norbi: "So, a 9x9 bitmap in ldpi is 12x12 in mdpi, 18x18 in hdpi and 24x24 in xhdpi" Feb 14 12:39:15 norbi: from http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Feb 14 12:39:46 norbi: you just do this simple math, and let Android take care of the rest Feb 14 12:47:47 dada: thank you very much! Feb 14 12:52:28 do you know a website that offers completely free sound effects for android applications? Feb 14 12:55:33 why would I get a NumberFormatException when I'm trying to do Integer.parseInt on a string that has an integer? Feb 14 12:55:35 AndroidRuntime(3436): java.lang.NumberFormatException: unable to parse '62' as integer Feb 14 12:55:53 and it just keeps doing that while the numbers are still being produced Feb 14 12:57:31 could it be "'62'"? Feb 14 12:59:14 the error says '62' and that's inside a string Feb 14 12:59:23 it's how I've always parsed..I don't understand Feb 14 12:59:48 awk '{ sum+=$4 } END {print sum }' <-- is it because of those quotes? Feb 14 12:59:54 that's how the result is coming out, because Feb 14 13:07:43 try adding a .trim() to your String? Feb 14 13:25:26 Hello, does anyone knows a way to subscribe logcat event from a java app? Feb 14 13:26:36 yannj_fr: as i recall there is no way to receive logcat data inside your app using the official API. You can request the log permission and use Runtime.exec to run 'logcat' and parse the output. Feb 14 13:27:16 dragorn: ok, that's sound a bit dirty... but if there is no other way Feb 14 13:27:44 that's basically how to do it. Feb 14 13:27:54 use the READ_LOGS permission, use Runtime.exec to run the logcat process. Feb 14 13:28:00 (you may wish to use arguments like -d) Feb 14 13:29:51 and one of you manager to use filter correctly, I 'm trying to filter on a tag, but no success Feb 14 13:30:17 I haven't bothered trying, but you should just be able to pass "*:E" as an arg, etc. Feb 14 13:30:28 don't forget that you have to filter all of the other tags if you filter one tag. Feb 14 13:30:39 i.e. logcat -d MyTag:V *:F Feb 14 13:30:55 so you'll want to use the args array of {"logcat", "-d", "MyTag:V", "*:F"} Feb 14 13:31:23 lov : ok, this is what I got wrong Feb 14 13:34:29 Another question : is it possible to update component as a TextView from a Thread? Feb 14 13:34:57 today I was using the my phone I noticed the top status bar (which displays my signal battery and notifications) was missing Feb 14 13:35:06 no, it can only be done on the UI thread. Use a Handler, or call runOnUiThread, or use some other mechanism. Feb 14 13:35:21 so I rebooted my phone and it reappeared Feb 14 13:35:36 never seen it do this before Feb 14 13:38:49 mantas322: some launchers let you hide the status bar Feb 14 13:44:32 lov, can you explain more about what you suggested yesterday please? Feb 14 13:44:36 morning Feb 14 13:44:51 I tried to "avoid" the problem you mentioned, and it seemed like it worked at first, but 5 minutes into running it froze again Feb 14 13:45:43 it doesn't stop when I have random numbers being generated locally; only when I issue the commands to the server does this error occur, and it doesn't matter if it's an awked version of the "ps" command or just the "date" command, it just stops at a certain period of time Feb 14 13:45:59 I think it's the issue with the way I've devised my executeCommand Feb 14 13:46:02 oh great i feel like such a loser now Feb 14 13:46:23 i activated two-step verification on my google account, right? so now i can't sign in to my google account on my phone Feb 14 13:46:34 joffe: welp Feb 14 13:46:54 joffe: go into the 2 step auth thing, set up a password for your phone. Feb 14 13:46:56 there is a way to do it, at least when the phone is already active with the account.. but idk Feb 14 13:47:05 use that password for the phone. Feb 14 13:47:35 I'm ASSUMING you have the backup verification stuff in case you truly screw up, so you can at least turn it off :P Feb 14 13:48:05 Sicp: I can't help you without more info about where/if this is crashing. I'd recommend reading the Activity lifecycle docs first, just so you understand why spinning up a new thread without possibly killing it is a bad thing. Feb 14 13:48:25 Also, did you ever try attaching the debugger and then pausing the thread when it appeared to be "stuck" ? Feb 14 13:48:30 ahhhhh Feb 14 13:48:32 I'd strongly recommend naming the thread in its constructor too Feb 14 13:48:33 thanks lov Feb 14 13:48:36 joffe: np Feb 14 13:48:37 yes I did, and I got the correct values Feb 14 13:48:40 i knew i had seen that before Feb 14 13:48:44 Sicp: I don't mean stop at breakpoints. Feb 14 13:48:51 I mean let the app run with the debugger attached to it Feb 14 13:48:59 and then pausing the thread when your app gets into a bad state Feb 14 13:49:48 ok the debugger is now attached as the Toast said Feb 14 13:50:12 What would be the best appraoch to implementing a layout that has at the top 3 rows of edit text and below that a listview and then 2 buttons Feb 14 13:50:42 t432: a linear layout, probably. Feb 14 13:50:52 t432: maybe a relative layout if you need to align things more nicely? Feb 14 13:53:38 aha, I see Thread [<11> Thread-13] (Running) (may be out of synch) Feb 14 13:57:20 well, I don't know if that's your thread or not (see above where I recommend that you name the thread in its constructor) Feb 14 13:57:28 but consider pausing it and see what the stacktrace shows. Feb 14 13:58:14 Morning all; I am using Message.obtain().sendToTarget() (the target being a Handler on the Main thread), but I am still seeing this: 02-14 08:55:57.814: ERROR/AndroidRuntime(9897): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(-1, class Feb 14 13:58:15 android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)] Feb 14 13:59:17 MIUI or CM7? Feb 14 14:02:39 hey Feb 14 14:02:58 mitch0: #android-root and/or #cyanogenmod Feb 14 14:03:37 kylebt: if you have a custom adapter, the adapter has to have notifyDataChanged or whatever the method is Feb 14 14:03:43 that will tell the attached listview to update itself Feb 14 14:03:48 don't just send an invalidate command to the listview Feb 14 14:04:26 I instantiated it by passing it in a List -- and i noticed that the default behavior was notifyDataSetChanged == true Feb 14 14:05:05 so shouldn't that mean by calling add() on the adapter notifyDataSetChanged() should be called? Calling it explicitly results in more of the same as well... Feb 14 14:05:05 lov: yeah, guessed as much. was worth a try though ;) (will google instead for some flamewars :) Feb 14 14:06:41 kylebt: I think you need to back up a second there. Feb 14 14:06:48 you passed "it" Feb 14 14:06:49 what is "it" Feb 14 14:06:51 excellent Feb 14 14:06:54 is "it" an ArrayAdapter? Feb 14 14:06:54 lol Feb 14 14:06:58 is it a subclass of an ArrayAdapter? Feb 14 14:07:01 I read that myself and was like, wow Feb 14 14:07:57 "it" referred to an ArrayAdapter Feb 14 14:08:18 new ArrayAdapter(context, R.layout.billable_view, data) was the constructor I used Feb 14 14:08:27 where data is a List Feb 14 14:09:38 call add() or remove() or whatever, then call notifyDataSetChanged Feb 14 14:10:09 yeah.. should result in an updated list view, correct? Feb 14 14:10:53 because that was my understanding of the class and that's how I wrote it Feb 14 14:10:54 lol Feb 14 14:11:15 ArrayAdapter.add() should call notifyDataSetChanged, yea Feb 14 14:11:19 Unless you disabled it Feb 14 14:11:29 I didn't. Feb 14 14:11:32 I made sure of that Feb 14 14:11:36 Hmm Feb 14 14:12:15 Going to post the code if it doesn't work this time. It seems like it should be fine Feb 14 14:13:48 I am looking to implement certain functionality but I can't figure out which is the best way to go about it. Feb 14 14:14:07 story of our lives, right jiduvah? Feb 14 14:14:30 hey guys Feb 14 14:14:31 basically I have a image view. on the on click event I want it to become bigger and go over the activity, what are your suggestions to do that? Feb 14 14:14:40 I was thinking a dialog with an animation Feb 14 14:14:56 it would be nice if the image zooms out and fills the screen Feb 14 14:15:18 that definitely sounds like an animation = ) Feb 14 14:17:08 sup Feb 14 14:25:31 Im going to post this code Feb 14 14:26:31 ojpo Feb 14 14:26:35 olp Feb 14 14:28:46 umm.. so i'm writing a bunch of files to the external storage directory of my galaxy nexus Feb 14 14:28:51 phone is plugged in via usb Feb 14 14:28:57 none of the files appear to be there o.O ? Feb 14 14:29:42 z5x1c Feb 14 14:30:07 storkme: I think you must use the media scanner to tell the system about the new files Feb 14 14:30:29 they show up in file manager Feb 14 14:30:59 how odd Feb 14 14:31:00 storkme: can't find the reference, but I think it has to do with how the MTP system works Feb 14 14:31:23 storkme: If they are visible in the flie manager they are not visible via the app from trying to grab its location? Feb 14 14:31:44 they are visible in the app, and the file manager -- i'm trying to get at them from my computer Feb 14 14:31:52 but they aren't showing up in windows Feb 14 14:35:36 storkme: according to https://groups.google.com/d/msg/android-developers/GcbK9ls3lxY/H6uTfoxAVHAJ you must notify the media scanner about new files for them to show when viewing the file system over MTP Feb 14 14:36:06 Is there any reason to use Message.post over Message.obtain().sendToTarget() ? Feb 14 14:38:10 Hi guys, how can I insert a line break in a TextView element? (from the xml file, not in the java code) Feb 14 14:38:15 i see appel1 Feb 14 14:38:42 so after I create the file I call the media scanner? Feb 14 14:38:44 Popupmenues, are those the typical squared lists and "regular lists" you see when doing quick configuration from an app or by pressing menu button? Any menues like that before API 11? Feb 14 14:38:59 storkme: apparently, a bit weird if you ask me.. could be a bug somewhere I guess? Feb 14 14:39:03 dinduks: \n Feb 14 14:40:15 lov: Already tried it, it displayed as a normal text Feb 14 14:41:06 makes sense to me appel1, though I sorta would have thought the media scanner would pick them up automatically Feb 14 14:43:43 hey anyone here fairly familiar with OpenGL ES? Feb 14 14:43:57 What does this means:Path for project must only have 1 segment Feb 14 14:45:23 is it possible to programmatically unlock the screen? (for people doing iOS dev: essentially I want to see the same behavior on android when starting an app from the IDE - screen unlocks, turns bright, app launches) Feb 14 14:46:29 alex-: Try specifying a project name in the Run/Debug settings of eclipse project Feb 14 14:46:38 alex-: http://stackoverflow.com/questions/4961151/android-path-for-project-must-have-only-one-segment Feb 14 14:46:54 thx Feb 14 14:47:27 WebView webview = (WebView) this.findViewById(R.id.webview); gives me Multiple markers at this line - id cannot be resolved or is not a field - Line breakpoint:WordFeudCheatsActivity [line: 19] - onCreate(Bundle) Feb 14 14:48:04 creating a Wordfeud cheating app? Feb 14 14:48:07 :/ Feb 14 14:48:59 dang`r`us: again, no. Feb 14 14:49:04 and you maybe want to check your android:id's in your layout xml that is loaded Feb 14 14:49:04 not easily Feb 14 14:49:04 uh oh my code has been revailed Feb 14 14:49:13 dang`r`us: your app can acquire a Keyguard lock Feb 14 14:49:28 dang`r`us: your default activity can also set a flag that has it unlock the screen Feb 14 14:49:46 but honestly the best way is to just disable the screen turning off in USB settings Feb 14 14:49:48 what is the best way of adding content to a "my name is %s"-string? Feb 14 14:49:53 Ok Feb 14 14:50:01 lov, samsung disables this setting Feb 14 14:50:05 because it damages the screen Feb 14 14:50:22 Here is the piece of my array adapter code that is failing horribly: http://pastebin.com/sJ7umhy1 Feb 14 14:50:34 lov, anyway, which flag would that be? Feb 14 14:50:52 jesus christ. Feb 14 14:50:54 fucking samsung Feb 14 14:50:58 why do they have to shit all over everything Feb 14 14:51:18 tbh I don't like the display to be lit all the time. I prefer the iOS approach where the debugger can just do the right thing ... Feb 14 14:51:23 wow, eclipse layout viewer can render my custom view, that's pretty damn impressive :o Feb 14 14:51:49 dang`r`us: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED Feb 14 14:51:56 lov, thx! Feb 14 14:52:20 dang`r`us: yeah, I'll admit that it'd be nice if there was a way for ddms to just disable the keyguard. Feb 14 14:52:28 at least for a few seconds. Feb 14 14:52:33 lov: bit of a pain to biuld it into the app though since you don't want that behavior when releasing it =) Feb 14 14:52:57 lov, it never stops when it has the debugger attached Feb 14 14:53:13 appel1: yeah, obviously Feb 14 14:53:13 the moment I run it normally, it stops after a period of time Feb 14 14:53:24 Sicp: attach the phone, attach the debugger. Feb 14 14:53:30 Sicp: is it possible that the phone is going to sleep? Feb 14 14:53:34 or are you keeping the screen on? Feb 14 14:53:40 this is on an emulator Feb 14 14:53:46 hmm Feb 14 14:53:54 I'm not sure whether you'll need a wakelock for the emulator... Feb 14 14:54:01 anyhoo Feb 14 14:54:11 wakelock Feb 14 14:54:15 open the ddms view in eclipse, you can attach a debugger to a process that isn't already doing so Feb 14 14:56:03 I really hope someone can spot where I've been a fool Feb 14 14:56:56 hmmm. I did this: http://pastie.org/3381229 -- it *almost* works. The lock screen goes away and the app shows, but when the screen is dark it does not get lit. Suggestions? Feb 14 14:58:10 SimonVT: are you still around? Feb 14 14:59:50 I guess I should use FLAG_TURN_SCREEN_ON Feb 14 15:00:11 I guess the docs were wrong when saying FLAG_KEEP_SCREEN_ON Feb 14 15:00:33 yay! Feb 14 15:00:36 lov, that works. thanks! Feb 14 15:01:44 ok I see the threads Feb 14 15:01:50 and I see timed-wait on one and running on the other Feb 14 15:01:59 or native on one and timed-wait on the other Feb 14 15:02:07 the other is a service, you see Feb 14 15:02:16 but it says "Connect thread" Feb 14 15:02:24 treats them as threads, naturally? Feb 14 15:03:06 Can someone please explain why my ArrayAdapter.add() calls dont result in any views being rendered? It was instantiated with a List Feb 14 15:03:41 populate(); ! Feb 14 15:04:09 lol Feb 14 15:06:50 02-14 10:06:15.662: ERROR/AndroidRuntime(10809): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(-1, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)] -- why do I get this when using Message.obtain().sendToTa Feb 14 15:06:50 when the target is a Handler on the main thread? Feb 14 15:09:00 try runOnUiThread(new Runnable() { < Message.obtain().sendToBla> }); Feb 14 15:10:11 mh Feb 14 15:10:41 Dash, thanks; runOnUiThread belongs to the Activity? Feb 14 15:11:51 can you customize the actionbar icons depending on your activities? Feb 14 15:12:21 i dont see a fitting method in the doc Feb 14 15:12:31 to the Context kylebt, yes Feb 14 15:12:40 Code's compiled Feb 14 15:12:45 Hopefully you just saved me Feb 14 15:12:48 = ) Feb 14 15:14:11 Lets hope so :) Feb 14 15:17:48 Unfortunately, if I want to get anything to render I'm still having to reload the entire dataset Feb 14 15:18:17 Which makes for a particularly unpleasant experience with scrolling pagination Feb 14 15:19:03 yuck :/ Feb 14 15:19:17 Cache it :) Feb 14 15:19:34 hi all! how to run through the JSONArray? Feb 14 15:19:57 I am caching it.. Feb 14 15:20:00 That's the problem Feb 14 15:20:21 kylebt: why? Feb 14 15:20:25 The data that's getting cached is being blatantly disregarded by my array adapter Feb 14 15:20:35 Im caching it in a map Feb 14 15:20:48 and then the ids are of List -- which is the datatype that I used to instantiate the ArrayAdapter Feb 14 15:21:03 so add(String) should result in a call to notifyDataSetChanged() Feb 14 15:21:17 and my corresponding view should be rendered by the adapter...... Feb 14 15:21:45 slavabulgakov: the caching isn't the problem, heh. It's that Im caching it and it's not being used as expected. Feb 14 15:22:26 ok Feb 14 15:23:04 you asking how to iterate over a jsonarray? Feb 14 15:23:40 if you know if its an array of JSONObjects for example you could cast it to Iterator Feb 14 15:24:01 Iterator iterator = (Iterator) jsonarray.iterator(); Feb 14 15:24:09 if that's not your question then my apologies for being so elementary Feb 14 15:24:49 is there a way to see your activity stack in ddms? Feb 14 15:24:50 Wait, you actually cant iterate over org.json jsonarrays can you Feb 14 15:26:08 I have a list and a PagedView. The List works fine (all click events are fired) once. If I page back and to the list, the click events are not fired, turns out there are not even touch events fired when I click on the list Feb 14 15:26:29 Has anybody got an idea of why that is and possibly how to fix it ? Feb 14 15:26:50 canadiancow|work: hierarchyviewer shows it i think Feb 14 15:26:52 could be wrong Feb 14 15:27:07 hmm Feb 14 15:30:24 I literally have to call list.setAdapter() every time I want to change the underlying data model. Feb 14 15:34:00 guys, im getting an error about that cannot appear inside another is that fine? Feb 14 15:34:06 kylebt no you dont Feb 14 15:34:15 I know Dash Feb 14 15:34:16 I would advise you create your own adapter. Feb 14 15:34:22 extend the ArrayAdapter Feb 14 15:34:24 Ok Feb 14 15:34:34 vs. just instantiating the interface Feb 14 15:34:36 ? Feb 14 15:34:42 anonymously Feb 14 15:34:42 there's an app installed on my emulator that has a bug... how can i start fresh? I'm not confident that it's the new app Feb 14 15:34:52 and call populate() and/or notifyDataSetChanged() Feb 14 15:34:57 ok Feb 14 15:34:58 or wait Feb 14 15:35:00 its public Feb 14 15:35:01 try Feb 14 15:35:06 I'm calling notifyDataSetChanged Feb 14 15:35:08 to no availl Feb 14 15:35:09 avail Feb 14 15:35:10 YourArrayAdapter.notifyDataSetChanged() Feb 14 15:35:11 ah Feb 14 15:35:12 hm. Feb 14 15:35:16 on the UI thread Feb 14 15:35:17 lol Feb 14 15:35:24 we.. Feb 14 15:35:25 well Feb 14 15:35:42 calls to setNotifyDataSetChanged(true) dont help Feb 14 15:36:00 hm Coulding create icon: StatusBarIcon(pkg=com.alertpay id=0x7f020002 level=0 visible=true num=0 ).... wtf means Coulding ? Feb 14 15:37:07 ANdi``: it's probably a typo for "Could not" Feb 14 15:37:11 albiet a funny one Feb 14 15:38:10 yeah Feb 14 15:38:18 but i dont know why it cant create the icon Feb 14 15:41:03 How do I get my custom dialog to be only as big as the biggest child I already tried wrap_content on the parent and children no luck Feb 14 15:41:26 I also tried setting the windo attributes to wrap content Feb 14 15:41:37 and tried using weights Feb 14 15:42:27 is there any way to run Android 4 emulator as hardware accelerated Feb 14 15:42:37 I seem to have lot of problems with hardware acceleration Feb 14 15:43:04 seems that the rendering stack abstration "leaks2 Feb 14 15:47:25 hi Feb 14 15:48:28 hello Feb 14 15:49:02 I don't like how ActivityNotFoundException is a runtime sort of thing :\ Feb 14 15:49:31 It seems pretty reasonable. Feb 14 15:49:45 If you're doing an explicit intent and the activity doesn't exist, and you haven't verified this first via PM, perhaps your app should crash. Feb 14 15:50:16 high five Feb 14 15:50:21 o/ Feb 14 15:51:43 i want to create a status bar notification when a new payment arrives, when the user clicks on the notification a new activity should be started.. but for some reason nothing happens when i click on the notification .. here the code http://pastebin.com/rSqbNeAD Feb 14 15:51:52 http://www.reddit.com/r/Android/comments/pp5f7/help_developer_submitted_a_fake_review_under_my/ Feb 14 15:51:53 wtf Feb 14 15:52:58 error: tag Feb 14 16:04:32 sd Feb 14 16:04:47 anyone have datagrid for android app Feb 14 16:04:48 ? Feb 14 16:05:18 anyone can answer me? Feb 14 16:05:25 JakeWharton, hey is SherlockPreferenceActivity still relevant? Any reason it's under the android.support namespace? Feb 14 16:07:39 evancharlton: im using a splashscreen for my application, the background is transparent, and that is fine, and i have and image at middle, a transparent .png and the layout wraps content + gravity is center, not too complicated, but the .png transparency is changed to white, how is that possible? Feb 14 16:08:11 hi ;) Feb 14 16:09:14 evancharlton: sry, it wasnt dedicated to you + solved, the layout had #ffffff background color and the theme had transparent... Feb 14 16:09:16 norbi: put it in hierarchyviewer and take a look. Note that you might need to use the emulator for this Feb 14 16:09:22 norbi: :) Feb 14 16:09:46 i mean it wasnt necesarly dedicated to you Feb 14 16:10:19 norbi: yeah, no worries :) Feb 14 16:10:56 hi there! Feb 14 16:11:01 I'm developing an simple app for accessing a server in my home network via vpn in Java. I can connect to that server with tcp if I forward that special port to my server with my router. Now I want to add a better security and use VPN. Is there a way to create a tcp socket with vpn-support? Feb 14 16:11:18 im a beginner, this is the first day of mine with android dev, i having just some buttons, splash screen, background image, sound etc, so i may be annoying and stupid:D Feb 14 16:12:19 I am having problems using an Android Library Project. I have a library A and a project B which uses library A. If I update a class in A, the A.jar gets compiled. But when I run project B, the project does not detect that the A.jar has been updated, and therefore does not include the changes. Any help here? Feb 14 16:12:27 evancharlton: yet i dunno even how to exit my app after launching it, i need probably to call onStop or smth Feb 14 16:12:32 can I tell project B to always clean the project before building it? Feb 14 16:12:53 norbi: finish() Feb 14 16:13:19 norbi, if you want an exit button: forget it Feb 14 16:13:43 Android always have a back button, which basically will call finish() on the activity Feb 14 16:13:48 evancharlton: my default activity doesnt have yet a thread, or it doesnt need to have? i just can call finish when pushing a button? Feb 14 16:14:06 norbi, just press the back button Feb 14 16:14:16 you don't have to include a back/exit button yourself Feb 14 16:14:17 erm, what's the difference in ActionBarCompat's functionality compares to ActionBarSherlock's? Feb 14 16:14:18 marcreichelt: it doesnt close it... Feb 14 16:14:33 So I'm attempting to package some XSDs into Java sources... Can SimpleXML do this, or shall I attempt to shoehorn JAXB into my APK over android's warnings? Feb 14 16:15:09 norbi, of course, the back button closes the activity (unless you are doing something weird) Feb 14 16:15:16 abaratican: About 99% of the actionbar functionality Feb 14 16:15:18 marcreichelt: when pressing back button, it exits, but it puts it onPause i think, because when starting again the applcation, it is not starting from splash screen, it just continues where it was Feb 14 16:17:47 marcreichelt: the problem is i think is that im having two activities, one is the launcher(splash screen), the other is the default, the main activity, now when starting application it does just start with the default, the launcher is not triggered Feb 14 16:18:08 so i can just asume that he is resuming to a paused application Feb 14 16:18:36 You do know that splash screens are evil, right? Feb 14 16:18:40 norbi, forget about the term "application" here Feb 14 16:18:42 lov: it'd be better if there was an error indicated in Eclipse, like how so many other things are. Feb 14 16:18:45 and listen to SimonVT ;) Feb 14 16:19:46 marcreichelt: what is SimonVT? and why to forget the term application? Feb 14 16:19:58 oO Feb 14 16:20:03 ah Feb 14 16:20:06 sry Feb 14 16:20:13 i thought is a radio or smth:P Feb 14 16:20:14 :D Feb 14 16:20:31 didnt seen that is a username(with a real person behind) Feb 14 16:20:35 SimonVT FM - your Android dev stuff! ;) Feb 14 16:20:43 :D Feb 14 16:21:07 SimonVT: i just didn't seen your post, sry, but why splash screens are evil?:D Feb 14 16:21:08 norbi, now: free yourself of the term "application" in the tradtitional way Feb 14 16:21:46 marcreichelt: can you explain that just a bit? Feb 14 16:21:48 apps on Android may be started, stopped and restarted whenever the system/user desires Feb 14 16:21:51 :D Feb 14 16:21:52 that's why Feb 14 16:21:53 Splash screens are fine for apps/games where you have to load a lot of resources, since it takes time Feb 14 16:22:13 For normal apps, it's useless timewaste Feb 14 16:22:22 and that is why Splash screens are evil Feb 14 16:22:22 someone just ocntacted me to write an article for an iOS dev magazine Feb 14 16:22:41 your default activity should be _always_ your home activity of the app, no splash activity Feb 14 16:23:04 splash screens are dumb Feb 14 16:23:07 unless you're actually loading something Feb 14 16:23:15 and need to display something prettier than a ProgressDialog Feb 14 16:23:24 if iwant to get into the app, then i want to get into the app Feb 14 16:23:30 i know it's ABC Co.'s XYZ Feb 14 16:23:35 you dont need to throw it in my face for 5 seconds Feb 14 16:23:48 It's a bad habit from old pc games Feb 14 16:24:11 canadiancow|work, I had to develop a nice "loading" animation for an app once, and tried to achieve a normal "splash screen" solution Feb 14 16:24:24 but I was way better off to include the loading layout in the real home activity Feb 14 16:24:28 what do you mean "had to" Feb 14 16:24:32 so norbi, that's what you should do Feb 14 16:24:35 and what were you loading Feb 14 16:24:48 marcreichelt: yes, the default is the home activity, the splash is just a laucher with image and sound, just for testing, i would like to grow this app to a RESTful client, and it may need some preload of images and data from server, im just learning to build android apps Feb 14 16:25:02 canadiancow|work, it's an app for cartoons, https://market.android.com/details?id=de.nichtlustig.android Feb 14 16:25:23 but as I said, I was way better off to use the real activity and overlay a different layout on top of it Feb 14 16:25:51 something is leaking an activity :( Feb 14 16:25:53 and i cant find it :( Feb 14 16:26:11 shoerain: an error in eclipse doesn't help when this occurs while no one has the device hooked up to a debugger. Feb 14 16:26:14 marcreichelt: yet i dunno how to set exactly multiple layouts for the same activity, but i will figure that out too:D Feb 14 16:26:24 logs occur in logcat. Something strange or bad happens? adb logcat *:E Feb 14 16:26:28 canadiancow|work, do you leak your activity often? Feb 14 16:26:33 no Feb 14 16:26:35 i dont Feb 14 16:26:36 Any idea how to activate the typing suggestion in galaxy y pro (which comes with Hardware KB) ?? and also if there's any guide on how to root this device's android GB 2.3.5 ? Feb 14 16:26:37 i didnt build this one Feb 14 16:26:37 solution: use getApplicationContext() where possible Feb 14 16:26:39 oh, kay Feb 14 16:26:43 i was assigned the "reduce memory" issue :P Feb 14 16:26:46 f00bar80: #android-root please Feb 14 16:26:50 hey folks, so I have an app that I decided to make a free counterpart to. However, even though I've chagned the app name, the system thinks it's the same app (I've even tried changing the APK name with no good result...) Feb 14 16:27:02 MkJackson_work: The unique identifier is the packagename. Feb 14 16:27:02 package name... Feb 14 16:27:11 gah Feb 14 16:27:36 so I guess I just got to change it from com.myname.app to com.myname.appfree Feb 14 16:27:44 canadiancow|work, do you use AsyncTasks? Feb 14 16:27:49 first i was wanted to make a game for start, to see how android works, but because that is not android speific, its most java and opengl, i said i will learn from the begining the xml layouting and the api Feb 14 16:27:54 or any inner classes in activities? Feb 14 16:28:06 xml layout is very like Qt xml layouting Feb 14 16:28:23 MkJackson_work: or com.myname.app.free Feb 14 16:28:28 marcreichelt: where are you going with this Feb 14 16:28:40 because im not asking for help at the moment, i was just making a statement :P Feb 14 16:28:43 MkJackson_work: consider moving the bulk of your app into an android library, and then having 2 apps that use that library. Feb 14 16:28:46 canadiancow|work, any inner class has a pointer to the activity Feb 14 16:28:49 ah, okay :P Feb 14 16:28:50 yes no i get that Feb 14 16:28:53 i know waht the problem is :P Feb 14 16:28:57 Any idea how to activate the typing suggestion in galaxy y pro (which comes with Hardware KB) and GB 2.3.5 ?? Feb 14 16:28:58 sorry Feb 14 16:29:01 sok Feb 14 16:29:06 11:26:55 < lov> f00bar80: #android-root please Feb 14 16:29:23 any ideas considering my problem that a project using a Library is not re-built when the library is updated? Feb 14 16:29:26 oh, you mean the soft keyboard? Feb 14 16:29:37 f00bar80: try longpressing the menu button. If that doesn't work, you're out of luck. Feb 14 16:29:38 marcreichelt: Solution: Don't use eclipse :p Feb 14 16:29:59 SimonVT: Solution: Uninstall windows and use linux Feb 14 16:29:59 lov: great idea, thanks for the heads up! :-) Feb 14 16:30:08 * lov folds his arms and smugly grins. Check and mate. Feb 14 16:30:20 MkJackson_work: np Feb 14 16:30:22 is there a possibility to re-build it all the time, without using ant? Feb 14 16:30:23 Err Feb 14 16:30:32 My solution: ~10 minutes - your solution: longer Feb 14 16:30:45 SimonVT: it was sarcasm. Feb 14 16:30:47 Yatzy Feb 14 16:30:51 YATTA Feb 14 16:31:01 marcreichelt: the android library set up kind of sucks now. Feb 14 16:31:04 lov: I know. Feb 14 16:31:20 marcreichelt: if you edit outside of eclipse, make sure that you refresh your projects. Feb 14 16:31:23 past that, try clean and rebuild all. Feb 14 16:31:32 lov, a clean works Feb 14 16:31:34 or force a rebuild of your app project Feb 14 16:31:48 but this might be forgotten sometimes Feb 14 16:32:18 god I hate perforce. Feb 14 16:32:32 lov, is there no solution where I can tell it to clean the app before building the apk? Feb 14 16:32:39 like a config or something? Feb 14 16:32:57 There might be something in project preferences, but be prepared to spend A LOT of time recompiling. Feb 14 16:33:13 I don't have a good solution, sorry. Feb 14 16:33:16 lov: That was what gave you away when you added me on G+ Feb 14 16:33:46 "Is this lov?" - "fuck perforce fuck perforce" - "This is lov" Feb 14 16:33:50 lov, at least not if the library project has not to be re-built Feb 14 16:34:22 SimonVT: hahaha Feb 14 16:34:36 I post so hard one of their dev relations people contacted me. Feb 14 16:34:38 *posted Feb 14 16:34:43 haha Feb 14 16:34:56 sorry if your shitty source control requires 1 second per file to just tell the server that I'm adding it, and I have 6000 files. Feb 14 16:35:12 meaning that I have to spend 100 minutes just letting the fucking thing know that I'm adding a project, let alone sending it the files. Feb 14 16:35:35 they seriously haven't discovered the mysterious secret of -R Feb 14 16:35:38 it's infuriating ._. Feb 14 16:35:50 :D Feb 14 16:35:58 lov: no yes | perforce add or some sort of scripted solution? Feb 14 16:36:03 oh ho. Feb 14 16:36:05 scripted. Feb 14 16:36:13 here, let me show you the "official" solution to a bulk import. Feb 14 16:36:15 you ready for this? Feb 14 16:36:17 here we go Feb 14 16:36:24 find . -type f -exec p4 add {} \; Feb 14 16:36:25 that's right. Feb 14 16:36:29 that's the "official" solution. Feb 14 16:36:32 haha Feb 14 16:36:37 I shit you not. Feb 14 16:36:48 'find' your way through everything, huh. Feb 14 16:36:51 yes Feb 14 16:36:59 because the p4 command line tools have no concept of recursion Feb 14 16:37:06 or of directories Feb 14 16:37:30 you quite literally have to invoke it on every file, for anything you want to do. Feb 14 16:37:45 I mean it's got some really cool features but at this point git outperforms it in every way ._. Feb 14 16:38:53 I bet if -R was some sort of global thing that every tool could easily reuse, they wouldn't have to bother implementing it. Aren't -R flags kinda repprogrammed with every new program? git, svn, ls, etc. Feb 14 16:39:14 unless there's some libfind/librecursedirs ? Feb 14 16:40:48 well A) it's not hard to do something recursively on a dir and B) what your program does "recursively" may have different results than what you expect. Feb 14 16:41:30 I figured -R for the most part, is same from program to program. And you have the same options: stuff like "don't follow symbolic links" Feb 14 16:41:35 also, how do you want your recursion to execute? Do you want to make a list of all of the recursive content, then start executing on that list? Do you want to execute as you go through? If so, depth first or breadth first? Feb 14 16:42:10 I mean I'm sure most tools do the same thing but I honestly don't know if they just use the same library or what. Feb 14 16:44:11 lov: breadth/depth could also be offered as an option/flag. It's not too difficult once the lion's share is done. It'd just be nice if I saw more code reuse. Feb 14 16:45:19 * lov shrugs Feb 14 16:45:21 but instead I see several implementations of stuff like ps, ls, etc... bsd vs gnu vs other variants... Feb 14 16:45:29 you're right, it would be nice Feb 14 16:45:30 ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.wfc2/.WFC2Activity } Feb 14 16:45:33 but FOSS is kind of like herding cats. Feb 14 16:45:45 I'm trying to run my application in the emulator Feb 14 16:45:47 All I get is this ^ Feb 14 16:46:01 alex-: cool story bro. Feb 14 16:46:04 what does logcat say? Feb 14 16:46:16 ALSO Feb 14 16:46:20 don't make com.android your packagename. Feb 14 16:46:29 why not? Feb 14 16:46:33 lov: the linux and bsd kernels seem to be doing well, right? Feb 14 16:46:35 do you own android.com ? Feb 14 16:46:41 alex-: not yours, duh... Feb 14 16:46:41 nope Feb 14 16:46:46 alex-: exactly. Feb 14 16:46:50 but what haves that to do with the package name then? Feb 14 16:47:01 alex-: package names are supposed to be based on your domain name. Feb 14 16:47:08 I don't have a domain name Feb 14 16:47:12 com.amazon.kindle, etc Feb 14 16:47:14 com.android <-> android.com .. can't see how they're related? Feb 14 16:47:16 alex-: pick something then Feb 14 16:47:17 and if you don't have one then you just stab lov in the face Feb 14 16:47:24 alex-: com.alex.superapps Feb 14 16:47:38 bbbut he doesn't have alex.com! Feb 14 16:47:42 anyone know how i can view the holo theme? Feb 14 16:47:50 Gsingh: get a tablet :> Feb 14 16:47:55 I just found out that I can debug applications live on my phone Feb 14 16:47:57 lol Feb 14 16:48:02 pretty nice Feb 14 16:48:02 no i mean the style Feb 14 16:48:10 Gsingh: be more specific, please. do you mean in the GUI editor? Feb 14 16:48:12 clone the source? Feb 14 16:48:14 lov: he wants holo's xml file, which he needs to get ICS sources to look at. Feb 14 16:48:26 sorry I mean as in the actual xml Feb 14 16:48:30 oh Feb 14 16:48:34 yeah, you'll need to pull the ICS sources Feb 14 16:48:40 HC was never released Feb 14 16:49:04 sdk/platforms/android-15/data/res/ Feb 14 16:49:53 Gsingh: http://source.android.com/source/downloading.html Feb 14 16:51:01 I only need to view the code which im viewing through github Feb 14 16:51:13 but I cant seem to find where that xml is located Feb 14 16:51:20 https://github.com/android Feb 14 16:51:27 * abaratican is uncertain how the question has not been thoroughly answered. Feb 14 16:52:03 https://github.com/android/platform_frameworks_base/tree/master/core/res/res Feb 14 16:52:34 thanks simon this is what i need Feb 14 16:54:08 How does one import the Resource (R) variable? Feb 14 16:54:15 Or do you even need to import it? Feb 14 16:54:24 Renegade001: like any other class. Feb 14 16:54:27 I keep getting "Variable cannot be resolved" Feb 14 16:54:40 lov: Is it from the android.R or the generated class? Feb 14 16:54:41 Renegade001: R is a class, not a varaible. Feb 14 16:54:46 it's the generated class, almost certainly Feb 14 16:55:10 Renegade001: if the class you're using has the same packagename as your app's packagename, then R has the same packagename so you shouldn't need to explicitly import it Feb 14 16:55:15 you should just be able to do R.string.blah Feb 14 16:55:25 mind you, if that doesn't seem to work, try cleaning and rebuilding. Feb 14 16:55:54 I should add android.R to my checkstyle's illegal imports Feb 14 16:56:10 lov: Thank you Feb 14 16:56:18 Wonder if I can do that Feb 14 16:56:23 Rebuilding is exactly what I needed to do Feb 14 16:56:34 I've been stuck for a while on a ListView with ArrayAdapter; I can't seem to get anything to update the Ui (and yes, I am using runOnUiThread etc etc)... has anyone fought with ListView/ArrayAdapter that could shed some light on what Im seeing? Feb 14 16:56:46 I have WebView webview = (WebView) this.findViewById(R.id.webview); but this gives me an error: id cannot be resolved or is not a field Feb 14 16:58:58 anyone? Feb 14 16:59:30 clean project Feb 14 16:59:56 ok Feb 14 17:00:16 alex-: verify that the R you're referring to isn't android.os.R Feb 14 17:00:34 Hmm Feb 14 17:00:40 The problem is in layout/main.xml Feb 14 17:00:48 I added but this seems to crash Feb 14 17:00:48 alex-: no, it's probably not. Feb 14 17:00:57 ... Feb 14 17:00:59 "crash" Feb 14 17:01:08 meaning that findViewByid returns null or what. Feb 14 17:01:11 android.R would have the inner class id tho Feb 14 17:01:27 SimonVT: good point Feb 14 17:01:49 kylebt: look at the android sample code for the API level; there's almost certainly a few listview demos Feb 14 17:02:03 if all else fails look at the source for arrayadapter Feb 14 17:02:24 Ah, that's a good idea Feb 14 17:02:26 Source Feb 14 17:02:34 I've seen my code work before Feb 14 17:02:42 So I know it's not far off. It just.. stopped. Feb 14 17:02:53 scm history was futile Feb 14 17:06:35 SimonVT: still same error Feb 14 17:08:08 LOL! Top free in Finland has two stars as rating :D Feb 14 17:09:12 Hmm my app keeps crashing Feb 14 17:09:31 dunno why Feb 14 17:16:32 alex-: logcat logcat logcat logcat logcat logcat logcat logcat Feb 14 17:21:05 hi, i'm developing my first android app using eclipse and running it on my phone connected via usb Feb 14 17:21:37 the problem is that when I change the code and try to rerun the app - eclipse says that it's already running/installed Feb 14 17:21:42 and nothing changes Feb 14 17:24:48 hi all Feb 14 17:27:48 My app crashes because of this: this.requestWindowFeature(Window.FEATURE_NO_TITLE); Feb 14 17:32:21 guys, as stated in View reference, A view actually possess two pairs of width and height values: measured ones and drawing ones. I can set measured ones by calling setMeasuredDimension(int, int) in onMeasure(int, int). But how can i set drawing ones? Feb 14 17:33:17 nvm Feb 14 17:33:19 it works Feb 14 17:33:29 Anyone playes wordfeud? Feb 14 17:34:31 nvm Feb 14 17:34:36 How is this error called?: http://cdn.thenextweb.com/files/2009/12/android_error_131.jpg Feb 14 17:34:40 I mean the layout Feb 14 17:34:44 I want to create my own error like that Feb 14 17:35:02 Hello, i'm starting my activity for result from fragment, but fragments' onActivityResult() method never gots called Feb 14 17:35:43 i got the newest android support v4 package. Feb 14 17:42:07 anyone ever developped a browser? Feb 14 18:01:56 ahh, I figured it out - I had to run "android list sdk --extended --obsolete" and choose the number via the filter manually Feb 14 18:03:41 nvm my app works Feb 14 18:13:05 Can you set a webviews root to be a sdcard folder that has a website in it? Feb 14 18:13:13 My custom dialog will not wrap_content so that it is only as big as the children I am on 3.2 does anyone know how to workaround this? Feb 14 18:13:28 I tried wrap_content in the xml that does not work Feb 14 18:13:29 are they ever going to fix the webview activity leak Feb 14 18:19:07 Hello there. I am currently trying to draw a bitmap to a canvas using a matrix to rotate and scale the bitmap and then drawing it at a specified point. However, this isn't working very well when I add rotation. http://pastebin.com/bJ7Ddrun Feb 14 18:19:32 Namely, the scale and translate work perfectly. However, adding in the rotation causes it to be offset, in this case, slightly to the left. Feb 14 18:19:45 raaah Feb 14 18:19:58 I have a concurrentmodification exception on a treemap Feb 14 18:20:25 I make modifications on this map by calling it from a touch event handler Feb 14 18:21:05 please.... please.... pleeeeaaase don't tell me that android events aren't emitted from an eventqueue Feb 14 18:21:39 hey this is a stupid novice question but im having trouble linking the java with the xml in the layouts Feb 14 18:22:11 shoot Feb 14 18:22:20 please elaborate Feb 14 18:23:00 guidocalvano: ok I won't tell Feb 14 18:23:14 guidocalvano, of course they are Feb 14 18:23:38 then how is it possible that I have a concurrent modification exception... Feb 14 18:23:47 do I have to destroy an iterator or something? Feb 14 18:23:59 guidocalvano, you cannot iterate and remove at the same time Feb 14 18:24:08 Banjo597: can you be more specific? Feb 14 18:24:26 pfn: so I have to put the elements I want to kill in a temporary array? Feb 14 18:24:29 or are you just letting us know that you have problems? Feb 14 18:24:33 because if so that's cool I guess Feb 14 18:24:35 we all have problems. Feb 14 18:24:37 guidocalvano, yes Feb 14 18:24:40 mine's bigger Feb 14 18:24:43 my problems* Feb 14 18:25:13 ok i created the activities i needed and the strings i needed but when i use the setContentView() method, its not dectecting it. Feb 14 18:25:24 * guidocalvano grumbles something about not liking iterators Feb 14 18:25:35 Banjo597: what an awesome description. Feb 14 18:25:42 "Guys I did this thing and then it didn't work" Feb 14 18:25:53 Banjo597: pastebin your activity and your layout please. Feb 14 18:25:58 ok Feb 14 18:26:13 lol @ canadiancow Feb 14 18:26:16 lol @ canadiancow|work Feb 14 18:26:44 guidocalvano, the behavior would otherwise be in determine it Feb 14 18:27:53 http://pastebin.com/h2Q54FCj Feb 14 18:28:45 pfn: I know, and thanks Feb 14 18:28:52 (: Feb 14 18:29:14 How can I disable the back button in an app/ Feb 14 18:29:29 alex-: please don't do this. Feb 14 18:29:52 Banjo597: ok, pastebin game.xml Feb 14 18:30:02 lov: why not? Feb 14 18:30:20 it violates the rule of least surprise, and it's usually masking you not understanding how to fix some problem. Feb 14 18:30:28 whats the best filter to use to keep out crappier phones for a more intensive game? Feb 14 18:30:42 what if it's the best sign that I should uninstall an app? Feb 14 18:30:45 like I have an intercept, biggest POS phone ever Feb 14 18:30:47 I am building a funky agenda on an old desire Feb 14 18:30:50 runs at 5 fps Feb 14 18:30:55 my nexus one runs at 40 Feb 14 18:31:03 I mean yeah there are definitely some reasons to disable it but that won't help for when the user fat fingers home, or search, or anything else Feb 14 18:31:08 lov: see pm Feb 14 18:31:14 must say I'm pleasantly surprised by the performance (the agenda is very funky in presenting timelines) Feb 14 18:31:16 lov: ok Feb 14 18:31:17 yeah Feb 14 18:31:22 see me saying "ask in the channel" Feb 14 18:31:27 lov: ye i saw Feb 14 18:31:29 ok, let me put it this way. Feb 14 18:31:40 the expected behavior for every android app is for the "back" button to take you to the previous activity. Feb 14 18:31:44 http://pastebin.com/eMjVWmwS Feb 14 18:31:47 Why is your app SO SPECIAL that you'll break this behavior? Feb 14 18:31:56 lov: what should the back button do then? Feb 14 18:32:39 the back button should take the user logically back Feb 14 18:32:52 if that means back a step or back an activity or undo, that's up to your app Feb 14 18:33:04 ^^ Feb 14 18:33:07 They may not do a step back Feb 14 18:33:07 Banjo597: you have no id's in your xml Feb 14 18:33:15 i prefer to block all key input and make them pissed so they have to reset Feb 14 18:33:15 They fill in a form Feb 14 18:33:23 alex-: and? Feb 14 18:33:27 you fill in forms in lots of apps. Feb 14 18:33:32 lov: and see an ad Feb 14 18:33:35 they don't block the back button. Feb 14 18:33:35 ah. Feb 14 18:33:38 lov: and then get an answer Feb 14 18:33:39 you want to trap and annoy the user. Feb 14 18:33:42 got it. Feb 14 18:33:56 you could load that xml by calling setContentView in your activity, but if you want to change say the textview you will have to assign an id to it Feb 14 18:33:57 lov: what do you mean? Feb 14 18:33:58 consider whether you want to be scum of the earth and/or have users immediately uninstall your app in rage and frustration? Feb 14 18:34:12 anyone have ideas for "whats the best filter to use to keep out crappier phones for a more intensive game?" Feb 14 18:34:17 I don't want them to go back to the input form Feb 14 18:34:17 also remember that you can't override the home button, period./ Feb 14 18:34:25 They may press the home button Feb 14 18:34:26 This ends the app Feb 14 18:34:28 android version doesn't necessarily work because some crappy phones have 2.2 Feb 14 18:34:35 Banjo597: do you load the xml file by calling setContentView( R.layout.game ) ; ? Feb 14 18:34:36 alex-: then finish() the input form activity and have them go back to the activity before that. Feb 14 18:34:47 yeah Feb 14 18:34:57 lov: ok i will enable it Feb 14 18:35:07 what if the user realized he entered wrong data the moment he tapped "ok"? Feb 14 18:35:08 lov: How can I trigger an event when someone presses it? Feb 14 18:35:17 Ge0rG: then he sees the add Feb 14 18:35:21 and then he continues Feb 14 18:35:29 no, then he presses back Feb 14 18:35:29 and presses a button on the screen there Feb 14 18:35:31 and back doesn't work Feb 14 18:35:34 and he goes "this is garbage" Feb 14 18:35:36 and uninstalls Feb 14 18:35:40 hmm Feb 14 18:35:57 does the back button supports history go -2 ? Feb 14 18:36:00 when it's on some page? Feb 14 18:36:07 unless the user is explicitly expecting to see an advertisement (and I don't know why they would) you're going to just annoy your users here. Feb 14 18:36:18 look for onBackPressed Feb 14 18:36:23 the default behavior is to call finish() Feb 14 18:36:26 idgaf anymore. Feb 14 18:36:36 so what am i missing or doing wrong Feb 14 18:36:38 I don't want them to get back to the login form after they filled it in Feb 14 18:36:39 piss off your users, see how awesome they like your app Feb 14 18:36:52 alex-: call finish(); startActivity(i); Feb 14 18:36:58 lov: huh Feb 14 18:36:59 that will finish the form, and start the next task. Feb 14 18:37:20 Banjo597: you haven't told us what's actually broken. Feb 14 18:37:29 the code as you showed us will display "Hello world" or whatever the string is. Feb 14 18:37:40 lov: can I do history go -2 when someone presses the back button Feb 14 18:37:41 you've pastebinned the autogenerated "my first project" code Feb 14 18:37:42 ? Feb 14 18:37:44 alex-: no Feb 14 18:37:50 you can't control the stack directly Feb 14 18:38:03 Then what would be a solution? Feb 14 18:38:05 you can start activities for result via startActivityForResult, and note if they cancelled or something and then finish yourself Feb 14 18:38:24 I wanted to make a php page, because I don't want the user to update his app every day Feb 14 18:38:32 So what I made is a browser which loads a page. Feb 14 18:38:34 is this bad? Feb 14 18:38:34 whats broken is the link between the quizgame.java and the game.xml Feb 14 18:38:56 Banjo597: ok you have to actually explain what the problem is here. Feb 14 18:39:13 Banjo597: you've shown us a layout that shows a string, and java code that displays that particular layout. Feb 14 18:39:20 what part of this do you not expect? Feb 14 18:39:26 alex-: consider using webservices or something Feb 14 18:39:32 lov: what are these? Feb 14 18:39:39 lmgtfy.com Feb 14 18:39:54 lov: Webservices.nl: snel en eenvoudig toegang tot een grote verscheidenheid aan data bronnen. Feb 14 18:40:08 lov: "Big Web services" use Extensible Markup Language (XML) messages that follow the SOAP standard and have been popular with traditional enterprises. Feb 14 18:40:15 I don't see any results I can use Feb 14 18:40:16 ... Feb 14 18:40:34 alex-: I typed in "webservices" into google search Feb 14 18:40:38 tell me, what is the first result you see? Feb 14 18:40:42 because the first one I see is a wikipedia page Feb 14 18:40:46 Webservices.nl | data validatie | data verrijking | webservice ... Feb 14 18:40:48 Webservices.nl: snel en eenvoudig toegang tot een grote verscheidenheid aan data bronnen. Feb 14 18:40:50 that one ^ Feb 14 18:40:59 what the fuck Feb 14 18:41:12 i need the activty to setContentView to the layout Feb 14 18:41:12 I think it's because i use dutch google Feb 14 18:41:17 O_O Feb 14 18:41:20 ok yes it is Feb 14 18:41:23 well the second result is wikipedia. Feb 14 18:41:43 lov: something lower, but, idk how to make this. Feb 14 18:41:46 looking at the english site, http://en.wikipedia.org/wiki/Webservice Feb 14 18:42:01 are there any examples/ Feb 14 18:42:02 alex-: your app posts something to the site via HttpURLConnection, the site responds with some data, etc. Feb 14 18:42:14 ah Feb 14 18:42:21 but this still means they have to update the app each day Feb 14 18:42:37 uh Feb 14 18:42:40 if I make a change Feb 14 18:42:43 o_O Feb 14 18:42:48 lolol Feb 14 18:42:51 either have the app pull data from the server Feb 14 18:42:56 parse it and do something with it Feb 14 18:43:04 or have the server use c2dm to tell the device to do something Feb 14 18:43:10 c2dm? Feb 14 18:43:10 whatever, use the browser, glhf. Feb 14 18:43:47 :) Feb 14 18:44:58 is there a way to have a table with 2 columns, 1 column having 1 row, and one column having 3 rows Feb 14 18:45:16 I'd also like the row height to be independent based on column Feb 14 18:45:56 lov: the browser is more easy now Feb 14 18:46:02 but how can I disable the back button? Feb 14 18:46:04 and the menu button Feb 14 18:46:08 or trigger them to do something Feb 14 18:46:16 which is the thread that execute onSensorChanged ? Feb 14 18:47:42 can someone tell me how get padding with a listview right? i want the scrollbar to be on the edge on the screen, but the inner layout to have padding :( Feb 14 18:47:59 for example I have a service that create a thread and I want that thread execute onSensorChanged ... is ti possible ? Feb 14 18:48:19 aLeSD: yes Feb 14 18:48:40 fpillet, could you tell me more ? Feb 14 18:49:00 aLeSD: you'll need to setup a SensorEventListener yourself Feb 14 18:49:40 ?_? Feb 14 18:49:43 Basically, copying / adapting the OS code from OrientationListener Feb 14 18:50:04 lol Feb 14 18:50:25 although Feb 14 18:50:34 maybe you can create an OrientationListener in your service thread Feb 14 18:50:56 so the thread that run the onSensorChanged is the UI thread Feb 14 18:51:27 that's break all my design Feb 14 18:51:35 yeah what I did here is take the OS code that does what I want, and put it in a separate thread Feb 14 18:51:46 aLeSD: consider using a handler and/or a Looper Feb 14 18:51:49 So processing 50 events a second is not being done in the main thread Feb 14 18:52:12 aLeSD, it doesn't have to, you can tell it which thread to run on by passing it a handler Feb 14 18:52:18 lov you mean send by message the sensor event to the service Feb 14 18:52:20 ? Feb 14 18:52:32 Well listen to pfn he probably knows more than I do :-) Feb 14 18:52:42 lol Feb 14 18:52:43 (and my usage is kinda very uncommon anyway) Feb 14 18:52:52 no, sensormanager.registerListener(sensorlistener, sensor, whateverthisintis, myHandlerOnAnotherThread) Feb 14 18:52:52 hacker Feb 14 18:53:10 ah Feb 14 18:53:17 and you can get that handler on another thread by doing t = new HandlerThread(); t.start(); new Handler(t.getLooper()) Feb 14 18:53:19 Nah not hacker … our product is just very specific and far away from your regular application Feb 14 18:54:23 uff ... so I have to create a looper and an handler Feb 14 18:54:28 in my Service Feb 14 18:54:30 . Feb 14 18:54:37 trivial, as demonstrated above Feb 14 18:54:43 and always handy Feb 14 18:54:47 it's my first time Feb 14 18:54:53 it's 3 lines Feb 14 18:54:56 plus imports Feb 14 18:54:57 :D Feb 14 18:58:14 What would be the best appraoch to implementing a layout that has at the top 3 rows of edit text below that a list. The actual layout mixes the 2 parts and they all appear in a list - http://pastebin.com/BBymdGns Feb 14 18:58:27 og ignore that Feb 14 18:58:29 ok* Feb 14 18:59:38 The following layout should have at the top 3 Rows of edit text and below that a list. The actual layout mixes the 2 parts and they all appear in a list - http://pastebin.com/BBymdGns Feb 14 18:59:59 can you draw a picture of what you want Feb 14 19:00:32 t432: are you actually referencing that layout? Feb 14 19:00:40 the ListActivity you pastebinned doesn't. Feb 14 19:02:01 lov: when i run the code i see a list with a bunch of edit text and the content of the array Feb 14 19:02:27 edit text shouldnt appear on the list instead it should be at the top of the list Feb 14 19:03:03 text view _____ Feb 14 19:03:04 text view _____ Feb 14 19:03:05 text view _____ Feb 14 19:03:09 list Feb 14 19:04:06 wheres this list Feb 14 19:04:13 i see a linearlayout with a textview in it Feb 14 19:04:49 thats where the list belongs ... look at the java code for the list - i am passing the list through an adaptoer Feb 14 19:04:59 adapter* Feb 14 19:05:29 line 9 Feb 14 19:06:57 If it is not clear already, I am new to android dev. Feb 14 19:07:24 hey its weird Feb 14 19:07:39 i erased the whole project created a new one Feb 14 19:07:43 and now its working Feb 14 19:08:30 Probably because the project is still in memory Feb 14 19:12:13 its not in the memory Feb 14 19:12:24 i completely erased it Feb 14 19:12:46 Your overlooked something. Feb 14 19:12:49 you* Feb 14 19:13:02 t432: oh Feb 14 19:13:08 t432: you set that layout as what you wanted each element to be Feb 14 19:13:22 consider creating a layout similar to what you have, with a listview element, and then finding and using that listview Feb 14 19:13:28 yeah Feb 14 19:13:29 a ListActivity is just a wrapper around ListView Feb 14 19:13:43 oh Feb 14 19:13:46 HI Feb 14 19:13:48 Banjo597: you probably had to clean and rebuild but frankly I can't understand what your problem is/was because you could never actually tell us Feb 14 19:13:53 i didn't know that Feb 14 19:14:01 lov: can i pass an array to a listview? Feb 14 19:14:07 Banjo597: all we ever got from you was "Something is wrong guys, what's going on" Feb 14 19:14:14 with no explanation of WHAT, EXACTLY the problem was Feb 14 19:14:21 using android emulator and AVD Manager Can I emulate real hardware or just "Goldfish" ? Feb 14 19:14:25 t432: an ArrayAdapter yes Feb 14 19:14:28 t432: you pass it to the adapter Feb 14 19:14:31 How can I trigger an action when someone presses the menu button? Feb 14 19:14:35 thx Feb 14 19:14:44 well i was telling you that the activity wasn't connecting to the layout Feb 14 19:14:44 alex-: onKeyDown Feb 14 19:14:55 that if it was that i wrote it wrong or something Feb 14 19:15:01 but problem is solved Feb 14 19:15:03 Yes but WE DON'T KNOW WHAT THAT MEANS Feb 14 19:15:08 What does "not connecting to the layout" mean Feb 14 19:15:19 what did you see vs what did you expect to see Feb 14 19:15:27 don't say "the layout" either. Feb 14 19:15:56 kakakaka ;-) Feb 14 19:16:14 did you make a change to your layout that was not being reflected when you tried to run? Feb 14 19:16:17 Was that the problem? Feb 14 19:17:55 qemu actually not support all devies, so what can I test ? screen size ... but what about hardware ? Feb 14 19:18:06 lov: what's better, onKeyDown or dispatchKeyEvent? Feb 14 19:19:28 punxos, you can test reference hardware only Feb 14 19:19:50 what mean reference ? Feb 14 19:20:05 a single hardware spec, effectively Feb 14 19:20:09 but you can have different configurations Feb 14 19:20:23 what does it matter, though Feb 14 19:21:07 but if I want kernel changes for my HTC wildfire for example ? Feb 14 19:21:44 Can I test it before using "emulator" ? AVD seem just "aparence" Feb 14 19:22:00 kernel changes are irrelevant Feb 14 19:22:10 oh, you want to test kernel changes using the emulator? Feb 14 19:22:18 yeah, not gonna work well Feb 14 19:22:38 or not at all Feb 14 19:22:41 mmm Feb 14 19:23:07 I want to create a rom from zero. And I want test it before, it's possible using emulator? I have and HTC wildifre. Feb 14 19:23:45 Using "goldfish" is posible but if I put this room in my htc not will work I think. Feb 14 19:24:03 maybe I am confused Feb 14 19:26:38 I have a style which is inheriting from a theme which contains the "buttonBarstyle" atrribute how do I override this attriube so that it is null Feb 14 19:27:29 Anyone know how to change where eclipse looks for AVD & SDK? It currently looks in /root/.android(...) - I'm running Ubuntu Feb 14 19:27:55 is there a way to have a table row that's height does not take its size from the other row? Feb 14 19:28:09 UnknownFrequency: preferences -> android Feb 14 19:28:14 lov: what's better, onKeyDown or dispatchKeyEvent? Feb 14 19:28:28 storkme: I'll look.. thx Feb 14 19:28:29 unknownFrequency change your target path to that of your sdk folder Feb 14 19:30:22 thanks... i'll brb Feb 14 19:31:53 CombatCow Feb 14 19:31:58 you are stealing both my suffix and my initials Feb 14 19:32:17 this is unacceptable! Feb 14 19:32:24 hi mikedg_ Feb 14 19:32:33 A dual is in order! Feb 14 19:32:50 PANIC: Could not open: /home/unknown/.android/avd/test.ini Feb 14 19:32:54 http://www.googlefight.com/index.php?lang=en_GB&word1=canadiancow%7Cwork&word2=CombatCow Feb 14 19:33:05 it seems it does not store the AVD in the right location Feb 14 19:33:23 canadiancow|work Feb 14 19:33:24 427000000 results Feb 14 19:33:25 i win? Feb 14 19:33:36 not sure. your graph is smaller?? never seen that before. Feb 14 19:33:41 yea that's weird Feb 14 19:33:49 INCONCLUSIVE. Feb 14 19:33:50 and try canadiancow because i think the |work does something stupid Feb 14 19:33:52 I guess google thinks you're better. Feb 14 19:33:54 probably Feb 14 19:34:22 3150 now but still more than CombatCow's 717.... but it still shows you as smaller. Feb 14 19:34:33 googlefight may be biased. Feb 14 19:34:45 against canada :( Feb 14 19:35:07 I Feb 14 19:35:21 or, simply broken. reverse the search terms and the graph heights stay the same Feb 14 19:35:27 tsk tsk tsk Feb 14 19:35:43 I'm going to keep this nick. I'm a rebel. Feb 14 19:36:27 anyway, real reason i'm here at the moment: Incredible 2 or Thunderbolt? friend is looking for a new verizon phone, both are about same price/size. i don't know jack about either. Feb 14 19:36:42 too lazy to research for him; hoping someone here has an opinion i can parrot. Feb 14 19:39:38 * tophyr listens for crickets Feb 14 19:41:17 is the incredible2 4g? Feb 14 19:41:30 no Feb 14 19:41:48 tbolt is lte Feb 14 19:42:44 guys, after runing an activity, eclipse is set to build automatically the package, and i cant find the apk in the workspace, where can i find it? Feb 14 19:42:45 i've heard the tbolt battery life suxxorz Feb 14 19:43:12 after runing an activity? wtf does that mean Feb 14 19:43:33 you mean clicking run? Feb 14 19:43:46 by default I think it puts it in the /bin directory Feb 14 19:44:38 now my name is back:D Feb 14 19:44:48 all lte devices have shitty battery life Feb 14 19:44:58 so where can i find the apk after bulding the project? Feb 14 19:45:03 ah t0mless, thanks Feb 14 19:45:08 until the next gen chips are out Feb 14 19:48:29 Please help. I changed the folder of SDK, but AVD does not seem to save the .ini file --> Emulator] PANIC: Could not open: /home/unknown/.android/avd/2_1_Default_HVGA.ini Feb 14 19:49:19 It still saved them in /root/.android Feb 14 19:49:38 is there an easy way to check if an activity is currently in the foreground ? Feb 14 19:51:06 you can use onResume/onPause Feb 14 19:51:27 I have a subclassed ArrayAdapter that refuses to render with calls to add() Feb 14 19:52:03 well i want to check it from a service.. the service only got the context of the current activity Feb 14 19:52:29 kylebt: did you call notifydatasetchanged? Feb 14 19:53:07 Yes Feb 14 19:53:24 and make sure your getView is returning the right data? Feb 14 19:53:25 storkme: i feel like I've followed every last bit of documentation down to a T Feb 14 19:53:46 pastebin the code, i can ty and have a look Feb 14 19:53:56 that was a helpful comment. I shall pastebin. you rock. Feb 14 19:54:42 Anyone know how to change the folder in which AVG creates its files?? Please! Feb 14 19:56:16 it isn't helpful until something gets fixed yo Feb 14 19:56:50 AVD i mean Feb 14 19:56:50 http://pastebin.com/YWmGceSC Feb 14 19:56:53 lol, true Feb 14 19:57:11 Hey guys can someone help me with adding action items? Feb 14 19:57:12 but the effort is legit Feb 14 19:57:21 and that's half the battle right? Feb 14 19:57:27 that's the code that makes use of the adapter Feb 14 19:57:32 I will pastebin the adapter subclass itself Feb 14 19:57:34 How is this error being called? http://cdn.thenextweb.com/files/2009/12/android_error_131.jpg Feb 14 19:58:41 I want to create my own error like that Feb 14 19:59:56 Guys I am trying to debug on my phone and eclipse says device not found but it finds it in the selection screen?... Feb 14 20:00:12 out of interest kylebt why are you inflating the views manually and not doing it from xml? Feb 14 20:00:24 Because Im a noob =D Feb 14 20:00:30 fair enough Feb 14 20:00:44 lol Feb 14 20:00:56 the convention is to define your layout entirely in xml and do setContentView(R.layout.mylayout) Feb 14 20:00:58 I think a better answer is: because I just need this prototype to work now and then iterate later. Feb 14 20:00:59 Anyone know how to get eclipse to see my device correctly? Feb 14 20:01:16 restart adb Feb 14 20:01:16 Indeed, I have read that Feb 14 20:01:23 adb kill-server Feb 14 20:01:27 adb start-server Feb 14 20:01:27 This will definitely be iterated on =) Feb 14 20:01:28 Ok thanks Feb 14 20:01:33 try that see what happens Feb 14 20:01:38 what does your list adapter look like? Feb 14 20:01:52 With that said storkme, please criticize further as I am definitely greener than most when it comes to droid Feb 14 20:01:54 ah, yes Feb 14 20:02:17 (also, are you sure your notifyDataSetChanged is getting called? might be worth putting a Log statement in there just for sanity. Also in the bit where you call adapter.add Feb 14 20:02:18 http://pastebin.com/sjQ9VVqT Feb 14 20:02:28 Good call; doing that right now Feb 14 20:02:45 I am 99% sure but that 1% is when you feel like a dumbass Feb 14 20:02:56 idd :p Feb 14 20:03:06 Guys the install is timing out now Feb 14 20:03:07 and by you I mean me = D Feb 14 20:03:21 Snwspeckl what did the cmd line say when you restarted adb? Feb 14 20:03:21 kylebt: public void registerDataSetObserver(DataSetObserver observer) { Feb 14 20:03:25 The fuck Feb 14 20:03:31 lol Feb 14 20:03:34 The listview uses that for attaching an observer Feb 14 20:03:41 No observer, no notify Feb 14 20:03:51 beautiful Feb 14 20:04:09 It was blank when I ended it but I restarted it, it said "* daemon not running. starting it now on port 5037 * * daemon started successfully *" Feb 14 20:04:19 ok so do adb devices Feb 14 20:04:27 is your dev in the list? Feb 14 20:04:36 It found it Feb 14 20:04:52 ok try to reinstall your app, adb reinstall com.example.yourapp Feb 14 20:05:33 if you've got more than 1 device do adb -s 12346 reinstall Feb 14 20:05:45 Its just one Feb 14 20:06:01 i thought it was adb install -r yourapkfile.apk Feb 14 20:06:02 so... is eclipse still being cantankerous? Feb 14 20:06:06 Its just giving me the list of commands now Feb 14 20:06:34 SimonVT: so don't override those and things are going to be looking a lot different? Feb 14 20:06:34 use install -r Feb 14 20:06:40 t0m could be right there... but don't you have to have a dir to the file to reinstall? Feb 14 20:06:50 no Feb 14 20:06:53 ah Feb 14 20:07:01 snw is eclipse still being f*d? Feb 14 20:07:04 kylebt: For one thing, the listview will get notified of changes Feb 14 20:07:05 it uses the packagename from the manifest Feb 14 20:07:21 lol Feb 14 20:07:27 Yes... Feb 14 20:07:35 and why do u override the add() ? Feb 14 20:07:38 though I guess you do have to have the relative path to the apk file Feb 14 20:07:39 My eclipse all the time recently also, with the best hardware on the market... Feb 14 20:07:41 kylebt: Also, you're overriding everything ArrayAdapter does Feb 14 20:07:46 kill eclipse for a bit Feb 14 20:07:48 restart adb Feb 14 20:07:51 restart eclipse Feb 14 20:07:52 crashes all the time, blows, and ok Feb 14 20:08:01 kylebt: You might as well be using a BaseAdapter Feb 14 20:08:08 Just build with ant :-D Feb 14 20:08:12 I added the overrides/subclass because I was having no luck with all the logic in my ListView Feb 14 20:08:14 You'll feel better about yourself Feb 14 20:08:17 yeah it does that to me as well, romainguy_ have you had complaints lately of eclipse adb being buggy? Feb 14 20:08:25 I scoured the web for so long looking for these answers............. Feb 14 20:08:26 lol Feb 14 20:08:36 eplewis89: I don't use Eclipse for debugging Feb 14 20:08:55 It says my device is offline but its plugged in... Feb 14 20:09:01 neither do i but i've had a bunch of errors come through adb in eclipse... ie EOF, device not recognized, etc. Feb 14 20:09:09 reboot your device Feb 14 20:09:21 something turned off the adbd on the device Feb 14 20:09:32 so SimonVT: get rid of the subclass, move it all back to my ListView and drop the overridden observers? Feb 14 20:09:36 make sure USB Debugging is enabled too Feb 14 20:09:41 First explorer.exe crashes, then BSOD, now eclipse is failing... Feb 14 20:09:54 sounds like more than an adb problem to me >:D Feb 14 20:09:54 Snwspeckle: reinstall windows =] Feb 14 20:09:58 With the best hardware on the market.... Feb 14 20:10:00 or better yet install linux Feb 14 20:10:00 winblows.... Feb 14 20:10:19 Rebooted and I go to install the app in eclipse and it fails, again Feb 14 20:10:26 so... Feb 14 20:10:34 what you can do is copy the apk to the device Feb 14 20:10:50 kylebt: Extend BaseAdapter instead, don't override register/unregister, do all your JSON work before it's passed to the adapters list (it's slow) Feb 14 20:10:50 then browse to it on the phone and install it from the device itself Feb 14 20:10:53 ^ Feb 14 20:10:59 got ya Feb 14 20:11:02 That is very inefficient... Feb 14 20:11:05 yeah Feb 14 20:11:06 it's very slow Feb 14 20:11:14 sweet Feb 14 20:11:28 Thank yoy Feb 14 20:11:31 you even Feb 14 20:11:42 I click run in eclipse and my eclipse just crashed, wtf is wrong with this program.... Feb 14 20:11:43 kylebt: Also, now that you use BaseAdapter, you have to call notifyDataSetChanged manually Feb 14 20:11:55 snw: what more can you do? without physically being there, i can't help, i can only offer advice! Feb 14 20:12:08 idea: reinstall eclipse and android adt Feb 14 20:12:09 That's awesome to know Feb 14 20:12:15 does anyone know why the holo dialog theme will not wrap to its childrens size? Feb 14 20:12:33 Ever since this new computer I built, nothing works right, everything crashes, explorer.exe, BSOD, and now eclipse/// Feb 14 20:12:36 kylebt: Finally, watch this: http://www.youtube.com/watch?v=wDBM6wVEO70 Feb 14 20:12:37 :p Feb 14 20:12:45 Most useful Google IO talk ever Feb 14 20:13:16 ADB crashed, it says in event viewer Feb 14 20:13:21 dude sounds like a hardware issue to me, is your RAM good? get your RAM tested first before anything else, cpuid (i think) has an awesome ram tester Feb 14 20:13:21 wtf is wrong with this computer.. Feb 14 20:13:29 how to stop a Thread in the correct way ? Feb 14 20:13:32 reseat your ram... Feb 14 20:13:46 I am calling it in OnDestroy() of a Service class Feb 14 20:13:49 power off, reseat the ram, see if that fixes it Feb 14 20:14:04 How can I submit unique phone data to a mysql database? Feb 14 20:14:07 What program runs good test? Feb 14 20:14:10 What is the most unique data? IMEI number? Feb 14 20:14:12 I want to try that first Feb 14 20:14:13 cpuid i believe Feb 14 20:14:24 CPUZ? Feb 14 20:14:46 lol, SimonVT: sadly I watched a lot of this-- but in my defense it was a long long time ago Feb 14 20:15:02 yup cpu-z would help Feb 14 20:15:08 ^_^ Feb 14 20:15:08 is there an easy way to check from a service if an activity is currently in the foreground ? Feb 14 20:15:16 What would cpu-z tell me though? Feb 14 20:15:19 alex- imei number is the way something i'm working on does it Feb 14 20:15:31 snw just run memtest from the cmd line Feb 14 20:15:38 seoncd Feb 14 20:15:45 it'll take more than a second lol Feb 14 20:15:55 alex-: imei is discouraged because only phones have it. there are android devices out there which are no phones. Feb 14 20:16:01 Hmm Feb 14 20:16:06 What unique thing do you recommend then? Feb 14 20:16:09 try mac address Feb 14 20:16:12 what is the mem test command? Feb 14 20:16:16 people can change that too eplewis89 Feb 14 20:16:19 memtest Feb 14 20:16:23 alex- true Feb 14 20:16:37 I'm creating some paid application, but I don't want someone creating an account, paying 1 euro and then sharing it with 100000 people Feb 14 20:16:42 the "official" recommendation is to generate a random number once and use that as unique id for the installation Feb 14 20:16:42 alex- what context are you using this unique identifier? Feb 14 20:16:49 of course that tracks installs not devices Feb 14 20:16:51 eplewis89: paid login system Feb 14 20:16:52 alex- don't track devices at all Feb 14 20:16:56 memtest not recognized? Feb 14 20:16:57 it's stupid Feb 14 20:17:00 canadiancow|work: why not? Feb 14 20:17:02 becuase device owners can change Feb 14 20:17:11 yes, but what should I use then? Feb 14 20:17:23 generate a UUID if you dont care about identity Feb 14 20:17:31 if you do, then you probably have some form of login anyway Feb 14 20:17:47 ...umm snw, open up the run window (if < winblows7) and type memtest.exe, else hit the start button and type memtest.exe Feb 14 20:17:48 even apple got fed up with this and deprecated the UDID Feb 14 20:17:56 what is UUID? Feb 14 20:18:18 I ran that yesterday, it said I did not have any issues... Feb 14 20:18:20 deprecating the udid sucks... Feb 14 20:18:21 random number associated with the device Feb 14 20:18:23 Motherboard issue? Feb 14 20:18:31 I have a login form, but I don't want someone creating an account, and then sharing their username and password with the whole world. Feb 14 20:18:32 get memtest86, boot it Feb 14 20:18:34 run it overnight Feb 14 20:18:41 eplewis89: how can I get the UUID and store it somewhere? Feb 14 20:18:43 or show it? Feb 14 20:18:44 if 0 errors, then your memory at least is 100% Feb 14 20:18:53 alex- http://android-developers.blogspot.com/2011/03/identifying-app-installations.html Feb 14 20:19:00 Motherboard issue then? Feb 14 20:19:02 ^ that'd be a good start Feb 14 20:19:18 gotta run it overnight at least, though Feb 14 20:19:27 because memory errors do not appear immediately Feb 14 20:19:34 snw: from what you're saying it could just be a ram issue, in which case you can RMA it Feb 14 20:19:41 my memory only showed an error after running like 8 passes Feb 14 20:19:42 do what pfn says Feb 14 20:19:55 I can Feb 14 20:19:56 and only like once every 8 passes for that matter Feb 14 20:19:58 first reseat the ram though, it takes like 5 seconds haha. Feb 14 20:20:01 I can't keep it on that long though Feb 14 20:20:09 why not? Feb 14 20:20:19 And the issue only occurs when running like heavy programs or so Feb 14 20:20:45 maybe you don't have enough RAM! what do you have plugged in? Feb 14 20:21:01 8GB, i7...... Feb 14 20:21:11 hm 64 bit OS? Feb 14 20:21:14 Yes.. Feb 14 20:21:21 Maybe it corrupted on install? Feb 14 20:21:23 ok, reseat the ram, run memtest86 on it Feb 14 20:21:40 Take it out and place it back in correct? Feb 14 20:21:42 memtest might be built-in to your bios if you're lucky Feb 14 20:21:46 yes, swap the sticks Feb 14 20:21:54 Switch their places? Feb 14 20:22:17 did you build this machine Snwspeckle? Feb 14 20:22:21 remember they go in places 0 and 2, not 0 and 1... ie if you have 4 slots, ram should be placed as such: Feb 14 20:22:32 Yes, I just am making sure I am doing all this troubleshooting correct though Feb 14 20:22:44 [0: ram stick, 1: none, 2: ram stick, 3: none] Feb 14 20:22:44 Snwspeckle: try ##hardware Feb 14 20:22:48 get a better pc Feb 14 20:22:50 huehuehuehuehueh Feb 14 20:22:55 eplewis89: My motherboard I think has pre-set primary slots for RAM though.. Feb 14 20:22:59 lulz get l*nux Feb 14 20:23:08 eplewis89: i already have it Feb 14 20:23:09 most new motherboards have color coded channels for dual channel Feb 14 20:23:17 Mine is dual channel Feb 14 20:23:25 Maybe they are placed wrong? Feb 14 20:23:27 hm snw what i did to solve my issues was buy more ram Feb 14 20:23:38 FILL ALL THE SLOTS Feb 14 20:23:38 and they are typically laid out how eplewis89 mentioned Feb 14 20:23:42 8GB is enough, I know that.. Feb 14 20:23:56 Can I determine on which page webkit is? Feb 14 20:23:56 BUY ALL THE RAM! Feb 14 20:24:02 but if you have 4 channels they normally make 2 blue and 2 gray or black Feb 14 20:24:03 One moment Feb 14 20:24:10 I have 2 blue and 2 gray Feb 14 20:24:16 I have an ASUS Z68 Feb 14 20:24:21 so your ram should be in the 2 blue ones Feb 14 20:24:24 * eplewis89 smacks his forehead Feb 14 20:24:26 Snwspeckle: try ##hardware Feb 14 20:24:40 They are though... Feb 14 20:24:59 Snwspeckle: you aren't really listening Feb 14 20:25:08 but nvm then, if you don't want to hear it, you don't get an answer Feb 14 20:25:28 snw, here's a few things to try, as we've been telling you: Feb 14 20:25:34 1. reseat ram Feb 14 20:25:35 2. Feb 14 20:25:43 oops. 2. run memtest86 overnight Feb 14 20:25:44 3. Profit! Feb 14 20:25:49 I am just asking brief, questions here, nothing aggresive and I am just trying to understand my issue... Feb 14 20:25:49 3. #hardware Feb 14 20:25:59 lol t0m Feb 14 20:26:05 brb... Feb 14 20:26:12 snw the best way to understand your issue is to be aggressive about it Feb 14 20:26:42 well, im out guys! :D Feb 14 20:26:44 gn8 Feb 14 20:26:51 gn8 everythingWorks Feb 14 20:29:24 bleh Feb 14 20:29:34 why won't the avd manager save my scale setting Feb 14 20:30:52 i sure hope snw doesn't touch any internal components while the computer is on... oi. Feb 14 20:33:22 lol Feb 14 20:33:25 me neither Feb 14 20:33:26 http://blog.dyzplastic.com/2012/02/wild-big-box-edition-appears.html Feb 14 20:35:12 Anyone here mind testing out my app and telling me if it is "bad"? Feb 14 20:35:16 (design wise, etc) Feb 14 20:35:31 zerkz stop trying to hack muhroms Feb 14 20:35:41 wot? Feb 14 20:35:41 lol Feb 14 20:43:48 is this a good way to manage a thread : http://ideone.com/SPaVC ? Feb 14 20:44:08 amazing code ? Feb 14 20:44:12 No way Feb 14 20:44:25 I believe interrupt is deprecated.. isnt it? Feb 14 20:44:45 ah Feb 14 20:45:11 hmm actually.. it isnt, but interrupt is still.. mm.. I dunno, I wouldnt stop a thread that way Feb 14 20:45:51 Hey guys fixed the debug issue Feb 14 20:46:03 You need to set the DDMS to 10kms instead of 5k Feb 14 20:46:17 DrPenguin, could you suggest me a better way ? Feb 14 20:46:22 But the 1 USB port on my computer still doesnt work.... Feb 14 20:46:38 aLeSD: I assume your run() method is a while(someboolvariable != false) { do stuff }, right? Feb 14 20:47:11 DrPenguin, it's a Looper and SensorEventLitener Feb 14 20:47:28 can I see the body of MyThread? Feb 14 20:47:34 anyone experienced in NDK? I was using the sanangeles example and tried renaming it. A lot of messy things happened, but I think I got most of it right Feb 14 20:47:35 sec Feb 14 20:47:59 imbusy: The crucial thing to remember is that the function names are linked to your class names Feb 14 20:48:07 But I get an error now "No implementation found for native Lcom/imbusy/Prototype/DemoRenderer;.nativeInit ()V Feb 14 20:48:07 ". However, I do have a method in my library void Feb 14 20:48:07 Java_com_imbusy_Prototype_DemoRenderer_nativeInit( JNIEnv* env ) Feb 14 20:48:10 am I missing something? Feb 14 20:48:20 I have a user who bough my app some months ago and stil can not download it due to "Error: your order is processing, your item will be available in a few minutes". what can I do? what can he do? Feb 14 20:48:35 Ge0rG: return his purchase? Feb 14 20:48:35 DrPenguin, http://ideone.com/8Qjpj Feb 14 20:48:35 Ge0rG: has he tried to contact market? Feb 14 20:48:53 rgravener: thats what I did. he can't buy it anew Feb 14 20:49:01 aLeSD: whats looper? Feb 14 20:49:06 Sorry 'www.snc4.facebook.com profile.php id 10000037812*** does not exist or is not available. Sorry 'www.snc4.facebook.com profile.php id 100000378123097' does not exist or is not available. Sorry 'www.snc4.facebook.com profile.php id 100000378123097' does not exist or is not available. Sorry 'www.snc4.facebook.com profile.php id 100000378123097' does not exist or is not available. Sorry 'www.snc4.facebook.com profile.php i Feb 14 20:49:14 DrPenguin: is there a way to contact real people at google? Feb 14 20:49:19 wtf is wrong with my keyboard>,,, Feb 14 20:49:26 Ge0rG: dunno? ive never had to Feb 14 20:49:31 Ge0rG: do you pay 6 figures to them? Feb 14 20:49:36 p_l: nope Feb 14 20:49:38 google's famous for being uncontactable Feb 14 20:49:40 dragorn, I think I've renamed everything already Feb 14 20:49:43 DrPenguin, ?? Feb 14 20:49:51 DrPenguin: you asked if he did, so I assumed... Feb 14 20:50:02 amazing code Feb 14 20:50:02 aLeSD: eh? I think my question was pretty clear Feb 14 20:50:08 Ge0rG: then your only chance is grabbing contact with right person, or hangouts Feb 14 20:50:10 imbusy: you need tobe sure to load the right library in your class as well Feb 14 20:50:15 I did Feb 14 20:50:27 System.loadLibrary("Prototype"); Feb 14 20:50:30 you've got a typo or aren't loading something / placing it in the right spot then Feb 14 20:50:34 and the generated library is libPrototype.so Feb 14 20:50:41 p_l: I suppose right persons do not hang out here? Feb 14 20:50:42 DrPenguin, I created a looper inside with a messge handler , to handle the Sensor events Feb 14 20:50:45 "Added shared lib /data/data/com.imbusy.Prototype/lib/libPrototype.so 0x40517338 Feb 14 20:50:45 " Feb 14 20:50:53 since that error is pretty much "failed to look up symbols" Feb 14 20:51:16 aLeSD: yeah.. im asking what Looper is Feb 14 20:51:17 Ge0rG: they might... but I don't think so. Mind you, the error is common with rooted devices, I think Feb 14 20:51:19 imbusy: oh, you probably need path + class Feb 14 20:51:21 I know, but I don't quite understand how it can't find the symbols because the library is loaded and the function is there Feb 14 20:51:29 I had a persistent problem installing one paid app till I changed ROM Feb 14 20:51:33 DrPenguin, but I am noob ... and I don't understand the question... :( Feb 14 20:51:38 imbusy: try uh... Java_com_imbusy_Prototype_DemoRenderer_DemoRenderer_nativeInit Feb 14 20:51:47 with the change involving recreating device id, so... Feb 14 20:51:50 it's not looper ? it has a looper ? Feb 14 20:51:53 imbusy: assuming DemoRenderer is your activity class (or whatever class you're loading from) Feb 14 20:51:54 aLeSD: ehh? being a noob has nothing o do with this. WHAT IS LOOPER? thats very freakin simple Feb 14 20:52:07 lol Feb 14 20:52:26 imbusy: it all depends on how your paths are set up; i'm exhausted and brain-dead right now; it's fundamentally a naming issue Feb 14 20:52:38 dragorn, nativeInit() is called from DemoRenderer Feb 14 20:52:38 it's looping nothing up to now Feb 14 20:52:49 it will in the future Feb 14 20:52:51 aLeSD: ... ok, Im done. you seem to be unwilling to answer my question Feb 14 20:52:53 ok, i'll play around with it Feb 14 20:53:01 give me another try Feb 14 20:53:08 nope Feb 14 20:53:12 line 40 Feb 14 20:53:15 ah Feb 14 20:53:20 AndroidRuntime(29206): java.lang.UnsatisfiedLinkError: nativeInit Feb 14 20:53:23 there's looping Feb 14 20:53:25 Hi, anyone had experience with admob? I am wondering if it is allowed to have several publisher ID's in a single app. Feb 14 20:53:31 AndroidRuntime(29206): at com.imbusy.Prototype.DemoRenderer.nativeInit(Native Method) Feb 14 20:53:47 imbusy: if that doesn't work, try (JNIEnv *env, jobject jthis) as your params Feb 14 20:54:02 everything worked before renaming though Feb 14 20:54:10 DrPenguin, now I understand Feb 14 20:54:20 Protip: Looper.myLooper().quit() to quit a looper. Has to be run on the same thread as the looper Feb 14 20:54:42 DrPenguin, the answer is : that's a looper : http://developer.android.com/reference/android/os/Looper.html Feb 14 20:54:47 imbusy: then you misnamed something somewhere; seeing only fragmentary lines of your code doesn't really help. Doublecheck all your names, capitalization, etc. Feb 14 20:54:56 so you are a noob too Feb 14 20:55:16 aLeSD: I told you, im done with you, and no I am not a noob, I guarantee you I have more android AND programming experience than you Feb 14 20:57:03 a looper, a caddy, a jock... Feb 14 20:57:43 DrPenguin, just kidding . It's impossible to have less experience thatn me Feb 14 20:57:46 dragorn, so all I have to do is have a method in the library with the correct name? Feb 14 20:57:59 imbusy: and load the library, yeah Feb 14 20:59:21 well, the library seems to load fine Feb 14 21:00:07 imbusy: it should be Java_package_class_function ... and it's case sensitive. I don't generally capitalize the package, as long as you're consistent it OUGHT to be fine though. Feb 14 21:01:31 i'll try lowercase Feb 14 21:05:14 hello Feb 14 21:05:26 dragorn, when I rename the package in eclipse, it says "Method 'nativeInit()' in type 'com.imbusy.Prototype.DemoRenderer' is native. Running the modified program will cause UnsatisfiedLinkError." Feb 14 21:05:31 is that something to be worried about? Feb 14 21:06:02 im using a BasicCookieStore on my app and it seems that the cookies are not sent Feb 14 21:06:10 how can I check what cookies are sent in my request ? Feb 14 21:06:29 imbusy: I've never seen that from eclipse; my stuff has no clue what the ndk is doing Feb 14 21:11:29 hey guys, i need some help, im trying to build and aosp build for the pandaboard on my gentoo linux box and get this error http://pastebin.com/Z1Ey405w , does anyone have any ideas how to fix it? as a sideinformation i can build cm7/cm9 builds for several devices on the same pc without any issues, it seems i i have narrowed it down to the linux-headers i have on my pc, any, ideas what i should try ? Feb 14 21:11:42 dragorn, the issue was missing extern "C" Feb 14 21:12:34 imbusy: oh, you didn't say you were doing it in C++ Feb 14 21:12:42 anyway, now I know a bit more about the ndk Feb 14 21:12:49 imbusy: yeah that's pretty much vital ;P C++ does symbol mangling to handle overloading Feb 14 21:13:00 I know, I should have realized it earlier Feb 14 21:13:11 imbusy: cool that you figured it out Feb 14 21:13:48 imbusy: being able to offload stuff to native is fairly handy, tho it depends what you're doing. I threw a 100k line C++ program into a shared lib and call main() in a dedicated thread Feb 14 21:14:11 id like to mess with ndk some day.. Feb 14 21:14:11 i just have a lot of game code in c++ and don't want to recode it Feb 14 21:22:37 Does anyone have some insight on how to get around a memory leak within a WebView when loading from Assets? It seems since I've updated to 4.0.3, all apps leak the webviews and cause an overflow of the JNI - eventually causing 512 entries to crash. Feb 14 21:24:06 I get that it's a referencing issue when loading files from the assets/ but I was hoping someone had some sort of magical workaround of some sort? >.> Feb 14 21:25:22 jhat -> look at what's holding onto the references -> kill those references Feb 14 21:27:02 pros599: unfortunately, when it comes to memory leaks, the magical solution is almost always "don't leak memory" Feb 14 21:28:36 pfn - I've used jhat: it seems that the entire source file is being stored in a pointer (through the ndk) and lost. The table overflows with bytes[] Feb 14 21:29:03 evancharlton: Yeah.. I'm not quite sure how Feb 14 21:29:32 use scheme, itl piss you off so much you wont code anything thus youll have nothing to run to leak it :P Feb 14 21:30:18 why this line in the contructor of a Service gives me an exception ? m_SensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); Feb 14 21:30:28 would leak Feb 14 21:30:59 pros599, look at the referencing holders Feb 14 21:32:11 I'm creating an app for android. How can I schedule a task for a time when my app is not started by the user? Like a alarm that starts my app to execute something. Feb 14 21:32:27 AlarmManager Feb 14 21:32:31 what he said Feb 14 21:32:42 aLeSD, why don't you look at what the exception says Feb 14 21:32:57 thanks! That was easy ;D Feb 14 21:33:39 pfn you right .. constructor not accessible ... but I was searching for another exception and looking around Feb 14 21:34:10 if I have this private final SensorManager m_SensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); I get a null pointer exception Feb 14 21:34:19 pros599, so you're getting a dalvik crash and not an oome then Feb 14 21:34:25 in my Service Feb 14 21:34:30 aLeSD, that line does not give you a null pointer exception Feb 14 21:34:31 aLeSD are you working in an emulator? Feb 14 21:34:56 aLeSD, pastebin relevant code + logcat stack with context Feb 14 21:35:40 aLeSD, from dev site, Don't test your code on the emulator Feb 14 21:35:40 You currently can't test sensor code on the emulator because the emulator cannot emulate sensors. You must test your sensor code on a physical device. There are, however, sensor simulators that you can use to simulate sensor output. Feb 14 21:35:47 If a large object is allocated in the old gen, does it not get collected until a full GC runs? Feb 14 21:36:07 MalRD: old gen? Feb 14 21:36:16 MalRD, dunno how gc works in dalvik, but that's typically how the jvm works, and objects aren't allocated in the old gen Feb 14 21:36:40 they are migrated into the older gen once they have survived a few gc loops Feb 14 21:36:40 pfn: Anything larger than the young gen's size should be, no? Feb 14 21:36:55 MalRD, no, everything goes into the young gen in the jvm Feb 14 21:36:56 I'm fairly certain that's how Sun's JVM handles large objects. Feb 14 21:37:46 sorry bout that Feb 14 21:37:49 got dced Feb 14 21:38:00 That's why I'm confused as crap - Feb 14 21:38:11 if I load a web resource, everything is GCed correctly Feb 14 21:38:22 if I use a local asset - there is a huge leak Feb 14 21:38:51 pros599: is it amatter of size? Feb 14 21:38:51 MalRD, anyway, if it's valid of the jvm's gc, it may not apply to dalvik Feb 14 21:39:29 DrPenguin, not exactly no, the table will overflow from too many entries before the size becomes a problem Feb 14 21:40:02 eplewis89, pfn http://ideone.com/kW8t4 Feb 14 21:40:10 real device 4.0.2 Feb 14 21:40:47 pfn: Yeah, I know in Sun's JVM, anything larger than the young generation's size (or a value you set via a flag) will be allocated directly in the old generation. I assume that Dalvik does something similar (since you can't allocate something larger than the space you have), but there's not a lot of information I've found about Dalvik's memory management Feb 14 21:41:25 it seems that the ContextWrapper of the Service is not created Feb 14 21:41:33 aLeSD, you're calling getSystemService too early Feb 14 21:41:47 yeah Feb 14 21:41:49 aLeSD, you can only call anything on Context *during/after* onCreate Feb 14 21:42:10 ok .. thanks ... I didn't know it Feb 14 21:42:13 MalRD, only option is to use the source luke Feb 14 21:42:41 The issue I'm talking about comes from here: http://code.google.com/p/android/issues/detail?id=20686&q=ReferenceTable&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Feb 14 21:42:46 Hey, no harm asking before I go looking for treasure. Feb 14 21:42:52 or is referenced rather sort of Feb 14 21:43:26 Hi anyone has some ideas about a GTV bo outside the US? Feb 14 21:43:42 MalRD, for the most part, I don't really care Feb 14 21:43:48 It shows some updates but thez will not be downloaded or installed Feb 14 21:45:15 Any idea on what I can do to fix it? Feb 14 21:45:37 On a side note, this did not happen in 3.2.1-4 ... Its new to ICS Feb 14 21:46:21 pfn it's only for services ? Feb 14 21:46:24 look http://developer.android.com/reference/android/hardware/SensorManager.html Feb 14 21:46:32 it creates it in the contructor Feb 14 21:47:58 aLeSD, dunno about that example, I'd assume it'd npe as well Feb 14 21:48:50 aLeSD, typically, you can't use any context resources of any kind until onCreate Feb 14 21:49:03 ^ especially in a static context... Feb 14 21:49:09 pfn ... yeah the example is wrong .. it crashes Feb 14 21:49:19 Hello. Do you know where how can I modify the menu that appears when you hold the power-off button? Feb 14 21:49:26 do the get system service in your oncreate/onresume methods Feb 14 21:49:31 ryden, by creating your own rom Feb 14 21:49:37 or some sub method that's called after oncreate/resume Feb 14 21:49:55 pfn lulz Feb 14 21:49:57 pfn, that's what I am doing. Where can I find it? Feb 14 21:49:58 true Feb 14 21:50:24 ryden, by searching the source :p Feb 14 21:50:31 ryden, this isn't #android-root fyi Feb 14 21:50:39 Thanks for the hint pfn Feb 14 21:51:25 lol Feb 14 21:52:57 Did anyone check the link I posted by chance? Feb 14 21:53:11 indeed, looks like you're stuck Feb 14 21:53:23 lol Feb 14 21:53:41 sounds like you need to take this to discussion in the android-developers googlegroups or something Feb 14 21:53:42 hmm Feb 14 21:54:05 don't think anyone can help you here... unless you can do a deep dive to figure out why it's not working Feb 14 21:54:22 if I want to handle any type of file is it fine to put mimeType="*/*" in my intent filter or should I put one for each type of file? Feb 14 21:55:06 well this sucks Feb 14 21:55:07 :\ Feb 14 21:55:38 What more would be helpful Feb 14 21:57:01 is it possible to make a Preference greyed out when a CheckboxPreference is set (as opposed to the default depends behavior)? Feb 14 21:57:47 just do it yourself Feb 14 21:57:47 Hi all, I have a Q: If I create a new Runnable() {public run() {...}}, then the run method has access to methods accessible in the class it is defined from. However, "this" refers (obviously) to the Runnable. Feb 14 21:58:10 ParentClass.this Feb 14 21:58:17 Ge0rG: it's just calling Preference#setEnabled() under the hood Feb 14 21:58:27 thanks, storkme! Feb 14 21:59:14 possibly a useless point, but might be worth noting if you're looking to do somethign asynchronously in an activity, sometimes it's easier to use an AsyncTask Feb 14 21:59:34 :/ I've somehow managed to make it so the menu button doesn't pop anything up anymore Feb 14 22:00:24 (ノಠ益ಠ)ノ彡┻━┻ (ノಠ益ಠ)ノ彡┻━┻ (ノಠ益ಠ)ノ彡┻━┻ Feb 14 22:00:47 Does anybody know how I could have done this? lol Feb 14 22:01:01 I keep fatal sig 11 with the adding to JNI local ref .... At android.content.res.AssetManager - Feb 14 22:01:08 it doesn't know how to remove a byte array. Feb 14 22:01:16 wraithguard01: well.. we dont know what you did.. is this a device? have you tried rebooting it? Feb 14 22:01:43 Yeah, it's a device. I'll try rebooting. Feb 14 22:02:01 There's no real way to prevent that from popping up though, I thought... :/ Feb 14 22:02:14 apparantly you thought wrong ^^ Feb 14 22:06:01 hey, I doon' Feb 14 22:06:42 t suppose anyone here has used the library 'kissfft' on android before? I'm not good with c, and not particularly well versed in fourier transforms, kinda wondering if anyone has any examples/resources on either Feb 14 22:06:53 (besides the FT wiki page.. working my way through that at the mo) Feb 14 22:07:15 Hey, I know some of those words :D Feb 14 22:07:22 sounds like fun Feb 14 22:07:24 haha Feb 14 22:08:08 i've been doing some audio processing stuff recently, saddened by the lack of APIs android has for it :< Feb 14 22:09:31 Is there a widget that accepts rich text? I'd like to have my ListView items be formatted... without having to resort to multiple widgets Feb 14 22:10:57 vadi2, textviews accept spannables that can be styled Feb 14 22:11:05 vadi2, you can do html "easily" Feb 14 22:11:13 aha, thanks Feb 14 22:11:41 someTextView.setText(Html.fromHtml("sometagshere")) Feb 14 22:11:58 someone could suggest me a good doc to how stop a thread ? ... the mThread.interrup() seems not working Feb 14 22:12:24 aLeSD, read the book java concurrency in practice Feb 14 22:12:29 aLeSD, you stop threads cooperatively Feb 14 22:12:57 run() { while (!Thread.currentThread().isInterrupted() { do shit } }; thread.interrupt() Feb 14 22:13:15 alternatively, use wait/notify with a guard Feb 14 22:13:22 ah ... understood Feb 14 22:13:24 thanks Feb 14 22:15:33 Does anyone know how to retrieve a fragment put with savedInstanceState? Feb 14 22:15:59 put with * saveFragmentInstanceState(Fragment f) Feb 14 22:16:38 pfn: wouldn't just a boolean flag in the while loop suffice? Feb 14 22:17:10 pfn http://ideone.com/fe1Ir Feb 14 22:17:36 if you're doing some blocking i/o operations in the loop it might be easier to handle the thread finishing more gracefully Feb 14 22:17:55 storkme ? Feb 14 22:18:16 the final impementation will be a Lopper Feb 14 22:18:36 * tophyr imagines an object called a Lopper Feb 14 22:18:44 lots of axes Feb 14 22:18:44 * storkme lops things. Feb 14 22:18:49 lol Feb 14 22:18:52 Looper Feb 14 22:18:54 sounds like a decent game Feb 14 22:19:13 shit, it does. NOBODY TELL ZYNGA Feb 14 22:19:15 looking at you canadiancow Feb 14 22:19:17 Hello. Is there a way to store cookies persistently without making a new implementation of some interface? If not, which one is the best? Feb 14 22:19:48 I'm using HttpClient Feb 14 22:20:05 Someone made a parody of Zynga Facebook games - Cow Clicker Feb 14 22:20:25 jsoler you could use sharedpreferences Feb 14 22:20:30 or a bundle Feb 14 22:20:47 Ologn where can i find said parody? Feb 14 22:20:53 storkme, no, you need to synchronize it properly Feb 14 22:21:10 ahhhh Feb 14 22:21:10 HandlerThread Feb 14 22:21:22 http://www.bogost.com/games/cow_clicker.shtml ? Feb 14 22:21:32 Yes. http://apps.facebook.com/cowclicker Feb 14 22:21:40 aLeSD, and no Feb 14 22:21:48 lulz. did not click. Feb 14 22:22:02 well if you want to wait for the thread to can finish you can just trip the boolean then call wait() and have the thread call notify the loop? Feb 14 22:22:06 and blocking IO is terrible Feb 14 22:22:26 storkme, right, if you synchronize properly, then a boolean flag is ok, by itself it isn't Feb 14 22:22:32 eplewis89: alright, I'll try them Feb 14 22:25:37 http://eugeneciurana.com/pastebin/pastebin.php?show=44871 would something like that work? Feb 14 22:26:45 jsoler is that what you're looking for - somewhere to save some stuff? you could go the hard route, parse a model, save parsed model to xml, read xml to model, etc. Feb 14 22:27:04 * eplewis89 grins Feb 14 22:27:59 storkme, not quite Feb 14 22:28:04 oh? Feb 14 22:28:52 http://ideone.com/ezf1A Feb 14 22:29:06 either one works Feb 14 22:29:19 Hi, I'm using a ViewPager and one of the pages contains contacts. I'm trying to apply BusinessCard sample from the android developer site. How do make the BusinessCardActivity into a View so that I could return it as an Object in PagerAdapter's instantiateItem method? Feb 14 22:29:43 or a combination of the first and second processes is reasonable as well Feb 14 22:30:19 storkme: http://developer.android.com/resources/articles/painless-threading.html Feb 14 22:30:21 ^_^ Feb 14 22:30:39 eplewis89: Bundle would do for transference between both Activities, but not for closing-then-restoring. SharedPreferences will maybe do better, but it still seems overcomplicated to me. Feb 14 22:32:14 jsoler: better than over-over complicating things by using an xml parser (parsing a model to xml and back) or using a sqlite database. do you just need to store the cookies for one run of the app? you could make a model and hold on to that model until you no longer need it Feb 14 22:32:19 i haev an app that shows about 750 addresses on the map. I'm thinking of putting this list online to download, but i don't want other apps to just link to this list and abuse my info.. any ideas on how i could keep it 'secret' ? Feb 14 22:32:44 jsoler also it's good not to store the cookies for more than one session. Feb 14 22:33:26 eplewis89: so I shouldn't care about saving cookies when the app is closed? Feb 14 22:33:46 http://ideone.com/Mo1gA Feb 14 22:33:49 jsoler: probably not. cookies are usually a once-per-session thing Feb 14 22:33:50 ah, another problem of my code is that the value of mRunning might be cached thread-locally, so I'd have to declare it as volatile (thanks to ##java for pointing this out) Feb 14 22:33:52 I guess the third alternative is a bit cleaner Feb 14 22:34:02 Those cookies are login ones, BTW Feb 14 22:34:09 storkme, either declare it volatile, or wrap it in synchronized Feb 14 22:34:11 either approach works Feb 14 22:34:12 the yes only once Feb 14 22:34:22 you need fresh cookies when you log in Feb 14 22:34:25 * eplewis89 om nom nom Feb 14 22:36:25 eplewis89: now I think, since it will be a chat program it would be a good idea to let the service handle them. Feb 14 22:36:40 I have a running instance of an activity. I always start this particular activity with CLEAR_TOP. I want to send an intent with flags such that it will say "If this activity or any instances of it is running, CLEAR TOP, but ALSO finish the top activity, and start a brand new one." Feb 14 22:36:45 is there a way to do that? Feb 14 22:36:54 I've tried FLAG_ACTIVITY_RESET_TASK_IF_NEEDED but it didn't seem to work Feb 14 22:37:55 readme: ehm, can't you simply finish() and recreate from the activity now on top? Feb 14 22:38:29 readme: or instead reset the state without recreating, which should also be doable Feb 14 22:38:33 has anybody seen g00s at all for the past couple of days? Feb 14 22:38:41 don't think so Feb 14 22:38:45 crap. Feb 14 22:38:53 not answering his email. not here... Feb 14 22:39:09 * pfn wonders if this is related to his current life upheavals he's mentions Feb 14 22:39:16 probably... Feb 14 22:39:25 MDijkstra: the second idea certainly seems realistic Feb 14 22:39:48 I will have to think more about the problem, but if anyone knows if this can be done simply with a flag, please speak up :D Feb 14 22:39:48 neekers: vacation? Feb 14 22:39:57 no... Feb 14 22:40:26 readme try FLAG_ACTIVITY_NEW_TASK Feb 14 22:40:31 readme: which API lvl are you targeting? Feb 14 22:40:33 eplewis89: yeah, I tried it Feb 14 22:40:42 MDijkstra: 2.1+ Feb 14 22:40:43 then after you start the intent, call finish() Feb 14 22:40:56 readme: ah, in the case of 3.0+ you could simply clear the entire task Feb 14 22:41:00 so: startActivity(intent); finish(); Feb 14 22:41:01 but no luck, then Feb 14 22:41:11 eplewis89: ah, I didn't know that would work. I'll stick that in. Feb 14 22:41:21 readme: ie, FLAG_ACTIVITY_CLEAR_TASK Feb 14 22:41:29 try that see what happens, or do ^ Feb 14 22:42:05 jsoler glad you found something that might help you Feb 14 22:42:26 I kind of forgot, if you do CLEAR_TOP, will the activity that is the new top activity receive notification? Feb 14 22:42:33 or will onStart/onResume just get called? Feb 14 22:42:52 eplewis89: thanks for your help. Feb 14 22:44:38 calling startActivity() and following it immediately with finish() does not seem to work. Feb 14 22:45:05 oh well, I am going to revert and think about the problem more thoroughly. Feb 14 22:45:38 readme you can send a broadcast that means 'close yourself' Feb 14 22:45:44 then if your activity gets that, close Feb 14 22:45:52 startActivity(my intent);finish() doesn't work? hmm Feb 14 22:46:16 ^strange. Feb 14 22:46:24 is it possible to turn off a phone programmatically Feb 14 22:46:26 so that i can remotely turn off a device that i use as a wifi router Feb 14 22:46:54 testt, requires root Feb 14 22:47:51 pfn i have root access Feb 14 22:48:10 shutdown -h now works? Feb 14 22:48:18 is there a shutdown binary for arm Feb 14 22:48:38 might not be there. /sbin/halt should be Feb 14 22:48:54 testt, don't think so Feb 14 22:48:57 only command I see is reboot Feb 14 22:49:03 ... Feb 14 22:49:20 p_l /sbin/halt will work? Feb 14 22:50:18 it is a symlink to reboot Feb 14 22:50:21 ... Feb 14 22:51:31 I use AlarmManager for scheduling a task. The activity which set up the task is still being executed while the time elapses and the alarm gets fired. How can I see inside of my BroadcastReceiver if the application is running? Can I access that running activity? Feb 14 22:52:01 testt: ... lrn2unix. many such binaries recognize their purpose by checking which name was used Feb 14 22:52:10 so reboot and halt are *single* binary Feb 14 22:52:11 xorgate: another plausible suggestion Feb 14 22:52:30 p_l halt will shut it down? Feb 14 22:52:33 what works in the end is going to be a matter of what fits in with my very strange setup... :) Feb 14 22:52:35 readme it has the benefit of not having to look if anything is active Feb 14 22:52:44 testt: halt is what shutdown calls at the end Feb 14 22:52:59 p_l i see Feb 14 22:53:00 oh, and my desktop linux also has halt and reboot as single binary Feb 14 22:53:07 just make sure you don't immediately close yourself Feb 14 22:53:22 ;) Feb 14 22:53:37 i'm not sure a broadcast will be necessary, because the activity I'm closing is actually the same one I'm starting Feb 14 22:53:48 and I'm doing it from within that instance Feb 14 22:54:08 I am reusing the activity for multiple purposes Feb 14 22:54:45 ah, reboot -p is poweroff Feb 14 22:55:02 :o Feb 14 22:55:37 pfn: it's also what reboot does if it's argv[0] is 'poweroff' Feb 14 22:56:27 ah, the solution is simpler than I realized. Feb 14 22:56:31 p_l, not according to the source Feb 14 22:57:16 i wonder if it is possible to make "busybox telnetd" work as a telnet daemon Feb 14 22:57:18 pfn: interesting. I suspect that version is from busybox? Feb 14 22:57:30 it doesnt listen here Feb 14 22:57:33 p_l, maybe Feb 14 22:57:40 "normal" one checks for 'poweroff' name Feb 14 22:57:43 p_l, toolbox is different Feb 14 22:59:03 romainguy_ does this statement hold true: Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap (http://developer.android.com/resources/articles/avoiding-memory-leaks.html) Feb 14 23:00:10 as in, are android apps still limited to 16mb of heap? Feb 14 23:01:16 eplewis89, on newer and newer versions it's higher Feb 14 23:03:00 it's something over 24mb on ics, I think Feb 14 23:03:23 pfn have you experienced any stack overflows with heavy resource consuming apps? a jni library wrote to do AMR conversions causes a stack overflow... not sure why Feb 14 23:03:39 too much recursion Feb 14 23:03:44 that's what stack overflow means Feb 14 23:04:28 seems as though i've forbode the basics Feb 14 23:05:50 also don't mind me i'm working on low sleep >.< Feb 14 23:06:49 im new to fragments, I wrote this : http://pastebin.com/v4UJhEBV everything is fine at first activity launch but after a configuration change I has an indeterminated progress icon at center and nothing more Feb 14 23:07:10 (its on the onCreate of the activity) Feb 14 23:07:34 hey .. my app works Feb 14 23:08:25 aLeSD: nice Feb 14 23:09:04 Anyone want to help me with developping a basic browser? Feb 14 23:09:20 eplewis89: every function call you do adds one 'stack frame' to the stack Feb 14 23:09:31 stack space is finite, once it runs out your program will crash Feb 14 23:09:41 are you sure you don't have infinite recursion somewhere? Feb 14 23:10:29 i'd have to check the debugs, i think one of the other devs here fixed the issue though, just wondering out of curiosity/sleep deprevation Feb 14 23:12:19 having tail call optimizations helps with extreme recursion so much Feb 14 23:15:30 this is how i feel Feb 14 23:15:30 http://bestragecomics.com/11327-sleep-deprivation-rage Feb 14 23:15:47 so go to sleep Feb 14 23:16:01 eplewis89: go to sleep Feb 14 23:16:08 also... one night is nothing... Feb 14 23:16:20 working for 2.5 more hours, then i'm taking my girlfriend to dinner, movie, and more, then sleeping. Feb 14 23:16:29 p_l i went through college on a mere 4 hours a nigh Feb 14 23:16:33 night* Feb 14 23:17:15 Why does LogCat like to auto-pause in Eclipse? It's annoying. Feb 14 23:17:30 eplewis89: try not having a normal sleep (that is, actually going to sleep, instead of dozing off in weird positions) for... how long it is now? I think since saturday >_> Feb 14 23:17:33 p_l it hasn't been just one night, it's been every night for the past week. >.< Feb 14 23:17:40 time for a new job Feb 14 23:17:55 any job that is that demanding either requires very much increased compensation, or a good FU Feb 14 23:18:11 ^got the first part downo Feb 14 23:18:13 down( Feb 14 23:18:15 dur Feb 14 23:18:55 http://cl.ly/3o1R1O2S3K2P41120A1i Feb 14 23:18:56 heh, cute Feb 14 23:19:30 lawl Feb 14 23:19:55 anyone know how accurate the air pressure sensor is on the galaxy nexus? Feb 14 23:20:00 ihasidea Feb 14 23:21:13 no idea, is it exposed as a usable sensor in the sdk? Feb 14 23:21:43 hmm, I guess it is as type_pressure Feb 14 23:21:48 yeah, xoom and galaxy nexus have barometric sensors, they're the only two known Feb 14 23:22:08 yes that'd be correct, pressure sensors, they measure hpa i believe? can't remember off the top of my head Feb 14 23:22:10 "the old man app" Feb 14 23:22:21 ^eh? Feb 14 23:22:27 eplewis89: galaxy note does as well Feb 14 23:22:32 old people feel air pressure Feb 14 23:22:33 ah true Feb 14 23:22:39 pfn: http://cl.ly/3o1R1O2S3K2P41120A1i <--- someone is using a vintage terminal, I see? Feb 14 23:22:41 haha. nice. Feb 14 23:22:54 too bad there isn't a simple call to get an instantaneous sensor reading, instead of having to register a listener Feb 14 23:22:56 p_l, it's cathode on osx Feb 14 23:23:14 wabz has the note come out already? Feb 14 23:23:23 not the US one Feb 14 23:23:41 but most other regions got it last sept or something Feb 14 23:24:00 i may end up getting the galaxy nexus. Feb 14 23:25:13 First Android project, using PhoneGap 1.4.1 - which SDK version should I be building against? Feb 14 23:25:32 chrisdev, the latest you are willing to test/make-look-good Feb 14 23:26:48 pfn are they backwards compatible like iOS? In other words, will building against Android 4 SDK work on Android 2.2 devices? Feb 14 23:27:14 But whats more important to me is 'what version is everyone using right now to build against'? Feb 14 23:27:21 chrisdev: building against, yes Feb 14 23:27:32 chrisdev: calling 4.0 stuff on a 2.2 device, no Feb 14 23:27:45 MDijkstra: OK thats just like iOS then, thanks Feb 14 23:28:37 that's just like [insert sdk name here] Feb 14 23:29:15 synic: Not always Feb 14 23:30:48 chrisdev, if you only use apis available in older versions Feb 14 23:31:10 in a preferencescreen.. how can i set the data type that is used for sharedpreferences ? it always uses String Feb 14 23:31:45 chrisdev: http://developer.android.com/training/multiple-apks/api.html Feb 14 23:32:09 ANdi``, I wonder that myself... end up having to parse it, annoyingly Feb 14 23:33:22 hm Feb 14 23:34:55 My life would be so much easier if chrome beta wasnt ICS only, my phonegap app renders perfectly on the Nexus S Feb 14 23:42:25 Why do I always get errors when I import code, no matter which code? Feb 14 23:42:51 I imported http://developer.android.com/resources/tutorials/notepad/index.html and for example this line: setContentView(R.layout.note_edit); gives this error: note_edit cannot be resolved or is not a field Feb 14 23:44:12 you need a note_edit.xml in /layout Feb 14 23:44:32 Does it make sense to have a layout after the ? e.g. "RelativeLayout ../> Feb 14 23:44:33 it defines the gui of your app Feb 14 23:45:17 t432 you need to have widgets IN a layout Feb 14 23:45:37 Is there any simple way of prompting a user when they click a search btn in an app? Feb 14 23:45:44 so: Feb 14 23:45:46 hang on i'll show you the whole thing... Feb 14 23:47:19 alex- you need to clean and build, and then see if Android.R is getting imported in your class Feb 14 23:47:56 it's a strange thing, but eclipse often automatically import's the standard Android.R Feb 14 23:48:01 imports* Feb 14 23:50:13 The reason for multiple layout is becuase of the listview. If I remove the child layouts, the parent-child hierarchy disappears and left with a list that takes up entire screen (list should appear only after the edit text view) - http://pastebin.com/gxzkB7Jd Feb 14 23:51:45 That layout seems to work e.g. enforces the parent-child elements. Feb 14 23:52:04 Not sure if it is neat solution. Feb 14 23:59:53 Solved! Feb 15 00:01:15 Congrats! Feb 15 00:04:07 i have an app that takes a reading from the pressure sensor, but since there is no pressure sensor on the current phone that i'm using, i'll have to inject some pressure values. Feb 15 00:04:19 anyone know how i can inject readings for the pressure sensor? Feb 15 00:05:30 So i'm guessing (but haven't even checked) that there's no way to have line numbers reported using logcat? Feb 15 00:08:33 pfn i found a solution... EditTextPreference amount = (EditTextPreference)findPreference("senderAmount"); amount.getEditText().setInputType(InputType.TYPE_CLASS_NUMBER); Feb 15 00:08:48 forces user to enter numbers Feb 15 00:08:48 shurane they are already included in the stack traces, and you can just add your line # to your log call... Feb 15 00:10:09 oh but its still saved as string i think Feb 15 00:11:12 ANdi`` better than allowing the user to enter "$%NO" as the input Feb 15 00:11:43 indeed Feb 15 00:15:15 ANdi``, right, still stored as a strong, hich is annoying Feb 15 00:15:23 ANdi``, and yeah, you can just set that in xml instead of doing it at runtime Feb 15 00:16:04 ANdi``, android:inputType="number" android:numeric="integer" Feb 15 00:16:24 oh thx, didnt know Feb 15 00:23:32 pfn and if i want to have float ? Feb 15 00:23:46 ANdi``, then use the appropriate android:numeric attribute value Feb 15 00:25:28 there is no android:numeric attribute for float <3 Feb 15 00:25:43 says who Feb 15 00:25:46 read R.attr.numeric Feb 15 00:27:25 Is the dashboard no longer a recommended design pattern? Feb 15 00:28:06 It seems clunky Feb 15 00:28:20 like the main functionality of your app should be on the first page a user sees Feb 15 00:28:47 I do like the quick action bar at the top / bottom though Feb 15 00:29:16 mmmm Feb 15 00:29:17 I see Feb 15 00:29:23 action bar + quickactions = win Feb 15 00:29:56 Do either you have a app screenshot you'd recommend? Feb 15 00:29:58 yea, i use greendroid Feb 15 00:30:49 i'll shamelessly promote my app too: http://zsys.sytes.net/projects/dtask/wiki/Program_Pictures Feb 15 00:30:51 I am currently in the process of changing my dashboard to utilize the action bar Feb 15 00:31:41 Im working on my app when i can, theres soo much i want to do still Feb 15 00:31:55 I want to write an air video client that actually works well Feb 15 00:32:12 i want to make more then like 10 bucks off my app lol Feb 15 00:32:13 Coolie Feb 15 00:32:23 $10? Feb 15 00:32:30 total Feb 15 00:32:36 blaskovicz, Whats the benefit of using greendroid vs sherlock vs google compatibility bar? Feb 15 00:32:38 that's it? Feb 15 00:33:05 yea, i dont know why ; i dont really have any way to promote it i guess Feb 15 00:33:14 i've not used shelock or google compat bar Feb 15 00:33:21 greendroid has a few other things too Feb 15 00:33:22 * pfn just doesn't use an actionbar on <3.0 Feb 15 00:33:49 https://github.com/cyrilmottier/GreenDroid Feb 15 00:34:55 eplewis89: 0 imports added Feb 15 00:36:39 alex- try compiling Feb 15 00:38:02 i'm downloading a json, any way of checking it against a schema? JSONObject and such don't seem to have a method for that Feb 15 00:38:21 did you try gson? Feb 15 00:38:59 hm not yet Feb 15 00:38:59 gson is pretty flipping amazing. perfect for checking if something complies to a class, then parsing it from json to an object, or from an object into json Feb 15 00:39:30 pfn: ugh Feb 15 00:39:35 how does that work, parsing to an object ? Feb 15 00:40:45 it just does! gson can parse json into an object. Feb 15 00:41:04 you just have to have the same object on both sides of the wire Feb 15 00:41:16 eplewis89: link? Feb 15 00:41:33 gson? google.com > search "gson" Feb 15 00:41:43 * SeligArkin sighs Feb 15 00:42:02 "Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of." Feb 15 00:42:14 SeligArkin link for...? Feb 15 00:42:33 * SeligArkin just hates when people just say "lulz googleit" Feb 15 00:42:38 http://code.google.com/p/google-gson/ Feb 15 00:42:46 ok well there you go Feb 15 00:42:56 * SeligArkin notes her top google result migh tbe different than your top google result, they customise it from person-to-person Feb 15 00:42:57 Hi guys. odd dilemma here. I was in contact with an author of a book to produce an app that used sentence completion exercises to increase self esteem. i was going to release it for free. Today, his office sent an email telling me to not release it to the public because it was not up to their standards (even though they have never seen my app). Should I open source my app and remove the Feb 15 00:42:57 copyrighted' content? I'm a college student about to graduate. Feb 15 00:43:48 zerkz: that's more a question for a lawyer Feb 15 00:44:33 I was never "hired" by these guys. It was more so "hey, ill make an app for you to so that people dont have to write for years via pencil. No contract was signed, etc. Feb 15 00:44:58 but i understand why you would say that. Feb 15 00:51:11 SeligArkin: ah, i have adblock on, and i don't get personalized results. Feb 15 00:51:27 eplewis89: unless you also block cookies you do. :P Feb 15 00:53:06 Whats the best way to save a mapviews state in onSaveInstanceState? Feb 15 00:57:29 BankZ decide which properties you want to save, then save them Feb 15 00:57:39 so zoom, lat/lng Feb 15 00:58:08 bummer, I was hoping I could just save the List Feb 15 00:58:44 its not so easy saving objects Feb 15 00:59:12 also the overlays are not really part of the mapview's state imo Feb 15 00:59:39 I want to get the points Feb 15 00:59:50 well, its really one point Feb 15 01:00:05 I dont see a way to pull out the lat and long Feb 15 01:03:44 BankZ of 'the' point? Which is that Feb 15 01:04:27 be more specific, your mapview has a center lat/lng, and can have overlays with anything.. is it an itemizedoverlay? Feb 15 01:04:48 I think I figure dit out, I gota call getOverlays(); Feb 15 01:04:55 and then getPoint() Feb 15 01:06:05 maybe not Feb 15 01:13:57 I feel stupid :/ Feb 15 01:14:52 Hey guys, I'm developing a startup app of sorts for a custom ROM. Everything is working fine, it launches a script and off it goes. However I'm facing a few problems: It seems the app starts up (or instances itself) about 3-4 times - one over another. It shows a dialog and then runs a script, but since it gets started like 3 times or something, it launches the script 3 times which makes everything go bogus, so my question is: Is Feb 15 01:14:59 only one instance of itself running? Feb 15 01:15:41 and activity? Feb 15 01:15:57 Wait, lemme pastebin Feb 15 01:16:49 BankZ: http://tinypaste.com/9ae53e51 Feb 15 01:16:51 you can add this: android:launchMode="singleTop"> Feb 15 01:17:13 to the activity Feb 15 01:17:47 oh, thanks, didn't know about that flag Feb 15 01:17:58 I'm a bit novice at this android dev'ing ^^; Feb 15 01:19:22 me2, I cant figure out how to get a geopoint from a OverLay Feb 15 01:20:02 oh, wish I could help with that xD but I don't have much knowledge in that area ): Feb 15 01:20:10 yet :D Feb 15 01:23:42 hey, can someone help me figure out how to get a layout to look the way I want it to Feb 15 01:24:32 https://cacoo.com/diagrams/HmplFPiAln7umhS2 Feb 15 01:25:01 i've tried tables - the right columns get forced to match the height of the left Feb 15 01:30:44 anybody? Feb 15 01:37:42 hello Feb 15 01:38:18 do any of you guys know any good or article s on ui layout and design for android ? Feb 15 01:43:08 http://developer.android.com/design/index.html Feb 15 01:46:43 hey t0mless can you point me in the right direction for my ui layout: https://cacoo.com/diagrams/HmplFPiAln7umhS2 Feb 15 01:47:24 they want me to sign in or some shit Feb 15 01:47:40 gotta go make dinner Feb 15 01:47:41 ill put it on imageshack Feb 15 01:47:43 sorry about that Feb 15 01:52:46 http://www.allthingssearch.org/flow/mockup.png Feb 15 01:53:17 can someone tell me the proper format to define android system attribute in a style? Feb 15 01:53:40 for example i have android:style/TextAppearance_DialogWindowTitle Feb 15 01:55:53 prefix contents with @ Feb 15 01:56:30 @[namespace:]type/name is the format Feb 15 01:57:18 ah Feb 15 01:57:21 thank-you Feb 15 01:57:26 also, if anyone wants to help with the ui question, that link won't make you login (http://www.allthingssearch.org/flow/mockup.png) Feb 15 02:00:15 jake I get the following error: Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest. Feb 15 02:00:15 C:\Users\gsingh\workspace\RepConsole\res\values\styles.xml:4: error: Error: No resource found that matches the given name (at 'android:windowTitleStyle' with value '@android:style/TextAppearance_DialogWindowTitle'). Feb 15 02:00:36 heres the pastebin: http://pastebin.com/C5sQM507 Feb 15 02:01:56 use a . Feb 15 02:01:57 not _ Feb 15 02:03:02 using Loader how can I show a loading thingy while the query is in progress? Feb 15 02:05:49 i added . but that did not help... Feb 15 02:12:32 what about using @+ prefix? Feb 15 02:12:49 that seems to work except it complains that resources.ap_ does not exist Feb 15 02:12:52 so I clean Feb 15 02:13:21 then I get a bunch or R is unresolved errors.. :-/ Feb 15 02:21:17 anyone with a Nexus S on ICS? Feb 15 02:22:04 any pre-HC phone now on ICS? Feb 15 02:23:33 o_O Feb 15 02:23:46 canadiancow Feb 15 02:30:14 got disconnected.. Feb 15 02:34:29 @android:style/TextAppearance.DialogWindowTitle Feb 15 02:36:05 i used roms on nexus s Feb 15 02:36:20 do you have ICS on an S that you have access to right now? Feb 15 02:36:31 i have a question that'll take 10 seconds to answer Feb 15 02:36:52 i just flashed back to GB the other day, i can flash to it really quick though Feb 15 02:37:07 i don't want to inconvenience you Feb 15 02:37:35 I had a user report that their ICS Nexus S showed the overflow action item in GMail even though the device had a physical menu button (obviously) Feb 15 02:38:02 gimmie 10 to dl the rom and flash Feb 15 02:38:04 gmail has two overflows, doesn't it? Feb 15 02:38:28 on the main screen there's an overflow action item on the split action bar at the bottom Feb 15 02:38:58 yeah, but when you view a message, there's another at the top which has actions like reply and … *checks* Feb 15 02:39:08 reply all, forward Feb 15 02:39:12 that's part of the content UI though Feb 15 02:39:17 ahh ok Feb 15 02:39:20 not technically part of the action bar Feb 15 02:39:24 despite being styled to look like it Feb 15 02:41:48 I guess I could have ventured into #cyanogenmod and asked... Feb 15 02:43:37 Jake: it worked for the windowTitleStyle but for the windowBackground it only works with _ do you know why this is? Feb 15 02:44:00 I'm pretty sure none of the built-in styles have underlines in them Feb 15 02:44:17 http://pastebin.com/RhNeVDMF Feb 15 02:44:20 and I do a fair bit of trolling in the AOSP styles.xml file Feb 15 02:44:22 JakeWharton, I'm on ICS. Does it need to be a Nexus S? Feb 15 02:44:31 cr5315, it has to have a hardware menu key Feb 15 02:44:39 It's an EVO 4G Feb 15 02:44:42 So it does Feb 15 02:44:55 I use actionbarsherlock btw awsome project Feb 15 02:44:56 goes your GMail have an overflow item in the split action bar on the main email list? Feb 15 02:45:11 I don't see the overflow icon anywhere Feb 15 02:45:12 Gsingh, oh, drawables are different Feb 15 02:45:16 ah Feb 15 02:45:26 cr5315, and when you press the menu key you get a popup list from the bottom? Feb 15 02:45:36 Yes Feb 15 02:45:43 excellent, thanks Feb 15 02:45:48 No problem Feb 15 02:45:58 I assumed the person had a custom AOSP build that forgot to mark that the device had a hardware key or something Feb 15 02:46:15 is everything else . for built-in styles? Feb 15 02:47:12 Gsingh, despite being listed with underlines in the R.style array, styles are created with dots between the various things Feb 15 02:47:14 See: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/styles.xml Feb 15 02:47:39 Drawables, xmls, and anything else that's an actual file is referred to by its filename Feb 15 02:48:06 cr5315, what ICS build do you have? Feb 15 02:48:25 CM9? Feb 15 02:48:59 This one: http://rootzwiki.com/topic/11317-romics4032-14-12wip-ics-deck-evo-alpha7/ Feb 15 02:49:58 thanks Feb 15 02:50:00 Hi I'm trying to use C2DM but I keep getting a 404 error for http://android.apis.google.com/ ?! Feb 15 02:57:16 Oops my bad, that was due to a malformed POST request, the C2DM endpoint appears to be working fine. Does anyone know the best way to diagnosing 401 errors from google? Feb 15 02:58:06 hey jake - any ideas for this http://www.allthingssearch.org/flow/mockup.png Feb 15 02:58:15 cant get the layout to match **** ENDING LOGGING AT Wed Feb 15 02:59:57 2012