**** BEGIN LOGGING AT Fri May 20 02:59:59 2016 May 20 03:17:31 Does anyone here happen to have a Galaxy S6 running 6.0 or a Galaxy Note4 running 5.1? I could use some help testing something in my app. Samsungs virtual test devices aren't reproducing an issue some users are reporting May 20 03:25:03 is this a showstopper with firebase analytics ? https://www.reddit.com/r/androiddev/comments/4k3nso/propertyname_missing_from/ May 20 03:25:12 wondering if i should hold off May 20 03:25:38 "We missed the @PropertyName annotation in this release of the Firebase SDK for Android. It will be included in the next update. No news yet on when that will be out." May 20 03:31:41 ugh ! for fsck sake; i just updated GMS to 9.0 and didn't even change over to firebase yet, but its crashing my app on startup May 20 03:32:14 maybe google analytics drags in firebase stuff now ? May 20 03:34:51 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle. May 20 03:35:01 I feel you, man. I hate when dependencies we have to rely on screw us over. I've got two very big fans of my app in a craze right now because Samsung decided they had to do things differently and my app isn't working right for them May 20 03:35:05 i'm not using or depending on any firebase stuff, so why would i see this May 20 03:35:57 Do you have any locally-added dependencies which may have firebase configured in their build.gradle? May 20 03:36:16 also, you could just add an appId field and see if that resolves it. it's just your core package name May 20 03:37:50 fffuuuuuu!!!!! May 20 03:38:11 com.google.android.gms:play-services-analytics -> May 20 03:38:23 com.google.android.gms:play-services-analytics-impl -> May 20 03:38:28 yeah that would do it haha May 20 03:38:40 com.google.android.gms:play-services-base -> May 20 03:38:50 com.google.firebase:firebase-common:9.0.0 May 20 03:39:20 i think i heard firebase was not compat with instant run May 20 03:39:33 so great, even though i'm not using it, i have to disable IR now May 20 03:39:34 lol May 20 03:43:07 g00s: there are more cases when instant run doesnt work than cases when it works May 20 03:48:47 listening to whats new in tools, today at i/o - thought it kinda strange they were re implementing the groovy parsers to read the build.gradle ? May 20 03:49:14 why isn't the IDE just interrogating gradle APIs to discover the model ? May 20 03:49:18 sounds so fucked up May 20 03:58:14 It's almost as if Gradle is not the best solution for the problem May 20 04:02:13 is there a GA to firebase migration guide somewhere? i'm this close to going back to gms 8.4 May 20 04:12:54 Hi I'm a architect mainly focus on the backend, I'd like to catch upwith the mobile dev trend. May 20 04:13:08 So I already know there are hybrid way to dev a app, what about recent projects like NativeScript and ReactNative which compile web codes into native code. May 20 04:13:32 Is that a good approach? May 20 04:17:37 L-----D: No May 20 04:17:57 If you want to create an Android app that will be competitive with other top apps, you need to go Java May 20 04:19:25 CedricBeust, since they are compiled to native code, the app should be competitive in performance? May 20 04:19:49 It won't, and it won't be competitive in little details that make these apps shine May 20 04:23:54 CedricBeust, so the details, is likely fall into the 80:20 rule, or these cross platform project just can't reach the same level? May 20 04:26:26 g00s, because interrogating gradle is fucking slow May 20 04:27:04 At Google I/O they showed again how to run dex in process and how important it is to give Gradle 4Gb or Xmx May 20 04:27:16 of* Xmx May 20 04:27:21 CedricBeust i have XmX2048 seems fine May 20 04:27:30 but yeah lol, still wtf May 20 04:27:39 I'll tell on you to the Android team, you will obey the orders May 20 04:27:58 the gradle plugin defaults to dex in process with 2048 May 20 04:28:09 and automatically disables below that May 20 04:28:51 I think it's to overcome a flaw in how they implemented Dex. We're not talking about running all these dexes in parallel: it's bout running them in sequence but in process. I bet it doesn't manage its memory very well May 20 04:29:22 hi guys who uses jack as the compiler here? May 20 04:29:32 jack, thats who May 20 04:30:27 You don't know Jack May 20 04:31:58 lol jack the new compiler May 20 04:32:03 https://source.android.com/source/jack.html May 20 04:32:26 is someone already using this? May 20 04:45:22 surprised there were no bluetooth talks at I/O May 20 04:45:46 I attended a talk on sensors but there was really not much of substance there May 20 04:45:51 because they have not yet achieved what apple did couple of years ago May 20 04:45:55 g00s May 20 04:46:01 squ: What's that? May 20 04:46:19 Multipeer Connectivity, also knows as ? Mesh Networking (?) May 20 04:46:40 There are better techs than Bluetooth for that May 20 04:46:54 it combines bluetooth and better techs into one network May 20 04:47:02 and also combines multiple users May 20 04:47:08 into one net May 20 04:47:13 automagically May 20 04:50:40 can't present something worse than that, because apple guys will laugh, right? May 20 04:51:00 does CedricBeust automatically get IO tickets forever now? May 20 04:51:52 Wondering if I can get some help in here, does anyone know where I could get the default notification sounds as audio files? Not rooted so I can't get into the system folder apparantly May 20 05:03:27 I have a few quick questions that I can't seem to find straight answers for online... 1) Java is by far the preferred language for Android App development, right? 2) How prevalent or "readyy" is C# and/or Xamarin for Android App development? May 20 05:06:19 1) yes 2) c# hardly exists for Android May 20 05:06:45 CedricBeust, that would include Xamarin then as well, right? Basically .NET for Android May 20 05:08:25 yes, close to nonexistent on Android May 20 05:09:07 just watched the support lib session; so they are dropping below gingerbread. i think they should drop below api 14 :D May 20 05:09:34 nice to see they are breaking things up though, getting out of control May 20 05:09:46 g00s: gingerbread is which # May 20 05:09:51 № May 20 05:10:00 9 - 11 i think ? May 20 05:10:04 or 9, 10 May 20 05:11:12 CedricBeust do you know why sessions didn't have questions taped ? May 20 05:11:57 too much hate May 20 05:11:58 ;) May 20 05:12:17 cmon May 20 05:12:27 also , i hope they recorded "Android Platform Fireside Chat" May 20 05:12:35 those are like the best sessions ! May 20 05:12:38 (that was joke, dont worry) May 20 05:12:48 :) May 20 05:13:25 g00s: you havent seen android fireside chat ? May 20 05:13:35 like... ever ? May 20 05:13:48 gordon_ i've seen all of the recorded ones May 20 05:13:56 so what's the problem May 20 05:14:08 they didn't have one last year at all ... May 20 05:14:18 and this year it was not a live session May 20 05:14:24 honestly, I'm more interested in ndk debugging than fireside May 20 05:14:36 just saying, hope they recorded it May 20 05:14:41 and jill getting java8 byte code (hope it's fixed) May 20 05:16:27 and that they fixed issues with android studio May 20 05:16:35 and new layout May 20 05:16:55 elephant in the room is ongoing court case May 20 05:17:08 although they would not talk about that May 20 05:18:15 just hope constrains layout will work as expected May 20 05:20:43 is that goihm May 20 05:20:45 oops May 20 05:21:05 gordon_ i have great respect for romain, but my experience was stuff he worked on being especially buggy ... May 20 05:21:19 and he had a terrible attitude about it May 20 05:22:25 never talked with him - no opinion May 20 05:22:30 or heard May 20 05:23:07 just my 2c from reading some of his responses on b.android.com, and things he said in this channel May 20 05:23:15 long ago of course May 20 05:24:18 published May 20 05:24:38 i remember when the droid-1 came out, hierarchy viewer would not work with it. even though it was a very popular phone. he didn't test that resolution, and was like "whatever!" May 20 05:25:20 HierarchyViewer was something he did on the side May 20 05:25:48 CedricBeust i can tell :D May 20 05:25:54 nevertheless, its in the SDK May 20 05:26:06 It turned into a real project shortly after that based on the interest May 20 05:28:37 during the tools demo, they showed something that presented the view hierarchy in AS ... May 20 05:28:54 espresso test recorder <3 May 20 05:29:07 was that being grabbed from the device? i couldn't figure that out May 20 05:29:15 yes May 20 05:29:21 it kinda looked like hierarchyviewer May 20 05:29:42 ok, i hope they get rid of that damn monitor thing May 20 05:29:48 are you so into hierarchyviewer ? :D May 20 05:30:34 its useful when it works ... May 20 05:30:53 too often it just kinda reports stuff as FrameLayout , but oh well May 20 05:34:27 CedricBeust i wouldn't ding romain or anyone for a single occurrence, but seemed time and time again replies on b.android.com about bugs, or documentation (you have the source!) were pretty flippant May 20 05:34:36 he really pissed me off :) May 20 05:35:17 i thought, man i hope thats not reflective on the rest of the culture of the android teamn May 20 05:39:05 but ... and i say this with great sadness, as an outsider it seems to be the greater culture of android devs over there. there are still things terribly broken with BLE stack that had patches submitted, but were just ignored leaving everyone in misery May 20 05:39:24 You're making a lot of generalizations May 20 05:40:07 yeah, I think so May 20 05:40:10 they are busy May 20 05:40:19 yeah, i didn't bookmark these things - as if to build a case later on ... May 20 05:41:21 cmake suppport <3 May 20 05:42:12 CedricBeust well the specific BLE issue is autoconnect=true with connectGatt; it is a race condition that had patches sent in May 20 05:42:30 its a common use case thats been busted since day 1 May 20 05:43:46 at the last dev summit, somebody had the courage to ask if they would just replace the current stack with something that worked ... May 20 05:43:46 haha May 20 05:44:01 go black to bluez specifically May 20 05:44:17 I've heard many swear words come out of swetland's mouth about Bluetooth over the years May 20 05:44:23 hope the situation is better today May 20 05:44:45 man, so d.android.com search doesn't work in Safari May 20 05:45:13 hi guys! one question. i need to show the push notification for X-seconds like an alarm. and only locally. the app can be closed. how can I do that? May 20 05:46:16 g00s: who uses safari ? May 20 05:46:32 gordon_: g00s May 20 05:46:50 it's hard to get support just for 1 user ;D May 20 05:46:56 :) May 20 05:47:01 i do not want any remote clouds or apis. just local alarm. is that possible without Parse? May 20 05:47:26 sasos90: yes, you can do that May 20 05:47:51 check... https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html May 20 05:48:22 gordon_: i tried with that but the notif. executes immediately May 20 05:48:32 i can not set the wait time :S May 20 05:48:38 use alarm manager to check time May 20 05:48:49 which will schedule notificaiton for you May 20 05:48:59 alarm will work even when the app is closed? May 20 05:49:02 Anyone used the ConstraintLayout yet? Maybe I'm using it wrong but oh my god the amount of spaghetti code in XML it produces is astounding May 20 05:49:04 CedricBeust wow, what a coincidence ! looks like 69834 was assigned today ! https://code.google.com/p/android/issues/detail?id=69834 May 20 05:49:06 sasos90: yes May 20 05:49:08 took 2 years ... May 20 05:49:08 is it possible to remove that alarm later on? May 20 05:49:17 (before it executes) May 20 05:49:34 sasos90: yes May 20 05:49:47 gordon_: so i don't need any services right? just directly put that into fragment/activity. correct? May 20 05:49:49 but you must store alarm ID somewhere May 20 05:50:03 I dont remember that much May 20 05:50:03 sure. alarmId is fine May 20 05:50:11 but i dont think so May 20 05:50:19 try it, it's not that hard May 20 05:50:35 liuwenhao yeah that seems to be the thing with it, meant to be used from AS May 20 05:50:36 yea i am trying for a day.. but no success.. since it is my first app and i am bit confused sometimes :D sry May 20 05:50:45 liuwenhao: so my hopes are crashed :D May 20 05:51:23 It's really really awful. Like, I was excited to try it, it seems interesting. But it makes my eyes bleed May 20 05:51:27 gordon_: perhaps you have some example somewhere? i mean.. my examples that i found are just not working... i don't know about services and broadcaasts and so on in android so i am not sure if i am even doing it correctly. May 20 05:51:34 I think it might be one of the worst version 1 APIs Google has released May 20 05:51:43 But that's just my two cents May 20 05:54:43 hi all May 20 05:55:09 liuwenhao from romains tweets, its usable from XML but meant to be employed from AS May 20 05:55:19 Yeah I'm using it from the designer May 20 05:55:26 But it's still pretty broken May 20 05:55:49 i think in general, that was the problem with lots of Android widgets ... how to plop things doing in GUI editor and have it xlate that to LL, RL, etc May 20 05:56:00 they tried to remedy some of that with GridLayout May 20 05:56:47 one motivation for GL was easy target from GUI editor May 20 05:56:51 I started messing with iOS dev for a side project, I dislike Xcode in general but their UI design interface is top notch May 20 05:57:41 I hope Android Studio's design GUI goes more in that direction over time May 20 05:59:14 liuwenhao we also got google/flexbox layout - not terribly exciting, but nice also May 20 05:59:33 i generally prefer the XML way of things to xcode IB in this regard May 20 06:05:43 Yeah the Flexbox stuff looks very useful. I had a lot of problems wrapping programmatically created RadioButtons in a RadioGroup around to a new line, wish that library was available last year :D May 20 06:07:04 wtf is this certification shit May 20 06:07:51 * Ping_2_Ur_Pong pouts screams, yells and calls bullshit May 20 06:08:24 It's the same as the Udacity nano certificate thing they did last year May 20 06:08:32 Or was it Udemy? one of those May 20 06:11:23 yea, but that was pushed by udacity, google itself wasn't saying "hey get this certification, we are saying if you have it you're skilled" May 20 06:11:45 The later means much more, in 2 years every stupid ass company is going to expect you to have their shitty certification. May 20 06:12:44 "But, I've written 8 apps, have over 5 millions users " "do you have the google certification" "no" "no thanks" May 20 06:13:13 * Ping_2_Ur_Pong hates stupid ass certifications, unless they offer something useful. I think they are all a money grab. May 20 06:13:53 The part that annoys me the most is they don't even have an expert or Senior/Team lead level certification, only the shit that says I know what an Activity is. May 20 06:14:00 what certification? can you clarify? May 20 06:17:37 https://www.youtube.com/watch?v=Yu2oGere_Mc&list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte&index=13 May 20 06:17:56 If a company rejects you because you don't have a cert and no other reasons, they are doing you a favor May 20 06:18:09 Because they will make your life living hell if they are that simpleminded May 20 06:18:19 touche May 20 06:18:54 this isn't for me, my resume is literally the one I just quoted, but for other people. Its ugh... harder May 20 06:19:34 * Ping_2_Ur_Pong knows there will be people that catch that shit, I dislike wonton certs. May 20 06:20:02 The real question is if that course is actually useful or not May 20 06:20:06 if you were a new dev May 20 06:20:18 good question May 20 06:20:33 they say after completing the nanodegree course they hired some of the devs May 20 06:20:41 its 6 months long though. May 20 06:21:18 If you can code, I don't understand the point in a course, open your browser and teach yourself. But, meh... that's how ive learned everything. May 20 06:21:27 Every job interview I've had for Android dev just does a code test or makes you complete a sample project; I haven't had a single company even ask about my education before May 20 06:21:44 oddly me either May 20 06:21:44 Having an app in the Play Store is better than a cert ever will be May 20 06:21:52 * Ping_2_Ur_Pong got 2 god damn degrees for nothing. May 20 06:21:59 * Ping_2_Ur_Pong pouts again. May 20 06:22:38 but May 20 06:23:02 you god 2 degrees in android course? May 20 06:23:09 and company rejected your cv? May 20 06:23:09 meh... you can't beat CS learning in college. I always feel bad for people without CS degrees when applying to startups or fortune 500 companiex... they get nailed by CS questions all day. May 20 06:23:18 squ: hell no May 20 06:23:29 I have 2 college degrees May 20 06:23:30 what is your problem, can you clarify? May 20 06:23:40 I don't have a problem I am just ranting. May 20 06:23:54 you have 2 college degree and you got rejected? is that problem? May 20 06:23:58 I dislike certs, so am just laying into them May 20 06:23:59 You can teach yourself all of that. I've had no problems finding jobs without a degree (CS dropout due to personal problems) May 20 06:24:07 because you don't have android knowledge? May 20 06:24:13 what do you want May 20 06:24:22 squ: I a back rub and a coke May 20 06:24:35 liuwenhao: touche May 20 06:24:41 what is that full screen of flood about May 20 06:25:00 Knowing the Activity/Fragment lolcycle is way harder than any algorithm anyways May 20 06:25:03 a capable, determined person can always find a way. May 20 06:25:08 interview algorithm at least May 20 06:25:20 Ping_2_Ur_Pong: what do you want, can you clarify? what is the problem? May 20 06:25:27 https://lh3.googleusercontent.com/-ePcpvCCqKgY/UhODSSrFHoI/AAAAAAAAAoM/uq6Y9aWvh-cLGoao9DFy5K6zJ-NZzrDIA/w506-h930/android_fragment_lifecycle_complete.png May 20 06:25:29 this always makes me laugh May 20 06:25:43 * Ping_2_Ur_Pong default question is to give a copy of the Sieve of Erathasmes and have them write it on the spot. May 20 06:25:44 I can't believe Google actually thought this was a good idea May 20 06:25:53 s/copy/description/ May 20 06:26:11 I guess this flood can be ignored May 20 06:26:31 squ: google is implementing a certification course, I dislike the idea because many companies will abuse it to think it means that without it you aren't skilled or qualified. May 20 06:26:39 particularly recruiters May 20 06:26:47 it makes perfect sense May 20 06:26:55 I agree with Google May 20 06:27:13 and I appreciate if companies will think so May 20 06:27:30 what certification guys? May 20 06:27:36 bbotx23: android May 20 06:27:44 bbotx23: I posted the link to the video earlier May 20 06:27:53 no one cares May 20 06:27:53 wait backread May 20 06:28:06 squ: different strokes, out of curiousity do you have your java certification? May 20 06:28:07 Ping_2_Ur_Pong: problem is the opposite May 20 06:28:27 some companies list math sciences as enough to apply for programming May 20 06:28:39 I have to say that math has nothing to do with programming May 20 06:28:52 and this is common widespread myth out there May 20 06:29:11 You're telling me that if I know lambda calculus I can't automatically write Java lambdas? May 20 06:29:13 what the heck... May 20 06:29:13 fighting it with certification might help May 20 06:29:41 liuwenhao: that is actually a great diagram but yea thats some silly shit May 20 06:29:50 now companies make note "5 years android programming experience". But people with 1 year can't apply May 20 06:29:53 you understand ? :) May 20 06:30:00 certification will help May 20 06:30:40 squ: if you don't understand what math has to do with programming you should definitely go back to undergrad and take your intro to computer science course again. May 20 06:30:51 the entire basis of programming is based upon math and logic. May 20 06:31:14 yes that's a myth May 20 06:31:24 huh May 20 06:32:07 squ, do you actually have any idea what you're talking about or are you just pulling shit out of our ass. This is going to end p in one of two ways either you're going to blow my fucking mind with something brilliant or im going to rage. May 20 06:32:18 I'd like to have team of android devs instead of math sciences bachelors May 20 06:32:31 squ, then you see the small picture May 20 06:33:30 I understand, you got 2 degrees and expect respect May 20 06:33:32 I will take a smart person over an overly skilled at X person any day. An intelligent person can discern and devour, a person that has domain knowledge but not actually that bright will be stumped the second they hit a problem they aren't used to. May 20 06:33:52 squ: no, I want to to ration out your thoughts. May 20 06:34:11 I already said enough to you May 20 06:34:16 reread if you want May 20 06:34:17 Explain how programming has nothing to do with math. I am letting you explain your logic. May 20 06:34:33 yea you have no fucking clue what you're talking about. May 20 06:34:53 Where did you read about this Google Certification Exam? Sounds like nonsense May 20 06:35:09 Wasn't it in the keynote? May 20 06:35:19 CedricBeust: its one the dev channel one sec for a link May 20 06:35:20 I didn't watch the keynote but I thought they announced the cert there May 20 06:35:28 CedricBeust: his cv got reject, and he is upset because he got 2 degrees :) May 20 06:35:35 I was at the keynote, don't remember anything about a certification May 20 06:36:09 9:21:52 AM * Ping_2_Ur_Pong got 2 god damn degrees for nothing. May 20 06:36:23 9:23:29 AM - Ping_2_Ur_Pong: I have 2 college degrees May 20 06:36:25 https://www.youtube.com/watch?v=Yu2oGere_Mc&list=PLOU2XLYxmsILe6_eGvDN3GyiodoV3qNSC&index=22 May 20 06:36:50 * Ping_2_Ur_Pong kicks CedricBeust in the nuts for being able to go to the key note May 20 06:37:23 squ: are you always a twat? Or just late at night when you say stupid shit and people call you on it? May 20 06:37:33 Language May 20 06:37:40 if you look at timestamp, it is 9 AM morning May 20 06:37:42 which word? May 20 06:37:46 hey folks May 20 06:37:53 Language and attitude May 20 06:38:19 * Ping_2_Ur_Pong slowly backs away May 20 06:39:13 wait, k maybe calling him a wet body part was too much, but I can still point out when someone says something stupid no? May 20 06:39:26 Yes but there are mature ways to do that May 20 06:39:31 wondering if someone could help me understand if there is something wrong with this code, that would cause it to lag as in get in a timing conflict between loading the view and retrieving the data from firebase May 20 06:39:37 http://paste.ofcode.org/T6Ye4baH77p4u6Zj7xxDcN May 20 06:40:10 Ping_2_Ur_Pong: your assumptions are obviously wrong May 20 06:40:20 Google seems to have put a lot of effort behind Firebase support. I hadn't used it prior. May 20 06:40:22 sometimes, it feeds the list with the data extracted from firebase and somtimes, it would give me a nulpointer for trying to get data from a null array which in this case is mplaces !? May 20 06:40:25 your 2 degrees have nothing to do with android May 20 06:40:33 that's so obvious May 20 06:40:42 squ, lets agree to disagree and not fight. I generally don't try to act 10 yrs old. May 20 06:40:53 math - programming - android = no connection May 20 06:41:05 squ, please leave it be May 20 06:41:11 that is why they reject you and asked for certificate :) May 20 06:41:31 what's the deal.io? May 20 06:41:35 CedricBeust: so dude, like I have 2 levels. calm and rage filled monster. May 20 06:41:52 applied for a job got rejected and now raging? May 20 06:41:53 -_- i guess i slipped in the middle of some debate here .... May 20 06:41:54 Then stay away from irc for a few years May 20 06:42:07 rage usually works on irc May 20 06:42:10 Ping_2_Ur_Pong: you can do anything you want, but admit obvious May 20 06:42:13 its one of the ore fun parts May 20 06:43:02 So that Google Developer Certification is real and it looks pretty reasonable. Will make my job (and our recruiters') a bit easier to filter candidates May 20 06:43:28 CedricBeust: the issue I have is it only applies for entry, no senior, no team lead. May 20 06:43:29 CedricBeust: it is also easier to fight "5 years of experience" demand May 20 06:43:37 because new guys don't have it May 20 06:43:44 and can't apply May 20 06:43:59 you don't apply as a jr dev with 5 years experience. May 20 06:44:14 you can :P May 20 06:44:17 Anyone that asks for 5 yrs for a jr dev is just out of their minds. May 20 06:44:27 there's a difference between 5 years of experience, and experiencing the same year 5 times May 20 06:44:40 standard jr is 1, or one of those boot camps. May 20 06:44:55 ground hog day? May 20 06:45:09 or not passionate developer May 20 06:45:28 what're you mad about, I don't get it May 20 06:45:28 oh... I smell butt hurt May 20 06:45:36 :> May 20 06:45:40 let us in, open up your feelings bruh May 20 06:45:44 I wasnt here for 15 minutes May 20 06:45:48 and there's butt hurt already May 20 06:46:10 dafuq are you people talking about, seriously don't take stupid for fact. May 20 06:46:12 gordon_: let me retell in short, this guy have 2 academic degrees and got his cv rejected May 20 06:46:13 :) May 20 06:46:23 I knew it May 20 06:46:26 he blames Google May 20 06:46:27 rejected by whom? May 20 06:46:35 Ping_2_Ur_Pong: who rejected you? May 20 06:46:36 I too have 2 degrees and I got my cv rejected many times ;( May 20 06:46:47 damn May 20 06:46:55 so he blames Google for inventing android certification May 20 06:46:56 :) May 20 06:47:00 I have a lot of things that I believe to be worthy and amazing, and I've a list of companies that have rejected me May 20 06:47:04 * Ping_2_Ur_Pong sighs from stupid... it is overwhelming at times. May 20 06:47:07 I literally made a list May 20 06:47:20 squ, you do realize the program isn't even up yet? May 20 06:47:31 android certification has nothing to do with cv's May 20 06:47:33 anyway May 20 06:47:39 Ping_2_Ur_Pong: haven't visited your link, sorry May 20 06:47:43 like there's only one company in the world May 20 06:48:01 the biggest android certification is a couple of apps on the store May 20 06:48:01 * Ping_2_Ur_Pong wants to rage so hard right now May 20 06:48:10 that's *all* employers really want to see May 20 06:48:10 developers stay at the same company for 1 year avarage May 20 06:48:53 Odaym: might be May 20 06:49:01 * Ping_2_Ur_Pong goes back to coding. May 20 06:49:02 I prefer code on github :D May 20 06:49:04 I dont personally work in the US but I have applied there and went through an interview May 20 06:49:22 the quality of apps on the store got me through the door, the quality of code got me rejected May 20 06:49:40 at Clevertech, namely May 20 06:49:53 advertisement ! May 20 06:50:01 i wish I got it May 20 06:50:04 $5K May 20 06:50:05 I'm calling internet police May 20 06:50:18 but they are jews and pro-israel, and I'm Lebanese May 20 06:50:25 so that's what made the deal breaker I believe May 20 06:50:30 lol May 20 06:50:32 :) May 20 06:50:38 Let's kill this discussion right here right now May 20 06:50:40 its illegal for me in my country to communicate with them May 20 06:50:48 CedricBeust: I agree :D May 20 06:50:54 so my code is fine :D May 20 06:51:00 hi! May 20 06:51:02 hai May 20 06:51:04 hi May 20 06:51:06 ive been seeing a lot of companies that are all remote that are consultencies... interesting. May 20 06:51:09 o7 May 20 06:51:28 I love those remote positions, I used to wait for them on HN postings and reddit May 20 06:51:35 cmd + F > "Remote" May 20 06:51:36 is there a channel for clang related questions? I want to compile a small android project with clang May 20 06:51:41 * gordon_ got remote position May 20 06:51:43 probably #clang May 20 06:51:48 HunterD: ndk May 20 06:52:12 HunterD: you make ndk project and compile it with clang May 20 06:52:13 The official IRC channel for Nan Desu Kan, the premier anime convention of the rockies. :| May 20 06:52:24 lol May 20 06:52:46 i will need to compile the project using direct clang commands May 20 06:52:51 https://developer.android.com/ndk/index.html May 20 06:52:57 the build system the company uses is FastBuild May 20 06:53:12 Never heard of that build system May 20 06:53:27 http://fastbuild.org/docs/home.html May 20 06:53:31 is pretty fast May 20 06:53:35 it has fast in name, probably not gradle May 20 06:53:39 :)))) May 20 06:53:53 we tried gradle also... still compiling.. May 20 06:54:18 increase its ram capacity in gradle.properties to 3072 May 20 06:54:29 Yeah gradle doesn't have "fast" in name, that was a terrible mistake May 20 06:54:44 host gradle on a server on its own May 20 06:54:47 the short story is that I need to compile a small project using FastBuild that will invoke clang May 20 06:54:48 get faster build times May 20 06:55:05 HunterD: ndk May 20 06:55:37 CedricBeust: their advertisement is 'faster builds' May 20 06:56:15 CedricBeust: what was the best presentation/s you've seen at I/O? May 20 06:56:19 * as a showoff, with GCC and FastBuild we build around 2000 C++ source files (400 000 - 500 000) on one machine (i7 4790k, 16 GB ram) in less than 4 minutes. after using the FastBuild caching the time goes down to 22 seconds (for a clean build + linking) May 20 06:56:41 the best was image compression May 20 06:56:47 and after google said no moar gcc.. we need to go the clang route May 20 06:56:48 im buying that book May 20 06:56:57 Odaym: it reminds me of my studies May 20 06:57:12 Colt should be the mascot for Android May 20 06:57:38 I wanted romain guy and chet hasse in a solo talk though May 20 06:57:40 dont think that happened May 20 06:57:41 the first problem I hit is: how to list all the targets that clang (that comes with android ndk) supports May 20 06:58:06 clang comes with ndk? May 20 06:58:27 it is included in android ndk? May 20 06:58:37 there is a clang.exe inside: F:\Utility\AndroidNDKr11c\toolchains\llvm\prebuilt\windows-x86_64\bin May 20 06:58:47 I see May 20 06:58:51 but I need to list the architectures supported May 20 06:59:02 like arm-v7... x86_64.. May 20 06:59:17 and I am big noob on how to do it May 20 06:59:23 what for? May 20 06:59:27 there is talk about that during the tools talk during the gradle section May 20 06:59:49 Ping_2_Ur_Pong: you still here, how about coding? May 20 06:59:51 clang is a compiler right? is it any better than gcc? May 20 07:00:22 squ, how about fucking off? May 20 07:00:29 sorry :) May 20 07:00:33 or whatever the Microsoft C++/C compiler is May 20 07:00:38 to check which targets are currently supported, on which devices to test the small project that I have and see it all works ok May 20 07:00:55 I have an angle, theta, what's a great way to tell if it is Horizontal, with a margin of error of 15 degrees? May 20 07:01:21 HunterD: would you like to try it on the example project May 20 07:01:45 -pi < theta < pi May 20 07:01:52 HunterD: https://youtu.be/hHnTIMjd1Y8?list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte May 20 07:02:15 that starts at the C++ stuff, but it ends with gradle stuff specifically referencing clang May 20 07:02:38 the project is something from inside the company. the problem is: how to get the cpu targets (which architectures) that clang (the one that comes with the ndk) supports May 20 07:02:54 gradle and ndk-build will not be used May 20 07:04:29 https://developer.android.com/ndk/guides/standalone_toolchain.html May 20 07:06:23 Ping_2_Ur_Pong: that is golden :D thank youy! May 20 07:06:32 *you May 20 07:10:18 explodes sounds like you want to know if the angle is >= 180 +- 15 May 20 07:11:10 yea basically but also >= 0 +- 15 May 20 07:11:23 but you need to do the loop on that. 18, 360, 540 etc... May 20 07:11:33 Was wondering if someone knew a great logical shortcut here, maybe using modulus or something May 20 07:11:38 You say you already have an angle, what is this angle measured against? May 20 07:11:43 The value of theta will be between 0 and 360 May 20 07:12:14 http://pastebin.com/PqyuVXAN May 20 07:12:37 This works. It's just a lot of ifs. "Simplifying" the logic makes it unreadable. May 20 07:12:43 Why convert to degrees? May 20 07:13:02 For my simple mind. :) May 20 07:13:25 I can remove that logic later, but I always prefer degrees May 20 07:13:27 Remove that, you only add potential errors May 20 07:23:00 explodes: http://hastebin.com/wuhacejare.axapta something like May 20 07:23:19 when building with clang, can the final .so be linked using clang also? or for linking I will use the ld linker from gcc? May 20 07:23:50 Oh dear May 20 07:24:03 That code is so wrong I don't know where to start May 20 07:24:07 lol May 20 07:24:11 you need some basic geometry lessons May 20 07:24:19 now I gotta see the twinkle in that donkey's eye May 20 07:24:38 oh my May 20 07:24:41 Its the idea for checking between the angles. May 20 07:24:46 That's wring the conversion is wrong. May 20 07:24:58 Degrees, not radians? May 20 07:25:07 It's wrong in all units May 20 07:25:24 oh, look, cmake runs May 20 07:25:36 WHy the int conversion? May 20 07:25:36 * Ping_2_Ur_Pong ponders for a moment. May 20 07:26:04 Also...why return true or false? May 20 07:26:09 Why not just return the statement? May 20 07:26:18 return (ang <= 15 || ang >= 165) May 20 07:37:03 Working on a very large project where they decided to use color name. How can I break away from that and allow people to use images for the background of the app? May 20 07:39:33 'color name' ? May 20 07:43:19 I got a question in android studio 2.1 in the sdk update site i see a red ! unknow error not sure how to fix it? May 20 07:50:02 what does the error say? or have you tried restarting Android Studio? May 20 07:52:40 xorgate> @color/grey_dark May 20 07:53:42 impliednude: so they set background colors instead of using bitmaps? then in the layout change the android:background="..." tags to the correct drawable May 20 07:58:43 gah, I am an idiot tonight. Thanks. I think I need to get some sleep May 20 07:58:55 https://twitter.com/googlecloud/status/733081991239901184 May 20 08:03:22 this thing reminds nvidia efforts in machine learning May 20 08:03:38 they make it with their gpu cards May 20 08:05:54 I can't read tonight. sorry squ. I think I have been staring at a computer for WAY too long May 20 08:06:33 impliednude: nothing important, just retweeting advertisements May 20 08:09:46 https://twitter.com/GPUComputing/status/732995940894789632 May 20 08:13:11 https://news.developer.nvidia.com/tag/machine-learning-and-artificial-intelligence/#prclt-T1vi09Q3 May 20 08:50:54 When I use this Picasso instance: http://pastebin.com/GWUHmmQK to load image from URI into an imageview , the image sometimes get's rotated 90 degrees , depending on which image I load. Anyone know a fix for it? Or the reason behind it? May 20 09:02:15 back here May 20 09:02:17 :) May 20 09:03:31 can a function from a .so (shared binary object) call a function from another .so at runtime? where can I read more about this? May 20 09:11:59 hey guys! i am using alarm manager to schedule the push notification show up. is it possible to have multiple of them scheduled? May 20 09:23:13 What O.o May 20 09:30:42 sasos90: you mean notifications, not push notifications May 20 09:30:52 yes it's possible to schedule them more than once May 20 09:31:02 just use different id May 20 09:32:34 Also don't use alarmmanager plz. :- May 20 09:32:37 :/ May 20 09:32:52 why? I use it May 20 09:41:31 * gordon_ 's downloading N preview 3 May 20 09:44:48 anyone know the shortcut for highlight a specific word in a string? May 20 09:44:56 "extras_customize_widgets", highlight extras May 20 09:51:12 Are services usually restarted often? I'm showing more than one notification (yes, I know I should group them), I give them different ids (both to the notification and its PendingIntent), but they overwrite each other May 20 09:52:44 my app uses username(s) and password(s) to access web services. but i'm afraid that someone gets the apk from the playstore, unpacks it and searches for the credentials. are there best practices for this? May 20 09:53:14 obfuscate the code :P May 20 09:54:52 hi. i pass a list with an intent using a bundle. In the started activity i want to remove an element from the list and modifying the original list. how can i do this? Because now if i remove an element from the list, the original one still got it. May 20 09:55:32 LucaS05: putting to bundle will copy the list May 20 09:55:39 and editing that list will just edit the copy May 20 09:55:58 Ashiren: is it some kind of shallow copy? May 20 09:56:34 sorry, it isn't May 20 09:56:41 Odaym, yes but that would just make it harder, right? i could for example hide different parts of the password in different parts of the app, but would that be 'reasonably safe' or would somebody with bad intentions and some skill still only shrug their shoulders? May 20 09:57:00 if I unpack your apk and see the code, you're done May 20 09:57:07 obfuscation means the code will not be readable May 20 09:57:15 ok May 20 09:57:22 well yu put only serializable and parcelable to bundle so no May 20 09:57:31 no deep copy* May 20 09:57:39 Ashiren: how can i achieve that? Passing the list again to the original activity? May 20 09:57:57 could be May 20 09:58:15 i don't want to save anything...database or file May 20 09:59:12 so: currently, (while still in beta) we just have the username/password in config files. would a go-to solution be that we 'calculate' the password across multiple methods and then obfuscate the code? May 20 10:31:25 gordon_, because it messes up battery for users. May 20 10:32:08 if he wants to setup alarm clock, he needs to wait ? :D May 20 10:32:11 hi is there some method, broadcast to know when user add a new event in calendar ? May 20 10:33:55 gordon_, no. May 20 10:51:04 Mavrik: if he uses job scheduler, yes he might wait May 20 11:05:02 who wants to see mad skills on predicate usage in ios May 20 11:08:08 I know this is complicated question, but what do you think is best cross-platform framework for native apps (ios/android)? No matter the license/price May 20 11:09:05 simple app, not game May 20 11:09:33 vegetablesalad19: javascript + webview May 20 11:10:27 I do need a ton of native stuff, so I could only "webview" some 70% of my app May 20 11:10:38 at most May 20 11:11:06 I have native ios and android app and it is getting huge, I can no longer support both of them May 20 11:12:06 I could spend half a year rewriting it to some cross-platform solution, and win a ton of time in future May 20 11:12:57 I was thinking about moving most of it to web, but I still would have a lot of native stuff May 20 11:15:06 There are a ton of stuff out there, I have no idea where to start May 20 11:17:11 UI to webview, but internal logic in native May 20 11:18:42 vegetablesalad19: what you think? May 20 11:20:40 Not so simple May 20 11:20:55 UI is only half of my project May 20 11:21:16 So this could potentially do more harm than good May 20 11:21:53 if you have sql, you can code logic in sql. it supports advanced computational stuff May 20 11:22:59 local data can be saved to sql May 20 11:23:08 and parsed with sqlite May 20 11:23:30 both apps will share same sql code May 20 11:23:32 Hi all, does somebody know a xcode plugin to auto select all targets when adding a new file to a project? May 20 11:24:08 squ sorry, this sounds absolutely crazy :) May 20 11:24:29 :) May 20 11:24:45 you must be trolling :D May 20 11:24:53 vegetablesalad19, Xamarin is pretty much one steap ahead of everything. May 20 11:25:02 React-native is still a broken shitfest May 20 11:25:07 And rest of it is just sad. May 20 11:25:23 damn, I was hoping on react-native May 20 11:25:42 Well noone is stopping you from using it :) May 20 11:27:39 Mavrik, I'm not very excited about C#. In general I don't like to touch Microsoft stuff with a 10 feet stick May 20 11:27:51 but they have been doing some interesting stuff lately May 20 11:27:56 Well. May 20 11:29:19 Mavrik, you have experience with react-native ? May 20 11:32:14 damn it, now I see I've asked my question in the wrong room :) May 20 11:33:10 Hi. Android SDK Manager doesn’t list “Sources for Android SDK” for the release “Android N (API 23, N preview)”. Where can I get those? Ran into a problem requiring me to step into Android sources but can’t install them in Android Studio for N. May 20 11:33:17 It seems that every solution has downsides, how strange and unexpected :) May 20 11:34:20 I guess that I have to add another add-on site to the SDK Manager? May 20 11:35:35 vegetablesalad19: http://i1352.photobucket.com/albums/q647/squmie/sql_zps7db8b1a0.png~original May 20 11:36:48 http://i1352.photobucket.com/albums/q647/squmie/sql_zps7db8b1a0.png May 20 11:39:25 sqlite has ‘case’ and ‘then’, etc May 20 11:42:49 I know sql can do a lot, been using it for 10+ years May 20 11:43:15 But I would kill myself if I was forced to maintain this kind of code May 20 11:59:19 we had a class on sql May 20 12:00:35 this example was with help of freenode guys May 20 12:01:25 it is much easier than android ui, because no simulator need to be run or tested on various devices May 20 12:02:22 although some people think that math sciences will help them in programming May 20 12:02:43 Is this some kind of joke? May 20 12:03:26 no, we had one guy this morning raging about his 2 academic degrees May 20 12:04:25 Hi. How to set duration for shared element activity transition? May 20 12:04:35 app market, hard to live on? May 20 12:04:43 hard to get food on the table? May 20 12:04:49 got autism, can't really work, need to do something from home May 20 12:04:56 is it a paying job? May 20 12:05:44 9:30:52 AM - Ping_2_Ur_Pong: the entire basis of programming is based upon math and logic. May 20 12:06:17 Mavrik: I guess such people won't be able to debug/maintain SQL. How do you think? May 20 12:20:06 Anyone? May 20 12:20:46 Sources for N are released when the version is released May 20 12:21:11 Hello everybody May 20 12:22:17 either adb/usb throughput tripled in NP3, or I'm confusing devices May 20 12:22:26 SimonVT: damned. Thanks. May 20 12:22:44 Can someone help me please? I have this: May 20 12:23:41 and i want to set width and height from java code of the activity May 20 12:24:53 i have tryed with vpPager.setX, but don't work. I have tryed with LayoutParams too, but it disapear May 20 12:29:01 ok I have sucessfully installed android studio on ubuntu but I am getting this error. : IllegalArgumentException: button doesn't exist 0 May 20 12:29:05 any idea? May 20 12:41:43 codfection do you have java installed? May 20 12:43:53 DaZeK, openjdk 8 installed May 20 12:43:58 ubuntu 16.04 May 20 12:44:19 javac 1.8.0_91 May 20 12:44:32 try with another version May 20 12:44:57 like? May 20 12:44:59 i use 2.1 and works May 20 12:45:13 yea android is latest for linux May 20 12:45:19 maybe you need some libs May 20 12:45:23 just downloaded from android studio website May 20 12:45:37 because you have a new version of ubuntu May 20 12:45:54 in 14.4 works May 20 12:46:03 you using in 14.04? May 20 12:46:05 open it from terminal May 20 12:46:09 yes May 20 12:46:16 openjdk 8? May 20 12:46:19 works in ubuntu 14 and debian 8 for me May 20 12:46:20 no May 20 12:46:24 official jdk May 20 12:46:31 8 May 20 12:46:33 oracle you mean May 20 12:46:36 yes May 20 12:47:13 you installed android studio from their official website right>? May 20 12:47:17 or ppa May 20 12:47:17 yes May 20 12:47:20 official May 20 12:47:26 alright May 20 12:47:27 ppa no updated i think May 20 12:48:08 DaZeK, why u didnt update to 16.04 from 14.04? May 20 12:48:20 i don't know May 20 12:48:23 nostalgia May 20 12:48:29 i dont like the cnages May 20 12:48:47 16 its stable? May 20 12:49:00 minor bugs but fixed May 20 12:49:50 if you like linux May 20 12:49:58 i think the best coice is debian May 20 12:50:08 for me works better May 20 12:50:23 Mavrik, I think he was just trolling May 20 12:50:43 you can get another distro May 20 12:50:45 yea but I am new to linux. May 20 12:50:59 thats why was directed towards user friendly ubuntu May 20 12:51:00 hehe May 20 12:51:01 for that May 20 12:51:05 debian is like ubuntu May 20 12:51:19 more or less May 20 12:51:36 ubuntu is debian-based distro May 20 12:51:46 then why u prefer debian oover ubuntu May 20 12:51:47 ubuntu for me is very slow May 20 12:51:56 if both r almost same' May 20 12:52:00 oh ok May 20 12:52:02 i have a shit cmputer May 20 12:52:12 and with debian too much slow May 20 12:52:23 debian its easy to install May 20 12:52:27 Ubuntu is good for first time users, but I advice to go somewhere else fast May 20 12:52:47 yes but im newbie in linux May 20 12:52:54 and with debian i can do everything May 20 12:53:09 then get debian with some light desktop, Openbox is my favorite May 20 12:53:24 it will be blazing fast May 20 12:53:26 i like LXDE May 20 12:53:34 light and fast desktop May 20 12:53:55 if you have a good PC May 20 12:53:57 KDE May 20 12:54:07 vegetablesalad19, what you prefer May 20 12:54:19 I tried installing arch and had nothing but troubles hehe May 20 12:54:27 is for me the best, but the last version is hard to use May 20 12:54:45 i have tried to install arch too May 20 12:54:52 but always problems with everything May 20 12:54:53 hha May 20 12:54:54 haha May 20 12:55:15 I use openbox on all my desktops May 20 12:55:25 its really minimalistic May 20 12:55:28 i don't know openbox May 20 12:55:32 and I love tiling desktops May 20 12:55:37 it is a desktop? May 20 12:55:42 or window manager? May 20 12:56:01 window manager May 20 12:56:19 is good for slow pcs May 20 12:56:33 yes May 20 12:56:34 but lxde has desktop interface May 20 12:56:38 and is light May 20 12:56:48 and fast May 20 12:57:10 and i think it use openbox May 20 12:58:11 whats the best email app in linux May 20 12:58:24 I switched from windows to linux and already missing alot of things May 20 12:59:10 DaZeK I think you are right May 20 13:00:00 do you mean app like thunderbird? May 20 13:00:11 codfection: who use an email app nowadays ? Just use your email provider website May 20 13:00:18 My goto distro used to be crunchbang, now split into BunsenLabs and crunchbangplusplus May 20 13:02:09 but anything with debian will be good for beginner, so many options thou May 20 13:06:54 Anyone has experience with PhoneGap/cordova ? May 20 13:07:21 i built apps with phonegap May 20 13:07:56 And what you think about it? May 20 13:08:18 Could you convince me not to use it? So far it sound good May 20 13:08:35 the apps were a bit slower May 20 13:08:38 but it was great May 20 13:08:50 someone know how can I modify a value dimensions from the code of the activity please? May 20 13:09:06 I think that will be the case with every webview framework May 20 13:09:27 ivali, did you publish on ios and android ? May 20 13:10:45 And how did native stuff work? Notifications, camera, services etc May 20 13:15:01 someone know how can I modify a value dimensions from the code of the activity please? May 20 13:18:02 I'm using this method: http://pastebin.com/P9H469u2 to take a screenshot and save it as a File, but how can I make it overwrite an already existing file with the same name? Right now, everytime the user takes a screenshot it saves as a new image, which is annoying. May 20 13:18:13 DaZeK, view dimensions ? May 20 13:19:11 Bernzel_, check if file exists May 20 13:19:17 i have a ViewPager inside a PagerContainer, and i want edit ViewPager sizes in runtime May 20 13:19:23 imageFile.fileExists() or something like that May 20 13:19:40 if it exists then delete it May 20 13:20:41 like this :file.exists() and then file.delete() May 20 13:21:37 DaZeK, you have to do it after all the measurements are done May 20 13:21:56 vegetablesalad19 : thanks, so something like this? http://pastebin.com/SFCJ2uak although I get a warning on the .delete() call for being "ignored" ? May 20 13:22:11 DaZeK, google for ongloballayoutlistener May 20 13:22:22 * viewtreeobserver.ongloballayoutlistener May 20 13:22:23 ok thank you May 20 13:22:32 oh delete returns a boolean May 20 13:22:37 so I should check against that then May 20 13:23:34 Bernzel_, i think it returns if successful, hmm perhaps you could do without the check if it exists - if it doesn't throw exception May 20 13:24:46 vegetablesalad19: with my logic I would say this should work: http://pastebin.com/LKC9rjai so first, if the file exists it deletes and returns true so the code for creating the file runs, if it doesn't exists it will go straight to creating it. Looks correct? May 20 13:24:56 DaZeK, I'll save you some time - http://pastebin.com/6z5n8S2S May 20 13:25:06 this is what I use May 20 13:25:45 i don't understand May 20 13:25:55 how can i change the dimensions with that? May 20 13:26:07 Bernzel_, kinda, it will work but this is not good code May 20 13:26:42 DaZeK, you can change width or hight after this event May 20 13:26:49 mmm May 20 13:26:50 or get the current one May 20 13:26:50 ok May 20 13:27:00 i can get it May 20 13:27:05 but i can't change it now May 20 13:27:11 i go to try it thank you May 20 13:27:20 it wont give you correct dimensions on onCreate, because there are none May 20 13:27:20 vegetablesalad19: please elaborate if you got time. What's wrong with it? May 20 13:28:23 you can do with just one line May 20 13:28:24 imageFile.delete() May 20 13:28:39 if file exists it will be deleted, if not then nothing happens May 20 13:28:46 ah okey. Good point May 20 13:28:50 then continue with creating file May 20 13:29:22 no need for IF's here May 20 13:30:13 mmm I'm stupid May 20 13:30:14 haha May 20 13:30:27 but i can't change it May 20 13:30:31 i don't know how May 20 13:30:35 so if(file.delete()){//create file}else{//create file} or just run file.delete(); and proceed with creating the file straight afterwards, no IF's at all? May 20 13:31:37 Bernzel_, just one line nothing else :) May 20 13:31:42 Ok thanks! :) May 20 13:33:02 Bernzel_, remove line 15, 17, 25 from your original post May 20 13:33:07 and it should work May 20 13:33:40 DaZeK, what exactly you want to change? A View ? May 20 13:33:47 no May 20 13:34:16 the size of the pages of ViewPager in runtime May 20 13:34:54 Size of ViewPager or Views in ViewPager May 20 13:35:29 btw they all are View's May 20 13:36:02 java.lang.Object May 20 13:36:02 ↳ android.view.View May 20 13:36:02 ↳ android.view.ViewGroup May 20 13:36:02 pages of view pagers May 20 13:36:19 But these pages are Views, right ? May 20 13:36:22 no May 20 13:36:29 are fragments May 20 13:36:44 but if i change the size of the fragment May 20 13:36:48 dont work May 20 13:37:59 yes, but you want to change Fragments View May 20 13:38:28 i cant change the size of pages here: in the XML file of the activity May 20 13:39:27 it is just the container for pages May 20 13:40:07 you need to get LayoutParams of the thing you want to change May 20 13:40:14 and then reapply them May 20 13:40:59 yes but i cant change it May 20 13:41:02 in layoutparams May 20 13:41:52 layoutparams of ViewPager don't has options to set May 20 13:42:23 https://goo.gl/opPgBa May 20 13:42:31 check out some of these May 20 13:42:45 ok thank you May 20 13:43:05 Well it depends on what kind of layoutparams it has May 20 13:43:18 ok sorry, I have to run now May 20 13:43:20 good luck May 20 13:44:21 anyone know an alternative to thread safe date formatting/parsing besides joda time? May 20 13:46:37 dsardari: just use SimpleDateFormat May 20 13:49:07 it's not thread safe though. May 20 13:50:05 dsardari: took me all of 1 minute to write May 20 13:50:05 https://gist.github.com/slightfoot/5292f532f28667cd1642b7ecd6aa0a07 May 20 13:50:07 :P May 20 13:50:12 then create multiple. May 20 13:51:36 vegetablesalad19: you don't happen to know a lot about Picasso ? :) Got something that's really getting to me with that library May 20 13:51:39 yeah, was trying to forego using ThreadLocal May 20 13:58:20 pfn? May 20 14:00:24 So are you guys going to use the new layout editor instead of writing everything? May 20 14:03:03 Hey guys! I cant find any info on how to handle subscription auto renewal (with the google play billing) May 20 14:03:57 should i query somewhere to check if the reoccurring payment was made or i will receive some kind of a broadcast? May 20 14:04:13 can you tell me where to find a busybox with fsck.ext4 and fsck.exfat ? May 20 14:04:23 Very strange but i didnt find any info about this in docs May 20 14:06:46 usually there are some best practices and code exmaples, but not in this case. May 20 14:07:01 Should developers guess what to do here and invent a bicicle? May 20 14:17:08 doublehp, try #android-root or the xda forums; this channel is app-dev centric so not the most useful for rooted device questions unfortunately May 20 14:35:55 Guys I'm looking at some tutorials. One is using Android.resources.Layout.SimpleListItemChecked and the other one android.R.layout.whatever. What's going on? May 20 14:37:17 huh May 20 14:39:06 I wanted to change my simple_list_item_1 to a SimpleListItemSingleChoice. Cant I just change that where I create my adapter? May 20 14:40:21 those android.R.... are default provided by android May 20 14:40:29 feel free to make your owns and use them May 20 14:41:01 Aw shit I'm on xamarin.developer.com. Should've looked that up. Thanks! May 20 14:41:19 Yeha does anyone have a good guide to making fancy listviews? May 20 14:41:43 oh xamarin, shouldve told that at beginning May 20 14:42:06 does xamarin do recyclerviews May 20 14:42:37 read the docs, no xamarin here May 20 14:43:03 listview is passe, use recyclerview May 20 14:44:05 Why recyclerview? May 20 14:44:39 recyclerview is the 'new hotness' for list views. it forces some better abstractions. you can still use either. May 20 14:44:48 its newer, can do more than listview and/or gridview May 20 14:44:57 Which one is easier? May 20 14:45:02 althought learning curve might be a little higher May 20 14:45:13 Haha I'll look into it May 20 14:45:14 you can still use listview May 20 14:46:06 somebody knows how can I resize ViewPager in runtime please? May 20 14:48:56 Anyone know if I can use a OnEditorActionListener on an EditText view to manipulate the string input so that every 4'th character is then separated by a "-" , I used substringing to achieve it AFTER the text had been written, but I would like it to transform in the same fashion during input May 20 14:53:02 textwatcher May 20 14:53:11 textwatcher you say May 20 14:56:16 I rarely want to physically stab someone. May 20 14:56:19 But people like this... https://www.reddit.com/r/androiddev/comments/4k7x91/its_nice_that_the_job_scheduler_api_allows_us_to/ May 20 14:56:39 pfn so I could use addTextChangedListener and create a new TextWatcher on that I assume? May 20 14:58:48 Actually TextWatcher isn't the best way to do that. May 20 14:58:55 InputFilter is meant for that and works better. May 20 14:59:24 You set an InputFilter on the EdtiText and inside the InputFilter you either return "null" if no change is necessary or the new string if anything changed. May 20 15:06:38 and Mavrik is right about input filter May 20 15:09:17 pfn: could you please just check this: http://pastebin.com/QVWtfsyX I've seem to have gone wrong somewhere, I logged inside the if() and when I reach the forth character it should append a "-" character but it doesn't. May 20 15:09:47 "Android Layouts: A new World" is this basically about ConstraintLayout ? May 20 15:41:16 hmm, migrated a fairly large application from Eclipse to Android Studio, still using Ant, trying to find where the version information resides in an Eclipse/Ant project or if the conversation that took place when bringing it into Android Studio might have repackaged where the version number resides. Right now my application is in a loop of asking my server app what version is latest, and it is running latest, but is reporting May 20 15:41:17 older May 20 15:43:16 has anyone tried the Linux Studio 2.2 client? May 20 15:43:39 seems like there may be an issue w/ the bash script they bundled with it May 20 15:43:48 (the launcher) May 20 15:44:37 hi guys May 20 15:45:14 interesting, so according to this article google ditched ARC to run android apps on ChromeOS May 20 15:45:21 now they run in some kind of container May 20 15:46:21 this new instant app thing seems completely unneccesary May 20 15:46:48 g1bbs yeah, they could just move everything to mobile web apps :P May 20 15:47:01 Does the Android emulator still boot slower than the iOS one? May 20 15:47:05 taking longer than i thought :D May 20 15:47:10 like, if I am going to an ecommerce thing say - I really don't want to load the whole app May 20 15:47:17 can I disable the landscape editor thing? May 20 15:48:06 rubenwardy: really depends on your machine. I get really fast boot times May 20 15:49:22 I use a laptop with i5@2.8GHz and 8GB of RAM May 20 15:50:51 The android emulator is probably always going to be slower than the iOS simulator. Being an emulator and all May 20 15:51:28 mine runs about the same May 20 15:52:07 rubenwardy: FWIW I'm on i7 with 16GB RAM May 20 15:53:33 the iOS emulator “cheats” by compiling special x86 builds May 20 15:53:56 Simulator May 20 15:54:16 the Simulator isn't the best way to test an application either May 20 15:54:30 I've had issues with code that ran fine on Simulator then crashed on iPhone May 20 15:56:26 azv4 does the iOS sim have BLE support ? May 20 15:56:56 was hoping they were going to add that to the new android emus; it was mentioned years ago but they are taking their sweet ass time May 20 15:57:05 g00s, yes it does May 20 15:57:48 azv4 Swift is really moving along, reading about 3.0 plans ... May 20 15:57:50 you have to get a BLE dongle though, the built in BT in most if not all Macs wont work with the Simulator May 20 15:58:10 g00s, painful topic for me, I'm still stuck in Objective-C land forevers most likely May 20 15:58:44 yikes May 20 15:58:45 I really wish it was easier to share code between iOS and Android, natively May 20 15:59:09 ~~~ todays first I/O sessions start now ~~~ May 20 15:59:13 oo May 20 15:59:22 rubenwardy, I know, if I port to Swift I might as well port to Xamarin, but I am not sure of the adoption rate of Xamarin and I'm afraid I will get in the middle of something that will have the rug pulled from under me May 20 15:59:41 g00s: oo it's Yigit doing the same talk he's been doing at every other conf :) May 20 15:59:45 xamarin insn't going anywhere May 20 15:59:47 rubenwardy i bet lots of people would like to see Swift on android May 20 15:59:48 isn't* May 20 16:00:06 * ChrisWarrick would not trust Xamarin and any of those weird bridge things May 20 16:00:08 g1bbs OK good to know, i guess i'll watch the constraintLayout talk then May 20 16:00:42 g00s: It's a _good_ talk but only worth watching once May 20 16:00:42 ChrisWarrick i'm not a fan of it either personally, but i don't think it'll disappear or anything May 20 16:00:50 I'd like to be able to share models and some (non-view) controllers, and then only have to write slightly different view controllers and views for each platform May 20 16:00:58 g1bbs Yigits talk is more like a prescription of hos things should ideally work with no architectural guidance haha May 20 16:01:04 It doesn't have to be entirely the same code May 20 16:01:16 I have a TextWatcher set to a EditText , but it's input type is "numbers" so appending a "-" char isn't working, anyone know a workaround for this? It works for my other EditText fields that takes the regular input May 20 16:02:11 g00s: I actually use his PriorityQueue he wrote for Path. I've really enjoyed working with it May 20 16:02:27 g1bbs yeah sounds neat, but he kinda abandoned it - or at least he doesn't use it May 20 16:03:53 lol watching this Android Layouts session, its almost like they admit the layout system sucks haha May 20 16:03:57 (the existing one) May 20 16:04:05 CL seems like the second coming or something May 20 16:04:09 g00s: he just rewrote the whole thing - he talks about it quite a bit May 20 16:04:32 g1bbs yeah, but somewhere he said that he doesn't actually use it any more May 20 16:04:44 because he's not writing apps May 20 16:05:27 g00s: yeah his role @ Google is very different than Path May 20 16:05:42 g00s: honestly I see it as better than anything other than rxjava May 20 16:06:07 can I disable the landscape text editor? May 20 16:06:15 g00s: and even then it's more centralized. I feel like you can make really clean network stacks with it May 20 16:06:20 g1bbs any news on when it will be 2.0 stable ? May 20 16:07:03 g00s: he already reccomends moving to it but I have not yet May 20 16:07:18 2.2 May 20 16:08:06 what channel is layout presentation on? May 20 16:08:58 Ping_2_Ur_Pong: https://events.google.com/io2016/ could just get the named channel in chrome May 20 16:09:07 the sdk manager still can't resume a download? May 20 16:10:38 track 2 if anyone is curious May 20 16:10:46 https://www.youtube.com/watch?v=qde9DRS_TfY May 20 16:11:29 I really hope that UI builder ends up being as sexy as it looks May 20 16:11:56 don't love the gross XML it generates but if it is good enough I guess I don't care May 20 16:12:18 * kbs wishes UI designers were more involved with layout managers... May 20 16:13:03 does that only work with constraint layout? May 20 16:17:29 So is the App Architecture session the same one from the Android Dev Summit? May 20 16:19:26 s73v3r: very similar ya May 20 16:19:41 s73v3r: still watching tho cause I really like this guy's style of presenting ha May 20 16:19:52 i figured. May 20 16:19:57 Constraint layout is pretty cool (but I continue to wonder how often constraints end up being the best language to approach layout design.) May 20 16:20:06 i’m watching the layout talk, cause I needed to learn more about layouts May 20 16:20:22 * Ping_2_Ur_Pong hates magic, constraint layout seems way too magical May 20 16:20:34 CL sounds really neat for making layouts that have to vary widely from small to ... haha desktop May 20 16:20:50 chromebook May 20 16:20:59 it’s not magic, it’s just solving systems of equations May 20 16:21:03 hoping they do dev summit again.... I put all my eggs in that basket May 20 16:21:15 The thing though, is that isn't the way designers typically approach layouts across variable sizes May 20 16:21:34 I think constraints would be great for things that normally are done with Relative Layouts or Linear Layouts May 20 16:22:13 of course with constraint solver, depends on what the performance is ... May 20 16:22:22 Hello May 20 16:22:23 would you use this for a listview item ? May 20 16:23:03 aren’t they solved as you create the layout? Like it’s not going to be solving those equations on the device May 20 16:23:16 positioning a listview with constraint layout? or replacing one with stacks of views? May 20 16:23:23 I’ll have to ask some of my iOS collegues how autolayout works May 20 16:23:35 using a constraint layout for the cells in a listview May 20 16:23:43 ah May 20 16:23:44 i would think the CL has to evaluate constraints at runtime May 20 16:24:08 Can I implement OnPreferenceChangeListener on other activities, when the PreferenceActivity changes in something, does it activates? May 20 16:24:08 you just declare them in XML or by GUI builder May 20 16:24:34 I think I'll reask my question May 20 16:24:51 that’s true May 20 16:24:57 Can I implement OnPreferenceChangeListener on other activities (Not PreferenceActivity)? May 20 16:25:20 JakeWharton: Hopefully quick question: Is there a way to get the Exif data from an image Picasso downloads yet? Or even just access to the Response received in Picasso? May 20 16:25:26 whatup whatup all May 20 16:25:30 Ranguro: you won't be able to use the @Override annotation on it May 20 16:25:40 Ranguro: and it also won't do anything useful May 20 16:25:51 I've read a few things where you discussed it between 1-2 years ago. Just wondering if there's progres.s May 20 16:25:55 progress* May 20 16:26:00 What can I do then to notify the other activities that the preference just changed? May 20 16:26:20 i don’t care how big the lib is in size. How many methods is it! May 20 16:26:57 wyoung May 20 16:27:35 How would the Preferences change without being on the Preferences Activity? May 20 16:27:54 Ranguro: You would need to implement that yourself May 20 16:28:13 Ranguro: have a static Preference that all of your activities reference or someting like that May 20 16:28:21 https://developer.android.com/reference/android/content/SharedPreferences.html#registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener) May 20 16:28:23 of course I would abstract that May 20 16:30:08 CL seems really sophisticated ... May 20 16:30:18 they better document this thing better than GridLayout May 20 16:31:43 yeah, his argument on hierarchy and animation seems right May 20 16:31:47 Sorry, I had to reset the website. May 20 16:31:50 so it sounds like the CL should also help in flattening view hierarchies May 20 16:31:52 where CoordinatorLayout is kinda PITA May 20 16:32:24 What happens to me by the moment is that when I go from an Activity and change the preferences, when I return back, the content doesn't change accordingly. May 20 16:32:39 Is it because I should do an @OnPause? May 20 16:32:59 i think in onResume, you should query the Preferences May 20 16:33:17 Hit @onResume and then update my content according to the preferences May 20 16:33:31 onResume should be called when you come back May 20 16:33:46 and another one where they just cut off the Q&A May 20 16:33:50 gah May 20 16:34:14 idaf about firebase May 20 16:34:19 idgaf May 20 16:34:31 you will May 20 16:34:33 w4ffles_ ha, yeah wanted to hear the answer May 20 16:35:02 “It was in that moment that w4ffles_ had won the war against himself. He loved Big Firebase.” May 20 16:36:37 What do you guys normally do to notify another activity that is not a preference, that the preferences just changed and they should update the content? May 20 16:36:48 Do you validate this everytime in the OnCreateView and OnResume? May 20 16:37:52 i guess, if it was something like that May 20 16:41:13 I thought there was a way to ask something like.. May 20 16:41:29 If(PreferencesChanged) { doThis();} May 20 16:41:43 where would PreferencesChanged be set? May 20 16:42:21 in the listener May 20 16:42:50 the listener doesn’t get fired unless you’re in a PreferencesActivity, though May 20 16:43:27 hi I was wondering if someone could tell me what the MV-VC pattern is May 20 16:43:39 like just a brief description May 20 16:43:57 s73v3r, I know but it could be fired in the PreferenceActivity May 20 16:43:57 by MV-VC I mean model-view-view controller May 20 16:44:08 that’s not a thing, i don’t think May 20 16:44:26 Ranguro_: How would the PreferenceActivity know about it? May 20 16:44:37 and how could you guarantee that it wouldn’t be garbage collected? May 20 16:44:54 That's the thing. It could be garbage collected. May 20 16:45:06 But I thought this was something very common May 20 16:45:26 nope May 20 16:45:27 I don't want to be doing the extra loops everytime I go to the PreferenceActivity and then hit the OnResume cycle May 20 16:45:50 even when the preferences didn't changed May 20 16:46:22 you could try doing startActivityForResult instead, and in the PreferenceActivity check out whether you’ve changed something or not May 20 16:46:28 and return true or false May 20 16:46:33 MVVMCM 2.0 May 20 16:46:49 That sound better s73v3r May 20 16:46:51 new concept i invented which involved a conditional model May 20 16:47:29 I could return true if the preferences changed or false if they didn't May 20 16:47:30 harsukh: this is all I could find about it. Which you could have found as well: http://forums.asp.net/t/1552990.aspx?MVVC+pattern May 20 16:48:13 thanks s73v3r May 20 16:48:57 dear android devs May 20 16:49:08 and dellow felegates {props if you got that} May 20 16:49:21 im positive putting our collective minds to something, we can profit and shit May 20 16:49:31 actually to think of it fuck telling you guys my idea )) May 20 16:49:37 ima do it myself %) May 20 16:49:44 have fun May 20 16:49:45 nah im fucking with ya May 20 16:49:52 is there a way to use the phone as a proxy? May 20 16:49:57 i need to get in touch with a chikcy chick May 20 16:50:00 This isn't twitter, you can use full sentences May 20 16:50:16 proxydroid May 20 16:50:18 it's a wall of text if you write everything in 1 sentence, and harder to read May 20 16:50:20 Phone as proxy: http://dial-a-grue.com/gory/wp-content/uploads/2011/03/IMG_1093.jpg May 20 16:50:27 not a data proxy May 20 16:50:29 you could use ssh for that May 20 16:50:33 im talking GSM proxy May 20 16:50:48 huh May 20 16:50:51 ye May 20 16:50:56 g00gle's silent May 20 16:51:00 that sounds awfully sketchy May 20 16:51:09 i agree May 20 16:51:10 %) May 20 16:51:31 so anybody heard of that? May 20 16:51:44 no. sounds like it’d be mainly used for harassment May 20 16:52:07 yeah plus there's skype, so there we go May 20 16:52:08 %) May 20 16:52:20 what is %) are you struggling to type ? May 20 16:52:27 instead of :) May 20 16:52:31 are you struggling to think? May 20 16:52:36 gman23: old school May 20 16:52:41 but that doesn’t make any sense May 20 16:52:50 %) - eyes nose, and mouth May 20 16:53:21 % -> eyes and nose ) -> mouth. clear enough for you you fucking retard May 20 16:53:47 doesn’t really look like it. but keep it classy May 20 16:54:01 thx %) May 20 16:54:06 %^O May 20 16:55:08 %) May 20 16:55:20 (% May 20 16:55:20 don’t you start now May 20 16:55:27 lol May 20 16:55:45 rofl May 20 16:57:55 Firebase hot sauce! May 20 16:58:14 I like being reminded that someone is smiling May 20 16:58:39 s73v3r last night i tried updating from GMS 8.x to 9.0 May 20 16:58:55 but even though i was using standalone GA it crashed on startup, firebase could not init May 20 16:59:04 last night I drank myself into a stupor. I’m guessing I had the more productive night May 20 16:59:16 so i'm still a bit confused about whats whats May 20 16:59:23 s73v3r you did :D May 20 17:03:35 one i/o session i would have like to see is , trends in material design & UI nabigation May 20 17:03:53 seems like google is experimenting with things, bottom nav, etc ... would like to see what they are thinking about May 20 17:04:07 it's time to tango May 20 17:04:18 i guess beside this constrainLayout, i'd like to see sessions where they talked about stuff NOT on d.android.com already May 20 17:05:06 the overview of the support lib - we all knew that stuff except the last 1:30 seconds when they talked about what is coming May 20 17:05:22 knew all of it if you read the release notes / medium posts / etc May 20 17:06:54 * g00s wonders how they pick session topics May 20 17:07:34 lol would be funny if AS sent them enough analytics they knew what we were all struggling with May 20 17:07:40 i'm so tired of this cat stuff May 20 17:07:51 it's not even funny anymore May 20 17:08:01 waits_ heh, i think its an ongoing joke ... May 20 17:08:14 w4ffles_ sorry May 20 17:08:20 me too May 20 17:08:21 probably from that steve yegge presentation May 20 17:08:39 'steve , would you like to work on this. ok, but its cat stuff' May 20 17:08:52 it just bothers me because I just don't like them, would it be so hard to throw in a dog? May 20 17:10:11 w4ffles_ or some crocodiles ! http://i.imgur.com/0IyWjeR.jpg May 20 17:10:30 that's awesome May 20 17:11:19 s73v3r OnResume didn't work because this functionality is used during OnQueryResult May 20 17:11:31 Which means that when I start the activity on the first time, the app crashes May 20 17:12:01 Because the query wasn't returned yet May 20 17:18:15 Tango’s API is C++? May 20 17:18:26 so realm doesnt support lists or arrays. wtf. May 20 17:20:19 I'm writing an app which pulls and renders data from a webserver. It also needs to push data to the webserver. How do I stop polling the server every second twice? May 20 17:21:13 you should really describe your use case cuz ur question doesnt make sene May 20 17:21:20 sense* May 20 17:21:48 orbyt_: I've some data that needs to be rendered in real time from a webserver - the variables keep changing every second. May 20 17:22:00 codepythin777: You don’t poll the server. You use GCM (or Firebase Cloud Messaging now, I guess) to have your server tell you when things change May 20 17:22:57 s73v3r: Neither my cell phone, nor my webserver are connected to the web. This is a intra net deployment. Webserver = ubuntu May 20 17:23:16 then use a websocket May 20 17:23:46 s73v3r: so android's websocket will talk to nginx websocket? May 20 17:23:55 it’s a websocket May 20 17:29:36 websocket its standard May 20 17:32:46 does anyone know what flags to set to clear the previous activity but not the entire stack? May 20 17:34:14 so many random ART crashes on N Preview 3 .. :/ May 20 17:36:11 so its time to release May 20 17:38:00 oh lenovo tango smartphones in the summer May 20 17:38:09 Chainfire have you heard anything about paid updates in Play store ? May 20 17:38:45 g00s nope? May 20 17:38:55 but I haven't been paying attention at all, tbh May 20 17:39:24 hm ok - yeah i haven't been paying too much attention either, but seems like a basic thing that should be there by now May 20 17:39:24 I've skimmed this years soon-to-be-abandoned projects at best May 20 17:39:49 when they showed us Allo, i thought - this is peak google, downhill from here May 20 17:39:51 myeah *should* May 20 17:40:26 since when has the Play team ever bothered solving issues rather than creating new features ? May 20 17:40:42 oh yeah yet another messenger May 20 17:40:50 don't even get me started May 20 17:40:57 I'm switching to iOS May 20 17:41:08 I’m pretty sure if there was something about paid updates, r/android would be all up in arms May 20 17:41:55 s73v3r hah, i dunno. do they want devs to eat ? can't make their stuff if we can't eat :P May 20 17:42:09 no, they very clearly don't May 20 17:42:13 lol May 20 17:42:42 well then, they can have their year old abandoned thingy with ads May 20 17:43:07 they’ll bitch about “lazy devs” and then use that as justification to install an ad blocker May 20 17:43:11 couldn't you make that yourself though ? May 20 17:43:25 make what? May 20 17:43:57 keep track of Google ID, use consumable May 20 17:44:13 ... iaps, deny access May 20 17:44:18 s73v3r there is a spectrum for sure, i think Adobe got lazy one they started subscription model May 20 17:44:30 it's an accident waiting to happen, of course, but it could be done May 20 17:44:37 if they charged $80 year for each update, they would actually have to work for it to earn it May 20 17:44:55 Chainfire yeah, the millions of ways one could get booted from play :D May 20 17:45:10 million + 1 now May 20 17:45:17 too many corner cases. plus, I haven’t seen a good way to do what one would really want from a paid update model, which is the ability to give upgrade discounts May 20 17:45:18 I can invent more May 20 17:46:50 seeing as we still can't convert the free+paid APKs situation to a free+IAP situation and that was promised years ago, I wouldn't hold my breath for this to happen either May 20 17:47:18 on the other hand, soon they will have ignored it long enough that it will no longer be an issue May 20 17:47:23 Chainfire so you learning swift over there ? :P May 20 17:47:30 they still can't move some apps between accounts either May 20 17:47:42 Chainfire really? i never heard that May 20 17:48:12 I have a custum absolutlayout that displays views in a circle, but it is oriented towards the top of the screen so only the bottom half of the views are visible. I am trying to animate the circle to do a 360 but the views the aren't onscreen from the start they arent rendered or visible when they come into screen through the animation May 20 17:48:15 nevertheless, it is the case May 20 17:48:15 any help? May 20 17:48:18 any idea why wifiManager.enableNetwork(netId, false) could block my entire application? May 20 17:51:29 DadFoundMy: as you’re rotating, you could make sure that each view is marked as Visible? May 20 17:57:02 s73v3r: The upper half of the view isn't marked setVisible(GONE), i guess android just doesn't render off screen views, and I need them to render May 20 17:57:55 have you turned on Show Layout Bounds in Developer options? If so, does it show the view being there, just not rendered? May 20 17:58:10 it’s possible the view is rendered, just with a width and height of 0 May 20 17:59:51 How are half the view moved off screen? May 20 18:00:14 Are they laid out there, or translated? May 20 18:00:56 I’m torn between the RecyclerView talk, and the Dan Lyons/Chris DiBona talk May 20 18:00:59 Hello all. May 20 18:01:40 I need to spin an ImageView around its centre. May 20 18:01:48 So I've used code similar to; May 20 18:01:50 ImageView view = ... //Initialize ImageView via FindViewById or programatically RotateAnimation anim = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); //Setup anim with desired properties anim.setInterpolator(new LinearInterpolator()); anim.setRepeatCount(Animation.INFINITE); //Repeat animation indefinitely anim.setDuration(700); //Put desired duration per anim cycle here May 20 18:02:16 As advised at https://stackoverflow.com/questions/2032304/android-imageview-animation, https://stackoverflow.com/questions/1634252/how-to-make-a-smooth-image-rotation-in-android and https://stackoverflow.com/questions/3137490/how-to-spin-an-android-icon-on-its-center-point, to name a few. May 20 18:02:53 But I handle the orientation changes of the activity containing my ImageView, myself. May 20 18:03:11 As a result I get incorrect behaviour after I change the orientation. May 20 18:03:46 My ImageView starts spinning not around its centre but rather around an external to the ImageView point. May 20 18:04:13 As a result my ImageView makes large circles. May 20 18:04:26 Does anyone have an idea about this problem? May 20 18:05:12 try new RotateAnimation(0f, 360f, imageView.getX() + imageView.getWidth()/2, imageView.getY() + imageView.getHeight/2) May 20 18:07:42 Oh, okay, wifiManager.addNetwork(wifiConfig) is returning -1. Good luck figuring out why! May 20 18:09:13 SimonVT: Since it' May 20 18:09:25 Try using an ObjectAnimator instead, and animate View#setRotation May 20 18:09:29 autrilla, did you quote your ssid? May 20 18:09:47 SimonVT: Since it's a AbsoluteLayout I set the cordinates manually that happen to be off the screen May 20 18:09:56 dragorn: yes May 20 18:10:26 ddobrev: I'm actually doing basiclly that same thing right now heres my basic code https://gist.github.com/DylanRedfield/ec34e40f7a7f9c363b498f87b34c170f May 20 18:10:42 DadFoundMy: Try having everything on screen then moving it off with translationY.. Also, ew, AbsoluteLayout May 20 18:10:44 autrilla, usually there's useful text barfed out in logcat May 20 18:11:00 SimonVT: oo good idea i will try that. And tell me about it May 20 18:11:30 Ashirenm, SimonVT, DadFoundMy: thank you for these suggestion. I'll try them now. May 20 18:11:51 I have to add variable number of in a circle that has a diameter larger than the width of the screen! its a whole lot of "fun" May 20 18:12:00 *variable number of views May 20 18:12:21 dragorn: oh, that's helpful. WifiStateMachine: Not authorized to update network config="FAVEGA-111A42" cnid=-1 uid=10161 May 20 18:13:33 *these suggestions May 20 18:14:00 autrilla, so do you have the wifi set config permission? May 20 18:14:06 oh god, this HotSpot talk May 20 18:14:19 the Dan Lyons one. May 20 18:14:21 autrilla, otherwise, fortunately (ish) the wifimanager code is in aosp, so you can always go digging May 20 18:14:56 dragorn: um, I have CHANGE_WIFI_STATE and ACCESS_WIFI_STATE May 20 18:15:42 SimonVT: translating the view after rendering worked! Now i have to figure it out with the sides because the diamater of the circle is larger than the screen size May 20 18:16:57 Oh, okay, so if I didn't create the network from my app, I can't edit it May 20 18:16:58 that sucks May 20 18:17:14 You should probably create a custom view to handle this.. Then in onLayout layout everything at 0,0 and translate to where you actually want then May 20 18:17:46 SimonVT: It is kinda a custom view. I extend AbsoluteLayout May 20 18:17:56 Or modify AbsoluteLayout to translate x/y instead of layout(x, y) May 20 18:18:06 ahhhhh your saving me so much rn May 20 18:18:30 Or, hm.. May 20 18:18:53 Ashirenm, DadFoundMy: I am afraid it doesn't work. This is my initial code: http://pastebin.com/AeevKFH8 . May 20 18:19:09 Never mind the syntax, it's C# because I use Xamarin. May 20 18:19:26 SHUN THE UNCLEAN ONE May 20 18:19:41 I tried changing that to use getX, getWidth, etc. But they are all 0. May 20 18:19:54 And the behaviour is incorrect. May 20 18:19:55 ddobrev: what isn't working? you have an error? May 20 18:20:27 DadFoundMy: No, it just spins around an external point but this time without me even changing the configuration. May 20 18:20:38 My code works if I don't change it. May 20 18:20:43 DadFoundMy: Have you tried just changing clipChildren/clipToPadding? May 20 18:20:50 Just remembered those exist.. May 20 18:21:12 ddobrev: oh theres a pivot point paremeter May 20 18:21:21 But it's probably because of some optimization when views are laid out off screen anyway May 20 18:21:23 its when you instaniate the RotateAnimation May 20 18:22:23 “Delition May 20 18:23:40 if i had a nickle for all the microusb cable my one m8 has destoyed.... id have several nickels May 20 18:24:26 set clip children false didn't work, but i think setting the layout to (0,0) and tehn translating each will work nicely May 20 18:24:28 the m7 was the same way May 20 18:24:42 and it’s one of the things that gives me pause for getting the HTC 10 May 20 18:24:59 s73v3r: it pushes the pins down right? May 20 18:25:04 i have no idea May 20 18:25:06 so that the cable doesnt stay in May 20 18:25:22 of course, I had a mophie battery case, and I thought that was the problem May 20 18:25:28 where is AndroidManifest.xml in android studio projects? May 20 18:25:40 that case just absolutely fucked my battery May 20 18:26:57 tbt to kitkat when i could get 8 hour screen on time May 20 18:26:57 ah, hidden deep in src/main/ May 20 18:27:08 now im setting at 4 hours if im lucky May 20 18:27:13 thanks lolipop May 20 18:27:30 my Sony does a pretty good job. Although It has the Stamina mode, which is kinda like Doze May 20 18:28:00 DadFoundMy: I'll try ObjectAnimator, as SimonVT suggested. May 20 18:28:32 ddobrev: have you trying changing the pivot point? May 20 18:29:14 DadFoundMy: The pivot point is actually the last four parameters of new RotateAnimation. May 20 18:29:34 Look at their names: pivotPointX, pivotPointY, etc. May 20 18:29:49 That is, the pivot point is what I've been trying to use so far. May 20 18:30:18 Yeah it seemed like that was your issue May 20 18:30:39 in the example I showed you the pivot point is ( screenwidth / 2, 0) May 20 18:32:01 I feel so terrible for whoever inherits this codebase after me. No ammounts of comments can clear this shit circle shit up May 20 18:38:39 Why do people use intent filters when they register their receivers, but then also check it's the proper type inside the receiver handler? May 20 18:39:00 cause you can have a broadcast receiver with multiple intent filters May 20 18:41:46 s73v3r: but if I only ever plan to use one? May 20 18:42:01 RecyclerViews in RecyclerViews :D May 20 18:42:10 if it’s yours, and you can guarantee it, go ahead May 20 18:42:20 g00s: Love nested scrolling thingies May 20 18:42:34 s73v3r i'm betting io apps does that on the main screen May 20 18:42:47 maybe. I’m guessing you’re watching the RecyclerView talk? May 20 18:43:04 yeah May 20 18:43:30 ahh. I’m watching the Dan Lyons one. Go back and watch it over the break May 20 18:44:14 it is admittedly a big ad for his book, but it worked. I want to read it now May 20 18:44:14 ok May 20 18:45:24 he was Fake Steve Jobs, and he’s worked on Silicon Valley May 20 18:45:53 alright so I have something that happens on a separate process and I need to track it for analytics. I can only get a reference to my analytics tracking object via the Application object though. How can I get a reference to my application from the other process? May 20 18:46:24 So that Android emulator runs really well now May 20 18:46:42 Don't you have an Application instance per process? May 20 18:47:30 I'm not sure how to access it May 20 18:47:40 Same as you always do May 20 18:48:20 usually I use getApplication() from an Activity May 20 18:48:26 but here I don't have any activities May 20 18:48:45 Do you not have a Context in the other process? May 20 18:48:57 only thing I have is a context May 20 18:49:00 ah yeah May 20 18:49:22 but from what I've been reading I can't depend on casting getApplicationContext() to be the same Application object ? May 20 18:49:25 pwnt May 20 18:49:52 processes do not share memory May 20 18:49:53 It's not the same instance since it's in another process, but should be the same class May 20 18:49:58 you cannot get the same instance May 20 18:50:08 ah ok May 20 18:50:10 that's right May 20 18:50:25 pwnt x 2 May 20 18:50:54 I don't think it needs to be the same instance May 20 18:51:00 if it creates a new instance it will create a new tracker May 20 18:51:02 which is fine May 20 18:51:18 as long as it's my application class and not the default android one May 20 18:53:01 trackers are generally created as singletons by their libraries May 20 18:53:16 even then the memory isn't shared May 20 18:53:33 but my tracker is not May 20 18:53:54 threading to da maxx May 20 18:53:55 I was being a little stubborn when I implemented it May 20 18:54:05 move ALL the analytics to it’s own service May 20 18:54:05 well ipc May 20 18:54:19 so the other idea is to send a broadcast to the main process May 20 18:54:36 but I'm not sure how to receive it globally without registerring it on each activity in the app May 20 18:54:41 ah hmm May 20 18:54:50 maybe there's a parent class I could attach it to May 20 18:54:57 but is there a better way? May 20 18:55:22 maybe if I register it in the manifest May 20 18:58:50 Hello, I have some dobuts about apps publishing process, I read there's this kestore thing and I should generate a signed apk which will be published. Also (obviously) I should get a Google developer account my questions is, should I do something else with this key? like register it at developer console? May 20 18:59:36 man I must be hungry cause I thought you just typod "donuts" May 20 18:59:41 i don’t think you have to May 20 19:00:11 I don't think so but it's been so long since I've dealt with releasing myself May 20 19:00:12 by signing the application, they’ll know it came from you May 20 19:01:19 or, at least someone with access to the key May 20 19:05:54 s73v3r, so its only generating a key, keeping it safe and that's it? May 20 19:06:05 yup May 20 19:06:14 diegoaguilar: you don't need to explicitly register your key anywhere; but keep your private key safe. (Once you publish an app, further updates require you to upload an app signed with the same key.) May 20 19:06:39 diegoaguilar: so it's sort of implicitly registered if you like, at publishing time, per app. May 20 19:08:44 thanks kbs May 20 19:09:52 btw I can get some keys to link android studio to my dev console account May 20 19:10:02 I'm not android dev, but I gotta publish an app May 20 19:11:31 like how? May 20 19:11:50 generally you just export the signed apk from studio, and then upload it on the console page May 20 19:12:32 like manually upload? May 20 19:12:45 yeah May 20 19:12:46 go to browser open console page, login, some clicks May 20 19:12:51 yada yada May 20 19:12:53 ? May 20 19:12:56 pretty much May 20 19:13:20 if you’re not doing it regularly, and more importantly, if you have to get this done soon, then don’t bother with scrpting it yet May 20 19:13:25 just watched nick butcher's material talk, how he did things on plaid - man, that is /a lot/ of work May 20 19:13:44 you get the feeling that’s how they expect all of us to do it May 20 19:14:02 maybe with some of those things packed into libraries May 20 19:14:53 expect us all to do it with so little guidance (except this video, lol) May 20 19:15:05 i'll have to pass for now May 20 19:15:23 that’s why we have stuff like Plaid May 20 19:16:07 and quite a few things were "i wanted to do this, and the framework doesn't really handle that so I had to do ..." May 20 19:16:15 maximum plaid? May 20 19:16:18 Honestly, it does seem like one of those things that would get easier as you get experience doing it May 20 19:16:24 thats all expensive code to write and maintain May 20 19:16:33 it’s just that I don’t have the time to play with it a lot May 20 19:16:44 s73v3r yeah, features have to work first ;) May 20 19:17:15 but as you’re playing with it, you do develop a set of reusable components May 20 19:18:09 you wonder, what would have happened if the Android APIs were designed at the same time the Material design language was designed May 20 19:19:38 g00s, link pl0x May 20 19:19:44 to that video May 20 19:20:08 https://www.youtube.com/watch?v=EjTJIDKT72M&feature=youtu.be May 20 19:20:14 like, if they had Material back in the early Android days? May 20 19:20:53 yeah, how ConstraintLayout and AS are co-evolving, how Material and the APIs would co-evolve May 20 19:21:09 5 years later, nothing would be different May 20 19:21:27 I think Material would be quite different if it started before Project Butter, back in the days of heavy jank May 20 19:21:35 they wouldn’t want to emphasise animation as much May 20 19:21:37 it would have saved at least a year of people having to build their own shoddy material implementations before the proper support library came out May 20 19:22:23 either that, or Android would put emphasis on stuff like Project Butter a lot sooner May 20 19:22:50 one example they gave from ConstrainLayout - flattening your hierarchy makes animations easier May 20 19:23:19 like when something happens to a child, the animation you perceive may be quite different than its physical place in the hierarchy May 20 19:24:07 I just went to the Google Udacity page, and one of the thumbnails of the videos is Magnus making it rain May 20 19:24:28 heh May 20 19:25:11 :') May 20 19:26:45 google helped devs make nice looking apps by having VectorDrawable, and in the design language having simple flat shapes. this is pretty easy to do using your fav drawing program. i think they need to approach animations that way too, easy stuff that works out of the box May 20 19:27:11 of course designers everywhere were depressed :) May 20 19:28:49 i guess i'll have to watch 'a window into transitions' :P May 20 19:31:59 How can I restart an ObjectAnimator? May 20 19:35:40 wtf are you saying lol google helped devs make nice looking apps by having VectorDrawable, May 20 19:43:01 wow May 20 19:43:02 g00s, May 20 19:43:17 TransitionManager.beginDelayedTransition is awesome May 20 19:44:51 What would you recommend to debug why I can't connect to a LAN host from my phone? It's accessible from my laptop May 20 19:45:30 wi-fi ADB or so May 20 19:46:34 paresh: I'm not sure how adb over wifi helps May 20 19:46:59 actually your question wasn't clear May 20 19:47:04 can you rephrase it May 20 19:47:25 is there a `,` between debug and why May 20 19:47:58 Okay, so there's this IoT device that creates its own WiFi network, to which I connect. Now I have to send stuff to the device, which is always at 192.168.4.1, and I'm getting java.net.ConnectException: Failed to connect to /192.168.4.1:80 May 20 19:48:07 paresh: no, there's no `,` May 20 19:48:12 oh weird May 20 19:48:17 I did something similar a while ago May 20 19:48:26 connecting with my laptop works fine May 20 19:48:33 though I did something like IoT device <-> server <-> Mobile application May 20 19:48:37 what android: declaration makes text bold? May 20 19:49:12 uh weird May 20 19:49:21 autrilla, can you gist the log? May 20 19:49:46 paresh: I'm doing that same thing too, but I have to tell the device what WiFi network to connect to in the first place :p May 20 19:49:57 paresh: I don't think that'd be useful? My code will probably be, though May 20 19:50:05 sure May 20 19:50:12 gist the code May 20 19:50:30 https://bpaste.net/show/4de4049bf299 May 20 19:50:40 It's kotlin, but it should be readable to java people May 20 19:50:46 man, there's no value in going to IO... May 20 19:50:55 can't get into sessions... May 20 19:51:03 Ignore the ugly Thread.sleep(1000L) May 20 19:51:07 pfn: you're in mtv? May 20 19:51:46 yes May 20 19:53:57 autrilla, have you tried pinging the ip from your cellphone May 20 19:54:02 after connecting to the network May 20 19:54:53 or try establishing a socket connection to port 80 or some other port Socket clientSock = new Socket("192.168.4.1", 80); May 20 19:55:15 hm, yeah, but then I need another thread :( May 20 19:55:47 Threads can be abused(for debugging for the very least) :3 May 20 19:57:03 g00s, this video is nice :D May 20 19:59:02 java.net.ConnectException: failed to connect to /192.168.4.1 (port 80): connect failed: ENETUNREACH (Network is unreachable) May 20 19:59:08 Okay, that sheds *some* light May 20 19:59:40 adb shell ifconfig May 20 19:59:43 and java.net.ConnectException: failed to connect to /192.168.4.1 (port 80): connect failed: EHOSTUNREACH (No route to host) on the second try May 20 19:59:57 omggg May 20 20:00:34 pfn: https://bpaste.net/show/43c1fbe2bab1 makes sense? May 20 20:00:45 why isn't it finding a route? May 20 20:00:47 what up ppl May 20 20:01:19 autrilla, yea that's weird May 20 20:01:22 firewall or ap isolation May 20 20:01:57 I don't have a firewall May 20 20:02:31 windows, Mac and Linux all have firewalls by default May 20 20:02:40 And there's no isolation, as I said I can connect with my laptop May 20 20:02:42 pfn: what? May 20 20:02:47 linux doesn't come with a firewall May 20 20:03:32 pretty sure it does May 20 20:03:45 pretty sure it does not May 20 20:03:51 I would assume an IoT linux image wouldn't ship with a firewall May 20 20:04:07 the IoT thing isn't running linux May 20 20:04:10 it does its just not enabled by default @ autrilla May 20 20:04:17 ah May 20 20:04:59 orbyt_: well, sure May 20 20:05:06 orbyt_: so, I don't have a firewall May 20 20:05:14 ? forget it May 20 20:06:25 autrilla, decompose your problem into subproblems, first try without anything from 192.168.4.2 to reach 192.168.4.1 (try netcat or telnet on port 80) May 20 20:06:51 and be sure your web serv on 192.168.4.1 is running, that 80 is allowed (firewall yes), etc May 20 20:07:28 and most linux distro comes with netfilter, iptables & things May 20 20:07:48 and by default, there is no reason allow ip any any should be enabled May 20 20:08:43 adq: ermmmm, as I said, it's reachable from my laptop May 20 20:08:44 and if you use an access point for wifi, you should also check there May 20 20:09:04 idk if it's reachable, i saw EHOSTUNREACH (No route to host) May 20 20:09:46 the slash is suspicious there: /192.168.4.1 May 20 20:10:23 is it really needed to have every SQLite read and write done off the UI thread? May 20 20:10:34 g1bbs: yes May 20 20:10:36 yes May 20 20:11:07 so basically asynctasks everywhere doing even simple ~5 row result set queries? May 20 20:11:20 no May 20 20:11:38 Does anyone know what version of the vendor image I should update to? May 20 20:11:49 each time you want to use asynctask, try to see if you can replace it with something else (lot of choices) May 20 20:12:10 g1bbs: the general rule of thumb - UI thread does only UI drawing and event handling, noting else May 20 20:12:14 I keep getting the vendor image out of date message on startup after updating the most current version of custom rom May 20 20:12:16 there's no implicit problem with asyncTask for non network tasks May 20 20:12:43 as long as you decouple the UI logic and the view there should be no problem May 20 20:12:54 you will see one among many when postexecute will be triggered but your activity context is already dead May 20 20:13:10 wont be a problem with even bus May 20 20:13:19 g1bbs, yes May 20 20:13:21 I dont have to act on the views directlhy May 20 20:13:37 then why do you need to access UI thread? May 20 20:14:01 g1bbs, though you can go on without EventBus May 20 20:14:05 well, the alternatives are generally going to be more verbose for a small task May 20 20:14:11 F-Droid does that https://gitlab.com/fdroid/fdroidclient May 20 20:14:42 I think it *might* be because of https://developer.android.com/reference/android/net/wifi/WifiManager.html "Note: If an application's target SDK version is LOLLIPOP or newer, network communication may not use Wi-Fi even if Wi-Fi is connected; traffic may instead be sent through another network, such as cellular data, ", and Android is not smart enough to figure out to route it through wlan0 May 20 20:14:47 i have to admit i'm not a fan of asynctask, but it might be suitable in some cases May 20 20:14:50 g1bbs, Service/IntentService with tasks running on separate thread May 20 20:14:52 why not May 20 20:15:04 I'm using a priority queue thread pool for all my network jobs but it seems overkill for local things like db calls that finish in milliseconds May 20 20:15:05 adq, me neither May 20 20:15:17 g1bbs, use to queues May 20 20:15:18 :o May 20 20:15:35 that's what I have now but it's class explosion May 20 20:15:37 LocalBroadcastManager only works within the same process, is that right? so for ipc I need to use the global broadcast sending from Context? May 20 20:15:40 g1bbs, https://www.youtube.com/watch?v=BlkJzgjzL0c May 20 20:15:46 autrilla, not sure it's related May 20 20:15:55 adq: yeah, it is May 20 20:15:56 it's still regular network interfaces May 20 20:16:02 adq: disabling mobile data makes it work :) May 20 20:16:09 oh then May 20 20:16:17 autrilla, oh wow May 20 20:16:18 lol May 20 20:16:27 are you on a custom rom? :) May 20 20:16:32 paresh: yes I am using yigit's priority queue that he mentions in that talk May 20 20:16:40 adq: it's cyanogenmod, I think May 20 20:16:43 g1bbs, yes it is lovely :3 May 20 20:16:44 because you don't need any route to reach a host on a LAN May 20 20:16:47 but it's less appropriate for local work. Lots of overhead May 20 20:16:49 with a correct mask May 20 20:17:00 (in ipv4) May 20 20:17:02 retrofit2.adapter.rxjava.HttpException: HTTP 405 Method not supported May 20 20:17:05 yay May 20 20:17:07 (sorta) May 20 20:17:17 g1bbs, yes I understand, though I never got around using it in any of my projects :( May 20 20:17:30 paresh: so now I'm doing db load for instance in a queue job and having to pack that data in an event bus event for eventual subscriber delivery May 20 20:19:05 g1bbs, did you get around watching this https://www.youtube.com/watch?v=EjTJIDKT72M&feature=youtu.be May 20 20:19:09 adq: yes you do, because they're setting the mobile data interface as the default one, apparently May 20 20:19:35 autrilla, cool, atleast we got past the route not found May 20 20:20:03 paresh: the Material talk? May 20 20:20:14 g1bbs, yes May 20 20:20:28 paresh: I watched like half of it - He doesn't go into any architecture does he? May 20 20:20:55 I am halfway through :d May 20 20:21:09 also there's that app, so you can always look at its source code May 20 20:21:13 https://github.com/nickbutcher/plaid May 20 20:21:40 not even half way, I am at 14:10 May 20 20:22:00 yeah, unfortunatly I need to look through the fork though because he did the less helpful "Imma support 21+" May 20 20:22:33 ah yes, the android-17 support fork May 20 20:22:59 anyways May 20 20:23:01 see ya guys later May 20 20:23:07 * paresh is off to sleep May 20 20:28:46 autrilla, cool May 20 20:35:13 g1bbs: your event bus for everything idea is a good :) if nothing else, it decouples the consumer of your data; but is also useful for db updates (the onUpdate() will run anywhere SqliteOpenHelper.get*ableDatabase() is first called; and often in practice it's anywhere any query runs.) May 20 20:35:23 Good evening gents, I was wondering if somebody could help me with this: http://stackoverflow.com/questions/37355341/android-save-image-to-php-server May 20 20:39:08 where do you get that Bitmap fro May 20 20:39:09 m May 20 20:39:40 TonyPepperoni: Any chance your base64 is too long and the HTTP connection cuts part of it? May 20 20:40:35 bitmap is gotten from a filepath and works since i use it to set the ImageBitmap of an ImageView May 20 20:40:41 That is, have you verified the base64 you create on the client is the same as the one which arrives to the server? May 20 20:40:54 lemme check May 20 20:43:36 I wonder if it's because it may be wrapping newlines May 20 20:44:12 pfn the value of I/O is meeting people / making connections May 20 20:44:27 eh, kinda May 20 20:44:30 TonyPepperoni: save the post request; and as a quick check, see if adding Base64.NO_WRAP changes anything maybe May 20 20:44:58 most people that attend aren't the connection making type May 20 20:45:06 I think Log.d chops off a bit, but when i compare the saved image without decoding it so the posted base64 string, it contains no '+' May 20 20:45:42 especially this year with no 3rd parties in the sandbox. this year May 20 20:45:56 s/this year// May 20 20:45:57 oh really May 20 20:47:36 it's all first party only this year May 20 20:48:43 kbs NO_WRAP doesnt change anything, but i noticed in the serverside, all the '+' are omitted from the file and replaced by ' ' May 20 20:49:00 and general admission for a few office hours questions isn't very effective May 20 20:49:14 Can I get okhttp to call one of my functions whenever it creates a socket? May 20 20:49:22 I'd like to bind them to a particular network May 20 20:49:36 TonyPepperoni: ah :) I was just going to ask about that - is that something php does? (it shouldn't be part of standard base64 decoding) May 20 20:50:32 TonyPepperoni: if you have a way to tweak the base64_decode side, I guess using Base64.ENCODE_WEBSAFE could also work, but sounds like you've identified the issue May 20 20:51:55 or, as usual, you can url-encode it before sending I suppose (slow on the uptake today :) May 20 20:57:09 I have android studi and i got to my sdk update page and i see a unknown error on not sure how to fix it? May 20 20:57:43 Is anyone have the same prob? May 20 20:58:28 kbs yep fixed it by using Base64.URL_SAFE and then $image = str_replace(array('-', '_'), array('+', '/'), $image); in my PHP May 20 20:58:30 ty May 20 20:59:06 ok May 20 20:59:18 TonyPepperoni: cool : May 20 21:24:05 “It turns out the emulator in Android Studio is actually good” May 20 21:27:09 DadFoundMy: ping. May 20 21:29:45 SimonVT: ObjectAnimator worked. Thank you for your help. May 20 21:31:22 wee May 20 21:32:35 hello, i have some issue with android-virtual-device and new amdgpu video driver, can someone help me to fix? May 20 21:32:44 So i'm thinking ii'm going to try my hand at app dev again. May 20 21:32:56 have fun May 20 21:33:08 don’t be afraid to make lots of UI subclasses May 20 21:33:10 My real problem is that I'm not sure what I want to build yet. May 20 21:33:38 this is the paste of the error: http://pastebin.com/90m3ee2N May 20 21:34:09 do I need VirtualBox to use the emu? May 20 21:34:17 no May 20 21:34:19 I'm liking the looks of firebase. May 20 21:34:23 it's complaining about vb 4.3.30+ May 20 21:34:28 but you need virtualization tecnology May 20 21:34:36 and I'm like "why do you care what version of virtualbox I have?" May 20 21:34:50 oh I guess they both try to hook into the kernel May 20 21:35:07 clarjon1: teledildonics May 20 21:35:25 SuperStep: Oh, I know the root cause of this issue. May 20 21:35:33 I actually ran into this earlier this week, trying to get steam to run. May 20 21:35:46 clarjon1, how do you fix? May 20 21:35:57 clarjon1, i cannot install catalyst driver May 20 21:36:39 clarjon1, i run ubuntu 16.04 only can use the new amdgpu driver, the kernel not working with old catalyst May 20 21:36:41 SuperStep: You need to install the appropriate libgl libraries for your graphics card. Perhaps mesa-libgl may help? May 20 21:37:00 clarjon1, i already install mesa May 20 21:37:17 SuperStep: there's a difference between mesa and mesa-gl packages, in my experience. May 20 21:37:26 *mesa-libgl May 20 21:37:42 clarjon1, oh, i go try it May 20 21:39:00 clarjon1, i cannot find mesa-libgl on ubuntu repository... May 20 21:39:13 hmm May 20 21:39:25 ubuntu, eh, let me see what i can dig up May 20 21:41:33 sudo apt-get update ; sudo apt-get install libgl1-mesa-dri libgl1-mesa-dri:i386 May 20 21:42:00 clarjon1, ok i will try it, thanks for support May 20 21:43:24 Good luck. May 20 21:43:36 :D May 20 21:43:38 Found that on multiple pages with that error message. May 20 21:44:09 If that doesn't work, may want to try: completely uninstalling your AMD/ATI driver, rebooting, then installing it again. May 20 21:44:37 My fix was similar -- i have an nvidia card tho so i just had to install the nvidia-libgl stuff lol May 20 21:45:05 i think i will buy nvidia card very soon May 20 21:45:19 because this fucking amd has so many problem May 20 21:45:49 libgl1-mesa-dri is already the newest version (11.2.0-1ubuntu2). May 20 21:45:52 fuck May 20 21:46:06 is already installed May 20 21:46:41 Hrm. Well. May 20 21:47:00 May be a bit out of scope for this channel, but the cause of this is your card not loading the OpenGL rendering stuff properly May 20 21:47:19 Perhaps the ubuntu support channel may be more appropriate? I'm not as familiar with their packaging as i am with arch right now. May 20 21:47:39 You'll probably get a similar error when trying to run something like glxgears, or anything requiring opengl 3d rendering. May 20 21:47:55 no glxgears work perfectly May 20 21:48:00 oh really May 20 21:48:04 Now that's interesting May 20 21:48:15 i think the problem is the avd search for wrong shared library May 20 21:48:21 how about gearbox? May 20 21:48:39 i install it one mom May 20 21:49:08 ok missing on ubuntu repo May 20 21:49:10 D: May 20 21:50:13 hm. looks like ubuntu doesn't have it... May 20 21:53:29 i have the support to OpenGl: OpenGL version string: 3.0 Mesa 11.2.0 May 20 21:53:47 i think the naming from catalyst to amdgpu is changed May 20 21:54:02 so the avd manager search wrong name May 20 21:57:57 ok maybe i should reinstall avd, because the actually was installed while the driver was Catalyst May 20 21:58:10 maybe something is broken because of this May 20 21:59:53 someone know how to reinstall ONLY avd? May 20 22:41:54 Ok i fix the problem relative to avd May 20 22:47:43 hey, how do I get that staggered intermediate progress bar? May 20 22:50:49 s73v3r: its just a standard ProgressBar and use setSecondaryProgress May 20 22:51:45 the circular one? May 20 22:53:18 erm. maybe. never tried it May 20 22:53:22 the one where the head starts going around in a circle, stops, and then the tail end comes around really fast? May 20 22:53:24 Hi all May 20 22:53:40 s73v3r: thats just a standard intermediate one May 20 22:53:44 from material design May 20 22:53:51 damn May 20 22:53:56 cause it’s not working for me :9 May 20 22:53:58 :( May 20 22:57:19 and that's all for IO May 20 22:59:39 https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B14F_FSUCc01N2kzc1hlaFR5WlU/061101_Circular_Sheet_xhdpi_005.webm May 20 22:59:44 the one on the left is the one I want May 20 23:05:10 the left is default May 20 23:05:54 only reason you wouldn't get it would be because your theme or target api are wrong May 20 23:31:03 Hello is it mandatory to pay 25USD to get right to publish at Google Play? May 20 23:36:49 diegoaguilar: yes May 20 23:54:25 * g00s goes fishing for fragments May 20 23:56:18 :) May 20 23:56:49 Napalm did you watch that one ? May 20 23:58:27 g00s: you mean "what the fragment?" May 20 23:58:37 by adam May 20 23:58:47 seen that one May 20 23:59:21 Napalm what did you think ? May 21 00:00:22 i thought it was good May 21 00:05:32 Napalm what did you find to be valuable insight from the talk ? May 21 00:08:48 crap. I was worried it would be theme stuff May 21 00:11:25 g00s: there was a lot of good tips and tricks. I dont think I found anything new for myself. I did like the talk for the main reason it got me thinking about some situations where I could use fragments for a few things I've been working on. May 21 00:11:43 I think overall it shows you some of the more common pitfalls. May 21 00:13:12 Napalm so have you heard anything about using for nested fragments ? May 21 00:13:20 still wondering if that is totally legit May 21 00:13:21 yes May 21 00:13:24 dont use it May 21 00:13:26 lol May 21 00:13:44 I've never used tags really. May 21 00:13:49 but thats just my opinion May 21 00:13:59 basically yes, adam talks about them May 21 00:14:12 and the bugs in the childFragmentManager and everything May 21 00:14:14 Napalm but did anybody say anything /recently/ about nested May 21 00:14:16 worth a watch May 21 00:14:23 because i see it gapps now May 21 00:15:14 they fixed a few issues with it and those fixes are-in / will-be-in the next versions of support libs May 21 00:15:22 g00s: watch the vid May 21 00:19:01 Napalm yeah i did see the vid, but didn't see adam say anything about using nested May 21 00:19:12 i like the commitNow() May 21 00:19:24 he did May 21 00:19:28 well indirectly May 21 00:19:36 now all fragments are resolved in onCreate May 21 00:20:01 which fixes the problems with nested fragments because findFragmentById/Tag will now work correctly May 21 00:20:12 and that now propgates correctly down the childfragmentmanagers May 21 00:26:19 Napalm this will be cool http://digg.com/video/project-ara-video-google-modular May 21 00:26:29 is there a good, recommended, android book that's been updated for 6, android studio, etc.? May 21 01:07:28 no, books are overrated May 21 01:07:36 books are published on 1+ year cycles May 21 01:07:44 android is updated every year, so it's impossible to be up-to-date May 21 01:56:38 pfn, Mark Murphy updates his book continuously May 21 02:02:13 hello everyone, why I see the emulator with the action bar and the designer with that weird frame http://imgur.com/a/AlhUD ? May 21 02:03:00 oh nvm, I had selected material.light.dialog.noactionbar May 21 02:04:13 but still, why changing the theme in the designer doesn't set the theme in the manifest? May 21 02:17:26 TIL https://github.com/google/enjarify May 21 02:17:47 lol python3 shit May 21 02:31:19 Ologn, not a physical book that is up to date May 21 02:31:27 After updating Android Studio to 2.1.1 getting error on Gradle May 21 02:31:40 alex88, the designer doesn't set theme for you May 21 02:31:47 it just let's you preview May 21 02:31:55 designer is garbage May 21 02:32:20 Constraint designer looks promising, though May 21 02:32:23 pfn: oh ok, thank you May 21 02:33:17 Error:Gradle version 2.2 is required. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in /Users/userXYZ/AndroidStudioProjects/Year2015/Project123/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip. Please fix the project's Gradle settings. Fix Gradle wrapper and re-import project Gradle settings May 21 02:33:48 then do it May 21 02:34:35 distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip May 21 02:34:59 whats the right path for 2.2 ? May 21 02:37:39 however, I created a new style using NoActionBar as parent, is there a way to use AppTheme as parent but removing the action bar? May 21 02:38:07 I'm really surprised at how much faster Android Studio is in Ubuntu compared to Windows, on the same laptop May 21 02:42:20 if any one want the easy solution is: May 21 02:42:29 dependencies { classpath 'com.android.tools.build:gradle:2.0.0' } May 21 02:42:44 in build.gradle May 21 02:43:05 that will download right thing and do the job :) May 21 02:51:59 oh this better link for ARA https://atap.google.com/ara/ May 21 02:52:26 first order of business, is methane detector component :D May 21 02:52:55 i was just reading about those google cars that went around Texas looking for methane leaks May 21 02:53:00 thats cool too May 21 02:58:33 g00s, true AI soon **** ENDING LOGGING AT Sat May 21 02:59:58 2016