**** BEGIN LOGGING AT Mon Jun 20 02:59:59 2016 Jun 20 03:10:07 impliednude, easily fixed if you google Jun 20 03:11:31 set java source and target version to 1.7 Jun 20 03:39:18 pfn> I did google. I updated sdk, jdk, and even android studio and still getting the error. Some people say also removing the beta from the tag assist but in my case it doesnt. -_- Jun 20 03:41:06 <_genuser_> hey peopel. Jun 20 03:41:30 <_genuser_> ok I see connection probs. Jun 20 03:41:33 <_genuser_> hang on, brb. Jun 20 03:42:28 impliednude, already told you the solution, set java source and target version to 1.7 Jun 20 03:42:31 <_genuser_> alright... Jun 20 03:42:37 <_genuser_> seems like it holds steady ... Jun 20 03:43:06 <_genuser_> anyone else noticing that the new the gradle plugin the slower the build times? Jun 20 04:10:59 whats the prefered controller for blue tooth to android Jun 20 04:11:01 for gaming Jun 20 04:11:09 mainly for development ease Jun 20 04:30:41 Having issue with Accessibility Service because of Nova Launcher :( Jun 20 04:30:47 dev here ? Jun 20 04:32:53 Why after the launch of any activity, nova launcher is firing an accessibility event for its own window, where as its not on the top on that moment !!! may be the event is fired little late, where is causing the problem. Jun 20 04:43:42 Presumably, if they actually checked the signatures before even running code from Flash ROM, that it would take some kind of fake signing. Also, freaking wifi. Jun 20 04:57:25 <_genuser_> hey guys anybody use a nice logger? Jun 20 04:57:29 <_genuser_> stuff like crashlytics? Jun 20 05:00:28 _genuser_: I'm using a perl script which I customize as I like Jun 20 05:00:48 full power of programming language Jun 20 05:01:12 not just grep, sed and stuff like that Jun 20 05:03:37 Hmm, I'm more interested in the really 'basic' stuff like how Android boots on this chipset. :P Jun 20 05:03:38 'basic' is a sarcastic way of saying low-level Jun 20 05:04:27 <_genuser_> squ: I was thinking of just logging all over the app and then just looking at it in a broader view. Jun 20 05:04:30 It also works for describing my current connection: 'basic' as in really shitty :P Jun 20 05:04:45 <_genuser_> instead of looking thru the connection console. Jun 20 05:08:17 I wanted to test my app in Xiaomi device but i do not have Xiaomi device is there any solution to create a virtual device like Xiaomi Jun 20 05:08:52 r92115: No, and why does it need to be Xiaomi? Jun 20 05:08:56 Kind of... Jun 20 05:09:29 My app is working in all device except Xiaomi. Jun 20 05:09:46 so i wanted to test on it Jun 20 05:09:47 who has a xiaomi phone in the first world anyway Jun 20 05:09:52 Well LunarEclipse120 is 99% right. Unless you happen to have a very similar device, or somehow magically write a very compatible emulator... NOPE. Jun 20 05:10:16 alphamule: Most Xiaomi's are MTK anyway. Jun 20 05:10:23 r92115: I find that very hard to believe. Jun 20 05:12:39 I have put a check in my app for time zone if automatic time is not selected then throw a error to select first it is working fine in all devices except Xiaomi Jun 20 05:13:01 Probably because they put a shitty stock ROM on there. Jun 20 05:13:08 r92115: Nothing you can really do to fix that. Jun 20 05:13:37 MiUI is horrible, and now it seems it is messing up developers too. Jun 20 05:13:48 LunarEclipse120 Can you suggest me any solution Jun 20 05:14:13 r92115: Just have it check the build.prop for if it is an Xiaomi, and if it is one. Just skip that part, or have it skip that part in general if it errors. Jun 20 05:15:26 Sure LunarEclipse120 Jun 20 05:19:20 just bought two xeons E5 2670 :-) Jun 20 06:19:47 hey yall, what would be the best way to obfuscate code which is going in release? I see under buildTypes release with minifyEnabled false, should I simply change it to true? Jun 20 06:24:41 yes Jun 20 06:24:57 this will kick in the proguard which does optimization and obfuscation Jun 20 06:43:41 Is there a way to convert a maven project to gradle after importing it from version control in Android Studio? Jun 20 06:47:01 Ashiren, thanksd. Jun 20 06:47:01 I got the message This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system. Jun 20 06:47:06 thanks daemon ^ :P Jun 20 06:47:12 Isn't there a wizard that can convert the project? Jun 20 06:53:35 Ashiren, I have this proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' Jun 20 06:53:49 is proguard-rules.pro enough, or I do need proguard-android.txt as well? Jun 20 06:53:59 s/I do/do I? Jun 20 06:56:20 youd want proguard-android.txt as well Jun 20 06:56:47 as its the default proguard file adjusted for android Jun 20 06:57:08 and proguard-rules.pro sets additional rules for your specific project Jun 20 06:59:57 Ashiren, I see, all located in Gradle Scripts? Btw do you have recommendations for specific rules? Jun 20 07:04:54 StephenS: no, i just put there rules if i use some libraries if they need that Jun 20 07:05:18 StephenS: oh. also i disable logs like this http://stackoverflow.com/questions/13218772/removing-log-call-using-proguard Jun 20 07:06:08 and how do you avoid reverse engineering, if any? Jun 20 07:09:15 StephenS, what do you have that's worth protecting? Jun 20 07:09:49 my attitude has always been, it either shouldn't be distributed or isn't worth the hassel Jun 20 07:13:02 alex_PP, nothing big, but still I dont want to be victim of RE Jun 20 07:13:28 I wouldn't bother Jun 20 07:13:50 you have to actually be in a position where someone would bother first Jun 20 07:13:58 that's hard enough Jun 20 08:30:01 Hi all. I have a custom RelativeLayout and I'm using it inside a RecyclerView (ViewHolder). But my Views which are added with 'addView()' isn't showing up Jun 20 08:30:18 I'm using onlayoutChange listeren to know when the width / height is different then 0. Jun 20 08:30:46 The views which are added with addView are visible when I use my custom RelativeLayout outside a RecyclerView.. Any advice? Jun 20 08:58:09 hi all Jun 20 08:58:29 does app assets usage on Marshmallow requires a "storage" permission ? Jun 20 09:03:21 do im stuck in google inapp's limbo: getting item already purchased (but the consume didnt go through), and unable to consume it manually (some nullpointers) Jun 20 09:20:14 how can I avoid AmbiguousViewMatcherException with Espresso? I just want to perform an action on the first view that matches my matcher Jun 20 09:25:55 are views driven by data bindings updated when the bound variable changes or is this simply for on-inflation binding of values? Jun 20 09:34:30 ncls: no Jun 20 09:34:45 Hi! Quick question, is there any best practices for access modifiers of methods activities and fragments? Lets say I have a method in my fragment that handles button clicks, should I make it public, protected or private? Jun 20 09:35:55 gordon_: thanks for your answer. I'm a little confused because my webviews doesn't seem to load my local JS & CSS files Jun 20 09:36:02 any changes in assets access ? Jun 20 09:37:13 oh, I get it, I think I don't use them properly since I copy them from their original folder to an app data folder Jun 20 09:37:16 no idea about webview Jun 20 09:37:30 I avoid it :P Jun 20 09:38:04 huh, I work for an online media, unfortunately I can't avoid them .. Jun 20 09:41:25 for webview youd need to set some options to enable JS Jun 20 09:43:55 when setting sdk.dir, do I set that variable in the gradle.properties file? Or the build.gradle file? Jun 20 09:43:56 Ikkyo, I usually go with as private as I can make it Jun 20 09:44:36 stuff that brakes internal state if called in a weird way, always private Jun 20 09:45:00 button listeners are usually public, shouldn't matter how they're called as they're user facing Jun 20 09:45:22 and ButterKnife insists that they are at least package visible Jun 20 09:46:52 alex_PP Cool, that was what I was thinking too, I just wanted to make sure that I wasn't missing anything important Jun 20 09:47:03 Thanks! Jun 20 09:47:30 you're not going to break anything by always using public, just nice if you don't Jun 20 09:47:44 makes it obvious what is ok to call and what isn't Jun 20 09:47:53 clears up your auto complete lists Jun 20 09:48:13 and if anyone else is working with your code they don't need to know it intimately Jun 20 09:48:22 Yeah, I am familiar with how it should be done in Java, but since I am unsure of how some methods are called in Android I thought I would ask Jun 20 09:48:31 ok Ashiren I'll take a look. I'm using Titanium though, so I think it might be set there Jun 20 09:48:44 oh Jun 20 09:49:05 I mean, everything was ok until Android 6 Jun 20 09:49:48 the source of the problem seems to be the fact that I want to update those files and thus need a permission because I'm writing to the app "data" dir Jun 20 09:51:57 Do I define sdk.dir=.. in the gradle.properties file? Or do I need to create a "local.properties" file manually for that? Jun 20 09:56:16 Bernzel, either should work, but local is preferred Jun 20 09:56:37 and should be excluded from source control Jun 20 09:57:25 alex_PP, Ok, but it should also work to set an ANDROID_HOME variable on my system? That way I shouldn't need to set any sdk.dir property? Jun 20 09:57:42 should do, yeah Jun 20 10:02:44 ncls: app's assets and app's internal storage dont require permission Jun 20 10:03:24 Ashiren: that's weird then Jun 20 10:08:20 How can I get jars from a local maven repository to be found during build? I added the dependency maven { url "/.m2/repository/" } but it's still not finding the classes in the jar. Jun 20 10:09:51 Or do I need to add the jar manually? Jun 20 10:11:07 add mavenLocal() as a repo Jun 20 10:11:14 barq Jun 20 10:15:02 Thanks. I still get package org.etc. does not exist when I build Jun 20 10:15:11 Do I need to specify the jar explicitly somewhere? Jun 20 10:16:22 shouldn't need to in AS Jun 20 10:16:42 sync your build files again, try a clean, restart AS? Jun 20 10:24:04 It seems to have found one jar now but not another Jun 20 10:24:09 I did clear caches and restart Jun 20 10:25:36 Nope, now the error pops up again Jun 20 11:54:56 hi guys, i have some doubts, how i can develop my server for connect my app mobile... i have some soluction but i need advice from you! Jun 20 11:54:56 1- (APP)---[by Http request]-->(VPS(web page php))--[websocket]--(DAEMON)-->(DB)--and return to app Jun 20 11:54:57 2- (APP)--[by websocket]-->(VPS(daemon))-->(DB)--and return to app Jun 20 12:04:11 Riidio: do you need to use web sockets/ Jun 20 12:04:17 why not just a simple RESTful API? Jun 20 12:05:05 for realtime comunication Jun 20 12:13:39 Is there a way to finish/kill another application in a way that the target application can perform a shutdown routine before being killed? Jun 20 12:14:22 no, except if you control the "another application" Jun 20 12:15:31 Can you tell the other application to implement a certain method such that this works? Jun 20 12:17:17 barq: No. Jun 20 12:17:58 So could only have the other app receive a broadcast and then let the other app handle persisting its data and finishing itself. Jun 20 12:18:16 barq: Such a thing would mean that any app could have arbitrary code executed on it. If your devices are rooted you could send some signals to the other apps process Jun 20 12:18:26 The device is rooted Jun 20 12:18:33 but of course this isn't something that can be published to say, the play store. And isn't really on topic for here either. Jun 20 12:18:48 #android-root Jun 20 12:18:48 It's a custom device, so that would be an option Jun 20 12:19:05 It's still a dev question Jun 20 12:19:26 What sort of signal are you referring to? Jun 20 12:19:27 xy problem Jun 20 12:19:33 why? why do you want to do that? Jun 20 12:19:39 True, what you would be doing is executing a shell command to kill the process related to the app. Jun 20 12:20:16 You could also use "am force-stop " Jun 20 12:20:32 (this kills any processes related to a given package name) Jun 20 12:20:51 But then the app would not have time to persist any data Jun 20 12:21:22 Because onDestroy won't be called reliably Jun 20 12:21:27 Ah, so you want to get rid of the app as if the OS was doing so to free up memory (keep state)? Jun 20 12:22:08 hmm.. Jun 20 12:22:35 it's part of the design that onDestroy may not be called Jun 20 12:22:38 since day 1 almost Jun 20 12:22:51 you still did not answer why Jun 20 12:24:56 Application class has onTerminate() Jun 20 12:25:05 which is called only in debug(?) environment Jun 20 12:25:08 it won't be called with a kill i believe Jun 20 12:25:38 this is bad design to plug things in ondestroy or near, assuming the application will gracefully shutdown Jun 20 12:25:42 Nope, the process will just terminate abruptly. Jun 20 12:26:10 barq: I am not sure if there is a way to get it to do what you want to do I am afraid. :( Jun 20 12:26:12 At least afaik. Jun 20 12:26:12 the device could also violently reboot for unknown reason, same thing Jun 20 12:26:49 The idea is that the app can be told to shut down within given time Jun 20 12:26:52 As adq asked, what are you trying to accomplish here? Perhaps there is a better way to go about it? Jun 20 12:26:55 data will have time to persist until they cannot persist Jun 20 12:26:56 And needs to make sure it persists state Jun 20 12:26:57 it's not complicated Jun 20 12:27:01 Your own custom launcher or something? Jun 20 12:27:09 Something like that Jun 20 12:27:27 So have an app and tell it you're getting killed in 10 minutes, get ready Jun 20 12:27:30 Launchers typically do not get in the way of running apps lifecycle management. Jun 20 12:27:49 don't do that barq, assume they can be killed at any moment Jun 20 12:28:09 It's a thid party app, I can't control what it does Jun 20 12:28:13 third* Jun 20 12:28:13 -__-" Jun 20 12:28:39 "barq So have an app and tell it you're getting killed in 10 minutes, get ready" Jun 20 12:28:46 this is what onDestroy does though. Jun 20 12:28:57 What do I do when adb is not reponding ? `adb server version (32) doesn't match this client (36); killing...` Jun 20 12:29:01 Apps handle this themselves. Jun 20 12:29:24 How can you trigger onDestroy to get called in a safe way then such that it is always executed in this use case? Jun 20 12:29:46 The OS handles this based on free resources. Jun 20 12:29:57 Also onDestroy is not available in the Application Jun 20 12:30:06 wviana, you google first,then you figure you have a mismatch in the version as the error message indicate, then you realize you have different adb in multiple path and the one taken is not the latest or the one matching Jun 20 12:30:09 then you fix it Jun 20 12:30:27 So basically the app needs to have this option built in, otherwise this is not possible. Jun 20 12:30:32 and in last resort, you ask here Jun 20 12:31:36 barq: Pretty much. Jun 20 12:31:45 Those app / task managers you can get force the apps to stop. Jun 20 12:31:54 (not in a stateful way) Jun 20 12:32:27 With root you can kill or force stop, but that leads to other problems if the app is not written properly Jun 20 12:33:01 haha, well I hope you've never restarted your phone, or have crashed it Jun 20 12:35:15 barq: Also keep in mind that apps should be designed in a way such that there is never a guarantee that onDestory in an activity is aclled. Jun 20 12:35:26 It may never be called. Jun 20 12:36:00 That's why onStop is a pretty good bet. ;) Jun 20 12:36:05 Yup, I'll try to find something in the docs that confirms this and pass it on as impossible to implement. Jun 20 12:37:04 onPause is better bet Jun 20 12:37:05 https://developer.android.com/reference/android/app/Activity.html#onDestroy%28%29 Jun 20 12:37:07 try here Jun 20 12:37:09 also, does reddit work? Jun 20 12:37:17 Does for me. Jun 20 12:37:26 the androiddev too? Jun 20 12:37:37 Sure does. Jun 20 12:37:53 That's Activity onDestroy, what about the Application being killed? Jun 20 12:37:59 Ashiren: Also aye, onPause is even better. Jun 20 12:38:39 https://developer.android.com/reference/android/app/Application.html Jun 20 12:38:46 The application has no callbacks for you to use. Jun 20 12:38:57 nothing will be called if it's killed, it will be killed. Jun 20 12:39:01 I need to get a view from my adapter at runtime, the way i'm inflating it, I'm feeding it null and null for both convertview and parent, causing the view to never render on screen (I think). How should I be inflating? http://pastie.org/10883990 Jun 20 12:39:24 feeding it null and null for lack of a solution for what to give it for convertview and parent Jun 20 12:39:59 hello Jun 20 12:40:06 hello Jun 20 12:40:11 What if the app is loading data via service in the background Jun 20 12:40:18 Odaym: anyone can help ? http://forum.xda-developers.com/android/development/cubot-x9-gps-epo-download-button-t3401509/post67385346#post67385346 Jun 20 12:40:22 What callback do you use there? Jun 20 12:40:26 To do what? Jun 20 12:40:27 barq: Jun 20 12:40:29 not hte place for this jackbrown Jun 20 12:40:47 Odaym: okay sorry other channels looks pretty dead Jun 20 12:41:04 they're not, they just dont care Jun 20 12:41:37 barq: I don't understand. The process is killed and the connection is terminated. Jun 20 12:41:46 Odaym: can't you help me in another channel ? Jun 20 12:41:46 isn't there another function I can use from the base adapter that I can just get a view reference I guess, yea I need to inflate it there's no other way Jun 20 12:41:54 You can never rely on a background process staying alive. Jun 20 12:41:59 i can barely help myself Jun 20 12:42:07 barq: can you help me ? Jun 20 12:42:14 no Jun 20 12:42:18 tx: you? Jun 20 12:42:19 If you were using a $30 android phone with a floppies worth of memory, the OS might kill it to free some resources for any foreground processes. Jun 20 12:42:24 :P Jun 20 12:42:37 or just because it's out of memory. Jun 20 12:42:59 Right now the third party app has problems that their data is corrupt when the download is stopped by killing their ap Jun 20 12:43:00 tx: are you talking to me? Jun 20 12:43:03 Odaym, usually you can get the view{holder} inside the getView call, but only for visible items or few before and after Jun 20 12:43:12 jackbrown: Nope sorry. Wrong channel too bud. Jun 20 12:43:13 this is probably not how you should approach your problem Jun 20 12:43:14 sure I dont mind that Jun 20 12:44:00 I want to grab a visible item from the adapter, and from its view "awaken" an element inside it Jun 20 12:44:19 where does putInt method do for Bundle? can't see in docs: https://developer.android.com/reference/android/os/Bundle.html Jun 20 12:44:25 what* Jun 20 12:44:31 puts an int Jun 20 12:44:33 waw Jun 20 12:45:06 wow no docs for putInt Jun 20 12:45:25 wow lol Jun 20 12:45:32 waw Jun 20 12:45:35 It's inherited from BaseBundle. Jun 20 12:45:43 oh Jun 20 12:45:43 that should be trivial Odaym, if it's a listview, you get it inside getView of your adapter, if it's a recyclerview, inside the subclass of your viewholder Jun 20 12:45:54 Just expand those methods, and you'll hit https://developer.android.com/reference/android/os/BaseBundle.html#putInt(java.lang.String, int) Jun 20 12:45:55 no docs for putint? come on mang. Jun 20 12:45:58 Not exactly brain surgery. Jun 20 12:46:01 of course, but what it takes for convertView and parent Jun 20 12:46:12 that's what I am fearing is causing the view never to be work-withable Jun 20 12:46:18 because it's not being inflated into anything Jun 20 12:46:21 Oh it actually doesn't exist at all, woah. Jun 20 12:46:37 so I guess i have to make a new view and pass it to the getView so it can render my returned view into "something" Jun 20 12:46:54 oO i recommand you read some tutorials about listview or recyclerview Jun 20 12:47:00 sobasically it saves an integer into a map to retreive it later on? Jun 20 12:47:07 eeyup Jun 20 12:47:09 Thanks for your help regarding the app kills. Found a reference here to pass to the devs of that third party app https://developer.android.com/guide/components/processes-and-threads.html Jun 20 12:47:24 barq: What have you found? Jun 20 12:47:29 Oh, right. Jun 20 12:47:30 does this work? stepCountSwitcherView = (TextSwitcher) fitnessWidgets_GridAdapter.getView(0, null, null).findViewById(R.id.metricSwitcherTV); Jun 20 12:47:40 barq: No worries, good luck with whatever you're doing I guess. Jun 20 12:47:41 it gets you your view back and places it in stepCountSwitcherView? Jun 20 12:48:01 i doubt this will fly at all Jun 20 12:48:17 there you go Jun 20 12:48:18 you should use the findviewbyid inside getView or inside your viewholder Jun 20 12:48:26 Just a reference to underline that this feature cannot be implemented as requested Jun 20 12:48:32 I want to grab a view from the adapter, from within the Activity Jun 20 12:48:43 does not work like that, sorry Jun 20 12:48:49 why would I have a problem doing that in the adapter Jun 20 12:48:54 oh it'll work Jun 20 12:49:20 getView is not the correct method to use at all Jun 20 12:50:06 seems like no function to save a custom object into Bundle.. Jun 20 12:52:34 How would I go about retrieiving information from a custom UUID from a bluetooth device? Jun 20 12:53:08 readCharacteristic Jun 20 12:53:46 i think that's just bluetooth LE, not sure Jun 20 12:53:47 nvm, serialize the object! Jun 20 12:54:27 Yeah, I'm using bluetooth LE atm, I can get default bluetooth information such as battery life but I'm not sure about any custom details Jun 20 12:54:48 try Nordic's app Jun 20 12:55:21 tx: Also here are some guidelines as to what the app should be able to do https://developer.android.com/distribute/essentials/quality/core.html Jun 20 12:55:40 You sending that to them? Jun 20 12:56:29 Probably Jun 20 12:57:08 Nothing else I can do on my part Jun 20 12:59:29 hello Jun 20 13:10:06 how do I do it adq Jun 20 13:10:14 speak now or forever hold your peace Jun 20 13:10:24 I cant even get the google query down Jun 20 13:13:32 it *is* working and I am able to get that object and print it, it's a TextSwitcher object Jun 20 13:13:51 just that the text isn't being set Jun 20 13:16:02 i'm holding my peace sorry Jun 20 13:16:18 holding your peace? Jun 20 13:16:31 it's definitely working Jun 20 13:16:36 oh right Jun 20 13:18:34 hello, http://paste.ubuntu.com/17592048/ im getting this error Jun 20 13:18:38 Hey there, i Jun 20 13:18:44 recyclerview inside fragment with a custom adapter Jun 20 13:19:36 Odaym: https://github.com/NordicSemiconductor/Android-nRF-Toolbox this? Jun 20 13:19:37 sci-fic: do you use new int[] in your code? Jun 20 13:19:39 Hey there i've been uploading my app to google play developer console and it is showing 112 additional languages, but i do only support 4. Why is this and how do i fix it? Jun 20 13:20:05 Ashiren: nope Jun 20 13:21:41 yea markyosullivan Jun 20 13:22:07 wait, no Jun 20 13:22:19 the app you're going to be looking at is not open source Jun 20 13:22:46 you want this https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp Jun 20 13:23:13 doing a kill -9 on a crashed android emulator was a great way to kill it Jun 20 13:23:18 now it doesn't boot up again Jun 20 13:23:34 there is just a stupid android logo and no debug output on the screen Jun 20 13:23:42 they're really assholes, even if you buy chips from them they dont give you the source code so that you can do it like them, you have to figure out for yourself Jun 20 13:24:08 any ideas? Jun 20 13:25:38 Odaym: Sounds frustrating. Not sure where to look to figure out who to retrieve custom services from the bluetooth device which was made by the company I work at Jun 20 13:25:54 they should have a communication protocol for that device Jun 20 13:26:08 and it will by default expose its characteristics, use the nRF app to get started Jun 20 13:27:13 can u have a look to this ? http://paste.ubuntu.com/17592327/ any potential bug ? Jun 20 13:30:48 Hi guys! I have an issue with a Device Chooser. I have two devices connected, but whenever I build and run the app it asks what device to I want to use only for the first time, all the further runs AS it simply uses the device I have selected on the first run and just uses it all along. And I did NOT check the "Use same selection for future launches". Jun 20 13:33:54 So I need to physically disonnect the devices from my computer and connect and plug in them again Jun 20 13:36:24 ticking "Clear user data" got the machine working again Jun 20 13:37:39 from a widget, how can I just open the app without specify an activity like the multitasking manager does? Jun 20 13:55:50 I have this TextView where I change it's text everytime a list is scrolled. For some reason the text is not updating. Funny thing, I use the very same component in another screen and it updates just fine. What could be happening? Jun 20 13:55:55 hey, getting a lot of errors on a project i downloaded from github. all of them are admob errors. Jun 20 13:56:15 im looking for the library that i can import into eclipse, but it seems a lot has changed. admob is now a part of firebase. Jun 20 13:56:20 can somebody guide me on what to do? Jun 20 13:56:39 Also it only happen on Android 4.1 Jun 20 13:56:42 happens* Jun 20 13:57:07 supay switch to android studio Jun 20 13:58:07 casadogg: can i import the eclipse buildbox project into android studio? Jun 20 13:58:12 the documentation specifically says i need eclipse Jun 20 13:58:30 Hello everybody Jun 20 13:58:40 I'm trying to build my kernel straight from LGE sources Jun 20 13:59:10 but I can't find devicecodename_defconf in /arch/arm/configs Jun 20 13:59:16 Someone can share some hints? Jun 20 13:59:33 supay I suppose: https://www.youtube.com/watch?v=eyh7s9xIi4k Jun 20 14:02:30 yee solved textview problem Jun 20 14:02:35 android 4 fucking derping with layout boundaries Jun 20 14:02:43 wrap_content yadda yadda, in canse anyone cares Jun 20 14:02:47 case* Jun 20 14:08:35 casadogg: same errors on Android Studio as well Jun 20 14:09:20 it works :) Jun 20 14:09:23 pwned Jun 20 14:09:44 supay geez sorry man I have no idea... no experience with this Jun 20 14:12:32 blscoe: #android-root Jun 20 14:18:49 does any one whay I am getting error Error inflating class android.support.v4.view.ViewPager in few handsets Jun 20 14:19:02 specially in HTC Jun 20 14:19:57 and galaxy mini and Xperia too Jun 20 14:20:56 this is my gradle http://pastebin.com/QJpLw4Cs Jun 20 14:21:15 my app supports from 4.0 and above Jun 20 15:06:17 I have this view: http://pastebin.com/rVEQkkQy and some users are reporting that the set button does not show up and I don't understand why. Here is a screenshot of the problem: http://imgur.com/pnwDtAL I tried running the code on a very low res AVD, but the button still shows up. What is wrong with this layout? Jun 20 15:13:14 g00s: you're here Jun 20 15:13:21 hey thepoosh Jun 20 15:13:28 what's news? Jun 20 15:14:25 yeah g00s Jun 20 15:14:27 what's the good word Jun 20 15:14:49 tx: I have some, don'truin this for me! Jun 20 15:14:53 lol, nothing new. thepoosh did you see the instagram numbers from a few days ago Jun 20 15:15:05 nope, they published? Jun 20 15:15:46 do you remember meerkat? Jun 20 15:16:52 oh i guess i forgot to check AW so we can meh together Jun 20 15:17:06 no worries, it was meh Jun 20 15:17:10 i think i remember the meerkat Jun 20 15:17:11 lol Jun 20 15:17:18 with one link to berlin droidcon Jun 20 15:17:45 g00s: anyway, our CEO got airtime on USA-Today and on Blumberg Jun 20 15:17:47 thepoosh pick up any cool new libraries or articles last week? Jun 20 15:17:50 it was quite nice Jun 20 15:18:07 Blumberg ? Jun 20 15:18:26 Bloomberg ? Jun 20 15:19:23 yeah, that one Jun 20 15:19:28 :D Jun 20 15:19:46 thepoosh congrats, but they should have put you on there ~ :D Jun 20 15:19:56 what am I doing with my life Jun 20 15:20:05 i dont think your ceo knows what he's doing :D Jun 20 15:20:05 writing code to encrypt XMP data in a jp Jun 20 15:20:05 http://www.bloomberg.com/news/videos/2016-06-16/how-glide-is-creating-an-ecosystem-of-wearables Jun 20 15:20:10 in java Jun 20 15:20:11 whyy Jun 20 15:20:15 jpg* Jun 20 15:20:32 tx: there are people worse off than you: https://i.imgur.com/2OxDr3i.png Jun 20 15:20:39 I saw Jun 20 15:20:41 tell them to use CSS Jun 20 15:21:51 css is hard Jun 20 15:22:00 "hard" Jun 20 15:22:27 use sass/scss/coffee Jun 20 15:22:33 don't make life hard for yourself ;) Jun 20 15:23:16 TIL that espresso intents doesn't record service intents Jun 20 15:23:38 feels like a pretty big oversight Jun 20 15:23:54 thepoosh http://petapixel.com/2016/06/16/instagram-likes-comments-drop-33-year/ Jun 20 15:24:17 why is this important Jun 20 15:24:20 does someone work for instagram here Jun 20 15:24:30 morning all o7 Jun 20 15:24:46 tx somebody works in social networking ;) Jun 20 15:24:48 g00s: I am getting my ass served in issues on firebase and appboy at the moment Jun 20 15:24:57 trying to help them fix their shit Jun 20 15:25:08 thepoosh are you using firebase for analytics yet ? Jun 20 15:25:19 to an extent Jun 20 15:25:37 i'm still not sure if i should move from GA Jun 20 15:25:47 why not? Jun 20 15:26:00 well i dunno, is it really better? Jun 20 15:26:02 :D Jun 20 15:26:20 i use the GA app, but see there is no firebase app Jun 20 15:26:34 there is a console Jun 20 15:26:40 which is pretty good Jun 20 15:26:48 i wasn't sure if it was one of those 1.0 releases thats more like a beta Jun 20 15:27:02 well, the ananlytics seems like it's good Jun 20 15:27:10 some o the other parts are buggy Jun 20 15:27:22 https://github.com/firebase/quickstart-android/issues Jun 20 15:28:26 and this is really what fucked us over with firebase: https://github.com/Appboy/appboy-android-sdk/issues/53 Jun 20 15:29:02 Gralde build running for 10 minutes and still going. I wonder if this is a proper build or something got stuck. Jun 20 15:29:22 barq: you should look at: 1) you're dependencies Jun 20 15:29:36 and 2) the perhaps running offline Jun 20 15:30:08 barq: try running: gradle assembleVersion --configure-on-demand --offline --daemon --report Jun 20 15:30:13 and show the report Jun 20 15:30:14 I have 3 module dependencies Jun 20 15:30:22 module as in libraries? Jun 20 15:31:15 barq: could it be that you had a permgen space issue on the way? Jun 20 15:31:16 What used to be apklibs Jun 20 15:31:30 What do you mean by that? Jun 20 15:31:49 is this run in AS? Jun 20 15:31:56 Yes in AS Jun 20 15:31:57 or commandline? Jun 20 15:32:03 check the gradle logs Jun 20 15:33:24 Gradle console says build failed Jun 20 15:33:35 cannot evaluate module Jun 20 15:34:50 well, there you go Jun 20 15:35:37 Gonna be pain to get this project to work with gradle Jun 20 15:40:07 thepoosh quick Q, you guys use fragments, correct ? Jun 20 15:40:13 yesir Jun 20 15:40:17 nested fragments ? Jun 20 15:40:39 barq: what project is that? Jun 20 15:40:46 here and there Jun 20 15:41:15 thepoosh just wondering, how do you organize your 'glue code' between the fragments? for example, my hosting activity got crazy - any tips ? Jun 20 15:41:46 I have this view: http://pastebin.com/rVEQkkQy and some users are reporting that the set button does not show up and I don't understand why. Here is a screenshot of the problem: http://imgur.com/pnwDtAL I tried running the code on a very low res AVD, but the button still shows up. What is wrong with this layout? Thanks for the help in advance. Jun 20 15:41:47 host fragment should be the "activity" for the nested one if possible Jun 20 15:42:00 deadmund: you posted this 30 minutes ago Jun 20 15:43:23 thepoosh: yeah, is that too frequent? Jun 20 15:43:42 Sorry if it is. In other channels 30 minutes is not too frequent. Jun 20 15:43:50 In some* other channels. Jun 20 15:45:33 did you get an answer? Jun 20 15:45:56 looks like not. spam that shit Jun 20 15:45:58 just kidding Jun 20 15:46:05 ha Jun 20 15:46:35 orbyt_: I just installed my new ubuntu on my dell laptop and now I can't get to flash? Can you help?!?! Please. Jun 20 15:46:48 wait what Jun 20 15:46:52 flash? Jun 20 15:46:58 like flash flash? Jun 20 15:47:04 why would u ask that here Jun 20 15:47:17 It was just a joke :) Jun 20 15:47:20 thepoosh do you guys setTargetFragment() ? Jun 20 15:47:37 seem to work OK? any weird bugs / corner cases? Jun 20 15:47:38 orbyt_: Just joking around. Jun 20 15:47:55 (☞゚∀゚)☞ Jun 20 15:48:53 we don;t use that Jun 20 15:50:38 deadmund: so are you toggling the visibility of the set button anywhere? Jun 20 15:50:59 if not, check the hierarchy view to make sure its exactly there. Jun 20 15:51:54 orbyt_: I do not toggle it and I cannot recreate the but on my device. How do you suggest I check the hierarchy? In code or with some android studio tool or something? Jun 20 15:52:10 you cant recreate the issue? Jun 20 15:52:37 if you cant recreate the issue checking the hierachy viewer would be pointless Jun 20 15:57:47 shmoooz: the one I am working on of course Jun 20 15:58:43 "cannot recreate the but on my device" Jun 20 15:58:48 what the hell do u mean deadmund Jun 20 16:00:06 orbyt_: cannot recreate the bug* on my device. Jun 20 16:01:10 orbyt_: Yeah, I can't figure out what is causing it for my user. It's clearly happening to them: (screenshot http://imgur.com/pnwDtAL). I even tried with a low res AVD but it works fine there too.) Jun 20 16:06:22 where did u get the img Jun 20 16:06:25 of the issue? Jun 20 16:07:14 if its from the user, figure out there phone info, recreate it on an emulator, and go from there Jun 20 16:07:49 deadmund: we're not joking around here Jun 20 16:13:49 gordon_: oh sorry Jun 20 16:14:12 orbyt_: I guess I'll have to ask for more info. Basically, you think it's hardware dependent. Jun 20 16:14:20 deadmund: that was a joke too ;) Jun 20 16:15:09 :) Jun 20 16:15:53 No jokes noobs (▀̿Ĺ̯▀̿ ̿) Jun 20 16:16:37 deadmund: no it might not be, but the fact that you cant recreate it should have u wondering what versions the user is using when seeing the issue Jun 20 16:20:25 What version of my app? There is only one version :P Jun 20 16:20:46 thepoosh will you guys be testing on these? http://www.androidpolice.com/2016/06/18/google-says-that-android-apps-will-come-to-the-chromebook-pixel-2015-and-acer-r11-soon-in-another-developer-release/ Jun 20 16:21:00 another thing i'd like to stick my head in the sand about :P Jun 20 16:21:37 Haha, I'll hunt down the user and figure out how to recreate the bug. Jun 20 16:21:40 thanks for the help! Jun 20 16:27:07 g00s: I wonder what's inside Jun 20 16:27:12 in that chromebook Jun 20 16:35:43 How does one deal with the Hardware specific rotation of the camera captured images ? Jun 20 16:41:12 cart_man, good question. I would like to know too. Jun 20 16:44:31 g00s: I'll pass this on Jun 20 16:50:40 Hey guys, what would you do to make a background where its split in half diagonally with 2 colors, like this: http://assets.materialup.com/uploads/a697ca0c-2f37-4fa0-b6e5-49579685aff0/preview.jpg Jun 20 16:50:54 and have the colors be dynamics Jun 20 16:50:58 dynamic* Jun 20 16:55:00 onClick is an XML attribute?! since when Jun 20 16:56:52 since forever Jun 20 16:57:00 =-O Jun 20 17:05:46 orbyt_, flat background, with angled drawable on top. Change the background color, and change the tint of the foreground layer Jun 20 17:05:47 http://i.imgur.com/Ej5AHh2.png Jun 20 17:06:13 whered u get that image? Jun 20 17:06:17 did u just make that? Jun 20 17:06:26 yes, I just made it Jun 20 17:06:30 in what? Jun 20 17:06:35 illustrator Jun 20 17:06:50 (adobe incase that is not clear) Jun 20 17:07:06 yea i was jw Jun 20 17:07:16 i just use gimp =/ Jun 20 17:07:29 basically advanced microsoft paint lol Jun 20 17:07:48 yeah, I use gimp when i have to. it works ok. Jun 20 17:12:14 right, so how do you get a particular angle to only take up say 1/3 of the screen, like those examples? Jun 20 17:14:53 oh wait, i think i misunderstood ur suggestion Jun 20 17:14:56 lemme try Jun 20 17:23:49 anyone know when j/j are supposed to work with Instant Run? is that AS 2.2 ? Jun 20 17:27:46 orbyt_, perhaps you have it now, but the top "layer" is just it's own drawable, so whatever angle you create in your svg/drawable will be the angle. Depending on how you stretch the graphic for different screensizes, the angle will change. Jun 20 17:28:12 is the specific angle important or dynamic? in those cases, my solution as is may not work Jun 20 17:28:36 no the angle can stay the same Jun 20 17:28:45 i just need the two seperate colors to be dynamic Jun 20 17:29:12 yeah good, that should be doable with changing the background color and the tint of the drawable Jun 20 17:36:04 j/j will not work with instant run for a long long time Jun 20 17:36:15 jack is not the least bit compatible with how it works Jun 20 17:46:24 the hell Jun 20 17:46:31 did anyone see that bot? Jun 20 17:52:13 what bot Jun 20 17:53:46 Hey, i want to communicate with my android app via socket to send commands. I want bidirectionall communication, i have a dedicated http server and i confused about how to find the device with external ip. If i get the external ip of the android device i can send messages to socket in android device? Jun 20 17:54:29 I believe you can open sockets and use them just like on any other platform Jun 20 17:56:42 you should even be able to use netty4 codecs if you have that kind of custom proto over raw sockets Jun 20 17:57:09 but not netty 5 (requires java 8 afaik) Jun 20 18:07:35 why is android studio showing an error in my layout when using the percent lib Jun 20 18:07:50 says layout_width is undefined if using an app:percent width Jun 20 18:10:47 orbyt_ yeah, normal Jun 20 18:10:59 really? I dont remember it always showing an error Jun 20 18:11:08 a bunch of those cases, like GridLayout not needing w/h but marked as errors Jun 20 18:12:00 rxjava question: if I have two observables that could throw errors, and they're zipped together, if either throws an exception, it should be caught in the subscription's onError, right? Jun 20 18:12:23 or is there some weird error propagation rule that I'm missing? Jun 20 18:12:47 is that not what you are seeing ? Jun 20 18:14:21 if I raise an error in one of the zipped observable streams, it seems like it's behaving like an uncaught exception Jun 20 18:30:56 heh Jun 20 18:31:04 so android's raw usb library is actually alright Jun 20 18:31:12 doing some byte-level PTP stuff :) Jun 20 18:39:07 tx, yea Jun 20 18:39:20 tx, I actually ported the rtl8187 wifi driver from the linux kernel into java + android userspace :P Jun 20 18:39:29 tx, worked well enough to get monitor mode and packets :) Jun 20 18:40:03 tx, I'm not positive it's great for time sensitive stuff but once you get bulk io working on it it's fine Jun 20 18:41:38 ffs havent gotten this yet, anyone know any links explaining how to do this background properly? http://assets.materialup.com/uploads/a697ca0c-2f37-4fa0-b6e5-49579685aff0/preview.jpg Jun 20 18:51:14 Hi Everyone. I'm trying to understand the behavior of support-screens tag in the AndroidManifest file. If I set the value of large and xlarge screens as false, does that mean that my app will not be distributed to the devices having large and xlarge screen size? Jun 20 18:55:50 Those values are effectively deprecated and you shouldn't use them. Jun 20 18:58:17 shots fired Jun 20 18:59:52 @Mavrik So if I have to disable my app from getting distributed to tablets, should I use the compatible-screens tag? Jun 20 19:01:00 If I do so, won't my app be missing out on devices which are not added in the compatible-screen section? Jun 20 19:03:01 I'm pretty sure it is a lost cause, is there any way to tell if a view was @OnCheckChanged by the user or not? Jun 20 19:03:18 (ButterKnife event binder) Jun 20 19:03:41 What a surprise.. Jun 20 19:04:04 Why onSaveInstanceState is not called when Back button is pressed and activity gets destroyed? Jun 20 19:04:44 At that point, what are you saving the state for? Jun 20 19:04:54 To restore it when you launch a new intent for that activity? Jun 20 19:06:02 To restore the state that's why I am saving it lol Jun 20 19:06:13 When are you going to restore that state lol Jun 20 19:06:18 For example Jun 20 19:06:29 I have a textview Jun 20 19:06:34 anyone having trouble opening systraces genereated from DDMS? Jun 20 19:06:35 It has some text Jun 20 19:06:50 When I pressed back, it gets deleted Jun 20 19:07:01 I need to save and restore! Jun 20 19:07:20 That's not where you'd save the text- when you hit back it destroys the activity, including any state it would have saved. Jun 20 19:08:09 When you want to show the activity again, it needs to load its data from somewhere. It is NOT the responsibility of the activity's state to persistent between destroy and create, only between pause and resumme Jun 20 19:08:19 If you need that state, *you* have to save it somewhere Jun 20 19:08:36 You can use preferences, sql, API... Jun 20 19:09:34 Make sure you keep your state in the cloud Jun 20 19:09:40 Synergize, and web scale. Jun 20 19:09:53 Come on! Jun 20 19:10:12 Why onSaveInstanceState works for rotation? Jun 20 19:11:27 I thought the documentation said onSaveInstanceState is called before your activity is destroyed. Jun 20 19:13:54 The activity isn't re"launched" it is re"loaded" Jun 20 19:14:00 wait dont quote me on that Jun 20 19:14:12 When you hit back,, howevber, you nuke that activity Jun 20 19:14:21 You nuke the activity and its saved state Jun 20 19:14:29 You maybe able to leverage savePersistentState Jun 20 19:14:44 That will "save" your data like you want it to Jun 20 19:15:02 You won't be able to get the value of your text field from some other location, however. Jun 20 19:15:32 So, if you just want a textview to hold its value forever, that'll be fine. But you likely want that value for some other use.. Jun 20 19:15:56 Topic is outdated Jun 20 19:16:02 Android N is out Jun 20 19:16:19 hi, how i can change checkbox color ? Jun 20 19:18:12 the color of a single checkbox? Jun 20 19:18:47 why does take like 45 seconds to deploy my app to nexus7 and like 1 second on iphone Jun 20 19:18:48 yes Jun 20 19:19:14 45 seconds? luckyyyyyy Jun 20 19:19:28 explodes: how to save it? :P Jun 20 19:19:35 why does this happen: http://prntscr.com/bisvmr Jun 20 19:20:07 purplex88: what, so you can use it again? or so that your textview keeps its text Jun 20 19:20:37 try this in styles xml and assign it to checkbox: Jun 20 19:20:37 yes my textview's text resets to default Jun 20 19:21:29 If I can't use onSaveInstanceState that means what can I do?.. maybe save on onDestroy? Jun 20 19:21:45 purplex88: https://developer.android.com/reference/android/app/Activity.html#SavingPersistentState Jun 20 19:26:01 explodes: seems like a sort of class member that holds the data forever.. nice Jun 20 19:27:26 i try this but is not work Jun 20 19:28:23 then try to overwrite colorAccent mayb Jun 20 19:28:34 a lot of stuff about it on stackoverflow Jun 20 19:28:37 Hello, could someone help me solve this annoying error: "Cause: failed to find target with hash string 'android-21' in: /opt/sdk/android" There is also a link to open the Android SDK Manager with. But that also gives me a NullPointerException in Android Support: http://pastebin.com/FZafrdqZ Jun 20 19:30:06 the solution suggested on most stackoverflow didnt work for me, the one where you update compileSdkVersion to your current api. Jun 20 19:30:20 with android:theme works, ktwo Jun 20 19:30:23 with style not Jun 20 19:30:29 what the difference? Jun 20 19:34:44 when does gradle 2.2.0-alpha4 come out? Jun 20 19:37:52 everything I read on stackoverflow says "next week" from either 10 or 30 days ago Jun 20 19:38:09 why so important to know? it will come when its done Jun 20 19:38:52 because alpha3 and below in the 2.2.0 line have serious problems Jun 20 19:39:02 like app crashes on startup problems Jun 20 19:39:05 among others Jun 20 19:39:47 and all those fancy new android studio 2.2 features are basically useless without using 2.2.0 Jun 20 19:57:14 hello Jun 20 19:57:26 ^^ Jun 20 19:57:31 bun Jun 20 19:57:39 going now Jun 20 19:57:41 k Jun 20 20:00:21 t0th_-_, style is for attributes that apply directly to the widget, android:theme is for overlaying new theme attributes over the current theme Jun 20 20:00:33 android:colorAccent is not an attribute on any widget Jun 20 20:00:55 but many widgets look up the value of android:colorAccent in the theme, android:theme overlays "colorAccent" into the theme for you Jun 20 20:05:09 hi all, desperately need some advice Jun 20 20:05:19 Is there something like angular NG-Repeat to Android data-biding ? Jun 20 20:05:57 we have been building an app to monitor the activity levels and room level location for Alzheimer's patients... Jun 20 20:06:24 we were all set for roll out at the end of this month when an Android OS update killed our services Jun 20 20:08:09 I've started seeing this in my logs a lot: I/art: Background partial concurrent mark sweep GC freed Jun 20 20:08:27 some suggest it's from services starting, some suggest it's a JSON parsing issue. Jun 20 20:08:43 then dump heap and analyze Jun 20 20:10:15 Android’s OS update has been putting our services into ‘Stand By’ and causing large chunks of data to never get written/ any service that is set to run on a chron-job fails to get executed without CPU resource allocation Jun 20 20:11:14 A quick fix to our problem would be to freeze the Android OS to a previous version...does anyone know how to do that without rooting? Jun 20 20:18:18 katrina you can do logic based on API version (if version < 21) for instance Jun 20 20:18:43 or you can specify project wide and it will be filtered from the market Jun 20 20:18:54 min and max target numbers Jun 20 20:19:25 right but for the latest version we cannot get our services to run! We need to continuously monitor the patient's behavior and upload to our servers for real-time intervention Jun 20 20:23:13 katrina, so are you trying to fix the problem, or just keep you app off the latest devices? Jun 20 20:28:49 hey all, I am just getting started. I downloaded android studio, extracted it, ran it, created a new project with an empty activity Jun 20 20:29:11 when I try to build it says :app:processDebugResources FAILED but no indication how to fix it or what to do (or what that even means) Jun 20 20:29:59 parco, the problem is that the phones (and watches) will go out to patients with our app installed, if the patient updates the android operating system our code will be broken since we have not found a way around this problem Jun 20 20:30:58 it says ~/Android/Sdk/build-tools/19.1.0/aapt finished with non-zero exit status Jun 20 20:31:04 i had a working maps activity in my app. now I just get a blank screen inside the map. what could be causing this? Jun 20 20:31:14 I don't even know what aapt is supposed to do yet though :) Jun 20 20:32:00 katrina, sounds like you have some work to do then Jun 20 20:32:14 katrina, quick fix and release an update Jun 20 20:32:41 jpwhiting: do you have the latest jdk installed? Jun 20 20:33:11 parco: I have openjdk-8-jdk Jun 20 20:33:55 the terminal that I started android studio in has a warning about not being able to open my ~/.android/repositories.cfg file Jun 20 20:34:19 is the problem that my jdk isn't the official one from sun but an open source one? Jun 20 20:34:23 from debian packages Jun 20 20:34:27 sun/oracle Jun 20 20:35:04 jpwhiting: not sure, but its hard enough remotely debugging something, let alone a nonstandard toolchain Jun 20 20:35:54 yeah, I can understand that Jun 20 20:36:06 I'll try to go figure out how to install an official jdk then I guess Jun 20 20:37:17 parco, they problem is that there seems to be NO possible fix for the problem of the Android OS killing our services, so we cannot just fix and push an update Jun 20 20:37:47 katrina, i still don't know what you're asking Jun 20 20:37:52 katrina, sorry Jun 20 20:38:14 parco: from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html do I want JDK 8u91 or 8u92 ? and why ? Jun 20 20:38:36 8u92 just because it's newer ? Jun 20 20:39:09 well yea, it includes additional things too Jun 20 20:39:20 sorry, wondering if 1) Anyone has found a work around for the main problem of Android killing services in an app. 2) If anyone knows a way to "freeze" the Android OS to a particular version (hopefully without rooting). Jun 20 20:40:02 sorry, Parco, forgot to mention you in my response above Jun 20 20:40:03 katrina, so instead of fixing your app you wanna force users to stay on a specific version? Good luck. Jun 20 20:40:11 katrina: if an app froze the android OS version I was using I would immediately uninstall said application Jun 20 20:40:18 how rude can you be :) Jun 20 20:40:40 there's a duct tape fix, and then there's duct taping hands fix Jun 20 20:42:01 katrina, the only solution is to create an app flexible enough to handle the situation where android might kill it. It has to play nice Jun 20 20:43:15 of course you would, but this is a research app given to Alzheimer's patients, it is not a game, etc...Ideally OF COURSE we would like to fix the app but we have tried many things to get around this problem and are at an impasse. Hence my asking you folks if you have encountered this issue with Android. I am hopeing that we will not have to freeze the operating system but right now we have no choice. The data must be collecte Jun 20 20:43:51 so you would be distributing these android devices along with your product? Jun 20 20:44:06 parco, yes Jun 20 20:44:22 Then why not root them and have full control? Jun 20 20:44:24 parco, they get the watch and phone and an indoor locationing system Jun 20 20:45:40 parco, I think that is where we are headed...but that makes me a bit nervous...can you think of any reason rooting would be bad? Jun 20 20:47:01 parco, btw we are just humble research scientists...so, is not really a product... Jun 20 20:47:24 parco: good news, I get the exact same error with official jdk 8u92 Jun 20 20:47:55 I set my JAVA_HOME to the newly extracted jdk path and started android studio and get the same :app:processDebugResources FAILED in the Gradle Console Jun 20 20:48:21 jpwhiting: and you have correct permissions // administrative rights? Jun 20 20:48:23 * jpwhiting could try running aapt with --info, but I'm not sure what other options gradle or android studio or whatnot gave to it Jun 20 20:48:35 over my home folder? yes of course Jun 20 20:49:19 http://pastebin.ca/3647125 <-- complete Gradle Console output Jun 20 20:49:53 again this is a brand new project created with android studio, I haven't tweaked any sources, resources, anything Jun 20 20:50:03 just trying to build an empty project and failing somehow Jun 20 20:50:25 jpwhiting: well it wouldn't surprise me if a value is off in a gradle build file, even with vanilla projects Jun 20 20:50:42 a value, what kind of value? Jun 20 20:50:51 and why doesn't the error say what's actually wrong? Jun 20 20:51:00 whats your buildToolsVersion in app/build.gradle Jun 20 20:51:12 * Try: Run with --stacktrace <-- run what with --stacktrace exactly? Jun 20 20:51:24 is there something like VERBOSE=1 make in c/c++ land ? Jun 20 20:51:30 to see what commands it's even executing Jun 20 20:51:57 buildToolsVersion is 19.1.0 Jun 20 20:52:12 try setting it to 21.0.1 Jun 20 20:52:24 clean and make Jun 20 20:52:58 I have ~/Android/Sdk/build-tools/19.1.0, I don't have 21.0.1, do I need to run the sdk tool to get 21.0.1 first ? Jun 20 20:53:21 SDK Manager I mean Jun 20 20:53:24 oh yea, update for sure Jun 20 20:54:24 Under "Updates" under "Appearance & Behavior" I click "Check Now" and it says I already have the latest version of Android Studio installed. Jun 20 20:55:01 ah, I see, Show Package Details shows I have 19.1, but others are available Jun 20 20:56:25 I see build-tools 24 is available, should I install that ? or 21.0.1 that you suggested ? Jun 20 20:57:22 Hey! Can anyone tell me how to populate gridview with fake data Jun 20 20:57:26 i can only vouch for 23.0.3 :) Jun 20 20:57:26 Is their a way? Jun 20 20:58:56 just make data up Jun 20 20:59:06 same way you’d populate anything with fake data Jun 20 20:59:47 parco: worked, awesome, thanks a ton Jun 20 21:00:06 jpwhiting: np Jun 20 21:00:33 like in list view I used arrays Jun 20 21:02:35 ok Jun 20 21:02:56 a gridview doesn’t have an adapter Jun 20 21:03:06 you may be wanting a RecyclerView with a Grid LayoutManager Jun 20 21:03:42 grid view doesnt have a adapter? Jun 20 21:03:54 https://developer.android.com/guide/topics/ui/layout/gridview.html Jun 20 21:04:02 I am getting confused Jun 20 21:04:18 nevermind, I was thinking of something else Jun 20 21:04:25 in that case, you’d probably do the same thing Jun 20 21:05:00 same thing as in arrrays? Jun 20 21:05:03 yeah Jun 20 21:05:28 it uses the same kind of adapter as a listview Jun 20 21:05:36 multi dimensional arrays you mean? Jun 20 21:05:45 no need. just one array Jun 20 21:06:06 I tried with array not working Jun 20 21:06:17 you’re gonna have to define “not working" Jun 20 21:08:13 http://pastebin.com/AUx8haBA Jun 20 21:08:20 I did like this Jun 20 21:08:36 so where do you actually set up the gridview? Jun 20 21:08:45 and the adapter Jun 20 21:09:37 also, unless you require a gridview for whatever reason, I would highly suggest moving to the RecyclerView with a grid layoutmanager Jun 20 21:09:41 g00s, do you remember that problem with coordinatorlayout not 'coordinating'? Jun 20 21:09:59 well, mine was simply stupid Jun 20 21:10:14 hmm ok thanks I will see to it Jun 20 21:10:33 but back to your code, I don’t see you setting up the gridview or it’s adapter Jun 20 21:10:50 adapter is to get data from source right? Jun 20 21:11:01 yeah, just like in a listview or recyclerview Jun 20 21:11:12 i placed the viewpager inside a nestedscrollview then... happy customer Jun 20 21:11:14 bitkiller glad you got it fixed. its finisky Jun 20 21:11:20 I just want dummy data why will I need adapter now Jun 20 21:11:21 well, no, it’s not to get data from source Jun 20 21:11:21 *finicky Jun 20 21:11:22 ? Jun 20 21:11:43 the adapter is what takes your data and adapts it to the cell Jun 20 21:11:49 bitkiller oh thats weird, i have a viewpager w/o nestedScrollView Jun 20 21:12:00 right now, your gridview doesn’t think it has anything Jun 20 21:12:06 that’s why nothing is displayed Jun 20 21:12:08 did the views in your ViewPager implement NestedScrollingChild ? Jun 20 21:12:18 Can you tell me how to do it? Jun 20 21:12:26 it’s just like any other adapter Jun 20 21:13:10 I am a newbie I am new to all of this Jun 20 21:13:32 getting confused with gridview Jun 20 21:13:39 https://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews Jun 20 21:13:55 well, you mentioned listview, so I thought you had some experience with listviews and adapters Jun 20 21:14:06 g00s, i have a cardview with some fixed textviews and below a nestedscrollview with some charts Jun 20 21:14:16 already tried that Jun 20 21:14:49 and what happened? Jun 20 21:15:20 tried grid view from the developers site Jun 20 21:15:25 end up with errors Jun 20 21:15:27 g00s, client wants the charts to be scrollable, while showing the fixed panel above, and everything scrollable right-left (it's sort of a weather app) Jun 20 21:15:44 read the link I sent you, and that should help you with adapters Jun 20 21:15:54 hmm ok thanks Jun 20 21:15:55 in fact, weather data viewer app Jun 20 21:20:17 "SwipeRefreshLayout: setRefreshing(true) still broken" lolll Jun 20 21:20:41 bitkiller sounds cool, i'd like to see it when its ready Jun 20 21:20:49 always looking for ideas on visualizing data Jun 20 21:21:19 bitkiller fyi check out Google Analytics app, see how they do graphs Jun 20 21:21:45 and also a little google app called 'science journal' which is kinda strange Jun 20 21:21:54 for some other ideas Jun 20 21:22:21 https://play.google.com/store/apps/details?id=com.google.android.apps.forscience.whistlepunk Jun 20 21:23:26 bitkiller and fabric app has some nice cards / graphs https://play.google.com/store/apps/details?id=io.fabric Jun 20 21:23:37 bitkiller what are you using for the charting library ? Jun 20 21:28:01 little pet peeve of mine.. has anyone else noticed how android studio neglects the first character when typing into a focused field? Jun 20 21:28:22 is that intended operation? Jun 20 21:29:26 would be great if google just made a plugin for VS Code, the whole intelliJ thing seems so bogged down and sluggish Jun 20 21:30:57 hah, iOS 10 has dark mode, they beat google to it Jun 20 21:32:09 they’d make VS Code just as sluggist Jun 20 21:32:12 sluggish Jun 20 21:36:27 i scared bitkiller away Jun 20 21:36:54 s73v3r did you see that HN article about 'upcoming startup cities' ? Jun 20 21:37:25 yes Jun 20 21:37:29 i'm skeptical, especially those hot sweaty deep southern parts ha Jun 20 21:37:38 yeah, that’s not happening Jun 20 21:37:42 lol Jun 20 21:38:11 one guy made a pretty good comment. he said he was on a flight somewhere with a NM state rep, who asked what it would take to make NM a startup hotbed Jun 20 21:38:25 the guy asked him if they had enforcable non-competes there, and the rep said yes. Jun 20 21:38:38 ah Jun 20 21:38:53 yeah thats no good Jun 20 21:38:58 the guy said, until that changes, it’s not going to happen. And the rep was sad, because commercial interests are pretty entrenched there and want to keep that in place Jun 20 21:39:01 was buffalo, ny on the list? Jun 20 21:39:16 parco buffalo is depressing as fuck, no way Jun 20 21:39:25 great :-/ Jun 20 21:39:49 wouldn't be surprised if it has the highest suicide rate in the country Jun 20 21:40:09 i do think that’s a big part of it. With all due respect to Buffalo and other places, one of the reasons the Bay Area became a hotbed is because people wanted to go to there Jun 20 21:41:19 up to the 70s when there was a lot of manufacturing ... when that started to go away, a few places transitioned from that type of economy to tech ... those places are brighter areas in regional economies Jun 20 21:41:30 g00s, not scared. the coughing kid started complaining downstairs Jun 20 21:41:43 bitkiller didn't like the UI :D Jun 20 21:41:57 what most of these places need to ask themselves is why would someone want to move to there? Jun 20 21:42:12 g00s, i'm using mpandroidchart lib Jun 20 21:42:14 for the 10 feet of snow we get per year, of course Jun 20 21:43:04 buffalo is actually on the up and up Jun 20 21:43:13 it is, no doubt Jun 20 21:43:17 i'd typically want to go to a democratic state , because they tend to have better regulations on shit - but not always, CA is kinda iffy Jun 20 21:43:30 definitely not strong enough to resonate too far from here, but in due time Jun 20 21:43:54 dem states tend to have better environmental regulations Jun 20 21:44:02 like, not letting you dump shit in the water ;) Jun 20 21:44:14 i'd also want to be far away from fracking at this point Jun 20 21:44:23 based on the weekly bad news about that Jun 20 21:44:38 people still able to light a candle up from the faucet? Jun 20 21:44:46 and tropical diseases moving up from mexico in the south :) Jun 20 21:44:58 parco lol you are thinking of gassland Jun 20 21:45:06 i have no idea Jun 20 21:45:19 but one thing is for sure, people are getting totally fucked over by chemicals in their water Jun 20 21:45:47 I rather like the west coast Jun 20 21:45:53 i just watched 'the big short' , yeah the main character betting against the housing market - he is now investing in water Jun 20 21:46:03 that was a good movie Jun 20 21:46:14 its .99c itunes special this week Jun 20 21:46:36 is there a way to tell android studio to not clear the log and restart the app when it crashes? Jun 20 21:46:44 (it's not all crashes that produce this but some do) Jun 20 21:47:01 DrBenway there is a setting to clear the log what app runs ... Jun 20 21:47:10 dunno about crashes, haven't seen that myself Jun 20 21:47:19 *when app tuns Jun 20 21:47:21 jesus Jun 20 21:47:51 go into your run configuration Jun 20 21:47:52 it's not switched on :( Jun 20 21:47:57 yeah just went there Jun 20 21:48:13 it migth actually be a bug with android studio... it's not all types of crash that do this Jun 20 21:48:40 i wouldn't mind if they just spent the next year fixing bugs and making AS faster Jun 20 21:48:59 'do what you advertise, well' Jun 20 21:49:56 gimme C++ debugging that works reliably any day pls... Jun 20 21:51:05 if you want to do C++, AS still isn’t what you want to use Jun 20 21:53:42 Hello, I tried to build a project on an another computer, but gradle cannot find the directory for /../android-sdk. where can I change the directory to /my/actual/sdk/dir in all the gradle stuff? Jun 20 21:54:14 ok just found it. it was in local.properties -.- Jun 20 22:00:09 Hi, coming back to android dev after a long break. I'd like to update my existing project which was for Gingerbread, so pre-Fragment days! Any tips to how to get started? Jun 20 22:00:40 I guess first thing is I need to read up on what's new/changed since then! Jun 20 22:01:02 don’t bother with fragments unless you feel you need them Jun 20 22:01:37 oh, I thought fragments where best practice for ui? Jun 20 22:02:04 Maybe first step is to import the eclipse project into android studio Jun 20 22:02:19 dust off the cobwebs! ;) Jun 20 22:03:00 for some. if you already have a project working well without them, don’t feel you need to change it Jun 20 22:04:21 ok Jun 20 22:35:27 is there a way to install and built an app with android studio with ONLY command line? something like a built server ? Jun 20 22:36:19 yes, duh Jun 20 22:45:51 sponge-tmp: there’s an adb command for installing an app that takes an APK Jun 20 22:45:55 I think it’s adb install Jun 20 22:48:57 interesting http://openjdk.java.net/projects/code-tools/jcstress/ Jun 20 22:51:06 http://arstechnica.com/information-technology/2016/06/oracle-boosts-cloud-sales-but-at-expense-of-java-and-everything-else/ Jun 20 22:53:17 "Meanwhile, development of Java SE, the desktop Java runtime, has continued at life-support levels." is that fair though? seems like SE is moving along Jun 20 22:53:40 well i guess they missed their jigsaw deadline for java 9 Jun 20 23:11:14 not surprising, Oracle has basically zero real commitment to advancing java Jun 20 23:11:53 they were the ones who came out with Java 7 and 8 Jun 20 23:12:35 iirc, the jcp features for java 7 and 8 were in place before the purchase Jun 20 23:12:53 feature *requests Jun 20 23:14:47 Oracle, moreso than most others in the industry, has earned a reputation for cutthroat profitability Jun 20 23:14:56 great opportunity for IBM to beef up enterprise support for Swift Jun 20 23:15:11 they are more interested in squatting on the java IP and cashing in Jun 20 23:15:21 which from what i read is going along as we speak Jun 20 23:15:23 rent-seeking enterprise that they are Jun 20 23:16:57 https://adtmag.com/blogs/watersworks/2016/06/ibm-swift-enterprise.aspx Jun 20 23:22:43 bitkiller how have you found mpandroidchart's performance? Jun 20 23:34:39 it seems good, but i'm still waiting on customer feedback on this, as i only have a moto g 2014 and a moto x 2015 right now (and a gtab 2, but there's no requirement on supporting it anyway) Jun 20 23:35:40 i also haven't played with rendering confs to optimize resolution and such Jun 20 23:35:50 it's using a lot of memory for the bitmaps Jun 20 23:37:50 well, at least it allocates a lot on every page turn, but there seems to be no leak after gc Jun 20 23:39:19 Well darn Jun 20 23:39:59 Apparently Kitkat doesn't support AlertDialog.Builder setview() Jun 20 23:40:26 I'd love to develop for just 5.0 and above, but my phone is running 4.4.4 Jun 20 23:41:11 Does anyone know the equivalent for API level <21 (and how to conditionally split off depending on version)? Jun 20 23:44:33 Hello? Jun 20 23:55:47 HactarCE: Check the MaterialDialogs library on github Jun 20 23:56:07 Thank you :) Jun 20 23:56:13 Should I use that for all of my dialogs? Jun 20 23:56:22 i like to avoid dialogs, unless its Yes / No :D Jun 20 23:56:24 probably Jun 20 23:56:49 ok :) Jun 21 00:02:36 Gradle failed to resolve the library ... :s Jun 21 00:04:09 Anyone using Jack along with Multidex? Seems like that is broken for pre-lollipop devices... I filed a bug in case anyone wants to star it / comment: https://code.google.com/p/android/issues/detail?id=213483 Jun 21 00:04:46 your bug report sucks Jun 21 00:05:10 it can fail for any number of reasons, but you have no real detail Jun 21 00:05:13 or a repro case Jun 21 00:05:30 ? Repro is use that config on any project Jun 21 00:05:43 works on any project Jun 21 00:39:05 the work I do in "doInBackground" for AsyncTask, is this guaranteed to be visible to the main thread? Jun 21 00:39:19 so if I update the main thread, then run code in "doInBackground Jun 21 00:39:37 then you call onPostExecute Jun 21 00:39:40 then check the changes in "onPostExecute", will this be safe Jun 21 00:41:38 let's say that I have 3 integers a, b, c. in "doInBackground", I change the values of a, b, c, and then check all of them in "onPostExecute", will they be guaranteed to be visible? Or, will only the value that I "return" from doInBackground be visible? i.e. the value provided to be in onPostExecute Jun 21 00:42:08 i think you have to pass them to onPostExecute Jun 21 00:42:12 lol asynctask Jun 21 00:42:14 return a value from doInBackground Jun 21 00:42:19 otherwise, read up on jcip Jun 21 00:42:35 android development really requires a strong java background... everyone skips it Jun 21 01:15:57 I'm having a VERY weird issue, not sure where it came from... Jun 21 01:16:15 My problem is on "super.onCreate(savedInstanceState);" -- the first line of my main activity's onCreat() Jun 21 01:16:25 s/onCreat/onCreate Jun 21 01:16:43 "Exception while inflating " Jun 21 01:16:48 "Binary XML file line #17 tag requires viewportWidth > 0" Jun 21 01:18:25 Never mind; it appears I updated something in my Gradle file that it didn't like. :s Jun 21 01:19:32 thanks pfn yeah, I know pretty familiar with the concepts in jcip Jun 21 01:19:40 that's why I was thinking that guarantee would not hold Jun 21 01:19:49 *I am* pretty familiar Jun 21 01:19:50 I mean Jun 21 01:20:15 I looked at the implementation of asynctask, it is using an executor with futuretask Jun 21 01:20:21 and then a handler to push back onto the main thread Jun 21 01:55:00 Hi Jun 21 01:56:33 Does Firebase verify my client app automatically? So I can focus more on client-side operations without worry about that. Jun 21 02:03:39 is there any reason why DownloadManager.Request behavior would differ across devices / OEMs? Jun 21 02:17:58 "Like Comcast, Google Fiber Now Forces Customers Into Arbitration" Jun 21 02:18:05 do no evil :) Jun 21 02:30:28 what about boll weevils? Jun 21 02:37:28 capella no boll weevils, but true weevils :) Jun 21 02:48:29 <_genuser_> hey guys. Jun 21 02:48:40 <_genuser_> anybody using wifi debugging? Jun 21 02:48:47 Why? Jun 21 02:49:21 <_genuser_> why use wifi? or why I ask if anyone's using wifi? Jun 21 02:49:44 Why do you ask? Jun 21 02:49:51 <_genuser_> just curious about wifi, my phone just gets stuck after a while. I need to redo wifi, or something. It will continue using internet, etc. but adb can't ping it anymore. or connect to it. Jun 21 02:50:19 <_genuser_> same thing like my laptops, after a while the wireless connection will stop responding to incoming requests but outgoing requets seems fine. Jun 21 02:51:10 <_genuser_> at that point adb devices will fine no devices. Jun 21 02:51:23 <_genuser_> which sort of forces me to get up and go get the phone. :) kinda sucks. Jun 21 02:51:36 "wifi debugging" = "wire shark" ? Jun 21 02:51:52 <_genuser_> capella: no, adb can connect to your device over wifi. Jun 21 02:51:57 <_genuser_> without a usb cable. Jun 21 02:52:07 so, do the network analysis via wireshark Jun 21 02:52:33 <_genuser_> no, dev connects to android device over wifi, and continue debugging their app. Jun 21 02:52:46 <_genuser_> they debug their app using the same logcat from AS. Jun 21 02:53:10 Doesn't ADB Over Network require root? Jun 21 02:53:14 <_genuser_> https://developer.android.com/studio/command-line/adb.html#wireless Jun 21 02:53:17 I know it is built into CyanogenMod. Jun 21 02:53:39 <_genuser_> no, it was working fine for me yesterday using just the wifi on a stock Verizon phone. and we know some of those can't be rooted, lol. Jun 21 02:54:48 so is the issue you keep losing the wifi connection? heh - what protocol do they use these days? hayes AT set or some such? Jun 21 02:55:32 <_genuser_> I suppose the issue is that my phone, like ALL my devices, can't accept incoming requests over wireless after a while. but outgoing remains the same. Jun 21 02:55:48 <_genuser_> I had been thinking that it was some type of a "sleep" mode on wireless connections, etc. Jun 21 02:59:13 <_genuser_> hmm, ok interesting stuff. Jun 21 02:59:25 <_genuser_> my phones enable usb debugging was turned off. Jun 21 02:59:39 <_genuser_> AND I think you need to plug in the usb cable each time to enable this and then unpug the cable. **** ENDING LOGGING AT Tue Jun 21 02:59:58 2016