**** BEGIN LOGGING AT Wed Aug 24 02:59:58 2016 Aug 24 03:07:27 he used to be xavd here Aug 24 03:37:18 hey ive been having a issue w a rom i am building and no one has the answer i was in #android-root but i was suggested to come ask someone here if anyone is willing to try to help Aug 24 03:45:37 is your question related to android app dev? Aug 24 03:47:32 no not to an application although i am interested in that later on down the line i've had zero luck fixing this issue tho Aug 24 03:48:51 id be willing to tell you what the issue is as long as no one throws the book at me heh Aug 24 03:49:10 there'll be many books Aug 24 03:49:47 are they bad or are they just knowledge lol Aug 24 03:50:12 they may have spikes in them Aug 24 03:51:39 that would suck lol no realistically im looking for help i understand its off topic (i dont try to go off topic i know its annoying) but i cant find any solution to this Aug 24 03:52:05 id actually call it bizarre Aug 24 03:53:29 forums on xda-developers might help Aug 24 03:53:40 or... the CM guys Aug 24 04:37:00 <_genuser_> setting round styles? for TextView doable? Aug 24 04:40:45 round styles? Aug 24 04:40:58 <_genuser_> round background or border. Aug 24 04:41:13 create a custom drawable and set it as background Aug 24 04:41:15 <_genuser_> I'm using and setting it as a background now from a drwable resource. Aug 24 04:41:36 <_genuser_> cool, so that worked. Should I create a @style and use that? Or is @drawable resource the proper way? Aug 24 04:42:07 a style and a drawable are not the same thing Aug 24 04:42:50 <_genuser_> drawable control how the borders and "border" looking shapes are drawn, whereas style creates just a list of colors/themes? Aug 24 04:43:17 style sets a style (text color, backgrounds, font sizes, etc..) Aug 24 04:43:52 <_genuser_> ah, good to know thanks. Aug 24 04:44:07 <_genuser_> follow up question: do a lot of people set custom fonts? I have been looking into doing that. Aug 24 04:44:19 <_genuser_> but I don't see androids apps (other than the outlook app from microsoft) doing that. Aug 24 04:44:52 i sometimes do. theres a library called calligraphy that makes it simple. Though sometimes its easier to just play with letter spacing and font feature settings then use a new font Aug 24 04:45:30 <_genuser_> calligraphy, will remember that. is it one of those square libs? Or some standalone github proj? Aug 24 04:45:51 https://github.com/chrisjenx/Calligraphy Aug 24 04:47:57 <_genuser_> very nice, thanks. I really appreciate your help. Aug 24 04:48:15 np Aug 24 04:48:34 <_genuser_> darn nerds writing all sort of cool stuff. who do people do that all in their free time, heh. Aug 24 05:19:12 hello someone here? Aug 24 05:21:02 Can someone help me with a AsyncHttpClient library? Aug 24 05:25:12 m4ster: I am some what here Aug 24 05:32:09 Hello wyoung, i'm trying to login on this website https://cadastro.saude.gov.br/cadsusweb/login.jsp, but is nort working, i will post my code i'm new on java Aug 24 05:33:27 http://pastebin.com/HLq6vSgH Aug 24 05:41:15 wow Aug 24 05:42:53 =] Aug 24 05:43:45 thepoosh help me XD Aug 24 05:45:24 m4ster: what seems to be the issue? Aug 24 05:45:30 what happens when you run this code? Aug 24 05:47:13 I believe it is not able to handle the cookies to log are made several requests and I lost myself in the middle of it all, I do not know if I'm doing the right way Aug 24 05:48:00 I can get the response but always returns to the login page Aug 24 05:48:27 are you adding the session information for future requests after login? Aug 24 05:48:35 could it be something about the website itself? Aug 24 05:48:52 are you getting Set-Cookie headers? Aug 24 05:49:48 also, what is this AsynHttpClient you are using? Aug 24 05:50:11 have you considered using a well known widely adapted library such as OkHttp? Aug 24 05:50:56 i'm using PersistentCookieStore to handle cookies Aug 24 05:51:23 are you sure it's being sent? Aug 24 05:51:32 why not a well known widely used lib? Aug 24 05:55:24 no, I do not know many Libraries , this was the first i tried , this would be my first app on android,I was trying to do to help in the process in a hospital that i work Aug 24 05:55:31 okhttp is better? Aug 24 05:55:58 sry for poor english i'm brazilian Aug 24 05:56:37 m4ster is 'ok' :) Aug 24 05:56:56 :) Aug 24 05:58:19 which library should I use ? Aug 24 06:01:01 thepoosh ! Aug 24 06:01:15 how many engineers does it take to put api 24 sources in sdk manager ? Aug 24 06:13:41 thepoosh did you see the vesper story on HN .. Aug 24 06:21:40 <_genuser_> everytime I see android code, my faith in humanity is restored. Aug 24 06:22:04 <_genuser_> everybody writes really really bad code, so mine isn't singlehandedly contributing to humanity's demise. Aug 24 06:22:05 hi Aug 24 06:22:27 <_genuser_> *to humanity's IQ's demise Aug 24 06:22:45 i thought your faith that humans are fundamentally evil and bad Aug 24 06:22:55 When I switch activity in my xamarin app I will get this error: http://pastebin.com/TxrPHRb8 Aug 24 06:30:02 do you use internet? you have internet permission? Aug 24 06:31:05 Ashiren, oops Aug 24 06:31:14 forgot to add internet permission :P Aug 24 06:31:17 thanks Aug 24 06:31:33 g00s: no, what did I miss? Aug 24 06:31:52 thepoosh an interesting lesson in strategy and economics Aug 24 06:31:58 btw. its meh if it didnt say in the log Aug 24 06:32:12 I am used to windows :P Aug 24 06:32:17 so yeah :P Aug 24 06:32:51 g00s: did you figure out your db issue? Aug 24 06:32:59 thepoosh smells Aug 24 06:33:04 * raoul11 away Aug 24 06:33:07 that worked :P Aug 24 06:33:09 thepoosh no, i dont think its an easy problem to solve .. Aug 24 06:33:15 sux Aug 24 06:33:25 i'd have to write my own embedded time series db Aug 24 06:33:39 which, actually does sound like fun Aug 24 06:33:59 fun if time is not an issue Aug 24 06:34:42 i'd learn more from that then any android code i'd write Aug 24 06:34:52 spin it off as a library Aug 24 06:36:00 these things are hard to test though ... simulating all the fault conditions Aug 24 06:44:52 if i buy a new phone from a shop, is it neccessary for the to open the box to activate the warranty? Aug 24 06:45:13 i was expecting the box to be unopened when i got to the counter but it was opened and they said it was opened so they could activate the warrenty Aug 24 06:54:54 brx_: that's probably a question for #android - but around here they typically open the box and power up the phone to show it's alive before you leave the shop Aug 24 06:56:51 brx_, i never accept opened Aug 24 06:57:02 many phones even have a sticker saying "do not accept if opened" Aug 24 06:59:05 Does anyone else experience lag when calling notifyItemRangeChanged(1, getItemCount() - 1)? My view binder contains 2 simple lines, one sets the itemView clickable, other changes color of text. But I get lag whenevenr notifyItemRangeChanged is called Aug 24 06:59:42 Will looping through actual views and handling viewholders directly solve this? Aug 24 07:01:05 astroduck: Did really all elements from 1 to the end change? Aug 24 07:01:55 loke__: Yes. The first item controls whether all other items are enabled or not Aug 24 07:02:18 there are only, like 15 items in total visible. This shouldn't be causing any lag Aug 24 07:02:25 astroduck: That's true. Aug 24 07:02:35 But how many elements do you have? Aug 24 07:03:31 in total, maybe around 50 Aug 24 07:04:00 <_genuser_> ok, app crashes as soon as run. I can't even connect it to the desktop for debugging. Aug 24 07:04:06 astroduck: That's not too many... But you can try hard-coding the range to, say, 25, and see if the delay is half the time. That would tell you if it's dependent on the length of the list. Aug 24 07:04:08 <_genuser_> wifi debugging isn't getting enabled. Aug 24 07:04:19 <_genuser_> anybody got ideas on how to go about this? Aug 24 07:04:36 <_genuser_> works fine on phone A, on phone B, just crashes. I put the entire onCreate in try/catch and still crashes. Aug 24 07:05:12 loke__: Its a really small lag, all items have a checkbox, and the lag lasts only during the duration of checkbox check animation Aug 24 07:08:08 _genuser_: connect using USB and get the crashlog, wifi logs sometimes don't work Aug 24 07:09:43 Leeds: I see Aug 24 07:09:54 i think the guy tried switcharooing it Aug 24 07:10:03 so i told him i want it unopned Aug 24 07:10:13 and then he said "but i need to open to activate the warrenty" Aug 24 07:10:19 hey , how do i retrieve value from editText so that , it's not null , I tried this EditText myEdit = (EditText) v.findViewById(R.id.F_ID); Aug 24 07:10:21 String editValue = myEdit.getText().toString(); Aug 24 07:10:31 but it says i have null pointer exception Aug 24 07:10:36 i said "no thanks, but then he got another box and opened that one and simply went through the android setup (language etc)" Aug 24 07:10:44 at least i saw him open the second box Aug 24 07:10:59 you never know though here in vietnam, dodgy as owt Aug 24 07:11:04 <_genuser_> astroduck: yep, even pluggin in with usb didnt' recognize it. Aug 24 07:11:12 <_genuser_> I thought all samsung phones use the same driver. but I guess not. Aug 24 07:13:43 loke__: Yep, reducing the itemCount reduces the lag, wtf Aug 24 07:14:29 Now RecyclerView can't handle 10 checkbox o_O Aug 24 07:19:47 hey , I it says connot find symbol for findViewById(R.id.F_ID) Aug 24 07:19:50 EditText myEdit = (EditText) findViewById(R.id.F_ID); Aug 24 08:48:59 HI all Aug 24 08:49:04 thoughts on ame clash: onResponse(Call,Response) in and onResponse(Call,Response) in Callback have the same erasure, yet neither overrides the other where T is a type-variable: T extends Object declared in interface Callback Aug 24 08:49:28 I have not setup `onResponse` in the User class, so rather confused. Aug 24 08:52:29 i dont understand Aug 24 08:52:58 danijoo, I've got retrofit workign nicely in a new Aug 24 08:53:01 new app. Aug 24 08:53:14 however, having added a second endpoint I'm seeing this issue Aug 24 08:53:23 what issue? Aug 24 08:53:46 you extend the callback and override onResponse. Aug 24 08:53:50 ? Aug 24 08:54:12 So basically just `call.enqueue(new Callback() { });` shown an error Aug 24 08:54:44 Error:(37, 13) error: method does not override or implement a method from a supertype Aug 24 08:54:56 please post the actual code Aug 24 08:55:14 sure Aug 24 08:55:16 ok. nvm. you forgot to implement all methods of the interface Aug 24 08:55:20 thats the problem Aug 24 08:55:35 what do you mean? Aug 24 08:56:27 https://gist.github.com/bsodmike/2d35ac233efc390b5a7bcb7b53c9dfd6 Aug 24 08:57:42 danijoo_: pls refresh Aug 24 08:58:31 Error:(37, 13) error: method does not override or implement a method from a supertype Aug 24 08:58:46 this means you forgot to implement one method declared in the interface Aug 24 08:58:59 I've got the exact same interface in another endpoint working fine Aug 24 08:59:10 and the Callback interface in Retrofit has only those two Aug 24 08:59:50 danijoo_: https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Callback.java Aug 24 09:00:14 I know how retrofit2/Callback look like :) Aug 24 09:00:23 heh Aug 24 09:00:48 I dont see a problem in your code :/ maybe in the interface declaration of your service or idk :/ Aug 24 09:01:07 error: is not abstract and does not override abstract method onResponse(Call,Response) in Callback Aug 24 09:01:12 yeah it's very strange Aug 24 09:01:20 I've got the EXACT approach working elsewhere haha Aug 24 09:01:53 Should the UserLogin class be special in anyway? Aug 24 09:01:58 right now it's SOOOO simple. Aug 24 09:02:24 ah there it is... line 8 in your gist Aug 24 09:02:48 you need Response as second argument but you have Response Aug 24 09:03:17 FFFT!!!! Aug 24 09:03:37 you rock Aug 24 09:03:42 :> Aug 24 09:04:01 but I'm confused a tad... the POST format is different to the response though Aug 24 09:04:14 that's why I tried line 11 Aug 24 09:04:30 with your fix, that's showin an error as response.body() wants to be a UserLogin Aug 24 09:05:04 POST call is one JSON payload, and the response is different. Aug 24 09:13:09 well the post is what you send and the response is what you get. ofc they are different, right? Aug 24 09:13:11 OK figured it out I think, was able to switch to Callback then use Jackson to serialse the data to my UserLoginResponse class Aug 24 09:26:07 danijoo_: hmm Callback refuses to be anything but a UserLogin Aug 24 09:26:08 thoughts? Aug 24 09:26:40 michael_mbp, it must match the one you declare in the service interface Aug 24 09:27:33 Hello! Does anybody know how can I get both preview and uri to full picture from a camera app? Using MediaStore.ACTION_IMAGE_CAPTURE Aug 24 09:28:11 as in Call ? Aug 24 09:28:24 Call I mean. Aug 24 09:28:42 no. the retrofit service declaration Aug 24 09:29:15 that's just the API interface Aug 24 09:29:16 where you define your endpoints and the url Aug 24 09:29:32 right so my endpoint in this case needs to be ...AHHH! Aug 24 09:29:33 there you also declare the return type for retrofit. that must match Aug 24 09:29:35 there we go. Aug 24 09:29:37 thanks Aug 24 09:29:50 new to java? :) Aug 24 09:30:06 been a while!! Aug 24 09:30:10 and I missed that like a muppet. Aug 24 09:30:34 that makes a WHOLE lot more sense... jeeze. Aug 24 09:30:36 someone actually misses java? Aug 24 09:31:42 some people love pain :p Aug 24 09:33:06 hey guys Aug 24 09:33:17 so I have an sdk that I upload to a maven repo Aug 24 09:33:27 on the latest version it stopped packaging the dependencies Aug 24 09:33:37 we migrated our maven server, could this be related to it? Aug 24 09:41:15 danijoo_: https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Callback.java#L44 how can I access the reponse body onFailure? Aug 24 09:42:42 how can there be a body if the request did not work? Aug 24 09:43:15 doesnt make sense to me :/ Aug 24 09:45:51 ah doh. Aug 24 09:46:02 will handle that in onResponse and just check the code. Aug 24 09:46:21 onFailure is for connectivity related errors then? Aug 24 09:46:34 you should read the docs. Aug 24 09:46:40 the comment literally says that Aug 24 09:46:40 got a link? Aug 24 09:47:01 the one you posted... Aug 24 09:47:23 RTFM! thanks Aug 24 09:50:13 GTCASQTAAITD Aug 24 09:50:29 go to chat and spam questions that are answered in the docs Aug 24 09:51:34 go to chat and spam it with nonsense isnt better though ;) Aug 24 09:53:22 my apologies Aug 24 09:56:24 How can I get the content in `ResponseBody errorBody = response.errorBody()` Aug 24 09:56:27 ? Aug 24 09:56:46 I checked here https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/Response.java#L126 Aug 24 09:57:33 calling `.toString()` just gives okhttp3.ResponseBody$1@2c65803 Aug 24 09:57:43 read the god damn docs.. Aug 24 09:57:52 and check the methods of ResponseBody. Aug 24 10:00:17 Hey. I need to adjust certain textViews x & y coordinates depending on the device, do I simply use "int screenSize = getResources().getConfiguration().screenLayout & Aug 24 10:00:17 Configuration.SCREENLAYOUT_SIZE_MASK;" and check that integer in Java to determine that? Aug 24 10:01:21 danijoo_: got it, thanks. Aug 24 10:02:29 Bernzel, if you want to make it easy you can provide different xml resources for different screensizes Aug 24 10:03:15 danijoo_, can I control the position of different elements in xml resource files? Aug 24 10:03:59 what do you mean with control? Aug 24 10:04:43 you can position them differently in different xmls if this is what you mean. Aug 24 10:04:58 and then you let android pick the correct one by placing them in the correct folder Aug 24 10:06:02 danijoo_, oh right, so creating different layout files for the different sizes xxhdpi, ldpi etc? Aug 24 10:06:09 yep Aug 24 10:06:27 you can even distinguish by device height and width in dp there Aug 24 10:06:34 okey got it, thanks! Aug 24 10:22:34 i know i can switch between xml and design using ctrl-shift-L|R on mac, is there a way to go from the actual element to the design and vice-versa? Aug 24 10:23:42 Ah, it’d be perfect time for another rant. BYOD, corporate intranet with no internet access, "send notifications to devices that WILL arrive within of 15 seconds", and Android Nougat Aug 24 10:24:00 the perfect guarantee of failure, thanks to Doze and FCM/GCM Aug 24 10:24:15 If any Google employee reads this: Fuck you and your superiors. Aug 24 10:33:08 hi all Aug 24 10:34:27 anyone already tested multi-OS Engine from intel ?= Aug 24 10:38:30 smartphone w/o internet == useless Aug 24 10:40:26 danijoo_: realy :) Aug 24 10:40:54 also cant you just disable doze for that app then? Aug 24 10:42:04 Hey, what FS is the 16mb partition on adopted storage? Aug 24 10:42:09 I know its not allowed to do that if you put the app on play store (tasker did that mistake to name one), but a corporate app will most probably not land there anyways Aug 24 10:42:29 xaviergmail, #android-root might know Aug 24 10:43:07 danijoo_: Thanks Aug 24 10:43:27 danijoo_: how do you normally read the docs, via your IDE? Aug 24 10:43:35 or github and look up source? Aug 24 10:43:53 michael_mbp, cursor over a class/method and press ctrl+B Aug 24 10:43:58 brings you to the source Aug 24 10:44:04 ohh ta. Aug 24 10:44:15 and if you're looking up something but forgotten (reference) etc? Aug 24 10:44:36 either ctrl+x or the javadoc page Aug 24 10:44:40 in my browser Aug 24 10:44:50 I use resources like this for Ruby related work http://www.rubydoc.info/stdlib/core/ArgumentError Aug 24 10:44:53 ah ta. Aug 24 10:45:07 and for android theres this super awesome plugin: https://chrome.google.com/webstore/detail/android-sdk-search/hgcbffeicehlpmgmnhnkjbjoldkfhoin Aug 24 10:45:59 thanks! Aug 24 10:46:03 ctrl+B rocks. Aug 24 10:46:26 ctrl+b? Aug 24 10:46:39 Oh yeah I use that Aug 24 10:46:58 Didn't even realise I was using it until I looked at the keyboard, oops Aug 24 10:47:37 What is ctrl+b..? Aug 24 10:47:40 heh that happens... Aug 24 10:48:16 how so many people dont know ctrl b :D Aug 24 10:48:18 I'm not on Windows so I wouldn't know Aug 24 10:48:24 thats my second most used shortvut :x Aug 24 10:48:29 guys any idea when android N sources will be available to download ? Aug 24 10:48:57 well command+B in mac. Aug 24 10:49:31 Who said I was on a mac? *tears* Aug 24 10:49:33 sci-fic, afaik they're already available Aug 24 10:49:55 "Windows key + Ctrl + B: Access the program that is displaying a message in the Notification Area" Aug 24 10:50:14 Mavrik: i don't see in SDK manager Aug 24 10:50:31 Ah, you mean there. No idea then. Aug 24 10:50:45 nougat-release branch is available in the sources, will probably take a bit for Google to build the JAR as well Aug 24 10:51:05 the preview in there is feature-complete and the final from apiwise, isnt it? Aug 24 10:57:57 Anyone knows if it's possible to force GPU rendering for web view components / video in chrome ? Aug 24 10:58:09 maybe this is not the right channel tho Aug 24 11:00:19 Those are pretty much always rendered on GPU. Aug 24 11:00:35 (Depending on what your definition is tho.) Aug 24 11:07:12 Can it really be true that the Cipher that FingerprintManager.AuthenticationCallback.onAuthenticationSucceeded() returns can only be used ONCE for either encryption or decryption? Aug 24 11:07:35 danijoo_, can I log which layout is being used? xxhdpi etc? Aug 24 11:09:37 I have an app where I can signup, type PIN, and register fingerprint. The Cipher returned here will be used to encrypt the PIN and store the encrypted value in (say) SharedPreferences. When I login using fingerprint, the Cipher returned will be used to decrypt the stored encrypted PIN and do the login. Aug 24 11:11:20 Now, in the app I have an option to Change PIN. Now I need to encrypt the new PIN and overwrite the old in SharedPrefs. I've kept the Cipher from login, but this I cannot use again. I keep getting android.security.KeyStoreException: Key user not authenticated when I init() and use (doFinal()) the Cipher a second time. Aug 24 11:12:14 Bernzel, you can log which resource folder matches with a little trick Aug 24 11:12:25 or lets call it 'hack' Aug 24 11:12:59 create a string in the corresponding values folder that changes depending on phone dimension and then log that string :p Aug 24 11:13:19 danijoo_, haha good trick! Aug 24 11:20:15 <^arcade_droid> Hi! I've got a ViewPager in my app, with a PagerAdapter. I am trying to replace the three fragments in the viewPager. I used viewPager.setAdapter(newadapter), newadapter.notifyDataSetChanged(). But still, every time, the viewPager shows me the OLD adapter's first fragment, but the new does not have that fragment in it. Debugger says that viewPager.mAdapter.mCurrentPrimaryItem is the old fragment, but how can that be Aug 24 11:20:20 <^arcade_droid> when I created a totally new adapter that can never pass that fragment to the viewPager. Any ideas how to fix? Aug 24 11:21:42 s/GPU/Discreet GPU/ Aug 24 11:22:37 <^arcade_droid> IF anyone replied, please reply again, I had a massive packet loss for a minute. Aug 24 11:28:57 Getting an FileNotFoundEception on a valid url, I've added permission to manifest - any ideas anyone? http://pastebin.com/WNPbRn7r Aug 24 11:30:21 What's the best way to name Retrofit model / pojo objects? Aug 24 11:30:52 For example, I have REST call for login, would it be appropriate to call the object LoginResponse? Aug 24 11:31:20 That's what I have atm but I don't want to have to rename everything when I find out there's a better way to name them Aug 24 11:33:27 Mavrik: sorry, got dc, I'm using the Android Studio Monitor and it doesn't show any GPU utilization Aug 24 11:33:42 Mavrik: it's using the CPU Aug 24 11:37:39 <^arcade_droid> So many questions so few answers. Aug 24 11:45:38 I'm not enterily sure what the attribute of tools:context should do, but I regulary just set it to the activity itself e.g com.test.MainActivity if in the mainactivity layout file, is this correct? Aug 24 11:50:29 7:49 PM . Hey guys what is the path to read gpu frequency? trying to set it manually on an app called "cool tools" Aug 24 11:50:29 http://tools.android.com/tech-docs/tools-attributes Aug 24 11:50:40 Activity is right :) Aug 24 11:51:10 SimonVT, that was for me I suppose? :) Aug 24 11:51:29 Yeah Aug 24 11:54:02 ok thanks! Aug 24 11:58:14 Does TabPagerAdapter have some kind of annoying restore state thingie that keeps restoring the wrong damn fragment? Aug 24 12:01:39 I added some intent-filters to our app so that we can load the app on a specific URL, but is there any way to ask the customer if they want to load the app, or continue on the site? Or just load the app for a specific url on the site? Aug 24 12:02:10 Anyone knows how to force GPU rendering of video in webview in chrome? idk if it's OT Aug 24 12:02:34 or could I just set the scheme to something like app (I'll make this more specific to our app) and then make the url like app://... Aug 24 12:03:29 In relativelayout, if I set layout_alignBottom and layout_alignTop, the layout_height is ignored. is there a way to force it? Aug 24 12:03:29 It should ask you by default Aug 24 12:03:38 But you can also make an app:// url Aug 24 12:03:52 the reason is to center of course.. Aug 24 12:04:19 centerInParent doesn't work? Aug 24 12:04:42 it doesn't make sense Aug 24 12:04:42 SimonVT: yeah, the thing is, I don't want it for the whole site, just certain link within it. Aug 24 12:04:53 I presume the android:scheme="xxx" Aug 24 12:04:59 will be the xxx:// part Aug 24 12:06:16 You should be able to do it for just part of the site with android:pathPattern Aug 24 12:06:20 I'll ask again, how do I totally destroy a TabPagerAdapter and all it's fragments and everything that is dear to it? Aug 24 12:06:22 And yeah Aug 24 12:06:41 I do not want to see a single piece of that old adapter Aug 24 12:06:48 SimonVT: ok, I just removed the host part, and defined a custom scheme and that seems to work :) Aug 24 12:39:56 anyone tried seeing the GPU rasterization from chromium in the device? Aug 24 12:42:56 as in, testing it? I got to see the FPS meter but it doesn't show the actual GPU rasterization or if it's even enabled Aug 24 12:43:20 https://www.chromium.org/developers/design-documents/chromium-graphics/how-to-get-gpu-rasterization gives some tips tho Aug 24 12:45:37 AAAARGGGGGG Aug 24 12:45:43 i hate firebase at times Aug 24 12:46:43 dont h8 thepoosh Aug 24 12:46:51 not good for your ulcos. Aug 24 12:59:02 raoul11: HATERS HATE!!! Aug 24 12:59:58 hello, can anyone recommend a current tutorial that I can follow on OS X? Aug 24 13:00:11 tutorial for Android app development, that is Aug 24 13:00:38 check out thenewboston tuts on youtube Aug 24 13:00:57 not much of a diff whats your os dev enviorement Aug 24 13:01:49 thanks Aug 24 13:05:25 thenewboston tuts are the best ;) Aug 24 13:06:32 bucky's button Aug 24 13:18:10 hi Aug 24 13:19:33 How do I get the error from a Volley request in a future? Aug 24 13:19:37 RequestFuture future; try { JSONObject response = future.get(); } catch (InterruptedException | ExecutionException | Exception e) { System.err.println("e = " + e.toString()); } Aug 24 13:40:38 what Aug 24 13:53:00 what indeed gdrc Aug 24 13:53:58 what's the point Aug 24 14:06:06 I'm following that tutorial and lots of little things are different Aug 24 14:06:24 for example, the “include device frames” option doesn't actually do anything Aug 24 14:06:32 it still shows the device frame when disabled Aug 24 14:19:06 alright, nvm Aug 24 14:19:22 just had to enable it on the device Aug 24 14:22:19 . Aug 24 14:39:47 Does Google offer new apps a "window of opportunity" for exposure? Aug 24 14:40:12 not in my experience Aug 24 14:43:30 Hi all, thoughts on this error please https://gist.github.com/bsodmike/6a510a1f6ff6433ae07ee9a3d3edf924 Aug 24 14:43:41 I just added AssertJ for the first time Aug 24 14:56:50 Regardless of whether it's a good or bad app, do you guys think that an unmarketted app could gain like 1000 installs easily? Aug 24 14:59:20 VerbalKint, no Aug 24 14:59:49 In that case, DO YOU GUYS WANT TO SEE MY EXTREMELY GOOD APPLICATION!? I PROMISE TO RATE YOURS IF YOU RATE MINE! Aug 24 15:02:34 How do I get a ListPreference instance from SharedPreferences?? Aug 24 15:02:56 or at least the selected value of ListPreference from SharedPreferences? Aug 24 15:05:30 anyone know how to dex2oat and run a dex file directly? i'm trying to run a simple hello world jar that i dex'ed - no android dependencies Aug 24 15:09:31 I am developing an app for Android 4.3 and newer platforms. It needs to establish a TCP TLS 1.2 connection with client authentication using certificated I have generated. I found https://nelenkov.blogspot.in/2011/12/using-custom-certificate-trust-store-on.html but it's pretty old. Is there anything in newer Android versions that can do the job ? Aug 24 15:09:49 hi Aug 24 15:12:22 dev.old used "cmd.exe /C android update project -t ""android-7"" -p ." in our old makesetup for our Android project, is this a necessary step? Aug 24 15:12:49 what does it even do? Aug 24 15:34:26 it updates local.properties Aug 24 15:34:43 and ensures build.xml exists Aug 24 15:34:52 it's no longer necessary Aug 24 15:35:25 Can Butterknife handle nullable views in Kotlin? In the one case where I have an optional view, `@BindView(R.id.optional_view) var optionalView: View? = null`, the compiler complains that views can't be static or private. Aug 24 15:44:28 How are people using job scheduler and supporting < 21 these days? Aug 24 15:46:35 you use a. backport Aug 24 15:46:43 firebase has one Aug 24 15:47:41 Hello, does anyone know how to use searchview within fragments? Aug 24 15:50:43 Hello, does anyone know how to use searchview within fragments? Aug 24 16:19:15 what are the most common characters to forbid in usernames when stored on a server? I only check for spaces atm Aug 24 16:39:08 kinda neat http://www.androidpolice.com/2016/08/24/google-working-insane-navbar-customizer-currently-hidden-7-0/ Aug 24 17:02:37 Shouldn't the onCreate() method of a retained fragment be called only once even across device rotations? Aug 24 17:03:24 arancio: does it take a bundle as an argument? Aug 24 17:04:20 yes Aug 24 17:04:28 hmmmmm Aug 24 17:04:44 I moved the content of an activity to a fragment. Should I have used another overload? Aug 24 17:06:24 wyoung: http://pastebin.com/M8cNEidN Aug 24 17:06:34 onCreate() once, onCreateView() every time after rotation Aug 24 17:07:44 nn Aug 24 17:08:04 "We are aware this is not a sustainable way to release. We are considering different options like preview channel of support library to help us bash the bugs before we push to stable channel." .. no , forget the preview channel , bash the bugs instead ;) Aug 24 17:09:06 pfn, thank you very much for that information Aug 24 17:09:14 that news saves me much work Aug 24 17:13:20 no, it's still being called Aug 24 17:15:13 hey all Aug 24 17:15:27 michael_mbp: hey! How are you? Aug 24 17:15:40 I'm using Java 1.8 and getting a java.ZoneDate missing error Aug 24 17:15:42 well onDestroy() shouldnt be called either on rotation Aug 24 17:15:43 hey arancio Aug 24 17:15:45 are you sure its retained Aug 24 17:15:48 scratching my head on this one mate Aug 24 17:16:02 https://gist.github.com/bsodmike/6a510a1f6ff6433ae07ee9a3d3edf924 Aug 24 17:16:09 java.time.ZoneDateTime missing ?? Aug 24 17:16:24 I have no issues building the android app though Aug 24 17:16:40 Ashiren: I'm calling setRetainInstance(true); in onCreate(). You can see it here: http://pastebin.com/M8cNEidN Aug 24 17:17:01 jdk1.8.0_102.jdk for Mac 64bit Aug 24 17:19:05 I don't understand 90% of what people say in this channel Aug 24 17:19:09 I wish I still had my froyo and ICS phones Aug 24 17:19:56 I wonder if anyone sells those anymore Aug 24 17:20:16 Zharf i still have my droid - 1 Aug 24 17:20:28 Zharf: g00s any idea? Aug 24 17:20:41 arancio: dunno. it shouldnt call onCreate() or onDestroy(). i.e. http://stackoverflow.com/questions/12640316/further-understanding-setretaininstancetrue Aug 24 17:20:44 class file for java.time.ZonedDateTime not found error: cannot access ZonedDateTime Aug 24 17:21:17 michael_mbp, it doesn't exist on android Aug 24 17:21:27 java 1.8 is somewhat available since android N Aug 24 17:21:34 Zharf: uh... Aug 24 17:21:48 michael_mbp yeah i don't think JSR 310 is in N Aug 24 17:21:59 threetenbp? Aug 24 17:22:26 doesnt it require 1.8 Ashiren ? Aug 24 17:23:07 "icu enhancement] ICU's replacement for TimeZone. Methods, fields, and other functionality specific to ICU are labeled '[icu]'. Aug 24 17:23:10 what is icu? Aug 24 17:23:31 it's the date localizer thing Aug 24 17:23:39 I'm using jdk 8u102 Aug 24 17:23:47 your jdk doesn't matter michael_mbp Aug 24 17:23:50 didn't have issues building and testing the app though. Aug 24 17:23:53 missingno: oh. Aug 24 17:23:57 the framework jar on older phones won't have those classes Aug 24 17:24:01 SDK API? Aug 24 17:24:13 min API was set at 19 (kitkat) Aug 24 17:24:23 pretty sure you can't use newer classes from java 8, only newer java 8 language features Aug 24 17:24:28 if you set the source level to 1.8 Aug 24 17:24:40 missingno: but it's odd that this issue only came up for unit tests Aug 24 17:25:06 not even all of those newer language features, either Aug 24 17:25:22 The Galaxy S5 and S6 are both in the xxhdpi category , yet my resources appear massive on the S5 in comparison to the S6, are there other parameters to consider for supporting multiple devices too? Aug 24 17:25:35 missingno: what do you mean by source level Aug 24 17:26:00 i.e. what's the main issue here, my minSdKVersion or? Aug 24 17:26:10 source level Aug 24 17:26:13 it’s a different parameter Aug 24 17:26:17 oh no my bad, S6 is xxx Aug 24 17:26:23 where's that set? Aug 24 17:26:26 michael_mbp: http://stackoverflow.com/questions/17637179/how-to-set-source-1-7-in-android-studio-and-gradle Aug 24 17:26:32 ta Aug 24 17:27:23 raoul11: you suck! Aug 24 17:27:36 meanie Aug 24 17:28:11 I set it to VERISON_1_8 Aug 24 17:28:53 and now it wants Jack. Aug 24 17:29:24 makes sense Aug 24 17:29:24 trying that now Aug 24 17:29:42 missingno: so what's the downside of VERSION_1_8 vs 1_7 Aug 24 17:29:50 any good articles on this :) Aug 24 17:29:59 nope you have to find out for yourself Aug 24 17:30:07 ta Aug 24 17:30:12 lmk whether your compile time gets longer Aug 24 17:30:15 it did for me Aug 24 17:30:22 1.8 requires jack Aug 24 17:30:32 or you can add gradle-retrolambda Aug 24 17:30:53 jjeeeeeze Aug 24 17:30:55 the spec works now Aug 24 17:31:05 what is the spec Aug 24 17:31:16 really silly basic spec Aug 24 17:31:18 *test* Aug 24 17:31:29 my ZoneDateTime issue is gone ta. Aug 24 17:31:41 I wonder if you can set compileOptions for the test config only in gradle Aug 24 17:32:38 My layout's are catogarized like (xlarge) etc, so will my (xlarge) layout load resources from the xhdpi folder? Aug 24 17:33:20 fuck it, I'll just release this minsdk8 app update only having tested on marshmallow Aug 24 17:33:37 is there any reason to use the preference support library Aug 24 17:33:41 hope i never have to use this :P http://trollala.com/ Aug 24 17:34:22 heh, interesting Aug 24 17:34:29 Bernzel: The system will load resources from the folder that closest matches the screen density Aug 24 17:36:23 s73v3r, ok good. And the different layout files (xlarge, large etc) will load depending on the SIZE of the screen rather than the density I suppose? Aug 24 17:36:49 I am following a tutorial. I imported the person's files into android studio, all the files are good except the .xml file. I am getting an error on lines 5-8, I pasted the error on the pastebin. (Is this outdated?) http://pastebin.com/UYK72cNj Aug 24 17:36:56 layout should also be going by density Aug 24 17:37:09 why is that android's source gets open upon release ? Aug 24 17:37:26 JustinHitla: Cause that’s how it’s licensed Aug 24 17:37:28 apple ? Aug 24 17:37:31 heyu missingno still can't find any good info on sourceCompatibility hmm Aug 24 17:37:49 I think what you wanted was targetCompatibility Aug 24 17:37:50 I mean its open source but why can't we look at it at any time ? Aug 24 17:38:09 when will the N sources drop :< Aug 24 17:38:22 they don’t have to publish until they distribute Aug 24 17:38:25 Didn't it yesterday? Aug 24 17:38:44 it's in gerritt or something Aug 24 17:38:44 missingno: http://www.vogella.com/tutorials/AndroidStudioTooling/article.html#androidstudio_sourceupdate doesn't say how much compatibility I'm looking out on say for APK 19 devices Aug 24 17:39:02 also lol s73v3r aren't the previews distributing Aug 24 17:39:06 also I got the final OTA Aug 24 17:39:24 oh michael_mbp api 19 is 1.7 Aug 24 17:39:26 api 18 is 1.6 Aug 24 17:39:28 s73v3r, hm okey. But are there any correlations between the resources and the layouts? In terms of the names I mean, is xhdpi the same as xlarge? So I would create the layoutfiles: large, xlarge, xxlarge, xxxlarge? Aug 24 17:39:33 "Exploring Java's Hidden Costs" ... i hate languages with hidden costs. Aug 24 17:39:39 * g00s prefers pay as you go Aug 24 17:39:44 fudge :/ Aug 24 17:39:52 which API is 1.8? N? Aug 24 17:39:55 yep Aug 24 17:40:10 well compileSdK version is 24. Aug 24 17:40:12 Bernzel: i don’t think so, but i would think you’d be using the density buckets instead of size buckets Aug 24 17:40:13 N as I recall. Aug 24 17:40:22 Small question about Android programming. Aug 24 17:40:32 I want to have a navigation drawer in my app, ho do I switch between screens? Aug 24 17:40:39 I tried starting a new activity, but it got rid of the navigation drawer. Aug 24 17:40:42 UserInNeed easiest with fragments Aug 24 17:40:46 https://github.com/dkudriavtsev/CarTracker Aug 24 17:40:49 What are those? Aug 24 17:40:51 is there any simple shortcut for event listeners that just forward the event on the an instance method? Aug 24 17:40:53 I'm really new Aug 24 17:40:56 UserInNeed: https://developer.android.com/training/implementing-navigation/nav-drawer.html Aug 24 17:41:01 UserInNeed no longer a small question ! Aug 24 17:41:26 s73v3r, god damnit.. ok but is there some form/table showing which devices fall into xlarge/large etc? I've only found tables showing which phones fall into which density category. Aug 24 17:41:32 ? Aug 24 17:41:32 UserInNeed here is a good tut with all the nuts/bolts https://guides.codepath.com/android/Fragment-Navigation-Drawer Aug 24 17:41:37 Bernzel: no Aug 24 17:41:50 ok, thanks. So if you look at how my app is structured... Aug 24 17:41:51 i don’t think i’ve ever used xlarge, large, etc Aug 24 17:41:58 yeah, I need a full rewrite. Aug 24 17:42:21 e.g. a shortcut for, view.setOnFoo(new FooListener() { @override public void onFoo(args) { handleFoo(args); } } Aug 24 17:42:42 Is there a way to do it without fragments? Aug 24 17:42:48 I want to se XML for layout. Aug 24 17:42:49 sure Aug 24 17:42:52 s73v3r, so how do you adjust the layouts depending on which device? The tiny difference between the S6 and S5 makes a huge difference in my graphics, some images that are drawn during runtime are massive on the S5 while perfect on S6 Aug 24 17:43:08 UserInNeed: you can do it with launching new activities, but it’s a bigger pain in the ass Aug 24 17:43:23 UserInNeed: also, I have no idea what you mean by “se XML for layout" Aug 24 17:43:26 use** Aug 24 17:43:34 not se Aug 24 17:43:46 ok, that doesn’t clear much up Aug 24 17:43:57 fragments use XML for layout too Aug 24 17:44:08 UserInNeed just have a framelayout, and inflate / remove your views to it Aug 24 17:44:20 Bernzel: you’d use the density buckets instead Aug 24 17:44:32 Oh, OK, I thought you had to stuff the lyout from Java when using fragments, that makes sense Aug 24 17:44:55 and don’t hardcode sizes in your xml. Or use values.xml, and get different values for stuff like padding and such based on the density Aug 24 17:45:16 Can someone please, like, make some changes and make a pull request? I'm on a public library computer. Aug 24 17:45:21 no Aug 24 17:45:30 heh Aug 24 17:45:38 this emulator is in portrait but android thinks it's in landscape Aug 24 17:45:52 that happened to me too, just rotate it a few times Aug 24 17:46:03 s73v3r, I dont. They images getting generated/drawn during runtime (which isn't included in xml) are the ones that I need to manage size on Aug 24 17:47:05 UserInNeed, it won't draw in any other orientation though :p Aug 24 17:47:37 seems like what I want is method references, but apparently they're not supported at this language level, no idea why since the compiler could just generate the anonymouse class definition for me, the result would be equivilent Aug 24 17:47:45 missingno: thanks so much for all your help Aug 24 17:47:54 saved me a TONNNE of headaches, but there's a lot I need to look at/learn. Aug 24 17:48:04 chilversc: you could try Butterknife Aug 24 17:48:37 given that I've been writing a whole lot, with my AVD at API 24, how would you recommend I test for API 19 (starting a new AVD of course) Aug 24 17:49:03 s73v3r, here's an example: http://pastebin.com/stRujGC1 this object is much larger on the S5 than on the S6, how would you handle that? Aug 24 17:49:10 trying to see if it dies on a API 19 AVD. Aug 24 17:49:29 Bernzel: You’re hardcoding your sizes Aug 24 17:49:58 s73v3r, even in Java I can't do that? How would it look if done properly? Aug 24 17:50:07 load them from values.xml, and overload that for the different density values Aug 24 17:50:34 s73v3r: interesting, I'll have to check that out later, but nothing better that isn't android view specific? Aug 24 17:50:53 so you have a values.xml in res/values, one in res/values-hdpi, one in res/values-xhdpi, etc Aug 24 17:50:55 s73v3r, so create a xml file in values where I set different hardcoded values depending on which density? Aug 24 17:51:00 yes Aug 24 17:51:05 I was really hoping to use, foo.setOnSomething(this::handleSomething) Aug 24 17:51:09 s73v3r, ah okey I get it Aug 24 17:51:15 Bernzel: https://developer.android.com/guide/practices/screens_support.html Aug 24 17:51:19 read that Aug 24 17:51:34 s73v3r, You already cleared it up mate, thanks Aug 24 17:51:40 still read it Aug 24 17:51:59 roger that Aug 24 17:52:11 I think the last step in getting my much updated app going is to learn how to rename the outputted .apk. This has just been so much fun! Aug 24 17:54:09 hey what is Nougat's targetSDKVersion? Aug 24 17:54:25 missingno: well, with Jack & 1.8 my APK 19 AVD runs fine (For now) Aug 24 17:54:40 there we go, disabling hardware keyboard on the amulator fixed it Aug 24 18:00:25 was there something with old emulators and sockets that didn't work? Aug 24 18:00:41 chilversc: Java doesn't expose methods as first-class objects, other than (essentially) via reflection. There's the android specific https://developer.android.com/reference/android/R.attr.html#onClick possibly, or you can roll your own annotation processor (which work vaguely like macro processors) or butterknife does this nicely, as s73v3r suggested Aug 24 18:04:14 Hey Aug 24 18:10:10 missingno: ugh Aug 24 18:10:10 Jack make things run way slower Aug 24 18:17:30 jack sucks Aug 24 18:17:33 don't use it Aug 24 18:17:52 its not even slower for me but the debugger doesnt work Aug 24 18:18:02 ugh Aug 24 18:18:04 how do I remove Jack? Aug 24 18:18:25 disable the flag that you set to enable it Aug 24 18:18:28 jack is opt-in Aug 24 18:18:38 I removed my changes in my gradle config, but even though I'm now building a previous version - yeah before I enabled that, my AVD app now just crashes Aug 24 18:18:47 though in case you already use java 1.8 code you must port it back to 1.7 Aug 24 18:18:47 but the app runs as I see output in logcat Aug 24 18:19:01 So you have to use jack for 1.8 right now? Aug 24 18:19:06 ktwo: yeah I need to do that, but my 1.8 code was working fine. Aug 24 18:19:09 jack or retrolambda both handle java 1.8 Aug 24 18:19:14 michael_mbp, it was never working fine Aug 24 18:19:16 konk3r: well I wasn't using Jack all this time. Aug 24 18:19:35 you *cannot* use java 1.8 on android, period, you can partially use it with retrolambda or jack Aug 24 18:19:40 those are your only 2 options Aug 24 18:19:56 pfn: so I have to use Java 7? Aug 24 18:19:57 Right, some features from java 1.8 were backported with them Aug 24 18:20:02 you can use *jdk* 1.8 to build android apps, but you must set target/source to 1.7 Aug 24 18:20:08 AH! Aug 24 18:20:21 So essentially sourceCompatibility JavaVersion.VERSION_1_7 Aug 24 18:20:23 (java basics...) Aug 24 18:20:38 pfn: ta Aug 24 18:22:45 Sources for api24 in sdk manager \o/ Aug 24 18:26:56 android 6, bluetooth pairs then unpairs (from app to the PC, using createBond method); if i try to pair from the PC, it works Aug 24 18:27:57 g00s: http://www.androidpolice.com/2016/08/24/google-working-insane-navbar-customizer-currently-hidden-7-0/ Aug 24 18:33:05 hey pfn Aug 24 18:33:20 so I've reverted by history, and now the main activity dies with "E/EGL_emulation: tid 1193: eglCreateSyncKHR(1370): error 0x3004 (EGL_BAD_ATTRIBUTE)" Aug 24 18:33:30 then fix your use of opengl Aug 24 18:33:44 didn't make any changes though? Aug 24 18:34:02 (unless running Jack may have), but the git source doesn't show anything. Aug 24 18:34:34 the error clearly says you screwed up opengl, so you have to fix it Aug 24 18:34:37 has nothing to do with build Aug 24 18:34:54 and what does fixing involve? Aug 24 18:35:30 identifying, then understanding the error, then applying a solution if any exists Aug 24 18:36:17 can AVDs get corrupted? Aug 24 18:36:22 a lot Aug 24 18:36:30 even without doing anything Aug 24 18:36:36 oh Aug 24 18:36:51 not really, no Aug 24 18:36:54 if you can, try to reproduce the same issue on different devices Aug 24 18:36:56 but avd require frequent reboots Aug 24 18:37:05 why do people even bother using avd... Aug 24 18:37:10 for some ppl, avd never ever reached the home screen lol Aug 24 18:37:22 well I'm using the only AVD I had here... WHAT Aug 24 18:37:26 so you always use a device? Aug 24 18:37:29 no Aug 24 18:37:31 use everything Aug 24 18:37:46 real devices, some vm like genymotion, avd, etc Aug 24 18:38:42 was working fine just until I toyed with sourceCompatibility and Jack. Aug 24 18:39:01 do we have any idea when j/j will be stable ? Aug 24 18:39:02 I've killed and restarted the AVR/Android Studio too Aug 24 18:39:09 then the problem is your code Aug 24 18:39:18 android studio restarting is irrelevant Aug 24 18:39:34 pfn. Can't be, I've gone back in git history Aug 24 18:39:42 problem is always your code Aug 24 18:39:45 and it was running fine at the point I'm checked out at :) Aug 24 18:39:52 that or the error you think isn't the error you are getting Aug 24 18:40:16 shrödinger issues are the worst :p Aug 24 18:40:21 yeah Aug 24 18:40:44 heisenbugs Aug 24 18:40:47 lol Aug 24 18:40:53 adq you are back ! Aug 24 18:40:56 usually, ppl tend to be able to reproduce 100% of time their issue Aug 24 18:41:00 nope g00s, still in holiday Aug 24 18:41:37 i'm really not in hurry to get back :> Aug 24 18:44:55 adq i'm kinda on vacation too Aug 24 18:45:02 "D Aug 24 18:45:15 :)) Aug 24 18:50:24 Out of curiosity, what's the issue with Jack currently? Is it slow? Buggy? Aug 24 18:51:03 i guess it doesn't work with instant run + data binding, slow ... Aug 24 18:51:16 maybe something going on with annotations still Aug 24 18:51:36 just wondering, when that thing is supposed to be ready. i have a feeling 2017 i/o will come first Aug 24 18:51:40 pfn: seems to work now I/OpenGLRenderer: Initialized EGL, version 1.4 Aug 24 18:51:42 very strange Aug 24 18:52:06 jack sucks Aug 24 18:52:10 no reason to use it Aug 24 18:57:24 how can I get the debugger to trap crashing activity (well that OpenGL issue) pfn ? Aug 24 19:00:25 I am following a tutorial. I imported the person's files into android studio, all the files are good except the .xml file. I am getting an error on lines 5-8, I pasted the error on the pastebin. (Is this outdated?) http://pastebin.com/UYK72cNj Aug 24 19:00:44 michael_mbp, set a break point before the crash occurs Aug 24 19:02:51 Ouch, I didn't realize it was that far behind Aug 24 19:08:36 yay works fine in KitKat Aug 24 19:08:49 thankfully I haven't relied much on 1.8 Aug 24 19:12:59 what's a good synonym for the verb "create view" Aug 24 19:14:19 Is it a good idea to do this: public class App extends Application implements SharedPreferences.OnSharedPreferenceChangeListener { Aug 24 19:14:48 pfn: "create view" is a whole phrase, not a verb. create -> instantiate, make Aug 24 19:15:08 it's a verb as in it is an action, not grammatically Aug 24 19:15:24 oh hell.. i can pair from 4.4 but can't from 6 Aug 24 19:17:15 pfn: anyway: "instantiate view", "create view", "visualize", "define appearance". Are you looking for a single word? Aug 24 19:17:45 a single word would be good Aug 24 19:21:55 pfn: sorry, can't think anything else, atm. The problem is that "view" has a specific meaning in Android. And there is no "view-ize" verb in English. It would be "visualize" but that suggests something more about drawing stuff. And "creating a view" is not "drawing the view". So I have no more suggestions Aug 24 19:22:24 indeed, thanks for trying Aug 24 19:24:03 i need to (temporarily) disable scrolling on a recyclerview that lives inside a NestedScrolView. whats the best way to do this? I also need the transition from disabling scroll to enabling scroll to happen without lifting the finger. Aug 24 19:24:58 oh well, 'make' is a relatively unused term, I'll go with 'context.make[View]' Aug 24 19:26:12 yes, in Android "make" is not used much or at all Aug 24 19:26:38 rebooted the device and it paired Aug 24 19:29:08 thanks so much missingno pfn everyone. Aug 24 19:29:15 your help today has been invaluable. Aug 24 19:52:34 I'm trying to get an integer from my values folder: http://pastebin.com/WfY44ZzR but for some reason the contentView isn't adding the new view, if I use a hardcoded integer for the .leftmargin etc, it works. So have I done something wrong with the xml file? Aug 24 19:54:32 R contains resource ids, not the actual values. Use the Resources class to get the values. Aug 24 19:54:36 Also, use dimensions not integers Aug 24 19:55:50 SimonVT, like this: "getContext().getResources().getInteger(R.integer.maximum);" ? but with dimensions as you say Aug 24 19:56:00 Yep Aug 24 19:56:04 ok thanks! Aug 24 19:56:21 Context contains some of the same getters, so it can be shortened a bit Aug 24 19:56:27 (maybe) Aug 24 19:57:42 yeah down to getResources() as it seems Aug 24 20:00:37 nah dimen returns float, and casting to int for my LayoutParams doesn't seem to work Aug 24 20:01:01 hey guys, building an app and wondering what the common approch for syncing data in an app. The app will have a web/desktop version and data could be committed there. The mobile app will have a refresh button but wondering if there is something more automatic?? Thanks for you help Aug 24 20:01:18 SyncAdapters Aug 24 20:02:50 SyncAdapters? ok - how does it work? pings for new data at regular intervals? Aug 24 20:05:57 having a read about sync adapters. From what I am reading it just refreshes the data in the background at regular intervals or when triggered? Aug 24 20:07:38 it can do both Aug 24 20:08:19 ah I see, the server can send a broadcast to notify the device that data has changed. Aug 24 20:08:32 Is it possible to target specific devices/users Aug 24 20:08:34 ? Aug 24 20:10:39 just like you’d do with any other push notification Aug 24 20:11:26 I see, thanks for the info Aug 24 20:13:42 whoooo butterknife 8.3.0 Aug 24 20:19:21 <_genuser_> interesting AS quirk. if you build after a long time (leaving AS open overnight) then it takes 10+min to build the whole project again and install on teh phone. Aug 24 20:19:37 <_genuser_> after taht if you just do clean and make whole project it takes no time. fast. Aug 24 20:22:23 <_genuser_> oooh butterknife, another jake wharton project. look pretty cool. I'm kinda tired of having an initializeUI(); function in my activities that just does all that: tie up vars and store references. Aug 24 20:37:44 So this isn't so much an Android question as a general java personal choice but when you update #equals() how do you go about updating the hashCode() method to match? Are there any big pitfalls to avoid? Aug 24 20:38:58 My current plan has just been to update toString() to return all the fields I'm going to compare in the equal statement and call hashCode() on that string but I don't know if that's a bad practice Aug 24 20:42:06 konk3r: There's Objects.hash: https://developer.android.com/reference/java/util/Objects.html#hash(java.lang.Object...) Aug 24 20:42:57 Oh that's awesome, so I'd essentially cut out the string parsing step and still base it off the fields I want compared Aug 24 20:44:12 Yes. Of course that "added in API level 19" bit might or might not be a problem for you. (It's a Java 7 thing.) Aug 24 20:44:58 The DIY version, (new Object[] { a, b, c }).hashCode(), might still be "cheaper" than toStringing everything. Aug 24 20:46:59 Er, or maybe that'd need to be Arrays.hashCode(new Object[] { ... }). Can't recall. Anyway. Aug 24 20:48:17 <_genuser_> for listView I can set the style Aug 24 20:48:32 <_genuser_> isnt' there a way to set the style on a toolbar? < sdk 21? Aug 24 20:49:34 android:theme Aug 24 20:49:57 <_genuser_> pfn: but it will change the entire theme of the application, correct? Aug 24 20:50:01 no Aug 24 20:50:51 <_genuser_> pfn: so it will take the @style/my_toolbarStyle and override that value in the theme and keep the rest as is? Aug 24 20:51:04 how exactly are you trying to apply it Aug 24 20:51:34 anyone know of a way to have external resources that can be used and override the local ones IF installed as expansion APK ? never done it (Drawables,Values,Colors) Aug 24 20:52:35 <_genuser_> pfn: http://dpaste.com/2TV9H4X Aug 24 20:53:07 Haha regardless of which it is, thanks fizzie Aug 24 20:53:45 I had no idea you were supposed to override hashCode until I started going through the Fragmented backlog and now I'm trying to fix it Aug 24 20:53:52 <_genuser_> pfn: so my understanding is that this style is inheriting from Theme.AppCompat.Light.DarkActionBar and overriding the values that are listed in the style tag. Aug 24 20:55:07 <_genuser_> pfn: then manifest file has: (I deleted the irrelevant attributes from application tag) Aug 24 20:55:25 unfortunately, android:theme has to be applied to each Toolbar individually Aug 24 20:55:33 as if you used style= Aug 24 20:55:37 but with android:theme instead Aug 24 20:58:00 <_genuser_> pfn: so in my layout xml file, android.support.v7.widget.Toolbar tag shoudl have a theme="apptheme"? Aug 24 20:58:10 <_genuser_> or theme=@style/my-toolbarStyle ? Aug 24 20:58:16 android:theme and it would be the toolbar overlay theme Aug 24 20:59:49 <_genuser_> mine looks like this: Aug 24 20:59:56 <_genuser_> I added the app:theme. Aug 24 21:00:02 it's android:theme Aug 24 21:00:30 <_genuser_> popupTheme was by default in the skeleton project created by AS. I've added the app:theme Aug 24 21:03:05 <_genuser_> ok, neither has any affect. :( Aug 24 21:04:32 Is there a better tool than fsck.f2fs to recover a corrupt f2fs partition? Aug 24 21:10:12 Also, does anyone know what the first (16MB) partition is on android adopted storage-formatted cards? Aug 24 21:10:27 hey can someone do me a quick favor, goto http://foundation.mtech.edu/ and tell me if it times out Aug 24 21:10:44 downforeveryoneorjustme.com Aug 24 21:10:52 yeah im getting mixed results Aug 24 21:11:15 Works for me Aug 24 21:11:29 heh weird Aug 24 21:12:24 i cant reach it(on mtech internet), none of my digital ocean servers can reach it, isup.me finds it, you find it, mtech tech guy gets it Aug 24 21:13:22 traceroute? Aug 24 21:14:29 it stalls in different places on traceroutes Aug 24 21:14:55 <_genuser_> pfn: thanks for your help. I'll google a bit more for theming stuff. Aug 24 21:15:59 Cneu: Anything abnormal? Aug 24 21:17:18 it dies in seattle washington everytime Aug 24 21:17:24 actually Aug 24 21:18:48 i'll use monitis and check from all over Aug 24 21:19:57 the majority of them fail Aug 24 21:21:25 its gotta be something between the seattle to missoula hop Aug 24 21:30:21 I'm having an issue with AlertDialog boxes not showing buttons on Android N Aug 24 21:30:37 Has anyone had this issue? Any suggestions? Thanks Aug 24 21:31:40 More info: They were working fine until running the app on N. compileSdkVersion = 24, targetSdkVersion = 24, buildToolsVersion = "24.0.2" Aug 24 21:36:00 <_genuser_> changed some styles and the project refuses to start now. Int conversion failure on some 384672938 type number. I think the R.java got corrupted. Aug 24 21:36:12 <_genuser_> so I've deleted all R.java files from the proj and rebuilding. Aug 24 21:36:20 <_genuser_> anybody have specific suggestions? Aug 24 21:55:05 Looks like updating Support Library version from 24.1.1 to 24.2.0 breaks my AlertDialog buttons (invisible) Aug 24 21:57:55 that sounds unfortunate... Aug 24 21:58:26 I guess the solution for now is to stay at 24.1.1 heh. Aug 24 22:01:02 on xamarin, so I don't think we have anything newer than 23.4.0... Aug 24 22:01:38 another reason not to use xamarin Aug 24 22:02:18 <_genuser_> pfn: ok, the theme application was correct. just that for the toolbar, you need to set "titleTextAppearance" attribute. I was applying a theme with fontFamily attribute set only. Aug 24 22:03:38 <_genuser_> misspoke. I was forgetting to assign fontFamily to titleTextAppearance attribute. Aug 24 22:08:35 is it standard in a fragment to try and grab the intent from the activity to get the extras, or is there a better way to map values from an intent to a fragment? Aug 24 22:08:54 that is not standard at all Aug 24 22:09:02 pass the values into the fragment using the bundle Aug 24 22:09:37 I din't think so, but in the developer api guide there is 0 examples of actually reading the values from an intent Aug 24 22:09:56 from a fragment? that’s cause you’re not supposed to do that Aug 24 22:10:10 from anywhere Aug 24 22:10:14 bullshit Aug 24 22:10:48 I was expecting to see soem example in the guide on fragments on how to get data from the activity to a fragment Aug 24 22:11:58 https://developer.android.com/reference/android/app/Fragment.html Aug 24 22:13:29 chilversc is that not like saying I want to get info from the book into the page ? Aug 24 22:14:39 what info are you talking about btw? Aug 24 22:15:00 How do I add a Fragment from the support library to a view using a fragment manager transaction? The add method is incompatible and requires a "standard" fragment. Aug 24 22:15:20 import the support library fragment manager Aug 24 22:15:44 Eplebit: do you use Xamarin? Aug 24 22:15:54 s73v3r: thanks Aug 24 22:16:24 Oh, right. There must be a getSupportFragmentManager() somewhere Aug 24 22:16:34 I read about it, I guess Aug 24 22:17:02 you also have to make sure that in your import statements, instead of the regular fragment manager, you’re importing the one from the support library Aug 24 22:17:17 <_genuser_> chilversc: you have something that extends Fragment? Aug 24 22:17:48 s73v3r: yeah, thanks Aug 24 22:18:36 s73v3r: looking at that, I have a declarative fragment, so do I have to wait intil the layout is inflated, find the fragment then set it's arguments? Aug 24 22:18:37 <_genuser_> chilversc: http://dpaste.com/0FHRKRB fragment using getArguments to get the bundle and String FRAGMENT_NAME from it. Aug 24 22:19:21 <_genuser_> chilversc: best example of this is if you use AS and create an new project from the "tabbed" / "pager" tempalte. Aug 24 22:19:30 arancio: yup... Aug 24 22:19:43 <_genuser_> it will show you how to put something in a bundle (the tab number) and then how to access it from the inflated fragment. Aug 24 22:20:44 Eplebit: how good is it? Would be wise to learn Android development using Xamarin right away? Has it any performance penalties or functional limitations? Aug 24 22:21:49 if you're just going to do android then just do android Aug 24 22:21:56 I use it because I also have an ios version Aug 24 22:23:02 ah, so does that mean I shouldn't be using in the layout files? and instead should be creating them during onCreate? Aug 24 22:23:04 Eplebit I'm a bit interested in the quality of a xamarin product (not forms)....do you have good examples that are ios + android? Aug 24 22:24:23 <_genuser_> chilversc: if they're static, you can create them in layout and it shoudl be fine. but if they're dynamically generated then sure put them in the code. Aug 24 22:25:21 <_genuser_> chilversc: actually I'm smoking dope there. The class representing the layout will be in code and should be generated dynamically (as far as I udnerstand). Aug 24 22:25:35 <_genuser_> the layout will have what the content of the fragment looks like. Aug 24 22:25:45 StingRay_: should find some here: https://www.xamarin.com/customers Aug 24 22:26:06 <_genuser_> unless you're thinking of having one file that has the fragments hardcoded in xml layout. and have no code that creates them. Aug 24 22:26:06 Eplebit look and wondered if there were any better Aug 24 22:26:31 _genuser_: in my activity layout I have , I just can't see how I then pass through arguments to it Aug 24 22:26:38 we started using it for two reasons: share cross platform code (we have quite a bit of it) and the fact that none in the company knew shit about objective-c Aug 24 22:27:10 so rather than get a $50 book on it, you guys spent thousands of dollars on Xamarin licenses? Aug 24 22:27:19 ot's free now Aug 24 22:27:23 it's* Aug 24 22:27:24 <_genuser_> chilversc: https://developer.android.com/training/basics/fragments/creating.html Aug 24 22:27:25 _genuser_: both the activity and the fragment have a code file, I don't create the fragment myself though, android handles that when inflating the activity layout Aug 24 22:27:31 now, but it sounds like they’ve been using it for a while Aug 24 22:27:48 <_genuser_> chilversc: I see. due to the main layout that has the tag, android creates all that. Aug 24 22:27:58 <_genuser_> chilversc: and now you want to pass data from main to the fragment? Aug 24 22:28:02 s73v3r: it's not that simple. we're a .net company. every person working on the apps would need to learn it Aug 24 22:28:24 still, that’s a lot of money to pay just to not learn a language Aug 24 22:28:26 one person? no problem. but then you're fucked when he quits Aug 24 22:28:32 _genuser_: exactly, so that the activity can take some data from an intent, and pass it through to the fragment Aug 24 22:28:54 s73v3r: and a lot of money to save when someone not experienced it needs to help out Aug 24 22:29:00 <_genuser_> chilversc: if your fragments are hardcoded like that, all your UI should always be created. Aug 24 22:29:08 licenses costs very little compared to salaries... Aug 24 22:29:16 not to mention time to market and such Aug 24 22:29:17 <_genuser_> why not just findViewById(R.id.element-in-fragment); Aug 24 22:29:26 <_genuser_> and then just directly set that UI element. Aug 24 22:30:01 Eplebit I ask cause we are a c# house, but I'm and android dev learning ios now....we have a project for large vehicle manuf. and xamarin has come up cause we have no ios staff Aug 24 22:30:24 I know you have access to native components, but it just seems a bit .....dunno.....wrong ! Aug 24 22:30:44 _genuser_: all the examples I saw were using a static newInstance method and setArgments(bundle)? I just wasn't sure what the pattern was for when you declarativly created the fragment instead Aug 24 22:31:35 StingRay_: you can use all the native stuff, and the android api is just a c#-ified version of the normal android api Aug 24 22:31:39 <_genuser_> chilversc: the examples are of the type NewFragment extends Fragment{ /* how to create it*/ public NewFragment newInstance(){ return new NewFragment(); } } Aug 24 22:32:17 <_genuser_> chilversc: those exampels are basically giving you an newInstance() method to create a new instance. but yours should already be created due to it being inflated automatically. Aug 24 22:32:34 <_genuser_> chilversc: See in your main after setContentView, if you can findViewById() for something inside the fragment. Aug 24 22:33:23 StingRay_: so doing the android part is more or less similar Aug 24 22:33:59 StingRay_: but yeah, we had no ios staff either, and not enough resources to hire full time ios coders, so... Aug 24 22:34:02 Eplebit and controlling segues in ios ? transitioning to diff storyboards ? or whatever the c# way is ? Aug 24 22:34:10 StingRay_: exactly the same Aug 24 22:34:19 StingRay_: I use xcode for the storyboads Aug 24 22:34:21 storyboards Aug 24 22:34:51 so core logic model data and sources in c# that directly interface with any UIKit stuff ? Aug 24 22:35:00 that seems pretty good...but what are the downsides ? Aug 24 22:36:57 imo it's mostly that you can't just use any library you find online Aug 24 22:36:58 wooo N source jar dropped Aug 24 22:37:09 did it finally, nice Aug 24 22:37:16 "finally" heh. Aug 24 22:37:30 also android (and sort of ios) is bugged enough that it is. adding another layer doesn't help Aug 24 22:37:45 although I haven't really encountered any problems with that in a long time Aug 24 22:39:14 Android is bugged? I heard it's perfect. Aug 24 22:39:17 cool, cheers for info Aug 24 22:39:33 Eplebit: thanks for the informations from me too Aug 24 22:40:19 Hello, I used my custom LayoutInflaterFactory to get callbacks for each View, but I noticed any kind of ViewGroup (FramLayout, LinearLayout etc...) are not created through AppCompatActivity LayoutInflaterFactory Aug 24 22:40:24 does anyone knows why? Aug 24 22:40:37 for each view creation** Aug 24 22:41:20 StingRay_: for ios I actually prefer xamarin studio for writing code compared to xcode, but with android you'll kind of miss android studio and the better integration Aug 24 22:42:31 they really have done VERY well with xamarin studio Aug 24 22:42:47 Eplebit well I'm both a dev and app ux designer and sys arch... I will have to suggest xamarin Vs native x 2.... I always assumed there would be more bugs and at least a noticeable perf. hit with another layer Aug 24 22:43:45 StingRay_: I haven't really noticed any performance problems, but I guess there has to be some overhead Aug 24 22:44:11 will be a size hike too with the platform binary ? Aug 24 22:44:43 I guess. but given how absurdly large apps are these days, I'm not sure if it matters Aug 24 22:44:47 think my android app is around 10mb Aug 24 22:45:09 I bet it would be 2mb without c# :) Aug 24 22:45:37 possibly. but given that I have to download hunreds of megs of app updates almost every day I haven't really thought of it as a large problem Aug 24 22:46:01 actually the extra 8mb does make a huge difference down under where data rates are high and you are updating 10,000 users all on the same company data plan Aug 24 22:46:08 let's see today... Aug 24 22:46:25 ah, right. linkedin-update at 182MB and facebook messenger at 112MB Aug 24 22:46:41 (iOS) Aug 24 22:46:46 lol Aug 24 22:47:40 so when the next step of delta updates happens, and elements like these segments in android that are deep linked to and on the fly execution with no download Aug 24 22:47:57 that is going to be a no no the more the platform.....erm.....becomes platformish ? Aug 24 22:49:39 How do I "reset" my emulator, removing all the application I uploaded on it? Aug 24 22:50:13 arancio switch in the manager pannel Aug 24 22:50:17 clear on start or something Aug 24 22:50:23 "Wipe data"? Aug 24 22:50:27 ya Aug 24 22:50:30 Thanks! Aug 24 22:51:13 I think that the "hot upload" sometimes fails and you run old code Aug 24 22:51:28 1st thing I turn off is instant run Aug 24 23:08:54 Is it ok to reuse an adapter when recreating a ListView in onCreateView? Aug 24 23:10:01 arancio: yes its okay Aug 24 23:10:36 MoshDev: thanks! Aug 24 23:14:09 JakeWharton: Quick question, now that I'm targeting SDK 24 (and this might just be correlation but..), Picasso isn't loading the placeholder (or error) for null imagepaths. Is this something you've heard about or do you think I should deal w/ loading that fallback image another way? Aug 24 23:16:51 Haven't heard or seen anything Aug 24 23:17:15 Placeholder is literally just calling setImageResource on the main thread Aug 24 23:17:34 Okay I'll do a big of digging and let you know what I find Aug 24 23:17:37 bit* Aug 24 23:23:17 btw thanks JakeWharton butterknife 8.3 seems to be working fine with Jack so far Aug 24 23:23:47 Excellent! Aug 24 23:23:55 looking through the android source, it seems set/get arguments is almost exclusivly used with dialogs, only the mail settings wizard uses it for fragments Aug 24 23:24:57 it seems the standard way to handle static fragments is to have if(fragment instanceof Foo) in the onAttachFragment method Aug 24 23:25:59 dont think I have ever used a static fragment Aug 24 23:26:23 what would be the need of it being a fragment ? Aug 24 23:29:22 StingRay_: most of the examples I see for that is so that it can be embedded in the current activity, or launched in a separate activity depending on screen size Aug 24 23:38:15 oh, so when using a static fragment in an activity, the samples just use getActivity().getIntent() directly Aug 24 23:40:39 https://github.com/android/platform_development/blob/master/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/DetailViewExampleFragment.java#L116 Aug 24 23:44:10 I'm trying to render camera preview onto a surfaceview with the old camera API. It seems like I need to setZOrderOnTop(true) on the surfaceview to make the preview show up. Aug 24 23:44:39 JakeWharton: So it turns out it's not drawing the imageview's src in front of the background Aug 24 23:45:18 Is there a way to have the surfaceview at a lower Z order? Aug 24 23:50:07 Anyone here familiar with developing using the NDK? Aug 24 23:50:19 w/ Android Studio Aug 24 23:56:04 octobit, me Aug 24 23:58:55 Do you know how the AndroidManifest file is supposed to be set up to see the native activity? Aug 24 23:59:30 I'm reading Android NDK Beginner's Guide and it's a little vague on how all of these pieces fit together, also it uses Eclipse which is a PIA. Aug 25 00:00:10 JakeWharton: So nothing to do w/ Picasso, but 24 was setting a tint on my image that was hiding the image (white on white) so I thought Picasso wasn't setting it. Not sure where this tint is coming from but false alarm anyway Aug 25 00:05:39 octobit, sorry have never done native activities Aug 25 00:05:45 only native function calls Aug 25 00:06:00 Ah gotcha, yeah I'm trying to take it a step further. Aug 25 00:06:09 I think I'm being tripped up in the AndroidManifest. Aug 25 00:06:09 why though? Aug 25 00:06:47 Are you rendering something in C++ and sending it back to the view as a bitmap? Aug 25 00:07:02 No I want to fully implement an Android game in c++ Aug 25 00:07:26 Haha - that's a neat challenge, I think Aug 25 00:08:11 octobit: you might try downloading Unreal Engine or Unity, and having it generate an Android project, and see what they do Aug 25 00:08:35 That's a good idea Aug 25 00:14:40 Why do this line generates a "try-with-resources" warning (all objects are OkHttp objects)? Code: try (Response response = client.newCall(request).execute()) Aug 25 00:14:58 "Why does this line generate" etc. Aug 25 00:15:13 There are no resources involved Aug 25 00:19:13 use curly braces not parens Aug 25 00:22:27 missingno: thanks. I copyed that code without understanding that it's a mix between C#'s using and try. Aug 25 00:22:42 false friends from now and then Aug 25 00:23:49 arancio: you need to close the response body Aug 25 00:24:07 So yes, there is a resource involved Aug 25 00:24:12 JakeWharton: yes, I'm doing it in a finally clause Aug 25 00:24:23 I mean, now Aug 25 00:25:35 missingno: parens is the try-with-resources syntax Aug 25 00:26:14 JakeWharton: actually, I didn't understand what "resource" meant. I read about try-with-resources now. I don't know why lint says I can't use it but I'm closing the resource in a finally clause now. Aug 25 00:26:25 it's minSdk 19+ only Aug 25 00:26:38 but yeah finally will work otherwise! Aug 25 00:27:25 http://pastebin.com/JpraHau3 Aug 25 00:29:49 thanks JakeWharton and missingno Aug 25 00:49:11 Sup shmooz Aug 25 00:54:07 Why do someone needs to explicitly order "switch to auxiliary power" when then "main power grid" fails, in Startrek? Aug 25 00:56:38 to move the plot forward Aug 25 00:56:54 as if spaceship battles wouldn't be over before any humans even realized what happened Aug 25 00:57:19 the whole "it's like the age of sail but in space" thing is pretty laughable if you think about it Aug 25 00:57:31 considering the state of the art of air combat today Aug 25 01:18:25 new platform-tools & build-tools Aug 25 01:23:21 "high demand for galaxy not 7" Aug 25 01:23:25 *note 7 Aug 25 01:23:34 shit ( -- all developers ) Aug 25 01:35:16 <_genuser_> ViewPager, does it cache the fragments added to it? Or the pages? Aug 25 01:35:41 <_genuser_> I change the adapter content and then do a notifyDataSetChanged(), and the associated TabLayout changes. Aug 25 01:36:15 <_genuser_> ViewPager is supposed to be getting a newInstance() based on teh tab selected, but instead, it just keeps showing old pages. Aug 25 01:36:16 high demand? or, "strong initial sales" :-/ Aug 25 01:39:39 7" phablet... and here I laughed at 6" smartphones 😉 Aug 25 01:47:44 note7 hardware is gorgeous, but fuck touchwiz :| Aug 25 01:48:05 _genuser_, viewpager should have a setCacheSize or so to determine how many pages stay loaded. Aug 25 01:50:20 speaking of the note7 Aug 25 01:50:39 I saw this article on some phone comparison site that listed its AnTuTu benchmark score Aug 25 01:51:02 and they had to quote a third party site just for the comparison, because it’s so hard getting 5 different devices together and running a 2 minute benchmark Aug 25 01:51:25 anyway, the quoted chart scored the iPhone 6s at 59k Aug 25 01:51:55 not that it’s fair to compare architectures Aug 25 01:52:19 it just stood out because AnTuTu used to hail it as the third fastest phone in their lineup Aug 25 01:52:36 nonsense benchmarks Aug 25 01:53:09 ok what JDK do we need for building 6.0.1 Aug 25 01:53:35 ive used 7 and 8 everytime it says wrong version Aug 25 01:55:03 its really getting irritating ive been trying to build RR for a couple days now and i keep running into issues Aug 25 01:55:32 kode54 does the note7 have a qualcomm / exynos depending on which market its for? Aug 25 01:57:23 touch wiz was ok, but the rest of Sprint bloat did slow the UI Aug 25 01:57:28 this is cool https://techcrunch.com/2016/08/23/scandy-3d-scanning-on-android/ Aug 25 01:57:34 they have an SDK too Aug 25 01:58:24 g00s, the article did make note of that Aug 25 01:58:54 sub millimeter accuracy, nifty Aug 25 02:02:32 gradle plugin 2.1.3 ; hm no release notes for .1 , .2, or .3 Aug 25 02:02:37 go google Aug 25 02:05:50 <_genuser_> darken: thanks, I'll have to take a look. Aug 25 02:06:29 <_genuser_> I'm setting the adapter content to null, so that it return getCount() of 0. and the ViewPager still shows one of the last loaded tabs. Aug 25 02:06:37 <_genuser_> I would have expected it to just go blank. Aug 25 02:06:53 so i know maven 3 is required for CM builds what exactly is maven guys? Aug 25 02:08:07 _genuser_, need to call notify... Aug 25 02:08:23 RLShiftyDoggit, software repository Aug 25 02:09:08 will i need that to build Resurrection Remix Aug 25 02:09:31 <_genuser_> darken: I do. I have public class SectionsPagerAdapter extends FragmentPagerAdapter{}, inside I have set var to null, notifyDataSetChanged(); Aug 25 02:10:04 RLShiftyDoggit, try #android-root Aug 25 02:10:50 darken last time i was in android-root they told me to come here lol Aug 25 02:10:53 <_genuser_> android.support.v4.view.ViewPager says doesn't have a setCacheSize Aug 25 02:11:28 RLShiftyDoggit, i see, just not much custom ROM building going on here, might have more luck on XDA? Aug 25 02:12:03 not really sadly Aug 25 02:12:32 ive tried the CM IRCs they are kinda dead Aug 25 02:14:24 anyone get the Nougat sources downloaded in Android Studio successfully yet? I saw someone post that it is available but I'm not seeing it in my SDK manager Aug 25 02:14:28 <_genuser_> darken: thanks for your help. I had to look into it a little more. apparently it's a well seen problem. Aug 25 02:14:51 <_genuser_> isn't fixed yet, but I guess I'm gonna have to google a bit more. Aug 25 02:28:26 <_genuser_> darken: btw, FragmentPagerAdapter is supposed to keep the views once created. FragmentStatePagerAdapter is what is needed here. it works. Aug 25 02:34:51 hi is the Samsung SCH-R380 an android phone? I can't find info online and the screen is locked with a password Aug 25 02:36:40 gonna go with no Aug 25 02:36:52 and this is #android-dev Aug 25 02:38:00 panda81: this is an software development channel. Please use #android Aug 25 02:44:12 arancio: I wish to know if it's 2.x and what API level it could support **** ENDING LOGGING AT Thu Aug 25 02:59:58 2016