**** BEGIN LOGGING AT Fri Apr 29 02:59:58 2016 Apr 29 03:01:21 Hmm java 8 has Optional Apr 29 03:01:30 does the order you declare your dependencies in build.gradle matter? Apr 29 03:01:37 Dont think so? Apr 29 03:14:44 hi, guys I have 2gb ram on my computer so the Android studio is being very slow on my computer, is there any way to improve android studio's performance? Apr 29 03:14:58 Theres powersave mode Apr 29 03:16:13 where? Apr 29 03:17:19 is indexing important? because indexing is what is taking most of the ram Apr 29 03:18:44 buy new ram Apr 29 03:19:17 PC2K: *clapping* Apr 29 03:19:22 even in AS recomend you has 4gb ram,but you should get 8gb Apr 29 03:20:11 still lag as hell with 4gb ram Apr 29 03:20:32 why aren't they keeping the thing light Apr 29 03:26:15 endif gralde itself wants 5G ... Apr 29 03:26:26 for in process dexing, so yeah - 8G minimum Apr 29 03:26:38 i have 4G and its pretty terrible Apr 29 03:26:51 can't even see how 2G would work at all Apr 29 03:27:13 you might have to use vim Apr 29 03:49:42 "Osterloh has come back to Google where he will lead a new hardware team that's responsible for Nexus, Chromecast, Glass, and more." hm Apr 29 04:19:27 quite in here Apr 29 04:19:38 quite quite Apr 29 04:20:06 quite quite quite Apr 29 04:20:39 whoops Apr 29 04:23:16 hey alex_PP Apr 29 04:23:26 morning Apr 29 04:23:43 man protobuf 3 is taking forever Apr 29 04:24:09 to? Apr 29 04:24:15 release? run? Apr 29 04:24:24 release Apr 29 04:24:27 not used protobuff in years Apr 29 04:24:34 wonder if it will be done in 2016 Apr 29 04:25:17 does android support the pks keystore type? I'm seeing conflicting things on the internets Apr 29 04:25:55 alex_PP any cool camera things going on ? Apr 29 04:26:00 nope Apr 29 04:26:18 bought a gopro, not really found a good use for it beyond giving to my daughter to mess with Apr 29 04:26:25 (whuch was kind of the point really) Apr 29 04:26:56 kommunicate, no idea, but if you're getting mixed messages, I'd guess there are some that do and some that don't Apr 29 04:27:04 heh, yeah my neighbor put it on her dog Apr 29 04:27:15 I always use BKS, which is supported everywhere, I think Apr 29 04:27:39 It's pretty cool for time lapse too Apr 29 04:28:01 anyone used couchbase android? Apr 29 04:28:03 any good? Apr 29 04:28:09 alex_PP saw that people are putting flashlights on drones for night painting Apr 29 04:28:41 yeah, not sure why Apr 29 04:28:45 isn't couchbase in erlang? Apr 29 04:28:48 unique images the first time i suppose Apr 29 04:28:57 not the android one Apr 29 04:29:02 not sure about the server side Apr 29 04:29:14 no... you're thinking of another nosql Apr 29 04:29:19 can't rememeber which one Apr 29 04:29:22 PKS and JKS are more traditional standards but there are weird export regulations around some of the crypto libraries, so i wouldn't be surprised if they weren't supported Apr 29 04:29:47 riak i think Apr 29 04:30:17 bks has a slightly different way of doing everything Apr 29 04:30:43 why do you need a specific keystore type, kommunicate? Apr 29 04:30:45 alex_PP the couchbase guy used to hang out here; i thought he was doing java <-> erlang heh Apr 29 04:31:08 but that was a few years ago, maybe its changed now Apr 29 04:31:16 server is still erlang, go, c++ Apr 29 04:31:19 alex_PP: i have control of the keystore types but not all of them are supported in android Apr 29 04:31:46 i just discovered that jks stores don't seem to be supported Apr 29 04:32:33 hello, How could I avoid Android stopping my foreground service when on battery/power saving mode? Is this actually possible? Apr 29 04:32:40 i was mostly hoping i could avoid having to look up how to do things in the slightly different alternate way, but it looks a bit unavoidable Apr 29 04:32:55 so thank you for helping make that decision easy Apr 29 04:34:35 g00s, cool, not seen any erlang while I've been reading up Apr 29 04:34:42 I like the idea or erlang Apr 29 04:34:46 no idea why, never used it Apr 29 04:38:05 *idea of Apr 29 04:38:18 alex_PP there was some Lr update today .... Apr 29 04:38:26 5? Apr 29 04:38:32 minor update Apr 29 04:38:35 not got sick, got tired of adobe's balls Apr 29 04:38:42 *six Apr 29 04:38:58 yeah i hope Affinity does something great Apr 29 04:39:06 Erlang is very painful to program in. Dynamically typed, close to no tool support, no debugger, cryptic error messages, terrible string support Apr 29 04:39:36 no debugger O.o :( Apr 29 04:39:45 shame Apr 29 05:02:24 Hello everybody, someone knows how can i make a sensor class and use it in main activity? Apr 29 05:02:36 I getting a lot of trouble about this. ] Apr 29 05:03:44 any of you guys use trello on android? Apr 29 05:03:54 I'm wondering how you implement a pager like that Apr 29 05:05:29 can I do that using only only a recyclerview? Apr 29 05:05:56 doubt it's a pager Apr 29 05:06:04 looks like a custom view to mee Apr 29 05:06:34 also the draggable cards Apr 29 05:06:34 or maybe it is a pager Apr 29 05:06:51 I just used the word pager to describe the idea Apr 29 05:07:09 i've never used it on a tablet, but I imagine you can see more than one list at a time Apr 29 05:07:49 a trello clone seems like a fun exercise Apr 29 05:08:15 I would guess it's one view for the left right and another for the lists Apr 29 05:08:27 left right could well be a pager Apr 29 05:08:43 reto(?) has a video on drag and drop lists Apr 29 05:09:02 sorry chet Apr 29 05:09:12 http://graphics-geek.blogspot.com/ in here somewhere I think Apr 29 05:09:30 or the tip playlist on youtube Apr 29 05:09:33 *tips Apr 29 05:11:41 I found one that looks promising on the Android Developers youtube channel Apr 29 05:14:02 Anyone with experience with Android Sensor here? Apr 29 05:15:19 Android Sensor ? Apr 29 05:15:50 sorry, i mean android sensors. Apr 29 05:16:40 i´m trying use acelerometer in separeted class, and when i called in main activity class, i dont recive the sensor´s data Apr 29 05:16:52 when i call* Apr 29 05:51:59 I try to add HID support for my kernel and try to add that and I follow this tutorial: https://github.com/pelya/android-keyboard-gadget/blob/master/README.md and this is my error: http://pastebin.com/ma5EGh3W Apr 29 05:52:05 please help Apr 29 05:57:28 go to #android-root Apr 29 06:01:11 Someone is already helping me in #kali-linux Apr 29 06:37:59 hi there Apr 29 06:38:09 i've been given an android project, half completed Apr 29 06:38:21 the person has put what look to be shared preferences in xml/preferences.xml Apr 29 06:38:36 i've tried accessing it with sp.getString("pref_webservice", ""); Apr 29 06:38:47 where sp is a SharedPreferences obj - but it doesnt' return anything Apr 29 06:39:56 what am i doing wrong Apr 29 06:41:14 symfonius: i've been given an android project, half completed <- that's what :P Apr 29 06:41:26 yeah Apr 29 06:41:44 i just meant, is there some way to test that th preferences.xml file is even being noticed by the project Apr 29 06:41:53 like maybe he's just put a random xml file there Apr 29 06:42:57 is there some way i can just extract the value using R.xml.preferences Apr 29 06:43:06 seeing the shared preferences approach isnt working Apr 29 06:43:49 hi I try to build my kernel but I keep getting this error: http://pastebin.com/U33sgq0E Apr 29 06:44:29 means you are missing the arm gcc Apr 29 06:44:47 yea I have downloaded toolchain but it did not work please help Apr 29 06:45:11 or a path issue Apr 29 06:45:21 How can I fix it Apr 29 06:45:38 I dont have much time so please help Apr 29 06:46:20 I tried this: make export CROSS_COMPILE=/home/tim/Downloads/SM-G355HN_EUR_KK_Opensource/Kernel/toolchain/arm-eabi/bin/ Apr 29 06:46:20 please help me Apr 29 06:52:01 please help me Apr 29 06:52:30 please help me Apr 29 06:52:32 someone? Apr 29 06:52:47 hi I try to build my kernel but I keep getting this error: http://pastebin.com/U33sgq0E Apr 29 06:56:39 anyone using telegram? Apr 29 07:11:01 No one uses telegram these days. It's all facebook invitations, facebook messages, facebook likes and facebook HASHTAGS! Apr 29 07:18:09 this is what I want to port: https://github.com/pelya/android-keyboard-gadget/blob/master/README.md here are my kernel sources: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-G355HN Apr 29 07:18:27 please someone port it for me because I tried and it tdid not work Apr 29 07:18:50 this is what I want to port: https://github.com/pelya/android-keyboard-gadget/blob/master/README.md here are my kernel sources: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-G355HN Apr 29 07:18:50 please someone port it for me because I tried and it tdid not work Apr 29 07:20:08 o.O Apr 29 07:21:20 if someone wants to help me with ^^ here is my mail: tim241@ziggo.nl Apr 29 07:25:14 Hi all. is it posisble to create a camera preview (SurfaceView) which keeps the camera aspect and fit in any container size (width / height)? Apr 29 07:36:24 Zta: google wants to buy telegram Apr 29 07:40:02 Can someone please explain the concept of the support libraries? Apr 29 07:40:07 not grokking it Apr 29 07:47:45 dpyro: To allow for older versions of android to support features introduced in newer versions of android Apr 29 07:58:45 normally you would want to use support fragments, support material design things Apr 29 07:58:58 even if your minsdk would allow to use 'native' fragments and whatnot Apr 29 07:59:34 that's what i was wondering about Apr 29 07:59:54 why does android even have "regular" libraries when it could just all be in the support Apr 29 08:01:49 dpyro, it's moving in that direction Apr 29 08:18:27 hi angular+cordova for the cross-platform developemtn - possible or not? Apr 29 08:19:51 possible - why not. Apr 29 08:20:16 reasonable? Well be sure to justify it Apr 29 08:20:17 the question - why? Apr 29 08:21:06 i was asked do i recommend this combination - i never worked with cordova so i dont know Apr 29 08:22:17 is there example app build with it in the playstore? Apr 29 08:22:59 I am new to Android Development Apr 29 08:23:23 I just created a test project and its currently updating the indices in backgrounf Apr 29 08:23:30 *backgound Apr 29 08:23:35 **background Apr 29 08:23:45 What does that mean?\ Apr 29 08:25:50 huh? Apr 29 08:27:23 ? Apr 29 08:34:57 hi Apr 29 08:35:11 Hello Apr 29 08:35:23 trying to access the positive and negative button in my dialogfragment but I don't know how Apr 29 08:35:42 in alertdialog I can use getButton but there is no function like that in dialogfragment Apr 29 08:39:05 hwo to create dialog in onCreateDialog Apr 29 08:39:34 how do you* Apr 29 08:39:58 you could probably put AlertDialog to some variable there and get the button Apr 29 08:42:06 Is there really no tool in the android tool chain that can let me see a readable version of the Manifest file inside an APK? All answers so far lead to this totally random tool called apktool. Apr 29 08:58:09 Zta: Kali has it Apr 29 09:22:34 if your app was suspended, is it still possible to access all images and app description that you wrote? Apr 29 09:22:51 I'm still the copyright owner, though Google blocked access to it. I guess that's illegal? Apr 29 09:26:10 What's the "that" in the last sentence referring to? Apr 29 09:27:22 blocking access to my copyrighted work Apr 29 09:27:43 I assume you have a local copy of your copyrighted work? Apr 29 09:27:57 Unfortunately, I do not :| Apr 29 09:28:05 I assume it wouldn't be illegal even if you didn't, though I'm definitely not a lawyer. Apr 29 09:28:30 they most likely are not required to keep the information you provided to them Apr 29 09:28:57 like you've handwritten a book, sent it to a publisher. He didn't accept you, but he's NOT returning your book, and that's the only copy you got. Apr 29 09:29:02 fizzie: does this sound fair to you? Apr 29 09:29:07 anyway, did you check if there's a cached version of your app page in google search? Apr 29 09:29:40 It may not sound "fair", but it certainly doesn't sound illegal on any copyright grounds. Apr 29 09:29:42 it might not be fair but I don't see how it's illegal Apr 29 09:30:16 it's not like anyone took something away from you Apr 29 09:30:16 as far as I know, when you're the legal copyright owner, you're always allowed to use your own texts. Apr 29 09:30:23 sure Apr 29 09:30:32 but it's your job to keep a copy of them Apr 29 09:34:04 I just finished an aosp build MOB30D for hammerhead, I'm getting FCs on com.android.phone Apr 29 09:34:33 do I rebuild phone or will the problem be somewhere else? Apr 29 09:35:08 You're not in the right channel for these questions. Apr 29 09:35:16 This is app dev :/ Apr 29 09:35:21 oh sorry, is there a build channel? Apr 29 09:35:37 Usually #android-root I guess. Apr 29 09:35:42 thanks Apr 29 09:36:37 pff Apr 29 09:37:31 something's causing my activity to pause and resume right after in certain cases, is there any tricks I could do to figure out what caused the pause? Apr 29 09:39:47 Zharf, did you check logcat? Apr 29 09:40:07 nothing special there Apr 29 09:40:57 jmayerz: Who's Kali? =) Apr 29 09:41:33 Zta: kali linux, it's a distro. If you can't find apktool you can find it in their source reps Apr 29 09:46:48 You could check "adb logcat -b events" for anything suspicious as well, though that's a bit of a long shot. Apr 29 09:48:32 Is gradle or gradle-experimental recommended for building ndk projects? I'm building from command line only and am currently using gradle-experimental but it doesnt (seem to) support setting the result apk name (which can be done in standard gradle) Apr 29 09:49:54 hm, seems like it only happens when a new apk is installed and the application is started... Apr 29 09:49:58 jmayerz: I still think it would be appropriate for Google to provide it. Apr 29 09:51:01 they can't, it's a reverse engineering tool there are legal complications there Apr 29 09:54:52 I've copied the AIDL iap file in a com.android.vending.billing dir in my /src folder and synced gradle, but I can't find any /gen folder where the file should have been generated to? Must I create it manually? Apr 29 09:56:10 jmayerz: That could be an issue of course, yes. Apr 29 09:56:21 jmayerz: Zta: "aapt d xmltree path/to/file.apk AndroidManifest.xml". It's "readable", for some values of "readable". Apr 29 09:56:30 (And aapt is part of build-tools.) Apr 29 09:56:51 hmm... Apr 29 09:57:49 yep, that works, it's not giving me the whole thing though Apr 29 09:58:56 fizzie: Interesting =) I am actually able to read the value I was interested in. Apr 29 09:59:27 But this is even more verbose than XML Apr 29 10:02:30 They took the effort to also display strings values as "raw", e.g. A: android:versionName(0x0101021c)="1.1" (Raw: "1.1") Apr 29 10:02:46 But not int values as decimal =( android:versionCode(0x0101021b)=(type 0x10)0x4d2 Apr 29 10:03:01 that would have been usable. Apr 29 10:03:29 What's the interesting value in this case? (aapt dump has less verbose options for some potentially interesting values, like 'aapt d badging file.apk'.) Apr 29 10:04:00 I was interested in versionCode. Specifically seeing whether it was set or not. Apr 29 10:04:13 The first (package:) line of the badging dump has the versionCode in decimal. Apr 29 10:04:26 right, let me try Apr 29 10:05:38 indeed it does! Apr 29 10:05:57 I'll just jot down this aapt commands Apr 29 10:27:05 Does anyone know how to add gogole play framework in android studio 2.1? Apr 29 10:29:02 recently i used a serial-to-usb converter device as accessory in android. i got lucky because the driver class files were available online. i did NO change in serial-to-usb converter device. Apr 29 10:29:53 is there set of drivers present for USB class devices in the similar manner? where can i find such drivers, which i can include in android application and use the harware as accessory Apr 29 10:30:14 *without modifying anything in the actual hardware (which is usually not possible) Apr 29 10:30:31 I think for android studio there a differnet way to setup then the other version of android studio for googlr play service. Apr 29 10:31:20 anyone any idea about my question? Apr 29 10:33:20 pranav,i try to setup google play service but android studio 2.1 is setup not like android studio 2.0 Apr 29 10:36:48 anyone live out there. Apr 29 10:39:45 it dead in here. Apr 29 10:44:09 hi guys Apr 29 10:44:14 i have a question Apr 29 10:44:37 i have some list which i will populate dynamicly with code Apr 29 10:45:39 the structure of that list is that i have a layout for each element as a gridlayout. and also each of that gridlayouts have some additional nested layout for showing big or small images ... Apr 29 10:46:29 so if i include them into the layout, the size of these images in the end are just not correct Apr 29 10:46:54 but if i don't use that last nested layout but i just put them into the first layout directly, then the design works perfect Apr 29 10:47:00 do you know what i mean? Apr 29 10:55:30 help I get this erro when trying to compile my boot.img: /bin/sh: 1: /opt/toolchains/arm-eabi-4.7/bin/arm-eabi-gcc: not found Apr 29 11:05:18 Is gradle or gradle-experimental recommended for Apr 29 11:05:18 building ndk projects? Apr 29 11:06:19 I want to move around an image on the screen with touch, the image will not be part of the original layout, but added in Java during runtime. Is it possible? Apr 29 11:14:16 how to create openGL based games which renders 3D models in android? Apr 29 11:16:13 couldn't think of a more generic question? Apr 29 11:16:44 http://developer.android.com/guide/topics/graphics/opengl.html Apr 29 11:17:48 hahaha Apr 29 11:18:16 recently i used a serial-to-usb converter device as accessory in android. i got lucky because the driver class files were available online. i did NO change in serial-to-usb converter device. Apr 29 11:18:23 is there set of drivers present for USB class devices in the similar manner? where can i find such drivers, which i can include in android application and use the harware as accessory Apr 29 11:18:30 *without modifying anything in the actual hardware (which is usually not possible) Apr 29 11:27:54 Sup guys random question - is it possible to get texts/emails sent to the device imported into my app to read (I'm making an app for visually impaired). Or is the easiest way to do this to connect and download the emails by oneself, not taking from the phone? Apr 29 11:28:57 i think the second one Apr 29 11:30:08 i guess application that has imported emails, would not allow easy access to imported data to 3rd party software Apr 29 11:30:49 but of course, email providers provide API access, the user has to give permission initially to talk to his server using his account Apr 29 11:31:06 *email server Apr 29 11:31:30 Yeah sounds about right - just though i'd come across something that allowed apps to do that with permission which seemed weird to me . Apr 29 11:31:31 Thanks! Apr 29 11:34:02 Taios: but for SMS, you can read them using SmsManager class Apr 29 11:34:16 Taios: but for SMS, you can read them using SmsManager class Apr 29 11:34:38 O, perhaps I got mixed up with that then! Apr 29 11:34:43 that's good to know! Apr 29 11:34:49 what other features you are planning to have in blind app Apr 29 11:35:31 don't tell me you want to read loud watsapp message as soon as arrive Apr 29 11:35:36 ;) Apr 29 11:50:14 I have a layout created, but I want to implement an ImageView/Bitmap or something (an image nevertheless) to be moved across/above this layout with touchevent. This image will not be apart of the layout since it will be generated by user during runtime. Anyone got a good approach? Apr 29 12:15:42 is there some way i can get the FAB to align between the image and card border? Apr 29 12:15:44 http://i.imgur.com/xh56CdB.jpg Apr 29 12:15:49 on the right? Apr 29 12:16:05 can't get it to move around :( Apr 29 12:20:38 where Apr 29 12:35:53 squ? Apr 29 12:35:59 what do you mean? Apr 29 12:36:52 nevermind Apr 29 12:37:04 the big red dot should be aligned between the photo and title, sorta half on the image, half below the image, i guess like google maps does when you want to navigate Apr 29 12:38:07 Uitgeest > Beverwijk Apr 29 12:39:37 hi. slightly off-topic: does anyone know qr-codes well? Are there printing shops that sell guid codes AND give you a list of the guids? I need them as one-time passcodes. Apr 29 12:40:36 anotheryou_, you can make your own QR codes and get them printed Apr 29 12:41:26 ReScO, even 5k unique ones? I thought that might get more expensive than a specialized package for guids Apr 29 12:42:14 I might be burning through 200 a day Apr 29 12:44:46 5k shouldnt be a problem Apr 29 12:45:54 GUIDs are like what, 40 characters? Apr 29 12:46:08 pduin, well with a QR code I can get long Apr 29 12:46:16 sure Apr 29 12:46:18 so the 70k a year need to be hard to guess Apr 29 12:46:26 than I can print for a year Apr 29 12:46:50 why would you need those QR codes anyway? Apr 29 12:47:03 That's no problem, Version 10 QR codes can be scanned by a phone easily, and hold up to 174 ascii characters Apr 29 12:47:59 If you need to generate a bunch of code, the ZXing library can help you do that Apr 29 12:48:12 ReScO, I need to verify quickly, that someone is really where he claims to be and not spamming my system from the couch at home. For this I want to hand out a one-time QR code he can scan with his phone Apr 29 12:49:07 use a barcode that's static, but give them an app that needs to scan the right code Apr 29 12:49:39 ReScO, they can simply take a picture of it, that's the trouble Apr 29 12:50:45 wouldn't work if you'd use aztec and pubkey verification... Apr 29 12:50:51 to decrypt the message Apr 29 12:51:05 Aztec barcodes, pubkey signing, etc Apr 29 12:51:07 can you elaborate? Apr 29 12:51:27 What can the code do, what I can't do with a photo of the code? Apr 29 12:52:09 I mean, if I can scan the code, I can also make a photo of it and scan from the photo another day at home Apr 29 12:52:55 better use case description would help coming up with alternate solutions Apr 29 12:53:23 QR-codes do not seem like a solution Apr 29 12:55:16 Sorry for slight obfuscation: say my situation is this: I want to verify that someone is truely riding my rollercoaster now. With an App he can buy prints of a picture taken on the ride. He shall only see the print-and-take-home pictures of those that rode on the ride with him. Apr 29 12:56:07 So I want to give them a one-time session ID/passcode for each ride they take. Apr 29 12:57:40 With NFC it's obfuscated enough: nobody will spoof it at home, just to see some pictures of other groups riding the rollercoaster. But not every phone has NFC Apr 29 12:57:42 could give them a token with nfc Apr 29 12:57:59 not every phone has it :/ Apr 29 12:58:48 ok, fair enough, but I would definitely add support for it, another option would be to scan a generated code from a screen of some sort Apr 29 12:58:58 yes, NFC is planned :) Apr 29 12:59:41 screen is expensive and too ugly/invasive for my cause :/ Apr 29 12:59:48 why not use bluetooth? Apr 29 13:00:27 hm, in my experience bluetooth is tedious to the user, but it might work Apr 29 13:00:55 Yes, tedious and expensive. I need to cover a few m² Apr 29 13:01:03 well maaaybe it might work Apr 29 13:01:38 I also thought of getting the mac adress of my router, but than you could still fake beeing there from outside the building... Apr 29 13:01:53 and users would have to enable wifi Apr 29 13:04:34 for now nfc with QR-GUIDs seems the way to go... Apr 29 13:04:39 I can't think of a watertight way of validating user's location Apr 29 13:05:01 I got people checking the seatbelts, so they can hand out the QR codes... Apr 29 13:06:22 and it doesn't have to be super secure, just so kids don't fool around with it Apr 29 13:07:16 Then a QR-code per ride would suffice I think? Scan before entering. Apr 29 13:08:16 yes. makes 70k/year/location (might have more rollercoasters :) ) Apr 29 13:08:58 That's do-able. Apr 29 13:09:35 and me sitting here, getting calls when one location needs new QR codes, phoning the printing shop, getting them mailed there etc... Or they have to print them with a crappy thermo printer or cut them from DinA4 sheets XD Apr 29 13:10:02 What's wrong with scanning codes from a screen? You could generate them on the fly every time. Apr 29 13:10:38 Automates the process and get rid of the paper managent. Apr 29 13:11:12 With printed out codes you will probably need someone to tie codes to specific rides every time. Apr 29 13:12:25 pduin, the code to ride tying could be done by the end-user in the app. It's in his interest to select his own ride and you just can use tha code 1 time... Apr 29 13:12:54 screen is ugly, people walk past it without scanning, running back there or need to fiddle with their phone at the entrance etc... Apr 29 13:13:17 not very sexy solution. plus you need to explain that it's only for those that don't have nfc... Apr 29 13:13:51 I see. User scans a code, gets a list of recent rides, and picks picture. Apr 29 13:14:28 it would be best if he scanned it before the ride, but yes. Apr 29 13:14:48 You wouldn't even need a code per ride then. You could swap out codes every hour or so. Apr 29 13:15:32 Kind of depend on how 'secure' you'd like it to be. Apr 29 13:16:13 people will already be seated when they begin to install the app, get back up to the screen etc... it's too much hassle. I think I'll use the thermo printer option... Apr 29 13:16:53 personal can print 100 at a time, putting them in their pockets. That should do. Apr 29 13:17:21 It's ok to select the wrong ride once, just should be impossible to look through all the pictures of all rides. Apr 29 13:21:39 yay, got a solution for groups I think. :) only if the first to arrive has no NFC he uses the QR code, all others in his group will get a pin to join through his device Apr 29 13:22:46 So I hope i only have to use the QR papers for every 5th person or something. Apr 29 13:22:59 thanks guys for the thinking :) Apr 29 13:24:51 While I'm here, an unrelated question: anyone who got code to detect taps on the phone with display off? I think via audio would be the cheapest and mayb easiest, but false detections are problematic (but false positives wouldn't be too bad for my case). Apr 29 13:26:13 I want to build a really quick random number generator. You tap the max value (e.g. 3 => "tap tap tap"). It answers with vibration (e.g. random(3) => 2 => vibrate "long long short") Apr 29 13:26:59 with the short vibrate you have verified the taps got recognised correctly as 3, so a false detection would not be too crucial Apr 29 13:28:12 It will enable me to get rid of all responsibility in life by simply choosing a random option at any given time XD. All in a descrete and quick way. Apr 29 13:28:30 xmms2 stop Apr 29 13:28:32 oops Apr 29 13:28:34 wrong terminal Apr 29 13:28:43 I first thought of simply seeing if I breath in or out, but that might be biased and it's too easy to cheat myself Apr 29 13:29:28 anotheryou_, o.O Apr 29 13:29:41 I study art, sorry :) Apr 29 13:30:45 sounds like someone watched an episode of big bang theory Apr 29 13:31:05 is there one about it?? Apr 29 13:31:08 frankly I'd build a widget for something like that, interacting with the phone without unlocking it is too much of a pain Apr 29 13:31:25 anotheryou_, yes Apr 29 13:31:30 Zharf, :/ app would be sweet. but indeed, maybe I should build it like that Apr 29 13:31:43 pfn, damn :) you happen to know how I can find it? Apr 29 13:31:46 havent seen it Apr 29 13:32:34 the problem with random picking like that is that you'll have to lock in the options before you choose one randomly because otherwise you've accomplished nothing and still end up actually choosing one Apr 29 13:33:07 too many times have I flipped a coin and then chosen what the options are Apr 29 13:33:12 anotheryou_, https://youtu.be/5yk8ixiKUEw Apr 29 13:33:24 the whole episode is about ut Apr 29 13:33:37 Zharf, right, but that would be ok. To see this personal bias in that way might be interesting too Apr 29 13:33:51 Zharf, maybe you are right about better building a device. Anyone knows where to get one of these sweet knock feedbacks? some have it for virtual key feedback instead of a vibrator. Apr 29 13:34:12 pfn, damn, now it bores me to do it myself :) I'll watch it after work Apr 29 13:39:46 anotheryou_, the YouTube is just a clip from the ep Apr 29 13:40:43 well I had a few Ideas what to do with it maybe they didn't touch all these :) Apr 29 13:40:45 - walk truly randomly through the streets - be confronted with a decision in order to feel the possible discrepancy to what you might really want. (this is a strong one, I never understood why it works so well. It's often easier to detect if the outcome you hoped for was fulfilled, than it is to say what you hope for beforehand.) - get rid of responsibility and simply obey the random - decide fates - Apr 29 13:40:45 break structure in your daily routine to oppose surveillance - always do the opposite of what it tells you Apr 29 13:51:41 guys how can i set programatically internal padding for the text of a button? Apr 29 13:53:23 just for the text? hmm dunno Apr 29 13:53:32 simple setPadding() wont do? Apr 29 13:54:10 Ashiren: that's what i thought Apr 29 13:55:19 Ashiren: mybutton.setGravity(Gravity.LEFT); works Apr 29 13:55:36 but it's too near to the margin of the button, i want some extra space Apr 29 13:56:18 try setPadding(20,0,0,0) Apr 29 13:56:22 it takes px Apr 29 13:56:35 i tryed .. nothinf changed Apr 29 13:57:27 ;c Apr 29 13:57:27 but wait, maybe instant run Apr 29 13:57:36 i try a full build Apr 29 14:00:08 (5 hours later) Apr 29 14:01:25 lol Apr 29 14:01:31 nope didnt worked Apr 29 14:10:51 anyone happens to know what happened? i updated to ndk12 and all of the suddent... std::thread is no longer available with gnustl_shared Apr 29 14:10:57 (experimental plugin) Apr 29 14:14:13 Hello Guys Apr 29 14:14:59 I have enabled AMD-V on my laptop but the thing is that Android Studio still says that my CPU doesn't support SVM (same thing as AMD-V?) Apr 29 14:15:05 I have an AMD CPU Apr 29 14:16:58 Ranguro: you might not have it configured OS-side Apr 29 14:17:12 AMD-V is current marketing name, I guess? Apr 29 14:17:31 Ranguro, if you're trying to use the emulator with HAXM acceleration, I'm afraid that works on Intel CPUs only :/ Apr 29 14:18:00 No, I'm not trying to use HAXM acceleration. Apr 29 14:18:12 I have uninstalled it from the Android SDK Manager Apr 29 14:18:30 Are you sure? Apr 29 14:18:33 p_l: I think so. Apr 29 14:18:45 Since accelerated x86 images will attempt to use HAXM. Apr 29 14:18:54 What you installed in manager doesn't matter. Apr 29 14:19:05 Mavrik: I'm not using x86 images. Apr 29 14:19:21 Mavrik: I'm trying to use the armeabi-whatever Apr 29 14:20:16 Ranguro: SVM isn't involved in ARM emulation Apr 29 14:21:00 p_l: AMD-V is the current marketing name. Apr 29 14:21:35 p_l: Oh, I see. Well I thought armeabi was the way to go. Apr 29 14:22:31 p_l: Anyways it still complains using x86_64 and x86 images. Apr 29 14:29:00 Any particular suggestion? Apr 29 14:45:36 Ranguro: on windows, you'll only get intel working with stock emulator, on linux it works with AMD as well Apr 29 14:49:37 any way i can make the FAB align on the bottom right edge of the image? or should i be making a button instead? trying to have a same type of button as Google Maps uses when you long press a place and you wanna navigate to it Apr 29 14:49:42 http://i.imgur.com/xh56CdB.jpg here's a pic Apr 29 14:52:04 Here's the button in Google Maps: http://i.imgur.com/ejTD528.jpg Apr 29 14:54:20 http://dilbert.com/strip/2016-04-29 Apr 29 14:54:31 basically my opinion of #android-dev :) Apr 29 14:54:56 ReScO, you can achieve that using FrameLayout Apr 29 14:56:11 ReScO, android:layout_gravite -> end|bottom Apr 29 14:56:19 gravity* Apr 29 14:56:23 and then give it a margin Apr 29 14:56:42 paresh, https://gitlab.brainblendr.com/iSDP/IJmondBereikbaar/blob/development/app/src/main/res/layout/camera_card_view.xml Apr 29 14:57:12 p_l: So you say that I should use another OS? Apr 29 14:59:48 Why putExtra giving me error for "intent.putExtra(EXTRA_MESSAGE, message)" ? Apr 29 15:01:14 I am following the Android reference tutorials Apr 29 15:02:13 hmm perhaps got it Apr 29 15:07:59 p_l Is there a way to disable accelerated emulator so that I can run the emulator on AMD processors? Apr 29 15:08:04 p_l: Apr 29 15:08:42 Ranguro: yes, don't recall the option right now Apr 29 15:11:01 i need help with accelerometer class, anyone knows about accelerometers? Apr 29 15:18:49 http://shop.oreilly.com/product/0636920042228.do Apr 29 15:18:55 OReilly Rxjava book (august) Apr 29 15:23:25 Is there a way to enable the project view by default in Android Studio Apr 29 15:32:46 http://www.theserverside.com/feature/Kotlin-makes-a-splash-in-the-crowded-pool-of-peripheral-JVM-languages Apr 29 15:32:59 Hey people! Quick question Apr 29 15:33:51 Check the gmail app. How do you achieve the animation on the toolbar? Apr 29 15:34:33 When you click on an e-mail the drawer icon spins and a back arrow appears instead Apr 29 15:34:58 Do you think the app is replacing the current fragment with a fragment with the email, or starting a new activity or what? Apr 29 15:36:58 Mattx replacing current fragment Apr 29 15:38:12 p_l: I think the Accelerator is mandatory Apr 29 15:39:50 Mattx, google apps seem to be all one activity / x fragments now Apr 29 15:41:25 Tried to implement retrolambda last night and all hell broke loose Apr 29 15:41:38 It made me enable jack, which requires buildtools 24.0.0 Apr 29 15:41:44 Then gradle wouldnt build Apr 29 15:41:49 retrolambda doesn't require jack Apr 29 15:41:50 lol Apr 29 15:41:52 you did it wrong Apr 29 15:41:55 No Apr 29 15:42:14 Because you have to add compileOptions {languageVersion 1.8} <-- or something like that Apr 29 15:42:22 And when you do that, it makes you turn on jack Apr 29 15:42:23 yey AS hanga again, pos Apr 29 15:42:34 Mattx: http://chrisrenke.com/drawerarrowdrawable/ Apr 29 15:42:35 What you mean? Apr 29 15:42:38 g00s: Apr 29 15:42:38 get a non shitty computer Apr 29 15:42:46 pfn its not my computer, duh Apr 29 15:42:57 Yeah why would it be the computer Apr 29 15:43:27 you did something silly with jack being enabled there. Apr 29 15:43:51 Think so? I just did jackOptions {enabled true} Apr 29 15:43:59 Which makes me add buildtools 24.0.0 Apr 29 15:44:01 which caused the issue Apr 29 15:44:10 Huge mess Apr 29 15:44:22 Retrolambda certanly won't work with jack. Apr 29 15:44:28 retrolambda is unrelated to jack and vice versa Apr 29 15:44:38 and yes, that Apr 29 15:44:46 Yes but retrolambda makes you add compileOptions{langversion 1.8} Apr 29 15:44:53 there are no class files Apr 29 15:44:54 No. Apr 29 15:45:02 It makes you set source version. Apr 29 15:45:07 Yes to 1.8 Apr 29 15:45:10 But that looks like you're setting bytecode version. Apr 29 15:45:14 Which is not the same. Apr 29 15:45:28 Hold on, I did it right from the directions Apr 29 15:45:34 sbt and it's easy :p Apr 29 15:45:34 Also I have no idea where you took that from. Apr 29 15:45:43 Because gradle-retrolambda README doesn't say that's what you do :P Apr 29 15:45:48 https://github.com/evant/gradle-retrolambda Apr 29 15:46:05 See Android Studio Setup Apr 29 15:46:52 so? Apr 29 15:46:58 that's not what you pasted Apr 29 15:47:09 When you have those in build.gradle, it makes you enable jack Apr 29 15:47:19 Thats the issue Apr 29 15:49:39 any way i can make the FAB align on the bottom right edge of the image? or should i be making a button instead? trying to have a same type of button as Google Maps uses when you long press a place and you wanna navigate to it Apr 29 15:49:46 http://i.imgur.com/xh56CdB.jpg here's a pic Apr 29 15:49:48 Here's the button in Google Maps: http://i.imgur.com/ejTD528.jpg Apr 29 15:49:57 See what I mean pfn Apr 29 15:50:03 And the CardView XML: https://gitlab.brainblendr.com/iSDP/IJmondBereikbaar/blob/development/app/src/main/res/layout/camera_card_view.xml Apr 29 15:50:56 what makes you enable jack Apr 29 15:51:07 AS Apr 29 15:51:13 ignore it Apr 29 15:51:13 Gradle maybe Apr 29 15:51:17 It wont compile Apr 29 15:51:30 then downgrade the gradle plugin Apr 29 15:52:00 True, to what? Apr 29 15:52:17 what the readme says it's compatible with Apr 29 15:52:32 Ashiren: Apr 29 15:52:33 but it seems like it hasn't been updated to work with 2.x Apr 29 15:52:41 Do you use retrolambda? Apr 29 15:53:00 Ashiren: I solved... the issue was that i set first padding and the the background resources Apr 29 15:53:07 I do and don't Apr 29 15:53:14 What gradle version are you using Apr 29 15:53:23 i don't use gradle Apr 29 15:53:29 the correct order is 1st drawable resource then padding Apr 29 15:53:43 Ah Apr 29 15:53:46 I use a build tool that works Apr 29 15:54:34 pfn back at it again Apr 29 16:03:29 Hi. I'm making an ad using admob, to advertise my application inside others. In the destination URL I have put the URL of my app in the store. When someone clicks it, will it open in the browser or in the Play Store application? Apr 29 16:04:18 Hi , does anyone know how to get gradle to rebuild completely after a package rename. Without opening studio, I need to automate this. I know I can just do it in Android Studio. Apr 29 16:05:13 mooncheese, ./gradlew assembleRelease Apr 29 16:05:30 (it will build and package for release) Apr 29 16:05:38 Hello. Anyone using OneSignal? Apr 29 16:05:42 For push notifications? Apr 29 16:06:57 minas114: is there a way to get it to recognize the new package name, because it fails in :app:compileReleaseJavaWithJavac at the first usage of getString(R.string Apr 29 16:07:59 I have removed .gradle folder and delete java.R from my project but still no luck. If i change the name back to what it was originally it builds fine. Apr 29 16:08:12 Hmmm Apr 29 16:08:30 change the name from where? the manifest file? Apr 29 16:09:43 pretty much everywhere it is used, app/build.gradle , manifestfile , java source files, rename the src package folder structure. Apr 29 16:10:50 maybe try cleaning and also running `find` Apr 29 16:11:28 my best guess is that the old name remains in some cached binary file somewhere. Apr 29 16:12:55 are there non-embosses buttons for android? i'm trying to put 3 buttons and a switch together and make them look visually consistent Apr 29 16:13:58 mooncheese, gradlew clean, of course Apr 29 16:14:19 dpyro, use one of the alternative button styles Apr 29 16:14:31 how do i do that, pfn? Apr 29 16:14:33 grep -w Button res/values/styles.xml Apr 29 16:14:49 ok, so i find a style, and then how do i use it? Apr 29 16:16:45 style="@style/style_name" Apr 29 16:16:57 inside the button xml Apr 29 16:18:35 Okay, we were talking about Android documentation being lacking yesterday. Styles/themes are huge for letting you cleanly add style to your app, but the documentation is almost 100% non-existent. Apr 29 16:19:32 i like the android styling methodology more, but its a lot easier to make something look not like trash from the get go with the xcode interface builder Apr 29 16:19:38 Google should release a master list for what you can set in a theme and how they are used in an app. Apr 29 16:20:06 Guys how to fix the app optimisation problem at startup? Apr 29 16:20:18 there is a list of public attributes ... but yeah, no visual guide or anything like that Apr 29 16:20:21 Its taking too much time Apr 29 16:20:23 http://developer.android.com/training/material/images/ThemeColors.png <-- this is basically all they give us Apr 29 16:20:30 At least all I've found Apr 29 16:22:00 how are QR codes encoded? Can i save space if I encode from int to some alphanumerical string? Apr 29 16:22:07 or shouldn't i bother? i suppose Apr 29 16:23:33 no anotheryou_ Apr 29 16:23:40 they are in ascii usually Apr 29 16:23:50 so it's worth encoding? Apr 29 16:23:58 you can save the most space by using the uppercase-only mode Apr 29 16:24:11 you can encode a url or a small amount of text Apr 29 16:24:31 if its anything larger, you have to make it a url to that resource Apr 29 16:25:11 I want an URL and a GUID (http://mydomain/id=1234567) and keep the QR code small. Apr 29 16:25:52 I'll make custom UIDs. probably unix timestamp with the last 4 digits shaved off + an incremental counter from 0-999. wont need more than 1000 a day Apr 29 16:26:06 so now i wonder if it's worth to encode these digits Apr 29 16:26:43 yes that can work Apr 29 16:27:12 so I should encode with forced upercase. good. thanks! Apr 29 16:27:22 also be sure to enable the url mode! Apr 29 16:27:26 yes :) Apr 29 16:27:38 also stick a picture in the middle Apr 29 16:27:46 its so redudant you can decorate the thing Apr 29 16:28:30 https://www.visualead.com/app/webroot/pages_ads/generic-iframe/img/gif-visual-qr-code.gif Apr 29 16:29:14 no :) will print on thermo paper, no funny business there! :) Apr 29 16:29:31 and don't want to bloat with recovery Apr 29 16:54:57 Pixel C is awesome Apr 29 16:59:21 I kinda want one Apr 29 17:00:40 i kinda want one too, but the lack of tablet optimized stuff on android generally turns me off of android tablets. Apr 29 17:01:07 I want one, too. But for the same price as the OG Nexus 7 (350€) and this time with more than 2 updates Apr 29 17:01:25 i’m not wanting to pay for a tablet to run stuff the same way on my phone, with no taking advantage of the extra screen space Apr 29 17:01:46 I can’t afford the 700€ of the Pixel C for just 2 years Apr 29 17:01:54 that’s 700€ for a fucking tablet every 2 years, Apr 29 17:02:05 plus like what, 600€ every other year for a nexus phone? Apr 29 17:03:17 As long as Microsoft gives out Windows Phone devices for almost free to student developers the Google stuff is feeling very overpriced Apr 29 17:04:11 Maybe even limit it to people registered as student who also have published > 1 app with > 10000 downloads on Google Play, dunno, but this is getting ridiculous Apr 29 17:04:34 Wages and so on stay low, but costs of devices go up exponentially Apr 29 17:05:50 i notice a lot of times in gapps, the root view of a fragment is a FrameLayout, wonder why they do that. So Apr 29 17:06:01 If any of you are students or devs in non-US countries that have a low budget, how do you afford the Nexus devices? Apr 29 17:06:37 g00s: you can use the fragmentmanager to remove or replace the content of a framelayout easily with a fragment. This allows them to modify the content later on easier Apr 29 17:06:49 in case they want to A/B test the whole layout Apr 29 17:07:49 hm yeah didn't think about a/b testing Apr 29 17:08:03 that’s why everything in their apps is so abstract. Apr 29 17:08:14 Every component can be replaced server-side Apr 29 17:08:36 justJanne: you can get the developer discount Apr 29 17:09:24 mine cost me 299 which i thought was very reasonable Apr 29 17:09:38 Napalm: that’s still 530€ for a Pixel C Apr 29 17:09:44 that’s with the discount Apr 29 17:10:08 yea, well, you get what you pay for Apr 29 17:10:34 I don’t care about pixel devices of high quality, I only care about dev devices Apr 29 17:10:57 in fact, I don’t even want top-of-the-class devices, as too many devs develop stuff that only works on high-end devices. Apr 29 17:11:14 I just want mid-range phones and tablets for low price with very good update support (3-4 years) Apr 29 17:13:01 does anyone know of a good package to write binary XML from text xml input (on-device) ? Apr 29 17:13:13 I see projects for reading, but not for writing. Apr 29 17:14:20 justJanne yeah thats nice thing about iOS; you can get iPod touch for $200 usd which is basically an iphone minus radio, and 3-4 years of support Apr 29 17:14:47 i always thought google should have some low cost dev option like that, but they never did Apr 29 17:14:54 well i guess n7 was like that Apr 29 17:14:59 g00s: it’s also a nice thing about windows phone – microsoft gives away mid-range devices from last year to about everyone that looks like they know how to turn on a computer Apr 29 17:15:07 was...mine broke after 1-2 years :( Apr 29 17:15:14 yeah, my N7 was pretty awesome, I was hoping for something like that Apr 29 17:15:21 and my N7 (2012) is getting pretty old by now Apr 29 17:15:42 don't think n7 (2013) is getting M Apr 29 17:16:05 or N Apr 29 17:16:10 the next one :D Apr 29 17:16:49 my N7 didn’t ever get beyond Lollipop Apr 29 17:17:00 hard to develop properly when you have to buy new hardware every 2 years Apr 29 17:17:21 And on my phone I’ll have to root soon, too, just to be able to actually use the phone Apr 29 17:17:45 on Android M 100% of my RAM is used by OS + Google Play Services, so I can at best use one app at a time, and often not even that Apr 29 17:17:53 listening to music in background, or radio, kills it Apr 29 17:18:15 And since M I can’t kill Google Play Services anymore, it’s now a "critical" service that has to be on all the time# Apr 29 17:18:53 any way i can make the FAB align on the bottom right edge of the image? or should i be making a button instead? trying to have a same type of button as Google Maps uses when you long press a place and you wanna navigate to it Apr 29 17:18:55 http://i.imgur.com/xh56CdB.jpg here's a pic Apr 29 17:18:58 Here's the button in Google Maps: http://i.imgur.com/ejTD528.jpg Apr 29 17:19:01 And the CardView XML: https://gitlab.brainblendr.com/iSDP/IJmondBereikbaar/blob/development/app/src/main/res/layout/camera_card_view.xml Apr 29 17:20:51 justJanne i submitted this a while back, but nobody cared https://groups.google.com/forum/#!topic/adt-dev/y_ib766edME Apr 29 17:21:56 i always felt google was terrible at maintaining platforms Apr 29 17:22:05 yup Apr 29 17:22:10 steve yegge wrote that famous blog post a while back Apr 29 17:22:11 Google is developing for themselves Apr 29 17:22:23 for people in SV earning 300k+ a year and having little free time Apr 29 17:22:36 the google devs all get tons of free phones, obviously, so they never have to care about this stuff Apr 29 17:22:46 that’s a different group than those who are students living on 8040€ a year, Apr 29 17:23:00 i remember rominguy complaining his desk drawer was full of phones :) Apr 29 17:23:03 or the people in third world countries living on even less Apr 29 17:23:30 yeah their third world story is quite peculiar ... Apr 29 17:23:44 i mean, the type of machine you need to develop on has to be quite top notch Apr 29 17:23:50 if you want to give gradle 5G of ram :D Apr 29 17:24:09 well, that’s not even that much of an issue Apr 29 17:24:11 yet they have a lot of developer outreach in that area Apr 29 17:24:20 I know people developing for android on 200$ laptops from 2013 Apr 29 17:24:23 literally netbooks Apr 29 17:24:29 it takes ages, but works. Apr 29 17:24:33 yeah but its getting harder Apr 29 17:24:37 yeah Apr 29 17:24:39 each release is more bloated Apr 29 17:24:46 getting by without an emulator would be even better Apr 29 17:24:56 Just fucking sell Android One devices to developers Apr 29 17:25:04 justJanne yeah, that would be great ... Apr 29 17:25:20 dunno why they don't do that Apr 29 17:25:25 well, they suck thats why Apr 29 17:25:28 Reminds me of the facebook story where they invented multidex++, and then Google gave them several hundred devices for testing it Apr 29 17:25:38 And we others are like "wtf" Apr 29 17:27:05 But Google knows we have to take their cucumbers while they themselves and large devs eat grapes, just because we are easily replacable. Apr 29 17:27:16 (reference: https://www.youtube.com/watch?v=meiU6TxysCg ) Apr 29 17:28:18 hopefully not sea cucumbers :( Apr 29 18:01:23 299 for pixel c is pretty good Apr 29 18:02:41 in dollars, anyway Apr 29 18:03:17 hello, is there a way to see if all the processes being run by a third party app? Apr 29 18:03:34 i only got a 25% off pixel c Apr 29 18:03:37 not sure if worth it Apr 29 18:03:42 what are the processes being run by a third party app ..?* Apr 29 18:12:27 Where are these $299 pixel cs? Apr 29 18:16:06 Man Im so on the fence with the pixel-c Apr 29 18:16:28 Sounds painful Apr 29 18:16:29 I've got an sheild that i'm pretty happy with to develop on but ugh Apr 29 18:24:36 is there a way to extract the json in a post call with retrofit? Getting a MalformedJsonException so wanna check it out. Apr 29 18:50:28 android.databinding, mvvm: what is the "more correct" way of reusing a viewmodel? reference it (the child) in a parent viewmodel as an observablefield? Apr 29 18:50:56 i've seen people using such a scheme with listviews Apr 29 18:51:09 yiati, I've checked the link you sent me regarding the drawer arrow. the problem is that the arrow doesn't appear if you replace a fragment. the animation only plays when you open the drawer Apr 29 18:51:29 http://chrisrenke.com/drawerarrowdrawable/ Apr 29 18:51:45 I want the same effect when you replace a fragment, like in the Gmail app Apr 29 18:51:45 but i want to take an item from the list and use it in another place Apr 29 18:57:26 Mattx: "The progress between the two states is controlled via setProgress(float)." - https://developer.android.com/reference/android/support/v7/graphics/drawable/DrawerArrowDrawable.html Apr 29 18:59:05 orbyt_, you can add an logging interceptor but there's probably something simpler Apr 29 19:00:16 I did but I dont see anything. My onFailure is logging the following: onFailure: Request{method=POST, url=https://api.example.com/dev/mix_log?json=1, tag=null} Apr 29 19:00:23 @ w4ffles_ Apr 29 19:01:58 what loglevel? Apr 29 19:02:16 Level.Body is probably want you want Apr 29 19:03:08 HttpLoggingInterceptor.Level.BODY Apr 29 19:04:21 note that this is underneath adding a serperate intercepter for auth Apr 29 19:04:26 not sure if thats an issue Apr 29 19:04:55 ya hmm i'm doing that in an app right now and am seeing json from the logger Apr 29 19:05:28 is the response empty? maybe try using charles? Apr 29 19:05:31 orbyt_: Grab CharlesProxy and intercept the request Apr 29 19:06:56 the hell is charlesproxy Apr 29 19:07:17 it's a http debugging proxy Apr 29 19:07:18 it’s a piece of software that lets you debug web requests Apr 29 19:07:19 google Apr 29 19:07:24 is it that hard? Apr 29 19:07:31 you can see both the request you’re sending out, and the response you get back Apr 29 19:08:04 very handy tool Apr 29 19:08:14 pfn: the hell is google Apr 29 19:08:21 bing it Apr 29 19:08:26 k 1 sec Apr 29 19:08:27 ask cortana Apr 29 19:08:49 askjeeves Apr 29 19:09:10 get the lycos dog to fetch information about that one Apr 29 19:13:24 well charles is cool Apr 29 19:16:00 tell me about it Apr 29 19:17:20 I bought Bose headphones Apr 29 19:17:30 really not sure how I feel about not hearing any keyboard feedback Apr 29 19:18:31 can't hear shit Apr 29 19:21:41 if i'm building an APK through the command line, where does the built apk end up? Apr 29 19:22:24 isn't there path you can pass to the command? Apr 29 19:22:35 i'm using CI, so i wanted to see if i could let it build my APK's and return them to my gitlab server.. ^^" Apr 29 19:22:49 build/generated/ usually Apr 29 19:22:58 and any way to attach the keyfile? Apr 29 19:22:59 ^ Apr 29 19:23:13 though gradle you can setup signing ..etc Apr 29 19:23:28 ah. Apr 29 19:23:54 then just gradlew assembleRelease or whatever task you're using should do it Apr 29 19:23:58 hmm cant get Charles to show me the request Apr 29 19:24:05 coming from an emulator if that matters Apr 29 19:25:30 orbyt_, did you tell the emulator to connect to charles? Apr 29 19:25:43 orbyt_: yeah need "-http-proxy " - http://developer.android.com/tools/help/emulator.html Apr 29 19:26:34 And if you need to look at https then you need to install and accept the Charles Proxy cert on whatever device including emulator Apr 29 19:26:42 with genymotion i usually just go to wifi->more settings then manually put the proxy config in Apr 29 19:26:50 rgr Apr 29 19:27:00 just like you do on a physical device Apr 29 19:27:02 real good reason Apr 29 19:27:29 yiati: what Apr 29 19:27:34 rgr Apr 29 19:27:37 ya once its going though the proxy point the browser to charlesproxy.com/getssl or charlesproxy/getssl and install the certificate Apr 29 19:27:38 rgr = roger mate Apr 29 19:27:39 o7 Apr 29 19:28:53 orbyt_: brigadier general? Apr 29 19:29:24 ? Apr 29 19:39:59 im sick of writing the same pager indicator and viewpager controller over and over again Apr 29 19:40:03 and the same sidebar Apr 29 19:43:35 then stop writing the same thing over and over Apr 29 19:44:10 it's the same apps really Apr 29 19:44:33 no value anymore bro, no value Apr 29 19:46:22 Odaym: create Odaym-lib and post it to maven Apr 29 19:46:42 i've already started on a stupid starter project that includes all the day-to-day shit we have to write Apr 29 19:47:02 a rival library to JakeWharton's stuff Apr 29 19:47:15 thinks he's so cool Apr 29 19:47:19 we'll show him bros Apr 29 19:47:26 :P Apr 29 19:48:07 * JakeWharton glares Apr 29 19:48:25 our plans have been thwarted! Apr 29 19:49:17 if you're talking about ViewPagerIndicator i haven't looked at or touched it in like 4 years Apr 29 19:49:22 please build a better one Apr 29 19:49:35 ahh right i forgot about that Apr 29 19:49:58 no I was talking about just some starter project that would include the "must-haves" of commercial apps Apr 29 19:50:39 I know I’ve heard of something like that before Apr 29 19:50:46 android bootstrap or something Apr 29 19:50:55 someone has to build something like this sooner or later Apr 29 19:51:23 cause I work at a company where they build apps for people who have no business having apps Apr 29 19:52:28 s73v3r: yeah there's one or two, but i think they've fallen a bit out of date Apr 29 19:55:21 i guess they never gain enough traction, and so in a year or so, when you’d expect them to go back and update it, there’s no interest Apr 29 19:57:02 yeah probably Apr 29 19:59:58 orbyt_: o7 = brigadier general Apr 29 20:21:52 Dumb question Apr 29 20:22:19 If I use my SSD for android studio will it wear it too fast? Apr 29 20:22:50 Apparently they have a limit on writes Apr 29 20:23:09 Isn't AS constantly doing gradle sync and builds and stuff? Apr 29 20:23:15 no Apr 29 20:23:16 AKK9: you'll probably buy a new ssd/computer before it wears out Apr 29 20:23:18 And lots of writing? Apr 29 20:23:57 LinusTechTips made a video on how it's extremely unlikely unless you literally transfer data 24/7 Apr 29 20:24:06 Ohh, ok Apr 29 20:24:17 So its a technical limit, but not a realistic limit Apr 29 20:27:23 Do you guys consider yourselves specialists in Android or generalists? Apr 29 20:29:08 generalist Apr 29 20:29:13 specialization is for insects Apr 29 20:33:18 jack of nothing, master of nothing Apr 29 20:34:33 For some reason when I open an activity for the first time it has some lag Apr 29 20:34:46 But if I go back and open it again, its smooth Apr 29 20:34:55 Any reason for this? Might I be doing too much work in onCreate or something? Apr 29 20:36:54 AKK9 overarchiever ! Apr 29 20:37:21 g00s: you ever seen this? Apr 29 20:37:52 no :D Apr 29 20:38:07 Hm Apr 29 21:13:27 ugh, where is the code-drop in aosp for gradle 2.1.0 Apr 29 21:22:20 good 'ol android docs. Fragment#getHost() .. wtf is this for ? Apr 29 21:22:31 "Return the host object of this fragment. May return null if the fragment isn't currently being hosted." Apr 29 21:22:40 wth is 'hosted' Apr 29 21:24:35 displayed Apr 29 21:24:43 or attached Apr 29 21:25:10 so what is the host, the activity or parent fragment ? Apr 29 21:25:14 yup Apr 29 21:25:19 i would image Apr 29 21:25:21 how is this different than getActivity or getParent Apr 29 21:26:05 is there anything like fontconfig on android? something that will tell me a ttf file that has a unicode glyph? Apr 29 21:26:37 getActivity() or getParentFragment() will only return an activity or a parent fragment, respectively. getHost just returns whatever’s containing it Apr 29 21:27:46 public Context getContext() { Apr 29 21:27:46 return mHost == null ? null : mHost.getContext(); Apr 29 21:27:47 } Apr 29 21:28:52 is that the code from the sdk? Apr 29 21:29:31 support lib Apr 29 21:30:18 mHost is apparently a FragmentHostCallback Apr 29 21:31:02 apparently anything can host a fragment, as long as it implements FragmentHostCallback Apr 29 21:32:17 yeah this thing is interesting http://developer.android.com/reference/android/app/FragmentHostCallback.html Apr 29 21:33:12 gotta be something better than reading every font in /system/fonts/ and building my own map Apr 29 21:34:33 Is there any other way to go back from an activity besides #finish()? Apr 29 21:39:05 drose379 whats the matter with finish() ? Apr 29 21:39:39 if you have A -> b -> c -> d, and your want to go from d -> a there are some flags to set on those activities / intents Apr 29 21:47:00 g00s: I wasent saying htere was anything wrong with it, I was just JW Apr 29 21:47:13 And how do you manage the backstack? Ive been using startActivityForResult Apr 29 21:48:33 Looking at the backstack you posted above, if I was going from d -> a, I would just clear the backstack, make an intent to go to D (start new) and finish A Apr 29 21:50:14 i do most of the app in 1 activity Apr 29 21:50:27 a few things go to another activity, but then back to the root Apr 29 21:50:43 How do you do everything in one activity? Frags? Apr 29 21:51:24 Any ideas what could cause okhttp3's call to RealConnection:sslSocket.startHandshake() (line 195) to fail? Apr 29 21:51:31 drose379 yes Apr 29 21:51:44 Interesting g00s Apr 29 21:51:55 What design pattern do you use? Apr 29 21:51:59 yiati, after looking a lot on the internet. the only way to change between hamburger and back arrow is using this: http://stackoverflow.com/questions/33374115/actionbardrawertoggle-toggle-hamburger-icon-to-back-icon-programmatically Apr 29 21:52:03 the exception is just a mysterious javax.net.ssl.SSLHandshakeException: Connection closed by peer with no other information Apr 29 21:52:16 with setProgress() alone no animation ocurrs Apr 29 21:52:45 i would love it if i could just get more information about hte cause of it really -- that error message is unhelpful Apr 29 21:53:09 it's weird you don't have a method like setProgressAnimated() or whatever, because android is already animating the icon Apr 29 22:01:20 drose379 yeah i dont think there is any one good way. also i dont think google has done a good job of making these things easy to implement either Apr 29 22:01:41 what i have done atm, is my main activity has a nav drawer. that just switches fragments Apr 29 22:02:05 but some of those fragments are parent fragments to master / detail like flows Apr 29 22:02:59 i call them 'screens'. they manage whether their content is master -> detail (pop to go back) or m / d on the same screen Apr 29 22:03:18 Interesting g00s Apr 29 22:03:23 one of the bigger pain in the asses is managing CoordinatorLayouts and Toolbars Apr 29 22:03:31 I think the hostname verification / certificate checking is causing my ssl woes but my custom hostname verifier is never even called Apr 29 22:03:33 a lot of things have to be direct children of CL Apr 29 22:03:38 I'm still not using CoordinatorLayout Apr 29 22:04:06 i can't even tell if my keystores are being looked at correctly because this error is so vague Apr 29 22:07:26 drose379 so the main activity is pretty empty. doesn't implement any callbacks Apr 29 22:07:47 callbacks from fragments. those are all handled by the screenFragment that coordinates its children Apr 29 22:08:25 i do have to catch onBackPressed and pass it on to whatever screen is up though, so it can manage its task stack Apr 29 22:08:47 i thought iOS had this down so much better ... UINavigationController ftw Apr 29 22:09:06 You do iOS dev too> Apr 29 22:09:18 haven't in a long time. Apr 29 22:09:37 Oh ok Apr 29 22:09:43 All android? Apr 29 22:09:49 What else do you do on a day to day? Apr 29 22:10:11 JW Apr 29 22:10:12 i'll probably move on from mobile, got bored of it :) Apr 29 22:10:25 it was kinda exciting in 2009 Apr 29 22:10:49 move on to mobile web Apr 29 22:10:58 in come ways i feel like i'm dealing with a platform / framework / api that never really moved on from its 2009 roots Apr 29 22:11:04 g00s: do you do this for work Apr 29 22:11:09 drose379 no Apr 29 22:11:12 personal? Apr 29 22:11:15 ya Apr 29 22:11:17 Why not for work? Apr 29 22:11:31 You seem at the expert tier Apr 29 22:11:35 na Apr 29 22:11:50 Youre not at the expert tier? Apr 29 22:11:57 for android, no Apr 29 22:12:05 Hm Apr 29 22:12:12 What do you do for work then? Apr 29 22:12:16 i dont think i ever will be either, haha. not motived any more to do so Apr 29 22:12:30 back in 2010 i was more motivated Apr 29 22:12:43 How do you know if you are an expert or not Apr 29 22:13:05 well, thats tricky. i think many devs have imposter syndrome Apr 29 22:13:23 but i guess i look at some of the other experts, and realize i'm nowhere near there Apr 29 22:13:44 Whats imposter syndrome? (Sorry for the endless questions) Apr 29 22:15:24 the feeling that you don’t belong somewhere Apr 29 22:16:03 Hmm Apr 29 22:16:11 Whats that have to do with being a good developer? Apr 29 22:18:14 it has to do with whether you feel you’re a good developer or not Apr 29 22:18:23 I see Apr 29 22:18:34 and thus can affect whether you apply for more advanced jobs, or try more advanced projects Apr 29 22:18:44 Oh, its you s73v3r Apr 29 22:18:49 Didnt even realize it wasent g00s anymore lol Apr 29 22:21:04 Thanks for the input though s73v3r Apr 29 22:41:50 lol https://code.google.com/p/gmaps-api-issues/issues/detail?id=9021 Apr 29 22:42:25 haha "Please get rid out of it" Apr 29 22:42:53 GMS is the weakest link Apr 29 22:43:00 too bad we all have to use it , mostly Apr 29 23:11:47 My app's min sdk is 16, but leanback requires 17. As long as nothing from leanback is used with any device of API 16, it will be fine to override the minSdk right? Apr 29 23:13:18 yes but test it on some sdk 16 device Apr 29 23:13:28 so you make sure your conditionals all work correctly Apr 29 23:13:39 Ok cool Apr 29 23:31:58 anyone else having issues related to multidex and gradle 2.0? i ran into this issue https://code.google.com/p/android/issues/detail?id=206131 but the solution given doesn't work for me since it was not an activity that caused my app to go over but including a java library Apr 29 23:39:37 you guys ever use Fiddler? Apr 29 23:39:49 autorespond is awesome Apr 29 23:40:10 I was developing against an API that is not complete yet Apr 29 23:40:38 and I could inject my own response so that I can continue working without using the broken web service Apr 30 00:22:55 "Dependency injection will allow you to not think about architecture most of the times." <-- wut Apr 30 00:41:03 https://www.youtube.com/watch?v=4_5Ptes0rfo Apr 30 00:41:09 fascinating Apr 30 00:46:33 are the dropped phones still sent to the customer ? Apr 30 01:19:15 Hello all. I've been banging my head on this for a full day. I would like to use a ListView(I think this is the best view for my needs). The data that I want to populate the listview with is high/low tide data. Basically HashMap. Each DATE usually has 3-4 entries(morning low, morning high, evening low, evening high). Apr 30 01:20:42 The HashMap will actually contain a date for the key and a object for the value. The object is something I made: Tide() which has properties for 3 things: time of tide, height of tide, is the tide high or low Apr 30 01:21:57 HaSH and ? Apr 30 01:22:26 oops my window didn't scroll haha Apr 30 01:22:32 g00s: Previously I had used and ArrayAdapter and it worked fine, but now I have no idea what I should use. Apr 30 01:23:37 With the ArrayAdapter I had it working like so: http://puu.sh/oAGpl/be213bd3ac.jpg Apr 30 01:23:59 But I want each ListView item to only be one day with multiple entries Apr 30 01:24:45 Hey gyus, anyone knows a good tutorial to handle sensor in class listener? Apr 30 01:25:35 HaSH i guess lots of ways to do this. you could make each day a CardView, and put the things in there Apr 30 01:26:10 from what i gather, you want each listview item to be a day with all the data Apr 30 01:26:26 g00s: Ahh. Never used CardView before. Apr 30 01:26:52 g00s: Yea. each item would be the date then all the high/low tides for the day Apr 30 01:27:28 would be cool if each data point was a graphic Apr 30 01:27:55 Eventually that's where I'd like to end up Apr 30 01:27:59 it would basically be a sinusoid where each point would sit Apr 30 01:29:06 My idea was: List a few days, maybe a week in a listview. each item would be: Date, high/low tides for the day. If you click on a item it brings up a new activity with the weather for that location/day Apr 30 01:29:44 I've written all the backend tide stuff. I just need to figure out how to format it and display it. Apr 30 01:32:42 Aight. How do I run my "new" android TV app on a real device? I've got a device ready to go, what must I do to launch it? Apr 30 01:33:04 Do I need to plug my device to my computer, wifi pair it with adb, and I'll be set? Apr 30 01:40:11 i've never seen an Android TV before :D Apr 30 01:40:22 hopefully ... never will ;) Apr 30 01:44:38 is there any way of running curl from inside the emulator? Apr 30 01:45:32 curl isn't installed on emulators you'll have to sideload it Apr 30 01:45:53 so- compile it for the emulator architecture at hand and you *might* be good to go Apr 30 01:46:16 if it dynamically links to anything tho its probably not going to work but there is a good chance it will Apr 30 01:46:52 explodes: thanks Apr 30 01:46:58 not what i was hoping to hear, but thanks anyway Apr 30 02:04:49 Weak, Android TV is running my LAUNCHER activity, not the LEANBACK activity Apr 30 02:05:46 Ah, My mobile activity was specified explicitly in Run configurations as launcher. Apr 30 02:07:37 I'm trying to build this android library from source (clusterkraf if it matters) Apr 30 02:07:51 the last task is mockableAndroidJar Apr 30 02:07:56 why isn't it building my library? Apr 30 02:48:25 slow night **** ENDING LOGGING AT Sat Apr 30 02:59:58 2016