**** BEGIN LOGGING AT Wed Aug 14 02:59:59 2013 Aug 14 03:03:13 hello Aug 14 03:03:34 how do I exit debug mode in the ADK Aug 14 03:03:38 ? Aug 14 03:04:44 by pressing the x Aug 14 03:05:14 where Aug 14 03:05:47 found it! Aug 14 03:05:55 it is not an X Aug 14 03:06:24 there are two buttons Debug and Java in the top right corner Aug 14 03:07:06 that just changes perspective, it doesn't exit debug Aug 14 03:07:48 sorry Aug 14 03:07:59 didnt explain it correctly Aug 14 03:08:22 that is what I wanted Aug 14 03:20:00 hey guys, I'm new to android development (and app development in general). I currently writing a demo app which requests a url containing an html file and puts the result in a textview Aug 14 03:20:15 the problem is, I'm not sure how to determine the character encoding of the input stream Aug 14 03:20:24 or if this is even necessary Aug 14 03:20:32 from what I understand, I need to extract this information from the content-type Aug 14 03:20:50 and handle the input stream accordingly Aug 14 03:21:00 is this correct? Aug 14 03:22:32 probably Aug 14 03:22:57 if you own that html file and know in advance what encoding it is then you can skip looking at Content-type Aug 14 03:23:50 Hello Aug 14 03:24:37 wondering.. when someone is releasing a beta.. whats a good way to publish an app that collects some amount of log data so that if someone goes wrong the user can send the logs? Aug 14 03:40:18 anyone? Aug 14 03:40:52 anyone on the verizon network with an S4? Aug 14 03:45:36 Hey guys I've updated eclipse and I don't have the ADT version of eclipse anymore Aug 14 03:45:45 and is now the normal eclipse juno instead :( Aug 14 03:47:10 \o/ Aug 14 03:47:29 CocoStorm the best install is platform runtime + adt installed later Aug 14 03:48:34 Hello! Aug 14 03:48:41 g00s, hm instead of the sdk? Aug 14 03:48:52 ya Aug 14 03:49:12 ~55MB d/l Aug 14 03:49:15 g00s, I don't like it :( there's like no DBMS and logcat or at least they're hiding Aug 14 03:49:19 I am looking for someone to alter an OEM rom here. is it the right place to ask? Aug 14 03:49:34 logii not really; see topic :) Aug 14 03:49:52 opps, imma bounce again Aug 14 03:49:55 Do I need to reinstall the android sdk? :S Aug 14 03:49:58 thanks! Aug 14 03:50:15 z4ce: crashlytics Aug 14 03:52:15 that looks kind of cool... but only focused on crashing Aug 14 03:53:09 for feedback i usually start an email compose intent Aug 14 03:54:18 for example.. I've seen a condition where my app can sometimes not receive a callback from the socket library I am using.. yet I'm not sure what triggers it and it happens rarely Aug 14 03:54:48 I'd raelly like to have some kind of debug log writing for a select group of testers.. and if they see the app never show "connected" send me the log Aug 14 03:57:42 I see there are things like log4j for android.. and I could write it to an SDCARD Aug 14 03:58:25 but I wonder.. is that the recommended approach? This must be a common problem, I would think Aug 14 03:59:34 i really need a way to retrieve all my photos from a locked phone Aug 14 03:59:59 * jr3 rages Aug 14 04:10:38 just email yourself logcat output Aug 14 04:10:42 hi Aug 14 04:10:51 how would you guys after repo sync check the complete change logs? Aug 14 05:04:16 i just most of the 2nd book in the oreilly gradle series (read the first one this morning) . man, these are terrible! boo oreilly! Aug 14 05:04:44 in this case, the docs are definitely better for the most part Aug 14 05:05:28 i'm striking out at 0 / 3; 2 crappy gradle books and 1 crappy groovy book. i hope the manning stuff is better. oh yeah, those are 42% off today and tomorrow Aug 14 05:08:45 oreilly books never did a hell of a lot of rme Aug 14 05:08:47 for me Aug 14 05:09:46 some are still pretty good; git 2e was very good Aug 14 05:16:31 ron_frown but in general i'm warming up to the gradle stuff; even if groovy itself (from the 1st book i was reading on it) is a hack and the android plugin is in flux Aug 14 05:16:56 the secret is really not mixing imperative logic in the build script, no surprises - we learned that with scons Aug 14 05:17:01 lets invent more languages and more layers and more packange managers and build systems Aug 14 05:17:09 the more the merrier Aug 14 05:17:14 groovy has been around for a while Aug 14 05:17:21 yeah Aug 14 05:17:24 definitely not of the same caliber minds as scala Aug 14 05:17:32 just reminds me of perfume sprayed on shit Aug 14 05:17:37 not really fixing anything Aug 14 05:17:53 I'm jaded Aug 14 05:18:01 I've got 0 respect for java =) Aug 14 05:18:05 and anthing to do with it Aug 14 05:18:12 and if it has oracle's name on it Aug 14 05:18:14 well, yeah - i mean it /does/ bring more complexity to the picture if you aren't used to gradle Aug 14 05:18:16 its just about the same Aug 14 05:18:30 i remember the first time i learned maven, going through the sonatype book Aug 14 05:18:42 it was different enough from ant i was confused a bit Aug 14 05:18:50 honestly I learned about maven and was like I dont gt it... then I asked around and read more Aug 14 05:18:53 and was still like I dont get it Aug 14 05:18:54 haha Aug 14 05:19:00 reminds me of infomercial problems Aug 14 05:19:11 invent problems to solve them and sell someone on the solution Aug 14 05:19:17 i get it now, but not familiar with the latest maven advancements Aug 14 05:19:28 man, they had the shittiest plugins that could bring the whole system down Aug 14 05:19:31 like fucking wagon Aug 14 05:19:36 christ, wat a pos Aug 14 05:20:08 i remember the jar plugin didn't make manifest entries right for a while, that fucked stuff up Aug 14 05:20:08 there has been one java concept/project/whatever that I actually thought had some resemblence of innovation Aug 14 05:20:12 and that was play framework Aug 14 05:20:26 so, even if maven was ok, the plugins were often bad Aug 14 05:20:34 the rest of the java ecosystem looks exactly like how I'd expect java engineers to build shit Aug 14 05:20:52 MOAR XML Aug 14 05:21:02 layers upon layers upon layers Aug 14 05:21:18 lets abstract shit into oblivion, for no real reason in the hopes it'll benefit later Aug 14 05:21:32 over complicate, over engineer, and not care about simplicity or elegance Aug 14 05:22:01 java spec is pretty big these days, i think 700 pages Aug 14 05:22:37 ugh, i remember back in teh day looking at writing gnome apps Aug 14 05:22:49 ahh thank god for radio, removing some of this rage Aug 14 05:22:54 once in a while, on the gnome list, people would ask about what language binding there should be Aug 14 05:23:01 python-gnome was pretty popular Aug 14 05:23:08 :...holy diver... youv'e been down too long in the midnight sea... oh whats becoming of me...:" Aug 14 05:23:14 then , once in a while, somebody would bring up java, and everybody would laugh Aug 14 05:23:23 didn't they change their official supported language about every 3 months? Aug 14 05:23:24 it was assumed, known, that java on the desktop sucked Aug 14 05:23:32 I've looked at gobs of diff languages Aug 14 05:23:37 and I keep coming back to .net Aug 14 05:23:41 so we decided to use it for resource constrained devices instead :/ Aug 14 05:23:49 sadly I think its one of the few that sees great support and regular progress Aug 14 05:23:59 well .net platform, c# language Aug 14 05:24:07 I like the idea of vala Aug 14 05:24:19 but it looks like c# that was shat upon, and leave out part of what makes c# so great =) Aug 14 05:24:28 some of vala is actually quite nice Aug 14 05:24:38 vala sounds familiar .... Aug 14 05:24:44 its gnomes new go to lang Aug 14 05:24:45 haha Aug 14 05:24:50 I think gnome Aug 14 05:24:51 omg Aug 14 05:24:54 no more c++ ? Aug 14 05:25:07 c++ is still supported Aug 14 05:25:11 rust, vala, lol Aug 14 05:25:28 vala is c#'ish that gets basicallhy compiled to c that gets compiled to native Aug 14 05:25:36 which gives you that whole can I really debug this shit? Aug 14 05:26:03 any good solutions other than running a "slow" timer to having multiple views being observed and updated at once onscreen? for example, a listview with a determinate progress indicator in each row that receives updates frequent enough that it clogs the UI thread's message queue. Aug 14 05:26:04 the whole c native interop stuff in vala is nice tho Aug 14 05:27:05 ron_frown why didn't they use mono ? Aug 14 05:27:09 who Aug 14 05:27:13 gnome Aug 14 05:27:20 honestly a lot of FUD if I had to guess Aug 14 05:27:21 i mean, vala ... Aug 14 05:27:40 well, licensing is important. thats basically why BSD uses clan/llvm instead of gcc Aug 14 05:27:42 mono in linux is fucking NICE Aug 14 05:28:00 mono can compile with llvm afaik Aug 14 05:28:12 http://www.mono-project.com/Mono_LLVM Aug 14 05:28:34 mono gets me hard Aug 14 05:28:44 parts of mono are more advanced and elegant than how ms managed stuff Aug 14 05:28:51 fuck it, i don't want to deal with that crap any more. in 5 years i hope i'm in school for statistics Aug 14 05:29:05 r, python, julia, etc Aug 14 05:29:06 I build some real real basic statistics shit at work Aug 14 05:29:08 and it sucks balls Aug 14 05:29:31 but I must say I've developed some stuff I'm real proud of if I could explain it to anyone Aug 14 05:29:39 so vala compiles to c Aug 14 05:29:46 like, i hate shit compileing to JS also Aug 14 05:29:49 or gets converted to c and compiled Aug 14 05:29:53 g00s as do I Aug 14 05:30:02 but too many retards touting js as th next big thing Aug 14 05:30:08 lemmings I say Aug 14 05:30:21 it seems like they are building so many abstractions on shaky abstractions Aug 14 05:30:31 based on a shaky platform? Aug 14 05:30:46 oh i mean with compiling to JS Aug 14 05:31:02 I mean cofeescript I'd use to just be able to tolerate js better Aug 14 05:31:09 classes and shit just make sense Aug 14 05:31:11 asm.js, etc Aug 14 05:31:32 fucking js needs to die too Aug 14 05:31:42 totally agree Aug 14 05:31:46 ron_frown why does everything suck ? Aug 14 05:32:01 shit I bet if all these html5/js as an app platform Aug 14 05:32:08 could ditch js and use ANYTHING ELSE Aug 14 05:32:16 they'd be significantly better Aug 14 05:32:38 g00s people are willing to accept whats there because its there, and too big of pussies to attempt to REALLY solve the problems Aug 14 05:32:57 and there are too many dumbfuck programmers out there that dont know any better than to rave about js Aug 14 05:32:58 ron_frown: open source that table control yet? Aug 14 05:33:06 JakeWharton not yet Aug 14 05:33:20 ron_frown gradle, aar, now ! Aug 14 05:33:32 JakeWharton - if you havent noticed, I'm milimeters from walking away from android... lol Aug 14 05:33:54 this can be your parting gift Aug 14 05:33:55 and so frownOS was born Aug 14 05:34:24 well I havent changed shit in there in... at least 6mo Aug 14 05:34:33 but its been chugging along in our apps for years Aug 14 05:34:38 maybe i can look into that Aug 14 05:35:04 ron_frown get permission first, so you don't wind up in kail next to thet goldman sachs dude Aug 14 05:35:08 *jail Aug 14 05:35:28 Hi. The numbers associated with Swiping events on my development platform is always (+-1,0) or (0,+-1), never (+-1, +-1). Is this normal Aug 14 05:36:08 what is required to compile Android projects without using an IDE built for Android dev? Aug 14 05:37:13 ant & vi Aug 14 05:37:24 gradle, vi Aug 14 05:37:34 emacs, sublime, edlin Aug 14 05:37:38 preferably vim Aug 14 05:37:39 :P Aug 14 05:37:43 or maven Aug 14 05:37:43 I do use vim. Aug 14 05:37:50 emacs has an auto-import tool for jde Aug 14 05:38:02 I don't know of any vim equivalent Aug 14 05:38:05 and it is very handy Aug 14 05:38:08 Ologn eclim-emacs looked pretty kick ass Aug 14 05:38:15 sanitypassing also check out eclim Aug 14 05:38:36 I dont like to torture myself Aug 14 05:38:40 does that just embed vim into eclipe? Aug 14 05:38:45 or eclipse Aug 14 05:38:57 (keyboards do not like me) Aug 14 05:38:58 I'd rather something that had at least the minimal intellisense / error checking / debugging support Aug 14 05:39:22 sanitypassing no, it uses eclipse for java smarts Aug 14 05:39:32 g00s, it looks good for someone who like Eclipse. I don't know of any Eclipse features I want. Aug 14 05:39:33 you use vim or emacs itself Aug 14 05:39:42 you dont really use eclipse Aug 14 05:39:49 okay. Aug 14 05:40:10 for eclim, there are 3 scenarios, but if you really like vim, you would do vim + headless eclipse Aug 14 05:40:38 I do enjoy myself some vim. Aug 14 05:40:54 what kind of performance impact would running eclipse headlessly have? Aug 14 05:41:04 why would you Aug 14 05:41:18 you are looking for console apps Aug 14 05:41:19 ? Aug 14 05:41:27 Ologn check out http://www.skybert.net/emacs/java/ Aug 14 05:41:28 define console apps? Aug 14 05:41:39 not gui apps? Aug 14 05:41:50 fair definition. Aug 14 05:41:58 if you are using eclipse why the fuck not just use eclipse =) Aug 14 05:42:00 I'm just looking for a way to do android dev without relying on an IDE Aug 14 05:42:10 the point is that I don't wnat to use eclipse Aug 14 05:42:13 javac Aug 14 05:42:18 I wouldnt want to use eclipse either Aug 14 05:42:19 dex Aug 14 05:42:20 aapt Aug 14 05:42:23 done Aug 14 05:42:35 * Bleeptech giggles maniacally.. Aug 14 05:42:42 I just use ant... Aug 14 05:42:59 There's sanity checking for code, but none for the coders.. LOL Aug 14 05:43:11 Bleeptech: have you seen my name? Aug 14 05:43:34 sbt + vim Aug 14 05:43:37 be happy Aug 14 05:43:45 there is no better way Aug 14 05:43:45 yeah.. It's kinda like a kidney stone isn't it.. Aug 14 05:44:25 you cannot get better responsiveness with any other build tool Aug 14 05:45:03 gradle can't do triggered, continuous builds Aug 14 05:45:11 where can I find sbt? Aug 14 05:45:22 are you on a mac? Aug 14 05:45:36 No. I'm on Linux. Aug 14 05:46:03 scala-sbt. org Aug 14 05:46:14 simply-complex build tool Aug 14 05:46:26 it's an acronym Aug 14 05:46:35 and use my plugin, https://github.com/pfn/android-sdk-plugin Aug 14 05:47:06 it's less complex than maven and gradle and ant Aug 14 05:47:14 okay, one last question: how can I test my app? I've already got an Android tablet that I can use, but I'd need to know how to get the app on to the device itself Aug 14 05:47:42 sanitypassing: adb install Aug 14 05:47:45 you can't create any maven project in less than 20ish lines of xml Aug 14 05:48:02 where do I find adb? Aug 14 05:48:19 sanitypassing, the sbt plugin installs to device, too, assuming you've installed the android sdk Aug 14 05:48:37 Okay. Aug 14 05:48:48 is there a way to install the SDK without downloading eclipse? Aug 14 05:48:51 pfn: i like that you measure in lines of XML Aug 14 05:48:54 yes Aug 14 05:48:56 literally nobody touches Maven's XML Aug 14 05:49:30 sanitypassing: http://developer.android.com/sdk/index.html - click "download for other platforms" for the full download list Aug 14 05:57:56 sanitypassing don't forget a nice tmux config :) one window for logcat, one for starting the emu, some for vi windows Aug 14 05:58:12 one to drive the build :D Aug 14 05:58:42 for some reason on os x, i can't start the emu in a bg process, i think its haxm Aug 14 05:59:31 and when the emu stats up from eclipse, i can't fucking shut down eclipse, its nuts Aug 14 05:59:34 *starts Aug 14 05:59:36 I use xmonad. I need no tmux! Aug 14 05:59:44 awesome ! Aug 14 05:59:48 i wanted to try i2wm Aug 14 05:59:50 lol Aug 14 05:59:53 i3wm Aug 14 06:00:57 i3 is supposed to be pretty cool Aug 14 06:01:29 I like xmonad though.. it feels more... minimal? Aug 14 06:01:57 i couldn't figure out how to configure it :| Aug 14 06:02:11 it's a pain, but once you get the hang of it, it's still a pain, just a little less. Aug 14 06:04:06 basically you just need to import XMonad and run main = xmonad defaultConfig { terminal ="xxx" modMask = some_mod_mask }, and that's pretty much it. Aug 14 06:04:30 you can get more fancy with it, like I have with mine, but that's pretty much the bare minimum necessary. Aug 14 06:05:22 nice ;) Aug 14 06:07:20 sanitypassing do you use nerdtree or anything in vim ? Aug 14 06:07:27 nope. Aug 14 06:07:34 thats where i get fucked up, navigation Aug 14 06:08:05 my projects rarely get big enough to where navigation is a problem. Aug 14 06:08:16 but that's mostly because I'm too lazy to work on them Aug 14 06:08:46 fuck, this is android, you're going to have like 100 xml layouts Aug 14 06:09:03 baaah XML. Aug 14 06:09:20 it's 2013, damn it. Can't we just all use JSON and be happy? Aug 14 06:09:30 this is java world mayng Aug 14 06:09:58 baah. Aug 14 06:10:07 I'll write a JSON -> XML compiler Aug 14 06:11:15 there isn't anything like xslt for json is there Aug 14 06:11:46 dunno. Aug 14 06:12:02 sanitypassing it would probably be easier to use xtext and make your own DSL Aug 14 06:12:12 oh noes, eclipse ! Aug 14 06:12:21 eh... Aug 14 06:12:36 xtext is fucking amazing Aug 14 06:13:17 i think there needs to be a higher level of abstraction that compiles all your shit into res/ xmls Aug 14 06:13:31 res/ is an API for a machine Aug 14 06:14:04 and al the shitty little microformats Aug 14 06:20:59 that is trivial in the gradle system Aug 14 06:21:26 the XML in Android is nice Aug 14 06:21:36 IDE writes 99% of it for you Aug 14 06:22:30 I can probably write a fairly complex layout in less characters than a tweet Aug 14 06:23:14 i was thinking something like a DSL for iOS storyboards Aug 14 06:23:25 you wire up activities, fragments, etc Aug 14 06:23:47 i'd buy that except the activities and fragments part Aug 14 06:24:08 views in a single activity maybe Aug 14 06:24:17 manage state in a micro-framework Aug 14 06:24:39 yeah, its an interesting thing to think about Aug 14 06:24:54 i'm doing it now. it's glorious Aug 14 06:26:18 not fully baked yet, but the results thus far are staggering. you take the android out of android turns out you can actually make a really nice app Aug 14 06:27:24 nice, are you guys thinking about using it at square? or is this something you've been working on outside ? Aug 14 06:27:44 used in two apps at work Aug 14 06:34:06 JakeWharton are you taking a code gen approach, or is this a runtime library (or both?) Aug 14 06:34:14 all runtime Aug 14 06:34:49 for now. no reason to code gen Aug 14 06:37:30 :) Aug 14 06:47:29 hope the project goes well JakeWharton . if its release open source i'll be curious to check it out Aug 14 07:10:10 I get via json data this String: "2013-08-09T20:30:00+00:00" I want format it to "dd-MM-yyyy HH:mm" how can I do that? Aug 14 07:56:58 is it easier to use jsonReader or the other approch with jsonobject/jsonarray with for loops, to parse a bigger json response Aug 14 07:58:22 ? Aug 14 08:01:32 I'm trying to run the Type-a-Number game from the emulator (Device: Nexus 4; Target: Google APIs - API Level 18). When I press the G+ sign in button, I get an alert message saying "This app won't run unless you update Google Play services" Aug 14 08:02:03 You're using a Google API/ARM emulator image? Aug 14 08:02:04 Isn't google play services supposed to be present at this target by default? Aug 14 08:02:36 kjeldahl: Yes Aug 14 08:02:41 If you do, and it's API level 17+, I think it should work. Anything less will not however. Aug 14 08:02:58 I'm on API Level 18 Aug 14 08:03:14 Have you attached a google account to the emulator image? Aug 14 08:03:28 How do I do that? Aug 14 08:04:20 Settings->Add account... Aug 14 08:04:31 Okay Aug 14 08:05:14 The error message still does not make any sense though.. I've confirmed I've gotten G+/Play login working on my own 17+ emulator images, so I'm a bit surprised you're struggling. Aug 14 08:07:14 I've signed in into my account from the settings. It still shows the same error Aug 14 08:09:04 You're sure you're running the latest versions of everything, and that you app is bundling the latest version of the Play API? Check you Android SDK download manager... Aug 14 08:11:15 Google Play Services is revision 10, Android SDK Tools is 22.0.5, build- and platform tools are 18.0.1. Just making sure you check the simple things first. Aug 14 08:12:27 The Porject Build Target of google-play-services_lib was set to API Level 10 Aug 14 08:13:12 I'll change it to 18 and try again Aug 14 08:13:12 And increasing it fixed it? Aug 14 08:13:15 ah Aug 14 08:13:53 I'm using gradle, and I think the dependencies inherit those settings from my own project. Not sure though. Aug 14 08:16:05 I have target of 15 in my app, and the G+/Play stuff still works as long as I am running on emu 17+. Aug 14 08:17:10 Oh Aug 14 08:17:17 Yeah. I'm still getting the same error Aug 14 08:18:39 "Google Play Services is revision 10, Android SDK Tools is 22.0.5, build- and platform tools are 18.0.1" Aug 14 08:18:48 They're all in the latest version Aug 14 08:19:32 And you are confident that you have the right settings in the emulator? Google APIs, Platform 4.3, API Level 18, ARM CPU/ABI? Aug 14 08:21:41 The app you're testing, it's YOUR app right, you're compiling/packaging it? Aug 14 08:22:04 `Platform 4.3` means? Aug 14 08:22:19 Jellybean 4.3 Aug 14 08:22:26 i.e. Android version, API level 18. Aug 14 08:22:41 Yes. I got the sample game code from Google play services developer site Aug 14 08:22:53 ^^ Yes Aug 14 08:22:54 But there is a separate column for it when you run "android avd".. Aug 14 08:23:04 "Platform" -> 4.3 Aug 14 08:24:00 I checked in Settings-> About Phone ... Its 4.3 Aug 14 08:26:16 Any reason why you're not able to verify the emulator settings using "android avd", alternatively start the avd manager from the Android SDK Manager in the menu tools->Manage AVDs... Aug 14 08:27:59 It is platform 4.3 Aug 14 08:28:11 CPU/ABI? Aug 14 08:28:39 ARM (armeabi-v7a) Aug 14 08:29:57 Sounds like everything is correct then. No idea why you are having trouble. There is zero information out on what is supposed to work, but my own testing with my own app I get the play store accountselector and login apis (G+) working just fine. No idea why you're having trouble. Aug 14 08:31:03 But the error message indicates you are NOT running the latest version of stuff. But based on what you've written, I believe you do. Aug 14 08:31:39 Probably a good idea to recheck your builds etc that everything gets built with the versions you are expecting, but now I'm just speculating. Aug 14 08:39:54 kjeldahl: Logcat has this warning message: "Google Play services out of date. Requires 3225100 but found 3158130" Aug 14 08:40:11 Is there a way to update it manually? Aug 14 08:41:33 http://stackoverflow.com/questions/17858215/google-play-services-out-of-date-requires-3159100-but-found-3158130 Aug 14 08:42:22 https://code.google.com/p/android/issues/detail?id=57880#makechanges Aug 14 08:42:33 Which really makes me wonder why my stuff does not have this issue. Aug 14 08:46:38 guys Aug 14 08:46:46 my extented view is http://pastebin.ca/2431753 Aug 14 08:47:00 but when I run program it says app stopped working Aug 14 08:48:31 I get via json data this String: "2013-08-09T20:30:00+00:00" I want format it to "dd-MM-yyyy HH:mm" how can I do that? http://pastebin.com/s0XRNnRK Aug 14 08:48:31 I get the error: MatchTimeFormat cannot be resolved to a variable Aug 14 08:49:09 hello. i would like to build 4.3 for haida. however i am stuck at repo script. it tells me to check git version, but I have most recent version. I am using arch linux and have both python26 and python (3.2) packages installed. Aug 14 08:49:15 here is the log http://pastebin.com/77KfBPni Aug 14 08:52:23 Slamd64: if the issue is python2 vs python3 related (afaik arch is the only distro where python3 is "python"), you might want to create a symlink to python2 from ~/bin/ and add ~/bin to your path at the front Aug 14 08:53:01 s33k: If you're using Eclipse, you _may_ have to delete your old Play Services project and re-add the latest one to get it updated. Aug 14 08:53:17 and bitch to the python folks for not thinking about a sane co-existence of py2 and py3... Aug 14 08:53:25 mitch0: it seems to be the issue, thanks. Aug 14 09:05:17 kjeldahl: copied the latest google-play-services_lib into workspace. Still no change Aug 14 09:06:48 Ok, just in case it helps, this is the dependency that gradle pulls in from my build file: compile 'com.google.android.gms:play-services:3.1.36' Aug 14 09:07:57 I see the m2repository in my sdk folder also has 3.2.25 which is more recent. MAYBE if you pull in 3.1.36 it will work. Aug 14 09:08:17 (if you have it that is..) Aug 14 09:09:06 I see my repo also has 3.1.59, but my build file specifically uses 3.1.36, so that's the one I would recommend you test (since it's working at my end). Aug 14 09:13:45 kjeldahl: Where can I get the old version of google play services? Aug 14 09:18:08 Looks like that can be challenging yes. Aug 14 09:23:09 kjeldahl: it says "Requires 3225100 but found 3158130". But I find this in AndroidManifest.xml of google-play-services_lib: `android:versionCode="3225130" Aug 14 09:23:48 I have a more advanced version of google play services than required, but the error says otherwise Aug 14 09:24:05 s33k: I think that makes sense. You have a newer version, but the emu images have an older one. My current theory is that you actually need to compile with an older version of the sdk based on what I've observed. Aug 14 09:25:36 But the error `Requires 3225100 but found 3158130` doesn't make sense Aug 14 09:25:51 I'm not able to find `3158130` anywhere in my workspace Aug 14 09:29:28 is there any reason to implement contenproviders for private app use, instead of direct sqlite cursor access? Aug 14 09:30:24 Hi guys! Do you have any recommendations on crash reporting software that is open-source and supports both iOS and Android? I have heard of ACRA for Android and QuincyKit for iOS but nothing that supports both platforms. Aug 14 09:34:34 s33k: If you haven't given up already, I've uploaded my whole google/m2repository to https://dl.dropboxusercontent.com/u/378486/google-m2repository.tbz. It includes the 3.1.36 version if you still want to try. Aug 14 09:35:26 * kjeldahl runs off to grab lunch. Aug 14 09:35:53 kjeldahl: Thanks! Aug 14 09:37:34 Have you set the file to be publicly accessible? I get a "The connection was reset" erro while trying to access the url Aug 14 09:42:35 I thought I had. Aug 14 09:44:22 Does this one work https://www.dropbox.com/s/p30mem4myv3p2iw/google-m2repository.tbz Aug 14 09:57:00 * andyland` is still wondering what crash reporting software you guys use?! Aug 14 10:01:33 andyland`, we use crashlytics for both iOS/Android Aug 14 10:01:37 not opensource though. Aug 14 10:03:46 Mavrik: That's what I was afraid of, As a startup we are trying to cut back on costs Aug 14 10:06:55 andyland`, well crashlytics is free. Aug 14 10:12:14 Are you using crashlytics with Android Studio? Aug 14 10:12:58 well Aug 14 10:13:02 it's a library Aug 14 10:13:08 and no, I'm not using android studio. Aug 14 10:14:46 hello, is there a haxm emu option for android 4.x+ ? Aug 14 10:16:14 hello… can anyone quickly spot why i'm getting a NPE in the following code? public static void applyVisibility (int visibility, View... views){ Aug 14 10:16:14 if(views != null){ Aug 14 10:16:15 for (View view : views) { Aug 14 10:16:15 view.setVisibility(visibility); Aug 14 10:16:15 } Aug 14 10:16:16 } Aug 14 10:16:18 } Aug 14 10:16:20 Mavrik: Well antying that is "free" and not open-source I am very sceptical of. Maybe they just sell your data they gather Aug 14 10:16:22 found the answer, thnx Aug 14 10:16:30 i thought I had a null check with views!=null; Aug 14 10:16:50 dck28: one of the views is null. Aug 14 10:17:26 * alankila hates the fact 'findViewById' doesn't throw if it can't find the view Aug 14 10:17:57 andyland`, well, as they say, beggars can't be choosers. Aug 14 10:18:10 if you don't want people to sell your data, make sure you're paying for storage Aug 14 10:18:18 one way or another. Aug 14 10:18:54 alankila: but doesn't the for each construct only loop through non null elements? Aug 14 10:19:01 dck28: no. Aug 14 10:19:15 alankila: aahha… thanks Aug 14 10:28:49 kjeldahl: The second one doesn't work either Aug 14 10:32:29 hi all, here's one thing I m curious about : when I create icons Images of different sizes (I mean xdpi hdpi mdpi xhdpi) and put them in corresponding drawable folders. If user get's them all by downloading the app from google play or just the one's for his specific screen density? Aug 14 10:32:57 s33k: Well, it's in my public folder, and the second link was specifically shared as a public link. Aug 14 10:33:03 dear google, when will you make 'adb push file /sdcard' work like 'adb push file /sdcard/', thx Aug 14 10:33:32 s33k: Must be something at your end. I just logged out of Dropbox and tried the second link. Works fine. Aug 14 10:34:33 kjeldahl: The link might be blocked from office Aug 14 10:35:00 I tried downloading from my remote server, and it worked Aug 14 10:40:39 oh, looks like CM produced 10.2 Aug 14 10:41:08 No doubt broken as hell, if I were smart I'd let other people spend a week ironing out the worst bugs first Aug 14 10:41:42 but I'm not, and I'm curious to see 4.3. So, in it goes. Or went. Just booting. Aug 14 10:41:46 if you were smart you wouldn't use it :P Aug 14 10:42:05 if I didn't do this I'd have to buy new phones far more often than I do :-p Aug 14 10:44:30 pfn, Aug 14 10:46:40 pfn, JesusFreke http://pastie.org/private/piaqxpsct3ecr16mpdcpg this is a test exception the 11more stands for? Aug 14 10:48:15 Damn ... may have to clear private data. The dialer app doesn't run now, I think it's a different class altogether but the launcher seems to reference the old apk or something. Aug 14 10:49:59 hey guys, shold I provide different drawables for ImageViews? (xdpi, mdpi, ldpi, hdpi) Aug 14 10:50:28 defuera: only if you want to control precisely what they look like. Otherwise, just provide the highest resolution version and let android scale them down Aug 14 10:52:24 kjeldahl: play-services-3.1.36 is present as a .aar file Aug 14 10:52:24 alankila, and if I do, will user get them all by downloading the app from market of he will just get the specific drawable for his screen size? Aug 14 10:52:38 How can I get the actual jar file/source out of it? Aug 14 10:52:50 I've never used maven before Aug 14 10:53:28 defuera: android works with multiple screen resolutions. It will automatically search and use the most appropriate resource you have provided or synthesizes one if you did not provide one. Aug 14 10:53:37 No idea unfortunately. I guess Eclipse with the Android Plugin do not support those yet? Aug 14 10:53:43 and yes, all of them will be in the APK Aug 14 10:53:50 hmm, d.android.com giving an error for anyone else? Aug 14 10:54:02 oh, back Aug 14 10:54:48 alankila, ok, got it, thank you. now I know, that If it possible I shouldn't use different drawables cause it will encrease the app size.. Aug 14 11:01:59 Hello folks. My name is Josep. I'm developing an offline dictionary app. Now I'm in the first stage of decide which data handling procedure to use. I've been searching and I've come to a conclusion, but I would like to share it with you and discuss it if you have another idea. For now I have my data in a Json file. The hierarchy is not quite deep nor complex, but of course there are more than 30.000 Aug 14 11:02:02 entries, weighing a total of 13 mb, so loading all of it into RAM is off the table. Then the solution is to access the data file randomly; now the intuitional solution would be to store the data in a SQLite database, but I've read Jackson streaming API provides an easy way to access json without loading it all into RAM. I would go for SQLite, but you may have another opinion... I would gratefully listen Aug 14 11:02:04 to it :) Thanks! Aug 14 11:03:32 If you need random access, use SQLite. If not, scan/stream away! Aug 14 11:04:24 Eh, if I develop in API 10 for gingerbread, do I still have to compile in upper level APIs for it to work in upper level OS's? Aug 14 11:04:30 I don't think so. Aug 14 11:04:59 kjeldahl: I need to search for "" key and return the value. SQlite is definitely the standard for that, isn't it? Aug 14 11:05:11 sqlite is the obviously correct choice imho. This is structured data, and sql provides search features that probably help Aug 14 11:05:50 30k entries is not much in iteration sense though, if you simply had a flat text file with one row per record and read it through, you could scan it pretty quickly I bet Aug 14 11:06:10 J_Caselles: That's random access, and makes it totally unusable for scanning/streaming. Yes, use SQLite. Aug 14 11:07:08 alankila: I'm not much concerned about speed but having to load the whole file into ram Aug 14 11:07:17 Or, depending on the amount of data, you could heavily compress it and use some reverse indexing scheme or whatever to make lookups faster without sacrificing too much ram. But since you're asking, I think SQLite is the safe bet for now. Aug 14 11:07:19 J_Caselles, For your dictionary app, where are you going to grab all the data from! Aug 14 11:07:27 I mean, Dictionaries are huge! Aug 14 11:07:39 I hope you are not planning to manually insert the data :) Aug 14 11:07:53 I graped it from the server Aug 14 11:07:55 J_Caselles: hence flat text file would probably be better than json. You only need to use garden variety BufferedReader. Aug 14 11:08:08 J_Caselles, mind telling me which website? Aug 14 11:08:20 but in any case I'm not suggesting this, I'm suggesting importing the data to sqlite database -- a problem you need to solve because you can't ship it as binary Aug 14 11:09:17 if there is an event-driven json parser then that kind of API could probably be worked with to read the file through. If not, you may be best off implementing json parsing yourself or using a format that is easy to parse. I suggest some form of CSV for the database. Aug 14 11:10:31 Josh: I may have written an script and queried the website with a list of words and stored the definitions... which drive me to another question. Could this be illegal? :/ Aug 14 11:10:47 J_Caselles, perhaps. Aug 14 11:11:12 * alankila suspects the dictionaries used by dict.org are free Aug 14 11:12:05 actually it's a catalan definition dictionary Aug 14 11:12:25 not in dict.org Aug 14 11:13:38 there's already a 3rd-party online dictionary app using the same online dictionary, so I thought having it offline wouldn't make a difference... Aug 14 11:14:32 J_Caselles: it's definitely illegal in Belgium, so I guess also in the US Aug 14 11:15:13 I can't give you legal advice -- I believe at least in some cases courts have ruled that databases are owned by whoever created them and basically scraping the data could be against the terms of service. There may be a business behind it that depends on people going to the site to access the data to view ads for instance Aug 14 11:15:47 One may not use/steal the contents of a database/website without permission. That's for sure Aug 14 11:15:54 therefore if you defeat that particular business model, you harm the company, and the predictable outcome is that the company could go out of business and the public would be worse off Aug 14 11:18:20 wouterP, alankila You are right, reading legal terms of the website right now :P Aug 14 11:18:25 I did the same thing with my app a couple of months ago, I queried some stuff in a form on a website and used the response in my app -- it turned out I had to take it offline immediately Aug 14 11:19:11 but they didn't care about this 3rd party app already in play store, maybe I can talk to them and ask their permission Aug 14 11:19:48 or they may not even know about android :D Aug 14 11:20:21 If they didn't block your script-based scraper, they probably aren't very vigilant Aug 14 11:20:35 Maybe they gave permission to that 3rd party app?:) Aug 14 11:20:53 yes, I'll contact the developer to check it Aug 14 11:23:56 anyway, it will serve me for learning too. alankila I guess the standard procedure is to ship your database in raw folder and create it at first run, right? Aug 14 11:28:45 J_Caselles: I'd use asset directory Aug 14 11:28:57 but I guess it doesn't really matter Aug 14 11:29:02 I can not read a multidimensional array from json Aug 14 11:29:03 here is my code: http://pastebin.com/WEeyEwQ6 Aug 14 11:29:03 How can I fix it? Aug 14 11:29:44 json data: https://openligadb-json.heroku.com/api/matchdata_by_group_league_saison?group_order_id=1&league_saison=2013&league_shortcut=bl1 Aug 14 11:32:29 okay, one cache wipe later seems like Dialer.apk is back in action. Hopefully that was the limit of problems I will experience. Aug 14 11:33:13 dot8: concrete your problem. what data you can't read? which error do you get? Aug 14 11:35:29 J_Caselles: matchdata -> goals -> goal_getter_name Aug 14 11:35:30 btw, alankila, wouterP, Josh, thank you so much, you helped me a lot Aug 14 11:36:33 I can access "matchdata" without problems Aug 14 11:37:30 dot8: you are missing a node Aug 14 11:37:49 dot8: goals->goal->goal_getter_name Aug 14 11:39:06 dot8: I bet there can be more than one goal, so you will have to create a loop Aug 14 11:39:48 would be much easier to understand json if it had a schema you know Aug 14 11:40:08 know what is possible and what isn't :-/ for instance, is matchdata plural or not? This code assumes it is. Aug 14 11:40:39 or rather, the value of matchdata is array. I guess that is the case. *shrug* without reading the json, hard to say. Aug 14 11:40:47 J_Caselles: I try it with the missing node. just a moment Aug 14 11:41:27 alankila: he does provided the json :P Aug 14 11:41:39 aw man you mean I should read it? Aug 14 11:42:11 are there json pretty-printers that I could use? Reading that makes me want to poke my eyes out Aug 14 11:42:30 looks like I have a program called json_pp. I bet that's it. Trying it. Aug 14 11:42:31 It's fun, like a puzzle Aug 14 11:43:38 alankila: didn't you read where's Wally when little? Aug 14 11:43:41 :P Aug 14 11:43:54 yeh, json_pp did the magic Aug 14 11:43:59 alankila: ew, it's Perl Aug 14 11:44:19 to be honest, this reads like it was originally xml Aug 14 11:44:26 J_Caselles: 08-14 13:42:21.759: E/AndroidRuntime(931): FATAL EXCEPTION: AsyncTask #2 Aug 14 11:44:35 it's customary to do something like blabladatahere Aug 14 11:44:57 dot8: show the new code Aug 14 11:45:35 so it makes no sense to express this as json as goals: { goal: [ { ... }, ... ] } Aug 14 11:45:37 JSONObject jsonObject = goals.getJSONObject("matchdata").getJSONObject("goals").getJSONObject("goal"); Aug 14 11:46:03 dot8: it's JSONArray at the last step Aug 14 11:46:50 dot8: goal is an array, which you have to iterate in order to get all goals Aug 14 11:46:58 Leeds: irrelevant to me, to be frank. I have written perl crap for 10 years in my previous work. Perl is butt-ugly but there's generally no style points to be had, and if you have a program that can do the job 99 % of people don't care how it does the work Aug 14 11:47:25 although there won't be many if this is english soccer leage... :P Aug 14 11:47:41 J_Caselles: Type mismatch: cannot convert from JSONArray to JSONObject Aug 14 11:48:10 J_Caselles: when I do this: JSONObject jsonObject = goals.getJSONObject("matchdata").getJSONObject("goals").getJSONArray("goal"); Aug 14 11:48:33 hmm. As far as I can tell, that should work... the 'goal' is a jsonarray Aug 14 11:48:35 (any english soccer fan here? I expected some outrage!) Aug 14 11:49:03 I guess the problem comes after dot8 Aug 14 11:49:36 you are assigning a JSONArray to a JSONObject Aug 14 11:50:10 JSONArray jsonArray = goals.getJSONObject("matchdata").getJSONObject("goals").getJSONArray("goal"); Aug 14 11:50:45 ah good point. I didn't realize this guy would be confused at compilation time error message Aug 14 11:50:50 sorry ,-) Aug 14 11:51:14 btw, I now they don't teach this in java, but think twice before naming variables, for god sake. JSONObject jsonObject = ... that's ugly Aug 14 11:51:44 yes, the correct naming would be 'JSONArray goal' or 'goals' as I like to name my array types plural Aug 14 11:52:03 though goals is already used by this stupidly generated by json, so that irritates me but nothing one can do Aug 14 11:52:10 alankila: exactly, actually the json is poorly named Aug 14 11:52:45 fragments within fragments, how to avoid? i think i'm almost implementing my own fragments Aug 14 11:53:04 why would you have this extra node goals{goal[{goal1}]}? Aug 14 11:53:19 actually, I'll correct myself. It isn't really stupidly generated as it's clearly algorithmically generated. And I bet it's simply xml schema converted to json. Aug 14 11:54:01 alankila: good point Aug 14 11:54:18 because many libraries can do this sort of botch-up jobs if you let them Aug 14 11:55:29 and considering how good crap like JAXB is on java, I think it's probably better data interchange format than json though some people dislike having to declare containers for their data structures ahead of time Aug 14 11:55:34 beats dicking around at runtime though Aug 14 11:55:50 especially as java makes it so horrible Aug 14 11:56:31 but android has no jaxb, so I guess json is bet it has going Aug 14 11:57:11 J_Caselles: I change the code, but: fatal Exception Aug 14 11:58:16 let us see Aug 14 12:01:16 http://pastebin.com/TAF3ycZj Aug 14 12:02:10 when I do this: //JSONArray jsonArray = goals.getJSONObject("matchdata").getJSONObject("goals").getJSONArray("goal"); Aug 14 12:02:12 the Exception is gone Aug 14 12:03:43 is it possible that 'goals' is null? Aug 14 12:03:54 dot8: error is from line 120, whatever that is. Isn't matchdata value an array? This stuff is so weird Aug 14 12:04:10 there is only one value inside the matchdata array too Aug 14 12:04:40 line 120: JSONArray jsonArray = goals.getJSONObject("matchdata").getJSONObject("goals").getJSONArray("goal"); Aug 14 12:04:42 * alankila starts to doubt his json_pp has correctly reconstructed this crap Aug 14 12:04:46 hi all Aug 14 12:05:02 i need to run Html.escapeHtml on user input Aug 14 12:05:05 no it's definitely the case... matchdata value is an array Aug 14 12:05:20 but that method was introduced in api level 16 qhile my app require api level 8 Aug 14 12:05:49 is there something similar in anyandroid support package ? Aug 14 12:06:20 G10h4ck: the classic answer could be to replace any unusual characters by Ӓ Aug 14 12:06:22 dot8: and the new code, could you paste it? how do you access finally to goal_kepper_name? Aug 14 12:06:53 alankila that approach is error prone and a lot of reinventing the wheel so i would avoid that :( Aug 14 12:07:06 G10h4ck: dude, it's like 5 lines of code. Aug 14 12:07:40 J_Caselles: at the moment I do not access to goal_kepper_name Aug 14 12:07:41 I mean, take a regex, define what chars to replace -- say [^\w ], then replace everything not matched by this by &#; Aug 14 12:07:49 alankila: true, matchdata is an array. actually why would you create a new JSON object if you already parsed matchdata? Aug 14 12:08:18 alankila i think i'll do a function like that but before doing that checks if the escapehtmlfunction is available Aug 14 12:08:20 though since java has no lambdas, the replace loop is irritating Aug 14 12:08:55 dot8: JSONArray pleasenameitdifferent_jsonArray = openbuli.getJSONObject("goals").getJSONArray("goal") Aug 14 12:09:02 the new code: http://pastebin.com/JFnzFQKG Aug 14 12:09:09 G10h4ck: also you can raise your minsdk to 10. There are only like 4 % of phones using any version less than that according to dashboard Aug 14 12:09:28 mine is one of that 4% :( Aug 14 12:10:24 dot8: it's what alankila told, matchdata is not a JSONObject, but a JSONArray. and you have it already in openbuli, no need for getting it again Aug 14 12:10:58 ok Aug 14 12:11:16 can you help me to access it? Aug 14 12:11:38 sure Aug 14 12:13:19 so I do not need line 15. in the pastebin? Aug 14 12:15:41 you mean to access goal_kepper_name? you just do a for (int x = 0; x < pnid_jsonArray; x++) GoalGetter = pnid_jsonArray.getString(x) Aug 14 12:16:42 I have no idea what you are typing but since that compares integer against an object, I doubt it's correct Aug 14 12:16:54 dot8: you do need it, but no need to getJSONArray("matchdata"), you can just use openbuli (openbuli.getJSONObject("goals").getJSONArray("goal") Aug 14 12:17:17 haha, sorry too fast Aug 14 12:17:23 you get it Aug 14 12:17:25 when I do this: JSONArray jsonArray = openbuli.getJSONObject("goals").getJSONArray("goal"); Aug 14 12:17:25 The method getJSONObject(int) in the type JSONArray is not applicable for the arguments (String) Aug 14 12:17:45 jsonArray.lenght() Aug 14 12:18:07 s/lenght/length Aug 14 12:18:56 hmmmm true Aug 14 12:19:24 I'm too much confident right know, not thinking twice Aug 14 12:20:40 of course, as you are doing with the other names in openbuli, you have to put it in the for loop Aug 14 12:23:13 you are getting goals in every match Aug 14 12:26:36 anyway, summing up, get rid of line 15 and get goals->goal->goal_getter_name inside openbuli loop Aug 14 12:27:09 getting off now, nice to meet you alankila Aug 14 12:28:56 Getting off may be a bit TMI, but otherwise the sentiment is appreciated. Aug 14 12:28:57 I put it in the loop after the eclipse error: The method getJSONObject(int) in the type JSONArray is not applicable for the arguments (String) Aug 14 12:29:43 dot8: you need to learn to debug, and to take baby steps. Validate every step on the way. Get everything into variables, like this: Aug 14 12:30:47 the code: http://pastebin.com/mBGb5F0Z Aug 14 12:31:02 JSONObject matchdata = somethingthatreadthefile; JSONArray matchdataArray = matchdata.getJSONObject(0); JSONObject goals = matchdataArray.getJSONObject(0); JSONObject goal = goals.getJSONObject(0); etc. dig into this datastructure one step at a time, and print everything to logs as you go into it. Aug 14 12:31:10 alankila: I know. I am at the beginning, sorry Aug 14 12:31:10 (I hope I remembered the structure of JSON correctly) Aug 14 12:31:45 I think I already forgot it Aug 14 12:32:18 but the point is, don't make those long chains that you don't know how to debug, take one step at a time, and print every intermediate result to log, do something like Log.i("MyJSONReaderClassNameHere", "matchdata = " + matchdata) Aug 14 12:32:41 so that way you know the *spot* where it fails, and can make progress digging into the structure Aug 14 12:32:58 Hello everyone, can someone help me about a dev problem ? http://bit.ly/1cBeJdz -> Instead receiving a json, I receive "[B@40d21d60". Does someone have an idea or can show me how to handle this correctly please ? Aug 14 12:33:02 once you have validated it works, then consolidate things into larger steps if you like and remove the debug statements Aug 14 12:34:16 * alankila is convinced people hate working with compile-time structs and love runtime-structs is the stupid programmer bias of always pushing failure to a later time if possible Aug 14 12:34:31 alankila: thank you, I try it Aug 14 12:34:32 err... convinced that *the reason that* Aug 14 12:35:12 dot8: it is the method of how to rule the nations, and how to rule your code. It's called divide et impera, or divide and conquer. Aug 14 12:35:35 always ignore errors, and everything will be fine Aug 14 12:36:22 in case of nations, it means making your rivals fight each other so that you can then conquer them over as they can't present unified front. In case of programming, it's the method of debugging by gaining insight into your program's working and seeing where your assumptions no longer are valid. Validate that program worked up to certain point, then you know the bug is after that point. Aug 14 12:37:20 Why does my Spinner look like this? http://i.imgur.com/Xr7VbsU.png (Blank space in the bottom) Aug 14 12:37:40 alankila: haha sorry, not an english speaker, didn't know it being slang. I'm getting out of the cannel Aug 14 12:37:43 there are methods other than debug statements, like using breakpoints, too. But in every case you need to take small steps so that you can add a breakpoint where you are interested about it. Don't make long statements that chain a ton of operations. Aug 14 12:38:22 or only do that if you are *sure* they can never fail. Aug 14 12:38:54 (english is difficult, there's always a bad meaning for every expression :/) Aug 14 12:39:13 J_Caselles: no worries, it was an easy joke to make so I went with it Aug 14 12:39:27 alankila: ;) Aug 14 12:39:42 bye everybody Aug 14 12:42:07 Hello everyone, can someone help me about a dev problem ? http://bit.ly/1cBeJdz -> Instead receiving a json, I receive "[B@40d21d60". Does someone have an idea or can show me how to handle this correctly please ? Aug 14 12:43:32 Why does my Spinner look like this? http://i.imgur.com/Xr7VbsU.png (Blank space in the bottom) Aug 14 12:46:51 i am trying to display an image in textview with html loaded Aug 14 12:47:01 here you can see the html Aug 14 12:47:09 http://pastebin.com/A6EFg2A4 Aug 14 12:47:26 but instead of the image i see a square Aug 14 12:47:40 on stack overflow i saw someone haveing similar iussue Aug 14 12:48:33 i use Html.fromHtml() to feed the textview.setText Aug 14 12:50:58 G10h4ck: do you know for a fact that Html.fromHtml() can display images from base64 data, or do you assume it? Aug 14 12:51:21 i read that it support img tag Aug 14 12:51:33 it doesn't talked about limitation on that Aug 14 12:51:51 that's not the same as supporting images based on base64 data Aug 14 12:51:53 @Seraf - seems you are using the toString of the byte buffer instead of creating a string from the buffer Aug 14 12:52:10 @seraf - toString being the address of the buffer Aug 14 12:53:15 nahojkap, yep, thanks, I found my error and correcting it. But now I'm facing a new problem ... a receive a json, but with no endline after it ... So I don't know when exit my while loop as my connection is persistent Aug 14 12:53:40 Maestro i see that using ImageGetter the src attribute is passed Aug 14 12:54:00 do you have any hint on how to convert a base64 on a drawable ? Aug 14 12:54:04 nahojkap : https://github.com/Seraf/LISA-CLIENT-Android/blob/master/src/com/example/lisaandroid/MainActivity.java#L195 Aug 14 12:55:13 Maestro thanks anyway you opened my eyes i fund the answere on stack overflow Aug 14 12:55:20 ok Aug 14 12:56:16 Maestro on the solution they talk about Bitmap Aug 14 12:56:21 encoded in base64 Aug 14 12:56:35 G10h4ck: do you have the link? Aug 14 12:56:35 can it be thet the image is not bitamp but other format ? Aug 14 12:56:45 http://stackoverflow.com/questions/9768611/encode-and-decode-bitmap-object-in-base64-string-in-android Aug 14 12:56:53 Hey guys, I've upaded my Eclipse ADT and suddenly I'm back to Eclipse Juno.. What do I do to get my SDK back Aug 14 12:57:31 G10h4ck: bitmap is not always the same as a *.bmp-file Aug 14 12:57:49 so it can take png and friends too ? Aug 14 12:58:43 check the android docs for Bitmap.CompressFormat Aug 14 12:58:59 but it should be able to handle png, I would be surprised otherwise Aug 14 12:59:08 thanksQ Aug 14 13:02:08 <_flow_> JesusFreke: answered http://stackoverflow.com/a/18232196/194894 thank you! Aug 14 13:04:09 Soo I'm guessing I should download something? Aug 14 13:07:14 hi Aug 14 13:08:28 i'm searching for some informations about contact sync...how is it possible to edit or delete synced contacts? Aug 14 13:10:47 Hi all, is there something to check how many character can be visible in a textview? Aug 14 13:17:31 whenever i transfer my videos from my device to my computer they LOSE ORIENTATION Aug 14 13:17:50 @seraf - guess you either need to parse the json on the fly and read till you find the last, closing } ... or build in some sort of end-of-payload-marker in your protocol Aug 14 13:19:02 thanks nahojkap I succed with this problem, I shouldn't have to read in a while. Everything works fine now in my last commit. Thanks for your help ! Aug 14 13:19:07 Why does my Spinner look like this? http://i.imgur.com/Xr7VbsU.png (Blank space in the bottom) Aug 14 13:19:35 whenever i transfer my videos from my device to my computer they LOSE ORIENTATION, how do i keep it? Aug 14 13:20:41 seraf - np ... just make sure your buffer is large enough to hold *all* the json .. otherwise it could in theory be split across multiple reads Aug 14 13:21:25 screwsss: rotate the computer monitor. Android camera apps record in landscape mode. If you make a video in portrait technically the video is sideways. Aug 14 13:21:58 why do the vids stay the right way up when i view them on the phone tho Aug 14 13:22:17 no matter which way i turn the phone Aug 14 13:22:31 nahojkap, yes ! thanks for the advice ! Actually it's just a prototype but indeed it's important to check ! Aug 14 13:22:49 nseidm1: Aug 14 13:23:34 wow, volley actually is that easy... Aug 14 13:26:36 screwsss: I dunno. Exif data on JPEGs are used to store information about orientation. I doubt such info exists for videos. Aug 14 13:28:40 nseidm1: by the sounds of things you sound even more newb than i am Aug 14 13:29:06 "i dont think" "probably" "possibly" doesnt exactly scream conviction! Aug 14 13:35:26 ExpandableListView doesn't have a scrollTo(group,child) does it or anything like it? Aug 14 13:47:56 Guys, I've updated my ADT and now it doesn't say ADT anymore in the splash screen :( just classic eclipse juno Aug 14 13:48:09 how can you catch when the view of a fragment is created? Aug 14 13:49:16 onCreateView Aug 14 13:49:35 then you are creating the view Aug 14 13:49:59 ? Aug 14 13:50:14 hi Aug 14 13:50:22 your view isn't created when this method is called, you are creating the view in this method Aug 14 13:50:24 where can I see the change logs between repo syncs? Aug 14 13:51:10 You mean you want a notification when the view is displayed, not created? Aug 14 13:51:21 I need to know when the View is created, so then I can ask the width etc. from my views. This isn't possible in oncreateview because the View isn't returned yet Aug 14 13:51:24 yes Aug 14 13:53:09 I have no idea, but maybe http://stackoverflow.com/questions/17899373/determine-width-and-height-in-fragments-oncreateview Aug 14 13:54:33 Cant find anroid license reponse codes values. Can anyone share a link? Aug 14 13:55:13 kjeldahl: found it :) Aug 14 14:02:42 how can we know what last commit was Aug 14 14:04:44 Hey there, folks, I'm running into an odd Resources.NotFoundException with in my application. The build process appears to be corrupting the first image in the resource bundle, with an inner exception of "java.io.FileNotFoundException: Corrupt XML binary file". It doesn't matter what that first PNG is, so I assume it's an error earlier in the process. I've found this - https://code.google.com/p/android/issues/detail?id=2726 - which Aug 14 14:04:44 claims it's just a clean problem, but I've tried on a clean clone and got nowhere. Can anyone point me in the right direction for solving this? Aug 14 14:15:10 i have correctly implemented the image getter for Html.fromHtml(string), and tested it with an image view Aug 14 14:15:27 but the image don't get displyed in the textview Aug 14 14:16:15 without my imagegetter a square is displayed instead of the image Aug 14 14:16:27 with my imagegetter nothing is displayed :/ Aug 14 14:23:12 image, textview, sounds fishy Aug 14 14:23:28 compoundDrawable? Aug 14 14:23:39 I want my users to change a setting and then come back to my app. I don't get how to do that. Pressing back after changing the setting does not lead back to my app. When I do it with startactivityforresult I get the strict mode complaining that there are 3 instances of my activity. Aug 14 14:24:20 romainguy: you around? Aug 14 14:25:35 How can I write an ArrayList of non-standard objects into a Parcel? Aug 14 14:25:53 How about serialising them? Aug 14 14:28:52 In fragmentA i have an option menu, If i start FragmentB, i would like an empty option menu (item from FragmentA not visible) but can't do this with empty menu, how can i fix this? Aug 14 14:30:20 FrancescoV: setHasOptionMenu(false) in FragmentB's onCreateView? Aug 14 14:31:22 Is there any xml layout system for web development that works like the Android xml layout system. I find it annoying that I can't just take a web page and start saying layout_width="wrap_content", layout_gravity="center", etc. Aug 14 14:31:30 kjeldahl: not working, but I'll try to find the MenuItem and set visible to false Aug 14 14:31:37 FrancescoV: Alternatively, in FragmentB's onCreateOptionsMenu call menu.clear (on the passed menu) and add whatever else you want thereafter. Aug 14 14:31:47 (if anything) Aug 14 14:32:17 ok tnx Aug 14 14:33:00 both works :) Aug 14 14:34:01 great! Aug 14 14:35:23 kjeldahl, happy birthday? Aug 14 14:35:39 google+ says so Aug 14 14:37:42 is this the right place to talk about programming in android?? Aug 14 14:38:15 What's with all the 88s? Aug 14 14:38:38 rakesh1988: yes Aug 14 14:38:58 haha Aug 14 14:39:21 i am completely new to android development. i am basically a c# developer and now trying to learn android development. Aug 14 14:39:38 i have a class which handles web service calls Aug 14 14:40:19 i need to make a async task class to call this web service calls Aug 14 14:40:29 can u please help me in achieving the same Aug 14 14:40:42 rakesh1988: maybe I can help Aug 14 14:40:46 Is the rendescript compiler broken in build tools 18.0.1? Aug 14 14:41:09 I'm using asynctasks for calling my rest api and receiving json objects Aug 14 14:41:43 I get this build error: android-renderscript-compiler: /opt/android-sdk/build-tools/18.0.1/llvm-rs-cc: error while loading shared libraries: libclang.so: cannot open shared object file: No such file or directory Aug 14 14:42:04 libclang exists in build-tools/18.0.1 - perhaps it's looking for it elsewhere? Aug 14 14:42:09 @FrancescoV thats exactly what i am looking for Aug 14 14:43:23 rakesh1988: What have you achieved so far, and what exactly are you having issues with Aug 14 14:45:11 class to call web service is completed... CallWebService(String methodName,HashMap params) . I would call it in this way. If I call from UI thread it gave me a error Aug 14 14:45:51 then after googling I came to know I should use another thread or do a sync task Aug 14 14:47:09 marrrk, isnt that very inefficient? Aug 14 14:47:12 My objective is to make a generic function which will execute any web service and return JSON object Aug 14 14:47:40 or a JSON string Aug 14 14:47:59 What? Aug 14 14:48:41 marrrk : was it for me? Aug 14 14:48:45 Well, I don't know of another way of doing it. What kind of data are you holding that is not standard? Aug 14 14:50:05 oh, sweet. this worked http://code.google.com/p/android/issues/detail?id=58406 Aug 14 14:50:22 You could put something like "number of classes" and then loop over the classes and put the types you are using in these classes in "class_name1" "class_height1" "class_name2" and so on Aug 14 14:56:50 in a gridlayout, is there a way to make all the buttons in each column have the same width regardless of the text on them? Aug 14 14:57:04 here is the code, http://www.fpaste.org/32080/49221813/ Aug 14 14:57:56 kc8hfi: you tried width=match_parent? Aug 14 14:58:14 there are 2 columns here, the first button entry_form has the text "Entry Form". The button below it has the text "Monthly Stats". The entry form button is shorter than the monthly stats button Aug 14 14:58:33 let me try it, i've tried so many things I can't remember now Aug 14 14:58:38 in LinearLayout terms that would be android:weight="1" Aug 14 14:58:52 haven't worked with GridLayout yet Aug 14 15:00:02 match_parent ignores the column, and it puts one column with 3 buttons. The other 3 are there somewhere i suspect - but no way to scroll to them Aug 14 15:00:15 and each button in the column fits the screen Aug 14 15:00:21 rakesh1988: You are going to want to make your own custom JSONAsyncTask (or whatever you want to call it) that extends AsyncTask. Aug 14 15:02:53 rakesh1988: You can either make it a subclass (which is what most tutorials do and will make it a bit simpler for you), or you can create a new class file and create a response handler to throw around your code wherever y Aug 14 15:04:03 rakesh1988: This (http://stackoverflow.com/questions/9963691/android-asynctask-sending-callbacks-to-ui) is the best example I have found so far, since I like to have the CustomAsyncTask as a seperate class file Aug 14 15:08:34 yiati: thanks for the link. i will go through it and try to implement the same. and let you know if there are any hiccups Aug 14 15:09:28 Ge0rG: if you use the layout_weight, do you have to set the layout_width to 0dip? Aug 14 15:11:24 kc8hfi: its recommended to set it to something like 100dip. no idea why :) Aug 14 15:12:29 hmm, i see. i figured out wrap_content with layout_weight=1 didn't do jack to make the buttons the same size in a linearlayout Aug 14 15:13:04 if you match_parent on the width, its good Aug 14 15:14:32 maybe i could draw up some pictures to put on the buttons, and try the gridlayout again. since the pictures will be all the same size, there shouldn't be a problem then Aug 14 15:17:19 hello is there a way to play an rtmp stream from inside the android' web browser? chrome? firefox etc? Aug 14 15:19:04 If you use weight, set the size in the layout orientation to 0dp Aug 14 15:19:12 Not 100dp, not match_parent Aug 14 15:20:00 did you all dumped actionbarsherlock in favor of ActionBarCompat already? Aug 14 15:20:12 weight with the width set to 0dp doesn't do anything to make the button the same size as the rest of the buttons in a linearlayout. done tried it Aug 14 15:20:18 C0br4: yep Aug 14 15:20:33 minSdkVersion="4" for life Aug 14 15:20:37 If all the buttons have weight and a width of 0dp they will be the same size Aug 14 15:20:42 kc8hfi: Have you tried making the width wrap_content Aug 14 15:20:54 Hey guys ... can someone help me understand how Google Play handles their transaction fee and VAT taxes ? The example in their support section doesn't seem to make any sense Aug 14 15:20:56 If the weight is equal that is Aug 14 15:21:15 Can someone help with this? http://pastebin.com/Ru7QCPQ1 I have an ArrayList feeding an Adapter, but it looks like the adapter doesn't have the same values as the list. Aug 14 15:21:30 I explain every input and expected results in the paste Aug 14 15:22:00 JakeWharton: if it comes from you I take it for granted Aug 14 15:22:12 items = new ArrayList(); <- where are you passing this list to the adapter? Aug 14 15:22:14 nseidm1 from documentation textview support html comprensive of omg tag Aug 14 15:22:39 JakeWharton: support-v7, not 4! Aug 14 15:22:49 SimonVT, final ListView listView = (ListView) findViewById(R.id.list); Aug 14 15:22:49 oh, right Aug 14 15:22:49 listView.setAdapter(adapter); Aug 14 15:22:55 shows you how much I actually use it Aug 14 15:23:03 SimonVT, and ProductListAdapter adapter = new ProductListAdapter(this, items); Aug 14 15:23:07 yiati: setting the width to match_parent works fine Aug 14 15:23:14 Well, you're setting the items variable to a new list Aug 14 15:23:19 Not the one you passed to the adapter earlier Aug 14 15:23:26 SimonVT, oh Aug 14 15:23:36 i'm gonna try and work with the gridlayout some more, because i think I want 2 columns with 3 buttons each Aug 14 15:23:57 SimonVT, So maybe it'd be better to remove evrything from the list instead of creating a new one Aug 14 15:24:30 how can I reliably determine if my application is in foreground or in background? By that I mean, is the user currently interacting with my app or another app? Aug 14 15:24:37 You can do taht, yeah Aug 14 15:24:49 does a gridlayout automatically vertical scroll? Aug 14 15:25:15 Hi Aug 14 15:25:25 I'm running into an odd Resources.NotFoundException with drawable PNGs in my application. The build process appears to be corrupting the first image in the resource bundle, with an inner exception of "java.io.FileNotFoundException: Corrupt XML binary file". It doesn't matter what that first PNG is, so I assume it's an error earlier in the process. I've found this - https://code.google.com/p/android/issues/detail?id=2726 - which claims Aug 14 15:25:26 it's just a clean problem, but I've tried on a clean clone and got nowhere. Can anyone point me in the right direction for solving this? Aug 14 15:25:28 In NDK, how do I check if NEON is supported at compile or run time? Aug 14 15:26:36 SimonVT, maybe you know why my Spinner has a white space below it? http://i.imgur.com/Xr7VbsU.png Aug 14 15:27:12 The spinner drawable probably has padding Aug 14 15:27:12 Height is set as wrap content Aug 14 15:27:21 9 patches can have padding Aug 14 15:27:27 hello is there a way to play an rtmp stream from inside the android' web browser? chrome? firefox etc? Aug 14 15:27:28 That's seperate from the view padding Aug 14 15:27:40 And no padding Aug 14 15:27:42 So, the spinner drawable probably has padding Aug 14 15:27:52 Anyone can answer my ARM NEON question? Aug 14 15:28:00 SimonVT, the default Android spinner? Aug 14 15:28:05 Or my spinner Aug 14 15:28:10 The drawable Aug 14 15:28:19 The thing that makes it look like a spinner Aug 14 15:28:23 The arrow and the line Aug 14 15:28:43 The image Aug 14 15:28:59 I dont think it has padding Aug 14 15:29:01 hi all, how load preferences from resource without bringing preferences window to the foreground ? Aug 14 15:29:15 I think it has Aug 14 15:29:50 SimonVT, any easy way to remove it without redoing the Drawable? Aug 14 15:30:17 If you only support 4.3, it has support for positioning views by optical bounds (i.e. without drawable padding) Aug 14 15:30:22 Otherwise, redo the drawables Aug 14 15:30:24 Is #ifdef __ARM_NEON__the only way to check for NEON support? Aug 14 15:30:47 ah, it's android_getCpuFeatures Aug 14 15:34:35 https://support.google.com/googleplay/android-developer/answer/138000?hl=en&topic=15867&ctx=topic# Aug 14 15:34:53 can someone explain the calc. "mistake" halfway that page? Aug 14 15:35:37 the say if the incl. VAT price is 10 ... and if the VAT is 20% ... the excl. VAT price is 8 Aug 14 15:35:46 that can't be right, right? Aug 14 15:35:47 Lol at only support 4.3 Aug 14 15:35:52 If only Aug 14 15:36:36 anyone? :S haha Aug 14 15:37:31 my app has three main activities, and when I switch between them, they form a stack of the form A-B-A-C-A-B-A - how can I remove the older instances from the stack, so that each one only appears at most one? Aug 14 15:38:16 use startActivityForResult ? Aug 14 15:38:40 Ge0rG: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Aug 14 15:40:27 JakeWharton: that will unwind my stack, instead of removing the old instances of the same activity from it Aug 14 15:40:41 Uh Sirolf, 10-10*20%=8? Aug 14 15:40:54 JakeWharton: the effect is, if I have A-B-C and I start B, I will land in A and not in C after pressing back Aug 14 15:41:22 SINGLE_TOP then maybehttp://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT Aug 14 15:41:27 whoops Aug 14 15:41:29 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT Aug 14 15:41:34 wouterP 10 - 20%VAT = 10/1.2 toch? is niet 8 lijkt me Aug 14 15:41:37 just read the flags Aug 14 15:42:01 JakeWharton: cool, thanks. didn't know of that one Aug 14 15:42:06 me neither Aug 14 15:42:20 never needed it Aug 14 15:42:20 either I was reading that docs before API 3, or I over-read it all the times I looked to solve this problem :> Aug 14 15:46:05 Sirolf: ah, inderdaad, maar zo'n foutjes kan iedereen die een support pagina schrijft wel vlug maken :) Aug 14 15:49:19 is it the container padding that puts room in between a component and its container?? Aug 14 15:49:47 i have this, http://www.fpaste.org/32094/95368137/ and i want to put space in between each button Aug 14 15:49:55 Padding on the container or margins on the content Aug 14 15:50:17 hmm, ok. I think it'll be easier to put pading on the container in this instance Aug 14 15:51:30 JakeWharton: cool, REORDER_TO_FRONT worked as advertised :) Aug 14 15:51:40 nice Aug 14 15:51:56 will probably become obsolete anyway as soon as I switch to fragments Aug 14 16:03:28 for stuff like padding, is it bette to use px or dip? Aug 14 16:04:49 Always dp Aug 14 16:06:33 howdy. anyone monitoring? Aug 14 16:16:51 bekabug: you might get an answer if you ask a question... you definitely won't get an answer if you don't ask Aug 14 16:17:00 i've been through the docs and it's not really clear to me how to start the emulator Aug 14 16:17:20 so can someone please tell me how to start the emulator because i am about to give up Aug 14 16:17:52 you run the SDK manager, choose the AVD manager from the menu, and start an AVD Aug 14 16:17:59 fire up the android sdk manager, click tools-> manage avds Aug 14 16:18:48 i do not have tools. Aug 14 16:19:27 bekabug: tools, in the menu bad Aug 14 16:19:29 bar Aug 14 16:19:38 http://www.bekabug.com/images/skitchuploads/Ehhhhh-20130814-121929.jpg Aug 14 16:19:43 i do not have a menu bar Aug 14 16:19:57 that's because that's not the SDK manager Aug 14 16:20:13 alright. now we're getting somehwere. what is, then? Aug 14 16:20:23 AVDM Aug 14 16:20:44 the SDK manager is the SDK manager Aug 14 16:20:48 argh Aug 14 16:21:50 Open the adt-bundle-/eclipse/ directory and launch eclipse. Aug 14 16:22:23 these are the instructions in the docs. that is what i've done. there are no other executables here. Aug 14 16:22:29 that i can see Aug 14 16:23:14 ahh love coming back from vacation to multiple poo storms Aug 14 16:23:15 really, that's what it says on http://developer.android.com/tools/devices/emulator.html ? Aug 14 16:23:24 http://developer.android.com/sdk/installing/bundle.html Aug 14 16:24:02 right, except that's not the docs for using the emulator, which is what you apparently want to do Aug 14 16:24:04 anyway, I'm done Aug 14 16:24:25 all of this is expecting some sort of knowledge that i am obviously not in possession of Aug 14 16:24:39 in the meantime, can I confirm that the only way to include a library project in something I'm building with ant - because I'm old-school that way - is to include the source and build the library alongside my code? Aug 14 16:27:31 i can't even get the emulator to start from the cli Aug 14 16:28:59 bekabug: did you download the sdk? Aug 14 16:29:04 yes Aug 14 16:29:15 i'm not in that bad shape... Aug 14 16:29:17 wednesday:tools bekabug$ emulator -avd whatever Aug 14 16:29:17 -bash: emulator: command not found Aug 14 16:29:20 yes, you are Aug 14 16:30:14 you should go to where the sdk is, look in the tools directory Aug 14 16:30:18 that's where i am Aug 14 16:30:27 /Users/bekabug/Desktop/adt-bundle-mac-x86_64-20130729/SDK/tools Aug 14 16:30:28 does android support flash player? Aug 14 16:30:41 if you didn't set that location in your path, you'll probably hafta run ./emulator Aug 14 16:31:50 pagios: yes and no... Adobe have EOLed it, and removed it from the Play Store, and Chrome doesn't support it, but you can get it directly from Adobe and it works in other browsers Aug 14 16:32:16 could not open 'whatever' ok. so i can't just run....the emulator? Aug 14 16:32:18 can anyone try to stream http://www.future.com.lb/live/ on his android and tell my what video/audio codec is used? Aug 14 16:32:23 by itself? i have to make a project? Aug 14 16:32:52 you have to make an AVD Aug 14 16:33:19 bekabug: you need to make one first. start up the sdk manager first Aug 14 16:33:29 eclipse is running Aug 14 16:34:00 bekabug: i think there will be one called android inside the directory where the emulator command is. Aug 14 16:34:09 bekabug: start up android, probably gonna be ./android to start it up Aug 14 16:34:31 hmm. so i can't specify that I want to test a Samsung S4 Aug 14 16:34:37 if it's not listed in the Devices Aug 14 16:34:41 anyone? Aug 14 16:35:15 bekabug: nope. pick the target, cpu, and whatever else matches said device and go with it Aug 14 16:35:24 ok well this isn't going to work then Aug 14 16:35:36 bekabug: how do you know? you haven't even tried it yet. Aug 14 16:35:39 i have a client who says their website is broken on a brand new S4 and i cannot recreate the problem on any other device. Aug 14 16:35:44 BS Aug 14 16:36:02 then the problem doesn't exist Aug 14 16:36:12 not necessarily Aug 14 16:36:42 i don't have an S4 to test it on. there may be a browser bug that i am unaware of but i think that is highly unlikely. i'll have to go to a phone store and find an S4 that is actually usable. Aug 14 16:37:15 the phone might be preloaded with some BS samsung browser that really sucks Aug 14 16:37:27 anyway. thank you for your help Aug 14 16:38:02 RTMP can be played in androids? Aug 14 16:38:33 oc2: knock yourself out: http://developer.android.com/guide/appendix/media-formats.html **** BEGIN LOGGING AT Wed Aug 14 16:42:30 2013 Aug 14 16:42:54 I created a Fragment and add it to the backstack (on top of another). Is it unusual that the previous view is still clickable? Aug 14 16:43:05 As in, I press the background, and it opens another page Aug 14 16:43:27 I realize that setting the backgrounds onclicklistener to an empty one would work, but it seems silly. Aug 14 16:45:36 okay, seriously now... how the fuck do you use the support libraries with ant? Aug 14 16:47:06 i think you just hafta put the jar file into your projects libs directory Aug 14 16:47:32 kc8hfi: yeah, except no - because you can't have resources in a jar file Aug 14 16:49:55 hmm, yeah, you got me there. one sec, I think i've did this before, let me dig through some of my old stuff Aug 14 16:50:29 the SDK tools fail if I have strings resources in Ligurian (values-lij) and Min Nan Chinese (values-nan); is there any workaround for that? Aug 14 16:51:14 it works for *some* stuff - if all you're doing is using code from the library... Aug 14 16:54:56 Hello, I'm looking for some help with dev Aug 14 16:56:17 I want to control the "Silent mode" on phone Aug 14 16:56:33 and recognize incoming phone call Aug 14 16:56:54 Leeds: yeah, not sure how to do the resources part. i don't have anything here. i'm gonna search the interwebs and see what turns up Aug 14 16:57:19 kc8hfi: thanks for trying - I've got about 20 tabs open, every time I 'solve' something I get 200 more errors Aug 14 16:58:40 there are instructions on the site to do it in eclipse or AS, and a bunch of random comments online which say things like "add X to Y and magic will happen" Aug 14 17:02:09 yeah, i've seen those before. Aug 14 17:08:30 android doesn't support svg graphics for icons and stuff does it? Aug 14 17:09:20 I don't believe so, no Aug 14 17:10:15 google needs to make it support svg, makes it easier to build icons Aug 14 17:11:21 Is the blank space bellow the spinner's text and the spinner drawable normal? http://i.imgur.com/Xr7VbsU.png Aug 14 17:15:12 what should the x and y resolution be on the image that will be used to scale for the different icon sizes? Aug 14 17:16:05 it says to start with a big artboard, so i'm gonna start with an image size of 864x864 pixels, Aug 14 17:17:36 hmm... well, I've got it building Aug 14 17:17:50 how did you get it? Aug 14 17:18:05 er, lots of fiddling Aug 14 17:18:17 hey guys. I am trying to set multiple alarms using an alarm manager but it's giving my an error. I am using a for loop to do it but I have a feeling I might need multiple alarm managers for this: http://pastebin.com/9RxuHrzV Aug 14 17:18:20 what does your build file look like now? Aug 14 17:18:31 can anyone point me in the right direction Aug 14 17:18:53 couple of things which I think were necessary... making sure the target for the library and the app are the same... running "android update lib-project" on the library... Aug 14 17:20:17 I have a class Product, that has a getView() method so it can be easily shown in a ListView. On my Activity class I have an ArrayList (being Item an interface used in Products). How could I delete an object in the ArrayList when a button is pressed on the Product's View? Aug 14 17:20:18 I may also have made a slightly silly mistake which may have slightly prolonged the issue... slightly Aug 14 17:20:23 I am building a project on my local machine with "./gradlew clean assembleDebug" just fine, but when I run it on the Jenkins server I am using I get "A problem occurred configuring root project 'My-Project'. > Failed to notify project evaluation listener. > Configuration with name 'default' not found." Aug 14 17:21:56 Most stackoverflow posts seem to point to an incorrect settings.gradle and/or build.gradle but I'm not sure that's the issue here since I can build and run the app on my phone from my local machine Aug 14 17:26:09 Does anyone use google accounts to auth their users, i need to know how to get the user id Aug 14 17:27:32 that done, it's well past my bedtime - g'night all Aug 14 17:29:58 Mrono: user ID? Aug 14 17:30:44 evanc: yeah, i'm still trying to figure out how to make sure I have the same user on my android app as on my web app Aug 14 17:43:59 does calling activity.setTheme() necessitate another call to setContentView()? Aug 14 17:44:29 You have to recreate the activity Aug 14 17:44:42 ahh ok Aug 14 17:44:47 thanks Aug 14 17:44:55 It only applies to views created from then on.. Since you can't recreate e.g. the action bar, you have to recreate the activity Aug 14 17:47:02 SimonVT: i'm tryign to do something similar to Romain & Chet's custom activity transition, where the incoming activity is using a transparent theme (android:windowIsTranslucent = true, windowNoTitle=true, windowBackground = @color/transparent) .. is it possible to change those values during runtime and not have to recreate the activity? (effectively changing the theme without "changing the theme") Aug 14 17:47:49 Ive got an app in the store that I got from our provider, now the new updated apk was uploaded by me. Somehow the Client isnt finding any updates though, google play shows the option to open or remove Aug 14 17:48:07 any idea what went wrong? Aug 14 17:50:02 SrRaven: did you not wait long enough? Aug 14 17:50:06 it doesn't update instantly Aug 14 17:50:24 been in the store since friday Aug 14 17:50:59 I have a class Product, that has a getView() method so it can be easily shown in a ListView. On my Activity class I have an ArrayList (being Item an interface used in Products). How could I delete an object in the ArrayList when a button is pressed on the Product's View? Aug 14 17:51:16 (without making the list static= Aug 14 17:51:51 tnzr: You can set the background on getWindow, or just on your content view.. Dunno if you can have the action bar start hidden, then shown later Aug 14 17:52:29 ok thanks Aug 14 17:52:31 You could possible just remove icon, title, etc .. Give it a transparent background.. Hide it, set title, background, blah, then show it Aug 14 17:52:34 I think it animates in Aug 14 17:53:21 ahh sweet Aug 14 17:53:25 If it's overlayed it wont re-size your content when it's shown.. Then you can set the top margin on your content to the action bar size attribute Aug 14 17:53:54 I'm just guessing here, but that's something you can look into .. dunno if there's a better way Aug 14 17:54:29 no that's actually good, I need to think of things like that Aug 14 17:54:39 its been a nice little learning experience, I will definitely experiment with that Aug 14 17:55:05 Or, depending on your needs, roll your own action bar Aug 14 17:55:27 Probably better than trying to fight the platform Aug 14 17:55:45 yeah Aug 14 17:55:55 There are enough theme attributes exposed for you to style it exactly as the native action bar Aug 14 17:56:30 But just if you need a basic action bar with a icon, title and the odd menu item .. More than that and it'll probably get annoying Aug 14 18:01:00 I'm looking to develop an app that I will use to track my hikes/runs/biking etc. I'm working on the location tracking first. I've searched but haven't found anything that specifically addresses continuous location tracking. Anyone have a link to example code for something like this? Aug 14 18:03:37 zanberdo look at the open source google my tracks app Aug 14 18:06:28 g00s, am I missing something? I've found what you are referring to at https://code.google.com/p/mytracks/ but I can't locate source Aug 14 18:06:53 the source tab :| Aug 14 18:06:57 d'oh Aug 14 18:07:06 first time looking at this site. yes, I see. thanks Aug 14 18:08:20 the more I dig into Android the stupider I feel (just a general observation) Aug 14 18:08:59 stupider or more stupid? see I can't even articulate when I'm dealing with android... (not complaining about android, complaining about my lack of comprehension ) Aug 14 18:09:32 how can I say I've been a developer for 20 years and still be befuddled by android? Aug 14 18:14:18 duck tales Aug 14 18:15:13 mikedg: you got the hd version? Aug 14 18:15:48 i would like it if someone had $15 for m Aug 14 18:15:48 e Aug 14 18:24:40 15 bones for dg Aug 14 18:26:14 when I mksdcard 64M sdcard and try to use it with emulator, it tells me that there is no SD card image Aug 14 18:48:19 i have a question about the google plus api, does anyone know of an irc channel where i could ask around? Aug 14 18:51:01 simple question? Aug 14 18:52:18 Hola fellow Androidians Aug 14 18:56:51 so I figured out why emulator said it couldn't find the sc card image, but now it doesn't seem to give an error, it just doesn't detect the sd card. any thoughts? Aug 14 19:00:11 Gah emulator Aug 14 19:00:14 I hate the emulator lol Aug 14 19:00:18 I always just test on physical devices Aug 14 19:00:27 you can test any device pretty much by using the Nexus 10 Aug 14 19:00:27 :D Aug 14 19:00:43 that requires hardware =( Aug 14 19:00:45 hi can i know how can i give password protection to my app when being uninstalled ? Aug 14 19:00:54 which resource should i look at ? Aug 14 19:01:54 Xabster can you help in the case of mine ? Aug 14 19:02:03 or can you guide me where should i look at ? Aug 14 19:02:10 p_l are you there ? Aug 14 19:03:35 hello anyone ? please help Aug 14 19:05:10 There might not be anyone online right now with the knowledge/free time to help you Aug 14 19:05:11 D: Aug 14 19:05:11 If someone knows, they'll probably answer .. so just be patient Aug 14 19:05:13 sometimes that just happens Aug 14 19:05:52 Ok will wait then . . . . .. .. -_- Aug 14 19:06:55 Do i need to do something special to show a GCM message in the notification center? Right now the phone receives the GCM "message", but does only display a triangle icon without my message string in the notification center. Aug 14 19:07:24 -_- Aug 14 19:08:01 (-_-) Aug 14 19:08:09 I have a class Product, that has a getView() method so it can be easily shown in a ListView. On my Activity class I have an ArrayList (being Item an interface used in Products). How could I delete an object in the ArrayList when a button is pressed on the Product's View? (Without making the list static) Aug 14 19:09:10 offhook: Please don't do that. You've asked your question, just wait 20 or 30 minutes, then ask again if noone has answered Aug 14 19:11:59 You should probably also post on StackOverflow if you haven't already Aug 14 19:12:34 Heya Aug 14 19:12:34 nds_: GCM only provides the messaging stuff. If you want a notification, you need to set it up yourself in the app that receives the message. Aug 14 19:12:40 Where does one find a copy of the older Android tools? Aug 14 19:14:59 offhook: I doubt you can, by design. Android wants the device owner to be in charge. Aug 14 19:15:57 kjeldahl: There is a App in play store named SMS lock , it does that , it ask for password when you try to uninstall it Aug 14 19:16:09 So we can do it but how is the question ? Aug 14 19:16:17 where should i search about it ? Aug 14 19:16:42 they're almost certainly using an undocumented hack to accomplish what they want, and it will hopefully be closed in a future update Aug 14 19:17:01 in other words: don't do that Aug 14 19:17:26 it has been more then 2 years i am using that app ... it provide a safty that no one else can uninstall my apps Aug 14 19:17:42 except that they can Aug 14 19:18:02 I doubt it's 100% successful at blocking uninstallations Aug 14 19:18:07 https://play.google.com/store/apps/details?id=com.thinkyeah.smslocker Aug 14 19:18:35 here is the link , no its not 100% i can also hack it but it provides a basic function , i also want something like that Aug 14 19:19:19 im trying to run adb shell Aug 14 19:19:20 wow it's not even close. from the launcher drag it's icon to "Uninstall" and then press "Ok" Aug 14 19:19:31 and it says device unauthorized Aug 14 19:19:39 does that mean usb debugging is disabled? Aug 14 19:21:12 evanc : did you see the link ? is there something i could read about so that could do better in this ? Aug 14 19:22:34 Installed it, enabled it, uninstalled it.. Didn't do much Aug 14 19:22:37 offhook: yeah, and it doesn't work. I was able to uninstall it from play store Aug 14 19:22:59 offhook: android is not designed to allow apps to implement any form of "security". anything you implement is going to be rather complicated, flawed, and likely to break in future system updates. if you really want to proceed anyway then you won't find any documentation for it, you'd have to poke around the AOSP code and try to find flaws and take advantage of them. and then deal with users who are upset because you app does not do what it promises to do Aug 14 19:23:07 offhook: as I've said, don't try this. Anything you try is a stupid hack which cannot be relied upon and is a waste of time and energy. Aug 14 19:23:19 kevinb: that's not entirely true Aug 14 19:23:45 which part? Aug 14 19:23:58 jr3: Sometimes a little dialog will popup on your phone and you have to give adb permission Aug 14 19:24:14 kevinb: about allowing apps to implement security. That's the whole purpose of the device policy APIs. Aug 14 19:24:22 yiati: I'm locked out of my phone Aug 14 19:24:31 im attempting to crack the passcode Aug 14 19:24:37 because it was changed without my consent Aug 14 19:24:41 the device policy apis implement security, the apps don't. the apps just have the ability to wipe the phone or set up the system's security Aug 14 19:24:46 jr3: then you can't use ADB Aug 14 19:24:50 Sounds like a hack where they try to disable a button in the GUI or something, which is easy to circumwent as has been demonstated here already (drag and drop, and uninstall from browser will work fine). Aug 14 19:25:02 the my only option is to wipe my phone Aug 14 19:25:09 then Aug 14 19:25:19 evanc , how is SMS lock built ? how is it opening that dialog when i try to uninstall it ? Aug 14 19:27:20 jr3: is the phone unlocked? (i.e. fastboot oem unlock) Aug 14 19:27:24 I don't know how SMS Locker is built, but I would guess "terribly" Aug 14 19:27:35 :D Aug 14 19:27:45 JesusFreke: not sure, Verizon S4 im gonna guess no Aug 14 19:27:59 offhook: I don't get that dialog, so I have no idea what you're talking about. I went and enabled all of the "self-protection" things and then just pressed "uninstall" in play store. Aug 14 19:28:02 not the developer version Aug 14 19:28:27 jr3: oh, I dunno about the s4 :) Aug 14 19:28:55 offhook: a rooted device can possibly kill the package manager using the PACKAGE_REMOVED broadcast. Aug 14 19:29:08 that would be sick stuff it the app did something like that Aug 14 19:30:11 I just want to make a simple parent protection app , where childrens or someone else cannot uninstall anything from the uninstall app of device Aug 14 19:30:31 untill they have the password which they set on the app Aug 14 19:30:52 that is best implemented by the system, such as restricted profiles in Android 4.3 Aug 14 19:30:53 there is also a case when they forget the password Aug 14 19:30:59 offhook: This is probably your best bet; http://forum.xda-developers.com/showthread.php?t=1127750 Easy to circumvent, but still... Aug 14 19:31:20 for version 2.2 i need Aug 14 19:31:21 You can bet it's the first thing the kids figure out! Aug 14 19:31:30 android Aug 14 19:31:30 i dont want it to be 100% working Aug 14 19:32:03 like SMS lock it is also a loose app Aug 14 19:32:56 offhook: they're probably just running a persistent foreground service (bad) to watch the activity stack (worse) and spawn their cancerous lock screen UI whenever a forbidden task is the new topmost entry (worst) Aug 14 19:35:35 how do you set the background color of a button? Aug 14 19:36:57 kc8hfi, android:background="" Aug 14 19:37:07 kc8hfi: http://lmgtfy.com/?q=how+do+you+set+the+background+color+of+a+button+in+android%3F Aug 14 19:37:15 hi Aug 14 19:38:26 I need an android app example where the user can edit records stored in an xml file, for example an address list.. Aug 14 19:38:29 I see. now, when I set the background like that, the button is bigger than the rest of them, which is not what i want. Here is the code Aug 14 19:38:55 line 38 is where this button is, like 45 is where i set the background color. Aug 14 19:40:00 that button is now a little wider than the ones above it. if i take the background color attribute off, that button is the same swidth as the others Aug 14 19:40:14 where is the code.. Aug 14 19:40:24 http://www.fpaste.org/32165/76509061/ Aug 14 19:40:28 oops, there it is Aug 14 19:40:43 I wonder how does that Contact manager app store it's data? Aug 14 19:40:49 someone? Aug 14 19:40:49 * caverdude is looking at it now Aug 14 19:40:53 the example that is Aug 14 19:41:15 evanc: you are absolutely right , about the working of SMS lock as i can see the activity(lock) starting after i am inside the uninstall tab Aug 14 19:41:31 kc8hfi, probably because you have a drawable top Aug 14 19:41:36 How can I recognize incoming call Aug 14 19:41:59 I wanna make script to auto send sms to whoever calls Aug 14 19:42:04 What is the best way to keep looking at the activity stack ? Aug 14 19:42:09 in the device ? Aug 14 19:42:11 CocoStorm: i just took out that drawableTop, same thing Aug 14 19:42:34 offhook: this is a horrible idea and I refuse to be a part of it, haha Aug 14 19:42:52 hehe Aug 14 19:42:52 haha .... please i beg you . . . . you are the master Aug 14 19:42:57 :D Please Aug 14 19:43:01 let me do it Aug 14 19:43:29 just wiped my s4 :/ Aug 14 19:43:46 whytf does it not habe a passcode recovery option Aug 14 19:43:50 * jr3 rages Aug 14 19:44:03 jr3 you rage a lot Aug 14 19:44:06 you're allowed to shoot your own foot, offhook. I'm just not going to help you do it. Aug 14 19:44:08 maybe rage in #android-root Aug 14 19:44:26 pointless now, im happy Aug 14 19:44:35 no more rage Aug 14 19:44:38 jr3: I thought you got a google account password prompt after locking yourself out of your device? (rather, you were supposed to) Aug 14 19:44:59 not with passcode on this phone Aug 14 19:45:21 anyone use the USB api? Know a way to access bcdDevice that I haven't found? Aug 14 19:46:02 on my GN there's a "Forgot password?" button that shows up Aug 14 19:46:18 why can't I get text to center on my buttons? :( Aug 14 19:46:39 I don't understand... Is that not what textalignment="center" is supposed to do? Aug 14 19:46:52 evanc: that wasn't an option with my S4 Aug 14 19:47:06 * evanc shakes his fist at Samsung Aug 14 19:48:13 how can I get my users a QR code that will allow them to install my app? Aug 14 19:48:50 can anyone help me in getting the Current activity stack ? Aug 14 19:48:57 http://lmgtfy.com/?q=online+qr+code+generator Aug 14 19:49:04 howdy Aug 14 19:49:14 I've got an app that I'm showing some video ads in Aug 14 19:49:39 I'm not sure what changed, but now the ads keep playing when a user locks the screen, now Aug 14 19:50:00 and when the user unlocks the screen, they crash - are there some things I should look for in my manifest or elsewhere that might be obvious? Aug 14 19:50:26 remove the effin ads and it won't do that Aug 14 19:50:28 Rager: look at the logcat output during one of these bugs Aug 14 19:53:13 j Aug 14 19:53:20 blib: Go to any QR code creator and put in the url to wherever your apps homepage is, whether it's the Play Store, or a personally hosted one Aug 14 19:55:48 kc8hfi, setting the background colour replaces the button image so i guess just add padding Aug 14 19:56:01 sorry was afk Aug 14 19:56:28 I'm getting an exception "Failed to find provider" FATAL EXCEPTION ServiceStartArguments Unknown URL when I call getContentResolver().insert. I think it may be that my database hasn't been created but I'm not clear on how I'd create it. This is new to me so any suggestions/links would be appreciated Aug 14 19:57:28 I'm trying to use the new Media encoding APIs in 4.3. Here's my setup (i play on drawing to a surface and using it for my 'source'): https://gist.github.com/briandilley/2a23f3c6468349138b0e . I'm setting the KEY_COLOR_FORMAT to MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface yet i'm still getting "createInputSurface requires AndroidOpaque color format" and an IllegalArgumentException when i call encoder.createInputSurface Aug 14 19:57:28 (). I've verified that the value is correct - what am i missing? Aug 14 19:57:53 CocoStorm: the picture i was using was transparent. i changed it to have a white background instead. fooey on trying to make it work Aug 14 19:58:04 the URL I'm passing is content://com.mzanfardino.locationtrackingdemo.database/todos but when I search my sdcard I can see there is no com.mzanfardino... Is there some way I should be creating the database before I attempt to insert into it? Aug 14 19:58:09 Is onCreateView() guaranteed to be called immediately after onCreate() for a fragment? Aug 14 19:58:18 kc8hfi, I'm talking about the default android buttons Aug 14 19:58:33 yiati: does qr code generation need a picture as input? Aug 14 19:58:39 not the icon Aug 14 19:59:12 blib: Nope the only input it takes is a string, typically a url Aug 14 19:59:27 CocoStorm: yeah, the only reason i wanted the button to have a white background was because of the transparent image. Aug 14 19:59:36 blib: http://qrcode.kaywa.com/ Aug 14 20:00:04 CocoStorm: so, instead of effing around with the stupid button background, I just left the button's background off and edited the image to have a white background instead Aug 14 20:00:23 yiati: Can I copy and use this: http://qr.ai/q2xxy - can you check if this works ? Aug 14 20:01:53 yiati: that website wants me to create an account Aug 14 20:02:14 blib: Yeah I just googled for the first qr code generator I found Aug 14 20:02:17 how can i make a service which toast a message when i run the Calling activity as "CALLING SOMEONE" Aug 14 20:02:33 evanc: I'm seeing an negative underflow(?) issue in MediaPlayer Aug 14 20:02:33 blib: You may have to search the websites that have them Aug 14 20:02:49 what exact url do these generators embed? Aug 14 20:03:45 evanc: http://hastebin.com/rejudiligi.avrasm Aug 14 20:04:05 yiati: requested url not found on server Aug 14 20:04:08 http://qrdroid.com/generate#App Aug 14 20:04:31 blib: Exactly what you feed it. It just converts it by the QR code conventions and is a universal little block of squares that can be read by anything that can read qr codes Aug 14 20:05:25 blib: Google goggles can recognize them. Or you can download a third party app. Either way you can use those apps to take a picture of your QR code and it should take you to the right page in a browser Aug 14 20:06:15 thanks. I'll skit it Aug 14 20:06:16 skip Aug 14 20:06:46 anybody there Aug 14 20:07:10 help me in making a service which toast a message as CALLING when i call someone Aug 14 20:07:24 offhook_: no Aug 14 20:07:26 I'm trying to use the new Media encoding APIs in 4.3. Here's my setup (i play on drawing to a surface and using it for my 'source'): https://gist.github.com/briandilley/2a23f3c6468349138b0e . I'm setting the KEY_COLOR_FORMAT to MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface yet i'm still getting "createInputSurface requires AndroidOpaque color format" and an IllegalArgumentException when i call encoder.createInputSurface Aug 14 20:07:26 (). Aug 14 20:07:27 No Aug 14 20:07:30 Toasts are bad Aug 14 20:07:45 offhook_: ask a specific question and someone will (maybe) answer it. "Help me do X." is not how to IRC. Aug 14 20:08:17 RTL languages, with input set to English is funnnnnnnnnn Aug 14 20:08:48 blib: I really like the concept of QR codes but I still don't think their is enough work done for them to be useful for the average user Aug 14 20:09:31 looks like the issue is an "unknown error" Aug 14 20:15:55 how to detect incoming call? Aug 14 20:16:00 anyone worked with it? Aug 14 20:16:37 Your phone typically makes a distinct ringing sound when there's an incoming call Aug 14 20:16:48 * JesusFreke ducks Aug 14 20:18:01 how can i toast the name of activity in android which ever is running ? Aug 14 20:18:10 on opening it Aug 14 20:18:59 offhook_: http://lmgtfy.com/?q=google.com&l=1 Aug 14 20:19:20 evanc thats not fair ? Aug 14 20:19:29 this is a good question Aug 14 20:20:06 offhook_: are you kidding? Aug 14 20:20:32 http://lmgtfy.com/?q=how+can+i+toast+the+name+of+activity+in+android+which+ever+is+running+%3F Aug 14 20:20:40 you either didn't try or didn't read Aug 14 20:26:24 Any good methods for cropping extra blank/transparent space from a bitmap? Aug 14 20:30:34 Alternatively if there is an easy way to get the region/coordinates of where a bitmap is drawn, that would probably suffice Aug 14 20:32:34 there is no c:\ on adroid right? sow how are file locations referenced? I mean an internal sd card is just a folder on the path? Aug 14 20:32:50 actually come to think of it android is linux Aug 14 20:33:39 caverdude: generally you should ask where files are via the API Aug 14 20:34:07 new FileWriter("c:\\file.xml") I am trying to convert this to android Aug 14 20:34:13 caverdude: through http://developer.android.com/reference/android/os/Environment.html for example Aug 14 20:35:22 ok Aug 14 20:35:58 so it gets a File for the data folder Aug 14 20:36:14 and I use that in the FileWriter constructor Aug 14 20:37:46 Hi is it possible to create a context using a packages name? Aug 14 20:39:11 something like new FileWriter(theDataFolder.toString()+"/file.xml"); Aug 14 20:39:31 something like that, yes Aug 14 20:43:21 GreySyntax: no, you cannot directly create context; only obtain a reference to an existing context Aug 14 20:44:22 nseidm1: so theres no way to call getDefaultSharedPreferences() and read my apps preferences when the app isn't guarentted to be running? Aug 14 20:44:56 if your app isn't running how would that method get called? Aug 14 20:46:01 i'm injecting code into SystemUI/StatusBar using Cydia Substrate trying to access the settings i create in the activity Aug 14 20:47:22 Best way to convert a Bitmap object to a Drawable object? Aug 14 20:47:49 wow. that's one of the least secure things I've ever seen. Aug 14 20:47:54 * dragorn runs away screaming from substrate Aug 14 20:47:55 GreySyntax: I think the default shared preferences of an app are public, so you should be able to access them. getDebfaultSharedPreferences requires the app's context though, so you'll need to find another way Aug 14 20:48:10 sampullman: true :) Aug 14 20:48:15 sampullman: he's trying to do some godawful root-only hack that's basically android-level greasemonkey Aug 14 20:48:35 sounds like fun :P Aug 14 20:48:35 if you've already got root, pull the xml file out of the app data Aug 14 20:49:29 dragorn: i was trying to use standard API's as much as possible just trying to learn how things work Aug 14 20:49:43 however i'll consider it Aug 14 20:49:48 Hey guys I've updated my ADT and suddenly I'm having this guys problem but I can't seem to find a fix. http://stackoverflow.com/questions/18061040/move-console-and-logcat-view-to-bottom Aug 14 20:49:57 I don't think there's much of anything standard about that cydia thing Aug 14 20:50:36 dragorn: fair enough Aug 14 20:57:53 @romainguy: You like graphics right? Maybe you can help me with this issue :S Aug 14 20:58:16 Basically I'm doing Drawble d = new BitmapDrawable(getResources(), myBitmap); Aug 14 20:58:23 and it's not returning a valid drawable... Aug 14 20:58:48 how is it not valid? Aug 14 20:59:27 @romainguy: No image is loaded, it has bounds 0,0 - 0,0 and draws nothing when I do .draw(canvas) Aug 14 20:59:46 you have to call setBounds() to give it a size Aug 14 20:59:48 it's not invalid Aug 14 21:00:13 @romainguy: When I did that it just drew a black rectangle :S Aug 14 21:00:35 then your bitmap is wrong Aug 14 21:00:44 How so? Aug 14 21:00:49 If i just draw the bitmap itself to canvas it works fine Aug 14 21:00:50 :S Aug 14 21:01:39 Brian|CS now look what you did, romain left! Aug 14 21:01:54 Hey guys I've updated my ADT and suddenly I'm having this guys problem but I can't seem to find a fix. http://stackoverflow.com/questions/18061040/move-console-and-logcat-view-to-bottom Aug 14 21:02:06 D: Aug 14 21:02:08 I killed him Aug 14 21:02:09 noooooo Aug 14 21:02:38 CocoStorm wow, you got a -1 vote ! congrats ! Aug 14 21:03:00 g00s, that post wasn't me Aug 14 21:03:16 Lol Aug 14 21:03:22 CocoStorm rrriiiight Aug 14 21:03:28 -_- Aug 14 21:03:31 IJ :) Aug 14 21:03:54 hey guys, when i inflate a layout, when is onLayout called? Aug 14 21:04:20 I need to dynamically size a particular widget inside of it Aug 14 21:04:26 Eventually Aug 14 21:04:37 was hoping to tack on an onLayoutChangeListener or something Aug 14 21:04:52 Logcat when clicked shouldn't be a floating window Aug 14 21:04:57 I hate eclipse Aug 14 21:05:00 When it's added and android gets around to layout'ing the view hierarchy Aug 14 21:07:22 SimonVT: so if I did, View contentView; contentView.addOnLayoutChangeListener(myListenerThatFindsWidgetAndAdjustSize); contentView = inflater.inflate(...) Aug 14 21:07:40 that will call my listener when onLayout is called, which is eventually Aug 14 21:07:47 I don't care when it's called, just that it is called Aug 14 21:08:07 and I asked about when onLayout was called because I thought maybe it was called during the inflation process or something Aug 14 21:08:48 I know this must be FAQ, how do I view output sent to System.out from running android app? Aug 14 21:08:55 will that show in my eclipse console? Aug 14 21:09:01 Do you guys have their consoles as a movable try at the bottom? Aug 14 21:09:04 well I can test it I guess Aug 14 21:09:13 that when clicked becomes a floating window? Aug 14 21:09:46 BidiFormatter, my hero Aug 14 21:10:11 Nah, it's not called during inflation. It's basically posted to the main handler that it should layout the view hierarchy Aug 14 21:10:45 But eventually is a quite accurate answer :p Aug 14 21:11:12 SimonVT: makes sense :) so sounds like I can do what I'm trying to do then. Thanks! Aug 14 21:12:04 Fack you Drawables Aug 14 21:12:09 Every time I start up Android Studio to the newly converted (to gradle) project, I get the error message... "Error: Module 'my-app' already exists in the project. Would you like to remove module 'my-app' from the project?" ... and I am not quite sure what this means. Aug 14 21:12:12 Fucking getTransparentRegion is a lie Aug 14 21:12:13 it does nothing Aug 14 21:12:16 Consider extending the view or the view group instead tho Aug 14 21:12:52 SimonVT: That actually could be a better solution Aug 14 21:13:05 because it's already extended, and we override onMeasure Aug 14 21:13:25 But the issue is that I need to know... well, wait, no Aug 14 21:13:31 ok, let me try that :) Aug 14 21:13:31 Just measure it at the right size? Aug 14 21:13:38 SimonVT: yeah Aug 14 21:13:43 I was overthinking this Aug 14 21:13:51 Yeah :p Aug 14 21:14:12 The project that I inherited is weird because it has the old build system layout, and each of the Library Projects is a folder inside of the over app "my-app" Aug 14 21:19:25 this is what it looks like before minimizing http://oi39.tinypic.com/2vtodg7.jpg Aug 14 21:20:10 this is after http://oi44.tinypic.com/2chxeeb.jpg Aug 14 21:25:19 anyone? Aug 14 21:25:23 :\ Aug 14 21:25:28 could anyone at least tell me whether that's normal Aug 14 21:29:35 fuck it Aug 14 21:29:37 i'll use android studio Aug 14 21:30:56 that's the way! or IJ Aug 14 21:32:06 bankai_, so nobody here uses ecliipse? Aug 14 21:32:31 bankai_, I'm guessing I can install android studio and just point it to my workspace and everything will be normal? Aug 14 21:32:44 you import it Aug 14 21:32:57 okay should be good Aug 14 21:35:11 i don't use eclpise since I tried intellij idea the first time Aug 14 21:36:06 I'm obviously missing out here Aug 14 21:36:27 but I can't believe nobody uses eclipse/knows what's happening with my workspace Aug 14 21:38:48 Is this a valid way to emit an empty JSONArray? "client.emit("foo", JSONArray(), new Acknowledge() {" Aug 14 21:39:44 I didn't realise android studio is in beta Aug 14 21:39:48 is it stable? Aug 14 21:40:18 people have reported a few problems, especially updating the last release, but it's relatively stable. if in doubt use IJ Aug 14 21:40:59 ahh okay, thans bankai_ Aug 14 21:41:02 *thanks Aug 14 21:42:18 Maybe someone has had this issue, but I'm using AndroidAsyc for socket.io, and when I do client.emit(name, json, ack), my acknowledgment is appearing as my req.params within node Aug 14 22:04:58 What teh fuck matrix Aug 14 22:05:04 why don't you properly rotate rectangles Aug 14 22:05:04 D: Aug 14 22:06:17 hm, new AS out. wonder if its time to try :) Aug 14 22:06:30 Fucking Matrix Aug 14 22:06:39 instead of rotating my rectangle as I would expect Aug 14 22:06:41 it decides to say fuck it Aug 14 22:06:43 and just resizes it Aug 14 22:06:56 to be big enough to contain the rectangle if it would have fucking rotated Aug 14 22:07:01 g00s: buddy, i keep telling you no... Aug 14 22:07:10 hehe Aug 14 22:07:26 codebutler says "I've been having a bunch of trouble with Android Studio and adb." Aug 14 22:07:33 ok, i guess not :D Aug 14 22:08:19 god i hate google+ Aug 14 22:08:30 the shitties UI evar ! Aug 14 22:08:51 it's gotten much better IMO Aug 14 22:09:13 "Nevertheless I seen this also happen in IntelliJ. Started to notice it around March/April so I expect it is something in Android package" Aug 14 22:09:16 right now I'm mad at maps because I can't figure out where they hid the public transit navigation Aug 14 22:09:20 i have been seeing this also Aug 14 22:09:29 it was around march adb has been super shitty Aug 14 22:09:38 and i'm just using it from the command line Aug 14 22:09:42 same problem I've been having for a while - I'm showing ads from Yume/Brightroll in my application, but when a user locks the screen, the ad plays in the background Aug 14 22:09:45 so it has nothing to do with eclipse / AS Aug 14 22:10:03 when the user unlocks the screen, I get a MediaPlayer error (code = UNKNOWN), and the ad player crashes Aug 14 22:10:41 Fuck this shit Aug 14 22:10:58 Anyone wanna help me figure out how to rotate a RectF/Rect object? Aug 14 22:11:09 I've been trying to use Matrix.mapRect, but that just fucks shit up Aug 14 22:11:35 it doesn't rotate the actually rect, it makes the rect big enough to contain the rotated rect, but doesn't rotate Aug 14 22:11:37 if that makes sense Aug 14 22:11:37 >.> Aug 14 22:12:15 well, RectF looks like it's just a collection of 4 coordinates Aug 14 22:12:24 beyond a DIY calculation, can't help Aug 14 22:12:40 Yeah, I'm trying not have to go to a self calculation Aug 14 22:12:41 :S Aug 14 22:14:18 if you can project a point, that's your rotation right there Aug 14 22:14:32 calculate the 2d coordinates of the corners of the rectangle and project them Aug 14 22:15:09 The thing is, I'm starting to think Rect/RectF can't be rotated... Aug 14 22:15:35 like, you can't have a Rect object that represents a rotated rectangle Aug 14 22:15:35 if it is a structure containing 4 values, which are typically x, y, width, height, how do you suppose it could represent a rotation? Aug 14 22:15:35 >.> Aug 14 22:15:48 alankila: Yeah, thats what I just realized Aug 14 22:15:49 lol Aug 14 22:16:20 does this help? http://stackoverflow.com/questions/13048979/how-to-rotate-a-rectangle-drawn-on-canvas-in-android?rq=1 Aug 14 22:16:28 I know how to draw them Aug 14 22:16:37 I know what I need to do now though Aug 14 22:16:47 I'm just gonna convert the Rect objects to Region objects Aug 14 22:18:28 AH, actually, I need to construct a Rect -> Path -> Region Aug 14 22:18:33 that is way more difficult than it should be >.> Aug 14 22:19:14 hmm Aug 14 22:19:14 RectF cannot be anything but a straight-up rectangle Aug 14 22:19:14 it's got 4 floats - top, bottom, left, and right bounds in float Aug 14 22:19:57 Rager: Yah, I'm abandoning them Aug 14 22:20:13 I'm taking the RectF, adding it to a path, rotating/translating that, and then using that path to construct a region Aug 14 22:20:14 :S Aug 14 22:26:06 I'm trying to get load http://acm.cs.uic.edu/~stephen/cyanogenmod/repository.xml but sdk manager says that "SSLPeerUnverified peer not authenticated" Aug 14 22:26:34 (the http redirects to https) Aug 14 22:26:43 klue see topic Aug 14 22:27:08 g00s: ah Aug 14 22:27:21 Does any one of you guys know how custom lock screens disable the home button? There is the option of defining your own launcher but for example ActiveLockscreen doesn't do this and I still can't get out of there. Aug 14 22:30:09 Anyone know what the clip is in Region.setPath(path, clip)? Aug 14 22:37:06 I have a class Product, that has a getView() method so it can be easily shown in a ListView. On my Activity class I have an ArrayList (being Item an interface used in Products). How could I delete an object in the ArrayList when a button is pressed on the Product's View? (Without making the list static) Aug 14 22:38:46 What do I put in gradle home when importing a gradle from Eclipse? Aug 14 22:40:44 nvm Aug 14 22:47:17 Well. That was way too difficult for the simplicity of the problem >.> Aug 14 22:47:21 Didn't think that would take me over an hour Aug 14 22:52:21 Okay, so I've been lied to here Aug 14 22:52:35 I downloaded android studio and it doesn't look like this http://developer.android.com/images/tools/android-studio.png Aug 14 22:53:11 CocoStorm: The cake was a lie Aug 14 22:53:28 How do I make it look like the above :( Aug 14 22:55:23 anyone? Aug 14 22:56:43 SimonVT: in general would you advise to use fragments when using your menudraw? Aug 14 22:59:52 dem color schemes be darned Aug 14 23:08:05 The project I inherited has all of it's library projects in a libraries subdirectory, thus the root build.gradle is also the build.gradle of the main project itself. Would this cause issues? I can build and run on my local machine, but am having issues running it on a CI server. Aug 14 23:09:06 That issues seem to point to a build.gradle/settings.gradle problem Aug 14 23:09:33 If anyone read my question: would reflection be a good way to do it? Aug 14 23:10:49 reflection is never a good way to do anything (yes, there are exceptions; it's a rule of thumb) Aug 14 23:11:08 evanc, is what I want to do an exception? Aug 14 23:11:10 and if there are exceptions, catch them Aug 14 23:11:15 zyngawow: are you asking if using reflection to update an arraylist is a good way to do it? because no. no. nonononono. NO. Aug 14 23:11:46 evanc, from another class Aug 14 23:11:54 evanc, what is a good way then? Aug 14 23:12:30 zyngawow: http://i.imgur.com/bazqF.gif Aug 14 23:12:36 zyngawow: pass a reference to this other class Aug 14 23:12:39 or expose a method to do it Aug 14 23:13:02 I considered passing a reference Aug 14 23:13:26 I was just looking for a better way Aug 14 23:14:22 pass a reference (either to the list itself or the declaring class and have a method which does the necessary manipulation) Aug 14 23:18:14 I wanted to use reflection for something.. guess it'll have to be another time Aug 14 23:18:51 yeah, uh, you shouldn't ever want to use reflection Aug 14 23:23:45 ^ Aug 14 23:36:08 Hey guys I have imported the gradle build to Android Studio but I see none of my project on the side just the home directory and external libraries folders Aug 14 23:51:09 AHHHHHHHH Aug 14 23:51:34 ron_frown: and... breathe Aug 14 23:51:53 I'm stoked man, just got gui infrastructure in place in my os =) Aug 14 23:52:13 now I can actually build ui toolkits Aug 14 23:52:29 curses! Aug 14 23:52:49 ncurses? Aug 14 23:53:24 Hey guys I have imported the gradle build to Android Studio but I see none of my project on the side just the home directory and external libraries folders Aug 14 23:55:04 anyone :\ Aug 14 23:57:44 I think you should repeat again Aug 14 23:57:45 jus sayin Aug 15 00:00:34 ron_frown, I followed the guide to migrate from eclipse, I exported the build.gradle file from eclipse and imported it in Android Studio. Everything seems fine but on the left instead of seeing my projects I see my home directory? :S Aug 15 00:05:20 this is what it looks like http://oi39.tinypic.com/2vb0uas.jpg Aug 15 00:07:35 that's not normal right? Aug 15 00:07:51 what did you expect ? Aug 15 00:08:01 funkbox, my projects? :S Aug 15 00:08:14 what't the point of the gradle then :S Aug 15 00:08:23 well, have you tried expanding the projects on the left ? Aug 15 00:08:26 that says "Marco" Aug 15 00:09:37 funkbox, yes and I can find my projects but surely I don't have to look through my home directory all the time for android projects? :S Aug 15 00:09:45 like seriously why is the home directory there Aug 15 00:09:48 your use of :S is excessive Aug 15 00:09:53 sorry Aug 15 00:10:03 have you considered you did something wrong ? Aug 15 00:10:12 funkbox, yes which is why I'm here Aug 15 00:10:34 try running through it again Aug 15 00:10:39 why else would I be asking questions about it Aug 15 00:11:34 okay so I see packages in the drop down but shouldn't they be called project Aug 15 00:11:35 technically Aug 15 00:11:39 *projects Aug 15 00:12:48 funkbox, shouldn't my android projects be under projectS? ;S Aug 15 00:13:19 i don't know man, you're not providing enough details and seem to expect android studio to be eclipse Aug 15 00:15:33 funkbox, my projects are under packages http://oi41.tinypic.com/eil5i1.jpg Aug 15 00:16:02 so you converted everything under home and not individual projects Aug 15 00:16:40 funkbox, what do you mean sorry Aug 15 00:16:59 what's your project structure like in eclipse? Aug 15 00:20:21 funkbox, in package expolorer it just has my projects in them Aug 15 00:20:49 my projects are all save in /marco/project Aug 15 00:21:17 CocoStorm: i would recommend reading up more about gradle, creating a sample android project from scratch and then figuring out what your project structure will look like in gradle Aug 15 00:21:20 But yeah I guess my question is, is my setup normal i.e to have my android project under the packages drop down menu Aug 15 00:22:19 and yes, my project has just the folder and the constintuent project below it. i do use maven Aug 15 00:23:47 funkbox, so they're all under the packages drpo down menu like so http://oi41.tinypic.com/eil5i1.jpg ? Aug 15 00:24:06 pretty much Aug 15 00:24:44 I see, so my setup is normal? okay thats good :) Aug 15 00:24:47 thanks Aug 15 00:26:57 hi, is it possible to simply start an ACTION_CHOOSER intent and grab the resulting app class name, to be later used in an explicit intent? Aug 15 00:27:35 the docs suggest that an underlying EXTRA_INTENT must specify an additional intent, but basically i don't want to do that, i just want a class name. Aug 15 00:34:33 hey guys is there a way for my application service to input a button press to the system? like some kind of intent or reciever? Aug 15 00:36:29 not really .... what are you trying to do ? Aug 15 00:37:50 oh fuck Aug 15 00:37:54 i've been doing it wrong all along Aug 15 00:38:02 it's meant to be under projects like i said Aug 15 00:38:50 bankai_: I need to take input from the Xperia Play touch pads and simulate keyboard presses to apply to any app to make them mappable keys for certain games that dont support them but do support button inputs Aug 15 00:40:07 sounds like you need to write a driver.... no idea, kiddo Aug 15 00:40:40 well the driver already exists and it simply triggers an event whenever you touch the pads Aug 15 00:41:26 the thing that tirggers the event shouldnt matter to get my answer, it could be an activity or a service doing the same job Aug 15 00:44:03 hello Aug 15 00:44:10 im newbie with android Aug 15 00:44:20 i would like to develop android applications Aug 15 00:44:29 with eclipse enviroment Aug 15 00:44:37 but i dont know how to do it Aug 15 00:44:53 d.android.com Aug 15 00:44:56 in fact i have installed eclipse-adt but it seems not working very well Aug 15 00:46:58 Why is android studio taking 812,000k of memory? Aug 15 00:47:10 my laptop is barely coping Aug 15 00:47:11 lol Aug 15 00:47:15 bankai_, its a recommandation for me? Aug 15 00:47:34 yes Aug 15 00:48:02 CocoStorm: does the same with me if you leave it open for more than a week Aug 15 00:48:23 which java version are you running it with ? Aug 15 00:48:24 Linkandzelda, I've just installed it Aug 15 00:51:39 http://oi44.tinypic.com/taqb0w.jpg Aug 15 00:51:39 its taking 88M of my memory right now on a mac Aug 15 00:51:56 its crazy Aug 15 00:52:56 Is Context Parceable? Aug 15 00:54:13 hey guys Aug 15 00:54:36 sorry for the noob question, but can't seem to find it on google or in customizing toolbar - in android studio how do i uncomment large blocks? Aug 15 00:55:09 Blocks like this? /*** COMMENT ***/ ? Aug 15 00:55:10 ctrl shift c or ctrl shift / .. Aug 15 00:55:14 i have alreadyt downloaded the adt bundle Aug 15 00:55:25 but when i launch it Aug 15 00:55:32 i cannot select option i want Aug 15 00:55:55 plotino: what's your actual question ? Aug 15 00:56:17 im trying to use java-adt Aug 15 00:56:33 that's a statement Aug 15 00:56:41 blocks w/ // Aug 15 00:56:50 if i click on "Build your first app" nothing happen Aug 15 00:57:05 i can't make studio's xml formatter to format the end tag the way I want, with a line break before. http://pastie.org/8237736 Aug 15 00:57:11 I have my main class creating Products, and I pass this main class to each Product as reference for when needed. On the main class, I have an ArrayList of these Products (which are Parcelable) and I want it to be reloaded on orientation change etc. The problem is, if I tried to Parcel the main class, I'd get a StackOverflow. How could I do that? Aug 15 00:57:27 ah ok hm ctl shift / does the /* */ Aug 15 00:57:31 plotino: need more information than that - errors, setup, did you follow the steps in d.android.com Aug 15 00:58:00 but not finding the // Aug 15 00:58:07 Because each Product tries to Parcel each Product in the ArrayList and so on Aug 15 00:58:27 gummylick: ctrl / ? Aug 15 00:58:40 aaaaaah! Aug 15 00:58:44 thats it! Aug 15 00:58:46 thanks phew Aug 15 01:00:20 it's one of those funny things that you do all the time but can only remember the action not the keys haha Aug 15 01:01:10 trying to see hwo android studio is vs eclipse Aug 15 01:01:11 nifty Aug 15 01:01:18 i downloaded the zip Aug 15 01:01:32 gummylick: most of the IJ shortcut keys are the same, if in doubt google for that Aug 15 01:01:39 i have extracted the zip in the two folders eclipse and sdk Aug 15 01:01:50 i run the eclipse exe under eclipse folder Aug 15 01:02:07 it loads the android develop tool Aug 15 01:02:14 but it s not working for me Aug 15 01:04:07 im still working on the code for this, but im updating an app that streams music via shoutcast Aug 15 01:04:16 i got the music playing part, etc, stop pause all is groovy Aug 15 01:04:32 groovy sucks man Aug 15 01:04:40 oh, nm Aug 15 01:04:45 hahah Aug 15 01:05:10 what'd i'd also like to do is to pull from a .js file (actually a php file that reads the js file and makes it a bit simpler) and then use http get to parse that, get the song title and title and display it in a toast message on click of button Aug 15 01:05:59 i have the parsing all written, got the php /js displaying it, but everytime i hit onclick the app crashes right around the httpget. in eclipse it said something about strictmode Aug 15 01:06:31 so... i was looking down that path, any one know if that's the path i should research or if im completely off and its prob some other onclicklistener stupid error Aug 15 01:06:32 ? Aug 15 01:06:35 stack trace Aug 15 01:08:42 hm Aug 15 01:08:46 still learning this ide Aug 15 01:08:48 * gummylick sigh Aug 15 01:08:55 for now all i can see is the first error in the event log as i do it Aug 15 01:14:03 : FATAL EXCEPTION: main android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork Aug 15 01:14:15 arghhhhhhh maybe it is strictmode Aug 15 01:14:43 how do i disable strict mode Aug 15 01:14:52 you don't, you do things properly Aug 15 01:16:34 from last time i did this to this time, seems it changed - any clues to how i change things up so i dont have this error? Aug 15 01:16:46 i tried last night the whole disable strict mode route but eh Aug 15 01:16:47 no Aug 15 01:16:50 no luck Aug 15 01:16:50 don't do network operatiosn on the main thread Aug 15 01:17:16 i read that somewhere.. not quite sure what it meant Aug 15 01:17:28 but before i slept i was along the route of "doinBackground" Aug 15 01:17:36 :( Aug 15 01:17:46 is that what you mean? Aug 15 01:17:51 is that the proper way to go about it? Aug 15 01:17:54 bankai_, do you work in linux? Aug 15 01:18:13 gummylick: use an asynctask Aug 15 01:18:25 hmm Aug 15 01:18:26 what the heck is bintray jcenter Aug 15 01:18:37 plotino: no Aug 15 01:18:38 lemme research bankai_ .. thanks Aug 15 01:18:45 http://developer.android.com/training/basics/network-ops/connecting.html Aug 15 01:19:32 oo oh shit k lemme see what im missing! tks! Aug 15 01:23:08 ron_frown http://technical.io/ lol no Aug 15 01:25:08 i never heard this before "Andy giveth, Bill taketh away" haha Aug 15 01:28:37 ah man bankai_ , thanks... i saw tons of docs last night about using async on this but couldn't find something real clear on how to implement it. rtfm Aug 15 01:28:44 thanks for the link. very clear. Aug 15 01:46:05 oh fucks sake Aug 15 01:46:12 how do I make android studio forget all my builds Aug 15 01:48:27 my project keeps coming back after deleting it Aug 15 01:48:29 fuckign retarded Aug 15 01:49:04 CocoStorm yeah, seems like a bug Aug 15 01:49:25 when i try to delete a project intellij crashes most of the time Aug 15 01:49:46 oh really? I would've thought they'd catch on to that one pretty soon Aug 15 01:49:58 heh Aug 15 01:50:08 g00s, IntelliJ also? Aug 15 01:50:18 i guess this part of the ui got refactored in idea 12 Aug 15 01:50:47 anyhow, on recent projects, Fn=Del is insta-crash Aug 15 01:53:10 I see, so there's nothing I can do. I've been deleting everything in Android Studio and all the build.gradles and settings and somehow out of nowhere they appear again -_- Aug 15 01:53:16 I hope they fix that Aug 15 01:53:55 I haven't had a crash yet though Aug 15 02:11:07 is there a property for gradle plugin like java sourceSets.output ? Aug 15 02:24:27 "For more information, see the Gradle documentation on the Java plugin here." ok, lemme do that. Aug 15 02:24:29 * g00s checks Aug 15 02:24:39 * g00s tries according to the Java plugin docs Aug 15 02:24:42 * g00s fails Aug 15 02:25:39 I just upgrade my Admob - did Google do away with Paypal as a payment method? I can't see it, and people on Twitter etc. say they did Aug 15 02:30:08 g00s: what do you want? Aug 15 02:30:48 JakeWharton trying to find the equivalent of java plugin Sourcesets.output property Aug 15 02:30:57 this isn't per variant Aug 15 02:31:07 basically $build/ Aug 15 02:31:15 doesn't exist Aug 15 02:31:20 all that stuff is variant based Aug 15 02:31:28 variant.javaCompile.outputDir Aug 15 02:34:44 JakeWharton i'm looking for the property that would correspond to $buildDir/source Aug 15 02:35:17 not variant.outputFile; etc Aug 15 02:35:30 this should be common for all the variants Aug 15 02:36:30 it's not Aug 15 02:36:40 build/classes/free/debug/, for example Aug 15 02:38:07 i need my plugin to put generated sources in $builDir/source/ragel for example, each variant would use the same generated sources. well - ok; i can hard code it Aug 15 02:38:27 or i could gen the code for each variant :| Aug 15 02:39:16 output to whatever folder you want Aug 15 02:39:31 just add it to the variant's class inputs Aug 15 02:41:35 ok, thanks Aug 15 02:43:37 I'm having trouble getting the emulator to enable GPS. It's targeted to Google APIs 4.2.2 (hw.gps = yes). In Settings > Location access, access is turned on and GPS and wi-fi are both checked. When I telnet localhost 5554 and send a geo fix, I get an OK from the Android Console. Yet if I open Maps, it says "Please enable Google apps location access." Aug 15 02:48:47 g00s got graphics core in place Aug 15 02:49:05 nice ron_frown Aug 15 02:49:27 at least somebody was productive today Aug 15 02:49:27 now I just got to work out details of gui toolkit Aug 15 02:50:16 wth, just ran repo init and it put .repo in the wrong place, and said if it was wrong to rm it and try again … lol WAT Aug 15 02:50:49 run repo init in the folter you want to init a repo Aug 15 02:51:22 thats what i did -_- Aug 15 02:51:32 it made it two parents up Aug 15 02:51:39 but not in my home dir Aug 15 02:51:43 where is repo binary/scripts Aug 15 02:51:52 oh, thats ~/bin Aug 15 02:51:54 I jsut cd to new folder Aug 15 02:52:01 then ~/bin/repo init Aug 15 02:52:04 yeah, i've done this a ton of times Aug 15 02:52:05 and it'll init right there Aug 15 02:52:25 also, be careful repos sometimes get nutty when other repos elsewhere i nthe directory tree structure Aug 15 02:52:47 bbiab, library closing. thx **** ENDING LOGGING AT Thu Aug 15 02:59:59 2013