**** BEGIN LOGGING AT Wed Feb 04 02:59:58 2015 Feb 04 03:00:29 JakeWharton: Yep, which is why I ask how can I parse it as JSON with the model Feb 04 03:00:43 justJanne, rooting isn't gona fix in long run. i can but product user can't! Feb 04 03:01:51 kuldeepdhaka: You might be able to somehow get it to run, but L essentially integrated SAMSUNG(r) KNOX(tm) into Android(tm), using SELinux, so it’s specifically designed to not allow any kind of uncontrolled access Feb 04 03:02:28 dvass: it's not JSON or it would have worked Feb 04 03:04:30 Tryign to create a javadoc and I’m getting: Fatal Error: Unable to find package java.lang in classpath or bootclasspath Feb 04 03:04:39 anyone know whats up? Feb 04 03:04:58 SO said to include rt.jar in -bootclasspath but I can’t find rt.jar in my JAVA_HOME Feb 04 03:05:10 ..or anywhere on my comp Feb 04 03:06:42 does anyone know what the next google play downloads range is after 500-1,000 Feb 04 03:07:04 justJanne, im left speechless! just weeks away from release :'( Feb 04 03:07:54 5000 Feb 04 03:08:14 then 10 Feb 04 03:08:17 then 25 i think Feb 04 03:08:20 tricknology thanks Feb 04 03:09:30 yw Levite Feb 04 03:10:44 JakeWharton: With the new unit-testing changes, are you sticking with Robolectric or moving away (and just using Mockito or whatever)? Feb 04 03:11:43 Are the 1.1 testing changes documented somewhere? I couldn't find anything at the download site Feb 04 03:12:19 I saw this: https://android-review.googlesource.com/#/c/128370/1/build-system/changelog.txt Feb 04 03:13:10 TacticalJoke: Thanks, but that much I already knew, was hoping for something more in depth. Guess I'll find out Feb 04 03:16:54 wait, we got real testing finally? Feb 04 03:17:01 This changes everything. Feb 04 03:17:24 Yeah. Doesn't work properly from Android Studio yet, though. Feb 04 03:17:47 https://code.google.com/p/android/issues/detail?id=131080 Feb 04 03:18:02 I'm guessing it's caused by this: https://code.google.com/p/android/issues/detail?id=132194&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Feb 04 03:22:23 Have a quick total noob question (just need to be pointed in a direction to search): I'm making myself a small notetaking app just to tinker and learn, and I want to add a "Note Type" that will be one of several preset note types (grocery list, general note, etc.) My intent is to have a menu pop up where you select the note type. What do I search for to find documentation on that? Feb 04 03:24:00 error: package android.content does not exist Feb 04 03:24:00 import android.content.Context; Feb 04 03:24:08 tryign to create javadoc Feb 04 03:24:24 TacticalJoke: haven't used robolectric in a long time Feb 04 03:24:32 What do you mean by "create Javadoc"? Feb 04 03:24:33 How do you open the same file in two separate panes in AS? Feb 04 03:24:55 JakeWharton: Do you use Mockito? Just curious. Feb 04 03:24:58 class file for android.os.Parcelable not found Feb 04 03:25:05 nm. got it. wish i had a faster option for it Feb 04 03:25:15 TacticalJoke: of course Feb 04 03:25:19 I am using eclipse to create a javadoc from the documentations in my code Feb 04 03:25:28 project>>create javadoc Feb 04 03:26:26 hahaha, oops Feb 04 03:26:37 wrong bootclasspath Feb 04 03:26:39 How does AbsListView determine if FastScroll should be shown? I want to know if FastScroll will be visible when I update my adapter. Feb 04 03:27:06 aha, it's contextual menu. Feb 04 03:27:37 surf2b1: it's somewhere in the code, but iirc it's based on how many (estimated) "screens" of content there is. something like 3 or 4+ -> fast scroll Feb 04 03:27:39 actually might be popup menu that's more accurate to my current thought Feb 04 03:27:43 m3chanical: It really depends on the UI you want to create. Feb 04 03:27:46 sick.. Feb 04 03:28:05 my shader works and it shades docs too. Feb 04 03:28:07 * tricknology fistpumps Feb 04 03:28:29 m3chanical: BTW, that sounds like a nice idea for a to-do-list app. Feb 04 03:28:38 groxx: thanks. yeah.. looking at AbsListView.java right now to try and find it. Feb 04 03:28:42 Or notes or whatever. Feb 04 03:28:47 ooh, to-do would be a great one to add Feb 04 03:29:13 Categories are nice to have. You could even have user-defined categories (where the user can fiddle with parameters). Feb 04 03:29:27 ah, great idea Feb 04 03:29:33 e.g., their custom category could use bullet points or numbers. Feb 04 03:29:40 thanks :D Feb 04 03:32:06 JakeWharton: I'm thinking of having a setup where I use plain JVM tests for non-Android stuff, JVM+Mockito tests for basic Android stuff, and Espresso tests for heavier Android stuff. Is there anything I'm missing? :) Feb 04 03:32:26 Sorry to keep pinging; guess I asked a few questions today. Feb 04 03:32:32 mmmm Espresso Feb 04 03:32:38 That's what we do Feb 04 03:32:44 K. :) Feb 04 03:32:57 All of the caffiene Feb 04 03:33:05 All of it! Feb 04 03:36:28 Damn, Mockito looks nice. Haven't used it before. Feb 04 03:40:59 Guy guys, kind of bored tonight coding on MaterialDesignIcons.com and curious if there are any features you guys could use that are missing. Any other types of exports etc. Feb 04 03:41:07 Hey guys* Feb 04 03:41:22 TacticalJoke: you might also need powermockito -- worth a look if you run into private methods or whatever Feb 04 03:44:10 Thanks. Feb 04 03:48:26 Templarian: the right edge pushes past my browser's size, so I have unnecessary horizontal scrolling, if that counts as a feature request :) Feb 04 03:49:46 groxx: On a phone I assume? Yea, one of the contributors mentioned that, I don't view it from a phone, I'll look into fixing that. Feb 04 03:49:56 Templarian: desktop, stable release of Firefox Feb 04 03:50:10 it only happens on the main page though, interesteingly Feb 04 03:51:16 maybe "export for android" at mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi/omgdpi ? that would be pretty handy to have, unless you know of a tool to generate that from svg fonts or something (if so, a link on the site would be handy) Feb 04 03:51:37 nice icon set though, I'll have to keep that bookmarked :) Feb 04 03:51:40 groxx: It has that (of course). Feb 04 03:52:04 It exports for Android 4 and 5 with all the sizes and formats (including 5's vector drawables). Feb 04 03:52:22 Hmm, the Mockito site says "Do not mock types you don’t own". Seems a bit extreme. Feb 04 03:52:45 Templarian: ah, on individual icons, I see. Feb 04 03:53:19 what folder do menu xml files go in? Feb 04 03:53:53 res/menu/ Feb 04 03:54:05 and does every activity need to have an onCreateOptionsMenu and onOptionsItemSelected methods? Feb 04 03:54:24 Templarian: one more feature request then! vector drawable backport to APIv8 :| Feb 04 03:54:29 chars6: No. Feb 04 03:56:56 Seems impossible to hide the main menu bar in AS on Windows. Annoying. Feb 04 03:57:08 (Other than to go into full-screen mode, which I'm not a fan of.) Feb 04 04:02:14 groxx: Ha. I'm sure someone has actually done that tbh. Feb 04 04:02:44 hopefully. I'd love to get rid of the asset repetitions, they eat up way too much space. Feb 04 04:02:51 especially on small devices. Feb 04 04:03:08 TacticalJoke: what if i want each activity to have a slightly different action bar? Feb 04 04:04:39 How are you defining 'different'? Feb 04 04:04:51 different buttons Feb 04 04:05:33 Then you would have to override onCreateOptionsMenu (so that you can inflate a different menu into it). Feb 04 04:05:35 like, share should show up on individual item viewing activities, but not on list view activities Feb 04 04:05:50 TacticalJoke: ok. thanks. Feb 04 04:05:51 Unless you add the buttons at runtime. Feb 04 04:16:12 having a little problem here, I have sdk platform 10 and 21 installed in eclipse, i have NDK installed (which has no android-10) and i keep getting "Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml" when i went to try an run the unsigned app on android 2.3.5 it said "application not installed", how do i have it build with an earlier SDK Feb 04 04:20:31 I know it's a fine line here because obviously it's not allowed to ask for a 5 star rating in your app. but would it be allowed to ask "Are you enjoying the app?" and then say "Do you want to rate it?" only if they answer yes? Feb 04 04:21:06 duncannz: fwiw that's fairly standard for games now Feb 04 04:21:17 "Are you enjoying the app?" "Well, I was..." Feb 04 04:21:18 both clever and somewhat dubious Feb 04 04:21:32 yeah it is a little bit of a grey area Feb 04 04:21:48 but I'll probably just do it if it's standard, gotta be on a level playing field Feb 04 04:21:52 TacticalJoke: heh. yeah, maybe it should follow up with "do you find dialogs annoying?" -> "are you sure?" -> "rate us 5 stars!" Feb 04 04:25:05 duncannz: fwiw I find those yes/no dialogs among the _least_ annoying tricks I tend to see in apps. Feb 04 04:25:38 what else have you got? :p Feb 04 04:25:48 heh, this is kinda cool http://www.ubergizmo.com/2015/02/casios-chordana-app-lets-you-create-songs-by-whistling-into-your-phone Feb 04 04:25:48 the fact that it's a dialog is annoying, but if it's easy to ignore (e.g. allow tapping outside to close it) it's pretty quick and easy to forget. Feb 04 04:26:00 duncannz: F2P spam of all sorts, for one :) Feb 04 04:26:43 "invite ur friends 2 get free koins" / "plz let us spam your contacts" / etc Feb 04 04:26:54 yeah true Feb 04 04:27:51 they totally work, but they're pretty unambiguously "this is best for us, not you, and we'll throw you under the bus to do so" Feb 04 04:34:54 well i got home intending to work on getting my avd;s working again but said fuckit, ill play a game. had to reistall the game under wine and when it was installed it refused to run because GLX was missing from :0. weird because it was being loaded Feb 04 04:35:15 someone in #gentoo said yea thers a weird bug, you need to remove your files section in xorg.conf Feb 04 04:35:18 did that and the game ran Feb 04 04:35:29 thunked !!!!!!! i wonder if thats why my avd;s wont run Feb 04 04:35:42 yup. avd launches just freeking fine now Feb 04 04:35:52 :/ Feb 04 04:36:00 the entire time this was a stupid xorg bug Feb 04 04:36:13 NOT a gentoo bug btw Feb 04 04:36:49 doesn't sound like a bug at all, just a misconfiguration Feb 04 04:39:12 groxx: I fixed that issue in FF, but I noticed that FF has a bug with rendering SVG's blurry. Not sure if I can fix that one. Feb 04 04:43:38 JakeWharton what future kotlin plans are you most looking forward to? I'm wondering how much more they want to add, what needs to be done, etc - trying to find a roadmap of sorts. i guess they are aming for 1.0 in first half 2015 Feb 04 04:45:49 I was using the web demo a lot yesterday. I love how 'if' returns a value. Feb 04 04:46:50 Avoids the ugliness of nested ternary operations. Feb 04 04:47:00 Or work-arounds such as multiple ternary operations. Feb 04 04:47:25 interesting, gavin king says "Ceylon's Java interop is _excellent_" Feb 04 04:47:32 Templarian: cool, looks fixed to me too :) thanks Feb 04 04:47:34 it returns the value of the last statement in the branch that is taken, I assume? Feb 04 04:47:36 I mean "multiple statements". Feb 04 04:47:48 I haven't actually looked at kotlin at all yet Feb 04 04:47:58 Templarian: fwiw I don't see anything particularly blurry, but I'm on a retina display :| nothing looks blurry, and it always hits different rendering code-paths. Feb 04 04:48:23 JesusFreke: Yeah. Feb 04 04:49:09 You can say stuff like [ val max = if (x > y) x else y ]. Feb 04 04:49:15 groxx: It's a known bug in FF, I don't feel like coding around it. Thanks. Feb 04 04:49:17 TacticalJoke: if returns value in Kotlin? handy. that feature gets a fair bit of use in Ruby Feb 04 04:49:29 if returns an expression Feb 04 04:49:44 the difference being lazy evaluation? Feb 04 04:50:09 The documentation states that 'if' is an expression that returns a value. Not sure whether they're being picky or not regarding definitions. Feb 04 04:50:27 hm Feb 04 04:50:52 Someone can tell me why inmy android.mk, $(call my-dir) return A cxx-stl/stlport directory and not the directory my android.mk file is ? Feb 04 04:57:53 Stuff like this is neat: val text = when(number) { 1 -> "one item" else -> "$number items" } Feb 04 04:58:05 The 'when' construct looks really powerful Feb 04 04:59:17 Way more powerful than Java's 'switch': http://kotlinlang.org/docs/reference/control-flow.html#when-expression Feb 04 04:59:23 yeah Feb 04 05:00:12 most languages have something like that Feb 04 05:00:33 modern languages Feb 04 05:01:25 It's hard for me to adjust to the lack of semicolons. Feb 04 05:01:35 It doesn't feel like real code without them. lol Feb 04 05:02:54 i tend to agree simple because i dislike the disambiguation of continuation lines Feb 04 05:03:14 er Feb 04 05:03:35 opposite Feb 04 05:03:43 typing on mobile sucks Feb 04 05:04:00 I think my parser broke either way :) Feb 04 05:06:25 I don't get why people see removing semicolons as a good thing. Feb 04 05:06:38 They don't add visual clutter; they're very much like punctuation marks we're used to. Feb 04 05:06:52 I blame javascript. as with most things. Feb 04 05:09:06 how can i change which resource qualifier is being used programmatically Feb 04 05:09:10 i'm fine with an app restart Feb 04 05:09:12 Why we can't have nice things: JavaScript, PHP, C++. Feb 04 05:09:21 Visual Basic Feb 04 05:09:34 g00s: weren't you on about this at one point? Feb 04 05:10:29 JakeWharton: not entirely sure what you're planning, but would overriding the context's resource resolution work? or there's a whole decorator-style thing iirc Feb 04 05:10:43 that's heavyweight Feb 04 05:10:53 looks like there's updateConfiguration on Resources Feb 04 05:11:25 with a bunch of mutable things Feb 04 05:14:27 UiModeManager also lets me toggle Feb 04 05:14:31 car mode or night mode Feb 04 05:17:19 JakeWharton yeah, nightmode officially work when docked . Napalm|afk had a hack somewhere Feb 04 05:18:42 https://gist.github.com/slightfoot/c508cdc8828a478572e0 Feb 04 05:34:39 it works Feb 04 05:34:46 fundamentally. not that class. that class scares me. Feb 04 05:36:06 User action brings up a transparent overlay. Overlay UI components communicate with some controlers that already exist. Frag or Activity? Feb 04 05:45:15 hmmm, I have a linear layout that has a button and a webview, the layout is created as the result of the button. If I press the button it should create a new webview however it isn't, I am being returned to the same webview with the same page loaded Feb 04 05:45:34 do I need to kill the layout before I return to it? Feb 04 05:46:15 or create a new context or something Feb 04 05:48:02 having to fake Intent and Uri and Bundle is annoying Feb 04 05:49:40 I'm trying to integrate Google Analytics and I have added google play services to my maven yet it can't find the dependancy. Is there something I'm missing? Feb 04 05:49:42 hmmm, well I have a menu display that has a scan barcode button, when pressed the camera is initiated and when a barcode is captured it runs a new display with a webview. In the webview I want to be able to scan another barcode and return to a new webview on completion, however it is sending me to the previous webview. Feb 04 05:49:56 dvass: what dependencies can't it find? Feb 04 05:50:15 phix: any of the google analytics ones. Feb 04 05:50:42 dvass: and it is properly referencing it? what IDE are you using? Feb 04 05:52:05 Android Studio Feb 04 05:52:14 I'll try cleaning the project Feb 04 05:52:16 and see if it works Feb 04 05:53:03 ok Feb 04 05:53:07 dvass: any ideas on my issues? Feb 04 05:54:03 phix: Is there some code you could post? Feb 04 05:55:09 Like, what are you doing to instantiate the new WebView? Feb 04 05:59:09 phix: hard to really tell what's happening without any code. Feb 04 06:03:22 I hate how tool windows in IntelliJ that have close buttons have them in the most arbitrary places. Feb 04 06:03:35 They should be at the top right (or something). Feb 04 06:03:40 dvass, TacticalJoke: ok I figured out my issue, I wasn't overriding onActivityResult. Feb 04 06:03:43 Never in an overflow. Feb 04 06:03:52 however I still cannot give my webview a new address to load Feb 04 06:03:57 phix: Don't forget Log.i (or System.out.println) in future. :D Feb 04 06:04:02 TacticalJoke: yup :) Feb 04 06:04:21 what is the proper way to tell a webview to load a new url? Feb 04 06:04:54 Isn't there only one way of asking it to load a URL? Feb 04 06:05:37 loadUrl() however if I call it a second time it ignores me Feb 04 06:05:44 either that or the screen isn't being refreshed Feb 04 06:06:46 AH, setWebViewClient(new MyWebViewClient()); Feb 04 06:13:05 hmmm, still not sure how to set the new url though Feb 04 06:13:18 loadUrl Feb 04 06:13:28 it should work Feb 04 06:14:27 hmm, what do Ido if it doesn't? :) Feb 04 06:14:44 while (problemsExist) { postCode(); } Feb 04 06:14:45 listen for onPageStarted in your client thing Feb 04 06:15:55 Probably also Thread.sleep at some point. :) Feb 04 06:16:16 TacticalJoke: hmmmmmm Feb 04 06:23:44 Animate new fragment overlay in at the same time as bringing up keyboard Feb 04 06:24:06 How do I write that in Java/XML? =D Feb 04 06:47:45 I hate this new google analytics library Feb 04 06:47:58 The old one used to be so easy to use Feb 04 06:48:06 with this one I'm not getting anything through Feb 04 07:01:38 dvass: what problem do you have my friend ? Feb 04 07:01:51 I was migrating to new one recently Feb 04 07:02:26 gordon_: nothing seems to be appearing in the dashboard Feb 04 07:02:40 you need to wait a little Feb 04 07:02:45 like 1 minute Feb 04 07:03:06 dvass: I'm now trying to re-implement it using XML files. I deleted the global tracker and ecommerce and only left the apptracker with a property_id Feb 04 07:03:15 gordon_: I've waited more than that Feb 04 07:03:24 but yeah so now I'll add the global tracker and stuff Feb 04 07:03:45 I didnt use xml, just send event in onCreate Feb 04 07:04:16 I do send somethin Feb 04 07:04:21 t.send(new HitBuilders.AppViewBuilder().build()); Feb 04 07:05:01 gordon_: http://hastebin.com/dobucinapa.avrasm Feb 04 07:05:04 that is the implmentation Feb 04 07:05:46 that is fine but you need to send the screen view also Feb 04 07:05:49 wait a sec Feb 04 07:08:48 If you guys could choose, would you prefer C# or Kotlin for Android development? Feb 04 07:09:05 RxJava w/ toys Feb 04 07:09:07 Let's say that you choose which one Google goes with. Feb 04 07:09:08 C# Feb 04 07:09:23 what is Kotlin? Feb 04 07:09:45 It's a newish JVM language. Feb 04 07:10:01 Yeah, I'd pick C#. Way more powerful (value types, etc.). Feb 04 07:10:04 .NET is also quite nice. Feb 04 07:10:20 is it relatively sexy compared to clojure, rust, go etc? any noteworthy features? Feb 04 07:10:43 dvass: https://developers.google.com/analytics/devguides/collection/android/v4/ Feb 04 07:10:43 It's kinda like a less-boilerplate Java, from what I can see. Feb 04 07:10:54 It has lambdas and stuff. Feb 04 07:10:54 Rhetorical question, Kotlin is real today for Android development, C# will probably never be Feb 04 07:10:54 I have a fragment that needs to animate in along with the system keyboard. I would like to tie the keyboard dismissal to popping the fragment off the back stack Feb 04 07:11:06 I have retrolambda :-? Feb 04 07:11:18 dvass: the 4th point Feb 04 07:11:27 knapper_tech: retrolambda is a hack :> Feb 04 07:11:28 Rx implemented for Kotlin? Feb 04 07:11:54 knapper_tech: there are a couple attempts, haven’t tried them, rx is pretty trivial to implement Feb 04 07:12:04 k Feb 04 07:12:27 Hello, How can I get the RequestCode when I start an activity by startActivityForResult()? Feb 04 07:12:37 MS appears to be working on making C# development on Android a reality. Feb 04 07:12:45 gordon_: That's what I have in the pastebin I sent Feb 04 07:12:47 well how do I listen for the keybaord dismissal? focus? Also I'd like to tie my fragment's transition animation to the keyboard raising up Feb 04 07:12:54 TacticalJoke: Uh? Got a source for that? Feb 04 07:13:01 dvass: you dont have screenview part Feb 04 07:13:30 gordon_: Oh oops I forgot to send the oncreate. I do have it Feb 04 07:13:45 same freaking problem everywhere. the more you put the entire framework into the app, using no system libs, the heavier the app gets on resources. shared libs are kinda cool. Feb 04 07:13:46 http://hastebin.com/obemanahiq.avrasm Feb 04 07:13:48 that's in oncreate Feb 04 07:13:50 voting down C# Feb 04 07:14:07 ugh... then it should just work.... Feb 04 07:14:08 gordon_: How can I log what google analytics does, I want to see if it even tries to send Feb 04 07:14:21 do I need to do anything with proguard? Feb 04 07:14:29 that's a really good question! I have no idea :) Feb 04 07:14:49 proguard has nothing to do with analytics Feb 04 07:16:34 deuteros: "Uhh", can't you just google? It's all over the news (and has been for weeks). Feb 04 07:16:52 They even have their own Android emulator now (which is said to be significantly faster than Google's). Feb 04 07:16:59 http://www.visualstudio.com/en-us/explore/msft-android-emulator-vs.aspx Feb 04 07:17:01 How to find out which tool has been using for some android project, for e.g. these two: https://github.com/xenotropic/quizzn https://github.com/MazeChaZer/WoT-Tank-Quiz Feb 04 07:17:43 I’m aware of the emulator, that has nothing to do with Microsoft working on C# on Android Feb 04 07:17:57 dismissing keyboard doesn't lose edit-text focus Feb 04 07:18:00 that's sirry Feb 04 07:18:25 where would dismissing the keybaord generate some event? Feb 04 07:18:31 listen on ime events? Feb 04 07:19:35 they didn't build the emulator for us :) Feb 04 07:19:45 i think its for c++ / xamarin use Feb 04 07:20:31 http://stackoverflow.com/questions/3425932/detecting-when-user-has-dismissed-the-soft-keyboard Feb 04 07:20:39 does this look janky and unreasonable to anyone? Feb 04 07:21:08 hyper-v Feb 04 07:21:14 no thank you Feb 04 07:21:53 gordon_ something wrong with hyper-v ? Feb 04 07:22:06 thats like saying kvm, no thank you :) Feb 04 07:22:20 smells like windows server Feb 04 07:22:35 which I dont like Feb 04 07:22:42 for.. my experience with it Feb 04 07:22:56 and I personally think that server doesnt need gui Feb 04 07:23:10 i think windows pro has hyper-v. but not the lowest version Feb 04 07:23:32 probably what developers are using anyhow Feb 04 07:23:48 I havent used windows in... 4 years or so Feb 04 07:24:52 and used to write in c# with all windows forms, ms sql, sharepoint, WPF stuff but.. no more ! Feb 04 07:25:06 you are free from the MS bondage ! Feb 04 07:25:16 only to go to the google bondage :D Feb 04 07:25:41 for android - yes Feb 04 07:25:51 at least it's open Feb 04 07:25:56 clopen Feb 04 07:26:09 wanna fork android together? ;) Feb 04 07:26:27 gordon_: http://www.reddit.com/r/programming/comments/2unrll/net_core_is_on_github/ Feb 04 07:26:46 TacticalJoke: yes, now Feb 04 07:26:53 and a reasonable version of VS is available for free Feb 04 07:26:56 I think hell froze over Feb 04 07:27:03 first comment is golden :D Feb 04 07:27:07 Wow, the implementation of the GC is 1 file (gc.cpp) that is 35000 lines long. My condolences to the developers who have been maintaining that. Feb 04 07:27:07 Can I get some help here? Feb 04 07:27:25 soomsoom: if it's about android - yes Feb 04 07:27:27 soomsoom: Implement onActivityResult. Feb 04 07:27:29 soomsoom: that was 3 burritos, 2 cokes and some fries? Feb 04 07:28:03 We'll throw in a free Pepsi for the delay. Feb 04 07:28:20 TacticalJoke: I mean that when I create a new Activity, can I get the request code on the onCreate method? Feb 04 07:28:47 you need request got for onActivityResult Feb 04 07:29:16 if you want the new activity to get some data, use intent.putExtra then in onCreate getIntent().getExtras() Feb 04 07:29:23 how can I access my tracker from a fragment? Feb 04 07:29:32 it isn't static so I'm having issues Feb 04 07:29:42 Ashiren: I need to implenet the onActivityResult on the new activity too? Feb 04 07:30:26 soomsoom: Why do you want to do that? The request code is all about the caller, not the callee. Feb 04 07:31:48 dvass: (MyApplication)getApplication() ;) Feb 04 07:32:28 TacticalJoke: Cause i have some Activites that called from different framgent and activities so if i calling the to the new Activity from an Activity he sends a request code, when from fragment it will not send a request code... he needs to act different. Feb 04 07:32:40 hello peoples Feb 04 07:32:47 gordon_ doyou have some sample code I could look at? Feb 04 07:33:01 TacticalJoke: I think i will just use putExtra and thats it... Feb 04 07:33:25 dvass: dont know, will take a look Feb 04 07:34:04 so anyone using kotlin? Feb 04 07:34:17 I wrote one small thing in kotlin Feb 04 07:34:23 for android Feb 04 07:34:44 also make some kotlin koans Feb 04 07:34:47 pretty nice language Feb 04 07:35:02 hey lemonxah :D Feb 04 07:35:07 but annotations processing is a deal breaker for me Feb 04 07:35:09 switching from scala XD Feb 04 07:35:12 i have been using scala but from what i have read kotlin has a smaller footprint Feb 04 07:35:13 hey g00s Feb 04 07:35:15 how goos Feb 04 07:35:17 soomsoomm: Why does the activity need to behave differently if started from a fragment? Feb 04 07:35:23 get it get it? hehe i made a funny Feb 04 07:35:38 is there any reason this: Intent intent = new Intent(getActivity().getApplicationContext(), MainActivity.class).putExtra(Intent.EXTRA_TEXT, url); Feb 04 07:36:07 yes Feb 04 07:36:11 lemonxah yeah i guess its a lot smaller Feb 04 07:36:19 dvass you are returning void not an intent Feb 04 07:36:30 the method putExtra() returns void and it expects inent Feb 04 07:36:36 i can't tolerate anything that forces me to use proguard for dev/debug builds Feb 04 07:36:46 lemonxah: sorry? Feb 04 07:36:46 so stop the line just before .putExtra Feb 04 07:36:51 so do this Feb 04 07:36:53 even though somebody has a certain build system that caches that etc Feb 04 07:37:14 Intent intent = new Intent(getActivity().getApplicationContext(), MainActivity.class); intent.putExtra(..); startActivity(intent) Feb 04 07:37:31 oh okay Feb 04 07:37:31 getActivity() is fine enough Feb 04 07:37:38 that was dumb Feb 04 07:37:39 yeah Feb 04 07:37:48 g00s: you mean google libraries ? ;) Feb 04 07:38:00 gordon_ they split those boogers up :) Feb 04 07:38:07 that's true ! Feb 04 07:38:16 dvass also getActivity().lgetApplicationContext() can be shortend to just getActivity() Feb 04 07:38:29 cause activities is a context Feb 04 07:38:36 The whole Context thing seems like such a mess. Feb 04 07:38:49 thank you Feb 04 07:39:10 which context thing TacticalJoke ? Feb 04 07:39:19 all your context are belong to us Feb 04 07:39:35 g00s, i dont mind having to do progaurd Feb 04 07:39:44 if that means that i can use a better langauge than java Feb 04 07:40:22 The Context class and its descendants. Feb 04 07:40:32 the sin of the father ... Feb 04 07:40:42 Context: "I do 17 different things. Why? Because fuck you; that's why." Feb 04 07:40:49 lemonxah: compile time... Feb 04 07:42:26 gordon_, on mxit my compile time was 50seconds with mixed scala and java sources that is a HUGE project though, wihtout proguard and scala the compile time was 38 seconds Feb 04 07:42:34 12 seconds isn't going to kill me Feb 04 07:42:42 gordon_ any thought on where kotlin works best? whole app? i was thinking maybe the model, leaving the androidish classes alone for now Feb 04 07:42:50 at least when i am developing i am enjoying it more than writing java Feb 04 07:42:56 like my activities and fragments Feb 04 07:43:15 g00s, but that is where kotlin makes also sense Feb 04 07:43:27 look at JakeWharton 's kotterknife :) Feb 04 07:43:34 anyone seen a good tutorial for implementing a backstack for custom views? Feb 04 07:43:35 you make your life easier with DSL Feb 04 07:43:36 lemonxah so you would use it everywhere ? Feb 04 07:43:36 not directly at it Feb 04 07:43:38 you'll go blind Feb 04 07:43:47 yeah that :) dont go blind Feb 04 07:43:55 programming blind would suck Feb 04 07:44:02 it would Feb 04 07:44:21 there was a guy in here who was mostly blind a year or two ago Feb 04 07:44:31 oh yeah ... Feb 04 07:44:52 g00s: check JakeWharton blog post, he used it longer than me. but avoiding nulls is a win for me I guess Feb 04 07:44:53 Does butterknife work well with custom views? Feb 04 07:44:59 of course Feb 04 07:45:01 lasserix: yes Feb 04 07:45:04 my friend is going blind its genetic nothing he can do about it he has tunnel vision allready he is 26 and by the time he is 36 he will be completely blind :/ not good Feb 04 07:45:12 butter knife is nothing magical Feb 04 07:45:33 it's all just findViewById and setOnClickListener in generated code Feb 04 07:45:35 lasserix, its just casting so it will work Feb 04 07:45:35 lemonxah :( :( is there any upcoming therapy for him ? Feb 04 07:45:55 g00s, nope i dont know the illnesses name but there is nothing they can do for him Feb 04 07:46:26 shit Feb 04 07:46:30 wow, that would suck :( Feb 04 07:46:44 JakeWharton, now that you are here just a quick question on retrofit if you dont mind Feb 04 07:47:00 go for it Feb 04 07:47:01 using a request interceptor Feb 04 07:47:04 better be easy Feb 04 07:47:18 is there anyway to get a hold of the uri ? Feb 04 07:47:23 no Feb 04 07:47:27 full uri including the query params Feb 04 07:47:27 why do you want it? Feb 04 07:47:50 cause this company thought it wise to put a token in the header that is a hashed version of the full uri + secret Feb 04 07:47:56 When using okhttp/retrofit with cacheing, will a get request pull from the cache if there is no network connection? Feb 04 07:48:05 use OkHttp interceptors to add the header: https://github.com/square/okhttp/wiki/Interceptors Feb 04 07:48:09 and that has to acompany all requests in the headers Feb 04 07:48:17 lasserix: only if the headers allow Feb 04 07:48:31 lasserix: you can specify "max-age=" + Integer.MAX_VALUE if you don't care about stale results Feb 04 07:48:35 ok cool thnx Feb 04 07:48:38 i believe it uses if-no-matching + etag Feb 04 07:48:50 hmm okay ill have to play around with it Feb 04 07:49:03 etag requires a request to the server which will respond 200 or 304 Feb 04 07:49:17 you'd have to explicitly force an offline, even-if-stale response Feb 04 07:49:25 with the Cache-Control header Feb 04 07:49:31 you mean from the server end? Feb 04 07:49:47 sorry for my noobishness, this is totally new to me Feb 04 07:50:10 no, on the request Feb 04 07:50:34 when Picasso has given up on the network, it will try the HTTP client one last time to get a response even if that cached resource is out of date: https://github.com/square/picasso/blob/a8c4593959959eab18e45ac859e539045efc54c3/picasso/src/main/java/com/squareup/picasso/UrlConnectionDownloader.java#L39 Feb 04 07:50:35 ahh ok, so if no connection add even if stale header? Feb 04 07:51:01 i went to an interview yesterday and the guy asked me if i could rate myself out of 5 how would i rate? Feb 04 07:51:17 so i asked him 5 being? Feb 04 07:51:33 so he said .. hmm 5 being JakeWharton and 1 begin a newby Feb 04 07:51:42 :) Feb 04 07:51:43 hahaha Feb 04 07:51:47 lemonxah you said 6 right ? Feb 04 07:51:52 so i had to say 1 :/ Feb 04 07:52:09 will 6 - 5 for scala = 1 so Feb 04 07:52:17 yeah :) Feb 04 07:52:19 tell that guy to come interview at square and i'll introduce him to some people who will break his scale Feb 04 07:52:47 1st rule - there is always someone better than you in some field ;) Feb 04 07:52:47 well i am going to replace scala for kotlin now see how that performs and to get rid of the big footprint Feb 04 07:52:57 ok i will :) Feb 04 07:54:17 lemonxah: it's always good to play with it, wont hurt you Feb 04 07:54:25 I've read the navigation slide out drawer is not recomended (the one that comes with the android studio wizard), if so, anyone got recomendation on library to use instead? Feb 04 07:54:31 but don't play with knives Feb 04 07:54:50 lasserix who said that ? Feb 04 07:54:58 * lemonxah puts down his knife :( Feb 04 07:54:59 just read it a while back Feb 04 07:55:07 I'm trying to load a Bitmap from Picasso into a POJO so I can reference it later... which I'm doing with an AsyncTask and picassos get(). my problem is that AsyncTask is running after my adapter tries to use the Bitmap, and I'm not getting any image showing up Feb 04 07:55:10 any ideas? Feb 04 07:56:02 well firstly dont use AsyncTasks not that that is your issue but its bad :) Feb 04 07:56:41 too many people use AsyncTasks and forget that on configchange they are gone Feb 04 07:57:18 I was only using it since get() can't be run on the ui thread Feb 04 08:00:34 So I'll often implement say onItemClick listener in the adapter since i'll pass the event to the controller assoicated with the view of the list element, i could do the same with butterknife by just specifying @OnItemClick(R.id.list_element) public void delegateItemClick(ListElementView v) { ... } in the adapter / viewholder? Feb 04 08:00:57 you can put it anywhere you want Feb 04 08:01:14 you give it the view to bind to when you call ButterKnife.inject Feb 04 08:01:23 as long as the id of that element is in the view when you doing inject you can put it anywhere Feb 04 08:01:37 hmm ok thanks Feb 04 08:02:13 is Roboguice still in use / popularly recomended? Feb 04 08:02:23 JakeWharton: what is the state of dagger 2? Feb 04 08:02:29 lasserix: NO Feb 04 08:02:34 lasserix: dont use roboguice Feb 04 08:02:42 gordon_: it's... the same Feb 04 08:03:05 oh yeah i wouldn't i actually thought it was something entirely different just learned what it was the other day actually Feb 04 08:03:07 drinfernoo: Isn't it asynchronous? Feb 04 08:03:13 so no plan for releasign stable version Feb 04 08:03:19 dunno Feb 04 08:03:21 ask Google Feb 04 08:03:25 "eventually" Feb 04 08:03:39 like always ;) Feb 04 08:03:45 drinfernoo: i thought picasso is going to handle that for you, why the need for the extra async task? Feb 04 08:04:01 not get() Feb 04 08:04:13 maybe fetch is Feb 04 08:04:20 use a Target Feb 04 08:04:23 and .into() Feb 04 08:04:24 drinfernoo, just use it like you would but use http://square.github.io/picasso/javadoc/com/squareup/picasso/Target.html Feb 04 08:04:30 yeah ^^ that Feb 04 08:04:33 yeah what jake said Feb 04 08:04:43 but make sure you keep a damn strong reference to the Target Feb 04 08:04:54 otherwise it'll get garbage collected and you'll never get a callback Feb 04 08:04:57 that wasn't working for me... how do I say that up? Feb 04 08:05:03 make sure that reference goes to the gym :) Feb 04 08:05:15 SteroidReference Feb 04 08:05:17 set* Feb 04 08:06:42 Is it into(Target)? Feb 04 08:06:47 yes Feb 04 08:07:03 so in onBitmapLoaded() I set the bitmap to whatever I get back? Feb 04 08:07:04 Oops, you'd already mentioned that. Feb 04 08:07:14 i have to review some ios code for creating the android app, anyone know some good guides for crash course in being able to read ios code from android dev's pov? Feb 04 08:08:00 oh boy Feb 04 08:09:18 well Feb 04 08:09:38 does anyone know the name of this sort icon? http://imgur.com/l1QZQXa Feb 04 08:10:05 i replaced like a couple of hundred of lines of code with retrofit so i probably don't reallly need to read thru it, but everytime i ask them a question about the spec they are like look atht ecode! Feb 04 08:10:29 tyteen4a03: that's a sort icon Feb 04 08:10:37 descending Feb 04 08:10:52 you said sort (herp derp) Feb 04 08:11:22 I also missed the 'sort'. Weird. Feb 04 08:11:22 lasserix did you tell them there is a semantic gap between code and spec? code is just the implementation, not the why Feb 04 08:11:28 tyteen4a03: http://google.github.io/material-design-icons/ Feb 04 08:11:31 search "sort" Feb 04 08:11:38 g00s hehe heheh hehee Feb 04 08:11:51 if i want to update an existing contacts photo,I must use raw contacts ? Feb 04 08:12:17 JakeWharton, thanks :) Feb 04 08:12:40 g00s yeah one guy attempted to set up the android version, i looked it over and it has maybe a couple of useful lines but i ended up sectioning it off in a source-prereelase folder. hopefully he won't be too offended Feb 04 08:13:19 cool thing is i am the first android guy in the shop so i am kind of free to set up conventions Feb 04 08:13:51 drinfernoo: It looks like Target.onBitmapLoaded is running on the main thread, so I presume so. Feb 04 08:14:02 lasserix: Convention #1: We use Kotlin to write Android apps. ;D Feb 04 08:14:39 TacticalJoke: we == who ? Feb 04 08:14:59 I was suggesting a convention for lasserix's shop. Feb 04 08:15:05 you keep talking about this lately is there an introduction or primer or something since to me kotlin seems some kind of breed of fancy racing horse Feb 04 08:15:23 The site is pretty good: http://kotlinlang.org/ Feb 04 08:15:23 their website Feb 04 08:15:35 It seems to be Java without the 'meh'. Feb 04 08:15:40 As in Java the language. Feb 04 08:15:49 Maybe with a tiny sprinkle of 'hmm'. Feb 04 08:16:11 so, mehmm Feb 04 08:16:15 that explains everything Feb 04 08:16:26 tell that to your boss and he will be sold Feb 04 08:16:38 what does the link to javascript mean? Feb 04 08:16:47 That's one of the "hmm"s. Feb 04 08:16:57 Targets JavaScript, for some strange reason. Feb 04 08:17:33 so libraries like scala.js wont be written ;) Feb 04 08:17:47 wow its 3373 km from kotlin to dalvik Feb 04 08:17:51 Anyone knows why Android Studio doesn't show local branches that I created from Android Studio itself? Feb 04 08:18:00 (Context : Git ) Feb 04 08:18:11 kinda a tough swim though Feb 04 08:18:19 SheikhAman: it does for me Feb 04 08:18:29 I'm scared to let AS mutate my repository. Feb 04 08:18:33 The same branch is shown in git branch in terminal Feb 04 08:18:41 Maybe I should refresh the project? Let me try Feb 04 08:19:01 TacticalJoke: it works pretty well, I use it daily Feb 04 08:19:01 so whats the big deal about kotlin exactly? i am a littly hazy at the moment can't seem to see what's so revolutionary Feb 04 08:19:12 nothing Feb 04 08:19:19 lasserix: It's a nice replacement for Java. Seems to be suitable for Android development. Feb 04 08:19:28 It has stuff like lambdas and extension methods. Feb 04 08:19:37 I guess a key point is this: you could use it today for Android dev. Feb 04 08:19:37 it's just an alternative with sugar and small footprint Feb 04 08:19:49 what's shakin' good people Feb 04 08:19:52 and for web dev too i guess? Feb 04 08:19:58 yes Feb 04 08:20:10 lasserix: i have a doc you can read about why it's compelling Feb 04 08:20:36 JakeWharton: yeah please pass it on, Feb 04 08:20:43 method references ftw Feb 04 08:20:47 gotta find it Feb 04 08:21:04 lasserix: https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/edit?usp=sharing Feb 04 08:21:31 Someone just posted about 1.1 Beta 3. That's so 24 hours ago. Feb 04 08:21:38 in my activity im calling a webview inflated from a locally hosted html page. This html page takes advantage of the Javascript Interface to interact with the android app. I need to make a POST with info from the inputs put in from the user on this page. I am currently saving this info as a Json object in the html page. When I pass it back to my app, will it be interpreted as a String? Feb 04 08:21:54 okay, looks like I am understanding it wrong. Studio, in VCS>Git>Branches>Local Branches shows all the other local branches I have, but not the branch I am currently on. Feb 04 08:22:21 sorry for the long post... and repetitive use of the word "page" Feb 04 08:23:46 TacticalJoke: you mean AS beta ? Feb 04 08:24:14 Jesperhead, with my best guess, Yes. I am assuming you wrote an interface to communicate with your webpage JS and Java Code? Feb 04 08:24:19 Yeah. Feb 04 08:24:44 SheikhAman: that I did indeed. and it works magnificently! yeeeaaaa ya dig? Feb 04 08:25:07 ot: what's the word that starts with "s" that means an cushy government/religious job that isn't really needed? Feb 04 08:25:18 Jesperhead, nice :) Feb 04 08:26:10 raleigh: superfluous Feb 04 08:26:59 no Feb 04 08:27:09 it's like a job that you get because you have connections Feb 04 08:27:39 raleigh sausage inspector ? Feb 04 08:27:44 i guess you might get the job for being a "shill"... what are you doing a crossword? Feb 04 08:28:27 not shill either Feb 04 08:28:33 it's an older word Feb 04 08:29:01 stone designer Feb 04 08:29:09 * Jesperhead blinks Feb 04 08:29:23 :-D Feb 04 08:30:08 randy quaid has lost his damn mind Feb 04 08:30:55 I hate when I can't get crossword puzzles. Feb 04 08:31:23 Sham, spurious, specious? Feb 04 08:31:24 sinecure! Feb 04 08:31:35 stop making up words Feb 04 08:31:48 finally, that was driving me crazy Feb 04 08:31:53 I would get a refund on that crossword puzzle. Feb 04 08:32:12 Ahh, AS shows the current branch in the tiniest possible font in the Branches area, and rest of the branches as lists Feb 04 08:32:13 it wasn't even a crossword puzzle Feb 04 08:32:16 Although I guess it can mean 'position requiring ...'. Feb 04 08:32:18 JakeWharton: thanks for the doc Feb 04 08:32:22 i just wanted to remember the name of the word Feb 04 08:32:25 goodnight 'all Feb 04 08:32:33 Laters. Feb 04 08:32:37 night lasserix Feb 04 08:32:37 out of coffee eyelids have stackoverflow Feb 04 08:32:41 JakeWharton, That doc is nice and interesting, Thanks! Feb 04 08:35:14 supervisor ? Feb 04 08:36:11 anyone know where i can find the BuildSystemExample referenced at https://developer.android.com/tools/building/configuring-gradle.html Feb 04 08:37:09 I don't know how I feel about final classes by default. Doesn't that make mocking harder? Feb 04 08:38:07 mocking sucks Feb 04 08:38:34 interface lets you mock or create an alternate implementation Feb 04 08:38:58 you should have a explicit reason for making classes non-final Feb 04 08:43:29 What if we don't control the API (e.g., Android)? We still want to mock it. Feb 04 08:43:38 well, Android is a poor example Feb 04 08:44:05 the quality of API design in the platform is very low Feb 04 08:44:10 and wildly inconsistent Feb 04 08:52:37 has anyone encountered a problem where AS doesn't launch the app on a genymotion emulator after installing it? Feb 04 08:57:40 great, i get status=133 from this BLE api, no idea wth it means Feb 04 08:58:54 hmmmm, can I launch another activity via an intent, killing the previous activity? Feb 04 08:59:49 agh, nordic semi to the rescue again : if (status == 133) { L.e("Got the status 133 bug, closing gatt"); gatt.close(); } Feb 04 09:00:02 I have a button that launches another activity which launches the first activity. If I press back it remembers the last state, I don't want it to Feb 04 09:01:57 call finish() after startActivity Feb 04 09:02:10 JakeWharton: ok Feb 04 09:02:19 is .setEndpoit() the same as .setServer ? Feb 04 09:02:33 cause i cant find .setServer in the latest version of retrofit Feb 04 09:02:41 yes Feb 04 09:02:43 stupid questino i know :) that is why i am rated a 1 Feb 04 09:02:44 hehe Feb 04 09:02:45 kk thnx Feb 04 09:04:34 JakeWharton: woooo!!!! <3 Feb 04 09:08:04 gah Feb 04 09:08:11 so do we have a reliable way of forcing locale in an app yet? Feb 04 09:09:53 A lart to the users head Feb 04 09:16:09 Mavrik: Resource.updateConfiguration Feb 04 09:16:25 change Configuration.locale Feb 04 09:21:23 hey so im trying to port some ajax code to android. Where ajax can simply submit a httpPOST with a JSON object as "Data", so I need to add each entry as a name:value pair in android? Feb 04 09:21:34 do* Feb 04 09:21:36 not so Feb 04 09:24:21 Mavrik> in Application::onCreate and ::onConfigurationChanged, call Locale.setDefault and getBaseContext().getResources().updateConfiguration(config) with config.locale set to whatever? Feb 04 09:24:23 works for me Feb 04 09:30:04 hi there -- i'm still fairly new to android and i'm wondering what the preferred way of doing the following is: i want to scan for bt signals and calculate positions from those - that should happen all the time the app is running regardless of the open activity - one of the activities is going to have some WMS/WFS map (possibly osmdroid) Feb 04 09:31:17 KekSi, do it all in a Service. It will run in the background Feb 04 09:31:34 what should my structure look like? since its a background task that constantly scans i'd probably want some callback like updatePosition in the map activity Feb 04 09:32:03 extend IntentService or just Service? Feb 04 09:40:23 I don't know how bluetooth scanning works, or if there's a system broadcast you can listen to.. Feb 04 09:40:25 KekSi, just a service cause its not just a single task you want to do its a continuoes(excuse spelling) task Feb 04 09:40:56 and then you can bind to the service to get an interface of it so that you can put a callback in Feb 04 09:41:00 I am assuming you'll have to run this task in the service constantly, since you'd be actively scanning Feb 04 09:41:04 look at binding on the service Feb 04 09:41:12 +1 lemonxah Feb 04 09:41:38 yay points Feb 04 09:41:44 am i in the lead? i like winning Feb 04 09:42:03 i'm using the altbeacon library for it (trying to do indoor positioning/navigation) - it scans for a fixed amount of time and calls back with everything it found (say 500ms, then you get a list of ibeacons it found) Feb 04 09:42:13 hahaha.. you at least have 1 point now, lemonxah :D Feb 04 09:42:32 KekSi, No idea how it works, dear Feb 04 09:43:03 yeah just look at binding to a service KekSi that will do what you want Feb 04 09:43:19 so far that works ok-ish i guess + i have a webservice (connection to it works fine already) to give further information on the ibeacons (location etc) Feb 04 09:44:03 so it'll scan and ask the webservice for further info on the ibeacons the app doesn't know yet and get the locations of nearby ibeacons Feb 04 09:44:27 so when you're moving through the building it'll be able to tell you where you are Feb 04 09:44:58 and every single one of my sentences begins with "so" Feb 04 09:46:47 lol Feb 04 09:48:37 JakeWharton, Chainfire, hmm, I'm still having the issue of where to call that - I'm doing it in Application.onCreate and I sometimes still see app language revert to device langauge after it returns from background Feb 04 09:48:39 O.o Feb 04 09:49:05 SheikhAman http://www.reddit.com/r/androiddev/comments/2uh1w6/bluetooth_low_energy_beacon_detection/ Feb 04 09:50:04 g00s, thanks a lot for the link :) Feb 04 10:02:00 would be nice if rx had a .debug() operator Feb 04 10:02:20 i guess i could lift one Feb 04 10:02:24 Hi ;-) ... andddddd goodmorning Feb 04 10:02:43 oh rx 1.0.5 Feb 04 10:04:29 question: is it good practice to have an IntentService run in the background constantly to have the phone periodicly check certain values from some only database and update them internally so a connected Wear app on a smartwatch is always able to load those values ? Feb 04 10:06:20 Mavrik it's been a while since I've tested this, but it used to work without issue... http://pastebin.com/AhadmrAv Feb 04 10:06:50 ok, I'll try it out Feb 04 10:07:01 I hit a hitch since I need to do that in Servce as well to localize notification text :/ Feb 04 10:09:54 hmm .. maybe better use a normal Service instead of a IntentService Feb 04 10:11:03 Sirolf, if its constantly running then use a service Feb 04 10:11:18 im not sure of the question, but it sounds like you're asking if running something constantly at times you don't need it is good practise Feb 04 10:11:23 intent services are for like .. you want to do a long running task in the background but it finnishes Feb 04 10:11:51 yea I see ... it says to NOT override the onStartCommand method on intentservice Feb 04 10:12:01 so you're not supposed to make it sticky Feb 04 10:12:05 right? Feb 04 10:12:06 also how often would you check? Feb 04 10:12:15 at least every hour Feb 04 10:12:17 guys im sending a jsonobject and i cant send jsonArray , how can i customize my class to json array ? i need really help Feb 04 10:12:18 http://paste.ubuntu.com/10051175/ Feb 04 10:12:20 cause if its once an hour Feb 04 10:12:23 then dont use a service Feb 04 10:12:33 use an alarm callback thing Feb 04 10:12:37 ah yeah Feb 04 10:12:39 man what are they called Feb 04 10:12:46 I thought about that Feb 04 10:12:47 BUT Feb 04 10:13:08 how my sendData method should be like and my custom request class ? Feb 04 10:13:16 I want the Wear app on the smartwatch also to be able to connect and request the values at any time Feb 04 10:13:43 then use an intent service for the wear app Feb 04 10:13:52 let it start the service and get the data and stop Feb 04 10:14:06 and use the RepeatingAlarm to keep checking every hour Feb 04 10:14:14 best use of battery that way Feb 04 10:14:18 ah yeah Feb 04 10:14:27 http://stackoverflow.com/questions/3127351/alarmmanager-how-to-repeat-an-alarm-at-the-top-of-every-hour Feb 04 10:14:39 but the wear app can't get the data itself I think Feb 04 10:14:54 that is why i said on the phone make an intentService Feb 04 10:15:06 then let this repeating alarm kick of the intent service to get the data Feb 04 10:15:19 and make the wear app kick off the same intent service to get the data Feb 04 10:15:42 yeah but how does the wear app kick off the intent service if the mobile app is not running? Feb 04 10:15:58 that example has two bad practises : it uses setRepeating, and it bases the alarm on the time Feb 04 10:15:59 you can then store the data in a content provider so that you can get to it with content resolvers and content observers so that it can change when the data changes Feb 04 10:16:05 you need to connect to mobile app Feb 04 10:16:06 please read https://developer.android.com/training/scheduling/alarms.html Feb 04 10:16:22 hmm Feb 04 10:16:25 oh soz Chainfire didn't read just took first google respone Feb 04 10:16:33 but yes dont use a time :) Feb 04 10:17:03 well the periodic data update is not the problem ... Feb 04 10:17:05 <-- extremely stupid at programming Feb 04 10:17:16 still Sirolf, I don't understand why you want or need to do this Feb 04 10:17:30 it's the getting the wear app to request online data Feb 04 10:17:44 while it's corresponding mobile app is not running Feb 04 10:18:17 i havent done much wear coding, but cant you have the wear app triggering a service to run on the mobile ? Feb 04 10:18:39 yeah I'm looking into that now Feb 04 10:18:51 it sounds to me like you want to periodically fetch data on the mobile, then sending that to the wear app, so when the user opens the wear app, it's already present ? Feb 04 10:18:55 there's the GooleApiClient Feb 04 10:19:05 yes ... Feb 04 10:19:22 issue is, if the user isn't actively using the wear app, you're wasting a lot of resources Feb 04 10:19:39 but also that whenever the data is like halfway the period ... you can request an update from the wear app Feb 04 10:19:52 exactly Feb 04 10:20:15 I want to only "notify" the watch if the data has changed enough ... Feb 04 10:20:30 that would only be a couple of times a day max Feb 04 10:20:31 well then just do some syncadapter Feb 04 10:20:39 oh wait do you controll the server side of the data? Feb 04 10:20:44 yes Feb 04 10:20:45 like the online data where does that comefrom? Feb 04 10:21:07 if you control that then just make a syncadapter and then let the online app send you push to the mobile device if the data has changed Feb 04 10:21:08 sql database query through http Feb 04 10:21:32 then using the syncadapter update the data to local sqlite db then notify the wear app and serve it the data Feb 04 10:21:33 yeah thats next step Feb 04 10:21:41 hnmm Feb 04 10:22:03 sorry didn't know what you were trying to achieve Feb 04 10:22:08 well that is what i would do anyway Feb 04 10:22:21 make your app not poll but make it event driven Feb 04 10:22:27 yeah but still I need to find out how to trigger an update from watch Feb 04 10:22:28 its less resource heavy Feb 04 10:22:54 you can trigger the update from the watch by starting the syncadapter on the phone Feb 04 10:23:07 it will sync the data to a local db and then serve it to the phone Feb 04 10:23:19 using content provider / content observers Feb 04 10:23:29 guys anyone can help me ? im pretty new to webservices and android guys im sending a jsonobject and i cant send jsonArray , how can i customize my class to json array ? i need really help Feb 04 10:23:29 http://paste.ubuntu.com/10051175/ Feb 04 10:23:39 so your mobile app never has to run for this solution to work Feb 04 10:23:59 ah okay ... don't know about syncadapters ... Feb 04 10:24:00 I want the Wear app on the smartwatch also to be able to connect and request the values at any time <- you can communicate between wear and your handheld via several way, let's assume MessageAPI is sufficient. All the other stuff is on the handheld side to retrieve and prepare the value ready to be forwarded to wear Feb 04 10:24:08 ways* Feb 04 10:24:20 sci-fi there is a really nice rest client you can use called Retrofit Feb 04 10:24:31 sci-fi, http://square.github.io/retrofit/ Feb 04 10:24:46 ah yeah Feb 04 10:24:48 i must use volley :( Feb 04 10:24:59 why do you HAVE to use volley? Feb 04 10:25:30 thanks so far :-) Feb 04 10:25:50 i found it simple and im pretty new to webservices and android also programming :D Feb 04 10:26:08 Sirolf, http://developer.android.com/training/sync-adapters/creating-sync-adapter.html Feb 04 10:26:57 sci-fi, if the only reason is cause you find it simple then i would switch to Retrofit it will handle the json stuff for you you just pass in an object that resembles the json Feb 04 10:28:55 just give it a read and see if it will work for you Feb 04 10:30:39 thanks lemonxah... and later on I will need to constantly display data on Wear device... like the course and speed from the Mobile device ... that would take at least a Service running on the Mobile device, right? Feb 04 10:31:14 not really Feb 04 10:31:48 like you can have broadcast receivers listening to gps changes and then write that to a db or just send it to the device Feb 04 10:32:08 but you could do it with a service also Feb 04 10:32:27 well it's not the actual course and speed of the mobile device ... but course and speed of the onboard instruments of a ship... connected through wifi network etc. Feb 04 10:33:06 there should be some sort of event if not and you have to poll the information then yes a service will be the only option Feb 04 10:33:10 but i dont like polling Feb 04 10:33:19 it's not polling Feb 04 10:33:41 the app on mobile is running in a service already ... to keep tracking the ship's data Feb 04 10:33:51 yeah that is fine then Feb 04 10:34:35 it's just reading the whole NMEA stream anyway Feb 04 10:39:15 hmm lemonxah .. on the first problem again... what if I don't controll the data? .. I can't make it push from server probably :( Feb 04 10:39:39 polling only option right? Feb 04 10:39:54 yea if you dont controll the data then i would do a poll but using the example that Chainfire gave for scheduling the update Feb 04 10:40:19 yeah Feb 04 10:53:17 is it hard to get gde for android? Feb 04 10:55:27 Hey peeps! Feb 04 10:55:35 hey other peep Feb 04 10:55:40 peep er Feb 04 10:55:52 how can i deceive you today? Feb 04 10:56:10 haha Feb 04 10:56:31 tell me a good strategy for determing the fastest kilometer someone has run in a running app Feb 04 10:57:08 fastest kilometer as in he runs multiple 1 km distances and you want hte fastest one he did in time? Feb 04 10:57:17 or you want to record the top speed Feb 04 10:57:27 hah Feb 04 10:57:28 yeah Feb 04 10:57:29 no idea Feb 04 10:57:41 just a requirement I'm trying to figure out how to meet Feb 04 10:57:56 best to know what the requirement is first i think :) Feb 04 10:58:53 not sure if I should maintain a rolling kilometer, or just record each kilometer individually Feb 04 10:59:08 Ankhwatcher you just loop every kilometer they have ran and find the quickest? Feb 04 10:59:38 or write a an asychtask to run this logic after they finish running Feb 04 10:59:44 it doesn't make sense to compare the 1k speed of a marathon to a sprint Feb 04 10:59:59 Ankhwatcher, rolling kilometer makes alot of sense Feb 04 11:00:08 Ankhwatcher, either that or Strava-style segents Feb 04 11:10:26 what is the best place to keep a session token in the app? Feb 04 11:13:28 lemonxah: http://developer.android.com/reference/android/accounts/AccountManager.html Feb 04 11:13:58 you can set up Account Manager to manage your tokens for you Feb 04 11:14:00 session token that i have from a web api Feb 04 11:14:16 i dont want ot make accounts on the device to do that Feb 04 11:14:28 or can it manage the token without having to create an account? Feb 04 11:14:36 sure Feb 04 11:15:01 the getAuthToken call asks for Account Feb 04 11:15:10 I want to display a dialog before executing super.onOptionsItemSelected(item) for android.R.id.home to have the default up navigation behavior.. how can I execute this delayed through the dialog? Feb 04 11:15:46 what library are you using to connect too the api? Feb 04 11:15:56 Retrofit Feb 04 11:16:05 but its not a normal session token Feb 04 11:16:19 I think it's all in here http://developer.android.com/training/implementing-navigation/ancestral.html Feb 04 11:16:35 its an authtoken i get on login which i have to pass into the query strings of each subsequent call to the api Feb 04 11:16:53 well its normal ish Feb 04 11:16:58 how about accessing Retrofit through a singleton and holding the session token there Feb 04 11:18:02 yeah i can do that but before i went on a static field making spree was wondering what the best approach would be Feb 04 11:18:26 what's the go-to tool to identify where a theme color is coming from so I can override it? Feb 04 11:33:05 Okay so I'm trying out RecyclerViews and have gotten them working, but now I'm wondering how I can modify a text view inside an individual child view after the adapter has been set? Feb 04 11:33:31 like say i have five card views inside my recycler view Feb 04 11:34:03 now after the activity loads, based on some thing on the server, each of those five card views' text views will be updated Feb 04 11:34:11 how do i access those text views? Feb 04 11:37:23 KaylieG, you update data in your adapter Feb 04 11:37:33 KaylieG, and call notifyItemUpdated / notifydatasetchanged Feb 04 11:37:40 you don't touch the views directly. Feb 04 11:39:54 is there a way to inject a url query into the url using an okhttp interceptor? Feb 04 11:40:31 lo kevel Feb 04 11:40:42 hey lemonxah Feb 04 11:40:43 whatsup Feb 04 11:40:50 is there a way to inject a url query into the url using an okhttp interceptor? Feb 04 11:40:54 pretty much that Feb 04 11:41:22 what are you attempting to do, whats the bigger picture? Feb 04 11:41:46 not to have to pass it in on all the api calls but have it injected auto magically Feb 04 11:41:54 i do that for the header stuff on other apis Feb 04 11:42:14 but this one i cant cause they dont use headers for the tokens they pass it into the url as query fields Feb 04 11:42:44 why not use retrofit or something, and for that specific call, just don't add the header? Feb 04 11:42:51 Mavrik thanks I'll do that. once i call the notify method on the adapter, do i have to do anything with the recyclerview itself or will it automatically update when the adapter's notifydatasetchanged is called? Feb 04 11:43:10 KaylieG, if you call notifyDatasetChanged, it'll call bindView() for each displayed item again Feb 04 11:43:12 retrofit has a reqest intercepter Feb 04 11:43:47 KaylieG, if you call notifyItemChanged(position) it'll call bindView() just for that view again and refresh it Feb 04 11:43:53 i am using retrofit with okhttpclient cause i need to get the url so that i can sha256 this token Feb 04 11:43:59 there's also notifyItemRemoved, etc. that animate them properly Feb 04 11:44:04 retrofit's request intercepter doesn't have the url Feb 04 11:44:15 hmm Feb 04 11:44:22 and okhttp's intercepter cant add queries Feb 04 11:44:34 wonder if they will both work on the same adapter Feb 04 11:44:36 hmm Feb 04 11:44:40 * lemonxah is tesing Feb 04 11:44:44 testing even Feb 04 11:45:14 surely you can just define a different interface method for that call, and use the query annotation for the paramter you want to append? Feb 04 11:45:23 and call that for your api call? Feb 04 11:45:41 but i dont wanna :/ Feb 04 11:45:51 i want to not create endless abstraction Feb 04 11:45:53 if i dont need to Feb 04 11:46:56 also i think this will work Feb 04 11:47:58 just didn't think of using them both at the same time Feb 04 11:48:11 for some reason i thought they are mutaully exclusive Feb 04 11:48:16 thanks Mavrik, it seems to be working! Feb 04 11:48:38 just create an overloaded method Feb 04 11:48:44 but they are not the okhttp intercepter is on the okhttpclient and shouldn't affect retrofit's request intercepters at all Feb 04 11:48:54 no need Kevel :) Feb 04 11:49:23 as long as it works, and its clean ;) Feb 04 11:50:00 very clean .. a lot cleaner than overload methods Feb 04 11:50:31 hmm Feb 04 11:50:36 i quite like overloaded methods Feb 04 11:50:55 dont be a hater :( Feb 04 11:50:58 i dont dislike them i just like it when there are ways around them without having to use it Feb 04 11:51:14 and in essense that is exactly what the request interceptor is for Feb 04 11:52:02 anyway how to wait for a network call to finnish before continuing a contructor? i need to auth once before calling the apis and the first time there is no session token to use Feb 04 11:52:15 bad i know .. Feb 04 11:52:25 oh nvm :) no need Feb 04 11:53:32 ohttpclient#setAuthenticator Feb 04 11:53:43 works like a charm Feb 04 11:53:43 hmmm Feb 04 11:53:53 so the first time a call is made or everytime? Feb 04 11:53:56 if a 403 is returned, it asks you to perform some magic Feb 04 11:54:06 or 401 Feb 04 11:54:07 its not 403 though Feb 04 11:54:10 nor 401 Feb 04 11:54:11 w/e the auth one is Feb 04 11:54:12 :p Feb 04 11:54:19 its a propretary thing Feb 04 11:54:25 they give back a 200 Feb 04 11:54:30 with some data Feb 04 11:54:53 ouch Feb 04 11:55:16 yes Feb 04 11:55:17 :) Feb 04 11:55:49 but looking into the authenticator maybe it can still be used thnx Feb 04 11:59:29 i take it the com.squareup.okhttp.Authenticator is the one you are referring to? Feb 04 11:59:37 as there is no OkAUthenticator Feb 04 12:03:55 what is 407? Feb 04 12:04:10 oh proxy auth Feb 04 12:04:16 ok cool thnx kevel that will work Feb 04 12:06:16 lemonxah, yeah its that Feb 04 12:06:44 you'll still have to force a user to authenticate when using ur app at the start or w/e Feb 04 12:07:07 this just adds that extra level of security and handling if they arent authenticated Feb 04 12:07:14 or expiring tokens, etc Feb 04 12:07:30 i dont have to force them to authicate this is for a POS system Feb 04 12:07:40 so it can authenticate without user intervention Feb 04 12:12:57 Oh sweet, that makes life super easy Feb 04 12:17:10 Is anyone here using irc cloud? is it worth it? Feb 04 12:17:32 JakeWharton, you use it, opinion please? Feb 04 12:20:32 OH NO :( Feb 04 12:20:48 that is okhttp response request Feb 04 12:21:17 that sucks cause now i cant update / change the one path and the one query Feb 04 12:21:19 hmm Feb 04 12:29:22 that was fun Feb 04 12:35:28 anyone familiar with okhttp requests Feb 04 12:35:37 the request builder Feb 04 12:36:04 i want to change query values and path values using that request builder, how would i do that? Feb 04 12:41:22 Any possible idea why onBackPressed on my app after starting the activity from deep link, doesn't return to the activity which issues the deep link, but goes up the stack from my app's activity? Feb 04 12:47:17 kevel_: IRCCloud is amazing. But it will store your whole chat history on US servers, so if you have a problem with that, you can use the self-hosted quassel project, which provides the same functionality. (I'm using it right now) Feb 04 12:47:51 justJanne: i hardly have anything to hide from the US government Feb 04 12:48:00 Im not even from there, so that can do jack shit to me Feb 04 12:48:00 :p Feb 04 12:48:03 Both are the only IRC apps that are actually usable on Android. Feb 04 12:48:12 they * Feb 04 12:48:46 (Also, this was my reason, I can get a whole VPS for 2$/month, so why should I pay 4$/month for IRCcloud) Feb 04 12:49:36 Disclaimer: I am one of the developers of the Android app for Quassel Feb 04 12:54:19 justJanne: does it have a web interface? Feb 04 12:54:52 What data should I verify when verifying a purchase? All the data I see available is https://developers.google.com/android-publisher/api-ref/purchases/products as well as https://developers.google.com/android-publisher/api-ref/purchases/subscriptions Feb 04 12:55:06 There is one available, but it doesn't have full functionality yet. (You can only chat from it, but not join new channels) Feb 04 12:56:23 Full functionality is only available in the Qt client (PC, Mac, Jolla/Sailfish OS) and in the QuasselDroid Beta. We do have clients for iOS, meego, symbian, java2me, and a web interface, but these aren't fully featured yet. Feb 04 12:59:01 I just noticed a bug in AppCompat. (1) ripples of menu elements aren't properly showing round edges, (2) you can get 2 menu elements to show a ripple at the same time. Feb 04 12:59:17 okhttp i do response.request().newBuilder().url(newUrlStringFormatedTheWayIWantIt).build() but that still throws 401 even when i know it works tested manually Feb 04 13:00:09 Have you tested it manually with cURL using the same useragent? Feb 04 13:00:38 Hello! Looks like ActionBar.Tab are depricated in api level 21. Which navigation pattern google suggest to use (application have material style) instead of Tabs? Feb 04 13:00:51 where is TacticalJoke? Feb 04 13:00:56 http://codereddit.com/index.html Feb 04 13:01:00 this is the solution!! Feb 04 13:01:43 yes justJanne Feb 04 13:01:46 using postman Feb 04 13:04:37 this makes no sense Feb 04 13:07:50 xgearx: a few Feb 04 13:08:00 FragmentTabHost? Feb 04 13:08:04 which? Feb 04 13:08:04 or just a tabhost? Feb 04 13:08:09 lol Feb 04 13:08:16 as a replacement for actionbar.tab Feb 04 13:09:06 tab host, old tabs, actionbar tabs. i mean, as i understand, they suggest do not to use tabs at all. or i am wrong? Feb 04 13:09:19 is there something like https://developer.android.com/about/dashboards/ for arm7 vs arm5? Feb 04 13:10:12 xgearx: it's not specifically discouraged iirc. Feb 04 13:10:37 https://github.com/neokree/MaterialTabs Feb 04 13:10:42 look at these sexy tabs Feb 04 13:11:16 i imagine there are very few arm5 devices around? Feb 04 13:11:50 xgearx: also see: http://www.google.com/design/spec/components/tabs.html Feb 04 13:11:55 documentation uses material design Feb 04 13:12:12 hm, thanks a lot Feb 04 13:12:45 so, you suggest to use MaterialTabs Feb 04 13:13:02 well, that's a third party library Feb 04 13:13:21 You could use SlidingTabs? Feb 04 13:14:12 arggh this is anoying Feb 04 13:14:29 xgearx: http://stackoverflow.com/a/24473378 Feb 04 13:14:34 here's a more direct answer for you. Feb 04 13:14:42 tx: yes, in conjunction with viewpager Feb 04 13:15:49 i want to change the url of a request when i get a 401 back using Retrofit / okhttp Feb 04 13:15:51 any ideas? Feb 04 13:17:18 execute the call, then use .code() on the response? Feb 04 13:17:26 then, act on that code accordingly? Feb 04 13:17:36 (code being 401) Feb 04 13:19:12 'lo. does anyone know if there are any plans to bring junit 4 to android? i have an enormous test suite that's intended to be run on ordinary desktop java too and therefore doesn't have any test classes that extend InstrumentationTestCase. i'd like to run this test suite on an android device and there doesn't seem to be any way to do it Feb 04 13:19:44 Would AndroidJUnitRunner help? Feb 04 13:19:57 tx: hm, not heard of that... looking it up now Feb 04 13:20:05 Let me do that for you Feb 04 13:20:14 nope, clipboard broke. good luck. ;) Feb 04 13:20:17 https://code.google.com/p/android-test-kit/wiki/AndroidJUnitRunnerUserGuide Feb 04 13:20:30 hehe, thanks Feb 04 13:20:34 * rmk0 eyes it Feb 04 13:21:02 ah! excellent, i'm not sure this existed when i last looked (a few months back) Feb 04 13:22:29 any xamarin android developer here? Feb 04 13:22:30 hopefully this should do it... my needs are pretty simple. none of the tests i want to execute even know anything about the android API specifically (don't need access to an Activity or anything along those lines) Feb 04 13:22:50 Let's hope for the best then. Feb 04 13:33:30 I have a web api where image URLs are provided in a /item/details end point. Where I load a list view with data from /items end point. I need to show image thumbnails on each list item. Basically, I need to query /item/details endpoint for every items in the list. How should I go forward for achieving something like that? Feb 04 13:39:06 hi guys. i'm sorry to annoy you with this, but i am trying to send an android broadcast and it seems i do something wrong. i have a receiver which is configured to listen for my broadcasts and that works because if i do adb shell am broadcast -a com.mypackage.MY_MESSAGE, it gets received Feb 04 13:39:46 if i do a new intent(com.mypackage.MY_MESSAGE) and sendbroadcaste(intent) it doesnt work Feb 04 13:39:56 am i forgetting something? Feb 04 13:40:37 android-dev247: the broadcastreceiver? Feb 04 13:41:21 the broadcast receiver does not receive the broadcast that i send Feb 04 13:41:29 (and thanks for replying) Feb 04 13:41:45 did you set up the receiver with an intent filter? Feb 04 13:41:49 yes, i did Feb 04 13:42:27 did you define the receiver in your manifest? Feb 04 13:42:44 Feb 04 13:42:51 that its from the manifest Feb 04 13:43:00 what about yes yes, that is there also. i will paste it if you;d like Feb 04 13:43:23 Nope, I believe you. :p Feb 04 13:43:37 are you registering the receiver somewhere like onresume? Feb 04 13:43:44 (and vice versa on onPause) Feb 04 13:44:12 and also, did you register the receiver in the manifest with the full package name? Feb 04 13:44:29 Feb 04 13:44:32 cool Feb 04 13:44:48 I'm trying to check if my user has canceled an active subscription from my backend via the androidpublisher API. I can not seem to find that. Feb 04 13:45:12 https://developers.google.com/android-publisher/api-ref/purchases/subscriptions This would be the relevant API thingy Feb 04 13:45:37 i believe the receiver to work, because sending a broadcast using adb shell am broadcast -a .... gets in the receiver...i did a log and it shows in logcat Feb 04 13:46:36 android-dev247: you need to specify the receiver when using adb Feb 04 13:46:47 er, actually, no, I lie, you don't. Feb 04 13:46:55 :D Feb 04 13:47:24 "adb shell am broadcast -a intent_here" Feb 04 13:47:27 should be the basics Feb 04 13:47:32 yea, that works Feb 04 13:47:37 thats what bugs me :) Feb 04 13:47:46 that it works doing that, but not from the code Feb 04 13:47:48 is the application in the foreground Feb 04 13:47:54 Anyone having problems getting trace log from Debug methodtracing? When running it on device I can't see to get/find the log Feb 04 13:48:10 no, i try to send it from a service Feb 04 13:48:44 does your application have any activities? Feb 04 13:48:49 otherwise it may not actually be runnig Feb 04 13:49:14 :) it's running, because it logs stuff out Feb 04 13:49:18 (you can get around this using intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); ) Feb 04 13:49:33 and i just have ended a debug session on it Feb 04 13:49:39 unfortunately that does not help Feb 04 13:49:44 i have tried that as well :( Feb 04 13:49:59 is there a way someone could stop me from sending broadcasts? Feb 04 13:50:08 i "enherited" this app from someone Feb 04 13:50:23 :\ hmm. Feb 04 13:51:41 android-dev247: you could separate the broadcastreceiver and the service Feb 04 13:51:41 i am using api 21, build the project with gradle Feb 04 13:51:45 depending on what you are doing Feb 04 13:52:06 (you don't need a service to receive broadcasts) Feb 04 13:52:40 well at first i wanted to send the broadcast to another app, but that didnt work, so i tried having a receiver in my sending app ( the service) , to see if it works at all, but i think the broadcast is not sent at all Feb 04 13:53:48 Anyone who has had problems getting trace log from Debug methodtracing? Feb 04 13:54:26 android-dev247: I am assuming your broadcast receiver is a private class of your service yeah? Feb 04 13:54:46 and you are sure it is registered before you send the broadcast? Feb 04 13:55:53 its public, and that is working, because it starts my service onboot (it also receives the BOOT_COMPLETED broadcast) Feb 04 13:56:11 and it doesn't work in adb Feb 04 13:56:14 but does in code? Feb 04 13:56:21 or the other way around Feb 04 13:56:27 the other way around Feb 04 13:56:52 it wors in adb, but not in code (i use sendBroadcast(intent) ) Feb 04 13:57:07 you're 1000% sure the intent name is correct? :P Feb 04 13:57:07 the action is exactly the same, i copy-pasted it Feb 04 13:57:26 :D Feb 04 13:57:40 maybe it is a sign that i should take a break :)) Feb 04 13:58:09 it feels so stupid... something this simple not to work Feb 04 13:58:11 wait Feb 04 13:58:22 you're doing something with on_boot right Feb 04 13:58:31 do you have an if statement for this intent? Feb 04 13:58:35 (or else if, whatever) Feb 04 13:58:45 i have something like this in onReceive: Feb 04 13:58:53 to switch your logic based on the intent received Feb 04 13:59:27 well, yes Feb 04 13:59:56 but i log the action of every intent received there Feb 04 13:59:58 D/Volley﹕ [1] 3.onErrorResponse: AppController what is this error for ? or how can i see exactly error message ? Feb 04 14:00:24 first line of code is: Log.d(this.getClass().getName(), intent.getAction()); Feb 04 14:00:41 I blame filtering then. Feb 04 14:00:49 either define is statically or dynamically Feb 04 14:00:50 not both Feb 04 14:01:47 hm.. i will try that too :) Feb 04 14:01:50 wont hurt Feb 04 14:02:11 thanks for the tyme, tx Feb 04 14:02:17 time * Feb 04 14:02:33 Ciao. Good luck. ;) Feb 04 14:02:54 ty Feb 04 14:05:11 Anyone who experience with trace log from Debug methodtracing? Feb 04 14:05:20 has * Feb 04 14:05:57 i have not, sorry Feb 04 14:20:01 Yello, can two apps use the same Game Services setup? Feb 04 14:30:58 Guys plz, what is the best book to learn android development, Feb 04 14:31:22 borw3: have you gone through the tutorial/training stuff on the Android site? Feb 04 14:31:30 ugh do people still use books nowadays? :V Feb 04 14:31:51 Not everyone has 24-7 access to internet Feb 04 14:32:11 I'm from africa :-( Feb 04 14:32:43 Leeds: Yeah, but I would like a book for offline access Feb 04 14:32:55 yeah, you have gone through the training? Feb 04 14:33:24 I have skimmed through some of it. didn't see any offline option though. Feb 04 14:36:53 Plz, any offline pdf I can download to learn android programming for semi-begginers in android programming. Feb 04 14:37:46 borw3: You could open the guide on the website and use your browsers print-to-pdf option? Feb 04 14:37:47 borw3: google "site:.edu android beginners programming guide filetype:pdf" Feb 04 14:37:59 that should give you loads of material Feb 04 14:38:00 You could spider the site. Feb 04 14:38:06 Maybe. Feb 04 14:38:08 borw3, try http://www.tutorialspoint.com/android/android_tutorial.pdf Feb 04 14:38:44 I don't know how current it is though, but it will probably give some ground to stand on Feb 04 14:38:59 [HomeActivity], I go into Facebook deep-link into ActivityX in my app [HomeActivity, ActivityX], when I press back, I get back to HomeActivity instead of Facebook. Why? I am using singleTop launchMode Feb 04 14:39:27 justJanne's suggestion is great also Feb 04 14:39:50 TacticalJoke: How to spider a website? you mean like downloading it for offline? Feb 04 14:41:06 wget ;) Feb 04 14:41:17 williamd: You expect me to save pages as pdf, all those different pages? your serious? Feb 04 14:41:23 Yeah. Though I don't know what their policies might be. Feb 04 14:42:04 I think I can wget it, let me try. Feb 04 14:45:33 Okay here is another one, why does it seem to me that android studio is so damn slow compared to eclipse? and what is this about soon never being able to create android apps on 32bit OS's Feb 04 14:45:47 When is it recommended to use launchMode singleInstance? Feb 04 15:00:15 when that's the behavior you need... Feb 04 15:00:57 meh Feb 04 15:01:39 it's nearly what I want, just one weird behavior, let's say my activity stack is [A,B,C] and then I deep-link from FB into Activity D Feb 04 15:01:52 then I only have [D] and the task with [A,B,C] is gone Feb 04 15:02:10 not sure if that's intended Feb 04 15:02:58 That's what singleInstance means. Feb 04 15:03:08 If you create a new task, the old is gone. Feb 04 15:03:22 A B C is in your app, then you switched to FB, so it should be a different task, right? Feb 04 15:04:28 BoD`: yes Feb 04 15:04:50 so WorksAsIntended :) Feb 04 15:04:52 well I can't get the behavior right with singleTop or singleTask Feb 04 15:05:06 [A,B,C] then I switch to FB, then deep-link into D Feb 04 15:05:15 [A,B,C,D] -> back results in getting back to C Feb 04 15:05:22 but I actually wanted [Facebook, D] Feb 04 15:05:36 that's to my opinion the standard behavior Feb 04 15:05:49 it's confusing... ABCD is what you want, or what you currently have but don't want? Feb 04 15:06:30 BoD`: it's what I currently have, and don't want, that's correct. Because when another app deep-links into a specific activity that pressing back should result in getting back to the app that issued the deep-link request Feb 04 15:07:11 well yeah Feb 04 15:07:27 but I thought you would have what you want by default Feb 04 15:07:37 you can't do that with singleInstance Feb 04 15:07:37 I'm surprised it doesn't do that Feb 04 15:07:50 because you only have a singleInstance of your activity, it it belongs to its own task stack Feb 04 15:07:51 Maybe it works this when with launchMode standard Feb 04 15:08:07 yeah it depends highly on launchMode Feb 04 15:08:52 but I am making use of onNewIntent() for handle deep-linking etc,... so this is all quite brain-melting Feb 04 15:12:33 If I want to show anohter fragment but keep the current one in memory so that I have the possibiltiy to find my fragment again and show it again. Do I need to do something special? Because now it is always destroyed when I replace anohter one .. Feb 04 15:17:23 If you are not low on memory, it should do that Feb 04 15:17:30 did you add it to the backstack? Feb 04 15:32:56 danijoo: Thanks, forgot to add it to the backstack. Feb 04 15:38:25 Hey guys! Feb 04 15:39:26 Hi! How do you get your first installs? is there ant technique or tip I should know? Feb 04 15:39:36 advertising Feb 04 15:39:39 I suppose the first installs are the hardest Feb 04 15:39:44 yup Feb 04 15:40:07 post it in related forums and stuff like that Feb 04 15:40:21 ok, I already have a list of forums that are related Feb 04 15:40:24 is there a way to start the emulator with the lock screen unlocked? Feb 04 15:40:38 danijoo, any other tip? what have worked for you? Feb 04 15:40:58 i just waited ;) Feb 04 15:43:18 Wixy: Try custom imgs Feb 04 15:43:31 custom imgs? Feb 04 15:43:47 what images? Feb 04 15:43:50 you mean the screenshots? Feb 04 15:44:37 I'm making an alarm app and need the service which rings the alarm running in the background at all times. Feb 04 15:45:05 How can one make a service that won't be killed by android, or if its killed, restarted? Feb 04 15:46:08 pifon, you want to use alarmmanager, not a service Feb 04 15:46:13 pifon: you *really* don't need an unkillable service for an alarm Feb 04 15:47:01 Leeds: !!! Feb 04 15:47:28 thepoosh: !!! Feb 04 15:47:33 ty danijoo Feb 04 15:47:40 what could cause those background gliches for dialogfragments? https://drive.google.com/file/d/0B-n0Kpvc8EEna254bXg1dE5vbUU/view Feb 04 15:47:42 sup dudermeister? Feb 04 15:48:20 been back from Japan more than a week, starting to get excited for next trip... in less than 2 weeks :) Feb 04 15:48:49 Can't wget the whole of google devs web pages, it's too big. Any other solution for a good offline resource to learn android programing? Feb 04 15:49:43 going to Japan again? Feb 04 15:49:50 rural areas or city? Feb 04 15:50:05 nope, Australia, with a 1/2 day stop in Singapore on the way Feb 04 15:50:14 :_( Feb 04 15:50:21 cools Feb 04 15:50:51 and after that, it's back to the family in the UK for Pesach, then Seoul in May :D Feb 04 15:53:06 sounds busy Feb 04 15:53:09 what about work? Feb 04 15:54:31 fits in the gaps between travel Feb 04 15:55:00 hmmmm Feb 04 15:55:27 sounds good if you can pay for your ticket Feb 04 15:56:21 part of the trick is hunting down cheap(er) flights... e.g. the flights to the UK are about US$825 on Emirates, through Dubai... Feb 04 15:57:37 I did think about stopping over there, but I'm not sure how welcome I'd be Feb 04 16:15:15 so i might have spoken too soon when i declared my android emulator problem solved, the emulator does run now but till just now i never actually launched it, i just assumed it work launch fully Feb 04 16:15:33 it didnt just now, it did the A N D R O I D thing for a few minutes then the window closed Feb 04 16:15:46 system, what emulator image Feb 04 16:16:01 linux and Nexus_S_API_21 Feb 04 16:16:08 ok, got kvm installed ? Feb 04 16:16:23 oh crap. i CANT have kvm Feb 04 16:16:32 not now. i have to turn off uvesafb Feb 04 16:16:36 so that's the eason Feb 04 16:16:40 blargh thats the reason yea Feb 04 16:16:40 *reason Feb 04 16:16:53 i switched to usveafb not thinking lol Feb 04 16:17:13 i think i have no prlblems just need to go back to vga console whch is all uvesa gives me anyway Feb 04 16:17:51 why do you want to use usveafb ? Feb 04 16:18:14 i was going to see if IT could give me my native resolution of 1920x1080 Feb 04 16:18:17 it cant Feb 04 16:18:54 so just remove it Feb 04 16:18:59 what distro do you have ? Feb 04 16:18:59 yup Feb 04 16:19:07 gentoo Feb 04 16:19:31 * gordon_ is just a arch user, steps back Feb 04 16:19:36 i just need to rebuild kernel with kvm and switch to vesab Feb 04 16:19:48 arch WOULD be my second choice except for aur which cannot ever be trusted Feb 04 16:20:11 true that ;) Feb 04 16:20:30 too much of what i insist is installed is in aur Feb 04 16:20:42 i wont install anything from aur, i dont even install anything in gentoo thats not in portage Feb 04 16:20:48 i would move to gentoo, but dont like flahs Feb 04 16:20:50 *flags Feb 04 16:20:53 i dont even like to use overlays, its always problematical Feb 04 16:20:59 wow raspberry pi 2 with quad core arm v7 and twice the ram is out for the same price :) Feb 04 16:21:01 use flags are what makes gentoo what it is Feb 04 16:21:02 gordon_: what are you, a communist? Feb 04 16:21:08 shmooz: keep up! Feb 04 16:21:15 wait. they ahave a 2 core PI now? wtf lol Feb 04 16:21:25 Leeds: didnt get the reference, sorry Feb 04 16:21:29 which armv7 specifically? Feb 04 16:21:39 hear all about it! Feb 04 16:21:41 gordon_: only communists HATE THE AMERICAN FLAG! Feb 04 16:22:03 why america :> Feb 04 16:22:25 why not? Feb 04 16:23:36 not a reason? i was just looking if gentoo was made in the us but no Feb 04 16:24:52 I440r: anyway, flags are powerfull but troublesome sometimes Feb 04 16:25:43 USians tend to be particularly attached to their flag, more than most other people around the world... anyway, joke been stretched too thin Feb 04 16:26:20 gordon_, the trick is to not go all out with them. they call those ricer use flags. if you "keep it simple stupid" it works out well :) Feb 04 16:27:19 so it's the best to juts not put anyflags or some standard ones ? :) Feb 04 16:28:55 http://www.android.com/intl/en-GB_id/one/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+xda-developers%2FShsH+%28xda-developers%29&utm_content=FaceBook Feb 04 16:28:59 android 5.1 Feb 04 16:31:24 I am looking into unit testing for android, roroboelectric + what else? Feb 04 16:32:23 wordToDaBird: for unit testing ? nothing else Feb 04 16:32:35 splitting app into modules and use normal junit Feb 04 16:39:03 Hey all... for saving something to an SQLite DB, what is the best way to determine if the row exists and whether to do an insert vs an update Feb 04 16:39:47 ok so im stepping through android code, step one thing and 30 seconds later im on the next line Feb 04 16:40:15 guys im really tired of searching these Feb 04 16:40:18 this is an 8 thread i7 i have here, not exactly a slouch Feb 04 16:40:20 siegs: There's only one way.. query the database Feb 04 16:40:27 how can i send an json array request ? Feb 04 16:40:41 i can send json object but jsonarray doesnt work same way Feb 04 16:45:47 Spotify or Google Play Music? Feb 04 16:45:51 or something else? Feb 04 16:46:08 spotify yiati very good IMHO Feb 04 16:46:08 write your own Feb 04 16:46:21 gordon_: I will keep that in mind Feb 04 16:46:29 and how is it related to android dev ? Feb 04 16:47:06 clearly he was asking, what is the best music streaming service to utilize while coding for android. Feb 04 16:47:20 yes, for sure Feb 04 16:47:31 wordToDaBird: Yep Feb 04 16:47:47 it's like asking what is better game for playing between compilations Feb 04 16:48:26 cloud music services are a commitment though :P having all of your money poured into one place Feb 04 16:48:55 not using tem Feb 04 16:49:45 spotify is nice. Feb 04 16:57:40 do you know any free site to search for keywords and get which apps would be your competitors? Feb 04 16:59:43 google play Feb 04 17:00:21 come on, sites like appannie. I know I can do it myself using google play Feb 04 17:02:32 how do i stop android studio from adding escapes in my pastes? Feb 04 17:02:58 and how do i stop it from auto indenting Feb 04 17:03:39 I have a line: p.put("method app_background Feb 04 17:04:11 when I paste ", " over that space after method, it pastes \", \" instead Feb 04 17:04:49 this is driving me up a wall. how do i get AS to stop fucking up what I'm pasting? Feb 04 17:08:16 omfg i have tens of these lines to change and AS is fucking up each line Feb 04 17:08:42 why not search and replace? Feb 04 17:09:09 command + r Feb 04 17:10:42 wordToDaBird, that works Feb 04 17:10:59 any idea how to turn of the auto indentation? wordToDaBird Feb 04 17:11:13 Usually, alt-ctrl-v will paste while removing all formatting, not sure if it applies to AS as ewll Feb 04 17:13:09 amun it is in preferences somewhere Feb 04 17:13:44 wordToDaBird, I looked. couldn't find it Feb 04 17:16:42 if you go preferences -> Code Style -> General you can eliminate tab size indent size ad continuation indent... Feb 04 17:17:08 Amun-Ra, look editor > code completion Feb 04 17:17:34 or look everything, at least it will be useful for later on Feb 04 17:18:34 in Code there is Auto-indent Lines which might be whats doing it Feb 04 17:19:15 good familiarization with your IDE is paramount, short-cuts and tips will save you a lot of time when silly shit happens. Feb 04 17:19:29 for sure Feb 04 17:20:15 wordToDaBird, I don't see auto-indent inside code style Feb 04 17:20:33 not code style, look at the bar at the top Feb 04 17:20:40 file, edit, view navitage code Feb 04 17:20:57 close preferences Feb 04 17:21:06 i see. Feb 04 17:21:10 that's a command Feb 04 17:21:17 that causes it to auto-indent everything Feb 04 17:21:38 anyone here have experiance with chromecast ? can i play audio showing a image background with the default media player ? Feb 04 17:21:39 this is what happens when IDEs try to do too much Feb 04 17:21:59 at least if its going to auto do something, make it un-doable Feb 04 17:22:07 ctrl+z should un-do it Feb 04 17:22:14 if you look under edit, there is a command to unindent a selection Feb 04 17:22:54 that could help Feb 04 17:22:59 well i manually did it now Feb 04 17:23:05 i'll try that next time Feb 04 17:26:04 ok so i need some help getting a listview to actually show on the display, i have the listview defined in my layout.xml, i have the list item defined in an xml, i have an ArrayList of the right type and an adapter. the list is associated with the adapter Feb 04 17:26:17 and i do call notifyDataSetChanged() but i get nothing on the screen Feb 04 17:32:18 WOO IM BACK Feb 04 17:35:11 why is my adapters public View getView() never being called? Feb 04 17:38:33 because your count = 0 Feb 04 17:40:49 I don't understand this: . Unit testing seems to work apart from the tests not failing (tests do run). Feb 04 17:55:40 for Retrofit error handling, I am wanting to print out "pretty" messages for the user. Right now I am thinking I will set a custom ErrorHandler that throws custom RetrofitErrors with a well-formatted message (so in the error callback I have access to the "pretty" message via getMessage()). Does this seem like the right way to go about it? Feb 04 17:56:08 i do that in some cases Feb 04 17:56:54 also to create typed exceptions and handle them in different catch blocks Feb 04 17:57:58 JacobTabak: Mostly I wanted to avoid duplicating the if else code everywhere I call Retrofit Feb 04 18:19:54 hi Feb 04 18:20:02 anyone using android studio Feb 04 18:20:12 nobody Feb 04 18:20:37 whats the question Feb 04 18:20:56 how do i compile ndk samples in android studio Feb 04 18:21:17 if you could tell me thats good Feb 04 18:21:52 did you try googleing it? Feb 04 18:23:11 I'm not sure, but I think you have to compile the separately Feb 04 18:23:22 and then just include the compiled libraries in the gradle build Feb 04 18:23:32 ok thanks Feb 04 18:23:54 you can also make android studio compile the source files Feb 04 18:24:00 http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/ Feb 04 18:24:54 drawing NOTHING: emulator but with HAXM (poor FPS, missing vsync) http://i.imgur.com/nzx0Yxq.png versus real device http://i.imgur.com/ncsiUOO.png (60FPS) Feb 04 18:25:11 huh, cool. TIL :) Feb 04 18:25:33 no clue what is happening but it is lol Feb 04 18:25:33 linuxuz3r, AS does not support NDK yet Feb 04 18:25:46 for my projects i have a bash script that calls ndk-build Feb 04 18:25:59 adq, use genymotion ^^ Feb 04 18:26:02 I440r: take a look at danijoo's link ;) Feb 04 18:26:09 i do danijoo but they don't support android wear Feb 04 18:26:14 (cause no AOSP for that thing) Feb 04 18:26:18 oooohhhhhh Feb 04 18:26:20 (and not only) Feb 04 18:26:44 ah okay. Feb 04 18:26:54 my NDK stuff is not C/C++, its 100% pure assembler :P Feb 04 18:27:03 i've got the indie license danijoo, worth the price Feb 04 18:27:16 same here Feb 04 18:27:19 :) Feb 04 18:27:35 worth every cent Feb 04 18:27:45 help me to lose less time :) Feb 04 18:27:50 it helps* Feb 04 18:27:56 Android Studio != Gradle Feb 04 18:28:03 It's gradle that compiles NDK files -_- Feb 04 18:28:07 AS just invokes it. Feb 04 18:28:13 i'm not really using all the other features like sensor injections, or disturbing network packets Feb 04 18:32:49 OK, so I'm loading a Bitmap into a Target with Picasso, and that's working well. my problem now is that the first few cells in my grid aren't being populated in time, and only show up once I scroll. what can I do to make sure the bitmaps are loaded before the grid is shown? Feb 04 18:33:37 you mean you want to pre-cache the images so tehy show up immediately when the user scrolls down? Feb 04 18:34:26 .fetch() Feb 04 18:35:06 well, I'm storing them in a POJO, so I can reference them later, rather than making lots of calls to picasso Feb 04 18:35:24 you're storing bitmaps in a pojo? Feb 04 18:35:27 don't do that! Feb 04 18:35:29 but the first time my GridView is shown, the first 3-4 items don't have bitmaps you Feb 04 18:35:32 yet* Feb 04 18:35:34 why not? lol Feb 04 18:35:37 memory Feb 04 18:35:43 picasso has an LRU cache Feb 04 18:35:49 in-memory Feb 04 18:35:58 it's smart about how much memory it uses Feb 04 18:36:30 just use picasso every time you want to load an image, it handles caching for you - it handles disk caching as well assuming you're using okhttp Feb 04 18:36:52 basically the LRU cache maps urls to bitmaps and evicts bitmaps that haven't been used in a while Feb 04 18:39:54 that's what I thought... so how long does it hang onto them? Feb 04 18:40:30 until you need memory for new bitmaps Feb 04 18:40:41 or the app is terminated Feb 04 18:41:14 or android clears your disk cache Feb 04 18:41:24 well i was talking about the LRU Feb 04 18:41:31 oh ok Feb 04 18:41:50 you can clear your cache directory and the LRU cache is still in tact Feb 04 18:57:11 why would a handler.sendmessage() suddenly throwing an error? what would cause a sendmessage to throw? Feb 04 18:57:33 what kind of error Feb 04 18:57:36 I440r: what's the error? there are a few possibilities. Feb 04 18:57:54 says null object ref Feb 04 18:58:11 maybe handler is null :? Feb 04 18:58:32 erm no i have a looper handler thats been working Feb 04 18:58:47 null object ref where? Feb 04 18:58:52 yea thats what i dont know Feb 04 18:59:11 null can be everywhere Feb 04 18:59:27 just says invoke virtual methos 'boolean blah.blah.sendMssage(blah) on null object ref Feb 04 18:59:41 does not tell me WHAT object Feb 04 18:59:44 yes it does Feb 04 18:59:50 blah.blah is null Feb 04 18:59:57 hence why it cannot invoke a virtual method call on it Feb 04 19:00:22 is message null Feb 04 19:00:25 no Feb 04 19:00:27 virtual method 'boolean com.connect2.me.ble.BleHandler.sendMessage(android.os.Message)' on a null object reference Feb 04 19:00:42 BleHandler is null on that line Feb 04 19:01:01 the message is not null, no idea why, i have a bleHandler class Feb 04 19:01:06 which is null Feb 04 19:01:09 that my looper references Feb 04 19:01:15 which is null Feb 04 19:01:15 how is my class null? Feb 04 19:01:19 lol Feb 04 19:01:33 Because you didn't create an instance Feb 04 19:01:44 this code was WORKING. the only code i changed ws the code that constructs the message Feb 04 19:02:12 erm. if i didnt then the instance create got deleted... /me looks Feb 04 19:02:35 blargh Feb 04 19:02:46 ty :P Feb 04 19:03:07 Exceptions are usually right.. Feb 04 19:03:08 there should be a facepalm emoji for situations like this Feb 04 19:03:41 erm no. Feb 04 19:03:46 bleHandler is not null Feb 04 19:03:59 <_genuser_> what's the best way have a background with a border for an ImageView. Feb 04 19:04:22 _genuser_: use a nine patch drawable Feb 04 19:04:26 workerThread - new Worker(); workerThread.start(); Feb 04 19:04:30 <_genuser_> so far I have a drawable style with Feb 04 19:04:53 where my worker class run() loops on BleHandler() Feb 04 19:05:00 I440r: You are wrong, the exception is right. Spend your time finding out what you did wrong, rather than try to argue with the runtime. Feb 04 19:05:03 BleHandler is not null Feb 04 19:05:06 <_genuser_> JakeWharton: ok, I guess I'll google 9patch, finally. :) I was hoping my layer-list wasn't too crappy of a design. Feb 04 19:05:54 a shape with border should work as well Feb 04 19:05:58 SimonVT, this code did not change. i create an instance of my Worker class and that has a run() with a Looper.prepare() and Looper.loop() around a mHandler = new BleHandler() Feb 04 19:06:39 <_genuser_> JakeWharton: I tried that. since a shape doesn't let me set border, I just put two of them in a layer-list. Feb 04 19:06:48 I440r: Show code Feb 04 19:07:04 <_genuser_> JakeWharton: it works fine for the UI, I was just curious if it's bad design or if it will be slower with 100+ images. Feb 04 19:07:20 SimonVT i cant, its not mine but this was working previously, the only code i changed was the part that constructs the message contents Feb 04 19:07:30 i mean. i wrote it, i dont own it Feb 04 19:08:00 Either way, the field is null at the time when you try to call sendMessage Feb 04 19:08:11 Maybe you're not waiting until the Handler is instantiated to call the method Feb 04 19:08:12 Who knows Feb 04 19:08:20 The fact is that the field is null Feb 04 19:09:46 <_genuser_> hmm so 9patch isn't some scary framework. it's just a freakin' png file. Feb 04 19:10:11 <_genuser_> well a resiable bitmap loaded by NinePatchDrawable object.... Feb 04 19:11:29 JacobTabak, the reason I was storing the Bitmap was so that animations would work on the pertinent ImageViews. if the images haven't been loaded yet, animations won't show the first time Feb 04 19:12:16 Question: Where can I find the Gradle compile command for a certain dependency? For example, GSON. I was able to find it via Google (on a Stack Overflow comment), but I couldn't find it on their actual google code website. Is there some central repository I'm missing? Or what? https://code.google.com/p/google-gson/ Feb 04 19:12:58 search.maven.org Feb 04 19:13:18 every dependency has three things: a groupId, a artifactId, and a version Feb 04 19:13:37 those become "compile 'groupId:artifactId:version'" in your build file Feb 04 19:14:20 http://gradleplease.appspot.com/ Feb 04 19:14:26 JakeWharton, how does Picasso's fetch() work? Feb 04 19:14:48 too vague of a question Feb 04 19:15:08 saving that link lol Feb 04 19:15:10 umm Feb 04 19:15:43 what is fetch() used for over the typical into() or get()? Feb 04 19:16:19 did you read its javadoc? Feb 04 19:17:17 yes Feb 04 19:18:04 that means in order to have an image loaded into the cache before into() is called? Feb 04 19:18:28 Possibly, yes Feb 04 19:18:46 Just because you called fetch doesn't guarantee anything Feb 04 19:20:49 am I having a false memory?: I thought I remembered back in the day that the AccountManager saves the credentials and if you restore your phone or get a new one, it would resync those credentials, however, I see no documentation on this Feb 04 19:21:59 search for backupagent, herriojr Feb 04 19:22:43 I'm using limewire, how do I auto join android-dev AFTER my nick gets auto authenticated? Feb 04 19:22:53 aff Feb 04 19:22:55 and now to debug Feb 04 19:23:06 "Push successfully delivered", everything going fine and nothing breaking in the code Feb 04 19:23:09 but no push notification appears on my device Feb 04 19:23:13 adq: no, I mean, I thought it was automatic Feb 04 19:23:27 anyone have any clue what could be messing about? i guess there's nothing wrong in the code whtasoever if the request to GCM works? Feb 04 19:24:07 is the api key supposed to be formated like this?: xxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx Feb 04 19:24:09 Bantalon: did you follow all the steps for messaging? Feb 04 19:24:24 herriojr: yeah, I've followed a guide to set it up and have set everythign up step by step Feb 04 19:24:31 I'm using this script for the push: Feb 04 19:24:40 https://gist.github.com/prime31/5675017 Feb 04 19:26:37 I'm using limewire, how do I auto join android-dev AFTER my nick gets auto authenticated? Feb 04 19:26:40 Bantalon: so, the saying it accepted it doesn't guarantee that the message has been received — did you make sure to properly register your BroadcastReceiver for it? Feb 04 19:27:04 herriojr: which one's the BroadcastReceiver? Feb 04 19:27:19 I've properly registered my device for push with my app, and I've gotten the device push id Feb 04 19:27:24 which is liek 200+ characters long, if that's the one? Feb 04 19:27:36 and I have my API key which is about 40 characters long formated as I wrote earlier Feb 04 19:27:49 and when I use the script nothign happens thouhg, says the request was successful but no message appears on my device Feb 04 19:28:07 Bantalon: just a sec, I have to go over this again really quick as I haven't done it in a while — are you using Send-to-sync or Message with payload? Feb 04 19:28:11 https://developer.android.com/google/gcm/adv.html#payload Feb 04 19:28:23 yeah payload method Feb 04 19:29:30 i think everything is setup on the app-side as well, because I get the device's registration id Feb 04 19:29:43 then it should be proeprly setup if i get the id, no? Feb 04 19:30:14 oh maybe i need to do something to adjust it for test mode or something? Feb 04 19:30:18 because my app isn't currently live Feb 04 19:30:18 Bantalon: https://developer.android.com/google/gcm/client.html Feb 04 19:30:53 herriojr: neat, thanks! Feb 04 19:31:00 i'll follow this step by step and see if i perhaps missed something along the way Feb 04 19:34:32 Have you guys been using material design? Any idea how to add the little floating action buttons like the one with the plus sign while using appcompat? Feb 04 19:35:40 <_genuser_> hmm, seems like there isn't an easy way to get column width from a GridView that will work on all api levels. Feb 04 19:37:06 pfn: I found that my issue with RecyclerView for a radially circular list was my anchor calculation was off and was shown to be a problem when the smooth scroller I had created was attached Feb 04 19:37:16 <_genuser_> JakeWharton: regarding DiskLruCache, can I control where the cache it build and how big it can get, etc? I'm almost done with my gallery view. will target caching next. this is too slow without it. Feb 04 19:37:36 you specify the directory and maximum size Feb 04 19:37:40 KaylieG, there's a couple different ones here Feb 04 19:37:42 https://github.com/wasabeef/awesome-android-ui/blob/master/pages/Material.md Feb 04 19:38:08 KaylieG: afaik you have to do it by hand for older versions, especially for the circle shadow. there are a bunch of FAB ports out there though, e.g. https://github.com/makovkastar/FloatingActionButton Feb 04 19:38:09 pfn: my only issue with RecyclerView atm is that you only get dx or dy and not the starting point Feb 04 19:38:29 or rather, I should say LayoutManager instead of RecyclerView Feb 04 19:39:18 cool, I'll look into those Feb 04 19:39:21 indeed Feb 04 19:39:32 herriojr, got a video of how it's looking and what you're intending? Feb 04 19:39:35 how about something like the top half of this? https://lh4.ggpht.com/fR7KyLKTIac9-iQSSLyywKudT45AnmFGoyFH_ReszIRa7Y7E7XDacwmtfRRA44Bnhck=h900-rw Feb 04 19:39:37 What service do you guys use for push notifications ? Feb 04 19:39:50 Is that a Toolbar replacing the action bar? Feb 04 19:40:24 KaylieG, most likely Feb 04 19:40:28 what app is that? Feb 04 19:40:36 pfn: sure, I can provide it — it's really just a list of items rotating around the z axis Feb 04 19:40:59 Remote Control Collection Feb 04 19:41:15 <_genuser_> JakeWharton: perfect, thanks. I'll read up more into how to incorporate into my project. Feb 04 19:42:07 lfrdw: I used mqtt Feb 04 19:43:39 Tapani: ty sir I'll look into it :) Feb 04 19:47:49 Anyone here have experience creating a List of Objects with GSON from a JSON array? Feb 04 19:49:04 Sure Feb 04 19:50:06 Can I show you a pastebin with some data that'll help clarify what I'm asking? Feb 04 19:50:37 No, but there should be plenty of examples online Feb 04 19:50:49 Ok Feb 04 19:51:01 Well I'm just getting this error and confused about it (even after some searching) BEGIN_ARRAY at line 1 column 2 path $ Feb 04 19:51:11 Err, Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ Feb 04 19:51:30 You're trying to deserialize it into an object, but it's an array Feb 04 19:52:20 You're trying to do something like MyObject pojo = gson.fromJson(blah), when you should be doing List list = gson.fromJson(blah) Feb 04 19:52:38 anyone been using fragment/activity/content transitions yet? Feb 04 19:52:59 SimonVT: What I'm doing is List result = (List)gson.fromJson(testJson, RideInfo.class); Feb 04 19:53:35 pfn: https://www.dropbox.com/s/3x9y06264gt91rd/movie.mp4?dl=0 Feb 04 19:53:40 See how you're passing RideInfo.class, that's you telling gson that it's an object Feb 04 19:53:44 Hey guys, for some reason in my new project the icon bar doesn't shows up and I would like it to show up anyone knows what I could be doing wrong? Feb 04 19:53:53 pfn: ignore some of the sluggishness, I need to optimize some of it Feb 04 19:53:59 You'd pass something like new TypeToken> Feb 04 19:54:24 Google how to deserialize a List with gson, should be examples Feb 04 19:54:45 pfn: basically, I'd like the coord of the start of the movement, so I can calculate how it would rotate if it were started on that particular location in relation to the center of the circle Feb 04 19:55:48 pfn: which I could rig up if I were to extend the RecyclerView itself, but I didn't really want to do that Feb 04 19:56:19 pfn: also, ignore the self deprecating humor :P Feb 04 19:58:04 in picasso, when using picasso.with(this).load(“www.website.com/somefile.png”) , and it has been loaded before, and caching is enabled, it will load that file right? Feb 04 19:58:15 yes Feb 04 19:58:35 what if the contents of somefile.png are changed on the server but the name remains the same. Will it redownload the new contents? or use the same old ones and assume that they are correct? Feb 04 19:59:32 that's not an easy answer Feb 04 19:59:46 if it's cached in memory it will always be used and never checked Feb 04 19:59:53 SimonVT: Thanks for the help, I got it working now! Feb 04 20:00:08 really that's as far as picasso goes, it will always ask the HTTP client for it if it's not in memory Feb 04 20:00:17 what your HTTP client does with regard to caching is not Picasso's problem Feb 04 20:00:26 <_Auron_> JakeWharton: I'm trying to use your ViewPageIndicator library but even with the source I have no idea how it's supposed to work Feb 04 20:00:37 <_Auron_> source of the samples app* Feb 04 20:01:33 So, I have an app that clients can customize on their admin portal and one of the things they can change is the theme primary color. Problem is that I can fetch that on runtime only, so I can't create a theme using XML Feb 04 20:01:45 JakeWharton hmm so the only way to ensure that a changing contents scenario can be addressed properly is to redownload the file each time? And disable caching? Feb 04 20:01:48 rather I need to find a way to override that theme primary color un runtime after I get it from an API.. Feb 04 20:01:51 any suggestions? Feb 04 20:02:36 in_deep_thought: yes, but that's a bad idea Feb 04 20:03:14 in_deep_thought: I don't know about picasso, but for large files you usually want to check for modification time Feb 04 20:03:30 in_deep_thought: it's usually a head request Feb 04 20:03:36 JakeWharton: So what would you suggest? if I want to use the new file contents if they have been changed? Feb 04 20:03:44 in_deep_thought, you can set the cache-time on the files on your server to 0 Feb 04 20:03:49 herriojr: etags are much better approach as they don't require two round trips Feb 04 20:03:52 Is there any trick to clipping a view that has a surface view as a child? Is that possible? Feb 04 20:03:58 and then dont cache it in picasso Feb 04 20:04:06 hey guys im trying to change the toolbar popup menu text color Feb 04 20:04:11 i would suggest changing the filename Feb 04 20:04:14 It keeps getting set to what I have the regular toolbar color as Feb 04 20:04:23 and setting the cache lifetime of the files to Integer.MAX_VALUE Feb 04 20:04:37 Is there an item in the toolbar theme I can add? Feb 04 20:05:15 i've tried wrapping the surfaceview in a frame and then doing `Path p = new Path(); p.addCircle(200, 200, 100, CW); canvas.clipPath(p)` .. this works for normal view elements but doesn't when there is a surface view child Feb 04 20:05:21 i just the the entire surface view (square) Feb 04 20:05:27 drose379, I think its popupTheme in style xml Feb 04 20:05:41 It says its only available for a crtain APi Feb 04 20:06:06 where popupTheme is something that has ThemeOverlay.AppCompat as parent and where you change android:colorBackground to a new color Feb 04 20:06:11 JakeWharton: why is it such a bad idea to redownload every time? Is it just because it takes a while? Feb 04 20:06:15 drose379, i didnt say android:popupTheme :) Feb 04 20:06:21 only popupTheme Feb 04 20:06:38 in_deep_thought: waste of time, battery, data, CPU, memory Feb 04 20:06:47 so I put popupTheme in the toolbar theme? Feb 04 20:06:48 and bandwidth :p Feb 04 20:06:49 if i scroll down and scroll up I have to re-download the entire image? Feb 04 20:07:00 drose379, yes Feb 04 20:07:11 or just in the whole apptheme Feb 04 20:07:25 there is no scrolling, and its only 1 image on the entire page Feb 04 20:07:31 Then what do I put inside the item Feb 04 20:07:41 drose379, i already told you Feb 04 20:07:41 A style? Feb 04 20:07:55 android-dev112: nope, not possible. try a TextureView though Feb 04 20:08:21 surfaceview will just take over whatever area it needs ? Feb 04 20:08:29 Ok then in themeOverlay.Toolbar Feb 04 20:08:36 I put item name="background" Feb 04 20:08:37 then the color? Feb 04 20:09:04 drose379, http://pastebin.com/8yvkf2gj Feb 04 20:09:08 quick question, is it possible to override a value from R.color in runtime? I can only fetch that value from a API endpoint, and then apply it to the app Feb 04 20:09:11 android-dev112: generally, yes. it's not a normal view - it's designed to be fast to draw to, and to keep it fast (for games / etc) it ignores most view "rules" Feb 04 20:09:13 I'm fairly new to gradle — If I have my own library project (which should make an aar), can I set the dependency to somehow come from git instead of a maven repo, or do I need to set up a maven repo? Feb 04 20:09:23 override programatically* Feb 04 20:09:24 Thanks danijoo Feb 04 20:09:27 JakeWharton: can I use etags, to have a certain file on my server, that somehow disables all cache-ability. so that anyone trying to use it has to download it? And then for all other files, it works as normal? Feb 04 20:09:49 android-dev112: textureview is essentially a kind of surfaceview that acts like a normal view. its slightly slower, and iirc it buffers a bit, but it behaves normally Feb 04 20:09:53 in_deep_thought, why is your file changing that often? Feb 04 20:09:58 you can use Cache-Control: no-cache if you hate your users Feb 04 20:10:04 er, no-store Feb 04 20:10:12 Okay i'll see what I can do there, thanks! Feb 04 20:10:12 danijoo whats the difference between android:popupTheme and just popupTheme Feb 04 20:10:24 JakeWharton: is that something that I can have for 1 file in particular? but not all of the other files? Feb 04 20:10:30 sure Feb 04 20:10:32 drose379, one is for api level 21 and one is for appcompat Feb 04 20:10:52 Ok cool Feb 04 20:11:01 danijoo: it changes for certain holidays. like christmas, easeter, valentines day, etc Feb 04 20:11:12 uyf.... is there something that one has to perhaps do before being able to receive push notifications on an android device? Feb 04 20:11:17 perhaps turn some Alerts settings on or something? Feb 04 20:11:21 in_deep_thought, then let it cache until the time where it should change Feb 04 20:11:25 danijoo is there documentation where I can find this kind of info? Feb 04 20:11:37 android-dev112: another option, if it will work for you, is to overlay something on the surface view. e.g. if it's over a white background, cover the surface with a white square with a hole in it. it won't really handle things changing behind it, but sometimes that's all you need Feb 04 20:11:50 if its 5 days before easter, set cache time to the date of eastern Feb 04 20:11:54 danijoo: the time when it will change is not regular. I can’t predict how long it will be Feb 04 20:12:11 the time of christmas is pretty predictable :p Feb 04 20:12:43 ok.. I'm going to try this one last time.. hope I don't get ignored one more time :p Feb 04 20:12:46 quick question, is it possible to override a value from R.color in runtime? I can only fetch that value from a API endpoint, and then apply it to the app Feb 04 20:13:06 and if not, theres still no nead to load it EVERY TIME. set the cache time to something low then. a day, 12 hours, whatever Feb 04 20:13:30 fmontano, not that i know Feb 04 20:13:50 set the color from something else, not R.? if you want to change it at runtime Feb 04 20:13:59 danijoo: so is this cache-time something that I set for the files on the server? or through the app? Cache-control I assume? Feb 04 20:14:09 Thanks again danijoo Feb 04 20:14:39 fmontano: you can ignore the R.color value and give a normal Color to whatever's going to use it. afaik R values are immutable though. or there are some more complex ways to change how values are loaded, but you _very likely_ don't want to go that route, it's a lot of work when you could just say "if (ignore) { return Color.rgb(etc); } else { return Feb 04 20:14:39 getColor(R.color.whatev); }" Feb 04 20:14:40 danijoo: how can I do that? can I set it from a constant or something? Feb 04 20:14:44 in_deep_thought, you set it to the server. the server sends it to the app when the app fetches the image. And that makes the app know "aha, I have to keep this for X amount of time". Feb 04 20:15:07 fmontano, setColor(ColorAttribute) :p Feb 04 20:15:24 Is there any way to test if push notifications work on your device? Feb 04 20:15:26 so is it for the server itself? or for the images themselves? like I would set it indepenedently for different images? Feb 04 20:15:29 or setBackgroundColor(ColorDrawable). whatever you want Feb 04 20:15:32 danijoo: but I'll have to do that to every single button, tab, toolbar, etc Feb 04 20:15:54 in_deep_thought, you can set if individually for every file on your server. Feb 04 20:16:02 ok perfect Feb 04 20:16:15 how to do that depends on your server program Feb 04 20:16:39 danijoo: if I were to try and google this, would cache-control be the plavce to start? Feb 04 20:16:42 whereas using the color in the style applies a color automatically to every UI compoment Feb 04 20:16:43 fmontano, thats where class inheritance comes in ;) Feb 04 20:17:10 groxx: that's a good idea, should work for my use case .. thanks again! Feb 04 20:17:15 danijoo: I feared that was the only way to get it done.. Feb 04 20:17:34 in_deep_thought, thats a good place to start: http://www.mobify.com/blog/beginners-guide-to-http-cache-headers/ Feb 04 20:17:46 thanks Feb 04 20:18:51 android-dev112: great :) fwiw I'd recommend testing on all versions you support (if possible), there are a fair number of weird cases with surfaceviews if you're not filling the entire screen / a rectangle _exactly_ matching the content being displayed. Feb 04 20:19:16 or maybe not "weird cases" so much as "things you aren't yet doing correctly, and aren't a problem on Android version X" Feb 04 20:20:52 haha gotcha, thanks again Feb 04 20:22:34 Hi guys, I have a silly request from someone to make a "coloring book" Feb 04 20:22:59 before I go about this the wrong way, I figured I'd pop in here to see if anyone has any warnign or suggestions. Feb 04 20:23:10 its a trap Feb 04 20:23:18 if I can avoid it, i'd like NOT to have to create an entire game engine Feb 04 20:23:27 perhaps there's something out there I can use. Feb 04 20:23:35 danijoo, I know Feb 04 20:23:37 is android studio able to compile ndk samples Feb 04 20:23:59 linuxuz3r_, didnt I give you link on how to configure this some hrs ago? :p Feb 04 20:24:34 i got disconnected Feb 04 20:24:46 you answered to it... ^^' Feb 04 20:24:53 herriojr, indeed, neat Feb 04 20:25:24 can you give the link again Feb 04 20:25:33 my history isnt working Feb 04 20:25:39 no. but it was on the first site of google "android studio ndk" Feb 04 20:25:50 ;) Feb 04 20:27:03 yes thanks danijoo Feb 04 20:27:22 np. I love googling for you Feb 04 20:27:49 linuxuz3r_, android studio doesn't build ndk Feb 04 20:28:00 gradle does i think Feb 04 20:29:01 so you can do it by clicking the run button in AS. thats what most people mean when asking "can android studio... " Feb 04 20:29:39 pfn: thanks Feb 04 20:38:31 Noh my god Feb 04 20:38:35 does it cost to use android GCM? Feb 04 20:39:00 in the dev console I see under API > GCM For Android > Quota I see it says "Billing status" Feb 04 20:39:08 does google actually charge for messages sent or is this something else? Feb 04 20:42:12 <_Auron_> Not sure where you're seeing that billing status section, but no GCM is free Feb 04 20:42:19 http://stackoverflow.com/questions/11262808/is-google-cloud-messaging-gcm-free-to-use Feb 04 20:45:37 <_genuser_> darn UI hider and toolbar hiders. so kludgy Feb 04 21:08:03 I440r how is the BLE coming? i made some refinements to my client Feb 04 21:08:52 <_Auron_> Is there a good way to prevent a fragment's view in a viewpager from 'jumping', i.e. making it smooth or perhaps even not animated, just instant, when I show/hide the actionbar while switching fragments in the viewpager? Feb 04 21:12:54 _Auron_: hm. maybe not simply... actionbar isn't very controllable. but, at worst it seems you could: hide actionbar and "scroll" the fragment's contents to where they would be after the resize. then animate the scroll position to zero when it appears. Feb 04 21:13:21 <_Auron_> hmm Feb 04 21:13:49 if you can avoid it, I wouldn't recommend trying to animate the fragment's height - it's likely to cause a lot of layouts, so stuttery animation Feb 04 21:14:09 <_Auron_> it would be OK for the most part as it is now, except I just added JakeWharton's ViewPagerIndicator for circle indicators, and it's very ugly Feb 04 21:14:12 if you're in control you can suppress layout and measure passes during the animation Feb 04 21:14:20 that's how transition manager works Feb 04 21:14:32 <_Auron_> not the indicators but the animation from the actionbar being shown/hidden Feb 04 21:14:40 it allows the destination position to be measured and laid out and then it animates the changes while suppressing any additional calls Feb 04 21:15:00 <_Auron_> hm Feb 04 21:16:55 <_Auron_> I'll need to research that then Feb 04 21:19:29 is it possible to divide the screen landscape mode into 2 parts then let the second half part display the mirror of the first half part? Feb 04 21:19:43 im making a vr app Feb 04 21:19:49 i dont know where to start Feb 04 21:21:46 wow, android 5.1 ia laready shipping on phones in indonesia ? Feb 04 21:22:17 Figured I'd ask here too. Is there an IRC channel dedicated to chromecast development? Feb 04 21:27:03 <_Auron_> JakeWharton: LayoutTransition is what I'm looking for, right? Feb 04 21:28:54 guys can someone help Feb 04 21:29:42 linuxuz3r_, define "mirror" Feb 04 21:29:51 goos the ble code is not complete yet, its basically a good starting point. right now im parsing the ble commands as defined in XML but ive never parsed xml before lol Feb 04 21:30:11 a copy of the activity Feb 04 21:30:18 and for some reason my listview never has anything to show, those are the only 2 things i need to worry about atm Feb 04 21:30:28 a copy of what you see in the first half Feb 04 21:30:35 I440r what metadata are you putting in the xml ? Feb 04 21:30:48 MikeWallaceDev: is that possible in android sdk ndk? Feb 04 21:31:06 well Feb 04 21:31:09 oh, NDK, sorry, didn't use it. Feb 04 21:31:15 basically the serives UUID and the operation to be performed on that UUID such as read/write descriptor/whatever Feb 04 21:31:52 my first thought was to take "screenshot" of view and then fill it mirrored with second half Feb 04 21:31:59 I440r i'm intrigued, but still don't understand what metadata that provides over and above what service discovery does :| Feb 04 21:32:10 brb Feb 04 21:32:11 linuxuz3r_, in the SDK, my first thought, though not necessarily correct, would be to "screenshot" the first part, and display the image in the second part. Feb 04 21:32:24 linuxuz3r_: some hints https://stackoverflow.com/questions/12398283/android-mirroring-a-view Feb 04 21:32:32 linuxuz3r_, using the control image cache Feb 04 21:32:54 g00s well im not telling you everything lol Feb 04 21:33:37 im getting something weird happen during this debug. im single stepping my code and as i single step i see ".... has stopped" pop up on the screen Feb 04 21:33:44 but... i can still continue to single step the code Feb 04 21:34:22 doesn't sound unusual to me; when you freeze it to single step it stops processing events from the OS and gets flagged as being locked up Feb 04 21:34:40 Ashiren: is that cpu intensive i like the idea Feb 04 21:35:00 no, the app on the phone has DIED. the app in the debugger has not Feb 04 21:35:03 that IS weird Feb 04 21:35:19 I doubt it's actually dead on the phone Feb 04 21:35:21 ok brb Feb 04 21:35:27 the window closed Feb 04 21:35:31 or it's copied its core to the laptop and is independently stepping through it Feb 04 21:35:56 so? doesn't mean it's dead, just means the UI crashed out. it almost certainly is still resident Feb 04 21:37:33 k Feb 04 21:37:37 Hey dudes. Feb 04 21:37:40 good evening Feb 04 21:37:44 maybe its my fubar listView thats doing it Feb 04 21:37:59 Using espresso, how do I test that the activity changed to a specific activity after an event (such as a .perform(click())) ? Feb 04 21:39:05 <_Auron_> hmm nevermind, I managed to find a way to disable the actionbar animation and that fixed what I needed to do Feb 04 21:40:10 explodes: https://code.google.com/p/android-test-kit/source/browse/testapp_test/src/main/java/com/google/android/apps/common/testing/ui/testapp/BasicTest.java#52 read the comments Feb 04 21:40:50 if I have cache-control:no-cache on the file itself that picasso is fetching from a url, That means that even if caching is enabled on picasso, it will redownload it right? Feb 04 21:41:11 in other words, there is nothing app-side that I would have to do to ensure that its not cached? it would all be server side adjustments Feb 04 21:41:12 picasso does not honor headers Feb 04 21:41:20 only the HTTP client does Feb 04 21:41:32 oh what http client does picasso use? Feb 04 21:41:36 okHTTP? Feb 04 21:41:40 if it's available Feb 04 21:43:05 ok. so in my code, I have to tell the http client to check the header and then if cache control is no cache than it passes something to picasso? Feb 04 21:43:20 picasso does not honor any caching semantics Feb 04 21:43:28 it uses an LRU cache in memory Feb 04 21:43:52 it will only reload when it gets pushed out of the cache or the process dies Feb 04 21:43:53 I440r lol ok, are we competing? i didn't know that :) Feb 04 21:44:07 lol Feb 04 21:44:12 you're on your own now :) Feb 04 21:44:22 Maybe I should start here Feb 04 21:44:30 no lol, i just CANT tell you everthing, this part is "top secret" Feb 04 21:44:37 shhhhh you never saw me! Feb 04 21:45:16 g00s your code is far superior to mine, i suck at OOP/Java Feb 04 21:46:04 in mac what's the keyboard shortcut for showing autocompletes? Feb 04 21:46:16 also where can i change the shortcut to show javadoc? Feb 04 21:46:35 cmd+space, keymap preferences, respectively Feb 04 21:47:25 btw,my emulator not working was because of an Xorg bug Feb 04 21:47:39 glx is not loaded if you have a "files" section in your xorg.conf Feb 04 21:48:09 I440r anyhow, here is a slightly more rx-ified version thats been working well http://pastebin.com/uUaBzKWM Feb 04 21:48:41 each operation is now an rx observable which is internally serialized by the reentrantLock Feb 04 21:48:44 What does your gradle look like with powermockito and espresso? Feb 04 21:48:51 I need some help here, I'm lost as all hell Feb 04 21:49:00 I'm trying to get mediaPlayer to stream home movies from my basic auth'd self signed ssl cert site. I already work around this problem when I need a URLConnection by creating my own trust manager. How do I do this with MediaPlayer>? Feb 04 21:49:04 I'm getting duplicate symbols, cannot find symbols... Feb 04 21:49:36 g00s what license is on that code btw? Feb 04 21:49:48 do whatever license Feb 04 21:49:59 maybe i quit and get my boss to hire you lol Feb 04 21:50:02 if you find a bug, let me know :D Feb 04 21:50:23 g00s: So, essentially Public Domain/CC-0? Feb 04 21:50:29 yeah Feb 04 21:50:38 whatever that is, ok :) Feb 04 21:51:16 JakeWharton: what do your dependencies look like to include espresso and possibly powermockito? I'm getting "duplicate jars" "duplicate classes" "cannot find symbol" depending on what I include and `exclude` Feb 04 21:51:25 to make it work, you'll need android's internal StateMachine class. That pops up a lot inernally within android, you have it in your aosp sources Feb 04 21:51:27 i don't use powermock Feb 04 21:51:42 Ok; Feb 04 21:52:05 I'll defer the use of powermock if I can, I should be able to now that I'm using a mock network connection with retrofit Feb 04 21:52:14 (as you have done with apiEndpoint in u2020) Feb 04 21:52:14 JakeWharton: thanks Feb 04 21:53:28 i have a splash screen defined via styles and added it to manifest as theme like in the second answer here: http://stackoverflow.com/questions/5486789/how-do-i-make-a-splash-screen-in-android . Feb 04 21:53:28 Can anyone tell me how to set it back to the default theme (like holo etc) so that it wont be in the background in preferences for example? Feb 04 21:54:22 JakeWharton: it is probably best to make the restclient a singleton or part of a singleton? Feb 04 21:54:35 yesu Feb 04 21:55:06 Can someone help me find an issue with this code here to push an android push notification? I don't know f there is something wrong with my code or if there's perhaps someting wrong with my setup Feb 04 21:55:21 But the code seems to run fine and returns a good result, but I never receive the notification on my device http://codepad.org/rI4F3Ffv Feb 04 21:55:51 the API Access key is the one I've gotten from the developer console under Api & Auth > Credentials Feb 04 21:56:02 I've set the allowed IPs to the IP of my server Feb 04 21:56:23 and the pushtokenv ariable is the push registration id of the device I'm tryign to push the notification to Feb 04 21:59:46 Bantalon: did you not look at the second link I gave? If it says it sent, but you're not receiving it, we need to see your Android code Feb 04 22:00:03 herriojr: i did - i couldn't find anything strange though Feb 04 22:00:17 i'm unfortunately not writing the app in native java either though, i'm using a third party sdk to develop my app Feb 04 22:00:21 and they've got their own coe Feb 04 22:00:23 code* Feb 04 22:00:33 this is the permissions i have setup in their files though: Feb 04 22:00:41 g00s so the app im debugging first connects to a company cloud server. the method for logging in to that server is constantly changing due to development. they dont have TWO instances of that server, one live that i can debug my code against and one they can modify at will Feb 04 22:01:04 Bantalon: then you really need to go to their support site Feb 04 22:01:20 so every time THEY make a change im dead in the water till they give me the change to the code that allows the app to log in to their cloud Feb 04 22:01:28 herriojr: aye i guess that would be best Feb 04 22:01:36 aff so annoying Feb 04 22:01:40 was hoping I was missing something on the google setup end of things Feb 04 22:01:48 freeking 2 minutes of work. 3/4 of an hour waiting to be able to continue... and thats only while i have the phone in my posession Feb 04 22:01:57 So I am needing to use a Context in my adapter. I read that it would be a good idea to initialize the Context as a field variable and set it in my constructor. How would I want to get the context from my constructor, if the only thing being passed in is a list? Feb 04 22:02:02 i've copied their sample projects identically and apparently theirs work but mine doesn't Feb 04 22:02:27 again, this channel is primarily for native development Feb 04 22:03:23 I440r did they at least get you a phone to work on ? Feb 04 22:03:31 not yet. Feb 04 22:03:43 im still borrowing someones phone and he still needs it back every so often Feb 04 22:03:59 i'd just use version control branching to switch back and forth between things you can work on and can't, assuming they are isoleted from each other Feb 04 22:04:01 MAYBE ill get a phone of my own tomorrow Feb 04 22:04:19 i hear the moto g2 is pretty good Feb 04 22:04:39 moto G, 2nd iteration or whatever Feb 04 22:05:03 or if you want to spend more money, probably a nexus 5 ;) over my budget though Feb 04 22:05:18 g00s they were at some hackathon in vegas last month, came in 9th out of something like 200 teams. one of them brought back an android phone... if THAT phone has ble im set Feb 04 22:05:21 For the retrofit interface definition, if I have an API whereby I make different GET calls (use different interface methods of that class) for different activities, is it better to split each into its own interface, or just put them all in the same interface? Feb 04 22:05:32 if not... im till screwed. the guy that has it has been in india for the past 3 weeks Feb 04 22:05:35 I440r but if your ble stuff needs to work on a bunch of phones, you'll need around 10 Feb 04 22:05:39 comes back tonight, back in work tomorrow Feb 04 22:05:44 lasserix_: i group them based on the semantics of the API, not where they're used Feb 04 22:05:48 including some shitty samsung devices Feb 04 22:05:57 g00s it needs to run on ALL ble ready phones lol Feb 04 22:06:08 good luck :D Feb 04 22:06:12 inorite Feb 04 22:06:39 they honestly do not undertand what they have asked me to do Feb 04 22:06:49 JakeWharton: so lets say I was doing some kind of LibraryAPI where I had getBookListing getMagazineListing getBook getMagazine, you'd put them all in the same interface class or split between listing and specific? Feb 04 22:06:54 ***I*** dont understand it either lol Feb 04 22:07:01 lol I440r, still no real device for testing? Feb 04 22:07:30 lasserix_: maybe, PeriodicalService or something. The example I usually give is Github: RepoService, OrganizationService, AccountService Feb 04 22:07:44 bpe one of the guys here has a ble ready phone, i get to borrow that but im constantly having it taken away. right now the issue is i need an update to their part of the code in order for the app to log into their cloud Feb 04 22:07:58 JakeWharton: ahh okay thanks i see! Feb 04 22:08:08 crazy Feb 04 22:08:18 its all good. just have to go with the flow even when the flow gets blocked up by incompetence :) Feb 04 22:08:36 mine or theirs Feb 04 22:08:38 ^^ contraints are good, when they aren't too many Feb 04 22:09:14 I440r, you could upload your apk (if it's only apk related) via wifi so you would not have to walk anymore to borrow his phone maybe Feb 04 22:09:25 same goes for adb log & other thingies Feb 04 22:09:27 <_Auron_> JakeWharton: hey one more thing, with your ViewPagerIndicator, is it possible on a circle indicator to have different colored background and circle colors for different fragments? Feb 04 22:10:07 herriojr: the support of the sdk is currently closed for the night :/ Feb 04 22:10:10 bpe no it takes interaction at the phone :) Feb 04 22:10:15 ah too bad Feb 04 22:10:22 heh nice thought tho Feb 04 22:10:24 no emails or anything will be answered until tomorrow, could you help me pinpoint where the issue is a little bit furthe rperhaps? Feb 04 22:10:29 ive never used adb over wifi Feb 04 22:10:30 by eliminating a few options? Feb 04 22:10:48 because what currently works is the device registers for the push service, I get its registration ID - so nothing can be wrong with that part Feb 04 22:10:54 the code returns a positive result, so nothing can be wrong there Feb 04 22:11:08 only problem is the device never receives the message, any clue what could be messing about causing this to b e the case? Feb 04 22:11:32 and anyone else who perhaps knows would really appreciate some tips on thsi issue Feb 04 22:12:57 _Auron_: no, just copy the file and modify it to do that Feb 04 22:14:50 <_Auron_> yeah I suppose I could do that Feb 04 22:19:10 the code is 4+ years old Feb 04 22:19:13 <_Auron_> yeah Feb 04 22:19:15 i was dumb 4+ years ago Feb 04 22:19:24 who wasnt Feb 04 22:21:30 Hello, can anyone please provide me a good example of Facebook Login? It's driving me nuts :(. This is partially works 'cause it doesn't return user data: http://javatechig.com/android/using-facebook-sdk-in-android-example Feb 04 22:22:08 *This partially Feb 04 22:30:01 when I'm debugging, and it says that written=8 for a dataOutputStream, does that mean 8 different things were written to the file? Feb 04 22:31:54 Cause I had a loop that was only supposed to call writeLong once Feb 04 22:36:49 someone told me I could try booting in to recovery mode with a USB stick what does this mean and how can I do it? Feb 04 22:40:19 in_deep_thought: that's not possible for the devices I'm familiar with, at least Feb 04 22:40:38 also, more of an #android or #android-root question :) Feb 04 22:40:39 For retrofit callback--I'm using OkHttp--which method do I set for the restadapter to have the callback goto the UI thread? Feb 04 22:40:54 it does that automatically Feb 04 22:42:12 is the Android Studio debugger supposed to automatically quit after a certain amount of time? I can never step over enough of my program before it quits on me Feb 04 22:42:46 JakeWharton: so if I setClient(okHttpClient) i don't need to setExecutor and the callback will goto the UI thread? Feb 04 22:42:51 yes Feb 04 22:42:56 oh wow awesome Feb 04 22:42:57 :) Feb 04 22:45:01 what are your favorite debug tools? Feb 04 22:45:11 newbQ: only thing i can think of is you're stepping through the wrong part of code and some async task is dumping...where did you start stepping through your code? was it near a line where your ST was pointing ? Feb 04 22:45:39 newbQ: set your application as the "debug application" on the device. you can also go set "always show ANRs" in the development options Feb 04 22:45:43 Does anyone know if it is possible to have javadoc abbreviate fully qualified class names in the source code, ie {@link com.my.long.package.name.goes.on.forever@mSuperLongVariableName} so it's just {@link .#mSuperLongVariableName} instead? Feb 04 22:46:00 bankai_: no specific line. it just wont last more than a few minutes Feb 04 22:46:05 "always show ANRs" will show the ANR on the screen, instead of just killing the app Feb 04 22:46:37 JesusFreke: how do I do that? Feb 04 22:46:48 newbQ: it's somewhere in settings->development options Feb 04 22:49:02 apple is making an android app? it's not april is it :/ Feb 04 22:49:11 JesusFreke: is that specific to Eclipse? Feb 04 22:49:19 newbQ: it's a setting on the device Feb 04 22:49:26 it has nothing to do with the IDE Feb 04 22:50:06 oh Feb 04 22:52:42 JesusFreke: thanks Feb 04 22:55:12 lasserix_ in your own code, there is a setting in AS Feb 04 22:56:37 g00s know any more specifically? can't seem to find anything on web as to where Feb 04 22:56:58 prefs -> code style -> java -> imports Feb 04 22:57:27 uncheck 'use fully qualified class names in javadoc' Feb 04 22:58:43 ahh Feb 04 22:58:44 thanks Feb 04 22:58:46 was one tab off ;p Feb 04 22:58:48 you would probably have to reformat the code though for changes :( Feb 04 22:59:32 just started the project so it's all good thanks :) Feb 04 23:00:08 i also turn off adding

to blank lines, etc Feb 04 23:01:03 Anyone know a good font for mac shell (using zsch or whatever) Feb 04 23:01:48 ahh nevermind just had to change letter spacing Feb 04 23:04:40 lasserix_ helvetica neue extra extra light ! Feb 04 23:04:44 jk Feb 04 23:04:56 thinking im using Menlo Feb 04 23:05:15 coding in android studio with droid mono tho ;p Feb 04 23:07:57 wow Google should license square's libraries or something, such wonderful tools for android devving Feb 04 23:08:08 by license i mean reward somehow Feb 04 23:08:09 they're apache 2 licensed Feb 04 23:08:22 they could just take them Feb 04 23:08:27 i know Feb 04 23:08:52 but i mean, you guys deserve some investment money or something so you can make more wonderful libaries or something ;p Feb 04 23:09:22 like open source gratuity bounty Feb 04 23:09:35 start a new standard in open source "gift economy" Feb 04 23:09:53 they send bug fixes Feb 04 23:10:21 at least on the projects they use Feb 04 23:21:14 new apple/android share stats http://www.kantarworldpanel.com/global/News/Apple-iOS-leads-US-OS-share-for-the-first-time-since-Q4-2012 Feb 04 23:21:47 ios doesnt lead. thers no way there are more ios devices than android devices Feb 04 23:22:00 maybe more ios devices than "the most popular android device" Feb 04 23:22:02 that ill buy Feb 04 23:22:38 in the US seems split pretty even Feb 04 23:22:52 I wish android wasn't such a monopoly Feb 04 23:23:00 we don't want another "Windows" Feb 04 23:23:05 Or rather, don't need Feb 04 23:34:21 Do I add cacheing/etag headers to the retrofit interface? Feb 04 23:34:29 for what? Feb 04 23:34:48 those headers are usually only specified by the server Feb 04 23:35:16 does okhttp/retrofit handle that automatically then? Feb 04 23:35:23 okhttp does Feb 04 23:35:28 retrofit knows nothing about caching Feb 04 23:36:37 umm Sorry for the questions, how would I tell if Okhttp is doing the get caching (i do have it set up) in the log? Feb 04 23:37:47 we don't expose that information Feb 04 23:38:01 ahh ok Feb 04 23:43:52 i wonder if Google Android One phones will be available in the US; if it becomes popular i'd imagine it would be important to test on Feb 04 23:45:34 Should a file show up in the cache directory if i've enabled a cache for okhttp in that directory after making a couple of the same get calls? Feb 04 23:45:41 yes Feb 04 23:46:40 what kind of file? Feb 04 23:53:12 JakeWharton: it was suppose to be scarey.. it was just a pratice in changing the configuration yourself. not for real pratical use. I mean you might aswell just swap the theme with setTheme on your activity and have done with it. Feb 04 23:53:28 lasserix: MD5 names Feb 04 23:53:55 JakeWharton: that was about the NodeModeHelper Feb 04 23:53:59 *NightMode Feb 04 23:54:29 JakeWharton if you've come with something clever, i'd be interested to see it - still have the same problem, but i've been naming all my resources _light _dark :( Feb 04 23:54:39 i meant more the null checking things which could never be null, the weak reference when you could just use the application context, the static state, etc. Feb 04 23:55:09 g00s: i'm working on dynamically changing the theme for April Fools for internal builds Feb 04 23:55:24 not going to be spending more than an hour on it Feb 04 23:55:38 don't let those builds escape :D Feb 04 23:55:52 they can't. different package name Feb 04 23:56:01 different signing key Feb 04 23:58:35 Happy April Fools Day, we secretly charged you $4 for a piece of toast Feb 04 23:59:08 JakeWharton: not sure what you mean by null check things that could never be null? the weak reference is required because you need to access the Activity object and its suppose to be self-contained, non-static because your process can go away. I agree that last bit could be improved with more hooks for onSaveInstanceState or similar. Feb 04 23:59:11 JakeWharton: https://gist.github.com/slightfoot/c508cdc8828a478572e0 Feb 04 23:59:11 (apparently though, not a joke in SF) Feb 04 23:59:54 JakeWharton: regarding changing theme theres much better ways.. simply have two theme styles and use setTheme before you inflate your views... but you know this. Feb 05 00:00:30 we use ContextThemeWrappers for changing Feb 05 00:03:09 If I have I really convoluted POJO is there a way to skip reading values in the json? Feb 05 00:03:23 (with an anotation or something?) Feb 05 00:03:33 lasserix: what json parser you using? Feb 05 00:03:42 gson Feb 05 00:05:16 lasserix: did you bother reading the docs? took me just a moment: @Expose(deserialize = false) Feb 05 00:06:22 Napalm: sorry just got dropped into middle of aproject that is behind so kind of all over the place, thanks Feb 05 00:09:04 or just delete them Feb 05 00:09:29 assuming they're truly unused Feb 05 00:09:46 ah cool thanks Feb 05 00:10:36 yeah it is taking 2200 ms to go from making the call to getting the pojo, half that time is the network call (according to retrofit log) so trying to minimize that other 1000 ms of pojoing Feb 05 00:32:14 Hey, if I have a PendingIntent for a notification, do I want to make sure that the different groups of notifications I have use the same ID? Feb 05 00:32:54 errr, same RequestCode Feb 05 00:34:41 s73v3r: well that depends on your implementation.. do they all do the same thing.. probably not.. you probably want to use the notificationId as the RequestCode Feb 05 00:35:00 k. Thanks Feb 05 00:52:00 Ugh. GoogleApiClient.connect() is causing my app to crash, I'm essentially running https://github.com/googlesamples/android-play-location/blob/master/BasicLocationSample/app/src/main/java/com/google/android/gms/location/sample/basiclocationsample/MainActivity.java Feb 05 00:52:48 Help is greatly appreciated Feb 05 00:53:25 "essentially" is not "same" Feb 05 00:53:36 show stack-trace or gtfo :D Feb 05 00:55:36 ugh, thanks for reminding me such a thing is available Feb 05 00:55:44 turns out I'm missing some tag Feb 05 00:55:47 http://imgur.com/jacoj Feb 05 00:55:48 :D Feb 05 00:57:20 It's my first 15 minutes of android development so I was just mad at the emptiness of the console, logcat seemed to be spewing something unrelated Feb 05 00:57:34 logcat has filters Feb 05 01:03:44 AS 1.1 Beta 4 Feb 05 01:06:07 /me upgrades. wait, really? why in the world would it save hprofs to _inside_ the app package? http://cl.ly/image/3f311F1q3z2y Feb 05 01:07:25 O.o Feb 05 01:07:46 hopefully that's something b4 fixes :| Feb 05 01:12:53 hm. can't repro. maybe it has been. Feb 05 01:13:19 or maybe I whacked 'enter' somewhere I shouldn't have. Feb 05 01:37:15 is `adb logcat`....lossy? Feb 05 01:37:36 as in, how reliable is it? If i write messages to it, can i actually expect to consistently see them Feb 05 01:37:53 as opposed to "randomly" having some messages "disappear"/not show up? Feb 05 01:39:57 so... yes, it's lossy? https://groups.google.com/forum/#!topic/android-developers/NDI4lusmr40 Feb 05 01:40:42 jonp: it's not lossy, but it is a circular buffer Feb 05 01:41:03 "circular buffer" implies "if i write too fast, the *oldest* entries get replaced" Feb 05 01:41:06 that's NOT what i'm seeing. Feb 05 01:41:11 i'm seeing RECENT entries get SKIPPED Feb 05 01:41:15 it is not lossy Feb 05 01:41:21 "too fast" ? Feb 05 01:41:22 jonp: make sure you're not filtering Feb 05 01:41:24 and it scares the hell out of me Feb 05 01:41:25 recent messages do not get skipped Feb 05 01:41:26 i'm not. Feb 05 01:41:27 period Feb 05 01:41:30 you're seeing wrong Feb 05 01:41:39 maybe i am, but that's what i'm seeing Feb 05 01:41:47 then you're seeing wrong Feb 05 01:41:58 pebkac before all other explanations Feb 05 01:42:33 jonp: it's worth noting that the logcat infrastructure has likely changed since that groups post. Feb 05 01:42:58 jonp, likely explanations: you're filtering, you did not actually log Feb 05 01:43:40 or the order is FUBAR Feb 05 01:43:41 https://gist.github.com/jonpryor/d59a0fc24c812249168d Feb 05 01:43:57 simple (-ish) `for` loop, _log() writes to logcat, stuff writes to logcat Feb 05 01:44:07 comments provide approximations of the messages written Feb 05 01:44:12 but the output. OMG the output! Feb 05 01:44:23 the --198 loop doesn't have the -g- message! Feb 05 01:44:30 and the --199 loop has WAY too much! Feb 05 01:44:34 it's...bizarro! Feb 05 01:45:15 there should be, at least 3 messages, and at most 4 messages per iteration. Feb 05 01:45:32 and what i actually see is *2* messages on one iteration, and 10 on another Feb 05 01:46:26 this isn't a circular buffer. this is, at "best", re-ordering of messages. Feb 05 01:46:34 or insanity awaits. Feb 05 01:51:28 jonp: is it possible that you're generating a really long line of text? if it's longer than the line-limit of logcat it can get silently dropped :| Feb 05 01:51:49 jonp: and the tag field is extremely limited in length, and has the same behavior Feb 05 01:51:57 none of those is what i'd call "long" Feb 05 01:52:10 longest is ~67 chars in width Feb 05 01:52:15 certainly < 80 Feb 05 01:52:26 which is too long for the tag field, fwiw Feb 05 01:52:26 if we ignore the "I/...(PID): " prefix Feb 05 01:52:31 no, the message Feb 05 01:52:34 but yeah, I wouldn't expect that to be a problem in the message Feb 05 01:52:34 the tag field is not 80 Feb 05 01:52:40 it's 11 Feb 05 01:52:52 and i've never had a problem with an 11 char tag field Feb 05 01:53:14 tag is something like 23 characters. I forget exactly. Feb 05 01:53:40 so, when you say the 199 loop has way too much info, what is it printing? Feb 05 01:53:52 no, too little Feb 05 01:54:16 there should be a GREF create (+g+), an optional GREF create (another +g+), a Weak GREF create (+w+), and a GREF delete (-g-) Feb 05 01:54:20 that's 3-4 messages Feb 05 01:54:26 yet the 198 loop has *2* Feb 05 01:54:37 so the first 197 are fine? Feb 05 01:54:38 and the 199 has *10* Feb 05 01:54:44 no; i was just spot-checking Feb 05 01:54:48 this is the first i randomly hit Feb 05 01:55:02 --61 is also FUBAR Feb 05 01:55:12 as is 178 Feb 05 01:55:17 and 141 Feb 05 01:55:23 wait, how'd i jump from 61 to 141? Feb 05 01:55:30 and 141 to 176? Feb 05 01:55:41 this might be the time to START heavily drinking Feb 05 01:55:55 hit enter a few more times Feb 05 01:56:02 Anyone happen to know how it is that Chainfire's 500px firepaper app has access to higher resolution images than you can get through the regular 500px API (even when when using the undocumented image_size=5)? Feb 05 01:56:10 i do `adb logcat > o.txt`, then read o.txt with `less` Feb 05 01:56:15 hitting enter won't do anything Feb 05 01:56:16 jonp: any possibility of threading in there? and is this via `adb logcat` or inside an IDE? Feb 05 01:56:23 all via `adb logcat` Feb 05 01:56:24 no IDE Feb 05 01:56:26 i'm insane that way Feb 05 01:56:45 let me try it without the sarcasm - stop hitting enter so frequently. it's really annoying Feb 05 01:59:20 jonp: try prefixing your messages with the 'i' counter. I wonder if you'll see something like "198: +g+, 198: +g+, 199: +g+, 199: +w+, 198: +w+" Feb 05 02:03:56 <_genuser_> odd this auto dialer is calling my phone and it's just not going to voicemail. it's just ringing nonstop. Feb 05 02:04:28 <_genuser_> I can understand the auto dialer might go until it hits voicemail. but curious why my phone isn't going to voicemail. Feb 05 02:04:38 groxx: good idea. that is what i see, somewhat. Feb 05 02:05:02 i'm still "losing" messages, e.g. some of the --INT messages are gone (e.g. 445), but the tag still contains the "missing" rows Feb 05 02:06:29 jonp: the link you posted does seem to imply some problems if you're writing really quickly. not sure how accurate it is, but ¯\_(ツ)_/¯ Feb 05 02:06:33 still doesn't explain why certain rows are missing, Feb 05 02:06:55 but it basically means that logcat is unreliable for me, which is a kick in the nuts Feb 05 02:06:55 jonp: I'd probably just say "write to a file, pull later". you can cat from adb pretty easily. Feb 05 02:08:51 `adb run-as com.your.package.name cat whatever.txt` Feb 05 02:10:30 i keep forgetting about `adb run-as`. :-/ Feb 05 02:10:36 that's a handy utility Feb 05 02:11:00 yeah, simplifies a lot of my adb commands :) Feb 05 02:11:01 the only problem with using `cat` is that it won't continually read from the file Feb 05 02:11:13 and there's no `tail`, at least on the Nexus 5 Feb 05 02:12:16 root it? Feb 05 02:12:38 that's...hostile. Feb 05 02:12:54 i'll just need to keep writing to logcat, but reduce the data, and dump the "full" data to a file. Feb 05 02:12:59 but if you're logging _that_ quickly, you're not reading it all as it goes by anyway. i don't think logcat was ever intended as a high-performance output stream Feb 05 02:13:03 so i can keep track of the "interesting" info while it's running. Feb 05 02:17:30 ah, release notes for the new gradle plugin Feb 05 02:17:42 new version Feb 05 02:18:31 "ProGuard configuration files are no longer applied to the test APK" hmm i thought it was like that already Feb 05 02:44:02 new AVD manager doesn't allow download any versions below 2.3.7 ! Feb 05 02:44:22 I was trying to create an API-7 avd Feb 05 02:44:45 sounds like a feature :) Feb 05 02:45:14 :) Feb 05 02:46:26 for certain projects the client insists version compatibility down to API-7. Mostly enterprise solutions, with custom devices. Feb 05 02:46:32 pre-froyo is pretty old, yeah Feb 05 02:46:43 yow Feb 05 02:47:01 JakeWharton, I'm writing a new app. Do you absolutely recommend the Container pattern instead of Fragments? Feb 05 02:47:04 good luck :) that's quite a way down Feb 05 02:48:04 but I'm hesitant about using Dagger or fork Feb 05 02:48:09 I play in the undergrounds of Android where Actionbars, Fragments and material design are in science fiction movies... Feb 05 02:48:57 napster: some of that may not be a loss :) Feb 05 02:50:04 we tell our kids that in a parallel universe there are newer features in Android such as RecyclerViews. Feb 05 02:50:26 napster, so you're still on froyo? Feb 05 02:50:34 lemme guess, they want material design done on everything? Feb 05 02:50:54 ah never, they don't care about the design. Feb 05 02:51:12 they just need that app run on every devices down to G-One Feb 05 02:51:31 wtf Feb 05 02:51:40 napster, just show them the android distribution chart Feb 05 02:52:36 I'm just a contract developer. I'm not supposed to question the "almighty" client. Just do whatever shit they ask. :) Feb 05 02:53:00 gotta keep those G1 resellers in business :) Feb 05 02:53:12 Anyway for this specific task 2.3.7 might work. Feb 05 02:53:25 they asked for 2.3+ Feb 05 02:53:56 yep, G1s were good too. Feb 05 02:54:06 napster eneterprise solutions? seriously? that means those devices are many many revisions behind security fixes - i doubt it Feb 05 02:54:21 enterprise kinda likes it when workers data isn't p0wned Feb 05 02:54:43 g00s unfortunately yes. These are chinese devices, custom made. running 2.3 Feb 05 02:55:51 some company called ChainWay Feb 05 02:56:19 well if you charge them 4x the rate of current revisions, it might be worth it Feb 05 02:56:31 like extended extended support development Feb 05 02:56:43 lol :) Feb 05 02:58:05 seriously :) if you asked my to write an app, minSdk=16 i'd give rate X. but if minSdk=froyo, i'd give 2x or something :D Feb 05 02:58:22 :) **** ENDING LOGGING AT Thu Feb 05 02:59:59 2015