**** BEGIN LOGGING AT Tue Jun 21 02:59:58 2016 Jun 21 03:12:10 sleepster, then the rules haven't changed, synchronized or. volatile Jun 21 04:34:56 hey all, is it possible to use the camera 2 api as a service? Jun 21 05:10:26 hmm... should I use Gson and POJOs or should I just write my own code for the classes? It feels weird to use non-final public fields... Jun 21 05:36:13 is there an easy way to animate icons when a viewpager is swiped? i have 3 buttons at the bottom of the screen and a viewpager with fragments. When I swipe to the left/right i want the icons to slide off screen and then the new set of icons to slide back on as the new page comes into view Jun 21 05:47:41 How do I change a value based on position for a ArrayAdapter? Jun 21 05:48:32 nvm i think i got it Jun 21 05:50:33 grekkos: i personally like using gson and pojos Jun 21 05:51:02 grekkos: and retrofit for handling the calls (assuming you are hitting a REST endpoint) Jun 21 05:56:38 teasp00n: yeah I'm giving retrofit a shot for the first time Jun 21 05:57:35 right now I can't get it working... can't get android studio to rebuild my code for some reason keeps loading some stale build onto my phone -_- Jun 21 05:58:03 I fixed a typo in this log message like 10 minutes ago and i can't get it to run lol Jun 21 06:05:04 hmm still not sure how I feel about pojos Jun 21 06:06:37 alright i think I got enough done for today Jun 21 06:17:31 jackbrown: you have been summoned -> https://redd.it/4p2ocx Jun 21 06:17:35 lol Jun 21 06:18:13 thepoosh: ? Jun 21 06:18:27 oh noez, I meant JakeWharton Jun 21 06:18:33 not you, sorry for the beep Jun 21 06:30:34 <_genuser_> do you guys put .gradle in your .hgignore or .gifignore Jun 21 06:30:44 <_genuser_> * .gitignore Jun 21 06:30:50 no Jun 21 06:31:54 <_genuser_> so you track changes to .gradle then? Jun 21 06:33:28 <_genuser_> .gradle isn't that big, so shouldn't be a big deal. Jun 21 06:33:48 i trust the android studio what it puts to .gitignore Jun 21 06:35:01 <_genuser_> hmm, I use mercurial so I have to do a manual .hgignore. Jun 21 06:35:19 <_genuser_> and not using git with AS. Jun 21 06:36:17 isnt mercurial not maintaned anymore Jun 21 06:36:33 <_genuser_> oh? Jun 21 06:36:37 <_genuser_> is it out of commission? Jun 21 06:36:44 <_genuser_> *I'm pissed! Jun 21 06:37:16 or maybe i mistook for something else Jun 21 06:37:28 <_genuser_> https://www.mercurial-scm.org/wiki/ Jun 21 06:37:33 <_genuser_> doesn't mention anything. main page doesn't either. Jun 21 06:37:35 <_genuser_> phew. Jun 21 06:38:14 <_genuser_> I am slowly learning to use git and getting comfortable with git. but mercurial is just so much more familiar. Jun 21 06:38:47 mhm Jun 21 06:44:27 hi! Jun 21 06:45:16 can c/c++ code be debugged without the gradle experimental plugin? *use only the standard plugin Jun 21 07:05:05 Hi all. If you have need to make a pro and a lite version of an application, pro = tablet, lite = smartphone. Would you guys always make this in one project? I would do that but I'm wondering if here's someone who has experience with this Jun 21 07:16:20 build flavors Jun 21 07:18:12 FrancescoV: there is an example for this in the tools website Jun 21 07:24:09 I've already used build flavors :) but the flavors had 100% the same code, it was for branding. But I was wondering if it's hard to have one code base (one project) when there are a lot differences (functionality) in the flavors Jun 21 07:31:31 have the same functionality, just hide it behind a flag that a flavor triggers Jun 21 07:32:32 isProVersion = !packageName.endsWith(".lite") Jun 21 08:11:20 I have a question, is it common to use multiple arrayadapter, one ot populate LV, and one to hold data that correlates to Listview? Jun 21 08:13:22 Why do you need two adapters? Jun 21 08:22:19 woo https://twitter.com/molsjeroen/status/745164586291101696 Jun 21 08:26:35 Hey, I know this is unorthodox, but is it possible to get recyclerview to keep items that went out of visible range in memory and keep their state? Jun 21 08:38:18 viran: Guessing you're wanting to keep them for faster scrolling? Jun 21 08:39:32 markyosullivan: no, i have several view holder types where user fill in data, if those recycler items goes out of view they lose they data/state... Jun 21 08:40:06 I use the recyclerview for dynamic creation of layout, not for the usual list displays Jun 21 08:59:56 markyosullivan, http://fragmentedpodcast.com/episodes/46/ Jun 21 09:00:30 oops, no Jun 21 09:00:38 http://fragmentedpodcast.com/episodes/45/?utm_source=Android+Weekly&utm_campaign=f1e65e3bb5-Android_Weekly_210&utm_medium=email&utm_term=0_4eb677ad19-f1e65e3bb5-337905357 Jun 21 09:00:39 that one Jun 21 09:00:48 Dave Smith I think is from Perfect Circle? Jun 21 09:01:11 one of the first people to start with Android BLE Jun 21 09:01:24 yep, NewCircle https://newcircle.com/expert/dave-smith he is a real authority there Jun 21 09:13:14 Odaym: Amazing Jun 21 09:13:18 Can't believe I didn't see that Jun 21 09:13:31 I was literally listening to the start of episode 46 :D Jun 21 09:13:39 he has a good tutorial on youtube for what BLE is and what the characteristics and all that means Jun 21 09:14:08 Odaym: Managed to get it working yesterday, the UUIDs causing me issues Jun 21 09:14:33 thanks for the help :) Jun 21 09:14:54 I'm curious so I'll probably listen to the podcast episode Jun 21 09:15:24 You done much BLE work before Odaym? Jun 21 09:15:37 I did yea for some months Jun 21 09:20:36 Odaym: There's some Broadcom android app which I found very useful for helping me out Jun 21 09:20:41 LeHelloClient? Jun 21 09:20:44 You heard of it? Jun 21 09:21:05 no but it sounds like a bare bones kind of thing that will help you discover Jun 21 09:21:14 near devices, that is Jun 21 09:22:14 There's more to it than the official Google bluetooth example Jun 21 09:22:31 allows you to read characteristics and write information and send it to the bluetooth device I think Jun 21 09:23:23 cool, that's what you need Jun 21 09:24:32 definitely, helped when I was trying to figure out what was going on Jun 21 09:26:43 There's not a lot out there for BLE Jun 21 09:26:55 Even Google's example doesn't support Android 23 Jun 21 09:36:56 * gordon_ hates bluetooth Jun 21 09:36:59 everywhere Jun 21 09:47:19 gordon_: but but but Internet of Things!!! Jun 21 09:51:55 Hi there, just wondering if there is a better way to set the same onclicklistener to a couple buttons than having 20 lines of findviewbyid/setonclicklistener? Jun 21 09:52:30 markyosullivan: https://twitter.com/internetofshit Jun 21 09:52:50 Inari-: you could do it using the data bindings stuff. that way you can define them in the xml Jun 21 09:55:58 or you could create some base impl extending button and put it there though to be honest i would just put it in a private method in the activity/ fragment and bind all the listeners in that Jun 21 09:56:24 but it feels so wrong haha :D Jun 21 10:01:16 Inari-: yeah it does haha. im just trying to think of a better way to do it that isnt also over engineering Jun 21 10:01:40 Inari-: Inari- you're reusing the same listener right? Jun 21 10:02:03 Inari-, 20 lines? more like one line? Jun 21 10:02:14 yeah... though im currently looking into combining some of the buttons (as in, make a custom view or so) Jun 21 10:02:21 Zharf: times 20 buttons Jun 21 10:03:11 for(int id : Arrays.asList(R.id.button1, R.id.button2, R.id.button3, ...)) { findViewById(id).setOnClickListener(listener); } Jun 21 10:03:14 \o/ Jun 21 10:03:18 haha Jun 21 10:03:24 i guess that would work Jun 21 10:03:42 in xml you can has onClick Jun 21 10:06:54 gordon_: fantastic, never seen that before haha Jun 21 10:12:14 markyosullivan: right into the point Jun 21 10:37:07 gordon_: Well I certainly agree there are some "interesting" IoT creations lol Jun 21 10:38:44 Question about FireBase. Is it possible to create dynamic links from a backend instead of a mobile app? Jun 21 10:39:07 FrancescoV: What do you mean dynamic links? Jun 21 10:39:30 Like sending an invitation email and when the user installs the app, I want to send some extra data Jun 21 10:39:35 markyosullivan: https://firebase.google.com/docs/dynamic-links/android Jun 21 10:42:45 looks like you can create a dynamic link yourself, I'll look further on that (didn't knew that) Jun 21 10:43:03 FrancescoV: Looks pretty cool! I haven't used Firebase since it was revamped Jun 21 10:43:54 It's a little like the Goole Invites API Jun 21 10:59:09 Hi there, just wondering if there is a better way to set the same onclicklistener to a couple buttons than having 20 lines of findviewbyid/setonclicklistener? Jun 21 10:59:14 just use ButterKnife ) Jun 21 10:59:16 :)* Jun 21 10:59:43 http://jakewharton.github.io/butterknife/ -> @OnClick({ R.id.door1, R.id.door2, R.id.door3 }) public void method() Jun 21 11:00:20 you'll be happier that you never have to write findViewById() again :D Jun 21 11:00:29 haha, might look into that, thanks Jun 21 11:06:46 Goodmorning, why can help me, please? Jun 21 11:07:35 Don't ask to ask. Jun 21 11:10:07 I'm creating an app that needs to send a MySQL query every 5 seconds , and if the required value is greater than a maximum value , the app has to send a notification app .this has to work in the background , even if the ' app is not launched Jun 21 11:11:13 Can i implement a service that execute a Runnable? Jun 21 11:12:19 how comes most android jobs seems to come from startups these days? Jun 21 11:13:05 it's hip, so startups usually want to make an app^^ Jun 21 11:13:15 and fail after a year :D Jun 21 11:13:46 azgul: I really need to get used to dependency injection Jun 21 11:14:08 I don't think most jobs come from startups. Jun 21 11:16:21 Out of curiosity, would anyone say that libc++_static is stable on Android on all platforms using android_support or is there any outstanding bugs? Jun 21 11:16:40 I only found references to unwind issues with a shared version Jun 21 11:17:13 And that should obviously not apply if I static link it Jun 21 11:29:34 how can i encrypt my /data partition during production? Jun 21 11:58:27 I'm trying to setup my machine for usb debugging to my android device. But Updating Driver Software on my computer it can't find any the driver. What folder should I go for? I tried "\extras\google\usb_driver" the whole folder of usb_driver Jun 21 11:58:36 #android-root Jun 21 12:09:12 how can i turn on encryption in android kitkat?? Jun 21 12:09:39 is sd-card encryption a samsung-only feature? Jun 21 12:10:38 this is more suited for #android or #android-root Jun 21 12:17:42 How can you build a specific apk in AS if you have multiple apks in the project? If I run gradew from the root directory I get problems. Is there a way to run the build for one apk only as was possible in Eclipse? Jun 21 12:21:03 Hi guys. Does anybody know how to resolve this issue https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/issues/7 ? Jun 21 12:22:25 barq: make it a flavour or something Jun 21 12:22:29 use gradle to your advantage Jun 21 12:23:03 barq: use the 'gradle' pane to execute specific gradle tasks. Jun 21 12:25:02 Does anyone knows where android stores setting for the chosen ringtone ? Jun 21 12:25:06 I don't want to have flavors of the app. I have several apps that share dependencies, had them all in one workspace in Eclipse. Jun 21 12:25:51 Hi, quick question. Is there an easy way to make widget/notification layouts, or is it pretty much just modify xml -> make project -> preview on phone Jun 21 12:26:45 Howdy Jun 21 12:27:56 morning Jun 21 12:28:44 I get the error cannot evaluate module x. I have compile project ':y' in my build.gradle and y has x as a dependency. Jun 21 12:30:04 I want to create a custom release Build Type Jun 21 12:30:22 Is 'release' documented anywhere, like what properties I should set on it? Jun 21 12:30:45 If you look at build types http://i.imgur.com/jOKPs4s.png Jun 21 12:31:09 it has some properties with default values. Like Debuggable=false. Jun 21 12:32:50 hello anyone can help? Jun 21 12:33:00 what are you trying to do Jun 21 12:34:15 imattxc: trying to understand in which file android store ringtone settings Jun 21 12:34:25 someone's been lazy Jun 21 12:34:36 using parcelable as a cloning utility Jun 21 12:34:57 hithere Jun 21 12:35:12 imattxc: basically I have a dual SIM smartphone and seems that only the 2 SIM ringtone setting decides both (after I reboot they became both as the 2nd choice) Jun 21 12:35:15 imattxc: can you help me ? Jun 21 12:35:39 #android Jun 21 12:36:16 barq: they don't talk about rooted phones there this is something for developers Jun 21 12:36:29 jackbrown: I found this http://www.asus.com/zentalk/thread-14352-1-1.html Jun 21 12:36:44 I have ListView - I am setting actual ListView position on Rotate / AppSwitch, ... problem is with positions in landscape view being near the listView end, because rotating them to portrait has more space -> former top possition is different Jun 21 12:37:06 or are you already setting that and sim 1 is ringing sim 2's tone Jun 21 12:37:06 Zharf: I know someone that serializes just to pass to other methods in the same class Jun 21 12:37:25 is there a way to fix this position "overscroll" in portrait - to have empty space where no data / rows are available ? Jun 21 12:37:50 imattxc: are you kidding ?this is just a tutorial about how to set 2 different ringtones for each SIM from the menu, my problem isn't this one but jut that when I reboot I lose the settings I chosed Jun 21 12:38:48 Zharf, hi, what do you thing? :) Jun 21 12:39:09 don't really have time right now, sorry Jun 21 12:39:45 oki - np, maybe later Jun 21 12:43:12 I'm creating an app that needs to send a MySQL query every 5 seconds , and if the required value is greater than a maximum value , the app has to send a notification app .this has to work in the background , even if the ' app is not launched Jun 21 12:43:19 Can i implement a service that execute a Runnable? Jun 21 12:43:33 umm Jun 21 12:43:36 y- yes. Jun 21 12:43:43 seems a little excessive though Jun 21 12:43:54 why not use GCM (for example) to notify devices Jun 21 12:44:51 Why? Jun 21 12:45:21 it's not how you should be polling for notifications Jun 21 12:45:31 let the OS deal with that :p Jun 21 12:45:37 anyway Jun 21 12:45:43 you can use an Alarm Jun 21 12:46:11 it will be as accurate as it can be, you can set to which degree it accurate.. to an extent. Jun 21 12:47:41 i'm in a similar situation to matteo_ Jun 21 12:47:50 so that's very interesting to hear and read tx Jun 21 12:47:52 thanks :) Jun 21 12:48:13 I have used it Jun 21 12:48:20 not for things that are activated that often Jun 21 12:48:27 every 5 minutes at least :P Jun 21 12:48:53 you basically tell the OS that it owes you an intent some time later Jun 21 12:49:07 and then... some time later if the phone is still on (not dead) and the wind is right Jun 21 12:49:14 you'll get that intent and you can do something with it. Jun 21 12:52:02 jackbrown: I don't think this is a problem for Android Dev, more just Android in general Jun 21 12:52:39 markmarkmark: they don't talk about rooted devices as you can check in their topic, and to access to settings file and change them you need a rooted device Jun 21 12:53:20 Anyway I need someone the knows very well the build.prop setting file markyosullivan Jun 21 12:53:24 But i need to something that works also where my app is closed, or where is never launched Jun 21 12:54:00 do i proceed with a service? but what type of services? Jun 21 12:59:18 Has anyone noticed the jittering effect when using BottomSheetDialogFragment, which doesn't happen when using BottomSheetBehavior directly on a view Jun 21 13:00:28 astroduck did you find more documentation than just Android Blog post ? I would like to take a look in the DialogFragment one, cause maybe it solves the thing I'm going to do this week. Jun 21 13:01:12 wviana: Do a google search, you Jun 21 13:01:21 *you'll find many posts on DialogFragment Jun 21 13:03:16 astroduck I mean, BottomSheetDialogFrament Jun 21 13:03:45 matteo__: still could work Jun 21 13:03:59 you need to trigger the alarm to start on the callback that gets run when the apk is instaled Jun 21 13:05:11 Today I'm using `sothree.slidinguppanel` with a Fragment as bottom view. I'll migrate it into Google's BottomSheet this Sprint. Jun 21 13:11:03 Google really make some utterly broken APIs at times. For isntance in FingerprintManager, why the hell aren't these interfaces? public static abstract class AuthenticationCallback. Now instead of simply implementing a callback interface, I have to make some sickening extra objects... Jun 21 13:12:01 Permission callback to an activity is also very limiting and can easily lead to some confusing code Jun 21 13:12:04 wviana: Read the last section http://code.tutsplus.com/articles/how-to-use-bottom-sheets-with-the-design-support-library--cms-26031 Jun 21 13:12:13 you think google has broken apis on android? Jun 21 13:12:19 try google drive / sheets / gdata Jun 21 13:12:23 :P Jun 21 13:13:07 Oh no thanks, I have plenty already Jun 21 13:15:32 astroduck ok, thank you. Jun 21 13:18:39 anyone worked with Fit yet? Jun 21 13:19:44 Zta77, implementing interfaces as part of your overall class is ugly, and it's a class so you can pick and choose what. you want to implement Jun 21 13:22:58 for those who are using Fabric / Crashlytics - are you informing your users about it in your EULA? Jun 21 13:23:10 If yes - what does your EULA states in such case? Jun 21 13:32:05 I wish Google would provide examples for implementing some of the components on their material guide, always have to find libraries which implement them instead Jun 21 13:38:10 hi Jun 21 13:45:15 is there some class that i can use to add a little information bar at the bottom of my app that has a slide up animation? Jun 21 13:45:34 snackbar Jun 21 13:45:48 pfn, that's what I wanted to use but it has a time limit? Jun 21 13:46:07 then set the time limit to infinite Jun 21 13:46:17 pfn, then I can hide it manually? Jun 21 13:46:25 yes Jun 21 13:46:28 Thanks Jun 21 13:49:36 Hey, just wanted to check, is this a good place to ask miscellaneous android development questions? Jun 21 13:50:44 yes indeed Jun 21 13:59:37 what does keyStore.load(null) even mean? Jun 21 14:00:33 hi, how i can create mock of object ? Jun 21 14:00:54 i dont have api now, i need mockup the object Jun 21 14:26:19 !seen bolovanos Jun 21 14:26:20 bolovanos, you do realise I'm an AI, don't you? Jun 21 14:26:42 !seen danijoo Jun 21 14:26:42 bolovanos, danijoo ( ~danijoo@p4FF0C97B.dip0.t-ipconnect.de ) quitted with the message << Read error: Connection reset by peer >> 2wks 3days 20hrs 27mins 46secs ago. Jun 21 14:27:36 what happened with danijoo - he was here 17days ago? Jun 21 14:29:36 did anyone dealt with consent of data transfer - as outlined in this article? http://www.iubenda.com/blog/consent-from-users-and-developers-to-data-processing-and-transfer/ Jun 21 14:37:54 hey, I am just trying to create my first react-native app for android. I need to run "adb reverse" but this command does not exists on my adb 1.0.31 Jun 21 14:38:03 is 1.0.31 super old or was the reverse command removed recently? Jun 21 14:46:48 https://twittercommunity.com/t/privacy-statement/53287 Jun 21 14:51:32 anyone know if there's an icon with an X instead of the check like this: https://design.google.com/icons/#ic_verified_user. not sure if i missed it. Jun 21 14:52:20 dsardari: normally its hollow and then fills in with the tick Jun 21 14:52:54 dsardari: see the "turned in" and "turned in not" for example Jun 21 14:53:07 dsardari: do you want a verified user one with an x then? Jun 21 14:53:09 ah i see Jun 21 14:53:17 well, verified and unverified Jun 21 14:53:37 x for mean would mean "not verified" not "unverified" Jun 21 14:53:43 i suggest a hollow icon Jun 21 14:53:56 if they dont have one, i can sort one out Jun 21 14:53:59 brb Jun 21 14:56:29 Yeah, i'm thinking I would need three different types actually. Verified, Unverified and Not verified. Jun 21 15:03:28 make one, easy with vectors Jun 21 15:03:54 just swap out the check for an x Jun 21 15:04:55 yeah, probably will. just wondering if i missed it on there. Jun 21 15:05:15 use your eyes :p Jun 21 15:05:52 D: Jun 21 15:06:18 what analytics do you use in your application Jun 21 15:06:25 what would you suggest? Jun 21 15:06:45 is this https://answers.io/ advisable, or not? Jun 21 15:10:29 yeah, answers is pretty nice. Jun 21 15:12:27 dsardari, are there any others you have considered before choosing answers (gues you are using them)? Why did you choose answers? Jun 21 15:12:59 interesting, California has to switch all power customers to time of use plans by 2019, good time to buy solar then Jun 21 15:13:12 good thing I'm on an exempt power provider Jun 21 15:14:33 yes firstly they will push you to spend money on solar or any other renewable energy source, and than they tax you for its usage :) Jun 21 15:15:29 bolovanos: it was already decided before i started here. before that i didn't really use much in terms of analytics. Jun 21 15:17:12 dsardari, ok - thank you for your honesty and opinion :) Jun 21 15:20:41 np. i'd just try out the alternatives and see what you like best. Jun 21 15:33:24 is there a way to install wearable-2.0.0-alpha1 on jenkins? Jun 21 15:44:57 having a hard time getting view dimensions taking into account keyboard and titlebar (if displayed) when using windowSoftInputMode="adjustPan". im trying global layout listener which seems to work except for titlebar Jun 21 15:46:25 its for an opengl app. im using adjustPan because it avoids any blink artifacts when hiding/displaying keyboard. i want to just find the new dimensions of view and take into account in my opengl drawing Jun 21 15:47:50 do you guys think this ndroid smartphone from acer is enough for my mobile development tasks ? it's the cheapest acer smartphone with the jellybean version of android http://www.mytek.tn/smartphone-tunisie/1812-smartphone-acer-liquide-z4.html Jun 21 15:47:55 *this android $ Jun 21 15:55:27 Can anyone help with Rx? I'm trying to have an EditText > search > output results flow. I want everything to happen off the MainThread. Here is a rough psuedo code http://pastebin.com/UhtXjAE4 Jun 21 15:56:16 ? subscribe on a different thread then Jun 21 15:56:44 and morning all o7 Jun 21 15:58:19 hi Jun 21 15:58:35 orbyt_: When I do that I get onError after typing Jun 21 15:59:12 test... I think I disconnected by accident. Jun 21 15:59:19 what? Jun 21 15:59:34 eghdk: post your code and ur errors Jun 21 16:00:13 hey can anyone help me ? where android stores his settings? build.prof into /system and where else? Jun 21 16:05:41 orbyt_: http://pastebin.com/yn1Gpswe full code. and error is: Must be called from the main thread. Jun 21 16:05:59 eghdk: do you have 5 minutes to try to help me? Jun 21 16:06:37 jackbrown: If your question is the one about build.prof then I have no idea. Jun 21 16:06:53 eghdk: thanks anyway Jun 21 16:37:03 Can anyone help with Rx? I'm trying to have an EditText > search > output results flow. I want everything to happen off the MainThread. http://pastebin.com/yn1Gpswe full code. and error is: Must be called from the main thread. Jun 21 16:37:39 eghdk: You’re missing an observeOn() main thread Jun 21 16:38:17 jaana: Does the order matter? Like where I put it? Jun 21 16:38:25 Or anywhere in that chain would work fine? Jun 21 16:41:12 jaana: Just added it, and ran it and I still get the issue right when I just into the activity. onError gets called and the output is "Must be called from the main thread" Jun 21 16:42:26 which call exactly is triggering this error? pastebin the stack trace Jun 21 16:44:38 jaana: Okay. Getting that now. Jun 21 16:48:52 I'm getting a nullPointerException on getVisiblity() on initialized object, method code here http://pastebin.com/ChW0Y3Mu, full code here http://pastebin.com/Q44pbawE Jun 21 16:49:03 Can someone try to point out the issue? Jun 21 16:50:08 i think i am going crazy Jun 21 16:51:25 Gahata, make a breakpoint in that line and watch totalText Jun 21 16:51:33 maybe it isnt assigned properlz Jun 21 16:55:15 jaana: http://pastebin.com/hfbPQpnA Jun 21 17:02:55 any recommendations for getting starting with tdd on android development? Jun 21 17:03:06 are people just using junit? Jun 21 17:05:35 Can someone tell me how Visiblity variable of a layout is named in debugger? Or does it just change visiblity by changing size to 0 on gone and overlaying white on invisible? Jun 21 17:09:37 Hi what is happening? After syncing gradle the error "failed to find target with hash string 'android-21' in: /opt/sdk/android" occurs. I've the application folder: app and the library folder: pdk (https://github.com/pinterest/android-pdk) Jun 21 17:10:08 Also I've include ':app', ':pdk' Jun 21 17:14:23 Can anyone help with Rx? I'm trying to have an EditText > search > output results flow. I want everything to happen off the MainThread. http://pastebin.com/yn1Gpswe full code. and error is: Must be called from the main thread. Jun 21 17:23:27 Is there something like clearAllChilds ? Jun 21 17:27:03 Fleuv: do you have that in your sdk? Jun 21 17:27:19 or are you on sdk 23 or so.. Jun 21 17:27:41 snapfractalpop i think im on to something Jun 21 17:27:55 In which version did RecyclerView come in? Jun 21 17:28:00 I had that message from an imported github project, and just had to change the gradle to reflect the sdk version I had Jun 21 17:28:36 pdk's gradle file was on compileSdkVersion 21 i changed it to 24 what the app's gradle also uses. Jun 21 17:28:46 if in AS, you could also change it under project structure from the file menu Jun 21 17:29:07 (which, in turn, would change the appropriate text in the gradle build file) Jun 21 17:31:36 Anyway now I've the problem that i'm missing: org.apache.http.message Jun 21 17:32:03 how do I propper install this, do i've to use gradle for this? Jun 21 17:33:26 Fleuv: I'm not sure.. but I assume your original issue is resolved? Jun 21 17:33:41 Yes it is! Jun 21 17:33:50 finally after 2 days :) Jun 21 17:33:55 nice Jun 21 17:34:45 anyone here doing tdd for android? Jun 21 17:34:49 but I actually solved it myself, however your answer was also the answer to my problem Jun 21 17:35:32 Fleuv: good to hear. I have run into that issue so many times, and figured it out by trial and error.. Jun 21 18:02:52 So when 2 items in a recyclerview get swapped, say items with index 2 and 3, do I have to call only notifyItemMoved(2, 3) or that and notifyItemMoved(3, 2) also? Jun 21 18:06:00 just the 1 Jun 21 18:06:48 I'm completely getting mad is it possible that nobody knows WHERE Android stores settings when you change for example ringtones ? There is a file or something ? Jun 21 18:08:15 http://android.stackexchange.com/questions/40719/where-are-android-settings-stored Jun 21 18:08:20 first result in google Jun 21 18:08:25 have you tried there Jun 21 18:08:47 Hi. Just installed android studio on ubuntu, getting the render error described in http://stackoverflow.com/questions/35914565/rendering-problems-exception-raised-during-rendering-com-android-ide-common-ren but I've only one version on my dropdown. Where do I install other SDK versions, please? Jun 21 18:09:39 i cant remember the last time i used preview mode Jun 21 18:09:42 in sdk manager Jun 21 18:10:04 menu Tools -> Android -> SDK Manager Jun 21 18:10:38 check api 23 or whatever you want and apply Jun 21 18:10:43 DuncanT: as per Ashirens instructions, there is also a link from that menu to the "standalone sdk manager" Jun 21 18:13:49 Ashiren: snapfractalpop: Great, thanks. Downloading other versions now. Jun 21 18:14:51 DuncanT: you're welcome Jun 21 18:15:25 is it possible to start two emulators from the same image? Jun 21 18:15:30 Is there really no one here that uses junit, or does any test driven development for android? Jun 21 18:15:43 First time trying to write an android app in years. Sure is a lot more faff than python :-) Jun 21 18:18:53 Ashiren: have you read this? Jun 21 18:18:55 http://cyrilmottier.com/2016/06/20/launch-screens-from-a-tap-to-your-app/ Jun 21 18:18:58 super interesting Jun 21 18:20:05 g00s: http://cyrilmottier.com/2016/06/20/launch-screens-from-a-tap-to-your-app/ Jun 21 18:20:18 oh hai thepoosh Jun 21 18:20:24 read up Jun 21 18:20:35 lol ok i sec Jun 21 18:21:14 oh video Jun 21 18:21:21 nope Jun 21 18:21:24 slides Jun 21 18:21:29 slideshare Jun 21 18:22:13 mhm Jun 21 18:23:13 Anybody know of a nice Tutorial that shows how one can make Expandable Recyclerviews with Fragments inside them ? Jun 21 18:23:35 wat?! Jun 21 18:23:48 cart_man: you mean like view pager? Jun 21 18:23:49 we need more splash screens Jun 21 18:24:34 hm dunno Jun 21 18:25:01 thepoosh: is that what its called? Jun 21 18:25:01 ALL THE SPLASHES Jun 21 18:25:12 seems like it to me Jun 21 18:25:26 swipeable fragments Jun 21 18:28:46 I have mixed feelings about all that Jun 21 18:29:11 thepoosh yeah, thats a level of polish i don't worry about .. :D Jun 21 18:29:34 me too, but it seems cool to do Jun 21 18:30:07 it kind of seems like it's not truly the "app", but a facade Jun 21 18:30:15 thepoosh lol not really :D Jun 21 18:30:45 it still takes you to the app store and warns about permission iirc.. right? Jun 21 18:30:47 more lines of code , more shit to keep in your had, "what the hell is this for? oh some smoke and mirrors" Jun 21 18:31:00 hahah Jun 21 18:31:01 g00s: that is was separates the cyril from the pack Jun 21 18:31:01 *your head Jun 21 18:31:34 thepoosh depends, if you're the only person working on a popular app, i'd say these things are hard to worry about Jun 21 18:31:38 g00s: that tends to be the direction of my sentiments about it Jun 21 18:31:45 if you have a team, or a few people, somebody can worry about smoke and mirrors Jun 21 18:32:03 yep Jun 21 18:32:08 g00s: how popular is your app? Jun 21 18:32:11 more chores, basically Jun 21 18:32:14 thepoosh not very :D Jun 21 18:32:19 we have the UI/UX guy Jun 21 18:32:21 he's not me Jun 21 18:32:40 thats cool, the UX guy can worry about it - but UX can come at a cost too ;) Jun 21 18:32:53 I'm more of an architecture type a guy Jun 21 18:33:08 hi design systems and background crap Jun 21 18:33:13 which is amazing if you ask me Jun 21 18:33:48 i like UI/UX too but tend to be more old-school , focusing on usability. for example my app is used outdoors so i have large buttons , high contrast themes, etc Jun 21 18:34:16 does old school mean you draw everything yourself on canvas? that is badass Jun 21 18:34:23 lol no :D Jun 21 18:34:45 i have a few colleagues who have been around since J2EE Jun 21 18:34:48 assembly language Jun 21 18:34:56 they had to canvas around a lot Jun 21 18:34:58 also read research on dashboard design which informed my screen layouts, maybe not material but basic on science :D Jun 21 18:35:06 he likes to build his app with logic gates Jun 21 18:35:20 Hi all:) Jun 21 18:35:21 snapfractalpop yeah, and only NAND ones at that ! Jun 21 18:35:25 snapfractalpop: pleb, real programmers use butterflies Jun 21 18:35:30 haha Jun 21 18:35:42 you can do everything with nand gates right ? :D Jun 21 18:35:48 true Jun 21 18:35:48 g00s: yes Jun 21 18:35:53 and nor gates as well Jun 21 18:35:57 nand is a full logic system Jun 21 18:36:10 :D Jun 21 18:36:11 מערכת לוגית שלמה un hebrew Jun 21 18:36:19 can't translate Jun 21 18:36:20 but nand can be made cheaper Jun 21 18:36:21 :S Jun 21 18:36:53 thepoosh: I have no idea what that says.. Jun 21 18:36:57 looks like dreidels Jun 21 18:37:09 but cool to see unicode in my terminal Jun 21 18:37:11 snapfractalpop: looking into it, it's the hebrew term Jun 21 18:38:15 thepoosh i find a lot of the material animations to be "delightful" for the first 10 seconds, then once you anticipate them i get impatient and they get in the way Jun 21 18:38:34 meaningful motion ok, but i think people are spending too much time on stuff exploding, etc Jun 21 18:38:41 g00s: spot on Jun 21 18:38:43 g00s: they are very good for when you do background stuff Jun 21 18:38:46 like spinners Jun 21 18:39:09 when they get in the way of "user performance" it's annoying Jun 21 18:39:21 Can anyone help with Rx? I'm trying to have an EditText > search > output results flow. I want everything to happen off the MainThread. http://pastebin.com/yn1Gpswe full code. and error is: Must be called from the main thread. Jun 21 18:39:42 in all of my projects to date, I've completely neglected testing Jun 21 18:40:05 I have embraced it in web dev.. and other platforms / languages.. Jun 21 18:40:15 but I haven't touched testing in android Jun 21 18:40:30 is there a consensus about it at this point? Jun 21 18:40:41 popular frameworks.. etc.? Jun 21 18:41:02 thepoosh one of the areas i've been looking into is alarm design (my app can trigger alarms when things get out of range), thats a whole interesting areas itself (and not that much is written about it). but thats the kind of informed old-school UI i like reading about Jun 21 18:41:22 nah Jun 21 18:41:27 look at timely Jun 21 18:41:35 it's amazing UI for alarms Jun 21 18:41:39 not time alarms Jun 21 18:42:03 measurement alarms, system failures, whats actionable, whats not, whats distraction, etc Jun 21 18:42:29 btw, the term i was looking for was "logical formal system" Jun 21 18:42:30 for example, you are homer simpson at the nuclear plant - and everything starts blinking red Jun 21 18:42:33 snapfractalpop: ^ Jun 21 18:42:40 lolz Jun 21 18:42:53 but whats the most important alarm to focus on first ? probably the one about the fuel rods being jammed Jun 21 18:43:18 or maybe its the water leaking into the electrical control room Jun 21 18:45:27 g00s: when you said "out of range" I thought you meant "too far away" Jun 21 18:45:54 now.. I gather, you mean some value gets outside of some defined value range? Jun 21 18:46:18 like my CPU temperature alerts? Jun 21 18:47:48 yes, my app has good, bad, and OK ranges for things Jun 21 18:48:33 i read some steven fews books for this design Jun 21 18:48:52 on dashboard design Jun 21 18:49:58 also ranges have hysteresis, rising and falling thresholds, etc Jun 21 18:51:40 thepoosh have you tried jack / jill yet ? Jun 21 18:51:56 thepoosh: I am not quite sure that is what I need... let me show you an example -> https://www.bignerdranch.com/blog/expand-a-recyclerview-in-four-steps/ Jun 21 18:52:01 nope, gave it a five minute try and it wasn't smooth as butter Jun 21 18:52:02 Check the first example Jun 21 18:52:11 thepoosh ha Jun 21 18:52:54 cart_man: yes, and? Jun 21 18:52:59 thepoosh silly question, but will stuff ever be as smooth as butter? :P Jun 21 18:53:03 still should not be a fragment Jun 21 18:53:21 well, no but i moved over to gradle waaaay after it was due Jun 21 18:53:31 and now i know my way around it Jun 21 18:53:37 thepoosh: So that is what View Pagers are ? Jun 21 18:53:37 maybe if were not part of a team Jun 21 18:53:42 nah Jun 21 18:53:47 Anyone here familiar with RxBindings and RxAndroid? Really confused as to why my Rx code is failing with a threading exception. Jun 21 18:53:51 that should be a recyclerview Jun 21 18:53:56 buzzzz Jun 21 18:54:54 eghdk: i am Jun 21 18:55:10 JakeWharton: I'm trying to have an EditText > search > output results flow. I want everything to happen off the MainThread. http://pastebin.com/yn1Gpswe full code. and error is: Must be called from the main thread. Jun 21 18:55:45 you're telling it to subscribe on the IO thread Jun 21 18:56:01 this means that the observable will do its work (aka setting the listener on the view) on the IO thread instead of the main thread Jun 21 18:56:26 if you want to get the text changes on the IO thread then you want observeOn Jun 21 18:57:01 It's basically, that my search method in synchrnous but it could take some time. So what's my best plan of action? Jun 21 18:57:39 I was thinking that this may work, but after failing, I thought maybe changing my search() method to an Observable and trying to combine that with the Observable from the EditText. Jun 21 18:58:57 thepoosh: Im sorry but I do not see how my example gets talored to be what I want in my example ? Jun 21 18:59:08 eghdk: both of those will work Jun 21 18:59:25 JakeWharton: I want the map() and I'm going to include a debounce() as well, how do I make sure those happen in the background? Jun 21 18:59:54 Is it literally just as easy as subscribeOn(MainThread) and observeOn(IO Thread)? Did I just have those backwards JakeWharton ? Jun 21 19:00:18 you don't need subscribeOn Jun 21 19:00:39 RxJava is synchronous by default so assuming this code executes on the main thread you already get that for free Jun 21 19:00:45 any better ways of downloading a file other than asynctask? Jun 21 19:02:20 So just observeOn(IO Thread). God. I thought I understood the difference. =( So one last thing JakeWharton what ends up being called on the MainThread then? Just the textChanged listener? everything else (map, debounce, skip) happens on io thread? Jun 21 19:02:46 yes Jun 21 19:04:01 using a Loader to download an update file, is that crazy? Jun 21 19:04:10 no Jun 21 19:05:37 JakeWharton: Thanks. I'll give it a whirl. And I may try the other option of combining another observable. I don't know how I feel about having debounce run on the IO thread. Seems like it belongs somewhere else maybe, but my DB call feels like it SHOULD be on the io thread. Jun 21 19:06:23 debounce can run on the main thread Jun 21 19:06:30 all it does it post a message at a time in the future Jun 21 19:07:47 thepoosh this was pretty good https://uxmag.com/articles/the-psychologists-view-of-ux-design Jun 21 19:08:05 Hello could anyone can help me to restore my IMEI ? I can't access to Engineering mode using the code #*#*.... Jun 21 19:08:05 * thepoosh is reading Jun 21 19:08:23 jackbrown: wrong channel Jun 21 19:08:35 try #android-root Jun 21 19:08:36 thepoosh: please is really important Jun 21 19:08:40 jackbrown how many times do we have to tell you, wrong channel ? Jun 21 19:08:55 i mean, you are persistent, over what - weeks now ? Jun 21 19:10:30 If I am looking to make a "utils" class, how should I go about doing that? Jun 21 19:10:48 a "utils" file, that is Jun 21 19:11:03 Should I create a "singleton"? Jun 21 19:12:15 Would someone advice me against Expandable ListView with Fragments ? Jun 21 19:12:29 cart_man should work ok, why against ? Jun 21 19:12:52 g00s: Usually when I ask something like that I am pummeled with different ways to do things better Jun 21 19:12:57 I guess it should work then Jun 21 19:12:57 cart_man: don't do it! Jun 21 19:12:58 ExpandableListView is kinda pita though, BNR guys have an Expandable RecyclerView Jun 21 19:13:13 BRN ? Jun 21 19:13:15 BNR` Jun 21 19:13:19 big nerd Jun 21 19:14:07 JakeWharton: When I do observeOn(IO Thread) though the debounce happens on the IO thread no? No issues with that? Jun 21 19:16:00 debounce happens on computation scheduler by default unless you provide a scheduler to it directly Jun 21 19:17:52 So I followed what you said and did observeOn(IO thread). Works, but I get a crash when it gets to my Toast. Any easy way to get onNext to do it's work on UI thread? Or am I stuck putting my Toast in a runOnUiThread block? Jun 21 19:19:29 JakeWharton: I thought the point of this was that the background work happens on the io thread, and the result comes back to the main thread. Jun 21 19:21:45 hi, can anyone point me to the right place in starting a background process even when the app is terminated? Jun 21 19:22:08 I'm not really sure how other applications do it. Receiving notifications even when the program is killed. Jun 21 19:23:02 gcm? Jun 21 19:23:11 not sure what you mean by receive notifications Jun 21 19:23:17 um Jun 21 19:23:27 plugyn: gcm, jobscheduler might be what you're looking for, or broadcast receivers Jun 21 19:23:42 You know how in messenger apps, your program isn't opened but you still recieve texts or other things. Jun 21 19:23:48 alright, thanks~ Jun 21 19:24:38 is there another way to download a 60KB file without needing permission to WRITE EXTERNAL MEM? Jun 21 19:26:01 eghdk: you can use observeOn(mainThread()) to move back to the main thread at any point Jun 21 19:31:16 JakeWharton: Oh. Wait. So the order between the operators matters? As in, I can call observeOn(UI Thread).debounce().observeOn(IO thread).map() etc? I thought you were only allowed to call it once and it applied to the whole block of RX code. Jun 21 19:31:44 order matters very much so Jun 21 19:31:51 these are operators on a stream, not a builder Jun 21 19:35:43 ah. JakeWharton that makes a ton more sense. Thanks. Thats why before I didn't stash my changes I had stuff working, but it was probably because I just so happened to have them in an order that worked Jun 21 19:35:51 Thanks. APpreciate it Jun 21 19:36:12 sure. no problem. Jun 21 19:37:06 eghdk there is an RxJava book coming out from oreilly. might be one of the few tech books i by in 2016 Jun 21 19:37:37 is there a way to know sort of when android studio 2.2 will be out? Jun 21 19:37:42 (officially) Jun 21 19:37:44 plugyn Search for push notifications. https://firebase.google.com/docs/cloud-messaging/ Jun 21 19:37:46 i think Ben was supposed to be one of the authors, but i guess that changed Jun 21 19:37:50 g00s: I saw that there was one from Manning as well. If JakeWharton you know any go to resource you would recommend... let me know =) Jun 21 19:38:18 eghdk the manning Grokking Rx is really preliminary, will be a while until its out. i think 2 chapters are ready Jun 21 19:38:28 i don't really like books Jun 21 19:38:37 but they do have a few other Rx books, but have examples in Scala. i don't know Scala so :( Jun 21 19:38:47 the Rx one is okay. i'm a reviewer on it Jun 21 19:39:01 JakeWharton the Grokking one ? Jun 21 19:39:18 jeez i hope now Jun 21 19:39:20 not Jun 21 19:39:29 https://www.manning.com/books/grokking-rx Jun 21 19:39:32 lol Jun 21 19:39:36 JakeWharton: No books? Then what? Just hands on the keyboard...? Jun 21 19:40:17 no Jun 21 19:40:19 http://shop.oreilly.com/product/0636920042228.do Jun 21 19:40:41 oh yeah, that looks good Jun 21 19:40:48 eghdk: yes. actually doing things is 10x more effective way of learning Jun 21 19:41:18 you fail, break things, get frustrated, swear, delete tons of crap... but you come out having a deeper understanding than just reading about it Jun 21 19:41:56 wviana: thankya Jun 21 19:42:07 just reading about it will be like water off ducks back. i like to read a book after i've struggled and didn't have all my answers Jun 21 19:42:12 is this an appropriate place to discuss firebase on android? Jun 21 19:42:13 plugyn take a look in it too https://github.com/firebase/quickstart-android/tree/master/messaging Jun 21 19:42:21 great, thanks ^_^ Jun 21 19:42:30 matt_j: kind of Jun 21 19:42:31 plugyn welcome Jun 21 19:43:00 so, I was calling dataSnapshot.getValue(Foo.class), and there was a runtime error saying Foo needs an empty consturctor Jun 21 19:43:02 Writing things and reading things are complementary. You learn a lot by writing things but you will miss out on more general lessons or insights that seasoned authors will put in their books. Jun 21 19:43:03 which makes sense Jun 21 19:43:10 but I did have an empty constructor Jun 21 19:43:24 huh Jun 21 19:43:24 JakeWharton: I'm gonna take that approach for a while and see what happens. My issue comes in with that theres just some books that are MUST reads for a java dev that I haven't read yet. Like do you have any MUST reads? effective java? CIP? etc? Jun 21 19:43:25 If all you do is writing things, you end up very deep but not very broad. Jun 21 19:43:44 effective java and JCIP are the only two books i've ever read about programming Jun 21 19:44:25 jaana: i'm not against reading. it's mostly just books that i'm against Jun 21 19:44:28 i think a lot of stuff in books eventually makes its way to whatever ambient stuff you read Jun 21 19:44:50 like pragmatic programmer, i must have read that over 10 years ago ... but you see those pieces of advice on daily basis Jun 21 19:45:26 matt_j: pastebing the Foo class or its constructors :? Jun 21 19:45:43 so it was cool back then but now its common sense even if you haven't read it Jun 21 19:45:46 in programming, if you strictly use a book to learn, you're just fuarking yourself. Books are meant to compliment and provide a more detailed insight to what you're learning. Whether it's oop, functional, a specific language, or just standard practices Jun 21 19:45:53 Thanks. JakeWharton I will make those two books a priority to get to. Jun 21 19:46:04 would be nice if JCIP was updated Jun 21 19:46:09 the third edition of effective java should be out this year Jun 21 19:46:24 Josh seems too distracted to finish it Jun 21 19:47:01 this was pretty good, i realized i don't know much http://shipilev.net/blog/2016/close-encounters-of-jmm-kind/ Jun 21 19:47:23 i like what one guy said "i'll just stick to queues" haha Jun 21 19:47:40 a good example of non-book content Jun 21 19:50:44 JakeWharton JCIP ? Jun 21 19:52:09 Does realm have just a .deleteObject type method? I know how to delete all objects of a certain class but how would i delete only a certain object.. Jun 21 19:54:53 maybe its only in newer versions of realm Jun 21 19:56:45 ah removeFromRealm() Jun 21 20:02:54 Ashiren: http://pastebin.com/gkUtV8gN Jun 21 20:05:41 sounds right to me Jun 21 20:06:51 yeah Jun 21 20:07:09 waits_, Java concurrency in practice Jun 21 20:07:16 what if you remove the nonempty contructor? Jun 21 20:07:28 same error Jun 21 20:07:31 uhh.. ooops. wviana ^^ Jun 21 20:10:05 I'm reading Code Clean. I was reading Code Complete first. But I've found this one more interesting. Also reading The Busy Coder's Guide to Android Development https://commonsware.com/Android/ Jun 21 20:21:16 wviana yeah uncle bob is usually entertaining Jun 21 20:21:36 Anyone know how to transfer files from linux to android? With the new android update, I appear to be unable to access my phone's fs with android-file-transfer :| Jun 21 20:24:32 plugyn: MTP Jun 21 20:24:48 plugyn: ADB Jun 21 20:25:02 alright Jun 21 20:27:55 if i want to upload my application to google play, what are the stops? Jun 21 20:27:57 steps* Jun 21 20:28:56 Hi, I want to implement a seekbar similar to the Youtube App one Jun 21 20:29:26 g00s: Hey so I have checked out the BNR's Recycler View but for some reason when I scroll down some of the first Views changes takes affect on the 8th or 7th View as well Jun 21 20:29:33 I want to make a thumb drawable which grows / shrinks in size, but I don't know Jun 21 20:29:35 how Jun 21 20:29:55 I found AnimateDrawable but it's a frame per frame thing, not a "shape x to shape y" smooth animation Jun 21 20:30:19 the default seekbar does that automagicallt Jun 21 20:30:22 automagically* Jun 21 20:30:39 pretty sure you can intercept the thumbs on touch event as well Jun 21 20:32:11 if i want to upload my application to google play, what are the steps? Jun 21 20:33:12 orbyt_, notice how when you stop dragging the thumb on a seekbar, it IMMEDIATELY changes to the default drawable, and how the youtube app does not do that at all Jun 21 20:33:41 By immediately I mean with a small animation, but you don't see it Jun 21 20:33:43 oh well im not looking at the youtube app rn. Sounds weird tho Jun 21 20:33:56 It's a far better UX than the default android seekbar Jun 21 20:34:12 With the default android seekbar the user does not see thumb drawable changes Jun 21 20:34:26 It's either the default drawable or you're hiding it with your finger Jun 21 20:34:35 craptalk https://developer.android.com/distribute/tools/launch-checklist.html Jun 21 20:35:01 Ribesg: the youtube seekbar looks like a default red seekbar Jun 21 20:35:36 I'm pretty sure they are actually using the SeekBar class, or rather AppCompatSeekBar Jun 21 20:35:45 I'm also sure it's not the stock one Jun 21 20:38:49 g00s Do you think I should read the Pragmatic Programmer first ? Jun 21 20:39:22 hm. its kinda dated, probably not. i mean the principles are still true ... Jun 21 20:39:56 its a quick read though, maybe a few hours Jun 21 20:40:13 its so old i don't think you can buy from pragprog web site Jun 21 20:41:35 what do you guys do when u go to name something Jun 21 20:41:47 contact a branding expert? Jun 21 20:41:51 wviana clean code should be enough Jun 21 20:42:13 g00s Thank you for the advices. Jun 21 20:42:37 np Jun 21 20:42:38 g00s What about code complete ? Have you ever read it ? Jun 21 20:42:53 yeah, again - really old, i read the 1e years ago Jun 21 20:43:14 one of those books were lots of things percolate into the mainstream so it might not be so a-ha if you read it Jun 21 20:43:20 long but it was worth it at the time Jun 21 20:43:58 wviana i heard good things about manning 'soft skills' Jun 21 20:44:11 but i usually find those things cheesy, but lots of people liked it Jun 21 20:48:39 How do you properly deal with passing class instances to a Fragment? Jun 21 20:49:14 Ribesg as start up params or after its visible ? Jun 21 20:49:36 An reference to an instance which is needed at startup and will not change Jun 21 20:49:46 My problem is Android randomly killing stuff, as always Jun 21 20:49:56 Android will just call the default constructor Jun 21 20:50:11 yeah bad idea, you have to pass Parcelables Jun 21 20:50:18 No Jun 21 20:50:29 You can't just make anything implement Parcelable Jun 21 20:50:32 I'm not passing data Jun 21 20:51:32 Is there a way to somehow listen to fragment recreation by android? Jun 21 20:52:13 Ribesg You could set retainInstance in your fragment. Jun 21 20:55:11 retainFragment does not prevent Android from destroying the fragment, does it? Jun 21 20:55:17 It looks like it's for configuration changes Jun 21 20:57:09 has anyone tried stetho here? Jun 21 20:58:13 yeah Jun 21 20:58:49 Ribesg https://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean) Jun 21 20:58:58 Ribesg not sure about it. Jun 21 20:59:37 dsardari I using it. It's cool/useful Jun 21 20:59:58 wviana, it basically looks like the view is still destroyed but the java instance itself is the same, so I may be able to set an instance to a field and not loose it Jun 21 21:00:01 dsardari Mainly when I need to check some hhtp requests. Jun 21 21:00:14 use it with sqlite at all? Jun 21 21:00:25 dsardari: no Jun 21 21:00:27 going to check it out now, jw others experiences Jun 21 21:00:45 Ribesg I would try it. Seem that it don't imply big changes on code. Jun 21 21:01:10 gotcha Jun 21 21:01:18 Have to go. Good Night. Till tomorrow. Jun 21 21:17:51 is it just me or is VectorDrawable ridiculously slow Jun 21 21:18:24 like, if I try to use them in a recyclerview, my animations lag Jun 21 21:18:34 why should I have to worry about where my drawables inflate Jun 21 21:22:21 hmm bottlenecked at String.indexOf Jun 21 21:22:51 how do I structure my paths to avoid that... Jun 21 21:24:48 svgo reduces the size of my pathData attribute by 20%, but that's probably still too long Jun 21 22:02:14 why is it that the android emulator always eventually becomes unbootable? Jun 21 22:02:38 and the android logo animation goes to a forever loop Jun 21 22:02:45 and there is no debug output anywhere Jun 21 22:03:34 im so sick and tired making the image from scratch every fucking time Jun 21 22:06:40 yeah, that’s why no one really uses the emulator Jun 21 22:06:53 what do you use then? Jun 21 22:08:09 JyZyXEL: take a guess Jun 21 22:08:40 how do i at least make an image that i can always restore when shit hits the fan? Jun 21 22:08:54 so i don't always have to start from scratch Jun 21 22:09:41 JyZyXEL, I dont have that issue Jun 21 22:09:52 i use devices Jun 21 22:09:54 are you using haxm Jun 21 22:10:22 you mean Vt-x? Jun 21 22:10:37 yes i use -enable-kvm Jun 21 22:10:50 well, -qemu -enable-kvm Jun 21 22:11:04 ah, youre in *nix? Jun 21 22:11:13 Im not too familiar with that then Jun 21 22:11:23 try and use a physical device if you can? Jun 21 22:11:32 just use a device. you’ll save yourself sooooo much hassle and headache Jun 21 22:12:10 ... are you insane? what do you think im a millionaire? i cannot even afford one device, let alone multiple ones Jun 21 22:12:25 then you shouldn’t be doing android dev Jun 21 22:12:33 fuck. you. Jun 21 22:12:40 i’m sorry, but if you can’t test on a real device, then you have no idea if your app works Jun 21 22:13:53 and there are plenty of cheap devices out there Jun 21 22:14:02 Sounds like someone is cranky and needs a nap Jun 21 22:19:13 "shouldn't be doing doing android dev" just because im poor; there is only one correct answer for that Jun 21 22:19:46 if you can’t afford the tools, then you’re not going to be good at it Jun 21 22:19:50 JyZyXEL: The emulator isn't a replacement for a device. You can't do something without the tools to do it Jun 21 22:20:13 I can't fix a house without a hammer, and using a random brick I found on the ground doesn't help. Jun 21 22:20:24 well it does what i need it to, it just breaks a lot Jun 21 22:20:30 no, it doesn't Jun 21 22:20:56 Emulator can't simulate connection changes, for one Jun 21 22:21:00 a house with no nails Jun 21 22:21:01 tbh a brick is a fairly good replacement for a hammer Jun 21 22:21:18 ds84182: it can, actually Jun 21 22:21:24 zinx: Since when? Jun 21 22:21:33 Unless it's really hidden I've never seen it Jun 21 22:21:44 since the early days. Jun 21 22:21:51 lol Jun 21 22:21:52 the simulator is also not going to prepare you for the random crap the different devices are going to throw at you Jun 21 22:21:59 ds84182: you have to use the emulator's console Jun 21 22:22:04 Oh, thats why Jun 21 22:22:12 I've never used the emulator console :P Jun 21 22:22:22 though for random internet i think there's a key press Jun 21 22:22:51 anyway, you can simulate calls and all sorts of things :/ Jun 21 22:23:40 they need 'simulate samsung' Jun 21 22:23:56 that would be rather difficult even with samsung's cooperation. Jun 21 22:24:02 Anyways, JyZyXEL you can get an Android phone for dirt cheep now. Chinese knockoffs can get sub 100 USD Jun 21 22:24:08 stick to using the official API.. Jun 21 22:24:24 zinx: try doing that with Calendar stuff Jun 21 22:25:22 isn't there a fully open source calendar app included with AOSP? >_< Jun 21 22:25:43 there might be. but I’m talking about the crap you encounter with actual devices Jun 21 22:26:22 sorry if i sound like an ass, but usually people encountering that sort of problem are doing it wrong. Jun 21 22:26:30 nope Jun 21 22:26:36 samsung fucked the calendar api Jun 21 22:26:45 tell goog :P Jun 21 22:27:45 zinx google calendar has been closed for long time ... Jun 21 22:27:54 whatever is in aosp is likely long abandoned Jun 21 22:28:15 probably some gingerbread era stuff :) Jun 21 22:28:24 :x Jun 21 22:28:36 those were the days Jun 21 22:28:51 shmooz lol now i'm thinking 10,000 maniacs Jun 21 22:29:08 been using android since before cupcake Jun 21 22:32:04 with the calendar stuff, it’s an intent based API. Samsung devices don’t include the AOSP calendar; they have their own calendar. And so the package you address in the intent has to be different for Samsung than other devices Jun 21 22:33:36 http://android-developers.blogspot.com/2016/06/improving-stability-with-private-cc.html Jun 21 22:37:09 bah, should have kept libcrypto.so and libssl.so off the whitelist Jun 21 22:38:26 hi there guys ... i need your help ... I have a NDK project that is causing a bug and I am unable to fix it ... can you guys help ? Jun 21 22:39:22 Here is my bug: https://forums.unrealengine.com/showthread.php?113441-Unreal-with-Custom-Android-Activity Jun 21 22:40:19 grr, Unreal has been pushing this NativeActivity thing haven't they Jun 21 22:40:30 hehe ... yes Jun 21 22:40:39 wait, are you the same person that asked this question last week? Jun 21 22:40:48 yup ... its me again Jun 21 22:41:01 You didn't add android.app.lib_name to the second activity? Jun 21 22:41:25 i haven't been able to resolve this Jun 21 22:41:59 don't think so Jun 21 22:42:09 oh ... u mean the meta data ... yes I did ... Jun 21 22:42:11 sorry ... Jun 21 22:42:54 I did mention the meta data in the manifest for the activity and I also do system.load in a static block in the Java activity .... Jun 21 22:43:39 kroot from what i read this could cause some pain with sqlite; if you bundle your own to use natively you can't use the java bindings with it Jun 21 22:44:22 but i filed a bug for support-sqlite, i hope that happens some day :D Jun 21 22:44:49 What did you name your sqlite shared library file? Jun 21 22:45:31 On pre-N devices, the dynamic linker looks at the name of the file to see if it's been loaded yet, so if you name it "libsqlite.so" it will conflict with the system version Jun 21 22:45:38 kroot this isn't something i've done, but read on the sqlite mailing list Jun 21 22:46:00 there is some back story there, but i don't have the link Jun 21 22:46:43 kroot ah found it http://ericsink.com/entries/sqlite_android_n.html Jun 21 22:47:25 "An open letter to somebody at Google" Jun 21 22:48:31 "For example, on a platform like Windows Phone 8.1, the app developer simply bundles the SQLite library as part of their app." <-- this was the way to go Jun 21 22:48:59 yes, it's like asking if it would really be bad to immerse yourself in a swimming pool full of molasses to get good lap times Jun 21 22:49:25 this was my bug report https://code.google.com/p/android/issues/detail?id=202658 Jun 21 22:51:15 kroot android M could have been molasses :D Jun 21 22:57:25 Hi root ... do you have any other suggestions for my problem .... ? Jun 21 22:58:39 <_genuser_> hello people. Jun 21 22:58:50 <_genuser_> dang channel policy of authenticated users only. Jun 21 22:59:12 <_genuser_> keeps pushing me to -unregistered channel. Jun 21 23:03:43 gotta keep out the riff raff Jun 21 23:14:17 iOS should be named Android, and Android should be named Mud Hut. Jun 21 23:58:59 wow ... i just got booted to the android-unregistered ..... Jun 22 00:01:55 then register your client :P Jun 22 00:01:56 not that hard Jun 22 00:06:52 I'm tempted to just start talking in android-unregistered Jun 22 00:08:58 #android-unregistered Cannot send to channel Jun 22 00:09:00 noooooo Jun 22 00:09:18 wtf Jun 22 00:09:40 i have like 0.4 G of RAM left due to androidStudio's high memory usage Jun 22 00:10:03 shouldn't eclipse use much less ? Jun 22 00:24:12 hassoon eclipse does use much less :D Jun 22 00:24:21 did you say what you meant ? Jun 22 00:25:44 g00s: what ? Jun 22 00:26:05 -- shouldn't eclipse use much less ? Jun 22 00:26:10 doest make sense Jun 22 00:26:20 i don't get your point Jun 22 00:26:27 yeah, nm Jun 22 00:26:28 though i can understand English Jun 22 01:32:30 ugh, v59 of pia vpn client spins up 2, thats TWO nw.js processed (worker, UI) to show a notification :/ Jun 22 02:07:21 g00s: why the js? Jun 22 02:07:55 teasp00n dunno, till now it was ruby crap, now ruby and js - an unholy mix Jun 22 02:10:26 ruby and js are the technologies of choice for my old team haha Jun 22 02:10:53 i hid in my little android world though so all good :p Jun 22 02:12:25 Ruby? What year is this, 2005? Jun 22 02:29:53 I smell language flamewar in the air Jun 22 02:32:29 It's a war in much the same way humans and cockroaches are at war Jun 22 02:32:41 shots fired Jun 22 02:32:48 * CedricBeust whistles Jun 22 02:33:22 * g00s hears the sound of something getting squashed Jun 22 02:33:31 do you think React Native is onto something? Jun 22 02:33:39 or is it kinda gimmicky? I can't tell Jun 22 02:34:01 Actually I fired this shot ten years ago http://beust.com/weblog/2006/04/06/why-ruby-on-rails-wont-become-mainstream/ Jun 22 02:34:09 if you have full stack web devs wanting to get into android then i think maybe its good.. Jun 22 02:34:19 mobile dev rather* Jun 22 02:34:29 it does feel a lot like ruby on rails yeah Jun 22 02:34:56 for me my personal bias comes in a bit, for better or worse, i hate js Jun 22 02:35:06 so im probably overly dismissive of it Jun 22 02:35:15 I feel the same about js Jun 22 02:35:49 if im trying to do the whole cross platform thing i would tend towards something like xamarin Jun 22 02:35:52 but the development speed is rediculously fast Jun 22 02:35:58 is what it seems like Jun 22 02:36:35 Android is hard. I've spent weeks on this app and it doesn't do very much yet :/ Jun 22 02:37:03 yeah when you're first starting out the nuances of a mobile platform actually make things quite difficult Jun 22 02:37:47 the first battle is alwasy getting the right boilerplate in place Jun 22 02:38:06 like, could you implement an Activity with a navigation drawer off the top of your head? Jun 22 02:38:26 that should be pretty easy ... ;D Jun 22 02:38:33 I have to google that every time Jun 22 02:38:45 AS will actually generate a lot of that for you now doesnt it? Jun 22 02:38:59 RustyShackleford there was a time before NavigationView - that was way worse Jun 22 02:39:25 image stuffing a recyclerview yourself to list things :D Jun 22 02:41:05 maybe i'll just become a web developer instead Jun 22 02:41:28 there is a lot of churn / burnout in the js community Jun 22 02:41:35 every week is a new framework Jun 22 02:41:50 RustyShackleford: depends what floats your boat. i like having all the different hardware that a mobile device has. fun to tinker with :) Jun 22 02:42:02 on one hand though, thats kinda frustrating - on the other, i do kinda wish google iterated more on some ideas to make things simpler Jun 22 02:42:36 like, Fragments 2.0 or something Jun 22 02:42:44 yeah some of their APIs are somewhat immature Jun 22 02:42:58 or something like Story boards Jun 22 02:43:18 well they're prioritizing backwards compatibility it seems like Jun 22 02:43:20 but on the other hand the recyclerview stuff probably seems complicated compared to the old listviews but once you get the hang of it the composability makes them way more flexible Jun 22 02:43:29 g00s: I can write recyclerview with no problem ;) Jun 22 02:43:39 I dont remember how to do viewholder for list now ;D Jun 22 02:44:06 i should be able to look at a system perspective and understand immediately the screen structure , navigation w/o going through frag / activity code mingled with spaghetti sauce Jun 22 02:44:10 I'd like to see a more structured android project. There needs to be more convention Jun 22 02:44:27 gordon_ i can too, but do you remember how to use DrawerToggle :P Jun 22 02:44:41 no, because there are two of them Jun 22 02:44:46 and one is deprecated Jun 22 02:44:49 lol Jun 22 02:44:51 never know which one is which Jun 22 02:45:43 Damn I'm doomed Jun 22 02:45:50 we're all doomed Jun 22 02:46:00 RustyShackleford: https://plus.google.com/+DianneHackborn/posts/FXCCYxepsDU Jun 22 02:46:11 I'm trying to reproduce the Youtube app with the Youtube Android Player, where you can "scroll" down on the player to reduce it Jun 22 02:46:15 thats defs worth a read if you havent already seen it Jun 22 02:46:34 I managed to do something nice and all, but I just realized applying scale to the view holding the fragment doesn't resize the content Jun 22 02:46:48 So the reduced view only show like a fourth of the player, the top left part Jun 22 02:47:01 There's no API to resize the actual player Jun 22 02:47:21 Maybe I could eventually access the MediaPlayer used in the hierarchy, if any, and resize it, I don't know Jun 22 02:47:31 But this API really sucks Jun 22 02:48:09 eh Jun 22 02:48:13 use surfaceview Jun 22 02:48:13 teasp00n, well that was no help :p Jun 22 02:48:19 with exoplayer Jun 22 02:48:36 their topic about managing flow especially Jun 22 02:48:44 I suppose that makes it super flexible Jun 22 02:48:45 gordon_, ExoPlayer for Youtube videos? Jun 22 02:48:52 RustyShackleford: lol! its about how the android platform team specifcally arent prescriptive Jun 22 02:48:53 How Jun 22 02:48:56 but managing your flow is a fricken mess Jun 22 02:49:11 I don't know what a SurfaceView is Jun 22 02:49:18 And at this point I'm too afraid to ask Jun 22 02:49:22 Ribesg: ah youtube.. I dont know how you're getting those videos Jun 22 02:49:34 Well I'm using the Android Youtube Player API Jun 22 02:49:42 So I just create a YoutubePlayerFragment() Jun 22 02:49:49 And calls loadVideo(videoId) Jun 22 02:49:52 Basically. Jun 22 02:51:18 seems like you dont have a lot of control with it **** ENDING LOGGING AT Wed Jun 22 02:59:58 2016