**** BEGIN LOGGING AT Sat Jun 25 02:59:58 2016 Jun 25 03:06:24 impulse: its called the "notification shade" Jun 25 03:06:38 oh the settings part is quick settings yea Jun 25 03:06:45 oh ok Jun 25 03:06:46 thanks Jun 25 03:24:38 Napalm|afk you're still alive ! Jun 25 03:28:28 Hey all-- I can't seem to find any info on this on SO or in the docs. Does Custom Chrome Tabs have functionality like WebView's shouldOverrideUrlLoading to catch urls? or do I have to depend on an intent-filter? Trying to replace an OAuth flow with Custom Tabs, but I don't want the final step to be an App Picker... Jun 25 03:33:13 if A calls startActivityForResult to launch B, what happens when B finishes, is A recreated? Jun 25 03:36:17 usually not; but (if the code is handling the standard activity lifecyle events reasonably) it also usually should not matter either, is what I'm thinking... Jun 25 03:37:04 kbs: its a bluetooth driven app, so i would like to avoid the teardown and setup that's required Jun 25 03:37:23 but i agree, i might have to handle if it gets killed at any time Jun 25 03:39:52 the "usual" case tends to be rotations, but as you say - it's best to code against the lifecycle and hope the runtime does the optimal thing Jun 25 03:42:24 is the teardown/setup somehow tied into the lifetime of the activity instance? (haven't done any bluetooth stuff...) Jun 25 03:46:03 kbs: yea when dealing with bluetooth, there's this messy cloud that hangs over the context Jun 25 03:46:24 if you don't close it down properly, and give it enough time, you tend to have issues when trying to connect again Jun 25 03:47:25 ah well :) Jun 25 03:47:47 and i wish there were some builtin timeouts when working with bluetooth LE Jun 25 03:48:15 parco: this doesn't directly address your question, but check out our little library that handles activity results! http://levelmoney.github.io/velodrome/ Jun 25 03:48:48 treelzebub: commercial use free? Jun 25 03:49:01 free and open source Jun 25 03:49:08 ill check it out thanks Jun 25 03:56:33 treelzebub: seems useful, luckily i only have 2 activities, but it's bookmarked :) Jun 25 03:57:20 awesome! :) Jun 25 04:12:37 <_genuser_> hey devs Jun 25 04:21:41 <_genuser_> any one here doing TOGAF, or are you all just doing mobile dev and leaving architecture level stuff to someone else? Jun 25 04:31:02 or... doing mobile dev and just following common sense Jun 25 04:38:58 <_genuser_> common sense not being so common is problem number 1. Jun 25 04:39:07 <_genuser_> people wanting to pay more for certifications is anotehr point. Jun 25 04:49:04 I don't care, you were asking Jun 25 04:49:47 in my team I put common sense down their throats, no TOGAF , just kicks in the but :) Jun 25 05:17:59 i think the point he was trying to make is that there are more than two options between TOGAF and leaving architecture to someone else. I work for an app that has a dedicated backend team, but my personal projects usually depend on third-party APIs, so the architecture for those apps is my own. Jun 25 05:44:32 does the Preference class not exist anymore? I'm getting "cannot find symbol : class Preference Jun 25 05:46:32 oh never mind, i didn't import it Jun 25 06:13:52 where can i find the source for the default wifi settings app/widget/whatever it is Jun 25 06:15:48 in aosp Jun 25 06:17:18 thanks Jun 25 06:20:58 hi Jun 25 06:21:45 guys,should I ask question about android studio here too? Jun 25 06:28:39 guys, I have downloaded ndk and extracted it. but how I can force android studio to detect it? Jun 25 06:31:05 Does anyone have decent experience with AI apis and libraries like wit.ai/api.ai/chatbots.io and the like? Jun 25 06:38:32 I have {calendars:[Followed by array of calendars objects here here]}, How do I fetch this by gson? into array of objects? Jun 25 06:38:45 Type type = new TypeToken>(){}.getType(); <= I can't really do this and Jun 25 06:38:50 Calendars = new Gson().fromJson(response, type); Jun 25 06:38:56 as there is object even before the array Jun 25 06:38:58 what can I do? Jun 25 06:39:18 there is an object that holds array of calendars, and that object is known as calendars. Jun 25 07:09:06 hi. Anyone here familiar with nested fragments? Jun 25 07:09:15 I have a problem where the state of my nested fragment is not being restored correctly. Jun 25 07:15:36 guys,android studio still need to use experimental gradle for using ndk? Jun 25 07:16:10 it was added in version 1.3, still not completely in version 2.1? Jun 25 07:24:39 anyone up Jun 25 07:25:08 orbyt_: sup Jun 25 07:26:39 say you wanted to have little characters in your app (like a dog, cat etc.). They would need to have small animations (blinking, turning head). Would this better be done using Animated Vector Drawables or creating .gifs and using them? Jun 25 07:52:33 i am sharing a data with bluetooth and i am sending string sometimes but i am converting those byte[] to string and parsing it as jsonobject but i am getting this error. org.json.JSONException: Value image at image of type java.lang.String cannot be converted to boolean Jun 25 07:54:38 is it possible to add my own tile to the quick settings bar without rooting? Jun 25 07:59:37 s9iper1: clearly your deserializing is flawed. ie. trying to read a type into a variable of another type Jun 25 08:00:13 impulse: think so, yeah in marshmallow i believe Jun 25 08:00:41 xorgate: know any tutorials or what to search for? everything i'm finding is for the custom quick settings app. Jun 25 08:01:06 yes but this source code is opensource https://github.com/simonguest/btphototransfer-sample xorgate Jun 25 08:01:24 xorgate: never mind, might've just found one Jun 25 08:01:42 its sending image but i am trying to send string but its giving me that error Jun 25 08:02:20 xorgate, can you tell me what is this protected static final int HEADER_MSB = 0x10; and protected static final int HEADER_LSB = 0x55; Jun 25 08:02:48 they are just header bytes for some binary format, i would believe Jun 25 08:03:11 msb = most significant byte (the high part of a 2 byte word) Jun 25 08:03:53 0xaabb <-- 0xaa is hsb Jun 25 08:03:54 hey, does anyone have any experience of taking photo without preview using the camera 2 api? Jun 25 08:10:14 xorgate, yes they are header bytes but how does it know that this is an image byte and other one is string Jun 25 08:10:15 ? Jun 25 08:13:34 i would think bt just sends 'data' and not particularly a filetype Jun 25 08:14:33 s9iper1: i take it you were using this: https://github.com/simonguest/android-btxfr/blob/master/src/com/simonguest/btxfr/ClientThread.java ? Jun 25 08:14:55 create a stream, output some meta info (including header), send data Jun 25 08:15:41 yes using this file Jun 25 08:26:55 shahid_rb, Jun 25 08:27:14 s9iper1, here Jun 25 08:31:39 if anyone could take a look at http://stackoverflow.com/questions/38026495/how-to-save-and-restore-state-of-automatically-added-nested-fragment and help answer it, i'd be grateful Jun 25 09:53:42 Should I use libgdx or AndEngine for a simple 2D game? Jun 25 09:57:22 how can i run my tv app on my actual tv? Jun 25 10:48:18 adq, hithere Jun 25 10:49:44 so I have written another email to fabric.io - answer is again unclear - this time guy from support is linking some page from crashlytics where information about what is being collected are http://try.crashlytics.com/security/ Jun 25 10:51:24 problem is that PP of fabric - which I am using -> which means those I have agreed with has no relation to that security page or crashlytics at all Jun 25 10:52:37 hi bolovanos_ ¯\_(ツ)_/¯ Jun 25 11:10:17 How can I tell if my activity has been loaded from the backstack Jun 25 11:10:37 Cause if it has then all the content will still be there, but if it isn't then I need to load it again Jun 25 11:14:02 Wtf, my fragment doesn't call getSavedInstance when I return to it on the backstack Jun 25 11:14:18 But all the views have kept their state and stuff Jun 25 11:14:22 What does this mean Jun 25 11:14:32 Well not call getSavedInstance Jun 25 11:14:38 But there is no saved instance state Jun 25 11:21:46 Fragment#onSaveInstanceState is called along with Activity#onSaveInstanceState Jun 25 11:21:57 View state is separate from that Jun 25 11:22:22 Activity#onCreate is called when a new instance of your Activity is created. That's where you need to create your view hierarchy Jun 25 11:22:56 You should familiarize yourself with both their lifecycles Jun 25 11:24:31 AKK9, https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png Jun 25 11:25:29 SimonVT: Thanks, yeah I was understnding the fragment lifecycle wrong. I assumed that onStart only called when the fragment was created brand new, so I forced data refresh. But I stopped doing that and now everything is retained as expected. Jun 25 11:26:35 Now I set a doRefresh flag in onCreateView if there is no savedstate Jun 25 12:13:32 hey all, presently the alarm manager on android forces the interval to be of 1 minute minimum. Is there a way to change this functionality? Jun 25 12:14:32 Probably not. Consider using a Handler instead Jun 25 12:18:36 SimonVT: Changing the source code of AlarmManager somehow? Jun 25 12:19:22 SimonVT: The thing with hander is that it will terminate since the phone goes to sleep Jun 25 12:19:28 *handler Jun 25 12:20:26 Create a foreground service and hold a wakelock Jun 25 12:20:36 You can't change AlarmManager Jun 25 12:21:37 SimonVT: ok. I am presently doing that only. Can you recommend of some way of optimizing the battery? Jun 25 12:22:08 I am trying to take pictures through a camera every 10 seconds Jun 25 12:22:23 That's going to be horribly battery inefficient no matter what you do Jun 25 12:23:34 SimonVT: I know :/ I have already reduced the screen brightness and preview size to min. Jun 25 12:24:01 SimonVT: BTW is there a way to take picture without preview using the camera 2 api? Jun 25 12:24:08 I have no idea Jun 25 12:24:29 If your use case is taking an image every 10 seconds you might want to have a permanent power source for the device Jun 25 12:24:50 If you want the device to last a long time, reconsider your requirements Jun 25 12:25:28 Hmm. As for taking picture without preview? Jun 25 12:25:48 I have no idea how the camera api works Jun 25 12:26:08 neither has anyone else ;( Jun 25 12:26:11 oh okay thanks for all the help Jun 25 12:26:57 BTW is there a battery efficiency differency in Handler, scheduler and timer? Jun 25 12:40:13 Hi guys. In Android Studio whenever I run my apps, AS always use the last device I chose in device chooser, and then doesn't even show it again. And I didn't select this option in the device chooser. Jun 25 12:40:30 Has anyone encountered this? Jun 25 12:44:00 Nope. Jun 25 12:44:10 Do you have that setting enabled in your run configuration? Jun 25 12:50:55 why do I get "No resource identifier found for attribute" error for internal:layout_maxHeight and internal:layout_minHeight attributes with xmlns:internal="http://schemas.android.com/apk/prv/res/android Jun 25 12:56:15 What namespace is that? Jun 25 12:56:58 AlexBerdnikov: yep i get that too.. i just remove the cable / kill the emu so the window pops up again Jun 25 12:58:13 I created a "lib" folder in project below "app" in Android Studio and I cannot remove it anymore. What to do? Jun 25 12:58:59 Use your favorite OS to delete the folder from its file manager Jun 25 12:59:39 But you probably still have it referenced somewhere in your build files Jun 25 13:02:38 I tried deleting it from disk but it comes back Jun 25 13:02:41 Mavrik: no I don't. Jun 25 13:03:13 Its some kind of java library module folder Jun 25 13:03:21 that i accidently created Jun 25 13:03:39 xorgate: that's what I do as well, but it's really annoying and shouldn't work that way Jun 25 13:19:51 file a bug or vote for the current bug.. b.android.com Jun 25 13:39:59 Does anybody know some library for implementing contacts list with alphabetical scrollbar? Jun 25 13:48:05 I want to take up programming and make it my profession - problem is, I can't decide what I want to build. I am horrible about learning just to learn, I need a project to complete. I like the idea of Android development so I have been learning Java and Android SDK but only doing Android limits me a lot (although Java can carry through a lot and eve Jun 25 13:48:05 n Slack's actual messaging server is written in Java). I don't really appreciate the DOM and JavaScript, but it seems to be the future (or maybe...). What do you all suggest? I also looked into Python and it can build some web apps using Django/Flask and tie into MongoDB (much like MEAN stack with JS). Suggestions on what to master? Jun 25 13:53:21 mkinkles,I have the same prob it hard to think of a projects.:) Jun 25 13:53:32 oh sorry miss spell Jun 25 13:53:41 mkinkles Jun 25 13:53:47 mm Jun 25 13:58:49 So do you only have 1000poitns for achievements for good? so if i create a test achievement then 5 points are wasted just there? Jun 25 13:59:14 and giving more points to som achievements seem like a bad idea then you are wasting points... for what? Jun 25 14:00:17 Hey all Jun 25 14:30:33 Hello Jun 25 14:30:42 Has anybody run into an issue with using the android placepicker api Jun 25 14:31:15 When I launch the intent, I get an error message saying something about a signature verification error, then Google Play Services itself crashes Jun 25 14:32:09 Has anybody seen this? It's completely preventing me from doing anything and looks like a bug in the google api's themselves Jun 25 14:33:07 OR is there any way to get the stacktrace from the google play services crash Jun 25 14:33:11 Cos I get NOITHING Jun 25 14:33:20 Can't even catch it for some reason. Jun 25 14:33:26 Good job google Jun 25 14:37:35 Show your code, maybe someone who has worked with it can point you in the right direction Jun 25 14:38:38 Unfortunately I'm not doing anything different from listed in the place picker setup Jun 25 14:38:56 And make sure you're not filtering away any exceptions or logcat messages from place picker Jun 25 14:40:32 People always say they're not doing anything wrong.. It's rarely the case Jun 25 14:40:34 Hence showing code Jun 25 14:41:07 You'll likely have to create a test case if you're going to report it anyway Jun 25 14:41:28 Ah I didn't realise logcat filters out exceptions Jun 25 14:41:32 That's stupid Jun 25 14:41:47 Looks like it's to do with launching from a fragment rather than an activity Jun 25 14:41:51 By default AS only shows your app Jun 25 14:42:12 The logcat message IS a bug in Play Services, that's been verified. Crash is to do with this I guess Jun 25 14:43:07 startActivityForResult(builder.build(getActivity()), PLACE_PICKER_REQUEST); Jun 25 14:43:11 This is the launching call Jun 25 14:53:08 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference Jun 25 14:53:19 And this is the error that occurs when gps crashes Jun 25 14:55:48 Seems to be a known issue with no real resolution Jun 25 14:55:48 https://code.google.com/p/gmaps-api-issues/issues/detail?id=9071 Jun 25 15:01:08 This means that I literally cannot do what I wanted to do.. purely because google has fucked up Jun 25 15:01:09 Nice Jun 25 15:02:53 Anybody know of any alternatives to the google place picker Jun 25 15:38:11 Using android:theme="@style/Theme.AppCompat.NoActionBar" inside manifest > application to hide the application title/caption bar , but it still appearing in AndroidStudio design Jun 25 15:38:23 how to hide it in the design mode? Jun 25 15:38:55 choose that theme in the designer Jun 25 15:39:35 thanks pfn Jun 25 15:42:24 I'm having problems using virtual device on android studio 2.1 which widely talking about it on stackoverflow .. I read almost every thread about it and tried all the solutions there but still not able to get running on avd Jun 25 15:43:48 which environment variables are required as a "MUST" for android sdk and studio? Jun 25 15:43:56 So this is my first time experiencing this new android 6.0 permission model Jun 25 15:43:58 is it just me Jun 25 15:44:02 or is it a FUCKING NIGHTMARE Jun 25 15:44:02 also which paths are MUST Jun 25 15:44:29 The amount of boilerplate code you have to write is insane Jun 25 15:44:58 i havnt fiddled with any, but it does seem crazy Jun 25 15:45:13 It's incredibly, incredibly annoying Jun 25 15:45:27 If anybody has any design patterns to help with this Jun 25 15:45:45 let me know Jun 25 15:46:07 For example, what do I do if I want to request two permissions to launch one task? Jun 25 15:46:10 What goes in the callback? Jun 25 15:46:26 I don't want to repeat myself with (case x : task, case y: task) Jun 25 15:46:53 which one is obsolete ANDROID_SDK_HOME vs ANDROID_HOME? Jun 25 15:47:11 Why didn't google design it automatically? Why do I, the developer, have to pick up after their shit? Jun 25 15:47:37 What if I want to do two different things? Jun 25 15:47:39 Meron they designed it so you could ask for X when you needed X Jun 25 15:47:47 Except it doesn't work like that lol Jun 25 15:47:50 With this stupid callback model Jun 25 15:47:59 Say I request contacts in two different scenarios Jun 25 15:48:03 And want to return to each scenario Jun 25 15:48:10 I have to CHECK, every time, which scenario made the call Jun 25 15:48:12 to return to it Jun 25 15:48:14 fucking stupid Jun 25 15:48:29 It's just a nightmare of spaghettification Jun 25 15:49:23 There's additionally no tutorials or anything on it Jun 25 15:49:34 I can only assume because people took one look, and decided to set their SDK to 23 Jun 25 15:49:44 So they didn't have to deal with googles retarded design decisions Jun 25 15:49:59 Is GPGS using secure communication (https or TLS)? Jun 25 15:52:44 Meron: weird thing is, im not making any runtime permissions calls on an avd emulator targeting sdk23, and it doesnt ask, crash or doing fu^&all about it? Jun 25 15:53:00 emulator is also 23 Jun 25 15:53:46 Are you using any dangerous permissions?> Jun 25 15:53:52 You only need to runtime request those Jun 25 15:54:06 internet, internal read/write, billing Jun 25 15:55:10 Yeah, those are automatically granted Jun 25 15:55:16 But if you want to use, eg, location Jun 25 15:55:22 Prepare for the pain Jun 25 15:56:39 is there a list of the auto granted ones/bad permissions? Jun 25 15:59:11 Yeah Jun 25 15:59:21 https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous Jun 25 16:00:59 It's actually a nightmare Jun 25 16:01:04 I want to do a lot of location stuff Jun 25 16:01:12 And the though of having to wrap every call in about 30 lines of code Jun 25 16:01:20 Makes me want to quit android development and never look backl Jun 25 16:02:10 interesting, i also have write_external_storage, and it hasnt bitched once Jun 25 16:04:07 That is strange Jun 25 16:04:27 It should just crash if you're making a call to something that you don't have the permission granted for Jun 25 16:06:29 i think i only added it for some ad network sdk requirements Jun 25 16:06:53 maybe they're properly dealing with it? though i havnt seen any popup permissions requests on the emulator Jun 25 16:08:42 Possibly Jun 25 16:08:54 I don't know really Jun 25 16:09:07 It's good practice (lol) to do it with runtime permissions though Jun 25 16:09:21 I found a 3rd party annotations library for dealing with it Jun 25 16:09:23 gonna try that Jun 25 16:09:47 report back if its good (: Jun 25 16:10:13 google ruined android! Jun 25 16:11:31 they should have left it alone at gingerbread Jun 25 16:17:18 permissions aren't hard Jun 25 16:17:25 use something like rxpermissions Jun 25 16:17:56 Error while waiting for device: Timed out after 300seconds waiting for emulator to come online. Jun 25 16:18:07 I'm testing out PermissionsDispatcher Jun 25 16:18:46 also, using stuff like java8 and/or alternative languages makes permissions easy as well Jun 25 16:20:52 shmooz no way, froyo was where it at ! Jun 25 16:20:58 so my app won't work on N if I don't redo the permissions part? Jun 25 16:21:11 lol Jun 25 16:21:26 because it's working fine on Marshmallow Jun 25 16:22:00 g00s: gingerbread had everything correct for once Jun 25 16:22:18 i disliked GB, it looked like shit Jun 25 16:22:29 and HC was shit too, those were dark times Jun 25 16:22:50 to me lollipop was just as bad as Honeycomb Jun 25 16:23:21 they tried to make it like apple crap with Material Design Jun 25 16:23:39 and rudely removed my beloved black backgrounds Jun 25 16:24:06 Material design fucking sucked Jun 25 16:24:21 They just released a bunch of guidelines Jun 25 16:24:23 With no implementations Jun 25 16:24:30 And left it to the community to sort it out Jun 25 16:24:38 lazy Jun 25 16:25:31 everything that matters was already implemented Jun 25 16:25:58 except for fab and the collapsing toolbar stuff initially Jun 25 16:25:59 so then leave it alone, don't ruin it Jun 25 16:26:24 fabs are a horrible idea Jun 25 16:27:04 there are different places to put a fab; its only /horribe/ when it covers content Jun 25 16:27:29 if there's nothing behind it don't bother floating it Jun 25 16:28:09 its common though being bottom right, covering content so - yeah that isn't good Jun 25 16:28:14 covering content is no big deal if it can be hidden Jun 25 16:28:30 it just imlies user attention is not sophisticated enough to follow buttons in a app so we gotta float it above the app Jun 25 16:28:49 wrong Jun 25 16:28:58 convenience and ergonomics Jun 25 16:29:17 big part of the reason behind the resurgence in bottom tabs and sheets Jun 25 16:29:56 ok we realized again our thumb can reach the bottom part of the screen easier, whoopie Jun 25 16:30:00 pfn have you seen any popular apps with bottom nav? i only see google+ and photos, i wonder if thats stalling Jun 25 16:30:47 yelp Jun 25 16:32:50 I don't use that many apps regularly Jun 25 16:34:15 they are going to again attempt to replace apps with a single browser and web stuff I bet Jun 25 16:34:45 people are not downloading apps as much anymore Jun 25 16:36:39 shit, android:icon in preferences xml, even with appcompat version, does not tint icons correctly Jun 25 16:41:04 hello all :) Jun 25 16:41:28 I am working on android application that will use volley to send requests and receive responses from a web service Jun 25 16:42:22 yay? Jun 25 16:42:33 why do people use volley still Jun 25 16:43:25 shmooz, you kinda pulled that out of your ass Jun 25 16:43:26 I still have the google IO video where they introduce volley as the next big thing Jun 25 16:43:52 and recently a Google developer defending AsyncTask and brushing off Rx Jun 25 16:43:54 Are there any good frameworks for moving data from the computer to an app? I.e. making use of the computer keyboard, when it is required to type stuff and then move it to the app? Jun 25 16:43:57 that was 2013 or 2014 ? Jun 25 16:44:15 for now, I am just afraid of activity recreation, I know volley can cache GET requests so that when the activity is recreated, my volley request will get request like it has super-fast internet connection Jun 25 16:44:19 pfn: I follow a lot of android/mobile related news and podcasts, that's where I'm hearing this from Jun 25 16:44:33 CedricBeust haha :D when i posted that on /r/ i knew it would be controversial, glad to see it was discussed and not downvoted as much Jun 25 16:44:55 so it is no problem with GET , my problem comes with POST requests like signup for example, activity recreation might cause the user to sign up twice Jun 25 16:45:17 g00s , should I consider something else?? Jun 25 16:45:52 Mike11 i guess retrofit is the go-lib today Jun 25 16:46:02 *go-to lib Jun 25 16:46:19 g00s , volley solves many problems that can come up if I use AsyncTasks with HttpUrlConnection Jun 25 16:46:45 g00s, honestly I have never heard of it Jun 25 16:46:51 googling. . . Jun 25 16:47:55 https://www.youtube.com/watch?v=vYEXzx-TINc Jun 25 16:48:02 I just wanted to ask here if using volley inside a retained fragment to solve my issue related to POST requests sounds dumb, what do you guys think? Jun 25 16:48:53 What issue? Jun 25 16:49:11 You can use a headless fragment if you want. Jun 25 16:49:45 barq , the issue of the activity being recreated and the POST request being sent again Jun 25 16:50:19 Headless fragment or use a library Jun 25 16:52:41 barq , you mean a library like OTTO square? Jun 25 16:52:51 Otto Bus** Jun 25 16:53:16 like square retrofit/okhttp yes Jun 25 16:58:46 Mike11 volley is being phased out, use OkIo/OkHttp for this Jun 25 17:00:50 y'know, despite using permissionsdispatcher Jun 25 17:00:56 i'm not actually getting asked for any permissions Jun 25 17:01:03 my action just isn't activating Jun 25 17:03:19 thanks guys for your suggestions , barq, CedricBeust :) Jun 25 17:03:33 I am searching for them a little bit Jun 25 17:17:21 Has anybody used permissions dispatcher? Jun 25 17:17:31 Or knows a lot about runtime permissions Jun 25 17:17:45 Why is my application, (using permissions dispatcher) NOT asking for any permissions? Jun 25 17:17:52 It just autofails Jun 25 17:21:33 Does anybody know why? Jun 25 17:25:34 Meron I get auto granted without prompt, I wish I could understand it Jun 25 17:25:51 I dont know if the manifest is granting the permission, or what Jun 25 17:26:21 this whole android 6.0 permission scheme is driving me nuts and holding me back to release :( Jun 25 17:27:31 Lol same! Jun 25 17:27:37 It's a fucking shitshow Jun 25 17:27:45 And google should be ASHAMED they implemented it like this Jun 25 17:27:55 I see no reason I'm getting auto-deny Jun 25 17:28:12 Additionally there's very little help available anywhere Jun 25 17:30:49 man wtf is going on, in AS i keep doing ^R (Run) - the build completes but AS does not install / run the app Jun 25 17:30:57 does anyone use facebook messenger Jun 25 17:31:00 id say its works 80% of the time, 20% it does nothing Jun 25 17:31:08 yup, and I'm dealing with SDCArd permissions on android 6, which is very uncommon on most devices.. so help = 0% Jun 25 17:31:47 Are you using any third party libraries? Jun 25 17:32:20 well, I'm building with Unity engine, so that is a HUGE library indeed :) Jun 25 17:32:52 having to build jar files to import in unity and compile and test on android, the whole process is quite annoying Jun 25 17:33:38 OH, instant run thought the app didn't change, even though it did hmm Jun 25 17:33:50 I meant to deal with permissions Jun 25 17:33:56 Eg 'rxpermissions' 'permissionsdispatcher' Jun 25 17:35:16 Im doing it like described in here: https://developer.android.com/training/permissions/requesting.html Jun 25 17:38:08 instant run is so unreliable... Jun 25 17:38:20 they should take out hot swap Jun 25 17:38:47 hithere Jun 25 17:38:59 dunno how well they do the translation, but it probably fucks up line numbers hard Jun 25 17:39:07 what in app ads do you use in your app? Jun 25 17:39:07 cold swap is absolutely rock solid Jun 25 17:39:22 ads suck Jun 25 17:39:38 I don't use apps that have ads and don't put ads in my own apps :p Jun 25 17:41:12 yep, ads suck. and just as they are failing as monetization mechanism for web in general (through widespread usage of add blockers), they will eventually fail for mobile too Jun 25 17:41:50 they are not failing as a monetization mechanism for web Jun 25 17:42:00 ok - for those who probably missed the question " what in app ads do you use in your app? Jun 25 17:42:01 " Jun 25 17:42:01 if you read this, you'll see how bad the situation has gotten https://plus.google.com/+ArtemRussakovskii/posts/7jMWV7oCQpn Jun 25 17:42:31 if none - it is ok - but i need to help choose some Jun 25 17:42:33 pfn oh they most definitely are, publishers are in a panic, pay-walls are going up Jun 25 17:42:47 Hooray, fixed my issue Jun 25 17:42:48 even google knows this Jun 25 17:43:04 Turns out I had the stupid uses-permission in the wrong place. Clearly I've been away too long Jun 25 17:43:12 so philosophy no matter how elegant won't help Jun 25 17:43:15 there just hasn't been a frictionless micro-payment or alternative system to take its (ads) place yet Jun 25 17:43:26 @mz|alex I suggest using PermissionsDispatcher to handle permissions and not writing it yourself Jun 25 17:43:40 Unfortunately I'm still super stuck on this bug: Jun 25 17:43:42 g00s, newspapers and magazines were never free to begin with Jun 25 17:43:43 https://code.google.com/p/gmaps-api-issues/issues/detail?id=9071#makechanges Jun 25 17:43:50 ads alone were never sufficient Jun 25 17:43:54 It seems like googles maps/locations apis don't work on sony devices Jun 25 17:44:02 pfn nothing is ever really free, even if its a blog you still have to host it Jun 25 17:44:22 Google Maps works perfectly well on Sony devices. Jun 25 17:44:32 Also dafuq is with this shitshow of incompetence on this channel lately. Jun 25 17:44:46 g00s, publications that used to be ad supported to begin with (to self sufficiency) tend to be able to survive on Web ads Jun 25 17:44:47 Did anyone make a Slack bridge or something Jun 25 17:44:51 Mavrik we need you to straighten it out ! Jun 25 17:44:55 setFlame(false);, setHelpFullAnswers(true); Jun 25 17:45:01 Mavrik, that has always been the case here Jun 25 17:45:06 @Mavrik maybe read the thread m90 Jun 25 17:45:23 OR Jun 25 17:45:26 pfn, eh, never to this stage Jun 25 17:45:26 Come up with an answer Jun 25 17:45:28 If you're so smart Jun 25 17:45:29 Meron I'll check out the permissionDispatcher, I'm really new to android :( Jun 25 17:45:30 Maybe someone made IRC easier. Jun 25 17:45:33 thx Jun 25 17:45:50 > IRC is a difficult technology only for the elite Jun 25 17:46:13 g00s, never said anything about the cost of hosting Jun 25 17:46:32 and that changes nothing in relation to what I was saying earlier Jun 25 17:46:50 CPI is dropping quite a bit tho Jun 25 17:52:04 This the crash message you get when you try and launch PlacePicker Jun 25 17:52:04 Process: com.google.android.gms.ui, PID: 1098 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.location.places.ui.placepicker.v1.PlacePickerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object referen Jun 25 17:52:12 Google Play Services itself crashes Jun 25 17:52:36 there are several workarounds mentioned in the bug report you linked Jun 25 17:52:40 None of them work Jun 25 17:52:41 try reading Jun 25 17:52:42 Obviously Jun 25 17:52:45 Or I wouldn't be here Jun 25 17:52:55 And most of them are for MapViews Jun 25 17:53:12 Not the stupid placepicker intent Jun 25 17:56:03 * pfn shrugs Jun 25 17:56:58 Essentially it's broken and google ain't fixin it Jun 25 17:57:11 ain't? says accepted Jun 25 17:57:22 it's been a few months now Jun 25 18:00:59 Cry a river? Jun 25 18:03:01 Looks like that's literally the only option, yes Jun 25 18:03:23 Or get an alternative provider? Jun 25 18:03:42 I mean c'mon, you wasted to much energy complaining you could probably integrate OSM by now :P Jun 25 18:05:02 There aren't any alternatives to the place picker that I found Jun 25 18:05:17 I was actually considering OSM from the start lol Jun 25 18:05:22 then decided Google native would be easier Jun 25 18:05:24 What a mistake Jun 25 18:43:04 why android studio insists on download platform 23 while I'm intending to use API 16? Jun 25 18:44:00 There's no reason not to compile using the latest api Jun 25 18:44:21 Using e.g. appcompat requires it Jun 25 18:44:39 I've sdk platform and system-images already in place yet it keeps downloading new stuff even though I've added "disable.android.first.run=true" into idea.properties Jun 25 18:47:35 resistance is futile! Jun 25 18:49:44 you mean minsdk 16? Jun 25 18:50:01 what new stuff? Jun 25 18:53:11 anyone used azure? Jun 25 18:53:21 how does it compare to say, heroku? Jun 25 18:55:47 Ashiren: yes the minimum sdk 16 which is the same of the device i'm using to develop Jun 25 18:57:41 orbyt_, Azure is closer to AWS than Heroku Jun 25 18:58:09 this is really pissing me off now Jun 25 18:58:31 thelawyer: you compile and target to the newest sdk possible, minsdk is different Jun 25 18:58:49 DLSteve: ah yea, just did some more reading on it Jun 25 18:59:08 they even have machine learning and big data stuff in there, thats coo Jun 25 18:59:41 yup. Googles cloud platform has some cool stuff as well. Jun 25 19:01:36 Ashiren: I didn't even startup Android studio .. it starts damn downloading just once I create a new application with minimum sdk api 16 Jun 25 19:05:10 Ashiren: https://snag.gy/OqcwH9.jpg Jun 25 19:06:17 Ashiren: https://snag.gy/8QWze4.jpg Jun 25 19:07:31 apparently this is the way google try force stupid programmers to get things done for the forcefully Jun 25 19:07:41 no one need to know what the heck is going on Jun 25 19:07:50 min sdk, target sdk and build target are three different things Jun 25 19:09:25 Just because you're selecting 16 as the min sdk doesn't mean it's going to use that sdk for compiling Jun 25 19:11:04 SimonVT: ok but not using it since it's already there and I don't want to download API23? Jun 25 19:13:01 Why dont you want to compile against api23? Jun 25 19:14:11 ANyone from Bulgaria here? Jun 25 19:14:18 ive already switched to api24 Jun 25 19:14:32 That would be a good reason, yeah Jun 25 19:15:41 DLSteve: I have a large dislike for GCP Jun 25 19:16:36 orbyt_, To each their own. I have used both Azure and GCP and find the latter cheaper and easer to use. Jun 25 19:18:13 For me its all about online resources for the platform...SO, official docs, etc.. Jun 25 19:18:34 and, at least last time i tried, GCP had absolutely shit documentation Jun 25 19:18:59 which seems to be a trend.... Jun 25 19:19:05 :/ Jun 25 20:29:35 in my class I have a private List field and a getter for it. I ensure that this list is never null within the class itself using Collections.emptyList(). In the getter I create a defensive copy with the copy constructor a la new ArrayList<>(myField); should I only do this if the list is non-empty or does it not matter? Jun 25 20:30:22 grekkos: cant you use Collections.unmodifiableList Jun 25 20:30:35 oh instead of copying it? Jun 25 20:30:38 yes Jun 25 20:30:43 hmm that's not a bad idea Jun 25 20:31:02 it shouldn't be modified anyway Jun 25 20:31:23 and at least in openjdk new ArrayList<>() is just as cheap as emptyList, not sure about android though Jun 25 20:32:11 ah thanks Jun 25 20:32:24 I thought I was in the java channel for some reason but I'm glad you mentioned it Jun 25 20:32:28 haha Jun 25 20:33:11 although I thought on the openjdk new ArrayList<>() has an initial capacity to it where as on android it starts off at 0... but I think that might be a detail I shouldn't count on Jun 25 20:33:28 it was changed in a recent java version Jun 25 20:33:31 8 or 7 Jun 25 20:33:33 oh ok Jun 25 20:33:38 maybe 8 Jun 25 20:33:45 I think I was looking at 7 docs when I saw it Jun 25 20:33:49 and it actually shares the array. Jun 25 20:33:58 so it's even cheaper than just capacity 0. Jun 25 20:34:05 cool Jun 25 20:34:10 yeah I think that's what android does Jun 25 20:36:58 Note that Android doesn't use the same standard library Jun 25 20:37:07 So counting on implementation details of JVM 8 on Android is not wise :) Jun 25 20:43:33 yeah I was just pulling from what I saw in the android sources Jun 25 20:48:47 Those are better source yeah :) Jun 25 21:21:02 [orbyt, Lookit] erm Jun 25 21:21:27 [orbyt, Lookit] test Jun 25 21:21:33 [orbyt, Lookit] can any1 see this Jun 25 21:24:53 [orbyt, Lookit] Hello? Jun 25 21:26:14 [orbyt, Lookit] Anyone here Jun 25 21:26:24 [orbyt, Lookit] ? Jun 25 21:27:38 [orbyt, Lookit] Hello? Jun 25 21:27:57 * shmooz keeps quiet Jun 25 21:28:54 [orbyt, Lookit] Can u see this? I'm testing something Jun 25 21:31:04 Is it possible to set android:installLocation only for minSdkVersion of 23? Jun 25 21:31:22 [orbyt, Lookit] Holy shit it does work ha Jun 25 21:56:01 This is the weirdest thing I've seen, I'm targeting SDK 22 (to bypass the marshmellow new permission scheme) I put WRITE_EXTERNAL_STORAGE in the manifest, but still can't write to sd card (samsung S7 edge). Jun 25 21:56:43 getting UnauthorizedAccessException: Access to the path "........whatever......" is denied Jun 25 21:57:55 from what I read, the WRITE_EXTERNAL_STORAGE will only provide write/read access to Primary external storage, which is NOT the sd card on Samsung S7 edge Jun 25 21:58:17 is there any way to provide access to the "Secondary external storage" ? Jun 25 22:03:45 <_genuser_> one of the joys of android is the non-standard behavior from vendor to vendor and even from model to model on teh same vendor. Jun 25 22:04:02 <_genuser_> samsung will make the sdcard the primary on some devices and the internal storage the primary on others. Jun 25 22:04:26 <_genuser_> I think mostly tho, the internal is at least 8-16G and the primary lately. but it's samsung and it's android. Jun 25 22:04:29 <_genuser_> expect no standards. Jun 25 22:04:31 <_genuser_> lol. Jun 25 22:04:59 I just read a doc describing this so clearly.. I can't write on secondary storage outside the app's data directory Jun 25 22:05:13 I don't believe you can write wherever you like on the secondary storage, you have to use e.g. DIRECTORY_PICTURES Jun 25 22:05:41 SimonVT every single path I tried from the API points to a non-SD card location Jun 25 22:06:04 <_genuser_> and to hear one of the dev on teh android team. She was harping on about how it will give greater flexibility in how you can add more space to your device. Jun 25 22:06:30 <_genuser_> and I was reading this thinking I can't believe she's sounding like they did the opposite of what they said they wanted. Jun 25 22:06:40 <_genuser_> and then I read the comments... I wasn't the only one with that thought. Jun 25 22:06:41 hahaha Jun 25 22:07:04 mz|alex, you can't just opt out from permissions and still expect OS to allow you to shit all over the SD card and read other apps private data :P Jun 25 22:07:28 _genuser_, oh my god Jun 25 22:07:34 The horrors. Jun 25 22:07:46 What would happen if you would have to write an app for those funny thing called computers Jun 25 22:07:57 the only and magic solution for this was the Adoptable Storage mechanism, which was disabled from S7, but can be enabled with a command line formatting Jun 25 22:07:59 That could have more than 5 storage devices at once at any point! O.o Jun 25 22:08:04 Those had to be wizards! Jun 25 22:08:30 <_genuser_> originally an app could write private data to it's private folder (internal) and the external SD card could allow for shared space where anybody could dump whatever. Jun 25 22:08:37 mz|alex, ask user to point you where the files are via SAF dialog Jun 25 22:08:45 That will automatically also grant you permissions to there. Jun 25 22:08:56 And display all possible mounted devices including OTA drives Jun 25 22:08:57 but when enabling adoptable storage, everything starts to be weird on S7.. space reporting tools fail, usb shows files only if you disconnect/reconnect Jun 25 22:09:06 mz|alex: Even the APIs that return multiple paths, e.g. getExternalFilesDirs? Jun 25 22:09:13 <_genuser_> Mavrik: I don't know what you're intending with your comment. But on a computer the OS never restricts you to only write to one drive and completely render everything else you add as "useless storage" Jun 25 22:09:16 Those were added to support multiple external storages Jun 25 22:09:32 _genuser_, riiiight :) Jun 25 22:09:36 SimonVT I was just reading about that multiple paths, the first one is the primary, and everything else is considered secondary, right? Jun 25 22:09:55 <_genuser_> Mavrik: ok, so I see you're agreeing with what I was saying. phew. I wasn't sure what you were saying... :) Jun 25 22:10:01 SimonVT, thing is, you never get a free write permission on the FAT drives since 4.4 Jun 25 22:10:18 it took me quite a long time to understand all this hell on SDK 23 and Samsung S7 storage handling. Jun 25 22:10:28 SAF is pretty much the only way that OS will grant you write permission there Jun 25 22:10:33 <_genuser_> yeah I remember 4 is where the change happened to make you buy expensive external SD cards only to realize that's just useless. Jun 25 22:10:34 Since API support was added :p Jun 25 22:10:50 But yeah, they pretty much regretted letting apps do whatever on external storage Jun 25 22:10:58 what is SAF ? Jun 25 22:11:00 _genuser_, we support it just fine and works well on devices I own Jun 25 22:11:08 Didn't make the same mistake with secondary external storages Jun 25 22:11:14 With added bonus that random adware can't read your personal data there. Jun 25 22:11:38 <_genuser_> Mavrik: you support what? think I missed something. Jun 25 22:12:00 Reading and writing to your socalled "useless" storage. Jun 25 22:12:28 <_genuser_> Mavrik: using SAF? Jun 25 22:12:39 SimonVT, the only real complaint form my side is that they let people ship phones with adopted storage disabled Jun 25 22:12:41 _genuser_, yes. Jun 25 22:12:54 Mavrik indeed! that sucks Jun 25 22:13:09 <_genuser_> Mavrik: didn't you say the user _HAS_ to navigate there first? Jun 25 22:13:17 And that they still let people ship apps with targetSdk < 23 Jun 25 22:13:23 _genuser_, yes. Jun 25 22:13:38 Unless you're inside your environment Jun 25 22:13:52 Or you asked for permission to access the media directories. Jun 25 22:13:53 <_genuser_> Mavrik: I can see how that's a good compromise between declaring all external useless and letting users use it. But not all users are sophisticated enough to even be able to do that. Jun 25 22:14:14 So what? Jun 25 22:14:25 <_genuser_> so it might still restrict you as a dev. Jun 25 22:14:31 That's like saying devices shouldn't be secure because people are morons. Jun 25 22:14:34 <_genuser_> unless you spend time/money to educate your end user. Jun 25 22:14:44 Hey everyone! im trying to make an android widget of for a timeline and only have a week to do it. what's the fastest way to make this widget? i see that there are lots of prototyping tools, but im not sure what to use or how they'd help? Jun 25 22:14:56 Expecting the user to know basics of how to operate a mobile computer is not unreasonable. Jun 25 22:15:05 <_genuser_> but they won't. Jun 25 22:15:15 Too bad for them. Jun 25 22:15:16 <_genuser_> there's still people who know what a c:\ is on windows. Jun 25 22:15:25 <_genuser_> sure, too bad for them. but too bad for you too, as a dev. Jun 25 22:15:36 there's people that press F and then 5 when you tell them to press F5 Jun 25 22:15:38 Nope. Jun 25 22:15:50 <_genuser_> lol, right on f then 5 type stuff. Jun 25 22:16:18 I got that over the phone, I was so angry when the guy finally told me he only reads c:\>f5 Jun 25 22:16:19 <_genuser_> I don't like that android team decided that external storage would become an addendum to the android basic app storage ONLY. Jun 25 22:16:36 <_genuser_> so it's sandboxed to be able to be used as android storage. Jun 25 22:16:55 But they didn't. Jun 25 22:16:59 <_genuser_> when I plug in external extra storage, I _MAY_ want it to just be that. EXTRA storage. Jun 25 22:16:59 It can be merged with main storage. Jun 25 22:17:36 <_genuser_> I"d much rather have seen something where they said you can consider it as "safe storgage" where apps can only write to with permission, or "extra dumping ground". Jun 25 22:17:59 <_genuser_> but for the most part, I guess I don't care about this specific point that much. Jun 25 22:18:07 Mavrik: Maybe some day they'll restrict target sdk to n-2 or something Jun 25 22:18:29 Yeah, or just do the Apple thing and stop accepting updates with older target SDKs. Jun 25 22:18:33 _genuser, a limited shell, or chroot could easily limit your ability to write on arbitrary devices, on any Linux machine. Jun 25 22:18:45 At least if they don't want to be a security joke anymore. Jun 25 22:19:14 <_genuser_> most of the apps I write don't end up needing that much space, so I suppose I don't really have that much of a beef with it. Jun 25 22:19:24 _genuser_, hm, I'm not sure of your point Jun 25 22:19:33 Apps can write to SD card to their own files / cache dir without permissions. Jun 25 22:19:41 At least you can't downgrade target sdk below 23 Jun 25 22:19:46 They can also access other directories via standard OS choose file / directory dialog. Jun 25 22:19:55 Or user can adopt all the storage which transparently merges with main storage. Jun 25 22:20:33 (With latter sadly not being available on all phones due to OEM politics.) Jun 25 22:21:52 <_genuser_> Mavrik: my point was that it has caused me any specific problems app-wise, so my "philosophical" point is not really that important. What I think should have been vs. what is, that whole conversation is not that important to have. Jun 25 22:22:00 <_genuser_> Mavrik: * has NOT caused me Jun 25 23:40:36 Hello Jun 25 23:40:42 I am Japanese Jun 25 23:40:47 Morning! Jun 25 23:52:22 hello guys Jun 26 00:24:13 haha, i like the dog paw icon for 'dogfooding' http://www.androidpolice.com/2016/06/24/exclusive-google-is-building-a-live-support-app-with-screen-sharing-for-nexus-devices/ Jun 26 00:24:22 i must add this to my betas immediately Jun 26 01:29:05 Is it possible to set android:installLocation only for minSdkVersion of 23? Jun 26 02:04:24 hej Jun 26 02:05:02 somebody pls help me Jun 26 02:05:36 LunarEclipse120: u around? Jun 26 02:05:49 wonderingirl_: Yes. Jun 26 02:06:13 well my redmi has turned into a brick while i was installing Jun 26 02:06:22 how do i revive it Jun 26 02:06:24 wonderingirl_: Is this an app development problem? Jun 26 02:06:27 Installing what? Jun 26 02:06:37 the operating system from their website Jun 26 02:06:56 This is for #android-root and why were yu doing that? Jun 26 02:07:19 i mean, remermber the incoming call quality issue i was telling u about a whole ago Jun 26 02:07:30 i finally got some time to fix it but installing their official one Jun 26 02:07:46 but i think I may have accidentally unplugged the USB from my notepad Jun 26 02:07:51 RIP. Jun 26 02:07:53 wonderingirl_: #android-root Jun 26 02:08:07 whats that Jun 26 02:08:31 is there anyway to send/recv audio by making an actual phone call? Jun 26 02:08:58 what is android root Jun 26 02:10:24 can you tell me what you mean by that Jun 26 02:11:00 LunarEclipse120: are you gonna help me or not Jun 26 02:11:10 wonderingirl_: Go to that channel. Jun 26 02:11:18 are you there as well? Jun 26 02:11:24 I dont know anybody there Jun 26 02:11:39 wonderingirl_: Yes this is not a dev question. Jun 26 02:11:58 who cares, you are here. What difference does it make you stickler lol Jun 26 02:12:06 wonderingirl_: It is just the way it is. Jun 26 02:12:10 Just go there. Jun 26 02:12:16 Otherwise people get angry. Jun 26 02:12:26 I am afraid of going to unknown places lol Jun 26 02:12:55 It isn't unknown. Jun 26 02:13:23 "Root? Modded ROMs? Head to #android-root || App development questions? See #android-dev || Not talking Android? Head to #android-offtopic" **** ENDING LOGGING AT Sun Jun 26 02:59:58 2016