**** BEGIN LOGGING AT Sat Mar 28 02:59:58 2015 Mar 28 03:01:06 poutine: i guess tone is hard to get across through text, but i was in no way conveying a final answer with my "read some docs" or "you need a service probs" Mar 28 03:03:16 desmin88, However you want to play it off is fine by me, you just don't sound that experienced to me, and those were stupid answers to be giving people on IRC seeking support Mar 28 03:03:30 this is too good Mar 28 03:04:26 do you know why you want to receive transition notifications beyond your application lifecycle Mar 28 03:05:45 what happens to a Handler.postDelayed() call whos timer runs out when the lifecycle has reached stopped? (in particular, im making a location update every 5 mins) Mar 28 03:05:54 does it run? is it lost? is it queued? Mar 28 03:06:01 it feels like its one of those three Mar 28 03:06:46 desmin88, Yes, I have a home automation system that I'd like to inform of a person entering or leaving a geofence, I need something that can work even if they've ran 100 different apps since mine Mar 28 03:07:48 and my application lifecycle has ended, I'm surprised since google is getting this info server side they can't use a push notification like google cloud messaging on geofence transitions Mar 28 03:08:03 that they can't just launch an intent on that being detected by server-side code Mar 28 03:08:31 I know a workaround is to have a persistent notification which keeps my service active all the time, I just hate that solution Mar 28 03:08:47 thats about the only workaround Mar 28 03:08:54 otherwise you cannot gaurentee your service wont get killed Mar 28 03:09:32 theres also the option of setting android:persistent="true" but that only works with system apps Mar 28 03:10:37 it's dumb, you're constantly reporting your location to google services, why can't they initiate an intent based on the specifications of the geofence you sent to their servers Mar 28 03:10:43 kline: What do you mean by "when the lifecycle has reached stopped"? Mar 28 03:11:05 its not that constant location reporting otherwise your battery would be shredded Mar 28 03:11:48 desmin88, it is too Mar 28 03:11:54 http://www.google.com/locationhistory Mar 28 03:12:00 it's not polling GPS every millisecond Mar 28 03:12:08 but it's constantly reporting on your location Mar 28 03:12:38 TacticalJoke, say i register a delayed event with a handler, and then the user goes back to the home screen to run another app. what happens if the timer expires in the time that the app is stopped? Mar 28 03:12:44 its a little more complicated than just how many entries in your location history Mar 28 03:12:49 ( http://developer.android.com/images/training/basics/basic-lifecycle-create.png ) Mar 28 03:13:04 kline that message will be scheduled on the main looper, and will run (eventually) however your activity will be gone, so if that delayed message tries to do something, likely then NPE Mar 28 03:13:22 kline so remove pending messages in onStop or something Mar 28 03:13:26 desmin88, Can you elaborate a bit? Because whether it comes from GPS, wifi, or any other number of factors, your phone is communicating what it knows about your location on a regular basis Mar 28 03:13:34 g00s, rats :> Mar 28 03:13:35 Note that if the user clicks Home as opposed to Back then the activity might still be alive. Mar 28 03:13:43 s/clicks/taps/ Mar 28 03:14:02 (By 'alive' I mean 'not destroyed'.) Mar 28 03:14:11 yes, i mean not-destroyed-just-stopped Mar 28 03:16:20 yes the phone does report location often and location history shows locations but that doesn't mean gplay services without any request on your own would be able to constantly feed you updates Mar 28 03:16:23 I don't know much about what you're doing, kline, but is this one of those "Should use a service" things? :) Mar 28 03:17:25 consider the possibility that services doesnt even poll location, it just uses the results from other apps or services who poll location and only gets that reported dependent on other apps Mar 28 03:17:43 or low internal very coarse reporting etc Mar 28 03:18:45 TacticalJoke, i think probably not, i just want to turn on location listening every 5 mins (and then turn it on after the first gps fix) Mar 28 03:18:50 desmin88, I'm failing to see where you're seeing this impossibility, google controls the software that runs on your phone, google uses push notifications for many of their services, these push notifications start google Intents, so the capability exists for google to remotely start an intent based on something. You report your location to google services on a regular basis, when you setup a geofence Mar 28 03:18:50 , you tell google services about the geofence. Why in your mind does it seem impossible to you that google, upon receiving a location update that fits within the confines of a geofence, could start an intent? Mar 28 03:21:05 course location being close to a geofence could easily trigger a fine location check without risking that much battery life Mar 28 03:21:15 geofences require crafty use of location reporting Mar 28 03:21:38 your phone doesn't report the kind of location data on its own regularly enough to use a geofence Mar 28 03:21:52 kline: Okay. I don't really know much about that, unfortunately, so I can't suggest anything. Mar 28 03:21:58 Sup TacticalJoke Mar 28 03:22:01 Hey. Mar 28 03:22:08 if it did report such data, it would be an active process on the phones part doing it, not part of the background 'normal' play services location reporting Mar 28 03:22:11 How you been? Mar 28 03:23:21 Pretty good. How's the app coming? Mar 28 03:23:31 TacticalJoke how is /your/ app coming :P :D Mar 28 03:23:35 kline, what about using the AlarmManager with a PendingIntent... you could have it trigger an IntentService that checks for location Mar 28 03:24:05 i think just disabling the callbacks will be effective enough Mar 28 03:24:10 It's taking forever, g00s. Wish I'd hurry up. :D Mar 28 03:24:11 Not bad thanks, TacticalJoke. Working on a new feat idk if I have told you about. Hows yours? Mar 28 03:24:22 location updates are useless when the app is stopped anyway Mar 28 03:24:24 Though I just did a nice big refactoring that will make maintenace easier. Mar 28 03:24:27 maintenance* Mar 28 03:24:38 desmin88, what are you basing this information off of? Mar 28 03:24:44 <desmin88> your phone doesn't report the kind of location data on its own regularly enough to use a geofence Mar 28 03:25:08 drose379: I'm enjoying using this reddit app. I don't use anything else now. :D Mar 28 03:25:16 I'm glad about that, because it's possible to work on something and end up hating it. Mar 28 03:25:22 do you really think your phone is just constantly spouting off fine_locations regularly enough to google for google to monitor geofences for you? Mar 28 03:26:00 Its useable now?! Mar 28 03:26:22 geo fences don't always check fine locations, it will use a mixture of coarse to check for general proximity and once you go near it will use fine location for actual inside/outside etc of the geofence Mar 28 03:26:24 Yeah. I will send it to you ASAP; I promise. :D Mar 28 03:26:28 I just wanna make a few changes before sending it out. Mar 28 03:26:33 Yeah, get that over to me! Mar 28 03:26:45 Sound good, been looking forward to that Mar 28 03:26:55 google play services doesn't receive from regular device location reporting what a geofence would require Mar 28 03:26:57 desmin88, do you not understand that you can algorithmically determine using several data points whether a person is moving towards coordinates and ramp up location checks in a smart manner, and use fine location checks when course tells it enough that you're near it? Mar 28 03:27:19 poutine: congratulations, you just described a geofence Mar 28 03:27:24 not normal location reporting Mar 28 03:27:28 there is a difference Mar 28 03:27:39 you're an idiot desmin88 Mar 28 03:27:50 jet fuel cant melt dank memes my friend Mar 28 03:28:21 what would the fucking difference be Mar 28 03:28:25 running a geofence using your device Mar 28 03:28:29 or offloading it google play services Mar 28 03:28:49 desmin88, my application would not have to be running when I enter/exit the geofence if it's done remotely, which it is Mar 28 03:28:52 which would still do the exact same fucking thing by asking your device for location way more constantly than just what it normally does Mar 28 03:29:07 it would not have to do the mathematical work that can't be easily done constantly on a phone Mar 28 03:29:14 math Mar 28 03:29:49 so you want to offload mathematical operations for geofences to google Mar 28 03:29:53 thats the big deal here? Mar 28 03:30:20 Google does 99% of what I've described already, only the maintainer of the listener for the google play services has a limited lifecycle, when google could easily just launch an definable intent themselves Mar 28 03:32:21 g00s: I'm srsly getting into Kotlin. This language is amazing. Mar 28 03:32:37 you realize that if you want constant geofence'ing you will murder battery life Mar 28 03:32:38 I just found out yesterday that we can have immutable properties that are initialized after the constructor. Mar 28 03:32:42 TacticalJoke oh yeah ? nice ... awaiting TacticalBlog on kotlin Mar 28 03:32:44 (Via Delegates.notNull().) Mar 28 03:32:51 desmin88, no you wouldn't, google now and other things do it already Mar 28 03:33:06 whats a specific example in google now Mar 28 03:33:35 desmin88, determining time to work, time to home, reminder service Mar 28 03:33:47 It probably would be a good idea for someone to do a Kotlin blog. I don't have the time, motivation, or knowledge, though, personally. :D Mar 28 03:34:10 thats not a geofence Mar 28 03:34:40 When I tell my watch, "Remind me when I get home to wash my balls", it is setting up a geofence at a location around my home, and firing off a notification during the NOTIFICATION_ENTER geofence event Mar 28 03:35:14 Although Kotlin looks really simple. I think any good Java programmer could master it quickly. Mar 28 03:35:18 TacticalJoke nah, the docs are fine actually. although easy wins on android with kotlin would be nice i guess. at least the kotlin docs are better than gradle ones :D Mar 28 03:35:29 Yeah, that's true. Mar 28 03:36:38 Android-specific Kotlin stuff would be great to see (for example, using Delegates.notNull() for properties that aren't initialized until Activity.onCreate). Mar 28 03:37:52 so far i've been under the assumption, that while java is verbose, ultimately android's apis are moreso - and contribute more to the boilerplate so i've been skeptical of improving things by changing the language. a content provider is going to be just as uggly in kotlin probably Mar 28 03:38:06 but like all assumptions, they must be tested ;) Mar 28 03:38:30 Yeah, I've had that suspicion too. I've not yet used Kotlin seriously, so I have no idea of how big a factor that will be for Android programmers. Mar 28 03:38:34 so i should try it , but still don't have any area of code that needs a makeover - i'd need to write a new app or just start rewriting existing pieces in kotlin Mar 28 03:39:25 I suspect that first-class functions alone (never mind all the other great things) will make writing code way nicer, though. Mar 28 03:39:28 i guess my rx stull would instantly look nicer with lambdas, and i have a lot of that Mar 28 03:39:33 Yeah. lol Mar 28 03:42:07 Also Koan looks much better than XML layouts. Mar 28 03:42:20 Code-wise and performance-wise. Mar 28 03:43:03 I'm guessing people could create a really nice DSL for unit testing in Kotlin. Mar 28 03:55:45 lasserix: Did you know that Glide supports showing animated GIFs? Mar 28 03:55:59 Though it doesn't support publishing download progress when using HTTP. :[ Mar 28 03:56:27 I've actually kinda rolled my own already, but I don't show animated GIFs yet. Not sure whether to switch to Glide. Mar 28 03:57:01 Or I could just figure out how they're displaying animated GIFs, hope that it's simple, and write something. Mar 28 03:57:04 what about fresco Mar 28 03:57:54 Yeah, I was thinking of it, but I'm not sure. Hmm. Mar 28 03:58:06 its got quite a large library size but looks neat Mar 28 03:59:38 yea i saw Mar 28 04:00:14 For my app, image-download progress is pretty important. Right now, I just look at the Content-Length header and compare this with the number of bytes downloaded so far. Mar 28 04:00:27 The Glide people have said they're not considering this feature high-priority Mar 28 04:03:03 g00s: Lambdas certain help with readability but if 1) retrolambda 2) java 8 3) kotlin are not an option for you, reading through the anonymous class boiler plate becomes pretty natural Mar 28 04:03:09 especially with a folding IDE like AS Mar 28 04:03:37 You read ".subscribe(" and you think "ok, here comes the noise" Mar 28 04:04:14 That makes me think -- would Kotlin's inline functions be a big win for performance when using RxJava? Mar 28 04:04:44 I have no idea about kotlin / performance / RxJava, not really a concern to me, even on Android Mar 28 04:04:46 Glide is great, but i've had some recent issues/artifacts with jpeg decoding that i don't seem to get with Picasso. i should explore further! :) Mar 28 04:05:01 there are other performance factors on android that I bet dwarf Rx' easy hand with temp objects Mar 28 04:05:07 Yah. Mar 28 04:06:07 With respect to Rx and Android, I'm more worried about holding strong references to heavy objects because I'm not being anal about unsubscribing than about Rx generating temp objects Mar 28 04:06:43 But well, we're a couple of months away from shipping so I'll cross that bridge later :) Mar 28 04:18:11 is it enough to put my api's ca cert into a keystore? the examples i've seen add the server public cert directly as well, which doesn't make sense, since i might want to change it. Mar 28 04:21:22 CedricBeust yeah, i having to worry about unsubscribing and not leaking is kinda stressful Mar 28 04:21:47 use onAttachedToWindow and onDetachedFromWindow Mar 28 04:22:10 g00s: It's a clear drawback. I think the benefits still outweigh it but it sounds like it's something we might be able to get rid of a months down the line, once the state of the art has advanced further Mar 28 04:22:39 or if they are wider put them in a local bound service on use ondestroy Mar 28 04:24:23 correct me if i am wrong - from what i remember, even if i unsubscribe the observable has a hard reference to the subscriber. and that thing can still get notifications if the observer isn't paying attention to isUnsubscribed() Mar 28 04:24:28 CedricBeust ^^^ Mar 28 04:25:06 But you can null the reference in unsubscribe() Mar 28 04:25:16 One of these rare cases where nulling things helps Mar 28 04:26:07 At least, this kind of thing is easy to detect in Android with a good heap dump Mar 28 04:44:17 having done tests, unsubscription should be enough Mar 28 04:44:58 or at least it was in all the cases we tested Mar 28 04:54:04 <_genuser_> hey ppl. Mar 28 04:54:22 CedricBeust JakeWharton .. the other challenge i am having is, that i know i need to unSubscribe to not leak things - but i need the operation to complete and unSubscribing would signal "stop what you are doing" Mar 28 04:54:52 if the operation needs to complete then it should be decoupled from something tied to lifecycle Mar 28 04:55:04 and your lifecycle bound subscription should be observing the result, not the operation itself Mar 28 04:56:57 hm, i wonder how i would do that - cold observable, decoupled, completes + separate hot observable, lifecycle listeners subscribe to ? Mar 28 04:56:57 Agreed, if your operation needs to complete otherwise chaos, you need something that goes beyond the Android lifecycle. But I can't think of any good reason to ever need this. Mar 28 04:58:25 here is my concrete situation: I have a bluetooth device which has 'a register' for configuration. when the user changes stuff in the UI, it gets written via bluetooth to the device. it should go OK ... but if the operation to change the setting does onError() ... i want to show a snack saying there was a problem Mar 28 04:58:41 so that snack in onError obviously needs Activity, context, etc Mar 28 04:59:33 sounds like you need two apps Mar 28 04:59:59 one which runs in the background mostly Mar 28 05:01:01 i guess i could have some BehaviorSubject that has result of last operation, and the activity just subscribes to that and shows snack / errors Mar 28 05:01:06 like an eventbus Mar 28 05:01:44 i think this is what JakeWharton is recommending Mar 28 05:04:34 Subjects are how you emulate event buses, yes Mar 28 05:05:55 so maybe this is what the rxandroid guys have done. ideally, its almost like i want an operator between the subscriber and the rest of the chain which lets go of the subscriber on orientation changes but doesn't report unsubscribe up the chain to terminate Mar 28 05:06:46 well i guess cache() does that trick with unsubscription kinda Mar 28 05:07:41 damn the lolcycle gunks everything up :D Mar 28 05:44:28 i am was trying to use external .jar file as lib so i created a lib folder and put that .jar inside that and changed my build.gradle like this http://paste.ubuntu.com/10693356/ but i am getting BUILD FAILURE like this http://paste.ubuntu.com/10693355/ THANKS ! for reading this Mar 28 05:48:53 Why are you using "apply plugin:'java'"? That doesn't look right. Mar 28 05:49:15 Also, the dependency shouldn't be declared inside the buildscript { }. Mar 28 05:49:46 TacticalJoke: what should should i do ? can you edit my build.gradle ? or tell me so that i can edit it on my own :) Mar 28 05:51:30 I'm a Gradle noob, but I'd suggest removing "apply plugin:'java'" and placing the "compile files" thing in /app/build.gradle (rather than in /build.gradle). Mar 28 05:51:49 It'd probably be easier to just use Android Studio's way of setting up the build.gradle files. Mar 28 05:52:04 TacticalJoke: i'm not using android studio ! Mar 28 05:52:35 TacticalJoke: i not using IDE Mar 28 05:52:39 Okay, but I think the same applies. Mar 28 05:52:50 boodllebat: Why aren't you using an IDE, anyway? You'd avoid wasting time on stuff like this if you were. :) Mar 28 05:54:12 TacticalJoke: oh i have many reasons for not using IDE my primary memory is low so UI interface becoms laggy ( main reason ) also i feel good when i'm working in vim or any terminal based editor ! Mar 28 05:55:14 Have you tried Android Studio recently? It got a lot less laggy a few months back. Mar 28 05:55:21 Perhaps six months (I can't remember0. Mar 28 05:55:24 s/0/)/ Mar 28 05:56:42 TacticalJoke: yes i tried but still it lags cause my system is old with 4GB of pri memory Mar 28 05:56:57 I have 4GB too. It's slow to start, but it's pretty fast thereafter. Mar 28 06:00:23 TacticalJoke: hmm mine system sucks i guess then ! Mar 28 06:00:43 TacticalJoke: earlier i was using ant but it had lesser support so i switched to gradle Mar 28 06:01:07 boodllebat: This is how my build.gradles look: http://pastebin.com/t9q1kuSN Mar 28 06:02:16 TacticalJoke: that looks cool i guess i'll make some changes to mine using your build configs let me try Mar 28 06:03:20 If I knew more about Gradle I'd be able to diagnose the problem easily, but all I can suggest is to remove "apply plugin:'java'" and move the dependency outside of the 'buildscript' closure. Mar 28 06:03:52 almost sounds like your retro boodllebat, I don't use an IDE for linux dev personally, but I do for everything else. Mar 28 06:04:46 I resisted IDE's for a long time, until I had to use VS for work. Mar 28 06:05:23 For Android development, not using an IDE seems like a really bad idea to me. So much time, energy, and happiness will be wasted. Mar 28 06:05:35 Or the potential for happiness will be lost. Mar 28 06:05:54 Carbonflux: hmm yeah i know but i'm helpless i would have gone for a better system if i was having some bucks (i'm student) or i would have formatted my present system but i already have lots of configs for other things there Mar 28 06:06:11 ya, I have to admit I agree with that, the IDE makes things A LOT easier and I don't even feel guilty about it. Mar 28 06:06:34 boodllebat, so you don't have enough ram/cpu? Mar 28 06:07:00 Carbonflux: i have 4GB of primary memory there Mar 28 06:07:20 Carbonflux: and a 2.13 Ghz i3 cpu Mar 28 06:07:39 I have run AS in 4gig, on a dual core AMD64 Mar 28 06:07:40 That doesn't sound terribly bad, boodllebat. Mar 28 06:07:54 boodllebat: Have you given Android Studio a *real* try? Like, for five hours? Mar 28 06:07:55 and eclipse as well. Mar 28 06:08:09 There is a vim plugin for AS. Mar 28 06:08:20 (I haven't tried it, though, personally.) Mar 28 06:08:23 TacticalJoke: i have tried Android Studio for 1hrs or 2 Mar 28 06:08:48 AS with 4G is very painful, i admit daily to having fantasies of just using ST or vim Mar 28 06:08:54 right now I use a 8gig quad AMD 64 and AS does not really even use 1/2 the resources. Mar 28 06:09:26 Right now I have about 100 Google Chrome tabs open, I'm listening to a YouTube video, and I have Android Studio open. All on 4GB of RAM. My system feels responsive. Mar 28 06:09:44 g00s: what is AS ST vim Mar 28 06:09:49 in linux TacticalJoke? Mar 28 06:09:52 SublimeText Mar 28 06:09:54 Windows 7. Mar 28 06:09:59 ah Mar 28 06:10:02 TacticalJoke i can't open more then 15 tabs wat Mar 28 06:10:05 ;o Mar 28 06:10:05 in chrome Mar 28 06:10:14 oh, you are using OneTab so Mar 28 06:10:16 TacticalJoke: windows handle somethings better ! Mar 28 06:10:21 Oh, I gave up with OneTab. Mar 28 06:10:31 Because it was enabling my tab-hoarding. Mar 28 06:11:24 I'm using uBlock now. Seems better than Adblock Plus. Mar 28 06:11:53 boodllebat: Can you dual-boot with Windows or something? :D Mar 28 06:12:09 TacticalJoke: yeah i have win 7 Mar 28 06:13:28 i wish these ByteBuffer apis would just let me specify the size of my integer in bytes (i have weird 24 bit unsigned ints from this hardware) Mar 28 06:14:03 sounds like an RGB value. Mar 28 06:14:05 netty ByteBuf has getMediumInt ... lol Mar 28 06:14:17 ok so i'm covered there in that one case Mar 28 06:14:38 Carbonflux its just the way this oem packed fields in this 20 byte block Mar 28 06:14:53 1 byte for you, a byte for you, 3 bytes for you , haha Mar 28 06:15:01 heh Mar 28 06:15:11 Sounds like an Oprah give-away. Mar 28 06:15:17 :) Mar 28 06:15:21 so everything is packed Mar 28 06:15:24 yeah Mar 28 06:24:33 why is impossible to see the current time in the netflix online player Mar 28 06:25:06 The one on the Netflix website? Mar 28 06:25:13 YES Mar 28 06:25:15 yes* Mar 28 06:25:36 I'm enrolled in a film studies course and it makes it painful to get accurate timestamps for scenes Mar 28 06:25:37 if you stop playback and exit it saves it in a local media data store thingie Mar 28 06:25:40 silverlight does it Mar 28 06:25:49 Ah. You just see the time remaining? Mar 28 06:26:02 yes just time remaning Mar 28 06:26:07 Yeah, that's annoying for certain things. Mar 28 06:26:20 It's hard to synchronize the watching a movie with someone online too. :D Mar 28 06:26:24 I think silverlight keeps all of it in a local storeage space. Mar 28 06:26:34 I'm at "2 hours and 53 minutes left". Mar 28 06:27:08 how does that help anyone reallyy Mar 28 06:27:09 boodllebat: Did it end up working? Mar 28 06:27:27 TacticalJoke: trying i'm getting close to gradle ! Mar 28 06:27:33 I suspect its all DRM related Mar 28 06:27:42 they keep everything they can secret. Mar 28 06:28:33 its dumb because you can see thumbnails with timestamps as places to jump forward or backward but not the current Mar 28 06:32:02 UIs like that always feel dumbed down to me. Mar 28 06:32:24 At least let us click the time-remaining display to toggle whether it counts up or down, or something. Mar 28 06:32:49 Newbies can suffer if they accidentally click it. Mar 28 06:32:57 They shouldn't be clicking random stuff anyway. :D Mar 28 06:33:16 I just took the total time (2:45:27) and subtracted from the time remaining Mar 28 06:33:22 kinda gross but eh Mar 28 06:34:39 uh Mar 28 06:34:42 uh ! Mar 28 06:34:45 whaaaat Mar 28 06:34:54 i just went into my developer console ... and its blank Mar 28 06:36:36 ok. googleing developer console used to always work, but now it took me https://console.developers.google.com/project Mar 28 06:36:41 wtf is that anyhow :| Mar 28 06:37:53 desmin88, I guess you could poke around in \ProgramData\Microsoft\ maybe in the PlayReadySilverlight dir Mar 28 06:38:08 thanks Carbonflux ill take a look around in there Mar 28 06:38:17 tho that might just be DRM stuff Mar 28 06:38:20 :) Mar 28 06:45:20 God, /r/wtf is really living up to its name today. Mar 28 06:45:31 Clicked four links, saw four NSFL things. Mar 28 06:45:36 there is no god on /r/wtf Mar 28 06:45:38 Is there a good android app for checking stats etc of apps in the developer console? Mar 28 06:46:06 thats really meta duncannz Mar 28 06:46:17 haha Mar 28 06:46:19 yeah it is haha Mar 28 06:46:32 I only found one app but it had a two star rating and looked pretty bad Mar 28 06:46:32 TacticalJoke saw a decent vid the other day of why voting systems like reddit, HN are pretty bogus. calls into question the whole legitimacy of it Mar 28 06:46:49 g00s: every platform ever has been successfully astroturfed Mar 28 06:47:03 Yeah, I'm not hugely convinced by its efficacy. Mar 28 06:47:07 s/by/of/ Mar 28 06:47:14 yeah this wasn't about astroturfing directly, but just 'mob stupidity' Mar 28 06:47:37 there would probably be a considerable market for a gplay developer console app, I always use the adsense app to check earnings but also want to check my app's stats Mar 28 06:47:45 and they have an api Mar 28 06:48:10 Apple has an iOS app for devs to see sales, console Mar 28 06:48:16 I get the feeling that reddit's system is pretty good at giving a lot of people content that they'll probably like quite a lot. But that's about all you get. Mar 28 06:48:34 this is the only one I found but it's not even in english https://play.google.com/store/apps/details?id=com.edsoft.google_developer Mar 28 06:49:27 in many areas, apple is so so far ahead Mar 28 06:49:42 yeah and even more so until rather recently Mar 28 06:49:48 android only got the UI right with lollipop Mar 28 06:50:01 beauty is only skin deep though Mar 28 06:50:05 :D Mar 28 06:50:53 but at least android has AOSP, although increasingly google is abandoning AOSP and releasing closed apps. See Hangouts, Photos, etc. Mar 28 06:51:04 I don't think any of my devices will upgrade to 5.0, I have a first gen motoG and an ASUS older tablet Mar 28 06:51:14 cyanogenmod, Carbonflux? Mar 28 06:51:32 Carbonflux moto g 2014 not going to 5.0 ? Mar 28 06:52:10 hopefully 5.1, because 5.0 seems pretty awful Mar 28 06:52:24 you want those memory leak fixes. all of them :) Mar 28 06:52:55 the ASUS tablet has stopped at 4.3 and the motoG at 4.4.4 Mar 28 06:53:10 ya good point heh Mar 28 06:53:22 I am fine with it really, everything is stable. Mar 28 06:53:40 aha I found exactly what I'm after! https://github.com/AndlyticsProject/andlytics Mar 28 06:53:47 yafy Mar 28 06:53:48 yay* Mar 28 06:54:09 g00s, it seems like the second gen ones are but not this one. Mar 28 06:54:26 if i buy another android device, its going to be a cheap piece of crap Mar 28 06:54:59 so i dont have to care whether it gets abandoned, just get another one in cracker jacks box when that time comes Mar 28 06:55:11 I think I am going to get another motoG actually, my gf has a new one and it seems to have everything I want. Mar 28 06:55:12 I don't even use my tablet. Mar 28 06:55:15 moto E looks OK Mar 28 06:55:18 Apart from to test my app. That's it. Mar 28 06:55:46 No way am I gonna buy another device just to test on 5.x. Mar 28 06:55:58 ya Mar 28 06:56:55 is not the idea to loosely bind hardware to a android version? Mar 28 06:56:57 My dad got a Moto G 2013. It's pretty neat. Mar 28 06:57:16 I <3 my Sony, though. Sony screens are so rich and bright. Mar 28 06:57:25 Nexus-y devices all look yellow/orange to me. Mar 28 06:58:03 I mostly just try to avoid samsungs. Mar 28 06:58:15 I don't have the best "luck" with their hardware Mar 28 06:58:18 its your duty as a developer to avoid samsung :D Mar 28 06:58:24 heh Mar 28 06:58:27 but seriously, its good to test on them Mar 28 06:58:43 The fact that Samsung puts the Back button on the wrong side -- that alone is crazy. Mar 28 06:58:46 I've increasingly found people referring to "apple or samsung" Mar 28 06:58:48 all the crash reports for my app are on samsungs actually. Mar 28 06:58:55 mainly cause advertising works Mar 28 06:58:59 lol i know i'm going to forget about that samung breaking appcompat thing and wind up finding a bunch of crashes Mar 28 06:59:06 in dev console Mar 28 06:59:21 I wonder whether that applies if you're not using Activity.setSupportActionBar. Mar 28 06:59:29 I have an issue in my tracker dedicated to figuring that out. Mar 28 06:59:34 it turns out that some samsungs claim to support opengl 2.0 but don't have full shader support. Mar 28 06:59:51 I'll probably use ProGuard anyway, I guess. Mar 28 06:59:57 Especially if I end up using Kotlin. Mar 28 07:00:16 TacticalJoke did using proguard defaults automatically fix it ? Mar 28 07:00:30 I think so, but I think something had to be kept (I've forgotten all the details). Mar 28 07:00:42 Though the 'keep' thing is another topic, I guess. Mar 28 07:01:04 i think google should have had a blog for everyone to see about that Mar 28 07:01:12 with a definitive answer Mar 28 07:01:38 since, basically, pretty much everyone using appcompat will have to do that now. Mar 28 07:01:39 Dat first response doe: "Please use a forum like StackOverflow for development help" --> WrongForum. Mar 28 07:01:51 Yeah, they should. Mar 28 07:01:55 "Please hire people that give a shit" Mar 28 07:01:57 Right now, it's insider knowledge. Mar 28 07:02:12 Just release your app and hopefully google "samsung appcompat" when it crashes on countless devices. Mar 28 07:02:26 Then navigate through hundreds of comments to figure out the solution. Mar 28 07:02:29 i keep seeing these android devbyte videos with kids in them - are they just interns, hopefully Mar 28 07:02:42 if not, no wonder why stuff is so screwed up Mar 28 07:03:00 It wouldn't surprise me. Mar 28 07:03:58 it was only a matter of time Mar 28 07:04:09 It's crazy that they haven't uploaded a page about that Samsung issue. Mar 28 07:04:14 google is now an elite job people get just to get it Mar 28 07:04:16 How is someone supposed to understand that from just googling? Mar 28 07:04:23 rather than because its interesting Mar 28 07:04:23 I mean, it's possible, but it's so error-prone. Mar 28 07:07:36 TacticalJoke: Solved it :D Mar 28 07:07:48 Nice. Mar 28 07:07:52 Was I right? Mar 28 07:08:27 Just so I know for future. Mar 28 07:09:24 TacticalJoke: hmm what you told me helped me to fix the issue i opened my friend's system he was using android studio got his gradle configs they make thrid party libs in app directory i took its help modified my build accordingly and it worked ! Mar 28 07:13:10 TacticalJoke: now i must write this as shell plugin for non IDE users so that any one would not get stuck up here in future Mar 28 07:19:15 I think I should try porting mathJAX to android. A good library for math rendering is missing. Mar 28 07:19:27 mathjax or katex Mar 28 07:21:14 napster: we cannot use java lib in android project ? Mar 28 07:22:20 hmm, these are JS libs actually Mar 28 07:25:51 napster: do we have to port lib before using it in android cause i'm using pure java lib right in my android without doing anything special and it is working fine ! Mar 28 07:26:34 I'm talking about porting Javascript libraries into Java. Mar 28 07:30:03 What's the ideal way to maintain several products with quite a bit of shared code base? Flavors? Branches? Mar 28 07:33:32 not flavors - either library projects, or one project with sub modules maybe ? Mar 28 07:34:02 how can i get the device id that is mentioned here http://android-developers.blogspot.in/2011/03/identifying-app-installations.html after an installation? Where should I write the file and how can I instantiate the method to get the id ? Mar 28 07:47:43 Hello i want to limit my EditText only to numbers and charecters like "+,-,/,*" Mar 28 08:10:06 bah, need gradle fatjar support badly Mar 28 08:27:45 boodllebat: thats what android:digits="0123456789+-/*" would give you Mar 28 08:28:26 Napalm: yeah figured that :) Mar 28 08:46:57 Hi. Anyone else had problems with NPEs in the in-app billing helper library? Mar 28 08:55:49 Repost: how can i get the device id that is mentioned here http://android-developers.blogspot.in/2011/03/identifying-app-installations.html after an installation? Where should I write the file and how can I instantiate the method to get the id ? Mar 28 09:02:11 shafox: care to be more specific? Mar 28 09:04:24 Leeds: At the time of installation I want to record the android_id, deviceId etc and store it in the db. For that where should I do it ? Mar 28 09:13:33 I suggest doing it on the device Mar 28 09:18:47 Is there anyway in which I can disable horizontal scrolling in a webview? Mar 28 09:19:38 Leeds: can you give some examples ? Mar 28 09:33:25 shafox: you can't really do anything "on installation", since your code isn't executed until the user actually starts the app. Mar 28 09:34:15 Chamooze: So I can do that when the application starts, within onCreate on Application object right ? Mar 28 09:34:21 shafox: so I'm guessing your best bet is the onCreate of your first activity Mar 28 09:34:30 yeah Mar 28 09:35:10 thank you :0 Mar 28 09:35:15 :) Mar 28 09:37:34 shafox, also remember that using ANDROID_ID to track users is forbidden by Play Store Mar 28 09:37:42 you might get banned for that Mar 28 09:45:49 Mavrik: ohh i didnt know that. Mar 28 09:45:55 Mavrik: hmm, not seen that. must've missed a document or something? do you have a URL? Mar 28 09:46:05 So what is the alternative way ? Mar 28 09:46:31 not that I actually have a need to track users like that in my apps, but still.. good to know. :P Mar 28 09:46:46 Chamooze, the change was introduced last year Mar 28 09:46:51 when they added advertiser ID Mar 28 09:47:31 Abiding by the terms of use. The advertising identifier may only be used in accordance with these terms, including by any party that you may share it with in the course of your business. Beginning August 1st 2014, all updates and new apps uploaded to the Play Store must use the advertising ID (when available on a device) in lieu of any other device identifiers for any advertising purposes. Mar 28 09:47:42 hmm, there is the "advertising purposes" tho Mar 28 09:48:29 but doesn't that refer specifically to the advertising ID in AdvertisingIdClient.Info? Mar 28 09:48:43 Chamooze, yes? Mar 28 09:49:50 hmmm... is ANDROID_ID in Settings.Secure the same? Mar 28 09:49:55 no. Mar 28 09:50:48 so how does that mean it's against Play Store policy to use ANDROID_ID to track users/installations? Mar 28 09:51:18 Chamooze, last part Mar 28 09:51:35 while "for advertising purposes" is a rather stertchable term Mar 28 09:51:58 the thing is you're not allowed to link up user personal information without consent with their device IDs - do read the whole part of that play store policy Mar 28 09:52:11 that's why the advertiser ID was created - it lets users optout and reset it Mar 28 09:56:42 Hmmm dunno. From what I can tell, you're not allowed to link the advertiser ID with any device/user identifying IDs Mar 28 09:56:56 so storing ad ID together with ANDROID_ID would be a no no Mar 28 09:57:54 many countries here in Europe also forbid storing personal information at all without user consent Mar 28 09:59:43 anyway, doesn't really matter to me but will have to look into it more if I ever get the need to track individual installations.. :) Mar 28 10:02:55 Chamooze, do you understand what "in lieu of any other device identifier" means? english wise? Mar 28 10:08:27 omelette du fromage Mar 28 10:08:44 wtf is lieu Mar 28 10:33:31 hi Mar 28 10:37:26 hi, i have a local running node.js project and I'd like it to be able to send my phone push notifications when something happens. nothing fancy just for the notification bar with short text Mar 28 10:37:35 whats the easiest way to achieve that? Mar 28 10:38:58 hypfer google cloud messaging or parse push I think Mar 28 10:39:25 memorion: but I'll need an app on my phone for that to work, right? Mar 28 10:39:46 ah you want only a notification? hmm Mar 28 10:39:55 yes exactly :) Mar 28 10:40:30 you could make your own pushbullet channel and get the notifications that way Mar 28 10:40:30 https://www.pushbullet.com/my-channel Mar 28 10:41:03 never heard of ppushbuzllet before. whats that? Mar 28 10:41:58 it started as a service to push links/notes between your phone and your pc but it expanded in functionality and now you can get notified for everything that has a channel Mar 28 10:42:36 basically it's the app you don't have to write yourself if you want just nofitications :D Mar 28 10:43:01 well yeah that sounds about right. i'll take a look at it. thanks :) Mar 28 10:44:11 but.. is there a way to achieve my goal without a third party like pushbullet? Mar 28 10:45:03 not really, you could make your nodejs app send you an email or something but that's still an app on your phone to read it Mar 28 10:48:57 and what about a simple andorid app that does nothing but showing those notifications? Mar 28 10:49:55 hypfer you'd still need to integrate parse push or google cloud messaging on both ends then, which is not that easy Mar 28 10:50:33 hmm.. I thought pushing notifications would be a lot simpler Mar 28 10:51:59 how should that work? you can't just say "find my device on the whole internet (if it's online) and send this message" Mar 28 10:52:52 I thought that google has a simple rest api or something connected to my google account :-) Mar 28 10:53:43 yeah that's what gcm does, it handles the messaging but there isn't a default notification thingy Mar 28 10:54:13 sounds like a gap in the android market Mar 28 10:54:25 yes, and pushbullet filled it Mar 28 10:55:36 i see Mar 28 10:55:43 hypfer this is probably the easiest way to get a notification on your phone https://docs.pushbullet.com/ Mar 28 10:57:13 i have a viewpager and an adapter, an asset database which feed the adapter. i want to make a notification sm which contain the same data inside the 1rst item of the viewpager. And every time at 10 am i want to notify the user with some content(The content has to be from the database). How can i do ? Mar 28 10:58:27 memorion: oh and with pushbullet I can send notifications to my browser as well? Mar 28 10:58:31 looks promising Mar 28 10:58:42 I have a custom listview, it's a relativelayout with three textview, now I've attached a setOnItemClickListener, but it seems it doesn't get fired, any idea? Mar 28 10:58:53 hypfer yes they have apps for most platforms Mar 28 10:59:26 hypfer think of it as an abstraction of google cloud messaging with a default notifications center Mar 28 10:59:48 wow thats nice Mar 28 11:00:34 yeah thats awesome Mar 28 11:00:40 thats exactly what I was looking for Mar 28 11:00:41 thanks! Mar 28 11:00:59 hypfer no problem Mar 28 11:02:06 i have a viewpager and an adapter, an asset database which feed the adapter. i want to make a notification sm which contain the same data inside the 1rst item of the viewpager. And every time at 10 am i want to notify the user with some content(The content has to be from the database). How can i do ? Mar 28 11:06:55 is it possible to query database in broadcast receiver? Mar 28 11:08:50 I'm trying to make my own authentication system for my android app. Mar 28 11:09:15 Storing the password in a shared pref as someone on stackoverflow suggested seems very bad idea Mar 28 11:09:47 but the alternatives saying that you should contact server that generates an auth-token for you and then store that in the shared prefs Mar 28 11:09:55 That's still insecure right? Mar 28 11:10:10 http://developer.android.com/google/auth/http-auth.html Mar 28 11:10:14 and how often should I regenerate that auth-token Mar 28 11:10:28 that's google oauth Mar 28 11:10:35 I'm gonna use my own authentication Mar 28 11:11:03 implement oauth don't make your own protocol Mar 28 11:11:23 http://oauth.net/2/ Mar 28 11:11:36 why would I need oauth? Mar 28 11:12:02 Siamaster, use android account managment to store account credentials Mar 28 11:12:02 Isn't oauth for a server to act as a third-part authenticator? Mar 28 11:12:28 even password? Mar 28 11:12:43 no if you support it yourself it is just a protocol for secure authentication Mar 28 11:13:08 ah, I needed android:descendantFocusability="blocksDescendants" on the parent layout to get onItemClick fired, but why? Mar 28 11:13:51 I was looking into snapchats shared prefs Mar 28 11:14:19 they store auth-token and deviceid which they just use a UUID for Mar 28 11:14:30 it's not the one generated for you by the os Mar 28 11:14:53 that's crazy, I can take that shared_pref and put it on another device in order to login Mar 28 11:15:13 but you only get into the sharedprefs if you're rooted right? Mar 28 11:15:21 yes Mar 28 11:16:18 and you never need to verify a thing in order to login Mar 28 11:16:35 look into settings -> accounts on your phone, all accounts listed there use oauth and the account manager I believe Mar 28 11:17:03 btw, is that weird to ask a user to verify his account on his email on the device? Mar 28 11:17:07 after sign up I mean Mar 28 11:17:10 every app with account stuff not listed there probably does something relatively dumb Mar 28 11:17:37 after every login it's maybe to much but after registration it's ok I'd imagine Mar 28 11:18:14 Siamaster, u can never be 100% safe of stealing on rooted devices Mar 28 11:18:35 yeah, in which case the user got himself to blame I guess Mar 28 11:18:48 correct Mar 28 11:19:13 cool, then I don't even need to implement oauth on my server Mar 28 11:23:29 thanks Mar 28 11:23:54 makes it securer though ;_) Mar 28 11:24:36 how? Mar 28 11:25:43 Is there a way to retrive info you shouldn't from the AccountManager= Mar 28 11:27:28 what do you mean? info from apps other than your own? Mar 28 11:27:43 yes Mar 28 11:28:08 I'd hope not, with root you probably can get something there too Mar 28 11:28:11 the accountmanager should get it's info from some file? Mar 28 11:29:11 accounts.db apparently Mar 28 11:29:42 on rooted everythin is possible Mar 28 11:29:57 same counts for nearly every os :0 Mar 28 11:30:16 but in theory you'd need to unlock the bootloader to gain root so it would wipe all accounts Mar 28 11:37:02 what's the best way to store a lot of pairs of ints and a corresponding bool in sharedpreferences? Mar 28 11:38:32 that's a very generic description :) Mar 28 11:40:10 I let the user choose a subset of data for which he wants to see the data in the main ui, so I need to store for which ids the user checked the checkbox, if that makes sense Mar 28 11:40:55 concat a string Mar 28 11:41:01 and then parse it Mar 28 11:41:31 memorion, hrpf, if you have a JSON parser ready just serialize it into JSONArray Mar 28 11:42:29 ok so there isn't a built in solution for something like that? Mar 28 11:50:57 hello Mar 28 11:54:48 Most of things like checking for First run of the application, getting uuid of the device etc can be performed inside onCreate of Application object right ? Or is it has to be only on Activity level ? Mar 28 12:11:10 hey guys! How can i make an MultiAutoCompleteTextView to show the list of word ignoring case? Mar 28 12:28:36 greetings android gurus Mar 28 12:28:44 could you assist me in one question? Mar 28 12:28:54 i have a png image store in parse cloud Mar 28 12:29:06 memorion have you used any of those oauth libraries for java? Mar 28 12:29:06 i fetch it, convert it to byte array Mar 28 12:29:22 and how to convert this byte array to png? Mar 28 12:29:27 or to any viewable format/ Mar 28 12:29:36 because BitmapFactory decode returns null Mar 28 12:29:48 the decodeByteArray method Mar 28 12:29:49 BitmapFactory.decodeByteArray(blob, 0, blob.length); Mar 28 12:29:57 oh Mar 28 12:30:04 lol Mar 28 12:30:23 are you sure it's a valid byte array? Mar 28 12:30:35 well it is not null Mar 28 12:30:45 and the length is reasonable? Mar 28 12:31:22 i can check, what length is considered reasonable? Mar 28 12:31:24 actually i wouldn't know whats reasonable length Mar 28 12:31:27 oh Mar 28 12:31:32 but I mean Mar 28 12:31:58 you could have fetch "404, http not found".getBytes(); for example Mar 28 12:32:18 Siamaster no sorry Mar 28 12:33:17 Siamaster: but in theory, the decodeByteArray should also decode png images? Mar 28 12:33:28 yes Mar 28 12:35:05 i'm very sure, I'm using it in my app Mar 28 12:36:27 save the image to disk after you got it Mar 28 12:36:34 and check there if its actually a valid imae Mar 28 12:36:36 image Mar 28 12:37:53 btw Mar 28 12:37:59 if you are getting it from a http url Mar 28 12:38:08 you can use Bitmap image = BitmapFactory.decodeStream(httpsURLConnection.getInputStream()); Mar 28 12:38:47 there are also libraries for that Mar 28 12:38:52 (picasso, glide, fresco) Mar 28 12:39:17 they make it *a lot* easier Mar 28 12:39:38 danijoo it's already a one line code? Mar 28 12:40:03 to get the image. yes. Mar 28 12:40:22 what do you mean then? Mar 28 12:40:28 but with a lib its one line to get, set to imageview, save to cache and recycle Mar 28 12:41:47 ok Mar 28 12:44:28 everytime it comes to oauth and authentication i just feel dumb Mar 28 12:44:42 man, even multithreading is a easier part of programming Mar 28 12:44:51 an Mar 28 12:47:48 security is difficult :) Mar 28 13:36:49 I know it's unrelated, but it's rare to find someone who knows. Does anyone know if one could login to Instagram with his facebook account before Facebook bought Instagram? Mar 28 13:39:30 you could try find an old apk :p Mar 28 13:42:17 they were bought before the android app I believe Mar 28 13:42:27 oh Mar 28 13:48:25 Hi. Anyone else had problems with NPEs in the async methods of the in-app billing helper library? I'm making sure to not call any of them after onPause is called, but it seems like ones that have already started continue to run causing NPE/IllegalState.. Mar 28 13:48:56 I read a lot about problems with in app billing but never tried myself Mar 28 13:49:38 Yeah, all I could find were people having similar issues Mar 28 13:50:48 the helper lib itself seems to not have been updated for quite a couple of years or so, wonder if it's abandoned? But I keep seeing official docs referring to it... Mar 28 13:53:03 I just wrote a class, wrote unit tests for it, and tested. Everything passed. I feel like being able to heal cancer now Mar 28 13:53:07 feed the world.. Mar 28 13:53:13 stuff like that Mar 28 13:53:25 hehe Mar 28 13:53:36 I should probably learn to write unit tests as well. *cough* Mar 28 13:53:37 i mean.. they passed on first try! Mar 28 13:53:43 Chamooze maybe this helps https://github.com/onepf/OpenIAB ? but maybe it just has the same bugs and another layer of abstraction Mar 28 13:53:47 maybe my tests just sucked D: Mar 28 13:54:18 Chamooze, the inapp helper methods suggested by google are full of bugs unfortunatly :/ Mar 28 13:54:59 memorion: Thanks, I'll check it out. Not fond of adding third-party stuff though, but what do you do when the standard libs don't work? :( Mar 28 13:56:00 It doesn't seem too complicated though, maybe subclass and fix the standard classes is a less annoying option.. Mar 28 14:02:16 Hi Mar 28 14:02:59 I want to stream voice from my android phone to a laptop Mar 28 14:03:19 by capturing phone's MIC audio Mar 28 14:03:51 I'm completely new to android. If anyone can suggest some libraries for it, it will be very helpful for me. Mar 28 14:03:53 Thanks Mar 28 14:07:37 look the class AudioRecord to capture audio (in raw PCM) from your phone at first Mar 28 14:08:19 ^ mavihs_, after you got audio, it's all about howyou stream that to the laptop, if you encode the PCM, etc Mar 28 14:09:08 if you are completely new to android, expect a lot probability that it is going to fly Mar 28 14:09:16 s/lot/low/ Mar 28 14:25:24 Hello, I'm a bit new to android development Mar 28 14:25:46 Not able to figure out how to use 3rd party libraries in my app Mar 28 14:25:54 I'm working with android studio Mar 28 14:25:58 android studio or eclipse? Mar 28 14:26:27 memorion: studio Mar 28 14:26:57 add them to gradle Mar 28 14:27:13 as library dependency Mar 28 14:27:34 check http://rominirani.com/2014/08/19/gradle-tutorial-part-6-android-studio-gradle/ Mar 28 14:28:43 adq: Thanks for your suggestions. Any suggestions for streaming lib on server side too? Mar 28 14:30:01 danijoo: thanks for the link, will read through Mar 28 14:30:12 I'm trying to use this in my project: https://github.com/LukeDeighton/WheelView Mar 28 14:30:42 ^most android libs up on github which I've seen till now seem to have same structure Mar 28 14:32:49 webglider and most have a 'compile nameoflibraryetc" in the readme to tell you how to include them Mar 28 14:33:09 looks like a normal gradle project Mar 28 14:33:33 you can add it as a module in AS or build an aar to include it in your local maven Mar 28 14:33:44 memorion: Yeah I've seen, but actually I'm totally new to this. I guess I need to understand how gradle works Mar 28 14:33:55 memorion: any good reading suggestions? Mar 28 14:34:59 you can use the library directly from github with https://jitpack.io/ I think Mar 28 14:36:07 i dont like the jitpack approach personally Mar 28 14:36:26 memorion: wow cool, I'll try that out :) Mar 28 14:36:36 ah nvm. it works with github release Mar 28 14:36:48 I thought it just checkout latest release Mar 28 14:36:55 but this library doesn't have a release so you have to pick a specific commit Mar 28 14:39:32 The top contributors of this IRC channel should make a book. Mar 28 14:39:40 Just a shower thought I had. Mar 28 14:40:02 there was once the idea to make a github-tutorial-repo together Mar 28 14:40:11 but i think nobody contributed ^^' Mar 28 14:40:14 yeah, someone should make documentation, maybe we could create a site called developer.android.com or something with all sorts of tutorials and references Mar 28 14:40:24 lol Mar 28 14:41:00 danijoo: That'd be a great idea - but with a book, that would sell, there would be some incentive I guess. Probably goes against what a few people stand for though (the whole open-source code thing) Mar 28 14:41:15 but I guess the code could still be open, and the book could sell, and the book could reference the repo Mar 28 14:44:55 thing with books about android is, they are usually outdated before being released Mar 28 14:46:00 zinx: Just saw your point of sarcasm. Grow up. If you were here long enough you'd see my point. Mar 28 14:46:22 Anthaas|afk: you mean if i paid attention enough? Mar 28 14:46:41 Anthaas|afk: i've been here a long time :) Mar 28 14:46:45 zinx: Nope, and not once did I even suggest that the page would be for me. Mar 28 14:47:40 Well, I guess it would as it'd be for everyone... Mar 28 14:48:55 Are UI thread and main thread the same thing? Mar 28 14:49:05 yes Mar 28 14:49:21 ah okay Mar 28 15:08:04 Hi all, could someone tell me what is the most efficient way to store data while using Fragments? Mar 28 15:16:59 Anthaas|afk, that's the definition of d.android.com Mar 28 15:22:26 why spinner#setSelection doesn't work in Fragment#onCreateView? Mar 28 15:30:22 bitkiller: Are you calling that after setAdapter and so on? Mar 28 15:30:29 yes Mar 28 15:30:45 it works if using postDelayed Mar 28 15:31:09 but, the delay needed varies according to the device Mar 28 15:31:20 thus, it's a no solution Mar 28 15:33:48 I do it in an Activity.onCreate override with no problem. Mar 28 15:34:47 Though maybe Fragment.onCreateView is too early. Hmm. Mar 28 15:35:31 What if you do it in onActivityCreated? Mar 28 15:37:34 i changed a bit the code and it worked in the emulator with a simple post, without delay. let's see how it goes in the device Mar 28 16:26:48 Is BitmapOptions.inBitmap very useful? Seems like a good memory cache would take care of a lot of cases. Mar 28 16:27:08 BitmapFactory.Options.inBitmap* Mar 28 16:34:30 It saves you allocating a new Bitmap Mar 28 16:54:14 morning/afternoon all Mar 28 17:05:00 Does anyone know how to get the fragmentactivity from within a ViewPager OnPageChangeListener? getParent always returns null. Mar 28 17:07:55 Nvm, found a way. Mar 28 17:28:08 doInBackground (Params... params) What's these ... in this AsyncTask method? Mar 28 17:31:01 What is "widthMeasureSpec" and "heightMeasureSpec" in View#onMeasure() ? Mar 28 17:33:54 donniezazen: https://today.java.net/article/2004/04/13/java-tech-using-variable-arguments%20 Mar 28 17:35:25 dcorbin, it's essentuially layout_width and layout_height as passed on from the parent Mar 28 17:35:35 dcorbin, see MeasureSpec class how to unpack the value Mar 28 17:35:49 dcorbin, and what possible values alre Mar 28 17:35:58 Is it possible to publish your app to Alpha Testers from within Android Studio? Mar 28 17:37:23 is there a smart way to make this a drawable with shape files? Mar 28 17:37:23 https://gist.github.com/yishai-glide/4aa868e29942efa5c642 Mar 28 17:37:53 Chamooze: thanks reading now. Mar 28 17:43:51 thepoosh ! Mar 28 17:43:59 hey man Mar 28 17:44:14 sup? Mar 28 17:44:42 hm, well just contemplating how to do batched reliable writes for bluetooth - and how to wrap this in RxJava Mar 28 17:44:44 nicely Mar 28 17:44:53 thepoosh how are things going for the dealine ? Mar 28 17:45:11 dunno Mar 28 17:45:15 it's gonna be tight Mar 28 17:45:22 Muchoz if you use crashlytics beta you can run a gradle task to deploy a build internally Mar 28 17:45:27 and i'm taking 3 days off next week Mar 28 17:45:29 hey JacobTabak whats up Mar 28 17:45:31 yo yo Mar 28 17:45:33 which is the last week Mar 28 17:45:35 just set up my 4k monitor ! Mar 28 17:45:38 thepoosh lol, thats awesome :D Mar 28 17:45:40 it's absurdly large Mar 28 17:45:42 lol Mar 28 17:45:48 JacobTabak: 27''? Mar 28 17:45:53 JacobTabak did you get that dell ? Mar 28 17:45:58 JacobTabak, alright, I'll keep that in mind. Mar 28 17:45:58 samsung Mar 28 17:46:04 JacobTabak, 25" 1440p ftw btw. Mar 28 17:46:16 i was reading windows 10 can handle 8K monitors ... O.o Mar 28 17:46:38 that's not really surprising :) Mar 28 17:46:43 I get a fullhd 24'' ips dell Mar 28 17:47:04 g00s, remember, WinXP could handle 2560 monitors at times where 800x600 and 1024x768 was the norm :) Mar 28 17:47:42 anyway, <3 my 34" LG :) Mar 28 17:47:43 lol, i remember ega and vga :) Mar 28 17:47:43 and only i have a macbook Mar 28 17:47:57 this is 28" running at 2560x1440 Mar 28 17:48:29 can easily fit chat, android studio, and emulator on one screen :E Mar 28 17:49:01 I prefer multi-screen instead of a big one Mar 28 17:49:19 yeah, I don't have a table to handle multiple large screens Mar 28 17:49:24 translation: get afford a big one Mar 28 17:49:32 so I got the 3440x1440 LG Mar 28 17:49:59 (also thunderbolt support with USB hub is nice for not having to plug bunch of devices every day) Mar 28 17:50:16 i think soon we'll just be wearing things like hololense or oculus Mar 28 17:50:20 Mavrik, I made my own table out of a 4x8 piece of laminated wood... Awesome :) Mar 28 17:50:44 JacobTabak, 2560x1440 isn't 4K... (I disconnect so I might've missed something you said) Mar 28 17:50:47 I need lots of room to put all my garbage. Mar 28 17:50:56 new battlestation: http://i.imgur.com/5cybUDL.jpg :D Mar 28 17:52:47 JacobTabak: prefer mine: http://i.imgur.com/rwtzEIo.jpg Mar 28 17:52:57 whoahh vertical display Mar 28 17:53:16 that would break my brain Mar 28 17:53:20 yeah, vertical is awesome Mar 28 17:53:23 MikeWallaceDev thats great, i love how clean, simple, and minimalist the environemnt is Mar 28 17:53:24 moar code Mar 28 17:53:35 Muchoz_Phone: have same monitor. -1 for that keyboard Mar 28 17:53:39 JacobTabak, it's insanely useful and I don't have to break my neck. Mar 28 17:53:57 g00s, ?? you're freaking me out man, I didn't post my pic yet. (or did I O_o ) Mar 28 17:54:16 oh wait i saw http://i.imgur.com/5cybUDL.jpg Mar 28 17:54:21 gdrc, I sent my €200 mech back because it was broke. Costs me €50 for customs and I still haven't gotten that back. You try getting a Belgian Azerty layout Mech and then we'll talk. Mar 28 17:54:24 thats JacobTabak ! Mar 28 17:54:24 oh yeah thats mine Mar 28 17:54:38 brain restored. Mar 28 17:54:41 JacobTabak is that an ikea desk ? Mar 28 17:54:50 GeekDesk v3 Mar 28 17:54:55 oh Mar 28 17:54:58 height control on bottom right Mar 28 17:55:09 JacobTabak whats that little green sticker on your MBP Mar 28 17:55:11 Muchoz: my boss is belgian Mar 28 17:55:13 it's abe! Mar 28 17:55:25 JacobTabak lol, of course :D Mar 28 17:55:30 aner-ner! Mar 28 17:55:33 u know abe? Mar 28 17:55:36 heeheehee Mar 28 17:55:39 cause yeah... Mine has nothing to do with minimalist :D Mar 28 17:55:40 http://pastebin.com/u5QVQJjH Mar 28 17:55:42 JacobTabak from timehop right ? Mar 28 17:55:48 Only WASD V2 has Belgian Azerty, I sent one back with MX Clears. Also I've grown to my fn-key. Mar 28 17:55:51 yep https://twitter.com/abe Mar 28 17:55:56 yeah :D Mar 28 17:56:09 lol 800 dollars desk Mar 28 17:56:21 it's like 600 for the frame Mar 28 17:56:32 you can use any top Mar 28 17:56:37 MikeWallaceDev: Thats probably the most links I've gone through to see someones desk Mar 28 17:56:46 <-- $37 Mar 28 17:56:57 yeah desks! :) https://lh6.googleusercontent.com/-pShdfS0bWvg/Uwt1s0NOOFI/AAAAAAAAHFs/Bphy9C-Qhs0/w961-h721-no/IMG_20140224_173731.jpg Mar 28 17:57:11 Anthaas, damn! sorry, It goes to pastebin automatically. My bad Mar 28 17:57:33 MikeWallaceDev: Haha dont worry Mar 28 17:59:18 ok here's mine https://lh3.googleusercontent.com/-WCJCvIYve04/VM0DDiinuQI/AAAAAAAAGug/UQValy7oUEc/w821-h462-no/20150131_172352.jpg Mar 28 17:59:43 yep, love vertical. I doesn't fit under my desk. Mar 28 17:59:46 Your screen appears to be sideways. Mar 28 17:59:59 do you people really work with nothing on your desk??? Mar 28 18:00:06 very vertical Mar 28 18:00:06 or is that just for the pic? Mar 28 18:00:15 just pic haha Mar 28 18:00:24 phew :D Mar 28 18:00:35 naa always a cup of coffee, at least Mar 28 18:00:35 I just put this top on the desk Mar 28 18:00:38 I'm Oscar the coder :D Mar 28 18:00:44 i would use vertical I have another one Mar 28 18:01:27 Believe it out not, I just took a full BAG of papers off my desk :D Mar 28 18:01:36 (Like a grocery bag) Mar 28 18:02:41 well everybody is using os x Mar 28 18:02:47 nope Mar 28 18:02:50 No way Mar 28 18:02:58 Fedora Mar 28 18:03:13 win & slackware, mainly Mar 28 18:03:24 How do you think I can afford 3 screens ;) Mar 28 18:03:55 I'm looking at my picture... Nothing too embarrassing. phew! Mar 28 18:04:30 Yeah, I really can see how a programmer could do Android dev with an empty table Mar 28 18:04:40 mine is always full of devices and USB cables :/ Mar 28 18:04:43 can or can't ? Mar 28 18:05:21 I have that little Belkin 4 way USB hub on my desk, I love it. Can free with a backpack! Mar 28 18:05:35 /Can/Came/ Mar 28 18:11:32 Ohai. Diving into the android build system by writing an Android.mk for a package and dealing with library deps. A java file is referencing BuildConfig symbol and because of my inexperience I'm not sure which library I need to include to LOCAL_JAVA_LIBRARIES. Anyone have some insight? Mar 28 18:14:17 hi folks. in a MVP architecture, is it a good practice to have views (fragments) that communicate user actions to presenters via intents? Mar 28 18:15:52 normalra, you don't generate build. config with android.mk Mar 28 18:17:17 pfn: what do you mean? Mar 28 18:18:35 and building aosp is out of scope for this channel Mar 28 18:18:56 normalra, you don't build android apps using Android.mk Mar 28 18:22:30 pfn: ah, you're exactly right, build.gradle seems to reference that variable. Indeed, I thought that it was a bit out-of scope -- do you know any channels that discuss the android build systemL Mar 28 18:23:03 aosp build system, be clear Mar 28 18:23:12 that would be #android-root Mar 28 18:23:36 fsestini you mean broadcasting user actions and listening to them with braodcast receivers? that seems really heavy weight. Mar 28 18:24:39 JacobTabak, yeah exactly. why is it heavyweight? because of the listeners? Mar 28 18:24:51 pfn: uh, doesn't that deal primarily with how to acquire root on devices? Mar 28 18:25:32 fsestini because you need to register and unregister the receivers, and it's hard to debug where an intent is coming from Mar 28 18:25:41 bad for maintainability Mar 28 18:25:51 hi all, can i ask a question about ExpandableListView please? Mar 28 18:26:03 you just did ! Mar 28 18:26:11 i'm trying to set the text style so that all child elements have autLink set to "web" Mar 28 18:26:17 Nest question. Mar 28 18:26:34 i can achieve this by setting my "DefaultText" style which extends android:Widget.TextView Mar 28 18:26:44 but i don't really want to set it on all text for the application Mar 28 18:26:54 so which element can i use on ExpandableListView itself? Mar 28 18:27:13 i tried using @style/MediumTextWithLinks Mar 28 18:27:16 but that didn't work Mar 28 18:27:33 JacobTabak, so it is bad practice to leave intent receivers registered even if the fragment is not on screen and won't send any message, right? Mar 28 18:27:49 yeah thats super bad! Mar 28 18:28:39 JacobTabak, ok, i though that was needed only with sensors. so what do you suggest? Mar 28 18:29:16 maybe the fragment could have a reference to its presenter, behind an interface, and signal user actions calling appropriate methods on it? Mar 28 18:29:53 heres a pretty good talk about it Mar 28 18:29:53 https://www.youtube.com/watch?v=MXrHWpGuYdU Mar 28 18:30:55 JacobTabak, i'll definitely check it out Mar 28 18:31:14 but, what do you think about my last example of interaction? Mar 28 18:31:17 but basically it just means putting all your ui logic (Click handlers, etc) in the presenter Mar 28 18:33:11 im confused by the material design text colors. Are all of them the same hex value with different alphas? How do I set the alpha? Mar 28 18:33:25 this page in particular http://www.google.com/design/spec/style/color.html#color-ui-color-application Mar 28 18:33:55 those are not the same hasx values with different alphas Mar 28 18:34:00 hex* Mar 28 18:34:27 JacobTabak, what is the best practice for this kind of situations? i mean, view-presenter interaction Mar 28 18:34:40 JacobTabak: scroll down to "Use alpha values for grey text, icons, and dividers" Mar 28 18:34:49 i'm trying to figure out how to do it the android way Mar 28 18:35:03 yes i see that, but but a color can be represented two ways Mar 28 18:36:55 never mind guys i'll just use the workaround for my problem, i can always disable links for text i don't want them in Mar 28 18:36:58 thanks anyway Mar 28 18:37:01 for example the divider color that says 12% can be represented as #30000000 or #DADADA Mar 28 18:38:12 fsestini there is no best practice... the "android way" is just to wire up onclicklisteners in an activity Mar 28 18:38:37 obviously thats not maintainable or testable so people take all kinds of other approaches but nothing is accepted or standard Mar 28 18:39:35 android 5.1 emulator sucks at extreme level Mar 28 18:40:42 DadFoundMy "how do i set the alpha" just define the color as ARGB with 8 hex characters instead of 6 Mar 28 18:40:49 JacobTabak, my idea is to have n presenters instead of 1 activity, so i think it makes sense to listen to UI events in the presenters Mar 28 18:40:50 first 2 = alpha Mar 28 18:41:08 fsestini yes that is what Kevin says in his talk Mar 28 18:41:17 he has some really interesting ideas Mar 28 18:41:49 JacobTabak, cool Mar 28 18:41:54 thank you very much Mar 28 18:42:20 i'll check that out soon Mar 28 18:42:51 I'm currently reqhjrk API 15, but am executing this code when the API is Mar 28 18:42:59 Sorry, accident enter Mar 28 18:43:51 I'm currently requiring API 15, but am executing this code when the API is 16 or greater. This code is valid if I want immersion, mode, right? http://hastebin.com/hesiyojuzo.avrasm Is there a way to get rid of the warning? Mar 28 18:44:20 It doesn't work though... Mar 28 18:46:33 can android studio create plain java desktop "hello world" things to, or do i have to do this in vim Mar 28 18:46:45 Muchoz: I think you want something like this: http://hastebin.com/mumamowaju.avrasm Mar 28 18:47:26 Muchoz: I don't have an actual device to test with properly though, hence why some stuff is commented out Mar 28 18:48:07 Chamooze, so @TargetApi just compiles it with that API and it would crash if I'm trying to use a new API feature on a device with an older API? Mar 28 18:49:41 technically not quite, but in practise yeah, pretty much. heh Mar 28 18:52:46 Muchoz: google "android immersive fullscreen", should give you a document with more info Mar 28 18:53:00 g00s, if there's a non android run option then yes Mar 28 18:53:19 otherwise, just run intellij and this is never a problem. Mar 28 18:54:14 Muchoz, the annotation is only to suppress the warning, it is fully up to you to prevent it from running on am older device Mar 28 18:54:31 pfn, alright. Thank you. Mar 28 18:57:26 Java 8 isn't viable yet for Android dev, right? Mar 28 18:58:39 Probably never will be Mar 28 18:58:52 you can use lambdas with retrolambda though Mar 28 18:59:01 works perfectly fine Mar 28 19:00:03 what does IDEA think of those lambdas? Mar 28 19:00:06 Hi guys ,it was a long when I started developing apps on Android OS , so I decided to switch to creating custom ROMs and customizing AOSP , soo I searched on the net I found that the book of "Karim Yaghmour" 'Embedded android' good for teaching Android internals , I want to ask if to understand this book I have to get some requirements before reading it or , I can proceed reading directly , and thanks a lot :) Mar 28 19:00:10 pfn: why you say never? Mar 28 19:00:20 Mavrik, like normal Mar 28 19:00:37 Mavrik, set language level to 8 Mar 28 19:00:46 I can't even think android would stick to java 7 for next years Mar 28 19:01:00 o maybe they will switch to go Mar 28 19:01:28 Yeah, wouldn't count on it Mar 28 19:01:45 kotlin is an obvious answer Mar 28 19:01:49 when was the last time you've seen anyone being dumb enough to rewrite an OS to another language Mar 28 19:02:16 pfn: kotlin is not mature Mar 28 19:02:36 Mavrik: when you don't have a license Mar 28 19:03:03 apple has his own language, same for windows Mar 28 19:03:08 Hi guys ,it was a long when I started developing apps on Android OS , so I decided to switch to creating custom ROMs and customizing AOSP , soo I searched on the net I found that the book of "Karim Yaghmour" 'Embedded android' good for teaching Android internals , I want to ask if to understand this book I have to get some requirements before reading it or , I can proceed reading directly , and thanks a lot :) Mar 28 19:03:26 It is safe to use the cli for Git when using Android Studio, right? It's not doing anything special or so? I prefer the cli over the GIt GUI. Mar 28 19:03:46 Muchoz, yes of course Mar 28 19:03:49 Muchoz: cli is always safe Mar 28 19:03:55 Muchoz, it's also less likely something will break if you use CLI :P Mar 28 19:03:57 Just checking, thanks. Mar 28 19:04:02 quick question - i'm setting up an expandable listview and if i remove all UI elements from my group rows then it expands just fine, but if I leave them in it wont expand. There must be something in my group rows that is intercepting the touch evenst, right? Mar 28 19:04:11 I hate GUI's for this stuff. Mar 28 19:04:42 Muchoz: GUIs are useful of lazies Mar 28 19:04:53 gdrc, and limited. Mar 28 19:05:15 Hi guys ,it was a long when I started developing apps on Android OS , so I decided to switch to creating custom ROMs and customizing AOSP , soo I searched on the net I found that the book of "Karim Yaghmour" 'Embedded android' good for teaching Android internals , I want to ask if to understand this book I have to get some requirements before reading it or , I can proceed reading directly , and thanks a lot :) Mar 28 19:05:38 p0wonTnx, dude. Stop spamming the channel. Mar 28 19:05:38 p0wonTnx: stop. Mar 28 19:06:45 There *must* be a way to have a background image in a listview and still make the row clickable... Mar 28 19:07:36 uh Mar 28 19:07:51 How are those two connected? :P Mar 28 19:08:02 :) Mar 28 19:08:04 because when my rows have ui elements in them they dont expand on click Mar 28 19:08:48 Mavrik and gdrc you annoyed us with your annoying speech , please try to make this unhelpful speech private Mar 28 19:09:19 eemgr, do you have an actual imageview as a background? a drawable? Mar 28 19:09:48 my group rows have an imageview for the background Mar 28 19:09:48 p0wonTnx, huh? What you just wrote doesn't really parse as valid english O.o Mar 28 19:09:49 p0wonTnx: it doesn't mean you can spam Mar 28 19:10:22 eemgr, hrmf. Does it have a stateful background? Mar 28 19:10:27 e.g. different states for pressed? Mar 28 19:10:30 nope Mar 28 19:10:37 just a static imageview Mar 28 19:10:50 erm, not the keyword static :p Mar 28 19:11:14 just started android development, so please excuse any oversights I make Mar 28 19:11:17 yeah, that's wierd :D Mar 28 19:11:23 makes no sense... Mar 28 19:11:30 * eemgr throws hands in the air Mar 28 19:11:43 alright, i'll keep trying to narrow down the issue, maybe i'll post my xml in a bit if i cant get it Mar 28 19:11:43 eemgr, usually setting "clickable="false"" and "focusableInTouchMode="false"" stops subviews from eating clicks Mar 28 19:11:53 but that's usually on buttons not imageview Mar 28 19:12:33 Mavrik: quick question about that, actually - if i set clickable=false, and the subview is top in the view hierarchy, will touch events still get passed to views behind that non-clickable top view? Mar 28 19:13:22 Mavrik you still use Rx right ? Mar 28 19:13:26 g00s, at times yes Mar 28 19:13:40 I mean, the code uses, but I've mostly written C++ lately :P Mar 28 19:14:13 eemgr, uhhh... I wouldn't know that out of hand. I THINK viewgroups don't propagate clicks if you set clickable to false, but I'm not sure... maybe someone else knows that Mar 28 19:14:25 uh ... if i have; hot_observable <- cold observable <- subscriber , and my cold observable onCompletes, the chain should ubsubscribe but i am not seeing this, i ust have screwed up Mar 28 19:16:16 alright, confirmed - an imageview that covers the entire row of a group in an ExpandableListView will prevent that row from expanding. Mar 28 19:17:10 eemgr, btw, why not use the background property? It's usually less problematic Mar 28 19:17:43 Mavrik: if that is best practice I will happily switch to that Mar 28 19:17:59 i'll report back if that fixes it Mar 28 19:18:04 gdrc, it's mature enough for the "next years" Mar 28 19:19:01 Hi all. What are your favorite Android/java dev blogs? I need some stuff to read during my off time Mar 28 19:19:10 and trying to use RSS Mar 28 19:19:25 http://andraskindler.com/blog/2015/keeping_up_with_android_development/?utm_source=androiddevdigest Mar 28 19:20:04 Awesome, this is exactly what I was looking for. thank you Mar 28 19:20:13 yw Mar 28 19:20:25 androidweekly is one of my favorites Mar 28 19:21:09 Mavrik: with setting the background rather than an imageview, can i still have different background images for each group? (each row) Mar 28 19:21:39 eemgr, yeah, you'll set it in the adapter Mar 28 19:21:45 removing the imageview did fix it, but that is ultimately not good solution, since I have other UI elements taht need to have touch disabled Mar 28 19:21:55 not a good solution* Mar 28 19:22:18 Mavrik: thanks for the help Mar 28 19:56:41 not bad, some of the apps I've worked on have hit over a million downloads Mar 28 19:57:40 nice :) Mar 28 19:57:58 good job infecting people with scala :) Mar 28 19:58:21 not scala though, though I made them build with sbt at some point Mar 28 20:16:14 one of these days i hope to sit down with somebody who really knows wth they are doing with rxjava; every time i come up with some long running solution / chain of operators it seems its incompatibile with the basic android frag/activity lolcycle. Mar 28 20:16:34 come to droidcon montreal Mar 28 20:16:45 or the nyc android meetup Mar 28 20:18:12 for example. to change a setting i need to (a) read from the BT device and then (b) modify that characteristic (c) write that all back. now this makes total sense with cold observables / flatMapping for win. but what if i want the UI to reflect the new result? i have to copy the result onto a separate hot observable that can be makaged safely with CompositeSubsciprtions within the lolcycle Mar 28 20:18:21 nyc? is that soon? Mar 28 20:18:32 the next one isn't scheduled yet capella-s3 Mar 28 20:18:37 * capella-s3 googles around Mar 28 20:18:42 ah Mar 28 20:19:05 That's driving distance for me :) Mar 28 20:19:06 Butterknife requires @OnClick methods and @InjectView fields to not be private or static. Is this a good idea? Mar 28 20:19:19 (Read: explain to me why it is) Mar 28 20:19:39 Yes Mar 28 20:19:50 Static makes no sense, so I'll just ignore that Mar 28 20:20:07 It can't be private because generated code sets the values and/or calls the methods Mar 28 20:20:39 JakeWharton: Hmm, I figured that was the reason why it was so, but is there any negatives of having them not private? Mar 28 20:20:52 Not really Mar 28 20:21:10 JakeWharton: Also, I really love your libraries - thanks for making them available to us lesser developers haha. Mar 28 20:21:13 Just make them default (package) scoped Mar 28 20:21:33 JakeWharton: Ahh ok - thanks. Mar 28 20:21:39 Glad they're helpful Mar 28 20:22:13 JakeWharton: Ridiculously so. I used to HATE the boilerplate UI code, I tried a number of ways to reduce it/get rid of it - this is perfect haha Mar 28 20:30:49 JakeWharton how is rxandroid coming along Mar 28 20:31:35 https://github.com/JakeWharton/NotRxAndroid Mar 28 20:32:01 lol, awesome :D Mar 28 20:32:34 rxandroid was like a hodge podge of crap Mar 28 20:33:22 "This library will not have releases and is subject to deletion at any time." oh no :* Mar 28 20:33:39 It will move to RxAndroid Mar 28 20:34:05 I spend enough time fixing bugs as it is, if I had to blog about it I'd have no time for sleep Mar 28 20:34:06 I haven't had time to break it up and make PRs Mar 28 20:34:15 * capella tabfail Mar 28 20:42:05 g00s: let me know what you think. Feel free to send PRs or file issues. Especially if they're opinionated. Mar 28 20:42:30 What if they're opinionated and you disagree with them? :) Mar 28 20:43:22 Then you'll have to convince me. I've been known to be swayed, but opinions without a strong justification do nothing for me. Mar 28 20:46:55 I want it to be used, and if you don't use it I want you to say, "while it's not for me, I see what they're doing." Mar 28 20:47:20 RxAndroid has too much magic, implicit behavior and inconsistent APIs and features. Mar 28 20:47:30 I'm definitely keeping an eye on it and happy to pick it over RxAndroid Mar 28 20:47:53 I plan on upstreaming it all Mar 28 20:49:34 I'm a committee on RxAndroid, but didn't want to overwhelm with one big PR. Plus there's a lot of RxAndroid users who will complain and need convinced. Mar 28 20:49:50 Committer Mar 28 20:57:40 How long does it take for your Alpha Testers to see the app in their Apps? Mar 28 21:04:28 2-4 hours Mar 28 21:05:51 After publication? How long does it take to approve the first publication of an app (Alpha). Mar 28 21:07:56 Same amount Mar 28 21:11:06 JakeWharton, thank you. Mar 28 21:12:26 Why does current device installs not equal the sum of device installs minus the sum of device uninstalls? It's out by three according to my spreadsheet. Mar 28 21:12:42 but all my data is from the exported CSV Mar 28 21:23:37 have you guys collapsed a package in AS, and have it prompt you if you would like to move it ? Mar 28 21:28:12 yes g00s but i assume i moved a bit, making it think it's a drag'n'drop Mar 28 21:28:27 i tend to disable drag'n'drop because of that, which i don't use so often in fact Mar 28 21:28:44 yeah seems very sensitive there Mar 28 21:28:56 What does RxAndroid do? Im not familiar. Mar 28 21:31:19 You know you're an AndroidDev when you wonder if your kangaroo is too fat. True story, bro. O_o Mar 28 21:33:22 Anthaas: its about reactive programming Mar 28 21:52:41 I can't believe that I've been doing this for a considerably long time and I still have trouble with indexes inside adapters Mar 28 21:52:47 it's so stupid Mar 28 21:55:51 It is. You should feel ashamed. I can't even look at you. Mar 28 21:56:01 man I can't even look at me Mar 28 21:56:02 HA Mar 28 21:56:04 :P Mar 28 21:56:05 :D Mar 28 21:56:06 hahaha Mar 28 22:02:25 snowkrash: Which is...? Mar 28 22:02:50 you have to read about it on the web its not that easy to explain in some sentences Mar 28 22:02:57 but its very cool Mar 28 22:03:07 reactive programming is about signals and datastreams Mar 28 22:03:33 rather then a strict workflow Mar 28 22:03:48 Ok, can you recommend a decent link? I ask not because I can't google, but as someone who doesn't know a thing about it I wouldn't know good from bad. Mar 28 22:04:05 not for android sorry Mar 28 22:04:34 just google for functional reactive programming Mar 28 22:07:18 Anthaas http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Mar 28 22:19:18 Well, there’s also http://beust.com/weblog/2015/03/23/android-rx-and-kotlin-a-case-study/ although not quite strictly a tutorial :) Mar 28 23:07:43 Hmm Mar 28 23:08:00 Question - naming conventions - methods that return boolean = isSomething Mar 28 23:08:06 What about those that set booleans? Mar 28 23:08:23 For example, I am creating a method that sets a user preference. That preference is a boolean. Mar 28 23:08:53 still just setSomething Mar 28 23:09:15 Thats what I've been going with. Mar 28 23:09:30 what else would you do? Mar 28 23:10:31 shouldSomething Mar 28 23:10:36 hasSomething Mar 28 23:10:38 canSomething Mar 28 23:10:55 I guess they are all returning values though Mar 28 23:11:02 although you could argue both ways Mar 28 23:11:17 canSomething(true) doesn't really make sense Mar 28 23:13:48 Fair point. Mar 28 23:14:05 Yeah, set I guess then Mar 28 23:14:32 makeSomething(true) Mar 28 23:14:36 maybe you could to makeSomething(true/false) but that's weird Mar 28 23:14:39 haha Mar 28 23:14:49 well, "make" implies it could return false if it can't make it true Mar 28 23:15:02 set doesn't imply possibility of failure Mar 28 23:15:27 make it so! Mar 28 23:15:54 https://www.youtube.com/watch?v=KeaehxEdpgo Mar 28 23:16:11 any decent tutorials on doing layouts? still struggling Mar 28 23:17:18 it helped me to enable debug layout bounds and than just look at other apps and try to figure out how the layout works Mar 28 23:18:23 oh that's a great idea, thanks Mar 28 23:18:39 i keep looking for a site where ppl upload layouts from their open source android projects Mar 28 23:18:44 Anthaas: if they return a value that dont always need to start with is right? Like what if the method returns true if it was successful? Mar 28 23:18:46 maybe along with a viewer Mar 28 23:18:56 shouldn't be hard considering appetize.io runs a full android os for you Mar 28 23:19:18 DadFoundMy: Sorry, could you reword that? Its probably me, but its making my brain hurt haha Mar 28 23:20:15 Anthaas: sorry, I did word that stupidly. If a method returns a boolean does it always need to start with is? What if it just returns a boolean if it succeeded? Mar 28 23:20:23 pretty sure appetize.io's emus are faster than my real phone :( Mar 28 23:21:08 DadFoundMy: that's up to you. personally i ditch java naming conventions left and right and i'm sure a real java dev will have a fit if they ever look at my projects Mar 28 23:21:27 i also make member variables public and let object users simply assign/read them Mar 28 23:21:35 DadFoundMy if the boolean is a field in the object I'd say you should use "is" for methods that return booleans something like "didSuceed" may make sense Mar 28 23:21:59 myke looked at genymotion? Mar 28 23:22:21 memorion: seems about time, but my laptop is slow too Mar 28 23:22:44 myke genymotion is still way faster than the normal emulators Mar 28 23:36:53 DadFoundMy: Oh sorry, I thought I provided context, I was naming preference getting methods, so it was checking if something was set to true or false. Mar 28 23:37:30 DadFoundMy: Otherwise no, I agree, you could use did, for example didSucceed(), or perhaps past tense (but I dont like this so much) as succeeded() Mar 28 23:40:16 I am about to implement mergesort on my custom data container, it will require comparisons of characteristics in the container based on two values in it and a list of the custom container objects, are there any special considerations I need to take into account Mar 28 23:41:50 TheKarlBrown: why build mergesort? Mar 28 23:42:06 because its a fast sort and I want practice Mar 28 23:42:27 ah. generally though you'd have the object implement Comparable, and use Collections.sort(the_list) Mar 28 23:42:43 the app is very far btw groxx www.github.com/thekarlbrown/ChangeTheWorld Mar 28 23:42:52 or Collections.sort(list, new Comparator (a,b) { return a.field.compareTo(b.field); }) Mar 28 23:43:32 hmmm Mar 28 23:47:02 How different Facebook's Login button and Google's log in button look is insane. Why have FB made theirs so...small? Mar 28 23:49:56 http://imgur.com/PlEgzJg Mar 28 23:50:06 Thats them both, as standard, not modifications or anything Mar 29 00:04:15 Facebook's Login button (or Google's Sign in depending on how you want to look at it) has an awkward layout Mar 29 00:04:20 Facebooks is marginally bigger. Mar 29 00:04:26 but thinner. Mar 29 00:04:35 Wider, but taller, I should say. Mar 29 00:06:40 what's the suggested way of adding a shadow to a android.support.v7.widget.Toolbar on pre-lollipop? Mar 29 00:07:07 t0astt one moment Mar 29 00:07:13 memorion: ok Mar 29 00:09:14 t0astt https://gist.github.com/Memorion/0011903f9401da07f3de Mar 29 00:10:29 so how is this used? Mar 29 00:10:58 do you know howw resource folders work? Mar 29 00:11:05 Somewhat, yes Mar 29 00:11:46 memorion: this is my current toolbar.xml https://gist.github.com/t0astt/fdb034b30fc37470d8f4 Mar 29 00:12:39 put that into layout-21 Mar 29 00:13:04 memorion: I have to step out for about 45 minutes, will you still be here? Mar 29 00:13:27 probably not, 1:13 in the night here Mar 29 00:13:33 ah alright Mar 29 00:13:38 Is it possible to remain in immersive mode (or at least hide the status bar) when focusing an EditText element and opening the keyboard? Mar 29 00:15:17 toastcfh try https://gist.github.com/Memorion/0011903f9401da07f3de#file-gistfile2-txt and copy the fake_material_elevation thing into you res/drawable folder Mar 29 00:16:25 so, your current toolbar into layout-21, gistfile2 as your toolbar in layout and the fake_material_elevation into res/drawable Mar 29 00:16:25 memorion: got it, I'll try it when I get back Mar 29 00:16:27 Thank you very much! Mar 29 00:16:50 no problem, will be here tomorrow probably if you still need help Mar 29 00:17:01 sounds good! thanks again :) Mar 29 00:25:59 CedricBeust with extension methods, it should be pretty easy to add stuff to Observable, right? like Observable.myCoolOperator ... i already know about lift(), etc Mar 29 00:26:14 g00s: Yup Mar 29 00:26:15 in kotlin, that is Mar 29 00:26:17 ok Mar 29 00:26:33 I have a draft of a blog post explaining how to write operators that does just that Mar 29 00:26:42 oh nice Mar 29 00:26:50 Better than observable.lift(new YouOperator(...)) Mar 29 00:27:01 sure Mar 29 00:27:57 CedricBeust dumb question but, if i add an extension method to something, thats not visible from java is it ? only kotlin ? Mar 29 00:28:20 I suppose if it compiles, it works. Mar 29 00:49:56 Is there really no better way to detect whether the soft keyboard is hidden/shown besides this https://gist.github.com/felHR85/6070f643d25f5a0b3674 ? This is essential imo and still Android doesn't have this? Mar 29 01:07:25 i have a problem with recyclerview and buttons. i don't understand the code i wrote anymore. all i was trying to do was keep track of a list item in the recyclerview and i somehow managed to confuse myself. Mar 29 01:28:12 That Gist I posted 2h ago doesn't even work, Mar 29 01:28:15 *sigh* Mar 29 01:36:42 1h ago (time changed :p) Mar 29 01:38:25 no wonder it's almost 5 in the morning Mar 29 02:00:00 OT, but someone throw out some music for me to listen to? Mar 29 02:00:12 https://www.youtube.com/watch?v=jkytV1w5IeI Mar 29 02:00:41 just something random i landed on the other day Mar 29 02:00:49 royksopp, good stuff Mar 29 02:00:51 forgot about them Mar 29 02:00:53 thanks :D Mar 29 02:10:58 So I found a library on my phone earlier this morning that allowed you to apply lollipop touch animations to various things. I bookmarked it, but it seems to have disappeared from my bookmarks and I'm having trouble finding it again. Anyone know what library I'm talking about? I think it was on Android Arsenal? Mar 29 02:25:05 t0astt: not sure, but maybe this will help https://github.com/wasabeef/awesome-android-ui/blob/master/pages/Material.md Mar 29 02:26:11 ah, I just found it in that link you showed me bankai_ . Thanks! Mar 29 02:26:57 https://github.com/traex/RippleEffect <-- that one Mar 29 02:29:14 hello guys/gals Mar 29 02:29:45 Hey redribben! Mar 29 02:30:12 I cant seem to find a way to get into contact with an individual from google about an app rejection. Mar 29 02:30:28 do they not have an outlet for that? Mar 29 02:32:03 Im new here… first time coming on here, if this is the wrong place to ask such a question, it would be greatly appreciated if you guys would be able to direct me to the appropriate location. Mar 29 02:32:44 Probably the right place. I doubt anyone knows how to get into the great google though. Mar 29 02:33:37 walled gardens eh? instead of Apple, where you’re walled in…. Google, youre walled out :D Mar 29 02:34:00 Pretty much :p Mar 29 02:35:43 lol, thanks jaynewstrom Mar 29 02:36:03 so what are my option of disputing/clarifying my app rejection? Mar 29 02:36:09 options* Mar 29 02:36:45 I've read about a lot of people having issues with it. I've never had an issue myself though. Mar 29 02:37:47 http://cl.ly/image/0Q3N1h2t3q2p Mar 29 02:38:22 So I got rejected for the “paid and free” violation Mar 29 02:38:41 I have a feeling that its because we have a paypal donate button in the app Mar 29 02:39:27 The donation is totally the users choice, not required to get or use the app Mar 29 02:41:11 anyone else run into this issue? Mar 29 02:41:42 (Also, the app we are trying to submit is free) Mar 29 02:42:41 redribben hm, well first - you should probably use play services donate, not paypal donate Mar 29 02:42:55 second, you need to prove (if i remember) that you are a 501(c) Mar 29 02:43:02 for "donate" Mar 29 02:44:18 thank you g00s Mar 29 02:44:24 I will look into all of this Mar 29 02:45:04 the best way into a walled garden is dig tunnel :D Mar 29 02:45:18 not jump over? :D **** ENDING LOGGING AT Sun Mar 29 02:59:58 2015