**** BEGIN LOGGING AT Fri Apr 08 02:59:58 2016 Apr 08 03:00:06 I think it does the job pretty well. It is a bit confusing, sure Apr 08 03:00:20 RustyShackleford: I'm comparing with a plain Android project in traditional IntelliJ IDEA, without ant nor gradle. Its internal compliation built the a project almost instantaneously. Apr 08 03:00:48 gradle sucks Apr 08 03:01:08 and internal compilation in intellij isn't that fast Apr 08 03:01:09 pfn: Thanks Apr 08 03:01:22 pfn: Faster than Gradle. Apr 08 03:01:28 * pfn uses gradle for none of his projects Apr 08 03:01:51 and projects I work on that use gradle, I don't use gradle with Apr 08 03:02:02 I just use my auto importer Apr 08 03:02:29 is it really worth the effort to not use gradle? Apr 08 03:02:38 how do you use android studio without using gradle? Apr 08 03:02:46 for me It is Apr 08 03:02:53 and I don't use android studio either Apr 08 03:03:03 what do you use then? Apr 08 03:03:11 intellij Apr 08 03:03:25 but android studio can be used without gradle as well Apr 08 03:03:34 if you add the appropriate build tool plugins Apr 08 03:03:44 http://thenextweb.com/dd/2016/04/07/google-facebook-uber-swift/ Apr 08 03:03:57 aint happen :) Apr 08 03:05:00 which OS do you guys dev on? Apr 08 03:05:16 QNX Apr 08 03:05:46 ubuntu is great for dev but god is it ugly Apr 08 03:06:02 OS X Apr 08 03:06:33 ubuntu is awful in every way Apr 08 03:06:45 definitely considering a macbook. Apr 08 03:06:59 windows 10 is pretty nice, but windows can be a pain for dev stuff Apr 08 03:07:22 just run ubuntu on windows 10, apparently that's a thing now Apr 08 03:07:51 They do worth it. I came from windows 8 and it just feel good now Apr 08 03:08:13 RustyShackleford: I have done Android development without gradle, and it's a pain Apr 08 03:08:36 RustyShackleford: The biggest pain is that no library provider bothers to explain what jar's I need. All they say is "add this to gradle config" Apr 08 03:09:15 RustyShackleford: I had the worst time trying to figure out how to get the compatibility API's to load properly. Apr 08 03:10:52 RustyShackleford: OSX has gotten pretty bad these days. Apr 08 03:11:57 loke, that's not hard using any build. tool Apr 08 03:12:06 it translates directly for all of them Apr 08 03:12:49 pfn: It's been a few years since I did it, so I can't remember exactly what problems I had. Apr 08 03:13:04 pfn: perhaps it's easier now? Apr 08 03:13:26 loke: Do you use OSX? Apr 08 03:13:42 I just resigned and went to Gradle. I wish I could avoid it though. I'm not looking forward to try to figure out how to build an Android application with Kotlin without Gradle though. Apr 08 03:13:50 GMX: Yes, and Linux. Apr 08 03:14:26 I used OSX since 2005. The last few years the quality of the OS has dropped enormously, to the point where I strongly doubt my next laptop will be a Mac Apr 08 03:15:18 loke: I heard that. But i'm still on mavericks, which is strong in my opinion Apr 08 03:15:51 GMX: Me too. I never upgraded my primary laptop to 10.11 Apr 08 03:15:53 2016 will be the year of desktop Linux! Apr 08 03:16:01 Leeds: I wish Apr 08 03:16:03 but not like Snow Leopard days Apr 08 03:16:26 linux is awesome Apr 08 03:16:39 loke: Is linux good for android dev? Does it have drawbacks? Apr 08 03:16:50 i installed it on this vps like 2 whole years ago and had literally zero problems with it Apr 08 03:16:57 GMX: I was plenty disappointed with 10.10, so unless 10.12 changes things for the better, I'm off OSX. Given their almost 100% focus on Iphone though, I kinda doubt that will happen. Apr 08 03:17:07 but on the desktop its always a pain in the butt Apr 08 03:17:13 I don't understand why the Android SDK is still 32-bit-only on Linux Apr 08 03:17:22 is that true? Apr 08 03:17:35 RustyShackleford: I have issues with Linux too, but mainly on the server. It's on the desktop. The main issue on the server is that damn systemd Apr 08 03:17:44 loke: Yeah, since 10.10 the updates were just useless Apr 08 03:18:07 * Leeds hugs simple reliable slackware Apr 08 03:18:29 Leeds: Does Slackware use systemd? Apr 08 03:19:04 loke: it does not Apr 08 03:19:12 Leeds: Sounds awesome :-) Apr 08 03:19:30 loke: it is :) Apr 08 03:19:41 Leeds: For the server, I'm mostly Solaris and Freebsd Apr 08 03:19:59 I was Solaris, back in the day when... Apr 08 03:20:39 kneehigh to a grasshopper? Apr 08 03:20:56 back when I was @sun.com Apr 08 03:21:04 Oh, nice Apr 08 03:21:11 the purple days were good days :( Apr 08 03:23:45 I know this might be weird request, but anyone with DLINK brand router give me their MAC address for wifi and underneath the router. I am doing an experiment. Apr 08 03:28:15 Demon_Jester: should i give you my ssn while i'm at it? Apr 08 03:29:30 RustyShackleford, no, you don't need to, I am seeing if belking changes their mac by one when the assign to wifi and ethernet. like 00:00:00:00:00:a1 for ethernet and for wifi it would be 00:00:00:00:00:b2 Apr 08 03:30:02 Leeds: I'm coming to Honky Kong this autumn. Apr 08 03:30:55 Leeds: Tell me what I should do there. Apr 08 03:37:25 loke, https://github.com/pfn/kotlin-plugin/tree/master/src/sbt-test/kotlin/extensions-android Apr 08 03:37:38 kotlin without gradle, for android Apr 08 03:39:09 pfn: Thanks, I'll check it out Apr 08 03:41:51 gordon_ that article was poorly written but there is probably some kernel of truth in it Apr 08 03:42:11 and the author didn't really know what he was talking about, but still Apr 08 03:44:45 loke: meet me for a beer? :) Apr 08 03:44:53 bringing the kids? Apr 08 03:44:56 Leeds: That's indeed possible. :-) Apr 08 03:45:29 Yes, it's a family trip. Not just the kids, but my wife's sister and mother too Apr 08 03:45:35 and my wife sister's kid Apr 08 03:45:52 They might want to go out my themselves, in which case I'll hook up with you :-) Apr 08 03:45:54 ooh, that'll be fun... you'll need a beer or two! Apr 08 03:46:35 Leeds: You got a google contect? I could drop you a hangout message or something. Apr 08 03:46:43 contact, even Apr 08 03:46:59 sure, I'm vmlinuz@ Apr 08 03:47:32 Oh, I'm already following you :-) Apr 08 03:47:44 hm, i tried putting a RecyclerView in AppBarLayout but that didn't work out well :D Apr 08 03:48:01 only 2 items, wrap content, no scrolling Apr 08 03:48:41 we have both been around a while... Apr 08 03:49:33 Leeds: Sure have. Apr 08 03:50:31 Leeds: when were you at Sun by the way, and what were you doing there? Apr 08 03:51:55 loke: I'm pretty sure we've discussed this before :) 2000-2005, in the UK, and mostly working on Linux/Solaris compatibility, SFW stuff, etc. - got some real deja vu with the 'bash-on-windows' aka 'Linux-binaries-on-windows' stories last week Apr 08 03:52:32 Leeds: Right. I have this nagging suspiction that we have actually met before. Were you working in the Manchester office? Apr 08 03:53:00 nope, Watford Apr 08 03:53:07 I see Apr 08 03:53:26 I never went to that office. Mostly Manchester, and some London and Glasgow. Apr 08 03:53:31 I came in as part of the bulk hire from SCO Apr 08 03:53:34 Sorry, not Glasgow Apr 08 03:53:37 Edinborough Apr 08 03:54:01 I left as part of the bulk layoff of ex-SCO people :) Apr 08 03:54:27 I left in 2001 just before the layoffs. Apr 08 03:55:08 I visited one or two offices around London, but we were pretty self-contained - we were really a satellite office of MPK, since we were Solaris engineering, nothing to do with local sales/support/etc Apr 08 03:55:48 Leeds: Your name does sound familiar. Were you ever working on any escalation issues? Apr 08 03:55:55 probably no more than one degree of separation, even if we didn't actually cross paths Apr 08 03:56:08 erm... no Apr 08 03:56:47 haha Mossack Fonseca Breach from wordpress plugin ? Apr 08 03:57:28 g00s: No evidence it actually happened that way. I think it all comes from a speculation article written by someone why looked at their site. Apr 08 03:57:37 g00s: I saw some speculation blaming drupal Apr 08 03:57:53 then again, it's not even clear yet if it was a breach, or an inside leak Apr 08 03:58:03 yeah Apr 08 03:58:54 either way its pretty epic Apr 08 03:59:22 their HK office was apparently a major part of the system, and there's a little local storm brewing over the coverage in our main English-language newspaper, which just happens to have completed its takeover by Alibaba this week Apr 08 04:00:11 will be fun for the rest of the leak, i guess more people in US Apr 08 04:00:49 my boss/client - no, I still don't have proper plans to dump him - actually pays me from a BVI company... he's a retired accountant, and I do believe is an ethical guy, but I mentioned it to him as a joke this week... Apr 08 04:01:24 he went off into a whole explanation/justification of how it was all above-board :) I think I hit a slight nerve with him, asking about that Apr 08 04:02:22 yeah there are legit reasons to hide wealth, like if you live in a country with corrupt govt, etc Apr 08 04:02:37 technically, of course, my entire lifestyle is offshore - it's a bit hard not to be, when you live on an island in a 'low-tax jurisdiction' :D Apr 08 04:02:41 but what they are saying is 20-32T in untaxed assets Apr 08 04:03:44 Leeds so are you going to give AS 2 a spin !? Apr 08 04:04:17 of course, Iceland - but Iceland is an anomaly in so many ways anyway... be interesting to see if anyone manages to make the stuff in the UK stick at all Apr 08 04:04:29 and then there's RT saying it's a CIA plot to discredit Putin :) Apr 08 04:04:35 lol Apr 08 04:04:44 of course they would say that :D Apr 08 04:05:00 g00s: I've downloaded it... I rebuilt my home PC a couple of weeks ago, which is why I was moaning above about the SDK still only being 32-bit on Linux Apr 08 04:05:25 i thought the sdk was 64-but ELF only Apr 08 04:05:28 in other words, it won't run on my current install, which is 64-bit Apr 08 04:05:29 *bit Apr 08 04:06:17 sounds weird; a few people were saying they couldn't run it because they had 32-bit systems Apr 08 04:06:45 and google forgot mention it , or something, so they went ahead and updated stuff that kaboom Apr 08 04:07:00 and we're all like, why are you on 32 bit systems! Apr 08 04:07:05 there do seem to be some 64-bit binaries there now - the emulator, mostly, which makes sense - but things like zipalign seem to still be 32-bit Apr 08 04:07:40 the AS install failed, at least partly, because mksdcard wouldn't run Apr 08 04:07:53 oh that stupid thing Apr 08 04:08:19 well, AS asked me for SDK directory but then wouldn't let me put in the SDK dir (the text box was read only) Apr 08 04:15:09 anyway, I tried to install AS 2.0, yes Apr 08 04:19:36 sweet this emulator kicks ass Apr 08 04:19:46 setting this up on my work computer asap Apr 08 04:23:49 I still think genymotion is better Apr 08 04:29:41 well for one geny doesn't have play services right ? Apr 08 04:29:55 that would be one huge improvement already Apr 08 04:30:44 genymotion seems more responsive Apr 08 04:31:04 but good shit google. If they continue improving upon it, should be awesome Apr 08 04:31:07 about time Apr 08 04:31:08 i guess since I have Cure 2 Duo i can't use latest haxm or some shit Apr 08 04:31:24 so i'll have to see now what version of haxm i need to get Apr 08 04:31:39 waiting for the morons I work with to package the new haxm Apr 08 04:31:54 then i can use 2.0 on my work computer. few more days Apr 08 04:32:35 if I am able to int i = 0; i++ is there something similiar I can do with letters? like C goes to D? Apr 08 04:35:43 if they are chars Apr 08 04:35:45 i = 'c' ; i++ Apr 08 04:36:00 char Apr 08 04:39:01 pfn, oh ok so its just that easy.. cool cool. Apr 08 04:49:18 Demon_Jester: Remember that a char is actually a UTF-16 unit, not an actual character. (also, with Unicode the concept of "character" is rather complex). Apr 08 04:49:50 loke, I has a feeling I should've referred to it as char. Apr 08 04:50:45 Demon_Jester: Let' just put it this way: As long as the values you are working with are plain latin (a-z, pretty much). Things will work. Outside of that, just assume it won't and you'll save youself lots of pain. Apr 08 04:52:36 loke im actually working with hexadecimal, would char still work with 0-9 or what would? String? Apr 08 04:52:48 Demon_Jester: yes, that's fine. Apr 08 04:53:09 you mean a string of 0-9A-F characters? Apr 08 04:53:14 Demon_Jester: When I said latin, I should have said "plain ASCII". I.e. character codes ≤127 Apr 08 04:53:37 Leeds, yes Apr 08 04:54:16 0-9 being in order, and a-f (or A-F) being in order in two different groups is a property of ASCII, yes. Apr 08 04:54:47 Nothing says characters have to be ASCII but that is a problem exactly how often? :P Apr 08 04:55:09 alphamule: welcome to "it's daytime in Asia" Apr 08 04:55:21 (Goes to deliberely use mixture of alternative encodings for letters) Apr 08 04:55:34 Oh, F comes before e Apr 08 04:55:39 :P Apr 08 04:58:01 A: 0x41 Α: U+0391 Apr 08 04:58:26 A: U+FF21 Apr 08 04:59:00 Of course if someone's feeding those types into a hex editer, they deserve the pain that results, heh. Apr 08 05:34:48 hm, does intellij 15 support git worktree ... Apr 08 05:42:31 are there docs on what xml tag can take ? Apr 08 05:42:42 is it just layout_ params basically ? Apr 08 05:44:45 I like how instant run fails more than works Apr 08 05:44:56 so now I need to press this 'play' button two times Apr 08 05:50:37 gordon_ so you think this stable was really a beta :D Apr 08 05:51:36 if I wanted to replace something at certain part of a string how would I do that? Apparently using substring, and replace are not working. Apr 08 06:56:17 is there any option to change the default tmp dir used by android studio? Apr 08 06:57:53 Anyone knows how to use SuperSLiM 0.4.13? I have set the LayoutManager and this is what my onBindViewHolder looks like[1]. The header doesn't stick. Am I missing something? [1]: https://dpaste.de/KRrj Apr 08 07:07:48 Hi #android-dev, is it possible the hardware depend libril-vendor.so files from a android 4.4 system to use in an android-5.0 system? Apr 08 07:32:29 hiya fellas Apr 08 07:38:32 did you guys try AS 2.0? Apr 08 07:38:34 pretty awesome Apr 08 07:38:51 1 second run Apr 08 07:43:25 activity is still restarted and state is lost Apr 08 07:43:52 of course Apr 08 07:44:01 it's not magic Apr 08 07:44:09 but you get that done 10x faster Apr 08 07:44:31 yes it suck less, improvement Apr 08 07:44:43 1 second, man Apr 08 07:44:50 faster than you can say run Apr 08 07:44:51 lol Apr 08 07:44:56 lost state man Apr 08 07:45:14 haha Apr 08 07:45:20 I don't think you understand that there is no other way to do it Apr 08 07:45:47 it's what you want after all, why would you run again and still be in the same state that you were in before you ran? Apr 08 07:46:02 what will happen to all the people who change code inside onCreate()? if the activity is not recreated? Apr 08 07:46:05 think bro think Apr 08 07:46:13 activate the brothink Apr 08 07:48:06 lol, how about detect those cases and restart? it's very easy Apr 08 07:48:40 very easy how? Apr 08 07:49:02 explain to me the process you think would be ideal to achieve what you're talking about (what exactly is the state you're talking about? or the scenario?) Apr 08 08:02:46 Dirty states are not always trivial to detect. Apr 08 08:03:17 Wonder how that would work in this case. Apr 08 08:04:54 you build tree/graph and if change code is accessible from onCreate, recreate Apr 08 08:08:10 Android M on Nexus and Motorola devices is horribly unstable. Apr 08 08:08:28 SystemUI just crashed after only 58 days uptime Apr 08 08:08:55 Hi there. Can someone please explain to me how to perserve dynamically created buttons? I switch from fragment to activity. In this new activity there are dynamically crated buttons upon user tap. But when user goes back to fragment and again to activity all the buttons are gone. How can I perserve dynamically created buttons? Apr 08 08:08:58 On KK and L I got 400 days uptime without issues. Apr 08 08:10:03 You can't, frojnd. Not directly. But! Apr 08 08:10:16 The activity can have a return code with return value. Apr 08 08:10:38 You can store which buttons you had created in that, and pass that value back to the activity when you start it again. Apr 08 08:11:02 Or, if it's supposed to persist over many days, store it into shared preferences Apr 08 08:11:55 justJanne: so I can store only ids? with button's names? and stuff like that withing ArrayList? Apr 08 08:12:52 I have a very strange problem Apr 08 08:13:29 the very first time I add my fragment to my activity and then I switch to another fragment from there (it's a bottom bar navigation) the onPause of that fragment isn't called Apr 08 08:13:35 after a relaunch, it's fine again Apr 08 08:14:00 I'm adding that fragment using replace() transaction Apr 08 08:14:26 justJanne: ok.. I'll put ids' and text inside json string and store that in shared preferences. I thought there was more direct way Apr 08 08:28:29 hey guys, i'm trying to make a collapsable AppBar. Here is my code: http://pastebin.com/x0EJWeLp but it doesn't collapse Apr 08 08:28:39 Can you help me? Apr 08 08:29:42 Is there anyway without rooting to replace the lockscreen? I see microsoft's for example does a lockscreen however if you have the default one enabled then you have to unlock both Apr 08 08:37:36 Bear10: nope. Welcome to Android. Apr 08 08:37:59 thanks justJanne Apr 08 08:38:36 what a shame Apr 08 08:39:38 Bear10: you can react to an unlock event if that helps Apr 08 08:39:49 * Zharf yawns Apr 08 08:40:00 hmm Apr 08 08:40:04 transformClassesWithDexForDebug takes 2 minutes in my builds \o/ Apr 08 08:41:05 also, I'm glad again I'm not using AS... the folks at work upgraded to 2.0 and found that every time they plug in a new device, the system does a clean build which takes 3-5 minutes Apr 08 08:41:34 Zharf: sadly, idea doesn't work with Android anymore >_> Apr 08 08:41:45 Latest idea 15 with Android plugin can't render layouts. Apr 08 08:41:53 "Upgrade your version of Android Studio" Apr 08 08:42:00 Fucking Google... Apr 08 08:42:42 justJanne, that happens when you're trying to render with too new tools Apr 08 08:42:58 you can change the API level it renders with from the top right of the preview screen Apr 08 08:43:08 also, why aren't you using IDEA 2016 Apr 08 08:43:16 I tried with API 23 or API 22 Apr 08 08:43:22 Eh, idea 2016 is EAP still Apr 08 08:43:28 no it's not Apr 08 08:43:35 2016.1.1 is the newest Apr 08 08:43:36 It hadn't been released in march 23 when I last tries. Apr 08 08:43:41 *tried Apr 08 08:43:47 what Apr 08 08:43:50 I even emailed jetbrains support Apr 08 08:44:15 https://www.jetbrains.com/idea/download Version: 2016.1.1 Apr 08 08:44:19 Idea 16 was an EAP still at that point Apr 08 08:44:25 Released: March 31, 2016 Apr 08 08:44:38 Yeah Apr 08 08:44:40 March 31 Apr 08 08:44:54 I used it in February 20 to march 27 Apr 08 08:44:56 2016.1.0 was released before that obviously :p Apr 08 08:45:03 Obviously, 2016 wasn't out then yet Apr 08 08:45:07 yes it was Apr 08 08:45:13 No, it wasn't. Apr 08 08:46:08 I never used the EAP version and I've been using this for a month or two Apr 08 08:47:03 anyway, you can use older renderer in IDEA 15 too Apr 08 08:47:44 Nope you couldn't. Apr 08 08:47:56 I have the versions installed here, I can show you that nothing works. Apr 08 08:48:08 yes, you could, I've been doing it for the last year or two -.- Apr 08 08:49:16 You could, but it stopped working early march Apr 08 08:49:32 I know cause I had to work in it back then. Apr 08 08:50:11 http://eclipser.xmms2.org/preview.png this thing doesn't work for you? Apr 08 08:50:34 Automatically pick worst Apr 08 08:50:38 ;)) Apr 08 08:51:31 Hi #android-dev, is it possible the hardware depend libril-vendor.so files from a android 4.4 system to use in an android-5.0 system? Or maybe I'm in the wrong channel - please point me to the right chan then. Apr 08 08:52:21 silviof, #android-root might be able to help Apr 08 08:53:02 Zharf, nope. The whole subwindow is deactivate, Apr 08 08:53:13 I can't even choose another Android Version. Apr 08 08:53:25 well, I can Apr 08 08:53:28 "This Version of idea is not compatible with build Tools > 21" Apr 08 08:53:32 in IDEa 14 and IDEA 15 Apr 08 08:56:03 justJanne: I've played a little with gson and buttons and all that... and I've tested it within onSaveInstanceState and onRestoreInstanceState... all the buttons get's recreated when I change screen orientation. However when I go back to fragment and back to activity again all the buttons are gone. Where exactly should I save json string when I go from activity to fragment so when I go back from fragment to activity I can call that json string and Apr 08 08:56:41 Zharf: thx Apr 08 08:56:42 Well, either you save it into shared preferences, Apr 08 08:56:48 ah.. I think you mentioned shared preferences Apr 08 08:56:56 Or you use setResult and extra in the intention. Apr 08 08:57:00 Depends in what you want. Apr 08 08:57:16 If you want the Buttons to be there even a month later, use shared preferences Apr 08 08:57:18 justJanne: I need permanent solution as user will add/or remove them during the time period Apr 08 08:57:27 If you want them to be gone after an App restart, Apr 08 08:57:35 Use intent and setResult Apr 08 08:57:41 justJanne: thank you so much Apr 08 09:07:31 hey guys quick question lets say i have a built APK file written in native java can one just extract the apk and have access to the source code? Apr 08 09:08:03 Wow I'm just checking the android source code Apr 08 09:08:11 The repository is 100GB? Apr 08 09:09:37 bePolite: i think that is that big because is not "optimized", either way if it was you can't read it Apr 08 09:16:21 bePolite: yes. Have fun spending one or two nights on cloning and first build. Apr 08 09:17:51 does anyone know if the source code can be read if you extract files in an apk? Apr 08 09:18:15 you mean apk decompilation Apr 08 09:18:20 LOL If only you knew my internet speed Apr 08 09:18:42 eagles0513875_, it can be decompiled, but it won't be the same as original source code. Apr 08 09:18:48 ok thats good to know Apr 08 09:18:51 I live in CAmeroon man. I use and interet connection of 2mbps and it costs me $1/GB Apr 08 09:19:03 im a bit worried about something that was compiled with phonegap Apr 08 09:19:14 damn thing just wraps the apk which can be extracted and one has access to the source code Apr 08 09:19:15 ah Apr 08 09:19:26 You can just extract all JS and HTML files from that :P Apr 08 09:21:01 Hi all hope you all got the update well. Anyone knows about draganddrop fab button? there is some problem I am having when dropping dragged fab button it disappears. Apr 08 09:22:44 doesnt phonegap use obfuscator or even proguard :? Apr 08 09:23:35 jscrambler or something Apr 08 09:24:09 Ashiren: i dont know but from what i gather it does not Apr 08 09:24:14 which is something im greatly concerned about Apr 08 09:24:48 phonegap as a concept is a nice idea but correct me if im wrong you use alot of the features that each respective version of android and its respective SDK's offer Apr 08 09:25:04 tried jack for the fun of it, clean build was about a minute faster, yay... app crashes on startup because it can't find the our application class /o\ Apr 08 09:25:44 eagles0513875_: well i dont know, i use android sdk, no fancy html5 Apr 08 09:26:01 Ashiren: said app and a few others for us were coded by 3rd party Apr 08 09:26:12 now that im the first person whose in house in terms of IT admin etc Apr 08 09:26:19 i want to change that and go native java which i know how to code in Apr 08 09:26:47 http://pastebin.com/2NRPuCwh can anyone have a glimpse ? really there is surly something pretty simple I’m missing there Apr 08 09:26:50 then do it Apr 08 09:27:07 Ashiren: need approval from my superiors at first Apr 08 09:27:28 im eager to learn android coding and that seems like a great little project to do it for :) Apr 08 09:27:55 @eagles I think the advantage is you can code in one platform to many mobile. it’s better for very simple stuff Apr 08 09:28:58 sivi: yes but then 3rd party is saying an accept button is offscreen they blame it that the phone has a virus which is bull shit Apr 08 09:29:34 excuse my language. I would rather go native and integrate somethign equivalent to an MDM in this app then lose potential features that we coudl take advantage of on android Apr 08 09:30:56 my answer was as someone who really does only native.I think the biggest advantage is that you can see what’s going on more easily. Apr 08 09:31:32 sivi: sorry but this issue just pisses the living daylights out of me Apr 08 09:31:37 sivi: i get where you are coming from Apr 08 09:31:42 let me ask you this sivi Apr 08 09:31:57 is there a way one can run a background process that if the GPS on a mobile is switched off it is automatically switched back on Apr 08 09:32:10 reason im asking we have the parallels MDM which we are using as a backup tracking system for our taxi's Apr 08 09:32:33 now drivers are always switching off the gps which the MDM needs. I would like to kinda have it switched back on if it is turned off Apr 08 09:33:37 I think you can make a serivice to turn it on Apr 08 09:34:39 From android or a process from a server that switch it on automatically Apr 08 09:35:27 sivi: any thing i need to look at exactly as that would be great if that is the case Apr 08 09:36:48 don’t know sorry cannot help you more. you can send ping to the gps device and if it’s off turn it on Apr 08 09:36:56 someone could help me with my collapsable toolbar problem? Apr 08 09:38:00 sivi: how this would have to be done over a GPRS connection Apr 08 09:38:03 in otherwords 3g Apr 08 09:38:30 hi I don’t know.. sorry :) Apr 08 09:38:47 its ok Apr 08 09:46:34 There is probably a protocol to connect gps and 3g though .. Apr 08 09:47:15 sivi: will need to research and dig :) just super busy being only In house IT admin Apr 08 09:48:41 8) Apr 08 10:08:20 https://imgur.com/gallery/vqUQ5 Apr 08 10:20:30 haha Apr 08 10:20:35 nice one gordon Apr 08 10:21:11 hi! who can tell, what is the main difference between new sdk emulator and the old one? and when it's sources will be available in aosp? Apr 08 10:25:12 what parameter do I need to set on a Edittext in order to force a new row of text when the user hits the end of the wrap_content? Right now, when they reach the end the EditText expands to the full width of the screen Apr 08 10:25:39 Do I need to set a hardcoded width ? Apr 08 10:32:22 oles: too many changes to list :P Apr 08 10:36:28 gordon_, i'm mostly interested in how they could make it work much faster? and is it still a goldfish platform? Apr 08 10:49:32 hi! Apr 08 10:51:39 Is it possible to have an EditText element, then when the user have entered text and clicked "Go" for example, I would like it to be a TextView instead, so there's no blinking cursor or underline disrupting the look. Apr 08 10:51:44 where can I read more about what each of the excutables from : ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin are doing? Apr 08 10:58:48 anyone here to point me to some documentation for all of the executables inside: ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin ? Apr 08 11:10:21 oles: it runs in the vm Apr 08 11:10:25 so they simply fixed it Apr 08 11:11:39 https://d13yacurqjgara.cloudfront.net/users/120141/screenshots/2631199/boobs_pull_to_refresh.gif Apr 08 11:11:46 new pattern ? Apr 08 11:28:56 gordon_ that is awesome lol Apr 08 11:35:24 Hello, i've a question. Im running mEMU as Emulatur (no, i dont like BlueStacks or GenyMotion) and a connected Android DEvice. The problem seems to be that mEmu use it's own adb for communicating. Now everytime i would like to access adb for my physical device the adb bridge was killed and have to be restarted. Is there a way to run multiple instancs of ADB? Apr 08 11:36:13 misterli, adb -s Apr 08 11:36:27 oh no, sorry Apr 08 11:37:24 yeah, tried connecting via socket and/or deviceId. Doesnt work since the emulator shares the ADB Instance (and only show those) and as soon as i want to use adb for my physical device the emulator-adb get killed Apr 08 11:37:37 leads to a adb kill/restart/start loop Apr 08 11:37:48 misterli, use more recent version of adb, it should support all of the devices Apr 08 11:42:26 ok, tried adding the mEMU Binary Path to the Systen Environments before android sdk and now "adb" uses the same instance which is working Apr 08 11:44:38 im building rest service for android app in php .. how to send file to android app via http response ? Apr 08 11:45:42 Laynee: send link in string Apr 08 11:46:04 well, you can elso send base64 encoded file... Apr 08 11:46:27 convert file to bytearray and encode it via base64? Apr 08 11:46:32 and then send that in response ? Apr 08 11:46:46 you can do that Apr 08 11:46:52 but I'd just send link to file Apr 08 11:46:58 is it a picture or what ? Apr 08 11:47:01 but this flow needs file itself Apr 08 11:47:03 no Apr 08 11:47:05 its not picture Apr 08 11:47:11 its a file containing piece of code Apr 08 11:50:29 so :D ? Apr 08 11:53:52 Can I set the max length of characters of an EditText to the width of the EditText itself? Right now it varies depending on how many spaces you have in the input text, which makes it unpredictable.. Apr 08 12:04:23 someone? Apr 08 12:13:26 I am doing a circular reveal of a view using codetail library. But getting this exception in 1/5 cases. Can't find any specific solution. Apr 08 12:13:33 A/OpenGLRenderer: Error: Ambient Vertex Buffer overflow!!! used 480, total 320 Apr 08 12:13:34 A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 19666 (hwuiTask1) Apr 08 12:19:00 Hi Apr 08 12:22:35 Hi all. I'm looking for a solution to have a Fragment.onBecomVisible() method. A method which is called when a Fragment is visible (/visible again). The solution must also work when the Fragment is inside a ViewPager. Any advice? Apr 08 12:23:15 Currently I use somthing with onResume and setUserVisibleHint but I have still an issue Apr 08 12:26:39 You can use onHiddenChanged() Apr 08 12:28:32 barq: ok, i'll check it out, 100% sure this will work? Apr 08 12:29:08 Nothing is ever 100% Apr 08 12:32:41 bad question, perfect answer Apr 08 12:39:06 Hi Apr 08 12:45:11 Good Morning Apr 08 12:46:42 know it's not ios channel but good presentation about things, that might be confusing https://realm.io/news/slug-andy-bartholomew-understand-monads-one-weird-trick/ Apr 08 12:50:26 Good Morning Apr 08 12:54:52 dont ever use android studio for git subtrees... Apr 08 12:57:10 Why that? Apr 08 13:04:20 When the user manually hits the "Clear cache" button in settings for my app, what exactly is cleared? Just everything in the Cache-folder, or anything else also? UserPreferences seem to be left intact...? Apr 08 13:10:47 not sure if anyone recalls, I asked a couple of days ago about specs for an android development PC Apr 08 13:11:11 RAM, RAM, and more RAM Apr 08 13:11:22 since then I made 2 wishlists.. one is an i5-6600 with 16 GB ddr 4, samsung ssd Apr 08 13:11:50 the other one, i7-6700k, 16 gb ddr and samsung ssd Apr 08 13:11:58 any should be fine for android, right ? Apr 08 13:12:12 I will use the iGPU for now Apr 08 13:12:20 yes Apr 08 13:12:34 alright, thanks Apr 08 13:12:40 will send them over to management Apr 08 13:13:28 if performance/price doesnt bother you, go for i7 :v Apr 08 13:15:00 AlexandruM, mine is a i5-3something, 4gb, with SSD Apr 08 13:15:30 it's fine, due to the SSD Apr 08 13:16:33 bitkiller: I have a laptop at the moment, i5-4200U, 8 GB of ram and a 240GB SSD Apr 08 13:16:48 it should have more ram, but i intend to buy a new laptop soon and give this to my wife Apr 08 13:16:52 but it does not work too well, in the sense that compiling locks up the PC and takes quite a while Apr 08 13:17:20 Ashiren: will see what the company budgets Apr 08 13:17:22 AlexandruM, isn't that sufficient? Here i have almost no locks at all Apr 08 13:17:35 U is quite meh overall Apr 08 13:17:42 seems that no .. and the project is not that big either Apr 08 13:18:03 my xeon at home locks up as well, but only for a couple of seconds or so Apr 08 13:18:47 lots of firefox open tabs, terminals, emacs, pdf reader, AS, eventually eclipse Apr 08 13:18:58 4G ram... is that even usable? Apr 08 13:19:00 SSD is miraculous Apr 08 13:19:16 I'm struggling at work with 8G Apr 08 13:19:27 16 is ok Apr 08 13:19:36 yeah Apr 08 13:19:36 AlexandruM, just look benchmarks, take the best Apr 08 13:19:53 multiple cores is usually good for compiling Apr 08 13:19:54 i'm thinking about an e5470 (dell latitude) Apr 08 13:19:59 if it were entirely up to me, i'd just get the i7 Apr 08 13:20:12 but it is a work pc Apr 08 13:20:23 same, take the best you can Apr 08 13:20:34 home I have the xeon e3-1241v3 Apr 08 13:20:41 basically i7-4770 Apr 08 13:28:45 How do you change the underline color of a spinner style? Apr 08 13:28:52 whenever it's been clicked Apr 08 13:29:05 I've put a button the style of a spinner with underline which seems to look good Apr 08 13:29:22 however whenever I click on it, it shows my primary material color on the underline color Apr 08 13:29:47 I've changed backgroundTint to the color I want, and it changes the underline color permanently Apr 08 13:32:26 Does AS 2.0 support C++ properly? Apr 08 13:37:07 hi everyone. Apr 08 13:37:35 How can I check size and free space of data partition in an unrooted phone? Apr 08 13:37:57 that would be a job for #android or #android-root Apr 08 13:40:16 ok Apr 08 13:40:20 still thank you Apr 08 13:57:15 with rxjava, is there any operator like if(boolean, observable, observable)? Apr 08 13:57:43 What would that do? Apr 08 13:57:49 bitkiller, ifThen() Apr 08 13:58:03 is probably what you're looking for. Apr 08 13:59:15 oh found it: https://github.com/ReactiveX/RxJava/wiki/Conditional-and-Boolean-Operators Apr 08 14:00:01 but marked with rxjava-computation-expressions Apr 08 14:03:04 hi Apr 08 14:03:29 i upgrade meu Android Studio to version 2 but now i have an error: Error:Access to the dex task is now impossible, starting with 1.4.0.... Apr 08 14:03:36 anybody can helpme? Apr 08 14:04:56 update gradle plugin for your build Apr 08 14:07:05 how? Apr 08 14:10:22 Mavrik, i'll use flatMap with the condition instead of ifThen Apr 08 14:10:53 ifThen would make the code uglier Apr 08 14:19:03 well, after the callback hell, the lambda hell Apr 08 14:45:41 Ahhh this sucks... AS 2.0 has no Navigation Editor... as an iOS developer, that is one of my fav parts... so is there a replacement for navigation editor in 2.0? or perhaps a 3rd party item? Apr 08 14:48:16 anyone having problem with AS 2 hanging up hard, needing force quit (on mac) Apr 08 14:48:42 used to be , i could 'adb kill-server' and that would get AS out of its func, but not any more Apr 08 14:52:00 only you Apr 08 14:53:15 there is a known issue with OSX usb stack when machine wakes up from sleep, but the solution for that is just kill adb Apr 08 14:53:23 Hello guys, I created a Map api key based on debug keystore, set the permission right and so on. But I still can't see the map. Any idea? Apr 08 14:53:31 looks like chase is another shop going whole hog on scala Apr 08 14:53:38 and they're not doing spark Apr 08 14:54:13 Oh, I guess they have a little spark in the mix Apr 08 14:54:21 I also can't see any error in logcat. How can I see whether there is some form of maps communication. Apr 08 14:55:47 hithere Apr 08 15:01:21 I am using http://developer.android.com/reference/android/widget/AbsListView.MultiChoiceModeListener.html - I have 300 records in ListView, to select all records I iterate through mListView Items and using mListView.setItemChecked(i, true); Apr 08 15:01:30 problem is that it takes few seconds to select all items Apr 08 15:02:04 I have probably overlooked something... is there a better way to select all items in ListView? Apr 08 15:06:47 It seems adding a second request to a Volley queue is really, really slow Apr 08 15:06:55 has anyone else experienced this? Apr 08 15:14:15 no Apr 08 15:17:20 g00s: Did you try the official Reddit app? Apr 08 15:17:44 TacticalJoke no - i don't really use android for anything but development Apr 08 15:18:17 TacticalJoke: it sucks Apr 08 15:18:27 TacticalJoke one comment thread i saw said it was quite lacking in features though Apr 08 15:18:32 Yeah, I didn't like it, drose379. Apr 08 15:18:37 Youre still in the game Apr 08 15:19:10 TacticalJoke: how you been? Havent seen you in ages Apr 08 15:19:46 Pretty well. Yeah, I've been really busy. Life be crazy. :D How about you? Apr 08 15:20:08 Not bad, been learning a lot lately Apr 08 15:20:12 I also made the mistake of getting back into chess, which eats away the spare time. Apr 08 15:20:22 Still going with the reddit client? Apr 08 15:20:31 At least my username is no longer unrepresentative of me. Apr 08 15:20:41 lol Apr 08 15:20:41 TacticalJoke ah, one time i wanted to learn chess too but got discouraged i'd have to learn all these opening moves Apr 08 15:20:42 Yeah, I use it every day so I kind of have to keep going with it. Apr 08 15:21:18 Good Apr 08 15:21:26 Memorizing specific lines isn't significant below master level. Even at FIDE Master level it might not be a huge deal. Apr 08 15:21:29 According to one IM, anyway. Apr 08 15:22:09 TacticalJoke heard starcraft can actually improve your working memory / strategic thinking better :D Apr 08 15:22:32 I've never played that. Used to play Red Alert 2, which is said to be similar (no idea, though). Apr 08 15:23:30 Have you been making new apps, drose379? Apr 08 15:23:58 I currently work for a company remotely so I'm working on an app for them, yeah Apr 08 15:24:08 yeah TacticalJoke, it sux (the reddit app, was not even available in my country) Apr 08 15:24:12 time to release yours! Apr 08 15:24:34 I'd also like to release an overhaul of the app I showed you a while back TacticalJoke Apr 08 15:24:39 i think we'll all know when TacticalJoke releases because the angels will sing Apr 08 15:24:51 canvs2321: Hi, the border of dialog disappered with .setStyle(DialogFragment.STYLE_NO_FRAME, 0); command =) Apr 08 15:24:52 Hell will have frozen over. Apr 08 15:24:56 :') Apr 08 15:24:57 TacticalJoke and i are in struggle to see who releases first :D Apr 08 15:24:59 That's cool, drose379. Did that happen recently? Apr 08 15:25:02 and AS will be stable, for real Apr 08 15:25:06 haha adq Apr 08 15:25:12 best/worst joke ever Apr 08 15:25:16 adq had to force quit AS already Apr 08 15:25:34 used to just have to kill adb Apr 08 15:25:35 Not too recently no Apr 08 15:25:55 is there a method like "onBackPressed" in DialogFragment ? Or how can I tell if user pressed back button in a dialogFragment ? Apr 08 15:26:35 i just discovered this thread, explaining the false positive i have in the purchase tracking with anwsers: https://twittercommunity.com/t/change-default-currency-for-answers-events/54853/15 while they state in https://docs.fabric.io/android/answers/answers-events.html#purchase "itemPrice: The item’s amount in the currency specified" and at same time provides a note saying "Currencies are not converted" Apr 08 15:26:38 .... Apr 08 15:26:40 nevrosia Apr 08 15:27:37 TacticalJoke did you see that google swift article yesterday Apr 08 15:27:39 sponge-tmp: There's `onDismiss` or something. I'm too lazy to google it. :s Apr 08 15:28:02 Yeah, g00s. That doesn't seem to make much sense when we consider the move to OpenJDK, the Jack and Jill stuff, etc. Apr 08 15:28:04 sponge-tmp, check the lolcycle of a fragment and watch/do things where you feel it should be done Apr 08 15:28:07 When does the doInBackground of an AsyncTask run? Apr 08 15:28:20 It seems to take quite some time after I call .excute() sometimes Apr 08 15:28:22 you can also watch onoptionitemselected if the back is not from the nav bar but from the toolbar Apr 08 15:28:29 adq 'watch lolcycle and do things' -> best advice ever Apr 08 15:28:44 i'm serious! Apr 08 15:28:45 :) Apr 08 15:28:56 :D Apr 08 15:30:03 g00s: I liked the suggestion that Google was considering making Kotlin the official Android language. Apr 08 15:30:04 TacticalJoke well, as long as its not scala :D Apr 08 15:30:06 Wonder whether it's true, though. Apr 08 15:30:16 Anyone ever watch the TV show Scrubs Apr 08 15:30:32 Also, it would be nice (even if loads of work) to start over again, if they went the Swift route or whatever. Apr 08 15:30:38 Even Activity is a ridiculous mess. Apr 08 15:30:44 TacticalJoke Don’t buy too much into it, that article has nothing but speculation in it Apr 08 15:30:47 drose379: of course Apr 08 15:30:56 Love thatshow sponge-tmp Apr 08 15:31:10 cbeust it was entertaining :D Apr 08 15:31:22 drose379: I cant do this all on myyyy own.. oh I know, im no superman *sing* Apr 08 15:31:38 Im on season 8 and I'm sad its getting towards the end Apr 08 15:31:49 I was sad when Prison Break ended. Apr 08 15:31:53 now if they said 'google to consider scala for android' we would have known april fools joke Apr 08 15:33:23 drose379: i think i havent watched after season 6 or so Apr 08 15:33:31 Why?? Apr 08 15:33:44 w0bni, until the previous async task finishes Apr 08 15:33:46 sponge-tmp: dont know. gotta do that some time Apr 08 15:33:54 drose379: ^ Apr 08 15:34:19 Oh Apr 08 15:34:38 pfn: oh my! Apr 08 15:35:05 scala is too complex for the typical android developer to comprehend Apr 08 15:35:26 Why Apr 08 15:36:15 drose379 any language that gives you 10 ways to skin a cat is hard to understand when you're working in teams Apr 08 15:36:38 True Apr 08 15:36:39 everybody has their own dialect and way of doing it, so it requires consensus and extra work Apr 08 15:36:49 (to agree on the one way to skin the cat) Apr 08 15:36:54 teams is not the problem. Apr 08 15:37:03 When using dagger, in your build.gradle, do you apply both plugins 'com.android.application' and 'com.neenbedankt.android-apt' or just the latter? Apr 08 15:37:13 hi guys. I'm trying to make my media app work with Android Auto. I have followed every single step in the developer how-to but I just can't get it to work properly. In the Desktop head Unit emulator I can see my app and I'm able to launch it, but then it just shows me a loading spinner and nothing else happens. Any ideas what I might be doing wrong? Apr 08 15:38:23 I am using MediaSessionCompat which works just fine. It correctly publishes my play state and metadata to the lockscreen and even other devices. like bluetooth speakers Apr 08 15:38:49 is there any way I can get some proper debug output from the head unit emulator? Apr 08 15:39:08 most people don't understand functional programming Apr 08 15:42:01 so am i reading this right, AS 2 can't update itself if you use JRE 6 Apr 08 15:45:41 people can barely even understand rxjava Apr 08 15:46:13 TacticalJoke, any idea how to speed up AdapterView.OnItemLongClickListener on "larger" ListView adapters? Apr 08 15:46:59 URI_MATCHER.addURI(LentItemsContract.AUTHORITY, "items", ITEM_LIST); The path variable isn't making a lot of sense to me. Where do we get items, items/#, etc.http://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/ Apr 08 15:47:12 does new sdk(which was released yesterday) emulator shows awesome performance only on x86 platform? Apr 08 15:47:27 and arm is still soo slow Apr 08 15:49:36 bolovanos: Is it slow? Apr 08 15:50:29 TacticalJoke, selecting all by iterating over all ListView records and doing mListView.setItemChecked(i, true); takes fes seconds on 300 records list Apr 08 15:50:41 fes == few Apr 08 15:52:13 bolovanos, recyclerview Apr 08 15:53:33 and separate check state from the displayed one Apr 08 15:53:55 so you can change the state for all your stuff in your arrays, but only reflect the changed state of the visible items Apr 08 15:55:11 shouldn't notifyDataSetChanged() cause whatever is displaying the data from my ListAdapter to update its content? Apr 08 15:56:26 My current idea is to update the dataset, call notifyDatasetChanged(), and then the view should update itself Apr 08 15:56:31 However, getView() still seems to use the old data Apr 08 15:59:07 w0bni: You may not be actually mutating the data set. Apr 08 15:59:41 TacticalJoke: yeah - I tried with data.clear() and data.addAll() now, and I had changes! thanks! Apr 08 15:59:50 now it jumps up and down, tho. hm. Apr 08 16:00:40 TacticalJoke: what does actually mutating the data set mean? Apr 08 16:02:16 Changing the thing holding data (e.g., `list.clear();`). Apr 08 16:02:23 adq, I have my own recyclerView adaptation implemented in StableArrayAdapter, but I will look closer at RecyclerView... thank you for advice Apr 08 16:06:28 yet again another quiet day in #android-dev ;) Apr 08 16:08:40 bolovanos: I don't know why it'd be slow. I guess you're doing something slow. Apr 08 16:09:05 Then it's the old "Step 1: Be fast. Step 2: Don't be slow" thing. Apr 08 16:09:47 TacticalJoke, so far - I have found out that I am calling get selected items each time I call mListView.setItemChecked(i, true);, which is almost 250 iterrating 250 records Apr 08 16:09:56 w0bni, are you using ArrayAdapter? :P Apr 08 16:10:57 Mavrik: using a custom subclass of BaseAdapter Apr 08 16:11:23 TacticalJoke, every mListView.setItemChecked(i, true); evoks calling of onItemCheckedStateChanged() which causes calling otherstuff - I have idea :) Apr 08 16:11:24 Ok. Apr 08 16:17:08 TacticalJoke, yes - now it works within blink of an eye (faster :D) - my fault - next time I will be checking whether bul action (select all) is in progress if yes - no action will be taken in onItemCheckedStateChanged() Apr 08 16:21:53 glad I do not have to reimplement ListView Apr 08 16:22:23 I wanted to switch to RecyclerView in my app but got worse performance. :/ Apr 08 16:22:40 My child views were getting View.onMeasure calls in RecyclerView than in ListView. Apr 08 16:22:53 more^ Apr 08 16:23:10 mm strange :/ Apr 08 16:23:28 sometimes it is not good to be with "mainstream" Apr 08 16:28:02 Yeah, people on /r/androiddev talk as if ListView is old news, but it's better than RecyclerView in a few ways. Apr 08 16:28:21 For my project, ListView is simpler more appropriate than RecyclerView. And I say this as someone who's not a huge fan of ListView. Apr 08 16:30:01 recyclerview is the new way forward Apr 08 16:30:28 That's a great example of what I'm talking about. :D Apr 08 16:30:48 dump your listviews and get on board on the shiny recyclerview :) Apr 08 16:31:04 abandon ship :) Apr 08 16:31:20 All for only $15.99 per month. Apr 08 16:31:32 https://www.youtube.com/watch?v=K_Doyh6q76M Apr 08 16:32:48 ListView https://www.youtube.com/watch?v=jh1rpjlw8xA Apr 08 16:33:56 hello, what is accessed read/written more often in your opinion, data cache or dalvik cache? Apr 08 16:34:23 in general overall use of phone lets say Apr 08 16:36:05 basically what im asking is, im assuming data will be read / written multiple times during use of an app, but is dalvik cache only read once at startup of app, or is it read more often Apr 08 16:37:58 depends on what your app does Apr 08 16:38:03 maybe it never uses cache data at all Apr 08 16:39:40 for example google play services Apr 08 16:39:53 it has approx equal data cache and app size Apr 08 16:40:38 what im trying to figure out is what is more beneficial to move to sdext for speedup, data cache or dalvik cache, im assuming both would be slower Apr 08 16:41:23 your app is going to move the cache? Apr 08 16:41:44 im not sure yes Apr 08 16:41:47 yet Apr 08 16:43:02 i want to optimize app for speed in the future and people often move stuff to sdext or sdcard Apr 08 16:43:19 hey folks i have some question regarding creating a sqlite db that can be used between multiple activities .. http://stackoverflow.com/questions/3900740/android-sqlite-database-shared-between-activities ... this seems to indicate i can create the db in a class that extends Application ... but i am unsure how i should go about creating the db .. as it stand i have the db help class and the table class for defining the tables .. and it all Apr 08 16:43:19 works when i call it from my main activity like such Apr 08 16:43:21 so there must be some kind of I/O balancing Apr 08 16:43:23 DBClient dbClient = new DBClient(this); Apr 08 16:43:23 SQLiteDatabase db = dbClient.getReadableDatabase(); Apr 08 16:43:53 but how woul i do this in the oncrete in the application class extension Apr 08 16:44:56 i have been unable to find an example of doing this online and the link the stack post has is no longer valid Apr 08 16:52:45 this is my main activity http://pastebin.com/vz95067F and this is my application class http://pastebin.com/3ea9ySeN Apr 08 16:52:56 not sure if i am doing this corectly Apr 08 16:53:36 we sorry i know its incorrect Apr 08 16:58:19 I just upgraded to AS 2.0.... and even brnad new Projects have errors... anyone else having issues? Apr 08 17:01:43 brnad ? Apr 08 17:05:55 IrishGringo, what kind of errors? Try a fresh install? Apr 08 17:06:12 I'm new to Instant Run -- how can I make changes that don't cause an app restart? No matter how trivial a change I make is (in either Java or XML), I get "Instant run applied code changes and restarted the app". Apr 08 17:06:34 truckcrash: yea... I guess I'm going to just delete the entier system and reinstall Apr 08 17:07:10 coworkers tried instant run today, it seemed terrible considering we switch devices all the time and it triggers a full rebuild which takes 4 minutes Apr 08 17:07:35 instant run is terrible :P Apr 08 17:07:37 It doesn't seem very fast here, even without the full build. Apr 08 17:07:46 normally the instant run seemed to takea about half a minute too Apr 08 17:08:28 most people I've heard from say instant run takes between 6-15 seconds for most cases Apr 08 17:08:31 which is pretty reasonable Apr 08 17:09:30 When it works it is usually pretty quick for me (under 5 seconds), but my projects are not big, and more often that not, it seems to fail, or full rebuild, or something else. Apr 08 17:09:52 so AS 2.0 stable is out Apr 08 17:09:59 yep. Apr 08 17:10:13 I've heard it being used on projects with 2-3 full dex files and still take about 6-15 seconds Apr 08 17:10:16 which is absolutely reasonable Apr 08 17:10:18 * pfn shrugs Apr 08 17:10:58 Update recommended? Or better a clean installation? Apr 08 17:12:01 I did both (update on my old laptop; clean install on my new laptop). Seems to work fine both ways. Apr 08 17:12:48 I like the clean-install approach, though, personally. Apr 08 17:15:49 I use 'File > Export Settings' and 'File > Import Settings'. Apr 08 17:16:14 Hmm, I see 'File > Settings Repository' now. Apr 08 17:19:58 Zharf i noticed first build starts a lot of jvms Apr 08 17:22:57 I *HATE* Android: Apr 08 17:23:16 "Gradle Version 2.2 or higher is required. Current version is 2.10. If using the gradle wrapper, try […]" Apr 08 17:23:23 Fucking Android Plugin Apr 08 17:23:43 justJanne gradle 2.2 is old as hell :) Apr 08 17:23:57 g00s: yup, but the Android Plugin for IDEA supports nothing newer Apr 08 17:24:08 use AS :P Apr 08 17:24:16 No. Apr 08 17:24:20 haha Apr 08 17:24:22 That’s wasting 2GB of RAM Apr 08 17:24:25 and I have only 10 Apr 08 17:24:36 i only have 4 and i get stuff done Apr 08 17:24:37 I need to have a javaee and an android project at the same time Apr 08 17:24:50 Yeah, g00s, but I’d use 4GB just for 2 instances of IDEA Apr 08 17:24:53 but - yeah, when it builds and starts 5 jvms i get in trouble :( Apr 08 17:24:59 if you use one instance with 2 projects it saves RAM Apr 08 17:26:11 but pfn keeps saying there is no reason to use AS Apr 08 17:26:26 :D Apr 08 17:27:07 pretty much Apr 08 17:27:25 unless you only do android and nothing else Apr 08 17:27:31 justJanne what did you decide with nav drawer , and those navigation targets in overflow ? Apr 08 17:28:16 g00s: well, I haven’t worked on anything yet. Apr 08 17:28:24 I start working on the project again this week Apr 08 17:36:31 what would be the easiest way to dismiss the open bottom sheet if the user presses outside of it Apr 08 17:36:39 using the support lib bottom sheets Apr 08 17:36:57 it's automatic if you do it as a dialogfragment Apr 08 17:37:11 sorry - i meant the coordinator layout version Apr 08 17:37:16 this isn't modal Apr 08 17:38:03 its set to a peek height, user can open it, but touch outside should collapse it back to peek height Apr 08 17:40:31 handle onInterceptTouchEvent and onTouchEvent in the behavior Apr 08 17:41:52 I was wondering, anytime I want to update something in the sdk, the IDE tells me that it is likely that updating while the IDE is running could cause problems due to the system configuration. So, is there a configuration that allows for that? Apr 08 17:49:09 Adyrhan: never seen that. I hit update and the new sdk manager updates sdk components blocking the IDE. Apr 08 17:49:34 Then it either restarts AS or you just close it. Apr 08 17:51:41 Ok, first freeze of 2.0 so far after an attempt to update the 6.0 api Apr 08 17:52:08 yup, not responding Apr 08 17:54:27 aaaand first IDE Error message in the event log after restart Apr 08 17:55:13 yup it is related to the failed update I guess. Tried to access a virtual file from the path to that sdk directory Apr 08 17:56:24 aand failed to send error report Apr 08 17:56:34 I'm liking 2.0 so far :D Apr 08 18:03:42 well, I'll do a clean install then. It doesn't feel like it behaves well. Apr 08 18:08:36 hi, i have a fragment with a gridview, which has buttons on it. how can i refresh the gridview ? (because some of buttons background will change) Apr 08 18:09:41 view.findViewById(R.id.gridview).invalidate() does not have any effects Apr 08 18:12:05 truckcrash: I did a fresh install.. .but I think the old setting are still on my laptop... Apr 08 18:12:06 Error:Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 Apr 08 18:12:22 truckcrash: this is the kind of error I am getting Apr 08 18:12:59 Ok done! GridView grid; grid.invalidateViews(); did the job Apr 08 18:40:50 ah idea 16 has git worktree support Apr 08 18:43:20 I'm creating a RadioButton on code. By xml I set a attribute called drawableLeft. I didn't found a method to set the same by code. How could I do it? Apr 08 18:49:49 wviana setCompoundDrawables Apr 08 18:50:00 I think that's what you're looking for Apr 08 18:50:49 or maybe Apr 08 18:50:50 http://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(int, int, int, int) Apr 08 18:52:14 Anyone else noticing that app builds in AS2.0 are taking significantly longer than before? Apr 08 18:52:32 My app used to build from clean in about 2 min, now averaging 6. Apr 08 18:52:45 Also, I'm using Kotlin- could be an issue with the AS Kotlin plugin Apr 08 18:53:49 Who here has lots of experience with google adwords? Apr 08 18:54:39 If someone uses someone else's company name, can google quickly shut them down? Apr 08 18:56:00 Artichokeslam: thank you. Apr 08 18:57:02 Could someone help me with this. I'm getting a NullPOinterException on line 185 https://gist.github.com/wviana/8a23ea62835b058fe62a67d80c37ad0a Apr 08 18:57:42 what's the social channel Apr 08 18:58:11 Hi All, I'm getting this error: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView. Any tips? None of the stack overflow solutions worked Apr 08 18:59:15 razzmc: #android-offtopic? Apr 08 19:03:23 I'm tyring to exclude unnecessary Crashlytics NDK libs for each of my apk splits Apr 08 19:04:27 Basically my idea is that, with app/build.gradle, for each variant, add packagingOptions.exclude *all non-applicable /crashlytics.so* Apr 08 19:04:53 But I'm not finding a way to get the packaging options- I don't think those end up being variant specific Apr 08 19:07:57 hehe, building and deploying with eclipse ADT was about as fast as Instant Run Apr 08 19:09:21 g00s: ah, you switched to eclipse compiler? ;) Apr 08 19:09:42 justJanne no, just based on memory - i'm using the same machine from 2010 Apr 08 19:09:48 dmtd: nah not it Apr 08 19:09:49 so its apples to apples Apr 08 19:09:52 i have a general question Apr 08 19:09:54 literally :D Apr 08 19:10:00 i will ask here cause i just gonna ask here Apr 08 19:10:21 to transfer music on an android, is there a windows equivalent of itunes that im forced to use or can i drag and drop Apr 08 19:10:30 im deciding between an s6 and iphone 6 (which i can get either for $50) Apr 08 19:11:04 'i will ask here cause i just gonna ask here" Apr 08 19:11:31 lol, and i will say here, cause i just gonna say here ... wrong channel Apr 08 19:11:43 i asked what the off topic channel is Apr 08 19:11:52 this isn't directory service Apr 08 19:11:58 call 411 Apr 08 19:12:11 why do you hate me g00s Apr 08 19:12:16 is it because im canadian? Apr 08 19:12:19 you have no netiquette Apr 08 19:12:25 IS U SERIOUS Apr 08 19:12:31 razzmc9 no way love maple syrup Apr 08 19:12:36 razzmc9: first thing, yes, you can just drag and drop. Second, #android or #android-help. Apr 08 19:12:42 ty justJanne Apr 08 19:12:43 Third, please behave. Apr 08 19:12:46 thank you, and only you Apr 08 19:13:00 look at that Apr 08 19:13:14 not only did justJanne answer the question, he (she?) also gave 2 alternatives Apr 08 19:13:17 * razzmc9 kisses justJanne Apr 08 19:14:03 Also, razzmc9, learn about using /LIST Apr 08 19:14:07 that gives you all channels Apr 08 19:14:11 you can even search with it. Apr 08 19:14:37 More info in #freenode Apr 08 19:14:52 consider google keep. It has a nav drawer, which seems to just switch fragments. but the action bars are different tints, etc. Do you think each fragment is owning its toolbar and then just setSupportActionBar(fragment't toolbar) ... or do you think there is only one toolbar Apr 08 19:15:07 g00s: why "do you think?" Apr 08 19:15:14 brb, fernflower’ing Google keep Apr 08 19:15:29 Im obsessed with having static runnable classes to perform background tasks in my activities, then using eventbus to post back to UI Apr 08 19:16:20 justJanne i never got got fernflower to decompile code in apk Apr 08 19:16:27 if you know how, i'd love to see the steps Apr 08 19:16:30 I wish there were some sort of service where you could type in a query about Android music capabilities, and it would list potential results... Apr 08 19:16:32 for that i do use CFR though Apr 08 19:16:35 g00s: I’ll show you the results, and how to Apr 08 19:17:34 I first run a custom fork of dex2jar that properly handles multidex Apr 08 19:17:49 g00s: do instance variables in a class hold reference to the class? Apr 08 19:17:51 then I run both jd-gui and fernflower, as jd-gui can handle some cases of obfuscation that fernflower can’t Apr 08 19:18:15 then I run apktool Apr 08 19:18:19 i never had good results with jd-gui Apr 08 19:18:23 then I combine all into one folder Apr 08 19:18:30 actually, I just use a script for all this Apr 08 19:18:35 justJanne someday try cfr decompiler Apr 08 19:18:45 thats handled thins like enums pretty well Apr 08 19:19:07 anyway, let’s look into keep now! Apr 08 19:19:24 yes :D Apr 08 19:19:34 overall about 400k LOC Apr 08 19:19:41 i'm going to try this too, not sure i'll get past the multidex part Apr 08 19:19:52 which means i probably won't be getting very far haha Apr 08 19:20:31 step 1: remove all of ABC Apr 08 19:21:17 interesting: they use glide Apr 08 19:22:43 justJanne i just saw one classes.dex Apr 08 19:22:57 g00s: so, simple stuff: Apr 08 19:23:04 each fragment has actually two fragments. Apr 08 19:23:16 a container fragment, which contains a header, and a content fragment. Apr 08 19:23:19 well, some do. Apr 08 19:23:21 some don’t Apr 08 19:23:34 And each content fragment has only 1-5 views Apr 08 19:23:49 and Google uses custom views like CollaborativeEditText that sync via firebase Apr 08 19:23:50 is the header the action bar or something ? Apr 08 19:23:54 yup Apr 08 19:24:10 editor_fragment_container.xml: Apr 08 19:24:18 http://hastebin.com/afexikumew.xml Apr 08 19:25:07 wow, i had problems using in AppBarLayout Apr 08 19:25:14 super interesting Apr 08 19:25:27 thanks, for looking i'll investigate more Apr 08 19:25:57 want a full dump of the decompiled things? Apr 08 19:26:40 justJanne no thats ok , thanks - since its not multidex i can do it Apr 08 19:26:49 g00s: I have it anyway, upload done in 20sec Apr 08 19:26:55 ok Apr 08 19:27:31 https://dl.kuschku.de/com.google.android.keep_3.3.102.0-33102070_minAPI14(x86)(nodpi).zip Apr 08 19:27:58 the "src" folder is for the java stuff, I removed all AppCompat stuff for easier readability Apr 08 19:31:28 thanks justJanne ! :) Apr 08 19:31:38 wow they have a lot of services :/ Apr 08 19:31:56 g00s: I also have tools for deobfuscation of things, and automated conversion into gradle projects, but they’re a bit broken right now Apr 08 19:32:12 (deobfuscation based on some algos used also by jsnice.org) Apr 08 19:34:24 justJanne when i use an app like keep, i think - this doesn't look very complicated Apr 08 19:34:31 it just does a few things Apr 08 19:34:47 then i see the code, and i think - holy s%$%t Apr 08 19:34:49 well, it isn’t very complicated. Even the code there isn’t Apr 08 19:35:15 I think I mentioned it before, but something I’m currently working on is a Google keep clone. Apr 08 19:36:12 justJanne interesting to see they have a FrameLayout for each fragment Apr 08 19:36:44 just looking at browse_activity.xml .. Apr 08 19:36:47 g00s: yup, I do the same, FrameLayout is almost completely without performance hit Apr 08 19:37:08 back in the day when AOSP apps were kinda maintainer, you could learn a lot of these tricks yourself Apr 08 19:37:18 *maintained Apr 08 19:37:42 yup Apr 08 20:12:36 guys, I've a problem, I'm not able to create an activity with menu with support v7 Apr 08 20:14:02 icemanbp: any more details you can provide? Apr 08 20:14:31 justJanne: It's just with the basic code that androidstudio create Apr 08 20:15:24 and? Apr 08 20:15:40 and I can't see in the toolbar the button for the menu Apr 08 20:15:59 did you add a menu in the res/menu/ folder, Apr 08 20:16:07 sure Apr 08 20:16:09 and instantiate it in onCreateOptionsMenu in the activity? Apr 08 20:16:35 yes, with getMenuInflater().inflate(R.menu.main, menu); Apr 08 20:18:52 eh, why getMenuInflater? Apr 08 20:19:03 in onCreateOptionsMenu you get an inflater as parameter. Apr 08 20:19:15 if you wanna inflate.... :) Apr 08 20:19:24 yes, but then you can do Apr 08 20:19:32 inflater.inflate(R.menu.main, menu); right? Apr 08 20:19:38 but even then, you made sure to do setSupportActionBar(toolbar) before? Apr 08 20:19:59 yes, in onCreate Apr 08 20:20:15 onCreateOptionsMenu doesn't have inflater as parameter Apr 08 20:23:45 right, yeah. That’s correct. Apr 08 20:23:48 And it doesn’t show? Apr 08 20:26:01 getMenuInflater().inflate(R.menu.main, menu); << icemanbp Apr 08 20:26:21 adq: he already does that. Apr 08 20:26:23 adq: yes, that's what I did, doesn't work Apr 08 20:26:26 that’s the thing. Apr 08 20:26:41 oops i did not backlog enough, sorry Apr 08 20:27:49 anyone have any experience with the android-crop library? Apr 08 20:27:57 I think I'm running into samsung specific issues Apr 08 20:28:27 icemanbp, what do you see in your toolbar? Apr 08 20:28:41 maybe your menu in main.xml is wrong Apr 08 20:31:20 samsung is the best Apr 08 20:31:31 yup Apr 08 20:32:02 * Gryd3 winces Apr 08 20:35:22 adq: I see an empty toolbar Apr 08 20:36:22 Hello? Apr 08 20:37:55 Hi, welcome to #android-dev, your ticket is #1304345 Apr 08 20:38:13 :') Apr 08 20:38:19 now serving, #7 Apr 08 20:39:27 why android make this stuff ALWAYS a mess!!!! Apr 08 20:40:03 relax... inhale... exhale Apr 08 20:40:44 Adyrhan: no, 2 hours for a menu!!! and still doesn't work!!! Apr 08 20:42:04 Sweet. Having issues with Gradle and don't know where the best place to find support is. I'm upgrading from using 1.3.0 to 2.0.0 along side moving from 1.5 of studio to 2. When I build with gradle, everything is fine but the java compiler (:app:compileDebugJavaWithJavac) fails with Error:(40, 18) error: cannot find symbol class TheClass Apr 08 20:42:34 icemanbp: 2 hours is nothing Apr 08 20:42:36 ;) Apr 08 20:43:04 Does anyone know where I can find support for this? I've scoured stackoverflow and their are a few similar examples but nothing that has a working solution or that hints at where to explore next. Apr 08 20:43:22 Is there a gradle irc that's alive? Apr 08 20:43:24 Do you have a class called TheClass? Apr 08 20:43:35 Yea Apr 08 20:43:38 well no Apr 08 20:43:50 but the class "Manifest" exists Apr 08 20:43:58 what? Apr 08 20:44:02 it's under a separate module that is actually being loaded properly Apr 08 20:44:05 markyosullivan: it's so much for a stupid thing like this Apr 08 20:44:19 The class name is irrelevant Apr 08 20:44:26 No, no its not Apr 08 20:44:30 Just pretend I said yes Apr 08 20:44:56 Lol Apr 08 20:45:29 Sorry, the actual error and actual class are Manifest. The manifest class exists in a submodule that is building properly and has in past versions without issue. Apr 08 20:47:04 cahan, is the class in the manifest referencing it's package correctly? Apr 08 20:47:35 Is there a way I can guarantee something to execute upon crash/exit/destroy of an Activity? Apr 08 20:47:46 Failing that, issues I've had with 2.+ before have required me to clean the build first as it's using cached data Apr 08 20:49:29 NoirAvlaa - Not 100% sure what exactly your asking. Manifest is just the class name - not actually discussing the android manifest class/system. The class Manifest is properly configured/in it's place in the package that is being referenced and built. And I've cleaned/built many times - doesn't seem it's a cache issue. Apr 08 20:50:36 I meant instead of you use Apr 08 20:50:53 But your description doesn't appear to be very clear to me, so I might be misunderstanding the question Apr 08 20:53:18 onDestroy isnt 100% guaranteed, and you cant do much about crash Apr 08 20:53:33 best bet is doing things onDestroy() or in finish() Apr 08 20:56:40 Ashiren: Is there any way to guarantee calling a function upon legitimate exit maybe? Apr 08 20:58:51 Where would be? Apologies on the description. I'm not exactly sure how to pin this down since what is out there is so amorphous. What I during a build is that the gradle task "compileDebugJavaWithJavac" returns "error: cannot find symbol class Manifest". With past versions of gradle this has built with no issue at all, but in gradle 2.0 this error is thrown. Apr 08 20:59:09 What I get* during build... Apr 08 20:59:36 justJanne this code is effing gross :( Apr 08 20:59:56 BrowseFragment depends on the BrowseActivity ... Apr 08 21:00:39 cahan: did you declare the module as a dependency Apr 08 21:04:45 settings.gradle includes the module explicitly. The class is inside mobile.api. settings.gradle: "include ':app', ':mobile.api', ':greendoagenerator'" and the application that references this includes in dependencies "compile project(':mobile.api')" and the build.gradle for mobile api is set up with "apply plugin: com.android.library" Apr 08 21:04:59 I'm providing that since most of the stackoverflow questions related to that setup Apr 08 21:06:21 cahan: post your build.gradle... Apr 08 21:06:42 well, one week to refactor one activity to use Dagger, Rx, data binding api Apr 08 21:07:03 bitkiller: how is data binding working out Apr 08 21:07:59 haven't used that much in this particular activity, only direct simple bindings Apr 08 21:08:22 ^ this is ok Apr 08 21:08:52 let's see what the next week reserves to me. the next activity is more complicated Apr 08 21:11:06 bitkiller, is this a day job, or a personal project? Apr 08 21:11:27 truckcrash, sort of day job Apr 08 21:11:33 ah, indie? Apr 08 21:11:46 we have a small business product Apr 08 21:11:47 Using Dagger2? Apr 08 21:11:56 yep, dagger2 Apr 08 21:12:15 nice Apr 08 21:13:33 Anyone have any recommendations for simple rest api manual testing? Apr 08 21:13:41 tools* Apr 08 21:13:52 It definitely took me a little while to wrap my brain around how to use dagger2 correctly, but it's worth it Apr 08 21:14:07 orbyt_ here are the three project-root/build.gradle = http://pastebin.com/R3gJjnnr project-root/app/build.gradle = http://pastebin.com/9mEx8jXc project-root/mobile.api/build.gradle = http://pastebin.com/gb4PArrP Apr 08 21:14:21 Just don't make the mistake I did and attmept to pass android lifecycle objects (activities, contexts, etc.) with it Apr 08 21:14:58 Would you guys say it would be easier to learn dagger 1 first and then move to dagger 2? or start with dager 2 right from the start (for someone who is new to DI frameworks) Apr 08 21:15:10 i'm not sure whether one week is too much or not, but i'm starting to feel confident to look for some opportunity abroad Apr 08 21:15:30 the impostor syndrome is decreasing Apr 08 21:15:37 haha. awesome Apr 08 21:16:02 Im still not sure if I have imposter syndrome, or I am just actually incompetent Apr 08 21:17:43 hey people how is a rom build in c/c++ ? Apr 08 21:18:00 s/build/built Apr 08 21:18:16 truckcrash, i started with dagger2. dagger1 has a lot more resources on the web, and even starting with 2, i've fatally got to know something about the 1 Apr 08 21:19:22 DEFINITELY avoid dagger1 Apr 08 21:19:28 Just start with dagger2 Apr 08 21:19:28 lol Apr 08 21:19:29 ok Apr 08 21:19:34 You will end up getting so confused haha Apr 08 21:19:48 there are some fundamental differences, so the knowledge of 1 doesn't really help much with 2 Apr 08 21:20:47 But the basic, stupid high level description of DI is to be able to call .inject() on an object and populate its member properties Apr 08 21:21:03 You may know this, but sometimes it's useful to see t plainly stated like that Apr 08 21:21:07 which no documentation ever does. Apr 08 21:21:15 :D Apr 08 21:21:55 For example, my new project is using hapi.js for a Node app, and I still have no idea what hapi.js is lol Apr 08 21:21:58 haha. I was struggling with this this morning actually. I was gong through a tutorial and it was calling Whatever.inject() with no explination what so ever of what the Whatever symbol was Apr 08 21:22:13 I've been reading the documentation and writing code, still not sure what it actually is Apr 08 21:22:26 hahaha yeah I'm not surprised at all Apr 08 21:22:43 Artichokeslam oh funny, i just got the hapi.js book from manning Apr 08 21:23:02 seems like a higher level abstraction than express Apr 08 21:23:05 what the hell IS it? Is it just convenience functions a la jQuery? Apr 08 21:23:55 i don't know much about it yet, not even sure it was a good choice. these things go out of style in weeks :P Apr 08 21:24:02 I want to start a blog where each entry just plainly states what each framework/tool/library actually is Apr 08 21:25:13 Artichokeslam i'd really like to play around with node / electron Apr 08 21:25:21 but i haven't found much good info on electron Apr 08 21:26:58 ooo haven't heard of that one Apr 08 21:27:08 I'm really just starting with node. Only briefly played with it before this week Apr 08 21:27:08 its what powers atom editor Apr 08 21:27:15 Ooo nice, I am quite an atom fan Apr 08 21:27:22 electron is under VS Code also Apr 08 21:27:31 yeah i like atom a lot too Apr 08 21:27:44 ooooo used to be Atom Shell Apr 08 21:28:59 i think where atom gets things right, where vim, emacs and ST can't progress beyond - is that its gone further than UI as text buffer Apr 08 21:29:56 Pixate and Slack are also node / electron afaik Apr 08 21:31:38 I'm having issues with get / set methods Apr 08 21:32:21 Trying to set the date in one class and then get it in another class, seems that whenever I create a new instance of the class in the 2nd class, it's wiping the get data so then it's null. Is there any way to ensure that the data is kept? Apr 08 21:36:11 anyone remember that blog on /r/androiddev a few weeks ago about naming conventions ? Apr 08 21:36:22 can't find the link Apr 08 21:37:07 https://www.reddit.com/r/androiddev/comments/41tsj6/your_strict_naming_conventions_are_a_liability/ Apr 08 21:37:08 ? Apr 08 21:38:49 markyosullivan interesting , not that one but i'll have to read it now :P Apr 08 21:38:58 ah ha, here it is https://www.reddit.com/r/androiddev/comments/49habh/a_successful_xml_naming_convention_jeroen_mols/ Apr 08 21:39:08 I also seen that one Apr 08 21:39:17 but wasn't sure if it was XML naming conventions :P Apr 08 21:40:56 i was hoping gradle-plugin 2.0 would by now, let us create arbitrary dirs in res/ like res/layout/myactivity/ ... Apr 08 21:41:36 Ah Apr 08 21:41:38 i'm aware of the hacks involved in adding src dirs but that seems kludgey and error prone Apr 08 21:41:56 I think I know my issue, all I had to do was declare the variable static for it to be shared among instances of the class Apr 08 21:49:28 hm, i've been doing things the way that guy suggests but now have second thoughts Apr 08 21:49:59 ok i think the first comment summarizes the style i'm leaning towards now Apr 08 21:50:54 The nice thing about being the only Android developer- I don't have to explain my horrible naming conventions to anyone else ;-) Apr 08 21:52:47 If im in a ViewPager and need access to one of the child fragments, is there a good way to do that Apr 08 21:53:08 Artichokeslam u just have to live with the shame lol Apr 08 21:53:09 I could do findFragmentByTag( android:switcher:pagerId:index ) Apr 08 21:53:28 drose379: .getChildAt() Apr 08 21:53:43 On the pager? Apr 08 21:54:08 That just returns a view though, I want the actual fragment, cause I need to call a mehtod on it Apr 08 21:56:26 drose379: what are you trying to do? Apr 08 21:56:41 I need to give a piece of data to the fragment Apr 08 21:56:49 From the parent Apr 08 21:56:59 the parent activity? Apr 08 21:57:07 Yes Apr 08 21:57:21 then what does that have to do with a viewpager Apr 08 21:57:33 just do it as you normally would Apr 08 21:57:44 How would I normally do it Apr 08 21:58:14 I could have it listen for the eventbus broadcast Apr 08 21:58:23 drose379 yeah the FragmentPagerAdapter is crap Apr 08 21:58:34 Why Apr 08 21:58:43 you just found out :P Apr 08 21:58:52 So how do people do this Apr 08 21:59:18 they they fudge it with android:switcher:pagerId:index like you had Apr 08 21:59:23 which is gross Apr 08 21:59:28 Egh I know Apr 08 21:59:32 Are you creating the fragments and the viewpager in the activity? Apr 08 21:59:42 If so, shouldnt u already have a reference to the fragment..? Apr 08 21:59:51 No I create them in an adapter Apr 08 21:59:56 Which is a different class Apr 08 22:00:05 orbyt_ how, the fragment pager adapter calls you to create it Apr 08 22:00:51 g00s: what? Apr 08 22:00:55 I mean I could save the fragments to instance variables in getItem after I create a new Apr 08 22:01:00 you can create them and pass them to the pager adapter Apr 08 22:01:13 s' not a bad idea Apr 08 22:01:23 gonna try that out Apr 08 22:01:37 Thanks guys, brb Apr 08 22:01:38 thats not a good idea either Apr 08 22:01:47 WHy Apr 08 22:02:00 you'll have problems when the activity is recreated and the fragments are already in the fragmentManager Apr 08 22:02:11 but you can't get to them because - again, the tag is opaque Apr 08 22:02:39 Hm Apr 08 22:03:03 just use an event bus, you already have experience with them Apr 08 22:03:18 g00s what naming conventions would you use? I think I remember reading that blog entry Apr 08 22:03:24 Seems like Im cheating by doing that orbyt_ Apr 08 22:03:46 how? It works great. You know how to use them, why waste your time Apr 08 22:04:04 Hmm true Apr 08 22:04:07 Usually my variables are __ Apr 08 22:04:38 so for example book_title_tv = book layout / class, title and TextView Apr 08 22:08:22 jug6ernaut: hehehehe Apr 08 22:08:27 markyosullivan i use ISO 11179 data element naming for my database stuff Apr 08 22:08:36 maybe i should use for resources too Apr 08 22:12:18 heh, CRS8 just landed Apr 08 22:12:43 not "just" but yea Apr 08 22:31:33 Hey folks. I am having some misunderstanding of how Android SDK Manager works. Where can I change the SDK path which it uses? any help/direction is much appreciated :) Apr 08 22:32:10 for some reason, I felt like it would rely on $ANDROID_HOME, but that it does not. Apr 08 22:33:09 Is it bad practice to keep reference to the parent activity in a fragment by casting it in onAttach(Context) Apr 08 22:33:42 No Apr 08 22:33:52 What about to call a method in the parent activity from that reference Apr 08 22:34:35 Yes Apr 08 22:34:53 Ok, why? Apr 08 22:35:11 That's the job of an interface Apr 08 22:35:16 Got it, ok Apr 08 22:35:31 Thanks Apr 08 22:35:38 Define an interface in the fragment, implement it in the activity Apr 08 22:36:07 Right Apr 08 22:36:29 If you have multiple fragments that require the same call, then define one fragment with the interface and extend that in the others Apr 08 22:36:59 Good point, yeah Apr 08 22:39:51 or define the interface in a separate file Apr 08 22:40:07 only use inheritance if the fragments are actually related Apr 08 22:42:07 I only need to do it in one fragment anyway Apr 08 22:58:52 Hello! Does anyone know of a good MediaRecorder library for Android specifically for Audio? Working on recording audio, but levels are low and i've seen very little about an actual solution. Apr 08 23:03:39 android-dev359 did you checkon on android arsenal Apr 08 23:03:51 i have no experience but i see some on there Apr 08 23:05:14 I like how I'm downloading @ 130kbps for updating Android SDKs when I'm on a 100mbps connection that can download 8mbps Apr 08 23:05:18 thank you R41ph, I will take a look now Apr 08 23:05:21 Go Android, SO AWESOME Apr 08 23:05:44 https://android-arsenal.com/details/1/744 Apr 08 23:05:45 jk android dev makes me want to blow my brains out Apr 08 23:05:49 thats the one i looked at Apr 08 23:05:57 frustrating at times no doubt Apr 08 23:07:54 <_Exclusive> k1t: If you pay for a 100 mbps and get 8mbps I guess you have bigger problems than a slow Android download :P Apr 08 23:08:19 _Exclusive: I download 8,000 kbps is what I mean Apr 08 23:08:27 when you buy "100mbps" you don't actually download @ that Apr 08 23:08:51 i'm not savvy in terms of this stuff though, but ISPs always say its way more than it really is, has been ever since 56k died out Apr 08 23:09:19 8,000kbps = a full movie in a minute or two Apr 08 23:09:24 definitely not an issue heh Apr 08 23:09:36 <_Exclusive> But if ur on optics you should get something near the max Apr 08 23:09:47 Ah yeah, I'm on the devil's ISP, Time Warner Apr 08 23:09:51 <_Exclusive> I'm peaking 11.5 mb/s on avg Apr 08 23:09:53 I wish I was on a fiber line Apr 08 23:09:54 <_Exclusive> ahh Apr 08 23:09:55 <_Exclusive> haha Apr 08 23:09:56 * k1t hardon Apr 08 23:09:58 X: Apr 08 23:10:11 Ugh i live in freaking LOS ANGELES and I can't get fiber where i live Apr 08 23:10:26 anyways i won't pollute the channel with my offtopic nonsense haha Apr 08 23:10:45 <_Exclusive> ^^ Apr 08 23:12:20 blah blah Asia blah cheap gigabit blah blah :) Apr 08 23:13:00 heh Apr 08 23:13:15 bah here we only have half gigabit Apr 08 23:40:37 weekend... come to me..... Apr 08 23:49:29 I'm sending to mysql via volley and php Apr 08 23:49:41 this is very strange Apr 08 23:49:44 But i'm not getting a repsonse... I need help troublshooting Apr 08 23:49:47 how can i log more Apr 08 23:49:56 I don't see anywhere to see the volley response Apr 08 23:50:05 I tap empty space and the previous fragment's items are selected Apr 09 00:00:49 RustyShackleford, clickable Apr 09 00:00:50 set it Apr 09 00:00:51 Everytime I start the simulator it makes my music skip Apr 09 00:01:00 * k1t kicks AVD Apr 09 00:01:12 Stupid AVD. Apr 09 00:01:29 Not like a lot of skipping, just 1 time for like 1/2 - 1 second Apr 09 00:01:37 Does that happen to anyone else lol Apr 09 00:17:07 what does this do exactly ? false Apr 09 00:23:08 If I am going to rearrange the placement of views manually in Android, how would I do that? Apr 09 00:23:22 Using an OnGlobalLayoutListener? Apr 09 00:48:00 Hello everyone Apr 09 00:48:12 By modern Android coding standards, is it at all necessary to null out things when it's destroyed? Apr 09 00:48:19 eg onDestroy() { foo = nul; } ? Apr 09 00:48:22 Is there a way to fix this in Android Studio 2? --> https://postimg.org/image/bvpmjbg6z/ Apr 09 00:48:56 svm_invictvs no Apr 09 00:50:03 svm_invictvs only thing maybe, is when a thread has a reference to something and you want to make sure its not leaked Apr 09 00:50:31 justJanne still there any chance ? Apr 09 00:52:42 yeah Apr 09 00:52:52 g00s ...it's hard to leak something in a gc environment Apr 09 00:53:21 g00s BUt yeah, I know wha you mean. inadverently exposing something or leaving it hanging around after it's expected to be destroyed Apr 09 00:53:23 not unwinding properly Apr 09 00:53:28 svm_invictvs what i mean is you have a thread doing something with a reference back to activity to deliver result. the activity might clear that reference in onDestroy Apr 09 00:54:12 i just avoid those situations altogether Apr 09 00:54:39 Yeah, I hear ya Apr 09 00:54:50 Asked my question again... Apr 09 00:55:04 If i want to rearrange views in response to a size change, can i do that in an onLayoutCHangeListener? Apr 09 00:56:24 * g00s not good in that area sorry Apr 09 00:56:42 svm_invictvs do you mean configuration change ? Apr 09 00:56:59 No, layout change Apr 09 00:57:06 I have subviews, I want to lay them out when the size of the view changes. Apr 09 01:01:29 wouldn’t that just be in onLayout? Apr 09 01:01:36 yeah Apr 09 01:03:05 onLayout should be called when the size of your view changes, so you could do it there Apr 09 01:06:12 Yeah Apr 09 01:11:41 i'm trying to assign a key shortcut to AS enable/disable ADB - everything is taken :P Apr 09 01:12:00 can they just show me what keys are still free :P Apr 09 02:22:21 g00s: just take one you like. do you remember them all? :) Apr 09 02:28:59 hey Apr 09 02:42:49 any opinion on "OpenGL ES 2 for Android" ? Apr 09 02:43:09 is it worth to spend time? Apr 09 02:44:16 what do you mean Apr 09 02:45:26 ah. it's a book Apr 09 02:46:20 A "book"? Is that that thing they used to make with trees? Apr 09 02:47:41 well, I had specific problem - apply filter to video. I was able to do it only with OpenGL. but I'm still no so much familar with opengl. so the question - is it good book on topic Apr 09 02:47:43 lol Apr 09 02:49:51 Not sure, but I played with OpenGl when I was working on a 3d globe thingy. Online tutorials were a bit sparse, and that book looks pretty thorough. I'd get it. Apr 09 02:59:02 it's nice that examples use 2.0. well then **** ENDING LOGGING AT Sat Apr 09 02:59:58 2016