**** BEGIN LOGGING AT Fri May 27 02:59:58 2016 May 27 03:27:45 Yay, google is innocent, better not get reversed on appeal again May 27 03:34:36 Woo! May 27 03:34:44 Google's use of Java is deemed "fair use" May 27 03:34:54 er, apis May 27 03:48:49 pfn "Oracle, however, vowed to appeal." May 27 03:50:22 oracle's org chart http://www.greenm3.com/gdcblog/2011/7/5/organizational-charts-google-amazon-apple-facebook-oracle-an.html May 27 03:50:53 lol May 27 03:54:58 "Their stock is taking a huge beating in after-hours trading." bwahahaha May 27 04:12:47 g00s, just got an emulator update May 27 04:12:56 lets see if google play services was updated May 27 04:16:29 RustyShackleford let me know when you find out May 27 04:16:48 g00s, it does work May 27 04:17:02 RustyShackleford which emu image / api ? May 27 04:17:03 okay so they were about a week behind schedule lol May 27 04:17:14 api 23. I didn't get an update for N May 27 04:17:23 x86 May 27 04:17:33 RustyShackleford did you see an update for anything below 23 ? May 27 04:17:38 22 May 27 04:17:49 I don't have any other versions installed May 27 04:18:00 ok thanks for checking May 27 04:18:12 not even sure why 22 is installed. Must have been a while since I setup the android sdk May 27 04:24:26 I need to make a plugin to generate MVP May 27 04:24:44 setting up all the boilerplate is a bitch but I really like MVP architecture May 27 04:25:00 adds some structure to the wild wild west that is android May 27 04:34:54 RustyShackleford there are some libraries for that May 27 04:34:58 i think mosby is one May 27 04:39:32 Lenovo: Motorola acquisition 'did not meet expectations' May 27 04:41:15 http://www.theverge.com/2016/5/26/11782808/lenovo-motorola-acquisition-did-not-meet-expectations May 27 04:41:19 interesting ... May 27 04:51:08 not sure what they expected to happen May 27 04:52:19 well, moto accounting for less than half of the total phones sold is extremely disappointing May 27 04:52:52 would expect moto to outsell Lenovo handily May 27 05:00:16 it almost seems easiest to have one MainActivity and every screen is a Fragment May 27 05:00:26 how do you design your app? May 27 05:00:56 thats close to what i do May 27 05:01:04 managing navigation is kinda difficult May 27 05:01:11 yeah ... May 27 05:01:13 I like to delegate to the Activity May 27 05:02:07 what do you do then? May 27 05:06:29 RustyShackleford i haven't solved that to my satisfaction May 27 05:06:52 I wonder if iOS development sucks May 27 05:07:01 equally as bad I mean May 27 05:07:04 i have been putzing around with having 3 kinds of fragments : May 27 05:07:25 I wish we had a more rails-like way to make android apps May 27 05:07:38 one is the content , like a list of things - although i suspect in some cases, this could be spun out into a separate adapter May 27 05:07:43 needs more convention, IMO May 27 05:08:11 two is what Keep does, and has a decorator fragment for the content fragment, that has the toolbar, and coordinatorlayout and shit May 27 05:08:42 three, i have no better name - i call the 'task', which aligns with the bottom navigation idea of task May 27 05:09:05 in that , you will see that bottom nav stays in one place. you select a list , a new thing shows up - thats a task May 27 05:09:26 so i have one fragment at that level, that just corrdinates the crap of all the fragments that showup in it May 27 05:09:35 i try to leave my activities empty May 27 05:09:53 i mean, the main activity has to switch between these 'task' fragments, May 27 05:10:07 which are either things in bottom nav, or in the nav drawer May 27 05:11:00 and yeah, if you are in iOS - there are *plenty* of cocoa patterns ... May 27 05:14:20 android kinda reminds me od node.js ... May 27 05:14:34 there are some basic rules, but you're on your own May 27 05:14:57 then came express, because node.js was cumbersone to start from scratch a new project .. May 27 05:15:17 then came stuff like hapi ontop of express, because express was too low level lol May 27 05:15:32 i've never tried iOS development May 27 05:15:42 i enjoyed it May 27 05:15:48 I don't own any apple products. Sucks that you need a macbook May 27 05:17:29 RustyShackleford and swift seems like a rising star... May 27 05:17:49 do you use an android or an iphone? May 27 05:18:01 half of the android devs I know use iphones haha May 27 05:18:06 i actually have a windows phone May 27 05:18:21 i would never buy an android phone that wasn't nexus May 27 05:19:00 but i also don't really use any google services beside gmail May 27 05:19:13 seriously? not the answer I expected May 27 05:19:27 oh i'm loving my nexus 6P May 27 05:19:55 yeah that should be a nice device May 27 05:21:32 RustyShackleford i am interested in the google ARA concept though May 27 05:21:50 i have a hard time believing they could pull it off ... May 27 05:22:04 and the incentives for oems to do this seems ... hmm .. not many May 27 05:23:09 I question how feasible that idea is May 27 05:23:24 depending on how easy it is to make your own block, i might try something in HW May 27 05:23:29 even desktop computers are not that customizable May 27 05:23:50 can't upgrade the cpu without a new mobo most of the time May 27 05:23:52 and we already see all the fragmentation issues have with fully completed phones ... May 27 05:24:00 testing on that kind of platform would be a nightmare May 27 05:24:10 ah good point May 27 05:24:15 here's an idea May 27 05:24:16 they would need some serious kind of certification program May 27 05:24:27 only sell 5x's and 6p's May 27 05:25:16 there's one reason iphone must be way easier. way fewer device possibilities May 27 05:26:37 ARA is opposite of the iphone ... May 27 05:27:12 apple gives you choice of colors, basically - ara is total customization May 27 05:28:26 a book called 'the paradox of choice' outlines why people get fatigued with too many choices ... May 27 05:28:39 and the more choices you have, the more likely you are to regret your purchase once done May 27 05:28:58 story of my life May 27 05:29:36 the choice between 5x and 6p took me about 3 months lol May 27 05:29:41 i'd get an iphone though - over a nexus for regular use, just because the iphone will still be supported for much longer May 27 05:30:21 i think with exception to 1st gen ipad, iStuff is typically supported 4 years, even if you can't expect great things May 27 05:30:39 like getting slower, missing features, etc May 27 05:33:48 smartphones last just under two years in my experience May 27 05:34:16 RustyShackleford i've been using my 3rd gen iPod touch from 2009, up until today ... May 27 05:34:26 its stuck on iOS 5 i think ... May 27 05:34:31 i mean I'm pretty kind to my stuff May 27 05:35:08 yeah , it depends on device. like i notice the battery in my nexus has degraded quite a bit ... May 27 05:35:16 wierd stuff starts happening about 2 years after I buy it. Unexpected restarts, freezing up, and terrible battery life May 27 05:35:18 and i try to keep it between 40/80 % May 27 05:35:34 yeah that sounds like shitty flash ... May 27 05:35:45 bad ram, etc May 27 05:41:18 i was a fan of the samsung galaxies because of the replacable battery May 27 05:41:26 did it with both of them after a year or so May 27 05:45:23 how to debug modular app. I mean the other modules in use. those modules have a check like if (BuildConfig.DEBUG) {} here if is always going to false May 27 05:49:09 while running the app while testing, the debug mode is active in main app, but the other modules are going into "release" mode. so logcat info are not visible. how to solve this? May 27 05:52:51 t2mkn what happens when you run from command line ? May 27 05:53:06 can't remember if AS does something weird there ... May 27 05:53:14 but i know what you're talking about May 27 05:53:33 from command line? how? May 27 05:54:14 i am just pressing the "run" button in AS May 27 05:54:47 gradle is good but a headch too May 27 05:55:33 dont know why they dont take all modules into debug mode while testing in a device. May 27 05:57:18 t2mkn, change them to it under build variants? May 27 05:58:32 Zharf: not build variants, just normal. May 27 05:59:03 I am talking about "Build Types" under module settings May 27 06:00:12 debug and release. when i use "Build APK" that should take "release" option, at other times all modules should take on "debug" options. May 27 06:00:17 thats not happening May 27 06:01:10 t2mkn: Build APK takes your currently selected Build variant and builds it May 27 06:02:09 Build varients are all in debug mode May 27 06:03:48 seems like i need to have a base model for all modules just to configure the debug option for logcat messages. May 27 06:04:59 <_xor> What's the best way to communicate between a Service & Activity? BroadcastReceiver? May 27 06:05:02 <_xor> (Newbie here lol) May 27 06:06:03 _xor, BroadcastReceiver is a good option May 27 06:06:08 You can also use an EventBus May 27 06:06:20 <_xor> Like Otto or is there one built into Android? May 27 06:06:45 <_xor> I can set up a BR and that's what I'm leaning towards, but there also seems to be this: http://stackoverflow.com/questions/20594936/communication-between-activity-and-service May 27 06:06:46 or a "bound" Service, which may be the least easy-to-learn option for beginners May 27 06:07:33 Yes, that is how you setup a bind to a Service May 27 06:07:37 <_xor> I'm probably going to use onStartCommand & manage start/stop of the Service myself. Binding to the Service implies that it's tied to an Activity lifecycle, which in my particular case, is not really true. May 27 06:07:50 <_xor> (Unless I'm wrong about something here technically. Correct me if I am.) May 27 06:08:33 <_xor> Hmm, so let me see if I've got this right... May 27 06:08:45 I've never used bound services, so cannot help sorry May 27 06:08:53 Eventbus is the easiest option May 27 06:09:39 <_xor> Option 1: Service + Binder to use interfaces to call between Service & Activity. May 27 06:10:20 <_xor> Option 2: Service + onStartCommand + BroadcastReceiver to let the Service self-manage its lifecycle & pass messages to other components (using the BR). May 27 06:10:38 <_xor> Option 3: EventBus (ex: Otto) or maybe something like RxAndroid? May 27 07:42:58 If I have a viewpager with 2 items, let's say they both create a fragment (same class name) that has a recyclerview. Would it make more sense to create two adapters or one adapter that changes the data depending on the position it is on the viewpager? May 27 08:06:43 Napalm: hello May 27 08:54:21 Hi guys May 27 08:59:55 I'm developing an app which is a kind of "Audio files manager", so one of its features is to be able to "import" audios from other apps and be able to play them. By "importing" I mean to share an audio from Whatsapp to my app. So I receive the incoming Intent on my app, read audio data and copy it on my app's directory. But when I receive Whatsapp incoming Intent, if I see its mimetype, it's an audio using OPUS codec, so I can May 27 09:00:21 hi guys, can anyone shed some light about why this: http://pastebin.com/w8mr7Rg5 throws a null pointer exception? May 27 09:00:38 trying to stretch the DialogFragment to 90% May 27 09:00:44 If I have a viewpager with 2 items, let's say they both create a fragment (same class name) that has a recyclerview. Would it make more sense to create two adapters or one adapter that changes the data depending on the position it is on the viewpager? May 27 09:01:24 Raoul11: that just not the way to do that May 27 09:01:55 in the xml its states as match_parent May 27 09:02:07 Raoul11: remove all that code. and update the style/theme your dialog uses. in onCreate use setStyle(blah, R.style.YourTheme) May 27 09:02:25 Raoul11: inside that style you need to adjust the major and minor axis for the window May 27 09:02:58 onCreate or onCreateView? May 27 09:03:25 onCreate May 27 09:03:34 Raoul11: https://developer.android.com/reference/android/R.attr.html#windowMinWidthMajor May 27 09:03:40 and also windowMinWidthMinor May 27 09:03:47 set them in your style May 27 09:04:09 90%p May 27 09:04:11 should do it May 27 09:04:17 if i remember correctly May 27 09:05:27 k lemme experiment May 27 09:06:10 dont think DigalogFragment has an onCreate May 27 09:06:18 yes it does May 27 09:16:48 hot damn Napalm this works May 27 09:16:53 ;) May 27 09:17:08 just wondering: setStyle(blah, R.style.YourTheme) what does blah/int stands for? May 27 09:17:18 do you read the docs? May 27 09:17:32 of course not May 27 09:17:41 https://developer.android.com/reference/android/support/v4/app/DialogFragment.html#setStyle(int, int) May 27 09:18:28 yeah i dont quite get it May 27 09:19:08 either way thanks May 27 09:28:02 Any advice? ): May 27 09:28:38 I think that's what I'll probably do I guess May 27 09:29:04 cbot_: two adapters May 27 09:29:11 ty gordon_ May 27 09:29:24 dont hold state ;P May 27 09:29:30 you will have less problems May 27 09:30:47 I just figured that when the fragments are created, separate adapters are created too, so I can just go off the position # and feed the adapter information based off the position im in May 27 09:30:58 but that's probably overcomplicating things May 27 10:01:32 I'm developing an app which is a kind of "Audio files manager", so one of its features is to be able to "import" audios from other apps and be able to play them. By "importing" I mean to share an audio from Whatsapp to my app. So I receive the incoming Intent on my app, read audio data and copy it on my app's directory. But when I receive Whatsapp incoming Intent, if I see its mimetype, it's an audio using OPUS codec, so I can May 27 10:02:27 How to test install_referrer for local apk ? May 27 10:11:26 Sepho: it cut after 'so I can' May 27 10:14:29 ops, I'll copy it again, thanks Ashiren May 27 10:14:32 I'm developing an app which is a kind of "Audio files manager", so one of its features is to be able to "import" audios from other apps and be able to play them. By "importing" I mean to share an audio from Whatsapp to my app. So I receive the incoming Intent on my app, read audio data and copy it on my app's directory. But when I receive Whatsapp incoming Intent, if I see its mimetype, it's an audio using OPUS codec, so I can May 27 10:15:26 it cut again, the message is too long for 1 line May 27 10:18:15 I'm developing kind of "Audio files manager", one of its features is to be able to "import" audios from other apps May 27 10:18:18 and be able to play them. By "importing" I mean to share an audio from Whatsapp to my app. I receive the incoming Intent on my app, May 27 10:18:21 read audio data and copy it on my app's directory. But when I receive Whatsapp incoming Intent, its mimetype is an audio May 27 10:18:24 using OPUS codec, so I can't play this file using MediaPlayer class. May 27 10:18:52 sorry May 27 10:18:58 any idea? :( May 27 10:19:34 hey May 27 10:21:12 so, I'm new to this whole android thing. I would like to have a scrolling list of elements, where each element has some text and maybe a picture and such, and the entire element is clickable. Could anyone point me in the right direction? May 27 10:21:35 not looking for someone to guide me through it, just some pointers to documentation or some classes I should use or such May 27 10:29:30 mort: lookup listview May 27 10:30:25 or recyclerview May 27 10:31:47 what's the difference between them? May 27 10:34:09 The RecyclerView widget is a more advanced and flexible version of ListView. May 27 10:34:14 https://developer.android.com/training/material/lists-cards.html May 27 10:34:49 oh, that looks perfect May 27 10:35:34 I had found ListView before, but couldn't really figure out how to use it from just the documentation for the class May 27 10:36:59 <_xor> Jesus christ. I should have started using EventBus earlier. May 27 10:37:14 <_xor> I just 'ed like 50% of the extra crap code I had to write. May 27 10:37:37 <_xor> I'm going to look at RxBus next week and compare it to EventBus, since I already use RxAndroid/RxBinding & RetroLambda. May 27 10:49:21 Hello everyone, I want to make multiple url calls to different servers to fetch xml data from the servers.. Can anyone suggest the best way to do it? May 27 10:50:56 I already use an Asynctask to call one url and I have the feeds.. Now I want to make calls to like 20 more servers…. ANy idea on the most effecient way to do, all a library that will help me out May 27 10:53:05 if for instance i have an arraylist of abc.com, bac.com, cab.com ….. after fetching feeds from abc.com into an adapter, I want to immediately fetch bac.com and the cab…. asynchronously May 27 11:00:45 spykins: AsyncTask is the right model for what you are trying to do May 27 11:01:18 oh really May 27 11:01:32 so onPostExecute… I should make another call May 27 11:01:35 ? May 27 11:02:01 spykins: it will work, but its not a good model May 27 11:02:08 I was hoping I can get a library that will run the urlconnection call concurrently May 27 11:02:15 spykins: AsyncTask is good to move a small task off the main thread May 27 11:02:33 spykins: https://www.youtube.com/watch?v=0Z5MZ0jL2BM May 27 11:02:51 then maybe watch https://www.youtube.com/watch?v=NwFXVsM15Co May 27 11:04:29 https://www.youtube.com/watch?v=adPLIAnx9og May 27 11:04:46 those will help May 27 11:06:40 Napalm: I have seen the videos May 27 11:07:11 Let me explain what I am trying to do.. I already have them off the main ui thread with the async task May 27 11:07:41 I understand that May 27 11:07:57 This is what I want to acheive, I want to make multiple httpUrlconnection calls May 27 11:08:01 but say you are retrieving 20 feeds from different May 27 11:08:07 places May 27 11:08:29 yes May 27 11:08:33 now what you ideally want to do is have a few downloading at once and then the ones that fail to be retried May 27 11:09:05 each feed request now has become a discrete piece of work to do May 27 11:09:09 aka a task May 27 11:09:37 so you'll want a thread pool to download with that you can load the tasks onto May 27 11:09:48 exactly May 27 11:10:06 so maybe you should watch those videos as it explains it May 27 11:10:16 awesome, thanks May 27 11:10:27 I was thinking maybe libraries like okhttp May 27 11:10:37 can perform the magic for me May 27 11:10:51 okhttp will make he requests.. but its a http library May 27 11:10:53 nothing more May 27 11:11:35 do I use that against the normal HttpURLConnection in the Asynctask May 27 11:11:54 ? May 27 11:17:14 @Napalm : is there any os restriction so that we will not get intent when play store will broadcast it while using install referrer? we got these logs : broadcast Intent { act=com.android.vending.INSTALL_REFERRER flg=0x10 pkg=co.xyz (has extras) }: process is not permitted to autostart May 27 11:24:47 hey guys! i am using alarmmanager an notificatoinmanager to show local notification on specific timestamp. i create notification with unique ID. the problem is that they're not executed on time May 27 11:25:05 is that normal? May 27 11:27:21 gs May 27 11:35:13 so, trying to implement https://developer.android.com/training/material/lists-cards.html. The constructor of MyAdapter.ViewHolder takes a TextView as an argument, but MyAdapter.onCreateViewHolder gives it a View. That obviously doesn't work. What am I supposed to do there? May 27 11:39:40 Change the code into something that does work May 27 11:39:53 anyone experience with using libjingle for WebRTC ? Was wondering how to best approach letting my app stay connected while another app is on top May 27 11:40:44 well changing the code into something that does work would be great, but I'm not sure what that would be May 27 11:43:30 mort, the idea is that you pass it the encompassing view(group). Then you let the viewholder keep references to whatever view you want access to May 27 11:43:40 so make your own ViewHolder May 27 11:44:17 so change the viewholder from taking a textview to taking a view? May 27 11:44:36 Ashiren: I have made my own viewholder, just like that guide says May 27 11:45:48 mort: either cast the View when passing parameter or make constructor take View and cast in constructor May 27 12:36:06 Hey. I'm trying to create a helper class of sorts for my IAP. Looks like this: http://pastebin.com/mJJ6D2nA I would like to have a helper class and use it throughout the different activities in my app, since purchases can be made on multiple screens. So instead of having to create a new BillingProcessor with my License key in each of these activities I would like it to be collected in a single class. Does this look logical? May 27 12:41:31 hey fellas May 27 12:41:55 any idea how I can parse this "PDF"? I get that from a JSON response http://pastie.org/10854949 May 27 12:42:21 when I receive it on my browser, the browser automatically starts downloading it and I can open it and it's a completely legit PDF file May 27 12:46:44 is anyone having experience with the google universal campaign for increasing app revenue? May 27 13:01:32 I have an IntentService that I start in my activity via MyRealIntentService.start(). start() is a static method that starts the real IntentService. I want to test bad input values going into the IntentService so I created Bad1IntenetService and Bad2IntentService. They extend from the RealIntentService but override a specific method. How do I get my Activity to call Bad1 and Bad2 over Real? May 27 13:04:49 I have set up NDK for Android Studio, I've created a simple native function that returns a string. However when clicking on "Create somefunction...()", a c-file gets created but no header/functions May 27 13:05:56 has anyone here ever tried the google universal campaign? May 27 13:11:21 Here is my question in pastebin form: http://pastebin.com/GUeXVPPA May 27 13:18:49 Hi, what is the proper way to use an AlarmManager intent if i just need it to be fired once at a specific time set by me ? ( http://pastie.org/pastes/10854989/text ) now it would repeat each 5000ms May 27 13:30:07 ktwo: why are you doing this? May 27 13:30:23 its not the right way May 27 13:30:29 its probably why its not working May 27 13:33:46 Napalm, what would you suggest? May 27 13:34:17 i want to implement some kind of "do something at time x" events May 27 13:34:25 so i thought the AlarmManager is the right way May 27 13:35:00 ive seen there is also alarmManager.setExact and .set - maybe this? May 27 13:36:27 but every 5 seconds? May 27 13:36:43 your trying to execute code every 5 seconds in the background... May 27 13:36:47 its just not going to work May 27 13:38:15 Hey, I am designing a full screen camera prview for the app I am working on. There needs to be icons over the image, these icons are white so they need a shadow to, one look good, and two match material design. Is there any way I can programatically, using the layouts and styles, add a shadow to these icons that will match the shapes of the icons including the holes in the centre of these transparent icons? May 27 13:40:01 where do I have to set the include path for JNI, because android studio can't find ? May 27 13:42:01 hi, how can i trigger a "local" sms via am broadcast -a android.provider.Telephony.SMS_RECEIVED ? the command "am broadcast -a android.provider.Telephony.SMS_RECEIVED" works but no sms notification shows up May 27 13:46:44 technocf: its called elevation. set the elevation of the views. May 27 13:46:58 technocf: you'll also probably want to use a TextureView for the preview and not a SurfaceView May 27 13:47:11 Napalm: It needs to work back to API 15 :/ May 27 13:47:42 Napalm: Adding elevation didn't seem to make a difference anyway May 27 13:47:52 technocf: it wont.. because its a SurfaceView May 27 13:47:59 now im using alarmManager.setExact(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pendIntent); May 27 13:48:02 this seems to work May 27 13:48:10 No, it's an ImageView that I used May 27 13:48:15 it isnt as "exact" as i expected but +-1minute May 27 13:48:31 technocf: seriously? for a camera preview May 27 13:48:39 Napalm: For the buttons over it May 27 13:48:52 Napalm: I don't want a shadow on the camera, that would look ugly May 27 13:48:54 ktwo: you didnt answer my last question May 27 13:49:18 ktwo: are you trying to run code every 5 seconds in the background? May 27 13:49:47 No, this was just the first test, it was wrong May 27 13:49:53 technocf: what do you want exactly? May 27 13:50:16 ktwo: what are you trying to do then? May 27 13:50:32 run code at a specific time in future (but only once) May 27 13:50:58 ktwo: in the background? May 27 13:51:02 yeah May 27 13:51:15 hen setExact is as close as your going to get May 27 13:51:52 Napalm: Buttons with transparent areas and backgrounds with shaows around each edge. Like this: http://imgur.com/vMvUdUT May 27 13:52:21 technocf: thats elevation or simply pre-baked into the pngs May 27 13:52:58 Napalm: Elevation didn't work so I guess I'll have to make the images like that May 27 13:53:14 elevation will only work on APIv21 and above May 27 13:53:26 I'm running 23 on my Nexus 5X May 27 13:53:32 then it will work May 27 13:53:39 Well, it did not. May 27 13:53:43 well it will May 27 13:53:52 "it did not" for another rason May 27 13:53:53 reason May 27 13:53:58 I added it to the code, ran it, and with my eyes I saw it did not May 27 13:54:03 elevation is annoying, you. have to jump through all sorts of hoops to make it show up May 27 13:54:04 its probably because your using a SurfaceView May 27 13:54:29 No, it's an ImageView May 27 13:54:29 pfn: ive never had any trouble May 27 13:54:34 like setting an outline provider on your view May 27 13:54:43 ah i see May 27 13:54:49 or possibly unclipping your view bounds May 27 13:54:50 actually thats probably his problem May 27 13:55:03 technocf: just as a test.. set a background to your view May 27 13:55:16 one of your icons and see if you get the elevation you want May 27 13:55:18 It's displaying over a camera preview May 27 13:55:42 technocf: but to be honest.. if you want drop-shadow on pre-v21 then simply add it to your images May 27 13:55:51 I'll do that May 27 14:01:43 Is there any way to use make files with gradle based NDK projects? May 27 14:07:01 2.2 supports if May 27 14:13:46 hey, is there an easy way to get the fancy material design-style effect when pressing a view with an onclick handler? May 27 14:16:04 give it ?android:selectableItemBackground May 27 14:16:17 or a ripple drawable as the background May 27 14:18:14 found ?attr/selectableItemBackground, that seems to work w.ll May 27 14:18:50 both versions do May 27 14:19:13 thanks May 27 14:30:29 good day al May 27 14:30:39 Is it possible to get APK from google store? May 27 14:34:09 yes, install it, and then you have the apk ;-) May 27 14:37:27 ktwo, if i install it through android studio May 27 14:37:34 can i get the APK May 27 14:38:09 Es File Explorer can extract any apk maybe try that May 27 14:38:36 ktwo, is that from within the app or on computer May 27 14:38:37 Your apk is in build/outputs/apk May 27 14:43:56 Where do you use to place app wide configurations ? A singleton configuration class ? May 27 14:44:47 https://developer.android.com/guide/topics/ui/settings.html May 27 14:45:31 but basically if you prefer you still can use a singleton and implement it yourself May 27 14:52:56 ktwo: In my case I receive these configurations from backend every time the user does login. May 27 14:54:50 Today I get it object through retrofit api call. But I was thinking about migrate it into the configuration class and make it a singleton. Then when the first one asks for it, it would make the http request and return a instance. May 27 14:56:38 but I still not sure how I would control concurrency, as I can't make the request in UI Thread, but the getInstance will need to wait until the request is done. At least the first one to call it's get instance. May 27 15:01:01 use an observable from rx May 27 15:01:16 or a splash screen May 27 15:08:06 In my Activity I am starting my RealService. In my Espresso test, I want to start BadService in that Activity? How do I go about this? http://pastebin.com/GUeXVPPA May 27 15:16:58 is the Android SDK Manager in Android Studio? May 27 15:18:12 it is standalone, but you can launch it from android studio May 27 15:18:43 ktwo, how May 27 15:19:23 tools -> Android -> sdk manager May 27 15:31:15 Can anyone provide an answer to this question? http://stackoverflow.com/questions/17128287/android-make-activity-use-service-mock I'm using dagger. SO how would I go about it? May 27 16:10:24 hmm whyd i get dced May 27 16:27:41 wviana: you can use shared preferences for those or a singleton... id recommend shared or secure preferences though, that or keep a json file that you update with the settings. May 27 16:29:00 eghdk: look up Mockito, you need to mock out the service. May 27 17:02:42 hello! does anyone have any advice as to the best way to get the number of bytes in a Bitmap for reasons to display the size of an image to the user? May 27 17:03:47 huh May 27 17:04:01 Bitmap has getWidth and getHeight May 27 17:04:23 and also getByteCount May 27 17:04:52 jsav, you have a Bitmap and not byte[] ? May 27 17:08:19 I could use the length of the byte[], but that would require some extra fields that I really wouldn't need for anything else. I was just wondering if there was a way to get the data size of it using a method. I'm not familiar with how getByteCount() works, so I figured I'd see if the community has some input May 27 17:09:15 because I could always write it to an outputstream and measure it that way, but I might as well use the extra fields method if that's the only way to accurately do it May 27 17:09:55 aha. don't know what you're doing but if you want to get the correct number without studying getByteCount() I would personally go with byte[].length :) May 27 17:10:38 hey all May 27 17:10:54 http://imgur.com/BXvVkey what does OAuth Client ID mean? May 27 17:11:06 this is a chrome extension that RUNS .apk May 27 17:11:36 Is it possible to setup Android Studio so I can use the project/www folder instead of the platform/xxxx/assets/www folder? May 27 17:11:45 with Cordova May 27 17:11:57 I remember from a couple months ago the possibility of cropping a photo by reading byte[] by accessing it like byte[row+cell]. May 27 17:12:00 jsav, well, user will in fact be insterested in the file size, i mean, the jpg/png May 27 17:12:05 GMS 9.0.1 is out May 27 17:12:40 growling mad scientist? :) May 27 17:13:25 bitkiller that's what I'm looking for.. the image arrives in an outputstream of bytes from the internet, and I wanna tell the user how large the file is in bytes or mb or whatever, i'll determine that later May 27 17:13:41 I just need a number of bytes to start with May 27 17:13:49 doesnt internet provide content-length May 27 17:16:47 jsav, then i suppose you'll have to output the bitmap to jpg and get the result file size May 27 17:19:23 is your stream jpeg already? or raw bitmap? May 27 17:19:54 okay wow, I think I figured it out May 27 17:20:10 wow, I need more coffee.. May 27 17:20:50 does google home do that for you ? :D May 27 17:24:39 jsav, uhm, are you compressing your bitmap or are you doing it raw? May 27 17:25:06 BitmapCompat.getAllocationByteCount(bitmap) will give you size of a Bitmap object May 27 17:26:35 my google home will say to my kids: hey boys, don't do that, daddy is watching May 27 17:28:26 lol. May 27 17:28:45 It'll try to persuade them to buy crap ;) May 27 17:43:09 Within AS, I want to specify launch options on my emulator, is there somewhere in the AVD manager that lets you do that? May 27 17:52:26 Hi everyone, I'm encountering a very confusing issue, have asked on the Android Stack Exchange but haven't gotten a good answer there. I'm hoping someone here can take a look and help me troubleshoot: https://android.stackexchange.com/q/145756/167371 May 27 18:03:38 is firebase analytics replacing google play analytics the same way FCM is replacing GCM? May 27 18:05:42 yes and no, it seems May 27 18:06:05 Google Analytics is going to stay around, because it seems like Firebase analytics isn’t for web May 27 18:06:57 and speaking with my company’s analytics guy about it, he feels Firebase analytics is more targeted at developers with the data it would get, whereas Google Analytics would be more targeted at product and marketing people May 27 18:12:52 firebase analytics is very basic May 27 18:12:57 at least the default setup May 27 18:55:24 Is there a way to call a java function as root. I want to make changes to system settings through my app but all I can find is a `su -c` stuff. May 27 19:00:02 anyone have experience with: https://github.com/sockeqwe/fragmentargs? good, bad? May 27 19:00:34 i don’t see why you’d really use it May 27 19:01:23 laziness with creating args for fragments May 27 19:01:42 it still just seems like a solution in need of a problem May 27 19:03:42 astroduck, you cannot May 27 19:04:01 dsardari, I agree with s73v3r May 27 19:04:21 would use what? firebase analytics? May 27 19:04:32 free analytics is useful May 27 19:04:34 Looks like a library that needlessly increases your compile time, adds method count May 27 19:04:42 Simply for passing arguments to fragments May 27 19:04:45 oh, fragmentargs May 27 19:04:54 you guys feel the same way about icepick? May 27 19:05:12 I do May 27 19:05:19 I never really felt the need for icepick May 27 19:05:21 butterknife? May 27 19:05:28 butterknife is different May 27 19:05:30 It has mostly been just 1-2 fields I need for state restoration May 27 19:05:38 Butterknife is a life saver May 27 19:05:42 And it reduces A LOT of useless lines May 27 19:05:46 True May 27 19:06:03 But whatever works for you May 27 19:06:22 If you find yourself wasting too much time on passing data to fragments, it's a good option for you May 27 19:06:23 yeah, just wondering what people think May 27 19:06:39 or it’s a sign that your fragment might be doing too much May 27 19:06:40 i started using icepick because it gets annoying writing boilerplate stuff May 27 19:06:53 s73v3r: definitely May 27 19:07:15 Fragments doing too much work has nothing to do with passing arguments to it imo May 27 19:08:17 too many arguments is a code smell, though. Either it really doesn’t need all those things passed into it, or maybe they should be rolled into an object May 27 19:08:28 True May 27 19:08:46 Wrapping them all into an object should be the way to go about it May 27 19:08:58 Instead of forever refactoring the method's signature to add more params May 27 19:09:31 dsardari State restoration definitely involves some boilerplate, especially in Views May 27 19:09:31 yeah, we have an legacy custom dialogfragment that passes in separate title, message, ok text, cancel text, cancellable arguments. pretty bad. May 27 19:09:54 in that case, you should try making a builder May 27 19:10:07 Using AutoValue :D May 27 19:10:12 true May 27 19:10:19 although that is one of those cases where you can’t really avoid having a butt-ton of arguments May 27 19:10:29 but a builder will make it easier on you May 27 19:11:55 yar. thanks for the input fellas. May 27 19:13:39 pfn: Can my app install itself as system app to access content provider as root? May 27 19:16:04 no May 27 19:23:35 Hi all. I'm having an issue with styling on Android 4.2. This is an issue both on device and emulator. Here's an example: http://i.imgur.com/exTQVY9.png http://i.imgur.com/qzKwwIN.png May 27 19:23:53 It's an issue with the default "Hello World" blank Android Studio app as well. Any ideas? May 27 19:24:18 The parent theme is Theme.AppCompat.Light.DarkActionBar May 27 19:24:32 Seems to only be a problem on Android 4.2, works fine 5.0+ May 27 19:27:45 Ashiren, no May 27 19:27:51 er, miscomplete May 27 19:27:55 duck left May 27 19:29:37 is it a good idea to set BuildConfig.TESTING while the app is being tested? or how could I tell my app about it? the injection solution I applied does injection even when I run the app on a real device. I think that's not good. May 27 19:30:04 This mutable Calendar is one of most stupid things I ever seen. If I add value into some field. It should return a new Calendar with these new values. Not changing the current one. Does somebody know if clone method really works ? May 27 19:31:00 liuwenhao, Never seen this happen May 27 19:31:27 Me neither. I wonder if it's an issue with the newer support library/appcompat May 27 19:31:50 I haven't tested on 4.3 or 4.4, just 4.2 since I'm targetting an enterprise device May 27 19:32:18 4.2.2 to be specific May 27 19:32:57 Very unlikely, but you may be right May 27 19:34:08 hey al May 27 19:34:23 what does this do: keytool -list -printcert -jarfile "C:\...\fn.apk May 27 19:34:35 I thought it was just a problem with my project but since it's also appearing from just a default Hello World app with no modifications, I don't know May 27 19:49:35 I have a problem with ObjectAnimators, I've tried to create a minimal exmaple: httpsthe actibity: (://gist.github.com/anonymous/2c3a52344ee6d07f5cbe6b848f7cba8e), the animator's xml file: (https://gist.github.com/anonymous/6f395534ee3116112fc2e8c7112cc0a9). I've got two problems: the duration seems to be completely ignored (I checked the settings under dev. options) and the animation only repeats twice (where I expect it May 27 19:49:35 to repeat forever), both the "onAnimationEnd" and "next on" logs are only printed once. May 27 19:55:26 liuwenhao i've seen the second one before ... May 27 19:55:40 but that was a looong time ago ... May 27 19:56:06 Any idea how to fix? 4.2 is the only version this app will be running on so it's a critical issue for me May 27 19:56:43 it was 1-2 years ago, somehow the wrong resource was being picked up for 9 patch or something ... May 27 19:57:43 Hmm. The second image is just using default MaterialDialogs along with Theme.AppCompat.Light for a parent theme, no modifications really May 27 19:58:10 This issue is present in pretty much every part of the app so it has to be a styling issue May 27 19:58:27 But the hello world Android Studio app does it too, so I dunno May 27 20:00:07 I'm going to try on an older version of Android Studio and see if I get the same issue May 27 20:01:59 Wow. It actually works. May 27 20:02:16 Now to figure out what AS 2.2 screwed up. May 27 20:02:56 I guess I should file a bug report? Since it works fine with 2.1 but broken in 2.2 preview May 27 20:03:54 Looks like something a clean build would have fixed May 27 20:03:57 Am I even looping the animation corectly? I could find little information online... May 27 20:04:42 SimonVT: I tried making new apps with the same issue. And also tried upgrading to AS 2.2 preview 1 to 2 and creating a new app on that version as well, same issue May 27 20:04:56 It seems to only be broken on 4.2.2 May 27 20:05:16 I think it has something to do with importing the ConstraintLayout library, because that's the only difference May 27 20:05:22 but I will investigate May 27 20:25:34 Can anyone help? May 27 20:39:39 Can I set the the max heapsize to 16MB when developing on a phone with 64MB heap size May 27 20:44:57 favorite sdks for use in android? May 27 20:45:05 looking for some good patterns when writing my own May 27 20:45:57 hm, so where is constraintlayout alpha2 ? May 27 20:48:43 from reddit today "Since when is an Android developer NOT a Software Engineer?" well, somebody doesn't know what an SE is :D May 27 20:49:23 it seems butterknife and kotterknife don't really work well together. Is that expected? When I compile I get an error saying Multiple dex files define Lbutterknife/BuildConfig May 27 22:10:50 <[1]Psycho> Should I use the premade login activity or write my own? need google+ and facebook logins May 27 22:12:20 use the https://github.com/firebase/FirebaseUI-Android May 27 22:12:23 just the thing you want May 27 22:14:29 <[1]Psycho> Oh sweet, thanks @Napalm May 27 22:15:40 [1]Psycho: https://www.youtube.com/watch?v=0ucjYG_JrEE May 27 22:15:50 https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md May 27 22:15:52 that should help May 27 22:19:59 <[1]Psycho> You just saved me alot of time :) May 27 22:42:13 I'm trying to find resources/examples on how to make a "tutorial" (for lack of a better word) for my app when you launch it for the first time. Something along the lines of a smaller than fullscreen view, with "steps" showing you the features of the app, with a button to skip it. Anyone seen anything like this? May 27 22:50:03 ViewPager, got it! May 27 23:13:34 hey guys i'm looking for a class in android that can handle displaying the time difference between 2 dates in human readable format May 27 23:13:40 I know I've seen it before but I forgot where May 27 23:15:25 ah I think it's in DateUtils May 27 23:22:57 grekkos: #android-dev May 27 23:22:59 Oh sorry May 27 23:23:13 grekkos: Sorry, thought I was in another channel tab May 27 23:23:14 lol May 27 23:29:10 LunarEclipse120: actually I've sent messages there plenty of times by mistake because I thought I was here so I almost believed you May 27 23:29:21 lol May 27 23:38:59 which fragment methods do you actually use? May 27 23:39:14 https://guides.codepath.com/android/Creating-and-Using-Fragments#fragment-lifecycle May 27 23:39:48 I do pretty much all setup in onCreateView(). The example here makes me thing I'm doing it wrong May 28 01:41:01 what is the recommended way to get a RecyclerView in xml in studio 2.1.1? May 28 01:42:26 android.support.design.widget.FloatingActionButton is saying not found May 28 02:19:40 you need to add design to your dependencies May 28 02:24:45 <_genuser_> alright nerds. who's still on irc on the weekend? May 28 02:34:33 http://arstechnica.com/tech-policy/2016/05/op-ed-oracle-attorney-says-googles-court-victory-might-kill-the-gpl/ May 28 02:34:39 lol May 28 02:34:50 now we know who pays ars May 28 02:37:11 Never mind the fact that her employer enabled the "API's are copyrightable" law. May 28 02:38:50 java is an open api, they fucked up hard... May 28 02:39:09 Oh well, this is the downside of not having an external standardization body May 28 02:39:44 she is claiming it will destroy the open source community, strange metric really. I am not sure she understands the culture. May 28 02:40:02 you misunderstand May 28 02:40:16 the claim is that it will destroy dual licensing May 28 02:40:41 which is what enables corporations to open source without really worrying about losing revenue May 28 02:40:44 will it? May 28 02:41:06 of course, that op ed is patently wrong to begin with May 28 02:43:22 Just switched over to Android Studio, and it does not seem to show warnings or errors next to the line numbers, and requires code inspection to be run manually May 28 02:43:35 How do I enable this functionality? May 28 02:45:29 I want to make my own picture gallery app. I've never worked with the image provider before. Any quick tips before I dive into this project? My first issue is that I'm not sure where to get the photos from. **** ENDING LOGGING AT Sat May 28 02:59:58 2016