**** BEGIN LOGGING AT Tue Jul 19 02:59:58 2016 Jul 19 03:08:43 if i'm using minSdk=19, is there any reason to use PreferenceFragmentCompat ? i originally used it because it was based on RecyclerView and could be used with AppBar, etc Jul 19 03:39:17 I had been connecting a galaxy note 3 to android studio on my centos7 laptop, which worked fine. I'm now trying a galaxy note 4, and it's not recognizing it. What might be wrong? Jul 19 03:39:30 I've turned on developer options and usb debugging. Jul 19 03:39:56 Is it rooted? Jul 19 03:40:16 ax562: No. Didn't have to when I was working with the galaxy note 3. Jul 19 03:40:33 did you give it permission to communicate with your computer? Jul 19 03:40:45 try "adb devices" Jul 19 03:40:57 it should apear if the phone is connected Jul 19 03:41:42 from terminal Jul 19 03:43:03 ax562: Unsurprisingly, the list is empty. Jul 19 03:43:31 ax562: The phone is connected by usb cable to the laptop. Jul 19 03:43:32 you running kk on that phone? Jul 19 03:43:38 ax562: kk? Jul 19 03:43:43 kitkat Jul 19 03:43:58 I had a similar problem with an sg s III Jul 19 03:44:16 It would not connect from a linux OS Jul 19 03:44:18 ax562: 6.0.1. I think that's marshmallow. Jul 19 03:44:27 oh yeah, weird Jul 19 03:44:37 did you get the message on your screen though? Jul 19 03:44:44 phone screen? Jul 19 03:44:46 ax562: No, nothing. Jul 19 03:45:01 ax562: What message would you be referring to, anyway? Jul 19 03:45:16 it asks if you can communicate with pc: 12321jfkasd;2121 Jul 19 03:45:26 ax562: Nope. Jul 19 03:45:26 allow or deny are the options Jul 19 03:48:12 davidmichaelkarr your in for a battle with that one if its anything like the sIII i was working on... Jul 19 03:48:31 ax562: Sigh. I'll try some more resources tomorrow. Jul 19 03:48:33 in the end I gave up on the communication...not sure what it was. Jul 19 03:48:50 my advice is just move on bro Jul 19 03:49:09 the weird part is it worked in windows for me Jul 19 03:49:18 just not ubuntu Jul 19 03:52:15 "Later this year, Salesforce's Android app is nixing official support for all devices except for certain recent Samsung Galaxy and Google Nexus phones" , well thats one way to do it :D Jul 19 03:53:24 salesforce blows Jul 19 03:53:48 apparently 'official support' means 'device-specific bugfixes' Jul 19 04:11:03 Leeds yeah i don't know how they would accomplish that from Play ... afaik you can only blacklist devices, not whitelist them Jul 19 04:13:46 Is FragmentManager a singleton? Jul 19 04:16:31 g00s: I think in the end they're saying "we're only testing on these devices, we're only promising it'll work on these devices, we'll only promise to fix bugs on these devices, otherwise good luck with that..." Jul 19 04:25:14 are we supposed to use directly from XML ? Jul 19 04:25:35 (in preferences.xml). still not sure if SwitchPreference or ^^ is correct Jul 19 04:27:46 adq did you file this :P https://code.google.com/p/android/issues/detail?id=200422 Jul 19 04:28:20 indeed Jul 19 04:28:29 are you using 24.1.0 ? Jul 19 04:28:33 (support lib) Jul 19 04:28:47 idk, i'm in holiday atm, staying far away from android ;) Jul 19 04:28:58 adq oh sorry :D Jul 19 04:29:03 np man Jul 19 04:29:38 maybe it will all work when you come back :D Jul 19 04:29:49 ahah Jul 19 04:29:58 if I ever come back! Jul 19 05:21:31 when should i be paying attention to errors? Jul 19 05:22:35 it seems the hot-swap app startup is causing problems that would otherwise not exist Jul 19 07:35:30 Hello, does anyone have experience with background notifications using Firebase Cloud Messaging? Is there a way to enable vibration? Jul 19 07:55:42 hi all Jul 19 07:55:58 hithere Jul 19 07:57:14 i have an listview. the item i add over an array. when i view the items with Toast i can see all items. but in the listview only add the last item from the array. everyone can helped me? Jul 19 08:03:14 hhmm..? Jul 19 08:13:57 If I had to guess, I would say the issue is your code Jul 19 08:14:12 That's about all I can help given the information provided Jul 19 08:14:13 Good luck Jul 19 08:20:36 snooky: try pasting your adding code Jul 19 08:21:10 http://nopaste.linux-dev.org/?1119500 Jul 19 08:21:22 line 109 and line 117 - 119 Jul 19 08:22:00 For some reason my shouldOverrideUrlLoading is not firing in my Webview Jul 19 08:22:09 on line 109 toast views me all elements successively Jul 19 08:22:30 actually its firing only once when the app is started. Jul 19 08:22:46 shouldnt it check every url before opening? Jul 19 08:23:07 But in the listview only the last element is to me so often displayed as there is content. but only the last and then repeatedly. Jul 19 08:39:20 bloody libraries marking classes as final Jul 19 08:39:45 terrible for working around other people's bugs Jul 19 08:40:17 snooky: wtf?! why set a new adapter instead of adding items and calling notifyDatasetChanged Jul 19 08:40:17 ? Jul 19 08:49:55 any reason why shouldoverrideurlloading would fire only once when my app starts? Jul 19 08:50:00 or is that normal behaviour? Jul 19 09:07:12 ok so shouldoverrideurlloading is not fired if webview.loadurl() is called Jul 19 09:07:15 random Jul 19 09:14:23 When I'm debugging on a device, it seems like the previous, buggy and outdated app version is still running. How can I fix this? Jul 19 09:15:16 I'm sure that this is what's happening Jul 19 09:18:47 Uninstall it Jul 19 09:18:49 Nevermind. In this case, it wasn't this, but I'm pretty sure that in others it was what I was describing that happened. Jul 19 09:23:55 thepoosh: my first projekt. i'm new @ android Jul 19 09:24:17 thepoosh: can you helped me? Jul 19 09:24:41 paste the adapter code please Jul 19 09:24:59 but not here~ Jul 19 09:25:31 moment Jul 19 09:25:48 Ashiren: she(?) already pasted in a website Jul 19 09:26:05 thepoosh: http://nopaste.linux-dev.org/?1119502 Jul 19 09:27:38 thepoosh: the array what i want have to the listview is so => ARTIST_-_TITEL>LINK so you can see who i split it. Jul 19 09:27:58 but so i have it runs. toast views me the items right but dont in die listview Jul 19 09:29:07 snooky: try adding something like this https://gist.github.com/yishai-glide/7959a13e258c994b70e373acf2a785c6 Jul 19 09:30:48 actually, that code might throw Jul 19 09:31:26 ok moment Jul 19 09:32:14 refresh Jul 19 09:32:21 where i try it? Jul 19 09:32:32 adapter Jul 19 09:33:13 so in my adapter file which i have pasted? Jul 19 09:33:59 i dont understand it Jul 19 09:37:37 VerbalKint: Your name looks very familiar Jul 19 09:37:43 God damn Jul 19 09:37:45 they've left Jul 19 10:11:17 What's the best use for a broadcast receiver? Jul 19 10:11:49 Like I'm processing data in a service, would it be best to use a broadcast receiver to help update the fragment UI? Jul 19 10:24:09 markyosullivan: verbal kint should really stfu Jul 19 10:24:23 * thepoosh got that reference Jul 19 10:26:16 Hello Jul 19 10:27:49 thepoosh: I actually only know the name from another community :p Jul 19 10:27:57 oh shit Jul 19 10:28:24 http://www.imdb.com/character/ch0002072/bio Jul 19 10:31:06 it's from the Usual Suspects Jul 19 10:31:44 Have any of you worked with Xamarin? How is it vs native android studio? Jul 19 10:34:08 maybe try #xamarin Jul 19 10:36:45 thepoosh: never seen that film Jul 19 10:36:56 go watch it now Jul 19 10:37:08 I don't know why people expect us to say other things would be better than native, native is always better Jul 19 10:37:30 I've never seen anything which suggests otherwise Jul 19 10:37:42 thepoosh: I'm in work, they wont pay me to watch it :p Jul 19 10:37:46 markyosullivan: not always correct. sometimes when time and maintainability are factors Jul 19 10:38:06 I'll give you 2$ in a paypal transaction right now! Jul 19 10:38:20 thepoosh: I get paid more than $2 an hour :p Jul 19 10:38:24 thanks for the offer Jul 19 10:38:27 meh Jul 19 10:38:30 rich kids Jul 19 10:38:37 So when would you not use native? Jul 19 10:38:40 If it's a small project? Jul 19 10:39:39 Anyone got a recommendation on how to update a fragment's UI with new data from a service? Broadcast Receiver? Jul 19 10:41:34 Or maybe an interface Jul 19 10:42:39 markyosullivan: for cross platform stuff Jul 19 10:42:52 b2b apps Jul 19 10:42:56 GrecKo: Ah so depends on resources and time Jul 19 10:43:10 and knowledge I guess Jul 19 10:43:19 yes Jul 19 10:43:28 but i thought anything that wasn't native didn't perform as well Jul 19 10:43:36 I am writing cross platform apps at my job Jul 19 10:43:43 native for personnal project Jul 19 10:43:51 so I can be biased Jul 19 10:44:11 GrecKo: Is it frustrating writing cross platform or do you not mind it? Jul 19 10:44:34 I like it Jul 19 10:45:19 just the lack of native features can be bad sometimes Jul 19 10:45:43 but I can do specific code for android and ios when needed Jul 19 10:45:53 You using React? Jul 19 10:46:04 Qt Jul 19 10:46:28 our stack already used that Jul 19 10:46:48 and we do some computer vision so I'm not sure this could be done with React and js Jul 19 10:47:24 Never heard of QT Jul 19 10:47:42 it's a c++ cross platform framework Jul 19 10:47:57 orginally used only on desktop Jul 19 10:48:09 I think Qbittorrent is written in Qt? Jul 19 10:48:11 but we can do mobile with it now Jul 19 10:48:15 yes Jul 19 10:48:19 guys, I want to store reddit comments from json so I can show them in a listview. How's it better to store them? As a list of objects or in a database? I Jul 19 10:48:21 I've heard of xamarin and react being used for cross platform apps Jul 19 10:48:25 and so is KDE Jul 19 10:49:04 thepoosh: I'll ask on the xamarin channel :P Sorry just got back Jul 19 10:49:16 I'm cleaning up after hosting a house party last night Jul 19 10:50:09 markyosullivan: what I like in Qt is it's UI language https://en.wikipedia.org/wiki/QML Jul 19 10:51:09 and since I'm a c++ guy I can write my logic in c++ and expose that to the qml ui Jul 19 10:51:22 but I am aware it's not for everybody Jul 19 10:51:51 and not sure if I would use that for a general public app Jul 19 10:58:57 Can we override the microphone of android with some audio file input Jul 19 11:00:38 GrecKo: I've never used c++ before Jul 19 11:00:40 :p Jul 19 11:15:24 I'm trying to make a second app and generate a signed apk. I'm using the same key alias? Jul 19 11:15:26 hey guys. trying to compile a custom android kernel for my device. I used Elefone P8000 sources for a start (same SoC as mine), enabled support for all kinds of hardware + enabled loadable modules. However when trying to build it it get this: http://pastie.org/10911597 why the double '//' anyone might help? haven't build an android kernel yet but i am familiar with linux Jul 19 11:27:58 morning Jul 19 11:28:25 i have bitmap and i want to draw it with linear transparent gradient jn csnvas Jul 19 11:28:29 on canvas Jul 19 11:28:41 but dont know how ) Jul 19 11:29:20 so i ask you Jul 19 11:30:28 i tried paint.setShader(LinearGradient(...)); canvas.drawBitmap(bitmap, 0, 0, paint) Jul 19 11:34:10 GrecKo: how is qt on android ? Jul 19 11:34:21 works well ? Jul 19 12:04:52 gordon_: works well if you don't mind a not completely native UI Jul 19 12:05:18 though we are using a material design UI library that looks decent Jul 19 12:28:34 how can i install apps with 'android:sharedUserId="android.uid.system"' in manifest.xml? Jul 19 12:33:31 If I use OkHttp 3.3.1 with a self-signed certificate, do I need to set hostnameVerifier#verify to return true in all cases? Using the default hostnameVerifier, i.e. not setting one does not work. Jul 19 12:50:02 barq, that's like drilling a huge hole in your wall when you paid for expensive anti-theft door :P Jul 19 12:53:18 GrecKo: last time I used it that was the issue Jul 19 12:53:26 not native looks and activity transitions Jul 19 12:54:44 gordon_: our first app looks ok I think : https://play.google.com/store/apps/details?id=com.logicmax.kinemax Jul 19 12:55:08 minus the 2 last screens wich need modifications Jul 19 12:55:24 what do you mean about activity transistion ? Jul 19 12:55:41 thanks I will check it Jul 19 12:56:16 wait a sec Jul 19 12:57:06 GrecKo: https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B14F_FSUCc01emlGOWRnRkpMOVk/GoodTransition_QuickDo-v4.webm Jul 19 12:57:49 I have done some stuff like that in proof of concepts Jul 19 12:57:59 but it's not trivial Jul 19 13:01:47 the fact that it's shared between 2 views is not Jul 19 13:01:56 animations are dead simple to do Jul 19 13:21:19 GrecKo: yes, I've seen some qml stuff, looks easy Jul 19 13:22:21 I love it, that's why I couldn't do XML for my native app Jul 19 13:22:29 so I'm trying kotlin + anko Jul 19 13:30:13 well, I'm not fan of kotlin but tried macroid with scala ;) Jul 19 13:46:35 https://plus.google.com/+AndroidDevelopers/posts/D9K3axQknAB Jul 19 13:46:45 oooo AMA with Android engineering team Jul 19 13:47:14 time to get our thinking caps on Jul 19 13:47:23 where's g00s when you need him? Jul 19 13:47:37 he mentioned it earlier, so he's aware of it Jul 19 13:47:48 hey Leeds Jul 19 13:47:52 hey Jul 19 13:47:53 got any questions lined up? Jul 19 13:48:25 nah, I'm not doing that much Android stuff at the moment... waiting for an iOS->Android porting project to go live, was meant to be this week, seems to be delayed a few weeks Jul 19 13:49:59 also got a small project going on which is a bit... grey hat Jul 19 13:54:33 hello , quick question , can i sign a recompiled app (using apktool) with the same signature it has on the first APK ? Jul 19 14:01:16 HexJaguar: Decompiling randoms apks is off topic for this channel Jul 19 14:01:49 Leeds: iOS -> Android porting? you mean run iOS on androidphones or flawless porting of data/contacts? because the first one will not happen and the second one is allready there i guess Jul 19 14:02:11 dreadkopp: I mean porting/rewriting an app Jul 19 14:02:40 Leeds: okay :) but why? Jul 19 14:03:31 formoney Jul 19 14:03:37 erm... because someone has been paid to write an iOS app for a company, and the company also wants to pay me to write an Android version? Jul 19 14:04:08 and you are lazy ? ;) Jul 19 14:04:10 not sure why that's complicated Jul 19 14:04:13 HexJaguar: quick answer, no. if that would be easily possible, signing with keys would be pointless Jul 19 14:04:17 I am lazy? Jul 19 14:04:22 what's that have to do with lazy? Jul 19 14:04:28 well, yes, I am lazy, but I don't know what that has to do with anything Jul 19 14:04:39 working for money is lazy? Jul 19 14:05:25 dreadkopp: why am I lazy? Jul 19 14:05:36 waiting for some kind of compability layer instead of simply writing the damn app for android sound lazy :) no offense Jul 19 14:05:51 when did I ever say anything about a compatibility layer? Jul 19 14:06:13 what on earth are you on about? Jul 19 14:06:55 this is weird Jul 19 14:07:00 heh Jul 19 14:08:23 dreadkopp: ? Jul 19 14:08:57 15:48 ... sounds like you are looking for a compatibility layer :) Jul 19 14:09:20 6.5 hours ago I was looking for a compatibility layer? Jul 19 14:09:21 Maybe he's just wanting to ensure both apps have a similar look and feel? Jul 19 14:09:23 what???? Jul 19 14:09:38 I know the app I'm doing is similar looking to the iphone ap Jul 19 14:09:40 *app Jul 19 14:09:49 the client doesn't want to start working on the Android app until the iOS app is ready for release - doesn't want to handle simultaneous development Jul 19 14:09:51 but using Android components Jul 19 14:10:15 Probably going to be torn to shreds for it by you guys when I let you test it :d Jul 19 14:10:16 * :D Jul 19 14:10:25 Or look at the screenshots Jul 19 14:10:50 I'm not sure yet how native they want this to be Jul 19 14:11:12 I've got a copy of a previous iOS release, it's fairly generic at the moment Jul 19 14:12:10 dreadkopp: you may want to a) check your reading skills and b) learn about things called 'timezones' :D Jul 19 14:12:15 My app is grey / dark Jul 19 14:12:22 Leeds: XD Jul 19 14:12:29 feels weird going with a dark app when I'm used to working with bright material colors Jul 19 14:12:39 still used the greys in the material guideline Jul 19 14:25:41 Anyone know why my CountDownTimer won't get cancelled sometimes? Jul 19 14:29:04 because you don't cancel it Jul 19 14:31:18 pfn: ? Jul 19 14:32:20 pfn: I have a global class that extends CountDownTimer and I can cancel it, but sometimes it doesn't Jul 19 14:33:40 Those kinds of issues tends to be user error Jul 19 14:34:19 Nevermind. Think that I nailed the bug. Jul 19 14:34:30 Is API 24 supposed to break layouts? Getting ¨Binary XML file line #-1: Error inflating class ¨ in the Android Studio preview. API 23 and older work great. API 24 revision 1 worked fine as well. Anyone familiair with this? Thanks! Jul 19 14:34:57 And somehow I can´t find API 24 release notes Jul 19 14:35:06 SimonVT, tend to be = are Jul 19 14:35:09 Yes, they set out to intentionally break layouts Jul 19 14:35:38 pfn: "tends to be" is nicer than "are" :p Jul 19 14:35:41 Ywa, you broke it Jul 19 14:35:45 Ok it was an odd question. But is anyone familiair with broken layout rendering on API 24 rev 2? Jul 19 14:36:07 Ywa: it's likely not from api 24 rev 2 Jul 19 14:36:37 Ywa: Is that an error you're getting in layout previews? Jul 19 14:36:46 If it is lower the API to 23 instead of 24 Jul 19 14:36:56 (within Android Studio) Jul 19 14:37:13 seen something similar to that but might be completely different and if it is, apologies! Jul 19 14:38:01 Gonna test it on 7.0 emu and see if everything looks fine there. Will report back Jul 19 14:52:08 Well. Can test on 7.0 emu yet, because there is no Google APIs emu image yet. Guess I´ll look into this at a later point. Thanks for helping folks Jul 19 15:05:42 hi all, the documentation for "android:launchMode" has some warnings against using singleTask/singleInstance modes. But do you think they make sense for hybrid apps (e.g. cordova) that are essentially single activities? Jul 19 15:06:35 for example, i don't want to inadvertently start multiple activities with full screen webviews Jul 19 15:09:04 there's nothing wrong with singleTask or singleInstance if that's how you want your app to work Jul 19 15:19:46 pfn, i think singleTask is what i want based on the documentation, but i was curious if anyone has written a breakdown with some real world cases to know i'm on the right track. this one was pretty helpful: https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en Jul 19 15:22:10 no idea what it is you want Jul 19 15:23:55 * pfn ponders canceling his interview Jul 19 16:09:59 Is anyone using the Android subsystem on ChromeOS in developer mode? Jul 19 16:10:24 adb seems to crash on me all the time & I end up rebooting. kind of a pain. Hoping for a better solution :-) Jul 19 16:48:14 Hey :) I am a fresh Android "Developer". I wanted to create a app with a navigation drawer. Now the text of the selected item in the navigation drawer dissappears and the background gets purple. I already tried to compare all .xml files to the Navigation-Drawer-Template without success Jul 19 17:16:56 When the heck are sources for 24 going to come out? - end goal: click into Android code in AS. Jul 19 17:17:33 When N is released Jul 19 17:18:06 Source usually drops on release date +/- a few weeks Jul 19 17:19:05 Hello. Does anyone have a suggestion on how to make something like the S Health chart (http://i.stack.imgur.com/gxRpp.png). I was thinking a horizontal recycler view but I am unsure what the best way to make the bars. Jul 19 17:19:10 Any way to target 24, but be able to click into 23 in the interim? Jul 19 17:20:27 You used to be able to manually attach sources at least, but I haven't looked into it Jul 19 17:26:10 how i became an return from an asynctask? Jul 19 17:27:52 what? Jul 19 17:28:36 snooky you'll have to ask your mother :) Jul 19 17:29:48 g00s: fuck your daddy Jul 19 17:48:45 g00s: apparently the AMA has started? Jul 19 17:49:06 oh, haven't checked Jul 19 17:51:40 s73v3r tough questions, tough crowd ! Jul 19 17:52:00 i was bitching about Jake's question years ago, i think we'll be bitching about it years from now :) Jul 19 17:52:36 is nio.2 stuff included yet ? maybe it was already ... Jul 19 17:54:55 s73v3r ok, i asked one simple question about GMS on the emulators :) Jul 19 17:54:56 well, the crowd should be tough Jul 19 17:55:10 oh shit, i have another question. i'll make that separate though Jul 19 17:57:50 man people are asking too philosophical of questions; best AMAs can be answered in a few sentences - keep the questions short ! Jul 19 17:58:26 s73v3r are you planning on asking anything ? Jul 19 17:58:47 maybe. haven’t decided yet. haven’t read it yet, either Jul 19 17:59:34 don't wait too long, there is a big sorting out of stuff by up/downvoting. wait too long and the Q gets lost in the fray Jul 19 18:00:21 true Jul 19 18:00:33 but I also want to make sure my question isn’t already asked Jul 19 18:01:52 also, as harsh as I want to be, I kinda don’t want to be mean Jul 19 18:02:25 yeah, i couldn't think of a way to say 'you guys put minimum effort into documentation, will we see improvements soon :)' Jul 19 18:07:30 I asked if there was any efforts going into reducing lolcycles Jul 19 18:07:36 ok i asked 3 questions, that should be enough. i had a few pent up :D Jul 19 18:07:44 lol Jul 19 18:08:20 Jake Wharton asked about Java 8 stuff Jul 19 18:08:25 yeah Jul 19 18:10:00 well i've already asked 3, thats probably too much. i also want to ask if they are going to consider splitting the OS into a core component with easily (by oem) replaceable device drivers to provide a technical solution to the update problem Jul 19 18:10:23 somebody else will probably ask something about updating though, since thats a pain in everyone's ass Jul 19 18:11:38 already got my fill of AMA at IO Jul 19 18:11:40 * pfn shrugs Jul 19 18:12:04 I do have to say I am a bit tired of people complaining that Google doesn’t spoonfeed all the components and animations, especially when many of them are quite simple Jul 19 18:12:59 I don’t think they broadcast those sessions Jul 19 18:13:19 I know they kept turning the cameras off when people were asking questions at the end of regular sessions Jul 19 18:13:35 the fireside i think was at least live Jul 19 18:19:20 sadly I think the more interesting questions regarding what’s coming down the line are going to be ones that can’t be answered yet Jul 19 18:28:33 My lolcycle question has been voted down :( Jul 19 18:28:52 Maybe because I mentioned that dealing with the lifecycles is easier on other platforms Jul 19 18:33:25 Maybe it's just not a very good question Jul 19 18:33:26 folks, any idea why i could find a post of any materials on BlackPhone repair and dissambly Jul 19 18:33:47 JanusJanus not here :) Jul 19 18:33:49 JanusJanus: This channel is for app dev, try #android Jul 19 18:33:56 kind of rare to find any post on blackphone ? Jul 19 18:34:21 all right Jul 19 18:34:25 unfortunately it’s just not that popular of a device Jul 19 18:34:55 JanusJanus also the company is having some struggles Jul 19 18:34:58 yeah i see that from the lack of posts about it Jul 19 18:35:34 well, i got one from the first batch, and i am kind of missing around with it now ... Jul 19 18:36:12 i expected the company to be struggling, not that much of demand yet for such phones, or the price are just not suitable ... Jul 19 18:36:29 hi Jul 19 18:36:40 http://nopaste.linux-dev.org/?1119507 line 22 Jul 19 18:36:47 don’t do that. it’s rude Jul 19 18:36:56 Invalid method declaration; return type required Jul 19 18:37:03 ask your question and then post your link Jul 19 18:37:08 where is there problem? Jul 19 18:37:39 your problem is that you just have .execute(), and you can’t do that Jul 19 18:37:50 22 and 23 swap? Jul 19 18:37:58 the . operator will call a method on an instance of an object. you don’t have that Jul 19 18:38:12 snooky problem is you haven't learned java Jul 19 18:38:43 i have it from here Jul 19 18:38:44 http://rdcworld-android.blogspot.de/ Jul 19 18:39:07 don’t blindly copy tutorials Jul 19 18:39:35 also, read that part again. you’re missing something Jul 19 18:39:57 guys guys Jul 19 18:40:02 g00s s73v3r Jul 19 18:40:06 question for you Jul 19 18:41:07 http://hastebin.com/yumowogura.txt Jul 19 18:41:14 start of my question for the AMA Jul 19 18:41:25 i dont have time to learn java for a litte app. i can c and php and python and perl Jul 19 18:41:31 but java is shit Jul 19 18:41:36 snooky: then go away Jul 19 18:41:56 s73v3r: what do you think? can you think of some of those functions I mention.. the type of thing the API should just have Jul 19 18:41:58 fu Jul 19 18:42:00 if you’re not willing to put in effort to learn, then we’re not going to help Jul 19 18:42:07 g00s: same for you Jul 19 18:42:18 SimonVT: hola, read up please :D Jul 19 18:42:36 pfn: you about? may i put it to you also Jul 19 18:42:38 Napalm haven't really done anything fancy with text rendering :( Jul 19 18:42:42 Napalm: you could just look at the equivalent iOS libraries to see what’s missing :p Jul 19 18:42:46 Napalm, ? Jul 19 18:42:47 spelling though "Do do anything" ... Jul 19 18:42:48 i was just using that as an example Jul 19 18:42:55 pfn: http://hastebin.com/yumowogura.txt Jul 19 18:43:04 question for AMA Jul 19 18:43:37 Napalm: iOS has some advanced text formatting built in. you might ask if they plan on adding something like that Jul 19 18:43:38 I see Jul 19 18:43:42 g00s: that was just a gripe, but can you think of any of those functions you just end up putting in every project because the basic classes of the system just dont provide the functionality Jul 19 18:44:53 hm, probably everybody that uses BLE rewrites some layer to be more human friendly ... Jul 19 18:45:22 s73v3r: Please don't tell other users to go away Jul 19 18:45:27 snooky: Please watch your language Jul 19 18:45:41 german Jul 19 18:45:55 haha Jul 19 18:46:53 fu too Jul 19 18:47:38 perma ban or temp ban? Jul 19 18:48:23 ok posting Jul 19 18:48:24 Permanent Jul 19 18:48:57 Napalm: Wait, don’t! Jul 19 18:49:04 i can edit Jul 19 18:49:23 no, I didn’t want you to so it wouldn’t be more competition for my questions :p Jul 19 18:50:20 I don't follow the "inclusion of common functions that most developers end up including in in every project because the APIs don't exist in the platform" part Jul 19 18:50:34 Wouldn't that just be adding APIs, as they usually do Jul 19 18:50:41 Yeah, it is pretty clumsy wording Jul 19 18:50:48 https://www.reddit.com/r/androiddev/comments/4tm8i6/were_on_the_android_engineering_team_and_built/d5ihzof Jul 19 18:50:53 word it better and i'll change Jul 19 18:53:37 updated Jul 19 18:53:52 is it possible to get a build with progaurd enabled to actully finish? Jul 19 18:54:00 upvote :D Jul 19 18:54:21 or even do anything really, the computer just idles while AS spins forever Jul 19 18:54:43 MooGoo: Invest in another machine or a cloud computer instance and use Jenkins Jul 19 18:56:10 wtf is jenkins Jul 19 18:56:22 automated build server Jul 19 18:56:24 i just wanna minify and obsfucate my code Jul 19 18:56:43 right. and I’m saying to get a build server to do that for you Jul 19 18:56:56 why not do it locally? Jul 19 18:57:17 so you’re not taking up your local machine Jul 19 18:57:46 What kind of answer do you expect to your question, MooGoo ? Jul 19 18:57:49 well, it's not like it's being taxed right now, AS is using ~0.1% CPU Jul 19 18:57:56 Obviously it's possible, lots of people use proguard Jul 19 18:58:24 progaurd is the offical google solution for what I want yet it never completes and does not seem to be doing much while building Jul 19 18:58:52 If you have a specific issue, maybe provide some information Jul 19 18:59:09 Your build.gradle, your proguard config, maybe the output of the build command Jul 19 18:59:24 That way people who use proguard have some context, and can maybe point you in the right direction Jul 19 19:00:58 here Jul 19 19:01:00 https://gist.github.com/anonymous/eb00de7629d280714271a0ee8bb06d5f Jul 19 19:01:05 build output and progaurd file Jul 19 19:01:21 it stalls at :app:transformClassesAndResourcesWithProguardForProdRelease Jul 19 19:01:59 answer: more ram Jul 19 19:02:29 I have 16gb with only 6.5 in use Jul 19 19:08:37 oo, thought of something else I think we should have Jul 19 19:08:49 dynamic library packages in Play Jul 19 19:15:18 for async task does void mean any class can be used? Jul 19 19:15:26 no Jul 19 19:15:35 spent last week trying fix my twitter feed fragment with no luck Jul 19 19:15:45 I'm on the verge just giving up Jul 19 19:16:07 what does it do then? Jul 19 19:16:09 there are no void pointers in java Jul 19 19:16:19 it means your not passing anything to it Jul 19 19:16:55 I see but can I still return a different say a arraylist without defining it in async? Jul 19 19:17:11 use Object? Jul 19 19:17:17 then cast it to what you want Jul 19 19:17:48 if you really need that Jul 19 19:18:46 so with object i can return whatever string, arraylist etc? Jul 19 19:19:25 yes Jul 19 19:19:33 you just have to then cast it to its proper type Jul 19 19:19:39 if you want to use type methods and such Jul 19 19:20:18 im getting an error that its incompatible with the default asynctask class Jul 19 19:20:52 I've done protected Object onPostExecute(Object result) Jul 19 19:21:58 new AsyncTask Jul 19 19:22:47 er Jul 19 19:22:49 also Jul 19 19:22:53 onPostExecute is always void Jul 19 19:23:10 you need to make doInBackground return Object I guess Jul 19 19:24:33 so I cant change post execute at all? mhmm Jul 19 19:25:05 Attention please: sd card api sucks Jul 19 19:25:13 thanks you -THe Management Jul 19 19:25:22 what would be the point of returning from onPostExecute Jul 19 19:25:54 I'm trying to return the arraylist so I can use setadapter on createview Jul 19 19:26:07 that's not how async works Jul 19 19:26:09 because my listview is not being populated at all Jul 19 19:26:17 since im using a fragment Jul 19 19:26:31 I been spending the last week hrs on end trying to fix it Jul 19 19:26:41 you need to do your setadapter IN onPostExecute Jul 19 19:26:48 and return your list from doInBackground Jul 19 19:31:13 I'll show you my code Jul 19 19:33:33 http://pastebin.com/bfkSKn0J Jul 19 19:33:59 this is what I done but the listview is not populating the status contained in statusListTextOnly Jul 19 19:34:20 String Result in postexecute isnt really used at all. Just statusListTextOnly Jul 19 19:38:13 goddamnit, wtf is wrong with windows, why does it keep quarantining platform-tools Jul 19 19:38:17 well you're badly misusing AsyncTask, but aside from that I can't tell from the code why it would not show anything Jul 19 19:39:50 but Jul 19 19:40:01 you might want to try doing it without the async task Jul 19 19:41:18 how im i using async task wrong? Jul 19 19:41:41 lol so far on the reddit ama, it is 40 minutes in and they have answered 6 questions from today. One of their most lengthy answers is on a -12 downvoted question. Jul 19 19:42:02 Wait that, the Android Nougat AMA is on? Oo Jul 19 19:42:13 Can someone send me a link? Jul 19 19:42:13 Hi Jul 19 19:42:17 Welcome to Android Jul 19 19:42:39 beatbrot, reddit.com/r/android-dev Jul 19 19:43:21 e passing a bunch of paraemeters that are unused, and relying on inner class access to get the variables you want Jul 19 19:43:37 s/^e/you're Jul 19 19:43:39 wow Jul 19 19:45:34 oh Jul 19 19:47:01 well the do background stuff is where I run the auth to access the timeline, I'm using twitter4j library for it and thought do the auth and adding tweets to array in the background before attempting to return listview on postexecute Jul 19 19:48:03 are you sure it works at all? Jul 19 19:48:38 yes, Jul 19 19:48:55 everything in dobackground is fine, tweets are visible in logcat Jul 19 19:49:02 its just not populating listview. Jul 19 19:49:27 even the array is filled on posteexcute when I debug Jul 19 19:51:53 is it because of the activity thats trying to load the fragment by tab? Jul 19 19:51:53 http://pastebin.com/nGJu4nZR Jul 19 19:52:05 xml http://pastebin.com/KVpUegiy Jul 19 19:54:55 dunno, not sure it matters, but I usualy do my list/recyclerview init in onViewCreated() Jul 19 19:56:01 DarkChaoz: did you determine that the viewpager was actually displaying your fragment? Jul 19 20:06:14 is it possible to change Google Maps colours on Android? SO shows results for the JS sdk, but all the (outdated) Android results say it's not possible Jul 19 20:06:31 What I mean is: I'd like the road to be green and the water to be red kind of thing Jul 19 20:08:35 canvas magic Jul 19 20:09:30 MooGoo: like, override draw() ? Jul 19 20:09:46 just a guess, it's a hack tho if it works at all Jul 19 20:10:21 but that would be my first thought if I wanted to say, invert the map Jul 19 20:12:19 http://wiresareobsolete.com/2016/07/constraintlayout-part-1/ Jul 19 20:12:55 does constraintlayout like....work, these days? last time I tried it and it's "designer" it nearly bluescreened my pc Jul 19 20:13:52 MooGoo lol, well preview 6 is out today Jul 19 20:14:07 i haven't tried it yet, so i can't say Jul 19 20:18:04 any decent answers on the AMA, or is it more of what they’ve said the past few times? Jul 19 20:25:52 Next up on Fear Factor: Write code that uses context.getExternalFilesDirs(String); Stay tuned. Jul 19 20:26:17 NOPE.jpg Jul 19 20:44:31 they responded to my question about Doze, and what to do if you don’t want to use GCM Jul 19 20:47:32 ...by saying too bad, use GCM... yeah I saw that Jul 19 20:49:16 I like how they answered the question about moving from Java by saying, “Java has advantages and the versions 8, 9, and 10 have interesting stuff for developers”, yet ignoring that they have been terrible at keeping up Jul 19 21:01:19 s73v3r, you got your lolcycle answer Jul 19 21:01:39 i’ll have to look for that. is it as good as i expect it to be? Jul 19 21:01:57 nope Jul 19 21:02:06 "Dianne: The basic lifecycle -- create, start, resume, pause, (save state,), stop, destroy -- is not going to change. All of those states are significant, and in fact even more so as we move towards richer interaction models like multi-window (where the difference between started and resumed maps to the state of your window in that world)." Jul 19 21:02:21 where’s the ama? Jul 19 21:02:33 reddit.com/r/androiddev Jul 19 21:02:39 ending just about now though Jul 19 21:02:41 where exactly? Can’t see it there Jul 19 21:02:51 oh they’re at the top Jul 19 21:02:58 tom;) Jul 19 21:22:42 Am i the only one who's extremely disappointed by that AMA? Oo Jul 19 21:23:19 im impressed they did not just say "lol fuck u" for every question Jul 19 21:23:24 pretty much all of their Q&A sessions go like that Jul 19 21:23:42 any interesting question that can’t really answer, because the details aren’t public yet Jul 19 21:28:03 this might be more of a java question, but here goes: I have a string value I’m parsing. If it’s one of about a dozen different values, I return one value, if it’s something else, I return another value, and if it’s yet another thing, I return a third value. Jul 19 21:28:18 Is there a way to map these things without writing Case over and over again? Jul 19 21:29:51 does anyone know how to kick off junit tests for all builds Jul 19 21:31:21 switch/case is a go Jul 19 21:32:01 you could also try with HashMap Jul 19 21:32:32 s73v3r: can you give a more concrete example? Jul 19 21:32:33 I’m currently doing switch/case, but I still have to write case “XX”: for every thing Jul 19 21:33:36 i’m parsing a formatted string. For one section, it’s two characters. I have a list of about 2 dozen 2 letter codes, and if the one my string has is one of these, I return 1. If it’s a different code, then I return 2. If it’s yet another code, I return 3 Jul 19 21:33:38 it partly depends on what the string looks like i guess Jul 19 21:34:00 it’s just two characters Jul 19 21:34:26 you can count the number of characters Jul 19 21:34:28 or is it always 2 Jul 19 21:34:32 always 2 Jul 19 21:34:40 oh I see Jul 19 21:34:45 are they similar in any way? Jul 19 21:34:48 the 2 letter codes Jul 19 21:34:56 or they are all unique Jul 19 21:34:59 it’s a formatted string. Character 1 means something, character 2-4 means something, characters 5-6 mean something, etc Jul 19 21:35:05 they’re all fairly random Jul 19 21:35:09 oh Jul 19 21:35:21 I mean I guess the switch case isn't horrible Jul 19 21:35:29 so you're comparing a substring? Jul 19 21:35:38 of this longer string Jul 19 21:35:52 yeah, but my swift collegues get to write case “XX”, “YS”, “CB”: Jul 19 21:36:11 whereas I have to write case “XX”: case “YS”: case “CB”: Jul 19 21:36:24 yeah, it’s just the substring for this part. Jul 19 21:36:45 i mean it's not horrible even though it does take up some space Jul 19 21:37:06 hmm Jul 19 21:37:07 yeah, but i wanted a better way to do it Jul 19 21:37:09 can you make that the default case? Jul 19 21:37:18 (do you have a default case?) Jul 19 21:37:45 if there isn't already one you could use that as the default, if that's logically sound with whatever you need it to do Jul 19 21:38:08 of course that would just make it handle ANYTHING that isn't the other few options Jul 19 21:39:49 there is no default case, really. I guess the default case would be null Jul 19 21:40:40 ah Jul 19 21:40:41 hmm Jul 19 21:40:52 I don't know, I'd be interested to know if there's a better way as well Jul 19 21:42:01 switch isn’t a bad way, I just wish I didn’t have to write case out every time, even though all of these values share the same case Jul 19 21:42:19 i mean Jul 19 21:42:27 you could make an array Jul 19 21:42:29 and loop it Jul 19 21:42:31 and return 1 Jul 19 21:42:38 the array would have all of those elements in it Jul 19 21:42:57 it's extra memory and cpu for the benefit of prettier code Jul 19 21:43:16 that wouldn’t really do much, though Jul 19 21:43:29 String[] RETURN_1 = { "XY", "XS", "PP", "QQ" }; Jul 19 21:43:48 for (String code : RETURN_1) if (myString.equals(code) return 1; Jul 19 21:44:22 i left out a ) but you get th eidea Jul 19 21:47:07 "The connection pool for database [some path] has been unable to grant a connection to thread 20731 (Retrofit-Idle) with flags 0x2 for 420.015 seconds. Connections: 0 active, 1 idle, 3 available." Jul 19 21:47:08 that would solve half of the problem Jul 19 21:47:09 what's iot mean? Jul 19 21:47:10 i guess Jul 19 21:47:49 sounds like maybe it couldn't start a new thread? but i'm not sure Jul 19 21:48:00 0 active connections, 1 idle, and it can't grant any connections? Jul 19 21:48:03 so pain Jul 19 22:12:21 truckcrash s73v3r jaana lol, windows 3.1 didn't need all of those lolcycles and it had overlapping windows :P Jul 19 22:15:35 i was pleasantly surprised that all my questions were answered :D Jul 19 22:41:50 I'm trying to use Vulkan with Android Studio, however even the sample project doesn't compile Jul 19 22:42:17 Can you give me any resources on how to set up a new Vulkan project from scratch? Jul 19 22:53:23 pyBlob: "doesn't compile" Jul 19 22:53:27 Can you be more specific? Jul 19 22:53:36 "Gradle DSL method not found: 'android()'" Jul 19 22:53:53 looks like your gradle files are messed up Jul 19 22:54:09 Or you need to switch from the experimental plugin to the stable one, or vice versa Jul 19 22:54:20 Or you have the wrong version of the experimental plugin, maybe Jul 20 00:46:19 Leeds Ologn https://adtmag.com/articles/2016/07/19/python-skills-survey.aspx Jul 20 00:46:46 I have a general computer question, if anyone is interested in answering please message me Jul 20 00:53:50 drose379: No need, here is the answer to your question: Have you tried turning it off and then on again? Jul 20 00:54:16 Haha, CedricBeust its not actually an issue, I'm just wondering how something works Jul 20 00:54:32 Been trying to wrap my head around it all day, ever had that happen to you? Gives me a headache Jul 20 00:56:14 But its not Android related, so I cant directly ask here Jul 20 01:00:40 sounds like drose379 is trying to figure out how linux handles fonts :) Jul 20 01:00:51 or perhaps audio ... Jul 20 01:00:54 Almoast g00s Jul 20 01:00:58 Its actually cursor input Jul 20 01:01:21 I just realized I have no idea how it works today, and have been dyin to figure it out ever since Jul 20 01:06:01 Anyone have any idea about that stuff? Jul 20 01:30:02 huh Jul 20 01:32:12 pfn: you talking to me? Jul 20 02:16:25 huh, just put a very popular book in my cart and Amazon says 'exclusive for prime members' O.o Jul 20 02:39:18 heh Jul 20 02:39:23 g00s just do it Jul 20 02:43:10 did android get aospsupport for raspberry pi 3 yet Jul 20 02:46:52 what's a good way to mirror my phone's screen on a pc? Jul 20 02:47:40 you might be able to easily do it if you have certain phones Jul 20 02:47:50 samsung has stuff that does really good screensharing Jul 20 02:48:25 does the SDK provide such a feature? Jul 20 02:50:00 if only I had a chromecast Jul 20 02:50:30 another reason I miss my droid 4, it had an hdmi output :'( Jul 20 02:51:08 lets see what Droid@Screen can do Jul 20 02:53:48 I havent seen anything great Jul 20 02:53:55 I built somethign that was hacky as heck but worked Jul 20 02:54:08 but that was old **** ENDING LOGGING AT Wed Jul 20 02:59:58 2016