**** BEGIN LOGGING AT Fri Jan 11 02:59:58 2013 Jan 11 03:32:07 Can I ask Java related questions in here? Jan 11 03:32:39 if they're generic questions, ##java is probably better Jan 11 03:34:35 yeah it is a question relating to MimeMessage / MimeMultipart and how to just create one and save to a file rather but not email it out Jan 11 03:38:20 brx_: hacker's keyboard is pretty easy to use in landscape mode Jan 11 03:38:30 If I create an ImageView programmatically, how can I define its width and height? Jan 11 03:38:38 I love Hacker's keyboard Jan 11 03:38:45 I love it Jan 11 03:39:02 pragma-: i was asking about file managers earlier Jan 11 03:39:13 i use root explorer Jan 11 03:39:21 pragma-, brx_: <3 hackers keyboard, hopefully it doesn't have any key logging code inbuilt :P Jan 11 03:39:27 I use ES File Explorer Jan 11 03:39:49 phix : Hacker's Keyboard is open source Jan 11 03:39:57 pragma-: i cant download paid apps on this device atm Jan 11 03:40:22 brx_: there are other ways to get apks Jan 11 03:40:26 Pfhoenix: Yeah hopefully the compiled version is fine Jan 11 03:40:38 I know pragma- heh Jan 11 03:41:02 there are other markets such as amazon, etc Jan 11 03:41:31 amazon app market lets you try out some apps right in your browser Jan 11 03:42:07 Ill check it out Jan 11 03:43:13 also, amazon gives away a paid app for free every day, apparently Jan 11 03:43:51 Ahhh nice nice Jan 11 03:43:58 Pretty neat Jan 11 03:44:31 anyone? Jan 11 03:45:03 brx_: android apps you can "test drive" on amazon: www.amazon.com/b/ref=amb_link_356762622_2/191-0621103-8806564?node=3071729011 Jan 11 03:46:05 Thanks pragma- . tbh though i dont dl many apps Jan 11 03:46:32 their free apps are mainly shovelware nowadays, to be honest Jan 11 03:47:36 One app i would use is a logcat live wallpaper Jan 11 03:48:20 One that actually worked on my nexus 7, i hate loading logcat everytime, there are always sends to be saved Jan 11 03:48:44 S/SENDS/SECONDS Jan 11 03:57:20 hey, i was wondering if anyone here knew anything about AOSP repos? Specifically forking them? Jan 11 04:29:20 whiterabbit, your connection having problems? Jan 11 04:29:46 ruh roh Jan 11 04:29:51 lol Jan 11 04:30:04 well if its not a real person, and they're spamming my logs, i'll issue a 2 hour ban :P Jan 11 04:40:17 Whats the best way to keep font size consistent across screen sizes? So that the some string always takes up the same percentage of screen space on different devices. Jan 11 04:40:28 you dont want to do that Jan 11 04:40:55 Unfortunately I do ;) Jan 11 04:41:10 Even if it's super tiny or super big. Jan 11 04:41:38 adjust your desired text font by the screen's dips Jan 11 04:43:35 Yeah Ill give that a shot. Just need to figure out all the sizes. Thanks Jan 11 04:58:02 evenin' Jan 11 05:06:43 anyone know if theres any way to remove apps that are in the "draft" status in the play store developer console? Jan 11 05:06:54 i have an app that i start uploading that i now just want to abandon Jan 11 05:07:06 cant seem to figure out how to get rid of it... Jan 11 05:08:04 new or old? Jan 11 05:08:17 find apk -> advanced -> deactivate Jan 11 05:09:56 new Jan 11 05:10:16 hmm i havent uploaded an apk yet Jan 11 05:10:31 I just started the process of adding a new application Jan 11 05:10:36 nothing is in the play store yet Jan 11 05:11:04 no you can't Jan 11 05:11:05 :( Jan 11 05:11:35 "draft" = only topics right? Jan 11 05:11:45 "draft" means not published or never was published Jan 11 05:12:08 if you dont have an APK yet uploaded, upload a junk apk and then deactivate that. auto delete project Jan 11 05:12:15 this will only not work if you published already Jan 11 05:12:56 huh Jan 11 05:12:58 you can't delete a project Jan 11 05:12:59 ever Jan 11 05:13:03 yes you can.. Jan 11 05:13:10 you can't delete a published project Jan 11 05:13:21 but you can delete an uploaded but non-published project... Jan 11 05:13:23 hmm Jan 11 05:13:26 hmm Jan 11 05:13:32 trinity not sure what you mean by only topics Jan 11 05:13:33 how Jan 11 05:13:36 and hi JakeWharton Jan 11 05:13:46 drinks this weekend! Jan 11 05:13:58 I guess i can just wait until i create a new app and change the app details of my current draft Jan 11 05:13:59 maybe Sunday. Saturday is looking insane Jan 11 05:14:08 could use some drinks though Jan 11 05:14:14 :D Jan 11 05:14:19 you might want to see an substance abuse counselor for your obsession with drinking Jan 11 05:14:20 i need to go restock my fridge Jan 11 05:14:31 pragma-, i've had like one beer in the past week Jan 11 05:14:41 and you've been obsessing about it Jan 11 05:14:47 matt9 do you have a signed apk? anything random would work Jan 11 05:14:51 i've asked jake twice Jan 11 05:15:12 i'm too busy jammin' on Spotify Jan 11 05:15:19 trinity like try uploading a random apk signed by me and then I should be able to delete the draft? Jan 11 05:15:25 yes Jan 11 05:15:31 ill try that Jan 11 05:15:45 how Jan 11 05:15:50 i have two options: publish and save Jan 11 05:15:51 tell me when you uploaded it and ill guide you through it Jan 11 05:16:04 and canadian can learn a new trick ;) Jan 11 05:16:05 i have an apk uploaded Jan 11 05:17:01 waiting for matt9 Jan 11 05:17:12 alright it just uploaded Jan 11 05:18:30 press switch to old design Jan 11 05:18:36 k Jan 11 05:18:50 click on that draft Jan 11 05:18:56 k Jan 11 05:18:58 press teh tab "APK" Jan 11 05:19:04 yup Jan 11 05:19:04 "APk Files" Jan 11 05:19:10 switch to advanced mode>> Jan 11 05:19:18 deactivate :) Jan 11 05:19:25 delete.! Jan 11 05:19:30 there is no delete Jan 11 05:19:32 just a reactivate Jan 11 05:19:45 canadiancow: it has to be unpublished remember Jan 11 05:19:45 i see delete Jan 11 05:19:51 it IS unpublished Jan 11 05:19:52 but it wants me to save before deleting.. Jan 11 05:19:53 T_T Jan 11 05:19:58 no like never published before Jan 11 05:20:09 matt9: save and enter in random information for everything Jan 11 05:20:18 matt9: follow step again and press delete and it will be gone Jan 11 05:20:23 i wonder if i somehow accidentally published this at one point Jan 11 05:20:49 canadiancow: you could always try with hello world Jan 11 05:21:02 i have another app i can try it on Jan 11 05:21:06 one sec Jan 11 05:21:54 trinity awesome! that worked Jan 11 05:21:56 thanks masn Jan 11 05:21:58 man& Jan 11 05:21:58 np Jan 11 05:22:04 holy balls Jan 11 05:22:05 :| Jan 11 05:22:10 also theres a javascript code to hide unpublished apps Jan 11 05:22:12 http://pastebin.com/CLRUccrs Jan 11 05:22:15 credit goes to devslash Jan 11 05:22:26 cool Jan 11 05:22:48 it actually worked Jan 11 05:22:53 i wonder if thats a feature or a bug Jan 11 05:23:04 weird feature if so Jan 11 05:23:07 thanks Jan 11 05:23:24 trying to debug an in-app billing problem using the "android.test.purchased", my problem is it's not added to my inventory and I'm no longer able to simulate a new purchase with it. Is there any way to clear it from the inventory? Jan 11 05:23:42 devslash: np haha :) Jan 11 05:23:44 my problem is it is now** added Jan 11 05:24:08 beastmanrage: did you ask me about IAB last time? Jan 11 05:24:08 wait Jan 11 05:24:11 don't use that code Jan 11 05:24:15 Trinity: nope Jan 11 05:24:17 i updated it Jan 11 05:24:23 beastmanrage: having the same problems myself now -.- Jan 11 05:24:47 go to my site apps.hovav.org Jan 11 05:24:48 beastmanrage: just did a factory wipe of my tablet. real items are giving me "user is not authorized" Jan 11 05:26:07 i suppose i can try to "consume" the item Jan 11 05:27:23 canadiancow: likely its a bug, doesn't work with dev console v3 Jan 11 05:47:19 wtf, Galaxy S II Plus ? Jan 11 05:47:25 ? Jan 11 05:47:55 http://www.androidpolice.com/2013/01/10/samsung-rehashes-the-galaxy-s-ii-with-the-s-ii-plus-a-dual-core-handset-with-jelly-bean/ Jan 11 05:48:04 basically the S II with JB Jan 11 05:48:26 well, there also not a ram increase ? Jan 11 05:48:45 sligh processor speed bump ? Jan 11 05:51:02 isnt there a 3? Jan 11 05:51:20 android 4.1.2? Jan 11 05:51:20 yeah Jan 11 05:51:21 ok Jan 11 05:51:28 4.2 is already liek 2 months old :P Jan 11 05:51:41 in eclipse, how do i regenerate R for a project that doesn't havei t ? Jan 11 05:52:36 you could try toggling autobuild on/off Jan 11 05:52:46 should be done automatically though Jan 11 05:52:50 try a clean maybe Jan 11 05:53:02 a clean what ? :o Jan 11 05:53:17 lol Jan 11 05:53:36 * Adnauseam is also new to eclipse Jan 11 05:55:26 g00s: do you mean a cleanup ? i tried that, it didn't work Jan 11 05:56:43 auto build is on, and project->clean doesn't do much either. Jan 11 05:56:49 at that point, the standard answer is to migrate to intellij i think Jan 11 05:57:09 is intellij so superior ? Jan 11 05:58:23 one sec, i need to check eclipse Jan 11 05:58:26 i'm superior Jan 11 06:00:17 Adnauseam: make sure you have Preferences->Android->Build "Automatically refresh resources" checked Jan 11 06:00:39 Top Picks Jan 11 06:00:39 Jan 11 06:00:39 December 6, 2012 Jan 11 06:00:39 Jan 11 06:00:39 User is not eligible for this purchase Jan 11 06:00:57 -_________________________________________________________________________________- Jan 11 06:01:43 thanks for the blank lines Jan 11 06:01:48 we appreicate it Jan 11 06:02:08 I do. I prefer ANSI art though. :) Jan 11 06:03:39 Adnauseam you still got your R problem? Jan 11 06:04:02 sorry, lol fail copy and paste Jan 11 06:04:04 i dont understand why my eclipse is not picking up the newest ADT; its pointed to the right url for updates Jan 11 06:04:19 its stuck at 20.0.0 , should be 20.0.1 Jan 11 06:04:37 resolved! Jan 11 06:04:51 =] Jan 11 06:04:51 Adnauseam was gonna say I have an idea Jan 11 06:05:01 delete all errors from console by hand Jan 11 06:05:04 and build Jan 11 06:05:06 :) Jan 11 06:05:21 or fix the xml thats stopping it Jan 11 06:05:30 would have been my 2 guesses Jan 11 06:07:10 i usually say "keep cleaning until it works" Jan 11 06:07:35 StingRay_: that's what idid :P Jan 11 06:07:59 great minds ;) Jan 11 06:08:02 2 xml attributes were missing and that preventing the build Jan 11 06:08:18 indeed *raises cup of tea to yo* Jan 11 06:08:27 or similar skillz that yield the same mistakes ;) Jan 11 06:09:21 or similar learning habbits :o (bad ones at that, but learning is learning) Jan 11 06:09:21 cup of tea at this time in the morning ? I'm coffee all the way at the mo... tis just gone 6am here Jan 11 06:09:43 hello Jan 11 06:09:47 i was also curious if it's possible to force myself to build all of my apps. can i build an android that will only run apps with a certain certificate/signature? Jan 11 06:09:48 coffee can be tea! Jan 11 06:10:31 sounds possible Jan 11 06:11:08 the steve jobs android Jan 11 06:11:23 except i want it for personal security Jan 11 06:11:35 you could implement a public key and verify @ onStart Jan 11 06:12:02 we're talking about apps you are compiling, right ? Jan 11 06:12:05 i don't know how certs an sigs are used with android Jan 11 06:12:39 Adnauseam: yes. uhm... i'm willing to only use open source apps, and compile them all myself Jan 11 06:12:41 that makes the two of us, but given that android is linux.. i don;t think there's going to be a lot of difference it's time to hit the books! Jan 11 06:13:27 library project - public key verification, would be my initial attempt if i was doing it Jan 11 06:13:41 mm Jan 11 06:13:55 i think android already does it with the package manager Jan 11 06:14:07 automation is cool too Jan 11 06:14:07 packages have to be signed Jan 11 06:14:30 but there is no enforcement... probably unless it's set up Jan 11 06:14:46 * ashes thinks Jan 11 06:15:27 a kernel .zip file... i remember that you can't unzip a kernel upgrade, and then zip it. it won't boot Jan 11 06:15:42 because the signature is lost Jan 11 06:16:26 what does it check for the signature ? Jan 11 06:16:43 you can take an existing zip file, open it in a zip app, edit it, and close it Jan 11 06:17:08 the zip file needs to be signed somehow Jan 11 06:17:46 what is this signing Jan 11 06:18:05 i learned this when i tried to install my own kernel on an htc desire hd Jan 11 06:18:34 is it the singing of the lambs? does it put the signature on its skin or it gets the hose again ? Jan 11 06:19:07 i think it's like openssl. ssl doesn't work if one end doesn't have a certificate Jan 11 06:19:21 and that's built into android somehow Jan 11 06:20:11 https://developer.android.com/tools/publishing/app-signing.html Jan 11 06:20:19 ya Jan 11 06:22:18 hmm Jan 11 06:22:37 says its not used to stop users from installing stuff Jan 11 06:22:55 i noticed that one app can't replace another if it is signed by a different party Jan 11 06:23:09 hey, anybody here with some AOSP knowledge? Jan 11 06:24:08 why dont you ask a real question Jan 11 06:24:14 rather than one that just wastes everyone's time Jan 11 06:25:00 if you had, i would have likely answered it Jan 11 06:25:05 but insteda, im going downstairs now Jan 11 06:25:21 canadiancow: wait - wtf, why is https://dl-ssl.google.com/android/eclipse/ pointing to adt 20.0.0 ? Jan 11 06:25:40 21.0.0 rather Jan 11 06:26:23 canadiancow: umm...okay? lol i'm looking for some information about forking AOSP repos from Google into a git repo of my own, while keeping all of Google's commits (since it's common courtesy) Jan 11 06:26:42 specifically, how to fork them Jan 11 06:26:48 where do you place your android sdk on linux? Jan 11 06:27:09 RustyShackleford in the trash if you want Jan 11 06:27:14 i realize it's sorta arbitrary Jan 11 06:27:17 as long as you set the path to it Jan 11 06:27:20 :) Jan 11 06:27:24 where do YOU personally put it? Jan 11 06:27:31 my favorite is lost+found Jan 11 06:27:41 me ~/Development/SDKs/ Jan 11 06:28:08 oh actually no i dont in linux Jan 11 06:28:20 but I have a NAS type setup Jan 11 06:28:25 i guess Google doesn't do installation testing :/ Jan 11 06:28:29 and network mounts Jan 11 06:29:06 put the sdk in the cloud ! Jan 11 06:29:20 it is, after all, where google wants all your stuff Jan 11 06:30:14 i'm looking for some information about forking AOSP repos from Google into a git repo of my own, while keeping all of Google's commits (since it's common courtesy). and i was talking about how to fork them Jan 11 06:31:06 google "how to use git" Jan 11 06:31:43 hi Jan 11 06:31:48 kevinb: i know how to use git....just not how to fork from gerrit Jan 11 06:32:02 kevinb: i know how to fork from github, is gerrit forking similar? Jan 11 06:32:21 is there a way to do "end-to-end" testing? (particularly, I want to automate the 'tap on buttons and input data' part to do TDD on my app) Jan 11 06:32:54 gerrit is a code review system. repo is the tool for the collection of git repos. check source.android.com . Jan 11 06:33:43 kevinb: so i'd need to use repo to fork then? because if i try and do any git commands on any of the folders they say they aren't git repos, even if they have a .git folder Jan 11 06:34:27 AOSP is a collection of git repos. git commands work on them. Jan 11 06:35:08 and you use repo to clone and manage them as a whole, or git to manage them individually Jan 11 06:35:42 kevinb: thats what i thought! why are they saying they aren't git repos when i use git status? Jan 11 06:36:05 i don't know Jan 11 06:36:40 kevinb: crap hold on, i may have figured it out Jan 11 06:40:28 kevinb: just realized that forking seems to only be a github term Jan 11 06:40:39 kevinb: it's more or less like cloning server-side? is that right? Jan 11 06:40:55 google "how to use git" Jan 11 06:41:26 kevinb: are you serious? Jan 11 06:41:35 while we're on the subject of git: Jan 11 06:42:03 at some point I'd like to "freeze" the source for my app when I release it Jan 11 06:42:30 uhm Jan 11 06:42:32 then make a working branch. When this branch is satisfactory, I want to merge it back Jan 11 06:43:35 read about git, a lot, and if you think that a howto is missing, then write it and publish it Jan 11 06:43:39 something15525: "cloning locally" is `git clone`. `forking` is to make a new branch of code starting where you are, but where you'll add different features Jan 11 06:44:00 something15525: 'freezing' is done with tags Jan 11 06:44:28 Tordek: so is there a way to "fork" with the git command? or is that purely a GitHub term? also I didn't ask about freezing RustyShackleford did Jan 11 06:44:53 something15525: 'git checkout -b newbranchname Jan 11 06:45:23 (or 'git branch newbranchname; git chechout newbranchname'; it's the same) Jan 11 06:45:36 git command forking is branching Jan 11 06:45:49 Tordek: so if i sync the AOSP repo to my source dir, then go into the folder of the repo i want to "fork", i git checkout a new branch? then push it to GitHub? Jan 11 06:46:00 oh, sorry, you were talking about github Jan 11 06:46:08 Tordek: nonono Jan 11 06:46:17 no, my bah; github forking is differnt from branching Jan 11 06:46:22 *bad Jan 11 06:46:45 Tordek: oh okay. and how would i replicate github "forking" on a git repo that isn't on github? Jan 11 06:46:53 Tordek: sorry, that's what i was asking Jan 11 06:47:06 when you fork in github, it's indeed the same as a 'git clone' command: you create a new repo, that you own and push to, but with the same history as the ther one Jan 11 06:47:47 Tordek: so to "fork" a git repo, i would clone it into my own directory and then i can push to github? Jan 11 06:48:25 if you're using github, you just click the 'fork this repo' button and clone your new fork, and push there Jan 11 06:48:42 if not, you just git clone, and push into your new clone Jan 11 06:48:51 i would think merging it back would be much harder Jan 11 06:48:51 anyone ever get the, "user is not eligible for this purchase" Jan 11 06:49:21 Tordek: ....and how do i clone a directory? wow sorry if i'm sounding dumb here Jan 11 06:49:29 Trinity: i'm used to cloning with .git files Jan 11 06:49:30 I have been getting a lot of problems with the CHECK_TTS_DATA intent, has this changed in recent framework? Jan 11 06:49:41 RustyShackleford: look up 'git flow'; it's a common workflow kinf of how you want to do it Jan 11 06:50:08 Tordek: actually i think i just did it, i just moved to the directory and ran git clone . ~/myclonedir Jan 11 06:50:15 something15525: you can't; git doesn't know about directories; only files. you can only clone whole repos (with their whole history) Jan 11 06:50:17 http://ideone.com/ZJgnr2 Jan 11 06:50:47 so I did all of my development on my windows install for this app. I'm in the process of setting up my environment on linux Jan 11 06:50:56 what eclipse files do I need? Jan 11 06:51:01 something15525: i dont see how that would help me Jan 11 06:51:07 if you mean "clone a directory holding a repo", yes, that's right: the directory itself is a repo, and you just clone it Jan 11 06:51:24 Trinity: he mistabbed; he meant me :) Jan 11 06:51:59 actually, heres the bug http://code.google.com/p/android/issues/detail?id=36430 Jan 11 06:52:21 tordek: thought so haha Jan 11 06:52:27 beastmanrage: did you fix your IAB error? Jan 11 06:52:32 Trinity: oops sorry Jan 11 06:52:55 Trinity, it wasnt really an error, i just needed to "consume" the item so i could retest with it Jan 11 06:54:09 Tordek: so how would i get the whole repo? thats what i'm trying to do... Jan 11 06:54:27 Tordek: hold that thought Jan 11 06:55:33 if there is a bug within Jellybean, does it not get resolved until there is the next big update push? Jan 11 06:55:42 something15525: just the clone command, like you just did Jan 11 06:56:14 Tordek: hold on a sec i think i figured it out, sorry i was doing something stupid first there. think i have it cloned. lemme check Jan 11 06:57:23 okay quick check. do I need to save arrayadapters and vectors on onpause method and load them on onresume when launchmode is standard? I go to home screen, I come back, program crash when I try to use those adapters and vectors Jan 11 06:58:47 aah if only I could use intents with singleinstance launchmode. seems much easier launchmode :-< Jan 11 07:05:14 is there a specific team dedicated to TTS development, id love to have a word Jan 11 07:05:47 beastmanrage: hard to tell. there have been bugs that spanned multiple major releases Jan 11 07:06:00 fuck, there are bugs from 2.2 that still aren't fixed Jan 11 07:06:08 even before that, probably Jan 11 07:06:12 i'd like to have a word with the guys responsible for the new keyboard in 4.2.1, and their use, or lack of testers Jan 11 07:06:33 i feel like the entire section of the framework is incredibly neglected Jan 11 07:06:35 StingRay_: seems a little crashy sometimes, doesn't it? lol Jan 11 07:06:55 something15525 no, it's a buffer problem that I hate Jan 11 07:07:08 now im forced to do a hacky "work around" for something that broke in jellybean Jan 11 07:07:14 StingRay_: i see Jan 11 07:07:25 http://code.google.com/p/android/issues/detail?id=41687&can=5&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars <-- that Jan 11 07:07:52 tis dam annoying Jan 11 07:08:10 StingRay_: i find it annoying how no one's gotten back to you about it Jan 11 07:08:19 that 2 Jan 11 07:08:20 StingRay_: at least in the link you showed Jan 11 07:08:20 StingRay_: no owners; its probably hopeless Jan 11 07:08:40 not sure why no1 else is bothered by it Jan 11 07:08:53 it affects all apps and can lead to incorrect data Jan 11 07:09:56 i gotta try this Jan 11 07:10:21 minimise the on screen keyboard with the back button? Jan 11 07:10:28 yes Jan 11 07:10:31 well Jan 11 07:10:40 the down arrow that is the back button Jan 11 07:10:47 yeah. hashmap was not automatically saved so basically had to take data, store it to sharedpreferences and build it back up on onResume Jan 11 07:10:54 phew Jan 11 07:11:37 got lucky that I accidentally checked this feature too. Program was about to be given for testing new features. Would be embarrassing if old ones would have started to cause program to crash :D Jan 11 07:11:44 so with a bug like this, when will it be fixed, when the next OTA is pushed to devices like every 6 months? Jan 11 07:11:54 dunno Jan 11 07:11:58 never probably Jan 11 07:12:07 http://forum.xda-developers.com/showthread.php?t=2058791 Jan 11 07:12:18 my other explanation of it Jan 11 07:13:13 say it does get fixed, would it then be committed to some main SDK, which will then need to be adopted by each manufacturer, and then pushed to devices? Jan 11 07:13:35 god knows, 1st time I submitted an OS bug Jan 11 07:13:47 not sure how it all works tbh Jan 11 07:13:58 looks like i need yet another band aid for the TTS engine Jan 11 07:14:05 :) Jan 11 07:14:37 i gotta sneak into the pops room to grab the nex 7 and try that out Jan 11 07:14:42 i dont believe it Jan 11 07:14:43 Tordek: thank, you, i got it working. YES Jan 11 07:15:01 beastmanrage what my bug ? Jan 11 07:15:11 yea, how could they flub up the stock keyboard Jan 11 07:15:17 I've tested on 10x of devices Jan 11 07:15:23 even non-stock Jan 11 07:15:29 AOSP CM10.x Jan 11 07:15:37 tis there Jan 11 07:15:48 the odd thing is the calendar app Jan 11 07:15:56 stock cal dont seem to do it Jan 11 07:16:01 if you were to type something reasonably long, how much of it does it then duplicate when turned? Jan 11 07:16:04 and cant for the life of me work out why Jan 11 07:16:29 beastmanrage the last "corrected/noncorrected" input Jan 11 07:17:14 so whatever was still hanging in the ime buffer when kb is minimized Jan 11 07:17:43 off for a cig Jan 11 07:18:43 StingRay_: nooo! resist! Jan 11 07:19:08 never mind, not my business Jan 11 07:19:13 lol Jan 11 07:21:52 How can I clone an object but send new data to the constructor? Jan 11 07:31:30 ok figured out a solution to my problem. new problem: how can I make a Spinner not call onItemSelected during population? Jan 11 07:33:21 dammit. seems you can't get the menu if dialog is shown up. there went that idea Jan 11 07:33:36 guess I need to put button to dialog to handle that instead Jan 11 07:39:10 tneva82: i handle that with this: http://teslacoilsw.com/tmp/dialogmenu.png it's a custom dialog title and the overflow button opens a listpopupwindow Jan 11 07:40:27 guess that could work too Jan 11 07:40:28 users don't always realize there is a menu on that screen. however it's an advanced option anyway (in my case) so that's okay. and users do understand when i tell them how to get there Jan 11 07:40:58 but since it's basically just needed in this case for quick access to one option from the menu I think it's okay to just add button to the dialog Jan 11 07:41:21 button is more discoverable so indeed that might be better Jan 11 07:42:05 that too :) Jan 11 07:48:42 is there a way to create a new instance of an object from a pre-existing object? Jan 11 07:56:16 hrm in Android 4.x, can webview's access res/drawable's ? I'm reading mixed reports of on stackoverflow. i tried it and it seems to be working with my debug apk but not my release apk. i'm assuming it's my build process, but the mixed reports make me not so sure Jan 11 08:03:36 damccull: .clone() :P Jan 11 08:03:56 g00s thanks. Jan 11 08:20:37 hi is creating AVD in terminal is better than in window? Jan 11 08:21:16 hello can you guys take a look at my question on SO: http://stackoverflow.com/questions/14259170/no-activity-exception-when-using-viewpager-and-fragments-inside-fragments Jan 11 08:23:23 I think this is prety standard navigation flow and i cant get it to work :( Jan 11 08:26:28 mikeyMike: unless you have very specific requirements I'd just use the UI Jan 11 08:26:47 the only time I start it through the terminal is when I want it to make use of qemu Jan 11 08:28:21 zipoboy tried just getActivity().getFragMan**** Jan 11 08:28:24 ? Jan 11 08:28:40 jus a moment :D Jan 11 08:28:48 unless you really need the instance that the parent fragment holds Jan 11 08:28:55 not sure why you would Jan 11 08:29:06 but hey, I'm more a 3d artist than a programmer Jan 11 08:29:07 :) Jan 11 08:29:37 bah. I have 2 spinners. contents of spinner 2 depends on spinner 1. I need to set up values of both automatically. I set up spinner 1 but first attempt to change spinner 2 fails. if I repeat then they are correct. Think it's because spinner 2 values get changed so spinner 2 selection is changed, spinner 2 values get changed, selection goes to 0. Jan 11 08:31:12 StingRay_: If i use getFragmentManager() instead of getChildFragmentManager() even thou i'm in subfragment. I don't get an exception, but one of the fragments inside viewpager doesn't get recreated after i select viewpager fragment for the second time. Jan 11 08:35:29 I've got a problem with the back button behaviour. Appreciated if you care to have a look: http://stackoverflow.com/q/14274338/927408 Jan 11 08:53:03 Hi, I have an EditText with type set to personName. If I edit this field (in landscape mode) I get a softkeyboard and a large white edit area and a button that says "Volgende" (that means "Next"). Can I somehow change this view? I want the "volgende" button to say something else because there is only 1 input field and the concept of "Next" does not make any sense. Also I'd prefer if the keyboard would just popup on top of the Jan 11 08:53:03 existing view and the text is edited in place instead of the large white textarea (which does not make sense either for a single line that takes up 10% of the white space) Jan 11 09:13:46 <\0x90\> If phone goes to sleep your app will no longer execute, so socket will eventually timeout. You can prevent this with wake lock. This will eat devices battery tremendously - I know I wouldn't use that app. Jan 11 09:14:20 <\0x90\> read this on stackoverflow. is this true ? if so.. how does apps like line maintain connection to a server .. when phone sleeps ? do they do some kind of scheduled queries.. or something similar ? Jan 11 09:15:19 \0x90\: maybe they wouldn't and would use GCM instead Jan 11 09:17:01 if I choose to neglect IN_APP_NOTIFY for a refunded purchase, can i still trust the getPurchases() to no longer have that item in the inventory? Jan 11 09:17:16 <\0x90\> ivan, gcm ? Jan 11 09:17:39 http://developer.android.com/google/gcm/ Jan 11 09:19:38 <\0x90\> ivan. mm.. i see. but if this google cloud thing is able to send messages to clients (while phone sleeps) it means that there is a socket active. to googles servers. Jan 11 09:19:59 <\0x90\> which invalidate the above statement, unless there's a override on sockets created for this gcm thing Jan 11 09:20:42 <\0x90\> i mean.. telephone sleeping doesn't kill the sockets in gcm case, but do in other cases. which doesn't really make sense to me. Jan 11 09:22:20 <\0x90\> there must be a way to keep a socket opened while telephone is sleeping (sleeping as in .. not in use, but app querying server in background and still processing data to some extent... like if specific action occures: play a sound (notification) Jan 11 09:23:00 i have a background service that requests data from a server Jan 11 09:23:04 \0x90\: various posts suggest that the cell network wakes up the phone Jan 11 09:23:09 still works when my phone is in sleep Jan 11 09:23:15 and does not use wake lock Jan 11 09:23:33 if I had to do a foreground app then would use wake lock Jan 11 09:23:47 I would look into what "sleep" is Jan 11 09:24:07 <\0x90\> ivan, then google would have to communicate with cell network, not with your phone Jan 11 09:24:13 Hi, I'm trying to include Google Analytics in my app. I setDebug(true) and saw HTTP 200 responses in the log from Analytics. Jan 11 09:24:13 <\0x90\> StingRay_, yes, that makes sense Jan 11 09:24:37 I then included my tracker ID in the sample app (which was in the GoogleAnalyticsAndroid_1.5.1 archive) and tested - same HTTP 200. But I see no data on my Analytics dashboard. Jan 11 09:24:54 I've waited a week. (Posts online suggest between 3 hours and 3 days) Jan 11 09:26:00 hey Jan 11 09:26:32 what doi ahve to do when my AVD Manager doesn't show up? Jan 11 09:26:41 i click an icon and nothin Jan 11 09:26:59 mikeyMike shout louder at it Jan 11 09:27:10 ok Jan 11 09:27:14 or look at the logs / fire it from term and actually see why Jan 11 09:27:16 didn't work. Jan 11 09:27:51 ok, where are the logs... Jan 11 09:28:10 userspace/.android/avdnameofavd/logs Jan 11 09:28:23 same place the avd is Jan 11 09:28:24 :) Jan 11 09:29:18 but like i say, fire it up from a command line and it will/should also state why Jan 11 09:29:27 or at least indicate what the problem is Jan 11 09:29:42 did it ever start ? Jan 11 09:31:16 iiiu mean hm but i don't have a problem with concrete emulator but with statring AVD Manager. it was starting till last 15 minutes:o Jan 11 09:31:42 what OS ? Jan 11 09:31:47 is there a way to add a nine patch with a width/height in a layer list? Jan 11 09:31:55 host OS ? Jan 11 09:31:56 StingRay_: Windows. Jan 11 09:32:13 go a move the entire AVD set out of .android Jan 11 09:32:17 see if it starts then Jan 11 09:32:37 if it does there will by a prob (syntax or something, or settings) with avd defs Jan 11 09:32:55 mikeyMike: you can use a x86 version of android in virtual box Jan 11 09:33:03 remove 'avd' catalog? Jan 11 09:33:04 this is much faster then any real devices Jan 11 09:33:26 monsti: what do i have to install? Jan 11 09:34:07 mikeyMike: androvm.org and virtualbox Jan 11 09:34:35 note this is not the right way if you have to use the NDK Jan 11 09:34:47 cept be weary that the androvm is not an arm emu/system Jan 11 09:35:36 well the recent version have the intel arm emulation library ;) Jan 11 09:36:27 i dont wanna install virtualbox or something Jan 11 09:36:34 but repair my AVD Manager. Jan 11 09:36:51 have you moved all avd's out ? and tried it yet ? Jan 11 09:37:55 i renamed 'avd' folder. Jan 11 09:38:24 and yes it worked :D thanks. Jan 11 09:38:33 mikeyMike: ok i don't know what you want :) i switched to andvm because i had boot time of about 10minutes with avd Jan 11 09:38:47 monsti: is there are some very good reasons to change to this? Jan 11 09:39:03 and how long does it boot now? Jan 11 09:39:20 afaik it's the fastes way to run apks Jan 11 09:39:23 another question, lol. Jan 11 09:39:41 booting is about 8-10 seconds (cold boot) Jan 11 09:40:03 i find the adb tcp a bit...flakey with androVM Jan 11 09:40:04 my Create new AVD looks different than that what was at the beginning. Jan 11 09:40:12 monsti: why not use the x86 avd images instead? Jan 11 09:40:37 andro vm is made for vbox Jan 11 09:40:45 there is even an opengl emulator Jan 11 09:41:17 there is also the blue stacks player, not sure yet if its worth it Jan 11 09:41:24 lol :) Jan 11 09:41:29 2.3 Jan 11 09:41:33 I would use androVM more if it supported my multitouch track pad on macbook Jan 11 09:41:48 you have the source luke Jan 11 09:42:36 that's another strange thing i noticed Jan 11 09:42:49 eclipse on win64 is faster then on my osx Jan 11 09:43:09 lol and17 in mine starts 10 minutes too , i think :D Jan 11 09:43:32 monsti what are the specs of your mac? Jan 11 09:43:47 StingRay_: same hardware in osx and win7 Jan 11 09:44:03 what model is it I mean Jan 11 09:44:05 ? Jan 11 09:44:07 StingRay_: quadcore i7, 16gb ra, ssd Jan 11 09:44:16 StingRay_: a hackint0sh Jan 11 09:44:26 ah, that will be why I would guess Jan 11 09:44:34 lol ;) Jan 11 09:44:50 the benchmarks are better then recent macbook pros Jan 11 09:45:08 benchmarks != real world perf. Jan 11 09:45:11 maybe eclipse has some magic on real macs that i didn't get ;) Jan 11 09:45:31 or ... eclipse on win7-64 is faster Jan 11 09:45:34 i take option 2 Jan 11 09:45:41 I have a few macs, and a hack Jan 11 09:46:18 takes a lot to get a hack to anywhere near 100% sound Jan 11 09:46:33 well this depends on the hardware :( Jan 11 09:46:34 most people get to about 60% functional and think it's done Jan 11 09:46:46 i have a stupid nvidia optimus in my notebook Jan 11 09:47:01 it took me a while to get the beast working Jan 11 09:47:20 I have a android library project which I would like to reference from a regular Java project. I'm getting NoClassDefFoundExceptions when utilizing the classes. How do I make this work? Jan 11 09:47:23 did you use SRTools at all ? Jan 11 09:48:32 monsti SR Tools was my one time contribution to the hack community Jan 11 09:51:16 StingRay_: thats cool :) Jan 11 09:52:32 StingRay_: osx 10.8 got some very bizarre stuff compared to versions that where steve jobs verified Jan 11 09:54:14 such as? Jan 11 09:54:26 save as Jan 11 09:55:14 or 100% nogo with windows shares in 10.8.0 and .1 - in steves area that would never happened Jan 11 10:25:28 i dont have a question i just want to complain. linear layouts in android or rather their weighting system is so abysmally designed that it wouldnt surprise me if it turned out it was made by an infiltrator from apple. stop being bad android :( pls Jan 11 10:26:26 balls2thewall: dont use linear layouts then Jan 11 10:26:29 use relative layouts Jan 11 10:27:25 balls2thewall and how is the weight wrong ? Jan 11 10:28:08 im clueless about the math going on behind it, it feels like the relation between a weight and the render position is Math.Random() Jan 11 10:28:31 give everything 1/3rd sapce 1,1,1 Jan 11 10:28:35 how hard is that Jan 11 10:28:44 or 0.2,0.2,0.2 Jan 11 10:28:55 yeah with simple ones it works Jan 11 10:29:06 so what else ? Jan 11 10:29:06 i also got it with more complex ones to work :) Jan 11 10:29:08 weight 1,2 Jan 11 10:29:09 0,1 Jan 11 10:29:12 lol Jan 11 10:29:36 ofc if you want something, that isn't meant to be expressed by weight (since I don't get where you could run into problems) you shouldn't use linearLayout Jan 11 10:29:54 have 3 layouts and remaining 2 take 1/3rd and 2/rds respective wrap_content, 1,2 Jan 11 10:30:14 to me that weight system cant "not" work Jan 11 10:30:17 :) Jan 11 10:31:13 3 layouts where 1st takes half of 3rd and 2nd is fixed 1, wrap_content, 2 Jan 11 10:31:51 3 layouts where 1st takes 1/10th of 3rd and 2nd is fixed 0.1, wrap_content, 1 Jan 11 10:32:40 "3 layouts where 1st takes half of 3rd and 2nd is fixed 1, wrap_content, 2" woot? Jan 11 10:32:51 ah okay sorry now i got the sentence :D Jan 11 10:33:06 :) Jan 11 10:33:32 the one with wrap_content has no weight value? Jan 11 10:33:48 it is variable but no weight Jan 11 10:33:49 but Jan 11 10:34:03 since it takes space the remainder is available for the weight Jan 11 10:35:25 ive done a super simple thing, with 5, 1, 1 and its wrong >_> the bottom 2 views are squashed, totally out of target proportion Jan 11 10:36:48 so the available space you have for those views Jan 11 10:37:07 are divided into 5/7ths 1/7th and 1/7th Jan 11 10:37:34 is 1/7th of the available space squashed ? or is it simply 1/7th ? Jan 11 10:37:54 :) Jan 11 10:37:59 its like 1/30th Jan 11 10:38:15 pastebin layout Jan 11 10:38:40 cause I could be wrong about this lol.... long time since I used lin layouts lol Jan 11 10:38:47 <--- could be being a dick Jan 11 10:40:47 Hi guys, i'm trying to move a file from my SDcard to the system, but i keep geting "java.io.FileNotFoundException: /sdcard/external_sdcard/file : open failed: EACCES (Permission denied)", althought the file is here... Jan 11 10:41:24 access storage permission set in manifest ? Jan 11 10:41:36 good point, me check Jan 11 10:41:47 let* me check Jan 11 10:43:54 balls2thewall my apologies Jan 11 10:43:59 I was being a dick Jan 11 10:44:07 StingRay_: yes, the permission is set Jan 11 10:44:20 StingRay_ you werent >_> Jan 11 10:44:43 I was indeed :) Jan 11 10:45:14 im not even whats at fault here. the code/layouts i have to rework are terribad Jan 11 10:45:22 one of those people who adjusts layouts from code Jan 11 10:45:41 missed a word there. sure* Jan 11 10:46:01 hi everyone Jan 11 10:46:20 does anyone have experience w/ java.net.CookieHandler? Jan 11 10:46:33 I'm reading the android reference Jan 11 10:46:45 http://developer.android.com/reference/java/net/CookieHandler.html Jan 11 10:46:58 and not quite get the term system-wide cookie handler Jan 11 10:53:09 om nom nom nom Jan 11 11:06:04 can one access files (texture bmps) from within the NDK? Jan 11 11:06:17 or do they have to be inserted through Java and JNI? Jan 11 11:09:05 belgianguy: you can, in various ways (2.3+ made it simpler to use resource system) Jan 11 11:11:57 hey guys Jan 11 11:12:25 private app data is stored in /data/data/package, right? what if in eclipse the folder is empty? Jan 11 11:12:54 you mean in file browser Jan 11 11:12:55 ? Jan 11 11:13:11 cause that is restricted, just like the system folder Jan 11 11:13:22 you need elevated permissions to read it Jan 11 11:13:32 StingRay_: yeah, does it work with adb? Jan 11 11:13:32 ahn thanks, p_l! Jan 11 11:13:50 d3xter if you make an adb connection shell su Jan 11 11:13:56 you would be able to Jan 11 11:14:01 through eclipse Jan 11 11:14:50 StingRay_: ok, thanks Jan 11 11:20:17 hi guys can you please tell me how do i get build.xml "appear" in my project directory ? or where should i look for it ? Jan 11 11:23:34 http://developer.android.com/tools/projects/projects-cmdline.html Jan 11 11:23:40 "Updating a Project" Jan 11 11:25:45 thanks :) Jan 11 11:25:46 hi! what is your favourite book for android development? ( for someone who has already programming background ) Jan 11 11:25:57 reto's Jan 11 11:27:33 g00s, do you mean "reto's android sessions" ? Jan 11 11:28:03 heh, no his book from Wrox, 4e Jan 11 11:28:42 thanks. Jan 11 11:29:11 just wonder if SDK is built on top of the NDK? Jan 11 11:31:37 hi Jan 11 11:32:02 in other words, can one achive everything in NDK that is achievable in SDK? Jan 11 11:32:08 anyone have an idea what the problem could be if a bitmap seems to ghost somewhat in another bitmap? Jan 11 11:32:12 I'll upload a sample.. Jan 11 11:32:21 ottoshmidt: no Jan 11 11:33:36 Animations for my app made my 2 days worst.Please help if some one can .I have a list in which is having custom views.As soon as list populates i need to translate the first view from middle to top and list should slide down to make the space for the first view. Jan 11 11:33:54 https://dl.dropbox.com/u/6751086/android-ghost.jpg <- this Jan 11 11:34:04 I can't really reproduce it myself, customer reported it Jan 11 11:34:17 there's actually a small arrow being used elsewhere in the app Jan 11 11:35:03 https://dl.dropbox.com/u/6751086/android-ghost2.jpg <- like here Jan 11 11:36:30 oops, looks like you have a bg selector there :) Jan 11 11:36:47 but wait ... Jan 11 11:36:52 yes, i have seen this before Jan 11 11:36:56 ahhhhh , yes Jan 11 11:37:06 this is a fuckup in the ADT Jan 11 11:37:07 that looks like a resource corruption thing, I have had something similar Jan 11 11:37:12 yeah Jan 11 11:37:29 but it would be consistent to that install if it were Jan 11 11:37:40 i have had this bug when i added an id to an xml file sometimes Jan 11 11:37:46 same Jan 11 11:38:20 OT: holy shit, i can't believe how well pdf.js renders PDFs in ForeFox; pretty amazing Jan 11 11:42:36 hello :D i found this question on SO that would be pretty aw same if some one would know the answer. http://stackoverflow.com/questions/14004738/viewpager-in-fragment-with-slidingmenu Jan 11 11:43:51 I'm struggling with tis simple navigation setup for the las week Jan 11 11:55:40 StingRay_ / g00s you're responding to my question? If so, any possible solutions Jan 11 11:55:48 or pointers that say I'm not to blame? Jan 11 11:58:42 Hm, I've seen that sort of stuff, usually a clean + rebuild fixes it... not sure if this is the same case, though. But it's usually consistently messed up on all devices if this goes wrong.. I wonder if a full uninstall + reinstall would fix it. Jan 11 11:59:37 Could be a non-provided value (scaling, size, repeat) that's different on your customer's device as well. Jan 11 12:00:47 Tricky thing Jan 11 12:05:10 iivvoo: "it was all part of the plan" Jan 11 12:05:11 i havent used the adt in a while; i'm surprised that resource corruption bug is still there Jan 11 12:06:08 hi everybody! Can anybody tell me how I can bring the home and back button more to the background? In some games, they are only visible as small circles, so they don't look too distracting in the game. Can I set that somehow? Jan 11 12:08:10 evident: yeah Jan 11 12:08:32 Can you tell me how? :) Jan 11 12:08:40 Would be great Jan 11 12:08:42 hmm :) Jan 11 12:08:44 http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LOW_PROFILE Jan 11 12:09:03 http://developer.android.com/reference/android/view/View.html#setSystemUiVisibility%28int%29 Jan 11 12:09:19 ah thank you! That's great! Jan 11 12:09:54 and pass in the constant HDroid linked Jan 11 12:10:15 thx Jan 11 12:25:13 Do all versions of Android support SQLite with FTS3 ? Jan 11 12:26:49 I don't know about all versions Jan 11 12:26:59 but at least from 2.1 and onwards Jan 11 12:27:14 android gurus please help me : http://stackoverflow.com/questions/14277598/animations-in-with-listview Jan 11 12:28:01 Well I'm targetting 1.6... Jan 11 12:29:00 I dunno, have an app which uses FTS3, but I've only tested it on 2.1 and newer Jan 11 12:29:12 Is there really any point supporting 1.x anymore? Jan 11 12:29:15 easiest way to verify would be to write a small demo and run it on a sim, I guess Jan 11 12:29:36 jmaister: in 99% of cases, no Jan 11 12:30:44 Confirms my stats then Jan 11 12:31:10 and even if you could, I have no hardware to test on 1.6 Jan 11 12:31:12 Is there really any point to using FTS3 on a DB that's maybe 900KB and basically read-only? Jan 11 12:31:30 the read-only part should make no difference Jan 11 12:31:39 and the size also really doesn't Jan 11 12:31:51 Well just saying, it's not going to grow out of control through user actions Jan 11 12:32:12 well, it's kind of strange that you want to target comparatively ancient devices running 1.6 Jan 11 12:32:25 but are not worried about performance on those devices Jan 11 12:33:43 I don't see any point to avoiding 1.6 when I don't use anything specific to 2.x as far as I know. If I had good reason to only support 2.1+ or 2.2+ I could easily justify doing so Jan 11 12:34:28 I'm just trying to figure out if figuring out this FTS3 thing is worth my time or not. I have a DB with 3500 rows, basically index IDs and a text column, that I want to search. Jan 11 12:34:41 Ark42: but API's aren't the only thing you have to worry about when supporting old devices Jan 11 12:34:48 If it's not going to really benefit me, I'll just match with LIKE Jan 11 12:34:55 you also have to worry about CPU and memory requirements Jan 11 12:35:24 there's not much of a point wasting time on 1.6 support if it'll go OOM on 90% of the devices that can potentially still run 1.6 Jan 11 12:35:42 so there's a tradeoff in testing time either way Jan 11 12:35:48 I doubt this app will, it's really pretty simple Jan 11 12:35:58 (and time spent inquiring on #android-dev about 1.6 support for sqlite ;) Jan 11 12:35:58 But I understand your point Jan 11 12:36:18 Was just wondering if it was a quick "no" answer, nothing big Jan 11 12:37:02 well, I can verify FTS3 works on about 300 different devices running from 2.1 to 4.2 Jan 11 12:38:42 So I'm really confused by the whole "VIRTUAL" table thing, does that mean that it's just mapping to a "real" table elsewhere? Jan 11 12:40:15 maybe internally, but not something the user needs to worry about Jan 11 12:45:59 Hello, just interested is there the special way for new members how to submit a post to android developer google group? Jan 11 12:46:31 My post never shows up (moderetad?) Jan 11 12:52:37 Hello Jan 11 13:03:15 can you run serviuces in separatethreads? when would you want to? when you have 2 different ones(can you)? Jan 11 13:03:20 I'm using WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON for my Activities, but when I open some sub PreferenceScreen it doesn't work Jan 11 13:04:07 how can I enable this flag for all PreferenceScreen I have in Settings? Jan 11 13:05:08 is there a way to increase the size of an ImageView while maintaining the proportion? as i understand the adjustViewBounds clips the view to the size of the underlying image, but increasing width/height after that sort of kills the effect of the adjustViewBounds Jan 11 13:09:37 I'm currently working on a UI, it's programmatically built. I have a FrameLayout with a TextView. The TextView has a margin, and the FrameLayout has a custom Drawable as background. Jan 11 13:10:34 On my physical devices (Android >4.0) it works fine: the FrameLayout acts as a sort of "frame" for the Drawable, and the TextView is centered inside it. Jan 11 13:11:36 But on emulator (API 7) the view doesn't act right. Jan 11 13:12:43 Originally, the TextView had the background Drawable, and padding was added to fill it up, but on the emulator the padding went inward. Jan 11 13:12:54 what is the best way to keep a textview in a widget from changing size when a user changes the system font size? Jan 11 13:13:29 @st8uplinux do you know the size beforehand? Jan 11 13:13:42 str8uplinux dont use SP as a unit Jan 11 13:14:15 Oh, yeah, that works too. Jan 11 13:15:30 EwoudCP: do i know the size of what? the font? I am currently using 15sp Jan 11 13:16:13 str8uplinux as i said, dont use sp Jan 11 13:16:29 sp = font size relative to user scale font Jan 11 13:16:42 is there a standard way to change the scroll style of the ViewPager, for eg: I want the new page to slide in on top of the old one Jan 11 13:16:45 ah ha. So dp looks like a better option Jan 11 13:16:50 thanks StingRay_ Jan 11 13:17:10 str8uplinux dp will not scale with user font scale change Jan 11 13:17:12 :) Jan 11 13:19:02 EwoudCP not sure what your wanting to achieve ? Jan 11 13:19:13 just a drawable behind a textView ? Jan 11 13:19:44 Yeah, but with padding so that the drawable doesn't hug the text. Jan 11 13:21:13 textView inside relative layout with layout:margin ? Jan 11 13:21:24 the margin on the textView Jan 11 13:22:17 god dammit why cant android work as its supposed to for a change >_< Jan 11 13:22:20 I'll try Jan 11 13:22:44 balls2thewall i'd just be happy if they fixed some bugs Jan 11 13:24:02 why cant eclipse render 3 buttons without taking up 500mb :( Jan 11 13:26:41 balls2thewall: because it sucks Jan 11 13:28:35 it's free Jan 11 13:28:39 what more do you want Jan 11 13:28:41 :) Jan 11 13:28:47 is there a special rule for scrollViews inside linear layouts? ive got a weight proportion of 1:5:3 for my 3 views (scrollView being the last) and the TextView inside the scrollVIew is taking up like the entire screen >_< Jan 11 13:30:15 "A ScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects." Jan 11 13:31:01 Great, now RelativeLayout ignores the bottom margin of my TextView. Jan 11 13:31:37 EwoudCP only if you center it Jan 11 13:31:47 or not center it Jan 11 13:31:51 one or the other Jan 11 13:31:53 <--- tired Jan 11 13:32:32 can you run serviuces in separatethreads? when would you want to? when you have 2 different ones(can you)? Jan 11 13:33:22 qasd: according to the google docs you have to create your own thread in a service Jan 11 13:33:35 Maurits_ >_> im not entirely sure what i was supposed to take from that quote Jan 11 13:34:17 qasd: so for any operation that takes some time (300ms or longer) i suggest using threads Jan 11 13:35:24 balls2thewall: you should wrap the linearlayout inside the scrollview, not the other way around Jan 11 13:35:59 ie, linearlayout inside scrollview, not scrollview inside linearlayout Jan 11 13:36:46 <_< but i want the item in the LL to be scrollable Jan 11 13:38:26 balls2thewall errr ? what ? Jan 11 13:38:37 you want a scroll view Jan 11 13:38:54 then do Jan 11 13:39:06 as Maurits said, your expanding view will be a linearLayout inside a scrollView Jan 11 13:39:12 the first child of scrollview filling the scrollview is intended behavior Jan 11 13:41:05 I didn't get the bottom margin to work, but I found a tip that said to use FrameLayout for this kind of thing. Circular problem solving :D Jan 11 13:41:08 :/ doesnt work, the text box still takes up 99% of the screen Jan 11 13:41:25 i cant see why wrapping it in another view would change anything Jan 11 13:42:10 balls2thewall pastbin your layout Jan 11 13:43:29 http://pastebin.com/JQpe5hwv Jan 11 13:46:44 well you have your scroll view set to wrap content for one thing Jan 11 13:46:51 and your root view is set to that too Jan 11 13:47:03 so there will never be any space for the weighted views Jan 11 13:47:18 Having reverted back to FrameLayout as a container, I noticed that the TextView margins are applied, but the FrameLayout refuses to resize on 2.1 Jan 11 13:47:49 Or, well, refuses to resize much. It appears to take on a maximum size and beyone that the TextView just moves Jan 11 13:48:20 I'll do some more testing with margins and such Jan 11 13:49:11 changing the root to match did nothing :/ Jan 11 13:50:08 i think it's best to sa Jan 11 13:50:11 ooops Jan 11 13:50:19 state what you want to end up with Jan 11 13:50:35 and if you can I will have a go for ya Jan 11 13:50:37 :) Jan 11 13:52:43 i want the android api to work >_< if i say it has to be 3/9ths of the screen it has to be 3/9ths Jan 11 13:53:06 ok Jan 11 13:53:11 so describe what you want Jan 11 13:53:55 also what are these @drawable/imgbackg Jan 11 13:54:00 comprehension about the voodoo happening here =/ why arent the proportions right Jan 11 13:54:18 as i siad what you want is quite easy Jan 11 13:54:24 describe it Jan 11 13:54:27 I will do it Jan 11 13:54:32 give you xml Jan 11 13:54:34 and you can see Jan 11 13:55:01 no thanks i want to understand this myself and not delegate it Jan 11 13:55:36 ok well that @drawable/imgbackg can screw you depending on the dimensions/patch etc Jan 11 13:55:48 if you take out all your drawable bg's Jan 11 13:55:57 set the root to match_parent Jan 11 13:56:07 and the other child views to match_parent Jan 11 13:56:11 everything works Jan 11 13:56:17 I just did it Jan 11 13:56:28 why would the image matter? the relativeLayout has a set weight. shouldnt it fit regardless of the contents Jan 11 13:57:41 yeah, my point is the image at wrap_content is not really going to be amazingly the exact size of the view it's nested in Jan 11 13:57:44 was my point Jan 11 13:57:54 but neways, i took it out cause I dont have them Jan 11 13:57:57 yeah the stupid images in android in backgrounds can resize the layout Jan 11 13:57:57 did what I said Jan 11 13:58:05 and got what I expected Jan 11 13:58:06 no idea what the devs smoked... Jan 11 13:58:34 Oh wow, I managed to get it working. Instead of setting some margin on the TextView, I set a padding on the containing FrameLayout. Now it works. Jan 11 14:03:08 if you take out all your drawable bg's - err what exactly am i supposed to remove? Jan 11 14:03:50 android:src="@drawable/imgbackg" Jan 11 14:03:55 i dont have them Jan 11 14:04:03 so replaced with a color/red Jan 11 14:04:15 so I could still see the area of the layouts Jan 11 14:05:15 so why doesnt it work with images as its supposed >_> Jan 11 14:05:46 this is ridiculous why couldnt it have just worked with proportions x/y and thats it >_< Jan 11 14:06:20 it does if you set width height in a unit Jan 11 14:06:21 :) Jan 11 14:07:01 what does that mean Jan 11 14:07:08 unit Jan 11 14:07:09 dp Jan 11 14:07:11 px Jan 11 14:07:13 mm Jan 11 14:07:20 prefixed with a value Jan 11 14:07:20 oh like absolute sizes Jan 11 14:07:22 20 Jan 11 14:07:25 yeah Jan 11 14:07:28 or Jan 11 14:07:40 try setting your image views to be match_parent Jan 11 14:08:00 >encourage app developers not to use absolute sizes Jan 11 14:08:03 >make it impossible to develop without them Jan 11 14:08:06 >google 2013 Jan 11 14:08:13 not at all Jan 11 14:08:17 * balls2thewall sighs Jan 11 14:08:25 balls2thewall: they discourage *pixel* sizes Jan 11 14:08:32 this has taken more time than it should've Jan 11 14:08:32 I know my Q may sound quite stupid, but I'm newbie here…my problem is how can I print/log TextView objects. Like 'mStatusView' or 'mStatusAllView' in this snippet http://bpaste.net/show/zSZtUFjP8isz0hay1K0M/ Jan 11 14:08:58 I know Log.i(), Log.d() etc Jan 11 14:09:21 I want to know, how can I make toString() for TextView object? Jan 11 14:09:34 getText().toString() ? Jan 11 14:09:53 StingRay_: not sure..let me try Jan 11 14:10:08 textView.getText().toString() Jan 11 14:10:29 but a string is just a char array neway Jan 11 14:12:45 StingRay_: I've tried Log.d("msg", textView.getText().toString() )…it doesn't work Jan 11 14:13:04 Log would accept a char array too Jan 11 14:13:29 sorry all your wanting is the value ? Jan 11 14:13:34 yes Jan 11 14:13:42 then yeah Jan 11 14:13:49 assume something wrong with your textView Jan 11 14:14:19 hmm…I just want to go inside textView and want to see the values Jan 11 14:14:39 to mock the case..I'm manually populating the textView object. Jan 11 14:15:23 and do you see text in your textview ? Jan 11 14:15:35 yep.. Jan 11 14:15:40 that you set ? Jan 11 14:15:53 yes.. Jan 11 14:16:15 and if you textView.getText() on that object it dont return it ? Jan 11 14:16:25 whats it return ? Jan 11 14:16:39 it returns…but some java-encoded object I guess.. Jan 11 14:16:58 it doesn't return me just the value Jan 11 14:16:58 cause your doing textView.toString() Jan 11 14:17:08 no Jan 11 14:17:09 that would return the object reference Jan 11 14:17:09 a string is a string Jan 11 14:17:29 okay..let me do clean and build Jan 11 14:18:11 yeah the healing build that will remove erros Jan 11 14:18:12 Hi guys, I'm a bit confused about BT connections and audio/music routing on Android. Jan 11 14:18:31 First of all my phone, with how many BT devices can be connected at the same time? Jan 11 14:18:56 question for google that Jan 11 14:19:05 but I would assume 128 Jan 11 14:19:07 :) Jan 11 14:19:38 Ok so if I connect to 2 BT device that can reproduce music, I don't understand how to say to which one send my audio stream Jan 11 14:19:44 think you'd run into bandwidth issues there though... Jan 11 14:20:19 i dont know...but would they not be addressed with name ref and or MAC ? Jan 11 14:20:22 Googling and reading Android documentation (and stackoverflow) I ended looking here: http://developer.android.com/reference/android/media/AudioManager.html Jan 11 14:20:33 does ABS support using preference fragments ? Jan 11 14:20:39 don't see a SherlockPreferenceFragment Jan 11 14:21:14 With AudioManager you can "route" music/audio to a bt device with setBluetoothScoOn() or setSpeakerphoneOn() to get to normal Jan 11 14:21:29 I don't get which of the many bt device will be used to route audio Jan 11 14:21:33 StingRay_: monsti= thank you guys, clean build made it works. :) Jan 11 14:26:34 StingRay_, maybe I don't understand how this works Jan 11 14:26:43 but I think that Bluetooth is like wireless Jan 11 14:26:52 You can connect only to 1 wireless device Jan 11 14:27:10 because otherwise I don't understand why you cannot choose which device to route to Jan 11 14:27:22 maybe your correct Jan 11 14:27:31 as i said, never looked into it Jan 11 14:27:36 but... Jan 11 14:27:58 I assumed that you can have many devices cause of the different types of accessories etc Jan 11 14:28:38 and I think while talking on a BT headset i can send a file over BT too Jan 11 14:29:32 This is my conclusion because all the methods I'm looking at don't have a device as parameter or something else Jan 11 14:29:54 anyway wtf cares if it's 128 or 142? Jan 11 14:30:08 what's the question behind your question? Jan 11 14:30:47 do you want to user your phone to replace the speakers in a cinema with bluetooth? Jan 11 14:31:26 sup dudes Jan 11 14:33:09 Can I run a 2.3 targeted app ina 4.1 emulator? Jan 11 14:33:18 memoryleak: yes Jan 11 14:34:50 why does increasing the weight decrease the views size :| Jan 11 14:35:44 is there any callback when the second instance of the same widget is placed on a homescreen? Jan 11 14:35:53 monsti, I just want to programmatically connect to a BT device and route audio to that one Jan 11 14:36:14 i swear this stuff is about as straightforward as gui's on linux distors... wait Jan 11 14:36:19 I think it's ridiculous to send broadcast only for the first widget Jan 11 14:39:03 StingRay_ i increased a weight and the view got smallers, dafuq is happening Jan 11 14:39:08 Hi guys, i'm trying to do "cd /system/app" in a shell script, but I keep getting ": not foundsh[2]: - No such file or directorym/app/" Jan 11 14:39:12 brace yo' rightful selves, it's feesh Jan 11 14:39:20 stiggpwnz: what are you trign to do? Jan 11 14:39:57 also, i'm trying to wget a file, and i keep getting "400, bad request" Jan 11 14:40:25 balls2thewall, make sure that none of the views have wrap_content|match_parent Jan 11 14:40:30 they should be set to 0dp Jan 11 14:41:29 sweet jesus feesh, it worked Jan 11 14:41:40 i spend 2 days on this was the answer... :| Jan 11 14:41:52 missed a word there >_< Jan 11 14:42:06 mikedg: the user places widget on a homescreen, then AppWodgetProvider's onEnable gets called, then I initialize the widget, set onclick listeners and shit Jan 11 14:42:26 mikedg: then user places the second widget of the same kind on a homescreen Jan 11 14:42:54 mikedg: nothing gets called, and the widget stays there uninitialized and useless Jan 11 14:44:23 well that doesnt make sense does it? Jan 11 14:45:22 balls2thewall, you're welcome pal Jan 11 14:45:26 *hugs balls2thewall* Jan 11 14:45:30 <3 Jan 11 14:45:40 we've all been there, balls to the wall, balls2thewall Jan 11 14:47:54 mikedg: what do you mean doesnt make sense? the documentation says that onEnabled gets called only for the first instance of the widget Jan 11 14:48:15 mikedg: so i'm looking for a callback for the second and third and etc Jan 11 14:48:33 maybe someone knows Jan 11 14:56:23 let me do some research, have you followe any specific tutorials or guides? Jan 11 14:57:36 stiggpwnz: you can use a static variable and do instance counting? Jan 11 14:57:51 that's very keep it simple and very very stupid Jan 11 14:58:39 are you sure you are not wanting onAppWidgetOptionsChanged? Jan 11 14:59:09 monsti: I can't, because I never know when the second widget gets on screen Jan 11 14:59:35 well a static hashtable with a weakreference to a view Jan 11 14:59:58 mikedg: no, that thing gets called when widget is resized Jan 11 15:00:13 monsti: I don't really get your idea Jan 11 15:00:59 what about onUpdate Jan 11 15:01:15 yes, use onUpdate, thats what you are supposed to be using Jan 11 15:01:34 if you have not declared a configuration activity Jan 11 15:01:40 have you declare a configuration activity? Jan 11 15:01:59 mikedg: no, that's a good idea, gonna try that, thanks Jan 11 15:02:07 "This method is also called when the user adds the App Widget, so it should perform the essential setup, such as define event handlers for Views and start a temporary Service, if necessary" Jan 11 15:02:22 that's for onUpdate from the App Widgets API Guide on d.android.com Jan 11 15:02:27 http://developer.android.com/guide/topics/appwidgets/index.html#Manifest Jan 11 15:02:35 hi Jan 11 15:03:56 my broadcast receiver does not get called for a button click pendingIntent, can someone tell me why? http://nopaste.info/495f685884.html Jan 11 15:03:56 mikedg: thanks mate : ) that did the thing Jan 11 15:07:35 Hello! Does anyone know about this Caused by: android.content.res.Resources$NotFoundException: Resource ID? I'm seeing the code line and it's something like this setContentView(R.layout.main); Jan 11 15:11:16 at this moment I have two ipads and one ipod touch on the table :) Jan 11 15:12:05 its a pleasure to read on new ipads/ipods display Jan 11 15:12:51 i read on the nexus 7 Jan 11 15:12:59 i wish the screen had a lower brightness setting Jan 11 15:20:34 anyone knows how to add a working scrollbar to a Toast? Jan 11 15:26:09 You can't Jan 11 15:26:54 Toasts aren't clickable/draggable/all that Jan 11 15:37:55 yeah, make a dialog Jan 11 15:37:58 not a toast Jan 11 15:41:25 Hello! Does anyone know about this Caused by: android.content.res.Resources$NotFoundException: Resource ID? I'm seeing the code line and it's something like this setContentView(R.layout.main); Jan 11 15:42:07 Where is main.xml? And did you clean project first? Jan 11 15:44:27 Its in the onCreateView, and yes I cleaned up it. The thing is that this crash is happening a lot in the GooglePlay Jan 11 15:45:53 But I don't have a clue, what can be. I'm testing in a Nexus 7, an Asus transformer and Samsung Galaxy Jan 11 15:49:03 anyone? Jan 11 15:49:43 does res/layout/main.xml exist? Jan 11 15:54:13 yes, that's right Jan 11 16:10:42 Hey guys, anyone develop on his Android Tablet ? Jan 11 16:13:10 anyone know how to go from an AAsset* to something I in unsigned bytes? Jan 11 16:13:18 (to pass into glTexImage2D) Jan 11 16:16:53 nm Jan 11 16:16:59 it worked itself out Jan 11 16:19:38 when running adb shell, can i specify which device should be targeted? Jan 11 16:20:09 This is for a Jenkins CI server that should run our tests on multiple devices Jan 11 16:20:21 yeah Jan 11 16:20:30 adb help Jan 11 16:20:55 that only specifies adb shell and adb shell Above the commands are the options (at least for me) Jan 11 16:21:33 Do I have to connect to a device first, and then call adb shelll? Jan 11 16:22:00 it should tell you about -s Jan 11 16:22:14 No, just adb -s shell Jan 11 16:22:48 Wonder how that works if you want to use tcp, though. Jan 11 16:23:04 But maybe that's not what you want. Jan 11 16:23:15 Ah, yes it seems right Jan 11 16:23:35 Should be able to build a run script off of that Jan 11 16:34:33 if I include an library project to an android project do I need to add permissions on the library project to the main too? Jan 11 16:35:49 hello all Jan 11 16:36:08 I need to ask some questions if you dont mind Jan 11 16:36:58 how to open bluetooth device Jan 11 16:37:15 and search for devices Jan 11 16:37:21 when app is opened Jan 11 16:37:31 ? Jan 11 16:38:37 xyz87: http://code.google.com/p/backport-android-bluetooth/ Jan 11 16:39:51 Hey all... Any good reading on proper database usage? When do I create a database open helper? When do I open a read-only database, when do I open a read-write database, do I share the helper? Do I share the database instance? Etc. Jan 11 16:48:08 funkbox: check out Lux, it essentially gives you that Jan 11 16:48:42 any one has developed a bluetooth app before Jan 11 16:48:43 ?? Jan 11 16:50:34 mikedg: can it go lower than the device minimum as settable in the brightness setting? Jan 11 16:51:33 xyz87: we're not going to write your app for you. Start reading the documentation on the bluetooth APIs for how to search for devices Jan 11 16:53:12 I've just grabbed the ADK for Mac and installed it, and I'm trying to open up and build Shuffle to fix some bugs (android-shuffle on googlecode). I can't seem to figure out how to get Eclipse to show me the UI to build and profile this app. Any guidance here? Jan 11 16:54:18 funkbox: yes, it uses some funkiness Jan 11 16:54:21 it's magic Jan 11 16:54:39 mikedg: kewl, will check it out Jan 11 16:54:56 it's annoying that the blacks are still backlit Jan 11 16:58:52 Can someone give me a gentle shove in the right direction here? Jan 11 16:59:15 evanc im not asking for writing the code Jan 11 16:59:15 i want to know where to put the bluetoothadapter.enable Jan 11 16:59:15 bluetoothadapter.enable() Jan 11 16:59:15 then ill go for every thing Jan 11 16:59:22 mikedg when you coming to sf again Jan 11 17:00:44 io maybe Jan 11 17:01:03 unless someone out there wants to give me an interview and pay for me to come out Jan 11 17:01:12 send me your resume? Jan 11 17:01:26 im experiencing deja vu Jan 11 17:01:26 ive already been rejected from google Jan 11 17:01:29 wat Jan 11 17:01:32 yes Jan 11 17:01:43 becuase all you ever did all day was troll irc Jan 11 17:01:44 i have bombed a google interview within recent memory Jan 11 17:01:54 was it within the past 12 months? Jan 11 17:02:19 probably, i'd have to look, it all blurs together Jan 11 17:02:29 well if not, send me your resume :P Jan 11 17:02:41 anyway, breakfast time Jan 11 17:02:48 it's lunch time here Jan 11 17:03:08 * setuid had a Google interview recently for an SRE role, and the interviewer was a complete asshole, tried to use me as a vehicle to prove how smart "he" was; was very directly insulting to my skills and previous history. Jan 11 17:03:25 I would -never- work for Google, if that's any indicator of the type of environment I'd be exposed to every day Jan 11 17:03:35 setuid: ? Jan 11 17:03:46 oh didnt see your /me Jan 11 17:04:01 my interviewer wasnt bad Jan 11 17:04:05 im just stupid Jan 11 17:04:16 are you sure you aren't just stupid too? sometimes it's hard to recognize Jan 11 17:04:25 ctate, just to note - I haven't been able to replicate the issue (wifi setting retention after master reset) again Jan 11 17:04:45 "Explain to me how you would design a filesystem to do 'thing'…", "Sure, ok, so first I would do 'x', then 'y' and then 'z'.", and he came back with comments like "That's stupid. That's the most ridiculous thing I've ever heard. Why would you ever do something so stupid?" Jan 11 17:04:59 mikedg, hahahaa, no… I'm not in that category Jan 11 17:05:17 oh ell that's pretty terrible Jan 11 17:05:25 sup mike Jan 11 17:05:33 even the stupidest idea deserves a "why?" before getting berated Jan 11 17:05:37 In my 30 years of experience in jobs and interviews, this one was hands-down the worst and most abusive I've ever had. Jan 11 17:06:03 setuid, east or west coast interview? Jan 11 17:06:13 He kept asking me leading questions that would get him to prove why he knew the topic better than I did (specific to Google implementations, which naturally he would know better) Jan 11 17:06:15 hey languish Jan 11 17:06:17 East coast Jan 11 17:06:21 NYC metro area Jan 11 17:06:21 ahh Jan 11 17:06:44 You're not the first to metion something along those lines Jan 11 17:06:51 *mention Jan 11 17:07:09 I've read up on it, and I know the technique to be 'challenging' in interviews, and I encourage that, but being outright insulting, unacceptable. Jan 11 17:07:22 I wish whoever it is over there would stop trying to prove the false NYC stereotype Jan 11 17:07:54 Funny thing is, that interviewer wouldn't last a week in the last 3 jobs i've had, not with that attitude or holier-than-thou mindset. Jan 11 17:08:27 setuid, it could also just be a test to see how you handle assholes in the workplace Jan 11 17:08:31 Ok, back to the main issue at hand… what is the preferred way to write/build/deploy an Android app? What platform works best for development? I have Linux (preferred), Windows and Mac at my disposal. Jan 11 17:08:47 languish, Right, and I expected that, but not for the full 60 minute interview. Jan 11 17:09:05 can't ever say google doesn't go all the way Jan 11 17:09:07 ;) Jan 11 17:09:16 In fact, at the very end, he left no time for my questions, and ended the interview with "Ok looks like someone needs the room now, so I don't have time for your questions." and hung up on me. Jan 11 17:09:35 doh Jan 11 17:09:50 I considered running that up the chain to report him, but decided not to, it's not worth it. Jan 11 17:10:01 was his name Vic? Jan 11 17:10:42 *chuckle& Jan 11 17:10:44 I'd have to go back and look at my notes, but that doesn't sound familiar Jan 11 17:10:55 He sounded "young", compared to my 41 years of age Jan 11 17:11:09 wet-behind-the-ears young, no real business acumen or experience Jan 11 17:11:19 That's a large part of the industry these days Jan 11 17:11:40 And it's not going to get any better Jan 11 17:12:59 anyway, Ok, back to the main issue at hand… what is the preferred way to write/build/deploy an Android app? What platform works best for development? I have Linux (preferred), Windows and Mac at my disposal. Jan 11 17:13:47 I'm playing with AVD now, to see if I can build and launch the app in there, unfamiliar with these tools at this point Jan 11 17:14:46 languish: doesnt google release a specialized eclipse version these days to develop android? Jan 11 17:15:06 i tried maven and the commandline... its workable Jan 11 17:15:09 but... not easy Jan 11 17:16:19 the problem with eclipse is that everything ends up in one workspace, but you can link folders that are outside the workspace into it Jan 11 17:16:29 They do. They've got a bundle of sdk and eclipse, that's pretty nice. Jan 11 17:16:33 http://developer.android.com/sdk/index.html Jan 11 17:17:04 unfortunately he sounds like someone who wasnt experienced in interviewing Jan 11 17:17:04 Or use intellij Jan 11 17:17:20 supposedly googlers are supposed to get like a 2 week course in mountainview on doing interviews Jan 11 17:20:19 I am trying to upload an AOSP patch (been following the doc steps), but get a "error.GitError: remote aosp has no review url" when executing 'repo upload frameworks/base'. Could anyone advice? Jan 11 17:21:02 I googled, but found nothing useful.. Jan 11 17:21:18 hey, I'm getting this: "android failed to open libwvm.so" error on logcat, have no idea what it means... This folk here http://grokbase.com/t/gg/android-developers/12b8rnn6ym/failed-to-open-libwvm-so-error-message-from-android-mediacodec-configure-function-while-trying-to-encode-audio-from-wav-to-amr-format is having the same problem, but now answers... any idea? Jan 11 17:22:15 there should be an eclipse plugin to convert hardcoded string into string.xml Jan 11 17:22:49 Pretty sure ADT can do that Jan 11 17:23:00 that would be awesome Jan 11 17:23:00 anyone use wordpress? i just installed it a few days ago and was planning on blogging Jan 11 17:24:23 are you sure you aren't just stupid too? sometimes it's hard to recognize Jan 11 17:24:24 i lol'd Jan 11 17:26:00 * setuid has 13+ years of blog entries in Wordpress, back when we called them "web diaries" on advogado :) What questions did you have? Jan 11 17:26:14 has anyone used repo/gerrit to submit a patch to aosp? If so, could you please look into your submitted project's .git/conifg and see what value you have for "remote=VALUE" for the submitted branch? THANK YOU! Jan 11 17:27:00 voso, it should point to one of the remotes listed in the same file Jan 11 17:27:24 mine just sais: remote=aosp Jan 11 17:27:29 looks strange. Jan 11 17:27:48 do you not have a [remote "aosp"] section there? Jan 11 17:27:51 in the same file i mean Jan 11 17:28:00 but there is also a 'merge=refs/tags/android-4.1.2_r1' line below.. Jan 11 17:28:14 yes, i do. Jan 11 17:28:19 ok... Jan 11 17:28:21 (have that line) Jan 11 17:28:22 so what's your issue exactly Jan 11 17:29:09 I created a patch on a new branch, committed, then ran 'repo upload frameworks/base'. then got the error: error.GitError: remote aosp has no review url Jan 11 17:29:38 cant upload my patch for review.. ;( Jan 11 17:29:49 cd to the frameworks/base directory Jan 11 17:29:52 and try "repo upload ." Jan 11 17:30:05 (yes i know it should do the same thing) Jan 11 17:30:28 ;) same thing - it does.. Jan 11 17:30:34 this is what it asks me: Jan 11 17:30:55 Upload project frameworks/base/ to remote branch refs/tags/android-4.1.2_r1: branch UEVENT_FIX ( 1 commit, Fri Jan 11 18:56:35 2013 +0100): a4d00bea avoid unnecessary memory allocations to None (y/N)? y Jan 11 17:31:11 oh Jan 11 17:31:15 you cant upload to a tag Jan 11 17:31:19 only a branch Jan 11 17:31:38 I think I am trying to upload a branch. Jan 11 17:31:39 you'll need to cherry-pick your change on to a valid branch Jan 11 17:31:41 like "master" Jan 11 17:31:50 no, you're trying to submit it against refs/TAGS/android... Jan 11 17:32:46 hmm.. all I did was follow the darn howto on s.android.com.. Jan 11 17:32:56 it said: For each change you intend to make, start a new branch within the relevant git repository Jan 11 17:33:00 so i did. Jan 11 17:33:40 repo start will make a new branch based off your currently checked out branch/tag Jan 11 17:33:43 adn that's what you're working against Jan 11 17:33:58 if you just want a quick and dirty fix for this: Jan 11 17:34:03 git checkout master Jan 11 17:34:08 repo start NEWBRANCH . Jan 11 17:34:19 git cherry-pick a4d00bea Jan 11 17:34:21 that refs/tags.. target is the same I have on the 'merge=' line in git/config for my new branch. I didnt put it there.. ;) Jan 11 17:34:22 repo upload . Jan 11 17:34:27 yes you did Jan 11 17:34:39 repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 Jan 11 17:34:42 whatever you specified there Jan 11 17:35:30 ill try the whole thing again as you suggested with cherrypicking the commit on a yet-another-new branch.. thanks for helping!! Jan 11 17:36:38 er... do you know where I can find more info about this: http://developer.android.com/reference/android/media/MediaCodec.html besides here: http://dpsm.wordpress.com/2012/07/28/android-mediacodec-decoded/ Jan 11 17:37:05 there is no good documentation for someone with my knowledge on the topic :-/ Jan 11 17:40:57 is there a way under 4.2 to tell if the current user is a secondary user on the device? Jan 11 17:41:13 dunno Jan 11 17:41:18 search d.andriod.com? :P Jan 11 17:41:22 except spell android right Jan 11 17:47:12 canadiancow: I just repeated the whole process. same result. going nuts. Jan 11 17:47:20 is there a keyboard shortcut I can use to get to the search box in the web-based android documentation? it seems to obviously useful. Jan 11 17:47:35 canadiancow: if it were that easy I wouldn't have asked in here ;) Jan 11 17:47:40 dont know why that merge line in git.config has a tag in it.. Jan 11 17:48:47 could you copy-paste a submitted branch definition from your .git/config? Jan 11 17:50:22 merge = master Jan 11 17:50:35 you need to stop initializing to a tag :P Jan 11 17:50:46 you want to submit against master anyway Jan 11 17:50:56 the chance of your change being accepted anywhere else is extremely slim Jan 11 17:51:58 ok. the problem is probably that I initially checked out with the tag for the Nexus S release and now am unable to force a submission on master.. Jan 11 17:52:08 you can force a submission Jan 11 17:52:10 i even told you how Jan 11 17:52:15 I'll just init with master Jan 11 17:52:36 cd frameworks/base; git checkout master; repo start mynewbranch .; git cherry-pick a4d00bea; repo upload . Jan 11 17:56:59 you would hardly believe me, but I did exactly so the last time.. ;) Jan 11 17:57:57 try repo init again Jan 11 17:58:02 i now restarted with repo init, to change the 4.2.1 tag in main repo xml to master. hope this will do it Jan 11 17:58:12 yes. exactly as you say. Jan 11 17:58:40 aaaah got merge conflict now.. Jan 11 17:58:53 anyway, that will surely fix it.. thanks again for your effort and help!! Jan 11 18:00:16 wow i just got a nexus7 Jan 11 18:00:49 it feels naked compared to my S3 Jan 11 18:08:26 Does anyone know how to deal with non-trusted certificates for https in android versions 2.x? I've tried using a custom httpclient with a bouncycastle-generated bks file (where i imported all pem files that were in the chain), but that only seems to fix the problem on 4.0+, on 2.x i still get javax.net.SSLException: Not trusted server certificate Jan 11 18:12:39 are service automatically destroyed when the app is closed? Jan 11 18:12:50 d3xter: no, that's the point of a service Jan 11 18:13:07 evanc: ok, thanks Jan 11 18:14:21 evanc: Is this related to START_STICKY returned from onStartCommand? Jan 11 18:20:36 I have webview in which a rtmp stream is played Jan 11 18:20:52 after sometime the video freezes Jan 11 18:20:58 what could be reasons Jan 11 18:21:08 canadiancow: no need for the gerrit upload anymore: its been fixed in master. ;) Jan 11 18:21:21 I have used setKeepScreenOn(true) Jan 11 18:21:21 lol Jan 11 18:21:33 dammit, I worked two days on that commit! ;) Jan 11 18:21:51 always check master first Jan 11 18:22:02 yeah, I learned the hard way.. Jan 11 18:22:05 but also be prepared for something to have been fixed internally but not in aosp yet Jan 11 18:22:22 hey Jan 11 18:22:49 I checked out the 4.1.2 tag, so that I have identical code as my stock Nexus S, so that I could _see what was going on.. Jan 11 18:23:09 too bad I started fixing it right away.. Jan 11 18:25:02 Can you help me with an error in an Android Application? Jan 11 18:25:26 It says, that I need an android.permisson.WAKE_LOCK for starting the Intent. Jan 11 18:25:54 But as far as I know, I already added the permission in the manifest Jan 11 18:26:01 isn't that enough? Jan 11 18:26:09 Apparently not Jan 11 18:27:23 what should I do to handle this? Jan 11 18:28:16 Provide some information that will actually let us know what it is you're doing (wrong) Jan 11 18:29:06 I have an application which needs to have a wakelock Jan 11 18:29:06 CheaterCodes: Code of your androidmanifest plz Jan 11 18:29:10 CheaterCodes: Code of your androidmanifest plz Jan 11 18:29:23 without wakelock it went pretty well Jan 11 18:29:37 *worked Jan 11 18:29:42 I could take a wild guess that you just added the android:permission attribute to your tag, but I wouldn't know Jan 11 18:31:58 Does anyone know a surefire way of working with non-trusted ssl certificates in android versions 2.x? Jan 11 18:32:04 http://pastebin.com/THg3apEW Jan 11 18:32:17 When using StrictMode, I'd like to create a simple test that violates StrictMode and see that it gets the correct penalty. However the API only wants to log to DropBoxManager, and that seems to be godawful to use. Is there a way to mock this stuff? Jan 11 18:33:12 It's , not Jan 11 18:36:43 [2013-01-11 19:36:27 - SENsiOR-droid] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.bulme.sensior_droid/.MainActivity } from null (pid=3641, uid=2000) requires android.permission.WAKE_LOCK Jan 11 18:36:49 didn't help Jan 11 18:37:20 Remove android:permission from your application tag.. Jan 11 18:39:53 CheaterCodes: did you just guess-and-check when creating your manifest? Jan 11 18:40:16 i did it with the editor Jan 11 18:40:25 not in xml Jan 11 18:40:34 but thank you Jan 11 18:40:38 that did it Jan 11 18:41:07 and i selected permission instead of permission Jan 11 18:46:12 What can I do for disabling the home button for an activity? Jan 11 18:47:19 You can't Jan 11 18:47:26 You can't, and you don't want to Jan 11 18:47:44 to clarify sonOfRa: you can't, and your users don't want you to Jan 11 18:48:31 Looks like I'm going to have to try to build this on Windows instead of Mac Jan 11 18:48:36 because my app should't be able to be closed by mistake Jan 11 18:48:43 My MBA just doesn't have enough horsepower to run Eclipse, it's a HUGE pig dog of an app Jan 11 18:48:49 shouldn't be allowed Jan 11 18:48:50 CheaterCodes: that's unfortunate Jan 11 18:49:36 I agree, don't override hardware buttons or default activity Jan 11 18:49:48 You can hook into them with messages, but don't override their behavior Jan 11 18:51:52 so it's possible to show a warning? Jan 11 18:52:02 No Jan 11 18:52:33 which events get called when home-button is pressed? Jan 11 18:52:52 onPause Jan 11 18:53:00 But a lot of things can cause that to be called Jan 11 18:53:32 The screen turning off, starting a new activity, changing orientation, ... Jan 11 18:53:45 changing orientation? Jan 11 18:53:59 CheaterCodes: why do you need this funcitonality Jan 11 18:54:33 if your app shouldnt be closeable by accident you should look into a custom build of the os Jan 11 18:55:06 my macbook air runs eclipse great Jan 11 18:55:15 Sounds like the app should be a widget Jan 11 18:55:17 or a service Jan 11 18:55:31 it's an alert Jan 11 18:55:43 mikedg, Mine is an Air, so not that much RAM or CPU left over to run it Jan 11 18:55:43 an very security alert Jan 11 18:55:53 -very Jan 11 18:55:57 setuid: ?? Jan 11 18:56:27 it should call emergency in case of one Jan 11 18:56:50 but at the moment it's not that important Jan 11 18:57:13 mikedg, My Air is an 11", so only 1.6Ghz, 4GB RAM, and loading up Eclipse with no project eats 50% of that Jan 11 18:57:40 intellij \o/ Jan 11 18:58:00 so is mine Jan 11 18:58:10 eclipse runs great, I dont know what you are doing Jan 11 18:58:34 eclipse runs better on my air than almost every other machine i have except my imac with 16 gigs of ram Jan 11 18:58:39 CPU load with Eclipse running is about 3.50, and fans are pushing 5k rpm Jan 11 18:59:00 you have to be doing somehting wrong, i dont even notice my fans on Jan 11 18:59:52 is there any way to get errors from execSQL()?? Jan 11 19:00:29 how do you know there is an error? Jan 11 19:01:05 i'm creating 2 databases, but when i try to do something on the second one, i always get "the table ... does not exist" Jan 11 19:01:36 s/databases/tables Jan 11 19:02:28 mikedg: heres the query to create my two tables: http://pastebin.com/hGz0abLE Jan 11 19:05:53 d3xter, You forgot to specify the table type and encoding Jan 11 19:05:58 and probably flush Jan 11 19:07:16 setuid: well, i've tried creating the 2 tables one after each other with two queries, and it worked ^^ oh yeah, i forgot the encoding Jan 11 19:07:25 Hey guys, does anyone know how to disable the emulator's fake camera thing? I need there to be absolutely no camera device visible, so that Camera.open() fails. Jan 11 19:10:58 whats the connector on the lift side on the nexus 7? Jan 11 19:11:16 left Jan 11 19:13:46 monsti POGO connector Jan 11 19:13:51 for docks and such Jan 11 19:14:14 ^ that Jan 11 19:17:10 hi guys i have been working on an animation in my app which has eaten up my mind.please help : http://stackoverflow.com/questions/14277598/animations-in-with-listview Jan 11 19:18:11 how u doing mate Jan 11 19:20:19 is it save to use a 15dp margin for a lockscreen widget in order to not run it's action that gets invoked by touching anywhere on the widget when touching on the small edge that shows the next lockscreen widget from a adjacent page? Jan 11 19:20:23 if I start in some activity(main), launch another through an intent(secondary), and then close out, will the "main"s onStop method be called? Jan 11 19:22:29 scotter: I can test that out for you Jan 11 19:23:39 scotter: i save my stuff in onSaveInstanceState Jan 11 19:23:49 scotter: it appears onStop gets called as soon as onResume in the secondary finishes Jan 11 19:23:58 are there any docs on how to become an android adk mirror? Jan 11 19:24:01 scotter: so main would get onStop long before you exit out Jan 11 19:25:12 hmm, thank you. So here's my goal, I have a master detail flow with multiple activities, no matter which one I close out of, I want one method to run that will save all my data, would onSaveInstanceState be the best for this purpose? Jan 11 19:26:53 scotter: yes, but there's another method too. Look into subclassing Application and overriding its (I think) onExit method Jan 11 19:27:12 has anyone used SQLite IN() on android ? Jan 11 19:27:13 android developer site tells if there are 2 activities namely A and B when Activity A starts B the life cycle follows like 1) A's onPause 2) B's onCreate ,onStart ,oNResume 3)A's OnStop Jan 11 19:27:34 there's details online on how to do that, but the Application method will get called no matter which activity exits. The onSaveInstanceState way is easier though. Jan 11 19:28:09 can anyone help me too here : http://stackoverflow.com/questions/14277598/animations-in-with-listview Jan 11 19:29:32 xlinearx: it appears that Application doesn't have a method similar to onExit, is this the class you're thinking of? Jan 11 19:31:36 If I use onSaveInstanceState, i would implement that in each of my activity, correct? or rather implement in my first activity and then call that one from my others Jan 11 19:31:40 scotter: nevermind. Just read the docs. Application does have an onTerminate method, but it only gets called from the emulator. Because fuck. Jan 11 19:32:01 (I) just read the docs. Jan 11 19:33:23 ah, just found the relevant part, thanks a ton Jan 11 19:37:29 Android03: I unfortunately haven't done any animations, but there are some nice tutorials online. Look into LayoutTransition. It looks like it could help you achieve that sort of thing. Jan 11 19:39:41 scotter: The most elegant way is to create a BaseActivity that all of your activities inheret from. The BaseActivity inherits from Activity and overrides onSaveInstanceState to save your data. Jan 11 19:42:18 xlinearx : thanx but it does not seem simple layout transition .it just first view of listview animates and then list also translate and adjust itself when animation stops Jan 11 19:44:24 Android03: I figure there must be some way of chaining together simple animations to achieve that, or, if all else fails, there's some sort of render-to-texture thing you can exploit to do entirely customizable stuff. Again though, not sure since I don't do them. Jan 11 19:45:17 Hey all... this may be a dumb question, but how do I know when it's necessary to use @Override with an implemented interface? Jan 11 19:45:36 xlinearx: thanx buddy ...i ll try to figure out something Jan 11 19:45:58 I'm going through a book on Android Game Development, and I noticed sometimes methods will have it, other times it won't. Jan 11 19:46:12 (ie, onCreate, onResume, onPause, etc) Jan 11 19:46:27 Da_Rhyno: use @Override whenever you are overriding a method defined in a parent class. It's a Java-specific thing, not an Android-specific thing. Jan 11 19:46:46 Da_Rhyno: It's also not, strictly speaking, a requirement. Jan 11 19:46:54 Oh, so it's optional. Jan 11 19:47:06 hence why I see it at times with onCreate Jan 11 19:47:10 and at others, I don't. Jan 11 19:47:37 Da_Rhyno: I think so. Apps certainly work without the @Override tags. But the tags definitely help when looking at code, trying to understand who calls that mystery method. Jan 11 19:48:23 Da_Rhyno: Typically, an @Override method doesn't get called in your code, but by the parent class you're overriding. So if you don't put @Override, you'll just confuse yourself later wondering where in the world onCreate gets called, etc. Jan 11 19:48:45 Ah, I see. Jan 11 19:49:03 So it's mainly for helping the developer understand what's happening. Jan 11 19:49:07 Makes sense :) Jan 11 19:49:17 Thanks! Jan 11 19:49:36 Da_Rhyno: Yes. The only reason I'm hesitant to say that that's its ONLY purpose is that you can retrieve those tags at runtime. Jan 11 19:50:18 Da_Rhyno: So they actually get compiled into the app somewhere... they aren't comments. But the fact remains that they don't seem to do anything. Jan 11 19:50:46 I see. Jan 11 19:52:32 Da_Rhyno: It's also useful in ensuring that you're actually overriding something when you mean to. Jan 11 19:55:35 Da_Rhyno: Oh yeah, that's right. If you place an @Override but there's no matching method in the parent class to override, it'll be an error, as maslen says. Jan 11 19:55:58 That's a good point. Jan 11 19:56:14 You see, I'm pretty versed with programming in C/C++/FreeBASIC Jan 11 19:56:19 But I'm still new to Java. Jan 11 19:56:32 Though it's not too difficult to figure most things out. Jan 11 19:56:54 Small things like that can make or break something, though, I've come to find out. :) Jan 11 19:56:56 Ah. Well in that case. There is no help. You must face the Java alone. Jan 11 19:57:36 So no more comments from you all on questions like that, I guess? Jan 11 19:57:44 (j/k). But yeah, Java's no sweat. Jan 11 19:58:08 after C++ and its madness, should be easy Jan 11 19:58:15 Lol, yeah. Jan 11 19:58:27 And it seems like FreeBASIC is implementing an OOP model similar to Java's Jan 11 19:58:32 So it's not too far off. Jan 11 19:59:24 Yeah, except Java gives you much more room to break things. Like Reflection. With reflection you can break the world. Jan 11 19:59:28 Though I guess I could theoretically program in a "procedural" manner by using static methods and properties in one big main class. Jan 11 19:59:32 Reflection? Jan 11 19:59:50 The ability to refer to classes at runtime. Classes, not objects. Jan 11 20:00:02 Ah, I see. Jan 11 20:00:06 Pretty much the same thing I just mentioned. Jan 11 20:00:31 so you could do str1.getClass().newInstance() and create a new string, without knowing that str1 is a string. Could be any object. Jan 11 20:01:14 well even "stupid".getClas() ... Jan 11 20:01:19 C#'s reflection is even more powerful though: You can write and compile a class at runtime, then start using it on the spot. Jan 11 20:01:45 wl Jan 11 20:02:17 oops Jan 11 20:06:40 xlinearx, there's libraries to do that in java too. Jan 11 20:06:54 might not work on android there Jan 11 20:07:14 as it does generate jvm byte code... unless someone has made a dalvik equiv. Jan 11 20:07:55 yeah, but Java has limits. I think you can't do stuff like remove existing methods from classes or add new ones. Jan 11 20:08:01 can i somehow manipulate the drawing order of form widgets? Jan 11 20:08:27 or just put one element in front of another? Jan 11 20:10:36 CheaterCodes: You mean drawing order of things like Buttons, EditText, LinearLayout, etc.? Jan 11 20:10:42 yes Jan 11 20:10:51 the default order is the order they're added (latest on top), you can use ViewGroup.addView(View, int) to add a view at a specific index. there is also ViewGroup.getChildDrawingOrder and ViewGroup.setChildrenDrawingOrderEnabled. However this is inconsistent, prior to 4.2 touch events didn't respect the children drawing order, but as of 4.2 they do Jan 11 20:11:53 anybody here use Mono for Android? Jan 11 20:12:32 CheaterCodes: In FrameLayout and RelativeLayout, you can specify rendering order by the order in which the views appear in the XML. The last views in the list appear on top (if they overlap). You can't do anything about LinearLayouts I'm afraid. Jan 11 20:13:45 thank you :) Jan 11 20:14:02 hmm, i have a question, after any click on any button, my activity closes, and i dont have code to finish .. i have startActivity, and on return or onctivityresult my activity finishes, it finishes onclick not on result.. i dont know why Jan 11 20:14:03 this seem to be the easiest way Jan 11 20:15:30 i had in manifest noHistory .. does that have to do with it? Jan 11 20:16:13 does findViewById get any view from any layout or just the current layout? Jan 11 20:17:16 mbarisa: Yes, noHistory means as soon as you startActivity out of the activity, it calls finish on itself. There's nowhere to returnResult to. Jan 11 20:18:26 xlinearx: yeah i see. thanks :/ that sucks Jan 11 20:19:48 mbarisa: What are you trying to do with the noHistory thing? Jan 11 20:25:45 xlinearx: i felt like that resolved some error with outofmemory every time i call new bitmap that gets called from server.. and after 3-4 times i do that get outofmemory Jan 11 20:25:51 when i use noHistory it goes well :D Jan 11 20:26:00 i guess i dont have right approach Jan 11 20:29:24 ctate: evanc: fyi; ADT - https://dl-ssl.google.com/android/eclipse/ points to ADT 21.0.0 even though 21.0.1 has been out for a while Jan 11 20:31:55 elegantthemes.com Jan 11 20:32:04 stupid webbrowser Jan 11 20:34:24 mbarisa: That is most certainly not how you fix an out of memory issue =P And if it works, that would make me even more curious about what's going on behind the scenes. Jan 11 20:38:17 g00s: what page includes that link? Jan 11 20:39:03 g00s: or is that the url that the 'android' tool references internally? Jan 11 20:39:57 ctate: thats the url mentioned here http://developer.android.com/sdk/installing/installing-adt.html Jan 11 20:40:04 (step #3) Jan 11 20:40:08 th Jan 11 20:40:10 err, thx Jan 11 20:40:45 With IAB api 3, when i refund a purchase, does the getPurchases() call within the app immediately reflect this? Jan 11 20:43:34 This is overlooked in the documentation Jan 11 20:44:52 It says refunds can notify the app so specific actions can take place, but does it suffice to just check getPurchases() on startup Jan 11 20:45:55 Or does the local purchase cache keep it as "purchased" for an indefinite amount of time Jan 11 20:49:29 hello guys Jan 11 20:49:37 i am trying to use holoeverywhere Jan 11 20:49:41 i get errors Project 'library-holo' is missing required source folder: 'test' Jan 11 20:50:30 Parhs: mkdir test Jan 11 20:54:19 hello. Beginner. I have a few lines of Java code I want to run in shell, via adb; once I have put them in a file, how do i run the file ? Jan 11 20:54:59 you generally can't, actually Jan 11 20:55:30 it's possible that if you package up the standalone code as a jar you can invoke dalvik directly from the adb command line, though Jan 11 20:55:43 in general there's no way to deploy new *executables* to an android device Jan 11 20:56:26 ctate: what do you mean ? Jan 11 20:56:58 it worked thanks Jan 11 20:57:04 there's basically no place on the /data disk that is writeable by the shell Jan 11 20:57:09 so there's no place to put a new binary Jan 11 20:57:18 and the external storage volume is noexecute Jan 11 20:58:19 ctate: forget this kind of issues; just tell me about the java part Jan 11 20:59:34 take a look at the /system/bin/am script Jan 11 20:59:46 it launches a java program from the shell Jan 11 20:59:56 which lives in a jar file Jan 11 21:00:16 so if you follow that pattern, you can probably launch your own program stored in a jar file that you pushed to external storage via adb. Jan 11 21:00:23 or at least that's worth your investigating :) Jan 11 21:01:41 ctate: if you knew what i can do with my phone ... Jan 11 21:02:13 doublehp: i'm talkign about what's possible on retail devices. if you have a root-capable shell then obviously things are wide open. Jan 11 21:02:56 my phone has more features than my desktop ... Jan 11 21:03:26 shutup, your desktop is a bannana Jan 11 21:04:39 doublehp's desk top: http://www.thejoinery.com/sites/default/files/products/810_ShakerWrittingDesk_Cherry_0.jpg Jan 11 21:04:57 clever Jan 11 21:05:01 ctate: am exports class /system/framework/am.jar which is a binary file; my lines are raw text ... java "source" Jan 11 21:05:23 doublehp: you need to compile them Jan 11 21:05:27 why dont you try javascript? Jan 11 21:05:29 how ? Jan 11 21:06:03 you have to compile java before you can run it. Jan 11 21:08:29 ctate: what about /data/local/tmp/ ? Jan 11 21:08:43 ah yeah, that's writeable by the shell innit Jan 11 21:08:51 not sure whether you can chmod +x stuff there Jan 11 21:08:56 possibly not Jan 11 21:09:18 ctate: /data/local is owned by shell:shell on my kindle fire Jan 11 21:09:28 right Jan 11 21:09:38 i'm pretty sure you can +x, but not setuid, for obvious reasons Jan 11 21:10:02 i think the rooting process i used, involved a copy of busybox in that path, to run the needed shell script Jan 11 21:10:07 is it possible to compile without javac ? Jan 11 21:10:07 correct Jan 11 21:10:24 clever: it is *not* owned by shell on my N7 Jan 11 21:10:47 though /data/local/tmp is Jan 11 21:10:52 yeah, its probly up to the vendor to decide that Jan 11 21:11:17 or i chown'd it Jan 11 21:13:35 i had also done some digging into the fake sd card, how it uses fuse Jan 11 21:14:36 my android only has java and javaws, is it possible to compile without javac ? Jan 11 21:14:37 sdcard_rw is the group needed to access /mnt/sdcard, and that (on my system) is a fuse file system, that emulates fat32 Jan 11 21:15:04 im out for the weekend ttyl Jan 11 21:15:20 clever: well, we've tightened things up, and the KF is running relatively out of date Android at this point Jan 11 21:15:34 iirc it's ICS, right? Jan 11 21:15:47 ctate: i was looking at putting something setuid on the 'sdcard' but found that was solid Jan 11 21:16:28 ctate: 4.something, how do i check from adb? Jan 11 21:17:21 try: adb shell getprop ro.build.id Jan 11 21:17:43 ctate: IML74K Jan 11 21:18:00 and ro.build.version.sdk Jan 11 21:18:11 [ro.build.version.release]: [4.0.3] Jan 11 21:18:12 [ro.build.version.sdk]: [15] Jan 11 21:18:18 IML74K is an ICS name Jan 11 21:18:23 yeah, 4.0.x is ICS Jan 11 21:18:47 the only way i got root, was thru a symlink exploit, inf loop trying to symlink a file to /data/local.prop Jan 11 21:18:48 so, two major releases old :) Jan 11 21:18:54 and then start a backup restore of said file Jan 11 21:19:09 clever: yup, i'm familiar with that. it's been fixed. ;) Jan 11 21:19:14 backup said that the dir had to be world writeable, letting the shell user throw a symlink in Jan 11 21:19:49 are "//" comments accepted in .java ? Jan 11 21:20:23 ctate: i found that it was very hard to do any dev work without root, i couldnt double-check shared prefs under /data Jan 11 21:20:26 doublehp: yes Jan 11 21:20:48 clever: if your app is marked debuggable you should be able to pull its files via ddms Jan 11 21:21:00 without root Jan 11 21:21:04 ah, didnt know that Jan 11 21:21:18 still, its simpler to just 'adb shell' and run cat and ls on the files Jan 11 21:23:03 okay, yeah, the symlink/restore hole is definitely closed as of JB Jan 11 21:23:15 so I'm trying to import my project into eclipse Jan 11 21:23:34 it's detecting the title of the project as MainActivity Jan 11 21:24:31 err, as of 4.2. checking 4.1.1 now. mm, not fixed there. Jan 11 21:24:41 there you have it. Jan 11 21:24:46 ctate: do you know about how to replace the lock screen UI? Jan 11 21:24:51 clever: i do not. Jan 11 21:25:03 ctate: or what code in AOSP handles that? Jan 11 21:25:54 not my bailiwick, sorry Jan 11 21:26:33 interesting article from Mike Belshe (SPDY) on native apps vs HTML5 http://www.fiercedeveloper.com/story/mobile-networking-where-html5-falls-short/2013-01-11 Jan 11 21:26:35 ./core/java/android/app/KeyguardManager.java Jan 11 21:26:37 probly near this i'm guessing Jan 11 21:27:15 possibly yeah Jan 11 21:28:36 should I keep my .project file in the git repo? Jan 11 21:29:52 ctate: http://docs.oracle.com/javase/tutorial/getStarted/cupojava/unix.html tells how to generate a .class, but am uses a .jar ... Jan 11 21:29:53 I usually keep ide-specific files out of git Jan 11 21:30:28 doublehp: if you're trying to write a program in java, you really need to learn java. :( Jan 11 21:30:39 ctate: main thing i'm looking for, is that notifications arent visible on my lock screen/keyguard Jan 11 21:31:10 i started by the hello world, it works ... but not the android way Jan 11 21:31:32 clever: you want to make it possible to read your notifications when the device is locked? Jan 11 21:31:39 you should really do some java tutorials before getting into android development, doublehp Jan 11 21:32:03 ctate: ive had similar stuff on other devices, just wondering if that could be enabled or added Jan 11 21:32:32 clever: i am asking if that is the behavior you are going for Jan 11 21:32:49 ctate: just wondering how hard it would be to get that behaviour Jan 11 21:32:59 because if so, i want to point out that it means that whoever pickpocketed your phone can get an awful lot of information about you without having to hack the phone. Jan 11 21:33:00 :) Jan 11 21:33:19 although if you have a rooted build you're hosed anyway, so. Jan 11 21:33:25 it would only do that when the pin code isnt enabled Jan 11 21:33:39 when at home, i turn the pin code off, so id be hosed anyways :P Jan 11 21:33:57 anyway, again, i don't know much about the lockscreen / system bar / etc hookups Jan 11 21:34:14 the relevant place is probably the status bar code, though, not hte lock UI per se Jan 11 21:34:21 I usually just pull down the notification drawer Jan 11 21:34:22 but they interoperate, obviously Jan 11 21:34:35 yeah, ive also been curious about how the system ui and soft home buttons worked Jan 11 21:34:42 SimonVT: that only works after unlocking the keyguard Jan 11 21:34:52 i'll dig arround more Jan 11 21:34:55 Not if there's no password on Jan 11 21:35:27 SimonVT: not on my kindle, i have 2 things to slide, to unlock, or watch a preview for a tv show Jan 11 21:35:36 and a full-screen ad for the show Jan 11 21:35:49 nothing to swipe for notifications, until i unlock Jan 11 21:36:35 ./packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationArea.java Jan 11 21:36:37 If you're gonna be messing with aosp and building your own rom, you could just flash aosp.. It'll let you do that Jan 11 21:36:39 ah, this looks neat Jan 11 21:37:03 Is there a way in android to have a TextView auto-resize depending on the length of its contents and max width? Jan 11 21:37:21 SimonVT: was thinking of avoiding such major changes at first, seeing if i can just replace the apk or odex for that feature Jan 11 21:37:21 API10 Jan 11 21:37:49 Doesn't sound safe, who knows what changes amazon has made Jan 11 21:38:17 it seems that after cancelling the purchase, the getPurchases() call still returns the item as "owned", is this normal operation? Jan 11 21:38:53 SimonVT: ive had no trouble so far with the market apps, still learning the ins&outs of things Jan 11 21:39:00 clever: mucking with the lock/keyguard/status behavior is fairly sophisticated; there are a lot of moving parts to that stuff Jan 11 21:39:24 ctate: its not all contained within a single apk? Jan 11 21:39:29 not necessarily Jan 11 21:39:32 Market apps? Jan 11 21:39:53 That doesn't sound like messing with the framework Jan 11 21:39:57 SimonVT: the amazon market refuses to even let me install free apps, complains about my billing address (i'm not in usa) Jan 11 21:40:11 so i had to jam the play store in to get anything usefull out of it Jan 11 21:41:05 Yeah, not really the same Jan 11 21:41:15 You can't just replace single framework files Jan 11 21:41:26 i have produced class and jar, but working by analogy with am does not work: http://pastebin.ca/2301427 Jan 11 21:41:27 didnt know that was up in the framework files Jan 11 21:41:28 They're most likely customized in some fashion Jan 11 21:42:00 If you build from aosp, any changes amazon has made will be lost.. And most likely lead to crashes Jan 11 21:42:12 SimonVT: yeah, within the notifications pulldown, in the top section, is a button to sync my amazon books Jan 11 21:42:21 so they have made some changes Jan 11 21:42:22 It's the lock screen.. It's part of the framework Jan 11 21:42:35 i can still read the source and learn how things work Jan 11 21:42:42 which eclipse config files do you keep in your git repo? Jan 11 21:42:52 do you keep .project, .classpath, etc? Jan 11 21:42:52 none Jan 11 21:43:23 how do I import my source into an eclipse project then? Jan 11 21:43:51 clever: If you want to make changes to the lockscreen, you most likely have to pull the relevant files from your device, decompile, make changes, re-compile Jan 11 21:44:00 Create new project from existing sources Jan 11 21:44:05 it changes my project name to MainActivity and there are tons of build errors Jan 11 21:45:13 that's why you put these files in git Jan 11 21:46:32 bubbleguuum, which files? Jan 11 21:47:10 Hello. I'm having trouble with the support library. I'm a bit confused. I am trying to port an accessibility service. I tried adding a Compat suffix to all offending classes. However, the AccessibiltyService class that I'm extending expects methods with the normal type (without Compat suffix). What am I doing wrong? Jan 11 21:47:25 the ones you named, project.properties, proguard config file Jan 11 21:47:28 although I'm having luck so far placing the repo in my workspace and using the general new project wizard Jan 11 21:48:02 anything that is not generated (eg if you use maven) Jan 11 22:06:35 How can I make the second column (the one with 'at') smaller so it fits perfectly? Jan 11 22:06:36 http://i.imgur.com/00l73.png Jan 11 22:06:40 Programatically Jan 11 22:09:43 Anyone= Jan 11 22:09:45 ? Jan 11 22:14:01 FelicianoX, pastebin your code? :P Jan 11 22:14:16 i actually wrote a really nice library for something like that once Jan 11 22:14:27 For pastebinning? Jan 11 22:14:28 and the app i wrote it for never even shipped because the company was acquire Jan 11 22:14:35 tables Jan 11 22:21:45 any in-app billing api 3 users? Jan 11 22:22:08 ask your question Jan 11 22:22:14 not an obscure lead-up to a question Jan 11 22:22:17 how is a refund handled? Jan 11 22:22:57 i have cancelled/refunded an in-app purchase, and the getPurchases() call is still returning it as "owned" Jan 11 22:26:07 it appears that the app caches the 'purchased' state Jan 11 22:26:13 https://gist.github.com/4514487 canadiancow Jan 11 22:29:51 you dont want to stretch all columns Jan 11 22:29:57 you want to stretch specific columns Jan 11 22:30:03 personally i think tablelayout sucks :P Jan 11 22:30:08 me too Jan 11 22:30:10 i'd probably try gridlayout Jan 11 22:30:13 from the support lib Jan 11 22:30:32 It's also possible to inflate each row right? Jan 11 22:31:11 sure Jan 11 22:33:00 Woah that was easy, http://i.imgur.com/fDB3N.png Jan 11 22:33:01 Thanks! Jan 11 22:33:52 http://code.google.com/p/marketbilling/issues/detail?id=88 Jan 11 22:35:41 so as of now, there is no way to cancel/refund a purchased item. I hope customers don't start catching on... Jan 11 22:37:15 So nobody can help me with the support library then? Jan 11 22:38:27 Guys, quick question. I am trying to download an APK from my website a 2.2 phone and it says "Unable to parse this package"… Is that because the app does support 2.2, or some other reason? Jan 11 22:39:28 yes Jan 11 22:39:43 fakingfantastic, http://stackoverflow.com/a/8679391/1565759 Jan 11 22:40:42 canadiancow: makes sense, the app uses ActionBar Jan 11 22:41:03 android.app.ActionBar? Jan 11 22:43:04 which version of eclipse is best to download for developing an android game? Jan 11 22:44:05 this. is. bullshit. Jan 11 22:44:54 eclipse classic, right? Jan 11 22:45:08 xrq: its no different from the sdk, just follow the startup tutorial Jan 11 22:54:22 i'm calling Paint.setShadowLayer(…) does not seems to working. I'm not seeing any shadows on the objects I draw. The shaow radius is not zero, so that's not it... Jan 11 23:00:03 so I've imported my project from existing source, but the folder is outside my workspace Jan 11 23:00:25 how can I move the project inside my workspace? Jan 11 23:03:02 for some reason setting a header on a listview leaves a blank space when realoading the list Jan 11 23:21:09 shadowLayer works on gingerbread, but on ICS abd JB i don't see shadow when using my paint Jan 11 23:21:44 hm. possibly it's not supported with hardware-accelerated rendering? Jan 11 23:22:41 ... yeah, shadowLayer not supported with hw accelerated drawing except in the case of drawText Jan 11 23:41:22 so is there an alternative? Jan 11 23:41:37 my custom view sort of needs it... Jan 11 23:42:20 I want to implement some navigation like the back icon in the top left corner of the gmail app Jan 11 23:42:31 you click the icon, it brings you back to the home page Jan 11 23:43:15 what should I search for? Jan 11 23:43:41 karakuri: draw the shadow yourself explicitly, or use a software layer Jan 11 23:44:59 what's the easiest way to separate 2 textviews with 1 vertical line? Jan 11 23:45:58 RustyShackleford: action bar "up" navigation Jan 11 23:46:32 ctate: thanks, i did setLayerType(LAYER_TYPE_SOFTWARE, null) Jan 11 23:47:12 it's just one small view, so shouldnt have performance impact Jan 12 00:06:52 i have a ListView backed by a Cursor. When is the appropriate time to close this Cursor? Jan 12 00:06:59 onDestroy()? Jan 12 00:07:17 onDestroy() is not guaranteed to be called Jan 12 00:07:26 typically you'll close up shop in onStop() Jan 12 00:09:12 my cursor is populated in onCreate(). Won't this cause problems if the app is stopped, but not destroyed? Jan 12 00:09:24 *app = activity Jan 12 00:10:05 so I guess I need to populate the cursor in onStart() rather than onCreate() Jan 12 00:10:19 RustyShackleford: maybe use loaders which handles lifecycle for you? Jan 12 00:11:27 * funkbox propane and propane accessories Jan 12 00:11:27 jreck, that requires a content provider, doesn't it? Jan 12 00:11:54 RustyShackleford: no Jan 12 00:12:38 you can implement an AsyncLoader to do whatever you want Jan 12 00:12:47 AsyncTaskLoader, rather Jan 12 00:17:05 jreck, any good tutorials you know of? Jan 12 00:17:30 i'm on android's page and this looks complicated Jan 12 00:17:38 http://developer.android.com/guide/components/loaders.html Jan 12 00:17:55 RustyShackleford: or just close your cursor in onDestroy Jan 12 00:19:14 well I thought onDestroy is not guaranteed to be called? Jan 12 00:19:54 at this point I think it might be more work to use a Loader Jan 12 00:21:57 onDestroy might not be called but that only matters if you *must* close your Cursor before your process is killed Jan 12 00:23:25 it doesn't really matter I guess, it's a read only database Jan 12 00:23:41 I'm trying to squash everything that StrictMode is complaining about Jan 12 01:15:26 when you build an app for the Play Store, what happens to Log statements? Jan 12 01:15:46 they no longer show Jan 12 01:16:05 when you sign an application debuggable = false, Log = fall Jan 12 01:16:07 off* Jan 12 01:17:05 My tip: implement your own Logger or delete all Log.d, etc. I did some tests and if anything breaks and a nullpointer is passed to log.d app crashes Jan 12 01:17:30 err, why would you say they no longer show? Jan 12 01:17:40 they do indeed show in the log Jan 12 01:17:43 well yes they show Jan 12 01:17:48 just its non-debuggable Jan 12 01:17:53 aka you cant see tem ;) Jan 12 01:17:59 uh Jan 12 01:18:02 false. :) Jan 12 01:18:04 adb logcat Jan 12 01:18:05 what? Jan 12 01:18:08 -> look there are all the logs! Jan 12 01:18:18 so eclipse logcat different from adb logcat? Jan 12 01:18:37 it probably is set up to debug whgatever is the current debug target by default Jan 12 01:18:52 and without it being marked debuggable, that part of the check fails so it doesn't go further Jan 12 01:19:02 ahh i see Jan 12 01:19:09 but the log is being written on device and you can see it through direct means Jan 12 01:19:44 kk, well i create a static Logger class and have a FINAL_LOG_APPLICATIOn boolean there so i could set it to false when in production mode Jan 12 01:20:09 unless that could be debugged as well.... then im in trouble Jan 12 01:21:41 that is not an uncommon pattern Jan 12 01:23:22 Does anyone know why android 4.2 is giving a 'javax.net.ssl.SSLPeerUnverifiedException: No peer certificate' error while 4.0 and 4.1 don't? I'm using a custom httpclient so that 4.0 and 4.1 work with a server that has untrusted certificates, but for some reason it doesn't work on 4.2 (and on 2.x, but that may or may not be the same problem) Jan 12 01:23:42 ctate: so more people are using that? just wanted to know if that is secure. Jan 12 01:23:51 "secure"? Jan 12 01:23:57 the most secure thing is to not log at all. Jan 12 01:24:04 using a runtime check is one way that people accomplish that. Jan 12 01:24:27 if (MyApp.ENABLE_LOGS) { Log.d(TAG, blah blah ); } Jan 12 01:24:29 so by using my Logger class someone could still be able to view my logs? Jan 12 01:24:37 ctate: thats what im doing Jan 12 01:24:49 and if MyApp.ENABLE_LOGS is 'false', then no log will be written, period. Jan 12 01:24:51 not if the logs never get written Jan 12 01:25:02 kk i guess i didnt explain what i did clearly then :0 Jan 12 01:25:05 thanks for the information! Jan 12 01:25:08 np Jan 12 01:25:29 (javac is reasonably good at cutting out code that is behind a compile-time static "if (false) ..." condition) Jan 12 01:25:36 if I lock the screen, the current activity is stopped but not destroyed Jan 12 01:25:52 correct Jan 12 01:25:58 if I wait long enough, will it be destroyed? Jan 12 01:26:12 as i said a while ago, onDestroy() is almost never called except under certain specific circumstances Jan 12 01:26:17 pretend that method does not exist. Jan 12 01:26:22 also, what about it's ancestor activities? Jan 12 01:26:43 have they been destroyed, or are they only stopped? Jan 12 01:26:46 your implementation of all lifecycle callback methods really need to call up to the super.* version as well. Jan 12 01:26:59 Rusty : you can't rely on onDestroy Jan 12 01:27:02 let me say that again, RustyShackleford Jan 12 01:27:15 nothing ever has onDestroy() called Jan 12 01:27:21 except under certain very specific circumstances Jan 12 01:27:52 and when those circumstances happen, you cannot assume which activity objects in the history stack will be destroyed vs which won't. Jan 12 01:28:07 *do not rely on onDestroy() being called* Jan 12 01:28:20 EVER. Jan 12 01:28:32 Rusty : what are you trying to do? Jan 12 01:28:54 I'm trying to prevent requerying my database each time the activity is stopped or started Jan 12 01:29:10 so don't ever close your cursors Jan 12 01:29:30 isn't that... bad? Jan 12 01:29:31 save them in your bundle Jan 12 01:29:37 RustyShackleford: bad how? Jan 12 01:29:39 seriously Jan 12 01:29:52 it's closable. Idk, you're supposed to close it? Jan 12 01:30:01 when you're actually *done* with it, sure, to avoid leaks Jan 12 01:30:03 when you're done with it Jan 12 01:30:10 ok, ctate's on it =) Jan 12 01:30:13 * Pfhoenix moves on Jan 12 01:30:15 but it sounds like you're talking about a case when you aren't actually *done*, because you might need to requery or whatever Jan 12 01:30:20 so don't close it! Jan 12 01:30:47 just make sure that if a configuration change happens -- which is the case in which your activity *will* be destroyed -- you don't leak the old open cursor. Jan 12 01:30:57 also, you might want to make querying less expensive Jan 12 01:31:03 I'll be done when the user presses back Jan 12 01:31:08 since you have to do it at least once Jan 12 01:31:22 i don't know how expensive querying is. My tables aren't that large Jan 12 01:31:29 but it's much better to handle that via the usual configuration-change notification paths, not in onDestroy() Jan 12 01:31:37 onDestroy() won't be called in the case of hte user hitting 'back' Jan 12 01:31:38 so why try to optimize it? Jan 12 01:32:17 Maurits_: because anythign you can do to minimize disk I/O is a big win Jan 12 01:33:01 I don't know, what would you consider a win? Jan 12 01:33:13 in this case Jan 12 01:33:22 seems like a premature optimization to me Jan 12 01:33:42 yeah I'm not really sure. The app is responsive on my phone Jan 12 01:33:49 but my phone is rather new. Jan 12 01:34:14 I mean, there's nothing wrong with preventing unnecessary I/O Jan 12 01:34:55 but I doubt doing a new query on a reload is having a significant effect on anything Jan 12 01:34:56 irishgringo : in your activity, you can override onKeyUp Jan 12 01:35:07 check that the KeyEvent == KEYCODE_BACK Jan 12 01:35:11 ahhh yea... I was just looking at that... Jan 12 01:35:15 and then you can exit your activity that way Jan 12 01:35:32 return true if you do process the key, though Jan 12 01:35:36 play nice with the OS Jan 12 01:36:11 * ctate votes for "don't bother." Jan 12 01:36:14 srsly Jan 12 01:36:35 just make sure you aren't leaking cursors when configuration changes happen Jan 12 01:36:41 and then don't sweat it Jan 12 01:37:18 what would you call a configuration change? Jan 12 01:38:25 the most common configuration change (though not the only kind) is orientation change Jan 12 01:38:49 in that case, onDestroy() works perfectly Jan 12 01:38:55 no Jan 12 01:39:02 opps Jan 12 01:39:20 sometimes :) Jan 12 01:39:21 Pfhoenix: can I use onBackPressed()? Jan 12 01:39:39 only sometimes? Everytime you rotate, the activity is destroyed Jan 12 01:39:44 as i said, it's cleaner to use the actual configuration-change APIs than rely on onDestroy() as a proxy for detecting them Jan 12 01:39:56 i am having trouble connecting to an a855 droid. i read that the problem is that it is using the generic adb driver rather than mot adb composite. Jan 12 01:40:06 ctate: which docs should I read? Jan 12 01:40:08 So I installed the motorola driver program but it changed nothing. it just runs as a service Jan 12 01:40:24 irishgringo : you should be able to, yeah Jan 12 01:40:30 MotorolaDeviceManager_2.3.4.exe is what i ran Jan 12 01:40:41 RustyShackleford: http://developer.android.com/guide/topics/resources/runtime-changes.html Jan 12 01:41:17 anyone know what could be wrong? Jan 12 01:41:22 see in particular the "Retain an object during a configuration change" discussion Jan 12 01:41:48 because it sounds like all you need to do is make sure your live cursor instances carry across the change, and then you just pick up on the other side where you left off Jan 12 01:42:14 i do *not* recommend handling the config change yourself, btw. Jan 12 01:42:47 ctate, you're saying I could reuse this same cursor? Jan 12 01:43:21 also, is there some way to see all active Activities and Fragments Jan 12 01:44:41 not "reuse" Jan 12 01:44:44 continue to use Jan 12 01:45:16 i guess that's sort of reuse -- basically, you're telling the OS to keep that same object around for you to pick up and continue to use after the Activity instance itself has been torn down and replaced with a new one. Jan 12 01:46:47 and so where does this object go? What's it belong to? Jan 12 01:47:16 since the activity might be destroyed Jan 12 01:53:26 Does anyone know why android 4.2 is giving a 'javax.net.ssl.SSLPeerUnverifiedException: No peer certificate' error while 4.0 and 4.1 don't? I'm using a custom httpclient so that 4.0 and 4.1 work with a server that has untrusted certificates, but for some reason it doesn't work on 4.2 (and on 2.x, but that may or may not be the same problem) Jan 12 01:55:09 RustyShackleford: "this object"? Jan 12 01:55:20 remember that an activity != your application Jan 12 01:55:24 your app is still running Jan 12 01:55:28 in the same VM instance, etc Jan 12 01:56:22 Pfhoenix: I tried the code, using this.finsh() to close the activity but not working... what is the term I should google that closes an activity? Jan 12 01:56:40 finish();/ Jan 12 01:57:09 Trinity: I am doing this.finish(); Jan 12 01:57:18 irishgringo: leave activity or finish activity Jan 12 01:57:23 finish(); should do it Jan 12 01:57:35 pastebin Jan 12 01:57:37 I want to close the activity... Jan 12 01:58:02 pastebin Jan 12 01:58:06 The app I am trying to do is similar to a UINavigationCOntroller in iOS... its a questionair... Jan 12 01:58:07 just call finish(). Jan 12 01:58:44 ctate: he did but says its not working rofl Jan 12 01:58:45 if tha tisn't working, then you've got something else going on. Jan 12 01:59:46 yea... it may be working... I just have to study this better... Jan 12 02:00:44 how does finish() "may be working" work... does your application go away and bring up background? Jan 12 02:02:25 let me study this a bit more before I answer that question... Jan 12 02:03:04 java really needs a simpler native interface like .NET has, what a pain in the @$$ Jan 12 02:03:05 im using a http://developer.android.com/reference/android/app/backup/SharedPreferencesBackupHelper.html Jan 12 02:03:12 for a RESTORE, does it need the names of the shared prefs files? Jan 12 02:03:18 or can it get that from the cloud Jan 12 02:03:26 part of the problem is that I am use to doing this in split screen mode in xCode... eclipse is screwing with my mind Jan 12 02:03:30 altho that would require some way of invoking a native compiler Jan 12 02:04:38 actually... in eclipse, is there a way to click a button, and automagically goto the javaclass where it automatically adds the eventlistener, ready to be edited? Jan 12 02:04:59 popping back and forth from the layout to the class is really confusing Jan 12 02:12:19 please forgive this next question as I am an iPHONE developer.... its stupid... but in iOS, there is a navigationCOntroller Bar where I can put a back button. Would Android Users Appreciate this kind of feature, or would they prefer to just use the normal back button on the device? Jan 12 02:13:07 back button on device Jan 12 02:13:46 thanks... it looks like that will save me some time anyway. Jan 12 02:14:04 AFAIK: the back button is there so the user will always have a standard way to control his device Jan 12 02:14:33 in case a malicious app or wahtever takes control and does something the user does not want done. user can always press back or home and GTFO Jan 12 02:15:40 canadiancow: yeah, supply the name the same way when you add the helper Jan 12 02:16:11 ok... more complicated question... let say the user is at question number 10 of a 30 part questionair. each question is a separate activity. If I wanted to have a button that will start over at question 5 on all of the activities. That means I have to finish() activities 6-10. is there a way to do that? Jan 12 02:16:36 canadiancow: hm there isn't a sample in the SDK docs. feh. Jan 12 02:17:16 canadiancow: https://android.googlesource.com/platform/frameworks/base/+/master/tests/backup/src/com/android/backuptest/BackupTestAgent.java Jan 12 02:17:30 Has anyone else noticed imageviews becoming aliased when down-sized? any solutions? Jan 12 02:17:31 irish: finish() finishes your activity lol. for going back to activities you need Intents Jan 12 02:17:41 canadiancow: that agent does backup + restore of both raw files and sharedpreferences Jan 12 02:18:00 irish: http://developer.android.com/training/basics/firstapp/index.html Jan 12 02:18:06 irishgringo: the way to do that is to not build them as separate activities :) Jan 12 02:18:15 because ew Jan 12 02:18:42 i'd think it'd be a lot cleaner to just regenerate the UI of the current activity for each stage of the questionnaire Jan 12 02:19:04 then going back to question 5 means just jumpign to Q. 5's UI, maybe pre-filled with the answers already supplied, and then going from there. Jan 12 02:19:58 canadiancow: ah, i see that the docs page http://developer.android.com/reference/android/app/backup/SharedPreferencesBackupHelper.html does show a usage example Jan 12 02:20:04 well, I am mimicking a very complicated decision tree that I have already finished in iPHONE, and web... and in those cases I had a separate view for each question... by the way its a decision tree Jan 12 02:20:32 "separate view" does not need to imply "separate activity" :() Jan 12 02:21:26 hmmm... so perhaps I could do the desicion tree as a JSON file... and navigate through this some how Jan 12 02:26:04 fng google they have the names transposed in the platform and the binaries for the x86 ndk Jan 12 02:26:59 i686-android-linux platform, but the binaries go i686-linux-android Jan 12 02:29:19 Has anyone else noticed imageviews becoming aliased when down-sized? any solutions? setting the anti-alias flag seem to only help for blown-up images. Jan 12 02:40:06 sometimes there are various graphics modes that can be set for stretching an image Jan 12 02:40:26 i.e. do combined pixels overwrite, or are they blended Jan 12 02:46:13 any idea whats wrong ? Jan 12 02:46:16 Description Resource Path Location Type Jan 12 02:46:16 The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView is not applicable for the arguments (new AdapterView.OnItemClickListener(){}) PreferencesActivity.java /Simple/src/gr/com/simple/android line 116 Java Problem Jan 12 02:50:00 perhs eclipse won't fill in the correct base class for anonymous classes for a method Jan 12 02:50:17 for example for the dialog u have to put in dialoginterfae.onclick... yourself Jan 12 02:59:29 it doesnt fix the problem Jan 12 02:59:35 holoeverywhere is the problem **** ENDING LOGGING AT Sat Jan 12 02:59:58 2013