**** BEGIN LOGGING AT Sat May 30 02:59:59 2015 May 30 03:07:54 anything new come from I/O today? May 30 03:09:53 DadFoundMy I'm wondering the same May 30 03:10:25 theverge has a bunch of highlights May 30 03:10:44 i want this years stuff not last year's :D May 30 03:13:14 * capella want new phone ... gooder phone May 30 03:13:34 ;win close 7 May 30 03:14:41 * capella want snapdragon 810 in < 6" May 30 03:15:03 Those things are too big ... :) May 30 03:15:06 capella wants to burn his hand May 30 03:15:14 heh - yah, there's that May 30 03:15:24 moar power May 30 03:21:47 :) it must do this http://motherboard.vice.com/tag/Optical+Computing May 30 03:22:08 Hello, does anybody use AndroIRC for Android? I would like to try implementing sasl or SSL and would like help with this. May 30 03:23:46 g00s: https://gist.github.com/slightfoot/171f5002d06089cae460 May 30 03:23:47 :D May 30 03:26:51 i dont understand this at all http://www.reddit.com/r/androiddev/comments/37pv4i/a_quick_chart_on_the_current_fab_bug_across/ May 30 03:27:07 why is it defaulting to a square only on jellybean? May 30 03:33:14 i want to algin another textview to bottom of exisiting textview May 30 03:33:49 boodllebat: and? May 30 03:34:06 Napalm: i have no clue how to do that May 30 03:34:24 Napalm: You there? I'm trying it out right now May 30 03:34:29 * capella doesn't know how to algin a textview either May 30 03:34:37 boodllebat: do just that.. use a wrap the two TextView's in a RelativeLayout and add android:layout_below="@+id/first_text_view_id" May 30 03:34:37 relativelayout android:layout_below? May 30 03:34:46 Napalm: sniped May 30 03:34:53 ;) May 30 03:35:41 DadFoundMy: https://gist.github.com/slightfoot/171f5002d06089cae460 < check the comment at the bottom for images May 30 03:36:11 Napalm: ok below this textview i should write this http://paste.ubuntu.com/11444643/ May 30 03:37:00 Napalm: i think you meant to highlight someone else haha May 30 03:37:20 no, just sharing May 30 03:37:40 boodllebat: your using pt? May 30 03:37:42 wtf May 30 03:37:47 lol May 30 03:37:58 yeah im looking at now, pretty interesting May 30 03:38:00 Napalm: what is pt ? May 30 03:38:10 boodllebat: your using it and you don't know? May 30 03:38:11 lol May 30 03:38:15 Napalm: oh size May 30 03:38:29 boodllebat: you need two TextView's in the RelativeLayout May 30 03:38:40 Napalm: yeah May 30 03:38:59 Napalm: what something wrong there ? May 30 03:39:20 boodllebat: you only have one May 30 03:39:21 lol May 30 03:39:34 Napalm: yeah i'm writing another one May 30 03:39:40 Napalm: on my way May 30 03:39:58 Napalm: i have to write another textview below that May 30 03:42:20 boodllebat: so, fixed it? May 30 03:46:18 Napalm: is this right http://paste.ubuntu.com/11444726/ May 30 03:47:53 boodllebat: looks good to me May 30 04:05:30 Napalm: can i use custom images a button ? May 30 04:05:43 as* May 30 04:06:14 if you want May 30 04:08:48 boodllebat what app are you making May 30 04:10:00 seand: this is my first work on android May 30 04:10:14 seand: i'm trying to make some thing for me personally May 30 04:10:45 seand: it will give me all my rss + github + hackernews feed simultaneously May 30 04:10:54 seand: what do you say ? May 30 04:11:00 boodllebat: cool May 30 04:11:40 seand: here is my github https://github.com/flouthoc May 30 04:11:50 seand: tell me yours i'll follow you May 30 04:12:09 seand: but only if you follow me back May 30 04:12:46 boodllebat: mine is github.com/sndurkin but i don't have much on there. the project i'm working on now is closed source so i put it on bitbucket May 30 04:13:04 seand: cool May 30 04:20:49 'Uber Revises Privacy Policy, Wants More Data From Users' because it lost all the data from the french police raid May 30 04:20:51 bading ! May 30 04:25:27 people follow github feeds? May 30 04:29:37 i forgot who was helping me earlier May 30 04:32:26 pfn: not me. i don't follow nobody, and nobody follows me May 30 04:36:01 lets get some stars/votes https://code.google.com/p/android/issues/detail?id=175016 May 30 04:37:48 oh it was Napalm May 30 04:38:18 aspire: ? May 30 04:38:41 you were helping me earlier May 30 04:38:47 with this swipable tab stuff May 30 04:38:47 and? May 30 04:38:58 yeah i had to leave for a bit, my bad May 30 04:39:42 is SimpleOnItemTouchListener new Napalm ? May 30 04:40:03 yes May 30 04:40:14 * g00s waits for SimpleRecyclerView May 30 04:40:34 aspire: did you fix your local maven repo? May 30 04:41:59 Napalm, nope not sure about that i'm just going to try out this tutorial and see if i run into any problems May 30 04:42:21 aspire: https://docs.gradle.org/current/userguide/dependency_management.html#sub:maven_local < read the 50.6.4 section.. notice what it says about settings.xml details about what you need to put in the xml file here http://stackoverflow.com/questions/20911665/cannot-build-app-when-using-gradle-android-studio-and-local-maven-repo May 30 04:42:50 o... May 30 04:43:44 ah May 30 04:43:55 Does anyone here use retrolambda? https://github.com/evant/gradle-retrolambda May 30 04:44:52 liuwenhao: yes May 30 04:45:42 Any major problems with it? I'm going to add to my project to play around with RxJava but I'm worried about breaking what I have already May 30 04:46:23 I've never used lambdas or RxJava before so it's all new to me May 30 04:46:41 rxjava is great May 30 04:47:28 It looks really fantastic g00s. I've been reading that Grokking RxJava guide you linked me the other day May 30 04:47:45 :) May 30 04:47:47 and it has me excited to try May 30 04:48:40 Does it matter what version of JDK8 I use? May 30 04:49:07 i'd just get the latest May 30 04:49:11 1.8.0_45 ? May 30 04:49:42 TextInputLayout seems nice, but it screws up a lot of my tests, since the errors don't go on the EditText anymore... May 30 04:50:06 yeah, I'll just grab that. I thought I had an older version of JDK8 installed but I don't actually May 30 04:56:05 does anyone have the new Google Photo's app? May 30 04:57:16 Napalm: i do May 30 04:59:12 seand: can you rip the APK? May 30 04:59:58 Napalm: how do i do that? May 30 05:02:04 Napalm the apk is on apkmirror right ? May 30 05:02:17 g00s: i just checked, apkmirror is having some issues right now May 30 05:02:39 seand: PMd you May 30 05:02:55 http://phandroid.com/2015/05/28/google-photos-is-now-live-in-the-google-play-store-download/ May 30 05:04:56 g00s: not for me May 30 05:06:55 any big news at google IO today ? May 30 05:08:42 liuwenhao, I don't use that plugin, but retrolambda works and is useful May 30 05:09:14 java 8 still doesn't have type inference, right? May 30 05:11:40 pfn: correct May 30 05:12:17 CedricBeust were you at i/o ? May 30 05:12:33 g00s: no May 30 05:13:04 i would have liked to go to that class on android app architecture May 30 05:13:15 dont think it was recorded May 30 05:13:35 yeah, that would have been nice May 30 05:13:47 wtf, is XmlPullParser some kind of joke? May 30 05:14:04 i get the feeling MVP is gaining some popularity on android but there aren't a lot of good articles & examples on how to use it May 30 05:14:25 seand the data binding thing feels more like xaml / mvvm May 30 05:14:30 while eventtype != xxxx.end_document ... seriously? May 30 05:14:54 g00s: i don't have experience with that, is it a good thing? May 30 05:15:23 i think it needs tooling and framework support or its pita May 30 05:15:23 why most things in java sound like the API designer wanted to make life more complicated than it needs to be? May 30 05:15:27 why most things in java sound like the API designer wanted to make life more complicated than it needs to be? May 30 05:15:59 g00s: I don't know what this class is about but I'm curious to know if it touches advanced concepts like Rx, which appear to be more and more unavoidable these days. If the class was run by Googlers, I suspect Rx was not even mentioned May 30 05:16:33 g00s: i just meant the general idea of introducing logic into the 'view' May 30 05:16:55 with mvvm there isn't logic in the view, its in the viewmodel May 30 05:17:13 but with android data binding, isn't it in the layout file? May 30 05:17:55 i haven't looked too closely at the binding stuff yet, probably wait until 1.0 May 30 05:18:08 i've lost all my appetite for RCs and previews May 30 05:20:09 JFlash, xpp comes from Microsoft May 30 05:20:40 JFlash, so no, wrong criticism May 30 05:21:33 some people insist on being stupid May 30 05:21:52 it does seem that way May 30 05:22:34 to me RX just sounds like another hype bandwagon everyone is jumpin on May 30 05:22:56 let's make it like visual basic, brilliant! May 30 05:23:06 shmooz wut May 30 05:23:19 shmooz: I'd learn about it first before expression an opinion if I were you May 30 05:23:59 Observable Shmobservables! May 30 05:24:41 So far, rewriting things with Rx has consistently yielded more correct and tractable code than the alternative May 30 05:26:19 now i wish there was something like the old signal / slots from Qt May 30 05:26:34 Sounds very untyped, what is that exactly? May 30 05:26:35 although moc was huge pita May 30 05:26:42 it was typed May 30 05:26:53 http://doc.qt.io/qt-4.8/signalsandslots.html May 30 05:27:15 sounds actory then? May 30 05:27:44 for android, rx is very attractive May 30 05:27:55 it yielded some very nice code for me May 30 05:28:02 oh oh wait, did pfn just say that ? May 30 05:28:08 my skeptical ! May 30 05:28:12 *mr May 30 05:28:16 can i make my listview show 3 items per row or something? May 30 05:28:20 pfn: I'd say it's not limited to Android at all May 30 05:28:24 well, I don't use it for any async shit May 30 05:28:33 i want like, a horizontal orientation i guess May 30 05:28:35 mostly because android api is garbage May 30 05:28:47 so instead of 1 item per row i want n items per row (whatever fits) May 30 05:28:47 but it certainly meshes very well with Android (and I reckon, any graphical toolkit that is single threaded, which is... all of them) May 30 05:28:47 rx observers make it much more convenient May 30 05:29:20 all of my async work is encapsulated in futures May 30 05:29:45 g00s: The first paragraphs of this link show Signals and Slots to be pretty much what Rx is... treating everything as obertvers and observables May 30 05:29:49 i liked qt's signals and slots system, but from what i remember, it was a little too limited for me. i remember having to create my own event system May 30 05:30:22 g00s, https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/EntryEditFragment.scala#L113 May 30 05:31:05 pfn: what about that line? May 30 05:31:23 CedricBeust, the whole area is all rx May 30 05:31:31 ah May 30 05:31:44 and considerably nicer than text watchers all over May 30 05:31:45 FYI you can highlight multiple lines with L10-L1 May 30 05:31:47 FYI you can highlight multiple lines with L10-L15 May 30 05:31:58 seand last i used Qt was about 15 years ago; maybe i think back of them fondly because i hadn't seen anything like that before at the time May 30 05:32:04 RxAndroid is certainly nicer than text watchers May 30 05:32:10 yeah, but on Phone hard to type May 30 05:33:01 g00s: i was working on a cross-platform irc client several years ago (now abandoned)... i started it in wxWidgets but then i found Qt and i was very impressed by it May 30 05:33:20 this was probably 7ish years ago May 30 05:33:28 oh yeah i used wx too ... they had a different system for events May 30 05:33:48 seand: I'll forgive you for finding Qt attractive eight years ago. We were young, we were experimenting May 30 05:34:13 oh man, it was great for c++ May 30 05:34:19 CedricBeust: i still think it was pretty awesome. i didn't abandon the project because of Qt May 30 05:34:32 i wrote a custom chat component that had its own text wrapping algorithm, i was so proud of it May 30 05:35:15 i couldn't use Qt's builtin chat component, it was way too slow compared to mIRC May 30 05:35:27 i mean text widget* May 30 05:35:36 seand you didn't work on quassel by any chance ? May 30 05:35:43 no May 30 05:41:58 "create a new build type (purely for dev) that has the min SDK level set to the preview. That way during dev we can take advantage of all the incremental build improvements." ... i dont understand this May 30 05:42:35 incremental builds depends on minSdk ? May 30 05:43:26 yes May 30 05:43:35 optimizations for M only May 30 05:43:54 just like there are lollipop only optimizations for multi dex May 30 05:47:57 It pains me to see Google spend so much time trying to make that molasses slow pig that Gradle is faster May 30 05:48:29 It's like trying to write good tests with JUnit, we all know what the correct approach is May 30 05:48:35 :) May 30 05:48:43 CedricBeust: not testing at all? May 30 05:48:47 i think most of the time is taken up in dx May 30 05:49:01 Create a brand new testing framework that addresses all these deficiencies May 30 05:49:30 every time i build my project, seems like 400 tasks go scrolling by - i think to myself, god what have they done May 30 05:49:37 right, we can call it something like JUnit 5 May 30 05:49:47 * CedricBeust throws up in his mouth a little May 30 05:51:23 i'm kind of disappointed i didn't keep working on this irc client actually... i had such great ambition for it May 30 05:52:16 i basically wanted to create something that was as fast as mIRC, had great UX, and a good scripting API May 30 05:57:39 hm, android doesn't have java.lang.invoke.methodhandle :( May 30 06:02:51 looking for advice on how to connect a data source to a custom gui object May 30 06:03:02 can anyone point me in the direction of a good design pattern? May 30 06:08:23 how can I data to files using some code that abstracts away buffers? May 30 06:08:56 how can I read/write data to files using some code that abstracts away buffers? May 30 06:10:24 JFlash: sounds like basically how java.io is structured May 30 06:11:19 i wonder if Retos next android book will cover L or M May 30 06:11:31 he's really behind :D May 30 06:12:34 i read an android book back in Froyo days, i've seriously considered just going through one again to refresh on things i missed or suck at May 30 06:12:55 like custom views, touch events, etc May 30 06:16:24 so i guess google engineers are starting to use medium now ? May 30 06:16:30 https://medium.com/google-developers May 30 06:18:25 I find following android-dev and a few other choice RSS feeds much more interesting than any book will be able to provide May 30 06:20:13 what i really want is a book on creating rich UIs like the ones in the Material Now awards May 30 06:20:29 i need some author to explain it to me like i'm an idiot May 30 06:20:49 a book probably isn't the way to go... you would do better with articles May 30 06:20:51 especially the animations - i just don't get them May 30 06:22:25 i haven't really looked at animations yet... i'm in the process of redesigning my app to use material design May 30 06:22:32 and it's taking forever May 30 06:22:45 after i get the design right, though, i'll add in some nice animations May 30 06:22:50 seand: your IRC client is for windows or android ? May 30 06:23:15 shmooz: it was a cross-platform desktop client... but i stopped working on it 5ish years ago May 30 06:23:35 CedricBeust i think my world fell apart when google discontinued reader. what do you use for rss ? May 30 06:24:07 this is why you gotta write your own everything May 30 06:24:12 g00s have you taken a look at http://www.androiddesignpatterns.com/2014/12/activity-fragment-transitions-in-android-lollipop-part1.html May 30 06:27:12 shmooz what do you mean? May 30 06:28:45 seand: I was referring to g00s saying his fav RSS client getting pulled May 30 06:28:57 oh May 30 06:29:51 Feedly is okay... their android app is terrible though May 30 06:29:59 Really awful UI but it works May 30 06:30:16 stuff gets pulled, or changed the way you don't like, you should have written your own ;) May 30 06:30:22 okay has anyone used muzei before? May 30 06:30:45 Yes, muzei is great May 30 06:31:17 except for the UI, right? May 30 06:33:55 I gotta study how to add RSS capability to my app soon , a plain media player is pretty boring without RSS May 30 06:34:03 the UI just doesn't make sense to me May 30 06:34:13 there's settings for things but they're in like 3 different places May 30 06:38:54 g00s: I switched to feedly, it's pretty much what Reader was but slightly better May 30 08:30:47 hello May 30 08:30:57 anyone with experience with MoPub here? May 30 08:31:59 My MoPub dashboard shows me very high number of ad requests - around 50k per day May 30 08:32:07 but AdMob only shows 10k May 30 08:32:24 i tried this by switching off MoPub in AdMob mediation May 30 09:02:31 i have a splash screen that that is implemented using a layer list that works fine on the N5. But if I deploy the app on a smaller device, such as the Nexus S some of the bitmaps overlap. How can I get the splashscreen to scale properly for small screens as well? May 30 09:09:47 Is it better to use a single png that has of the elements already embedded or use multiple layers and adjust the pngs dynamically? May 30 09:13:10 barq: what does your layout look like? Are you using density independent pixel (DP)? Do you have the correct images in the correct res folders? May 30 09:14:03 surf2b1: I only have the png in the drawable-mdpi folder. May 30 09:14:22 And I use dp. May 30 09:16:52 surf2b1: This is my layout: http://paste.ofcode.org/te9rYr5H6JcaVw2qFs5Mx2 May 30 09:18:56 instead of a layer-list drawable why not create a layout with ImageViews? May 30 09:20:05 surf2b1: You mean something like a LinearLayout? May 30 09:20:16 yeah May 30 09:20:34 I asked here last time which would be better for a splash screen and was told layer list would be the better option. May 30 09:22:05 I am not sure how I could do different layers in a LinearLayout. May 30 09:23:03 it all depends on how complex the splash screen is (which is a bad UX). I'm assuming it is just showing your logo? Just use a layout to position your image. May 30 09:24:36 Why is it bad UX? May 30 09:25:02 It shows a background and a few logos on top of it. May 30 09:25:35 http://cyrilmottier.com/2012/05/03/splash-screens-are-evil-dont-use-them/ May 30 09:30:16 barq: You can pm me the resources if you want and I can make a layout. Hard to help you any further May 30 10:14:38 why does android load hdpi drawable instead of mdpi on a 3,7" nexusone emulator? May 30 10:22:40 ChampS_: the n1 was hdpi, 480x800 (240dpi), mdpi is around 320x480 iirc (160dpi) May 30 10:55:28 I'm back May 30 10:55:34 my supply has been replinished May 30 10:55:37 and now you will all suffer May 30 10:59:12 anyone has experience with retrofit? May 30 10:59:27 is it retrofit better for a json request to a web server than volley or okhttp? May 30 10:59:59 I dont think all 3 do the same thing May 30 11:00:11 okhttp and volley, ok maybe, but retrofit is for something else no? May 30 11:00:28 dont know May 30 11:11:14 I'm assigning a single drawable to multiple view's with setBackground(). When i change the drawable on pre-lollipop devices the view's don't get updated with the new drawable color. Anyone had a similar problem? May 30 11:11:28 xpheres, those three libs do different things May 30 11:11:34 you can use them one with another :) May 30 11:14:17 still no renderscript code completion & such in AS 1.3 :((( May 30 11:14:43 how do i make sure the second variable in put hashmap is either a string or int http://pastebin.com/h5sh3JdN May 30 11:15:15 views in the json string has int value and the others have string May 30 11:16:31 DarkChaoz, either you convert your int to your string because you have HashMap() May 30 11:16:46 or use HashMap() but you have to deal with the type yourself May 30 11:17:54 Guys, how much should it cost to build an app that would scan an encrypted barcode one could pull from a list of options and display a numerical value? It needs to have a webui that can be user by approved users to add new codes. I'd write it myself, but time doesn't permit so we're thinking of outsourcing it May 30 11:18:13 $2,500 May 30 11:18:24 Really? May 30 11:18:27 That's it? May 30 11:18:33 oh, Im speaking in lebanon May 30 11:18:35 I dont know there May 30 11:19:04 I was thinking of checking out freelancer.com May 30 11:19:20 i've heard good things, but i really need to research how to do this stuff May 30 11:19:21 no check elance May 30 11:19:28 freelancer.com is all indians and pakistanis May 30 11:19:33 communication problems May 30 11:19:54 i see.. thans adq May 30 11:21:37 I work with many indians in my day to day, i think i got communication down :) May 30 11:21:42 psychuil, can you at least estimate the time? May 30 11:21:49 and then can you multiply with an average hour rate? May 30 11:21:54 adq, not really :\ May 30 11:21:54 and then.. ok May 30 11:21:56 stop May 30 11:22:09 o_O May 30 11:22:14 ? May 30 11:22:21 why should i continue? May 30 11:22:44 Thing is, i would need to learn how to do this, and time doesn't permit :\ May 30 11:22:59 here is not for hiring or anything of the sort May 30 11:23:04 you got the tips where to look, that's it May 30 11:23:29 costs vary, my country if they pay an Android dev $24K he has to be the top in the country May 30 11:23:30 i will throw 3 lines of a job desc and ask ppl how much it costs lol May 30 11:23:32 come on May 30 11:24:09 Just trying to get an idea if it's worth persuing May 30 11:24:42 i think it's important to have an idea of the average amount of work May 30 11:24:46 if you want to estimate a cost May 30 11:25:17 and also take in account geography May 30 11:25:23 I'm not versed enough in android development to be able to do that. May 30 11:25:31 prices will vary a lot depending where you ask it to be done May 30 11:25:32 How does geography plays into this? May 30 11:25:56 if you ask the same job in a country X and in a country Y May 30 11:26:04 you will be surprised, the ratio factor can go up to x100 May 30 11:26:05 I don't mind going to india or pakistan and grabbing someone who's above avarage there and pay a little extra May 30 11:26:36 wow i don't implie they know less or more depending on the country May 30 11:26:45 i try to explain the price vary, whatever the skills May 30 11:26:49 i know you don't :) May 30 11:27:06 why dont you go there and look at jobs posted May 30 11:27:09 and see what people are asking for May 30 11:27:12 so damn easy May 30 11:27:16 The main reason i work for my company is that i'm cheaper then someone in the US May 30 11:27:28 Odaym, that's the plan :) May 30 11:27:34 then...... May 30 11:27:37 why here May 30 11:27:43 you need a web browser for that plan May 30 11:28:06 Odaym: 24k/year? May 30 11:28:11 yea bro May 30 11:28:15 no one takes that much as Android here May 30 11:28:20 I know some devs who charge that /month May 30 11:28:27 :) May 30 11:28:31 95th world country May 30 11:29:23 no sorry, i make that much a year May 30 11:29:32 I was talking about $2,500 per month May 30 11:29:38 sorry May 30 11:31:51 they give that to a senior full stack May 30 11:31:54 web May 30 11:32:06 someone very high in IT can reach 4K per month May 30 11:32:15 but he would already be on his way to RedHat or somewhere May 30 11:34:59 I'm talking about freelancers, not full time employees. May 30 11:35:25 here they make much less May 30 11:35:30 namely because they are not a company May 30 11:35:40 its really sad :) May 30 11:35:45 take us to America May 30 11:36:12 activity now blank -___- May 30 11:36:18 Rita Heyworth! May 30 11:36:21 Johny Carson! May 30 11:36:22 haha May 30 11:40:25 was IO that good? May 30 11:40:33 I really thought it was very unexplosive May 30 11:42:15 ah its early morning in US I guess May 30 11:45:57 any windows 7 users here? May 30 11:52:33 hey May 30 12:30:43 odaym throwing back to Rita Hayworth :o Let's talk Jayne Russell! May 30 12:31:16 it's a scene from the Godfather, where Al Pacino's italian friends are walking in sicily and an American jeep runs buy May 30 12:31:17 by* May 30 12:31:31 they tell them to take them to America and drop those names to prove that they know America :P May 30 12:32:18 Ah :) May 30 12:34:16 https://www.youtube.com/watch?v=Xu3FTEmN-eg May 30 12:34:18 top May 30 12:40:00 I have an issue when i try get viewers from json and convert it to string and it put in hashmap it ouputs nothing http://i.imgur.com/cpRKMKi.png May 30 12:40:37 however when i remove the viewers object which im trying to fetch it works fine http://i.imgur.com/nKaXT37.png May 30 12:40:52 my existing code http://pastebin.com/1iL1THMj May 30 12:41:09 and json code which im parsing it from http://pastebin.com/gMSMjzt2 May 30 12:43:38 can anyone help please May 30 12:48:57 DarkChaoz: Just use Log.i and figure out what's not working. May 30 12:50:19 There is a site with loads of Android Studio/idea themes and colors but I can't seem to find it. anyone know what it is? I need a new theme May 30 12:50:38 http://www.ideacolorthemes.org/home/ May 30 12:53:38 where shall i use log i? May 30 12:55:35 Everywhere, dawg. May 30 12:55:50 Attach the debugger, step through your code May 30 13:03:44 not good with logging.. May 30 13:05:11 debugger better May 30 13:07:28 DarkChaoz: This is a fundamental of programming. Gotta get good. May 30 13:08:12 (All of this.) May 30 13:20:57 one question if the json code says "viewers": 1 can i just parse it as String? May 30 13:21:01 just using getstring May 30 13:21:05 or do i have to use getint May 30 13:22:41 depends where its sitting May 30 13:22:51 probably in an object first, then a string inside that object May 30 13:22:58 and no you cannot getint on a string May 30 13:23:05 http://pastebin.com/gMSMjzt2 May 30 13:23:26 object that has array of objects May 30 13:23:27 the only problem im having is getting the viewers value which is causing everything mess up. May 30 13:23:38 which is why im figuring out May 30 13:24:21 no actually, it's an object that has an array of objects, a string, and another object which has several strings May 30 13:24:57 because you are thinking that the whole thing is an array May 30 13:25:11 it's the first item of that whole JSON that is an array, the remaining two others are just objects May 30 13:25:33 unless im horribly wrong May 30 13:26:23 tbh im not very good with json stuff at all.. May 30 13:26:37 its too simple May 30 13:26:42 lookk at it May 30 13:28:29 oh my godddd man May 30 13:28:53 Im writing a small test app and ive been trying to load fucking image with no internet connection May 30 13:29:07 talking to me about json, look at the idiot that's helping you with the json May 30 13:29:10 haha... May 30 13:29:14 fixed it. May 30 13:29:25 json object 0 May 30 13:29:34 there you go May 30 13:29:38 1 and 2 are other objects May 30 13:29:56 you have to see where the ] was closed to know the array ended or not May 30 13:31:19 yeah.. May 30 13:31:33 might just gunna give a break from android entirely.. May 30 13:31:48 yea you been through a lot May 30 13:32:09 from database issues to json May 30 13:32:16 not easy to parse json and deal with databases May 30 13:32:24 though i did manage to figure out database issues myself so thats a plus May 30 13:32:31 oh yay May 30 13:33:05 might tackle one more issue before i take a break lol May 30 13:33:22 ssl certificate stuff when using https websites May 30 13:33:51 JSON is simple. :D May 30 13:33:51 good luck in #security May 30 13:33:55 no TacticalJoke May 30 13:34:11 lol May 30 13:34:13 the guy is really at his whit's end May 30 13:34:22 I mean JSON...come on man, I thought only Google did that stuff May 30 13:35:03 arrays and objects and shit... May 30 13:40:25 build time is so fast May 30 14:07:23 How much does google give back for people buy your app? May 30 14:09:19 I am searching through code a lot May 30 14:09:30 you know how Im doing it? through bitbucket, clicking on links going back through the repo May 30 14:09:31 :( May 30 14:09:39 my soul hurts May 30 14:09:41 It didn't say on the web site. May 30 14:11:28 I take no one knows. May 30 14:11:49 no one! May 30 14:12:29 i mean by how much % you get back for people buy your app. May 30 14:13:10 perlsyntax, the transaction fee is 30% currently May 30 14:13:20 https://support.google.com/googleplay/android-developer/topic/6075663?hl=en&ref_topic=3452890 May 30 14:14:21 capella,Thanks for the information.Wow i thought it would be hight then that:) May 30 14:14:26 high May 30 14:14:37 "google is my friend" May 30 14:14:59 heh - "what would google do?" May 30 14:15:11 go to rehab May 30 14:15:41 12 steps program - first you must accept google XD May 30 14:15:59 EPG, thanks i thought would be 70% May 30 14:16:03 :) May 30 14:17:40 brb need to reboot. May 30 14:22:39 I switched to Java 8 with retrolambda/RxJava... is there any reason to NOT use lambdas as much as possible? today is my first day ever using one May 30 14:22:50 so I don't know of any downsides yet May 30 14:24:18 hello May 30 14:24:33 is it dangerous to show my app id from google play developer console? May 30 14:34:17 liuwenhao: To be clear, it's not really switching to Java 8. Android doesn't support Java 8. May 30 14:34:29 Lambdas in Retrolambda are still allocating closures under the hood, for example. May 30 14:35:06 Ah. So basically it's the same code underneath but looks different to the person reading it? May 30 14:35:37 absof25: Why do you need to show your app ID? May 30 14:36:02 https://dl.dropboxusercontent.com/u/64175875/Untitled.png May 30 14:36:19 do I pass leaderboard ID in submitScore and getLeaderboardIntent? or game ID? May 30 14:40:53 never messed with the gaming side of programming... i'm sure someone here can help though May 30 14:42:52 liuwenhao: no downsides to Lambda.. but you cant use other Java 8 features May 30 14:43:28 Ah; I've never used Java 8 outside of Android so I don't know what I'm missing anyways :) May 30 14:44:03 lambdas are really, really great though... just those alone have cut the lines of code in a few of my activities in half May 30 14:44:08 with Java? Not much :P May 30 14:44:13 Allocating too many lambdas isn't great, though. May 30 14:44:19 I guess it depends on how many is too many. May 30 14:44:32 TacticalJoke why May 30 14:44:42 It gives the GC extra work. May 30 14:44:59 how so May 30 14:45:07 Ah, I see, didn't know that May 30 14:45:18 my app is relatively small so I don't have to worry too much May 30 14:45:48 a lambda is just shorthand for implementing a functional interface May 30 14:45:53 can also do fancy calculating stuff with lambdas and what not via the JNI/NDK in C++11 May 30 14:46:00 depending on how much it is May 30 14:46:47 Runnable r = new Runnable(){ System.out.println("hi"); } vs Runnable r = () -> System.out.println("hi"); May 30 14:47:00 i'm sure the compiled versions of both of these are equivalent May 30 14:49:37 aspire: I don't understand what you're asking. On Android, both of those will allocate an instance of something. liuwenhao was asking about "using lambdas as much as possible", which isn't a good idea for performance reasons. May 30 14:49:57 If lambdas didn't involve instantiation, it wouldn't matter. May 30 14:51:44 I think "not a good idea for performance reasons" is overstating it a bit May 30 14:59:52 well i was just curious about 'allocating too many lambdas isn't great, though May 30 15:00:08 @ TacticalJoke May 30 15:00:22 For performance reasons, I meant. May 30 15:03:42 ahhhh May 30 15:03:51 ok fair enough May 30 15:04:30 Lambdas can be great for readability. I love using them in Kotlin. May 30 15:04:56 (Kotlin doesn't need to allocate anything here, so the performance thing isn't a factor.) May 30 15:12:20 Hello, trying to mess around with systemUI from my htc phone. I pulled systemUI, framework-res, framework-htc-res and com.htc.resources. I'm trying to install com.htc.resources to apktools but it gives me a thread exception in "Main" May 30 15:14:13 pasta http://p.pomf.se/7737 May 30 15:38:23 Anyone here use Nsight Tegra Visual Studio for Android Dev? May 30 15:43:29 Hi : May 30 15:44:49 Can you get the SSID and password from saved wifi networks from an app? May 30 15:54:58 hello May 30 15:56:11 Hi May 30 15:56:11 you guys know of any libs that replaces or abstracts the android providers/receivers model? May 30 15:56:11 Autrilla try SSID Notify. May 30 15:56:54 or FREE WiFi Password Recovery May 30 16:01:18 anyone? May 30 16:06:27 JFlash: Why would you want that? May 30 16:12:06 CedricBeust, reduce boilerplace? simplify life? May 30 16:12:24 boilerplate* code May 30 16:13:13 I come for languages that have a lot less boilerplate code than Java May 30 16:13:45 Libraries are not going to help you with that May 30 16:14:37 so the whole implement/ inner classes, etc thing is definitely something I want to get rid do as much as possible May 30 16:14:59 JFlash: How do you plan to do that? May 30 16:15:43 I also deal with verbose libs in my development in other languages.. and it's not uncommon to me to create helper classes that take care of the boilerplate May 30 16:16:00 I just don't want to reinvent the wheel and if someone has done it May 30 16:16:04 Again, how do you propose to fix perceived language deficiencies with libraries? May 30 16:16:36 can't I set arguments on a fragment as I'm beginningTransaction on it? May 30 16:16:38 it's not a characteristic of the language sorry, but of the framework May 30 16:16:54 even preparing it and setting its arguments and then passing it as an object causes it never to get loaded May 30 16:17:01 seems strange May 30 16:17:10 only when I new it does it get loaded May 30 16:17:11 JFlash: Having to implement inner classes is definitely a characteristic of a language that no libraries will fix (well, there's Retrolambda technically) May 30 16:17:55 why not be able to just do something like NotifyManager.getInstance().registerForEvents(this, 'LETS_ENJOY_LIFE', enjoyLifeHandler); May 30 16:18:11 and just be happy and productive ppl? May 30 16:18:33 and what do you think enjoyLifeHandler will be? May 30 16:19:40 a function May 30 16:19:48 can't do that in Java May 30 16:19:49 a method in my activity class May 30 16:20:07 Java 8 can, Android can't May 30 16:20:24 please educate me on why May 30 16:21:15 Java 8 has method references, Android doesn't support Java 8 May 30 16:21:35 you can't pass a ref to a function? is that it? May 30 16:21:59 You can only pass references to functions, but method references are a Java 8 feature May 30 16:22:23 there's #java May 30 16:22:26 they are really nice people May 30 16:22:33 * CedricBeust confirms May 30 16:22:34 ok so than I could have a default handler, say onNotify() May 30 16:22:44 and just use a switch May 30 16:22:54 yea, and then you go to #java May 30 16:22:58 your program will work May 30 16:23:00 100% May 30 16:23:10 JFlash: I think you need to do some reading on basic Java programming May 30 16:23:36 no what I mean is that my class will implement NotificationReceiver May 30 16:23:57 and and the notification mananager will always call onNotify May 30 16:24:28 I vaguely remember having seen some cool notification libs for Android on github May 30 16:24:39 please look at this, it's really mysterious to, has to do with setting arguments on Fragment before switching it http://pastie.org/10215274 May 30 16:24:41 I just can't remember which they where May 30 16:24:48 in one case it loads, in another it doesn't, same code May 30 16:25:35 nevermind please May 30 16:25:47 where's the delete button May 30 16:26:06 ok, I found this one: May 30 16:26:08 https://github.com/greenrobot/EventBus May 30 16:26:30 wow May 30 16:26:33 is it some kind of replacement for Content Providers and broadcast receivers? May 30 16:26:34 what is that!! May 30 16:26:50 JFlash: No, more for local broadcast receivers May 30 16:27:05 and by local you mean? May 30 16:27:13 dude May 30 16:32:09 do you guys use Guava? May 30 16:32:28 if so, what do you use it for? May 30 16:33:06 Yes, but usually not on Android May 30 16:33:13 lol @ your giddy go-getter curiousity May 30 16:33:20 and want-to-know-everything excitedness May 30 16:33:23 cute! May 30 16:33:46 Odaym: Right, who needs google when you can ask random strangers on irc, right? May 30 16:33:56 is Odaym a bot? May 30 16:34:01 yea here it's more fun, you feel happy about learning May 30 16:34:05 and come out with zero knowledge May 30 16:34:07 lol May 30 16:34:11 just making sure, before I talk to him :) May 30 16:34:15 him/it May 30 16:34:22 her May 30 16:34:44 Odaym, what is the meaning of life? May 30 16:35:01 knowledge May 30 16:35:09 hmm... still not sure May 30 16:35:51 CedricBeust: Did you know about this? fun `this is a valid Kotlin identifier`() = 42 May 30 16:36:06 TacticalJoke: yeah backtick magic May 30 16:36:10 CedricBeust, yeah, I happen to like interacting with users. Turns out I'm hardwared for it in my DNA ;) May 30 16:36:20 Though it doesn't seem to play well with autocomplete. :D May 30 16:36:30 JFlash: We all are, but apparently, we're not all wired to acquire knowledge in optimized ways. May 30 16:36:58 I was just looking in /r/programming. I agree about the final-by-default thing. I don't think it's a great idea. May 30 16:37:10 * CedricBeust highfives TacticalJoke May 30 16:37:14 On classes, I mean. May 30 16:37:18 One of the points where I've always disagreed with Josh May 30 16:37:37 i'm ok with half optimized knowledge acquisition. Despite of what Odaym says, it's not all about the knowledge or the ultimate goal.. but about the journey to get there too May 30 16:37:46 no May 30 16:37:50 it's about how you acquire each one May 30 16:38:06 you either end up with a castle built on sand or you end up very strong in what you know May 30 16:38:15 how you get the information is the issue May 30 16:38:15 Njeh, final by default usually makes sense to people that only write software they themselves use/code May 30 16:38:25 And never had to hack over someone elses broken implementation in a lib :) May 30 16:38:32 Right. May 30 16:40:16 Yeah we're talking about libraries May 30 16:41:02 hi, do I need all the Android SDK built-tools installed? version 19.1, 20, 21.1.1, 21.1.2... or just the lastest one ? May 30 16:41:12 Totally agree with the journey part but I still think you're not going to learn much by asking here and refusing to do some basic reading first May 30 16:41:46 daviorocha the onw you want to work with.. May 30 16:41:52 *one* May 30 16:42:07 Odaym, so the context in which this is taking place is.. I have a job interview next week where I have to prove that I'm a senior level Android dev May 30 16:42:23 daviorocha, just the one that's set in your build.gradle May 30 16:42:24 it's difficult, you're not May 30 16:42:30 trust me May 30 16:42:35 Odaym, so I'd definitely settle for that castle built over sand May 30 16:42:55 gotnut if I am targeting API 20.. then AS will use build-tools 20, is that it ? May 30 16:43:03 No. May 30 16:43:10 Odaym, the castle only has to last untill after I leave the interview and get the job. then I can totally fall apart, for all I care :) May 30 16:43:17 AS will use build tools set in build.gradle May 30 16:43:18 JFlash: Then you are really wasting your time here, go spend a couple of hours read the docs on the Android site, you'll learn tons more this way May 30 16:43:25 haha, you wont get that far, people arent stupid that you can fool them this way May 30 16:43:30 daviorocha yup. May 30 16:43:41 daviorocha, " buildToolsVersion '22.0.1'" May 30 16:43:46 * Mavrik slaps gotnut. May 30 16:43:49 JFlash, if you can build this in ~6 hours, you are good enough http://pastie.org/10215292 May 30 16:43:50 go May 30 16:43:58 ethic is fading, shame on you JFlash May 30 16:43:59 lol May 30 16:44:03 JFlash: Interesting you think you only need the knowledge to pass the interview and you won't need it afterwards. How long do you think you can pretend to be a senior dev when actually asked to do some work? May 30 16:44:08 Mavrik ok May 30 16:44:09 what Mavrik.. is food ready? :( May 30 16:44:14 Odaym, you'd be impressed on how many stupid ppl there are on the world. I'm 38, so I've had my share of stupidity served :) May 30 16:44:50 Why is that debate still running? O.o May 30 16:46:36 Odaym, looks like a fun project. I don't know anything about Arabic thou :) May 30 16:46:45 you dont need to May 30 16:46:54 just that its right to left May 30 16:47:11 feeds are there, everything's there, Im sure if you can do this in 6 hours you are great May 30 16:47:22 its very mild May 30 16:47:40 if oyu do it you will learn a lot for the intervirw May 30 16:47:54 and they are stupid if they let you go without a coding challenge May 30 16:48:32 he already failed, at pretenting being smarter than others and being good at fooling interviews while originally searching for a lib providing more boilerplate May 30 16:48:47 yea, that will be found out later May 30 16:48:53 CedricBeust, yeah I will probably need the knowledge afterwards, but I will have time to acquire properly. Let me just say this so that I don't look as bad to some ppl... I've been a programmer for 10 years and I have never been fired or said that my work did not reach the clients expectations. I just really really the job, that's all :) May 30 16:48:55 but I mean if he wants to redeem himself for himself May 30 16:49:02 the moral of the story is just an hallucination May 30 16:49:10 dude if you are senior android dev you wil be handling 2 apps at once May 30 16:49:11 from day 1 May 30 16:49:34 38 and still dont know that there are no fucking shortcuts in life May 30 16:50:16 wonder how he would deal if he was in need to hire and interview :p May 30 16:50:33 what? May 30 16:50:37 well I just left a job where I was a senior dev and I had pretty much nothing to do all day other than to fix eventual problems , help juniors and take part in boring meetings which solely purpose was to justify some ppls jobs May 30 16:50:52 yea well you're mediocre May 30 16:50:54 lol sorry May 30 16:51:13 no the company I was working for was May 30 16:51:27 your choice of the company :) May 30 16:51:29 it's a whole bubble really May 30 16:51:36 on my first day I strongly suggested they started using version control for all projects May 30 16:51:41 lol! May 30 16:51:51 they responded that pendrives have been working great for then May 30 16:51:54 you go into a company that doesn't have vcs....says a lot about you May 30 16:52:15 Hello, I am trying to figure out how to use a transition animation to hide a fragment that has been removed due to a back button press. So far my google searches have been unhelpful. Could anyone point me in the right direction? May 30 16:52:15 yea he's a troll May 30 16:52:27 needless to say that 6 months laters the only backup HD they had failed and they lost **all their projects** May 30 16:52:36 checkpoint 7:52 PM, I called it first May 30 16:52:44 but hey, it was a good salary :) May 30 16:53:15 we had a lot of multinational clients such as Nestle, Dell, Smirnoff May 30 16:54:07 most clients where internationonal and the pay was quite nice. So that brings me back to my initial point... there are jobs and jobs in this world :) May 30 16:55:43 Odaym, it also a lot about you to make judgements on IRC ppl that you don't personally know :) May 30 16:55:50 also says* May 30 16:56:09 I'll take asshole over mediocre any day brah May 30 17:00:37 repeating question: Hello, trying to mess around with systemUI from my htc phone. I pulled systemUI, framework-res, framework-htc-res and com.htc.resources. I'm trying to install com.htc.resources to apktools but it gives me a thread exception in "Main". pasta http://p.pomf.se/7737 May 30 17:01:04 Wow, they didn't use version control? May 30 17:01:52 not the first time I'e heard of a company not using VCS. Then again, I'm just a college student May 30 17:02:31 its not a software company then May 30 17:02:48 people are battling on StackOverflow Careers to get higher on the Joel Test... May 30 17:03:01 and you're talking about vcs May 30 17:03:19 its not even worth mentioning or being surprised at honestly May 30 17:06:53 I dontunderstand how that commonsware guy just dumps java files into his repo with no res or other needed ...things May 30 17:07:19 oh, nevermind Im stupid May 30 17:21:17 Hahaha this can't be happening Apple says sporadic Apple Watch heart rate readings are a feature, not a bug May 30 17:22:00 just to keep you feeling young May 30 17:22:33 "You're still alive, yo" May 30 17:22:58 Hello all, I developing for Android (using Android-studio), but I have only 4gb ram, i want to buy 4gb to my second slot. Do you recommend me buy 8gb ( totally 12 - I dont like this number :/ ) or buy 4gb and hope that it'll ok. May 30 17:24:13 hhehehe May 30 17:24:27 Apple Watch - You're Still Here...Or Are You? May 30 17:24:30 At least it's not 13. May 30 17:24:47 wirrez, 12 GB May 30 17:24:53 ultra computer May 30 17:25:02 wirrez: Absolutely, 4Gb is going to be painful, 8Gb will make a huge difference, 12 will help more (but less than 4 -> 8) May 30 17:25:51 TIL you can register EventBus Otto inside onCreate and onDestroy of a fragment May 30 17:26:08 I think those methods are referring to the parent activity's onCreate onDestroy, yea? May 30 17:26:13 yea pretty sure May 30 17:26:31 You can register anywhere May 30 17:26:34 Ok i dont have money to buy 16 but ok i will buy 8GB for totally 12 and next time i fill buy maybe another 8gb thank you very much. 4GB is very bad :/ sometimes i want drop the computer :) Thanks you guys May 30 17:26:38 It's not magic May 30 17:26:55 I didnt say it was magic, but no access to "this" meant you cant May 30 17:27:00 getActivity never compiled May 30 17:27:11 what do you mean with no access to this? May 30 17:27:14 wirrez: Also don't forget SSD's, if you don't have one, it should be 2nd priority to 8Gb May 30 17:27:16 asking why I have access to this inside onCreate onDestroy of the fragment May 30 17:27:21 the thing that's called "this" May 30 17:27:21 both Otto and EventBus can register on any object May 30 17:27:34 I replace it with getActivity when working in fragments May 30 17:27:45 hmm, why? May 30 17:27:49 Wut May 30 17:27:52 I dont know May 30 17:28:04 Registering parent activity on events in the fragment seems like a terrible idea :) May 30 17:28:15 but your fragment wont get the news.. May 30 17:28:25 I want the fragment to be notified, the handlebusevents() is in there not in the activity May 30 17:28:28 I suggest you keep register/unregister inside the classes that actually handle the events May 30 17:28:43 can someone help me with lines 25-39 of this: https://bpaste.net/show/97f7d3b6b9df. What is it doing here? May 30 17:28:45 Odaym, so why register on getActivity()? May 30 17:28:54 if you can just give me some keywords to google that would be great May 30 17:28:55 I dont, I do it with this May 30 17:29:09 but before I thought if I couldnt do getActivity in the onCreate of the fragment, I didnt get Otto there May 30 17:29:19 cause I looked and no one mentioned it, because it was too easy to do I guess May 30 17:29:19 doesn't really seem to be a function, just changing what happens with the ImageView when different amounts of arguments are passed in? May 30 17:29:34 yea...moments like these really expose how much you suck May 30 17:29:34 haha May 30 17:29:51 bilb_ono, well, those are different constructors for ImgView (you do know that a constructor is right?) May 30 17:30:32 Mavrik, nope, those sound google-able though May 30 17:30:42 well, yeah, check what a constructor is in java :) May 30 17:30:52 lol May 30 17:30:54 I know that May 30 17:31:00 and all Android views have 3 with different parameters, depending on what constructs them :) May 30 17:31:13 its just HOW THAT FITS into what Im doing that I dont know May 30 17:31:14 haha May 30 17:31:17 the WHOLE PICTURE BRO May 30 17:31:21 man oh man May 30 17:31:33 play the guitar on the MTV May 30 17:35:15 Chicks for free (mostly) May 30 17:36:04 yea developers get laid so much May 30 17:36:19 how could I change the statusbar color? (I think the statusbar is the bar which shows the wifi strength and battery status right?) May 30 17:36:48 CedricBeust dire straits ftw May 30 17:37:04 mark has Tone(tm) May 30 17:37:52 oh, you guys were talking about something else :P May 30 17:43:22 when people make different resolutions for graphics, eg for a game. do they generally just draw the high res one and then scale it down and save. or do they actually tweak or redraw parts? because im finding when i scale my sprites down they just look like ugly blobs.. its quite difficult to make graphics which look good at the wide range of scales.. at least the cartoony type ones im doing May 30 17:43:48 njcomsec well now with AS 1.3 i think you can put svgs in your res/ and it will take care of it May 30 17:44:19 i see.. i havnt messed with vector art yet.. but thats not a bad idea May 30 17:44:36 its a preview though, so ymmv May 30 17:44:59 what versions of android is it compatible with? May 30 17:45:14 Does that mean no more reliance on the Inkscape rasterizer thingy? May 30 17:45:23 from what it sounded, it rasterizes and scales May 30 17:45:39 so it shouldn't depend on any version of android. its still pngs at the end May 30 17:45:40 (Because that was giving me really low quality the last time I tried.) May 30 17:46:02 i used the inkscape rasterizer it was pretty good, but i designed the icons a certain way May 30 17:46:11 oh i see May 30 17:46:19 it doesn't have some features like snap to pixel boundaries but May 30 17:46:27 I tried everything. Not sure why I was getting pixellation. May 30 17:46:32 i guess i should e using inkscape instead of paint.net then May 30 17:46:52 0.91 is very nice May 30 17:47:24 as long as i'm not under pressure schedule wise, its the most fun part of creating the app :D May 30 17:47:51 how could I change the statusbar color? (I think the statusbar is the bar which shows the wifi strength and battery status right?) May 30 17:48:35 ChampS_: Aren't there a few SO questions on that? (I can't remember off-hand and I'm too preoccupied to google.) May 30 17:51:08 i'm trying to set up an onItemClick for a list activity that I have, but most of the examples online deal with writing toast messages May 30 17:51:39 i'm pulling my list items from an API, so first off, i'll need to be able to retrieve the Artist's ID from the list May 30 17:52:10 I have an ArtistModel class. in the onItemClick view, how do i cast this item as an ArtistModel? May 30 17:52:15 dcunit3d: You get `int position`. May 30 17:52:25 Should be able to just look up the item. May 30 17:52:52 and how do i store the store the artist_id in the list item xml? do i use a hidden field or something? May 30 17:53:21 Hey guys, I see okHttp has the option to place a File as the requestBody May 30 17:53:24 Using hidden fields is a terrible hack. May 30 17:53:27 Pointless, too. May 30 17:53:35 If I use the file, and send it to my server, will it be the binary data of the file? May 30 17:53:41 Or the file name? or what? May 30 17:53:42 lol, k May 30 17:53:53 TJ do you know what I mean/ May 30 17:54:00 but the ID of my item doesn't equate to its position in the list May 30 17:56:29 TacticalJoke: I mean coloring the statusbar lower than api21 May 30 17:59:36 passing an entire File object just to get the filename would be horribly inefficient and utterly pointless May 30 18:01:28 TacticalJoke can i insert my artist's ID from the API into the item's list_artist.xml somewhere? May 30 18:05:54 wow, so i hope they did a good job of annotating the runtime with the @Thread stuff May 30 18:05:59 dcunit3d: What are you trying to do? May 30 18:06:06 a lot of time i have no idea because its not documented May 30 18:06:57 TacticalJoke I retrieved the items in my list from an API request and created an Adapter, extending BaseAdapter. May 30 18:07:37 on clicking an artist in the list, i want to navigate to a new activity that will retrive data from the API at /artists/{id} May 30 18:08:51 i have an onItemClick event handler that gives me int position and long id, but i'm unsure of whether those parameters actually correspond to the ID's that my API uses May 30 18:09:22 ah, pretty good summary of the tools changes http://robovm.com/google-io-summary-whats-new-in-android-development-tools/ May 30 18:09:24 and I'm unsure of how to typecast my AdapterView parent or View v in the event handler params to my ArtistModel class May 30 18:10:27 or how to pass in my ArtistListAdapter to the event handler. that class has getItem(int pos) and getItemId(int pos), which would allow me to access those params May 30 18:11:16 thx g00s May 30 18:11:41 ;) May 30 18:13:47 i think i see the answer though - int position corresponds to the position in the list, obviously May 30 18:14:14 Yeah, you just have to access the list. May 30 18:14:15 and long id somehow automatgically finds the id of the Objects in the list May 30 18:14:26 ID is arbitrary. May 30 18:14:31 is it OK to startForeground from onCreate () ? May 30 18:14:38 in Service ... i guess so May 30 18:15:52 is it just me or does Gradle no longer cause AS to trigger a Sync message at the top whenever an edit to build.gradle happens? May 30 18:16:01 that thing was useful.. May 30 18:16:29 Odaym: Really? That's awesome. This thing has always bothered m May 30 18:16:53 I still think AS requires way more manual actions on my part than Eclipse does but at least, that one is gone May 30 18:16:55 now you have to hover top to bring down the toolbar > Build option > Rebuild May 30 18:16:56 that's insane May 30 18:17:03 oh so it's not automatic? May 30 18:17:04 maybe I just dont know the shortcut for rebuild May 30 18:17:07 no May 30 18:17:16 error persist until you rebuild May 30 18:17:19 I know the shortcut to rebuild all too well because I press it 100 times a day May 30 18:17:27 it doesnt mention it next to the option May 30 18:17:29 what is it? May 30 18:17:34 or let me see, meh May 30 18:17:35 I had totally forgotten about this after years of Eclipse May 30 18:18:15 cmd + f9 May 30 18:18:25 and its broken May 30 18:18:27 nice May 30 18:18:30 thanks Obama May 30 18:21:26 also, one more quick question for now (thanks for the help by the way guys) May 30 18:21:40 if i want to render images in my app, do i need to add a library like Picasso? May 30 18:22:22 NEED? no May 30 18:22:28 you SHOULD! May 30 18:22:31 HAHA! May 30 18:22:40 lol May 30 18:22:41 Depends on what you're doing, really. May 30 18:22:47 Maybe you should; maybe you shouldn't. May 30 18:22:57 "Render images" is very vague. May 30 18:22:59 maybe you shan't May 30 18:23:45 just want to display an image associated with an artist in the ArtistDetailActivity, for now. May 30 18:24:02 Where is the image coming from? May 30 18:24:25 eventually s3 or something, but for now it's coming from an angular app hosted on divshot May 30 18:25:09 Picasso tries to load the image again when you regain connectivity, by the way May 30 18:25:18 you just sit there and wait, it reloads automatically May 30 18:25:41 yeh, connectivity is occasionally an issue for me while developing May 30 18:25:56 it takes care of that when its pictures May 30 18:26:13 i definitely don't want the app to fail if i don't have connectivity, simply bc an image couldn't load May 30 18:27:24 what.. May 30 18:28:46 i donno man, the internetz at this coffee shop sucks, sometimes i can barely IRC May 30 18:29:16 interwebz May 30 18:32:28 CedricBeust would be nice if som eof the specialized Subscription classes were documented better May 30 18:32:43 hello May 30 18:32:43 has anyone ever tried freelance websites to revamp your UI? May 30 18:32:52 RefCountSubscription looks nifty, not really sure hot to use it May 30 18:33:08 test May 30 18:33:35 btw, i had 1.6k installs yesterday \o/ May 30 18:33:44 \o/ May 30 18:33:58 so yeah, i thought it would peak at 1k/day, but no. May 30 18:36:07 nice work paulo_ :) May 30 18:36:22 paulo_ what is the engagement rate? May 30 18:36:25 also, fan mail May 30 18:36:28 installs per day is meaningless May 30 18:36:30 nice man May 30 18:36:36 + man May 30 18:36:39 g00s: i have about 55% retention. May 30 18:36:47 after how long ? May 30 18:36:48 wait, lemme recalculate it. May 30 18:36:50 sounds like you need Leeroy May 30 18:37:05 hi there May 30 18:37:15 Im here with some nood question May 30 18:37:32 I want to store the context in a singleton May 30 18:37:41 context object changes ? May 30 18:37:59 whats the best way to do it? May 30 18:38:31 g00s: it's been 17 days. May 30 18:38:51 retention rate always hovered around 50% May 30 18:39:18 do you have any analytics showing where people are droppig off ? May 30 18:39:24 one level too hard ? May 30 18:39:26 etc etc May 30 18:39:36 pycas: It's usually a bad idea since contexts become invalid a lot. Why do you want to do that? May 30 18:39:50 g00s: not really. there isn't much to the game to analyze May 30 18:40:23 so what is the best solution? May 30 18:40:31 pycas: pass the context around May 30 18:40:55 awhen i call the singleton? May 30 18:41:10 Pass it to whoever needs it May 30 18:41:28 ok May 30 18:42:00 so basically you would not send the cntext when you create it the first time May 30 18:42:13 you pass the context to all the methods inside singleton that need it? May 30 18:42:20 correct? May 30 18:42:48 yes May 30 18:44:04 thepoosh ! May 30 18:44:12 hey hey May 30 18:44:19 you are up at strange hour May 30 18:44:51 thepoosh what did your CEO think of I/O ? May 30 18:44:57 it's 21:44 here May 30 18:45:01 so... May 30 18:46:34 CedricBeust, " If your singleton needs a global context (for example to register broadcast receivers), the function to retrieve it can be given a Context which internally uses Context.getApplicationContext() when first constructing the singleton." May 30 18:47:26 pycas all you ever wanted to know about context http://possiblemobile.com/2013/06/context/ May 30 18:48:42 hm Dave Smith's book is 50% off from Apress until 6/3 May 30 18:52:53 g00s: have you read? May 30 18:52:54 http://developer.android.com/preview/api-overview.html May 30 18:54:02 thepoosh quickly glanced over it. i tend to just write my app to the minSdk and use stuff in appcompat May 30 18:54:30 do minSdk=4? May 30 18:54:36 or 8 May 30 18:54:38 now i still have minSdk = 16 May 30 18:54:39 *7 May 30 18:54:44 same here May 30 18:55:01 CedricBeust, thanks May 30 18:55:09 anything below 15 or 16 is asking for pain IMO May 30 18:55:50 since i use rfcomm and BLE, i have minSdk=16 but support extra features for BLE on api 19+ ... i already have a lot of code paths like (is sdk > 19) and its confusing enough already May 30 18:56:44 do oyu guys do input validation as the focus is lost from one edittext to the other? May 30 18:56:46 or on submit? May 30 18:57:23 Odaym, on text change May 30 18:57:28 wow May 30 18:57:30 lol, no May 30 18:57:38 onSubmit in some May 30 18:57:41 yea May 30 18:57:42 it's tedious to do it per edit text, feels like youre filling in trying to satisfy it, better to just do all May 30 18:57:50 cause it feels incessant if per lose focus May 30 18:57:55 just say them all, I'll know May 30 18:58:06 nah, when submitting, i validate all fields and mark the bad ones May 30 18:58:14 yep, same May 30 19:05:01 8000 ad impressions in 12 hours. this is double yesterday's May 30 19:05:42 is a process in the background less likely to be killed if a running foreground service is bound to some activity ? May 30 19:06:18 i'm trying to get rid of all the binding stuff and rely on trim() to know when to free up resources in the service May 30 19:08:41 huh, people seeing Google Photos are reporing their RAW files are being compressed May 30 19:09:51 google photos :( May 30 19:09:53 such pain in my life May 30 19:10:43 this is for the masses. no photographer would use anthing like this to store their photos May 30 19:11:05 no photographer that has a grasp of digital asset management anyhow May 30 19:11:39 the auto backup warning is still on my device, i never accepted May 30 19:11:50 I never never use photos, i take less photos because of it May 30 19:11:54 its a real disease May 30 19:13:53 man they send you a paragraph every time you want to delete a photo telling you that this might have gone from here but it will still be somewhere when you die your children will find it cause we kept it for you May 30 19:13:56 its so shitt May 30 19:15:11 g00s, it's meant for your phone photos May 30 19:15:16 g00s, as long as you get that, it's ok May 30 19:15:38 if you have a DSLR, then you have nothing to do with a service that automatically "awesomes" your pictures anyway :P May 30 19:16:36 hm but still, doesn't the camera2 api let you save raw? if i'm taking pics with raw i want the digital negative to be preserved, even if its just from my phone May 30 19:16:43 I have 5 pictures that I've had from previous devices, I cannot get rid of them May 30 19:16:55 they are on my G+, and on 2 other devices, they are just with me for life May 30 19:17:10 g00s, doesn't really matter May 30 19:17:21 g00s, those pictures could be compressed with JPEG 80 and still look the same :) May 30 19:18:04 Mavrik ... to the untrained eye, but differences will come out in processing when using strong curves for things like contrast May 30 19:18:15 there will be more mosaic effects, etc May 30 19:18:19 It's was partially a joke :) May 30 19:19:00 But I think my point about not using a service which prides itself on auto-awesoming photos for RAW usage stands :) May 30 19:19:20 Do they recompress PNGs? May 30 19:19:23 i'd like to know more, i guess they could be saving as DNG and maybe using some lossless compression May 30 19:24:20 did AS 1.3 get pulled ? http://tools.android.com/download/studio/canary/latest May 30 19:25:43 g00s: I dont think they have updated the site yet May 30 19:25:59 hey Napalm May 30 19:26:13 I'm just installing M Preview on my Nexus 9 May 30 19:26:30 Report if Wifi works :P May 30 19:29:26 Mavrik: WiFi works fine on my 5GHz network.. havent tried 2.4GHz May 30 19:29:41 Mhm, some people reported wifi issues on N5 May 30 19:29:49 which is usually the case with those previews -_- May 30 19:41:38 the play store is finally reflecting 10k downloads. May 30 19:41:55 Mavrik, I still don't understand if constructors are necessary for all custom view implementations or if I can use something like onCreate (which seems to be similar) May 30 19:43:08 What increments does the play store show? 1k, 5k, 10k, what's next? May 30 19:43:35 bilb_ono, the constructors will be called when the views are instantiated from XML May 30 19:43:41 so yes, they are. May 30 19:44:23 weird that this doesn't mention the constructors http://developer.android.com/training/custom-views/create-view.html May 30 19:45:03 bilb_ono lol of course it does May 30 19:45:11 the first 2 examples :| May 30 19:46:17 bilb_ono: the first example does May 30 19:46:18 ah wow I suck, you guys are right May 30 19:46:25 Hi, do you know if i'm using the regular http client, proxy settings are taken into account? May 30 19:46:35 so it only mentions one constructor with context and attrs. is this the only necessary one? May 30 19:46:44 yes, at least that one May 30 19:46:54 the other ones that have the attribute and style are optional May 30 19:48:17 so what usually happens in this chat? May 30 19:48:28 almost always someone gets hurt May 30 19:48:47 lol why May 30 19:48:49 why are they all seperate? Why can't I just use 1 with context, attrs, and style and do everything in that May 30 19:49:04 irc is the wild west May 30 19:49:40 no one? May 30 19:49:58 hmm, well i just started picking up android dev this month, mostly do ios stuff May 30 19:50:58 i do miss storyboards, but material design seems pretty cool and built in dependency management is cool May 30 19:51:10 Hi, I have cloned k-9 mail from github (https://github.com/k9mail/k-9) and I have got a problem. In the received mails ,,... become unreadable, you can see here: https://dl.dropboxusercontent.com/u/4351552/tempFileForShare.jpg . Do I need to set an encoding in Android Studio or how can I solve this problem? May 30 19:51:47 soulisson, I honestly don't remember May 30 19:51:51 soulisson, they should be for Wifi May 30 19:52:21 Mavrik, thanks, that's what i thought May 30 19:52:35 but I do remember overriding that so *shrug* May 30 19:53:19 Mavrik, i think by default it takes into account the proxy settings, i know for wifi it's the case but i don't remember for mobile networks :( May 30 19:56:16 TheReplier Android is the Wild West too May 30 19:58:15 well it seems like the next frontier is their iot platform May 30 19:58:39 i am curious about that, not much info atm May 30 19:58:54 that would be great if it was just android + c++ - java May 30 19:59:00 i feel like I should start learning more about hardware and embedded programming soon May 30 19:59:19 TheReplier, why? May 30 19:59:30 (not that you shouldn't, i lvoe it and work with it) May 30 19:59:40 just wondering what your reason is May 30 19:59:55 you feel it would help you in your android endavours? May 30 20:00:00 Embedded is C world though. May 30 20:00:14 or android + rust would be cool ( - java ) May 30 20:00:42 Anyway, I have scetched up a football (soccer) game in my mind but I would need real soccer player names and teams, I guess you need licenses then? May 30 20:00:45 to make devices that can communicate over the iot platform? like an arduino board taking soil readings to determine when to set sprinklers on and controlled from phone May 30 20:01:09 TheReplier, I see, fun stuff. May 30 20:01:28 anyone knows a good mock up software to android? May 30 20:02:12 sentientnonbeing, if you want real names, of course :) May 30 20:03:31 Mavrik, and same for teams? You can't use a name of a club in a commercial product? May 30 20:03:34 they made android studio c/c++ compatible right? maybe ts for iot May 30 20:03:54 sentientnonbeing, names are generally trademarks and you need permission to use them May 30 20:04:00 Google Play bot will ban you with impunity May 30 20:04:37 yeah that sucks. it just hieghtens the barrier to entry so much. May 30 20:05:05 what kind of moeny are we talking about anyway, anyone have a clue? May 30 20:05:22 like 10 of thousands, hundres of or even more? May 30 20:06:22 that depends on the owner of course May 30 20:06:26 FIFA won't be cheap ;) May 30 20:07:24 so what do ppl do here mostly, solo android work in free-time or work for companies doing android? May 30 20:08:20 TheReplier, I think you have a bit of everyone :) May 30 20:12:16 why is the same code producing this under api22 https://www.imageupload.co.uk/image/ZVqM and this under api below api21 https://www.imageupload.co.uk/image/ZVqQ May 30 20:16:32 not sure i follow this argument but http://www.wired.com/2015/05/google-now-io/ May 30 20:16:41 "Google’s Ingenious Plan to Make Apps Obsolete" May 30 20:17:14 i am convinced Google wants apps to go away though, and everything be on the web May 30 20:17:27 WAP <-- May 30 20:18:20 champ maybe yur missing separators May 30 20:18:40 and why is this working below api21? May 30 20:19:09 ChampS_ the real question is, why are you surprised its not working on the first preview ? May 30 20:19:11 i know that the old design was like the 2nd image, but newer designs dont like spaces May 30 20:19:17 there must be some logic missing May 30 20:20:08 g00s i dont know what you mean, Android 5.1.1 is api22 too May 30 20:20:31 oh sorry, thought you were using mnc May 30 20:20:42 so I try to run this on android 4.0.3 (this is working) and android 5.1.1 (this is not working) May 30 20:20:57 wow May 30 20:21:02 there's Facebook May 30 20:21:08 totally forgot May 30 20:21:14 what a dump May 30 20:22:31 ChampS_, you need to set elevation May 30 20:22:34 TheReplier: I'm using the Appcompat cardview so this spaces are desired May 30 20:26:52 Can anyone tell me if I can use Picasso .into a custom view? all of the examples I see on the internet use ImageViews May 30 20:27:28 bilb_ono: yes you can May 30 20:28:19 so Picasso.with(context).load(url).into(com.mypackage.me.viewGroup) for example? May 30 20:28:32 bilb_ono: http://square.github.io/picasso/javadoc/com/squareup/picasso/RequestCreator.html#into-com.squareup.picasso.Target- May 30 20:28:53 http://square.github.io/picasso/javadoc/com/squareup/picasso/Target.html May 30 20:30:49 g00s: "Google Now on Tap doesn't just provide answers from Google; installed apps can be data providers, too." May 30 20:31:17 Napalm, thanks May 30 20:31:18 see this guys, Im really proud of it May 30 20:31:18 http://pastie.org/10215530 May 30 20:31:19 see it because Im proud of it, yea makes sense May 30 20:31:27 g00s: they just want users search more so they could get more data and display more search ads May 30 20:36:37 when using fragments how do you know which size and configuration is possible? May 30 20:37:17 looking at this: https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Target.java wouldn't it be import com.squareup.picasso.Target ? May 30 20:37:32 pycas: you mean if you have to switch between phone and tablet May 30 20:37:33 ? May 30 20:37:44 Napalm, yes for example May 30 20:37:55 pycas: best way is to use a boolean resource May 30 20:38:27 Napalm, boolean resource? May 30 20:39:15 nothing? :( May 30 20:39:23 pycas: create a res/values-sw600dp directory and place in it a new values xml file. add true May 30 20:39:25 well, Im still gonna be awesome!! May 30 20:39:27 hohoho May 30 20:39:46 pycas: then in your normal res/values/whatever.xml put false May 30 20:40:26 ChampS_, you need to set elevation <<< this changes nothing :( May 30 20:40:29 pycas: now when your app is running you can do if(getResources().getBoolean(R.bool.is_tablet)){ May 30 20:40:36 Napalm, ok May 30 20:40:56 ChampS_: got problems with FAV? May 30 20:40:59 ChampS_: got problems with FAB? May 30 20:40:59 Napalm, thanks May 30 20:45:06 ChampS_: ? May 30 20:45:52 got problems with FAP.. May 30 20:45:55 lel May 30 20:48:47 Hello. I am planning on developing an app that will be a chat client for a website similar to omegle.com. Basically there will be a login page, then a settings page (for inputting interests and such), then a chat page. The chat page will update the UI every time a message is received, and also download and display pictures from the internet. My question is: how low can I get on the targeted... May 30 20:48:48 ...Android version, and how low should I get? May 30 20:49:44 No reason you cant target as low as APIv7 May 30 20:49:56 but I would suggest you stick with APIv10+ May 30 20:50:11 most people write new apps for APIv15+ May 30 20:50:28 supporting gingerbread and honeycomb can be a pain in the ass May 30 20:50:48 nothing uses honeycomb May 30 20:50:49 Rashad: thats all for you ^ May 30 20:51:10 zinx: not anymore.. I remember supporting it though.. and it was a pain May 30 20:51:14 Will the code change if I use 10 instead of 15? I don't want to rewrite much code or redefine layouts if in the future new features are to be added which require a higher API. May 30 20:51:32 lol May 30 20:51:43 don't use 10 May 30 20:51:50 15+ May 30 20:51:54 forget the rest then May 30 20:52:03 16+ May 30 20:52:05 unless your target demographic is 3rd world countries May 30 20:52:23 pfn: they all get Android One now ;) May 30 20:52:36 Napalm: very little used honeycomb even then May 30 20:52:57 zinx: yup.. but it was popular for the smallest amount of time May 30 20:53:02 all those Samsung Tabs May 30 20:53:10 * Napalm still has nightmares May 30 20:54:18 somehow i'm betting that was Samsung's fault :P May 30 20:54:49 OK if I use 16, would the code need to change if later on I convert to a higher API? May 30 20:55:06 Rashad: that all depends on what you implement May 30 20:55:14 you wont know until you do it May 30 20:55:23 Would the layout files change? May 30 20:55:36 because the platform changes May 30 20:56:29 the API level is just a number that tells the compiler to not allow anything higher May 30 20:56:53 erm, what? May 30 20:56:55 if you raise it, you may get warnings about deprecated APIs but nothing more May 30 20:57:26 zinx: until they remove the APIs May 30 20:57:26 lol May 30 20:58:00 well, sure :P May 30 20:58:06 Remove APIs? May 30 20:58:18 but it's unlikely your program will run on devices with the API removed anyway :P May 30 20:58:31 no matter what you have 'api level' set to in the compiler :/ May 30 20:58:35 actually May 30 20:58:53 they do remove the API.. kinda May 30 20:59:13 they keep the method with @deprecated and make it return a default value May 30 20:59:21 which might break your appp May 30 21:01:45 Rashad: basically the target minimum/maximum API level are there to help you only use things from those API levels - if you use things that aren't supported within them, they complain, but otherwise changing it has no effect on your code May 30 21:01:56 nice article https://lkml.org/lkml/2012/7/11/103 Linus about sizeof() May 30 21:02:05 Commonsware writes return(value) in all his code :P May 30 21:02:07 nooob May 30 21:02:51 zinx: OK. May 30 21:02:58 anyone knows any mockup software to android? May 30 21:03:09 like people who leave out the space after if / for / switch / etc.. crazies, all of 'em May 30 21:03:15 :P May 30 21:03:25 for( ? May 30 21:03:29 i've seen it May 30 21:03:46 I hit reformat quite often, I never purposely indented anything May 30 21:03:53 but I set my rules when I start with the IDE May 30 21:03:59 end-of-line bracket kind of person May 30 21:04:51 pycas: you mean like proto.io? May 30 21:05:41 Napalm, i wanted some free software May 30 21:05:52 Napalm, not a web oriented May 30 21:05:58 pycas: good luck May 30 21:06:02 Napalm, do you know any? May 30 21:06:07 no May 30 21:06:08 pycas: I've heard http://ninjamock.com/ is good. I use paper and pencil. haha May 30 21:06:22 thanks May 30 21:06:24 can't you just make the layouts in the layout editor? May 30 21:06:33 pycas: http://www.reddit.com/r/androiddev/comments/2n9pu4/can_you_guys_suggest_a_good_tool_for_creating/ May 30 21:07:03 in a layout such as this: https://bpaste.net/show/43515177ee54 is it possible to have the custom view show up above the fragment that fills the frame layout which contains both? Is there a property I can call like z-order? May 30 21:07:41 yes May 30 21:07:43 from what I read online the order is usually determined by which comes first in the xml but in this case the custom view is inside of the frame layout May 30 21:08:03 after you add do stickerView.bringToTop(); May 30 21:08:28 ugh, i mean bringToFront(); May 30 21:11:35 Napalm, thanks that works. I put it at this.bringToFront() in the onDraw method of my custom view May 30 21:11:46 bilb_ono: no May 30 21:11:47 no May 30 21:11:48 no May 30 21:11:50 noo May 30 21:11:50 no May 30 21:11:51 no May 30 21:11:53 :| May 30 21:12:21 lol well Im glad I told you at least May 30 21:12:24 whats wrong with that? May 30 21:12:31 everything May 30 21:13:18 i dont even know where to begin May 30 21:13:55 ok well should it go in my activity somewhere instead? May 30 21:14:12 bilb_ono: bringToFront changes the layout.. and requests a layout and invalidates May 30 21:14:26 bilb_ono: which mean you just killed your app in an infinite loop May 30 21:14:40 it will function like a dog whilst that view is attached to the window May 30 21:15:19 ok ok I took it out May 30 21:16:12 so it has a layout, then when its drawn, it requests that the layout be re-rendered? May 30 21:16:20 yes May 30 21:16:24 which re-calls onDraw, which rerenders.....etc May 30 21:16:47 new versions of the platform I believe catch this.. but old ones.. oh no.. they dont! May 30 21:17:07 i think it was Lollipop or Jellybean that brought it in May 30 21:17:09 either way.. its bad May 30 21:17:13 Napalm can you think of a way to get this value on-demand ? http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN May 30 21:17:14 ok so it has to be called.... before the layout gets rendered...? May 30 21:17:45 Napalm i'm receiving an event, but sometimes something else happens which needs to know 'is the ui hidden? then quit' May 30 21:17:48 as long as its called once during logic it doesnt matter May 30 21:17:53 hey g00s May 30 21:18:07 and yo yo May 30 21:18:11 lol oops May 30 21:18:27 g00s: hang on.. so you really just want to know if your UI is visible? May 30 21:19:06 Napalm as long as there is some sane api call May 30 21:19:09 g00s: create a BaseActivity and update a boolean in your application context during onStart and onStop? May 30 21:19:16 gah May 30 21:19:17 then you can check that boolean at any point May 30 21:19:32 thats not sane :D May 30 21:19:46 srsly? May 30 21:20:18 the platform knows the state May 30 21:20:28 i want to query the platform, not maintain it myself May 30 21:20:34 well not exactly May 30 21:20:54 sure, it knows because it sends TRIM_MEMORY_UI_HIDDEN May 30 21:21:13 I am showing thumbnails of images present on device in gridview according to this-http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html#getThumbnail%28android.content.ContentResolver,%20long,%20int,%20android.graphics.BitmapFactory.Options%29. But the returned thumbnail is blurry as in when I set this thumbnail to my imageview it is not clear probably... May 30 21:21:15 ...because imageview size is larger than thumbnail size. I want to do something like in android native gallery application. Any ideas? May 30 21:23:35 g00s: http://stackoverflow.com/questions/19398827/understading-ontrimmemory-int-level May 30 21:23:50 surf2b1 yes, thanks. saw that already. i understand it ... May 30 21:24:04 g00s: only way i can think is to do http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks(int) and look at http://developer.android.com/reference/android/app/ActivityManager.RunningTaskInfo.html#numRunning May 30 21:24:54 obviously filtered to your components May 30 21:24:57 but its dodgy May 30 21:25:02 g00s: so override onTrimMemory and save the value in a static int? May 30 21:25:25 surf2b1 no, because your UI can come back and the value will be stale May 30 21:25:59 go with Napalm's suggestions then :P May 30 21:26:08 g00s: you could always do http://developer.android.com/reference/android/app/Application.html#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks) May 30 21:26:25 onActivityStarted / onActivityStopped update a atomicinteger May 30 21:26:30 if zero.. no ui May 30 21:27:04 or just override the onActivityStarted/Stopped in the Application context May 30 21:27:36 g00s: ? May 30 21:27:51 Napalm yeah ... why is android so obtuse May 30 21:28:09 g00s: because it hates you May 30 21:28:26 i blame all this bullshit on having no virtual memory like iOS, and resulting in all these dumbass component lifecycles May 30 21:29:37 its like, getting java to work on 2005 level HW required so many sacrifices ... we still need to live with them today even though IMHO they don't make sense any more May 30 21:30:50 is there a way to use the appcompat progressbar below api21? I cant find a way to do that May 30 21:31:12 What AppCompat ProgressBar? May 30 21:31:21 I guess you mean the Lollipop ProgressBars. May 30 21:31:23 uh .. i think you just inflate it, and layoutinflater factory does a switcheroo May 30 21:33:02 g00s: nope.. appcompat does not contain the lollipop progress bars May 30 21:33:03 :( May 30 21:34:14 Napalm, so I should call bringToFront somehow in the onCreate of my mainActivity, then? Im trying to think of where else it could possibly be called. May 30 21:34:23 perhaps in the constructors for the view custom class? May 30 21:34:30 Yeah, I hope they add ProgressBars. May 30 21:34:42 or in the xml itself, but im not sure if bringToFront() can be called in xml May 30 21:34:44 bilb_ono: i said.. after your fragment view gets added May 30 21:35:15 right in the main activity May 30 21:35:26 have your fragment tell the main activity then that its been added May 30 21:35:42 in that method in the MainActivity bring the other child to the top May 30 21:40:48 fear not May 30 21:40:50 I'm back May 30 21:41:07 nice 10 hour sprint today huh? May 30 21:41:09 fucking nerds May 30 21:41:13 jk ilu! May 30 21:54:46 I'd say someone is high, but this is actually normal for Odaym :p May 30 21:55:26 nah, when you say it it's right May 30 21:55:29 2nd time you hit it May 30 22:01:30 i need a Location to unit test serializing/deserializing it May 30 22:01:46 is it possible to get one without pulling in all of the AndroidTestCase stuff? May 30 22:12:43 comprehension: just do a normal TestCase May 30 22:13:32 comprehension: http://developer.android.com/tools/testing/testing_android.html#JUnit May 30 22:17:10 Napalm: trying to call setLocation (or any other method) on a Location throws an error with "method setLocation not mocked" May 30 22:17:40 comprehension: setLocation on what? May 30 22:29:56 Napalm: the Location object that i'm trying to instantiate May 30 22:30:19 omh May 30 22:30:21 omg May 30 22:30:43 comprehension: http://developer.android.com/reference/android/location/Location.html May 30 22:30:45 you mean that? May 30 22:34:52 Napalm: yes May 30 22:35:17 i have something like "Location loc = new Location("fake provider");" May 30 22:35:27 then any call to a method of loc makes my test crash May 30 22:35:27 and it fails on that line? May 30 22:35:33 the next line May 30 22:35:44 ok May 30 22:35:45 Napalm you use OKhttp? May 30 22:35:48 i understand that i could mock the whole android runtime system to make that go away May 30 22:35:53 sounds about right May 30 22:35:54 but i'd much rather not May 30 22:36:07 if its not a AndroidTestCase then your not running with the android os May 30 22:36:10 it seems like Location is tightly coupled to the rest of the android runtime May 30 22:36:12 so no classes May 30 22:36:19 ugh May 30 22:36:20 comprehension: The problem is that you're using JVM tests when you should be using instrumentation tests. May 30 22:36:32 comprehension: you dont mock the whole android system May 30 22:36:40 you just mock what your tests need May 30 22:36:42 thats the point May 30 22:36:48 drose379: yes May 30 22:37:03 You ever sent a multipart-form data POST request Napalm? May 30 22:37:39 drose379: yes with retrofit May 30 22:37:46 not directly with okhttp May 30 22:37:52 but i cant believe its that different May 30 22:37:54 Ok, to send a file? May 30 22:38:56 drose379: what? May 30 22:39:06 Did you use it to send a file? May 30 22:39:45 drose379 is doing a survey. :D May 30 22:39:52 Lol yeah May 30 22:40:13 drose379: yes May 30 22:40:13 so the picasso lib is only for pulling photos, not for uploading them? May 30 22:40:17 "Excuse me, sir. Mind if I ask you a few questions about OkHttp?" "Ugh, I'm kinda busy." "It'll only take a moment!" May 30 22:40:24 lol May 30 22:40:30 lol May 30 22:40:46 drose379: you just need to ask your damn question May 30 22:41:05 I'm looking at the Okhttp recepies (Examples) page May 30 22:41:26 And I see under "Posting a file" theyre using the MediaType "text/x-markdown" May 30 22:41:28 to send a file May 30 22:41:39 But ive been told to use Multipart form data to send files over post May 30 22:42:01 so? May 30 22:42:18 Whats the right way? May 30 22:42:46 omg May 30 22:42:49 they told you what May 30 22:43:00 ? May 30 22:43:12 multipart/form-data May 30 22:43:16 whats the prob? May 30 22:43:26 Idk, I saw another way with text/x-markdown May 30 22:43:34 wondering if that also worked May 30 22:43:54 thats a different mime-type May 30 22:44:06 that also sends files? May 30 22:44:06 mime-types describe the content May 30 22:44:13 nothing sends the content May 30 22:44:19 these do nothing May 30 22:44:22 they are metadata May 30 22:44:32 so the server knows what you are sending and can understand how to read it May 30 22:44:35 http://stackoverflow.com/questions/24279563/uploading-a-large-file-in-multipart-using-okhttp May 30 22:44:36 see May 30 22:44:38 simple May 30 22:45:03 Got it May 30 22:46:54 thanks for taking my survey Napalm May 30 22:46:55 :P May 30 22:47:47 drose379: do I win a prize? May 30 22:47:48 :P May 30 22:47:51 I want to create color themes for my app and let users rotate through them. Is there a method for doing this? May 30 22:48:05 currently I have the colors stored in colors.xml file May 30 22:48:32 Meowser: explain? May 30 22:48:38 rotate through them? May 30 22:48:54 Napalm maybe.. I have a pair of brand new sunglasses on ebay for a really low price May 30 22:48:55 users would select the theme they want in the options May 30 22:49:11 then it would stay that color theme until they pick another May 30 22:49:39 Meowser: whats yourt minSdk and targetSdk? May 30 22:50:32 15 21 May 30 22:51:16 good May 30 22:52:10 Meowser: so just call setTheme during onCreate on your Activity May 30 22:52:19 before you do anything May 30 22:52:26 before any views are created May 30 22:53:30 ok May 30 22:53:37 let me maker sure this will work May 30 22:53:56 in my colors.xml I have colors set for "back_button" "share_button" etc May 30 22:54:06 like 30-40 different settings May 30 22:54:19 setTheme will let me switch through them? May 30 22:54:39 Meowser: define your own attributes May 30 22:55:22 http://mrbool.com/how-to-change-the-layout-theme-of-an-android-application/25837 May 30 22:55:24 like that? May 30 22:55:30 that looks like what i need May 30 22:56:09 yes May 30 22:56:13 i was about to explain that May 30 22:56:15 but it uses item name... i guess ill have to change to that May 30 22:56:18 but you have an article on it.. even better May 30 22:56:26 item name? May 30 22:56:26 what? May 30 22:56:34 #FF0000 May 30 22:57:00 Meowser: i said.. define your own attributes May 30 22:57:08 May 30 22:57:13 ah May 30 22:57:17 May 30 22:57:17 ok ill read through it May 30 22:57:30 thanks for your help May 30 22:58:15 Meowser: then you use android:background="?attr/shareButtonColor" in your layouts May 30 22:58:19 or something similar May 30 22:58:22 np May 30 23:03:17 can someone point me in the direction of documentation of that invalidate command on line 40: https://bpaste.net/show/7c7780eb764d I feel like its doing something important but I can't find anything about it May 30 23:03:41 is that what actually moves the bitmap itself? or is that something in onDraw that isn't shown in this function May 30 23:04:30 bilb_ono: http://developer.android.com/reference/android/view/View.html#invalidate() May 30 23:05:05 android is funny! May 30 23:05:18 java ppl like to write a lot of code :) May 30 23:05:46 Napalm, ah thanks. not as tricky as I thought. they must be actually moving the bitmap somehow later in onDraw May 30 23:05:56 guys , what is a lib that simplifies working with sqlite on Android? May 30 23:06:28 you know, it could be kind of ORM layer on top of it , or something May 30 23:06:34 bilb_ono: moving a bitmap? May 30 23:07:03 * darkchaoz doesnt know java or android May 30 23:07:56 JFlash try ormlite.. ormlite.com May 30 23:08:24 gotnut, thank you May 30 23:08:35 Napalm, im trying to move a custom view that contains a bitmap. it seems that a lot of examples use the canvas element and canvas.translate(x,y) inside of onDraw. But all i want to move is the custom view. May 30 23:08:44 or i guess the entire custom view May 30 23:09:11 bilb_ono: erm? what.. lol May 30 23:09:30 bilb_ono: just call customView.setTranslationX() and customView.setTranslationY() May 30 23:09:41 or ViewCompat May 30 23:09:54 or ViewCompat.setTranslationX(customView, x); May 30 23:10:38 if you want pre-APIv11 support May 30 23:19:18 Napalm, like this? https://bpaste.net/show/046c52ae9a4f May 30 23:19:50 so invalidate recalls onDraw which re-draws them with the new x and y? May 30 23:19:57 yes May 30 23:20:09 but you said this is not what you were doing May 30 23:20:45 I have a frame layout which contains a custom view. I am hoping to be able to touch and drag this custom view inside of the frame layout May 30 23:20:59 right May 30 23:21:03 so do just that May 30 23:24:02 thats the goal. Right now when I touch the screen anywhere, it logs the message I put inside of onTouchEvent. As thought the custom view is the size of the entire screen. even though I used android:layout_width="wrap_content" May 30 23:24:16 android:layout_height="wrap_content" May 30 23:24:32 Hi. What tool should I use if I want to see any errors/prints of a apk May 30 23:26:51 panda81, logcat? May 30 23:28:32 barbs:is that part of Android studio? I already have an apk. How do I get logcat to show me any messages that apk may output May 30 23:28:39 Napalm do you ever split your services into another process to conserve memory in background ? May 30 23:29:40 panda81, It's part of the tools you get when you install the Android SDK. there's a panel in Android Studio that shows logcat, though by default it'll only show logs from the app you're building May 30 23:29:52 i suggest just running it via command line i.e. "adb logcat" May 30 23:31:40 hahah no way, it works! it looks hilariously awful but it does work May 30 23:32:06 barbs:I see. Can the output be stored to disk. There is too much May 30 23:32:27 Napalm, are you sure setTranslationX, Y are meant for this kind of dragging action? it looks really choppy, and there is a weird shadow behind it May 30 23:32:52 g00s: yes, but I don't recommend it May 30 23:33:10 panda81, "adb logcat -d > log.txt" :) May 30 23:33:10 lots of extra wok May 30 23:33:12 bilb_ono: pastebin your code May 30 23:33:52 g00s: perhaps, but static no longer is static and neither are singletons May 30 23:33:58 g00s: so things break May 30 23:34:16 because static and singleton are per-process May 30 23:34:58 Napalm, https://bpaste.net/show/29a34d9d3c9a May 30 23:35:00 g00s: so now you have to deal with IPC and binders and parcelables or some other shared memory stuff May 30 23:35:15 yeah super hassle May 30 23:35:22 bilb_ono: oh.. thats your view? I thought that was just an example May 30 23:35:41 its an example on the developer website that Im trying to use in my view May 30 23:36:45 barbs:am I correct that it seems to be a log of all previously ran apps? May 30 23:37:38 panda81, it's a log of what's happening on the phone, basically May 30 23:37:56 Does someone know a good way of selecting a time (hour and minute) from a range of opening hours of a store for example? Something as convenient as this, but better for not a whole lot of hours: http://i.imgur.com/1gsGUfc.png Should I just use the scrolling thingy and adjust it? May 30 23:37:58 bilb_ono: explain why you want to do this.. what is the end result of moving this view about? May 30 23:39:50 Napalm, its a watermark that gets placed onto a photo. then you can move it around onto wherever you want on the captured image May 30 23:40:16 then im gonna measure where it is and add it to the photo bitmap when the user clicks save May 30 23:40:35 the photo/camera part is going on simultaneously in another fragment May 30 23:43:18 bilb_ono: https://gist.github.com/slightfoot/a7de4ecdc6cf06c68640 May 30 23:43:24 works fine for me May 30 23:47:52 bilb_ono: well? May 30 23:48:49 Napalm, trying it. What would test_item in the layout be. Is that just an imageView? May 30 23:49:00 its whatever you want to move around May 30 23:49:05 obviously May 30 23:49:22 Can someone help me please? May 30 23:49:33 Do you have to hide a body? May 30 23:49:39 i'd like to start an activity with extras in the intent, i'm using the following command am start package/.MainActivity -e string1 mystring but it doesn't work May 30 23:49:40 look at the example... it cant get much more simple May 30 23:49:47 bilb_ono: ^ May 30 23:50:10 the getIntent().getExtras() returns null May 30 23:50:28 canvs2321-: There's an app for that. May 30 23:50:45 :) May 30 23:52:27 Napalm, ah it works awesome! I didn't realize it didn't need a custom view to work May 30 23:52:31 thank you May 30 23:52:51 bilb_ono: nice and smooth, yea? May 30 23:53:00 yep it is May 30 23:53:08 ;) May 30 23:54:00 soulisson: try: am start -n package/.MainActivity -e string1 mystring May 30 23:54:14 Napalm, ok, i'll try May 30 23:54:51 can you explain why all of the examples here: https://developer.android.com/training/gestures/scale.html are different? you seem to use gesture detector instead of all of the ACTION_MOVE, etc that is used in their docs May 30 23:55:05 why did you use that instead? May 30 23:56:01 soulisson: tested and -n works for me May 30 23:56:17 Napalm, seems to work, thanks May 30 23:56:29 That guy on /r/androiddev: "13 Years of using an IDE is not easy to break." May 30 23:56:37 Why would someone stick to an IDE for 13 years? Craziness. May 30 23:56:47 And that's a perfect argument for getting away from it. May 30 23:57:02 (He doesn't want to move from Eclipse to AS.) May 30 23:58:02 bilb_ono: the docs are showing you how the GestureDetector does it "under the hood" May 30 23:58:32 bilb_ono: it even says further down "The snippet in this section takes advantage of the platform's built-in support for common gestures. It overrides onScroll() in GestureDetector.SimpleOnGestureListener." May 30 23:59:54 i keep having rendering problems of d.android.com in chrome May 31 00:00:11 what happens often is the left side class browser overlaps the right side content May 31 00:00:21 not sure if its a chrome bug or what May 31 00:00:35 g00s: ever used the built in drag/drop api? May 31 00:00:44 Napalm no :( May 31 00:00:49 g00s: Ctrl+F5 FTW May 31 00:01:02 Napalm in chrome ? May 31 00:01:05 yus May 31 00:01:47 hm, on mac ... doesn't do anything May 31 00:01:57 does the command have a name ? May 31 00:02:31 oh cache refresh ... May 31 00:02:36 It's "force refresh". May 31 00:02:37 Yeah. May 31 00:02:39 refresh but with ctrl I guess cmd or alt on mac refreshing without cache May 31 00:02:45 I use Ctrl+Shift+R. May 31 00:04:40 ah I see. May 31 00:05:21 g00s: I though it was firefox :D May 31 00:10:44 why the task that I use on a JobService needs to be a static class? May 31 00:14:21 JFlash: huh? you mean your extend JobService? May 31 00:15:05 no the task that you create as an inner class and call inside onStartJob May 31 00:15:59 JFlash: im sorry, I dont follow.. pastebin your code or something May 31 00:16:08 anyone use the new support lib snacks yet ? if you fire several right away, are they queued ? May 31 00:16:24 new JobTask(this).execute(foo) May 31 00:16:39 but JobTask is always created as a static class. why? May 31 00:16:55 erm.. because you defined it as such? May 31 00:17:33 in the tutorial I'm following the tell me to implement this class as static but they dont tell me why May 31 00:17:38 this is the question May 31 00:18:10 that's the second tutorial that tell me to implement it specifically as a static class May 31 00:19:20 JFlash: probably because they are executed on a different thread? but its not a requirement May 31 00:20:23 Hey guys, I had some code pasted in TextEdit in OS X. I had saved the file last night and just now copied it into Android Studio. I think doing so inserted some encoding characters, because Android Studio keeps complaining about "illegal character: "\u2028", yet that character doesn't exist. Any ideas on how to clear that out? May 31 00:20:27 g00s: no it doesnt queue them May 31 00:20:31 It's best to prefer static nested classes (which are like top-level classes) to non-static nested classes (which are tied to an instance of the enclosing class). May 31 00:20:36 Napalm, and why is it a requirement for it to be static if it runs on separate thread? May 31 00:20:41 Because static ones are simpler. May 31 00:20:46 Napalm, can you educate me? May 31 00:20:50 Napalm do they clobber each other ? May 31 00:20:54 stack ? May 31 00:21:18 t0astt: use sublime text instead of textedit May 31 00:21:19 lol May 31 00:21:48 Yeah I'm new to OS X so I'm still figuring out best programs for certain scenarios :P May 31 00:21:59 JFlash: The question is "Why would I use a non-static nested class?". May 31 00:22:03 t0astt emacs, vim, ST work well on mac May 31 00:22:04 You need a good reason to do so. May 31 00:22:17 g00s: it dismisses the previous one and displays the new one May 31 00:22:26 Napalm hm, ok May 31 00:22:41 TacticalJoke, and the answer to the corrected question is...? May 31 00:23:06 It's "Don't be silly. Of course you don't want a non-static nested class for this kinda thing!". :D May 31 00:23:10 Probably (I'm just guessing). May 31 00:23:44 JFlash: its just to simplify the code and to avoid problems May 31 00:23:53 TacticalJoke, it's not obvious to me as it is to you because I'm not proficcient in java May 31 00:24:02 TacticalJoke, please educate me May 31 00:24:05 JFlash: if a inner-class is non-static it has a implict reference to the outer-class May 31 00:24:14 JFlash: The question if your you. Why would you even consider a non-static nested class here? May 31 00:24:18 s/your/for/ May 31 00:24:33 ok, thanks guys May 31 00:24:34 JFlash: for example if you did that with a thread or runnable in an Activity now those tasks that are long running hold a reference to the Activity and "leak it" May 31 00:24:43 Ehhh, not too big on vim g00s. May 31 00:25:04 <3 vim May 31 00:25:18 dont use it for Android though May 31 00:25:21 JFlash: Non-static nested classes have their uses, but I avoid them as much as possible because they're less simple. May 31 00:26:08 Well, as much as is sensible (there are cases where it'd be possible but less nice to avoid them). May 31 00:27:24 JFlash: its normally better to declare your inner classes as static and provide whatever it needs to its constructor.. now you have a explict reference to the outer class May 31 00:27:43 you can track it.. refer to it.. find usages for it.. so on May 31 00:27:59 implict is "invisible" and causes more problems than it sovles May 31 00:28:01 solves May 31 00:28:13 same goes for anonymous classes May 31 00:28:45 view.setOnClickListener(new View.OnClickListener(){ public void onClick(View v){ /*...*/ } }); May 31 00:28:48 for instance May 31 00:29:13 the View.OnClickListener we construct here has an implict reference to the outer class that executed the line May 31 00:29:23 this is ok for an Activity as the View is owned by that Activity May 31 00:29:31 but as you can tell this can also cause problems May 31 00:29:55 thats why you'll see private View.OnClickListener mSomething = new View.OnClickListener(){ public void onClick(View v){ /*...*/ } }); May 31 00:30:08 now this mSomething private variable is explictly owned by the outer class May 31 00:30:18 and can be directly referred to May 31 00:30:29 TacticalJoke JFlash: got me? May 31 00:31:18 Napalm, thank you. that's very useful to me May 31 00:31:24 Hi -- I'm trying to check the network connection with connectivityManager.getActiveNetworkInfo(); before I try a network operation May 31 00:31:46 and it's crashing and I'm not clear why -- adb is telling me http://pastebin.com/uAZuNR8g May 31 00:32:48 akk: http://developer.android.com/training/basics/network-ops/connecting.html#connection May 31 00:33:23 right im off May 31 00:33:26 night g00ey May 31 00:33:26 is the service called by the system on a jobschedule always the same service instance May 31 00:33:27 g00s May 31 00:33:37 Napalm: That's the page I was trying to follow. Am I missing something there that says it crashes in certain circumstances? May 31 00:33:47 or is it a new instance of my JobService class, each time the sysstem calls it? May 31 00:34:11 akk: do you have the permission? May 31 00:34:30 akk: May 31 00:34:51 akk: in your manifest May 31 00:35:05 JFlash: same instance if its already running May 31 00:35:29 JFlash: but rememeber your task might last longer than the service is alive May 31 00:35:46 in which case...? May 31 00:35:57 JFlash: thats why they have onStopJob May 31 00:36:07 Napalm: I thought so ... it can do other network operations through WebView. But I'm not seeing it in the manifest file, hmm. May 31 00:36:22 the JobScheduler or Android itself shuts down the service.. and your Thread is still going May 31 00:36:32 then another job starts and it creates a new Service instance May 31 00:36:41 Shouldn't it give an error message saying so if it's a permissions problem? May 31 00:36:49 now your old Thread is refererring to an old Service object that has been Destoryed May 31 00:36:57 destroyed May 31 00:37:23 akk: probably.. but you didnt post your full stack trace.. you posted a filtered log or something May 31 00:37:36 Napalm, on the tutorial I saw they where keeping a reference to the Service inside the task and using it to call myServiceRef.jobFinished() May 31 00:37:46 Yes, it is filtered. So maybe the error message didn't mention the app name that needed permissions? May 31 00:37:48 Napalm, is that bad? May 31 00:38:12 Thanks, Napalm, I'll look into why my permissions seem to have disappeared. (I migrated this project from eclipse to ant and might have lost that in the process.) May 31 00:38:17 JFlash: no, thats correct.. but if you get a onStopJob .. you should end that job's thread May 31 00:38:27 night Napalm May 31 00:38:34 I suggest you have a HashMap of JobParameter -> Thread May 31 00:38:36 lol g00ey is an imposter May 31 00:38:40 so you can look it up and fix May 31 00:38:52 bai g00sey May 31 00:38:54 :D May 31 00:38:57 :D May 31 00:39:24 night May 31 00:39:27 i really gtg May 31 00:39:48 cya JFlash.. i vote g00s to help you from now on.. lol :D May 31 00:40:04 oh christ May 31 00:40:04 thanks May 31 00:40:08 see ya May 31 00:40:19 * g00s stuffs JFlash into a ThreadLocal May 31 00:40:30 g00s will help me now? damn! May 31 00:40:49 g00s, , just kidding :) May 31 00:43:38 Adding didn't help, it still crashes. May 31 00:44:56 (Ah, because it needs ACCESS_NETWORK_STATE like Napalm just told me, oops) May 31 00:56:41 Hey Napalafk: I tried out your code you gave me last night and it works perfect. Thanks! May 31 01:04:31 Hello May 31 01:04:32 java.io.FileNotFoundException: /Users/alex/Work/DGMobile/common/build/intermediates/exploded-aar/com.google.android.gms/play-services/7.5.0/jars/classes.jar May 31 01:04:41 I'm getting this issue, does anyone have any clue? May 31 01:05:24 You can look at the project this is in here: https://github.com/IOT-DSA/dslink-java-android May 31 02:10:21 my daily did anything happen at I/O today post May 31 02:10:30 sooo did anythiing cool comem out? May 31 02:11:06 they came out with some neat fabric / material May 31 02:13:57 can someone please explain why I am getting this null object reference error when I use setImageResource: https://bpaste.net/show/056ca8b9c9cb May 31 02:14:32 line 17. the only thing that makes sense is if take.png doesn't exist in the drawable folder, but it is! May 31 02:15:15 make sure you have a valid id that is setup as a ImageView May 31 02:15:52 make sure you are setting the contentView for the correct XML May 31 02:16:19 bilb_ono: can i see your activity_main.xml? May 31 02:19:27 ooo the google test lab looks neat. Is it free?? May 31 02:20:57 Is Android M no longer going to be able to run older apps? May 31 02:21:02 DadFoundMy, https://bpaste.net/show/1e6635c868d8 with the xml May 31 02:21:05 with the new permission structure, that is May 31 02:21:21 Foxhoundz: i highly doubt they would do that May 31 02:21:59 DadFoundMy: I'm just starting out with Android developmenet May 31 02:22:08 the new changes on Android M are a little bit overwhelming May 31 02:22:52 Foxhoundz: I don't completely understand the new permision changes myself but i really don't think google would just disable 90% of apps for the new OS May 31 02:24:22 Foxhoundz: no, apps built targeting older SDKs will still get install-time permission prompts May 31 02:24:40 Foxhoundz: users can still disable permissions in settings, then you just get "empty" data. May 31 02:25:17 groxx: wouldn't that cause all sorts of problems in the app? May 31 02:25:45 groxx: so what will happen if I'm a bad programmer and dont add permission checks in my app for api 23+. Will the app get a permision exception? May 31 02:25:48 if the user is able to install an older app a la classic permission prompts and then disables permissions in the new UI? May 31 02:25:56 Yeah that ^ May 31 02:26:11 bilb_ono: i feel like this should be such a simple solution but i dont see anything balringly wrong May 31 02:26:25 lol yeah welcome to my club May 31 02:26:25 bilb_ono: maybe it;s something with the fragments, I dont work with them often May 31 02:26:31 for 23+ + targeting 23+, I'm actually not sure. I don't recall them mentioning it in the IO video. a permission exception would make sense though. May 31 02:26:47 if you don't want to add those permission checks, then just keep targeting API 22. May 31 02:27:30 well now that i think of it what is the downside of doing that? May 31 02:27:43 whats the downside of taget api like 11 if thats the miniumu you support? May 31 02:27:53 Foxhoundz: well, if they disable camera permission in a camera app, and then the camera app doesn't work, they've a) seen the screen which changes that option, b) tapped through a "caution, this app is for an older OS, this may break" screen, and c) chosen to do so. May 31 02:27:59 what other features would i lose other than permsions May 31 02:28:05 If I'm getting the error "Resource ID #0x7f0a0066 type #0x12 is not valid", is there anyway I can debug that and see resource or line is calling that? May 31 02:28:09 but it's unlikely to crash. May 31 02:28:21 not that I would do this as the new as I think the new permisions look great May 31 02:28:40 DadFoundMy: it depends. if you target older versions you tend to get compatibility-modes in newer OSes to make sure it keeps working May 31 02:28:44 t0astt: is that how it works on iOS? May 31 02:29:03 sometimes that can result in worse behavior than targeting the newer versions, even if you don't need the newer behavior. May 31 02:29:16 DadFoundMy: ?? What are you talking about? I'm writing an Android app in Android Studio lol May 31 02:29:38 t0astt: wrong highlight that was for groxx haha May 31 02:29:56 I forget what ios does :| I think it crashes if rejected + you don't handle it. May 31 02:29:56 Anyone here watching the Blackhawks/Ducks game? May 31 02:30:07 i am! May 31 02:30:14 Hawks or Ducks fan? May 31 02:30:15 second hockey game i've seen May 31 02:30:31 rangers i guess :/ May 31 02:30:44 Meh haha May 31 02:30:48 but iOS is also quite (╯°□°)╯︵ ┻━┻ about backwards compatibility. if you don't have an update ready for the new OS launch, they'll happily break all your shit. May 31 02:31:05 t0astt: how about you? May 31 02:31:27 I'm a Blackhawks fan. I'm from Illinois May 31 02:31:35 Wearing a Toews sweater right now haha May 31 02:31:39 groxx: yeah my ios buddy was just telling me about all that i didn't really believe him though. Seems awful that they have to constantly update and buy new devices May 31 02:32:01 being an ios dev just seems like a constant punch in the face and being happy about it May 31 02:32:38 at times, yeah. definitely. May 31 02:33:19 being an ios user it just seems like haha. Everyone at my high school is freaking out about some text that seems to turn off iphones. kinda crazy May 31 02:39:34 t0astt: well it was kinda lookin up for the ducks there for a second haha May 31 02:39:41 No way May 31 02:39:59 I would've been surprised if they were able to get 2 goals in 8 minutes or whatever it was May 31 02:40:11 I think it's Hawks going to the cup :D May 31 02:42:50 I'm trying to use the Place Picker in Google Play Services, but when I start it, the picker opens, and then immediately closes May 31 02:43:32 There's nothing out of the ordinary in logcat either May 31 02:54:55 t0astt: grats haha May 31 02:55:17 DadFoundMy: :D STANLEY CUP BABY! May 31 02:55:42 maybe ill make this the first stanely cup i watch haha May 31 02:55:47 is it the same 7 game format? **** ENDING LOGGING AT Sun May 31 02:59:59 2015