**** BEGIN LOGGING AT Thu May 31 02:59:58 2012 May 31 03:03:53 android.support.v4.app._ActionBarSherlockTrojanHorse.onPreparePanel(_ActionBarSherlockTrojanHorse.java:90 May 31 03:04:07 yeah, "TrojanHorse" made me look twice May 31 03:04:44 i wish i could get people to instal an app on there cell May 31 03:04:53 this site pays $90+ per sale May 31 03:05:12 mr_reaper: Everybody wishes that May 31 03:05:18 yeh May 31 03:05:20 lol May 31 03:05:48 you might start by learning english May 31 03:06:43 90 bucks to get the app installed huh? May 31 03:06:57 if I didn't know better, I'd say you're looking at a pay-per-install virus scam. May 31 03:07:16 readme: Is probably right May 31 03:07:25 What setting determines the filename for the .apk file? I renamed my project, but the apk still has the old name. May 31 03:07:27 *readme is May 31 03:07:45 let me set you on the right path mr_reaper: download 10 cat pictures, put them in a listview, and charge 99 cents. May 31 03:07:55 you are off to a honest career May 31 03:09:12 Nevermind on my question. I'm an idiot. May 31 03:09:16 readme: but, but... that's not a soundboard using samples ripped off from a TV show? May 31 03:09:44 in that case I recommend Alf May 31 03:09:51 i would pay for a good alf soundboard May 31 03:09:55 none have met my requirements May 31 03:10:26 readme: nah no virus May 31 03:10:45 what is the site? May 31 03:11:46 sec May 31 03:11:53 "totally not a scam.com" :P May 31 03:12:15 heres an idea: caturday: a live wallpaper that shows you cats, but only on saturday. May 31 03:12:26 genius May 31 03:12:41 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentRetainInstance.html May 31 03:13:21 in one comment it says "We way we want to be retained and start our thread." May 31 03:13:29 wat? May 31 03:13:55 * pragma- assumes the rest of the code is likewise tainted and throws it out. May 31 03:14:08 affiliates.cupidplc.vom May 31 03:14:25 ah... online fating May 31 03:14:47 yeh May 31 03:14:58 Ha, that's totally not suspicious >.> May 31 03:15:24 i just started that site May 31 03:15:31 i use AFF May 31 03:16:01 um, and the 'big money' is for people who sign up to the site and pay, not just for an app install May 31 03:16:29 yeh May 31 03:16:43 but i mainly do AFF May 31 03:16:45 and it's "up to"... so presumably that only really applies if someone signs up to an annual gold member package or something May 31 03:16:51 u can advertise 20 sites May 31 03:17:20 i use to bring home over 1200 with them May 31 03:17:21 you can advertise zero sites in here. May 31 03:17:28 see topic, thanks. May 31 03:17:32 no im not gonna advertise May 31 03:17:37 im just talking May 31 03:17:42 too much. May 31 03:17:59 heh May 31 03:18:21 mr_reaper: what is AFF? adult friend finder? May 31 03:18:26 yeh May 31 03:18:27 * pragma- sighs. May 31 03:18:31 >.> May 31 03:18:37 Not sure whether that constitutes "for job advertising" but I am looking for a freelance Android app developer. If anyone is available for next week, PM me. May 31 03:18:55 guy: It does May 31 03:19:02 guy: you paying $125 an hour? May 31 03:19:13 >.> May 31 03:19:19 wat? May 31 03:19:26 i has the pro. May 31 03:19:33 guy: sent May 31 03:19:44 You aren't supposed to respond to them... May 31 03:19:48 guy: check out odesk.com May 31 03:20:51 pragma-: A decent pay. Paid per project. May 31 03:21:18 The topic says no advertising that... May 31 03:22:15 sonicrules1234: It says do not advertise jobs. This is ambiguous as I am not advertising any particular job. I am looking for a freelance developer. May 31 03:22:28 That's a job/contract May 31 03:22:49 guy: curious why you haven't answered my PM? May 31 03:22:56 not interested? May 31 03:23:20 readme: I am looking for more experienced developer, readme. May 31 03:23:21 readme: hey, bug off, i already got this contract! May 31 03:23:42 :p May 31 03:24:22 I love how he assumes you aren't an experienced developer May 31 03:24:23 guy: i think you should probably talk to me before you judge my experience. May 31 03:25:02 sonicrules1234: I am not oracle. It is based on portfolio and github. May 31 03:25:22 guy: So did you look at his github? May 31 03:25:30 Yes. May 31 03:26:14 your loss, not mine May 31 03:31:47 is it possible to detatch a fragment and instantiate a new fragment in its place and pass information from one to the next? (e.g. similar to instantiating a new intent and starting a new activity based on a selection?) May 31 03:32:13 or am i talking gibberish? May 31 03:32:20 (which i wouldn't rule out) May 31 03:34:08 i would think so, have your main activity access a public static mehtod in the first fragment and use it to make the new one right? May 31 03:46:32 f2prateek_, that makes good sense, thanks May 31 04:25:18 "Creating event callbacks to the activity" <-- this is what i'm looking for, i think May 31 04:28:55 b1n0ry: have you had a look at view switching? May 31 04:29:38 b1n0ry: yeah those work too, but only if something in your fragment triggers the change. if you have a button outside the fragment, you have to use public static methods May 31 04:29:59 right. it's a listview and on select, i need to switch to a new fragment. May 31 04:30:24 b1n0ry: yeah the example would work then. May 31 04:30:47 have the list view selected callback to your fragment which calls back to your activity which swaps the fragment May 31 04:30:49 or use an event bus :D May 31 04:31:21 b1n0ry: i'm pretty sure there is a fragment basic demo on the developer page somehere which works the exact same way-on listview click switch the fragments May 31 04:31:35 yeah, i think i'm looking at it May 31 04:31:50 the real test will be when i want to do recursive switching May 31 04:32:33 not sure it's entirely possible, but i would have to think it is May 31 04:32:42 i can do it with intents just fine May 31 04:33:13 you can do it May 31 04:33:15 just do the same thing May 31 04:33:22 call up to the fragment to make the transaction May 31 04:34:08 i'm not sure what you mean "call up to the fragment" - from the list item? May 31 04:36:28 the fragment should have a listener for the listview May 31 04:37:31 it's a listviewfragment May 31 04:37:35 er listfragment May 31 04:38:03 oh, nm. i know what you mean. May 31 04:38:09 sorry, i'm a bit slow May 31 04:57:15 cool, callback is working. thanks JakeWharton May 31 05:22:02 if i do String unzipLocation = getExternalFilesDir(null).getAbsolutePath() + "/"; I get error: java.io.FileNotFoundException: /mnt/sdcard/Android/data/com.FLACL/files/French1Test/lesson1.cardpack: open failed: EACCES (Permission denied) But if I do String unzipLocation = getExternalFilesDir(null).getAbsolutePath(); it works fine ? May 31 05:23:40 my guess would be... it doesn't need the final '/'? May 31 05:23:49 system puts it in automatically? May 31 05:24:26 I have no idea what you're even asking. May 31 05:24:47 you're assigning a string but magically there's a file error May 31 05:24:59 b1n0ry: it doesnt because if i just use String unzipLocation = getExternalFilesDir(null).getAbsolutePath(); it puts it in the /com.FLACL/ directory instead May 31 05:25:04 so, you're PROBABLY not telling us everything here. May 31 05:25:24 ++ May 31 05:25:45 i'm with lov May 31 05:25:47 I highly doubt appending "/" causes the path to also have "files/French1Test/lesson1cardpack" appended. May 31 05:25:47 Seion: how about you ask again but this time you tell us what you're ACTUALLY doing. May 31 05:25:57 \ May 31 05:26:06 Is it normal that non galaxy note devices won't show the strokes drawn from touching the canvas after implementing the S Pen SDK? May 31 05:26:40 probably, that's really a device/hardware specific question though. May 31 05:29:33 you should use File.separator, in any case May 31 05:29:43 ^^ May 31 05:30:12 Im trying to have my program unzip a file into the externalStorage area of my applications externalstorage space. its failing when it gets to FileOutputStream fout = new FileOutputStream( _location + ze.getName() ); the _location var = String unzipLocation = getExternalFilesDir(null).getAbsolutePath() + "/"; the failing error is: java.io.FileNotFoundException: /mnt/sdcard/Android/data/com.FLACL/files/French1Test/lesson1.car May 31 05:30:37 String unzipLocation = getExternalFilesDir(null).getAbsolutePath(); works but unzips to the /com.FLACL/ directory May 31 05:30:54 .... May 31 05:31:18 how does unzipLocation turn into _location May 31 05:31:29 what happens if you step through with a debugger, what do you see May 31 05:31:39 passing it through to the zip method I have May 31 05:35:20 i have an EditText widget but all the input i enter just appears right on the middle of it.. leaving a blank space above and below the text (and the text is shown one line at a time) how can i change this? May 31 05:36:00 andreluiz: paste the EditText xml May 31 05:36:06 ok May 31 05:37:00 https://gist.github.com/2841325 i've been trying everything hehe May 31 05:37:01 i don't understand why i'm getting the error "No Activity found to handle Intent { act=com.giraffeslacks.practiceproject2.Add_List }". i believe i've added the activity to the manifest correctly, no? code here: http://pastebin.com/qRWDsSn9 May 31 05:37:43 the unzipLocation = /mnt/sdcard/Android/data/com.FLACL/files/ in debugging, its only failing when trying to write to the com.FLACL/files/ dir works fine when it writes to the com.FLACL/ dir May 31 05:37:55 giraffeslacks: case sensitive May 31 05:37:59 check again May 31 05:38:39 andreluiz: what is it that you want the EditText to look like. Start from scratch May 31 05:38:59 readme: oh hmm... i see. i thought it was looking at android:name. i'll try now. May 31 05:39:15 i'm fairly sure it's case sensitive anyway. I've never really tried not matching the case. May 31 05:39:19 i'd like it to start with one line and when i'm inputing something it will start to grow May 31 05:39:36 EditText afaik doesn't grow to fit your text. May 31 05:40:01 you might need a custom view for that. though I wonder why you'd want that behavior May 31 05:40:04 ahm May 31 05:40:04 readme: 10 internet points for you! May 31 05:40:28 excellent May 31 05:40:44 readme if i was able to show more than one line at a time on the EditText (say 5 lines) it would be perfect already.. but the thing is that i have always one line and the rest is a blank space May 31 05:40:48 if you want the EditText to be only one line, you can use android:singleLine="true" May 31 05:41:00 in this case, i dont want it May 31 05:41:07 i want it to show at least 5 lines, lets say May 31 05:41:17 minLines=5 didnt work May 31 05:41:48 are you sure, because it looks like you've set maxLines, not minLines May 31 05:41:59 i've set minLines before hehe May 31 05:42:17 also, just tested here and it didnt work May 31 05:43:06 i'm fairly certain it does work May 31 05:43:09 I'll test it. May 31 05:43:19 andreluiz, android:inputType="textMultiLine" android:minLines="5" May 31 05:44:32 b1n0ry its not working and i dont know why =| hehe, it shows one line at the top and i can scroll down or up May 31 05:44:44 PEBKAC May 31 05:45:06 ID10T error May 31 05:45:09 dunno, i just created a fake edittext with those params and i have a nice 5 line text box May 31 05:45:21 I didn't even need the inputType May 31 05:45:25 it worked with just minLines May 31 05:45:51 JakeWharton: :P May 31 05:46:40 problem I see now May 31 05:46:55 andreluiz: you want the cursor at the top of the edit text and not in the middle? May 31 05:47:23 readme that i've solved with gravity="top" May 31 05:47:41 i just dont know why the text is showing one line at a time May 31 05:47:55 let me see May 31 05:48:13 I don't get that result here May 31 05:48:24 me neither May 31 05:48:30 and i'm n00b May 31 05:48:34 hehe May 31 05:48:40 what does your xml look like? May 31 05:48:42 really, ask anyone May 31 05:48:42 http://pastie.org/3999780 May 31 05:48:49 this is the collection of all our work combined May 31 05:49:02 post it on github May 31 05:49:32 call it EditTextSherlock May 31 05:49:37 wow, a fine piece of 7-line xml right there. May 31 05:49:42 hehehe May 31 05:49:58 the essence of multiline texting culminated into a single xml tag. May 31 05:50:20 I think we could use this... to enter, text! May 31 05:50:32 would be freakin' awesome May 31 05:50:42 +2 more points for readme May 31 05:51:46 Hello May 31 05:52:43 hola, jagruti_ , como estas? May 31 05:53:13 b1n0ry: can you write in english? May 31 05:53:29 oh god, why is this not working? :| hehe i'll look more into that May 31 05:53:29 thanks May 31 05:53:42 jagruti_, si May 31 05:54:13 andreluiz: if we understood what doesn't work.. maybe we could help May 31 05:54:17 are you on the emulator or a device? May 31 05:54:23 b1n0ry: do you know about sipdroid? May 31 05:54:31 device May 31 05:54:37 how many test devices do you have May 31 05:54:42 only one May 31 05:54:46 try on the emu then May 31 05:54:49 ok May 31 05:54:49 maybe its a silly OEM bug May 31 05:54:54 jagruti_, May 31 05:54:55 es probablemente muy agradable. May 31 05:55:13 but no May 31 05:55:14 not really May 31 05:55:23 i'm probably not the best to ask May 31 05:55:29 b1n0ry: so is the app you're making, a magic app? May 31 05:55:36 because I believe I saw that in there a few times May 31 05:55:43 yeah, in a way May 31 05:55:51 instructional or entertainment? May 31 05:56:10 b1n0ry: because i have problem in sipdroid that is opensource application of android May 31 05:56:21 instructional. it's a resource for magicians. a searchable collection of many different books. May 31 05:56:39 that will probably do well May 31 05:56:48 better charge $$$ May 31 05:56:52 i anticipate it's probably a niche market. May 31 05:57:07 thats definitely a >$5 per app app. May 31 05:57:09 readme on the emulator happens the same thing... the text is only shown at the top line.. it doest not fill the edittext 'going down' May 31 05:57:16 maybe $9.99? May 31 05:57:25 but yeah, i'm setting it up with the goal in mind of being able to add additional content on the fly. May 31 05:57:34 without the need to roll out an update May 31 05:57:37 ah yeah, in-app bill that stuff then May 31 05:57:41 charge for the content May 31 05:57:57 there will be a set of content available with the app base, of course May 31 05:58:02 andreluiz: that's not the result I get.. let me try again May 31 05:58:07 i'll take a screenshot of the edittext May 31 05:58:09 i have a flag in the db that indicates if it's "free" content or not May 31 05:58:14 andreluiz: OH May 31 05:58:21 andreluiz: you want it to wrap, without hitting enter? May 31 05:58:45 yes May 31 05:58:51 i guess thats it May 31 05:59:03 it does that May 31 05:59:09 i'll upload May 31 05:59:11 so you'll see May 31 05:59:23 it's probably something that would be relatively simple for someone more experienced, but i figure it's worth my time to learn it - even if it doesn't do well. at least i'll use it. May 31 05:59:48 http://i.imgur.com/BXcrr.png May 31 05:59:49 here May 31 05:59:59 whatever. if you finish it nicely you'll be better than most android developers May 31 06:00:14 it's sad that there are actually very few people who actually get shit done. May 31 06:00:29 i'm trying. doubtless that i'll end up rewriting it even after market. May 31 06:00:47 this screenshot is the worst May 31 06:00:48 wait May 31 06:00:49 andreluiz: what is that background? it looks like a piece of grid paper May 31 06:00:57 this indicates to me that you are changing our code May 31 06:00:59 i'm committed. was hoping to get it done before i hit vegas. i have several magician friends there that i could try to talk up the market. but it's not going to be done in time. May 31 06:01:01 and then telling us it doesn't work May 31 06:02:08 http://i.imgur.com/QxHnu.png May 31 06:02:26 i get what readme gets May 31 06:02:40 his screenshot is not the default :| May 31 06:02:56 readme i'm changing only thins to position the editText widget May 31 06:03:01 according to other things on the screen May 31 06:03:13 andreluiz: that's important info that you should tell us May 31 06:03:15 could be themed May 31 06:03:26 but i've pasted it May 31 06:03:28 hehe May 31 06:03:30 thats all there May 31 06:03:35 even these changes May 31 06:04:00 I think the assumption was that we gave you a new edit text that worked May 31 06:04:05 and did not expect you to junk it back up May 31 06:04:06 http://i.imgur.com/ou5w1.png May 31 06:04:07 anybody know how can i change the package name such that my old application will not replace with new application May 31 06:04:07 here May 31 06:04:25 ahm May 31 06:04:27 paste me the full code you have again May 31 06:04:29 and I'll run it here May 31 06:04:33 afaik, the package name is one of those things that should not change May 31 06:04:38 i'll look again into your paste May 31 06:04:38 wait a sec May 31 06:04:55 jagruti_, http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html May 31 06:05:03 jagruti_: if you want to NOT replace the old one, by all means, change it. May 31 06:05:16 use f2. then update refs yourself because it probably wont refactor correctly. May 31 06:05:34 true, if you change the package name and install, you'll have two instances of your app. May 31 06:07:30 readme: actually my problem is that i have two application with miner changes but the package naem are same.so when i install one and then second so first will be replace with second..that means at time only one will stay..so i need to solve that problem i need both same time May 31 06:07:47 new package name May 31 06:07:57 two package names = two apps May 31 06:08:08 b1n0ry: but the at where i change May 31 06:09:07 jagruti_: if you are on a real OS, you can probably solve the problem with some symbolic links. May 31 06:09:23 jagruti_, on eclipse? May 31 06:09:53 the packagename though.. needs to be in files..hmm May 31 06:09:57 you could use CPP. May 31 06:10:01 b1n0ry:yes on ecliipse May 31 06:10:29 jagruti_, in Package Explorer, go to src/, click on the package to highlight it, and press F2. May 31 06:10:47 he knows how to change it May 31 06:10:56 the problem is he wants to share code between two different version of his app May 31 06:11:02 but his package structure must be cumbersome. May 31 06:11:10 just make the main package of the app contain one file, tops May 31 06:11:18 all the other package names can stay the same May 31 06:11:32 make 2 packages names off the base package "com.app.a", "com.app.b" May 31 06:11:35 good idea, like the main activity or even a container class. May 31 06:11:35 youll need 2 manifests May 31 06:11:51 switch them when you build. done. May 31 06:12:02 but if you already uploaded apps, uh, maybe you can use CPP May 31 06:12:09 you know. #ifdef #endif May 31 06:12:11 etc. May 31 06:12:31 blackberry dev tools have a similar solution. May 31 06:12:43 Hello boys and girls May 31 06:12:44 aw gawd, i give up for today May 31 06:12:50 thanks for the help readme and b1n0ry May 31 06:13:01 If I use MapView, will some google logo appear in the map? May 31 06:13:48 quick question, is there a way to choose an image from a view dynamically and get rid of all the rest? I tried doing this and all I got was garbage :( May 31 06:14:17 readme:i know if and endif May 31 06:14:31 i have a set of 12 images, and according to the users click I need all the rest to disappear May 31 06:14:32 but i cant understand two manifest concept May 31 06:15:21 jagruti_: what are you trying to do? May 31 06:17:33 thepoosh: i want to sipdroid application and want to add something new in that and make new application.but the problem is that sipdroid is already there and my new application if i install then sipdroid will reaplce with my new application because both have same package name.but i want to keep both sipdroid and new modified application May 31 06:22:21 than you need a different app May 31 06:22:21 jagruti_, then just make a copy of the project and change the package name May 31 06:23:29 jagruti_: switch it with a symbolic link May 31 06:23:40 you're going to need a better build system than clicking run in eclipse May 31 06:24:04 ant, maven, GNU make, a python script.. something else. May 31 06:24:58 readme:its ok but if i change the package name then the application will close at some point May 31 06:26:58 jagruti_: you need to be careful to update references to your package name. May 31 06:27:18 like in the manifest... May 31 06:27:21 and in any custom views May 31 06:27:53 maybe refactoring some code into a library project would be beneficial. May 31 06:28:10 there is no silver bullet. you're going to have to work long & hard on this. May 31 06:28:45 readme:i have done the refactoring and also done changes wherever required ,there is no error in cod at anywhere but at run time it will stop the application May 31 06:30:11 jagruti_: errors in XML will not cause a compile time error. May 31 06:30:16 not in resolving the package name, anyway May 31 06:35:12 hi huys, here is a question of mine: http://stackoverflow.com/questions/10828506/make-all-images-except-one-disappear-dynamically May 31 06:35:21 would love for you to have a look May 31 06:35:55 readme:thanks for your reply but i cant got the solution May 31 06:37:59 jagruti_: after you change the package name May 31 06:38:10 the references to it in your XML such as your AndroidManifest.xml might not be updated May 31 06:38:15 you need to check them manually May 31 06:38:43 readme:i have check that and it is now with my new package name May 31 06:38:55 well, where is the stacktrace!? May 31 06:46:42 is it just me or does handler.postDelayed() sort of inaccurately runs at the specified time sometimes? May 31 06:47:41 alexfu: it also kinda depends on what is going on with that queue May 31 06:47:58 if i remember looking at the code, no its not that accurate, but "good enough" May 31 06:48:18 readme:when the codes part come May 31 06:49:37 g00s, gotcha. May 31 06:58:39 watch out for the codes May 31 07:31:18 tt May 31 08:02:36 ah ok.. i guess the starting of the related project using the library i'm working on in eclipse doesn't work, because the library dependency is only established through the android manifest of the app May 31 08:02:56 maybe i can make it explicit by putting the generated jar into the libs folder of the app.. May 31 08:09:02 https://www.google.com/intl/en/chrome/devices/chromebox.html May 31 08:17:02 anyone here with an asus eee transformer prime? May 31 08:17:18 I know it's a bit offtopic, but how the )**()( do you get it to mount as an external disk? May 31 08:18:31 dont think you can, but go #transformer May 31 08:18:40 or whatever the channel was, one exists anyhow May 31 08:20:33 wtf, android 4.0 requires some special client side software? May 31 08:21:26 that's a bit vague May 31 08:26:06 on an "animation end"-listener I change the layout. Unfortunately there is a single frame before the new layout takes effect where the animation snaps back in place, giving the whole transition a glitchy look. Using setFillAfter(true) is not an option, unless I can figure out how to disable it after that specific frame, since the animation cannot persist. Is there a good way to fix this? May 31 08:29:19 Segmentation fault May 31 08:29:25 so far for linux support May 31 08:34:08 lapdis: a workaround could be to start animation with blank color and fade in. at the end of your animation you fade to blank. blank to blank might not look glitchy? :) May 31 08:34:49 its a translateanimation, so there is no fading :/ May 31 08:35:19 im moving a button to a new position, to simplify it a bit. May 31 08:36:04 make the button disappear right before the animation? May 31 08:36:10 would that work? May 31 08:37:51 JakeWharton: what did you use for your abs.io website ? May 31 08:37:57 heroku May 31 08:38:00 i could use some abs May 31 08:38:05 http://github.com/JakeWharton/abs.io/ May 31 08:38:06 mine are blubbery May 31 08:38:32 node.js May 31 08:38:35 i guess that's what you're asking May 31 08:38:46 ah, ok . yeah, thanks May 31 08:40:31 10 minutes of node.js is far more versatile than any of the other services out there May 31 08:40:39 and heroku is free May 31 08:41:05 JakeWharton: dumb ass question, since i don't know node, but what did node get you over static html + css for abs.io ? May 31 08:41:26 hm, so i guess i should learn node maybe May 31 08:41:34 well it's a redirection service so it sends back a straight HTTP 301 May 31 08:42:08 are you asking about the actual actionbarsherlock website? May 31 08:42:13 yeah :) May 31 08:42:18 oh May 31 08:42:44 i need to put up a simple website too, but i'm not a web dev and don't really feel like learning wordpress + php May 31 08:42:48 https://github.com/JakeWharton/ActionBarSherlock/tree/master/website May 31 08:42:51 it's a jekyll site May 31 08:42:53 hosted on GitHub pages May 31 08:42:58 :O May 31 08:43:30 also free :) May 31 08:45:09 JakeWharton: so, abs.io uses node + jekyll ? May 31 08:45:26 abs.io is a redirection webapp May 31 08:45:29 written with node May 31 08:45:32 oh, i get it now May 31 08:45:44 actionbarsherlock.com is a static HTML site generated by Jekyll & GitHub pages May 31 08:45:54 ok, thanks May 31 08:46:00 did you do the theme + css yourself ? May 31 08:46:03 yeah May 31 08:46:07 nice ~ May 31 08:48:18 JakeWharton: do you have to know ruby to get jekyll to do the right thing ? May 31 08:48:26 nope May 31 08:48:28 i know zero ruby May 31 08:48:35 gem install jekyll May 31 08:48:38 jekyll --server May 31 08:49:08 cool May 31 08:51:39 haha, hyde is the python version May 31 08:51:44 love it XD May 31 08:51:48 hi guys, i am implements a fragment that would appear as an action bar at the buttom of the screen and always on top, the fragment items when clicked, would open a new activity, i would like that same fragment to be visible after the activity is opened, how can i do that? May 31 08:52:23 when the activity is started it is filling up the whole screen May 31 08:52:31 and i think the fragment is getting paused in the backtack May 31 08:52:34 stack* May 31 08:53:05 should i call the fragment on the onResume of the new activity? May 31 08:54:48 Just in case for people who don't know about it, this wiki is very helpful: http://appdevwiki.com/wiki/show/HomePage May 31 09:02:13 pcboy_: to my 'read later' list :) May 31 09:06:35 ouch. never store numbers in sqlite TEXT fields, if you want to perform max(row) later on. May 31 09:06:53 hehe May 31 09:07:29 especially if you rely on it to generate the next higher index... max(row) now always returns 9 for me :( May 31 09:07:42 so there are duplicate entries with id==10 May 31 09:13:05 I'm having problems with a checkbox in a listview. The listview is in a fragment and so far I handled the clicking on the checkbox in the main activity (which holds the fragments). But that makes dirty code, so I prefer to handle to the clicking on checkboxes in the fragment itself, which contains the listview (which contains the checkbox). Is there any way to do that? May 31 09:36:04 hi May 31 09:36:56 is it possible to get my dataset from my arrayadapter (im in another class) in this fashion: adapter.getArrayList May 31 09:37:23 hi, i have a noob issue. i have setup the android sdk and run the basic "hello world" example in the emulator. then i deleted that project and opened up one of the samples. when i try to run the sample in the emulator, it is still running the hello world one. May 31 09:37:42 how do i tell it to run the sample instead of hello world? May 31 09:42:34 giantpune: normally, if you right-click an activity of the project you want to run and choose Run As > Android application it will run the right project. May 31 09:43:40 giantpune: note though that the last app you ran will stay active in the emulator unless you close it, so if it's trying to run the right project after all, there could be an error preventing the new app to run, so you'll still see the old one. May 31 09:44:15 it starts the emulator and the hello world starts. and i dont think there is a way to tell hello world to stop, so i close the emulator. then in the console window it spits out this in red - emulator-5554 disconnected! Cancelling 'com.example.android.accelerometerplay.AccelerometerPlayActivity activity launch'! May 31 09:44:42 There's no need to close the emulator. May 31 09:45:04 .AccelerometerPlayActivity is that the app you're trying to run? May 31 09:45:41 in the samples, its called "AccellorometerPlay" May 31 09:46:01 Ok it did apparently try to launch. May 31 09:46:09 Well, if you try to run it again it should start a fresh emu May 31 09:46:42 But generally, you can use one emulator instance and run as many projects on it as you want. May 31 09:47:02 i tried that as well. its still starting the hello world in the newly created emulator. but the title at the top of the window is changed from the first emulator i used to the name of the new one May 31 09:47:13 giantpune: how are you running it? May 31 09:47:54 Also, console output in a pastebin would be helpful. May 31 09:48:01 i tried Run ->run, right-clicking the project -> RUn, and really right-clicking just about everything on the right side of the screen and selecting run May 31 09:48:42 giantpune: what I generally do is right-click on an activity in the project. May 31 09:48:46 Then run. May 31 09:48:52 Run -> Run will run the last configuration May 31 09:49:00 Which in your case would probably be hello world. May 31 09:49:11 Hi, I need to enable USB access over android mobile & PC possible. e.g. my app on Windows PC wants to access data on Android phone. how to make this happen without enabling "USB debugging" May 31 09:50:02 The access should not be in Mass Storage mode May 31 09:50:41 S_A: this maybe? http://android-developers.blogspot.com/2011/05/bright-idea-android-open-accessories.html May 31 09:51:48 when i try to run it with any option in eth menus or right-clicking that says "Run" the emulator starts up with the hello world, and this is in the console window http://pastie.org/private/bfpd8uakrzg9ekalwbu6a May 31 09:53:33 wait, i didnt click anything and now its telling me slide to unlock. May 31 09:53:40 Slide it May 31 09:53:56 If you're lucky, the app you want will be behind the lock. May 31 09:55:08 Hdroid: Is there some example where PC has been used as accessory ? May 31 09:55:15 im not sure if it is or not. this is an accellorometer sample. my desktop doesnt have any accellorometers in it :D May 31 09:55:24 S_A: I honestly don't know. May 31 09:55:43 I am wondering when Samsung Kies etc kind of PC software connect to android. how do they communicate May 31 09:55:44 giantpune: hm there's probably a way to mock it in ddms perspective not sure if that would help, though. May 31 09:59:27 ok, next question - how do you tell eclipse to close a project? i did file -> close all and it closes open source files, but theres still the project tree over on the left with that sample i was looking at. i wish to closk that one and open another May 31 10:00:20 i right-click it and do "close project" but theres still a folder for that project on the left i cant seem to get rid of May 31 10:01:52 hello again May 31 10:01:58 can you take a look at this? May 31 10:01:58 http://stackoverflow.com/questions/10830793/android-receiving-ontouch-events-from-more-than-one-view-at-a-time May 31 10:06:53 no thoughts? May 31 10:25:21 hi, I'm developing an app that uses a service to pull data from a remote server and display it to a ListView, every now and then when I scroll really fast the app freezes for a few seconds and then restarts itself (without going through the activity's "onPause"/"onStop"/"onDestroy" cycle - it goes directly to "onCreate"/"onStart"/"onResume") - this happens mostly on the Samsung Galaxy S (the S2 works like a charm, and so does my ol May 31 10:27:08 in LogCat I can see that my app's memory usage never goes above 45% (which is a lot, but one problem at a time) so it doesn't seem to be like it's a memory problem May 31 10:29:03 daniboy: what does logcat say when it crashes? May 31 10:29:14 daniboy: there's a number of things that can be going on here. May 31 10:30:00 daniboy: if you're not properly threading your service access or updating the list too often (which has to be done on the UI thread) you might simply bog the CPU, causing an ANR. May 31 10:30:33 logcat doesn't seem to help much here - one line is dalvikvm saying "GC_EXTERNAL_ALLOC freed xyzK...", the next line is my main activity saying "onCreate()" May 31 10:30:35 If you're loading bitmaps into the listview, you could still be hitting a memory limit (because bitmaps don't show all their memory use in the java process) May 31 10:31:08 I really am loading bitmaps, I didn't realize it doesn't show up! May 31 10:31:40 (what's ANR?) May 31 10:32:22 Bitmaps are loaded natively and not through Java, it's hard to keep track of their memory usage. The limits for bitmaps are quite strict, can't load more than a dozen or so if they're high-res. May 31 10:32:26 Application Not Responding May 31 10:32:56 What kind of bitmaps and numbers are we talking about? May 31 10:34:07 I'm pretty sure I'm threading correctly (although I admit that's a bold statement by any developer), I don't get an ANR... we're talking about up to 30 high res bitmaps, I guess I should ask the service to resize the images before they get to me? :) May 31 10:42:00 is onScroll the right place to call an AsyncTask that adds elements to my gallery? i'm doing it there because i need acces to the position May 31 11:11:35 is .getWindow().setAttributes(params); the same as setting the xml layout param? May 31 11:19:10 Why can't I make TouchDB-Android work with HTTPS + auth (user+password) ? May 31 11:23:39 can i change the spaces color, that setSpacing() creates between two elements in a list ? May 31 11:58:47 Hi May 31 11:59:15 I want to use LOGV in webkit May 31 11:59:39 I #include May 31 12:01:08 * #include May 31 12:01:24 and I #define LOG_NDEBUG 0 May 31 12:01:36 but it does not work May 31 12:02:03 Do you have any suggested references? May 31 12:04:01 can I assume the camera takes JPEG pics? May 31 12:04:43 i want to tell the image capture intent where to store the pic, so i just pass something like "/myfolder/newpic.jpg" May 31 12:29:22 I want to bind to my service from two different (possibly more) activities. The only solution I found so far is to create a inner ServiceConnection class in each activity. Seems like a waste of resources and code duplication. Can this be done better? how? May 31 12:31:54 does anyone have a sample code for implementing a drag ability of sub views? May 31 12:34:34 nothing? May 31 12:34:40 :( May 31 12:35:17 I wrote one a while back. May 31 12:36:11 do you have source code? I need a layout that has several images that can be draged and replaced May 31 12:37:31 this truly sucks, I've been looking for a way to do this for the past 2 days May 31 12:37:37 I feel like an idiot May 31 12:38:31 Knossos: sup? May 31 12:38:50 s May 31 12:39:03 is the sample here not good enough: http://developer.android.com/guide/topics/ui/drag-drop.html ? May 31 12:39:38 wongk: I saw this but the API is too high May 31 12:40:12 I need to go as low as API level 8 May 31 12:40:42 oh May 31 12:41:44 3.0+ seems to be a trend here May 31 12:42:46 wongk: I wonder why since 2.2 + 2.3 is the most popular. and by a huge margin May 31 12:43:07 i assume because a suitable api didn't exist in those versions May 31 12:43:49 thepoosh: well, if nothing else, you can look at the launcher code from froyo May 31 12:44:00 it supported drag and drop May 31 12:45:37 Targetting 3.0+ gives you how much market share? 10%? May 31 12:46:02 sounds about right May 31 12:46:17 https://developer.android.com/resources/dashboard/platform-versions.html May 31 12:46:21 Seems closer to 8% even May 31 12:47:06 i will be a while until 4.0+ gets enough market May 31 12:47:26 But that day will be a glorious day. Using all those nice APIs May 31 12:48:13 :D May 31 12:48:19 so what do you think? May 31 12:48:24 is there a way to do this? May 31 12:48:32 kakazza: I am already living that glorious day. Developing inhouse apps for 3.2 and 4.0 =) May 31 12:48:37 can I access the parent view from a child view? May 31 12:48:54 thepoosh: wongk told you to check the code for froyo launcher May 31 12:49:17 froyo launcher? May 31 12:50:18 wongk: froyo launcher? May 31 12:51:05 I have a broadcastreceiver class, it listens for incoming SMS, how can I start and stop the service via a button? Its this related to registering? May 31 12:51:41 m1hael: lucky bastard! May 31 12:51:59 :-D May 31 12:52:10 hkhalid: why are you telling us about a broadcast receiver? May 31 12:53:01 mikedg, im trying to get help as far as, stopping and starting the service of listening to incoming SMS May 31 12:53:33 mikedg, why the hostility? May 31 12:54:07 thepoosh: yes, the launcher that is included in android 2.2 May 31 12:54:25 where can I find the source? May 31 12:54:41 s.android.com May 31 12:56:10 sweet pirahna 3DD is coming soon! May 31 13:11:28 mikedg, ? May 31 13:13:26 mikedg, I figured it out, its unregistering and registering May 31 13:25:00 Hello guys, I try to draw a text on a canvas with white background for the text. I've checked the Graphic's api but only found to draw the text. Is there no other way than measure the text size and draw the background there? Or is there a way to set text and give the background color at the same time? May 31 13:27:04 how can i make an activity non full screen? May 31 13:27:11 use a dialog theme May 31 13:27:13 best is to use themes? May 31 13:27:39 ok can i set the x y coordinates of that theme from the xml file? or i need to do getParameters () ? May 31 13:27:43 an setAttrbitues.. May 31 13:28:26 my purpose is to have a frragment in the main UI which is at the bottom of the screen, and then call activites from items in that fragment but create them as non full screen so that the fragment is always visible May 31 13:28:34 is it a correct way of doing it? May 31 13:29:49 appreciate if you can point me to any better alternative... May 31 13:32:16 can I use an android-x86 3.2 image in Android Emulator? May 31 13:32:56 do you want the fragment to be interactable still? May 31 13:33:30 yes sure May 31 13:34:10 mikedg_: i think the main UI and its fragment would be in the paused() state May 31 13:34:26 when the new activity not filling the screen comes into the foreground May 31 13:34:31 yes May 31 13:34:37 wont be in the backstack May 31 13:34:38 you wont be able to itneract with the fragment May 31 13:34:46 why? May 31 13:35:03 because it's not in the foreground activity May 31 13:36:36 mikedg_: can you please emphasis more on that? if i click on that fragment which is owned by the mainUI wont i bring that way the main UI into resume mode() ? May 31 13:37:37 Hi May 31 13:37:52 If I want to print log messages in WebKit May 31 13:38:18 Is it enough #include May 31 13:43:24 hello? May 31 13:48:58 i want to tell the camera to take a pic for me and to dump it into a specific file using EXTRA_OUTPUT. But when i get the result back, the uri that should point to the new file (the camera should tell me this) is null : https://gist.github.com/dd880516583f25a10ba9 May 31 13:49:44 guys how can i make a fragment always interracabe and visible at the bottom of my application? May 31 13:49:53 interactive* May 31 13:56:12 say... anyone had experience with handlers postdelayed chain causing android devices to hard freeze? May 31 13:56:36 I am basically doing a very simple calculation and updating a textview every 15seconds, and let that run for hours on end and it'll eventually crash May 31 13:56:54 not just anr, but hard freeze the device May 31 14:04:06 ron_frown: looked at logcat when it happens? May 31 14:13:55 guys how can i make a fragment always interractive and visible at the bottom of my application through out the whole application lifecycle May 31 14:18:47 how do you write some code that changes based on if the TextView's state_selected == true? May 31 14:23:05 treat it like a button I would imagine May 31 14:24:34 e.g TextView txtName = (TextView) findViewById(R.id.txtName); then..... set an onclick listener May 31 14:25:20 txtName.setOnClickListener(new OnClickListener() May 31 14:25:21 { May 31 14:25:21 @Override May 31 14:25:21 public void onClick(View v) May 31 14:25:21 { May 31 14:25:30 etc etc May 31 14:27:39 john_doe_jr: by selected, you mean focused? May 31 14:30:17 if so, setOnFocusChangeListener instead of setOnClickListener May 31 14:32:38 Hi May 31 14:33:19 I just searched google to find how to use LOGX in webkit May 31 14:34:13 and I do #include May 31 14:34:26 but it doesn't work May 31 14:35:03 and I also #define LOG_TAG "my tag" May 31 14:35:06 yep...listen to Leslie... not OnClick onFocus May 31 14:35:23 any ideas for how to kill all activities? May 31 14:35:33 i dont want any in my stack May 31 14:35:45 when I use logcat, I can see my tag May 31 14:35:50 when I use logcat, I can't see my tag May 31 14:36:34 Does anyone here know why? May 31 14:37:13 http://www.droid-life.com/2012/05/30/dear-developers-can-we-quit-with-the-menu-button-already-and-adopt-an-action-overflow/ May 31 14:37:26 so i haven't started doing this yet. May 31 14:37:59 and how many phones actually have ICS yet? May 31 14:38:14 But if I use #include and __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, "hello"); May 31 14:38:45 I can see this when I use adb logcat May 31 14:39:14 anyone familiar with fragments? finding it hard to understand callback with activities May 31 14:39:16 moonlightcheese: does that matter? May 31 14:40:44 does it matter that i'd have to make code changes to make my app look slightly better on a handful of devices? May 31 14:41:41 we sell the devices with our software most of the time anyway, and none of them are ICS devices. they're still quite hard to come by, you see. May 31 14:42:29 so it sounds like a non-issue for you May 31 14:43:07 i just wondered how others felt about it. May 31 14:43:27 if you aren't using ABs or some alternative, you're kind of stuck with the button May 31 14:43:33 ABS May 31 14:43:50 wongk: unless you add you own menu button and call openOptionsMenu() May 31 14:44:09 abs? May 31 14:44:18 it is true that this menu button is kind of a pain to manage correctly May 31 14:44:38 http://abs.io May 31 14:45:12 oh right, Jake's baby. May 31 14:45:30 i've never actually looked at it :/ May 31 14:45:31 can't wait till Google deprecate the ActionBar and Overflow menu in Android 6 or 7 May 31 14:45:42 wait wat. May 31 14:46:06 Google = introduce a feature and deprecate it 2 years later. May 31 14:46:45 that's what happens when you're using an immature platform May 31 14:47:27 well it is manture now but 2 year or 3 years ago, it wasn't for sure May 31 14:48:23 that's a bit like the normal, large, xlarge screen buckets replaced by the more fine grained smallestWidth qualifiers May 31 14:48:26 eh, it's gettig there May 31 14:48:41 4.0 was a big step forward May 31 14:48:53 that's for sure May 31 14:49:43 can't wait till it is viable to make an ICS+ only app May 31 14:50:03 wish ics would hurry up for the Galaxy Note... May 31 14:50:17 bubbleguuum: by then you'll be waiting to be able to do a android 6 only app ;) May 31 14:50:49 ah the Galaxy note and its fabulous large/xhdpi screen that mess up the large category... May 31 14:55:45 Hi! Is there a list of phone models that support USB host mode somewhere? May 31 14:58:40 Or is there a better channel to ask that question in? May 31 14:58:59 idk & idk May 31 15:01:45 wongk: man, I had a nightmare that someone one starred my app May 31 15:02:13 readme: lol May 31 15:05:12 If I set a TextView TabOneTV = new TextView(this); TabOneTV.setId(1); programatically...how do I reference it? May 31 15:05:41 parentView.findViewById(1); May 31 15:06:00 or, TabOneTV May 31 15:06:00 the interesting part of that question is that it answers itself May 31 15:06:13 it includes an example of referencing it May 31 15:06:14 wongk lol May 31 15:15:25 hi May 31 15:16:53 is it correct to call an AsyncThread from my gallery controller? i need to control the current position of elements so that's why im doing it from there but then i cans use my main class' vars May 31 15:18:27 where is the error log for when exporting a signed apk? May 31 15:18:41 im getting the cant convert bs error but cant find any log May 31 15:19:01 look into eclipse logs May 31 15:19:17 ddreamer0: you just need to populate the data source that backs your gallery's adapter and call notifyDataSetChanged May 31 15:19:25 so you only need a reference to the adapter, and the data that backs it. May 31 15:20:58 bubbleguuum do u know which exact view the log is in? May 31 15:21:13 probably console May 31 15:21:34 console is clean :\, bc i thought i was there also(from seeing b4) May 31 15:22:08 it is not in a view. Is in log workspace directory, .metadata/.lo file. here you will find any exception thrown by the tools May 31 15:22:21 til May 31 15:22:30 .metadata/.log May 31 15:22:56 bubbleguuum thx ill check May 31 15:23:04 * readme builds release builds with ant & signs on cli. May 31 15:26:28 hello May 31 15:26:59 I'm trying to set an onClick programatically and I've done the following: TabOneTV.setOnClickListener(this); ....but how do I create the case statement in the onClick(View v) ....How do I reference it? May 31 15:27:56 pls, i need help with swipe detection. I need to detect swipe (left,right, up, down) on an activity and all of the views on the activity, but the onclick methods should work on the views too. pls if u can help, msg me May 31 15:28:22 john_doe_jr: are you setting your activity as the on click listener for all your controls? May 31 15:28:52 wongk-home: yes.... May 31 15:29:08 does that really seem like the cleanest design May 31 15:29:19 what do you suggest then? May 31 15:29:33 separate onClick listeners for each control May 31 15:29:39 Rintano: you'll have better luck if you come at us with some code that you tried to use May 31 15:29:48 "PM Me 4 help" isn't really in the culture of any IRC channel. May 31 15:29:53 hi guys! :) sup? May 31 15:29:59 ohai May 31 15:33:12 hey guys... I am wondering if I can move one of my classes to a seperate file on its own but when I do my sqlite database queries all kick up a fuss about MODE_Private? any ideas May 31 15:33:23 Rintano: look into viewpager sourcecode May 31 15:33:28 that should give you a very good idea May 31 15:33:29 MODE_PRIVATE May 31 15:33:32 Hey I have the Samsung galaxy s2 with gt-I9100 android version 2.3.3 when I try to use the built in Software update system it downloads the whole thing, asks for reboot and then I see something happening in the initialization process, reaching only 14% and then it loads up regularly and tells me that updating has failed and that I should try updating via Kies or seek local samsung center. any suggestions? May 31 15:33:56 ygold: try updating via Kies or seek local samsung center May 31 15:34:07 ygold: that's really not an appropriate question for this channel. Try #android May 31 15:34:58 evancharlton knows his shit May 31 15:35:19 hi here again May 31 15:35:42 aerocam: Context.MODE_PRIVATE May 31 15:35:53 sweet May 31 15:35:54 I followed instruction from http://source.android.com/source/downloading.html, but I see that I'm building much more than I need with that. How do I build Android library (android.jar) only? May 31 15:36:13 thanks evancharlton May 31 15:36:29 mdim: lunch sdk-eng ; make sdk (I think that's the right target, anyway) May 31 15:36:42 mdim: basically, find the right lunch target, then find the right project, just make that project. May 31 15:37:38 evancharlton: is there any documenatition about lunch? I don't see where can I find a list of build and buildtypes May 31 15:42:51 mdim: it's just a bash function, so no, not really May 31 15:42:57 mdim: read build/envsetup.sh May 31 15:43:09 mdim: you might want to subscribe to the android-building google group May 31 15:45:17 thx evancharlton May 31 15:45:35 [11:37:38] evancharlton: is there any documenatition about lunch? May 31 15:45:36 mmm May 31 15:45:37 lunch May 31 15:46:23 everyone in my ofifce just started shouting all at once May 31 15:47:36 SimonVT: http://stackoverflow.com/questions/10836679/android-datepicker-min-max-date-before-api-level-11/10836915#10836915 May 31 15:50:18 how do you get the user's preferred date/time format? May 31 15:50:28 \o/ May 31 15:50:36 canadiancow|work: DateFormat May 31 15:50:43 the one in android.text.format or whatever it is May 31 15:50:47 for serious? May 31 15:50:48 ffs May 31 15:50:50 for srs May 31 15:50:51 if its so fucking simple May 31 15:50:54 then why is this code... May 31 15:51:16 http://developer.android.com/reference/android/text/format/DateFormat.html May 31 15:51:20 readme: i'm populating my data set from the gallery class because i need to acces the position of the array (i populate it when the position is at the end of the list and needing more elements) May 31 15:51:51 canadiancow|work: the annoying thing is that android.text.format.DateFormat returns a java.text.DateFormat, so one of them has to be fully-qualified in your code >.< May 31 15:51:53 readme how could i do it otherwise? the problem is that then i lose access to my list array May 31 15:52:02 anyone have *ANY* idea why rescheduling tasks via handler.postDelayed would hard freeze the os? May 31 15:52:03 lol May 31 15:52:03 ddreamer0: you use the adapter. May 31 15:52:05 all i can access is my adapter May 31 15:52:12 ron_frown: post code May 31 15:52:14 ddreamer0: shove the data in the adapter, call notifyDataSetChanged() May 31 15:52:17 bam May 31 15:52:24 yeah, that's what i'm doing May 31 15:52:26 ok May 31 15:52:27 i wasn't even aware of the android version of DateFormat May 31 15:52:29 so what's the issue then? May 31 15:52:32 but it's a bit uncofortable May 31 15:52:33 i just use the java version May 31 15:52:41 ddreamer0: that's the *right way* trust me. May 31 15:52:42 "android version"? May 31 15:52:47 every 15sec I postdelayed runnable that literally just takes a final startdate, and subtracts that from new Date() May 31 15:52:55 to update a label May 31 15:52:56 wongk: like I said, it gives back the java dateformat, configured according to the user's preferences. May 31 15:52:58 i cant .addAll() because that's a List method, i can't add(Obj,position) either May 31 15:53:00 ron_frown: that's not code. May 31 15:53:08 ddreamer0: you can call that on the list! May 31 15:53:19 readme: and it's making my controller really slow, doing it from the onScroll() May 31 15:53:22 oh wow, there is an android version! May 31 15:53:24 so does DateFormat.getInstance or whatever it is :P May 31 15:53:25 don't lose your list reference keep one. May 31 15:53:28 evancharlton: because I am not asking about the god damn code May 31 15:53:32 wongk: no it doesn't May 31 15:53:45 if it's really slow you probably did something inefficient, unfortunately i can't just guess what that is. May 31 15:53:46 readme yeah but i don't have access to the list, only to the adapter May 31 15:53:47 should anything be able to hard freeze the os? May 31 15:53:47 wongk: that uses their Locale, that's not the same as using the user's preferences. May 31 15:53:48 seems kinda pointless. May 31 15:53:56 ddreamer0: how is it that you don't have access to the list? May 31 15:53:57 ron_frown: yes. Blocking the UI thread, for example. Post code. May 31 15:54:02 show the code May 31 15:54:06 evancharlton: oh? none of my users has complained about it May 31 15:54:07 moonlightcheese: it's not. May 31 15:54:09 blocking ui thread should cause ANR May 31 15:54:17 android is super agressive about that May 31 15:54:21 AND May 31 15:54:25 ron_frown: for the last time, post a test case. May 31 15:54:30 gfys May 31 15:54:32 i've frozen the OS playing with the bluetooth stack before. May 31 15:54:47 * readme chortles May 31 15:54:48 readme because i implemented a custom adapter in a new file, overriding onScroll for an example, but i lost acces to my list's scope May 31 15:55:00 (the main activitys scope) May 31 15:55:06 ddreamer0: code, show it you must! May 31 15:55:10 wongk: that doesn't mean you're doing it right :) May 31 15:55:38 that is true, but i know some of them are international, so i assume its working for them May 31 15:55:49 working well enough for them to not complain :) May 31 15:55:53 indeed May 31 15:56:09 so what determines the locale, then? May 31 15:56:26 wongk: the system. The Locale isn't the same as their preferences, though. May 31 15:56:38 what's in the box! May 31 15:56:38 evancharlton: so there is no correlation? May 31 15:56:57 readme ok lol May 31 15:56:58 i understand the system determines it, but how May 31 15:57:00 wongk: Locale will give things like mm/dd/yy vs dd/mm/yy May 31 15:57:13 wongk: but the user can configure things like 24h time May 31 15:57:18 ohhh May 31 15:57:21 hello May 31 15:57:23 gotcha May 31 15:57:23 android.text.format.DateFormat will take care of all of that for you May 31 15:57:35 i was thinking only of the language user option May 31 15:57:41 if an app crashes is the crash logged by default (at least for some time) on the device? May 31 15:57:53 readme: to top it all off, i think i'm using AsyncTask in a wrong way because it's freezing...that's probably whet make all so slow May 31 15:57:56 i'll post both May 31 15:58:30 evancharlton: i see the other options now May 31 15:58:34 wongk: the good news is that it's pretty painless to switch to a.t.f.DateFormat May 31 15:58:45 i assume my users just happen to use the defaults for their language May 31 15:58:54 add one to the TODO list May 31 15:58:58 :) May 31 15:59:05 wongk: and in all honesty, they probably do. May 31 16:01:41 well that is annoying that they're named the same thing :P May 31 16:01:51 wongk: yeah :-/ May 31 16:02:00 I usually leave a.t.f.DateFormat fully-qualified May 31 16:02:02 readme: this is my custom controller in its separate file, i use the onscroll to identify the last element of the gallery http://pastebin.com/bXzy9Pwk May 31 16:02:09 what’s in the fucking box?… tell me what’s in the fucking box May 31 16:02:15 apparently undocking your laptop with wifi disabled doesnt work too well May 31 16:02:38 mikedg: you know what's in the box. Ask Justin Timberlake to show you. May 31 16:02:54 readme: and here the AsyncTask May 31 16:02:58 http://pastebin.com/CqMjiW6C May 31 16:03:53 which is freezing when i call it to get a list in return: eventosRes = new AsyncPopulate((Activity)context).execute().get(); May 31 16:04:12 the .get is fucking it up and making the thread freeze May 31 16:04:16 ddreamer0: why do you do what you do in onScroll? May 31 16:04:24 Question: I have some edittext's in a listview, and when i tap one to gain focus and bring up the keyboard, the keyboard comes up, the listview resizes, and my edittext loses focus. How can i have that edittext maintain focus? May 31 16:04:29 pls, i need help with swipe detection. I need to detect swipe (left,right, up, down) on an activity and all of the views on the activity, but the onclick methods should work on the views too. pls if u can help, msg me May 31 16:05:05 its quite a predicament and Im' sure the solution is far more obvious than I'm making it May 31 16:05:09 readme i don't know where else i can get the position of the visible gallery element, that was my question in the beginning May 31 16:05:10 ddreamer0: your onPostExecute method signature is wrong May 31 16:05:21 it should take a List as its first param May 31 16:05:28 use @Override annotation on it May 31 16:05:30 readme i've also tried in the adapters getView but it didn't work that great at all May 31 16:05:44 ddreamer0: getItem... May 31 16:05:49 the adapter always knows that May 31 16:05:59 unless you wrote your own and implemented it wrong May 31 16:06:19 i used the position var but it still didn't work as good there was some problems with the position May 31 16:06:25 is it possible to detect swipe gesture on the screen, and till have the default onclick function for every view on the screen? May 31 16:06:28 readme no i didnt... May 31 16:06:44 ddreamer0: then you can get the current item with the adapters getItem method. May 31 16:06:56 but really, you should just grab it directly from the data source. May 31 16:07:04 what you want to do is too unclear May 31 16:07:25 i really have no idea what you are trying to do just that it doesn't work and this is what you tried May 31 16:08:25 it looks like you never did anything with eventosRes list of Eventos in the AsyncTask subclass. May 31 16:08:28 Did you fix that yet? May 31 16:08:45 make onPostExecute take it as a parameter and then populate the gallery's data source with it. May 31 16:08:46 readme ok so i'm trying to control what item my gallery is currently viewing (it only shows 1 at a time), so when it reaches the last element it will load more through a webservice May 31 16:09:17 you shouldn't be controlling that-- you should be detecting that in the adapter then firing off a task that updates the data then the adapter. May 31 16:09:22 I see no adapter here May 31 16:09:27 you need to write a custom adapter May 31 16:09:55 readme i have an adapter in my main activity, i'll post it too just a sec May 31 16:09:58 you have the AsyncTask part almost right May 31 16:10:43 readme i only wanted to get eventosRes filled by the asynctask and returned May 31 16:10:54 then i add those elements in the contoller May 31 16:10:57 to my adapter May 31 16:11:14 then you need to pass: the adapter reference, and the List reference to your AsyncTask May 31 16:11:20 so that it can update them in onPostExecute May 31 16:11:24 in the custom gallery class i posted, excuse me May 31 16:12:08 readme i tried that an it got messy, made conflicts and nullpointers on the adapter i think May 31 16:12:17 i passed them as constructor params May 31 16:12:21 because you failed to implement it doesn't mean it's wrong May 31 16:12:33 ok i can try again May 31 16:12:35 yep May 31 16:12:38 let me know later May 31 16:12:59 I have some edittext's in a listview, and when i tap one to gain focus and bring up the keyboard, the keyboard comes up, the listview resizes, and my edittext loses focus. Any ideas how I can maintain the edittext's focus despite the keyboard opening/listview resiszing? May 31 16:13:02 ok thanks, xcuse me when you said List as first param did you mean so: ? May 31 16:13:20 class AsyncPopulate extends AsyncTask< List, Void, Void > May 31 16:14:04 t possible to detect swipe gesture on the screen, and till have the default onclick function for every view on the screen? May 31 16:14:24 is the order of those = the order in which you define the method functions ? i don't really get the relation May 31 16:14:30 ddreamer0: no, the way it is currently is fine. May 31 16:14:48 pass the adapter too May 31 16:14:53 and you said i should @Override the methods? i've seen it done both ways May 31 16:15:03 the correct way is to put the @Override. May 31 16:15:08 ok May 31 16:15:11 it would be preventing the error you ar making right now May 31 16:15:14 must i do super(???) ? May 31 16:15:19 if i override ? May 31 16:15:41 no May 31 16:15:43 which, the .get() freezing error ? May 31 16:15:49 readme, you and @ctate were trying to help me yesterday with that startService call that kept failing from inside a broadcastreceiver. still working on that issue lol May 31 16:15:51 (that would be nice) May 31 16:15:51 Hello, complete newbie to android dev here. I'm seeking help with development of a simple custom bluetooth-spp app for communication with the engine computer of the 91-95 acura legend. I have all information needed on the serial protocols which are working on my PC, and the ability to make changes to them. They are NOT obd2 compatible. Goal with program is to datalog (one way) with displayed May 31 16:15:52 gauges and send various commands (two way) and upload changes to NVSRAM (two way). Willing to pay for help developing program, but would like to learn as well. I have the sdk and eclipse w/ plugin installed on my PC. May 31 16:16:01 dragorn: you have an issue with your onPostExecute, it won't be called May 31 16:16:03 ddreamer0: * May 31 16:16:09 because it has the wrong method signature. May 31 16:16:16 luxurymode: =o May 31 16:16:19 good luck May 31 16:16:33 evancharlton: sorry... I got bent May 31 16:16:35 i have to go get my deposit back from my landlord asap May 31 16:16:37 issue is more android-porting May 31 16:16:40 not android-dev May 31 16:16:48 sr5guy: ill do that for 50k May 31 16:16:50 someone who have experience with swipe detection pls? May 31 16:16:56 samples from http://developer.android.com/resources/articles/timed-ui-updates.html May 31 16:17:01 mikedg: lol May 31 16:17:35 sr5guy: not here, elance.com May 31 16:17:38 i'll do it for $49,999 May 31 16:17:50 readme ummmm where is the method signature wrong? don't get it . is that why i should be overriding ? May 31 16:18:01 something with rom is grenading with simple ui updates triggered from postDelayed May 31 16:18:12 ddreamer0: the method signature is wrong because you put List in the last generic parameter field May 31 16:18:23 that field designates what type the onPostExecute takes as a parameter. May 31 16:19:07 readme i tried with all void, but it seems like it's the parameter they receive and the one they return May 31 16:19:20 it's weird tried with all combinations May 31 16:19:25 ddreamer0: and you didn't put it in the method's parameter list May 31 16:19:26 so its wrong May 31 16:19:29 is there someone who have exp. with swipe detection? tnx May 31 16:19:32 please don't push me over the edge :) May 31 16:19:35 i'm about to explode May 31 16:19:45 just put the damn List in your onPostExecute parens May 31 16:20:04 someone call the bomb squad May 31 16:20:26 How would you compile an android app from the command line? May 31 16:20:35 $ ant debug May 31 16:20:39 readme ok ok May 31 16:20:45 android update project --path . --target <#> ; ant debug May 31 16:21:15 wongk: thanks May 31 16:21:17 thanks i'm going to pass the adapter and data list into the AsykTask and see if i can add the elements from there May 31 16:21:24 gl May 31 16:21:25 readme: i get "bash: ant: command not found" plz help! May 31 16:22:02 wongk: have you installed ant? May 31 16:22:20 Leeds: i don't understand! whats ant?! May 31 16:22:30 bugs May 31 16:22:34 you dont want bugs May 31 16:22:38 sounds terrible May 31 16:23:30 someone with experience with swipe detection. pls help me May 31 16:27:08 Rintano: just grok the ViewPager source May 31 16:27:15 wongk: try install app inventor!? May 31 16:27:50 as long as there's no ants! May 31 16:28:00 * readme ant release May 31 16:28:05 OH NOES ANTS EVERYWHERE May 31 16:28:14 ant release May 31 16:28:16 then ant debug May 31 16:28:19 that gets rid of them May 31 16:28:25 zing May 31 16:28:44 oh my, there really is an app inventor May 31 16:28:50 that saddens me May 31 16:29:21 tnx wongk. is any chance to capture the swipe gesture on an activity with lot of textviews? May 31 16:29:34 its a good thing.. I don't think anyone will be using it to write apps for astronauts though. May 31 16:29:37 so dont worry May 31 16:30:10 the astronauts are safe May 31 16:32:22 my problem is, i have an activity with 4 tables and around 200 textviews in the tables. i need to detect swipe gesture on the whole screen. atm the implementation i have works on the part of the screen which is empty, but on the part with tables and textviews does not work....someone who can help pls... May 31 16:34:57 anyones know why i have to reboot my phone before windows recognized it May 31 16:37:55 evancharlton: was extremely frustrated that android-porting is often a place where I do the question answering, can never seem to get an answer to my questions =) May 31 16:38:15 i found it ;) May 31 16:38:19 wongk: thank you so much for the link. https://www.elance.com/job/30914012/proposals?persisid=30914012_1 May 31 16:40:19 ron_frown: posting vague descriptions split up into multiple lines doesn't help anyone. Posting a reproducible test case does :) May 31 16:40:35 anyway, I realize you were frustrated, which is why there wasn't a +b with that /kick :P May 31 16:41:32 it doesnt matter, its not reproduceable, its an os problem... I literally took samples form http://developer.android.com/resources/articles/timed-ui-updates.html May 31 16:41:40 cept date calculations to update a label May 31 16:42:26 readme___: what's up? May 31 16:42:52 so anyone here with a raspi? May 31 16:42:54 I guess I was just looking for confirmation to my assumptions that, 1) theoretically hardfreezes should not be possible because of androids aggressive management, 2) as long as I stuck with the handlers postingDelayed the same runnable, I shouldnt be running into a threading issue May 31 16:42:54 <|z> hmm May 31 16:42:57 john_doe_jr: i wonder who that is nick spoofing me May 31 16:42:58 err hmm i think i should be in #android-root nm May 31 16:43:16 john_doe_jr: oh, it's me May 31 16:43:21 evancharlton: anyway my comments were uncalled for May 31 16:43:26 apologize May 31 16:43:33 oh alright May 31 16:43:59 <|z> hmm May 31 16:44:23 <|z> weird May 31 16:44:26 john_doe_jr: thanks. my irc box was down May 31 16:44:29 it just went back up May 31 16:45:12 alright...cool we figured that out just by me saying hi too u May 31 16:45:57 * readme has to go confront his snake landlord for a deposit. May 31 16:46:06 <|z> hmm May 31 16:46:40 readme, your landlord is an ophidian? May 31 16:47:08 yes May 31 16:49:14 ron_frown: no worries. I'm curious, though. If it's an OS problem, how is it not reproducible? May 31 16:49:47 its reproduceable for me... because I am working with custom android build =) May 31 16:49:57 not a GOOGLE os problem =) May 31 16:50:48 but that being the case, I'm surprised things work 99%, with the weird niche case where android doesnt appear to be catching this problem before it occurs May 31 16:51:02 eg, ANR May 31 16:51:12 wonder if its just a hardware stability problem. May 31 16:52:08 readme: Alright, I've got the following function called tabsInit() that initalizes a tab and sets the OnClickListener to the function underlineText(TabOneTV)....I'd like to have it so that the user presses a TextView on one of the Tabs and it is underlined....the R.drawable.tv_state_colors turns the background of each tab blue but all the tabs are underlined....how can I set this up so that when a user presses on one of the tabs...that Tabs Text is un May 31 16:54:24 Well, anyone can help ...not just readme.... May 31 16:55:41 wongk-home: ? May 31 16:56:07 ron_frown: ah, hm. Yeah, it sounds like surfaceflinger or something down there is getting deadlocked May 31 16:56:23 john_doe_jr: ! May 31 16:56:30 hmm thats a good point... could be. May 31 16:57:12 After calling mCamera.takePicture() .. I call mCamera.startPreview() but the application hangs .. help ? May 31 16:57:29 john_doe_jr: sorry, on my way out May 31 16:57:43 readme: no problem May 31 16:57:45 laster May 31 16:57:48 *later May 31 16:57:52 CVirus: Something like that should probably not be on the UI thread right? May 31 16:58:23 Knossos: it is on a UI thread May 31 16:58:49 Knossos: I just want to take a picture and resume the display May 31 16:59:09 Put it in an AsyncTask. That is what I would do. Processing the image onBackground, then onPostExecute you can do whatever UI tasks you want with the image. May 31 17:00:01 Has anyone succeeded in creating an usable Web-App for Android? Without quirks like target-densitydpi=153... And without writing device-specific pages... May 31 17:01:11 I am interested in some real-life projects, rather than academic interest and documentational ones. May 31 17:01:19 Knossos: Thanks .. I'll see what I can do May 31 17:01:31 someone who have experience detecting swipe gesture on activity. pls pls help me May 31 17:02:52 Rintano: http://www.monkeycancode.com/simple-gesture-fling May 31 17:04:12 Knossos: tnx. i implemented something like this, but it works just if i swipe on the unused part of the activity. if there is an another element, it does not work May 31 17:05:12 You should be able to set the gesture to listen on any View. May 31 17:05:43 Knossos: Camera.takePicture(): After calling this method, you must not call startPreview() or take another picture until the JPEG callback has returned. May 31 17:05:44 but if i have 200+ views on the activity??? May 31 17:05:52 Knossos: how can I know that the JPEG callback has returned ? May 31 17:06:11 and it works if the swipe would begin on the one view and end on the another? May 31 17:06:17 You will need to set a listener I assume. May 31 17:06:27 (for the camera question) May 31 17:07:41 CVirus: You can attach the listener to the parent of your views. If you are using a LinearLayout for example May 31 17:07:57 Knossos: what listener ? May 31 17:08:14 I don't know, have a look at the Camera javadocs May 31 17:08:29 But if it is talking about a Callback, then you will need to create a Listener for it May 31 17:11:18 Knossos: can you link me to something about creating listeners ? May 31 17:11:53 Knossos: how can i get the swipe detection work on the whole activity? over the views too? exist any layer what can be defined over the whole screen to catch just the onFling, but let trough the onclick? May 31 17:12:07 hi, whats the equivalent of the old Notication FLAG_INSISTENT in Notification.Builder? May 31 17:13:35 CVirus: http://goo.gl/o3vl8 May 31 17:13:47 The part that you will be interested in is: Camera.PictureCallback jpeg May 31 17:14:03 That means you need to implement the Camera.PictureCallback callback, with a listener May 31 17:14:38 To learn about Listeners and Callbacks you will want to go to google May 31 17:14:58 That is some fairly basic Java, and there are hundreds of tutorials on that subject. May 31 17:15:28 Knossos: I'm using the PictureCallback already .. I'll see how I can do this listener thing May 31 17:17:31 Rintano: To get the swipe to work on the whole activity, just follow the directions in the link I sent you May 31 17:17:47 That shows you how to swipe on an Activity May 31 17:19:07 Knossos: i made the same, but it does not work. if i make the swipe on the unused part of the activity, it works great, but i have a table for example with 30 textviews(this textviews have onclick methods). if i swipe on the table part it happends nothing :( May 31 17:20:56 Knossos: and i have almost 100% the same source as in your example, just the variable names are other May 31 17:33:15 hi all, I have an android app based on webview. Sometimes webview receive the reponse too slow. How can I improve performance of webview to load json data? May 31 17:33:19 Thanks so much May 31 17:33:38 don't use webview? May 31 17:33:43 make smaler json May 31 17:35:11 mikedg: if I dont use webview. Can I replace it with another one? May 31 17:37:36 if you don't use webview, you'd probably be using native gui May 31 17:37:41 +1 May 31 17:37:52 a webview-based app is a great way to have a shitty looking app May 31 17:38:45 most overused control evar May 31 17:39:09 WebView is deprecated in Anroid 5.0 Jellybean May 31 17:41:22 like just make a mobile website May 31 17:41:31 is android SDK does not work with JDK 7u4 atm? May 31 17:41:35 ERROR: No suitable Java found. In order to properly use the Android Developer May 31 17:41:48 but I have exported the path via environment already May 31 17:41:50 1.6 May 31 17:49:56 readme hi are you still around ? May 31 17:51:25 wow why mikedg May 31 17:56:43 hkhalid: hey, the /topic of this channel got set to "Gullible" May 31 17:57:29 anyones know why i have to reboot my phone before windows recognized it May 31 17:57:36 evancharlton, ah shucks! you got me cool guy! May 31 17:57:54 Samsung Galaxy Nexus. + AKPO Rom + Franco Kernel May 31 17:59:31 probably because you're running some winzipper-created l33t roms May 31 18:00:18 evancharlton: do you know how to fix it;) May 31 18:00:24 windows knows you have an android and is trying to annoy you into buying a winphone May 31 18:00:33 haha wolfbyte May 31 18:00:39 wongk* May 31 18:00:42 haha , yeah May 31 18:01:05 Meik_P: yeah: https://developers.google.com/android/nexus/images May 31 18:01:23 Never :P May 31 18:01:46 evancharlton: howsa bout you make one of those for CDMA/LTE =D May 31 18:02:22 evancharlton: cant be used with franco kernel? May 31 18:02:32 or? May 31 18:02:42 Meik_P: I don't know. Ask the author of that rom what they changed May 31 18:02:53 Yes sir! ;) May 31 18:02:55 Meik_P: this is the android application development channel btw May 31 18:02:56 Meik_P: either way, this isn't the right channel for that question May 31 18:03:03 take it to #android-root May 31 18:03:04 not the 1337 android rom h4x0r channel May 31 18:03:09 == MDijkstra May 31 18:03:49 I have a problem getting Android up and running on an OMAP3, anybody have time to help? May 31 18:04:44 droid_noob: don't know how much help I'll be, but sure May 31 18:04:49 I have Linux booting but it seems Android can't fully start up May 31 18:05:23 First of all I am getting constant "init: untracked pid xxxx exited" on the console May 31 18:05:44 but that seems to be a symptom May 31 18:06:03 I am connected to adb via the network and i'm getting the logcat messages May 31 18:06:15 which phone or board is this? May 31 18:06:53 not a phone, its omap3evm May 31 18:06:59 any way to re-execute an async task with the same parameters, without keeping a reference to the original parameters in your activity/fragment? May 31 18:07:00 a custom hardware device May 31 18:07:04 or board I said May 31 18:08:02 so it appears to be stuck in some kind of a loop where programs are killed and re-ran May 31 18:08:21 i'm using DDMS in Eclipse May 31 18:09:00 under Devices I see my device and its *supposed* to show a dropdown of running procs on that device, however that is not the case May 31 18:09:08 here is some logcat output: May 31 18:10:35 05-31 18:07:18.500: E/PhonePolicy(26871): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback May 31 18:10:48 oh please don't paste it here in the channel May 31 18:10:56 pastebin it or something May 31 18:11:11 I was going to selectively paste the errors May 31 18:11:17 i'll pastebin May 31 18:12:44 http://pastebin.com/DivJD3dD May 31 18:12:49 as you can see there is some looping going on May 31 18:13:53 a more specific task of mine is to implement GPS on this hardware. I saw online that I need to implement the gps.h file however I would like to get a "stable" Android before I head down that path May 31 18:14:15 It could be that it is not starting up because there are missing implementations (such as GPS for example) May 31 18:14:54 btw this is IceCreamSandwich May 31 18:15:12 droid_noob: hm, I'm not completely sure May 31 18:15:22 but isn't the kernel's OOM killer killing your processes? May 31 18:16:10 or maybe not May 31 18:16:36 one thing that's definitely not right is the fact that you have no framebuffer device May 31 18:16:45 ie: May 31 18:16:46 05-31 18:07:47.125: E/FramebufferNativeWindow(27012): couldn't open framebuffer HAL (No such file or directory) May 31 18:16:59 this device currently has no display attached May 31 18:17:37 i'm working only via the network May 31 18:17:47 hi May 31 18:17:54 readme u there ? May 31 18:21:02 droid_noob: which version of android, how much RAM? May 31 18:21:46 ICS and 256 MB May 31 18:21:59 I think that might not be enough May 31 18:22:14 at least not without tweaks May 31 18:22:19 yeah, ICS has a minimum of 512mb May 31 18:22:24 hmm that is troubling May 31 18:22:28 according to my recollection of the CDD, anyway May 31 18:22:45 droid_noob: what's happening is the kernel's OOM killer kills the system server process halfway May 31 18:22:53 android sees that it's dead, restarts everything May 31 18:22:57 hence the boot loop May 31 18:23:24 ah May 31 18:23:41 I thought it was Android itself panicking and restarting May 31 18:23:45 Device implementations MUST have at least 340MB of memory available to the kernel and userspace. The 340MB MUST be in addition to any memory dedicated to hardware components such as radio, video, and so on that is not under the kernel's control. May 31 18:23:49 bam May 31 18:23:53 but why do you want ICS? May 31 18:23:57 source? May 31 18:24:04 http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/4.0/android-4.0-cdd.pdf May 31 18:24:10 ie, this is only going to get worse once you factor in the UI May 31 18:24:13 the current version of the CDD, as found on source.android.com May 31 18:24:18 MDijkstra: great question, the customer wanted "latest and greatest" ... :\ May 31 18:24:32 droid_noob: latest and greatest for 256mb of RAM is probably gingerbread May 31 18:24:35 droid_noob: 1gb is generally accepted as the comfortable amount of RAM for ICS May 31 18:25:03 I see May 31 18:26:09 Anyone know why ICS is still not (re)released for Nexus S? :( May 31 18:26:14 Hey, am I right in thinking that once the application is open I can't write to strings.xml. And as I want to download an xml file, parse it and puts its data into string arrays, the best thing to do would be to copy the data from strings.xml into a string-array within its own class, and then update that with the data from the parsed xml file? May 31 18:26:25 It's been almost 6 months now May 31 18:26:33 with an UI 2.1 is really the max for that OMAP imo May 31 18:26:48 http://www.h-online.com/open/news/item/External-I-O-board-for-Android-devices-1587529.html May 31 18:26:57 I used to run 2.3 on my motorola droid that had about the same hw as that board May 31 18:27:03 evancharlton, MDijkstra: I really appreciate you helping to look into this May 31 18:27:03 and that didn't work so well May 31 18:27:10 np May 31 18:28:08 Hi. Why don't secure sessions for PHP login systems work with Android.... I get stuck at the login screen... and wsywig editors too? geez. May 31 18:28:23 o_o May 31 18:28:23 hey folks May 31 18:28:44 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 18:30:13 I have a class that extends AsyncTask and implements PictureCallback ... When exactly is the onPostExecute() called ? May 31 18:31:07 after executing May 31 18:31:17 CVirus: sometime after doInBackground has returned May 31 18:31:43 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 18:31:45 some point after you return from doinbackground May 31 18:31:46 MDijkstra: mikedg: Does it wait for onPictureTaken() to finish ? May 31 18:31:59 it doesn't give a shit about onPictureTaken May 31 18:32:02 CVirus: You probably don't need the AsyncTask though for that, since that is why you have a Callback in the takePicture function May 31 18:32:03 CVirus: asynctask is a generic class that has little to do with onPictureTaken May 31 18:32:42 I realise I said the opposite earlier, but that was before I read the Camera javadocs. May 31 18:33:36 Guys, all I want to do is be able to call mCamera.startPreview() after I called mCamera.takePhoto() May 31 18:33:39 As I understand it, you just need to implement the callback directly May 31 18:34:50 CVirus: As an example of what I mean: http://android-er.blogspot.de/2010/12/implement-takepicture-function-of.html May 31 18:35:29 You will see there is a PictureCallback for JPG. That is the one it wants you to implement. May 31 18:35:45 And you just put that in takePicture May 31 18:36:27 wtf .. I just solved it by simply calling startpreview at the end of the callback :S May 31 18:36:30 AsyncTask would be the correct thing to do if you wanted to do some processing tasks on an image behind the scenes. However, in this case I think the Camera API takes care of the background processing for you. May 31 18:36:32 the review now restarts normally May 31 18:36:54 At the end of the PictureCallback? May 31 18:37:00 yes May 31 18:37:01 Yeah, that is what it wanted you to do. May 31 18:37:08 my god May 31 18:37:20 It wanted you to wait for that callback to fire before you could use it. May 31 18:37:27 the documentation says AFTER the callback has returned May 31 18:37:39 hi all May 31 18:37:59 Knossos: it took me hours .. damn it May 31 18:38:03 Knossos: thanks a lot anyways May 31 18:38:03 am considering getting into Android development and wanted to ask you some questions May 31 18:38:18 if i want to distro my android app to, say, 30 devices for a private client, is that possible? May 31 18:38:20 No problem May 31 18:38:40 WogerWabbit: sure May 31 18:38:44 WogerWabbit: You can create an APK and not distribute it on Google Play May 31 18:38:52 is there a name for that? like Enterprise distribution (on iOS) May 31 18:38:54 there's no iOS-like provisioning or app store only May 31 18:39:11 you just give a link to an apk, they install it May 31 18:39:13 done May 31 18:39:14 can that APK be shared with other devices? or can I lock it down? May 31 18:39:17 Send the APK to the people you want to install it May 31 18:39:47 WogerWabbit: you can lock it down in a sense you could make it download an authorization list or something May 31 18:39:50 It can't really be locked down. Unless you have some kind of client-server authentication. May 31 18:39:56 ahh May 31 18:40:01 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 18:40:34 WogerWabbit: but that's also far from foolproof on iOS May 31 18:40:44 yes May 31 18:41:23 so if someone got a hold of the install link they could install it, but it's up to me to make the app detect their device and allow it or not May 31 18:41:32 yeah May 31 18:41:33 Yep May 31 18:41:42 ok, that is very helpful. May 31 18:41:44 thank you May 31 18:41:53 Or you can just email it to the people you want to be able to use it May 31 18:42:06 As long as you trust them to not distribute it, that would be enough May 31 18:42:10 or encode it in the APK in some way May 31 18:42:12 what about in-app purchases; how are these managed? (yes, am also IOS dev) May 31 18:42:13 how can I reload preferences in a preferencesActivity when I resume it? May 31 18:42:21 it seems onResume only works with API 11 and up? May 31 18:42:28 Knossos: yes, but it's hard to extend that trust to say 50 people May 31 18:42:31 WogerWabbit: same here, btw May 31 18:42:38 MDijkstra: :) May 31 18:42:49 WogerWabbit: when you use the store there's an entire API for in-app purchases May 31 18:42:57 PreferenceActivity should manage that on its own shouldn't it? May 31 18:43:14 WogerWabbit: but again, you're able to implement your own classloader if you want to download code and execute it May 31 18:43:18 test May 31 18:43:42 nachoburton: Ground control to major tom May 31 18:43:51 Knossos: preferecneActivity; was that for me? May 31 18:43:52 thx May 31 18:43:54 WogerWabbit: ie, the API is there, you can download class files and load them on runtime May 31 18:44:01 For DammitJim May 31 18:44:19 no, I don't think it does it automatically May 31 18:44:41 MDijkstra: to run IAP outside of the store? May 31 18:44:53 Knossos: ok May 31 18:45:04 yeah, but without a store it won't really be a purchase, of course May 31 18:45:06 Well, all I know is that I use PreferenceActivity with/without Fragments. And I have never had to refresh anything therein. May 31 18:45:35 MDijkstra: ahh so no way to have IAP without store? May 31 18:45:59 Knossos, I'm changing the text in one of the options (login <-> logoff) May 31 18:46:10 WogerWabbit: well, you could reimplement it completely, ie, do the payment processing yourself May 31 18:46:16 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 18:46:37 MDijkstra: ok, so that is an option, good to know May 31 18:47:11 renegadeandy: your classpath is busted May 31 18:47:20 DammitJim: Ahh, that is a bit different May 31 18:47:21 WogerWabbit: in other words, the system won't stop you from loading executable code over http May 31 18:47:22 renegadeandy: it looks like you're missing the dropbox jar from your libs/ folder May 31 18:47:25 then loading it into your app May 31 18:47:43 yeah, I think I'm just going to finish the preferencesActivity and the user just has to navigate back to it May 31 18:48:21 I was finish()'ing my login activity, which was sending the user back to the preferencesActivity. This might not be ideal, but it works in this situations May 31 18:48:28 You can edit the preferences directly, I can't remember exactly what you have to do though May 31 18:49:11 evancharlton: its defo in there..? May 31 18:49:17 WogerWabbit: but then you cant put tha version on the android market May 31 18:49:55 DammitJim: You could try something like : http://stackoverflow.com/questions/2697233/how-to-add-a-button-to-preferencescreen May 31 18:50:08 I used something similar to that, once May 31 18:50:15 mikedg: right, May 31 18:52:38 mikedg: good point :) May 31 18:52:49 let's see May 31 18:53:16 it is possible then to say, have some device specific ID and check at runtime whether the current device is on that list May 31 18:53:43 "this device is not supported, please contact blah blah blah" May 31 18:54:14 yes, but thats lame May 31 18:54:40 yes, agree it can be, but in this case, the client wants to limit access May 31 18:55:32 You can't set a specific device ID to not allow (it is actually quite annoying to get a device ID at all). May 31 18:55:43 You may find this interesting: http://android-developers.blogspot.ca/2011/03/identifying-app-installations.html May 31 18:56:08 All of this said, if someone gets a hold of the APK they can probably change the lists you have internally and use the App anyway. May 31 18:57:00 hey guys, quick question - anyone used the android sdk with eclipse on debian? May 31 18:57:15 overburn, I have, why? May 31 18:57:17 evenchalton - my classpath is definitely correct? May 31 18:57:17 what about security? if i bundle resources, how hard is it to extract the resources (without any extra effort on dev side) May 31 18:57:31 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 18:57:51 DammitJim: well eclipse won't see the adb, and when i try adb devices , it just tells me ?????????? no permissions May 31 18:58:03 overburn, do you use sudo? May 31 18:58:05 Knossos: wait, what do you mean? (reading article now) so you cannot control who gets the content per device? May 31 18:58:12 WogerWabbit it's very easy to do that May 31 18:58:25 you need to ./adb kill-server and then ./adb start-server with super user privileges May 31 18:58:25 Atarii: so there is no built-in protection? May 31 18:58:28 DammitJim - no , but i tried with root and it was still ??????????????????/ no permissions May 31 18:58:45 WogerWabbit no, it's just an archived file May 31 18:58:53 ball-sack May 31 18:58:59 if this is the same problem I'm thinking, this is vastly documented online May 31 18:59:01 There are no globally defined device IDs May 31 18:59:39 DammitJim - oh, searched a bit, found nothing :( May 31 18:59:42 Knossos: what about Settings.Secure.ANDROID_ID ? May 31 18:59:49 try it and let me know May 31 18:59:50 brb May 31 19:00:01 If I recall, that constant is wrong on certain handsets May 31 19:00:05 That article explains it May 31 19:00:07 yes May 31 19:00:12 pre froyo May 31 19:00:19 WogerWabbit: Perhaps you could make people log in with their google accounts or something? May 31 19:00:21 and one popular handset doesn't implement May 31 19:00:31 Knossos: possible, but out of scope May 31 19:01:16 I'm afraid you don't really have too many options :P May 31 19:01:24 reading about google play licensing for android: http://developer.android.com/guide/market/licensing/index.html May 31 19:02:04 "An application can also restrict use of the application to a specific device, in addition to any other constraints." May 31 19:02:47 You are going to be out of luck making something completely proofed. If someone cares enough, and they have your APK, they will be able to extract/decompile it and invert your auth if clauses. May 31 19:03:16 sure, there is a drop-off May 31 19:03:23 all things can be cracked, etc. May 31 19:03:25 It can? I wasn't aware. May 31 19:03:43 i mean, there is a drop-off in terms of protection level vs. effort May 31 19:03:52 accepting that nothing is bullet proff May 31 19:04:31 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 19:04:59 can anyone recommend a quality android tablet app-testing service? May 31 19:05:32 renegadeandy: did the answer not help? May 31 19:07:01 WogerWabbit: which answer classpath? May 31 19:07:22 Yes, evan said something about your classpath May 31 19:07:37 yah May 31 19:07:44 well i checked it May 31 19:07:45 and it was fine May 31 19:07:56 how would it have been able to compile into an APK if it wasnt! May 31 19:09:46 overburn, did it work? May 31 19:10:45 DammitJim: - what work? May 31 19:11:39 doing ./adb kill-server and ./adb start-server May 31 19:12:25 renegadeandy: hmm dunno, just starting out in Android land May 31 19:12:47 renegadeandy: I'm gonna guess you didn't include some dropbox jar in your project properly May 31 19:12:54 As in, put it in libs/ May 31 19:13:03 i did May 31 19:13:10 it wouldnt compile if i didnt May 31 19:13:22 nope now it doesn't see my phone altogether May 31 19:14:01 overburn, can you pasty the results of ./adb kill-server and ./adb start-server ? May 31 19:14:05 Then you probably did something more, like mess around with project properties regarding jars May 31 19:14:23 ah wait May 31 19:14:35 reconnected the phone and it got recognized May 31 19:14:37 thanks mate : D May 31 19:14:49 build path or whatever it's called in eclipse May 31 19:14:56 yw May 31 19:17:54 can anyone give me an explanation for this problem I am having : http://stackoverflow.com/questions/10836778/java-lang-verifyerror-android-app-is-not-starting-after-moving-development-to May 31 19:21:06 The dropbox jar is not being included in your apk May 31 19:21:07 Fix that May 31 19:21:13 Then come back May 31 19:21:37 so, can anyone recommend a quality android tablet app-testing service? May 31 19:21:48 like if i don't want to buy a bunch of devices May 31 19:22:31 am i crazy or are the Google I/O sessions not showing up? https://developers.google.com/events/io/ May 31 19:23:55 SimonVT: what do i do to do that May 31 19:24:02 SimonVT: I add the jar to the libs folder May 31 19:24:07 SimonVT: I then add tro build path May 31 19:24:14 SimonVT: And I then run... May 31 19:24:16 See, you did mess it up May 31 19:24:20 You add the jar to libs May 31 19:24:21 That's it May 31 19:24:33 Don't play around with build path or whatever May 31 19:24:42 pwnt May 31 19:24:57 SimonVT: so you have a lib and a libs folder? May 31 19:25:05 Rockmaninoff: WFM. Hover over 'Schedule' and click the popup 'Sessions' May 31 19:25:05 I mean - I need to have it as part of build path so eclipse doesnt cry May 31 19:25:09 Why would I have a lib and a libs May 31 19:25:19 so rename lib folder to libs? May 31 19:25:27 ctate: yeah...i don't see anything there... May 31 19:25:30 Well, that's why I said libs May 31 19:25:39 (sorry, just lazy-linked the io site, not the session-specific site) May 31 19:25:43 ADT automatically includes stuff in libs May 31 19:25:50 getting other reports that no sessions are showing up as well... May 31 19:26:03 figured you Googlers might be working on the I/O app or something May 31 19:27:51 oh i see; the individual sessions don't show up May 31 19:30:20 hey guys, some shitty app is shitty, let's get this guy removed from the market https://plus.google.com/103876278794381402383/posts/ivGt25zQYTH May 31 19:31:43 This post could not be found. May 31 19:32:02 weird May 31 19:32:23 refresh? May 31 19:32:30 ctate you broke the sessions May 31 19:32:38 mikedg still no good May 31 19:32:42 Your URL may be incorrect, the post may have been deleted, or this account may not have access to the post. May 31 19:32:52 when I do searchBar.hidden = TRUE; it won't remove the frame where the search bar was, how shoult I do this ? May 31 19:33:16 maybe its not available in canada? May 31 19:33:27 https://plus.google.com/103876278794381402383/posts the second post May 31 19:33:55 Android Police hasn't shared anything with you. May 31 19:34:21 oh weird May 31 19:34:30 it says its public May 31 19:34:44 oh lol i had AP blocked May 31 19:35:19 haha i should block them too May 31 19:36:22 being a fan of android developers on g+ is a love hate thing May 31 19:36:32 they flood the shit out of my stream with mostly useless information May 31 19:36:38 every now and then a nice little gold nugget May 31 19:39:31 im going to start answering questions on my stream with cards from cards against humanity May 31 19:43:15 is there a way to put a variable in a class that extends View so that it accepts setting the variable via the xml layout? May 31 19:43:57 May 31 19:44:02 something like that. May 31 19:44:30 furthermore, is there a way to require that xml attribute for the class? May 31 19:46:21 ron_frown: i find g+ in general, and social even more general, to be a pile of crap :) May 31 19:46:36 "great work!" May 31 19:46:42 "love the post!" May 31 19:46:54 "Awesome, thanks!" May 31 19:47:01 ok, stfu :) May 31 19:47:43 hmm, this is evil somehow http://linux.slashdot.org/story/12/05/31/190217/red-hat-will-pay-microsoft-to-get-past-uefi-restrictions May 31 19:51:18 Microsoft just got a little peeved at Apple and Google trying to steal the anticompetitive spotlight May 31 19:51:28 They decided to raise the bar, show the kids how it's done May 31 19:51:43 Man, I would've been quite happy if Message was Message> :[ May 31 19:56:32 Interested in hearing how people version their apps for different android versions and or phone vs tablet May 31 19:56:59 Do you do a project for each or maybe branching May 31 19:57:35 jrock20041: yeah that is an interesting topic, i dont have an answer either May 31 19:58:46 g00s: yeah and I am trying to think of a good way to search google for this topic May 31 19:59:09 i kept coming up with how android aosp does branching May 31 19:59:10 What a strange question May 31 19:59:10 jrock20041: some people just swap the package name and the package name determines whether it's paid or not May 31 19:59:17 You of course make a single app for all platforms May 31 19:59:34 jrock20041: it's also really common to put all the shared code into a library project and have two "frontend" projects May 31 19:59:54 jrock20041: some people monkey their iOS approach with "HD" version for tablet, which is frankly speaking annoying May 31 20:00:02 i don't think he's referring to "free" and "paid" May 31 20:00:35 i think he's referring to using version control to manage specific configurations for specific android versions May 31 20:00:35 g00s: oh, right. May 31 20:00:40 then yeah, don't do that. May 31 20:00:51 just write sensible code that's backwards compatible? May 31 20:00:52 * evancharlton shrugs May 31 20:01:03 and works on multiple display sizes May 31 20:01:47 So basically I should write my app for the lowest version and write my layout in a way it looks good on both tablets and phones? May 31 20:01:49 is this blank for just me ? https://developers.google.com/events/io/sessions May 31 20:02:07 jrock20041: or even multiple layouts, if it makes sense May 31 20:02:56 wongk: so I assume in the manifest there is a way it can detect which device you are on and load the poper layout? May 31 20:03:02 well, there was 2012 i/o session that had a title like "multi version ui' or something like that May 31 20:03:07 jrock20041: You should write it for the highest version, then figure out what changes are needed for it to run on older platforms May 31 20:03:16 jrock20041: you can make a different layout easily May 31 20:03:20 gracefully degrade May 31 20:03:25 Hello guys, started with some andorid dev today. May 31 20:03:33 don't punish us ICS users with the APIs of only Android 2.1 May 31 20:03:34 hello. sorry if this is stupid but...i thought that StartActivity() behaviour was to pause the current Activity execution and started the new Activity one but... the debugger shows that the code after StartActivity is being executing for some time until the new Activity starts..is this the right behaviour or am i doing something wrong ? May 31 20:03:38 ok so now that is interesting May 31 20:03:42 And found this hello tabwidget example from google, http://developer.android.com/guide/tutorials/views/hello-tabwidget.html May 31 20:03:55 jrock20041: it doens't involve the manifest, but yes, it's easy May 31 20:03:56 but when setting up a new project with eclipse May 31 20:04:02 I dont have any xml file or such for layout May 31 20:04:07 j0p: startActivity is not synchrnous May 31 20:04:13 only the one where they say I should change to TabActivity May 31 20:04:49 JakeWharton : how do i make the code execution stop until the new activity finishes ? May 31 20:04:58 JakeWharton: so is there a way to nicely degrade or do you create multiple projects May 31 20:04:59 return; May 31 20:05:17 jrock20041: you write abstractions and check Build.VERSION.SDK_INT May 31 20:05:56 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { callNewAwesomeApi(); } May 31 20:06:08 damn it, why is this not working https://developers.google.com/events/io/sessions#android May 31 20:06:13 j0p: you don't, because that would be bad May 31 20:06:58 i need activity A to start activity B and then to execute some code after activity B finishes. should i put this code in the onStop() of activity B ? May 31 20:07:12 startActivityForResult May 31 20:07:47 thank you May 31 20:08:04 SimonVT: JakeWharton -- interesting May 31 20:08:21 you should almost never need multiple projects May 31 20:08:28 yep May 31 20:08:40 if you're doing that for versioning issues, you're doing it wrong May 31 20:09:57 Now as far as phone vs tablet, would I just write my login in the onCreate method where I load up the view? May 31 20:11:44 phone vs tablet, put different layouts in different res folders May 31 20:12:37 phablet May 31 20:12:40 i dont even like the term "tablet" anymore May 31 20:12:56 is 5" a tablet? May 31 20:12:58 6? May 31 20:12:59 7? May 31 20:13:04 where does it start May 31 20:13:05 SimonVT: is there a naming convention I need to follow? May 31 20:13:20 i like the term cock May 31 20:13:25 http://developer.android.com/guide/topics/resources/providing-resources.html May 31 20:13:28 This naming convention May 31 20:13:28 its much more fun than tablet May 31 20:13:30 say it May 31 20:13:32 i will cock your tablet May 31 20:13:32 7" cock May 31 20:13:42 3.5"? May 31 20:13:43 10" cock with a .25" thickness, May 31 20:15:03 SimonVT: Thanks May 31 20:15:05 maybe cocklet May 31 20:15:12 Well off to programming, thanks May 31 20:15:15 *ahem* May 31 20:15:31 sup evan May 31 20:15:53 The differences between a phone and a tablet are quite obvious. May 31 20:16:04 pragma-: what is a galaxy note!?@#$ May 31 20:16:06 * pragma- peers at the Note. May 31 20:16:11 It is a phone. May 31 20:16:42 what is http://www.google.com/products/catalog?rlz=1C1CHFX_enUS451US451&sugexp=chrome,mod%3D16&q=five+inch+tablet&um=1&ie=UTF-8&tbm=shop&cid=11902155204510725732&sa=X&ei=l9HHT8DwBZGe6gGc6bC_Dg&ved=0CMoBEPMCMAY May 31 20:16:52 Hey all, has anyone gotten a WebSocket server running on Android? I've played with netty, jetty, and some others, but no luck thus far. May 31 20:17:04 It is a tablet. May 31 20:17:57 is phone/tablet a question anyone should care about? May 31 20:18:11 Depends on whether you want to make phone calls or not. May 31 20:18:11 how about, is this screen big enough to display more information effectively May 31 20:18:43 You can't make phone calls with the screen. May 31 20:18:49 pragma-: what is a television? :) May 31 20:18:55 A television. May 31 20:19:25 It is the thing in itself. May 31 20:19:26 the phone-call thing is not going to remain an unambiguous differentiator forever May 31 20:19:31 DING AN SICH May 31 20:19:38 ctate: gunheinsdt. May 31 20:19:44 Wow, spelling fail. May 31 20:19:53 I don't even know how to spell that. May 31 20:19:59 Gesundheit May 31 20:20:03 Or say it. May 31 20:20:10 just like it's spelled, mostly May 31 20:20:18 If I knew how to say it, I probably could spell it. May 31 20:20:27 german -ei- is long-I vowel, similar to ahh-ee dipthong May 31 20:20:35 * pragma- catch-22. May 31 20:20:58 mmm, dipthongs. May 31 20:21:14 and the 's' is technically an initial s (the ge- prefix is special), so it's voiced (i.e. the usual english 'z' sound) rather than unvoiced May 31 20:21:27 hmmm, this secure boot madness is quite frightening May 31 20:21:31 welcome to #philology May 31 20:21:42 wongk: all your computer are belong to Windows May 31 20:21:49 apparently May 31 20:21:55 fortunately i can work a BIOS May 31 20:22:24 Here's hoping Windows 8 goes the way of ME May 31 20:22:43 hah May 31 20:22:47 http://anongallery.org/img/4/2/windows-8.jpg May 31 20:22:53 I just realized that despite not knowing how to spell it, I did infact get all the letters correct. May 31 20:23:04 * pragma- idiot savant. May 31 20:23:36 hee May 31 20:24:28 my understanding that windows 8 is windows 7 with metro duct taped on May 31 20:24:56 if by duct taped you mean riveted. May 31 20:24:57 switching between the 2 modes is jarring May 31 20:25:00 I got bitten by that Windows Live Desktop update they snuck into the updates May 31 20:25:06 What version of Windows has ever been anything but the previous version plus brand new shitty technology May 31 20:25:10 it actually completely deleted my desktop May 31 20:25:11 bolted. May 31 20:25:14 and my profiles May 31 20:25:14 welded really. May 31 20:25:27 My Windows 7 machine booted up as a Windows 95 machine, I shit you not. May 31 20:25:35 =o May 31 20:25:35 All theming and EVERYTHING was gone. May 31 20:25:47 you mean it just booted as the classic theme May 31 20:25:51 or actually booted as win95 May 31 20:25:55 I had to revert back to the back-up and I'm not clicking on 'Update' anymore May 31 20:26:05 wongk: I had a boatload of fun playing with employees in the Microsoft store the other day May 31 20:26:06 it was beyond classic theme May 31 20:26:25 like, all profiles, all settings, everything, just wiped. May 31 20:26:28 wongk: Asking exactly the right questions to make them fiddle with transitions and multitasking and the "real" desktop and watching them sweat May 31 20:27:06 Anyone aware of a way to set the height of the document dom element in an Android webview? May 31 20:27:06 Unfortunately all they have in stores is a tablet unit, not a Windows 8 desktop May 31 20:27:06 ? May 31 20:27:13 pragma-: I had a virus once that did something like that, but the files weren't actually wiped.. just hidden by a tainted filesystem driver. May 31 20:27:15 And the desktop is what Windows 8 ignores fantastically May 31 20:27:30 i am kind of on a no-windows-ever policy after that one. May 31 20:27:49 yeah, I don't know what happened, but I'm certain it was related to that Live Desktop update May 31 20:28:19 Rolled back to just before the update and everything's fine again. May 31 20:29:01 no me gusta May 31 20:29:06 well, now I have to fix actionbar's text menus not properly spacing the overflow button May 31 20:29:24 because I can't be arsed to design and draw icons! May 31 20:30:15 my programmer art is somewhat lacking May 31 20:30:17 * readme has been known to make some decent actionbar icons with inkscape May 31 20:30:28 Hooray for inkscape May 31 20:30:29 which icons are you in need of May 31 20:30:42 i get all of my icons from android.R :P May 31 20:30:47 Is there a best practice for having an HTTP server listen on a port? I'd like to be as event-driven as possible. May 31 20:31:15 1) displaying a graph; 2) filter; 3) sort; 4) start/stop service May 31 20:31:19 MontyCarleau: cross-compile node.js :) May 31 20:31:38 i'll see what I can do later on May 31 20:31:45 :o May 31 20:31:59 I have only sexual favors to offer in repayment. May 31 20:32:05 i'll pass May 31 20:32:12 pragma-: you can get all those from android.R May 31 20:32:20 wongk: which one displays a graph? May 31 20:32:33 let's see May 31 20:32:39 i acutally have some decent free icons here May 31 20:32:42 that have graphs May 31 20:33:00 readme: doesn't it seem like, for simple web-service purposes, NIO could do everything Node.js does? May 31 20:33:01 http://androiddrawableexplorer.appspot.com/ only shows 2.2 icons May 31 20:33:16 MontyCarleau: i don't know, I was being facetious May 31 20:33:22 there's certainly a java based solution out there May 31 20:33:29 oh wait, i have an ics repo here May 31 20:33:54 readme: They don't seem to play nicely with android - netty, jetty, etc. May 31 20:34:05 ic_menu_gallery would actually work May 31 20:36:06 scp /frameworks/base/core/res/res/drawable-hdpi . May 31 20:36:09 er May 31 20:36:26 how do you make a TextView uneditable May 31 20:37:15 MontyCarleau: what did you find about jetty that doesn't work? May 31 20:37:19 " 29% of USA Adults Own Tablet / eReader, Up from 2% Less Than Three Years Ago" :O May 31 20:37:38 pragma-: also http://code.google.com/p/android-ui-utils/ May 31 20:37:42 yup, takes about a minute to switch branches from gingerbread to ics May 31 20:37:55 http://code.google.com/p/i-jetty/ May 31 20:37:59 MontyCarleau: looks like a good bet there May 31 20:39:08 is it possible to run app which use calendar on avd...? May 31 20:39:39 Maybe it's based on an earlier version. 8.1.4 has issues with android's javax.servlet. May 31 20:40:10 readme: I'd like to use a WebSocket server in the ideal setting, but it may just not be my lucky day. May 31 20:40:12 i dunno about ic_menu_gallery -- looks more like a mountain range in a picture frame May 31 20:40:24 but I can see the similarity May 31 20:41:18 I could use play and stop for start/stop service May 31 20:41:43 I dunno May 31 20:41:46 pragma-: it's the best i saw :P May 31 20:41:47 I like the text. May 31 20:46:59 I wonder, can I send a "Message" to a Handler using 'am'? That'd be very convenient for not having to hookup buttons. May 31 20:47:08 To do the same thing, that is. May 31 20:53:22 I'm using tabs and I've got a little portion of the screen that is overlapping w/ another view....how can I prevent this? May 31 21:00:48 i think google should have a book like this for android http://shop.oreilly.com/product/0790145336651.do May 31 21:01:26 at least, when i see the "Internals" part of the title, it reminds me of the Windows Internals book May 31 21:01:43 which goes deeper into architecture, how things work at lower levels, etc May 31 21:02:36 there is such a book May 31 21:02:45 orly ? May 31 21:02:53 unfortunately, it's published as a collection of several thousand individual source files. May 31 21:03:04 :) May 31 21:05:36 it's also a bit of a dry read ;) May 31 21:07:24 ... wow. May 31 21:07:26 $ find . -type f -o -name .repo -prune -o -name .git -prune -o -name out -prune | wc -l May 31 21:07:27 282941 May 31 21:07:34 so uh yeah. May 31 21:08:30 i want to have textview next to a button next to a textview next to a button - in a single row - horizontally - all this is a one big listview - how do i go about this? May 31 21:08:43 even the linux kernel has books on its design and architecture May 31 21:09:55 yeah May 31 21:09:59 though it didn't for *years* May 31 21:10:11 amoxibos: use a horizontal lineralayout May 31 21:10:11 it is definitely something that would be helpful in the long run May 31 21:10:23 Anybody know what is supposed to go into this BuildConfig.java file May 31 21:10:26 under gen? I need a place to store information about the app, so it May 31 21:10:26 looks in the correct directory for a .properties file. May 31 21:10:30 fail. :( May 31 21:10:30 bankai_, thanks May 31 21:10:35 ctate: authors: Chris Tate, Dianne H :) May 31 21:10:49 we're still trying to get romain to do the gui book May 31 21:10:55 gowie: you shouldn't touch anything in gen May 31 21:11:45 Yeah I just realized that after sending that. May 31 21:12:12 Drakonite Top of the BuildConfig file says "DO NOT MODIFY" haha May 31 21:12:32 the gen folder is things that get GENerated May 31 21:14:07 Drakonite Yeah, makes sense. I just saw BuildConfig and thought 'thats probably what I need, let me ask.' May 31 21:20:52 is this a place to get help? May 31 21:25:10 twiggydanger: Yepp. Don't ask me though, I got no idea. May 31 21:26:26 apple turns over its entire inventory every 5 days May 31 21:26:31 :O :O :O May 31 21:26:39 holy shit May 31 21:26:45 that isn't that unusual May 31 21:26:53 just-in-time manufacturing FTW May 31 21:27:03 one of hte great innovations in modern logistics May 31 21:27:28 ok so my problem is w/ the senation 4g i flashed Hypersensation 2.2 and the kernel rom and the boot.img but wifi is still not working . May 31 21:27:45 on xda-dev forums they said boot.img would fix it but it didn't. May 31 21:27:51 twiggydanger: #android-root May 31 21:27:53 ctate: the only other company to beat apple was McDonalds May 31 21:28:04 MDijkstra: also asking there May 31 21:28:22 wow, so cow goes to field -> hamburger in 5 days :/ May 31 21:28:42 g00s: hey, at least it's fresh May 31 21:29:02 yeah i don't understand how going from field to hamburger quickly is a bad thing... May 31 21:29:13 samsung has an inventory turnover every 21 days May 31 21:29:35 where is this list, g00s? May 31 21:29:50 twiggydanger: http://www.gartner.com/it/page.jsp?id=2023116 May 31 21:31:26 thanx May 31 21:31:37 twiggydanger: http://www.businessinsider.com/wow-apple-turns-over-its-entire-inventory-once-every-5-days-2012-5 May 31 21:32:38 "typical manufacturing companies may have 6-8 inventory turns per year" May 31 21:32:53 so Sammy and Dell do pretty well May 31 21:34:19 How much does it take time usually to install the SDK with 120kb/s in Ubuntu? I may be temperament but feeling like over hour... May 31 21:36:18 the SDK is a pkg containing everything needed? I think I will just clone the hd when ready to get things to other comps. May 31 21:37:11 heoa: no, you have to run the sdk manager to dl the apis and other things you need May 31 21:38:23 (ok not understanding yet word and I have even forgot what I did but now it is installing something MotoroloPro+ May 31 21:38:35 did Droid May 31 21:38:37 did Droid4 May 31 21:38:42 so, i guess we aren't supposed to talk about this here, but it seems like good news should be spread http://www.reuters.com/article/2012/05/31/us-oracle-google-ruling-idUSBRE84U1BS20120531 May 31 21:40:37 i have to admin, this whole oracle/goole thing really stressed me out. i'm less stressed now :) May 31 21:41:17 i'm pretty sure Google wouldn't have made you pay the $1bil May 31 21:41:26 and Android isn't going to disappear May 31 21:41:31 nor would it have stopped using the Java language May 31 21:41:34 what's to stress about? May 31 21:41:47 JakeWharton: sure, but maybe they could have decided to drastically change their technology or whatever May 31 21:42:04 its all moot now, anyhow May 31 21:42:05 g00s: did they still get the API somehow patentable? May 31 21:42:33 heoa: i … dont think so :) May 31 21:42:55 Why does it take like 200 years for the android emoulator to power off? May 31 21:43:08 just close it May 31 21:43:18 but when reopening it it says, power off May 31 21:43:23 and continues to power down. May 31 21:43:29 hehe May 31 21:43:36 g00s: I hope it does not but I read somewhere a story that claimed thta Oracle tried to claim that its API is patentable but hopefully not! May 31 21:43:37 close it before you power down May 31 21:43:41 XD May 31 21:44:13 last i heard the court dismissed the patent issue May 31 21:44:41 (Is this a final case or can Oracle move it to higher degree of justice or something?) May 31 21:45:23 (...I've been so confused by this case, looking like evil O trying to create new bilskis...) May 31 21:45:26 not sure how it works with financial retribution cases.. i know google were trying to go for a mistrial for the api part where they will have to pay a bit of damages May 31 21:45:34 g00s: Yeah I would have done so, but how do I do now May 31 21:45:35 ? May 31 21:45:35 fun fact.. the judge learned java for the case May 31 21:45:39 when I cant controll it anymore May 31 21:45:53 everytime starting the emulator it says powering off May 31 21:46:08 granden: just shut it down, delete the avd May 31 21:46:17 make a new one, problem solved May 31 21:46:19 where are the avds located? May 31 21:46:24 use the avd manager May 31 21:46:50 i think its '$ android avd' May 31 21:48:52 "The Android Virtual Device 'MyAvd0' is currently running in an emulator and cannot be deleted." May 31 21:49:08 when I try to delet it. May 31 21:51:14 Hey guys, I was asking previously about a "looping" issue where Android would not fully boot all its core functionality. You guys suggested maybe the OOM killer is causing it, but my free memory never goes below 140MB during this whole thing. May 31 21:51:33 I'm thinking its because this device has no display and Android is choking. Here is a snippet of errors from logcat: http://pastebin.com/RibUwTL7 May 31 21:52:37 Does anyone know how to disable the requirement for a display? ie headless? May 31 21:52:52 g00s: Any ideas? May 31 21:53:12 can no longer take best practice design ideas from google apps May 31 21:53:18 g+ is lol now May 31 21:53:41 and very inconsistent May 31 21:55:20 droid_noob: it's not well supported, i'm afraid May 31 21:55:28 (headless) May 31 21:55:38 and by "well" i mean "at all, really" May 31 21:56:24 hi, is it possible to stop an activitiy from an app i started before? May 31 21:57:14 depends. what is "i" in that sentence? you, the user? a piece of code in a different app that called startActivity()? a piece of code in the *same* app that called startActivity()? May 31 21:57:54 my app starts an activity with startActivity() May 31 21:58:04 at that point you cannot affect it May 31 21:58:11 unless the new activity is in the same app May 31 21:58:31 in whcih case you could write your app in such a way that the calling code could later call finish() on that new activity May 31 22:00:34 http://tools.android.com/recent/lintfeedback May 31 22:00:36 I did setprop system_init.startsurfaceflinger 0 May 31 22:00:47 and now i dont get those errors, instead i get a bunch of May 31 22:00:49 05-31 21:57:42.765: I/ServiceManager(1174): Waiting for service SurfaceFlinger... May 31 22:00:52 yeah May 31 22:01:05 there are deep dependencies on the display, unfortunately May 31 22:01:17 i see May 31 22:01:28 what about creating a 'fake' display? May 31 22:02:12 you'll have to either do that or do a bunch of deep surgery on the framework May 31 22:02:22 i mean, nothing says you have to actually have a display OUTPUT May 31 22:02:34 just that surfaceflinger exists, the window manager has something valid to work with,e tc. May 31 22:08:23 Hey guys. May 31 22:08:37 hm thanks ctate May 31 22:09:04 I just have a quick question to identify a feature. What is the term for the multiple screens on your home on an Android device? May 31 22:09:28 Like, I notice that there are like 5 different windows that you can "slide" to when you're home. I was wanting to implement something like that in an app. May 31 22:12:25 Rosenzweig: viewpager May 31 22:12:32 Thank you kindly. May 31 22:14:42 in my app, I'm downloading a file then trying to open it.. I download it to: /Android/data/packageName/file.ext and I'm using that path to open it.. but it keeps saying the file doesnt exist. I'm using my phone rather than an emulator.. File explorer shows the file, albeit under the sdcard. Any ideas what im doing wrong? May 31 22:15:36 downloading it from your app and then trying to open it from your app? May 31 22:15:54 also, /Android/.. is not a valid path on Android devices; how are you actually placing the file? May 31 22:15:54 yep, the app needs to parse it May 31 22:16:43 using file outputstream, with the /Android/... as the path + filename May 31 22:17:22 the file only needs to be accessed by the application as well May 31 22:17:50 but /Android/... is not a valid path May 31 22:18:05 can you paste your code for setting up the FileOutputStream? May 31 22:18:14 ya gimme a sec! May 31 22:18:22 [seriously, there is no /Android mount point on any android device i'm aware of] May 31 22:19:16 what is the preferred path to use then? May 31 22:19:35 http://pastebin.com/a7Np6BUZ May 31 22:19:49 Timmaah1201: Context.getDataDir(), typically May 31 22:20:20 getFilesDir(), whatever it was May 31 22:20:42 or Context.getExternalFilesDir(...) if you need to save it to shared storage May 31 22:21:24 * ctate | FileOutputStream fos = new FileOutputStream(file + "/" + fileName); May 31 22:21:33 the code you pasted does not show how 'file' is set up. May 31 22:22:06 hmm, I have added a few tabs to my app, and the first tab has a webview, and I mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("TAB 1").setContent(R.id.webView1)); May 31 22:22:10 in my .java file May 31 22:22:13 sorry! one sec May 31 22:22:16 but how do I set a url for webView1? May 31 22:22:23 Hi, it appears that is deprecated and one is to use an objectanimator instead. allowed you to use a fraction type so an object could be animated some fraction of the dimension you were animating. how does one achieve this with objectanimator? May 31 22:23:13 http://pastebin.com/sOr2rPBw May 31 22:23:23 http://pastebin.com/s0r2rPBw May 31 22:23:46 not doing very well with the whole use desktop to chat and laptop to develop... May 31 22:24:18 Timmaah1201: synergy is your friend. May 31 22:24:38 synergy the program, not the word/idea May 31 22:24:39 Timmaah1201: if you use Context.getExternalFilesDir() you won't have to do all the explicit path buildling; it does the right thing for you automatically May 31 22:25:57 granden: replace your tabs with viewpager/viewpagerindicator for great win May 31 22:27:35 Timmaah1201: also, instead of "new FileOutputStream(file + "/" + fileName);" May 31 22:27:45 you probably want: new FileOutputStream(new File(file, fileName)); May 31 22:27:53 again, to let the language support libs do the right thing for you May 31 22:28:50 ah k, thanks ctate :) May 31 22:31:14 quick question about Context.getExternalFilesDir(), android api show using null, but eclipse doesnt like it.. static reference to non-static method May 31 22:33:14 Timmaah1201, use that method with an instance of context, not the class. May 31 22:36:29 does the class need to extend anything as well? May 31 22:36:52 not sure what you mean May 31 22:37:18 your activity is an instance of a context. May 31 22:37:38 ah.. its not occurring in an activity, rather in an asynctask May 31 22:38:05 do you have an instance of a context there? May 31 22:38:38 afaik.. no, i have an object of an activity May 31 22:39:00 can you paste your code somewhere? May 31 22:39:01 gah this bug is going to drive me nuts May 31 22:39:02 http://tachyondev.com/android/ButtonBug.png May 31 22:39:27 no clue why it is doing that May 31 22:39:35 it only happens when i spam the buttons May 31 22:39:45 whats wrong with it? May 31 22:39:51 the cue buttons May 31 22:39:56 they draw incorrect size May 31 22:39:59 and dont weight up May 31 22:40:13 jeppy`: works now, managed to figure out what you meant wiht instance of context -- thanks May 31 22:40:14 ah May 31 22:41:06 http://tachyondev.com/android/ButtonNotBug.png May 31 22:41:18 so oddddd May 31 22:41:26 what do you mean by "when i spam the buttons"? May 31 22:41:56 TachyonDev, hierarchy viewer might help May 31 22:41:59 ctate: when im wailing on the buttons, just pressing them all a ton, the Cue- and Cue+ dont draw fully May 31 22:42:17 wrgh May 31 22:42:21 now, those two buttons are the only buttons whose backgrounds change because of a different buttons action May 31 22:42:21 do they fix themselves when you stop? May 31 22:42:23 wrgh? May 31 22:42:30 it looks like the 9patch is redrawing at a different size?! May 31 22:42:46 they arent 9patches May 31 22:42:52 they are gradientdrawables May 31 22:42:53 how are you drawing the borders then? May 31 22:42:54 oops, sorry, jumped into the middle of something *bailing out* May 31 22:43:59 setColor(fill); May 31 22:43:59 setCornerRadius(radius); May 31 22:43:59 setStroke(stroke_width, stroke); May 31 22:44:10 ctate: :P May 31 22:44:30 im doing programmatic theming May 31 22:44:32 do look in hierarchyviewer to see whether they're just drawing wrong, or whether they've gotten relayed out / remeasured / whatever at the wrong size May 31 22:44:50 yeah i can get them to stick like that if i try hard enough May 31 22:45:05 and they will reset if I hit either one or the Cue button that changes them May 31 22:45:28 ah, so you ARE doing relayouts on the fly May 31 22:45:34 dont' do that :) May 31 22:46:28 ctate: im just setting backgrounds May 31 22:46:44 i bet that's doing a full invalidate May 31 22:46:46 arugh May 31 22:47:04 the odd thing is May 31 22:47:07 i do that everywhere just fine May 31 22:47:17 but for some reason, with these shapes, May 31 22:47:23 so whats the best way of retrieving the file from teh storage then? afaik getFilesDir() is for when you use openFileOutput May 31 22:47:34 it causes wacky shit May 31 22:47:52 only with those ..perhaps because they are affected by another button?! May 31 22:48:06 Timmaah1201: well, if you can see the file properly afterwards if you mount the drive or view it via MTP, then that isn't the issue May 31 22:48:19 then you need to look carefully at your reading code to see why it isn't able to read the file May 31 22:48:37 ugh why isnt heiarchyviewer working May 31 22:48:49 it's slow May 31 22:49:17 [2012-05-31 18:48:57 - hierarchyviewer]Unable to debug device 014691490A009013 May 31 22:49:39 unplug, adb kill-server, replug? May 31 22:49:57 are you using eclipse? May 31 22:50:46 the problem is when opening the file.. i'm using: "File file = (not sure how to get the path of the file now.. which is what would be here)" May 31 22:50:50 yeah im using eclipse May 31 22:51:14 try running it via command line May 31 22:51:25 man nothing is going right today May 31 22:51:51 yeah not sure why it is freaking out May 31 22:51:57 and cant connect May 31 22:53:32 sooo weirdddd May 31 22:53:39 Timmaah1201: the same way you did before May 31 22:54:12 use the context's getExternalFilesDir() method and build the rest of the path from there May 31 22:54:14 ctate: excited for IO? May 31 22:54:34 TachyonDev: kinda, though since i won't be attending per se it's not such a big deal for me personally May 31 22:54:52 ctate: ah ok .. that should have been my first question May 31 22:55:12 I thought there was a static File.separator or something like that May 31 22:55:27 System.getProperty("file.separator") May 31 22:55:32 jeppy`: use the composing constructor May 31 22:55:55 JakeWharton: eww May 31 22:55:59 :) May 31 22:56:10 that kind of crap makes me want to port it to VMS and watch you all cry May 31 22:56:54 oh i see it now May 31 22:56:59 * Jug6ernaut always System.getProperty("file.separator") May 31 22:57:12 fields are listed before the constructors May 31 22:57:24 I usually use File.separator May 31 22:57:33 Jug6ernaut: OFC it should be called the *path* separator May 31 22:57:33 pretty sure it maps to the same thing anyways May 31 22:57:42 * Jug6ernaut meant that May 31 22:58:21 but java is in some ways really unix-centric May 31 22:58:32 sorry, not path separator; directory separator May 31 22:58:36 anyway May 31 22:58:45 VMS absolute paths look like May 31 22:58:53 * ctate | DKA0:[MYDIR.SUBDIR1.SUBDIR2]MYFILE.TXT;8 May 31 22:59:08 good luck with '/' there mister May 31 23:01:02 oh no problem, you just put that in the.. umm.. in the.. err.. never mind :P May 31 23:01:03 where are proguard build errors outputted to? My build keeps failing but i cant find any log :S May 31 23:02:58 weird.. so it sees the file, but the parsing stops working when I try to make a DocumentBuilderFactory object May 31 23:05:14 scratch that.. when it parses it it breaks :'( May 31 23:05:24 any reason why a parser would work using normal jdk and not in android? May 31 23:06:49 ctate: isnt it odd that it looks like those mis-sized buttons are the same size as the ones on the left? May 31 23:07:00 indeed May 31 23:07:10 File file = (menuActivity.getExternalFilesDir("data.xml"); <--- not how to load the file into file it seems... May 31 23:07:10 do android library projects have to be referenced in a proguard.cfg? May 31 23:07:41 how could it possibly be drawing the wrong instance May 31 23:08:05 http://pastebin.com/awXZS2r2 - How would I get my tabs at the bottom instead of at the top? May 31 23:08:28 dont use a tabhost? :P May 31 23:08:41 So what to use then? May 31 23:08:45 move the tabwidget to the bottom? May 31 23:09:05 TachyonDev: Moving it below the framelayout May 31 23:09:12 makes the tabs disapear totally May 31 23:09:14 ugh webviews May 31 23:10:59 granden: http://lmgtfy.com/?q=tabhost+android+bottom&l=1 May 31 23:13:03 TachyonDev: isn't a tachyon a virtual particle with negative mass? May 31 23:13:47 ultrixx: something like that.. and always moves faster than light May 31 23:14:12 hehe May 31 23:16:50 android doesn't have an emailprovider built in? May 31 23:22:56 how im gonna say : on exit -> do something ? May 31 23:27:09 does anybody know a good java irc? May 31 23:27:36 ##java ? May 31 23:34:57 ctate: don't suppose you can give me a push in the right direction? Really strugglign to figure out how to load the file into a File object :/ May 31 23:36:23 Timmaah1201: that's not what a File object is for. You probably want to use a FileInputStream or similar. May 31 23:36:27 The judge ruled in the Oracle/Google case that API's can't be copyrighted May 31 23:36:51 Timmaah1201: what is the whole goal here? May 31 23:37:10 readme! May 31 23:37:21 mheld: sup bro May 31 23:37:36 not much, surprised to see people I know from one room in other rooms May 31 23:37:39 you? May 31 23:37:50 just bought a copy of the pragmatic programmer May 31 23:38:02 oh nice May 31 23:38:38 readme: downloading xml file, need to load it so I can parse it May 31 23:38:55 ive made the parser and everythign already.. just need ot figure out how to load the damn file :/ May 31 23:39:02 Timmaah1201: sax? May 31 23:39:04 dom May 31 23:39:12 oof....... May 31 23:39:18 http://www.ibm.com/developerworks/opensource/library/x-android/index.html May 31 23:39:27 ya.. ive been on that too many times May 31 23:39:29 * readme doesn't really like the DOM parser much May 31 23:39:40 oh, I'll look at my own dom parser code, hold on May 31 23:39:41 so... after i get home from a 9 hour work day, wife wakes me up from a quick nap to cook dinner so she can sit and play second life... May 31 23:39:52 ... guess what ports are about to magically stop working on the router... May 31 23:40:22 cheers readme May 31 23:40:51 Timmaah1201: did you write code that takes an InputStream as input? May 31 23:41:11 android-dev(+cnt)] [Act: 4,5] May 31 23:41:18 http://developer.android.com/reference/java/io/FileInputStream.html May 31 23:41:24 i have no inputstream, i wrote the dom parser using just the jdk, so thats why i was using File file = (filepath); May 31 23:41:35 my dom parser uses an InputStream May 31 23:41:42 [16:41:28] [pragma-(+i)] [3:freenode/#android-dev(+cnt)] [Act: 5,6,7,8,9,10,12,13,14,15,17,21,22,23,26,27... May 31 23:41:54 what do you have afer the File file = ... bit though? May 31 23:42:18 look at the link I just gave you May 31 23:42:25 gotit open May 31 23:42:27 it shows you how to get an InputStream from a File May 31 23:42:28 see? May 31 23:42:38 BufferedInputStream is a kind of InputStream. May 31 23:42:43 so is FileInputStream May 31 23:42:53 ya i get the inputstream.. but what do you put to get the path of the file on the android device after File file = xxx <-- what is x? May 31 23:42:55 so is InputStream May 31 23:43:03 https://gist.github.com/2847244 May 31 23:43:13 Oh. May 31 23:43:16 Where is the file located Timmaah1201 May 31 23:43:36 getExternalFilesDir(null), "data.xml" May 31 23:43:58 syntax error May 31 23:43:59 https://gist.github.com/2847244#comments May 31 23:44:04 I had to re-paste Timmaah1201 May 31 23:44:06 y u no know how to paste code? May 31 23:44:30 ctate: is it valid to create one GradientDrawable programmatically and set it to the background of different views? Could that cause the problem? May 31 23:44:34 pragma-: i ate led paint as a kid May 31 23:44:36 earlier he pasted only the bottom half of some code, then when we asked for the rest, he only pasted the top half :p May 31 23:44:51 lead May 31 23:45:10 I chewed lead pencils through the core May 31 23:45:36 pragma-: maybe I ate more May 31 23:45:42 because I spelled it wrong May 31 23:46:04 :/ im still absolutely flabbergasted as to how i get the path of the file name May 31 23:46:15 i was doing File file = getExternalFilesDir("data.xml"); but that wasnt really working as far as i could tell May 31 23:46:20 TachyonDev: hmmm, yeah, i would suspect that is not a good idea. May 31 23:46:32 Timmaah1201: hold on a sec. there is a preferred way of doing this. May 31 23:46:35 you can't share a drawable instance across different views; they'll compete for measurement etc. May 31 23:46:51 Timmaah1201: read the docs on getExternalFilesDir() May 31 23:47:12 https://gist.github.com/2730449 May 31 23:47:14 this uses NIO May 31 23:47:31 Timmaah1201: "Parameters: type - The type of files directory to return. May be null for the root of the files directory or one of the following Environment constants for a subdirectory: DIRECTORY_MUSIC, DIRECTORY_PODCASTS, DIRECTORY_RINGTONES, DIRECTORY_ALARMS, DIRECTORY_NOTIFICATIONS, DIRECTORY_PICTURES, or DIRECTORY_MOVIES." May 31 23:47:37 not a leaf filename May 31 23:47:45 http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) May 31 23:48:02 it seems like he said he had it right at one point, though May 31 23:48:03 you probably want to pass null, and then treat that as a directory name to append your leaf file name to May 31 23:48:05 or at least close. May 31 23:48:22 16:40 < Timmaah1201> getExternalFilesDir(null), "data.xml" May 31 23:48:29 yes, that May 31 23:48:39 as the arguments to new File (... ) May 31 23:49:10 * readme 's code is bad. uses a hardcoded path separator. May 31 23:49:20 I'm going to wager it's not such a big deal, though. May 31 23:49:23 but surely thats just creating a new file of /path/data.xml and not actually loading /path/data.xml :S May 31 23:50:03 FYI: https://developers.google.com/events/io/sessions seems to be working again May 31 23:50:08 to show the list of sessions at GoogleIO etc May 31 23:50:23 ctate: I am still working on getting my registration on my google account May 31 23:50:28 ctate: kind of hacked my way in May 31 23:50:28 :P May 31 23:50:31 Timmaah1201: correct, but you have to actually build a correct File / path before you can open it successfully May 31 23:50:58 :'( May 31 23:51:00 [you had this working earlier, iirc; you just saw failures during parsing of the content] May 31 23:51:18 ok.. it seems im not grasping a basic concept.. May 31 23:51:21 Timmaah1201: the parsing stuff... check out my dom parser May 31 23:51:26 im downloading data.xml, creating it - successfully. May 31 23:51:32 thats all fine May 31 23:51:35 thanks to your earlier help May 31 23:52:12 now i want to load the file.. If I just do File file = new File(getExternalFilesDir(null), "data.xml"); <-- is that not just overwriting the previous file with a null file? May 31 23:53:07 just seems weird that in the jdk you would just have File file = (filepath), but in android have to make a new file :/ May 31 23:53:08 it's not overwriting anything May 31 23:53:15 ok.. so im just being an idiot May 31 23:53:21 it is allocating a new File object, and assigning it to the 'file' variable May 31 23:53:22 ctate: are runnables run on the UI thread? May 31 23:53:25 which is a newly-declared local May 31 23:53:34 TachyonDev: they're run on whatever thread you've posted them to May 31 23:53:40 ok May 31 23:54:04 ok gotcha, thanks for being patient with me ctate, readme (and thanks for the code) May 31 23:54:05 Timmaah1201: hey, don't denigrate yo'self May 31 23:55:17 that's racist May 31 23:55:23 TachyonDev: if you're talking about poosting them to a Handler, they get run on the thread associated with that handler May 31 23:55:36 ctate: okay just curious about that May 31 23:57:35 [a Handler is tightly bound to a Looper, and Looper is essentially an execution model for a thread] Jun 01 00:00:34 ctate: okay so im either going to hold new drawables for every state of every button, or im going to see if i can edit it's drawable Jun 01 00:01:17 that's at least where to start, i think Jun 01 00:01:58 ctate: Drakonite: Okay found something. If getDrawable() on the button cast it to gradient, and change the color, random other buttons change color Jun 01 00:02:22 yes, because you're trying to assign the same drawable to everything :) Jun 01 00:02:29 so each button needs its own drawable for sure Jun 01 00:03:09 it was only sorta working before because the parent layout is holding final size information, not the drawable itself (or is my understanding) Jun 01 00:03:17 * Drakonite not an android UI expert Jun 01 00:04:13 could someone make my widget 4.0 compatible i would pay 20e its a small bug Jun 01 00:04:47 o_O .. if it is so small, why dont you fix it :P Jun 01 00:04:59 i dont know howto Jun 01 00:05:09 but sure only a few lines Jun 01 00:05:11 then how do you know how small it is Jun 01 00:05:26 i had a "small bug" with my DJ App Jun 01 00:05:34 cause it works well on 2.3 or so Jun 01 00:05:55 yeah mine took a 2 month rewrite because google broke regression :P Jun 01 00:06:11 because of "one line" in the operating system Jun 01 00:06:22 but thats an extreme case i admit Jun 01 00:06:23 uff sounds bad Jun 01 00:06:50 could you give a eye on the source its online Jun 01 00:07:09 ctate: If I am editing the drawables directly will i need to trigger an invalidation? Jun 01 00:09:32 possibly not, actually Jun 01 00:09:57 since invalidation is a View operation, and the View doesnt' necessarily a priori know about shenanigans inside the drawables that it's using Jun 01 00:11:04 anyway, in general, drawables are stateful Jun 01 00:11:08 and cannot be shared between views Jun 01 00:14:28 I'm implementing this contentprovider/service/rest pattern thing - if there are no results in the database and therefore need to start the service, which part should service? Jun 01 00:16:10 if you want the view to redraw the drawable, you'll have to invalidate, yeah.. This is done for you in the case of e.g. the background drawable, as long as the operation calls Drawable.invalidateSelf Jun 01 00:17:07 http://pastebin.com/2e4LqFtZ <-- any ideas whats going wrong with the inputstream? Jun 01 00:18:06 looks like it's throwing, then; catch the exception and log it / debug it. Jun 01 00:18:40 also, Log.*() is your friend, vs System.out.println() Jun 01 00:18:48 (android.util.Log) Jun 01 00:20:31 cheers, like how log has a wtf class :) Jun 01 00:21:09 should the contentprovider startService is the database is empty/stale? Jun 01 00:21:19 it says right there on the docs site Jun 01 00:21:23 * ctate | Since: API Level 8 Jun 01 00:21:45 wabz: presumably it should initialize it; that's the first-launch case anyway Jun 01 00:24:41 can i access shared preferences from service? Jun 01 00:25:10 sorry that "is" should ahve been an "if" -- I'm not really clear on it. I guess I'm asking if it's the content provider's job to start the service (which does the http fetch and then inserts back) if the content in the database is non-existant or stale, or whether it should be some other component Jun 01 00:26:02 amoxibos: of course Jun 01 00:26:16 cate thanks Jun 01 00:26:38 wabz: you really want it to be the content provider who is in charge there Jun 01 00:26:47 because that's the point of entry for everyone interacting with the data Jun 01 00:27:27 yeay got my Google IO invitation Jun 01 00:27:30 finally Jun 01 00:28:46 ctate: ok makes sense, thanks Jun 01 00:28:54 ctate, cant seem to find file.. its going to files/data.xml when its in files/data.xml/data.xml for some bizarre reason :/ Jun 01 00:28:55 TachyonDev, congrats Jun 01 00:29:20 Timmaah1201: one too many levels of wrapping/reconstruction, tsk tsk :) Jun 01 00:29:30 (is there an easy way to delete directories that are made through applications) ? They appear on the DDMS, but not in the explorer Jun 01 00:29:37 jeppy`: yeah I kinda weaseled my way in by using a friend's account that got in but wasnt going.. Jun 01 00:30:05 "the explorer"? Jun 01 00:30:38 MTP i think is what someone earlier called it, through the file browser/explorer in ubuntu for example Jun 01 00:31:10 picture this scenario - event happens that i catch with a broadcast receiver, i have a service running in the background and it gets informed of this so now i want to start an activity - is this possible? Jun 01 00:31:28 to start an activity from service which is running in its own thread of exectuon in the background continually Jun 01 00:31:29 ? Jun 01 00:31:58 of course Jun 01 00:32:08 the Service just calls startActivity(), and off you go. Jun 01 00:32:17 i understand Jun 01 00:32:21 ctate, thanks again Jun 01 00:32:32 ok here is another question Jun 01 00:34:29 even happens such that certain app has taken half of memory, my broadcast receiver catches this event, and my service now wants to start an activity which would inform user that somehting strange has happened and to offer him to kill the app or to uninstall it - is this possible - to start an activity which would promt user to uninstall or kill the app that has eatn up memory? and now i want to start Jun 01 00:34:58 how would you even know that the app has taken up so much ram? Jun 01 00:35:29 [also remember that apps only get a certain dalvik heap size reservation, so unless you're talking about a pure native app this is all sort of irrelevant] Jun 01 00:36:12 i watch for which process did what using adb shell Jun 01 00:36:20 parse the result Jun 01 00:36:26 and then kill it frmo adb shell Jun 01 00:36:39 do i have access to adb shell programatically to execute shell commands? Jun 01 00:36:44 no Jun 01 00:36:59 no, you don't. Jun 01 00:37:10 and even if you did it wouldn't help because you cannot kill other apps, only yourself. Jun 01 00:37:34 http://stackoverflow.com/questions/5306961/androidcan-i-use-adb-command-in-my-app Jun 01 00:38:16 "Short answer - no. Long answer, kinda." Jun 01 00:38:42 As for the Testing suite Jun 01 00:38:47 that's a totally different subject Jun 01 00:39:01 but you cannot exec "adb shell blah" from your app Jun 01 00:39:08 because MOST devices don't have adb binary Jun 01 00:39:12 "...you cannot kill other apps, only yourself." <-- what are we advocating here!? Jun 01 00:39:23 For him to kill himself? Jun 01 00:39:59 kill my app Jun 01 00:40:02 However, running adb shell anycommand, would be the same as just executing that command from the runtime Jun 01 00:40:17 using getRuntime.exec() Jun 01 00:40:25 regardless, you still can't kill other apps Jun 01 00:40:37 can i offer user to uninstall other app? Jun 01 00:40:38 how do those 'task killer' apps work then Jun 01 00:40:47 are you strictly speaking about killing other apps gracefully? Jun 01 00:40:52 amoxibos you can't Jun 01 00:40:58 well Jun 01 00:41:04 i want to offer user an option to block the app or to uninstall it Jun 01 00:41:05 ? Jun 01 00:41:07 I suppose you can probably start the packagemanager with the right intent Jun 01 00:41:15 either native or from dalvik Jun 01 00:41:17 from anywhere Jun 01 00:41:36 kill from the command line strikes me as something capable of killing an app. Jun 01 00:41:43 which is callable from java code. Jun 01 00:41:45 i just kill the process Jun 01 00:41:52 http://www.tomsguide.com/us/Google-Android-Chrome-OS-Chromebook-Chromebox,news-15400.html Jun 01 00:41:52 adb shell kill Jun 01 00:43:08 hmm, i wonder what Gabor worked on as product manager of android Jun 01 00:43:29 amoxibos and does that work on an actual device? Jun 01 00:43:48 on the device Jun 01 00:43:51 i havet tried Jun 01 00:43:53 im asking Jun 01 00:43:54 is it possible Jun 01 00:43:57 so if its not Jun 01 00:43:59 i dont try it Jun 01 00:44:01 shut the fuck up Jun 01 00:44:11 when the activity queries the contentprovider, it might get back an empty cursor and then at some point get a contentobserver notification - one option would be to ignore the cursor and have the CP getContentResolver().notifyChange so that the handling is only done in once place.. does this make sense? Jun 01 00:44:12 Pretty sure kill won't work without root Jun 01 00:44:25 pragma-, love the enthusiasm Jun 01 00:44:36 yea i know Jun 01 00:44:39 i need to root the device Jun 01 00:51:40 readme: "how do those 'task killer' apps work then" -- they don't, mostly. Jun 01 00:51:52 they try to e.g. disable the other app's components in the package manager Jun 01 00:52:08 this no longer works they way they think they want them to Jun 01 00:52:14 and never worked fully the way they wanted anyway Jun 01 00:52:36 you can certainly try to exec shell commands yourself on device, sure Jun 01 00:52:49 but they will run as your own app's uid, not as the more-privileged 'shell' uid Jun 01 00:52:52 so what happens when I kill an app's process? Jun 01 00:52:56 this is such a nightmare :D I was thinking about what would be causing that extra wrapping issue ctate.. Jun 01 00:52:59 with kill -9, for example Jun 01 00:53:11 readme: if you are running as root, it just goes away. that's what the kernel OOM killer does. Jun 01 00:53:17 if you aren't running as root, nothing happens :) Jun 01 00:53:29 i had the File file = new file (...) and then FileOutputStream fos = new FileOutPutStream(new File(...)) Jun 01 00:53:55 but when i remove the first creation of the file object, the file doesn't get written to the device Jun 01 00:55:18 ctate: ah Jun 01 00:55:20 ctate: thanks Jun 01 00:58:32 app that kills other apps and processes: https://play.google.com/store/apps/details?id=mobi.infolife.taskmanager&hl=en Jun 01 00:59:35 yeah except not really Jun 01 00:59:40 and it doesn't do much any more Jun 01 00:59:45 and causes problems Jun 01 01:00:03 none of these "task-killer" apps have ever worked as well as the built-in UI Jun 01 01:00:28 particularly as of 2.2, and *very* much so as of ICS Jun 01 01:00:39 where the UI became a lot easier to get to Jun 01 01:01:31 yeah, I click 'force stop' Jun 01 01:01:33 :) Jun 01 01:01:36 [yes, there has been a built-in UI for shutting down apps since 1.0] Jun 01 01:01:48 right next to 'clear data' et al Jun 01 01:01:55 exactly Jun 01 01:02:09 and it has always worked much more cleanly and reliably than things like ATK Jun 01 01:03:10 ok guys im gonna be blogging this - posting this discussion on my blog - google it in a day or two :_) Jun 01 01:03:27 why would.. File file = new File(getExternalFilesDir(null), "filename.ext"); String fileame = "data.xml"; FileOutputStream fos = new OutputFileStream(new File(getExternalFilesDir(null), fileName); create /data.xml/data.xml rather than /data.xml ? :/ Jun 01 01:04:00 sorry its.. new OutputFileStream(new File(file, fileName); Jun 01 01:04:13 because you're appending the filename to itself Jun 01 01:04:17 hence, directory Jun 01 01:04:19 ==JakeWharton Jun 01 01:04:27 once you've built 'file', just use that Jun 01 01:04:40 FileOutputStream fos = new FileOutputStream(file); Jun 01 01:05:14 i tried that, but when I do that.. the file doesn't seem to write to the storage Jun 01 01:05:16 i think maybe you should go read up on some tutorials about how the java.io.* library works Jun 01 01:05:50 definitely will tomorrow morning, 2am atm.. dont think i'd remember much. Just wanna get this sorted before i hit the sack Jun 01 01:06:12 seems weird why it would write with the extra directory, but not without it Jun 01 01:06:50 drinking coffee at 3 am cet, is it healthy? Jun 01 01:07:38 three channels i love on freenode: android-dev, python and java Jun 01 01:07:48 of course, because that means i'm drinking my coffee at 6p local time or thereabouts :) Jun 01 01:08:14 ctate, tnx, appreciate it Jun 01 01:08:20 amoxibos: drinking coffee at 3am isn't unhealthy, but sleep deprivation is Jun 01 01:08:37 7-9 am is the time i go to sleep Jun 01 01:08:48 then it's not unhealthy, as long as you get sunlight at some point Jun 01 01:08:56 sometimes i force mysefl to get up early, i stay all day awake, and at night i cannot sleep again Jun 01 01:08:59 because you need the sun to make vitamin E or D or something. Jun 01 01:09:00 i dont know how to fix it Jun 01 01:10:04 i need some algo to fix this Jun 01 01:10:06 some methodology Jun 01 01:10:09 tdd Jun 01 01:10:10 approach Jun 01 01:10:12 can an app have text in the statusbar, like on temperature displays, or are those actually "icons" of the appropriate size? Jun 01 01:12:17 ctate: something that isn't present in the built-in for ICS is something that shows how much processing power apps are using. If something is pegging the CPU in a background thread, there's no decent way to find out which w/o the command line Jun 01 01:12:25 unless I totally missed it Jun 01 01:12:27 how many lines of quality code can you produce per day? Jun 01 01:12:42 amoxibos: 7, 8 on a good day Jun 01 01:12:52 morfic-: those are actually icons Jun 01 01:12:57 wawaweewa great success... Jun 01 01:13:03 I have to package about 200 pngs with gps notification to fake this Jun 01 01:13:20 <_asmozre_> sup guys, anyone know how to enable usb debugging from adb shell? screen is dead =/ Jun 01 01:14:49 lov: thanks, since people put battery percent as text in roms, i was hoping this is actually accessible from apps, but with all google hits refering to icons....i guess i will go get good at making gfx, thanks Jun 01 01:16:41 morfic-: it's possible that the status bar has been modified such that it has a textview or some such in there Jun 01 01:16:49 for regular notifications, you're stuck with icons. Jun 01 01:16:57 for custom roms, you can do whatever you want moon man Jun 01 01:18:33 anyone wanna join me: http://nreduce.com/ ? Jun 01 01:19:25 amoxibos: Are you asking if I want to make out? Jun 01 01:19:28 because the answer is no. Jun 01 01:19:42 no - im asking if u wanna join a startup Jun 01 01:19:44 I'm a family man and you probably have super gross diseases Jun 01 01:19:47 haha no Jun 01 01:20:12 whats the advantage of not using openFileOutput when storing files on the device memory? Jun 01 01:21:03 er, I'm not sure what you're asking. Jun 01 01:21:39 is there any reason why you would use outputfilestream = openfileoutput(filename, int) over outputfilestream = new outputfilestream(file) Jun 01 01:22:24 convenience? Jun 01 01:22:34 the idea is that openFileOutput puts the file into The Right Place Automatically Jun 01 01:23:00 instead of having to get The Right Place to get the file, creating a new file referencing that, then creating a FileOutputStream Jun 01 01:24:08 Is it normal for it to say "This application is available to over 0 devices." when publishing a new app? Jun 01 01:26:15 nevermind. I needed to activate the apk Jun 01 01:26:32 If i want to make sure I can see the output file from openfileoutput.. where does it usually save it? packagename/data/ ? or elsewhere? Jun 01 01:28:23 openFileOutput() puts the file in your app's private directory tree Jun 01 01:29:02 this is documented. please please PLEASE actually read the docs for stuff. Jun 01 01:29:03 http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int) Jun 01 01:29:19 awww he asked so nicely too Jun 01 01:31:20 we're still talking about this? Jun 01 01:31:31 haha sorry.. Jun 01 01:31:34 i finnaally got it working Jun 01 01:31:39 sorry for being a royal pain in the ass Jun 01 01:32:08 been a logn day trying to figure out parsing, sed, storage etc. as quick as possible Jun 01 01:32:50 my thanks is in the form of somebody elses cute dog... http://i.imgur.com/MsS76.jpg Jun 01 01:38:09 How long does it usually take for a new app to show up in the Play store? Jun 01 01:40:51 I need to allow devices running android 2.3 to be able to use view's setAlpha() method. however, this method is only available on API level 11 or higher. Which support library should I add to support devices running 2.3? Jun 01 01:41:56 Bryan__K: NineOldAndroids will allow you to set (and animate) the alpha on all API levels Jun 01 01:42:13 Bryan - 4 Jun 01 01:43:27 Xonk: it should show up within a few hours with the direct link Jun 01 01:43:28 JakeWharton, thank you. I'll check that out. Xonk- I tried support package 4 and 13 and neither do anything Jun 01 01:43:30 or instantly Jun 01 01:43:32 not sure Jun 01 01:43:40 to actually show up in the search, maybe a day Jun 01 01:43:42 gingerbread still crashes when setAlpha is called Jun 01 01:44:05 How do you get the direct link? Jun 01 01:47:57 nevermind on the direct link. I have it now, but it looks like it's not published yet. Jun 01 01:48:08 JakeWharton, you appear to be the author of that library! can I just import your library and use .setAlpha? or do I need to do something else first? Jun 01 01:50:34 AnimatorProxy.wrap(view).setAlpha(whatever) Jun 01 01:51:31 it's meant for animating shit, not really just setting it Jun 01 01:51:33 but it'll work Jun 01 01:52:24 ok thanks a lot! Jun 01 02:14:33 what's the haps, chaps? Jun 01 02:18:00 * g00s is reading a photography book Jun 01 02:18:56 * Shano56 is catching up on some rss feeds and watching stargate Jun 01 02:23:52 * b1n0ry is watching Hercules: The Legendary Journeys Season 3 Episode 1 and figuring out how to instantiate recursive fragments Jun 01 02:25:39 * Leeds is sitting down to start doing some actual work for a change Jun 01 02:26:23 overrated Jun 01 02:26:58 anyone got a good reference for styling tabs in ABS? im looking at this https://github.com/JakeWharton/ActionBarSherlock/issues/401, does the xml JakeWharton posted go into styles.xml? Jun 01 02:27:10 there's a styled sample Jun 01 02:31:38 Jug6ernaut: payday today, makes me feel guilty about goofing off :) Jun 01 02:31:48 xD Jun 01 02:32:14 * Jug6ernaut actually hates not working @ work Jun 01 02:32:21 * Jug6ernaut feels the guilt instantly Jun 01 02:32:42 * b1n0ry feels like he won Jun 01 02:32:53 the 4-5 hour is like the end boss Jun 01 02:36:15 I (now) work at home... so '@ work' is a fluid term Jun 01 02:37:18 @JakeWharton i had read that… wasn't working, ended up being a stupid mistake Jun 01 02:42:41 just received my Raspberry Pi. yay! Jun 01 02:42:42 im trying to stop the text from going from BROWSE | TOP | REPORT | ABOUT --> BROW… | TOP | REPO… | ABOUT Jun 01 02:43:13 luxurymode: yay! Jun 01 02:43:28 hehe Jun 01 02:44:05 its funny how the thing im most excited about is having a little machine to mess around with without any fear of messing crap up. always have this slight uneasiness about my dev machine bc i really cant mess stuff up on there. Jun 01 02:45:22 anyone able to point me in the right direction Jun 01 02:45:23 ? Jun 01 02:45:30 if I've got a library project and one which uses it, how can I make eclipse run the normal one when hitting play while editing a file from the library project? Jun 01 02:46:29 b1n0ry: cant do recursive fragments Jun 01 02:47:08 hmm... that's going to make my project a bit difficult Jun 01 02:48:14 well... maybe not Jun 01 02:48:27 difficult yes, but might be able to work something out Jun 01 02:49:23 actually how do I make eclipse less confused about a library project in general? Jun 01 02:49:39 eclipse is just genuinely confused, in general Jun 01 02:50:40 b1n0ry: difficult isn't the issue; undefined behavior is :) Jun 01 02:51:13 i have a listview that, when an item is selected, it goes to the next level in the hierarchy. Jun 01 02:51:27 no idea how deep the hierarchy might be, and it may vary depending on which 'path' the user takes Jun 01 02:51:52 thus... a recursive listview Jun 01 02:52:17 ok, i misunderstood you … thought you were trying to put a fragment in a fragment Jun 01 02:52:38 no, just instantiating recursively Jun 01 02:53:04 i could do it easily if i just repopulate the adapter Jun 01 02:53:11 although i want to retain the back stack Jun 01 02:53:21 so they can go back up the hierarchy Jun 01 02:53:56 I've found no documentation on it, but Bitmap.createScaledBitmap (when given a Bitmap acquired from the camera) returns a Bitmap with both a width Jun 01 02:53:59 and height of -1. The code for the scaling is here (just a few lines): http://ideone.com/Gqfxf Similarly, I've tried using Bitmap.createBitmap and Jun 01 02:54:01 giving it a matrix with a post scale. The results were the same. Am I missing something? o.O Jun 01 02:58:16 ever see the movie tremors? i think the writer of this episode did too... Jun 01 02:59:28 underground, man-eating monsters in the desert, they have to camp on rocks to avoid them... explode when they kill 'em Jun 01 02:59:46 cool story bro **** ENDING LOGGING AT Fri Jun 01 02:59:58 2012