**** BEGIN LOGGING AT Wed Jun 22 02:59:58 2016 Jun 22 03:01:22 gordon_, yeah and some dumb dev decided to try to enforce one of the ToS rules Jun 22 03:01:39 So the fragment tries to see if something is overlaying on top of itself Jun 22 03:02:05 And also to see if it's not outside its container (like even 1px outside the container) Jun 22 03:02:18 It causes so many problems... Jun 22 03:02:41 well, maybe there's other way to get youtube videos from url, check Jun 22 03:02:56 Yes but I'm not just making a hack Jun 22 03:03:04 I want to follow the rules Jun 22 03:03:21 There is no official way to get direct youtube video url Jun 22 03:03:30 ah, didnt know about i Jun 22 03:03:43 well, youtube red of whatever it's called is there for reason :D Jun 22 03:29:02 aiui, you scrape the YouTube page for the dash url and load it into exoplayer Jun 22 03:29:17 to get around using the YouTube player api Jun 22 03:59:35 hi Jun 22 03:59:56 how can i create unsigned apk in android studio Jun 22 04:00:43 are there every body here? Jun 22 04:01:34 hi Jun 22 04:02:05 how can i create unsigned apk in android studio Jun 22 04:03:30 iono i just started learning android dev like 3 days ago Jun 22 04:26:50 why would you want an unsigned apk Jun 22 04:26:57 and it gets created by default Jun 22 05:11:05 hey Jun 22 05:11:26 Has any one played around with the Android wear 2.0 preview? Jun 22 05:31:00 hello Jun 22 05:31:04 I am facing this problem Jun 22 05:31:09 while installing android studio Jun 22 05:31:10 HAXM installation failed. To install HAXM follow the instructions found at: https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windowsInstaller log: Jun 22 05:32:16 Codfection: Where are you getting the error? Are you installing HAXM? Jun 22 05:33:58 no Jun 22 05:34:04 while installing android studio Jun 22 05:36:34 Codfection: The installer? Jun 22 05:36:44 yup Jun 22 05:36:59 so now I can install intel HAXM seperately? Jun 22 05:37:10 as it failed to install during android studio installation Jun 22 05:37:15 Yes. Jun 22 05:37:21 Download the HAXM installer through SDK manager. Jun 22 05:37:41 thats it? Jun 22 05:37:53 Codfection: Then run the installer. You may need to enable virtualization in BIOS Jun 22 05:38:05 LunarEclipse120, yes its enabled Jun 22 05:38:22 Codfection: Ok, then just run the installer. Jun 22 05:38:33 SDK installer right? Jun 22 05:38:40 No Jun 22 05:38:51 there is HAXM installer on intel website also. Jun 22 05:38:51 Download the HAXM installer through SDK manager Jun 22 05:39:03 LunarEclipse120, done. then? Jun 22 05:39:43 Codfection: Go the the sdk folder and run the installer Jun 22 05:39:50 It would be in extras\intel Jun 22 05:40:12 cant I simply install it from sdk manager? Jun 22 05:40:35 No Jun 22 05:40:44 The SDK Manager just downloads the installer Jun 22 05:41:16 If I have multiple apks in one project in AS, do I need one top level gradle file for every apk or just one for the whole project? Jun 22 05:41:33 hi Jun 22 05:41:40 homa_: Hello. Jun 22 05:42:02 LunarEclipse120: is your CPU intel? Jun 22 05:42:28 shmooz, yes Intel CPU Jun 22 05:42:29 hey all! Jun 22 05:42:37 nikki93: Hello. Jun 22 05:42:48 shmooz: Wrong person. Lol. Jun 22 05:42:49 with android studio / gradle is it possible to do the same as https://github.com/googlesamples/android-ndk/tree/master/hello-jni but instead of making one .so file make two .sos ? Jun 22 05:42:52 oops Jun 22 05:43:14 I have two .cpps in src/main/jni (I can move them elsewhere) that should become two different .sos Jun 22 05:43:19 and I load them separately in the Java code Jun 22 05:44:36 LunarEclipse120, cant find extras\intel Jun 22 05:45:31 i create unsigned apk and drag and drop into emulator give me this error http://uploads.im/UqR3w.png Jun 22 05:45:52 Codfection: Press Win+R, type "%USERPROFILE&\AppData\Local\Android\sdk\extras\intel" without quotes and press enter Jun 22 05:46:20 homa_: Use the standard emulator, not Genymotion Jun 22 05:46:30 why? Jun 22 05:46:32 homa_: why are you even trying to install an unsigned apk? Jun 22 05:46:48 homa_: Because it's better and is intergrated into Android Studio. Jun 22 05:49:15 LunarEclipse120: it doesnt matter... Jun 22 05:49:39 homa_: try to install it with adb Jun 22 05:50:01 also, do you have unsigned sources checkbox enabled ? Jun 22 05:50:06 (developer options) Jun 22 05:51:01 gordon_, my gradle is http://textuploader.com/53cz3 Jun 22 05:52:05 looks good Jun 22 05:52:24 gordon_, that is true? Jun 22 05:52:30 ? Jun 22 05:52:32 what is ? Jun 22 05:52:55 my gradle that i create unsigned apk Jun 22 05:53:49 gordon_, are you using Jun 22 05:53:53 linux or OS X Jun 22 05:54:10 do every body know how can i create unsigned apk in android studio Jun 22 05:54:19 homa_: yes, it's good Jun 22 05:54:24 Codfection: both Jun 22 05:54:42 gordon_, its easier to install android studio on Jun 22 05:54:44 OS X Jun 22 05:54:45 right Jun 22 05:54:46 ? Jun 22 05:54:56 homa_: eh... change build variant to debug Jun 22 05:55:07 or rather.. default build builds unsigned apk Jun 22 05:55:24 to build signed apk you need to choose it in option and have key Jun 22 05:55:43 Codfection: same level of difficulty Jun 22 05:55:51 debug builds are just signed with your default debug keystore - theyre still signed Jun 22 05:56:13 well, ok I agree Jun 22 05:56:29 gordon_, I am thinking to purchase macbook. will that be better than linux? on coding and development especially. Jun 22 05:56:31 thats why i was asking why he wanted unsigned specifically Jun 22 05:56:43 seems a strange requirement Jun 22 05:56:56 but to create *signed* for store you need to choose it Jun 22 05:57:20 Codfection: the one which you're more familiar with Jun 22 05:57:29 side note: I hate macbooks and apple ;) Jun 22 06:00:03 gordon_, oh wow Jun 22 06:00:05 why Jun 22 06:00:06 gordon_ i change that but not work ; http://uploads.im/hGj0T.png Jun 22 06:00:34 Codfection: Too expensive Jun 22 06:00:45 LunarEclipse120: actually, no Jun 22 06:00:48 company policy Jun 22 06:00:54 Linux Mint and Windows dual boot is fine Jun 22 06:01:31 homa_: well.. it works Jun 22 06:01:45 gordon_, so you prefer Linux over OS X? Jun 22 06:01:50 I am concerned about OS only Jun 22 06:01:53 homa_: wait, you did assembleRelease :D Jun 22 06:02:07 Codfection: as for OS - linux Jun 22 06:02:13 nice Jun 22 06:02:19 so I dont have to buy macbook Jun 22 06:02:26 \I was thinking for OS X only Jun 22 06:02:32 lol Jun 22 06:02:50 gordon_, http://uploads.im/bdCYo.png Jun 22 06:02:51 why ask someone on irc on some random android channel :D Jun 22 06:02:53 heard it has terminal + apps support so mix of greatness from linux and windows world Jun 22 06:03:18 homa_: you're doing it wrong Jun 22 06:03:39 why are you invoking gradle task build? android application is fine Jun 22 06:03:49 gordon_ , how can i create unsigned apk Jun 22 06:03:53 Codfection: well.. it has terminal ;) Jun 22 06:04:05 homa_: I told you Jun 22 06:04:27 use android application, change variant ot debug and click play Jun 22 06:04:28 osx is all good for android dev, been using one for a couple of years and its been fine Jun 22 06:04:45 it will generate, default, debug build Jun 22 06:04:56 case insensitive file system is a nuisance when working with aosp though Jun 22 06:05:14 I think apple is going to make new file system for next OS Jun 22 06:05:31 yeah i saw that actually. its cool and shit at the same time Jun 22 06:05:41 hey, it's apple ;) Jun 22 06:05:42 wish there would be some convergence on file systems across oses... Jun 22 06:05:58 wanna read ntfs ? let's buy commercial app for it ! Jun 22 06:05:59 did you guys hear about this Intel hiding another computer inside their CPU? https://hardware.slashdot.org/story/16/06/15/1835227/intel-x86s-hide-another-cpu-that-can-take-over-your-machine----you-cant-audit-it Jun 22 06:06:06 shmooz: yes Jun 22 06:06:16 crazy! Jun 22 06:06:19 yeah i reckon, you can get ntfs-3g using osx-fuse Jun 22 06:06:21 gordon_, that don't me unsigned apk Jun 22 06:06:22 still a pain Jun 22 06:06:31 shmooz: make amd great again Jun 22 06:06:33 gordon_, that don't give me unsigned apk Jun 22 06:07:45 homa_: in that case... I dont know Jun 22 06:07:57 You can't install an unsigned apk Jun 22 06:08:04 homa_: what do you want to do / Jun 22 06:08:25 gordon_ i want create unsigned apk Jun 22 06:08:29 why Jun 22 06:08:59 gordon_, site market told me that want Jun 22 06:09:02 Creating an unsigned apk is trivial, it's what gets created by default. The problem is that such apk's can't be installed Jun 22 06:09:28 gordon_, site market wants unsigned apk Jun 22 06:09:36 What's site market? Jun 22 06:09:44 debug build = unsigned one Jun 22 06:09:48 bazar Jun 22 06:09:58 What's bazar? Jun 22 06:09:59 whatever it is, you shouldn't be selling there :P Jun 22 06:10:15 ^ Jun 22 06:10:16 CedricBeust: place where alladin's stolen apple ;P Jun 22 06:10:20 how can i create unsigned apk Jun 22 06:10:35 Ok homa_ stop asking now, you've received plenty of answers. Jun 22 06:11:14 that's not work CedricBeust Jun 22 06:11:54 Yes it does. The build creates an unsigned apk and then signs it. Pick the unsigned one, done. Now let's move on. Jun 22 06:14:02 CedricBeust, http://uploads.im/rbqpx.png Jun 22 06:15:26 app-debug.apk Jun 22 06:16:12 gordon_ app-debug.apk is unsigned apk Jun 22 06:18:33 gordon_, Jun 22 06:18:53 http://entzeroth.com/export-unsigned-apk-android-studio/ Jun 22 06:19:17 maybe I should become IT consultant... Jun 22 06:20:34 homa_: you should not have unsigned apks Jun 22 06:20:38 seems like a bad idea Jun 22 06:21:12 It's a terrible idea Jun 22 06:21:22 thepoosh, how can i create unsigned apk Jun 22 06:21:37 CedricBeust: please +b ... Jun 22 06:21:43 homa_: create a gradle task to do it and then go kill yourself Jun 22 06:21:47 homa_: last warning Jun 22 06:22:13 * thepoosh is changing the subject Jun 22 06:22:22 anyone read the AMA on r/androiddev? Jun 22 06:22:29 no Jun 22 06:22:35 yip Jun 22 06:22:44 some of it Jun 22 06:22:44 some random guy decided he's a senior android dev Jun 22 06:22:46 homa_: You need to buy a nose Jun 22 06:22:54 yeah i liked that bit actually hahaha Jun 22 06:22:54 LunarEclipse120: change subject Jun 22 06:22:54 The 22 year old senior Android developer? Jun 22 06:22:58 Ok Jun 22 06:23:00 yeah Jun 22 06:23:06 damn Jun 22 06:23:12 maybe I will become senior too... Jun 22 06:23:14 ;D Jun 22 06:23:17 https://redd.it/4p51nn Jun 22 06:23:25 wait.. Jun 22 06:23:26 according to that logic I am a master Jun 22 06:23:37 if I'm main android dev.. does it make me senior ? Jun 22 06:23:40 33 with 5 years experience in android Jun 22 06:23:52 probably need to think about retiring thepoosh Jun 22 06:23:57 :philosoraptor: Jun 22 06:23:59 To be fair, four years working on a field is decent, and his answers are pretty reasonable overall Jun 22 06:24:11 CedricBeust: most of them Jun 22 06:24:21 some of them were kinda cringy Jun 22 06:24:57 also, some of the commenters are... Jun 22 06:25:01 I have multiple apps in one workspace in Eclipse. The apps have shared apklibs, hence I would like to have all apps in one project when migrating to Android Studio. What is the best way to go about migrating? Do each app individually or all at once? And do I need one top level gradle file for the whole project or one for every app? Jun 22 06:25:03 "Cool you've moved to Kotlin. We have also moved to Kotlin!" Jun 22 06:25:24 barq: probably don't Jun 22 06:25:33 make shared code it's own lib for AS Jun 22 06:25:40 with it's own build.gradle Jun 22 06:25:41 thepoosh: that is not cool :P Jun 22 06:25:49 agreed! Jun 22 06:25:53 and downvoted Jun 22 06:25:57 haha Jun 22 06:26:19 So import each app individually? Jun 22 06:26:22 also this: https://www.reddit.com/r/androiddev/comments/4p51nn/iama_professional_senior_android_developer_ama/d4i3w9o Jun 22 06:26:35 barq: you make a single project as lib for the shared code Jun 22 06:26:45 maybe even publish to mavenLocal Jun 22 06:26:49 and then use it in 2 apps Jun 22 06:27:26 It's changed quite often, can I not just have a module that it depends on? Jun 22 06:27:27 or use a git submodule :p Jun 22 06:27:47 teasp00n: I'd rather make subtree Jun 22 06:28:08 I want it to have the same lifecycle as the apps. Jun 22 06:28:26 is that a git thing? rings bells... Jun 22 06:28:28 gordon_, i use that but not work Jun 22 06:28:59 homa_: then. sorry my friend Jun 22 06:29:02 So is it better to export from Eclipse or import from AS directly for this? Jun 22 06:30:15 gordon_: cheers for reminding me about subtree, id forgotten about this Jun 22 06:30:28 teasp00n: watchout for cavets ;) Jun 22 06:31:06 gordon_: caveats build character ;) Jun 22 06:31:26 then I should have the strong one now :P Jun 22 06:33:50 thepoosh: https://www.reddit.com/r/androiddev/comments/4p51nn/iama_professional_senior_android_developer_ama/d4i414o Jun 22 06:33:52 hmm Jun 22 06:37:48 gordon_: so? Jun 22 06:38:00 writing long class names might be fun :P Jun 22 06:41:24 gordon_: i actually do most my adnroid dev in vim.. lol Jun 22 06:41:45 Sounds painful Jun 22 06:41:49 Ah, if I keep the structure I can work with bose Eclipse and AS until the migration is complete. Jun 22 06:41:57 CedricBeust: it is Jun 22 06:42:07 teadrop_: Why don't you use AS then? Jun 22 06:42:26 teadrop probably doesnt know why i dont use AS lol Jun 22 06:42:40 but ill tell ya, im used to how i work in vim from other environments Jun 22 06:42:51 not really intersted in learning an ide per platform i work with Jun 22 06:43:00 Doesn't matter how good you are with vim, you are not as productive as you could be. Jun 22 06:43:23 i actually still use it for some things, API exploration, auto imports etc once ive made some code changes in vim Jun 22 06:44:37 why would anyone use vim when there's autocomplete?! Jun 22 06:44:42 and linkage? Jun 22 06:44:45 and stuff like thta Jun 22 06:45:06 hopefully it will change with ensime ;P Jun 22 06:45:32 i do have autocomplete going its just a little bit janky compared to AS haha Jun 22 06:45:51 teasp00n: btw, AS has a VIM plugin Jun 22 06:46:50 thepoosh: yip, i use that too but its not quite the same. it adds motions to undo tree too for some reason. thats really annoying haha . can probably configure that but i havent looked into it Jun 22 06:47:14 Learn the native AS keybidings, try to minimize the customizations. Jun 22 06:48:04 yeah. there are some great videos on youtube about all the keyboard shortcuts in AS. defs worth a watch. Jun 22 06:48:21 teasp00n: the secret is escape and then colon+q Jun 22 06:48:36 thepoosh: lol Jun 22 06:48:54 install vim mode in AS Jun 22 06:48:57 'recording macro @q' FFS! Jun 22 06:49:33 Taylor: I have no idea what that means, all I did was try and leave git console Jun 22 06:49:45 sorry, teasp00n Jun 22 07:00:35 vim mode sucks Jun 22 07:02:57 vim sucks Jun 22 07:04:08 It's a powerful text editor, but it's a text editor, not a code editor Jun 22 07:13:37 wow Jun 22 07:13:39 WOW Jun 22 07:13:48 wisdom quote from CedricBeust Jun 22 07:14:01 please tell more CedricBeust Jun 22 07:20:28 CedricBeust Jun 22 07:20:38 Yes? Jun 22 07:20:50 tell me more about vim Jun 22 07:21:00 uh why? Jun 22 07:21:28 vim is the word is the word is the motion, vim is the way we are living... Jun 22 07:21:34 squ: you ask it like you want a lap dance Jun 22 07:21:54 Grease references now, yay Jun 22 07:22:52 vim is probably still the easiest way to write and maintain server cod Jun 22 07:22:54 *code Jun 22 07:23:08 Good morning! I was wondering if someone could point me in the right direction when making http requests to API's from an Android application Jun 22 07:23:28 Ikkyo: http://square.github.io/retrofit/ Jun 22 07:23:31 I am currently using Volley, but it feels like I'm slowly approaching callback hell lol Jun 22 07:23:39 mmm... server cod Jun 22 07:23:51 Yeah forget Volley, use Okio/Okhttp Jun 22 07:24:29 I'm waiting to get access to API docs for an app I need to port from iOS... looking forward to trying to implement the API in retrofit Jun 22 07:26:17 Thanks Leeds/CedricBeast, I'll check those out! Are there any obvious advantages between those three? Which ones have better support and are more widely used? Jun 22 07:26:45 The ones I said, Volley is obsolete Jun 22 07:27:25 Leeds: you call the api, not implement it Jun 22 07:27:29 I really need to finish ripping volley out of an app I wrote a couple of years ago Jun 22 07:27:52 squ: not really Jun 22 07:27:57 Well this was an eye opener, thanks! Now I have to decide if I want to use okhttp or retrofit :D Wish me luck Jun 22 07:28:14 Ikkyo: retrofit sits on top of okhttp... Jun 22 07:28:17 Ikkyo: Both. Retrofit uses Okhttp Jun 22 07:29:15 Okhttp does HTTP... Retrofit does HTTP APIs Jun 22 07:29:47 Got it. Thanks a bunch! Jun 22 07:48:12 can you advise some ORM (better for scala if there is) Jun 22 07:48:16 people? Jun 22 07:48:21 ORM? Jun 22 07:48:52 ondroed: What is ORM? Jun 22 07:49:13 ondroed: Ask #scala? Jun 22 07:49:23 no i need for android Jun 22 07:49:41 I use ORMLite, and I like it Jun 22 07:50:20 I use GreenDao and I like it most of the time Jun 22 07:50:52 Why don't you just code with Android Studio and use multiple languages? Jun 22 07:51:11 LunarEclipse120, what what what& Jun 22 07:51:12 LunarEclipse120: WAT Jun 22 07:51:15 lol Jun 22 07:51:28 I probably aren't not understanding what an ORM is. Jun 22 07:51:37 Object Relation Model Jun 22 07:51:42 mapper Jun 22 07:51:51 *mapper Jun 22 07:51:53 What's it do, and what's scala? Jun 22 07:52:00 :S Jun 22 07:52:03 LunarEclipse120: it's a layer that sits above a database which makes database relations behave as objects Jun 22 07:52:13 it's a good thing you gave an answer... Jun 22 07:52:21 xD Jun 22 07:52:23 I'm a dumbass Jun 22 07:52:25 like LINQ Jun 22 07:52:29 and stuff Jun 22 07:52:30 I thought it was a multiplatform app thing Jun 22 07:53:02 Scala is a programming language which compiles to java bytecode, and can therefore be used for Android development Jun 22 07:53:57 Yep. I am a dumbass, Jun 22 07:54:08 pduin: use slick https://github.com/charafau/DbTest Jun 22 07:54:48 I would not use a Scala ORM on Android (or even a Java one for that matter). Stick to ORM's that were designed specifically for Android. Jun 22 07:54:50 I don't use scala Jun 22 07:55:09 ah not you Jun 22 07:55:10 And you should even wonder if you really need an ORM on Android Jun 22 07:55:13 ondroed: ^ Jun 22 07:55:15 Wrong user! :) Jun 22 07:55:29 CedricBeust: yes, I think so too Jun 22 07:55:41 ondroed: you can check this post https://github.com/charafau/DbTest Jun 22 07:55:41 It saved me a ton of time. Jun 22 07:55:44 damn not this Jun 22 07:55:45 does jdbi work for android? Jun 22 07:55:46 http://blog.scaloid.org/2014/02/simple-enhancements-on-accessing.html Jun 22 07:55:48 this Jun 22 07:55:52 gordon_, thanks will see Jun 22 07:56:08 But my app does uses dozens of tables Jun 22 07:56:29 dozens?! Jun 22 07:56:34 Dozens Jun 22 07:56:57 yawkat: you mean jdbc ? Jun 22 07:58:01 no Jun 22 07:58:08 I get execution failed for task lint even though I have abortOnError false set. How can I get gradle to skip this during build? Jun 22 07:59:33 ah, I didnt know this one Jun 22 08:01:11 Good morning you all. Jun 22 08:01:47 Hi Jun 22 08:03:58 ondroed: if you have any futher problems with scala on android, ask on gitter channel ;) Jun 22 08:04:29 gordon_, ? Jun 22 08:05:48 on gitter scala channel? Jun 22 08:05:51 The exception is Error:Execution failed for task 'project:lint'. > Could not initialize class javax.imageio.ImageIO Jun 22 08:06:34 Dear developers, what's the best way to read data from database asynchronously for example to update the UI? I use AsyncTask to do the job, but I wonder if there's a better way. I mean for requesting data from webserver there is the great Volley or other flavours. I wonder what great library for db handling there is to easily update UI. Such that I call like queryRecordXYZ(some_id, onResult) that I receive a callback to update m Jun 22 08:06:34 y UI. Jun 22 08:09:34 Number5: rxjava Jun 22 08:09:36 Number5: LoaderCallbacks Jun 22 08:09:39 or that Jun 22 08:10:31 Ok thnx.isn't RxJava a more general thing (not for database only)? Jun 22 08:10:40 you're right Jun 22 08:12:03 Ok, this RxJava is a must know, but I'll study LoaderCallbacks first. Thank you very much guys. Jun 22 08:13:00 your welcome Jun 22 08:28:35 Thanks again to those who recommended Retrofit, I'm up and running already! Quick question though, is running Retrofit builder code in a singleton on the application context a viable option, or is it better to just build it in every activity? My app requires internet acces all the time in order to work. Jun 22 08:29:54 Ikkyo: it's probably better to have a dedicated network class Jun 22 08:31:01 thepoosh As an ordinary object, or a global singleton? Jun 22 08:31:36 I don't know retrofit well enough but we use a singleton for our network implementation Jun 22 08:34:07 thepoosh: Good to know! Thanks Jun 22 08:34:48 np Jun 22 08:36:11 Init in your Application subclass, and pass it around when needed. Don't rely on a call like Networkclass.getGlobalInstance() if you like to unit test your app Jun 22 08:36:59 gordon_: wanna see the next funniest thing for the day after Mr. senior dev? Jun 22 08:37:03 https://medium.com/@stepango/android-development-some-of-the-best-practices-jun-2016-edition-e505a0558a71#.e8begysoq Jun 22 09:10:04 why does Observable.just() not use varargs? Jun 22 09:17:31 Can anyone explain why an BLE Android app which targets SDK 18 doesn't have to have GPS enabled but one which targets 23 does? Jun 22 09:21:51 how can i encrypt my android device? Jun 22 09:22:13 mistry: that does not sound like app development Jun 22 09:24:37 xorgate: maybe some app devs know it. anyways, if u know of better place for that than please tell me. Jun 22 09:25:08 try #android Jun 22 09:25:32 already.. no answer.. hehe Jun 22 09:29:47 Hi all, Question about design. If you have to make a rest call before leaving your Fragment, how do you create a nice loading indicator? I use the visibility but the rest call can be very fast which make it look like the progressbar is just a flash. Any tips? Jun 22 09:31:43 how can i make device encryption to default when building android from sources? Jun 22 09:37:57 FrancescoV: I'm also curious on how to display loading indicators for when doInBackground is called from AsyncTask Jun 22 09:41:21 markyosullivan: isn't there a method in AsyncTask that is executed on main thread before doInBackground? Jun 22 09:59:58 hey guys, how can I debug the UI component layout ? I want to know whether it drawen in LTR or RTL Jun 22 10:00:05 You can prepare your ProgressBar in onPreExecute of the AsyncTask. Jun 22 10:01:07 There's an example here: http://stackoverflow.com/questions/3893626/how-to-use-asynctask-to-show-a-progressdialog-while-doing-background-work-in-and Jun 22 10:01:19 markyosullivan: Jun 22 10:07:04 how on earth do i get this to work? https://github.com/grennis/ExpandableRecyclerView Ive compiled the gradle and synced and it says it cant find ExpandableRecyclerAdapter as seen in thie people adapter file https://github.com/grennis/ExpandableRecyclerView/blob/master/app/src/main/java/com/innodroid/expandablerecyclerdemo/PeopleAdapter.java Jun 22 10:08:36 barq: Big thanks! I'm going to implement that later :) Jun 22 10:56:36 hi Jun 22 10:56:46 is there another way to try to resolve my android devices id? Jun 22 10:56:57 I tried "adb devices" command, but it doesnt list my device Jun 22 10:57:14 even though its visible in the file explorer (im on Windows 10) Jun 22 10:57:30 hi, i want to make my /data partition encrypted. how can i do that in android sources? Jun 22 11:37:13 mistry: this is not the place for these questions, try XDA Jun 22 11:37:20 or #android-root Jun 22 11:43:46 So I'm currently running into an error using the Parcelable.describeContents() method, more specifically a NullPointer. I think it's because I create the object in the onCreate method, but do not know where I should otherwise initialize my object. Any advice? Jun 22 11:44:07 I want to use Parcelable to hand over an object to another activity Jun 22 11:46:11 I have an issue with releasing app with minifiedEnabled Jun 22 11:46:36 Im now trying to set multiDexEnabled to true, but app release takes too long, and I think I have multiple same jar files under External resources Jun 22 11:46:39 what may be the issue? Jun 22 11:54:44 Is there any way to share permissions of one app with another app(not two activities of same app) like write_external_storage through pending intent. Only one app has permissions defined in manifest file. Jun 22 11:55:02 nope Jun 22 11:56:03 Then what does the line "By giving a PendingIntent to another application, you are granting it the right to perform the operation you have specified as if the other application was yourself (with the same permissions and identity)" in official docs means Jun 22 11:58:49 Unicorn437, pastebin some code... Jun 22 12:00:47 http://pastebin.com/mUueVhsD Jun 22 12:02:43 http://pastebin.com/Kg3nq9Rf Jun 22 12:03:36 if the class that is parcelable is relevant as well I can post that one, though I do not believe so Jun 22 12:04:22 the getParcelable likely returns a null Jun 22 12:04:35 which means there's no EventHandler in the bundle Jun 22 12:05:09 because it's actually called eventHandler in your other class Jun 22 12:05:15 ... Jun 22 12:05:43 oh xD Jun 22 12:06:22 it's usually a good idea to use constant strings for that kind of stuff because of this exact reason Jun 22 12:08:00 the app is still crashing, although it is not showing me an error :o Jun 22 12:19:48 So I'm getting a nullpointerexception on the OnTouchListener which I did no changes to Jun 22 12:25:24 So i have an adapter class and inside it I set some items inside a function called getItems (which returns them) how can i set the items in my main activity? http://ideone.com/Vy9t8s Jun 22 12:29:07 thornekey What ?? Jun 22 12:29:35 i probably didnt explain it right Jun 22 12:29:45 what did you not understand abut my issue? :) Jun 22 12:30:57 is there any tool to just open an xml file and see the graphical view? Jun 22 12:31:08 for linux Jun 22 12:31:33 android studip? Jun 22 12:31:39 *studio Jun 22 12:37:33 wviana, here is my full adapter. I would like to set items in a list outside of this (in my activity) https://ideone.com/L4E5Z5 Jun 22 12:37:47 mistry: there are also a few websites that will allow it assuming you are using hard coded values and no custom views Jun 22 12:38:23 hmm Jun 22 12:40:52 thornekey Still didn't get it. How do you want to use this class? Do you want to add items (DetailsListItem) into its object ? Jun 22 12:41:58 yes i use this class to create an adapter instance from my main activity. it basically makes an expandable recycler view.. so i want to add the items (list) from the activity rather than in the adapter Jun 22 12:42:23 cos right now the data is set.. i want to add whatever data (strings) is already in variables in the activity class Jun 22 12:42:40 <_kw> Is it possible to use gradlew to installDebug on a specific device? Or will it always install on all connected devices? Jun 22 12:43:47 using svg drawables on older androids, i have to use app:srcCompat="@drawable/myicon" but what when i have a menuitem where i need to set the icon? Jun 22 12:51:05 thornekey You could add a List fild into your class and have a method that will add objects into this list and also update whatever you need inside you adapter. Jun 22 12:51:21 ah yes Jun 22 13:11:27 Hi, do we have any HCE experts here? Our HCE-service seem to trigger the "Set up Android Pay" popup on phone running newer versions of Android. Jun 22 13:21:21 ugh, fucked up my air conditioning install, vented all the refrigerant :( Jun 22 13:22:50 what was the refrigerant liquid based on? Freon? Jun 22 13:23:24 r410a Jun 22 13:24:09 stupid me and harbor freight tools Jun 22 13:24:20 made a shitty connection Jun 22 13:25:47 btw - what's outside temperature? Jun 22 13:26:56 55 or so Jun 22 13:27:28 California? Jun 22 13:28:42 yea Jun 22 13:33:27 remember the time I have left car to air-conditioned 20-25° in Lone Pane, I thought it was my last step :) Jun 22 13:35:18 but no matter the heat, I would return back again because of the nature. Have you been in Yosemite this year - upper fall seems to be fully watered. Jun 22 13:37:36 20-25C? Jun 22 13:40:59 I though the Elvis operator was supported in Java 8? Jun 22 13:42:29 did someone manage to debug http traffic from lollipop emulator with fiddler under os x? Jun 22 13:44:31 hei its quite starnge I am getting this issue in only hTC handsets Neither user 10003 nor current process has android.permission.PACKAGE_USAGE_STATS. Jun 22 13:44:41 does anyone know abt this Jun 22 13:58:42 yes Jun 22 14:19:52 How should you deal with AsyncTasks when the host Activity is destroyed? Return the result to the Activity that is created during restart? What happens when the AsyncTask finishes before the Activity is restarted, though? Jun 22 14:23:07 Or maybe use ExecutorService instead of AsyncTask if nothing needs to be returned to UI. Jun 22 14:40:36 I lost the key to one of my apps. Luckily, the app is only one-month old and there are only about 100 users. Is there an "official" or "supported" way of helping these users migrate to the new version of my app, which will have a different package name now? Jun 22 14:40:54 nope Jun 22 14:41:34 I can't connect my phone to MAUI META is there anyone that can help? Jun 22 14:41:35 adq: Ok. I guess the best I can do is change the description to indicate the problem and link to the new version? Jun 22 14:42:14 yes, and unpublish your old app, deadmund Jun 22 14:42:24 it will only be visible to users who previously installed it Jun 22 14:42:31 adq: ok, thanks! Jun 22 14:42:32 so you don't confuse new users at least Jun 22 14:42:39 ?? Jun 22 14:51:27 hello Jun 22 14:53:05 who here is the android studio expert? Jun 22 14:54:24 Michyeoga: just ask the question Jun 22 14:54:46 I'm trying to install Android studio Jun 22 14:54:54 but some images (i think) are missing. Jun 22 14:54:58 not installing. Jun 22 14:55:12 for emulation. Jun 22 14:56:36 you gotta download them. go to tools->android->avd manager Jun 22 14:56:39 * p_l is honestly impressed with N DP4, huge speedup Jun 22 14:57:08 yeah, the AVD Jun 22 15:00:33 Anyone understand why I can't set an instance of BluetoothGattDescriptor to the value of BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE? Jun 22 15:00:50 NullPointerException Jun 22 15:01:03 "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGattDescriptor.setValue(byte[])' on a null object reference" Jun 22 15:14:17 is it advisable to customizing snackBar by this technique http://www.androidhive.info/2015/09/android-material-design-snackbar-example/ 3. Customizing the Snackbar View Jun 22 15:14:44 I am concerned about part "findViewById(android.support.design.R.id.snackbar_text)" Jun 22 15:15:07 would it be stable - usable in future android versions? Jun 22 15:15:20 does anyone have a nice guide for writing /fstab.* file? Jun 22 15:16:43 :) Jun 22 15:16:49 (trying not to be idle...) Jun 22 15:21:52 hello Jun 22 15:29:24 Is it true, a color-state-list in color/foo.xml must have HEX color references not @color/foo references? Jun 22 15:29:32 hex color codes* Jun 22 15:29:35 mornin all o7 Jun 22 15:29:39 o7 Jun 22 15:29:54 hello Jun 22 15:30:21 Could you explain me what mens unknown baseband into smartphone info? Jun 22 15:43:21 I've never done a single thing with node, trying to try appium, and it just blows up - throws a bunch of random-seeming errors while failing to install Jun 22 15:44:20 anyone played with the monkeyrunner? Jun 22 15:52:03 -- When I disable the whole view, i want the children to be disabled, too. duplicateParentState seems to not be working Jun 22 15:57:42 Leeds ha you are using node ? :D Jun 22 15:58:21 but node is pretty low level, what are you using on top of that ? Jun 22 16:00:18 ah, never heard of appium Jun 22 16:00:47 it's a test framework sort of thing Jun 22 16:01:18 Does anyone have a good resource where I can pick TDD in android from scratch up to intermediate level Jun 22 16:05:09 g00s: got a request to automate some stuff for semi-nefarious reasons Jun 22 16:05:32 g00s: HAI Jun 22 16:05:44 lol thepoosh , you showed that dipshit Jun 22 16:05:55 i get it you read that article Jun 22 16:05:58 what a jackass Jun 22 16:06:00 haha Jun 22 16:06:42 g00s: this was actually the best response - https://medium.com/@jemshit/the-worst-i-have-seen-these-items-need-to-be-considered-again-1-7-12-13-25-797b700fb2fd#.eqvte79eo Jun 22 16:07:05 spykins: write a test, then fulfill that test. best way is to just jump in Jun 22 16:08:05 orbyt_: Thanks, I have been writing test but I need to understand it Jun 22 16:08:13 I have been using roboletrics Jun 22 16:08:28 how are you writing tests if you dont understand them... Jun 22 16:09:05 thepoosh 'be careful with memory leaks' ! Jun 22 16:09:05 I don’t understand how to test for phone generated things like, CountDownTimers Jun 22 16:09:12 Location services Jun 22 16:09:35 well, he probably saw the senior dev doing an AMA and had to jump the senior wagon Jun 22 16:09:43 AlarmManager e.t.c Jun 22 16:09:51 thepoosh whats wrong with 25 ? Jun 22 16:09:56 lol #6 Jun 22 16:10:03 I just do basic behaviural test and Unit test Jun 22 16:10:12 forget about it Jun 22 16:10:24 forget about the minSdk=21 trick ? Jun 22 16:10:40 they guy who said "don't use 3rd party libs if you can" and then spent the rest of the time recommending 3rd party libs Jun 22 16:11:07 i mean, did the minSdk=21 to speed things up become obsolete ? Jun 22 16:11:25 no, the guy was wrong Jun 22 16:11:36 but the response there was priceless Jun 22 16:12:10 well, that's just like your opinion man, have you ever worked on a big project (sarcastically) Jun 22 16:12:16 well, yes... Jun 22 16:15:23 thepoosh this is crazy https://news.ycombinator.com/item?id=11953935 Jun 22 16:16:28 holy shit Jun 22 16:18:07 Hello all. Jun 22 16:18:26 yes, we want humans to be in control of creating life artificially, as you all know humans never fuck anything up Jun 22 16:18:32 I am reading some documentation about the Android API of Google Analytics. Jun 22 16:18:40 https://developers.google.com/android/reference/com/google/android/gms/analytics/Tracker.html Jun 22 16:18:50 This one page has two contradictory statements: Jun 22 16:19:14 ga_sessionTimeout(int) - time (in seconds) an app can stay in the background before a new session is started. Setting this to a negative number will result in a new session never being started. Default is 1800 seconds (30 minutes). Jun 22 16:19:52 rosten never. exhibit a : our mobile OS :D Jun 22 16:20:00 public void setSessionTimeout (long sessionTimeout) Specify the time (in seconds) an app can stay in the background before a new session is started. Setting this to a negative number will result in a new session never being started. Default is 30 seconds. Jun 22 16:20:10 Which one is the true? Jun 22 16:20:27 g00s: lol, antibiotics lasted for a while though Jun 22 16:20:28 I would assume 30 minutes but when what's the latter, a typing error? Jun 22 16:20:58 *then Jun 22 16:22:55 I suppose it's inevitable that we create something out of curiosity and greed just to have it backfire the species back to stone age at the minimum Jun 22 16:24:25 my guess is early extinction from overpopulation first Jun 22 16:29:54 Is this perhaps not the right place to ask? Jun 22 16:33:00 Can anyone suggest some techniques used for designing code flow ? Jun 22 16:33:22 Books to read, helper tools to use, etc Jun 22 16:33:27 parco, finite-state machine Jun 22 16:33:42 no surprise. Jun 22 16:39:11 For some reason my ListAdapter doesn't have a "notifyDataSetChanged" method Jun 22 16:48:30 HactarCE sounds defective, ask for a refund Jun 22 16:48:36 k Jun 22 16:48:44 Where do I go for the refund? Jun 22 16:49:35 contact Google Customer Service Jun 22 16:54:21 because it isn't an interface on ListAdapter Jun 22 16:54:22 duh Jun 22 16:55:21 Hi, is this place to ask about the Android API of Google Analytics? Jun 22 16:55:24 huh. I thought listadapter would come from baseadapter, but it’s the other way around Jun 22 16:55:28 sure, why not? Jun 22 16:55:35 thepoosh, I find your disagreement with 1 and 25 odd Jun 22 16:56:04 and you use retrolambda now? Jun 22 16:56:04 s73v3r: thanks. Jun 22 16:56:21 I am reading some documentation. Jun 22 16:56:36 I still don't know how to refresh my listview... Jun 22 16:56:47 https://developers.google.com/android/reference/com/google/android/gms/analytics/Tracker.html Jun 22 16:56:51 I know the data in it is fine, because if I scroll an item out of view, then back in, it updates. Jun 22 16:56:55 This one page has two contradictory statements: Jun 22 16:57:03 I just need to force it to *visually* update Jun 22 16:57:05 then tell the view the data has updated Jun 22 16:57:07 ga_sessionTimeout(int) - time (in seconds) an app can stay in the background before a new session is started. Setting this to a negative number will result in a new session never being started. Default is 1800 seconds (30 minutes). Jun 22 16:57:15 public void setSessionTimeout (long sessionTimeout) Specify the time (in seconds) an app can stay in the background before a new session is started. Setting this to a negative number will result in a new session never being started. Default is 30 seconds. Jun 22 16:57:31 So, what's the default, 30 minutes or 30 seconds? Jun 22 16:57:39 I think the latter is a typing error. Jun 22 16:57:55 But if anybody know for sure, I'd really have ti confirmed. Jun 22 16:58:32 *knows, it Jun 22 16:58:34 HactarCE: d.android.com has a search function you can use to find where methods like notifyDatasetChanged are defined Jun 22 16:59:01 Ok ...? Jun 22 16:59:09 I'll try that Jun 22 16:59:30 * pfn ponders buying ffix Jun 22 16:59:46 go for it Jun 22 17:04:21 ddobrev: It's not exactly positive proof, but https://support.google.com/analytics/answer/2795871 too mentions the 30 minute number for sessions. (But surely you could just be explicit and *set* it to 30 minutes if it's important?) Jun 22 17:05:02 pretty cool ui site i just found: http://uiohmy.com/tagfilter.php?name=feed Jun 22 17:06:56 fizzie: thanks, I also saw 30 minutes in another link (different than yours). Jun 22 17:07:22 But I need to be sure because I bug we had can be explained if the default session is 30 minutes and not if it's 30 seconds. Jun 22 17:07:35 thepoosh: Use Gradle build tool. Jun 22 17:07:46 eh... damn I would like to drop it :P Jun 22 17:08:18 "Use Kotlin, yeah it’s time! Consider it long term investment in your project and skills." Jun 22 17:08:26 how about... no :D Jun 22 17:08:33 heh Jun 22 17:10:03 gordon_ sounds interesting https://news.ycombinator.com/item?id=11952498 Jun 22 17:10:18 my friend... I know about it D: Jun 22 17:10:19 :D Jun 22 17:11:13 hope jill will be stable and can 'consume' all java8 code Jun 22 17:13:26 i noticed that there is no 'rc' of build tools in sdk manager, and thought oh maybe j/j are stable Jun 22 17:14:15 at least i do not see any preview channel for tools in sdk manager atm Jun 22 17:14:23 last time I tried jack&jill with my custom java8 jar it didnt work Jun 22 17:16:18 g00s: I like comments Jun 22 17:16:22 "Have you all seen Kotlin?" Jun 22 17:16:39 "Yes, it's awful. It's the opposite of that; it's removing general abstractions that Scala got right and replacing them with zillions of special cases." Jun 22 17:16:41 :D Jun 22 17:17:41 you have to be under a rock to not have seen kotlin by now ... Jun 22 17:17:45 usual scala fan participation in this kind of discussion Jun 22 17:19:23 sprinkle with a some haskell fans ... Jun 22 17:19:28 jaana: I've seen rather opposide comments from kotlin 'users' than people from scala Jun 22 17:20:13 but well.. whatever Jun 22 17:20:20 stronger marketing will win Jun 22 17:24:12 not sure if this belongs here or in android-root. I have a question about make_ext4fs Jun 22 17:24:33 Asara android-root Jun 22 17:24:44 thanks g00s, will go ask over there :) Jun 22 17:27:22 Hello to everybody! Jun 22 17:33:43 hey tothbalint Jun 22 17:36:36 I am pretty new here, I am just getting my feet wet in android programming, but I would like to make a new app, and I would like to ask some advice about how to show content if it is okay here Jun 22 17:39:50 Hey, in Android Studio, how do you change the “Created by XXXXX on Date” thing that gets added at the top of new files? Jun 22 17:40:54 nevermind, found it. It’s under Live Templates Jun 22 17:42:13 tothbalint, go ahead Jun 22 17:43:41 I would need to make some basic (or not so basic) app that displays some sport betting data. My current roadblock is, how to display a huge table with various kinds of this similarly as it is in the image: http://storage2.static.itmages.com/i/16/0622/s_1466617431_8416150_7284aa7011.png Jun 22 17:44:04 sorry, wrong link Jun 22 17:44:05 http://storage5.static.itmages.com/i/16/0622/h_1466617451_6466751_7284aa7011.png Jun 22 17:44:19 lol. yeah first one was super tiny Jun 22 17:44:24 https://news.ycombinator.com/item?id=11953018 Jun 22 17:44:28 heh, from that ycombinator thread Jun 22 17:44:50 you could split them up into separate tabs Jun 22 17:44:53 let people swipe through Jun 22 17:46:03 Generally I was thinking about making a table with the ability to scroll horizontally, although I have read on the android developer site that table layout cannot have spanned cells Jun 22 17:47:29 yeah, i'm not sure if that's typically expected from users Jun 22 17:47:45 My other idea is to use fragments, although I am not sure yet if it is doable, I would like to able to dynamicall show and hide the grouped parts of the table (the multiple 1-x-2 parts) Jun 22 17:47:54 s73v3r, not live templates here Jun 22 17:48:10 could use this: https://material.google.com/components/expansion-panels.html# Jun 22 17:48:24 bitkiller: sorry, meant File and Code Templates Jun 22 17:48:35 s73v3r, yep Jun 22 17:49:07 s73v3r, anyway thanks for remembering me of removing that template Jun 22 17:49:30 use a viewflipper Jun 22 17:49:34 viewflippers are awesome Jun 22 17:49:43 i think either way you'd want an initial list of the a general info for the players, then clicking on one player would show a detailed view with all of those stats. Jun 22 17:51:45 the worst part of it is that it would be a betting app most probably, so all the little fields should be clickable like an on-off switch Jun 22 17:53:44 how do other similar apps handle that? Jun 22 17:54:32 guys, i got notified that the open jdk has performance issues after opening up android studio, in fedora, is using the oracle jdk is highly recommended or what Jun 22 17:54:42 I did not found yet any that needs to show this amount of data Jun 22 17:54:54 i’m guessing it’s a list of players and their associated stats? Jun 22 17:55:07 or the betting odds? Jun 22 17:55:18 s73v3r, these are betting odds Jun 22 17:55:37 does all of that have to be displayed at once? Jun 22 17:56:46 an other, maybe silly question: if I find an app that shows data similarly, in the Play Store, is it possible to dissect it in a way to tell what kind of gui elements it uses? Sadly I am not yet at the level that I can find out what it is just by looking at it Jun 22 17:57:18 generally you can kinda tell by using it a bit Jun 22 17:57:46 a row is all the possibilities one can bet on regarding to one match, somehow it needs to be accessible that the user can make all kinds of bets Jun 22 17:58:11 ok, looking at this table, how does one generally compare? Do they look down the line, or do they look down the column? Jun 22 17:58:22 it is already a nightmare as a website, but I Jun 22 17:58:39 dont know how to handle this on mobile screen sizes Jun 22 17:58:41 you cant bet in play store thats against policy Jun 22 17:58:52 this is also true Jun 22 17:59:56 s73v3r, the number of rows visible is not too important, but one row's full width (silly description) needs to be accessible somehow Jun 22 18:00:17 i’m guessing each row is a match? Jun 22 18:00:21 yes Jun 22 18:00:46 ok. I would try mocking it up as a vertical table Jun 22 18:01:21 on the screen, you have one match, and an expandable list. The top levels of the list would be the top levels of the table you linked Jun 22 18:01:34 so you’d have Konacan ishod, Dupla Sansa, etc Jun 22 18:01:48 you tap on one of those, and it would expand the list, giving the odds Jun 22 18:02:18 thank you, that is a good idea Jun 22 18:02:59 I was thinking maybe building this with fragments and all of this made to be able to scroll horizontally, but I guess it would not be a good user interface Jun 22 18:03:37 yeah, with the amount of data there, I wouldn’t do horizontal scrolling Jun 22 18:04:28 at the end I need to summarize what the user had clicked /did bet on Jun 22 18:05:16 so the list screen would have a submit button on the bottom. that would take them to a confirm/summary screen Jun 22 18:05:26 yes Jun 22 18:05:51 an other question: what is the best way to test out similar apps? I would not like to fill up my phone with these apps, and I guess installing something from the store, is BlueStacks good for this, or it can be used only for gaming apps? Jun 22 18:06:03 never used it Jun 22 18:06:10 i’d just go ahead and put it on my phone Jun 22 18:06:18 that way I can use it the way others would use it Jun 22 18:06:22 and then just delete it when done Jun 22 18:10:44 s73v3r, okay, thank you :) Jun 22 18:30:12 Check out @kyleboon's Tweet: https://twitter.com/kyleboon/status/745430565344550916?s=09 Jun 22 18:30:26 Is that a thing now? Jun 22 18:31:46 why did this random pink line just show up in Jun 22 18:31:53 AS: http://prntscr.com/bjodgm Jun 22 18:32:06 gordon_ Atwood's Law ;) Jun 22 18:32:27 google must be drawing on your screen Jun 22 18:32:45 well then they're terrible artists Jun 22 18:32:46 sub7 style Jun 22 18:33:01 orbyt_: looks like an accessibility option Jun 22 18:33:15 um Jun 22 18:33:27 does it scan from top to bottom? Jun 22 18:33:36 what? it doesnt move at all Jun 22 18:34:00 it disappears if i open a dialog Jun 22 18:34:03 g00s: Js is new assembly Jun 22 18:34:04 then comes back Jun 22 18:34:25 gordon_ maybe a few years ago, i think wasm will be new assembly Jun 22 18:35:20 prolly an x rendering error do u use ubuntu Jun 22 18:35:32 osx Jun 22 18:35:42 prolly just a rendering error either Jun 22 18:35:44 way Jun 22 18:35:52 gonna restart Jun 22 18:51:44 What's the default textview color ? Jun 22 18:52:12 android.R.color.gray ? something like that ? Jun 22 18:53:10 How about extending TextAppearence in style and retrieve its color that way? Jun 22 18:53:42 Hi there, so i made a class HistoryEntry, which extends LinearLayout. Then a layout xml taht uses HistoryEntry as root element. then I use a custom ArrayAdapter with an ArrayList to fill those into a ListView (in the onCreate of the layout of the ListView). However, I'd need to have HistoryEntry to store some data so it knows what to display... it seems even if i make a constructor Jun 22 18:53:54 Or drill down Android's standard style hierarchy and see if there's some ?textColor you can use. Jun 22 18:53:58 to pass such data and its there in the entry I add, it isn't there on the onFinishInflate callback on HistoryEntry? Jun 22 18:55:53 I'm not even sure if im using the right approach to this <.< Jun 22 18:56:11 Inari-: This may not sound like advise, but it's meant well: ListView is old, use RecyclerView instead. Find a tutorial to get started, for example http://code.tutsplus.com/tutorials/getting-started-with-recyclerview-and-cardview-on-android--cms-23465 Jun 22 18:57:20 whats the difference? Jun 22 18:57:33 RecyclerView is more flexible Jun 22 18:57:42 hmm will check that out Jun 22 18:57:51 still wondering about my issue though :D Jun 22 18:57:59 there are more extension points, so if you want to change how cells are laid out, like you’d rather have a grid than a list, it’s much easier Jun 22 18:58:04 quick noob questions: So I know primitive types cant be annotated with something like @Nullable, but an array of primitives like an int[] can. Why? Jun 22 18:58:22 I think the main reason to follow a tutorial is to let someone else wrap your brain around the API instead of making all sorts of mistakes yourself. Jun 22 18:58:40 Inari-: you wouldn’t have an array of HistoryEntry. you’d have an array of your data class Jun 22 18:59:01 HistoryEntry appears to be the cell, whereas you’d have HistoryThing or something that holds the data itself Jun 22 18:59:27 RecyclerView is perhaps also a bit easier to get right because the API forces to you implement ViewHolders. Jun 22 18:59:31 oh, right... and the adapter uses the layout to create the HistoryEntry calssa dn such Jun 22 19:00:19 Inari-: Start a new project (or just a new Activity) and follow the tutorial. When you a working Activity with a RecyclerView and CardViews you can start copying. It's the fastest way to success =9 Jun 22 19:00:20 =) Jun 22 19:00:40 wviana, i've ended up getting the colorlist for the textview and saving the color code for use with other things :) Jun 22 19:00:59 why would DownloadManager.Request behave differently on two different OEM devices? Jun 22 19:01:09 whatitis Just found it `int color = getResources().getColor(android.R.color.primary_text_light);` Jun 22 19:01:15 Sorry for disturbing Jun 22 19:01:16 I've been trying to interpret Chris Bane's gradle-mvn-push.gradle script for a while, but gradle syntax is still cryptic to me. I'm not sure where the "if is release build push to maven central, otherwise push to snapshot repo" logic is Jun 22 19:01:18 https://github.com/chrisbanes/gradle-mvn-push/blob/master/gradle-mvn-push.gradle Jun 22 19:01:41 dcope: The OEM think their implementation is better =) Jun 22 19:02:01 I see the "isReleaseBuild()" function and where it's being used, but that doesn't seem to quite be where it's happening Jun 22 19:02:16 Zta: is there better docs than the official android ones? it's not even mentioned in there. Jun 22 19:02:32 some ZTE devices append file names... while others (samsung, nexus devices) etc., don't Jun 22 19:02:38 append file extensions* Jun 22 19:02:45 dcope: I don't know, sorry. Jun 22 19:03:10 So, we're embarking on the very unenviable task of attempting to build our Android project through Visual Studio 2015. First question : does anyone have experience, preferably successful, accomplishing this? Jun 22 19:03:16 I just know that I'm sick of OEMs fucking up a nice working OS provided to them for free. Jun 22 19:03:35 Dresk|Dev: What do you mean? Jun 22 19:03:36 :') Jun 22 19:03:48 Zta, don't worry stock AOSP is not exempt of bugs at all Jun 22 19:04:00 s73v3r: Well, using Visual Studio to actually compile, link and package our project, and be available for debugging Jun 22 19:04:16 adq: It would still be easier to post bugreports to one place and have it fixed there. Jun 22 19:04:18 you must be using the NDK? Jun 22 19:04:35 s73v3r: Correct, we've got that installed along with the android SDK and a Java SDK Jun 22 19:04:39 Dresk|Dev, there are tutorials online but it's not a common practice, and this is rarely debated here too Jun 22 19:04:41 s73v3r: Ant is also installed Jun 22 19:05:07 Dresk|Dev, you can make VS call gradle build tasks Jun 22 19:05:19 s73v3r: We're trying to standardize our build chain for Android, but we also want debugging, and, well, Eclipse across 7 developers has not been a pleasant experience Jun 22 19:05:46 Zta, you must be new to android dev Jun 22 19:05:50 have you read many guides on it? Jun 22 19:05:53 adq: We are TRYING to use VS Project files, not gradle Jun 22 19:05:54 Dresk|Dev: AndroidStudio is becoming reasonable. Jun 22 19:06:16 adq: What does that have to do with anything? Jun 22 19:06:42 Zta, just monitor d.android.com and enjoy Jun 22 19:06:50 oops b.android.com * sorry Jun 22 19:07:26 Dresk|Dev: I guess the best I’d suggest is to make a new project in VS for the NDK library, and see how they do it Jun 22 19:07:42 adq: I think you misunderstood my point. Jun 22 19:08:03 Zta, well you're sick of OEM custom rom i understood Jun 22 19:08:50 s73v3r: Yep, that's what we're going for Jun 22 19:09:19 either copy what the new project does, or just copy all your files into that new project Jun 22 19:11:01 adq: Yes, because they introduce new bugs. If the efforts were focused on AOSP then Android would have less bugs. But that's just a theory. It's never been proven. On contrary, it's in peoples nature to fork and "improve". It all boils down to that this is the reason why we haven't colonized Mars yet =) Jun 22 19:11:24 word Jun 22 19:11:32 is it possible to get rid of bloatware when you buy your phone free of any of the OEM bundles meant to make the price of the phone more affordable? Jun 22 19:11:34 (except for the mars part ;)) Jun 22 19:11:35 hey guys, I'm not seeing okhttp3/retrofit2 working correctly w/ proguard -- what am I missing? Jun 22 19:11:37 oh fun, making onClick work again is a bit of a pain :D Jun 22 19:12:15 AlphaGo: you mean if you buy it unlocked? No, that doesn’t make it any easier Jun 22 19:12:22 most of those things are installed as system apps Jun 22 19:12:54 s73v3r: I see Jun 22 19:13:25 Inari-: onClickListeners in RecyclerView feels a bit awakward compared to ListView, I'll give you that. But on the other hand, you're free to add more onClickListeners in a similar fashion as the main one for your CardView. Jun 22 19:13:46 yeah but i have to pass the click from the viewholder to the adapter to the activity Jun 22 19:13:47 it appears Jun 22 19:15:17 at least thats what i found on stackoverflow Jun 22 19:15:25 onItemClickListeners to be specific Jun 22 19:17:38 Hold on, I'll whip something up... Jun 22 19:19:25 Inari-: I'm rather new to RecyclerView myself too, but this appears to work nicely: http://pastebin.com/Gf9g4xwE Jun 22 19:24:15 I create an OnClickListener in the onCreate() of the Activity that holds the RecyclerView. From the OnClickListener I can use both the RecyclerView and its Adapter to get hold of the item that was clicked. Jun 22 19:24:23 Zta: ah, thanks ^^ the one i saw on stackoverflow put the listener in the Viewholder (overriding OnClick in it) Jun 22 19:25:23 I pass this OnClickListener to the Adapter which add it to all ViewHolders when they're created. Jun 22 19:26:18 Well, the ViewHolder *is* in turn getting the OnClickListener but I construct it outside the Adapter to get a hold on my RecyclerView. Jun 22 19:28:09 Here's a different approach using tags: http://stacktips.com/tutorials/android/android-recyclerview-example Jun 22 19:31:08 I am running into this https://code.google.com/p/android/issues/detail?id=211529 Jun 22 19:31:17 how do I check View.isInEditMode outside of a view Jun 22 19:31:53 silly me for not accessing the static final font map via reflection Jun 22 19:33:08 isInEditMode() is such a dumb name for that method Jun 22 19:38:58 time to go spelunking in platform/tools I guess Jun 22 19:43:34 https://www.google.com/search?q=createassetuid+site%3Agooglesource.com -> nothing Jun 22 19:43:40 well shit where does the source for this live? Jun 22 19:48:15 hi, how can I change the path where android studio is putting the .apk file ? cannot find anything with google -.- Jun 22 19:54:28 Heya, Is there a way to detect (and possibly prevent) any network activity in an app? including your own code, and libraries Jun 22 19:55:18 now that i read that, it sounds like a dumb question. let me rephrase. Jun 22 19:56:04 I would like to build a library I can use in some apps. The library is to provide control over whether an app has internet access or not. Jun 22 19:56:31 I cannot simply remove the internet permission from the manifest, as I could then not later grant access Jun 22 19:56:54 aside from that though, im not sure if it is possible to have control over access like that Jun 22 19:57:28 like a firewall? Jun 22 19:57:43 Sure, yeah. Jun 22 19:58:13 well, there are some apps that do that, some don't need root Jun 22 19:58:19 so it seems possible Jun 22 19:58:31 ah, I just mean for that one app that would use this library Jun 22 19:58:34 not system wide Jun 22 19:59:41 seems to be the same thing, but instead of making an app you make a lib, so you control access from the library or some frontend to it Jun 22 20:14:16 Hi, do these instructions https://developer.android.com/ndk/guides/setup.html apply to the new Android SDK? They mention Eclipse? Jun 22 20:16:57 wowow -- okhttp3/retrofit2 definitely not playing nice w/ proguard Jun 22 20:17:25 basically the request returns w/ 200 code and no payload Jun 22 20:17:38 and not seeing any logging interceptor trace Jun 22 20:17:41 jmss: yeah, those are horrendously out of date Jun 22 20:17:53 I don't think the official eclipse support even works any more Jun 22 20:19:12 jmss: if you want to use the command line support I think those docs are correct (although the official download links are out of date, check https://github.com/android-ndk/ndk/wiki) Jun 22 20:19:38 If you want to use Android Studio instead those docs are in another castle Jun 22 20:20:27 https://groups.google.com/a/google.com/d/topic/android-ndk/NESnHUm3cIA/discussion Jun 22 20:39:08 danalbert: Thanks. What I'm investigating to do is to port a C/C++ application to Android. The application depends on C/C++ libraries so I don't think I can port it to Java. Jun 22 20:39:22 Anyone know how this script decides between deploying to snapshot vs release maven repo? https://github.com/chrisbanes/gradle-mvn-push/blob/master/gradle-mvn-push.gradle Jun 22 20:40:12 danalbert: So I read that for C/C++ code I should use NDK instead of SDK. Jun 22 20:44:03 danalbert: the application depends on a number of libs ('v4l2', 'libopencv_core', 'libopencv_highgui', 'libopencv_imgproc', 'fec', 'mysqlpp', 'mariadb', 'vsqlitepp'), is it realistic to port it to Android? Jun 22 20:44:03 Hello! I want some weak encryption that doesn't throw exceptions Jun 22 20:44:44 The AES stuff I'm looking at has "NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException" which can come up on some devices. I need encryption that is at least weak that will not fail ever Jun 22 20:45:17 jmss: OpenCV stuff is android-able - I can't speak to maria and mysql, however. Jun 22 20:46:10 explodes: ok, thanks Jun 22 20:46:37 explodes: what about V4L, is there something similar for Android cameras, I suppose? Jun 22 20:50:16 https://thegrid.io/ Jun 22 20:50:18 pretty cool Jun 22 20:50:45 think i saw it a few months ago but they're still not public ='( Jun 22 20:51:39 explodes, aes never has problems on android... Jun 22 20:51:59 you can use 128bit if you want to be extra careful about failing to find an algorithm Jun 22 21:13:34 does RecyclerView only display CardViews? Jun 22 21:18:22 RecyclerView displays whatever kind of views you want Jun 22 21:21:05 upside: im using recyclerview, downside: i dont get the ripple click effect anymore :D Jun 22 21:26:20 Inari-: android:background="?android:attr/selectableItemBackground" Jun 22 21:27:08 Inari-: http://guides.codepath.com/android/ripple-animation Jun 22 21:29:00 ugh, my new ac is too cold Jun 22 21:30:03 yiati: hmm thanks, that half works at least xD Jun 22 21:31:17 right, seems i need a FrameLayout Jun 22 21:32:12 guys, say i wanted to build a screen with just the android robot in the middle and when i hit a button the robot raises its hand and waves at me Jun 22 21:32:30 hmm still doesnt work :/ the effect is kind of offcenter and doesnt confine itself to the item even Jun 22 21:32:32 i understand the basics of animation here but what would i use to build the robot? Jun 22 21:35:36 so far RecyclerView seems more of a pain to use with no gained benefit for my usecase.. Jun 22 21:40:52 so is it not possible to use gradle < 2.2.0 with jack and api 24 and Java 8 features and stuff Jun 22 21:44:17 then don't use gradle <2.2 Jun 22 21:45:55 gradle 2.2 is broken as fuck Jun 22 21:46:18 google was supposed to release alpha4 "this week" 2 weeks ago that would fix the problems Jun 22 21:46:51 it crashes on most pre N phones and has weird graphic glitches on others Jun 22 21:47:40 you're not talking about gradle Jun 22 21:47:49 you're talking about the android plugin Jun 22 21:47:49 ok Jun 22 21:47:53 yea Jun 22 21:47:57 be specific Jun 22 21:48:03 classpath 'com.android.tools.build:gradle:2.2.0-alpha3' Jun 22 21:48:14 in project build.gradle Jun 22 21:48:18 specific enough? Jun 22 21:48:37 then don't use the 2.2 plugin Jun 22 21:49:04 then the compile fails Jun 22 21:49:15 either cuz of java 8 or api 24 or both Jun 22 21:49:16 then use retrolambda instead of jack Jun 22 21:49:23 guess so Jun 22 21:49:30 api 24 doesn't require 2.2 Jun 22 21:49:39 then java 8 features Jun 22 21:49:47 that's what retrolambda is for Jun 22 21:49:48 and jack Jun 22 21:50:00 or you could just use jack in 2.1.2 Jun 22 21:53:39 rigth enough for today :P "you want dividers, have these 2 pages of code" :f Jun 22 21:57:39 lol ^^ Jun 22 22:01:22 is there any reason why DownloadManager would work fine on a handful of device sbut randomly fail with ERROR_HTTP_DATA_ERROR on one? Jun 22 22:02:23 Hi all. I'm using a TabView that I can swipe between fragments. Is there a way to simply adjust the swipiness? Like, the amount you need to swipe for it to move to the next page? Jun 22 22:03:38 what's TabView? Jun 22 22:03:59 Ever use AndroIRC Jun 22 22:04:09 For example, the swiping between channels is a TabView Jun 22 22:04:20 you want to mess with the ViewPager Jun 22 22:06:09 MooGoo: Hmm that might explain why I'm not finding info when searching for "tabview swipe sensitivity" Jun 22 22:06:23 lel Jun 22 22:08:11 Is RX a good way to make testeable code? Jun 22 22:13:32 do old versions of downloadmanager not support https? Jun 22 22:13:56 android 5.1.1 https download manager files fail but http works fine Jun 22 22:14:27 it supports it fine Jun 22 22:15:27 MooGoo: interesting, i wonder why the app i'm testing works fine on a plethora of devices but it randomly fails on an older one. changing the url to http makes it work fine. Jun 22 22:16:14 is it a samsung? Jun 22 22:16:35 MooGoo: nope, an LG. the samsungs work fine. i've tested on 3 different ones thus far. Jun 22 22:17:10 watching the download in the "Downloads" app on the LG... it never starts. stays at 0% until it fails with https urls. Jun 22 22:17:13 I had a couple of issues with https in older versions due the encryption protocols Jun 22 22:17:34 zhntr: how did you get around it? Jun 22 22:17:35 how does it fail? Jun 22 22:18:04 MooGoo: the broadcast receiver gets a messsage saying it's failed. with the error code 1004 / ERROR_HTTP_DATA_ERROR Jun 22 22:19:36 the server was only accepting connections with TLS greater than 1.1 Jun 22 22:23:26 zhntr: so you got it to accept tls v1 and it worked? Jun 22 22:24:17 Is something wrong with google play in UK? We are getting reports of IAPs not working, it also seems to be affecting our sandbox accounts but not real accounts in USA Jun 22 22:27:21 dcope yes. you can check the protocol support using https://www.ssllabs.com/ssltest/ Jun 22 22:29:56 zhntr: interesting. our host has complete tls support but not ssl Jun 22 22:34:21 who uses ssl anymore Jun 22 22:34:28 everything has been standardized on tls Jun 22 22:34:54 why does this have 1 method lol: https://developer.android.com/reference/android/view/ViewAnimationUtils.html Jun 22 22:38:37 pfn: well, this LG must use SSL Jun 22 22:38:51 because we support all tls ciphers and it's failing... soo... :| Jun 22 22:47:32 dcope the OS logs the handshake error, check if it's happening Jun 22 23:04:22 Where is the error console in Android Studio? Jun 22 23:05:07 For example: I made a mistake and a little popup shows me the error on that line. Jun 22 23:05:23 But I cannot copy the error from the pop-up Jun 22 23:05:59 I think I need to see that error in some window which logs it on the fly Jun 22 23:10:49 Can an asset file in an APK be changed in a way to not need resigning? I'm attempting to change (or even better, add) an oculus sig file for a GearVR APK **** BEGIN LOGGING AT Wed Jun 22 23:21:42 2016 Jun 22 23:21:52 no Jun 22 23:28:26 dcope: do you have the LG in "FIPS mode? " Jun 22 23:32:19 dcope, very much doubt that's the reason Jun 22 23:35:12 and the build was successful even with that error.. wow Jun 22 23:55:34 <_0xbadc0de> hi Jun 22 23:56:10 <_0xbadc0de> I want that a certain button1 within a certain view to give another certain view Jun 22 23:56:29 <_0xbadc0de> and a certain button2 to give another certain view2 Jun 22 23:56:45 ok. what’s stopping you? Jun 22 23:56:59 <_0xbadc0de> currently I am creating an intent within SendMessage(View view) within the mainapp class Jun 22 23:57:26 <_0xbadc0de> how can I know which button is triggering this message so that I can create the approppriate view for each one? Jun 22 23:57:44 each button has it’s own click handler. Jun 23 00:08:14 i wonder if they could get Dianne Hackborn to do a reddit AMA Jun 23 00:08:41 <_0xbadc0de> what do you think to be a nice book to learn android developing Jun 23 00:09:04 i thought the big nerd ranch book was good, but it’s a little old Jun 23 00:09:20 they just anounced the Android basics nanodegree on Udacity Jun 23 00:09:25 reto's book keeps getting delayed Jun 23 00:09:45 its like he's giving birth to sextuplets Jun 23 00:10:07 they keep adding new animation apis Jun 23 00:10:12 <_0xbadc0de> reto's? Jun 23 00:10:16 <_0xbadc0de> can you elaborate? Jun 23 00:10:33 reto meier. a developer advocate at google Jun 23 00:10:57 <_0xbadc0de> yes but which one is the book?P Jun 23 00:11:11 it was just said that it wasn’t out yet Jun 23 00:11:20 amazon has a search box Jun 23 00:12:09 <_0xbadc0de> okay from the available resources which one you think its the best Jun 23 00:13:15 i already gave mine Jun 23 00:19:31 lol http://i.imgur.com/nyiz4qf.gifv **** BEGIN LOGGING AT Thu Jun 23 00:24:28 2016 Jun 23 00:35:03 kroot: unless it is by default, no. i purchased it specifically for testing. only thing that i've changed is enabling dev mode to run this build. Jun 23 00:44:02 https requests work fine elsewhere in the app, they only refuse to work with DownloadManager Jun 23 00:44:14 is there a good way to preview widgets and notificaitons without a device Jun 23 00:47:07 is disabling ssl/tls on the server really the only solution? downloadmanager docs mention *nothing* about this. Jun 23 00:58:23 Probably more like your ssl. cert isn't signed by a recognized authority and your app is setup to accept it Jun 23 01:00:40 pfn: i assume AWS (or a provider they use) is recognized and i also assume the app is fine to accept it since it can access data over https Jun 23 01:00:49 again... only DownloadManager fails Jun 23 01:01:01 that doesn't mean anything Jun 23 01:01:12 aws can use any cert you give it Jun 23 01:01:37 dcope: is the cert for the correct domain, and properly signed by a trusted certificate authority? Jun 23 01:01:38 pfn: if the cert was bad why would everything else work fine besides DownloadManager? Jun 23 01:01:41 download manager failing whole your app succeeds is a clear symptom of this possibility Jun 23 01:01:53 dcope: your app is probably set up to ignore SSL problems. Jun 23 01:01:59 because your app whitelisted the cert by overriding the trust manager Jun 23 01:02:01 zinx: yes, it's a wildcard cert Jun 23 01:02:11 or it accepts all, as zinx suggests Jun 23 01:02:29 alright, is there a way to tell the app to refuse any and all bad ssl connections? Jun 23 01:02:33 to see if everything else fails to load? Jun 23 01:02:53 disable your custom trust manager Jun 23 01:02:59 i mean, you can check ssl validity by visiting the url with a normal browser and not telling it to ignore security problems Jun 23 01:03:11 going at it the other way seems a little silly to me. Jun 23 01:03:20 zinx: yes, the cert is fine in the browser. it's valid. Jun 23 01:03:30 is your app accessing it by domain or by IP? Jun 23 01:03:32 issued straight from amazon Jun 23 01:03:36 zinx: hostname Jun 23 01:03:50 and it sends to the DownloadManager by host as well? Jun 23 01:03:57 yes Jun 23 01:04:07 does logcat show anything? :/ Jun 23 01:04:16 * dcope checks Jun 23 01:05:08 so I have been searching high and low, and tried several different things. I cannot find for the life of me how to empty an expandable list of all its items. Jun 23 01:05:35 The ListView was pretty easy, but no so much the ExpandableListView Jun 23 01:11:35 zinx: D/DownloadManager: DB Update : errorMsg while trying to execute request: javax.net.ssl.SSLHandshakeException: Handshake failed Jun 23 01:12:05 if that's the only info given, it could be the wrong port or something.. Jun 23 01:12:24 anyone mind taking a look at this question: https://www.reddit.com/r/androiddev/comments/4paauv/questions_thread_june_22_2016/d4jz6fu Jun 23 01:13:31 I <3 apple Jun 23 01:14:04 zinx: wrong port? so it only trips up on one device out of about 10 that i've tested on because of a 'wrong port'? Jun 23 01:14:23 maybe it's just a bug with this version of android. Jun 23 01:14:41 dcope: unlikely. that sort of thing would most likely have been noticed. it could be the provider blocking it, idk.. Jun 23 01:15:46 dcope: but handshake failed without any other error is likely wrong host or port, or host not responding, etc... if it says anything about the certificate, it's a bad cert or the CA isn't trusted by the device Jun 23 01:22:13 Does the application framework and libraries shown here http://www.tutorialspoint.com/android/images/architecture.jpg exist on Android OS or is it everything compiled into APK itself? Jun 23 01:23:34 I guess I am a little confused what includes in it and what's not. Jun 23 01:26:08 i think i've found the problem Jun 23 01:26:11 It would be helpful it was divided into like: application layer, OS layer, hardware layer and so on.. Jun 23 01:26:17 downloadmanager does work with HTTPS if it supports ssl v3 Jun 23 01:58:19 welp, figured it out. android download manager on this oem / version / wtf ever doesn't support SNI. Jun 23 01:58:35 so the ssl handshake is failing Jun 23 01:59:10 fucks sake has youtube on chrome been failing for anyone else lately Jun 23 01:59:14 both on win and osx Jun 23 01:59:25 the entire tab gets fucked Jun 23 02:06:09 lol chrome Jun 23 02:08:00 u dont use chrome? Jun 23 02:08:10 haven't in a while Jun 23 02:08:29 very poor with resources Jun 23 02:09:06 meh Jun 23 02:12:48 orbyt_ that is the proper response to most things ;) Jun 23 02:13:02 meh Jun 23 02:13:08 :D Jun 23 02:46:06 is this a good place to discuss reverse engineering bootloaders or is there a more appropriate channel? Jun 23 02:53:18 uh is there a way to automagically have my layout manager scroll my recyclerview to the bottom when a new item comes in? Jun 23 02:53:38 im using setStackFromEnd so its like a chat app Jun 23 02:53:51 so when a new msg comes in it should scroll down to see it Jun 23 02:58:25 orbyt_: put these in your listview xml ... android:stackFromBottom="true" Jun 23 02:58:25 android:transcriptMode="alwaysScroll" **** ENDING LOGGING AT Thu Jun 23 02:59:57 2016