**** BEGIN LOGGING AT Thu May 19 02:59:59 2016 May 19 03:00:03 it brings up the thing with “Live”, “Upcoming’, and “Social" May 19 03:00:18 and clicking on Live doesn't bring up the channels? May 19 03:00:33 i figured it out May 19 03:00:36 https://www.youtube.com/playlist?list=PLOU2XLYxmsILe6_eGvDN3GyiodoV3qNSC May 19 03:00:37 ok lol May 19 03:00:38 it brings up the channels in Chrome May 19 03:00:40 just go here May 19 03:00:42 not in anything else May 19 03:00:44 they are all broken down May 19 03:01:27 that is awful. they don’t show it in any other browser May 19 03:02:34 there is no other browser May 19 03:02:49 i use Safari, as Chrome is a power hog May 19 03:03:00 Chrome is life, Chrome is the saviour May 19 03:03:20 so i wonder why android has switched to a JIT compiler in N? May 19 03:03:38 to get rid of the “Android is updating apps X of Y" May 19 03:04:07 that happened with Dalvik May 19 03:04:12 so i wonder how they got rid of it May 19 03:04:22 pclover: they replaced it with ART May 19 03:04:32 i think they’re going to let the system do the JIT part whever it has a free moment May 19 03:04:45 but it looks like they are replacing art with something else now? May 19 03:04:46 in N May 19 03:04:55 nope May 19 03:04:57 still art May 19 03:05:18 but ART is AOT or is it doing both now? May 19 03:05:28 They JIT at runtime, then save the result May 19 03:05:29 it does all 3 May 19 03:05:51 pclover: watch this.. explains it.. https://www.youtube.com/watch?v=B08iLAtS3AQ&index=3&list=PLOU2XLYxmsILe6_eGvDN3GyiodoV3qNSC May 19 03:06:06 probably should watch it May 19 03:11:36 Napalm, yeah thanks they explained the new Doze mode kinda skipping around a bit. May 19 03:12:10 alright, I’m gonna try these constraint layout thingies tonight May 19 03:13:18 i'm going to ponder what adam powell said in what the fragment, i must have missed something important May 19 03:14:59 the comments on HN about firebase are "don't, you'll wind up like the next parse" May 19 03:17:14 given google’s track record, it’s not a paranoid thought May 19 03:18:04 hopefully people have looked more into architecture patterns to minimize dependencies on external things like that May 19 03:18:26 looking at firebase now May 19 03:18:37 it does look really cool. They added a ton of new features May 19 03:18:45 Guess i have wait till friday to see in full detail Napalm May 19 03:19:18 But it seems they are doing a combo of 3 things for the best performance and speed. May 19 03:19:22 s73v3r_ of course, they try to make the platforms as sticky as possible :D May 19 03:19:40 so you aren't waiting forever. I guess it will reduce size as well. May 19 03:21:32 I guess on their I/O page they are calling it Hybrid JIT-AOT May 19 03:21:59 10 bucks says, oracle modified openjdk license so that you have to run on their JRE May 19 03:22:47 developer wise is moving to OpenJDK going to change anything or not really? It seems it will remain the same. May 19 03:24:33 you shouldn't notice anything, unless there are slight behavior differences May 19 03:25:10 areas ripe for that kind of thing are Calendar, regex May 19 03:25:37 i think the android NumberFormat class has extra features May 19 03:26:41 One major issue google needs to tackle is fragmentation. AFIK it's hell on devs. May 19 03:26:58 i'm not a dev myself just have interest in how it's built :) May 19 03:32:11 I'm looking at the docs for user authenication with firebase May 19 03:32:29 how do you keep track of the session in all your activities? May 19 03:32:38 their example shows just one activity May 19 03:32:49 Rusty: SharedPreference May 19 03:33:59 we store things in sharedpreferences at work May 19 03:34:00 its a mess May 19 03:34:23 what kind of data do you store in sharedpreference? May 19 03:34:30 do you mean all your app data? May 19 03:34:38 yup May 19 03:34:51 aw May 19 03:35:03 there's a class that lets you query and return a list May 19 03:35:27 i haven't poked around the internals of it too much but its messy to say the least May 19 03:50:18 I have a service which uses bluetoothLE API and connects a device (this service needs to run always and collect the data that comes in even when screen is off) , There is a popup which will show the available bluetooth devices. I am confused if should i keep the scanning and keeping list of devices part of the code in Activity or in the Service itself. May 19 03:52:01 this would have been great demo at i/o http://gizmodo.com/google-patented-a-sticky-car-hood-that-traps-pedestrian-1777376162 May 19 04:02:18 hi, I want to install a very basic, minimal setup of the Android SDK - maybe just support for ICS through Lollipop and an emulator for a basic phone and tablet. But when I install it I get almost 5 GB of stuff and vast amounts of stuff that I think I don't need want like Android N stuff, Android TV devices, etc. May 19 04:02:40 I'm a beginning student and just want a basic, minimal setup May 19 04:04:47 someone said to install the SDK manager and just select some minimal stuff but I can't even find how to do that. May 19 04:28:03 Type . android if in linux or rt click open as admin in windows May 19 04:29:15 I don't use @Targetapi() all that much, and I decided to use it on piece of code, and I figured if I put the api level I assumed it meant >=APILEVEL, but that wasn't the case and I was pulling my hair as to why my code did not work. May 19 04:29:58 it just silences warnings, doesn't it? May 19 04:30:14 no effect on code May 19 04:30:17 yeah, my min api is 10, and the code is for 11+ May 19 04:30:38 well no, it only uses that code on api it specifies, I thought it was api and above May 19 04:31:03 no May 19 04:31:54 it doesn't use code May 19 04:31:56 :) May 19 04:33:09 what's new in google io 2016 May 19 04:33:43 quick question since Targetapi can take a value, besides doing integer array (11,12,13 etc...) is there something like this I can do 11..21 (which means numbers from 11 to 21) May 19 04:34:42 go learn java May 19 04:34:46 Demon_Jester: It's not necessary May 19 04:35:58 Demon_Jester: to answer your question I think there is no way to do that. May 19 04:37:35 bbotx23, I didn't think so, I mostly work in python, and you can do that, I was hopin for something similar in java May 19 04:41:57 it doesn't make sense to give Target API a range of numbers May 19 04:42:13 it only takes a single number May 19 04:45:23 is there a way to see External Libraries in the project tab on Android Studio, like Intellij show it? May 19 04:46:49 nm, i found it May 19 04:56:45 constraint layout designer and automatic test recording might be killer feature enough to make me consider using Android studio May 19 04:58:14 :) May 19 04:58:26 what are you using now May 19 04:59:11 svg import/edit utility is nice too May 19 05:00:10 intellij May 19 05:05:00 hello, does anyone know how I could respond to a status bar notification? I am using android notification listener to get a notification and I would like to reply to the message in code. May 19 05:06:29 i see what my issue was: the site gives you the Android Studio bundle by default, which has a ton of stuff. But there's also the non-bundled version which gives a much more pared-down install of only lollipop SDK May 19 05:06:45 its seems like the site wants to push the bundle onto people May 19 05:09:41 :) May 19 05:13:25 protobuf3 - beta3 ... this is going much slower than i anticipated :/ May 19 05:14:07 why are you using protobuf May 19 05:14:48 does it save time or anything else May 19 05:15:05 i still question though the install. i see its installing stuff like play-services-wallet, play-services-fitness. wtf? just to do basic development? May 19 05:16:33 Should have just installed the sdk on its own rather then thru studio May 19 05:16:55 Then u decide which of what u want May 19 05:17:02 trtle: i installed the non-budle version May 19 05:17:20 trtle: i just cancelled the install, will wipe and try to reinstall May 19 05:17:31 For app deving i assume? May 19 05:17:44 it feels like Google's trying to force/upsell all their shit even through the IDE May 19 05:18:35 They like almost every company default to the all inclusive installs May 19 05:19:27 god i just want to try to write a hello world for android May 19 05:19:34 That way noobs have what they need, experts can pick and choose and still have it function May 19 05:20:22 maybe all that stuff was needed for the emulator? May 19 05:20:56 do i select to install the Virtual Device or not? May 19 05:21:00 https://twitter.com/pfn0/status/733165396048502784 May 19 05:21:05 a bit late though May 19 05:21:10 Building my dev environment was a mistake, i followed the wrong tut, i just wanted to theme May 19 05:22:17 I still cant theme, but that mistake has led to yrs of entertainment May 19 05:22:56 and people were worried about rain during the sessions May 19 05:25:01 when i select Android Virtual Device, does that give a bunch of them or just one? should i not select it? May 19 05:27:04 does firebase have an android app for analytics, like google analytics app ? May 19 05:27:21 and god their apis sucks May 19 05:27:27 (for analytics) just bundles May 19 05:31:55 hm, is tomorrow's talk from Yigit on Application Architecture the same as the Dev Summit one ? May 19 05:32:36 i imagine it’s similar May 19 05:42:44 they finally added predicates! May 19 05:43:15 s73v3r_ what is that ? May 19 05:43:31 predicates are used for filtering through collections May 19 05:43:42 oh java api May 19 05:44:05 yeah. It was on the slide with java.util and java.streams, so I’m worried it’s going to be N only May 19 05:44:22 of course it would ... May 19 05:45:02 i think the best feature in N is recents 'clear all' :D May 19 05:45:18 i actually hate how android keeps apps around May 19 05:45:35 too often i just start killing stuff, because recents gets too cluttered May 19 05:47:33 s73v3r_: new apis are only from android N May 19 05:47:48 before that you can use only lambdas May 19 05:47:58 s73v3r_: added to android? May 19 05:48:05 or it is java feature May 19 05:48:06 gordon_ are method references backported also ? May 19 05:48:21 like MyClass::myMethod ? May 19 05:48:25 yeah May 19 05:48:33 predicates were in objc forever May 19 05:48:40 it's the same May 19 05:48:44 hello, does anyone know how I could respond to a status bar notification? I am using android notification listener to get a notification and I would like to reply to the message in code. May 19 05:48:46 as lambda May 19 05:48:56 squ: I know, and I miss them terribly May 19 05:49:00 gordon_ ok, so it works then ? May 19 05:49:15 I think so ? it works with retrolambda so I think it will work with jack too May 19 05:49:21 makes rxjava easier to read :) May 19 05:49:45 yeah May 19 05:49:58 hope they would make simpler solution than rxjava but well May 19 05:50:01 s73v3r_: was it presented in google io video? May 19 05:50:03 better this than callbacks May 19 05:50:23 if so can you please post a link May 19 05:50:46 squ: java8 was merged into android N May 19 05:51:14 but predicates are java api or android api May 19 05:51:21 squ: java api May 19 05:51:21 java May 19 05:51:29 ok, now I understand :) May 19 05:51:40 gotta read on java8 features May 19 05:51:52 must be enough features for a book May 19 05:52:33 guys, try to realize that objc had predicates like forever ago May 19 05:52:53 java’s had them for a while. android hasn't May 19 05:52:54 squ: we can talk about haskell too ;) May 19 05:53:06 and that is language (api) apple team did themselves, imagine that May 19 05:53:15 from scratch May 19 05:53:23 how shit java is May 19 05:53:39 if you think that apple created predicates - you're wrong May 19 05:53:40 and how awesome cool apple engineers really are May 19 05:54:34 is one licking your butthole right this moment May 19 05:55:55 thepoosh ! May 19 05:56:10 g00s: May 19 05:56:11 sup? May 19 05:56:21 obj-c is horrible :P May 19 05:56:25 if you ask me May 19 05:56:27 i fell asleep during Colt's session May 19 05:56:30 we didn't May 19 05:56:35 gordon_: that's what swift is for May 19 05:56:36 swift looks nice May 19 05:56:44 s73v3r_: what have I missed? May 19 05:56:47 thepoosh not much, tomorrow should be lots of good sessions. i was disappointed at the W T Fragment one May 19 05:56:51 did you watch more things? May 19 05:57:06 what was in it? May 19 05:57:09 i just rewatched the what’s new in android video, cause i was distracted at work May 19 05:57:14 I like objc, and C May 19 05:57:14 thepoosh: swift always reminds me this: https://leverich.github.io/swiftislikescala/ May 19 05:57:15 I was also supposed to watch the firebase thinh May 19 05:57:17 *thing May 19 05:57:35 I think C is a good language May 19 05:57:45 my WTF summary is "adam talks about bugs i never knew existed, doesn't explain any new techniques, and argues for fragments in a way that will convince nobody :D' May 19 05:57:46 for low level stuff? it's good May 19 05:58:09 unfortunately it is too hard for some guys and they try to abstract from it away into java :) May 19 05:58:14 why are everyone excited about firebase? it's been out for about a year now May 19 05:58:14 (i mean, i'm already sold on fragments but found his rationale pretty mehh' May 19 05:58:17 well, we should've sent JakeWharton to argue with him May 19 05:58:29 g00s: and then murders someone for asking about dialog fragment May 19 05:58:47 gordon_: objc for ios is good May 19 05:59:01 s73v3r_ lol, did adam go 'off script' :D May 19 05:59:18 thepoosh: lets kick JakeWharton ass.. lol May 19 05:59:23 gordon_: everyone is migrating from Parse May 19 05:59:26 wat May 19 05:59:30 to firebase (?) :) May 19 05:59:39 ah.. didnt know that May 19 05:59:44 squ: I've been working on firebase for the past 3 weeks or so May 19 05:59:46 it's ok May 19 05:59:49 looks cute May 19 05:59:57 ok, I am still planning migration May 19 06:00:00 :> May 19 06:00:14 gotta leave for last moment as always May 19 06:00:14 you're using parse? May 19 06:00:20 yes May 19 06:02:14 thepoosh: you are physically at google io? May 19 06:02:39 no he's literally there May 19 06:02:45 :) May 19 06:03:06 thepoosh any cool stuff stand out to you so far ? May 19 06:03:11 thepoosh: do you have a twitter ? May 19 06:03:24 photos, videos, atmosphere, etc May 19 06:04:01 hello guys May 19 06:04:22 squ: yes but i never publish anything May 19 06:04:27 :( May 19 06:04:47 g00s: the ability to have RemoteConfig and FCM notifications per analytics segment is very cool May 19 06:05:11 squ: our marketing person got the ticket i was hoping for May 19 06:05:22 because we are nominated for google play awards May 19 06:05:34 wow May 19 06:05:39 congratulations May 19 06:05:46 thanks May 19 06:05:50 ticket to what? May 19 06:06:02 flight and io May 19 06:06:06 thepoosh are you guys going to swap GA for firebase analytics? May 19 06:06:26 our main analytics platform is internally built May 19 06:06:35 but we already switched to firebase May 19 06:06:46 google home scares me May 19 06:06:58 gordon_ lol May 19 06:07:19 most of the keynote seems to be '1st world problems' May 19 06:07:22 gordon_: https://www.reddit.com/r/androiddev/comments/4jwyrn/google_io_2016_day_1_thread/d3agvbb May 19 06:07:32 watching keynote now May 19 06:07:39 or rather, listening to May 19 06:08:14 people nowadays are strange May 19 06:08:59 they upload their plans to big company in the US, stream fav music rather than buy few songs and upload their photos to big company May 19 06:09:12 what happens to home NASes and privacy.. May 19 06:09:19 s/happens/happened May 19 06:09:31 all these personal assistant type things with AI must be incredible tech, i just don't find them useful. are we supposed to offload all our thinking to google? its crazy May 19 06:09:34 home NAS is expensive, and complex if I want to access it outside the home May 19 06:09:58 hmmm.... like... 200 usd ? :D May 19 06:10:22 s73v3r_: expensive and complex? May 19 06:10:22 people pay this for 2 years of dropbox May 19 06:10:26 before I signed up for Play Music, it was more May 19 06:10:31 i wonder, as some say internet killed attention spans - if these assistants kill executive function May 19 06:10:38 is firbase = new google play services? May 19 06:10:39 that home thing is actual only for americans May 19 06:10:44 Ashiren: no? May 19 06:10:45 s73v3r_: you can make your own you know May 19 06:10:50 Ashiren: no, but it's the new gms May 19 06:10:50 s73v3r_: make it as simple as you want May 19 06:10:53 i could May 19 06:11:00 but i don’t have the time or energy May 19 06:11:04 then explain this https://developers.google.com/android/guides/releases#may_2016_-_v90 May 19 06:11:16 s73v3r_: then accept what is available May 19 06:11:24 s73v3r_: well.. that's the difference between just a consumer and creator / developer ;P May 19 06:11:43 no, that’s the difference between someone who has better things to do with their time May 19 06:11:44 s73v3r_: if you dont like it then get off your ass and do something about it ;) make your own! May 19 06:11:53 s73v3r_: stop being lazy May 19 06:11:56 where the fuck did I say I didn’t like it/ May 19 06:11:56 :P May 19 06:12:01 I like play music May 19 06:12:07 I dont ;D May 19 06:12:15 s73v3r_: I was commenting on your NAS comments May 19 06:12:19 I dont get the idea of streaming music.. May 19 06:12:35 usually you can buy songs on some site May 19 06:12:41 wyoung: I don’t have the time or energy. If I were to waste time on that, I wouldn’t have time for other stuff May 19 06:12:50 gordon_: people stream music to ensure they are fully saturating their Internet connection May 19 06:13:10 i actually don’t want to buy songs. I want to have access to everything May 19 06:13:14 that's one shitty internet connection then May 19 06:13:18 wyoung: yeah,... and sometimes you have u2 album in your library by.. accident :> May 19 06:13:54 deebo: well I live in a third world Internet country (Australia) May 19 06:14:34 lol May 19 06:14:37 wyoung me too, USA May 19 06:14:48 g00s: hehe May 19 06:14:58 if your download speed is more than 56 kb/s May 19 06:15:01 g00s: I think AU is slightly better than US May 19 06:15:04 it;s not bad May 19 06:16:02 gordon_: 4x1 Mbps May 19 06:16:13 lol May 19 06:16:24 dont say it's bad then :D May 19 06:16:25 If I am lucky May 19 06:16:47 that is bad, I need 1Gbps :) May 19 06:16:57 min May 19 06:17:13 wonder how much alloy paid to be in i/o May 19 06:17:23 not saying about beyonce ;) May 19 06:17:30 s73v3r_ i like when adam called fragments mini activities, i thought mini - me :D May 19 06:18:43 i actually missed most of that talk. Just saw the end May 19 06:20:07 ah it's official google app ? May 19 06:20:14 what was weird, was when sundar said - they were having this outside, as its a pivotal moment for google May 19 06:20:26 but then he didn't go over anything really pivotal ahaha May 19 06:21:43 machine learning is interesting May 19 06:21:54 about tensor flow? May 19 06:22:08 TPU sounded interesting May 19 06:22:10 I should heck it more May 19 06:22:15 *check May 19 06:22:16 TPU? May 19 06:22:28 tensorflow processing unit May 19 06:22:39 gotta check that stuff May 19 06:22:46 must have plenty of interesting uses May 19 06:22:55 just advertising ;) May 19 06:23:10 jk May 19 06:23:23 its ok to advertise google stuff here :) May 19 06:27:32 this is all the Android stuff that happened yesterday https://www.youtube.com/channel/UCVHFbqXqoYvEWM1Ddxl0QDg May 19 06:34:52 the talk about multi-window is really annoying, the guy's accent is terrible May 19 06:43:47 oh.. it's time for 4chan to pick android name :] May 19 06:47:10 I chose Noogle May 19 06:47:12 :\ May 19 06:47:16 why not the N-word May 19 06:47:22 Nutella May 19 06:47:30 too commonplace May 19 06:55:29 Nyoro~n May 19 06:56:04 Nimbu May 19 07:02:26 Nuts? :) May 19 07:06:12 Nimbus May 19 07:07:01 > The Nimbus (registry BP-1729) is the flagship of the Democratic Order of Planets star fleet May 19 07:07:34 http://futurama.wikia.com/wiki/Lord_Nibbler May 19 07:07:36 :) May 19 07:14:21 Nagasaki May 19 07:14:26 Naruto May 19 07:18:34 Natto May 19 07:22:54 Neko~ May 19 07:23:16 hello, whenever i use a texting app (doesn't matter if hangouts or google's messanging app) i get an error when sending/receiving. logcat says 'no such table: sms_restricted' May 19 07:23:55 it's not development related, but i thought maybe here people might be more likely able to help May 19 07:34:05 android studio 2.2 looks nice May 19 07:39:16 Ok this is weirdness. With android studio I generate my signed APK for one app, it it works fine. Then for another it does not work. Why would that be ? May 19 07:42:24 weirdness May 19 07:42:46 what do you mean, does not work May 19 07:43:21 It end the taks of generating the apk yet the apk is not generated. May 19 07:43:28 and gives no error messages. May 19 07:43:39 It ends the task* May 19 07:44:33 The app-release.apk does not appear. May 19 07:45:02 Works for my other apps, just not the one. May 19 07:45:09 *shrug* May 19 07:45:27 Cleaning the project does not help. May 19 07:45:36 restarting AS does not help. May 19 07:45:46 *frowns* May 19 07:48:38 j #samba May 19 07:48:56 Now its just going gradle build running and then nothing. May 19 07:50:36 such is life with gradle May 19 07:50:50 tsk May 19 07:51:16 How do I manually generate a signed apk with an android studio project ? May 19 07:51:34 ./gradlew tasks May 19 07:51:47 and there should be assemble task May 19 07:55:35 N will stand for No Name May 19 07:56:17 the No Name brand dessert will be cheaper May 19 07:57:28 Ah I found the problem. I have conflicting package id's. May 19 08:03:20 Nougat May 19 08:06:51 Hello May 19 08:08:12 Hum, do you know why a SurfaceView take all the space available on the Screen while having a few pixels ? May 19 08:08:25 I'm doing native development and having issue with it. May 19 08:09:27 A programmer without issues must be a god. May 19 08:10:24 Overall with android ^^" May 19 08:11:56 becuase you set it to match_parent? May 19 08:12:54 Ashiren: There is no parent, my view is the only one May 19 08:13:13 Even the name print in my tablet is big May 19 08:13:26 Is there a default scale on an application ? May 19 08:14:22 whats the xml looks like May 19 08:15:14 There is no XML May 19 08:16:12 That's what is really in the function onCreate : m_renderer = new TacticsRenderer(this); May 19 08:16:20 setContentView(m_renderer.getSurface()); May 19 08:16:42 The surface is printed and updated (I see motions), but it doesn't have the proper resolution May 19 08:31:44 Hi, I am trying to create a view/list with 2 columns. The items under the left col are related, and similarly, the items under the right are related. Do I need two lists placed beside each other, or is this possible with recyclerview/gridview? May 19 08:34:47 connection dropped there for a few mins, so I missed any replies (if there was any :)) May 19 08:39:54 Hey May 19 08:40:14 What everyone thought of google io 2016 so far:) May 19 08:40:47 got hopes for new layout May 19 08:42:55 I really like the new layout and the firebase:) May 19 08:43:19 I forgot the new android studio 2.2 May 19 08:43:40 havent watch firebase yet May 19 08:43:45 is it free ? May 19 08:44:09 there part of it it for hobbyest. May 19 08:44:13 it free May 19 08:44:16 :) May 19 08:44:30 hmm May 19 08:44:31 fishy May 19 08:44:54 i watch firebase now. May 19 08:46:18 gordon,I really like the firebase test lab but that cost alot.I try to find out how to setup one in google play console. May 19 08:48:45 wonder if framework will be rewritten in vulkan or not May 19 08:48:48 but probably not May 19 08:50:33 Not sure.I hope i not talking to much:) May 19 08:51:35 gordon_,I like the firebase it help you find where all the usr coome from and that free to:) May 19 08:52:00 I would like to try new espresso test creating suite May 19 08:52:08 however it's called May 19 08:52:42 cool:) May 19 08:56:22 gordon_,I worry if the cloud test lab is free in the google console. May 19 08:56:23 honestly, I hope jill will finally support java8 bytecode May 19 08:56:34 yep May 19 08:56:37 i dont care about cloud test lab that much May 19 08:59:32 i am sorry. May 19 09:00:14 gordon_,firebase work with android and ios. May 19 09:00:28 I know May 19 09:00:33 I'm just... not really interested :P May 19 09:01:05 maybe because I'm not much fond of database in cloud on other people services May 19 09:01:51 i see May 19 09:03:52 it's like giving your privacy for free May 19 09:04:42 gordon_, your users privacy May 19 09:04:44 :D May 19 09:05:05 D: May 19 09:05:06 even May 19 09:22:03 gordon_ yeah thats my concern as well May 19 09:22:14 google is incredibly invasive in whatever they do May 19 09:22:48 I think couchdb is doing the same thing as firebase May 19 09:23:13 but you can isntall it on your server May 19 09:29:59 gordon_,Is firebase for one developer? May 19 09:30:06 i have no idea May 19 09:30:14 that no prob. May 19 09:30:26 :) May 19 09:33:44 Do programming patterns in Android agree with JS by using listeners in the code instead of onclick methods in the markup? May 19 09:34:34 you can do both May 19 09:34:41 I'm aware May 19 09:34:42 I prefer adding listeners in code May 19 09:34:50 cool, thanks May 19 09:35:05 apply retrolambda and you have shorter code May 19 09:36:53 gordon_, a "filler" for lambda functionality? May 19 09:37:01 yes May 19 09:37:28 you will replace it later with jack compiler and delete it May 19 09:37:35 I guess replace = delete ;D May 19 09:37:44 but jack is experimental now May 19 09:38:43 raj, using listeners in XML tends to be an antipattern in Android as well May 19 09:38:48 that'll just be implemented into some Android Studio update natively, no? May 19 09:39:26 thanks Mavrik May 19 09:40:03 raj: yes it will May 19 09:40:40 Mavrik: take a look at data binding library May 19 09:41:06 it goes even further May 19 09:41:18 and reminds me of jsp / jsf May 19 09:41:48 any performance comparison of markup vs code listeners? May 19 09:42:34 oh May 19 09:42:36 same performance May 19 09:47:19 gordon_, yes, I hate it. May 19 09:47:20 :) May 19 09:47:29 But it's just my opinion man :P May 19 09:47:53 didnt say I like it either May 19 09:52:29 <_0xbadc0de> I want to do port redirection on my AVD May 19 09:52:32 <_0xbadc0de> how can I do that? May 19 09:54:06 lols at nick, it reminds me of a virus. May 19 09:56:40 _0xbadc0de: redirection to what ? May 19 09:57:29 <_0xbadc0de> I am trying to do this: https://www.hex-rays.com/products/ida/support/tutorials/debugging_dalvik.pdf to remote debug a dalvik app May 19 09:57:39 <_0xbadc0de> but I keep getting "connection closed by peer" May 19 09:58:11 oh I've never used IDA with android May 19 09:58:18 try #android-root maybe May 19 10:00:16 If I want to "enlarge" an imageview smoothly (width & height) with some animation, is PropertyAnimation the tool for the job? I would assume width and height are "properties" May 19 10:01:56 I have a fragment superclass which register a notification receiver, and I want to update a list is a subclass , what is the best OO way ? May 19 10:06:43 anyone ? May 19 10:17:43 chinu: does the superclass has the list? May 19 10:18:15 otherwise you could make the superclass implement interface with method getList() and do mumble jumble you want May 19 10:19:31 Ashiren : no May 19 10:20:03 Ashiren : the super class has a notification receiver and only notificationfragment subclass has the list May 19 10:20:11 which needed to refresh on new notification May 19 10:20:22 other wise I have to register a new receiver in subclass as well May 19 10:20:31 the superclass would have unimplemented getList() from itnerface, the child class would implement getList() May 19 10:20:44 this way you can use getList() if you need the list to modify May 19 10:21:10 Where should I make the object for interface ? May 19 10:22:15 hm? May 19 10:22:19 On Attach I supposed May 19 10:24:08 Ashiren : I mean superclass will implement a interface , than from where should i call the method of interface ? May 19 10:25:43 whenever you need the list? May 19 10:25:59 in the superclass May 19 11:07:54 Do you HAVE to have a google+ account in order to write reviews on google play about an app ? May 19 11:10:04 unfortunately it seems so May 19 11:13:26 Yeah. May 19 11:14:20 Is it possible to rate an app without installing the app ? May 19 11:14:33 Or must it be installed also before it can be rated ? May 19 11:14:51 ( assuming the user has a google+ account ) May 19 11:17:12 Surely you need to try it firs? May 19 11:17:27 Unless it has obvious violations, eg: permissions May 19 11:18:58 Yeah. May 19 11:26:47 there were rumours about google considering kotlin or swift for android, any updates on that ? May 19 11:28:45 guys, i am have a hard time constructing this simple material design of a list, i guess something wrong with retrieving JSON and feeding it into the layout; May 19 11:28:47 http://paste.ofcode.org/eipSRRkPkD4sgSmKQ7jKtq May 19 11:30:05 i keep getting only the "MyTag Third" ... and the error java.lang.ArithmeticException: divide by zero which is i guess on line 73 May 19 11:30:10 Hi everyone. May 19 11:30:19 JanusJanus: I see you are using Firebase that they introduced in IO. Cool May 19 11:30:41 BenoitD: Hello. May 19 11:30:57 yeah firebase is great if you master, i am barely using it for basic stuff and still not perfect in utilizing it May 19 11:31:07 Hi May 19 11:33:20 I have to wake up the device in my app to make some logic. My question is : Is it possible to plug my device in USB to have logs in live but not charging the device through USB. The problem is when I plug my device it will never sleep because USB is charging it. May 19 11:33:28 JanusJanus: mplaces.length equals 0 May 19 11:33:35 That is your issue May 19 11:33:41 yeah i assumed but why ? May 19 11:34:12 BenoitD: You can make the device sleep through adb shell afaik May 19 11:34:24 i've tried to log each time i am proccessing info from JSON, and i only got the last My Tag third. May 19 11:35:06 meaning implace.legnth being executed before retreiving JSON and converting it into an array and then mplaces !? May 19 11:35:12 JanusJanus: log the value of mPlaces.length May 19 11:35:22 ill try that May 19 11:36:37 hi folks May 19 11:36:47 vamshig51: Hello. May 19 11:37:08 hi LunarEclipse120 May 19 11:37:27 I have a char array[] in jni, that has to be converted to string May 19 11:38:05 jstring, with UTF encoding May 19 11:38:14 What is it right now? May 19 11:38:51 I vaguely remember a function that can convert some things to string; I may be thinking of C# May 19 11:41:01 LunarEclipse120: Ok sorry I found my response on Stackoverflow. It seems impossible because the device never goes to a deep sleep (=CPU sleep) when charging through USB May 19 11:41:22 Oh May 19 11:55:40 Hello everyone May 19 11:55:57 Anyone managed to make AutoValue work with android studio 2.1 ? May 19 11:56:38 I can't make it resolve generated classes symbols for some reason, although the generated code seems to be in the right place May 19 12:01:52 I am trying to find streams from yesterdays G I/O, but unfortunately I am unable to play them from here https://events.google.com/io2016/schedule?filters=Live%20streamed#day1/ May 19 12:01:58 for example Behind the scenes: What’s new in Android accessibility May 19 12:02:04 where can I find it? May 19 12:02:06 btw - hi there May 19 12:02:48 I am trying to log special message with Crashlytics like advised here http://support.crashlytics.com/knowledgebase/articles/120066-how-do-i-use-logging- May 19 12:03:38 but I am unable to find that output in crash report on crashlytics web May 19 12:06:12 I have set error aftere "Crashlytics.log(....)" - I can see it in logCat, but nothing on web May 19 12:06:29 what could went wrong? May 19 12:07:06 btw all crashes are visible, but there is no log ... May 19 12:08:35 on web page, below Keys / Logs switcher - it says "No logs found." May 19 12:23:44 Anyone using android studio with autovalue or another annotation processor here ? May 19 12:29:28 hey, is soap used often when creating android apps ? May 19 12:30:29 no. May 19 12:31:12 Anyone using any annotation processor with android studio 2.0 ? May 19 12:32:05 doublel93, I hope not :P May 19 12:33:41 so rest all the way =D May 19 12:39:18 doublel93: depends on the business case. If you are integrating with a backend that uses that protocol, then you use it May 19 12:41:05 the_fog: yeah I see, if you were to create a new backend thou you would pick a restfull approach or keep the soap one ? (current backend uses soap but might change, so I don't know yet) May 19 12:43:47 doublel93: yeah, typically you would build a restful api that transforms the soap shit. so with that approach, the client app never really deals direct with soap May 19 12:44:51 the_fog: I see now thanks a lot, I had an hard time catching the concept of the soap way May 19 12:45:17 depends on what kind of soap it is, too... most people can't grok it May 19 12:47:08 it was a wsdl thing (no idea what is it ) May 19 12:54:37 hi May 19 12:54:38 I am not sure if its possible, but would it be a security issue if mount provided for loopback mounting in sdcard/extSdCard and /data/local/tmp May 19 12:54:42 or it already can be done ? May 19 12:58:45 Hello all, any of the developers available? May 19 13:01:41 I love how Pair is part of android framework and I cannot touch it in unit test May 19 13:04:43 Anyone could help with answering this? http://stackoverflow.com/questions/37312025/gradle-build-issue-upgrading-quickblox-and-httpclient-on-latest-android-sdk23 May 19 13:05:26 willing to pay for correct answer May 19 13:07:54 aimapps: does it use apache http client ? May 19 13:08:03 yes May 19 13:08:23 useLibrary 'org.apache.http.legacy' May 19 13:08:37 gordon_: $$$ May 19 13:08:38 put this in your android { } tag May 19 13:09:09 the_fog: if I would get money for any adive i give, i would be rich :P May 19 13:09:16 maybe I should become a consultant :D May 19 13:09:21 :DD May 19 13:09:33 hello! use this library, 1000$ please May 19 13:10:52 The library is already added to gradle May 19 13:21:52 Still looking for help regarding this issue and willing to pay https://stackoverflow.com/questions/37312025/gradle-build-issue-upgrading-quickblox-and-httpclient-on-latest-android-sdk23 May 19 13:52:06 would you advice to use android studio with java or xamarin with c# to someone new wanting to make mobile apps and with no knowledge of either java or c# ? May 19 13:56:00 you have to know C# for xamarin May 19 13:56:05 and Java for native Android May 19 13:56:12 there is no escape. May 19 13:56:16 no one gets out alive May 19 13:56:22 no one. May 19 13:57:58 unless you build an app with qt and ndk May 19 13:58:01 Odaym: yeah I know I will have to learn one, I was wondering which one is advised for a total beginner in the mobile field, I have not intentions of learning both just one of the 2 languages and stick to it, starting without any preference towards any] May 19 13:58:13 java android May 19 13:58:20 native android is the best May 19 13:58:26 all other options are inferior May 19 13:58:37 take it from me, i suck at most things May 19 15:07:17 g00s: getting ready for day #2? May 19 15:07:39 hey thepoosh . yeah, will watch styles talk May 19 15:07:45 thepoosh https://www.reddit.com/r/androiddev/comments/4k2b3z/so_how_do_fellow_developers_feel_about_background/ May 19 15:08:01 I need to as well May 19 15:08:10 but there are too many firebase things for me to miss May 19 15:08:23 btw, found some crashes in their code over night May 19 15:08:27 in RemoteConfig May 19 15:08:34 i need to tell them about it May 19 15:08:40 now it's also not fetching data May 19 15:08:46 probably scaling issues May 19 15:09:37 i'm going to stay with GA for now. i don't use any other firebase things May 19 15:10:12 crash reporting and remote config are very cute May 19 15:11:23 you could do remote config with GTM years ago ... is it any different ? May 19 15:19:38 anyone tried Java 8 libraries in android application? May 19 15:21:00 thepoosh well i guess i did learn about onInflate trick with so far May 19 15:22:45 Anyone using any annotation processor or generated code with android studio 2.0 ? May 19 15:23:45 I encountered some impossible-to-fix error, android studio is even mocking me =/ May 19 15:24:10 hope you are not using mockito /endtroll May 19 15:24:21 No, AutoValue May 19 15:24:54 Will try AndroidAnnotations maybe later, but seeing how this is going with autovalue, not sure -_- May 19 15:25:23 g00s: are you talking about the WTF talk? May 19 15:26:52 thepoosh yeah. wasn't too informative May 19 15:27:11 well, it was very informative on why not to use fragments May 19 15:27:12 :P May 19 15:27:12 was definitely hoping for more, like advanced strategies on how google uses fragments May 19 15:27:24 such a wasted opportunity May 19 15:27:32 yes, hoping today is gonna be better May 19 15:27:36 it looks better on paper May 19 15:27:50 i wonder if some of these guys put their presentations together the night before May 19 15:28:13 They probably spent their time trying to make those damn fragments work :-) May 19 15:28:46 i love how DH said the other day they remain "architecture neutral" ... May 19 15:29:10 then adam is talking about fragments and is like, "well you can't call this before this because you dont know whats going to happen" May 19 15:29:20 my friends all talked about how Chet and Romain are bitchfighting May 19 15:29:28 if they should take questions or not May 19 15:30:22 thepoosh it was friendly right ? May 19 15:30:31 I'm sure it was May 19 15:30:38 :D May 19 15:30:42 there was just no way to take questions out in the wild May 19 15:31:00 thepoosh is there a fireside this year ? May 19 15:31:09 maybe i have my filter set wrong May 19 15:31:14 checking May 19 15:31:45 i thought i saw it ... May 19 15:32:02 Firebase at 16:00 May 19 15:32:16 Android at 17:00 May 19 15:32:26 also web May 19 15:32:28 at 17:00 May 19 15:32:43 design tomorrow 1 pm May 19 15:32:58 firebase again tomorrow at 3 May 19 15:33:09 that's all the fireside chats May 19 15:33:23 i'm using the android app May 19 15:33:37 maybe its missing from there May 19 15:33:53 just checked the website May 19 15:35:20 ok thanks yeah 5pm May 19 15:35:33 np May 19 15:36:25 g00s: the thing I learned about is that I'm fucked because there's no JobSchedulerCompat May 19 15:36:53 thepoosh isn't that GCMNetworkManager or something ? May 19 15:37:06 GCM? May 19 15:37:10 and there was that 3rd party one i linked to the other day May 19 15:37:15 GCM is dead! long live the new FCM May 19 15:37:23 i saw the third party one May 19 15:39:00 thepoosh OH, they aren't broadcasting the fireside May 19 15:39:00 hey g00s, I was looking through logcat without filters and I was wonderinf if you knew what this line is? May 19 15:39:01 D/bluedroid-mrvl(25647): bt_vnd_mrvl_if_op(L90): opcode = 7 May 19 15:39:05 that fucking sucks May 19 15:39:17 might be on youtoube tomorrow May 19 15:39:23 i think they record everything May 19 15:39:28 but streaming is ... May 19 15:39:30 hard May 19 15:43:02 logcat is here http://pastebin.com/GDwc35QQ May 19 15:43:14 wondering what all that opcode = 7 is about May 19 15:43:28 looks device specific May 19 15:43:47 hey guys! May 19 15:44:13 do you guys know of any projects that specifically work on the android kernel that I can fork May 19 15:44:19 just to practice May 19 15:44:58 i am building an app for API 16 or more. and i want to show some push notifications for 1 hour. even it the app is closed. how can i do that? i just can not manage to show it with notificationcompat ... May 19 15:45:44 does work when the app is open sasos90 May 19 15:46:05 missingno: was that to me? May 19 15:46:23 no it was to sasos90 May 19 15:46:55 tricknology, a quick search reveals https://source.android.com/devices/halref/bt__vendor__lib_8h_source.html May 19 15:47:17 wth, where did you quick search that, and what were your terms? I didn’t get but 3 results May 19 15:47:26 so it would be: BT_VND_OP_LPM_WAKE_SET_STATE, May 19 15:47:33 if index starts at 0 for opcode 7 May 19 15:47:36 nice, thanks May 19 15:47:40 tricknology, i googled May 19 15:47:51 tryign to figure out what it’s doing between socket.read() May 19 15:47:55 and actually getting data May 19 15:48:00 first i searched for bluedroid-mrvl opcode, then quickly for bt_vendor_opcode_t May 19 15:48:13 nice google-fu technique May 19 15:48:51 in the middle i was in https://source.android.com/devices/halref/bt__vendor__lib_8h.html May 19 15:49:00 aa missingno thanks May 19 15:49:16 and how can i achieve that i show the notification when the app is closed? May 19 15:49:43 a service maybe May 19 15:49:46 ^ May 19 15:50:07 thanks adq May 19 15:50:07 hm.. some more information? :/ it is my first app and i am totally lost :D May 19 15:50:23 if it's your first app, then it's ok to be totally lost May 19 15:50:27 https://developer.android.com/guide/components/services.html May 19 15:50:31 sasos90, read the doc online ^ May 19 15:50:53 basically something that can run independent of your activities May 19 15:51:13 most apps with notifications have them May 19 15:51:27 aa so actually i need to run that service in background and implement notificationcompat inside? May 19 15:52:01 it would make sense to do that yeah May 19 15:52:18 and if your notification must start do something in your app you can do that with intents May 19 15:55:03 I have a button that creates an alarm with AlarmManager. I added a timePicker. I want to use the predefined time in the timePicker to set the alarm time. Will someone please shoot me in the right direction to read how to accomplish this? May 19 15:58:59 tricknology: thank you ! May 19 15:59:18 the thing is that i can't even pause the notification for few seconds.. it fires immediately May 19 15:59:46 eeh what do you mean pause it? May 19 15:59:58 like wait a bit until it goes off? May 19 16:00:14 you can start a Thread and use Thread.sleep(1000) to make it sleep for a second May 19 16:00:26 g00s: are you joining me for themes? May 19 16:00:35 thepoosh yeah :D May 19 16:01:01 TIL there is a tech lead for support lib May 19 16:01:03 lol May 19 16:01:15 eclair ! May 19 16:01:37 monochrome May 19 16:01:53 1.0 May 19 16:01:56 docs say 1.0 May 19 16:01:57 on FrameLayout May 19 16:01:59 but its 21 May 19 16:02:07 TOLD YOU!!! May 19 16:02:58 thepoosh: why hasn't the themes stream started yet May 19 16:03:07 whatup whatup May 19 16:03:09 themes? May 19 16:03:12 whats themes May 19 16:03:15 It started May 19 16:03:17 missingno: https://youtu.be/ha5pAYSd64Q May 19 16:03:30 ah thank you May 19 16:03:31 I hope they release a full list of styles and theme attributes May 19 16:03:33 I think I had the wrong link May 19 16:06:24 that global namespace things is silly May 19 16:06:38 g00s: i think it's like the R class May 19 16:08:42 tricknology: sry for late response. i just want to make that i show some notification for 3 hours for example May 19 16:08:48 in the mean time i can close the app and so on May 19 16:15:26 anyone with more rx experience then me mind if i pm them a few dumb questions May 19 16:15:42 If you ask them here we can all learn May 19 16:15:52 Good point May 19 16:16:36 g00s: why does this guy look like the kid from "the office"? May 19 16:16:41 Seekbar.Discrete, hm May 19 16:17:12 Usually at the end of my chain I do .subscribe(new Action1<>) and just act in that single .call() method. I know that you can also use Subscribers and other inner classes there, so how do i know which to use and when? May 19 16:19:06 g00s, cool May 19 16:19:10 no more stepped seekbar? May 19 16:19:26 ...no takers May 19 16:19:49 cause there is a perf bottleneck iirc with regular seekbar when you give a huge max value (lot of steps then, close to discrete) May 19 16:20:01 which often put me in the position of making a customview.. May 19 16:20:32 orbyt_: Not sure I understand what the 2 different things to use are that you're talking about May 19 16:21:00 yiati: do u use rx May 19 16:21:04 yes May 19 16:21:20 Aren't they always subscribers? May 19 16:21:20 so what part is confusing? May 19 16:21:31 well you can use a single action May 19 16:21:34 lemme screenie May 19 16:21:35 right May 19 16:22:22 so for example: when should i use something like this: http://prntscr.com/b5zaf1 May 19 16:22:39 vs May 19 16:22:49 something like this: http://prntscr.com/b5zaqv May 19 16:24:10 if getDjInfoId throws and exception and you want/have to handle it May 19 16:24:23 Hmm if it's the end of the chain I feel it's always best to handle error state which Action1 doesn't have May 19 16:24:27 s/if/when May 19 16:24:47 but yeah orbyt_ sometimes I don't care for onNext vs onComplete May 19 16:25:07 hmm feel like I just need to start using each and see what happens May 19 16:25:09 which is what Single was introduced for May 19 16:25:19 so whats Single May 19 16:25:23 http://reactivex.io/documentation/single.html May 19 16:25:32 no onNext :D May 19 16:25:53 when people are just replacing callbacks with rx, the onNext is usually followed by the onComplete May 19 16:26:22 night mode still doesn't do a real configuration change though May 19 16:26:57 yiati, interesting the single May 19 16:27:12 so to use a single you just call .single() on a normal observable May 19 16:27:16 ? May 19 16:28:33 that is not what he said g09 May 19 16:28:35 g00s: May 19 16:28:58 orbyt_: Yeah http://reactivex.io/RxJava/javadoc/rx/Observable.html#single() May 19 16:29:21 Or if you are defining the Observable yourself, you can define it as a Single instead of Observabl May 19 16:29:32 cool ty May 19 16:30:13 is there anything that just has onNext and onError()? May 19 16:34:03 200 lines haha May 19 16:34:10 more like 2000 lines May 19 16:35:19 oh shit, I'm two minutes behind May 19 16:36:38 g00s: just got there May 19 16:36:51 android themes are the lagest hunk of crap I've seen in a while May 19 16:37:06 oh its over, just as it got interesting May 19 16:37:23 no questions again :( May 19 16:37:52 lotta violence happening there, I guess May 19 16:37:56 GOD DAMM CHET!! May 19 16:38:17 s73v3r i thought i saw some splatter of blood on the background there May 19 16:39:03 whats new in android tools next ;) May 19 16:40:09 orbyt_, yep, certainly there is, e.g. an infinite stream May 19 16:40:25 bitkiller: not sure what you mean May 19 16:40:26 “The ‘What’s New in Android Tools’ talk was given today. There were no survivors.” May 19 16:41:07 i like the talks on themes and styles May 19 16:41:17 mostly because I suck at those so much May 19 16:41:52 and there is so much i can do without too much knowledge May 19 16:42:01 suppose you want to "watch" a certain value from the web, like, some temperature in somewhere May 19 16:42:02 so android wear 2, is that new devices, or just a new OS? May 19 16:42:13 99% of it is untangling the mess of parent hierarchy and qualifiers that determine whats in scope May 19 16:42:45 bitkiller: i guess what im asking is what is the class i should be using for that May 19 16:42:46 your remote sensor will keep emitting the temperature and you keep observing it May 19 16:42:54 so which class? May 19 16:43:02 bitkiller: the best way to go about it would be to write a small server to do the watching for you, and push updates when change happens May 19 16:43:04 g00s: and that is exactly why I want to master it May 19 16:43:25 thepoosh i've been thinking about a side project, a theme viewer May 19 16:43:28 s73v3r: theres a sweet SaaS that does that May 19 16:43:29 s73v3r, that's just a silly example May 19 16:43:32 but not like the AS one May 19 16:43:34 to replace polling May 19 16:43:38 g00s: that will be amazing May 19 16:43:45 bitkiller: I wasn’t being silly May 19 16:43:46 dont remember the name tho May 19 16:43:58 my example was silly May 19 16:44:07 my advice still stands May 19 16:44:38 if you do the polling on the app, then you’re going to have hundreds, potentially thousands of devices slamming this endpoint or whatever it is at once May 19 16:44:45 ok, it makes sense May 19 16:45:51 if the sensor or whatever is yours, then you’re going to run into problems with that device getting slammed. If it’s not yours, then that’s just downright rude May 19 16:47:00 orbyt_, you should use Action1. you would have to pass an Action1 in the first parameter and an Action1 as the second parameter to subscribe May 19 16:47:11 btw, i use lambdas May 19 16:47:28 i use lambdas as well but keep it verbose while writing it May 19 16:47:53 alt+enter is ur friend May 19 16:48:45 or you could use a Subscriber and simply keep onCompleted empty May 19 16:49:17 yea thats what im doing currently, wanted to see if i could get rid of the empty code tho May 19 16:50:02 i usually pass separated parameters to subscribe method May 19 16:50:30 only use Subscriber when need to keep a reference to it May 19 16:51:54 but, but...well, i'm not certain if what i've said is the way people are using all these things May 19 16:52:23 sometimes rx gets very confusing in my head May 19 17:01:20 ah. I had a live stream up, but it ended before I was done watching. Will all the live streamed sessions be available on youtube, or only some of them? May 19 17:01:58 Im using dagger2, and im trying to inject 1 module into another. My injection (@Inject) works in my Activities, but not in modules. Have posted my code here, if anyone care to take a look. Thanks: http://stackoverflow.com/questions/37327723/android-dagger2-module-cannot-be-injected-into-other-module May 19 17:05:28 I wonder if they're forced to wear smartwatches during these presentations May 19 17:05:50 liefer, I dont have time to look closely now, but I think that this answer may help (indirectly if not exactly) http://stackoverflow.com/questions/37105372/ someone posted that in this channel a while ago May 19 17:06:09 i will look, thanks May 19 17:06:34 Xylon_, ahah May 19 17:09:20 Oooh that's a nice feature May 19 17:09:32 Finally we can see in AS which dependencies have upgrades May 19 17:12:03 wow, 92% using Android Studio May 19 17:12:45 I have a feeling that, in the What’s New in Xcode talk at WWDC, Apple isn’t going to be saying something like that May 19 17:13:06 auto install sdk May 19 17:14:39 only 91% use AS for iphone :v May 19 17:14:46 lol. scrolling?! May 19 17:16:10 Is anyone familiar with getHour() and getMinute() methods for TimePicker? May 19 17:17:14 wuno, sort of May 19 17:18:27 I am trying to get the time entered by the user in the timePicker so I can pass it to my setAlarm function. But those two methods keep giving me an error saying they are non-static methods. May 19 17:18:34 I want firebase to work without requiring gcm May 19 17:18:39 or fcm, was it were May 19 17:20:00 bitkiller http://pastebin.ca/3604217 May 19 17:20:25 missingno: why? May 19 17:21:40 @keep lol May 19 17:21:51 because gcm doesn't work in china? May 19 17:22:22 wuno: That's basic java. You need to call those methods on an actual instance of TimePicker May 19 17:22:28 most of google’s services don’t work in china, so it wouldn’t have been much of an option to start May 19 17:22:32 So is Constraint Layout going to be as big of a game changer as it seems like? May 19 17:22:49 i kinda hope so May 19 17:23:03 I hope it's as simple as they've made it look so far May 19 17:23:10 have you tried it? May 19 17:23:24 wuno, getHour is not a class method May 19 17:23:36 Not yet, I'm just watching the dev tools stream right now May 19 17:23:55 ahh, me too May 19 17:24:07 Can anyone shoot me something to read to help? Thanks for your responses May 19 17:24:07 although I”m behind May 19 17:24:19 I'm about 4 minutes behind May 19 17:24:38 I keep rewinding because I get distracted with work and miss things May 19 17:24:43 wuno: you’ve had your question answered. If you need more to read, I’d suggest a book on basic java May 19 17:24:43 wuno: https://docs.oracle.com/javase/tutorial/java/javaOO/index.html May 19 17:24:59 thanks. May 19 17:25:50 Fucking hell, Android Studio can generate tests! May 19 17:26:02 So in order to pass the time from a timePicker I need to write a class. I cant just get the time entered into the timePicker with a function? May 19 17:26:24 Is there a way to prevent long stack traces from being cut off in logcat? May 19 17:26:28 you need a reference to that timepicker instance May 19 17:27:16 and well... May 19 17:27:24 verry interesting features in AS2.2 May 19 17:27:27 yeah, new AS features look pretty amazing May 19 17:27:31 <_1232> no xml editing? May 19 17:27:42 looks like that's what they're pushing May 19 17:27:55 I'm wondering how well that's gonna work together with coordinator layout May 19 17:28:33 one thing, i can see many lines of xml changes if you move a button around, causing git diff to be a mess May 19 17:28:56 <_1232> it cant be any worse then what happens to xib's on iOs May 19 17:28:57 I like the fact that XML editing seems to be well supported still May 19 17:29:18 By the time I get a full time job, this shit will be sentient May 19 17:30:21 Snapshotting during debugging? That sounds great May 19 17:30:22 when should i not use constraintlayout? May 19 17:30:27 has anyone downloaded 2.2 yet? May 19 17:30:35 <_1232> I have but haven't run it May 19 17:30:40 I have, runs quite well May 19 17:30:41 <_1232> it's chilling in my downloads folder May 19 17:30:44 few did, ask another question May 19 17:30:58 _1232: hand it a soda May 19 17:31:05 _1232: and fan it for a while May 19 17:31:11 it deserves it May 19 17:31:18 bitkiller: If it’s like autolayout on ios, it’ll work well for most basic layouts, but you might have trouble on complex layouts May 19 17:31:34 What kind of remote do they actually use for those presentations? It looks huge May 19 17:31:40 something like 75-85% of screens should be fine May 19 17:31:59 <_1232> one of the nice bits of autolayout for me was just how easy it was to animate constraints May 19 17:32:13 hopefully that’s made it’s way over too May 19 17:33:39 I find the speakers at Google I/O very enthusiastic, it's nice May 19 17:34:30 <_1232> I was pretty meh about the keynote, but the sessions are fanstatic May 19 17:34:40 nope, new layout preview still stucks May 19 17:34:41 sucks May 19 17:34:45 <_1232> keynotes are usually just marketing b.s. though wo whatever May 19 17:35:50 _1232: yeah, the keynote is more for keeping consumers happy IMO May 19 17:36:00 _1232: they expect they'll find I/O enjoyable May 19 17:36:25 it seems i heard someone whispering May 19 17:37:39 keynotes vary depending on conference May 19 17:37:44 I wonder if gradle won't need a refresh anymore if you add a newline somewhere May 19 17:38:10 <_1232> did anyone see if they annoucened anything about android apps on chromebooks? May 19 17:38:26 <_1232> i saw something about it on reddit last night but didn't see anything definitive May 19 17:38:49 that was announced a while ago, I thought May 19 17:42:31 <_1232> its been rumored for a while, but nothing offical has come out as far as i know May 19 17:43:10 Eurgh, they've started really repeating themselves May 19 17:44:12 Oh he was summing up lol May 19 17:44:14 Aww, no questions May 19 17:44:18 Didn't have the video open May 19 17:44:23 So was just listening to audio May 19 17:45:23 BUFFERING! May 19 17:45:25 BUFFERING! May 19 17:45:27 Oops May 19 17:46:22 Whaaa, CMake support in Android Studio! Aweeesome! May 19 17:46:45 Now I can finally try to debug that huge C++ native library in AS May 19 17:47:10 ^^ May 19 17:47:25 Is there documentation on how to tell AS to load CMakeLists.txt yet? May 19 17:47:53 Mavrik: Canary? May 19 17:48:02 Canary version of AS May 19 17:48:28 how do i run gradle task from command line for specfic sub project? May 19 17:48:34 ./gradlew? May 19 17:48:40 Mavrik: inside the video you can see some code samples, but I guess the docs are coming if they're not there yet May 19 17:48:52 mflow: wouldn't they be in the AS distro? May 19 17:48:59 <_1232> ya ./gradlew tasks will dump out the tasks you can execute as well May 19 17:49:01 ya but i want to run test but not for all four projects i have there May 19 17:49:11 Nick-S_: see what _1232 said May 19 17:49:15 ya May 19 17:49:32 mflow, ah, haven't seen the video yet May 19 17:49:33 gradlew module:task iirc May 19 17:49:37 wasn't up yet May 19 17:49:43 ooo, changes to AAPT. Maybe it’ll stop breaking with weird, funky, hard to trace errors May 19 17:49:47 i did manage to run the test task but it seems to fail for memory problem, it doesn't happen from AS May 19 17:49:58 Mavrik: the session that announced this has just finished May 19 17:50:05 It's ./gradlew tasks --all actually :) May 19 17:50:14 but will be available later on youtube May 19 17:50:38 "What's new in Android development tools" May 19 17:51:17 It allows debugging Java and C++ code by jumping back and forth between them!!!! May 19 17:51:21 why does android studio download gradle quietly? why does it need to be downloaded? May 19 17:51:24 funny my library project is not listed in ./gradlew tasks May 19 17:52:00 ChrisWarrick, you dont have to. you can also use an existing installation if you dont want a wrapper per project May 19 17:52:16 danijoo_: any hints on that? May 19 17:52:42 ChrisWarrick, somewhere in project settings. i dont have it open May 19 17:52:47 danijoo_: okay, thanks anyway May 19 17:55:17 spudowiar: not sure, I think the docs are separate May 19 17:55:35 ChrisWarrick, I strongly advise against doing that though. May 19 17:55:41 It'll just give you headaches. May 19 17:55:49 Use bundled wrapper and let it download the distribution. May 19 17:56:39 Mavrik: okay, where do I complain to JetBrains that this should happen with a visible progressbar and not a million dots that are visible only because I ran android-studio from console? May 19 17:56:54 sasos90: make a thread and have it sleep for 3600*1000 May 19 17:56:55 mflow: ah May 19 17:57:00 Uhh. May 19 17:57:17 I guess in /dev/null ? May 19 17:57:50 Anyway, both AS and Jetbrains have bug trackers. May 19 18:04:36 <_1232> it's so hard for me to get excited about android wear for some resaon May 19 18:05:26 I had ideas for watch apps, but I didn’t really act on them May 19 18:05:42 I honestly like my Pebble a lot more, despite not having as much integration May 19 18:06:12 i didn't see much android auto ... May 19 18:08:14 Android Auto had a full talk May 19 18:08:18 Bunch of rather neat new stuff May 19 18:08:25 ah nice i need to go re-listen May 19 18:08:28 i heard they were adding wifi May 19 18:08:32 Including phone / tablet mode for people who don't have head units. May 19 18:08:40 Wifi streaming and actual Android Auto as a headunit OS. May 19 18:08:48 Also Waze integration for people who care. May 19 18:09:34 F waze May 19 18:09:39 it’s so laggy May 19 18:09:50 My Lyft drivers always miss turns May 19 18:09:53 i wonder if N preview 3 fixes the auto problems May 19 18:10:08 Auto is an app, so I'd guess no May 19 18:10:33 How is it possible that android studio is giving me a stack trace even though one of the calls on the stack is commented out :S? May 19 18:10:51 a stack trace from another component May 19 18:10:55 that your app uses May 19 18:11:07 or you're not running what you believe you are May 19 18:11:11 like if someone left a stack trace in a lib you implemented May 19 18:11:11 Mavrik, well, N definitely broke things in auto on the 6p; the 6 was fine. So it's N specific and could be reasonably expected to un-break May 19 18:11:16 or waht adq said May 19 18:11:18 (instant-run caused these kind of issue in the past) May 19 18:11:22 dragorn, hrmf, no idea May 19 18:11:22 or you didn’t clean/rebuild the project May 19 18:11:36 My car hasn't been updated yet so I dunno about the issues :/ May 19 18:11:54 tricknology, adq, i'm petty sure i'm not running what i thought i was (i don't have to do a clean each time, surely?) May 19 18:12:22 idk, I use Eclipse.. sometimes I do if it’s a really small change and lint hasn’t picked it up May 19 18:12:40 or XML change and it hasn’t been incorperated into R May 19 18:13:02 someitmes I make a change and there’s still an error in the project so it doesn’t rebuild and I launch the old version which doesn’t contain the change.. May 19 18:13:07 i've not yet learned the foibles of android studio but i thought it was pretty good detecting changes May 19 18:13:08 could be many things May 19 18:13:12 dofidum, i have no idea, i hate to have to clean tbh May 19 18:13:15 or you’re not acutally executing that line/route May 19 18:13:26 it was not needed in the early version of AS, found that was an improvement compared to eclipse May 19 18:13:39 then little by little, i lost trust and started to clean May 19 18:13:45 hahaha May 19 18:13:55 especially when you change some xml stuff May 19 18:14:11 sometimes if you’re develooping a library, then implementing it in another project, you changed the library but the .jar wasn’t built again.. May 19 18:14:12 had a terrible issue making class cast exception when swapping elements few monthes ago May 19 18:14:14 you get the old .jar May 19 18:14:19 .... hat to clean like it's 1990 May 19 18:14:45 adq, it worked after a clean, so thank you. i've now lost faith in android studio :-( May 19 18:15:00 thanks tricknology, he's the one mentionning clean ;) May 19 18:15:15 dofidum, it's just the beginning May 19 18:15:21 ah, thanks tricknology :) May 19 18:15:36 np May 19 18:15:42 on rare case, AS is not able to undo/redo properly... May 19 18:15:42 Androidisms.. May 19 18:15:48 oh god.. May 19 18:15:50 and start mangling the code like hell May 19 18:15:58 Even Eclpse.. liek skipping undo steps.. May 19 18:15:59 brutal May 19 18:16:23 at some point, i was filling one ticket per day (restricting myself to max 1 because... could go far above) May 19 18:16:32 now i'm enough disgusted to not filling any ticket anymore May 19 18:16:51 for AS? May 19 18:17:00 (reasons why I’m still not on it) May 19 18:17:02 yes mainly for AS, and official android lib May 19 18:17:12 There, shimmed NDK bitmap methods so they work on desktop/unit tests. May 19 18:17:22 my initial impression of AS was that it was pretty good; much better than some ides May 19 18:17:31 dofidum, same May 19 18:17:43 i have to say i quite like the experimental gradle plugin for c++ and the support it offers May 19 18:17:44 vim ftw. May 19 18:17:48 but now, it's a ùùùùing factory May 19 18:21:25 so how does one start developing for the Instant Apps thing? May 19 18:22:25 instantly of course :) May 19 18:22:28 idk yet, they said yesterday it should not take more than a day for an app already build May 19 18:22:42 and involve making a more modular approach May 19 18:23:06 anyone know where I find a list of changes in an android system update? May 19 18:23:10 do they not have the docs set up yet? May 19 18:24:10 isn't the instant app thing that it doesn't restart your app, just the activity (when debugging)? May 19 18:24:28 That's instant run. May 19 18:24:41 Mavrik, ah, ok May 19 18:24:46 no, I’m talking about the thing that downloads a part of your app so the user can start it instantly from a link May 19 18:24:52 are there any docs on constraintLayout yet ? (xml attributes, etc) May 19 18:24:59 * Napalm raises fist in the air and says, "DAMN YOU GRADLEE!!!" May 19 18:25:08 lol May 19 18:25:47 ha May 19 18:26:20 * mrandroid is glad it's Thursday May 19 18:27:17 watching the firebase talk of the hours and seeing the sad state of today's computing May 19 18:28:47 i have to go back & watch firebase analytics session, i guess its not up yet May 19 18:28:56 dman, it’s already thursday.... May 19 18:29:17 dman Daniel! May 19 18:29:44 analytics are the bain of privacy and mobile app performance May 19 18:30:00 I don’t use them May 19 18:30:19 we used to track every button press but got rid of it last year May 19 18:30:25 it was pointless May 19 18:30:36 analytics also give you a lot of insight into how your users are using the app May 19 18:30:51 they let you know where you should be focusing your efforts May 19 18:30:58 tricknology you have to ask the right questions first May 19 18:31:38 I see. May 19 18:31:46 oh, mikedg left. i/o is over folks May 19 18:35:35 i can not run test for specific project, it does not show in the tasks list when i ./gradlew tasks May 19 18:36:40 but it does show in the AS ide May 19 18:39:14 * dofidum is writing a custom view! w00t! May 19 18:45:16 tricknology: good for you for not using them. you'll not be punished in the analytics apoclaypyse May 19 18:45:51 is it an expensive operation to change the properties of a android.graphics.Paint object? changing styles or color? May 19 18:46:14 s73vr: my experience with analytics mirrors tricknology. Marketers start by saying "give us everything." It's the most moronic thing you can ask for. May 19 18:46:28 dofidum: no May 19 18:46:33 people who say that should be kicked off your mobile project/fired/whatever. they have no place on a mobile team. May 19 18:46:35 dofidum: it is not expensive May 19 18:47:22 mrandroid: hehe May 19 18:47:33 OTOH, if you start with NO ANALYTICS, and work up from there you have a chance to so something useful. May 19 18:47:36 I wonder what it's like to have a job :) May 19 18:47:48 All the constraints on a daily basis May 19 18:48:07 and for the love of Odin the Destroyer, analytics should be added LAST. LAST I tell you. May 19 18:48:28 spudowiar do you have a mobile app on the market? May 19 18:48:45 mrandroid: no, but have written private apps for my school May 19 18:49:11 I'm guessing you were serious you'd like a job writing mobile app .... if so, get an app on the market. May 19 18:49:19 mrandroid: I don't have a job at all May 19 18:49:22 #justsayin May 19 18:49:31 with an app on the market you'll get a job. May 19 18:49:33 mrandroid: I don't work May 19 18:49:36 ok May 19 18:49:38 i've been thinking about making the jump from c++ embedded dev to android dev... May 19 18:49:51 dofidum. i do both. May 19 18:50:03 Really? One app on the market you think will get you in the door somewhere? May 19 18:50:28 mrandroid: Not thinking about analytics at all during development tends to lead to the kinds of overreaching analytics just being shoved everywhere May 19 18:50:34 mrandroid, in one application? May 19 18:51:00 wuno if you write the app without 3rd party libraries and maintain it for a while, you'll do fine. Even the Cartman Soundboard tells an employeer what kind of developer you are. May 19 18:51:31 s73v3r ... true, the key is to have the RIGHT person design the analytics. Marketing is the wrong choice for that. May 19 18:51:56 they'll have so many analytics in your app in no time flat, that it makes the app unusable. May 19 18:52:01 networking all the time. May 19 18:52:10 sucking down batteries. May 19 18:52:19 stalling the UI. list goes on. May 19 18:52:26 * dofidum is looking up Cartman Soundboard May 19 18:52:29 that is true. I worked on one app with no less than 8 analytics packages May 19 18:52:32 it's Thursday .... why am I RANTING? sigh May 19 18:52:49 and after I left, I found out they removed one… but then added two more May 19 18:52:56 i've kicked marketers out of meetings before. May 19 18:53:44 if people knew how much of their data plan is wasted on analytics and spying on consumers, there might be a class action lawsuit. May 19 18:53:54 LET'S TELL 'EM May 19 18:54:01 in India all the cell plans are metered from what i understand. May 19 18:54:05 I’ve never had the power to do that before May 19 18:54:15 Facebook should be PAYING for the damage to those plans that their analytics cause. May 19 18:54:27 those f**kers May 19 18:54:48 * mrandroid is loving Thursdays. Did I mention that? I'm on a tare. May 19 18:54:49 mrandroid thanks for that input. That is pretty exciting. I have been trying to break out of the monotony of small business website for the past year. I am so sick of it and want to focus on mobile development. I hope to have my first app on the market in the nest 6 weeks. WOOT WOOT! May 19 18:54:58 there's got to be some privacy laws that make some analytics illegal anyway May 19 18:55:02 nope May 19 18:55:16 dofidum there's a movement to ban third party data. that's the kedy. May 19 18:55:18 by downloading and running the app, you’re consenting to have those analytics colelcted May 19 18:55:21 .. key May 19 18:55:44 s73v3r, i'm not sure that'll hold in court May 19 18:55:50 it has May 19 18:55:57 s73v3r, you are consenting and you're not. the users are being duped into installing spy ware on their phones, basically. May 19 18:55:58 s73v3r, what country? May 19 18:56:29 i know on the iTunes store, you have access to the ToS and Privacy Policy before you download May 19 18:56:30 the end user license agreements are written so that you can't sue companies no matter what data they collect. May 19 18:56:43 it's all about protecting the company, not the consumer. May 19 18:57:10 dunno, the EU's pretty good with privacy laws May 19 18:57:14 and it is your choice to run the app. no one is making you do so May 19 18:57:35 the EU has GREAT privacy laws ... 3rd party data is banned from what I understand. May 19 18:57:46 so ... companies can't collect data about you and sell it to others. May 19 18:58:19 i would be shocked to find out that it doesn’t happen, though May 19 18:59:06 yep. the average consumer is worth about $3/month in data sales to other companies. May 19 18:59:30 why do you think apps like Tinder and Facebook are free? May 19 18:59:52 those apps cost many many millions of dollars to build and maintain. Just the apps. Not to mention the server side .... May 19 19:00:02 if you're not paying for it, someone else is. May 19 19:00:19 if you're not the customer, you're the commodity. just sayin. May 19 19:00:42 some day people will be aware. it's just a matter of time. May 19 19:00:53 maybe May 19 19:00:58 Circular reasoning, you dl an app, it's makers insert data collectors you dont know about and the app doesn't list, you find out and sue, it's dismissed cuz its license says you cant sue, so the hidden data collection continues. Gotta luv freedom May 19 19:00:58 mrandroid: I’d liek to maybe add something to that no 3rd party libraries thing.. some companies actually look for that.. ability to use 3rd party libs May 19 19:01:00 but they’re still not going to be willing to pay for apps May 19 19:01:21 mrandroid: I’ve been dinged on interviews because my current position, we don’t/can’t use 3rd party libs May 19 19:01:27 we have to audit every line of code May 19 19:01:29 trtle: It’s not usually hidden. the ToS and Privacy Policy say they do that May 19 19:01:30 tricknology. true ... some companies are using 3rd party libraries. but you have to explain when it's appropriate or not. May 19 19:01:44 tricknology: your current company is idiotic, then May 19 19:01:47 yeah, usually they’ll ask though, straight up.. “what kinf od 3rd party libs do you like?” May 19 19:01:53 the only talk i wanted to watch "Advanced Data Binding" and its not recorded May 19 19:01:54 :( May 19 19:01:54 well.. not really May 19 19:01:59 there are requirements May 19 19:02:03 and we have to follow them May 19 19:02:22 there are very few instances in which i can see “No 3rd Party Libraries” being a valid requirement May 19 19:02:25 tricknology : they DO. And the question is an invitation for you to explain how you evaluate those libraries and determine they're appropriate (technically speaking) May 19 19:02:35 many people don't get that in interviews. May 19 19:02:43 nice tip mrandroid: thanks May 19 19:02:58 unfortunately, because of my current position, not much exp with 3rd party May 19 19:03:02 i flat out tell people I'm against them, but have a process to accept the ones that can pass muster. May 19 19:03:23 mrandroid, why are you against libraries? May 19 19:03:34 tricknology but i bet you could look at OKHttp code and tell me what's wrong with it? May 19 19:03:52 probably not.. May 19 19:04:02 dofidum: it's a long list. It's not that I'm against libraries, in general. it's that I'm against poorly written libraries. May 19 19:04:07 and most of them are poorly written. May 19 19:04:08 or maybe.. i havent looked at it.. haha there’s something wrong with it? May 19 19:04:20 I know it had a vulnerability May 19 19:04:44 *scratches head on why Android is now using it under teh hood instead of AC* May 19 19:04:50 mrandroid, that's common sense :) May 19 19:05:26 Square has some of the best developers working on their libraries. Some I know personally. And those people will probably tell you the libraries are written for a specific purpose ... May 19 19:05:30 ... your mileage will vary. May 19 19:05:36 ^^ May 19 19:05:39 envious of them for that May 19 19:05:49 would be a dream to work in one of those teams May 19 19:05:50 and to the interview question mentioned before ... can YOU as the engineer explain what that means/ May 19 19:06:28 explain what what means? May 19 19:06:38 ohai May 19 19:06:55 quick q, what's the downside of choosing the minimum possible required sdk version? May 19 19:06:56 n0rp3d: ask in ##chat May 19 19:07:02 j/k May 19 19:07:04 and we've come full-circle )) May 19 19:07:15 n0rp3d: lowest API level? May 19 19:07:20 yeah May 19 19:07:25 like 10-11 May 19 19:07:29 If you choose like 4.4+ it should be ok. May 19 19:07:35 i have a phone on 2.3 May 19 19:07:35 There are still MANY 4.4 devices out there. May 19 19:07:38 <_1232> i've seen more iOS dev tips then android dev tips May 19 19:07:40 <_1232> so weird May 19 19:07:40 yeah ... when a library is written to solve a specific problem ... in other words, the use case and scope the code is written for. May 19 19:07:42 i'd like to test on it May 19 19:08:31 so yeah May 19 19:08:47 if i would be to use the minimum as API 9 May 19 19:08:53 would the thing just weight more? May 19 19:08:58 or some features could be disabled? May 19 19:09:23 I target 12 May 19 19:09:26 min May 19 19:09:34 target is cool May 19 19:09:37 but what's the diff May 19 19:09:43 between a target towards 9 May 19 19:09:48 and a target towards 15 May 19 19:09:50 ? May 19 19:09:54 is it just the size? May 19 19:09:54 more functions available May 19 19:10:03 Anyone here using AS 2.2 yet? Are there any showstopping bugs I should be aware of? May 19 19:10:06 you target always newest May 19 19:10:11 your minsdk is the minimum May 19 19:10:16 the minimum, yes May 19 19:10:34 while there are still many 2.3, targeting 4.0+ will be much easier May 19 19:10:41 and the minimum should be set depending on specific features that are available starting from android vX ? May 19 19:10:54 easier how? May 19 19:11:02 since 2.3 doesnt have native fragment support (well you want to use support fragments anyway), directly setting views positions and whatnot May 19 19:11:09 if you target 6.0 you’re gonna have a fun time with permissions May 19 19:11:23 i have to write a radio streaming app.. May 19 19:11:35 have a 2.3 android phone, would like to test on it without having to reflash May 19 19:11:43 what would you do in this situation? May 19 19:11:51 test on an emulator May 19 19:11:56 Why would you be testing on 2.3 at this point May 19 19:11:59 unless you're Facebook May 19 19:12:04 because i have a 2.3 phone May 19 19:12:05 i just wrote that May 19 19:12:11 or genymotion, but newest emulator is fast enough May 19 19:12:19 Are you deving for users? Or yourself May 19 19:12:20 not an option May 19 19:12:24 for users May 19 19:12:29 Then don't target 2.3, simple as that May 19 19:12:34 minsdk 14 at least May 19 19:12:34 minimum May 19 19:12:37 why? May 19 19:12:40 if you really consider being android developer in the future, then you really need to buy a newer phone May 19 19:12:52 Ashiren: kthx for the insight May 19 19:13:02 but for real. what's the problem if i set the minimum lower? May 19 19:13:15 a simple radio streaming would work on android 1 i think May 19 19:13:17 you miss out on cool functions May 19 19:13:21 if youre new to this, none May 19 19:13:25 and you might need a bunch of appcompat May 19 19:13:32 heh ^^ May 19 19:13:39 you’ll figure it out May 19 19:13:49 you’ll find a function that solves your needs beautifully May 19 19:13:51 cool features, that's the thing May 19 19:13:59 then you write it and you get a lint error that minsdk must be XX+ May 19 19:14:08 that's what i wanted to ask May 19 19:14:09 ah May 19 19:14:14 I can’t think of what it was but it just happened yesterday May 19 19:14:15 i see May 19 19:14:19 so I upped from 11 to 12.. May 19 19:14:27 wasn;t gonna deal with workign around May 19 19:14:30 tricknology: thank you, got it May 19 19:14:35 :D May 19 19:14:48 any suggestion to where might i find the minimum needed sdk for a function or other? May 19 19:14:54 on the docs May 19 19:14:56 or there's info on like the android docs May 19 19:14:57 ah May 19 19:14:59 thx thx thx May 19 19:15:01 https://developer.android.com/reference/android/app/Notification.html May 19 19:15:02 opper right May 19 19:15:06 Added in API level 1 May 19 19:15:08 or android studio will underline red for you May 19 19:15:12 kik May 19 19:15:12 yeah that too May 19 19:15:21 i see, i see May 19 19:15:28 okay, thank you very much May 19 19:15:43 if you'll need help with static/web dev, i could help with that %) May 19 19:15:46 n0rp3d, I don't know if you got your answer or not but May 19 19:15:48 compatibility libraries probably. you lose out on some newer features because some of the older systems/libraries flat out don't support them. like one of my apps lost the material design little "shivs" shadow things because I was back porting it to kit kat and support for them is only available on 5.x. The support library also didn't support them at the time, and maybe still doesn't, so I had to go with an entirely May 19 19:15:48 third party library May 19 19:16:29 shit i wish you could dual-boot an android phone May 19 19:17:08 https://play.google.com/store/apps/details?id=com.google.android.apps.fireball May 19 19:17:13 the new google Allo app May 19 19:17:17 you can pre-register? May 19 19:17:23 new Google Play feature I guess May 19 19:19:05 oO May 19 19:19:06 n0rp3d I agree with the other person : for streaming audio you can probably use an emulator. which means you can start multiple emulators with different versions of android ... May 19 19:19:40 "You're about to pre-register for Google Allo. Pre-registering means that you will receive a notification on your device when the app is released. You can unregister by clicking the 'Unregister' button." May 19 19:19:42 good idea May 19 19:19:59 but i'd like to use it on my phone too May 19 19:20:03 first app, all that %) May 19 19:20:10 it did not allow me to choose between different devices lol May 19 19:20:29 hi need help, http://pastebin.com/i8H3dCA7 i dont understand why if i press up parent will recreate. help me pls May 19 19:20:33 thing is, can you then update the libraries by switching to different api-s? May 19 19:21:24 huh May 19 19:21:26 your phone is backwards compatible. if you build against an older API it should run. May 19 19:21:54 what im doing is kinda bakwards %) May 19 19:22:02 phone is shit, app should be for latest May 19 19:22:08 whatever, i'll think of something, thank guys May 19 19:22:54 holy fuck you can dual boot on android May 19 19:23:00 fuck i love this job May 19 19:23:18 what is the purpose of dual booting... May 19 19:23:34 simple scenario May 19 19:23:36 phone sucks May 19 19:23:38 2.3 works cool May 19 19:23:40 need a testing device May 19 19:23:43 dual boot with 4.4 May 19 19:23:57 couldn't you just use an emulator? May 19 19:24:14 BustyLoliChan: where's PettanShotaKun? May 19 19:24:54 here, with me May 19 19:26:23 is correct http://pastebin.com/i8H3dCA7 ???? min sdk 17 May 19 19:29:43 pls May 19 19:29:59 woah never heard of android:parentActivityName May 19 19:31:50 in my app many activity use parentname and works May 19 19:32:02 Ashiren: really? May 19 19:32:04 i dont understand why in this case not May 19 19:32:07 so whats the probem May 19 19:32:13 Napalm: eeyup May 19 19:33:18 each activity extends AppCompatActivity May 19 19:33:42 on press "up" parent activity will recreate May 19 19:33:54 i want just "back" May 19 19:34:38 xan_IT: so just call finish May 19 19:35:23 with parentActivityName normally works fine May 19 19:35:42 finish i think is a workaround May 19 19:36:06 xan_IT: its is standard behaviour May 19 19:36:13 up takes you to the parent not to the previous activity May 19 19:36:29 in my case parent is previous May 19 19:37:58 xan_IT Ashiren: you should check these out http://bfy.tw/5qqV May 19 19:38:55 Napalm thz. i use parent correctly in all app without this case May 19 19:39:15 are you? May 19 19:39:16 are you sure May 19 19:39:19 :) May 19 19:39:29 xan_IT: whats your minSdk? May 19 19:39:38 17 May 19 19:40:01 i have 30+ activity and works perfectly May 19 19:40:06 just 1 not May 19 19:40:30 https://developer.android.com/guide/topics/manifest/activity-element.html#parent May 19 19:40:50 so yea, your using the offical in-built OS version not the support version May 19 19:41:13 xan_IT: output your intent and its flags for the activity thats mis-behaving May 19 19:41:22 it's probably launched as a new task May 19 19:43:23 startActivity(new Intent(ReportActivity.this, ReportAddActivity.class).putExtra(USER, user)); May 19 19:44:22 this is inside ReportActivity, when im in ReportAddActivity and press "up" will recreate ReportActivity May 19 19:44:27 Ive seen in some applications that the package name is something like "New TV app fpr you" May 19 19:44:30 how do they do it? May 19 19:45:12 Napalm ? May 19 19:46:50 xan_IT: how was ReportActivity started? May 19 19:47:56 Napalm startActivity(new Intent(this, ReportActivity.class).putExtra(ReportActivity.USER, user)); simple May 19 19:48:28 xan_IT: and your saying in your 30+ activity the parentActivity attribute works fine? May 19 19:48:42 just this one.. and your manifest xml is the same May 19 19:48:50 so, it must be in code May 19 19:48:56 :D yes May 19 19:49:07 you have not pasted any code May 19 19:49:27 how are you handling up May 19 19:49:30 wait... May 19 19:49:41 are you calling startActivity on the application context? May 19 19:50:01 check May 19 19:50:28 no May 19 19:50:43 the strange is that in activity i does not intercept android.R.id.home at all. in all other activity works just with parentname in manifest May 19 19:51:00 i think intercept is for support? May 19 19:52:38 Napalm ? May 19 19:53:15 you mean intercept in the examples on the d.android.com site?.. yea thats support May 19 19:54:24 i mean NavUtils.navigateUpFromSameTask(this) May 19 19:55:08 when use native (sdk 15+) all works with just manifest May 19 19:55:30 yes May 19 19:55:32 "If the parent activity has launch mode , and the up intent does not contain FLAG_ACTIVITY_CLEAR_TOP, the parent activity is popped off the stack, and a new instance of that activity is created on top of the stack to receive the intent." May 19 19:55:35 thats in the docs May 19 19:55:41 sounds like whats happening to you May 19 19:55:58 are you extending the AppCompatActivity? May 19 19:56:06 yes May 19 19:56:26 I wonder if its that May 19 19:56:42 i dont understand "doc" May 19 19:56:51 why popped? May 19 19:56:51 doc = documentation May 19 19:57:14 i dont understand content of doc, this doc May 19 19:57:25 your string May 19 19:57:34 https://developer.android.com/training/implementing-navigation/ancestral.html#NavigateUp May 19 19:57:45 is says it there May 19 19:58:10 in standard mode with no flag normal is not just "back" if parent are in back stack? May 19 19:58:30 no idea what you mean May 19 19:59:30 activity A and B has not flag in manifest and no flag in intent. A start B May 19 20:00:20 in manifest B has parent A May 19 20:00:38 if i press up in B May 19 20:00:49 what appen? May 19 20:00:56 Napalm ? May 19 20:01:45 xan_IT: pastebin.com some code.. this is rediculess May 19 20:02:03 your obviously doing something different in this activity than others May 19 20:03:27 yes :D May 19 20:05:29 btw May 19 20:05:33 the "Indexing" thing May 19 20:05:36 in android studio May 19 20:05:44 does it create indexes just for in-program use May 19 20:05:51 or does it create files inside the folder as well? May 19 20:05:59 n00b alert, so sorry ) May 19 20:06:06 Napalm http://pastebin.com/i8H3dCA7 http://pastebin.com/apBYdfE2 http://pastebin.com/EKuJL6H7 May 19 20:06:43 Napalm this is all code. this made me crazy May 19 20:07:38 could someone tell me firstly is it possible to pass objects between fragements using parceable and if it is, is this best practice, or should i pass the data via the activity? May 19 20:08:13 >tfw question is so n00bish nobody wants to answer May 19 20:08:23 0r nobody knows.. dun dun duuuuun May 19 20:08:33 nobody cared for indexing :v May 19 20:08:56 :C May 19 20:09:09 no but for real, i would google but my laptop is struggling with indexing the thing May 19 20:09:25 krippykripkrip: you could use setArguments() May 19 20:09:27 does it make modifications to the filesystem? or can i upload the 'skeleton' already May 19 20:09:42 krippykripkrip: It’s possible, but it’s vastly prefarble to pass via the Activity May 19 20:09:58 xan_IT: add a onCreateOptionsMenu method that simply returns true May 19 20:10:13 n0rp3d: what do you mean by in-program use? May 19 20:10:18 in AS? Or your app? May 19 20:10:22 AS May 19 20:10:40 in parent or child? May 19 20:10:47 Napalm in parent or child? May 19 20:10:53 yes May 19 20:10:53 I believe it’s just for in-program use, but those files are stored somewhere May 19 20:11:14 thanks random cool internet dude May 19 20:11:23 git commit it is than %) May 19 20:11:36 xan_IT: the ReportAddActivity where you dont have one May 19 20:11:54 those file are in .gitignore arent they anyway May 19 20:12:02 no idea May 19 20:12:08 so say i am creating an app, it has a login page, then a controll panel, the control panel has 5 buttons, on the click of a button it takes you to a page that has 5 pages running of it, so my thinking is login page (activity), control panel (activity), click of one button (activity) then any page after this activity is a fragment, so i pass all my data via that fragment, so i would implement this for each button click, does that make s May 19 20:12:20 Napalm same problem with onCreateOptionsMenu May 19 20:12:22 also for this one i have to use both git && svn May 19 20:12:25 so yee May 19 20:13:46 or what is tbe best approach for this? May 19 20:13:57 n0rp3d: Git-svn to the rescue May 19 20:15:23 Napalm online i have found to use singleTop. it's workaround i mean May 19 20:15:30 does it upload to both repositories at the same time? May 19 20:15:36 *with 1 command? May 19 20:16:16 no May 19 20:16:28 xan_IT: yes, that will work. but not a solution to the issue rather a workaround May 19 20:16:37 because why the holy fuck woudl you have two repositories in two different SCM systems for one codebase? May 19 20:16:54 because in holy fuck fucking shit my logic May 19 20:17:05 the svn's are on a private network beloging to the client May 19 20:17:11 Napalm with singleTop works. but it's not correct solution May 19 20:17:11 the git one is for me May 19 20:17:21 xan_IT: that's what i said May 19 20:17:36 Napalm yes, i confirm May 19 20:17:43 n0rp3d: don’t do that May 19 20:17:46 where there's a will theres a way May 19 20:17:51 no May 19 20:18:02 Napalm i have found bug in android ? :D May 19 20:18:12 no May 19 20:18:30 s73v3r: ? May 19 20:18:36 are you suggesting there's a better solution? May 19 20:18:39 that is just a terrible, terrible idea May 19 20:18:41 why the strong opinion? May 19 20:18:51 because it is just going to lead to pain May 19 20:18:55 how so? May 19 20:19:15 you honestly don’t see how having two incompatible sources of truth would be a problem? May 19 20:19:28 sources of truth? May 19 20:19:32 im not following you May 19 20:19:37 the repos May 19 20:19:41 but 2 repositories should not interfere May 19 20:19:43 no i dont see it May 19 20:19:46 elaborate pls %) May 19 20:19:57 you’ve got one codebase in two repositories May 19 20:20:02 so? May 19 20:20:05 s73v3r: they could be different codebases May 19 20:20:12 what happens when they get out of sync? May 19 20:20:13 s73v3r: e.g. a private lib May 19 20:20:26 Napalm any other suggestion? May 19 20:20:26 you sync them May 19 20:20:36 xan_IT: no May 19 20:20:42 spudowiar: if that was the case, then they wouldn’t be asking the way they were May 19 20:20:50 s73v3r: yeah, I see now May 19 20:20:54 n0rp3d: that’s one of those things that sounds a lot easier than it is May 19 20:21:03 dude im a dev for 15 years ) May 19 20:21:09 n0rp3d: theoretically it works, it doesn't alwags May 19 20:21:11 *always May 19 20:21:16 so yeah, we should probably change the topic %) May 19 20:21:16 if so, then you would know that this is a terrible idea May 19 20:21:18 n0rp3d: which means nothing May 19 20:21:24 Napalm :( i cant open a stack overflow req because is a specific question May 19 20:21:31 whatever man May 19 20:21:41 xan_IT: what's the issue? May 19 20:21:43 you can use git-svn to have a git interface to an SVN repository May 19 20:21:54 s73v3r: I've always found shit like that dodgy May 19 20:21:55 that would be the appropriate way to do what you’re looking to do May 19 20:22:07 rly a simple code versioning would suffice, im not planning on branching the thing May 19 20:22:11 more dodgy than trying to keep two disparate repos in sync? May 19 20:22:18 then why use git? May 19 20:22:22 but i do need to commit to both my client's svn, and my github thing May 19 20:22:25 s73v3r: I use cvsimport to maintain a fork of rxvt-unicode, but that's about it May 19 20:23:00 look whatever man, im sure you have your reasons to believe it wont work May 19 20:23:20 i have mine %) May 19 20:23:28 spudowiar i use parentActivityName (min sdk 17) fine in all app less 1 activity. i we cant found bug May 19 20:23:48 spudowiar http://pastebin.com/i8H3dCA7 http://pastebin.com/apBYdfE2 http://pastebin.com/EKuJL6H7 May 19 20:23:51 xan_IT: StackOverflow would be fine May 19 20:23:59 xan_IT: just make sure to include code samples May 19 20:27:11 hey yall May 19 20:27:27 could someone tell me how resolve this please ? May 19 20:27:37 http://postimg.org/image/tpkn8mmtd/ May 19 20:27:55 this is my code ; http://paste.ofcode.org/cTUUtggXRbGrzG9PseLaBy May 19 20:28:35 do mPlaces.toString(), not String.valueOf... May 19 20:28:51 i did the same outcome ? May 19 20:29:23 oh its a string array May 19 20:29:39 hi all, can anybody tell me whats the name of the menu bar in the app which is reachable by the burgerbutton on the left side. i want to implement one but all i can find is the implementation of the toolbar, which is not what im looking for May 19 20:29:40 holder.name.setText(mPlaces[position]) May 19 20:30:38 BOOOOOM lol it worked, god damn ... May 19 20:30:54 these minor things just get you thinking of redoing the whole thing May 19 20:30:54 wickeda: navigation drawer? http://www.google.com/design/spec/patterns/navigation-drawer.html May 19 20:30:57 thank you May 19 20:31:19 thaaaank youuuuuu!!!!! i was searching for an hour! May 19 20:36:20 anybody knows how to solve this? Error:(686) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. May 19 20:37:20 have a good one, guys from android-dev.freenode.org May 19 20:39:05 hey guys, can someone tell me what's going on with my gradle? May 19 20:39:07 http://pastebin.com/kmmyk9Ng May 19 20:39:19 i just wanna build the app :( May 19 20:39:50 it doesn’t like the config you added May 19 20:40:00 you’re gonna have to post your gradle files May 19 20:40:46 i don't understand what you mean... what's the issue? May 19 20:41:03 what permission sis required to have read access to device disk which would allow a file browser? May 19 20:41:05 i’m not entirely sure, but it’s something to do with the config you added May 19 20:41:41 i didn't add anything... it's not my code :/ May 19 20:41:51 what kind of config are you talking about? May 19 20:41:59 post your gradle files May 19 20:42:25 i’m talking about the build types May 19 20:44:52 so. is there a way to have global read access to internal storage? May 19 20:45:37 I feel so bad for folks who work on web frontends full time May 19 20:45:44 s73v3r don't think i'm allowed too :( May 19 20:45:49 "You could have this great features ... eventully" May 19 20:46:00 unfortunately then you’d have to look closer at it May 19 20:46:40 try building on the command line May 19 20:46:59 and add the —refresh-dependencies flag May 19 20:47:15 that’s two - in the front May 19 20:47:18 https://www.dropbox.com/s/1b3r47u6nlf3tsg/Screenshot%202016-05-19%2016.47.08.png?dl=0 May 19 20:47:21 this is what i see now May 19 20:47:42 oh. then why aren’t you doing what it says? May 19 20:47:44 install Android Support Repository then? :D May 19 20:47:57 it literally told you exactly what to do May 19 20:48:03 :) May 19 20:49:50 i'm sorry i'm just an intern :( ... never done android May 19 20:50:41 what did you think that error message meant? May 19 20:50:47 and why didn’t you start with that? May 19 20:50:55 https://www.dropbox.com/s/qprooo2tuodn2v8/Screenshot%202016-05-19%2016.50.48.png?dl=0 May 19 20:51:05 it is installed apparently May 19 20:51:23 install the update then May 19 20:52:33 Romain Guy says that Constraint Layout should remove the need to write XML layouts altogether May 19 20:53:48 overdraw will strike back May 19 20:54:37 i wonder how well it’ll work for custom views May 19 20:56:01 Just downloaded "Android Studdio 2.2 Preview" (linux) to try it out. But I get the following error when trying to run the studio.sh ./studio.sh: 137: ./studio.sh: declare: not found May 19 20:56:01 ./studio.sh: 141: ./studio.sh: Syntax error: "(" unexpected (expecting "fi") May 19 20:56:25 and guess on what I should try to make it running? :) May 19 20:56:37 file a bug report May 19 20:56:40 s73v3r, i believe the same because customview inherits from View at the end May 19 20:57:05 i'm more concerned of how it will (or not) nest layouts & views May 19 20:57:15 azgul, sounds fair enough :-P May 19 20:57:22 i don't even recall any WYSIWYG editor providing clean code under the hood May 19 20:57:29 adq: it doesn’t look like it’ll nest unless you put one inside the other May 19 20:57:36 except maybe, the old borland delphi editor? :') May 19 20:58:03 but I guess I was thinking more about displaying the preview of the custom view. But i guess that’ll work as well as the layout editor would work anyway May 19 20:58:10 ohhh May 19 20:58:22 damn, in this case i have no hope May 19 20:59:01 i mean unless you say you want one inside the other May 19 20:59:01 isineditmode() everywhere, attr ruining everything, nullpointerexception because it's half compiled, etc May 19 20:59:11 i don't expect that will change suddenly lol May 19 20:59:28 yeah. and it sucks, because some of thsoe are in the support library May 19 20:59:45 lineargradient, i can remember by heart depending on the number of positions you give in the array May 19 20:59:47 the shit broke May 19 21:00:06 cardview or cardlayout has been broken for me May 19 21:00:09 or drawable edition, ... cannot support rotation not 0 45 90 .. etc May 19 21:00:10 WTF May 19 21:00:33 the list is so huge since few years, this is why i don't have much hope May 19 21:00:48 or the rounded corner, sometimes it displays all 4 of them May 19 21:00:51 yeah. it’s pretty sad that they can’t make their own stuff work May 19 21:01:04 sometimes, it does not display the one specified, sometimes the positions are somehow inverted May 19 21:01:17 and of course, UI preview changes based on the API selected May 19 21:01:26 cherry on the cak.. ok i'm gonna stop May 19 21:02:11 he did post the resulting layout file from the demo yesterday May 19 21:02:16 last annoying thing i had with preview was with recent toolbar coordinatorlayout, etc and its content May 19 21:02:26 https://gist.github.com/romainguy/b475cb9b85bc76bcdd7ff6441e8a6ca0 May 19 21:02:40 sometimes content goes behind the toolbar, sometimes you got a massive vertical offset (equal to the height of the toolbar) May 19 21:02:41 etc May 19 21:03:33 looks ok May 19 21:03:41 but i'm very careful now May 19 21:03:55 everything they give is ok for simple layout, hello world app May 19 21:04:28 i think it’ll work fine for probably 80% of layouts May 19 21:04:31 then you start using it in a real app, often more complex with some requirements, then the nb of WTF increases exponentially May 19 21:04:34 as most are just basic things May 19 21:11:29 so our api returns just about everything as a string, so with retrofit, the model the response is mapping to has fields that are all strings. If I want to present the resulting object better, I create a seperate object and parse the strings where needed May 19 21:11:43 eg, in the first model user_id would be a string May 19 21:12:02 but its better presented as an int, so I have another model which I create based off the initial one May 19 21:12:05 does that make sense? May 19 21:12:32 So the question is, is there a way to make retrofit parse the json response into the "correct" model on the first go? May 19 21:13:26 eg: if the response from the api is a string, can i have that value stored as an int in my model? May 19 21:15:13 you might have to write custom converters May 19 21:15:24 blah, gradle 2.2.0-alpha1 doesn't work on our project -_- May 19 21:15:43 so theres not an out of the box solution? May 19 21:15:52 thats basically what im wondering May 19 21:16:17 brb May 19 21:17:05 not that i can tell May 19 21:21:16 orbyt_: You could just get the JSON values back as a dictionary, and then send that to a Factory to build your object May 19 21:32:32 erm back May 19 21:32:47 did anyone attempt my question whilst i was gone May 19 21:35:53 Does anyone have a unknown error in the android studio update site and how do i fix it? May 19 21:36:31 I hope someone know what it means. May 19 21:38:04 Has anyone get the same error as i am? May 19 21:38:05 orbyt_: You could just get the JSON values back as a dictionary, and then send that to a Factory to build your object May 19 22:10:12 Dumb question... but say you are in a synchronous method and you run synchronous code, then you open a new thread and run that (using call.enqueue with retrofit), that method returns and doesnt wait for enqueue to callback right May 19 22:10:32 I know the answer, just wanna be positive for some reason.. guess I could use breakpoints to check also May 19 22:29:27 I have an app I am working on which allows the user to schedule events in the phone using alarm manager. When the alarm goes off for now I am popping up a notification showing a message. I want to show a list of scheduled alarms pertaining to my specific events. Can someone show me where I can read about doing that? For example if they schedule an alarm to wake up through another app and at the same time schedule an event in my app and May 19 22:29:28 both apps use alarm manage how do I display only the alarm in the phone pertaining to my app? May 19 22:29:39 drose379|brb: yes May 19 22:30:03 Thanks Napalm May 19 22:30:16 drose379|brb: as in, yes it doesnt wait May 19 22:30:23 just to be clear May 19 22:30:53 Got it, thanks again May 19 22:31:02 wuno: not sure i understand your problem. perhaps you can explain the problem a different way May 19 22:31:33 wuno: you want it so that they tap on your notification and it loads a list of your scheduled alarms? May 19 22:32:04 A user sets a time and clicks a button. Then I use the time from the timePicker in millis to schedule an alarmManager time. Then when the alarm goes off a message is displayed to the user. I want to show the user the list of alarms they created with my app so they can remove them when ever they want. How can I show them the alarms they have created in my app? May 19 22:32:42 It will just be a list view inside of my app. So immediately when they add an alarm it will appear in the list view under the timePicker. May 19 22:34:17 wuno: you could always just save each alarm as you created it into a database May 19 22:34:24 wuno: you cannot rely on the alarmmanager to keep your alarms May 19 22:34:36 wuno: read the docs.. after a phone restart.. they are gone May 19 22:35:30 wuno: you should do 2 things here. 1 store or own list of data. 2. verify with the reboot action the items the user wants alarms on are scheduled. May 19 22:35:38 Can you not programmatically take care of the reboot? May 19 22:35:57 i think you pre-empted my reply. May 19 22:36:29 wuno: ok, back to your original point May 19 22:36:42 wuno: do you want a full screen activity to start when the alarm goes off? May 19 22:36:56 wuno: also do you want the alarm to wake up the device? May 19 22:38:36 Yes Napalm I do. Also the basic logic of my application is following this answer here http://stackoverflow.com/a/37267223/2218253 May 19 22:39:12 ok... May 19 22:39:14 I'm having some fun times trying to get a query to act the same in my unit tests as I think it is acting in my sqlite db browser app. is there an easy way to check and see what version of sqlite my tests are using? May 19 22:39:53 wuno: so thats handling the boot_complete to re-add the alarms May 19 22:40:08 Yes that is what I thought I was doing there. Ok good lol. May 19 22:40:30 So is my logic correct to thinking at this point that there is some type of list of my alarms in the os once created? May 19 22:40:44 not exactly May 19 22:40:52 this is only ever 1 alarm May 19 22:40:58 I was having trouble finding the exact info about this online. May 19 22:41:07 wuno: let me explain May 19 22:41:08 SELECT MAX(sheet_versions.publish_order), all_them_columns FROM sheets JOIN sheet_versions ON sheet_versions.uid = sheets.version_set_uid WHERE sheets.project_uid = "5ab1ce7d-e8e7-45b2-8673-313d757a38f5" GROUP BY sheets.history_set_uid ORDER BY sheets.history_set_uid May 19 22:41:11 ^ the query May 19 22:41:29 rager: select sqlite_version(); -- for version. May 19 22:41:36 kbs: tyty! May 19 22:41:44 are you using robolectric rager May 19 22:41:49 wuno: check AlarmManager.cancel() May 19 22:42:11 missingno: yes May 19 22:42:27 robolectric, junit, running on my computer May 19 22:42:28 wuno: you'll notice it uses PendingIntent May 19 22:42:46 Napalm yes I do see that. By the way thank you very much for taking the time to help me. May 19 22:43:04 it's a pretty standard "make it distinct on this specific field, but take the row that has the greatest value on the given column" query May 19 22:43:45 when I try to use something like "HAVING sheet_versions.publish_order = MAX(sheet_versions.publish_order)", it actually drops 4/7 expected results May 19 22:43:45 wuno: thats how the system tracks your alarms. PendingIntents. PendingIntent's live outside your process in the OS. but only exist in memory. May 19 22:44:13 as it is, the MAX isn't grabbing the results with the max value on that column May 19 22:44:16 Napalm so does it have some type of ID associated with it I can get to track them? May 19 22:44:25 gonna go check on what robolectric is using May 19 22:44:37 Napalm and from my understanding they do still exist after the phone is rebooted? May 19 22:45:08 perhaps they change came in with L and the persisted bundles May 19 22:45:10 but anyway May 19 22:45:31 wuno: at anytime you can call PendingIntent.getBroadcast(). in your example your using a broadcast receiver May 19 22:46:28 wuno: now if you call getBroadcast with the same intent you will get back the same PendingIntent.. you can set the flags to tell it not to create one if it doesnt exist.. now you can detect if a PendingIntent exists. May 19 22:46:42 wuno: you'll notice pendingIntent has a requestCode parameter May 19 22:47:10 wuno: thats the id you can use to track them. You'll probably want to put the same id in the intent's extras. May 19 22:47:31 wuno: remember however, intent extras are not considered when the system checks intent equality May 19 22:47:56 Well this is getting intimidating lol. May 19 22:48:08 wuno: https://developer.android.com/reference/android/content/Intent.html#filterEquals(android.content.Intent) May 19 22:49:00 wuno: just read the top of https://developer.android.com/reference/android/app/PendingIntent.html May 19 22:50:13 wuno: still there? May 19 22:50:53 Napalm ok I am gonna play that back to you. I am going to 1. Use getBrodcast to get the pending intent id. add these id to the intent extras. Use the id to call the alarm information in my list view and use the id to cancelAlarm() when selected in list view? May 19 22:52:42 wuno: sounds good May 19 22:53:26 wuno: when your alarm goes off you receive it in the broadcast reciever.. what then do you do? May 19 22:54:43 Napalm all my app does is show an positive affirmation to its user at the selected time. So when the alarm goes off it just shows a notification with a message. May 19 22:55:02 kbs, missingno: robolectric is in fact using 3.7.10, one minor version release too old to get the feature to make that query work :( May 19 22:55:16 My end game here is that when the user selects the notification it will read the message to them. Napalm May 19 22:55:32 wuno: as in vocally? May 19 22:55:53 ya that would be rad. I do not know if it is possible even. It was just the full extent of my thoughts when I started Napalm May 19 22:56:03 it is May 19 22:56:08 what is your target sdk rager May 19 22:56:29 you can use the TTS service from your own service... and use a PendingIntent from the notification to start the service May 19 22:56:46 23 May 19 22:57:02 and min is 16 May 19 22:57:06 looking at that SO post about this... May 19 22:57:27 http://stackoverflow.com/questions/2421189/version-of-sqlite-used-in-android May 19 22:57:41 oh wow someone's keeping that list up to date May 19 22:57:53 blern... robolectric is doing exactly the right thing May 19 22:58:00 I need to do a join, after all May 19 22:58:06 Napalm I guess my biggest problem here is understanding pendingIntent. I have a function getAffirmation which has the pendingIntent inside it. That is what is calling the notification when the alarm goes off. I still have yet to call the cancelAlarm anywhere. May 19 22:58:09 or a... *retch* subquery May 19 22:58:15 wuno: for the moment you can just post your notification in your broastcast reciever and have its contentIntent be a PendingIntent to your activity with a custom action and with the same id then when the user taps the notification it will launch your activity with the right action for you to detect and highlight the right item by its id May 19 23:01:08 Napalm that is essentially what I have going right now. Hard coded in a message just to have it working. I am using a onHandleIntent() method in a class which is called in the onReceive method. May 19 23:02:05 missingno: actually, I take that back May 19 23:02:06 thats your IntentService May 19 23:02:21 wuno: thats your own service that extends IntentService.. and thats not needed for this. May 19 23:02:22 16 is JB1, so it should be 3.7.11 if it were matching the project's android version May 19 23:02:31 * rager heads off to #robolectric May 19 23:04:24 Napalm you mean not needed for handling the showing of pendingIntents and canceling them? I was planning on adding that logic to the setAlarm() method May 19 23:05:23 wuno: i mean in that example you showed me you followed.. it uses an IntentService.. which is not needed in your case.. May 19 23:05:59 wuno: I dont believe you even need a WakefulBroadcastReceiver just send your notification from your AlarmReceiver May 19 23:06:15 wuno: just extend a standard BroadcastReceiver May 19 23:06:55 Napalm are you saying the way I am doing it is overkill are bad practice? May 19 23:07:01 or** May 19 23:07:35 overkill, and no need to hold the wake lock.. which is what your doing in the wakeful broadcast receiver May 19 23:07:41 i suppose a little of both May 19 23:07:58 you dont want your app requiring the wakelock or using more battery than it requires May 19 23:08:06 hey, i got a question, do avd have /dev files just like if i connected an android device to my pc? May 19 23:08:12 feels like you're fighting against Android in order to do things in a certain way that you have figured that it should be done May 19 23:08:31 don’t fight the droid May 19 23:08:38 Napalm gotcha.. ya that does sound bad. Ok I will rethink that logic and simplify things. May 19 23:08:42 be friends with it, learn its ways :P May 19 23:08:45 the AlarmManager will wake up the device and you get 10 seconds before your onReceive is forcibly closed. May 19 23:08:50 wuno: ^ May 19 23:09:16 MinusFour: yes they are VMs May 19 23:09:41 Napalm gotcha. OK cool thanks for everything. I will simplify it. Thank you! May 19 23:09:51 Napalm, uhm, do you know how could i locate the device? May 19 23:09:57 i want to pass it to a docker container May 19 23:11:11 right now, i'm passing up my android cellphone and it works ok but i rather use the emulator May 19 23:11:23 err avd May 19 23:12:23 erm.. what? May 19 23:12:24 lol May 19 23:12:37 MinusFour: i like docker May 19 23:12:44 MinusFour: what you trying to do exactly.. May 19 23:13:03 I usually ask someone else where I put the device when I need to locate it. I can never remember. May 19 23:13:10 I think I see your problem.. you mean your usb device appears on your host system in /dev May 19 23:13:24 yep May 19 23:13:40 MinusFour: how about adb over tcp/ip? May 19 23:13:45 i think they’re stured under ~/.avd May 19 23:13:52 storred May 19 23:13:55 stored May 19 23:14:03 rager, how would that work? May 19 23:14:12 wifi? May 19 23:14:24 MinusFour: usually requires root on real devices, but May 19 23:14:27 MinusFour: what are you doing with the /dev node exactly? May 19 23:14:43 MinusFour: you want adb inside a docker container to be able to locate the device? May 19 23:14:50 stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp < an SO post May 19 23:15:08 not sure if that's exactly what you're looking for May 19 23:15:17 since "locate" generally means "find the location of an item in real space" to me May 19 23:15:22 Napalm, nothing really, i'm just passing up the device file of my cellphone to docker and then i can run react-native tools May 19 23:15:42 which install the apk May 19 23:15:42 "device file" May 19 23:16:02 good luck, Napalm, my tray table's up May 19 23:16:09 is that not the term? May 19 23:16:39 MinusFour: never used react-native .. how do you pass it the /dev node? May 19 23:17:26 i don't feed it to react-native, but being part of the container seems to work with the command `run-android` May 19 23:17:55 i don't really know what run-android does tbh May 19 23:18:14 all i know, is that if I don't pass the device into the container then it just doesn't work May 19 23:26:21 hi, any guides on setting up jni libs (.so) with gradle-experimental 0.7 and android studio 2.1? May 19 23:40:33 basded on romains tweets, seem they really intend ConstraintLayout to be used from AS (not xml, even though xml is possible). May 19 23:40:50 like, if u do XML they want to know why :) May 19 23:40:59 yeah, those attributes don’t look all that friendly May 19 23:41:37 kinda meh /\ meh about needing AS to edit that thing though May 19 23:41:56 i don’t see why. I don’t edit layouts today outside of AS May 19 23:42:03 so if coworker has AS 2.2 and you have 2.3 what happens O.o May 19 23:42:21 can the 2.3 guy edit the file in a way the 2.2 guy can't see May 19 23:42:50 well anyhow looks cool May 19 23:43:42 you slap the guy for using the unreleased version of the tool on production code May 19 23:44:44 xav wasn't on stage this year May 19 23:44:55 he was aparently on a beach in Hawaii May 19 23:45:01 oh lol May 19 23:45:48 wonder when the session videos will be up... May 19 23:45:59 some already are May 19 23:46:04 hm May 19 23:46:42 yep tey are May 19 23:46:44 they May 19 23:46:50 g00s: https://www.youtube.com/watch?v=csaXml4xtN8 May 19 23:47:10 g00s: https://www.youtube.com/playlist?list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte May 19 23:48:44 why would anyone want to use the actual layout designer in AS is beyond me May 19 23:48:45 Wow this google assistant really makes sense.. That's why they changed the SERP to go all evil. May 19 23:48:57 it's just terrible for doing any editing with May 19 23:49:00 the serp is not really needed anymore in googles world May 19 23:50:46 Zharf: The ConstraintLayout is much, much better May 19 23:51:14 I doubt it May 19 23:51:19 the best improvement on the editor is that now it shows two views: A preview view, and a blueprint view that shows where the thingies are May 19 23:51:22 try it May 19 23:51:39 so even if the preview can’t display your view’s contents, you can at least see where it is May 19 23:52:05 how do I tell a progressbar to start animating? May 19 23:52:16 I don't use AS though, so... May 19 23:53:05 then I guess that wouldn’t apply to you May 19 23:53:12 MinusFour: did you figure your things out? May 19 23:53:28 Zharf, high five! May 19 23:53:34 unless you’re on NetBeans May 19 23:54:06 IDEA May 19 23:54:08 duh May 19 23:54:39 rager, noup :s May 19 23:54:47 is the only way to get a progressbar to start animating to set it’s visibility? May 19 23:54:50 MinusFour: what'd you mean by "locating" your device? May 19 23:55:12 i meant the file under /dev May 19 23:55:19 s73v3r, if it's indeterminate and it's visible then it should animate.. May 19 23:55:26 for the android emulator May 19 23:55:28 nope. just sitting there May 19 23:55:45 MinusFour: don't repeat the same statement that didn't get your point across - just frustrates the both of us May 19 23:56:04 s73v3r: standard progressbar? or custom drawable? May 19 23:56:08 alright, let me think of another way to explain it May 19 23:56:09 standard May 19 23:56:19 actually, lets just forget about the way i want to go around May 19 23:56:21 are you trying to attach a usb device to a docker image? May 19 23:56:34 s73v3r: something might be blocking your invalidate calls. very weird. May 19 23:56:38 I don’t set the visibility directly. I have it in a parent view, and am setting the visibility of that instead May 19 23:56:39 the emulautor May 19 23:57:05 s73v3r: check the actual view inflated with the debugger and check its drawable out May 19 23:57:15 i have already succeeded in attaching the usb device to the docker image May 19 23:57:29 and it's not showing up as a usb device under /dev? May 19 23:57:55 the android emulator? no May 19 23:58:11 I don't think the emulator uses emulated USB to connect May 19 23:58:13 calling setVisibility did it May 19 23:58:19 god that’s stupid May 19 23:58:23 Zharf: the new layout editor looks like it might be usable. not sure I can break the habit of writing my layouts in XML.. so many years now. May 19 23:58:28 I assume it's using tcp/ip to connect to the emulated android device's ADB May 19 23:58:38 you knw what I hate most about Android and Bluetooth May 19 23:58:45 everything? May 19 23:58:47 is the device selection screen.. then the listview is notified.. May 19 23:58:58 Zharf: but i really like the new ConstraintLayout source is quite nice and direct.. so sillyness. May 19 23:59:00 no May 19 23:59:06 that there are more devices.. and you go to choose one and it shifts up or down .. or a page or two down May 19 23:59:30 is there any google io channel? May 19 23:59:32 MinusFour: if you run avd outside the docker container does run-android detect the AVD? May 19 23:59:46 haven't tried that actually May 19 23:59:50 :| May 20 00:00:09 MinusFour: if it does.. just type: adb devices -l May 20 00:00:15 MinusFour: don't really know what you're trying to do, still May 20 00:00:16 or just adb devices May 20 00:00:27 and that will show you the ip and port you'll need to forward May 20 00:00:41 Napalm: doesn't print anything May 20 00:00:42 you're trying to use a docker container that's running the android emulator and another docker container to run the react-native build? May 20 00:00:52 MinusFour: adb devices? May 20 00:01:01 ./adb devices -l May 20 00:01:08 it starts the daemon but nothing else May 20 00:01:10 MinusFour: is AVD running? May 20 00:01:13 yes May 20 00:01:15 in the host May 20 00:01:26 are you running adb on the host? May 20 00:01:34 what's the purpose of docker in this setup? May 20 00:01:42 rager: i'm running the android emulator in the host May 20 00:01:45 Napalm I can not seem to find how to get the id of a pending intent. There is all kind of information about adding an id to extra. Can you direct me or tell me how I would get the id associated with a pendingIntent. May 20 00:01:57 i'm running nodejs in the docker container May 20 00:02:13 Napalm: under host i do get the emulator May 20 00:02:24 wuno: when you call PendingIntent.getXYZ you pass the requestCode which is your id May 20 00:02:29 "emulator-5554 device" May 20 00:02:41 right May 20 00:02:43 thats correct May 20 00:02:48 under the container though May 20 00:02:52 it's not showing up May 20 00:03:27 MinusFour: you need to port forward 5554 of the host to the docker container .. then inside the container run adb connect a.b.c.d:5554 May 20 00:03:42 are you running adb server in the container? May 20 00:04:03 MinusFour: this'll make the adb daemon inside the container connect to the emulator outside the container May 20 00:04:40 MinusFour: you'll probably want to do "adb killserver" on the host before you connect to it inside the container May 20 00:04:54 MinusFour: now run-android will probably detect it May 20 00:04:55 right, i was meaning to ask, there can only be one server per client? May 20 00:05:16 MinusFour: 1 server multiple clients May 20 00:05:25 i mean, if there's an adb server connected to the emulator May 20 00:05:31 MinusFour: i dont think ive ever seen multiple clients to multiple servers May 20 00:05:36 DAMNIT May 20 00:05:41 eclipse just wrecked my undo history May 20 00:05:55 tricknology: wff? why are you using eclipse May 20 00:05:58 wtf May 20 00:06:05 no time to migrate homie May 20 00:06:06 MinusFour: anyway, before you do all that May 20 00:06:12 lol May 20 00:06:17 remember how I was going to ask my work to let me play with it May 20 00:06:17 tricknology: make time.. its simple May 20 00:06:21 LOL May 20 00:06:25 not when you work like 16 hrs May 20 00:06:32 a day May 20 00:06:41 only 16? you can squeeze in some more May 20 00:06:42 :D May 20 00:06:59 Napalm, does the server connect to the client or is it the other way around? May 20 00:07:06 who searches who? May 20 00:07:07 MinusFour: anyway, before you do all that.. you should see if "run-android" works on the host when the host runs an emulatyor May 20 00:07:09 emulator May 20 00:07:49 MinusFour: "adb is the server", "device is the client", adb connects to the emulator May 20 00:07:53 lol... if that works, then why bother with the docker? May 20 00:07:56 server connects to the client May 20 00:08:00 ish May 20 00:08:08 I've build boost 1.61.0 using a standalone clang NDK toolchain, but I get this error while linking against it: https://gist.github.com/jeaye/0606f31cc35936d2e184b3ed62c4ccf2 May 20 00:08:10 server/client is such old terms May 20 00:08:13 Any ideas? May 20 00:08:21 in-truth the phones have adbd which is a "server" May 20 00:08:43 and adb is another server that connects to that server May 20 00:09:00 and react-native talks to the adb server May 20 00:09:03 it's servers all the way down! May 20 00:09:05 Napalm, I think that would be called.. slavery May 20 00:09:06 so, if the adb server connects to the emulator, no other adb server can connect to that emulator right? May 20 00:09:18 * Napalm cracks the whip May 20 00:09:18 MinusFour: Try it and see. May 20 00:09:20 :D May 20 00:09:25 lol May 20 00:10:00 MinusFour: pass.. but i wouldnt try it first time around.. know it works under standard conditions first.. then you can try both at the same time .. May 20 00:10:10 right im off May 20 00:10:12 night all May 20 00:11:00 alright well thanks, now i guess i need to find a way to make it discoverable then from the container May 20 00:11:23 i mean through tcp May 20 00:11:26 MinusFour: i just said.. "port forward" May 20 00:11:35 docker has the -p option May 20 00:11:39 infact May 20 00:11:40 wait May 20 00:11:42 it goes both ways? May 20 00:11:49 you can just do -p ::5554 May 20 00:12:07 i thought it would forwards requests toward the container May 20 00:12:12 not from the container May 20 00:12:18 pass May 20 00:12:19 but i'll try May 20 00:12:20 read up May 20 00:12:28 you might need udp aswell May 20 00:12:29 bye May 20 00:13:20 MinusFour: why bother with docker at all? May 20 00:13:53 to have a consistent dev environment May 20 00:14:12 are you trying to hand this dev environment to several other coders? May 20 00:14:20 well yes... May 20 00:14:44 it's that such a bad idea? May 20 00:14:48 and they don't know how to use nvm? May 20 00:14:51 vOv May 20 00:15:02 I'm not very enamored with the idea of docker May 20 00:15:10 Napalm sorry I had to step away. What is the .getXYZ May 20 00:15:12 well, there are other dependencies as well May 20 00:15:23 database software for one May 20 00:15:31 ah, gotcha May 20 00:15:38 we running on different S.O.s May 20 00:15:52 idk, i thought as far as consistency goes May 20 00:15:59 thought that having docker containers consume services over the network was like... Docker 101 May 20 00:16:00 a dev environment would be a nice addition May 20 00:16:12 you should probably ask #docker about how to do basic docker, not #android-dev, anyway May 20 00:16:26 well, i don't have much experience over docker May 20 00:16:41 i've been searching on ways to communicate the container with the host May 20 00:16:44 like... you dock your docker with the database to the docker with rails to the docker with the caching server to the docker with... May 20 00:17:00 container to host should be p much the same as container to container, no? May 20 00:17:18 not really, or from what i've read no May 20 00:17:21 * rager shrugs and points at #docker and #docker-dev May 20 00:17:33 i'll ask around #docker thanks May 20 00:17:45 it's time to queue up for the next flight towards home, anyway May 20 00:18:18 good luck May 20 00:18:32 I guess this kind of multiple-services dev environment is what I'd use Vagrant for, honestly May 20 00:18:37 but people are all about them dockers these days May 20 00:28:32 they added some new events tomorroe May 20 00:29:33 oh well livestreamed its the same May 20 00:33:42 I'm getting now a Connection Refused statement May 20 00:45:01 I've build boost 1.61.0 using a standalone clang NDK toolchain, but I get this error while linking against it: https://gist.github.com/jeaye/0606f31cc35936d2e184b3ed62c4ccf2 May 20 00:45:03 Any ideas? May 20 01:31:32 I have a singleton that needs a Context, and right now I am passing it each time I get an insstance through the static instance method May 20 01:31:43 But I know that I only need to pass it the first time, and the rest it doesnt even get used May 20 01:31:48 Im thinking of a way around this May 20 01:32:02 Maybe initializing it in the Application class? Then using it throughout? May 20 01:32:12 Is that bad prac? May 20 01:35:22 Like a create method that accepts context, then use instance() throughout the rest of the app May 20 01:36:43 drose379 yeah, do it in application.onCreate May 20 01:37:52 Ok, then throughout the app I know its safe to just use the #instance() method that doesnt need context? May 20 01:38:05 yeah May 20 01:38:16 Its not considered bad practice to do that? May 20 01:38:54 its android, leave your beautiful design at the door ;) May 20 01:39:15 Well what could possibly go wrong with it? May 20 01:39:17 and onCreate is good to init junk like analytics, etc May 20 01:39:31 guys how do I know if the jack compiler is already installed on my computer? May 20 01:39:43 I see May 20 01:50:52 drose379: it's considered "bad practice" to use singletons May 20 01:51:56 drose379: but the singleton won't last any longer than the application, anyway May 20 01:52:16 I'd try to just pass the context as a method param if it makes sense or just not use a singleton if possible May 20 01:52:17 * rager shrugs May 20 01:52:31 for analytics stuff, whatever May 20 01:53:14 and if the context is just used to initialize it rather than kept around to be used later on, then it's not so bad, anyway May 20 02:00:53 rager: its a database helper class so it needs context to create instances of SQLiteDatabases' May 20 02:02:03 * kbs generally makes sure to use a getApplicationContext() instance for such situations... May 20 02:03:42 android in its wisdom is somewhat anxious to GC activities/services - keeping a reference to these is probably at least morally at odds :) May 20 02:05:09 Singleton: the architecture of choice for Android ;) May 20 02:06:33 I thought dianne also gave us all the go-ahead to ignore much of the framework, or am I reading too much into it ;-) May 20 02:06:44 watching this Firebase Analytics session - wtf with this live coding, i can't even read it sitting infront of my computer May 20 02:06:44 * kbs still hates fragments May 20 02:06:59 also lol they demo using xcode haha May 20 02:07:49 It is funny how there are iOS tutorials using xcode and swift in I/O May 20 02:11:16 means Google isn't Android just because Android is Google May 20 02:11:24 kbs yeah I am def using getApplicationContext for this May 20 02:11:30 Sorry, didnt see your msg earlier May 20 02:11:58 drose379: cool :) May 20 02:12:07 Why do people put up code during demos? May 20 02:12:22 drose379: and you're trying to create databases in places where you don't have access to a context? May 20 02:12:26 Apple would never do that May 20 02:14:08 No, I do have access to it rager May 20 02:14:27 * rager shrugs May 20 02:14:46 Later guys May 20 02:14:51 Google singletons the crap out of the standard library; g00s is right about the love for singletons, anwyay May 20 02:15:17 Singletons are a reality, they are unavoidable May 20 02:15:28 It’s unfortunate Android chose to use so many statics to implement them, though May 20 02:15:36 they're not bad by definition, but they're definitely a smell May 20 02:15:39 If I were designing this today, I would hang these on the context May 20 02:15:44 No they’re not a smell May 20 02:15:52 at least, the traditional static/global var singletons May 20 02:16:01 So you’d do something like context.getLocationManager().getMyLocation() May 20 02:16:20 perhaps May 20 02:16:33 Statics are a pain though but still, you can work around them in your tests May 20 02:16:36 no errant references to contexts end up jammed into global vars, at least May 20 02:16:43 Never call the static directly, wrap it in your own object and now you can mock it May 20 02:17:04 there's always Powermock if you *really* need to mock away static calls, anyway May 20 02:17:12 Call it MySingletons, wrap them all there, inject with Dagger 2 May 20 02:17:32 @Inject MySingletons singletons; singletons.locationManager.getMyLocation() May 20 02:17:50 Default module delegates to the static one, test module does whatever you want May 20 02:18:02 Dagger's a whole other can of worms May 20 02:18:31 Dagger is great May 20 02:18:34 singletons are smelly because they're generally just global state May 20 02:18:40 It’s one of the main things that keeps Android development sane May 20 02:18:41 smell != incorrect code May 20 02:18:49 No May 20 02:18:56 Singleton = only one instance May 20 02:19:01 That’s all. That’s a singleton. May 20 02:19:03 that's the thing May 20 02:19:14 There’s nothing wrong with state if it’s immutable. If it’s mutable, some care must be taken May 20 02:19:18 people use the singleton pattern for global access *and* one-and-only-one semantics May 20 02:19:23 there’s still nothing wrong with it May 20 02:19:24 and you can't make them stop doing that May 20 02:19:35 The smell is global access, nothing to do with singleton May 20 02:19:46 now you're splitting hairs May 20 02:19:55 I’m not, your definitions are not precise. May 20 02:20:11 you're making precise definitions in order to justify an argument May 20 02:20:28 Some things are singletons, period. It’s their nature. A screen, a location manager, an accelerometer. All singletons. Makes no sense to have multiple instances of them (with some caveats) May 20 02:20:42 when you start by redefining terms more narrowly than the generally accepted uses, you end up going to a silly place May 20 02:21:01 the Application's a singleton by nature, but it's not the usual global-access sort, sure May 20 02:21:07 I’m not redefining anything, you are. Look up the definition of a singleton. May 20 02:21:13 and stuff attached to the Application can be a singleton with 0 static vars and static calls May 20 02:21:43 Saying that singletons are a smell is the same as saying classes that should only have one instance are a smell. It makes no sense. There are such types. May 20 02:21:56 How you implement them defines whether it’s a smell or not May 20 02:22:00 in any case, I already prefaced this by describing the implementation of singletons I was broadly speaking to May 20 02:23:23 implement a singleton in pure java without global vars May 20 02:40:08 jaana: I don't disagree with what you're saying May 20 02:40:27 we're just talking about different things **** ENDING LOGGING AT Fri May 20 02:59:58 2016