**** BEGIN LOGGING AT Wed May 11 02:59:58 2016 May 11 03:00:39 I see. May 11 03:01:11 CedricBeust: How does it integrate with the Android Studio tools? May 11 03:01:18 It doesn't :( May 11 03:01:56 Not yet anyway, only have so much time, I have to write Kobalt, the kobalt plug-in API, the IDEA plug-in and the Android plug-in, have to pick my battles May 11 03:02:10 heh May 11 03:02:27 the other thing even if I could use it at work Cedric I'd have to also set it up with bamboo May 11 03:02:38 the atlassian build server May 11 03:02:40 CedricBeust the bee population could collapse before that is all done, and we're all dead May 11 03:02:44 Haven't touched Bamboo in a very long time May 11 03:03:17 only bringing that up as a possible scenario your users would have to deal with too so anything to make incorporating any build servers would be a huge push May 11 03:04:16 Yes, I definitely understand the importance of integrating with build servers May 11 03:05:31 Right now I would say Kobalt itself is beta but the Android plug-in is alpha. It builds u2020 though so it has the basics. Also the plug-in automatically supports SDK management, so you will never have to launch the SDK manager ever again May 11 03:10:52 Details: http://beust.com/weblog/2016/04/09/the-kobalt-diaries-automatic-android-sdk-management May 11 03:14:52 sbt can be used in android studio ;-) May 11 03:15:36 https://github.com/SidneyXu/AndroidDemoIn4Languages May 11 03:15:47 ignore dude's timing numbers, but java, kotlin and scala projects all have sbt builds now May 11 03:16:17 oh, he updated his numbers May 11 03:17:32 anyway, for his java example, this was all the build file needed: https://github.com/SidneyXu/AndroidDemoIn4Languages/blob/master/JavaAndroid/build.sbt -- 7 lines May 11 03:18:13 what's sbt May 11 03:18:23 (could also have auto-imported the gradle build May 11 03:18:42 a different build tool May 11 03:18:47 oh May 11 03:20:10 also has automatic sdk management May 11 03:21:20 sbt is the Scala Build Tool May 11 03:22:15 except it can build every language interesting for android, and not just scala May 11 03:22:28 it's also slower than gradle May 11 03:22:36 which is impressive ;) May 11 03:22:49 Didn't think it was possible :) May 11 03:23:21 it isn't slower than gradle May 11 03:24:00 the way his timing scripts works is weird May 11 03:25:20 and I compared the java project locally, it was 11 seconds for that demo in gradle, vs 7 seconds in sbt May 11 03:25:30 I don't know why his timing numbers disagree May 11 03:25:59 it really does depend on what you're building :P May 11 03:26:10 I guess it's just the nature of software dev these days May 11 03:26:20 have 10,000 dependencies, all on the web May 11 03:26:26 90% of your time goes into downloading those deps to cache May 11 03:26:41 (on sbt and gradle, tools like maven too) May 11 03:27:08 yes, but that's just a 1 time deal May 11 03:27:33 and for the purposes of these demos, initial resolution should have already been done May 11 03:27:55 yeah May 11 03:27:57 still May 11 03:28:08 the more you have to dex, the longer your builds (non instant-run) will take May 11 03:28:40 sure, protify does something instant run like May 11 03:29:15 and for the minsdk 21+ case, only project classes ever get dexed May 11 03:29:28 lol May 11 03:29:40 all libraries share a global predex for me, which is nice May 11 03:29:41 do people make store apps with minsdk more than 19 yet? May 11 03:29:53 (or 17 even) May 11 03:29:55 for development, all the time May 11 03:30:07 that is why I added the "store apps" qualifier :p May 11 03:30:11 it's a recommended practice by google to speed up the build cycle May 11 03:30:14 <_genuser_> hey guys, long time. May 11 03:30:51 all of my recent professional apps have been 16+ May 11 03:35:08 * loke is happy to do non-proferssional applications. May 11 03:35:13 23+ May 11 03:36:04 my minsdk is 3, try getting more proffesional than that! May 11 03:36:24 shmooz: Wow. Why? :-) May 11 03:36:33 because I can May 11 03:36:56 that's the shmooz way May 11 03:37:06 <_genuser_> minsdk 3? May 11 03:37:17 * loke should try that. The world WAS better back then :-) May 11 03:37:25 <_genuser_> all the way back? May 11 03:37:31 <_genuser_> dang, you're really hung up on the past old man. May 11 03:37:34 _genuser_: Cupcake! May 11 03:37:45 more like the sucker way May 11 03:38:05 The downloading to cache is a one time cost, shouldn't be part of the benchmark May 11 03:38:19 I doubt there are any professional apps that are minsdk 3 May 11 03:38:39 minsdk 3 is insane May 11 03:38:59 CedricBeust, agreed, and for shots and giggles, you should add a kobalt build for the java and kotlin projects May 11 03:39:05 API 16 and 17 have something like <3% market share, hardly any point in supporting them May 11 03:39:19 it's a media player app, plays audio video on device and online May 11 03:39:34 Shots and giggles? Are we talking tequila or vodka? May 11 03:40:28 shits May 11 03:40:35 SwiftKey doesn't like it May 11 03:40:49 but you know me, XO or go home May 11 03:43:59 if anyone has a cupcake phone, let me know, I'd like you to test my app May 11 03:45:51 I remember wakelock tested it on his froyo phone and he made it his daily media player app :) May 11 03:46:04 can't even get API3 stuff in SDK manager shmooz May 11 03:46:31 shmooz why do you value the ancient over the future :D May 11 03:47:38 i know, to make us giggle :D May 11 03:47:53 I have always tried to write the maximum backward compatible code I can May 11 03:48:10 my websites work with lynx May 11 03:49:04 my win32 executables can run on windows 95 May 11 03:49:06 shmooz: So you don't even use tables? May 11 03:49:15 Even Links and w3m support tables. May 11 03:50:01 yes I do tables and app like functionality on text based browsers May 11 03:50:39 w3m has better support for tables and inline images too May 11 03:51:14 shmooz does it work in mosaic ? May 11 03:51:29 it should May 11 03:52:03 it works on max linux and windows chrome ie firefox opera and safari May 11 03:53:10 and it continues to work even if scripts get disabled May 11 03:53:10 talking about mosaic - one of the things i thought was interesting about that team was an interview about the 'back' button May 11 03:53:30 shmooz: make webkit work on win9x May 11 03:53:30 great to see firefox is picking up where they wanted to go (but didn't have time) https://mozilla.invisionapp.com/share/GA5RW90CW#/screens May 11 03:53:35 it uses CGI submit buttons when it detects the scripts are disabled to continue functionality May 11 04:00:47 shmooz make a node.js app with electron but render it with lynx :D May 11 04:02:58 shmooz: Doesn't sound like a smart use of your time May 11 04:03:48 it's a fun challenge and I find it beneficial and rewarding when I can accomplish it May 11 04:04:10 shmooz its even more challenging getting stuff to work on 23 May 11 04:04:12 maximum backward compatibility May 11 04:04:34 How rewarding is it when you need to write hundreds of lines of extra code that nobody will ever care about? May 11 04:04:42 I'd rather use that time to add new functionalities to my app May 11 04:05:07 I need to see it running on my old devices May 11 04:05:17 Why? May 11 04:05:33 its fun, like a game May 11 04:05:45 like a crossword puzzle May 11 04:06:08 CedricBeust this is one of those things nobody can explain :D May 11 04:06:13 I applaud your technical curiosity but I'm deeply troubled by your lack of practical sense. May 11 04:06:50 Then again, I spent days cracking a 30 year old Apple ][ game a few months ago so who am I to judge? May 11 04:08:20 I think it performs faster in the case of android May 11 04:08:35 and eats less battery May 11 04:08:45 I avoided most third party libs May 11 04:08:56 and only used support lib when I had to May 11 04:09:16 shmooz thats cheating ! May 11 04:09:40 beside support lib is minSdk=4 :P May 11 04:09:52 support-v4 anyhow May 11 04:09:56 Why use light bulbs when I can start my own fire with flint? May 11 04:10:37 CedricBeust hard to fight off hungry animals with lightbulbs CedricBeust May 11 04:10:59 <_genuser_> but lightbulb would make a reall good version name for android.... May 11 04:11:06 <_genuser_> someday. May 11 04:11:19 <_genuser_> you know, "oh, this user? she's on android lightbulb" May 11 04:12:21 I tried hard to get Android versions to be named after video games but I lost that battle. I still think "Android Zaxxon" would strike fear in everyone's hearts. May 11 04:12:41 <_genuser_> anything would be better than lollipop... May 11 04:12:44 <_genuser_> kitkat. pfft. May 11 04:13:01 I did detect on the fly version of android and conditionally add more functionality, like Immersive Mode Full Screen support May 11 04:13:03 And soon, nutcake May 11 04:13:28 (that was confidential, I shouldn't have revealed that name) May 11 04:13:32 <_genuser_> nice! May 11 04:13:44 <_genuser_> nutcake would do well. May 11 04:17:50 git diff May 11 04:18:51 CedricBeust: I was listening to the Material podcast and they spet an entire episode eating Cadbury's Nutties. So I am convinced that will be the name. May 11 04:19:17 Although "Nutella" is pretty likely too, given the "I'm nut tellin'" comment in that blog post. May 11 04:21:21 loke is this the material podcast that you're saying? https://www.relay.fm/material May 11 04:21:52 bbotx23: Yes, that's the one. May 11 04:22:36 bbotx23: The Andy guy is the Marcel Proust of podcasters. I kinda like that :-) May 11 04:23:40 CedricBeust: Are you still working for Google? May 11 04:23:43 I don't like how the two guys keep making jokes and jasmine keeps laughing repeatedly on the material podcast May 11 04:24:21 shmooz: She does? Man, now I worry that I will not be able to unhear that on eth enext episode. May 11 04:24:34 loke: Left in 2010 May 11 04:24:54 CedricBeust: Ah. Around the time I was interviewing for them. May 11 04:24:55 andy inathko and that other dude that help make PocketCasts May 11 04:25:44 shmooz: I find that show to be quite lighthearted and a nice complement to the more "serious" All About Android. May 11 04:26:05 Thanks for the reference, It's very interesting.. May 11 04:26:14 jasmine was on the last episode of All About Android May 11 04:26:29 shmooz: Really? I didn't listen to that episode. May 11 04:26:50 <_genuser_> http://imgur.com/a/OBsGB May 11 04:26:58 <_genuser_> what do you think? do I have haxm installed? May 11 04:29:38 oh sorry, Yasmine not Jasmine May 11 04:38:25 <_genuser_> anyone got any ideas? error: Please ensure Intel HAXM is properly installed and usable. \ CPU acceleration status: HAX kernel module is not installed! May 11 04:38:30 <_genuser_> I do have the haxm installer installed. May 11 04:44:26 did you run the installer May 11 04:45:48 _genuser_ what cpu do you have ? May 11 04:50:53 why do you think google didn't create an Android N system image for nexus 5 :( May 11 04:52:04 bbotx23 outside 18 month support window ? May 11 04:52:29 So quick question; take a look at this: https://d13yacurqjgara.cloudfront.net/users/345970/screenshots/2245854/shot.png May 11 04:52:36 see those characters in the right screen May 11 04:52:51 pretend they could walk around and be animated on screen May 11 04:53:14 would you need to get into the gaming side of things by using libgx or unity to do something like that? May 11 04:53:25 g00s what does it mean? May 11 04:54:14 bbotx23: it's too old May 11 05:09:51 <_genuser_> g00s: sorry, was googling. May 11 05:10:13 <_genuser_> g00s: ok, this is going to be embarrassing, but your asking me has reminded that I have since switched to an amd cpu. May 11 05:10:17 <_genuser_> *embarrassed* May 11 05:10:27 <_genuser_> I used to always run an intel. May 11 05:11:18 Leeds: yeah its too old but I think it's still a great device for testing. May 11 05:11:49 <_genuser_> g00s: hmm, so what kinda virtual device should I create then? May 11 05:13:04 Genymotion if you dont have Intel May 11 05:13:40 <_genuser_> isn't that non-free? May 11 05:14:26 anyone have input on my previous question^ May 11 05:53:26 g00s: https://www.google.com/design/spec/components/bottom-navigation.html#bottom-navigation-usage May 11 05:53:28 hello May 11 05:53:28 that's it May 11 05:53:36 bottom bar nav is the thing now May 11 05:53:40 not sure it's a bad idea May 11 05:53:43 your_mirror: hi May 11 05:54:14 thepoosh thats been there for a while ... May 11 05:54:29 nope: https://www.google.com/design/spec/whats-new/whats-new.html# May 11 05:54:39 since march May 11 05:54:47 yeah, a while :) May 11 05:54:49 there is a new update now May 11 05:54:59 lol May 11 05:57:24 new apartment..should i buy furniture or just buy i giant computer setup and live there May 11 05:59:25 computer May 11 06:02:40 orbyt_: get the HTC Vive and play VR, before you clutter it up May 11 06:04:41 meh May 11 06:05:39 thepoosh did you see whatsapp has a desktop app now May 11 06:10:05 g00s: installing now May 11 06:11:46 g00s: seems like a web client but with an internal browser May 11 06:16:04 so, what's next? May 11 06:20:55 thepoosh: ummm, we take over the world? May 11 06:21:04 or profit May 11 06:21:15 for fun and profit May 11 07:07:57 I'm setting margin in recyclerview items using ItemDecoration. Is there anyway I can get the margin value later, simply by using recyclerview reference? May 11 07:22:36 Hi May 11 07:24:02 I go from activity A to activity B. Then I press save button and I go from activity B to activity A like this: MainActivity_.intent(this).start(); finish(); then I press back button. I'd expect to see home screen and destroy activity A. Instead I see again activity A and if I press again back button then it goes to home screen. May 11 07:24:09 How can I fix this? May 11 07:25:16 because you shouldn't start activity A again, just finish activity B May 11 07:25:24 aghhhhhh May 11 07:26:04 azgul: naturally.. what a rookie mistake May 11 07:26:07 thank you May 11 07:26:11 android annotations? May 11 07:26:14 in your example you end up having 2x activity A on the backstack May 11 07:26:26 azgul: yes May 11 07:26:32 Ashiren: aa that too May 11 07:32:57 Since I'm here... anyone using genymotion with webcam? I've turned camera on, and set backcamera to webcam() I can see in preview but when starting picture intent MediaStore.ACTION_IMAGE_CAPTURE all I see is Camera icon without preview ... (On a physical device it's working fine) May 11 07:34:55 I wouldn't trust cameras on genymotion May 11 07:44:30 thepoosh: why not? May 11 07:46:39 from experience May 11 07:46:51 i don't trust emulator hardware May 11 07:47:16 so emulator software you trust May 11 07:47:30 well.... May 11 07:47:32 .. May 11 07:48:40 emulator hardware? May 11 07:49:17 bwahahaha http://www.theregister.co.uk/2016/05/09/allwinners_allloser_custom_kernel_has_a_nasty_root_backdoor/ May 11 07:53:59 electron 1.0, cool May 11 08:09:38 I just noticed something. When I am in activity B (I get to activity B from activity A (placeholder where there is set default fragment) and before I call finish() I also save some estuff in sharedPreferences where in activity A should be displayed with help of ArrayAdapter... but the stuff is never called. I must switch to settings fragment and back to home fragment that stuff is displayed. Any ideas why this is not working? When I had MainActivit May 11 08:12:10 Let me describe a little bit more human: Activity A (has default home fragment) and I go to activity B where I enter some stuff and save it in shared preferences. When I tap save button which also calls finish(); it goes back to activity A (home fragment) but stuff is not displayed within ArrayAdapter. If I switch to settings fragment withing activity A and then back to home fragment within activity A, stuff is displayed May 11 08:14:19 Any ideas how to fix this? May 11 08:20:43 hi May 11 08:24:32 fronjd, I think will be better if you paste the activity A at pastebin.com May 11 08:26:14 Hey guys i'm getting a bunch of "E/dalvikvm: Could not find class 'android.*" errors, this wasn't happening before upgrading AS and gradle May 11 08:26:53 so i don't think it's related to method count May 11 08:26:55 your_mirror: ok.. May 11 08:27:09 anyone has some clue about what could be the underlying issue causing this errors? May 11 08:27:31 your_mirror: and by that you mean home fragment? or activityA? May 11 08:28:51 pls, anyone? May 11 08:29:09 I'm pretty stuck with this crap since yesterday night May 11 08:29:39 your_mirror: visitors... I'll paste in a minutes May 11 08:30:32 quelqun_dautre, hello May 11 08:31:14 i guess it's the method count crap? May 11 08:32:03 Hi I have a problem with hiding the soft keyboard. It works fine on Nexus 5X but doesnt work at all on samsung phones. Do i need to do something diffrent for samsung phones that i dont know about? May 11 08:41:47 your_mirror: HomeActivity: http://pastebin.com/6UpjghNg HomeFragment: http://pastebin.com/Y2Gx2Ms8 May 11 08:48:45 hey fellas May 11 08:49:02 I can't run any local emulators or Genymotion emulators May 11 08:49:04 hi Odaym May 11 08:49:15 you think it's an issue with the architecture? virtualization not supported? May 11 08:49:49 Odaym, hi May 11 08:50:44 any local emulator I try to run I get the VCPU shutdown request error May 11 08:51:26 is there any data about HOW google distributes app updates? May 11 08:51:44 like 1 day after the updated apk, will ALL users be notified that there is an update at once? May 11 08:51:59 or is it STILL like a "staged" rollout? May 11 08:52:08 (even if you don't specify so) May 11 08:52:13 your_mirror: so I pasted the homeactivity :) any ideas? May 11 08:54:21 Hi all. I have a fade_in and fade_out animation for starting a new Activity. When I use it, it creates a little black flash between. I use the same anims for a FragmentTransaction but it has no 'black flash'. Can I have that little black flash for FragmentTransaction too? May 11 08:56:09 here are my anims http://pastebin.com/rsyGTqa7 May 11 09:00:05 frojnd, I couldn't help you because I'm beginner too. I wrote about pasteben because it will be easier to help you if another person can see your code May 11 09:02:11 Hello there, I've asked a question on #google but I've been suggested to try here May 11 09:02:17 Do some of you use or have used the Google Maps Directions API? We use it at work for a project and need to have estimates that are always the distance/duration for the ride without it varying according to traffic. Currently the distance and duration may change a bit from different requests for the same ride. We suppose that is because the API doesn't always return the same route based on the traffic. May 11 09:05:51 frojnd, When init() method is called? May 11 09:09:55 When handling fragments that are used as tabs, is it a bad idea to hide the other tabs when selecting a tab? The docs say you should detach the other fragments from the Activity, but is there any disadvantage in using hide and show instead? May 11 09:14:08 anyone have any info about using an ACTION_PICK intent and handling cloud images? May 11 09:14:21 your_mirror: after the views binding has happened. May 11 09:14:31 I know you can pass EXTRA_LOCAL_ONLY and hide images not on the local device May 11 09:14:35 but I can May 11 09:14:36 hello May 11 09:14:52 can't seem to dig up anything related to actually allowing users to load web images May 11 09:15:00 I have got a bad bug that I couldn't solve after a lot of searches May 11 09:15:59 I have 2 content providers in my app. One works correctly but when the other one is going to be accessed, I get this error May 11 09:16:02 momken: Did you try a broad antibiotic? May 11 09:16:20 momken: or is it viral? May 11 09:16:48 05-11 13:44:00.520 13343-14115/ir.keloud.android.enterprise W/SuggestionsAdapter: Search suggestions query threw an exception. May 11 09:16:48 java.lang.SecurityException: Permission Denial: opening provider ir.keloud.android.providers.UsersAndGroupsSearchProvider from ProcessRecord{ffc2204 13343:ir.keloud.android.enterprise/u0a349} (pid=13343, uid=10349) that is not exported from uid 10259 May 11 09:16:49 at ... May 11 09:17:11 wyoung, what? should I lol? May 11 09:17:29 momken: If you don't want to hurt my feelings May 11 09:18:02 in android manifest I have put "android:exported="true"" for both providers May 11 09:18:15 feelinfs hurt May 11 09:18:18 feelings* May 11 09:18:29 wyoung, I am working on this simple bug for 2 hours. I can't laugh now May 11 09:18:31 anyway May 11 09:19:41 momken: oh May 11 09:19:44 momken: can I help? May 11 09:20:06 wyoung, I asked my question May 11 09:21:02 momken: sounds like you haven't enabled the correct permissions in your manifest file May 11 09:22:20 wyoung, Oh. Thanks for that suggestion. But my app still has many permissions May 11 09:22:45 Should I make some custom permissions for my provider? May 11 09:23:23 momken: if you are accessing a different app then yes May 11 09:23:33 every app in android runs as a different user May 11 09:23:38 / sandboxed environment May 11 09:23:51 with double quotation marks May 11 09:27:08 frojnd, are you sure that OnCreate() method is called when you was going from the activity B to A? May 11 09:28:37 your_mirror: I'll check right now May 11 09:28:52 Hello, idk why I'm getting this, related to retrofit 2, "E/art: art::mirror::Object* art::StackVisitor::GetThisObject() const unimplemented Failed to determine this object of abstract or proxy method: retrofit2.Call" i didn't get these kinds of errors before, maybe it started happening after updating? May 11 09:31:11 your_mirror: hm.. for some reason when I finish activity B and go to activity A oncreate is not called May 11 09:36:02 frojnd, Now you have a reason why it's not working :) May 11 09:37:51 your_mirror: one would think when you go from activity A to activity B (A being parent activity defined in manifest) and then finish activity B and go to activity A, that activity A will call onCreate method... May 11 09:39:19 the activity is still on the stack, it doesn't get recreated when you pop back to it May 11 09:40:36 Lost: and that's why oncreate is not being called May 11 09:40:46 yes May 11 09:40:55 ok it's a fragment but still May 11 09:41:05 default fragment inside aminactivity May 11 09:42:50 Hi guys.... I need to turn off screen without sending the screen off intent... I tried setting brightness to 0 but the screen only dimmed. Any idea pls? May 11 09:46:10 Lost: hm so I should put ArrayAdapter in onStart then? May 11 09:46:21 Or where it would be safe? May 11 09:47:44 I don't follow May 11 09:47:51 you have a list and an adapter? May 11 09:47:52 hey May 11 09:48:01 you only need to set the adapter once May 11 09:48:08 so onStart would not be a good place for it May 11 09:49:14 Lost: I have a list and an adapter yes which I'd like to update when I come from Avtivity B to Activity A (Activity still on the stack so when going form B to A onCreate in A not being called) May 11 09:49:27 set the adapter in your create method May 11 09:49:33 load the data in the start method May 11 09:50:35 Lost: great so adapter will get initialized only once when activity is first started and after it data will get added when going from other activities back to main May 11 09:50:54 I think that will give you what you're after May 11 09:51:58 I'm trying to verify in-app purchases on my backend server using the "Purchases.products" HTTP API. Are there any magic product ids and tokens I can use to test my code without actually buying stuff? May 11 09:52:17 Lost: well I just found out I have to squish some more bugs now :) thank you for suggestion May 11 09:52:30 enjoy May 11 09:53:50 Like when you test the actual in-app purchase you can use the product id 'android.test.canceled' to get a canceled response. May 11 09:54:40 Linuus, if you add your gmail to developer console you get test purchases unlocked and you can buy as many as you want, for free May 11 09:54:48 but the email must differ to the developer account May 11 09:56:57 wyoung, No, I am not accessing a different app. It is a content provider accessed only within my app May 11 09:57:09 hmmm May 11 09:57:12 weird May 11 09:58:42 azgul: Thanks, I'll look into that. May 11 10:00:52 Hey all what up? May 11 10:03:45 Hi guys.... I need to turn off screen without sending the screen off intent... I tried setting brightness to 0 but the screen only dimmed. Any idea pls? May 11 10:03:58 Or at least.... is possible? May 11 10:04:13 JakeWharton: hey man, are you there? I really don't want to bother you but i'm getting this weird error in retrofit and you might have a lil clue about it? "/art: art::mirror::Object* art::StackVisitor::GetThisObject() const unimplemented Failed to determine this object of abstract or proxy method: retrofit2.Call myapp.org.data.net.AppClient.getJson()", I added the HttpLoggingInterceptor but it's not showing anything, so Idk where to look for an issue. May 11 10:04:57 AppClient is my retrofit interface, getJson is the call May 11 10:08:36 Lost: ha, if I don't set adapter in onStart method then listview is not updated May 11 10:11:31 why not, bother him May 11 10:11:55 hi perl May 11 10:12:25 hi Odaym May 11 10:12:43 high May 11 10:12:45 perlsyntax: hey, you should look into python May 11 10:20:04 pythonsyntax? May 11 10:20:05 sigh May 11 10:36:11 frojnd, :) May 11 10:36:54 Isnt this a lil wierd? "Unable to create converter for class com.squareup.okhttp.ResponseBody" May 11 10:51:41 your_mirror: why the wink :P May 11 10:59:04 I'm also using rxjava but shouldn't sync calls work anyways? May 11 11:03:55 has anyone managed to get mediaroutebutton to play nice with the preview May 11 11:06:15 lads, why is okhttp cutting of my response body stream I get from server after 100ms ? May 11 11:18:19 Hi all, ive got a Grid Layout and inside that are 6 Linear layouts with image buttons and other useful things. In android studio it looks fine but on the device it looks weird as. Here is what im seeing http://picpaste.com/pics/ex-75B60fZY.1462965446.png May 11 11:21:24 Do you know if without root is possible to turn off the screen without sending the screen off intent? I mean only to turn off the screen keeping the phone alive. I tryed to set the brightness to 0 but the screen got dimmed not turned off. Thank u very much May 11 11:23:25 power managemtnt hey May 11 11:24:45 wyoung really? I can turn off the screen only? May 11 11:25:16 no idea May 11 11:26:16 Hey guys. Is it normal for the 'Android' folder in 'Appdata/Local' to take 30GB of space? May 11 11:26:33 It can be normal if you installed a lot of stuff May 11 11:26:57 Psychiatrist: where is Appdata/Local May 11 11:27:07 Psychiatrist: all I have is ~/.android May 11 11:27:30 wyoung, In C:\Users\User\AppData\Local\Android\sdk May 11 11:28:15 ktwo, Yeah this seems pretty insane... am I able to uninstall some features through running the installation again? May 11 11:29:53 Psychiatrist: oh, all I have is /home/wyoung/.android May 11 11:30:17 anyone know why the grid children wont fill the screen http://picpaste.com/pics/ex-75B60fZY.1462965446.png ? May 11 11:30:32 wyoung, That's on Linux, right? May 11 11:30:35 thornekey: because they have abusive parents May 11 11:30:47 Psychiatrist: well yeah, what else would you be using? May 11 11:30:52 Psychiatrist, the AVD images can be pretty big too May 11 11:30:57 Psychiatrist: also applies to macosx too May 11 11:31:16 check the avd folder May 11 11:31:20 wyoung, :D. I installed it on Windows May 11 11:31:37 wyoung, :( May 11 11:31:39 Psychiatrist: windows? why? that is non-standard May 11 11:31:57 Psychiatrist: ever other OS is standard except for windows May 11 11:32:13 why use something that tries to lock you into their product cycle? May 11 11:32:44 so... you mean anything that isn't LFS? May 11 11:32:48 thornekey: do you have width and height to match_parent? May 11 11:32:51 wyoung, do you know what im doing wrong ? the grid has match_parent, the linears have wrap_content, and the buttons inside the linears have fill_parent May 11 11:33:00 wyoung, I didn't think it through, since I have a lot of .NET subjets this year I'm mainly on Windows May 11 11:33:12 (windows historically locks you a lot less than RHEL...) May 11 11:33:22 it looks fine in android studio May 11 11:33:38 Psychiatrist: .NET runs under mono May 11 11:33:39 ktwo, Where is the avd folder, is it suppose to be in appdata as well? May 11 11:33:41 Strange behaviour when when generating a signed APK, The added lines which are running in debug build are not running in signed build, I really need some help . May 11 11:33:54 Psychiatrist: which runs under every OS, including windows May 11 11:34:06 in my case it's here : E:\dev\android-sdk\.android\avd i use a custom folder May 11 11:34:08 Psychiatrist: no excuse May 11 11:34:33 raatmarien, i posted my current ones above May 11 11:34:45 wyoung, Haha, it's true. I took the easy way out. May 11 11:35:06 0 marks for laziness May 11 11:41:15 Thanks wyoung and ktwo! I've installed android-tv and android-wear support as well... I won't be needing that. May 11 11:43:44 Hmm just tried changing the layout width / height and its still happening May 11 12:03:10 I have a listView that stacks from bottom. The listView has 20 items in the adapter, and when I scroll up to item 0, I add another 10 items to the list. However I need to scroll DOWN to see them instead of up. Any idea what I can do in this scenario? May 11 12:38:44 Hello all. May 11 12:39:00 I use KeyPairGeneratorSpec to generate some keys. May 11 12:39:24 I need my code to work on old Androids so I cannot (only) use the new KeyGenParameterSpec. May 11 12:40:08 The problem with KeyPairGeneratorSpec is that I can neither change the block mode and padding nor find their default values. May 11 12:40:33 And I need those in order to properly construct a Cipher object with my key. May 11 12:40:54 Cipher requires the block mode and padding. May 11 12:41:11 How should I solve this? May 11 12:54:29 can someone help me solve this http://stackoverflow.com/questions/37162488/gridlayout-not-evenly-spacing-children-throughout-screen/37163058#37163058 May 11 13:00:15 Hey guys, anyone know of a channel for Google APIS / oAuth / general Google API chatter? May 11 13:00:50 Hey guys May 11 13:01:08 is there a way to trigger proximity sensor programatically? May 11 13:01:59 trigger? May 11 13:02:04 you can listen to it May 11 13:03:16 anyone know much about grid layouts May 11 13:04:10 they are layouts that put children in a grid.. May 11 13:04:21 not a lot to know about them ;) May 11 13:04:48 thornekey, I don't know, but I have an idea, try to set color for LinearLayout and replace ImageButton with another element May 11 13:05:07 oops disconnect May 11 13:05:18 tx, the grid is showing but not the children :/ May 11 13:05:19 thornekey, I don't know, but I have an idea, try to set color for LinearLayout and replace ImageButton with another element May 11 13:05:41 tx: i need to turn off screen only and the only way i found is to use proximity sensor May 11 13:05:46 that will do same thing like ImageButton May 11 13:06:02 that=which May 11 13:06:12 tx: so i thought i can find a sort of hack to trigger it and keep the screen off May 11 13:06:54 your_mirror, so get rid of this http://hastebin.com/wunaluvujo.xml May 11 13:07:20 tx: there are wakelock modes that do that May 11 13:08:46 tx: if you can show you'll deserve all my gratitude May 11 13:08:56 your_mirror, if i dont use imagebutton how will i make the button fire? May 11 13:09:47 Is defining a block mode possible at all? May 11 13:15:51 thornekey, I don't mean to get rid of this. I mean a key that allow to understand the problem. Try to set color for LinearLayout. Will it fill all space in LinearLayout? May 11 13:16:19 Oh i have filled all the layouts and elements with colour. the one that i see is red (so the grid layout) May 11 13:16:21 but no children May 11 13:17:43 it appears as this :/ http://i.stack.imgur.com/l4AR9.png May 11 13:20:25 thornekey, could you pastebin your whole layout, I don't want to write it out myself :p May 11 13:20:32 sure :) May 11 13:22:16 Zharf, http://pastebin.com/Cr0qKjv5 May 11 13:23:25 I am using android.support.design.widget.FloatingActionButton and when I tap on it I don't see the normal Clicking animation in Android 6.0 but I see it in Android 4.0.3, anyone know what's wrong ? May 11 13:24:53 which one is wrong in your opinion?:P May 11 13:25:13 Well I thought the 6.0 is wrong? But not sure. May 11 13:25:56 Usually there isnt an animation, if you open Gmail for example youll see that the floating button is just static May 11 13:27:08 ktwo: i am not sure if we talking of same stuff. I mean when you tap it and hold the waves that flow through the button ? not actually any movement of the button itself May 11 13:27:53 ripple ? May 11 13:28:36 yeah the ripple i guess May 11 13:28:48 is that supposed to be there in 6.0 ? cause i am only seeing it in 4.0.3 May 11 13:28:51 Mh, there is also no ripple in 6.0 , just tested with Maps and Gmail - for you too? May 11 13:29:22 thornekey, "works for me" May 11 13:29:46 works for me in android studio :/ just not on emulator or real device May 11 13:30:09 I don't have gmail app.. :/ but yeah in maps i am not seeing it May 11 13:30:11 so i guess its normal May 11 13:30:59 http://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html did you set the ripplecolor? May 11 13:31:06 maybe its optional May 11 13:31:26 thornekey, I'm running it on nexus5 May 11 13:31:28 still - sometimes the supportlib just doesnt behave exactly the same. maybe you can have a third check with 5.0 May 11 13:31:37 thornekey, what's your @drawable/button like? May 11 13:32:04 just a 128x128px hdpi image May 11 13:34:05 ah thanks RippleColor fixed it for me! May 11 13:34:35 thornekey, still works for me May 11 13:34:38 Zharf, would the theme affect it? Am using Theme.AppCompat.Light.NoActionBar May 11 13:34:43 hi, i got an issue with LayoutParams - trying to change some settings dynamically. Whenever i try to declare: LayoutParams params = new LayoutParams(LayoutParams.*) it requires a parent class May 11 13:35:04 and changes to: LinearLayout.LayoutParams (allover the line) May 11 13:35:32 thornekey, nope, still no problems on nexus5 May 11 13:35:53 It appears that the LinearLayouts are changing to the size of the image May 11 13:36:50 what's your min/target sdk May 11 13:37:50 Zharf, min is 16 and target is 23 May 11 13:37:55 (is that ok?) May 11 13:38:18 sure May 11 13:38:31 just checking that there isn't anything weird going on with platform versions.. May 11 13:39:28 Hmm I dont know why it is working differently. May 11 13:40:02 on this stupid samsung device it's broken of course May 11 13:40:07 lovely May 11 13:40:18 solution: block samsung devices May 11 13:41:17 someone suggested using a gridview May 11 13:41:19 your solution throws out 50% of users May 11 13:41:46 Chainfire, it's a good thing for the whole! May 11 13:41:51 samsung is crap May 11 13:42:04 they're android developers' bane May 11 13:42:48 Samsung's crappiness is highly subjective, regardless, I tend to go where my customers lead me May 11 13:43:24 I tend to tell customers to go .. themselves :p May 11 13:43:26 I cant get it to even work on a HTC though :/ May 11 13:44:36 http://eclipser.xmms2.org/device-2016-05-11-164053.png nexus5 May 11 13:44:47 :O May 11 13:44:50 Anyone know if there's an API for android to post a notification when using MediaScannerConnection to scan a file? or do I just have to do it manually? May 11 13:44:53 http://eclipser.xmms2.org/device-2016-05-11-164039.png samsung sm-j100h May 11 13:45:11 Ok so some devices it goes funny on May 11 13:45:34 Should I just scrap the grid and use ver and hor layouts? May 11 13:47:36 ah May 11 13:47:51 layout_columnWeight and layout_rowWeight are for api 21+ May 11 13:48:02 Ohh May 11 13:48:09 How do i do it without that May 11 13:49:19 do you have any more requirements than just having them in a grid like that May 11 13:49:27 nope May 11 13:49:35 Just want them evenly spaced May 11 13:51:50 man, IO is just a few days out, where's all the logistics info, like shuttle and services provided May 11 13:52:09 I'd say you can do horizontal and vertical linearlayouts or use a percentrelativelayout May 11 13:52:10 there's flexbox now May 11 13:52:39 https://github.com/google/flexbox May 11 13:52:44 or something like that May 11 13:53:02 so 2 vert layouts in each hor layout (3 of thme to go downwards) May 11 13:53:23 how do i make their size go even May 11 13:53:29 pfn, you're goin? :) May 11 13:53:51 Mavrik, yes, got my invite to buy on Friday May 11 13:54:04 https://github.com/google/flexbox-layout May 11 13:54:10 Yeah, I got mine as well. May 11 13:54:32 Of course by now the plane / hotel ticket prices were crazy :P May 11 13:54:32 finally, haven't been able to get a ticket since 2011 May 11 13:54:48 yeah,last fucking minute for hotel and plane is so shitty May 11 13:55:04 I live 10 minutes away from Google... May 11 13:55:15 Eh, next year I guess, I'm talking at two confs this year already. May 11 13:58:07 * pfn sometimes wishes he would bother with speaking at conferences May 11 13:59:22 good day peoples May 11 13:59:49 how likely is it that google would drop jvm/java from the platform? May 11 13:59:59 nil May 11 14:07:05 that is perfect cause i am trying to convice my new company to do all future dev in scala with sbt May 11 14:07:33 but the current android dev said he read somewhere and could not confirm where that google would drop java for some reason May 11 14:07:33 sweet May 11 14:08:11 even if it were to be dropped, the forthcoming scala-native looks promising in that regard ;) May 11 14:08:20 i got them convinced on all other dev to use scala so everything is scala except for android / ios May 11 14:08:27 but the chance of it happening is 0 May 11 14:09:04 awesome May 11 14:09:19 i have not seen anything related to scala-native May 11 14:09:19 * lemonxah is googling May 11 14:09:24 can anyone assist with fitting this gridlayout? problem illustrated here http://i.imgur.com/Hv66DsJ.png May 11 14:09:47 the grid and the image below it are part of a vertical linearlayout May 11 14:11:09 lemonxah, nothing out in the open yet May 11 14:11:37 ah ok pfn :/, wanted to read up on it May 11 14:11:42 too bad ios in Scala isnt really doable at the moment May 11 14:11:49 is there some inner loop url that has some juicy titbits? May 11 14:11:50 no since the death of robovm May 11 14:12:09 stuff at scaladays NYC currently going on May 11 14:12:56 ah ok May 11 14:13:15 swift is better than objective-c at least but its still not scala May 11 14:13:23 Zharf, solved it aha, just used the linear layouts May 11 14:14:35 I'd argue Swift is a better language than Scala in many ways May 11 14:15:10 why would you agrue that point? May 11 14:15:30 Plenty of reasons starting with the fact that Swift is actually usable on mobile May 11 14:15:43 so is scala? May 11 14:15:55 Not really May 11 14:16:15 how do you figure that? May 11 14:16:18 thornekey, another solution May 11 14:16:29 i have 4 projects running on android written in 100% scala May 11 14:16:41 Crazy runtime method count and memory requirements, Java 1.8 mandatory very soon, that kind of thing May 11 14:16:54 thornekey, http://260dd0a747f78a44.paste.se/ May 11 14:16:55 I didn't say it was impossible, I said it wasn't usable May 11 14:17:06 how is java 1.8 mandatory an issue with using scala on android? May 11 14:17:16 its called versioning May 11 14:17:19 thornekey, http://developer.android.com/tools/support-library/features.html#v7-gridlayout May 11 14:17:21 Scala wil soon require Java 1.8 May 11 14:17:21 i dont have to use 2.12 May 11 14:17:28 only in 2.12 + May 11 14:17:41 but that doesn't stop me from using scala on android at all May 11 14:17:52 Besides, Lightbend has zero interest in Android so zero support for that. Which means they will keep generating bytecode that is insane to run on Android May 11 14:18:02 and with the changes that pfn mentioned it could soon be all native May 11 14:18:05 Again, never said it was impossible. Just that it's a silly language choice for Android. May 11 14:18:26 Java and Kotlin are the only reasonable choices for serious apps May 11 14:20:48 so i feel ridiculously retarded. I spent hours yesterday trying to get a spinner to populate in a fragment, just to realize i was putting the code in the wrong fragment :( May 11 14:22:13 i cant do java or kotlin i will go insane May 11 14:22:20 How often do you guys use Fragments? May 11 14:22:29 I personally hate them so much ... May 11 14:22:49 actually dont know how or if you can do type class pattern implicitly in kotlin May 11 14:22:52 * lemonxah googling again May 11 14:23:41 Can't really have type classes in Kotlin no, no higher kinds May 11 14:23:47 PhpXp: Well, it's actually helping me for the moment May 11 14:23:53 yeah just read that May 11 14:24:13 it sucks though May 11 14:24:31 xrandr: Custom Views are so much easier to work with May 11 14:24:38 i dont like OO May 11 14:25:03 i also dislike the verbosity of java very very much May 11 14:25:12 Use Kotlin then May 11 14:25:16 why cant the compiler know what type i am working with? May 11 14:25:36 i dont like kotlin either cause no implicit scope and no higher kinds May 11 14:26:16 I'm glad about the absence of implicits. Higher kinds, yes, wish we had them. But you can still write some remarkably generic code with Kotlin as it is. May 11 14:26:16 no monads May 11 14:26:43 and you can actually write real Android apps with efficient bytecode and memory footprint. May 11 14:26:47 you can write "generic" code in a lot of languages May 11 14:27:58 scala is perfectly suitable for android despite all naysayers May 11 14:28:16 despite being utterly horrible as a language ;) May 11 14:28:27 i agree pfn May 11 14:29:04 Also utterly horrible at creating mobile applications :) May 11 14:29:27 i have not had 1 issue and our app is not small at all and suffers no memory issues the memory footprint as in ? RAM or storage? cause its only about 2mb bigger storage May 11 14:29:45 Zharf, best language ever May 11 14:30:02 ^ what he said May 11 14:30:27 omg Android Studio is seriously pushing my i3-4005U/4G-RAM inspiron laptop to its limits May 11 14:30:38 it wasn't quick to learn cause i had to learn functional programming with scala but man i would not use something else anymore May 11 14:30:44 i'm running it in gnu/linux debian with the i3wm May 11 14:31:12 anyone who spends more than a few seconds looking at initial syntax generally feels the same way May 11 14:31:27 it feels like downgrading to use something else, like its almost there but not quite. You end up having to adjust your design because the langauge doesn't quite support what you are trying to achieve May 11 14:33:10 hassoon you have to restart it after some time cause IntelliJ has a memory leak. I am finding that even on my macbook pro after having 3-4 projects open at the same time for extended periods of time it slows down tremendously May 11 14:34:05 but i mean even on android 2.3 devices that had 256mb of ram our app ran smoothly no slow downs or anything May 11 14:34:28 lemonxah: In Android Studio you can click in the bottom right corner (where it shows RAM usage) to trigger a GC May 11 14:35:29 PhpXp, cool, havent used android studio in a while i switched to IntelliJ cause i am no longer just doing android and dont have that button on intelliJ May 11 14:36:24 I've noticed fewer slowdowns now that I bumped up IntelliJ xmx to 4gb May 11 14:36:41 wil try that May 11 14:37:51 i usually have many projects open May 11 14:38:10 PhpXp, lemonxah, the memory thing on the bottom right corner isn't on by default, you need to go into settings and enable it, iirc May 11 14:38:11 8 open at the moment aswell May 11 14:38:37 usually I have 5-7 open May 11 14:39:08 Zharf: It appears to be on by default in AS May 11 14:39:31 I pretty sure I just enabled it for a coworker not too long ago May 11 14:39:33 lemonxah: aah so allocating like 256mb of RAM to the android virtual device would be enough ? :O May 11 14:39:59 Also, Android Studio 2.1 just got a serious security vulnerability fix, you should update May 11 14:40:21 hassoon, we did while writing our app to make sure we cater for performance issues since our app runs on old devices aswell May 11 14:40:28 it depends on your target market May 11 14:40:58 we also disbable some animations and have some different layouts depending on the device it runs on to also help smooth out performance May 11 14:41:06 PhpXp: oh dear, my studio's version is 1.5 something May 11 14:41:09 * hassoon updates May 11 14:41:40 hassoon: :o Why? May 11 14:42:07 PhpXp: i downloaded the 1.5.whatever a while ago, and now, i figured out that there is thos 2.1.1 version May 11 14:42:23 i mean i installed the said older version recently May 11 14:42:35 hassoon: You probably need 2.0, 2.1 just has support for N preview May 11 14:42:57 a hthe new N smartphones ? May 11 14:43:00 a hthe * May 11 14:43:01 hassoon: Well, 2.0 was still in beta not a long ago May 11 14:43:04 ah the * May 11 14:43:14 hassoon: Yep, support for the N SDK May 11 14:44:26 PhpXp: okey i see May 11 14:47:40 Hi, I have a small off-topic question: I have a class 'Book' and another class 'BookSelection', which has 2 vars, a Book and an int 'amount'. I don't like the name of the BookSelection class. Any suggestions? Or is there another good channel for this stuff? May 11 14:48:41 if you're using android studio there's an edit option to rename it everywhere May 11 14:49:16 refactor > rename May 11 14:49:18 would be great if AS would give me good sugestions ;) May 11 14:49:58 FrancescoV: Huh, I think BookSelection is good May 11 14:51:29 PhpXp: well, at first sight it is. But I want use the class in an overview/summary Fragment and it isn't a good name for that Fragment (my opinion) May 11 14:52:23 FrancescoV: BooksFragment, BookSelectionFragment, BooksOverview May 11 14:59:34 Does anybody have experience with paying a graphics designer to design a launcher icon? May 11 15:00:49 Anyone aware if/how it is possible to record/playback using the internal mic/speaker if a class compliant USB-Audio-device is connected? May 11 15:10:11 If my version code is generated from git commit count... will that slow down all of my builds? May 11 15:15:55 no May 11 15:18:46 Anyone seen the material motion doc May 11 15:19:08 https://www.google.com/design/spec/motion/material-motion.html May 11 15:25:10 whatup whatup May 11 15:27:08 hm. that latest video from reto on instant run made it seem like it. May 11 15:30:33 Sup orbyt_ May 11 15:30:40 You seen the material motion doc May 11 15:30:41 o7 May 11 15:30:46 the what May 11 15:31:09 Material Motion doc May 11 15:31:42 this: https://www.google.com/design/spec/motion/choreography.html? May 11 15:32:21 https://www.google.com/design/spec/motion/material-motion.html May 11 15:33:24 ok what about it May 11 15:34:04 Just wondering if youve seen it, I think its new May 11 15:34:24 It is new drose379 It's mentioned in the "What's new" section May 11 15:34:34 Ah May 11 15:36:22 looks useless tbh May 11 15:37:29 you guys know if there's a material icon with the attach file, but with a + as well? May 11 15:38:07 huh... http://blog.jetbrains.com/blog/2016/05/11/security-update-for-intellij-based-ides-v2016-1-and-older-versions/ - make sure to update May 11 15:38:36 (android studio) May 11 15:39:05 for all jetbrains ides afaik May 11 15:39:23 yep May 11 15:39:48 but android studio is one of them is all i meant May 11 15:42:21 Wow SimpleXml is nice May 11 15:42:41 Works like Gson May 11 15:45:39 In an if, with 2 conditions seperated by and, does java read left to right May 11 15:45:42 Or right to left May 11 15:48:08 http://www.cs.bilkent.edu.tr/~guvenir/courses/CS101/op_precedence.html May 11 15:48:25 associativity is always left to right except for assignment May 11 15:48:45 Cool May 11 15:48:49 well, and the unary stuff May 11 15:50:12 kroot is alive ! May 11 15:50:39 oops, I've been found out May 11 15:51:22 kroot presenting at I/O this year ? May 11 15:52:13 No, I might present at HITCON or CODE BLUE May 11 15:52:22 kroot nice, what topic ? May 11 15:52:56 Trusty the small trusted OS May 11 15:53:22 Has anyone ever seen a recyclerview apparently go crazy when scrolling, request every single view and then reset at the top? May 11 15:54:10 It's only happening when there are multiple fragments on the screen, when it's the only fragment everything works fine and I have no idea wtf is causing it May 11 15:54:24 kroot neat, never heard of trusty, have to check it out May 11 15:54:58 kroot is a googler? May 11 15:55:03 konk3r heh that would sound like their is some shared state, but i doubt it ... May 11 15:55:09 *there May 11 15:55:47 I've put break points everywhere and I haven't found anything methods being called in my adapter May 11 15:56:25 g00s: That's what I was thinking, but it seems so far fetched May 11 15:56:38 konk3r like some static or something haha May 11 15:56:51 drose379: Yes, I work on the Android team. May 11 15:57:04 chris banes made that mistake on tabLayout, 1 or 2 releases ago May 11 15:57:34 I'll check into it. Maybe I should try a legacy version of the RecyclerView May 11 15:58:02 Just to double check that it's not a bug in the latest version May 11 15:58:37 Awesome kroot, pleasure to meet (kinda) May 11 16:00:53 Having an issue with an EditText inside a Fragment after rotation - It's losing it's data, and setText doesn't appear to be working when called inside of onCreateView May 11 16:00:59 Any ideas what could be causing this? May 11 16:01:10 NoirAvlaa does it have an ID in XML ? May 11 16:01:14 Yep May 11 16:02:49 should i be loading/having admob ads on the main GUI thread? May 11 16:03:20 g00s, here's relevant code: May 11 16:03:21 http://pastebin.com/nRa1W1qz May 11 16:03:50 Just using dummy data for now May 11 16:06:00 NoirAvlaa is onSIS being called ? May 11 16:06:18 Yep May 11 16:06:25 can't remember all the corner cases May 11 16:06:36 SIS inside onCreateView has the relevant data in May 11 16:06:44 Hang on May 11 16:07:02 doesn't make much sense, dunno May 11 16:07:04 It's even occuring when I ignore SIS and just do .setText("Text"); May 11 16:07:23 The EditText is emptied on rotation May 11 16:07:24 Android retains EditText input by default May 11 16:07:36 That state is restored after onCreateView May 11 16:07:48 So any reason why it wouldn't be? May 11 16:08:04 do it in onResume May 11 16:08:07 Your layout is missing ids May 11 16:08:08 I dont get it, my Okhttp.enqueue call is not coming back on the main thread May 11 16:08:14 And I'm calling it from the main May 11 16:08:48 Got 2 layouts (normal/landscape), both have the id in it May 11 16:09:33 Hmmm hang on, might've discovered the issue May 11 16:09:34 :/ May 11 16:10:15 Sigh, silly mistakes, oh well May 11 16:10:23 NoirAvlaa what was it ? :D May 11 16:10:30 Anyone heard of this before, calling enqueue from the main thread, and it comes back on a bg thread May 11 16:10:35 Had an in the landscape which had another EditText with the same id May 11 16:10:39 Isnt it supposed to post back to the thread it was called from May 11 16:11:30 Fixed May 11 16:11:33 d'oh May 11 16:15:35 I've always been under the impression that Okhttp callbacks are run on the same thread that they were called on May 11 16:15:41 Is this wrong? May 11 16:15:52 Does it state anywhere that that's the case? May 11 16:16:07 Uhh not sure May 11 16:16:10 Is that the case? May 11 16:16:31 I have no idea May 11 16:16:37 Oh haa May 11 16:17:31 Hm, I guess not May 11 16:17:32 Weird May 11 16:19:08 Not sure you makes sense to post back to the main thread, considering you still need to actually read the response body: https://github.com/square/okhttp/blob/master/okhttp/src/main/java/okhttp3/Callback.java May 11 16:20:02 Well I didnt think it was main, just thought it would post back to the thread it was called from May 11 16:20:18 Assuming that's possible May 11 16:21:18 Are there any UI/UX designers in here? May 11 16:21:20 Gah, for some reason method references still confuse me sometimes May 11 16:21:31 Where would be the best place to find UI/UX designers? May 11 16:21:49 For android specifically, preferrably familiar with Xamarin May 11 16:24:23 Basically if a functional interface method has the same params as a method you define, you can reference that method instead of a) anon class or b) lambda May 11 16:29:09 are padding&margin the same in a gridlayout? trying to put some space between the children (formed dynamically), and it only seem to affect outside the gridlayout May 11 16:37:19 margin is space between a view and other views. Padding is space between a views border and its content May 11 16:44:32 hi in materal design there is max width for main content ? like http://1.bp.blogspot.com/-cTNLfT1LNTs/VI9jXMnU0FI/AAAAAAAAAsE/wsGzbrDUJxM/s1600/toolbar.png May 11 16:45:32 need help May 11 16:47:28 no? May 11 16:47:36 read the guidelines May 11 16:47:51 SimonVT, i am unable to control the spacing between the children of the grid May 11 16:48:13 each child is a linearlayout by itself May 11 16:48:57 So give each child a margin May 11 16:49:09 Assuming GridLayout has no child spacing attribute May 11 16:49:10 im trying, but failing May 11 16:49:24 there is none, checked docs May 11 16:49:33 nada, lil info on stackoverflow May 11 16:50:15 and i cant seem to be able to set LayoutParams on the LinearLayout objects May 11 16:50:51 I don't see why that wouldn't be possible May 11 16:51:40 not sure i have the correct syntax May 11 16:52:01 pastebin it? May 11 16:52:19 !p May 11 16:52:41 how to download urldownload to a file that has encoding set as UTF-8. thanks May 11 16:53:13 i tried both the methods, save to file and save to a variable but when i view the text it is all crazy icons. please guide. thanks May 11 16:53:38 !URLDownloadToFile encoding May 11 16:54:11 oh sorry, wrong channel. :-p May 11 16:54:36 yes May 11 16:54:52 Ashiren: http://pastebin.com/3FjwHJhu May 11 16:55:55 hm? May 11 16:56:10 the LayoutParams are of the immediate parent May 11 16:56:19 Elaborate what "doesnt work" mean May 11 16:57:08 it does compile, but gridParams.setMargins(10,10,10,10) - returns a null object refrence May 11 16:57:30 Then it hasn't been added to a GridLayout yet May 11 16:57:43 anyone knows how to disable the xml nesting bar in android studio editor? the one that shows you where you are standing as in parent > child, it's annoying for small files. May 11 16:58:01 You could also instantiate your own GridLayout.LayoutParams and pass when adding the view May 11 16:58:38 SimonVT, that is correct. let me go and just kill myself. May 11 16:58:43 thank you sir (: May 11 17:22:01 AS has a built in web server O.o May 11 17:22:16 huh May 11 17:22:31 what port? May 11 17:23:32 no idea what port May 11 17:23:35 "Built-in WebServer Vulnerabilities: A Cross-Site Request Forgery (CSRF) flaw in the IDE’s built-in WebServer could allow an attacker to access the local file system from a malicious web page without user consent." May 11 17:24:52 So I'm getting conflicting information from Google on whether or not the keystore used to sign your apk files should be stored in the repo. May 11 17:24:56 Anyone have any insight? May 11 17:25:50 conflicting information? lolwut May 11 17:25:51 g00s: I used to have a (HP?) printer where the (Windows) drivers included a copy of Apache Tomcat, because the printer status dialog was implemented as a JSP shown in something WebView-alike. May 11 17:25:56 no one ever says to store your keystore in repo May 11 17:25:56 ever May 11 17:26:08 anyone that does, should be ignored outright May 11 17:26:14 pfn, some people say it's insecure, others say it's secure because the key is protected by a password (provided you're using a secure password) May 11 17:26:33 it is never secure May 11 17:26:39 Why not? May 11 17:26:54 because you are giving an opponent free access to brute force it for however long they want May 11 17:27:14 They have free access to brute force it for however long they want if they have your apk, too May 11 17:27:20 nope May 11 17:27:32 you cannot brute force a signature => key May 11 17:27:36 How do you figure? May 11 17:27:52 crypto 101 May 11 17:27:59 I'm not saying you're wrong. I'm just looking for evidence that you're right, so that I understand it. May 11 17:28:38 public key crypto basics May 11 17:29:15 So then where should the .keystore file be stored? Specifically when it comes to continuous integration. May 11 17:29:26 It's usually not a good idea to keep the key in the repo, especially if it's public. May 11 17:29:51 TellYouHwat, provisioned on the server like all other keys (SSH, Passwords, etc.) May 11 17:29:56 Mavrik, it's not necessarily public. But I'm working with other people, whom won't need access to it, and security 101 is don't give people access to something they don't need access to. May 11 17:30:14 yeah, that's why don't put it in the repo :) May 11 17:30:45 Indeed. Fortunately, I'm the only person that's had access to the repo so far. I'm planning on bringing another person on, and I'm thinking about these things ahead of time ;) May 11 17:31:47 I can't seem to find anything regarding keystore best practices related to android. May 11 17:43:27 Is it common practice to create a new keystore file for every app, or to store all the keys in a single keystore? May 11 17:45:09 Up 2 u really May 11 17:45:39 I'm looking more from a security standpoint I guess. May 11 17:51:49 Granularity means that you can give out keys to people as you see fit. May 11 17:52:31 Torn on bottom navigation :( https://www.google.com/design/spec/components/bottom-navigation.html May 11 17:53:26 Really nice being able to hit things at the bottom of the screen, but it's so close to the nav bar May 11 18:01:12 I'm thinking separate key store for each app, unless two apps are so closely related that they wouldn't possibly be sold separately. May 11 18:01:30 Because of the fact that doing it this way allows you to sell one app without giving up the password for the key all your apps are signed with. May 11 18:02:15 Idk why my adb is always show help. First time it happens. No meter what command I send to it. It always return the help output. I'm trying `adb -d 0010450136 install -r app-release.apk` May 11 18:03:52 Just after closing the emulator. :/ May 11 18:09:17 Hey anyone can't wait fo google i/o 2016? May 11 18:09:28 are you going? May 11 18:09:52 nope i watch it online. May 11 18:09:56 :( May 11 18:10:20 support lib 23.4.0 out May 11 18:10:31 pfn,I waiting to see if cloud test lab come out of beta:) May 11 18:10:43 hey g00s:) May 11 18:10:50 hi perlsyntax May 11 18:11:03 How are you:) May 11 18:11:03 perlsyntax nothing really comes out of beta :D May 11 18:11:32 perlsyntax ok having fun May 11 18:11:42 must grab some popcorn for I/O :P May 11 18:11:59 g00s,Really i just hope cloud test lab for google play develper console hopeing it free to use. May 11 18:12:00 "we are switching from Java to Perl" May 11 18:12:12 g00s,Funny May 11 18:12:15 :D May 11 18:12:19 :) May 11 18:12:39 New android studio out yes! May 11 18:13:07 isn't that just the security update May 11 18:13:14 i not sure. May 11 18:13:28 2.1.1 May 11 18:13:46 yeah to fix AS built in web server haha May 11 18:13:53 i need to get little snitch installed again May 11 18:14:03 i hope they fix the fail network thing. May 11 18:14:19 :) May 11 18:14:52 g00s,I reinstall android studio:) May 11 18:15:40 wonder what they added in 23.4.0 May 11 18:15:47 hopefully bottom nav May 11 18:16:06 Has anyone try cloud test lab in google play console? May 11 18:16:12 but seeing that the gapps implement bottom nav with linearLayout and textviews, doubt it May 11 18:16:12 uh isnt bottom nav already a thing May 11 18:16:27 orbyt_ not in the support lib. May 11 18:16:52 why not use a toolbar at the bottom? May 11 18:16:56 classic google: put up material design specs, don't provide library, and each gapp has different bottom nav feel which are all different than the spec May 11 18:17:19 orbyt_ you can't get the toolbar to behave like the spec May 11 18:17:28 havent seen the new spec i guess May 11 18:17:39 guess not :P May 11 18:17:45 not that i care, i'm not using bottom nav May 11 18:18:49 missingno,I think your right about the android studio. May 11 18:28:10 thepoosh ! May 11 18:28:21 sup g00s May 11 18:28:41 new support lib is out May 11 18:28:52 just waiting to see what is new May 11 18:29:14 cool May 11 18:31:25 hey thepoosh May 11 18:31:27 :) May 11 18:31:51 hi perlsyntax May 11 18:32:51 How are you. May 11 18:36:29 ok i guess May 11 18:36:45 it's the israeli independence day today May 11 18:36:49 That good thepoosh May 11 18:37:14 SO WHY AM I WORKING AT THE MOMENT?! May 11 18:37:32 oh sorry May 11 18:39:05 thepoosh you aren't working, you're disrupting ! May 11 18:40:11 g00s: I hate TC disrupt May 11 18:41:11 Does kotlin use the java compiler? May 11 18:41:24 haven't been there; but its standard silicon valley blah blah for bringing about techno-utopian blah blah May 11 18:42:59 eghdk_ that would be weird if it did ... May 11 18:43:35 g00s: I'm just asking, because someone is telling me that it uses the java compiler. But I'm just like "thats impossible" but I haven't ever used it. So just asking here May 11 18:44:47 brb May 11 18:45:25 how to implement something like this http://blog.grafixartist.com/wp-content/uploads/2015/04/material-design.png ?? May 11 18:45:46 in particular i need info about width of main area May 11 18:45:56 kotlin is for losers May 11 18:46:03 thepoosh haha May 11 18:46:07 xan_IT: by building a responsive UI May 11 18:46:25 i need something more specific May 11 18:46:30 i see thepoosh is feisty today May 11 18:46:41 dealing with google people May 11 18:46:56 xan_IT: try reading the d.android.com/design pages May 11 18:46:57 maxWidth and matchparent doesent works May 11 18:46:58 it should help May 11 18:47:05 no May 11 18:47:06 where is danijoo May 11 18:47:17 i read that all day May 11 18:47:25 but there isnt that info May 11 18:47:36 and did you miss the part about having layout-sw folders? May 11 18:49:06 no May 11 18:49:16 the problem is how to build layout May 11 18:49:32 xan_IT are you developer or designer ? May 11 18:49:33 i use margin for left and right o is best to use width ? May 11 18:49:38 developer May 11 18:49:41 start and left May 11 18:49:59 thepoosh did the app get pulled or something ? May 11 18:50:00 margin is best solution? May 11 18:50:25 g00s: nah, just been in the phone with them since last night May 11 18:50:30 integration stuff May 11 18:50:44 thepoosh lucky you get to talk to anyone at all May 11 18:50:46 xan_IT: it seems you have the answers, why ask questions? May 11 18:50:50 lolz May 11 18:51:08 im not sure, my solution is strange May 11 18:51:40 layout > matchparent, layout-720sw margin xdp May 11 18:51:54 is correct? May 11 18:52:28 and also there is standard dimensions for this pattern? May 11 18:52:35 64dp for margin? May 11 18:52:47 or 720dp of width ? May 11 18:53:14 are you understand problem? May 11 18:53:44 thepoosh ? May 11 18:54:08 if it works it's correct May 11 18:54:23 i suspect it won't because you probably need different layout files for this May 11 18:54:30 for the different screen dimensions May 11 18:56:24 so there isn't any specific pattern about this? May 11 18:57:03 i have a card and i want that is match parent up to X width May 11 18:57:14 a limit for a width May 11 18:58:56 android:maxWidth May 11 18:58:57 ? May 11 19:00:40 matchparent and maxWidth seams does not works togheter May 11 19:03:56 you cannot match parent and maxwidth together May 11 19:08:20 thepoosh so? May 11 19:08:35 so? May 11 19:08:51 so, how i can do this? May 11 19:09:29 you want to help me or not? May 11 19:10:15 if that is how you ask, then i really don't May 11 19:10:26 xan_IT: be nice or don’t be here at all May 11 19:11:23 sorry, but seams that want to blast me May 11 19:16:35 s73v3r do you think that post on /r/androiddev about getting banned for string resource is legit ? May 11 19:17:20 and i really wonder how much different it is on Apple side, talking to human, etc May 11 19:17:51 LOL May 11 19:17:57 Talking to humans at Apple or Google :) May 11 19:18:02 Don't be silly. May 11 19:18:45 thepoosh is talking to a human right now , right thepoosh ? :D May 11 19:18:54 Yeah. May 11 19:18:56 So did we. May 11 19:19:10 And that human kept copy-pasting non-relevant pieces of Apple guidelines as grounds for rejection :P May 11 19:19:14 And not reading anything. May 11 19:20:05 ?? May 11 19:20:33 match_parent i cant do this May 11 19:20:33 Mavrik: that sounds like our out sourcing guys for the windows client May 11 19:20:50 i try to make 2 different dimen (normal and w600dp) May 11 19:20:59 but i cant use matchparent as value May 11 19:21:38 " Android VR will definitely be announced next week, and from what I’ve heard will be less powerful than the Vive or Rift." May 11 19:22:11 Doh. May 11 19:22:55 VR was announced in IO 2015 May 11 19:25:01 hmm... SupportActionBar.SetTitle() doesn't work after I made it collapsable... May 11 19:25:09 that is, it works the first time, but not when I try to update it later... May 11 19:25:20 worked fine until I used collapsable May 11 19:26:33 interesting , good stuff http://arstechnica.com/tech-policy/2016/05/google-to-jury-android-was-built-with-our-engineers-hard-work/ May 11 19:27:33 oracle is really fighting a losing battle, main problem is the jury and judges May 11 19:27:54 they're making some fucked up precedent laying decisions May 11 19:28:39 BTW, http://developers.redhat.com/blog/2016/03/31/no-cost-rhel-developer-subscription-now-available/ May 11 19:29:07 xan_IT match_parent is equivalent to -1, so you can use that instead May 11 19:29:44 xan_IT http://blog.danlew.net/2015/01/06/handling-android-resources-with-non-standard-formats/ May 11 19:30:26 azgul i found solution: use different style and in each style use 480dp or match_parent May 11 19:30:41 xan_IT see the link ^^^ May 11 19:30:49 thats lame :) May 11 19:36:31 g00s thz, and if instead of use dimen i use integer? May 11 19:37:03 whatever dan has there ... May 11 19:38:51 anywhere thz May 11 20:03:39 where does AS keep its gradle cache, and can I have it use the same ~/.gradle cache as the command line May 11 20:19:42 pfn, I'm fairly certain you're wrong May 11 20:20:06 You too, Mavrik May 11 20:20:12 Either that, or you misunderstood me. May 11 20:20:32 I'm not planning on storing the private key for my apps in the repo, I'm planning on storing the *keystore* in the repo. May 11 20:20:49 There's a big difference. The whole damn point of a keystore is so that you can store it in your repo, and still keep it secure, with a password. May 11 20:21:10 Fucking hate misinformation. May 11 20:21:36 I'm using okhttp 2.x I have a new response that may come down from the server on any request that will say "Account banned" essentially. I don't want to add a response check for this in every single one of my network responses. Any easier way to do this? May 11 20:21:52 TellYouHwat, we understood you well enough. May 11 20:22:27 g00s: I believe it's the same cache May 11 20:22:40 guys how can i add the icon before the app name in status bar? May 11 20:22:56 Mavrik, then why did you say not to store the keystore in the repo? May 11 20:23:20 You do realize that a keystore is basically a method to store a private key, encrypted, right? May 11 20:24:02 And if you are in fact correct, then do you mind explaining to me why Microsoft themselves recommend storing the keystore in your repo? https://msdn.microsoft.com/en-us/library/vs/alm/build/apps/secure-certs May 11 20:24:23 And why they provide literally no other suggestion, other than to create a keystore and store it in your repo. May 11 20:25:41 g00s: I almost never take anyone’s story of being banned for “no reason at all” seriously May 11 20:26:12 it always comes out that they blatantly broke a rule, and thought they wouldn’t get caught. and then they get all defensive about it. May 11 20:31:08 s73v3r: SO true. I hate the reddit posts about it. I had this app... that like pretended to be another app, but wahhhh May 11 20:31:53 To be fair, Google has banned people for some pretty stupid reasons. May 11 20:31:59 But I agree for the most part. May 11 20:33:04 TellYouHwat: couldn't you brute force the keystore if you have a malicious user on your repo? May 11 20:34:11 you could 'brute force' the key as well May 11 20:34:32 ^ May 11 20:34:43 I mean if your password for the keystore is password123 May 11 20:34:48 Then you're a moron to begin with. May 11 20:35:09 32 characters, upper, lower, numbers, special, you aren't brute forcing that shit before the key expires. May 11 20:35:17 if you’ve got a good password, the bruteforce method isn’t going to yield results in any reasonable amount of time May 11 20:35:27 unless you’re the NSA, KGB, or whatever China’s equivalent is May 11 20:35:53 still keystore at repo sounds fishy May 11 20:36:03 keystore should be stored in building machine May 11 20:36:26 s73v3r: China's agency is MSS, Google says May 11 20:36:31 I planned on storing my keystore in a bank deposit box as a qr code May 11 20:36:32 :p May 11 20:37:15 Ashiren, if you're using VSTS that's not exactly an option. May 11 20:37:30 I engraved my QR code on a plaque, which is currently at the moon landing site. And the key was ROT-13 encrypted before I made the QR code May 11 20:37:33 Not to mention, Microsoft themselves suggest storing the keystore directly in the repo and nothing else. May 11 20:38:04 Not saying Microsoft is the expert on security, but I think if they were actually wrong, then something would have been brought to their attention by now. May 11 20:38:04 do you trust microsoft May 11 20:38:05 VSTS isn’t public, though May 11 20:38:07 s73v3r, it wasn't for digital security purposes though, for making sure that I wouldn't lose it May 11 20:38:29 s73v3r, it's a place where many people can access it. May 11 20:38:39 presumably the only people accessing your VSTS are those inside your company, no? May 11 20:38:52 frankly I don't care if someone somehow manages to get access to my keystore and open it May 11 20:38:52 And if the whole argument that, "it can be brute forced" is valid, then all current encryption measures are moot because they can be brute forced. May 11 20:39:05 So we may as well not even bother encrypting anything, because it can be brute forced. May 11 20:39:19 one-time keypad cant be brute forced :v May 11 20:39:44 s73v3r, assuming that anyone who works for your company can be trusted is against probably the number one rule of security. So that argument is invalid. May 11 20:40:02 if you can’t trust them, why the hell are you giving them access to the repo? May 11 20:40:38 shit happens. people get pissed. May 11 20:40:47 May as well just give them the root account too, right? May 11 20:41:25 most companies I’ve worked for, developers have admin access May 11 20:41:40 you dont want to piss of admin May 11 20:41:42 That's an invalid argument. Doesn't mean it's good practice. May 11 20:44:22 it’s not an invalid argument, considering it actually happens May 11 20:44:36 admin access to what May 11 20:44:51 admin access to computers that are on the network May 11 20:45:16 Because something happens doesn't mean that it should happen. So yes, it is an invalid argument. May 11 20:45:21 It's a logical fallacy. May 11 20:45:48 "is it okay for your boss to access your facebook?" May 11 20:46:01 no, no its not. keystore is no different. my time, is not company time May 11 20:47:22 lsass, what? May 11 20:47:37 I'm talking about putting the keystore for an android app in the repo for that app, not giving it to my boss. May 11 20:47:39 oh i read out of context May 11 20:48:12 keystore doesnt really make a difference, unless they have access to your publisher account May 11 20:48:20 are you publishing your username and password as well? May 11 20:48:24 lol May 11 20:48:52 TellYouHwat, uh, no May 11 20:48:54 keystore is just for signing May 11 20:48:55 TellYouHwat, keystore = private key May 11 20:49:21 when i launch Intent intent = new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS); how can i set the text that will be shown in menu? May 11 20:50:01 pfn, keystore != private key May 11 20:50:07 you are clearly mistaken May 11 20:50:11 Idk where the hell you figured out what a keystore is, but your definition is wrong. May 11 20:50:12 keystore contains private key May 11 20:50:17 learn2crypto May 11 20:50:18 in publishing, keystore only verifies you signed with same certificate May 11 20:50:23 An encrypted private key. May 11 20:50:43 with a password May 11 20:50:47 So what is the point of encrypting that private key, if you're not allowed to let anyone else access the keystore? May 11 20:50:50 that you will allow infinite time to break May 11 20:51:00 pfn, ever heard of bitcoin? May 11 20:51:11 bitcoin isn't protected via password May 11 20:51:16 Infinite time to break bitcoin too. Yet people trust that to secure millions of dollars. May 11 20:51:18 learn2bitcoin May 11 20:51:26 rather not, its stupid May 11 20:51:32 remember e-gold. wheres that? May 11 20:51:35 lol May 11 20:52:16 pfn, also, you do not in fact have infinite time to break a keystore. May 11 20:52:30 heres a question: why would you want to break a keystore? May 11 20:52:32 30 years is infinite time in the computing world May 11 20:52:36 lsass, impersonation, obviously May 11 20:52:46 pfn, oh is it? Tell that to SSL May 11 20:52:52 but impersonation is no good, with a keystore, without other credentials May 11 20:52:59 keystores do not contain email users and passwords, dear May 11 20:53:02 TellYouHwat, no one publishes their ssl encrypted private keys May 11 20:53:05 lsass, you should still keep your private key secure. May 11 20:53:13 pfn, because there's no reason to. May 11 20:53:18 i think you are misinformed May 11 20:53:22 there's no reason to publish your keystore either May 11 20:53:23 anyway May 11 20:53:29 I'm going to write you off as either dumb, or willfully ignorant May 11 20:53:30 bye May 11 20:53:38 I'm not saying I should publish it for the whole world to see. While it would still be secure if you used a secure password, there's no purpose to doing so, so it wouldn't be done. May 11 20:53:53 My concern is whether or not it should be placed in the repo for the android project. May 11 20:54:03 not like it really matters, you are missing a few details of information May 11 20:54:06 as i stated 3 times above May 11 20:54:21 do you trust everyone with access to your repo to keep shit private, if so, then put it there May 11 20:54:22 if not, then no May 11 20:54:38 pfn, why was the keystore used in the first place? May 11 20:54:51 Why didn't they just leave it at a private key, and focus on keeping the private key secure, like is done with ssl May 11 20:54:51 to sign May 11 20:54:56 lsass, false May 11 20:55:03 private key is used to sign, keystore stores the private key securely May 11 20:55:06 no, no its true May 11 20:55:14 No, it's not, go read up on what a keystore is May 11 20:55:35 http://developer.android.com/tools/publishing/app-signing.html May 11 20:55:36 ok May 11 20:56:10 "Android requires that all apps be digitally signed with a certificate before they can be installed. Android uses this certificate to identify the author of an app, and the certificate does not need to be signed by a certificate authority. Android apps often use self-signed certificates. The app developer holds the certificate's private key." May 11 20:56:16 mentions nothing about being signed by a keystore. May 11 20:56:34 "Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place." May 11 20:56:38 step one of the guide May 11 20:57:22 Although I don't agree with the whole concept of keeping the keystore in a safe and secure place. I think they're spreading misinformation with that, because otherwise, what the hell is the point of a keystore? May 11 20:57:24 it says nothing about keystore on there? May 11 20:57:35 It says nothing about the keystore being the thing that signs the apk May 11 20:57:42 lol May 11 20:57:44 ok sir May 11 20:57:49 The certificate/private key is what signs the apk. The keystore stores it. May 11 20:57:49 TellYouHwat: You need to keep it in a safe and secure place so you don’t lose it May 11 20:57:54 "Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place." May 11 20:57:56 heres a test for TellYouHwat May 11 20:57:58 s73v3r, makes sense May 11 20:58:10 sign an app for publisher, sign again with different keystore, tell me if it lets you update that app May 11 20:58:17 sigh May 11 20:58:20 since you read it and still disbelieve May 11 20:58:31 If the different keystore contained the same private key, yes, it would in fact work. May 11 20:58:32 keystore == certificate May 11 20:58:44 lord May 11 20:58:53 you're fucking dumb May 11 20:59:01 I'll quote it again. Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place. May 11 20:59:03 you’re the one that asked for advice May 11 20:59:07 you read it, but still dont get it. it says exactly what it is, and to do May 11 20:59:10 Now go google certificates, because you clearly don't understand what they are. May 11 20:59:16 OMG May 11 20:59:37 ssl certificates are not the same as keystores, theres your problem May 11 20:59:45 a certificate can also be a password May 11 20:59:52 your bound by words, rather then what IT IS May 11 21:00:05 yeah, otherwise known as a private key May 11 21:00:16 which is what the keystore stores, nothing to do with a certificate. May 11 21:00:31 ok man May 11 21:00:38 we're not getting through May 11 21:00:39 And yes, ssl certificates are in fact what is used to sign apk files. May 11 21:00:45 That's why you can use openssl to generate them. May 11 21:01:06 In fact, I bet the java tool actually DOES use openssl to generate a private key, which it then stores in the keystore. May 11 21:01:31 You aren't getting through because you're wrong, and my logic proves it. May 11 21:01:34 i wouldnt bet if you dont know May 11 21:01:46 I'll put $1 million on it right now, because I do know. May 11 21:01:53 logic? it says right on that link what it is May 11 21:01:59 lsass, just admit you're wrong and move on. You can certainly sign and update an app with multiple keystores, assuming they hold the same key May 11 21:02:01 straight from google? whats not to believe? theres no logic. its true. lol May 11 21:04:23 " A Java Keystore is a container for authorization certificates or public key certificates, and is often used by Java-based applications for encryption, authentication, and serving over HTTPS. Its entries are protected by a keystore password. A keystore entry is identified by an alias, and it consists of keys and certificates that form a trust chain." May 11 21:04:29 https://www.digitalocean.com/community/tutorials/java-keytool-essentials-working-with-java-keystores May 11 21:04:36 TellYouHwat not sure if you can use these https://github.com/hashicorp/vault May 11 21:04:56 yeah, whats the difference between an md5sum? nothing. you just don't get it May 11 21:05:04 and https://square.github.io/keywhiz/ May 11 21:05:16 g00s, I'll check it out. May 11 21:05:36 Although VSTS/TFS already includes methods for securely storing strings (such as passwords) May 11 21:05:57 Which, I'm guessing, is the whole reason a keystore was created in the first place. So that apks could be generated through continuous integration. May 11 21:06:21 or maybe to sign integrity, and authenticity May 11 21:06:26 but guess that just crazy May 11 21:06:36 ^ lol May 11 21:06:47 lsass, I'm done with you. Clearly you don't understand logic and facts, and are too parochial to accept when you are proven wrong. May 11 21:07:11 what part proved you wrong? you've added to your misinformation with your "arguments" May 11 21:07:15 me* May 11 21:07:30 I've added no misinformation, I actually cleared up misinformation. May 11 21:07:37 You're the one spreading misinformation. May 11 21:07:40 yeah, you have the right information, for my side, that is May 11 21:08:05 lay off the mac dude May 11 21:08:16 now im getting booted May 11 21:12:03 easy questions May 11 21:12:12 key is for opening physical doors, keystores are some computer thing May 11 21:12:20 Well, a Java keystore has entries that can either be a private key (which must also contain a certificate which is in reality always X.509 but not technically required to be so) or a certificate. May 11 21:25:42 hmm May 11 21:25:49 This seems to have more implications... May 11 21:26:17 Say I want to sell one of the rights to my android apps. I've been told here and in multiple other places, that if I sign all my apks with the same keystore, I would have to give up the password in order to sell the rights. May 11 21:26:37 But in reality, couldn't I just put the private/public key in another keystore and give that to the new owner? May 11 21:27:37 As long as I'm not signing all my apks with the same certificate, and use an alias for each apk, that is. May 11 21:30:27 yes, if you have multiple keys in your keystore May 11 21:30:31 most people don't May 11 21:30:43 you don't sign with your "keystore" May 11 21:30:45 you sign with a private key May 11 21:32:58 and no, java doesn't use openssl to generate certificates May 11 21:33:01 it has its own crypto implementation May 11 21:39:36 Some guy is complaining about being banned here (lsass) May 11 21:39:36 sigh May 11 21:40:31 Are there times where its not possible to keep code DRY May 11 21:41:06 Example: I have 2 methods, Create and Update, They do almoast exactly the same things, but one calls create methods and one calls update methods May 11 21:43:19 drose379|brb, can you post code? May 11 21:44:43 Not really, its for work so I dont wanna post it :( May 11 21:44:44 Encapsulate the operation in a parameter you pass to the method May 11 21:44:56 DRY certainly can be taken to an extreme. May 11 21:45:19 and some languages give more or less tools helping with DRY May 11 21:45:35 for example lisp macros super powerful, but you don't get that in java May 11 21:46:41 sometimes you can only escape the hell by creating code generators or annotation processors, etc May 11 21:46:44 (java land) May 11 21:47:06 pfn: well, you can use Conscrypt with jarsigner May 11 21:47:28 https://android.googlesource.com/platform/build/+/9667b18 May 11 21:51:07 is it me or goo.gl links often take up to 30 seconds to resolve May 11 21:51:18 at least ones i follow from twitter May 11 21:52:13 Hey has anyone here used SimpleXml with retrofit? May 11 21:52:19 g00s: twitter fill first put you through t.co May 11 22:00:38 pfn, regarding keytool not using openssl, I see. I do understand that it's in fact a private key that signs the apk (now, at least). I wish the Android documentation was more clear on how the signing process actually works. I know for me, it lead to a lot of confusion and misunderstanding until I actually looked up what a keystore is. May 11 22:00:42 ah maybe bottomsheet behavior finally works now https://code.google.com/p/android/issues/detail?id=204892 May 11 22:01:25 LunarEclipse120, where's he complaining? May 11 22:01:37 TellYouHwat: #android May 11 22:01:58 Don't see him in there anymore. Take it he must have got banned from there too lol. May 11 22:03:05 All he has to do is learn the difference between a keystore and a key, and explain it to SimonVT in a pm, and he should lift the ban. At least that's what the ban message said. May 11 22:03:08 Wasn't banned; he left heh May 11 22:04:37 ahh May 11 22:05:05 anyone knows if they have fixed multilne toolbar title yet or if you still have to use something like https://github.com/opacapp/multiline-collapsingtoolbar May 11 22:05:57 TellYouHwat, why would it be android documentation, it's a thoroughly java concept May 11 22:06:47 pfn, I'm referring to the android documentation that explains the process of signing an apk. At the very least, it should link to documentation that explains what a keystore is. Otherwise, it leads people to believe that the keystore itself is what signs the apk. Which leads to confusion. May 11 22:06:53 kroot, interesting May 11 22:07:08 TellYouHwat, most people are not ready to understand that May 11 22:07:17 people have never understood crypto, ever May 11 22:07:45 That doesn't necessarily mean it shouldn't be made clear for those who are capable of understanding it. May 11 22:07:55 it is clear, if you understand java at all May 11 22:08:18 I develop with C#/Xamarin. I can read java and have made apps with java, but my java knowledge is limited. May 11 22:08:23 But that isn't Android's problem. May 11 22:08:54 kroot, oh, right, the android builder doesn't use jarsigner anymore May 11 22:09:03 kroot, that's actually a problem, because it doesn't adhere to RI May 11 22:09:15 I reported a problem a long time ago, dunno if it actually got fixed May 11 22:09:18 pfn: it never did use jarsigner May 11 22:09:26 kroot, it did when it was 'ant' :P May 11 22:10:15 https://code.google.com/p/android/issues/detail?id=58436 May 11 22:10:18 I need to verify this some day May 11 22:10:55 for the record pfn, I do understand where you're coming from when it comes to not making the keystore public for no good reason. That's security 101. I just disagree with your opinion that it is inherently insecure. With a secure password, I feel it is secure enough. May 11 22:11:05 but I haven't been able to be bothered to move back to using the builder packageApk signing May 11 22:11:19 TellYouHwat, depends on what you call a secure password May 11 22:11:34 32 characters, randomly generated, upper, lower, numbers, specials May 11 22:11:44 reasonable, I guess May 11 22:12:09 Though 128 characters wouldn't necessarily be a bad idea either :P May 11 22:13:33 But now that I know what I know, I would much rather use a single keystore file, and store it outside the repo, either in a central repo dedicated to storing the keystore, or some other means that works with VSTS May 11 22:13:40 Struggling to find a solution for that though. May 11 22:16:41 TellYouHwat: keytool -importkeystore May 11 22:17:11 kroot, can you clarify? May 11 22:18:02 TellYouHwat: that can copy the contents of one keystore into another either all the entries or a single entry May 11 22:18:59 Ahh, is that regarding transferring an alias to a different keystore, or setting up signing in continuous integration with VSTS/TFS? May 11 22:19:21 transferring May 11 22:20:21 Ahh, yeah I'm aware of that ability. I had seen it on a stackoverflow post. I actually linked to that post in the 4 questions on so that I provided an answer to that clarified things, because the answers provided failed to do so and lead to my confusion. May 11 22:20:21 I should get back into Android dev :/ May 11 22:28:14 no, you really shouldn't May 11 22:30:57 why not? May 11 22:32:35 Because JavaScript is obviously the future. May 11 22:33:36 Sometimes May 11 22:33:39 But not always May 11 22:33:44 hehe May 11 22:34:35 lol, hipsters May 11 22:37:13 Swift! May 11 22:37:15 I'm young enough to be hip May 11 22:37:21 How old are you s73v3r? May 11 22:37:31 too old May 11 22:37:59 I'm thinking perhaps a git submodule with restricted privileges that only grant access to the build server may be the solution for centralized keystore storage and access, with the added benefit of providing access limits without much additional work. May 11 22:44:10 Actually May 11 22:44:12 https://git-lfs.github.com/ May 11 22:44:17 at that point, why bother putting it in the repo? May 11 22:44:19 Seems pretty perfect, and compatible with VSTS :D May 11 22:44:47 s73v3r, because the build server needs a path to a file. And there's no way in vsts for me to upload files outside of a repo. May 11 22:45:03 but git-lfs won't work now that I think of it. May 11 22:45:24 so add a script, and have your build server execute that script as one of it’s build steps May 11 22:45:28 Basically, I want to store a single keystore for all my apps, and each project would use it's own alias from that keystore. May 11 22:45:35 s73v3r, I'm not familiar with these things lol May 11 22:45:49 I'm pretty new to continuous integration and collaboration tools in general. May 11 22:45:58 or, just put the keystore on the build server, and be done with it May 11 22:46:09 I would, however I can't do that. I'm using VSTS May 11 22:46:18 as your build server? May 11 22:46:19 At least, from what I can tell, I can't do that. May 11 22:46:20 Yes May 11 22:46:24 don’t May 11 22:46:26 It's basically hosted tfs May 11 22:46:27 why not? May 11 22:46:28 use Jenkins, or something same May 11 22:46:29 sane May 11 22:46:46 Okay, sure. Got a link for a free hosted jenkins server? May 11 22:46:48 well, for one, it doesn’t let you do stuff that most other build servers let you do May 11 22:47:53 So far, MS is the only one who's willing to offer me a free suite of collaboration tools. May 11 22:48:29 If someone else is willing to offer me something better, I'm all for it. But I've searched and not been able to find anything aside from setting up my own servers on the free AWS tier. But even that's limited to a year. May 11 22:48:46 you get what you pay for May 11 22:48:53 And I'm about 6 months through that year. Which means in 6 months I better be paying for it, or I will have to move all my stuff elsewhere. May 11 22:49:02 s73v3r, indeed. And I don't need a whole lot. May 11 22:49:31 does VSTS even support Android? May 11 22:49:49 or does it support “Android” in that it works for Cordova projects, like VS? May 11 22:49:50 With Xamarin, yes. Which is my chosen way to develop for Android. May 11 22:49:54 Xamarin is owned by MS now. May 11 22:50:08 And free, at that. May 11 22:50:24 meh May 11 22:50:29 for CI, don't use a release keystore May 11 22:50:30 that easy May 11 22:50:44 pfn, what do you mean? May 11 22:50:45 CI builds shouldn't be release builds May 11 22:50:52 use a random debug key May 11 22:51:09 yeah, that’s true May 11 22:51:47 Well, release is integrated into VSTS as well. I guess CI probably isn't the best word for what I'm trying to set up. May 11 22:52:24 I'm trying to set up the actual release process, where the project is ready for a release, and I manually create a build and release (which automatically publishes it to Google Play and all) May 11 22:52:38 do that on your dev machine May 11 22:52:40 But I wouldn't be surprised to find I'm going about things the wrong way. Like I said, I'm pretty new to CI and that. May 11 22:52:45 s73v3r, it's a PITA May 11 22:53:00 CI is great for releasing to beta testers. not so much for releasing to the actual store May 11 22:53:04 it is not a PITA May 11 22:53:09 you click “Build" May 11 22:53:18 s73v3r, you do realize Google Play has integrated beta testing, right? May 11 22:53:53 s73v3r, and then you click tools->android->release, click a bunch of buttons, select your keystore, enter passwords (which will probably be 128 characters randomly generated, and you don't want to store in plaintext), etc May 11 22:54:27 Yes, I know Play has integrated beta testing. May 11 22:54:39 and you don’t have to do any of that crap if you put it in your gradle files May 11 22:54:51 If you're using gradle. May 11 22:54:51 I'm not May 11 22:55:11 another reason not to use xamarin, I guess. I’m guessing even pfn’s SBT can do that May 11 22:55:29 I like C#. So not using Xamarin simply isn't an option. May 11 22:55:40 If you like Java, feel free to use it. But I cannot stand Java. May 11 22:55:48 nobody cares May 11 22:56:09 mature May 11 22:56:39 write a script for release, then, and put your keystore info in there May 11 22:57:05 I probably will. Actually you can use extensions, and extensions allow you to store files apparently. May 11 22:57:31 then store your keystores there May 11 22:57:49 I'm thinking that's the option I'm going to go for. May 11 22:58:02 Hi all, I'm having issues using CalendarView in any API version prior to 23. LegacyCalendarView seems to be causing OutOfMemory Errors. Any advice? May 11 23:00:11 neat, google translate copied the idea behind translate bubble May 11 23:00:54 hey g00sey May 11 23:04:23 Actually, it appears Azure blob storage is the answer. May 11 23:10:09 hey Napalm May 11 23:10:22 new version of support lib May 11 23:10:48 i then thought.. hmm wonder what g00s thinks.. and then im like.. WTF im not on IRC May 11 23:10:49 hehe May 11 23:10:50 orly May 11 23:10:57 :D May 11 23:10:58 So i have a list of analytics events, and multiple analytics providers to send them to. For any given event, I could send it to all of them, or a subset of them. I’m trying to avoid making my Activities now know about them. Any recommendations for how to make that decision? May 11 23:11:27 seems like s73v3r needs a switchboard May 11 23:11:31 I’m thinking an enum of each event list, and a big ol’ switch statement in the Facade class which would decide May 11 23:11:43 but that seems like it would get unwieldy, fast May 11 23:12:09 s73v3r couldn't you just toss everything to google tag manager, and let the BI guys eff around with that ? May 11 23:12:26 let GTM be the switchboard May 11 23:12:39 and they get to change that / update the rules whenever they want May 11 23:12:41 something in my code would still need to do the asking part May 11 23:13:22 and I think I’d still need the switch? May 11 23:13:41 hm, why ... just throw all events to GTM May 11 23:13:45 This is interesting May 11 23:13:54 hey Ologn May 11 23:13:56 I didn't have any spam filters set up May 11 23:14:00 hi g00s May 11 23:14:22 what if an event gets missed in GTM? May 11 23:14:22 Yet the spammers are sending me spam with spam headers, with the messages marked as not spam May 11 23:14:29 Napalm lots of bug fixes in new support lib May 11 23:14:40 X-Spam-Flag: NO May 11 23:14:50 X-Spam-Score: 2.109 May 11 23:14:53 yup.. time to see how the bug fixes effect things May 11 23:15:03 s73v3r thats on the server side, you mean, like no rule was set up to act on the event ? May 11 23:15:08 nothing happens May 11 23:16:06 GTM takes a bit more setup then vanilla GA though, i'd be interested reading more about it May 11 23:16:33 yeah, we looked into it a bit. We might do it later, but it doesn’t look like we want to do it now May 11 23:21:46 Apparently the #spamassassin people know about this and strip the false headers out, cool May 11 23:25:45 is this oracle / java thing supposed to be done this week ? May 11 23:26:19 oracle / google rather May 11 23:26:21 i highly doubt it May 11 23:26:50 seems much more limited scope than the original trial May 11 23:26:59 holy shit that started 6 years ago May 11 23:27:04 yup May 11 23:27:56 i wonder if this trial also decides whether OpenJDK is OK for them to use May 11 23:28:11 you just never know with oracle May 11 23:28:20 i don’t believe so. I think this is just with what they’ve done before May 11 23:28:58 so this might not be really over :/ May 11 23:29:27 well, no matter what the trial does, there’s going to be 2 to 5 years of appeals May 11 23:29:49 i can imagine oracle stipulating something like, you can use openjdk only on this jvm (not your own) May 11 23:30:00 they can't May 11 23:30:28 the GPL terms of the license wouldn’t let them do that May 11 23:31:45 what blows my mind is the jury is totally tech illiterate from what it seems May 11 23:31:56 the issue at stake is that Google’s “jvm” was not compatible with the other JVMs out there, which was one of the stipulations of the license. that if you make a JVM, it must be compatible May 11 23:32:05 i guess thats the whole point but ... huh May 11 23:32:06 that’s actually a good thing, from the perspective of a trial. May 11 23:32:32 anyone who does know tech probably already has their mind made up May 11 23:33:03 and it wouldn’t be a very fair trial if you had to go into it with a bunch of people who’ve already decided against you before you started May 11 23:34:11 Napalm maybe we can attend I/O next year through Android VR :D May 11 23:35:00 or, Android Dev Summit May 11 23:35:47 "Introduction to Swift" May 11 23:35:53 jk May 11 23:37:03 I could make a quick fake conference room where they host the key-note and then pull in the YouTube live feed in Unity and watch it on my Rift May 11 23:37:04 but meh May 11 23:37:17 too much work.. might aswell just watch it on YT May 11 23:37:24 g00s: ^ May 11 23:37:51 Napalm: Are you the same Napalm in the Unity channel that I talked about that screen melter thing? May 11 23:37:55 Napalm you need telepresence too ! May 11 23:38:00 LunarEclipse120: yes May 11 23:38:03 little Napalm bot rolling around May 11 23:40:12 oh dear May 11 23:40:28 lol May 11 23:48:09 i'm a little confused about multidex May 11 23:49:08 seems to work without this, but all the instructions seem to suggest I need "compile 'com.android.support:multidex:X.Y.Z'" in build.gradle May 11 23:49:25 you only need that for pre-21 May 11 23:49:30 21+ supports multidex natively May 11 23:49:48 Is anyone familiar with Dagger 2? I just walked through this tutorial (https://blog.gouline.net/dagger-2-even-sharper-less-square-b52101863542#.i84a2jwou) and it (mostly) makes sense to me. However, how do I perform injection when I’m not inside of an activity and thus don’t have access to getApplication ? May 11 23:49:53 same for MultiDex.install(Context)? May 11 23:50:25 what? May 11 23:50:27 and on the same note, if I don’t use the Application to dish out the components, how else could I do it? May 11 23:50:42 what part of "you only need that for pre-21" is confusing? May 11 23:51:03 Whats up with the rumor of Google announcing swift dev support for Android May 11 23:51:12 google announced nothing May 11 23:51:14 there is no rumor May 11 23:51:35 Android support was added to Swift, but that’s only in that you can use it with the NDK May 11 23:51:37 that’s it May 11 23:51:43 I see May 11 23:52:17 the rumor is that they sat down with Facebook and Uber and talked about making Swift a first class citizen for Android, but there really isn’t anything substantiating that May 11 23:53:09 I've used multi-dex May 11 23:53:20 Which lang apart from java do you guys think have the best shot to be the future of android dev? May 11 23:53:45 prajna probably anything with wasm target May 11 23:53:47 i’d hope for swift, but I don’t think it’s so. Maybe Kotlin? May 11 23:53:53 prajna, XScreenSaver should be released on Play in a few weeks and is mostly C May 11 23:54:35 unless they highly streamline it, I don’t think something that requires the NDK and all the hoops involved with that would be the future May 11 23:54:47 Yahoo's Android apps use C/C++ as well in some parts May 11 23:55:13 lol what https://code.google.com/p/android/issues/detail?id=206901 May 11 23:55:21 i thought i was going crazy there ... May 11 23:55:26 The thing is there is already a ton of open source C/C++ code out there May 11 23:55:50 there’s a ton of open source java code out there too May 11 23:55:51 We're porting half of Xlib over right now May 11 23:56:18 but the fact of the matter is, dealing with the NDK is a huge pain in the ass, and most devs are going to avoid it unless they absolutely have to use it May 11 23:57:28 I don't agree as it's complicated May 11 23:57:36 What about people who want a cross-platform app May 11 23:57:56 there are easier solutions out there May 11 23:57:57 Ologn: use something else May 11 23:58:10 Doing the base logic in C/C++ and then the machine specific stuff via FFI makes sense May 11 23:58:24 sometimes it does. May 11 23:58:32 but there’s still the cost of using the NDK May 11 23:58:34 Ologn: or do it all in [other thing] May 11 23:58:40 What are the solutions for an app that runs on OSX, iOS, Android, Unix, and perhaps Windows? May 11 23:58:46 don't May 11 23:58:55 Ologn electron :D May 11 23:59:03 oh ios / android , sorry May 11 23:59:06 nm May 11 23:59:10 I could see Android and iOS. but doing something that runs on mobile and desktop? That’s a recipe for a shitty app May 11 23:59:41 divide them up, and let the apps embrace the platform they’re on, instead of going for the least common denominator May 11 23:59:44 i think all these UIs are going to converge at some point in the form of AR May 12 00:00:03 we'll get away from the glowing rectangles sooner or later May 12 00:00:18 If you have unlimited excellent coders to reinvent the wheel sure...but if you have solid C/C++ libraries to expand, why bother? May 12 00:00:28 more later than sooner May 12 00:00:37 depends on if you have them or not May 12 00:01:18 My smartphone virtual keyboard says QWERTY by default, which is from the 1870s May 12 00:01:56 s73v3r, huh? how's ndk a pita? May 12 00:02:17 there’s no good tools for using it May 12 00:02:20 For example, XScreenSaver May 12 00:02:33 s73v3r, tools that do what? May 12 00:02:36 writing the JNI stuff is a burden May 12 00:02:36 It is like, 200 daydreams or live wallpapers or whatnot in C May 12 00:02:43 jni is nice May 12 00:02:45 all the stuff you have for Java May 12 00:02:54 Zharf lol you are trolling May 12 00:02:55 It would take a long time to port them each to Java...as well as the other logic code being used May 12 00:03:01 g00s, no :( May 12 00:03:07 I enjoy writing jni stuff May 12 00:03:15 it’s all boilerplate May 12 00:03:20 jna would be nicer May 12 00:03:24 sure, so? May 12 00:03:33 error prone boilerplate May 12 00:03:35 and what’s more, Android Studio still doesn’t like to deal with any of it May 12 00:04:16 seems like the tools team neglects it for sure May 12 00:04:41 Until using the NDK is to the point where I can hit File->New Project, and select an NDK project, and work with the native code in Studio, it’s likely not going to see much traction May 12 00:04:46 i remember when AS 1.0 came out, and all the NDKers using eclipse cdt were like WTF May 12 00:04:55 yup May 12 00:05:17 what were they wtfing about? May 12 00:05:22 having all of the Android libraries and stuff exposed to native code wouldn’t hurt, either May 12 00:05:24 I never used eclipse so... May 12 00:05:32 Studio 1.0 doesn’t support the NDK like eclipse did May 12 00:06:00 but... all you need is ndk-build and a few makefiles May 12 00:06:13 easypeasy May 12 00:06:15 no May 12 00:06:17 Zharf CDT had a graphical debugger May 12 00:06:28 nowhere near as easy as it is to build a java project May 12 00:06:28 pft, gdb May 12 00:06:30 not sure i guess CLion would have that May 12 00:07:01 I've always used gdb for all my C and C++ debugging purposes though May 12 00:07:14 but I guess it's just these newbs being helpless without their gui toys May 12 00:07:24 get off your high horse May 12 00:07:41 Zharf me too, for embedded stuff May 12 00:07:52 but fuck even in the 90s we had greenhills graphical debugger May 12 00:08:07 if you like arcane stuff, thats fine though May 12 00:08:16 I do! ;) May 12 00:08:24 there are lots of gui front ends to gdb, though May 12 00:08:30 Zharf do you have a logic analyzer and scope over there ? May 12 00:08:36 yeah... I've tried them but I never liked them May 12 00:08:46 I haven't used a gui frontend to gdb in forever though May 12 00:08:53 redhat had one ... May 12 00:08:56 it was super buggy May 12 00:09:11 it basically screen scraped gdb stdout May 12 00:09:39 there were several decent looking ones written in motif 20ish years ago May 12 00:09:46 https://www.gnu.org/software/ddd/ May 12 00:10:01 ddd was ok but I still prefer plain ol gdb May 12 00:10:19 i guess i would too if it was over 2400 baud modem May 12 00:12:29 Zharf you have to get together with shmooz and write some C++ killer app minSdk=1 May 12 00:12:43 heh May 12 00:12:49 oh shit when did ndk come around May 12 00:13:34 2.0 May 12 00:13:35 I wouldn't do that though, unless it's a game doing UI in ndk is a terrible idea May 12 00:14:31 "Added AppCompatDelegate.setCompatVectorFromResourcesEnabled() method to re-enable usage of vector drawables in DrawableContainer objects on devices running Android 4.4 (API level 19) and lower" May 12 00:14:59 oh? May 12 00:15:00 shouldn't they have called it AppCompatDelegate.setCompatAllowBlowFootOffEnabled() or something May 12 00:15:06 linky g00s? May 12 00:15:21 https://developer.android.com/tools/support-library/index.html#revisions May 12 00:17:13 If I delete a forked repo, it will only delete mine right May 12 00:17:14 lol May 12 00:17:16 And not the actual one May 12 00:17:17 true g00s May 12 00:17:27 Whether ndk is a good idea or not depends...whether it will be cross-platform or not...whether the C/C++ code exists already or not...etc. May 12 00:18:12 Many big apps use a C/C++ library...although I don't think appbrain tracks that... May 12 00:19:59 I downloaded the "update" for android studio: https://sites.google.com/a/android.com/tools/download/studio/builds/2-1 but how in the world do I run the update? May 12 00:21:05 just help -> check for updates May 12 00:21:07 and install from there May 12 00:21:11 Ologn, I know this is kinda inaccurate but May 12 00:21:12 jni$ find . -iname "*.c" | xargs wc -l | tail -1 938977 total May 12 00:21:24 ... missing a new line after -1, meh May 12 00:24:41 Finally got an app idea. There are alot of them; I am going to try to make an aesthetically pleasing one May 12 00:24:53 good luck May 12 00:25:29 It's a file explorer lol May 12 00:25:30 Thanks May 12 00:26:40 es file explorer is probably one of the very few apps that I haven't felt like rewriting yet May 12 00:26:53 Lots of people actually dislike it May 12 00:27:11 it's a bit bloated, but it has a lot of features I like May 12 00:27:34 JDK8 or 7? May 12 00:27:47 like sftp and samba May 12 00:27:53 And which API version should I use? May 12 00:28:16 15+, jdk8 is fine, just use language level 7 May 12 00:28:56 target latest API of course, but I wouldn't consider going below 15 on minsdk May 12 00:29:36 kitkat, lollipop and marhsmallow bring quite a lot of "interesting" challenges for file explorers May 12 00:30:15 Well I know about sdcard stuff, what else? May 12 00:31:01 external storage stuff, yah May 12 00:33:03 Just updating AS, Java, SDK May 12 00:33:07 All that stuff May 12 00:33:16 I already have up to date adb since I have CyanogenMod May 12 00:35:48 adb is part of the SDK May 12 00:35:52 I know May 12 00:35:58 I mean I kept all that stuff up to date May 12 00:36:02 Like all the time May 12 00:36:41 zzz time May 12 00:36:48 Hell, I’d start at 19 for minsdk, and see how that goes May 12 00:39:39 Well I have to get all this crap updated first May 12 01:05:13 this error is really confusing me May 12 01:05:54 No resource found that matches the given name "Widget.FloatingActionButton" May 12 01:06:20 correction: No resource found that matches the given name "Widget.Design.FloatingActionButton" May 12 01:08:15 I am copmpiling against appcompat 22.2.1 May 12 01:08:24 RustyShackleford: Missing/corrupted FAB icon drawable maybe? May 12 01:08:25 and using compileSdkVersion 22 May 12 01:08:58 like the sdk is corrupted? May 12 01:09:10 actually I did update earlier today May 12 01:09:44 RustyShackleford you know 23.4.0 is out now right ! May 12 01:10:08 appcompat needs to match compileSdkVersion doesn't it? May 12 01:10:17 yeah May 12 01:10:46 api-23 permissions is in our backlog May 12 01:10:58 then do targetSdk=22, compileSdk=23 May 12 01:11:04 anyway wtf is going on here? this should work May 12 01:11:35 oh nice, I didn't know you could do that May 12 01:11:41 the last few support libs have been all over the place quality wise, best you use the latest May 12 01:11:59 23.4.0 is a huge bugfix release, even though its .0 May 12 01:15:58 pfn, check for updates just brings me to the download page May 12 01:18:38 this is driving me nuts. The error is in build/intermediates/res/merged/relese/values/values.xml May 12 01:18:45 how does that make sense May 12 01:23:23 I often question my programming skills too. Half the time I wonder why the code is working and the other half scratching my head for why the code isn't. May 12 01:24:19 I downloaded the "update" for android studio: https://sites.google.com/a/android.com/tools/download/studio/builds/2-1 but how in the world do I run the update? May 12 01:26:40 It's hard to question your programming skills with Android, when the documentation is inconsistent and deprecated... May 12 01:27:23 ...where there are tons of ondocumented features (the old cryptic 64k dex error message, recyclerview acting weird if you can only scroll one direction etc.) May 12 01:29:25 wow, thats huge http://arstechnica.com/tech-policy/2016/05/suns-jonathan-schwartz-at-trial-java-was-free-android-had-no-licensing-problem/ May 12 01:30:27 raj: Why didn't you get it here? http://developer.android.com/sdk/index.html May 12 01:31:32 wait, Oracle worked on Harmony too ? May 12 01:31:43 are you ^%$& kidding me, and now this ? May 12 01:42:36 http://appleinsider.com/articles/16/05/11/android-remains-king-of-crashes-once-again-seeing-more-device-failures-than-apples-iphone May 12 01:42:46 "Blancco noted that of the Android devices that failed, the Samsung Galaxy S6, Samsung Galaxy S5, and Lenovo K3 Note had the highest failure rates." May 12 01:42:53 ha, we all knew it was samsung :D May 12 01:43:24 http://www.blancco.com/en/about-us/in-the-news/android-device-performance-lags-behind-ios-samsung-s6-samsung-galaxy-s5-and May 12 01:44:18 is timePickerMode = spinner some kind of bomb that blows up my ADT May 12 01:44:54 is there a better date/time picker that is open source? May 12 01:45:34 weaksauce there are a few Material Picker libraries May 12 01:54:57 got any links g00s May 12 01:55:06 the builtin is crashing my ide hard May 12 01:55:49 no personal recommendations, haven't used them. just know they are there May 12 02:01:01 LunarEclipse120, it's where AS's update link took me May 12 02:01:39 LunarEclipse120, also your link is to the full installation, not just the update May 12 02:01:42 raj: Really? May 12 02:01:49 yes May 12 02:09:18 whatup whatup May 12 02:09:38 Just cringing at some youtube vids May 12 02:09:51 anyone wanna give me some input on NDA's? are they actually worth a damn? May 12 02:12:21 if they weren't, no one would ever ask you to sign one May 12 02:13:44 orbyt_ too many NDAs (for startups, etc) are BS May 12 02:14:05 Well we have two opposing answers here May 12 02:14:15 orbyt_ well you havent said much May 12 02:14:27 is it for an interview? May 12 02:14:36 Its for someone i'm onboarding May 12 02:14:45 so im not the recipient May 12 02:15:00 Need some advice guys May 12 02:15:11 I have a Interactor class May 12 02:15:18 Which is the M in MVP May 12 02:15:22 ask your counsel May 12 02:15:26 And it has an uploadPhoto method May 12 02:15:35 Which uses retrofit May 12 02:15:45 and if you don't have counsel, then no, an NDA will be worthless May 12 02:15:48 I feel like the method should be its own seperate intentservice or something May 12 02:15:59 But I dont wanna use EventBus May 12 02:16:32 why would it be worthless without counsel May 12 02:17:18 I downloaded the "update" for android studio: https://sites.google.com/a/android.com/tools/download/studio/builds/2-1 but how in the world do I run the update? May 12 02:17:43 Looks like my question got caught in the middle of something, did anyone catch that? May 12 02:17:44 You have to uninstall your current version May 12 02:21:50 orbyt_: did you happen to see my question? May 12 02:23:27 No I totally missed your 7 line question May 12 02:23:38 lol, oops May 12 02:26:03 With an intentservice you cant relly pass it a callback May 12 02:26:08 Which stinks May 12 02:28:04 lol why is drose379 using weechat 0.4.2 May 12 02:48:18 Excuse me sires, Is it normal to have a bigass gap on the top and bottom of the screen? Whenever i scroll down the screen, it feels like it's popping outta a space rather than the bottom* of the screen. https://cdn.prashant.me/5faede360113d5afa4f22692c77b36c9.png **** ENDING LOGGING AT Thu May 12 02:59:58 2016