**** BEGIN LOGGING AT Sun May 03 03:00:00 2015 May 03 03:00:02 well you could have a look if you find out what request data images.google.com needs to run the query May 03 03:00:24 and then send a POST request May 03 03:01:05 might not be the ideal way but it should work. only if you find out the parameters necessary May 03 03:03:36 yeah true May 03 03:03:41 probably a breach of TOS though May 03 03:03:51 yep May 03 03:04:28 correct upload url would be images.google.com/searchbyimage/upload May 03 03:04:58 I don't want to search by image, I want the user to search by text May 03 03:05:05 ahh okay May 03 03:05:12 like they type in "house" and see images of houses, then they choose one and I get its url May 03 03:05:28 lol okay gotcha May 03 03:05:31 sry im tired May 03 03:05:34 its 5 in the morning May 03 03:05:38 :) May 03 03:09:06 in that case it might help you to see this: http://stackoverflow.com/a/11206266 May 03 03:09:20 havent tried it myself but it could be possible to reduce it to images only May 03 03:14:39 still not the desired way to do this since you do not have the rights to use those images necessarily duncannz May 03 03:15:02 karlsve: that's the user's problem though if they choose to use a copyrighted image May 03 03:15:14 thanks for the link I'll try it May 03 03:15:33 well u use the image tho if you display it in your app technically May 03 03:17:46 well, chrome "uses" the image, if it's displayed on a website May 03 03:18:04 Okay im up for way too long. My english gets worse by the minute. And I'm tired of trying to uninstall visual studio so, good night. May 03 04:03:32 wow, didn't realize recyclerview was almost 9000k lines - but with comments May 03 04:04:09 Not too many comments I hope, or they might slow down the animation May 03 04:05:25 thats not even the layoutmanagers :) May 03 04:07:00 oh haha, i knew the google guys were trolling us; doesn't implement any of the nestedScolling stuff May 03 04:07:14 yey, so much for that May 03 04:08:24 9000k lines!! :) May 03 04:08:47 That's one heck of a java file May 03 04:09:33 It's library code, you should always look at library code with a very different brain filter. May 03 04:09:34 People writing this code don't follow the same rules as regular developers May 03 04:09:38 that would be what, 360mb, assuming the average line size is 40 characters. May 03 04:09:40 See Dianne's famous rant about enums May 03 04:11:15 linearlayoutmanager is ~ 2k May 03 04:27:08 g00s: nested is coming May 03 04:27:24 JakeWharton to support RecyclerView ? May 03 04:27:27 yes May 03 04:27:38 ah great ... i wasn't going to figure that one out :) May 03 04:47:08 Android Endless RecyclerView. Get first and last visible items for any LayoutManagers. May 03 04:47:09 https://gist.github.com/mipreamble/b6d4b3d65b0b4775a22e#file-recyclerviewpositionhelper-java May 03 04:47:24 Review this for me. Thanks. May 03 05:24:50 900 lives of xml later i have this: http://imgur.com/P1bqya2 May 03 05:25:35 mastermind. the most boring board game ever May 03 05:25:42 agreed May 03 05:25:54 doing it for a friend though May 03 05:26:07 he made an ios version May 03 05:26:14 ok May 03 05:26:36 i do remember the pic, from yday or so May 03 05:26:42 kudos on matching the graphics May 03 05:27:34 thanks, its not exact but good enough i think May 03 05:31:16 DadFoundMy did you use GridLayout ? May 03 05:31:27 No but i should have May 03 05:31:37 It's seval linear layouts May 03 05:31:37 hehe May 03 05:31:54 .... i might be using nested weigts :D May 03 05:32:00 boo May 03 05:32:10 yeah... i just wanted to get it done May 03 05:33:05 i started to use GridLayout but since I didn't have much experience with it i was running into a lot of issues May 03 05:33:38 samsung has a good gridlayout tut May 03 05:34:08 ill check it out, i couldnt really find any good ones May 03 05:34:31 doesn't matter, optimize later May 03 05:34:35 i had no idea samsung did tutorials May 03 05:34:36 http://developer.samsung.com/android/technical-docs/GridLayout-in-Android May 03 05:34:42 ship first May 03 05:35:10 I prefer first make it work, then make it fast, then ship it May 03 05:35:30 JakeWharton: you would probably know the answer. How awful is it really to used a nested weight here or there? May 03 05:37:40 first ship it, and then try to make it work, and then grab the money and run! May 03 05:39:15 My favorite is make it work, let someone else make it fast, ship it. Then, profit. May 03 05:40:36 I'm all for performance optimizations, but doing so at the expense of actually making your app is idiotic May 03 05:41:10 there's a balance May 03 05:41:17 find what's right for you May 03 05:41:27 user's don't care about GridLayout vs nested LinearLayouts May 03 05:42:01 why go into technical debt, when you can just use the right layout ? May 03 05:42:03 maybe you drop one frame when you inflate your layout whereas a week's worth of custom layouts would save that frame May 03 05:42:12 no one cares May 03 05:42:26 it's only debt if you intend to pay it off May 03 05:43:15 and ... thats how we got android May 03 05:43:17 :D May 03 05:43:24 Hey now May 03 05:46:15 all g00s does is complain May 03 05:46:57 this is why you don't do nested layouts DadFoundMy https://stackoverflow.com/questions/17493819/is-android-layout-really-exponentially-hard May 03 05:47:29 "onMeasure()... it gets called 2^depth times." May 03 05:47:41 i do nested layouts May 03 05:47:56 nesting 2 layers is fine May 03 05:48:10 unnecessary nested though May 03 05:48:12 3 or more gets slow May 03 05:48:13 romainguy woud be smacking all you guys :) May 03 05:48:23 no he wouldn't May 03 05:48:53 Romain is a pragmatic guy May 03 05:49:24 I think we lost him when GTA 5 came out May 03 05:49:37 yeah, thats why he wrote http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html May 03 05:49:38 Quite possible May 03 05:49:48 That's six years old... May 03 05:50:08 also it's hilarious to think that everyone practices exactly what they preach May 03 05:50:36 it's much easier to give advice than to follow it yourself ;) May 03 05:50:40 yes May 03 05:51:16 Doesn't make the advice less valuable May 03 05:51:27 Is this a channel for Android Internals / arquitecture too? May 03 05:51:27 See that in sports all the time May 03 05:51:34 Alevsk: Sure May 03 05:52:11 Alevsk: not really May 03 05:52:20 Alevsk: maybe May 03 05:52:33 Alevsk if you can actually find somebody that knows internals :) May 03 05:52:47 i kinda do. like a little bit May 03 05:53:25 Nice, I was looking for some lecture recomendations, I just read Android embedded systems and Android Security May 03 05:53:49 Im looking to understand a bit more of the arquitecture May 03 05:54:21 I recall a coursera course going somewhat indepth in the architecture May 03 05:54:27 i dont remember which course though May 03 05:56:37 A friend la mine that works for Intel told me that Android embedded systems was a good start but honestly for me was a bit complicate, I finished the book but I have to reread some chaps again for better understanding May 03 05:56:57 Thanks Im going to look at coursera then May 03 06:09:34 I wonder if anyone pays for the coursera signature track stuff May 03 06:10:03 does it actually really count for anything? May 03 06:10:30 I hear their android app development course recomended a bunch but i thought it was awful May 03 06:15:34 If someone else pays for it, for example ones employer I am sure its worth doing May 03 06:15:49 paying for something like that on you own tho :/ May 03 06:17:44 I have learned a gigantic amount about android programming just watching the scroll in this channel and reading stack overflow. May 03 06:20:36 For learning Android I was following a YouTube channel, awesome material Design tutorials May 03 06:20:56 A guy called slidenerd I guess May 03 06:22:36 haha that guy is funny May 03 06:23:24 Before that I followed the Android tutorials for the new Boston website May 03 06:23:37 Hey guys i was wondeirng there is a took that i can see what http requests app makes? May 03 06:23:55 i learned by reading the first like 50 pages of a book than just started coding May 03 06:24:42 everything just kinda "clicked" unlike a lot of the methods i tried May 03 06:24:43 Tomashe: I use proxy and BurpSuite to intercept my Phone communications May 03 06:25:16 why need a proxy? May 03 06:25:28 tomashe: Charles Proxy is good, there are other proxies May 03 06:25:46 There's also stethos but it's a bit more advanced and I think not as informative as a proxy May 03 06:26:04 ok May 03 06:26:07 i will check them out May 03 06:26:50 Tomashe: I mean, I run BurpSuite in one of my machines and then configure the Android proxy to connect to my machine, then Im able to see and filter the request May 03 06:31:57 Just a Random question, have you ever need to use NDK into your projects? C++ code and stuff? Or just the conventional Android sdk is enough? May 03 06:42:39 Almost never need the ndk May 03 06:42:41 Alevsk use NDK to get closer to linux, Java SDK to get closer to Android. May 03 06:42:47 only for performance critical May 03 06:42:56 or use NDK if you have cross platform code May 03 06:43:02 games, video decoding etc May 03 06:43:02 actually I think its possible to do almost everything in Java, for example I am a long time C/C++ programmer so I was skeptical, in the case of graphic intensive apps, which is all I have done, if you code your own shaders in opengl for graphics stuff, which is of course Cish. But I think its possible to get the gpu to do a lot of stuff and almost all devices have gpus. May 03 06:43:49 so I think Java is ok in the context of android. May 03 06:43:58 ndk for being closer to Linux is a fallacy May 03 06:44:22 I would never code in Java in linux of course May 03 06:44:29 heh May 03 06:44:30 how so pfnQ May 03 06:44:55 because nothing about it is closer May 03 06:45:02 wut May 03 06:45:08 you can't use gtk, no pulse audio May 03 06:45:22 nothing that is typical of "linux" May 03 06:45:24 etc May 03 06:45:52 you can link to any library in your ld path , or include any header in /usr/include, can you not ? May 03 06:49:38 Alevsk anyhow, the NDK has a bad rep. Use it only if you must; sometimes you can use RenderScript to do computationally intensive things May 03 06:51:11 g00s I was reading about that, that is usted mostly for graphics and stuff May 03 06:52:29 Alevsk https://groups.google.com/forum/#!topic/android-developers/m194NFf_ZqA May 03 06:52:46 But I have a couple of c++ tools and I was thinking what is the best, rewrite the tool in Java or use the NDK May 03 06:52:55 i think its just the compute part now May 03 06:53:52 Alevsk hard to say , depends on what apis you need May 03 07:03:32 <_genuser_> g00s yo yo May 03 07:03:42 hi _genuser_ May 03 07:03:51 <_genuser_> what's up? May 03 07:06:52 hm, i'm reading about netty's HashedWheelTimer, pretty cool May 03 07:07:44 <_genuser_> no idea what that is. May 03 07:08:34 netty has some standalone libs you can use May 03 07:08:55 http://netty.io/wiki/using-as-a-generic-library.html#wiki-h2-7 May 03 07:09:12 i'm thinking about using ByteBuf May 03 07:09:51 <_genuser_> intersting stuff. May 03 07:10:03 <_genuser_> I'm also trying to focus on my project a little more instead of killing a saturday... May 03 07:15:15 hello May 03 07:25:47 g00s: May 03 07:25:57 hey thepoosh May 03 07:26:03 _genuser_: g00s and i are online at the same tie May 03 07:26:05 time May 03 07:26:11 g00s: all is good, and you? May 03 07:26:13 thepoosh do you guys use renderscript compute in glide ? May 03 07:26:24 <_genuser_> it's probably the hand off time... May 03 07:26:24 nope May 03 07:26:32 starting a team sync May 03 07:26:36 yeaaah , almost time to zzzzz :) May 03 07:26:39 be back soon May 03 07:26:49 <_genuser_> hehe May 03 09:07:51 mornin May 03 09:12:43 morning it is May 03 10:18:11 I beg to differ :) May 03 10:27:51 Hi, I just installed android studio, but I am wondering if there's a way to speed it up a bit.. it is extremely sluggish even from the start May 03 10:28:19 buy a new machine May 03 10:29:44 can't afford a new machine right now :/ May 03 10:30:30 is Android Studio really that memory hungry? May 03 10:30:39 Does anyone have prob when they try to load there project in android studio and like nexus 6 will not show up in android studio or just me? May 03 10:31:08 markelite: how much ram you have ? May 03 10:31:15 markelite,I use 10gb of ram for android. May 03 10:31:41 shmooz, I have 6GB, I don't even have any other applications open May 03 10:32:26 perlsyntax, I think I had that problem too. do you mean the interface is not showing up? May 03 10:32:33 yes May 03 10:32:51 Yea exactly what I had last night May 03 10:33:05 So it not just me then. May 03 10:33:13 it gave some kind of interface error... May 03 10:33:26 No.. definitely May 03 10:33:36 that in android studio 1.2 right. May 03 10:34:04 iI thought android studio was stable. May 03 10:34:06 Yes May 03 10:34:16 and I am on stable channel May 03 10:34:23 me to May 03 10:35:01 not sure why it does that. May 03 10:35:27 I starting to like android studio to it start doing that. May 03 10:35:42 me neither May 03 10:36:11 perlsyntax, but do you experience sluggishness? May 03 10:36:44 I am more geared towards speeding it up first before resolving other issues. May 03 10:37:02 Nope just when i load my project up that it. May 03 10:37:10 only prob i got. May 03 10:37:12 :) May 03 10:38:28 marklite ,Did it do it in android studio 1.1? May 03 10:38:29 perlsyntax, how about when you switch to perhaps multiple interface or projects rapidly? May 03 10:38:36 does it slow down? May 03 10:39:04 I didn't try that yet. May 03 10:39:28 perlsyntax, I am not sure if it did on the earlier version since I just installed it on my computer May 03 10:40:20 ok May 03 10:40:36 i going to try to restart it to see if i got the same probs. May 03 10:40:44 perlsyntax, did you not change any settings when you install it? May 03 10:40:51 nope May 03 10:41:05 perlsyntax, I don't think that will resolve the problem May 03 10:41:12 i hope reinstall it helps. May 03 10:41:23 i really like work with android. May 03 10:41:34 perlsyntax, that I didn't try.. May 03 10:41:52 are you on a mac? May 03 10:42:08 nope, are you? May 03 10:42:14 yes May 03 10:42:25 perlsyntax, try deleting the sdk as well May 03 10:42:32 i couldn't wait to the new one came out becuase of cpu tool. May 03 10:42:52 sorry type to fast sometimes. May 03 10:42:57 perlsyntax, new what? May 03 10:43:06 android studio May 03 10:43:20 perlsyntax, is there a new build? May 03 10:43:29 1.2 May 03 10:44:47 i thought 10gb ram would help for my android prgramming. May 03 10:44:58 yes May 03 10:45:01 it will help :) May 03 10:45:12 and ssd May 03 10:45:15 and more cores May 03 10:46:39 gordon,I was told bestbuy it would cost $400 for them to do that.I do have i5 with 10gb and 5400 hard drive. for rpm. May 03 10:47:00 mac ? May 03 10:47:03 gordon,maybe that the prob. May 03 10:47:06 yes mac May 03 10:47:33 gordon,i still think about it. May 03 10:47:35 well.... May 03 10:47:42 get thinkpad :) May 03 10:47:45 gordon, macbook pro. May 03 10:48:18 stallman uses thinkpad I think May 03 10:49:04 i think that the prob it the hardrive. May 03 10:50:14 gordon,I could not be right to. May 03 10:50:46 perlsyntax, do you have nexus 6 as test device? May 03 10:52:07 yes nexus 6 for a real phone.But hopeing to get nexus 9 soon. May 03 10:53:33 markelite, i Was hopeing to get a nexus 9 next week .:) May 03 10:53:52 isn't that a tablet? May 03 10:54:01 yes May 03 10:54:24 i just update my nexus 6 to android 5.1 becuase it was reboot by it self. May 03 10:54:35 hope that helps. May 03 10:55:32 i hope i not bug anybody by talk to much:) May 03 10:57:06 markelite,I going to do that or get ssd drive. May 03 10:57:45 perlsyntax, I think I found the problem May 03 10:57:57 causing a bad render May 03 10:58:34 what you mean bad render? May 03 10:59:59 what exactly error do you get when you try to create a project? May 03 11:00:29 i get no error when i do. May 03 11:00:38 i forgot May 03 11:00:54 i rem i do get a error. May 03 11:01:04 i going to have to check. May 03 11:01:20 when it done update May 03 11:01:26 brb May 03 11:03:33 markelite,I bet it that the prob. May 03 11:04:37 yeah... If it's rendering problem, maybe you're getting the same error as me May 03 11:06:55 Why did they write Gradle in Groovy. :\ May 03 11:07:11 (Assuming that Groovy makes it so slow.) May 03 11:10:33 TacticalJoke: at least it's not as slow as sbt! May 03 11:15:39 markelite,I build my project now to see if it happon again. May 03 11:17:19 perlsyntax, do you get similar to this? https://developer.android.com/sdk/installing/studio-layout.html May 03 11:18:00 In AS 1.2, if I'm somewhere I like "public void foo() {" and I press Enter, the new line doesn't indent (it's at the level of the 'p' in 'public'). May 03 11:18:08 In 1.1, it'd indent. Any ideas of how to fix this? May 03 11:18:13 Can't see anything in Settings. May 03 11:19:13 s/I // May 03 11:19:49 it indents, for me May 03 11:19:54 markelite, Rendring Prob same as you May 03 11:20:04 Hmm. May 03 11:20:24 TacticalJoke, it's in the settings, code style May 03 11:20:40 check maybe with last update you did not import your previous settings or something broke (again lol) May 03 11:21:45 AS starts to seriously "sux" anyway, i'm really considering an alternative May 03 11:21:53 more and more :' May 03 11:22:26 Xcode! May 03 11:22:49 By popular vote the best iOS IDE! No more dealing with "sux" Android APIs either! May 03 11:22:57 i'm not anymore on macosx :p May 03 11:23:19 adq: Do you know which exact setting? Everything I'm trying in 'Tabs and Indents' isn't fixing it. May 03 11:23:36 oO nope i don't know the exact setting May 03 11:23:51 I do a pass once in a while and set everything how I like May 03 11:24:38 it should be in wrapping and braces maybe TacticalJoke May 03 11:24:43 not in tabs & indents May 03 11:28:01 Okay, I fixed it. Editor > General > Smart Keys > Smart indent was disabled. ;o May 03 11:28:03 No idea why. May 03 11:28:23 About 100% sure I didn't change that. May 03 11:29:14 ah May 03 11:44:30 Hia May 03 11:44:42 How can I make app that read html like that May 03 11:45:05 like what? May 03 11:45:55 i cant find the app in google ap store May 03 11:45:57 app* May 03 11:46:44 Like that! May 03 11:46:52 lol :' May 03 11:47:34 http://www.similarweb.com/app/google-play/com.jubad.pydocs273/statistics May 03 11:48:32 please May 03 11:48:45 there is webview but im not sure it would help May 03 11:48:51 is it chm or pdf or html? May 03 11:49:19 not going to click May 03 11:49:25 why? May 03 11:49:41 paranoid of leaving trail of my ip May 03 11:49:47 dont May 03 11:50:05 rexrex: Can you explain your query in plain and simple language? May 03 11:50:11 Trying to predict what people mean is sometimes too tiring. May 03 11:50:18 look at the link May 03 11:50:35 rexrex, did you search on stackoverflow? May 03 11:50:46 Looked at it, I still don't know what you mean May 03 11:50:54 Ah.. May 03 11:51:06 Perhaps we could write a thesis on the various things rexrex might be referring to. May 03 11:51:08 but I'm guessing you'll probably want to use a WebView, or maybe a TextView using the Html class to parse html May 03 11:51:17 Hey everyone! May 03 11:51:18 I have folder with html I downloaded and I want to zip it like chm so i can make app to read it on my mobile May 03 11:51:23 Hai, Radther. May 03 11:51:34 TacticalJoke: How are things? May 03 11:51:36 I don't about chm, sorry May 03 11:51:43 chm is specific to windows May 03 11:51:55 Pretty good. Just watched that boxing match (and I won't say the result). May 03 11:52:00 despite it can be opened in many other os May 03 11:52:02 WebView is website ... I have these folders.. Chm not specific but something similar and good result May 03 11:52:03 Et toi? May 03 11:52:27 well, that's definitely not specific... May 03 11:52:36 ;_; May 03 11:52:37 rexrex, barbs already told you the answer, textview with Html.from.. or webview May 03 11:52:47 or build your own html parser and renderer which is not going to happen May 03 11:52:58 ok thanks i will look at it although im a beginner May 03 11:53:14 everyone starts as a beginner, nothing wrong with that May 03 11:53:25 Are you sure? May 03 11:53:26 TacticalJoke: Is this the match that has been all over Reddit? May 03 11:53:31 Is it difficult task to do? May 03 11:53:40 Radther: Yeah. May 03 11:53:56 difficult is relative May 03 11:53:56 The Pacmizzle versus the Maywizzle. May 03 11:54:28 I will have to check it out some time. How's TacticalReddit coming along? May 03 11:54:32 I struggle understand @Override . Should I bother? May 03 11:54:38 Pretty well. Just taking forever. May 03 11:55:00 rexrex, you can read the documentation you know May 03 11:55:02 I use it all day, every day, though. It's dog-food-ed to the max. May 03 11:55:15 Maybe a beta soon? May 03 11:55:17 I have huge motivation to make it no suck. May 03 11:55:23 not* May 03 11:55:29 Yeah, I hope so. :) May 03 11:55:53 rexrex: It'd be a good idea to learn Java before getting deep in an Android project. May 03 11:56:02 rexrex: The Override annotation is a basic OOP thing. May 03 11:56:33 rexrex: https://docs.oracle.com/javase/tutorial/java/index.html May 03 11:56:43 I read this yesterday May 03 11:56:52 Im here: https://docs.oracle.com/javase/tutorial/java/concepts/QandE/questions.html May 03 11:57:05 I have heard good things about head first into java, maybe start there? May 03 11:57:08 Just left this to move on: questions 2 3 4 6 exercises 1 , 2 May 03 11:57:26 NO!! enough books for me it takes me awhile to learn it May 03 11:57:42 Okay. The @Override thing is a little further on: https://docs.oracle.com/javase/tutorial/java/IandI/override.html May 03 11:57:56 Thanks it's just I'm a slow person :( May 03 11:58:18 I wonder if it will take me a year to learn basic as usual May 03 11:58:28 If you have programming experience, learning Java should be easy. May 03 11:58:33 Learning Android will be annoying but not too hard. May 03 11:58:46 I know more recently I have been finding videos on concepts and playing them at 2x speed to gain extra knowledge. May 03 11:58:53 I learn C# at school and C often (I stopped because some of reason) May 03 11:58:57 Might speed up the process a little. May 03 11:59:22 Java is kind to some degree a subset of C#. May 03 11:59:37 Not entirely, of course, but there are many similarities. May 03 11:59:38 but I don't have the power of OOP May 03 11:59:55 -kind May 03 12:00:40 Understanding OOP is quite important for Java and Android development. May 03 12:00:51 rexrex: https://youtu.be/-dJolYw8tnk May 03 12:01:11 * rexrex woot May 03 12:01:21 TacticalJoke: B-e-a-utiful... May 03 12:03:50 lol May 03 12:04:15 cool community May 03 12:04:33 hope to help other people like you May 03 12:11:21 Would it be possible for a few of you guys to tell me what you think of an idea I have? https://radther.typeform.com/to/RM93NH May 03 12:13:26 I answered "No" to "Would you use it?", but only because I'm not a diary kinda person. I do think it could be a good idea. May 03 12:13:34 And that questionnaire is neat, BTW. May 03 12:15:45 Anyone have builds that break when minify is enabled in gradle only? May 03 12:17:49 hey guys May 03 12:17:52 TacticalJoke: Typeform is easily the best survey thing I have found. May 03 12:17:55 someone throw me some tips on how to format my urlscheme to link to users May 03 12:17:57 Bantalon: Hey! May 03 12:18:00 i'm having 0 ideas now completly dry May 03 12:18:02 hey Radther! May 03 12:18:15 what do you think about this url scheme format: scheme://user=MyUsername May 03 12:18:18 it looks a bit long for me May 03 12:18:43 previously i formated it as such, but naturally it doesn't work on all browsers scheme://@usenrame May 03 12:18:47 I have written a "gallery" app, which shows thumbnails from MediaStore. If a new photo is taken while my app is running, my gallery is not updated. I have managed to "catch" the com.android.camera.NEW_PICTURE event, but how do I manually refresh/reload the MediaStore? May 03 12:19:39 I have to switch into another gallery app, which then immediately reloads the thumbnails, and then return to my app. The new images are then also shown in my app... May 03 12:20:43 I was also thinking to make a simple "refresh" button in my app, just to test things out. But, I can't get it to work. I thought I'd maybe just restart the ContentLoader(MediaStore.Thumbnails), but that has no effect. May 03 12:22:31 anyone? May 03 12:22:35 TacticalJoke: Maybe a Material screenshot can convince you to use it. http://snag.gy/X5SUl.jpg May 03 12:23:27 That looks really neat. May 03 12:23:35 Radther: defaq are those colors?! May 03 12:23:41 Definitely better than anything like this I've seen. May 03 12:23:47 i mean the UI is nice, but the colors... May 03 12:23:48 Color is a wip May 03 12:23:48 I like the colours. Vibrant. May 03 12:24:04 stfu! May 03 12:24:14 material is about light colors May 03 12:24:20 not BLACK and RED!!! May 03 12:24:22 god damit May 03 12:24:24 http://snag.gy/KWvey.jpg May 03 12:24:25 I hate light colours. May 03 12:24:32 ME LIKE! May 03 12:24:49 Radther: that's sexy i'm just not a fan of drop shadow and low saturated colors May 03 12:24:51 like the toolbar May 03 12:25:13 also the label "China/Goodbye" feels like it's 1 px too lower May 03 12:25:14 low* May 03 12:25:20 I love that black and red. So easy to look at, and easy to read in low lighting. May 03 12:25:23 creates an ocd-itch in my back May 03 12:25:49 http://snag.gy/A8Rmp.jpg May 03 12:26:25 Radther: if you drop the drop shadows on the pen-button and the toolbar May 03 12:26:30 and then lower the labels 0.5px down May 03 12:26:50 I could probably ask the user for there favourite colors since it is supposed to be a personal diary. May 03 12:26:52 think it'll look 3x polished May 03 12:27:07 this is us now May 03 12:27:07 http://snag.gy/qBN5Z.jpg May 03 12:27:19 that is gorgeous May 03 12:27:52 Yeah, that is nice. May 03 12:28:10 someone throw me a tip on how to format my schemes May 03 12:28:11 :8 May 03 12:28:20 i am dryer than a turd right now, scheme://user=myusername, does that look nice? May 03 12:28:43 does it tempt you to press it as much as this scheme://@myusername? May 03 12:30:34 Bantalon: talking to me? May 03 12:30:35 thanks May 03 12:34:26 thepoosh: anyone May 03 12:34:33 oh May 03 12:34:34 think i got it though, i'll go with scheme://u/username May 03 12:34:52 creds to #design May 03 12:34:59 hey guys how I can add something like this in android videoview http://apdevblog.com/examples/apdev_videoplayer/screenshot.jpg May 03 12:35:00 of all chanenls May 03 12:35:01 they know what look sgood May 03 12:35:03 :) May 03 12:35:29 succes May 03 12:36:10 <_genuser_> is it night time for thepoosh? May 03 12:36:21 nope, night time for g--s May 03 12:36:42 <_genuser_> well, isn't his night about ending..? May 03 12:37:02 in 2 hours or so May 03 12:37:53 <_genuser_> well, heh, I'm getting a bit sleepy now too. May 03 12:38:04 anyone? May 03 12:39:31 pentarex: what exactly are you trying to do? May 03 12:39:47 thepoosh i want play/pause button over my video view May 03 12:39:48 Radther: we've been working on this for about 5 months May 03 12:40:01 so you need to create a custom vide and put it there May 03 12:40:04 like youtube video the big button in the middle of the screen May 03 12:40:14 it's a custom view May 03 12:40:15 thepoosh custom videoview? May 03 12:40:32 thepoosh isnt there something ready? May 03 12:40:33 no, custom play/pause button that performs actions on the VideoView May 03 12:40:38 dunno May 03 12:40:45 google is your best friend May 03 12:40:50 or github in this case May 03 12:40:54 yeah dont know exactly how to google it :D May 03 12:41:00 thepoosh: I like it for the most part, but it needs some shadow on the Toolbar I feel. May 03 12:41:05 Looks a little too flat. May 03 12:41:17 http://stackoverflow.com/questions/25357040/android-mediacontroller-play-pause-button-and-seekbar-doesnt-refresh May 03 12:41:21 <_genuser_> you just need a button overlaying exisitng video. May 03 12:41:21 Hi guys May 03 12:41:24 <_genuser_> what's too google. May 03 12:41:24 MikeWallaceDev: ! May 03 12:41:30 :D May 03 12:41:45 Radther: it got some after we got feedback from google May 03 12:41:55 we have some other ones in the app with better shadows May 03 12:41:59 thepoosh !! :D May 03 12:42:26 sup mike? May 03 12:42:51 Does anybody use Stetho? Is there a way for it to reconnect automatically? I keep having to close the window and click on Inspect May 03 12:43:02 thepoosh: I'm looking forward to seeing a final version. May 03 12:43:13 Working on a contract mate, it's good to see some $$ come in May 03 12:43:14 this is the final version May 03 12:43:18 was approved by google May 03 12:43:23 thepoosh: Ahh ok. May 03 12:43:26 http://snag.gy/bpFLT.jpg May 03 12:43:31 another screen May 03 12:43:56 <_genuser_> MikeWallaceDev: contracting work? May 03 12:44:06 _genuser_, yeah May 03 12:44:26 It's fun, the client is cool May 03 12:44:29 Wait, there is more shadow then I thought there was, turns out the monitor I had this chat on has terrible color reproduction... May 03 12:44:31 <_genuser_> nice, may I ask how you go about finding contracting work? May 03 12:44:41 she's...... smart! A rare thing in a client :D May 03 12:44:51 Radther: so it's good? May 03 12:45:03 _genuser_, I got it from a freelancer site May 03 12:45:33 <_genuser_> MikeWallaceDev: my friend told me to put some stuff on dice.com, I'm looking into it. is there anything better? May 03 12:46:04 Radther: there are also some with no shadow May 03 12:46:04 http://snag.gy/jri60.jpg May 03 12:46:14 better? better is whatever gives me money. Right now I'm only on gun.io, but I'm going to try more May 03 12:46:31 What am I looking at thepoosh ? May 03 12:46:34 thepoosh: Yeah, it looks really good. May 03 12:46:50 <_genuser_> MikeWallaceDev: better meaning, whatever gives the highest response. :) May 03 12:46:55 I like the profile screen ALOT. May 03 12:46:55 <_genuser_> MikeWallaceDev: so gun.io, eh? I'll check it out. May 03 12:47:01 MikeWallaceDev: it's glide's profile page May 03 12:47:06 http://i.imgur.com/K9WOy6e.png I had to use old html rounded trick to have an inverted round corner lol... other than that, I need better "button", they don't blend well May 03 12:47:08 with my dev profile May 03 12:47:27 (i don't want to do it in a custom view, but that would be another option for the inverted rounded corner) May 03 12:47:45 adq: that's what xml drawables are for May 03 12:47:54 it's all xml May 03 12:48:00 almost May 03 12:48:11 but it will overdraw May 03 12:48:13 I'm more Pragmatic _genuser_ I don't care about responses, I want actual contracts with actual money. Actually, more responses just means more wasted time... May 03 12:48:28 Stetho? Anyone? Buller? May 03 12:49:02 <_genuser_> MikeWallaceDev: I think you're getting into technicalities of words used. I just meant, whatever gets me work/money is better. May 03 12:49:26 <_genuser_> MikeWallaceDev: to that end, I was curious how you found the project, because I'm thinking I should do some side work. May 03 12:49:49 <_genuser_> MikeWallaceDev: finished my resume recently to upload to dice. now this gun.io looks decent place to look also. May 03 12:50:55 _genuser_, that's the first thing I said :D hahaha May 03 12:51:01 yeah, it's ok. May 03 12:51:25 <_genuser_> MikeWallaceDev: yeah, I just tried to describe what I meant by "better" which got us down this path. P:) May 03 12:51:26 careful though : those first emails that say you were "accepted" for a contract don't mean anything. May 03 12:51:38 Path to hell... :D May 03 12:52:46 <_genuser_> MikeWallaceDev: err, I'm signing up for the wrong thing, LOL. May 03 12:53:07 I'll sign up to Dice.com too... May 03 12:53:13 what will happen if i start an animation and then lock the screen while it goes? May 03 12:53:26 dev related (not code related) : http://uppix.com/f-screenshot_016554619660018dd6a.png May 03 12:53:40 <_genuser_> MikeWallaceDev: so it's says "for hackers", "for employers". I figured people looking for work would go to "for hackers".... May 03 12:53:46 thepoosh, you won't see the animation anymore :D May 03 12:53:49 <_genuser_> MikeWallaceDev: next thing you know it's asking me what my project does... May 03 12:54:01 _genuser_, oops. May 03 12:54:10 it causes our app to get to a weird state May 03 12:55:28 <_genuser_> MikeWallaceDev: lol. anyway, are you doing this as individual or as incorporated entity. May 03 12:56:48 _genuser_, a soon to be incorporated entity May 03 12:57:27 <_genuser_> MikeWallaceDev: very nice. I was talking to my friend who does this fulltime and she said she some super easy process setup after her CPA's advice. May 03 12:57:36 <_genuser_> so I assume it isn't too complicated. especially with taxes, etc. May 03 13:00:09 That's the part that I can't stand... I never do it... May 03 13:00:56 speaking of doing, gotta get back to the code May 03 13:01:00 later mates! May 03 13:01:01 <_genuser_> MikeWallaceDev: my main concern is with double taxation. while you're a small-time fish getting taxed multiple times, people are sitting there hating you for being a greedy rich fat corporate business owner. May 03 13:02:50 Does anyone have any good resources on building an MVP architected app? I have found loads explaining the concept and a few sample apps but nothing that goes through making a simple one. May 03 13:04:02 I'm looking for how to debug a build that gets broken when minify is enabled. It seems like just one library is failing. What are some tools to disable minify for a lib or something? May 03 13:04:05 man, shape drawable are great but when you use multiple items in a layer-list + stroke and some bg, high probability to get overdraw May 03 13:17:42 hi May 03 13:18:16 does anyone here know how to read UID/GID of various apps and groups on android? May 03 13:22:52 ShapeShifter499, PackageManager May 03 13:23:52 but be careful, it's not the same as the uid/gid you would see in shell with `id' or via listing May 03 13:24:21 adq, I want to know id that the whole system would see May 03 13:24:38 first, understand the different uid, user id, etc May 03 13:24:39 adq, running "id -u media_rw" doesn't output anything on my device May 03 13:39:10 Heya, I'm trying to respond to DragEvents along with android developer's guide and at one point it makes me write mDragListen = new myDragEventListener(); but it says 'Cannot resolve symbol 'mDragListen'. What's wrong with it? May 03 13:39:21 Also here's the guide in case you want to see the sample code: http://developer.android.com/guide/topics/ui/drag-drop.html May 03 13:43:39 Lorenz9: I think the problem is that it cannot resolve the symbol 'mDragListen'. :D May 03 13:43:55 Nice one :DD May 03 13:45:01 Lorenz9: What are you confused about? May 03 13:45:10 It looks you simply haven't declared a field. May 03 13:46:43 like^ May 03 13:46:44 You mean creating myDragEventListener? May 03 13:48:01 I do have that declared if that's what you mean May 03 13:48:15 Try typing the following: foo = 5; May 03 13:48:19 Now hover over 'foo'. May 03 13:48:36 Oh you mean like going DragEvent mDragListen = new etc? May 03 13:49:02 I've tried several but I just don't know "how" to know what I have to use May 03 13:50:17 wait, can it be that it's View.OnDragListener? May 03 13:50:26 God damnit why? ;_; I just can't wrap my head around the why May 03 13:51:07 Lorenz9: Can you pastebin your code? (Otherwise I can't easily guess what your intent is.) May 03 13:51:21 Yeah ofc! Just a sec May 03 13:52:03 You're allowed to cringe at my code, I'm aware of my level hehe May 03 13:52:55 http://pastebin.com/yGYHXAJS May 03 13:56:02 On which line is the error May 03 13:56:02 ? May 03 13:56:16 just ctrl+F for mDragListen May 03 13:56:36 well, now I put View.OnDragListener (as I said right before sending you the code) May 03 13:56:43 And what is the error now? May 03 13:58:59 Actually there's no error anymore, I just had put that View.OnDragListener randomly and it worked, so wihle I was ranting about that you asked me for the code and all... May 03 13:59:16 Anyawys I think I just learned something new, thanks May 03 13:59:44 And yes, I do lack some basic knowledge as you can see, sorry about that May 03 14:00:00 I'm doing just a professional formation on programming, I didn't go to uni so there's some really "Duh" stuff I miss May 03 14:00:29 Note that Java-class naming uses PascalCase (not camelCase) by convention. May 03 14:00:47 So 'myDragEventListener' would ideally be 'MyDragEventListener'. May 03 14:01:44 gotcha, man the android guide does a really good job at confusing the shit out of me May 03 14:02:14 Hello, could anyone point to some working sample on how to register an endpoint to Amazon SNS with the token provided by GCM? I'm using AWS Mobile SDK for Xamarin, help please May 03 14:02:17 A lot of the Android documentation is poor. I would hate to come to Android without a lot of programming experience. :\ May 03 14:02:58 well, working with battery powered low-performance devices isn't apropriate for beginners anyway May 03 14:03:12 Hey, I was wondering if there is a library out that that allows you to send Push Notifications without having to use GCM(Google Play Services) May 03 14:03:30 shodan`: no you're not May 03 14:03:46 Leeds: "you're not"? May 03 14:03:55 shodan`, there are some commercial implementations yes. May 03 14:04:01 They're pretty much all worse option. May 03 14:04:16 aka don't do that May 03 14:04:26 I could build my own implementation, it's not rocket science. But reinventing the wheel is silly May 03 14:04:45 People will love your battery draining :) May 03 14:04:59 your implementation will be worse May 03 14:05:02 Yes, it's frustrating Tactical, but with some optimism and time eventually it'll get better May 03 14:05:05 also luckily Mavrik I am not working for anyone yet :D So I hope I can do all the fuckups now that I'm learning May 03 14:05:23 Mavrik: Why would it drain the battery a lot? It would litterly just be a udp connection that sends few bytes as a keep-alive every 5 minutes May 03 14:06:07 shodan`, waking up radio every 5 minutes to keep a session alive is an awesome way to kill the battery May 03 14:06:14 radio is usually on 30-1min idle cycles May 03 14:06:35 which means you'll be running one of the radios (by far the most power consuming device) practically constantly through the day May 03 14:06:47 the catch of GCM is that it does batch delivery for all apps through a single long keep-alive May 03 14:06:55 How does GCM do it then? Afaik it just uses a single TCP connection May 03 14:07:04 plus you need to have things like backoff for when the device is out of contact May 03 14:07:06 which is longer than 5 mins and they actually have all their edge routers configured to let through that keep alive May 03 14:07:34 shodan`, you MIGHT be able to replicate full server and client-side configuration of GCM to get it to use same battery May 03 14:07:44 so then your app would just double the idle push power usage :) May 03 14:08:24 (Remember all the iOS power drain issues on iOS 3 when telcos didn't have their routers configured properly?) May 03 14:08:50 The issue is that my application is supposed to receive push notifications and it can't be dependant on if Google Play Services is installed May 03 14:09:09 shodan`, do a fallback then May 03 14:09:17 shodan`, or use people like Urban Airship who do that for you May 03 14:09:33 but do use GCM is it's available. May 03 14:09:44 also, go back to whoever gave you that requirement and make sure they understand the cost of it May 03 14:09:56 It's my own requirement. May 03 14:10:07 I don't like having google play services installed May 03 14:10:08 then go look in a mirror and make sure you understand the cost of it May 03 14:10:29 oh... this app is just for your personal use? May 03 14:10:34 Cost is not an issue since this is a personal project. May 03 14:11:08 go ahead then, knock yourself out May 03 14:12:06 btw, GCM heartbeat is 15min on wifi and 30min on 3g/lte/2g May 03 14:12:16 at least it was a bit ago May 03 14:17:02 Are there any docs out there that describe the protocol GCM uses? May 03 14:19:03 AFAIK it's proprietary hidden fork of XMPP May 03 14:19:26 I'm mostly interested in how it manages it's connection May 03 14:41:45 Hey guys, I have an activity that does an http get in onCreate to retrieve my model, however in my fragment I make use of that model in onCreateView. May 03 14:42:12 The issue is my async http get doesn't get the model in time so the fragment deals with a null model May 03 14:42:33 What would be a better way to go about this? May 03 14:43:33 happyowl: Is the model used outside of that fragment? May 03 14:43:44 Yeah unfortunately :( May 03 14:44:05 hm May 03 14:44:22 The model is basically an array of objects, the fragment uses one of the objects May 03 14:44:40 Well, I'd reconsider initializing the fragment in onCreateView() then May 03 14:44:45 So if the users presses next the fragment will be updated to use the next object in the array May 03 14:44:45 have the http call trigger an event when it finishes May 03 14:46:49 hi May 03 14:47:12 Ha, talking about google not giving a fuck about the bugs in their guides: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=33833 May 03 14:47:18 This one's from 2012, still not fixed :D May 03 14:47:27 OmegaVesko: Ah I see, so while the model is being retrieved I guess the activity would just be blank? May 03 14:47:50 happyowl: I guess, you could show a loading indicator or something too if you want May 03 14:48:13 Ok I'll do that, cheers OmegaVesko! May 03 14:48:22 no problem :) May 03 15:15:28 How can a thread set a variable in the mainactivety ? May 03 15:17:47 Setting a variable is the same whether it's happening from the main thread or from a background thread (with the exception of complication such as memory safety and atomicity). What is your real question, And_prog_desaste? May 03 15:22:00 im on it May 03 15:26:40 TacticalJoke: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. May 03 15:27:09 do GUI operations in runOnUiThread May 03 15:27:14 Are you using AsyncTask or something? May 03 15:27:27 ts not setting the vat or the TextView from the tread in the main May 03 15:27:46 You have to go back to the main thread before touching a View. The best way to do that depends on how you're doing background threading. May 03 15:29:06 TacticalJoke: the thread connects to BT and then goes Down that works FINE BUT i want to set a TextView to we are connected May 03 15:29:54 Are you using "new Thread" or Executor or something? May 03 15:31:05 yes newTread May 03 15:31:23 mConnectThread = new ConnectThread(bd); May 03 15:31:34 mConnectThread.start(); May 03 15:32:01 You can use Handler.post(Runnable) or Activity.runOnUiThread(Runnable) if you have an Activity reference (though that's not always great, design-wise). May 03 15:32:17 is there a Method that regonises that the tread has finished May 03 15:33:28 Finished threads don't merge into the main thread, and you can't wait on the main thread for the thread to finish (because then your UI will freeze). May 03 15:33:33 So it's one of the above two. May 03 15:33:58 Note that Activity.runOnUiThread just calls Handler.post (unless we're already on the main thread). May 03 15:45:48 you can create a new thread that will wait for the other one to finish :p May 03 15:52:21 You can, but that wouldn't solve the problem of moving from a background thread to the main thread. May 03 15:54:02 I wasn't serious... May 03 15:55:09 you sounded serious May 03 15:55:59 its a miss here all is working but i got not informed by the tread finish in the main May 03 15:56:26 its a time issue May 03 15:56:45 2seconds after tread is finishing i can send data to BT May 03 15:57:26 but i can not set the Status text to we got a connection as i got no info from somwhere May 03 15:58:47 You can use Handler.post to post to the main thread at any time (including right before the thread finishes). May 03 15:58:54 It's all just events. May 03 15:59:11 i will look on that May 03 15:59:27 (It'd be possible to use an event bus, but that's a whole other thing.) May 03 15:59:41 As in "A whole other thing to try to communicate over IRC". May 03 16:09:54 TacticalJoke: THANK's works fine via handler.post i never worked oon handler do i need to close it after recive May 03 16:10:19 Close the Handler? Nah. May 03 16:10:31 Hie May 03 16:11:08 I am trying to compile an app and it seems that I need to go in the SDK Manager May 03 16:11:24 I run Linux May 03 16:12:42 taurgal: yes? May 03 16:12:42 <_nedR> Hello .. sorry for asking a non strictly dev question here May 03 16:13:09 <_nedR> I am facing a weird behaviour in chrome and default internet browser on my samsung s 8.4 tablet. Whenever i try to visit google.com, In chrome the connection fails sometimes out with error ERR_CONNECTION_TIMED_OUT, other times it says can't connect because google is being redirected to http. In the android internet browser, it redirects to a malware page telling me to update my adobe flash and then on following the link it downloads and exe May 03 16:13:09 <_nedR> <_nedR> file. Obviously this is some sort of MTM attack which seems to be affecting only google (all other sites seems to be working), This doesn't seem to effect my computer or phone. I think my dad accidentally installed some fake whatsapp.apk or some other file. My first question is how is this even possible with Android sandboxing?. This device is not rooted. How can this be fixed? How dangerous could the malware possibly be? May 03 16:14:02 <_nedR> I am hoping someone could shed light on how this could be possible (MTM attack on an unrooted phone) May 03 16:14:05 /j #Android May 03 16:14:13 _nedR: Have you checked if there's a malicious VPN running on the phone? May 03 16:14:21 also, #android-root can probably help more May 03 16:14:23 <_nedR> whatitis, Thanks for reply i also asked there but no reply so far May 03 16:14:37 This is for app dev May 03 16:15:30 <_nedR> OmegaVesko, Thanks fore reply. No i haven't i will look into that. Also my device isn't rooted should i still ask in #android-root May 03 16:16:06 @all app works now fine Thanks for Hlping May 03 16:17:08 <_nedR> #whatitis, sorry yeah i know i am bending the channel rules a bit. But i was asking this for a dev perspective as well. Wouldn't this be an example of an app breaking sandbox? ( Unless this VPN angle is possible) May 03 16:17:30 Hashtag-whatitis. May 03 16:18:00 Sorry, my IRC client just froze... May 03 16:18:37 Leeds: who do one execute the sdk manager? (I found the /opt/android-sdk/tools/lib/sdkmanager.jar file) May 03 16:18:43 _nedR you should goto #ParentChat and ask your dad where he got the whatsapp.apk May 03 16:19:04 taurgal: tools/android May 03 16:19:26 *how, sorry May 03 16:19:49 hi. I've been long away from developing android applications and my knowledge of the SDK is quite outdated. I'm developing an app targeted to API 15..22. When the Android Studio gave me the hello world code of the app, it uses the support Fragment and ActionBarActivity classes, which are already supported in API 15. Why is that? May 03 16:20:39 <_nedR> whatitis, It was a long time, I doubt he remembers May 03 16:21:05 _nedR: backup any important data and do a factory reset May 03 16:21:30 taurgal: java -jar executable_name.jar May 03 16:22:13 orriols: Basically, it's good practice to use 'support' libs (you get consistent Fragment behaviour, for example, on various Android versions). Also, AppCompat (in support-v7) gives apps a material look regardless of Android version. May 03 16:22:15 OmegaVesko: that's not how you run the sdk manager May 03 16:22:50 <_nedR> OmegaVesko, I am looking in settings>More networks>VPN but it says No VPNS and weird pop up appears telling me to "Set screen unlock PIN or password before you can use credential storage" May 03 16:23:09 Leeds: you+google=got it now. Thanks! May 03 16:23:18 taurgal: good luck May 03 16:23:36 _nedR: Sounds normal to me. The popup is probably there because you need lockscreen security enabled to use stuff like Exchange. May 03 16:23:52 <_nedR> Leeds, thanks i intend to. I am just curious how this is even possible on an unrooted tablet. Also i am bit worried as i have done some online purchase throug tab May 03 16:24:28 <_nedR> OmegaVesko, Seems to me too. This is quite strange. May 03 16:25:05 hm, i didn't know this was a thing http://logs.nslu2-linux.org/livelogs/android-dev/ May 03 16:26:30 <_nedR> I guess my predicament is similar to http://androidforums.com/threads/android-chrome-redirection-virus-malware-adware.878655/ ? May 03 16:27:19 Leeds: should I run it as root? May 03 16:27:39 taurgal: nope May 03 16:28:03 anyone can help me troubleshoot htc phone stuck in fastboot May 03 16:28:18 mices: wrong channel May 03 16:29:26 anyway, past my bedtime... have fun, kiddies May 03 16:29:49 TacticalJoke: Thanks, makes sense. May 03 16:30:35 Hi, anyone can help me? I'm trying to consume a xml web service but it doesn't work (never responds) May 03 16:31:17 There's my code ... https://www.irccloud.com/pastebin/TNb01BzY/android+consume May 03 16:33:31 orriols: Here is info about how AppCompat (21) can be used to make apps look "material": http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html May 03 16:54:40 <_nedR> OmegaVesko, Hi again, I am wondering, can an app register itself as a VPN provider without it appearing in settings? May 03 17:00:24 I certainly hope not May 03 17:01:55 <_nedR> CedricBeust, thanks for reply. I am saying because i seem to have some malware on my unrooted samsung tab redirecting google.com to malware site May 03 17:02:15 <_nedR> and there are no vpns shown in settings May 03 17:02:38 This doesn't require VPN (not sure it has anything to do with VPN actually) May 03 17:02:44 What browser? May 03 17:03:04 <_nedR> Both Chrome and default android browser May 03 17:03:24 <_nedR> actually chrome doesn't redirect it simply fails to load google. but the android browser redirects May 03 17:03:31 g00s: !!! May 03 17:03:43 <_nedR> CedricBeust, How can it be done without VPN on unrooted phone? May 03 17:04:50 maybe /etc/hosts May 03 17:04:57 oh that would require root too May 03 17:05:19 maybe the malware elevated its priviledge, there are so many ways May 03 17:05:25 and since most of rom are not up to date.. May 03 17:05:49 or http://androidforums.com/threads/android-chrome-redirection-virus-malware-adware.878655/ May 03 17:05:51 <_nedR> adq, this is samsung tab 8.4s which claims to be at latest update May 03 17:07:10 without much details, we can speculate a lot, could be your dns server which has been compromised too, May 03 17:07:12 <_nedR> Ashiren, yeah i saw, that, just wondering about technical details, whether this is a sandbox breakout or something less impressive May 03 17:07:29 <_nedR> adq, my laptop and other mobile phone don't redirect May 03 17:07:34 anyone else uses this tablet? May 03 17:08:07 _nedR, "dns serv compromised" was just to illustrate we can speculate a lot without much details May 03 17:08:24 ah well actually this is a bit offtopic May 03 17:08:35 <_nedR> i think my dad installed a whatsapp.apk from the internet (probably malware) this could be the source.. But i am wondering how MITM is possible on unrooted May 03 17:09:01 it's not, it shouldn't be possible, how do you know it's MITM? May 03 17:09:02 <_nedR> adq, Yes i am actually asking for (rational) speculations :) May 03 17:09:20 at least, try to know where the compromission is May 03 17:09:32 if it's /etc/hosts which has been rewritten per example May 03 17:09:37 <_nedR> Ashiren, Yeah it is a bit , but i am asking from a dev perspective May 03 17:09:40 you brought the vpn topic but it's misleading May 03 17:09:49 until you show us there is a suspicious entry related to vpn May 03 17:09:54 Maybe extensions in the browser (not familiar what's on samsung phones) May 03 17:10:42 <_nedR> This is chrome browser and default android internet browser. I am not aware that these have extensions May 03 17:10:59 <_nedR> adq, is n't a redirection example of MITM? May 03 17:11:12 not really May 03 17:11:18 <_nedR> adq one sec let me see if i can read /etc/hosts May 03 17:11:23 MITM is more being in the middle, passively or not May 03 17:11:34 it implies redirecting to fool sides though May 03 17:11:47 and it's a generic security term May 03 17:12:01 <_nedR> adq, fool side? May 03 17:12:23 A <--- MITM ---> B May 03 17:12:27 A and B are sides May 03 17:12:51 _nedR, mitm stands for man in the middle May 03 17:12:52 <_nedR> adq, Yeah i am stretching MITM definition a bit, here middle means in the TCP stack of device, not like the router or something May 03 17:13:13 <_nedR> for example a VPN provider could be the man in middle May 03 17:14:41 <_nedR> Thanks for your patience, I could wipe the device and forget about it but I am curious as to how an app could do this. May 03 17:15:08 _nedR: set up the proxy and see what is going on May 03 17:16:23 _nedR, adb shell cat /etc/hosts May 03 17:16:34 see at least if this old static file has been altered May 03 17:19:18 <_nedR> ah need to be reboot to linux to get to adb May 03 17:20:37 hate not having my bnc up May 03 17:21:35 hey May 03 17:22:00 can someone tell me what tha heck` is this sherlock? and why it seems like mandatory? May 03 17:24:02 I guess you are talking about the library for actionbar right? May 03 17:25:04 I use actionBarActivity with support and I think I didnt need to use that sherlock thing May 03 17:26:15 yeha May 03 17:26:30 what it do? May 03 17:26:48 and why its better than the `AppCompatActivity` class May 03 17:26:54 thepoosh ! May 03 17:27:04 morning g00s May 03 17:27:26 Search in youtube for slidenerd material Design tutorials May 03 17:27:27 rise and shine to androidweekly 151 May 03 17:27:33 :D May 03 17:27:45 for me it's always at the end of day 1 of my work week May 03 17:27:55 I think is in video 4 that he tech you how to implement the actionbar May 03 17:28:29 Having the items in a xml file that you can call Using Layout May 03 17:28:30 sherlock was the only* way to get action bar on older android devices before support library May 03 17:28:43 everyone having the same problem with these phones i'm saying htc doing in on purpose May 03 17:29:13 hm this is cool https://github.com/florent37/MaterialViewPager May 03 17:29:27 kinda amusing a year after material, people are still making libraries to do what the spec says May 03 17:30:21 thepoosh you guys submit again this wed ? May 03 17:30:41 we must release to 100% by Wednesday May 03 17:30:50 thepoosh how is it looking ? May 03 17:31:15 we have a version at 0.5% and submitted something to qa today May 03 17:31:28 last i checked, JIRA had one open issue for this version May 03 17:31:38 so i got that going which is nice May 03 17:32:06 \o/ May 03 17:34:19 oh, one pull request pending merge May 03 17:34:31 thepoosh you guys use git or hg ? May 03 17:34:38 bitbucket May 03 17:34:43 :)) May 03 17:35:18 thepoosh which client, hg or git ? also what defect tracker ? May 03 17:35:41 oh, git for source control and JIRA for bug traking May 03 17:35:44 tracking May 03 17:35:49 nice May 03 17:35:50 :(( May 03 17:36:24 adq: why the long face? May 03 17:36:27 lol https://bitbucket.org/ ... this is the only time i'll see tesla and DHL on the same page May 03 17:36:59 nevermind thepoosh May 03 17:37:06 lol, never saw that page, always signed in May 03 17:37:17 adq was about to extend the secret hg handshake, then withdrew :D :D May 03 17:37:25 (shhh, it's secret) May 03 17:37:29 lol May 03 17:40:42 well, secret is bankrupt so... May 03 17:42:27 <_nedR> hi again adq, tried /etc/hosts. only listing is 127.0.0.1 localhost May 03 17:45:01 I've written a "gallery" app, which loads MediaStore.Images.Thumbnails into a GridView, using a CursorLoader. How do I "refresh" this, such that new photos taken (while app is running) are added? May 03 17:46:47 <_nedR> if anyone have a suggestion how app can cause redirection in chrome, "internet" browser eg:- via VpnService API, please share May 03 17:47:24 Do I use a MediaScanner? I can't find examples on how to do this which do not take a file:/// location as a parameter... Point is: My app does not know the path of any new images May 03 17:48:07 I simply want to register, somehow, that my app be notified when new media is added, such that the UI can refresh. Just like all the other gallery-type apps out there :-) May 03 17:49:32 Hi! Why is my javascript code never run? http://pastebin.com/0DBuzbLf May 03 17:49:39 ... or, failing that, have a manual refresh via menu option (or perhaps a periodic scan of the mediastore, say every 5 minutes, to determine whether new media is present => i.e. whether to refresh) May 03 17:50:13 <_nedR> hmm.. something vaguely related ? : http://www.javaworld.com/article/2090930/java-android-developer/vpn-bypass-vulnerability-affects-android-jelly-bean-and-kitkat-researchers.html May 03 17:51:01 joakimk_: you need to register an Observer in ContentResolver, and use a Uri to keep track of your data set. Here's a SO post with the details: http://stackoverflow.com/a/15529866/3576804 May 03 17:52:31 treelzebub: thanks! Looking into that :) May 03 17:52:47 yo android guru's May 03 17:52:58 treelzebub: but, why does restarting my loader have no effect? May 03 17:53:20 is there a way to fetch all contacts, not only from the phone, i mean all contacts - from google, from mail, from phonebook, etc May 03 17:53:29 I mean, if I just trigger a manual refresh via a menu option. Just as an experiment. Nothing happened... May 03 17:53:45 because your ContentProvider is not tracking Uri changes. May 03 17:54:02 so it can't be done "manually"? May 03 17:55:20 regardless of it reloading views in the background or manually, you will need to track Uri changes and register an Observer. This is sort of analogous to the notifyDataSetChanged() methods in BaseAdapter May 03 17:56:20 Someone here have experience with e2e testing? May 03 17:57:37 im a little confused with choosing the better framework: Calabash(which uses ruby?!), Appium(both iOS and Android), Cucumber-JVM May 03 17:57:55 I prefer to write BDD with gherkin lang May 03 18:00:20 What's wrong with this ClipData object? http://i.gyazo.com/96f2d3abef00156288df0d505bb50330.png May 03 18:00:36 treelzebub: could you please take a look at http://pastebin.com/MsUTUrsq May 03 18:01:25 treelzebub: that's my cursorloader code, from my fragment. May 03 18:01:28 joakimk_: sure thing, one sec May 03 18:02:04 so, I'm not writing my own content provider, as such... May 03 18:02:35 if I change ClipDescription.MIMETYPE_TEXT_PLAIN to simply MIMETYPE_TEXT_PLAIN, instead of telling me that the whole object is wrong, it only tells me that it can't recognize MIMETYPE_TEXT_PLAIN (and only that), like here: http://i.gyazo.com/a30727b84b6dd7694de67e23c05f57a0.png May 03 18:05:10 treelzebub: as I recall, it's onActivityCreated's getLoaderManager.initLoader() call that does a callback to onCreateLoader(), right? May 03 18:05:56 I mean, where would I actually register the observer "onto" the cursor? Should I do that in onCreateLoader() May 03 18:07:23 or, perhaps, in onLoadFinished(). Register the observer onto the cursor returned in that callback May 03 18:07:41 instantiate your ContentObserver in your CursorLoader's onStartLoading May 03 18:08:30 hi May 03 18:08:30 joakimk_: observer onto the cursor -- ? what do you mean? May 03 18:08:33 i have an application set up which works on my android phone which implements google maps, however when i try and open the same application on another android phone i receive a null pointer reference when i try and use the .getMapAsync metho May 03 18:08:42 d? May 03 18:08:44 Anyone aware of somewhere where I can download a PDF of the Material Design guide? http://www.google.com/design/spec/material-design/introduction.html# May 03 18:08:44 joakimk_: you have your cursor in onLoadFinished May 03 18:09:06 icedp: "Registering an Observer in content resolver through cursor" (http://stackoverflow.com/questions/15517920/how-do-cursorloader-automatically-updates-the-view-even-if-the-app-is-inactive/15529866#15529866) May 03 18:09:51 icedp: in onLoadFinished, yes :-) I believe this may be correct: cursor.getNotificationUri(getActivity().getContentResolver(), MediaStore.Images.Thumbnail.EXTERNAL_CONTENT_URI); May 03 18:10:06 tjbiddle didn't know such thing existed May 03 18:10:39 g00s: I'm not sure if a PDF does :p Just crossing my fingers someone may have scraped the page and generated one. May 03 18:10:43 the one it works on is kitkat, and the one it is not working on is lolipop May 03 18:10:47 could that be an issue_ May 03 18:11:00 i assume that it would be backwards compatible May 03 18:12:41 What's wrong with this ClipData object? http://i.gyazo.com/96f2d3abef00156288df0d505bb50330.png - Worth nothing: if I change ClipDescription.MIMETYPE_TEXT_PLAIN to simply MIMETYPE_TEXT_PLAIN, instead of telling me that the whole object is wrong, it only tells me that it can't recognize MIMETYPE_TEXT_PLAIN (and only that), like here: http://i.gyazo.com/a30727b84b6dd7694de67e23c05f57a0.png May 03 18:17:57 TacticalJoke man, reddit has been down a lot over the past week, and its getting worse May 03 18:18:19 something is wrong over there, maybe not enough $$$ to add servers for capacity, or what May 03 18:18:51 treelzebub: I added cursor.getNotificationUri(getActivity().getContentResolver(), MediaStore.Images.Thumbnail.EXTERNAL_CONTENT_URI); to onLoadFinished(), but that was perhaps not the point of Step 1 in the SO post you linked? May 03 18:19:21 http://www.amazon.com/Outdoor-Security-Floodlight-Activated-Protection/dp/B00F58KCEQ May 03 18:19:21 joakimk_: strange, it just autoupdates data for me. though I use custom contentprovider May 03 18:19:36 just picked that up, hope it's as bright as my old floods May 03 18:20:14 icedp: odd thing: If I switch into another gallery app -- e.g. the default one -- then *that* app immediately refreshes itself. If I then go back to my app, the new thumbnails are added.... May 03 18:20:31 icedp: my app was like that before I added the content observer May 03 18:20:59 so it *does* update its UI, but only when "triggered" by another app... Very confusing stuff :-( May 03 18:21:40 Does someone have a good article about how to use your styles well in Android? It's all a big mess. May 03 18:21:54 g00s, have you ever tried cucumber-jvm? or appium? May 03 18:22:01 no May 03 18:22:10 :| May 03 18:22:15 Muchoz there is one, hold on May 03 18:22:17 Could someone explain the difference between http://developer.android.com/training/material/lists-cards.html and gabrielemariotti's cardslib? May 03 18:22:26 damn this is really hard stuff hahaha May 03 18:22:38 I mean to design env. on new platform May 03 18:22:43 Muchoz in no order https://chris.banes.me/2014/11/12/theme-vs-style/ May 03 18:23:00 Muchoz http://blog.danlew.net/2014/11/19/styles-on-android/ May 03 18:23:19 joakimk_: how do your CursorAdapter's super ? May 03 18:23:39 g00s, I'll read them. Thank you! I find this theming to be huge pain of Android dev. May 03 18:23:46 icedp: How do you mean? May 03 18:23:53 should super(context, cursor, true) joakimk_ May 03 18:24:01 Muchoz but one thing you'll have to find out yourself, is when you can use built-in styles from platform or appcompat - that is a huge pain May 03 18:24:25 g00s, well I'm using those too but it's the biggest pain in the code May 03 18:24:27 so for that i recommend going through AppCompay styles and seeing whats there May 03 18:24:29 icedp: are you talking about the onCreateLoader(), onLoadFinished() and onLoaderReset() methods (the callback methods)? May 03 18:24:38 I really hate having to change the layouts. May 03 18:25:12 "I have not yet convinced myself that there is a way to work with themes without going crazy." May 03 18:25:13 joakimk_: now, I', talking about your mPhotoAdapter May 03 18:25:21 Spot on May 03 18:25:27 Muchoz lol May 03 18:25:53 icedp: aha, you mean the bindView() and newView() methods? They do *not* super. May 03 18:25:56 i see the whole android resource system as too low level, you wind up with many res/ directories, spaghetti / octopus between all these things, etc May 03 18:26:03 joakimk_: no, it's constructor should call super with autoRequery true May 03 18:26:28 joakimk_: public SearchItemsAdapter(Context context, Cursor c, boolean autoRequery) { May 03 18:26:30 super(context, c, autoRequery); May 03 18:26:39 joakimk_: is autoRequery true in your adapter? May 03 18:27:57 icedp: sorry for being so slow. Here's a paste to PhotoAdapter: http://pastebin.com/n3JkDgYw May 03 18:28:07 no AutoRequery... May 03 18:31:01 buffer 30 May 03 18:31:07 icedp: still, the use of autorequery is officially discouraged? http://stackoverflow.com/questions/21158932/why-it-is-discouraged-to-use-autorequery-in-cursoradapter May 03 18:32:06 joakimk_: hm, yeah, looking into the code it seems that is not needed with loaders May 03 18:32:47 that post recommends using SwapCursor, which I'm doing... May 03 18:32:50 g00s, "Rule #7: DO NOT mix implicit and explicit parenting." Well fuck May 03 18:33:18 I knew what it did, but it looks horrible nonetheless. May 03 18:33:28 if I change ClipDescription.MIMETYPE_TEXT_PLAIN to simply MIMETYPE_TEXT_PLAIN, instead of telling me that the whole object is wrong, it only tells me that it can't recognize MIMETYPE_TEXT_PLAIN (and only that), like here: http://i.gyazo.com/a30727b84b6dd7694de67e23c05f57a0.png May 03 18:33:55 whoops, I pasted this wrong May 03 18:33:59 this is the correct one: May 03 18:34:00 What's wrong with this ClipData object? http://i.gyazo.com/96f2d3abef00156288df0d505bb50330.png - Worth nothing: if I change ClipDescription.MIMETYPE_TEXT_PLAIN to simply MIMETYPE_TEXT_PLAIN, instead of telling me that the whole object is wrong, it only tells me that it can't recognize MIMETYPE_TEXT_PLAIN (and only that), like here: http://i.gyazo.com/a30727b84b6dd7694de67e23c05f57a0.png May 03 18:35:04 joakimk_: where do you call init/destroy Loader? May 03 18:35:15 icedp: still... I'm using a Loader to load thumbnails into a gridview. When the Mediastore updates, I want the UI to update. Should be simple, right? (Plus -- oddly -- my UI *does* update but only whenever *another* app does the work for me) May 03 18:35:40 g00s, this is my biggest mistake by far and I admit it: https://i.imgur.com/PAZmikp.png May 03 18:35:52 it's horrible to see. May 03 18:36:11 :D May 03 18:36:11 icedp: initLoader is called in onActivityCreated(), but I don't call destroy(). I have an onDestroy() callback method though... May 03 18:39:14 loaders suck May 03 18:39:23 wish google didn't come up with that shit May 03 18:40:10 well, they had to come up with something because they fucked up Cursor.requery May 03 18:40:20 pfnQ: you can always keep on trying your managed query May 03 18:40:42 thepoosh, not really, run a new query and swap out the cursor May 03 18:40:50 when? May 03 18:41:00 how do you know that a new query is needed? May 03 18:41:10 thepoosh actually you can use ContentObserver w/o ContentProviders May 03 18:41:29 thepoosh, lots of ways May 03 18:41:42 i'm intrigued May 03 18:41:48 just set up a contentResolver to listen to "/my/foos" , and insert with plain sqlite calls, but call ContentResolver.notify(/my/foos) when you do something May 03 18:41:53 any way you want of notifying when new data is available May 03 18:42:17 or eventbus, or whatever yea May 03 18:42:23 g00s: but, my point is, my app does not change the data. I only want my app to update when new images appear in MediaStore May 03 18:42:38 joakimk_ right, so you need to react to those May 03 18:42:44 i'd use a loeder :) May 03 18:43:03 unless there is a better API they give you for watching that May 03 18:43:10 (out of the box) May 03 18:43:29 I though I could do that by registering a contentobserver to the URI = MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_UTRI May 03 18:43:30 URI May 03 18:43:54 if *it* changes, reload and swap the cursor. No good? May 03 18:44:03 *whenever* it changes May 03 18:44:07 :) May 03 18:45:02 i thought there was a media scanner api ... May 03 18:45:13 i'm not familiar with it, but it should be a very common scenario May 03 18:45:23 that's for requesting a scan May 03 18:46:29 pfnQ: right! So, that requires I know a specific file:/// to watch for May 03 18:46:48 that's my understanding, from what I've seen so far May 03 18:46:56 joakimk_, no, path May 03 18:47:00 not file May 03 18:47:22 but, can my path be MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI ? May 03 18:47:39 also did you see https://code.google.com/p/android/issues/detail?id=68056 May 03 18:48:01 dunno, I don't work with thumbnails in mediastore May 03 18:48:43 g00s: hmm.. Thanks. May 03 18:49:11 one of the problems with content providers, is that they have to be designed to notify on the "topic branch" you expect May 03 18:49:35 if they messed that up, as in - they added something, but didn't notifyUri, then ... nothing you can really do May 03 18:49:47 or if you need a certain condition watched that can not be encoded in their Uri scheme May 03 18:49:54 g00s: I see. Maybe a third-party app (like mine) can't really do this then? May 03 18:50:14 joakimk_ i'd look through the source code honestly May 03 18:50:16 I still would have thought it be possible to do a *manual* reload. Just requery the cursor, and swap it May 03 18:50:24 joakimk_: try to debug into MediaProvider (or how is it called) May 03 18:50:47 look for EXTERNAL_CONTENT_URI being used on the same line as notifyUri May 03 18:51:08 I have a "refresh" menu option, which calls restartLoader (or something). But no effect. Ok, I'll keep looking :-) May 03 18:51:28 yeah i would make sure you can pull fresh data correctly first May 03 18:51:38 if you can't do that, you can't watch for it either :D May 03 18:53:32 g00s: figured I was just doing it wrong ;-) May 03 18:54:43 Hello all, how would one clear the emulated SD card after say a test? I am looking at ADB commands right now and am not really finding anything. If there's a way to rm the data via the emulator's shell that would be great too May 03 18:55:21 adb shell May 03 18:55:21 rm -fR /sdcard? May 03 18:55:33 /sdcard/* May 03 18:57:07 damn, w/o lambdas Rx is barely readable http://t.sql01.com/sc/a41ebc0a_1430679373.png May 03 18:57:29 why don't you have code folding enabled? May 03 18:57:39 IDEA will show you that in lambda syntax May 03 18:58:06 Mavrik: I do, I'm writing it May 03 18:58:08 Ashiren: would that remove the files stored in the sdcard or the sdcard img itself? many thanks May 03 18:58:35 Also how can I redirect the stdout of the adb shell commands to my terminal so I can see what they're doing? May 03 18:58:45 icedp: It's not pretty but you get used to it, plus AS automatically folds those May 03 18:59:30 ah I see I've got to write it to a file, nvm, I've got it. I think. May 03 18:59:42 sean_1: files in sdcard May 03 19:02:05 Ashiren: okey dokey :) May 03 19:03:37 but anroid emulator is meh May 03 19:03:52 it's good if you run QEMU May 03 19:03:56 CedricBeust is there an AS keypress that will collapse all my lambdas *only* May 03 19:04:12 g00s: Don't know May 03 19:04:40 it seems pretty fiddly; when i open a file everything is nice though May 03 19:04:59 hmm, don't they autocollapse as soon as you move the cursor out anyway? May 03 19:05:16 that would be nice, let me know how :D May 03 19:05:23 "it just works"? May 03 19:05:30 :/ May 03 19:05:36 i've never seen that. i keep the defaults May 03 19:05:49 maybe there is something you can tweak May 03 19:08:21 * g00s <3 sqlite ON DELETE CASCADE May 03 19:08:55 i remember, sometime around froyo, sqlite shipped with android didn't have true foreign key support (ugh!) May 03 19:08:59 or maybe donut May 03 19:10:55 i wonder if google will say anything about firebase at I/O ... it would be nice if they added that to Play Services May 03 19:11:56 oh nm, seems its still platform agnostic thats good May 03 19:12:28 g00s: the sqlite from froyo still sounds better than MySQL I used to know :D May 03 19:12:55 i just wish we could do user defined functions and have better ALTER TABLE May 03 19:23:27 g00s, well sqlite itself didn't always used to have all the nifty features either May 03 19:23:39 ON DELETE CASCADE is not even sqlite specific ;) May 03 19:23:49 exists in pretty much all modern DBs May 03 19:32:18 wow, moto x so cheap May 03 19:32:33 400 including wireless headphones, no contract May 03 19:33:48 2012 or 2014? May 03 19:33:58 Probably preparing to get rid of all stock over the next quarter or two May 03 19:34:28 ah 2014 obviously May 03 19:34:39 yeah I think a similar thing happened with 2012 at the time May 03 19:36:03 Is it possible to setOnTouchListener on the root layout of your fragment or activity? May 03 19:36:12 onTouch doesn't seem to be getting called May 03 19:36:43 er, why don't you try? May 03 19:37:02 Yup, I did. Doesn't seem to be getting called May 03 19:39:13 pretty sure viewgroups just pass the touch events to the appropriate child May 03 19:40:13 Hmm right. I have a ScrollView child which does detect onTouch. So maybe it is intercepting it... May 03 19:40:14 unless you have a custom viewgroup of course May 03 19:40:55 scrollview *is* a viewgroup, it has access to all touch events May 03 19:45:10 So if I returned false for onTouch on the ScrollView, wouldn't that allow the parent to handle onTouch? May 03 19:45:19 It doesn't, but it would make sense if it did May 03 19:46:35 actually viewgroups make use of onInterceptTouchEvent rather than onTouchEvent May 03 20:02:41 Ok thanks, I'll keep fiddling around with it May 03 20:05:13 hello everyone, im having trouble with sending strings back and forth between a serversocket and a client. If i post some code, could someone give it a look? May 03 20:05:36 just do it May 03 20:05:50 i have my threads setup properly i believe, but for some reason, it seems to break out of my while(true) May 03 20:06:22 danijoo i noticed AS 1.2 is starting 2, 3 , 4 gradle daemons ... have you seen this ? its a nightmare May 03 20:06:44 i used to just have that one external java process, yeah it grew - but just one May 03 20:06:52 g00s, I try to ignore that "AS want an update" at the moment :p May 03 20:07:11 oh i'm using 1.2 stable May 03 20:07:19 im still on 1.1 May 03 20:07:20 http://pastebin.com/E8LALKRq May 03 20:07:36 so you are saying it now starts multiple daemons and they all grow with each build? May 03 20:07:51 seems like you now need a cluster to develop android then, lol May 03 20:08:20 i believe my issue is within lines 200-250 May 03 20:08:24 @nottapesahc, is the socket timing out? May 03 20:08:24 my machine doesn't have enought ram for them, so i can't hang around and watch them too much ... i have to swat them right away May 03 20:08:36 no it connects fine May 03 20:08:44 and i can receive messages from client to server May 03 20:09:02 but when i try to send the username of the server to the client, it isnt received May 03 20:09:12 what a mess. seems like I soon have to switch to building via commandline then May 03 20:09:59 Hey all, within monkeyrunner how would I start/stop logcat for logging? This is because I want to be able to specifically log data when each of my testing functions run, and then stop when they end their execution. May 03 20:09:59 with those 4 daemons, my machine locks up so bad sometimes vpn drops network connections May 03 20:10:16 maybe this is an NSA feature :) May 03 20:10:25 try to debug with wireshark or tcpdump, see if its actually sending anything May 03 20:11:02 g00s, how much ram do you have? 2? May 03 20:11:10 danijoo 4G May 03 20:11:17 same here.. May 03 20:11:41 but then chrome eats another gig, May 03 20:11:44 + genymotion May 03 20:11:57 i also notice, sometimes there is just one, but at the moment the build is completed, and apk to be sent to phone, another jvm will start (and hang around) May 03 20:12:13 Ohh hey you know, nevermind, seems like logcat sends a continuous stream of info from the log file. blah. May 03 20:12:16 g00s, do you think its a bug? or a feature? May 03 20:14:11 @baykovr, no its not timing out, but line 254 doesnt show in the console for some reason until after i end the execution? sometimes not at all May 03 20:15:33 danijoo lol no idea May 03 20:15:54 sound like it possibly "leaks" the daemon May 03 20:16:03 and starts e a new one because not finding the old May 03 20:16:07 or something weird like that May 03 20:16:19 yeah May 03 20:17:43 seems like I wont upgrade to 1.2 for another week or so :p May 03 20:17:54 have to get 2 important updates finished first May 03 20:18:42 It's going to be hard to debug the server and client at the same time, I recommend you eliminate one variable by using netcat as your client/server May 03 20:19:00 and see if it is able to recv May 03 20:19:14 hey people May 03 20:19:25 hey guy May 03 20:19:43 hey what's up danijoo May 03 20:20:21 Hi all, I'm pretty stumped. I'm trying to program an app and my goal is to have the movie title the user inputs on the Main Activity show up in the tvResultsTitle TextView after the user presses Search and the new activity is created; however, as it is now, nothing happens when Search is pressed. Would anyone be willing to give me any pointers, please? I'd greatly appreciate it. My code can be found https://github.com/MJ94/MovieMagic/tree/master/app/src/main May 03 20:20:21 /java/edu/css/mjackson1/moviemagic and https://github.com/MJ94/MovieMagic/tree/master/app/src/main/res/layout - thank you! May 03 20:20:24 self-imposed deadlines suck May 03 20:20:54 i have a question, i want to make some sort of system where users have to activate their account by physically tapping two phones together or scanning a qr code, some kind of refer a friend system, but how can i store a activated / unactivated state? May 03 20:21:05 first start of the app creates an account May 03 20:21:13 Oops: https://github.com/MJ94/MovieMagic/tree/master/app/src/main/java/edu/css/mjackson1/moviemagic and https://github.com/MJ94/MovieMagic/tree/master/app/src/main/res/layout :) May 03 20:22:23 MJ94, 2 public classes in one file? May 03 20:23:05 getIntent().getStringExtra(...) May 03 20:23:08 wait. an activity inside an activity? ^^ May 03 20:23:12 what is this? May 03 20:23:41 ReScO, shared preferences? May 03 20:23:46 danijoo: Hmm? May 03 20:23:53 ReScO: SharedPreference, or a db. Or just a simple file. May 03 20:24:01 danijoo: cross-check shared prefs with internet somehow? May 03 20:24:02 Basically, any of the normal ways of saving state :p May 03 20:24:13 MJ94, in your result activity is another activity calles class1 May 03 20:24:16 that makes no sense May 03 20:24:42 Yo dawg, we put an android.app.Activity inside your android.support.v7.ActionBarActivity. May 03 20:24:58 ReScO, init a p2p connection with the "tap" event May 03 20:24:58 so you can activity while you activity? May 03 20:25:04 and check in that May 03 20:25:16 danijoo: i have no idea what you just said May 03 20:25:40 ReScO, for example, when the two devices tab and you want to do the check, establish a connection between them May 03 20:25:50 for example via bt May 03 20:25:53 NDEF? May 03 20:26:02 I wish android studio didn't run like shit May 03 20:26:11 is that too much to ask May 03 20:26:21 baykovr: I've never had a problem with it May 03 20:26:25 NFC NDEF with a per-user key, receiving end gets key, uses it to activate their account, kaboom May 03 20:26:28 baykovr: Kinda like Floyd Mayweather. May 03 20:27:32 sigh May 03 20:29:21 hm when launching your android app, can the first seen Activity be chosen based on some data from the app's database? May 03 20:29:30 ReScO, if its refer a friend, just send the data from the referer to the friend phone via NFC, and let a broadcastlistener wait for it May 03 20:30:10 saapas, no. but you can have a chosing activity without a UI. It will look like what you want then May 03 20:30:29 saapas: sortof. You would have an initial activity that's never actually shown, which reads the db and calls startActivity in onCreate May 03 20:31:09 all you need to do is not setting a content view May 03 20:31:51 ok. I could also have the MockMainActivity call onCreate() from another class that is not necessarily an Activity, right? May 03 20:32:23 s/from another/defined in another/ May 03 20:32:28 Look I've been trying for days to find work.. Now I'm asking can anyone donate anything to a husband and wife who are hungry and as of today sleeping outside? I'll work for it but if no work i need donations May 03 20:32:37 saapas: that sounds like a bad idea :) May 03 20:32:44 JesusFreke, ok thanks :P May 03 20:33:22 saapas: unless you just mean extracting the logic out into a common place or something May 03 20:33:49 but I would recommend against if (blahFromDB) { something.onCreate() } else { somethingElse.onCreate() } May 03 20:34:35 where the onCreate methods set the content view for the MockMainActivity May 03 20:35:16 yes, let's forget that. May 03 20:36:00 ronkrt, Im sorry for you but this is absolutly the wrong place for this. May 03 20:36:39 Sorry danijoo no choice May 03 20:36:54 saapas, onCreate() { if(...) startActivity(IntentA) else startActivity(IntentB) } May 03 20:37:50 JesusFreke, danijoo, but if I call startActivity() in an Activity that does not have a layout of its own .. what happens when the user presses the back button on ActivityA and ActivityB ? May 03 20:38:24 saapas, just call finish() immediatly after startActivity(), then it will get removed from the backstack and not appear onBackPress May 03 20:38:46 oh. wow. May 03 20:41:59 :( May 03 20:42:06 ;o May 03 20:42:33 I hate banning because of that. Had a conversation with him in -root though. Unfortunately, he'll wasn't interested in not spamming. May 03 20:42:41 Doh. May 03 20:43:01 you can still quiet prior to ban :) May 03 20:43:10 (it's also recommanded) May 03 20:43:14 I've been wondering whether he's legit or some long-game scammer. It's sad if it's a true story. May 03 20:43:18 adq: that's actually not a bad idea. thanks May 03 20:43:52 Though programming should be the least of someone's worries if they're now homeless. May 03 20:44:36 TacticalJoke, maybe the only way he sees to earn money. but still .. this is not the place. May 03 20:45:01 yea May 03 20:45:51 mendicancy on irc.... on a dev channel.. nothing suprises me anymore May 03 20:46:47 is there a way to run an apk on all connected emulators simultaniously with one command? (prefereably through AS) May 03 20:46:48 alright , nobody move, this is a hold up, slowly take your wallets out of your pockets and mail them to me! May 03 20:47:36 danijoo, nop, need to script that with a little loop and taking in account the device name to inject into -s May 03 20:47:48 JesusFreke, danijoo thanks for the tips I'll save them for later May 03 20:47:59 adq, meh. then i rather dont do it at all :) May 03 20:48:07 danijoo, however you can select all device/avd/vm in AS popup window when using "run" May 03 20:48:13 but it's not parallel, iirc ... May 03 20:48:30 adq, oh lol. why didnt I try that? thats EXACTLY what I meant.. May 03 20:48:44 should work :p May 03 20:48:51 I just need it to quickly compare some layout across sdk versions May 03 20:49:10 there is also a plugin for intellij/AS related to apk, but i've never tried it May 03 20:49:35 about ronkrt .. if they're sleeping outside, how come he has power for the laptop, or would have in few hours? to do any paid programming.. May 03 20:49:39 im only using the plugin for quick uninstal/clear appdata May 03 20:49:47 ah yes it was this one danijoo May 03 20:49:56 adq, thats a really good one May 03 20:50:09 saapas, pay in advance maybe :p May 03 20:50:12 it helps :p May 03 20:50:33 he was in here some days ago telling that hes currently in a motel and looking for payed work May 03 20:50:38 because of.. same reasons May 03 20:50:57 he can work at macdonalds or other shitty job in the meantime May 03 20:51:01 anyway May 03 20:51:57 that moments make me happy to live in a country with social benefits May 03 20:55:42 yyyeap May 03 20:56:45 gold old usa has plenty of benefits if you are poor; CCA / GEO will gladly give you a bed May 03 20:58:05 hell, that can be a retirement plan ! May 03 20:59:12 if you dont REALLY fuck up, the land of poets and thinkers always takes care that you have a roof over your head. May 03 21:00:38 I'm trying to do something I had thought would be simple, and I'm hoping I'm missing something obvious: using Picasso + OkHttp, I'd like to load from disk if available, and fire off a network request after that has completed, to download / update. May 03 21:02:18 That's called stale-while-revalidate May 03 21:02:36 groxx, make 2 seperate calls. For the first add "only-if-cached" as Cache-Control header May 03 21:02:47 OkHttp's API doesn't support delivering multiple responses. May 03 21:02:56 Yes, so you have to do it manually. May 03 21:03:09 yeah, I'm making 2 separate calls at the moment, and it's essentially working. unfortunately it means decoding the bitmap twice if if the request is cached. May 03 21:04:02 this eventually runs on some older crappier devices, so I'd prefer to not thrash the memory that much May 03 21:04:46 and low-priority seems to only queue up to 5 before they fire off anyway, even when flinging the list of images May 03 21:06:17 groxx, but if you have one staled and one running request, woudnt you need to decode twice anyways. I dont know how to avoid that May 03 21:06:34 to add to all this, if I use .into(target) to skip the request if it served from memory (so I don't do this dance _every_ time the image loads), I lose the fade in animation and would have to redo that by hand too. if I use .into(imageview, callback), I can't inspect the source of the data, so I can't skip the request. May 03 21:06:57 danijoo: no, the request usually returns 304, which just kicks back to serving from the disk. May 03 21:07:45 as soon as I get the request code, the whole task can be killed, but I can't find a way to detect that (without a _lot_ of messy work. surely there's a way.) May 03 21:07:58 ah. thats what you mean.. May 03 21:09:58 Hey all, is there a simple way of redirecting logcat output to a log file from within a monkeyrunner script? May 03 21:12:11 sean_1, 'logcat > logcat.txt' May 03 21:18:02 danijoo: MonkeyDevice.shell('logcat > logcat.txt') I think will just make a file on the android though May 03 21:18:18 I mean yes I know I can just run logcat from the cmd line but I need to do it from within the script May 03 21:18:39 And my professor uses a windows machine so i don't think whatver i do will be portable if i did that. May 03 21:25:54 Sean_Wang: is there any possibility you are my professor? May 03 21:26:38 lol May 03 21:26:56 What, it's his name! May 03 21:27:19 well i dont know how you want to run monkeyrunner from the device and make it send the logs to your system May 03 21:27:36 i'd just create a script that runs logcat, then start monkeyrunner and then stops logcat May 03 21:28:05 danijoo: you can't actually start logcat with the MonkeyDevice.shell command unless you specify the -d switch or something like that May 03 21:28:15 I can't get it to give me that continuous stream of output May 03 21:29:00 What my plan was, was to start it up, write to a file, then every time one of my logging functions would execute, stop the process, write "STARTING (function-name" May 03 21:29:16 to the file, then start the thread up again before the function starts May 03 21:29:44 woops, not every time one of my logging functions would *execute*, but every time they would get *called* May 03 21:30:35 danijoo, or even simpler, just run logcat after monkeyrunner May 03 21:30:42 it's buffered anyway May 03 21:30:45 i think that is what i am going to do May 03 21:30:47 that's what we do on CI tests May 03 21:30:52 Mavrik, but how many entries? May 03 21:30:52 just logcat-d after monkeyrunner runs May 03 21:31:05 the problem is, the professor is running everyone's projects May 03 21:31:16 won't that output stuff from their scripts as well? May 03 21:31:25 danijoo, I think the default is 16KB May 03 21:31:32 pretty much more than enough for all use cases May 03 21:31:35 should be enough for everyone May 03 21:31:36 yeah May 03 21:31:48 it's also settable via logcat command May 03 21:31:51 danijoo: so yes, it would output past script runs? May 03 21:32:05 maybe I should truncate the log when my script ends or something May 03 21:32:09 we just do "adb logcat -d" after test run and you get logcat dumped into a file :) May 03 21:32:14 logcat -c May 03 21:32:21 logcat -d then logcat -c. maybe. May 03 21:32:56 i mean yeah i know i can get the logcat dumped but I am just wondering about other people's scripts being run before mine May 03 21:33:04 i think the professor will take that into account though... May 03 21:33:06 haha May 03 21:33:15 alright! -d it is. I think the alternative is way too complicated May 03 21:33:25 just run -c before your monkey script then :P May 03 21:33:34 before and after! for sure. May 03 21:34:13 Sean_Wang: I hope this is alright. See you on thursday! If this is actually you of course. May 03 21:35:07 :D May 03 21:36:12 lol May 03 21:36:15 lol May 03 21:37:41 so... we have professors in here ? ^^ May 03 21:39:48 *maybe*. At least, I hope so. :P May 03 21:41:52 thursday is when I take his final, which I have heard is a doozy. I will have 2 days to prepare after my finals on tuesday. May 03 21:41:55 I know you cant say something else than "I hope so." if its really him :p May 03 21:42:27 whois sean_1 May 03 21:42:37 Hello :) May 03 21:42:53 helicopter88, bip May 03 21:43:01 Hello bip -_- May 03 21:43:04 hello? May 03 21:43:08 lol May 03 21:43:11 hello danijoo ;-) May 03 21:43:21 Sorry helicopter88, I tab faster than my shadow.. May 03 21:43:34 danijoo: haha! I know right? I am sincere though. It would be a great help if he was in here, then I could ask him questions! May 03 21:43:36 damn autocomplete May 03 21:44:00 danijoo, np May 03 21:44:48 Hello, I get "Failed to add reference to 'System.Net.Http'. Please make sure that it is in the Global Assembly Cache." May 03 21:44:58 I have a question ;-) May 03 21:45:01 :P May 03 21:47:46 how to say "get a real smartphone" in a kind way to users? May 03 21:48:38 I just got a bugreport and the phone was a "MEU AN351". I didnt even know this brand exist May 03 21:49:11 danijoo: I get an error with adding a nuget package "Microsoft Azure Mobile Services" : Failed to add reference to 'System.Net.Http'. Please make sure that it is in the Global Assembly Cache. Could you help please? May 03 21:50:11 livtyler, no idea. May 03 21:50:27 I never used anything from MS for and on android May 03 21:51:15 danijoo: thanks, what's that global assembly cache? May 03 21:51:53 isnt that something in .NET language? May 03 21:52:07 hi there, I am stuck on a problem I am having while developing my app. I have a relative Layout which contains an ImageView. Now on top of that ImageView I want to have an ImageButton in a specific location. Now my problem is, that as soon as I change devices and go to a different resolution, the ImageButton changes its place. It seems to be placed relative to its parent. The relative Layout. May 03 21:52:36 Is there any way i can position it in a way so it doesnt change its place relative to the ImageView regardless of device resolution? May 03 21:53:02 paddex, yes May 03 21:53:22 danijoo: yes, thanks May 03 21:53:40 read the documentation on RelativeLayout. There are attributes to place views relative to other views - thats actually the reason relativeLayout exists May 03 21:54:02 Yes, i know May 03 21:54:19 I tried to find something thats relevant to my problem, but had no luck so far May 03 21:54:28 So asking here was kind of my last resort May 03 21:54:47 Anything I have tried did not seem to work so far May 03 21:54:52 paddex, android:align_top="your_imageview" should align it top of your imageview May 03 21:55:10 and remove everything starting with align_parent_... from the view May 03 21:55:35 http://developer.android.com/reference/android/widget/RelativeLayout.html May 03 21:55:36 Alright, I will try and come back if I am sitll having problems. Thank you :) May 03 21:55:55 read "Constants" in the posted link May 03 21:56:09 Will do. Thanks May 03 22:03:48 So this is what I did now: http://pastebin.com/ru6r11YS It still changes the location on my android device May 03 22:06:39 I copy/pasted it in my android studio and it does not change May 03 22:07:29 Well, that baffles me to say the least haha May 03 22:07:32 its always the imageview in the top right corner and the button somewhere lift + below it May 03 22:07:46 s/lift/left May 03 22:08:27 Anyone have experience making a CardListView out of material cards from cardslib? May 03 22:08:32 I aligned it in my Android Studio, but when I run it on my device, its at a different place May 03 22:09:03 at what place is it on device? May 03 22:09:35 tjbiddle, if this is the only question you are allowed to ask, do you still want to know if someone has exp. with it? May 03 22:09:36 a little below and to the left to where i originally placed it May 03 22:10:04 can you show screenshots of both? May 03 22:10:17 sure, give me a couple of minutes. May 03 22:11:25 danijoo: I'm trying to create a CardListView of material cards. It currently seems that it is only creating a list of some other type of card as my image nor text on top of it is showing. Does anyone have an example I could look at or know of an area I should be checking? I've created a separate layout for the CardListView to reference that includes a material card within it - but that has not solved it either. May 03 22:14:00 Does anyone know how to solve the bug where adjustPan only works once? May 03 22:14:38 tjbiddle, I think most of us use plain cardViews and craft their lists/recyclerviews by hand May 03 22:15:32 danijoo: So don't use any of the built-in cards listed @ https://github.com/gabrielemariotti/cardslib/blob/master/doc/CUSTOMIZATION.md ? May 03 22:15:55 http://imgur.com/NMRmSLM here are the screenshots. left is my android studio, right is my device May 03 22:16:24 tjbiddle, I use the default cards that comes with android and not a library like cardslib May 03 22:17:01 paddex, I think thats a resolution issue May 03 22:18:22 thats what i figured. thats why i was asking if there is any way to easily place them so they are in the same spot regardless of resolution. May 03 22:18:34 i guess I'll have to use differently sized images huh? May 03 22:18:54 danijoo: I have yet to find what the library overs over the plain cardViews and vice versa May 03 22:19:36 tjbiddle, from a quick glance, the library just give some short methods to accomplish some common cardview patterns May 03 22:20:43 I'll try poking around with the native one then. May 03 22:24:18 paddex, you might want to place the view pixelperfect from code instead of doing this via xml. Im not very experienced with that though May 03 22:24:26 and have to go now. its late here in europe :) May 03 22:24:27 gn8 May 03 22:24:37 alright May 03 22:24:42 thanks for taking the time to help me May 03 22:24:46 really appreciate it May 03 22:24:47 good night May 03 22:26:06 This is so ridiculous: http://stackoverflow.com/a/26017060 Does someone know a fix? May 03 22:26:20 Panning doesn't work when the text is horizontally centered in an EditText. May 03 22:28:25 Muchoz, https://code.google.com/p/android/issues/detail?id=70698&q=adjustpan&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars May 03 22:28:44 star it, write a comment and help to get it noticed :) May 03 22:29:01 danijoo, got the same conditions except for inputType phone. I will. May 03 22:33:09 danijoo, there goes my comment into oblivion never to be noticed by anyone just like all of my other comments on any other Google project. May 03 22:33:31 It's just a pit with a sign: "Throw issues in here so we can bury them." May 03 22:34:09 Cause I have never gotten an answer on any of my bug submissions to Google projects, not even once. May 03 22:38:49 I’m trying to establish a Bluetooth connection between my computer and my android device using NFC. I have a bunch of NFC tags, and I’m trying to write out bluetooth connection information on it and have the 2 devices automatically connect. I’m finding incomplete guides and documentation online and nothing really that’s helping May 03 22:39:06 anyone have experience with this/know a solid example app somewhere that I can use in my own app? May 03 22:39:33 essentially, i want to be in an activity while i scan an NFC tag and have my phone automatically connect via bluetooth May 03 22:55:58 is there a way to adjust a Picasso request's priority without canceling the existing one? May 03 22:57:24 No May 03 22:57:45 alas. oh well :| May 03 23:00:43 Does anyone have a recommended resource for learning CardsView? Everything points at the cardslib library and the Android Developer info is lacking. May 03 23:01:08 Anyone here decent with Google's merchant accounts? May 03 23:01:27 Trying to see how I need to set up my bank account to register an account for paid Android and Chrome apps. May 03 23:02:41 Im having trouble with forming a socket connection. I have two threads, a server thread and a client thread. The server thread is able to get the input stream, and receive messages from the client thread. The client thread is able to get the output stream, and send messages to the server thread. The problem is that I have one way communication. Whenever i try to get the output stream in the server thread, the May 03 23:02:41 program bogs down, and the same for if i try to get the input stream for the client thread. Why could this be? May 03 23:06:22 New to this. What's the best way to utilise AlarmManager? Should I have a class dedicated to interacting with it to do things like adding and cancelling upcoming notifications? May 03 23:06:43 nottapesahc, I’m not 100% sure but could it be a race condition? are you waiting/locking resources? May 03 23:06:49 I'm trying to add reminder functionality May 03 23:07:14 I have a listview with images and after running a collections.sort, my images arent being sorted along with the data May 03 23:07:50 nottapesahc: it sounds like you might be deadlocking. The server thread is waiting for the client thread to send something, and the client thread is waiting for the server to send something May 03 23:08:05 I believe it has to do with the pictureID assigned to each image from the viewholder (not an actual saved but but saved string with IMGNUMBER.jpg reference) not being sorted May 03 23:08:09 just a guess though May 03 23:08:54 @Gormandy, @JesusFreke, if I put it on pastebin could you take a look at it? May 03 23:09:10 nottapesahc, sure send over the link please May 03 23:09:48 @gormandy, http://pastebin.com/gnmangX8 May 03 23:10:33 106-124 are commented out currently because they lock up the system May 03 23:11:22 that is wehre i was wanting to reply from the server thread to the client May 03 23:12:28 Gormady, and 261-274 are where i was wanting to send read in the client thread May 03 23:12:42 @Gormandy * ^ May 03 23:12:49 nottapesahc: give me a minute, I need to reference some old code of mine May 03 23:13:40 Gormandy: Not a problem. Thank you very much. May 03 23:15:06 nottapesahc: so the one thing I see is, you might want to do your work inside a the while(true) loop May 03 23:15:20 let me give you a snippet of my code May 03 23:15:32 okay May 03 23:16:46 nottapesahc: http://pastebin.com/aSvmzbB4 May 03 23:16:49 Gormandy, in the clientthread? I have a while(connected) which is a while true i think? May 03 23:17:25 nottapesahc: ^ is the server side, let me find a snippet from client side May 03 23:18:00 nottapesahc: actually, both snippets are the same May 03 23:18:15 Gormandy, I have while true loops in both i believe May 03 23:18:35 nottapesahc: but are you handling the command inside the while true loop? May 03 23:19:09 yeah, i'll isolate the problematic portions of the code May 03 23:19:15 okay May 03 23:21:03 nvm I figured out my problem May 03 23:21:32 Gormandy, http://pastebin.com/Eppfbpgt May 03 23:22:03 in the client, the 2nd try should be reading in whatever message the server sends May 03 23:22:42 but for some reason, it just bogs down the code there? it doesnt go to the catch, i've debugged and debugged, but im not sure where control of the program goes at that point May 03 23:24:21 after reading from the input stream, write null into the output stream May 03 23:24:31 not sure if that will fix anything but I think it’s generally good to do that May 03 23:24:49 hi May 03 23:26:33 I had AS working fine, did a restart now when I run it I get a initial setup and then I get this error "The following SDK components were not installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22" May 03 23:26:45 what should I do to fix it? May 03 23:48:12 With MVP, where should I do the actual startActivity or fragment transaction? May 03 23:55:26 NCS_One: Google probably knows: https://www.google.com/search?q=%22The+following+SDK+components+were+not+installed%22+android+studio May 03 23:56:45 OK, so I want to have an action bar and then the rest of the screen a fragment depending on the state of my app. Should I just make a containing frame layout and use fragment transactions for managing the fragments in this "middle" part? May 04 00:02:55 hey guys i'm trying to add the possibility to annotate a picture in my android app like drawing a square on the image and adding some text but not sure how to go about it May 04 00:05:36 Hey folks, I want to determine how much of a TextureView is covered by a Toolbar May 04 00:06:14 I think I need to get the ActionBarSize in dp and multiply it by the density of the image in the TextureView May 04 00:06:25 so how do I determine that value programatically? May 04 00:11:09 Ankhwatcher: I think this way works: http://stackoverflow.com/a/13216807 May 04 00:11:09 Ankhwatcher: just fetch the resource May 04 00:11:27 You might want to use R.attr.actionBarSize if using AppCompat (but I can't remember whether it matters). May 04 00:24:57 So, Dart? May 04 00:25:09 Sorry if this has been beaten to death already. May 04 00:36:57 for Christ sake, in fragments savedInstanceState.getCharSequence leaks an activity May 04 00:37:02 why everything has to leak May 04 00:37:49 hehe May 04 00:39:17 BigRonnieRon actually, i haven't seen anyone talk about dart here May 04 00:42:04 TacticalJoke i'm reading this thread on /r/androiddev about people porting stuff to windows phone ... May 04 00:42:37 man i think microsoft made a mistake; so much crap on Play Store, now that crap winds up in their store - and its not even a native experience May 04 00:47:12 Yeah, the non-native experience doesn't sound amazing. Do you think they'd filter their store better than Google does, though? May 04 00:47:25 BigRonnieRon: Optional typing = do not want. May 04 00:49:09 http://www.reddit.com/r/androiddev/comments/34kdvu/googles_dart_language_on_android_aims_for/cqvpkrl May 04 00:50:42 'The Android team has been crystal clear that their focus is 100% on Java" ... but lets be honest, unless you are well connected the android team doesn't tell regular people jack shit :) May 04 00:50:56 until it happens, of course May 04 00:53:49 even if it was the case, they aren't going to say "yeah, we realize java is a dead end so... sometime next year we're all converting you guys over to X" May 04 00:55:08 or some other drastic thing like "yeah, we're merging android with a ChromeOS" :) May 04 00:57:40 but once in a while, somebody does drop a hint ... i think in the dart discussion somewhere, there was a reference to Matthias Duarte - i distinctly remember a verge interview with him and he kinda seemed down ion native apps and open to things discussed in the dart presentation May 04 00:59:24 g00s: tbh, there's not many sensible options outside of JVM for them right now... May 04 01:03:45 p_l sure, i'm just saying the android team isn't really open with what they have planned for the future May 04 01:18:36 does somebody use Xamarin with Microsoft.Net.Http pcl? please I need help May 04 01:33:47 Hi. Quick question, can the action bar only hold square menu items? May 04 01:35:20 ThomQ: any size you like May 04 01:36:52 im getting a weird result. The standard google icons of 85x95 show fine. I got one 221x98 icon and it´s a lot smaller, so it can fit in the square item´s box May 04 01:38:02 ThomQ: set a custom actionView with an ImageButton in it May 04 01:38:26 http://imgur.com/oWbL7gi May 04 01:38:28 ahhh May 04 01:38:47 yeah, i was just about to do that. I thought i´d ask specificly to items May 04 01:38:54 cool, ill try the ImageButton, thanks May 04 01:39:02 Napalm have you messed around with Lollipop nested scrolling yet ? May 04 01:39:13 nope May 04 01:39:18 ;) May 04 01:39:20 i dont think i will for sometime May 04 02:29:21 Hey guys. I'm learning design patterns while at the same time implementing okhttp So I'm learning that doing something like OkHttpClient client = new OkHttpClient(); is bad because it's not programming to a supertype. How would I avoid this? If I avoid it... testing should also be easiesr huh? May 04 02:36:08 anyone tried sky yet ? May 04 02:44:11 eghdk: Look up OkHttpClient and see what interface it implements May 04 02:46:40 Cloneable! May 04 02:51:41 heh May 04 02:55:42 CedricBeust: and JakeWharton so I'd do Cloneable client = new OkHttpClient()? May 04 02:56:28 eghdk: No, wrong interface May 04 02:56:52 but you have the right idea May 04 02:57:25 Well in this case, you can't really do what your friends recommended since it is indeed the only interface there May 04 02:57:40 Somebody improperly named OkHttpClient **** ENDING LOGGING AT Mon May 04 02:59:59 2015