**** BEGIN LOGGING AT Tue Apr 26 02:59:58 2016 Apr 26 04:10:50 howdy Apr 26 04:15:58 g00s, http://android-developers.blogspot.com.uy/2016/02/android-support-library-232.html Apr 26 04:16:14 and https://plus.google.com/+AndroidDevelopers/posts/BZgzpAqkd8G Apr 26 04:16:25 g00s, I just fixed my problem, check it just in case it helps you too Apr 26 04:20:25 anybody have an issue with The following SDK component was not installed: sys-img-x86-addon-google_apis-google-21 Apr 26 04:20:28 on a mac Apr 26 04:35:35 anybody have an issue with The following SDK component was not installed: sys-img-x86-addon-google_apis-google-21 on a mac Apr 26 05:03:01 what do you think about using AWS services as a backend for a mobile app? Apr 26 05:03:38 depends on what you need in a backend, but it would be sorta cool to let AWS handle all of your backend storage Apr 26 05:03:43 google cloud is cheaper Apr 26 05:04:05 aws is free for 1 year.. Apr 26 05:04:14 thats how they get you Apr 26 05:04:19 doesn't say anything Apr 26 05:05:44 min2: you may probably try to re-register free accounts once a year Apr 26 05:06:01 but it asks credit card info when you register Apr 26 05:06:25 so it doesn't really mean anything, google is two times cheaper Apr 26 05:09:36 huhh never tried google for backend service.. will try next time Apr 26 05:09:58 haven't tried it too Apr 26 05:10:10 please tell about aws Apr 26 05:10:16 how is it Apr 26 05:10:52 there is also that thing, http://apigee.com/about/ Apr 26 05:12:08 One of my project backend in aws Apr 26 05:12:15 our backend team they are using it.. Apr 26 05:12:47 you have a team who does backend Apr 26 05:12:52 :) Apr 26 05:13:03 yes.. Apr 26 05:13:09 what country is it Apr 26 05:13:17 web services in PHP Apr 26 05:14:03 they write service on server side in PHP? Apr 26 05:14:03 i dont have much experince with backend service.. but i can work on it.. if will get a chance.. Apr 26 05:14:08 yes Apr 26 05:17:12 I have heard about Apigee alot.. Apr 26 05:25:58 backend team is using it too? Apr 26 05:42:46 squ lol Apr 26 05:42:51 no Apr 26 05:42:56 :) Apr 26 05:43:00 ok Apr 26 05:45:48 min2: if it's php then trust me, you dont want to touch it :P Apr 26 05:55:38 can anyone tell me why ListView is still such a pain to use after almost? a decade of android? Apr 26 05:56:07 Can't we just get rid of ListView and replace it with something useful? Apr 26 05:56:15 TellYouHwat LV, well you can use RecyclerView which is Pain 2.0 Apr 26 05:56:41 Oh, so we aren't eradicating pain here at Google, then. Apr 26 05:56:46 No, we're improving the pain. Apr 26 05:57:01 the pain gets recycled Apr 26 05:57:18 I wish I could recycle my phone right about now... Apr 26 05:57:41 recycle the motherfucker right into a brick wall Apr 26 05:57:48 send the pain below Apr 26 05:58:15 Shit rolls down hill, but I think methane floats Apr 26 06:00:57 populate a listview from sqlite database Apr 26 06:01:20 but apparently I can't use a cursor to do it, because the person that developed sqlite.net sucks at life and should be permabanned from github Apr 26 06:04:23 android is chinese quality os Apr 26 06:05:46 I understand why google guys left this channel :) Apr 26 06:06:23 https://twitter.com/romainguy/status/723204876528799744 Apr 26 06:06:32 > I’ll be at Google I/O to talk about What’s New in Android Apr 26 06:09:58 I can tell you what isn't new Apr 26 06:10:03 Fucking ListView, that's what Apr 26 06:10:37 no? Apr 26 06:11:15 If you're ListView, no means yes Apr 26 06:13:19 ))) Apr 26 06:30:31 http://i.imgur.com/0JPdnhu.png Apr 26 06:31:27 How can I see when a ContentProvider is killed after onTrimMemory is at level 80? Apr 26 07:10:45 Hello everybody. I got a marshmallow device and was trying to port my launcher which was supporting Lollipop to marshmallow Apr 26 07:11:22 This is working fine but there are some permissions which are required by my launcher. By default no permissions are granted by default. Apr 26 07:11:48 how can I give these permissions to launcher by default ? Apr 26 07:13:40 hi g00s can you help me out Apr 26 07:15:09 I tried the same thing with the default launcher. If i clear data from the storage then by default it allows required permissions Apr 26 07:30:52 Anyone there who can help me out in the permissions issue which i am facing ? Apr 26 07:31:03 just ask Apr 26 07:31:33 hi gdrc Apr 26 07:31:49 I got a marshmallow device and was trying to port my launcher which was supporting Lollipop to marshmallow Apr 26 07:31:59 hello ^^ Apr 26 07:32:08 This is working fine but there are some permissions which are required by my launcher. By default no permissions are granted Apr 26 07:32:20 how can I give these permissions to launcher by default ? Apr 26 07:32:51 I tried the same thing with default launcher. Clearing data doesn't affect the permissions of the default launcher Apr 26 07:33:09 default means AOSP launcher Apr 26 07:33:16 any ideas Apr 26 07:33:17 ? Apr 26 07:34:08 I also made a sample app and tried with that and the results are same. If i do a clear data for the sample app then the all the permissions are not granted by default Apr 26 07:34:38 well thats Marshmallow for ya Apr 26 07:34:43 hi fellas Apr 26 07:34:48 a workaround is to target sdk 22 Apr 26 07:35:22 I am targeting sdk version 23 Apr 26 07:35:31 I have a project that I've called "starter", for stuff I do day-to-day, right now it includes logging for some platforms like twitter and google and dropbox Apr 26 07:35:37 how can I ..librarize this? Apr 26 07:36:13 android M introduces runtime permissions. from my experience they are meh :\ Apr 26 07:36:47 How exactly is targeting SDK 22 a workaround? Apr 26 07:36:54 Your app will just crash when people disable permissions then. Apr 26 07:37:05 + Apr 26 07:37:32 but disabling permissions requires effort Apr 26 07:37:48 Huh? Apr 26 07:38:01 Ashiren, yeah I understand that. and if the permissions are not granted then i can ask it from the user in runtime Apr 26 07:38:12 eeyup Apr 26 07:38:29 Odaym, make a .jar library (if you're not using resources) or an .aar (if you are) Apr 26 07:38:44 then include it as a dependency\ Apr 26 07:38:46 resources as in drawables and whatnot? Apr 26 07:38:49 Ashiren, But in settings -> apps ->launcher -> storage , if i clear data and then check the permissions. Then it changes to "No permissions granted" Apr 26 07:38:51 yeah, anything in res Apr 26 07:39:06 sunny_slls, that's pretty much default behaviour Apr 26 07:39:14 sunny_slls, you can't grant permissions by default for an installed app Apr 26 07:39:28 Mavrik, that is what i thought Apr 26 07:39:32 then ask again Apr 26 07:39:38 Which makes sense if you think about it. Apr 26 07:39:46 ok, but also I mean to ask that ..how can I expose this to the user (coworker), cause ok I made the jar and they included it, where is the code that they can now use to say something like "includeGoogleLogin()"? Apr 26 07:40:08 Mavrik, and I also have an AOSP launcher and i tried installing that and followed the same procedure with it Apr 26 07:40:24 it's just a normal set of classes that you include, it's the same as writing your own classes... Apr 26 07:40:30 Odaym, same way you use it already, the classes / methods will show up Apr 26 07:40:34 yep Apr 26 07:40:36 ok thanks Apr 26 07:40:37 it turned out to be fine and after clear data the permissions weren't affected Apr 26 07:40:55 the permissions didn't switched off Apr 26 07:41:22 aosp is system eh? Apr 26 07:41:27 they are priviliged Apr 26 07:41:40 but I installed this one Apr 26 07:41:41 sunny_slls, thing is, you need to be ready to have permissions denied anyway Apr 26 07:41:53 So not sure what you're goal is. Apr 26 07:42:06 Same thing can happen at any time on a 6.0 device (user goes and disables a permission) Apr 26 07:42:13 No matter what you target. Apr 26 07:42:27 Does AOSP launcher even use dangerous permissions? Apr 26 07:42:37 no Apr 26 07:42:58 yes it does Apr 26 07:43:24 Which ones? Apr 26 07:44:06 which directory is the best to extract my kernel source too? I want to hold my system clean Apr 26 07:44:41 hi guys! anyone have experience with migrating multiple connected projects from eclipse to android studio? Apr 26 07:44:50 uh :) Apr 26 07:44:51 they're pretty old.. java version 1.7 Apr 26 07:45:02 i don't mean that java 1.7 is old but the project itself.. Apr 26 07:45:05 Take a gradle template and add it manually. Apr 26 07:45:11 Until it compiles in command-line Apr 26 07:45:13 that would be the best option right? Apr 26 07:45:14 Then import into AS Apr 26 07:45:40 Mavrik, CALL_PHONE Apr 26 07:45:43 well android still doesnt support java 8 (or N preview does?) Apr 26 07:45:43 hm.. ok i didn't understand correctly. so adding the gradle file to eclipse project correct? Apr 26 07:45:57 ok that's cool from one side... Apr 26 07:46:38 Files. Apr 26 07:46:53 Arrange them into gradle modules, configure them, etc. Apr 26 07:47:35 hm.. Apr 26 07:47:57 gradle modules means, create build.grade file, put the source code to app folder .. anything else maybe? Apr 26 07:48:13 Mavrik, I rooted the marshmallow device and placed the apk in the /system/priv-app too. Still the results are the same Apr 26 07:48:31 If i do clear data then all the permissions get disabled Apr 26 08:10:12 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.ADD)) << on few devices, it crashes, despite "Added in API level 1" Apr 26 08:10:15 WTF Apr 26 08:10:54 crashes with what? Apr 26 08:11:22 #00 pc 000cce5e /system/lib/libskia.so (SkProcXfermode::xfer32(unsigned int*, unsigned int const*, int, unsigned char const*) const+61) Apr 26 08:11:35 huh nice Apr 26 08:11:43 What kind of brand of devices? :) Apr 26 08:11:49 direct A/libc: Fatal signal 11 (SIGSEGV) at 0xb3eb597f (code=1), thread 8246 (Thread-488) Apr 26 08:11:57 Mavrik, a very cheap bad one, but still Apr 26 08:12:03 (a cheap haier tablet) Apr 26 08:12:40 there were few lines involved hairline mode (when strokewidth is 0), but i tested also without hairline mode, still crashing lol Apr 26 08:12:43 damn Apr 26 08:13:32 I guess they broke skia :P Apr 26 08:13:35 time to google & stackoverflow Apr 26 08:13:44 and the ADD operation is one of the simplest Apr 26 08:18:57 with PorterDuff.Mode.SCREEN i got similar "effect" and it does not crash Apr 26 08:19:14 (of course i found nothing relevant when searching for my issue) Apr 26 08:22:21 any gradle enthousiasts in the house? http://stackoverflow.com/questions/36858686/how-to-selectively-add-srcdir-to-flavor-depending-on-a-custom-extension-variable Apr 26 08:23:27 xorgate: isnt that done with compileOptions? Apr 26 08:24:07 it's really silly imo to do all of that by hand in the gradle file when you can literally have different compile versions Apr 26 08:24:07 Twirl: dunno? lemme see Apr 26 08:24:49 in the end i want to just specify 'this flavor has ads' and have the script take care of all details Apr 26 08:24:51 xorgate: also, buildTypes Apr 26 08:25:07 yea, i meant buildTypes, my bad Apr 26 08:25:48 i get this error when trying to port nethunter PLEASE HELP!!: http://pastebin.com/hE062ZL5 Apr 26 08:25:49 but using buildTypes i get a variant XAds and XNoAds, I don't want a XNoAds Apr 26 08:26:15 xorgate: what Apr 26 08:26:43 twirl: 3 flavors and 2 buildtypes --> 6 variants Apr 26 08:27:17 2 girls 1 cup Apr 26 08:27:18 but wow, performance impact is crazy with PorterDuff.Mode.SCREEN, from 42FPS without to 9FPS with!!! Apr 26 08:27:40 yes you should be able to have as many buildTypes as you want? "Specifies a build-type for a native binary. Common build types are 'debug' and 'release', but others may be defined" so you can define as much as you want. Apr 26 08:28:13 xorgate: you can do that manually from AS as well Apr 26 08:28:14 my point is that i dont' want combinations of flavors and buildtypes, i want a certain flavor to have ads, and another flavor to not have ads Apr 26 08:28:35 thats pretty much the definition of a build type Apr 26 08:28:47 or its purpose Apr 26 08:29:00 if i use a buildtype i get several variants per flavor, one with ads and one without Apr 26 08:29:28 i only want shops+ads and restaurants+withoutads for example Apr 26 08:29:44 so 2 variants, not 4 Apr 26 08:29:46 why can't you do that with buildTypes Apr 26 08:30:00 because then i have variants i will never want to use Apr 26 08:30:10 no if you don't want it don't add it Apr 26 08:31:22 is it really that tiresome to comment uncomment a line? seriously, also, that's worst case scenario Apr 26 08:31:58 Build -> edit Build types or edit Flavors Apr 26 08:34:59 xorgate: "compile and Compile." http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Types Apr 26 08:36:49 Twirl: a flavor having ads or not means: adding specific sourcedirs, adding specific resourcedirs, adding specific libraries. it's definitely not a 1 line thing Apr 26 08:37:06 code for handing ads should not end up in the app that does not use ads Apr 26 08:38:11 you could have the ads config in a different file and then comment/uncomment the different include/config Apr 26 08:38:48 please help: http://pastebin.com/bxdy35DP Apr 26 08:39:53 tim241: porting nethunter to android? Apr 26 08:40:12 anyways, the linux kernel is not the same as the android kernel for quite a while now Apr 26 08:40:12 yes Apr 26 08:40:49 xorgate: i think the whole point of buildTypes is what you are describing, please take a look at the link Apr 26 08:41:01 twirl: i don't think it is Apr 26 08:41:20 or i need to find a way to ignore certain variants Apr 26 08:41:57 seriously, what's wrong with  Compile ? Apr 26 08:43:23 please help me Apr 26 08:43:27 dependencies {flavor1Compile project(path: ':lib1', configuration: 'flavor1Release')} this is from the link i gave you Apr 26 08:44:26 tim241: the program isn't going to run on android because it runs on linux, might be a good idea to look at the code and write one that works on android Apr 26 08:44:55 Twirl: what about the resources then? they also vary depending on ads/noads Apr 26 08:45:05 this is my first ever kernel build so please help me: http://pastebin.com/bxdy35DP i did not create the tutorial Apr 26 08:45:11 here are the links Apr 26 08:45:19 xorgate: it's all there in the link i gave you Apr 26 08:45:36 android studio 2.0 debug is meh, it doesnt watch for variables befores breakpoint Apr 26 08:45:43 anyone knows something about this Apr 26 08:46:09 https://github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter and https://github.com/offensive-security/kali-nethunter/wiki/Modifying-the-Kernel and https://github.com/offensive-security/kali-nethunter/blob/master/nethunter-installer/README.md I use linux mint 64 bit Apr 26 08:46:30 please help Apr 26 08:47:08 tim241: oh man, you are pretty far from being able to do all of that, I can tell Apr 26 08:47:19 why? Apr 26 08:47:40 just tell me what the problem is? Apr 26 08:47:50 Twirl: i appreciate you trying to help, but i don't see how it's the solution. 2 buildtypes will mean twice as many variants as i want Apr 26 08:48:25 Twirl ^^ Apr 26 08:48:26 the problem is that for working on stuff like that you need to have a general idea of what you are doing, so in case an error pops up you have resources or some clue of where to look at, but you have none, you are doing something you have no clue about, following a tutorial Apr 26 08:49:02 just tell me what I need to do to fix it? Apr 26 08:49:13 tim241: post the question in SO with that stacktrace, maybe you have some luck Apr 26 08:49:44 do you know how to fix it? Apr 26 08:50:00 xorgate: i don't understand why adding one buildType will add more variants than you want, maybe you want a different flavor then? Apr 26 08:50:30 twirl as i understand: the amount of variants is: nrBuildTypes * nrFlavors Apr 26 08:50:49 "Build Type + Product Flavor = Build Variant" this is taken from the link i gave you man, just go and read all of it Apr 26 08:52:16 most things to you are meh, lol Apr 26 08:53:05 did you know that in AS you can right click > Analyse > Analyse Data Flow From Here/ To Here? Apr 26 08:53:11 without the need for launching the debugger Apr 26 08:53:17 so don't tell me meh Apr 26 08:53:25 brush Apr 26 08:53:29 bruh* Apr 26 09:13:36 how can I find my kernel config? Apr 26 09:41:16 I love how I was just in the middle of writing this Apr 26 09:41:18 try { Apr 26 09:41:18 TwitterAuthConfig authConfig = new TwitterAuthConfig(consumerKey, consumerSecret); Apr 26 09:41:18 Fabric.with(ctx, new Twitter(authConfig)); Apr 26 09:41:18 } catch (TwitterAuthException e) { Apr 26 09:41:18 throw new Excepti.... Apr 26 09:41:19 } Apr 26 09:41:37 if you catch the exception, throw an exception Apr 26 09:43:47 Exception up = ... Apr 26 09:43:49 throw up; Apr 26 09:44:38 lel Apr 26 09:57:57 hello Apr 26 09:58:16 if you put code in backend, will play store accept your app? Apr 26 10:04:18 Hey. quick question, is it possible to introduce math in xml in this case: http://pastebin.com/epfRRTnQ where I align a textview based on another imageView's position? e.i -20dp from the alignLeft, or is this something I'd have to do in Java? Apr 26 10:04:31 Hello guys, i have the same issue like the threadstarter here: http://stackoverflow.com/questions/36614172/unable-to-upload-new-apk-file-to-android-play-store-android-pay-permission My current apk-update was rejected and my previous update is now published again. My app does not need google pay..... Apr 26 10:04:58 FIRST: I dont understand why my previous one is ok (using com.google.android.gms: play-services:7.5.0) and my current one is not ok (using com.google.android.gms: play-services:7.5.0 as well). Apr 26 10:05:09 SECOND: if i have to remove com.google.android.gms: play-services:7.5.0 from gradle and use only the services i really need, how do i find out which services i really need? Apr 26 10:21:06 wwwi: lmao, what is that supposed to mean? Apr 26 10:21:10 Hey guys, I'm experiencing kernel panics in my 5X, looks like the kernel tries to dereference some memory which it shouldn't. I have made a ticket at code.google.com/p/android with logs included, should that be enough or do I need to escalate this any further? Apr 26 10:21:23 wwwi: everyone knows back-end code is forbidden Apr 26 10:24:16 Or maybe this channel is mostly for app development and not kernel stuff? Just saw the topic :) Apr 26 10:24:45 can I make a new row in a TextView from the "name_view.setText(prefs.getForeName());" method some way? I have a vague memory that you could do something like "/*" or something? Apr 26 10:42:11 Bernzel_, you can add negative value, but you cannot do maths op like "10dp -20dp" Apr 26 10:42:49 usually, you should not use negative value though. Better find another solution Apr 26 10:53:31 Hello. Apr 26 10:53:42 ohai Apr 26 10:55:11 So, I know basic java and some basic android. Apr 26 10:55:28 Are there any good resources about openGL es programming on android? Apr 26 10:56:13 many books are out there Apr 26 10:56:49 Hmmm. Apr 26 10:57:08 Is it even a good idea to do openGL programming in java on android? Or should I go with C++ and NDK? Apr 26 10:57:18 C++ Apr 26 10:57:24 To be honest, I have a lot more experience programming C++ than I have with java. Apr 26 10:57:33 that is why xD Apr 26 10:58:38 if its for gaming, it would be bette to use some framework/engine like libgdx Apr 26 10:58:45 even if not purely for game Apr 26 10:58:55 I do it for learning purposes. Apr 26 10:59:17 Otherwise I would just go with Unity/UE Apr 26 11:03:36 adq: I see, what other solution might be worthy a try? Apr 26 11:03:57 hi haffe!!!! Apr 26 11:04:20 Hello! Apr 26 11:04:24 alright libgdx being advocated more here Apr 26 11:04:28 wtg guys Apr 26 11:04:33 embrace the easy Apr 26 11:11:52 if I want to implement Google Login, what other option do I have if I don't want the activity having 3 unimplemented methods that come from implementing ConnectionCallbacks and OnConnectionFailedListener? Apr 26 11:13:12 anonymous class Apr 26 11:13:53 but it's strange how I only need the onConnectionFailed anonymous class to satisfy what enableAutoManage needs Apr 26 11:14:07 I could've just deleted the two other methods, it just complains about connectionFailed not being implemented Apr 26 11:14:08 cool Apr 26 11:16:59 what do you think of this? http://pastie.org/10813446 Apr 26 11:17:13 this implements Google, Twitter, Dropbox and Facebook login Apr 26 11:17:26 why should you import all that? Apr 26 11:18:04 that is not needed Apr 26 11:18:17 how is it not needed Apr 26 11:18:51 ah it's not coloured in Java either, here it is again http://pastie.org/10813451 Apr 26 11:19:00 you think this is easier than the stuff you have to write to implement those logins? Apr 26 11:19:05 you import twitter, dropbox, google, twitter for login why? Apr 26 11:19:20 it's a test module that Im writing that will support those logins Apr 26 11:19:33 all the nitty gritty is back in other files Apr 26 11:19:35 ow that explains why Apr 26 11:19:40 xD Apr 26 11:19:42 this one you're seeing only handles callbacks Apr 26 11:20:11 except for Google where the apiClient is very customisable and it doesn't make sense to build it on your behalf Apr 26 11:22:00 where is hookUp function Apr 26 11:22:22 where does it comes from Apr 26 11:22:27 in the respective classes corresponding to each platform Apr 26 11:22:31 I wrote those Apr 26 11:22:45 so you just say hookup, and take care of getting the correct keys into the function Apr 26 11:22:54 you write wrapper class around each of twitter/facebook/etc Apr 26 11:22:58 yea Apr 26 11:23:00 in which you implement hookUp Apr 26 11:23:21 but facebook has facebook login button Apr 26 11:23:33 yea, that's what you pass to hookupFacebook Apr 26 11:23:40 its barely even 2 times easier than the manual way Apr 26 11:23:49 but I don't know, just wanted to try and make something utility Apr 26 11:24:27 if you make an utility you have to prove it utilizes something Apr 26 11:24:37 yea, this one doesn't do much Apr 26 11:25:43 what exactly was the point Apr 26 11:25:57 that I can use this later in any project Apr 26 11:26:10 what? hookUp function? Apr 26 11:26:15 yep Apr 26 11:26:35 and nothing to implement in the activity itself like having it implement any interface for Google or any other Apr 26 11:26:57 I just use hookup and handle the result in either onResume (for Dropbox) or onACtivityResult for others Apr 26 11:27:02 but they are all different, aren't they Apr 26 11:27:25 well it's not the same hookup method, there are 4 classes, each with a different hookup function Apr 26 11:27:49 for example facebook hookUp overrides ‘onSuccess’, twitter hookUp overrides ‘success’ Apr 26 11:28:05 dropbox hookup does this http://pastie.org/10813461 Apr 26 11:28:57 does what Apr 26 11:29:05 sets on click listener Apr 26 11:29:24 and the auth! Apr 26 11:29:27 haha Apr 26 11:29:32 that's FOUR lines Apr 26 11:29:38 what is the point Apr 26 11:29:41 exactly Apr 26 11:29:43 ? Apr 26 11:29:49 eh, just trying i guess Apr 26 11:29:53 ok Apr 26 11:30:25 Lets type Apr 26 11:32:37 it's neater Apr 26 11:32:40 and that matters Apr 26 11:35:14 Odaym: guys decided to rewrite vim editor (neovim), I asked why. They told because we write neater source code Apr 26 11:35:33 guys? Apr 26 11:35:43 which guys Apr 26 11:35:51 random retards from internet Apr 26 11:35:57 mainly because I can Apr 26 11:35:58 guys who decided to rewrite vim editor (neovim), obviously Apr 26 11:36:03 and coworkers will be able to use it later Apr 26 11:36:59 so, we keep chatting a little bit more, and I discovered that they (guys) wrote a letter to original vim author asking who will maintain vim when he dies Apr 26 11:37:15 oh god Apr 26 11:37:28 that's what open source community is Apr 26 11:37:28 well that's just retarded Apr 26 11:37:35 so are you Apr 26 11:37:38 that's what several guys you met are Apr 26 11:37:41 2:32:38 PM - Odaym: it's neater Apr 26 11:37:41 2:32:40 PM - Odaym: and that matters Apr 26 11:37:44 ^ that's retarded Apr 26 11:37:46 it would be foolish to speak as you are speaking Apr 26 11:37:50 don't be like those guys Apr 26 11:38:14 don't run your mouth if you have nothing useful to say man Apr 26 11:38:24 it's not an obligation to reply Apr 26 11:39:49 you owe your career to the open source community, pleb Apr 26 11:41:59 Are there people in this chat who worked web developer in the past? How much time does take transition from web development into android development? Apr 26 11:41:59 I'm Ruby on Rails developer. I'm familiar with C# and Java. I only need to learn Apr 26 11:41:59 Android API. Apr 26 11:41:59 My estimate is one year of reading docs every day (every evening after job). And I plan to take vacation for 2-3 months for writing freeware android apps to get some real experience. After that I plan to start searching android freelance jobs. Apr 26 11:42:01 But 1.5 year is too long period of time :( Apr 26 11:42:28 doesn't take that long really Apr 26 11:42:33 1.5 years is way too long Apr 26 11:42:40 Nah learning android is pretty easy if you know C#/Java Apr 26 11:42:53 you're already a programmer Apr 26 11:43:14 I knew nothing about android, and I had to write my companys app from scratch :) took about 2 months Apr 26 11:44:17 must've been a simple app Apr 26 11:44:30 no, he seems pro Apr 26 11:44:34 he sounds pro, bro Apr 26 11:45:04 you'll find tons of help online patrick_star_2, just get started Apr 26 11:45:59 I don't think API is the problem on learning android Apr 26 11:46:29 lifecycle was something that took a little while for me to internalize Apr 26 11:47:14 there's difficulty across the board, but not 1.5 years at all Apr 26 11:47:43 the biggest problem right now is the huge amount of crappy tutorials and deprecated or just old documentation Apr 26 11:47:56 it's a beginner-oriented community Apr 26 11:48:25 the pros are hidden Apr 26 11:49:25 reading docs for a year seems stupid Apr 26 11:49:32 and he's not going to do it :P Apr 26 11:49:38 I'm afraid that when I will take android freelance job, customer will ask me to implement complicated UI with beautiful design. That's my biggest fear. Apr 26 11:49:38 I already know how to write android programs with simple UI. Apr 26 11:49:38 I found very good website with android development tutorial. Website is in russian. I'm from Belarus and I speak russian language in real life. Actually i prefer to read docs in english, but this russian website is really cool. Apr 26 11:49:38 https://translate.google.com/translate?sl=ru&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fstartandroid.ru%2Fru%2Furoki%2Fvse-uroki-spiskom.html&edit-text=&act=url Apr 26 11:49:41 There are 176 lessons on this website. I think that only first 100 lessons are really necessary. Apr 26 11:49:43 Doing 100 lessons (every day in the evening after workday) will take at least 6 months. Apr 26 11:50:11 man you can't go study everything in the world and then start Apr 26 11:50:21 just start Apr 26 11:50:26 to learn how to do stuff, you do stuff Apr 26 11:50:48 by reading all those things, you'll learn how to read very well Apr 26 11:50:48 I already completed 12 lessons from this russian website. Apr 26 11:50:55 And I wrote simple app: Apr 26 11:50:56 https://github.com/sigmaray/android-hello-world Apr 26 11:51:41 this.handleButtonClicks() ? Apr 26 11:52:10 get a book, what you've been following online is crap Apr 26 11:53:06 Odaym: Which book you can recommend? I'll buy it. Apr 26 11:53:07 handleButtonClicks there just has a poorly chosen name, it doesn't mean anything Apr 26 11:53:36 * Zharf can't recommend any books as he never read any Apr 26 11:53:56 avoid youtube tutorials, i can recommend that Apr 26 11:54:08 and it applies to fields beyond android or programming Apr 26 11:54:12 what about liveleak tutorials Apr 26 11:54:18 and traffic Apr 26 11:54:23 vimeo! Apr 26 11:56:30 check Big Nerd Ranch Apr 26 11:56:37 they're the best at ..everything Apr 26 11:56:52 http://www.amazon.com/Android-Programming-Ranch-Guide-Guides/dp/0321804333 Apr 26 11:57:16 one of the founders worked at NeXT making Objective C Apr 26 11:57:23 the branding already makes me repulsed Apr 26 12:01:23 Odaym: Thanks! Apr 26 12:01:28 Well, this tutorial is for dummies. May be that's the reason of dumb function names. Apr 26 12:01:28 > by reading all those things, you'll learn how to read very well Apr 26 12:01:28 My problem is that I can't take vacation right now. Now I have only 1-2 hours every day for learning android. It's easy to read docs in 1 hour, but it's difficult to write code for 1 hour every day. When I start coding I'm getting involved in working process and it's difficult for me to stop coding after 1 hour. But if I don't stop coding it's difficult for me to wake up next day and do my regular web development job. Apr 26 12:01:28 So my plan is to read docs for now. Then when it will be possible I'll take vacation for 2 months and spend all the time on writing freeware android apps. Apr 26 12:02:17 what is the diff between appcompat-v4 / v7 / v13? Apr 26 12:02:30 does appcompat-v7 include all features that v4 has? Apr 26 12:02:31 AS is still freezing from time to time because of adb -_-" Apr 26 12:02:47 I understand that reading docs is not efficient way to learn android. But that's only thing I can do for now. When I will be able to take vacation I'll spend 2 months on writing freeware apps from morning to evening. Apr 26 12:02:57 I now use appcompat-v4 but I believe I need v7 — Do I have to add BOTH or will v7 replace v4? Apr 26 12:03:56 then you kill adb, and for unknown reason one of the avd emu switch to offline and you cannot anymore connect to it, kill -9 * Apr 26 12:04:20 What is Android's crypto priority list for the email client? Apr 26 12:04:23 unsigned_long: This is worth a listen : http://fragmentedpodcast.com/episodes/32/ Apr 26 12:04:42 the_fog: do you have a simple answer too? Apr 26 12:04:48 I am having issues trying to find a cipher that both my email server and Samsung Galaxy S7 Edge supports Apr 26 12:05:09 i don't have time for a12 minute podcasts if there's a good article or so instead :D Apr 26 12:05:46 any ideas gang? Apr 26 12:06:45 https://i.imgur.com/ni6hwTD.jpg Apr 26 12:06:52 adq: there is ‘adb kill-server’ command Apr 26 12:07:22 unsigned_long: appcompat v7 has actionbar support / Material design support. v4 does not. (i think) Apr 26 12:07:33 ok :D Apr 26 12:08:10 hey all Apr 26 12:08:12 adq Apr 26 12:08:21 https://i.imgur.com/ni6hwTD.jpg < im not sure i could do that Apr 26 12:08:24 too risky Apr 26 12:09:05 ljubljana Apr 26 12:09:13 is Slovenia Apr 26 12:09:38 squ, i'm on windows on this box ;) Apr 26 12:09:41 Napalm :D Apr 26 12:09:43 Napalm: it needs code for empty click and a bang Apr 26 12:09:52 adq: and Apr 26 12:10:08 that command it doesn't stop windows process? Apr 26 12:10:14 and there is no `kill' command with -9 SIGKILL Apr 26 12:10:17 I have two devices connected. How can I run/debug both at once with android studio? The selection screen doesn't popup Apr 26 12:10:26 was just a weird metaphor, forget it Apr 26 12:10:52 but ‘adb kill-server’ is real command Apr 26 12:10:57 sure Apr 26 12:10:58 but its not kill Apr 26 12:10:59 which helps in such cases Apr 26 12:11:00 Not always... and especially when I have app already launched on one device I have to kill it first and repeat launching.... Apr 26 12:11:05 kill is something specifi Apr 26 12:11:07 +c Apr 26 12:12:04 karab44: I guess adb allows pushing app to specific device, you'll have to read its documentation Apr 26 12:12:56 karab44, edit your configuration, you probably clicked always launch on this device and now you don't see anymore the popup Apr 26 12:12:58 karab44, go to Run > Edit Configurations, under Deployment Target Options check choose Show Device Chooser Apr 26 12:13:01 or disconnect the device Apr 26 12:13:07 popup will be back Apr 26 12:13:09 yea Apr 26 12:15:27 also karab44, you could install the plugin "ADB Idea" for AS Apr 26 12:15:43 pretty convinient for few tasks like restart an activity, clear data, etc Apr 26 12:15:51 (this should be stock with AS imho) Apr 26 12:17:07 ADB idea is great! Apr 26 12:17:29 cause of all that clear data stuff and uninstall Apr 26 12:21:11 twirl back end code is forbidden? and how Facebook and Twitter apps work? Apr 26 12:21:25 something wrong with typing the adb commands? :) Apr 26 12:22:28 ADB idea is for when you have to clear data from the app before reinstalling Apr 26 12:22:32 or uninstall and relaunch Apr 26 12:22:44 really handy Apr 26 12:22:56 3 keys and you can do any combination Apr 26 12:23:09 based on my research games for instance, normally use Internet, only a handful don't require Internet Apr 26 12:23:30 Thanks for your advices. I will spend more time on coding than on reading docs. Apr 26 12:24:13 no Apr 26 12:24:14 :) Apr 26 12:24:23 that's wrong Apr 26 12:24:28 lol Apr 26 12:24:31 :) Apr 26 12:25:18 sorry I have to paste this statement to other channels Apr 26 12:25:52 which one? Apr 26 12:26:24 3:23:30 PM - patrick_star_2: Thanks for your advices. I will spend more time on coding than on reading docs. Apr 26 12:26:34 patrick_star_2, the thing is, you'll reading the docs is part of the coding Apr 26 12:26:48 memorizing stuff beforehand is mostly pointless Apr 26 12:27:28 Mhh. Interesting. Apr 26 12:27:32 when you understand it and you get excited, that's when you code it Apr 26 12:28:13 Does anyone have experience using USB-deices, especially class-compliant audio devices with android? Apr 26 12:30:23 We've been using a libusb-based driver for recording audio using an external USB-Interface, while playing around with AudioRecord, I found that Lollipop and Marshmallow seem to allow recording from USB, too. Unbfortunately, I do not seem to find any documentation on the matter. Apr 26 12:33:04 freiform, http://developer.android.com/guide/topics/connectivity/usb/host.html that might help you Apr 26 12:34:24 sql is just cynical Apr 26 12:34:25 no value Apr 26 12:34:45 oops, squ* Apr 26 12:35:22 ? Apr 26 12:35:26 adq, thanks. Already read that, but I wonder what the mechanics are after I got permission to access my device. Also, the process is not reliable, i.e. sometimes it works without asking for permission, sometimes not.. Apr 26 12:36:22 idk yet sorry :x, i plan to play with usb-host soon though (mainly for midi com with audio devices) Apr 26 12:37:18 Ah, students did that here to control DSP-hardware using a tablet. Apr 26 12:37:38 freiform: cool :) Apr 26 12:38:13 A couple years back we used a midi-keyboard to do this, now we pushed a little further. ;) Apr 26 12:38:44 after lolipop new permission mechanism was added Apr 26 12:39:14 same as in ios Apr 26 12:39:31 hello, im using leakcanary to analyze my app, it says ur activity instance leaked 8.1mb , so what does it mean and how i can fix this? Apr 26 12:39:34 I have a LinearLayout setup, but I want to display a ProgressBar in the middle of the screen "in front" of all other elements of the LinearLayout, can I achieve this with creating a RelativeLayout and place the ProgressBar inside that? Apr 26 12:39:51 yea of course Apr 26 12:42:22 Odaym: was that for me? Apr 26 12:42:36 yea, you add the element at the end of the layout, with centerInParent Apr 26 12:42:47 it sticks out in the middle, infront of all the other elements Apr 26 12:42:54 squ, ah, I guess I have to read up on that. Until now, I have to give permission everytime a device is re-plugged in (using the libusb-based driver). When using AudioRecord with a connected USB-AUdio device, sometimes i need to get permission, sometimes I don't. Apr 26 12:43:15 Odaym: Ok, it was just that yesterday I was advised not to have multiple Layout's in one activity. I might have misunderstood Apr 26 12:43:15 sci-fic, it should tell you where an instance is being held still that makes it impossible for the GC to act on it Apr 26 12:43:41 something about the Parent layout having to calculate the second one or something Apr 26 12:43:41 sci-fic, usually it's some static thing somewhere Apr 26 12:43:53 yesterday you said that you already have them and asked if it was bad practice to have nested LinearLayouts, the answer was it's "arguably" bad practice to have nested RelativeLayouts Apr 26 12:44:12 sci-fic, or a field in some object that's still being held by something else, like another thread or something Apr 26 12:45:01 sci-fic, you probably leaked your activity instance by retaining it in an attribute like mContext Apr 26 12:45:12 you did not provide enough detail anyway Apr 26 12:46:47 adq Zharf thanks ya Apr 26 12:49:16 Odaym: ah okey. Very well then. Apr 26 12:49:41 very good very well Apr 26 12:52:18 very very Apr 26 12:54:01 Hi all. I migrate a maven project to an AS gradle project, finally :) My project has multiple buildFlavors (7). Any advice about automatic generating apk's? I already have the signingConfig in my build.gradle file Apr 26 13:07:34 http://pastebin.com/gC4BU9PD Apr 26 13:07:50 on this pastebin... line 31 Apr 26 13:07:56 I create a RequestQueue...... called queue... Apr 26 13:08:05 But queue is never used.... it's grayed out.... is that ok? Apr 26 13:08:16 I've working from this example. Apr 26 13:08:18 http://developer.android.com/training/volley/requestqueue.html Apr 26 13:08:29 Someone please advise? Apr 26 13:09:16 Grrr Apr 26 13:10:04 http://pastebin.com/gC4BU9PD Apr 26 13:10:12 on this pastebin... line 31 Apr 26 13:10:19 I create a RequestQueue...... called queue... Apr 26 13:10:27 But queue is never used.... it's grayed out.... is that ok? Apr 26 13:10:32 well Apr 26 13:10:50 do you use it Apr 26 13:10:55 apparently not Apr 26 13:11:14 grrr Apr 26 13:11:28 Yea it's not used... Apr 26 13:11:37 But I'm working from an example. Apr 26 13:11:39 so whats the question Apr 26 13:11:46 http://developer.android.com/training/volley/requestqueue.html Apr 26 13:11:56 I'm working from this example of volley singleton.. Apr 26 13:12:07 Even in the example there is the call... but it's not used... Apr 26 13:12:18 But since it's a singleton I'm thinking maybe it's needed... Apr 26 13:12:22 Am I correct? Apr 26 13:12:57 seems some code snippset arent full Apr 26 13:13:06 it could be used in // ... but you will never know Apr 26 13:13:25 actually i havent played with volley so i dont know. but that would be weird if its needed anyway Apr 26 13:13:39 Well it's a singleton... Apr 26 13:13:52 The code works if I comment out the line. Apr 26 13:22:29 you don't need it Apr 26 13:22:59 the singleton implementation creates a new request queue the first time it's called but then it just returns the same instance Apr 26 13:26:25 my xml layouts never render in preview. Anyone have any clue why this happens? Apr 26 13:27:38 Unsupported major.minor version 52.0 Apr 26 13:31:51 something in your project is compiled to target newer java than you can handle Apr 26 13:32:15 52.0 is java8 Apr 26 13:33:22 * Ping_2_Ur_Pong bows to Zharf Apr 26 13:33:56 Zharf, Why is it in the example? Apr 26 13:34:07 Zharf, Is it needed in some cases? Apr 26 13:35:04 TinFury, well you can take the queue and give multiple Request instances to it while avoiding a few method calls, other than that, not really needed Apr 26 13:35:21 unless you want to do some abstraction where you give the queue to something that doesn't know about the singleton Apr 26 13:36:43 singleton is inifinity, singleton is eternal Apr 26 13:36:45 Zharf, ok.. is there some say to make sure the singleton is working? Apr 26 13:36:52 everyone knows about singleton by definition no? Apr 26 13:36:56 Zharf, like view the treads? Apr 26 13:37:48 Ashiren, the non-believers choose to ignore it Apr 26 13:38:00 TinFury, do your requests work? Apr 26 13:38:21 Yes Apr 26 13:38:52 then stop worrying (and learn how to love the bomb) Apr 26 13:40:33 Whats the bomb were talking about? Apr 26 13:40:57 Yea... I don't know how we got here. Apr 26 13:41:00 :| Apr 26 13:41:05 Isis? Apr 26 13:41:19 http://www.imdb.com/title/tt0057012/ Apr 26 13:41:23 just a silly reference Apr 26 13:46:40 is that the one where the cowboy rides the nuclear weapon like a bronco at show? Apr 26 13:47:51 Ping_2_Ur_Pong, yes Apr 26 13:48:12 I have still yet to see that, but that one seen is iconic. Apr 26 13:48:20 Ping_2_Ur_Pong, Slim Pickins in fact. Apr 26 13:48:37 that's the guys name, haha awesome name. Apr 26 13:49:02 Couldn't be better if it were "deathy byBomby" Apr 26 13:49:50 it's a classic but honestly I didn't find it that good, but I guess I was 40 years late on it Apr 26 13:50:13 what did you think of Casablanca and Gone With The Wind? Apr 26 13:50:18 * Ping_2_Ur_Pong give both a 9 Apr 26 13:51:02 never could watch casablanca to the end, gone with the wind is ok but too long... I've seen it too many times though, my mother loves it so we watched it quite a lot when I was a kid Apr 26 13:51:42 ah dr.strangelove Apr 26 13:52:21 haven't seen that one either, but Gene Wilder is one of my all time favorite comedic actors. That's the one thats a spoof on Frankenstein right? Apr 26 13:52:52 Ohh I was completely screwing up the star Apr 26 13:54:54 * Ping_2_Ur_Pong loves the Command + N shortcut Apr 26 14:02:46 Ok so for MVP, I have a ViewPager, and a PagerAdapter Apr 26 14:02:53 * Zharf is unsure what command + n does Apr 26 14:03:00 not on mac.. Apr 26 14:03:02 Im thinking.. store the pager in the View, but the adapter in the Presenter Apr 26 14:03:07 Thoughts? Apr 26 14:04:16 same as I presume ctrl + n on windows, brings up Generate, so you can avoid typing override, implemented getter/setter etc at least the boilerplate part. Apr 26 14:04:32 Ping_2_Ur_Pong: do you have any thoughts on that? Apr 26 14:04:42 oh you mean alt+insert Apr 26 14:05:10 I haven't actually used that in a while, I just do my overrides by starting to write the method name Apr 26 14:06:11 drose379: I am adverse to a Presenter having any android specific knowledge. Apr 26 14:06:41 Would the adapter be android specific? Apr 26 14:07:56 I'd say yes Apr 26 14:10:49 I have SDKVersion = 2.0.4 in my gradle.properties file. How can I cast this to a String to use it as a buildConfigField of type String? Apr 26 14:19:40 should you make a program that depends on push notifications? Apr 26 14:19:57 FrancescoV: what are you actually trying to do? Apr 26 14:20:09 Felishia: what do you mean, that utilizes them, or will fail without them? Apr 26 14:20:23 Ping_2_Ur_Pong, will fail without them Apr 26 14:20:37 it gets its updates from the notifications Apr 26 14:20:39 Ping_2_Ur_Pong: I use a version for a dependency and I want to get the version in code with a buildconfigfield Apr 26 14:22:51 FrancescoV: buildConfigField "String", "SDKVersion", "2.0.4" access it as BuildConfig.SDKVersion Apr 26 14:23:31 Felishia: you can, but thats a pretty bad idea. It essentially means that any user that disables PUSH-notifications for your app can't use it. That's a terrible use case. Apr 26 14:23:53 Ping_2_Ur_Pong: this isn't possible when using it like this: compile(group: 'XXXX', name: 'YYYY', version: SDKVersion) Apr 26 14:24:49 pull the variable out and store it, and use it in both places ext{ SDKVersion = "2.0.3"} Apr 26 14:25:58 okay guys I have oxygen os right now should I root my phone ? Apr 26 14:26:26 ask #android-root Apr 26 14:27:41 Ping_2_Ur_Pong, oh :/ Apr 26 14:27:50 so I'd have to keep using websockets for my app? Apr 26 14:28:17 the tutorial at developer.android.com mentions a 'Blank activity', does this map to a 'Basic activity' or an 'Empty activity'? Apr 26 14:28:38 Felishia: what are you trying to do, explain the scenario. You asked a blank question of can you... Can and should are different. Apr 26 14:28:57 Ping_2_Ur_Pong, I need to mantain the state of my app Apr 26 14:29:12 ThePendulum: Blank, it is the first one when you setup a new project in AS. Apr 26 14:29:20 Felishia: please elaborate Apr 26 14:34:40 Ping_2_Ur_Pong: huh, I literally only have 'Basic' and 'Empty' Apr 26 14:34:43 let me check again... Apr 26 14:36:04 http://i.imgur.com/8hdSumb.png Apr 26 14:39:41 ThePendulum: yea its basic Apr 26 14:40:11 * Ping_2_Ur_Pong is losing his shit, he wants to swear Basic is supposed to be Blank. Apr 26 14:40:55 I created a new project a couple hours ago to test something, I am either losing my fucking mind or something weird happened. Apr 26 14:42:21 Ping_2_Ur_Pong, sorry one second Apr 26 14:42:32 the scenario is that I have an app Apr 26 14:42:40 I need to keep the app state updated Apr 26 14:42:57 I have a resource that needs to have information filled all the time Apr 26 14:43:03 eg a list of entries Apr 26 14:43:10 the entries keep updated realtime Apr 26 14:46:21 Ping_2_Ur_Pong: thanks, I assumed Blank would be Empty and was wondering why I couldn't find half the files mentioned in the tutorial Apr 26 14:46:29 I must say 'Basic' is a less confusing name, maybe Apr 26 14:54:10 Felishia: how realtime is realtime? It sounds as if you open a socket to your server to transfer information back and forth constantly. If that's true why not, show a dialog at whichever point that connection doesn't exist? What's the notification buy I guess is the question? Apr 26 15:14:53 Ping_2_Ur_Pong, sorry boss is mad at me Apr 26 15:15:26 I mean something pretty much like firebase Apr 26 15:34:38 Ping_2_Ur_Pong, :< Apr 26 16:03:21 Hi Apr 26 16:04:02 Currently I am using a listview for displaying my data. The data consists of around 100 items and the custom adapter has 2 textViews and 1 imageView. Apr 26 16:04:37 Will using recyclerView for this size data improve anything? Apr 26 16:04:55 Or will it be the same as listview Apr 26 16:06:48 what do you mean with improve? Apr 26 16:07:16 recyclerview has nice features like animations built in but makes other things harder (like there are no dividers by default) Apr 26 16:07:21 theres no real performance diff Apr 26 16:08:51 there's not? Apr 26 16:09:10 unless you used listviews wrong all the time (without viewholders) Apr 26 16:09:59 using viewholders in listviews wasn't exactly well documented, so I would guess that's about 99,99% Apr 26 16:10:26 but yeah, i really wish I hadn't thought "oooh, new and shiny" when recyclerviews came and had kept using listviews... Apr 26 16:10:37 yes. thats something I always missed in the docs for listviews Apr 26 16:11:02 the thing that made me switch is that listviews dont support nested scrolling < api 21 Apr 26 16:11:15 oh, didn't know that Apr 26 16:11:24 well, good thing I thought "ooooh, new and shiny", then :) Apr 26 16:11:29 so you cant have listviews making the toolbar disappear :) Apr 26 16:11:31 hehe Apr 26 16:14:05 I did ios programming for about a year and only recently came back to android Apr 26 16:14:23 welcome (back) to the dark side Apr 26 16:14:24 so was a lot of new stuff with all the appcompat stuff Apr 26 16:15:13 Ok...I was talking about performance only. And I have implemented viewHolder in listView. Apr 26 16:16:05 andyOne, if your performance is bad you can post your adapter code and we might be able to help Apr 26 16:17:48 danijoo: It seems not bad so far...but I was just in doubt because I keep listening that recycler views give better performance. Apr 26 16:18:01 As far as features are concerned, I am happy with listView. Apr 26 16:18:09 could you give a source where they say that ? Apr 26 16:23:33 in a CoordinatorLayout + AppBarLayout, can multiple CL view have app:layout_behavior="@string/appbar_scrolling_view_behavior" Apr 26 16:23:52 *CL child views Apr 26 16:24:38 danijoo: http://stackoverflow.com/questions/28392554/should-we-use-recyclerview-to-replace-listview Apr 26 16:25:14 g00s, afaik yes Apr 26 16:25:22 they will all trigger the scroll then Apr 26 16:25:58 danijoo cool thanks, actually had it on each child, but only one will be shown at a time Apr 26 16:26:18 wan't sure if there would be a conflict wiring up the dependencies Apr 26 16:26:21 danijoo: And yeah as you said, in listView we need to manually implement viewHolder but it was never a compulsion but in recyclerView, it is. Apr 26 16:47:38 danijoo: but speaking of recyclerviews... you know what's the best way to add animations when inserting many elements? googling gives about a gazillion different answers... Apr 26 16:49:29 Eplebit, http://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#notifyItemRangeInserted(int, int) Apr 26 16:50:28 danijoo: I use that, but i don't see any animation... Apr 26 16:53:18 it should :/ Apr 26 16:57:35 danijoo: Eplebit: I think you need to set the item animator on your recyclerview? Apr 26 16:57:38 Have you done this? Apr 26 17:02:29 AKK9: doesn't it have one by default? Apr 26 17:05:24 as far as I can read it's supposed to have one that handle inserts itself... Apr 26 17:09:16 lol, damn, now genymotion goes black on me too Apr 26 17:13:00 Hey guys Apr 26 17:13:57 anyone know where android populates android:text="@string/label" resources ? Apr 26 17:14:17 i'm trying to override Resources with a wrapper so i can make my custom localization code Apr 26 17:14:54 problem is even with overriding getResources on the activity the layoutInflater ( wich i'm assuming is the culprit for populating the textviews) isn't reaching my code Apr 26 17:16:08 Phenicks: don't Apr 26 17:16:11 we tried that once Apr 26 17:16:23 only opened up pandoras box Apr 26 17:16:34 yeah Apr 26 17:16:44 already on that by creating a custom layoutinflater Apr 26 17:17:01 that's why i'm asking cus i can't seem to find where android set's the text on textview from xml defined resources Apr 26 17:17:32 Eplebit: yeah I think you're right Apr 26 17:17:53 I remember setting itemanimator but i think i had my own animator class Apr 26 17:17:59 aha Apr 26 17:21:40 still Apr 26 17:21:47 i really think this approach is feasable Apr 26 17:22:05 this or injecting a custom resource object by data-binding Apr 26 17:22:15 and setting the text programmatically on the xml Apr 26 17:22:23 this would be way nicer though Apr 26 17:51:25 any reason why my fab is not showing? http://paste.ee/p/5hSws Apr 26 17:56:11 * pfn <3 opinion rewards Apr 26 17:56:18 enough money to satisfy my occasional app buying needs Apr 26 18:01:16 hi guys Apr 26 18:01:45 note: for my previous question, its not even showing up in the layout hiearchy Apr 26 18:08:38 I am sending a song track info to a Bluetooth receiver via AVRCP - MediaSessionCompat and MediaMetadataCompat. - the info displays fine using Lollipop but not using KitKat (though the default players work!).... is someone available to un-puzzle me? Apr 26 18:11:42 Anyone having issues with dex file paths in AS 2 stable? Apr 26 18:16:49 no Apr 26 18:22:03 lexton: Better to just describe the issue you’re seeing, rather than ask if anyone is having problems Apr 26 18:59:57 Eplebit: you need to call setHasStableIds on your Adapter and return a unique id per item in getItemId Apr 26 19:00:26 Eplebit: thats in relation to RecyclerView animations Apr 26 19:02:44 When animating a view between two fragments using a shared element animation, is it possible to wait until the animation is complete before removing the old fragment from the screen ? Apr 26 19:07:10 android-dev459: yes, i forget the api call Apr 26 19:07:41 on a activity its finishAfterTransition(); or supportFinishAfterTransition(); Apr 26 19:07:51 fragments are probably similar in someway Apr 26 19:10:24 i get this error often ... java.lang.NullPointerException: Attempt to write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference Apr 26 19:10:33 its pretty vague what the problem is Apr 26 19:11:25 Sounds like somewhere someone is doing fragment.mFragmentManager = ... Apr 26 19:11:54 when you add a fragment to a container, does the container have to be FrameLayout ? Apr 26 19:12:06 i'm using CoordinatorLayout, maybe thats the problem Apr 26 19:12:15 No Apr 26 19:12:56 Napalm: IIRC finishAfterTransition is to make sure your activity transition runs when going back to the activity that started you .. in the case I want my animation to run before starting an activity Apr 26 19:13:20 err before starting a fragment** Apr 26 19:25:46 Which size should be AppBat/ActionBar icons ? 24dp ? Apr 26 19:27:00 I DESPERATELY need help working with rtsp streams in videoviews. Apr 26 19:27:25 I need to restart an interrupted stream but I dont know how. Been stuck on this for three days. Apr 26 19:33:17 lame https://code.google.com/p/android/issues/detail?id=40323 Apr 26 19:33:46 when things are marked obsolete, and they should not be - should we just re-file them ? Apr 26 19:34:02 Hey, I am using Xamarin. Why does my app crash in OnRetainNonConfigrationInstance or in OnStart when all I do is save an array adapters contents to an object and repopulate the array adapter. Apr 26 19:34:11 It happens when I rotate the screen. Apr 26 19:34:34 'using Xamarin' == all bets are off Apr 26 19:34:52 show java code Apr 26 19:35:06 xamarin isnt java :? Apr 26 19:36:04 jesus i fear im into something so obscure no one can help me Apr 26 19:36:08 google is failing me Apr 26 19:39:34 i dont know about xamarin, but OnRetainNonConfigurationInstance is deprecated Apr 26 19:40:56 What do we use now? Apr 26 19:41:26 Ashiren? Apr 26 19:41:35 what do you want achieve Apr 26 19:41:43 keep variables during orientation change? Apr 26 19:41:46 Save and Restore activity data. Apr 26 19:42:10 That too Apr 26 19:42:36 Ashiren: ironcially undepreacted in N P2 Apr 26 19:42:46 onSaveInstanceState and load in onCreate, normally id use butterknife library to simplify process Apr 26 19:42:53 huh Apr 26 19:43:57 But I would stick with saveInstanceState and onCreate Apr 26 19:44:08 i was just thinking about this ^ problem for a new project Apr 26 19:45:04 i used to use a bound-started service to hold long running tasks so they could survive orientation changes Apr 26 19:45:35 whz bind them_ Apr 26 19:45:40 why Apr 26 19:46:43 to get a reference to the service in the activity, set the activity as callback Apr 26 19:47:46 now a see that people recommend using fragment with setRetainInstance Apr 26 19:48:11 yeah i think a lot use retained headless fragments Apr 26 19:48:17 which i thinks is ugly Apr 26 19:48:19 Fragment with setRetainInstance is a very valid solution Apr 26 19:48:20 feels hacky though Apr 26 19:48:21 yes Apr 26 19:48:23 Probably one of the best Apr 26 19:48:27 Welcome to Android Apr 26 19:48:31 Where most things are hacky Apr 26 19:49:03 its a fine solution once you accept it :) Apr 26 19:50:26 for the sake of just saving state, the onRestore/onSaveInstanceState solution looks less ugly Apr 26 19:50:48 They serve different purposes Apr 26 19:50:59 For serialisable state pause/resume is the way to go Apr 26 19:51:04 * save/create Apr 26 19:51:25 bitkiller, yes, if what you are storing can be serialized this is a good way Apr 26 19:51:53 But if you want to retain connection to bound service or use asynctask to survive config changes (should really be using Rx - it is 2016 after all :P) then retained fragments are the best choice. Apr 26 19:51:57 but it wont work for lets say.. cache a reference for a running webrequest Apr 26 19:52:28 hmm, we use onsaveinstantstate/restore for serialized stuff... Apr 26 19:52:39 yeh, i'm using mvvm, which forces me to separate state and use parcelable classes for that Apr 26 19:52:55 I just serialize the viewmodel, actually Apr 26 19:53:12 Eplebit, you cant serialize a runnign webrequest though ;) Apr 26 19:53:13 any of you work a lot with videoviews Apr 26 19:53:53 danijoo: ah, no... we made an asyncrunner that attaches the new activity on restore Apr 26 19:53:56 tilal6991, but you can start the service then bind when the activity is restarted Apr 26 19:53:56 so callbacks won't break Apr 26 19:54:18 Eplebit, what happens if the task succeeds right between 2 activities? Apr 26 19:54:30 danijoo: it will wait until a new one attaches Apr 26 19:54:38 what if it doesnt Apr 26 19:54:54 i do the same with headless fragments and rxjava Apr 26 19:55:06 danijoo: forgot the part where we detach first :) Apr 26 19:55:08 bitkiller: sure but why add the extra latency for a rebind when you can just cache the reference :P Apr 26 19:55:12 Ashiren: what case would that be? Apr 26 19:55:26 But OnSaveInstanceState only supplies a bundle object. Apr 26 19:55:46 Do you have to maually save the data somewhere. Apr 26 19:55:47 ? Apr 26 19:55:54 you save it in the bundle? Apr 26 19:55:55 tilal6991, because it's less ugly, imo :) Apr 26 19:56:10 But you can't save complex data in the bundle. Apr 26 19:56:17 serialize it, baby Apr 26 19:56:21 gaxar77: with parcellable you can do anything Apr 26 19:56:30 tilal6991, not true Apr 26 19:56:31 Eplebit: please don't tell me you use Java serialisation Apr 26 19:56:32 parcelable Thread? neat Apr 26 19:56:35 I kow you can serialize it. Apr 26 19:56:38 tilal6991: no, I don't :) Apr 26 19:56:46 But what would you use to save it, putData? Apr 26 19:57:05 I don't use fragments anyway so this discussion is a bit moot from my perspective Apr 26 19:57:08 bundle.putSerializable() Apr 26 19:57:21 tilal6991: we use protobuf and serialize it as a bytestream, actually Apr 26 19:57:26 http://developer.android.com/reference/android/os/Bundle.html#putParcelable(java.lang.String, android.os.Parcelable) Apr 26 19:57:45 Eplebit: that/JSON are legit solutions too. Apr 26 19:57:59 Does OnCreate get called after screen rotations? Apr 26 19:58:03 Ofc Apr 26 19:58:14 With savedInstanceState != null Apr 26 19:58:26 tilal6991: yeah... the dataobjects in this app is a bit large, so that's why we use protobuf. the default implementation in the framework is json Apr 26 19:58:48 also savedInstanceState is limited to 1 Mb of data Apr 26 19:58:55 thats good to be kept in mind Apr 26 19:59:00 oh. that I had no idea of Apr 26 19:59:46 it throws a very cryptic exception. costed me 2 days once Apr 26 19:59:57 Xamarin docs must be outdated. Apr 26 20:00:03 Actually the size is not defined Apr 26 20:00:06 * size limit Apr 26 20:00:08 AFAIK Apr 26 20:00:12 I don't like having to translate documentation. Apr 26 20:00:15 So it's even worse Apr 26 20:00:18 gaxar77: what's the problem? Apr 26 20:00:20 But I guess it is the only option. Apr 26 20:00:25 gaxar77: I also use xamarin Apr 26 20:00:27 i think theres nothing that is less 1mb though Apr 26 20:00:32 Hello is this the best channel to discuss setup for android studio Apr 26 20:00:32 I am just trying to learn Android dev in general. Apr 26 20:00:36 So i can develop apps... Apr 26 20:00:44 But what i am focusing on now is persisting the app state. Apr 26 20:00:49 Or activity state. Apr 26 20:00:49 its like you can always assume 32mb ram on 4.1+ Apr 26 20:00:59 My problem is.. Apr 26 20:01:02 spefically.. Apr 26 20:01:04 in this instance... Apr 26 20:01:26 gaxar77: http://developer.android.com/guide/components/fragments.html Apr 26 20:01:34 you can see the lifecycle there Apr 26 20:01:39 Yes you can generally assume 1MB but I would not persist more than around 64K anyway - more than that and there are better solutions IMHO Apr 26 20:01:43 that when i save the array adapter items to a Java.Lang.Object subclass in OnRetainConfigurationInstance and repopulate the adapter in OnStart my application crashes. Apr 26 20:02:07 Instance or Object, whatever it says. Apr 26 20:03:31 Here is the code that crashes: http://pastebin.com/a4rfZhGt Apr 26 20:05:17 gaxar77: that method has been deprecated a long time, afaik Apr 26 20:05:30 what does the crash say? Apr 26 20:05:34 But my Android is 2 years old, it should worj. Apr 26 20:05:45 It doesn't say anything. It just goes to the home screen. Apr 26 20:05:47 Eplebit: has been but now undeprecated in N P2 as mentioned earlier :P Apr 26 20:05:53 gaxar77: look at the logcat Apr 26 20:05:56 tilal6991: ooooooh, I missed that Apr 26 20:06:05 How do I do that? Apr 26 20:06:06 Still wouldn't use it tho Apr 26 20:06:18 gaxar77: http://developer.android.com/tools/help/logcat.html Apr 26 20:06:40 Without logcat, any Android dev would be totally helpless Apr 26 20:06:54 http://imgur.com/jacoj Apr 26 20:07:00 oh, I usually use the monitor-program Apr 26 20:07:15 wich is logcat Apr 26 20:07:17 never mind me Apr 26 20:07:18 I'm senile Apr 26 20:07:19 danijoo: haha that's brilliant Apr 26 20:07:32 tilal6991, its even in the channel topic :p Apr 26 20:07:36 danijoo: <3 Apr 26 20:07:41 insteresting the keyword 'protobuf', but what is the advantage over, say, onSaveInstanceState, etc Apr 26 20:07:43 ? Apr 26 20:07:55 bitkiller, it has nothing to do with that Apr 26 20:08:04 protobuf is a serialization protocol Apr 26 20:08:10 like json Apr 26 20:08:11 i mean, the advantage over other serialization scheme Apr 26 20:08:16 faster Apr 26 20:08:17 smaller Apr 26 20:08:19 Well it would be that vs parcellable Apr 26 20:08:20 size Apr 26 20:08:23 So less code Apr 26 20:09:13 Eplebit: https://commonsware.com/blog/2016/04/13/random-musings-n-developer-preview-2.html - CommonsWare provides an excellent rundown of what's changed Apr 26 20:09:21 "Long-time Android developers will remember that Activity used to support onRetainNonConfigurationInstance() and getLastNonConfigurationInstance(). These were deprecated back in API Level 11, replaced by retained fragments. For some reason, they have been un-deprecated (de-deprecated? dis-deprecated? anti-deprecated?!?) in NDP2. Apr 26 20:09:21 " Apr 26 20:09:38 that's just... so android... Apr 26 20:09:44 No explanation as to why though lol Apr 26 20:09:47 Which is quite silly Apr 26 20:09:49 then, how do you use it for saving activity state? save file to the file system? or is there some sort of standard scheme? Apr 26 20:09:54 tilal6991: do they ever? :) Apr 26 20:09:54 who needs explanations Apr 26 20:09:59 retained fragments suck Apr 26 20:10:12 bitkiller: uhm. I serialize the data and put in in the bundle as a bytearray? Apr 26 20:10:12 bitkiller: write protobuf base64 to bundle as string Apr 26 20:10:17 Or bytearray Apr 26 20:10:42 Totally agreed on retained fragments sucking - I'd just strike out the word retained Apr 26 20:10:47 Eplebit, tilal6991 good, interesting thank you Apr 26 20:11:06 ok, so they've undeprecated it, but it still sucks? got it :) Apr 26 20:11:11 Logcat is slowing down visual studio Apr 26 20:11:27 currently have a music type app, and am implementing a fab. Theres currently a "now playing" selection in the nav drawer, and the only "main" function on the main screen is search. Should I make the fab a search button, or a pause/play type button? Thoughts? Apr 26 20:11:31 Probably because you're using Visual Studio instead of Android Studio :P Apr 26 20:11:47 interesting discussion, but i have to take the kids from school Apr 26 20:12:15 orbyt_: http://i.imgur.com/PAw22Gn.gif Apr 26 20:12:18 Just do that Apr 26 20:12:24 And you will win the internet Apr 26 20:12:44 gaxar77: use the monitor.exe program instead Apr 26 20:12:44 no this is for a main screen Apr 26 20:12:48 @ tilal6991 Apr 26 20:12:59 gaxar77: if having it as output in vs slows it down Apr 26 20:13:55 gaxar77: haven't tried it in vs in a while. mostly use xamarin studio on a mac atm because I do both ios and android Apr 26 20:14:31 orbyt_: I kid. I was just remembering the MD music player from IO 2014 Apr 26 20:14:42 But I'd go with Play/Pause Apr 26 20:14:59 Because in the main screen, the main function of the app is to play/pause Apr 26 20:15:03 And the FAB should reflect that Apr 26 20:15:47 tilal6991: Thats what I was thinking, but when it starts playing it puts a widget in the notification bar as well, so its basically duplicating that functionality Apr 26 20:16:07 hmm, I had an arguement with a guy at work today Apr 26 20:16:11 he wants to use fab's everywhere Apr 26 20:16:15 like many in each window... Apr 26 20:16:21 Noooooooooo Apr 26 20:16:25 Are you kidding Apr 26 20:16:26 No Apr 26 20:16:29 Yes Apr 26 20:16:32 Are you kidding? Apr 26 20:16:33 Yes Apr 26 20:16:38 That breaks the very essence of fabs lol Apr 26 20:16:52 but he thought they were so round and nice... Apr 26 20:17:15 I think the product owner listens to me, so I'll shut it down Apr 26 20:17:32 https://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-floating-action-button Apr 26 20:17:35 My computer is so slow. Apr 26 20:17:37 "Only one floating action button is recommended per screen to increase its prominence. It should represent only the most common action." Apr 26 20:17:46 Like just show him that lol Apr 26 20:18:11 tilal6991: yeah, I sent him that link Apr 26 20:18:22 he said something like "but would you care if google didn't tell you to" or something Apr 26 20:18:59 Lol no arguing when you have that mentality Apr 26 20:19:05 * no point Apr 26 20:19:50 welcome to mye life :) Apr 26 20:23:48 Ouch afollestad Apr 26 20:23:48 pulled app-theme-engine Apr 26 20:23:55 Anyone know why? Apr 26 20:40:38 doh, he did? Apr 26 20:42:59 didn't he just release a rewrite? Apr 26 20:43:09 maybe there were too many issues? Apr 26 21:03:04 people need to learn to stop removing artifacts from jcenter and shit (which is where I'm assuming you're saying he pulled it from) Apr 26 21:03:16 Yo yo! I got a problem here I go: I cannot launch the device monitor from Visual Studio. It says it can't load jvm.dll or something like that. Apr 26 21:03:28 visual studio is not endorsed Apr 26 21:04:19 It is irritating and aggrivating me. Apr 26 21:04:35 I can't use logcat in VS because it freezes VS. Apr 26 21:04:51 And I got a problem where my simple app crashes. Apr 26 21:05:39 dont use VS for android Apr 26 21:06:10 What should I use then? Apr 26 21:06:18 android studio Apr 26 21:06:34 That runs too slow on my laptop. Apr 26 21:06:42 I am trying to use Xamarin instead. Apr 26 21:07:06 good luck.. Apr 26 21:07:18 You got something against Xamarin? Apr 26 21:07:27 who not? Apr 26 21:08:01 Well, it looks like I'm screwed then. Apr 26 21:08:17 I can't use Adroid Studio, and the VS tools aren't working. Apr 26 21:08:23 So I can't do Android apps. Apr 26 21:10:05 AS runs on every toaster oO Apr 26 21:10:23 AS 2.1 released Apr 26 21:10:25 It runs real slow on my laptop. Apr 26 21:10:34 what exactly runs slow? Apr 26 21:10:37 I don't mind using java. Apr 26 21:10:48 Android Studio itself, the interface. Apr 26 21:11:00 It lags. Apr 26 21:11:50 If someone could help me get it to run faster, I wouldn't mind using it. I would have no problemo. Apr 26 21:12:00 gaxar77 thats because java sucks :D Apr 26 21:12:12 So Java is the problem? Apr 26 21:12:15 if your computer is bad enough to lag just in the UI, you need a new one Apr 26 21:12:18 has anyone ever, in the history of the universe, used a desktop java app that didn't suck Apr 26 21:12:20 no matter what tools you are using Apr 26 21:12:21 Well, there is nothing tha t can be done about it. Apr 26 21:12:38 Bullshit. Apr 26 21:12:45 Now I can't develop Android apps. Apr 26 21:13:07 you can still write in terminal and compile in commandline ;) Apr 26 21:13:19 gaxar77 you can do like leeds and use Vim + ant :D Apr 26 21:13:31 or you can use that Android IDE, what is it called .... Apr 26 21:13:32 low budget solution ;) Apr 26 21:13:40 AIDE? Apr 26 21:13:45 AIDE? Apr 26 21:13:48 haha yeah Apr 26 21:13:51 dont use it Apr 26 21:13:55 lol Apr 26 21:13:55 That's a real applicatio? Apr 26 21:13:58 no Apr 26 21:13:59 application* Apr 26 21:14:01 oh Apr 26 21:14:03 its ja joke Apr 26 21:14:06 ol Apr 26 21:14:08 lol Apr 26 21:14:19 but it fooled a lot :p Apr 26 21:14:29 Well, I suppose I could learn the command line tools... Apr 26 21:14:35 But I prefer a nice IDE. Apr 26 21:14:46 And I like intellisense. Apr 26 21:14:49 ok now, with AS 2.1 - does it use jack / jill by default ? Apr 26 21:14:50 but your computer cant handle nice ide ;) Apr 26 21:15:02 gaxar77 what are your machine specs ? Apr 26 21:15:18 Why does the CLR run fine on my computer but JVM runs so slow? Apr 26 21:15:28 I don't know, I have a Aspire E 15. Apr 26 21:15:31 It's an Acer. Apr 26 21:15:37 memory ? Apr 26 21:15:50 4 GB I think? Apr 26 21:15:57 yeah that will hurt Apr 26 21:16:01 It's running Windows 10. Apr 26 21:16:15 still shouldnt lag the ui.. Apr 26 21:16:21 if you are not compiling at least Apr 26 21:16:34 thats strange.. Apr 26 21:16:36 What's DDR3 L? Apr 26 21:16:46 danijoo i have a low spec machine too, and there is a world of difference between how native OS X apps behave, and java shit Apr 26 21:17:04 i dont say there isnt Apr 26 21:17:15 I say it should run good enough to use it Apr 26 21:17:16 AS is the only app that takes like 2 minutes to start up, load project, and settle down Apr 26 21:17:19 But tablets and phone have even lower specs, and android is all Java. Apr 26 21:17:24 ie allow you to code while not compiling Apr 26 21:18:12 well, if I can't develop Java apps, I would at least, for my leisure, like to read about how the Android OS works, and how it uses Java to work. Apr 26 21:18:14 its a difference to run a full blown ide or a small android app Apr 26 21:18:25 Any good articles or books you know of? Apr 26 21:18:26 I mean Android apps. Apr 26 21:19:45 Well, my computer is too slow for massive java applications like AS. Apr 26 21:20:33 what processor? Apr 26 21:23:32 java is garbage Apr 26 21:23:39 android studio is fairly minimal Apr 26 21:23:44 just dont use the emulator Apr 26 21:23:47 use a real phone Apr 26 21:25:22 verizon and a slow pc Apr 26 21:26:25 That's some fucking bullshit. Apr 26 21:26:41 Everytime I sit next to the television my internet kicks me off IRC. Apr 26 21:26:55 gaxar77 kill your TV ... Apr 26 21:26:58 I have to stop cursing before I get into the habbit. Apr 26 21:27:05 what kind of radios is ur tv putting off Apr 26 21:27:07 is my q Apr 26 21:27:17 doesnt sound good on health Apr 26 21:27:20 It's not even on. Apr 26 21:27:43 reposition your AP Apr 26 21:27:52 AP? Apr 26 21:27:57 What's that? Apr 26 21:28:39 the magic thing that makes internet Apr 26 21:29:03 Anyway, as I was saying, Java is what you use to run Android apps, and the ironic thing is, you think it sucks. Apr 26 21:29:28 * danijoo uses kotlin .. Apr 26 21:30:05 Why is Java garbage? Is is the specs or the implimentation? Apr 26 21:30:19 implementation* Apr 26 21:30:33 implimentation? Apr 26 21:30:45 then jvm is great Apr 26 21:30:58 the language java is not so great Apr 26 21:31:04 *imho* Apr 26 21:31:07 1 downside of java for me Apr 26 21:31:22 u have to obfuscate all code, becuz if u plan to make money some1 could decompile ur jar Apr 26 21:31:23 Well, of course the language is not the best. Apr 26 21:31:32 its quite lame Apr 26 21:31:35 C# is way better I think. Apr 26 21:32:10 But it is the JVM that is running so slow on my laptop. Apr 26 21:32:25 I can deal with the language. Apr 26 21:32:31 im running jvm on a kabini quad core Apr 26 21:32:33 The JVM is fast, it’s your laptop that’s slow Apr 26 21:32:35 with 2gb of ram Apr 26 21:32:36 no problems Apr 26 21:32:43 you are also running windows? Apr 26 21:32:44 So is it my processor? Apr 26 21:32:49 Windows 10. Apr 26 21:32:52 processor or memory, hard to tell Apr 26 21:32:53 memory? Apr 26 21:33:02 4 GB DDR3 L Apr 26 21:33:04 my kabini has a 900~ benchmarkl Apr 26 21:33:11 Yeah 4Gb is very low Apr 26 21:33:13 processor? Apr 26 21:33:14 Not sure if that is ram Apr 26 21:33:25 AMD E2 6110 Apr 26 21:33:34 1.50 GHz Apr 26 21:33:40 thats it lol Apr 26 21:33:53 ya those e series are like the first gen kabini Apr 26 21:33:53 So the processor is really slow? Apr 26 21:34:01 http://www.cpubenchmark.net/cpu.php?cpu=AMD+E2-6110+APU+with+AMD+Radeon+R2+Graphics Apr 26 21:34:12 get ram first Apr 26 21:34:16 like a 50 dollar processor Apr 26 21:34:41 No wonder my computer is so slow. Apr 26 21:34:43 4 gig is very low but i know guys running AS fine on it Apr 26 21:34:47 And non-performant. Apr 26 21:34:53 ya 4gb for windows is a minimum Apr 26 21:34:58 as of windows 7 Apr 26 21:35:05 AS works on 4 gig ram if you dont use 20 chrome tabs and emulator Apr 26 21:35:15 But I have a laptop, how can I change my processor? Apr 26 21:35:20 you cant Apr 26 21:35:25 great Apr 26 21:35:31 its soldered in Apr 26 21:36:07 Can I pay someone a reasonable amount to upgrade my laptop if that is possible? Apr 26 21:36:10 ya those e series are eh.. unique Apr 26 21:36:26 you can pay a shop a reasonable amount to get a new laptop Apr 26 21:36:28 think e series are smaller sockets Apr 26 21:36:30 thats all you can do Apr 26 21:36:39 But I don't even have ten dollars right now. Apr 26 21:36:54 sell yourself to 100 fat chicks for 5 dollars a piece Apr 26 21:37:05 The company i worked for shut down some time ago. Apr 26 21:37:09 About a year ago. Apr 26 21:37:23 And I don't have a college degree, nor can I get one right now Apr 26 21:37:59 not sure what a college degree has to do with money Apr 26 21:38:03 except losing it Apr 26 21:38:04 l;ol Apr 26 21:38:12 .My mother could pay for it, but I don't think she can afford it and have enough for necessities. Apr 26 21:38:46 * g00s tries gradle-plugin 2.1.0 stable Apr 26 21:38:48 Well, if i am going to work I am going to want to work as a developer.. Apr 26 21:38:55 But most developer jobs i see require a BA. Apr 26 21:39:04 gaxar77 that is the vase Apr 26 21:39:06 *case Apr 26 21:39:21 most developer jobs treat employees like crap Apr 26 21:39:22 better start writing software then Apr 26 21:39:43 I have some experience with C# and .NET but I don't think it is enough (not in duration, but in knowledge) Apr 26 21:40:02 w4ffles_, what do you mean? Apr 26 21:40:07 Can you elaborate? Apr 26 21:40:08 dont have a degree? dazzle them with an extensive github Apr 26 21:40:21 16minute build.. kill me Apr 26 21:40:28 you should be able to find ram for less then $50 gaxar77 Apr 26 21:40:56 not that you have that right now, but it probably is not unachievable Apr 26 21:40:57 Adding ram will speed up AD on my slow laptop? Apr 26 21:40:58 How do I include .aars built for different architectures in my project? I made a libs//library.aar path for each arch and added compile fileTree(include: ['*.jar', '*.aar'], dir: 'libs') Apr 26 21:40:59 his problem is still not ram Apr 26 21:41:18 idk gaxar.. i have seen those e series in shop. they work good like 6 months.. Apr 26 21:41:28 then start clicking like a bad harddrive Apr 26 21:41:31 I don't know what kind of things jobs would like to see on github. Apr 26 21:41:35 ive put 16 gb in those suckers with no improvement Apr 26 21:41:57 cpu is for dexing Apr 26 21:42:05 AS is usually slow because of lack of memory Apr 26 21:42:17 those e series can barely run windows Apr 26 21:42:19 4gig are fine for the gui Apr 26 21:42:31 Like, I could start learning more .net stuff and working on projects to put on github... Apr 26 21:42:38 its gradle that eats the RAM Apr 26 21:42:39 but I don't know what to work on. Apr 26 21:42:55 make a faceswap app Apr 26 21:42:59 ^ Apr 26 21:43:01 everyone loves those Apr 26 21:43:03 I got discouraged from learning UWP app development because of lack of resouces. Apr 26 21:43:06 ^^ Apr 26 21:43:10 ^ Apr 26 21:43:12 resources* Apr 26 21:43:44 id buy the faceswap app Apr 26 21:43:52 atleast u dont have 3 kids crying in ur face Apr 26 21:43:56 Android seemed way easier, with way more information, but the tools are not working on my computer. Apr 26 21:44:22 which one is starting to cry now Apr 26 21:44:28 I am stuck right now. Apr 26 21:44:36 gaxar77 ok we can't help Apr 26 21:44:37 I don't have a job, i am with my mother.. Apr 26 21:44:42 oh god Apr 26 21:44:50 try #therapy Apr 26 21:44:58 lol Apr 26 21:44:59 i could use that Apr 26 21:45:11 but i dont want to give my doctor a complex Apr 26 21:45:54 Well, Android app development is not going to open up for me until I can get a faster laptop. Apr 26 21:46:09 correct Apr 26 21:46:24 So I need to figure out something to do that will get me closer to making money or getting a job, something involving programming. Apr 26 21:46:37 might I suggest prostitution? Apr 26 21:46:43 webcam site Apr 26 21:46:49 gaxar77, and thats the point you are offtopic Apr 26 21:48:25 i think gradle plugin does dexInProcess by default now Apr 26 21:48:29 hrm Apr 26 21:49:24 g00s, another memory killer, isnt it? Apr 26 21:49:46 hmm Apr 26 21:50:17 wouldn't mind if they spent some time just putting all this crapola on a diet :) Apr 26 21:51:09 oh thats adorable, somebody came up with yet another k/v store Apr 26 21:51:22 love these reasons : Apr 26 21:51:40 'i didn't like sqlite, so i made my own k/v' ok, sure thats reliable Apr 26 21:52:26 Is it even possible to use different aars per architecture? Apr 26 21:52:41 http://android-developers.blogspot.com/2016/04/android-studio-21-supports-android-n.html Apr 26 21:55:22 g00s,I happy android studio 2.1 they fix the sdk:) Apr 26 21:55:43 In my aosp module I include another module (e.g LOCAL_SHARED_LIBRARIES += libLLVM). And the external/llvm module does LOCAL_EXPORT_C_INCLUDES. BUT when I use a header of libLLVM so I can use the library I get "file not found". Any ideas? Apr 26 21:59:57 Awww, nobody? Saddest of the faces Apr 26 22:02:55 hmm in process dex needs 2G for daemon Apr 26 22:05:15 jenkins 2.0 Apr 26 22:14:43 :) Apr 26 22:17:23 my mac's system diagnostic reports seem to think AS wakes up the machine way too often Apr 26 22:17:27 like 150 times per second Apr 26 22:17:53 ur mac goes to sleep 150 times per second? Apr 26 22:18:35 jug6ernaut not sure how this works Apr 26 22:18:40 lol Apr 26 22:18:54 all i know is Apr 26 22:19:00 can we get a 32GB mbp? Apr 26 22:19:14 with skylake mebs Apr 26 22:19:17 we should have had them like 3 years ago Apr 26 22:19:34 intel needs to give people reasons to upgrade now that cpus don't get better anymore Apr 26 22:19:35 we should have had Skylake procs, 3 years ago Apr 26 22:19:41 jug6ernaut reading apple forums, its not related to sleep Apr 26 22:19:48 missingno yup Apr 26 22:20:00 missingno i have zero reason to upgrade my 2013 model Apr 26 22:20:08 g00s interesting Apr 26 22:21:45 to use jack, should we be using build-tools 24 RC2 ? Apr 26 22:22:20 u have to Apr 26 22:22:24 i think Apr 26 22:35:57 hmm, if I want an animation to happen when a fragment is shown, exactly where do I put it? Apr 26 22:53:39 guys quick question: say I'm writing an android library that needs some other library (eg retrofit) to function, how would I do that Apr 26 22:53:59 simply placing the dependency in the libraries dependencies{} block doesnt seem to work. Apr 26 23:26:05 AS 2.1.0 released? Apr 26 23:26:06 wth Apr 26 23:27:30 jug6ernaut "staaable" Apr 26 23:27:37 "so stable" Apr 26 23:27:40 "much stable" Apr 26 23:27:42 wow Apr 26 23:29:10 so much for https://code.google.com/p/android/issues/detail?id=204065&sort=-stars&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&start=100 Apr 26 23:29:16 in 2.1.0 Apr 26 23:29:24 I have a class, and an inner static class Apr 26 23:29:28 *static inner class Apr 26 23:29:34 The inner class defines an interface Apr 26 23:29:40 can the outer-class implement it Apr 26 23:32:00 Error:Data Binding does not support Jack builds yet Apr 26 23:32:10 how can they release 2.1.0 and not support data binding Apr 26 23:32:11 wtf Apr 26 23:32:36 maybe 2.1.0 is just preview still... Apr 26 23:33:12 maybe databinding is just a preview still Apr 26 23:34:41 so preview support was dropped -_- Apr 26 23:40:09 jug6ernaut otherwise, is jack production ready? O.o Apr 26 23:40:18 oh i guess not if build-tools are RC Apr 26 23:40:38 i'm kinda confused also on the state of all these things Apr 26 23:40:48 idk either Apr 26 23:40:53 this whole release confuses me Apr 26 23:41:08 i always assumed 2.1 would drop when N was released Apr 26 23:42:42 not having instant run, data binding, or annotation processors though Apr 26 23:42:50 i cant even try jack Apr 26 23:43:00 maybe...jack wont go live with N? Apr 26 23:43:10 & i didnt know method references arnt backwards comptable Apr 26 23:43:12 i wonder why Apr 26 23:43:15 very disappointing Apr 26 23:45:26 jug6ernaut i think because of the fragmentation, google keeps pushing up platform previews so that OEMs get their hands on things earlier ... Apr 26 23:45:53 i'd rather they just release all the stuff when its more ready and figure out how to get updates to everyone OTA Apr 26 23:45:57 but OEMs already got their hands on things earlier Apr 26 23:46:08 s73v3r even earlier now Apr 26 23:46:15 yeah, wouldnt OEM's and dev previews be separate ? Apr 26 23:46:16 at least thats what lockheimer said Apr 26 23:46:57 he talked about it last week on some podcast Apr 26 23:47:10 oh Apr 26 23:47:16 * jug6ernaut hasnt listened to it yet Apr 26 23:47:33 dont try to compile with jack enabled it will break ur studio Apr 26 23:47:44 guess ill wait for AS 2.2 -_- Apr 26 23:47:49 maybe they should call it jackass Apr 26 23:48:04 lsass no problem for me Apr 26 23:48:08 it stops me long b4 compile -_- Apr 26 23:48:21 even better, abandon all that crap and use switf compiler from apple \o/ Apr 26 23:48:23 * g00s runs Apr 26 23:48:33 g00s u cant run far enough Apr 26 23:48:35 lol Apr 26 23:49:55 g00s like u said earlier as needs to take out the half cocked crap Apr 26 23:52:33 how do you do transitive dependencies with a .jar Apr 26 23:54:48 if i have a bunch of modules in my project , do i have to do dexOptions { ... } to each of them ? Apr 26 23:55:33 for example dexOptions { incremental true } for all modules Apr 26 23:57:04 why not just use multidex Apr 26 23:57:26 ew Apr 26 23:57:47 only a billion lines Apr 26 23:58:21 g00s are they library projects Apr 26 23:58:27 missingno yes Apr 26 23:59:50 oh, the video explaining 2.1.0 was wrong Apr 26 23:59:53 Method References (also available on API level 23 and lower) Apr 26 23:59:57 thats good Apr 27 00:00:08 jug6ernaut orly ? Apr 27 00:00:21 even reto is confused ! Apr 27 00:00:39 lol Apr 27 00:00:48 https://www.youtube.com/watch?v=ZOz_yr8Yxq8 said method references were N+ Apr 27 00:01:00 http://developer.android.com/preview/j8-jack.html says 23 & lower Apr 27 00:01:03 was kinda hoping jo was going to sneak into the box .. Apr 27 00:01:09 probably find cookies stashed in there :D Apr 27 00:09:01 Does anyone know how to disable jack/jill with the 2.1.0 gradle plugin? The directions on the release notes dont seem to be doing the trick... It still states "Jack is required to support java 8 language features." and subsequently my retrolambda task fails Apr 27 00:09:14 or rather, does anyone know how to use retrolambda with the 2.1.0 plugin? Apr 27 00:10:30 Pyuruku its disabled by default Apr 27 00:10:38 only enabled with Apr 27 00:10:40 jackOptions { Apr 27 00:10:40 enabled true Apr 27 00:10:40 } Apr 27 00:11:55 I believe Retrolambda and Jack are not compatible Apr 27 00:12:14 Right, which is fine, I just dont want to use jack yet. Apr 27 00:12:16 s73v3r they definitely arnt Apr 27 00:25:25 Hi Guys! Any idea on why Android Monitor in AS might suddenly stop to even show debuggable application in the list of the apps? Apr 27 00:25:58 Make sure ADB integration is enabled from the Tools menu Apr 27 00:26:20 I'm sure iyt's enabled Apr 27 00:26:36 It shows some other debuggable apps Apr 27 00:26:53 It just stopped to show the one I'm currently work on Apr 27 00:27:08 Is the app running? Apr 27 00:27:27 Of course it is Apr 27 00:28:11 Did you try toggling ADB integration / restarting ADB etc? Apr 27 00:28:50 I tried to restart everything. AS, ADB, entire machine... Apr 27 00:29:28 Sometimes I think AS just hates me for some reason... Apr 27 00:44:28 oh oh, somebody wrote a text editor in rust Apr 27 01:07:17 Can anyone help me with MessageDigest? Apr 27 01:07:56 I'm trying to add a salt... but passwrod+salt in java is not == php or the result on a website. Apr 27 01:07:57 ? Apr 27 01:16:45 showerthoughts : swift version of jack should be called sack Apr 27 01:39:41 haha http://blog.dantup.com/2016/04/have-software-developers-given-up/ Apr 27 01:39:47 i thought i was the only one :) Apr 27 01:47:38 so im generating model classes for use with retrofit + gson. For a particular endpoint, the top level json object changes. Is there a way I can sort of have a wildcard so it maps properly to my java models? Apr 27 01:51:04 Is there a channel better suited to OS questions (specifically binder ipc) than this one? Apr 27 01:55:22 kroot if you are there ... for something like this, which is still valid even though marked as obsolete, should I just star it, or open another one? https://code.google.com/p/android/issues/detail?id=40323 Apr 27 02:00:40 g00s: gotta move fast Apr 27 02:00:44 no time for bugs Apr 27 02:01:31 wish i could ask the android dev team at i/o fireside ... "do you guys regret fragments" :) Apr 27 02:01:41 when will they work ? Apr 27 02:01:56 hey! I still can't connect my android phone to my SMTP server, it doesn't support the ciphers offered Apr 27 02:02:11 what ciphers does Android support? (Samsung Galaxy S7 Edge) Apr 27 02:02:34 g00s: i actually dont have issues with fragments Apr 27 02:02:39 they can be annoying Apr 27 02:02:46 IMAPS is working fine, but SMTP StartTLS is complaining it doesn't support any ciphers offered Apr 27 02:02:55 jug6ernaut yeah, but stuff like the backstack not working, seriously ? Apr 27 02:03:06 lol Apr 27 02:03:11 any ideas g00s ? Apr 27 02:03:14 and fragments don't have onBackpressed Apr 27 02:03:14 yeahh Apr 27 02:03:30 they shouldnt have on back press Apr 27 02:04:18 wyoung no idea, this isn't customer support. for that , hang up and dial .... Apr 27 02:04:29 jug6ernaut shouldn't ? Apr 27 02:04:49 shouldnt Apr 27 02:04:54 bah! Apr 27 02:05:12 if u have multiple fragments visible, how can one fragment properly handle a system level event like that Apr 27 02:05:26 or be expected rather Apr 27 02:05:48 well OK, but addToBackStack() should work ... Apr 27 02:05:52 and pop Apr 27 02:05:57 lol Apr 27 02:05:59 yes Apr 27 02:06:03 it absolutely should Apr 27 02:06:21 * g00s wonders if google team just gave up Apr 27 02:07:38 probably to spread thin Apr 27 02:09:27 "Family cleans house, finds pet tortoise missing since 1982" Apr 27 02:09:37 Wat Apr 27 02:09:52 http://www.treehugger.com/natural-sciences/family-cleans-house-and-finds-pet-tortoise-went-missing-30-years-earlier.html Apr 27 02:09:53 lol Apr 27 02:11:49 That's insane Apr 27 02:12:19 Poor tortoise lol Apr 27 02:12:22 jug6ernaut would be great if they found a bunch of empty pizza boxes up there Apr 27 02:13:05 Lol Apr 27 02:15:35 must not have kids or are hoarders Apr 27 02:16:09 family of dirty maybe Apr 27 02:16:12 would think there would be 30 years or tortoise poo up there Apr 27 02:16:14 dirty hippies Apr 27 02:20:49 Why is it bad to keep a reference to a fragment in a FragmentAdapter? Apr 27 02:26:08 Also is it bad to directly call a method in a fragment from parent? Apr 27 02:30:15 if a method can call in activity directly,infragment you must getactivity and call it,like getActivity().onBackPressed(); Apr 27 02:32:15 Im kinda talking the other way around Apr 27 02:32:19 Call frag from activity Apr 27 02:33:09 I will end up using an interface that the frag will implement, store it in the adapter, have a getter for it in the adapter, and use that in the activity **** ENDING LOGGING AT Wed Apr 27 02:59:58 2016