**** BEGIN LOGGING AT Sat Apr 30 02:59:58 2016 Apr 30 03:04:01 My ArrayObjectAdapter starts out with N empty rows, after a network request, row m gets items added to it. In the subclass of ArrayObjectAdapter, I call "notifyItemRangeChanged(index, 1);" but the list still appears empty Apr 30 03:17:46 Also gradle is slow as hell now what gives Apr 30 03:23:49 I just updated Android Studio and when I debug the app it's not getting installed onto my Samsung tablet. Has anyone else seen this? Apr 30 03:24:23 (and yes ADB is running - I can see logcat output in the IDE just fine) Apr 30 03:25:55 yee 'ol updating views off the main thread problem - damn Apr 30 03:26:09 not even install? Apr 30 03:26:34 you get logcat output from the tablet? Apr 30 03:27:33 check the 'Run' tab- does it give you a hint? Apr 30 03:27:46 I have been able to install on SS tablets before Apr 30 03:41:06 "weasel caused a "severe electrical perturbation" when it stepped on the bare connections of a 66,000 volt transformer. This not only proved instantly fatal to the weasel, but it also short circuited the power system" Apr 30 03:45:41 hm doesn't look like adt-dev list gets much traffic these days Apr 30 03:45:51 maybe everything moved to google+ ? Apr 30 03:48:45 exlpodes : run tab looks fine. all I know is after 8 years of successfully debugging on Android, Android Studio can't seem to put bits on the tablet. Apr 30 03:49:35 (all of a sudden). Apr 30 03:49:44 (since the last update - today) Apr 30 03:50:21 this reminds me of developing for Blackberry. Apr 30 03:50:24 lol Apr 30 03:54:16 Hello Apr 30 03:54:40 What other android emulators you know besides Genymotion and Visual Studio Android Emulator? Apr 30 03:55:12 Visual Studio Android Emulator literally screwed my pc with a bunch of incompatibilities Apr 30 03:55:55 Ranguro how many do you think there are ? :) Apr 30 03:56:02 Not so much. Apr 30 03:56:04 official, geny, and MS stuff is about it Apr 30 03:56:21 I can't use geny due to legal issues. Apr 30 03:56:31 why not use official then ? Apr 30 03:56:44 I can't run it. Apr 30 03:56:53 literally screwed? Apr 30 03:56:59 I have an AMD processor and I use Windows OS Apr 30 03:57:21 what size screws did it use? Apr 30 03:57:37 Robdgreat: funny :P Apr 30 03:57:44 ¯\_(ツ)_/¯ Apr 30 03:58:30 anyone else update to Android Studio 2.1 ? Apr 30 03:58:38 you can't follow "literally" with a figurative expression and expect it to make sense. Just sayin Apr 30 03:58:39 I mean, it's too invasive, it created a virtual adapter and that generated incompatibilities with MySQL Notifier and my VPN Apr 30 03:59:11 So I had to use a restore point to go back to the same point where I was. Apr 30 03:59:20 You might want to hold off. It's not handing builds or device integration very well at all Apr 30 03:59:45 at least you got it back without even more wailing and gnashing of teeth than that. I can imagine a lot worse outcomes from Windows Apr 30 04:00:45 I don't even have a computer beefy enough to not have every android emulator I've tried (that being the official one) prohibitively slow to use Apr 30 04:00:51 And It automatically installs a network adapter related to Windows Phone Apr 30 04:00:58 And I was like... Apr 30 04:01:00 what? Apr 30 04:01:20 so I just use my tablet as a dev device >.< Apr 30 04:01:23 Why does this thing want me to use Windows Phone software? Apr 30 04:01:34 or windows phone settings Apr 30 04:02:14 Ranguro you may have misunderstood the purpose of MS android emu haha Apr 30 04:02:51 Definetly, that thing is malware. I swear. Apr 30 04:10:18 I think I'll have to request a new PC to run this emulator. Apr 30 04:12:04 Ranguro get 16G Apr 30 04:12:14 16G? Apr 30 04:12:20 ram Apr 30 04:12:32 That's not the problem g00s_ Apr 30 04:12:49 just saying, for new machine Apr 30 04:12:52 The problem is that this CPU doesn't have Accelerator. Apr 30 04:13:04 yeah. so get intel machine with 16G Apr 30 04:13:07 It might be better to get an Intel CPU Apr 30 04:13:26 although not so sure about the skylakes :) Apr 30 04:13:43 Another thing I could be doing is to install Linux in a VM Apr 30 04:13:52 but it would be so shitty to run an emulator in a VM Apr 30 04:14:33 that way I could use the accelerator of the Android Studio Apr 30 04:43:00 "Intel cuts Atom chips, basically giving up on the smartphone and tablet markets" Apr 30 04:43:05 d'oh Apr 30 04:45:14 "Intel doesn't view tablets as a standalone market any longer, with form factors quickly merging." interesting Apr 30 04:45:52 "PC makers are replacing tablets with detachable devices and hybrids." Apr 30 04:50:33 i wonder if that impacts the android x86 images, i thought intel built those Apr 30 05:18:31 * mrandroid is havin' a blast on a Friday night. Woo hoo! Apr 30 05:19:18 uhhhhh ... anyone else see this? "Gradle build-info.xml not found for module projectAppTemplate. Please make sure that you are using gradle plugin '2.0.0-alpha4' or higher." Apr 30 05:19:40 * mrandroid palms forehead Apr 30 05:21:18 * mrandroid turns off new feature Instant Runs to see if it helps. Apr 30 05:21:41 yep... that did it. Apr 30 05:21:46 lol Apr 30 05:23:04 hey ... at least I get to hang out with my homes on IRC. If not it would make Friday's quite dull. Apr 30 05:29:29 I need a standing desk Apr 30 05:29:43 i'm too young to have back problems Apr 30 05:29:45 nah, they are fad Apr 30 05:29:57 I stand for about half the day at work, it's great Apr 30 05:30:11 until you get vericose veins and blood clot Apr 30 05:30:23 standing all day is bad too Apr 30 05:30:30 I want an adjustable one Apr 30 05:43:27 sit with proper posture Apr 30 05:49:43 Hi, when I release a new version of an app that has extensively changed the saved preferences versus the old version. There is quite a bit of risk of crashing because of that. Apr 30 05:50:01 could anyone recommend a way to deal with this? Apr 30 06:23:35 hrm @ http://www.ulduzsoft.com/2012/01/enumerating-the-fonts-on-android-platform/ Apr 30 06:54:02 * mrandroid is still here. Apr 30 06:54:24 good for you Apr 30 08:44:26 anyone know how to make a developer account have all purchasable items unlocked on google play (for my own app)? Apr 30 08:50:23 you can add your mail for test purchases which are free of charge Apr 30 08:53:55 found http://developer.android.com/google/play/billing/billing_testing.html, I had a mind blank on what to search to find this stuff, but your comment helped so thanks ("test purchases") Apr 30 09:38:11 anyone facing the problem where when you first launch AS you get that it couldn't load Android support and a bunch of other features? Apr 30 09:38:16 in an error dialog on the right Apr 30 09:38:25 reinstall? Apr 30 09:38:27 XML errors on the namespaces also Apr 30 09:38:44 have you installed those libs? Apr 30 09:39:00 they're not libs, it's android support as a whole Apr 30 09:39:10 thats a lib. Apr 30 09:39:12 the fact that the IDE supports Android development, that piece of functionality is erroring Apr 30 09:39:21 it's not talking about the support lib Apr 30 09:39:27 oh sorry then :/ Apr 30 09:39:30 and of course they're installed, I use this everyday Apr 30 09:42:00 updating tools Apr 30 09:42:18 hows things danijoo Apr 30 09:43:22 fine fine.. I moved and had to live without internet for 4 weeks -_- Apr 30 09:43:32 now i have to catch up with work Apr 30 09:43:32 a month without internet? Apr 30 09:43:42 and you Apr 30 09:43:44 I don't think i've lived a day without internet Apr 30 09:43:53 pretty good, got a new job Apr 30 09:43:58 well i had LTE over phone Apr 30 09:44:02 but thats expensive here Apr 30 09:44:06 yea everywhere Apr 30 09:44:08 Odaym: I have, it was terrible, the dark ages I called it Apr 30 09:44:14 it's impossible Apr 30 09:44:57 if you think about it, we haven't spent more than a day away from the computer Apr 30 09:45:02 since we were introduced to it Apr 30 09:45:10 sick Apr 30 09:45:18 i did Apr 30 09:46:03 for like a week? Apr 30 09:47:10 2 even Apr 30 09:47:28 retreat or something? Apr 30 09:47:29 sometimes outdoor is fun Apr 30 09:47:40 yea but you always have this feeling of being behind Apr 30 09:47:43 meh Apr 30 09:49:21 nyoro~n Apr 30 09:49:37 * wyoung bops Apr 30 10:03:45 it's fine now since I updated Tools Apr 30 10:03:48 strange Apr 30 10:47:15 Anyone in here that uses docker / gitlab-ci ? Apr 30 10:57:27 whats the best way to change the internal name of a preference on an update? Is there some magic method for that or do I have to do the update myself (move the value from one preference to the other on update) Apr 30 11:06:27 I don't think there's such a method Apr 30 11:07:04 it's not like they're important enough to make you feel like you shouldn't leave any preference dangling Apr 30 11:07:08 who cares, just move the value to somewhere else Apr 30 11:11:18 yeah i just wanted to not have to do the versioncode check stuff to migrate from preference set A to B Apr 30 11:11:53 my case is: I have a preference to disable notifications. Now I added a second type of notifications and want to let users enable/disable them seperatly Apr 30 11:12:26 so I have to check for the first setting, and enable/disable the 2 new ones accordingly on first boot Apr 30 11:13:29 ah the old notification is no longer implemented Apr 30 11:14:10 well i dont mind it still lingering arround on old versions. I just need to write the migration code Apr 30 11:14:45 But I dislike having this kind of code lingering arround in my codebase that actually only gets executed for one version upgrade Apr 30 11:15:11 it's bound to happen Apr 30 11:15:19 when no one is using the older version, you can delete it Apr 30 12:01:01 Hi there! Did someone of you use the auto generated Android-Client from swagger for an App and can help me a bit? Apr 30 12:30:20 I have some errors when compiling the HID support: https://github.com/pelya/android-keyboard-gadget/issues/49 I hope someone can help me Apr 30 12:30:44 are there any built in "refresh" icons for FAB's? Apr 30 12:31:41 just a static one? just search https://design.google.com/icons/ for refresh Apr 30 12:38:58 Anyone here have experience writing an app and publishing it to FDroid repo? Apr 30 12:40:53 azgul, materialdesignicons.com delivered with XML! :) Apr 30 12:42:19 what's a good library for fetching images every second? Apr 30 12:43:01 What kind of images? Apr 30 12:45:46 sn0wmonster, pictures Apr 30 12:46:48 sn0wmonster, http://www.vid.nl/ImageCamera/cam_38 Apr 30 12:48:07 I have some errors when compiling the HID support: https://github.com/pelya/android-keyboard-gadget/issues/49 I hope someone can help me????????????????????????????????????????????????????????????????????????? Apr 30 12:48:30 i think your ? key was stuck there for a second Apr 30 12:49:11 sorry xD Apr 30 13:02:13 ReScO, you can download them as svg on the offical site too, and import as xml Apr 30 13:02:21 oh nice Apr 30 13:04:50 I made a docker image for android building :D https://hub.docker.com/r/brainblendr/android/ Apr 30 14:00:49 I have to download a json file necessary for populating an activity's recyclerview. Do I need an asynctask? Apr 30 14:01:24 Otherwise, the activity would freeze :/ but I don't know what's the best way to manage that Apr 30 14:02:43 what should I do in onPostExecute() to make the activity continue after the file has been downloaded? Apr 30 14:03:15 thanks Apr 30 14:03:37 I would look into Retrofit, much nicer to work with than asynctasks Apr 30 14:04:26 supports RxJava oberservables, and even if you aren't into that it also has support for async calls Apr 30 14:04:58 does someone wants to help me? I try to add HID support to my kernel but I keep getting errors while patching with the .patch file so if someone was nice and would manually patch it for me?\ Apr 30 14:05:06 I dont understand anything from the .patch file and I tried Apr 30 14:05:21 my mail is tim241@ziggo.nl if someone is nice enough to help me Apr 30 14:05:34 azgul: thanks, I'll google it Apr 30 14:05:48 * vktec cringes at the word Google Apr 30 14:05:50 http://square.github.io/retrofit/ I'll save you the trouble Apr 30 14:05:57 DuckDuckGo, please guys Apr 30 14:05:59 ;) Apr 30 14:07:56 is retrofit 2.x compatible with 1.x? Apr 30 14:08:07 no Apr 30 14:08:10 go with 2.0 :) Apr 30 14:08:17 ok :) Apr 30 14:08:54 :) Apr 30 14:41:47 hrm... cant figure out any way to get unicode glyphs on android. there must be a way tho because japanese glyphs work in juicessh. Apr 30 14:42:17 CoreText has font substitution that works on iOS and OSX, GDI has same for windows, and linux has fontconfig. what does android have? Apr 30 14:53:07 i'm looking for a way to sign the APK in Gitlab-CI, can't find a damn thing about it, does anyone know how i can pass the keystore file to the build securely? Apr 30 15:08:52 Do linear layouts do two passes? Apr 30 15:08:58 If they are weighted? Apr 30 15:10:04 yea Apr 30 15:10:48 http://android-developers.blogspot.dk/2009/02/android-layout-tricks-1.html "The layout pass can be especially expensive when you nest several LinearLayout that use the weight parameter, which requires the child to be measured twice." Apr 30 15:10:59 And relative always do 2 passes right? Apr 30 15:13:33 yep Apr 30 15:16:15 hm. seems when i see an unknown glyph i can lookup its unicode block, then see if any /system/font/DroidSansLanguage.ttf DroidSansLanguage-Regular.ttf or NotoSansLanguage-Regular.ttf exist Apr 30 15:19:00 ReScO can't you just check in the keystore and set the passwords+alias as environment variables? Apr 30 16:26:46 When I browse my gallery I can view an image, but when I go to the file location of that image, it's not there. What's going on? Apr 30 16:31:58 try Gooooooooooooooooooooooooooogleeeeeeeeeee.com Apr 30 16:32:49 i did, but all the results are the opposite of my problem Apr 30 16:34:26 ow Apr 30 16:34:44 try root explorer Apr 30 16:35:00 if it does not shows any pictures Apr 30 16:35:16 then try flashing to stock Apr 30 16:35:22 flashing to stock? Apr 30 16:35:31 you are on android right? Apr 30 16:35:32 i just checked root, it also doesn't contain the image Apr 30 16:35:33 yes Apr 30 16:35:47 which device? Apr 30 16:35:53 note 3 Apr 30 16:36:06 watch this video it will probably help: Apr 30 16:36:34 tim241: do you use retrolambda? Apr 30 16:36:43 https://www.youtube.com/watch?v=uKJxLCzdefM it is from my own youtube channel xD Apr 30 16:37:00 what is retrolambda? Apr 30 16:37:13 Hmm, nevermind I guess Apr 30 16:37:31 https://github.com/evant/gradle-retrolambda Apr 30 16:37:32 why I use linux mint Apr 30 16:37:37 No its for java Apr 30 16:37:52 ow ok Apr 30 16:37:54 you're an awful person tim241 Apr 30 16:38:10 retrolambda is the best Apr 30 16:38:12 why PiggyGee Apr 30 16:38:21 i dont create apps Apr 30 16:38:48 Napalm: is there any way I could ask you a few questions about setting it up w/ gradle? Apr 30 16:38:54 tim241: and why are you telling me? Apr 30 16:38:57 Napalm: You can just use /away fyi Apr 30 16:39:04 why am I an awful person? Apr 30 16:39:19 idk Apr 30 16:39:22 vktec: i do, but I have scripts and I have scripts all setup Apr 30 16:39:35 Okay... Apr 30 16:39:53 It can be a bit.... spammy.... changing your nick every time you go away Apr 30 16:39:59 Just thought I'd warn you Apr 30 16:40:06 ??????????????????????????? Apr 30 16:40:11 ...Relax vktec Apr 30 16:40:33 drose379: It's not me personnally, just some others I've seen Apr 30 16:40:33 vktec: its been like it for the past 10 odd years and your the only one to comment so far.. so its not that annoying Apr 30 16:40:36 :D Apr 30 16:40:47 drose379: yes, if you want Apr 30 16:41:01 Ok, so do you use gradle? Apr 30 16:41:04 ofc Apr 30 16:41:27 Ok, I tried setting up retrolambda with gradle version 2.1.0 Apr 30 16:41:43 And it went fine, but when I set this: sourceCompatibility JavaVersion.VERSION_1_8 Apr 30 16:41:44 gradle plugin or gradle? Apr 30 16:41:55 the android gradle plugin is version 2.1.0 Apr 30 16:42:02 Right Apr 30 16:42:07 but the latest stable gradle is 2.12 Apr 30 16:42:12 i believe Apr 30 16:42:28 So ok that, and when I added sourceCompatibility to 1.8, AS kept telling me I had to enable jack Apr 30 16:42:38 yes, you dont Apr 30 16:42:44 its recommending you do Apr 30 16:42:47 It wont build without it though Apr 30 16:42:50 it will Apr 30 16:42:59 its because you have something else wrong with your scripts Apr 30 16:43:07 are you running the retrolambda scripts? Apr 30 16:43:28 I just followed the guide in the readme Apr 30 16:43:44 https://github.com/evant/gradle-retrolambda Apr 30 16:44:17 drose379: hopefully not too closely Apr 30 16:44:28 What do you mean Apr 30 16:44:36 pastebin your project and app module gradle scripts Apr 30 16:44:45 Well I got rid of it now Apr 30 16:44:49 Its all back to how it was before Apr 30 16:45:00 I can try again though Apr 30 16:45:05 If you are willing to check it out? Apr 30 16:45:11 what OS are you on? Apr 30 16:45:20 ubuntu Apr 30 16:45:33 aight let me get my laptop out Apr 30 16:45:47 why? Apr 30 16:46:15 'cause my desktop is running Windows and I got it set up on both :p Apr 30 16:46:38 Oh, cool Apr 30 16:47:57 i have two editeText one of them i must in english language and another must accept a specific language except english language wen i click on englishTextBox sofware keyboard is opened and it's default language is english and wen i click on second editTex it's default language is english , how to write a code to change language of s Apr 30 16:47:57 econd editText automatically ? Apr 30 16:48:00 what retrolambda version are you using? Apr 30 16:48:08 any way to sign an APK without having to transfer the keystore to my CI runner? Apr 30 16:48:46 ReScO I answered earlier: I think the only option would be to check in the keystore and set the passwords & aliases as environment variables Apr 30 16:48:49 not sure though Apr 30 16:50:50 azgul, i wish it was possible. Apr 30 16:51:03 there's no way i know of to transfer it on build Apr 30 16:52:02 drose379 what version of retrolambda? Apr 30 16:52:02 i have two editeTexts one of them only must accept english language and another must accept a specific language except english language wen i click on englishTextBox sofware keyboard is opened and it's default language is english and wen i click on second editTex it's default language is english , how to write a code to change lang Apr 30 16:52:02 uage of second editText automatically ? Apr 30 16:52:27 I think I've got it solved, thanks though azgul Apr 30 16:52:47 alright nps Apr 30 16:53:58 btw as per the instructions you should use 3.3.0-beta4 if you're using 2.0.0+ Apr 30 16:54:28 Ok, thanks Apr 30 16:59:23 i have two editeTexts one of them only must accept english language and another must accept a specific language except english language wen i click on englishTextBox sofware keyboard is opened and it's default language is english and wen i click on second editTex it's default language is english , how to write a code to change lang Apr 30 16:59:24 uage of second editText automatically ? Apr 30 17:00:08 hi. last time I used android studio it was still sort of eclipse. Is there a gui for the graddle stuff? It's new and confusing to me, hehe. I just want to build a bit XD Apr 30 17:00:30 no GUI for gradle but the syntax is simple you can generally copy/paste Apr 30 17:01:25 dpyro, version numbers confuse me, because it looks like I have to specify sub versions and the difference between "compileSdkVersion" "targetSdkVersion" also is not clear to me (but I guess I can look that up) Apr 30 17:01:45 there's a gradle menu on the right where you can see the tasks generated for the project Apr 30 17:01:53 invoking ./gradlew from the commandline works too :) Apr 30 17:02:38 ok :) thanks Apr 30 17:03:01 I guess it's easiest for me to create a new project and paste the little code I wrote already, hehe Apr 30 17:06:42 i usually keep a copy of the complicated templates generated Apr 30 17:07:00 Master-Detail view in AS, UISplitViewController in Xcode Apr 30 17:19:10 is possible to change soft keyboard language automatically in android after click on editText ? Apr 30 17:20:00 hmm, anyone using IntelliJ Upsource? Apr 30 17:20:43 is possible to change soft keyboard language automatically in android after click on editText ? Apr 30 17:20:52 doesn't look like it esfboy_25 Apr 30 17:21:41 since the language of the keyboard layout is defined by the keyboard app I don't see how it would be either Apr 30 17:23:45 azgul : i have read about it a lot and i know it is not possible but i have to do it in android with a lot of thinking Apr 30 17:36:44 what is the jarsigner command used by AS? Apr 30 17:36:48 I will pay you 10 bucks if you create a boot.img with HID support in stock kernel for my Samsung galaxy core 2 SM-G355HN(kernel version 3.10) tutorial: https://github.com/pelya/android-keyboard-gadget source for kernel: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-G355HN Apr 30 17:38:35 Hey guys, does anyone know how to get javah to create a JNI folder + properties for a Native App? Terminal can't recognise javah, and when I enter path\javah, it does nothing - nor error, no JNI component additions to app. Any help would be appreciated - a lot. Apr 30 17:39:19 I've set the Environmental Variables and Paths all correctly, entered right directory and everything Apr 30 17:39:32 do you use android studio Apr 30 17:39:43 it would generate things for you, no need to manually javah Apr 30 17:39:49 Well, I use Intellij IDEA Apr 30 17:40:23 try this simple example https://github.com/jdermont/NdkExample , its for AS 1.5 Apr 30 17:40:50 i bet you have JDK installed, so it should see javah by default Apr 30 17:40:59 can you javac? Apr 30 17:41:15 Ashiren Ok, thanks. Yes, I have the JDK and javac Apr 30 17:42:11 and what OS Apr 30 17:42:43 Windows 10 Home Edition Apr 30 17:43:15 I know it's not exactly the best for this kind of stuff Apr 30 17:43:39 well, just dunno how to set this on windows :v Apr 30 17:44:30 javac works from command line, cyource? Apr 30 17:45:17 Control panel -> system -> Advanced system settings -> Environment Variables ;) Apr 30 17:45:24 azgul not javac itself Apr 30 17:45:32 and set JAVA_HOME there Apr 30 17:45:42 you need to add the path to the jdk/bin folder to the Path environment variable then Apr 30 17:45:42 danijoo yea, I've done that but it's still not working. Apr 30 17:45:53 azgul done that Apr 30 17:45:53 you need to reboot or relog Apr 30 17:46:06 danijoo I've done that as well. Apr 30 17:46:07 ahh windows Apr 30 17:46:07 nah restarting command line is enough to pick up newly set environment variables Apr 30 17:46:33 for command line you also have to set PATH variable to the folder of javac binary Apr 30 17:46:40 thats not neccassary for AS though Apr 30 17:46:42 cyource did you add JAVA_HOME to Path then? Apr 30 17:46:49 azgul yep Apr 30 17:46:52 how can i set my /resources folder to target anything LOWER than a certain height? Apr 30 17:47:11 whats your JAVA_HOME value ? Apr 30 17:47:25 unsigned_long, add something that targets bigger than given height and the default one will be the fallback for LOWER Apr 30 17:47:27 The JDK's directory location Apr 30 17:47:33 including /bin?` Apr 30 17:47:42 I see :) Apr 30 17:47:46 added %JAVA_HOME%/bin in the path Apr 30 17:47:59 hmm ok Apr 30 17:49:01 Thanks for all the help guys, though. I think for now, I'll use the example project Ashiren gave. Apr 30 17:49:29 danijoo: worked great for me :) Apr 30 17:49:30 thanks Apr 30 17:55:21 Has anyone ever had issues with relative layout and bottom margin? Apr 30 17:55:38 And TextViewss being half cut off despite padding being there? Apr 30 17:56:10 Just been trying to figure out this nonsense and in the end I put a with a 8dp height to act as a margin/padding..... Apr 30 17:56:11 wtf Apr 30 17:57:48 akk9, did you pastebin your xml? someone might catch something Apr 30 17:58:34 how can i define a different buildConfig? Apr 30 18:00:25 http://pastebin.com/vdrPY1jj Apr 30 18:00:39 That it if anyone wants to have a look Apr 30 18:01:30 Also I had another issue where I have a imageview with height set to match_parent in relative layout, but it is smaller than the height on a device Apr 30 18:01:46 so I had to put a linear layout around it for no reason, but it seems to fix it Apr 30 18:05:06 I'm trying to make a gradle file for both local debugging (defaultConfig) and a special CI buildconfig which takes envvars to fill in some details, any tutorials on this? Apr 30 18:05:51 i have a JUnit4 test i'm trying to write Apr 30 18:06:07 when I comment out my @BeforeClass method, it runs my tests Apr 30 18:06:30 if I uncomment, it reports that there are no tests to run. "Empty tests suite." Apr 30 18:07:11 http://pastebin.com/9WGrhz9b Apr 30 18:07:51 Are you sure the tests run without the before class? Like, if you put a break point in them, they hit? Apr 30 18:08:28 yup Apr 30 18:08:40 I had issues when trying to run android tests in the unit test build and they would falsely report that they all passed, but they were never actually running Apr 30 18:08:41 i will double check now, but it passes/fails correctly Apr 30 18:09:22 I ended up giving up on the android unit testing stuff and just doing it all with robolectric Apr 30 18:09:24 why does every little thing have to be so much work with android Apr 30 18:09:36 worked just fine that way Apr 30 18:10:09 joshkovach, try seperating local debugging and CI build configs... Apr 30 18:11:47 i'm just going to do it all on androidTest Apr 30 18:11:50 http://pastie.org/private/9ie01i06ru0dcvknoiaj8g this is what i'm trying to achieve, but it'll break local building unless i define those envvars locally aswell. Apr 30 18:11:53 why bother with local tests Apr 30 18:13:24 Any way to seperate it, and access the alternative defaultConfig or something through ./gradlew ? Apr 30 18:14:49 the breakpoint is hit in my unit tests Apr 30 18:15:02 but not when I uncomment the @BeforeClass Apr 30 18:15:06 wtf is going on here? Apr 30 18:15:08 hmm Apr 30 18:15:17 well, at least your tests are running Apr 30 18:17:08 sort of Apr 30 18:17:24 mine were faking it and I spent a day or two down the wrong path Apr 30 18:17:48 Robolectric was a cinch to set up aside from having to reconfigure the gradle runner Apr 30 18:18:13 Check out how I test my timestamp formatter utility with joda-time android and robolectric here: https://gist.github.com/shekibobo/628b78928b8600498ae3bcf32d545be3 Apr 30 18:19:43 no mysteries, no vague how-to's from the android docs Apr 30 18:20:01 just grab an application context and go Apr 30 18:21:28 and it'll all run in your unit tests pretty quick. only an extra second or two for setup and then lightning fast Apr 30 18:22:07 so theres an exception being thrown in the @BeforeClass method Apr 30 18:22:22 hah I did not see anything in the logs that would suggest this Apr 30 18:23:02 null pointer on the application? Apr 30 18:23:39 casting error Apr 30 18:23:48 at least I figured out the problem Apr 30 18:24:03 it wasn't the @BeforeTest method, it was the body of the method lol Apr 30 18:26:00 the only thing you're casting is the application. Is that where the error was? Apr 30 18:26:23 ReScO probably the easiest workaround would be to have an extra flavor that you use for the CI server only Apr 30 18:26:34 how can i do that? Apr 30 18:27:38 a productFlavors block in your app/build.gradle Apr 30 18:28:19 okidokie Apr 30 18:28:29 that way i can set version numbers? Apr 30 18:28:57 what do you mean? Apr 30 18:31:25 azgul, if i used a different productFlavor, can i set version number and code that way? Apr 30 18:31:46 versionName/versionCode Apr 30 18:31:49 yes you can override all the things from the default config in a product flavor Apr 30 18:32:28 and how do i build only that flavor through gradlew? Apr 30 18:32:47 assembleNameBuildtype Apr 30 18:32:51 ahh Apr 30 18:33:48 avengers! Apr 30 18:38:37 finally fixed my unit test problem Apr 30 18:38:52 now wtf was I doing an hour ago? sorta derailed my train of thought lol Apr 30 18:48:38 hey Apr 30 18:48:51 how can i differentiate between devices with <4.0" and >4.0" ? :D Apr 30 18:48:51 https://www.dropbox.com/s/my4x6auib8yis3t/Screenshot%202016-04-30%2020.48.26.png?dl=0 Apr 30 18:48:56 consider this picture Apr 30 18:49:19 I want a diff. layout for Nexus One and Nexus S, on Galaxy Nexus it looks fine Apr 30 18:51:13 try to find the devices on https://design.google.com/devices/ or the most similar ones and figure out what dp width would hit the ones you want to it ^^ Apr 30 18:52:38 thanks :) Apr 30 18:52:52 can you also view sw600dp there? Apr 30 18:52:55 that would be awesome Apr 30 18:53:24 Pushed a tag to master, but production didn't build :( http://pastie.org/private/xwm4hiz0eslvwx5isjjrwq Apr 30 18:53:32 release* Apr 30 18:54:01 ./gradlew assembleProductionRelease Apr 30 18:54:06 it should be like that Apr 30 18:54:12 assembleProduction will build both the debug and release build Apr 30 18:54:36 If a synchronous method is in the middle of running, and the user presses the back button, that method will finish first, then the back button will be handled, right? Apr 30 18:55:23 and /gradlew assembleDebug will build all debug builds of all your flavors Apr 30 18:56:00 if the method runs on the ui thread, sure Apr 30 18:56:24 Thanks azgul Apr 30 18:56:58 So its fine to pass context to a synchronous method on the ui thread, and not fear a leak Apr 30 18:57:01 azgul: i love you! Apr 30 19:01:03 drose379: yes Apr 30 19:13:20 what if I have 8 different XML layout files for the same activity and want to change a Button—>TextView? Apr 30 19:13:33 do i have to change it in all 8 or is android studio smart enough? Apr 30 19:13:57 ugh I would do includes so you don't have duplicate things Apr 30 19:14:30 kk :) Apr 30 19:14:45 and if they're just the same with different values you should define dimensions for the layout rather than having so many layouts for the same activity Apr 30 19:16:01 well my tests are running now, but will not write to the firebase database Apr 30 19:16:06 it works in my app Apr 30 19:16:10 but not androidTest Apr 30 19:31:04 does this work for the applicationContext in androidTest? Apr 30 19:31:38 (Application) InstrumentationRegistry.getTargetContext().getApplicationContext()? Apr 30 19:34:40 azgul, which gradlew command do i use for unit testing? Apr 30 19:37:24 does anyone have a fix for this error "libsepol.policydb_read: policydb version 30 does not match my version range 15-29" Apr 30 19:39:10 ReScO you can run gradlew tasks to have it list all your tasks >( Apr 30 19:39:12 :)* Apr 30 19:39:37 azgul: I can see all tasks, just don't know which one to use to test Apr 30 19:43:37 assembleDebug assembles even when the app might throw an exception Apr 30 19:44:33 of course you can't check for runtime exceptions at compile time :P Apr 30 19:47:45 How do you load another PreferenceFragment from within a PreferenceFragment? Do you need to create a custom handler or is there something built in? Apr 30 19:48:17 erm? just start it with the activity's fragment manager? Apr 30 19:50:07 anyway ReScO look under 'Verification tasks' :) Apr 30 19:50:38 Napalm: from within the prefs XML? Apr 30 19:55:12 Illya its a little different, depending on whether you use native PreferenceFragment or compat one Apr 30 19:55:23 azgul: awesome Apr 30 19:55:46 the native one takes care of things for you, but the support lib version punts to you , do show the next fragment Apr 30 19:56:02 hey Napalm Apr 30 19:56:12 hey Apr 30 19:56:16 instant run has been working pretty well for me in 2.1 :D Apr 30 19:56:28 hope my lucky streak doesn't wear off Apr 30 19:56:42 g00s: what's the difference? Apr 30 19:56:52 Illya read the docs between the 2 Apr 30 19:58:06 fuck man, d.android.com search box is so fucked Apr 30 19:58:27 i just tried searching for PreferenceFragment but it only shows the native one Apr 30 19:59:17 oh right, looks like it's just which version is supported. Yeah, we're only supporting 4.4.4 and higher so the native one should be fine I guess Apr 30 19:59:33 Illya anyhow, piece of the puzzle http://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat.OnPreferenceStartFragmentCallback.html Apr 30 20:00:14 Napalm at least i get the english version of the site :D Apr 30 20:00:30 lol Apr 30 20:00:46 Illya: are you sure you just dont want another PreferenceScreen? Apr 30 20:00:57 brb, food time Apr 30 20:01:18 Napalm oh. yeah that looks like what I want Apr 30 20:01:28 Im trying to use a Lambda on ViewPager.SimplePageChangeListener Apr 30 20:01:38 Illya then you need http://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat.OnPreferenceStartScreenCallback.html Apr 30 20:02:35 only for the compat version though ;) Apr 30 20:03:14 yeah, looks like we're gonna use the native one Apr 30 20:03:21 Hey guys, say a method accepts a ViewPager.OnPageChangeListener, which has multiple methods Apr 30 20:03:45 But there is another abstract class callled ViewPager.SimpleOnPageChangeListener, where you only have to override the method you are using Apr 30 20:03:57 I tried to use a lambda for this, but Im not sure if its gonna let me Apr 30 20:04:19 I want my unit test case to wait for Firebase servers to syncronize with local data. I did create a listener Apr 30 20:04:26 That's not how lambdas work O.o Apr 30 20:04:29 is there a way to wait for this listener to be fired? Apr 30 20:04:43 Thread.sleep(2000) works but thats not ideal Apr 30 20:04:56 What do you mean Mavrik Apr 30 20:05:38 It just replaces an anon inner class w/ one public method Apr 30 20:05:50 Or so I though Apr 30 20:06:01 t Apr 30 20:06:10 g00s: the preference screen seemed to work, however, the actionbar (I think it's called that) disappeared when going into the other preferencescreen Apr 30 20:07:43 drose379, lambda is a SINGLE function. Apr 30 20:08:05 Right Apr 30 20:08:16 And you cant coerce it to be accepted as an interface with more than one function. Apr 30 20:08:17 I thought since I was only overriding a single function I may be able to use it, but guess not Apr 30 20:08:21 Right Apr 30 20:08:32 (Those interfaces aren't so-called functional interfaces in Java speak :) ) Apr 30 20:08:45 A runnable would be a functional interface Apr 30 20:08:48 yp Apr 30 20:08:55 or any other interface with a single method. Apr 30 20:09:08 Why is it called functional Apr 30 20:09:39 Probably because it can be implemented with a single function :) Apr 30 20:10:10 Ah, I see Apr 30 20:10:11 Mavrik did you use Dash ? Apr 30 20:10:13 Thanks Mavrik Apr 30 20:10:20 g00s, still do Apr 30 20:10:27 Is it possible to reference string array items in xml layouts? Apr 30 20:10:30 Mavrik android docs up to date ? Apr 30 20:11:07 i mean, when the web changes does dash get a prompt update Apr 30 20:11:29 i'm assuming they are scraping from the web anyhow Apr 30 20:13:45 g00s, uhh... I guess? :P Apr 30 20:13:56 It's autoupdating in the background so I never notice that. Apr 30 20:14:09 I didn't find anything missing so I guess yeah :) Apr 30 20:14:20 Mavrik does it have BottomSheetBehavior ? :) Apr 30 20:15:34 Hmm, there's no .design. Apr 30 20:16:22 Anyone know what an AML customisation tool is? Apr 30 20:17:42 no idea Apr 30 20:18:58 Nvm Apr 30 20:19:13 How about changing the init.rc file Apr 30 20:21:30 Does scheduleLayoutAnimation also animate all viewgroups under that view? Apr 30 20:35:01 anyone remember when was "local classes" introduced in java? Apr 30 20:35:10 i mean, in which version Apr 30 20:36:23 inner classes or anonymous classes Apr 30 20:37:00 inner classes were introduced in 1.1 apparently https://en.wikipedia.org/wiki/Java_version_history Apr 30 20:37:15 inner named classes Apr 30 20:37:54 void xMethod() { class Foo { ..} } Apr 30 20:38:38 oO Apr 30 20:39:12 i took J2SE certification exam in 2002. I don't remember that thing Apr 30 20:39:49 hmm Apr 30 20:39:57 Didn't know that could be done :P Apr 30 20:40:01 well i havent used that Apr 30 20:40:03 But it seems it's in there for ages. Apr 30 20:40:17 i suspected java 8 first but yeah, its earlier definitely Apr 30 20:40:19 Probably since anonymous classes exist. Apr 30 20:42:41 The Class#isLocalClass method in the javadocs is annotated "since 1.5". Apr 30 20:43:15 would have been nice if java had local methods too Apr 30 20:43:17 Which probably at least gives an upper bound. Apr 30 20:43:49 (As in, local classes might in theory have existed before defining a Class#isLocalClass, but probably not the other way around.) Apr 30 20:44:35 found the 1.2 lang spec. it's there Apr 30 20:44:58 Mm. Class#isMemberClass is since 1.5 as well, so guess they just improved reflection at that time. Apr 30 20:46:23 does Kotlin allow methods in methods ? Apr 30 20:47:48 Besides lambdas? Apr 30 20:47:56 yeah Apr 30 20:48:02 How would that differ? Apr 30 20:48:36 something like void foo() { void step1() { .. } void step2() { .. } step1(); step2(); } Apr 30 20:50:11 yeah i guess with lambdas you can do the same thing Apr 30 20:50:43 so "val step1: () -> { .. }; step1(); ?" :) Apr 30 20:52:48 Anyway, I don't know of a language that allows that (besides having higher order functions and defining them as variables) Apr 30 20:57:01 Mavrik lisp, scheme, scala, JS, gcc extensions with C, D Apr 30 20:57:11 yes, gcc can actually do this haha Apr 30 20:57:25 those fuckers Apr 30 20:58:17 Mavrik TYL https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html Apr 30 20:58:42 hmpf Apr 30 20:58:46 HAHA Apr 30 20:58:53 Lemme see how do I disable this :P Apr 30 20:59:24 Before anyone actually uses it. Apr 30 20:59:54 well, it was there since 2007 at least so - if nobody found it by now ;) Apr 30 21:00:57 i guess you guys just don't know your compiler :P Apr 30 21:01:39 Nested functions are ooold Apr 30 21:01:50 btw, Pascal had nested functions :D Apr 30 21:01:54 yeah and ada Apr 30 21:02:11 Hmm, I think I stopped pascal before finding those :) Apr 30 21:02:14 Never used Ada. Apr 30 21:02:23 But yeah, they seem like maintainability nightmare. Apr 30 21:02:26 PL/1 had nested functions that apparently could return functions referring to nested functions... Apr 30 21:02:27 * Mavrik remembers his JS days. Apr 30 21:02:30 * Mavrik shudders. Apr 30 21:02:42 p_l, isn't that like how all JS frameworks are written? :P Apr 30 21:03:08 just a huge centipede of nested functions? :) Apr 30 21:03:33 you forgot callbacks clumsily emulating CPS Apr 30 21:04:22 Hmm, just ran out of memory on my VPS when testing IntelliJ Upsource Apr 30 21:12:02 p_l you saw the news about chez ? Apr 30 21:13:11 Anyway, why's there CMake in my Android SDK and when can we use it :P Apr 30 21:13:45 g00s: ? Apr 30 21:13:59 p_l https://news.ycombinator.com/item?id=11572516 Apr 30 21:14:29 Mavrik haha would be funny if they replaced all the gradle stuff with cmake ! Apr 30 21:14:38 does anyone use cmake for java :P ? Apr 30 21:14:49 Nah Apr 30 21:15:03 Would be nice to have Gradle just execute CMake for NDK compile. Apr 30 21:17:02 can I detect any hardware button press while the screen is off and locked? (volume or worst case: a headset button) Apr 30 21:18:11 yes Apr 30 21:18:46 Do I need a wakelock and a service? Or what would I need? Apr 30 21:18:54 anotheryou: https://developer.android.com/training/managing-audio/volume-playback.html Apr 30 21:21:21 thx Napalm. I don't want to resist the urge to listen to the keys though :) I want to override them and not use them as volume buttons... Apr 30 21:21:51 would I need a media button on a headset than? Apr 30 21:23:38 I'm building a very simple app, but quick access with screen off is important: A simple dice: hit the volume button n times and get random(n) vibrations in return. Apr 30 21:24:59 first tried to recognize knocks from audio, but it's too difficult I think. Or at least for me, even with a dsp library for such things Apr 30 21:28:16 fiverr is so great...driving prices rock bottom Apr 30 21:37:50 dpyro you'll think differently when you're forced into ebay action for your work :) Apr 30 21:38:03 i will cry Apr 30 21:43:00 hello, I found that "battery saver" mode on Android blocks my network calls to my server even when running with a foreground service, does someone know how I could fix this? Apr 30 21:44:16 steran thats a complex subject and huge can of worms ... Apr 30 21:44:39 all that recently changed Apr 30 21:45:12 steran: it sounds like its doing exactly what it should do Apr 30 21:45:33 foreground blocking? Apr 30 21:45:37 give headaches :D Apr 30 21:45:39 hmm Apr 30 21:45:42 Is there a way to force portrait mode for a live wallpaper? Apr 30 21:45:47 g00s, yes actually it only happens with Android 6.0+ Apr 30 21:45:51 steran, that sounds very unlikely Apr 30 21:45:58 what kind of phone is it? Apr 30 21:46:12 Are you talking about doze? Apr 30 21:46:35 Mavrik, tested on both Nexus 5 device and Samsun S7, both are doing the same Apr 30 21:46:36 http://developer.android.com/training/monitoring-device-state/doze-standby.html Apr 30 21:47:49 so could I assume the behavior of the device in doze mode is the same as in batter saver mode? Apr 30 21:47:56 No. Apr 30 21:48:16 That's why I'm asking what kind of battery saver are you talking about and which OEM Apr 30 21:48:27 (Since those tend to hack stuff to implement their own.= Apr 30 21:49:56 happens just the same on nexus phones on Android M only, on Lollipop I don't have the problem Apr 30 21:50:30 You still didn't mention what kind of power saving are you talking about. Are you talking about the < 15% battery saver (orange status bar)? Apr 30 21:51:04 Hi guys Apr 30 21:51:37 Mavrik, Yes that one Apr 30 21:52:05 Does anyone know of any tools that you can use to change USB storage as either SD card or internal storage? Apr 30 21:53:11 I'm using a self-signed certificate (which I generated) to connect to a service I own using okhttp3. I keep getting a javax.net.ssl.SSLHandshakeException (Connection reset by peer) during the client-server handshake Apr 30 21:53:26 Ah, I didn't notice anything like that. It's also not really documented :/ Apr 30 21:53:46 i've checked my ciphers (they match and are on the supported list) and the TLS version is correct too.. i have no idea what's wrong and there's nothing meaningful in the logs Apr 30 21:53:58 please help save my computer, because I'm about to throw it out the window in frustration :( Apr 30 21:54:17 any ideas what could cause this -- or, even better, how to resolve it? Apr 30 21:55:09 yeah I know... having some trouble finding anything that could help me with this battery saver thing Apr 30 21:55:40 And me with my storage.... Apr 30 21:55:46 I've tried emulating using a nexus 5 and 6 and still run into this issue. I can hit my server using the emulator's browser (assuming i accept the certificate), so it seems like there issomething i can do about it Apr 30 21:55:54 but i'm not sure what that something is Apr 30 21:58:29 kommunicate, em, silly question, but did you pass your public key to OkHttp so it'll accept connection to your server? Apr 30 21:59:17 I put my certificate inside a keystore and loaded it up into an ssl socket factory, then set okhttp3 to use that as the SslSocketFactory Apr 30 21:59:32 however, i never get to the point of hostname verification Apr 30 21:59:41 it fails before that point Apr 30 22:01:04 I'd throw wireshark at the problem :P Apr 30 22:01:11 Or verbose logging on your serverside Apr 30 22:01:24 I' not getting to the point of hitting the server Apr 30 22:01:41 it's definitely client side, but there's just so little information that i'm not sure what's wrong Apr 30 22:01:44 Sure you are. Apr 30 22:01:51 You just don't get past the HTTPS handshake. Apr 30 22:03:19 the only real clue I have here is that I'm using the same approach to communicate between two services successfully Apr 30 22:03:29 but.. the keystore type is different Apr 30 22:04:43 wireshark is a good idea though Apr 30 22:10:58 Dumb question Apr 30 22:11:25 If I had references to like 20 views, is that bad? Apr 30 22:11:35 no Apr 30 22:11:38 why would it be bad Apr 30 22:11:42 I dunno Apr 30 22:11:56 Do they use memory? Apr 30 22:12:21 I had an app dynamically generating text views in a recyclerview and had probably 80+ while scrolling Apr 30 22:12:24 so i think ur fine Apr 30 22:12:29 and yes ofc they do Apr 30 22:12:54 orbyt_: doesn't mean that's good :P Apr 30 22:13:04 spudowiar: what part Apr 30 22:13:10 orbyt_: having 80+ :) Apr 30 22:13:16 So it is bad? Apr 30 22:13:19 AKK9_: each unique instance of an object uses memory. each reference to an object uses very little. Apr 30 22:13:23 Ah okay Apr 30 22:13:26 spudowiar: what? it was part of the app Apr 30 22:13:39 orbyt_: normally, you can trim that sort of stuff down Apr 30 22:13:45 e.g. recycling the views that aren't on display Apr 30 22:13:52 g00s: regarding build system changes... inb4 SDK starts coming with bazel BUILD files ;> Apr 30 22:13:57 So the view is already instanced because its on teh scrren so thats the bulk of it, and then my reference is not a problem Apr 30 22:13:59 spudowiar: it was, readdd Apr 30 22:14:05 Thansk Apr 30 22:14:12 spudowiar: they were comments, so 2 1/2 comment sections per screen. They were killed when not displayed Apr 30 22:14:37 orbyt_: but that's inefficient Apr 30 22:14:46 orbyt_: you should keep the old views Apr 30 22:14:46 spudowiar: your making 0 sense Apr 30 22:14:49 orbyt_: and reuse them Apr 30 22:14:59 orbyt_: e.g. first comment scrolls off, use that same view for third comment Apr 30 22:15:05 spudowiar: please stop talking Apr 30 22:15:09 Napalm: what? why? Apr 30 22:15:12 spudowiar: listen to Napalm Apr 30 22:15:14 spudowiar: he was using a RecyclerView Apr 30 22:15:18 its done for you Apr 30 22:15:23 thats its purpose Apr 30 22:15:41 Napalm: oh, lol, didn't see him say RecyclerView :) Apr 30 22:16:08 it was in the same sentence as 80+ and you got that Apr 30 22:16:16 * Napalm sigh Apr 30 22:16:29 Napalm: because this is what I see "...probably 80+..." WTF!!!?!?!?!?!? Apr 30 22:16:37 Napalm: basically Apr 30 22:16:55 i could have 200+ views on the screen and be fine Apr 30 22:17:07 hell id even say 2000 Apr 30 22:17:09 Napalm: on the screen though? Apr 30 22:17:10 its not the number of views Apr 30 22:17:18 its how they are organised Apr 30 22:17:29 How can I compare two views? Apr 30 22:17:35 well obviously the number will play a point eventually.. but you get my point Apr 30 22:17:40 View.equals()? Apr 30 22:17:47 AKK9_: this just sounds wrong Apr 30 22:17:52 AKK9_: weigh them Apr 30 22:18:16 I have one click listener on 30 views Apr 30 22:18:32 AKK9_: and what does equals have to do with it? Apr 30 22:18:34 I want to say if (view == myView) then do stuff Apr 30 22:18:48 AKK9_: attach your data to the view with setTag() or use getId() on the view Apr 30 22:18:50 Napalm: I thoguht that is how you compare objects Apr 30 22:18:51 AKK9_: view.getId() == R.id.myid Apr 30 22:19:59 Coolio Apr 30 22:20:00 thanjs Apr 30 22:20:38 I'm probably doing this all wrong, but I'd rather finish something shite and then fix it Apr 30 22:21:04 Thats the spirit Apr 30 22:21:11 * Napalm rolls eyes Apr 30 22:24:13 i remember when romain guy recommended against more than 100 views on screen at once... Apr 30 22:24:18 was a few years ago Apr 30 22:25:24 Napalm i'm willing to bet 2000 views won't work out well :P Apr 30 22:26:18 g00s: wanna place a bet? Apr 30 22:26:54 if i was a betting person, i would :) Apr 30 22:27:24 lol Apr 30 22:27:42 :D Apr 30 22:29:40 probably depends on the call stack size too Apr 30 22:29:54 at least up to 4.2, it was only 16K Apr 30 22:30:51 and every layer of hierarchy has at least 3 functions to dispatchL draw , dispatchDraw, and drawChild Apr 30 22:31:14 so? Apr 30 22:31:16 I'm trying to abstract Firebase from the rest of my app Apr 30 22:31:20 i never said the 2000 were nested Apr 30 22:31:32 Does wrapping Firebase in RX sound like a crazy idea? Apr 30 22:31:54 otherwise I'm going to need Firebase listeners across my app Apr 30 22:32:20 RustyShackleford: make a wrapper around Firebase with your own interfaces. Apr 30 22:32:26 now you can replace it if you like Apr 30 22:32:56 leaning towards rx Apr 30 22:33:21 the onNext(), onComplete() and onError() callbacks are very nice IMO. It should work great if I can figure out how to tie it all together Apr 30 22:34:08 Napalm still doubt it, try it for science ! i think the burden of proof is on you though haha :D Apr 30 22:36:05 Got a question Apr 30 22:36:23 Say I get a List of data from the local DB Apr 30 22:36:42 I store that list in the class, then I create an Adapter and pass it the list of X Apr 30 22:36:54 If I edit that list in the class, will the list stored in the Adapter also be edited Apr 30 22:59:28 g00s: https://gist.github.com/slightfoot/234fa432445b9d2dad38b6b0d3b4a0dc Apr 30 23:00:49 drose379: yse, if you just store the same object.. if you dont want that to happen. and I guess you wouldnt want it.. then inside your Adapters constructor duplicate the list with new ArrayList<>(list); Apr 30 23:08:19 Napalm what happened ? :D Apr 30 23:08:28 it worked fine Apr 30 23:08:29 if the root view is a scrollview, how many seconds per frame :D Apr 30 23:08:50 lets try Apr 30 23:16:57 g00s: perfectly fine 60fps Apr 30 23:17:19 now I think about it, why would it would make a difference? Apr 30 23:20:27 i'll have to try it Apr 30 23:20:37 g00s: ive updated the gist Apr 30 23:20:50 i have hard time getting 30fps with basic shit, very skeptical Apr 30 23:20:58 then your doing it wrong Apr 30 23:21:09 as i said, its not about the number of views Apr 30 23:21:15 i have maybe 20 views in my DrawerLayout, its janky to pull in / out Apr 30 23:21:29 no relativeLayouts either :) Apr 30 23:21:35 then you have some issues with your layouts Apr 30 23:21:47 g00s: that doesnt mean much Apr 30 23:21:50 maybe GridLayout sucks, its basic stuff Apr 30 23:21:50 but i get your point Apr 30 23:36:31 any Picasso pros around? Apr 30 23:36:55 Me Apr 30 23:38:37 g00s: a drawer measures, lays out, and draws once. When you open it the GPU is just translating a layer. Apr 30 23:39:08 If your drawer is slow you're doing something else wrong that's causing invalidation and/or layout Apr 30 23:39:53 JakeWharton, i'm trying to reload an imageview in a cardview every 2 seconds, what is the best way to do it? Apr 30 23:40:46 Post a delayed message to a Handler when the card is visible which triggers reload Apr 30 23:43:01 anyone happen to know how android maps ips between the localhost and host machine? Apr 30 23:43:24 i think my self-signed certificate woes are happening because of something to do with the IP translation Apr 30 23:44:17 if i had a self-signed certificate on a host with an ip of 127.0.0.1, when android tries to connect to it using 10.0.2.2, would it think there was some kind of a host mismatch, and could that cause a handshake failure? Apr 30 23:46:23 JakeWharton, that only adds more and more and more handlers which makes it freak out Apr 30 23:47:01 There should only be one Handler Apr 30 23:49:44 JakeWharton, so, do that in the Adapter right? Apr 30 23:52:11 Here's my code so far though, removed the handler from it because of the issues: https://gitlab.brainblendr.com/iSDP/IJmondBereikbaar/blob/master/app/src/main/java/com/brainblendr/foss/ijmondbereikbaarcams/RecyclerViewAdapter.java#L61 Apr 30 23:52:26 JakeWharton: is there anywhere I can find a list of potential causes for an SslHandshake exception in okhttp3 that I might not have seen? Apr 30 23:53:25 The OS does handshakes, not OkHttp Apr 30 23:54:35 good point Apr 30 23:55:26 I was hoping there was some kind of list for common causes for this and I'm a bit out of ideas at this pint Apr 30 23:55:28 *point Apr 30 23:55:54 ciphers are right, protocol is right, same basic approach works from a service running on the host machine to another service on the host machine; but android fails Apr 30 23:56:20 i'm missing something obvious about this but the comment right above the handshake line just has this one cryptic comment: // Force handshake. This can throw! May 01 00:15:00 So when does one replace a lambda with a method reference? May 01 00:23:57 JakeWharton, do you have any tips or pointers for what i'm trying to do? May 01 00:24:33 ReScO: I thought he said to use a Timer? May 01 00:25:42 Handler, but i've got no clue where :( May 01 00:26:38 last time i tried that, it spawned handlers over an over May 01 00:27:48 saw no message about a timer though May 01 00:57:58 hey guys I come to you for desperate advice. I need to have a scrollable page on my hybrid mobile app, that contains concert schedules and events. It need to update daily. Currently there is a website that does just that, so I could pull an RSS from there. But what would be another option? Any advice would be helpful! Thanks in advanced! May 01 02:28:32 bottom nav in google+ is just ... linearlayout with some textviews :D May 01 02:38:11 Hi, I'm a new aspring android developer May 01 02:38:24 How much Java do I need to know before I begin android dev ? May 01 02:39:22 Swyper basic java is fine, but concurrency is a topic that gets tricky May 01 02:40:15 what do you define as "basic?" I know the following concepts well: loops, methods, objects, inheirtance, single dimensional arrays May 01 02:40:25 is that good enough ? May 01 02:40:41 Swyper so imho its probably best to learn RxJava and a few rules, then go crazy with all the other stuff like HandlerThread / jsr166, etc May 01 02:41:13 Swyper yeah ... for the most part ;) May 01 02:41:18 I don't even know what Rx Java is xD May 01 02:47:05 Swyper there are 2 RxJava books coming out May 01 02:47:41 but they are both yet to be published May 01 02:47:43 http://shop.oreilly.com/product/0636920042228.do May 01 02:48:05 https://manning.com/books/grokking-rx May 01 02:48:25 Swyper so for Java, learn the basics. get yourself 'effective java 2e' May 01 02:49:24 this should be fun http://www.amazon.com/Android-Concurrency-G-Blake-Meike/dp/0134177436 May 01 02:49:32 also, not out yet haha May 01 02:51:56 Im in school and taking Java as well got an A in java one May 01 02:52:01 we did go much into OOP though May 01 02:52:14 I have liangs intro to programming **** ENDING LOGGING AT Sun May 01 02:59:58 2016