**** BEGIN LOGGING AT Thu May 12 02:59:58 2016 May 12 03:11:54 Scarecr0w, sounds margin to me May 12 03:18:57 need some help. I rooted my nexus 5. I am currently using android 6.0.1 but I kept on receiving the 6.0.1 update notification and everytime I try to update it I got the invalid signature error May 12 03:20:09 horny-sama: #android-root May 12 03:21:27 FTC Investigating Android Patching Practices May 12 03:21:35 https://www.schneier.com/blog/archives/2016/05/ftc_investigati.html?utm_source=twitterfeed&utm_medium=twitter May 12 03:21:47 bleh , sorry gross url May 12 03:26:54 g00s, what URL's aren't May 12 03:26:55 :d May 12 05:55:16 hello May 12 05:58:50 hi May 12 05:59:02 its kinda quiet here later at night May 12 06:02:11 its morning May 12 06:02:16 is there a better Android Studio tutorial than the official one? May 12 06:02:49 I find it annoying that it's not exactly up to date with the latest android studio May 12 06:11:15 raj : https://www.youtube.com/watch?v=dGyWkDqmjIA May 12 07:21:32 am I logged in? May 12 07:21:40 yep, sorry for message May 12 07:21:47 o.O May 12 07:25:25 question / puzzle for ya May 12 07:25:55 fragment has listener X, then my executor get WeakReference of that X May 12 07:25:59 i get rid of the fragment May 12 07:26:40 will fragment be GCd executor has WeakReference of X May 12 07:26:52 becuase X has implicit reference to fragment May 12 07:27:03 and thus my understanding is that fragment wont be GCd May 12 07:27:40 but still nothing strongly holds (except for fragment which is not(?) GCd) X May 12 07:28:17 why not check.. May 12 07:28:29 its lazier to ask you May 12 07:33:32 anyone using c/c++ for android dev? May 12 07:37:13 Twirl: a lot of people are. May 12 07:40:55 loke: alright May 12 07:41:16 ok checked May 12 07:41:29 fragment and X will be GCd, if im correct May 12 07:50:14 Hi! May 12 07:50:34 Is there a good free solution to turn a HTML5 website into an Android (+iOS) app, easily? May 12 07:50:52 I've found gonative.io, but it's ~ 600$ license per app May 12 07:52:13 fiveflowerzz, Did you hear about phonegap? May 12 07:53:32 no May 12 07:53:51 I know there are loooots of companies who do that : website -> android & iOs app May 12 07:53:58 but I don't know which one to choose May 12 07:54:26 never used it but yout write html5+js for phonegap May 12 07:55:05 What I'm looking for is something for which you just give the URL of your website and you have nothing to do ;) May 12 07:55:14 gonative.io seems to be like that May 12 07:55:16 but expensive May 12 08:08:19 fiveflowerzz: maybe a simple app with fullscreen WebView with provided URL May 12 08:09:34 hmmm May 12 08:18:05 nice business, all they do is redistribute the same webview app with a different url May 12 08:20:47 shmooz, :-D May 12 08:21:08 Ashiren: how to do that? May 12 08:23:06 if I want to implement ssl sockets in my app, would I actually use SSLSocket, or does Socket use ssl, too? I hear mixed things that by default Socket uses SSL Can anyone confirm? May 12 08:26:10 What is a good way to hold data in an Application in a way that the data will be recoverable if the process is killed? Would holding the data as a field in the Application be an option? I would think not, since the Application does not have a lifecycle or mechanism to restore such as onSavedInstanceState. It has onTrimMemory, but nothing complementary, when May 12 08:26:10 the Application is recreated. May 12 08:38:56 barq: well SharedPreferences or file or database May 12 08:46:38 hi, i have some problem with retrofit, request in POST site api.mysite.com , the backend developer wants a variable "d" and json May 12 08:53:49 he wants the D May 12 08:53:58 or she? May 12 08:54:31 so? the json is just string isnt it May 12 08:58:39 Are you familiar with python, JSON is a dictionary witht he exact same syntax May 12 08:58:45 iirc May 12 09:00:05 yea May 12 09:00:07 "wants the D" May 12 09:00:13 thought it's family channel May 12 09:00:30 that's #android May 12 09:02:36 oh my May 12 09:03:27 Guys, for my app I need a few stuff. First a way to sign up/in, for this I was thinking facebook primarily. Second I need a way for two users to chat with eachother in some way. What's the easiest way to fix this functionality? May 12 09:04:09 probably the easier way to chat is firebase May 12 09:04:17 if you have money May 12 09:04:19 ;) May 12 09:05:03 Let's say I don't May 12 09:05:25 like messeging up / May 12 09:05:30 google it up ;) May 12 09:05:46 there are few solutions May 12 09:05:49 and you need server May 12 09:06:27 I can't find if facebook messenger has an API, does it not? May 12 09:06:39 it has some May 12 09:06:42 afaik May 12 09:07:16 "some" that sounds like fun... May 12 09:07:43 How can you "fix" something you don't have? May 12 09:08:01 fast May 12 09:11:06 Anyone aware if/how I can playback/record audio via internal speaker/mic if a compliant USB audio device is plugged in? If this is the case, AudioTrack and AudioRecord will use it by default. May 12 10:13:12 In android studio, is it possible to run gradle task on build or file change? I have a findbugs and checkstyle task I want to run automatically as I sometimes forget. May 12 10:16:15 safinn: You don't want to do that. Gradle is horrifyingly slow. May 12 10:16:36 safinn: For checkstyle, the best is to use an IDEA style that matches what you need. If not, there are also special plugins. May 12 10:18:27 ok thats sounds ok, thanks loke May 12 10:32:41 Hi. I'm trying to get the x86 AVD to work, but after it starts up, I get a dialog saying "Unfortunately, Launcher3 has stopped", and my app doesn't start May 12 10:33:28 I've seen this posted in some places around the web lately, but so far no useful responses. does anybody have any ideas where to start looking? May 12 10:54:45 your_mirror: you May 12 10:55:23 ondroed: me May 12 11:22:28 Is anyone have prob log into google play developer console? May 12 11:24:02 I don't May 12 11:25:07 i log in get just a white sceen. May 12 11:25:11 odd May 12 11:26:06 Possibly check your network or try a different browser May 12 11:26:21 my network is working. May 12 11:26:37 oh wait min i check for a update May 12 11:26:41 brb May 12 11:37:45 perlsyntax: nah works fine May 12 11:37:50 perlsyntax: aws console works good too May 12 11:38:18 it don't work with the safric for the mac but work with chome. May 12 11:38:23 odd May 12 11:38:39 blah May 12 11:39:07 wyoung,Very odd i think May 12 11:39:20 *shrugs* the only use for a mac I have is to stop papers on my desk from blowing away when I open the window May 12 11:40:09 wyoung: ;-) May 12 11:40:22 I usually find that purchasing an intel laptop that isn't a mac is 1/3 cheaper. If I spend the amount on a laptop that a mac is worth I get an awesome gaming box May 12 11:40:24 why is onOptionsItemSelected on the activity called before the child fragments? May 12 11:41:07 wyoung,I went to mac i never go back to linux or windows:) May 12 11:41:26 perlsyntax: then you don't know any better :) May 12 11:41:50 You are out of touch May 12 11:41:55 wyoung,hahaha funny May 12 11:42:27 wyoung,Well i think use a mac over windows is alot easy for me.:) May 12 11:42:59 Definitly, but compared with linux, well May 12 11:43:48 I did like linux to but there was so much to pick from:) May 12 11:44:55 Ubuntu is all you need May 12 11:44:59 wyoung,Sorry i didn't mean to make linux look bad May 12 11:45:15 :) May 12 11:45:24 just buy a mac May 12 11:45:30 enhance your existence May 12 11:45:48 Odaym,What mac you get?:) May 12 11:46:00 mbp at home and pro at work May 12 11:46:23 Odaym,I got a imac 5k and macbook pro:) May 12 11:46:55 what's 5k May 12 11:47:11 Odaym,Imac May 12 11:47:25 even if I had the money to buy a Mac, I would prefer a PC. sorry. May 12 11:47:36 wish the work we did on these machines was a quarter as valuable as much as they cost May 12 11:47:51 Odaym: 5k is the cost May 12 11:47:54 I never buy imac 5k ssd are to small i think. May 12 11:47:56 wow May 12 11:48:03 no way 5k May 12 11:48:15 you're nuts May 12 11:48:26 macbook pro for $1,300.....OK acceptable May 12 11:48:40 Odaym,I was think put my project on gib so it save some space. May 12 11:48:49 communication breakdown May 12 11:48:49 github May 12 11:49:09 versioning control to save space? haha May 12 11:49:23 its just source May 12 11:49:52 bitbucket there can be private:) May 12 11:50:23 what are we even talking about anymore May 12 11:50:29 sorry May 12 11:50:44 I got the new unlimited repos on Github, because of the Student developer deal or something that I got some months ago May 12 11:50:45 so lucky May 12 11:50:59 cool May 12 11:51:29 I wish google i/o would get here. May 12 11:52:11 Odaym,Did you get ssd in the macbok pro? May 12 11:52:28 Sorry i talk to much. May 12 12:10:32 haha May 12 12:10:35 its fine if you talk man May 12 12:10:45 no ssd, i only have 120GB hard drive May 12 12:11:01 didnt used to get paid a lot back then May 12 12:16:03 Odaym,Cool, i see but i know macbook pro you can upgrade to ssd only no latter then mid 2012 i think. May 12 12:16:23 the machine is mid 2014 May 12 12:19:17 17' sceen May 12 12:19:50 Man i tired lol May 12 12:21:34 Odaym,i hope i get app ready for testing.But i got alot to learn about android.:) May 12 12:21:48 but you've been coming here for a long time now I remember May 12 12:22:37 Odaym,Yes but i take me for ever to learn new things. May 12 12:23:23 yea same May 12 12:32:30 Odaym, i thought i was the only one.:) May 12 12:33:07 we all think we're the only one :P when we're good at something and when we're bad at something, we think we're the only one May 12 12:35:41 the true. May 12 12:35:43 that May 12 12:38:10 where you from? May 12 12:40:07 usa May 12 12:40:39 and you May 12 12:43:38 Odaym, wi usa May 12 12:50:52 your english seems poor for someone who's from the us May 12 12:51:18 lebanon here May 12 12:57:10 odayym,Long story May 12 12:59:33 long story, short life May 12 12:59:36 ;D May 12 13:03:05 slow learn new things that all.:) May 12 13:06:06 Odaym,You have any app in google play.Just asking becuase cloud test lab show up and i was told it was going to cost some money for the google play console? May 12 13:06:37 I have apps there yea but I haven't tried cloud yet May 12 13:08:17 Odaym,I email google and told me that. May 12 13:09:01 Odaym,And i thought the cloud test lab be free in google developer console that where i lost. May 12 13:12:32 oh well May 12 13:23:02 why when i call myview.clearanimation() doesn't work? May 12 13:23:20 it starts correctly with myview.startAnimation(myanim) May 12 13:23:27 but i cant stop it May 12 13:29:50 NVM i solved May 12 13:33:08 Android studio makes me sad. So many tiny bugs :( May 12 13:35:07 where? May 12 13:35:15 it's stable as fuck May 12 13:36:56 Haha May 12 13:38:16 Cramped up my layout when I tested my app. I mean the .xml was all fucked up in wysiwyg. And when I create a new activity I have to change the view of my project-explorer or And-stud doesn't recognize my package May 12 13:55:55 If I have a listview in my main activity and I want to click a button that take me to another activity and there enter some info and click "add to list"-button. Then return to the activity before with the list. I don't know where to start really... May 12 13:57:24 onActivityResult in first activity, check what was returned and if it is - add it to list May 12 13:57:30 and shit May 12 14:02:57 Coolcool! May 12 15:20:39 Guys, is there any reason why a navigation drawer would be laggy opening and closing? May 12 15:23:39 RubenADSR hm, i see that in my app May 12 15:24:57 g00s: really? I thought it was just me doing something stupid May 12 15:29:25 When would I use an alarm instead of a handler? In the docs it says for timing operations such as ticks, timeouts handler is better but not sure what that means. May 12 15:31:36 g00s: I've managed to fix it... It's stupid May 12 15:42:24 Is it possible to not ask for permissions at runtime in android 6.0 or is that how it must always be done on 6.0 and onwards? May 12 15:49:29 Is there a tool/linrary that can create/contains all the text styles and colors in material designs May 12 15:55:34 Is it normal to need multidex just due to the fact that my project is using Dagger? May 12 15:55:50 probably not May 12 15:56:59 hmmm. didnt think so. I have a barebones project I have just started (only has about a dozen methods of my own) and I am getting build errors: Unable to execute dex: method ID not in [0, 0xffff]: 65536. May 12 15:57:12 I only have Dagger2 and butterknife as libs May 12 15:57:27 truckcrash: That’s very surprising, do you have a lot of dependencies? May 12 15:57:42 there's a list of packages when it fails May 12 15:57:56 ok, where is that? May 12 15:58:12 jaana, just the two listed there May 12 15:58:22 Yikes how did you end up pullling so many methods? May 12 15:58:37 no idea. May 12 15:58:49 i am still trying to learn dagger, so it is all quite new to me May 12 15:58:50 There’s a gradle plug-in to count methods which will give you a break down per package May 12 15:59:12 ok. i'll have to check that out. do you know the name? May 12 15:59:46 There’s also a command line tool, even easier: https://github.com/mihaip/dex-method-counts May 12 16:00:26 ok great. I'll have to look into it tonight (at work now), but I will give it a go and see what I can find. Thanks! May 12 16:00:35 https://github.com/KeepSafe/dexcount-gradle-plugin May 12 16:00:37 Report back, I’m curious to understand what happened May 12 16:00:40 dx spits out package-method-counts when it hits the limit... May 12 16:00:48 probably shitty gradle as usual, swallowing up errors May 12 16:00:59 jaana, will do May 12 16:01:09 thanks everyone May 12 16:01:16 Yeah that’s why I pointed to the command line tool instead of the gradle plug-in, I try to limit my interactions with gradle to the bare minimum May 12 16:02:00 yeah the only reason i'd use the plugin is for the UI for transparency or documentation. May 12 16:04:41 anyone switch to 23.4.0 support libraries yet? May 12 16:08:37 RubenADSR ah ok , thanks - mine got more janky when i started using vector drawables May 12 16:08:51 but i don't worry about these things May 12 16:10:01 truckcrash also http://www.classyshark.com May 12 16:10:14 works very nice, gives some charts, etc May 12 16:11:21 Hey guys, anyone knows how to show multiple items in the same row with recyclerview? May 12 16:11:33 as in 2 items / row May 12 16:11:49 use a grid layout manager? May 12 16:12:27 is it really necessary? i don't need anything complex just 2 items / row May 12 16:13:04 that would be a grid May 12 16:15:18 alright May 12 16:16:46 Ah yes g00s is right, ClassyShark is great May 12 16:18:17 hi, android.R.layout.simple_spinner_dropdown_item is default layout for spinner in dropdown mode. if i use dialog mode which are default layout? May 12 16:20:08 whatup whatup May 12 16:22:30 g00s, Thanks, but if my build is failing, i would not even have an apk to use with classyshark, no? May 12 16:37:08 hmm. anyone know if closing an app while an IntentService is currently processing will never deliver the onDestroy event? May 12 16:39:08 dsardari you can't rely on onDestroy May 12 16:39:30 that gets called when things are "orderly", not when process is killed, etc May 12 16:41:10 yeah, that's what i figured. May 12 16:58:18 dsardari one of those annoying things really; since you don't always get a chance to clean up, if your service mutates state you have to be pessimistic and sacrifice performance for reliability May 12 16:59:06 bbl May 12 17:08:16 hi i have this error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found May 12 17:08:26 i'm using retrofit 2 May 12 17:09:23 you're connecting to an unrecognized https May 12 17:09:28 google answers that easily May 12 17:16:34 for some reason when i do Manifest.permission.READ_CONTACTS it can't find READ_CONTACTS May 12 17:16:46 (compiler error) May 12 17:16:57 is there something that needs to be done for that to work? May 12 17:17:14 google uses it in their documentation: http://developer.android.com/training/permissions/requesting.html May 12 17:17:40 No issue finding it here May 12 17:18:28 yeah, it's really odd May 12 17:18:36 what is your minimum sdk? May 12 17:18:47 i'm wondering if that was added after 17 May 12 17:18:55 https://developer.android.com/reference/android/Manifest.permission.html#READ_CONTACTS May 12 17:18:58 hey guys, i'm using this infamous RoundedImageView class https://goo.gl/642dmR May 12 17:19:14 and it's stretching the image and it looks really bad, is there a way to fix this? May 12 17:19:15 agh, its 19 May 12 17:19:17 SimonVT: thanks May 12 17:19:33 No, it's 1 May 12 17:20:15 it's a gist btw, didn't want to paste a long-ass link here May 12 17:23:19 also, it would be nice to have a square with rounded edges instead of a circle May 12 17:29:54 g00s: I rolled my own version of IntentService. Seems to be okay for a temporary workaround. May 12 17:33:03 alright, nvm May 12 17:38:24 i have a ghost button that on press I'd like to fill the button in with color May 12 17:38:28 how should i do that May 12 17:38:52 set the buttons background color in the onClick? May 12 17:39:39 Is there a way to find out if the Cardview is the last one? So i can create more? More like Infinite scrolling in web designing/development.. May 12 17:40:07 you get the item index in your adapter May 12 17:43:56 s73v3r: no fill it in like a ripple affect May 12 17:44:19 yourname3: Check this link out - https://guides.codepath.com/android/Endless-Scrolling-with-AdapterViews-and-RecyclerView May 12 17:44:33 well, you can either write an animation to do it, or check out the ripple drawable May 12 17:45:08 set the background to something like selectableItemBackground, and it should do the ripple for you May 12 17:52:20 s73v3r: well i have a ripple set as my buttons background:http://prntscr.com/b39ivy May 12 17:52:22 http://prntscr.com/b39ivy May 12 17:52:30 issue is the ripple is translucent May 12 17:52:44 what’s your colorPrimary May 12 17:54:16 orange color May 12 17:54:20 not transparent at all May 12 17:55:00 what about the button itself? May 12 17:55:59 its another drawable, a shape, with of a slightly transparent orange May 12 17:56:10 show the xml for the button and the drawable May 12 17:56:35 and what happens if you change the drawable’s color to a non-transparent color? May 12 17:58:05 http://paste.ee/p/ZzDph May 12 17:58:13 um lemme try May 12 17:58:55 oh the button would be full opaque May 12 17:59:07 so the ripple wouldnt work at all in that situation May 12 17:59:28 i think you need selectableItemBackground in there somewhere May 12 18:00:20 i mean i have the ripple working and all, its just the ripple is also transparent, would be cool if it was fully opaque May 12 18:00:26 but where would that go anyway May 12 18:00:42 it would fit the shape of the button, I believe May 12 18:02:02 crashes the app lol May 12 18:02:21 hmm w\e will look into it later May 12 18:11:56 anyone know how to set up DBFlow for Robolectric tests? I get a NPE when trying to run my first test May 12 18:16:55 SimonVT: https://bpaste.net/show/3110cba55a7f should that make the READ_CONTACTS available? May 12 18:18:39 Looks fine May 12 18:18:57 still says it cannot resolve the symbol May 12 18:19:19 Has been there since api level 1 May 12 18:20:07 Error:(119, 36) error: cannot find symbol variable READ_CONTACTS May 12 18:21:34 Not sure what to tell you May 12 18:21:37 Create a failing test case? May 12 18:24:39 I really, really wish that the R package was always built, depsite the build failing May 12 18:25:44 this whole “Error: Package R does not exist” bullshit is infuriating May 12 18:26:21 It's only not built if there are errors in your resources May 12 18:26:30 I didn’t touch the resourced May 12 18:26:32 resources May 12 18:26:37 Should it spit out a partial R file? You'd still get code errors, just less May 12 18:27:02 I’m saying there is no error with the resources May 12 18:27:18 as they have not been modified since it was successfully building May 12 18:27:21 R is generated before your code is compiled May 12 18:27:55 and if it can’t find R, then you get compile errors May 12 18:29:25 So ignore them until you figure out why R is not being generated May 12 18:29:44 but there is no other error, and once again, none of the resource files has been touched May 12 18:30:24 and just now, quitting and restarting Studio resulted in a successful build May 12 18:30:29 Code errors does not stop R from being built May 12 18:30:49 i don’t know if I would go that far May 12 18:30:57 lots of stuff apparently stops R from being built May 12 18:31:44 It'd be some weird circular dependency if your missing imports, or whatever, stopped R from being build May 12 18:32:51 now it works May 12 18:33:00 quitting and restarting studio fixed it May 12 18:35:29 oreilly rxjava book is 50% off today May 12 18:35:48 orly May 12 18:40:42 g00s: Do you remember my weird recyclerview issue from yesterday? May 12 18:41:02 kinda May 12 18:41:17 all new viewholders May 12 18:41:21 Scrolling through a recyclerview would cause it to attempt to load every single item in the list then reset to the top May 12 18:41:45 yeah May 12 18:42:15 Anyone here have experience with writing Calabash automated test scripts? I am completely lost May 12 18:42:16 I tried putting the fragment holding the recycler view into a different container and it scrolled farther, then I cut out a few levels of the view hierarchy and it runs perfectly May 12 18:42:36 Looks like if recycler views are embedded too deeply in the view hierarchy they can't function normally May 12 18:42:49 And the behavior is not what you would expect May 12 18:45:36 konk3r thats is weird May 12 18:46:36 URIs, are they important to get into early on? May 12 18:48:24 wut May 12 18:49:16 Trying to return stuff from an activity. If I havenät misunderstood they throw a URI at me? May 12 18:51:20 konk3r after this, nothing surprises me https://code.google.com/p/android/issues/detail?id=206901 May 12 18:51:45 they have to beef up their test suites May 12 18:52:29 yo guys May 12 18:52:41 quick question May 12 18:52:42 fragmentA.TAG, hey a i like that - have been just putting my tags as strings in the activity May 12 18:55:51 I have a recycle view that is populated by json data (imageview , textview , textview) , this is within a swipe to refresh... When i swipe down to refresh (fetches json data at a different offset), only the first element changes to the updated json , then when scrolling down and back up the rest of the data is changed , any ideas on why something like this would occur May 12 18:56:13 how do you update your adapter? May 12 18:56:35 g00s: did you read JakeWharton's comment on your b.android.com support-sqlite enhancement May 12 18:56:55 Adapter.setItems(items); May 12 18:57:14 g00s made that request? May 12 18:57:24 Napalm yeah just saw it :D May 12 18:57:58 I just read it too, I hadn't thought of that yet but he's helping to make an even stronger case for it May 12 18:57:58 so items being an array or item objects, then I just use the onBindViewHolder May 12 18:58:10 hi. I've two questions. 1. I want that my FAB disappears when the toolbar disappears too. Here my layout: http://pastebin.com/QqNkXnY0 2. How can I change only a part of a text in a TextView? May 12 18:58:27 did you call notifyDataSetChanged? May 12 18:59:16 spid3rMin3: ^ May 12 19:00:03 http://pastebin.com/wJC8BtcR May 12 19:00:04 yes May 12 19:00:20 thats not right May 12 19:00:23 Wait, it looks like my recyclerview issue is even more complicated than just being too far down the view hierarchy May 12 19:00:28 if you’re replacing the list wholesale, you want to call notifyDataSetChanged May 12 19:00:48 s73v3r: even then he should have been calling notifyItemRangeChanged May 12 19:00:54 yes May 12 19:00:58 s73v3r: i wonder if he's using some other library May 12 19:01:05 ask them May 12 19:01:07 or some weird adapter May 12 19:01:12 i dont really care that much May 12 19:01:14 :D May 12 19:01:32 even so, this is like talking about someone when they’re right there. it’s pretty rude May 12 19:01:46 It was inside of nested weights, there we go May 12 19:02:02 hello May 12 19:02:12 spid3rMin3: is that code inside the adapter? If so, just call notifyDataSetChanged May 12 19:02:52 it worked May 12 19:03:21 I just replaced notifyItemChanged(0, items.size()); with notifyDataSetChanged and all new items loading :D May 12 19:03:29 thanks May 12 19:03:38 spid3rMin3: in the future, if you’re replacing a data set entirely, just call notifyDataSetChanged. If you’re only replacing a subset, then use the nofityItemRangeChanged May 12 19:04:39 what's a good tutorial on using listviews? are they similar to tableviews in ios land? May 12 19:05:14 read the thing on developer.android.com. And you’ll probably get into recyclerviews, which you might want to use instead May 12 19:05:40 I've written an app to log some data to a .txt file, using this line : File fileAccelData = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/accel"+currentDateTime+".txt"); This works on my samsung galaxy s3 with android 4.1.2 However, my Moto G 2nd gen with android 5.0 throws an EACCES: permission denied. Anybody could shine a light on this? May 12 19:05:48 weaksauce also look at the last dev summit, yigit did a talk on recyclerview that has lots of stuff not in the docs May 12 19:05:49 s73v3r i was looking through some of the things but couldn't find a decent overview May 12 19:06:22 weaksauce i know what iOS book you are talking about, not aware of anything like that May 12 19:07:21 chip__: do you have android.permission.WRITE_EXTERNAL_STORAGE May 12 19:08:02 yep, using android studio, debugging the app for the galaxy works like a charm and logs the accelerometer data perfect, for the motorolla, it isn't. May 12 19:08:12 thanks for the tips g00s and s73v3r May 12 19:08:33 i thought one of the funny things about that yigit talk, was they mentioned some helper classes / etc would be coming once they finalized RV design/ apis -- but its been years lol May 12 19:08:40 chip__: what does the full path you try to write into look like? May 12 19:09:47 @Ashiren: http://paste.ofcode.org/38bjCVmbXJXP8Chwd7LeGny May 12 19:10:32 the full path is at the location of the external storagedirectory May 12 19:10:37 i meant like the output of Log.d("tag",Environment.getExternalStorageDirectory().getAbsolutePath()+"/accel"+currentDateTime+".txt"); May 12 19:10:45 as its different for every device May 12 19:11:17 plus AFAIR kitkat used to have ridiculus special permissions for external storage May 12 19:11:51 @ashiren: "/storage/emulated/0/accel12-05-2016_21:05:31.txt" May 12 19:12:06 on the motorolla, May 12 19:13:15 hmm, isnt ':' illegal for FAT and NTFS? May 12 19:13:25 and it looks like this on the samsung: /storage/sdcard0/accel12-05-2016_21:12:45.txt" May 12 19:13:34 how is the external storage formated on s3 May 12 19:14:05 Na, i'm running linux on the host, and I can copy the file from the phone to the desktop May 12 19:14:21 but the ':' is illigal in windows, as far as i'm aware May 12 19:16:25 doesnt the stacktrace say more about the eception May 12 19:16:44 looks like android might get 3d touch soon , N+1 maybe http://www.recode.net/2016/5/12/11660444/google-delays-rival-apple-3d-touch May 12 19:17:45 Alright, so when my recycler view inside a fragment was inside a weighted layout with a width set to 0dp, that's when all hell breaks loose May 12 19:17:59 I feel like I should probably test this out more and report it to google May 12 19:18:42 Ok, guys, I am getting really frustrated, I am trying to run my app on different android device, and I keep getting "Failure [INSTALL_FAILED_DEXOPT]" error, I googled it, and none of the solutions I came across did not work for me. May 12 19:19:04 @Ashiren: android.system.ErrnoException: open failed: EACCES (Permission denied) May 12 19:19:21 thats it? May 12 19:19:58 @Ashiren: I'm not really experienced with this, and I don't know what to look for May 12 19:20:14 @Ashiren: it actually says a lot more May 12 19:20:20 konk3r interesting May 12 19:20:32 well i dont know what could be causing it May 12 19:20:39 @Ashiren: java.io.FileNotFoundException: /storage/emulated/0/accel12-05-2016_21:17:54.txt: open failed: EACCES (Permission denied) May 12 19:20:47 i think i've only had RV in view with height=0dp, not width May 12 19:21:33 that is what is in e May 12 19:21:58 chip__: quick test - get rid of ':' and see if it helps May 12 19:24:34 chip__: i don't know...but i've seen that error a lot with NodeJs and in general is about permissions May 12 19:25:13 sorry i've read your FileNotFoundException paste May 12 19:25:19 i've not read* May 12 19:25:37 May 12 19:26:14 no WRITE? May 12 19:27:26 both: and May 12 19:29:05 well then im out of options, sorreh May 12 19:29:40 thanks for the help May 12 19:35:18 yo guys, anyone have experience with clicking a button in the nav drawer that scrolls a recycle view smoothly to the top (with a simple implementation) May 12 19:48:23 spid3rMin3 what if you set LinearLayoutManager setSmoothScrollbarEnabled(true) May 12 19:48:42 and then scrollToPosition(int position) May 12 19:48:56 oh thats scrollbar oops May 12 19:49:07 g00s: Thank you. :) May 12 19:49:21 smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int position) May 12 19:51:44 let me try that out May 12 19:55:26 spid3rMin3 https://blog.stylingandroid.com/scrolling-recyclerview-part-3/ May 12 19:56:35 g00s thank you very much , u guys are awesome haha May 12 19:56:56 yw May 12 19:57:31 this specifically says linearLayoutManager , would it make a deference if I was using a StaggeredGridLayoutManager May 12 19:58:00 hrmf, probably. i haven't used that one (was apparently pretty buggy) May 12 19:59:58 https://paste.teknik.io/Simple/LMpM5 Why does this generate 5 new Cardviews (feeds) only once? I am trying to implement infinite scrolling.. May 12 20:27:16 With ok http, I want to test what happens when a response returns a 401. Response.Builder() is just giving me all the hell it can, can I change a real response's status code? May 12 20:28:52 i would try something like Charles, Fiddler, or Wiremock for that May 12 20:29:06 intercept the response, and edit it May 12 20:31:01 Ok, cool May 12 20:32:33 is there a way to save a file explicity to the sd card instead of internal when using getExternalStoragePublicDirectory? May 12 20:33:12 wouldn’t that do it? May 12 20:33:36 and keep in mind, not every device has an SD Card, and not every device mounts it in the same location May 12 20:34:23 explodes: i would highly rate Charles May 12 20:35:34 Doesn't seem to be. I am using the MediaScannerConnection to scan the file though. Think that could affect it? May 12 20:58:54 hi. How can I change only a part of a text in a TextView? May 12 21:00:27 anyone know how i can change the $PATH environment variable in a gradle build? May 12 21:00:29 take the string from the TextView and edit that, and then assign it back May 12 21:00:33 can I override $PATH in local.properties? May 12 21:00:57 what are you trying to add? May 12 21:02:31 s73v3r: the build.gradle for what i have uses system "git" May 12 21:02:46 s73v3r: on my (corporate managed) system, i can't use the default "git" -- i need to point it to another version May 12 21:03:06 i don’t think that would be a gradle thing May 12 21:03:11 https://github.com/nickbutcher/plaid/blob/master/app%2Fbuild.gradle#L29 May 12 21:03:16 this is the specific thing i'm looking at May 12 21:03:35 instead of just ‘git’, give it the full path May 12 21:03:42 s73v3r: i have already changed the "path to git executable" in android studio config May 12 21:03:57 that’s a completely different thing May 12 21:03:59 s73v3r: i could do that, but then my build.gradle would be different from upstream, which means i'll always have a merge conflict when i try to pull May 12 21:04:21 s73v3r: which is why i thought that if i could override the path to git in local.properties, it'd be ideal May 12 21:04:47 rohan: textView.setText(new SpannableStringBuilder(yourText)); textView.getEditableText().replace(10, 20, "new text"); May 12 21:04:50 see https://developer.android.com/reference/android/text/Editable.html May 12 21:04:53 unfortunately I don’t think you can May 12 21:05:02 Napalm: did you mean that for someone else? May 12 21:05:10 Napalm: i think you meant that for LucaS05 May 12 21:05:11 yes May 12 21:05:13 LucaS05: ^ May 12 21:05:15 s73v3r: ack, ok May 12 21:05:15 my bad May 12 21:05:47 rohan: Your company doesn’t give developers admin access to their machines? May 12 21:06:10 s73v3r pretty common, especially BigCo May 12 21:06:22 not in the big companies I’ve worked for May 12 21:07:14 s73v3r: it does, but there's this whole crap with git in OSX have some security vulnerabilities, which is why the default git in /usr/bin (or whatever on OSX) is disabled by a company policy enforced by chef May 12 21:07:38 s73v3r: so while i do have admin access, if i mark the /usr/bin/git as executable, chef is just going to undo it in the next run May 12 21:07:42 if you’ve got admin access, then why not make an alias in your bash config? May 12 21:08:05 s73v3r: bash is not a problem: i already have the right $PATH in my terminal which correctly uses the version of git i want May 12 21:08:17 i think the gradle build process is not picking up my path correctly May 12 21:08:26 rohan i guess then osx-git-installer can't work for you then, maybe if you modify the pkg to unzip somewhere else May 12 21:08:43 no, there’s another place you change it, that applies it system wide, instead of the terminal May 12 21:08:50 i just can’t think of it right now May 12 21:08:53 g00s: i already have a working version of git in "/opt/foobar/git", but gradle is not picking it up May 12 21:08:59 s73v3r: ah, ok -- i'll keep looking May 12 21:09:12 its in /etc/paths.d May 12 21:09:42 that might be it. I remember using it when changing the JVM Android Studio runs on May 12 21:09:43 or /etc/paths May 12 21:09:54 i need to look up how to use /etc/paths or paths.d on osx. May 12 21:09:58 that might be a start May 12 21:10:10 my first 2 lines are: May 12 21:10:17 /usr/local/git/bin May 12 21:10:17 /usr/local/bin May 12 21:11:43 rohan https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/path_helper.8.html May 12 21:13:54 thanks, g00s May 12 21:14:05 interestingly, my first line in /etc/paths does have the path to the right git version May 12 21:14:08 might be a gradle bug May 12 21:14:34 i guess it would pick up whatever is reported by 'which git' May 12 21:14:53 g00s: which git shows the correct git May 12 21:15:00 which is executable and works fine. May 12 21:15:19 /usr/bin/git is what's busted by company poilcy May 12 21:15:33 rohan weird, because i have the xcode old-ass git too May 12 21:17:07 g00s: so gradle is picking up the right git for you? May 12 21:17:14 yeah May 12 21:17:22 weird. May 12 21:17:25 2.13 May 12 21:17:32 is it possible to run gradle in "debug" mode? May 12 21:18:03 so i can verify my hypothesis that it's using the wrong git May 12 21:18:25 no idea, i pretty much just copy pasta all my gradle stuff, its mostly a mystery to me. or if i study something i forget it a week later May 12 21:18:33 yup, same here, lol May 12 21:22:19 g00s: does your build.gradle also have something that uses the "git" binary? May 12 21:22:54 i have def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim() May 12 21:26:44 can anyone explain why this shows the recycler view correctly even though the height of the container is 0px in the activity_main fragment? http://developer.android.com/samples/RecyclerView/project.html May 12 21:27:27 line 62 of http://developer.android.com/samples/RecyclerView/res/layout/activity_main.html#l62 May 12 21:27:31 g00s: hah, same like the project I'm building right now May 12 21:27:51 rohan we all copied that from some place haha May 12 21:28:00 possibly May 12 21:28:03 weaksauce: It’s the layout weight May 12 21:28:26 In the LinearLayout, in order for the weights to work properly, you have to give it a height of 0 May 12 21:28:49 ah thanks May 12 21:29:02 weaksauce also dev options -> show layout bounds is your friend May 12 21:29:13 i wish that has some shortcut May 12 21:30:26 where's that g00s May 12 21:30:36 weaksauce settings app, dev options May 12 21:31:07 weaksauce: android:layout_weight="2" May 12 21:31:55 ah i see it now inside the simulator May 12 21:32:02 that is really useful May 12 21:34:55 thanks s73v3r g00s Napalm May 12 21:38:28 lol the kremlin says it has clinton's emails May 12 21:44:38 Napalm can you think of any gapps that use nav drawer + master / detail ... beside gmail, which is kinda different May 12 21:45:00 that is nav drawer switches spaces that may be master / detail , not just master May 12 21:47:23 pretty much everything i found, nav drawer switches fragments, but when you select something they start another activity May 12 21:47:36 So ContextCompat has a getExternalFilesDirs which gives you all external directories, but I don't see the equivalent to Environment.isExternalStorageRemovable in EnvironmentCompat. Is there no way to find the sdcard path pre 21? May 12 21:48:20 Analytics, Calendar, Drive, Google+, Photos, Keep, Maps, Play books May 12 21:48:46 has anyone else had trouble opening systrace html files? May 12 21:49:02 there seems to be multiple javascript errors preventing the page from redering May 12 21:49:08 rendering* May 12 22:18:56 hi May 12 22:21:12 i need to make a retrofit custom http method and i am having some issues, can you guys help me ? May 12 22:29:39 gabybro: saying, “I have a problem” doesn’t help anyone to help you. If you want help, you should state the actual problem you’re having May 12 22:32:07 yes .. sorry May 12 22:32:21 i need to make a method BODYGET May 12 22:32:36 to make a request to API May 12 22:33:24 and i don't know how to make this work May 12 22:33:27 :) May 12 22:33:45 i meant more, what’s the actual thing you’re having trouble with May 12 22:35:10 i have this so far: @HTTP(method = "BODYGET", path = "blabla") May 12 22:35:21 Call createTask(@Body Blabla object ); May 12 22:35:38 BODYGET isn’t an HTTP method, though May 12 22:35:55 i know .. i need to make one May 12 22:36:28 well, no, first you need to go back to your idiot API people and ask why they’re using nonstandard stuff May 12 22:36:52 yes.. you are right May 12 22:36:54 but what you might end up doing is forking Retrofit and adding your own May 12 22:36:59 but i can't :) May 12 22:37:07 yes, you can May 12 22:37:10 you always can do that May 12 22:37:11 :) May 12 22:38:10 I don’t believe Retrofit offers the ability to create your own HTTP verbs May 12 22:38:28 you would have to fork it to add it May 12 22:38:41 i could be wrong, but I don’t see it May 12 22:38:51 https://square.github.io/retrofit/2.x/retrofit/retrofit2/http/HTTP.html May 12 22:38:59 Use a custom HTTP verb for a request. May 12 22:38:59 interface Service { May 12 22:38:59 @HTTP(method = "CUSTOM", path = "custom/endpoint/") May 12 22:38:59 Call customEndpoint(); May 12 22:38:59 } May 12 22:39:01 but honestly, go and slap your API people May 12 22:40:46 https://medium.com/google-developers/tasks-and-the-back-stack-dbb7c3b0f6d4#.cww42eyzr May 12 22:40:50 meh, i hate the backstack May 12 22:41:07 looks like your’e going to implement something for that annotation May 12 22:43:03 Here’s the one for GET. You’d probably want to do something similar, but I guess with whatever you do that is different than a regular GET: https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/http/GET.java' May 12 22:43:15 Hey guys, I see android has SSLSocket, do I actually need to implement that into my client/server socket app or does socket do it by default? May 12 22:44:02 tnx May 12 22:44:31 "70,000 OkCupid Users Just Had Their Data Published" lol May 12 22:44:51 g00s, oh jeez ashley madison all over again May 12 22:47:40 kinda, but at least OkCupid was a regular dating site May 12 23:16:36 hmm, dex in process is a performance improvement huh May 12 23:16:38 I guess I should try it May 12 23:16:47 oh, need to expose it as an option May 12 23:17:04 we did it, and it shaved our build down to 2:30 May 12 23:17:20 s73v3r yeah works pretty good May 12 23:26:24 sdk tools 25.1.6 May 12 23:29:13 I wish this would show the changelog alongside the license May 12 23:29:27 so does anyone have a good strategy for handling multiple analytics providers May 12 23:29:45 analytics is such a mess :( May 12 23:30:34 i still think the best is having one library, collect all the things, and have GTM slice / dice to your other providers May 12 23:30:51 it is. I would have thought there would be something out there that would handle having multilple tools May 12 23:31:01 maybe crashlytics is special , i think they have special instrumenting code in there May 12 23:31:08 unfortunately I need to get it working without GTM first May 12 23:32:30 and I’d prefer something not stringy typed, but that seems to be all I can think of May 12 23:33:52 one of the neat things about GTM is giving your app a container, which has some values the analytics guys can change from the GTM dashboard May 12 23:34:14 and then when they make a change, i think a new container gets pushed out with that json - maybe like every 24 hours May 12 23:34:20 can you get values other than strings out of it? May 12 23:34:41 uh - i kinda forgot, you give the container a blob of k/v in json format May 12 23:34:59 its primitive May 12 23:35:28 but it allows the guys on the web site to change values without writing json May 12 23:35:41 ints would be fine May 12 23:35:56 i think that would be fine ... May 12 23:36:02 although I don’t know if i’d trust them to do bitwise stuff May 12 23:36:11 :D May 12 23:36:25 'we decided to change the bg to orange for halloween :D' May 12 23:41:36 hi May 12 23:42:04 any changes in ndk in marshmallow? May 12 23:56:15 does anyone know a free API for sending SMS over internet? May 12 23:58:08 can linear layout be used with a layout_weight directive May 13 00:00:58 HollowMan not free but twilio is not too expensive for small projects May 13 00:01:15 weaksauce, thanks a lot May 13 00:01:30 Location: Sheraton Sunnyvale, located at 1100 N. Mathilda Ave, Sunnyvale, CA 94089 May 13 00:01:31 hmm May 13 00:01:35 that's not very convenient at all May 13 00:07:45 Protovision is in Sunnyvale May 13 00:30:28 hey guys, if I use the "android" CLI command to install sdk packages (tools, support libraries etc.) May 13 00:30:37 it downloads them but doesn't save them anywhere? May 13 00:30:54 performing the same command again will re-download anything, and gradle will complain that they are missing when I attempt to use them. May 13 00:43:16 I reduced the build time of the project from 15 mins down to 8:30 May 13 00:44:46 sounds dreadful May 13 00:44:56 goal is to get it under 5. On my coworker's laptop it was taking just under 6 mins May 13 00:45:09 so we need to figure out which settings he has that are different May 13 00:47:03 same laptop specs? May 13 00:47:53 any network request? have you tried a desktop May 13 00:49:16 geeze May 13 00:49:31 I have an Asus T100TA, and even for me my builds have yet to take longer than 60 seconds. May 13 00:49:47 Most times it's ~15 seconds I'd guess. Although I haven't really timed it. May 13 00:51:28 s73v3r, yep same laptops May 13 00:51:36 anyway I'm pretty happy with myself May 13 00:51:53 it will be so much less painful to work with May 13 00:53:22 do you have an ssd in your laptop? May 13 00:53:45 apparantly yes May 13 00:53:53 * pfn shrugs, try sbt :P May 13 00:54:06 I have a hunch that the security software slows this machine WAYYY down May 13 00:55:08 i've also compared it with a macbook with similar specs. 15 on my windows laptop, 5 mins on the macbook May 13 01:29:56 hello, my system currently have android support repository version 23.0.1, i try to use butterknife on my project and it can't compile because butterknife is using 23.3.0. is there anyway to bypass and use the one on my system? May 13 01:45:06 johnc-- you should be using 23.4.0 May 13 01:52:11 yeah, i'm currently downloading the latest repository, problem is i have a slow network. thats why i was asking whether there is a way to override it somehow. May 13 02:01:25 i think whatever you specify in your build.gradle overrides transitive deps May 13 02:01:32 at least if its newer, not sure about older May 13 02:01:51 but yeah, just use the newest one, lots of bug fixes May 13 02:05:07 ok ty May 13 02:31:01 CedricBeust do any more with Idris lately ? May 13 02:32:00 i see the Idris book is 50% off today, still on the fence May 13 02:41:02 * kbs quietly wonders if there will ever be a language to satisfy g00s :-) May 13 02:41:26 lol May 13 02:42:45 statically typed racket looks neat May 13 02:50:27 If I had time I would learn racket May 13 02:54:28 g00s doesnt know any languages :p May 13 02:55:44 g00s: Never really wrote Idris May 13 02:56:25 Idris is very haskell like syntactically, I wouldn't imagine that it would interest you May 13 02:58:51 It does interest me for the new theoretical grounds it's breaking May 13 02:58:56 I'm following it, just not coding with it **** ENDING LOGGING AT Fri May 13 02:59:58 2016