**** BEGIN LOGGING AT Sat Mar 04 03:00:01 2017 Mar 04 03:06:53 g00s: I ended up temporarily using the wrapper and then pointing AS to the Gradle version that the wrapper downloaded. Mar 04 03:07:08 I like not using the wrapper. :) Mar 04 03:08:55 I'm still probably gonna disable Instant Run as well. Mar 04 03:47:08 No matter how minor my changes are, Instant Run always restarts the Activity. Mar 04 03:47:19 Has anyone managed to achieve a hot swap? Mar 04 03:52:46 Oh, there's a setting. Hmm. Mar 04 03:54:42 Okay, if I disable "Restart activity" it works. Mar 04 05:01:15 I finally figured out where my app is failing to connect to my phone, but I am not sure why. The function in questions and the resulting log is here: http://pastebin.com/BhPCKPXa Mar 04 05:01:23 any ideas? Mar 04 05:30:18 "From Jan. 1 through Feb. 22, Uber accumulated 4,479 one-star reviews from US users in the iOS App Store, according to data from analytics firm App Annie" ouch Mar 04 05:36:12 h1b guest drivers Mar 04 05:36:48 or is it a pricing thing Mar 04 05:38:42 #deleteUber Mar 04 05:41:48 although that's actually not a massive number, compared with their 10s (100s?) of millions of users Mar 04 05:43:39 What portion of users rate apps? Mar 04 05:55:17 does adb need to be run with sudo? Mar 04 06:11:04 raj: no, but it's possible that your particular setup might need it Mar 04 06:20:23 <_genuser_> hey people. Mar 04 06:30:34 Any idea why my savedInstanceState in onCreate() is always null? Mar 04 06:31:06 When firing a new activity, onSaveInstanceState is definately called, but when I navigate back to the parent activity its null. Mar 04 06:38:14 Leeds Uber has had a terrible week Mar 04 06:38:43 sure, I know Mar 04 06:39:08 a few days ago https://www.buzzfeed.com/priya/uber-ceo-fights-driver?utm_term=.glAWvNrBj#.thQD2eqRp Mar 04 06:39:23 then there was Susan Fowler last week Mar 04 06:39:50 <_genuser_> susan j. fowler Mar 04 08:11:29 if the app is started with an activity intent, by the time an Application is created, Activity creation is already queued, so if I startService, the service is going to be created after Activity is Mar 04 08:11:36 is there a way to do otherwise? Mar 04 08:13:05 I don't really see why it would matter? Mar 04 08:14:03 because it's much easier to just assume a service exists by the time the activity is created, than to wait for it Mar 04 08:15:38 If the service has to be running before the app can do its thing, it would probably be better to separate the logic that depends on it Mar 04 08:16:32 ie (is service running?) {do stuff} else {Start service, wait for callback before doing stuff} Mar 04 08:17:06 you can't "wait for callback before doing stuff" Mar 04 08:17:35 it's not asynchonous Mar 04 08:17:49 it screws up the logic by a lot Mar 04 08:23:49 What, in a nutshell, is an activity, and what distinguishes it from an application or a process? Mar 04 08:24:28 shentino: An activity is a "screen". Mar 04 08:24:31 shentino, an activity is what you see on-screen Mar 04 08:24:50 if the user minimizes your app, the activity is (possibly) no more, but your app can keep running Mar 04 08:25:06 so...activities are concrete things and not just an abstraction Mar 04 08:25:11 yes Mar 04 08:25:21 and let me guess, the OS can terminate an activity at any time Mar 04 08:25:23 it's what occupies the device's screen and contains the Views Mar 04 08:25:51 (well, it's not a View itself, but you get the idea) Mar 04 08:26:01 For example, setting preferences usually happens in its own activity. Mar 04 08:47:26 #join ##java Mar 04 08:49:13 ###no Mar 04 08:53:53 Leeds what have you been working on lately ? Mar 04 08:54:04 techs, etc Mar 04 08:55:54 * raoul11 g00ses g00s Mar 04 08:56:05 hey raoul11 , using as 2.3 ? Mar 04 08:56:37 2.2.3 Mar 04 08:56:49 am afraid of AS updates Mar 04 08:56:56 lol Mar 04 08:57:07 yes, you have reason to be :) Mar 04 08:57:36 whats your impression of 2.3? Mar 04 08:58:50 so far, no problems ... using AS 2.3, AGP 2.3, gradle 3.4 Mar 04 08:58:59 the sdkmanager CLI is a bit weird Mar 04 09:00:16 might give it a chance, but am in a middle of a big project Mar 04 09:00:24 dont want it to fuck it up /: Mar 04 09:07:14 g00s: very little :( Mar 04 09:10:31 Leeds is your boss still around ? (lol) Mar 04 09:10:40 or did he take off again ... Mar 04 09:14:01 does SharedPreferences.Editor.clear simply remove all kv pairs or does it remove the file? Mar 04 09:14:48 mniip does it matter ? Mar 04 09:15:58 I was thinking of dynamically creating/removing prefs files Mar 04 09:16:04 I'd hate to leave litter around Mar 04 09:18:41 use modeprivate, and it will go away with the app Mar 04 09:28:40 g00s: he popped in a couple of weeks ago to get me to sign off on last year's accounts before his year-end... got one feature to add to his app, sent it to send to him this week, haven't heard back yet Mar 04 09:30:30 apparently he's still trying to get partners/investors for the project...\ Mar 04 09:39:08 raoul11, no, like, I'd like to leave litter around while the app is installed Mar 04 09:39:12 to not* Mar 04 10:27:35 Hello. Is there any way to have a virtual device that support opengl es 3 ? Mar 04 11:17:58 Where exactly is ANDROID_HOME suppose to point at? Atm I have it set at the "root" folder where AVD Manager, SDK Manager and all the folders are located, but it seems it's not reading it correctly Mar 04 11:20:18 That's the right place Mar 04 11:37:52 okey thanks SimonVT Mar 04 12:12:57 hi Mar 04 12:13:55 to determine location using BSSID even when WiFi is turned off, is an API needed? Mar 04 12:16:27 does LocationManager.NETWORK_PROVIDER cost? Mar 04 12:31:08 what is rooted android device? Mar 04 12:31:46 one where you can run stuff as root Mar 04 13:04:43 hey Mar 04 13:05:10 is there an API which i can track what app the user is using? Mar 04 13:44:31 Hello :) Mar 04 13:44:32 Have an question. Anyone know if AOSP or anyone distribute the elfutils binaries? I struggling to get it to compile Mar 04 15:00:58 is ther any way to run sudo in android Mar 04 15:03:04 Tiger_2: by installing it. #android-root Mar 04 15:08:25 hi mela Mar 04 15:34:01 Sudo scarcely shares a context with anything in Android. THat was an x-y problem Mar 04 15:53:55 hi guys Mar 04 15:55:20 i have a custom view ( some views with an animation inside )... how can i have a callback to the main activity when something happen in the custom view? Mar 04 16:06:07 skin1980: you could expose an RxJava observable. Or you can implement a specific interface in the activity, detect when the view is added to an activity, get the activity, cast it to that interface and call its method(s) when the event happens Mar 04 16:06:25 skin1980: or pass a callback when the view is create Mar 04 16:10:35 Thanks Melatonina, i added an Interface Listener in my custom view so from the main activity i can have a callback Mar 04 16:55:40 Hi all. Does anyone know of a USB lead that will let me debug an Android phone and have a USB device plugged in to the phone at the same time? I've tried what was claimed to be a USB hub for the phone and also a simple Y splitter, but my ADB on my laptop doesn't recognise the phone unless it is plugged in directly. Mar 04 16:56:14 seems unlikely... best bet is probably adb-over-wifi Mar 04 16:58:12 plug in, set adb to connect over wifi, unplug, plug in device Mar 04 16:59:06 Okay, I'll try that. thanks Mar 04 17:13:39 raoul11: hi! Mar 04 17:46:14 Hello people, I had question please.. Can we make an app that can send DTMF code across GSM to a DTMF module ? Mar 04 18:22:06 <[fb]> hey, how do you guys keep your buildToolsVersion up to date in your build.gradle? It's kind of tedious not being notified that the buildToolsVersion you're using is outdated Mar 04 18:32:58 [fb] It does exactly that. Mar 04 18:33:39 <[fb]> i just looked up some info, apparently specifying buildToolsVersion will try to use that specific version every time, if you don't define it at all it will use the latest installed version Mar 04 18:34:29 You should use a specific version, for the same reason you should use specific dependency versions Mar 04 18:35:17 <[fb]> well I guess it's back to the original question, how can I be notified when the build.gradle contains an outdated version? Mar 04 18:36:09 <[fb]> it only seems to give you information when dependencies are out of date and you can automatically use the latest version via ctrl + space Mar 04 18:36:27 <[fb]> but android studio doesn't notify you at all when buildToolsVersion is out of date Mar 04 18:36:41 Yes, it does. Mar 04 18:37:47 <[fb]> that's odd, I have buildToolsVersion '25.0.2' and even though the latest installed version is 25.0.3 I get no warning Mar 04 18:37:55 <[fb]> would you mind verifying that that's the case for you too? Mar 04 18:38:30 I have this code, but the menu wont open then I click the image, can anyone help me with that ? :) https://nopaste.me/view/4158cf34 Mar 04 18:40:50 [fb] 25.0.3 doesn't exist. You can easily test that the warning works by changing from 25.0.2 to 25.0.1. It will then warn to update. Mar 04 18:43:01 <[fb]> orbyt_: you're totally right, I was seeing platform tools version 25.0.3 and I thought that was the build tools version, thanks for the info Mar 04 19:13:58 has anyone successfully install google play services in an android emulator? I know the process is pretty easy with genymotion but wondering if the process is just as edasy with the android emulator Mar 04 19:14:00 I tried just dragging over the opengapps package into the android emulator as I did before with genymotion but that doesn't work Mar 04 19:21:36 sleepster, no, Android Emulators won't install those play services Mar 04 19:21:42 they have them preinstalled Mar 04 19:23:51 Mavrik: oh sorry I mean google play Mar 04 19:23:55 not google play services Mar 04 19:24:45 Not possible. Mar 04 19:25:52 if genymotion can do it, I'd assume the default emulator can do it too no? Mar 04 19:41:10 I have this code, but the menu wont open then I click the image, can anyone help me with that ? :) https://nopaste.me/view/4158cf34 Mar 04 19:47:49 Jonathan-: http://stackoverflow.com/questions/25831634/android-openoptionsmenu-does-nothing-in-kitkat Mar 04 19:50:07 xorgate_: okay thanks I will try that :) Mar 04 19:59:23 I'll be surprised if it works Mar 04 20:04:13 The main issue is that during onCreate the window doesn't yet exist. Mar 04 20:04:24 Yay lifecycle funnery Mar 04 20:11:23 I *did* like the solution proposed of using an override that eventually involved super.onblahblah() because then at least we can be sure the context is one where the window really exists, rather than the somewhat nebulous anonymous listener Mar 04 20:38:25 he's merely setting a clicklistener in oncreate Mar 04 20:40:00 xorgate_: that did not work :( Mar 04 20:45:24 the question is why do you want to open the options menu yourself Mar 04 20:46:45 because I made a button to do it with, I am not using a toolbar Mar 04 20:57:38 hi Mar 04 20:58:11 can anyone recommend me some short course online or a book for android dev? Mar 04 20:58:33 Enthralled TeamTreehouse is probably the best for beginners Mar 04 20:58:38 IMO Mar 04 20:58:54 i'm not a total beginner to programming Mar 04 20:59:08 i know some c, java and python Mar 04 20:59:11 Would recommend it all the same. Mar 04 20:59:17 aha, cool Mar 04 20:59:19 thanks Mar 04 20:59:47 xorgate_: I want to make a dropdown menu then I press the image I marked with red on the picure: http://imgur.com/tCTW8J8 Mar 04 21:00:41 how about a PopupMenu or a transparent toolbar? Mar 04 21:00:44 You can do that with PopupMenu.. Or just do the whole thing with Toolbar Mar 04 21:03:49 Okay I will try that Mar 04 21:19:02 xorgate_: okay I got the menu to work now with this: https://nopaste.me/view/34484a58 but how do I show the icons I also added in the menu, and how do I do the onclick on the Item there? Mar 04 21:20:10 Jonathan-: i don't know.. should be 2 google queries away Mar 04 21:23:11 Is anyone currently using the Google Cloud Platform client libraries in your app? Getting a ton of DuplicateFileException's after adding the cloud storage dependency to gradle. Mar 04 22:05:38 If you've used Google Cloud Platform with Android, please check this out: http://stackoverflow.com/questions/42601917/accessing-cloud-storage-from-android Mar 04 22:32:59 man, my adapters from a 2 year old app are garbage, look at this shit https://paste.ofcode.org/3bR7J7SznyFn9B739SfKdUy Mar 04 22:33:32 network calls, db calls, it's like an activity in itself Mar 04 22:34:04 you do those calls in your activities :? Mar 04 22:34:34 lol yes Mar 04 22:34:44 inside the adapter, which sits in the same activity Mar 04 22:34:46 same class Mar 04 22:35:06 the class is 984 lines Mar 04 22:35:43 it's 2 years old Mar 04 22:44:45 Zw BC. W . Be wW Mar 05 01:24:37 i'm trying to push my project to github in android studio, but it keeps asking me for password and then fails Mar 05 01:24:57 Joy! Mar 05 01:24:59 anyone knows what could be the problem? i'm using 2 factor authentication Mar 05 01:25:22 Dig around and see if they've got an authentication helper module for it Mar 05 01:25:30 It's probably going to be required to do it with 2FA Mar 05 01:26:01 aha, okmhm Mar 05 01:26:06 If it's any consolation, the process is just about as reliable as it is trying to push to a Google Cloud repository... and that's even less correctly documented. Mar 05 01:27:48 thanks Dagmar Mar 05 01:28:23 the solution was to generate an API token and then choose token authentication in android studio Mar 05 01:28:30 now it works :D Mar 05 01:28:54 I figured someone's probably documented the process for there Mar 05 01:29:07 yeah: https://blog.jasoncallaway.com/2015/08/31/github-two-factor-authentication-with-intellij/ Mar 05 01:29:17 for google cloud it looks like if it's going to get documented, I'm going to be the one writing the docs Mar 05 01:29:36 ....and I'm still not particularly convinced that what I'm doing is replicatable Mar 05 01:30:34 hehe Mar 05 01:31:01 google cloud is used for testing? Mar 05 01:31:32 No. I mean I've done it three times now and it still feels like there should be an easier way to do it Mar 05 01:31:43 mhm Mar 05 01:32:22 You have to install the Google Cloud SDK, and initialize it... _manually_ create a repo named 'default' beforehand... Mar 05 01:32:41 sounds like a pain in the aass Mar 05 01:32:48 ...then kick git's credential.helper setting out of the way and replace it with gcloud.cmd... Mar 05 01:32:59 mhm Mar 05 01:33:10 ...and *then* you can try and push, and it'll crap out and ask you for the URL of the repo Mar 05 01:33:36 ...and at that point it will _probably_ work, but not always. Once it starts working it keeps working. Mar 05 01:34:11 I found some old bug reports about it where tehy claimed this was fixed by a change to the backend for Google Cloud. ...which is clearly not true. Mar 05 01:34:43 Now that AS has gone to 2.3 I may revisit it again next week and see if things are any less a PITA Mar 05 01:35:58 lol Mar 05 01:36:18 i hope they fixed it Mar 05 01:36:46 I would like to see them sort out the mess, because there's a _lot_ of nifty stuff in there for people to play with Mar 05 01:36:59 I was a little suprised to see they'll just let you spin up a debian VM Mar 05 01:46:46 I finally figured out where my app is failing to connect to my phone, but I am not sure why. The function in questions and the resulting log is here: http://pastebin.com/BhPCKPXa Mar 05 01:46:46 any ideas? Mar 05 02:18:08 hi Mar 05 02:29:53 in android studio , give me this error " Gradle sync failed: Connection timed out " how can i solve that Mar 05 02:31:13 are there every body here for helping Mar 05 02:36:39 in android studio , give me this error " Gradle sync failed: Connection timed out " how can i solve that **** ENDING LOGGING AT Sun Mar 05 03:00:01 2017