**** BEGIN LOGGING AT Sat Dec 13 02:59:58 2014 Dec 13 03:05:08 lasserix_: I posted this for you earlier: http://i.imgur.com/y9yzMws.png Dec 13 03:05:14 That's with indents (but only first draft :D). Dec 13 03:05:33 can you colorize the idents Dec 13 03:05:42 to show the relation Dec 13 03:05:58 ie nested for n =3 is some grey, n=4 is another grey Dec 13 03:05:59 etc Dec 13 03:06:05 I was thinking of it. Yeah, it looks boring right now. Dec 13 03:06:13 Don't you think indents make it easier to read, though? lol Dec 13 03:06:20 no Dec 13 03:06:27 doesn't actually change it Dec 13 03:06:30 indents and color Dec 13 03:06:32 but doesn't look as clean Dec 13 03:06:53 color to indicate topic brightness to indicate depth Dec 13 03:07:08 topic? Dec 13 03:07:34 ok subtopics or whatever it is Dec 13 03:07:43 I don't know crap about reddit, but I like UI stuff Dec 13 03:08:26 and color is great if it can help categorize or identify stuff Dec 13 03:08:32 True. Dec 13 03:08:35 like colored code in IDE's ;) Dec 13 03:08:50 I like the ideal of a gradual change from X to Y (rather than crazy changes {e.g., from red to green to blue}). Dec 13 03:08:59 idea* Dec 13 03:09:49 TacticalJoke: yes I agree, randomness is annoying Dec 13 03:10:18 I don't like how the new flipboard loads with a random colored action bar now Dec 13 03:21:00 Ah, didn't know it did that. Yeah, I'm not a fan of that kinda thing. Dec 13 03:21:03 Colour can really mean something. Dec 13 03:21:27 TacticalJoke: you going to off contrast theme? Dec 13 03:21:37 ie white background versus dark background Dec 13 03:21:50 I'll probably have Dark, Light, and Black (AMOLED). Dec 13 03:22:05 Though Dark might end up being AMOLED-friendly enough. :D Dec 13 03:22:14 Maybe Dark could be boring and Light could be fun and interesting. I dunno. Dec 13 03:22:27 I do want a boring theme, though. Reddit is so varied that themes can get in the way, IMO. Dec 13 03:26:05 Since the app is called Aqua, I could use water-related names. The dark theme could be "Rainy" and the light theme "Ocean" or something. Though that is probably too lame. Dec 13 03:30:16 Maybe the black theme could be called Eclipse in honour of the One True IDE. Dec 13 03:30:30 (Kidding; I actually am not a huge fan.) Dec 13 03:32:51 Hmm. Am I right in assuming that showing [transparent view that's resized at runtime][view with predetermined background][view] is slower than showing [view (with two-layer-list background) whose padding is determined at runtime]? Dec 13 03:33:37 The latter involves fewer views but it does have a layer-list background. Dec 13 03:33:47 (This is in a LinearLayout.) Dec 13 03:34:36 why aqua? Dec 13 03:35:11 It's a cool word. Makes me think of water, the colour, and the gemstone. Dec 13 03:35:25 hippi Dec 13 03:35:27 Though I might have to stress the water meaning, because the colour aquamarine does not go with black/gray. Dec 13 03:35:39 haha Dec 13 03:35:51 lasserix_: Check this out: https://www.reddit.com/r/waterporn Dec 13 03:35:56 That's not adult; it's pictures of oceans. Dec 13 03:36:17 I think of that kinda thing when I hear the word 'aqua'. Dec 13 03:37:05 I'd call mine Red-Kit Dec 13 03:37:10 I downloaded ActivityLifecycle.zip (from https://developer.android.com/training/basics/activity-lifecycleP Dec 13 03:37:13 lol Dec 13 03:37:15 and it's not clear how to run it Dec 13 03:37:20 the french cartoon cowboy from the 70's Dec 13 03:37:41 how do I configure Android studio to run it? Dec 13 03:37:47 one of my favorite comics Dec 13 03:41:53 wow genymotions rocks Dec 13 03:42:01 :) Dec 13 03:42:18 badlands is also nice, but not challenging enough Dec 13 03:42:44 I've still not tried Genymotion. Dec 13 03:43:07 i wish i kneww why this beeping resource qualification is failing Dec 13 03:43:13 last beeping thing i have to do Dec 13 03:43:29 Beeping. lol Dec 13 03:43:46 I don't think there is a rule against swearing, really. Dec 13 03:44:05 heh rather not risk simonvt banning me Dec 13 03:44:17 I didn't know he was an admin. ;o Dec 13 03:44:23 is tehre something special about toolbar title? Dec 13 03:44:29 In fact, I didn't know anyone was other than that guy with 'cow' in his name. Dec 13 03:44:39 lasserix_: This is what the name makes me think of: http://i.imgur.com/yw6GIgl.jpg Dec 13 03:44:45 Can't you just feel the breeze? :) Dec 13 03:44:53 seriousily i set textsize to 14sp and then i have a textview below it acting as subtitle set to 24sp and the title is larger than the subtitle Dec 13 03:45:17 wheres that from? Dec 13 03:45:28 https://www.reddit.com/r/waterporn Dec 13 03:45:36 Miami, it says. Dec 13 03:45:47 TacticalJoke, miami Dec 13 03:45:58 south pointe park Dec 13 03:46:42 Sculptor: Did you recognise the place? Dec 13 03:46:48 Just wondering. Dec 13 03:46:51 no, i geolocated it Dec 13 03:47:15 i play this game http://budgetlightforum.com/node/33287?page=46#comment-693962 Dec 13 03:47:30 so i like to geolocate pics Dec 13 03:47:54 TacticalJoke: get genymotion makes inspecting layouts across devices very simple since it is so fast Dec 13 03:49:42 anyone know a list of emulators to use to cover all screen types? Dec 13 03:52:23 lasserix_ android studio has that preview thing that shows a bunch of sizes at the same time Dec 13 03:52:31 never tried it. don't even know how to open it up :) Dec 13 03:52:42 g00s problem is for whatever reason resource qualifiation is -cking up Dec 13 03:53:08 like i said, in the same layout i have toolbar title set to 14sp and a textview se tto 24sp and the textview is smaller than the toolbar text Dec 13 03:53:17 and everything is correct in my res Dec 13 03:53:19 i dont know what's up Dec 13 03:53:20 Ugh. Calling getResources().getText(whatever) involves JNI stuff. Dec 13 03:53:22 That can't be fast. Dec 13 03:53:25 so i want to check manually Dec 13 03:53:31 It also takes out a lock. Dec 13 03:53:39 Should I cache all resources locally? Dec 13 03:53:44 I don't want lag in getView. Dec 13 03:54:31 lasserix_ toolbar is pretty funky Dec 13 03:55:01 amazed again, (or maybe not) that the latest sdk samples still don't have example of toolbar Dec 13 03:56:42 Hmm. Calling getResources().getString(foo) 100 times takes only 2ms. Dec 13 03:57:05 that's pretty fast Dec 13 03:57:08 1,000 times takes 21ms. Dec 13 03:57:20 still over 60 fps Dec 13 03:59:17 oh no ok that's under, 60 fps is 16ms Dec 13 04:00:28 If I call it like six times (which is similar to a small-screen getView) I can't detect a microsecond passing. Dec 13 04:00:29 16.6 ms to be exact Dec 13 04:00:30 0ms. Dec 13 04:01:13 bankai_au worldwide shipping http://www.gizmag.com/limefuel-lp200x-the-20000mah-dual-usb-battery-pack-58-off-worldwide-shipping/35188/ Dec 13 04:01:44 TacticalJoke: so you don't need to worry about lag there , it's good that you're timing it Dec 13 04:01:56 g00s: you got yours yet? Dec 13 04:02:00 Yah. Dec 13 04:02:07 bankai_au yeah, i haven't opened it up yet Dec 13 04:02:35 What concerns me is that I get a little noticeable lag on my tablet sometimes when my ListView displays a really long Reddit comment. But the same applies to the other Reddit clients I tried. Dec 13 04:02:44 It must be TextView.setText. Dec 13 04:11:34 If I use setMinimumHeight, it doesn't seem to affect the size of the linearlayout that the view is inside Dec 13 04:12:56 matt_j: maybe because it hasn't reached it's minimum height yet ? Dec 13 04:14:09 noo Dec 13 04:14:11 anyway whatever Dec 13 04:14:17 I'm going home :\ Dec 13 04:16:56 I'll take that as a yes Dec 13 04:17:35 haha Dec 13 04:17:40 so I have a webview Dec 13 04:17:46 I want it to have a certain minimum height Dec 13 04:17:53 let's say 720dp Dec 13 04:18:02 ah fuck it Dec 13 04:18:42 I'll come back to this on monday with a fresh head Dec 13 04:18:51 I'm setting a View's padding at runtime. Should I use getResources().getDimensionPixelSize or getResources().getDimensionPixelOffset? Dec 13 04:18:56 I'm guessing the former, but I'm not sure. Dec 13 04:19:04 stop procrastinating, and do it now! Dec 13 04:19:43 "a handful of HTC One M8 and M7 users who are reportedly no longer able to perform one of their phone’s most basic of functions: make a voice call." Dec 13 04:19:44 lol Dec 13 04:20:13 to those poor htc users i sat, get a lumia 521 for $49 ... actually makes calls Dec 13 04:20:17 *say Dec 13 04:20:56 In other words, is a padding considered a size or an offset? Dec 13 04:21:03 they can use groove ip or talkatone Dec 13 04:21:24 or those are dead now, what is it now, google phone ? Dec 13 04:22:15 shmooz there is also http://www.theverge.com/2014/12/3/7325083/wire-chat-service-skype-founder Dec 13 04:22:27 TacticalJoke: I think offset Dec 13 04:23:52 g00s: right, maybe I'll try it if I need it Dec 13 04:23:52 I heard about it on some tech news Dec 13 04:23:54 Wow, some of the Android code is full of repetition. Dec 13 04:24:13 Look at these two methods: getResources().getDimensionPixelSize Dec 13 04:24:15 Oops. Dec 13 04:24:17 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/util/TypedValue.java#227 Dec 13 04:24:33 Unless I'm missing something, they are identical apart from the cast. Dec 13 04:25:15 Why would they not say "return (int) complexToDimensionPixelOffset(data, metrics);" for the second one? Dec 13 04:25:28 -Offset Dec 13 04:26:46 wow what a nitpicker you are Dec 13 04:27:06 I like it, you should document your nitpicking Dec 13 04:27:22 If I'm right that they are the same, that code is reallyb ad. Dec 13 04:27:23 especially the timings Dec 13 04:27:23 bad* Dec 13 04:30:54 shmooz: IMO, programming is basically nitpicking in practice. Dec 13 04:31:24 not if you have deadlines to finish something Dec 13 04:31:48 you got 3 weeks, now get to work! Dec 13 04:35:14 jk, I don't mind your OCD, and questioning stuff Dec 13 04:36:12 it helps us all learn more Dec 13 04:36:53 TacticalJoke you have to treat your code like its going to be thrown away eventually Dec 13 04:37:01 because, it probably will :) Dec 13 04:37:29 i rewrote this app 3 times so far Dec 13 04:38:04 each was an exploration into different design, architecture. if you get to married to it, you'll be stuck in a box Dec 13 04:39:06 now i'm in the process of rx-ing all the things, but its such an ugly mess. even if theoretically beautiful, if its ugly and hard to read i might just get rid of it Dec 13 04:39:07 Yeah, I agree. I try not to get too attached. Dec 13 04:39:14 Mainly I try to avoid coupling as much as possible. Dec 13 04:39:23 Try to make it very easy to change. Dec 13 04:40:08 shmooz: Yeah, OCD can be useful. But it can cause huge stress sometimes. Dec 13 04:40:16 TacticalJoke http://www.informit.com/articles/article.aspx?p=1963779 Dec 13 04:42:46 Yeah, that sounds sensible. Dec 13 04:43:08 I remember the first time I read a book about design patterns (I think it was "Head First Design Patterns"). I couldn't help but think that some of those patterns would make my life really hard. Dec 13 04:43:16 And never mind the GoF book. Dec 13 04:46:13 3 times? Dec 13 04:46:31 hope it's making you rich :p Dec 13 04:47:04 pfn in fact, possibly :) Dec 13 04:48:01 in that case I'm jelly Dec 13 04:48:02 will know by the end of december ;) Dec 13 04:49:39 What do you folks think about caching the result of a getResouces().getWhatever() call in my custom ViewGroup? Dec 13 04:49:48 getResources* Dec 13 04:49:52 For performance. Dec 13 04:50:13 i wouldnt think about it, unless its causing a problem Dec 13 04:50:42 It's fast for what I'm doing, but in principle I could see it being a problem for something like an array of strings. Not sure, though. Dec 13 04:51:18 well if not sure, either measure it and be sure, or don't worry about it until something goes wrong :) Dec 13 04:59:28 TacticalJoke: caching everything is good, for offline use Dec 13 05:01:26 for resources, I don't know, time it Dec 13 05:01:31 ugh time to rebuild the project from scratch Dec 13 05:02:37 that's gonna be my answer to most of TacticalJoke's questions, try it , test it, time it Dec 13 05:02:51 do resource files need the I don't think they absolutely need it, but the standard says add it (IIRC). Dec 13 05:03:40 The XML standard. Dec 13 05:04:41 lasserix_ not android, but maybe it helps your editor somehow Dec 13 05:04:43 lasserix_: Dec 13 05:04:50 right Dec 13 05:04:52 just wondering Dec 13 05:05:04 AS doesn't even put that there when you create file Dec 13 05:05:06 since the wizard doesn't include it, but if you adda new resource file via AS wizard it does Dec 13 05:06:40 lasserix_: can't you create a new Android XML file ? Dec 13 05:07:02 I guess if you create a blank text file it won't do it Dec 13 05:07:14 umm Dec 13 05:07:19 it was just a general question Dec 13 05:07:23 it works both ways Dec 13 05:07:30 It's optional in 1.0: http://www.w3.org/TR/xml/#sec-prolog-dtd Dec 13 05:07:31 but since i am now recreating my project from scratch Dec 13 05:07:35 But in 1.1 it's mandatory. Dec 13 05:07:42 i am trying to make sure eveything is kosher Dec 13 05:07:45 "XML documents should begin with an XML declaration which specifies the version of XML being used." Dec 13 05:07:59 You should add it, lasserix_. Dec 13 05:08:05 I think I'd consider it a bug that the wizard doesn't add it. Dec 13 05:08:44 wizards are dunces Dec 13 05:08:49 In 1.1: "XML 1.1 documents must begin with an XML declaration which specifies the version of XML being used." Dec 13 05:08:55 Though I guess Android is limited to 1.0. Dec 13 05:11:33 what does windowTitleSize refer to? Dec 13 05:11:39 is this the actionbar/toolbar title? Dec 13 05:12:10 no, the thinner one above the action bar Dec 13 05:12:20 that usually just contains the app's name Dec 13 05:12:25 is it part of the app? Dec 13 05:12:27 ohh that thing Dec 13 05:12:55 yeah I hide it so it never shows up Dec 13 05:16:18 I notice that most of my design "decisions" are pure accidents. Dec 13 05:16:22 Accidents that I happen to like. Dec 13 05:16:54 Okay, 'most' is an exaggeration. Dec 13 05:16:55 almost all inventions were accidents Dec 13 05:18:04 thought most inventions were the result of the future manipulating spacetime to induce mild delusions that inspire revolutionary insight Dec 13 05:19:03 lasserix_ i read the other day if nobody sent a machine back from the future to kill you, anything you choose is ok :) Dec 13 05:19:29 percisely Dec 13 05:19:52 i think it was on reddit somewhere Dec 13 05:21:14 g00s: maybe you should make a TimeCop lookout app Dec 13 05:21:14 Perhaps we're just not interesting enough to kill. Dec 13 05:22:15 Or the machines malfunctioned on the way. Dec 13 05:24:08 think the toolbar is buggd Dec 13 05:24:17 made a whole new project Dec 13 05:24:18 shmooz i didn't see that movie :) Dec 13 05:24:24 the dimensions are not working Dec 13 05:24:46 on my n5 the title text size blows up, on the other phone (also normal size) it doesn't even change Dec 13 05:25:10 g00s: ok than the anti-Terminator Dec 13 05:25:14 and then a textview underneath the toolbar also set the same text size is the correct size (or so i assume) on both phones Dec 13 05:27:18 does sp depend on screen density? Dec 13 05:27:37 guess ill do a workaround by just using a textview simulating as the toolbar title Dec 13 05:27:40 shmooz lol, just rented :D Dec 13 05:32:06 fucking wtf now i deleted allr eferences to the toolbar title and it still shows up when i deploy it to the device wtf Dec 13 05:32:48 Do AMOLED themes generally try to display black everywhere on screen? Or is, like, 80% of the screen being black enough? Dec 13 05:33:04 TacticalJoke: every pixel that is blacks helps Dec 13 05:33:08 conserve battery power Dec 13 05:33:16 Yeah. Dec 13 05:33:33 I might as well make a separate AMOLED theme, really. Dec 13 05:33:38 Otherwise it only constrains my dark theme. Dec 13 05:33:45 tru dat Dec 13 05:33:52 Plus doesn't end up being black. The worst of both worlds. Dec 13 05:35:35 black is a tough color. what i learned was many artists don't use it, their darkest tones are really like 'almost black' Dec 13 05:36:41 don't worry about optimizing for oled Dec 13 05:37:23 I do use qicr in dark theme 90% of the time though Dec 13 05:37:32 so much easier on the eyes Dec 13 05:37:49 Yeah, I like Reddit with a dark theme. Dec 13 05:37:52 hey all, does anyone have a working robolectric setup with android studio 1.0 and gradle plugin 1.0? Dec 13 05:37:53 pfn: for sure Dec 13 05:38:38 parabolic reflectors overhead helps too :) Dec 13 05:38:57 f00k android Dec 13 05:38:58 wtf is this Dec 13 05:39:08 TacticalJoke: you should check out pfn's scala code for his qicr, it's nice Dec 13 05:39:09 now the toolbar is showing the app label no matter what i do Dec 13 05:39:10 wtf is Dec 13 05:39:12 hierarchy viewer Dec 13 05:39:29 works genymotion? Dec 13 05:39:30 Yeah, I've seen some of it. And Scala looks nicely concise. Dec 13 05:41:00 pfn what am i looking for? Dec 13 05:41:04 never used hv before Dec 13 05:41:33 anyone have any experience with enabling bluetooth in kernels via the BNEP flag in the config? Dec 13 05:42:40 pfn can i see where textview strings come from in the hv? Dec 13 05:43:28 hm, no one's using robolectric right now? :/. pretty bummed about the current state of testing on android. hoping to find some encouragement and example projects but i've had a real hard time finding up to date links. Dec 13 05:43:58 timmm: I use Eclipse for JVM tests. Dec 13 05:44:03 They're adding JVM-test support to AS. Dec 13 05:44:14 It's possible to do it right now, but you have to jump through hoops (I think). Dec 13 05:44:26 JakeWharton always seems to link to this article: blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Dec 13 05:44:29 TacticalJoke: as in you use AS primary and startup eclipse for unit tests? Dec 13 05:44:30 http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Dec 13 05:44:44 I use Eclipse for my everything. Dec 13 05:44:49 -my Dec 13 05:45:15 hm. i've followed that link before, also saw a comment JakeWharton made in a reddit thread saying it was on the right track but currently out of date. Dec 13 05:45:39 Here's Xavier (I think) talking about their adding unit-testing support to AS: http://www.reddit.com/r/androiddev/comments/2ozs8d/how_do_i_unit_test_in_android_studio/cms4bev?context=1 Dec 13 05:46:37 hm nice link. he's referring to the gradle plugin though right? i'm not familiar with how often their "feature releases" are. Dec 13 05:46:41 are those the point releases? Dec 13 05:46:58 I'm guessing that he's saying that Gradle support will be in 1.1. Dec 13 05:47:08 Not sure about full support. Dec 13 05:47:27 I don't know how often their releases are either. Sorry. Dec 13 05:47:36 Wish I knew more, because I'm itching to switch to AS. lol Dec 13 05:47:40 yeah totally no worries thanks for the link. Dec 13 05:47:46 I haven't because JVM unit testing is a huge deal for me. Dec 13 05:48:05 you don't need to run unit tests in ide though Dec 13 05:48:14 just run them from gradle directly Dec 13 05:48:20 pfn but like debugging? Dec 13 05:48:35 yep, that's a problem Dec 13 05:48:54 yeah i need to setup unit tests for work. we all use android studio because it's what is supported Dec 13 05:49:16 unit tests generally shouldn't need. debugging thougj Dec 13 05:49:24 (you don't know my coworkers :P) Dec 13 05:49:45 if you need to debug your unit tests, then they aren't really unit. tests Dec 13 05:50:08 I don't understand how I accidentally hit. so often on SwiftKey Dec 13 05:50:17 ok, i'm not going to argue with you, but bottom line is devs shouldn't have to make that decision. Dec 13 05:50:23 how do i disable decore from action bar in style? Dec 13 05:51:00 timmm: I think JakeWharton still recommends that blog post. I've not tried it, though, personally. Dec 13 05:51:21 i spent a few hours going down it's rabbit hole a couple weekends ago, got stuck. Dec 13 05:51:23 * pfn runs everything through sbt Dec 13 05:51:25 if i add a style for actionbar in style this will apply to toolbar if i set toolbar as actionbar? Dec 13 05:51:27 Ah, okay. Dec 13 05:51:40 and my unit tests, if I ever bother, work fine in intellij Dec 13 05:52:05 lasserix_, no, toolbar uses theme Dec 13 05:52:30 + Dec 13 05:52:40 so there is no way to style toolbar from values? Dec 13 05:52:42 TacticalJoke, i suppose i'm just hopping to run into someone on irc or reddit who has a working setup but for some reason hasn't blogged it who can enlighten me Dec 13 05:52:51 lasserix_, of course there is Dec 13 05:52:57 set theme in your style Dec 13 05:52:58 timmm: JakeWharton does. :D But he's probably AFK. Dec 13 05:53:04 And he'll probably just direct you to that post. Dec 13 05:53:08 hm Dec 13 05:53:14 and configure your theme style in values Dec 13 05:53:21 Some people have reported stuff working with IntellJ + Gradle, but I'm skeptical. Dec 13 05:53:29 pfn i want to change actionbar title text size, can i do that there? Dec 13 05:53:39 should be able to Dec 13 05:55:49 TacticalJoke so you aren't on gradle at all? Dec 13 05:55:53 Right. Dec 13 05:56:17 hm, thats whack Dec 13 05:56:21 but i get it Dec 13 05:58:27 What's whack? Dec 13 05:59:52 All of the developer support is on AS + gradle. Beta-level software, but still, it's where the support is. No one I know uses eclipse, but it makes sense for the reason you listed: jvm unit tests Dec 13 06:00:28 I bet loads of people use Eclipse. Dec 13 06:00:35 It's been the official IDE for years. Dec 13 06:00:41 Only now is it not "supported". Dec 13 06:00:53 Note that NDK developers also can't move to Android Studio yet. Dec 13 06:01:01 They too must stick with Eclipse. Dec 13 06:01:02 hahaha its done had to do a hack because android is kind of a pos sometiimes but finished! Dec 13 06:08:18 anyone use the material dialogs library by afollestad? Dec 13 06:15:32 awesome Dec 13 06:15:34 done Dec 13 06:15:35 finally Dec 13 06:15:49 now just to add a deadman's switch in case they dont pay... Dec 13 06:16:43 What's that? Dec 13 06:17:03 check date if date is > jan 1st 2015 finish on start Dec 13 06:17:48 lol Dec 13 06:18:00 And you remove this if they pay? Dec 13 06:19:17 haha tha'ts hilarious Dec 13 06:20:28 Toast.makeText("You messed with the wrong guy.", Toast.LENGTH_LONG).show(); finish(); Dec 13 06:20:59 yeah i just send them a final version after they pay Dec 13 06:21:08 been ripped off once so.. Dec 13 06:21:47 I guess it makes sense. You're giving them trialware until they pay. Dec 13 06:22:13 Do they know about this? lol Dec 13 06:23:13 God, the examples on d.a.c/training suck. Dec 13 06:23:26 They're overly complicated and all you see is a code snippet here and there. Dec 13 06:23:43 They so easily could've shown simple examples with a full code listing. Dec 13 06:23:49 i wish they would do like microsoft, and have code snippet examples for every method Dec 13 06:24:12 Yeah. Dec 13 06:24:21 Examples are so much faster to process. Dec 13 06:25:32 i started my programming career on MS stuff, i think thats why i get so frustrated with android; they definitely know how to create a platform and document it; i still get the feeling google is just doing this because they have to Dec 13 06:26:35 tru dat Dec 13 06:27:08 if google didn't have lots of streed cred with geeks over the past 10 years, this platform wouldn't have gone further than tizen Dec 13 06:27:38 they got lucky, nobody had an answer to iOS. oems were going nuts. right place, right time. ms fucked up big Dec 13 06:28:05 another question i wanted to ping people about: does anyone have any nice pre commit git hooks for working on android code on a team? it'd be great to have nice stuff setup to fail the commit if the linter or connected tests fail Dec 13 06:28:25 timmm i'm sure TacticalJoke does :P Dec 13 06:28:48 hm thatd be awesome Dec 13 06:28:48 but you'll have to convert to hg first Dec 13 06:28:51 lol Dec 13 06:29:06 team currently uses git so not really an option :P Dec 13 06:45:56 <_genuser_> so this material design stuff, is this only applicable to android 5.0 (api level 21). Or is some of it avaiable to older version via compatibility APIs? Dec 13 06:49:18 Oh, I don't know anything about teams using revision-control systems. Dec 13 06:51:22 timmm: Just wondering -- did you decide upon what to do? Dec 13 06:51:35 re: what? Dec 13 06:51:58 IDE choice. Dec 13 06:51:59 _genuser_ 5.0, but graceful degradation using appcompat on previous versions Dec 13 06:52:50 ahh, well my team all uses android studio, so anything else isn't an option. Dec 13 06:52:58 genuser i just made a material app using 5 different compat libraries Dec 13 06:53:15 i have seen some people on the interwebs talking about actually using AS + Eclipse (just for testing) Dec 13 06:53:20 but that makes me sad Dec 13 06:53:25 I need to do custom drawing to make my left-border appear where I want it to. Dec 13 06:53:40 timmm: Hmm. I haven't seen that. Dec 13 06:54:29 * _genuser_ googles appcompact Dec 13 06:54:56 compat* Dec 13 06:55:06 appcompat is very vey limited Dec 13 06:55:10 doesnt do shadows Dec 13 06:55:13 edittext doesn't hint Dec 13 06:55:22 I guess you get Toolbar. Dec 13 06:55:28 which is buggy Dec 13 06:55:39 Doh. Dec 13 06:55:40 you dont get material dialogs Dec 13 06:55:44 Wow. Dec 13 06:55:45 or the FAB button Dec 13 06:55:52 You get Holo dialogs? Dec 13 06:55:56 i dunno Dec 13 06:56:01 i just ended up using a library for the dialogs Dec 13 06:56:18 People on Reddit are so ridiculous with their Material obsession. Dec 13 06:56:21 you also don't get snackbar Dec 13 06:56:33 They literally spend hours of their day talking about whether some app will update to Material Design. Dec 13 06:56:40 And when it does they go crazy. Dec 13 06:56:41 <_genuser_> so this appcompat is essentially support API that implement stuff on the newer framework using new elements but fallback to older ui elements on older devices. Dec 13 06:56:43 What is wrong with them? Dec 13 06:56:49 _genuser_ if you 2x your existing padding and make the actionbar higher, you're half way there ! Dec 13 06:56:49 genuser yeah Dec 13 06:56:54 hehe Dec 13 06:57:02 lol Dec 13 06:57:23 TacticalJoke google has done a phenomenal job of promoting material design. users seriously think it will fix *everything* and they demand all apps update to it Dec 13 06:57:24 <_genuser_> nice. so basically, I should just update my android sdk installation and just start using "cards" and bam! Dec 13 06:57:28 _genuser_ and add some random animations that don't make sense. make them happen at random times Dec 13 06:57:30 Yeah. Dec 13 06:57:46 Everyone raves about that Reddit client that updated to Material. They talk as if it's the best thing ever. Dec 13 06:58:01 And yet it wastes so much space that it's basically unusable if you have a small screen. Dec 13 06:58:05 <_genuser_> g00s: heh, I'd be glad with a dialog (transparent) that can be modal but send events to the main activity. which is what I'm googling/implementing at the moment. Dec 13 06:58:09 if you want to make material UI, here's the libraries i'd recomend com.afollestad:material-dialogs" com.rengwuxian.materialedittext" com.melnykov:floatingactionbutton" com.nispok:snackbar" Dec 13 06:58:23 Half of me wants to stick with Holo. Dec 13 06:58:23 genuser use that material dialog library Dec 13 06:58:25 very vice Dec 13 06:58:25 Or just a custom Holo. Dec 13 06:58:46 <_genuser_> lasserix_: material has a dialog library, then I'd have to update my sdk ... :( Dec 13 06:58:51 TacticalJoke: yeah some of the metrics are kinda fooked for small screens Dec 13 06:58:52 I guess I'm not a materialistic person. Dec 13 06:58:52 i dont want to add all those dingleberries to my project tho Dec 13 06:58:57 _genuser_: it' Dec 13 06:59:00 <_genuser_> I know that will make eclipse unhappy for at least a couple of days while I waste time fixing it. :) Dec 13 06:59:01 s really easy Dec 13 06:59:12 g00s dingleberry totally worth it Dec 13 06:59:25 lasserix_ maybe the snackbar thing Dec 13 06:59:30 Yeah, I hate dependencies. They're a pain. Dec 13 06:59:32 most all are like 5 line implementations Dec 13 06:59:35 lasserix_ does that snackbar let you swip to dismiss ? Dec 13 06:59:38 TacticalJoke: maybe with eclipse.... Dec 13 06:59:41 g00s yea Dec 13 06:59:50 <_genuser_> lasserix_: alright, here goes an android sdk update. then material dialog library will be next in google "material library dialog". let's see how it does. Dec 13 06:59:53 Yeah, but even with AS. It's more moving parts: more things to go wrong. Dec 13 07:00:05 TacticalJoke: not really, its a one line include Dec 13 07:00:05 More to obsess over. Dec 13 07:00:07 oh cool... google just obsoleted the only issue I ever openned re: numberpicker Dec 13 07:00:14 lasserix_: I'm thinking bugs and stuff. Dec 13 07:00:24 yeah that's life tho Dec 13 07:00:31 TacticalJoke: just finished the lottery app! Dec 13 07:00:33 Mo' complexity, mo' problems. Dec 13 07:00:35 Nice. :) Dec 13 07:00:41 with dead man switch and all Dec 13 07:00:57 You have T - 21 days to pay lasserix_. This message will self-destruct in five... Dec 13 07:01:01 after jan 1st it finishes and a toast says "Oops, something went wrong. Contact developer!" ;p Dec 13 07:01:10 last January... must be a 1 year timeout Dec 13 07:01:16 :D Dec 13 07:01:41 She might just change her system time. Dec 13 07:01:44 Use the app forever. Dec 13 07:01:47 And laugh like a maniac. Dec 13 07:01:53 dont think she has the ability to do that Dec 13 07:01:55 <_genuser_> lol, my app has target SDK 18, and my sdk manager shows that 18 isn't even installed. I bet it's just using 14 which is the min. Dec 13 07:02:19 lasserix_: If she wins the lottery, the lottery people might sue you. Dec 13 07:02:20 yeah Dec 13 07:02:27 <_genuser_> hmm, even 14 isn't installed. just 16, lolz. Dec 13 07:02:32 i wonder how the realm.io stuff is going Dec 13 07:02:35 it's for daily 3 don't think the amount is very high Dec 13 07:02:43 g00s try it yet? Dec 13 07:02:45 <_genuser_> my project is a mess. Dec 13 07:02:47 is there android sdk even out? Dec 13 07:02:59 lasserix_ no ... i was worried about the ndk part Dec 13 07:03:09 if i can add it to my gradle maybe i'll try it Dec 13 07:03:24 i'm also interested in realm.io, there was some reason i wrote it off tho, can't remember what Dec 13 07:03:24 God, Google Chrome gets unusuable real fast. Dec 13 07:03:26 Just a few tabs. Dec 13 07:04:28 ndk part? Dec 13 07:04:47 <_genuser_> ok, so my SDK mgr only shows me api level 19 as the latest. Dec 13 07:04:50 "Be aware that the getters and setters will be overriden by the generated proxy class used in the back by RealmObjects, so any custom logic you add to the getters & setters will not actually be executed." Dec 13 07:05:03 nbd but i remember being like wtf? Dec 13 07:05:17 ahhthey use proxies Dec 13 07:05:58 If I had a company selling self-defence products, the motto would have to be "All your mace are belong to us". Dec 13 07:07:57 TacticalJoke: the thing abotu dependencies and bugs is if you do it yourself you're going to have to deal with the bugs anyways, and since someone else developed they hopefulyl (already probably) dealt with all the bugs Dec 13 07:08:25 heh Dec 13 07:08:44 If we create it ourselves, though, we become experts on the problem domain and its applied solution. Dec 13 07:09:11 totally, just a matter of how much time you have Dec 13 07:09:28 i mean, why use api widgets when you can roll your own textview? Dec 13 07:09:45 <_genuser_> lasserix_: so you doing independent contracting for customers or is your employer finding projects? Dec 13 07:10:15 startup i was went went under (for the most part) so just picked up some random side projects Dec 13 07:11:07 <_genuser_> oh so just your own thing. I've been thinking of branching out, but I keep thinking about it a "little more" Dec 13 07:11:23 well Dec 13 07:11:51 my own ideal is that i dont have to leave my house until 11 AM Dec 13 07:11:59 other than that i am pretty flexible Dec 13 07:12:13 Google killed my favorite Android music player app: https://plus.google.com/115564237657785223556/posts/TvY1PD4ci2N - what's a good replacement? Dec 13 07:12:23 <_genuser_> I work from home, hours are flexible. so I'm tired of it. 10 years or so of this. Dec 13 07:12:23 (preferably free, must have replaygain) Dec 13 07:12:32 startups (sometimes) allow that but big biz not usually (sometimes tho) and indep contracting you can work at the beach if you like Dec 13 07:12:34 <_genuser_> I want to get out 8am and kinda enjoy the young people thing. Dec 13 07:12:39 ahh Dec 13 07:12:41 yeah i see that Dec 13 07:12:52 that was the best part about working there--coworkers (not so much bosses heh) Dec 13 07:13:02 <_genuser_> just no social contact. working over sametime (instant messenger), email, and phone calls. Dec 13 07:13:26 <_genuser_> doing the exact same app, over and over. like groundhog day, seriously. Dec 13 07:13:45 <_genuser_> and I mean, we literally do the exact same app over and over. for 15 years. Dec 13 07:13:57 why dont you go down to a cafe or something? Dec 13 07:14:20 ahh that reminds me ineed to start designing my multi-moniter briefcase for a kickstarter Dec 13 07:14:59 <_genuser_> that's a great idea. but then you need an internet hookup to stay on the VPN (so your boss can track you), monitor your email, get on conference that are 3hrs long, and you need the speakerphone... Dec 13 07:15:25 <_genuser_> waking up late, just geting to it. phone calls mostly from 11am to 3pm, the important part of the day is kinda gone. Dec 13 07:15:26 ahh id just spoof my location anyways Dec 13 07:15:44 <_genuser_> they try to use your sametime status to see if you're on. and ping you now and then. Dec 13 07:15:58 <_genuser_> if you don't respond, you know someone's counting minutes until you do. Dec 13 07:16:07 could any of you, folks, help me with running sample code? For example, https://developer.android.com/shareables/training/OpenGLES.zip When I open the project, it says I need to specify an output directory. So I do it but still can't run a demo. I use android studio. Dec 13 07:17:33 uhh Dec 13 07:17:39 extractit and import it Dec 13 07:17:48 <_genuser_> man, the highest I see on sdk mgr is api level 19. where's the freaking 21?? gotta google this. Dec 13 07:20:12 <_genuser_> eh, the sdk update has made my machien come to a crawl. Dec 13 07:20:57 <_genuser_> lasserix_: I did think, tho, that over this summer I'd just ride my bike out with my laptop in a backpack and hit some cafes, bars, and just maintain presence on messenger. Dec 13 07:21:33 <_genuser_> but in the end, it was the erratic schedule of phone calls, and long hours requiring speaker phone use that kinda made me lazy. maybe next year I'll do it more. Dec 13 07:22:03 <_genuser_> plus, I feel if you camp out there and then have to use the restroom, who'll watch all your crap. Dec 13 07:22:30 bluetooth headset yo Dec 13 07:22:46 lock set Dec 13 07:23:00 ahh i guess that's true Dec 13 07:23:00 <_genuser_> hmm, lock the laptop to a table, etc? Dec 13 07:23:03 though you could do alarm mode Dec 13 07:23:08 where you press a button Dec 13 07:23:19 and if anything moves it starts going off Dec 13 07:23:33 "help ! He's got me !" Dec 13 07:23:34 since tablet + phone + labtop can use wifi to determine location Dec 13 07:23:55 <_genuser_> hey, your fly open, alarm goes off, you'll be still focusing on whipping it back in and by then some dude will be half way down the block Dec 13 07:24:28 idk never had any problems using the bathroom even in la Dec 13 07:24:29 <_genuser_> but I think bluetooth, and laptop lock cable would be a good idea. Dec 13 07:24:39 or make a friend with someone at the cafe Dec 13 07:24:42 <_genuser_> put the rest in a backpack, wear the backpack, use the restroom, and done. Dec 13 07:24:47 you wanted to meet young people right? Dec 13 07:24:58 yeah that too Dec 13 07:25:14 <_genuser_> sure, some nice chicks, with big "brains"... no objection to meeting them. Dec 13 07:26:05 <_genuser_> it's settled then, as much of a hipster presence there is in dallas/carrollton, I'll try to check them out at local cafes, etc. Dec 13 07:28:23 <_genuser_> that or looking for a new job with more social prospects. :) Dec 13 07:29:47 ahh you gota make it to arlen i guess Dec 13 07:30:05 <_genuser_> arlen? Dec 13 07:30:29 you in texas? Dec 13 07:30:42 <_genuser_> yeah Dec 13 07:30:46 what that city in arlen that is like progressive and full of alternative types Dec 13 07:30:50 starts with an A Dec 13 07:31:19 <_genuser_> austin. Dec 13 07:31:31 <_genuser_> arlen is where the king of the hill family lives. Dec 13 07:31:34 oh austin Dec 13 07:31:37 hehe yeah Dec 13 07:31:56 <_genuser_> I think it's about 3-4hrs away from here. Dec 13 07:32:19 ahh Dec 13 07:32:19 well Dec 13 07:32:23 <_genuser_> what sucks is dfw is a great place to be. it's jsut that there's less stuff to do here vs. when I'm in cali. Dec 13 07:36:30 <_genuser_> ah, the update(s) broke my eclipse pretty good. Dec 13 07:38:38 <_genuser_> alright, updating it with more stuff that's visible now. Dec 13 07:38:59 <_genuser_> my existing target was 18, so I hadn't updated in a long time, gonna be a whiel for it to catch up Dec 13 07:48:57 greetings, i have an app which reads NFC tag ids from scanned cards - i've just bought a samsung s5 and whenever I scan a card it says 'NFC tag type not supported' (it is complaining about the mifare 1k part of the card) - i can't find any reference to this message on google and the only app I have found which doesn't popup this error is 'nfc taginfo by nxp' - can anyone point me in the direction of not seeing this error whenever Dec 13 07:50:13 i'm not interested in the mifare 1k parts of the card - just the nfc tag id Dec 13 07:51:50 wrong room Dec 13 07:52:01 unless its your app? Dec 13 07:52:17 yes it is my app, but the message isn't specific to my app Dec 13 07:52:57 i'm just not sure if the 'nfc tag type not supported' message is from the base android source or it is something that samsung have loaded into their custom build Dec 13 07:58:12 your app that you wrote is generating odd messages and you can't figure why? like from a 3d party library call? logcat nessages? toasts? Dec 13 08:00:39 notifications? does it talk to you? can others hear it? :p Dec 13 08:01:18 not exactly.. whenever i scan a card using the android NFC api which contains mifare1k technology - i get a prompt saying 'nfc tag type not supported' - a 3rd party app 'nfc taginfo by nxp' have implemented their own nfc api (i am guessing this as the successful read sound is different and it doesn't pop up the msg) - i'm trying to find more info on how to achieve that Dec 13 08:01:48 the 'nfc tag type not supported' message has nothing to do with my app, the same message appears when i scan a card from the home screen Dec 13 08:18:34 Hi Dec 13 08:18:47 my WebView always give error -6 Dec 13 08:19:00 cannot connect to server Dec 13 08:20:50 oops, missing INTERNET permission Dec 13 08:39:16 <_genuser_> ugh, pc to near halt due to installation. Dec 13 08:41:08 <_genuser_> do you guys uninstall older stuff like android 2.2.3 kinda old stuff? Dec 13 08:41:20 <_genuser_> I don't anticipate developing or supporting anything for it, I guess I should just remove it. Dec 13 08:42:00 then do it Dec 13 08:42:15 if you dont wanna support it Dec 13 08:42:26 meh android 2.3.3 has still many users Dec 13 08:43:21 <_genuser_> I know older android apis will have lots of users. my target is 18 and min is 14 for this app. Dec 13 08:43:33 <_genuser_> few other app (including one published) also don't breach this level downwards. Dec 13 08:44:42 <_genuser_> I guess, my first priority is to get this new update to work with eclipse. Dec 13 08:44:59 <_genuser_> ADT update always breaks my eclipse. Dec 13 08:46:03 eclipse will no longer bi officially supported Dec 13 08:46:17 altought adt updating will occur in eclipse normally Dec 13 08:46:43 <_genuser_> oh now that android studio is out of beta, eclipse is officially "do it on your own" category, eh? Dec 13 08:48:32 <_genuser_> it _is_ complaining that this android sdk requires android developer toolkit version 23.0.0 or above. and you have 22.3.0........ blah, so please update ADT. Dec 13 08:48:41 <_genuser_> and of course, there isnt' a newer version avaialab.e Dec 13 08:49:05 <_genuser_> I guess, I'll have to move my solutions to android studio then. learn a new tool, waste time on that a few days. :) Dec 13 08:51:51 <_genuser_> uh, so I assume you're on android studio (most of you)? Dec 13 08:53:08 * capella-s3 was using intellij before AS became cool :) Dec 13 08:54:12 as os tje wau tpgp Dec 13 08:54:16 AS is the way to go Dec 13 08:54:39 drunk typing? :p Dec 13 08:55:29 pfn would blame it on SwiftKey Dec 13 08:59:25 <_genuser_> I guess AS would be better to get used to now. Dec 13 08:59:45 <_genuser_> it's just easier to spend the time now to learn crap I actually need to learn for my project. instead of messing with a new IDE. Dec 13 09:03:06 <_genuser_> I now to sort out my surface 3 pen pressure sensitivity problem. Dec 13 09:04:24 I have a surface 2.. it's not terribly accurate in those cases where I've actually used it Dec 13 09:05:56 In a LinearLayout subclass, is it sensible to initialize a field like this: private int indentSize = getResources().getDimensionPixelOffset(R.dimen.comment_left_indent_size); Dec 13 09:06:25 I mean, it works, but I'm not 100% certain that the View is ready for me to do such things. Dec 13 09:14:27 umm Dec 13 09:14:38 initialized via class? Dec 13 09:14:45 ive never seen that Dec 13 09:14:54 well Dec 13 09:14:56 it shouldbe fine Dec 13 09:15:05 since class fields are initialized after constructor finishes Dec 13 09:18:26 TacticalJoke: whats the diff between PixelOffset and Pixel? Dec 13 09:18:26 Yeah. Dec 13 09:19:10 Offest just returns (int) getDimension. Dec 13 09:19:24 Offset Dec 13 09:19:31 what offset? Dec 13 09:19:34 is that a type? Dec 13 09:19:45 getDimensionPixelOffset just returns (int) getDimension. Dec 13 09:20:28 ah Dec 13 09:20:32 one is floor the other is ciel Dec 13 09:46:12 i want to implement a custom view that is an edit text and when the user clicks done on the keyboard the edittext becomes a textview with the value (and when they click on it it becomes the dit text again) anyone know if its already been done? Dec 13 09:47:09 Can't you just wrap it in a layout and switch the textview/edittext on done/click? Dec 13 09:47:18 anyone know of a program that lets me archive code snippets? Dec 13 09:47:27 yawkat yeah but i want like fade animations between them etc Dec 13 09:47:40 Ah okay, no idea then Dec 13 09:47:46 i will make it if its not been done before, just thought it'd look nice and fits the material spec Dec 13 10:10:27 are you a dev or a graphics artist? hard to tell the diff around here at times :/ Dec 13 10:13:27 Mt artistic style is pretty much nonexistent... I can make code work, but it looks horrible Dec 13 10:15:34 i have artistic eye, could have done it used to ps and illustrator but stopped just coder now Dec 13 10:21:22 ah... those are in my looooong list of things I want to get around to looking into :) Dec 13 10:31:42 <_genuser_> capella-s3: surface2? It has the have the wacom digizer which is the industry standard for digital illustration. Dec 13 10:32:24 <_genuser_> capella-s3: but the surface3 digizer is from n-trig and new and upcoming company, which is a rival to wacom but not quite the industry standard yet. Dec 13 10:32:58 <_genuser_> supposedly wacom told microsoft they couldn't use their digitizer because surface pro 2 was cutting into the profits for wacom's own cintiq line. Dec 13 10:33:16 heh. the cintiq... Dec 13 10:33:35 i know so many people who would buy them if they could get them to work better and at higher resolutions. Dec 13 10:33:47 oh, perhaps my admitted lack of artistic skills is once again to blame :) Dec 13 10:44:03 that moment when you think "oh man that's an awesome method, why haven't i used that before? oh ... google don't support that :(" Dec 13 10:44:45 name that method! Dec 13 10:45:06 i can name that method in THREE notes. Dec 13 10:45:12 heh Dec 13 10:53:42 anyone in here do apps that use opencv? Dec 13 11:15:06 man are you kidding me Dec 13 11:15:18 anyone managed to get Ripple to render properly on appcompat cardview? Dec 13 11:25:10 using app compat library? Dec 13 11:25:22 didn't think the appcompat library does ripple, you have to use third party Dec 13 11:28:22 <_genuser_> geez, i'm uninstalling api 21 so I can just run the project in eclipse and it's throwing a fit. Dec 13 11:28:42 <_genuser_> I was going to get some sh|t done, and instaed I've spent all night just installing/uninstalling api version, lulz. Dec 13 11:36:56 <_genuser_> ah, now it works. :) Dec 13 11:37:08 <_genuser_> I"ll hold off the transition to api 21 until after the move to AS Dec 13 11:46:19 I got an activiaty with two fragment, splitted vertically. I want to change the width of each fragment, depending what "side" of the activity the user is using. Is there a way to detect that ? Dec 13 11:47:56 lasserix_, yes, using appcompat Dec 13 11:48:23 and yes, I know it's not working on pre-5.0, the problem is that it's bugged to shit on 5.0 as well Dec 13 11:48:40 blusky, side of the activity? Dec 13 11:49:20 On the activity, two fragment are visible, one on left, one on right Dec 13 11:49:31 if the user use the left fragment (for exemple) Dec 13 11:49:42 I want the width of this fragment larger Dec 13 11:50:01 so I need to detect wich side of the activity (ie, which fragment) the users currently use Dec 13 11:50:11 but i'm not sure it's possible Dec 13 11:50:38 blusky, well as soon as you'll device what "use" means in your context you'll be able to come up with a solution Dec 13 11:50:40 maybe something like a myFragment.setOnClickListener(), but it doesn't exist Dec 13 11:51:04 "use" mean, last click was on it Dec 13 11:51:07 anyway, for further reference: blackmagic to make ripple work with CardView: set it as "foreground" and set "clickable" to true Dec 13 11:51:32 blusky, well, handle touch event in Fragment then and let fragment tell activity it was tapped Dec 13 11:51:43 blusky, or handle touch event in activity and react there according to location Dec 13 11:51:50 onInterceptTouchEvent is what you'll probably use Dec 13 11:52:01 oh, that could do it ! Dec 13 11:52:03 thanks ! Dec 13 11:57:59 http://android-developers.blogspot.it/2014/12/hello-world-meet-our-new-experimental.html Dec 13 12:00:12 <_genuser_> oh geez, I have to update java to 64-bit, this is just so much fun. Dec 13 12:04:39 _genuser_, just... install it? Dec 13 12:05:43 <_genuser_> Mavrik: will eventually. right now the computer is unresponsive trying to install megaloads of the sdk, sdk tool, android studio, google cloud, google earth, google world, google cache, all of google. Dec 13 12:05:47 <_genuser_> lol Dec 13 12:06:21 Time to invest in that SSD and 16G+ of ram Dec 13 12:06:27 <_genuser_> and this disk is pretty old. it's basically teh bottleneck. Dec 13 12:06:54 8gb are enough Dec 13 12:07:05 <_genuser_> yep, ssd with 16G ram would be super cool. I"m at 8G now and the mobo can handle upto 16G, so maybe Christmas sales, I'll snap up a 8G DDR2 modules Dec 13 12:08:04 <_genuser_> heh, 8 is enough if you do'nt have chrome (100+ tabs), ninjatrader, RDPs, putty, eclipse (now android studio). Dec 13 12:08:20 hrmf, DDR2? :) Dec 13 12:08:25 maybe replace mobo and CPU as well :) Dec 13 12:08:51 <_genuser_> cpu is fairly recent. AMD 6300 or something. 6core 3GHz. Dec 13 12:09:05 <_genuser_> mobo is pretty new too. I know ddr3 is all teh rage now. probably ddr4? Dec 13 12:09:17 <_genuser_> HD is 10yrs old tho. Dec 13 12:09:26 <_genuser_> a spinner. SSD would be nice. Dec 13 12:11:18 <_genuser_> and now to sign up on oracle/java site yet again. to download the 64-bit jre Dec 13 12:12:12 <_genuser_> the sucky thing is: my project is working fine in eclipse. but as I upgrade, I'll hose the 32-bit jre (breaking eclipse) and try to migrate my project to AS. Dec 13 12:12:23 <_genuser_> if that doesn't work or takes long, I'll be out of a working env. while I fix it. Dec 13 12:15:18 <_genuser_> bought sun, but still haven't updated the 1999 java website, larry? Dec 13 12:17:32 he was hoping to kill all the products and still rake in money. didn't work that way. Dec 13 12:23:27 <_genuser_> he was trying to do a lot of things - mostly just hate microsoft. Dec 13 12:24:32 _genuser_: it'll take an hour Dec 13 12:24:46 <_genuser_> lasserix_: java install? Dec 13 12:24:52 migrating to as Dec 13 12:25:12 <_genuser_> it's like, it stays at 0 for 10 minutes, and then bam! 100%, then next step the same thing. Dec 13 12:25:15 <_genuser_> why have a progress bar? Dec 13 12:25:30 just bad interpolater Dec 13 12:25:42 <_genuser_> I thought it was more like bad coders. Dec 13 12:26:20 i'm not too pleased with AS so far. Dec 13 12:26:56 i already had sdk 24.0.1 installed. but it's, of course, now installing 22.6.2. Dec 13 12:27:02 hello Dec 13 12:27:16 you'd think there would be a way to avoid doing all this work over. Dec 13 12:27:41 someone has allready tried android L with encryption and twrp? Dec 13 12:29:17 <_genuser_> yeah, one of the things that sucks about using tons of third party tools is: everyone has their own philosophy about how their product should be used. Dec 13 12:29:28 <_genuser_> it's a conglomeration of tons of egos. Dec 13 12:30:48 <_genuser_> great, JAVA_HOME must be a system var and not a user var. Dec 13 12:32:16 <_genuser_> woo, running finally. now to import my project from eclipse. Dec 13 12:35:45 _genuser_: did you get a message that it couldn't run adb? Dec 13 12:36:13 <_genuser_> lewellyn: well first run it just hung up. killed it via taskmgr, now reopening. Dec 13 12:36:32 Unable to run 'adb': Cannot run program "/home/tortoise/Android/Sdk/platform-tools/adb": error=2, No such file or directory. Dec 13 12:36:35 Starting ADB server failed (code -1). Dec 13 12:36:36 <_genuser_> dumbest thing: open existing project doesn't default to the androidprojects work folder. Dec 13 12:37:40 so i'm not entirely sure what's up. and i think that nearly-0500 is not the time to be dealing with wtf android studio's doing weirdly. Dec 13 12:38:09 genuser you should go have a beer and chill a little, you are kinda whining like a child Dec 13 12:38:44 it takes a little work but you'll be done and back to coding soon Dec 13 12:39:06 <_genuser_> lasserix_: sorry. noted. guess I got a little carried away there. Dec 13 12:39:26 <_genuser_> it's installed. I'm now just trying to figure out the UI, should be coding away soon. :) Dec 13 12:39:34 no worries but i find that pontificating on what frustrates you can make you more frustrated Dec 13 12:39:49 <_genuser_> nice little reminder now and then helps. like yours did. :) Dec 13 12:39:52 i recomend installing a color them Dec 13 12:40:08 hi all Dec 13 12:40:09 http://www.ideacolorthemes.org/home/ Dec 13 12:40:15 <_genuser_> woo, it supports mercurial!! Dec 13 12:40:17 a lot of people like uhh called like night Dec 13 12:40:54 vibrant dark Dec 13 12:41:03 <_genuser_> yeah a nice color theme can help spruce thigns up., let me check out the themes. Dec 13 12:41:34 also goto file>settings Dec 13 12:41:48 IDE Settings-Editor-Auto Import Dec 13 12:41:57 check Add unambigious imports on the fly Dec 13 12:42:16 <_genuser_> hehe, after a few black backgrounds, they all look the same. Dec 13 12:42:36 i started off with vibrant dark and spent a day or two tweakign till i liked it Dec 13 12:42:59 <_genuser_> sweet batman, the settings dialog is full of settings!! Dec 13 12:43:05 yeah Dec 13 12:43:16 probably turn on add unambigious imports Dec 13 12:43:26 also shortcuts you'll want to know Dec 13 12:43:39 <_genuser_> heh, still tryign to find IDE settings, lol. Dec 13 12:43:41 crtl q shows java doc crtl p shows parameter listing Dec 13 12:43:55 crtl e shows recent files Dec 13 12:44:05 crtl o opens implement/override dialog Dec 13 12:45:13 <_genuser_> file->settings, don't see IDE SEttings after that. Dec 13 12:46:33 its halfway down in the left hand column Dec 13 12:46:51 wait let me see if AS is different Dec 13 12:47:17 yeah halfway down Dec 13 12:47:21 in left hand column Dec 13 12:47:27 seperates the list into two parts Dec 13 12:47:54 <_genuser_> oh, I see it. IDE SEttings it the header. I moused over each setting name 3 times already thinking I must be missing it. :) Dec 13 12:48:36 <_genuser_> ok, Add unambiguous imports on the fly checked!! Dec 13 12:49:50 <_genuser_> thanks for the pointers. I'm gonna install a theme and then next import a project in from eclipse. Dec 13 12:51:07 <_genuser_> hmm, seems like similar footprint as eclipse's in terms of resource utilization. Dec 13 12:51:14 <_genuser_> so my existing setup should remain unaffected. Dec 13 12:56:08 you can also check out https://plugins.jetbrains.com/?androidstudio Dec 13 12:57:01 for instance https://plugins.jetbrains.com/plugin/7275?pr=androidstudio Dec 13 12:57:28 <_genuser_> do you find that it has a slightly heavier footprint than eclipse? I'm finding I need to close some of my 100+ chrome tabs or it will be a little unresponsive. Dec 13 12:57:56 <_genuser_> or is it just the first time initialization stuff where it's just getting stuff installed/initialized. Dec 13 13:00:04 hmm interesting http://www.gistboxapp.com/ Dec 13 13:00:06 yeah Dec 13 13:00:10 it is a little slower Dec 13 13:00:23 besides you should never have that many tabs open Dec 13 13:01:15 <_genuser_> yeah, after typing my last message my computer went completly unresponsive. Dec 13 13:01:50 <_genuser_> teh 100+ tabs, I'm fixing that issue. I have a chrome extension that I coded up, so I can mark sessions as tracked and then kill them and save them. Dec 13 13:02:17 <_genuser_> so they're ghosted. later I can un-ghost those sessions. I just need to start using it more. :) Dec 13 13:02:39 <_genuser_> I see my hd light blinking like mad, so I think it's just AS installing stuff. once it's all done, it should be fine. Dec 13 13:12:57 what do you use to code chrome extensions? Dec 13 13:14:07 <_genuser_> notepad. Dec 13 13:14:55 <_genuser_> it was a little cumbersome having no intellisense, but it was alright. the debugger would give the line number with any syntax errors or uncaught exceptions. Dec 13 13:26:48 cool https://github.com/inmite/android-selector-chapek Dec 13 13:28:51 <_genuser_> so these themes are all .jar files, eh? Dec 13 13:32:47 yeah Dec 13 13:32:52 that's how they write the plugins Dec 13 13:33:07 but if you goto settings->pluggins->browse repos you can search / install from there Dec 13 13:33:12 damn this looks kind of amazing http://androidannotations.org/ Dec 13 13:33:33 <_genuser_> oh, I see. I just thought I'd double check that these are .jar files instead of installing random .jar files, lol. Dec 13 13:36:32 <_genuser_> sounds like a good idea, cutting down on coding amount. Dec 13 13:37:38 well Dec 13 13:37:46 there is butterknife which injects views, Dec 13 13:37:56 <_genuser_> heh, I were to do this again, I'll kill all processes on teh machine and let android studio and SDK mgr have unhindered access to disk writes. Dec 13 13:37:59 android annotations which injects / modifies views and other parts of framework Dec 13 13:38:13 and then butterkinfe + dagger which allows you to restructure your code entirely Dec 13 13:38:26 butterknife + dagger would be a nice to know really, well Dec 13 13:38:35 <_genuser_> I kinda like the frameworks for what they offer and kinda dislike them for how they remove you from the nitty gritty. Dec 13 13:38:37 heh Dec 13 13:38:52 <_genuser_> if something is amiss, you won't know how to fix it. someone else knows how to fix it and you're using their SDK. Dec 13 13:39:10 genuser i agree a little, but dagger for instance, is not so much removing you as enabling you to write streamlined code Dec 13 13:39:24 <_genuser_> but then again, if you didn't use existing pieces to build bigger/better items, we'd all be building our own OS's before using our hardware, etc etc. Dec 13 13:39:37 except for android, something like dagger is really useful since for instance it's a pain getting context all over the place Dec 13 13:39:42 genuser yeah Dec 13 13:40:01 <_genuser_> yeah, kinda like jquery, if you did enough javascript, jquery isn't really crippling you in any way. Dec 13 13:40:01 plus i find it depends on what you are making, a simple stupid app for running a prototype? why not Dec 13 13:40:29 <_genuser_> yeah, I really advocated highly for vb6 and used it primarily as my RAD dev tool for my work. Dec 13 13:40:41 <_genuser_> it was so much faster than VC++ guys, they would take days just to do UI. Dec 13 13:41:18 oh i wish markdown would die Dec 13 13:42:39 <_genuser_> markdown? Dec 13 13:42:42 genuser this would be a good one to have for you : https://plugins.jetbrains.com/plugin/4455?pr=androidstudio Dec 13 13:42:57 genuser markdown is a simple mark-up wrapper to generate html from text files Dec 13 13:43:05 *from simple text Dec 13 13:43:12 <_genuser_> oh, didn't know about markdown. Dec 13 13:43:41 <_genuser_> checking oout that plugin. Dec 13 13:43:51 <_genuser_> I have a feeling I shoudl restart my machine after all this installation. Dec 13 13:49:52 wow codeglance is badass Dec 13 13:50:29 genuser you started showing up in this chatroom recently, right? Dec 13 13:51:20 Anyone try Android Studio 1.0 yet? Dec 13 13:52:06 <_genuser_> lasserix_: recently again. used to hang out here a bit when I was starting android Dec 13 13:52:12 <_genuser_> rebooting brb Dec 13 13:55:30 helo, why andorid studio 1 not show all resource folder (drawable-xhdpi, ...) I can see only drawable Dec 13 13:55:36 mediastudent,i am try to get use to it. Dec 13 13:55:47 slani new project? Dec 13 13:55:58 mediastudent: yeah sure Dec 13 13:56:34 lasserix_: no Dec 13 13:56:56 if its not there you can just create it Dec 13 13:57:31 Because you're using the Android project view Dec 13 14:02:16 SimonVT: are you working on an neat projects lately? Dec 13 14:02:38 <_genuser_> phew, that was a long reboot. Dec 13 14:03:49 lasserix_: I create it but it is not showen http://www.tiikoni.com/tis/view/?id=fbd8324 Dec 13 14:05:04 slani: like SimonVT said you are in Android project view Dec 13 14:05:17 go to the top of that window and click where it says Android and select Project Dec 13 14:05:30 you'll see the folder, android project view reorganizes your stuff Dec 13 14:05:41 "reorganizes the presentation" of your stuff Dec 13 14:06:25 lasserix_: thanks Dec 13 14:06:27 SimonVT: thanks Dec 13 14:40:13 wow codeglance is one bad bit plugin Dec 13 14:53:06 anyone know of an android app that will tell bootloader info or an adb command to retrieve such info? thx Dec 13 15:01:02 <_genuser_> hmmm, I can see how it creates a mercurial repo. but doesn't have an "add files to repo" option in any of the menus. Dec 13 15:01:29 <_genuser_> sure I don't mind using the command line, which is what I use with eclipse, but it would be nice to find the options in UI too. Dec 13 15:01:52 <_genuser_> imported one of my older projects into AS, trying to see if I can build it. Dec 13 15:06:12 <_genuser_> lasserix: you said we can install themes from within the UI? Dec 13 15:06:28 _genuser_, don;t know about hg, but I find AS automagically does git-like stuff for me. Dec 13 15:07:34 <_genuser_> FlipBill: mercurial is git-simplified. I know git fans might be offended at that comparison. but it's the easiest comparison. Dec 13 15:07:58 _genuser_, not offened, just suggesting that what u want might be there. Dec 13 15:08:00 <_genuser_> FlipBill: it created a repo for me, but hasn't added the files to it. I"m gonna just keep tinkering with it. Dec 13 15:08:27 _genuser_, When I create a file thru AS, it asks me immediately if I want to add it to git. Dec 13 15:08:35 <_genuser_> I mean it's only my first day with AS. will take a while to get used to all the .gradle files alone. Dec 13 15:08:37 Or I can decline and add later. Dec 13 15:09:02 I'm kiind of a dinosaur - dragged myself to AS from CLI recently Dec 13 15:09:06 <_genuser_> FlipBill: hmmm, this is an imported project from eclipse. Then, I added the mercurial repo. because it didn't import my repo. Dec 13 15:09:30 _genuser_, yeah, so maybe it needs to be told via setting that hg is in use. Dec 13 15:09:43 <_genuser_> FlipBill: well, yeah, I am used to cli mercurial commands. but wouldn't mind learnign the UI stuff too. Dec 13 15:10:02 I know that I did git init outside of AS, but don't remember what else I did. Dec 13 15:10:15 I vaguely recall telling it to use git later. Dec 13 15:10:23 <_genuser_> yeah, it's got mercurial menus and all that. now I'll tinker with it a bit more. so it definitely knows that mercurial is the repo of choice. Dec 13 15:10:54 I need to add contacts to my phonebook. Is there any way I can do that without intents? I feel that starting an activity for each of hundreds of contacts seem a little excessive. Dec 13 15:10:58 <_genuser_> AS is a bit of a resource hog, but once it gets going, I'm liking it. Dec 13 15:11:27 <_genuser_> I only wish google had written one from scratch. intelliJ was probably not the best choice to use as a base. Dec 13 15:11:33 _genuser_, agree. I want to get more familiar with gradle because I don't like being dependent on the GUI IDE. Dec 13 15:11:38 <_genuser_> google certainly has the devs to write one from scratch. Dec 13 15:11:57 <_genuser_> but I thought eclipse was a resource hog and I got used to it even thinking it was light weight lately. Dec 13 15:12:14 genuser there's a whole git toolbar Dec 13 15:12:24 maybe even a view, i duno i just go all my git via command line since its faster and simpler Dec 13 15:12:32 but yeah you can goto that link i posted Dec 13 15:12:36 idea themes.org or something Dec 13 15:12:42 Ironically, I was forced to use AS because I was too dumb (lazy) to get my project to build with new tools after taking it off the shelf from a two year break Dec 13 15:12:43 and download color schemes for the UI Dec 13 15:12:56 it's a jar file and then you go file->import settings Dec 13 15:13:10 <_genuser_> I see an "Add to VCS" option which is grayed out, heh. Dec 13 15:13:36 lasserix, I tend to git from CLI too, but it's just force of habit. I like maintaining habots that only require lightweight tools... Dec 13 15:13:51 as _genuser_ observed - Eclipse/AS are resource hogs. Dec 13 15:14:00 <_genuser_> lasserix: yeah, I downloaded a few. I figured if I can even search from within, that would be even cooler. you know preview and install if I like it. Dec 13 15:14:15 think you have to enable VCS integration Dec 13 15:14:28 genuser yeah you can Dec 13 15:14:34 well you can search and see a screenshot Dec 13 15:14:49 ultimatly you'll want to tweak it you can do so from going into project settings Dec 13 15:16:03 under IDE Settings -> Editor -> Colors and Fonts -> * for which type you want to Dec 13 15:16:08 if u go to File>Setting>Viersion Control>Mercurial, there is a Test button for hg path Dec 13 15:16:35 got 6 moniters going :D Dec 13 15:16:52 and I thought I was kewl with 5 monitors. Dec 13 15:16:59 <_genuser_> 6 monitors? nice! Dec 13 15:17:07 <_genuser_> I just have the two. Dec 13 15:17:07 three machines with synergy here Dec 13 15:17:15 well i am kinda cheating i guess two are currently dedicated to live ISS cams Dec 13 15:17:16 2+2+1 Dec 13 15:17:36 I watch my porch on one cam Dec 13 15:17:36 hehe i have laptop + desktop, easier to use than one computer for all the moniters Dec 13 15:17:50 <_genuser_> what are you using to power the 6 monitors? multiple graphics cards I assume, but specifics? Dec 13 15:17:54 get dangerous types showing up your doors? Dec 13 15:17:56 I'm using one laptop and 2 desk tops Dec 13 15:18:06 genuser 2 off the laptop via USB device Dec 13 15:18:13 lasserix, nah, but I know when to ignore the doorbell Dec 13 15:18:22 my desktop has nice graphics card Dec 13 15:18:32 <_genuser_> lasserix: I see. I have read people run dual monitor setup successfully off of a surface pro 3 Dec 13 15:18:55 Straight linux here Dec 13 15:19:00 <_genuser_> so ultimately, I'd like to setup my tablet to do dual monitors too. for now, just my desktop. Dec 13 15:19:12 <_genuser_> what's your preferred distro FlipBill Dec 13 15:19:24 at work, when i brought in the USB dual hdmi dual output, next week coworker got one, then two weeks after that another coworker, then a two months later the boss got everyone one ;p Dec 13 15:19:35 with 5 mons wrapped around my phase, I frequently lose my cursor. Very annoying to hunt for it. Dec 13 15:20:01 hehe its fun to watch people get frustrated coming ov er and using the computer for the first, "wheres the *** cursor!?!" Dec 13 15:20:03 lasserix, dual hdmi via USB? Never seen that. Dec 13 15:20:08 <_genuser_> heh, I needed to restart AS and now it's seeing all those files as "needing to be added". Dec 13 15:20:26 <_genuser_> I notice AS is like windows. It needs a restart quite often, lol. Dec 13 15:20:34 _genuser_, I love/hate tools that are marter then me Dec 13 15:20:53 <_genuser_> FlipBill: yeah, I lose the cursor on my dual monitors too. I right click to see where the menu pops up. Dec 13 15:20:53 like spell chekkers Dec 13 15:21:07 http://www.hisdigital.com/us/product2-745.shtml Dec 13 15:21:19 that's a good technique. Dec 13 15:21:44 <_genuser_> yeah, sometimes I move it and move it and don't see anything. so then I just start right-clicking. Dec 13 15:22:05 right click might cause unpleasant surprise, depending on which machine the cursor is on Dec 13 15:22:10 FlipBill i actually want to build a brief that folds out two moniters so you can set your laptop in the middle Dec 13 15:22:22 "*briefcase" Dec 13 15:22:40 lasserix, I've seen that somewhere, but I think it was a gag Dec 13 15:22:48 <_genuser_> FlipBill: alternatively, scroll mouse to left enough to where you know it's on the left edge of the left most monitor. Dec 13 15:22:52 but I like the idea anyway. Dec 13 15:23:04 ahh yeah no. i want real deal so i can do full android dev at a cafe ;p Dec 13 15:23:04 How did we do this in the days of punch cards? Dec 13 15:24:16 _genuser_, left edge could be far for me. Sometimes I bump the corner of middle KDE monitor and get snagged with multiple desktop pop-ups. Dec 13 15:24:37 <_genuser_> so there's _TONS_ of gradle files. do you guys include these in your repos? Or put them in ignore files? Dec 13 15:25:08 <_genuser_> FlipBill: ah, kde. I remember the day when I went full linux on gentoo using KDE4 experimental. Dec 13 15:25:13 <_genuser_> *days Dec 13 15:25:39 you need most of the gradle files Dec 13 15:25:46 look online for as gitignore template Dec 13 15:25:49 _genuser_, I tend to put anything human readable/editable in the repo, except stuff that appears to be frequently changed/generated automatically. Dec 13 15:26:04 err not most of , but some Dec 13 15:27:06 <_genuser_> I guess with eclipse project I was familiar with the folder structure and knew which files to keep for a complete project. Dec 13 15:27:18 By registering with VCS, I hope to divine what AS is doing for me, so I can get same gradle insight. Dec 13 15:27:27 <_genuser_> with AS, I need to read the docs and understand the project layout and then get a gitignore template and customize it for mercurial Dec 13 15:27:55 Sorry I can't be more helpful. I'm leaning on AS more than using it. Dec 13 15:27:56 <_genuser_> well, there should be .hgignore for AS out there by now too. Dec 13 15:28:18 _genuser_, you would think, but the cool kidz are using git (-; Dec 13 15:28:26 <_genuser_> eh, no worries at all. I'm just enjoyign the conversation. I'm going to read the AS migration docs now. Dec 13 15:28:56 <_genuser_> FlipBill: oh, there's a story I tell about trying to get my co-workers to use mercurial. Dec 13 15:29:20 <_genuser_> one instant complaint to the boss, nag from everyone, immediate demand for a training session, it was hilarious. Dec 13 15:29:24 I'm an old sccs/rcs/cvs user. I skipped bzr/hg and friends and jumped to git. Dec 13 15:29:54 I even wrote my own VCS and auto build environment back in the day. Dec 13 15:29:59 <_genuser_> I decided to move away from visual source safe because it was being too slow, and I thought a distributed system would work fine. Dec 13 15:30:26 <_genuser_> so I moved to git. read the docs. heard a mention of mercurial, moved to it and been happy with it. Dec 13 15:30:53 <_genuser_> nice, writing a vcs and auto build environment sounds like a lot of fun. Dec 13 15:30:58 I find git bewildering quite often. Dec 13 15:31:08 But there is not denying its flexibility Dec 13 15:31:29 People I know who use hg swear by it. Dec 13 15:32:18 _genuser_, back when I had more brain cells I did stuff like that. It was for a Stratus/VOS system Dec 13 15:32:24 In PL/I Dec 13 15:33:03 but it was crude. Kept the projects organized, though. Dec 13 15:38:06 <_genuser_> FlipBill: I was actually pretty happy with visual source safe. it was just that I didn't have time to write ignore files Dec 13 15:38:21 <_genuser_> so I'd drop the entire folder onto the explorer client. And it would checking everythign including exe files. Dec 13 15:38:41 <_genuser_> then over VPN, it literally take 30 minutes to checkin a project. So I figured I needed to look for something else. Dec 13 15:39:08 <_genuser_> moved the base project to mercurial, found server space, asked network admin to back that space to nightly backups and told the team. Dec 13 15:39:36 <_genuser_> they went nuts crying about it. complained. my boss told me to back off because the sr. engineers can't be forced to learn a new tool. Dec 13 15:39:49 <_genuser_> they're there just to provide for their families not to be lectured about new geeky crap. Dec 13 15:51:34 android:textDirection not work always, why? Dec 13 15:51:49 android:textDirection="firstStrong" Dec 13 15:52:50 I want to align ltr text to left, and rtl to right Dec 13 15:56:10 yoavst, gravity to start Dec 13 15:56:25 _genuser_, old dogs get cranky. Woof Dec 13 15:57:03 _genuser_, Actually I had a similar experience trying to get a team half my age to use a VCS. Dec 13 15:57:19 just a difference of opinion. Geeks don't work together well naturally. It's work. Dec 13 15:57:45 So I shouldn't generalize. But I do. Dec 13 15:57:51 pfn: doesn't work :/ Dec 13 15:58:58 text is dynamic, It doesn't belong to the locale Dec 13 15:59:38 looks like match_parent width work :/ Dec 13 15:59:49 yoavst: instead of using left and right, use start and end Dec 13 16:01:04 <_genuser_> FlipBill: in my case, I'm the lead architect. I maintain the baseline product. so if I decide to move it to mercurial or something, that's where it will be. Dec 13 16:01:23 <_genuser_> if a dev wants to check out a copy and work on it for a customer, they'll have ot learn to use mercurial. Dec 13 16:01:56 _genuser_, It's good to be king, but that doesn't make the job any easier. Dec 13 16:01:56 <_genuser_> in the end my boss asked me to just give them a 1 hr turotial, during which they were mindlessly copyign commands, instead of just reading the docs to see what it really does. Dec 13 16:02:33 <_genuser_> FlipBill: honestly, I moved to mercurial because I can check in my code 20 times a day (after each bugfix, or enhancement) and not have to send it over the network. Dec 13 16:02:41 _genuser_, I feel for them. You get your head in one thing, and everything else becomes a distraction. Dec 13 16:02:43 <_genuser_> it's all local. and end of day, I can do hg push and walk away. Dec 13 16:03:26 _genuser_, git provides that too - distributed is practically a tag line. Dec 13 16:03:33 <_genuser_> my co-workers, they work on $250-500K projects and never even check the code in once on some projects. Dec 13 16:03:38 There is a saying for git: "commits are cheap" Dec 13 16:03:54 <_genuser_> yeah, that's why I initialy looked at git. but then settled on mercurial 'coz it was easier to use. Dec 13 16:04:00 _genuser_, sometimes management induces that mindset... Dec 13 16:04:22 <_genuser_> yeah, when my boss said don't bug them, because they're only here to make a buck, there's nothing you can say to that. Dec 13 16:04:25 it's hard to appreciate that good work takes time, and that... Dec 13 16:04:33 you can take the time to do it right, or Dec 13 16:04:40 take the time to do it over. Dec 13 16:04:44 <_genuser_> sr. engineers can't take 2hrs to learn a simple tool, and mgmt says that's ok, then hey work without a VCS. Dec 13 16:05:13 <_genuser_> if you laptop crashes 3 months into a project, maybe you'll come back and ask me which VCS makes a good option.... Dec 13 16:05:28 so you were doing them a favor with mercurial Dec 13 16:05:57 <_genuser_> I moved the baseline to mercurial 'coz I needed an easy to use tool. and I thought they'd appreciate being able to check in multiple times a day also. Dec 13 16:06:04 Some thing must be learned the hard way. But sertainly anyone iwth experience has backups, if not a VCS Dec 13 16:06:15 <_genuser_> due to slow speed over VPN, pretty much everyone had stopped using VCS Dec 13 16:06:43 <_genuser_> yeah, they sometimes drop their entire folders onto all the server whereever they find space. Dec 13 16:06:53 <_genuser_> all of our server are run over by idiots' backups. Dec 13 16:07:05 <_genuser_> some of them don't even have enough space anymore to download the virus defs (no joke). Dec 13 16:07:08 maybe the best approach is to tell them what instead of how - i.e. be goal oriented instead of tool oriented. Dec 13 16:07:14 It's a human thing. Dec 13 16:07:38 <_genuser_> they're all sr. devs, it's not like they don't know. it's just that they're lazy. Dec 13 16:07:53 So specify certain accountability/oversight requirements, then offer VCS to ease the pain Dec 13 16:07:54 <_genuser_> we all used to use VCS when we worked from the office. but now we work from home. Dec 13 16:08:07 <_genuser_> over VPN, the connectivity is much slower. so they basically stopped using. Dec 13 16:08:14 One would think it would be an easy sell. Dec 13 16:08:38 <_genuser_> accountability is the problem. my boss wants me to be the lead architect because he doesn't want the trouble to manage the product. Dec 13 16:09:02 _genuser_, nah - he doesn't want the trouble to manage to people Dec 13 16:09:04 <_genuser_> he doesn't want me to tell anyone anything that they don't like. He himself doesn't have the desire to upset people either. Dec 13 16:09:21 yup Dec 13 16:09:44 <_genuser_> so it took me a while but I realized, that I'm supposed to manage the product, provide leadership in terms of helping others, problem solving, but leave personnel problems to him. Dec 13 16:09:47 It's handy to have a villain Dec 13 16:10:15 _genuser_: you guys should hire a manager just to do all the firings Dec 13 16:10:15 <_genuser_> which he will handle according to his own moods/feelings. Dec 13 16:10:31 <_genuser_> shmooz: we don't have people to fire. all of our people have "people skillz"!! Dec 13 16:10:46 shmooz, You looking for a job? (-: Dec 13 16:11:13 yes, I want a job where I get to say 'YOU'RE FIRED!' like Donald Trump Dec 13 16:11:18 I don't think Donald Trump is looking Dec 13 16:11:46 <_genuser_> heh, trump started sayign it too much. even when he new he was firing a good candidate. it made for good ratings. Dec 13 16:12:08 I get to say it all the time. But I've got nobody left to fire. Dec 13 16:12:25 You run out of underlings. Dec 13 16:12:54 <_genuser_> right now my boss is trying to increase his direct reports. his boss is doing the same. Dec 13 16:13:11 <_genuser_> if your org chart goes ... malnourished like supermodels, they fire you. Dec 13 16:13:15 So they are flattening the hierarchy? Dec 13 16:13:22 <_genuser_> so you need a thick cow of an org chart under you to stay relevant. Dec 13 16:13:43 haha - Dilbertesque Dec 13 16:14:03 <_genuser_> oh no, flattening would me peopel would have to work more. they just keep moving people from other groups under their own orgs. Dec 13 16:14:18 Oh, shuffling Dec 13 16:14:20 <_genuser_> plus all the contractors for new projects. Dec 13 16:14:26 <_genuser_> we have a re-org every six months basically. Dec 13 16:15:02 <_genuser_> it keeps it so that anybody asking for a raise or promotion is told, "just sit still, things are very flaky right now, we're all just lucky to even have the jobs" Dec 13 16:15:45 Raises come from leaving. Dec 13 16:16:24 <_genuser_> we used to have a group of 100. it's down to 20'ish people. and few contractors. Dec 13 16:16:43 <_genuser_> they never hired back for positions they trimmed during "recessions" Dec 13 16:17:32 <_genuser_> my boss was telling me that I can't switch to being a contractor, they pay them too much more. so I'd have to leave for 6 mo. then he could bring me in as a contractor. Dec 13 16:18:39 _genuser_, Sounds like the thing to do is contract to somebody else. Dec 13 16:20:05 <_genuser_> FlipBill: yeah, he's been encouraging me to do the same. Dec 13 16:20:21 <_genuser_> I think I should but then I get comfortable with things the way they are. Dec 13 16:20:40 Inertia is a powerful force Dec 13 16:22:27 <_genuser_> heh, true that. Dec 13 16:25:26 is there any way to intercept touch event on an activity ? (even if clicked on a view) Dec 13 16:25:46 blusky, parent views can intercept Dec 13 16:25:58 how ? Dec 13 16:26:14 onInterceptTouchEvent or so Dec 13 16:26:41 but if I but an "setOnInterceptTouch", if (for eg.) a button on the view is clicked, it's not triggered on parent view Dec 13 16:27:17 blusky: are you eddi by chance Dec 13 16:27:24 no ? Dec 13 16:27:31 :< Dec 13 16:31:09 fragmentTransaction.add(R.id.fragment_container, fragment); What is the fragment_container here? Dec 13 16:32:30 Is it the name id of the fragment from the layout? Dec 13 16:39:22 <_genuser_> FlipBill: alright, I'm out. nice talking to you. :) Dec 13 16:39:38 _genuser_, same here - seeya Dec 13 16:42:02 donniezazen yes Dec 13 16:47:26 donniezazen: its the container used to place fragment in. usually like a framelayout Dec 13 16:50:27 donniezazen: what whatitis- said. It's the view which will be replaced (or hold - i forget tbh) the fragment you are creating. If you're putting a fragment directly in your layout, then you're not doing an add transaction, it's already there Dec 13 16:52:40 ^ Dec 13 17:53:45 whatitis-: dragorn Fragment's layout must be names like android:id="@+id/container". Basically either the fragment layout or the in another layout. Dec 13 17:54:04 sorry i stepped out for a sec Dec 13 17:59:15 Hi all, I have a question and having a hard time finding an answer. I have an expandable list view in my test app. I have the child view play an audio file when clicked, but right now it plays the same audio file no matter which child is clicked. How can I get the position of the child item that's clicked, and have corresponding audio? Dec 13 18:00:13 I can post on stackoverflow if someone wants to help, thanks ! Dec 13 18:09:54 liuwenhao: the position would be in the getView() of the adapter for that listView Dec 13 18:53:14 i want to send some data over a socket in an alarm. can i ensure that the data is sent right away without a wake lock? Dec 13 18:58:30 in an alarm? Dec 13 19:04:20 well, currently i do it using a static field, putting a message into a queue Dec 13 19:04:34 but if the device sleeps right away, the message might get lost Dec 13 19:04:46 Shmooz, I am having a bit of trouble understanding. Perhaps you can look at my code and tell me what I am doing wrong. I only want to get the child position of the one that is being clicked https://bpaste.net/show/3737b7962ff3 Dec 13 19:05:08 Right now no matter which is clicked, it plays the same audio file. Dec 13 19:06:03 squirrel, without wakelock nothing will keep the CPU or network running. Dec 13 19:08:03 sending data over netwok seems like something that is commonly done in an alarm Dec 13 19:08:44 surely i don't need to require a wake lock for a primitive pinging mechanism.. Dec 13 19:09:39 squirrel, why do you think your functionality is so special that would require powering up network hardware for every alarm out there? O.o Dec 13 19:09:53 no OF COURSE android does not power up network hardware for each alarm without you requesting that Dec 13 19:10:14 if you need network, tell that to Android by requesting a network wakelock Dec 13 19:10:27 it powers it up on every message anyway Dec 13 19:10:45 in this sence, yes, my app is special enough, just like every other up Dec 13 19:11:30 besides, it's the network hardware that wakes up the cpu, so i don't need to power what's already working Dec 13 19:14:30 squirrel, I don't understand what are you trying to say or why are you even arguing :/ Dec 13 19:14:48 If you don't explicitly say to Android that you need CPU and Network awake, it will not keep it that way for your alarm Dec 13 19:15:00 your socket will work... or not depending on race conditions and timing. Dec 13 19:15:10 if you need it online, make it explicit to the OS Dec 13 19:15:11 Mavrik: phone is powering up on every received tcp message. Dec 13 19:15:50 network is waking the cpu, not the other way around Dec 13 19:16:01 as far as i understand. Dec 13 19:18:22 hey guys i'm just starting android studio and it wont launch on yosemite anyone experienced this? Dec 13 19:18:39 hert, did you install java? :P Dec 13 19:18:54 Yosemite doesn't bundle Java launcher anymore Dec 13 19:18:55 yep java 8 update 25 Dec 13 19:19:05 hert, it wants and expects to use Java 6 from Apple Dec 13 19:19:08 not Oracle one. Dec 13 19:19:27 hert, http://support.apple.com/kb/DL1572 Dec 13 19:19:39 (Oracle one requires changing config files and will make all fonts look like ass) Dec 13 19:19:41 in my java control panel i see 8 but in java -version it show have 1.6.05 Dec 13 19:23:41 cheers Mavrik Dec 13 19:43:45 Hello Dec 13 19:45:22 hi Dec 13 19:45:35 does anyone have any tips for releasing your first app on play store? Dec 13 19:47:20 I am in need of a hello world example using library. Dec 13 19:48:16 ChrisUK: There's probably nothing more than you've already found. Dec 13 19:48:57 If you use an IDE, when you first create an Android project, the project will basically be a version of "Hello World" Dec 13 19:49:02 ChrisUK: there is a checklist on d.android.com Dec 13 19:49:30 TacticalJoke: reddit? Dec 13 19:49:52 Sorry? Dec 13 19:50:15 are you still thinking of the reddit app? Dec 13 19:50:48 Yeah, doing it right now. Dec 13 19:51:01 interested Dec 13 19:51:42 Working on the display of nested-comments right now. Dec 13 19:51:46 Want it to be really easy to read. Dec 13 19:51:47 An example would be to take that project and drop it in a lib folder and call it through a new project. How does one initiate that Dec 13 19:51:50 Without ugliness. Dec 13 19:51:53 TacticalJoke: https://www.youtube.com/watch?v=gZhMHtu0Whw Dec 13 19:55:05 Are library's like include for php and link CSS? Dec 13 19:55:07 I'll have to check that out in a bit. Can't open Google Chrome right now. :) Dec 13 19:55:27 I have like 100 tabs open. Need to closed loads as it destroys my computer's happiness. Dec 13 19:55:31 close* Dec 13 19:57:59 yes Dec 13 19:58:05 Is Udacity's Android class the best place to get started learning? Dec 13 19:58:08 TacticalJoke: each tab is a process Dec 13 19:59:13 Yeah. Dec 13 20:01:04 I could do with assistance with regard to artwork. :D Dec 13 20:01:15 that is NOT my area Dec 13 20:01:15 I suck at art. Dec 13 20:01:23 hear that Dec 13 20:01:46 Thanks, thepoosh. I'll let you know if I do. :) Dec 13 20:01:51 Not sure yet. Dec 13 20:01:52 np Dec 13 20:02:03 let me write a module for you! Dec 13 20:02:39 It's hard to say so far (so early in the project), but I'll ping you if I think of something. Dec 13 20:04:51 Hi, how can I get Lollipop's seekbar in JellyBean+ Dec 13 20:05:01 Its not in AppCompat Dec 13 20:06:12 I'm trying this example here, for adding contacts. It says my contact was added fine, but it's not there. No errors, nothing in logcat. Any ideas? http://www.pocketmagic.net/2011/03/android-contacts-add-a-new-contact-using-contentprovider/ Dec 13 20:09:03 ok thanks alot Dec 13 20:09:37 Hi all, I am trying to get a switch statement to work with onChildClick but having a problem. I posted on stackoverflow if anyone wants to take a look and tell me what I did wrong http://stackoverflow.com/questions/27462999/playing-audio-with-onchildclick-in-an-expandable-listview Dec 13 20:10:00 No matter which child item I click, it always plays the audio from case 0 Dec 13 20:17:39 Gotta love documentation for View.onDraw. Huge method, right? Used in so many scenarios and for so many reasons. Dec 13 20:17:40 "Implement this to do your drawing." Dec 13 20:18:48 Got disconnected, oops, so anyone knows how I can get Lollipop's seekbar in JellyBean+? Dec 13 20:18:52 what more do you need Dec 13 20:19:32 Ashiren: Details about when it's called, when it's not called, good things to do in an onDraw override, bad things to do, etc. Dec 13 20:19:37 More than one sentence, ideally. Dec 13 20:19:54 If this were MSDN, you'd have at least five paragraphs of useful info. Dec 13 20:19:58 Plus examples. Dec 13 20:20:12 There'd be user comments, wherein users will have submitted their own examples as well as words of caution. Dec 13 20:20:12 five paragraphs, yes Dec 13 20:20:17 but not necessarily useful Dec 13 20:21:11 anyway im too surprised that within poor and/or misleading documentation, android is still widely used Dec 13 20:27:08 Ashiren: One example would be documenting when onDraw is called in relation to when onSizeChanged (and so on) are called. Dec 13 20:27:46 The documentation doesn't appear to mention this. Dec 13 20:27:48 TacticalJoke, simple Dec 13 20:27:55 onDraw is called every time view in invalidated Dec 13 20:28:01 that is, when invalidate() is called ;) Dec 13 20:28:04 * Mavrik is useful. Dec 13 20:28:35 The documentation should state such things. Dec 13 20:28:55 no Dec 13 20:29:11 you should put System.out.println("ondraw()") in it and see for yourself Dec 13 20:29:16 Ashiren: lol Dec 13 20:29:19 Kidding, I hope. Dec 13 20:29:25 yes, of course, kidding.. Dec 13 20:29:31 Okay. lol Dec 13 20:31:29 On the other hand, documentation where each call has a 16 page War and Peace analysis is useless as well Dec 13 20:32:10 then lets find golden mean Dec 13 20:32:54 Ashiren, mhm, I'd prefer more extensive external documentation Dec 13 20:33:07 more bigpicture stuff, less javadoc stuff Dec 13 20:33:20 e.g. "so how the heck are views actually rendered on screen" article :) Dec 13 20:33:28 Hmm. Does it ever make sense to override onDraw but not onSizeChanged or onMeasure? seems to suggest that one can't simply override onDraw. Dec 13 20:33:32 there's bunch of that info scattered around I/O talks Dec 13 20:34:10 I'm custom-drawing over a LinearLayout returned by my Adapter.getView. Drawing a simple border (a line). It works fine if I simply override onDraw. Dec 13 20:34:21 I don't see why I would need to do anything else here. Dec 13 20:34:46 Isn't onDraw the final "Okay, we're about to display" thing? Dec 13 20:35:09 Yes. Dec 13 20:35:17 onDraw does the actual drawing of the view Dec 13 20:35:32 and yes, it does make sense to override only draw if your view is stretchable in all possible ways Dec 13 20:35:48 K. Dec 13 20:36:14 That d.a.c/guide article is confusing me, since it says stuff such as "If your view doesn't need special control over its size, you only need to override one method: onSizeChanged()". Dec 13 20:36:33 lies Dec 13 20:36:37 Hi I'm having some issues with the Rect's Intersects method, I use it as follows: http://pastebin.com/fcZVXYma it keeps returning false Dec 13 20:36:45 even if they clearly overlap <,< Dec 13 20:37:07 am I doing something wrong, since it's confusing to find the top,left,bottom,right Dec 13 20:37:49 Mavrik yeah, my weak spot on android is the View stuff - first principles. i can poke existing widgets for the most part, but designing my own recyclerview layoutManager would be impossible for me Dec 13 20:38:09 g00s, oh I did that like one month ago :) Dec 13 20:38:13 surprisingly easy :) Dec 13 20:38:20 the touch stuff is total madness though Dec 13 20:38:24 creating your own viewgroups - etc, romain did a talk on that on parleys, its really the only docs i found Dec 13 20:39:27 g00s, hmm, well that's because there's really nothing much about them to be said Dec 13 20:39:40 you just call "layout" for each children with coordinates you want them to be at and that's that :) Dec 13 20:39:43 from your own onLayout Dec 13 20:40:13 but yesh, documentation on that is kinda non-existent :) Dec 13 20:40:21 well for example, i wanted to make a ViewGroup that was like the Windows Phone home screen, with tiles that could be moved around and resized. i have up Dec 13 20:40:30 *gave up Dec 13 20:41:21 *shrug* Dec 13 20:41:30 the animated moving around part is the hard part Dec 13 20:43:48 What do you guys think of this: http://pastebin.com/zWbxY6cy I'm new to custom drawing. Does that look like the kind of thing that would work? Dec 13 20:44:08 That view is returned from my adapter. (I know it's a really specific example, but I'm just trying to get a feel for whether this idea would work or not.) Dec 13 20:44:39 It's mainly a question about the use of onDraw. Dec 13 20:45:50 The adapter instantiates (or aquires) the view and then calls showComment. I'm assuming that onDraw will always be called after everything else. Dec 13 20:46:03 (And that turns out to be true from what I've seen. It also seems to make sense in principle.) Dec 13 20:55:24 I'm trying this example here, for adding contacts. It says my contact was added fine, but it's not there. No errors, nothing in logcat. Any ideas? http://www.pocketmagic.net/2011/03/android-contacts-add-a-new-contact-using-contentprovider/ Dec 13 20:55:27 Also read this: http://developer.android.com/guide/topics/providers/contacts-provider.html Dec 13 20:55:39 Made minor adjustments, but the result is the same. It says the contacts are added, but they aren't. Dec 13 20:56:23 I'm getting a couple of these from logcat though: Dec 13 20:56:25 E/SemcSettingsParser( 3878): key not found. key=[brand] Dec 13 20:56:25 E/SemcSettingsParser( 3878): key not found. key=[group-visible] Dec 13 21:02:22 if you specify a min SDK in uses-sdk will that not install if the phone does install or run if the phone does not have that SDK level? Dec 13 21:06:02 From googling: "The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in [minSdkVersion]." Dec 13 21:07:02 ok thanks :) Dec 13 21:07:05 you are my google :)_ Dec 13 21:08:47 TacticalJoke you can add this to your project :D http://kolinko.github.io/um-hn/# Dec 13 21:10:04 Hah. Could make Reddit a lot more useful. Dec 13 21:11:51 TacticalJoke you can also add a sockpuppet detector http://www.digitalnewsasia.com/digital-economy/censorship-shadowy-forces-controlling-online-conversations Dec 13 21:17:16 TacticalJoke: you should find x outside of draw. should keep logic out of draw and just draw Dec 13 21:17:56 how do I adb into a device with the ip? Dec 13 21:18:22 adb connect ip:port I think Dec 13 21:19:14 and then I have to disconnect if I want to send commands to other devices? Dec 13 21:20:32 nope, doesn't work Dec 13 21:20:40 I have multiple devices running Dec 13 21:24:23 whatitis-: Hmm. Do you really think there'd be any significant time taken there? Dec 13 21:26:35 not necessarily with that example, but you can precalculate it onSizeChanged or whenever Dec 13 21:26:58 just in general you shouldnt do work inside draw Dec 13 21:27:29 I just tested it. Doing that 1,000 times takes around 0ms. Doing it 10,000 times takes around 1ms. Dec 13 21:27:43 whatitis-: Do I need to worry about onSizeChanged? I wasn't sure about that. Dec 13 21:27:56 but its calculated it 10000 times, when you only need one Dec 13 21:28:09 no I was suggesting you find x there Dec 13 21:28:10 To see how fast it is. Dec 13 21:28:26 or when you have the dimensions of the inflated view Dec 13 21:29:51 not saying your code now isnt fast, just saying its recalculating x every draw when you only need to do it one time outside onDraw Dec 13 21:30:01 It's amazing how fast computers are now, when you think about it. Doing that calculation 1,000 times basically take no time. Dec 13 21:30:12 Imagine a human doing something like that 1,000 times. Would take hours. Dec 13 21:30:29 whatitis-: True. Dec 13 21:30:59 onDraw really is the right place to calculate it. It avoids having to listen for changes to padding Dec 13 21:31:20 is it gonna change? Dec 13 21:31:58 Who knows Dec 13 21:31:59 his padding is an instance variable that is static from resources Dec 13 21:32:07 he posted code Dec 13 21:32:18 In theory, it could change. Dec 13 21:32:23 Because showComment could be called multiple times. Dec 13 21:32:32 showComment changes the padding. Dec 13 21:33:32 I was mixing your border for padding Dec 13 21:34:21 javnut adb connect ip:port - works if you enable ADB over IP on the device Dec 13 21:34:40 FlipBill: I have multiple devices Dec 13 21:35:31 Then do adb -s 192.168.12.91:5555 shell - or similar Dec 13 21:35:43 after doing the connect Dec 13 21:36:34 Or try the connect, then do adb devices. Maybe clearer that way Dec 13 21:38:15 Or try the connect, then do adb devices. Maybe clearer that way Dec 13 21:39:08 If you were to make a general purpose View, you would not be calculating x elsewhere. You don't know how it's going to be used. For performance reasons you might require a View be used in a certain way, but unless you absolutely need to, there's no reason to do that. Dec 13 21:39:38 I think I tried -s ip:port Dec 13 21:39:42 but I'll try again Dec 13 21:40:07 SimonVT: Do you think it makes sense for me to override onDraw but not onSizeChanged/onMeasure/whatever? I ask because seems to suggest that custom drawing *requires* overriding onSizeChanged or similar (and this is the first time I've done custom drawing). Dec 13 21:41:35 It's not required Dec 13 21:41:46 ok Dec 13 21:41:58 I got it, I put the -s after shell not before Dec 13 21:42:26 A -yeah I do that sometimes. Dec 13 21:42:31 What are some good iPhone games Dec 13 21:43:53 Okay. Dec 13 21:44:26 mikedg_ you might like the i am rich app Dec 13 21:45:18 Nice Dec 13 21:46:45 bankai_au http://i.imgur.com/f7ulW2h.jpg Dec 13 21:49:54 When would someone want to override onSizeChanged/onMeasure in a custom view? Dec 13 21:50:02 Wouldn't it all be handled by onDraw? Dec 13 21:51:14 TacticalJoke, when changing the size affects what your view does for onSizeChanged Dec 13 21:51:33 TacticalJoke, and when you want to signal Android how your view must be laid out (for onMeasure) Dec 13 21:51:48 onMeasure is where stuff like wrap_content, match_parent, etc. is resolved. Dec 13 21:52:24 Okay. Just having a hard time thinking of a situation where you'd want to do stuff in onSizeChanged/onMeasure instead of just in onDraw. Dec 13 21:52:37 uh, like always :P Dec 13 21:52:38 TacticalJoke: want some more info? Dec 13 21:52:41 onDraw is called ALOT Dec 13 21:52:47 Sure, Napalm. :) Dec 13 21:53:09 TacticalJoke, also, onDraw has to be always done in sub 10ms range Dec 13 21:53:24 doing expensive stuff there is... not cool :) Dec 13 21:53:50 TacticalJoke: onMeasure called first by the parent view to ask you how big your view 'wants to be', then onLayout is called with the actual bounds the view is in the parent, then onSizeChanged is called if/and when layout was performed and the size changed. Dec 13 21:54:08 TacticalJoke: so in short if you actually want to know how big your view is you should use onSizeChanged Dec 13 21:54:26 TacticalJoke: and onSizeChanged is not called all the time, only when the view's size is changed Dec 13 21:55:09 TacticalJoke: this gives you the benefit of only say reallocating your resources when the view's size actually changed.. think of it like onConfigurationChanged Dec 13 21:55:21 Okay. So an example might be a custom view that displays "current width: x", I guess. Should that display the text only in onSizeChanged (and not in onDraw)? Dec 13 21:55:32 TacticalJoke: got it now? Dec 13 21:55:36 you can't display anything in onSizeChanged. Dec 13 21:55:46 Oops, yeah. lol Dec 13 21:55:56 omg Dec 13 21:56:13 TacticalJoke: you would record your size or do whatever in onSizeChanged and then use it in onDraw Dec 13 21:56:56 Hmm. Okay. Even in that case, it seems to make sense to do it all in onDraw. Dec 13 21:57:08 Unless we're doing some heavy measurement stuff, I guess. Dec 13 21:58:37 TacticalJoke: all updates to the screen should be done in onDraw.. if you do it elsewhere it can lead to artifacts and wierd crap Dec 13 22:00:03 Yeah, caching the canvas instance from onDraw is... not smart :) Dec 13 22:00:11 Yeah, I get that. Dec 13 22:00:35 Just trying to think of a case where someone would want to override onSizeChanged. All I can think of is if we have to do some non-trivial calculation related to the new size (and store it, so that it can be used in onDraw). Dec 13 22:01:00 maybe you would need to reflow text Dec 13 22:01:13 hey Napalm Dec 13 22:01:55 mhm Dec 13 22:02:22 hey g00s Dec 13 22:04:12 TacticalJoke, my experience shows that I rarely override onSizeChanged, since usually doing that stuff in onLayout is enough Dec 13 22:04:45 Ya. Dec 13 22:04:52 that's usually the chance to allocate / prerender as much atuff as necessary for onDraw Dec 13 22:05:25 Mavrik: true, but it depends if your doing heavy resource allocation.. you dont want to re-allocate resources on every Layout pass Dec 13 22:05:41 of course :) Dec 13 22:06:33 anyway, rant time: Dalvik GC is dumb :P Dec 13 22:07:47 Mavrik: Lollipop is so much better Dec 13 22:08:05 Mhm, I'm just battling the GC with GC_FOR_ALLOC stuff on bitmap heavy app Dec 13 22:08:20 and there's just no way to tell the silly thing to NOT SHRINK THE DAMN HEAP Dec 13 22:08:22 -_- Dec 13 22:08:44 ART on Lollipop has practically no issues while 4.4.2 on S4 has noticable yank while scrollink Dec 13 22:08:48 *scrolling Dec 13 22:10:09 it goes basically "ooooh, shiny, freed bitmap *shrink heap*" -> 2ms later -> "ugh, bitmap allocation, STOP EVERYTHING AND COLLECT STUFF" Dec 13 22:10:57 I must be missing something can someone please help me? I am trying to repackage my first kernel, but every time I do it and then run unmkbootimg the offsets NEVER match with the offsets I had set. This does not sit well with me at all. My device does not yet have an unlocked bootloader so flashing something with Offsets that do not even look right really bothers me!!! Dec 13 22:11:31 Mavrik do your bitmap allocation on the native heap Dec 13 22:11:44 at least thats what Fb does :) Dec 13 22:11:59 g00s, yes, that's however a rather large problem tho Dec 13 22:12:08 g00s, since afterwards you can't use any of bitmap utilities anymore Dec 13 22:12:11 and need to roll your own Dec 13 22:12:20 you know, scaling, reallocating, reuse, decode, etc. :P Dec 13 22:12:21 gbit86: arent they offsets inside the image.. in which case they would be different.. check out my post here http://forum.xda-developers.com/showthread.php?t=1794203 Dec 13 22:12:31 gbit86: that question is also really for #android-root Dec 13 22:12:33 g00s, it's on TODO... eventually ;) Dec 13 22:13:16 Mavrik: kitkat uses the native heap for bitmaps Dec 13 22:14:04 Napalm, hmm, no? Unless if you mean "native" == "java" heap :) Dec 13 22:14:15 bitmaps were moved to java memory space in 3.0 Dec 13 22:14:28 before they had a huge hack which was even more problematic :) Dec 13 22:14:50 anyway, I don't really have problems with bitmap handling per se, I just want GC to stop stopping my main thread when background thread needs to allocate a bitmap Dec 13 22:14:52 I think the starting addressing have to be the same though, otherwise I do not know why there would be any debate about setting them in the first place. Dec 13 22:14:55 since I KNOW there's nothing to collect :) Dec 13 22:15:05 Mavrik: they are still in the native heap.. they are just now 'tracked' in the java heap Dec 13 22:15:22 Napalm, afaik that was pre-3.0 Dec 13 22:15:28 now it's actual java heap Dec 13 22:16:15 Mavrik: i know what you mean.. but in HC+ they just added tracking.. if I remember correctly.. tbh I could be wrong Dec 13 22:17:21 Okay, I found a real-world example of when to use something like onSizeChanged. The code allocates an array and does some non-trivial mathematical calculations based on new sizes, etc. Dec 13 22:17:30 Though the funny part is that the code actually does this in onDraw. lol Dec 13 22:17:37 It should be using onSizeChanged or similar. Dec 13 22:18:03 TacticalJoke: what? what code does that in onDraw Dec 13 22:19:27 https://github.com/QuantumBadger/RedReader/blob/master/src/main/java/org/quantumbadger/redreader/views/RedditCommentView.java#L189 Dec 13 22:19:29 Napalm, you're right, just looking at the source Dec 13 22:19:35 That should be in onSizeChanged or similar, right? Dec 13 22:19:37 The array stuff. Dec 13 22:19:45 a byte[] buffer reference is kept inside the Bitmap classs Dec 13 22:19:50 but the allocation itself is done in JNI Dec 13 22:20:08 which then calls the Bitmap constructor in a pretty mess that only JNI cna do :P Dec 13 22:20:51 TacticalJoke: bad code Dec 13 22:21:02 Yeah. Dec 13 22:21:24 That's the Reddit client I use every day. ;o Dec 13 22:21:24 dang it! Dec 13 22:21:34 lol Dec 13 22:21:44 I don't know how other people have implemented sync adapters following examples on interwebs Dec 13 22:21:48 Napalm: Would you agree that that is an example of when to use onSizeChanged? Dec 13 22:22:03 but they all claim that addPeriodicSync can take a Bundle.EMPTY Dec 13 22:22:16 never worked for me until I passed non-empty Bundle Dec 13 22:22:37 rburgosnavas: http://developer.android.com/training/sync-adapters/index.html worked fine for me Dec 13 22:22:45 really?!?!? Dec 13 22:22:55 I (think) I followed it to the T Dec 13 22:22:55 TacticalJoke: yes Dec 13 22:23:00 K. Dec 13 22:23:12 and ContentResolver.addPeriodicSync(...) never worked Dec 13 22:23:18 ... struggled for two days Dec 13 22:23:21 rburgosnavas: sec Dec 13 22:23:38 I just passed it non-empty Bundle and now it's syncing like a maniac Dec 13 22:24:26 (or it most be the Motley Crue blasting from the speakers atm) Dec 13 22:24:44 rburgosnavas: I use ContentResolver.addPeriodicSync(mAccount, Constants.ACCOUNT_AUTHORITY, new Bundle(), period); and ContentResolver.removePeriodicSync(mAccount, Constants.ACCOUNT_AUTHORITY, Bundle.EMPTY); Dec 13 22:25:16 brb Dec 13 22:25:19 !!! Dec 13 22:25:21 ok Dec 13 22:27:18 to anyone else: I'm setting up a sync adapter to get a refresh token from a server. Tokens are valid for only a day. Dec 13 22:27:57 What would a sensible sync rate: every hour; every 4 hours? Dec 13 22:49:52 Hi! I'm looking for an android app that can allow me to modify return values/parameters of other apps' methods as well as instrument Java code. Does anything similar to that exist? I know iOS had a half-assed alternative called "Flex 2," but I'm looking for something slightly lower level. The app itself would need to be abstracted enough to be practical on such a small device. Dec 13 22:51:04 RegexNinja47: Is there any reason you can't attach it to a machine with proper debugging/profiling tools? Dec 13 22:51:31 Because sometimes I'm bored on my Android device and reverse-engineering is a good passtime Dec 13 22:52:35 RegexNinja47: Get a USB keyboard/mouse and run it in a chroot? Dec 13 22:53:15 That would be impractical. The tiny screen makes everything hard to deal with. Plus I'd like something a little more abstracted Dec 13 22:53:23 So like a GUI or something Dec 13 22:53:45 RegexNinja47: Using a chroot doesn't prevent you from using a GUI. Dec 13 22:53:54 A mobile GUI Dec 13 22:54:15 I won't help then. Dec 13 22:54:19 I figure with the general mentality of the Android community, an app like that /must/ exist. I mean there's even one for iOS Dec 13 22:54:23 But okay Dec 13 22:54:25 Thanks! Dec 13 22:54:47 Maybe try XDA. Dec 13 22:54:52 ? Dec 13 22:54:56 Oh Dec 13 22:54:59 hmm Dec 13 22:54:59 Asking there. Dec 13 22:55:21 RegexNinja47, usually people do disassembly rather Dec 13 22:55:26 YEah Dec 13 22:55:28 which is way more readable on Android Dec 13 22:55:36 ? Dec 13 22:55:48 standard Java debugger should work as well, but I haven't had it plugged into a process with disabled debugging yet Dec 13 22:56:13 You can do that sort of thing right on the android? Dec 13 22:56:52 I can edit the bytecode just fine on my computwr Dec 13 22:56:53 I can edit the bytecode just fine on my computer Dec 13 22:56:58 uh Dec 13 22:57:12 I didn''t see you say you don't want to use a computer. Dec 13 22:57:17 Oh Dec 13 22:57:19 Yeah Dec 13 22:57:23 That's the thing Dec 13 22:57:28 :P Dec 13 22:57:42 That makes it a lot tougher :) Dec 13 22:57:58 Corrently I use ReJ, DirtyJOE, and JAD Dec 13 22:58:02 *Currently Dec 13 22:58:25 That trifecta right there basically lets me do whatever I want to any Java program Dec 13 22:58:52 But I'm looking for a higher-level GUI over that type of modification purely using Android Dec 13 22:59:08 Something that allows me to tweak Android applications without going to in-depth Dec 13 23:00:37 Not just that, but also with an app that has a mobile UI. Which is... well... Dec 13 23:01:06 RegexNinja47: you want to modify running apps? Dec 13 23:01:19 You mean like CheatEngine or whatever? Dec 13 23:01:36 I guess that would be pretty cool. But I'm looking for something to modify the app itself Dec 13 23:02:29 iOS has it. And they use Objective-C! Not too mention the fact that Jailbroken iOS has a much smaller userbase and a less developer-oriented mentality Dec 13 23:02:42 So chances are that something like this exists somewhere Dec 13 23:02:53 Just an app-tweaking GUI Dec 13 23:03:37 no Dec 13 23:03:42 you have to decompile then recompile Dec 13 23:03:47 Not really Dec 13 23:03:59 I've never done that Dec 13 23:04:24 i am just saying that's what it takes to do what you want Dec 13 23:04:34 You can't decompile ObjC Dec 13 23:04:39 And they did it for that Dec 13 23:04:52 You have a lot more wiggle room with Java Dec 13 23:05:28 http://rodingo.com/wp-content/uploads/2013/01/flex-unit-settings-write-apps-develop-389x291.jpg Dec 13 23:05:45 That's a (somewhat bad) screenshot of the application I was talking about Dec 13 23:05:56 of course I'd like something a little more powerful Dec 13 23:06:10 Hi I'm havig some issues, Normally in eclipse when I run my application I can select on which virtual device I want to run it, now I once clicked 'always o this'. Dec 13 23:06:28 And now I can't manage to get the selection screen back open, in order to run it on my phone :/ Dec 13 23:06:46 Quitta: cant you change that by clicking the little down arrow next to the "play" triangle? Dec 13 23:06:52 Actually never mind Dec 13 23:06:55 That's netbeans Dec 13 23:07:08 It's not in the preferances? Dec 13 23:07:28 Of the project Dec 13 23:07:42 Well I tried, run as -> run configuartions -> target and there it says: always prompt to choose device Dec 13 23:07:48 which it doesn't do :/ Dec 13 23:07:51 Quita edit run configurations Dec 13 23:08:02 and start using android studio Dec 13 23:08:23 RegexNinja47: if you dont see that app on the playstore, it doesn't exist. that's life. Dec 13 23:08:52 Everything I search gives me bad results Dec 13 23:09:10 Either the keywords I choose are too vague or too specific Dec 13 23:09:30 yes because it doesn't exist Dec 13 23:09:33 :/ Dec 13 23:09:56 So there's no app-modifying toolkit for Android? Dec 13 23:09:59 why are you doing this? to alter some game scores? Dec 13 23:10:03 No Dec 13 23:10:14 Yes it's called android studio Dec 13 23:10:17 Because I find reverse-engineering applications to be fun Dec 13 23:10:33 so decompile it Dec 13 23:10:34 And it was always a great way to pass the time with my iOS device Dec 13 23:10:35 then edit it Dec 13 23:10:39 then recompile it Dec 13 23:10:46 or make the app yourself Dec 13 23:11:01 What do you mean by recompile? Dec 13 23:11:14 compile Dec 13 23:11:19 Is there some perfect Java decompiler out there that I don't know of? Dec 13 23:11:25 decompile the app, edit it and then compile it again Dec 13 23:11:37 google how to reverse engineer android app Dec 13 23:11:42 I know how Dec 13 23:11:46 you'll see the specific tools people use for android Dec 13 23:11:53 the one thing you could do is edit sharedpreferences Dec 13 23:12:00 And you can just "recompile" the source?!?! Dec 13 23:12:03 it's an xml file in /data/data/package.name/* Dec 13 23:12:14 RegexNinja47: do you understand how code works? Dec 13 23:12:20 yes. Dec 13 23:12:21 you compile it... it runs Dec 13 23:12:30 Decompilers aren't perfect Dec 13 23:12:33 well runs if it doesn't have errors Dec 13 23:12:39 well you have to fix those errors Dec 13 23:13:04 The decompilers I've used have always produces upwards of 10,000 errors Dec 13 23:13:11 that's life Dec 13 23:13:15 Exactly Dec 13 23:13:21 let me guess you are like 20ish? Dec 13 23:13:22 So you can't just "recompile" source Dec 13 23:13:24 No Dec 13 23:13:26 I'm 15 Dec 13 23:13:31 yeah i knew Dec 13 23:14:06 I learned Bytecode a long time ago Dec 13 23:14:06 I figured it would be cool to know a lot of lower-level assembly languages Dec 13 23:14:06 So I did Dec 13 23:14:15 so you have to re, fix errors, recompile and there you go. otherwise you can't. Dec 13 23:14:37 Well I've always just edited it in an assembler Dec 13 23:14:42 or dissassembler Dec 13 23:14:53 g00s: lol yeah i saw that on reddit just before ;) Dec 13 23:15:01 http://dirty-joe.com/ Dec 13 23:15:51 Or http://rejava.sourceforge.net/features.html Dec 13 23:16:54 Before I learned about those, I used to do it with 50 bajillion other tools. Then I was finally able to move away from my hex editor and into these tools Dec 13 23:18:08 regex you should move this monologue to android-root they might be able to help you in there Dec 13 23:18:27 That does seem like a better place Dec 13 23:18:40 (If people were active there) Dec 13 23:19:07 I'm not seeing an android-root Dec 13 23:19:18 Never mind Dec 13 23:21:06 ahh he left, i was hoping he could reverse engineer this for me: public final Observable retryWhen(Func1,? extends Observable> notificationHandler) Dec 13 23:25:04 I am trying to use Intent.ACTION_SEND_MULTIPLE to send a photo and a text string which will be a hash tag in the caption box. Does this sound possible? and if so, would I just send the hashtag text as a text string as well? or something sepcial depending on where its being shared Dec 13 23:37:04 Anyone used an in-app billing library? Dec 13 23:43:48 you are the first, hows it going? Dec 13 23:44:57 anyone noticing android studio running very slow on OS X? Dec 13 23:45:33 define slow Dec 13 23:45:56 locks up Dec 13 23:46:04 frequently Dec 13 23:46:09 doing what Dec 13 23:46:45 , there's a long delay between typing on keyboard and work in the idea Dec 13 23:47:13 feels like it stuck and there the whole world would show Dec 13 23:47:14 so intellisense is slow? Dec 13 23:47:16 hert not ... really O.o Dec 13 23:47:39 i just started this afternoon and noticing it Dec 13 23:50:12 bilb_ono: https://github.com/slightfoot/android-crash-reporting/blob/master/CrashReporting/src/com/demondevelopers/example/crashreporting/ReportActivity.java#L84 Dec 13 23:51:29 hey g00s http://www.kdgregory.com/index.php?page=java.refobj Dec 13 23:51:51 maybe you know it all but nice overview of gc in java Dec 13 23:51:53 is there a way i can get rid of this voice search bar in the recent apps on lollipop? if i disable it in settings/apps i just get a "Couldn't add widget." bar instead.. same thing when i try and remove the app through the file manager.. or am i just SOL untill some custom roms are available with the option? Dec 13 23:53:41 samruger: the home launcher probably just needs restarting .. the search bar is now a type of AppWidget Dec 13 23:53:59 samruger: you can also offer and change the system setting to provide your own widget Dec 13 23:54:09 or, perhaps at least remove the widget that way Dec 13 23:55:44 samruger: https://github.com/android/platform_frameworks_base/commit/ee0b12161ab8563378e33e9d694d15ed1a757a26 Dec 13 23:55:47 that should help Dec 13 23:56:23 lasserix thanks ;) i definitely don't know it all :D Dec 13 23:57:39 samruger: looks like you could disable the component https://github.com/android/platform_frameworks_base/blob/ee0b12161ab8563378e33e9d694d15ed1a757a26/packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java#L385 Dec 13 23:57:56 samruger: after disabling the default app as you've already done.. a reboot should remove the widget Dec 13 23:58:14 yeah it is a great explanation of referet types, etc Dec 13 23:58:29 it doesnt Napalm Dec 13 23:58:42 not on my nexus 7 grouper Dec 14 00:03:03 ill save those links and play around some more later, i was hoping for a quick simple fix.. thanks though Dec 14 00:04:38 samruger: https://github.com/android/platform_frameworks_base/blob/59701b9ba5c453e327bc0e6873a9f6ff87a10391/services/core/java/com/android/server/search/SearchManagerService.java#L243 Dec 14 00:05:05 samruger: the getAssistIntent can be called and should return null if you dont want the search widget Dec 14 00:07:19 samruger: check it out.. should help.. only 10 minutes of re, but should get you on the right path Dec 14 00:09:07 i'm trying to copy my app's database to the SD card (using this method: adb shell "run-as cat /data/data//databases/database.db > /sdcard/database.db") but as of Android 5 it's not working... Dec 14 00:09:17 anyone know what might be wrong? Dec 14 00:10:38 do you have root? Dec 14 00:11:24 and why not just have your app copy it? Dec 14 00:13:55 whatitis-: i don't have root but this method used to work. how can i have the app copy it? what's the method you use to peek at your apps' DBs? Dec 14 00:14:56 if no root then you have no access to data, and if your app you have full access to your data todo what youmplease Dec 14 00:16:38 whatitis-: is this a new thing in android 5? this method worked fine before... Dec 14 00:17:28 besides, it's running adb shell AS my app, so i should have access to it Dec 14 00:17:53 with each new android they try to take away privileges... Dec 14 00:18:29 with adb can you navigate to your apps data folder and list it? Dec 14 00:19:04 good question... not sure how to navigate using adb, let me see Dec 14 00:19:44 its simple, just navigate as usual using cd Dec 14 00:20:38 i can't list /data but i can list /data/data/ Dec 14 00:20:56 so i do have permission, i just have to figure out why my DB file size is 0 Dec 14 00:21:04 can you cd to databases and list? Dec 14 00:21:43 yeah Dec 14 00:21:46 then your issue is with your app writing the db Dec 14 00:21:55 or commiting writes Dec 14 00:27:42 whatitis-: thanks for the insight. i think my issue is actually copying the file to /sdcard, although i'm not sure why yet Dec 14 00:28:03 the DB file exists and has a filesize, so there's no problem with the app writing to the DB Dec 14 00:28:14 but when copying to the sdcard the resulting file has 0kb Dec 14 00:29:16 i guess i don't have permission to /sdcard Dec 14 00:29:28 must be due to Android 5 Dec 14 00:39:55 hi Dec 14 00:40:44 seand: did you make sure your sdcard is not full ? Dec 14 00:45:36 shmooz: ah thanks, i didn't think about that! it looks like it might be full... let me investigate Dec 14 00:47:06 Having used a few Material apps, I think I just prefer Holo. Dec 14 00:47:21 I know Holo isn't perfect, but I just find Material too plain. Dec 14 00:47:59 TacticalJoke: even with the animations? Dec 14 00:48:04 what is the latest version of java that i should use for developing in android Dec 14 00:48:16 I guess I haven't used the animations much, to be fair. Dec 14 00:48:20 I don't have a 5.0 device. Dec 14 00:48:33 linuxuz3r: Android supports almost all of Java 7. Dec 14 00:48:44 You can use JDK 7 or (I think) JDK 8. Dec 14 00:48:47 TacticalJoke: how about jdk 8 Dec 14 00:48:53 It should work fine. Dec 14 00:49:44 uh Dec 14 00:49:46 So an AsyncTask for downloading, let's say, audio files is a no-no Dec 14 00:49:50 android does not support java 8 Dec 14 00:49:52 what would you recommend? Dec 14 00:50:11 It doesn't support Java 8, but you can use JDK 8. Dec 14 00:50:17 the IDE and tools will work with jdk 8 installed on your computer.. but you cannot use java 8 features Dec 14 00:50:19 in code Dec 14 00:50:20 for the sdk Dec 14 00:50:21 Personally, I use JDK 7. Dec 14 00:50:58 you can use JDK 8 but only compiling as 7 Dec 14 00:51:16 api19+ only Dec 14 00:51:30 <19 -> java 6 Dec 14 00:51:42 linuxuz3r: and compiled under java 7 will not work on pre-APIv19 Dec 14 00:51:45 You can use some Java 7 features <19 (e.g., the diamond operator). Dec 14 00:52:23 linuxuz3r: let me be clear.. they will work fine.. its still dex opt-codes. You just cant use any Java 7 APIs in pre-APIv19 Dec 14 00:53:03 I actually target Java 8 and use Retrolamda Dec 14 00:53:17 shmooz: yeah my sdcard isn't full. what method do you use for peeking at your apps' DBs? Dec 14 00:53:34 but you cant use any Java 8 APIs Dec 14 00:53:55 seand: why not just pull the db file from the device? Dec 14 00:54:08 Napalm that's what i'm trying to do Dec 14 00:54:19 it's not working, i can't copy to the sdcard using adb Dec 14 00:54:26 seand: why do you need sdcard? Dec 14 00:54:35 to adb pull Dec 14 00:54:50 why not adb pull the database file directly? Dec 14 00:55:04 that works for you? Dec 14 00:55:58 need to be rooted to pull a file from an app's directory Dec 14 00:56:00 does openjdk work with android sdk Dec 14 00:57:40 seand: you can set the file permission to Context.MODE_WORLD_READABLE then you can pull it Dec 14 00:57:52 the directories are accessible, just not the file without that Dec 14 00:58:30 seand: so its just /data/data//databases/ Dec 14 00:58:46 Napalm: how do i set the file permission to that? Dec 14 01:00:24 seand: SQLiteDatabases db = Context.openOrCreateDatabase("database-filename", Context.MODE_WORLD_READABLE, null); db.close(); Dec 14 01:02:35 oh... unfortunately i'm not using the DB that way Dec 14 01:03:29 seand: what do you mean? Dec 14 01:03:53 i don't create it directly, i'm using a SQLiteOpenHelper Dec 14 01:03:57 lol Dec 14 01:04:02 what do you think it does? Dec 14 01:04:06 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/database/sqlite/SQLiteOpenHelper.java Dec 14 01:05:14 yeah my point is i don't create the DB directly so i can't pass in that special permission Dec 14 01:05:29 and not that i would want to just for debugging... is this documented somewhere? Dec 14 01:05:32 seand: you can override getWritableDatabase() and getReadableDatabase().. have them call a method that creates the database the first time one of them is called Dec 14 01:05:48 seand: is what documented? Dec 14 01:06:06 this file permission for accessing the actual file in /data/data Dec 14 01:06:43 yea, open your eyes Dec 14 01:06:51 Context.MODE_WORLD_READABLE Dec 14 01:06:57 where do you think its documented? Dec 14 01:07:49 "This constant was deprecated in API level 17. Creating world-readable files is very dangerous, and likely to cause security holes in applications." Dec 14 01:08:23 there has to be a better way to debug the db file than use this deprecated property Dec 14 01:08:33 seand: since you seem to have some serious trouble reading the sqlite db, just copy it to the sdcard: http://stackoverflow.com/questions/9997976/android-pulling-sqlite-database-android-device Dec 14 01:08:47 why hello other lasserix! Dec 14 01:08:51 hello! Dec 14 01:08:59 is no one else having this issue? Dec 14 01:09:07 seand: omg, are you serious? Dec 14 01:09:17 did you use adb technique? Dec 14 01:09:26 adb run-as package cp db Dec 14 01:09:29 yes lasserix_ Dec 14 01:09:30 or something like that Dec 14 01:09:36 getting permission denied Dec 14 01:09:38 seand: its deprecated because releasing your app with a world readable file is idiotic.. its fine for debug Dec 14 01:09:39 you don't need root or even make it world readable Dec 14 01:10:21 lasserix_: ive just been though that with him Dec 14 01:10:36 seand: http://stackoverflow.com/questions/3013231/sqlite3-permission-denied-android Dec 14 01:10:49 lasserix_: he's moaning because world readable perm is "deprecated" lol Dec 14 01:11:15 seand you may to change read access chmod Dec 14 01:11:18 before you do cat/cp Dec 14 01:11:20 oooh Dec 14 01:11:25 i got an idez Dec 14 01:11:34 Napalm: also because i don't want to add extra code for this purpose... i would rather just find a fix for the current standard method Dec 14 01:11:44 seand did you read what i said? Dec 14 01:11:47 lasserix_, okay i'll give that a try Dec 14 01:11:55 adb run-as package chmod db file 777 Dec 14 01:11:58 then copy Dec 14 01:12:03 YEAAAA Dec 14 01:12:05 it works Dec 14 01:12:12 ? Dec 14 01:12:12 lasserix_: just did that Dec 14 01:12:13 :) Dec 14 01:12:17 what works? Dec 14 01:12:17 a Dec 14 01:12:21 awesome Dec 14 01:12:22 there you go seand.. do that Dec 14 01:12:25 good going other lasserix! Dec 14 01:12:58 seand: adb shell run-as chmod 0644 /data/data//databases/ Dec 14 01:13:02 seand: then you can adb pull Dec 14 01:13:54 Napalm: can you post pull line? Dec 14 01:13:58 lasserix_: know when the run-as cmd was added? Dec 14 01:13:58 i am saving this as a gist Dec 14 01:14:00 in gistbox Dec 14 01:14:04 no idea Dec 14 01:14:15 lasserix_: adb pull /data/data//databases/ Dec 14 01:14:20 lol Dec 14 01:15:13 gistbox man Dec 14 01:15:16 its awesome Dec 14 01:15:23 online storage of code snippets Dec 14 01:17:14 lasserix_: any good? can you make your gistbox public? Dec 14 01:17:23 yeah Dec 14 01:17:26 public or private Dec 14 01:17:32 err Dec 14 01:17:34 per post Dec 14 01:18:31 oh it just manages gists? Dec 14 01:18:40 guess so? Dec 14 01:19:08 you can tag them too i believe Dec 14 01:19:48 lasserix_: do you use the chrome plugin? Dec 14 01:19:56 yeah Dec 14 01:20:04 that way i can right-click create Dec 14 01:21:00 genymotion is so badass Dec 14 01:21:04 Napalm what do you think of retrolambda ? Dec 14 01:21:09 luv it Dec 14 01:21:23 <3 RetroLambda Dec 14 01:24:28 Napalm has it always played nice with the latest com.android.xxx gradle plugin ? Dec 14 01:25:26 Napalm: Do you prefer functional programming in general? Just curious. Dec 14 01:26:02 lasserix_: can you send a link to your gist Dec 14 01:26:16 g00s: yes Dec 14 01:26:22 i'd like to give it a try, as long as i'm not left standing there holding a bunch of java 8 code i can't compile :) Dec 14 01:26:46 damn, still didn't work for me Dec 14 01:27:00 <_genuser_> so can I display a floating dialog that can send notification back to the main activity without being dismissed? Dec 14 01:27:04 Napalm any conflicts with other plugins, libraries, etc ? Dec 14 01:27:16 i can read the db file just fine but i can't copy it to sdcard or via adb pull Dec 14 01:27:29 (i can read the file using cat) Dec 14 01:28:30 TacticalJoke: no, not as a whole. for instance scala/haskell/blah-alternative.. dont like it. but I can see its benefits for certain things. I use it for this and that. Lamda/Clousure for instance is awesome. Passing methods as parameters also has its uses.. cant wait for Guava to go Lamda Dec 14 01:29:14 Napalm try kotlin yet ? Dec 14 01:29:18 Yeah, I feel like that about functional in general. Dec 14 01:29:32 It has some really cool stuff, but a lot of it feels so weird to me. Dec 14 01:31:01 seand well looks like it is hopeless might as well give up and pick another career Dec 14 01:31:10 genuser sure Dec 14 01:31:18 TacticalJoke: nothing about it feels weird.. i just dont like functional programming languages where its practially you always have to use its paradigms Dec 14 01:31:33 lasserix_ not really in the mood for jokes Dec 14 01:31:36 _genuser_: is your dialog an inner class? Dec 14 01:31:48 That's part of what makes it feel weird to me. :p Dec 14 01:31:50 seand: what do you mean you can't copy it? you don't have cp ? Dec 14 01:32:00 seand: did you try using pull after chmod? Dec 14 01:32:02 cp gets permission denied Dec 14 01:32:04 yeah Dec 14 01:33:22 use 777 for chmod Dec 14 01:33:34 and did you use pull Dec 14 01:33:35 not cp Dec 14 01:33:42 your system may not have cp Dec 14 01:34:57 seand? Dec 14 01:35:08 bueller? beuller? Dec 14 01:35:32 adb pull /data/data/pkg/databases/db results in: remote object 'db file' does not exist Dec 14 01:35:50 which isn't surprising because aren't you supposed to copy to sdcard and then pull from sdcard Dec 14 01:37:19 seand: no Dec 14 01:40:45 oh well... thanks anyway for the help Dec 14 01:44:56 Hmm, should a Reddit client support RTL? Dec 14 01:45:03 I don't know whether it's worth the extra effort. Dec 14 01:46:56 mvp first Dec 14 01:47:44 Well, it's like, I just implemented visual indentation of replies. But it assumes LTR. Dec 14 01:48:06 I could allow for RTL too, but it'd be more effort and I'd have to mess with RTL settings to check that it works, and so on. Dec 14 01:48:47 Maybe I could worry about this later. Dec 14 01:50:34 Do you folks support RTL? Just wondering. Dec 14 01:52:32 I can't imagine people reading Reddit in Hebrew or something, though. lol Dec 14 01:55:32 Hmm, how do we ever detect (at run-time) that an RTL language is set system-wide? Dec 14 01:55:37 Google doesn't seem to know anything about that. Dec 14 01:55:39 even* Dec 14 01:58:59 seand obv you file file name wrong Dec 14 01:59:05 either use or dont use .db extension Dec 14 01:59:10 also Dec 14 01:59:16 your database is not named 'db file' Dec 14 01:59:34 Okay, we have Configuaration.getLayoutDirection. Dec 14 01:59:35 your database name is whatever you pass into the sqliteopenhelper super constructor Dec 14 01:59:39 lasserix_ i was replacing the real pkg and file names before pasting in chat Dec 14 01:59:46 yeah Dec 14 01:59:52 the names i'm using are correct Dec 14 01:59:53 dont use .db or use it depending on which you used Dec 14 02:00:01 im talking about extensio Dec 14 02:00:04 i was using .db because that's part of the filename Dec 14 02:00:10 no its not Dec 14 02:00:17 ...? Dec 14 02:00:24 how is it not Dec 14 02:00:59 you are really annoyingly helpless Dec 14 02:01:10 android does not create databases with the .db extension as part of the file name Dec 14 02:01:26 lol Dec 14 02:02:00 my database is called "database.db" Dec 14 02:02:20 now explain to me why i shouldn't be using "database.db" in my adb commands Dec 14 02:06:02 sqliteopenhelper creates the database file object without an extension Dec 14 02:06:08 did you try not using the extension in the file name Dec 14 02:08:09 i know what the filename is called, i can see it using ls Dec 14 02:08:48 did you try pull without the extension just for fun? Dec 14 02:09:00 otherwise like i said its hopeless you might as well pick another career Dec 14 02:09:44 yes i tried that already Dec 14 02:09:53 TacticalJoke: can't you just set start or whatever on the textviews? Dec 14 02:11:07 TacticalJoke: arabic has + 1 x10^9 speakers and is rtl Dec 14 02:11:22 lasserix_: Yeah, Android takes care of that, but my custom drawing code would need to be changed. Dec 14 02:11:34 That guy in #reddit-dev annoyed me. Ask a question and just "lol". Dec 14 02:11:42 ah Dec 14 02:12:01 Napalm have you used retrolambda with jack & jill yet ? Dec 14 02:12:20 or is that even possible Dec 14 02:12:34 no not yet Dec 14 02:12:37 so no idea Dec 14 02:12:54 Even /r/arabic seems to be largely in English: https://www.reddit.com/r/arabic Dec 14 02:13:24 TacticalJoke: well it is defintly a version 2 feature, don't get blocked by it for now you know? Dec 14 02:13:36 Ya. Dec 14 02:15:19 Damn, KitKat is pretty popular: https://developer.android.com/about/dashboards/index.html Dec 14 02:15:24 33.9%. Dec 14 02:16:26 Okay, Reddit.com doesn't support RTL. Seems like it'd be a waste of my time supporting it. Dec 14 02:16:39 (Since few RTLers would even expect it from a Reddit app.) Dec 14 02:16:55 google really should do a PR campaign to persuade (cough cough brainwash cough) people that spending a dollar on a app is no big deal and should be as casual as buying a coffee or a snickers bar Dec 14 02:17:17 Yeah, it's a shame that people can't easily make a living from Android apps. Dec 14 02:17:28 TacticalJoke: not a waste, it shows you are the kind of developer who cares about details and making intuitive UI Dec 14 02:17:32 This is super-duper technology. Dec 14 02:17:50 I'll definitely consider RTL. But I think I might not do so yet. Dec 14 02:20:25 seanda did you get it to finally work somehow? Dec 14 02:20:53 I've tried just about every solution on google / stackoverflow. Getting this on run: http://pastebin.com/fNDu0sEh Dec 14 02:22:21 I'm about 99% sure there are no dulplicates in my project or the libs (google ad servs and appcompat) Dec 14 02:22:44 lasserix_ also, they could make it easier to develop for so costs decline Dec 14 02:22:49 csto17: This just randomly started happening? Dec 14 02:24:11 TacticalJoke: Not exactly...I have just starting making apps, and i just switched to android studio from eclipse. This is like problem 870987979 I've run into, but google fixed the others for me Dec 14 02:27:54 that app called If This Then That got popular, I should write on called for or while Dec 14 02:28:04 s/on/one Dec 14 02:30:30 csto17: I take it you've tried deleting /bin and /gen. Dec 14 02:31:02 While True Sleep. Dec 14 02:31:10 @shmooz Dec 14 02:31:33 and you can mix it with IFTT Dec 14 02:32:23 TacticalJoke: Yeah, but oddly bin doesn't come back...ever Dec 14 02:33:44 csto17: To be honest, it's hard to help when you're giving so few details. Dec 14 02:34:29 TacticalJoke: I thought you/someone would say that, I just don't know what else to give you :/ Dec 14 02:38:05 Is there a way to get a more verbose message? such as actually telling me where the duplicate files are? Dec 14 02:38:28 entry != file Dec 14 02:39:33 By entry, its not referring to just files? Dec 14 02:40:10 Is it possible to use a drawable for an edit text background? like if I wanted to make a mouth so where the teeeth are the input would be? Dec 14 02:41:29 csto17: are you using any library projects? Dec 14 02:42:36 lasserix_: My only libs are google-play-services and android-support-v7-appcompat Dec 14 02:44:09 csto what version of gradle are you using? Dec 14 02:44:31 1.10 Dec 14 02:45:37 <_genuser_> lasserix_: sorry, had to step away. well, it's a dialog that will encompass PreferenceFragment. Dec 14 02:45:59 csto17: odd i have 1.0.0 as latest Dec 14 02:46:16 <_genuser_> android camera app. how it shows settings, and you can change them right there and see the effect on teh camera. Dec 14 02:46:36 genuser what was your original question? Dec 14 02:46:39 <_genuser_> effects, exposure settings, all change and you can see the effect without having to dismiss the settings window. Dec 14 02:46:49 oh Dec 14 02:46:49 nm Dec 14 02:47:00 is the dialog an inner class of the preference fragment? Dec 14 02:47:01 <_genuser_> lasserix_: heh, showing a floating dialog so selections on it can trigger an action in teh main activity without dismissing the dialog. Dec 14 02:47:17 if its an inline / anonymous class you can just access field members, otherwise just user an interface Dec 14 02:47:47 _genuser_ i don't see how you will get Preference Fragment in a dialog Dec 14 02:47:53 <_genuser_> no, I'm thinking of implementing a Dialog and embedding a fragment in it. PreferenceFragment. Dec 14 02:48:04 <_genuser_> can't you put fragments in a dialog? Dec 14 02:48:11 O.o Dec 14 02:48:19 you can make an activity thmed like a dialog Dec 14 02:48:23 *themed Dec 14 02:48:35 <_genuser_> an activity that's not full screen, etc? Dec 14 02:48:54 yeah Dec 14 02:49:00 uhh Dec 14 02:49:05 use dialogfragment Dec 14 02:49:09 <_genuser_> my goal is to replicate the android camera app as much as I can. what better way to learn than to implement a complete app. Dec 14 02:49:25 well so the simplest way is to just user an interface Dec 14 02:50:29 also there is a way to send messages between fragments and activities Dec 14 02:50:34 but interface is easiest way imho Dec 14 02:50:58 <_genuser_> use an interface? creating and implement an interface that the Dialog can use to trigger notifications? Dec 14 02:51:14 defne notification Dec 14 02:51:18 like system notification? Dec 14 02:51:20 or what? Dec 14 02:51:45 <_genuser_> no, I'm thinking a AlertDialog with a persistent single-choice list might do the trick. Dec 14 02:52:15 <_genuser_> where each listitem click allows me to change the camera settings in the calling activity. Dec 14 02:52:37 <_genuser_> but the AlertDialog won't be dismissed due to a single selection, it will only be dismissed when OK is clicked. Dec 14 02:53:12 so id recomend using this library https://github.com/afollestad/material-dialogs Dec 14 02:53:23 since making dialog classes is a pain in the compiler Dec 14 02:53:37 but all you need to do is implement an interface Dec 14 02:53:57 <_genuser_> an even easier way to understand what I'm really trying to do: go to your android phone camera app, click on settings, see how a mini dialog pops up, and things like Flash will cause another mini dialog to pop up. Dec 14 02:54:28 i'm going to let my users suffer with pre material dialog on pre material :) Dec 14 02:54:42 or, i just won't use dialogs Dec 14 02:54:43 :D Dec 14 02:55:00 <_genuser_> g00s: yeah, I'm thinking the same. since my project is working on eclipse and I don't want to import it to Android Studio. Dec 14 02:55:33 <_genuser_> Altho, I spent all night getting Android Studio workign and it's compiling and working just fine now. I figure I'll leave this project in eclipse. Dec 14 02:55:39 <_genuser_> and new projects will be started in AS. Dec 14 02:55:44 lasserix_: I think you are referring to the android build tools gradle version, 1.0.0 /is/ the latest but if i use anything above 0.12 i get a "Could not create plugin of type 'AppPlugin'" on my build.gradle Dec 14 02:57:09 http://pastebin.com/WtdgwYs3 Dec 14 02:57:37 why you using AppPlugin? Dec 14 02:58:27 com.android.application Dec 14 02:58:31 is the plugin my app uses Dec 14 02:58:50 genuser: http://pastebin.com/WtdgwYs3 Dec 14 02:59:10 genuser: the benefit of using onAttach is when its recreated (config change) it'll auto link it again so you don't have to manually reset it Dec 14 02:59:18 lasserix_: Thats the weird thing, i don't think i am Dec 14 02:59:25 TacticalJoke see this? https://engineering.aweber.com/avoiding-robolectric-shock-while-testing-android-with-gradle-and-espresso/ Dec 14 02:59:31 csto17: switch it over and see Dec 14 02:59:33 I have "apply plugin: 'android'" **** ENDING LOGGING AT Sun Dec 14 02:59:58 2014