**** BEGIN LOGGING AT Wed Mar 16 02:59:58 2016 Mar 16 03:01:01 http://pastebin.com/R4BSftK0 Mar 16 03:01:08 how can this possibly return an empty list? Mar 16 03:05:28 still working on this same method lol Mar 16 03:22:14 hmm, pidcat doesn't work on N preview huh Mar 16 03:24:13 pfn log format change a little ? Mar 16 03:50:48 man sometimes I hate inheritance Mar 16 03:51:06 well, in retrospect I guess most of the time i do Mar 16 03:51:38 inheritance sucks Mar 16 03:52:47 yep Mar 16 03:53:00 I changed my mind about how I want to do this lol Mar 16 03:53:21 yeah, looks like ActivityManager no longer spits out package:pid mapping Mar 16 03:53:27 i'm just a little upset because I didn't check in my changes when I got it working :| Mar 16 03:53:56 ActivityManager used to spit out pid info when launching Mar 16 03:54:06 grekkos, you can revert local history in android studio Mar 16 03:55:29 oh Mar 16 03:55:30 well Mar 16 03:55:35 I think I already reverted itm anually Mar 16 03:55:36 haha Mar 16 03:55:45 I'm pretty quick but I complain a lot Mar 16 03:55:51 with refactoring, at least Mar 16 04:13:18 You'll receive an email, whether you get in or not. So as long as you haven't received anything, you're fine. Mar 16 04:15:09 (sorry my window was scrolled up, didn't realize I was responding to an older discussion. This was about Google I/O invites) Mar 16 04:17:26 I had guessed Mar 16 04:18:11 but the assumption is all the positive emails go out first, then the consolation didn't get in emails come later Mar 16 04:30:48 wonder if we'll see project ARA at this I/O Mar 16 04:30:56 not really interested in self driving cars ;) Mar 16 04:31:09 maybe when i'm 80 and can't drive :D Mar 16 04:31:53 what's interesting about ara, hard to imagine Mar 16 04:32:14 that a modular phone would be better than something expressly designed to be a single unit Mar 16 04:32:44 I bet we'll be seeing mostly bottom bars Mar 16 04:33:06 nooooo Mar 16 04:33:37 They're the new hotness, get used to it Mar 16 04:33:59 on /r/androiddev don't seem very popular among devs there Mar 16 04:34:30 i think its a mistake, having on screen navigation keys under the button bar Mar 16 04:34:53 i understand the thumbable argument, but if you have a 6" tablet then there is plenty of screen you still aren't going to be able to get to Mar 16 04:35:00 phablet Mar 16 04:35:19 and then , what to do with tablet ? oh they they go back to navdrawer lol Mar 16 04:35:31 because, that will look like shit spanning the whole length of the screen Mar 16 04:35:43 oh wait, why not put them as tabs in the actionbar, since its already there ? Mar 16 04:35:49 yeah , just keep them up top :) Mar 16 04:36:09 I like them at the bottom, easier to reach with my thumb Mar 16 04:36:22 I don't particularly care, everything ends up looking ok Mar 16 04:36:27 people that complain just like the status quo Mar 16 04:37:08 also looks weird when you scroll content, and the AB shifts at the same time the button bar does, in opposite directions Mar 16 04:37:21 When something new comes up and you don't like it, it's never easy to figure out if you really don't like it or whether you're just annoyed at the change Mar 16 04:37:42 i would like to see some new ideas from google when it comes to navigation .... Mar 16 04:37:57 i think, apps are getting more sophisticated, navigation is getting more complicated Mar 16 04:38:02 plenty of room to improve Mar 16 04:38:11 this is ... just ripping off an idea from apple Mar 16 04:38:20 thats a little idea at that Mar 16 04:39:50 but yeah, would like to see google afford some new controls, widgets that are ... more ambitious then restyling TabLayout for the bottom of the screen Mar 16 04:40:13 https://code.google.com/p/android/issues/detail?id=204041 Mar 16 04:42:25 wonders if that is intentional Mar 16 04:42:44 * pfn shrugs Mar 16 04:42:46 i just use logcat filter for my package Mar 16 04:42:52 don't see why anything else is neede Mar 16 04:43:09 because logcat filter only shows currently running Mar 16 04:43:17 it can't show anything that was previously running prior to starting logcat Mar 16 04:45:51 I have a nexus 5x in my cart Mar 16 04:46:01 this is your last chance to change my mind Mar 16 04:46:18 339 on best buy, thats stupidly cheap Mar 16 04:46:45 6p Mar 16 04:46:46 done deal Mar 16 04:47:30 think it's that much better? Mar 16 04:47:38 RustyShackleford: it's a trap! Mar 16 04:47:41 price + size draw me towards the 5x Mar 16 04:47:45 is it worked? Mar 16 04:47:46 fuck man don't do this to me! Mar 16 04:48:47 there is really no reason to get a 5x Mar 16 04:48:52 unless you absolutely cannot deal with the size Mar 16 04:48:57 do you put a case on yours? Mar 16 04:49:04 no Mar 16 04:49:11 but a case doesn't add much Mar 16 04:49:43 i wonder if moto / lenovo will do any more Moto G Mar 16 04:50:10 ah screw it 6p Mar 16 04:50:19 although, their update policy was pretty crap - only one guaranteed update Mar 16 04:50:20 work sucks. I deserve to splurge Mar 16 04:50:51 too many choices RustyShackleford :D Mar 16 04:51:48 imagine if there was 3 nexus phone choices Mar 16 04:51:53 i'd never be able to decide Mar 16 04:53:31 i'd be interested in a 4" nexus Mar 16 04:53:43 so the choice is easy for me :) Mar 16 04:54:17 RustyShackleford: take lenovo p780. it's big, 4200 mah. and you still can test on api 17 Mar 16 04:54:46 ordered the 6p Mar 16 04:54:47 bah nexus or bust for development Mar 16 04:55:01 now I have to take all my pants in to the tailor Mar 16 04:55:02 %] Mar 16 04:55:09 have some larger pockets installed Mar 16 04:56:53 RustyShackleford just get one of these :) https://www.maxpedition.com/store/pc/Remora-Gearslinger-72p384.htm Mar 16 04:57:05 wallet, stuff, etc Mar 16 04:57:26 suppose it'a good thing that nexus 6 samsung manufactured. maybe they'll put shit together and stop doing weird samsungish things with android Mar 16 04:59:16 maybe it was the only point in moving from lg Mar 16 04:59:26 its not fair that guys aren't allowed to carry purses Mar 16 04:59:49 i carry that remora Mar 16 04:59:51 having a bigass phone, wallet, keys, survival equipment would be so much easier' Mar 16 04:59:58 no gun though Mar 16 05:00:07 depends where i'm going Mar 16 05:00:15 RustyShackleford: most countries pretty tolerant to those guys :) Mar 16 05:01:11 oh didn't realize it was a ccw bag Mar 16 05:02:11 can anyone tell me why i cant set leftpin to 10 http://puu.sh/nIgM9/a553211ac9.png Mar 16 05:02:37 I don't carry keys Mar 16 05:02:42 and i think this is bad practice , can anyone guide me how to write this in more oop manner Mar 16 05:02:42 I have a keyfob for car Mar 16 05:02:44 and that's all Mar 16 05:05:57 pfn come on , admit you carry some kind of fancy led flashlight :) Mar 16 05:06:23 i also have a pen and notepad in there Mar 16 05:08:04 I said I don't carry keys Mar 16 05:08:16 g00s: can you please help me to figure out why i cant see toast ? http://puu.sh/nIhib/53f35d3996.png Mar 16 05:08:19 I carry a 1 cr123a flashlight, a smart keyfob, and a small pocket knife Mar 16 05:08:42 pfn: http://puu.sh/nIhib/53f35d3996.png , i cant see toast notification when i click the button which is inside the dialog Mar 16 05:08:45 oh yeah i have a spyderco military in my remora too Mar 16 05:09:43 jackhum uh, haven't used toast in years. try using activity context Mar 16 05:10:29 and I don't carry a wallet, just a small card case Mar 16 05:12:05 g00s: should i use Mainactivity.this? Mar 16 05:12:19 yeah Mar 16 05:12:27 g00s: yeah , now its working Mar 16 05:12:30 g00s: tnk Mar 16 05:15:32 g00s: can i ask you one more question? Mar 16 05:15:38 g00s: :) Mar 16 05:19:36 kotlin in action 50% off today. seems this happens pretty often Mar 16 05:19:44 they're desparate Mar 16 05:19:51 lol Mar 16 05:20:02 :D Mar 16 05:21:08 g00s doesnt get it, because he still hasnt used it ;) Mar 16 05:21:38 you are right, i haven't used it Mar 16 05:24:01 https://twitter.com/channingwalton/status/447778554114502657 Mar 16 05:24:05 It's a hard sell when the PDF book is already so good Mar 16 05:25:23 https://code.google.com/p/android/issues/detail?id=204041#c1 Mar 16 05:25:27 at least it wasn't rejected outright Mar 16 05:43:45 one thing i remember about the iOS bottom bar, was that it stayed put when you navigated to children. it would be like pushing a fragment in a tab on the stack Mar 16 05:44:44 thats not something i really see in android apps Mar 16 05:44:57 but their framework makes that pretty easy to wire up Mar 16 05:47:16 I like how our ios team is struggling with design :D Mar 16 05:49:02 designing for mobile context is hard, doesn't matter what the platform. but i recall their cocoa apis much nicer Mar 16 05:49:09 haven't seen the swift stuff yet Mar 16 05:49:35 i guess i'm waiting for cocoa touch to get swiftified :D Mar 16 06:11:01 I seriously can't believe how big of a memory footprint switching to a recyclerView cut out Mar 16 06:12:10 g00s: guys here tried to mix swift with existing code base, and they said - never again Mar 16 06:12:16 maybe it's nice with clean one Mar 16 06:12:23 but I dont know much of ios Mar 16 06:12:30 and not looking forward to ;) Mar 16 06:31:56 Shoot, can we not use Lambdas for OnPreDrawListeners because they need to be removed? Mar 16 06:32:58 Nevermind hahaha. I thought it was stuck in the preDraw infinite loop but it was just calling it for multiple items in a list Mar 16 06:34:14 can someone explain to me why in this source http://pastebin.com/zCbqnENz at line 34 in = con.getInputStream(); returns null Mar 16 06:34:31 konk3r, saved that much memory huh, how many views were you populating, had to be a stupid nummber to hit 50mb, like hundreds Mar 16 06:35:07 I'm not sure wtf was going on, my list wasn't that big. Although it had a somewhat deep hierarchy Mar 16 06:35:38 but if your overall memory usage is 50mb, that's pretty normal Mar 16 06:35:39 I'm displaying articles, and each section of the article has a name, body, and potentially its own sections Mar 16 06:35:47 My overall memory usage was like 90 Mar 16 06:36:18 I took out a huge bitmap and it was still at 80 with nothing but text views and buttons Mar 16 06:40:49 anyone ? Mar 16 06:46:27 pfn: 50MB is definitely not normal Mar 16 06:46:34 More like 13MB Mar 16 06:47:11 Which I get with my IRC app in debug mode where all messages are stored in RAM. Mar 16 06:53:21 Hello everybody. Mar 16 06:53:43 I am trying to change the scale animation present in the developer options programmatically. Mar 16 06:53:59 Settings.Global.putFloat(context.getContentResolver(), Settings.Global.TRANSITION_ANIMATION_SCALE, 0.0f); Mar 16 06:54:30 But the changes are not getting reflected in the settings. Can anyone help ? Mar 16 06:54:34 hi thepoosh Mar 16 06:54:41 hi hi Mar 16 06:54:44 sup? Mar 16 06:54:55 -.- Mar 16 06:55:00 did anyone notice my question Mar 16 06:55:24 I have having trouble trying to change the scale animation values in the developer options Mar 16 06:55:34 Settings.Global.putFloat(context.getContentResolver(), Settings.Global.TRANSITION_ANIMATION_SCALE, 0.0f); Mar 16 06:55:52 thepoosh, but the values are not getting reflected in the settings Mar 16 06:56:10 any idea what is the issue ? Mar 16 06:57:04 I habe no idea what you're talking about Mar 16 06:57:50 actually I am trying to change the values of the scale animations which are present in the Settings -> developer options Mar 16 06:58:15 TRANSITION_ANIMATION_SCALE, WINDOW_ANIMATION_SCALE, ANIMATOR_DURATION_SCALE Mar 16 06:58:44 you can go to the developer options and can change the animation scale for above 3 values Mar 16 06:59:32 http://pastebin.com/zCbqnENzhttp://pastebin.com/zCbqnENz Mar 16 06:59:36 whoops Mar 16 06:59:38 meant to copy that Mar 16 06:59:44 can anyone recommend me a reliable tool for decompile/compile .apk ? I tried "Tickle for android tool" but the decompiled folder does not contain any .jar files. Mar 16 07:00:10 is there supposed to be a value within the constructor? Mar 16 07:01:02 this is my favorite decompiler Mar 16 07:01:06 http://jd.benow.ca/ Mar 16 07:02:30 halp -.-; Mar 16 07:02:52 i tried but I guess I don't know enough to help you Mar 16 07:03:05 orfasanti is that meant for .APK files? Mar 16 07:03:36 I have tested it with .jar files but not with .apk Mar 16 07:04:18 I can find a random .apk file and test it with that but I was kinda hoping you could give me that feedback Mar 16 07:04:21 I need something that works like apktool. Mar 16 07:05:15 orfasanti: I guess it's fine.. I will just search for another tool that works with .apk . Mar 16 07:06:39 uh oh jd.benow.ca does not decompile .apk but I have found various web based services that decompile .apk Mar 16 07:07:01 orfasanti can u help me Mar 16 07:08:36 I'm reading through it but nothing is popping out at me suddenly. I was wondering if a value is supposed to be within your constructor Mar 16 07:08:51 talking to me? Mar 16 07:08:57 google apk multitool Mar 16 07:10:24 I see on line 24 you have 'in' set to 'null' Mar 16 07:10:57 i call con.opencnonection right afer that tho Mar 16 07:11:04 then i do con.connect Mar 16 07:12:12 I would be led to believe that the value should be replaced but perhaps it is being accessed in a static way. as in once the value is set to null in the file, the file will continue to read it as null Mar 16 07:13:18 why not declare 'InputStream in = con.getInputStream();'? Mar 16 07:13:56 I'm not even sure what this file does besides access htt protocol lol Mar 16 07:14:45 or maybe just declare InputStream in; without setting a value to it Mar 16 07:15:24 and then allowing your if/else to set the value accordingly instead of statically calling it 'null' Mar 16 07:16:06 can anyone please tell me if I can safely install twrp on the samsung edge 7? Mar 16 07:19:46 SM-G935A.... can anyone testify to the compatability of twrp? Mar 16 07:20:28 s1car1us_: Root/custom ROMs, head to #android-root Mar 16 07:20:40 thankyou Mar 16 07:20:55 It's in the topic, it's wise to read that in every channel you join Mar 16 07:22:38 ya I did read that but its really not like this channel is so active that it cant handle the extra line of text so get over it Mar 16 07:23:13 Now I'm over it Mar 16 07:24:43 haha Mar 16 07:25:05 extra line of text :) Mar 16 07:25:53 well that was unexpected Mar 16 07:27:07 lol Mar 16 07:27:23 cool simon Mar 16 07:27:31 wyrdtrtle: why unexpected? seems like the appropriate response Mar 16 07:28:06 Is there any difference between setMyLocationEnabled at a GoogleMap instance and explicitly asking FusedLocationApi for the current location? Will the coordinates differ? Mar 16 07:28:17 cuz ive never seen anyone kicked from here before, not judging just suprised is all Mar 16 07:30:45 when you have special abilities.. you need to show them off :) Mar 16 07:31:22 People are usually pretty well behaved Mar 16 07:31:38 that is the view of a bully or supervillian lol Mar 16 07:31:48 haha Mar 16 07:32:41 whats up with parcelable Mar 16 07:32:53 not able to pass it on to content providers Mar 16 07:33:06 how do we pass an object to content provider? Mar 16 07:33:11 he was only kicked, not like he was banned. if anything, SimonVT was just helping him get to where he needs to be a little quicker Mar 16 07:33:16 that makes him a good guy Mar 16 07:33:29 send user to content provider, to save.. for ex Mar 16 07:33:42 He was banned tho.. Mar 16 07:33:47 thought +b was a ban? Mar 16 07:33:52 lol ok Mar 16 07:33:56 oh ouch. I need to be more observant Mar 16 07:34:14 oh i see what he said now Mar 16 07:34:27 but again, i was just remarking on my suprise nothing else lol Mar 16 07:34:54 I never saw anything like that in #Python Mar 16 07:35:09 I'm not sure if there are even channel ops there Mar 16 07:35:16 i'm used to #android where there are almost never any ops around Mar 16 07:36:01 havent seen jesusfreak in there in a long time Mar 16 07:36:22 not talking anyway Mar 16 07:36:22 good to see the city is safe Mar 16 07:36:52 muthu: I assume you mean another app.. They can't unmarshall the parcel unless it's on the class path Mar 16 07:37:25 Or really do anything with it.. Mar 16 07:37:25 within the same app.. Mar 16 07:37:42 pass objects to content providers Mar 16 07:37:49 Parcelable are not meant to be persisted Mar 16 07:37:53 Convert it to something that is Mar 16 07:40:26 now you guys are people I could learn something from >< Mar 16 07:40:39 SimonVT: can you help me ? Mar 16 07:41:18 http://pastebin.com/zCbqnENz <- line 34 throws an exception i cant understand... a null Mar 16 07:43:51 https://developer.android.com/reference/java/net/HttpURLConnection.html has an example, much less code than yours.. You could try and start with that Mar 16 07:44:13 Call methods until it breaks.. And then not call that Mar 16 07:45:01 im dealing with a compile lib here Mar 16 07:45:06 so i need to remake it Mar 16 07:48:14 any other possiblities Mar 16 07:49:27 bubbely check the response code Mar 16 07:49:51 may be the url not valid Mar 16 07:49:57 For better chance of someone being able to help, it's always a good idea to paste the full stacktrace as well Mar 16 07:50:40 http://pastebin.com/GEpReUEx Mar 16 07:51:42 muthu: i can access the url from browser, its valid Mar 16 07:51:55 There's no relevant stacktrace in that paste Mar 16 07:52:17 Make sure to filter out random logcat spam as well.. Leave just the stacktrace Mar 16 07:52:33 how do i just the stacktrace? Mar 16 07:52:59 Select the stacktrace in the logcat window, ctrl+c Mar 16 07:53:20 no matches if i search for stacktrace? Mar 16 07:53:57 Run the code and watch it fail Mar 16 07:54:35 oh.. Mar 16 07:54:40 it doesnt crash, it just throws exception URL or network communication error: null Mar 16 07:54:45 stacktrace happens when it crashes ? Mar 16 07:55:08 Your exception handling sucks Mar 16 07:55:29 Just print the actual exception being thrown, don't ignore it and throw your own Mar 16 07:55:46 Or at least pass it to your own exception Mar 16 07:55:54 Log.d("TEST", e.getStackTrace().toString()); ? Mar 16 07:56:24 way to be Frank, Simon. anyways I'm off for now. peace be to you all Mar 16 07:56:49 printStackTrace() Mar 16 07:58:10 k Mar 16 07:58:10 http://pastebin.com/JPgbHpj6 Mar 16 07:58:30 Caused by: android.os.NetworkOnMainThreadException Mar 16 07:58:42 Google that Mar 16 07:58:51 ya Mar 16 07:58:52 i just did Mar 16 07:59:06 and? Mar 16 07:59:15 i foudn the answer Mar 16 07:59:18 weee Mar 16 07:59:22 i cant call it on my main thread Mar 16 07:59:33 question tho.. sr = test.search(request); <- is it possible to call this from MainActivity on its own thread ? Mar 16 08:01:23 you can call anything anywhere to background thread Mar 16 08:01:40 simplest would be new Thread(new Runnable()...) Mar 16 08:01:53 ha, the main thread Mar 16 08:02:07 runOnUiThread(Runnable) Mar 16 08:02:15 or using Handler Mar 16 08:02:18 good, android force to do on bg Mar 16 08:04:28 new Thread(sr = test.search(request)); ? Mar 16 08:05:07 um Mar 16 08:06:03 more like this: http://stackoverflow.com/a/24641483 Mar 16 08:06:10 are you new to java as well ~ Mar 16 08:08:13 haha Mar 16 08:08:18 that will be a double whammy Mar 16 08:08:24 learn java as well android Mar 16 08:08:33 bubbely use async task Mar 16 08:10:18 cannot assign a final variable to sr http://pastebin.com/1f3yPe0z Mar 16 08:13:36 eh Mar 16 08:13:56 then use asynctask, new thread is just for quick check Mar 16 08:19:19 protected String doInBackground(Params...) { <- how can i make this non-string params Mar 16 08:19:59 AsyncTask Mar 16 08:20:52 Hi all - any ideas why our app would not show up in Play Store search results despite using a word from the title? Mar 16 08:21:51 bubbely http://developer.android.com/reference/android/os/AsyncTask.html Mar 16 08:22:44 stevejmason: how old is the app there Mar 16 08:22:54 common words like the would be omitted i believe Mar 16 08:23:11 param1 goes to doinbackground, param2 goes to onprogressupdate, param3 goes to onpostexecute.. Mar 16 08:23:30 Ashiren: It was published to production on Monday morning Mar 16 08:23:52 Technically the word is not a dictionary word so i'm surprised Mar 16 08:23:56 48h? Mar 16 08:24:19 give it few days Mar 16 08:24:28 Does it take 48h to index app title/publisher/etc? Mar 16 08:25:03 sometimes more. then again play store SEO is mistery Mar 16 08:26:27 love the search in d.android.. nice Mar 16 08:26:49 :O Mar 16 08:28:05 <[GH0ST]> Hello, the website will not serve me Android Studio. Mar 16 08:28:23 Receiving a lot of pressure over it - will try and push back to 48h but seems odd not to have indexed individual words, but I can still find it if I type two words from the title Mar 16 08:28:28 http://developer.android.com/sdk/index.html ? Mar 16 08:28:40 <[GH0ST]> Yes. Mar 16 08:28:53 works for me Mar 16 08:28:54 haha Mar 16 08:29:04 works only for humans :) Mar 16 08:29:18 <[GH0ST]> Right now it says "Downloading..." and the spinny thing. Still. Mar 16 08:29:46 try again Mar 16 08:30:21 try this: https://developer.android.com/sdk/index.html Mar 16 08:30:35 i just posted it Mar 16 08:30:48 <[GH0ST]> This webpage is not available Mar 16 08:30:51 <[GH0ST]> Says Opera. Mar 16 08:31:15 <[GH0ST]> Firefox loads the titlebar and keeps on loading. Mar 16 08:31:30 <[GH0ST]> NOTHING WORKS ANYMORE OMG Mar 16 08:31:45 troubles with http/https? Mar 16 08:31:55 <[GH0ST]> Go figure. Mar 16 08:33:47 nyoro~n Mar 16 08:34:15 <[GH0ST]> Okay, now it loaded. I'm pressing the green button. Mar 16 08:34:27 <[GH0ST]> Scrolled down, ticked the box... Mar 16 08:34:44 <[GH0ST]> Pressed the blue button, says it's downloading and loading. I'll leave it on and take a nap. Mar 16 08:35:58 <[GH0ST]> Now it took me to https://developer.android.com/sdk/installing/index.html?pkg=studio and tells me if I haven't downloaded Android Studio to download it from https://developer.android.com/sdk/index.html Mar 16 08:36:04 <[GH0ST]> Again, nothing works, please fix it. Mar 16 08:36:11 <[GH0ST]> Literally nothing. Mar 16 09:00:34 is it possible to reuse the same interpolator for more than one animtaion at the same time? Mar 16 09:01:44 Sure, animation interpolators have no state Mar 16 09:02:47 SimonVT: so why does it get context and attrs? Mar 16 09:02:47 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/animation/AccelerateDecelerateInterpolator.java#37 Mar 16 09:03:32 Probably a requirement for being "inflated" from xml Mar 16 09:04:43 just saw the annotation on the top of the method Mar 16 09:04:45 It has an empty constructor as well Mar 16 09:04:47 ignore my question Mar 16 09:41:14 what are you guys using in your dao classes ? Mar 16 09:41:26 log4j with some config ? Mar 16 09:41:55 you mean for log? Mar 16 09:42:20 ah, sorry I failed with question - yes for logging Mar 16 09:42:32 I dont want to put android dependency in daos Mar 16 09:42:49 well, I can inject some logger Mar 16 09:44:04 android log everywhere Mar 16 09:44:07 thats what i do Mar 16 09:44:19 got it Mar 16 10:31:27 Hi. Is Android SDK available for Android? Mar 16 10:31:42 I mean, is it possible to use android device as a development device? :) Mar 16 10:31:57 I know that AIDE exists. Mar 16 10:33:25 There's no official support, if that's what you're asking Mar 16 10:33:45 But that *is* possible? Mar 16 10:34:49 Somehow it's possible, otherwise AIDE wouldn't exist Mar 16 10:35:58 Curious. Mar 16 10:37:26 Hi Guys.. I decompile a apk.. but there isn't smali folder in it.. what am I doing wrong? Mar 16 10:38:03 applegal: This channel is for app devs, not decompiling other peoples apps Mar 16 10:38:56 SimonVT: im decompiling phone app to remove increasing ringtone feature. <- Samsung Galaxy Mar 16 10:39:13 Still off topic Mar 16 10:39:27 I don't know of any channels that deal with this, but good luck on your search Mar 16 10:39:50 Do you have access in this channel? Mar 16 10:40:26 Do I what? Mar 16 10:40:32 why the heck do you need to remove it anyway ^ Mar 16 10:40:49 Hi ktwo.. you are here too. Mar 16 10:41:21 ktwo I'm back on S4 LOL.. my Z2 went dead Mar 16 10:43:25 applegal, heh, good old s4 never dies :) Mar 16 11:02:54 HAHAHAHA Mar 16 11:03:03 Samsung Galaxy S4 i9505 will never DIE Mar 16 11:03:05 hahahahaha Mar 16 11:15:40 hi, what is theme overlay and how is it different from custom regular themes? Mar 16 11:17:14 what's the meaning of this: "[ThemeOverlays] are special themes which overlay the normal Theme.Material themes, overwriting relevant attributes to make them either light/dark." Mar 16 11:25:28 <[GH0ST]> I can finally download the SDK. Thanks. Mar 16 11:25:51 wee Mar 16 11:31:26 http://developer.android.com/reference/android/support/design/widget/Snackbar.html#setDuration(int) according to this I can set a custom duration in milliseconds, however if i try to do that my IDE displays an error Mar 16 11:32:20 "must be one of either snackbar.length_short, length_long, length_indefinite" Mar 16 11:32:25 hi guys Mar 16 11:32:28 question... Mar 16 11:33:03 is a best practice to create a singleton to keep an instance of dbopenhelper to perform operation with the database? Mar 16 11:36:28 hmm... anyone has a problem where a device hasn't got N Preview 1 OTA update after more than 30h since enrolling? Mar 16 11:56:38 hi! Mar 16 12:01:55 can someone give me some hints on what: "// You can modify the NDK configuration for each variant." from http://tools.android.com/tech-docs/new-build-system/gradle-experimental means ? Mar 16 13:00:07 Does anyone know if it's possible to record and automatically record a square video in android? I don't want to have to convert the video or anything, I just want to take a video as a square. Mar 16 13:05:37 hi, I have a recyclerview and want to change the params of an item. Why is findviewWithTag returning a FrameLayout and producing this error? http://pastebin.com/TadpUr3G Mar 16 13:05:59 hi! Mar 16 13:06:58 How do you inflate Mar 16 13:07:33 how can I specify the arm-linux-androideabi-4.8 toolchaing when using the com.android.tools.build:gradle-experimental:0.6.0-beta6 experimental plugin? Mar 16 13:09:29 dimitri: like this http://pastebin.com/raw/PDTy98mT Mar 16 13:11:45 You should use the layoutparams from parent ViewGroup Mar 16 13:12:24 hello! Mar 16 13:12:40 dimitri: what exactly do you mean? Mar 16 13:12:43 I’ve just developed a small apk for my Android TV. I signed it and generated a release APK. Mar 16 13:13:04 When I try to install it, I am getting that it cannot be installed because it is from “unknown sources” Mar 16 13:13:25 I know for a fact (99.9%) that it is not possible to enable that on my TV with the current ROM. Mar 16 13:13:26 N3sh108, everything beside the playstore is an `unknown source` Mar 16 13:13:38 argh, so I would need to publish it Mar 16 13:13:57 Billifischmaul, LayoutParams are always from Container/Parent. In your example it is an FrameLayout Mar 16 13:13:59 any workaround? Mar 16 13:14:03 danijoo Mar 16 13:14:16 isnt there something like " allow unknown sources" on android tv? Mar 16 13:14:21 we have that on phones. Mar 16 13:14:24 yeah but disabled Mar 16 13:14:29 can’t turn it on Mar 16 13:14:39 hm. theres no way then I feaurt Mar 16 13:14:46 maybe you need to enable some dev options or so Mar 16 13:14:48 Did someone has issues with if the appbarlayout is larger than the sceen? My Views are not rendering Mar 16 13:14:49 (it took me ages to even find it because they removed it from developer settings) Mar 16 13:15:06 I had to go through the terminal Mar 16 13:15:12 dimitri: and how do I get then the layoutparams of the 3rd relativelayout child from the framelayout? Mar 16 13:15:25 can’t even sideload it, since I cannot install ADB Wifi Mar 16 13:15:39 can someone help me with toolchain specification? Mar 16 13:16:06 Billifischmaul, you are fine with the way you inflated it Mar 16 13:16:30 when using: toolchain "gcc" and toolchainVersion "4.8" inside: model.android.ndk{} I get:Error: Unable to find toolchain: F:\Utility\AndroidNDKr10\toolchains\aarch64-linux-android-4.8\prebuilt Mar 16 13:16:38 n3sh108 why don't you upload your apk as private? Mar 16 13:16:45 and how do you debug anyway Mar 16 13:16:57 i mean how do you test if you can't install from unknown sources? Mar 16 13:17:00 I really don’t want to upload it anywhere Mar 16 13:17:11 I was testing it by running an AVD Mar 16 13:17:18 now I want to use it on MY own TV Mar 16 13:17:24 but it doesn’t work :/ Mar 16 13:17:29 huhh Mar 16 13:17:30 N3sh108, you can possibly publish it as a beta app in play store so only you have access Mar 16 13:17:44 but every publish would take hrs so its not a convient debug strategy :/ Mar 16 13:17:46 it has username/password, I’d prefer not to Mar 16 13:19:20 Billifischmaul, LayoutParams depends on the container. If the container is an RelativeLayout use RelativeLayout.LayoutParams if FrameLayout use FrameLayout.LayoutParams .... Mar 16 13:19:43 is it a phillips tv? Mar 16 13:19:45 Did someone has issues with if the appbarlayout is larger than the sceen? My Views are not rendering Mar 16 13:20:00 dimitri, default layout params are set because he passed the viewgroup as second parameter to the inflater. YOu dont need to do this another time in this case Mar 16 13:21:19 Look in the first pastbin. http://pastebin.com/TadpUr3G Mar 16 13:21:41 oh didnt see the ItemTouchHelper part. you are right ;) Mar 16 13:22:09 yeah line 47 shouldnt be RelativeLayout params but framelayout params Mar 16 13:22:21 dimitri: thanks! it works. Is there a way to disable the swipe animation of the touchhelper? Mar 16 13:22:43 casadogg: unfortunately, yes Mar 16 13:22:52 instant regret Mar 16 13:24:09 isItemViewSwipeEnabled() return false Mar 16 13:25:02 N3sh108 hey have you tried this? http://blog.ostebaronen.dk/2015/06/enabling-unknown-sources-on-phillips.html Mar 16 13:25:52 hello Mar 16 13:26:27 l1 Mar 16 13:26:47 dimitri: no, I mean only the animation. Mar 16 13:27:15 in onChildDraw I want to implement my own animation Mar 16 13:30:40 sry dont know Mar 16 13:32:32 any ideas about the toolchain configuration? Mar 16 13:38:59 casadogg: yeah, and I just tried it again Mar 16 13:39:07 =/ Mar 16 13:39:09 show all apps is not present Mar 16 13:39:34 Have you tried to say this TV didn't satisfy you and you want your money back? :P Mar 16 13:40:41 ahah Mar 16 13:40:44 we got 4 Mar 16 13:44:37 casadogg: I couldn’t find any sort of micro/mini USB on the back of the TV. Does that mean that we can’t connect via USB to it? Mar 16 13:46:39 N3sh108 I guess... are you sure it has no USB port? Mar 16 13:47:15 yeah, normal USB Mar 16 13:47:25 Is Google motherfucking serious? http://i.imgur.com/uozS0ck.png Mar 16 13:48:23 justJanne Happy to know their time machine project worked. Mar 16 13:49:15 casadogg: but Android Studio can’t import any settings from IDEA because "can’t import from a more recent version" Mar 16 13:49:16 WTF Mar 16 13:49:20 I have an Activity that was paused. OnDestroy was not called and then the ActivityManager logs onCreate of the same Activity again. How is this possible without the Activity being destroyed first? Mar 16 13:49:44 casadogg: and Android Studio then tells me to use IDEA instead Mar 16 13:51:05 justJanne I'm as perplexed as you are. Mar 16 13:51:20 casadogg: And AndroidStudio can’t import my IDEA Ultimate projects. Mar 16 13:51:22 great. Mar 16 13:51:29 barq Maybe you're calling the same activity twice. Mar 16 13:54:43 justJanne I know it can be a hassle but I know some people that use IDEA for android dev as they find AS unreliable at times Mar 16 13:55:11 casadogg: I did use IDEA Mar 16 13:55:19 I had to switch over to AS due to aforementioned issue Mar 16 13:56:14 Yeh and AS now presents you with another issue Mar 16 13:57:07 Well, it also does "java.lang.NoSuchMethodError: com.android.ide.common.rendering.api.LayoutlibCallback.getXmlFileParser(Ljava/lang/String;)Lorg/xmlpull/v1/XmlPullParser;" now Mar 16 13:57:44 why am I using anything from Google again? More unreliable than Windows... Mar 16 14:00:07 i dont see why google is the culprit here, the screenshot is from IDEA Mar 16 14:00:21 Does anyone know if it's possible to record and automatically record a square video in android? I don't want to have to convert the video or anything, I just want to take a video as a square. Mar 16 14:05:39 ktwo: because it’s the android plugin for IDEA, from Google, that throws the error Mar 16 14:07:33 recording video via andy studio will usually mirror the device that your working with Mar 16 14:08:22 justJanne it's just the sad truth. As much as I like Android, it doesn't compare to iOS development Mar 16 14:08:22 I tried using android:process for one of my activities which creates a surfaceview but that caused my SurfaceHolder.Callback not being called, any clue why that might be? when it's in the same process it all works fine Mar 16 14:08:25 iOS is a breeze Mar 16 14:09:18 justJanne: Andy studio is constantly evolving (especially on canary channel) most issues revolve around gradle build system updates in my experience, but heck it better than eclipse right? Mar 16 14:09:44 RingoMckraken: but worse than IDEA Ultimate Mar 16 14:11:18 Hmm Gradle... Mar 16 14:11:32 absolutely, except andy studio is free of charge Mar 16 14:11:33 Gradle is something isn't it? Mar 16 14:12:03 sure is, love the syntax, but it can be cryptic with its errors sometimes Mar 16 14:12:20 actually, I get surface changed callback but no surface created Mar 16 14:13:34 Gradle is also the youngest between maven and ant so maybe theres Mar 16 14:13:38 there's that* Mar 16 14:14:47 Android always seems to be using the newer stuff... I'm all for it but sometimes is better to stick to stable Mar 16 14:22:54 I have an issues with AppBarLayout and recyclerView (appbar_scrolling_view_behavior). if the appbarlayout is larger than the screen? RecyclerView is not rendering Mar 16 14:23:45 hi! how can I specify directories where my header files are (.h) when using the gradle experimental plugin? (0.6.0-beta6) Mar 16 14:26:43 dimitri why would appbarlayout be larger than the screen? Mar 16 14:27:48 it shouldn't really Mar 16 14:31:29 HunterD, I'm not up on the latest gradleisms but usually that would be in android.mk or build.mk in my experience Mar 16 14:33:35 Seriously? Mar 16 14:33:42 ProGuard is not compatible with instant run? Mar 16 14:33:53 I can understand that obfuscation isn’t possible, Mar 16 14:34:04 but removing unused classes is pretty much without alternative on Android. Mar 16 14:34:22 so I have the alternatives of (a) multidex, (b) no instant run? Mar 16 14:34:28 what a wonderful world... Mar 16 14:37:04 casadogg, Formular is above my RecyclerView. Mar 16 14:40:22 Ok you have a form above your recyclerview Mar 16 14:40:53 What kind of layout are you trying to achieve? Do you have an example? Mar 16 14:47:36 justJanne: are you using the google play services imports at all Mar 16 14:47:37 ? Mar 16 14:47:44 RingoMckraken: nope, never Mar 16 14:47:54 I don’t import Google services either Mar 16 14:48:03 dang, you must have tons of methods then Mar 16 14:50:50 you mean the contrary :) Mar 16 14:50:52 casadogg, sorry no example. simply form above my recyclerview. form is not always larger than the screen. Mar 16 14:51:58 dimitri you want the appbarlayout to be collapsed when you scroll through your recyclerview? Mar 16 14:52:14 What is this? https://dl.dropboxusercontent.com/u/2650713/wat.png Mar 16 14:52:45 Did Android N change how File works? Mar 16 14:52:56 casadogg, Mar 16 14:52:57 correct. app:layout_scrollFlags="scroll" Mar 16 14:53:21 ok, are you using coordinatorlayout as a parent for both the appbarlayout and the recyclerview? Mar 16 14:54:32 correct Mar 16 14:56:11 Do you have better layout solution? Thing is one item between is sticky :( Mar 16 14:58:57 so you have a form, user will fill it, then user will scroll through a list and select an item. sticky item is like a header or something? Mar 16 15:01:09 yes header between form and search result Mar 16 15:03:47 Well I called requestLayout. RecyclerView apear. Feal like dirty Mar 16 15:06:12 the snackbar bg color is using the same color as the recommended bg color for darktheme :' Mar 16 15:07:52 well, almost the same. Snackbar is #323232 and bg dark theme is #303030 Mar 16 15:14:18 snackbar uses colorPrimary Mar 16 15:16:00 not here Mar 16 15:16:03 i had to group.setBackgroundColor(getResources().getColor(R.color.colorPrimary)); Mar 16 15:16:31 did you set colorPrimary in the style correctly? Mar 16 15:20:50 danijoo, yes it does not reflect on it, tested with android:colorPrimary and colorPrimary, on M and kitkat Mar 16 15:26:59 danijoo, it seems it's hardcoded Mar 16 15:27:28 snackbar uses a theme Widget.Design.Snackbar which uses @drawable/design_snackbar_background which uses which uses #323232 Mar 16 15:27:39 (in the design lib) Mar 16 15:27:45 gd it Mar 16 15:28:23 i'm gonna try to simply override the color like i have to do with.. preference_fallback_accent_color Mar 16 15:28:59 maybe you can also override snackbarStyle in your style and let it inherit from Widget.Design.Snackbar with different color Mar 16 15:29:16 ok override worked Mar 16 15:29:36 danijoo, another day maybe, it drives me crazy to style things with android Mar 16 15:35:07 does your recyclerview have an adapter attached to it right off the bat? Mar 16 15:36:04 no Mar 16 15:37:19 that may be part of the issue, it'll throw a log time error when that occurs skipping itself, my best practice is just to give it an adapter in oncreate/oncreateview even if there's no data, then update adapter accordingly Mar 16 15:38:39 I usually do it like: 1. populate the array, 2. link the array to the adapter, 3. set the adapter to the recyclerview Mar 16 15:39:40 Did the java.io.File change in Android N ? Mar 16 15:39:52 what do you mean darken Mar 16 15:40:06 This https://dl.dropboxusercontent.com/u/2650713/wat.png Mar 16 15:40:40 RingoMckraken: yes, because I’m dealing with medical stuff. 6000+ classes are common when using such standards ;) Mar 16 15:41:29 There is no way for an app to dynamically add an intent-filter to support a new mime type which was not declared in the apps manifest, is there? Mar 16 15:41:32 justJanne: totally understandable, thats def rough times Mar 16 15:41:54 without special permissions, anyway. Mar 16 15:42:51 duboisj, no. Mar 16 15:42:58 :( Mar 16 15:43:04 why dont you just declare it? Mar 16 15:43:11 I don’t know it will be available ahead of time. Mar 16 15:43:38 you know ahead of time you might want to listen to something, dont you? Mar 16 15:43:40 so you declare it Mar 16 15:44:04 if it turns out not to be available then it’s a bad experience for a user to select my app as the handler for it Mar 16 15:44:34 I would end up offering to handle some type, and if the user says “yes, please open this” I might have to turn around and say “no, sorry, I can’t do that after all.” Mar 16 15:44:47 then hand it off to another handler Mar 16 15:44:54 start activity or chooser Mar 16 15:45:05 hmm. Mar 16 15:45:11 and give the user a reason Mar 16 15:45:19 so they dont click it again Mar 16 15:45:24 first display a ‘sorry, we can’t handle that’ and then display another chooser. that’s not too bad. Mar 16 15:45:37 not perfect, but reasonable Mar 16 15:45:39 like ¨cant handle that because you are not looged in¨ Mar 16 15:45:58 yeah, ok. that will do. it’s a good idea. thanks! Mar 16 15:48:29 danijoo, any idea ? Mar 16 15:49:59 yo my knowledge File didnt change. no idea whats wrong there Mar 16 15:50:52 Maybe the whole openjdk thing Mar 16 15:50:59 But behavior should be the same Mar 16 15:51:05 mh. possibly Mar 16 15:51:09 isn't this a pretty huge issue? where do i report this best Mar 16 15:51:11 but this really shouldnt happen Mar 16 15:51:19 has the potential to break lots of stuff Mar 16 15:51:29 darken, android issue tracker Mar 16 15:55:28 never depend on cwd Mar 16 15:55:55 or are you expecting a relative / to go to riot Mar 16 15:56:30 whatever is correct behavior on jvm should be the same on android Mar 16 15:56:42 pfn, what? Mar 16 15:56:48 CODE REVIEW IS KILLING ME Mar 16 15:56:56 What's cwd ? Mar 16 15:56:58 hey thepoosh :D Mar 16 15:57:08 hi danijoo Mar 16 15:57:21 going over a PR of 2 weeks worth of work Mar 16 15:57:39 :( Mar 16 15:57:40 my boss told me we are 13 days behind schedule so it has to end tonight Mar 16 15:57:47 wife is not a happy camper Mar 16 16:01:27 hm, one developer feature I'd like in N is ability to connect adb over wifi w/o prior USB - i wonder if its worth filing enhancement for that? probably is one already Mar 16 16:01:54 you only need usb once, dont you? Mar 16 16:02:14 JakeWharton: Around? I've been using pidcat for the longest time. Installing it on a macbook of mine that didn't have it, installed from brew successfully... no output when I run it though. Any way to debug? Mar 16 16:02:41 eghdk, is normal adb logcat working? Mar 16 16:02:48 adb logcat works Mar 16 16:03:26 danijoo until reboot, etc Mar 16 16:03:47 i mean, with wireless charging it sucks to need a cable ever Mar 16 16:04:04 and if something happens to your USB port, pretty much out of luck i guess Mar 16 16:04:22 adb over wifi is so slow :/ Mar 16 16:04:26 I use it very rarely Mar 16 16:04:37 get a better router :P Mar 16 16:04:51 but yeah can be, we'll see with the new adb protocol improvements Mar 16 16:04:53 its more the location of the router :) Mar 16 16:05:14 2 walls in between. Mar 16 16:05:25 luckily im movin at the end of the month Mar 16 16:05:53 danijoo do they have any of those wifi over power devices ? Mar 16 16:05:56 in germany Mar 16 16:05:58 danijoo: if adb logcat works all signs are looking pretty good for pidcat right...? maybe my path or whatever is miconfigured. Mar 16 16:06:15 g00s, do you mean powerLAN? Mar 16 16:06:24 eghdk, no idea Mar 16 16:06:27 hmm, probably - never heard that term Mar 16 16:06:53 danijoo PoE Mar 16 16:06:57 danijoo: damn okay =(. Just need me some pidcat. lol. can't understand the whole mess going on in adb logcat Mar 16 16:06:59 oh no, thats not it Mar 16 16:07:04 powerline? Mar 16 16:07:16 aka homeplug Mar 16 16:07:18 yeah we have that in germany Mar 16 16:07:52 But if you live in an old house its kinda useless Mar 16 16:08:12 because different power sockets wont be in phase Mar 16 16:08:36 which makes it slower than post owls Mar 16 16:10:18 eghdk, pidcat doesn't work on n preview Mar 16 16:11:12 g00s, poe is not power over wifi Mar 16 16:11:20 or vice versa Mar 16 16:11:54 poe is a 48vdc power standard Mar 16 16:12:24 power over wifi would be... special Mar 16 16:12:42 but also great :p Mar 16 16:13:37 power over wifi - POW Mar 16 16:14:05 and thats the logo we use for it http://jrjp.org/wp-content/uploads/2014/06/pow.gif Mar 16 16:14:39 https://code.google.com/p/android/issues/detail?id=204119 Mar 16 16:21:08 darken hm, fun times ahead Mar 16 16:22:07 :') Mar 16 16:24:00 pfn: Not on N preview =/ on latest version of 6.0 on Nexus 5x though? Mar 16 16:24:42 Can anyone get to the play publisher console? I keep getting a warning that my connection is not private. HSTS or something Mar 16 16:26:47 no warning eghdk, and it's the 'developer console', maybe you have an issue with https, or your don't have the correct CA or worst you have proxy sniffing your ssl stuff? Mar 16 16:27:59 Does anyone else go to the russion version of d.android.com when they go there? It doesn't happen when I'm in incognito mode. Tried disabling all of my exts, and someone was here last week with the same problem. Mar 16 16:31:38 i have to hand it to the guy who came out with the bottom bar library in 1 day haha Mar 16 16:31:50 probably take google 6-12 mos for support lib version Mar 16 16:32:12 there’s already a bottom bar, I thought Mar 16 16:32:14 and by then, something else will have popped up on the radar :D Mar 16 16:32:33 <_kw> after I've received a notification (GCM) in my app, it crashes when I try to open it with no visible errors in logcat.. Any suggestions where to look? Mar 16 16:32:57 remove logcat filters _kw Mar 16 16:34:09 maybe the file behavior is intended and we will get an android.support.io.File :D Mar 16 16:35:09 <_kw> d'oh, great point danijoo :P now I do see some error, which at least gives me a starting point. thx Mar 16 16:37:24 s73v3r bottom sheet ... Mar 16 16:38:14 still, I’m pretty sure if they make one of those, it’ll be like when they first introduced the design support library. “Really? You couldn’t do this yourselves? Mar 16 16:38:44 yeah then 6 mos later they will put one out, and it won't work on 3 versions Mar 16 16:39:08 Well, I solved my mystery of why a class full of text views was using up 90MB of ram Mar 16 16:39:35 what cracks ,me up about the bottom bar, is they had specific arguments against it that have not been resolved ... like proximity to navigation bar Mar 16 16:39:36 Apparently Jsoup has some massive overhead for its first start Mar 16 16:39:45 Regardless of how small the HTML you're parsing is Mar 16 16:40:39 g00s: I don’t really buy that argument too much. I think people are just getting all upset over what they see as the, ‘iOS-ification’ of Android, whatever that means Mar 16 16:41:41 apple thought out navigation really well from the beginning Mar 16 16:42:58 s73v3r so lets say a bottom bar functions kinda like tabs or nav drawer, but has some aesthetic differences Mar 16 16:43:06 for the sake of argument Mar 16 16:43:10 Would anyone mind trying to reproduce this too? So I know I don't have somekind of fucked up installation? https://code.google.com/p/android/issues/detail?id=204119 Mar 16 16:43:31 but they way i remember this working on iOS, is that the bottom bar is usually permanent in the apps's layout Mar 16 16:44:04 so if there were 3 options, A B an C , and you pressed B, then you pressed some list item in B, that list would be replaced but the bottom bar would always be there Mar 16 16:44:11 g00s: on iOS, the bottom bar is a tab bar, so it is permanent Mar 16 16:44:30 if we equate bottom bar with tabs, google also had specific guidelines not to do that also Mar 16 16:44:31 it’s kind of a top-level navigation Mar 16 16:44:35 yeah Mar 16 16:45:23 so i think its much more useful as a 'permanent' component like that Mar 16 16:45:51 as opposed to 'tab widget' at the bottom which, child views are separate activities that no longer have the bottom bar Mar 16 16:47:28 Sorry, I got a question: Mar 16 16:47:37 Is there a lib for a timepickerpreference on Android? Mar 16 16:47:38 i guess it would be like the nav drawer being in every activity Mar 16 16:47:57 justJanne there is a material one ... Mar 16 16:48:10 g00s: integrated in AppCompat? Mar 16 16:48:12 because support lib never backported the number / tim epickers Mar 16 16:48:24 justJanne not in appcompat Mar 16 16:48:30 g00s: I was reading up on that yesterday, are they supporting single activity architecture now? Mar 16 16:48:32 justJanne, iirc mAterial dialogs has one Mar 16 16:48:33 well, I’d want a material timepicker lib on KitKat+ Mar 16 16:48:42 danijoo: not as far as I can see T_T Mar 16 16:49:28 konk3r i don't know honestly. haven't heard anything about them preferring that Mar 16 16:49:31 hm you are right. I thought I saw one :/ Mar 16 16:49:39 maybe I confused it with ListPref Mar 16 16:49:39 justJanne, it's like the first google hit: https://github.com/wdullaer/MaterialDateTimePicker :) Mar 16 16:49:55 Mavrik: does that have a preference? Mar 16 16:50:07 "a" preference? Mar 16 16:50:07 there are at lest 2-3 such libraries, i guess pick teh one with the most stars :) Mar 16 16:50:08 like, an implementation for a MaterialTimePickerPreference or whatever? Mar 16 16:50:13 g00s: Yeah, they've always been big on *not* doing that, but that would seem to be the new implication with their design guidelines for the bottom nav bar Mar 16 16:50:35 Then again you could do it with sharing the view with activity transitions Mar 16 16:51:21 biggest headache i get with single activity design is how to handle the actionBar across all screens which might have different requirements for action bar look :) Mar 16 16:51:50 Mavrik: a simple class I can reference in the xml preference that displays a preview of the selected time, and a time picker on click. Mar 16 16:52:00 working in material UI on KK+ Mar 16 16:52:10 Nope, not that. Mar 16 16:52:25 justJanne you may have to extend DialogPreference with one of their things Mar 16 16:52:53 g00s: so, I’ll just use an edittextdialog then and just let people enter whatever they want. Mar 16 16:52:59 makes it easier for me. Mar 16 16:53:13 That's just crappy ui :) Mar 16 16:53:20 i meant, take the library, and instantiate their dialog with DialogPreference impl Mar 16 16:54:13 BTW, i had a problem with TextPreference ,, seems to totally ignore all the TextView attributes like inputType etc Mar 16 16:54:29 oh well Mar 16 16:56:58 Are there any good lightweight html dom parsers? Jsoup adds 40MB to memory which is way more than I want to use to parse a 2x3 table, I'd probably be better throwing up a webview instead at that point Mar 16 16:57:50 Would it be viable to create a web server to convert the html page to json and cache it? Mar 16 16:58:24 not answering the question as such :P Mar 16 16:59:33 Hahaha, the HTML is already a single field in my JSON. Some elements are delivered as tables that are formatted as HTML tables Mar 16 17:00:37 ok Mar 16 17:04:02 The responsible thing sounded like it would be to parse it so I could put the data into my own neatly formatted native layout Mar 16 17:04:28 anyone can help me to disable increasing ringtone? Mar 16 17:06:48 Tried launching an Android N emulator, it crashes: https://gist.github.com/rubenwardy/622234566d9ece9b5ebd Mar 16 17:06:56 Should I not be using x86_64? Mar 16 17:08:59 found http://stackoverflow.com/questions/35904110/android-n-preview-emulator-crash Mar 16 17:20:31 guys, for DatabaseOpenHelper is better singleton, or put the instance inside the application class of the application? Mar 16 17:20:54 just make it a singleton ... Mar 16 17:21:06 also don't extend Application just for that ... Mar 16 17:22:04 g00s: what about close the database? Mar 16 17:22:30 leave it open of course. can't rely on Application#onDestroy Mar 16 17:22:39 ok Mar 16 17:22:45 g00s: thanks Mar 16 17:23:12 morning all Mar 16 17:23:21 it's evening here :D Mar 16 17:24:26 if you app is destroyed, this will close it anyways :p Mar 16 17:37:15 Assuming magnetometer data is not available, can an android phone give me rotation data in any way? Mar 16 17:51:52 what have i missed? Mar 16 17:52:54 a Google IO invite Mar 16 17:53:23 Hey guys can someone guide me how to debloat a system.img and add a launcher as a system app Mar 16 17:53:57 not really in the scope of this channel, sorry Mar 16 17:54:32 s73v3r: I live in IL, my boss told me that I probably won't make it this year Mar 16 17:54:47 awesomeslayerg: #android-root Mar 16 17:55:06 awesomeslayerg: #android-root Mar 16 17:55:15 meh Mar 16 17:55:18 oh thanks Mar 16 17:55:20 HAHAHAHA Mar 16 17:55:26 I WAS THERE FIRST!!! Mar 16 17:56:05 By the laws of this channel, thepoosh, you are now cooler than Ashiren Mar 16 17:56:22 TRUE DAT!!!11 Mar 16 17:56:49 And now by mixing exclaimation points and numeral 1s together, you have been demoted Mar 16 17:58:53 JakeWharton: https://redd.it/4ajked - a big fan of Square?! Mar 16 17:59:00 what does that even mean? Mar 16 18:00:14 Well no one wants to help me there Mar 16 18:01:05 sorry. try XDA? Mar 16 18:01:22 * thepoosh agrees Mar 16 18:01:33 s73v3r: can i get back to being cool now? Mar 16 18:02:02 ok, but you’re on thin ice, thepoosh. One more slip up and i’ll have your badge Mar 16 18:02:21 no probs Mar 16 18:02:24 g0here? Mar 16 18:02:31 nvm Mar 16 18:11:51 no friggin google IO invite still Mar 16 18:11:58 I guess it's ggwp Mar 16 18:16:53 pfn: are you going? Mar 16 18:17:13 God working with drawables or anything style related is annoying Mar 16 18:17:30 every other api number seems to have deprecated stuff Mar 16 18:18:39 casadogg: use support libs Mar 16 18:19:34 thepoosh I use ContextCompat to get drawables (and even that has deprecated methods, mind you). But when you have to set a textview's drawable, for example, there's deprecated methods there too Mar 16 18:20:25 anyone know why setting layout_width="match_parent" for RecyclerView is not working? Mar 16 18:20:43 thepoosh number of resons Mar 16 18:20:46 reasons* Mar 16 18:20:54 meaning that the list is being drawn as wrap_content Mar 16 18:20:59 casadogg: such as? Mar 16 18:21:18 could be a problem with the recyclerview's parent or could be a problem with the items themselves Mar 16 18:21:41 thepoosh, no invite, no go Mar 16 18:21:44 parent is match as well Mar 16 18:21:53 pfn: there are a few months to go Mar 16 18:22:02 parent's parent? what about layout for the adapter's items Mar 16 18:22:04 thepoosh, yeah, but invites are going out this week Mar 16 18:22:16 oh myyyy Mar 16 18:22:22 well, let's hope for the best Mar 16 18:22:29 I think my company is getting a few Mar 16 18:22:39 but i was told that it's not meant to be Mar 16 18:23:33 that's too bad Mar 16 18:24:01 but it's a long long flight from tlv to sfo Mar 16 18:24:05 so maybe it's a good thing :P Mar 16 18:24:49 A coworker here got one, he is now my least favorite coworker Mar 16 18:25:19 lucky coworker Mar 16 18:25:30 but yeah, fuck IO Mar 16 18:25:39 I feel like I've been blacklisted from going, heh Mar 16 18:25:57 I still feel this is a far better way to hand out invites than in the past Mar 16 18:26:21 pfn: i don't mind, a vacation from the wife and kids Mar 16 18:26:27 to go and listen to IO Mar 16 18:26:31 sounds awesome Mar 16 18:26:49 Rejection email is in :-( Mar 16 18:27:14 yep, also got my rejection email Mar 16 18:27:23 like 5 years in a row of rejections Mar 16 18:27:25 i haven’t gotten mine yet Mar 16 18:27:25 it's awesome Mar 16 18:27:34 although i don’t exactly remember which account i used :( Mar 16 18:30:12 casadogg: https://gist.github.com/yishai-glide/d0f8b0797e9f8c3a3b37 Mar 16 18:30:17 this is sort of the layout Mar 16 18:30:58 and this is the result: http://imgur.com/zdWu1xW Mar 16 18:31:20 really don't get it Mar 16 18:36:20 thepoosh did you hide something from the xml? Mar 16 18:36:36 a few things but there are not in this part of the layout Mar 16 18:36:43 so they shouldn't affect it Mar 16 18:36:44 thepossh Mar 16 18:36:54 thepoosh: is it horizontally scrolling? Mar 16 18:37:00 yes Mar 16 18:37:01 thats so weird lol Mar 16 18:37:09 messed up Mar 16 18:37:13 wonder if padding is being applied by the styles? Mar 16 18:37:13 are you setting the toolbar in your activity? Mar 16 18:37:26 only happens if there are not enough items to scroll Mar 16 18:37:28 the up button and the menu button are added by you to the toolbar? Mar 16 18:37:34 yes Mar 16 18:37:55 up navigation and menu are in the toolbar Mar 16 18:37:58 why not open up hierarchy viewer and see whats causing it Mar 16 18:38:04 I did Mar 16 18:38:07 and? Mar 16 18:38:10 the screenshot is from there Mar 16 18:38:20 it changed to wrap Mar 16 18:38:23 dunno why Mar 16 18:38:23 what does it say the space is on the r/l? Mar 16 18:38:44 sec Mar 16 18:38:55 can you paint your recyclerview's background? Mar 16 18:38:59 or enable viewbounds Mar 16 18:39:12 are you sure it really isn't occupying full width? Mar 16 18:39:27 maybe it is and the problem is not the recyclerview, but it could be a problem with the adapter's layout Mar 16 18:40:01 ? no^ Mar 16 18:40:23 probably not but who knows Mar 16 18:40:31 anyway just replace toolbar for a relativelayout or whatever Mar 16 18:40:36 you're adding everything manually anyway Mar 16 18:41:19 it is not Mar 16 18:41:40 the red square is the RecyclerView in the hierarchy viewer Mar 16 18:42:35 oh okay Mar 16 18:42:47 it's probably toolbar messing with your recyclerview Mar 16 18:42:58 wtf Mar 16 18:43:08 http://imgur.com/0Odkkzn Mar 16 18:43:18 here is a screenshot wrapping the toolbar Mar 16 18:43:25 are you using setSupportActionBar ? Mar 16 18:43:39 oh wow Mar 16 18:43:42 yeh toolbars are messy Mar 16 18:43:45 I don't use them Mar 16 18:43:50 Just use a regular layout to the same effect Mar 16 18:43:58 Relative or Linear Mar 16 18:44:27 is there a way to have longpress poweroff work even when device is locked? Mar 16 18:44:45 casadogg: not using setSupport since it's in the layout Mar 16 18:44:53 blocky: yes Mar 16 18:45:16 casadogg: it used to be a 3rd party lib view there Mar 16 18:45:20 which worked fine Mar 16 18:45:33 wondering wtf happened Mar 16 18:45:53 the toolbar is taking up the entire layout width Mar 16 18:46:03 it's just that it's forcing the recycler to not Mar 16 18:46:12 can you change android:layout_gravity="center" to center_horizontal Mar 16 18:46:13 ? Mar 16 18:46:13 maybe I'll set new LayoutParams to it Mar 16 18:46:25 will try Mar 16 18:46:28 just a sec Mar 16 18:46:33 thepoosh: any suggestion on where to look? i've checked frameworks/base/core/res/res/values/config.xml Mar 16 18:47:47 blocky: are you trying to programmatically do this? Mar 16 18:48:05 casadogg: still nothing Mar 16 18:48:49 thepoosh: i want a system wide setting so that holding down the power key for 2 seconds generates the same event when the screen is locked that it does when the screen is unlocked Mar 16 18:49:25 not gonna happen unless you're building your own Android build Mar 16 18:49:29 so even if the device is locked, power key for 2 seconds will bring up the power menu (or in my case, since i've disabled it, reboot immediately) Mar 16 18:49:32 thepoosh: i am Mar 16 18:49:42 thepoosh Try to remove the gravity altogether then Mar 16 18:49:53 Docs say the toolbar tries to center based on the available space Mar 16 18:51:11 and I mean the layout_gravity from the recycler view Mar 16 18:51:24 k Mar 16 18:51:27 2 seconds Mar 16 18:51:34 trying the LayoutParams thing first Mar 16 18:54:33 Anyone here used Chartboost with their android project before? Mar 16 18:56:20 sorry about that, stupid battery life Mar 16 18:56:27 what did I miss? Mar 16 18:57:03 thepoosh: my question if you've used Chartboost in your app before or not Mar 16 18:57:04 ? Mar 16 18:57:35 chartboost?! Mar 16 18:57:38 defaq is that? Mar 16 18:57:52 the answer seems no Mar 16 18:57:54 lol, why don't these things ever get fixed ... https://code.google.com/p/android/issues/detail?id=61170 Mar 16 18:58:18 thepoosh: any suggestions on where i can look in the source tree to enable the behaviour i want? Mar 16 18:58:19 pretty much why i don't bother submitting bugs against aosp Mar 16 18:58:19 android documentation is lacking... Mar 16 18:58:32 (tools, support lib are different matter) Mar 16 18:59:30 don't get me started on play-services documentation Mar 16 18:59:33 they suck Mar 16 18:59:40 oh haha yes they do Mar 16 19:00:09 between the docs and emus not having latest versions, i really don't want to use GMS ... Mar 16 19:00:16 g00s: I've seen worse though Mar 16 19:00:44 thepoosh not from a company google's size though Mar 16 19:00:49 I complained to a company that had under the "API references" page sort of socumentation Mar 16 19:00:53 *documentation Mar 16 19:01:00 which was more wishful thinking Mar 16 19:01:22 they would throw if you called their method not from an Activity class Mar 16 19:01:30 so no manager code Mar 16 19:01:33 no nothing Mar 16 19:01:52 and to answer your question, not the same size as Alphabet Mar 16 19:01:55 MUHAHAHA Mar 16 19:02:07 lol / sigh Alphabet Mar 16 19:02:35 you gotta respect their lifestyle choices Mar 16 19:02:49 it would be considered not cool not to and Tumbler will come after you Mar 16 19:03:07 christ Mar 16 19:03:13 i don't know what tumbler is haha Mar 16 19:03:15 why hasn't anyone used chartboost here Mar 16 19:03:16 before Mar 16 19:03:17 fuck all that stuff Mar 16 19:03:21 thought it was current year this year Mar 16 19:04:00 casadogg: after removing the layout_gravity, it drew the RecyclerView with wrap_content on the far left (start) Mar 16 19:04:17 Bantalon: what does that even mean? Mar 16 19:04:23 * thepoosh has no context Mar 16 19:04:23 does it matter thepoosh? Mar 16 19:04:31 only one thing matters right now Mar 16 19:04:36 ? Mar 16 19:04:38 black lives Mar 16 19:04:42 LOLLLL Mar 16 19:04:47 i cant for the love of me get this thing to work Mar 16 19:04:51 so annoying Mar 16 19:04:59 Anyone happen to know why if I make changes to my build.prop through ADB Shell and TWRP they do not show up when booted. But when I got back to TWRP and mount the system again I can see those changes. This is on Android N Mar 16 19:05:37 shauder, read the topic Mar 16 19:05:40 Bantalon: Candy Crush mastermind?! Mar 16 19:05:56 that's who gave them their reference Mar 16 19:06:00 what a tool Mar 16 19:06:26 o.O? Mar 16 19:06:38 what are you even saying thepoosh Mar 16 19:07:09 “Chartboost is a must-have for every mobile game developer. If you’re not using it, you’re losing money. Their reach and transparency are just amazing.” Mar 16 19:07:09 — TOMMY PALM, CANDY CRUSH MASTERMIND Mar 16 19:07:16 from the website Mar 16 19:07:44 thepoosh so still wrap_content? Mar 16 19:07:45 geez man Mar 16 19:07:45 and that my friend, is the epidemi of douche Mar 16 19:07:49 casadogg: yeah Mar 16 19:08:01 also, setting width programmatically didn't work Mar 16 19:08:05 can you try replacing the toolbar for a relativelayout? Mar 16 19:08:10 nah Mar 16 19:08:15 c'mon Mar 16 19:08:16 why not Mar 16 19:08:34 because of up navigation and the menu Mar 16 19:08:44 I'll just start reading more RecyclerView code Mar 16 19:08:47 internals are fun Mar 16 19:09:02 anyone know if there's a way to have longpress poweroff work even when device is locked? Mar 16 19:09:10 well have fun Mar 16 19:09:20 fine, laters Mar 16 19:10:22 Hey dear developers, I'm contemplating whether to stay with Android Studio 1.5 or to migrate to 2.0, I'm a newb android programmer Mar 16 19:10:29 any reason I should stay with 1.51? Mar 16 19:10:37 2.0 is beta Mar 16 19:10:39 stability Mar 16 19:11:02 I see Mar 16 19:11:27 Another question: Is there a consensus regarding the layout used to design applications? is RelativeLayout considered bad? Mar 16 19:11:58 use the right tool for the work Mar 16 19:12:03 they offer differnt features Mar 16 19:12:23 no layouts are considered bad, nesting layouts deeply is bad Mar 16 19:13:08 I see. Any good reads regarding layouts and how to choose them according to my goal? Mar 16 19:16:11 the reference apidoc Mar 16 19:31:13 help! the PHP intern wants me to consume the images from the API as base64!! Mar 16 19:31:26 what should I tell him? Mar 16 19:31:43 "quick! smell this nice chloroform!" Mar 16 19:32:08 seriously Mar 16 19:32:22 how am I going to use Picasso and Caching Mar 16 19:32:26 decode them Mar 16 19:32:31 what about performance impact in lower devices Mar 16 19:32:44 you want to send or receive images Mar 16 19:32:56 i know it's tecnically possible , my question is.... is there a point to it?? Mar 16 19:33:09 just talking about consuming Mar 16 19:33:09 is it in json Mar 16 19:33:20 like images from a timeline, for instance Mar 16 19:33:23 other than that i dont see a point Mar 16 19:34:09 well we always use json alright. but it comes with the URL of an image Mar 16 19:34:31 like thumbnail_url: "somefolder/img1.jpg" Mar 16 19:35:14 why dont serve the image as is Mar 16 19:35:23 did he learn about base64 recently Mar 16 19:36:30 Picaso handles the caching and alot of the head aches for you Mar 16 19:36:54 and it's easy to implement Mar 16 19:37:35 Ashiren: probably because he only knows how to do it this way? Mar 16 19:37:49 Any of you guys uses Retrofit 2? Mar 16 19:38:23 I do Mar 16 19:38:43 is this the real JW? Mar 16 19:40:11 i do Mar 16 19:41:04 So when you have JSOn with nested elements, does that change anything in the way you implement Retrofit? Mar 16 19:41:27 I want you to take a look at this question please : http://stackoverflow.com/questions/35962112/retrofit-2-in-android-after-implementation-where-are-my-json-elements Mar 16 19:42:11 Hello everybody. Have any of you encountered the following: An HTML form will not submit when clicking on the submit button inside a WebView. This is happening to my HTML code as well as Google and Disqus login forms. Thanks. Mar 16 19:43:15 yninja_, I never used ArrayList with my Retrofit objects Mar 16 19:43:33 always use array for some reason Mar 16 19:44:07 yninja_, sorry to long a question :( Mar 16 19:45:11 no worries Mar 16 19:47:06 ynin Mar 16 19:47:11 ffs Mar 16 19:52:25 hi all Mar 16 19:52:49 can somebody help me out with in app billing in an android app Mar 16 19:53:02 trying to implement the routine, but it just wont work Mar 16 19:54:35 https://support.google.com/googleplay/android-developer/troubleshooter/3076003 Mar 16 19:55:29 if your app is already published Mar 16 19:55:46 no its not Mar 16 19:55:57 im in the very early state Mar 16 19:56:13 trying to get it running at my dev machine Mar 16 19:56:28 i created some products and now would like to query them Mar 16 19:56:36 yninja: Why arent you just using the built in json converters with reotrifit Mar 16 19:56:43 retrofit* Mar 16 19:56:54 but the IabHelper always returns an empty invetory Mar 16 19:57:17 Using Retrofit 2, with Gson Mar 16 19:57:24 yes Mar 16 19:57:44 Sorry wicked, haven't implemented payment, I'm sure another dev would help Mar 16 20:00:20 ok thanks anyway Mar 16 20:04:39 How do I switch cell radio without switching airplane mode? (yes, I have root) Mar 16 20:06:03 try #android MasterPhi Mar 16 20:06:09 k Mar 16 20:22:12 wickeda, iab only works for published apps. you must at least publish an alpha or beta for testing Mar 16 20:22:25 that i did Mar 16 20:22:45 is it possible to debug the iab Mar 16 20:23:02 or does it only work with the uploaded version Mar 16 20:23:14 iirc the versionCode must match Mar 16 20:23:19 and maybe signing Mar 16 20:23:21 but thats all Mar 16 20:24:54 i uploaded the signed version, but im currently working in the android studio and just trying to debug the code which should give me all available products Mar 16 20:25:39 or do i have to install the alpha version on the phone and attach the debugger to that one Mar 16 20:26:01 not rally intuitive the whole thing :) Mar 16 20:26:43 you cant debug a production apk Mar 16 20:26:51 you need to build it debugable Mar 16 20:27:14 Does anyone here already know of an XPosed mod to circumvent the "Google Play Services needs this permission to work" message? Mar 16 20:27:26 Or in which class that's done? Mar 16 20:28:14 Is there a way to toggle radio other than airplane more? I found AIRPLANE_MODE_RADIOS, which could be set to just `cell`. But that seems like a horrible approach. Mar 16 20:30:44 danijoo, can i write you a pm Mar 16 20:32:01 lets keep it in the channel ;) Mar 16 20:32:14 ok Mar 16 20:32:45 can i debug iab in the emulator? Mar 16 20:36:19 or better said, do i have to debug the exactly version of the app which i published (means i have to install it on my phone) or can i just use the android studio to debug the app Mar 16 20:36:24 g00s: just figured out my issue Mar 16 20:36:29 with the recyclerview Mar 16 20:36:39 that is the good part Mar 16 20:36:56 the bad one is that i need to write a custom LayoutManager Mar 16 20:36:59 :S Mar 16 20:37:19 Dun dun DUUUN. Mar 16 20:37:42 thepoosh haha fun times ahead for you too :) Mar 16 20:37:55 that sucks ass Mar 16 20:38:04 wickeda, no. not the exact version but i think it must have the same versioncode and be signed with the same certificate Mar 16 20:38:14 thought this whole dropping 3rd party libs for native Android is gonna be easy Mar 16 20:38:15 thepoosh did you see ave smiths video on writing layout managers ? Mar 16 20:38:37 and what 3rd party lib did you have to drop ? Mar 16 20:38:38 a bit Mar 16 20:38:47 AndroidHorizontalListView Mar 16 20:39:05 hmm but when i just execute the project in the android studio in the debug mode its not automatically signed. right? Mar 16 20:39:07 sounds like horizontal recyclerview legacy Mar 16 20:39:22 wickeda, its singed, but with a debug key Mar 16 20:39:28 and not your signing key Mar 16 20:39:33 unless you tell it to do so in gradle Mar 16 20:39:48 thepoosh i thought linearlayoutmanager can do that Mar 16 20:39:59 Does RxJava have any operators that let you combine all incoming items? Mar 16 20:40:11 merge() ? :) Mar 16 20:40:20 damn, this was my only clou why its not working :) Mar 16 20:40:24 g00s: it encapsulates it's OrientationHelper Mar 16 20:40:32 Oh, I'll check that out. I was thinking that merge was for observables Mar 16 20:40:40 which is the one that causes the wrap_content parts Mar 16 20:40:45 that's how it works Mar 16 20:41:04 g00s: https://github.com/MeetMe/Android-HorizontalListView Mar 16 20:41:09 Fun fact: I checked every single Google app. Keep is the only one refusing to work if you deny GSF the permission for telephony. Mar 16 20:41:21 konk3r, do you mean from all observables or combine all emitted items from one observable Mar 16 20:41:39 I'm looking to combine all emitted items from one observable into a set Mar 16 20:41:43 So like a custom .toList Mar 16 20:41:58 oh whats the accumulate() thing Mar 16 20:42:38 In this instance, for every element in an array I want to pull out it's children and then return an array that has all parent and children objects Mar 16 20:43:19 In another instance I want to take an array of strings and merge them into a single string separated by commas Mar 16 20:43:46 konk3r, eventually reduce? not sure :/ Mar 16 20:44:27 Oooh, reduce looks promising Mar 16 20:53:59 konk3r also look at collect Mar 16 20:54:05 maybe scan Mar 16 20:54:10 Awesome Mar 16 20:54:57 "I/O 2016 Rejections Going Out " Mar 16 20:57:48 yep, already got my rejection Mar 16 21:02:39 me too Mar 16 21:02:50 hopefully being on a google project will help me get tickets Mar 16 21:03:36 Bah. Mar 16 21:03:44 WWDC it is then. Mar 16 21:04:03 yup. at least I won’t get sunburned there Mar 16 21:06:47 you're on a google project? which? Mar 16 21:07:22 not a project for google, but one that has google backing Mar 16 21:07:40 practically same thing Mar 16 21:14:59 s73v3r thats cool Mar 16 21:28:49 since you said you're on a google project, you're practically obligated to say what it is :P Mar 16 21:30:45 more like the opposite :D Mar 16 21:30:57 if that were the case, should never have mentioned it at all Mar 16 21:32:36 Maybe it's YouTube app :P Mar 16 21:32:45 I wouldn't dare mention that either ;) Mar 16 21:33:38 that thing is awful, yo dawg nav drawer in your tab Mar 16 21:34:13 hi Mar 16 21:34:16 g00s can u help me with something Mar 16 21:34:25 no Mar 16 21:34:29 t.t Mar 16 21:34:42 i need help channel android-dev. in = con.getInputStream(); <- returns null Mar 16 21:34:52 i thoguht it was a thread isue, so i did an asynctask on it but nothing changed Mar 16 21:34:53 read the docs to see why it can return null Mar 16 21:35:08 particularly, it returned an error code that you ignored Mar 16 21:35:39 ? Mar 16 21:35:48 in my stacktrace? Mar 16 21:36:49 read the docs Mar 16 21:38:49 I guess it doesn't say why it could be null, that's awesome Mar 16 21:40:57 yeah =/ Mar 16 21:41:02 * pfn shrugs Mar 16 21:42:24 I got a weird invite to google i/o, guaranteed ticket Mar 16 21:42:25 I don't know why Mar 16 21:42:41 whats weird about that? Mar 16 21:43:19 did you get a rejection? if not, how's that weird Mar 16 21:43:51 no, I got the email on march 8th Mar 16 21:44:08 "You're invited to purchase a General Admission ticket for Google I/O’16." Mar 16 21:44:09 anyone know is the "token type" in HTTP authoriaztion header case sensitive? Like Authorization / Basic blahblah or Authorization Bearer Mar 16 21:44:11 seems like the I/Os are becoming less tech focus, more like showcase of stuff being worked on. and then there are these dev summits ... Mar 16 21:44:12 you work with a google vendor Mar 16 21:44:16 should the Basic and Bearer be capitalized? Mar 16 21:44:31 I know people that got IO tickets last week as google partners Mar 16 21:44:36 maybe, but I'm not sure why I in particular got one Mar 16 21:44:50 you're special Mar 16 21:45:25 but yeah, I'm hating google IO, it's a rejection fest every year Mar 16 21:45:46 meh Mar 16 21:46:19 still, can’t wait to see /r/android start complaining that the only reason they didn’t get one was “journalists and people scalping the swag" Mar 16 21:46:30 journalists automatically get tickets Mar 16 21:46:31 even though that hasn’t been true for years, if it ever was Mar 16 21:46:39 i know. that’s why it’s in quotes Mar 16 21:46:59 and scalping hasn't really been a thing since the ticket prices went up stupidly, and the amount of swag decreased Mar 16 21:47:02 g00s: yeah, some of the other events have been far more tech focussed Mar 16 21:47:09 is the whole thing outside ? Mar 16 21:47:21 or just the keynote ? Mar 16 21:47:28 the venue is outdoors Mar 16 21:47:39 >.> Mar 16 21:47:45 they'll probably setup a shitton of tents and pavillions Mar 16 21:48:44 I'd rather spend the money on a trip to wwdc :( Mar 16 21:49:16 then don't take the ticket and let the spot free up :p Mar 16 21:49:37 if it’s a special ticket, I don’t think it’ll go back into the general population Mar 16 21:49:50 it should still Mar 16 21:50:04 partner tickets are free, I understand Mar 16 21:54:47 I can't see a way to transfer it :( Mar 16 21:58:16 . Mar 16 22:25:05 when i debug an expcetion and move my mouse over the variable why does it say "cannot fnid local variable" Mar 16 22:26:45 cause you’re outside the scope of that variable Mar 16 22:29:01 android.os.NetworkOnMainThreadException.... i used asynctask and i still get this msg Mar 16 22:29:02 help ? Mar 16 22:29:18 btw this happens when i try InputStream is = con.getInputStream() Mar 16 22:43:48 you didn't do it in async task then Mar 16 22:43:57 stacktrace and code Mar 16 22:44:27 http://www.nytimes.com/2016/03/17/technology/personaltech/make-a-samsung-smartphone-great-by-switching-out-its-apps.html Mar 16 22:44:46 yeah but , why spend 700-800 on device and have to even go through this ;) Mar 16 22:46:10 so essentially "uninstall all the samsung stuff and make it look and feel like stock android" Mar 16 22:46:31 http://pastebin.com/e68MKnTA line 19 is my issue... Mar 16 22:46:47 now if only they had an option to remove the useless middle button and move the back button ;) Mar 16 22:47:09 android.os.NetworkOnMainThreadException. Mar 16 22:49:04 for custom layouts, is there a call that comes after onLayout is done? Mar 16 22:49:28 bankai_ u there? Mar 16 22:49:51 i need to fetch an image from a server, and part of the params are the width and height. Can’t get them from the ImageView until it’s been laid out Mar 16 22:51:11 bubbely, execute Mar 16 22:51:22 you don't call doInBackground Mar 16 22:51:34 new go().execute(); Mar 16 22:51:51 stack or it didn't happen Mar 16 22:51:58 stack Mar 16 22:54:09 http://pastebin.com/GxT3nW1H Mar 16 22:54:40 what is it with people’s stacktraces being so weird with the line breaks? Mar 16 22:56:29 s73v3r: i've noticed that too, something AS related? Mar 16 22:56:42 no idea Mar 16 22:58:53 bubbely: this isn't a android.os.NetworkOnMainThreadException -- did you paste the right ST? Mar 16 22:59:44 yea....i surpassed that error Mar 16 23:00:00 this break is my actual problem Mar 16 23:00:15 you're using something that doesn't exist for android Mar 16 23:00:31 pfn: a java feature ? Mar 16 23:00:46 pfn: this is a java library not an andriod one Mar 16 23:00:54 not available on android Mar 16 23:02:00 hmm wihch part ? Mar 16 23:04:27 the part that it says is not available, your stack says what it is Mar 16 23:10:04 978-5855/? E/AudioFlinger: read failed: framesRead=-1 < this is spamming my monitor how do i turn it off Mar 16 23:19:55 anthing wrnog with this ? http://pastebin.com/S4xQ8Xhp Mar 16 23:20:39 stack or gtfo Mar 16 23:20:44 ok Mar 16 23:21:53 this isn't crashing... im just receiving null as my inputstream Mar 16 23:22:11 that never happens Mar 16 23:24:30 this is hte source from the library... i cant look deeper into var18 because the library is readonly? or out of scope? how can i check this value in this situation Mar 16 23:24:49 oh Mar 16 23:24:50 foud it Mar 16 23:24:53 foudn it* Mar 16 23:24:55 no stack tho- android.os.NetworkOnMainThreadException Mar 16 23:26:57 Well, wind blew out my power for a few hours Mar 16 23:30:11 the error is clear Mar 16 23:31:07 ? Mar 16 23:31:18 g00s: I'm checking out the difference between collect and reduce right now Mar 16 23:32:14 android.os.NetworkOnMainThreadException Mar 16 23:32:16 And pfn: I figured out the cause of my 90 MB activity of textviews, Jsoup appears to have a 40MB overhead for just running Mar 16 23:32:37 There were two small html tables that I was parsing to pull out data Mar 16 23:32:44 pfn: asynctask didnt fix it. whats your idea Mar 16 23:33:10 no idea what you're doing, I have no suggestion for you Mar 16 23:33:17 you have the clear error, fix it Mar 16 23:39:16 AS 2.0 B7 Mar 16 23:39:55 does anyone know why i am getting the following volley error (ava.io.File android.content.Context.getCacheDir()' on a null object reference) i have created a new activity and calling the following method from my mainactivity http://pastebin.com/DCrNqBLc Mar 16 23:46:39 ok, i’ve obviously missing something, if i run the code on my mainactivity works fine, do i need something to manifest for my new activity? Mar 16 23:49:46 obey the lifecycle Mar 16 23:50:21 lifecycle is life Mar 16 23:53:30 ok, so i’ve added my activity to my manifest, is there anything esle i am missing? Mar 16 23:53:35 Hi. I would need a little hint as to how best to handle UI thread, I was under the impression that the threads executed in the same order they are put in would also work on the ui, but apparently they do not, what happens here, is that the display of a message is shown first and then the progressbar appears, and that means it stays, I also tried invalidating the screen to force a rerender but that does not work, any suggestions are apprechiated ht Mar 16 23:58:09 sry was disconnected Mar 16 23:58:49 sry was disconnected Mar 17 00:01:09 sry was disconnected and again, this connection sucks Mar 17 00:02:14 anyone have experience activating a nexus device on Verizon? Mar 17 00:02:30 i'm making my way trhough the phone menus lol Mar 17 00:22:13 so I might actually get to attend google io Mar 17 00:22:26 no, you can’t Mar 17 00:22:35 company might send me Mar 17 00:22:42 no idea why, but they were invited Mar 17 00:22:57 Company is lying to keep you around for another month Mar 17 00:23:15 maybe Mar 17 00:23:24 they are definitely sending some employees there Mar 17 00:24:59 good luck Mar 17 00:26:35 I dunno wtf I would be doing there Mar 17 00:26:59 guess I could take credit for everyone's work Mar 17 00:29:51 so i’ve added my activity to my maniest but sitll facing the same volley error (ava.io.File android.content.Context.getCacheDir()' on a null object reference) i have created a new activity and calling the following method from my mainactivity http://pastebin.com/DCrNqBLc Mar 17 00:47:09 i'd rather go to a dev summit Mar 17 00:47:27 i think the i/o will be glitz for reports etc Mar 17 00:47:45 dev summits aren't interesting Mar 17 00:47:58 new products are Mar 17 00:48:27 you can just read about those :) Mar 17 00:48:54 i'd rather go and meet the android devs, talk, discuss android stuff Mar 17 00:49:34 dev summit > io Mar 17 00:49:34 beside we already have N preview haha Mar 17 00:50:25 which is buggy as shit lol Mar 17 00:50:30 at least on the 5x Mar 17 00:50:39 i'm trying to remember what was announced at the last I/O. oh yeah, brillo ... and thats still in its nascent state Mar 17 00:51:02 its fun to see where the companies priorities are, i can watch a keynote for that on youtube Mar 17 00:51:13 lol Mar 17 00:51:46 an announcement at I/O is pretty much a kiss-of-death thing Mar 17 00:52:29 RIP Nexus Q Mar 17 00:52:41 its also like, "we're working on something, and you may see it sometime for real the next I.O" Mar 17 00:53:01 jug6ernaut what is that ? Mar 17 00:53:06 * jug6ernaut still wants google glass Mar 17 00:53:13 they are still working on that Mar 17 00:53:41 g00s so im told :\ Mar 17 00:53:55 nexus q http://cnet2.cbsistatic.com/hub/i/r/2012/06/28/4a4924d7-8bb7-11e3-a24e-d4ae52e62bcc/thumbnail/770x433/83dfe902944198190e8fedededccf57b/GoogleNexusQ_35339164_04.jpg Mar 17 00:54:27 i don't remember that thing Mar 17 00:54:32 does it roll ? Mar 17 00:54:59 does not Mar 17 00:55:10 it did light up tho in pretty colors Mar 17 00:55:16 heh Mar 17 00:55:36 thats cool, companies have to experiment and fail Mar 17 00:55:45 i applaud that spirit ;) Mar 17 00:56:29 just dont have your project announced at google io lol Mar 17 00:56:37 jug6ernaut that hole on the right, looked like a bowling ball - then i noticed the cable Mar 17 00:56:47 lol Mar 17 00:57:02 that would look kinda cool going down the lane with that light Mar 17 00:57:05 night bowling Mar 17 00:57:56 sounds like a good idea to me Mar 17 01:05:22 chromecast replaced the q Mar 17 01:06:18 pfn didnt the q have a lot more music focused features Mar 17 01:15:54 not much Mar 17 01:33:49 would be it possible to write an extension for the android tools that lets you group resources into packages? Mar 17 01:34:27 somehing like R.layout.home.list_item Mar 17 01:34:33 no Mar 17 01:35:08 why is it impossible to extend? Mar 17 01:36:23 read the source to aapt and decide for yourself Mar 17 01:37:45 I thought i'd just ask someone who's already read it :p Mar 17 01:37:50 If you just want to group resources together into different folders just for visual organization, theres a way to do that. Mar 17 01:38:11 bleh c++ Mar 17 01:38:44 right, but its effectively the same as dumping everything in the same folder Mar 17 01:39:12 Helps if you have many layouts and want some organization. Mar 17 01:39:34 encapsulation would be pretty neat Mar 17 01:40:29 R.id.mainactivity.heading_text would be nicer than R.id.main_activity_heading_text Mar 17 01:40:39 huh and also AS 2.1 preview 3 out Mar 17 01:40:49 must be hard working on 2 previews at once Mar 17 01:41:16 i would have thought, maybe they just merge them Mar 17 01:50:02 google's source code is so beautiful Mar 17 01:50:13 this is the nicest looking c++ i've seen Mar 17 01:54:27 Has anyone here ever dealt with "java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position x(offset: y)" before with RecyclerView? Mar 17 01:54:52 I've been trying to look it up and it looks like it may be a bug in LinearLayoutManager Mar 17 01:56:14 konk3r are you doing things with animations ? Mar 17 01:56:20 Nope Mar 17 01:56:50 at the dev summit, yigit mentioned a few things not to do with RV Mar 17 01:57:01 It *only* happens when I turn off the screen and turn it back on Mar 17 01:57:15 then you're probably doing something wrong Mar 17 01:57:19 Unless... Mar 17 01:57:39 unless you have absolutely uncovered that it is a bug, it isn't a bug Mar 17 01:58:33 Oh, I bet I know what it is Mar 17 02:00:10 today was a relaxing day, took time off to draw icons. kinda nice to change gears and have fun drawing ;) Mar 17 02:05:29 anyone here know anything about the storage access framework? Mar 17 02:08:49 Alright, I think I figured it out. Testing my hunch Mar 17 02:09:05 pfn: I said I thought it was a bug because I saw several bugs filed around it already reported to google Mar 17 02:10:31 But you're right, user error Mar 17 02:11:49 well why don't I just ask my SAF question and see if anyone knows... Mar 17 02:12:07 if you open a file from a URI, and late rsave it from a URI-- how do you check for intervening changes from some other device? Mar 17 02:12:23 sync adapter or something? Mar 17 02:12:28 check the modification time? Mar 17 02:12:56 I'm not sure if there's anything built in for that, I'd go with the modification time if you can't find anything specifically for it Mar 17 02:13:36 konk3r: seems weird because you're supposed to use this file picker to choose/save files,but there' sno discussion of what happens if you do this on multiple devices say... do they clobber each other's changes, etc. Mar 17 02:13:44 I think the answer is yes to that. Mar 17 02:13:57 but how to check, etc. Mar 17 02:14:57 considering espcially that when you're using a documentsprovider, you don't even know what type of provider (cloud, file, etc.) you're writing to... Mar 17 02:15:05 how do you handle a user session and logging out from any page in the app? Mar 17 02:15:26 page in the app? Mar 17 02:16:06 a page. Like what you see on the screen Mar 17 02:16:19 then you might click a button which takes to another page Mar 17 02:16:28 what term would you use? Mar 17 02:17:40 RustyShackleford: Use an overflow menu with a logout option? Mar 17 02:18:46 sorry I'm not being clear. Suppose if your user closes your app without logging out, the users session would time out after X mins Mar 17 02:19:02 konk3r, it almost always is, including "bug reports" Mar 17 02:19:35 Well, google confirmed that what was reported was a bug, it just wasn't exactly the same scenario I was seeing Mar 17 02:19:36 and you want to clear any cached user data, destroy any activities Mar 17 02:19:46 RustyShackleford: sounds like you mean an "Activity"? Mar 17 02:19:57 or RustyShack Mar 17 02:20:09 fattire: well you could have an activity which swaps out fragments Mar 17 02:20:22 and the user could not tell you the difference between each "page" Mar 17 02:20:35 RustyShackleford: Just spitballing but you could fire off a background service and after x minutes perform any logic you want. Whats the use case here though Mar 17 02:20:44 RustyShackleford: are you asking how to keep a user session of some sort when your activities quit? Mar 17 02:20:48 a service is the answer I think Mar 17 02:21:19 RustyShackleford: a service is a kind of headless activity that exists in the background and does stuff Mar 17 02:21:28 maybe faceless Mar 17 02:21:55 services don't do stuff Mar 17 02:22:04 orbyt_: I mean, anything app that would involve logging into an account Mar 17 02:22:14 *any app Mar 17 02:23:27 I wrote the biggest hack ever at work to handle this. Showed the architect and he's fine with it, i was shocked Mar 17 02:23:40 RustyShackleford: My point was usually people are trying to persist user sessions, not the other way around, unless you had a very specific use case to do so. Mar 17 02:23:52 financial data Mar 17 02:24:07 or anything you'd want to keep private really Mar 17 02:24:25 not that keeping it in memory is that risky, but if you wanted to be super careful Mar 17 02:25:27 1) Session times out 2) logout logic finishes all activities, clears cache, and creates LoginActivity Mar 17 02:26:14 problem is if the app is in the background when this happens, startActivity will cause our app to steal focus Mar 17 02:26:38 then don't start activity while. in background Mar 17 02:26:42 Maybe store a timestamp in shared preferences and when its resumed check the timestap and reset the session if necessary. Not sure how viable or secure it is for your situation though. Mar 17 02:27:16 pfn: the whole app is designed for this behavior. Needs to be rewritten IMO Mar 17 02:27:44 my hack: step 1.5) spawn a thread and wait for onResume() Mar 17 02:28:17 it works but its so dumb Mar 17 02:28:31 I don't like it Mar 17 02:28:42 why so lame Mar 17 02:28:53 create a service which represents user session Mar 17 02:29:02 start a timer on pause Mar 17 02:29:16 user is logged in as long as the service is running Mar 17 02:29:53 can I use the service as the user's data cache also? Mar 17 02:30:17 UserSessionService = timer + user data Mar 17 02:30:55 Alright, confirmed: I was replacing the adapter on a list without notifying the dataset had changed before I tried adding new items to it Mar 17 02:30:57 do whatever makes sense Mar 17 02:31:32 i've never worked on anything this huge. refactoring is intimidating Mar 17 02:32:35 refactoring is fun :) Mar 17 02:33:46 if you can make it compile and run again Mar 17 02:36:14 better than any scripting languagr Mar 17 02:36:27 where you never know if shit will work post refactor Mar 17 02:37:16 just cause it compiles doesn't mean it will work Mar 17 02:42:26 for the most part it practically does Mar 17 02:45:04 pfn what did you mean a service doesn't do stuff? Mar 17 02:45:21 it doesn't, it is simply a lifecycle container Mar 17 02:45:50 it's up to the developer to make it do something, the lifecycle methods inherently do nothing Mar 17 02:46:05 I'm totally confused, maybe we have different undersandings of what doing stuff means Mar 17 02:46:17 I mean if you wan tsomething done in the background w/o a user-facing activity for exampnle Mar 17 02:46:23 stick it in a service and let it do that stuff Mar 17 02:47:06 obviously it's up to the developer to make it do something, but that's true for an app generally Mar 17 02:47:29 am I missing something? Mar 17 02:47:38 i think google should have just had Context.ImDoingStuff() and Context.I'mDoneDoingStuff() Mar 17 02:48:13 getApplication().doStuff() Mar 17 02:48:41 pfn: String s = null; s.length() **** ENDING LOGGING AT Thu Mar 17 02:59:58 2016