**** BEGIN LOGGING AT Thu May 24 02:59:58 2012 May 24 03:00:52 fwiw, nostalgia's "the hero" is kind of an annoying song May 24 03:00:58 like 8-bit meets dubstep May 24 03:03:45 There May 24 03:03:54 I don't think I could get any type of injection now May 24 03:04:22 I'm only sending numbers to my file, so I'm just going to do is_numeric($postdata) on every variable, and die if it isn't a number. May 24 03:04:29 Unless you can do injection using numbers. May 24 03:05:45 are you using integers? May 24 03:06:08 or could you be sending longs or floats? May 24 03:06:40 Well to send the data i do String.valueOf(int); May 24 03:06:47 and I do have one variable that is a long May 24 03:07:00 anything that's integer, use is_int instead of is_numeric May 24 03:07:13 is_numeric can return true for some non-numeric values May 24 03:07:14 What's the difference between the two? May 24 03:07:19 Ah May 24 03:07:22 Will do then, thanks. May 24 03:08:40 if i pass a number through is_numeric with a leading zero, for example, it will return true and then your php engine will interpret it as an octal number which could result in error exposure May 24 03:09:15 i could also pass negatives, notation values (such as '-12345e14') etc. is_int() will guard that stuff.... even better, cast your values. May 24 03:09:44 $myvariable = (int)$_REQUEST['myvariable']; May 24 03:09:56 guaranteed to always be an integer value May 24 03:10:11 of course, this discussion is better had over at ##php ;) May 24 03:10:33 Yeah lol, very true. May 24 03:11:06 I don't really expect people to even try to do injection though. It isn't even a highscores, it's more of an app stats. Just gives statistics for the app as an overall, like launches and what not. May 24 03:12:28 here's one more reason for not using mysql_real_escape_string *exclusively*: ?myscore=234%20or%20sleep%28500%29 (not sure if that would actually work, but would be fun to try) May 24 03:12:58 interepreted into your variable as "myscore=234 or sleep(500)" May 24 03:13:05 nothing to escape ;) May 24 03:13:32 not injection per se, but could make a heck of a ddos May 24 03:14:13 esp. if i used my little apache benchmark tool to send 10,000 requests like that May 24 03:15:09 Well May 24 03:15:23 would myscore=234 or sleep(500) pass the is_int? May 24 03:15:29 nope May 24 03:15:35 Then the script would die May 24 03:15:42 yep, so you're on the right track May 24 03:15:50 :) May 24 03:16:05 Could still possibly crash my servers if you sent out 10k requests haha May 24 03:16:41 btw, i have to get 'recertified' on payment card industry-compliant coding every year ;) i do app development for a fortune 500 retailer May 24 03:17:00 every app i right gets hit by penetration tests - both automated and manual May 24 03:17:05 write May 24 03:17:22 lean these things kind of fast, haha May 24 03:17:40 Lol, wow May 24 03:19:23 it's 11:00 at night... i need a friggin' burrito. i think taco bell is still open but that's it... May 24 03:19:32 beggers can't be choosers, bbiab May 24 03:19:37 k May 24 03:20:47 Lol, later bro May 24 03:29:11 martin fowler is a smart dude, but his pictures are aweful May 24 04:05:48 debating driving back to taco bell and berating the lady i explicitly asked for fire sauce May 24 04:06:15 but think i wouldn't want to be berated at midnight by some guy who just spent $2.50 for dinner and didn't get his squeezy packets May 24 04:06:23 taco hell fire sauce is shit May 24 04:06:27 Did she give you extra diarrhea sause instead of mild explosion? May 24 04:06:27 just put siracha on that May 24 04:06:37 she gave me no sauce May 24 04:06:55 Oh no, how are you going to destroy your toilet later tonight with no sauce?! May 24 04:07:13 Pretty sure it's not the sauce that causes that... May 24 04:07:16 i have chalulah, tobasco habanero, and w2g homicide downstairs if i really were so included May 24 04:07:19 inclined May 24 04:07:32 but, considering i can't get off my butt to go downstairs, how would i expect to go back to taco bell? May 24 04:07:47 True that. May 24 04:07:53 I like their 5 dollar boxes May 24 04:08:08 lot of subpar food for 5 bucks, i'll take that any day May 24 04:08:13 but i just got a soft taco and a 7-layer May 24 04:08:14 5 and 7 layers burritos are great. May 24 04:08:28 Haven't had a 5 or 7 layer burrito May 24 04:08:32 I like their double deckers May 24 04:08:52 Who am I fooling I probably like everything they have May 24 04:09:28 I haven't eaten anything from taco hell since I was probably 16 May 24 04:09:37 That shit is gross dog. May 24 04:09:41 so last week? May 24 04:09:48 Snap! May 24 04:10:01 Me and a bunch of co workers go out for lunch every friday, we hit taco bell maybe like once every 3-4 weeks May 24 04:10:01 Lets see.. that would be... 12 years ago... May 24 04:10:18 hah, wish i coworkers were that cheap May 24 04:10:25 haha May 24 04:10:29 when they say we're going out to lunch, i never spend less than $15 May 24 04:10:34 If you worked were I work you can't afford anything else May 24 04:10:37 You can get better quality tacos from a local mom and pop taqueria for just as cheap May 24 04:10:47 our neighbor is opening a taqueria truck May 24 04:11:01 There are better places, for cheaper/same but none around the work. May 24 04:11:03 he was practicing cooking in his driveway yesterday. he's got it all set up. not sure where he's going to park it yet. May 24 04:11:08 We have 30 minutes for lunch. May 24 04:11:11 No time for anything farther. May 24 04:11:36 ah, i have time for whatever for lunch and, as a result, we end up at Max & Erma's or Champps or a local greek place or who knows where May 24 04:11:45 Oh wow. May 24 04:11:45 never anywhere i can get anything for 5 bucks May 24 04:12:16 We hit up fast food, and still usually am late. Luckly the manager of our department comes along, so he fixes our clocks May 24 04:12:53 we're salary so clocks aren't an issue May 24 04:13:01 and usually our manager/director is with us May 24 04:13:22 He's salary, so he will go and get stuff at times. We order chinese and this sandwich shop in advanced and he goes and picks it up, then we clock out. May 24 04:13:55 weve got a great indian buffet we hit sometimes. still $13 though May 24 04:14:06 That gets expensive. May 24 04:14:23 Maybe one is cool, but I mean over a span of a year, going weekly I'm assuming, adds up. May 24 04:14:30 once* May 24 04:14:49 we have cafe/restaurants in our office... but even that can be expensive May 24 04:14:59 We aren't that big. May 24 04:15:03 Vending machines ftw haha May 24 04:15:22 Speaking of which I have to be up at 5, so I'm getting off. May 24 04:15:26 Later, thanks for the help. May 24 04:15:36 our vending machines suck. won't take my credit card. and i got a coffee today and it gave me cream/sugar water May 24 04:15:47 of course, we also have a starbucks but i didn't want to spend $5 for coffee May 24 04:15:55 yw, night, man! May 24 04:15:57 Yeah ours suck too. I think it's a national thing. May 24 04:16:09 I don't drink coffee, thank god. May 24 04:31:44 i don't understand netflix sometimes... "Like: The X-Files... Cheers. Ally McBeal. Frasier. The Guild. Crossing Jordan. Xena: Warrior Princess" No, no. Netflix. Those are *nothing* like the X-Files. May 24 04:33:28 2-headed shark attack... this has to be a 5 star movie all the way May 24 04:39:49 Hi May 24 04:40:18 anyone tried aggregating rawcontact to contact customly May 24 04:40:19 ? May 24 04:50:17 b1n0ry|fatNlazy: teenagers nowadays probably don't even know what the X-files was May 24 04:50:27 shameful May 24 04:50:40 b1n0ry|fatNlazy: People who remember that show are the same ones who remember Cheers, Ally McBeal, Frasier, Xena etc. May 24 04:50:54 The truth is out there May 24 04:51:01 i guess that's why it's 'like' lol May 24 04:51:13 although i pretty much disliked all of those other shows... except maybe xena. May 24 05:07:51 do you guys know of any alternative TTS engines that I can roll into an app? May 24 05:08:42 anyone try yahoo axis yet ? May 24 05:11:17 or better yet, any way to extend the voices for the current engine? May 24 05:12:42 g00s: yeah, 'not available for your operating system'. There goes my interest! May 24 05:12:50 heh May 24 05:13:01 are you running qnx or something :) May 24 05:13:19 No, Ubuntu. May 24 05:13:22 Nothing exotic :) May 24 05:13:27 g00s, dead link for me too and im on w7 May 24 05:44:49 so are there many arm-9 androids out there still or are most of them arm 11? May 24 05:50:40 http://www.appleinsider.com/articles/12/05/24/rumor_google_asus_to_release_joint_7_inch_tablet_in_july.html May 24 05:50:52 ai, but not obnoxious May 24 06:10:03 What do you do to get an AndroidManifest.xml in ABS again? This step doesn't seem to be included with instructions May 24 06:13:16 Ah, it's in library/ . Nevermind! May 24 06:40:56 hi May 24 06:41:10 is there a way to show the scheduled alarms with a cmd line command? May 24 06:43:51 I highly doubt it. May 24 07:11:58 monsti: adb shell dumpsys alarm May 24 07:19:04 android uses subset of java api so is there a way to limit it by ide like get warning or is it that when we try to deploy/run app from eclipse it will error out ? May 24 07:20:24 I mean do we have to be worrying about what apis from jdk j2se we use or can ide help us with that ? May 24 07:21:29 mms_: afaik you at least get errors when compiling May 24 07:25:40 I just checked and found that ide restricts. I typed java.awt and it brought back only fonts completion. May 24 07:26:27 Apart from it in the manifest I did not get few actions to show up but they never complain if I type them. May 24 07:26:38 anyone here worked on android + nfc May 24 07:26:38 ? May 24 07:29:34 what is the best way to store USERNAME and PASSWORD for a secured remote service that i'm trying to interact with through my android app? May 24 07:29:42 is it ok to store it in the code? May 24 07:29:57 ask the user for it? May 24 07:30:03 oh wait May 24 07:30:05 uhmmmm May 24 07:30:29 you're not the first to have this question May 24 07:30:32 try googling! May 24 07:30:45 can't really ask the user Snuffel, not an app like that, May 24 07:30:51 i did try googling it May 24 07:31:01 infact i even posted a question on stackoverflow May 24 07:31:15 and there have been some methods which have been suggested but none of them seem secure May 24 07:32:51 Snuffel, have you ever come across such a usecase? May 24 07:34:18 gaara_akash: i was at DroidCon last november (?) and there was a talk about it yes May 24 07:34:27 but personally, no May 24 07:34:56 aite, if there is anything you can remember that might assist, i'd be very greatful... May 24 07:35:13 Snuffel, do you by chance recall something got to do with account manager? :) May 24 07:35:54 i'd have to google it too May 24 07:36:40 no worries May 24 07:40:10 hi, how i can load file from my assets folder with File myfile = new File(uri) ? May 24 07:45:18 answer : InputStream fIn = this.getAssets().open("mypage.html"); May 24 07:46:29 erufu: so you didn't want a File, changes the question quite a bit =) May 24 07:50:24 =) i want a file to parse it so finally a Stream directly is fine :) May 24 07:50:41 erufu: would've been better to ask that ;) May 24 07:55:15 true ;) May 24 07:57:38 is there any tools to tell me api level for each method call/object May 24 08:04:06 hi, actionbar are not supported anymore in new SDKs? The import android.app.ActionBar cannot be resolved May 24 08:27:42 Good morning fellow android developers May 24 08:29:13 do we have web service client api reommendations ? May 24 08:30:48 mms_, could you define the question a bit more please May 24 08:31:15 I see few articles using ksoap to access web service from android May 24 08:31:30 I am here to get view on whats latest out there May 24 08:40:14 mms_, I dont know about other people but for a rest service I implemented something like the RESTLoader detailed here http://neilgoodman.net/2011/12/26/modern-techniques-for-implementing-rest-clients-on-android-4-0-and-below-part-1/ May 24 08:40:49 I am looking at jax-ws currently and there is an article on ibm site May 24 08:41:34 i didn't know jaxws can do REST May 24 08:41:39 but i'm a bit behind on that May 24 08:41:57 i got a 500 server error :( May 24 08:42:13 maybe his web server is running android too May 24 08:42:49 Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? May 24 08:42:55 that guy looks like a typical developer May 24 08:42:55 :) May 24 08:43:07 Virgil Dobjanschi May 24 08:43:18 reload the page g00s I got 500 the first time too, I thought it was my connection May 24 08:43:51 if it was your connection then you wouldn't have gotten an http status code back May 24 08:44:05 load balancer perhaps? May 24 08:44:06 nice link though May 24 08:44:08 i disagree with this guy; i wouldn't use loaders for this. May 24 08:44:17 i personally don't May 24 08:44:27 I have my own very particular way i've been fostering for a while May 24 08:44:34 I've been thinking about releasing my pattern in a blog post May 24 08:44:45 you should do, the more approaches the better May 24 08:44:50 heh May 24 08:45:08 I thought loaders where the way forward rather than async tasks? May 24 08:45:16 yeah me too May 24 08:45:26 IMHO conflating the idea of multithreading with HTTP requests isn't the way to go May 24 08:45:36 they are separate pieces May 24 08:45:58 hi all, what android webserver do you suggest to use? i did not manage to get mongoose running with application.. only through adb May 24 08:46:12 why you think people in general use android web servers is beyond me May 24 08:46:38 try opening a process or using jni May 24 08:46:39 do they exist? May 24 08:46:42 yes, they do May 24 08:47:11 eh, what's the point? May 24 08:47:13 i need it for sync data from another server, to have persistant connection.. May 24 08:47:18 maybe try using a java based one, you might have an easier time. May 24 08:47:35 the whole point of HTTP is that you *don't* use persistent connections May 24 08:47:38 it's request-response May 24 08:48:06 readme: i dont know what to tell you, it is what i got in specification.. need to do it :) lol May 24 08:48:06 can you have one. obviously May 24 08:48:10 is it a good idea, i don't think so May 24 08:48:13 your spec sounds dumb May 24 08:48:21 get a java based server if you can May 24 08:48:32 NDK is obviously proving to be a difficult pursuit for you May 24 08:48:40 i said that too.. but they did ios app without, and it was much slower, so they decided on android go right away with webserver May 24 08:48:51 yup May 24 08:48:54 mbarisa_: did you try play! May 24 08:49:09 g00s: w00t? :) May 24 08:49:22 mbarisa_: going through a local web server doesn't sound very efficient.. but then I have no idea what the app is supposed to do May 24 08:49:32 mbarisa_: http://www.playframework.org/ May 24 08:49:33 mbarisa_, what are you using the persisant connection for? May 24 08:49:56 it is supposed to download some .zip and unpack it in external storage, then update every now and then basically May 24 08:50:02 btw, i have no idea if what you are trying to di is crazy or not :) May 24 08:50:21 i just heard 'web server for android' or something May 24 08:50:31 which is usually crazy :) May 24 08:50:49 how many parallel connections does the web server need to support? May 24 08:51:01 surely you should be using a service and httpclient/urlconnection May 24 08:51:04 mbarisa_: sounds like you want to use alarms and intent service, or perhaps c2dm to trigger updates May 24 08:51:13 ugh May 24 08:51:19 why did you think you needed a webserver ON your android!? May 24 08:51:20 if you ask me.. May 24 08:51:29 hehe May 24 08:51:30 i should not have webserver May 24 08:51:39 thats what you've been saying, though. May 24 08:51:43 but i got it on specification and i need to do it like they say.. May 24 08:51:59 you need to push the spec back and tell them android != ios May 24 08:52:02 i think i can download, unpack and just open it.. May 24 08:52:04 04:45 < mbarisa_> hi all, what android webserver do you suggest to use May 24 08:52:09 you've been asking the wrong question May 24 08:52:11 and check every now and then for changes May 24 08:52:16 mbarisa_: a web server is not for retrieving data, it is for serving May 24 08:52:17 that's why it took so long to get a right answer May 24 08:52:57 mbarisa_: are you sure it says web server in your spec? May 24 08:53:16 it says mongoose web server and link to build on android :) hahahha May 24 08:53:26 wtf May 24 08:53:29 ... May 24 08:53:35 i managed to build it.. but dont know how to get it running in app May 24 08:53:47 http://code.google.com/p/mongoose/wiki/BuildOnAndroid May 24 08:53:53 what is the business purpose of running this on the device? May 24 08:53:53 that url :) May 24 08:54:32 perhaps I'm stupid, but this makes no sense to me May 24 08:54:37 I lol'd May 24 08:54:39 writing maleware perhaps May 24 08:54:42 malware* May 24 08:54:56 lol not.. it is this scenario May 24 08:55:13 thats a !lol May 24 08:55:27 download a zip under some bookid .. unpack it and you get a bunch of .html, .js, images, etc.. May 24 08:55:33 and you open that in custom webview May 24 08:55:43 you don't need a webserver to open something in a webview. May 24 08:55:47 you can just load the data. May 24 08:55:48 yeah i know that May 24 08:55:49 mbarisa_: you can do that directly in a web view, you don't need a web server for hat May 24 08:56:00 just implement it without the server and show them whats up May 24 08:56:20 i sended some email to my boss so waiting for his answer.. May 24 08:56:26 thanks guys.. May 24 08:56:36 i know i can do it without.. i created a test for it.. May 24 08:56:38 oh man, when i hear web view, i run May 24 08:56:41 initiative is doing what is right when you are confident it is right without asking for permission first. May 24 08:56:54 thats how you show you're independent and capable May 24 08:57:03 i'd just code it May 24 08:57:16 readme: yeah, i'm still too young :) got a lot to learn.. May 24 08:57:29 but i said same as you did when i saw webserver part.. May 24 08:57:52 and got in discussion with guys that are on the project.. and they told me to go talk to boss :) May 24 08:57:54 This webserver is cool. if you have a realistic use case. May 24 08:58:11 readme: mongoose ? May 24 08:58:14 mbarisa_: let's hope you don't have some boss from hell ;) May 24 08:58:23 mbarisa_: If the spec-dude/ettes seriously require you to do this, just keep on handing them '?' when doing the estimates. May 24 08:58:28 Or 1000000000000 May 24 08:58:44 if it would be needed to use.. any idea how to get it running with the app not to adb push and go execute that binary? May 24 08:59:14 I havent touched databases in android for a while, are there any best practices for how to layout the classes for accessing and managing the database? May 24 08:59:41 have you tried reading the NDK docs mbarisa_ May 24 08:59:49 mbarisa_: For one, I don't believe you can push to data/local/ from an app May 24 09:00:02 readme: i did, even tried to create project from sample test-jni but no luck :/ May 24 09:00:18 if you don't get hello-jni working you are not ready to move on to mongoose! May 24 09:00:21 finish that first May 24 09:00:55 and don't forget, you will have to likely do arm and x86 mongoose builds with the ndk ;) May 24 09:01:08 why x86? May 24 09:01:14 now that intel chips are starting to pop up in android phones May 24 09:01:22 arghhhh May 24 09:01:25 i think the first one is china May 24 09:01:32 owner and shell have +w on /data/local on my device May 24 09:01:38 (shell group) May 24 09:02:00 i tried to just run it too.. but i cant get it running like this.. May 24 09:02:17 are you trying to use the NDK on windows? May 24 09:02:37 because it seems like it's easier to get working on linux, from what I've heard from people trying to use it on windows. /me has only tried on linux. May 24 09:02:43 Runtime.getRuntime().exec(new String[] {"bash", "-c", "cd /data/local & ./mongoose"}); May 24 09:02:51 readme: mac os May 24 09:03:00 is mongoose IN /data/local? May 24 09:03:03 yup May 24 09:03:13 you need && May 24 09:03:18 & is wrong May 24 09:03:38 && will execute ./mongoose if you successfully move to /data/local May 24 09:03:49 & will do a cd /data/local in a background process May 24 09:03:59 and then a ./mongoose in the CWD May 24 09:04:08 relying on bash is also silly May 24 09:04:09 use sh May 24 09:04:42 not working :) May 24 09:05:18 but it is there.. May 24 09:05:20 how about you try something simpler first like cd /data/local && ls -l May 24 09:05:29 because I think it's the way you're running the command May 24 09:05:33 also I'd try the full path "/bin/sh" May 24 09:05:37 instead of "bash" May 24 09:05:42 and not use bash.. use sh May 24 09:06:15 uhm, why not directly .exec(new String[] {"/data/local/mongoose"}) ? May 24 09:06:32 what? May 24 09:06:37 this would not get it running May 24 09:06:40 it is executable file May 24 09:06:48 maybe /data/local/./mongoose May 24 09:06:52 but that is not working either May 24 09:06:55 i tried that already May 24 09:07:02 mbarisa_: wtf are you saying? May 24 09:07:18 Your app most likely has to request root for it to have access to data/local/ May 24 09:07:36 mbarisa_: /data/local/./mongoose makes no sense, is the same as saying /data/local/mongoose May 24 09:07:51 dada: ok, sorry.. did not know.. May 24 09:08:19 thanks but not working either May 24 09:08:30 then the problem is elsewhere :-) May 24 09:09:18 yup, i'm going to try ndk thingie :) maybe ill have more luck today :) May 24 09:09:26 mbarisa_: do you get something more specific about the "not working" in logcat? May 24 09:09:50 dada: nothing helpfull May 24 09:10:58 mbarisa_: maybe he's trying to be helpful and you are not noticing May 24 09:11:19 there is nothing in logcat on that May 24 09:11:35 i got before that my working environment is null when i tried /bin/sh and /bin/bash May 24 09:11:41 but when i use only bash all passes May 24 09:11:46 and i get no error whatsoever May 24 09:15:41 Oh yay, api15 x86 emulator image May 24 09:19:27 how can i remove the default application icon and application name from my OptionsMenu May 24 09:19:59 I dont find id in R.java file. any change recently or any wrong thing? May 24 09:20:37 dada: my expectation was that he wanted the webserver's CWD to be /data/local May 24 09:20:39 .xml May 24 09:21:50 oops, i thought play was like twisted May 24 09:22:43 OOPS May 24 09:23:20 oops, indeed May 24 09:23:21 Hi. Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? May 24 09:24:10 iKb: my xml only includes item 1 to item 10 and is inflated in menubat, i am still getting as first items the name of my app and its logo May 24 09:24:13 i want to remove that May 24 09:24:59 I'm going to clone the iphone calendar. May 24 09:25:03 It's supergood. May 24 09:35:50 is there a way I can share an fd allocated by ashmem via sockets rather than binder and mmap it and use it? May 24 09:39:26 is there a way I can share an fd allocated by ashmem via sockets rather than binder and mmap it and use it? May 24 09:43:36 sup guys? May 24 09:44:11 is there a way to programmatically know what is the name of an image that is the drawable for an ImageView? May 24 09:44:20 what i mean is: May 24 09:44:28 I have an ImageView May 24 09:44:44 and I what to know what's the drawable for it May 24 09:46:06 do you mean Resources.getResourceEntryname? May 24 09:46:37 There is not, you can't get the res id from an imageview May 24 09:49:23 I am using my android device after a period of 10 months .. now if i try to download anything say even games like Angry Bird I get an error status that the application cannot be downloaded. I tried with a different user.. but there also i got a security issue. What can be done in this matter. I checked if the App version is min app version supported no issues there too May 24 09:49:58 yo bro ho May 24 09:50:32 is there any way to direct where abouts your action bar items go in regards to top or bottom when using a split actionbar? May 24 09:50:53 They always go to the bottom when using split actionbar May 24 09:51:21 fffff May 24 09:51:28 that's handy dandy May 24 09:51:41 it's not really split then is it May 24 09:51:45 more of a ? bottom action bar May 24 09:51:53 with super duper huge title bar >: ( May 24 09:52:09 that's aimless anger by the by, not shooting the messenger May 24 09:52:18 I could of swore I saw an app using top and bottom May 24 09:52:25 getting one of them was a faux actionbar May 24 09:55:34 a-ha! May 24 09:55:42 how do they do the mail count in the Gmail app? May 24 09:56:01 mail count? May 24 09:56:03 In the action mode? May 24 09:56:12 in the action bar on ICS , top right May 24 09:58:27 Maybe a custom view, dunno May 24 09:58:31 Not with menu items May 24 09:59:01 Never noticed it until you pointed it out May 24 09:59:51 Hi. Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? How can the default apn be selected programmatically? May 24 10:02:55 g00s: I have an ImageView May 24 10:03:05 and I want to get its drawable May 24 10:03:09 like May 24 10:03:21 String name = image.getDrawable(); May 24 10:03:59 Can't do that May 24 10:05:05 there is no way do do that?! May 24 10:05:08 O_O May 24 10:05:21 No May 24 10:05:29 oh noez May 24 10:05:35 What's the use case May 24 10:05:53 is there a different way to figure out what drawable is populating an ImageView? May 24 10:06:21 I need to have different behavior according to the image May 24 10:06:52 Well, figure out some other way May 24 10:07:06 any suggestions? May 24 10:07:13 Save the res id, or name, or whatever in a separate variable or something May 24 10:07:24 hmmmm May 24 10:07:31 I can actually do that May 24 10:07:54 hi I am using api level 8 and I have app widget on home screen and am testing using emulator. The thing is the widget size is fixed and is not changing if I change its specs in info file using android:minWidth="294dp" android:minHeight="72dp" May 24 10:10:11 any idea whats causing the widget to not change size according to settings in info file ? May 24 10:12:50 I am getting error if I use R.id.textview. I have defined it in my xml properly. I check the r.java file. I cant find Id class there. Am I doing any mistake? or is it a generic issue which has another solution. please help May 24 10:14:25 Guys once i created app how can I find ouy fast what is lowest verion of Andriod it can run on? May 24 10:14:38 Trudko: Check your manifest May 24 10:14:47 Rrjois_: Did you import the right R? May 24 10:15:31 SimonVT, in manifest is version of SDK i set not the lowest possible one , no? May 24 10:16:21 You set minSdkVersion May 24 10:16:34 The name kinda gives it away May 24 10:17:03 SimonVT, I dint import R. I am getting R. but not R.id. It showing error as Id cannot be resolved. r.attr,r.drawable is working. May 24 10:17:14 Wonder, is there a list of all broadcasts (that some given Android release) can send? May 24 10:18:34 Try clean project May 24 10:18:46 SimonVT, ok May 24 10:19:08 SimonVT, yes I set and that is why am I asking how to find which is lovest SDK I can set May 24 10:19:33 Depends which APIs you are using May 24 10:19:39 You can try setting it lower and running lint May 24 10:19:45 Check if it gives you any warnings May 24 10:19:59 any idea whats causing the widget to not change size according to settings in info file ? May 24 10:20:03 SimonVT, yes it worked. But y does it happen so much in eclipse? Sometimes R shows error. Again clean helps. wat exactly happens whn we clean? May 24 10:20:16 The app is recompiled May 24 10:20:21 When you compile app, R is generated May 24 10:20:40 mms_: Are you re-adding the widget, or are you expecting an existing one to magically change size? May 24 10:20:42 SimonVT, yeap thats only way I think how it can be done May 24 10:20:50 just change it and find out what happens ;) May 24 10:21:08 SimonVT: I am readding widget with new dimension in info file May 24 10:21:21 I am in fact running via eclipse on emulator May 24 10:21:27 or its redploying apk May 24 10:21:28 What size is it when you add it? May 24 10:21:45 android:minWidth="294dp" android:minHeight="72dp" May 24 10:22:11 Yes, that's 4x1 cells on old platforms May 24 10:22:20 And when you add it? May 24 10:22:31 when ? May 24 10:22:47 I did not get your question May 24 10:22:58 You're saying the widget isn't the size you defined May 24 10:23:11 I get a square and its size is constant even if i change minWidth to 600 May 24 10:23:29 hi all May 24 10:24:09 http://stackoverflow.com/questions/10735426/get-drawable-from-imageview May 24 10:24:24 I'll be happy if someone will get a chance to take a look May 24 10:25:01 So it's 1x1 on the homescreen? May 24 10:28:29 suit, not suite May 24 10:28:57 thepoosh: You already got the answer May 24 10:29:51 I know, I wanted a second opinion, this is fairly trivial and it annoys me think that you're correct May 24 10:30:01 really frustrating May 24 10:30:26 hey guys May 24 10:30:34 I m trying to create a custom view May 24 10:32:37 SimonVT: yes its not of size as I define May 24 10:33:34 I removed the widget from home screen, redeployed app with new size, added widget and its same size May 24 10:34:21 also in android 4 I am unable to add widget to home screen....the menu options on home screen are different from one in android 2.2 May 24 10:34:53 olie well don't keep us in suspense May 24 10:50:16 Hi. Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? How can the default apn be selected programmatically? May 24 10:56:50 G'day May 24 10:59:20 SherlockFragment May 24 11:01:31 * monsti got rid of fragments May 24 11:01:35 would there be something in the TOS about me promoting donations outside of say in-app purchases? suppose i just say 'donate here' and show a bitcoin address? May 24 11:02:03 monsti: how come? they can be useful, but sometimes frutrating May 24 11:02:06 *frustrating May 24 11:02:26 i'm just not so sure i want to get so married to the Sherlock* stuff May 24 11:02:43 i really do have to replace everything with SherlockActivity, SherlockFragments, etc May 24 11:04:04 g00s: i use android binding and i created my own system :) May 24 11:04:19 e.g. fragment's can't be nested May 24 11:04:28 oh, yeah May 24 11:04:29 my stuff can be nested May 24 11:04:53 it's much like wpf using mvvm May 24 11:06:48 i think i'm going to delete all my old commons ware crap May 24 11:06:59 * g00s is doing housekeeping May 24 11:13:00 hi guys , i have created an app and published in the google play.I need to know how can i check the upcoming versions for my app and notify the user to upadate the app.Is there any way to achieve this? May 24 11:14:47 Android03 let the system do that? or you will have to tell them to go to play May 24 11:14:51 does anybody know the style attribute which controls the onpress color of listview items (theme)? May 24 11:15:44 xorgate: it's ok ,but how can i notify the user who is using the app that there is an update in the play May 24 11:15:45 ? May 24 11:16:28 either find out play's version by getting the webpage (bleh) or store a file on your own server with latest version number May 24 11:16:37 and ask that every now and then May 24 11:17:13 or you go overboard and use c2dm May 24 11:17:29 i think the q is : do you really want to do this May 24 11:17:37 xorgate : i was checking this library but don't know if it is official ? May 24 11:17:50 xorgate: http://code.google.com/p/android-query/wiki/Service May 24 11:26:22 can any one tell me how can i use this library http://code.google.com/p/android-query/wiki/Service? May 24 11:34:57 Hi. Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? How can the default apn be selected programmatically? May 24 11:35:01 Please? May 24 11:38:27 i have created an app and published in the google play.I need to know how can i check the upcoming versions for my app and notify the user to upadate the app.Is there any way to achieve this? May 24 11:38:42 hi May 24 11:39:01 lol May 24 11:39:54 suppose I have an app launching a video player app with an Intent. While the video is playing, I'd like the user to be able to display an overlay popup showing custom controls over the video. 1. Is that even possible ? 2. if it is possible, how could the user could trigger the display of that popup given a fullscreen video is running ? May 24 11:41:50 i have created an app and published in the google play.I need to know how can i check the upcoming versions for my app and notify the user to upadate the app.Is there any way to achieve this? May 24 11:42:55 i am interested in this lib http://code.google.com/p/android-query/wiki/Service but don't know if it is official? May 24 11:43:20 bubbleguuum: doubt you can do that and get a good user experience. duplicate player controls (yours and the apps own) and many more issues May 24 11:44:33 appel1: that popup would just display a custom seekbar. The real issue is I cannot think how the user could display that popup given that the notification are is not visible. May 24 11:44:51 bubbleguuum: and what would the seekbar do? May 24 11:45:41 it would seek but not the traditional way. That's for video streams managed by my app that are not seekable otherwise May 24 11:48:19 Hello. I'm having a strange problem. I'm accessing a REST webservice using HTTP defaultHTTPClient. I use it to login. If I use Wi-Fi it works perfectly well (get a nice error if credentials are wrong and proceed to the next screen if the credentials are OK). However, when I use a 3G connection it doesn't work anymore. May 24 11:48:56 I do have the INTERNET permission, so that's not the problem. May 24 11:49:48 I catch all kind of exceptions (IOException, UnknownHostException) and they are all thrown but it seems completely random when May 24 11:50:43 niles11_: does the actual error not give you any clues? May 24 11:51:44 No I have googled them, but with little succes May 24 11:52:23 I'm really noob.. how do i call this = protected boolean isBetterLocation(Location location, Location currentBestLocation) { May 24 11:52:35 i tried this but doesnt work = String ccc = "istrue?"+isBetterLocation(); May 24 11:53:09 niles11_: does 3g work at all on the device you're testing on? May 24 11:53:48 i have created an app and published in the google play.I need to know how can i prompt the user about the upcoming versions for my app and notify the user to upadate the app.Is there any way to achieve this? May 24 11:53:50 I'm not sure I have any other android devices available, I will try it tough if I have one May 24 11:54:14 niles11_: just open the browser or any other app while connected via 3g and see if it works :) May 24 11:54:31 b3nni, ... the function takes two Location arguments.. May 24 11:54:40 Android03: the market - play store - will do that automatically for most users May 24 11:55:15 Leeds: what do mean by for most users? May 24 11:55:41 Android03: they could have disabled automatic update notifications, but I bet most users don't bother May 24 11:56:45 Leeds: ok , u mean don't need to implement anything if version changes the google play will notify the user automatically? May 24 11:56:58 correct May 24 11:57:07 Leeds: ok thanx May 24 11:57:07 unless the user has disabled update notifications... May 24 11:59:04 Leeds:but i have come to know that some time it does not notify user for updates even if they enabled it May 24 11:59:24 it's pretty reliable nowadays May 24 11:59:43 if every app had their own update notification, it would be mad May 24 12:00:37 but client wants to prompt the user explicitly also ,i was checking this lib http://code.google.com/p/android-query/wiki/Service May 24 12:00:51 Leeds : what do u say about this? May 24 12:01:05 is there a way to hide some positions in PreferenceScreen? I have defined the .xml and I am using some of the preferences in my activity ut I do not want them to be seen in the preferences activity May 24 12:01:35 So you guys know that after you use fragments, you may also use PreferenceFragment... and that may mean that you have, like, 3 xml files all contain various preference settings May 24 12:01:43 Android03: I say don't use it May 24 12:01:49 simh: just dont put the preference screen activity xml :) May 24 12:01:52 simh: you can use SharedPreferences without a preference activity May 24 12:01:58 and you may want to set default preferences using PreferenceManager.setDefaultSharedPreferences(this, R.xml.prefs_foo, false); and do this 3 times, once for each of your XML files May 24 12:02:15 well it turns out this call only works for the *first* xml file because after that it does the _has_set_default_values.xml file May 24 12:02:27 jesus christ, this prefs handling is such a pile of bullshit May 24 12:03:34 but without the initial loading of the xml can I set the default value? the one which should be used after instalation? May 24 12:03:43 Leeds :so what is the way to implement it programitically? May 24 12:04:06 i am pretty new at this, started working few days ago, need someone to guide me and tell me how to do some things or give me some advices/links... if anyone has 5-10min pm please... thx... peace May 24 12:04:13 Android03: don't... unless your app is something *extremely important* and an update is likely to be genuinely urgent - which frankly, I doubt May 24 12:04:33 Hello guys I need your help, because I get an error that doesn't give me any hints. I execute a DB query from an AlertDialog box. than my app crashes. May 24 12:04:46 Angel07: http://developer.android.com/training/index.html May 24 12:04:51 Number5: look at logcat May 24 12:05:31 I already did, it says null object, when I was debugging, I couldn't find out cause I had no objects with null May 24 12:05:49 Leeds: i understand , but client wants this May 24 12:05:52 Leeds ;one suggested way is to call an api in the server and check if the version has been changed or not ,if it is direct the user to google play May 24 12:05:55 Number5: if you got a NullReferenceExcpetion then something must have been null May 24 12:06:05 NullPointerException May 24 12:06:14 So I later modified the code and run that piece of query on an onClick event of a buton and that seems ok. May 24 12:07:03 it's really weird. May 24 12:07:30 appel1, I understand you, but I can step debug and see all the values of the variables... May 24 12:07:40 If you get a NullPointerException, something is null May 24 12:07:42 Leeds: but my doubt is, calling an api everytime is not good May 24 12:07:45 Whether you know how to debug or not May 24 12:08:01 Leeds : don't we have anyother way May 24 12:08:01 ? May 24 12:08:15 SimonVT, yes I get that logic... May 24 12:08:49 So, look at the line the NPE is at May 24 12:08:54 And figure out what could be null May 24 12:09:22 Android03: then your client is wrong May 24 12:09:40 SimonVT, ok, I'll check it out thank you May 24 12:11:08 I get IOException: recvfrom failed: ECONNRESET (Conection reset by peer) May 24 12:11:16 only over 3G May 24 12:11:29 simh: thx for link, i used it before but i need some certain things which i dont know how to make... if anyone has 5min please pm... thx... May 24 12:11:36 Leeds: i too think that May 24 12:13:01 Android03: There's probably no good solution, since this is simply not something apps should do May 24 12:13:09 Users have hundreds of apps on the devices May 24 12:13:27 It'd be a mess if every single on phone home and checked for updates, when play store does a fine job at it May 24 12:13:42 No single app is that important May 24 12:14:17 niles11_: that means the connection was closed. do you have control over the server you connect to? May 24 12:14:30 yes I have, I run my own server May 24 12:14:51 niles11_: is it your server that closes the connection? May 24 12:16:10 Zharf thanks May 24 12:17:27 yes apparently. But I get more errors. And if I look a the raw output it's an HTML site which says: GW fout 401 Ongeoorloofd (which means something like: GW Error 401 Not allowed). Strange thing is that I did not create that HTML site. Neither is my Apache installation set to dutch (so it's strange it returns a dutch HTML page) and my REST response should be JSON. And using a REST client for Google Chrome is shows a nice JSON ou May 24 12:18:17 What makes it even weirder is that with using Wi-Fi I get the JSON result I want, in that case it just works exactly the way I want May 24 12:18:53 niles11_: your webserver returns that? May 24 12:18:55 most providers use proxies May 24 12:19:10 niles11_: otherwise, what Snuffel said May 24 12:19:12 maybe that's your problem May 24 12:19:39 are you using a strange port? May 24 12:22:08 no I didn't set a different port May 24 12:22:50 niles11_: what port do you use? May 24 12:22:57 http://hippo.2275632.n2.nabble.com/Authenticated-Mount-and-3G-connection-td7473349.html May 24 12:23:02 does that help? May 24 12:23:43 KPN is the suck in this case May 24 12:24:38 Thanks, just half-way trough the page and I'm sure that's the problem. I use Hi, which is part of KPN May 24 12:24:55 i am trying to inflate a menu in my actionbar only the first 2 items are appearing in the action bar , the rest are appearing when i press the menu button what could be the problem? May 24 12:25:43 ocx: when there is no more room for action items, the appear in the 'overflow' -- when your device has a menu key, your menu key is the 'overflow' May 24 12:26:13 can i have an overflow in the action bar? May 24 12:26:23 android:showAsAction=["ifRoom" | "never" | "withText" | "always" | "collapseActionView"] May 24 12:26:28 not if your device has a menu key May 24 12:26:42 if the device has a menu key you will not see the overflow in the actionbar. it will be in the menu. May 24 12:27:00 actually i am using the simulator which has the menu button May 24 12:27:02 most ICS devices IIRC do not have a menu key. May 24 12:27:11 mine doesn't May 24 12:27:14 so you will see the 'overflow' in the actionbar. May 24 12:27:17 i have an htc one x May 24 12:27:26 readme: thanks May 24 12:27:29 np May 24 12:28:28 btw in the action bar i am having the icon logo and the app name as first items, then the items i defined in menu.xml are following, is there a way to get rid of the icon log o and its text? May 24 12:33:38 http://www.washingtonpost.com/business/technology/jury-google-did-not-infringe-oracle-patents-with-android/2012/05/24/gJQAcfqjmU_story.html May 24 12:34:32 I fixed the problem. Thanks guys! I could simply fix it by returning statuscode:200 instead of 401. Alltough that's not the way it should go it does return the correct JSON now and that's what I need... Stupid that some providers try to manipulate parts of the internet May 24 12:39:07 burnt my face from an empanada :( May 24 12:42:07 mikedg: protip: that goes in your mouth, not on your face May 24 12:45:59 moonlightcheese, does this mean that the whole case about Java in Android is now dismissed, or some claims only? May 24 12:46:08 most claims. May 24 12:46:26 three possible infringements with minor consequences. May 24 12:46:33 appeals to come. May 24 12:50:24 Hi all, I need help, just few days working, I want to make an application that will on the main screen have 2 choices(for example expenses and income)(i did that but dont know how to do these next steps -> when I choose expenses i want to open the screen with list of expenses(food, bills) and if i choose food to open a new screen with the types of food and price so i can choose from(example 1 kg of potatoes 3.5$)... thx for help May 24 12:51:36 wongk: although I don't think the flesh of the mouth is any more resistant to burns than the face May 24 12:51:40 so maybe mikedg is lucky May 24 12:52:17 mikedg is definitely not lucky May 24 12:52:23 Angel07: you should probably read the tutorials on d.android.com May 24 12:53:30 FYI, grand theft auto III is only $.99 today on the market May 24 12:53:38 runs decent even on my incredible2 May 24 12:53:48 playable, at least May 24 12:54:32 readme: It probably heals faster. May 24 12:54:43 Workboot: face, or mouth? May 24 12:54:50 Mouth. May 24 12:55:44 yeah I guess it's better to take it in the mouth than on the face. May 24 12:55:57 T.W.S.S. May 24 12:56:27 (TM) May 24 12:56:45 Hi. Does anyone have a solution to the WRITE_APN_SETTINGS issue on ICS yet? How can the default apn be selected programmatically? May 24 12:57:33 how about not repeating that question all day May 24 12:58:20 try stackoverflow.com May 24 12:59:23 How about a response May 24 13:00:32 i hate to say it but IRC sucks for the harder questions. you're getting a random sample of people, whereas with stackoverflow your question is up for a long time, so a lot of people will see it May 24 13:00:39 ^ May 24 13:01:02 Ok thanks readme May 24 13:04:32 irc sucks for questions period May 24 13:04:35 please stop asking them May 24 13:16:15 'how about a response' <- wonderful May 24 13:19:08 #android-dont-ask May 24 13:32:23 good morning #android-dev May 24 13:34:50 mornin May 24 13:36:06 ohayou gozaimasu May 24 13:36:20 hey May 24 13:42:48 guys, on a listview -> row view... how do I ask it to reload its data? ListView.invalidateViews works, but reloads data for all my visible view. I just want to invalidate one May 24 13:43:03 View.invalidate doesn't seem to work :( May 24 13:43:59 why dont you want to refresh all of them? May 24 13:44:12 hi ! May 24 13:46:05 mikedg, because I know which view I want to refresh, and thought that it would be cheaper just to do that one May 24 13:46:50 and besides, ListView.invalidateViews suggests it does an View.invalidate on each of the visible views, but I think it probably does something else May 24 13:47:13 Hi Clouclou May 24 13:47:19 http://stackoverflow.com/questions/2123083/android-listview-refresh-single-row May 24 13:49:10 i want to use ipsec in ICS, with preshared key, from what i have read it's buggy. Do you know any alternative? May 24 13:49:36 i'm root and i can install any binary i want May 24 13:52:32 Clouclou: you want to ask in #android-root May 24 13:52:43 ok May 24 13:53:59 mikedg, the link about Romain Guy's comment (http://stackoverflow.com/a/9987714/95976) worked. Thanks! May 24 13:56:21 cool May 24 13:56:34 my fiance's evo 4g lte should be here today May 24 13:56:34 yay May 24 13:59:35 meh. ICS E-Mail app is hiding unsupported attachment types altogether May 24 14:00:13 I've got 3 screens in my app but when I have a button fire the finish() method it just goes to the 2nd screen in the app...I'd like it to exit the program....any ideas why? May 24 14:00:37 john_doe_jr: you can not exit an app, only finish an activity May 24 14:01:13 either a) clean up your task stack or b) have your finish() kick off a chain reaction that cascades all the way down May 24 14:01:18 Ge0rG: well do I use the onDestory method or something? May 24 14:01:23 or b) don't provide a "quit" button because they are stupid May 24 14:01:28 john_doe_jr: no May 24 14:01:44 mikedg: 4.7 inch screen... wooot. I thought my "old" nexus s had a big screen (4.1 I believe) May 24 14:01:45 oops, that should have been c) May 24 14:01:45 also, http://stackoverflow.com/questions/2092951/how-to-close-android-application May 24 14:04:06 if i do startActivityForResult, there's no way for me to cancel the started activity if it's not in my app, right? May 24 14:05:15 Well, that stupid May 24 14:13:37 Probably a noob question, but if, for instance, a phone is using CDMA and 3G for data, would getting the CDMA signal strength be the same as the 3G data signal strength? May 24 14:15:16 Hello all May 24 14:16:31 I build a custom view extending EditText. I want to set up a default style for this view so in my constructor i used the super(context, attrs, defStyle ) ... It seems that defstyle is not taken into account. May 24 14:18:54 noone can help me ? May 24 14:20:56 you haven't asked a question... May 24 14:21:30 what do you think defStyle does? May 24 14:21:34 cause it's not documented May 24 14:22:59 Alright so the best way to close my program is to call the onfinish() method of each activity....right? May 24 14:23:32 no May 24 14:23:52 does any one know if the linux iw tools work on android on the kindle fire? May 24 14:24:30 mikedg: well, what is the best way? May 24 14:24:53 don't May 24 14:25:02 john_doe_jr: http://developer.android.com/reference/android/app/Activity.html#finish() May 24 14:25:03 why do you think you need a 'close' feature? May 24 14:25:11 Why do you think you need to "close your app" May 24 14:25:11 john_doe_jr: that's for an Activity May 24 14:25:31 john_doe_jr: you don't need to close an app, you just need an Intent to get back to the home screen May 24 14:25:44 what does your app do May 24 14:25:49 what does it look like May 24 14:25:52 who's your daddy May 24 14:26:16 mikedg: still waiting on the test results May 24 14:26:25 looking like the mailman though May 24 14:27:39 So, CDMA/GSM signal strength is the same indicator for 3G/4G data signal? May 24 14:28:06 mikedg: just has 3 screens.... May 24 14:28:18 I want the app to die after hitting complete May 24 14:28:24 Basically want to put a data signal strength indicator (Very Low/Low/Fair/Good/Excellent) in my Activity May 24 14:28:52 or to be more proper I guess replace Very Low and Low with Very Poor and Poor May 24 14:29:09 just not sure what measurement to use May 24 14:29:52 john_doe_jr: why? your phone is too quick so you want to ensure it takes a bit longer to start your app the next time? :) May 24 14:29:57 or maybe "Shitty" and "Poor" May 24 14:30:22 appel1: well, I have to record the the time after a user hits complete May 24 14:30:47 appel1: plus the app closing will be a visual clue to the user that the time was submitted to the server May 24 14:30:49 john_doe_jr: so do that in whatever code handles when the user clicks complete? May 24 14:42:40 appel1: I used finish() but it just goes to the previous activity May 24 14:43:04 so then you need to make your other activity call finish() as well May 24 14:44:42 inception May 24 14:45:07 evancharlton: yes and I can't use a myclass.finish() in another class ...unless I use an inner class I guesss May 24 14:45:08 finish all the things May 24 14:46:46 john_doe_jr: startActivityForResult() May 24 14:46:51 and finish in onActivityResult() May 24 14:46:58 or just use FLAG_NO_HISTORY in your intent May 24 14:51:00 readme: I don't understand...why would I start another intent when I want the app to close? May 24 14:51:19 john_doe_jr: I didn't tell you to "start another intent" May 24 14:51:23 did i? May 24 14:51:42 use FLAG_NO_HISTORY in your existing intents, and then your activities won't be on the stack May 24 14:51:46 so when you finish the last one.... May 24 14:52:02 otherwise you have to create that russian doll pattern where each activity closes the last after it returns May 24 14:52:34 even better: don't have a close button in your app May 24 14:52:47 ^ May 24 14:52:49 readme: alright I've got 3 screens (activities) so on the 2 one use the FLAG_NO_HISTORY May 24 14:53:39 hi guys, i am trying to customize and create my own theme and style, is their any repository that provides some free themese and styles to use in appl? May 24 14:53:59 john_doe_jr: I think just the second needs the flag. May 24 14:54:17 actually, if you want the activity started by the launcher to go too... maybe you are better chaining the finishes May 24 14:55:20 or it there built in themse with the sdks? May 24 14:57:23 readme: Alright, so android:noHistory="true" in the XML? May 24 14:57:44 I've never used that. Where did you see that attribute? May 24 14:58:45 readme: http://stackoverflow.com/questions/1898886/removing-an-activity-from-the-history-stack May 24 15:00:16 hi May 24 15:01:20 can help me with layouts? May 24 15:02:46 sorry, layouts are the one thing we don't help with here May 24 15:09:27 oks.. May 24 15:12:04 t0th_-: he's kidding. Don't ask to ask; just ask May 24 15:23:02 evancharlton i put a listview in a scrollview but it's not working May 24 15:23:46 anybody can recommend a custom view for a user to specify a duration within a range with a maximum set (for example 2:13:12) ? TimePickerDialog is not really appropriate as it seems designed to pick well...a time in the day. May 24 15:24:27 Anyone know how to replace a file in an APK? May 24 15:24:52 enigmus: no May 24 15:25:08 we discuss dev here, but not mods. sorry. May 24 15:25:09 It's a package built by Unity, which is slow. It doesn't come with ant targets, but I'd like to bypass most of the build and just update a library in there. May 24 15:25:19 readme: It's not a mod. May 24 15:26:00 where can i see all the properties of styles and themese that can be customized May 24 15:26:13 ocx: read the doc for R.styleable May 24 15:26:24 ok May 24 15:26:26 zip apk file seems to be OK in principle, but that doesn't update the SHA1 in in META-INF May 24 15:28:27 enigmus: update the file before you sign the .apk May 24 15:28:49 tors: how can I resign the apk on the command line? May 24 15:30:08 instructions are here http://developer.android.com/guide/publishing/app-signing.html May 24 15:31:26 readme: thanks May 24 15:31:33 ocx: you may like this http://blog.stylingandroid.com/ May 24 15:32:29 readme: honeslty i am looking to choose a theme to be compatible with my app, but it seems there is no free things.. i am reinvteng the wheel and restyling... May 24 15:38:15 how can I use a drawable as image resource in Html.fromHtml() ? May 24 15:40:04 i dont think you can May 24 15:40:12 you can use an asset resource though May 24 15:40:12 file:///android_asset May 24 15:40:44 ah, so i could just May 24 15:40:45 ? May 24 15:41:07 if you have the image in /res/asset(s?)/myimage.png May 24 15:41:15 but not /res/drawable May 24 15:41:22 ah May 24 15:41:30 well I can put it there May 24 15:41:32 i suppose May 24 15:44:28 thank you May 24 15:49:57 seems not to work, it just puts a turqoise image instead May 24 16:04:13 I've got a webview that I am changing the content of programmatically. After the content changes, the webview is still occupying space that it needed to display the previous content. How can I shrink it to fit the new content only? May 24 16:07:05 re-setting the layoutparams works, so far. May 24 16:15:10 When I use jarsigner, it creates a file META-INF/ANDROIDD.SF instead of META-INF/CERT.SF. And then the package is rejected as INSTALL_PARSE_FAILED_NO_CERTIFICATES. Why is that? May 24 16:15:52 http://bc299aad9b942b06.paste.se/ I just love how useful this trace is May 24 16:16:50 Zharf: heh. I can soooo relate. I'm fighting a recursion stack overflow in a non-recursive function; and gdb is useless May 24 16:17:09 I'm thinking it's stack trashing here May 24 16:32:15 i´m doing some tests with fragments, i assign a onClickListener to the fragment. but it doesnt work. how can i assign a clickListener to it? May 24 16:32:55 i have some buttons inside the fragment, and pretend to assign behavior to them May 24 16:35:14 can anyone help? please May 24 16:35:57 how can I set the x and y property of a view through code? May 24 16:36:20 I want to create a view with a x,y and a fixed width and height May 24 16:36:56 So, erasing defaults for all applications? How do I get around to that? May 24 16:39:07 RubenGM: you don't assign OnClickListeners to fragments, you assign them to views May 24 16:39:19 shoerain: what? May 24 16:40:04 ali__, why May 24 16:40:10 where should i assign it? onViewCreated? May 24 16:40:17 evancharlton: like choosing the default browser, music player, etc with intents. I want to know if there's a systematic way to erase all default application choices. May 24 16:40:32 shoerain: I doubt it May 24 16:40:46 It'd be convenient... May 24 16:41:06 canadiancow|work: I m creating a custom view and I want to place the child views in a particular place May 24 16:41:24 Zharf: -g -ggdb might give you better traces. May 24 16:41:33 not sure if that stuff is implemented in ndk May 24 16:41:36 why May 24 16:41:44 you just said the same thing twice May 24 16:41:54 "create a view with a x,y and a fixed width and height" == "place the child views in a particular place" May 24 16:41:58 im asking WHY May 24 16:42:06 i thougth it could assign it to the created view. thanks ;) May 24 16:42:42 readme, I kinda thought NDK_DEBUG=1 would do that :E May 24 16:42:45 I'll try May 24 16:42:59 i've not really used the NDK but I have used gcc a bit. May 24 16:43:15 I compiled hello world and synergy, thats it. May 24 16:43:29 canadiancow|work: to make this http://www.google.co.in/imgres?imgurl=http://upload.wikimedia.org/wikipedia/en/thumb/8/85/GradientGroupedTreemap.jpg/400px-GradientGroupedTreemap.jpg&imgrefurl=http://en.wikipedia.org/wiki/Treemapping&h=279&w=400&sz=17&tbnid=Xt2L-hGY7e4oUM:&tbnh=90&tbnw=129&zoom=1&usg=__3jdDE6AlL53932xmuQl32N5Worg=&docid=rGuHbK5cbHnoIM&hl=en&sa=X&ei=EmW-T_CcDouIrAffrLGfDQ&ved=0CHcQ9QEwAQ&dur=1490 May 24 16:43:47 oh cool, you're making a treemap. May 24 16:43:49 man thats long May 24 16:43:49 This ^ is what short urls are for May 24 16:44:02 I have been saying how this would be cool. May 24 16:44:02 *url shorteners May 24 16:44:10 readme: yeah man I;ve got it working fine on iOS May 24 16:44:19 readme, :) May 24 16:44:22 the calculations are all correct May 24 16:44:29 just cant seem to get the view in place May 24 16:44:44 readme, I'm having way too much native code here :p May 24 16:55:12 this sucks.. android programming sucks May 24 16:55:20 Im finding that if i have a surfaceview in a relativelayout it forces the other children to clip to bounds even if i set the relativelayout clip to false, is this a known bug or? May 24 16:55:53 i can post some sample code May 24 16:57:01 PowerInside you suck May 24 16:57:07 Haha. May 24 16:57:13 no u May 24 16:57:14 I was waiting for somebody to say that May 24 16:57:19 lets all not forget, i suck May 24 16:59:27 when people say android programming sucks, i usually say you can always learn objective-c, ios sdk and deal with os x and xcode May 24 16:59:43 man that environment sucks May 24 16:59:55 lol May 24 17:00:10 xcode and library projects is always fun May 24 17:00:14 i am so glad i finally have ubuntu running native on my mac now May 24 17:00:17 * PowerInside slaps canadiancow|work around a bit with a large trout May 24 17:00:37 where in the world does android store the version of your applications database May 24 17:00:56 in the database May 24 17:01:15 i can't find it in my 3 tables May 24 17:01:22 of which aren't "mine" May 24 17:01:25 2 May 24 17:02:05 http://stackoverflow.com/questions/3707797/where-does-android-store-sqlite-database-version May 24 17:02:13 that's no fun May 24 17:02:59 i guess i can modify it with sqlite3 May 24 17:03:05 stand back May 24 17:03:34 wongk: Doing science? May 24 17:03:46 i'm about to May 24 17:03:51 xD May 24 17:05:40 wongk: you can set it with .setVersion(int) ... May 24 17:06:00 Any easy way to get the string of device os version, e.g. "gingerbread" or "ice cream sandwich"? May 24 17:06:05 evancharlton: I think you mean get instead of set May 24 17:06:13 evancharlton: i just need to do it once May 24 17:06:20 sonicrules1234: no I don't May 24 17:06:31 wongk: ah May 24 17:06:39 evancharlton: Oh, I didn't see the first set xD May 24 17:06:54 luxurymode: Build.VERSION.CODENAME May 24 17:07:14 hi May 24 17:07:20 what is com.google.android.gm ? May 24 17:07:31 Probably google music May 24 17:07:41 GMail? May 24 17:07:41 evancharlton returns REL though if its a release build. May 24 17:07:42 no May 24 17:07:45 its gmail May 24 17:07:49 Ah May 24 17:07:53 https://play.google.com/store/apps/details?id=com.google.android.gm May 24 17:08:30 luxurymode: try .RELEASE? May 24 17:08:41 luxurymode: I assume it depends on what the OEM sets it to be May 24 17:08:57 evancharlton, no RELEASE gives me 2.3.4 May 24 17:09:01 that kinda thing May 24 17:09:03 ah May 24 17:09:18 then you're probably hosed. Those OS versions are just development codenames May 24 17:09:25 right May 24 17:09:31 so i'll have to create some hashmap May 24 17:09:47 yes May 24 17:09:52 bc i can get the build.version.release May 24 17:10:03 so i'll just map 2.x to whatever, etc May 24 17:10:05 luxurymode: use Build.VERSIOn.SDK_INT May 24 17:10:07 annoying as hell May 24 17:10:10 and just build an array May 24 17:10:12 evancharlton, right right May 24 17:10:31 right and then call myList.get(sdk_int) May 24 17:10:41 or er... May 24 17:10:45 map prolly better May 24 17:10:49 er no May 24 17:10:53 an array, like I said May 24 17:10:59 CODENAMES[Build.VERSION.SDK_INT] May 24 17:11:10 what if it's too big May 24 17:11:23 that's a problem I run into a lot May 24 17:11:33 if whats too big? May 24 17:11:37 that May 24 17:11:39 like May 24 17:11:41 anyway, use Math.max(Build.VERSION.SDK_INT, CODENAMES.length-1) May 24 17:11:53 or have an "unknown" at the end and use CODENAMES.length May 24 17:12:17 if 10 years from now, we have api level >9000 May 24 17:12:20 and its too big May 24 17:12:22 what then May 24 17:12:29 oh haha right May 24 17:12:40 their magic current development one is 10000 haha May 24 17:12:46 9000 is < Integer.MAX_VALUE May 24 17:12:46 so if thats indication of where we're goin May 24 17:13:12 ok what if it's >9000000000 May 24 17:13:14 so you mean make the array of size Math.max(Build.VERSION.SDK_INT, CODENAMES.length-1) May 24 17:13:29 wait what May 24 17:13:29 recursion? May 24 17:13:32 i need coffee May 24 17:13:36 im hella retarded today May 24 17:13:47 CODENAMES = new String[Math.max(Build.VERSION.SDK_INT, CODENAMES.length-1)]; May 24 17:13:48 do that May 24 17:13:51 let me know how it goes May 24 17:14:03 coffee is known to cure retardation ;) May 24 17:14:09 i prefer redbull May 24 17:14:17 need wings? May 24 17:14:25 well i dont need caffeine often May 24 17:14:27 CODENAMES = { "A", "B", "Cupcake", .. , "ICS", "Unknown }; String version = CODENAMES[Math.min(Build.VERSION.SDK_INT, CODENAMES.length)] May 24 17:14:31 min, bro May 24 17:14:35 I was wrong with math.max May 24 17:14:43 haha right May 24 17:14:45 unless you always want the newest version to be retured May 24 17:14:47 returned May 24 17:14:51 Android APK May 24 17:14:58 ICS wouldnt be the last one though May 24 17:15:00 ICS MR1!!! May 24 17:15:05 yeah yeah yeah May 24 17:15:13 EMM ARE ONE May 24 17:15:13 also May 24 17:15:20 .. in the middle of an array wouldn't compile!!11 May 24 17:16:49 base = 1 May 24 17:16:59 so just put whatever at 0 May 24 17:17:50 or subtract one instead of wasting memory May 24 17:18:04 those extra 4 bytes man May 24 17:18:06 leading cause of OOM May 24 17:18:08 actually im making minsdk 8 May 24 17:18:10 srsly May 24 17:18:12 so no need to even bother May 24 17:18:19 luxurymode: even better May 24 17:18:29 hi May 24 17:18:30 oh wait it's a string array May 24 17:18:32 and java strings suck May 24 17:18:33 thanks for the help guys, appreciate it May 24 17:18:35 so probably an extra megabyte May 24 17:18:35 when i need put my icons May 24 17:18:39 drawable May 24 17:18:41 lol May 24 17:18:50 hdpi or ldpi ? May 24 17:18:55 or mpdi May 24 17:19:01 yes May 24 17:19:03 mdpi May 24 17:19:09 no, all of the above May 24 17:19:18 and xhdpi May 24 17:19:27 i need put in all my xml? May 24 17:19:31 to May 24 17:19:51 http://dobrador.com/wp-content/uploads/2012/05/225250418833066801_GSXzMEtc_f1.jpg May 24 17:21:05 t0th_-: http://developer.android.com/guide/practices/ui_guidelines/icon_design.html May 24 17:21:50 evening May 24 17:22:26 oh hai. May 24 17:22:56 posted this on #android but probably here would be better. May 24 17:22:56 So let's try again. I'm doing some SOAP communication with ksoap2-android that uses Http(s)URLClient on the inside. With ICS my app started failing when trying to use said connection when on mobile newtork (but works just fine when on WIFI). May 24 17:22:56 Also to note. I'm doing that in AsyncTask and have no limit set for the application May 24 17:22:56 it's happening across all ICS roms I can get my hands on (SGSII, Sony Xperia,...) May 24 17:22:56 s/newtork/network/ May 24 17:22:58 I ruled out the network on main thread exception (AsyncTask and works when WiFi), I also ruled out the HttpsURLConnection GET/POST defaults as it works on WiFi May 24 17:23:29 Using HTTPS, and that's about the info I think is relevant May 24 17:23:49 I sumbled on this dead end and don't know how to debug further. May 24 17:24:40 this look right? String[] CODENAMES = { "FROYO", "GINGERBREAD", "GINGERBREAD_MR1", "HONEYCOMB", "HONEYCOMB_MR1", "HONEYCOMB_MR2" , "ICE_CREAM_SANDWICH", "ICE_CREAM_SANDWICH_MR1", "Unknown" }; final int MIN_SDK = 8; String version = CODENAMES[Math.min(Build.VERSION.SDK_INT-MIN_SDK, CODENAMES.length)]; May 24 17:24:54 my googletv came in today :) completely fuck that emulator. May 24 17:24:57 worst thing ever! May 24 17:25:06 luxurymode: make all that crap static but yeah, looks about right May 24 17:25:15 hehe right May 24 17:25:16 thanks May 24 17:25:30 I'd probably replace 8 with Build.VERSION_CODES.FROYO, too May 24 17:25:38 wait wtf May 24 17:25:40 no May 24 17:25:42 wtf May 24 17:25:46 hm? May 24 17:25:58 if thats all you want May 24 17:26:24 theres gotta be some way of associating the int value to the VERSION_CODES value May 24 17:26:33 you could use reflection and search for it May 24 17:26:35 oh wait May 24 17:26:37 its not an enum May 24 17:26:37 ffs May 24 17:26:44 right May 24 17:26:46 nm May 24 17:27:07 unless you need obfuscation or ridiculously high performance, there is no reason not to use an enum for somtehing like this May 24 17:27:25 it would make life so much easier May 24 17:27:31 but nooooooo ZOMG WE CANT USE ENUMS THEY ARE SLOW AND BIG May 24 17:28:26 dangit May 24 17:28:43 this is the hackiest thing I've done in a while May 24 17:28:56 hm May 24 17:29:20 anyone know if there's a good way to prune 'old' messages from a handler's message queue? May 24 17:31:19 all you can do is remove the message by reference iirc May 24 17:32:47 indeed May 24 17:32:57 I could abuse the poor int 'code' May 24 17:33:27 Hm May 24 17:34:14 evancharlton, would there perhaps be a better way to prune a stream of get requests? May 24 17:40:04 any way to use objectanimators or regular animations to apply a sliding animation to the same imageview, i.e. make it appear to slide out to the right and then followed in from the left closely behind it? May 24 17:42:31 would anyone like to do a small code review? May 24 17:42:45 paste and hope for the best :p May 24 17:42:59 http://pastebin.com/6kFd3maD May 24 17:43:24 there are no problems, just looking for some professional critique May 24 17:43:35 Sunshard: I don't know. ctate might have a better idea, whenever he shows up May 24 17:44:43 birbeck: are all those not null checks necessary? May 24 17:45:23 kanelbulle: yeah, thats why the setup stuff is protected. the activity and fragment may be overriden by a client application with different requirements May 24 17:45:48 ah May 24 17:45:49 evancharlton, I shall hilight him then, my thanks May 24 17:45:52 this is a default implementation in a client library, client apps might have different requirements May 24 17:47:59 I think it looks good May 24 17:48:54 cool, really just wondering about setRetainInstance(true) and asynctask May 24 17:58:49 hi May 24 17:59:20 is there any major difference between 2.3.3 and 2.3 ? can a 2.3.3 version app run on device having 2.3 May 24 18:01:00 yes it can, but you might have some API differences. May 24 18:01:07 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ May 24 18:01:08 if that is the case, the app will crash. May 24 18:01:28 c_nick: http://developer.android.com/sdk/api_diff/10/changes.html May 24 18:01:32 c_nick: you can however check the build number, and handle those exceptions. May 24 18:01:52 c_nick: and the url form birbeck will help you decide that. May 24 18:02:03 Hm, I've been messing with the graphical layout thingy in eclipse, but stuff keeps disappearing May 24 18:02:29 Anybody know why? May 24 18:02:29 i just read an article that values FB stock at ~$10/share May 24 18:02:29 messing with in what way? May 24 18:02:31 What arm lvl cpu is most common on android now? 7, May 24 18:02:42 9 or 11 May 24 18:02:44 canadiancow|work: it's like $9 something righ tnow. May 24 18:02:48 canadiancow|work: i will pay $0.10/share May 24 18:02:48 dmalice: Trying to add stuff from the pallet May 24 18:02:49 terrible lol. May 24 18:02:51 the visual layout designer is garbage sonicrules. May 24 18:02:56 EvilPenguin: I want to target 2.3 But looks like its obsolete so i was going in for 2.3.3 but the difficulty is i am scared if it will work on 2.3 or not May 24 18:02:58 add stuff in XML, preview it in code May 24 18:03:03 EvilPenguin: what? May 24 18:03:10 it's at $32.38 May 24 18:03:25 wow, slow update then on my end. May 24 18:03:30 dmalice: Heh May 24 18:03:40 There goes the idea of an easy gui maker xD May 24 18:03:43 c_nick, 2.3.3 is a minor update from 2.3, look at the diff report to decide if anything has changed that will impact your apps compatibility May 24 18:03:45 EvilPenguin, the all time low is above $30 May 24 18:03:56 ok May 24 18:04:22 noone has 2.3 May 24 18:04:22 yeah, it never went down to $9, dunno where you got that from May 24 18:04:40 c_nick: and if something did change, handle it accordingly. May 24 18:04:47 it's funny that the IPO tanked though, to the point where JPMS had to buy shares to save face May 24 18:04:51 if someone is using 2.3 then they probably arent downloading your app from the market May 24 18:04:54 ok May 24 18:05:14 mikedg: 0.5% on 2.3-2.3.2 May 24 18:05:18 speaking of Market, GoogleTV takes forever to update it May 24 18:05:27 dmalice: it makes perfect sense, it's a celebrity IPO with tons of people buying in that have no business gambling on the stock market May 24 18:05:52 yeah May 24 18:06:02 that and they overvalued the company by about 40 billion dollars May 24 18:07:01 if you consider facebook's ability to value companies, that's no surprise :P May 24 18:07:10 *zing* May 24 18:07:15 lol May 24 18:07:42 I wonder how those negotiations went May 24 18:07:43 wongk, wouldnt it be nice to be on the side purchased though? May 24 18:08:01 facebook: "We'll buy you for $40million" May 24 18:08:33 instagram: "$1 trillion dollars! No just kidding, that seems like a very fair pr-" May 24 18:08:37 i would have taken $1M, but OK! May 24 18:08:40 facebook: "fine, $1 billion" May 24 18:08:49 instagram: "DEAL" May 24 18:09:43 Seems like you could ring up a pretty great racket actually May 24 18:10:14 well, there was tons of publicity around the deal May 24 18:10:17 I care more about how much google gets from oraxles bullshit suit May 24 18:10:21 thats gotta be worth something May 24 18:10:24 find a way to get say, 100 ppl, write a simple photo-sharing app, have these 100ppl spend all their time taking pictures, sharing, creating fake accounts, etc... May 24 18:10:25 profit May 24 18:10:51 Tho i am torn on that verdict somewhat May 24 18:10:53 ctate, evening May 24 18:11:05 jesus! this update is slow as crap. May 24 18:11:15 is google "getting" something out of it? May 24 18:11:32 Isn't it more just that the infringement claims were found baseless so oracle doesn't get anything May 24 18:11:40 Had google lost they might have developed their own language and killed java May 24 18:11:43 yeah May 24 18:11:52 java.lang.OutOfMemoryError... whatever May 24 18:12:05 I think Oracle is only a small fry, once the patent troll juggernaut Rockstar starts to target Google May 24 18:12:19 it's not going to be pretty May 24 18:12:31 hopefully SCOTUS has reviewed sw patents by then May 24 18:12:38 damn i have 14% of my users on 2.3 :/ May 24 18:12:50 sorry 2.2 and .4% on 2.3 May 24 18:12:56 Is it on their docket? May 24 18:13:13 2.3.3 takes up 50% of my downloads, lol. May 24 18:13:22 2.9% is 4.0 :/ May 24 18:13:37 lame. May 24 18:13:44 on one of my apps i have an abnormally high number of 4.0+users May 24 18:13:46 12% May 24 18:13:56 not even designed for tablets May 24 18:14:02 lol. May 24 18:14:04 mine is :) May 24 18:14:13 designing it for the GoogleTV right now - it just came in. May 24 18:14:28 ah cool May 24 18:14:34 is there a GoogleTV emulato as well? May 24 18:14:34 wow 4.0.3 has 15%, hahah that's funny. May 24 18:14:41 belgianguy: yes but it;s only for linux. May 24 18:14:49 i got it to work on OSX with some hacky stuff, but it was terrible. May 24 18:14:52 (it was terrible for linux too) May 24 18:14:54 EvilPenguin: my Android dev env is Ubuntu ^^ May 24 18:14:58 i use ubuntu/arch and it was shit May 24 18:15:05 hmm, not really sure how to write a test for my reset password activity May 24 18:15:15 for some odd reason even the GPU acc works great in the emu May 24 18:15:19 belgianguy: just buy a GoogleTV... May 24 18:15:24 belgianguy: newegg has one for $70 May 24 18:15:28 start activity, enter value, click reset May 24 18:15:49 EvilPenguin: does that work in Europe? May 24 18:16:01 it's US only right now isn't it May 24 18:16:16 What arm lvl cpu is most common on android now? 7, 9 or 11? May 24 18:16:19 belgianguy: you can use the gtv emulator package, but it will take an hour to start May 24 18:16:24 belgianguy: but you are onlying deving so it's pointless for any other need. May 24 18:16:37 lvl60 May 24 18:16:38 it's maxed out May 24 18:16:42 true, it's probably better to focus on local markets May 24 18:16:49 and wait until Gtv enters May 24 18:17:09 google tv is trash since the honeycomb update May 24 18:17:09 :) May 24 18:17:20 belgianguy: i just suggest not using the emulator. May 24 18:17:33 belgianguy: i mean you probably have the GoogleTV-add, so try it. May 24 18:17:49 belgianguy: i was running a 3.1 i7, 16GB ddr3, and a small ssd and it ran like complete shit. May 24 18:18:03 belgianguy: so i just bought it. May 24 18:18:06 $70 is nothing. May 24 18:18:09 EvilPenguin: ooh, my machine can't do that May 24 18:18:16 howcome it ran so shitty then? May 24 18:18:26 it's not that a great machine itself I think May 24 18:18:27 because it's hooking in with kvm i think. May 24 18:18:41 I'm trying the new x86 4.0.3 emulator mode, and it doesn't seem to respect the "Hardware Back/Home keys" setting. Anyone else see this? May 24 18:19:28 fah q May 24 18:19:29 lol. May 24 18:20:39 http://www.rowthree.com/wp-content/uploads/2009/01/fah-q.jpg May 24 18:20:41 good times. May 24 18:23:32 having trouble using an animationset to smoothly translate an imageview to slide it out left and then in from the right. seems like the animatins overlap. shouldnt they be started sequentially? May 24 18:25:31 hi can someone help me i have a corupt micro sd card it was working fine it 4GB but now only shows 1GB and won't format. May 24 18:26:04 wrong channel, spanner3003 May 24 18:27:13 spanner3003, I've had them corrupt and never found a way to fix it May 24 18:27:24 If I make custom launcher can I do that it can`t be removed by user and can it select only givem from me apps not everything installed? May 24 18:27:32 try formatting it with gParted or something May 24 18:27:56 evancharlton, what channel do you sugest i been using it in my android phone. May 24 18:28:24 Ubuntu has LiveUSB/LiveCD which comes with gParted May 24 18:28:55 yeah if gParted doesn't work, it's probably toast May 24 18:29:05 spanner3003: #android perhaps May 24 18:29:25 my friend had one go corrupt this week May 24 18:29:44 ok i will try gParted thanks May 24 18:29:46 same deal, wouldn't format. He bought a new one May 24 18:30:15 I'm trying to query MediaStore for music (Artist,Albums, etc). I can't figure out how any of this works May 24 18:30:28 is there a good tutorial somewhere? May 24 18:31:01 I believe what I'm looking for is CursorLoader May 24 18:31:08 hmm, as of today, ~58% of my users are on GB, ~25% HC, ~16% ICS May 24 18:31:21 nobody on froyo O.o May 24 18:32:08 thats weird, the average for this category is ~20% for froyo May 24 18:36:22 hey, I'm trying to get get action bar sherlock working. Is there an easy way to implement batch contextual actions in list views like its defined here http://developer.android.com/guide/topics/ui/menus.html#CAB ? May 24 18:38:02 jayd16, https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ActionModes.java May 24 18:39:49 doogan: right, but the modal listener for list view was added in SDK 11. Should I just reimplement my own as an item click listener and then hit the sherlock action mode? May 24 18:40:46 haha some dumbass uses iOS photos for his Android app. May 24 18:40:54 man i can't believe people are that... umm burnt.. May 24 18:42:32 someone to help me with my questions? May 24 18:42:41 or I have to ask somewhere else? May 24 18:42:58 read the first thing you see, don't ask to ask, just ask May 24 18:43:19 sounds right jayd16 May 24 18:43:31 implement & set your own OnLongClickListener or whatever May 24 18:43:55 doogan: ok cool…thats not too hard. Just wondering if it was in ABS already and I couldn't find it. Thanks May 24 18:44:50 If I make custom launcher can I do that it can`t be removed by user and can it select only givem from me apps not everything installed? May 24 18:46:06 F1rstAid: Why are you wanting to make it not removable by the user? May 24 18:47:12 because I want to allow only one or few specifict apps to be used for some kind of test project May 24 18:48:00 basically I want to turn one entertaiment device into only lerning or something else May 24 18:48:11 Then you'd probably have roll your own rom, but even then, its possible to get around it by flashing a new one May 24 18:49:06 Depends how much access the user has to the device May 24 18:49:18 GeDaMo: Exactly May 24 18:50:42 sonicrules1234 let say that the uysers will not have programing/hacking skills May 24 18:50:57 I just want to not have interface way to remove the launcher May 24 18:51:00 and all the stuff May 24 18:51:20 it is obvious that if you have the skills there is always a way to change something May 24 18:51:49 I just dont want them to play stupid games or etc.. and use only the apps which they are supposed to use May 24 18:53:07 F1rstAid: apps installed to /system are generally not uninstallable, but you have to roll your own ROM to install apps there May 24 18:53:25 not to mention, you can't prevent a user from installing another launcher and choosing to use it instead May 24 18:54:14 what tool can I use to copy files to an sdcard iso on Windows May 24 18:54:39 on linux I can just mount it, not sure why I'm on windows right now May 24 18:54:53 No such thing as an sd card iso May 24 18:55:03 You are meaning sd card image May 24 18:55:35 RustyShackleford: I'd say google it May 24 18:55:44 anyone else had trouble with ndk-gdb finding symbol tables? May 24 18:55:54 I can't get it working... just won't find them. May 24 18:56:10 wongk I know about the apps in /system . That is why I asked can I make my launcher show only few apps. Also someone told me that If I don`t add settings button to the launcher there will be no way to change it May 24 18:56:25 so if that is correct this is possible way to do it May 24 18:56:59 F1rstAid: Which android version are we talking about? May 24 18:57:45 F1rstAid: if its your launcher, you can write the code to show whatever apps you want May 24 18:57:57 I am going to use ICS May 24 18:58:02 http://c6c7f6c9b8b150e5.paste.se/ :E May 24 18:58:24 wongk yea I am going to write one by myself May 24 18:58:29 What's the recommended way to run a bit of code periodic (about once a minute)? May 24 18:58:45 yacc you could use a handler and postDelayed May 24 18:59:03 unless you need it to run when you're application isn't running May 24 18:59:13 * wongk meeting May 24 18:59:23 the question was if I can stop user of changing the launcher May 24 18:59:41 luxurymode, lol, and I thought that there should be something nicer to use for that (or say some broadcast intent) ;) May 24 19:00:01 that works too it depends on what you're doing May 24 19:00:16 message passing like that is probably more of a performance hit but im not sure May 24 19:00:29 handler simply adds it to a qeue on your thread May 24 19:00:34 that constantly loops May 24 19:00:37 waiting for messages May 24 19:00:47 not totally sure though May 24 19:01:04 well, it needs to run when I'm not in the foreground, btw ;) May 24 19:01:18 hi all May 24 19:01:59 having problems downloading a file and writing to external storage May 24 19:02:05 okay to post link to stackoverflow? May 24 19:02:35 link it May 24 19:02:55 http://stackoverflow.com/questions/10741980/android-file-download-throwing-errors May 24 19:03:32 handle external storage status May 24 19:04:14 ixc: i do that before starting the AsyncTask May 24 19:04:45 what is status? May 24 19:05:20 whats the best way to set the x position of a view before API 11, i.e. no setX() available? May 24 19:05:28 karakuri: what say getExternalStorageState() May 24 19:05:44 state = mounted May 24 19:06:46 i dont start the asynctask unless Environment.getEternalStorageState().equals(Environment.MEDIA_MOUNTED) May 24 19:07:07 *External, not Eternal May 24 19:07:29 there's a feature request: eternal storage state May 24 19:08:16 going afk, any ideas please let me know on stackoverflow May 24 19:08:50 what is outdir after u setup it? May 24 19:09:25 oh i see, sorry May 24 19:10:00 but eaccess when u setup wrong permissions May 24 19:13:14 but see on stackoverflow other has same problem and say setup done for everything May 24 19:15:38 So I can`t not make android launcher which selected as default can stop user from picking other launcher? May 24 19:21:37 F1rstAid: Why the double negatives? May 24 19:28:52 I'm creating a content provider backed by a service (for handling HTTP requests). The content provider has a local database for caching the HTTP data. My question is, what's the best way to expire the cache? My initial thoughts were when querying the data, if the data is expired - requery, but what happens if the activity doesn't request the data for a period of time? May 24 19:30:24 I'm basing this on the second pattern described here: http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html May 24 19:30:41 is Jason Coleman in here? May 24 19:33:15 Any thoughts? May 24 19:35:08 Anyone know what happens to the bundle that you send back when you call Instrumentation.finish()? May 24 19:36:53 it's ultimately passed to the instrumentation watcher, if any May 24 19:39:15 Ah didn't know there was a Instrumenation Watcher. May 24 19:39:25 *instrumentation May 24 19:40:13 but you're calling Instrumentation.finish() explicitly? May 24 19:40:17 * ctate shrugs :) May 24 19:40:30 Yeah May 24 19:40:45 that's just unusual, that's all May 24 19:40:56 most people never need to futz with Instrumentation May 24 19:41:06 Yeah May 24 19:41:11 Thanks tho. May 24 19:41:18 sure thing May 24 19:44:08 i would love to meet Jason Coleman :/ May 24 19:44:10 lol May 24 19:44:15 http://techcrunch.com/2012/05/24/google-adds-subscription-billing-to-its-android-app-store/ May 24 19:44:45 http://twitter.com/EvilPenguin_/status/205745496365613056 May 24 19:44:52 that is why android developers get bad names :/ May 24 19:45:11 (lazy bastard) May 24 19:45:31 Why doesn't PackageManager.getInstalledPackages(0) not return all packages? For instance, com.android.mediaserver (pid 1013) is not returned, among others... May 24 19:46:16 priceless. May 24 19:46:50 Apparently I have to use Process.getUidForName("com.android.mediaserver") to find its pid... May 24 19:46:57 What is this hackery. May 24 19:47:42 com.android.mediaserver is likely not an Android-runtime process May 24 19:48:13 getInstalledPackages() doesnt' tell you about init, either :) May 24 19:48:33 sonicrules1234 typing mistake. Do you have answer for my question? Can I make users to not change my custom launcher or not? May 24 19:49:34 It'd be hard to do May 24 19:49:42 is it possible to compile c++11 code with the ndk? May 24 19:50:01 I read some posts which seem to have problems but they were 'oldish' May 24 19:53:09 it is possible to compile native c/c++ code May 24 19:53:32 does gcc even support c++11 yet? May 24 19:53:36 ctate: how would I enumerate the "non-package programs" such as mediaserver, etc? May 24 19:53:47 i believe the version of gcc that goes with the NDK does not, anyway May 24 19:54:00 yeah, i'm not too sure it works for c++11 May 24 19:54:01 pragma-: read /proc like everyone else? May 24 19:54:29 what are you actually trying to accomplish? May 24 19:54:30 ctate: 4.7 has some experimental support it seems, oh well ty May 24 19:55:09 I'm not trying to list processes, I'm trying to find all android programs that could create a unique UID for itself. May 24 19:55:30 Hi, after a lot of googling I'm at a bit of a loss.. I am trying to use libVNC in my android application that is running in a AVD on my computer. LibVNC needs access to /dev/graphics/fd0 (graphics) and so, from my research, it seems to need root access.. I have installed su and superuser on my AVD and I can gain root from apps like connectbot which give me a shell to su from. My problem May 24 19:55:30 is that I don't understand how I can get my application to ask for root privileges or simply to start with root privileges to be able to access the graphics device. Does anyone have experience with this or can point me in the right direction? May 24 19:55:44 Except OSError, e: May 24 19:55:51 Wtf? May 24 19:55:59 From repo May 24 19:56:30 er, where I said PID earlier, I meant UID May 24 19:57:27 I want a list of UIDs mapped to packages/programs/processes. May 24 19:57:59 I want a way to discover "com.android.mediaserver" and others that are not provided by getInstalledPackages(0) May 24 19:58:57 Currently, the only way I know how to get UID for com.android.mediaserver is to use Process.getUidForName() but that requires me to know "com.android.mediaserver" beforehand... May 24 19:59:45 hrm May 24 19:59:53 hmm May 24 19:59:59 I want to know what other such "built-in" standard android processes also have UIDs May 24 20:00:06 obvious question is why you care about uids, especially system-domain UIDs (i.e. under 10000) May 24 20:00:10 make up a package May 24 20:00:14 everything has a uid May 24 20:00:18 it's unix :) May 24 20:01:10 ctate: Because my app monitors iptables and provides logs and statitistics of apps making connections, and it reports connections for UID 1013 (mediaserver) caused by Youtube, but my app isn't aware of 1013 existing because getInstalledPackages doesn't report it, and I don't see any API that does May 24 20:01:16 i got one more day to get through a season and a half of how i met your mother :( May 24 20:01:40 how did you figure out uid 1013 was mediaserver? May 24 20:01:41 back May 24 20:01:47 mikedg: bugreport May 24 20:01:54 The `bugreport` command May 24 20:02:10 How can i fix oserror, e: from repo? May 24 20:02:19 the source of information outside the realm of apps that run under the aegis of the Android runtime is to look at /proc May 24 20:02:19 as far as general orientation, look at 'adb shell ps' output May 24 20:02:23 Syntax error May 24 20:02:32 mediaserver isn't running 24/7 May 24 20:02:41 Its hit-or-miss whether it shows up in ps or /proc May 24 20:02:50 there are several standard non-app users that various bits of the OS run as May 24 20:02:50 media, bluetooth, radio, system, etc May 24 20:03:12 Right, and I want an API method that returns an enumeration of all these standard users May 24 20:03:17 a-la /etc/passwd May 24 20:03:18 pragma-: ahhhhh May 24 20:03:27 you really need to look at the network stats implementation in ICS May 24 20:04:16 can anyone help with this as well? http://stackoverflow.com/questions/10726273/android-seekbar-thumb-scrubber-control-clipping-when-pressed May 24 20:04:18 My particular app provides timelines of exactly when these apps are connecting and how much they transmit, exactly when and exactly where -- not just a tabulation/summary of data transmitted per month or per day May 24 20:04:38 sure; what you see in network stats is just a distillation of the raw data it collects May 24 20:04:44 i mean, what you see in the UI May 24 20:04:50 i strongly recommend that you read the sources on this May 24 20:05:12 Why am i getting a syntax error in repo? May 24 20:05:14 i second that motion May 24 20:05:23 ctate knows what he's talking about May 24 20:05:33 he's coded at least 3 hamsters to death May 24 20:05:47 Only 3 May 24 20:05:55 at least 3 May 24 20:06:00 mikedg: that means nobody is manning the android marketplace any more May 24 20:06:10 if all 3 hamsters are dead May 24 20:06:20 new talent will be needed to continue work there May 24 20:06:24 ctate can you help me with my question? May 24 20:07:14 http://android-dls.com/wiki/index.php?title=Android_UIDs_and_GIDs May 24 20:07:21 * pragma- heads to the source. May 24 20:08:01 F1rstAid: ... maybe? May 24 20:08:08 Can I make users to not change my custom launcher? This will not be general use launcher but for some reasons I need to do that May 24 20:08:28 Or I have to make custom ROM? May 24 20:08:50 what do you mean by "not change my custom launcher"? May 24 20:08:58 you mean prevent them from choosing a different home app? May 24 20:09:02 why do you not want them to change it May 24 20:09:16 ctate yes. May 24 20:09:22 if you have a legitimate reason to prevent users from changing it, then you likely can May 24 20:09:25 I ought to build a search index of the source so I don't have to grep -r May 24 20:09:31 you cannot do that; you will need a custom rom to lock down apps like that. May 24 20:09:34 * pragma- fidgets impatiently. May 24 20:09:35 example, creating a custom device May 24 20:09:41 mikedg because I want to use only 2-3 apps. this will be part of project May 24 20:10:06 basically I want to turn entertaiment device into learning for example May 24 20:10:22 to do that I have to restrict users to use only 1 or 2-3 apps May 24 20:10:24 and sell it? have it for personal use? May 24 20:10:33 pragma-: i also like the ack tool, but it doesn't build an index May 24 20:10:38 I said it wont be general use May 24 20:10:54 F1rstAid, is this on one device or many? May 24 20:11:04 it will be part of project several ot tens of people will test it some questions will be asked and some thesis will be proved or not May 24 20:11:22 you dont trust these people to not uninstall your home app? May 24 20:11:26 well if this work it will be tested on several devices but the same May 24 20:12:04 mikedg yea let say that I want to be sure that these people will use the devices only for learning purporses for example May 24 20:12:07 not playing games May 24 20:12:08 and etc May 24 20:12:16 learning is a game of sorts May 24 20:12:24 Can someone help me resolve a syntax error in repo? May 24 20:12:30 besides, if you take learning seriously, you don't learn as well. May 24 20:12:32 I am wondering if I can do such restriction with launcerh or I will need custom rom May 24 20:13:01 pragma- please I dont want to argue now I have clear question and I expect someone to answer me May 24 20:13:17 you need a custom rom May 24 20:13:23 answered May 24 20:13:24 F1rstAid: you need a custom rom May 24 20:13:31 ok thanks May 24 20:13:54 I440r: a syntax error in repo? wut? May 24 20:14:02 F1rstAid, it seems like you're going to need a custom rom or possibly just root. Either way you are trying to disable/uninstall things that might make the device unstable May 24 20:14:11 you have the strangest problems I440r May 24 20:14:51 what's that little xml View attribute that changes the enter key from a carriage return to a "Next" button. May 24 20:14:54 I think its because i have python 3.2.3 May 24 20:14:58 jeppy I know but with custom launcher you can just hide not necessary programst and they will be still present to device May 24 20:15:11 Need to downgrade May 24 20:15:16 I440r: yeah, use 2.7.x or something May 24 20:15:20 the question was if the user will have the option to seelect other launcher May 24 20:15:36 theuser can wipe the device and use the other launcher May 24 20:15:45 F1rstAid not if you set your launcher as default May 24 20:15:47 someone told me that there is such way with not implementing the settings button into the launcher but it seems to be not right May 24 20:16:03 If the user wants to do it, the user will find a way. May 24 20:16:10 yes I know May 24 20:16:10 many devices give you access to settings in the notification drawer May 24 20:16:10 ^ May 24 20:16:16 I am asking for general purpose users May 24 20:16:25 is this a school project? May 24 20:16:33 university project May 24 20:16:39 it will be part ot bigger project May 24 20:17:21 to get proper results I need to not allow users to change the launcher or at least make it very hard May 24 20:17:40 F1rstAid how hard are people going to try to get around your app/setup May 24 20:17:53 F1rstAid: you basically have to make a custom ROM May 24 20:18:01 if they can manage apps then it wont be hard May 24 20:19:03 F1rstAid, yeah custom rom or be rooted and learn how to break everything you don't want to work May 24 20:19:04 jeppy yea.. well as I said I read somewhere that if you dont implement settings button or whatever something to point to settings there is no way user to change it .. except changing the rom of course May 24 20:19:25 it seems I`ll do custom rom May 24 20:19:35 some idea with good tutorials or at least where to start? May 24 20:19:46 heh May 24 20:19:52 #android-root May 24 20:20:24 yea I am already there May 24 20:20:25 F1rstAid: cyanogenmod is extremely easy to get set-up and compiled May 24 20:20:47 big community. May 24 20:21:01 pragma- I know but I have to make report on this thing what report will I write if I get ready to use rom? May 24 20:21:20 I prefer to make something by myself May 24 20:21:22 You could just write a single sentence in your report: "Requires custom rom." May 24 20:21:54 disertation seems to be the right word not report May 24 20:22:02 so maybe you will change your mind right now :) May 24 20:22:17 well there are other things but let say that they dont need these things ,. May 24 20:23:03 * jeppy is confused May 24 20:23:34 F1rstAid: obviously for those things you should do something, and for the other things you should do something else, then the things will be the things in themselves. May 24 20:23:47 * pragma- nods knowingly. May 24 20:25:42 a feel good story :) http://www.sodahead.com/united-states/operation-muddy-fox-trapped-cub-is-rescued-from-hole-caked-in-sludge-and-is-back-to-his-adorable-be/question-2676631/ May 24 20:29:18 g00s: "He has not been christened 'Muddsey' by staff at the wildlife hospital as a tribute to the condition in which he was found." wat? May 24 20:29:42 9.9 May 24 20:30:02 also, that site has some kind of overlay covering half of my screen that I cannot remove unless I enable javascript May 24 20:30:31 ctate, hiya, do you know a good method of pruning a message queue by time? May 24 20:30:42 by *time*? yikes May 24 20:31:06 write your own :) May 24 20:31:17 ctate, I feared as much :P May 24 20:31:24 ctate, my thanks for the response anyway May 24 20:31:34 ctate, busy day? May 24 20:31:40 always May 24 20:31:46 ctate, :D May 24 20:31:50 unless we're playing typeracer and ruining our carpel tunnel May 24 20:31:55 o.0 May 24 20:32:06 typing of the dead maybe? :P May 24 20:32:12 that was fun May 24 20:32:44 ctate, I was thinking of abusing the poor int code that you can tag messages with May 24 20:33:06 ctate, and just running removeMessage when the second changed May 24 20:33:11 there might be some java.* classes that do the sort of thing you want May 24 20:33:31 ctate, oh? May 24 20:33:39 i'm not very familiar though May 24 20:33:39 * Sunshard perks his ears up May 24 20:33:43 aww. May 24 20:33:46 alrighty. May 24 20:34:24 or, you know, roll your own :) May 24 20:34:28 Hello, I'm running W7(Wich I hate btw) trying to install the Android SDK, now I've download the installer for Windows, but it says it can't find the JDK ... I've my JAVA_HOME pointing to "C:\Windows\System32\java.exe" but it keeps telling me the same May 24 20:34:59 g00s: http://www.sodahead.com/united-states/nobody-will-miss-him-but-this-is-grim/question-2678375/ <-- two questions -- why is this filed under "united-states" and why do the people have huge animated "Thanks!" pictures in their comments? May 24 20:35:00 Let me try again: So I'm having problems with a HttpsURLConnection on ICS over mobile (works fine over WiFi) - any ideas where to look? I googled and ruled everything that was usefull. May 24 20:35:50 pragma-: no idea :( South essex is not in the us :| May 24 20:36:18 Oh, this is a different link that was under the "You might also enjoy" sectino of the link you provided May 24 20:36:49 I figured you were a regular at that site and could explain it for me May 24 20:37:38 nope May 24 20:37:49 so , any opinion of how well haxm works on OS X ? May 24 20:38:04 hi all, i'm new, just few days working, I want to make an app for expenses that will on the main screen have a list of choices(expenses and income) and then when I choose expenses open new screen with selection(food, bills..) i did that but dont know how to do these next steps -> when i choose food i want to open up a new screen with the types of food and price(1 kg of potatoes 3.5$)... do it with database, arrays or...? thank y May 24 20:38:54 I'm creating a content provider backed by a service (for handling HTTP requests). The content provider has a local database for caching the HTTP data. My question is, what's the best way to expire the cache? My initial thoughts were when querying the data, if the data is expired - requery, but what happens if the activity doesn't request the data for a period of time? May 24 20:39:16 what would the best way be to do such say private (Button) button00 = "R.raw.sound00"; private (Button) button01 = "sound01"; May 24 20:39:19 be ? May 24 20:39:36 er R.raw.sounmd01 ** May 24 20:39:48 I just did a repo.sync amd it told me a new version of repo is available. So i downloaded it. Ran it and it told me a mew version of repo is available May 24 20:41:23 then pass in an onclick listener listening for the buttons and know what media file to play ? to do it long hand is programatically easy setting up each button click but there has to be a faster way to associate each button and sounds and just allow a method to be calling the media player May 24 20:42:36 my grep -r is still running :( May 24 20:44:55 I440r: i think repo gets another version of itself and installs it; just d/l it once May 24 20:45:11 repo always seemed like a weird tool to me May 24 20:46:19 It says a new version is available all the time, even after manually updating May 24 20:46:24 droidbuster: hmm. you could set a tag on each one that holds whatever info is relevant to the click handler May 24 20:46:35 then it just reads the tag and acts on the info whatever it is May 24 20:46:57 i don't htink you can set tags all the way in xml but it's one-time setup May 24 20:47:26 ctate: the dev blog mentioned that bluetooth support was coming to the emu in the future; presumably before this happens, intel x86 images and haxm would have to support it also, correct ? May 24 20:47:36 no clue :) May 24 20:48:58 Hello, I'm running W7(Wich I hate btw) trying to install the Android SDK, now I've download the installer for Windows, but it says it can't find the JDK ... I've my JAVA_HOME pointing to "C:\Windows\System32\java.exe" but it keeps telling me the same ... any ideas ? May 24 20:50:17 why is your java.exe in C:\Windows\System32? May 24 20:50:39 that could be the ms one May 24 20:50:42 in like r18 they broke find_java.bat May 24 20:50:55 it worked fine in r17, then not in r18 May 24 20:50:59 and they refuse to revert it May 24 20:51:06 ctate, what do you mean ? a tag ? May 24 20:51:11 that's what i wondered, but i have java.exe there too May 24 20:51:24 droidbuster: look at View.setTag() May 24 20:51:26 droidbuster: setTag() May 24 20:51:30 ok ' May 24 20:51:31 evancharlton, where should the JAVA_HOME should point ? May 24 20:51:49 ctate and evancharlton thank you May 24 20:51:53 I tried with C:\Program Files\Java\java-sdk-whatever\ May 24 20:51:55 but still won't work May 24 20:51:57 dysoco: where java is actually installed May 24 20:52:20 i don't recall having to set JAVA_HOME May 24 20:52:27 the two parameter setTag() leaks the activity prior to like 4.0 May 24 20:52:32 evancharlton, it's installed there May 24 20:52:33 BUT May 24 20:52:38 I've a 64bits system May 24 20:52:39 I mean the real java May 24 20:52:47 real java ? May 24 20:52:51 the jre ? May 24 20:52:54 the one from Sun^W Oracle May 24 20:52:57 no, the JDK May 24 20:53:15 D as in Development. May 24 20:53:46 horror of horrors is the source May 24 20:53:46 C:\Program Files\Java\jdk1.7.0_04 ? May 24 20:53:59 dysoco: sounds right May 24 20:54:08 can you use java 7 with android ? May 24 20:54:11 but I'm not sitting in front of your computer May 24 20:54:21 i think you have to set the compat level to 6 May 24 20:54:23 g00s: if you set the compatibility mode 1.6 May 24 20:54:28 k May 24 20:54:30 it would need to be Program Files (x86) May 24 20:54:43 evancharlton, But I mean, it should work, because I've it installed AND the JAVA_HOME points there :S May 24 20:54:44 PROGRA~1 May 24 20:54:59 canadiancow|work: wouldn't it be PROGRA~2? May 24 20:55:07 it's been a while since I've used windows May 24 20:55:21 or DOS :P May 24 20:55:21 yeah, I hate using it evancharlton May 24 20:55:54 but I've to keep W7 installed, and my HDD is getting smaller and smaller, so until I get a new one I can't install a Linux partition :S May 24 20:56:17 evancharlton, no, i think x86 gets the default? May 24 20:56:28 oh wait May 24 20:56:28 you're right May 24 20:56:40 PS C:\> cd progra~2 May 24 20:56:40 PS C:\Program Files (x86)> May 24 20:57:20 ctate: fwiw, the information I was after was in the stubs in system/core/include/private/android_filesystem_config.h, which is apparently what getpwnam() references May 24 20:58:01 so any ideas for my issue ? Install a 32bits JDK ? Install the Android SDK from the ZIP ? May 24 20:58:20 hi all, I want to make an app for expenses that will have a list of choices(expenses and income) and then when I choose expenses open new screen with selection(food, bills..) i dont know how to do these next steps -> when i choose food i want to open up a new screen with the types of food and price(1 kg of potatoes 3.5$)... do it with database, arrays or...? thank you very much for help... May 24 20:58:26 I'll just make an array of these and go through them one-by-one with Process.getUidForName() and check against -1 and add them to my installed-apps list if they pass. May 24 20:58:30 * pragma- nods with satisfaction. May 24 20:58:41 * pragma- files away under "works-for-now" May 24 20:59:06 dysoco: you need a 32-bit JDK May 24 20:59:24 pragma-: aha, there you go May 24 20:59:33 wongk, thanks May 24 21:00:20 ctate, in my digging I found something weird; a somewhat dangling function in Message called getWhen() May 24 21:00:29 Angel07: specifically which part are you having trouble with? May 24 21:00:45 ctate, sounds perfect, but I have no method to set. And worse, no idea how it's calculated by android. May 24 21:00:58 it isn't calculated May 24 21:01:15 ctate, D: May 24 21:01:18 well, 'when' is the target delivery time of the message in the queue, set when the message is enqueued May 24 21:01:29 how do you set that? May 24 21:01:30 and is invariant as long as the message is enqueued May 24 21:01:34 YOU don't. May 24 21:01:39 it's internal to the implementation May 24 21:01:49 sendMessageAtTime May 24 21:01:51 wongk where(and how to make) to put list of food and price and how to reach it when user choose something... May 24 21:01:52 sendMessageDelayed May 24 21:01:53 on Handler May 24 21:01:56 right, ==romainguy May 24 21:02:06 Guys I am loading some data from folder and user can change set the directy and if he wont I want to create some default one on SD Card. If the user phone has SD Card will this work always? May 24 21:02:17 or oculd there be some problem and my defaul folder wont be created May 24 21:02:17 romainguy, T_T May 24 21:02:18 Angel07: i assume this list is configurable by the user? May 24 21:02:24 romainguy, d'oh moment there May 24 21:02:39 those put the messages onto a MessageQueue that is internal to the looper May 24 21:02:42 * Sunshard weeps May 24 21:03:10 that MessageQueue implementation uses a time-sorted linked list of messages as its basic data structure May 24 21:03:40 it's very important that the times never change once they're in the list :) May 24 21:04:29 wongk its not configurable by the user... i make list and then user can only choose from it... May 24 21:04:32 ctate, do messages meant to be sent ASAP get auto-time stamped? May 24 21:04:43 they get a timestamp of 0 May 24 21:04:46 Angel07: sounds less than desirable May 24 21:04:47 dang May 24 21:04:49 which puts them at the head of the queue May 24 21:04:53 true May 24 21:05:02 Angel07: but in that case you can just hard code the values May 24 21:05:11 anyone know of a c2dm test app? something with a big button that sends a message to a server telling it to send a c2dm message back to the client, just to verify c2dm works? May 24 21:05:14 ctate, makes me regret hacking this together like this. May 24 21:05:45 i have to say it's a surprise that you want to be able to purge a message queue from a given point in the future outwards May 24 21:05:50 not a typical use case :) May 24 21:06:15 wongk so put it in some array or...? May 24 21:06:27 ctate, I'm just abusing it. You're looking at an idiot not using something the way the paradigm would suggest :P May 24 21:06:38 ha! May 24 21:06:42 Angel07: sure May 24 21:06:47 * wongk out May 24 21:07:23 ctate, my project lead worked with much 'bigger' guns processing wise, and he perplexedly asked me why I couldn't just make an infinite main loop. May 24 21:07:42 not least because you don't control the main loop? :) May 24 21:07:51 ctate, didn't have the heart May 24 21:07:54 ha ha ha May 24 21:08:00 ctate, just showed him what happens May 24 21:08:39 ctate, ex-defense guys; what hardware DO they get? May 24 21:08:55 the expectation gap is massive May 24 21:08:59 yeah May 24 21:09:28 I'm working on a tablet app for android 3.2, is there a way to create like a sub-menu for a menuitem in the action bar? (Like with ActionProvider in android 4.0)? May 24 21:09:36 how do I find out the IP address of my android emulator May 24 21:13:37 Does anyone know how can I simulate Service crash in android? Like when Android forces a Services to stop abruptly due to no memory May 24 21:17:25 Anyone in here know sax parsing pretty well? May 24 21:17:28 SpearThruster: I believe you can cause an ANR by holding up the main thread for more than 10 seconds May 24 21:18:05 in the emulator or other rooted system you can just 'kill -9' the service's host process from the adb shell May 24 21:18:19 which is what the kernel does in out-of-memory situations anyway May 24 21:18:55 You can kill Services through Eclipse -> DDMS too May 24 21:19:14 I'm creating a content provider backed by a service (for handling HTTP requests). The content provider has a local database for caching the HTTP data. My question is, what's the best way to expire the cache? My initial thoughts were when querying the data, if the data is expired - requery, but what happens if the activity doesn't request the data for a period of time? May 24 21:21:13 i'm trying to use PreferenceActivity and I set up the xml files as in the pastebin, but for some reason it keeps throwing a nullpointerexception at me whenever I select a value in the listpreference field http://dpaste.com/751970/ May 24 21:21:23 anyone happen to have a clue why ? May 24 21:21:38 Should my Activities be the ones to look at the age of the data and creating a timer/alarm manager and requery? May 24 21:22:35 rvsjoen: a) post logcat. b) you have 6 keys and 5 values May 24 21:23:17 http://codepad.org/2lu8SWdj May 24 21:23:23 hi folks, I'm writing a little app for a scavenger hunt and I want to use SQLite for this. I need to fill my database with hints from a source file that I will copy onto the device after I installed the app. What would be the best file format for that? XML, JSON, CSV? May 24 21:23:33 Hello rvsjoen May 24 21:23:35 :-) May 24 21:23:52 well hello there May 24 21:23:55 rvsjoen: fix your keys/values discrepancy and see if that fixes it. May 24 21:24:17 alright May 24 21:25:16 nah, same issue. google seems to think its because i'm using integer-array insted of string-array for the values though, so i'll try switching May 24 21:25:53 Hackwar: Check out: http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database May 24 21:27:37 There might be a newer/better way to do it May 24 21:28:39 nplus: thanks, the thing is, that I don't want to hardcode the whole thing into the app. May 24 21:28:42 can I somehow build a pipe over tcp that would go from my localhost certain port on to my emulator certain port? May 24 21:28:45 :E May 24 21:29:10 Hackwar: Ok, are you going to populate it from a server? May 24 21:30:08 What I'm trying to do is having a simple schema: ID, message, decrypted. Shortly before I start the scavenger hunt, I copy the file onto the device and the app should then read it, fill the DB with this and then people can type in numeric codes, which unlock new hints. May 24 21:30:48 I don't want to hardcode it into the app, since I think I will be done with the app long before the actual hunt and the hunt will not be done until maybe 2 hours before this starts. May 24 21:31:02 so I don't want to run into any compile issues or whatever May 24 21:31:13 and make it easy to switch out the whole thing if necessary. May 24 21:33:56 I don't fear the inserting stuff so much, but I'm wondering what would be the best source format for the data. May 24 21:34:28 the file does not need to be protected specifically, so I could use csv May 24 21:34:33 or I could use XML May 24 21:34:35 or JSON May 24 21:34:35 [17:33:56] I don't fear the inserting stuff so much May 24 21:34:37 thats what she said May 24 21:34:40 ha May 24 21:34:41 :P May 24 21:34:59 well switching to a string-array actually worked, so yay! May 24 21:35:04 or I store this as SQL queries directly. May 24 21:35:06 *ba-dum tsh* May 24 21:35:18 * Sunshard looks at his internet drum set May 24 21:35:22 slow day.... May 24 21:36:13 What's the difference between a Widget and Application? May 24 21:36:31 Any thoughts on how I should expire my cache and refetch the data from my server? May 24 21:36:50 cache.flush(); May 24 21:36:53 data.refresh(); May 24 21:37:00 cache.populate(data); May 24 21:37:16 just copy paste that May 24 21:37:21 err... not quite, you missed the other half of my question.. i'll repeat it May 24 21:37:25 I'm creating a content provider backed by a service (for handling HTTP requests). The content provider has a local database for caching the HTTP data. My question is, what's the best way to expire the cache? My initial thoughts were when querying the data, if the data is expired - requery, but what happens if the activity doesn't request the data for a period of time? May 24 21:38:06 when you return the data, add a "dirty" flag if you're in the process of refreshing May 24 21:38:12 so the caller knows to requery May 24 21:38:24 oh, I'll simply use JSON May 24 21:41:47 canadiancow|work: I was planning on using a content observer. The part I'm having a hard time wrapping my head around is say: 1) Activity queries data. 2) Content Provider fetches it from the server & caches it (this updates the Activity via Content Observer) 3) Cache data expires, but since it hasn't been re-queried the content provider doesn't know it need to re-fetch the data (which... May 24 21:41:49 ...would again update the Activity via the ContentObserver) May 24 21:42:16 i dont follow May 24 21:42:32 i also have this much ->| |<- experience with contentobservers/providers May 24 21:42:35 :) May 24 21:42:54 Haha alright, thanks anyway May 24 21:42:55 oh, this app development will be so much fun. :-D May 24 21:43:33 anyway, have a good night/day/afternoon/morning/lunch/breakfast/whatever May 24 21:43:35 bye May 24 21:43:38 Well if anyone else has any thoughts/input, I'd love to hear it May 24 21:43:41 later May 24 21:46:06 On a 2.2 Galaxy Tab, the screen size I get using OpenGL is 1024x562. But there isn't any menu bar or anything there. It should be 600 tall. Anybody know why? May 24 21:53:12 i dunno how do you mean? May 24 21:53:25 i thought you cant ask opengl for screen dimensions May 24 21:55:27 You can't, but what it gives me isn't the full screen May 24 21:55:40 The physical screen is 1024x600 May 24 21:56:06 But it chops of 38 pixels as if some menu bar should be there May 24 21:56:12 right May 24 21:56:56 i've just started coding opengl May 24 21:56:58 On all other devices, if I hide the menu bar then I get the full screen for my game May 24 21:57:13 ahh oks so its a 2.2 thing May 24 21:57:25 Possibly May 24 21:57:53 hmm have you tried running it on a 2.2 emulator? May 24 21:58:44 i've not yet made my app fullscreen methinks it should looks better first May 24 21:59:01 Hello. I am trying to do something I have never done before and I was wondering if someone could tell me if this is possible. May 24 21:59:17 anything is possible May 24 21:59:27 - Kevin Garnett, 2008 May 24 21:59:40 except that May 24 21:59:44 Basically, there is a web page that has a bunch of form stuff on them (e.g. radio buttons, select boxes, etc.). I want to make an app that will visit that form, fill out everything and submit it, and then return what the server returns. May 24 22:00:31 sounds like you could make a POST request w/ HttpURLConnection or similar May 24 22:01:30 so, instead of manipulating all the form elements and then submitting the form, I can just send an httprequest with the right values? May 24 22:01:45 Won't I run into cross-site permissions problems if I try to do that? May 24 22:01:49 right, altho if they use a token or something May 24 22:01:57 you might have to hit the page once before and pattenr match for the token May 24 22:02:04 to submit as an arg in your pOST request May 24 22:02:19 otherwise the POST may not be successful May 24 22:02:49 I see. but I won't run into cross-site permissions problems? May 24 22:03:00 not sure what you mean May 24 22:03:21 users post to forms May 24 22:03:22 not other sites May 24 22:03:40 I have an app that is not displaying full-size on newer phones. I'm assuming it's because the screens are so large it thinks it's a tablet. Is this as simple as updating my Manifest file or do I need to make changes to the actual code? I started developing it in 2.2, before Fragments and the ActionBar and whatnot. May 24 22:03:52 hmm. I guess I will try it and see what happens. I can probably just do this as a browser app first and then see how that works May 24 22:05:02 sure, could always try w/ something like curl first May 24 22:05:40 can look at the headers w/ LiveHTTPHeaders plugin for FF May 24 22:05:44 figure out waht you need from there May 24 22:32:24 I have an app that is not displaying full-size on newer phones. I'm assuming it's because the screens are so large it thinks it's a tablet. Is this as simple as updating my Manifest file or do I need to make changes to the actual code? I started developing it in 2.2, before Fragments and the ActionBar and whatnot. May 24 22:34:24 Exuno: any screenshots? thats weird May 24 22:35:30 although i'm kinda not surprised May 24 22:35:34 g00s: I don't, I might be able to get some though. It runs fine on my Evo, but not on my friend's new phone. May 24 22:35:36 Exuno: using -xlarge in your layouts? May 24 22:35:47 It still runs, just not full screen. May 24 22:37:04 MDijkstra: I don't have any -xlarge layout files, no. I assumed those were for tablets and don't support them currently. May 24 22:37:25 so you're not using separate layout files for different screen sizes at all? May 24 22:37:40 ie, you have one layout folder and that's it May 24 22:37:55 Right. I have layout and layout-land. May 24 22:38:40 hm, and all your layouts have a container with match_parent in height and width? May 24 22:38:46 *root container May 24 22:39:28 They're actually using fill_parent. Could it be that simple? May 24 22:39:34 nah May 24 22:39:43 fill_parent is the same as match_parent May 24 22:39:58 Yeah I know, I couldn't recall which was newer though. May 24 22:40:05 match_parent is May 24 22:40:11 oh May 24 22:40:44 well, strange May 24 22:40:49 is the app on the store? May 24 22:40:54 Yeah it is. May 24 22:40:55 could try it on my galaxy tab May 24 22:43:18 Hello! Is there a limit to the number of applications that can be uploaded to a developers account ? I uploaded one earlier, but for some reason it doesn't appear in my application list. Tried uploading it again, but it say's the app name is already present May 24 22:43:21 Exuno: what phone are you seeing these issues on? May 24 22:43:39 (and what android OS rev is it running?) May 24 22:44:38 in the following service example, how would I go about making the service discover when the preferences are changed and re-start the timer with the new rate ? http://pastebin.com/tQPLAkks May 24 22:44:45 Is it normal that the Intel x86 Atom System Image takes that long to download ? It's stucked at 3% and does not move May 24 22:45:13 I don't have a tablet version, for that it will just use the container view thing. May 24 22:45:27 ctate: My friend has a Motorola Atrix running Gingerbread, and it happens on his phone. May 24 22:45:35 right, but how do you detect when to use the container view thing May 24 22:45:40 interesting May 24 22:45:50 that isn't a "new" phone :) May 24 22:46:05 Maybe he's lying, he said "I think it's a..." May 24 22:46:11 Either way, it's newer than mine haha May 24 22:46:24 and you're definitely turning off the status bar in your app? May 24 22:46:27 I'm getting similar reports on the market as well. May 24 22:46:33 Exuno: by container view thing, do you mean the 2x 'supersize' mode added in android 3.2? May 24 22:46:37 or something you wrote yourself? May 24 22:46:58 how i make the Toast appear on top of the screen ? May 24 22:47:11 ancanta: you can't change where the toast appears May 24 22:47:21 [and in general toasts are discouraged; they are not good UI] May 24 22:47:32 :) May 24 22:47:36 thx May 24 22:47:56 i just use them to see something :P May 24 22:47:59 MDijkstra: It's a thing provided by Android that will just put your app in a phone-sized layout on the tablet screen. May 24 22:48:26 I've actually never heard of that, do you have a URL? May 24 22:48:55 I've been trying and failing to find it. It has a name, just can't think of it. May 24 22:49:02 Exuno: is it like using an iPhone app on the iPad? May 24 22:49:11 ie, everything looks blurry May 24 22:49:12 Exuno: the note by any chance ? May 24 22:49:27 ctate: What do you mean turning off the status bar? I'm not using it in any way. May 24 22:49:52 MDijkstra: it doesn't up-size it, it looks really bad actually. But it's not blurry. May 24 22:50:06 g00s: note? May 24 22:50:18 MDijkstra: but same idea yes. May 24 22:50:21 Samsung Galaxy Note May 24 22:50:34 Exuno: well, android by default, unlike iOS, does have layouting May 24 22:50:39 Exuno: making your window fullscreen, basically May 24 22:50:44 Exuno: so apps don't need to be shown in a small box May 24 22:50:53 they'll just fill the screen by default May 24 22:51:02 g00s: I haven't tried it on the note, but that would be an example of a device it would act up on, probably. May 24 22:51:22 anyone can help me ? This seems stuck: http://i.imgur.com/zFYKe.png May 24 22:51:24 setting FLAG_FULLSCREEN in hte window layout params May 24 22:51:49 ctate: No, I'm not using that. May 24 22:52:03 if you actually want to use the whole screen surface when possible, you need to. May 24 22:52:39 No, it's just an app, I don't need to use the entire screen. May 24 22:53:00 The status bar can stay, I'd just like everything else to fit in without the black edges. May 24 22:53:00 could you give the name of your app if it's free? May 24 22:53:02 the new g+ is pretty retarded on the note :p May 24 22:53:11 I'll see what it does on my gtab 10.1 May 24 22:53:22 Guild Wars Skill Reference. May 24 22:53:26 It's free May 24 22:54:29 I've loaded up QT for android last night and got some ant build errors - it says it can't find android.view.accessibility.AccessibilityEvent ... looking at the API this is a valid call, but perhaps I've made a mistake with the min sdk or something? ant debug output is here: http://pastebin.com/xQG84Ygf May 24 22:54:45 Exuno: works just fine May 24 22:55:05 the images are blurry due to the lack of high-res versions May 24 22:55:08 but it fills the screen May 24 22:56:04 Interesting. Yeah that's one reason I didn't want to make a tablet version. The filesize would be huge. But it's filling the screen? Why is it happening on certain phones then? May 24 22:56:36 lets see on the gnex ;) May 24 22:58:06 I can test on a Note if you want, what's the app? May 24 22:58:10 seems to work fine as well May 24 22:58:17 Guild Wars Skill Reference May 24 22:59:12 Thanks for checking. It's certainly weird that it's not happening on the tablet. May 24 22:59:22 well, no, not really May 24 22:59:27 Because I distinctly remember downloading it at a sprint store and it did that. May 24 22:59:35 it looks fine - any particular activity you'd like a screenshot of? May 24 22:59:36 (to a tablet) May 24 22:59:38 since you specified the 2x blurriness in the manifest May 24 22:59:47 ie, everything is blurry May 24 22:59:50 the text, the images May 24 22:59:55 but it's not boxed May 24 23:00:47 Any activity is fine. You can click through to a skill and ss that. May 24 23:03:41 Exuno: http://farm9.staticflickr.com/8002/7264480972_6f8f06f687_o.png May 24 23:04:24 Now the real question: how much of that makes sense to anyone here? haha May 24 23:04:28 Thanks for checking. May 24 23:04:51 when I try to install it on my nook tablet, google play says "Couldn't install on USB storage or SD card" May 24 23:04:59 other apps install fine May 24 23:05:46 wtf May 24 23:05:59 I wonder if that's a Play issue. I'm not doing anything weird with the install, I just say preferExternal because of the images. May 24 23:05:59 you should not be installing google play yourself anyway May 24 23:06:22 or do you mean that you're trying to download the app *via* google play? May 24 23:06:30 right, downloading the app via google play May 24 23:07:32 but probably a problem with me, not play and definitely not your app May 24 23:10:19 Well, if it's a non-issue then I definitely won't complain. Thanks MDijkstra and wabz for device testing it. May 24 23:13:44 Upgraded ABS and managed to screw up my ant building - it's only building ABS and isn't bothering with the app: http://pastebin.com/Tr89MuWf May 24 23:13:54 I've tried running android project update several times to no effect May 24 23:16:00 does the Android SDK always download so slow? May 24 23:16:25 hi, is anyone here familiar with using parcelable to pass objects between activities? i'm trying to do that but running into an error ("Parcel: unable to marshal value") when i start the subsequent activity May 24 23:17:15 wow, never saw that one before. did you mess up your impl of Parcelable :) May 24 23:17:46 nplus, same here, seems stucked May 24 23:17:57 I'm downloading the Intel x86 image or something, it's stucked at 3% May 24 23:18:24 CQN: this is shitty android advice, but consider just implementing Serializable or use Bundle and just put your data as Bundle keys May 24 23:18:35 Bundle is basically just a parcelable hashmap May 24 23:19:13 either one is far easier to work with than Parcelable, hence this advice. May 24 23:19:19 ok May 24 23:19:26 i've been looking into bundle as well May 24 23:19:29 CQN: are you trying to stuff a custom parcel able or an android-defined parcelable ? May 24 23:19:45 i'm actually putting the parcelable in a bundle right now May 24 23:19:52 using putParcelable May 24 23:19:57 g00s: i have a custom parcelable May 24 23:20:11 CQN: maybe put the code in pastebin May 24 23:20:25 g00s: http://stackoverflow.com/questions/10742740/android-error-parcel-unable-to-marshal-value May 24 23:20:30 that's my post on SO May 24 23:22:09 this Element is actually parcelable, you say? May 24 23:22:19 why, then, do you have ElemParcel? May 24 23:22:25 i dunno, i'm willing to wager this ElemParcel is busted May 24 23:22:59 on the other hand if Element is not Parcelable, I assume the problem with writeValue is that it has no idea how to write that value... May 24 23:23:03 alankila: no, it is not parcelable. what i meant earlier is that it's not May 24 23:23:09 so i meant elemparcel May 24 23:23:16 yes, the issue is in writeValue May 24 23:24:00 the API suggests that writeValue is supposed to be able to deal with Object, although there's restrictions on what types of objects can be parceled May 24 23:24:29 so I'm going to guess you have accomplished exactly nothing with ElemParcel May 24 23:24:39 ok, i'm not really sure what i'm doing either May 24 23:24:49 Element was not parcelable, so you designed ElemParcel which tries to feed an Element to the parcel anyway, and surprise surprise, that doesn't work May 24 23:25:03 i thought that you could create a wrapper object May 24 23:25:11 which was my aim with ElemParcel May 24 23:25:24 i was trying to avoid messing with Element, which is a part of jsoup, something i didn't write May 24 23:25:57 i may be best off just passing the URL as a string and then recreating the element object in the next activity May 24 23:26:16 but if possible, i'd like to figure out how to pass any type of object to another activity May 24 23:26:30 that is not supported by android, sadly. May 24 23:26:47 uggh May 24 23:26:48 the model with android is that the framework constructs these activity objects for you, and it supports limited subset of all possible objects for use in intents May 24 23:27:17 the API seems really half-baked, coming from desktop dev May 24 23:27:24 it needs to be able to save them, and reuse them, and because of some historical weirdness Parcelable was invented as an alternative serialization mechanism to java.io.Serializable May 24 23:27:26 simple things like a file-picker are not available in the API May 24 23:27:47 and when i wanted a sectioned list, i found posts linking to 3rd party libraries May 24 23:28:00 file picking is not a good metaphor for phone applications. They just store stuff on the device, user is not bothered about where May 24 23:28:07 yeah, i get htat May 24 23:28:14 anyway, what is the best approach for this problem? May 24 23:28:23 recreate the object by passing a primitive? May 24 23:28:52 well if jsoup has the decency to implement serializable, it could be used as-is. If not, then some kind of serialization is required May 24 23:29:46 so i should be using serializable instead of parcelable? May 24 23:29:53 but the approach is the same May 24 23:30:12 well, there is no "should". I'm just saying that android can work with either May 24 23:30:24 but if jsoup does not implement Serializable, then it is not serializable, and that's that May 24 23:30:57 storing the document as string and parsing it again seems like an immediate way to get things working for you May 24 23:31:13 a quick google says that it doesn't implement it May 24 23:31:16 even use of URL is possible, although that risks downloading the data again, I suppose May 24 23:31:18 i'll go with the string approach, i guess May 24 23:31:48 this limitation is intentional, right? May 24 23:31:56 modern android applications by the way use less activities and more fragments, so there are ways to avoid having to pass anything anywhere May 24 23:31:56 or are they planning to change it in future versions? May 24 23:31:58 you can't pass types you define yourself through binder calls May 24 23:32:09 even if they're designed as Parcelables May 24 23:32:20 because the recipient won't kjnow about them (in its classloader etc) May 24 23:32:43 ok May 24 23:32:57 looks like the fragment thing is new to hc/ics May 24 23:33:06 that was introduced in 3.0, yes May 24 23:33:20 stuff moves so fast that you can't even look at a stackoverflow post from a year ago and be sure that it's still applicable May 24 23:33:25 but the support libs provide backwards compatibility May 24 23:33:46 is it generally recommended that you stick to the official docs? May 24 23:33:54 ofc May 24 23:34:13 not sure what you're asking ... if it isn't documented as public API, then it's a very bad idea to rely on it May 24 23:34:26 everything else can and does change between versions May 24 23:34:37 for example, when i was looking into sectioned lists, i saw someone recommending a library created for android 0.9 May 24 23:34:58 ha, yeah, don't. :) May 24 23:35:07 android can do sectioned lists with a little bit of manual work. You just use a listview with multiple element types, for instance May 24 23:35:20 ok May 24 23:35:21 of course if you want things like collapsible sections then the amount of work grows May 24 23:35:33 but a very basic design is quite possible May 24 23:35:35 then you have to dynamically modify the list contents? May 24 23:35:48 but none of that is built into the API May 24 23:36:09 eh, maybe. Elements could be smart enough to look up their section from above the list to determine visibility May 24 23:36:16 that's what adapters *do* May 24 23:36:23 yeah, what? May 24 23:36:27 that's all built into the api May 24 23:37:02 ok May 24 23:37:42 i might go back and look at sectioned lists later, i just modified the design so i wouldn't need them May 24 23:38:42 if I stop and then restart a service using startService() and stopService() in an onSharedPreferenceChanged and then look at the preference value inside the service, it hasn't been updated with the new value, is this expected ? May 24 23:39:41 rvsjoen: separate process? May 24 23:40:25 hm, mighty good question May 24 23:40:29 the sharedpreference things should be singletons, but that's not true if the service is not in the same process May 24 23:40:44 as the manifest says android:process=":update" i'm gonna go with yes May 24 23:40:58 or well, it is still true, but changes in the preference will not be seen unless you trick android somehow to actually reload the preference file from disk May 24 23:41:05 I restart the service when the preference has been changed and is finished May 24 23:41:18 so when it goes back to the activity, the process is restarted, it sees new values May 24 23:41:25 sharedpreferences does not work across processes atm May 24 23:42:24 no reason to use multiple processes. Except maybe to escape some memory limitations. Rest you can do with threads... May 24 23:42:42 yeah, why are you using separate processes? May 24 23:42:44 I implemented a SharedPreferences.OnSharedPreferenceChangeListener May 24 23:42:47 there's seldom a reason to do so May 24 23:42:56 hm May 24 23:43:10 tbh I don't know why i'm using multiple processes May 24 23:43:21 and correct, SharedPreferences is not aware of multiprocess access May 24 23:43:33 if you use in those circumstances you're gonna have a bad time May 24 23:44:01 Well, this advice certainly contradicts the documentation. May 24 23:44:31 pointer? we should fix the docs May 24 23:45:03 i see that the SharedPreferences docs say, right at the top: May 24 23:45:05 * ctate | Note: currently this class does not support use across multiple processes May 24 23:45:08 is sharedprefs threadsafe? May 24 23:45:14 Yes, I mean about the services May 24 23:45:26 I just removed the android:process attribute, and it seems to be working better May 24 23:45:38 threadsafe, yes May 24 23:45:53 can SharedPreferences be used in nuclear power plants? May 24 23:48:04 anyway just today PreferenceManaget.setDefaultValues() made me sad May 24 23:48:21 because with PreferenceFragments I got 3 xml files that describe preferences, and this call sets defaults only for the first one May 24 23:48:32 after that it has made that _has_set_default_values.xml thingy and won't work anymore May 24 23:50:40 I might be mixing things up here, but if I have a service running in my application, and I make its startCommand function return START_STICKY, will that service keep running if the application is killed in the task manager ? May 24 23:57:33 i believe if the user explicitly kills the app via the swipe-away or whatever, it stays stopped May 24 23:57:44 as though the app had not been launched in the first place May 24 23:59:24 I tried swipe-killing it, and the service was stopped, but after a second or two the service was automatically restarted May 24 23:59:31 the app was not May 24 23:59:52 wait... what is app killing by swipe-away? May 25 00:00:04 using the task manager I presume May 25 00:00:14 ah, I see May 25 00:02:04 anyone else download the new 4.0.3x86 emulator image and not have it show in the AVDM? May 25 00:04:34 avast May 25 00:06:25 I'm having an issue with EditTexts, where despite having the proper inputType, when I select the text in the EditText, the keyboard flashes to Numeric (which it should stay at) and then loses selection of the text and focus on teh edittext and reverts to a qwerty keyboard immediately. Upon selecting the edittext again, the keyboard switches back to numeric and all is well, but its so May 25 00:06:25 bizzarre what its doing at first. Anyone know how to fix that? May 25 00:07:52 say I want to send 200,000 push notifications out at once May 25 00:08:13 can anyone point me to where i can find the source to the support v4 library? May 25 00:08:23 noslen_ramingo, it's included with the support lib May 25 00:08:26 anyone know how I can find what a good concurrency level a2cdm would be happy with, without me actually testing? May 25 00:09:42 pfn do i have to do anything? when i try to view the source for anyting in the android-support-v4.jar that's included in my project, i get Source not found May 25 00:14:36 i found it. thanks to this http://stackoverflow.com/questions/8543225/android-support-library-v4-getting-the-source-and-attaching-it-to-the-library May 25 00:44:31 oh yeah , duh May 25 00:44:32 * readme pity the fool who doesn't ignore join/part May 25 00:44:39 quit and nick... May 25 00:45:31 Indeed May 25 00:45:34 accidentally got my update denied by amazon because I forgot to take the google play link out =) May 25 00:45:51 I actually don't have nickname changes ignored... May 25 00:46:40 haha, microsoft is doing everything they can to destroy themselves. May 25 00:46:45 http://arstechnica.com/information-technology/2012/05/no-cost-desktop-software-development-is-dead-on-windows-8/ May 25 00:47:31 why they think that's a good idea in the day and age of free software is beyond me.. Guess they are trying to ward off any potential new developers. May 25 00:47:32 all the older versions of visual studio will continue to work :) May 25 00:47:47 plus gcc, hopefully, so i can still have git on windows :| May 25 00:48:08 there's no decent gcc solution for windows May 25 00:48:19 mingw May 25 00:48:23 (sorry) May 25 00:48:24 i rest my case. May 25 00:48:53 i'm glad you didn't ws-* your case ;) May 25 00:49:53 anyone can help me install the Intel x86 Atom Image ? May 25 00:50:02 If I try to install it via Android SDK Manager May 25 00:50:07 the download get's stuck May 25 00:50:23 if I install it manualy via decompressing it in my SDK folder, it does not show as installed May 25 00:50:27 someone else mentioned that earlier May 25 00:50:51 maybe me, but I was afk I think May 25 00:57:34 * t0mless shrugs May 25 00:57:38 Mine downloaded fine May 25 00:57:44 though I haven't gotten the new 4.0 one May 25 00:57:47 probably won't May 25 00:57:52 since it won't run on my AMD chip anyway May 25 01:00:21 what would be considered faster, json reading/writing or xml reading/writing May 25 01:00:38 * Jug6ernaut understand that quesion might be way to vague May 25 01:01:00 json May 25 01:01:06 well May 25 01:01:12 json is typically smaller May 25 01:01:28 and the time it takes to download/upload far outweighs the parsing time usually May 25 01:02:05 canadiancow well there will be no download/uploading, just using an encoding scheme for logfiles May 25 01:02:11 hmm May 25 01:02:17 i still think it's json May 25 01:02:21 k May 25 01:02:21 but im sure a quick google would answer that May 25 01:02:34 ill check lol May 25 01:03:18 why not just log in plain text? May 25 01:04:20 bankai_ not sure, ive gone back and forth from raw text to encoding, i cant make up my mind May 25 01:04:26 * Jug6ernaut is updating his logging wrapper May 25 01:04:32 * Jug6ernaut 's brain hurts right now May 25 01:04:54 Impossible to have something have pain or hurt, you only think it hurts. May 25 01:05:21 what? May 25 01:05:23 beer will fix that pain May 25 01:05:28 all pain is mental... May 25 01:05:46 bankai_ haha good idea May 25 01:06:08 http://xkcd.com/323/ May 25 01:06:23 haha May 25 01:06:46 it's based around a small truth May 25 01:12:39 http://www.youtube.com/watch?feature=player_detailpage&v=tqXuydjUcYQ#t=2500s haha May 25 01:13:29 SFW ? May 25 01:13:48 ? May 25 01:15:25 Whenever you are doing a full commit and say I deleted some folders. Will it delete those folders in my repository as well? May 25 01:16:10 only in the current revision May 25 01:16:24 you can get them back by checking out the previous rev. May 25 01:17:11 but i cant say anything specific, since you didn't specify what vcs you're using. May 25 01:17:15 or how you 'deleted the folders' May 25 01:17:32 I'm using git May 25 01:17:38 how did you delete the folders? May 25 01:17:44 er, directories. May 25 01:17:49 Just deleting the directory May 25 01:17:57 then they were never removed from the git repo to begin with. May 25 01:18:10 just run git checkout on the directory name and it should be restored instantly May 25 01:18:14 Then how do I remove them copletely May 25 01:18:22 completely May 25 01:18:29 git rm -rf ; if you already removed with rm, git rm -rf --cached May 25 01:18:47 then commit May 25 01:18:52 And it will then delete those folders from my git as well? because thats what I"m wanting to do May 25 01:18:58 yes May 25 01:19:03 Okay sweet ty May 25 01:37:00 log in json, log in json! easy to add attributes to lines later without breaking! May 25 01:42:57 The skin under your fingernails is called the whickflaw. May 25 01:43:57 just in case anyone was interested May 25 01:47:19 TMYK May 25 01:49:28 you know you're spending too much time on facebook when you start scanning good IRC responses for the "Like" button. *face palm* May 25 01:49:55 that's rather sad .... May 25 01:50:55 tell me about it May 25 01:50:57 :| May 25 01:51:45 i'm going to start ending everything i type with [Like][Tweet This] May 25 01:51:57 and [+1] May 25 01:52:06 most excellent May 25 01:52:25 how about "Subscribe" ? May 25 01:52:42 or "RSS" ? May 25 01:52:51 you should aim for accessibility May 25 01:53:03 i think they should replace the "Subscribe" and "Follow" buttons with "Stalk" buttons... because that's what they'd call it in real life if someone was following you... May 25 01:53:06 MySpaceBookPlus May 25 01:53:19 next person to say something about facebook gets a spot on my ignore list :) May 25 01:54:04 great... now there's nothing to talk about. May 25 01:54:08 way to squash the mojo. May 25 01:54:24 maybe we could talk about android-dev May 25 01:54:29 why? May 25 01:54:48 i hear android is up and coming May 25 01:55:08 that's what she said May 25 01:55:25 then was bitterly disappointed when it turned out to be a flop May 25 01:55:59 i think you have android confused with webOS May 25 01:56:14 thanks for reminding me though, I deleted that May 25 01:56:30 android is not up and coming, it is the current market leader May 25 01:56:35 :) May 25 01:57:10 more sales than apple? i haven't seen the stats May 25 01:57:29 pretty sure they lead in the "market place" arena as well May 25 01:57:31 i won't touch apple products, though. i like my soul too much. May 25 01:59:32 I think latest stats say android has 69% market share in us May 25 01:59:36 and like 52% international May 25 02:00:32 59% international May 25 02:04:40 hrm, seems in the US it's 48.5% android and 32% iOS May 25 02:11:13 t0mless: http://www.droid-life.com/2012/05/24/android-controls-59-of-the-worlds-smartphone-market-share-ios-at-a-distant-23/ says Android has 59% international, iOS 23% May 25 02:24:19 alright, i need to code May 25 02:24:28 need mountain dew... or beer... any recommendation? May 25 02:25:32 gin May 25 02:28:44 beer is for celebrating successful coding... *afterwards* May 25 02:30:07 i code better when i'm drunk May 25 02:30:30 at least, *i* think i code better. and the code is much better looking, too. May 25 02:31:26 mountain dew makes me sick every time I drink it, so I think beer May 25 02:34:17 green tea obv May 25 02:35:31 yeungling black & tan... here i come May 25 02:35:53 i prefer beer. it accentuates my stomach. May 25 02:38:10 got green tea on my desk... got coding to do. May 25 02:38:12 leslie that's international May 25 02:38:34 that's what I said May 25 02:38:51 That's also what I said May 25 02:39:01 but thanks for confirming May 25 02:39:08 I wasn't disputing your figures, I was just adding my own May 25 02:40:18 also, I didn't even notice you said the international one, now I look back. I only saw the US figures **** ENDING LOGGING AT Fri May 25 02:59:59 2012