**** BEGIN LOGGING AT Sat Oct 11 03:00:00 2014 Oct 11 03:00:57 erm, not really Oct 11 03:01:01 cc:Mail used to let you delete stuff after you sent it Oct 11 03:01:25 sms/mms is controlled 100% by mmsc Oct 11 03:01:34 just only let them send it to other people with your app Oct 11 03:01:38 ;D Oct 11 03:02:32 or show an indicator when they're messaging someone who's also using the app that lets them know whether or not they could delete it Oct 11 03:03:04 well, then it would not be an sms or mms Oct 11 03:03:10 why not? Oct 11 03:03:22 can't you delete someones sms Oct 11 03:03:24 ? Oct 11 03:03:36 or, you would have to have the big sin, of altering data on someones phone from a 3rd party Oct 11 03:03:56 so no, you cant really…. you could…but you totally SHOULD NOT! Oct 11 03:04:11 sms / mms are owned by the recipient Oct 11 03:04:25 nice philosophy Oct 11 03:04:39 so you can but you wont Oct 11 03:04:57 well I could send a gcm and do wtf I want Oct 11 03:05:01 but it's not right Oct 11 03:05:04 thats what i'm saying Oct 11 03:05:07 and it should never be accepted Oct 11 03:05:09 i didn't comment on the morality of it Oct 11 03:05:11 by a user Oct 11 03:05:14 you just said you couldn't do that Oct 11 03:05:17 so .. :) Oct 11 03:06:07 ok, morality on any level prevents me from deleting things of a users phone without their consent :) But I thought that was obvious Oct 11 03:07:08 JacobTabak: So I created the manigest with only an activity, and I'm still getting an ActivityNotFoundException. Oct 11 03:07:31 should work Oct 11 03:07:45 are you sure the manifest is in the right place and you're running the right flavor Oct 11 03:08:42 http://pastebin.com/yfmcYQ2m Oct 11 03:08:48 Does that look right? Oct 11 03:09:05 Yeah I am putting it in the right place, and running the right flavor Oct 11 03:09:22 does not look right Oct 11 03:09:37 see if you can figure out why :) Oct 11 03:10:37 Hrm... Is it with the manifest tag or the activity tag? Oct 11 03:11:00 just compare it to your main manifest Oct 11 03:11:05 the structure Oct 11 03:11:24 or i could just tell you but thats no fun Oct 11 03:11:35 Wait... I need application tags? Oct 11 03:11:39 yup Oct 11 03:12:14 So what do I do about the application tag attributes I actually have in my main manifest? Oct 11 03:12:21 can probably ignore them Oct 11 03:12:24 not 100% sure Oct 11 03:12:28 but highly confident Oct 11 03:12:37 for example you're omitting top level tags Oct 11 03:12:46 like 'package' Oct 11 03:12:49 Gotcha. I'll try a totally blank application tag and see if it works Oct 11 03:12:55 i think it will Oct 11 03:13:08 (ive never actually done this with an activity) Oct 11 03:14:03 Well I will let you know! Oct 11 03:14:48 suhweet! It works. Just application tags... no name attrbute needed or anything Oct 11 03:15:05 nice Oct 11 03:15:22 So gradle just stitches all of the manifests together? Is that what the eclipse build system did also? Oct 11 03:15:30 Or is it new to AS? Oct 11 03:15:34 it's new Oct 11 03:15:56 theres a lot of cool stuff, which is why when some people go off about the tools w/o knowing anything about them irritates me Oct 11 03:16:15 :D Oct 11 03:16:25 Yeah. I want to learn it more in depth, but its still a bit confusing. Oct 11 03:16:35 I thought AS was just using the gradle build system. Oct 11 03:16:48 But then I realized/found out that it uses a plugin for gradle Oct 11 03:17:07 And now I'm like "Should I learn gradle? Or whatever this plugin is made of" Oct 11 03:17:21 nice, john petrucci doing AMA on reddit Oct 11 03:17:25 I just found this: https://twitter.com/droidxav/status/476181900357169152 Interesting! Oct 11 03:17:28 METAL \^^^/ Oct 11 03:17:43 i find it challenging because a) i don't know groovy b) there's not really much good code completion or suggestions Oct 11 03:17:58 JacobTabak: No doubt there's some good stuff. There's also a lot missing. Oct 11 03:24:07 fuck man, my android gmail app isn't sending messages. just says sent and into oblivion they go. does anything on this platform work ? Oct 11 03:24:39 don't even show up in the sent label Oct 11 03:25:16 The platform is 100% reliable 79% of the time. Oct 11 03:25:35 with 69% success rate Oct 11 03:27:12 just another reason to migrate to fastmail Oct 11 03:27:50 g00s it will be when they bling it up with new design spec Oct 11 03:28:01 https://github.com/agamemnus/cordova-plugin-xapkreader/blob/gh-pages/android-sdk/extras/google/play_apk_expansion/zip_file/src/com/android/vending/expansion/zipfile/APKExpansionSupport.java#L44-L51 Oct 11 03:28:25 is it ok in java to redefine an object file like that? Oct 11 03:28:34 er Oct 11 03:28:37 object variable Oct 11 03:28:46 g00s my wife has this problem Oct 11 03:28:46 oh and Oct 11 03:28:50 look at mainVersion Oct 11 03:28:54 They forgot to change it. Oct 11 03:28:55 she rages about it all the time Oct 11 03:29:01 Agamemnus: Yes. They're in differentscopes. Oct 11 03:29:02 This is what happens when you copy and paste. Oct 11 03:29:05 They're completely separate. Oct 11 03:29:21 different scopes* Oct 11 03:29:22 well, they messed up the mainVersion variable. Oct 11 03:29:22 stõp using cordova :) Oct 11 03:29:31 this isn't Cordova Oct 11 03:30:06 its a cordova plugin Oct 11 03:30:08 eh? Oct 11 03:30:09 nope Oct 11 03:30:15 Duplicate code such as that is so ugly. Oct 11 03:30:18 it is from the android sdk Oct 11 03:30:38 Wow. Just noticed that. Oct 11 03:30:44 Was too focused on how horrible it looked. Oct 11 03:30:48 oh whatevaz :P Oct 11 03:30:57 look at me i'm fighting the good fight https://github.com/robolectric/robolectric/pull/1315 Oct 11 03:31:00 Who wrote that? A 17-year-old intern? Oct 11 03:31:04 well Oct 11 03:31:29 They copied the code and immediately created a bug. Oct 11 03:31:38 getResourceZipFile has basic formatting errors. Oct 11 03:31:58 you mean the tabbing? Oct 11 03:32:04 Yeah, the indentation. Oct 11 03:32:20 And there's a mixture of tabulators and spaces. Oct 11 03:32:21 well i fixed some formatting Oct 11 03:32:28 but i added a method :P Oct 11 03:32:33 my huge contribution for the week Oct 11 03:32:47 i'm probably going to delete the file. Oct 11 03:32:54 :P Oct 11 03:33:00 But the funny thing is, this is from 2012. And no one reported it or anything Oct 11 03:33:13 I don't want to modify Google's files Oct 11 03:33:33 I tried just using my own as a replacement Oct 11 03:33:50 but the ZipResourceFile object isn't declared as public Oct 11 03:34:06 So that means I have to copy the ZipResourceFile file, too Oct 11 03:34:39 If that's really Android code, that is quite amazing. Such basic mistakes. Oct 11 03:34:40 i think someone must have coded the whole thing in a drunken stupor Oct 11 03:34:54 Google's apk expansion system isn't very impressive Oct 11 03:35:59 Someone reported it here: https://groups.google.com/forum/#!topic/android-developers/cZPI_YAMIrQ Oct 11 03:36:01 hehe i think its another one they just threw on at the last second Oct 11 03:36:46 It's offered as sample code here: http://developer.android.com/google/play/expansion-files.html#GettingFilenames Oct 11 03:36:54 no response, as usual Oct 11 03:36:55 I guess you could just rewrite. Oct 11 03:37:08 Extract that abomination into a neat method. Oct 11 03:37:12 Taking a single parameter. Oct 11 03:37:20 i think there might be other problems too, because stuff is crashing on me Oct 11 03:37:31 but, yeah. still working on that Oct 11 03:38:19 the concept of google's apk expansions doesn't lend itself well to frequent updates Oct 11 03:38:36 which is why i was so confused about it initially Oct 11 03:38:45 ugh Oct 11 03:38:52 and that is why so few people noticed it... but I guess some did Oct 11 03:41:59 why does Class.getSuperClass return null for an interface that extends from another interface Oct 11 03:42:02 dummmm Oct 11 03:42:41 i have another java question Oct 11 03:42:46 oh i get it Oct 11 03:42:52 because you can implement multiple intrfaces Oct 11 03:42:54 durrr Oct 11 03:43:21 is it convention to say null = xyz? Oct 11 03:43:26 I maean Oct 11 03:43:26 NO! Oct 11 03:43:30 null == xyz Oct 11 03:43:33 xyz == null Oct 11 03:43:48 I thought that was weird. Oct 11 03:43:48 only exception is when using .equals() Oct 11 03:44:08 Google uses null == xyz constantly, in its apk expansion library Oct 11 03:44:24 yea i think they're trying to be consistent with the .equals thing Oct 11 03:44:26 but a subset of java programmers do that? Oct 11 03:44:30 yes Oct 11 03:44:33 but its not worth it for the hit on readability in my opinion Oct 11 03:44:35 "a foolish consistency is the .." Oct 11 03:45:12 because you can't say xyz.equals(null) ? Oct 11 03:45:19 you can only do null.equals(xyz)? Oct 11 03:45:30 if you did xyz.equals(null) Oct 11 03:45:32 or am i totally off Oct 11 03:45:33 and xyz was actually null Oct 11 03:45:37 you'd get a null pointer exception Oct 11 03:45:53 I see. Oct 11 03:46:11 what's the difference between that and ==? Oct 11 03:46:20 you can override equals Oct 11 03:46:31 aha, i see Oct 11 03:46:39 as a getter? Oct 11 03:46:39 also Oct 11 03:46:43 == is reference equals Oct 11 03:46:51 i see Oct 11 03:46:55 String a = "test", String b = "test", a != b Oct 11 03:47:00 but a.equals(b) Oct 11 03:47:05 Ah. Oct 11 03:47:27 so in java, strings are mutable? Oct 11 03:47:32 JacobTabak: Actually, in many cases, "a == b" there, because of how the compiler sometimes reuses string literals. Oct 11 03:47:37 no Oct 11 03:47:37 Agamemnus: No, they're immutable. Oct 11 03:47:55 A StringBuilder is a mutable String. Oct 11 03:48:25 i don't see why "a" should ever not equal "b" Oct 11 03:48:26 er Oct 11 03:48:28 a, b Oct 11 03:48:51 unless you were.. adding properties to them? Oct 11 03:48:55 == doesnt check for string equality Oct 11 03:48:57 Agamemnus: "==" is about reference equality ("address 1231232 versus address 0933535", not value equality. Oct 11 03:49:00 ")* Oct 11 03:49:29 ok anyway... question for anyone else here... how do i get implemented interfaces with reflection? Oct 11 03:49:33 but, for example, in Javascript, immutable things can be compared by "value" Oct 11 03:49:57 Agamemnus: Immutability has nothing to do with how == works. Oct 11 03:49:59 nm found it Oct 11 03:50:18 In C#, strings are immutable, and == works as you are speaking here (it compares *values*). Oct 11 03:50:19 i don't think mutability is relevant to the issue here Oct 11 03:50:54 The Java developers could've made == do a value-equality comparison. I'm not sure why they didn't, really. Oct 11 03:51:20 They overloaded + for Strings. So why not ==? Oct 11 03:51:38 i think comparing references is far more common Oct 11 03:51:43 For strings? Oct 11 03:51:45 i hardly ever use compare by value Oct 11 03:51:56 strings are special i guess Oct 11 03:52:02 I see, I see. I will try to remember that == might not get me true for strings Oct 11 03:52:06 thanks Oct 11 03:52:07 it won't ever Oct 11 03:52:11 and your ide will warn you Oct 11 03:52:18 it will work for strings if they are interned Oct 11 03:52:22 i mean obviously it will sometimes, but only dumb luck Oct 11 03:52:47 Right, g00s, but that's a compiler-implementation detail that Agamemnus should not ever worry about. :D Oct 11 03:53:46 equals is less useful than comparable for sure Oct 11 03:54:02 but both are pretty useful ! Oct 11 03:54:55 if i recall, the string equals method first (1) compares the size, if not same size they aren't equal and (2) compares the memoized hashes (compaing ints is much fatster) Oct 11 03:55:12 I think Android's String.equals implementation is in native code. Oct 11 03:55:17 i am writing tests for mediastore content provider... so not fun Oct 11 03:55:18 The JVM one does what you say, though, I think. Oct 11 03:55:35 TacticalJoke hm, it would be harmony Oct 11 03:57:34 oh, libdvm, libart Oct 11 03:57:40 I know only because I was looking the other day: @Override public native boolean equals(Object object); Oct 11 03:58:05 huh thats weird @Override public boolean equals(Object other) { Oct 11 03:58:07 I kinda feel warm and happy when I see 'native' in the API. Oct 11 03:58:16 gross, i don't Oct 11 03:58:21 Where are you seeing that? In Harmony? Oct 11 03:58:32 java interfacing with c is always a shitmess Oct 11 03:58:33 'native' is so cool and fast, though. :D Oct 11 03:58:44 Oh. Don't know much about that. Oct 11 03:58:49 That makes sense. Hmm. Oct 11 03:59:13 I used to do that in .NET, and it wasn't nice or particularly fast, I guess. Oct 11 03:59:43 Sometimes the performance benefits outweighed the drawbacks. Oct 11 04:00:16 i looked at both libart and libdvm, string equals is not native Oct 11 04:00:23 not sure where you saw that :) Oct 11 04:01:10 are u talking to someone Oct 11 04:01:11 https://android.googlesource.com/platform/libcore/+/10d1f630d8df0064ed966193fa8c9d10a96a8321/libdvm/src/main/java/java/lang/String.java Oct 11 04:01:16 or me Oct 11 04:01:35 i was talking to TacticalJoke Oct 11 04:01:44 I'm a ghost to JacobTabak. Oct 11 04:01:52 Ever since I criticised IntelliJ and Android development in general. Oct 11 04:02:01 JacobTabak did you put TacticalJoke on ignore :D Oct 11 04:02:03 I was harsh, I admit, but this is hours of my life and your lives. Oct 11 04:02:11 In fact, it's months and possibly years. Oct 11 04:02:43 Programming tools are like partners in a relationship. Oct 11 04:02:47 Kinda. Oct 11 04:03:18 android is kinda like stockholm syndrome Oct 11 04:03:24 for many i think Oct 11 04:03:35 Yes. Oct 11 04:03:40 That's exactly what I was thinking earlier! Oct 11 04:03:46 I've even noticed it in myself. Oct 11 04:03:52 I've started saying stuff like "Eclipse isn't *that* bad". Oct 11 04:06:03 g00s: Around six people were telling me I was trolling. At least two put me on ignore. Oct 11 04:06:12 It's like a religion. lol Oct 11 04:06:18 How dare he insult the prophet! Oct 11 04:07:38 :d Oct 11 04:08:05 robolectric is such a hack Oct 11 04:08:09 its like people implement only the methods they need Oct 11 04:08:17 and throw unsupportedoperation for everything else Oct 11 04:08:19 I think g00s put me on ignore Oct 11 04:08:21 which is fine Oct 11 04:08:27 but funny Oct 11 04:08:28 Agamemnus i did but its not working Oct 11 04:08:32 Aww Oct 11 04:08:45 That's because I am (going to be) a network op. Oct 11 04:08:49 In the future. Oct 11 04:09:02 The network can feel it. Oct 11 04:09:15 oh damn i think i know why Oct 11 04:09:37 g00s Oct 11 04:09:46 by the way you could have just told me... to like Oct 11 04:09:55 modify the static class variable Oct 11 04:10:03 i told you to learn java Oct 11 04:10:05 which was obvious in hindsight Oct 11 04:10:06 ugh Oct 11 04:10:18 Although I still managed to get to the instance Oct 11 04:11:06 hello all Oct 11 04:11:34 Ok I give up on attempting iOS development... its too painful Oct 11 04:12:17 its hard knowing ios and android well enough to be great at both Oct 11 04:12:20 Hi QubeZ Oct 11 04:12:27 they aren't getting simpler :) Oct 11 04:12:37 If you use Cordova, all you have to do is change your build tools, and your plugins Oct 11 04:12:44 ^_^ Oct 11 04:12:51 nobody uses ccordove Oct 11 04:13:04 here, anyhow :) Oct 11 04:13:08 i can't stand those multi-platfomr toolkits Oct 11 04:13:12 except for game dev like Unity Oct 11 04:13:14 which I am using Oct 11 04:13:53 on a less frustrating note.. im about to be a father for the 2nd time in about 2-5 more days Oct 11 04:14:03 Congrats. Oct 11 04:14:05 either the kid comes in 2 days or we induce in 5 days Oct 11 04:14:08 thanks :) Oct 11 04:14:12 Though you can't be a father more than once. :D Oct 11 04:14:15 a baby qube ? Oct 11 04:14:31 Actually, it does depend on how you define 'father'. Oct 11 04:14:31 2nd time in 2-5 days? you've been busy... Oct 11 04:14:31 ya, a 3x3 rubik qube Oct 11 04:15:13 heh Oct 11 04:16:39 so in one fell swoop I moved to ANdroid Studio and Git Oct 11 04:16:43 Eclipse + SVN no more Oct 11 04:16:55 better late then never Oct 11 04:16:57 * g00s wonders what svn has been up to these days Oct 11 04:16:58 *than Oct 11 04:17:11 g00s: probably generating a few errors here and there Oct 11 04:17:18 QubeZ: Do you do unit testing on the JVM? Oct 11 04:17:56 I haven't been unit testing... that is one big part of development I still need to learn the ropes on Oct 11 04:17:58 TacticalJoke you are obsessed with that Oct 11 04:18:07 g00s: It's the only thing stopping me moving. Grr. Oct 11 04:18:13 I test the hell out of apps my own way but I need to start unit testing Oct 11 04:18:21 TacticalJoke moving where ? Oct 11 04:18:25 To Android Studio. Oct 11 04:18:35 android studio is capable of the same testing ADT is Oct 11 04:18:40 what are you talking about ? Oct 11 04:18:44 In Eclipse, you can run unit tests on the JVM. Oct 11 04:18:55 I unit-test everything in my Android app that doesn't touch the Android API. Oct 11 04:19:14 problem is, the jvm has a different classpath than android does Oct 11 04:19:19 so fuck everything about that Oct 11 04:19:30 It works. They use the same packages. Oct 11 04:19:39 they are different implementations Oct 11 04:20:19 They have the same interaces, though. They should act the same. Oct 11 04:20:21 now harmony has gotten much better , but back in the day like froyo, you would have differences in behavior Oct 11 04:20:23 If they don't, there's a bug in Android. Oct 11 04:20:30 interfaces* Oct 11 04:20:32 for example, Calendar, regex, were problem areas Oct 11 04:20:43 TacticalJoke well, stay with eclipse. have fun Oct 11 04:20:56 What's the alternative? Run unit tests on a device? Oct 11 04:20:59 That's just crazy, IMO. Oct 11 04:21:09 Unit tests are supposed to be so fast that you run them all the time -- and then you get immediate feedback. Oct 11 04:21:24 yeah i don't disagree with that Oct 11 04:21:26 If they're a pain, you don't run them. Then they're not really "unit tests" anymore. Oct 11 04:21:36 Well, they might be, but they don't get used much. Oct 11 04:21:36 google should have had a simulator for that Oct 11 04:21:39 Yes. Oct 11 04:21:43 butthey dont Oct 11 04:21:55 so use genymotion at least Oct 11 04:22:24 if you have thousands of unit tests, well then ... i think you can annotate them for how expensive they are Oct 11 04:22:33 not an expert there Oct 11 04:31:00 TacticalJoke ponder on this for a while http://www.smashingmagazine.com/2014/10/02/what-every-app-developer-should-know-about-android/ Oct 11 04:34:38 TacticalJoke right now , i have problems like this http://stackoverflow.com/questions/19502853/android-4-3-ble-filtering-behaviour-of-startlescan Oct 11 04:34:57 so if you look at the one with 11 upvotes, you see the situation Oct 11 04:35:22 samsung, motorola, nexus devices all doing different things Oct 11 04:36:21 so i have the most craptastic code right now, to handle the bugs of all of these :) Oct 11 04:45:49 the weekend quiet has begun :) Oct 11 04:46:17 I read that article already. Oct 11 04:46:57 http://www.smashingmagazine.com/wp-content/uploads/2014/09/03-android-os-distribution-opt.png is interesting Oct 11 04:47:17 g00s: Wouldn't you say, though, that running unit tests on the JVM is very much like using any Java library in an Android app? Oct 11 04:47:18 not sure how they got that Oct 11 04:47:41 Let's say that my app uses Jackson for JSON parsing. Oct 11 04:47:48 It's a standard-Java thing. Oct 11 04:48:08 By using it my app, I'm assuming an analogy between the JVM and Dalvik/ART. Oct 11 04:48:15 In "Puzzle" on Google Play, 96% of all devices are running 4.0+ Oct 11 04:48:17 This assumption is required in order to reuse already-made Java components. Oct 11 04:48:27 wait Oct 11 04:48:28 If this assumption is broken, so much work needs to be remade *just* for Android. Oct 11 04:48:31 misread my stats Oct 11 04:48:40 84% :| Oct 11 04:49:00 I guess you have a lot of Gingerbread losers Oct 11 04:49:07 unable to get buy a new phone. Oct 11 04:49:35 TacticalJoke i have tried many libraries that work on the jvm but not android. so its not a great analogy ? Oct 11 04:49:46 Such as what? Oct 11 04:50:03 which libraries ? Oct 11 04:50:05 Ya. Oct 11 04:50:10 Just wondering. :) Oct 11 04:50:22 ok tj i unmuted you because i got tired of only seeing one side of these conversations. anything that relies on system properties that aren't set on android Oct 11 04:50:36 for one Oct 11 04:50:41 last few i tried were lmax disruptor, openhft java-chronicle, and Parboiled Oct 11 04:50:44 Okay. Oct 11 04:51:01 TacticalJoke you can make a java module in your android projects and run jvm test Oct 11 04:51:06 are you done Oct 11 04:51:09 saying that you can't do that? Oct 11 04:51:18 phew i hope that makes TacticalJoke happy ! Oct 11 04:51:20 JacobTabak: In IntelliJ? I tried that; it just said "clas not found". Oct 11 04:51:23 class* Oct 11 04:52:00 are you using gradle Oct 11 04:52:02 Yeah. Oct 11 04:52:13 I tried with and without Gradle. Oct 11 04:52:22 http://cl.ly/image/1a46261F1C0d Oct 11 04:52:26 In fact, I tried basically every permutation for hours. Oct 11 04:52:28 Is it normal to start playing audio in broadcastReciever from alarm? I mean maybe there can be some issues? Oct 11 04:52:35 actually this one http://cl.ly/image/0p20011b2u36 Oct 11 04:53:25 Hmm. Is that gonna work in the future? Oct 11 04:53:53 let me get my tarot cards Oct 11 04:53:58 signs point to yes Oct 11 04:54:03 since they changed it once already before beta Oct 11 04:54:09 and now they promised to be nicer to developers Oct 11 04:54:55 BTW, would you guys agree that Google has motivation to keep Android working like Java? For example, the Android documentation sometimes recommends Java libraries such as Jackson. Oct 11 04:55:08 I mean the "java.*" namespace. Oct 11 04:55:30 we'll see if the supreme court takes up the copyright case Oct 11 04:55:37 and if they do, how it rules ;) Oct 11 04:55:48 TacticalJoke once you set that up you can run tests with ./gradlew test Oct 11 04:55:51 If they lose that, I wonder what'll happen. Oct 11 04:55:55 if you want to run it from the ide there's another step Oct 11 04:56:00 Ah, okay. Oct 11 04:56:05 Is the other step really complex? :) Oct 11 04:56:10 no Oct 11 04:56:18 it involves creating a default jvm unit test run configuration Oct 11 04:57:42 Okay. Oct 11 04:58:20 Something confused me earlier. One of the Android devs claimed that you can do it with a simple testCompile thing: https://code.google.com/p/android/issues/detail?id=60916 "testCompile 'junit:junit:4.+'" That doesn't work. Not sure why he or she claimed it works. Oct 11 05:00:16 i think you misread the issue Oct 11 05:00:23 well, i'm sure Oct 11 05:01:32 "Creating a new android project with a dependency on a java module fails running the java unit test for the java module within Studio" Oct 11 05:02:14 your case is that your java test module has a dependency on the android module, not the other way around Oct 11 05:02:56 Oh. I can't even get the code working when I simply create a unit test (with no dependency on anything other than JUnit). Oct 11 05:03:00 But okay. I see your point here. Oct 11 05:03:19 My case is even more problematic. That explains the response in that bug. Oct 11 05:03:30 i don't see why its problematic though? Oct 11 05:03:38 i told you like 3 days ago I can tell you exactly how to do it Oct 11 05:03:45 it just requires a bit of workaround Oct 11 05:05:23 Okay. Oct 11 05:05:59 i suffered through this so you don't have to TacticalJoke Oct 11 05:06:07 i'm here for you. Oct 11 05:06:08 <3./ Oct 11 05:08:22 lol Oct 11 05:08:48 lasserix http://www.amazon.com/Seven-Bad-Ideas-Mainstream-Economists/dp/0307961184 Oct 11 05:10:19 Hello.. can someone please help me compile the android sdk? Oct 11 05:10:24 I am lost Oct 11 05:11:22 anyone? Oct 11 05:11:30 bueler? bueler ? Oct 11 05:11:46 after_r thats not really a question for here Oct 11 05:11:47 g00s: can you help? I am trying to compile just the build tools Oct 11 05:11:56 i have no idea; i just download it Oct 11 05:12:10 are you trying to get this running on BeOS or something ? Oct 11 05:12:20 on BSD Oct 11 05:12:26 OpenBSD Oct 11 05:12:31 but FreeBSD will work too Oct 11 05:12:38 eh - good luck , i have no idea Oct 11 05:14:23 capella did you see this ? https://news.ycombinator.com/item?id=8437367 Oct 11 05:15:56 ah, not yet ... I read a cool article earlier this year about hacking into routers Oct 11 05:18:10 JakeWharton hang on a sec on that PR, there's more stuff I'm adding... like it only has getString and getLong Oct 11 05:18:16 sorry I should've closed it earlier Oct 11 05:19:14 JacobTabak , you have JakeWharton handing press releases for you ? thats awesome Oct 11 05:19:33 nah i just wasn't expecting someone to look at it so quickly Oct 11 05:19:40 fix the signature of setColumnNames to not be so stupid and take ArrayList Oct 11 05:19:49 alright Oct 11 05:20:04 i was thinking Oct 11 05:20:05 i was commenting as to whether null should be allowed Oct 11 05:20:13 it would probably make more sense to have testcursor extend abstractcursor Oct 11 05:20:20 but Oct 11 05:20:22 seems illogical to ever allow that Oct 11 05:20:23 probably too late for that Oct 11 05:20:29 http://www.devttys0.com/2014/02/reversing-the-wrt120n-firmware-obfuscation/ Oct 11 05:29:37 Can I put a variable in strings.xml and then use it in strings.xml? Example. Hello @string/Hello there? Oct 11 05:31:28 eghdk try it ? Oct 11 05:31:51 no Oct 11 05:32:06 Damn. Oct 11 05:32:37 That kinda blows. Oct 11 05:33:20 yeah. you could use string formatting instead, load the first, load the second with the value from the first Oct 11 05:33:51 In general you don't want to combine strings if you have translations Oct 11 05:34:20 Exactly my issue right now. Oct 11 05:34:29 Worked myself into a corner. Oct 11 05:35:11 And I got all excited because it does auto complete in strings.xml when you start typing @string/... Oct 11 05:35:41 that's because you can reference other strings Oct 11 05:35:45 you can't combine them though Oct 11 05:36:26 Got it. Thanks Oct 11 05:36:29 I have to run. Have fun. :) Oct 11 05:38:18 For anyone that uses sqlite storage in production apps. Do you use any kind of library? Oct 11 05:39:15 wrote my own Oct 11 05:39:19 wasn't satisfied with the existing ones Oct 11 05:39:56 ormlite has worked well for me Oct 11 05:40:11 but recently i've not needed the complexity of an sqlite database Oct 11 05:40:20 JakeWharton: Is yours available on github? Oct 11 05:40:24 sometimes just storing json in sharedpreferences Oct 11 05:40:28 someday Oct 11 05:40:50 it's far from usable in a general purpose manner Oct 11 05:41:11 eghdk what kind of data ? Oct 11 05:41:13 Gotcha. Is it an orm approach that you take on it though? Oct 11 05:41:35 * g00s wonders what android APIs JakeWharton /does/ use Oct 11 05:41:45 android.view.* android.animation.* Oct 11 05:41:58 9oldandroids Oct 11 05:42:00 hurrr Oct 11 05:42:03 eghdk: it has orm capability but it's optional Oct 11 05:42:08 it's kind of like jOOQ Oct 11 05:42:28 yeah, jooq is cool Oct 11 05:42:33 g00s: Just talking about in general. Almost every app requires some kind of persistent storage and I'm curious if theres some industry standard. Write now we just write sql statements. Oct 11 05:43:14 eghdk ormlite is really well documented and the author answers a lot of the stackoverflow questions, just my 2c Oct 11 05:43:25 holy shit, talking about sqlite - i remember that horrendous bug when you advanced the cursor over the window boundary, and then if you moved backward it would reload the whole window on each move Oct 11 05:43:35 i dont like the join / foreign collection stuff so much though Oct 11 05:43:47 well, not sqlite - android apis :) Oct 11 05:44:23 eghdk there is also realm.io ; i haven't used it - and it has a native piece Oct 11 05:44:31 for k/v i use mvstore Oct 11 05:44:40 there is also mapdb for some things Oct 11 05:44:54 yeah. I read about realm.io Oct 11 05:45:15 mvstore is part of h2; i trust that guy Oct 11 05:45:15 I'm actually just more curious if using any of these libraries can produce faster search results in any way. Oct 11 05:45:32 realm.io - i have no idea how robust the stuff is Oct 11 05:45:53 eghdk mvstore for k/v will be much faster than sqlite Oct 11 05:46:00 but maybe not sqlite 4 :) Oct 11 05:46:09 but when will we see that , har har Oct 11 05:46:13 Because a friend of mine said that orm libraries should be optimized when making dificult searches and it can perform SELECTs faster than writing it out yourself Oct 11 05:46:27 mvstore? k/v? Oct 11 05:46:35 key value Oct 11 05:46:51 sharedPrefs? Oct 11 05:47:13 whats mvstore though? Oct 11 05:47:13 yeah ... but it shines when you have a lot of keys Oct 11 05:47:19 like millions Oct 11 05:47:31 http://www.h2database.com/html/mvstore.html Oct 11 05:48:01 Thanks. Any I hadn't heard of sqlite4... when that hits... it's the android OS that will have to update to sqlite4 right? Oct 11 05:48:11 seems the trend for sqlite and h2 is to isolate the engine as some k/v store Oct 11 05:48:38 eghdk meh, forget about that happening any time soon. we''ll talk about that again in maybe 5 years Oct 11 05:48:46 hah. Oct 11 05:49:12 its easy to get sqlite in your own iOS app - not sure how easy it is to swap core data to use it Oct 11 05:49:52 actually, i thought some of JOOQ worked on android Oct 11 05:50:00 but thats totally different Oct 11 05:50:32 ah nm, costs $$$ Oct 11 05:51:10 oh wait, the free edition works with sqlite Oct 11 05:51:24 but only part of the functionality worked with android afaik Oct 11 05:52:32 i was thinking about writing something like rxjava-jdbc but for android's apis Oct 11 05:52:44 JakeWharton will probably beat me to it though Oct 11 05:53:35 ours is rxjava based Oct 11 05:53:42 sorry Oct 11 05:53:54 hopefully it will get released sometime Oct 11 05:54:09 **note to self** lookup rxjava Oct 11 05:54:17 it's basically jOOQ light with rxjava and Uri notifications (like a content provider) Oct 11 05:54:32 that sounds very nice Oct 11 05:55:00 it's ok Oct 11 05:55:04 it'll be nice someday Oct 11 06:01:22 g00s: jooq is only paid for oracle Oct 11 06:02:32 :) Oct 11 06:04:22 dont know if it generates database from model or not Oct 11 06:05:04 other way around Oct 11 06:05:18 generates model from database? Oct 11 06:05:22 yes Oct 11 06:05:28 ah, ok Oct 11 06:06:06 was wondering why andorid sources takes like 25 gb Oct 11 06:06:17 but they're not just adroid but gcc'a and stuff Oct 11 06:06:47 it's an entire OS. there's a lot more than the just the core APIs. Oct 11 06:07:02 yes Oct 11 06:07:27 JakeWharton: you got me with simulator ;) Oct 11 06:08:40 got interested how robolectric and layoutlib Oct 11 06:08:47 work Oct 11 06:10:09 robolectric just compiles the core APIs and tries to shim, stub, or fake the bits that are hard Oct 11 06:10:50 then it uses crazy classloader tricks and bytecode rewriting to actually allow compiling against the android.jar but running against its own Oct 11 06:11:19 layoutlib is mostly the same, just a re-implementation of the view and resource system to work on the JVM Oct 11 06:12:00 minus the crazy classloader nonsense Oct 11 06:12:36 the /frameworks/base/core stuff ? Oct 11 06:14:01 which? robolectric? Oct 11 06:14:09 how can I reverse a ByteBuffer's read order? Oct 11 06:14:34 I'm getting it as an IntBuffer and then reading into an array Oct 11 06:14:58 knapper_tech: flip()? Oct 11 06:15:16 JakeWharton: in android sources there's folder like that. from what I see it's just whole android core api Oct 11 06:15:26 about to find out =) Oct 11 06:15:26 activities and stuff Oct 11 06:15:27 yeah there's a few Oct 11 06:15:33 core is the big one though Oct 11 06:17:32 JakeWharton, got an underflow exception.. Oct 11 06:17:42 i have never used ByteBuffer or Buffer in my life Oct 11 06:17:45 was just a guess Oct 11 06:17:46 JakeWharton, lol Oct 11 06:17:56 wonder what the mark is.. Oct 11 06:18:06 mark/reset Oct 11 06:18:17 it's how you read and then rewrind Oct 11 06:18:33 super awkward API Oct 11 06:18:59 knapper_tech, just write the buffer out in reverse? Oct 11 06:19:36 lol Oct 11 06:19:46 JakeWharton: well will clone robolectric and read ;) Oct 11 06:19:49 quick question Oct 11 06:19:51 it's android project or just maven one ? Oct 11 06:20:03 I'm reading in with glReadPixels Oct 11 06:20:06 just maven Oct 11 06:20:14 and then just putting the contents into an int array in the end Oct 11 06:20:17 so let's say a function must throw a FileNotFoundException if a file isn't found Oct 11 06:20:26 gotta find the right API magic Oct 11 06:20:45 it then runs a different file in a different package to check for the file's existence etc. Oct 11 06:21:09 runs a different file ? Oct 11 06:21:10 and that different file -- what's the proper way to "pass" the "throw"? Oct 11 06:21:16 yeah hold on Oct 11 06:21:18 g00s: class Oct 11 06:21:25 Agamemnus: you don't have to do anything Oct 11 06:21:40 if the method you call throws it will bubble up from your method as well Oct 11 06:22:00 http://pastebin.com/v8f1jgFn Oct 11 06:22:41 oh wait Oct 11 06:23:05 never mind Oct 11 06:23:11 delete the try/catch and just add "throws FileNotFoundException" to the second method Oct 11 06:23:54 well i think i see the problem Oct 11 06:23:56 nono Oct 11 06:24:03 part of the problem anyway Oct 11 06:24:16 it thinks (mMethod != kCompressStored) Oct 11 06:24:19 so it returns a null Oct 11 06:24:26 and then later i get a null pointer error Oct 11 06:25:06 debug ! Oct 11 06:25:56 i am certain it is not compressed Oct 11 06:30:52 theres no i am in progrmng Oct 11 06:31:53 is this a good way to create a client side temporal/per session cache http://stackoverflow.com/a/3039169/1208656 Oct 11 06:32:09 old post Oct 11 06:32:21 im sure there is something new Oct 11 06:35:43 time to check guava Oct 11 06:40:10 anyone who used the online action bar style generator? how can I decor the separtor line? Oct 11 06:42:32 or how can I change the Tab indicator color in my custom tab? Oct 11 06:43:01 mapmaker looks cool Oct 11 06:43:08 you can do it simply too with just an lru cache Oct 11 06:49:16 interesting http://jimulabs.com/ Oct 11 06:49:52 very limited usefulness Oct 11 06:50:16 JacobTabak have you tried it already ? Oct 11 06:50:41 i think it would be nice for a designer Oct 11 06:50:49 maybe Oct 11 06:50:53 no, i haven't tried it Oct 11 06:50:59 my opinion doesn't matter though Oct 11 06:51:04 heh Oct 11 06:51:06 because i guess i'm not the target audience Oct 11 06:51:09 i'm serious though Oct 11 06:51:27 i mean why would you want a tool like that when you your brain fills in the gaps that layoutlib leaves out Oct 11 06:51:32 pretty irrelevant to a designer too Oct 11 06:51:47 oh god, now you have StingRay_ going about design Oct 11 06:52:18 na, just no real point… suppose you can have PSD file setup to do the same think Oct 11 06:52:35 hell g00s even that sketch has all the android components and metrics for devices now in templates Oct 11 06:52:43 i have yet to see any of StingRay_'s design:P Oct 11 06:52:51 StingRay_ sketch, the mac app ? Oct 11 06:52:54 yes Oct 11 06:53:03 man i tried that piece of shit Oct 11 06:53:11 lol Oct 11 06:53:14 beautiful, easy to use, crashed doing anything Oct 11 06:53:21 huh, not for me Oct 11 06:53:28 quick to knock up a UI idea Oct 11 06:53:33 i'm writing the devs off as completely incompetent Oct 11 06:53:45 JacobTabak you wont unless you look back 10 years, or play video games Oct 11 06:53:54 meanwhile - inkscape finally has new builds for mac, so i'm using that again Oct 11 06:54:14 as in I think the last print work I did was …oh wait…17 years ago, the last TV work I did about 10 years ago Oct 11 06:54:29 g00s oh did not know there was new builds Oct 11 06:54:40 thought it was left un-maintained ? Oct 11 06:54:46 get em while they are hot Oct 11 06:55:01 i thikn at this point they are caught up Oct 11 06:55:24 those guys are crazy too though Oct 11 07:18:02 Hey , I have a textview (Only view in the activity), and I want to set Margins for it programmatically, ,programmatic counterpart to android:layout_marginTop /layout_marginBottom Oct 11 07:20:57 killer LayoutParams Oct 11 07:22:08 I did something like layout.setPadding(23,23,23,23) , so are they in dp and what order are they , I mean First one is Top / Bottom. I don't know the order Oct 11 07:22:25 are you serious ? Oct 11 07:22:49 1. no they are not and you can easy find that out with… google search or looking at the method Oct 11 07:22:58 2. look at the method in the docs Oct 11 07:23:07 so I just pulled some of my friend's code from github, is there a way to know where a particular function was called in android studio Oct 11 07:23:09 3. padding != layoutParams.margins() Oct 11 07:25:53 I think I was looking for padding as suggested by this http://stackoverflow.com/questions/21959050/android-beginner-difference-between-padding-and-margin Oct 11 07:26:53 Thanx Oct 11 07:42:29 can anyone tell me how to change the color of tab indicator? Oct 11 07:45:44 any place to get simple phonegap templates to get you started? or do we have to reinvent the wheel? Oct 11 07:45:49 (free templates) Oct 11 07:46:29 supay you maybe in the wrong place Oct 11 07:46:41 oops, sorry, wrong chan window Oct 11 07:46:44 this is android dev, you maybe better in #phonegap Oct 11 07:46:49 :) Oct 11 07:46:56 sorry Oct 11 07:47:38 later Oct 11 07:50:28 http://material-design.storage.googleapis.com/images/layout-metrics-ratiokeylines-keylines_18_large_mdpi.png Oct 11 07:50:37 what should be the size of the header? 9/25 of the screen? Oct 11 07:53:26 yoavst what do you mean ? Oct 11 07:53:38 you are just doing a direct copy of that side menu ? Oct 11 07:53:56 StingRay_: I mean what should be the size of the drawer's header Oct 11 07:54:09 does that not depend on the design and what it contains ? Oct 11 07:54:25 not sure there is and should be an absolute answer to that Oct 11 07:54:35 If you want to copy that picture, start counting pixels Oct 11 07:54:43 If you're making your own design, see what makes sense Oct 11 07:55:06 ok Oct 11 07:55:15 They also said that the width of the drawer is: Mobile: side nav width = screen width - app bar height Oct 11 07:55:34 How do I implement that? Oct 11 07:55:43 yoavst look at it this way… do you see any wasted space there ? Oct 11 07:55:48 on that screenshot ? Oct 11 07:56:02 only in the header Oct 11 07:56:30 it's 60% a waste Oct 11 07:56:32 all of it Oct 11 07:56:57 I would really say you dont want to copy another design unless you have no idea yourself Oct 11 07:57:16 but be aware that the decisions for that design are not based of your own reasoning Oct 11 07:57:28 I would like to follow the new guidelines Oct 11 07:57:40 follow yes Oct 11 07:57:48 copy… thats a bit odd Oct 11 07:58:15 if everyone copies them… all apps look the same Oct 11 07:58:30 But, fragmentation! Oct 11 07:58:30 there are already 50,000 apps that do the same thing :) Oct 11 07:58:46 fragmentation ? in design ? erm… ok Oct 11 07:59:06 what about fragmentation in logos ? color schemes ? sizes ? Oct 11 07:59:44 It's sarcasm ;0; Oct 11 07:59:47 games that dont copy each other suffer the same fragmentation Oct 11 07:59:52 oh Oct 11 07:59:58 been up 18h Oct 11 08:00:12 my sarcasm detector is …well…as fk'd as I am Oct 11 08:00:28 Keep going, I think the record is 50 before you drop dead Oct 11 08:00:43 na… you would pass out before then Oct 11 08:00:48 I've done 38 ish Oct 11 08:00:51 when I use android:background to change the bg color of tabview all the tab indicator and separtor line are gone. help on how to handle this.. Oct 11 08:22:47 Darklust: record is a week or two Oct 11 08:24:05 p_l: I think I read something a while ago about a guy playing an MMO for 50 hours straight, he decided to go to the toilet and when he stood up he had an embolism and died Oct 11 08:24:30 Not really sleep-deprivation related I suppose Oct 11 08:29:49 hello Oct 11 08:29:59 I implemented pagertabstrip as well as pagertitlestrip but cannot achieve this http://developer.android.com/design/media/tabs_scrolly.mp4 Oct 11 08:30:23 it shows only 1 title (current one) in the middle and the previous next ones at the edges in a slightly faded color Oct 11 08:30:30 i want to show all together, compact how do i do it ? Oct 11 08:35:51 there's a third party library that does that Oct 11 08:36:06 slidingtabstrip or osmething Oct 11 08:38:35 i see Oct 11 08:38:39 so not supported natively Oct 11 08:53:15 no Oct 11 08:53:25 that's a very opinionated design Oct 11 09:05:55 I have a viewPager and I use a FragmentPagerAdapter. I'm using pager.setPageMargin(-200); so I can have a part of next and previous pages displayed Oct 11 09:06:35 The thing is I want when I click on the current page I want the other pages to start an animation Oct 11 09:07:00 I use getFragmentTag in my Activity to get the fragments Oct 11 09:07:29 but only next item is currently instantiated so I can animated Oct 11 09:08:37 so somehow I have to create the "previous" fragment too Oct 11 09:09:39 ( although I'm already seeing it on screen ) Oct 11 09:10:01 well if anyone understands what I'm asking ... :/ Oct 11 09:10:50 pager.setOffscreenPageLimit(2); seems it creates current and the next too pages on start Oct 11 09:18:12 Question: I'm trying to write a quick, simple app which my sister and her boyfriend can use, to share audio snippets to playback to their kid, while he's away at work (he works on an oil rig). Oct 11 09:19:00 I'm fine with almost all of it, but I'm wondering what you guys think would be the easiest, quickest and cheapest (preferably free), way to store/retrieve audio on the web Oct 11 09:19:57 I've very recently been introduced to django and storing stuff on servers etc. But I'm not looking to setup my own thing if I can help it. I'm fairly sure Google or Dropbox probably have some sort of service I can use that's already setup? Oct 11 09:20:35 google drive Oct 11 09:20:59 Will this require login/auth services within the app? Oct 11 09:22:03 well, it will require the drive api Oct 11 09:22:10 and it does do auth eys Oct 11 09:22:13 yes* Oct 11 09:23:16 if thats all they wanted, they could just use the gdrive app anyways Oct 11 09:23:18 OK, thanks. Last question - before I dive in. Can I somehow setup a drive account for this purpose, or do I need to set it up somehow so both their accounts can access the files.. Any idea how that all works? Oct 11 09:23:20 have a shared folder Oct 11 09:24:11 OK. Thanks heaps. Oct 11 09:24:30 that last sentence was not an answer to that question you asked last Oct 11 09:24:47 it was continued from the "just use the google drive app" sentence I typed Oct 11 09:26:31 Yeah but 'have a shared folder' pretty much answered it anyway ;) Oct 11 09:26:58 They could just use drive for this whole thing. But I think they want to emulate 'pages' where he can record himself reading the page of the book, so she can play it back Oct 11 09:27:01 And she's useless at tech Oct 11 10:34:37 stupid question... I would expect this simple program to print false but it prints true: http://pastebin.com/NkfcjvWt Oct 11 10:42:35 You can't override variables Oct 11 10:43:47 SimonVT: thx. late night Oct 11 11:13:00 Hello, I'm trying to transfer data using Android native SIP stack. No success so far... Is it possible? Oct 11 11:25:38 hey, im using AS as was suggested.. and after creating a test project, all i now see is a progressbar that says - "Gradle: Download http://services.gradle.org/distri..." with no progress since the past 15mins. can i cancel this? or would i need it? Oct 11 11:25:43 or is something wrong? Oct 11 11:26:08 click on it Oct 11 11:26:29 bankai_au: click on 'cancel' ? Oct 11 11:26:41 well what does it say, is the progress bar progressing? Oct 11 11:26:50 nope.. it isnt. Oct 11 11:27:41 is your connection crap or are you behind a proxy ? Oct 11 11:27:55 none of those.. Oct 11 11:28:01 i hope :/ Oct 11 11:30:10 i guess it's possible it got stuck, but it's going to have to finish at some point Oct 11 11:30:33 alright.. Oct 11 11:30:35 thanks! Oct 11 11:41:06 can i manually install gradle? :/ Oct 11 11:41:13 this seems to be taking forever Oct 11 11:43:32 lolno, i just checked the size of the file.. its incresing! Oct 11 11:43:44 increasing* .. that means its working Oct 11 12:24:43 hi Oct 11 12:31:22 hi all Oct 11 12:31:32 Does someone here use Android Studio? Oct 11 12:32:34 yes Oct 11 12:32:54 ... :) Oct 11 12:33:15 and on what OS -> Linux or Win Oct 11 12:33:28 mac and win Oct 11 12:33:50 linux Oct 11 12:34:13 I'm new on the Android Studio and I have a problem getting a default app to Run Oct 11 12:34:32 it's complaining about :app_debugCompile Oct 11 12:34:43 it can't resolve it as a dependency Oct 11 12:34:53 I'm using Archlinux Oct 11 12:35:42 https://dpaste.de/jXYf Oct 11 12:35:50 hi anyone can help this? Oct 11 12:36:11 qb.setTables( ProjectContract.TABLE ); makes me crazy, i don't know where to put it Oct 11 12:36:47 hello Oct 11 12:36:58 h4k1m: hi Oct 11 12:36:59 I can't locate android_winusb.inf file Oct 11 12:37:47 semanty: I'm using SDK v19 but can't this file nor the usb driver folder which is supposed to be inside extras folder Oct 11 12:38:08 h4k1m: sorry, i am a newbie, cannot help you on this Oct 11 12:38:28 h4k1m: Are you looking in the correct sdk folder? Oct 11 12:39:41 Thorbear: I'm using adt bundle and I'm searching inside of its sdk folder Oct 11 12:39:49 semanty: no problem Oct 11 12:40:30 Right, so you have not installed android studio and used the attached sdk manager? Oct 11 12:40:35 h4k1m: do you know android well, i have a problem for qb.setTables( ProjectContract.TABLE ); on https://dpaste.de/jXYf if you can help Oct 11 12:41:41 Thorbear: no I'm using adt bundle (eclipse bundled with android sdk) Oct 11 12:43:06 semanty: I'm a noob like you but what's exactly the problem with sqlitequerybuilder? Oct 11 12:43:15 maybe your sql request is incorrect Oct 11 12:44:23 h4k1m: it may be right, because if i put qb.setTables( ProjectContract.TABLE ); outside above switch, the first case can be right Oct 11 12:44:54 semanty: What exactly is your problem? What are you trying to make work, but can't? Oct 11 12:45:48 semanty: If you're hoping to have PROJECT_DIR query for all items, without selection, then you'll need to move setTables up there, and remove the break; between _DIR and _ITEM Oct 11 12:45:51 can someone tell me how to handle this error in Android Studio: https://www.smirky.net/error Oct 11 12:45:52 Thorbear: when i put qb.setTables( ProjectContract.TABLE ); into switch, it cause the app crash Oct 11 12:46:17 semanty: And what does the log say? Oct 11 12:47:59 Thorbear: do you suggest to me to use android studio? Oct 11 12:49:07 Thorbear: https://dpaste.de/BtNx Oct 11 12:49:20 Thorbear: youc an check the log on the dpaste Oct 11 12:49:58 h4k1m: No, I just wanted to make sure you were looking at the correct sdk, since quite a few people have been confused by the fact that android studio uses a different sdk folder. Oct 11 12:50:56 Thorbear: I'm reading on the web that the file I'm searching for should be located in (on windows): c:\\.android\ folder Oct 11 12:51:00 Thorbear: i need to query only project_dir, step_dir, event_dir Oct 11 12:51:03 but I can't find it there Oct 11 12:52:27 semanty: and was this with the exact code in the previous paste? Or with some changes? Oct 11 12:53:03 Thorbear: i do not change just send the logcat records, Oct 11 12:53:19 Thorbear: you can also check https://dpaste.de/oNqf for clear view of log Oct 11 12:53:45 semanty: In the code you pasted there is no tables set for _DIR Oct 11 12:54:21 case ProjectContract.PROJECT_ITEM: Oct 11 12:54:23 qb.setTables( ProjectContract.TABLE ); Oct 11 12:54:33 Thorbear: this is not right? Oct 11 12:54:37 That's for _ITEM, not _DIR Oct 11 12:55:12 Thorbear: but if i move it outside the switch, i won't cause the issue Oct 11 12:55:43 But then you get the wrong results for all other queries. It is supposed to be inside the switch Oct 11 12:56:15 Thorbear: oh, sorry, it is item i should get Oct 11 12:56:35 Thorbear: yes, it should be in the switch Oct 11 12:56:59 Thorbear: i need for the 3 _item, but it did not work Oct 11 12:58:34 semanty: I think what you want is something like this http://pastebin.com/duQkHbi9 Oct 11 12:59:21 Thorbear: sorry, i can not enter into the page, could you paste it on dpaste.de ? Oct 11 12:59:54 How can you not enter pastebin? O.o Oct 11 13:00:50 semanty: https://dpaste.de/yw1J Oct 11 13:00:56 Thorbear: i do not understand either. it may be forbidden by the net provider Oct 11 13:01:32 Thorbear: i will have a try Oct 11 13:15:13 Thorbear: the first case is OK, but the other 2 cases causes the issue log https://dpaste.de/C99f Oct 11 13:16:42 Did you make the same change to those two as well? Oct 11 13:16:51 Thorbear: yes, deifnitely Oct 11 13:17:09 Thorbear: open_date is for the project table from ProjectContract Oct 11 13:17:46 Thorbear: this confuse me no such column: open_date (code 1): , while compiling: SELECT * FROM step ORDER BY open_date DESC Oct 11 13:18:18 Thorbear: step table has no field open_date Oct 11 13:18:33 then it looks like you've set the DEFAULT_SORT from ProjectContract for all three cases, instead of the one from StepContract for StepContract, and the one from EventContract for EventContract Oct 11 13:19:09 Thorbear: yeah, i do think right, but i have no other way to realized it for each one Oct 11 13:19:41 What? Oct 11 13:21:32 Thorbear: i mean, could you suggest a way to set DEFAULT_SORT for the 3 contracts dynamically? Oct 11 13:22:49 Thorbear: i just have a try by setting Cursor cursor = qb.query(db, projection, selection, selectionArgs, null, null, null) if i do not use orderBy, it works, but i need orderBy Oct 11 13:23:40 Now I'm confused, isn't DEFAULT_SORT a variable you've set individually for ProjectContract, StepContract and EventContract? Oct 11 13:24:39 Thorbear: yes, that also confuse me, each contract has a default sort, like for eventContract public static final String DEFAULT_SORT = Column.DATE + " DESC"; Oct 11 13:26:11 And did you use that variable? Oct 11 13:27:40 Thorbear: i use orderBy = (TextUtils.isEmpty(sortOrder)) ? EventContract.DEFAULT_SORT: sortOrder; Oct 11 13:28:48 I'm trying to transfer data using Android native SIP stack. No success so far... Is it possible? Oct 11 13:29:35 semanty: and Column.DATE exist in the table for EventContract? Oct 11 13:30:07 Thorbear: yes Oct 11 13:30:29 Thorbear: i directly checked the database Oct 11 13:31:05 And what about the same variable for StepContract? Oct 11 13:32:07 Thorbear: yes Oct 11 13:33:05 Thorbear: i know the reason, i passed the projectContract default order Oct 11 13:33:32 Hehe, not so strange after all then Oct 11 13:33:57 Thorbear: yes, quote thankful for your help, now it seems perfect Oct 11 13:34:20 You're welcome =) Oct 11 13:35:02 :) Oct 11 13:39:17 sorry this is a bit abstract its for a project in android I'm doing Oct 11 13:39:19 hi everyone, learning about testing and got confused.. I dont understand the difference between 'test driven development' and 'fundamental test process'.. to me it seems like its the same basic idea of .. Write a test -> Implement it -> Watch it fail -> Write the code -> Watch it succeed Oct 11 13:48:25 hi, guys, I'm having a bit of an issue while attempting to play around with GCM Oct 11 13:48:39 import com.google.android.gms.gcm.GoogleCloudMessaging; Oct 11 13:48:43 won't resolve Oct 11 13:48:53 A google telles me to install Google Play wservices Oct 11 13:48:57 but I have that installed Oct 11 13:49:23 (I'm using Anroid Studio btw) Oct 11 13:52:42 Hello everyone Oct 11 13:55:11 hi Oct 11 13:55:30 dotrb: you familiarw ith google play services? Oct 11 13:55:51 a little bit i think Oct 11 13:55:54 I have it installed according to Android studio Oct 11 13:56:01 but noone of thei mports are wokring Oct 11 13:56:11 import com.google.android.gms.gcm.GoogleCloudMessaging; Oct 11 13:56:15 doesn't work Oct 11 13:56:27 import android.support.v4.content.WakefulBroadcastReceiver; Oct 11 13:56:30 neither does that Oct 11 13:56:33 dotrb: help? Oct 11 13:56:57 what is the exact error? Oct 11 13:58:13 need some help with google maps myself Oct 11 13:58:17 dotrb: it cannot be found Oct 11 13:58:38 JZTech101 have you installed google play services via the android sdk? Oct 11 13:58:43 yes Oct 11 13:58:50 it specifically says it cannot resolve android Oct 11 13:59:03 for the first Oct 11 13:59:16 for the second it says it cannot resolve wakefulbroadcastreceiver Oct 11 13:59:46 JZTech101 does gradle sync conclude properly? Oct 11 14:00:34 dotrb: afaik yes. but the gradle is the default build.gradle Oct 11 14:00:40 should something be added to it? Oct 11 14:01:23 Presumably you've added play services and the support library as dependencies Oct 11 14:01:33 have you added google play services as a dependency in build.gradle? Oct 11 14:01:33 hm Oct 11 14:01:46 I'm just starting out.. so.. no.. Oct 11 14:01:48 how do I do that? Oct 11 14:02:33 check your build.gradle file and see if it has compile 'com.google.android.gms:play-services...' in there Oct 11 14:02:39 as a dependency Oct 11 14:03:11 I chcked both Oct 11 14:03:13 nope Oct 11 14:03:19 then add it Oct 11 14:03:32 first search for gradleplease Oct 11 14:03:34 on google Oct 11 14:03:36 with the three dots? Oct 11 14:03:39 nope Oct 11 14:03:48 there's whole lot of syntax to it Oct 11 14:03:57 search for gradleplease on google Oct 11 14:04:06 sigh Oct 11 14:04:13 follow the first link, and search for google play services in there Oct 11 14:04:34 and add the line it suggests to your build.gradle under the dependency heading Oct 11 14:05:38 ok Oct 11 14:06:02 follow a similar procedure for any other libraries you might want to include in your project Oct 11 14:06:35 it's as simple as adding a line to your build.gradle, no need to download anything, no nothing Oct 11 14:08:41 ah thank you Oct 11 14:09:38 np Oct 11 14:12:55 so if you put markers on a map, and zoom, will they converge automatically, or should some arrangement be made? Oct 11 14:13:02 zoom out Oct 11 14:23:38 would you say that one AS project is an app, or is it common do make two makes, each its own app, possibly related, like free + pro version Oct 11 14:23:45 or app + unlocker Oct 11 14:23:57 *modules Oct 11 14:29:34 how I can move mouse pointer by using java when mouse is connected? Oct 11 14:31:32 major version 51 is newer than 50, the highest major version supported by this compiler. Oct 11 14:31:34 um Oct 11 14:31:45 is there a way to around that? Oct 11 14:31:59 thats apparently causing my build to fail Oct 11 14:32:13 > Lint found errors in the project; aborting build. Oct 11 14:41:45 lets try again Oct 11 14:41:47 how I can move mouse pointer by using java when mouse is connected? Oct 11 14:59:04 stefkos, maybe same way as when mouse is disconnected? Oct 11 15:00:23 Hi All, trying to develop an app that requires users to log in, which I need to check through an API. I know I need to do this through AsyncTask, but can't really find anything that works, is anyone able to give me a good link to how to do this? Oct 11 15:00:40 Obviously I don't want the UI thread to be held up whilst it goes off and tries to log in (not that this should take that long) Oct 11 15:00:47 logs I go what? Oct 11 15:01:06 good cause you cant do network on ui Oct 11 15:01:32 logs into what * Oct 11 15:02:15 whatitis: We run a web service, and I wanna validate that they are a user on the web service through the app, and get some default values for the app to use. Oct 11 15:02:36 it'll be running off php, and can be coded either as a soap style server, or restful api style. Oct 11 15:02:46 they are already registered to your service? Oct 11 15:02:57 yeah Oct 11 15:03:10 if not, I may provide a way for them to register, but for now, they will all be registered already Oct 11 15:05:17 so, you know you cant do network on ui thread. so leaves ya asynctask or raw threads. what are you stuck on with processing? how to get results or actual network interaction? Oct 11 15:05:34 whatitis, ohh sorry, im here Oct 11 15:05:43 just readed Oct 11 15:05:45 whatitis: actual network interaction. Oct 11 15:05:58 I must have mouse connected but do not want to have cursor Oct 11 15:06:04 Yeah, I didn't know you couldn't do network on UI thread until I was getting the NEtworkOnMainThread exception hehe Oct 11 15:06:57 you said you have api for logging in? Oct 11 15:08:48 sdousley, if you already have code for logging in, just dont have it working with getting results from a thread, look up handlers Oct 11 15:10:07 whatitis: ah ok Oct 11 15:10:08 or read on asynctask Oct 11 15:10:12 *sigh* Oct 11 15:10:22 yeah, I was thinking like how would the UI thread know that the login has succeeded Oct 11 15:10:33 a Handler I'm guessing can do that, by returning bool Oct 11 15:11:00 as you have methods that post pre&post results on ui,&has doInBackground for off ui work Oct 11 15:11:14 I feel like SDK should check if people have read http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601 before allowing compiling of any apks Oct 11 15:12:20 whatitis: well, I don't have the methods in Java to do this yet Oct 11 15:18:02 I was saying asynctask has methods Oct 11 15:22:53 stefkos, no cursor on your app, or whole system? Oct 11 15:24:03 I create one app and attached only part of mouse (right and left click). the problem is when I click left/right MB then I see mouse pointer on screen Oct 11 15:24:07 need it only for my app Oct 11 15:25:24 is this emulator or bt mouse to device? & why wouldnt you wanna see cursor? Oct 11 15:25:42 you can say its normal mouse Oct 11 15:25:47 just need 2 buttons from it Oct 11 15:26:05 tablet is used by museum Oct 11 15:26:29 lost me Oct 11 15:26:52 how can you use mouse without a visual locator? Oct 11 15:27:20 its a requirement Oct 11 15:27:48 it only needs the clicks? location doesnt matter? Oct 11 15:28:02 Im doing now some stuff for this guys -> https://pl-pl.facebook.com/solidaritycentre Oct 11 15:28:07 yep Oct 11 15:28:44 what has google showed you? Oct 11 15:29:09 trying to find something but no solution Oct 11 15:29:15 till now Oct 11 15:29:22 seems like itd be something you might be able to override, the cursor drawable Oct 11 15:29:41 google mouse drawable Oct 11 15:29:47 lets see Oct 11 15:30:57 hmm Oct 11 15:31:55 is that in a selector for a bt mouse? Oct 11 15:32:57 whatitis, yep Oct 11 15:33:05 reading whats that Oct 11 15:36:40 Hi Oct 11 15:37:14 does apache http client come preincluded in android studio? Oct 11 15:39:00 stefkos, after googling, seems you maynot be able todo it without modifying framework apk Oct 11 15:39:11 heh Oct 11 15:39:11 How do you put in a url in java Oct 11 15:39:15 like http:// Oct 11 15:39:19 is read as a comment Oct 11 15:39:35 "http://"; ? Oct 11 15:39:40 pifon1: Do you mean just putting it in the code or use it? Oct 11 15:39:42 whatitis, thx for your help Oct 11 15:39:48 Using it Oct 11 15:39:50 As a url Oct 11 15:39:54 FOr http post Oct 11 15:40:01 I mean yes Oct 11 15:40:04 out it in code Oct 11 15:40:06 put Oct 11 15:40:14 pifon1: I assume you've googled that? Oct 11 15:40:15 whatitis, what about moveing it somewhere? to right border? Oct 11 15:40:22 if the tablet is rooted you can modify the image in the apk Oct 11 15:40:25 hm.. Oct 11 15:40:34 ok its not being read as a comment Oct 11 15:40:39 thanks Oct 11 15:41:27 stefkos, you can move the mouse yourself, then tape the optical or ball in place :) Oct 11 15:41:38 hehe Oct 11 15:41:55 but you know how to do it from java?:) Oct 11 15:42:28 whatitis, if you will have this kind of job, do not select Tablets to museum.... Oct 11 15:42:44 too bad its requrement Oct 11 15:42:45 nope, youd have to google, but if mouse is only for clicks, physicallly disable movement interface Oct 11 15:42:46 yes you can do it by using html escaping i think Oct 11 15:43:17 whatitis, well, nothing is moveing but mouse pointer is in the center Oct 11 15:43:40 move the mouse then disable further Oct 11 15:44:22 thx again Oct 11 15:44:25 will look around Oct 11 15:44:29 otherwise modify framework-res.apk with a blank image for cursor Oct 11 15:53:11 In my actionbar I have a submenu holding some checkboxes Oct 11 15:53:29 how can I make that menu not collapse when a checkbox is selected? Oct 11 15:53:34 pifon1, what you asking? Oct 11 15:53:47 Its solved thanks Oct 11 15:54:11 submenu, or overflow Oct 11 15:54:27 submenu Oct 11 15:54:52 what is a submenu in actionbar? Oct 11 15:55:07 you mean navigation? Oct 11 15:55:29 this: http://pastebin.com/ybTMte6J Oct 11 15:56:04 its a menu with a popup shwoing multiple checkboxes for filtering a list Oct 11 15:56:21 people can select multiple boxes to apply multiple filters Oct 11 15:56:43 but after each click the menu closes making it hard to apply multiple filters Oct 11 15:58:32 im curious on a screenshot. can your checkbox not consume the click? Oct 11 15:58:56 or are you clicking menu item¬ checkbox Oct 11 16:00:56 http://postimg.org/image/fs7zuf9t3/ Oct 11 16:00:59 thats a screen Oct 11 16:01:08 it works fine. when a box is clicked, it gets selected Oct 11 16:01:15 but i dont want the menu to close on selection Oct 11 16:01:23 it should stay open until the user clicks outside of it Oct 11 16:01:30 to make it easier to make multiple selections Oct 11 16:01:45 danijoo: Lebensraub hört sich irgendwie... falsch an. :/ Oct 11 16:01:58 gehüort zu nem spiel ;) Oct 11 16:02:01 ist schon richtig sop Oct 11 16:02:30 Na gut. ^^ Oct 11 16:04:07 ist die ofizielle übersetzung vom hersteller. Oct 11 16:04:29 danijoo, can you return false on menu option selected or whatever it is, to report menu click not consumed? Oct 11 16:04:46 tried that but its still closing whatitis Oct 11 16:08:00 menus arent meant for that use I wouldnt think. are you able to load another layout on action? id use a dialogfragment or popup window or just fragment, etc. Oct 11 16:09:13 yeah i could but i like the idea of having that filters in a submenu. could use a listpopupwindow instead maybe..mh Oct 11 16:09:55 menus arent meant for logic as much as navigation are they? Oct 11 16:16:11 I dont agree on that. i thing thats what checkableBehaviour on menu groups are made for. Oct 11 16:17:21 seems like a checkable item in a menu would be a one shot. not multi Oct 11 16:18:01 but they let you choose between single and multi mode ;) Oct 11 16:18:27 then why its not working? Oct 11 16:18:38 it is Oct 11 16:18:43 i can select multiple Oct 11 16:18:55 one at a time? Oct 11 16:19:04 but I have to: open it, select 1 (it closes), open it again, select second (it closes).... Oct 11 16:19:11 i want to select multiple before it closes Oct 11 16:19:12 exactly Oct 11 16:19:47 that isnt multiple in the sense you think, and their way makes sense with a menu selection. Oct 11 16:20:18 menu as in overflow/menu button, not a dialog menu Oct 11 16:21:09 right? Oct 11 16:21:44 its a submenu. no overflow Oct 11 16:22:01 overflows just look the same ;) Oct 11 16:23:19 that is basically overflow. submenu would be menu-> submenu. you just have menu. make it a dialog Oct 11 16:23:52 no i have a menu in a menu. thats a submenu. Oct 11 16:24:17 you have action bar, to action Oct 11 16:24:21 well nvm. ill just dig into the source and write my own for it :) Oct 11 16:24:48 just do your own layout, dont do menu xml Oct 11 16:45:28 If we're writing an API, when should our parameters be Strings and when should they be CharSequences? I found this good SO question that I'm unsure of the answer to: http://stackoverflow.com/questions/8445311/choosing-between-charsequence-and-string-for-an-api Any thoughts? Oct 11 16:46:01 My general idea would be "Use String for almost everything, and use CharSequence when we specifically *want* to allow Strings and StringBuilders and so on", but I'm unsure of how to answer that SO question. Oct 11 16:46:27 learn their differences& decide. micro manage much. code first.... Oct 11 16:46:45 I know the differences. Oct 11 16:46:52 What is your answer to that SO question? Oct 11 16:46:57 obviously not Oct 11 16:47:13 You haven't understood my question, so I'll just stop engaging. Oct 11 16:47:19 ty Oct 11 16:51:03 64-bit Andriod L is outt Oct 11 16:51:05 :) Oct 11 16:51:44 I guess the answer has to be something along these lines: CharSequence is too generic; it's not specific enough for most cases. It doesn't offer immutability, equals(), or handy String stuff such as indexOf(). Therefore, we should avoid CharSequence as much as possible, allowing it only when we have a specific motivation to. Oct 11 16:51:47 Do you folks agree with that? Oct 11 16:52:14 read first few words, a string is a charsequence. not so with immutable strings all over the place. learn the differences, then decide. String string = "string" not relatable to a charsequence in memory existence if setting both to null. "string" hangs around Oct 11 16:53:03 Dude, I get that CharSequence is an interface implemented by String, StringBuilder, etc. Oct 11 16:53:54 no learn string usage in java. the stay in heap, or such Oct 11 16:54:15 versus reusing a char sequence Oct 11 16:54:19 it a Oct 11 16:55:08 it all depends on how often are you needing to create a allocation Oct 11 16:55:25 string literals stay around Oct 11 16:56:57 TacticalJoke: while I understand your question I don't have an opinion :P Oct 11 16:57:10 if im constanly reading input from a stream im not creating a new string each read. im creating an array of chars, then coverting to a string literal when needed Oct 11 16:57:11 TacticalJoke: b/c I'm a shitty java coder who writes stuff like C++ Oct 11 16:58:10 whatitis: That's a separate topic. I'm asking about whether our go-to "string" type should be "String" (specific) or "CharSequence" (generic). Oct 11 16:58:26 ... Oct 11 16:58:39 you dont get it Oct 11 16:58:44 hello everybody Oct 11 16:58:54 Yeah, I get it. Strings are immatuable and we shouldn't keep creating new ones. That's not what I'm asking about. Oct 11 16:59:03 this isnt a desktop. its mobile. memory matters Oct 11 16:59:03 immutable* Oct 11 17:00:01 so that should help with string literals stay in memory. even when not used. strings stay pooled. arrays of chars dont Oct 11 17:01:37 hi Oct 11 17:02:06 If we're going to talk about string literals, the question becomes "Should I say [ String message = "Hello!"; ] or [ CharSequence message = "Hello!"; ]?". Oct 11 17:02:24 damn you are thick Oct 11 17:02:40 Seriously? You've completely misunderstood what I've asked and now I'm thick? Oct 11 17:03:05 And you're giving bad advice, anyway. The idea that we shouldn't use string literals in case the compiler keeps a pool is *insane*. Oct 11 17:03:15 are you calling that 1000000 times? if so and new String each time versuses Char what do you think Oct 11 17:03:18 That's the perfect example of premature optimisation. Oct 11 17:03:37 you are a good example of that Oct 11 17:03:56 whatitis: What does that have to do with what I asked?! Oct 11 17:04:17 im done. context man.... Oct 11 17:05:11 BTW, calling that 1,000,000 times wouldn't make a difference. A string-literal pooler would reuse the same literal. It'd create *one* string instance. Oct 11 17:07:29 should I say String string = "Hello"+x; 100000000 times or StringBuilder stringBuilder ... Oct 11 17:07:47 not 10000000 times with same string stupid Oct 11 17:08:18 thats why im saying your question has no context Oct 11 17:08:40 so you should stick to hating google&keep ranting Oct 11 17:09:24 My question is "If we're writing a method like public void displayText(text), should the parameter be String or CharSequence?". You completely misunderstood this and started ranting about string literals and string interning. Oct 11 17:10:19 you shouldnt even write a method. cause you cant. you just cant get passed hypotheticals Oct 11 17:10:39 Is there any way (in XML) to specify that a view should be a certain % of the screen width and height wise? For example 20% of the screen in width, 30% of the screen in height? There's no way to specify separate x/y values using layout_weight, is there? Using dp is failing me on my hdpi device. The view is larger than it appears on xhdpi and xxhdpi devices. Oct 11 17:10:58 whatitis: things that undermine any valid elements of an argument: calling the other person stupid as your explanation. I suggest moving along. Oct 11 17:11:07 silentbyte, yes Oct 11 17:11:17 TacticalJoke: The only vaguely useful advice I have is: go look at a half dozen library projects related to android on github Oct 11 17:11:19 ty dragorn Oct 11 17:11:21 TacticalJoke: and see what they do Oct 11 17:11:39 very helpful there dragorn Oct 11 17:11:45 TacticalJoke: I'd be less concerned about "being absolutely right" and more concerned about "making sense in the context of the environment" Oct 11 17:11:54 TacticalJoke: which is my way of saying I have no idea what the answer is :P Oct 11 17:12:16 TacticalJoke: but if you're going to do something you want other people to use, principle of least surprise is probably the winner Oct 11 17:12:17 Yeah, it's all about what's a good practice. From what I've seen so far, people tend to just use String (which seems very wise to me). Oct 11 17:12:54 TacticalJoke: i use strings, but then again, I dont' write many libraries, because see above, I'm a shitty java programmer. I think garbage collection is bullshit cheating :P Oct 11 17:12:58 The typical principle is "use the most generic type possible" (e.g., List instead of ArrayList), but I don't think this argument can push us towards CharSequence. Oct 11 17:13:15 Garbage collection is awesome! :D Oct 11 17:13:20 Fewer bugs and cleaner code. Oct 11 17:13:22 TacticalJoke: GET OFF MY LAWN! :P Oct 11 17:13:27 lol Oct 11 17:13:39 tactical, I know your question. and it all depends on frequency of calls&how related the data is. if constantly reusing similiar models, use a char sequence of characters versus tons of strings Oct 11 17:15:12 and List to ArrayList isnt generic, its programming for I terface Oct 11 17:16:25 List is an Interface Oct 11 17:17:10 whatitis: CharSequence is an interface. Oct 11 17:17:32 string isnt Oct 11 17:17:51 I'm just gonna stop typing now. Oct 11 17:18:09 you just dont actually want help with anything Oct 11 18:08:12 hello Oct 11 18:08:34 is it reliable to only download new data when a 'data updated' gcm message arrives? Oct 11 18:08:51 should I use a SyncAdapter in that case? Oct 11 18:20:45 bummer, xlarge iPad delayed Oct 11 18:21:08 * g00s wants one for ebook reader Oct 11 18:22:21 hey g00s Oct 11 18:31:10 Do you guys think Google will support ADT for long? Oct 11 18:31:21 ADT is no longer supported to begin with Oct 11 18:31:31 no longer in development, rather Oct 11 18:33:24 http://developer.android.com/sdk/index.html Oct 11 18:33:32 the box says it Oct 11 18:36:45 That page only says that AS will become the default IDE when it's released. Oct 11 18:36:54 nope Oct 11 18:37:09 there's a paragraph under that paragraph Oct 11 18:37:51 Oh, I see. "ADT [...] is no longer in active development." Oct 11 18:37:55 yep Oct 11 18:37:57 hope google makes gradle faster Oct 11 18:37:57 dump that shit Oct 11 18:38:13 For me right now, ADT is better. Oct 11 18:38:18 than what? Oct 11 18:38:19 Unfortunately. Oct 11 18:38:26 Than IntelliJ with Gradle or Android Studio. Oct 11 18:38:34 gdrc: Yah. Oct 11 18:38:40 not better than Eclipse with SDK Oct 11 18:40:44 you think eclipse is better for Android dev than AS Oct 11 18:40:49 why? Oct 11 18:40:52 hey gdrc Oct 11 18:41:14 I find AS perfect... it is a little slow but much faster than eclipse Oct 11 18:41:15 gdrc jake said gradle has soe performance stuff in the roadmap Oct 11 18:41:48 if you have 4G ram or less, ADT was at least for me much faster Oct 11 18:42:17 i hated eclipse's autocomplete Oct 11 18:42:25 AS's autocomplete doesnt get in the way Oct 11 18:43:00 because you can easily select the right option, or code it yourslf Oct 11 18:43:24 what i remember with eclipse is every time i tried to write some code..... stuff i didnt want to was forced on the line Oct 11 18:43:35 one problem i keep on having with AS is the suggestion popup appears right smack over the cursor Oct 11 18:44:17 i've been meaning to file a bug for a while, its been doing that since the beginning Oct 11 18:47:48 Hi guys Oct 11 18:48:35 how can I call a method on my activity class from inside an "OnClickListener" of a button? The Context returned from getBaseContext() does not seem to help Oct 11 18:49:34 Hello... can someone help me out please? I am trying to get the android sdk build tools to compile on Freebsd Oct 11 18:50:16 is it possible? Oct 11 18:50:56 Hmm.. nobody can answer this question.. Oct 11 18:51:14 I've been in here for the past several days askin the same question, and I think I only got 2 replies Oct 11 18:51:42 its strange since there were always 300+ users Oct 11 18:52:06 this channel must be very cliqy Oct 11 18:53:06 after_r: Do you know what the definition of insanity is? Oct 11 18:53:57 ok so I am a backend dev and I have this android app i'd like to build. I see these gradle files ... I presume this is a build system? Oct 11 18:54:08 I was looking online and there's lots of literature but nothing really telling me how to build Oct 11 18:56:41 after_r: i just joined Oct 11 18:56:44 what is ur question... Oct 11 18:56:46 do share Oct 11 18:56:56 i dont run with crews Oct 11 18:56:58 yalla Oct 11 19:00:26 Psil0Cybin: when I try to compile the android sdk tools on Freebsd, I get these errors: /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file Oct 11 19:00:57 im trying to build repo/frameworks/base/tools/aidl Oct 11 19:01:13 i'm betting you have no clue what im about Oct 11 19:01:59 njcomsec: You can't (easily) unit-test (on the JVM) your Android app in AS. Oct 11 19:02:39 I don't mind Eclipse's code completion. Oct 11 19:03:08 The main thing I dislike is that you can't select a candidate by typing the subsequent '.'. I think you have to use Enter. Oct 11 19:05:42 after_r: see the problem is i do not know / am not familiour with free bsd. Oct 11 19:05:48 im using Debian at the moment. Oct 11 19:06:23 alright Oct 11 19:06:47 Baby penguins are so cute. The adults are something else. (Watching a nature documentary.) Oct 11 19:07:22 i bet they would go well with some wasabi TacticalJoke Oct 11 19:07:38 Conversely, little demons are ugly Oct 11 19:09:21 hi Oct 11 19:09:22 after_r: All Linux-fanboyism aside, have you checked out https://gitorious/freebroid ? Oct 11 19:13:02 It's a shame that Java doesn't have "*final* by default" semantics. Oct 11 19:13:46 Some people use 'final' wherever possible because immutability is awesome, but having 'final' everywhere is so noisy. Oct 11 19:14:31 Imagine if everything was final unless we specified 'var' or 'mutable' or something. Oct 11 19:15:04 Indeed. Looking at my Rust code, you don't mutability (or even the heap) often. Oct 11 19:15:06 TacticalJoke: thats like a strict mode Oct 11 19:15:33 TacticalJoke: could be done with a code pre-processor Oct 11 19:15:45 call it StrictJava Oct 11 19:15:46 most devs use it to access vars inside listeners :P Oct 11 19:15:50 after_r: Did you check out that link? Oct 11 19:15:53 cause they do anonymous inner class for listener Oct 11 19:16:08 and when I say most devs I mean me Oct 11 19:17:35 Yeah, I almost never reassign a local variable. It's almost always clearer to declare a new variable. Oct 11 19:22:40 with robolectric can you shadow classes that aren't part of android? Oct 11 19:22:53 like a 3rd party library for example with a static method Oct 11 19:23:11 i guess not Oct 11 19:25:52 I wonder whether Android Studio will ever come with out-of-the-box Scala support. Oct 11 19:26:15 the answer is no, it wont Oct 11 19:27:44 That's a shame. It would be nice to have a choice. Oct 11 19:28:43 Though I guess Google's Android team has enough on their plate. Oct 11 19:28:52 I sometimes feel like they have only around four key developers. Oct 11 19:35:48 TacticalJoke: if they tripled their team i doubt they'd make scala a first class citizen because scala is not a good choice for android Oct 11 19:41:59 Is there some specific feature of Scala that makes it inappropriate? I'm not very clued up about Scala, so I'm just wondering. Oct 11 19:49:08 TacticalJoke: everything requires proguard Oct 11 19:49:13 also way too slow Oct 11 19:49:15 and too complex Oct 11 19:55:21 but it is ironic that someone complaining about how the tools lack basic functionality wants scala support Oct 11 19:55:36 (yet he's not very clued up on it) Oct 11 19:56:52 hi Oct 11 19:57:22 what to do if I would like to provide drawable, but I don't know dimensions Oct 11 19:57:23 hey guys so I am writing a string to a file and then later reading it... thing is I need to check if the file exists already but I do not know the path. Here is the code that I am using to write the file http://pastebin.com/pKVuNZSr Oct 11 19:57:33 of the ImageView Oct 11 19:57:34 yacek10 in what context Oct 11 19:57:35 I don't think it's ironic, really. Just a side comment. Oct 11 19:57:37 I'm watching the android central podcast, and Phil was talking about Google Now and issuing commands to his phone, my nexus 5 is right next to my speaker and it started reacting to it Oct 11 19:57:38 TacticalJoke, IDEA has first class Scala support Oct 11 19:57:41 Thought that was funny Oct 11 19:57:43 TacticalJoke, so use that Oct 11 19:57:57 Android Studio is just minimal Android focused IDE and probably will never have that support out of the box Oct 11 19:58:00 Mavrik: For Android development? Oct 11 19:58:14 JacobTabak: I would like to provide image for ImageView, but I don't know dimensions Oct 11 19:58:23 TacticalJoke, yes. AS is just a stripped down free version of IDEA Oct 11 19:58:29 yacek10 why is this a problem? Oct 11 19:58:42 I meant "You can do Android development with Scala in IntelliJ?". Oct 11 19:58:49 TacticalJoke, yes. Oct 11 19:59:02 IIRC you need to use SBT as a build system, but IDEA supports that Oct 11 19:59:04 what sizes of images should I provide for example for drawable-mdpi? Oct 11 19:59:14 yacek10, the ones you specified when you included the Image View Oct 11 19:59:32 yacek10, if you don't know, then you're issue is that you have an imageview with non-static size Oct 11 19:59:32 MartialLaw you just need to save the filename that you pass into that method. Oct 11 19:59:32 wrap_content and wrap_content :) Oct 11 19:59:49 yacek10, don't use wrap_content then, because they won't be the same size always, no? Oct 11 19:59:49 yacek10 you can use imageview's scaleType attribute to scale images Oct 11 20:00:14 yacek10, set size of ImageViews with dp sizes and then you exactly know what images to provide to make them use sharp Oct 11 20:00:21 jACOBtABAK but to check if the file exists I need to kinow the path. soright? Oct 11 20:00:22 using scaleType will just crop or make them look blurry Oct 11 20:00:54 I see. Oct 11 20:01:08 okay thanks Oct 11 20:09:23 If I have a LinearLayout with two vertically stacked child views, is there any way to make the overflow of the top child view show in the bottom child view? Oct 11 20:10:38 anyhow Oct 11 20:10:43 just the whole thing is retarded Oct 11 20:10:56 why not just get a listing of the obb/ directory Oct 11 20:11:04 what ? Oct 11 20:11:08 and then match to "main" and "patch". Oct 11 20:11:13 The APK expansions Oct 11 20:11:39 just out of curious, you shouldn't give up, but have you ever got a response when asking about apk expansions in here? Oct 11 20:11:48 curiosity* Oct 11 20:12:14 Mavrik: ok I set 166dp and on one screen image fits great in GridView and on another phone it has white space Oct 11 20:12:56 haha seems I am the only one using them Oct 11 20:13:00 and soon I won't be. Oct 11 20:13:19 However, I still need to figure out this server validation shit. Seems there's even less info. Oct 11 20:13:29 ... than for APK expansions. Oct 11 20:14:06 i wasted a lot of time with incorrect version numbers (usually my bad) Oct 11 20:14:28 there really isn't a point to checking the version numbers since there are always just two files Oct 11 20:14:37 or one file. Oct 11 20:15:15 I do think Google is evil, for providing us with horrific documentation most of the time. Oct 11 20:15:20 + Oct 11 20:15:41 mediocre, not evil Oct 11 20:15:58 Evil. They have a cave where they laugh evilly. Oct 11 20:16:07 nah Oct 11 20:16:12 Apple is evil Oct 11 20:16:26 Google is just meh all around Oct 11 20:16:33 everything they do is meh, nothing is premium Oct 11 20:16:42 Apple is clearly evil, but Google is just secretly evil. Oct 11 20:16:52 ok, deal. Oct 11 20:17:06 * Agamemnus shakes Odaym's hand. Oct 11 20:17:11 BTW, I got ebola. Oct 11 20:17:15 neat Oct 11 20:17:18 Everyone in this chat room is going to die. Oct 11 20:17:39 more like Eballa Oct 11 20:17:42 holla! Oct 11 20:17:46 I see. Oct 11 20:18:16 I had to cancel my tickets to Zanzibar due to ebola :( Oct 11 20:18:36 well it's here in this channel now Oct 11 20:18:39 what more can you ask for Oct 11 20:23:01 How to find managedcursor's length? Oct 11 20:23:04 ImageView shouldn't always have width and height set in dp Oct 11 20:23:31 what about ImageView inside two columns gridview? Oct 11 20:23:39 it can be different in each device Oct 11 20:23:40 nvm Oct 11 20:24:05 thats correct yacek Oct 11 20:24:15 they should not always have their width and height set in dp Oct 11 20:24:22 just never px Oct 11 20:25:19 ok so I am setting width and height to wrap content Oct 11 20:25:24 as it fills my space Oct 11 20:25:37 but what should be size of the drawable Oct 11 20:26:05 e-bola. Oct 11 20:26:18 yacek is this like a jpeg or a png? Oct 11 20:26:31 you should refer to it as a bitmap or bitmapdrawable, not a drawable Oct 11 20:26:34 if that's the case Oct 11 20:26:37 hi !!! I got a question, I have an activity where I create an RelativeLayout within it through "myLayout = new Relative(..);myLayout.inflate(..,R.layout.XXX,..);root.addView(myLayout)" Oct 11 20:26:50 but how to access view inside this layout ? Oct 11 20:26:55 okay, it is png Oct 11 20:27:06 (myLayout.findViewById() return null :( ) Oct 11 20:27:08 yacek10 it's a good question - theres no good answer Oct 11 20:27:24 blusky: Are you passing the resource parameter to findViewById()? Oct 11 20:27:29 yup Oct 11 20:27:45 you'll have to scale the image up or down Oct 11 20:27:51 ressource defined in the XXX.cml (of R.layout.XXX) Oct 11 20:27:56 or provide different images for every device size/density Oct 11 20:27:58 *XXX.xml Oct 11 20:28:26 JacobTabak, thanks for explanation Oct 11 20:29:13 JacobTabak: you da real MVP Oct 11 20:29:58 hi JacobTabak Oct 11 20:34:18 Darklust: http://pastebin.com/b00uTruW Oct 11 20:34:31 here's a (kind of) more detailed version of my probleme Oct 11 20:35:03 main_layout.xml is pretty empty, and polaroid.xml contains and imageview with id polaroid_photo Oct 11 20:37:11 oooh Oct 11 20:37:18 I see, "inflate" is the wrong option Oct 11 20:37:24 (as it's a static method) Oct 11 20:39:05 don't set IDs like that Oct 11 20:39:23 also you don't instantiate and inflate a view Oct 11 20:39:25 you do one or the other Oct 11 20:40:14 well... Oct 11 20:40:18 i want to instantiate it Oct 11 20:40:26 but how to populate it with the content of an xml ? Oct 11 20:41:04 View view = LayoutInflater.from(context).inflate(R.layout.polaroid, parent, false); Oct 11 20:41:30 trying it Oct 11 20:41:33 LayoutInflater calls the view's constructor for you, you don't need to call it if you're inflating from XML Oct 11 20:42:21 what is parent ? Oct 11 20:42:45 the container view Oct 11 20:42:49 ok Oct 11 20:42:51 that you're going to add it too Oct 11 20:43:07 if you use inflate(R.layout.polaroid, parent, true) -> it will automatically add it to 'parent' for you Oct 11 20:43:10 the last parameter Oct 11 20:44:15 niiice !!! Oct 11 20:44:18 it's working ^^ Oct 11 20:44:22 you're the best :p Oct 11 20:44:23 cool Oct 11 20:44:23 thx ! Oct 11 21:04:16 after switching to 2 spaces for tabs instead of 4 Oct 11 21:04:19 i can't even look at 4 anymore Oct 11 21:04:20 :O Oct 11 21:04:52 you're sicck Oct 11 21:04:54 Two is way too little. Oct 11 21:04:56 -c Oct 11 21:05:14 2 is the standard for all hte open source stuff i work on Oct 11 21:05:31 maybe 3 is better, then Oct 11 21:05:52 Why use two? Oct 11 21:05:59 well i hate to waste spaces that go toward the 100 char count per line Oct 11 21:06:00 Screens are wide and good code doesn't nest deeply. Oct 11 21:06:24 doesnt matter how wide screens are, every org i've ever worked with has a line length limit Oct 11 21:06:44 people work on laptops, with panes on the left and right Oct 11 21:07:02 I think there is and old limitation of 80 chars Oct 11 21:07:14 lol yeah Oct 11 21:07:21 and i'm eternally grateful that's not the standard anymore Oct 11 21:07:35 eheh Oct 11 21:11:15 I think they use eight spaces in the Linux kernel. Oct 11 21:11:18 Crazy. Oct 11 21:11:30 I <3 four spaces. Oct 11 21:12:16 lol poland won against germany :o Oct 11 21:12:24 I use 1 space. Oct 11 21:12:29 And that is the way it should be. Oct 11 21:12:35 Agamemnus: I hope you're joking. :D Oct 11 21:12:38 If you disagree: pistols at dawn. Oct 11 21:12:41 I'm deadly serious. Oct 11 21:13:15 I used to use 0 spaces Oct 11 21:13:19 1 space? heh - why bother Oct 11 21:13:29 Notepad facilitates the zero-space developer. Oct 11 21:13:29 Try it Oct 11 21:13:37 I use Notepad++ Oct 11 21:13:48 You don't use an IDE for Android development? Oct 11 21:14:09 no, but the only thing I'm doing now is mucking around with the APK expansion library Oct 11 21:14:54 I'm so glad the Java "standard" involves using braces correctly. Oct 11 21:15:14 I'm kinda joking with the word 'correctly', but I used to hate that Allman style. Oct 11 21:15:31 JacobTabak: some people justify 4-space tabbing and expanding single-line if-then statements into 5 lines with the 80 line thing Oct 11 21:15:43 I recently got into an argument about it Oct 11 21:15:50 I never write single-line if statements, personally. Oct 11 21:15:58 I don't really see the point of having more than one line for that. Oct 11 21:16:03 That bloats up your code. Oct 11 21:16:22 I don't like scrolling. Oct 11 21:16:23 i don't care how other people write code as long as i don't have to look at it or use it or maintain it Oct 11 21:16:24 I love the consistency of always using braces (and newlines and indentation) for blocks. Oct 11 21:16:31 Haha. Oct 11 21:16:45 It's not about consistency for me, it's really about being able to browse my code efficiently Oct 11 21:17:15 Consistency can aid readability, though. Oct 11 21:17:26 Not in this case. Oct 11 21:17:49 If you using a lot of tabbing and a lot of brackets you're really increasing the vertical space Oct 11 21:17:54 making it more difficult to browse Oct 11 21:18:00 this debate is over Oct 11 21:18:06 Unless, I suppose, you don't use page-up/down to browse Oct 11 21:18:14 the problem of one line coding is if you ever have to change it you can fuck it up for someone else by doing it one line Oct 11 21:18:17 Agamemnus: Whitespaceisso'90s. Oct 11 21:18:30 besdies a smart IDE will fold it for you Oct 11 21:18:56 well, I never fuck it up... anymore. Oct 11 21:19:05 Agamemnus: Good programmers generally write small methods, so it's not a big deal to increase vertical space. Oct 11 21:19:13 And small(ish) classes. Oct 11 21:19:33 but then you are bloating up your file count Oct 11 21:19:40 That's not necessarily bad, either. Oct 11 21:19:54 consider how much time you take to tab between files, and think which function is where and so on Oct 11 21:19:57 Humans can't concentrate on much at one time. It's good to break things into units. Oct 11 21:20:11 I think I'm not human then. :( Oct 11 21:20:11 Ctrl+Click. Oct 11 21:20:41 Anyway, good class design generally dictates that similar stuff is together and dissimilar stuff is apart. Oct 11 21:20:49 i can't believe you guys still discuss this stuff like high schoolers Oct 11 21:20:51 Though there are many exceptions. Oct 11 21:20:52 Sure, I can agree with that. Oct 11 21:21:07 just work with other people Oct 11 21:21:10 Coding style is my favourite topic, I think. Oct 11 21:21:12 and you'll find out in 5 seconds flat what you're doing wrong Oct 11 21:21:28 Or, more precisely, what they are doing wrong. Oct 11 21:21:41 do you work on a team usually? Oct 11 21:22:10 Well, I make web-apps for $, and I'm often the only web developer Oct 11 21:22:15 But there are sometimes others Oct 11 21:22:18 and that's my point Oct 11 21:22:21 But they don't really code that much Oct 11 21:22:32 so you know what works for you Oct 11 21:22:38 If I was on a team, I would force everyone else to use one-line tabbing Oct 11 21:22:40 I'd like to see y'all's code. Oct 11 21:22:41 And so on Oct 11 21:22:50 well you've seen mine Oct 11 21:22:55 Since I would be boss. Oct 11 21:22:55 look at my github Oct 11 21:22:58 Yeah, I've looked. Oct 11 21:24:05 My style comes from experience Oct 11 21:24:13 My style is basically "the shortest methods possible, until there is a performance reason to reconsider". Oct 11 21:24:26 just stooooop oh my god Oct 11 21:24:28 go to #cs101 Oct 11 21:24:29 Another thing I notice is, a lot of the time, people will nest if statements Oct 11 21:24:43 That quickly gets out of hand.. Oct 11 21:25:05 It's 5PM. Do you know where your nested if statement is? Oct 11 21:25:10 Yeah, a lot of nesting gets hard to read. Oct 11 21:25:16 You can extract methods to hugely increase readability. Oct 11 21:25:23 you guys would love rxjava Oct 11 21:25:27 and functional programming Oct 11 21:25:36 Sure, sure, but often I will use "continue" instead. Oct 11 21:25:38 haskell Oct 11 21:26:01 That's one reason I don't like the try/throw stuff in Java Oct 11 21:26:15 visually, it's all at the bottom Oct 11 21:26:25 it doesn't flow well... Oct 11 21:27:31 This is a class I just wrote: http://pastebin.com/ytAKZ1wN Oct 11 21:27:38 Though it needs some changes (e.g., I don't like that null-return thing). Oct 11 21:27:47 But it shows how I like code to look. :D Oct 11 21:28:22 well like Oct 11 21:28:25 18-19 Oct 11 21:28:28 Oops, that field should be "public List ...". Oct 11 21:28:40 I would change that into if (itemList == null) break; Oct 11 21:29:00 private* Oct 11 21:29:17 Yeah. I bet you wouldn't have the 'else', either. :) Oct 11 21:29:22 On lines 48-51 I would do a throw first. Oct 11 21:29:22 Almost nobody uses those 'elses'. Oct 11 21:29:35 Gets rid of another if/else... Oct 11 21:29:42 Right. Loads of people do that. Oct 11 21:30:02 http://silentbyte.net/screenshot.png ... Is there a way to do the upper half of this app using a LinearLayout? I want the white cards (ViewPager) to overlap half of the black card as you see, which I'm doing with a FrameLayout right now... Problem is, I'd like to use weights instead of dp for the cards if possible, because the card size doesn't seem to be consistent across devices. Oct 11 21:30:03 Specifically, the cards are way too big on hdpi, even though I'm using dp for sizing. So I figure maybe use weights to size the cards instead. Any tips? Oct 11 21:30:32 SilentByte: I have no idea, but you win the argument. Oct 11 21:30:52 yay :D Oct 11 21:31:00 SilentByte what's the challenge? Oct 11 21:31:14 (Godwin) Oct 11 21:31:22 SilentByte can you just pretend to overlap? Oct 11 21:31:30 One thing is that I dislike "if (false) ... else". I almost always use "if (true) ... else". Few people do that. Oct 11 21:31:36 Most people do "if (happy path) ... else". Oct 11 21:31:45 #no1curr Oct 11 21:32:06 Yeah, I'd use "if (true)" if I couldn't avoid a continue or break somewhere Oct 11 21:32:21 But I also look for shorter parts to put on top. Oct 11 21:32:30 I want it to appear as it does in that screenshot. The cards are a specific dp... Which I thought would appear the same across all devices, but it doesn't. So I thought I'd tried weights, but weights don't work in a FrameLayout. All of my content disappears when I use weights in a FrameLayout. Oct 11 21:32:45 SilentByte yes you can do what you want to do Oct 11 21:33:03 Like: "false" may be 5 lines, and "true" 50 lines.. I would put "if (false) {" first. Oct 11 21:33:13 framelayout with 2 children, black card, and a linearlayout with 2 elements each equal weight Oct 11 21:33:17 Agamemnus: In that case, though, the bodies should be extracted into separate methods. Oct 11 21:33:29 so the black card is behind the linearlayout Oct 11 21:33:34 In fact, in general, I'd argue that any "if (x) ... else ..." method should be an extract-method candidate. Oct 11 21:33:40 oh my god can you two stop? Oct 11 21:33:42 Unless it's just stuff like exception handling. Oct 11 21:33:45 like seriously Oct 11 21:33:47 That might be going too far. Oct 11 21:33:52 Why Oct 11 21:33:57 take it to PM you're drowning out peoples questions Oct 11 21:34:02 and literally nobody else cares Oct 11 21:34:19 There are tons of lurkers on IRC. Oct 11 21:34:33 Agamemnus: If we have a method like "if (fileIsDirty) { ... } else { ... }", that's a dual-purpose method. If that can't be totally refactored, the least one can do is extract methods, IMO. Oct 11 21:34:37 i don't know if either of you care Oct 11 21:34:40 but i'm going to mute you both Oct 11 21:34:45 :{ Oct 11 21:34:50 come on Oct 11 21:34:50 I care around 7%. Oct 11 21:35:04 Don't be like that hommie Oct 11 21:36:01 SilentByte, I think you first have to define what "same" means to you really Oct 11 21:36:28 same dp should be approximately the same physical size on most devices Oct 11 21:36:54 the amount of space you have on screen in dp varies though... and the first question is: why do you really care? :) Oct 11 21:36:55 JacobTabak: If I put the black card in a FrameLayout then I can't size it with weights Oct 11 21:37:02 Unless I'm misunderstanding you? Oct 11 21:37:17 the black card looks like its' the full height Oct 11 21:37:24 with a bit of margin/padding at the top Oct 11 21:37:39 i thought you only wanted to size the white card with weights Oct 11 21:38:00 both white and black if possible Oct 11 21:38:02 SilentByte, your case looks like a prime candidate for a custom viewgroup though :) Oct 11 21:39:25 Mavrik: The cards take up way too much real estatate on my hdpi device. On my xhdpi and xxhdpi device they look fine. Oct 11 21:40:42 do you have different assets for each density? Oct 11 21:40:50 and are they in the right directories? Oct 11 21:41:31 SilentByte, hmm, yes, that can sometimes happen due to devices having different dp widths Oct 11 21:42:11 as I said, using standard viewgroups can get rather unwieldy for such complex layouts, so usually writing a custom viewgroup is a simpler and way more maintainable solution Oct 11 21:42:15 All images (including the cards which are 9patch) are in their appropriate density folders. The cards are really just a LinearLayout with the 9patch card image as the background. And I'm scaling them with a fixed dp. Oct 11 21:42:45 I only have one activite_main.xml though. Thought I could get away with that by using dp to scale. Oct 11 21:42:49 activity* Oct 11 21:45:16 I didn't think it was such a complex layout... Just a ViewPager on top of another view (the black card). Oct 11 21:45:31 i don't think its complex Oct 11 21:45:49 *shrug* Oct 11 21:45:58 you can do a horrible monster of bolted on layouts Oct 11 21:46:04 or you can do a twoliner in onLayout Oct 11 21:48:44 I'll have to bang my head against it some more. Oct 11 22:00:12 what Oct 11 22:00:19 chicken butt Oct 11 22:00:39 Too little code-style discussion. Oct 11 22:02:00 TacticalJoke: Imagine a tab-indenting newbie then and discuss the $curse out of him- Oct 11 22:02:22 i have a fragment transaction after a postResume (to avoid state lokk fail after onActivityResult) but will only actually commit the transaction if i use commitAllowingStateLoss in this device Oct 11 22:02:34 state loss* Oct 11 22:03:39 i thought that using postResume was the solution to avoid commitAllowingStateLoss Oct 11 22:03:45 after onActivityResult Oct 11 22:06:47 Hi, does scanning programmatically for bluetooth devices also perform service discovery? Oct 11 22:07:04 Or will I need to call BluetoothDevice#fetchUuidsWithSdp() after getting devices? Oct 11 22:09:29 I don't believe it performs service discovery Oct 11 22:23:38 hexafraction i've had lot sof problems with that one :) Oct 11 22:24:44 why do this thing still mess with my commit even if im using the code after onPostResume Oct 11 22:26:25 check my code pls http://stackoverflow.com/questions/26319861/using-onpostresume-to-avoid-fragment-transaction-state-loss-issue-after-onactivi Oct 11 22:28:07 I'll wait JacobTabak :^) Oct 11 22:32:17 oh geez https://code.google.com/p/android/issues/detail?id=23761 Oct 11 22:35:33 g00s: Thanks for the quick response, and sorry for the late reply :) Oct 11 22:43:06 cliffreich did you figure out the issue? Oct 11 22:44:51 So Oct 11 22:44:58 I tallied my admob stats for the past month. Oct 11 22:45:05 It's not a lot of data, but it's puzzling Oct 11 22:45:26 $0.236 per text ad click, and .155 per image click. Oct 11 22:45:42 The video clicks pay a LOT more, though. $.80 each. Oct 11 22:45:49 Almost 0 on impressions though. Oct 11 22:46:07 You'd think image clicks would give more $. Oct 11 22:46:37 oops, that's only the last 7 days Oct 11 22:47:09 The stats are consistent Oct 11 22:48:01 JacobTabak no luck yet, only commitAllowingStateLoss will work Oct 11 22:48:13 what do you mean "but it won't do anything" Oct 11 22:48:22 i commneted on your SO, you're missing something Oct 11 22:49:35 it wont load the fragment Oct 11 22:49:44 so what shows up in logcat? Oct 11 22:50:01 yeah, i have logs all around the fragment Oct 11 22:50:24 and with commitAllowingStateLoss will load Oct 11 22:50:35 is it possible to easily use new roboto font in apps for android 4.x? Oct 11 22:50:35 im checking a little thing to be sure im not missing anything Oct 11 22:50:42 1sec Oct 11 22:50:44 yess yacek10 it's a font Oct 11 22:50:50 AS sucks :( Oct 11 22:50:51 you can use it like any font Oct 11 22:51:05 stuck at downloading gradle or something Oct 11 22:51:05 ugh Oct 11 22:51:08 any fix? Oct 11 22:51:18 JacobTabak: but I can change it only programmatically? Oct 11 22:51:27 correct Oct 11 22:51:45 bye Oct 11 22:52:36 bye Oct 11 23:06:35 JacobTabak: when did you start doing android programmer? you seem a regular resident expert these days Oct 11 23:16:38 What do you folks think about toasts? Oct 11 23:16:55 I was reading a Reddit discussion in which everyone said that toasts should never be used outside of debugging. Oct 11 23:17:22 That views should be used instead. Oct 11 23:17:59 capella-s3 http://techcrunch.com/2014/10/11/edward-snowden-new-yorker-festival/ Oct 11 23:19:50 g00s: General interest? I don't see anything FF related :P Oct 11 23:20:04 yeah, privacy :) Oct 11 23:20:26 maybe i'm getting everyone mixed up now with their interests Oct 11 23:20:48 Well, I follow the privacy stuff too :D Oct 11 23:21:09 But things like "avoid cloud storage" is pretty easy-peasy :p Oct 11 23:22:36 indeed. next problem is internet of things Oct 11 23:23:25 Here's the discussion: http://www.reddit.com/r/androiddev/comments/1i0y73/android_development_propaganda_posters/cazyj82 Oct 11 23:23:41 Someone claiming that we shouldn't use toasts. Oct 11 23:24:06 My description above wasn't accurate. Dough! Oct 11 23:24:40 (Not everyone is saying not to use toasts.) Oct 11 23:25:04 Yah, I don't prefer the Toast personally, it's annoying ... Oct 11 23:25:24 If it's to convey meaningful information it should'nt be a transient UI Oct 11 23:26:06 As a brief aside to the user, like "Hey you're doing it wrong!", that's what it's meant for Oct 11 23:26:15 My current app shows a "Foo saved." toast when the user clicks "Save" and has a Foo open Oct 11 23:26:16 . Oct 11 23:26:26 Then the bubble obscures controls while I'm trying to continue working Oct 11 23:26:57 I'd rather design better ... not that I can ;) I let graphics artists to do the actual design Oct 11 23:27:41 How could a "File saved" message be shown? As a closeable element in the activity? Oct 11 23:27:44 I'm not sure I like that idea. Oct 11 23:27:54 as a change to the button Oct 11 23:28:07 It's an item in the action-bar overflow, in this case. Oct 11 23:28:08 spinner appears button changes to 'saved' Oct 11 23:28:15 That works ... visible element state changes Oct 11 23:28:25 (something i've seen, anyhow) Oct 11 23:29:28 FF has toasts for "you opened a tab", "you closed a tab", "you added to a list", 'you closed a list" ... I've turned them off ... tmi Oct 11 23:29:51 i think the solution is in my mind. will check Oct 11 23:29:55 Yeah, I show toasts only when it's not obvious. Oct 11 23:30:58 I love Google Chrome's new look, BTW. Oct 11 23:31:13 Mainly that they moved the 'reload/stop' button to the action-bar overflow menu. Oct 11 23:37:20 heh, chrome doesn't let you block 3rd party cookies ? Oct 11 23:37:24 (on android) Oct 11 23:41:56 hmm Oct 11 23:43:09 I think you're right, g00s. Oct 11 23:43:43 chrome is pretty terrible on android, so i use FF instead :) Oct 11 23:46:17 I wonder whether Gradle will ever be fast enough so that Android Studio can compete with Eclipse in terms of speed. Oct 11 23:46:31 g00s, did you try the latest chrome? Oct 11 23:46:33 38? Oct 11 23:46:51 I found FF to be much buggier than Chrome on Android. Oct 11 23:46:57 I wonder whether Gradle would be fast if it hadn't been written in Java. ;| Oct 11 23:47:17 Chrome is so resource-friendly now. Oct 11 23:47:24 I have like 50 tabs open. It's so fast and light. Oct 11 23:47:31 on a PC, yeah. Oct 11 23:47:35 Nah, on my phone. Oct 11 23:47:40 On this laptop, I have around 200 tabs open. Oct 11 23:47:46 But that's a different story. Oct 11 23:48:12 I see Oct 11 23:48:21 My game runs on Chrome Oct 11 23:48:25 Nexus 5 and 7 2013, no lag with chrome Oct 11 23:48:38 Lots of people complain that it's too slow, a webby game etc... Oct 11 23:48:49 Chrome used to be so slow. They changed something. Oct 11 23:48:53 And I see the problems, but it's also gaining in performance all the time Oct 11 23:52:41 You know, honestly, after trying IntelliJ yesterday and seeing how slow and ugly and bloated it is, I actually *want* to stick with Eclipse. Oct 11 23:52:44 How crazy is taht? Oct 11 23:52:45 that* Oct 11 23:53:05 TacticalJoke: on small project it's fast Oct 11 23:53:19 This was a "Hello, world". Enormously slow here. Oct 11 23:53:30 Not just Gradle downloading, either. Oct 11 23:53:45 Clicking buttons and having to wait five seconds, all the while wonder whether my click was registered. Oct 11 23:54:02 wondering* Oct 11 23:54:13 sad that 4G isn't enough for AS Oct 11 23:54:19 you basically need 8G then Oct 11 23:54:44 I have Eclipse open and 200 Google Chrome tabs open. Oct 11 23:54:46 No slowness. Oct 11 23:54:48 ➜ androidmvp-test ./gradlew clean assemble Oct 11 23:54:52 Total time: 3.931 secs Oct 11 23:55:10 TacticalJoke how much memory is chrome taking up with 200 tabs :| Oct 11 23:55:24 200 seems that it's something wrong here ;) Oct 11 23:55:39 Only around 500MB. Oct 11 23:55:42 i couldn't even do that on 4G machine with nothing running Oct 11 23:55:43 wat Oct 11 23:55:48 I am a tab hoarder. lol Oct 11 23:55:51 are you using OneTab ? Oct 11 23:56:00 I am, but 200 tabs are open outside of OneTab. Oct 11 23:56:08 I have around 500 in OneTab (but the OneTab page is closed). Oct 11 23:56:14 maybe he just doesnt know how to close them ? Oct 11 23:56:19 lol Oct 11 23:56:24 yeah i can't do 200 tabs Oct 11 23:56:28 553 in OneTab. Oct 11 23:56:38 I swear, tab hoarding is a thing. Oct 11 23:56:41 I have a hard time closing some tabs. Oct 11 23:56:47 Chrome is using 1.6 gig for me with 16 tabs Oct 11 23:56:49 Like I need to become an expert on the topic before I close it. Oct 11 23:56:50 so, go figure. Oct 11 23:56:54 Weird. Oct 11 23:57:05 Though these 200 tabs haven't all been focused by me. Oct 11 23:57:10 i say it's impossible Oct 11 23:57:12 They opened with Chrome. Chrome probably does some lazy loading. Oct 11 23:57:26 opened like 50 maybe Oct 11 23:57:38 Yeah, that's probably it. Oct 11 23:57:41 chrome is like 1500mb now Oct 11 23:57:49 CLOSE IT Oct 11 23:57:56 Just Do It Oct 11 23:58:04 load android View javadoc in chrome, thats all your memory right there Oct 11 23:58:11 BTW, I did Shift+Esc to tell. Oct 11 23:58:14 I read the Browser column. Oct 11 23:58:16 row Oct 11 23:58:17 * Oct 11 23:59:05 Does anyone really use the version-control support in Android Studio? Oct 11 23:59:13 I can't see myself ever moving from command-line Mercurial. Oct 11 23:59:24 i do just to visualize changes Oct 11 23:59:33 nice little bar goes in the gutter Oct 11 23:59:49 also changed files are different color; but i use the command line to do things Oct 12 00:00:02 Oh, that sounds nice. Oct 12 00:00:03 maybe i should turn that off to save 2 mb Oct 12 00:00:07 I didn't know it did that, but that makes sense. Oct 12 00:00:09 haha Oct 12 00:00:19 And save 57 CPU cycles per 10 minutes. Oct 12 00:02:23 I was thinking: businesses will be reluctant to switch from Eclipse to AS. They'll have to keep some support for Eclipse. Oct 12 00:04:26 TacticalJoke: you've ever observed google doing anything that showed they cared about enterprise? I doubt it :P Oct 12 00:04:40 (me? bitter about wifi api support? never.) Oct 12 00:05:11 Hmm, fair point. This isn't Microsoft and Visual Studio. Oct 12 00:05:19 Or Borland or someone. Oct 12 00:05:45 if anything as+gradle is easier to do a lot of corporate-y things with, with auto building stuff and flavors Oct 12 00:05:55 but really i only replied to mock googles stance on some stuff :P Oct 12 00:06:12 I can only hope that AD becomes non-slow (and gets simple JVM unit testing) before they ditch Eclipse. ;| Oct 12 00:06:16 AS* Oct 12 00:06:28 Yeah, Google can be pretty annoying. Oct 12 00:06:31 AS has performed a lot better for me in general than eclipse ever does Oct 12 00:06:34 Especially given how much power they have. Oct 12 00:06:41 TacticalJoke: they would have to rewrite it in C++ Oct 12 00:06:44 but breaking all my shit every update isn't a hugely endearing quality Oct 12 00:06:50 For me, it's the complete opposite. Eclipse uses 1/4 of the RAM, for example. Oct 12 00:06:55 Feels like 1/6 of the CPU time. Oct 12 00:07:19 shmooz: But Eclipse is so fast here, and Eclipse is written in Java. Oct 12 00:07:23 i had to do a local eclipse install and hack the ini to increase the jvm size; it would routinely crap itself and nuke all my state data w/ only 2 gig of ram Oct 12 00:07:26 Eclipse feels like a native app here. Oct 12 00:07:50 once I pushed eclipse up to 8, it worked... better... but didn't enjoy shring the system w/ anything else Oct 12 00:07:50 Weird. I never have crashes or anything. Oct 12 00:08:06 hey, whtever works for you Oct 12 00:08:15 Was that running on a 32-bit JRE? Just curious. Oct 12 00:08:23 TacticalJoke: nope, 64 Oct 12 00:08:26 Okay. Oct 12 00:08:38 TacticalJoke: on my box Eclipse is about 1.5 times faster Oct 12 00:08:48 I got a crappy AMD dual core laptop with 4GB ram Oct 12 00:09:08 Yeah, I have a crappy-ish dual-core processor. But an i3. 4GB here, too. Oct 12 00:09:25 I'm definitely getting 8GB RAM next time. Oct 12 00:09:30 I might splash out. Oct 12 00:09:57 I'm definitely getting Intel next time Oct 12 00:10:16 or a mac book Oct 12 00:10:46 forget about running emulators on AMD Oct 12 00:11:18 Any emulator here takes about 20 minutes to start. lol Oct 12 00:11:29 When I first started Android programming, I thought you had to close the emulator every time. Oct 12 00:11:44 That was an uncomfortable experience. Oct 12 00:17:35 I'm releasing an app next week that'll help with that kinda crap Oct 12 00:17:39 At least for AIDE users ;) Oct 12 00:18:38 AIDE might be a good learning tool for beginners Oct 12 00:18:48 Listen, it has potential and it is powerful Oct 12 00:18:56 I wouldn't try doing anything pro with it Oct 12 00:19:10 Heh, watch me go then! Oct 12 00:19:43 Darklust: watcha gonna make ? Oct 12 00:19:45 All development I've been doing has been with AIDE and a number of development-tool related apps Oct 12 00:20:12 I bet your eyes are crossed and all your hair has fallen out Oct 12 00:20:29 Essentially a prioritized front-end for ADB that will allow users to test across a broad range of devices and not just the one they're developing on Oct 12 00:20:40 Well, close, but it's pretty much done, just need UI enhancements Oct 12 00:21:10 I've been staring at 8 different android devices and haven't touched an intel-based computer in weeks Oct 12 00:21:21 that's nuts Oct 12 00:21:27 Dedication! Oct 12 00:21:43 I'm using AndChat right now! Oct 12 00:21:51 I could never take a tiny mobile device as a serious development environment Oct 12 00:22:07 hmm Oct 12 00:22:11 Welp I'm developing on a 10 inch android netbook from Rite-Aid currently Oct 12 00:22:11 so 8 devices Oct 12 00:22:14 in fact I need a 19 inch laptop, my 15 inch is too small Oct 12 00:22:24 O, I would think that you'd tape them together Oct 12 00:22:27 a 4k 19 inch mac book air please god Oct 12 00:22:30 use a 9th for a keyboard Oct 12 00:22:49 shmooz i was kinda bummed when they discontinued 17" Oct 12 00:22:56 Heh, well it's really for compatibility testing, but each devices is repurposed for a different function Oct 12 00:23:01 my wife continually mocks me for the amount of test hw i have Oct 12 00:23:12 Whenever I see one of those net-10 phones at the convenience store I'll add it to my arsenal Oct 12 00:23:14 mock Oct 12 00:23:15 test Oct 12 00:23:17 haha ! Oct 12 00:23:37 "hey there'll be another phone arriving this week" "of course there will." Oct 12 00:23:38 g00s: yeah you can only get the older 17" ones from ebay like sites, but they are too slow Oct 12 00:25:09 admittedly, apple cinema display is the best display I've used :/ Oct 12 00:25:15 that resolution, so much space! Oct 12 00:25:57 sony used to have a 19" viao but in the 300Mhz days :( Oct 12 00:26:10 I have an android tv-stick attached to a pico projector and I use that like a TV Oct 12 00:26:15 Am I crazy? Oct 12 00:26:57 Darklust, we do crazy things for a better tv system Oct 12 00:27:20 This thing is great, if the room is dark enough you can project up to an 80 inch screen Oct 12 00:27:21 I want to steal the ADT-1 from work (just collecting dust) just so I can load xbmc on that instead of my current laptop :/ Oct 12 00:27:38 80" sounds awesome, I think you should focus on a sound system now :p Oct 12 00:27:53 Right now, a mediocre pair of PC speakers :x Oct 12 00:28:27 yeah, definitely get a 5.1 Oct 12 00:29:16 shmooz i'm hoping the larger ipad will be good for reading pdf 1:1 Oct 12 00:29:28 anyone here worked with the polymer-project at all? Oct 12 00:30:15 g00s: is that the 12" ipad ? Oct 12 00:30:23 shmooz yeah Oct 12 00:30:26 bah, I said 19! Oct 12 00:30:40 i'll take 19" ipad too :) Oct 12 00:30:40 and I can't do no dev on ipad Oct 12 00:31:20 macbook air or sony viao 4k 19" would be nice Oct 12 00:31:35 or those slim samsung ultrabooks look nice too Oct 12 00:33:09 shmooz samsung stopped selling laptops in europe Oct 12 00:33:21 wonder how much longer ... until all together Oct 12 00:33:52 well those ultrabooks were metal and super thin, nice design Oct 12 00:38:33 are manifests compiled to binary format in apks? Oct 12 00:40:15 found the answer, yes Oct 12 00:44:44 alright next question, anyone know where aapt is located with Android Studio? find is failing me... Oct 12 00:51:49 Anyone know how flow manages adding / removing views? Oct 12 00:52:57 what do you mena by manages? Oct 12 00:53:03 just what it does? Oct 12 00:53:13 since you can only call setContentView once(well supposed to) Oct 12 00:53:21 how does it transition screens? Oct 12 00:53:29 are they all apart one view root? Oct 12 00:53:43 and they just do gone as to keep the view hierarchy from explodign? Oct 12 00:53:59 I think it's up to you to implement. Oct 12 00:54:18 ah Oct 12 00:54:23 it just manages the state of the backstack Oct 12 00:54:27 you do what you want Oct 12 00:54:34 hmm, if i am not using fragments what the best way to do this? Oct 12 00:54:59 basically i have two main screens: one a set of inputs, the other a viewpager showing some ui resulting from the inputs Oct 12 00:55:21 two activities is overkill in my mind, but i would normally use fragments, but i am trying to stay away from fragments so i am just wondering Oct 12 00:55:27 is JakeWharton around? Oct 12 00:55:28 I've been making an app based off of the mortar example and there is a FlowOwner and ScreenConductor that seem to do all the work. Oct 12 00:55:40 ahh Oct 12 00:55:42 He isn't incharge of those. Oct 12 00:55:48 Flow and Mortar that is. Oct 12 00:56:05 yeah i know, but hementioned he doesn't use fragments in favor of self contained views Oct 12 00:56:10 so i am jsut wondering how he manages it Oct 12 00:56:30 Yeah, he uses views and has his own backstack mangager (Jake feel free to correct me) Oct 12 00:56:38 pieces029: you got any tutorials on flow/morter? Oct 12 00:57:02 Unfortunatly no, I've justed based mine off the sample in mortar. Oct 12 00:57:23 There is also u2020-mortar which has a lot of cool extra stuff. Oct 12 00:57:44 https://github.com/lemonlabs/u2020-mortar Oct 12 00:58:08 i want to get into it, but need to finish this app for the client Oct 12 00:59:02 yeah, I wouldn't jump into it if it's something you are in the middle of. I do recommend making as many custom views as you can (or at least make sense) Oct 12 00:59:13 yeah i just finished gutting my fragments Oct 12 00:59:26 so now i am thinking of best way to transition between the input and the output Oct 12 00:59:39 i guess i can just do view.GONE since it is fairly simple Oct 12 00:59:47 Have you seen u2020? Oct 12 00:59:47 but that wouldn't fly for more complicated stuff i imagine Oct 12 00:59:56 yeah i have poked around a little Oct 12 01:00:08 this looks good primer http://tech.pristine.io/another-take-on-mvc-in-android/ Oct 12 01:00:09 You can use betterviewanimator and set transitions between the views in a framelayout Oct 12 01:01:19 The Transition Annotations in the u2020-mortar app look pretty good, I might move towards those. Oct 12 01:02:46 have you seen this library? https://github.com/hardik-trivedi/FloatingLabel Oct 12 01:02:49 pretty cool Oct 12 01:03:51 I have not, why is the gif of an ios device? Oct 12 01:04:26 oh I see why Oct 12 01:04:34 demonstratioin Oct 12 01:10:36 Hey I'm sorry if this is a fairly common question, but could anyone please point me to some good sources for backporting material design to pre-L versions of Android? Oct 12 01:11:21 TheUnkn0wn0ne what exactly do you want ? Oct 12 01:12:00 hello! Oct 12 01:12:08 heya JacobTabak Oct 12 01:12:12 did you not just leave ? Oct 12 01:12:26 nah i was out for dinner with my family Oct 12 01:12:30 i think my computer woke up briefly Oct 12 01:12:32 10 min ago Oct 12 01:12:41 StingRay_: I'm just confused on where to start. The preview SDK theme only works on L devices. How would I go about implementing it manually? Oct 12 01:13:03 TheUnkn0wn0ne ok, you still have not said what you want… what feature/function ? Oct 12 01:13:06 are we talkin about L? Oct 12 01:13:42 TheUnkn0wn0ne L emulator works pretty nicely Oct 12 01:13:44 TheUnkn0wn0ne cause material design is a common design guide … not really a thing…well yeah, it's pastel and drop shadow :) Oct 12 01:14:59 StingRay_: So I could manually replace the textures for say a checkbox with the L checkbox on google's design website? Oct 12 01:15:19 TheUnkn0wn0ne well yeah, they are a drawable Oct 12 01:16:14 Alright thanks! Oct 12 01:17:13 not sure if I like this new L design crap Oct 12 01:17:41 shmooz it's a bit old…and not all too well thought out for mobile I think Oct 12 01:18:47 they consult some fashion expert to tell them what the flavor of the month is, blech Oct 12 01:18:53 I liked Holo, I just wish more mainstream apps would have implemented the guidelines. Oct 12 01:19:30 I'm being a hypocrite right now because mine don't follow the guidelines yet, but I do want to fix that. I just takes time that I don't have. :( Oct 12 01:19:34 well for the 1st time since I thought it would come, last night I was looking at a few apps I wanted and noticed…they looked identical Oct 12 01:20:00 they offered same or similar functions, but they looked and worked the same way Oct 12 01:20:11 the difference was button labels and positioning Oct 12 01:20:20 and this was 3-4 apps Oct 12 01:20:45 they have to make it look LollyPoppy for LollyPop ;) Oct 12 01:26:35 Hey, I tried debugging my code and runtimeexception occurs the second line Cursor c = db.getQuote(2); Oct 12 01:26:37 String Quote = c.getString(c.getColumnIndex("quote")); Oct 12 01:27:17 was that a question? Oct 12 01:32:20 See what the exception message tells you. Oct 12 01:32:40 IOW, look at LogCat. Oct 12 01:35:34 ya killer runtimeexceptions always have a cause Oct 12 01:38:28 lasserix: just add and remove views Oct 12 01:41:14 are you scrolled up again Oct 12 01:41:23 no Oct 12 01:41:30 o>O Oct 12 01:41:41 I'm answering his question Oct 12 01:41:45 i didn't see it Oct 12 01:42:20 Something about fragments and setContentView Oct 12 01:43:17 thought of the day. i send emails to my wife all the time, yet for some reason gmail suggests a random person with the same first name that i sent 1 email to 5 years ago Oct 12 01:51:54 Jerry from Android Central's podcast says "Okay Google" 3 times in a row, my nexus devices go nuts Oct 12 01:52:35 I hate that "OK Google" thing. Oct 12 01:52:38 It's like a tribal chant. Oct 12 01:53:00 "OK Google." "Brilliant. Mind control has been successful. *evil laugh*" Oct 12 01:53:02 "OK Google." Oct 12 01:53:05 I made the mistake of setting it to trigger in any app Oct 12 01:55:16 Do you folks think Gradle will be significantly faster when Android Studio is released? Oct 12 01:56:18 I agree about the OK Google thing Oct 12 01:56:54 the user should be able to reprogram it Oct 12 01:57:03 and select any phrase Oct 12 01:57:54 and have it only wake up to the users voice Oct 12 01:58:01 Why is it addressing Google, anyway? Oct 12 01:58:04 ya Oct 12 01:58:16 I don't ever refer to my Windows computer as "Microsoft". Oct 12 01:58:26 heh Oct 12 01:59:06 stop asking questions and OBEY! Oct 12 01:59:35 OK Google. Oct 12 02:00:13 s/Google/Whore Oct 12 02:00:14 I like AndChat, I even paid for the donate version Oct 12 02:00:21 Same Oct 12 02:00:41 I like pfn's qicr chat Oct 12 02:00:56 Mine doesn't remember my scroll position when I press the Home key (I think). Oct 12 02:01:33 it's addressing the search engine google, not the company google Oct 12 02:01:36 :p Oct 12 02:02:29 Oh, that's true. I never use it, so I was just thinking of our Google overlords. Oct 12 02:03:05 I thought it was Google my digital girlfriend I'm addressing Oct 12 02:05:35 one interesting aspect tho is their choice of a term should provide insight into Google's internal culture, for what its worth. Oct 12 02:21:21 hello all Oct 12 02:23:22 * StingRay_ 's caffeine immunity is out of this world!!! (dammit!) Oct 12 02:29:52 thats a good thing Oct 12 02:33:14 it really is not, way too much coffee is needed to get me going even a little Oct 12 02:33:51 your diet is messed up if you need coffee to get you going... try natural boosters like honey, water etc.. Oct 12 02:33:59 i used to be hooked on coffee but gave it up Oct 12 02:34:10 I have lots of honey Oct 12 02:34:16 would not call it a booster though Oct 12 02:34:16 i prefer armodafinil Oct 12 02:34:27 but yeah, diet is pretty bad I guess :) Oct 12 02:34:48 StingRay_: honey is a natural energy booster that breaks down slowly so you dont get the high and low -- just crusing Oct 12 02:34:52 cruising Oct 12 02:37:18 although coffee + development has a historical love affair Oct 12 02:38:36 I prefer tea Oct 12 02:38:39 with honey Oct 12 02:38:45 shmooz: same Oct 12 02:42:51 i added this line in my dependencies in build.gradle and it's saying "failed to find: .." Oct 12 02:42:52 compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5', changing: true Oct 12 02:43:10 i'm under the impression that gradle is supposed to download dependencies Oct 12 02:43:56 any reason why it' wouldn't work? Oct 12 02:46:10 they have to come from somewhere Oct 12 02:46:14 you cant just add any random old dependency Oct 12 02:48:18 well, i've used node and ruby in the past, and the idea there is that you specify waht you want, and a central server (like maven?) and it's downloaded from there Oct 12 02:49:01 because if i have to download every jar i need manually, and make sure the versions are good, then what's the point? Oct 12 02:49:46 you specify repositories in your build file Oct 12 02:49:54 and then your dpeendencies need to be in those repositories Oct 12 02:50:06 check which repos you have... jcenter? maven central? Oct 12 02:50:20 find out which repo your dep is in Oct 12 02:50:55 its not magic ! Oct 12 02:51:14 does Android automatically enable wifi networks when turning on wifi? Oct 12 02:51:51 DammitJim: Yes but at least for me it can take a little time Oct 12 02:52:22 TheUnkn0wn0ne, I mean specifically previously disabled networks Oct 12 02:52:40 DammitJim: I don't believe so, let me check Oct 12 02:52:42 Hey , how can i check that a database exists or not in /databases folder , File.exists doesn't work for databases Oct 12 02:52:51 thanks TheUnkn0wn0ne Oct 12 02:53:03 mafiaboy use the device monitor tool Oct 12 02:53:23 or do you mean programmtically? Oct 12 02:53:34 that is actually a very strange question Oct 12 02:53:34 here's my build.gradle Oct 12 02:53:35 http://paste.ubuntu.com/8543242/ Oct 12 02:53:36 whats the context? Oct 12 02:53:52 hephaestus_rg you don't have any repos in that build.gradle Oct 12 02:53:57 do you have a top lvl build.gradle? Oct 12 02:54:19 JacobTabak: Yes programmatically Oct 12 02:54:23 http://gradleplease.appspot.com/ Oct 12 02:54:25 that looks like the topmost build.gradle Oct 12 02:54:29 search for 'httpcomponents Oct 12 02:54:30 hhhmmmm... it must 'cause I'm not doing anything in my code to re-enable them Oct 12 02:54:49 DammitJim: From what I've seen any network Android has configured it will try to join. Oct 12 02:55:11 is there a broadcast receiver for "wifi turned on?" Oct 12 02:55:24 here's my file structure JacobTabak http://i.imgur.com/NUNVDHV.png Oct 12 02:57:30 DammitJam: I think WifiManager.WIFI_STATE_CHANGED_ACTION is what you would want to hook into Oct 12 02:59:01 yes, thanks TheUnkn0wn0ne forgot about that! Oct 12 02:59:14 Anytime **** ENDING LOGGING AT Sun Oct 12 02:59:59 2014