**** BEGIN LOGGING AT Mon Mar 06 03:00:00 2017 Mar 06 03:03:47 I bet there's a #android Mar 06 03:09:41 who has a good boye cat here Mar 06 03:09:47 wrong channel sry lol Mar 06 03:13:53 good boye cat? Mar 06 03:42:38 boye = "A member of a class of higher Russian nobility" Mar 06 03:42:48 * g00s ugh, lost Mar 06 03:56:15 "As of the Android Gradle plugin version 2.2, all functionality that was previously provided by android-apt is now available in the Android plugin. Android Gradle 2.3 is actively blocking android-apt now in anticipation of upcoming changes to the Android Gradle plugin. This means that android-apt is officially obsolete ;)" interesting Mar 06 04:40:10 so, a cat Mar 06 04:40:20 for a rich guy? Mar 06 07:06:32 * raoul11 thepooshes thepoosh Mar 06 07:12:41 oh hi there Mar 06 07:14:30 thepoosh did u see the image i linked yday Mar 06 07:20:20 nope Mar 06 07:20:22 send it again Mar 06 07:20:30 raoul11: ^ Mar 06 07:20:42 http://i.imgur.com/6AZwlz9.png Mar 06 07:21:21 what am i missing here? Mar 06 07:21:37 that looks like a deep call stack Mar 06 07:22:06 example of CLEAN Mar 06 07:22:29 raoul11 i liked the heavy metal pokemon drummer Mar 06 07:22:32 demo of asking a db for a welcome message Mar 06 07:22:41 that was mine godzirra Mar 06 07:22:42 g00s: Mar 06 07:22:44 using clean/uncle bob Mar 06 07:22:51 hmmmm Mar 06 07:22:55 * raoul11 g00ses g00s Mar 06 07:23:02 raoul11: https://github.com/android10/Android-CleanArchitecture Mar 06 07:23:30 yeah Mar 06 07:23:32 not gonna do it Mar 06 07:23:41 don't think i will either Mar 06 07:23:45 its decoupled af but dude, thats too much Mar 06 07:23:48 uh thats too complicated lol , yeah Mar 06 07:23:51 u guys going mvvm thepoosh no? Mar 06 07:24:00 with databinding? Mar 06 07:24:11 nah, we made one screen with databinding (i did it) Mar 06 07:24:24 but I don't think we will rewrite anything until we can afford it Mar 06 07:24:31 thepoosh what did you think? Mar 06 07:24:37 mhm https://play.golang.org/p/Q7Ek05QjOP Mar 06 07:24:42 godlike activities FTW Mar 06 07:24:44 about the drummer? Mar 06 07:25:04 thepoosh no, about the databinding Mar 06 07:25:14 Ashiren u did an interview? Mar 06 07:25:21 i don't really like shit being inside but whatever Mar 06 07:25:30 nah Mar 06 07:25:39 just random findings in internets Mar 06 07:25:45 fizzbuzz is like the #1 most asked question in le world Mar 06 07:25:54 u know that massive fizzbuzz solutions page? Mar 06 07:26:02 the enterprise edition? Mar 06 07:26:16 http://wiki.c2.com/?FizzBuzzTest Mar 06 07:26:27 i'm still trying to like go Mar 06 07:26:31 g00s: did you read the weekly? Mar 06 07:26:45 i thought of https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition Mar 06 07:26:46 oops no, i haven't ... Mar 06 07:27:10 I helped edit one of the articles this week Mar 06 07:27:42 lollololol Ashiren Mar 06 07:27:44 foreal. Mar 06 07:27:58 looks like those MVWTF eh? Mar 06 07:28:04 public interface DataPrinter Mar 06 07:28:07 haha yes Mar 06 07:28:13 thepoosh: click that link Mar 06 07:28:28 the github link? Mar 06 07:28:36 thepoosh which one! Mar 06 07:28:48 yes Mar 06 07:28:49 honestly i've skipped AW for a while now Mar 06 07:28:58 g00s: the first one, about offline Mar 06 07:29:19 raoul11: that is a bit of an overkill yes? Mar 06 07:29:58 6800 stars lol Mar 06 07:30:53 nice thepoosh, looks juicy .. i'll read it tomorrow. oh i see mark alison did a junit 5 article Mar 06 07:31:02 sure thing Mar 06 07:32:04 "To use Marcel’s plugin we must first remove the stuff that we just added and add the android-junit5 plugin as a buildscript dependency:" hm yeah fuck that already Mar 06 07:32:54 thepoosh i see an article on flexboxlayout ... that thing is very cool Mar 06 07:33:08 i haven't used the recyclerview layout manager yet, but ... super cool Mar 06 07:34:08 q: having a regular linearlayout manager and a staggerd/grid managers on the same RV? Mar 06 07:34:09 raoul11 and that drummer was using electronic drums Mar 06 07:35:00 raoul11 you want to swap LayoutManagers ? Mar 06 07:35:04 yes Mar 06 07:35:08 with a toggle button Mar 06 07:35:15 at runtime Mar 06 07:35:21 i .. haven't tried that before, lol .. i'd just look at the sources and see if they do something sane Mar 06 07:35:43 like empty the recycler caches, etc Mar 06 07:35:47 ya Mar 06 07:35:51 this should be fun Mar 06 07:36:11 mayb two RV's with invisibility Mar 06 07:36:14 you know it will fuck up on samsung Mar 06 07:36:22 that would surely be a good performance factor Mar 06 07:36:46 i'd actually try it ... why have 2 adapters in memory at once Mar 06 07:36:48 g00s hopefully more samsung models will explode and we should not need to worry about that anymore Mar 06 07:38:05 thepoosh when is glide's cmra thing being released ? Mar 06 07:38:10 how is all that going Mar 06 07:42:07 raoul11 hopefully soon samsung will just go tizen Mar 06 07:42:30 i think as time goes by, goog and sammy become more competitors Mar 06 07:43:38 g00s: plans are for spring which means somewhere in the next couple of months Mar 06 07:43:51 i am not directly related to that project so I don't know more Mar 06 07:43:59 but i sure hope we'll make it ASAP Mar 06 07:46:49 hmm .. this seems like a really poor way to do this http://tech.trello.com/syncing-changes/ Mar 06 07:47:01 dan lew usually has good stuff Mar 06 07:47:55 thepoosh raoul11 have you build times improved with AS 2.3 + Android Gradle 2.3 ? Mar 06 07:48:25 i havnt upgraded yet Mar 06 07:48:27 should i? Mar 06 07:48:28 might have but I spent half the day yesterday fixing build breakage Mar 06 07:49:44 from the new tools ? Mar 06 08:18:12 thepoosh i'm reading the article, he uses content provider! Mar 06 08:18:16 * g00s has warm fuxxies Mar 06 08:18:27 lol fuzzies Mar 06 08:18:43 g00s: he's a GDE who's in charge of the AndroidAcademy here in Israel Mar 06 08:20:39 yonathan? Mar 06 08:20:58 raoul11: yes Mar 06 08:21:31 hm, i just got tim ferriss' "tools for titans" , i didn't realize this was 600 pages! Mar 06 08:22:04 it's a huge book :) Mar 06 08:22:19 Leeds are you reading it? can double as self defense ... Mar 06 08:22:21 he's a nice guy Mar 06 08:22:25 what article thepoosh ? Mar 06 08:22:43 raoul11: https://medium.com/@yonatanvlevin/offline-support-try-again-later-no-more-afc33eba79dc#.fmy8bf8gj Mar 06 08:26:55 should context be a part of a presnter? Mar 06 08:27:06 presenter* Mar 06 08:27:24 afaik, the presenter should know nothing bout the context Mar 06 08:29:14 raoul11 no Mar 06 08:29:52 thepoosh i wonder how good the realm sync stuff is, but i kinda just like sqlite Mar 06 08:30:11 although, i wish they would hurry up and do something like support-sqlite Mar 06 08:37:00 Mavrik do you use go or rust? Mar 06 08:39:15 I like Sqlite as well but don't see the issues with having it as the implementation layer while using providers as the DAL Mar 06 08:54:06 g00s, I used Go a bit Mar 06 08:54:16 just following Rust, didn't have time or a project to try it yet :) Mar 06 08:54:26 Mavrik what do you think of go ? Mar 06 08:54:39 "eh" :) Mar 06 08:54:43 Has some really nice things Mar 06 08:54:53 But then it craps on them with dumbass error handling and lack of generics Mar 06 08:55:23 it's nice for small portable services Mar 06 08:55:26 oh yeah, that Mar 06 08:55:42 well error handling isn't going to change, go might get generics though Mar 06 09:06:02 Hi! I'm having problems with google maps, map.setMyLocationEnabled(true). I've tried implementing the permission check it recommends me to do, but still it fails on the emulator. Is there something on the emulator i should do as well? Mar 06 09:07:17 does the emulator display the map? does it put you on any location at all? Mar 06 09:08:02 g00s, thoughts on kotlin? Mar 06 09:08:24 Zajt: did you add a mock coordinates on the emualtor? Mar 06 09:09:07 raoul11 i really haven't looked at it much. it looks ok. seems to be enjoying niche as android thing. i guess i'm ok with java for now Mar 06 09:09:32 https://blog.philipphauer.de/kotlin-java-ecosystem-language/ Mar 06 09:09:41 some examples here are mindbogglin Mar 06 09:09:46 i rather just stick to what google gives us mostly Mar 06 09:10:03 raoul11: No i have not done that Mar 06 09:10:08 i still think that andromeda or whatever it is will be a big change Mar 06 09:10:12 Zajt: you should do that Mar 06 09:10:31 coz the emulator knows nothing bout your location Mar 06 09:10:33 raoul11: How do I do that? Mar 06 09:10:53 Pretty sure the emulator defaults to google headquarters. Mar 06 09:11:03 as far as locations are concerned. Mar 06 09:11:11 click on the emulator settings, go to location Mar 06 09:11:31 Syzygy: donno by what he meant fails tbh Mar 06 09:12:20 That's why I asked some questions earlier... Mar 06 09:12:21 Zajt: http://i.imgur.com/iPOYkBN.png Mar 06 09:13:11 raoul11: https://realm.io/news/mobilization-hugo-visser-rxjava-for-rest-of-us/ Mar 06 09:13:32 i luv u thepoosh Mar 06 09:13:45 i got a ff bookmarks folder for u Mar 06 09:13:48 raoul11 yeah, it looks better than java Mar 06 09:14:02 https://media.giphy.com/media/e6e1P3wC6xkYg/giphy.gif Mar 06 09:14:05 i still wonder if its going to be another borland / delphi though Mar 06 09:14:20 g00s: woot?! Mar 06 09:14:23 there is no platform that needs kotlin, like android, ios, etc all have their required languages Mar 06 09:14:32 U COBOL much? Mar 06 09:14:52 thepoosh http://i.imgur.com/IyZwrjq.png Mar 06 09:14:58 hehe Mar 06 09:15:05 what is palis? Mar 06 09:15:07 ha ! Mar 06 09:15:19 donno lol Mar 06 09:15:26 btw, realm news section is gold Mar 06 09:15:30 oh Mar 06 09:15:34 some liberal shit Mar 06 09:15:39 hehehe Mar 06 09:15:47 for a work i did on uni bout 87 intifada Mar 06 09:15:49 are you an vegan asshat? Mar 06 09:15:50 raoul11 i'm curious how they will do kotlin native Mar 06 09:16:01 i was a vegan for 5 years, b4 it was cool Mar 06 09:16:14 there is nothing cool about being vegan Mar 06 09:16:17 it sux Mar 06 09:16:17 mmm... schwarma Mar 06 09:16:18 like 15-18 years ago Mar 06 09:16:26 * thepoosh agrees with Leeds Mar 06 09:16:30 mmm... schnitzel Mar 06 09:16:34 rrrrrrrrrr Mar 06 09:16:36 i broke my veganism with shawarma Mar 06 09:16:47 * g00s throws bacon at everyone Mar 06 09:16:58 g00s: NOT KOSHER!!!! Mar 06 09:16:58 g00s i havnt seen any benchmarks comparred to java Mar 06 09:16:58 my sister broke it with a big mac Mar 06 09:17:13 Syzygy: why break veganism with plastic?! Mar 06 09:17:20 i have no idea... Mar 06 09:17:35 should have done it with some good steak Mar 06 09:17:37 big mac is probably from cow in ND drinking fracking fluids Mar 06 09:17:45 mhmmmmm steak Mar 06 09:17:46 haha Mar 06 09:17:49 mmmmm Mar 06 09:17:52 pretty sure they use local cows here. Mar 06 09:18:10 something like that http://www.freakingnews.com/pictures/25000/Purple-Milka-Chocolate-Cow-25254.jpg Mar 06 09:18:17 havnt had mcdonalds in years Mar 06 09:18:23 i do my own hamburgers nowdays Mar 06 09:18:27 raoul11: What should I change there? There are some coordinates there but how should that help myLocationEnabled? Mar 06 09:18:36 raoul11 do you hunt ? Mar 06 09:18:37 http://photoshopcontest.com/images/large/e3203p3f7iqsaortrrtskcryd7jywa3ydbyt.jpg Mar 06 09:18:41 local cows. Mar 06 09:18:46 Zajt: define how it fails Mar 06 09:18:55 no joke, my aunt had a farm. they're born with the logo. Mar 06 09:18:55 g00s only chicks Mar 06 09:19:10 lol rifle or bow ? Mar 06 09:19:24 its a problem hunting anything nowdays in israel Mar 06 09:19:32 only wild boars Mar 06 09:19:40 nd those dont taste well Mar 06 09:19:44 can you make bacon from a boar ? Mar 06 09:19:55 donno actually Mar 06 09:20:14 i like bacon, but i prefer red meat Mar 06 09:20:36 u like colorectal cancer Mar 06 09:20:38 raoul11: I doesn't fail, but it doesn't allow me to setMyLocationEnabled(true). Android Studios tells me do a check permission. So i added that (there some code it generated for me, if(check failed) return;) And the check it generated always fails Mar 06 09:21:07 guys used to hunt boar near my moshav Mar 06 09:21:37 Zajt https://developer.android.com/training/permissions/requesting.html Mar 06 09:22:00 you need to handle all that Mar 06 09:22:23 or, just target < 23 Mar 06 09:22:53 theres also some libs u can use that wrapps it for you Mar 06 09:23:25 https://guides.codepath.com/android/Managing-Runtime-Permissions-with-PermissionsDispatcher Mar 06 09:34:01 raoul11: It works now. Thanks! Mar 06 09:34:49 what did you choose to do Zajt ? Mar 06 09:37:36 <_genuser_> do you guys track the build/* folder in your repos? Mar 06 09:37:53 oO Mar 06 09:39:35 <_genuser_> you know app/build/* Mar 06 09:40:16 no ... Mar 06 09:40:46 <_genuser_> ok, good then. I have excluded it in my mercurial .hgignore. and just got curious if anyone ever includes it. Mar 06 09:43:09 raoul11: hi! Mar 06 09:43:24 ohi mela Mar 06 09:52:33 _genuser_, that question shows a lack of understanding of either what version control is for or what the build folder is for. Mar 06 09:54:04 why not both? Mar 06 09:54:09 * raoul11 away Mar 06 09:54:16 or both. Mar 06 09:54:22 and i seriously suck at vcs Mar 06 09:54:37 so can relate to the struggle Mar 06 09:54:45 Sure, it Mar 06 09:55:26 it's not meant as an insult, just that that could lead to future issues and should be looked into. Mar 06 10:12:05 raoul11: g00s: https://www.gofundme.com/we-salute-you-s3-team-member Mar 06 10:12:32 <_genuser_> Syzygy: I'll admit I'm not up to speed on what goes on in the build folder. the name suggest the build process puts files there that were created during the build process. Mar 06 10:13:28 <_genuser_> in an ideal situation, all you'd need is the code to rebuild. But that doesn't always happen. (as I've found out the hard way). Mar 06 10:13:51 <_genuser_> so if I need to sometimes dump some deps into vcs (I know dlls aren't source code, but I don't care), then I'll just dump them in . Mar 06 10:14:24 _genuser_, exactly. since those files are generated and might even depend on the current state of your code and in many cases on your system, it becomes clear that those should not be checked into source control. Mar 06 10:14:56 <_genuser_> much to the dismay of my colleagues, I'll sometimes dump .dll files into vcs in my visual studio projects. Mar 06 10:15:30 <_genuser_> but not out of stubborn-ness, sometimes it just gets harder to ship the dlls with the code and people won't install them. Mar 06 10:15:47 <_genuser_> heh, so I'll just put them in a deps folder. they don't change much - still sort of a bad habit. Mar 06 10:16:18 putting them in a dependency folder would make more sense. Mar 06 10:16:29 (I don Mar 06 10:16:41 't think I've seen dlls on android though) Mar 06 10:16:48 <_genuser_> yep, I put in a deps folder, copy them there, and add the folder to vcs. Mar 06 10:17:10 <_genuser_> right, I haven't seen dlls on android. but was curious if build system contains anythign I might want to track. Mar 06 10:17:46 <_genuser_> surprisingly, I wasn't excluding .gradle in my .hgignore. I google that earlier and excluded that also. Mar 06 10:18:06 https://github.com/github/gitignore you might want to look up something like this for mercurial. Mar 06 10:18:27 <_genuser_> nice Mar 06 10:19:04 (or just use the one provided here and do whatever adjustments you might need) Mar 06 10:20:10 <_genuser_> yep, it's good enough. thanks. :) Mar 06 10:36:28 With Retrofit, if I need different gson converters, can I define that somehow with my rest interface or do i need to generate an individual restadapter for each different gson converter? Mar 06 10:42:21 Syzygy: http://stackoverflow.com/questions/40824122/android-retrofit-2-multiple-converters-gson-simplexml-error Mar 06 10:43:02 Hello loved IRC community. I hope you can help me with some rapid fire answers :) Mar 06 10:43:40 Syzygy: https://futurestud.io/tutorials/retrofit-2-introduction-to-multiple-converters Mar 06 10:43:48 I like to develop an app which includes functionality like push notifications, and also access to the user's accounts (e.g. facebook for login), and maybe some fancy interaction, like swiping, as known from tinder.... Mar 06 10:44:18 Will meteor.js also be a desirable framework of joice? Or do you recommend a native app? Which technology stack is well fitting for the above described needs. Mar 06 10:44:49 I do not do the next average dating app, of which we already have enough, but maybe you can take a dating app (such as tinder) as an example to picture my needs in mind. Mar 06 10:45:49 Melatonina, first link deals with multiple converters of different types (gson, xml), while I need different conversions for the same type (gson) Mar 06 10:46:37 tokam, we don't really deal with meteor.js here so we can. it's mostly for native (java, rarely C++) development here Mar 06 10:46:47 *so we can't really help you Mar 06 10:46:58 Ok, is there anything preferable with native java and c++= Mar 06 10:47:04 why would you talk agains meteor. Mar 06 10:47:47 tokam, i don't know anything against meteor. it's not the standard way of doing android, so few people here will be able to answer questions regarding that. Mar 06 10:48:12 Ok Mar 06 10:48:37 *know anthing about meteor ... jeez, what's with my wording today... and with accidentially hitting enter instead of ' Mar 06 10:48:40 Syzygy: Is 40.000€ for a Tinder like prototype a suitable price? Mar 06 10:49:20 tokam, sounds high to me. but I don't know anything about your workforce, paygrade, timescale and actual scope. Mar 06 10:49:41 ok Mar 06 10:49:50 better to high than too low Mar 06 10:49:51 also, i never had to use tinder, so i don't even know the scope of that. Mar 06 10:50:02 "Retrofit has a simple way of dealing with this issue. First of all, it checks with every converter if it’s able to deal with this specific data type. If the passed converter cannot understand some data, it won’t be considered for the request (but will be asked again for the next request). The order of checks is done by first-come first-serve. That means the first converter you pass to Retrofit with addConverterFactory() will be chec Mar 06 10:50:03 ked first. If the first converter accepts the challenge, the rest of the list will not be asked." Mar 06 10:50:09 were are you from Syzygy? Mar 06 10:50:18 austria Mar 06 10:50:25 If you are from Silicon Valley prices might be higher from you, than if you were from Estonia. Mar 06 10:50:43 I am from Germany. Our pricing levels are equal. Mar 06 10:51:02 tokam, afaik german prices are higher Mar 06 10:51:18 Syzygy: I thought I linked this one, sorry: http://stackoverflow.com/questions/33404734/multiple-converters-with-retrofit-2 Mar 06 10:52:03 Melatonina, those links are unrelated to my question. Mar 06 10:52:33 actually the last one is related. Mar 06 10:52:36 thank you Mar 06 10:52:54 np Mar 06 10:53:14 the second is related but it's very terse Mar 06 11:00:35 well, can only read the first two articles without paying. The stackoverflow link does not apply to my issue after all.' Mar 06 11:03:30 then I didn't understand your issue Mar 06 11:07:13 The things you mentioned all dealt with different types of content, e.g. they had an XmlConverterFactory and a GsonConverterFactory, or some other way to differentiate between classes with a custom converter. In my case different parts of the API require different gson converters (e.g. one uses time as a HH:mm string, while the other uses unixtime), but it's all gson, so I don't have a way to differentiate between them. Mar 06 11:09:17 brb. Mar 06 11:09:45 oh ok Mar 06 11:11:35 I would create two interfaces and wrap them in another class Mar 06 11:12:11 or thread the dates as string and parse them on my own Mar 06 11:13:08 or fix the API, if possible Mar 06 11:24:02 Hi Mar 06 11:24:48 I am trying to flash a nexus 5x but when trying to unlock the bootloader I get this error: $ fastboot flashing unlock Mar 06 11:24:48 ... Mar 06 11:24:49 FAILED (remote: oem unlock is not allowed) Mar 06 11:24:50 finished. total time: 0.020s Mar 06 11:24:52 any ideas? Mar 06 11:25:11 #android-root Mar 06 11:26:38 okay, thanks! Mar 06 11:30:26 Melatonina: oh hi there Mar 06 11:31:14 thepoosh: hi! :) Mar 06 11:31:24 sup dude? Mar 06 11:32:33 Started to rewrite my backend in using kotlin, spring boot and MariaDb Mar 06 11:33:03 I have to vomit in my own mouth, you're such a fanboy Mar 06 11:33:07 :P Mar 06 11:33:26 Why do you call me a fanboy? Mar 06 11:39:59 Syzygy, I'd use jackson Mar 06 11:40:20 Melatonina: i treat all Kotlin users as fanboys Mar 06 11:42:01 ah :) I found a job offer talking about it. Anyway, I wanted to move to a Java/MariaDb stack for the backend but I hate Java so I thought I could learn Kotlin basics. Mar 06 11:44:00 and he timedout... Mar 06 11:44:07 just as I was writing a more detailed answer Mar 06 11:46:24 Syzygy, I didn't read your problem description from start to finish though; but with jackson you can use annotations to use a specific de/serializer for each field Mar 06 11:48:16 and a bunch of much more complex stuff too Mar 06 11:48:20 Zharf, i'm using retrofit, so I'm not sure if that could work together. Mar 06 11:48:25 Syzygy, they do Mar 06 11:48:47 http://eclipser.xmms2.org/git/wanikani.git/tree/app/src/main/java/org/xmms2/eclipser/wanikani/api/ApiModule.java#n59 Mar 06 11:48:54 thanks Mar 06 11:49:23 http://eclipser.xmms2.org/git/wanikani.git/tree/app/src/main/java/org/xmms2/eclipser/wanikani/api/model/UserSpecific.java#n67 Mar 06 11:49:35 http://eclipser.xmms2.org/git/wanikani.git/tree/app/src/main/java/org/xmms2/eclipser/wanikani/jackson/WanikaniTimestampDeserializer.java Mar 06 11:50:09 so you can just write multiple of those deserializers and choose which one to use with the annotation Mar 06 11:51:28 the tradeoff is that jackson's quite a bit larger than gson, about 9.6k methods Mar 06 11:53:04 This project is already using jackson anyway, so that's not a problem. I'll try to see how I can make this work. thank you. Mar 06 12:07:56 thepoosh: plus Kotlin is a pragmatic language by design and it's not much different from other languages I already somehow know. Learning Kotlin doesn't look like a big effort Mar 06 12:20:26 Syzygy, if you have any questions about jackson, I might be able to answer them Mar 06 12:20:51 thanks for the offer, for now i'm good. Mar 06 12:33:30 Melatonina: dunno, it wasn't natural to me when I went over the docs a few months ago Mar 06 12:37:21 I looked at it briefly a couple of months ago and it looked pretty simple, except that I never understood the type after name style declarations Mar 06 12:39:41 all the generation of languages with terse syntax that mix functional and object oriented programming (like Nemerle or F#) look a bit similar, since they borrow from Haskell, OCaml etc. Mar 06 12:42:08 I'd still prefer to wait a few years for it to grow up Mar 06 12:44:08 Hi, what resolution should I supply for an image? Or even multiple? It's not an icon, more of a photo. Mar 06 12:44:43 (it's for an instruction on how to scan QR-Codes) Mar 06 12:45:11 that's such a hard question Mar 06 12:45:57 I guess one resolution is ok, I guess android downsamples ok and with the high dpi of mobile screens aliasing is even less of a problem Mar 06 12:46:25 So I just take a resolution that's higher than 80-90% of devices? Mar 06 12:48:52 is it a QR-Code image? Mar 06 12:48:56 no Mar 06 12:50:08 what if you use a good image for the best device? Unless it's huge, the others won't have problems Mar 06 12:50:09 Zharf, Kotlin is all grown up :) Mar 06 12:50:20 Melatonina, just something like this, the QR-Code does not have to be scanned. http://malea.lacerta.uberspace.de/up/949a1bd2-369f-4d1e-b6e3-34a8b9fffacc.png Mar 06 12:50:45 anotheryou, supply the exact resolution your view is Mar 06 12:50:48 Mavrik, 1.0 release never means properly grown up :p Mar 06 12:50:54 Zharf, 1.1.0 actually :) Mar 06 12:51:01 I'll try 3.x maybe Mar 06 12:51:13 *shrug* your loss, we moved everything to it Mar 06 12:51:13 Mavrik, screen sizes differ, I want to show it full width Mar 06 12:51:17 after testing it for a year Mar 06 12:51:22 anotheryou, ew. Mar 06 12:51:34 You just caused yourself a boatloat of headaches and testing problems. Mar 06 12:51:37 Congratulations :P Mar 06 12:51:43 (Seriously, center the image if you can.) Mar 06 12:51:54 ^ Mar 06 12:52:26 Mavrik, hehe, you might be right. well than I have to re-do the design too... Mar 06 12:52:36 so it has no gradient in the background Mar 06 12:53:37 could you paint the gradient with code / theme and just add content to an image? Mar 06 12:53:55 the problem with screen-spanning images is that devices really have a lot of different screen sizes and aspect ratios Mar 06 12:54:13 and it's usually best if you just say "image is 300x300dp" and then compensate with margin / padding for those differences Mar 06 12:54:25 and with that you then also know exactly what resolution you need to make it not look fuzzy Mar 06 12:54:50 how unsatisfying :) but thank you Mar 06 12:55:11 but how do you do it with other stuff? header images for some cards for example Mar 06 12:55:43 I'll have yet to test if I need to load different resolutions for different devices Mar 06 12:56:00 those are usually cropped a bit Mar 06 12:56:14 if they don't fit the AR Mar 06 12:56:16 that doesn't effect the resolution problem Mar 06 12:56:31 ah, you mean, instead of downsizing you crop a bit? Mar 06 12:56:48 yeah, e.g. view is defined as 300dp wide or something Mar 06 12:57:19 and then you add an image and set scaleType to centerCrop Mar 06 12:57:22 hmmm, not sure that will work for me XD Mar 06 12:57:56 basically, since AR of Android device screen can change, you usually design the UI in a way that you have paddings / margins that can compensate a bit :) Mar 06 12:58:04 or you have a stretchable view that takes more space Mar 06 12:58:08 e.g.: http://malea.lacerta.uberspace.de/up/1ce73b06-1bec-4dc9-9911-e14e339942d5.png would look really bad if I cropped away the top of the bottle Mar 06 12:58:10 usually not an image tho Mar 06 12:58:21 then resize the card :) Mar 06 12:58:33 I think I'll just live with the occasional slight blur or anti-alias Mar 06 12:58:40 haven't seen it very annoying yet Mar 06 12:59:08 and worst case I serve different image sizes, they are coming through an api/the web anyways Mar 06 13:10:35 thepoosh lets go http://bigthink.com/david-ryan-polgar/now-thats-recruiting-free-trip-to-new-zealand-for-top-tech-talent Mar 06 13:11:00 are you top talent? Mar 06 13:11:19 i shud be Mar 06 13:11:31 pf Mar 06 13:11:35 or just fly there for like Mar 06 13:11:37 $80 Mar 06 13:11:42 80$ Mar 06 13:11:47 oooooooorly Mar 06 13:11:50 yeah Mar 06 13:12:03 thats like a 1500$ trip from here Mar 06 13:12:08 :D Mar 06 13:12:22 I've seen them for half that though Mar 06 13:12:28 so let's say $80 round-trip Mar 06 13:13:46 tx http://i.imgur.com/uielJFX.png Mar 06 13:13:55 3stops /: Mar 06 13:14:48 turkish?! Mar 06 13:14:52 defaq Mar 06 13:15:01 wow shock Mar 06 13:15:06 people are from around the world here Mar 06 13:16:47 turkish is a good airline Mar 06 13:17:04 u coming thepoosh? Mar 06 13:17:09 hell no Mar 06 13:17:12 \: Mar 06 13:17:13 I'll come I guess Mar 06 13:17:18 it's quite a lot of money to fork out Mar 06 13:17:20 but I may as well. Mar 06 13:17:22 :P Mar 06 13:17:46 nz shud be nice Mar 06 13:18:08 wellington is in hobbitland no? Mar 06 13:18:08 it's pretty nice, yeah Mar 06 13:52:03 * thepoosh raoul11's the heck outta raoul11 Mar 06 13:52:23 but whay Mar 06 13:52:56 I'm pissed Mar 06 13:53:02 por que amigo? Mar 06 13:53:12 was asked to give an effort estimation to something I really don't want my company to do Mar 06 13:53:22 rejected? Mar 06 13:53:31 that is not how it hapens Mar 06 13:54:00 what happend? Mar 06 13:54:18 we are going to sell children to sudi arabia Mar 06 13:54:48 sounds like a good plan Mar 06 13:55:28 and why dont you want to do that Mar 06 13:56:07 Ashiren: we're looking for ways to make money Mar 06 13:56:12 lots of kids around Mar 06 13:56:18 money is overrated thepoosh Mar 06 13:56:18 employees like me keep on making them Mar 06 13:57:17 raoul11: I'll take yours Mar 06 13:57:24 kek Mar 06 13:57:33 i dont haz any Mar 06 13:57:54 unless villa guys hire me Mar 06 13:58:01 than u can haz it all Mar 06 13:58:11 thought you're going to NZ Mar 06 13:58:37 and become a kiwi Mar 06 13:59:15 mrs says no Mar 06 13:59:44 you know what varda raziel says about this Mar 06 13:59:47 plus, am not sure am a top tech talent Mar 06 13:59:53 but you have 50% of the say Mar 06 13:59:55 no i dont know what varda says Mar 06 13:59:57 rounded up that's 100% Mar 06 14:00:21 50% huh Mar 06 14:25:43 hey guys Mar 06 14:26:36 I'm trying to parse this response with Retrofit https://hastebin.com/iyadozenis.json but the issue is that those keys that you see there..I need to work with them and they're not made as values along with the country's name, you see an idiot built this api Mar 06 14:26:47 how can I use those keys as..values after parsing the response Mar 06 14:28:16 oh my Mar 06 14:30:35 what do you think Mar 06 14:30:52 $%$^#$!! Mar 06 14:31:02 I'm kind of glad that he's an idiot Mar 06 14:31:02 glad im not the one doing it Mar 06 14:31:10 makes me feel better about myself Mar 06 14:32:33 found this http://stackoverflow.com/questions/20442265/how-to-decode-json-with-unknown-field-using-gson Mar 06 14:33:25 "code": 200 Mar 06 14:33:26 ffs. Mar 06 14:33:30 I would beat people for doing that :D Mar 06 14:34:56 we're going to their offices tomorrow to do that Mar 06 14:35:03 it's a girl I think Mar 06 14:35:24 seems to be a typical thing in the php world Mar 06 14:35:32 I don't get where that comes from. Mar 06 14:35:36 girl world Mar 06 14:35:41 It makes any kind of error handling really annoying. Mar 06 14:35:54 maybe some kind of misguided microservice design? Mar 06 14:36:13 just an incompetent programmer Mar 06 14:37:43 i bet its former android engineer Mar 06 14:41:03 Hi! I'm trying to run my app but it doesn't work to run: https://puu.sh/uwCFj/412501401d.png there is no module there. What should I do? Mar 06 14:45:23 try { return; } catch() { return; } finally {} will something like this ever reach the finally block? Seeing a sample like that. Mar 06 14:46:03 3rd code block https://futurestud.io/tutorials/retrofit-2-how-to-download-files-from-server Mar 06 14:47:22 Syzygy_, finally will execute Mar 06 14:47:29 it's not a good style tho Mar 06 14:47:35 should probably refactor it Mar 06 14:49:01 Interesting. I thought a return would prevent everything after it... but I guess there are exceptions. Mar 06 14:52:20 fwiw, generally try-with-resources handles what the old-school finally blocks get used for, and perhaps is more readable as well. Mar 06 14:53:33 Syzygy_, finally behaves in a certain way, this is why using return in catch is very confusing Mar 06 14:53:43 and yeah, try-with-resources can save a lot of these strange cases Mar 06 14:55:08 reading up on that. and on some special cases. Mar 06 14:58:55 ah, try with resources requires api 19+ Mar 06 15:02:23 Do anyone understand the "plugin with id 'com.android.application' not found" error? I have googled but it doesn't work Mar 06 15:09:36 anyone has some experience with in-app purchases who can tell me ± how hard is it to incorporate it into an existing application and maybe point me in the right direction for more instructions? Mar 06 15:09:36 I was asked to give an effort estimation for integrating in-app purchases and subscriptions Mar 06 15:13:29 Is there a roadmap as to when Instant Run will be available for Jack compiler and Java 8 source code compatibility? Mar 06 15:19:11 well not now Mar 06 15:19:15 disregard it Mar 06 15:22:39 "When it's done" :) Mar 06 15:24:40 Yeah, I know "it's done when it's done" , but is there a public issue somewhere in the bug tracker for this? Mar 06 15:24:54 so that I can follow up on it and maybe help test it... Mar 06 15:25:52 I guess I have to work for Google to find the answer to my question :-) Mar 06 15:29:28 https://code.google.com/p/android/issues/list?can=2&q=jack+instant doesn't yield any relevant results from what I can see Mar 06 16:25:39 i'm noticing that when I call FloatinActionButton#hide() in my coordinator layout behavior, it seems to break the behavior where onNestedScroll no longer gets triggered. Mar 06 16:25:53 any ideas why? Mar 06 16:28:20 hi guys.. imagine this scenario. a service that updates to sql server... what is the best way to send new data...? With a thread and a timer or with a broadcast receiver? Mar 06 16:29:47 The intentservice with alarmmanager will probably be the simplest way to handle that Mar 06 16:32:32 Wintereise: Mar 06 16:32:34 yes Mar 06 16:33:04 but I need to send new data everytime new data is available.. alarmmanager can only send at a specific time, isn't that right? Mar 06 16:40:06 Indeed. How do you get new data? When an activity is called? If so, you can call the service directly from there (it runs on a separate thread by default) Mar 06 16:40:23 Broadcasting also works, but is typically used to notify multiply apps/services of events instead of just 1 Mar 06 16:40:37 If you feel you might need to add more receivers in the future, broadcasting is prob the way to go Mar 06 17:45:48 Wintereise: sorry for my latness Mar 06 17:46:45 latteness Mar 06 17:46:51 a state of being like coffee Mar 06 17:47:34 rippa: thks Mar 06 17:59:24 * mrandroid likes winter time and snow and skiing Mar 06 18:03:46 hi Mar 06 18:04:02 anyone knows here about fcm? Mar 06 18:04:19 if you have a question, please feel free to ask it. if someone can help, they will Mar 06 18:05:28 if yes, then when do we need to call this method getData().size() Mar 06 18:06:01 as i only have to create notifications using fcm , so do i need this getData() method? Mar 06 18:06:14 along with getNotification()?? Mar 06 18:20:22 hutiye sale Mar 06 18:54:07 Hi, I'm trying to run Android Marshmellow Browser on hardware without OpenGL support. How do I go about having software renderer instead? Mar 06 18:55:55 hi Mar 06 18:56:03 my fcm is not respinding Mar 06 18:56:08 responding Mar 06 18:56:27 the broadcast receiver is not starting Mar 06 18:56:36 but earlier with gcm it was Mar 06 18:56:51 rschaefer23: would software rendered WebView suffice? Mar 06 18:57:23 can anyone tell me what to do to get a start a fcm? Mar 06 18:59:18 Sure, is WebView different from what drives the built-in Browser? Mar 06 19:02:14 as for rendering webs, i dont think much Mar 06 19:02:29 https://developer.android.com/guide/topics/graphics/hardware-accel.html Mar 06 19:02:40 you can either disable acceleration for whole app, activity or the view Mar 06 19:04:29 My problem is the built-in browser with marshmellow errors with "chromium: [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)" Mar 06 19:04:42 Built in browser, or Chrome? The two are different Mar 06 19:05:08 So with Marshmellow on words, it seems the built-in browser uses chromium backend Mar 06 19:05:15 but yeah, you’d probably be better off using the WebView Mar 06 19:14:18 When I list my connected devices with "adb devices", my connected Samsung isn't showing up. I have usb debugging enabled, installed google usb driver and installed samsungs usb drivers and restarted my pc. But it still doesn't show. What else might I've missed? Mar 06 19:15:20 try unplugging and replugging the device, and then if that doens’t work, restarting ADB Mar 06 19:15:25 you’re on Windows, I take it? Mar 06 19:15:28 yes Mar 06 19:15:53 well I've replugged the device multiple times already, gonna try restarting adb Mar 06 19:17:20 nope didn't do anything. Mar 06 19:17:42 double check that USB debugging is enabled Mar 06 19:17:52 If it's actually connected to the USB data bus, it'll show up in the device manager under the usual "god only knows" non-category Mar 06 19:18:04 i.e., it'll appear when it's connected and not when it isn't Mar 06 19:18:19 If it's not showing up there, then the cable you are using is fault and will never, ever work Mar 06 19:18:26 s/fault/faulty/ Mar 06 19:21:47 With the drivers you say you've installed, you should see a top-level "SAMSUNG Android Phone" entry appear Mar 06 19:37:09 When I run `gradle build` in a multi-project gradle project where one of the projects is an Android project, how does it determine which of my buildTypes to use? Mar 06 19:37:53 s73v3r, reinstalled all the drivers seemed to work. Mar 06 20:13:45 good evening Mar 06 20:33:14 I'm trying to build a kernel with Loadable Kernel Module support and a couple of extra modules and I'm getting this error. Any ideas on how to fix it? I couldn't find modules.h but I did find a module.h. fatal error: linux/modules.h: No such file or directory Mar 06 20:42:18 You probably don't want to do that Mar 06 20:44:37 #android-root Mar 06 20:44:57 Oh that's not even a root problem. It's a white-hot mess. Mar 06 20:45:24 He's gonna have to construct a clean build envioronment to get around that particular mess Mar 06 20:45:28 wrong channel Mar 06 20:47:11 android root covers building from aosp Mar 06 21:00:55 They might not have the sense to say "Enabling loadable modules is going to add more complexity without adding an equivalent level of value" Mar 06 21:01:33 Unless someone's actively engaged in hardware development (which is highly unlikely) kernel modules are not their friend Mar 06 21:04:32 kernel modules are not friendly with hardware development Mar 06 21:04:42 Actually they are Mar 06 21:04:44 I suppose if you never make a mistake, you might be able to reload a module without crashing Mar 06 21:05:03 but for the most part, if you fuck something up, you're gonna need to reboot anyway Mar 06 21:05:18 If you write extreme shitcode, yeah your modules might cause a kernel panic Mar 06 21:05:41 where extreme shit code = no mistakes Mar 06 21:05:45 If you don't write flaming shitcode, on the other hand, your modules will handle bizarre responses from hardware _gracefully_ Mar 06 21:05:48 rather, any mistake Mar 06 21:06:09 But I understand the new cool hipster thing to do now is never check the exit status of anything and always assume everything Mar 06 21:06:45 Whereas, _my_ fucking code is generally about 60% safety checks. Mar 06 21:07:27 the day when we can write kernel modules in rust... Mar 06 21:08:05 Rust will not compensate for being a shitcoder Mar 06 21:08:36 no, but it does make it harder for you to fuck up royally Mar 06 21:09:16 sure, by allowing users to recycle code written by real programmers Mar 06 21:09:40 fuck anyone who uses the “real programmers” fake machismo bullshit Mar 06 21:10:15 "Real programmers" don't use FoTM languages and then look all suprised when it turns out their i18n routines are hellishly unsafe Mar 06 21:10:17 I bet you people don't even program with butterflies Mar 06 21:10:43 "Real programmers" use parameterized queries instead of stacking bullshit escape routines together and crossing their fingers. Mar 06 21:12:04 actually, rust is relatively difficult for "non-real programmers" Mar 06 21:12:20 as evidenced by people fighting the borrow checker constantly Mar 06 21:12:45 (basically, if you're fighting the borrow checker in rust, you're doing it wrong) Mar 06 22:05:59 I'd really like to like Linux but its GUI is still clumsy compared to Windows Mar 06 22:06:38 ^ I wrote it here because if I'd write that in the proper channel (##linux) I'd get banned. Mar 06 22:07:09 mmyeah win 8/10 gui is a disaster, I'll take xfce over it any day Mar 06 22:09:30 Meh. I never had a problem with Win 8/10 GUI Mar 06 22:09:54 I'm fine with Windows 10 Mar 06 22:10:12 tga: Is xfce better than the default Ubuntu desktop? Mar 06 22:10:24 yes Mar 06 22:10:29 unity is also crappy Mar 06 22:10:36 I'll try that then, thanks for the suggestion Mar 06 22:10:43 xfce is also lighter on resources Mar 06 22:11:00 I’ve also though XFCE was fine, although I’m pretty sure most Linux GUI stuff is written in QT or GTK anyway Mar 06 22:11:11 lxde is another good option, but uglier imho Mar 06 22:11:21 fluxbox all the way :) Mar 06 22:11:22 xfce is gtk yes Mar 06 22:11:31 win10 is great Mar 06 22:11:32 As much as I love linux, ive reverted to windows because things just work Mar 06 22:11:35 eh fluxbox doesn't do a whole lot, can't really compare it with windows Mar 06 22:11:39 no more tinkering trying to find the right driver Mar 06 22:11:43 or get package manager to work Mar 06 22:11:46 yeah macs are like that Mar 06 22:11:50 way more than windows Mar 06 22:11:51 or any of that junk Mar 06 22:12:02 mac laptop + linux vm = great productivity Mar 06 22:15:17 no need for a linux vm most of the time on a mac Mar 06 22:19:45 true, I just like to separate my work machine from hardware Mar 06 22:19:53 laptop dies, I can continue working on any other machine Mar 06 22:21:13 big downside is that the damn thing tends to get big, this version is at ~60GB and growing Mar 06 22:21:27 yeah, i like to work inside a vm too, when possible Mar 06 22:22:08 also some ppl should realize (it's never too late), that most major OS (linux, win, osx, BSD (yes i separate them from osx) have all pro & con, simply Mar 06 22:22:16 and no one force them to use any Mar 06 22:22:44 they go in cycles, it's sad when they're correlated Mar 06 22:22:47 fanboyism is as stupid as sectarism to me Mar 06 22:23:12 like ~5 years ago was much better for everyone imho Mar 06 22:23:16 lol Mar 06 22:23:55 What _wins_ is virtual hardware Mar 06 22:24:05 Never having to route another fucking ribbon cable Mar 06 22:24:27 depends on what you do, i had few issue with some real usb device with virtualbox and vmware Mar 06 22:24:40 that's a solved problem, now everything comes soldered on the motherboard Mar 06 22:24:40 ONly having a small number of dinky fans to check and replace, as opposed to 20 of the damn things Mar 06 22:24:40 even if they are CCID compliant or other stuff Mar 06 22:25:12 Being able to spin up a whole new VM in _minutes_ instead of spending an hour with a screwdriver pushing big pieces of metal around Mar 06 22:25:24 but it gets so much better across the years, now on windows for example, you can even virtually forward your hardware! Mar 06 22:25:25 ...not to mention being able to skip the 24/48-hour burnin tests Mar 06 22:25:31 looks like vmware desktop stuff is going away, and virtualbox isn't exactly a successful product Mar 06 22:25:37 not sure what virtualization will be like in a few years Mar 06 22:26:09 more stuff virtualized, like xen does Mar 06 22:26:17 virtualize all-the-things, even dma Mar 06 22:26:30 it started with only the cpu and few things Mar 06 22:26:39 i expect they will virtualize gpu too Mar 06 22:26:56 that's good for servers but still a problem for laptops Mar 06 22:27:00 one day, they will virtualize us, humans Mar 06 22:27:06 you need a guest with proper drivers, suspend, etc Mar 06 22:27:18 err host Mar 06 22:38:06 I dunno. I feel using a VM for that reason is kinda odd, especially because a good backup will do it better Mar 06 22:50:13 So when you guys want to go into how Android works, when you want to learn what it’s doing under the hood, what resources do you turn to? Mar 06 22:51:25 A shell. Mar 06 22:51:29 Sometimes source code Mar 06 22:52:12 i was hoping for a book, but ok. How do you use that shell? What kinds of things does it help you work out? Mar 06 22:52:30 Greater visibility into the live system Mar 06 22:52:49 For being space-efficient, there's still a whole lot of scripting going on Mar 06 22:53:33 Quite a lot of stuff can be narrowed down to a small number of possible culprits, and once they stop being transparent, you can usually dig into the source Mar 06 22:54:28 ...but it's LOTS of research Mar 06 22:54:49 ...where "LOTS" can easily include the results of years worth of prior research. Mar 06 22:54:53 yeah, i figured it would be Mar 06 22:55:20 Without decades of Linux experience on esoteric hardware, I'd be pretty f**ked for a lot of this Mar 06 23:01:14 I’m not really looking for troubleshooting, but more of an exploration on how Android wortks Mar 06 23:01:18 works Mar 06 23:06:48 s73v3r: I searched Quora for your question. Non idiotic answers mention only AOSP, AndroidXRef and the book "Embedded Android" by O’Reilly Mar 06 23:07:01 AndroidXRef? Mar 06 23:07:14 Mainly, it's a Linux appliance Mar 06 23:14:04 s73v3r: "AndroidXref - Android Source Code Cross Reference" I stumbled upon it a couple of times but I never used it. It's useful for searching the source code, apparently Mar 06 23:14:14 ok Mar 06 23:47:39 is this still the place to dev or has they moved to slack? Mar 06 23:52:13 who be they of which you speak Mar 06 23:52:28 s73v3r, how it works? browse aosp, pretty much, depends on what part of "how it works" you care about Mar 06 23:52:42 there's lots of moving parts Mar 06 23:53:37 installed aosp code is pretty interesting, isolate and study functional blocks Mar 06 23:53:39 pfn is a name i know Mar 06 23:54:05 i been gone for a while mates, treading web-component waters Mar 06 23:54:20 * capella always learns faster just reading the code than someone else's explanations Mar 06 23:55:36 android studio was only .1 version behind, so hopefully i havent missed much Mar 07 00:05:22 rdnt: is android dev significantly saner than web? Mar 07 00:06:22 yes Mar 07 00:06:33 woo, sign me up Mar 07 00:15:48 there is a #android channel in kotlinlang.slack.com Mar 07 00:25:17 s73v3r yeah i don't think there is an android internals books, like something mark russinovich would do Mar 07 00:34:02 There is Android Hacker's Handbook, but it's not specific at all to internals but cover some part of it Mar 07 00:34:13 (it's mainly focused on security) Mar 07 00:48:45 Thanks. For those keeping score at home, so far I’ve been offered AOSP code, poking a running system with a shell, the book Embedded Android, AndroidXRef, and the Android Hacker’s Handbook. I should post this list somewhere for posterity Mar 07 00:49:00 poking a running system with a shell isn't very informative Mar 07 00:49:18 i think that was more from a debugging perspective Mar 07 00:49:21 to some extent, browsing the filesystem and seeing the process list is useful Mar 07 00:49:48 but it's not super helpful for understanding how the pieces fit together Mar 07 01:18:25 Thank god! There's finally a way to keep the goddamn render fidelity warnings out of the way by default Mar 07 01:55:07 i have this error in android studio Error:Process 'command '/home/ramdom/Escritorio/android-studio/jre/bin/java'' finished with non-zero exit value 2 **** ENDING LOGGING AT Tue Mar 07 03:00:02 2017