**** BEGIN LOGGING AT Fri Jan 16 03:00:15 2015 Jan 16 03:01:00 hesperaux_, indeed, thanks Jan 16 03:01:20 DragonPunch, avoid unnecessary nesting Jan 16 03:01:27 This is pretty damn good. http://www.channel4.com/programmes/cyberbully Jan 16 03:01:40 linear layout with a relative layout inside can easily be replaced by just the relative layout Jan 16 03:01:54 pfn: no not from design perspective Jan 16 03:02:03 DragonPunch, lolwut Jan 16 03:02:16 pfn: quite puffin Jan 16 03:02:19 quiet* Jan 16 03:02:22 lol Jan 16 03:02:28 lol Jan 16 03:02:44 this guy don't give a DAMN Jan 16 03:02:54 I'm kinda drunk lol Jan 16 03:02:57 haha Jan 16 03:03:00 I wish I was Jan 16 03:03:10 Napalm, are you being cyberbullied? do you need mommy to save you? Jan 16 03:03:11 been dehydrated lately. too much coffee Jan 16 03:03:18 :P Jan 16 03:03:30 pfn: its all your fault! :( Jan 16 03:03:48 pfn: lol Jan 16 03:04:21 pfn: its got Maisie Williams from Game of Thrones in it.. really good. Jan 16 03:05:15 she looks familiar. what else is she in? I don't watch GoT Jan 16 03:05:43 this is how i program Jan 16 03:05:44 this channel is both helpful and detrimental to my productivity Jan 16 03:05:49 2x laptops. Jan 16 03:05:59 1 laptop = android studio and all m dev stuff Jan 16 03:06:03 2nd laptop streaming anime 24/7 Jan 16 03:06:08 i actually get a lot done Jan 16 03:06:12 the other way is Jan 16 03:06:17 while im standing Jan 16 03:06:19 and programming Jan 16 03:06:22 and have music Jan 16 03:06:23 playing Jan 16 03:06:24 and i dance Jan 16 03:06:27 while programming Jan 16 03:06:32 keeps me active, and everything seems easy Jan 16 03:06:34 DragonPunch, consider using less and more Jan 16 03:06:36 can you do it all without pressing enter so many times? Jan 16 03:06:39 ^ Jan 16 03:07:17 The other way is while im standing and programming, having music playing and I dance to it while programming. Keeps me active and everything seems easy. I don't loose focus. It has to be HYPE music though. Jan 16 03:07:17 Who remembers 'Welcome to the Scene'? https://www.youtube.com/playlist?list=PLC2FCB2871C396459 Jan 16 03:07:37 that Cyberbully tv movie reminds me of that Jan 16 03:07:47 u keep watching stuff lik that Jan 16 03:07:51 you will loose ur productivity Jan 16 03:08:03 u need to code code code Jan 16 03:08:12 Nope, I jave multiple monitors for a good reason Jan 16 03:08:12 :D Jan 16 03:08:20 go back to coding Jan 16 03:08:22 some day I need to buy a second monitor Jan 16 03:08:40 im afk going to finish this 4th custom adapter for the day. Jan 16 03:08:41 but I'm too lazy to shop for a new monitor arm that can hold 2 monitors Jan 16 03:08:48 you dont need an arm Jan 16 03:08:51 lol Jan 16 03:08:57 you just need one that has a stand Jan 16 03:09:01 and just puot them side to side Jan 16 03:09:07 monitor stands suck Jan 16 03:09:12 vesa arms or bust Jan 16 03:09:18 agreement Jan 16 03:09:25 i use 2 laptops Jan 16 03:09:29 i found a decent arm that holds 3 for about 300USD Jan 16 03:09:33 C: Jan 16 03:10:05 still using default dell stands though because ain't nobody got cash fo dat Jan 16 03:10:20 $300 is a bit steep Jan 16 03:10:33 my ibm arm was like $70 on geeks.com when they used to still sell stuff Jan 16 03:10:35 and yet that's on the lowest end of triple mounts Jan 16 03:10:54 a cheap, effective single arm x3 might work well though. haven't checked Jan 16 03:11:12 arms are generally pretty expensive Jan 16 03:11:16 yeah Jan 16 03:11:19 original retail price on my arm was like $400 Jan 16 03:11:22 especially the kind businesses buy Jan 16 03:11:31 and that's only a single monitor Jan 16 03:11:42 by HumanDesign or some weird brand Jan 16 03:12:00 pfn who needs an arm when you have cindar blocks, old textbooks etc Jan 16 03:12:08 humanscale? Jan 16 03:12:14 humanscale! thank you Jan 16 03:12:17 i can never remember their name Jan 16 03:13:29 hmm, $218 for a dual monitor arm, that's not bad Jan 16 03:14:00 triple gets more expensive fast Jan 16 03:14:57 I only really want 2 Jan 16 03:15:04 one for work, and one for reference material, or watching video Jan 16 03:17:31 I had 2 for a while... I'm happier with 1 bigger screen - widescreen, so same height as the older ones it replaced - and lots of virtual desktops Jan 16 03:18:10 I don't like virtual desktops Jan 16 03:19:42 used to use virtuals when I use linux for productivity Jan 16 03:19:45 eh Jan 16 03:19:56 only virtual desktop I use is gnu screen Jan 16 03:19:56 i'd rather have more screens Jan 16 03:20:07 heh Jan 16 03:20:07 I've been using them for a very very long time on Linux Jan 16 03:24:52 Oh I'm dumb. I was considering refactoring my app in entirely the wrong way. Jan 16 03:26:01 I didn't realize notifications on android wear were activities. that makes things very simple. Jan 16 03:28:33 why does when you set clickable on a list view row the selector no longer applies? Jan 16 03:29:01 pfn: screen is so hot Jan 16 03:29:15 only way to ircii imo Jan 16 03:29:28 but i dont have any shells anymore ;( Jan 16 03:29:35 pfn, what did you do to make everyone so impressed? I hadn't joined yet Jan 16 03:30:36 I have a row with title and subtitle, in a relativelayout how can i center these vertically? Jan 16 03:31:07 latex Jan 16 03:31:12 only 55gb install Jan 16 03:59:40 JavaDog, so you mean what impressed me? I installed his irc app. using it now Jan 16 04:03:29 oh, which one is that? Jan 16 04:10:31 hey, i have a question... I've been working on something in Android Studio, and I'm getting the (R.layout.main) error that says it cannot resolve symbol 'main' Jan 16 04:10:34 how do i fix this? Jan 16 04:17:43 JavaDog, sorry. The app is called qicr (kicker) Jan 16 04:18:24 kalimaya: do you have a layout named main in your project? Jan 16 04:18:26 kalimaya, does your layout contain a +id/main somewhere in it? Jan 16 04:18:56 @+id/main rather Jan 16 04:19:25 I don't think so.. Jan 16 04:19:33 well than Jan 16 04:19:55 DragonPunch: what kind of music do you dance to ? Jan 16 04:19:59 provide one, or remove the refence Jan 16 04:20:43 shmooz: anything that gets me hyped. drakes old stuff. sometimes edm. upbeat stuff. that you CAN dance to. Jan 16 04:20:50 Where would I put that, in the res folder? Jan 16 04:20:59 shmooz: you have to make sure you are using a standing table, so you can dance and code at same time. Jan 16 04:21:04 shmooz: its real effective. Jan 16 04:21:10 ewww Euro Jan 16 04:21:12 shmooz: real effective. Jan 16 04:21:19 no euro Jan 16 04:21:20 electric Jan 16 04:21:22 dance music Jan 16 04:21:25 oh Jan 16 04:21:28 google ... google ... google Jan 16 04:21:30 but you want to do Jan 16 04:21:36 spanish music to Jan 16 04:21:37 latin dance Jan 16 04:21:38 I like DnB but can't stand DubStep Jan 16 04:21:59 some main stream rap stuff than just side step and shake ur legs while pumping out code Jan 16 04:22:03 I have a database helper object that can return the Cursors I need for various AutoCompleteTextViews. I'm going to implement a Loader interface in my Activity to load the cursors and assign them to the adapters asynchronously. I have one question: in onCreateLoader(), how do I provide the Loader with one of said Cursors? Jan 16 04:22:11 than when your favorite part of the song comes, slide across the floor and shit Jan 16 04:22:17 than slide back to your laptop Jan 16 04:22:30 DragonPunch, are you for real? Jan 16 04:22:35 yeah. Jan 16 04:22:56 i love it Jan 16 04:23:11 provides for good energy Jan 16 04:23:18 imagine 10 programmers doing it at same time Jan 16 04:23:22 would be mega fun Jan 16 04:23:39 its fun by yourself too since you get into the music Jan 16 04:23:45 lol Jan 16 04:23:55 try it Jan 16 04:24:04 i promise you will feel focused and get mor done Jan 16 04:24:06 my back would destroy me forever Jan 16 04:24:09 dude Jan 16 04:24:13 the main reason i decided to do that Jan 16 04:24:20 was so my back would stop hurting Jan 16 04:24:25 and i didnt want to ruin my back Jan 16 04:24:35 that was my main reason, so you should def try it. Jan 16 04:24:45 fair enough Jan 16 04:24:52 because i sit all the time, and programming is dull. i needed to spice it up a bit. Jan 16 04:24:59 so anyone about my Cursor/Loader question? Jan 16 04:25:55 DragonPunch: connect the computers to stationary bikes that you have to peddle to keep on Jan 16 04:26:12 capella, i have been and i can't seem to find it. Jan 16 04:26:17 :| Jan 16 04:26:30 shmooz: no thanks. im passionate about dancing. i love it. Jan 16 04:26:40 kalimaya, I know it sucks to hear this, but you really should go through Google's Android dev guide Jan 16 04:26:46 at least the first few lessons Jan 16 04:27:23 hesperaux, does it go through the tut in android studio? Jan 16 04:27:39 I was okay in Eclipse, I swear lol Jan 16 04:27:44 hmm, I don't remember Jan 16 04:28:46 DragonPunch: here's a new DnB song that will make you jump , https://www.youtube.com/watch?v=WbmfFuvAW5I Jan 16 04:28:48 the layouts are all in the same place they've always been. Project Explorer: java->yourpackage->res/layout/*.xml Jan 16 04:28:57 well i cant do it Jan 16 04:28:59 night time Jan 16 04:29:11 the standing table i use in my kitchen Jan 16 04:29:24 we got like bar table Jan 16 04:29:25 Dance Sucka! Jan 16 04:29:27 yep, the ide wont materially affect the project structure Jan 16 04:29:48 there's extra gradle junk but you don't even need to think about that Jan 16 04:29:55 and it's outside the project tree Jan 16 04:29:55 shmooz: the other thing i do is stream non stop some tv show ( i prefer anime ) Jan 16 04:29:59 i can watch and code same time Jan 16 04:30:03 s/project/package Jan 16 04:30:06 that way i have fun Jan 16 04:30:08 and get stuff done Jan 16 04:30:25 and i finally finished my 4th custom list view today. Jan 16 04:30:26 yay. Jan 16 04:30:43 woot :) Jan 16 04:30:46 why 4th ? Jan 16 04:31:04 did you make 4 separate apps ? Jan 16 04:31:19 hesperaux, I've worked with gradle before, android studio is throwing a lot of errors, previously it was having issues with something else Jan 16 04:31:34 kalimaya, are you migrating an eclipse project? Jan 16 04:31:40 hesperaux, no Jan 16 04:31:52 strange Jan 16 04:31:56 new projects work fine for me Jan 16 04:32:13 shmooz: i have a view pager with 5 tabs Jan 16 04:32:13 i'm fairly new to AS, myself Jan 16 04:32:21 shmooz: each tab requires a custom list view Jan 16 04:32:24 I had a ton of problems when I was starting to use AS as well. Just make sure it's pointed at the right JDK installation and google through all the error messages, is all I can say. Jan 16 04:32:39 DragonPunch: why not just reuse the same adapter? Jan 16 04:32:52 shmooz: each adapter are different Jan 16 04:32:59 guessing that bindView() is different Jan 16 04:33:31 you could add a field to your constructor though to control what your bindView does, instead of making 4 classes Jan 16 04:34:00 JavaDog, preach it. If Eclipse was still supported, then I'd be running back to that right now lol Jan 16 04:34:05 shmooz: let me send you a picture of my most recent custom adapter Jan 16 04:34:09 shmooz: it looks cool Jan 16 04:34:38 ok Jan 16 04:35:47 has anyone here used Loaders? Jan 16 04:36:10 kalimaya: Well, having said those things, AS is actually pretty great now that I've gotten to know it. Jan 16 04:36:13 only with ASM Jan 16 04:36:23 I concure with JavaDog Jan 16 04:36:26 concur that is Jan 16 04:36:33 i need sleep soon Jan 16 04:37:10 I slept in until 6pm today. The joys of being unemployed :\ Jan 16 04:37:26 shmooz: This my 4th custom list view today http://puu.sh/eA9Zd/071a983376.png Jan 16 04:37:32 JavaDog, that's been my experience with almost everything I've done related to Java Jan 16 04:37:47 Here is my first one: http://puu.sh/eAa2z/2c5889a428.png Jan 16 04:37:52 they each have a purpose Jan 16 04:37:55 CursorLoader appears to depend on having a ContentProvider. I'm not using a ContentProvider Jan 16 04:38:11 JavaDog, that's actually a typical day for me.. Jan 16 04:38:15 obviously the image didnt scale well on that Jan 16 04:38:19 DragonPunch: it looks nice, but you could probably just modify 1 adapter to do all Jan 16 04:38:37 shmooz: i like to keep it organized and i can do them really fast now Jan 16 04:38:57 cool Jan 16 04:39:00 shmooz: ill refine later. get it done now. Jan 16 04:39:13 I'm wondering, if they're all different somehow, why are their labels so undescriptive? (1, 2, 3...) Jan 16 04:39:23 lazy naming scheme? Jan 16 04:39:37 JavaDog, i haven't done any styling yet.. Jan 16 04:39:44 Just from a UX perspective. But no worries if you plan to do that stuff after the program code itself Jan 16 04:39:51 yes Jan 16 04:39:54 i know how to do it Jan 16 04:40:00 i just havent got around it yet Jan 16 04:40:09 what's UX stand for again Jan 16 04:40:15 user experience Jan 16 04:40:15 user experience Jan 16 04:40:19 eXperience Jan 16 04:40:26 ah Jan 16 04:40:28 what they said Jan 16 04:40:33 i just lost the game Jan 16 04:40:45 do you guys want pointy edges Jan 16 04:40:47 or rounded Jan 16 04:40:53 rounded Jan 16 04:40:59 oky Jan 16 04:41:00 rounded Jan 16 04:41:00 1-2px roundedf Jan 16 04:41:00 pointy. rounded is for ios Jan 16 04:41:10 yep Jan 16 04:41:14 I guess it depends on how rounded you're talking Jan 16 04:41:20 not hard core Jan 16 04:41:22 1-2px is cool Jan 16 04:41:22 follow the cards, material design thing Jan 16 04:41:23 just a tad Jan 16 04:41:37 apple will sue if you round too much Jan 16 04:41:39 your listview already looks like cards so Jan 16 04:41:41 lol Jan 16 04:41:42 lol Jan 16 04:41:42 good point Jan 16 04:41:49 and don't use color at all cuz Apple owns that too Jan 16 04:41:51 black and white only Jan 16 04:42:12 I licensed a few colors for my app so it's cool Jan 16 04:42:24 i patented blue Jan 16 04:42:31 cya kids. Jan 16 04:42:34 the process of creating blue? Jan 16 04:42:42 if you have blue in your app. your paying big. Jan 16 04:42:45 * hesperaux looks for devs that know how to Loader Jan 16 04:43:31 how come Jan 16 04:43:35 when i have a more simpler list view Jan 16 04:43:45 I know asynctasks and threading but I don't think I've used Loader specifically Jan 16 04:43:46 when i click i get the gray color showing you clicked it Jan 16 04:43:58 but when i have a more complex one where i chagne it up Jan 16 04:44:03 it doesnt have gray background Jan 16 04:44:05 when i click Jan 16 04:44:18 you're probably covering the android style for clicked with something else Jan 16 04:44:20 Probably need to specify it yourself DragonPunch, but I don't know what the attribute is. Jan 16 04:44:30 well mainly what i can think of is Jan 16 04:44:38 my linear layout is inside my relative layout Jan 16 04:44:45 er the other way around Jan 16 04:44:49 relative is inside linear Jan 16 04:44:53 but thats my row Jan 16 04:44:54 for a list view Jan 16 04:44:59 idk if that would have any effect Jan 16 04:45:35 you said you specified the color manually. There's probably something in the docs like "If you specify the color manually, you lose the system default 'selected' color" Jan 16 04:46:09 probably ill look into it Jan 16 04:46:20 It just sounds like something that might be in there. Not saying it is. But first thing I'd try is figuring out how to manually specify that 'selected' color Jan 16 04:46:40 make sure children views don't obscure it Jan 16 04:47:06 i have 1 more custom list view to make, the profile Jan 16 04:47:12 eek. im excited for this one. Jan 16 04:48:04 time to youtube Loader Jan 16 04:48:29 Find an open source app that uses it. Probably way faster to get a good example Jan 16 04:49:12 Here's one https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/PartnersFragment.java Jan 16 04:51:44 I like how Mark Zuckerberg gives the most cliche answer of why he built Facebook was to either 'connect the world' or 'i like building things' Jan 16 04:52:04 Most of the time i feel like the Android reference is just as helpfull ;) http://developer.android.com/reference/android/app/LoaderManager.html Jan 16 04:52:17 nigga, if you really liked building things, you would have bulit more things than just facebook Jan 16 04:52:23 frigging fake ass dude. Jan 16 04:52:46 I ignored MySpace and it went away, now FaceBook needs to disappear Jan 16 04:52:51 'i just like building things' so cliche. Jan 16 04:52:58 DragonPunch: Isn't that the default answer that you could give for right about everything Jan 16 04:52:59 ? Jan 16 04:53:40 karlsve: dude he is a young guy with tons of money. Jan 16 04:53:41 I just like building apps. It's so Web 2.0, you know? Connecting everyone in the bloggosphere for a brighter future! Jan 16 04:53:46 karlsve: not an old dude with tons of money. Jan 16 04:54:10 karlsve: elon musk, great example. google, great example. now they BUILD things. Jan 16 04:54:12 facebook? Jan 16 04:54:16 they buy things Jan 16 04:54:40 someone probably told him to say that Jan 16 04:54:43 he only managed to get extremely lucky build one thing now hes living off it. Jan 16 04:55:14 Same story as flappy bird Jan 16 04:55:20 honestly the next person that tells me the reason why the do XYZ is ... because they like building things. im just going to kick him in the balls. Jan 16 04:55:31 i played that game. I thought it was boring after like 1 minute Jan 16 04:56:19 i build things because i like to build things. i just need to get better *at* building things :) Jan 16 04:56:37 ^this Jan 16 04:57:09 i build things to buy myself freedom. Jan 16 04:57:28 i make enough now to pay the bills. but I'd like my building things to make me enough so I can build *more* things and not worry that my building things won't pay my bills Jan 16 04:57:37 yeah Jan 16 04:57:38 you want freedom Jan 16 04:57:43 dont give me that piece of shit cliche answer Jan 16 04:58:02 well, i do like building things. cliche or not. Jan 16 04:58:11 ^this too Jan 16 04:58:11 its just not the only reason i build things Jan 16 04:58:14 your fake and gay Jan 16 04:58:18 lol Jan 16 04:58:24 i would never hang out with you Jan 16 04:58:27 What about his fake and gay? Jan 16 04:58:29 you're judgemental and naive Jan 16 04:58:30 holy shit you sound boring Jan 16 04:58:55 Lol someone kick this guy Jan 16 04:59:04 DragonPunch: I'm not saying that he has build something of importance but its also false to say he did not build anything. Maybe using "build" as the verb is the wrong choice but he trying to say something so that everyone would understand what he meant. (Yeah he exagurated a bit much by using that word" Jan 16 04:59:08 -" +) Jan 16 04:59:21 just no one give me that cliche answer Jan 16 04:59:23 it pisses me off so much Jan 16 04:59:27 DragonPunch, I'm 44, married and 8 kids between the two of us. I might be boring, but I pay my bills off the things I build. So, excuse me if I'm not broken hearted if you don't hang out with me. Jan 16 04:59:44 least I won't have to worry about you boring *me* with your stuff, *while* I build things. Jan 16 04:59:50 oh ok. see, if your 44. ican understand that. Jan 16 04:59:57 your married. your life is supposed to be boring. Jan 16 05:00:01 means I should be able to stay awake long enough to finish whatever it is I'm building. Jan 16 05:00:01 im talkign about young people here. Jan 16 05:00:13 His 44? He's got a gun, everyone! Jan 16 05:00:29 i need more young people saying Jan 16 05:00:33 i want to build things because Jan 16 05:00:35 i build things because i want convertible bentlys and houses deep in the hills. Jan 16 05:00:47 id be like okay bud. im rolling with you. Jan 16 05:00:56 also means pretty soon a doctor will regularly have to anally probe you Jan 16 05:00:56 DragonPunch, I did 19+ years in the army. I've had more than enough excitement for one lifetime. I'll stick with the boringness of building stuff on my computer. As long as I'm careful it shouldn't shoot at me or blow me up. Jan 16 05:01:03 (though i can't promise it won't want to) Jan 16 05:01:19 no i dont do drugs lasserix Jan 16 05:01:26 i meant ddd Jan 16 05:01:27 DragonPunch: "I built this house because I like to build houses" - Any Architect Jan 16 05:01:39 lol Jan 16 05:01:45 and you should do them Jan 16 05:01:46 lasserix, yeah, not something i think anyone at my age looks forward to Jan 16 05:01:59 ddd your a different case your 40+ Jan 16 05:02:02 i get it Jan 16 05:02:03 thats fine Jan 16 05:02:04 I do what I do for the poor children! Jan 16 05:02:09 shmooz, hehehe Jan 16 05:02:09 but im talkin about young people man Jan 16 05:02:14 too many young people are unmotivated Jan 16 05:02:29 or its hard to find highly ambitious young peopel anymore Jan 16 05:02:33 its fuckin stupid Jan 16 05:02:34 DragonPunch: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http://www.worksheetplace.com/mf/your-or-youre-3.pdf Jan 16 05:02:37 oops Jan 16 05:02:41 Well isn't "Liking to do something" basically a motivation? Jan 16 05:02:43 http://www.worksheetplace.com/mf/your-or-youre-3.pdf Jan 16 05:02:44 DragonPunch, my 14yo daughter codes. she says all the time she does it because she likes building things. she likes seeing stuff come out her mind and into existance. Jan 16 05:02:44 liking to create new things does not mean you're unmotivated - it means you are Jan 16 05:02:46 DragonPunch: that's ok, less competition Jan 16 05:02:48 not going to knock her for that Jan 16 05:03:04 JavaDog, lol Jan 16 05:03:14 ddd: dude shes 14, leave her out of this convo Jan 16 05:03:29 thats a baby Jan 16 05:03:32 im talking about young adults Jan 16 05:03:41 lol. The exact ages allowed are 19-27. c'mon guys Jan 16 05:03:42 DragonPunch, many of the top programmers in the world built stuff that you (or I) only dream of building *at* that age Jan 16 05:03:46 you guys should take this to a private room Jan 16 05:03:53 hesperaux: :D Jan 16 05:03:56 * hesperaux thinks lasserix is correct Jan 16 05:04:01 * JavaDog agrees Jan 16 05:04:16 * hesperaux chooses to ignore the convo instead, and continue working Jan 16 05:04:26 but it's interesting reading ! :P but I should also continue working Jan 16 05:04:29 me too. i just couldn't resist the response time :) Jan 16 05:04:30 hesperaux: you shall not escape Jan 16 05:04:45 im going to go back to coding my last custom list Jan 16 05:04:46 BACK INTO THE MATRIX! ALL OF YOU! hehe Jan 16 05:04:48 later Jan 16 05:05:03 but my 2c, I built what I built so I wouldn't get caught by speed cameras :P Jan 16 05:05:37 What did you make? Jan 16 05:05:38 Ugh too late to work -> off to bed Jan 16 05:06:00 karlsve: stop making excuses Jan 16 05:06:02 JavaDog: a app that tells me whether the road I'm on potentially has a speed camera on it Jan 16 05:06:14 shmooz: its 6 am Jan 16 05:06:18 So... Waze? Jan 16 05:06:20 facebook and flappybird = same success story. ty for noticing that hesperaux Jan 16 05:06:38 JavaDog: sort of. Except my app will pull data from the official Western Australian Police website Jan 16 05:06:56 DragonPunch: Are you actually comparing Facebook to Flappybird? :D sounds interesting Jan 16 05:07:20 except zuckerberg doesn't care if the users are too addicted Jan 16 05:07:23 Ah, cool. Jan 16 05:07:25 flappy miley Jan 16 05:07:59 anyways, back to code. Jan 16 05:08:00 shmooz: you didnt say if i was excused to go to bed because its 6am and i havent slept all night Jan 16 05:08:24 no sleep for you! Jan 16 05:08:27 get to work Jan 16 05:08:40 shmooz: need rest to get ideas Jan 16 05:08:44 now thats an excuse Jan 16 05:09:52 hi guys.. I just updated my android to 5.0.2 ? .. and now my animation-drawable which produces a small gif file, won't fire.. but the app is working fine and I get no errors in the project ? Jan 16 05:14:59 you there lasserix? Jan 16 05:17:03 whats up? Jan 16 05:18:43 so i sent you a pm but im not sure if you saw it lasserix Jan 16 05:20:28 hey guys i cannot get android studio to recognise new pngs i put in my drawable folders, its driving me up the wall, anyone know how to get around this ? Jan 16 05:20:53 Have you tried Clean or Sync? Jan 16 05:21:09 also, what are the file permissions on the PNGs? Jan 16 05:22:09 Funny I just updated my android.. to 5.0.2 on my nexus.. now I can't get it to fire my animationdrawable which contains 20 small png files Jan 16 05:22:14 its just blank Jan 16 05:29:11 P3nnyw1se nexus users are crash test dummies :) Jan 16 05:29:27 seems so.. it worked fine last night.. now I just get.. white noise Jan 16 05:29:30 no errors Jan 16 05:38:35 night all Jan 16 05:38:41 night Jan 16 05:45:52 what do you mean by that in particular pennywise? Jan 16 05:48:25 interesting http://www.pcmag.com/article2/0,2817,2474711,00.asp Jan 16 05:48:32 running stock 4.4.4 Jan 16 06:10:50 Hello. Is there a better way of applying custom css to a page in WebView that was loaded with loadUrl() than loadUrl("javascript injection")? I ask because this doesn't seem to play nice with kitkat Jan 16 06:11:55 shit! Jan 16 06:12:07 They deprecated something else! Jan 16 06:12:24 apparently the userinfo endpoint is now deprecated?? Jan 16 06:12:26 https://www.googleapis.com/userinfo/ Jan 16 06:16:51 aaaaaargh Jan 16 06:17:07 good thing it's easy to fix... Jan 16 06:18:26 you're the guy with the puzzle app right Agamemnus ? Jan 16 06:18:32 yes Jan 16 06:18:41 right on did you ever hook up with ologn? Jan 16 06:18:49 no, he never responded Jan 16 06:18:52 i havent seen him around lately Jan 16 06:18:58 right on Jan 16 06:18:58 iunno Jan 16 06:19:06 yeah no worries how's it going? Jan 16 06:19:19 bad Jan 16 06:19:26 why's that? Jan 16 06:19:37 reasons Jan 16 06:19:53 would be better if you ever tell me your amazing idea Jan 16 06:24:20 what amazing idea Agamemnus ? Jan 16 06:24:49 oh that one Jan 16 06:24:54 it's too amazing for yew Jan 16 06:25:09 it's a pretty good idea tho Jan 16 06:25:12 it would take some cash Jan 16 06:25:15 I cant seem to segue to a new activity because I get this error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.rightcrowd.onsite/com.rightcrowd.onsite.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference Jan 16 06:25:28 this is the code: http://hastebin.com/nucoruvufa.java Jan 16 06:26:22 I know the if will always fire, its for testing Jan 16 06:26:27 I'm assuming that if statement's condition is for debugging reasons only? Jan 16 06:26:31 okay lol Jan 16 06:26:55 what ya mean its the best if statemnt ever :P Jan 16 06:27:38 anyone know why setBackgroundColor isn't working on an ImageView? Jan 16 06:27:44 What's your MainActivity's onCreate look like? Jan 16 06:30:05 HevvyMetal, if you don' tell me the idea...: http://imgur.com/gallery/VbHzu Jan 16 06:30:16 JavaDog: Yep that was it, had getIntent outside of the onCreate statement Jan 16 06:30:31 Ah okay :) Jan 16 06:30:34 hehe Jan 16 06:31:50 JavaDog: I'm used to prepareForSegue...destinationViewController Jan 16 06:32:06 Agamemnus: I have an idea , you can expand on your puzzle by having it load any user defined image and split it up into puzzle piecees Jan 16 06:32:11 I'm not familiar with that method Jan 16 06:32:24 JavaDog: they are swift methods Jan 16 06:32:57 shmooz: it's a good idea Jan 16 06:33:00 except Jan 16 06:33:06 so users can create puzzle pictures for it and present it to each other Jan 16 06:33:25 1) it will take some effort to add Jan 16 06:33:34 2) I'll have to raise my content rating up Jan 16 06:34:10 to Medium Maturity Jan 16 06:34:13 probably Jan 16 06:34:27 n^izzo: Ah okay. I've never used it Jan 16 06:35:23 i am tired of coding Jan 16 06:36:02 ok Jan 16 06:36:06 interesting Jan 16 06:36:35 shmooz, i have a feature you might have noticed, which lets users send emails of the in-game images to others Jan 16 06:36:48 people are sending to random addresses Jan 16 06:36:59 photos@profile.match.com ? Jan 16 06:37:06 how does setBackgroundColor work on an ImageView? Jan 16 06:37:16 it's in a GridView, if that matters Jan 16 06:37:24 lol why are you snooping on your users mail Jan 16 06:38:06 well Jan 16 06:38:07 yea Ive been set the task of porting an existing iOS app to android Jan 16 06:38:10 my server sends the email Jan 16 06:38:10 Agamemnus: cool Jan 16 06:38:10 yeah... that seems at least mildly invasive. Jan 16 06:38:28 JavaDog: android has a few things I would love to have in ios Jan 16 06:38:45 JavaDog: I think he also stalks them and sends them emails asking if they liked the app and stuff Jan 16 06:38:45 i need a list of email addresses the server sends emails to Jan 16 06:38:55 not emails Jan 16 06:38:59 hangouts messages Jan 16 06:39:09 oh Jan 16 06:39:35 shit, i am so tired Jan 16 06:39:35 leave like 100 voice messages in a row Jan 16 06:39:41 n^izzo: Yeah? I'm not familiar with ios Jan 16 06:39:43 ya, next step Jan 16 06:40:28 The dev side of ios, anyway Jan 16 06:41:15 So, AS 1.1 Preview is out, and yet the release notes say nothing about JVM unit testing. Jan 16 06:41:27 JavaDog: its fairly easy, no thanks to the docs Jan 16 06:42:03 Anyone have any ideas (e.g., JakeWharton)? Jan 16 06:42:19 (Not sure whether to potential waste three days trying it again.) Jan 16 06:43:35 we don't need no stinkin' unit tests Jan 16 06:44:48 shmooz: They are a lot better to test small parts of your app tho Jan 16 06:45:18 Unit tests open up all kinds of possibilities. Jan 16 06:45:20 Never code without checking Jan 16 06:45:26 TacticalJoke: just go back to eclipse. that's what i'm doing. :P Jan 16 06:45:45 TacticalJoke: U sure unit tests dont work in AS? Jan 16 06:46:05 For example, soon I'll be making a MutableString class that basically exploits String.substring. Jan 16 06:46:18 Without unit testing, I'd be in for a bad time. Jan 16 06:46:43 Not sure, karl. I thought 1.1P would have this. :/ Jan 16 06:47:39 lewellyn: Why are you going back to Eclipse? Jan 16 06:47:56 because android studio is a long way from being usable. :/ Jan 16 06:48:14 What does it miss that Eclipse has- Jan 16 06:48:15 adt supports api 21 still, so i'm good for a bit yet. Jan 16 06:48:28 yeah it's not really out of beta, they lied Jan 16 06:48:28 I hate phone keyboards. Jan 16 06:48:47 unit testing, ndk support, integration with gitlab (via mylyn with eclipse), and much more. :P Jan 16 06:49:03 The latest release might have unit testing. Jan 16 06:49:18 (Or it might not.) Jan 16 06:49:24 I could swear I've run unit tests in AS before Jan 16 06:49:25 i'd be surprised if they add ndk support in the near future. Jan 16 06:49:40 JavaDog: i'd be interested in that. in seriousness. Jan 16 06:49:47 Java: On the JVM? Jan 16 06:50:12 Actually no. I just remembered that I tried forever to get that working and then I gave up and downloaded eclipse for that small part of my project Jan 16 06:50:45 i haven't looked at the AS plugin choices much yet. but does it have pluggable editors like eclipse? Jan 16 06:51:08 (e.g. i have one for markdown, one for html, one for images, etc., so i don't ever have to leave the IDE.) Jan 16 06:51:09 The AS editor is really nice. IMO doesn't need replacing Jan 16 06:51:15 oh Jan 16 06:51:33 It does have different editors for different android-related filetypes Jan 16 06:51:41 So who has updated to 1.1 P1? Jan 16 06:51:42 I don't know if you can download more and extend it though Jan 16 06:51:45 i really like not having to spawn photoshop just to clean up a couple of screwy pixels in an image. Jan 16 06:52:05 especially if they were likely the result of photoshop not being a pixel editor in the first place. Jan 16 06:52:07 I really like having an SSD :) Jan 16 06:52:38 JavaDog: Its based on IntelliJ Idea which is expandable like that so it should work but guess one would have to try Jan 16 06:52:42 ssd doesn't make it faster than just not app-switching in the first place though :P Jan 16 06:52:55 debatable... Jan 16 06:53:08 ssd is slower than ram. period. :) Jan 16 06:53:21 of course Jan 16 06:53:33 Why does IntelliJ access the disk so much? Jan 16 06:53:35 sure but unless eclipse keeps all your editors in ram even when not in use, you'll have to load that editor from a hard drive Jan 16 06:54:09 TacticalJoke: maybe because you have 4GB ram and it's caching Jan 16 06:54:12 (and it wouldn't surprise me if eclipse keeps all your editors in ram, even when not in use) Jan 16 06:54:33 True, though I heard it likes accessing the disk a lot regardless. Jan 16 06:54:37 JavaDog: me neither :D It feels bloated at points Jan 16 06:55:06 On here, Eclipse feels way less bloated. Jan 16 06:55:17 JavaDog: we're talking < 1MB for most editors. the os should keep that cached fine. :P Jan 16 06:55:58 lewellyn: That doesn't sound right. Don't eclipse components have a minimum filesize of 2GB or so? Jan 16 06:56:09 * lewellyn doesn't feed the troll :P Jan 16 06:56:22 Jan 16 06:56:36 :D Jan 16 06:57:34 On a different matter we are somewhat leaving the subject Jan 16 06:57:50 yes. what's the status of unit tests in AS? :P Jan 16 06:57:51 Way better than it was a couple hours ago Jan 16 06:58:20 it scared him off :( Jan 16 06:58:40 Was about to tell him no one's got a clue Jan 16 06:58:51 :( Jan 16 06:59:47 JavaDog: Are u talking about the Zuckerberg stuff? Jan 16 07:00:02 yeah Jan 16 07:00:37 Agreed Jan 16 07:01:30 I wasnt even trying to argue at that point btw. Just said that anyone can be proud of what they build no matter what it is. But well off topic again Jan 16 07:02:31 I should get back to programming some app at some point. But i am lacking ideas. Anyone got a hint for me? Jan 16 07:02:44 A Twitter client that isn't awful. Jan 16 07:03:11 TacticalJoke: good joke :D is that even possible by the way twitter changes its api around? Jan 16 07:04:00 TacticalJoke: oh btw: i dont think anyone active right now can actually answer the question on unit testing on as' newest update Jan 16 07:04:05 I mean one whose author recognises that phones have small screens. Shouldn't be too hard, as far as I can tell. Jan 16 07:04:13 The official app totally fails here. Jan 16 07:04:27 falcon pro just re-launched on google play Jan 16 07:04:38 limited featureset right now but I have faith that it will improve Jan 16 07:04:58 Never had an issue with the official app tho but as JavaDog said falcon pro was always a good choice Jan 16 07:05:41 The main screen still has a split ActionBar, right? Jan 16 07:05:45 TacticalJoke: it's funny. my favorite mobile twitter client pre-dates android, i think. i wonder if it's still being developed for something besides the original (now long-dead) platform. Jan 16 07:06:03 Which, in their case, translates to "Good luck viewing content on a small screen". Jan 16 07:06:04 god. i'd have to remember its name too. :P Jan 16 07:07:09 "We'll allow you to view content comfortably... but only if you're scrolling down a list." Jan 16 07:07:25 Which is just absurd on Twitter. Jan 16 07:07:51 Its weird how bootstrap is one of the top frameworks for responsive website design but twitter cant get their own site working properly on small screens Jan 16 07:08:21 TacticalJoke: You usually have to scroll down lists to see messages on a feedlike system Jan 16 07:08:37 Twitter is about scrolling up. :D Jan 16 07:08:59 I'm scrolling down only to re-see something. Jan 16 07:09:16 Try to explain that to the "normal" user... noone will get the client and how it works Jan 16 07:10:09 Maybe they should make new current appear Jan 16 07:10:16 content appear at the bottom. Jan 16 07:10:27 TacticalJoke: Thats even more confusing Jan 16 07:10:38 Isn't that what basically everything does? Jan 16 07:10:44 Consider IRC. Jan 16 07:10:46 so you would have to do the refresh pull to get older data? Jan 16 07:10:58 is it possible to run plain java files with android studio without modifying the installation? Jan 16 07:11:46 i have eclipse open for this stuff but it is kinda annoying having to open 2 IDEs Jan 16 07:12:19 ktwo: AS is at least able to do so since it is based on another IDE for developing java projects and others Jan 16 07:12:55 yea sure its intellij but i didnt find anything to run the class with main method Jan 16 07:13:03 ktwo: Simply put "Yes it can" Jan 16 07:13:24 AS doesn't have all IntelliJ features. Jan 16 07:13:55 TacticalJoke: Its a plugin for intellij if im not mistaking but yeah it might be stripped down quite a bit as well Jan 16 07:14:46 do you know how the plugin is named? Jan 16 07:14:56 It's not a plugin. Jan 16 07:15:25 Maybe it's similar to a fork? Not sure. Jan 16 07:15:48 Its not a fork its a set of plugins at least it used to be last time i checked Jan 16 07:16:32 I couldn't find a way to run a regular Java app in AS either. I had to use eclipse. Jan 16 07:17:07 basically similar to what adt used to be for eclipse but its not compatible with the standard intellij Jan 16 07:17:49 JavaDog: As i said they might have changed it but as far as i know it used to be possible Jan 16 07:18:46 Okay just checked ... you need another ide Jan 16 07:18:52 thats plain stupid Jan 16 07:20:10 so ktwo i have to rephrase "Yes it could" but google didnt want that as it seems Jan 16 07:20:59 Yeah I seem to remember doing it with a much earlier version of AS Jan 16 07:22:25 JavaDog: Gotta love how companies take the "extendable" out of software to make it more "user" friendly Jan 16 07:23:41 which is amusing because every single 'user' of AS is a developer :p Jan 16 07:23:42 But if anyone wants to try: http://stackoverflow.com/a/24274693 Jan 16 07:23:55 JavaDog: Mostly even Java developer :D Jan 16 07:24:55 I mean i loved to work on eclipse if i was developing no matter if android or regular java Jan 16 07:25:23 I'm job searching right now and I've noticed that many companies still ask for expertise in Eclipse + ADT Jan 16 07:25:46 but now you have to switch no matter what since you cant develop in intellij community for both neither do you have ensured long time support for eclipse + adt Jan 16 07:26:24 There are third-party plugins though. I don't know if it's still being made, but I remember there being one for Netbeans Jan 16 07:27:23 Most IDE's are build to enable developers to develop in multiple programming languages for different projects Jan 16 07:30:52 JavaDog: oh wait Jan 16 07:31:26 ignore any job requirement that says they require eclipse+adt Jan 16 07:31:33 that's basically a recruiter just putting down bullet points Jan 16 07:31:44 and if a job mandates eclipse+adt, you probably don't want to work there anyway Jan 16 07:31:55 ktwo: https://www.jetbrains.com/idea/features/android.html seems like it might be implemented to work straight from intellij community Jan 16 07:33:22 ktwo: i would try it that way around and see if it works. Get IntelliJ Idea Community and try to build a simple android app Jan 16 07:33:23 anything you can do in android studio, you can do in intellij Jan 16 07:33:41 only difference is that the release version of intellij slightly lags behind android studio in features Jan 16 07:33:48 due to mismatched release schedules Jan 16 07:33:52 pfn: Yeah just how comfy is it :D Jan 16 07:34:03 and no build flavours, since that's not a gradle concept, correct? Jan 16 07:34:12 I don't know, I don't use build flavors Jan 16 07:34:15 and I don't use gradle Jan 16 07:35:06 Those of you who do android dev professionally, do you enjoy your job? Would you recommend trying to get into the industry, and if so, big corp vs startup? Jan 16 07:35:34 that always depends on what you want Jan 16 07:35:38 if you like doing it, then pursue it Jan 16 07:35:40 if you don't, then don't Jan 16 07:35:48 if you're in it for the paycheck, go for whatever will pay you the most Jan 16 07:35:58 f2prateek: There are build variants. I don't know if that's the same thing, but I have 'release' and 'debug' for example Jan 16 07:36:48 flavours are customized build variants, you could have releaseFree, releasePaid, debugFree, debugPaid Jan 16 07:37:32 flavors are something I don't really use, but I mimic them by creating multi-module projects Jan 16 07:37:59 pfn: I do like doing it. But it's good to hear from someone in the industry... my mom's friend's husband, for example, once warned me about trying to get into the video game industry, even if it seemed appealing Jan 16 07:38:28 Minimal changes where the name you would give the overall product doesnt change Jan 16 07:38:30 it doesn't matter, if you like it, do it Jan 16 07:38:43 because of high turnover rates and low job security. I just wonder if there are any problems like that in this industry Jan 16 07:38:52 people who love working on video games still work in the video game industry Jan 16 07:39:01 everything has high churn Jan 16 07:39:23 I guess that's true Jan 16 07:39:31 pfn: luckily they do where would the videogame industry be without them Jan 16 07:39:47 people are always miserable in jobs they don't enjoy Jan 16 07:40:10 Well do you enjoy your job? Jan 16 07:40:18 JavaDog: "I like to build apps so I build apps" back to a few hours ago? Jan 16 07:40:33 Was that pfn? I forgot Jan 16 07:40:38 JavaDog, that question is pretty irrelevant Jan 16 07:40:40 No it wasnt Jan 16 07:41:23 I agree with pfn -> You have to make decisions on what you experience not what others say Jan 16 07:41:42 if you like it, try doing it Jan 16 07:41:44 if you don't, don't Jan 16 07:42:00 and people like different things, sometimes they like big corp, sometimes they want lean startup Jan 16 07:42:15 you just have to try and see Jan 16 07:42:31 I concede that a single data point doesn't matter much, but it's certainly true that some job fields (as they are presently) are more likely to make people who are drawn to them miserable and burnt-out than others Jan 16 07:42:40 story of most lifes Jan 16 07:42:44 average tenure in IT jobs in silicon valley used to be something like 18 months Jan 16 07:42:45 trial and error Jan 16 07:42:51 it doesn't take long to try out different things Jan 16 07:43:17 JavaDog, in it for the paycheck or the enjoyment, there's a difference Jan 16 07:43:38 ...some of both, but largely enjoyment? Jan 16 07:43:40 lots of people want to be lawyers, not because they are passionate about the law Jan 16 07:43:51 same with doctors, etc. Jan 16 07:44:45 But you don't have to be passionate about it to be good at it. hardly anyone probably grows up thinking "I want to be a spine and neck-specialized plastic surgeon!" Jan 16 07:45:00 who said anything about being good at it Jan 16 07:45:04 thats exactly what i grew up thinking Java Jan 16 07:45:06 the question is whether they enjoy it and get burned out Jan 16 07:45:11 but i ended up being an alcoholic and substance abuser Jan 16 07:45:26 just as rewarding probably Jan 16 07:45:35 JavaDog: :D I always dreamt of being the best lawyer in the field of divorces because i like to see couples fall apart Jan 16 07:45:50 Lol that's kind of fucked up Jan 16 07:45:59 JavaDog: Jan 16 07:46:54 JavaDog: I was kidding Jan 16 07:46:59 just to be sure Jan 16 07:47:01 Lol I know Jan 16 07:47:07 Well, I fell for it originally Jan 16 07:47:37 Well thats just what i thought it would feel like if you are passionate about the law Jan 16 07:47:45 Although it can be pleasant to see couples break up. Like my mom with my ex-stepdad who cheated on her. That was pretty funny actually. Jan 16 07:48:26 Christ Android-Studio is buggy Jan 16 07:48:33 here is the issue i'm facing: Config path 'C:\Users\myusername\.AndroidStudio\config' is invalid. If you have modified the 'idea.config.path' property please make sure it is correct, Jan 16 07:48:33 otherwise please re-install the IDE. Jan 16 07:48:36 So does AS 1.1 Preview support JVM unit testing? Jan 16 07:48:40 I've tried reinstalling Jan 16 07:48:42 didnt work Jan 16 07:49:10 rd /s /q c:\users\yourusername\.androidstudio Jan 16 07:49:17 and if that doesn't work, your permissions and/or drive are fucked up Jan 16 07:49:25 TacticalJoke: Nobody knows :D Jan 16 07:49:30 what happend is, I renamed my user account Jan 16 07:49:33 nobody cares, more like it Jan 16 07:49:35 i did a full rename Jan 16 07:49:40 Nobody cares? Jan 16 07:49:48 pfn: Dont hit him with bricks like that Jan 16 07:50:26 A lot of big names would disagree with pfn. Jan 16 07:50:50 if the big names cared, they'd submit a pull request Jan 16 07:50:50 Did you check the release notes? Jan 16 07:50:55 pfn: Where does android load this from? Jan 16 07:50:57 like Jan 16 07:50:58 No. Jan 16 07:51:16 where does it get the idea that 'C:\Users\myusername\.AndroidStudio\config is the place to load the config Jan 16 07:51:18 Koolaids: Use Revo Uninstaller to completely remove AS from your system. I suspect old paths are being stored in places the uninstaller isn't reaching, like the registry and appdata folders Jan 16 07:51:25 ahh thanks Jan 16 07:51:45 it gets it based on the user.home property Jan 16 07:51:49 I think ccleaner can do deep-uninstalls also Jan 16 07:51:58 which is a term I just made up, so don't google it Jan 16 07:52:10 i hate apps that don't uninstall themselves properly Jan 16 07:52:13 ~30% intoxicated Jan 16 07:52:15 leaving little turds all over my hard drive Jan 16 07:53:10 JavaDog: if you google deep uninstalls it results in advertisement first but secondly revo uninstaller Jan 16 07:53:41 Sweet. haha Jan 16 07:53:47 so its at least the right combination of words to find the right thing Jan 16 07:54:20 I wonder if revo can uninstall itself Jan 16 07:54:40 JavaDog: it would leave files behind Jan 16 07:54:55 especially the revo.exe Jan 16 07:55:07 Unless it flagged them for deletion upon reboot or something Jan 16 07:55:22 well it might even do that true Jan 16 07:55:23 Which I think is a thing you can do Jan 16 07:55:56 Yeah there used to be a tool that would let you delete pesky "file is in use" files that way Jan 16 07:56:22 havent had that issue in ages Jan 16 07:56:33 fuckign Jan 16 07:56:37 android studio doesn't even show up Jan 16 07:56:39 Yeah I think t was more of a 98/xp-era issue Jan 16 07:56:41 in the revo uninstaller list Jan 16 07:56:57 Lolwut Jan 16 07:57:13 thats pretty nasty. You sure u got the official one? :D Jan 16 07:57:29 android studio is existing in a dimension between installed programs and uninstalled programs Jan 16 07:57:33 it's neither truely alive nor dead Jan 16 07:57:42 yeah Jan 16 07:57:44 Its schroedingers cat Jan 16 07:58:35 but the most important question is: did you try turning it off and on again? Jan 16 07:58:46 Probably because the default install location is in appdata for some silly reason Jan 16 07:59:00 yeah programs that try to install there are clearly stupid Jan 16 07:59:09 that is not the place for programs to be installed Jan 16 07:59:12 haha Jan 16 07:59:18 Well its not the programs fault Jan 16 07:59:34 its the developers fault Jan 16 07:59:47 dont blame the child for the parents wrongs Jan 16 07:59:48 They did it that way so they could write to files without admin (which would be required if AS was installed in program files) Jan 16 08:00:07 I believe that's the reason I read, anyway Jan 16 08:00:17 i know the reason, i just think it's messy Jan 16 08:00:22 JavaDog: I installed it on my second partition and it works flawlessly Jan 16 08:00:54 But if that's the reason, I don't understand why they couldn't just ask the user to specify a location in their documents folder (or somewhere with write permissions) to store SDK files Jan 16 08:01:48 Yeah I have it installed on a secondary drive and it works for me too Jan 16 08:02:29 I think most people do at least change the path when they see its appdata Jan 16 08:02:53 I have actually had problems with it installed in Program Files Jan 16 08:03:04 weird Jan 16 08:03:05 I would need to launch it as admin if I wanted SDK manager to work Jan 16 08:03:19 the AS installer does prompt for a custom location for the SDK Jan 16 08:03:33 Oh, maybe that's new Jan 16 08:03:47 Or is it not Jan 16 08:05:11 JavaDog: you might get an answer from f2prateek if you are lucky :D Jan 16 08:06:56 Why would I be lucky Jan 16 08:07:52 JavaDog: that he knows the answer :D Jan 16 08:09:28 Christ where the fuck is it getting it's information from Jan 16 08:10:12 oh wow twitter uses fixed width on their website for the main content area -.- no wonder it displays like crap if you only reduce the browser window size... it actually looks for the device type send Jan 16 08:10:17 i've changed the config location in idea.properties and it still insists on loading this buttfuck config that doesnt exist Jan 16 08:10:23 yanno Jan 16 08:10:29 i might just ditch android studio and use plain intellij Jan 16 08:11:04 Koolaids: from what i have heard today thats the better choice except if you are planning on using build flavors Jan 16 08:12:41 Lol sorry. Client crashed Jan 16 08:13:07 wb np Jan 16 08:13:20 why do you even say sorry on the interwebz Jan 16 08:13:22 :D Jan 16 08:13:31 Because I'm a civilized human being Jan 16 08:13:47 Sounds wrong Jan 16 08:13:48 ^^ Jan 16 08:14:21 Lol I'm up to like 80% intoxicated now Jan 16 08:16:12 JavaDog: how do you measure that? whats 100% defined as? Jan 16 08:16:33 100% is like... blacked out ,asleep Jan 16 08:17:50 A weird thing happened with google today Jan 16 08:17:53 If im not mistaking you went form 30% to 80% in about 20 minutes Jan 16 08:18:02 Haha. Yes Jan 16 08:18:09 either you drink a lot or you are weak Jan 16 08:18:24 Or I'm not drinking... but I'll leave it at that Jan 16 08:18:37 smoking aint good fo u Jan 16 08:18:44 Not smoking anything :) Jan 16 08:19:01 Thats even worse then Jan 16 08:19:16 eh? I don't think we're on the same page, lol Jan 16 08:19:35 he means trees Jan 16 08:21:23 I got an email after posting an update to gplay last night, it said "This is a notification that your app, x, with package name com.y.x, has not been accepted as an Android Wear app on Google Play. REASON(S) FOR EXCLUSION: -Your wearable app requires a handheld app but is not packaged inside that handheld app." Jan 16 08:22:10 I replied to the email, and they responded in exactly 30 minutes with "Hi, Thank you for your feedback. Please disregard the previous email. Your app has been re-reviewed, and it was determined that the app meets the minimum criteria for an Android Wear app on Google Play. You may receive an email notifying you that the app has now been accepted for Wear on Google Play." Jan 16 08:22:24 I'm wondering what that was about. Jan 16 08:22:43 Given these results, I'm not sure 1.1 Preview has unit testing: https://android-review.googlesource.com/#/q/%22unit+test%22+branch:studio-1.1-dev+status:Merged Jan 16 08:22:56 Mayhaps. Jan 16 08:24:48 uargh okay i definetely need to sleep now... anyone got a movie that helps with that? except for iron sky because that movie always puts me to sleep in about 5 minutes but i have watched the first 5 minutes about a hundred times by now and it gets a bit repetitive Jan 16 08:25:23 ( Jan 16 08:25:26 woops Jan 16 08:25:33 karlsve you could count TacticalJoke 's comments about AS & unit testing :P Jan 16 08:25:42 + i have never watched any more thant those 5 minutes Jan 16 08:26:04 g00s: :D too much effort Jan 16 08:27:11 Try podcasts. It helps me to be able to close my eyes Jan 16 08:28:26 podcasts about unit testing Jan 16 08:28:59 assertThat(karlsve.isAsleep()).isTrue(); Jan 16 08:28:59 http://www.hanselman.com/blog/HanselminutesPodcast169TheArtOfUnitTestingWithRoyOsherove.aspx Jan 16 08:29:02 since english isnt my native language it keeps my brain on too much workload Jan 16 08:29:15 ah Jan 16 08:29:19 JavaDog: lol Jan 16 08:29:29 Well there are probably podcasts in your native language Jan 16 08:30:06 JavaDog: Never used podcasts to learn anything anyways Jan 16 08:30:32 Fuck learning, podcasts are great for stories Jan 16 08:31:07 guess im gonna go with some "once upon a time" show nonsense (well known actors in a show that is a bit too weird) Jan 16 08:31:23 JavaDog: especially the ones on unit testing? Jan 16 08:31:48 For sure Jan 16 08:32:30 JavaDog: Its like a fairytale Jan 16 08:33:06 Yeah I've heard of it Jan 16 08:33:20 Have a good night then Jan 16 08:33:35 thx (but its daytime) Jan 16 08:34:01 Oh Jan 16 08:34:17 Uh.... sleep well? Jan 16 08:34:26 works ^^ Jan 16 08:34:30 lol Jan 16 08:38:37 Damn. Is there a way to see whether a file is a symbolic link in windows? I know I set some up in this project but I forgot which files they were o_o Jan 16 08:40:56 Nvm. Sorted it out Jan 16 09:20:55 Is there a simple method to get how many items can recyclerview show (LinearLayoutManager) without scrolling? Or i need to calculate it by myself? Jan 16 09:33:26 Hello Jan 16 09:35:05 ohayou Jan 16 09:35:33 I've replaced the original file named Generic.kl in /system/usr/keylayout with a Generic.kl localized version Jan 16 09:36:40 same for Generic.kcm in /system/usr/keychars Jan 16 09:37:25 but even only Generic.kl replacement, keyboards is not recognized from the system anymore Jan 16 09:37:32 Any ideas? Jan 16 09:37:55 *with, *keyboard Jan 16 09:54:03 cristian_c: try #android-root Jan 16 09:54:52 SimonVT, why? Jan 16 09:55:58 Because this channel is for app dev Jan 16 10:02:10 karlsve, yea thx ill check it out, maybe its even nicer to use the "real thing" than AS Jan 16 10:03:34 SimonVT, but I don't understand why just #android-root Jan 16 10:04:10 It was a suggestion, you can try another channel if you'd like Jan 16 10:04:23 I don't really care, as long as it's not here Jan 16 10:04:52 ah, ok Jan 16 10:32:39 Hello guys, when I start an activity of my own app, it starts an activity of another app :s How can I filter the activity to start the activity of my own app instead of another one. Jan 16 10:33:29 I know I have to do a intent-filter in the manifest file, but I don't know what attributes to use... Can you please help me with that? Jan 16 10:34:59 Number5: if you know what activity in your app you want to start why not just use an intent that explicitly starts that specific activity? http://developer.android.com/guide/components/activities.html#StartingAnActivity Jan 16 10:36:46 appel1, that's what I normally thought it does. But when I do that, it starts another app of mine. I'm rewriting my old app with new api and better code and so on. After testing an activity, it starts my old app. Jan 16 10:37:09 It's just a startActivity(intent); Jan 16 10:37:31 I've also included the activity in my manifest. Jan 16 10:37:42 Number5: did you reuse package names or something? Jan 16 10:38:46 I checked the package name too, that's what makes me confused. Before I rename the class I want to make sure if I did what I should do. Jan 16 10:41:01 Number5: in the manifest of your applications, what is the name attribute set to for your activities? Jan 16 10:41:11 Number5: is it a fully qualified name as it is supposed to be? Jan 16 10:41:58 Number5: http://developer.android.com/guide/topics/manifest/activity-element.html#nm Jan 16 10:43:51 appel1, thank you for your help. I think it's something else. I'm further investigating my problem. But thank you anyway. Jan 16 10:44:44 Number5: Ok. But it does sound like you've accidentally used the same value for the name attribute for an activity in your old and new apps. Jan 16 10:47:36 appel1, I got it, it's a stupid mistake of mine. Anyway the problem hasn't to do with startActivity(). Anyway thank you for your help. Jan 16 10:47:45 Number5: ok =) Jan 16 11:37:21 Hello guys, I have create release app because I want to test in app billing, how I could turn on logging in release version? I don't use progurad Jan 16 11:39:12 this is how my grandle build looks like http://www.sourcedrop.net/FDV8f849bfbe8 Jan 16 11:41:53 how do i get a reference to the TextViews of an alert dialog? Jan 16 11:41:57 title and msg Jan 16 11:42:44 i’m simply trying to center align the messages without having to supply a new TextView to it Jan 16 11:43:23 ultra-, just create separate Textviews for your dialog. Jan 16 11:43:55 or create one programmatically. Jan 16 11:44:30 it’s all programmatic anyway Jan 16 11:44:54 i guess my main concern is setting the same font size that the AlertDialog uses by default Jan 16 11:46:40 i do have it working programmatically with custom TextViews Jan 16 12:08:41 I need to store an object in sharedpreferences, from what I know about sharedpreferences you can only store Strings and primitive types... is there any way to store any object? Jan 16 12:09:12 breaking down the object to strings and primitive is not an ideal option in this case Jan 16 12:12:48 make it parceable Jan 16 12:12:55 there is a plugin that will do it automatically Jan 16 12:13:12 oh ok Jan 16 12:13:19 thnx Jan 16 12:27:24 hi, I have a ListView with each row being an EditText. I have a separate EditText, outside the ListView. Each time I tap over a listview edittext, the focus automatically changes to the other EditText, outside of the listview. As far as I know, I didn't put any code to do that, how can I capture what event is changing the focus? Jan 16 12:28:41 how do I get android studio to reload snapshot dependencies from my local maven repo? Jan 16 12:33:28 cezium: manually delete the caches in your diskspace Jan 16 12:33:34 yango onfocuschangedlistener Jan 16 12:34:01 lasserix: there must be a better way? Jan 16 12:36:34 lasserix: I had one, but I deleted it, and now there's no onfocuschangedlistener in my code Jan 16 12:36:48 lasserix: maybe I'm not running the last code even without knowing? Jan 16 12:38:29 ce ceziumonly wayi could get it to do it Jan 16 12:38:36 yango you can use that Jan 16 12:38:55 you could also disale the outside one while the inside one has focus Jan 16 13:14:35 lasserix: Can I see who's the generator of the change focus event within the onchangefocuslistener? Jan 16 13:23:06 Is there a way too make a generic variable for an Activity? Jan 16 13:24:11 does anyone know how robolectric looks up the manifest path in config? Is it relative? or follows some convention? None of the examples I see are consistent, and so far everything I've tried seems to just cause errors. Jan 16 13:40:06 so calligraphy 2.0.0 was just released to nexus. Does that propagate out to mavenCentral and jcenter? Release process still kind of a mystery to me. Jan 16 13:46:50 is there any way to add a view to a tabhost?? I need to add a small red circle under one of the tab's text Jan 16 13:47:27 oh its a viewgroup Jan 16 13:47:42 nvrmind Jan 16 13:51:12 i need to know how to manually give an app location permissions Jan 16 13:51:59 screwsss, you add android.permission.ACCESS_FINE_LOCATION to your manifest Jan 16 13:52:10 son of a Jan 16 13:52:13 or ACCESS_COARSE_LOCATION depending on your needs Jan 16 13:52:24 im not appearing to other people on tinder Jan 16 14:15:36 So Google just announced AS 1.1 preview 1. One of the items they mentioned adding was several new Lint checks. Is there a typical place where I can go and find out what the IDs and formal descriptions of the Lint issues are? Jan 16 14:18:00 ironmarx, http://tools.android.com/tips/lint Jan 16 14:18:31 there is a list of all lint checks with their descriptions Jan 16 14:20:12 https://code.google.com/p/android/issues/list under spam again Jan 16 14:20:37 [00:52] screwsss, you add android.permission.ACCESS_FINE_LOCATION to your manifest Jan 16 14:20:38 lol Jan 16 14:20:49 i thought i was after something else Jan 16 14:23:21 what if you were to try becoming.A.real.HELPER Jan 16 14:25:26 Does anyone know the apk location of Play Store on KitKat? It was /system/app/PlayStore.apk on Jelly Bean... Jan 16 14:26:01 Jonathan_Eyre: you may try #android Jan 16 14:29:41 Jonathan_Eyre, try /system/priv-app Jan 16 14:38:24 why is android telling me that this color value is not valid when it is: #cff0000 Jan 16 14:39:31 kinda missing a number ther emate. Jan 16 14:40:07 gotcha ;) Jan 16 14:47:56 Is it possible to feed whatever camera is seeing into a layout ? Jan 16 14:48:11 IE. Use camera in your app without starting the camera app Jan 16 14:48:32 I need my own UI for taking images Jan 16 14:49:53 yes? Jan 16 14:50:07 this is mostly done with surfaceview Jan 16 14:50:23 neredsenvy: yeah that's fairly common Jan 16 14:50:31 first link from google https://www.airpair.com/android/android-camera-surface-view-fragment Jan 16 14:51:01 Thank you got something to look up : )) Jan 16 14:51:18 Otherwise you wouldn't have a preview in third party camera apps :) Jan 16 14:51:48 neredsenvy, TextureView . Jan 16 14:51:58 SurfaceView doesn't behave well inside other layouts. Jan 16 14:52:24 ty Jan 16 14:55:26 If I include code from http://developer.android.com/training/gestures/detector.html, that I modify, in my app, as I understand it that code is released under apache 2.0 license and I need to put a note in the source file about it? If so is it enough with something like "Uses code from http://developer.android.com/training/gestures/detector.html#detect. This code is released under apache 2.0 license. Link to license: http://www.apache.org/licen Jan 16 14:55:26 ses/LICENSE-2.0. This code has been altered." ? Jan 16 14:57:14 It's released under Apache? Jan 16 14:58:49 jesperj: I'm getting a 404 for that page Jan 16 14:59:04 Generally though isn't only the actual AOSP source under Apache? Jan 16 14:59:10 Page loads here. Jan 16 14:59:47 what's a good example of a registration form with dropdowns and stuff? Jan 16 15:00:33 TacticalJoke: As I undestand it, that code is yes. That developer.android.com website has on the bottom "Except as noted, this content is licensed under Creative Commons Attribution 2.5. For details and restrictions, see the Content License." and under the linked document http://developer.android.com/license.html it says "This documentation, including any code shown in it, is licensed under the Apache 2.0 license" Jan 16 15:01:03 OmegaVesko: 404 for http://developer.android.com/training/gestures/detector.html ? Strange Jan 16 15:01:11 Notice it has the cc license notice Jan 16 15:01:30 I assume that would include the code samples Jan 16 15:02:37 OmegaVesko: Well the linked document says "This documentation, including any code shown in it, is licensed under the Apache 2.0 license" Jan 16 15:02:48 jesperj: i can load the second link but not the first one, it's the same page so not sure how Jan 16 15:02:57 jesperj: Isn't that code tiny? I doubt anyone would even be able to tell you'd copied it from that page. Jan 16 15:03:15 TacticalJoke: I guess it's an ethical thing Jan 16 15:03:27 jesperj: hm, I think the notice on the page would override the one for the general documentation Jan 16 15:03:38 IANAL though Jan 16 15:06:14 Ok so it seems hard to figure out if it is under CC or apache... let's say I interpret it as being apache. Is the note I was planning on including in the source code comments enough? Jan 16 15:06:26 Alright this is driving me crazy. How do I make those nice big, blue buttons in my ongoing notification on android wear? Jan 16 15:07:40 Or in any notification. I've already got a nice, multi-page one going but I can't figure out how everyone does those damn buttons. Jan 16 15:08:09 jesperj: Are you seriously worried about a few lines of sample code? Jan 16 15:08:27 This thing that they have a screenshot of but don't tell you how to do https://developer.android.com/wear/images/circle_email_action.png Jan 16 15:08:35 I can't answer your question; sorry. But I do think that code is absolutely unremarkable. Jan 16 15:09:01 JavaDog: that just looks like a FAB to me Jan 16 15:09:26 TacticalJoke: It might be an asperger + ocd thing. Yes I'm serious. Jan 16 15:09:43 OmegaVesko: eh? Jan 16 15:10:00 JavaDog: floating action button? Jan 16 15:10:11 jesperj: Which block of code is it? Jan 16 15:10:15 How do I make one? Jan 16 15:10:21 It's a lollipop/material thing Jan 16 15:10:41 There are four code blocks on that page. Jan 16 15:10:44 Uh, I know there are libraries for them, not sure if appcompat or the sdk has them natively Jan 16 15:12:02 TacticalJoke: "Detecting a Subset of Supported Gestures". The last one. Jan 16 15:12:23 Yeah I don't think it's a floating action button. This is specific to notifications Jan 16 15:12:36 Like, this is one of the pages you'd see in a notification on android wear Jan 16 15:12:39 That's just a simple skeleton of code. Jan 16 15:12:51 Anyone using that class will have basically that code. Jan 16 15:13:14 As a fellow OCD person, I can tell you that even thinking about licenses here is ridiculous. Jan 16 15:14:08 licences* Jan 16 15:14:23 Android/Java are kind of well-known for the amount of boilerplate code you have to write to do even the simplest things Jan 16 15:15:13 Yeah, definitely Jan 16 15:15:32 Always could be worse, though. Jan 16 15:16:14 Stuff just gets stupid sometimes... House myHouse = new House.Builder().setOwner(this).build(); Jan 16 15:16:22 TacticalJoke: Ok... so any sane person would just include it without any attribution and not think twice about it. I'll... try to do that :) Thank you. Jan 16 15:16:33 Exactly. Jan 16 15:17:02 IMO, if any ethical argument could be made there, it's in favour of *not* attributing, since it's skeletal sample code. Jan 16 15:18:14 It's just a tutorial showing you how to do something. Imagine if we had to attribute every we time we followed a tutorial. That'd be absurd. Jan 16 15:18:36 TacticalJoke: Then what about code snippets found on for example Stack overflow on how to do stuff? Jan 16 15:18:44 Would that be different? Jan 16 15:18:48 People copy that shit all the time Jan 16 15:19:00 I don't think it'd be different, personally. Jan 16 15:19:04 Not saying it's necessarily ethical, but they do Jan 16 15:19:18 * JavaDog is a former programming TA Jan 16 15:19:35 I think, in general, *not* letting people make progress is unethical. Jan 16 15:19:46 Or constraining their progress. Jan 16 15:19:57 i keep lists of everyone I help in here Jan 16 15:20:07 The US patent system would like a word with you Jan 16 15:20:16 when someone goes on to be acquired by facebook I have the ammunition to sue them for a billion dollars Jan 16 15:20:19 I'm not advocating copying stuff we shouldn't be copying. I'm talking about SO posts. Jan 16 15:20:49 The idea that copying code from SO without legally attributing is crazy, if you ask me. Jan 16 15:21:01 well I am a bit nuts lol Jan 16 15:21:01 s/is crazy/is unethical is crazy/ Jan 16 15:21:27 I mean, I pirate movies and stuff, so I can't really say much Jan 16 15:22:22 This is released under the GPL v3.0: System.out.println("Hello world."); Jan 16 15:22:36 but if taking and modifying SO code snippets is "ok" without attribution, it sure simplifies things Jan 16 15:22:38 doesn't even compile, bro Jan 16 15:22:39 You may modify it, but your programs' source code must be released too. Jan 16 15:22:59 released under the same license! Jan 16 15:23:12 forever! (why I will never use GPL) Jan 16 15:23:16 http://meta.stackexchange.com/questions/12527/do-i-have-to-worry-about-copyright-issues-for-code-posted-on-stack-overflow Jan 16 15:23:31 Someone claims it's the Creative Commons. Jan 16 15:23:35 I'm releasing my app under something like WTFPL or MIT anyway *shrugs* Jan 16 15:24:54 Hmm, it's one of the "attribution required" ones. Jan 16 15:26:44 In any case, I stand by the position that having to attribute for copying some code from StackOverflow is just absurd. Jan 16 15:27:48 Personally, though, if I see an answer on SO I never copy-paste. I just take their idea and implement it in my own code. Jan 16 15:30:39 This is weird -- just downloaded Android Studio and scanned it with MSE, and MSE thinks it has a trojan inside. Jan 16 15:30:49 The latest release (not today's preview). Jan 16 15:31:22 so you know all that stuff about Google publishing a windows exploit before MS had fixed it? Jan 16 15:31:47 Leeds: yeah? Jan 16 15:32:07 well, Mr. Google, you might not want to do that again, unless you want your IDE to get... ahem... marked as malware, maybe? Jan 16 15:32:12 TacticalJoke: check the hash? Jan 16 15:32:14 heh Jan 16 15:32:28 Leeds. or its just step 3 of google wanting microsoft to fix it Jan 16 15:32:44 1) tell them, 2) make if official, 3) exploit it until its fixed Jan 16 15:36:38 why would getActivity() inside a Fragment return null even after onAttach has been called Jan 16 15:36:58 if I store the reference to Activity passed in onAttach, that reference remains later when getActivity() returns null Jan 16 15:37:39 but I don't want to keep a reference to Activity since that feels bad Jan 16 15:38:00 Why don't google post clear changelogs for the new releases on nexus devices? Jan 16 15:39:23 pclover: because they're google Jan 16 15:39:34 MooGoo: Weird. Is your code doing anything weird? Jan 16 15:39:49 The devs here post changelogs no? Jan 16 15:39:57 MooGoo is it still attached when you call getActivity Jan 16 15:40:11 after onAttach doesn't also mean before onDetach Jan 16 15:40:24 why there isnt good testing support and why i still cannot buy nexus 6 ? Jan 16 15:40:48 you probably don't have enought money, that's my guess Jan 16 15:41:10 well this problem doesnt occur all the time, most of the time getActivity() returns the activity, but when this one fragment is loaded twice, then getActivity() returns null Jan 16 15:41:15 OmegaVesko, would be nice if they did that so you can answer the question is X is fixed like the major memory leak Jan 16 15:41:26 Loaded twice? Jan 16 15:41:44 pclover: 'would be nice' is a phrase you find yourself using often when talking about google :) Jan 16 15:41:58 MooGoo, yeah sounds like the first fragment is detaching and you are trying to call getActivity from that one Jan 16 15:42:04 yea...like...I'm on one fragment, then I choose the logout option, which takes me to the login fragment, then I login and it takes me back to the problem fragment Jan 16 15:42:13 at that point getActivity() will return null Jan 16 15:42:17 yep Jan 16 15:43:02 So I'm guessing that onDetach is called, onAttach is *not* called, and then getActivity is returning null. Jan 16 15:43:26 it seems like onAttach is called, since the variable theActivity set in onAttach is not null Jan 16 15:43:34 good morning android peeps Jan 16 15:43:49 You could verify with Log.d. Jan 16 15:44:05 did so, my IN ON ATTACH log always shows up Jan 16 15:44:14 MooGoo: Because you are storing a reference to an instance of an Activity that it is not attached to Jan 16 15:44:24 MooGoo: Are you also logging onDetach? Jan 16 15:44:28 hey hesperaux Jan 16 15:44:32 Which can also cause context memory leaks Jan 16 15:44:59 MooGoo, check if its null if your code relies on getActivity() Jan 16 15:45:06 I can't imagine getActivity returning null between onAttach and onDetach. I can imaging that after onDetach (and before onAttach). Jan 16 15:45:20 try rotating the phone 20-30 times and if you have a good handful of data per Activity the memory will go out of control Jan 16 15:45:21 well thats why I dont want to store a reference to activity, it was just an experiment Jan 16 15:45:51 so that reference is probably to an old activity? Jan 16 15:45:56 yep Jan 16 15:46:03 today I will make a custom Loader. yes, today is the day. Jan 16 15:46:13 weird cause no configuration change happened in the mean time Jan 16 15:46:16 MooGoo: If you log both onAttach and onDetach you should be able to see what's going on. Jan 16 15:46:17 just some fragment transactions Jan 16 15:46:41 Well you can always put some logs in to test it out Jan 16 15:47:28 What getActivity() returns never lies, so that's your starting point Jan 16 15:47:43 Yeah, the code is just "return mActivity;". Jan 16 15:47:43 of truth, question everything else Jan 16 15:47:57 mmm... dat feel when you spend the whole night doing a massive refactor, and once you sort out the UI bullshit, everything works perfectly :) Jan 16 15:48:18 JavaDog, hello again Jan 16 15:48:26 Hey Jan 16 15:48:37 * hesperaux slept Jan 16 15:48:54 * JavaDog made so much progress :D Jan 16 15:48:59 nice Jan 16 15:49:03 Refactoring can feel awesome. :) Jan 16 15:49:17 it can? I always feel like I'm forgetting something lol Jan 16 15:49:21 I find it hard to sleep if I have duplication or something. Jan 16 15:49:30 Or the code just feels bad. Jan 16 15:50:08 It didn't even feel right to go to bed when it wouldn't compile :( Jan 16 15:50:15 I'm installing Android Studio (and upgrading to 1.1 Preview). I'm soon to find out whether it supports JVM unit testing. Jan 16 15:50:16 (so I didn't) Jan 16 15:50:32 TacticalJoke: Haven't we been over this Jan 16 15:50:37 Over what? Jan 16 15:50:40 I hate when Android Studio decides to stop displaying logs Jan 16 15:50:57 pidcat is pretty nice Jan 16 15:51:00 MooGoo: oh good, it's not just me Jan 16 15:51:07 MooGoo: Like it stops updating logcat? Jan 16 15:51:08 MooGoo: I just today found a magical button: that little one with the green arrow Jan 16 15:51:16 They still haven't fixed that?? Jan 16 15:51:22 "Restart"... works whenever it breaks for me Jan 16 15:51:24 it just randomly decides to show data for all processes or just not show any logs at all Jan 16 15:51:28 JavaDog: what is your wearable app ? Jan 16 15:51:33 Nice IDE Logcat replacement, https://github.com/JakeWharton/pidcat Jan 16 15:51:44 OmegaVesko: yea that too Jan 16 15:51:46 I thought it was my adb connection breaking since I work wirelessly Jan 16 15:51:47 https://github.com/culmor30/cgeo-wear/ Jan 16 15:52:03 thanks Jan 16 15:52:08 adb logcat always works fine but I need the app filtering of logcat in AS Jan 16 15:52:23 MooGoo: If so, sometimes if I go to "Window > Show View > Devices" it starts updating logcat again.... Jan 16 15:52:37 yiati: oh that looks awesome Jan 16 15:52:41 shmooz: I'm defecting to Android Studio. ;o Jan 16 15:52:45 Well, conditionally. Jan 16 15:52:48 I'll have to set it up when I get home Jan 16 15:52:52 does it work well on Windows? Jan 16 15:52:54 I'm probably in for about three days of Hell. Jan 16 15:53:17 I've been avoiding updating AS because I don't want all my stuff to break right now Jan 16 15:53:25 I think masochism would be useful to a programmer. Jan 16 15:53:36 JavaDog: I updated Android Studio in the middle of a project.. once Jan 16 15:53:37 Once. Jan 16 15:53:50 Haha, yup Jan 16 15:53:51 lol Jan 16 15:54:45 TacticalJoke: it's not useful, it's just more masochism Jan 16 15:54:46 sometimes sometimes running adb kill-server/adb start-server fixes the logging issue Jan 16 15:55:16 I'll give a pain rating out of 10. Jan 16 15:55:20 I swear that reset button is all you need. Unless I'm the only one it works for Jan 16 15:55:52 I predict 7. Jan 16 15:56:22 JavaDog, that usually works for me too Jan 16 15:56:32 I kill adb when that happens. Jan 16 15:56:34 Seems to fix it. Jan 16 15:56:45 reset button and sometime you need to open a new activity after that Jan 16 15:56:45 I have an idea for an app, a virtual boss to whip you to get your work done that you program, but you can't take back your promises Jan 16 15:57:11 so it punishes you for not meeting your private project self set deadlines Jan 16 15:57:26 How does it punish the user? Jan 16 15:57:49 electroshocks in your pocket ! Jan 16 15:57:58 TacticalJoke: give it a directory to rm :p Jan 16 15:58:10 good question Jan 16 15:58:20 They could develop a remote-control filled boxing glove. Users plug it into their computers and, if they misbehave, it "corrects" them. Jan 16 15:58:20 OmegaVesko, random directory :) Jan 16 15:58:22 electric shock ? Jan 16 15:58:23 lock your phone Jan 16 15:58:30 force you to donate money to charity Jan 16 15:58:37 I've always wanted to make a 'high-stakes' video game Jan 16 15:58:38 lol OmegaVesko Jan 16 15:58:44 ohh that's a good one Jan 16 15:58:46 shmooz: oh I like the donation one Jan 16 15:59:02 that's already been done in similar contexts, like alarm apps Jan 16 15:59:06 Try to close it through alt-f4/task manager, it erases your documents folders. Every time you die in-game, a random system file with write permission is deleted Jan 16 15:59:17 russish windows roulette. delete a random folder in C:\ until someone gets bluescreen Jan 16 15:59:34 JavaDog: how can it erase anything if you've killed the process? :D Jan 16 15:59:45 So nobody here would bother writing attribution to a SO post in their code if they copy/pasted and modified code from there? Jan 16 15:59:49 It and its dependencies would obviously be last to go Jan 16 15:59:58 and you'd likely have to write it in C/assembly to limit those Jan 16 16:00:02 jesperj: Nope, nobody would. Jan 16 16:00:22 jesperj: nah, unless I've literally lifted an entire class or method from SO Jan 16 16:00:27 or just take your money from you Jan 16 16:00:27 and put it in my pocket Jan 16 16:00:31 You're worrying too much, jesperj. Jan 16 16:01:04 that oughta learn ya! Jan 16 16:01:24 Who would post code to SO and get upset that someone else had copied it? Jan 16 16:01:35 SO is basically a "Here's some code you can copy" site. Jan 16 16:01:56 wow someone more OCD than TacticalJoke ! Jan 16 16:01:59 haha Jan 16 16:02:02 heh Jan 16 16:02:12 Yeah, I feel for this guy. I know what he's going through. Jan 16 16:03:23 Android Studio's new splash screen is nice. Jan 16 16:03:33 I like the icon too Jan 16 16:03:40 Yeah. Jan 16 16:05:39 In my all I have an object that must have a name, photo file and audio file. What is the best way to arrange storage for this? Jan 16 16:05:57 also need to group them Jan 16 16:06:15 where are the highest-quality versions of the images in sdk/platforms/android-20/data/res/drawable-xxhdpi? Jan 16 16:06:24 Because the resolution on these is kinda bad Jan 16 16:12:33 What do I need to allow in my firewall for AS's Gradle to do stuff? Jan 16 16:13:09 If I retrieve a cursor in a background thread, is it safe to utilize the Cursor in the UI thread? Jan 16 16:13:24 or should the cursor be iterated in the background as well? Jan 16 16:13:49 ui thread is ok Jan 16 16:14:08 good. I'm not familiar with how much overhead a Cursor brings yet Jan 16 16:14:50 it depends how much data that cursor might go through Jan 16 16:15:14 well, these Cursors are going to be providing data to autocompletetextviews Jan 16 16:15:58 test it on ui thread, if you see it lagging take it to background Jan 16 16:16:05 k Jan 16 16:18:29 shmooz, bad strategy Jan 16 16:19:03 if you're grabbing the data on a seperate thread, what's the harm in iterating it on the same thread? Jan 16 16:19:06 no lag on your phone does not mean no ANR on another one Jan 16 16:20:13 danijoo: well it's a given that you should also test on slower devices/emulators Jan 16 16:20:20 Okay, I had to allow java.exe. Jan 16 16:20:46 TacticalJoke: doh! now you are owned by oracle Jan 16 16:21:02 OmegaVesko, still a device can lag because of heady load and stuff like that. But i think theres not much being slower than the stock emulator :D Jan 16 16:21:45 danijoo: if the data is constant I test it on a 3 or 4 year old phone Jan 16 16:22:33 Anyone got any ideas on how to draw a custom view on top of everything. Currently when it draws everything in the ViewGroup shifts around. This is especially bad when using a linear layout. Jan 16 16:22:36 but yes even then it's not safe to assume it will not lag Jan 16 16:22:51 I'll get this working first - then I'll optimize it Jan 16 16:22:56 shmooz, and still there could be an ANR on a nexus 6 when you do sth on a ui thread that does not belong there Jan 16 16:23:14 Radther: Have you tried a RelativeLayout? Jan 16 16:23:28 I'm not sure if it can be further optimized. The Loader is giving me a Cursor, which I am handing to a autocompletetextview adapter Jan 16 16:23:30 It needs to be ViewGroup independent. Jan 16 16:23:57 Radther, I used a PopupWindow for a similar purpose Jan 16 16:24:14 I'm making a library that draws something on the screen (currently a black box) and I need it to draw ontop of everything. Jan 16 16:25:08 SilentByte: That seems like a strange solution that probably wouldn't be a very good idea here. Jan 16 16:25:10 if it's slow, I'll redesign my cursoradapter to take an arraylist of objects instead Jan 16 16:25:31 hesperaux, if you have a cursor, wrap it in a content provider and let autocompletetextview handle it automatically Jan 16 16:25:41 -_- Jan 16 16:25:52 I was already advised to use LoaderManager instead of ContentProvider Jan 16 16:26:07 so I have been learning all about Loaders to do that Jan 16 16:26:18 hmm, I think I'm confusing autocompletetextview with searchview Jan 16 16:27:40 pfn, yep, you do Jan 16 16:27:51 searchview seems to be somehow limited to cursoradapters :/ Jan 16 16:28:01 contentproviders i meant Jan 16 16:28:17 as you would expect - searchviews may want data from external applications Jan 16 16:28:50 ... or just a list from my own application. Jan 16 16:28:58 from what I can tell, contentprovider is for providing data to other apps and Loader is for loading data in the background within an app. I might not understand it properly though Jan 16 16:29:01 you can make your custom searchview using .contains(... Jan 16 16:29:30 hesperaux: that's pretty much the jist of it Jan 16 16:29:52 loader pretty much sucks... Jan 16 16:29:56 s/jist/gist Jan 16 16:29:59 ugliest api ever Jan 16 16:30:10 I've heard that about both CP and Loader Jan 16 16:30:27 what is ugly about the Loader api? Jan 16 16:30:30 i dont even bother w/ loaders. rxjava is much more straightforward and simpler to use Jan 16 16:30:45 So, Android Studio isn't anywhere near as laggy as it was around two months ago. Jan 16 16:30:49 Damn, they made some improvements. Jan 16 16:30:52 It's actually usable. Jan 16 16:31:04 TacticalJoke, can I run it with <8G ram? Jan 16 16:31:18 I'm on 4GB RAM and it's seeming okay so far (but I've used it for about 10 minutes). Jan 16 16:31:20 right now i'm limited to using it on my desktop with 16G Jan 16 16:31:33 TacticalJoke, SSD or HDD? Jan 16 16:31:50 what's ugly about the loader api? the need to implement 2-3+ interfaces in order to accomplish a single loading Jan 16 16:32:05 heh Jan 16 16:32:07 in addition to awkward method calls Jan 16 16:32:29 HDD. Jan 16 16:32:34 and there are a ton of cases that have to be handled that aren't enforced in the api (for cancellation, reset, etc) Jan 16 16:32:41 TacticalJoke: my AS lag went away when I switched to an SSD Jan 16 16:32:50 Been runing with 4GB here since it first came out and memory was never an issue Jan 16 16:32:52 TacticalJoke, hmm. I may have to try it on a lappy again. If it works well, I may not have to blow way too much money on a laptop with lots of ram Jan 16 16:32:52 ssd = #1 upgrade to PC Jan 16 16:33:06 4GB RAM too Jan 16 16:33:16 TacticalJoke: They have just released 1.1 to the dev channel which is supposedly a "bug fix release" Jan 16 16:33:22 AS works fine on my HDD, but I have 8GB ram Jan 16 16:33:23 yiati, i have found it to be unusable on my core i5 laptop with 6G Jan 16 16:33:25 it often helps to increase HEAP size for AS/intellij if its lagging Jan 16 16:33:31 at least that did the trick for me Jan 16 16:33:45 pfn, yeah the cancellation aspect seemed pretty lame to me Jan 16 16:33:50 Yeah, this is 1.1 Preview. Jan 16 16:33:52 Also works well on my laptop, 6GB ram Jan 16 16:33:57 Trying to figure out whether I can do JVM unit testing on this. Jan 16 16:34:03 "works" is a relative term though Jan 16 16:34:13 hesperaux: I do have a macbook i7, a 7200 RPM HDD, and 4GB Jan 16 16:34:22 pfn: one thing that has always bugged me about loaders is that it has wonky behaviors when you start dealing with configuration changes Jan 16 16:34:23 Just installed 1.1. This should be interesting. Jan 16 16:34:26 so yeah, loader is a terrible api that's better to be handled using another setup Jan 16 16:34:28 i usually have 30-50 tabs in chrome, an emulator using 1-1.5G ram, and AS running Jan 16 16:34:40 30-50 chrome tabs Jan 16 16:34:41 alexfu, and that's exactly the problem loaders are trying to solve Jan 16 16:34:44 that's your problem Jan 16 16:34:50 literally and metaphorically Jan 16 16:34:52 alexfu, which makes it so bad Jan 16 16:34:54 xD Jan 16 16:35:02 chrome eats too much memory on each tab Jan 16 16:35:03 this is how i do Jan 16 16:35:20 hi guys, when am I supposed to load data in a Fragment? I only want it once when the app loads, if I put it in onCreate() it gets called every time I swipe to the fragment Jan 16 16:35:37 ^ the fragments are inside a viewpager btw Jan 16 16:36:05 hell, on my SSD I can run AS and IDEA at the same time comfortably Jan 16 16:36:19 dimitrovskif: check if savedInstanceState == null. if true, then load data. Jan 16 16:36:37 alexfu: ohh I thought savedInstanceState is useless Jan 16 16:36:47 alexfu: thanks man, how do I write data to the Bundle? Jan 16 16:36:47 dimitrovskif: would also like to know this.. I have a viewpager that seems to create a new fragment every time I swipe away and back Jan 16 16:36:48 dimitrovskif: um. no. Jan 16 16:37:16 OmegaVesko: ViewPager usually caches 3 fragments in memory, but may decide to re-create them when it wants Jan 16 16:37:26 dimitrovskif: look up onSaveInstanceState in the Fragment docs Jan 16 16:37:42 OmegaVesko: you can change number of saved fragments (by default current fragment, last swiped fragment, next fragment) Jan 16 16:37:54 Hey guys Jan 16 16:38:17 OmegaVesko: from my experience, never rely on that cache Jan 16 16:38:18 I'm looking for from general direction as to what type of android control I can use to achieve something strange. Jan 16 16:38:33 umm Jan 16 16:38:39 lets see how do i describe this Jan 16 16:38:46 mantas322: WAT Jan 16 16:38:55 hang on Jan 16 16:39:30 hang on lemme draw a picture Jan 16 16:39:35 lol Jan 16 16:39:38 wtf lol Jan 16 16:39:55 mantas322: Maybe decide what you want to ask before hand next time lol Jan 16 16:40:19 this is called cart before horse Jan 16 16:40:29 im sorry radther Jan 16 16:40:36 sometimes i type 'out-loud' Jan 16 16:40:40 * hesperaux imagines a horse pushing the cart Jan 16 16:40:58 mantas322: Don't worry about it Jan 16 16:41:02 Can't skip arm day Jan 16 16:41:10 lol Jan 16 16:41:36 dimitrovskif: that's the weird bit though, I have three in total Jan 16 16:41:52 Okay I drew a picture Jan 16 16:41:59 woo! Jan 16 16:42:01 http://i.imgur.com/ZNiFmvs.png Jan 16 16:42:04 OmegaVesko: as I said, never rely on caching; even if you have 3 they may be re-created Jan 16 16:42:04 And I have the adapter cache them manually instead of creating a new one each time Jan 16 16:42:18 I want these squares to be responsive to distinct events. Jan 16 16:42:27 when pressed Jan 16 16:42:41 responsive in what way? Jan 16 16:42:51 Toast "You pressed area 1" Jan 16 16:42:53 mantas322: Try Buttons inside of a RelativeLayout with custom margins, I guess Jan 16 16:42:59 then area one would change colors Jan 16 16:43:15 but what if some of those squares are triangles? Jan 16 16:43:34 Uh. You may want to draw your own elements then Jan 16 16:43:36 this seems silly i know.. Jan 16 16:43:37 yes Jan 16 16:43:41 don't even bother with relativelayout. you're better off with a custom layout Jan 16 16:43:44 but what do i need to learn about to do this Jan 16 16:44:16 Yeah. Learn how to make custom layouts, and learn how to make custom Button implementations (like a triangle) Jan 16 16:44:30 just downloaded a trial of a software. their price is 3000$. 100$ student discount. They obviously never studied.. Jan 16 16:44:36 mantas322: Changing color of something can be done with view.setColor(yourColor) Jan 16 16:44:40 1000* Jan 16 16:44:44 Alternatively... use a game engine and draw it all with game engine tools Jan 16 16:44:49 which may be easier Jan 16 16:44:56 so.. layouts and buttons.... Jan 16 16:45:19 mantas322: Yup Jan 16 16:45:35 Are ImageButtons always square, or can you change their shape by using a transparent image? Jan 16 16:45:35 how about a "coloring book" Jan 16 16:45:48 how would you guys go about doing something like that Jan 16 16:45:51 adding a game engine would simply add more complexity and require you to learn a whole new set of things that you may not even need to know Jan 16 16:46:06 JavaDog: You can set there background to a drawable that is the shape you want Jan 16 16:46:06 danijoo, yeah that $100 dollars (3%) really makes a difference! Jan 16 16:46:12 I'm just trying to look into what i should look into atm Jan 16 16:46:17 oh, 1000 Jan 16 16:46:24 Well now he's asking about a coloring book, to which I would also say 'game engine' probably Jan 16 16:46:25 changing button shapes is as simple as changing a background drawable Jan 16 16:46:30 30% off...still, student price should be $250 Jan 16 16:46:42 gotya Jan 16 16:46:49 thanks for the feed back Jan 16 16:46:58 I will try to achieve this with custom layouts and buttons. Jan 16 16:47:00 yeah. I definitly have that 2000 dollars for a software I need to do my homework :D Jan 16 16:47:01 once. Jan 16 16:47:03 mantas322: According to these guys you can make custom-shaped buttons by supplying transparent images, if you didn't catch that Jan 16 16:47:12 i did Jan 16 16:47:14 ty Jan 16 16:47:15 sounds like matlab Jan 16 16:47:22 a simple coloring book can be done with a canvas. no need for a game engine unless you really need it for some reason Jan 16 16:47:36 I was looking at canvas in my design view Jan 16 16:47:48 Listen to alexfu because I don't know anything about canvas Jan 16 16:48:18 i started a custom view once with canvas...never finished it Jan 16 16:50:51 What's wrong with this? My lack of sleep might be catching up with me... Log.d(cgeoWearService.DEBUG_TAG, "Launch verification " + ((launchAction) ? "passed!" : "failed!")); Jan 16 16:51:12 nvm I know what it is Jan 16 16:51:17 launchaction is a goddamn string Jan 16 16:51:20 JavaDog: go to bed then ^^ Jan 16 16:51:24 stupid autocomplete Jan 16 16:51:26 JavaDog, sleep on it Jan 16 16:51:44 so theoretically, I could have a screen background of my image example http://i.imgur.com/ZNiFmvs.png . Then place in "Invisible" buttons in custom areas over it. Jan 16 16:51:51 Nooooo, I'm so close to being able to commit after working all night Jan 16 16:52:09 not a good idea to commit while exhausted Jan 16 16:52:10 mantas322: thats one way of doing it but also a bad way Jan 16 16:52:15 and after that I will have the most glorious, peaceful sleep a person has ever slept Jan 16 16:52:21 mantas322, is '3' the answer of that puzzle Jan 16 16:52:53 Sculptor, yes. Jan 16 16:52:59 k Jan 16 16:54:41 looks like this guy was askign about the same thing http://stackoverflow.com/questions/26829451/want-to-place-multiple-hidden-buttons-over-a-background-image Jan 16 16:55:05 mantas322: for custom layouts/views, you'll want to look at overriding onMeasure, onLayout, onDraw Jan 16 16:55:18 thanks. Jan 16 16:55:23 I appreciate the feedback Jan 16 16:56:25 a website is telling me I can call swapCursor on a CursorAdapter. I created a custom CursorAdapter and I see no swapCursor() method when I look for uiElement.getAdapter().?? Jan 16 16:56:36 what am I missing here? Jan 16 16:57:24 hesperaux: is uiElement.getAdapter() returning a CursorAdapter? Jan 16 16:57:28 nvm, I need to cast getadapter() Jan 16 16:57:42 nah, just an Adapter I think. that was why. Thanks Jan 16 16:59:45 hmmmm Jan 16 16:59:53 I just got a better idea Jan 16 17:00:00 I could just have a grid of buttons. Jan 16 17:00:17 with their own custom backgrounds, that would make up my "image" Jan 16 17:02:02 I drew another pciture Jan 16 17:02:18 what do you guys think about this http://i.imgur.com/QXrTrds.png Jan 16 17:02:24 where each blue square is a button Jan 16 17:02:30 with a custom background Jan 16 17:02:34 image Jan 16 17:03:13 this way theres no need for strange shapes invisible buttons and wierd layouts. Jan 16 17:03:25 that should be possible Jan 16 17:04:07 hmmmm Jan 16 17:04:13 kinda silly Jan 16 17:06:25 it might be hard to deal with random screen dpis Jan 16 17:06:41 well cant I have it just stretch appropriately Jan 16 17:06:45 i'm still going to advocate custom layout Jan 16 17:06:54 if you stretch things, sometimes they don't look right Jan 16 17:07:09 okay Jan 16 17:07:12 I got another IDEA Jan 16 17:07:19 wait Jan 16 17:07:22 esp if you're having different sized squares in the grid Jan 16 17:07:28 no Jan 16 17:07:30 they all uniform Jan 16 17:07:56 it might work then. I agree with alexfu though. I think you'll get good performance with a custom view/layout Jan 16 17:08:23 plus you can have a bunch of custom properties and nice things like that Jan 16 17:08:36 it becomes an element of its own instead of a hodge podge of defaults Jan 16 17:08:37 I was about to say, I figure out the coordinates, and have logic determine where they pressed Jan 16 17:08:41 within an x y area Jan 16 17:08:58 but then I realized that it might be difficult to figure out that area with different resolutions Jan 16 17:09:28 then started thinking about taking percentages and calculating based of the screen resolution Jan 16 17:09:46 mantas322: you shouldnt need to have to figure out x,y coords for button clicks Jan 16 17:09:58 thats handled by Button Jan 16 17:10:03 right, that was my last idea where i wouldnt have any buttons Jan 16 17:10:08 Has anyone got JVM unit testing working in AS 1.1P? Jan 16 17:10:09 just a full screen view, Jan 16 17:10:36 custom layout should only handle laying out (i.e positioning) Jan 16 17:12:47 JakeWharton: Hi. I installed 1.1P and can't find a way to do JVM unit testing. Do you know whether it's possible? Jan 16 17:12:57 so I guess I can refine how I describe what im trying to achieve. "android clickable fullscreen grid with custom background" Jan 16 17:13:02 TacticalJoke: are you using the 1.1 plugin? Jan 16 17:13:32 Of Gradle? I don't think so; all I did was install AS and update to 1.1 Preview. Jan 16 17:14:10 the ide has almost nothing to do with the features of the build system Jan 16 17:14:15 it's just an interface to the plugin Jan 16 17:14:42 IntelliJ and Android Studio has always had support for unit tests, the plugin did not Jan 16 17:14:47 I see. Jan 16 17:17:14 anyone know how to take a screenshot with host-gpu enabled? Jan 16 17:17:24 I can't seem to get it to work Jan 16 17:17:29 heh. alt+prntscr? Jan 16 17:17:32 try snipping tool Jan 16 17:17:37 or that Jan 16 17:17:46 On mac? Jan 16 17:17:52 nope Jan 16 17:18:06 there's a screenshot function though, where you can select a portion of your screen. don't remember the shortcut Jan 16 17:18:15 (it's an OSX feature) Jan 16 17:18:23 Hello :) Jan 16 17:18:27 It's cmd+shift+4 Jan 16 17:18:29 JakeWharton: I guess this is a noob question, but how do I update the Gradle plugin? Stuff I'm trying isn't workin. Jan 16 17:18:30 does the screenshot feature of monitor not work? Jan 16 17:18:31 working* Jan 16 17:19:10 Yeah but thats low res Jan 16 17:19:28 Hi! Jan 16 17:19:32 guys, I've got an AutoCompleteTextView with a custom cursor adapter. A Loader supposedly swaps the cursor for the adapter... When i type into the box, nothing happens. What am I forgetting? Jan 16 17:19:32 andreyonadam: then that's an issue with your emulator Jan 16 17:19:36 At what point in the activity lifecycle is it safe to call getApplicationContext? I'm including a call in a class field declaration and it gives me NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference" Jan 16 17:19:49 I get the error: addr = null Jan 16 17:20:12 I'm trying to checkout a project from a remote(private) repo, but android studio is failing the repo test.. Jan 16 17:20:59 I've set the corresponding github credentials in android studio, and am on a mac.. Jan 16 17:21:05 JavaDog: that's because Activity lifecycle does not follow the lifecycle of a Java object Jan 16 17:21:10 what might i be doing wrong? Jan 16 17:21:24 java.lang.RuntimeException: An error occured while executing doInBackground() ; Caused by: java.lang.IllegalArgumentException: remoteAddr == null Jan 16 17:21:50 This is was I get on this line: socket.connect(host, timeout); Jan 16 17:22:06 alexfu: Yeah I figured it wouldn't work to put it in the constructor either. I guess onCreate is the earliest, then? Jan 16 17:22:11 TacticalJoke, just replace the version numbers in the build.gradle Jan 16 17:22:14 JavaDog: yes Jan 16 17:22:17 and it downloads the new plugin Jan 16 17:22:22 Cool, thanks Jan 16 17:22:24 JavaDog: or onAttach Jan 16 17:22:43 Okay, I tried that, and it's not finding 1.1. Jan 16 17:23:55 JakeWharton: Is JVM unit testing now supported in version 1.1 of the Gradle plugin? Jan 16 17:24:04 Like, could I actually finally do JVM unit testing in AS now? Jan 16 17:24:10 1.1 isn't released Jan 16 17:24:20 you can build a snapshot from AOSP Jan 16 17:24:27 Ah. Jan 16 17:24:43 So, without building a snapshot of that, is there any way to do JVM unit testing in AS? Jan 16 17:24:52 no, AS has nothing to do with it Jan 16 17:25:13 AS already has unit testing support Jan 16 17:26:31 I'm kinda surprised. I thought 1.1 Preview 1 would just allow JVM unit testing out of the box. I've been watching their changes for weeks, and I've seen a lot relating to a new "unit test variant type". Jan 16 17:26:32 junit has zero deps on Android. Jan 16 17:26:46 TacticalJoke: which is driven by the plugin Jan 16 17:28:05 So when Gradle plugin 1.1 is released I'll just be able to do this, right? Jan 16 17:28:31 hi Jan 16 17:28:35 hmmm Jan 16 17:28:39 Hello! Jan 16 17:28:40 TacticalJoke: yes Jan 16 17:28:45 what is the go-to library for consuming RESTful JSON services? Jan 16 17:28:53 why cant I do this myEditText.getText().ToString() Jan 16 17:29:01 toString Jan 16 17:29:10 amcsi, retrofit Jan 16 17:29:13 or is there anything that comes with the standard sdk? Jan 16 17:29:14 oh... ty Jan 16 17:29:19 amcsi: Retrifit https://github.com/square/retrofit Jan 16 17:29:22 * mantas322 "This isnt c#" Jan 16 17:29:28 Retrofit* Jan 16 17:29:40 danijoo, Radther, thanks! Jan 16 17:30:17 amcsi: you could write a thousand or so lines of code for HttpURLConnection and JSONElement and all the awful that comes with it Jan 16 17:31:52 Disconnected Jan 16 17:32:04 Yeah so there is no way to get a screenshot from the actual emualtor Jan 16 17:32:08 With the full resolution? Jan 16 17:32:15 yes there is Jan 16 17:32:18 How? Jan 16 17:32:29 andreyonadam: screenshot function in monitor Jan 16 17:32:36 alexfu: I guess Jan 16 17:32:44 But that wouldn't be the same resolution right? Jan 16 17:32:54 it'll be whatever the phone res is Jan 16 17:32:57 Do you think the Gradle plugin 1.1 will be out soon? I'm guessing it'll be out before Android Studio 1.1 is. Jan 16 17:33:02 it grabs the exact resultion of your emulator Jan 16 17:33:16 So like printscreen? Jan 16 17:34:03 I have to compliment the creators of Android Studio Jan 16 17:34:14 I'm enjoying the Design view for creating XML layouts Jan 16 17:34:15 do you complement them as well? Jan 16 17:34:51 wut Jan 16 17:35:00 amcsi: 100 percent go get Retrofit Jan 16 17:35:01 i haven't used design view in a long time but i have heard it got much better over the last few years Jan 16 17:35:02 What I don't get is that this is MERGED: https://android-review.googlesource.com/#/c/116880/ Jan 16 17:35:06 And yet we can't use it. Jan 16 17:35:10 complement: a thing that completes or brings to perfection. Jan 16 17:35:11 theblang, will do Jan 16 17:35:17 TacticalJoke: IT'S IN THE PLUGIN Jan 16 17:35:25 Last time I did android was 3-4 years ago. Jan 16 17:35:26 The problem is if I disable the host GPU option it won't load the emulator at all Jan 16 17:35:32 It will have a black screen Jan 16 17:35:36 lots have changed Jan 16 17:35:47 amcsi: handles HTTP for you, handles deserializing into a POJO, can do it asynchronously, and can return RxJava Observables if you use that Jan 16 17:35:49 i used the design view and actually found it usable Jan 16 17:35:53 started again yesterday. Jan 16 17:36:04 JakeWharton: For some reason telecine crashes on my galaxy nexus. Maybe its because I'm on a custom rom? Jan 16 17:36:09 dunno Jan 16 17:36:12 MediaRecorder is crap Jan 16 17:36:17 lol Jan 16 17:36:30 probably this BS https://github.com/JakeWharton/Telecine/pull/15 Jan 16 17:36:41 i'll get something out this weekend Jan 16 17:36:41 There's another app that doesn't crash. I don't know how they do it. Jan 16 17:36:48 i don't get this. When I implement Filterable, there's no contract... Jan 16 17:36:56 Yeah it throws an exception on prepare Jan 16 17:37:00 i've never used MediaRecorder in my life so I just smashed it in until it worked for me Jan 16 17:37:06 this app was only supposed to be for me, afterall Jan 16 17:37:07 lol Jan 16 17:37:12 I get away without implementing any methods. is that normal? Jan 16 17:37:16 ohh. Jan 16 17:37:47 hesperaux: Isn't there getFilter? Jan 16 17:37:59 nah, I can't even ask AS to "implement methods" for it... Jan 16 17:38:13 i'm guessing that's why my autocompletetextview does nothing when I type in it Jan 16 17:38:40 do any of yall disable the default activity transition animation? Jan 16 17:38:49 it is supposed to require getFilter...I don't know why it compiles and runs without issue Jan 16 17:38:52 AutoCompleteTextView seems to implement getFilter. Jan 16 17:39:30 TacticalJoke, my cursoradapter implements Filterable but none of the methods are implemented. I set the adapter to my ACTV but it doesn't actually do anything (no errors though). Jan 16 17:39:57 I'm pretty sure I'm supposed to implement a getFilter() in my adapter, but I haven't done so Jan 16 17:40:10 CursorAdapter also implements getFilter. Jan 16 17:40:29 maybe it's just calling the superclass then, and that's why it's not complaining about the contract? Jan 16 17:40:50 and that could explain why it does nothing but doesn't fail Jan 16 17:42:39 this is so confusing. at this point I have no idea what I'm doing. Jan 16 17:43:32 welcome to java Jan 16 17:44:06 it's like playing raquetball with objects Jan 16 17:46:48 So can I expect 1.1 of the Gradle plugin to be out soon? Jan 16 17:46:55 Trying to decide which direction to go in. Jan 16 17:47:00 Can someone explain to me how "java.lang.SecurityException: Permission denied (missing INTERNET permission?)" can occur even though I clearly have that permission? Jan 16 17:47:15 TacticalJoke, nobody can answer that. its out when its finished Jan 16 17:47:29 The app has been out for years, and only a single user got this error (while the internet is used for almost every action within the app) Jan 16 17:47:33 Not sure whether to move to AS now and just not unit-test for a while, or wait. lol Jan 16 17:47:41 AS seems quite nice now. It's tempting. Jan 16 17:47:41 Syzygy, maybe you only think you have it ;) Jan 16 17:47:48 Syzygy, maybe they have one of those roms with permission control Jan 16 17:47:57 TacticalJoke, what are you using right now? eclipse? Jan 16 17:48:00 Yeah. Jan 16 17:48:03 ouch Jan 16 17:48:25 I don't wanna move and have to wait for two months, though. Jan 16 17:48:47 My code will get quite unhappy without unit tests. Jan 16 17:48:53 I gotta go to work. I'm gonna rage in my car the whole way there about loaders and adapters and autocompletetextviews. Jan 16 17:49:03 see ya guys Jan 16 17:49:19 danijoo, as I said, almost every change to the data tries to sync with the backend and it's working for all users except that one. hesperaux, that's the only think that I can think off. Jan 16 17:49:23 I have two Location Jan 16 17:49:25 I'm just gonna give up on trying to overlay one view on top of another. There just doesn't seem to be a way to do it that works with what I want... Jan 16 17:49:39 Syzygy, yeah if it's only one user, I blame them. lol Jan 16 17:49:45 hehe Jan 16 17:49:49 and I am calculate distance of thats two location Jan 16 17:49:50 Radther, just use a relativelayout Jan 16 17:49:52 now Jan 16 17:49:54 Radther: Hmm, I don't understand. Jan 16 17:49:54 how could I calculate distance two points longitude/latitude and display that in miles ? Jan 16 17:49:56 danijoo: Can't Jan 16 17:49:57 with 2 views in it Jan 16 17:50:01 Why is it that you can't just draw something on top of something? Jan 16 17:50:05 bbl Jan 16 17:50:17 I will try and explain what I am trying to do. Jan 16 17:51:06 I'm trying to track down a user paying for our app, but the backend never receiving any notification of a successful transaction... Can't even find a crash corresponding to that problem :( Jan 16 17:51:07 I am creating a library where you give a view and it overlays a view on top of the previous view. There is more to it then that but that's what I want to get working now. Jan 16 17:52:05 Radther: why not use a FrameLayout? Jan 16 17:52:08 The problem is that I want the library to work no matter what the ViewGroup is. So it just draws the Rectangle with an absolute position based on the view it was given. Jan 16 17:52:34 Radther: wrap the given view in a FrameLayout and then append your overlay view to the FrameLayout Jan 16 17:52:50 alexfu: That might work... Jan 16 18:02:46 you know what sucks about android dev? you work hard and it's hard to succeed even with high quality apps, if you are good at it iOS App Store seems better :( Jan 16 18:03:43 why should it be harder to succeed with a good app in android than iOS? Jan 16 18:04:10 danijoo: iOS users are richer, they care more about quality and it's overall a better environment Jan 16 18:04:46 http://www.fiercedeveloper.com/story/report-ios-app-users-are-often-richer-android-users/2014-08-29 Jan 16 18:05:21 id replace richer with more willing to pay Jan 16 18:05:58 they are correlated Jan 16 18:08:18 it's hard to suceed on ios too Jan 16 18:08:43 yeah its very competitive there too Jan 16 18:09:01 find me proof of someone switching to ios and become rich after failing on android? Jan 16 18:09:16 everything we hear about is someone doing well on ios and then flopping on android Jan 16 18:09:35 well, because you waited 6 months to port your shitty 45 minute $10 game to android, nobody wants to buy it Jan 16 18:09:46 even with someone, there is not enough samples (need thousand or more ppl at least) to verify this empiric rule (which i agree with you mikedg, it's more the contrary which is happening) Jan 16 18:10:19 it's the same thing that happens on console games, they do horrible if they are a timed exclusive Jan 16 18:10:25 and it's also obvious that iphone user are richer (linked to more willing to pay) when you see the price of an iphone.. Jan 16 18:10:35 compared to an average price of an android device (across the world) Jan 16 18:10:53 I really really hope that it's possible to succeed Jan 16 18:10:58 mikedg: Not every example is of someone porting their app from iOS to Android, and far from all of them are games too. Jan 16 18:11:10 it's possible to succeed, but it's unfortunately (or not?) correlated to hard working Jan 16 18:11:14 the question is, whether the same amount of work nets the same profit on each platform Jan 16 18:11:20 for sure, if you don't work hard, you drastically reduce these little chances Jan 16 18:11:22 it's very well known that it's easier to make money from iOS, even given the much smaller marketshare Jan 16 18:11:26 i think android requires far more work, mostly in testing Jan 16 18:11:31 I've spent 2 months on my app, pretty consistent UI, but has no actionbar Jan 16 18:11:51 I don't need an actionbar, and there is no navigation so I think it's OK Jan 16 18:11:57 at this rate, it will take a week to generate a hello world application on Android lol Jan 16 18:12:02 things are so heavy Jan 16 18:12:27 my app is 3MB and only has Retrofit (HTTP client for REST APIs) Jan 16 18:12:41 adq: is there less boilerplate for iOS apps than there is for Android? Jan 16 18:12:45 definitely. Jan 16 18:12:50 I think so OmegaVesko Jan 16 18:12:52 Retrofit is 118K Jan 16 18:13:01 I've never touched iOS dev so I have to ask Jan 16 18:13:05 Hmm, if I change the syntax highlighting for local variables (in Android Studio), it doesn't take effect. Jan 16 18:13:07 JakeWharton: yeah, but support lib Jan 16 18:13:07 Anyone else getting this? Jan 16 18:13:17 TacticalJoke: tried a restart? Jan 16 18:13:20 Other settings do take effect. Jan 16 18:13:21 Yeah. Jan 16 18:13:23 many things are diverting you from your main task on Android (which is developing your app, let's say) Jan 16 18:13:38 dimitrovskif: you said only retrofit Jan 16 18:13:55 JakeWharton: support lib is added by default, it's the standard Jan 16 18:14:02 ... Jan 16 18:14:05 yes but it's not required Jan 16 18:14:14 it is not, but everybody uses it. Jan 16 18:14:19 ok so say that Jan 16 18:14:22 I would like to try iOS out but I can't justify buying Apple hardware + a phone + a dev license just to get hello world running Jan 16 18:14:35 Sigh. Dunno whether to switch to AS now and just wait for unit-test support. Jan 16 18:14:50 yeah, $99 to deploy your hello world app + $1.5k mac laptop Jan 16 18:14:54 OmegaVesko a good way is to get a mac mini. Jan 16 18:14:55 + iPhone for testing Jan 16 18:14:55 support lib is ~800K Jan 16 18:15:07 TacticalJoke, what? you're still on eclipse? :) Jan 16 18:15:11 Yeah. Jan 16 18:15:17 dimitrovskif: yeah, exactly Jan 16 18:15:34 Because unit testing. Jan 16 18:15:38 ive spent like $400 on yearly fees and havent even published an ios app Jan 16 18:15:39 lawl Jan 16 18:15:39 you will feel the change, when you will switch, then all will fade after few weeks, like for everything :) Jan 16 18:15:52 the iphone 6 plus is a bad ass phone Jan 16 18:15:57 i highly recommend it over the nexus 6 Jan 16 18:16:10 ya Jan 16 18:16:12 JakeWharton: IDK, my app has very few media resources, Retrofit (retrofit.retrofit, retrofit.okhttp, retrofit.okhttp-urlconnection, gson.gson) + appcompat v7 Jan 16 18:16:15 Going from Darcula to mIRC is difficult. Dark to light. Jan 16 18:16:23 wtf appcompat is huge also Jan 16 18:16:24 appcompat lol Jan 16 18:16:36 hey JacobTabak Jan 16 18:16:40 howdy g00s Jan 16 18:17:01 hello everybody Jan 16 18:17:18 for some reason, darcula isn't working for me, the ideavim input line and a bunch of things are still white background :( Jan 16 18:17:22 * pfn shrugs Jan 16 18:17:25 all-white for me then Jan 16 18:17:32 JacobTabak: what's the point of retrofit if you don't have GSON and a http client (okhttp, okhttp-urlconnection) Jan 16 18:17:46 you don't need OkHttp Jan 16 18:17:46 i'm not sure why that question was addressed at me Jan 16 18:17:51 typo? :) Jan 16 18:17:54 oops Jan 16 18:18:05 yes you need OkHttp Jan 16 18:18:11 Maybe you're lucky. Darcula makes me feel sleepy. Jan 16 18:18:16 pfn that happens to me sometimes - i might also need to go into preferences -> editor -> colors & fonts Jan 16 18:18:17 as the person who writes retrofit... no, no you don't Jan 16 18:18:25 haha Jan 16 18:18:34 just to know if the response error is Type.NETWORK or Type.CONVERSION, you need OkHttp Jan 16 18:18:38 for some reason, they get unsynced or something (ide colors, editors colors) .. .never figured it out Jan 16 18:18:44 no you do not Jan 16 18:18:52 otherwise, Retrofit falls back to standard HttpClient, and getResponse() always returns null Jan 16 18:18:58 false Jan 16 18:19:02 it uses HttpURLConnection Jan 16 18:19:12 asynchttp is good also Jan 16 18:19:20 dimitrovskif, better dont argue.. JakeWharton wrote retrofit ^^' Jan 16 18:19:39 JakeWharton: you wrote retrofit? :D Jan 16 18:19:46 Okay, so I am pretty amazed that Android Studio isn't insanely slow (as it used to be). They've done a lot. Jan 16 18:19:56 i didn't create it, but i've been the developer for the last three years Jan 16 18:20:09 holy crap, well I don't know - that's what I read and that's how it worked for me Jan 16 18:20:16 I had retrofit only in dependancies Jan 16 18:20:30 but when trying to inspect RetrofitError, I never got useful stuff until I added OkHttp Jan 16 18:20:42 well you should use OkHttp, but it's not required Jan 16 18:21:01 i merely wanted to highlight that your 3MB app of "only Retrofit" was really Retrofit+OkHttp+support-v4+appcompat Jan 16 18:21:10 Is it better performance and memory wise to include layouts for sections, or to turn them into custom views and use them that way? Jan 16 18:21:34 yeah, but it's the least you need Jan 16 18:21:36 s73v3r: doesn't really matter much. custom views allow you place semantic logic directly into the view which is nice Jan 16 18:21:42 dimitrovskif: it isn't Jan 16 18:22:09 Courier New is an ugly font. Jan 16 18:22:18 g00s, everything else on my desktop is white though... Jan 16 18:22:21 GSON is needed definitely Jan 16 18:22:32 so no sense in going darcula for me Jan 16 18:22:44 afaik there is no other solution for deserializing, except String.split Jan 16 18:22:59 retrofit provides 5 first-party converters actually Jan 16 18:23:02 Depends what you're deserializing Jan 16 18:23:05 gson is included by default, yes Jan 16 18:23:10 but it can be excluded and not used Jan 16 18:23:36 Is there any library-less way of deserialization? IMO, not. Except writing some ugly String.split monster or writing a whole deserializer Jan 16 18:23:45 of what content type? Jan 16 18:23:58 you can use Java object serialization Jan 16 18:24:05 whatever it is, let's say you have control over the server and can force the API guys to serve you whatever content Jan 16 18:24:07 (if you are a massochist) Jan 16 18:24:11 exactly. Jan 16 18:24:14 so you need GSON. Jan 16 18:24:17 or Jackson Jan 16 18:24:19 or org.json.* Jan 16 18:24:22 or etc. Jan 16 18:24:41 but you need a library, that's my point Jan 16 18:24:57 if you are using JSON, yes Jan 16 18:25:02 although org.json.* is built into Android Jan 16 18:25:06 if you are using anything Jan 16 18:25:09 it is? Jan 16 18:25:13 yes, don't sue it Jan 16 18:25:20 today i learned.. Jan 16 18:25:35 java object serialization doesn't need a library Jan 16 18:25:44 that's ugly Jan 16 18:25:59 but it disproves your conjecture that you always need a library Jan 16 18:26:10 'if you want easy, painless development' Jan 16 18:26:20 with Retrofit I am holy-balls-happy Jan 16 18:26:45 the only thing I dislike is that Java is kinda verbose and POJOs for everything gets weird, but working with JSONObject is not better, so yeah.. Jan 16 18:27:00 I really like how Retrofit works for me Jan 16 18:27:08 we use protos which uses a terse DSL and generates the Java objects Jan 16 18:27:23 I set up authentication and registration in about two days Jan 16 18:27:43 Save token, renew token, add token in header, remove token, show login screen if 401 error etc Jan 16 18:28:03 and I didn't know retrofit when I started Jan 16 18:28:50 Is it bad if I have one instance of my service for each fragment/activity? Jan 16 18:29:27 yes Jan 16 18:29:41 yes, it should be a singleton Jan 16 18:29:50 I hate singletons Jan 16 18:30:20 ok then it shouldn't be a singleton but you should only create one Jan 16 18:30:29 At the moment AuthManager(Context) builds a service with request interceptor that adds the token header Jan 16 18:30:58 Oh. Setting local-variable colours wasn't working because I wasn't doing so in the Java section. Jan 16 18:31:13 new AuthManager(this).login(user, pass, new ILoginCallback{ void onSuccess(){ //woo-hoo Jan 16 18:31:34 dimitrovskif: Can I ask why you don't like singletons? Jan 16 18:31:49 he hates his heap Jan 16 18:32:13 Radther: I was taught that way Jan 16 18:32:15 JakeWharton, but if you create only one, then it becomes singleton, doesn't it?. Jan 16 18:32:21 avinashrbhat: sssshhhhhhh Jan 16 18:32:56 My last name is sinlgeton, so I Love them just cuz. Jan 16 18:32:58 the whole OS should be monolitic with all apps and functionality compiled in Jan 16 18:32:59 why I hate my heap? Even when creating one per activity, I am in one activity and GC destroys the others Jan 16 18:32:59 Radther: I'm not a fan of them, personally. They're hard to unit-test, they make the class violate the SRP, they hide the order of class instantiation, etc. Jan 16 18:33:14 Though sometimes they're the lesser evil, I guess. Jan 16 18:34:31 And sometimes you just have classes that you should never create more than one instance of Jan 16 18:34:41 dimitrovskif, tell you what I go on about this kind of situations, use dependency injection for the service *reference* in your activity/fragment. Jan 16 18:35:11 this lets you mock out the implementation details during testing. Jan 16 18:36:22 dimitrovskif, Check out dagger for dependency injection. Jan 16 18:36:33 another lib ^ :D Jan 16 18:36:34 JakeWharton: Sorry to keep asking you about this, but do you think it'd be wise for me to move to AS and wait for unit-test support (and just not do anything with unit tests until support appears)? Otherwise the option is to stick with Eclipse until such support arrives. Jan 16 18:37:20 as if you really need GUI to do unit testing Jan 16 18:37:26 It's not about a GUI. Jan 16 18:37:31 * g00s hopes JakeWharton gives TacticalJoke closure on this ;) Jan 16 18:37:41 dimitrovskif, then you can hand-code what dagger is doing at compile time. dagger doesn't adds to your apk. it works at compile time. Jan 16 18:37:51 eh, kind of Jan 16 18:37:51 oh Jan 16 18:37:55 dagger 1 has a small runtime Jan 16 18:37:59 dagger 2 basically has no runtime though Jan 16 18:38:04 but it's harder to use Jan 16 18:38:13 is square god of opensource libs Jan 16 18:38:38 Yeah I'm kind of waiting for dagger 2 to go full. Jan 16 18:38:39 no, just the temple of it Jan 16 18:38:58 dagger 1 is like the mom, dagger 2 like the puppy http://i.imgur.com/KhUXmPF.jpg Jan 16 18:39:52 square libs are better than their apps Jan 16 18:40:11 g00s: I have been waiting for months for all this. :p Jan 16 18:42:55 dimitrovskif: libs don't have designers, product, and business people Jan 16 18:45:25 I wonder how much their libs help with business Jan 16 18:45:47 Developers love square libs, but not sure how many of them have companies Jan 16 18:46:16 every library is used in an app for sometime Jan 16 18:46:19 else why develop them? Jan 16 18:46:25 you don't need a company to conduct business Jan 16 18:46:32 JakeWharton: I mean, how much do Square libs contribute to marketing for Square app Jan 16 18:46:38 zero Jan 16 18:46:44 nor should they Jan 16 18:47:26 I sure would think of Square when thinking about POS, after using Retrofit, OkHttp, Picasso and now Dagger Jan 16 18:47:38 but I am a bad businessman Jan 16 18:47:44 didn't even get to butterknife Jan 16 18:48:21 oh yeah Butterknife's awesome Jan 16 18:48:51 I'm not sure how well it works with Fragment.setRetainInstance(true) Jan 16 18:48:59 although fragment retain sucks anyway Jan 16 18:49:08 you'd call reset() in onDestroyView Jan 16 18:49:37 fragment retain saves all instance members' values Jan 16 18:49:51 and then when onCreate gets called, you inflate again Jan 16 18:49:58 so no idea how that works with Butterknife Jan 16 18:50:07 i just told you above Jan 16 18:50:13 oh Jan 16 18:50:28 TIL Jan 16 18:50:31 it'll null out all the views it sets Jan 16 18:50:43 i've been using butterknife and had that particular issue Jan 16 18:50:49 also, enter != punctuation Jan 16 18:50:52 just fyi Jan 16 18:51:30 sorry, my brain is wired weirdly, I like to punctuate sentences that are already punctuated Jan 16 18:51:55 everything in my brain is binary tree Jan 16 18:52:18 *a; and I did it again. f***. Jan 16 18:52:23 then use content filters instead of doing a brain dump :p Jan 16 18:59:19 btw, how bad is changing actionbar buttons for different Viewpager fragments? Jan 16 18:59:24 I guess really really bad Jan 16 19:01:00 not bad Jan 16 19:01:07 and it's a supported use-case Jan 16 19:01:44 where? Jan 16 19:02:23 i'm looking for some design guidelines or something, should actionbar be designed only per Activity or fragment is allowed usecase Jan 16 19:03:01 So how's everyone doin? Jan 16 19:03:02 I use it in activity Jan 16 19:04:14 fragments can contribute a menu and viewpager will automatically add/remove for the active page Jan 16 19:04:29 (and menu is propagated to action bar actions) Jan 16 19:04:35 Anyone know how to change the colour of the line that shows when code is indented (going from the start line to the end line)? Jan 16 19:04:39 In Android Studio. Jan 16 19:05:45 today I learned a lot from this channel Jan 16 19:06:59 almost at the same level as reading docs Jan 16 19:08:22 wooo \o/ Jan 16 19:08:41 TacticalJoke, settings editor colors&fonts general "vertical indent guide" Jan 16 19:09:21 used the search in settings on the keyword vertical (after failing with color (too many results) and folding (unrelated)) :)) Jan 16 19:11:01 yoooooo Jan 16 19:11:27 Ah, thanks, adq. Jan 16 19:11:31 Hello, I've just compiled Email from the AOSP distribution, from the 5.0.2_r1 tag. I tried dropping it onto my device, but it complains INSTALL_FAILED_DEXOPT. Jan 16 19:11:47 Right, I failed with those two. Jan 16 19:11:49 Looking at the adb logs suggests that it's not allowed to write to /system/lib Jan 16 19:12:16 How can I make a change to a stock app and install it as an update to the existing app on the device? Jan 16 19:12:31 so, i have a baseActivity class, and a mapActivity which extends baseActivity. (but so do all my other activities). I have a websocket in Mapactivity, which should reconnect when a certain event happens in base activity Jan 16 19:13:00 how do i check in base activity, that the type of object that it is being extended from is mapactivity and responds to a function, and then call it? Jan 16 19:13:09 Hmm, if I disable colours for the vertical indent guide then it still shows a very light line. Jan 16 19:13:26 HEY GUISE Jan 16 19:13:30 :3 Jan 16 19:13:35 happy fucking friday Jan 16 19:13:40 amen Jan 16 19:13:40 TacticalJoke, maybe color it as your background Jan 16 19:14:12 lol ok TacticalJoke there is a checkbox, show vertical indent guides Jan 16 19:14:18 you asked for color, not disabling it ;) Jan 16 19:14:51 Ah. Strange that didn't come up on my search. Jan 16 19:17:58 thirtythreeforty: you cannot do that without the certificate that was used Jan 16 19:19:04 Oh ok. Are the certificates transparently generated when I build? Does Google/the manufacturer keep the certificates they use to build so they can update the apps? Jan 16 19:19:29 thirtythreeforty, you don't Jan 16 19:19:43 and yes, google/oems keep their certs carefully managed Jan 16 19:20:17 Where are they stored in my build tree? Jan 16 19:20:30 (The ones I generated when I built, not Google's) Jan 16 19:21:07 release builds you must create explicitly Jan 16 19:21:10 debug builds are in ~/.android Jan 16 19:21:15 in aosp? dunno Jan 16 19:21:20 there are debug certs in there Jan 16 19:22:26 In the source tree? I see. How do I generate/use other certificates for a release build? Jan 16 19:22:42 Also, it sounds like the best thing to do is to rename the Email package and make my own. Jan 16 19:25:32 hi Jan 16 19:25:37 lasserix http://www.washingtonpost.com/investigations/holder-ends-seized-asset-sharing-process-that-split-billions-with-local-state-police/2015/01/16/0e7ca058-99d4-11e4-bcfb-059ec7a93ddc_story.html Jan 16 19:26:35 is there any nice way to detect if which of Context.getExternalFilesDirs() returned paths is real SD Card? Jan 16 19:27:31 thirtythreeforty: yes. Google or the OEM has them. Jan 16 19:27:55 and yes, changing the package name will work and allow you to install it as a normal app Jan 16 19:28:16 JakeWharton, I meant if I want to compile my own ROM, how would I generate and use non-debug keys? Jan 16 19:28:25 no idea Jan 16 19:28:36 And yep, I'll do that. Need to read about providers, as naively changing the package name gives other errors. Jan 16 19:28:44 ok Jan 16 19:29:18 I forget Jan 16 19:29:30 can I add GIFs into drawable? Jan 16 19:29:43 mantas322, I don't think it will animate out of the box Jan 16 19:29:47 thirtythreeforty, hacking email to not use admin policy? Jan 16 19:29:47 But I could be wrong Jan 16 19:29:51 thirtythreeforty, been there done that Jan 16 19:29:52 bingo Jan 16 19:30:05 thirtythreeforty, https://gist.github.com/pfn/059d934a9d5ec4c4c6cb Jan 16 19:30:45 make -j 30 Email Exchange2 Jan 16 19:30:50 disable existing email + exchange Jan 16 19:30:53 install new ones Jan 16 19:31:01 install email first, then exchange Jan 16 19:31:37 Cool, didn't know you need to patch the Exchange provider too. Jan 16 19:31:55 Oh, just to do the different permissions, gotcha Jan 16 19:32:03 pfn++ Jan 16 19:32:17 also, interestingly enough, the android 5.0 email/exchange apps run fine on 4.4 Jan 16 19:32:22 which is pretty nice Jan 16 19:32:33 I've since switched to using gmail for exchange, along with smart lock Jan 16 19:32:44 since lollipop smart lock will disable pin and do what I want anyway Jan 16 19:32:59 Does it use the Holo theme or the Material theme? I try to avoid smart lock because paranoia Jan 16 19:33:18 does what? android 5.0 email on 4.4 will use material Jan 16 19:33:29 as much of it as it can, at least Jan 16 19:33:35 and why paranoid of smart lock... Jan 16 19:33:48 google broke deviceadminpolicy.resetPassword :( Jan 16 19:33:53 so I have to use smart lock on lollipop anyway Jan 16 19:34:54 yeah, that's what I meant. I didn't know Material themes work at all on 4.x, at least without a version of the support library compiled in. Jan 16 19:36:07 I can't use Smart Lock anyway because I don't have a watch or anything (I would like one), but also because it transforms security from Something You Know to Something You Have, which I find less secure. Jan 16 19:36:23 Less comforting, anyway. Jan 16 19:38:09 samsung released a tizen phone for india Jan 16 19:40:51 but it seems like their strategy is use android mainly + tizen for smarthome stuff Jan 16 19:51:28 so pfn, if I understand your patch correctly, none of the "become administrator" code is ever invoked, because it believes that it is already admin. Correct? Jan 16 19:54:30 just out of curiosity Jan 16 19:55:12 Or rather, what happens is that it tries to get admin, and if you say no, it just carries on. Jan 16 19:55:42 If Party A scrapes a website and structures its data, and Uploads it to a social platform like reddit. Then Party B find the data and creates an app from it. Is that against google's content policy? Jan 16 19:55:58 where does googleplay stand on data. Jan 16 19:56:08 google likes your data ;) Jan 16 19:56:46 okay Jan 16 19:56:49 how about this Jan 16 19:56:51 simple example Jan 16 19:57:05 http://www.thealmightyguru.com/Pointless/AnimalGroups.html Jan 16 19:57:21 I make a listview of this data Jan 16 19:57:29 against the rtules? Jan 16 19:57:32 ruels* Jan 16 19:57:35 RULES* Jan 16 19:57:39 yay or nay? Jan 16 19:57:59 lol a group of swallows is a gulp..... Jan 16 19:58:28 mantas322: the page is copyrighted. beyond that, consult a lawyer. ;) Jan 16 19:59:27 If I have two textviews on one line in a relativelayout, how can I make sure that one does not overlap the other? Jan 16 19:59:58 You can use below, toRightOf, etc. Jan 16 20:00:16 But what makes you say "on one line"? RelativeLayouts don't have the LinearLayout "line" concept. Jan 16 20:00:28 their baselines are aligned Jan 16 20:01:16 Basically, I have half a dozen “rows” where a label is on the left side, and the value is on the right side Jan 16 20:02:06 And i want the right side to, rather than overlapping the left side, wrap itself so it takes up more than one line Jan 16 20:02:42 Okay. Does layout_toRightOf achieve that? Jan 16 20:04:58 It does. I had toLeftOf in my file. Jan 16 20:05:01 :p Jan 16 20:05:29 Can I control the wrapping, so that the two lines are more even, rather than just having one word on the 2nd line? Jan 16 20:07:03 Hmm, I'd be surprised if TextView supported wrapping in such a way that lines are as equal in length as possible. Jan 16 20:07:26 Why do you want that? Wouldn't that look odd? Jan 16 20:07:48 less odd than having one word on the 2nd line, I’d imagine Jan 16 20:08:25 You could do it manually with '\n', but that could be awkward. Jan 16 20:08:54 it’s dynamic text Jan 16 20:10:44 any ideas why I'm not being able to use setBackgroundColor successfully? Jan 16 20:11:03 neither with colors at runtime or from resources Jan 16 20:11:33 trying to use it on an ImageView preferably, but I've wrapped it in a layout, and called it in that to no avail as well Jan 16 20:12:05 Because you're doing it wrong Jan 16 20:16:31 SimonVT http://pastebin.com/k3qTHfeR Jan 16 20:16:36 how should I be doing it? Jan 16 20:16:58 I can't get it to work outside of all that stuff either Jan 16 20:19:03 Did you check what color you're setting it to? Jan 16 20:20:49 I changed my background color for the fragment so I'd be able to see the change, and nothing Jan 16 20:21:57 Guys i rly need halp Jan 16 20:22:01 So no Jan 16 20:22:12 anyway to organize these crap ton of on click listeners Jan 16 20:22:14 That'd be first step in figuring out what's wrong Jan 16 20:22:18 my code looks like a bukkake gone wrong Jan 16 20:22:51 DragonPunch: Please watch your language Jan 16 20:23:07 i was busting some humor Jan 16 20:23:16 im not offending anyone Jan 16 20:23:46 what's up DragonPunch Jan 16 20:23:52 ? Jan 16 20:23:58 whats up dood. i have a ton of onClick listeners in my code Jan 16 20:24:05 i was wondering if there was way to organize it Jan 16 20:24:22 hi guys Jan 16 20:24:26 quick noobie question Jan 16 20:25:11 make your class implement OnClickListener, add "this" as the listener, make onClick() check to see which view was clicked, and react accordingly Jan 16 20:25:19 oh Jan 16 20:25:21 okay Jan 16 20:25:27 so I have multiple acitivities in an applicaiton Jan 16 20:25:41 I would like to have a FIXED orientation for ONE of the acitvites Jan 16 20:25:56 well Jan 16 20:26:05 go to the xml for the activity Jan 16 20:26:11 and set orientation="landscape" Jan 16 20:26:41 of the layout? Jan 16 20:26:46 yeah Jan 16 20:27:11 thanks bro Jan 16 20:27:16 p Jan 16 20:27:17 np Jan 16 20:28:18 Not the layout, the activity tag in your manifest Jan 16 20:28:29 https://developer.android.com/guide/topics/manifest/activity-element.html#screen Jan 16 20:30:23 So we're supposed to put launcher icons in 'mipmap' directories now. Jan 16 20:30:27 http://android-developers.blogspot.co.uk/2014/10/getting-your-apps-ready-for-nexus-6-and.html Jan 16 20:32:26 SimonVT, and if I set it to a color that I already know? like an R.color attribute? Jan 16 20:33:04 Then you'd need to use Resources#getColor first Jan 16 20:33:22 I'm for sure getting different values from the Palette.Swatch, and they're not all the same Jan 16 20:33:22 SimonVT, tried that Jan 16 20:34:22 alternatively, I've tried setBackgroundResource(R.color.foo) Jan 16 20:35:47 I'd imagine that expects a drawable Jan 16 20:36:55 yeah I figured that wouldn't work either, but I tried it just for fun since nothing else was either Jan 16 20:38:29 ok next question Jan 16 20:38:42 because evidently its working on some of my views? Jan 16 20:38:53 how does palette handle transparent images? Jan 16 20:41:31 DragonPunch, didnt work in the layout xml, but it worked in the manifest's activity Jan 16 20:41:36 just fyi Jan 16 20:41:41 I might have done something wrong.. Jan 16 20:46:44 In Android L (on my Nexus 4), when I dial a number, a lot of fancy animations show. The first is a sort of blue bubble that starts from the dial button and quickly grows to fill the entire screen (and then the app starts dialing). Jan 16 20:47:03 zta and? Jan 16 20:47:11 How do I make such an animation? It seems like a transition from a button to an activity. Jan 16 20:49:42 Zta, look up circular reveals and activity/fragment/content transitions Jan 16 20:49:57 What are their proper name? Where can I read about making them? I would guess it's something specific L thing. Jan 16 20:50:00 drinfernoo: thanks Jan 16 20:50:06 yup Jan 16 20:53:03 OK SimonVT, it does seem to be working I guess, but only for the last items in my grid's rows, and only after is scroll them Jan 16 20:54:24 Zta, there are some limitations pre-L, jsyk Jan 16 20:58:13 is it possible to put a listview inside of a dialog? Jan 16 20:59:16 yes Jan 16 20:59:39 dialog vs popup what do you think? Jan 16 21:00:14 depends on what you need/want Jan 16 21:01:19 well whats the difference between them 2 Jan 16 21:02:08 read the apidoc and see Jan 16 21:02:39 fuck you puffin Jan 16 21:02:46 fuck yourself Jan 16 21:02:52 ladies Jan 16 21:02:52 .. Jan 16 21:02:57 thats it puffing Jan 16 21:03:02 Watch your language, both of you Jan 16 21:03:04 after school. in the gym. Jan 16 21:03:13 see you there. @ 4;30 Jan 16 21:03:18 DragonPunch: gotta use dialogfragment Jan 16 21:05:22 SimonVT, looks like my background only changes on some views, and only when I scroll them off and back onto the screen. how can I fix that? Jan 16 21:06:13 * pfn ponders getting a qualcom quickcharger Jan 16 21:07:19 actually a good idea in the car, since drives are like 10-15 minutes each... Jan 16 21:07:39 * drinfernoo recommends it, but only has the moto turbo charger from his N6 Jan 16 21:07:55 don't care so much for a wallwart Jan 16 21:08:06 the car is where charging time is typically limited Jan 16 21:08:14 anywhere else usually has more than enough time charging Jan 16 21:10:36 Hello Jan 16 21:10:53 Question: is there a way the javac can access android libraries? Jan 16 21:11:52 Specifically, the android.util.Base64 library Jan 16 21:12:11 what do you mean specifically Jan 16 21:12:21 when using getExternalFilesDirs how can I determine which one is internal sd and which one is external sd? Jan 16 21:12:22 javac accesses Base64 just fine when building android apps Jan 16 21:12:57 Hm, funny, it tells me the "package android.util does not exist" Jan 16 21:13:49 then you're not building an android app Jan 16 21:14:00 or you're not using the right build system Jan 16 21:14:39 this 'black hat; movie Jan 16 21:14:42 is a joke Jan 16 21:14:44 lmao Jan 16 21:14:58 Tell me, can a Java program (not specifically intended for Android) use android libraries? Jan 16 21:15:03 what’s the easiest way to change the root layout in Android Studio? Jan 16 21:15:26 Vicyorus: It could if it was compiled with them, but they generally won’t work outside of Android Jan 16 21:15:44 Hmph Jan 16 21:16:05 Now, where did I leave the source for My First App.. Jan 16 21:16:55 Well, apparently this approach was not the correct one. Thank you for your time Jan 16 21:17:19 Don't go doing bad stuff, y'all Jan 16 21:17:51 lol a first Jan 16 21:17:54 youtube music video Jan 16 21:17:55 The Weeknd - Often (NSFW) Jan 16 21:18:00 NSFW Jan 16 21:18:01 hahaha Jan 16 21:22:04 Hi , i'm trying to use a AlertDialog.Builder but this constructor asks for a context, now i looked it up and still got no clue what to give it, could someone shine some light on this for me Jan 16 21:22:33 Hyrixo, a context is an activity, a service or application Jan 16 21:23:02 so in case like : Class test { .... AlertDialog.Builder(this) } Jan 16 21:23:05 would be fine ? Jan 16 21:23:37 Hyrixo: try it Jan 16 21:23:39 Hyrixo: You should be using that in a DialogFragment subclass. Jan 16 21:23:48 And you should use "getActivity()". Jan 16 21:23:50 Hyrixo, test isn't an activity Jan 16 21:24:12 Hyrixo, `learn some basic java first Jan 16 21:24:30 well is activity's in the basic java packet ? Jan 16 21:25:04 Hyrixo: http://possiblemobile.com/2013/06/context/ Jan 16 21:26:06 hmm, how do I set android:transitionName programmatically Jan 16 21:26:52 oh, setTransitionName Jan 16 21:27:02 lol Jan 16 21:27:33 Looks like they didn't complete the javadocs Jan 16 21:27:35 it's not documented on the attribute Jan 16 21:27:37 pfn, any ideas on what I had asked SimonVT up there? Jan 16 21:27:39 (drinfernoo) SimonVT, looks like my background only changes on some views, and only when I scroll them off and back onto the screen. how can I fix that? Jan 16 21:27:41 Or just forgot Jan 16 21:28:19 drinfernoo, no idea, you set the background in your getview initially or something Jan 16 21:28:32 well it's usually setBlahBlah if its android:blahBlah Jan 16 21:28:42 that's what I'm doing Jan 16 21:29:08 shmooz, that's actually untrue for a great many attributes Jan 16 21:29:28 android:ellipsize, any android:layout_, etc. Jan 16 21:29:41 worth trying if it's undocumented Jan 16 21:29:47 Related methods are usually documented Jan 16 21:29:54 if it's undocumented, it usually means there is no underlying method Jan 16 21:30:00 which is the case of most attributes Jan 16 21:30:07 that don't have a documented related method Jan 16 21:30:39 was it documented on SO ? Jan 16 21:30:41 Hello Jan 16 21:30:42 SimonVT , so the context is a sort of parent for what you create in this case a alertbox ? Jan 16 21:30:48 I don't read stackoverflow Jan 16 21:30:56 Morning!! Jan 16 21:30:57 do I need to be "refreshing" the grid view whenever it sets the background? or something Jan 16 21:31:01 what a snob Jan 16 21:31:42 pfn: where did you find out about it ? Jan 16 21:31:47 i have to make memory clean app for android Jan 16 21:31:50 read view.java Jan 16 21:32:02 licksjp, no you don't Jan 16 21:32:41 android is java memory autometion Jan 16 21:32:54 The Javadoc help in Android Studio doesn't tell me which class a particular method is from. Is there no way to see this? Jan 16 21:32:59 Intellisense doesn't tell me, either. Jan 16 21:33:07 Hey Jan 16 21:33:09 TacticalJoke, quick-inspect Jan 16 21:33:26 I am looking for some help on getting the right windowtoken for the wallapaper Jan 16 21:33:34 although, quick-doc should tell you as well Jan 16 21:34:48 Nothing coming up in help or google for "quick-inspect". Jan 16 21:35:05 Even without the hyphen. Jan 16 21:35:51 licksjp, wat Jan 16 21:36:01 TacticalJoke, quick definition Jan 16 21:36:08 TacticalJoke, and you can control-shift-a to type in random commands Jan 16 21:36:13 TacticalJoke, until something matches what you want Jan 16 21:36:46 Quick documentation tells you as well, ctrl+q Jan 16 21:37:14 (on windows) Jan 16 21:37:20 (the shortcut) Jan 16 21:37:37 I have mine shortcut as ctrl-d Jan 16 21:37:38 for doc Jan 16 21:37:52 quick-def is ctrl-i for inspect Jan 16 21:37:59 easy mnemonics, instead of bullshit crap Jan 16 21:38:00 Okay, "quick definition" tells me, but it's kinda clunky. Tells me "ClassName.class". Jan 16 21:38:06 Ctrl+Q doesn't tell me, though. Jan 16 21:38:31 http://cl.ly/image/1y1B3s2Z0c2W Jan 16 21:38:33 It tells me Jan 16 21:38:55 those memory cleaner apps sell well, lol Jan 16 21:39:12 Weird. I get everything apart from that top line. Jan 16 21:39:19 people love constantly killing running tasks and services Jan 16 21:39:29 http://stackoverflow.com/questions/27974785/wallpapermanager-and-empty-windows Jan 16 21:40:38 SimonVT: Is that AS 1.0.1? Jan 16 21:40:41 I'm running 1.1 Preview. Jan 16 21:41:02 That's 1.1 Jan 16 21:41:16 pfn , what is my class inherits ActionBarActivity, wouldn't this be a activity, so viable to pass as context or am i wrong ? Jan 16 21:41:33 Okay, this is only happening inside an instrumentation-test class. Jan 16 21:41:42 I'm getting class names elsewhere. Jan 16 21:41:43 Hyrixo, read the docs to understand Jan 16 21:42:10 Hyrixo: forget reading try MainActivity.this Jan 16 21:42:11 In fact, it's hat and miss. Sometimes I get it; sometimes I don't. Jan 16 21:42:31 hit* Jan 16 21:44:03 Hat and miss, and monocle Jan 16 21:45:44 licksjp: do they have Licks hamburgers in japan ? Jan 16 21:46:39 shmooz: what ? Jan 16 21:46:56 I guess not Jan 16 21:47:23 i don't know Licks hamburgers shop Jan 16 21:47:53 best burgers ever, we got them in Canada Jan 16 21:48:17 they have a few in the US too Jan 16 21:48:36 seriously, can anyone tell me the instructions for getting the window token for the wallapaper Jan 16 21:49:15 does it can memory clear app by Android? Jan 16 21:49:52 i think java is memory is auto Jan 16 21:50:42 licksjp: yes Jan 16 21:51:14 yeah but you can fool stupid users to think they need your memory cleaning app Jan 16 21:52:21 I found an app that claimed to speed your phone up Jan 16 21:52:26 like I said licksjp, you don't need it Jan 16 21:52:52 most people do it to extend battery life Jan 16 21:52:58 I decompiled it and all it did was wait for a certain amount of seconds after pressing the button, then it told you to restart your phone Jan 16 21:53:27 why would setBackgroundColor only be working on the last view in each row of my GridView? I know the method is getting called each time Jan 16 21:54:30 drinfernoo: because it's setting the background of what is behind the rows ? Jan 16 21:55:04 are you setting background on grid or row ? Jan 16 21:55:10 i don't use it,but i was asked developer app Jan 16 21:55:14 row Jan 16 21:57:57 drinfernoo: where are you setting it ? in the adapter ? Jan 16 22:06:29 childofthehorn: I'm guessing you're getting null as token because the view you've created is never shown anywhere. Why are you not just calling findViewById() ? Jan 16 22:07:01 hey all Jan 16 22:07:09 TacticalJoke, g00s Jan 16 22:07:59 this is on the id view - Jan 16 22:08:04 tried that first Jan 16 22:08:14 but I am just going to fix it in Launcher3 Jan 16 22:08:25 my laziness knows no bounds on a friday Jan 16 22:10:16 Hey, Napalm. Jan 16 22:17:09 I could move my project to Android Studio by creating a Java module for parts of my project that don't touch Android, creating another Java module for unit tests, and having both the app and the unit tests depend on the Java module. Jan 16 22:17:15 Does that sound sensible? (It seems to work.) Jan 16 22:23:39 Is it possible to differentiate between resuming an activity from another activity in the same app versus coming back to it from the operating system? Jan 16 22:24:54 Hello everyone. I'm working on my homework and doing fine, but I dont know what did I change that made all items in the layout occupy vertically spread. Can someone please take a lok at my code (http://pastebin.com/GcPc9b28) and give me a hint? TIA! Jan 16 22:25:32 Pinkamena_D: You can do something like that by launching the secondary Activity with startActivityForResult. Don't know of any other nice way to do it. Jan 16 22:25:37 Pinkamena_D: Why do you want to do that? Jan 16 22:25:59 whats the best api version to use? Jan 16 22:26:56 targetSdkVersion=21 (after testing on at least a v21 emulator), minSdkVersion=15/16 Jan 16 22:28:03 is 21 the latest version? Jan 16 22:28:08 Yeah. Jan 16 22:31:30 so best practice is to use the latest API? Or is there like a market share point to wait for if a new API comes out Jan 16 22:32:22 Base it off of how much you can achieve with your team, and who your target audience is Jan 16 22:32:58 BigBawb: Use this for reference for percentages https://developer.android.com/about/dashboards/index.html Jan 16 22:33:18 min of 16 is standard these days for most things Jan 16 22:33:43 Im all alone Then I would definitely shoot for 16. I would even recommend 16 to a fully staffed anything Jan 16 22:34:23 as your min Jan 16 22:34:35 BigBawb: It's generally a good idea to target the latest version of Android. If the user is running that version, targetting that version tells Android "This app has been verified to work on this version". Jan 16 22:34:39 targetSdk should be latest Jan 16 22:34:54 If you're not targetting the latest in that situation then Android might use compatilibity behaviours. Jan 16 22:35:44 should the minimum version be the minimum I know it to work on? Jan 16 22:36:13 Android SQLite is making me hate myself. Has anyone used greenDAO, would you guys recommend it? Is there an alternative anyone would recommend? Jan 16 22:38:10 BigBawb: No. Jan 16 22:38:26 BigBawb: It should be the minimum not to make your life bad. Jan 16 22:38:35 lol Jan 16 22:40:21 AKK9: I use greenDAO, it hasn't been updated much lately. It still works fairly well though Jan 16 22:40:23 Some recommend 15; others, 16. Jan 16 22:40:33 It's not a good idea to go below that unless you have good reason. Jan 16 22:40:57 If you were to support all the way back to 7, for example, there would be so many things you either couldn't do or could do but only with pain. Jan 16 22:41:30 jaynewstrom, do you think it's worth using for an app with only a handful of tables and minimal data? Jan 16 22:44:37 minSdk 16 is much easier than 15 Jan 16 22:46:40 I go as low as I can. It's usually libraries that force me to go higher Jan 16 22:46:44 yiati: thats the same with all newer SDK's than previous ones.. thats the point of new SDK's Jan 16 22:47:02 It's my job as a Dev to try to get my app out to as many devices as possible. Jan 16 22:47:18 TacticalJoke: you should set your minSdk to what your audience is using Jan 16 22:47:32 Napalm, not really. 16 to 17 is not much at all Jan 16 22:47:45 does anybody know the default font size of an alert? Jan 16 22:47:45 15 to 16 is a different point version Jan 16 22:48:24 ultra-: what "alert"? Jan 16 22:48:51 AlertDialog.Builder Jan 16 22:49:13 essentially all i want to do is center the text of the default one, but i guess i have to provide it a TextView to do that Jan 16 22:49:29 ultra-: nope Jan 16 22:49:44 AKK9: It's a fair bit of setup to use. there are other ORM libraries as well. Jan 16 22:50:01 Guys, do AlertDialog one liner messages look weird on your devices? Jan 16 22:50:08 Napalm: you don’t know the font size or i don’t have to provide it with a TextView? Jan 16 22:50:44 ultra-: do you too hate the way one-line messages look? Not centered and empty space after the text? Jan 16 22:51:03 ultra-: ((TextView))dialog.findViewById(andorid.R.id.mesage).setTextAlignment(View.TEXT_ALIGNMENT_CENTER); Jan 16 22:51:11 android spelt correctly that is Jan 16 22:51:29 and message Jan 16 22:51:31 ugh Jan 16 22:51:45 there’s a web address in one of the messages, and i include a newline before and after to make it easier to read… looks dumb left justified Jan 16 22:52:11 i’m not sure findViewById will work for me, i’m not using any XML Jan 16 22:52:15 ultra-: oh god I have the same problem and I was just going to ask if the default behaviour is left justified ugly AlertDialogs Jan 16 22:52:41 well you got your answer Jan 16 22:52:45 :) Jan 16 22:52:52 I know how to do it Jan 16 22:53:01 But I'm not sure why is it like that by default Jan 16 22:53:02 yiati: incorrect, http://developer.android.com/sdk/api_diff/16/changes.html Jan 16 22:53:13 dimitrovskif: its in the style Jan 16 22:53:19 I always use my own views in AlertDialogs... It's much easier to configure Jan 16 22:54:01 i think i’m going to do that… also, i might be able to make the web address bold or a differnet color altogether Jan 16 22:54:03 This is how AlertDialog looks on my phone http://i.imgur.com/OGMlhoY.png Jan 16 22:54:40 anyway, i’ll keep doing it the way i was i guess (gotta go, thanks) Jan 16 22:54:54 It really irritates me, there should be less bottom padding, and the text should be centered if it's a one-liner Jan 16 22:55:24 dimitrovskif: thats a bad dialog Jan 16 22:55:29 Hello everyone. I'm working on my homework and doing fine, but I dont know what did I change that made all items in the layout occupy vertically spread. Can someone please take a lok at my code (http://pastebin.com/GcPc9b28) and give me a hint? TIA! Jan 16 22:55:32 Napalm: 15 is 4.0, 16 is 4.1. That's a point difference Jan 16 22:55:39 Napalm: No idea why is it so bad..... Jan 16 22:56:09 nimbiotics: this is not code, it's layout markup Jan 16 22:56:34 dimitrovskif: http://developer.android.com/design/building-blocks/dialogs.html Jan 16 22:56:38 dimitrovskif: thanks Jan 16 22:56:49 Napalm: http://en.wikipedia.org/wiki/Point_release Jan 16 22:56:55 Hello everyone. I'm working on my homework and doing fine, but I dont know what did I change that made all items in the layout occupy vertically spread. Can someone please take a lok at my layout markup (http://pastebin.com/GcPc9b28) and give me a hint? TIA! Jan 16 22:57:26 yiati: i understand that. the way I understood your message was you were just saying the difference was only the version number Jan 16 22:57:37 Napalm: what's your point? I shouldn't use alerts or what? Jan 16 22:58:01 dimitrovskif: no, get rid of the title for a start Jan 16 22:58:05 nimbiotics: your first LinearLayout has android:orientation="vertical" Jan 16 22:58:27 dimitrovskif: or i suppose a dialog whatsoever Jan 16 22:58:36 Napalm: Toast maybe? Jan 16 22:59:36 if you want Jan 16 23:00:53 I'll have a slice. Jan 16 23:02:17 shmooz: but that is what I want. The only thing that changed (and I wish I knew what did it) is that all elements now use the same height, whereas they all had their height, particularly the bacl backgrounded view I'm using as a separator Jan 16 23:02:29 shmooz: if not vertical, what am I suposed to use? Jan 16 23:05:48 nimbiotics: in your inner LinearLayouts change the height to wrap_content instead of 0dp Jan 16 23:15:49 shmooz: Thanks for your help. The only difference now is that the view with the black bg i'm using as a separator is about 3/4 the height of all other elements in my outer layout (all four linear, horizontal layouts) Jan 16 23:23:15 JakeWharton: I tried what you said, removed OkHttp and now getResponse() == null all the time Jan 16 23:23:23 nimbiotics: make the outer LinearLayout height wrap_content too Jan 16 23:24:33 that should cause the separators not to stretch Jan 16 23:25:34 hello everyone. we am building a media streamer, and while stream is active i want to show stream player like pause/play ect at the bottom all pages inside the app. we are using fragments. what would be a good approach to do this ? if anyone has an idea i can research that would be nice, thanks Jan 16 23:25:57 dimitrovskif: ok but what's the error? Jan 16 23:26:07 some errors have no responses Jan 16 23:26:17 JakeWharton: there is a response, but it's a 4xx one Jan 16 23:26:18 and you may have a misconfiguration which causes it to always throw Jan 16 23:26:42 When I include OkHttp, getResponse().getStatus() == 401 Jan 16 23:26:58 When I don't, getResponse() == null, and obviously I can't even call getStatus Jan 16 23:27:13 shmooz: Thanks a bunch, that did the trick! Jan 16 23:27:26 JakeWharton: someone has the same issue, http://stackoverflow.com/questions/23084103/retrofit-on-failure-status-code-return-null-pointer Jan 16 23:28:14 open an issue Jan 16 23:28:29 i'm too busy to care and/or discuss over IRC Jan 16 23:28:49 OK, but it proves my point - can't go without OkHttp + OkHttp.urlconnection Jan 16 23:28:55 :D that's even the accepted answer Jan 16 23:29:03 it does not prove your point Jan 16 23:29:16 I have four vies, each in sibbling layouts. Is there a way to make them the same width as the widest of them all? how? TIA! Jan 16 23:40:05 Is there a "safe" way to share a string throughout my projects to use as the name for the action attribute of an Intent filter? I would like to avoid having the literal string all over the place. Jan 16 23:41:41 My projects call each other using Intents. So they need to have the same string repeated in each project. Jan 16 23:43:09 small library project? Jan 16 23:43:52 I have one. But how do I declare the Intent Filter in the manifest? Jan 16 23:45:17 doesn't work Jan 16 23:46:59 can't do that Jan 16 23:47:05 android:name is one of the places you can't use resources Jan 16 23:47:11 does not work Jan 16 23:47:42 MikeWallaceDev: speech marls? Jan 16 23:47:44 marks Jan 16 23:48:03 As far as I am concerned, it can't be done... http://developer.android.com/guide/topics/manifest/action-element.html Jan 16 23:48:07 I just want to make sure... Jan 16 23:48:12 speech marks? Jan 16 23:48:26 Jan 16 23:48:29 oh Jan 16 23:48:29 wait Jan 16 23:48:44 you can do it, with groovy replacements in your AndroidManifest using gradle Jan 16 23:48:45 quotation marks :) Jan 16 23:49:00 OH! Really??? That would be awesome! Jan 16 23:49:05 JakeWharton: I found a Github issue, I am right, and yes the solution is 'use OkHttp' Jan 16 23:49:33 any links or examples of that Napalm? Jan 16 23:50:12 JakeWharton: somebody asked you the same question ON THE SAME day last year. Jan 16 23:51:07 MikeWallaceDev, manifest placeholders Jan 16 23:51:11 MikeWallaceDev, docs are out there Jan 16 23:51:29 MikeWallaceDev: http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger#TOC-Placeholder-support Jan 16 23:51:31 I'm searching now pfn Jan 16 23:51:50 but I didn't know they were called placeholders Jan 16 23:51:54 thanks Napalm Jan 16 23:52:27 I think you can get gradle/groovy to load a source file Jan 16 23:53:13 Hey, does anyone have the contact information for any Google Developer Evangelist? Particularly for Gaming if there is one. Jan 16 23:53:29 evangelist? Jan 16 23:54:07 Yeah Jan 16 23:56:26 which can reach further? wifi or bluetooth? Jan 16 23:58:26 bricked: WI-Fi, lol./ Jan 16 23:58:39 how far? Jan 16 23:58:49 and how much do walls effect? Jan 17 00:01:40 depends Jan 17 00:01:51 bricked: be precise, why are you asking and also it depends on which Wi-Fi router or Bluetooth module? Jan 17 00:02:11 Bluetooth and WiFi run at the same frequency afaik Jan 17 00:02:20 different range Jan 17 00:02:26 bluetooth should top out at 30 ft Jan 17 00:02:45 wifi 100-300, probably, but that depends on the hardware and environment Jan 17 00:03:36 wifi uses 700x the power of bluetooth, at same frequency Jan 17 00:04:18 whic isn’t as much of a boost as it sounds Jan 17 00:04:51 what if i want 1000 metres and i want it to go through walls? Jan 17 00:04:57 has anyone seen an example of the spinner/filter like the filter UI in the g+ app (using RecyclerView)? Jan 17 00:05:20 bricked: why are you asking in here? Jan 17 00:05:20 i want to remote control a wheeled robot, send camera video back to controllr Jan 17 00:05:41 what channel is correct to ask in Jan 17 00:05:46 even if you found a router that powerful, the robot’s hardware has to be able to send that far too Jan 17 00:05:49 bricked: do not use bluetooth for video stream. Jan 17 00:06:05 bricked: and you should say what you want to do instead of asking your weird questions. Jan 17 00:06:45 bricked: either #networking or some forum, but for something like that i’d find a way to use some kind of lower frequency device, since low freqs travel farther with the same power level Jan 17 00:07:06 travels through walls easier, too Jan 17 00:07:09 bricked: Wi-Fi has 700x the power, and 200x the bandwidth (and a lot more, depending on Wi-Fi mode) Jan 17 00:07:36 ty Jan 17 00:08:24 actually my calculation is wrong, more like 2000x the bandwidth or so Jan 17 00:10:16 i think BT is only like 700kbps Jan 17 00:11:09 EDR is much higher Jan 17 00:11:12 ultra-: wifi routers are 1Gbit Jan 17 00:11:44 yeah BT isn’t designed for traditional data transfers Jan 17 00:11:56 music streaming is about as far as it goes Jan 17 00:12:03 1Gbit for the good ones, 802.11ac Jan 17 00:12:23 if your adapter even supports that Jan 17 00:12:35 i think most are like 120mbps Jan 17 00:15:08 802.11ac is the future :) Jan 17 00:15:53 Hey folks. I have a rather old (target API level 14) Eclipse project which I have partly migrated to Android Studio.. I haven't done any Android development for a while and can't get this to work again (when I try to run it, it doesn't find any activities) Jan 17 00:16:06 I suspect that the directory structure has changed.. Is there an upgrade guide anywhere? Jan 17 00:16:39 pehlert: my app has 7 target API Jan 17 00:16:49 so not really old. anyway the build system changed Jan 17 00:17:04 * I meant minSDK 7; target API 21 Jan 17 00:17:21 dimitrovskif: Yup, but I do have the gradle files etc.. Just not sure why it doesn't find any activities Jan 17 00:17:30 In the docs I found that there is a new "module" based structure? Jan 17 00:17:44 perillamint: I was confused, so first let me tell you I use target API level 21 Jan 17 00:17:53 pehlert: ^ ooops omg I am really sleepy Jan 17 00:18:34 * dimitrovskif is sleepy, never mind ANYTHING i said Jan 17 00:19:02 Heh, no worries. Thanks for trying anyway :) Jan 17 00:41:31 BUILD SUCCESSFUL Total time: 14 mins 19.8 secs <--- Android development, summed in one line Jan 17 00:43:58 * regan smacks dimitrovskif with a stack of punched cards, fresh out of the hopper Jan 17 00:45:12 * dimitrovskif tries to defend himself from regan, but his brain uses gradle so the reflexes are too slow Jan 17 00:45:44 * dimitrovskif tries to cancel his brain build, and waits, and waits... Jan 17 00:46:41 yeah the Android development environment is a bit ratty but people used to wait a day to get the results of their run on the 1401 Jan 17 00:47:10 regan: try using Android emulator, you will get similar experience Jan 17 00:47:58 regan: to enjoy mine, I am thinking about creating punched card -> Java bytecode compiler; at least I will have the full experience Jan 17 00:49:12 cheap Android phones are cheap Jan 17 00:49:48 expensive iPhones are expensive; iOS build and emulator are fast :D Jan 17 00:50:41 I love Android layouts/UI, I love open-source, I love rooting and freedom - but I hate how most android phones look, I hate TouchWiz and I hate dev environment (and publishing process should be strict!) Jan 17 00:50:47 ..and Apple provisioning problems are the 7th ring of hell… Jan 17 00:50:48 btw, https://itunes.apple.com/au/artist/pymble-software-pty-ltd/id553990081 Jan 17 00:51:42 regan: those guys produce fugly apps Jan 17 00:52:06 thanks for your honesty Jan 17 00:52:17 regan: is it yours? Jan 17 00:52:28 correct Jan 17 00:52:33 sorry but the UI is really really ugly Jan 17 00:52:39 and the icons are bad Jan 17 00:52:50 yeah Jan 17 00:53:04 I’ve always wanted to work on that Jan 17 00:53:13 I can help you out I guess Jan 17 00:53:15 I'm bored Jan 17 00:53:23 Hi I'm writing an app where I use MediaExtractor to decode PCM to an array where i read from with AudioTrack and also a separate thread that draws the PCM to surface. I'm trying to implement this in native, for fun and for performance. Can I accomplish the decoding, drawing, playing from an array in native using android apis? Jan 17 00:54:33 I don’t see why not, as far as I know everything that can be done from java can be done from the NDK Jan 17 00:56:32 I only started looking for a strait native solution a little bit ago, thought i'd ask first. Thanks. Jan 17 01:04:44 Hello Jan 17 01:06:21 I have an issue compiling a stock black activity android project using latest 21.1.2 sdk tool on Linux Debian. I get app:processDebugResources failed. Any takers? Jan 17 01:06:32 *blank Jan 17 01:09:27 My error --> http://pastebin.com/8HN4Qyaj Jan 17 01:11:25 I just started with Studio yesterday. Jan 17 01:15:12 skibur: Did you try running it with --stacktrace, --info or --debug as suggested in the error? Jan 17 01:16:29 I'm not sure how to run that via Studio Jan 17 01:17:13 I tried via copy paste the exact compile command with arguments with --stacktrace, --info or --debug and I get nothing back. Jan 17 01:17:53 I get illegal instruction and exit Jan 17 01:18:08 What was the exact compile command you copied, ans where did you copy it to? Jan 17 01:21:30 You'll probably want to run something like gradle processDebugResources --stacktrace in the terminal Jan 17 01:24:21 thorbear: Here http://pastebin.com/8HN4Qyaj Jan 17 01:24:49 that's the same link as before... ? Jan 17 01:25:28 home/skibur/Android/Sdk/build-tools/21.1.2/aapt pac....... and I ran it from the termainal where aapt is at. Jan 17 01:25:33 yes Jan 17 01:25:46 the command line is it Jan 17 01:25:51 That's not what you want to run Jan 17 01:26:00 ok Jan 17 01:26:14 not the command below the 'What went wrong: Jan 17 01:26:16 ' Jan 17 01:26:19 Do what I said above, navigate to the project folder ,and run gradle processDebugResources --stacktrace Jan 17 01:26:29 Got it Jan 17 01:29:30 Thorbear, is gradle a part of the Studio Application or do I need a path env? Jan 17 01:31:33 If Android Studio can run it, chances are good that you can run it too, without any extra setup. If that doesn't work though, there might be a gradlew file in your project folder, which will work just as fine. Jan 17 01:32:39 ok, searching Jan 17 01:33:04 there is a gradlew, but when I run it, it starts to download something Jan 17 01:33:41 from the gradle.org it's downloading the gradle-2.2.1-all.zip Jan 17 01:33:58 update android studio then let it DL gradle Jan 17 01:34:08 It will just download gradle to a place where it can be ran. That's what gradlew is there for, it makes it possible to run gradle even if you don't have it installed or set up correctly Jan 17 01:34:18 always use gradlew Jan 17 01:34:18 had the same problem Jan 17 01:34:28 uninstall gradle from your computer. it's useless. Jan 17 01:36:21 TechEffigy, I have the latest Studio with updates via SDK Manager. Am I missing something else? Jan 17 01:36:59 go to the about menu and update the studio Jan 17 01:37:42 googles DL doesn't give you the latest version, therefore the cradle problem Jan 17 01:37:51 I did that TechEffigy, i have the latest. Jan 17 01:38:33 Good to know Tch Jan 17 01:38:35 Tech Jan 17 01:41:38 then download grade all from the site and follow forum instructions Jan 17 01:42:00 ok Jan 17 01:42:10 I think my problem started with me importing old a studio Jan 17 01:42:31 astudio projects Jan 17 01:42:52 In addition, I ran gradlew and still failed to build Thorbear Jan 17 01:43:19 but did you run it with --stacktrace ? and did it provide any more info? Jan 17 01:43:30 yes Jan 17 01:43:39 http://puu.sh/eCwjP/d5a83b1db7.png trying to make a toast show with item title Jan 17 01:43:42 for list view Jan 17 01:44:01 Thorbear, yes it did. Jan 17 01:44:21 And what was that extra info? :) Jan 17 01:44:37 checking... lol Jan 17 01:47:07 anyone know how to ? Jan 17 01:47:12 i just need to do a simple toast Jan 17 01:47:44 DragonPunch: I'm pretty sure you'll get some info on that red line if you hover over it, also the "parent" parameter is probably the list you're wanting to access. Jan 17 01:48:39 Also, there was little explanation on what part you're having problems with. Does it not compile? Does it crash? Does the toast just never appear? Jan 17 01:48:52 Thorbear ---> http://pastebin.com/36eFmkfA Jan 17 01:54:26 is there a way to record a view to mp4? Jan 17 01:56:22 render it to a surface which is attached to a media recorder Jan 17 01:56:40 thanks Jan 17 02:01:14 i basicly want to make a drawing app that records while you draw Jan 17 02:03:37 Hey guys, what's the best floating action button lib? Jan 17 02:05:25 skibur: That didn't seem to help much. I don't know how to help you further then, sorry- Jan 17 02:08:48 no problem Thorbear Jan 17 02:08:51 Thanks Jan 17 02:09:44 Does anybody have Studio running on Debian Wheezy - Latest? Jan 17 02:30:23 hy all Jan 17 02:30:39 what is the best option for game development in Android? Jan 17 02:30:50 best library, tools, IDE, etc.? Jan 17 02:31:27 unity3d Jan 17 02:36:39 TechEffigy: yeah, I know that pretty well Jan 17 02:36:55 any other good options? Jan 17 02:39:57 "Some Nexus 6 owners reporting defective units where the back cover is coming unglued" oh man :( Jan 17 02:41:08 secret feature - user-replaceable battery Jan 17 02:41:11 im currently using the nexus 7 tab Jan 17 02:42:51 yeah i have a n7 - too bad the battery is going Jan 17 02:42:58 otherwise decent device Jan 17 02:43:23 Can't reference objects between activities, okay I'll send it over intent extras... TransactionTooLargeException... I guess I have to save/load files instead? Jan 17 02:43:46 Hi guys Jan 17 02:44:44 heya Jan 17 02:44:45 HunterNL: you can use a bus system like otto Jan 17 02:45:02 HunterNL: or just use a singleton just make sure to dereference it if when needed Jan 17 02:45:43 Learning how to do alert dialogs, but I'm a little unsure how to pass a custom variable to one for use in the positive/negative buttons. How would I do that? Jan 17 02:45:59 gregtom6: prolly libgdx is the engine to use Jan 17 02:46:23 ArmitaageDS: lots of ways, subclass it add a method or use as inner class Jan 17 02:46:48 you could also pass it through the tag of the content view Jan 17 02:47:09 So I can declare the class within mainactivity? Jan 17 02:47:33 It doesn't have to be declared outside of mainactivity? Jan 17 02:47:46 read up on java inner classes Jan 17 02:49:44 I already use a couple, I know they get access to the parent class's instance variables. I'm just not sure if dialogfragment allows me to use it that way Jan 17 02:53:45 Well, thanks for the help ^-^ Jan 17 02:58:59 Does anybody have Studio running on Debian Wheezy - Latest? Jan 17 02:59:24 hey great guys! i got a question... im building a project that want emulate any OS in cellphones android. i don't make the emulator, my desire is built a way in now existing applications to use bluetooth kbd/mouse and sent the signal of monitor with miracast to a tv........... anyone already ear about this idea **** ENDING LOGGING AT Sat Jan 17 02:59:59 2015