**** BEGIN LOGGING AT Wed Jul 11 02:59:58 2012 Jul 11 03:00:35 i get this error all the time, when i edit the xml, when I add a "plain text" or "multi-text" field : activity_my_first.xml: java.util.LinkedHashMap.eldest()Ljava/util/Map$Entry; Jul 11 03:00:54 you can build an AWESOME system for $800 Jul 11 03:00:58 no gfx card tho Jul 11 03:00:58 for $1000 i can get a quad core 3.1ghz (3.4ghz turbo) i5 sandybridge, 16gb memory, sdd, monitor Jul 11 03:00:59 ashes: you've seen http://s.android.com/source/initializing.html presumably Jul 11 03:01:13 and some money left over Jul 11 03:01:16 JakeWharton: if you don't respond I'm ditching ABS and not supporting versions prior to ICS, bro Jul 11 03:01:16 turbo? Jul 11 03:01:20 aches get the 3770... 310 Jul 11 03:01:20 whoa, magic Jul 11 03:01:23 the computers in my middle school had a turbo button Jul 11 03:01:28 lol Jul 11 03:01:33 EddieRingle: I just Jelly Bean. That's not a threat Jul 11 03:01:38 *I use Jul 11 03:01:38 I SWEAR TO GOD IF ECLIPSE STARTS A NEW EMULATOR ONE MORE TIME I WILL DO SOMETHING DRASTIC Jul 11 03:01:44 turbo has made a comeback Jul 11 03:01:47 JakeWharton: halp :'( Jul 11 03:01:48 jcromartie_: like switch to IntelliJ IDEA? Jul 11 03:01:57 the grass is greener Jul 11 03:02:05 jcromartie_: I recommend vim Jul 11 03:02:19 nano Jul 11 03:02:31 netbeans Jul 11 03:02:41 edlin Jul 11 03:02:48 grass aint greener here, its dead Jul 11 03:02:57 magnetic needle and a steady hand Jul 11 03:03:07 JakeWharton++ Jul 11 03:03:29 EddieRingle: what'd you break in ABS? Jul 11 03:03:37 lol Jul 11 03:04:23 jcromartie_: i used this and it worked alright for me : http://developer.android.com/training/basics/firstapp/running-app.html Jul 11 03:05:16 Leeds: if we had better command line tools (and if Java wasn't so terrible to write without an IDE), I'd be using vim myself :( Jul 11 03:05:19 but alas Jul 11 03:05:29 mdwright: works for me so far Jul 11 03:05:47 JakeWharton: I seriously can't figure out why I can't style tabs Jul 11 03:06:00 I really considered Scala, but the build situation there is not any better. Jul 11 03:06:18 Leeds: I did it for awhile, but a lot of the stuff I'm building now has to be done in Eclipse. Kind of par for the course when working on the eclipose plugin Jul 11 03:06:29 *eclipse Jul 11 03:06:34 it was incomprehensible to me… and I don't have trouble understanding Clojure Jul 11 03:06:46 yeah, okay, if you're working on the plugin, it makes sens :) Jul 11 03:07:01 Microsoft word is the best IDE Jul 11 03:07:18 Yeah, and I try to use the tools when doing app development so that I know where the pain points are Jul 11 03:07:24 jcromartie_: The build system or the language was incomprehensible? Jul 11 03:07:38 rking: the ecosystem Jul 11 03:07:44 rking: not the language… I like the language Jul 11 03:07:53 Herm. Jul 11 03:08:00 jcromartie_: Is it clearly flawed or merely odd? Jul 11 03:08:08 ™. Jul 11 03:08:12 hah Jul 11 03:08:59 find me a build system that doesn't suck :/ Jul 11 03:09:23 EddieRingle: You're doing it wrong Jul 11 03:09:38 3770, corsair 256GB m4, asus motherboard, 16gb of ram Jul 11 03:09:39 bamb Jul 11 03:09:53 <1k Jul 11 03:10:22 OK who wants to do an Android app, short term, DC area Jul 11 03:10:25 I give up Jul 11 03:10:39 Hehe Jul 11 03:10:46 jcromartie_: Why you give up? Jul 11 03:10:51 rking: because it needs to be done soon Jul 11 03:10:55 rking: and I'm a n00b Jul 11 03:10:58 my iOS app is fine Jul 11 03:11:17 but Android is totally new to me and I'm plodding along, wrestling with the APIs Jul 11 03:11:41 so if anybody wants to show us their portfolio and rates, please do Jul 11 03:12:09 Please see my resume at - http://en.wikipedia.org/wiki/Linus_Torvalds Jul 11 03:12:18 I charge $500 an hour Jul 11 03:12:47 i would be broke in like 10minutes Jul 11 03:13:15 lol anyway, I'm totally serious if there's anybody in the DC area who's worth half a crap Jul 11 03:14:09 and is a US citizen Jul 11 03:14:14 i was in DC once, then i was like OMG i forgot i hate potiticans this is awkard Jul 11 03:15:48 "OK, its been 2 months since I requested support for this app. Now I'm starting to get a little irritated. I have given you a 1 star rating, and I would rather not. Please respond with a reason as to why you haven't incorporated the DROID 4." woopsie Jul 11 03:19:18 JakeWharton: my face when fixing an unrelated string resource fixes the issue Jul 11 03:19:28 -.- Jul 11 03:20:59 haha Jul 11 03:21:09 i hate ppl who review android apps Jul 11 03:21:11 so much Jul 11 03:21:29 1 star - This app rocks! Jul 11 03:21:38 haha Jul 11 03:21:47 u stink!!!!!!! unintallll Jul 11 03:22:02 lol Jul 11 03:22:03 can someone look at this class and help me figure out why the onLoadResource method of the WebViewClient is not being called Jul 11 03:22:08 https://gist.github.com/9673b619e019038848a0 Jul 11 03:22:09 saw some new ways to monetise todat tho Jul 11 03:22:15 hi gaz` Jul 11 03:22:16 ? Jul 11 03:22:20 using premium sms and or gambling.. Jul 11 03:22:25 hey caverdude!!! Jul 11 03:22:28 lol Jul 11 03:22:37 gambling lol Jul 11 03:22:45 one star - this app rocks but I gave it one star to spite you Jul 11 03:22:47 some gambling adverts thing! Jul 11 03:22:52 someone seriously wrote that in a review Jul 11 03:22:53 betby i think it was Jul 11 03:22:53 :S Jul 11 03:23:08 "five star - dosnt work" Jul 11 03:23:24 and I'll reiterate: anybody looking for a quick Android app contract in DC? Jul 11 03:23:41 Play Store should run a tutorial teaching people how to rate and review apps Jul 11 03:23:49 Namidairo lmao Jul 11 03:24:06 jcromartie_- remote id do Jul 11 03:24:13 is there a way to stop Eclipse from going back to the bottom of the LogCat error list when I scroll up? Jul 11 03:24:16 gaz`: US citizen? Jul 11 03:24:21 no Jul 11 03:24:27 sorry :( Jul 11 03:24:38 mysteronyx yea there is a button if u are on newest sdk version Jul 11 03:24:46 Jug6ernaut thanks I see it Jul 11 03:24:49 jcromartie_: I might be, remote too Jul 11 03:25:48 I wonder is there an IRC phone app? Jul 11 03:25:58 * caverdude has not bothered to look yet Jul 11 03:26:19 ofc Jul 11 03:26:19 caverdude: seriously… there are like 10000 Jul 11 03:26:25 lol Jul 11 03:26:25 lol yea Jul 11 03:27:13 whats a great one then? Jul 11 03:27:39 caverdude: My favorite thing is to host my actual IRC session on a shell under tmux, then connnect to it from my desktop or phone. Jul 11 03:27:49 caverdude: Or otherwise use a BNC. Jul 11 03:30:07 my favorite one is not using one Jul 11 03:30:15 bc typing on phones sucks Jul 11 03:30:32 I have keyboard on my phone :) Jul 11 03:30:40 doesnt matter Jul 11 03:30:59 BNC + any client Jul 11 03:31:07 caverdude: AndChat.net /shameless plug Jul 11 03:31:35 AlCapwn you dev andchat? Jul 11 03:31:45 Irssi proxy + ssl forwarded connection = win Jul 11 03:31:53 Jug6ernaut: I did indeed Jul 11 03:32:05 Do rather Jul 11 03:32:25 AlCapwn ah nice, good work ;) Jul 11 03:32:34 Thanks Jul 11 03:32:48 Next update should bring some good stuff along Jul 11 03:33:01 * Jug6ernaut loves seeing updates even if they do nothing xD Jul 11 03:33:29 I used to update much more frequently until I saw complaints about updates being too frequent Jul 11 03:33:47 really? Jul 11 03:33:54 I can relate though, ezPdf app has about 5 updates a week Jul 11 03:34:05 ok yea thats way to much Jul 11 03:34:11 imo shows no proper testing Jul 11 03:34:30 Ok, I'm exaggerating but its quite frequent Jul 11 03:34:36 lol Jul 11 03:34:46 * Jug6ernaut released one of his apps over a year ago Jul 11 03:34:54 havent updated it sence :\ Jul 11 03:34:57 UI is terrible though, I don't know what where half the features are Jul 11 03:34:58 * Jug6ernaut needs to tho Jul 11 03:35:08 They used some really weird UI Jul 11 03:35:21 * Jug6ernaut hates weird UI Jul 11 03:35:24 we have holo, use it Jul 11 03:35:41 I haven't updated my tts who's calling widget for ages Jul 11 03:35:59 Cos it works just fine for me :p Jul 11 03:36:47 haha Jul 11 03:37:04 well i need to fix a bug introduced with ics(yea im that behind) Jul 11 03:37:29 was actually a failure on my part which for some reason worked pre ics, but now does, ive already fixed it just havent pushed it Jul 11 03:38:29 push it! Jul 11 03:39:05 idky i havent tbh :\ Jul 11 03:39:18 * Jug6ernaut opens that project xD Jul 11 03:39:49 was my first android project(major java program also) looking back now im like wtf was i thinking Jul 11 03:40:04 So the support lib demos kept crashing for me today Jul 11 03:40:04 Dalvik couldn't resolve a class Jul 11 03:40:38 clean! Jul 11 03:41:00 Did that, gave up in the end Jul 11 03:41:07 which class Jul 11 03:41:21 Logcat was a mess, at least 3 exceptions and stack traces for all of them Jul 11 03:41:28 Can't remember Jul 11 03:41:38 :\ Jul 11 03:42:21 * Jug6ernaut really doesnt know why android doesnt have debug mode or something which allows devs to view stack traces on phone from force close dialog Jul 11 03:42:25 * Jug6ernaut should add that to aosp Jul 11 03:42:27 It was at least 7 hrs ago Jul 11 03:42:48 its called logcat Jul 11 03:43:03 when im on the bus, u call it logcat all u want, its still worthless to me Jul 11 03:43:08 ;) Jul 11 03:43:10 CatLog is a pretty good app Jul 11 03:43:23 you can still access logcat on the device Jul 11 03:43:26 bla Jul 11 03:43:31 ...you just might need a terminal Jul 11 03:43:33 :S Jul 11 03:43:47 Or use CatLog Jul 11 03:43:48 no there are apps for that, but as i said, bla Jul 11 03:43:57 CatLog, ALogcat Jul 11 03:44:01 but still, bla Jul 11 03:44:04 It's actually quite awesome Jul 11 03:44:31 yea ive used, i just find it annoying to have to go open the app Jul 11 03:44:36 or i do it later and its gone Jul 11 03:44:40 Poweramp with ICS skin is a thing of beauty Jul 11 03:44:42 im waiting for stallone to crash this irc channel and scream I AM THE LAW Jul 11 03:45:44 do game apps make the most $$? Jul 11 03:45:51 wow my old app is writen so badly it crashed lint xD Jul 11 03:46:05 Naish there was some breakdown at io that said not really Jul 11 03:46:15 but in my bad opinion i would say yes lol Jul 11 03:48:03 Hi Guys. What happen to android developer blog? Jul 11 03:48:18 nothing? Jul 11 03:49:17 cant seem to be unable to access it though Jul 11 03:49:25 can't seem to be able* Jul 11 03:51:05 does anyone know what happened to the verizons3 channel? Jul 11 03:51:26 Maziz working fine for me Jul 11 03:51:42 mind giving me the address Jul 11 03:51:49 may be i got it wrong or something Jul 11 03:52:28 http://android-developers.blogspot.com/ Jul 11 03:53:45 * jcromartie_ I sleep now! Jul 11 03:56:33 thanks Jul 11 04:01:17 canadiancow: want to see that pretty thing now? Jul 11 04:02:40 Does the published Jelly Bean source code include the source for the new offline speech recognition engine, or is this a closed-source component? Jul 11 04:03:01 check the keyboards Jul 11 04:03:13 only one way to find out Jul 11 04:03:17 browse the source tree Jul 11 04:03:24 Namidairo, I'm downloading it now Jul 11 04:03:43 Namidairo, I'm guessing it'll take another day or so to finish the download Jul 11 04:04:07 Google themselves are saying to expect a several-hour download, and my connection here is crap Jul 11 04:04:56 lol Jul 11 04:05:18 you can still take a look on github Jul 11 04:05:28 folder structure etc Jul 11 04:05:30 I wasn't aware there was one Jul 11 04:05:37 a GitHub for it Jul 11 04:06:09 i think its just someone cloning the google repo Jul 11 04:06:30 Namidairo, OK, I should be able to figure it out from the Github Jul 11 04:06:32 github.com/android is the official github mirror Jul 11 04:06:36 thanks fore the pointer Jul 11 04:06:42 official eh? Jul 11 04:06:44 Hey Hi , I had a question which I had posted on http://www.android.net/forum/android-forum/89057-android-navigation-app.html#post174266 Jul 11 04:06:44 even better Jul 11 04:06:44 yeah, that's where I am: github.com/android Jul 11 04:10:31 so i have a crazy question Jul 11 04:10:43 let's say i want to program in ruby for android, even say jruby Jul 11 04:10:59 is there anything designed to do taht? Jul 11 04:11:00 that, asdf Jul 11 04:11:15 like, jruby is a JVM language, but Android doesn't use JVM Jul 11 04:14:56 Tagami, http://lmgtfy.com/?q=develop+for+android+using+ruby Jul 11 04:21:48 hi Jul 11 04:21:51 :D Jul 11 04:27:44 zzzzzzzzz Jul 11 04:27:56 im at work doing web dev when i really want to do app dev Jul 11 04:28:22 apppdev yum Jul 11 04:28:32 I just got a new phone Jul 11 04:28:37 i need to use asynctask in a fragment but having trouble finding a good tutorial about this Jul 11 04:28:55 I was really excited when I got a Moto Cliq about 3 years ago Jul 11 04:29:01 now it's super slo Jul 11 04:29:01 w Jul 11 04:29:05 eSatsu: just use it. there's nothing different about using it in a fragment vs. anywhere else Jul 11 04:29:30 so I got a Galaxy S3 Jul 11 04:29:41 I hope it won't be "slow" in 3 years Jul 11 04:29:45 im waiting for my nexus 7 :) Jul 11 04:29:52 adu: 3 years is a long time Jul 11 04:30:02 2 years is the standard upgrade time Jul 11 04:30:06 Android is only 4 years old Jul 11 04:30:10 3 is not too far off Jul 11 04:30:30 3 years is upgrade time for PCs, phones is probably sooner than that Jul 11 04:30:32 high end devices often last 3-4 Jul 11 04:30:39 phones are relatively new Jul 11 04:30:50 hence developing faster Jul 11 04:30:54 did I pick well with Galaxy S3? Jul 11 04:30:55 while mid range devices average out on 2 Jul 11 04:30:58 yes Jul 11 04:31:01 S3 is awesome Jul 11 04:31:01 I didn't really read any reviews Jul 11 04:31:10 I just got the most expensive one Jul 11 04:31:19 eSatsu: name one phone that's lasted 4 years Jul 11 04:31:36 nokia 3310 Jul 11 04:31:45 indeed Jul 11 04:31:59 Haha, okay, name one *smartphone* that's lasted 4 years Jul 11 04:32:04 i actually used my e71 for 4 years...but yeah, it was definitely old by then Jul 11 04:32:19 I've already made like 5 android apps, so now that I have a faster phone, I might make a few more Jul 11 04:32:41 was galaxy s1 2009 or 2010 Jul 11 04:33:01 2010 Jul 11 04:33:13 id say its still a pretty viable smartphone Jul 11 04:33:19 for probably another year or so Jul 11 04:33:21 and only 2 years old Jul 11 04:33:22 what really worries my is that my new phone is about half as thik as my old phone, which makes me think I might break it Jul 11 04:33:25 that still only gets it to 3 years Jul 11 04:33:50 yeah 4 might be a bit too much for smart phones at the current pace Jul 11 04:33:55 and predicting the future is never a good idea Jul 11 04:34:01 even 3 years is pushing it Jul 11 04:34:03 I can predict the future Jul 11 04:34:25 "Rouge agents attack Olympics and blame it on Iran" Jul 11 04:35:11 the S1 is three years old and will never make it past Gingerbread (2 version behind). The 3G stopped getting updates in < 3 years, the original stopped getting updates after < 2 Jul 11 04:35:49 I wonder if there's an Emacs app for Android Jul 11 04:37:04 it also depends a bit what you expect from a phone Jul 11 04:39:57 actually i used e71 for almost 5 years, but yeah it was defintely pushing it. last 2 years I couldnt really run the apps id have wanted Jul 11 04:40:06 but you can still run most of the stuff on s1 Jul 11 04:40:17 probably for another year at very least Jul 11 04:40:29 ok Jul 11 04:40:36 first aosp jb roms are coming out Jul 11 04:40:38 and I gottsa say Jul 11 04:40:47 project butter is googles win Jul 11 04:45:27 would somebody help me figure out why GSON isn't working for me. I assigned it as a library to the project, and ctrl shift o adds import com.google.gson.Gson; Jul 11 04:47:43 whats the prob Jul 11 04:47:57 GSON? Jul 11 04:48:05 googles json serialization shit Jul 11 04:48:19 mysteronyx: did you put the jar in libs/ Jul 11 04:48:26 note the spelling Jul 11 04:48:43 mdwright I did.. here's the problem: http://pastebin.com/nFTTPVxz Jul 11 04:49:21 apparently it wants an object, and I'm giving it an array, which is strange since I'm trying to convert a string into json Jul 11 04:49:28 there is no array Jul 11 04:49:48 can someone pay me to play Skyrim? Jul 11 04:51:10 mysteronyx: your JSON is invalid Jul 11 04:51:23 that Jul 11 04:51:30 JakeWharton this is the string: [{"id":"0","cat":"1","text":"This is my first idea.","type":"1","cost":"0.01"}] Jul 11 04:52:24 that is json array Jul 11 04:52:40 I thought [] is object Jul 11 04:52:43 and {} is array Jul 11 04:52:51 nope Jul 11 04:52:52 {} = object, [] = array Jul 11 04:52:53 shit no it's not lol Jul 11 04:53:03 alright thanks, I mixed them up Jul 11 04:53:13 haha Jul 11 04:53:18 two recommendations Jul 11 04:53:28 1) Json Formatter for chrome Jul 11 04:53:42 2) use gson for object-> json and json->object serialization Jul 11 04:53:43 mysteronyx: what's Idea.class? Jul 11 04:53:48 I made a class Jul 11 04:53:49 does it extend from List? Jul 11 04:53:58 use JSONObject for building/parsing json manually Jul 11 04:53:59 or implement Collection? Jul 11 04:53:59 no it's a public class within my activity Jul 11 04:54:00 you may use TypeToken class that wraps List.. Jul 11 04:54:14 ok well you're trying to deserialize an array to an object that's not a collection Jul 11 04:54:36 List ideas = gson.fromValue(result, List.class); Jul 11 04:54:37 or Jul 11 04:54:57 List ides = gson.fromValue(result, new TypeToken>() {}); Jul 11 04:55:13 hmm Jul 11 04:55:29 new TypeToken>() {}.getType() Jul 11 04:55:49 you shouldn't need to call .getType() Jul 11 04:56:01 yea Jul 11 04:56:21 maybe you do… Jul 11 04:56:55 only reason I'm doing any of this is because Httpget gets a json object and then parses it into a string. so then I have to reparse the string back into an object. Seems unnecessary Jul 11 04:57:05 so I'm going to try and remove the string part without screwing this all up Jul 11 04:57:20 mysteronyx: you should be able to pass the InputStream from HttpResponse directly to GSON Jul 11 04:57:28 Does using Netbeans for Android development give you the same features and tools offered with using Eclipse?? Jul 11 04:57:30 yea that's what I'm going to try JakeWharton Jul 11 04:58:01 I wrapped that shit all up Jul 11 04:58:13 but I never remember having to mess with typetoken etc Jul 11 05:00:01 I've used both Jul 11 05:00:15 JakeWharton here's my issue. I'm using AsyncTask. So the beginning looks like this: private class getIdea extends AsyncTask { Jul 11 05:00:15 @Overrideprotected JSONObject doInBackground(String... urls) { Jul 11 05:00:25 JakeWharton: was that to me? Jul 11 05:00:52 well, doInBackground was String, but now I'm trying to make it JSONObject so it can return that type Jul 11 05:00:53 dlaroche: no, I've never used NetBeans and I haven't used Eclipse in many moons. However, IntelliJ is freaking awesome! Jul 11 05:01:03 ok...thanks Jul 11 05:01:18 mysteronyx: don't you want it to return List ? Jul 11 05:01:26 you should do the deserialization in the background too Jul 11 05:01:35 oh I thought it had to happen in the next method, ok Jul 11 05:01:36 does intellij have xml preview? Jul 11 05:01:42 I'll do that then Jul 11 05:01:44 yes Jul 11 05:01:46 yes, and a full GUI editor in IntelliJ 12 Jul 11 05:01:58 full gui editor?! Jul 11 05:02:02 ?? Jul 11 05:02:46 Has anyone used the APEZProvider. I have zip file as an expansion APK and i'm trying to access the files from the .ogg Jul 11 05:02:51 yeah the thing everyone uses in Eclipse that makes a bunch of AbsoluteLayouts :P Jul 11 05:03:18 wow Jul 11 05:03:19 i'm tyring to add some instructions to my app for how to rate it (and link to the market app). However the market UI has changed quite a bit between the classic market and google play, so it looks like I have to display the correct instructions depending on what version of market the user has installed. Do I need to check the actual version via the package manager or is it just certain old devices that don't get the full new Play Store? Jul 11 05:03:32 the vide for idea12 gui layouts looks WAY better Jul 11 05:03:33 haha Jul 11 05:04:01 spifff: I think it's pre-2.2 that didn't get upgraded Jul 11 05:04:50 JakeWharton: ah, sounds plausible… Looking at an old 2.1 Moto flipout at the moment, and it's got classic and no option to upgrade Jul 11 05:05:35 spifff doesnt google force update the market? Jul 11 05:05:45 can u even use older market? Jul 11 05:06:26 valiolap: on this old device you cant even update it… it still works though (with the old UI) Jul 11 05:06:39 JakeWharton: it's tempting to remove AbsoluteLayout from the tools... Jul 11 05:06:43 ;) Jul 11 05:07:16 jake not really Jul 11 05:07:39 I used drag and drop designer in adt 18ish Jul 11 05:07:43 it does relatives Jul 11 05:07:58 the thing that drives me nuts is that I do @+id_somesection/someid Jul 11 05:08:19 and when you rename a control it doesnt refactor it just renames, and everything that references it, just dissapears =) Jul 11 05:08:58 I'm looking at InelliJ features now, and it does look pretty sweet. JakeWharton, does the IDE take care of a lot of the issues you experience in Eclipse? Like the project constantly needing to be cleaned and such? Jul 11 05:09:17 yes Jul 11 05:09:24 and it builds in general faster Jul 11 05:09:36 intellisense is WAY WAY WAY better Jul 11 05:09:37 I'm switching over as we speak then Jul 11 05:09:38 dlaroche: if you're talking about the project cleaning that's started as of ADT20, that's fixed in the next bug release which will be going out asap Jul 11 05:09:59 mdwright: that is exactly what I am talking about Jul 11 05:09:59 and it does neat stuff like in xml layouts it'll drop little color swatches in the gutter Jul 11 05:10:08 so you can see what #AABBCC looks like Jul 11 05:10:31 dlaroche: I promise, the fix is coming then :) but feel free to use intellij if you like it better, they reuse a lot of our components Jul 11 05:10:40 (including the layout editor, lint, etc. etc.) Jul 11 05:11:02 so you don't end up missing out on much Jul 11 05:11:08 and get a better editor Jul 11 05:11:12 mdwright: even though they reuse a lot of the components, at least they are working right :) Jul 11 05:11:32 thats no fault of google Jul 11 05:11:38 * mdwright sighs Jul 11 05:11:39 eclipse is just like a pocket knife Jul 11 05:11:51 a dull one :D Jul 11 05:11:52 it does a LOT, but nothing super well Jul 11 05:12:05 Macgyver can do a lot with a pocket knife .. Jul 11 05:12:17 create a nuclear submarine even Jul 11 05:12:28 MacGyver is the shizznits Jul 11 05:13:50 mdwrightL when you say 'our components', are you an eclipse dev .. ? Jul 11 05:13:57 adt dev Jul 11 05:14:17 ah right, cool Jul 11 05:14:44 Yeah, I'm an intern on the android dev tools team Jul 11 05:15:02 I just kinda got bent over the library projects Jul 11 05:15:05 dang the people you meet in here Jul 11 05:15:09 JakeWharton I'm having trouble parsing InputStream into json.. I guess I have to first convert it to string? No other way to around that? Jul 11 05:15:11 Can you boost my app to number 1 on the market with fake ratings etc? I can give you at least $10. Jul 11 05:15:12 back several several versions Jul 11 05:15:21 if you saw the I/O presentation, I'm working on the new device stuff (among other things) Jul 11 05:15:22 it was getting worse with each subsequent release Jul 11 05:15:37 mdwright: got a link to the video? Jul 11 05:16:02 ron_frown: I noticed a degrad in the quality of it also Jul 11 05:16:07 https://developers.google.com/events/io/sessions/gooio2012/104/ Jul 11 05:16:12 dlaroche: ^ Jul 11 05:16:20 thanks got it Jul 11 05:16:25 mdwright: I take your silence as a yes? Jul 11 05:16:30 I again blame eclipse Jul 11 05:16:31 watched that one already Jul 11 05:16:43 I *highly* recommend watching the other android talks Jul 11 05:16:44 Eclipse just feels "clunky" to me Jul 11 05:16:59 I found the project butter video very informative Jul 11 05:17:00 especially Jeff Sharkey's if you're relatively new to android Jul 11 05:17:17 as I do lower level stuff Jul 11 05:17:18 and rom dev Jul 11 05:17:19 mdwright: i was able to attend IO so I have basically watched all the videos already. I was just curious to which one you were referring to. Jul 11 05:17:35 dlaroche: ah, nice. :) Jul 11 05:18:12 ron_frown: so with 4.0 it is more tied to proprietary device drivers correct?? Jul 11 05:18:19 what Jul 11 05:18:44 basically they took the vsync they were already using to trigger other stuff and synchronized everything Jul 11 05:18:51 took out buffering, and added another buffer Jul 11 05:19:02 mysteronyx, how about check out spring for android. it supports converting http response with gson. Jul 11 05:19:08 basically the 60hz refresh, is the trigger time for everything Jul 11 05:19:34 drawing, processing, etc Jul 11 05:19:55 pertaining to rom dev. I thought I remember reading that starting with 4.0 they started using more proprietary drivers for the hardware (device manufacturers) so rom dev is going to be harder to do since we don't have access to these "proprietary" drivers. Jul 11 05:20:07 nah Jul 11 05:20:10 thats just how its been Jul 11 05:20:24 ok Jul 11 05:20:33 lots of hardware has proprietary gps, proprietary gpu drivers etc Jul 11 05:20:43 so we can still expect a 4.0 Cyanogen?? :) Jul 11 05:20:47 basically you use precompiled binaries for arm or whatever Jul 11 05:20:49 hell yes =) Jul 11 05:20:59 I modded the shit out of jellybean for our custom hardware already Jul 11 05:20:59 sweet! Jul 11 05:20:59 * Leeds checks... yup, still #android-dev Jul 11 05:21:33 damn Leeds, just an innocent side question Jul 11 05:22:03 yeah, but... also a dumb one Jul 11 05:22:33 I think the odd rom related question here and there is ok.. especially when its not "how do I unlock my phone" or "I rooted my phone, but it didnt root" Jul 11 05:22:57 ron_frown: and it was still a dev question ;) Jul 11 05:23:20 yep Jul 11 05:23:40 I think the structure of things or how things work even if they are system/lower than avg person encounters Jul 11 05:23:45 is important to understand Jul 11 05:24:08 yes. the more lower stuff you understand, the better you will understand the higher level stuff Jul 11 05:25:49 can someone help me out. I'm using VideoView.setVideoUri(uri); I'm also using apk expansion. I have to use APEZprovider class. I have the apk expansion library along with the APEZprovider but i cant figure out how to use it. Could someone check it for me. http://developer.android.com/guide/google/play/expansion-files.html Jul 11 05:27:47 valiolap - I have no idae how you havent solved this problem yet Jul 11 05:29:39 resolving my market intent via PackageManager, loading the label, and looking for "market" or "play" seems to do the trick... Jul 11 05:31:25 hm except it will foul up on localized versions :/ Jul 11 05:31:46 would someone take a look at my code.. for some reason the try{} statement isn't even running: http://pastebin.com/iN15h17Q Jul 11 05:33:56 mysteronyx: are you sure your for loop is even iterating? Jul 11 05:34:25 ron_frown i havent worked for 2 days.. i havent been on the problem ;< Jul 11 05:35:02 dlaroche yes I debugged and can confirm that the for loop runs up to the try{} Jul 11 05:35:21 I set text to 'x' to prove it's skipping, because when I run the app, it outputs 'x' Jul 11 05:35:35 and this is different problem actually. I know how i can access a file and get the files but i need this uri thing now Jul 11 05:35:46 the other thin is if you have bad urls, you can get an exception Jul 11 05:36:02 eg, if it internally takes a string and builds a URI or URL object, it may crash if the url isnt valid Jul 11 05:36:12 well if the code inside the try statement isn't running then you are probably getting the catch statement. It's one or the other. Jul 11 05:36:25 uhh Jul 11 05:36:30 hmm Jul 11 05:36:31 it should hit the first line, if it didnt crash first Jul 11 05:36:50 it may crash on execution of the 1st line in the try block, but thats different Jul 11 05:37:04 set a breakpoint on the HttpGet line, and make sure the url its trying to set is correct Jul 11 05:37:21 ron_frown I did, it's correct Jul 11 05:37:42 make clean everything Jul 11 05:37:53 maybe its using cached symbols and thus breakpoints arent being hit Jul 11 05:38:13 ok Jul 11 05:40:50 what you are describing is not really possible Jul 11 05:41:05 that's what I was thinking Jul 11 05:41:12 if infact its getting into the logic block for the for loop, and not tossing out an exception on the httpget line Jul 11 05:41:20 look for errors elsewhere Jul 11 05:41:20 it either goes through the try or gets caught Jul 11 05:41:30 it ALWAYS goes through the try Jul 11 05:41:40 it just may error on any lines in the try Jul 11 05:41:43 yes, corrected Jul 11 05:41:47 in which case you'll hit the catch Jul 11 05:41:50 httpGet is equaling org.apache.http.client.methods.HttpGet@413f5230 Jul 11 05:41:57 yeah makes sense Jul 11 05:41:58 step Jul 11 05:42:15 step over Jul 11 05:42:16 i have an arrayadapter where one of the values corresponds to "uptime" of something, I have that textview being filled within getView, but is there a way i can have it increment every second? Jul 11 05:42:17 step over Jul 11 05:42:39 parco you can do it with a timer task or posting runnable Jul 11 05:42:49 but nothing automatically that I am aware of Jul 11 05:42:56 i could call notifyDataSetChanged() every second, is that hoggish? Jul 11 05:43:03 I'm stepping, and it's doing a bunch of http stuff Jul 11 05:43:05 causes a rebind Jul 11 05:43:23 toLowerCase stuff too Jul 11 05:43:36 so observe which line causes it to hit the catch clause Jul 11 05:44:07 caseMapper.toLowerCase keeps coming back as "source not found" Jul 11 05:44:20 I dont know what that is Jul 11 05:44:31 but at least its not null pointer Jul 11 05:44:33 I'm holding down f5, and it seems to be running through a never ending loop Jul 11 05:44:43 there is your answer Jul 11 05:45:12 what line got you there Jul 11 05:45:20 loko at the callstack and see where you leave your code Jul 11 05:45:39 the first line of the try Jul 11 05:46:08 could the get url be redirecting Jul 11 05:46:14 http redirect loops are entirely possible Jul 11 05:46:27 that defaulthttpclient isnt the apache client, right? Jul 11 05:46:41 yeah I think it is Jul 11 05:46:55 yeah Jul 11 05:46:58 cause apacheclient is FULL of bugs Jul 11 05:47:02 wonderful Jul 11 05:47:05 haha =09 Jul 11 05:47:07 which would you recommend instead Jul 11 05:47:17 what os versions are you targetting? Jul 11 05:47:29 as many as possible Jul 11 05:47:40 well Jul 11 05:47:44 but I'd settle for the latest Jul 11 05:47:52 google has put tons of optimizations into HttpUrlRequest or whatever Jul 11 05:48:09 it may make doing advanced shit a bit harder (possibly not possible) Jul 11 05:48:18 hmm Jul 11 05:48:22 but for basic post/put/delete/get and downloading files and shit Jul 11 05:48:25 shouldnt be an issue Jul 11 05:48:58 apparently there were some bugs (though admittedly I dont know what it touched back in 2.2 days) Jul 11 05:49:09 hmm Jul 11 05:49:17 I just checked. the try does get to the 2nd line Jul 11 05:49:18 I swapped a major app over to using URLRequest, and it improved speed, and generally just made things a lot more pleasant Jul 11 05:49:32 oh Jul 11 05:49:33 dude Jul 11 05:49:37 there is an easier way to do that anyway Jul 11 05:49:40 mysteronyx: you should not have to convert it to a String first Jul 11 05:49:57 there is some EntityUtil.GetString() or something Jul 11 05:50:01 gson.fromJson(response.getEntity().getContent(), type) Jul 11 05:50:06 I cant remember the class, but it takes the entity and content Jul 11 05:50:09 and beware Jul 11 05:50:13 hmm Jul 11 05:50:15 there are weird things with getEntity Jul 11 05:50:25 call it twice and it'll throw an exception (why?) Jul 11 05:50:53 there you go Jul 11 05:51:11 EntityUtils.toString(...getEntity()); Jul 11 05:51:14 then pass that in Jul 11 05:51:24 that's still converting it to a string isn't it Jul 11 05:51:37 yeah but it wraps all the stream reading/writing Jul 11 05:51:44 does gson support streaming content anyway Jul 11 05:51:56 I know it can read from a stream, but if it requires all the content to deserializing Jul 11 05:53:01 It should Jul 11 05:53:26 isn't that fundamental to a stream? Jul 11 05:53:32 mmm Jul 11 05:53:34 I dont know Jul 11 05:53:38 in .net its not +) Jul 11 05:54:09 in .net stream basically is a sequence of something... sometimes it is enumerable, sometimes it has a fixed length and you can get bytes by index Jul 11 05:54:33 eg, a memorystream is basically a ArrayList Jul 11 05:55:22 looks like this is the problem line: Idea new_idea = gson.fromJson(reader, Idea.class); Jul 11 05:55:38 I thought it was an array of Idea? Jul 11 05:55:38 see having the string here would be helpful Jul 11 05:55:39 oh Jul 11 05:55:47 haha Jul 11 05:56:22 yea it is, I thought it'd still work Jul 11 05:56:30 uhh no Jul 11 05:56:30 you need to give it a list type Jul 11 05:56:41 what jake said Jul 11 05:56:44 you're still trying to deserialize an array to a single object Jul 11 05:56:47 haha Jul 11 05:56:53 whereas you want a list of those objects Jul 11 05:57:05 the other thing is... circular references dont work in MOST serialization Jul 11 05:57:08 so make sure you arent doing that Jul 11 05:57:09 the reason is because reader is only ever going to have one entry Jul 11 05:57:18 it'll never have more than 1 Jul 11 05:57:33 so that's why I kept trying to think of this as an object rather than an array of objects Jul 11 05:57:35 or you'll have to annotate your type with something to ignore fields Jul 11 05:58:31 well GSON doesn't know anything about that. it sees '[' as the first character and it sees your object type as a concrete class rather than any type of collections and it throws an error Jul 11 05:58:36 yea Jul 11 05:59:09 you could get string, turn it into json object to parse out 1st result, then deserialize, though that'd obviously have some overhead Jul 11 05:59:55 Why is your API returning a list of objects if there is only ever going to be one? Jul 11 06:00:03 if you control api, just make it a single entity Jul 11 06:00:05 not a list Jul 11 06:00:05 what if via php I send back a json object instead of an array? Jul 11 06:00:16 should work Jul 11 06:00:23 JakeWharton yea I don't know Jul 11 06:00:33 I'm going to change the php to send back an object instead to see if that'll work Jul 11 06:02:38 reader is coming back like this: java.io.BufferedReader@41407378 Jul 11 06:03:23 What is the "right" way to add the result of a onActivityResult to an object not yet loaded by a Loader? Jul 11 06:04:48 Does the result hang around in some object that I can access when the object finishes loading? or do I have to sew my own pocket to put it in? Jul 11 06:04:56 are apk updates instantaneous after upload? Jul 11 06:05:26 ...if a new user were to install from market Jul 11 06:05:30 no, they can take up to a few hours for it to propagate through Google's servers Jul 11 06:05:37 gotcha Jul 11 06:05:56 * parco twiddles thumbs Jul 11 06:10:25 com'e'? :D Jul 11 06:10:35 wrong chan, sorry Jul 11 06:17:48 ok good now php sends back an object instead of an array Jul 11 06:18:29 well since you've been specifying a single object type to GSON it should just work Jul 11 06:18:49 well, that's the thing. Right now I'm converting InputStream into a string Jul 11 06:19:01 wdude Jul 11 06:19:14 just use EntityUtils.toString(whatever.getEntity()) Jul 11 06:19:30 ron_frown we're trying to find a way to avoid strings all together Jul 11 06:19:33 make usre the resulting string is the json you expect Jul 11 06:19:49 your old code didnt appear to convert to a string Jul 11 06:19:50 * ron_frown shrugs Jul 11 06:19:52 JakeWharton: this might be a crazy question, but do you know if google has an intern program for soon to be college grads? Jul 11 06:20:05 ron: BufferedReader reader = new BufferedReader(new InputStreamReader(content, "iso-8859-1"), 8); Jul 11 06:20:05 Gson gson = new Gson(); Jul 11 06:20:05 Idea new_idea = gson.fromJson(reader, Idea.class); Jul 11 06:20:07 JakeWharton doesnt work for google Jul 11 06:20:12 but they probably do Jul 11 06:20:17 Oh. Jul 11 06:20:35 ill look into it, thanks :) Jul 11 06:20:41 parco: just a sec I have the info for you Jul 11 06:20:43 my goal is to avoid BufferedReader entirely and just access the InputStream object as is Jul 11 06:20:43 mysteronyx where is the supposed string Jul 11 06:20:49 reader is the string Jul 11 06:20:52 so do it Jul 11 06:20:54 dlaroche: oh cool Jul 11 06:21:08 just pass inputstreamreader into fromJson? Jul 11 06:21:16 http://www.google.com/intl/en/jobs/students/index.html Jul 11 06:21:27 ^parco Jul 11 06:21:37 ron_frown gson.fromJson() requires a string Jul 11 06:21:46 thanks ! Jul 11 06:21:56 I think you just answered your own question... lol Jul 11 06:21:59 no problem Jul 11 06:22:03 if it requires a god damn string, pass in a string Jul 11 06:22:20 I can tell you this much, if it read from a stream, it'd definitely convert it to string anyway Jul 11 06:22:23 yea but I don't want to, so I'm looking for a new way to just tap into the object Jul 11 06:22:26 thats the nature of parsing non binary formats Jul 11 06:22:28 what is the issue with not wanting to use strings? Jul 11 06:22:32 and some binary format Jul 11 06:22:55 if PHP is sending a json object, I don't see the point in converting the InputStream into a string just so I can reconvert it back to an object Jul 11 06:23:02 dude Jul 11 06:23:07 if there's a way to just tap into the InputStream as a json object, then I'll do that Jul 11 06:23:10 why not just use JSONObject Jul 11 06:23:24 I could do that too. People were saying gson was better Jul 11 06:23:31 they serve diff roles Jul 11 06:23:35 I don't see it as that much of a performance issue, and more of a waste of time Jul 11 06:23:51 JSONObject basically is to query/parse/pick stuff out of json strings, or update, and then reserialize Jul 11 06:24:03 if your api spits out a list of x and you want them as a list of some native java type Jul 11 06:24:05 use GSON Jul 11 06:24:10 in my apps, I use a combo of both Jul 11 06:24:39 the question then is what format is InputStream. Can I tap into it with JSONObject as if it still is the object sent from PHP? Jul 11 06:24:44 JSONObject is also good for building json code from arbritrary values, that dont map to an object Jul 11 06:24:50 its a fucking stream dude Jul 11 06:25:00 so it's not an object, ok Jul 11 06:25:07 you get a string from the webserver no matter what... Jul 11 06:25:12 its just how its read in Jul 11 06:25:22 waiting until the entire message is there, or as data comes in Jul 11 06:25:30 so it really is impossible to bypass the string conversion Jul 11 06:25:34 if a method requires a stream or stream reader or inputstream Jul 11 06:25:46 you can do some stream chaining to do diff things Jul 11 06:25:52 if it requires a string, just pass in a string Jul 11 06:26:13 a stream *COULD* be a way to READ a string Jul 11 06:26:14 ahh only software engineers Jul 11 06:26:19 but they are definitely not interchangable Jul 11 06:26:28 ok Jul 11 06:27:33 honestly I seriously doubt if you'd notice any difference there anyway Jul 11 06:27:52 parsing encapsulation formats is difficult via streams Jul 11 06:28:14 eg, in the case of xm, if yo uhave the open tag, and not the close, you have to wait Jul 11 06:28:37 thats the idea of a stream... you have a reference to data, that could be currently be having something else writing to it Jul 11 06:28:44 and while(canRead()) etc Jul 11 06:29:19 so in these two lines: InputStream content = execute.getEntity().getContent(); Jul 11 06:29:20 BufferedReader reader = new BufferedReader(new InputStreamReader(content, "iso-8859-1"), 8); Jul 11 06:29:22 I know Gson can do streaming json, just think its not exactly what it sounds like Jul 11 06:29:25 is reader a string? Jul 11 06:29:28 no Jul 11 06:29:30 its a reader Jul 11 06:29:31 haha Jul 11 06:29:32 ok Jul 11 06:29:51 so I've got to convert the reader into a string still Jul 11 06:29:59 and then this will be complete Jul 11 06:30:08 you have to have a string, so get entity to string Jul 11 06:30:12 easiest route is Jul 11 06:30:24 EntityUtils.toString(execute.getEntity()) Jul 11 06:30:29 that is the response body Jul 11 06:30:34 then just pass that into fromJson Jul 11 06:30:35 alright I'll try it Jul 11 06:30:59 if nothing else, you'll have the string response you can look at in the debugger to make sure its what you expect Jul 11 06:33:05 did you mean EntityUtils.toString(execute.getEntity().getContent()) Jul 11 06:33:41 Does anyone know of a good, in-depth discussion/tutorial of Loaders that doesn't just introduce CursorLoader and call it quits? Jul 11 06:34:10 dont think you need to do getContent() Jul 11 06:34:29 I need to look into loaders Jul 11 06:34:45 I've been so focused in os dev, I've missed ou on some of the later android stuff Jul 11 06:35:45 Yeah, I find I have to stretch into new things (fragments, loaders) by "deciding they're the best solution for the client" -- but I'm getting bitten by loaders right now and want to stick with it until grokness comes. Jul 11 06:36:12 well fragments are a necessity Jul 11 06:36:17 and thye just make your life easier anyway Jul 11 06:37:08 Yeah, I love fragments. Jul 11 06:37:46 man the temps this week are out of control Jul 11 06:37:50 it was 109 today Jul 11 06:37:51 That, I grok (mostly -- some of the lifecycle still trips me up) Jul 11 06:39:29 Eclipse is horrible Jul 11 06:40:03 mysteronyx: why? Jul 11 06:40:17 I've had to restart it at least 20 times today because it's giving me false errors Jul 11 06:40:59 using clean is not enough? Jul 11 06:41:31 cd google Jul 11 06:41:42 it could be Jul 11 06:41:50 ron_frown I don't think your line is working Jul 11 06:42:14 String blah = EntityUtils.toString(whatever) Jul 11 06:42:22 set a breakpoint and evaluate blah after you pass it Jul 11 06:42:32 it works, I didnt build that method and I've used it a million times Jul 11 06:42:40 String x = EntityUtils.toString(execute.getEntity()); Jul 11 06:42:41 if you get a crash or empty string, its something else Jul 11 06:42:53 what is x after you evaluate it in debugger Jul 11 06:42:59 should just be raw text from server Jul 11 06:43:01 if not Jul 11 06:43:02 its your bad Jul 11 06:43:39 it's the object Jul 11 06:43:50 so I guess it is working Jul 11 06:44:53 not trying to be an ass or assume your experience levels... but getting aquainted to debugger, and getting in the habbit of turning first to it... will dramatically improve your development experience Jul 11 06:45:21 ron_frown it's partly Eclipse Jul 11 06:45:28 but you're right Jul 11 06:46:04 almost every time I restart this program, my code does something different. Jul 11 06:46:16 ^yes I HATE that Jul 11 06:46:18 just so happens I have a solution for you there too Jul 11 06:46:22 intellij idea =) Jul 11 06:46:32 I'll look into it tomorrow Jul 11 06:46:36 we had that discussion earlier Intellij seems to be voted the IDE of choice Jul 11 06:46:39 I installed this thing today, never using it again fi I don't have to Jul 11 06:47:05 I still have to use eclipse for day to day dev at my day job Jul 11 06:47:25 if they woul dhave just included perforce plugin in the community version, it'd be a diff story Jul 11 06:49:53 From my understanding, OpenGL has a sound library that can be accessed via NDK?? Jul 11 06:50:06 or is that just in 4.0+ Jul 11 06:55:52 Any suggested IntelliJ plugins to install before I get started with it? Or does it just work out of the box? Jul 11 06:56:35 dlaroche: mostly works out of the box Jul 11 06:56:44 ok thanks Jul 11 07:10:20 java.lang.NumberFormatException: Expected a long but was 0.01 Jul 11 07:10:37 I thought long and 0.01 worked Jul 11 07:12:35 code? Jul 11 07:13:06 maybe you need to put 0.01l Jul 11 07:13:19 actually 0.01L Jul 11 07:13:29 yeah Jul 11 07:13:30 L Jul 11 07:13:46 just like when you use a float you have to use 0.01F Jul 11 07:23:38 is there any good libraries for working with .wav files? Jul 11 07:24:02 hi Jul 11 07:24:22 is there any way to detect if the user turned off background sync? Jul 11 07:24:32 e.g. some powersaving tool Jul 11 07:25:23 yes Jul 11 07:37:38 ron_frown it works! Jul 11 07:37:47 yep Jul 11 07:37:49 thanks again Jul 11 07:37:55 np Jul 11 07:49:26 hey Jul 11 07:49:46 is it safe to upgrade to the newest eclipse for android development Jul 11 07:51:02 lol no Jul 11 07:51:24 luyang: actually yes Jul 11 07:51:39 you change your mind rather quickly Jul 11 07:51:40 But be careful with the new ADT Jul 11 07:51:54 yes the ADT has Lint issue instability Jul 11 07:52:03 you have to constantly clean your project for some crazy reason Jul 11 07:52:08 yeah Jul 11 07:52:14 or just clean the lint markers Jul 11 07:52:47 i love lint Jul 11 07:53:02 computers have brains now! Jul 11 07:53:17 yeah but it's broken Jul 11 07:53:29 it doesn't clean automatically after you've fixed the error Jul 11 07:53:36 yeah so what Jul 11 07:53:40 https://plus.google.com/116539451797396019960/posts will probably fix it in the next release Jul 11 07:53:42 i disabled auto build Jul 11 07:53:55 ok that's a good idea Jul 11 07:54:08 instead of auto build it now needs an auto clean :) Jul 11 07:54:24 ContentResolver.getMasterSyncAutomatically() what i was looking for Jul 11 07:54:49 monsti: told you :) I remember coming across the info last night Jul 11 07:55:14 the syncadapters are working fine Jul 11 07:55:31 but it's no easy to use framework Jul 11 07:55:39 sweet. Making progress then I take it? Jul 11 07:55:58 steal the code from googles samples Jul 11 07:56:50 that's what it's there for :) Jul 11 07:57:05 luyang: I had horrible problems with eclipse 4.2 and android development Jul 11 07:57:30 my workspace got corrupted twice during same day Jul 11 07:57:39 aolin: that's usually the case that it doesn't work well with the latest eclipse version... Jul 11 07:57:53 aolin: thanks for the heads up (or how they say it over there) Jul 11 07:57:58 reverted back to 3.7.2 Jul 11 07:58:26 I'm on 3.7.2 Jul 11 07:59:33 so android <=2.x is for phones, android 3.x is for tablets and android 4.x is for both right? Jul 11 08:00:07 there are 2.x tablets, but no 3.x phones afaik Jul 11 08:00:15 ohok Jul 11 08:00:21 interesting Jul 11 08:00:36 for example first samsung tab was 2.x Jul 11 08:00:47 I guess not many still use it Jul 11 08:00:57 luyang: You've got it about right. Jul 11 08:01:16 There are tablets which run 2.x simply because the market demanded tablets before the support was there. Jul 11 08:01:28 no idea if people have upgraded their tabs, but there are some 2.x tablets still used that cannot be upgraded (Ever) Jul 11 08:01:41 greymalkin: ok good… I hesitate to write apps since they are a few things to think about… all the different kinds of form factors and resolutions and so on Jul 11 08:01:54 aolin: ok Jul 11 08:02:05 I would not worry too much about them though :) Jul 11 08:02:16 =) Jul 11 08:02:38 what are people seeing Android 4.x share of their play store apps ? Jul 11 08:02:46 it's over 30% on mine, which is pretty amazing Jul 11 08:03:03 what? Jul 11 08:03:38 Samsung S3 alone is about 7% for my app Jul 11 08:04:08 it must be because new phone owners tend to install more apps Jul 11 08:04:09 suddenly I don't understand English Jul 11 08:04:21 ah the fraction of people with S3 who install your app Jul 11 08:04:32 luyang: might be my english, I'm not a native speaker Jul 11 08:04:54 aolin: me neither, don't worry Jul 11 08:07:01 aolin: what's your app's name Jul 11 08:07:13 or what is the name of your app Jul 11 08:07:37 Hi all Jul 11 08:07:53 good morning Jul 11 08:08:41 luyang: RaceChrono Jul 11 08:09:58 are you using actionbarsherlock or actionbarcompat or neither Jul 11 08:10:52 nevermind Jul 11 08:11:12 I'm using actionbarsherlock Jul 11 08:11:21 ei sen ole väliä Jul 11 08:11:28 oh ok, that's good to know Jul 11 08:16:10 interesting --> http://news.cnet.com/8301-17938_105-57469964-1/android-4.0-tablet-gets-supersized-to-21.5-inches/ Jul 11 08:17:35 Has anyone here used Paypal mobile payment library for their android app ? Jul 11 08:17:55 I want to know if Paypal can accept other credit card or does the user need to have a Paypal account. Jul 11 08:22:19 Has anything altered with the new base sdk tools? All of a sudden I can't sign my code. I get an error with 'Cannot recover key'. I've tried the live keystore and our backup and both fail. My password works in keytool, I've been able to browse the key stored in the keystore using keytool. Jul 11 08:22:38 Do I for example need to upgrade my keystore to be compatible with the latest keystore process? Jul 11 08:24:12 theneb: atleast my key store works just fine with the new one Jul 11 08:24:34 theneb: notice the key tools are part of Java not the SDK Jul 11 08:24:38 aolin: The only difference from a standard install is that our keystore is stored in a different path Jul 11 08:25:20 using keytool, so I've done keystore -keystore -list Jul 11 08:25:28 And that shows the key with it's fingerprint Jul 11 08:25:44 Unless all of a sudden it wants the keystore in my home path Jul 11 08:26:09 How do I get eclipse to re-import the code from the .jars on my build path Jul 11 08:26:35 I've updated one of the Jars but eclipse doesn't seem to have noticed. Jul 11 08:26:59 Clean! Jul 11 08:27:06 Then clean again Jul 11 08:27:09 And again and again Jul 11 08:27:31 ah good Jul 11 08:27:33 thanks Jul 11 08:27:51 and then restart Jul 11 08:27:55 and clean Jul 11 08:28:24 Gah! 'getLoaderManager().initLoader( 0, null, this )' <-- not applicable for arguments... in a FragmentActivity implementing LoaderCallbacks< Void > Jul 11 08:28:49 Is it possible to tell Eclipse to Auto Clean when it Auto Builds? Jul 11 08:28:56 this is frustrating Jul 11 08:29:27 Would that not be self-defeating? Jul 11 08:29:28 Why do you want to auto clean everytime you build the project? Jul 11 08:29:48 because you have to with the way Eclipse keeps screwing up things Jul 11 08:30:29 instead of going to the menu to tell it to Clean. Is it possible to just have it do it for you? Jul 11 08:31:02 *facepalm* wrong loader manager. Jul 11 08:31:39 some kind of work around until this promised update comes out anyways Jul 11 08:34:13 Knossos: or control-1 clear all lint junk Jul 11 08:34:27 @ActionBarSherlock.Implementation(api = 14) Jul 11 08:34:37 what's up with that api level 14 in actionbarsherlock? Jul 11 08:35:01 I don't have API level 14 installed Jul 11 08:35:07 It targets it, but allows for earlier versions. Jul 11 08:35:46 ok but I got a console warning "Unable to resolve target 'android-14'" Jul 11 08:37:01 so I am installing it now Jul 11 08:39:27 I'm using target 15, works just fine Jul 11 08:39:43 you can change it in project > preferences > android Jul 11 08:39:43 so you don't have sdk 14 Jul 11 08:39:47 no Jul 11 08:39:52 ok Jul 11 08:39:55 I use 15 for my app and actionbarsherlock Jul 11 08:40:12 btw, actionbarsherlock seems to specify minSdkVersion="8" Jul 11 08:40:32 hmmm, works fine on 7 Jul 11 08:40:41 lemme check Jul 11 08:40:43 my dad's phone is on 7 ;) Jul 11 08:40:44 ok Jul 11 08:44:41 how's checking going? Jul 11 08:45:16 luyang: badly, would have to get up and test on actual 2.1 phone :) Jul 11 08:45:57 ok Jul 11 08:45:58 =) Jul 11 08:46:09 np Jul 11 08:46:35 AndroidManifest.xml on actionbarsherlock 4.1.0 says minSdkVersion="7" Jul 11 08:46:39 so I'll just believe that :) Jul 11 08:47:09 yes you're right Jul 11 08:47:13 it was my own project which was 8 Jul 11 08:47:14 thanks Jul 11 08:47:18 ok Jul 11 08:48:12 my shareActionProvider dropdown is going off the screen on the right side...is there a way to align it or set some allignment properties? Jul 11 08:50:42 my shareActionProvider dropdown is going off the screen on the right side...is there a way to align it or set some allignment properties? Jul 11 08:55:36 how do i change the layout of an fragment after asynktask finishes Jul 11 08:55:48 onposteecute Jul 11 08:56:45 currently i have View mainView = (View) inflater.inflate(R.layout.frag_a, group, false); oncreateview. theres some edittext fields , text and buttons i want to get rid of Jul 11 08:57:01 theyre initialised in onActivityCreated Jul 11 08:58:46 I'd like to rotate a bitmap I'm drawing on a canvas.. Right now I'm just using .setTranslate(x,y), and now I also want to rotate it. What order should I do it in? And what methods( setTranslate + preRotate/postRotate/setRotate? Jul 11 08:59:12 setRotate Jul 11 09:02:25 my shareActionProvider dropdown is going off the screen on the right side...is there a way to align it or set some allignment properties? Jul 11 09:02:56 Jul 11 09:02:58 hi how do i get global BroadcastReceivers working ? Jul 11 09:03:34 explain further Jul 11 09:03:50 what do you mean by "global" Jul 11 09:06:13 Hallo, guys. does anybody knows how to load or just use same JNI library on few different threads? when i load first time it is ok, but when i try to load it in other thead same way, i am getting crash "No implementation found for native (Ljava/lang/String;)I" . i also tried to invoke first class native methods in another class threads - also crash. Please help! Jul 11 09:07:03 ^Pr070cal Jul 11 09:08:10 jellydonut: nice nick Jul 11 09:08:27 kjempefint Jul 11 09:19:04 dlaroche: hi :) Jul 11 09:20:26 dlaroche: basically i want a BroadcastReceiver without a activity and without a service. register it in manifest and have 1 class extend BroadcastReceiver. stating its global means i want it to catch all intents but filter for the one i want Jul 11 09:21:14 dlaroche: i have an example too from a guy that wrote a android book and on sgs3 4.0.4 ics i cant get it working Jul 11 09:22:01 Pr070cal: that's because apps do not recieve broadcast until they've been activated, usually by the user opening an activity Jul 11 09:22:04 you have to define most of that in the AndroidManifest.xml, basically you need an Jul 11 09:22:48 appel1: you should be able to register one without an activity Jul 11 09:23:02 dlaroche: https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnWiFiChange Jul 11 09:23:09 Pr070cal: sure, but it will never be used Jul 11 09:23:18 appel1: even the guy that wrote the book says it works Jul 11 09:23:31 from my understanding, as soon as an apk is installed, any broadcast recievers and services are registered Jul 11 09:23:44 no need to run the apk Jul 11 09:23:53 directly by opening it Jul 11 09:24:00 dlaroche: not in recent versions of android, introduced because dev abuse Jul 11 09:24:26 dlaroche: thats what i thought too, yes that is correct, but im wondering if 4.0.4 still works Jul 11 09:24:31 i see. ok. well that is probably your issue then Pr070cal Jul 11 09:24:51 surley there must be a permission or something Jul 11 09:25:46 so how can i listen in the background if the screen is turned on ? Jul 11 09:25:48 http://developer.android.com/about/versions/android-3.1.html#launchcontrols Jul 11 09:27:14 Pr070cal: you just have to give your users some means to activate your app first Jul 11 09:30:14 I can use the arrow keys in my emulator but not any other key..why is that? any idea? Jul 11 09:30:31 so, how will work com.android.vending.INSTALL_REFERRER if app not activated? Jul 11 09:32:26 Ubububu: perhaps Google Play adds the flag that lets stopped apps receive it anyways Jul 11 09:33:59 appel1: dlaroche: how about a service with a BR Jul 11 09:34:17 Pr070cal: makes no difference afaik Jul 11 09:34:19 but then how do i start the service Jul 11 09:35:09 appel1: so do i have to have a Activity now Jul 11 09:37:01 It does depend on API level. In Android API < 3.1 broadcast receivers are registered on application install. Starting from Android 3.1 installed packages (applications) are put in "stopped" state and are activated (and broadcast receivers registered) after the very first launch. Read more at http://developer.android.com/sdk/android-3.1.html#launchcontrols Jul 11 09:38:30 hello Jul 11 09:38:31 Ubububu: a quick google seems to suggest that INSTALL_REFERER does not work on devices >= 3.1 Jul 11 09:39:42 hm Jul 11 09:44:00 Hello, I like to connect to a 3rd party bluetooth device from within android code, what options I have using android SDK? it seems the support is only limited to 3 bluetooth profiles ? Jul 11 09:52:07 is it possible to run android UTs that don't depend on any android stuff through eclipse junit runner? Jul 11 09:53:17 hello Jul 11 09:54:24 Is it possible to use both XML and Java to create a UI? Jul 11 09:54:49 Belacan: yes Jul 11 09:55:26 would you know of any resources where I can learn how to do this? Jul 11 09:55:35 d.android.com? Jul 11 09:58:31 Hi there, I'm trying to figure out if I can rely on getExternalFilesDir() to work for all the devices I'm targetting - but I couldn't find any statistics or explanaton where it would work or not work Jul 11 10:01:21 anyone has comments on my question ? Jul 11 10:03:31 appel1: where do i do intent.addFlags(android.content.Intent.FLAG_INCLUDE_STOPPED_PACKAGES); Jul 11 10:03:55 appel1: if i have to do it in an activity i may aswell make a launcher ? Jul 11 10:04:01 appel1, i test on Galaxy Nexus 4.0.2 and receiver work fine Jul 11 10:04:43 Ubububu: hi what are you doing, im trying to make a receiver without activity Jul 11 10:05:11 Ubububu: but 3.1< it doesnt run without a launcher Jul 11 10:05:19 android:exported="true" Jul 11 10:05:45 If I want to implement my own XML properties for my view, what should I type into google Jul 11 10:06:16 dan : http://www.androidenea.com/2011/10/creating-custom-view-part-3-xml.html this may help Jul 11 10:06:36 oh good Jul 11 10:06:37 thanks Jul 11 10:06:40 Ubububu: is that for a service ? Jul 11 10:07:03 for receiver Jul 11 10:08:22 Ubububu: did you use intent.addFlags(android.content.Intent.FLAG_INCLUDE_STOPPED_PACKAGES); Jul 11 10:08:53 Pr070cal: nope Jul 11 10:09:03 oh, wait Jul 11 10:09:26 i send intent from adb shell Jul 11 10:09:26 anyone here on knowledge of bluetooth & android ? :) Jul 11 10:10:10 Ubububu: i cant get my receiver to work without a activity or service after 3.1 ? Jul 11 10:11:17 Ubububu: have you got a gmail maybe i can add you to try and get this working please :) PM it to me Jul 11 10:14:50 Ubububu: have you used the ECF on eclipse Jul 11 10:15:06 Ubububu: the collaborative framework Jul 11 10:15:18 Ubububu: 2 or more people can work on the same code Jul 11 10:22:55 Ubububu: do you want to try Jul 11 10:32:52 Hi Jul 11 10:33:09 does anyone know if its possible to link a UI element with an object Jul 11 10:33:14 for example Jul 11 10:33:41 I have an object called valves (which is used to control valves) Jul 11 10:33:57 each of these valves has two buttons, and a text view lets say Jul 11 10:34:24 Is it possible to create the UI buttons and text views based on information from the constructor of the object Jul 11 10:34:35 and place it in an existing layout Jul 11 10:34:44 custom view or viewgroup should be able to take care of that Jul 11 10:35:00 Ok cool, ill have a look into that Jul 11 10:35:01 thanks. Jul 11 10:35:36 what about the buttons do you need from the constructor? Jul 11 10:36:09 well Jul 11 10:36:17 from the constructor ill put something like valve name Jul 11 10:36:32 and it should create a button say btnValve1 Jul 11 10:36:40 you can update those values at any time though? Jul 11 10:36:41 which is later referenced back Jul 11 10:36:45 no Jul 11 10:36:46 that's why I am wondering if i am missing something Jul 11 10:36:48 its fixed Jul 11 10:37:00 The reason is im going to have maybe 100 buttons Jul 11 10:37:17 Button mButton = (Button) fVbId.xml-->button then later mButton.setText Jul 11 10:37:29 but yeah you'll probably want to set up your own view group Jul 11 10:37:36 with so many buttons Jul 11 10:37:53 sounds like something went horribly wrong in designing Jul 11 10:37:53 Ok cool thanks for your answer. Jul 11 10:37:55 ;_; Jul 11 10:37:58 haha Jul 11 10:38:12 Im designing a human machine interface for a cement pump with lots of valves Jul 11 10:38:20 tell that to whoever designed the pump! Jul 11 10:38:25 aha Jul 11 10:38:37 belecan here's a video you might want to check out on the subject of custom view groups http://www.parleys.com/#st=5&id=2191&sl=3 Jul 11 10:39:01 cool, thanks very much for your replies. Jul 11 10:42:30 the video seems to be freezing on chrome Jul 11 10:42:36 do you know somewhere else i can find it Jul 11 10:43:49 http://www.scribd.com/doc/72551752/Android-Layouts Jul 11 10:44:02 there's the presentation, probably exists somewhere else if you keyword Jul 11 10:44:26 sweet thanks Jul 11 10:44:36 No problem, good luck on the project Jul 11 10:50:18 good morning Jul 11 10:50:24 can anyone help me out with spinner? i need to set the id of a value.... Jul 11 10:50:25 morning Jul 11 11:01:01 hi I was referring http://www.androidcompetencycenter.com/?s=GPS Jul 11 11:01:06 this tutorial Jul 11 11:01:16 I downloaded the code and it worked fine Jul 11 11:01:47 but when I modified the UI in my project and used almost the same project then it has stopped responding Jul 11 11:03:21 Well, it's clear then... it's you ;) Jul 11 11:03:51 :) Jul 11 11:03:53 yeah Jul 11 11:04:07 I tried to see the logcat to find out what's wrong Jul 11 11:04:19 but didn't get much Jul 11 11:05:14 HDroid, http://fpaste.org/kMn0/ Jul 11 11:05:18 here what I got Jul 11 11:05:26 I had faced the same problem earlier als Jul 11 11:05:29 *also Jul 11 11:05:41 wanted to know how can I debug in these situations Jul 11 11:05:54 so that I dont have to trouble u all again Jul 11 11:05:55 :P Jul 11 11:05:59 brb Jul 11 11:09:15 HDroid, ? Jul 11 11:10:26 argh.. there's a function SurfaceHolder.setType which is marked deprecated in the API docs.. Jul 11 11:10:49 there's just one catch, using the surface for camera previews doesn't work at all if one doesn't call it.. Jul 11 11:10:56 SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); Jul 11 11:10:57 Hello. Jul 11 11:11:11 gnaaaah Jul 11 11:11:15 this took me a few days now.. Jul 11 11:11:45 Can I send other types of data, beside int and String, as extras to an intent and then get that in my intentreceiver? And if yes, how exactly would I do that? Jul 11 11:13:41 for example if I do: Context context; intent.putExtra("mycontext", context); is there a way to get that context in my intent receiver? Jul 11 11:16:14 is ACTION_GET_LANGUAGE_DETAILS available for api > 7 ?? Jul 11 11:17:27 Ubububu: that's good to know Jul 11 11:20:17 niteshnarayanlal: did you change the activity name, and if so, did you change it in the manifest? Jul 11 11:21:10 yeap I had done both the things Jul 11 11:26:30 niteshnarayanlal: did the package name change? Jul 11 11:27:37 HDroid, you are asking about manifest file ? Jul 11 11:27:57 Well, manifest in combination with package structure. Jul 11 11:28:19 Let's put it differently.. what did you change? Jul 11 11:28:20 yeap its correct I reachecked Jul 11 11:28:33 *rechecked Jul 11 11:29:42 wassap Jul 11 11:39:19 Mh. Seriously guys. runOnUiThread is really working for you or is it just an hack? It's working for very little things but most of the time it just didn't refresh anything. (myView.post works a little better but when you have multiple views to update...) Jul 11 11:42:12 Hi all, do anyone know if power button for super long press can be disabled for galaxy s 3. Jul 11 11:42:40 HDroid, any idea about the problem ? Jul 11 11:43:27 I have a friend and hit phone reboot all the time in his pocket because the power button is pressed and hold down in the pants pocket Jul 11 11:47:13 pcboy_: i wouldn't say runonuithread is a hack, its part of the api Jul 11 11:47:47 sometimes you want to like display a dialog from an external library but can't because it doesn't have a hook in the ui thread Jul 11 11:48:20 In my case I'm just doing some calls to an api in a spawn and I'm using runOnUiThread to show the results in my different views. Jul 11 11:49:00 are you not using asynctask? Jul 11 11:49:04 No Jul 11 11:49:18 i would if i was you Jul 11 11:49:27 you know how you can say uses-feature> bluetooth or something? Jul 11 11:49:33 how can i check available features from code? Jul 11 11:50:15 getPackageManager().hasSystemFeature(PackageManager.FEATURE_LOCATION) Jul 11 11:50:20 for example Jul 11 11:50:22 CallumTaylor: It's much easier for me to just do a spawn { api.call() match Some(result) => runOnUiThread { doSomethingWithTheResults } } Jul 11 11:50:37 CallumTaylor: thanks :) Jul 11 11:50:53 you can do that, i personally use my own asynchttpclient class which has a response listener Jul 11 11:51:20 since I've upgraded my Android SDK, the eclipse plugin won't update the Android Lint Problems... I mean, if I forget a semicolon and I add it later, the Android Lint will continue saying I've got an error. The only way to build the project is then to delete the error and compile... is there any fix/workaround for this? Jul 11 11:52:15 CallumTaylor: But have you an idea why my views are not refreshed? I know it's passing in that code, I know that the api results are there, it's just not refreshing the views. Jul 11 11:52:38 hm Jul 11 11:53:16 might be because of the runonuithread Jul 11 11:53:16 elegos: disable lint ;) Jul 11 11:53:17 http://stackoverflow.com/questions/901239/android-using-runonuithread-to-do-ui-changes-from-a-thread Jul 11 11:53:46 thilden: heh, but sometimes (rarely TBH) it will be right, so... anyway to fix its behavior without disabling it? ^^ Jul 11 11:55:53 CallumTaylor: So this runOnUiThread thing doesn't really work. Jul 11 11:56:03 I tried the postInvalidate. Jul 11 11:56:10 maybe not the way you're trying it Jul 11 11:56:20 i remember i had this problem before Jul 11 11:56:24 but it was like a year ago :/ Jul 11 11:56:32 can't remember how i fixed it Jul 11 11:56:53 I had that problem multiple times. Sometimes doing a view.post instead of a ronUiThread is working. Jul 11 11:57:04 But It's getting pretty annoying. Jul 11 11:57:38 i would definitely look into async task Jul 11 11:59:15 That's really annoying. But ok i'm gonna try to do a template upon asynctask. Jul 11 12:00:17 Am I wrong in my understanding that when I put items in the action bar menu, they automatically get put in the overflow section? I have three items -- two show (using ifRoom) but the third doesnt and I do not see the overflow button ... confused. Jul 11 12:05:16 Hi all, do anyone know if power button for super long press can be disabled for galaxy s 3. I have a friend and hit phone reboot all the time in his pocket because the power button is pressed and hold down in the pants pocket? Jul 11 12:05:47 Google show no results. Jul 11 12:06:30 Well none that seems to work from reply and such. Jul 11 12:07:38 get bigger pockets Jul 11 12:08:13 no there wouldn't be a way to disable. that's standard with every electrical device ever made Jul 11 12:10:34 Hi, does anyone know how to prevent the outline from expanding in my layout editor when i click on a thing? Jul 11 12:11:03 currently if a tree branch is collapsed as soon as i click on it/move it, it expands Jul 11 12:12:59 codefriar: sound like you have a menu button Jul 11 12:13:18 wongk: yeah, just figured that out. is there an overrride ? Jul 11 12:13:39 i think there may be, but i honestly don't know Jul 11 12:13:45 but that's how it's supposed to work Jul 11 12:17:25 I've got a preference layout with this entry: Jul 11 12:17:48 I've add a log.d onCreateView of MeFrag, but it will never be fired Jul 11 12:18:00 have I done it the wrong wey? Jul 11 12:18:15 way* Jul 11 12:24:59 on this page Jul 11 12:24:59 http://developer.android.com/training/basics/firstapp/starting-activity.html Jul 11 12:25:11 it says "Add the corresponding method inside the MyFirstActivity class:" Jul 11 12:25:37 this is the first time the docs have said anything about MyFirstActivity Jul 11 12:27:13 After completing the previous lesson, you have an app that shows an activity (a single screen) with a text field and a button. In this lesson, you’ll add some code to MyFirstActivity that starts a new activity when the user selects the Send button. Jul 11 12:27:20 jaminkle: read the "previous lesson" Jul 11 12:27:57 I already have Jul 11 12:28:12 i have that code with a button and text field Jul 11 12:28:44 How do i post data into a webview with aditional headers? wv.postUrl(url, postData) only takes postdata as bytes and wv.loadUrl(url, extraHeaders) only do GET… i need to add Content-type: application/json Jul 11 12:28:45 thus, you'll already have MyFirstActivity file Jul 11 12:29:08 is that the activity_main.xml Jul 11 12:29:14 evaluate: you can put anything that's serializable into an extra Jul 11 12:29:19 jaminkle: no, it's the class, not the layout Jul 11 12:29:26 :/ Jul 11 12:29:31 evaluate: i'm not sure it's a good idea though, to do that with a context Jul 11 12:29:43 how do i change classes Jul 11 12:30:28 jaminkle: you should have files under src/com/example/whatever Jul 11 12:30:31 btw here: http://developer.android.com/training/basics/firstapp/creating-project.html Jul 11 12:30:45 Trying to use actionbarsherlock and having some really simple issues :/ I downloaded the latest .tgz from the website, extracted it, created new android project from existing sources and linked it to the library folder. Everythings good, makes the project with all the source files.. but eclipse throws up hundreds of errors in the source.. mostly to do with @overrides. Anyone got any idea as to why its doing this? Jul 11 12:30:49 you create a new program with the first class called "MyFirstActivity" Jul 11 12:31:03 i just did that tutorial from the start Jul 11 12:31:33 sounds like a java version issue Jul 11 12:31:42 so you'll have MyFirstActivity.java under src/com/example/myapp Jul 11 12:32:05 CallumTaylor: Was that to me or jaminkle? Jul 11 12:32:12 elegos yes i have that Jul 11 12:32:17 to Timmaah1201 Jul 11 12:32:31 i have messed around with the java versions.. Jul 11 12:32:47 yeah there's one version that doesn't play well with @Override Jul 11 12:32:55 can't remember which one Jul 11 12:33:24 think im running oracle one Jul 11 12:33:33 ill switch back to the jdk and see if that fixes it, thankis Jul 11 12:33:55 elegos it dosent show me how to change the class Jul 11 12:34:04 all i can see in the tutorial is messing with the layout Jul 11 12:34:08 Hey does anyone know how to prevent the outline items in my graphical layout from expanding when they're clicked and moved (in eclipse) Jul 11 12:34:43 jaminkle: have you tried double-clicking the file? Jul 11 12:35:07 the .java file? Jul 11 12:35:11 yes... Jul 11 12:35:31 lol oh ffs Jul 11 12:35:34 it was that easy Jul 11 12:35:51 i tried to open it in notepad++ a while ago and it was nothing so i wrote it off Jul 11 12:36:00 btw I suggest you to practise with activities and layouts, then read more about Fragments, which are the future of Android IMHO, they are easy to write and they make multiple layouts easily possible (i.e. tablet and smartphone layouts)... Fragments are available since Android 3.0 Jul 11 12:36:04 ill just use eclipse Jul 11 12:36:17 what is the ui element that is used by the address book to display a list of items grouped together by a common thing called ? Jul 11 12:36:30 if I'm not wrong you can even use the compatibility library to let fragments work on android 2 Jul 11 12:36:42 elegos: you are 100% correct. Jul 11 12:37:07 codefriar: are you talking about the contacts list item layout? Jul 11 12:37:15 elegos: yes Jul 11 12:37:26 I want to do something very similar but not with contacts ;) Jul 11 12:37:37 codefriar: I don't know TBH, but you can easily setup a custom view with the elements described and the relative adapter Jul 11 12:37:50 I'd suggest you to extend an ArrayAdapter for that Jul 11 12:38:17 elegos: yeah, I was planning on extending one of the adapters for it but I was hoping to get the grouping Jul 11 12:38:47 i.e. create a LinearLayout (horizontal), ImageView and LinearLayout (vertical), in which you put the TextViews you want Jul 11 12:39:34 codefriar: take a look to this: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ Jul 11 12:39:47 awesome Jul 11 12:39:55 you're welcome :)= Jul 11 12:40:06 :)=< Jul 11 12:40:09 eheheh Jul 11 12:41:22 btw has anyone any idea on how to call a fragment when I click on a preferencescreen item? There's the android:fragment property, but even I've set the absolute path to it (com.example.myapp.Fragments.myfrag), it won't fire Jul 11 12:42:19 good morning Jul 11 12:43:47 yo Jul 11 12:45:32 elegos: according to the docs, that needs to be in a PreferenceScreen tag Jul 11 12:45:38 anybody want to have a go at this question? I would have thought it would be fairly straight forward. But it doesn't seem so http://stackoverflow.com/questions/11391473/maximum-limit-for-items-in-in-app-billing Jul 11 12:45:53 wongk: what do you mean with "in a PreferenceScreen tag"? Jul 11 12:46:00 Jul 11 12:46:07 that's a Preference tag Jul 11 12:47:32 wongk: yes, that's what I called Jul 11 12:47:53 and the fragment extends a PreferenceFragment Jul 11 12:48:03 so based on what i've said, what do you need to change it to? Jul 11 12:48:46 aaaaaaaaaah Jul 11 12:48:50 thanks :) Jul 11 12:49:49 uhm... changed to PreferenceScreen, still it won't show up nor the log will fire Jul 11 12:50:34 any errors in your logcat? Jul 11 12:51:03 not even a verbose Jul 11 12:51:47 does anybody know the limit on items for in-app billing? Jul 11 12:51:57 i'm afraid i can be of no more assistance Jul 11 12:52:55 thanks wongk in any case :9 Jul 11 12:52:56 :) Jul 11 12:53:03 I'm gonna search further in the docs Jul 11 12:53:39 Is it possible to have two instances of AudioRecord running on two different threads that access the microphone at the same time? Jul 11 12:53:55 will AudioRecord allow this? Jul 11 12:54:22 hello Jul 11 12:54:51 can someone tell me how I can preselect a Tab in a TabActivity when calling it via an Intent ? Jul 11 12:55:18 Hello Jul 11 12:58:05 Pinas: with setCurrentTab? Jul 11 12:59:01 if you want different tab will be opened in different scenarios, you can easily put extra to intent and check the extra value in TabActivitiy onCreate-function Jul 11 13:00:37 TabActivity?! - thar be demons there Jul 11 13:10:33 CallumTaylor: Works with an asyntask. So yeah runOnUiThread is shit. Jul 11 13:10:41 :) Jul 11 13:11:14 What heh Jul 11 13:11:24 It does what it says on the tin. Jul 11 13:11:55 Not really. Most of the time it doesn't actually work. You need to use view.post or you need to postInvalidate, and such. Jul 11 13:12:00 I had a ton of problems with it. Jul 11 13:12:11 I have... never had a problem with it. Jul 11 13:12:24 i have never had a problem with runOnUiThread Jul 11 13:12:26 I imagine it will get pretty unreliable if you post heaps of runnables to it. Jul 11 13:12:29 i use it alot Jul 11 13:12:37 But that's just stupid design. Jul 11 13:12:53 I've only one runnable in it all the time. Jul 11 13:13:31 Well, it looks like you've hit an edge case or are doing something questionable. Jul 11 13:13:38 runOnUiThread? Jul 11 13:13:53 I'm in Scala, maybe there is a strange bug I don't know. Jul 11 13:14:23 Ahh there you go. Jul 11 13:14:46 Basically I'm just doing spawn { mybackgroundTask match Some(thing) => runOnUiThread { updateUi } }, nothing more. Jul 11 13:16:22 Well, instead of calling runOnUiThread "shit", a better idea is to look at the scala implementation. Jul 11 13:16:45 It's not a scala implementation. It's the android sdk native one. Jul 11 13:17:07 I just have: Jul 11 13:17:08 implicit def toRunnable[F](f: => F): Runnable = Jul 11 13:17:08 new Runnable() { def run() = f } Jul 11 13:17:14 To make the runnable inside it. Jul 11 13:17:22 There's native scala for Android now? Jul 11 13:17:28 And it works, sometimes. Sometimes not. Jul 11 13:18:00 HDroid: What do you mean? I can call any java thing from scala. Jul 11 13:18:28 Of course, but something compiles the whole thing to bytecode. Jul 11 13:19:49 That's still a java implementation of runOnUiThread that I'm calling. Jul 11 13:20:32 Not the answer to my question. Jul 11 13:22:31 pcboy_: the UI thread runs inside of a big Looper loop, with a Handler. Jul 11 13:22:42 pcboy_: when you call runOnUiThread, you're basically posting a message to that loop with a runnable. Jul 11 13:22:48 runOnUiThread should NEVER fail. Jul 11 13:23:20 I know how it works. And yeah that should NEVER fail like you said. Jul 11 13:23:53 In fact it's not like it fails, the runnable is correctly called. That's just the views are sometimes not refreshed. Jul 11 13:29:01 pcboy_: that implies that your callback has a problem, then. Jul 11 13:29:10 can you pastebin some code? I don't really know scala, but I might be able to see an obvious mistake Jul 11 13:29:20 note that you can always call postInvalidate off of the UI thread. Jul 11 13:29:41 its better to use asynctask anyway Jul 11 13:29:58 My code is not very different from that https://gist.github.com/2574564 Jul 11 13:30:12 CallumTaylor: not really. Jul 11 13:30:21 CallumTaylor: asynctask is just a convenience class. Jul 11 13:30:41 if you're not actually performing a task in the background where you'd need the help of asynctask's methods, there's no reason to bother with it. Jul 11 13:31:17 but he is doing a background task Jul 11 13:32:20 * lov shrugs Jul 11 13:32:25 ok, an asynctask would be better then. Jul 11 13:33:05 pcboy_: what happens when you attach the debugger? Does your setText actually get called? Jul 11 13:33:27 Yes Jul 11 13:33:31 Everything is called. Jul 11 13:33:43 Hmm! Jul 11 13:34:04 Hi Jul 11 13:34:13 try adding an invalidate() call after your setText call Jul 11 13:34:16 I see this http://code.google.com/p/pyramid-jelly-bean/source/checkout Jul 11 13:34:19 I can't recall offhand whether setText forces an invalidate Jul 11 13:35:06 jimmy_lo_chien_f: good to know? Jul 11 13:35:41 lov, I can't get anything Jul 11 13:36:15 lov, the message says: warning: You appear to have cloned an empty repository Jul 11 13:36:46 I have more than just a setText in my case. Multiple setText. But I tried the postInvalidate and it didn't really work. But as I said sometimes it's working sometimes it's not. This is pretty random. Jul 11 13:37:04 In contrary to the asyncTask which works all the time now. Jul 11 13:37:12 Have anyone tried to download this? Jul 11 13:37:24 now that I think about it, there is a little difference. The spawn. It's a scala spawn. Jul 11 13:38:06 jimmy_lo_chien_f: why don't you go to #git and ask for help? Jul 11 13:38:12 this has nothing to do with android development Jul 11 13:38:17 oh Jul 11 13:38:26 lov, OK, thank you. Jul 11 13:39:06 jimmy_lo_chien_f: http://code.google.com/p/pyramid-jelly-bean/source/browse/#git it appears to be broken Jul 11 13:39:34 pcboy_: don't know what to suggest, sorry. Anyway, if you're on the UI thread, you can just use invalidate() instead of postInvalidate(); postInvalidate just posts another message to the UI thread to invalidate that view, which is a little wasteful but not that big a deal. Jul 11 13:39:50 HDroid, you have tried? Jul 11 13:40:03 jimmy_lo_chien_f: I can see it's empty Jul 11 13:40:18 I can clone it but I'll just clone an empty repo, like the web interface says. Jul 11 13:40:31 Either it _is_ empty or there's crap in it that breaks the repo. Jul 11 13:40:39 HDroid, it is so sad. Jul 11 13:41:08 HDroid, I was so excited when I saw this link. Jul 11 13:41:22 I dunno, try to contact the repo owner. Jul 11 13:45:02 can anybody take a crack as to why my WebViewClient methods never get called, even though the WebChromeClient works fine (i.e. the page loads, JS is loaded, console messages get through)? https://gist.github.com/9673b619e019038848a0 Jul 11 13:47:14 are there any devices that use a microsim? Jul 11 13:47:25 HTC One X / S Jul 11 13:48:25 isnt micro sim the new standard? Jul 11 13:48:42 honestly i didnt know it was used anywhere outside the iphone until HDroid's response Jul 11 13:48:44 It's what Apple started using in iphone 4 Jul 11 13:48:55 the iphone 4 came out in summer 2010 with microsim Jul 11 13:49:02 galaxy nexus came out in fall 2011 with normal sim Jul 11 13:50:13 galaxy s3 uses micro sim Jul 11 13:51:17 razr and maxx Jul 11 13:51:56 ah too bad.. view.draw(canvas) doesn't work if one of the views is a SurfaceView Jul 11 13:52:58 HDroid, did you get the source code of jelly bean Jul 11 13:54:45 hey guys, what are general reasons for a ProgressDialog not showing up? Jul 11 13:55:25 not calling .show() Jul 11 13:55:25 Geez Jul 11 13:55:35 calling .show() and then executing an AsyncTask and calling .get() Jul 11 13:55:51 I'm trying to create a Parcelable that contains a Class Jul 11 13:55:54 how can I seralize that Jul 11 13:57:38 Is there a convenient download someone can recommend in order to read the Android design guide offline? Jul 11 14:01:05 um, *slaps head* the design doc appears to be included in the android 4.1 documentation. Jul 11 14:08:38 kbs, Where is this documentation? I am new to this Jul 11 14:09:49 Mojito: I ran the "android" app from the sdk, and got it from the android4.1 section Jul 11 14:10:26 (the web-site for the design doc itself is at http://developer.android.com/design/index.html) Jul 11 14:10:37 tnx Jul 11 14:13:44 canadiancow|work it didnt become standard until a few months ago(microsim) Jul 11 14:14:20 forgive me if I don't get the terms correct, I'm still learning java & android. I need to use a component " EditText baseRateEdit = (EditText) findViewById(R.id.editText1);" multiple times within an activity. However, when I declare it in the class, but then try to use it in the method it FC's. Is there not a way to declare this globally, or do I need to declare this in each method? Jul 11 14:14:43 Jug6ernaut so is it actually a "standard" now? Jul 11 14:14:48 are most new devices going to use it? Jul 11 14:15:22 is there a way to make View.draw(Canvas) work on a SurfaceView? Jul 11 14:15:27 it's rendered just black atm Jul 11 14:15:31 canadiancow|work http://www.macrumors.com/2012/06/01/new-nano-sim-standard-approved-40-smaller-than-micro-sim/ Jul 11 14:15:34 fuck the JRN84D build i downloaded wasnt an "official" build :( Jul 11 14:15:35 i would think so yea Jul 11 14:15:39 so now i cant ota Jul 11 14:15:48 and theres no full image available Jul 11 14:16:04 canadiancow|work updae to offical, then get ota? Jul 11 14:16:45 well there is no official version of what i flashed Jul 11 14:16:53 but it doesnt match the technical requirements for the ota Jul 11 14:17:07 my ApplicationsProvider.apk checksum doesnt match what it expects Jul 11 14:17:20 thats why im saying to flash w/e is offical, and then get ota Jul 11 14:17:36 there has to be stock images no? Jul 11 14:17:44 for example. http://pastebin.com/mZfzxgn4 works, but http://pastebin.com/YqXPE2nH does not. Any help would be appreciated. Jul 11 14:17:59 no Jul 11 14:18:03 there dont Jul 11 14:18:08 oh well i'll flsah another rooted 4.1.1 Jul 11 14:18:10 whatevs :) Jul 11 14:18:23 well, there will be custom b4 long lol Jul 11 14:18:58 canadiancow|work gsm or cdma? Jul 11 14:19:00 there's already custom Jul 11 14:19:03 Rescue9: I don't think you can do it globally because the view has not been inflated at that time Jul 11 14:19:03 gsm Jul 11 14:19:22 no love for custom? Jul 11 14:19:32 oh im downloading it now :P Jul 11 14:19:39 xD Jul 11 14:19:41 i mean really, im just waiting for a CM10 nightly Jul 11 14:19:44 Rescue9: part of the reason is that the findView(...) will only work once the onCreate() is called Jul 11 14:19:44 so i dont mind going custom Jul 11 14:19:45 pturner: so I would need to declare it in each method then.... Ok. that's not a problem as long as I know that is how it should work. Wish there way a workaround. Jul 11 14:19:52 adb backup/restore makes it a LOT easier for me to switch roms Jul 11 14:19:55 cm10? Jul 11 14:20:00 * Jug6ernaut perfers aokp Jul 11 14:20:08 Rescue9: not each method, make it a global but instantiate it in on create Jul 11 14:20:23 ^^ Jul 11 14:20:30 took my one x to HTC today for a repair/replace of the screen... got an adb backup first :) Jul 11 14:20:31 kbs: oh... I see. Jul 11 14:20:40 does aokp support song metadata over avrcp? Jul 11 14:20:41 Rescue9 do a little research into "scope" Jul 11 14:20:45 thats really the *only* reason i dont use stock Jul 11 14:20:48 or stock+root Jul 11 14:20:59 pturner: I'll have to research instantiating things.... still new to this Jul 11 14:21:07 canadiancow|work no idea what that is so no idea if it supports it :) ill look tho Jul 11 14:21:11 Jug6ernaut: thanks for the term. now I know what to google for. Jul 11 14:21:38 Rescue9: instantiate is just a fancy word for setting the variable equal to something, sorta. another thing for you to read up on Jul 11 14:21:44 basically for bluetooth audio, it can send the track info (artist, album, song name,etc) to the device Jul 11 14:21:45 canadiancow|work looks like it does Jul 11 14:21:49 so in my car, it will display what its showing Jul 11 14:21:50 ok Jul 11 14:21:59 someone at aokp or cyanogenmod or something needs to fucking submit a patch to AOSP Jul 11 14:22:00 :( Jul 11 14:22:11 i dont udnerstand the bluetooth system well enough or id do it myself Jul 11 14:23:02 * Jug6ernaut has never done any work with bluetooth Jul 11 14:23:02 thanks for the help guys... least I know where to start searching. :-D Jul 11 14:26:50 in everyones opinion, which do you perfer, one workspace multiple projects(applications) or workspace per applicaton Jul 11 14:27:28 ive generally had one big workspace, but as my applications start to span multiple projects im considering splitting them into seperate workspaces Jul 11 14:27:42 one workspace multiple projects, just close projects when not working on them Jul 11 14:27:56 lets me grab files from other projects with less of a hassle if i need to Jul 11 14:28:04 definitely Jul 11 14:28:04 true Jul 11 14:28:16 but it does get hectic Jul 11 14:28:41 i mean my main workspace has some 20~ projects :\ Jul 11 14:28:47 but that closed project icon is at least easy to differentiate between the projects i'm working on Jul 11 14:29:22 * kbs lives in emacs, so one workspace for everthing. I guess. Jul 11 14:29:37 yea I was about to say, I'm assuming eclipse Jul 11 14:31:51 ok i just flashed 4.1.1 Jul 11 14:31:52 i think i just need to clean out old projects Jul 11 14:31:56 hopefully i can answer my phone now :) Jul 11 14:32:02 lucky u Jul 11 14:32:06 haha Jul 11 14:32:21 i was experiencing a bug where the touchscreen would stop working when the phone was ringing Jul 11 14:32:25 so i couldnt answer unless i had a headset Jul 11 14:32:26 :P Jul 11 14:32:30 xD Jul 11 14:32:45 i had a bug like that, execpt it was a bad digitizer :\ Jul 11 14:33:46 gawddammit.. android api calls throwing exceptions left nd right :D Jul 11 14:33:56 about stuff not documented in their respective api docs.. Jul 11 14:34:16 When an author ships native code with their app, do they provide binaries compiled for different architectures or the source code? Jul 11 14:35:17 deadmunt idky they would provide source, binaries if you have device specific native code they will compile binaries for specific arch's Jul 11 14:35:54 wat? Jul 11 14:36:09 Jug6ernaut: Can you re-phrase that. I'm having trouble understanding you. Jul 11 14:36:29 what what do you mean by "provide" like in app? to the user? Jul 11 14:36:45 YES IT WORKS Jul 11 14:36:45 :D Jul 11 14:36:50 xD Jul 11 14:37:18 i can use my phone as a phone again Jul 11 14:37:21 you know whats interesting Jul 11 14:37:23 lol Jul 11 14:37:34 ? Jul 11 14:37:39 no one realizes that in a switch, you can do case 1: { /* code */ } with the braces Jul 11 14:37:46 Jug6ernaut: yeah, when the author sends the 'app' to the google play store. Does it contain binaries of native code or source code of native code (along with of course the java for the app) Jul 11 14:37:47 which allows you to declare variables with the same name in each case Jul 11 14:38:08 deadmund: binaries Jul 11 14:38:13 :\ canadiancow|work snipit required Jul 11 14:38:36 canadiancow|work: thank you Jul 11 14:38:41 switch (x) { case 1: int y = x; break; case 2: int y = x * 2; break; } Jul 11 14:38:46 fails because y was already declared in that scope Jul 11 14:38:57 no one realizes? Jul 11 14:38:58 switch (x) { case 1: { int y = x; break; } case 2: { int y = x * 2; break; } } Jul 11 14:39:02 works, but no one seems to know you can do that Jul 11 14:39:09 * Jug6ernaut does that Jul 11 14:39:19 * moonlightcheese also does. Jul 11 14:39:24 simple scope :P Jul 11 14:39:35 well i'll also give you that in general, the people in this channel whose names i recognize are genreally above average Jul 11 14:39:42 vs the real world, where... well... yea Jul 11 14:39:47 xD Jul 11 14:40:25 well i know that if ppl are anything like my fellow students @ college teh outlook does nto look good :\ Jul 11 14:40:56 * Jug6ernaut typing is fail in the morning :S Jul 11 14:41:27 oh the JB ota has maps 6.9.2 Jul 11 14:41:28 interesting Jul 11 14:41:31 6.9.1 had broken latitude Jul 11 14:42:12 fuck i think 6.9.2 is broken too Jul 11 14:42:13 ppl use latitude? Jul 11 14:42:32 oh no there we go Jul 11 14:42:36 my boss and me have each other latituded Jul 11 14:42:38 i use it :( Jul 11 14:42:48 as long as you only add people you trust, it's awesome Jul 11 14:42:48 lol Jul 11 14:42:53 ^^^ Jul 11 14:43:00 "hey when are you getting here" conversations disappear Jul 11 14:43:17 although they can turn into "i thought you said you were on your way... you're still at home!" Jul 11 14:43:21 or "why are you out with my girlfriend?" Jul 11 14:43:35 manual location mode comes into play :P Jul 11 14:43:41 canadiancow|work: can't you disable active updating anymore? Jul 11 14:43:43 well that defeats the purpose Jul 11 14:43:44 yeah Jul 11 14:43:58 but as someone who doesnt lie to my friends, it works well for me :) Jul 11 14:44:11 he lies Jul 11 14:44:49 and if you don't lie, "i thought you left home" wouldn't be a problem ;) Jul 11 14:45:01 i don't lie Jul 11 14:45:09 not to friends anyway Jul 11 14:45:12 although Jul 11 14:45:25 i am currently a big liar about my pregnancy haha Jul 11 14:45:28 oGMo, neither would "why are you at my girlfriend's" :P Jul 11 14:45:33 Jug6ernaut: i found this yesterday. http://code.google.com/p/asmack/issues/detail?id=59 Jul 11 14:45:38 canadiancow|work: exactly Jul 11 14:45:45 Hi there Jul 11 14:45:53 :) Jul 11 14:46:17 does org.xmlpull.mxp1 exist in android? Jul 11 14:46:37 I doubt it Jul 11 14:46:51 I'm trying to record a front cam video with the android MediaRecorder but am not able to handle the orientation correctly - someone here who could help? Jul 11 14:46:56 hey evancharlton, go update your phone so i can latitude-stalk you Jul 11 14:47:52 hello Jul 11 14:49:39 fuck i wish people wouldnt touch code without running the formatter that is fucking checked into the project in git Jul 11 14:49:50 becuase i make one change, and the diff is >9000 liens long Jul 11 14:50:39 I'm on Eclipse Juno and I'm editing an XML file, whenever I do so (WHATEVER I edit) I get an XML error: build aborted and a file of the same name as that that I'm editing is generated along with a ".out.xml" extension Jul 11 14:50:41 what, the fuck Jul 11 14:52:53 nevermind, it turns out that in Juno whenever you press Run, it runs the actual file that you have open Jul 11 14:52:56 how fucking stupid is that Jul 11 14:53:17 i had that problem a long time ago, but not lately Jul 11 14:53:20 like way back in the day Jul 11 14:53:27 i figured either eclipse or adt had been updated to fix it Jul 11 14:54:28 eclipse 4.2 is a pain with xml files Jul 11 14:54:32 is there any fix? Jul 11 14:55:18 theres an eclipse 4? Jul 11 14:55:19 lol Jul 11 14:55:21 im on 3.7.2 Jul 11 14:55:36 yeah it's a "for girls" edition Jul 11 14:55:49 canadiancow|work: Jul 11 14:55:53 holy shit Jul 11 14:56:03 i swear to god if you message me one more time without actually saying anything other than my name Jul 11 14:56:25 * monsti detects canadiancow|work has a fan! Jul 11 14:56:26 eclipse is the 3rd of the saga Jul 11 14:56:30 wrong chan Jul 11 14:56:37 lol Jul 11 14:56:50 canadiancow|work: why must you abuse me T_T Jul 11 14:56:56 your my idol Jul 11 14:57:00 your so smart Jul 11 14:57:02 you're* Jul 11 14:57:04 Really? That guy? Jul 11 14:57:08 Your idol? Jul 11 14:57:12 thats creepy! Jul 11 14:57:16 also. yea. Jul 11 14:57:17 wtf Jul 11 14:57:31 Is it possible to use the actionbarsherlock theme in an activity not extending any abs classes? Jul 11 14:57:42 Rich787, have you tried it? Jul 11 14:57:55 i was thinking of moving to canada because canadiancow|work is there Jul 11 14:58:02 yes, it works fine in the emulator but the title bar disappears when I load it on a 2.2 phone Jul 11 14:58:04 I need help with fragments Jul 11 14:58:18 wongk: what if his/her nickname is ironic? Jul 11 14:58:26 his* Jul 11 14:58:29 then i'll be a sad panda Jul 11 14:59:00 canadiancow|work: I was wondering if that is supported, since I'm getting inconsistent results. Jul 11 14:59:18 canadiancow|work: why wont you suck my meat?! Jul 11 14:59:20 well if you dont want an actionbar, i probably wouldnt use it Jul 11 14:59:23 evancharlton Jul 11 14:59:24 Rich787: i assume your emulator is 4.0? Jul 11 14:59:33 lov Jul 11 14:59:35 wongk: correct. Jul 11 14:59:47 ctate can do it Jul 11 14:59:47 abs doesn't "do anything" on 4.0 Jul 11 14:59:51 ctate's not here Jul 11 15:00:09 but it's removing the title bar in hope of replacing it with an action bar on 2.x Jul 11 15:00:29 that makes sense Jul 11 15:00:30 wongk: ah.. So if I subclass the abs theme, can I get it to work on pre-4.0? Jul 11 15:00:42 i'd suspect so, can't say for sure Jul 11 15:00:57 wongk: alright I'll try it. Can't hurt. Thanks for the help. Jul 11 15:02:22 what the hell. Jul 11 15:02:54 i try to compile in mxp1 and i get this error: http://pastebin.com/JcW2b1d5 Jul 11 15:03:36 How can I change developing platform from 2.2 to 4 with Eclipse? Jul 11 15:03:44 moonlightcheese, what is mxp1? Jul 11 15:03:52 just curious, anyone tested Project Glass (including ctate) ? Jul 11 15:03:53 http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/ Jul 11 15:03:58 I still want minimumSdkVersion to be 2.2 though Jul 11 15:04:05 that moonlightcheese Jul 11 15:04:11 *thanks Jul 11 15:04:15 Kake_Fisk: click the project properties / android and change the plattfor to 4.0.3 Jul 11 15:04:19 SuD: noone can tell you Jul 11 15:04:20 or they would have to hug you Jul 11 15:04:28 I'll try that Jul 11 15:05:11 hmm,mxp1 is just what i need :) Jul 11 15:06:01 mikedg_ has project glass Jul 11 15:06:16 so just ask him all the questions Jul 11 15:06:52 this XML file is producing a layout that gets eaten up on my Samsung Y, http://pastebin.com/re15yCMJ Jul 11 15:07:35 I...tried everything from putting wrap_content on the LinearLayout's android:height, to removing the android:layout_weight="1" line on all buttons, but it has no effect Jul 11 15:07:48 layout_height Jul 11 15:07:59 height I mean Jul 11 15:08:00 height Jul 11 15:08:16 you want layout_height Jul 11 15:08:20 it still shows only till the ImageView Jul 11 15:08:28 * monsti also has a default height and width Jul 11 15:08:31 and the logo (another ImageView at the top) is half-eaten out Jul 11 15:08:54 I do have that as you can see in the file, canadiancow|work but I misspelled Jul 11 15:12:06 it's the damn images, they're very large Jul 11 15:12:20 although they've all been 32'ed 48'ed etc... Jul 11 15:12:55 nope, they have not Jul 11 15:13:32 There is no problem with using cyanogenmod and android sdk? Jul 11 15:13:38 no... Jul 11 15:13:50 Because it doesn't seem to recognize my device Jul 11 15:13:58 Or I am doing something wrong Jul 11 15:14:29 probably Jul 11 15:15:06 It asks for a 2.2 device :S Jul 11 15:15:15 How can I get it to ask for a 4 device? Jul 11 15:15:17 what is 'it'? Jul 11 15:15:24 Eclipse/Android SDK Jul 11 15:15:34 Kake_Fisk: android is backwards compatible. Jul 11 15:15:37 of course 'it' doesn't Jul 11 15:15:40 it should say anything about a device version Jul 11 15:15:45 Unless you're setting a maxSdkVersion for something (please don't do this) Jul 11 15:15:56 Kake_Fisk: you should be able to just select your device and go Jul 11 15:15:56 I'm just setting a minSDKVersion Jul 11 15:16:12 I'll show you a screenshoot. I just have to restart Android Jul 11 15:16:19 Kake_Fisk: is your device just not showing up or something? Jul 11 15:16:23 please, show us a screenshot. Jul 11 15:16:46 Yeah, and by the way. The app works when I manually install it on the device. Jul 11 15:16:49 do you have usb debugging enabled? Jul 11 15:16:53 yeah Jul 11 15:17:57 Kake_Fisk: for the record, this is still on your wm6.5 phone? Jul 11 15:18:17 yeah Jul 11 15:18:35 But do know that this worked perfectly fine on Gingerbread Jul 11 15:18:40 on my nexus one it seems that the thread scheduler just ignores whatever priority i set Jul 11 15:18:57 so i get the data processing thread completely dominating the core and making the UI unusable Jul 11 15:19:58 wat Jul 11 15:20:15 Kake_Fisk you're trying to install it on wm6.5? Jul 11 15:20:27 No Jul 11 15:20:36 CM on an HD2 Jul 11 15:20:40 yeah Jul 11 15:20:41 ohhhh Jul 11 15:21:01 CM works just like Android. There should be no problem with that, right? Jul 11 15:22:01 Following the android app dev tutorial: http://developer.android.com/training/basics/firstapp/building-ui.html I've made my hello world app, made some changes, and now when I try to adb install bin/my_app.apk I get an error that the app is already installed. Jul 11 15:22:23 Specifically: "Failure [INSTALL_FAILED_ALREADY_EXISTS]" Jul 11 15:22:44 deadmund: "adb install -r" to overwrite Jul 11 15:23:18 Leeds: the tutorial should probably say that. It's very difficult to google. Is there a wiki I can edit? Jul 11 15:25:18 deadmund: probably true, although I guess if you're following the tutorial precisely it might be the first time you've installed? Jul 11 15:25:22 and no, no wiki Jul 11 15:25:47 ah, no - you've already installed it on the previous page Jul 11 15:26:03 Leeds: If you're following the tutorial it is not the first install of that app. The adb command displayed at the bottom of the page is precisely the 1st update (not first install) Jul 11 15:26:05 yeah Jul 11 15:26:16 you can report a doc bug, but don't expect anyone to pay any attention - I reported something similarly small-but-annoying around a year ago... Jul 11 15:26:18 is that stuff open source? Jul 11 15:26:24 or rather Jul 11 15:26:25 is it in git Jul 11 15:27:15 It should be a wiki Jul 11 15:27:31 Also, the large 'physical' keyboard on my emulator does not work :( Jul 11 15:28:04 wiki's are only as good as they are updated, so not Jul 11 15:28:13 deadmund: you probably haven't configured the emulator to use it then Jul 11 15:28:31 the Googs aren't so interested in having random drive-by edits... Jul 11 15:28:37 appel1: I'll google it :) Jul 11 15:29:07 Leeds: +1 Jul 11 15:29:22 canadiancow|work: yes, it's in git Jul 11 15:29:32 Leeds: yes, they are. Send in a patch. Jul 11 15:31:25 evancharlton: not in a wiki sense Jul 11 15:32:09 evancharlton: and do I *really* need to submit a patch for http://code.google.com/p/android/issues/detail?id=15462 Jul 11 15:33:16 ha Jul 11 15:33:40 lol Leeds Jul 11 15:33:55 but to be fair, could you not have submitted a patch just as easily? Jul 11 15:34:16 well, no Jul 11 15:34:51 I've resized them all to their respective pixels..it's still _exactly_ the same (wrong) layout Jul 11 15:34:52 because I'd have to find where in the source that was, generate a patch, sign up for gerrit (right?) Jul 11 15:34:58 My emulator appears to be ignoring the differences between ant debug and adb install -r bin/my_app.apk Do I have to restart the emulator on each update or something? Jul 11 15:35:01 well Jul 11 15:35:02 ok Jul 11 15:35:09 i guess your first submission takes some time Jul 11 15:35:16 but once you've done one, it gets easier Jul 11 15:35:22 UNLESS APPLE BRICKS YOUR FUCKING MACBOOK Jul 11 15:35:25 SO YOU ONLY HAVE WINDOWS Jul 11 15:35:25 T_T Jul 11 15:35:31 Jul 11 15:35:39 ah, well *that* one is easy... no windows, no mac, no brick Jul 11 15:36:26 my macbook (or at least the OS X partition) serves very few purposes ofr me Jul 11 15:36:30 one of which is working with AOSP Jul 11 15:36:38 apple is attacking android from all angles! Jul 11 15:36:44 point is that this is a trivial doc bug, where someone has obviously cut'n'pasted something without checking carefully enough... and there have been multiple updates since then, with no sign that anyone is aware that I reported the bug Jul 11 15:37:21 so I think it's fair to suggest to deadmund that if he reports a similar trivial doc bug, based on my experience it's unlikely to be noticed Jul 11 15:37:40 but he (and you) could also fix it yourselves and submit a patch Jul 11 15:37:42 * deadmund 's ears are burning Jul 11 15:38:06 like i found a bug in the support lib. and i could have just made a zynga support lib with the bugfix that would be used internally Jul 11 15:38:13 but instead i submitted a patch Jul 11 15:38:20 and now everyone has the benefit of the fix Jul 11 15:38:34 and im sure if i had submitted a bug report, nothing would have been done Jul 11 15:38:38 because its fairly unimportant Jul 11 15:38:47 call it a polish thing Jul 11 15:38:49 canadiancow|work++ Jul 11 15:38:50 but it took like 10 minutes to patch it Jul 11 15:38:59 also call it a "nobody is paying me to deal with the source tree" thing Jul 11 15:39:05 plus like 30 because no one at google knows how the merging process works Jul 11 15:39:10 Leeds: that's fair Jul 11 15:39:14 i guess Jul 11 15:39:19 but no one's paying google to make the support lib Jul 11 15:39:20 or docs Jul 11 15:39:30 but Google is paying people to do it Jul 11 15:39:41 and they have to prioritize their time Jul 11 15:39:49 sure they do Jul 11 15:39:55 s/String/Integer/ may be easy to do, but it's also a "who gives a fuck" Jul 11 15:40:08 and my experience shows the time is not prioritised towards making the docs correct and polished Jul 11 15:40:25 which is why you end up with new developers like deadmund getting annoyed because the docs tell him to do stuff which *doesn't work* Jul 11 15:40:28 git submodule innit Jul 11 15:40:40 git help chav Jul 11 15:40:52 whois Leeds Jul 11 15:41:00 * Leeds is Leeds Jul 11 15:41:00 worst stalker move ever Jul 11 15:41:06 lol Jul 11 15:41:11 * evancharlton facepalms Jul 11 15:41:33 hahaha Jul 11 15:41:37 * deadmund is Deadmund Jul 11 15:41:47 * mikedg_ is canadiancow|work Jul 11 15:41:54 how does one change the theme for a layout in the new version of ADT? Jul 11 15:41:54 ctcp violate canadiancow|work Jul 11 15:41:56 erp! Jul 11 15:41:58 I can't seem to find the menu option Jul 11 15:42:21 nm found it, sorry Jul 11 15:42:23 tnzr: it was removed, use the emulator Jul 11 15:43:23 mikedg: I found it Jul 11 15:43:35 it's the little star icon! Jul 11 15:43:49 i dont believe you Jul 11 15:43:52 pics or it didnt happen Jul 11 15:44:27 just kidding, it didn't happen...just keep using the emulator :) Jul 11 15:45:04 dont try to sucker me Jul 11 15:46:18 canadiancow|work: anyway, I agree totally about prioritising, but that's not a good thing Jul 11 15:46:44 they should just hire me or something Jul 11 15:46:52 i'll do at least 1 low priority bug a month Jul 11 15:46:53 i promise Jul 11 15:47:48 i'd +1 your resume if i could Jul 11 15:48:18 yea im sure a reference from you would make them skip the whole process Jul 11 15:48:20 if one were a cynic, one might comment on the beautiful new design of the developer site, which has known and unfixed errors on it... Jul 11 15:48:30 i hate the design Jul 11 15:48:32 800px wide Jul 11 15:48:33 or 1024 Jul 11 15:48:34 or whatever Jul 11 15:48:36 ARGH Jul 11 15:48:41 canadiancow|work: you can make it wider Jul 11 15:48:56 is there an option to revert to the old design? Jul 11 15:49:00 no Jul 11 15:49:07 how do i make it wider Jul 11 15:49:17 people complain when we update Android and they don't get updates Jul 11 15:49:20 except for using the local copy stored in the SDK and never ever upgrading SDK again Jul 11 15:49:25 we update the website and they want the old version Jul 11 15:49:28 canadiancow|work: at the bottom where it says "Use Tree Navigation" there's a hieroglyph like >| |< Jul 11 15:49:36 that means "this shit be skinny; click to toggle" Jul 11 15:49:51 i see no "use tree nav" Jul 11 15:49:59 http://developer.android.com/reference/packages.html Jul 11 15:50:10 oh on the reference its fine Jul 11 15:50:13 http://developer.android.com/index.html Jul 11 15:50:16 it's only for the reference bits, I think. (uh-oh fragmentation!111) Jul 11 15:50:16 but everywhere else Jul 11 15:50:21 who cares? Jul 11 15:50:21 YO Jul 11 15:50:24 THERE ARE THREE JELLYBEANS Jul 11 15:50:26 ONE FOR PHONES Jul 11 15:50:31 canadiancow|work: hahah Jul 11 15:50:31 ONE FOR SEVEN INCH TABLETS Jul 11 15:50:34 AND ONE FOR TEN INCH TABLETS Jul 11 15:50:37 LIKE WTF Jul 11 15:50:40 GOOGLE IS FRAGMENTING ANDROID Jul 11 15:50:42 WAY TO GO GUYS Jul 11 15:50:50 * canadiancow|work goes to iOS because of this Jul 11 15:50:53 canadiancow|work: ... there is one, afaik... just you get a new size? Jul 11 15:51:05 no Jul 11 15:51:06 theres three Jul 11 15:51:13 take a 4 inch, 7 inch, and 10 inch Jul 11 15:51:16 and compare them Jul 11 15:51:19 three different Jul 11 15:51:19 !!! Jul 11 15:51:29 evancharlton link article plz Jul 11 15:51:29 :) Jul 11 15:51:31 p_l|backup: he's referring to this dumb article on androidpit.com yesterday Jul 11 15:51:35 also, a different one completely for the Note Jul 11 15:51:38 and Google TV Jul 11 15:51:39 and the Q Jul 11 15:51:46 note doesnt count Jul 11 15:51:47 (heh, the Q) Jul 11 15:51:53 p_l|backup: http://www.androidpit.com/android-jelly-bean Jul 11 15:51:55 Q should ahve a baby with GTV Jul 11 15:52:51 ,oO( Google TV = https://gallery.op-co.de/d/1392-2/IMG_20120313_160015.jpg ) Jul 11 15:53:16 anyway, Google sucks Jul 11 15:56:34 Is anyone else having issues with eclipse juno? Jul 11 15:57:12 i have had 0 issue with it, probably because i'm using indigo :P Jul 11 15:57:37 I am getting "java.lang.ArithmeticException: divide by zero" in the internal class SyncHandlerThread whenever my Sync Adapter begins to sync, causing my emulator to crash and restart Jul 11 15:57:46 (unrelated to juno) Jul 11 15:59:10 In the second code box I'm instructed to add the sendMessage function to my activity class. However, when I ant debug I get "cannot find symbol" View that is the first View (the type) Jul 11 15:59:19 On this page: http://developer.android.com/training/basics/firstapp/starting-activity.html#RespondToButton Jul 11 15:59:20 Is it possible to wear out an sd card? Jul 11 16:00:09 Kake_Fisk: They are flash memory and as such have a limit amount of writes. It takes a LOT of writes to wear it out though. There is an issue regarding this and ssd drives because many OS's write to log files and such constantly Jul 11 16:01:04 I've used the sd card quite excessive. And it starts to act weird. And I've had problems with it lately. Jul 11 16:01:50 deadmund: erm... have you imported View? Jul 11 16:02:49 Leeds: nope! Tutorial didn't mention that. What is the line? import android.View ?? Jul 11 16:03:00 "Tip: In Eclipse, press Ctrl + Shift + O to import missing classes (Cmd + Shift + O on Mac)." Jul 11 16:03:18 ahhh, I'm cli so I didn't register that. Thanks :) Jul 11 16:04:24 I'm having a problem in my WebView... I want a web link to open up a secondary app, and then I want the javascript to open up a different web page. Jul 11 16:05:11 The problem, is that onSaveInstanceState and onStop fire when my browser app goes to the background, so no javascript reloads or redirects are fired. Jul 11 16:05:50 Everything in the WebView is apparently frozen while the secondary app comes up. Jul 11 16:06:13 Is there a way to allow my WebView to work in the background while the app launches? Jul 11 16:06:44 Kake_Fisk: it could totally be going bad. Just buy a new one for $20 Jul 11 16:07:12 Everything about "firing the app and moving along" works well in the stock Android Browser, but the custom WebView does not... Jul 11 16:07:20 Would I get a class 10, 8gb for that? Jul 11 16:07:35 I don't think so in Norway, at least :| Jul 11 16:08:44 i bought an awesome one from amazon when they had a sale on Jul 11 16:08:54 $30 for a really high speed 32GB Jul 11 16:08:59 then it arrived Jul 11 16:09:05 and i realized the galaxy nexus doesnt have a microsd slot Jul 11 16:09:06 :) Jul 11 16:09:06 What the heck package do I need? android.view, android.View, android.view.OnClickListener, android.View.OnClickListener are all unknown symbols Jul 11 16:09:15 lol Jul 11 16:10:05 deadmund: if you're going to live in the cli, you're going to need to get good at navigating the reference docs Jul 11 16:10:45 lov: http://kakefisk.webatu.com/misc/imagebin/uploads/wah.png Jul 11 16:10:48 that's got nothing to do with a CLI, everyone needs that Jul 11 16:10:50 Leeds: http://developer.android.com/reference/android/view/package-summary.html ?? That's what I'm looking at but the packages it claims exist are giving me 'unknown symbol' error. Where should I be looking? Jul 11 16:11:06 you should be putting 'View' into the bloody search box? Jul 11 16:11:25 Kake_Fisk: what does adb devices report? Jul 11 16:11:58 What do you mean by that? Jul 11 16:12:01 Oh, the command? Jul 11 16:12:05 yes Jul 11 16:12:10 I'll try Jul 11 16:12:20 Can I do it from eclipse by the way? I always do it from cmd Jul 11 16:12:24 Leeds: Well, that did work. But I don't know why searching for view and browsing the thing on the left are different Jul 11 16:12:41 Leeds: thanks Jul 11 16:12:47 they're not, but if you don't know the way the Android APIs are laid out, browsing for something is going to be frustrating Jul 11 16:12:48 How do you get a WebView to keep running javascript in the background, once the app has lost focus? Jul 11 16:13:18 Kake_Fisk: If your device isn't showing up there, it's not being noticed by DDMS at all. Jul 11 16:13:33 Kake_Fisk: if the version number wasn't valid, it'd just have a red X next to it instead of a green checkmark. Jul 11 16:14:07 and the red X is pretty much useless Jul 11 16:14:21 because you get that any time the device is less than the targetSDK Jul 11 16:15:01 It didn't return any devices Jul 11 16:15:03 adb devices Jul 11 16:15:07 there you go Jul 11 16:15:18 Maybe I'm asking the wrong question.... Jul 11 16:15:18 That's the root of your problem. Jul 11 16:15:24 Yeah, nice Jul 11 16:15:27 is usb debugging enabled? Jul 11 16:15:33 I'll check again Jul 11 16:15:36 lov: not the root Jul 11 16:15:58 "Android debugging enabled" Jul 11 16:15:59 time for some good ole RCA? Jul 11 16:16:06 Kake_Fisk: http://developer.android.com/tools/device.html Jul 11 16:16:10 follow those instructions. Jul 11 16:16:13 Kake_Fisk: has the device ever worked? Jul 11 16:16:22 it's not sufficient to copy the apk to the device and then install it on the device. Jul 11 16:16:22 I know a WebView can detect when it is LOSING focus, but is there a function I can override to detect when I have REGAINED focus? Jul 11 16:16:33 Not the current one. But when I had gingerbread, it worked Jul 11 16:16:55 so the device has worked or not? Jul 11 16:17:01 im talking about hardware Jul 11 16:17:46 Hardware works fine Jul 11 16:18:21 wongk: no, Kake_Fisk has never got USB debugging working since he upgraded to an unstable release of cyanogenmod on his HD2 Jul 11 16:19:13 Kake_Fisk: we don't care whether it worked on some previous flashed rom. Jul 11 16:19:18 what we care about is "does this work now" Jul 11 16:19:21 if no, solve THAT problem. Jul 11 16:19:56 Err, I said it doesn't work. That's why I need help :S Jul 11 16:21:10 Kake_Fisk: http://developer.android.com/tools/device.html Jul 11 16:21:12 wongk: I would use indigo if arch still had it... might just manual downlad it and run it out of a folder xD Jul 11 16:21:15 have you followed these instructions? Jul 11 16:21:22 If you're using windows, are you sure you're using the right ADB driver? Jul 11 16:21:35 If you're using linux, try adb kill-server; sudo adb devices Jul 11 16:21:56 I'll do that, but right now, I have to go. Thanks for the help though Jul 11 16:23:47 cythes: i don't use eclipse from the package manager Jul 11 16:24:03 What does the m in mReceiver reference? Jul 11 16:24:21 member Jul 11 16:24:23 it is just a variable name, but it is a consistent standard I am seeing in naming convention. Jul 11 16:24:57 Why member? Jul 11 16:25:05 er Jul 11 16:25:09 because it's a member? Jul 11 16:25:16 non public, non static right? Jul 11 16:25:43 that may or may not be relevant Jul 11 16:25:44 Just so you know the scope really? Jul 11 16:25:48 http://stackoverflow.com/questions/2092098/why-most-of-android-tutorials-variables-start-with-m Jul 11 16:25:52 these are code style questions Jul 11 16:26:08 http://source.android.com/source/code-style.html#follow-field-naming-conventions Jul 11 16:26:16 All right, forget WebViews. That obviously a banned discusion topic here. Is there a function that I can override that will tell me when my app has regained focus? Jul 11 16:26:35 Jonathan_Eyre: app Jul 11 16:26:37 er Jul 11 16:26:44 app's don't have focus, activities do Jul 11 16:26:49 onResume Jul 11 16:26:53 Jonathan_Eyre, yeah, just use the lifecycle and check the activity onResume. Jul 11 16:27:13 Jonathan_Eyre: use onResume in your activity. if your view needs to know, you can override it and put something in onWindowFocus or something Jul 11 16:27:23 http://developer.android.com/reference/android/app/Activity.html Jul 11 16:28:08 So, when they see the list of recent apps, and click my running app in the list, my app is not regaining focus? I guess it's really just becoming the top-running in the list? Jul 11 16:28:29 In either case, it sounds like onResume is what I need to look into. Jul 11 16:28:33 So I have an application that pulls information from a REST service, is it wise to use a sql lite database to store that data in case of loss of internet or is there a better way? Jul 11 16:29:22 Jonathan_Eyre: you need to understand the difference between APPLICATION and ACTIVITY Jul 11 16:29:36 you're generally working at the ACTIVITY level. Jul 11 16:29:49 Your APPLICATION may have multiple ACTIVITIES Jul 11 16:30:20 Or at the FRAGMENT leve, Applications contains ACTIVITES contain VIEWS OR (FRAGMENTS contain VIEWS). Jul 11 16:30:21 there's no method that tells you whether your APPLICATION has focus, only methods that tell whether ACTIVITIES or Views do Jul 11 16:30:37 This is a very important concept to understand, so please make sure that you do. Jul 11 16:30:43 Most people think Application == Activity Jul 11 16:30:45 which is NOT true. Jul 11 16:31:09 The Application has no life cycle. Only Activities do, multiple activities make up an application. Jul 11 16:31:22 Or a single activity, but usually more. Jul 11 16:31:48 Snicers-Work2: does this web service provide some way to "reconcile" your local data? Jul 11 16:32:28 and is offline use a concern Jul 11 16:32:36 I would have to build that in, I assume you mean that if I rejoin the internet it merges data nicely? Jul 11 16:33:05 it basically measn the web service speaks in changes Jul 11 16:33:09 Offline use is definatly a concern, this app is intended to be used away from home or work where internet is unpredictable. Jul 11 16:33:17 since the date and time, how has the data changed Jul 11 16:34:06 I am probably going to use a hash to check if the database information has changed and push new info that way, the user will not be able to write any changes to the remote DB, at least not initally. Jul 11 16:34:14 this means your local copy source of record and is simply updated based on what the web service send you Jul 11 16:34:51 But I should use sql lite for this yeah? Jul 11 16:34:57 yes Jul 11 16:35:16 ok, I can work on the logic of merging and exception handeling from there then. Jul 11 16:35:19 Thanks wongk Jul 11 16:36:26 Snicers-Work2: technically Applications do have lifecycles, (they have onCreates) but you have to actually specify the application, etc. Jul 11 16:36:43 is there a simple way to charge a user's credit card / Android account every time they click a button on my app? Jul 11 16:37:03 without having them need to confirm the charge every time Jul 11 16:37:07 yes, Applications are also created and killed by android Jul 11 16:37:30 mysteronyx, absolutly not, every transaction needs confirmation, every time. Jul 11 16:37:33 mysteronyx: sounds like a great app Jul 11 16:37:35 mysteronyx: ha, you're funny Jul 11 16:38:24 Otherwise you are scamming them out of money. Yes, even if they agreed to the terms of service that no one reads. Jul 11 16:38:37 they know before clicking that they're paying Jul 11 16:38:47 mysteronyx, How do they know? Jul 11 16:39:04 because right next to the button is a message saying "this item costs $x" Jul 11 16:39:19 and what happens why i accidently graze my finger over the button Jul 11 16:39:31 mysteronyx, they still need to agree to the charge, it is a double confirmation step that keeps you out of court. Jul 11 16:39:34 ok Jul 11 16:39:43 short answer is no, and there's really no discussion to be had Jul 11 16:39:55 * Added leeds!*@* to ignore list Jul 11 16:40:05 (: Jul 11 16:40:06 Snicers-Work2 ok thanks Jul 11 16:40:14 mysteronyx, why not have a shopping cart? Jul 11 16:40:18 * Added mysteronyx to kick list Jul 11 16:40:20 Snicers-Work2 I could perhaps Jul 11 16:40:23 rofl Jul 11 16:40:46 mysteronyx, that is what I would do, so you can charge in bulk. Jul 11 16:41:13 Snicers-Work2 the nature of the app is like a slot machine in a sense (except the items they're winning are worthwhile). everytime you pull the lever, it charges you and gives you an item Jul 11 16:41:27 wow Jul 11 16:42:27 so I could make a shopping cart.. I just have to decide how I want to do this. Perhaps I could have people buy credits that they can use to purchase items Jul 11 16:42:45 mysteronyx, have them purchase in app coins in bulk Jul 11 16:42:53 ^^ Jul 11 16:43:09 i'll take a dozen! Jul 11 16:43:10 bear in mind, if you're using Google Play, the user is going to get redirected from your app to a Play interface to verify the purchase request. Jul 11 16:43:13 mysteronyx, They purchase 100 coins for 10 bucks or something, then they use those coins, once they are out, or at any time, they can purchase more. Jul 11 16:43:25 good idea, Snicers-Work2 Jul 11 16:43:31 lov yea that's what I want to avoid Jul 11 16:43:37 i consider writing an app where you can upload pics and chat to friends - maybe facebox would be a nice name? Jul 11 16:43:39 mysteronyx: don't. Jul 11 16:43:42 you are incredibly scummy if you do. Jul 11 16:43:48 is spring-amqp android-compatible? Jul 11 16:43:58 mysteronyx, that is how it has been done before. Just use the tools provided. Jul 11 16:44:11 lov it's for practical purposes. I wouldn't want to have to go to the google play every single time I use this app Jul 11 16:44:19 Snicers-Work2 ok thanks Jul 11 16:44:31 mysteronyx: it's ok to not want them to go to play every time they use the app, but you DO want them to go to play every time they're paying money. Jul 11 16:44:39 hmm Jul 11 16:44:53 If you want to bulk charge them for 500 "gems" or whatever the hell, that's one approach Jul 11 16:44:55 lov so the work-around is what Snicers-Work2 said: have them pay upfront once for coins Jul 11 16:45:01 basically. Jul 11 16:45:20 I'm certainly not trying to scam anybody, but I do want it to be as simple as possible. Jul 11 16:45:45 That's fair, but you want to be explicit about charging people money. It needs to be a deliberate action that can't be fat fingered. Jul 11 16:45:49 mysteronyx, using the play store for purchases is the simplest way to authorize payments. Jul 11 16:46:08 ok cool Jul 11 16:46:14 lov yea Jul 11 16:46:26 mysteronyx, and people know that it is official, not some possible scam or ploy. Jul 11 16:46:33 ^^ Jul 11 16:46:34 true Jul 11 16:46:42 see http://developer.android.com/guide/google/play/billing/index.html if you haven't already Jul 11 16:46:52 thanks Jul 11 16:46:55 bear in mind that the Play T&C means that you need to use their in-app billing. Jul 11 16:48:40 also, 30% fee... but you're ignoring me? Jul 11 16:49:11 hmm Jul 11 16:49:21 lov what is the consequence of using their in-app billing? Jul 11 16:50:09 lov, need some help Jul 11 16:50:23 although I had asked the question earlier but didn't get much help :P Jul 11 16:53:07 Another question: Instead of having people create a user account, can I just keep track users based on a unique Android ID? So, say John buys 100 credits, can I just add his unique ID to a database that stores his # of credits? Jul 11 16:53:28 hi. how can I get the IMEI number of my android phone? Jul 11 16:53:34 or will I have to set up a login system Jul 11 16:53:50 Galaxy Nexus - There used to be a "temporary root" for 4.0.2, is there anything equivalent for 4.0.4? Jul 11 16:54:01 executeOnExecutor for api level 10 .how to do that? Jul 11 16:54:02 neilalexander: you want #android-root Jul 11 16:54:10 i need to use my own custom executor Jul 11 16:54:21 Leeds: Thanks Jul 11 16:54:39 superlinux-hp: http://developer.android.com/reference/android/view/View.html#q=imei Jul 11 16:54:44 ok Jul 11 16:54:47 thaks Jul 11 16:57:20 nevermind I think I answered my own question Jul 11 17:01:46 Uhm. How do one use the same xml layout file for different fragments? Mine keeps overriding eachother Jul 11 17:03:34 and with that i mean the first tab gets the last tabs data and the rest gets nothing Jul 11 17:08:49 the android hangout today looks like it could be interesting, but the questions posted so far are... not intelligent Jul 11 17:09:50 Is Android a Linux? Jul 11 17:10:00 well not that bad :P Jul 11 17:10:05 but like "how do i add a jar to libs" Jul 11 17:10:29 like how often do you get romainguy in a hangout answering your questions... and you're going to waste it on that stuff? :( Jul 11 17:11:24 Well obviously they see It's a google hangout and they think it means "stuff you'd ask google" Jul 11 17:12:12 oo, i want to ask him how to change the starter in my 85 el camino Jul 11 17:13:25 i asked a question in a hangout once, and the answer i got was a cross between "i dont know" and "i dont think you can do that" Jul 11 17:13:29 :( Jul 11 17:14:05 what is this hangout you speak of Jul 11 17:14:06 remember that time you didn't ask a question? lols were had. Jul 11 17:14:13 T_T Jul 11 17:14:14 https://plus.google.com/108967384991768947849/posts/DBh784QLqHQ Jul 11 17:14:17 wongk: ^ Jul 11 17:14:41 one time i joined a hangout, just to listen Jul 11 17:14:53 and one of the guys was like "oh someone just joined. scott, do you have a question?" Jul 11 17:14:58 and i didnt have a mic hooked up or anything Jul 11 17:15:14 sociallyawkwardcanadian.jpg Jul 11 17:15:22 hah Jul 11 17:16:53 would it be possible to pull the camera app from the S III and use it on my Galaxy Nexus? Jul 11 17:17:13 highly unlikely Jul 11 17:17:22 :/ Jul 11 17:17:28 oh well Jul 11 17:17:33 but you can definitely try it Jul 11 17:18:06 it probably requires touchwiz garbage, though Jul 11 17:18:21 what I did was put it on my phone and try to install it, but that didnt work, wouldent install. Then i tried to dump it in my system apps folder and reboot and then run it and that didnt work :/ Jul 11 17:21:04 hmm, i think i might know what's broken with this build system now Jul 11 17:21:08 * jasta continues to debug Jul 11 17:22:11 no source code? Jul 11 17:22:50 seion: why do you wantt o do that? Jul 11 17:23:19 because looks like the camera app for the s III has more features Jul 11 17:23:28 which features do you want Jul 11 17:23:33 a lot of features are in hardware Jul 11 17:23:54 my friend has it and he had like a bar on the side where he could drag and drop different camera options to use quickly when needed Jul 11 17:37:33 Hi, I'd like to run an app in Eclipse in Debug Mode and want the emulator to stop at an enabled breakpoint. Is this at all possible? (I am developing an IME and it is not working for me) Jul 11 17:37:59 rretzbach: yes, as long as you're attached to the appropriate process. Jul 11 17:38:24 Just click the bug to start in debug mode, or click the little bug when selecting the process name in the "devices" tab in DDMS view. Jul 11 17:38:28 "At an IO session, a new version of the support library was discussed that would add support for the ActionBar. Is there a general estimate when this will be released?" Jul 11 17:38:32 i do not remember that Jul 11 17:39:13 lov: So it doesn't work exactly the same as for Java-Programs? Jul 11 17:42:23 rretzbach: I'm not sure what you mean. Jul 11 17:42:28 There is already backwards support for the action bar from a third party canadiancow Jul 11 17:42:39 The typical flow is that you set your breakpoints, and then press the little "bug" icon next to the "run" icon to start your app with the debugger. Jul 11 17:42:41 you're not answering my question Jul 11 17:42:42 http://actionbarsherlock.com/ Jul 11 17:42:50 If you want to ATTACH the debugger to an already existing process, you can, using the process I said. Jul 11 17:42:51 what i quoted is a question posted to an android hangout Jul 11 17:42:52 I don't know the answer, just trying to help you. Jul 11 17:42:53 my shareActionProvider dropdown is going off the screen on the right side...is there a way to align it or set some allignment properties? Jul 11 17:42:53 i want to know if thats true Jul 11 17:43:03 actionbarsherlock is great! Did you know apple came up with something called Sherlock back in the day too? Jul 11 17:43:07 is google putting it into the support lib Jul 11 17:43:20 I don't know what the workflow for an IME would be; I figure that you should be able to attach the debugger, but it's possible that your process is getting killed without you noticing. Jul 11 17:43:33 yeah they had it back in the 90s on OS 9 Jul 11 17:43:43 my shareActionProvider dropdown is going off the screen on the right side...is there a way to align it or set some allignment properties? Jul 11 17:44:08 You're not the woz >:( Jul 11 17:44:21 * wozniack strokes his neckbeard in contentment Jul 11 17:44:25 you're not the lov either, but i'm not complaining Jul 11 17:44:37 touche. Jul 11 17:45:04 sjobs: have I met you somewhere before? Jul 11 17:45:19 your name looks familiar.... Jul 11 17:45:37 wozniack: just remember, i'm number one Jul 11 17:45:44 lov: I got it, thanks to you. I never really thought about the DDMS perspective. Pressing the little bug was the missing piece. When debugging java programs you don't have to choose processes or threads. That's why I didn't thought of it. Jul 11 17:46:11 sjobs: i mean, if you want it man... can i be number zero? Jul 11 17:46:14 cam i use android TTS with korean language? Jul 11 17:46:34 i'm number zero, you're number one Jul 11 17:46:36 brx_: probably not very well. Jul 11 17:46:48 sounds good! Jul 11 17:47:00 why do people ask questions like "will calling doSomething(null) throw a NPE?" when you could just try it yourself T_T Jul 11 17:47:12 wozniack: are you THE woz? Jul 11 17:47:26 lov: it works with english fine, the code is cool...when i set Locale.korea and try the app with this string "숨쉬다" it says "i get not supported" Jul 11 17:47:41 woz died in october last year, pay a little respect jeese Jul 11 17:47:45 it says "language not supported" Jul 11 17:48:16 * wozniack munches on a cheeto, half of it falls out of his hand and onto his vast and well-groomed neckbeard. The crumbs settle like orange snowflakes in an english countryside Jul 11 17:48:17 is there an easy way to make a listview that has the scrollbar at the right edge of the screen, but all content has a padding of 10dp? Jul 11 17:48:27 heaven has another angel on a segway Jul 11 17:48:47 brx_: that's very likely. the TTS engine needs to have appropriate data for each locale to pronounce words properly. Jul 11 17:49:55 mikedg_: yeah man, checkin' out this android stuff. Looks neat! Jul 11 17:50:49 wozniack, i thot u were all aboard the iTrain? Jul 11 17:51:01 ban these iphone fanbois Jul 11 17:51:09 canadiancow|work: can't you just add padding in the xml? Jul 11 17:51:10 mikedg_: u man? Jul 11 17:51:13 Hey now, I love jelly beans Jul 11 17:51:21 in the xml for what? Jul 11 17:51:31 if i add it around the listview, then the scrollbar isnt at the rigth edge Jul 11 17:51:39 oh I see. Jul 11 17:52:03 add padding in the adapter Jul 11 17:52:34 add a listview with wrap_content and then put it in a scrollview Jul 11 17:52:37 can you put the listview/scrollbar inside of a linear layout that wraps the content Jul 11 17:52:39 and put the padding around the listview Jul 11 17:52:53 Rich787, that pads the scrollbar too Jul 11 17:52:56 i need it around each row Jul 11 17:53:05 but i have a bunch of different layouts for the different types of views Jul 11 17:53:06 so add it around each row Jul 11 17:53:13 yea ^ Jul 11 17:53:31 some of which have different padding (or its actually margin in this case) Jul 11 17:53:47 Some of the jelly beans are disgusting tho Jul 11 17:53:56 Like the brown ones Jul 11 17:53:58 have zynga hire me and i can solve your problem Jul 11 17:54:00 yeah Jul 11 17:54:00 so make a custom listAdapter that applies different padding in those cases Jul 11 17:54:29 doesn't zynga have really crappy ethics? Jul 11 17:54:45 ok thanks lov Jul 11 17:54:54 i dont know about ethics, but they have really crappy stocks Jul 11 17:55:01 zing! ... ga Jul 11 17:55:07 sigh Jul 11 17:55:08 * canadiancow|work quits Jul 11 17:55:09 but if they are hiring, ill make the jump :) Jul 11 17:55:14 we're hiring Jul 11 17:55:15 birbeck: nice Jul 11 17:55:28 lov? Jul 11 17:55:32 i have really shitty ethics Jul 11 17:55:37 so i think id be a perfect fit for vp level Jul 11 17:55:43 heh Jul 11 17:56:02 13:55:03 < birbeck> i dont know about ethics, but they have really crappy stocks Jul 11 17:56:31 what do you guys think about the ouya? Jul 11 17:57:00 it has a funny name Jul 11 17:57:03 it has a stupid name and is going to never sell in a brick and mortar store Jul 11 17:57:14 lov: https://www.google.com/finance?client=ob&q=NASDAQ:ZNGA Jul 11 17:57:18 "I have bought a new computer that is Windows x64 bit and Eclipse will not open and the tools in the Android SDK do not work. What should I do." Jul 11 17:57:21 birbeck :( Jul 11 17:57:30 birbeck: .... I got the joke. Jul 11 17:57:33 it has a stupid name like wii, yeah Jul 11 17:57:44 people know how to pronounce wii Jul 11 17:58:11 Nintendo made the wii Jul 11 17:58:14 people know nintendo Jul 11 17:58:16 there aren't any words in english that have ii, are there? Jul 11 17:58:27 Hawaii? Jul 11 17:58:49 who wants to play some duck hunt, yo? Jul 11 17:59:01 is it possible to make it so when a user opens my app, it automatically detects their Android account and retrieves that account's data from my database? As opposed to having them log in Jul 11 17:59:16 mysteronyx: thats pretty fucking open to hax0rs Jul 11 17:59:18 sure Jul 11 17:59:37 lots of apps don't require you to login Jul 11 17:59:37 pnkbst: http://dictionary.reference.com/browse/aalii Jul 11 17:59:44 in fact, most apps that have a login Jul 11 17:59:53 evancharlton: cmon, that doesn't count. Jul 11 18:00:05 otherwise I'd be ecstatic that "Mother-in-law-tongues" was an english word Jul 11 18:00:07 (instead of a name) Jul 11 18:00:07 because it's hawaiian? Jul 11 18:00:46 skiing Jul 11 18:00:47 Do I have to compile (ant debug) to see changes in xml files? Jul 11 18:00:55 http://answers.yahoo.com/question/index?qid=20080529142338AANz1bw Jul 11 18:01:07 deadmund: of course Jul 11 18:01:07 wait.. does that mean wii is pronounced wee-ee? Jul 11 18:01:14 wongk: thanks Jul 11 18:01:38 yes Jul 11 18:02:01 Is there a way to show the keyboard ONLY if the hardware keyboard isn't present/being used? Jul 11 18:02:21 hwrd|work: thats pretty standard Jul 11 18:02:30 the thought did occur to me when looking at the ouya - why not just buy a hdmi adapter for my android... save $95, and I would have it right now instead of next march Jul 11 18:02:45 because noone makes games that use a controller Jul 11 18:02:53 theres like 5 controller based games Jul 11 18:02:58 mikedg_: Pretty standard as in inputManager.show(soft input always visible)? Jul 11 18:03:04 or whatever the constant is? Jul 11 18:03:07 mikedg how is it open to hackers? Is it possible for hackers to mimic a google account on a phone? Jul 11 18:03:26 mysteronyx: are you using app engine? Jul 11 18:03:48 I don't miss controllers that much personally, although I did just buy the icade mobile controller Jul 11 18:03:50 mikedg not sure what that is Jul 11 18:03:58 I'm using Eclipse Jul 11 18:04:16 so basically what you plan to do is see, oh users account is monkeytits@gmail.com, send monkeytits@gmail.com to my server and they are logged in Jul 11 18:04:18 right? Jul 11 18:04:57 sort of Jul 11 18:05:23 ok, what if their password was changed because the phone was lost, they arent really logged in anymore but their account is still present Jul 11 18:05:35 pnkbst: ive done that with my evo, an hdmi cable and a bluetooth controller Jul 11 18:05:38 what if i make a build of android that lets me specify what account names to return Jul 11 18:06:20 mikedg yeah I see. So I should have them first log in to their google accounts before using the app Jul 11 18:06:26 you need an auth token to make that work Jul 11 18:06:33 generated by your web service Jul 11 18:06:41 mysteronyx: do you have a webapp already? Jul 11 18:06:50 short of using google App Engine, and doing some trickery to get app engine auth token on the device by letting the user select an account, it's not a secure way Jul 11 18:06:53 mikedg I'm making one right now. I'm at the billing part Jul 11 18:07:04 are there any alternate Text to speach libraries for android? Jul 11 18:07:13 I made one via Eclipse. I'll have to look at App Engine I guess Jul 11 18:07:24 if you get to a point where you are letting the user log in to your web app with a google account, then you are on track Jul 11 18:07:31 ok cool Jul 11 18:07:31 alternatively you can get a google auth token on the device, send it to your service, and have your service verify it with google Jul 11 18:07:47 wongk and that way they wouldn't have to manually log in each time they open the app? Jul 11 18:07:55 correct Jul 11 18:07:57 wongk: is that doable with anything? or do you need the app engine component to do verification? Jul 11 18:08:02 i havent done login crap in a while Jul 11 18:08:17 app engine is not involved Jul 11 18:08:23 oh ok Jul 11 18:08:26 auth tokens work across all gogle services Jul 11 18:08:32 then follow wongk and forget anything i said with app engine Jul 11 18:08:37 they are obtained from AccountManager Jul 11 18:08:58 ok cool Jul 11 18:09:07 you just need to verify that google has a public web service for verifying an auth token Jul 11 18:09:25 wongk do you know of any tutorials that discuss auth tokens? Jul 11 18:09:39 OAuth is the technology Jul 11 18:09:47 ah ok I used to use that for a forum I made Jul 11 18:10:02 http://www.toxicbakery.com/android-development/getting-google-auth-sub-tokens-in-your-android-applications/ Jul 11 18:10:07 that might help on the anroid side Jul 11 18:10:12 thanks Jul 11 18:10:14 it looks vaguely familiar Jul 11 18:10:46 the user only has to give your app access to their google account Jul 11 18:11:10 but you should consider, they might not want to do that Jul 11 18:11:15 my app is extremely simple in nature. I want people to open the app, purchase credits, and then spend those credits on by clicking on different items in the app. I also want it to show the user how many credits they have. That's pretty much it Jul 11 18:11:27 "why the f' does this thing want access to my google account?!" Jul 11 18:11:58 why would i want to purchase credits Jul 11 18:12:17 also: when you request an auth token, it has to be for a particular google service Jul 11 18:12:18 why wouldn't you? Jul 11 18:12:28 mikedg because the things you can buy are amazing Jul 11 18:12:29 like, gmail, or picasa Jul 11 18:12:36 ok Jul 11 18:12:40 are they all on my phone? Jul 11 18:12:44 yeah Jul 11 18:12:48 sort of Jul 11 18:13:08 they're basically blueprints for various designs Jul 11 18:13:29 I'm merely using the app environment to sell them. Jul 11 18:14:13 mikedg if anything it'll be an interesting experiment to see if I can get people to purchase the designs Jul 11 18:14:22 first thing's first, I need to actually finish the app Jul 11 18:14:26 mysteronyx: are you a android dev noob? Jul 11 18:14:32 yeah I started yesterday afternoon Jul 11 18:14:43 I've made websites but am new to app dev Jul 11 18:14:44 ah cool, i can not not help you anymore then Jul 11 18:14:54 canadiancow|work is a good resource though Jul 11 18:15:17 cool thanks. I actually got the app to work yesterday. All that's remaining is billing and auth Jul 11 18:15:27 good luck! Jul 11 18:15:30 thanks Jul 11 18:15:42 mysteronyx: from like 12 hours ago, fromJson is overloaded to take a stream Jul 11 18:15:47 it doesn't only take a String Jul 11 18:16:12 oh really Jul 11 18:16:35 gson.fromJson(response.getEntity().getContent(), Idea.class) would have worked fine Jul 11 18:16:47 I'll try that right now Jul 11 18:18:08 Defining a Keyboard Key like you can alternate between the different keycodes by quickly pressing the key again. Do you know which class is responsible for that? I have seen this in SoftKeyboard Sample but didn't find the code which handles that. Jul 11 18:18:13 is it possible to convert an uri to a path? Jul 11 18:18:46 bm = BitmapFactory.decodeResource(context.getResources(), id); Jul 11 18:18:52 i need to do this with uri instead of resource id Jul 11 18:19:00 mikedg_ wat Jul 11 18:19:21 JakeWharton, Eclipse gave me an error saying fromJson only accepts strings. I ignored it, and the app crashed Jul 11 18:19:32 valiolap: no, you can't, you can of course download/fetch whereever the uri is pointing to Jul 11 18:19:44 and make a bitmap from that Jul 11 18:20:16 String x = EntityUtils.toString(execute.getEntity()); works though Jul 11 18:20:21 valiolap: ie, it matters whether it's a file: or http: url Jul 11 18:21:52 its a file Jul 11 18:22:01 its obb content Jul 11 18:22:04 http://stackoverflow.com/questions/3879992/get-bitmap-from-an-uri-android Jul 11 18:22:08 does this answer my question? Jul 11 18:22:14 the one with 20 votes Jul 11 18:22:56 yeah, that'll work Jul 11 18:23:41 hi, I'm trying to run adb from android-sdk on a 64 bit system and, of course, it doesn't work. Is there a 64bit version af adb and the rest of the tools somewhere? Jul 11 18:23:52 s/af/of Jul 11 18:24:02 linux, I suppose Jul 11 18:24:23 and what do you mean by 'it doesn't work'? Jul 11 18:24:34 it crashes? it hangs? it doesn't find the device? Jul 11 18:25:11 everything android is 32-bit Jul 11 18:25:17 [przemo@pldmachine ~/android-sdk-linux/platform-tools]$ ./adb Jul 11 18:25:17 bash: ./adb: No such file or directory Jul 11 18:25:17 [przemo@pldmachine ~/android-sdk-linux/platform-tools]$ ls -l adb Jul 11 18:25:17 -rwxr-xr-x 1 przemo users 204436 Jul 9 20:06 adb Jul 11 18:25:18 What is the name of the widget used to make all the options in the settings menu? Jul 11 18:25:22 does your system not have 32-bit emulation? Jul 11 18:25:36 mysteronyx: the API docs are smarter than Eclipse Jul 11 18:25:39 and you shouldn't ignore errors Jul 11 18:26:01 yea, it's linux. gdb shows :(gdb) r Jul 11 18:26:01 Starting program: /home/users/przemo/android-sdk-linux/platform-tools/adb Jul 11 18:26:01 /bin/bash: /home/users/przemo/android-sdk-linux/platform-tools/adb: No such file or directory Jul 11 18:26:01 During startup program exited with code 127. Jul 11 18:27:29 which distro? Jul 11 18:27:42 PLD Jul 11 18:28:25 so, does it have 32-bit versions of its libraries? Jul 11 18:28:34 pefi: you're probably using the 32 bit versions of adb Jul 11 18:29:11 I think I've asked this about ten times http://stackoverflow.com/questions/11438850/why-is-my-webviews-webviewclient-not-being-called Jul 11 18:29:43 lov: ok, looks like I have to install some 32bit libs - thanks lads! Jul 11 18:30:02 for some reason when i try to add the google admob sdk to my project it isnt importing i am adding it like i have my other projects and following the directions but it imports the sdk into a Resource Library not into com.google.... etc Jul 11 18:30:34 Uhm. How do one use the same xml layout file for different fragments? Jul 11 18:31:25 the URL is actually loading fine Jul 11 18:31:31 but onLoadResource never fires Jul 11 18:31:53 I think I had this problem as well Jul 11 18:31:56 some time back Jul 11 18:32:06 jcromartie_: which version of android? Jul 11 18:32:25 14 Jul 11 18:32:31 ah, not related then Jul 11 18:32:57 MDijkstra: what was your issue? Jul 11 18:33:15 that on older versions it sometimes didn't call the callbacks Jul 11 18:33:46 so on <2.2 I had to listen to the page load completion callback Jul 11 18:34:01 rather than the will start loading callback Jul 11 18:36:19 im an idiot Jul 11 18:36:21 fuck me Jul 11 18:36:36 yes I will kill you in the ass with an m16a3 Jul 11 18:36:48 canadiancow|work: you drunk? Jul 11 18:36:52 too? Jul 11 18:37:07 no? Jul 11 18:37:12 im at work Jul 11 18:37:15 ok Jul 11 18:37:19 but why should we fuck you Jul 11 18:37:23 sounds a bit hostile Jul 11 18:37:47 canadiancow|work: http://g33klite.com/index.php/jokes/nsfw/388-do-you-speak-english Jul 11 18:38:27 How can I make my fragments use the same layout with different content Jul 11 18:38:30 lol Jul 11 18:38:32 that was SFWE Jul 11 18:38:33 SFW* Jul 11 18:38:36 no one could read it over my shoulder Jul 11 18:38:36 :) Jul 11 18:38:42 canadiancow|work: :D :D :D Jul 11 18:40:46 Deifyed: your question leads me to believe you may be missing the point of fragments Jul 11 18:41:11 or i misunderstand your question Jul 11 18:41:38 What is the name of this 'list' input control? (http://4.bp.blogspot.com/_4hOzejeZitc/TKcJVzD7eoI/AAAAAAAAA_c/3RE2nF3IRl4/s1600/%D0%91%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B9.GIF) Jul 11 18:42:02 deadmund: a... listview! Jul 11 18:43:01 MDijkstra: Thanks Jul 11 18:43:03 I'm sure its me misunderstanding fragments. :p. I have 6 different lists(categories of content) and I want to use tabs to change between the different lists. Each tab is a fragment of course. Jul 11 18:44:05 and you want different list formats depending on the category? Jul 11 18:44:08 it sounds like you want 6 instances of the same ListFragment with different data/and or adapters Jul 11 18:44:41 That's what I ended up doing Jul 11 18:44:45 Yeah wongk, thats what I'm trying to do Jul 11 18:44:45 same listfragment Jul 11 18:44:48 different adapters Jul 11 18:45:06 But my first tab keeps getting overwritten by the last Jul 11 18:45:34 need to see code Jul 11 18:46:32 http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/ Jul 11 18:46:39 You may have already seen that, but it was really helpful for me Jul 11 18:47:23 are all pending intents cancelled when the phone is rebooted? Jul 11 18:47:39 Main activity holding the tabs: http://pastie.org/4239366, the fragment I create six times: http://pastie.org/4239373 Jul 11 18:47:56 Wow thank you irssi - I almost pasted the whole fragment into this chat Jul 11 18:48:47 the toast is just me debugging the hard way Jul 11 18:49:07 Rich787: yep Jul 11 18:49:22 at least, I'm 99% sure they are Jul 11 18:50:07 I thought I saw something once about it. Jul 11 18:50:39 MDijkstra: is it best to have a receiver called on boot to loop through and reinit any cancelled ones? Jul 11 18:51:01 MDijkstra: I'm making a mini alarm app Jul 11 18:51:13 in Eclipse, is there a simple way to change a package name without going through all of the files and manually doing it? Jul 11 18:51:50 mysteronyx: can't you refactor? Jul 11 18:52:29 Deifyed I'll try that, thanks Jul 11 18:52:43 right click on the package and choose the "refactor" submenu Jul 11 18:53:00 ok thanks Jul 11 18:53:20 Rich787: that seems like a sensible approach, yes Jul 11 18:53:29 wongk: did you see the source? (if you were willing to look at it) Jul 11 18:53:30 just me, or is the eclipse layout editor borked in ADT 20? Jul 11 18:54:00 yea, thanks man Jul 11 18:54:36 robb_www: borked how? Jul 11 18:55:11 im getting a NotFoundException, for "null", and none of my layouts are rendering Jul 11 18:55:48 building the project seems to be fine, just the editor cant handle the layouts Jul 11 18:56:53 aha, seems the exception is coming from android.content.res.Resources$NotFoundException at com.android.layoutlib.bridge.BridgeContext.obtainStyledAttributes(BridgeContext.java:202) Jul 11 18:57:21 I'm getting some linkedhashmap error, I havn't looked into it as I rarely use it Jul 11 19:00:17 i wish linkedhashmap allowed you to modify the linked list, but it doesnt use an implementation from the collections API Jul 11 19:00:57 Hey guys, I'm trying to connect to a cellphone bluetooth. I'm using reflection to retrieve the socket (Method m = device.getClass().getMethod("createRfcommSocket", new Class[] {int.class});). But when I'm trying to connect I just got a Connection refused. Anyone knows that to do ? Jul 11 19:01:20 canadiancow|work: have you seen this? http://www.youtube.com/watch?v=iTthJI0rDnk Jul 11 19:01:42 is the sound important Jul 11 19:01:51 because i really dont want to put on my headphones Jul 11 19:02:06 yea ok thats not very sfw Jul 11 19:02:11 sex in a tub and a guy in his boxers Jul 11 19:02:15 not watching that here Jul 11 19:02:31 canadiancow|work: sound is kinda important yes Jul 11 19:02:32 yes Jul 11 19:02:33 ok Jul 11 19:02:35 How do I import Loader?? http://developer.android.com/reference/android/content/Loader.html What is the ? Jul 11 19:02:43 canadiancow|work: a super bookmark though! Jul 11 19:03:43 deadmund: Java generics Jul 11 19:03:43 deadmund google "java generics" Jul 11 19:03:48 * canadiancow|work high-fives ctate Jul 11 19:03:59 ~lmgtfy java generics Jul 11 19:04:04 thanks Jul 11 19:06:08 I downloaded the sample billing app, and it says I need to change the package name. Does this mean I also have to change all of the directory names? Jul 11 19:06:21 or can I simply use refractor and edit the project name once Jul 11 19:06:50 probably that, yes Jul 11 19:06:59 <3 refactoring via IDE Jul 11 19:07:07 big time Jul 11 19:07:11 ctate yay Jul 11 19:07:18 because I used refractor on the package name, and now it's giving me errors Jul 11 19:07:19 cmd-1 ftw Jul 11 19:07:19 rrr Jul 11 19:07:29 The declared package "com.test.dungeons" does not match the expected package "com.example.dungeons" Jul 11 19:07:42 ctate: do you know of any text to speak libs i can use, android tts doesnt support korean Jul 11 19:07:56 hi everybody Jul 11 19:08:00 JakeWharton, hi I have a question regarding ActionBarSherlock and the LoadManagers. do you have a minute? Jul 11 19:08:37 brx_: no clue, sorry Jul 11 19:09:21 k Jul 11 19:09:26 mysteronyx: well, make sure that it no longer refers to the old one Jul 11 19:09:33 for some reason when i try to add the google admob sdk to my project it isnt importing i am adding it like i have my other projects and following the directions but it imports the sdk into a Resource Library not into com.google.... etc Jul 11 19:09:40 also, um, you should probably pick package names according to suggested policy Jul 11 19:09:40 ctate: canadiancow|work alright. I see that it's for compiler time type checking. But I cannot import android.content.Loader or android.content.Loader so I'm not sure what I'm supposed to do. Jul 11 19:09:47 i doubt you run a company called test.com Jul 11 19:09:55 Loader is an api11? class Jul 11 19:10:05 you need android.support.v4.content.Loader or whatever Jul 11 19:10:07 from the support lib Jul 11 19:10:17 http://developer.android.com/reference/android/content/Loader.html Jul 11 19:10:21 I hope the Support lib becomes so good that we don't need extra libraries Jul 11 19:11:19 I'm actually writing for 2.3 is that not smart? My phone is 2.3 which is why I choose it. Jul 11 19:11:32 "writing for" Jul 11 19:11:36 what does that mean Jul 11 19:11:36 canadiancow|work was that for me Jul 11 19:11:41 targeting 2.3 is perfectly sane, IMO Jul 11 19:11:49 you need a minSdkVersion Jul 11 19:11:53 ok Jul 11 19:11:56 and 2.3 could be reasonable there Jul 11 19:11:59 2.2 might be smarter Jul 11 19:12:03 bah Jul 11 19:12:05 depends on what you need Jul 11 19:12:10 live for the future Jul 11 19:12:14 if what you're doing cna be done on 2.2, why not? Jul 11 19:12:31 no reason to cut out 25% of possible users just because Jul 11 19:12:31 if you're using the NDK i woudl *strongly* suggest 2.3 or later Jul 11 19:12:39 if you're using the ndk then :( Jul 11 19:12:39 if not then it's not such a big deal Jul 11 19:12:41 How am I supposed to determine what packages I need? I've been writing code based on tutorials and then compiling to see what symbols are undefined. Jul 11 19:12:55 ctrl/cmd-shift-o ? Jul 11 19:13:32 I'm working cli not in eclipse Jul 11 19:13:46 why Jul 11 19:13:48 dont do that Jul 11 19:14:30 I don't have eclipse installed and I'm not on a machine I have root on. I'd have to compile eclipse from source and install it in ~/bin. Also, I don't like eclipse Jul 11 19:14:41 Is it really a requirement that I install eclipse? Jul 11 19:15:23 Also, with android.support.v4.* imported I still get undefined symbol on class Loader Jul 11 19:15:46 you're gonna want help w/ imports Jul 11 19:16:18 get eclipse Jul 11 19:16:20 doogan: by 'help' I assume you're talking about the eclipse shortcut? Jul 11 19:16:24 or some sane IDE that understands java and android Jul 11 19:17:27 ugh... Jul 11 19:18:18 yeah, i'd definitely recommend using a Java-savvy IDE like IntelliJ or Eclipse Jul 11 19:18:40 i'm pretty sure IntelliJ IDEA is free now Jul 11 19:18:56 (and has Android integration built in) Jul 11 19:19:18 the newest version of Intellij has it, but it has not officially been released Jul 11 19:19:37 the current release version (11.x) does not have the UI builder / preview tools Jul 11 19:20:17 funny we're on that topic, because I was just about to ask: if you're using Intellij IDEA, but don't have the UI designer, then how do you build activities visually for Android? Jul 11 19:20:37 i use eclipse, but i usually use xml Jul 11 19:20:41 s/usually/always/ Jul 11 19:20:48 i just use the visual to identify problems Jul 11 19:20:54 same here Jul 11 19:20:54 yeah i just write the xml manually Jul 11 19:21:13 my layouts are very simple in 95% of the cases Jul 11 19:21:19 I'm new to Android development though, so it would help to have a visual tool. I don't really understand the layout system yet. Jul 11 19:22:06 so use eclipse+adt Jul 11 19:22:09 i do not mean to disparage the utility of visual tools :) Jul 11 19:22:13 my layouts are not simple, but i still do it in xml :P Jul 11 19:22:35 Eclipse is just a really challenging tool to use Jul 11 19:22:45 the window system is rather confusing Jul 11 19:23:06 I figured I can use the debugging tools separate from the IDE I'm using, so DDMS integration doesn't matter so much Jul 11 19:23:08 Oh hello there, Jelly Bean :) Jul 11 19:23:08 pcgeek86: umm... it was 10.x that didn't have visual preview Jul 11 19:23:16 current IntelliJ has preview Jul 11 19:23:55 also, on Eclipse 4.2, AT20's project wizard and visual editors are broken when it comes to fragments Jul 11 19:23:56 p_l|backup: http://blogs.jetbrains.com/idea/2012/06/android-ui-designer-coming-in-intellij-idea-12/ Jul 11 19:24:01 and compat lib Jul 11 19:24:08 The tutorial here: http://developer.android.com/training/basics/firstapp/creating-project.html gives the option to develop using eclipse or the command line. It does not mention that figuring out import dependencies will be a nightmare on the command line. This should probably be changed. Jul 11 19:24:09 designer != preview? Jul 11 19:24:32 import dependencies? Jul 11 19:24:44 pcgeek86: yes Jul 11 19:24:46 so, 11 has "preview" but 12 will have actual design tools? Just making sure I understand Jul 11 19:24:46 You know know, what to import Jul 11 19:24:52 p_l|backup: alright, gotcha Jul 11 19:25:00 * TachyonDev2 quacks Jul 11 19:25:02 my 11.1 has live preview Jul 11 19:25:08 JakeWharton: import dependencies = what is needed to import for a given chunk of code. Jul 11 19:25:17 are there any external tools to IDEs that can help with constructing a UI? Jul 11 19:25:30 http://phandroid.com/2012/07/11/amazon-kindle-fire-gets-jelly-bean-4-1-1-beta-port-video/ Jul 11 19:25:34 hey look someone fixed the fire Jul 11 19:25:42 pcgeek86: there's droiddraw but I don't like it Jul 11 19:26:00 lol droiddraw Jul 11 19:26:01 lol Jul 11 19:26:02 p_l|backup: Yeah I just came across that. Pretty challenging to use also. Jul 11 19:26:06 it sucked when the official tools sucked Jul 11 19:26:10 i cant even imagine how it compares now Jul 11 19:26:23 it's pretty much a joke Jul 11 19:27:42 anyone know any good resources for learning the layout system, other than the official docs? Jul 11 19:27:52 trial and error Jul 11 19:28:02 if you find anything else useful, let me know Jul 11 19:28:08 trial and error++ Jul 11 19:28:12 learn by doing Jul 11 19:34:07 Are there any good open-source Android apps that I could learn from? Jul 11 19:34:26 I saw that one guy had an open-source Skydrive app. Jul 11 19:35:17 pcgeek86: there are probably a ton of open source apps, you need to refine ur search to what you what to learn Jul 11 19:36:33 yes Jul 11 19:36:44 there are tons of tutorials and open source apps Jul 11 19:37:01 look on f-droid.org Jul 11 19:37:05 it's all open source Jul 11 19:37:12 find an app you like and go through the source Jul 11 19:38:09 fitzpantson: Thanks for the f-droid.org link. Never heard of that one before. Jul 11 19:38:26 since i cant use android-tts (no korean support) i am looking at this Google service: translate. http://google.com/translate_tts?tl=en&q=shizzle%20ma%20nizzle Jul 11 19:38:30 I suppose I could peruse the XDA forums for source code also .... although that is not nearly as structured as places like GitHub, et al. Jul 11 19:38:57 how could i do that in android (i tried a webview didnt work) Jul 11 19:39:18 http://translate.google.com/translate_tts?tl=en&q=shizzle%20ma%20nizzle * Jul 11 19:39:21 brx_: that provides a 404 :X Jul 11 19:39:30 sry lov ^ Jul 11 19:40:01 brx_: your problem is that you need something for the korean locale though, right? Jul 11 19:40:08 this works with korean Jul 11 19:40:12 Juno works with the SDK right? Jul 11 19:40:15 change post parameters to: Jul 11 19:40:42 http://translate.google.com/translate_tts?tl=ko&q=%EC%96%87%EC%9D%80 Jul 11 19:40:50 ok, good point. Jul 11 19:40:56 so it could be useful for me Jul 11 19:40:59 Well, it's google's voice service, which is neat Jul 11 19:41:07 but google places some pretty severe restrictions on usage Jul 11 19:41:18 :< Jul 11 19:41:24 you could PROBABLY just make API queries and then parse the responses Jul 11 19:41:30 I'm assuming it's just responding with mp3 or whatever Jul 11 19:41:44 i couldnt actually find the api :o Jul 11 19:41:49 there isn't one. Jul 11 19:41:53 lol didnt think so Jul 11 19:41:53 well Jul 11 19:42:14 I'm suggesting that you make network requests from w/in your app against that particular http url Jul 11 19:42:22 bear in mind that it can stop working at any time and is technically theft of service Jul 11 19:42:39 there are companies like svox that provide specialised TTS services Jul 11 19:42:52 the android TTS is actually a low-end svox engine iirc Jul 11 19:43:16 https://play.google.com/store/apps/details?id=com.svox.classic.langpack.kor_kor_fem&feature=search_result Jul 11 19:43:36 the response from that service is indeed just the binary audio data Jul 11 19:44:09 lov interesting Jul 11 19:44:13 wongk interesting Jul 11 19:44:54 woah I think I just landed myself a full-time android dev position in SF Jul 11 19:45:08 nice Jul 11 19:45:14 well played Jul 11 19:45:19 what company? Jul 11 19:45:23 i've been working on that yself Jul 11 19:45:26 it's well known Jul 11 19:45:32 but I'm not sure internet strangers are the best to tell Jul 11 19:45:42 they make iOS, windows phone, and android apps Jul 11 19:45:44 is it a secret or something? Jul 11 19:45:49 not really secret Jul 11 19:45:54 everyone makes ios, wp, and android apps Jul 11 19:45:57 he might get raoed though Jul 11 19:46:00 +p Jul 11 19:46:37 fitzpantson: the only reason you wouldn't tell us is because it's scummy? Jul 11 19:46:44 hah Jul 11 19:46:45 is it zynga? Jul 11 19:46:48 are you making farmville? Jul 11 19:46:50 haha Jul 11 19:46:56 they turn your phone into a vibrator Jul 11 19:47:03 while showing dirty pictures Jul 11 19:47:04 gross and/or hot Jul 11 19:47:07 lov and making calls to your ex Jul 11 19:47:16 canadiancow|work: <3 Jul 11 19:47:20 i like where this is going Jul 11 19:48:07 I thought IRC was serious buisness Jul 11 19:48:32 there is no fun in #android-dev! Jul 11 19:48:34 fuck i cleaned and eclipse wont build my r.java Jul 11 19:48:35 T_T Jul 11 19:49:15 so I've been thinking of using google to have people purchase things in my app, but what about other services? Could I have people pay via paypal? I want the simplest layout that is not much more than clicking a button and receiving the product. Jul 11 19:49:58 integrating PayPal on android would probably be awkward at best Jul 11 19:50:03 ok Jul 11 19:50:10 you arent allowed to use paypal if you distribute through play, right? Jul 11 19:50:14 and it would require your customers to have a paypal account Jul 11 19:50:43 wongk true, but what I've decided is every user is going to create an account with my app Jul 11 19:51:03 and then they can choose from various methods of payment Jul 11 19:51:06 so that's two accounts they'll need Jul 11 19:51:13 mysteronyx you aren't allowed to do that Jul 11 19:51:34 the man is watching you Jul 11 19:51:46 You'll use Google and you'll love it Jul 11 19:51:51 Did I do something wrong? http://i.imgur.com/64yLR.png Jul 11 19:51:56 hmm Jul 11 19:52:45 you have a null pointer Jul 11 19:53:03 fitzpantson: I cant even start a project. Jul 11 19:53:04 ... your argument is invalid? Jul 11 19:53:14 Where is this "error log" Jul 11 19:53:28 afaict this is Eclipse blowing up, not Android stuff Jul 11 19:53:32 so uh Jul 11 19:53:37 yes, this looks like Eclipse Jul 11 19:54:17 ctate: should I go back to indigo then? Jul 11 19:54:30 Are you use J2EE Eclipse or something? Jul 11 19:54:33 the icon looks different Jul 11 19:55:13 fitzpantson: I just downloaded this: http://i.imgur.com/pOcVB.png Jul 11 19:55:25 juno Jul 11 19:55:45 juno isn't released yet Jul 11 19:56:19 oh i take that back Jul 11 19:56:27 wongk: is there a dev version or something? The splash screen says "Juno" Jul 11 19:56:34 released 1 weeka go Jul 11 19:56:47 Android made me update to tools 20 Jul 11 19:57:11 anyway, save the headache, use indigo Jul 11 20:02:17 Lord_Zero: don't use the J2EE version. Download "Eclipse Classic". Jul 11 20:02:28 J2EE should work fine though, it'll just have a bunch of crap you don't need Jul 11 20:03:39 i don't know if anyone else has had this issue, but latest version of eclipse (juno) does not have the software addons site repo in by default, at least it dind't for me Jul 11 20:04:01 i had to manually add it in order to properly install adt, as there are dependencies Jul 11 20:04:49 wow, wtf. my machine ran out of memory trying to compile jellybean Jul 11 20:04:58 hehe oops Jul 11 20:05:18 this system has 10GB RAM? Jul 11 20:05:29 no swap? Jul 11 20:06:00 actually yes, no swap. but...10GB? Jul 11 20:06:16 interesting Jul 11 20:06:27 well if you have no swap and you happen to have all of your ram full Jul 11 20:06:41 I'm doing something I shouldn't - but here's the situation. I've got a single FragmentActivity that contains a collection of FragmentManagerImpl instances. Those instances are assigned the same FragmentActivity reference. I override the getSupportFragmentManager to return a FragmentManagerImpl assoc. with the nav. section - this is to provide separate unique back stacks per navigation section. For some reason, I am only able Jul 11 20:06:44 It's neat that you don't have a power of 2 ram Jul 11 20:06:51 android requires that you lease cloud space from amazon to build it ;) Jul 11 20:07:06 developernotes: You got cut off. Jul 11 20:07:17 deadmund: what do you mean? Jul 11 20:07:28 Your last message cut off Jul 11 20:07:33 developernotes: Read what you just said. It ends in 'I am only able.." Jul 11 20:07:39 ok, I'll break it up. Jul 11 20:08:03 I'm doing something I shouldn't - but here's the situation.  I've got a single FragmentActivity that contains a collection of FragmentManagerImpl instances.  Those instances are assigned the same FragmentActivity reference.  I override the getSupportFragmentManager to return a FragmentManagerImpl assoc. with the nav. section - this is to provide separate unique back stacks per navigation section. Jul 11 20:08:14 For some reason, I am only able to load fragments into the FragmentManagerImpl assoc. with the FragmentActivity.  Any suggestions to get this working?  Thanks. Jul 11 20:10:14 That is to say, when I select other navigation sections, it performs the fragment transaction, however it is never displays, I just get a white screen where the fragment should show. Jul 11 20:15:25 Anybody else noticed that the new SDK generates utterly broken renderscript apps? Jul 11 20:15:55 Just compute. Jul 11 20:17:05 I spent all of today going around in circles trying to figure out even the most trivial operations wouldn't work and running old code to verify that it wasn't a completely broken system, but I _forgot_ to rebuild my control app with the new SDK. Jul 11 20:17:10 And when I did that broke too. Jul 11 20:18:39 lov: using classic now I am getting this error: http://i.imgur.com/dgO95.png Jul 11 20:19:00 This is going to blow back in my own face, isn't it. Jul 11 20:19:16 ADT and the SDK are two different things Jul 11 20:19:32 their versions must match Jul 11 20:20:11 Gumboot, twss Jul 11 20:20:19 Right, I feel a l bit stupy in here. You're all saying words I cannot compute. I just wanted to know, if I make a CWM backup, then change ROM, THEN restore the CWM backup, will it restore the old ROM? Jul 11 20:20:20 I don't know what twss means. Jul 11 20:20:27 that's what she said Jul 11 20:20:33 Ahh. Jul 11 20:20:50 AKK9: wrong channel Jul 11 20:21:16 My bad. Jul 11 20:21:21 AKK9: #android, and the answer is yes Jul 11 20:21:22 #android-root Jul 11 20:22:05 Google released the source code for the IO 2012 Android app: http://code.google.com/p/iosched/ Jul 11 20:22:06 Maybe I could just downgrade llvm-rs-cc on its own and not get into too much trouble. Jul 11 20:22:24 yeah woo Jul 11 20:23:24 Where do SDK bug reports go, then? Jul 11 20:24:29 market console Jul 11 20:27:22 anyone know if the intel x86 image on mac uses a 32 or 64 bit kext ? Jul 11 20:27:33 I guess the other possibility is that the new SDK generates vector operations which the old ICS bcc doesn't understand, or something. Jul 11 20:27:42 pcgeek86: cool, thanks Jul 11 20:29:40 g00s: :) Jul 11 20:30:30 is StringBuffer and indexOf() the fastest way to parse a lot of HTML whose structure you already know? Jul 11 20:31:09 * Gumboot tries Levels. Jul 11 20:31:32 StringBuilder Jul 11 20:31:41 unless you're doing crazy thread crap Jul 11 20:32:02 sorry Jul 11 20:32:04 StringBuilder Jul 11 20:32:15 I never want to do crazy thread crap Jul 11 20:32:18 I take it most people don't try to have multiple FragmentManagerImpl's within a single FragementActivity. Jul 11 20:32:33 developernotes: ... you're scaring me. Jul 11 20:32:52 evancharlton: haha, sorry. Jul 11 20:34:29 evancharlton: the concept is rather simple, it's like a browser with tabs, each tab gets it's own history. I am treating the FragmentActivity as the "browser" and trying to have multiple FragmentManagerImpl's to manage multiple back stacks per nav. section that is displayed. Jul 11 20:35:34 evancharlton: if there is another solution where I can get multiple unique back stacks I'm all ears. Jul 11 20:36:18 So I am working with the actionbar sherlock and i have the refresh menu item Jul 11 20:37:09 I also have the indterminate thing set up so that when the user clicks on the refresh menu item it starts spinning for some work done in the background Jul 11 20:37:56 hi all Jul 11 20:37:57 and after that work is done i call setActionView(null) on the refresh menu item which should stop it spinning Jul 11 20:38:05 Levels doesn't work. Jul 11 20:38:22 but it doesnt in my app, i have tried it on a sample app and it works perfectly over there. Jul 11 20:38:45 is setActionView(null) actually getting called? Jul 11 20:38:56 Could I get somebody to try this on 4.1 and/or 4.0? http://code.google.com/p/android-renderscript-samples/source/checkout Jul 11 20:39:01 i am reading the " android apps for absolute begginer" and i have some problem at their instruction Jul 11 20:39:05 With the latest SDK? Jul 11 20:39:32 do i really need to install the whole PACKEGE at there ? the android 1.5-4.1 Jul 11 20:39:45 or it;s ok to install only the 4.1 Jul 11 20:41:29 http://goo.gl/mod/RF4W vote if you agree please Jul 11 20:41:39 any help ? Jul 11 20:41:42 pls Jul 11 20:43:41 fitzpantson, yes setActionView is getting called for sure Jul 11 20:44:48 fitzpantson, this is the link for mu bug http://stackoverflow.com/questions/11440278/actionbarsherlock-menuitem-setactionviewnull-does-not-stop-rotating Jul 11 20:45:36 Intro: you mean the packages from the sdk manager? in this case you don't need everything, especially when you just start Jul 11 20:46:01 oh thanks Jul 11 20:46:14 so that's ok to install just the 4.1 Jul 11 20:46:15 ? Jul 11 20:46:23 Intro: yes Jul 11 20:46:25 yes Jul 11 20:46:30 ""Regarding Bitmap.recycle() - Recently, I have noticed HEAP MEMORY CORRUPTION error occurs. Is it true in ICS that we should not be calling Bitmap.recycle()?", hmm that would be interesting Jul 11 20:46:44 http://stackoverflow.com/questions/8430943/heap-memory-corruption-in-dlmalloc-or-dlfree-and-sigsegv-errors-in-android-ics-4 Jul 11 20:46:49 i was just talking to a colleague about that Jul 11 20:46:52 Intro: though I'd recommend to install 2.2. too, just to keep an older version around. Most devices are not on 4.0+ yet Jul 11 20:47:08 thanks Jul 11 20:47:12 i will Jul 11 20:49:30 lol, even the i/o app is using actionbarsherlock Jul 11 20:49:56 Is ActionBarSherlock the defacto shim Jul 11 20:50:10 all the cool kids are doing it Jul 11 20:50:12 i know..anyways is the source for io app open? Jul 11 20:52:35 Anyone know how to prevent the text in a TabPageIndicator from wrapping? [cc: JakeWharton] Jul 11 20:52:39 are any of you interested in being paid to make an app for me? Just wondering. Jul 11 20:56:49 still cant tell why the layout editor is so thoroughly broken after updating :/ I suppose I need to reinstall the whole environment Jul 11 20:56:51 mysteronyx, is it a fart app? Jul 11 20:56:58 no Jul 11 20:56:59 I'll make you a fart app for $500 Jul 11 20:57:01 thousand Jul 11 20:57:04 "Google Nexus 7 parts estimated to cost $152" - thats pretty amazing Jul 11 20:57:05 ok Jul 11 20:57:06 mysteronyx, i believe soliciting work is against the channel rules Jul 11 20:57:10 ok Jul 11 20:57:17 just wondering Jul 11 20:57:35 np, n i don't care myself, but some people might be sensitive about the rules Jul 11 20:57:43 yea Jul 11 20:57:45 just a heads up ;) Jul 11 20:58:11 what kind of app are you looking to build? Jul 11 20:59:08 EddieRingle, try http://stackoverflow.com/questions/11242421/android-tabpage-indicator-content-wrapping-issue ?? Jul 11 21:00:02 rootlicker-work: yeah, that seems to be the only resource I can find Jul 11 21:00:52 Hey guys, if I had a listview of some kind and I want to continue to scroll into other stuff after the list view how would I do that. I know putting them into a scrollview is wrong so how should I do this? Jul 11 21:01:18 tbh i don't know what a tabPageIndicator is Jul 11 21:02:02 jayd you want the other content to show after the listview reaches bottom? Jul 11 21:02:12 Is it possible to call android/log.h from libc? I am trying to log some info about functions in the standard lib. Does anyone have some suggestions for perhaps another way to do it? Jul 11 21:02:17 rootlicker: prettymuch Jul 11 21:03:12 one way is list.addFooterView(footerView); Jul 11 21:03:46 Do we know why Jazelle is not used as a hardware interpreter for Dalvik. I can't imagine a SW interpreter no matter how well written being perf/power efficient than a straight line hardware decoder. Jul 11 21:03:59 rootlicker: well its actually a GridView and that doesn't have it Jul 11 21:05:16 I have to generate a genuine 8 am - 6 pm schedule based on some json information, how should i approach this? what view should i use? Jul 11 21:05:17 jayd16, http://stackoverflow.com/questions/3199020/how-to-display-an-imageview-above-and-below-a-gridview Jul 11 21:05:22 that might help Jul 11 21:06:23 aha, found the problem Jul 11 21:06:49 bluezone, view is entirely up to you. first step is to parse the jason data into objects. hard to give much more insight without knowing how it is structured but my guess is you can build an Array out of it, then use an arrayadapter to build out views of the data Jul 11 21:06:57 in my install of ADT 20, the layout editor refuses to render anything for an API lower than 7 Jul 11 21:08:38 jayd16, does that link help? or it is a "sticky" view that is always showing as the grid scrolls? Jul 11 21:09:22 never mind, found enough threads explaining why its not possible Jul 11 21:10:01 hmmm is that going to work? I just want something that will scroll up into view when the gridview hits bottom Jul 11 21:10:45 I think footer is what I want if I were using a listview but I'm not Jul 11 21:11:57 yeah Jul 11 21:11:58 hmm Jul 11 21:12:20 http://stackoverflow.com/questions/8876596/need-to-create-footer-for-gridview-in-android try the second part of the third answer Jul 11 21:12:38 it uses a scroll view, don't know how it will behave but that seems to be addressing the same problem Jul 11 21:13:38 but wont that defeat the purpose of using an adapter. That will load all the children at once, no? Jul 11 21:13:56 no the gridview is inside the scrollview Jul 11 21:14:37 right but the reason you dont put a listview in a scrollview is because the listview expands off the screen because thats how scrollview works Jul 11 21:14:58 gridview and "footer" in linearlayout, linearlayout inside scrollview Jul 11 21:15:15 try it and see Jul 11 21:15:56 well I mean it will look fine I'm sure, I'll lose the functionality of the gridview recycling views Jul 11 21:16:07 you shouldn't Jul 11 21:16:20 they aren't all displaying at once, afaik Jul 11 21:16:40 getView() should still only be called upon visibiltiy Jul 11 21:17:12 you could also try just extending the class for GridView and allowing a footer as listview does Jul 11 21:17:31 hmmm yeah Jul 11 21:17:52 if yuo really need it that bad and putting in scroll view indeed breaks recycling, that may be your only bet.. been searching and i don't see any solutions, unforutnately Jul 11 21:18:30 ah ok. I'll play with it. Thanks! Jul 11 21:20:15 np Jul 11 21:23:19 http://stackoverflow.com/questions/7596765/android-layout-at-the-bottom-of-a-gridview-at-the-end-of-it see bottom solution jayd16 Jul 11 21:23:29 that claims to do it, i'm not so sure tho Jul 11 21:23:34 I'm using a git repo for development (github). Other than src/ libs/ res/ and the actual files themselves, are there any other 'folders' I need to push? gen or bin seem like private work, is this correct? Jul 11 21:33:06 Is there any way to specify the DNS server on a WiFi connection? Jul 11 21:35:16 Or is there anyway to specify a static IP address instead of DHCP? Jul 11 21:36:03 (In Wifi settings) Menu -> Advanced Jul 11 21:36:53 8.8.8.8 FTW Jul 11 21:37:52 danharibo: Really not. It does not let me change it. Jul 11 21:38:26 for some reason when i try to add the google admob sdk to my project it isnt importing i am adding it like i have my other projects and following the directions but it imports the sdk into a Resource Library not into com.google.... etc Jul 11 21:38:51 Jonathan_Eyre: tick use static IP Jul 11 21:38:55 i have an app with only 16 users and 1 review. thats pretty depressing, but why so few reviews, either good or bad? just it mean nobody cares about it ? Jul 11 21:39:01 Jonathan_Eyre: I think that's dependent on the ROM itself. I was able to set mine using AOKP, but not with CyanogenMod Jul 11 21:39:20 for AsyncTask, does doInBackground() have to have String...? Can't I just send it one string?' Jul 11 21:39:38 so that it says doInBackground(String x) instead of doInBackground(String... x) Jul 11 21:40:09 Eclipse is giving me an error when I just do String x Jul 11 21:40:47 argh Jul 11 21:40:52 * ctate | protected abstract Result doInBackground(Params... params); Jul 11 21:41:26 how did you specialize your AsyncTask subclass? Jul 11 21:42:45 I didn't make a class, I just have private class functionname extends AsyncTask Jul 11 21:43:12 and then protected String doInBackGround(String... x) Jul 11 21:43:33 "private class functionname extends...." Jul 11 21:43:34 t Jul 11 21:43:34 hat Jul 11 21:43:47 that right there declares a subclass of AsyncTask :) Jul 11 21:43:56 ok true Jul 11 21:43:58 lol ctate Jul 11 21:44:01 beat me to it Jul 11 21:44:27 but I have no need to do String... I'm fine with just String Jul 11 21:44:45 romainguy: inside a lens http://imgur.com/gallery/r4PAP Jul 11 21:44:50 err mysteronyx - you have no need to do string, you're fine with string? Jul 11 21:45:10 rootlicker-work String... is for multiple arguments Jul 11 21:45:27 by multiple arguments I mean multiple Strings could be sent Jul 11 21:45:37 however I only will ever send one Jul 11 21:45:52 o ok Jul 11 21:46:14 i would have thought it legitimate to pass a single string to a method declared as taking (String... foo) Jul 11 21:46:16 so uh hm. Jul 11 21:46:41 can you just ignore Eclipse and build it anyway? Jul 11 21:46:48 I could try Jul 11 21:47:12 yeah just send one arg Jul 11 21:48:47 of course now I get The method doInBackground(String) of type MainActivity.getIdea must override a superclass method Jul 11 21:48:53 you're extending and overriding Jul 11 21:48:57 so you can't change the params Jul 11 21:49:15 just send one string argument when you call it Jul 11 21:49:45 I'm fine with sending one argument, but then within the doInBackground there's a for statement that goes through each element of the array Jul 11 21:49:59 I mean, it works, and I can just deal with it doing a for loop 1 time every time Jul 11 21:50:04 but it seems unnecessary Jul 11 21:50:30 mysteronyx: just use args[0] ... Jul 11 21:50:38 if you know there's only ever 1, don't do a loop... Jul 11 21:50:45 true Jul 11 21:53:40 hm, interesting and makes sense http://arstechnica.com/security/2012/07/more-malware-found-hosted-in-google-android-market/ " Asrar explained how breaking up a malicious app into separate, staged payloads prevented automated screening processes from detecting the malware." Jul 11 21:56:04 * Ge0rG is applying cargo cult to android SDK... http://stackoverflow.com/questions/11255805/use-ant-clean-test-with-the-newest-android-sdk-renderscript-opt-level-is Jul 11 21:56:35 Does it say this for you as well? http://kakefisk.webatu.com/misc/imagebin/uploads/wah.png Jul 11 21:58:51 I have a list of custom object types that I sort into groups, but each group can have several levels (e.g. group1->subgroup2->subsubgroup1->item1). I will probably create a HashMap-structure. What's the best and easiest way to let users select an item in that case? Jul 11 22:10:11 g00s: how does that thing work? the app itself is not malicious, but it asks for permission to install additional software? and then ti downloads & installs the malware itself from some non-PlayStore site? Jul 11 22:10:35 ctate: probably just uses DexClassLoader Jul 11 22:10:46 downlaods a classes.dex from ze internets, executes Jul 11 22:10:58 ah yeah, sure Jul 11 22:11:32 it's impressive how wilfully dense these reviewers are about what Play Store is Jul 11 22:11:38 "omg there is malware on the internets!" Jul 11 22:15:59 ctate: well if anything it proves the futility of bouncer, no ? Jul 11 22:17:32 maybe android should restrict fetching and running classes for stuff that was screened through a secure space Jul 11 22:18:42 um Jul 11 22:18:43 wat Jul 11 22:18:50 that's a terrible idea, g00s Jul 11 22:19:55 it could be an option that piggybacks on 'unknown sources'. if unknown sources is checked, anything goes. if not, then an app would have to install its submodules from a trusted place like play Jul 11 22:20:00 i don't see why thats a bad idea Jul 11 22:20:31 when i say submodules, i mean classes downloaded at runtime and executed using DexClassLoader Jul 11 22:22:31 g00s: you're aware that lazily-added bits of code are still protected by permissions, right? and they still run in the app's sandbox. Jul 11 22:23:33 evancharlton: yeah, i don't see how that changes anything Jul 11 22:24:39 g00s: futility? mousetrap/mouse Jul 11 22:24:44 I don't see why downloading classes at runtime changes anything Jul 11 22:25:40 right: you can't magically gain the ability to send costly sms messages just by downloading more dex code; your app had to request (and be granted) that up front Jul 11 22:26:19 I think g00s' point is that you could upload an app that does nothing, yet has SEND_SMS Jul 11 22:26:27 then later start sending SMS messages Jul 11 22:26:41 yes, thanks evancharlton Jul 11 22:26:57 that seems like something Bouncer should catch. I don't see why that "proves the futility of bouncer" Jul 11 22:27:12 unused permissions (especially with INTERNET) should raise red flags Jul 11 22:28:28 evancharlton: sure, and i agree that this is something Bouncer or equivalent could and should look for Jul 11 22:28:44 even then you could include innocuous code that makes use of the permission, and then download your malicious jar files later Jul 11 22:28:52 doesn't mean that Bouncer is *futile* Jul 11 22:30:38 if i recall, security researchers determined an app could figure out whether it was being executed in the bouncer sandbox. it may not be futile for current unsophisticated malware, but i would image this strategy of detecting bouncer inspection + lazydownloading nasty bits later on will become the norm Jul 11 22:31:11 if you download a fart app with SEND_SMS permissions, its your own fault Jul 11 22:31:35 lol Jul 11 22:31:43 and since those downloaded bits can be from anywhere and also not inspected by bouncer, it makes it (seems)even easier. Jul 11 22:31:45 * p_l|backup would still love a way to have temporary permissions Jul 11 22:31:48 if you download a fart app period its your own fault Jul 11 22:32:00 that is, certain permissions aren't always-on Jul 11 22:32:28 rootlicker-work: now, if only said fart app wasn't sending spam... Jul 11 22:32:40 now, if only 99% of the market wasn't fart apps :) Jul 11 22:32:56 (just kidding) Jul 11 22:33:32 or apps ground through autotranslator Jul 11 22:34:31 "security researcher" is such a hip job Jul 11 22:35:50 imagine being a full-time Android "security researcher" and discovering 4 years later that the SD Card is readable, especially photos, the most sensitive info in the world. Jul 11 22:37:03 the full time "security researchers" knew that on day one Jul 11 22:37:23 it's only after numbskull "journalists" blew it up that it became important Jul 11 22:37:26 lawl Jul 11 22:37:29 OMG I CAN READ YOUR PHOTOS Jul 11 22:37:31 OMG OMG Jul 11 22:37:36 but you guys added a new permission for that Jul 11 22:37:40 READ_EXTERNAL_STORAGE Jul 11 22:37:41 or wahtevs Jul 11 22:37:46 hey everyone Jul 11 22:38:14 SECURITY REASEARCHER DISCOVER APPS NEED NO PERMISSION TO USE THE CPU Jul 11 22:39:35 anyhow, i thought it was a good discussion. i'm not trying to be an ass. Jul 11 22:40:00 lol bubbleguuum Jul 11 22:41:52 at various lines such as R.layout.activity_main, I'm getting an error that activity_main cannot be resolved. It has to do with importing R. However, when I delete android.R, R then becomes unresolved. Jul 11 22:42:06 but actually app does need permission for cpu Jul 11 22:42:15 mysteronyx: you need your R, not androids Jul 11 22:42:27 in a sense... you have to define activity/service etc in manifest and the user has to install it Jul 11 22:42:52 g00s hmm I just realized that I didn't even have an R.java Jul 11 22:43:07 mysteronyx: maybe you have a syntax error in your xmls Jul 11 22:43:17 this would prevent your R from being created sometimes Jul 11 22:43:26 oh ok Jul 11 22:43:34 look at the problems tab in eclipse i think Jul 11 22:43:50 I do have an error in an xml, I'll fix that Jul 11 22:46:08 oh these poor, poor people that don't understand UNIX Jul 11 22:46:15 yeah automagic building breaks when the xml has errors Jul 11 22:46:19 it's like they're in technical poverty :) Jul 11 22:47:00 rm -R / Jul 11 22:47:10 just had someone spend the better part of 30 minutes trying to figure out how to open a file mislabeled with a .log extension that was actually a gzipped text file. /usr/bin/file anyone? :) Jul 11 22:47:44 computers must just seem like such a mystery to the unenlightened :) Jul 11 22:52:19 Are there any good tutorials for making a custom Dialog? Jul 11 22:52:26 I want a dialog with a listview in it Jul 11 22:53:26 there are several on d.android.com Jul 11 22:58:05 Ge0rG: What are you up to, there? Jul 11 22:58:08 With renderscript, I mean. Jul 11 22:59:41 jasta, hey definitely are Jul 11 23:01:43 he is up to NO GOOD. Jul 11 23:02:39 I don't generally see a lot of renderscript goings-on out there, but I'm glad I'm not the only one suffering right now. Jul 11 23:03:22 Maybe it takes a broken SDK to get people to start talking out loud about using it Jul 11 23:04:29 Gumboot: you've filed bugs about the breakages? Jul 11 23:05:45 Where's that done? Jul 11 23:08:11 b.android.com ? Jul 11 23:08:50 or whatever else it might suggest at http://tools.android.com/feedback if it's an SDK rather than behavioral issue Jul 11 23:08:52 I also have to find an older version of the toolchain so I can compare. Jul 11 23:11:07 Oh, I see. They're the same tracker. I thought I was just going to the wrong place. Jul 11 23:11:49 I guess I can spend all day tomorrow filing bug reports, then. Jul 11 23:23:13 * Gumboot looks at a random report Jul 11 23:24:24 erdos Jul 11 23:24:26 cool name Jul 11 23:24:40 ITYM Erdös Jul 11 23:24:51 and the -s is pronounced like -sh Jul 11 23:24:56 I think I've got the wrong idea, haven't I. The done thing is to just vomit some single data point without isolating the tools or versions in question? Jul 11 23:24:57 i know Jul 11 23:25:01 i have an erdos number Jul 11 23:25:03 [the REAL hungarian notation! :D ] Jul 11 23:25:10 rootlicker: ... doesn't everyone? :) Jul 11 23:25:13 no Jul 11 23:25:18 i know; i kid Jul 11 23:25:23 you have to publish with someone with an erdos number Jul 11 23:25:55 i published with Santosh Kumar who published with Paul Ballister who published with Erdos Jul 11 23:26:30 i have a degree in maths; i know about Erdös numbers :) Jul 11 23:26:35 and i also studied under Jeno Lehel who published two papers with Erdos, and the advisory of Bela Bellobas who has 50 something papers with Erdos Jul 11 23:26:55 he published with some astonishing number of different people Jul 11 23:27:00 yeah Jul 11 23:27:25 the three highest published with him are professors at the university i studied at Jul 11 23:28:30 Bela Bellobas, Ralph Faudree, C.C. Rosseau and also Dick Schelp. Erdos spent most of the later half of his career working on papers jointly with them. Lots of Ramsey theory, percolation theory, topology, etc Jul 11 23:30:33 oh hi! Jul 11 23:30:39 look at all this discussion Jul 11 23:31:07 ctate, what kind of mathematics are you into? I am mostly into graph theory and elementary number theory, little bit of combinatorics and geometry - it fascinates me but i'm admittedly weak in it Jul 11 23:39:48 Hello, I have a small program that displays text. What do I have to configure so this text be analog displayed both on a 2.3 inch and 4 inch android device ? Jul 11 23:42:38 Hi! Jul 11 23:43:09 I'd like to include that slick first run overlay from android in my own app Jul 11 23:43:13 is that possible? Jul 11 23:43:39 Hi all, I'm trying to run an activity that uses a custom shared library but I'm getting a missing shared library error Jul 11 23:43:47 I've done this many times before, and the library exists on the emulator Jul 11 23:43:50 I can adb shell in and find it Jul 11 23:44:00 any idea what could cause a sudden change in behaviour? bad image? Jul 11 23:44:27 it all sits in a virtual machine and my virtual machine crashed recently but I fail to see how that could cause this Jul 11 23:48:39 a Jul 11 23:54:34 How do I flush an usb drive cache on Windows? Jul 12 00:20:50 java makes me mad Jul 12 00:26:24 http://www.wired.com/business/2012/07/app-dirty-tricks/all/ Jul 12 00:29:36 I'm looking for an already made ScheduleView, something that looks like this http://www.mungo-media.co.uk/popup.php?show=screenScheduleBig.png&title=Android+Schedule+View anyone know where i could find one? Or if there isn't one how do i go about making one? Jul 12 00:37:51 bluezone, http://code.google.com/p/openintents/wiki/CalendarPickerAPI Jul 12 00:39:15 haskeller: not sure if that's what i need, i don't need a calender i need a schedule, which looks like the picture i provided Jul 12 00:39:33 that's the closest I've found Jul 12 00:42:28 haskeller: i tried doing it with a gridview but it's just going to be too stupid and error prone Jul 12 00:42:38 i'm tired of doing things stupidly :D Jul 12 01:03:16 im trying to include a java library called martyr, which is a library for connecting to irc servers, etc. This library requires log4j. log4j does not compile in android during runtime. can someone please please help me understand how to fix log4j or how to remove log4j from martyr Jul 12 01:05:12 omg Jul 12 01:05:26 i just want to stab people in the face that do shit like this: Jul 12 01:05:35 String path = getPathWhatever(); Jul 12 01:05:42 // do a bunch of stuff with path ... Jul 12 01:05:53 path += "/something_else"; Jul 12 01:05:55 // do more with path Jul 12 01:06:11 fuck you if you change the contents of a variable in the middle of a big ass block of code in the same cope Jul 12 01:06:14 scope* Jul 12 01:06:18 +1 Jul 12 01:06:21 make everything final Jul 12 01:06:31 then they cant :) Jul 12 01:06:39 well no, then they just remove the final qualifier Jul 12 01:06:41 god it is just so maddening Jul 12 01:06:42 and do it anyway Jul 12 01:13:07 well Jul 12 01:13:58 tap Jul 12 01:14:39 JakeWharton did you include abs in the support lib yet? Jul 12 01:14:46 jasta: and let's not start on what actually happens when you do string concatenation :) Jul 12 01:14:58 +1 Jul 12 01:15:13 -1 Jul 12 01:21:28 How do I display a "*"? I tried \* and it just shows up as a space Jul 12 01:21:35 I know \' works for a ' Jul 12 01:24:16 hi. i'm trying to connect to a bluetooth device as a client, and I'm not sure what to put for the UUID Jul 12 01:25:24 Unique user Id? Jul 12 01:25:27 (just a guess) Jul 12 01:25:31 it Jul 12 01:25:34 it's a unique identifier Jul 12 01:25:42 Ah Jul 12 01:25:51 but i don't know if i should put a random UUID that represents the app, or put in the device's UUID Jul 12 01:25:53 So I'm assuming you need to set this, and then have the user connect using that id Jul 12 01:26:00 probably a unique one Jul 12 01:26:03 just make one up Jul 12 01:26:17 well i'm trying a random one (that i got from a generator) but it's not working Jul 12 01:26:21 Either that or the bluetooth device itself has a UUID, similar to a MAC address Jul 12 01:26:27 so i think i need to get the UUID from the device Jul 12 01:26:40 I'm not sure, haven't touched bluetooth Jul 12 01:26:47 Worth trying both Jul 12 01:27:02 i used getUuids() on the device and it gave me 3 Jul 12 01:27:08 i tried all of them and i have the same problem Jul 12 01:27:24 Maybe it's something else causing the problem? Jul 12 01:27:27 Not the UUID Jul 12 01:27:37 well i'm following the example code pretty closely Jul 12 01:27:45 What does the example say it use? Jul 12 01:27:51 it doens't Jul 12 01:27:55 Ouch lol Jul 12 01:28:05 http://developer.android.com/guide/topics/connectivity/bluetooth.html Jul 12 01:28:31 Can you connect to it non-programmatically? Maybe you can click on information in bluetooth or something Jul 12 01:28:51 the device is already paired in the settings Jul 12 01:29:18 brb Jul 12 01:35:14 when the TextView and EditText lines are added, I get a null pointer exception. When I remove those 2 lines, the code works. Any idea why adding those lines causes such an error? Jul 12 01:35:18 http://pastebin.com/q8yrzahR Jul 12 01:35:46 Ugh, some guy on twitter claiming they got spam apps when they installed my app Jul 12 01:35:57 I'm guessing because I haven't set the content Jul 12 01:36:05 Do you need permissions to install home screen shortcuts? Jul 12 01:37:29 ffs my galaxy tab 10.1 cant render a video Jul 12 01:37:32 but my galaxy nexus can Jul 12 01:37:38 guess imwatching on a 4.65" screen tonight Jul 12 01:40:13 im trying to include a java library called martyr, which is a library for connecting to irc servers, etc. This library requires log4j. log4j does not compile in android during runtime. can someone please please help me understand how to fix log4j or how to remove log4j from martyr Jul 12 01:40:23 the problem line is this: editText.setText("hi"); why would this throw a fatal exception? Jul 12 01:41:58 Daron: the martyr devs should be using slf4j Jul 12 01:42:18 that way, you can then use slf4j-android, and they can use log4j or whatever Jul 12 01:45:03 canadiancow: get a TV Jul 12 01:45:16 i dont think its in active dev. Jul 12 01:45:21 g00s Jul 12 01:45:54 is it a way to remove all log4j calls from the package..i guess that would be done in eclipse if thats possible Jul 12 01:46:11 i mean an EASY way Jul 12 01:48:45 use pro guard on the jar Jul 12 01:49:07 pro guard on my log4j jar? Jul 12 01:49:20 no, on the one that contains log4j calls Jul 12 01:49:39 hi all Jul 12 01:49:39 strip out all log4j calls Jul 12 01:50:00 thank you Jul 12 01:50:01 does anyone know if its possible to invoke a method on all instances of a class? Jul 12 01:56:40 Belacan: i am unsure what you even mean by that Jul 12 01:57:09 umm Jul 12 01:57:16 well Jul 12 01:57:16 i mean, on the one hand sure; if you have some data structure that holds a bunch of objects, you just iterate over them and call the method on each one; done Jul 12 01:57:34 Ok thats the only way to do it? Jul 12 01:57:38 theres no shortcutr Jul 12 01:57:46 but if you're thinking in terms of your program somehow not actually tracking where it puts its objects, but being able to reach into the heap and find them and do something Jul 12 01:57:47 then uh Jul 12 01:57:50 no? Jul 12 01:57:57 what is it you are actually trying to accomplish? Jul 12 01:58:24 well all instances of an object called Valve i want to run .enable() on them Jul 12 01:58:36 I thought there might be a way to do it in one foul sweep Jul 12 01:58:57 Thanks Jul 12 02:00:35 yeah but where are these Valve instances coming from? this *is* your own app, right? Jul 12 02:03:18 Belacan: if this is your app , just make Valve responsible for its own creation. make the ctor provate. have it register all created instances in a weakhashmap Jul 12 02:03:34 or something along those lines Jul 12 02:08:28 interesting Jul 12 02:08:30 thanks Jul 12 02:08:32 ill have a look into that Jul 12 02:10:31 TIL my camera's CCD sensor gets noisier when the body reaches 120'f :/ Jul 12 02:38:32 anybody know what could possible the difference in android 8 and onwards that could cause video in fragment to be played in the background causing multiple video being played? Jul 12 02:39:31 at the same time? Jul 12 02:50:26 http://developer.nvidia.com/content/nvidia-nsight-tegra-has-arrived Jul 12 02:51:23 I have a very long string that takes up several screens' worth of room when wrapped. What might be the best way to go about having it automatically scroll vertically from the bottom, all the way through, and completely off the top? Jul 12 02:52:07 Handler.Callback handleMsg returns a boolean, what should you return? Jul 12 02:53:23 ok so i got my looper/handler working (finally) but i have a question related to the message queue. is it a queue or a stack. i.e. if i post messages A, B and C in that order are they processed in THAT order? Jul 12 02:54:13 Jug6ernaut: heh, that still isn't documented :D Jul 12 02:54:21 Jug6ernaut: true if you handle the message :) Jul 12 02:54:33 lol ok that sux Jul 12 02:54:41 well it sux partially. in that not knowing sux Jul 12 02:54:56 g00s k awesome Jul 12 02:55:20 oh bleh. thought u were responding to MY question lol Jul 12 02:56:27 hello all **** ENDING LOGGING AT Thu Jul 12 02:59:58 2012