**** BEGIN LOGGING AT Thu Mar 02 03:00:03 2017 Mar 02 03:15:58 in AS, when you go "Check for Updates ..." isn't that supposed to tell you when you have things you have downloaded from the SDK manager out of date ? Mar 02 03:16:17 its told me when build-tools were out of date, but not other things like ConstraintLayout Mar 02 03:16:34 (even though, in the sdk manager, there is a '-' in the box which means, it knows its stale Mar 02 03:17:20 thats awesome sasser , you should write a book about that Mar 02 03:41:59 I put in my resume I know Espresso testing Mar 02 03:42:10 I guess I have to write my first Espresso test now Mar 02 03:47:52 Pixel's wifi is crap Mar 02 03:48:21 My 2011 Samsung Tab has a better wifi Mar 02 03:48:45 LTE-U is coming, bet stuff is going to go to shit on 5G Mar 02 03:56:12 Hi All - me again Mar 02 03:56:41 is there any way to tell if a control is enabled - I can't seem to find a .getEnabled() Mar 02 03:57:15 i could g00s, itll be like go ask alice Mar 02 03:57:25 it leaves u to wonder if i died from sc2 overdose Mar 02 03:57:56 isEnabled() Mar 02 04:02:29 bankai_: thank you Mar 02 04:03:17 ok so now I am confused the button is enabled and teh click handler set - but when I click nothing happens Mar 02 04:12:30 You're probably after setClickable() rather than setEnabled(), though buttons are clickable by default I believe Mar 02 04:16:56 Roughy: THX Mar 02 04:18:06 This crashing is causing me to get pissed - it crashes with out of memoery issue when Run fro IDE - however if i dlelete it then reinstall / rerun it its ok Mar 02 04:19:07 Fragments being kept alive or something? Mar 02 04:19:25 Though a reinstall/run from the IDE should free them up too Mar 02 04:32:11 if i run from IDE 2nd time it crashes Mar 02 04:33:29 i have to delete it off my phone then run it again - very frustrating Mar 02 04:34:56 AS SDK manager says i have build-tools installed, but it doesn't say which version Mar 02 04:35:18 oh , check package details Mar 02 04:40:05 How do I enable internet on my Android Emulator via Android Studio? Mar 02 04:40:09 Seriously cannot find a solution online Mar 02 04:40:10 (I'm on Windows) Mar 02 04:43:28 It usually bridges your connect automatically Mar 02 07:43:51 Roughy, mine wasnt bridged.. Mar 02 08:33:27 * raoul11 thepooshes thepoosh Mar 02 09:02:22 raoul11: sup buddy Mar 02 09:02:43 nm Mar 02 09:02:44 u? Mar 02 09:02:55 did u QA dat leak thepoosh ? Mar 02 09:06:06 they did assure it Mar 02 09:10:53 ? Mar 02 09:11:26 raoul11: just found the location of it for you Mar 02 09:11:37 I assume it due to the implementation of the web client Mar 02 09:11:42 what can i do about it ): Mar 02 09:11:42 Ashiren: hi hi Mar 02 09:11:47 nothing Mar 02 09:11:51 \: Mar 02 09:11:53 live with that leak Mar 02 09:12:05 thats what im planning to do Mar 02 09:12:09 and be happy people only login to facebook once so it won't kill you Mar 02 09:12:12 did you found the same leak in your setup? Mar 02 09:12:42 didn't search for it Mar 02 09:12:46 but I'm sure it's there Mar 02 09:13:03 which fb sdk are you guys using? Mar 02 09:13:17 though i did try a bunch of them Mar 02 09:13:33 its a small leak, but anoying Mar 02 09:13:34 4.18 איןמל Mar 02 09:13:37 I think Mar 02 09:13:41 mhm Mar 02 09:24:26 hello everyone was just wondering what the best IDE would be for a begginer so far i have tried android studio and intellij idea little bit of notepad ++ but i see that expects you to know what your doing. android studio seams so clusterd Mar 02 09:27:06 stick to android studio Mar 02 09:27:12 specifically if you're a beginner Mar 02 09:27:42 android studio does things for you Mar 02 09:27:53 other ides would require some knowledged under the hood Mar 02 09:28:51 ok will do thanks for the quick reply im new to java but i specifically want to start working with the location aspects for android Mar 02 09:29:01 resources for begginers where do you guys go Mar 02 09:29:19 https://developer.android.com/training/index.html Mar 02 09:29:24 Antony666: d.android.com Mar 02 09:34:40 hi, how do you specify dalvikvm args for the app you're building inside android studio? Mar 02 09:34:46 liking the links thanx guys Mar 02 09:36:55 so anything i learn from these resources and say i make my own app with all this knoledge how can i know that its safe to start distributing my app to earn money and protect the code Mar 02 09:37:16 Antony666, thenewbosoton on youtube will get you going Mar 02 09:37:25 boston* Mar 02 09:39:17 bytefire: how do you mean? Mar 02 09:39:27 new Android uses ART and not dalvik btw Mar 02 09:40:21 "new" Mar 02 09:43:15 nice resource seriously thanks so much everyone Mar 02 09:43:28 and here i am with my android 2.3 phone Mar 02 09:43:37 which is now used as alarm clock Mar 02 09:45:52 thepoosh: yeah. i mean providing commandline args to the vm. the binary is still called dalvikvm i think. Mar 02 09:47:12 thepoosh: so i want to make it wait for debugger to attach before running the app. something like -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y Mar 02 09:58:33 hello Mar 02 09:58:45 bit of a noob question. i have an bound service that serves as a facade for couchbase, and some logic on an activity (that use a hierarchy of other objects). say i want to serialize one of the object of the activity, is there a way to communicate with events? like i could raise an event and pass the object at its construction, and the facade listens to this events? Mar 02 09:59:07 could you point me to some documentation? Mar 02 10:00:24 like BroadcastReceiver() event? Mar 02 10:00:49 yeah Mar 02 10:00:58 well it would be within the app Mar 02 10:01:05 so i guess resultreceiver would suffice Mar 02 10:01:11 cool Mar 02 10:01:13 thanks ! Mar 02 10:01:14 local broadcastreceivers can be within app Mar 02 10:01:57 okay. Mar 02 10:02:51 or use eventbus or similar Mar 02 10:03:10 ^ Mar 02 10:03:47 there are some ways https://developer.android.com/guide/components/bound-services.html Mar 02 10:03:54 depending if its bound, local, or in other process Mar 02 10:08:33 yeah i’m using a bound service as well Mar 02 10:10:06 I'm trying to get the singal strength of my gsm or lte connection. Normally I would do telephonyManager.getAllCellInfo() find the active one via isRegistered, and then call getCellSignalStrength(), however on my phone (galaxy s4 mini), getAllCellInfo() returns null instead of a list of cellinfos (or at least an empty list). So now I'm looking for other ways to get the signal strength. Any ideas? Mar 02 10:20:53 telephonyManager.listen(...) only seems to give values for GSM, and i'm not that happy with the accuracy. Mar 02 10:21:36 Syzygy: dunno if this uses same values https://developer.android.com/reference/android/telephony/PhoneStateListener.html Mar 02 10:22:09 whatitis, thanks, but that's used with telephonyManaager.listen(...) Mar 02 10:22:27 K Mar 02 10:24:48 well, i guess i can live with the accuracy, but I also would like to have LTE data. Mar 02 10:34:32 hi Mar 02 10:34:46 I've implemented an appwidgetprovider/broadcast receiver for a widget, so I've populated onUpdate method and I've added onReceive method Mar 02 10:35:01 unfortunately, visual changes in my widget are not displayed and I've not clues though I've placed some log call in logcat Mar 02 10:35:26 in particular, onUpdate log message ia not displayed anymore in logcat Mar 02 10:36:11 I pastebin java code: http://pastebin.com/4mdpRCDR Mar 02 10:36:57 I've tried to use getResourceEntryName method, but it returns only view name string in logcat Mar 02 10:37:27 so, it's not useful for showing background and source names, set dinamically at runtime Mar 02 10:37:48 Any ideas? Mar 02 10:38:09 so i want my app to start and wait for debugger to attach, before continuing further. how do you do that? Mar 02 10:39:28 so that's -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y option for dalvikvm -> suspend=y is what i want. by default it's suspend=n Mar 02 10:41:10 Does anyone know aout this error I am getting this in my customWebView net: ERR_TUNNEL_CONNECTION_FAILED Mar 02 11:18:48 can anyone tell where in android studio would you set jvm args for your app? Mar 02 11:19:45 android studio is a bit like windows in that everything is so hidden and "made easy for you" Mar 02 11:24:16 is it possible to remove webview proxy settings? Mar 02 11:25:03 okay there is this method but it needs to be added into the code: android.os.Debug.waitForDebugger() Mar 02 11:25:44 that's a step closer to what i need. but since it requires changing code, it doesn't do the job. Mar 02 11:42:26 hi Mar 02 11:45:15 i am making an app but at the time of testing my app suddenly stops working well on the current device but when i ran the same code on any other device then it works fine,why it is happening? It happened with me twice,the app is about to create markers on google map and the problem is markers are not appearing now on lollipop and kitkat devices but the same code is working with marshmallow Mar 02 11:45:46 earlier the code was working with kitkat and marshmallow but not with lollipop Mar 02 11:47:25 ? Mar 02 11:47:29 please help Mar 02 11:48:47 check out the logs. no warnings / exceptions there? Mar 02 11:49:35 yes Mar 02 11:49:44 strange thing is log is empty Mar 02 11:50:11 nothing is coming in the log Mar 02 11:51:28 while when i run the same code with marshmallow the logcat starts showing stuff Mar 02 11:51:46 i am stucked Mar 02 11:51:57 i have no errors ,no logs Mar 02 11:51:59 :(] Mar 02 12:07:13 Do a debug build and run the app via adb on that system Mar 02 12:22:44 Is there a way to get the mcc and mnc from all nearby celltowers? telephonymanager.getAllCellInfo() only seems to return CellInfos with invalid mcc and mnc (Integer.MAX_VALUE), except for the currently connected Celltower. Mar 02 13:14:13 alright so here is one approach for starting the app and making it wait for debugger to attach: am start -D com.example.myapp/.ActivityName Mar 02 13:14:33 ok well thank you for that Mar 02 13:15:12 np Mar 02 13:16:12 problem is, it's still not clear how this filters down to the arguments passed to dalvikvm Mar 02 13:22:41 what're you trying to do? Mar 02 13:22:44 debug efficiently? Mar 02 13:33:10 I used minifyEnabled in debug build and now I am seing obduscated file names. Is there a way to make studio use mappings when logging errors? Mar 02 13:34:17 how about use a proguard file that has -dontobfuscate? Mar 02 13:35:18 Odaym: i have a tool which requires the app to be compiled with it. that is tedious. now i want to use jdwp to instrument the app on-the-fly Mar 02 13:35:48 for that i want the debuggable app to wait for debugger to attach before continuing Mar 02 13:36:04 thepoosh, yusoquiet today Mar 02 13:36:08 yea...quite complacated Mar 02 13:37:23 Zharf: Oh I can do that? COol Mar 02 13:38:18 astroduck, if you want builds that are obfuscated, you include multiple proguard-rules files in gradle... at least I think so :p Mar 02 13:38:19 yeah, been messing around a bit today Mar 02 13:38:22 what's up? Mar 02 13:39:02 astroduck, so just have one with -dontobfuscate in it and include that in the list of proguardFiles for the builds you don't want obfuscated Mar 02 13:39:35 raoul11: https://fb-s-d-a.akamaihd.net/h-ak-xlp1/v/t1.0-9/17021374_10154051400671792_2674029039749807386_n.jpg?oh=dac37ca822acc4746b45eff3e5994803&oe=593BA615&__gda__=1496564389_50267a777100e3bd3a05fd4bb3a189ef Mar 02 13:39:55 lol Mar 02 13:43:27 Zharf: Ok, and one more thing. I have to specify my app's package in proguard too, is that normal? Mar 02 13:43:50 how do you mean Mar 02 13:44:46 Hi guys! I want to write app which has a navigation drawer and for each item of the drawer a hierarchy of views. Maybe the first item displays a list of people and if you select one the comes in another view to edit this people. The user can switch to another navigation item and there will be a list of settings and for each setting he can go deeper. If the user selects the first item, he should land in the editing view for the selected peo Mar 02 13:44:46 ple and if he saves the edit he should land back in the list of people. Mar 02 13:47:02 I read the whole internet and there are soo many concepts. For me this looks like a standard usecase and there should be a best practice for that, but i cannot find it... Mar 02 13:48:12 What lifecycle method of a subfragment can I expect to be called on replace? I replace the fragment with another fragment of the same type, but onResume is not called for some reason. Mar 02 13:52:12 Zharf: So say my package name is com.pack.age, if I don't keep -keeppackagenames com.pack.age -keep class com.pack.age.** { *; } -keep interface com.pack.age.** { *; } in my proguard, my app doesn't compile Mar 02 13:52:32 And weird, the crash I was experiencing only happens when I remove -dontobfuscate Mar 02 13:56:40 astroduck, it's kind of normal to have to specify some names that you want to keep, obfuscation causes issues when using reflection, native stuff and such Mar 02 13:57:06 astroduck, you generally don't want to do that for everything in your packages though Mar 02 14:00:27 It actually removes all my activity.class files Mar 02 14:02:35 what's the issue with touching a google map before it's ready producing a null pointer? Mar 02 14:04:18 bytefire, there's no such thing as "jvm args" for an android app Mar 02 14:04:54 android apps all fork from a zygote process, there is no exec, and thus no args Mar 02 14:06:38 reflection ftl Mar 02 14:07:26 https://sites.google.com/a/android.com/tools/recent/constraintlayout101isnowavailable Mar 02 14:07:28 btw Mar 02 14:07:40 people use constraint layout? Mar 02 14:08:23 guinea pigs only atm Mar 02 14:08:26 it's been in 1.x for 2 weeks now Mar 02 14:08:45 I would like to try it our Mar 02 14:08:46 *out Mar 02 14:15:39 updated my dev env and now the app is killed right after hitting the run button (i.e. not after build's finished) Mar 02 14:16:20 bitkiller: logcat? Mar 02 14:17:54 thepoosh, no hint in logcat Mar 02 14:18:07 remove the filtering by app Mar 02 14:21:03 constraint layout is all over reddit Mar 02 14:21:10 makes me want to NOT check it out out of spite :P Mar 02 14:21:18 i need professional help :( :P Mar 02 14:24:11 right on Run (and getting the app killed): D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<< Mar 02 14:24:48 astroduck, what does your proguardFiles line look like Mar 02 14:24:53 then what looks a big dump of lib addresses Mar 02 14:25:47 then build finishes, and then D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm Mar 02 14:25:53 and the apk is installed Mar 02 14:25:58 Zharf: Found it, it was JSoup messing up everything. And for some reason, proguard retrace wouldn't resolve its packages :/ Mar 02 14:26:02 i used to use the build time to check the app Mar 02 14:27:37 astroduck, interesting? I didn't do anything special in my proguard for jsoup... though I'm not 100% sure if I tried it with obfuscation... since I never bother with obfuscation Mar 02 14:38:31 today is rant day Mar 02 15:03:08 pfn: "android apps all fork from a zygote process" yes. that's the davikvm (ART) process. the app runs inside that process. the jvm args are for that process. `adb shell dalvikvm -help` for more details Mar 02 15:08:32 incorrect Mar 02 15:08:41 dalvikvm is a standalone program Mar 02 15:08:51 it is unrelated to android apps Mar 02 15:09:29 you cannot supply arguments to it as it is already running, bytefire Mar 02 15:11:20 pfn: you mean there is just one instance of dalvikvm which runs all apps? Mar 02 15:11:31 yes Mar 02 15:11:53 pfn: don't think so Mar 02 15:12:05 think wrong as much as you'd like Mar 02 15:12:41 because, for example, when you attach a debugger, that debugger communicates with the vm process. Mar 02 15:13:32 there are many other reasons why it's hard to believe there is just on instance of dalvikvm running all apps Mar 02 15:13:55 memory for example Mar 02 15:14:01 it's not one instance, it's forked Mar 02 15:14:17 correct. so not one instance Mar 02 15:14:21 there's only one initial instance started that forks all apps Mar 02 15:14:35 you cannot pass arguments to dalvikvm Mar 02 15:14:37 not apps. but vms Mar 02 15:14:52 except from a custom. init script to the zygote Mar 02 15:14:52 forks vms Mar 02 15:15:02 then a vm runs your app Mar 02 15:15:04 forks apps Mar 02 15:16:42 it forks directly into your app entry point (well, not quite, but for all intents and purposes) Mar 02 15:17:58 we might be saying the same thing Mar 02 15:20:20 not the same thing with regard to what you want to do (pass arguments to dalvikvm) Mar 02 15:33:13 pfn: if you run `adb shell dalvikvm -help` you'll see all the arguments that can be passed to davikvm Mar 02 15:35:21 you don't understand Mar 02 15:35:30 you cannot pass arguments to zygote Mar 02 15:35:59 dalvikvm is a standalone command to run dex files just like java Mar 02 15:37:22 what happens to dex bytecode in your app? Mar 02 15:39:06 I want to push notification to users behind login, can I do this FirebaseInstanceId.getInstance().deleteInstanceId(); everytime user is logged out? Mar 02 15:39:07 under modern android it's compiled into an elf binary as part of the art stage, and running it is all part of the system bring-up and app launching process Mar 02 15:43:18 bytefire, nothing Mar 02 15:45:01 it does not get run by dalvikvm Mar 02 15:45:02 dragorn: yes, afaik that is AOT compilation. but that's not all of the code. either way there is a VM process which runs the app Mar 02 15:45:26 not directly, zygote invokes your app entry points Mar 02 15:46:06 if you're familiar with Java ee at all (servlet, ejb, etc) it's. basically the same thing Mar 02 15:47:30 pfn: so does it run natively? Mar 02 15:47:58 if not (which is the case) then it runs on top a VM. that much should be clear Mar 02 15:48:28 it's an obvious point which shouldn't be hard to grasp unless there's ego involved :) Mar 02 15:50:18 are you trolling? Mar 02 15:50:29 there has never been an argument that there's no vm Mar 02 15:52:32 trolling me? Mar 02 15:52:40 why would i do that. Mar 02 15:53:37 concept of vm is that it is a containing process that runs your bytecode - dex in this case Mar 02 15:54:23 now since it is a process, you can provide arguments to that process, just like any other process. Mar 02 15:54:39 those are the arguments mentioned above Mar 02 15:56:35 what am i not getting here: dialogfragment, with custon in/out animation that is being set in onStart with getDialog().getWindow().setWindowAnimations - after i press the power button, and return to the app - the view for a split second is the stack view and the animation pops up again Mar 02 15:59:15 bytefire, false, you cannot provide arguments to running processes Mar 02 16:03:06 hey all Mar 02 16:03:19 I have a question I am getting the following error Mar 02 16:03:20 Error:(84, 48) error: lambda expressions are not supported in -source 1.7 Mar 02 16:03:20 (use -source 8 or higher to enable lambda expressions) Mar 02 16:03:43 how do i change the api's my application uses as far as i know i have my application set to 4.1 up to the newest. Mar 02 16:04:00 i think how can i confirm what the min api's and max api's are supported? Mar 02 16:24:13 wut Mar 02 16:30:36 why does this animation so persistent Mar 02 16:45:51 I'm getting Access Denied messages from my companies Sonatype repo while running Robolectric. I've added a custom repo to my build.gradle with the url and credentials so I figured that would work Mar 02 16:47:10 Kind of at a loss as to where to look. Running with --debug doesn't show me anything other than "Access denied to mycompany.com/repo/org/robolectric/shadows-core/3.2.2/shadows-core-3.2.2.pom" Mar 02 16:47:37 yiatai robolectric downloads dependencies by itself Mar 02 16:47:40 not through gradle Mar 02 16:50:07 pfn: Hmm okay so I guess I need to find out if it's possible to have robolectric authenticate Mar 02 16:51:48 Alright looks like http://stackoverflow.com/questions/39358697/how-to-override-the-robolectric-runtime-dependency-repository-url/39360538#39360538 Mar 02 16:51:54 could do it for me Mar 02 16:51:56 thanks pfn Mar 02 17:23:24 Hi, i am having problem with my app, its a google maps app in which it creates markers,now the problem is earlier the app was running fine in kitkat,marshmallow but not in lollipop but now the same code is not running in kitkat and lollipop but is running fine in marhsmallow,please help me out! Mar 02 17:25:35 no Mar 02 17:25:48 why no Mar 02 17:25:57 because you do not do the right things to get help Mar 02 17:26:04 "does not work" is not how you get help Mar 02 17:26:11 i know Mar 02 17:26:29 but i don't know the error because i am not getting errors in logs Mar 02 17:27:51 there are errors, get them Mar 02 17:28:21 the rest of the application is working well in kitkat and lollipop except creating the markers in that two Mar 02 17:28:59 Flush any cached offline map data Mar 02 17:29:32 It screws up custom maps in Google Maps and probably affects custom code that uses it as a component as well Mar 02 17:29:57 you mean to say clear the cache? Mar 02 17:30:01 Nop. Mar 02 17:30:11 then? Mar 02 17:30:18 I mean exactly what I said. Throw out any offline downloaded map data Mar 02 17:30:29 got it Mar 02 17:30:32 thanks Mar 02 17:30:33 ohh Mar 02 17:30:49 is there anything else? Mar 02 17:30:52 While it's present, any custom map markers for the same area won't ever appear. Mar 02 17:31:03 Drove me freakin' batty until I figured it out Mar 02 17:31:38 I've got a pretty detailed map of the local Pokemon Go spawn areas, exactly none of which would work... with what seemed almost random frequency Mar 02 17:32:31 ok thanks for the help :) Mar 02 17:33:35 but i tried with uninstalling and reinstalling the app, is it so that after uninstalling the cached offline map data don't get deleted? Mar 02 17:34:00 i have to delete it separately? Mar 02 17:34:33 google map data? Mar 02 17:34:40 yes Mar 02 17:34:56 I’d be willing to bet that’s stored in a different location Mar 02 17:35:01 outside of your app Mar 02 17:35:14 no sense in making several apps download the same tiles Mar 02 17:35:33 ok so how will i get that data? Mar 02 17:35:49 what do you mean? Mar 02 17:36:06 cached offline map data? Mar 02 17:42:06 is this normal behavior: a dialogfragment dismisses when the device goes to sleep and restore state when the app gains focus again? Mar 02 17:42:55 yes Mar 02 17:45:17 would a regular fragment behave the same? Mar 02 17:45:31 s73v3r: I'm not sure that cached offline map data is actually sharable outside of the app that downloaded it. Ingress uses a very customized map view and so does Pokemon Go, but neither's bandwidth usage appears to be impacted significantly by me having the entire county's data downloaded, although the transit incurred by Google Maps itself goes way down Mar 02 17:45:37 i dont want that the baseActivity view will be visible for a single split second Mar 02 17:46:49 Dagmar so how come the cached offline map data is different from cache memory of the app? Mar 02 17:46:51 s73v3r: Considering that they're the things that uses the most data on my phone (second to Play Music) I was really hoping cached data would affect them Mar 02 17:47:16 Pete__: Because there is more than one type and mode to cached data Mar 02 17:47:38 when i will uninstalled the app and cleared the cache ,after reinstalling the problem still persists Mar 02 17:47:51 Whether or not the data is currently used isn't guaranteed to affect whether a not a BUG is manifesting because it's a BUG Mar 02 17:48:06 And no one told you to uninstall the app Mar 02 17:48:25 oh so how to clear all modes of cached data by one app? Mar 02 17:48:52 Maps has an Offine Areas section in it's hamburger menu. Clearing the offline data only required you go into that section and tell it to do so Mar 02 17:51:13 you are talking about the google maps app, not everyone creates that option in the map app Mar 02 17:52:33 Look man, you said your app wasn't creating the markers it was supposed to Mar 02 17:52:54 I'm telling you that offline data fucks up maps ability to display custom markers and it probably affects things using it as a component Mar 02 17:53:15 yes right Mar 02 17:53:38 but what i am thinking how will delete that offline data Mar 02 17:53:45 i* Mar 02 17:54:00 So what the fuck do I care if some people don't use the option. It's automatic for Maps to _offer_ to cache what's considered the home area to the user Mar 02 17:54:13 Furthermore, I've already told you how to clear that data, so do try and pay the fuck attention Mar 02 18:10:51 Dagmar: But you said it yourself, they have custom map tiles Mar 02 18:13:11 Both are basically using it as a heavily skinned map and I wouldn't expect to see my custom map markers appearing in there Mar 02 18:13:21 I'd be a little freaked out by that actually Mar 02 18:13:36 ...but offline cached map data _definitely_ breaks the default component Mar 02 18:14:14 Any custom map markers someone's importing from a mymaps map will refuse to appear in Maps if there is cached data because it apparently overrides custom map data Mar 02 18:14:35 ...and it does impact when it's used as a component as well Mar 02 18:17:20 cool https://firebase.googleblog.com/2017/03/realtime-analytics-for-everyone.html Mar 02 19:22:52 recommendations for apps that let you measure widgets on screen, and also give you the density ratio? Mar 02 19:23:19 ideally it would also give you the bucket it fits into (hdpi, xhdpi, etc) Mar 02 19:40:50 hey everyone Does anyone know if the android studio 2.3 going to go stable? Mar 02 19:41:06 at some point, yes Mar 02 19:42:38 perlsyntax sometime before xmas Mar 02 19:45:47 i'd have to imagine it pretty soon though, since you need it to use constraintlayout 1 which is stable Mar 02 19:45:54 i mean the gui editor Mar 02 19:46:15 That, and IO is coming up. They’ll want to show off the alpha of the next iteration of Android Studio Mar 02 19:48:43 IO isn't a developer conference, phooey Mar 02 19:49:30 I'm still waiting to see constraintlayout to be useful for something Mar 02 19:53:59 :) Mar 02 19:54:49 i hope so Mar 02 19:55:55 When i install constaintlayout i get fail and look at it installed odd.I hope come out before summer. Mar 02 19:56:56 i like android studio 2.3 better.:( Mar 02 19:57:23 hehe Mar 02 19:58:09 Has anyone use firebase for hosting website? Mar 02 19:58:46 s73v3r, i hope so. Mar 02 19:59:12 i just got a new laptop:D Mar 02 20:03:38 ok, I need something to help me translate a pixel size to a DP size Mar 02 20:05:32 Like, a function? Mar 02 20:06:37 Or a method Mar 02 20:06:39 Get the current pixel density with getApplicationContext().getResources().getDisplayMetrics().density; Mar 02 20:07:01 Mulitply that by your DP value to get pixel sizes Mar 02 20:07:08 not in code, like an app that will tell me that stuff about the device it’s running on Mar 02 20:07:13 Ohhh Mar 02 20:07:37 There's bound to be more than a few of those types of apps in the Play Store Mar 02 20:08:15 i’m sure there are. however, my google fu is failing me Mar 02 20:19:26 s73v3r: Turns out searching for the function name worked out pretty well https://play.google.com/store/apps/details?id=net.liverworks.getdisplaymetrics Mar 02 20:19:46 thanks Mar 02 20:26:01 So digging more into why Roblectric wouldn't respect my $HOME/.m2/settings.xml repository for authenticating is because they use the maven-ant-tasks which depends on org.apache.maven.wagon:wagon-provider-api and that does not respect https://maven.apache.org/guides/mini/guide-encryption.html Mar 02 20:26:24 per https://github.com/apache/maven-wagon/blob/30631655e8f6cdf121161b3ca09e3da0134a5198/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java#L204 Mar 02 20:32:44 Good evening. Mar 02 20:38:33 Maybe it doesn't need to Mar 02 20:57:19 hi SDK Manager.exe quits as soon as I open. How else could I update SDK? Mar 02 21:00:29 Does Android Studio itself have a way to update sdk Mar 02 21:01:46 found it Mar 02 21:23:53 Has anyone tested any of the AMD Ryzen CPUs for compiling a big Android project? Mar 02 21:25:10 I'm fighting a RecyclerView and its Adapter. I occasionally get: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{aca9bd7 position=4 id=-1, oldPos=3, pLpos:3 scrap [attachedScrap] tmpDetached not recyclable(1) no parent} Mar 02 21:29:02 Let's say I have a RecyclerView.Adapter backed by an ArrayList containing [A,B,C,D]. Now I update that to contain [A,D,C], i.e. removing B and swapping the last two. I don't want to fire notifyDataSetChanged(), rather I'd like the fire the proper notifyItemMoved(), notifyItemMoved(), and notifyItemInserted(). Mar 02 21:30:33 if you’re changing that much, notifyDataSetChanged is probably what you do want Mar 02 21:30:48 Currently, when I receive an updated model [A,D,C] I loop over two current and updated and compare each element and fire notification as appropriate. But then I get the exception at some point. Mar 02 21:31:30 you may just want to fire notifyItemRangeChanged Mar 02 21:31:31 s73v3r: You could be right; playing multiple move (or swap) animations simultaneously doesn't look good. Mar 02 21:32:21 But still, I think it should be possible, and I'd like know how to fire these notifications properly. Mar 02 21:32:45 My example is rather trivial and I'm uncomfortable with my code crashing. Mar 02 21:33:39 you’re probably not keeping track close enough of the changes Mar 02 21:33:53 My problem could be that I notify the adapter *while* looping over the updated model and editing the current model. Mar 02 21:34:03 that’s definitely a problem Mar 02 21:34:15 make your changes to the list first, and then notify the adapter Mar 02 21:34:16 Perhaps I should loop, track changes, update model, then playback changes Mar 02 21:34:29 you should also look into DiffUtil Mar 02 21:34:50 it’s a helper library from Google which aids in calculating the changes between lists Mar 02 21:35:25 is there still no google play services issue tracker? Mar 02 21:35:27 wtf Mar 02 21:35:37 What Mar 02 21:35:37 a Mar 02 21:35:39 relief! Mar 02 21:35:47 I didn't know DiffUtil existed =) Mar 02 21:35:51 well, is anyone else getting this bug with 10.2.0? https://code.google.com/p/android/issues/detail?id=234708#makechanges Mar 02 21:37:27 s73v3r: The javadoc of DiffUtil even mentions an "edit script". This seems to be the solution I was heading towards. That's comfortable =) Mar 02 21:43:01 what do you set/call on a recyclerview or it’s adapter to make it animate the changes, rather than jump around? Mar 02 21:43:26 Hi all, just curious if I tell my app to exit and go to the applications , and to that app, I can still select force stop. Is this an android thing that it is still running, even though I called exit ? Mar 02 21:47:26 How is it that in the Picasso DispatcherTest class it's able to get to the point that it can call the HandlerThread#getLooper() https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Dispatcher.java#L110 without invoking a NPE from Mar 02 21:47:27 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/os/Handler.java#229 Mar 02 21:47:53 It doesn't look like the DispatcherThread class is mocked/stubbed/shadowed Mar 02 21:51:10 Hmm okay looks like the DispatcherThread actually has a ShadowLooper Mar 02 21:51:56 My CustomHandlerThread in testing with robolectric does not have a ShadowLooper :( now I need to find how that gets hooked up Mar 02 21:58:07 Despite trying to hard code the height of this view for a cell, the damn recyclerview STILL SCROLLS ON IT”S OWN Mar 02 21:58:20 it pushes the top cell off the top of the screen Mar 02 22:10:37 hi, i have a c library in a directory in my c folder in my project Mar 02 22:10:50 but it won’t compile, because it can’t find the library Mar 02 22:11:13 that’s because of a linking problem, but i can’t find how to link properly Mar 02 22:11:34 I’ve been trying to add it to target_link_libraries Mar 02 22:11:42 in CMakeLists.txt Mar 02 22:12:13 but obviously cmake doesn’t know where to find the library Mar 02 22:12:28 how can i tell it where to look? Mar 02 22:15:24 include_directories(${LibXML++_INCLUDE_DIRS}) seems to be the road but i don’t understand the example argument Mar 02 22:17:25 s73v3r: Doesn't notifyItemInserted(), notifyItemRemoved(), notifyItemMoved() perform a nice animation? I must admit I haven't tried because things haven't worked out that well so far. I'm implementing DiffUtil right now. Mar 02 22:17:38 maybe? Mar 02 22:17:52 you can set an ItemAnimator on the RecyclerView to do it for you Mar 02 22:18:16 I think it has defaults that look all right. Mar 02 22:27:56 what IDE can i use to android development? Android Studio, and ?? Mar 02 22:28:37 intellij idea Mar 02 22:34:16 amy other? Mar 02 22:34:19 any Mar 02 22:34:30 Eclipse Mar 02 22:34:38 You can use any text editor that can invoke the Gradle build system. Mar 02 22:34:49 Or any text editor really, since you can build in command-line. Mar 02 22:34:51 But use Android Studio. It's easier. Mar 02 22:34:51 you can use any other IDE as well of course, but those two have the best integration for android specific things Mar 02 22:34:54 my problem is with 32bits Mar 02 22:35:03 uh... Mar 02 22:35:05 32bits? Mar 02 22:35:17 As in old computer for development? Mar 02 22:35:17 yes, i am on Ubuntu and my PC is 32bits Mar 02 22:35:29 well is what i have Mar 02 22:35:48 IDEA works fine on 32bit computers Mar 02 22:36:07 well, "fine"... 4G of usable memory might be low Mar 02 22:36:18 you need 32bit jvm though Mar 02 22:37:01 s73v3r: DiffUtil works! Animations for move play nicely Mar 02 22:52:36 irma gherd, my problem was not calling myHandlerThread.start() before calling mHandlerThread.getLooper() as far as Robolectric being able to make a shadow looper for my HandlerThread Mar 02 22:54:20 Random shuffle and random remove of items works too. DiffUtil appears stable. Thanks s73v3r, you saved me =) Mar 02 23:22:36 Grrr, I need java.lang.Number to be an interface instead of an abstract class Mar 02 23:25:12 I’m receiving onScrolled events from my RV despite not touching the screen. How can I track down the source of these? Mar 02 23:25:28 All I get in the stack trace is looper, handleCallback, and Choreographer Mar 02 23:25:44 in other words, handling/reacting to an event, and not the source of the event Mar 02 23:28:22 Debugging Handler events is always a nightmare Mar 02 23:29:15 And for some reason, the source code for android libs never matches the runtime, so breakpoints are useless. Mar 02 23:30:53 Assume a ListView with a custom xml and ArrayAdapter: is there a difference between setting an onClickListener for the list items in the adapter class(setOnClickListener) and in the activity in which you use the ListView(setOnItemClickListener)? Both provide the same functionality, however I wonder which is the preferred way and if there is a performance difference :) Mar 02 23:34:18 i think onItemClickListener was considered problematic, hence why there’s no equivalent in the RecyclerView Mar 02 23:35:14 if view reuse is done correctly, then you'll have no performance problem Mar 02 23:38:26 thanks, I'm rather sure view reuse works as it should. My implementation was using an onClickListener in the adapter class *yay* Udacity did it using the onItemClickListener, and I wondered which was better and why Mar 02 23:39:49 For ListViews you'd usually want setOnItemClickListener (think it's called), ie. you want to get notified about what particular Item you clicked *and* what particular position is has. Mar 02 23:39:58 Upgraed to AS 2.3, my builds fail now, whereas they work from the command line. "What went wrong:" :app:transformClassesAndResourcesWithProguardForDevelopmentDebug FAILED "path may not be null or empty string, path='null'" Mar 02 23:40:48 Instant run disabled, JRebel works fine Mar 02 23:40:59 Nothing on Google D: Mar 02 23:43:41 Hey guys, where can i learn more about making an android wear app communicate with phone app? Mar 02 23:45:08 https://developer.android.com/training/building-wearables.html Mar 02 23:45:16 https://developer.android.com/training/wearables/data-layer/index.html Mar 02 23:48:07 is the AppCompatPreferenceActivity and stuff created by "New Activity -> Settings Activity" in Android Studio really overkill for just one setting? I just want one setting (for now) but https://developer.android.com/reference/android/preference/Preference.html seems to be outdated Mar 02 23:48:18 er not that, this: https://developer.android.com/guide/topics/ui/settings.html Mar 02 23:49:40 is there any updated guide you guys recommend? Mar 02 23:52:21 g00s, https://aws.amazon.com/message/41926/ Mar 02 23:53:38 thomasross, it's indeed overkill, but you can just go with a PreferenceActivity and a simple .xml settings file Mar 02 23:54:26 or even some sharedpref + an xml layout would work too Mar 02 23:56:57 like just SettingsActivity extends PreferenceActivity { ..onCreate(..){ superonCreate(); this.addPreferencesFromResource(R.xml.settings); } } Mar 02 23:57:00 ? Mar 02 23:57:20 just addPreferencesFromResource is deprecated... Mar 02 23:57:38 it says to use preferencefragments instead... but i really don't need preference fragments. Mar 03 00:02:25 adq: ^ Mar 03 00:04:32 thomasross, https://developer.android.com/reference/android/preference/PreferenceActivity.html Mar 03 00:05:05 it's not much too add, just an inner fragment class Mar 03 00:05:23 adq: okay, thanks Mar 03 00:27:21 oh nice AS 2.3 Mar 03 00:28:52 I would complain but I *did* just finish updating my three workstations Mar 03 00:29:00 Of _course_ there's going to be another major update Mar 03 00:31:42 At least it's only another 120Mb or so to download the update to 2.3 Mar 03 00:37:00 https://9to5google.com/2017/03/02/google-search-technical-queries-programming-languages/ Mar 03 00:39:20 oh man, truly something that could change the world http://newatlas.com/bissell-barkbath-dog-washing/48218/ Mar 03 00:39:22 bankai_ ^^ Mar 03 00:44:52 hey all - how goes it ? Mar 03 00:46:02 Are there any limits to doing things asynchronous in Android? Mar 03 00:46:11 Like would I be able to change values of a TextView from a different thread? Mar 03 00:55:02 no. UI things can only be changed on the UI thread Mar 03 00:55:21 you can use the method runOnUiThread to pass a Runnable to be run on the UI Thread Mar 03 01:01:50 Well, unless you use AIDL and then things get weird Mar 03 01:32:10 sup Mar 03 01:41:45 "2.3 is the highest quality release to date, improving stability, build performance and more! " ... we'll see about that ... Mar 03 01:42:02 you talking about studio? Mar 03 01:42:11 yessir Mar 03 01:43:16 one person says you can't run instrumentation tests, if i understand this Mar 03 01:43:44 Don't understand why studio would change that Mar 03 01:43:49 instrumentation is done on the device Mar 03 01:45:06 well maybe launchinf them from the ide Mar 03 02:15:41 Dagmar: hi Mar 03 02:26:49 How can I retain the text in a TextView when the orientation is changed Mar 03 02:27:07 (The TextView defaults as blank, and is given value when the user interacts with a button) Mar 03 02:33:10 Hi, question about the built in Android Studio's git client Mar 03 02:33:56 When selecting a different branch , I see among the options "rebase into" Mar 03 02:34:46 does that the rebase the current branch into the branch I'm selecting, to does it rebase the selected branch into the current one? **** ENDING LOGGING AT Fri Mar 03 03:00:00 2017