**** BEGIN LOGGING AT Tue Jun 16 02:59:59 2015 Jun 16 03:02:59 hey all. Is it possible to ignore the "soft" buttons on an android device? Jun 16 03:03:08 on the S4, they're fucking sensitive. Jun 16 03:03:20 I'd rather have my own "back" button Jun 16 03:03:35 ac_slater_: Your users probably don't Jun 16 03:03:53 CedricBeust: in my case, they do ;) Jun 16 03:03:56 they asked specifically for it Jun 16 03:04:27 it's an app that requires the phone to be moved around alot in your hands, etc. They ALWAYS press the soft buttons with their palms Jun 16 03:04:44 but I do understand that could be a bad "feature" Jun 16 03:04:55 Tell your users they're holding their phone wrong, it worked great for Steve Jobs Jun 16 03:04:56 Isn't the entire touchscreen sensitive? Jun 16 03:05:35 TacticalJoke: yea but this app is landscape mode only, and people grab the phone by the flat top surface Jun 16 03:06:20 I hold mine at the edges in landscape. Jun 16 03:06:31 Though it does have a big-enough bezel. Jun 16 03:06:40 yea :( Jun 16 03:06:48 Maybe they could use a selfie stick? Jun 16 03:06:52 lol! Jun 16 03:07:15 I'll put a counter in the OnBackPressed handler Jun 16 03:07:19 like 3 or something Jun 16 03:07:28 You could have it ignore Back but not ignore Up, I guess. Jun 16 03:07:30 Though it is weird design. Jun 16 03:07:47 Not sure about Home or Recent Tasks. Jun 16 03:08:12 interesting Jun 16 03:08:26 Another option is for them to get a thick case. Jun 16 03:09:05 ooh I didnt think of that Jun 16 03:09:16 thanks! Sometimes it's the simple things Jun 16 03:11:27 I currenly have a counter of ~3 and a toast message that explains why it's like that Jun 16 03:13:41 I bet that's fun. :D Jun 16 03:15:05 the 4 people using it like it haha Jun 16 03:15:33 it's not a production thing. Just a 'client' to a larger project Jun 16 03:20:24 http://pastebin.com/nJN9EVkd <- what is layout_below Jun 16 03:21:36 bubbely: Why not google? Jun 16 03:21:47 TacticalJoke: i didn't understand the android docs Jun 16 03:22:30 bubbely: You should spend some time understanding them Jun 16 03:26:55 ok, cedricbeust: i have 3 objects 'wrapped' next to each other, textbox textbox and button Jun 16 03:27:15 now, for layout_below, i want it below these 3 items. do i j ust specify one of these items and im good to go? Jun 16 03:27:17 l Jun 16 03:33:31 ne1? Jun 16 03:33:50 Just try it, yo. Jun 16 03:33:59 what Jun 16 03:35:52 hi? Jun 16 03:37:16 Do you need our permission to try it? Jun 16 03:37:19 Okay, fine, you have permission. Jun 16 03:57:11 can i run snackbar on a api 15 tablet? Jun 16 04:09:39 anyone know why iosched 2015 source code isn't out ? Jun 16 04:09:48 or , will it even be out ? Jun 16 04:14:06 "Source code for the app will be available soon after I/O." ah ok, well at least its definitely coming Jun 16 04:24:29 g00s your mom Jun 16 04:24:34 in yo face! Jun 16 04:24:36 you fell for it Jun 16 04:24:57 damn you ron_frown Jun 16 04:25:11 I cant believe I am gonna say this Jun 16 04:25:18 I'm actually considering going with a fuckng iphone Jun 16 04:25:20 sahmed Jun 16 04:25:21 ashamed Jun 16 04:25:23 but Jun 16 04:25:39 exclamation point! Jun 16 04:25:56 conjunction Jun 16 04:26:44 i'd be game for the 12" iPad if it was affordable Jun 16 04:27:01 is there an appl even right now? Jun 16 04:27:26 either that or Surface Jun 16 04:27:47 never heard of a 12" ipad before Jun 16 04:27:55 paulo_ coming ... i think sep ? Jun 16 04:27:59 either way i'd be game for any cool stuff if it was affordable Jun 16 04:28:20 I'm just past the point of no return with java Jun 16 04:28:23 done with that shit Jun 16 04:28:34 its a fucking disease and the weakest link with java Jun 16 04:28:44 ron_frown: it's not that bad Jun 16 04:28:53 actually i guess 12.9" (@ 263 ppi) Jun 16 04:29:06 an ipad that big must be hard to use Jun 16 04:29:10 how will I type on that thing Jun 16 04:29:44 paulo_ i'd just get it for ebook reader, maybe loading some Korg music software Jun 16 04:29:45 paulo_: Just let him spend a few months with Objective C, he'll understand Jun 16 04:29:55 ron_frown: learn Haskell and write your apps in it Jun 16 04:30:07 if it has anything thing AT ALL Jun 16 04:30:08 with jvm Jun 16 04:30:14 i'm not going to waste my time Jun 16 04:30:18 I'v written objective c Jun 16 04:30:21 It doesnt use JVM Jun 16 04:30:22 and c++ Jun 16 04:30:24 havent fucked with swift Jun 16 04:30:27 paulo_ just saying Jun 16 04:30:36 besides, there exist platform independent Engines Jun 16 04:30:48 for example, Unity. so you don't have to code in Java. Jun 16 04:30:57 thats for games though Jun 16 04:31:23 oh yeah, i guess that's true. Jun 16 04:31:34 yeah unity is nuts Jun 16 04:31:45 I was hoping this was the year Jun 16 04:31:54 I prefer Java, then i use the java to objc compiler for iOS Jun 16 04:31:57 google was going to sever that low hanging fruit Jun 16 04:32:06 java to javascript using GWT for web Jun 16 04:32:07 honestly I'd rather android be c++ with a decent GUI layer Jun 16 04:32:44 one could make the argument you can do that now Jun 16 04:32:47 seems like devs struggle enough with java, i think c++ would be bloodbath Jun 16 04:32:54 heres the thing Jun 16 04:33:03 c++ you can actually add whats missing Jun 16 04:33:06 java you are just fucked. Jun 16 04:33:29 I mean shit even if android was java some version released in the last 5yr Jun 16 04:33:31 ron_frown: care to explain further? Jun 16 04:33:34 ron_frown: I don't even know where to start with that claim Jun 16 04:34:16 i do think the java layer in android should be a thin enough facade over native that its easy to use other languages with good FFIs and have ~100% parity though Jun 16 04:34:31 If you use Java right, you can modular code. Jun 16 04:34:35 and what g00s said Jun 16 04:34:59 *you can write Jun 16 04:35:05 I'll be the first to admit my hatred for java and all things oracle... runs REAL deep Jun 16 04:35:13 but from experience with this crap Jun 16 04:36:14 ron_frown sounds like a good time to sell smart meters http://www.wired.com/2015/06/smart-water-meters-let-cities-spot-drought-defiers/ Jun 16 04:36:16 and I'm not trying to convince everyone else to believe the same Jun 16 04:36:25 ron_frown: Which makes you a bad engineer right out of the bat Jun 16 04:36:38 because choosing the right tool for the job is bad Jun 16 04:36:40 yes. Jun 16 04:36:43 that makes me bad Jun 16 04:37:03 You're not choosing the right tool for the job, you're excluding tools because you don't like their color Jun 16 04:37:19 That's dumb. Jun 16 04:37:24 I've wretten java plenty of plenty of years Jun 16 04:37:34 I've done more with android that probably most people here honestly Jun 16 04:37:50 Not me, I guarantee you that :) Jun 16 04:37:52 I think g00s could probably attest to taht Jun 16 04:38:08 thats fine Jun 16 04:38:13 theres alway ssomeone thats worked on something longer Jun 16 04:38:30 its unfair for me to have established an opinion of something Jun 16 04:38:38 especially on an antiquated old version of something Jun 16 04:38:55 That's not what you did, you said you didn't like Java because you hate Oracle Jun 16 04:39:07 My tool color metaphor stands Jun 16 04:39:13 in other news, my app was download 50k times in a one month period \o/ Jun 16 04:39:13 actually no I didnt Jun 16 04:39:17 I do happen to hate oracle as well Jun 16 04:39:31 but thats more business practices and false advertising Jun 16 04:40:35 I ask the why question Jun 16 04:41:07 I feel like I'm the crazy person for asking why gradle exists, or why it has to be slow, or why it has to rape the shit out of your machine when its syncing... and that being said, how the fuck is that what people chose? Jun 16 04:41:27 I'm actually kind of with you on that opinion Jun 16 04:41:36 ^ same here Jun 16 04:41:43 thats more java community than java as it pertains to android Jun 16 04:42:34 I've done android since g1 days... and put up with it that long... through many versions of terible eclipse integration Jun 16 04:42:35 etc Jun 16 04:42:55 in about nov I was thrust right back into the java enterprise dev world Jun 16 04:43:17 and keeping an open mind, I got back into developing mvc web apps etc Jun 16 04:43:33 I get why there are people dedicated to tuning java web app servers Jun 16 04:43:50 because I've seen them perform fast, but I'll be damned if I could get them to perform fast Jun 16 04:44:57 without performance analysis its hard to say. maybe somebody ran a dumb query Jun 16 04:44:58 shit like elasticsearch / hadoop impresses me Jun 16 04:45:13 g00s we took somethign we built in .net, ported it to java Jun 16 04:45:21 I ran it across people I'd consider reputable in the java world Jun 16 04:45:27 technologies to use, etc Jun 16 04:46:09 ron_frown did you see this from today (ibm, spark) http://techcrunch.com/2015/06/15/ibm-pours-researchers-and-resources-into-apache-spark-project/ Jun 16 04:46:21 but i've used plenty of ibm java stuff too, and its pretty crappy as well :D Jun 16 04:46:55 ihonestly my personal opinions on hadoop and the many engines and shit that sits on top of it Jun 16 04:47:04 handles payloads nothing else can, but slow as hell for anything Jun 16 04:47:09 cassandra Jun 16 04:47:13 impresses me Jun 16 04:47:18 elasticsearch is amazing Jun 16 04:51:38 g00s when i was telling my boss going with java now is like putting the first nail in the coffin that was what he told me Jun 16 04:51:43 ron_frown: Look at Kotlin. Jun 16 04:51:45 lots of people use java for enterprise shit Jun 16 04:51:49 "who?" Jun 16 04:51:50 It's Java without the "blah". Jun 16 04:51:51 ibm Jun 16 04:51:52 HAHAHAH Jun 16 04:51:58 jvm Jun 16 04:52:01 hate to say it Jun 16 04:52:24 you can polish that turd through any number of mechanisms Jun 16 04:52:30 I mean its gotta be better than hava 1.6 or whatever Jun 16 04:52:59 i wish we had multi-tenant jvms on desktop Jun 16 04:53:06 Oh, gawd, I hated C++ with a passion. I used it for around six years. Hated every minute. Jun 16 04:53:08 what do you mean by that Jun 16 04:53:13 haha Jun 16 04:53:14 I never understand when people say "I wish we could use C++". Jun 16 04:53:27 There are only two possibilities: (1) they are clueless about C++ (2) they are insane. Jun 16 04:53:40 I dont know why... theres just something about c++ that appeals to me... its very... theraputic Jun 16 04:53:51 i'd probably save a lot of memory having one jvm running my AS, gradle daemon, and stuff like eclipse monitor, etc Jun 16 04:53:56 it lends itself to having the SHIT violated out of it Jun 16 04:54:13 hey guys, im using this code to restart the app: http://paste.ofcode.org/4A53BAxm3z4fLPp2VJaNkk how can i restart the app in 10 seconds instead? Jun 16 04:54:52 I heard jetbrains couldnt get somethign to work or perform with the latest oracle jvm and so they just wrote their own Jun 16 04:55:32 only think i liked about c++ is sometimes you really want control over memory, and that is pretty deterministic. but if you are doing long running c++ stuff, you really need stuff like valgrind, purify, coverity Jun 16 04:55:50 well some of that is HELPED by the c++11 shit Jun 16 04:55:56 scoped ptr etc Jun 16 04:56:04 Even though Rust looks complicated (e.g., the borrowing system), I'd quite happily start a big project in Rust. Jun 16 04:56:05 I think without c++11, stuff could be painful Jun 16 04:56:11 Because, unlike C++, it looks well designed. Jun 16 04:56:22 I've heard good thigns baout rust Jun 16 04:56:28 but you cant build android apps in rust can you? Jun 16 04:56:29 Can't imagine why anyone would go to manual memory management without being forced to Jun 16 04:56:41 CedricBeust embedded Jun 16 04:56:56 I know you are supposed to be able to build c++ apps in android stuff, but havent had the best experiences with ndk Jun 16 04:56:58 Yeah, you can't really use Rust for Android. Jun 16 04:57:15 synax for kotlin seems odd to me Jun 16 04:57:21 Which part? Jun 16 04:57:22 g00s: yes, hence why I said "being forced to" Jun 16 04:57:26 kidna reminds me of a bit of objc, a bit of swift Jun 16 04:57:57 rust has a concurrency story unlike c++ though (am i right? i don't recall anything in the language) Jun 16 04:58:15 CedricBeust: what do you mean manual memory management? Jun 16 04:58:17 like in C? Jun 16 04:58:25 C has automatic memory management. Jun 16 04:58:32 squ: No it doesn't. Jun 16 04:58:38 I'm talking about garbage collection Jun 16 04:58:38 squ lolwut Jun 16 04:58:54 { int array[10]; } Jun 16 04:58:54 This is awesome in Kotlin: list.forEach { println(it) } Jun 16 04:58:59 this is automatic Jun 16 04:59:10 is collected automatically Jun 16 04:59:21 malloc free don't count :D Jun 16 04:59:23 squ: Yes for stack vars, no for heap Jun 16 04:59:43 The ability to pass functions outside the parameter list (if they're the last arguments) in Kotlin is pure awesomeness. Jun 16 04:59:56 important real-time platforms deny use of malloc Jun 16 05:00:00 The difference is huge. Jun 16 05:00:20 Take away two little symbols and readability goes up significantly. Jun 16 05:01:01 TacticalJoke did you see ... Manning coming out with a kotlin book Jun 16 05:01:08 some of the kotlin guys are writing it Jun 16 05:01:25 Oh, that's cool. Jun 16 05:01:27 I missed that somehow. Jun 16 05:01:29 books already? isn't it still in heavy dev ? Jun 16 05:01:31 I rarely check Twitter nowadays. Jun 16 05:01:40 I think they're expecting 1.0 to hit this summer. Jun 16 05:01:47 TacticalJoke: nothing interesting, I've checked just now Jun 16 05:01:58 What's not interesting? Jun 16 05:02:02 twitter Jun 16 05:02:27 Oh. Yeah. It's like getting cat facts in SMS. Jun 16 05:02:43 irc is better Jun 16 05:02:45 :P Jun 16 05:02:52 twitter should get into IoT, those dumbasses Jun 16 05:03:05 The tiny character limit they have is really annoying. Jun 16 05:03:35 are they thinking about raising it ? Jun 16 05:03:41 i thought i read something Jun 16 05:03:44 anyone have any deeper grokking of the Apache 2.0 license? does it imply you have to e.g. have a display _in your app_ of the stuff you're including, or is adding a license _file_ to the APK sufficient? Jun 16 05:03:50 Didn't hear anything like that. Would be cool if so. Jun 16 05:04:09 thats about the most innovation we can expect out of twitter :) Jun 16 05:04:15 TacticalJoke: it doesn't make sense Jun 16 05:04:39 it gotta turn into blog with raised limit Jun 16 05:04:58 who cares, anyway Jun 16 05:19:37 I wonder how the world will react to Kotlin 1.0. Jun 16 05:20:02 I hope Android people start jumping ship en masse. Jun 16 05:20:30 TacticalJoke hehe, i doubt it Jun 16 05:22:05 outside of android the language hasn't seemed to garner much momentum; and within android's community its mostly because the status quo sucks pretty bad Jun 16 05:25:19 i wonder if they are making the same mistake stroustrup made with c++ Jun 16 05:26:39 The mistake of trying to make a popular language rather than a good language? Jun 16 05:27:31 stroustrup's decision (right or wrong, up for debate) was bring OO to the masses (C programmers) by maintaining compat with C-style decl syntax Jun 16 05:28:27 although it has some nice things (basically, just stuff missing from java) i doubt it goes far enough to be more than sugar ontop of what java has already Jun 16 05:31:28 I agree with what Andrey Breslav says in one of the Kotlin videos -- it's way more than syntax sugar: it's different abstractions. Jun 16 05:33:37 meh. powerful abstractions to me are things like metaobject protocol Jun 16 05:35:36 <_rm> so is kotlin sort of like the swift of the java/android world? (not too familiar) Jun 16 05:35:43 i'd be happy using kotlin over what we have now in android. only reason i dont is because there is some, even if its tiny, risk because their plugin needs to integrate with the google toolchain, and i don't see much collaboration between the two Jun 16 05:36:48 _rm people keep saying that. it makes sense on one hand (BIRG) - basking in reflected glory / stealing thunder from Swift Jun 16 05:37:24 but it also implies what it replaces, java, is insufficient (as swift replaced objc) Jun 16 05:37:32 _rm: It's like Java but more concise and powerful. Jun 16 05:37:33 and i'm sure google disagrees with that assesment Jun 16 05:39:24 TacticalJoke yeah but, sounds like 'Like C but with classes' ... thats what i meant with my stroustrup anaology. i don't think i goes far enough Jun 16 05:39:34 to push the way i think about problems anyhow Jun 16 05:40:01 i like languages that change the way i think about problems. if they bring entirely new things to the table Jun 16 05:42:11 Kotlin isn't constrained by the Java language, though. It ignores bad stuff from Java. Jun 16 05:42:20 It's constrained by the JVM, but of course that's inescapable. Jun 16 05:42:38 and on android its constrained by ART Jun 16 05:42:42 (additionally) Jun 16 05:43:39 i'm just guessing, thats one of the reasons why Scala / Ceylon guys don't care about android. it would impact their design decisions too much, or they would have to make crazy sacrifices Jun 16 05:50:25 I see it as a bunch of wins. Even seemingly tiny things such as the safe-dereference operator can make a *huge* difference to code readability. Jun 16 05:50:41 TacticalJoke: how are you awake at the moment?! Jun 16 05:50:47 hi guys, when I submit a new release on Play Store, I don't need to do anything to notify our users that a new version exists ? Jun 16 05:50:49 isn't it 6:00 AM by you Jun 16 05:50:54 every thing is handled by Play Store ? Jun 16 05:51:17 zoraj: the play store will notify them that there is an update Jun 16 05:51:32 you can pre-create an in-app mechanism to notify them about it Jun 16 05:51:53 Imagine the equivalent of this in Java: `return object?.a?.b?.c?.d?.e?.f`. It's all null safe; it stops at the first null (and then returns null). Jun 16 05:52:11 The only way to achieve that in Java is to use the Null Object pattern. But you can't use this for pre-written classes. Jun 16 05:52:25 thepoosh: I'm not sure. ;o Jun 16 05:52:48 TacticalJoke yeah that is cool, but its syntactic sugar :) Jun 16 05:52:50 thepoosh, I'm asking that because what we want to achieve is that when a user run up our app, it should check if a new version exists before it continue to load Jun 16 05:53:06 and then do what? Jun 16 05:53:22 you'll need a server side implementation for this Jun 16 05:53:48 show up a Toast to notify if the user wants to update Jun 16 05:54:06 not a Toast but a popup =) Jun 16 05:54:10 08:53 thepoosh: you'll need a server side implementation for this Jun 16 05:54:18 in any case, that sounds like a bad UX Jun 16 05:54:25 Isn't every part of a programming language (strictly speaking) syntactic sugar over some other thing? Jun 16 05:54:27 ok, that's what I was thinking too Jun 16 05:54:58 thepoosh, what do you mean by bad UX ? Jun 16 05:55:04 any suggestion ? Jun 16 05:55:08 annoying Jun 16 05:55:19 the play store already prompts that information Jun 16 05:56:08 ok, thank you, and have a nice day =) Jun 16 05:56:11 TacticalJoke do you think, kotlin in good enough that one would choose JVM for no other reason? i suspect, to the degree that is Yes, kotlin's chances are better Jun 16 05:57:02 JVM over .net, whatever else Jun 16 06:06:59 I think the platform is good (mature + great tooling), and Kotlin is good (better than even C# in a few ways), so I guess I could imagine people picking it. Though I'm guessing a lot of people would need a 1.0 first. Jun 16 06:07:15 In any case, I'm only really concerned about Android and Kotlin, personally. Jun 16 06:08:35 I can't imagine anyone seriously picking a development solution without taking into account the platform. Languages alone go only so far. Jun 16 06:16:16 picking kotlin for the sake of kotlin? Jun 16 06:16:18 no Jun 16 06:21:02 outside of android, there are too many other good options for jvm languages Jun 16 06:29:07 If the app and the library has a same dependency, say recyclerview, can i remove it from the app's dependency? Jun 16 06:29:26 if your app directly uses it, leave it in Jun 16 06:30:02 if not? Jun 16 06:30:28 g00s: can you try out my vector_drawable.xml ? Jun 16 06:30:48 g00s, If I leave it in, will it increase the dex count? there would be double recycler content? Jun 16 06:31:02 no Jun 16 06:31:25 why Jun 16 06:31:31 WantToCode ^^^ Jun 16 06:32:16 http://vpaste.net/um7ED Jun 16 06:32:24 <_genuser_> hey g00s sup? Jun 16 06:32:27 try setting this image somewhere Jun 16 06:32:31 someone Jun 16 06:32:39 Thanks, g00s . Jun 16 06:32:42 WantToCode although, you could get into a mess if lib depends ob version X and app depends on version Y, you'll have to figure out some resolution strategy Jun 16 06:33:00 hi _genuser_ Jun 16 06:33:38 <_genuser_> g00s: man, I've been quite busy building the php portal to hit from my app. plus I had to re-isntall my OS and taking like 3 days to complete install and restore from backup. Jun 16 06:33:41 g00s, I am keeping the versions same. Jun 16 06:33:51 hello? Jun 16 06:34:18 WantToCode you should define the version in ext { } block and reference that in your submodules, so you don't forget to update all of them together Jun 16 06:34:54 ok. didn't know that. ext { } of the project's build file? Jun 16 06:35:05 yeah, in the root. ext { rxjava = 'io.reactivex:rxjava:1.0.+' } Jun 16 06:35:15 ok Thanks a lot :) Jun 16 06:35:45 subprojects then say dependencies { compile rootProject.rxjava } Jun 16 06:35:52 people? Jun 16 06:36:11 my project surpassed dex limit. I was thinking if these dependencies are playing any role. Play services is killing it though :( Jun 16 06:36:31 then only pull in the play services components you need Jun 16 06:36:37 WantToCode lol, i hope you broke your play services into the necessary bits Jun 16 06:36:40 yeah did that Jun 16 06:36:46 oh no :( Jun 16 06:36:50 <_genuser_> squ: patience, bud. most likely nobody knows anything about drawing vectors at the moment. Or none that's free. Just keep asking after 20-30 minutes. eventually someone who knows will speak up. Jun 16 06:37:16 are there any disadvantages with passing the limit? Jun 16 06:37:16 WantToCode out of curiosity, can you pastebin your deps Jun 16 06:37:26 _genuser_: I'm not asking, just want someone to set this image Jun 16 06:37:35 dex limit op Jun 16 06:37:52 _genuser_: can you set it for the test? Jun 16 06:37:53 my current app is at 63k methods after proguard Jun 16 06:37:56 pure java Jun 16 06:38:12 pfn: are you multi-dexing? Jun 16 06:38:13 g00s, http://pastebin.com/4GFcUw6c Jun 16 06:38:21 no Jun 16 06:38:27 pfn: try setting this image http://vpaste.net/um7ED Jun 16 06:38:40 maybe you should, sounds like it will fix you up Jun 16 06:38:51 WantToCode wow, i didn't think those would push you over Jun 16 06:39:00 eh, proguard is faster than multidex Jun 16 06:39:17 true, but you said you're at 63K after Jun 16 06:39:33 yeah, 63k after running proguard Jun 16 06:39:41 I still have 1k headroom Jun 16 06:39:52 someone? Jun 16 06:39:54 <_genuser_> squ: taht's what I meant, probably no one is able to help atm. I don't have my android dev env up yet. I'm re-installing my OS and all apps. taking some times. :) Jun 16 06:39:57 that is not that much Jun 16 06:40:12 yeah g00s something is not right. like play-services dependency is used in app and login-gcm module. This made me ask my first question. Will they be doubled? Jun 16 06:40:12 <_genuser_> thepoosh: yo. Jun 16 06:40:15 _genuser_: ridiculous Jun 16 06:40:28 thepoosh, I'll cross that bridge when I get there Jun 16 06:40:33 thepoosh: do you have dev env setup? Jun 16 06:40:39 _genuser_: hi hi Jun 16 06:40:43 WantToCode when you look at transitive deps, is there something weird getting pulled ? try 'gradle dependencies' in your app directory Jun 16 06:40:49 <_genuser_> squ: yep, I had to redo my OS and all app, and data restore. almost 500G restoring on this old computer taking forever!!! Jun 16 06:40:49 squ: how do you mean? Jun 16 06:41:02 thepoosh: try that image please http://vpaste.net/um7ED Jun 16 06:41:19 <_genuser_> thepoosh: hey man, just redoing my OS. and when it's done, working on my PHP portal to be able to hit it from my app. Jun 16 06:41:42 thepoosh, https://gist.github.com/4f008d281c42063e56f4 Jun 16 06:41:42 heh Jun 16 06:42:54 pfn: do you have android dev env? Jun 16 06:44:11 hey Jun 16 06:44:13 ? Jun 16 06:45:27 g00s, it gave me a long ass graphical structure :P Jun 16 06:45:30 let me see Jun 16 06:45:52 i wonder how many methods are in rxjava Jun 16 06:46:10 <_genuser_> 200 Jun 16 06:46:18 my browser struggles to load the javadoc for Observables.java :D Jun 16 06:46:29 <_genuser_> you're probably using IE. Jun 16 06:46:30 <_genuser_> :p Jun 16 06:47:47 g00s, looks like I should fork and use materialviewpager just like i am using material-list :P Jun 16 06:48:24 WantToCode: can you test an image? Jun 16 06:48:51 squ, sorry don't know how to Jun 16 06:49:04 just save it as .xml file? Jun 16 06:49:31 and put it as drawable-v21, and background="@drawable/myfile.xml" Jun 16 06:49:36 Hey Jun 16 06:49:46 metafield: can you test an image for me? Jun 16 06:49:55 sure Jun 16 06:50:02 http://vpaste.net/um7ED Jun 16 06:50:03 I don't usually come here though I came to report something weird Jun 16 06:50:04 this one Jun 16 06:50:14 yes, this is something weird Jun 16 06:50:57 guys? Jun 16 06:51:05 I've caught recycler views losing their contents multiple times now in android 5.1, once on my own app and once on spotify and other app, on multiple devices. So if you get a random blank listview, don't assume it's your code Jun 16 06:51:22 metafield: have you tried it? Jun 16 06:51:42 the image? it doesnt display in my browser if thats what you mean Jun 16 06:51:52 it is for android Jun 16 06:51:55 ... Jun 16 06:52:13 pfn: cool packagename Jun 16 06:52:20 oh sorry im tired i tohught it was random xml, sorry Jun 16 06:52:24 i was told the design lib sucks Jun 16 06:52:34 thepoosh, obfuscated as necessary Jun 16 06:52:36 I imagine it is the design lib Jun 16 06:52:38 squ: trying now Jun 16 06:52:42 metafield: that is random VectorDrawable xml Jun 16 06:53:00 mm I haven't had a chance to test out vector drawables Jun 16 06:53:05 thepoosh: and? Jun 16 06:53:10 let me start a project and test Jun 16 06:53:28 metafield: why new project, just put it somewhere Jun 16 06:54:16 guys? Jun 16 06:54:19 hello? Jun 16 06:55:55 i can just put it somewhere? Jun 16 06:55:58 yes Jun 16 06:56:03 if it crash, just tell it Jun 16 06:56:09 it is what happens here Jun 16 06:56:29 what am i saving it as? Jun 16 06:56:36 squ: cute Jun 16 06:56:42 wanna screenshot? Jun 16 06:56:47 i tried opening both as sql and html Jun 16 06:56:48 thepoosh: it works? Jun 16 06:56:53 yeah Jun 16 06:56:55 just a sec Jun 16 06:57:03 thepoosh: no need screenshot Jun 16 06:57:10 this is stock android material button Jun 16 06:57:13 (official) Jun 16 06:57:14 oh Jun 16 06:57:20 but it crash here Jun 16 06:57:24 looks nice, the ic_menu_edit? Jun 16 06:57:27 yes Jun 16 06:57:37 works for minSdk=22 Jun 16 06:57:46 I have minSdk=21 Jun 16 06:57:48 but throws on anything else Jun 16 06:57:59 i'll check Jun 16 06:58:00 throws? what do you mean? Jun 16 06:58:16 lint error Jun 16 06:59:43 works fine with genymotion 5.0 Jun 16 07:00:19 AndroidRuntime android.view.InflateException: Binary XML file line #28: Error inflating class Jun 16 07:00:39 if I comment the path line, it works Jun 16 07:00:49 no crash Jun 16 07:05:23 any body tell me some good library for contacts ? Jun 16 07:12:02 hi all Jun 16 07:12:37 is this the right place to ask for some help on android development? Jun 16 07:15:22 Marcdejonge: sure Jun 16 07:15:34 I'm trying to create an enterprise app that can perform pinning on other apps. I'm already device owner and can pin my own activities without user consent, but now I would like to do the same thing to other apps. Is this even possible? Jun 16 07:16:10 with recyclerview, do i understand correctly that if i have a gridlayoutmanager with say 3 columns, i can have items use 1/2/3 collumns as i see fit/ Jun 16 07:16:10 I've already tried starting another activity from my own pinned activity, but this is not allowed Jun 16 07:17:07 I also tried this piece of code: Jun 16 07:17:17 IBinder activityManager = ServiceManager.getService("activity"); Jun 16 07:17:17 Parcel data = Parcel.obtain(); Jun 16 07:17:17 Parcel reply = Parcel.obtain(); Jun 16 07:17:17 data.writeInterfaceToken("android.app.IActivityManager"); Jun 16 07:17:17 activityManager.transact(START_LOCK_TASK_BY_CURRENT_TRANSACTION, data, reply, 0); Jun 16 07:17:18 reply.readException(); Jun 16 07:17:18 data.recycle(); Jun 16 07:17:19 reply.recycle(); Jun 16 07:17:36 But then I need permissions that are only available to system apps Jun 16 07:18:40 Marcdejonge: every app in android decides, itself, what can and can't be done to it Jun 16 07:19:21 not even when I'm device owner? Jun 16 07:19:30 It is possible on the iPad... Jun 16 07:20:11 osxorgate yeah Jun 16 07:20:31 g00s: that's wonderful! with i knew this 2 weeks ago :) Jun 16 07:20:49 now if only they added onItemClick to recyclerview Jun 16 07:21:52 squ oh it was that pencil Jun 16 07:22:14 metafield: it took you 30 minutes to paste text Jun 16 07:22:22 metafield: it doesn't crash, yes? Jun 16 07:22:57 well, It took me 30 mins to install the new updates, then i assumed that image was a 'cannot display' image =/ Jun 16 07:23:19 I started android dev two days ago Jun 16 07:23:57 no crash, im viewing it in my drawable folder Jun 16 07:24:10 if there is another way to view this kind of vector, i dont know it Jun 16 07:25:36 your crash in an inflate error, I feel like maybe what you are looking for is in the java file Jun 16 07:25:56 ישהק טםו ארןקג בךקשמ נוןךג? Jun 16 07:26:01 have you tried clean build Jun 16 07:27:31 link your full xml, what is line 28? Jun 16 07:29:06 ok, I think there is another way to perform a kind of AppLock. As device owner I can hide other applications (for the user it is like they are uninstalled). But then all the icons are also removed from the Launcher, even after I've restored the apps. Is there a way to backup and restore these settings for the launcher? Jun 16 07:31:44 metafield: I'm trying same xml that I pasted Jun 16 07:32:04 I copy-pasted path data from android stock ic_mode_edit Jun 16 07:32:24 Marcdejonge: I did more research, it's as i thought Jun 16 07:32:49 Marcdejonge: the android os is very interesting in that every app is an island in terms of security Jun 16 07:33:37 the sql you posted cannot be inflated squ Jun 16 07:33:52 so the error is happening somewhere else Jun 16 07:34:19 metafield: I get same error Jun 16 07:34:47 AndroidRuntime android.view.InflateException: Binary XML file line #28: Error inflating class Jun 16 07:34:47 AndroidRuntime at android.view.LayoutInflater.createView(LayoutInflater.java:633) Jun 16 07:35:39 line 28 in an xml file right? Jun 16 07:35:47 metafield: if you comment the tag you'll see it works Jun 16 07:35:57 hrm Jun 16 07:36:38 line #28 is: layout/activity.xml Jun 16 07:40:05 link your acitivity xml Jun 16 07:40:31 i just also tested on my nexus 4 Jun 16 07:40:35 and? Jun 16 07:40:45 you have made an error unrelated to the vector, i think Jun 16 07:41:05 it is just an empty activity with