**** BEGIN LOGGING AT Fri Mar 13 02:59:59 2015 Mar 13 03:00:43 <_genuser_> yo yo ppl Mar 13 03:04:17 _genuser_: yo yo Mar 13 03:32:16 it really gets quiet in here at night Mar 13 03:33:14 the freaks come out at night Mar 13 03:33:19 the freaks come out at niiiight! Mar 13 03:57:20 "North American Nexus 6s have a tad bit of Verizon bloatware after Android 5.1 (even if you’re with a different carrier)" Mar 13 03:57:26 wat? a different carrier? Mar 13 03:58:12 "It can’t be uninstalled. It can’t even be disabled. And it’s there no matter which carrier you bought your Nexus through or who you have it activated with. " Mar 13 03:58:14 wtf Mar 13 03:58:26 wow really? Mar 13 03:58:37 Uninstallable apps are pretty common on any phone you buy from other places than Google Mar 13 04:02:48 CedricBeust but nexus ? Mar 13 04:03:10 The model doesn't matter, what matters is whom you're buying it from Mar 13 04:03:26 g00s: there's a carrier here in AU that blocks nexus upgrades... regardless of where you bought it Mar 13 04:05:04 really? Mar 13 04:05:08 which one? Mar 13 04:05:12 telstra Mar 13 04:05:15 who else:P Mar 13 04:05:18 heh Mar 13 04:05:28 how do they do that if you're on wifi? Mar 13 04:05:29 Carriers carry the burden of sending these updates on their network, they have a lot of power at the bargaining table Mar 13 04:06:02 Well, a lot less power then they used to have in 2008, but still :) Mar 13 04:06:16 wabz: apparently the phones phone-home ... you can perform the upgrade if you chuck an optus/virgin/whatever sim in it and reboot a few times Mar 13 04:07:09 wow Mar 13 04:08:30 with Android 5 google gave carriers the option to install their crapware on the system partition (same as usual) or through play on first boot. If they go the latter route it can be uninstalled or disabled Mar 13 04:09:20 its not clear though whether carriers will use it, or have to use it. they probably won't Mar 13 04:09:55 one of the things i liked about my lumia, beside it not coming with much, is that you completely uninstall stuff - gone, poof, forever. except some of the system apps like phone :) Mar 13 04:11:25 at least android doesn't install a non-removable android wear app :p Mar 13 04:17:28 g00s: You're seeing this because Windows is a distant third in that race. If they were #1, you can be those apps would be uninstallable :) Mar 13 04:18:01 When you're not #1, you try harder :) Mar 13 04:19:15 i think one of the reasons they are third, is that they take a line between android and iOS and carriers didn't like it Mar 13 04:19:25 when it comes to customization Mar 13 04:19:46 to be fair, they'd had a hard fight for that number 3 spot, against Blackberry and "others" :) Mar 13 04:20:17 g00s: I think the reason why they’re third is because they came very, very late to this race. Late to the point that the quality of your product is irrelevant to its market share Mar 13 04:21:26 at least android doesn't install a non-removable android wear app :p <- it does lol Mar 13 04:21:49 e.g. Fit Mar 13 04:23:13 not even many watchfaces provided by default that you can only "hide" Mar 13 04:23:19 not even counting* Mar 13 04:23:39 fit doesn't require you to buy $350+ more hardware before it does anything at all Mar 13 04:23:49 I have a selector for textColor, there is a compound drawable selector for "top" also. The textColor selector, white color in all cases, shows gray text. Mar 13 04:23:50 g00s: Yes? Mar 13 04:24:06 deuteros nothing. whats up. Mar 13 04:24:17 g00s: Not much! Mar 13 04:24:18 kotlin m11 is slmost here Mar 13 04:24:53 maybe this week Mar 13 04:25:02 and every new version of Android Studio breaks all my kotlin :'( Mar 13 04:25:16 treelzebub orly ? :( Mar 13 04:25:30 thats ... exactly what i dont want to hear Mar 13 04:25:36 or do want to hear, i guess Mar 13 04:30:11 yar Mar 13 04:30:13 i exaggerated...but kotlin debugging isn't playing nice with Preview1.2 Mar 13 04:30:33 ah. i dont think i ever used AS debugger Mar 13 04:30:33 or, i suppose i could/should say that vice versa ;) Mar 13 04:30:54 o? Mar 13 04:31:02 Someone asked me why I wasn't using Kotlin. That kind of overhead was something I wasn't interested in. Mar 13 04:31:33 although i suppose if i was learning a new language i might use the debugger to explore what was going on Mar 13 04:31:35 I'm about to be doing some DB integration in Android and want to start putting some unit tests in to help enforce my data model Mar 13 04:31:56 knapper_tech, that's exactly how we're implementing kotlin Mar 13 04:32:15 I haven't used AS with unit testing yet. Mar 13 04:32:37 i'm just sticking with beta/dev - had enough canary to last a lifetime Mar 13 04:32:45 g00s, what do you debug with? Mar 13 04:32:53 rubber duck, logging Mar 13 04:32:55 Am I going to pull out J-unit or something? I'm looking for a hello-world of tests in AS. Mar 13 04:33:17 knapper_tech, have you seen the kotlin koans? :P Mar 13 04:33:41 you could learn kotlin and AS unit tests all in one! Mar 13 04:33:46 I'm not sure of how the test environment runs or what I'm expecting out of my workflow Mar 13 04:34:01 koans are sirry Mar 13 04:34:33 Fractals and self-reference are a lie Mar 13 04:34:34 If you’re going to be serious about testing, at least use TestNG and not JUnit :) Mar 13 04:34:47 but declarative java is not. Mar 13 04:35:12 since we can't have java 8 ((cough)) Mar 13 04:35:15 cbeust_, there we go. is TestNG better integrated? what's the story? Mar 13 04:35:22 treelzebub, I did use retrolamba Mar 13 04:35:42 and I jsut read an article last night compariing dispatch in functional and oop languages. the equavalence is striking. Mar 13 04:36:12 knapper_tech, i would love to see that article, for funsies. Mar 13 04:37:04 one sec Mar 13 04:37:09 got it off prismatic Mar 13 04:38:00 thees? [ http://blog.getprismatic.com/graph-abstractions-for-structured-computation/ ] Mar 13 04:38:42 www.lispcast.com/object-function-duals-dispatch Mar 13 04:39:05 cool, thanks! Mar 13 04:39:44 treelzebub, I've read numerous really intersting comparisons between FP and static-single-assignment or one of Id Software's game programmers talking up use of FP concepts (ref transparency) in C++ Mar 13 04:40:20 they all really help me write better code without throwing out entire ecosystems Mar 13 04:40:22 Probably Carmack Mar 13 04:40:27 I think it was Mar 13 04:40:46 Dispatch in entity-component systems is also kind of interesting Mar 13 04:41:08 That was a few years ago, there’s still no evidence that the kind of programming he was recommending is workable (or even feasible) for games Mar 13 04:41:21 i'm just now having to delve into functional paradigm...our back-end is 100% clojure Mar 13 04:41:48 oh man, that will be an adjustment. but clojure isn't really functional Mar 13 04:41:56 I got interested in this stuff because of assembly programming and always thinkign that FP abstractions are on top of something, that something being incapable of description in the functional language Mar 13 04:42:13 Clojure is reasonably functional, just not statically typed, which makes it a non starter for back ends in my opinion Mar 13 04:42:19 ah Mar 13 04:42:22 treelzebub, where at? Mar 13 04:43:24 is Kotlin or Clojure a more likely emerger at this point to not quite use so much Java? Mar 13 04:43:58 There's statically typed clojure work I heard of a while back. Mar 13 04:44:15 clojure is much more popular than kotlin atm, as least from the data i've seen. yet not as popular as scala & groovy, the dominant ones Mar 13 04:44:20 capital one Mar 13 04:44:40 I need to go do some corporate tour of duty at some point Mar 13 04:44:54 it's my first foray. totally bizarre. Mar 13 04:44:58 g00s: “much more” on scales that are not really relevant in my opinion (e.g. 0.01% vs 0.1%) Mar 13 04:45:10 cbeust_ it was 12% vs 2% Mar 13 04:45:10 I think I'm too ambitious for a lot of corporate outfits though Mar 13 04:45:22 g00s: Where did you get these numbers? Mar 13 04:45:23 kotlin & ceylon were 2% Mar 13 04:45:27 jrebel Mar 13 04:45:41 link? Mar 13 04:45:43 I've had that, "oh, what can it hurt" thought and then the subsequent, "f&@$ get me out of here" thought. Mar 13 04:46:31 well, i started contracting for a start-up that was acquired by capital one, so there's still the small office feel Mar 13 04:46:41 but the hiring process was super bureaucratic Mar 13 04:46:41 treelzebub, brilliant Mar 13 04:46:54 treelzebub, yeah, tons of HR galore Mar 13 04:46:56 complete bg check and all :| Mar 13 04:47:04 handlers for my handlers. Mar 13 04:48:58 I’m having a hard time believing there is a single language that has 12% of mind share on the JVM. Last I checked, it was still something like Java 95%, Groovy 3% and everything else fighting for the rest Mar 13 04:50:03 we are the 5% Mar 13 04:50:32 looking Mar 13 04:50:40 Sorry guys, I'm with the 95% 笑 Mar 13 04:50:59 *guys in a non-gender-specific way lol Mar 13 04:51:46 ugh, you would say that, you *man* Mar 13 04:53:06 So like this college I went to has this big racism incident at a frat. Irony.com: frats profess love of football more than anyone; half the football team are in ethnic minorities. Mar 13 04:53:07 cbeust_ i think it was in here :( http://pages.zeroturnaround.com/Java-Tools-Technologies.html?utm_source=Java%20Tools%20&%20Technologies%202014&utm_medium=allreports&utm_campaign=rebellabs&utm_rebellabsid=88 Mar 13 04:53:24 Football team protests practice to protest the frat Mar 13 04:55:57 ok, i was thinking of slide 7 here http://zeroturnaround.com/rebellabs/java-tools-and-technologies-landscape-for-2014/ Mar 13 04:56:00 sorry :) Mar 13 04:56:03 treelzebub, am I a man or a non-gender-specific entity trapped in a meat-coated skeleton shaped like male? Mar 13 04:57:38 ugh, you would ask that, you *entity* Mar 13 04:58:04 g00s: Thanks. They don’t say anything about the method they used for sampling, though Mar 13 04:58:25 I use Google trends to see what people are trying to learn Mar 13 04:58:33 That's a bigger indicator for me. Mar 13 04:58:35 g00s: Looking at job sites, stack overflow, github, tiobe and red monk yields pretty consistent results like the ones I mentioned above Mar 13 04:58:46 knapper_tech when i put ceylon / kotlin in trends there isn't much :D Mar 13 04:59:34 oh my Mar 13 04:59:35 http://www.google.com/trends/explore#q=kotlin%2C%20java%2C%20clojure%2C%20groovy%2C%20python&cmpt=q&tz= Mar 13 05:00:24 kotlin ketchup is a thing Mar 13 05:00:37 it's the 100th most thing. Mar 13 05:00:53 http://www.google.com/trends/explore#q=kotlin%2C%20clojure%2C%20groovy%2C%20smali&cmpt=q&tz= Mar 13 05:00:54 :D Mar 13 05:01:19 oooohh Mar 13 05:01:57 yeah...need to pick better language names Mar 13 05:02:25 let's make one called PHP that's actually just Rust and let the chips fall as they may Mar 13 05:04:57 :X Mar 13 05:05:18 let's make one called Android that's actually just Java and-- :x Mar 13 05:05:22 hahaha Mar 13 05:05:40 I found one place where PHP seems to be dying Mar 13 05:06:07 http://www.google.com/trends/explore#q=clojure%2C%20java%2C%20python%2C%20php%2C%20javascript&geo=US-CA-807&cmpt=q&tz= Mar 13 05:06:19 cbeust_, language statistics for github should be a good sample Mar 13 05:07:26 I prefer to use multiple samples and see if they paint a consistent picture Mar 13 05:07:30 A single source is easily biased Mar 13 05:08:19 I like sampling SF because of the $8bn in capital going into clean-slate programming every year Mar 13 05:08:33 or was that by quarter... Mar 13 05:08:41 hahaha Mar 13 05:08:49 you mean the capital going into disruption :P Mar 13 05:09:19 I'm more for innovation than disruption except in calcified old crap like Comcast or healthcare Mar 13 05:09:32 a little disruption gets the scale off the boiler Mar 13 05:11:22 cbeust_, anyway, scala looks like 3 to 5 pct of the java landscape on github Mar 13 05:11:32 Almost a fifth of US GDP tied up in healthcare. It's ridiculous. Mar 13 05:12:04 and groovy doesn't make github list Mar 13 05:14:04 pfn: Don’t know about that, RedMonk doesn’t even mention Scala Mar 13 05:14:12 pfn: http://redmonk.com/dberkholz/2014/05/02/github-language-trends-and-the-fragmenting-landscape/ Mar 13 05:14:40 My thoughts at the time when that survey came out: http://beust.com/weblog/2014/05/03/language-popularity-on-github/ Mar 13 05:14:59 at least perl went downwards :) Mar 13 05:15:17 cbeust_, http://langpop.com/ Mar 13 05:16:02 pfn: Where do you see that 3-5%? Mar 13 05:16:53 g00s, you mean you don't write irc scripts in your spare time? Mar 13 05:17:06 lol Mar 13 05:17:19 at if i did i guess i'd ise weechat, i think you can use lua Mar 13 05:20:11 cbeust_, in a different blog Mar 13 05:20:12 yeah, and ruby and python Mar 13 05:20:20 visually it looks about right Mar 13 05:21:39 I know better than relying on my eyes for stats Mar 13 05:22:05 I was doing math based on another blogs count Mar 13 05:22:14 here is a newer redmonk http://redmonk.com/sogrady/2015/01/14/language-rankings-1-15/ Mar 13 05:23:43 kotlin is even on the graph :) Mar 13 05:24:51 Pretty remarkable for a language that’s not even released :) Mar 13 05:26:34 solid. Mar 13 05:27:22 javascript on first place ? Mar 13 05:27:25 nice joke Mar 13 05:27:47 seems believable it would be 1 or 2 Mar 13 05:27:49 gordon_: Sounds reaonsable Mar 13 05:28:29 more like 2 or 3 Mar 13 05:28:36 well, whatever Mar 13 05:28:52 I'd be more happy if php would fell :) Mar 13 05:29:06 It’s falling, as are Python and Ruby Mar 13 05:29:22 isnt python going up ? Mar 13 05:29:40 i'm wondering which i should learn for stats, R or Julia Mar 13 05:29:52 and Python is used for data science too Mar 13 05:29:59 isnt julia more like a data science ? Mar 13 05:30:17 I should learn more python Mar 13 05:30:27 can be usefull Mar 13 05:30:56 I guess go will be growing Mar 13 05:31:03 and replace cpp in future Mar 13 05:31:25 it's fast, got dependency management and test support from start Mar 13 05:31:28 go won’t replace C++. It’s on a good path to replace python and ruby though Mar 13 05:31:35 it just lacks features for now Mar 13 05:31:58 cbeust_: can you elaborate ? Mar 13 05:33:18 michael-jackson-eating-popcorn.jpg Mar 13 05:35:53 Nah Mar 13 05:36:48 :\ Mar 13 05:37:59 go isn't a very good scripting language Mar 13 05:38:24 found this on google plus now http://www.47deg.com/blog/scala-api-demos?utm_content=buffer4aa80&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer Mar 13 05:42:32 gordon_, they're the same guys that did translate bubble, which is pretty cool Mar 13 05:43:38 I dont know it, can you please paste some link about it ? Mar 13 05:44:14 I don't like that they use activator though, yuck Mar 13 05:44:50 http://47deg.github.io/translate-bubble-android/ Mar 13 05:46:53 what's bad about activator ? Mar 13 05:50:17 Hi Guys, I have a question real quick. I have a "Edit Button" when clicked it set my EditText to be Editable, I don't know why when I click my "Edit Button" I won't let me edit my "EditText", I'm close, here my code: Code: http://pastebin.com/bLan1hLz Layout: http://pastebin.com/YnNF16Hf Mar 13 05:52:22 delete editable from layout Mar 13 05:52:54 ok, I think I tried that but let me double check Mar 13 05:54:02 gordon_: the EditText turns normal but I cannot type text in it. Mar 13 05:54:34 maybe there's problem with your filter Mar 13 05:55:07 gordon_: okay, thanks for the tip, ill try to solve it. Mar 13 05:55:35 also delete enabled="false" from layout, right? we don't want that hard-coded, either Mar 13 05:56:16 treelzebub. okay I'll delete it Mar 13 06:17:36 are you able to obtain location data without incorporating googles api? Mar 13 06:41:57 My primary language has up until recently Python. Virtually every language can have well-implemented software (except PHP or esolang). Python is completely frustrating when it comes time to thread or do anything fast. Even just building snappy apps is hard because of all the crap going on under the hood. Mar 13 06:42:52 I was a contributor to Kivy, and I just can't be a martyr anymore 笑 It's painful when all the little simple things you do just to have a UI result in jank. Mar 13 06:44:19 knapper_tech why oh why does guido still have Tcl default gui widgets :) Mar 13 06:45:00 who gives a f&!# =) Mar 13 06:45:13 that stupid idle thing Mar 13 06:45:53 When you write an algorithm working on a data set 15x15 and have to optimize out dictionary lookups, something is wrong. Mar 13 06:46:40 also I got really, really tired of fighting against the build toolchains Mar 13 06:47:21 Don't want to use Java or Android because it makes the UI non-portable? Compile Python into your APK. Now you have two problems. Mar 13 06:52:44 whats the best way to geocode on android? Mar 13 07:01:31 TheKarlBrown: what do you mean? so your program behaves differently on different regions? Mar 13 07:02:23 I have a program that needs location to do searches and database submissions by location Mar 13 07:02:44 I want it to be as fast as possible, and the only way to determine the users state and country is reverse geocoding Mar 13 07:04:41 idk if I want to do reverse geocoding on the android or my php backend, I know I have to get the lat/long on the iphone Mar 13 07:04:48 I was wondering what people thought in terms of speed Mar 13 07:25:23 TheKarlBrown: do you have communication with your server anyway? or could you implement it "all on phone"? Mar 13 07:26:22 I can JSON it if necessary. Idk how much more strenuous reverse geocoding is than just plain getting lat/long Mar 13 07:26:45 err send lat/long via json then php it Mar 13 07:26:47 also, what results would the server send back to the phone? if that is somewhat similar (sizewise) than the reverse geocoding response, it would speak for "all on phone" via https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding - if there is more processing where you need a stable connection (and maybe horsepower), go for server Mar 13 07:27:09 TheKarlBrown: the example looks like a simple GET to the maps api Mar 13 07:29:39 I just got wreckt by windows updates what were you saying sorryu Mar 13 07:29:51 heh Mar 13 07:30:04 also, what results would the server send back to the phone? if that is somewhat similar (sizewise) than the reverse geocoding response, it would speak for "all on phone" via https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding - if there is more processing where you need a stable connection (and maybe horsepower), go for server Mar 13 07:30:08 TheKarlBrown: the example looks like a simple GET to the maps api Mar 13 07:30:14 im saying, without knowing the other parts of your application, its hard to tell. but yes, one has to decide between computing and transfering data Mar 13 07:30:51 if the sole purpose of the server is to do the geocoding, id say: naa Mar 13 07:31:01 the state/country could be obtained serverside when the user logs in and when the user adds an idea Mar 13 07:31:37 potentially only once when logging in, at most at every query and every idea ad Mar 13 07:31:44 database addition* Mar 13 07:32:51 yeah, if the server needs to know anyway, serverside Mar 13 07:33:03 then all client has to do is get lat/long Mar 13 07:36:03 Is there any way I can try my mobile in samsung galaxy grand2 Mar 13 07:36:15 Is there any way I can track my mobile in samsung galaxy grand2 Mar 13 07:37:53 what Mar 13 07:37:54 in general is there any app preavailable for tracking devices or I have to develop accordingly Mar 13 07:37:54 ? Mar 13 07:38:18 do you want #android ? Mar 13 07:38:53 immibis: Suppose a device is lost and I only have the IMEI number of the device. Can I track it Mar 13 07:39:34 i'd guess you probably can't, unless you're a carrier Mar 13 07:40:00 hmm ok Mar 13 07:40:34 otherwise someone would have done it by now Mar 13 07:42:42 immibis: yes Mar 13 07:42:47 niru: if you install an app which periodically reports the fons location to a server, id guess you can track it Mar 13 07:43:56 x29a: yes Mar 13 07:51:36 does the android emulator delete the files in the folder /sdk/platform-tools on update?? Mar 13 08:05:58 poee: it has done that to me before Mar 13 08:06:51 shmooz, even if the files are created by you and not the emulator? Mar 13 08:07:12 full folder delete? Mar 13 08:07:16 ye Mar 13 08:07:19 yes Mar 13 08:07:27 ohh okay thank goodness Mar 13 08:07:33 I thought someone hacked into my computer Mar 13 08:07:34 :/ Mar 13 08:07:46 has anyone noticed button layouts not working in support 22? Mar 13 08:07:57 namely the backgrounds are invisible? Mar 13 08:08:51 it's either the support library or the new android studio... or sdk since they all cam eout at the same time Mar 13 08:09:07 but somehow the backgrounds are stripped out of all my buttons... shapes with a solid background Mar 13 08:09:12 out of the drawables Mar 13 08:09:13 anyone seeing that? Mar 13 09:39:50 If I add a view inside a viewgroup, is there any way to specifically position it at 0,0 Mar 13 09:40:03 or does it place it there initially automatically Mar 13 09:41:20 it appears it is placed as close to 0,0 as possible in a relativelayout Mar 13 09:53:18 starting a service is recreating my application object, any ideas? Mar 13 09:53:31 never had this happen before Mar 13 09:53:55 Hi, i have a problem with a textview with AutoLink ( phonenumbers ) Mar 13 09:55:43 I have a phonenumber like this ( 012 34 56 78 ), but the AutoLink only takes this ( 012 34 56 ), the last 2 won't link .. Mar 13 09:58:57 anybody understand why I'm getting "java.lang.IllegalStateException: eglCreateContext: EGL error: 0x3005" here?: http://pastebin.com/sESf6C1p Mar 13 10:15:23 how can i get the folder id of my folder that i just created on my google drive on android ? i am using this way to do so but always getting null result.getDriveFolder().getDriveId().getResourceId()? Mar 13 10:45:45 What's more typical as listView id: Mar 13 10:46:03 listViewUsers, usersListView, listUsers or usersList Mar 13 11:01:25 I dont understand this question Mar 13 11:41:30 I went into the phone shell via adb shell, but when I try to enter "su" it tells me not found. Mar 13 11:41:36 any idea why that would be Mar 13 11:42:50 maybe u have to do everyting w/ sudo Mar 13 11:42:51 you need to enter the full path to where su is found Mar 13 11:43:03 also you need to be rooted Mar 13 11:43:21 or the device either one Mar 13 11:43:23 god damn it, i just want to access a system folder :( Mar 13 11:44:45 is your device rooted Syzygy? Mar 13 11:45:58 it is not Mar 13 11:46:16 how do i getviews inflated from custom adapter in ListView activity Mar 13 11:46:18 It needs to be in order to get a root shell afaik Mar 13 11:47:48 rak_ getListView().getChildCount() and getChildAt() ? Mar 13 11:48:34 I have an activity !! And i inflate image and text from CustomAdapter Class Mar 13 11:48:42 Hello Mar 13 11:48:54 how do i setup my onClickListener to image and text Mar 13 11:48:56 How can I compile android libraries with gradle? Mar 13 11:48:59 Any ideas? Mar 13 11:49:04 I'm using command line Mar 13 11:49:17 I've installed gradle Mar 13 11:49:40 good day everyone do anyone have any experiance with this ? i look on the web and try several "fix" but dont seem to work =//// ( 03-13 12:44:56.674: W/System.err(7506): javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x7bfa5c78: Failure in SSL library, usually a protocol error ) Mar 13 11:50:29 gradle :project :installDebug to install a project !! dont know how to compile lib via terminal Mar 13 11:53:15 rak_, ok Mar 13 11:53:24 rak_, maybe it's the same Mar 13 11:53:28 I'll check Mar 13 11:53:34 thanks, anyway Mar 13 12:16:45 http://pastebin.com/bXrRqyYS Any idea why this code can not write a file to the sdcard? Mar 13 12:17:31 currentDB.exists() seems to be false, but as far as I can tell the file creating is correct Mar 13 12:20:40 does making closures to potentially execute in the future act as a substitute for using classes to store that crap work in the Javas? Mar 13 12:20:48 what should I use instead of BasicNameValuePair which is deprecated? Mar 13 12:21:11 I'm thinking... potentialUndo = (Stuffs s) -> {undo(s)} Mar 13 12:21:17 Pair? Mar 13 12:21:43 insted of potentialUndo = new potentialUndo.iHateConstructors(s); Mar 13 12:24:48 closures are faster and more contextual in terms of definition for one-off functions Mar 13 12:24:52 but.. Mar 13 12:25:24 the alternative is to use Rx actions? Mar 13 12:25:38 other than creating a bunch of mostly useless inner class definitions Mar 13 12:25:51 anybody understand why I'm getting "java.lang.IllegalStateException: eglCreateContext: EGL error: 0x3005" here?: http://pastebin.com/sESf6C1p Mar 13 12:35:39 thank you Syzygy Mar 13 12:50:22 morning all Mar 13 12:58:44 is there any annonced release date for okhttp 2.3 ? Mar 13 13:00:09 using + in version number can lead to unpredictable and unrepeatable builds. hmm... Mar 13 13:19:23 blusky: no Mar 13 13:20:30 JakeWharton: thx Mar 13 13:50:17 what does using popupwindow over a view get me? Mar 13 13:58:30 Hi there. Mar 13 13:59:59 If I were to ask server dev how to implement authorization/authentication on a server side what should I ask him? Consider that server guy has all the resources he wants and that implementation should be easy for him and me. Mar 13 14:01:39 Working site is already made as REST. Build entirely in ruby on rails framework. I can already use publicly available json Mar 13 14:12:24 Does anyone ever have concerns about people modifying there APK files, and redistrubting them? Mar 13 14:17:44 pieces029: Not much you can do about that Mar 13 14:19:49 Hi, i'm trying to generate an Android Key for my application through the Android Studio -> Build -> Generate Signed APK. Mar 13 14:19:53 However, i'm getting this error message http://i.imgdady.com/HLeiDW.jpg Mar 13 14:20:08 and i'm unable to understand the problem. Can someone help please? Mar 13 14:22:45 hi,ormlite has this method updateBuilder.where().eq(field, value); Mar 13 14:23:18 is there something that for not equal ? Mar 13 14:25:56 sci-fic: Why don't you ask your IDE? Type ctrl-space, see what's available Mar 13 14:26:02 hi Mar 13 14:28:56 Has anyone had to do a lengthy database upgrade before? Curious how you handled it Mar 13 14:31:10 What do you have to upgrade? Mar 13 14:31:35 bimbambino: Pre-populating a FTS table, and doing a update to some existing data via REST Mar 13 14:32:53 Do you use a database framework? Mar 13 14:32:59 greendao? Mar 13 14:33:06 or plain android? Mar 13 14:36:27 why do bluetooth apps drain the battery? Mar 13 14:36:47 because bluetooth needs battery Mar 13 14:37:07 yes, but why does use so much? Mar 13 14:37:11 *it Mar 13 14:38:56 bimbambino: Using OrmLite. I'm comfortable with how everything works, and upgrades work. OrmLite ties into the native Helper. Just have never come across this use case before where I need to do a long upgrade operation Mar 13 14:39:10 im not sure what happens when bluetooth isnt actually connection something (maybe it then drains battery by scanning for clients?), but when connected, it needs to constantly "do stuff" in oder to keep the connection Mar 13 14:39:25 like sending data or keep-alive pings Mar 13 14:40:20 when I had to use a FTS Table I had to programm all sql statements on my own Mar 13 14:41:26 bimbambino: Yeah, so I was able to export the statements from our server table thankfully Mar 13 14:42:09 then use executeRaw to run the statements Mar 13 14:42:16 i've been trying to figure out what specific process or activity causes it to use so much...it's starting to get frustrating Mar 13 14:42:32 bimbambino: Yeah, I have all of that down. I'm mainly just curious about doing a one-time blocking dialog or something while the setup runs Mar 13 14:42:53 bimbambino: The other thing I am doing is a REST call to get updated information for some favorites they have saved from the previous version Mar 13 14:44:03 then just use an asynctask, show the dialog before execute and hide it on onpostexecute Mar 13 14:53:05 what image sizes do you guys generally use for yoru xhdpi activity/fragment backgrounds? Mar 13 14:53:26 I'm having a hard time managing memory in an app that takes a shitton of bitmaps Mar 13 14:53:32 depends on the effect you're trying to achieve Mar 13 14:53:41 the designer wants a bitmap everywhere, those trendy blurry images Mar 13 14:54:03 well the general effect of having a background image, where the views overlap Mar 13 14:54:37 keeping this app below 100mb in memory is proving to be very hard Mar 13 14:56:56 what are you doing? Mar 13 14:57:08 is it a wikipedia app? Mar 13 14:57:23 the secret is to not load all of wikipedia up at once Mar 13 15:18:49 jvrodrigues, if the images are blurry Mar 13 15:18:53 you can just use half-resolution Mar 13 15:18:59 since resampling is blur by itself :) Mar 13 15:20:14 ya, in xhdpi i went from 900x1200 to 224x300 Mar 13 15:20:24 big changes Mar 13 15:20:27 thus my question Mar 13 15:20:34 do you guys usually do this? Mar 13 15:21:01 yes Mar 13 15:21:22 why ship full res images if you're not going to use them as full res Mar 13 15:22:06 My tutorial viewpager with 3 fragments, each with a 500x500 (in xhdi) image in it is still very heavy. Mar 13 15:22:45 Guess this application is not shipping to india anytime soon Mar 13 15:23:40 So SQLiteHelper's onUpgrade runs on the main thread right? So if I need to do something expensive in another thread, can I use a Handler to post a Runnable that throws an Exception in the event that the expensive upgrade fails, in order to make onUpgrade roll back? Mar 13 15:26:19 It's called on the thread where you try to access the database Mar 13 15:26:59 SimonVT ahhhh, okay. So in my Application class I can just access the database to force the upgrades, and program all of my Helper stuff without threading Mar 13 15:27:14 SimonVT: Access in another thread in my Application class I mean Mar 13 15:27:23 SimonVT: Will that be safe to ensure rollback on error Mar 13 15:27:27 Why do some projects require build-too 20 instead of the latest one? Some project being Google IO app, ownCloud app, etc. Mar 13 15:27:33 build-tool* Mar 13 15:28:00 No reason to start a thread in the application class.. It'll get called once you access the database anyway Mar 13 15:28:01 Is it possible to silently listen to device location updates, without sucking up too much battery? Mar 13 15:28:01 donniezazen: Cause when they were written that version of the tools was out and they just haven't upgraded yet probably Mar 13 15:28:10 in the background Mar 13 15:28:31 SimonVT: Right, but my expensive operation needs to happen in another thread. So I have to do something to make sure that the onUpgrade rolls back if it fails Mar 13 15:28:52 SimonVT: I don't think it will if I throw the exception in a spawned thread in onUpgrade Mar 13 15:28:53 You should always access the database on a separate thread, so.. Mar 13 15:29:17 theblang: Google IO requires both 20 and 21 or above. https://github.com/google/iosched/blob/master/doc/BUILDING.md Mar 13 15:29:22 It's not an issue.. You're never going to touch the database on the main thread anyway Mar 13 15:30:30 SimonVT: I actually do, haha. I had started to do Loaders one time but then put the migration on hold because the database operations didn't seem to effect UI much Mar 13 15:31:20 Well, then you're doing it wrong.. enjoy Mar 13 15:33:44 SimonVT: Do you use Loaders? Mar 13 15:35:45 Yep Mar 13 15:37:09 Are the __ANDROID__, __IOS__ and WINDOWS_PHONE compiler directives supported in Xamarin PCL projects? Mar 13 15:38:25 SimonVT: I have a Loader implemented, and understand how to use them. I implemented one of my ListView screens with a Loader one time. I hated how it would flash the no results view for just a second. Mar 13 15:40:04 So instead you block the main thread Mar 13 15:40:17 You don't have to show the listview/empty view until it's done loading Mar 13 15:40:51 SimonVT: Yeah, I'm laughing right now because I feel like a kid who knows he has done something bad but did it anyway. Haha Mar 13 15:41:35 how big are your databases? Mar 13 15:41:51 SimonVT: Really though, it is surprisingly not that sluggish, the UI. That is one reason I put migrating to Loaders on the backburner. Mar 13 15:42:00 SimonVT: Though an older device probably is worse Mar 13 15:42:11 jvrodrigues: Not very big. Probably one reason why my UI isn't as effected Mar 13 15:42:12 yeah, there are huge differences in flash speed Mar 13 15:42:17 if it takes 10ms on SGS4 Mar 13 15:42:24 it can easily take 500ms on lowend devices Mar 13 15:42:47 Mavrik, SimonVT So should I flog myself at lunch until I switch to Loaders? Mar 13 15:42:57 huh Mar 13 15:43:01 Loaders are shitty API Mar 13 15:43:07 I'm just kidding around. Mar 13 15:43:07 but you can switch to them if you want Mar 13 15:43:08 Just something that does it on a thread Mar 13 15:43:10 Mavrik: What do you use Mar 13 15:43:13 just get the damn DB off main thread :P Mar 13 15:43:26 If you don't want to show your empty view until it's done loading, there's View#setVisibility Mar 13 15:43:32 theblang, RxJava or ExecutorServices Mar 13 15:43:43 also AsyncTasks for lazy people :P Mar 13 15:43:48 ah Mar 13 15:43:53 Mavrik: I'll never use AsyncTask again Mar 13 15:44:03 i thought you werent going to mention asynctask :D Mar 13 15:44:23 theblang, whats wrong with asynctask? Mar 13 15:44:44 jvrodrigues, yeah, not a fan beacuse AsyncTasks are annoying to use with parameters Mar 13 15:45:04 jvrodrigues: Just don't like the code overhead. Gotta make sure to cancel it in onResume for example, or make sure to cancel it before starting a new one. Mar 13 15:45:37 Mavrik: Just curious, what do you dislike about Loaders? Mar 13 15:45:46 shitty api Mar 13 15:45:49 Mavrik: I know how to use Loaders, but I have been wanting to learn RxJava Mar 13 15:45:49 pretty much everything? :) Mar 13 15:45:55 thats pretty clear Mar 13 15:46:05 shitty api for no real utility Mar 13 15:46:06 it's a cumbersome API on top of threads Mar 13 15:46:25 pfn: what do you use instead? Mar 13 15:46:32 usually using something like EventBus with Executors (or heck even asynctasks) makes for a significantly less buggy and prettier code Mar 13 15:46:44 that is, using EventBus sticky events for delivery of loaded data Mar 13 15:46:52 any sort of job scheduling service Mar 13 15:46:57 futures, etc Mar 13 15:46:57 suddely configuration change event issues go poof :) Mar 13 15:47:10 theblang, why not load the db in the controller and keep the objects in memory? Instead of accessing the models in your view Mar 13 15:47:28 if the db isnt as big as you say... Mar 13 15:47:37 Mavrik, pfn: I'm currently using Otto pretty extensively for REST calls Mar 13 15:47:40 I don't like sticky events... Mar 13 15:48:04 They can be an issue yes. Mar 13 15:48:35 I use them only in small project. Mar 13 15:48:37 *projects Mar 13 15:49:01 Mavrik, pfn, SimonVT So yeah, I want to migrate the calls off the UI thread. Just not sure what to invest my time in to do it. People complain about all the main methods it seems Mar 13 15:49:28 rxjava Mar 13 15:49:47 if you don't know anything else is a good start Mar 13 15:50:04 Otto doesn't have sticky events because they are bad Mar 13 15:51:07 pfn You wouldn't happen to have a good example of using RxJava for database interactions would you? Mar 13 15:51:11 Bad upbringing and that ;) Mar 13 15:52:44 JakeWharton: It looks like you love Loaders https://twitter.com/jakewharton/status/385898996884971520 Mar 13 15:53:07 theblang: mabye try https://github.com/square/sqlbrite Mar 13 15:53:44 JakeWharton: you are fired! Mar 13 15:54:21 JakeWharton: Oh sweet! So I'm already using Retrofit extensively. This would allow my database layer to tie into RxJava as well it seems. Mar 13 15:56:00 pfn, JakeWharton: Now I just need to make myself wrap my mind around RxJava, lol. Wonder if I can do it before our next release Mar 13 16:19:07 not that hard... Mar 13 16:26:01 hi i know how change toolbar and status bar, i use Palette and i get 6 color. I don't know how get two similar color. Chrome for Android gets a color and other dark color Mar 13 16:26:59 math Mar 13 16:28:32 Helloo!! I have a textColor selector in res/color/tool_single_text.xml :: all states are white, but the text shows up as something completely different. There is also a selector for background, and drawableTop. Is there a conflict that is making textColor not work correctly? Is there something else? Mar 13 16:28:35 math? Mar 13 16:28:48 All of these are attributes of the TextView i'm using Mar 13 16:32:04 devuser: tbh I'd probably check the Palette source code. it'll probably at least point you in an interesting direction Mar 13 16:38:55 does setting a LongClickListener interfere with the operation of an OnTouchListener? Mar 13 16:39:16 I've got them both firing now, but am not sure if it holds up under all conditions Mar 13 16:41:45 where do you guys go around finding freelance work? Mar 13 16:41:52 Other way around.. Click/LongClick listeners are called on View#onTouchEvent.. TouchListeners are invoked before that Mar 13 16:42:36 knapper_tech, i think that varies across devices, honestly. the device's capability to register a touch vs. a long-click matters a great deal Mar 13 16:43:21 treelzebub, do some devices suck at long-click? Mar 13 16:43:49 I mean, will a vanilla long-click handler in other situations just not work on some devices? Mar 13 16:44:35 I'm trying to write a tradle task to generate jni headers, and am trying to use 'sourceSets.main.compileClasspath' to get the output classpath, but gradle is erroring on "Could not find property 'compileClasspath' on source set main". Am I doing something wrong, or is the main source set something that doesn't match the documentation? Mar 13 16:45:11 as long as the device works properly, long click listeners work the same. It's android that determines if a click is longclick or not, not the device Mar 13 16:45:47 knapper_tech: there are no conflicts in the android code for those listeners, if that's what you're asking Mar 13 16:46:53 jvrodrigues: yes, but the screen must broadcast the click to the OS Mar 13 16:47:33 well the only way it wont, is if the device is faulty, thus my initial statement "as long as the device works properly" :) Mar 13 16:49:24 right, right :) my point didn't really address the question at first. my fault Mar 13 16:49:49 "the click" .. The hardware sends down, move and up events.. Android interprets that into clicks, long clicks, whatever.. Mar 13 16:51:20 yerp. so, he was asking if touchListeners and longClickListeners ever got screwy in the wild. programmatically, we say no. but practically, i say probably ;) Mar 13 16:52:12 Yeah I would expect the framework to handle buffering, slop etc. I wish that was true in onTouchListeners (Not having to buffer moves and touch-ups to avoid erroneous crap manually) Mar 13 16:53:08 I see there is a ReactiveCocoa library that is support Swift in its newest beta version. So if I get comfortable with RxJava I am guessing I could go to iOS and apply the same philosophies? Mar 13 16:53:38 theblang, does ReactiveCocoa support Obj-C first? Mar 13 16:53:44 knapper_tech: Yeah Mar 13 16:54:36 knapper_tech: but forget about that, just in general, the same philosiphies would apply I am guessing? Mar 13 16:54:48 theblang, FRP seems to be a farely well-defined set of ideas these days, like OOP, so I'd expect that your basic architecture would look the same up to the limitations of the language-specific implementatio Mar 13 16:56:36 I just read some of the source and sadly had nightmares about obj-c's weird function calling syntax Mar 13 16:57:39 When Haskell does something weird in syntax, at least it's because the language feature probably doesn't exist in most other languages I've used Mar 13 17:00:57 theblang, reactivecocoa is pure osx or also cocoa touch? Mar 13 17:01:11 knapper_tech: Not sure Mar 13 17:03:41 What is this new "PENDING PUBLICATION" stuff? Mar 13 17:03:45 it was over a day since release Mar 13 17:17:32 Is there a way to define a bitmap in a drawable xml so I can have a background point to a bitmap on some devices, and on larger devices just point to a xml shape? Mar 13 17:18:24 just give the drawables same id,but put them in correct bucket of device density, is that possible? Mar 13 17:18:30 name.xml -> contents: in one folder, in the other: name.xml -> contents: Mar 13 17:19:32 not sure if you can reuse the exact same name as the bitmap and skip the xml-bitmap-drawable step, but if you can, that's an option too. Mar 13 17:23:48 What's more typical name for a listView id: listViewUsers, usersListView, listUsers or usersList Mar 13 17:24:44 Or e) none of the above Mar 13 17:25:59 f) none Mar 13 17:26:06 Hi guys Mar 13 17:26:11 good evening Mar 13 17:26:22 I just published an app on google play Mar 13 17:26:46 and it's saying pending publication Mar 13 17:26:57 I dont rememebr playstore taking this long 4 years ago Mar 13 17:27:03 it used to be alot faster? Mar 13 17:27:15 said It might take multiple hours Mar 13 17:27:24 What's the best way to handle user password information? I dont get any token, I just do a post with username/password. Mar 13 17:27:26 g) an_id Mar 13 17:27:29 *handle persisting Mar 13 17:27:44 lasserix: no cookies? Mar 13 17:28:45 No Mar 13 17:29:52 mantas322, mine were all live in ~4-5 h Mar 13 17:30:02 why does it take so long though Mar 13 17:30:06 before it was almost instant Mar 13 17:30:15 you could immediately go to the url Mar 13 17:30:26 it would take 2-4 hours to update store listings. Mar 13 17:30:34 but the app would publish instantly Mar 13 17:30:53 lasserix: hm. your application sandbox should be enough (so, just store it internally, say in shared prefs). if you're worried about rogue root apps, maybe avoid "username" and "password" keys, maybe xor the string with a hard-coded string in your app, maybe hide it in jpeg metadata, etc there's an infinite number of things you can do to make it slightly Mar 13 17:30:54 harder to find. Mar 13 17:31:12 yeah Mar 13 17:37:50 .... Mar 13 17:37:55 common playstore... Mar 13 17:38:06 im so anxt Mar 13 17:43:13 if i have a custom layout for a notification, what would be the best way to ensure that text in that notification is readable on both lollipop and non-lollipop? i currently have e.g. android:textColor="?android:textColorPrimaryInverse" which works on lollipop but not apologies if this is obvious but i'm fairly new to android development; if there's documentation that points out the answer, that works too Mar 13 17:45:32 would the best solution be programatically changing it from java based on the API level? Mar 13 17:46:18 hi, I need to read data from /raw dir. Using InputStream inputStream = getResources().openRawResource(R.raw.rawresource), is there a way to pass rawresource file name as a variable? Mar 13 17:52:48 AS 1.2 Preview 2.0 is out Mar 13 17:52:48 bolovanos_: the R.raw.rawresource integer basically _is_ the file name. Mar 13 17:54:19 Hi all Mar 13 17:55:23 bolovanos_: if you need direct access to the file name etc, you should put it in assets instead Mar 13 17:55:40 http://developer.android.com/guide/topics/resources/providing-resources.html#ResourceTypes Mar 13 17:55:44 g00s, though no update to http://tools.android.com/recent yet. i can hardly wait ;) Mar 13 17:56:47 groxx, i see accepts integers, that means "R.raw. is translating filenames from /raw to integers, so i need some method which is able to do it Mar 13 17:57:35 Spoom, i was using /assets at the begining, but it does not work for serialized files which I am using Mar 13 17:57:54 Has anyone been having any issues with Gradle locking up the ide or even the whole system.? Mar 13 17:58:05 bolovanos_: what exactly are you trying to do? do you need to give a file in raw to some other code which doesn't accept an InputStream, or are you trying to do something else? Mar 13 17:59:16 groxx, i have serialized String [] files named file{0-x}.ser, i need to open specific file only at time when it is needed, Mar 13 18:00:33 groxx, I was hoping to generate {0-x} number based on specialized code, that means filename is variable... Mar 13 18:01:05 (totally unrelated) http://pastebin.com/cLpcPwX3 android studio preview adds a ~/.AndroidStudioPreview1.2 folder, and those are the contents. wat. Mar 13 18:01:57 yo dawg, I heard you like restarting Mar 13 18:02:29 bolovanos_: ah. you can probably achieve that with http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier%28java.lang.String,%20java.lang.String,%20java.lang.String%29 Mar 13 18:02:40 I am working on my first Android project. I need to store a value on a daily basis. What should I start with ORM or SQLite? Mar 13 18:03:09 bolovanos_: that's the reverse, but it'll let you find the ID of the a /raw file by a string, which might fit what you need, if I follow correctly? Mar 13 18:03:28 update: changing the text color based on the api level seems to work, but i suspect it's not exactly the best practice; anyone know how i can do this better? Mar 13 18:04:18 Spoom value folder for the right api level? Mar 13 18:04:30 oh geez Mar 13 18:04:33 Spoom: arguably, you can make a style that you override by API version, e.g. with values/styles.xml (contains the fallback color), and values-v21/styles.xml (contains the ?android:textColorPrimaryInverse value) Mar 13 18:04:33 i guess Mar 13 18:04:44 hmm Mar 13 18:04:50 that's better than duplicating the whole layout Mar 13 18:04:58 groxx, seems to be exactly what I am looking for - will test it... Mar 13 18:05:10 thanks for the suggestions Mar 13 18:05:36 my app has to go back to android 2.3 -_- Mar 13 18:06:00 my condolences Mar 13 18:06:24 the emulator for 2.3 is hilariously inaccurate based on device testing Mar 13 18:07:36 why anyone would go to all that trouble for a 7% market share that's probably an inflated amount...is beyond me Mar 13 18:08:00 white label broadcast media apps :^) Mar 13 18:08:14 my oh my! Mar 13 18:08:41 Spoom: inaccurate how? I mean, yes, but I'm curious if there's a specific thing I'm not familiar with :) mostly I just have issues with device theming (which is still rampant) Mar 13 18:09:07 I don't think devices had to ship a consistent standard theme pre 4.0 Mar 13 18:09:17 also 2.3 is bigger globally than Google's records suggest, because google's records only cover google-play-running devices Mar 13 18:09:20 Spoom: one can only hope it's winamp lol Mar 13 18:09:23 groxx: i'm working with a cordova app, the webview seems to be inaccurate... like it doesn't scroll at all in the emulator, but it does on devices Mar 13 18:09:32 treelzebub: nothing so famous :^P Mar 13 18:09:36 oooh, yeah, webview is a pile of inconsistency Mar 13 18:09:50 odd that it doesn't work in the emulator though Mar 13 18:10:44 we have users with our app that was made by a previous developer, and i don't want to leave them orphaned when we upgrade, basically Mar 13 18:11:08 especially since the older apps will stop working a few months after the update Mar 13 18:36:12 is anyone seeing an issue with the new Android Studio/sdk with button layouts? Mar 13 18:36:37 namely any solid drawable shapes have alpha channels of zero for some reason Mar 13 18:36:51 even though they show up correctly in android studio preview Mar 13 18:36:57 on the emulator/devices they are missing Mar 13 18:37:04 maybe it was the build tools Mar 13 18:37:11 everything was updated within like 24 hours so I don't know what it was Mar 13 18:38:20 fattire: i know they made notification icons white-only, don't know if that applies anywhere else Mar 13 18:38:54 Spoom: these are just buttons where I say android:background="@drawable/wahtever" and they don't show up in the app Mar 13 18:38:57 but do in the layout preview Mar 13 18:39:25 you'd never know anything was wrong in AS but on the emulator the buttons are just invisible Mar 13 18:39:46 I'm wondering why no one else has reported it cuz it's multiple buttons in my app... can't figure out if I'm the only one or what Mar 13 18:45:00 groxx, great - it worked, thank you! I wish it were bit easier/straight forward :) Mar 13 18:53:24 groxx, non googl eplay running devices are irrelevant Mar 13 18:53:45 groxx, the likelihood of your app running on them is nonexistent Mar 13 18:54:02 unless you're specifically targeting the storefronts to which they have access Mar 13 19:09:50 With RxJava, if I want to trigger a REST call then a database operation, both of which return observables (Retrofit and SqlBrite), then update the UI, should I use a map? Mar 13 19:09:52 amazon, china, etc Mar 13 19:09:58 I wonder whether something like this helps with programming: http://asoftmurmur.com/ Mar 13 19:10:01 (Rain sounds, etc.) Mar 13 19:10:03 but yes, if you're only distributing through gplay, only gplay's numbers matter Mar 13 19:10:23 is the amazon app store worth considering yet? Mar 13 19:10:51 maybe with a tablet app, otherwise not if it's much effort. Mar 13 19:10:59 fair enough Mar 13 19:12:38 Uhhh Mar 13 19:12:54 "When you publish an app for the first time, you need to create a Google Group or a Google+ community for testers before the link to your app becomes available. If you try to access the link (even using your own Google account) without being a member of the configured group/community, you’re greeted with a 404 page." Mar 13 19:12:56 is this true Mar 13 19:13:04 I have to create some sort of google community for testers? Mar 13 19:13:15 it's an android app Mar 13 19:13:18 just send your testers the apk Mar 13 19:13:29 mantas322: if you want betas, yes Mar 13 19:13:33 I dont Mar 13 19:13:34 google wants everyone in their ecosystem in such a way that it's a pain to leave. Mar 13 19:13:35 TacticalJoke, for some, it does Mar 13 19:13:36 i just want to publish Mar 13 19:13:38 "PENDING PUBLICATION" Mar 13 19:13:40 called white noise Mar 13 19:13:41 well, if you want betas distributed through gplay Mar 13 19:13:44 sometimes, works for me too :D Mar 13 19:13:46 its been pending for MULTIPLE hours now Mar 13 19:14:30 mantas322: Patience, young grasshopper. Mar 13 19:14:36 ...... Mar 13 19:14:40 * mantas322 taps feet Mar 13 19:14:59 mantas322: This might help: https://coffitivity.com/ Mar 13 19:15:00 I am looking for some help on logic level. want to build an indeterminate progress bar which behaves+looks like hangout's typing indicator Mar 13 19:15:02 any idea? Mar 13 19:15:26 Actually, that could have the opposite effect. Mar 13 19:15:39 TacticalJoke: omg, the mere existence of that site will annoy the hell out of one of my coworkers. MUST SHARE. Mar 13 19:15:53 http://www.noisli.com/ is quite nice for background noise Mar 13 19:16:20 the way Google Play betas are implemented really sucks Mar 13 19:16:31 :D Mar 13 19:16:41 if you opt in to betas for an app, you're forced to use betas until you opt out, and even then, you can't downgrade Mar 13 19:17:02 (yes, downgrades were never supported by Android, but it could be done by saving app data, uninstall, reinstall) Mar 13 19:17:27 so unless the app uses Cloud Save or you're rooted (or maybe adb backup, if the app didn't disable that in the manifest), you're gonna lose your app data if you want to downgrade from a beta Mar 13 19:17:31 no more painful than their different-apks-to-different-devices thing :| version code hell. Mar 13 19:17:55 nyuszika7h: ah, didn't know that. that does legitimately suck Mar 13 19:18:16 you could just submit the betas as a separate app, with a different package name Mar 13 19:18:24 just like Chrome / Chrome Beta Mar 13 19:19:00 nyuszika7h: what happens if you release a new (non-beta) app version with a higher version code? do the beta-ers get "out-graded" from beta, or e.g. do their reviews still not appear in general? Mar 13 19:19:12 no clue Mar 13 19:19:21 not really familiar with betas apart from what I said Mar 13 19:19:49 me neither :| always done it via email or hockeyapp, though crashlytics' thing is pretty nice. Mar 13 19:21:14 20:13:34 google wants everyone in their ecosystem in such a way that it's a pain to leave. Mar 13 19:21:15 this. Mar 13 19:21:17 is so true Mar 13 19:22:09 googles ecosystem is still the easiest to leave Mar 13 19:22:26 they'd lose users when they killed things, otherwise. see google code, for most recent example. Mar 13 19:22:43 I'm wondering why Google Cloud Messaging is so special on Android Mar 13 19:22:47 I mean, push notifications are nothing new Mar 13 19:23:01 why can't apps just use their own central server for them Mar 13 19:23:01 nyuszika7h: it only pushes if there's enough water in the cloud ;) Mar 13 19:23:07 lol Mar 13 19:23:16 that'd explain its special behaviors at least. Mar 13 19:25:06 what on earth could be taking the playstore so long http://4.bp.blogspot.com/_vNf9jd-Dh6k/TIjusEPR5nI/AAAAAAAAAL4/UVIQdwFhP_g/s1600/simpsons+cisco+systems.png Mar 13 19:26:05 everyone is pretending push notifications are magic and Google Cloud Messaging can't be replaced (unless you're Amazon) Mar 13 19:26:06 >_> Mar 13 19:26:26 nyuszika7h: you can. amazon has one, there are a fair number of chinese versions, you can run mqtt, etc Mar 13 19:26:40 read what I said again Mar 13 19:27:00 if you have one service pushing over one connection for all programs, it's a lot more efficient Mar 13 19:27:03 pretending, yeah. though I don't know that people are actually omg magic about it. Mar 13 19:27:09 the reliable approaches i've seen actually only use gcm as fallback. Mar 13 19:27:27 ^ yeah, actually holding your own connection open reliably is hard, period. Mar 13 19:27:28 also, maintaining a stable push connection over a cell internet connection is kinda tricky Mar 13 19:27:40 https://blog.pushbullet.com/2014/02/12/keeping-google-cloud-messaging-for-android-working-reliably-techincal-post/ Mar 13 19:27:59 if you're doing it yourself just because you don't want google, you're probably doing it wrong. there's a lot of shit required to make it work :/ Mar 13 19:28:34 indeed there is. and the fact that gcm is so buggy is proof of it. Mar 13 19:28:43 i've always wondered if play services was doing something deeper at the OS level that other apps couldn't do, or if google had agreements with carriers to allow certain tcp behavior, etc Mar 13 19:28:53 well, I'm glad I'm not an app developer Mar 13 19:29:01 Did you guys check out that new reference app? My goodness, it has some bad code. Mar 13 19:29:03 gcm hasn't been that buggy for me Mar 13 19:29:09 g00s: no, they just have a lot of workarounds and dead connection detection, they use the connection monitoring permission, etc Mar 13 19:29:14 TacticalJoke: the tv/watch/car music thing? Mar 13 19:29:14 but then i haven't done a huge amount with it, just push notifications through parse Mar 13 19:29:16 Yeah Mar 13 19:29:24 g00s: pretty much just what the name says: it's a central service framework. apps can reimplement the stuff, but it's generally not worthwhile. Mar 13 19:29:33 not yet. sounds like I should include some alcohol when I do though? Mar 13 19:29:34 yeah Mar 13 19:30:00 definitely the kind of thing that should be centralized, for efficiency (both battery and network) Mar 13 19:30:14 now, i would rather it be an open source solution that was centralized, but you know, whatever ;D Mar 13 19:30:17 TacticalJoke: link for those of us who suffer from lazy/busy/etc.? Mar 13 19:30:28 someone's gotta run the reliable servers Mar 13 19:30:32 zinx: SPOF still though. Mar 13 19:30:36 zinx: yeah, i'm sorta surprised I haven't seen e.g. a "receive amazon pushes" app that handles all that for you, and you as an app interact with it like GCM Mar 13 19:30:49 though I suppose, at this point, browsers might do that for us soon. Mar 13 19:30:53 groxx: amazon has management issues atm Mar 13 19:31:29 there really is a space for an open source mesh network of cross-platform push replacement though, i think. Mar 13 19:31:31 yeah, so not amazon-specific :) but it's weird to have to include a library and hold your own socket open, when every other app has to do the same thing. nice as a fallback, but you're probably better off installing a special app for it. Mar 13 19:32:00 you'd have to rely upon your platform for things like enterprise push still, but the average consumer case could be handled better than it is now, i'd suspect. Mar 13 19:32:44 groxx: it wouldn't even need to be a special app, necessarily. Mar 13 19:32:48 lewellyn: anything open source would allow encrypted+authenticated push messages, with receipt notification Mar 13 19:32:54 zinx: yes. Mar 13 19:33:00 Guys guys Mar 13 19:33:02 lewellyn: so enterprise could use it no problem :/ Mar 13 19:33:04 I have question Mar 13 19:33:37 zinx: except that the enterprise stuff can't talk to the personal stuff on most platforms, and on some platforms they can't talk to other apps in the enterprise container. Mar 13 19:33:41 I want to make an app where people make profiles and those get saved on a server Mar 13 19:33:46 Where should I get started on learning that? Mar 13 19:33:52 SQL???? Mar 13 19:33:53 i might actually take on that task if i could think long enough, and didn't have so much to do already :P Mar 13 19:34:03 Hello? Mar 13 19:34:10 lewellyn: so it would be installed twice. Mar 13 19:34:19 zinx: so the logistics of an open source solution for enterprise are far more challenging. i've actually looked into this general class of problem in recent months, with a focus on enterprise. Mar 13 19:34:28 zinx: why would you even need to install anything? ;) Mar 13 19:34:43 lewellyn: because it's probably not going to be integrated with the core framework. Mar 13 19:34:44 12:32 lewellyn: groxx: it wouldn't even need to be a special app, necessarily. Mar 13 19:34:51 it wouldn't necessarily have to be. Mar 13 19:34:55 How can I learn to save data like user profiles on a server using Java?? Mar 13 19:34:57 i'm still under the impression google has some special sauce there with GCM, or carriers aren't timing out their tcp connections the same way Mar 13 19:35:00 Guys? Mar 13 19:35:12 but the research i've done there is probably covered under previous-employer nda. Mar 13 19:35:15 lewellyn: "necessarily", but how else do you both a) share a connection, and b) trust that it's real? Mar 13 19:35:18 lewellyn: it would need to be a separate app, not a library each app includes. Mar 13 19:35:37 I feel like I'm either being ignored or muted Mar 13 19:35:38 lewellyn: technical design issue, not asthetic Mar 13 19:35:40 groxx: that's what i don't think i can share, as to approaches taken and what's worked cross-platform. Mar 13 19:35:53 zinx: it doesn't need to be a separate app. :) Mar 13 19:35:58 lewellyn: yes it does. Mar 13 19:36:02 nope. :D Mar 13 19:36:12 lewellyn: it either needs to be a separate app or part of the system (aka, a separate app) Mar 13 19:36:16 I mean, I _suppose_ you could query for other apps that have the lib and proxy through them + encrypt all the traffic. but I would distrust their stability more than my own / a special-purpose app. plus they may be using an older version. Mar 13 19:36:21 lewellyn: anything else is going to be completely inferior. Mar 13 19:36:28 groxx: that is one approach i can recommend against. Mar 13 19:36:37 it's beyond fragile. Mar 13 19:36:41 evening guys Mar 13 19:36:51 Hey Mar 13 19:36:53 yeah, I'd imagine so, given even normal background-app stability :) Mar 13 19:37:10 i recommend against that class of approach in general, not even specific to this. Mar 13 19:37:12 deathcode: read http://www.catb.org/esr/faqs/smart-questions.html all the way through and then come back Mar 13 19:37:26 Thank you. That's what I was looking for Mar 13 19:37:32 Somewhere to get started in Mar 13 19:37:33 On Mar 13 19:37:58 i wonder what my current employer does in this space, since i'm sure they do something. Mar 13 19:38:06 lewellyn: fwiw i know a great deal about real-time networking specifics, including quite a bit of esoteric stuff regarding what the OSs are capable of doing :) Mar 13 19:38:23 zinx: i'm not saying you don't. :) Mar 13 19:38:31 lewellyn: i also have a great deal of security experience, both from the software side and the cryptographic side Mar 13 19:38:31 Wow, that document doesn't mention Usenet. ;o Mar 13 19:38:46 he took that remarkably well Mar 13 19:38:46 lol Mar 13 19:39:13 lewellyn: i'm just sayin', the only way to do this properly is by making it a separate app that manages just the push notifications, and has an API for talking to it Mar 13 19:39:27 my usual space is enterprise, so i'm very keenly aware of the interesting things in that space and it makes you think differently about consumer stuff too. Mar 13 19:40:08 zinx: it's one of a few ways. but my former employer may be doing something in that regard, and i'm sure my current employer has *Something* as i said. so it'd be improper for me to go into any detail beyond what i have. Mar 13 19:40:30 lewellyn: ok. but like i say, if they're doing it some other way, they are doing it wrong. Mar 13 19:40:52 lewellyn: i'm not saying you can't do it other ways, just that it's wrong to do it other ways :D Mar 13 19:41:01 and there are many cases where your approach can't work :) Mar 13 19:41:07 lewellyn: there are none Mar 13 19:41:25 you haven't played with enough MDMs then. :P Mar 13 19:41:35 lewellyn: the application can be authenticated, and if you can't risk mixing messages, you have two of it. Mar 13 19:41:44 One problem with that "smart questions" article is that it assumes all 'hackers' are awesome people who never abuse the vulnerability of question askers. This is, of course, false. Mar 13 19:41:58 Though I agree with a lot of the article. Mar 13 19:42:02 a non-trivial number of MDMs prevent any interaction like you suggest. Mar 13 19:42:11 TacticalJoke: esr, like rms, is a bit ivory tower. Mar 13 19:42:23 lewellyn: if MDMs are preventing any interaction between any app, verified or not, then they are flawed. Mar 13 19:42:33 time to reboot the industry then. Mar 13 19:42:36 Yah. Mar 13 19:42:44 so... are you getting around the "trust another app" factor by either enforcing that the app is trustworthy, or giving the OS special powers to start your app? Mar 13 19:43:40 e.g. by observing all network data, so any connected apps can receive for all apps Mar 13 19:44:46 TacticalJoke: yeah, esr can be a bit extreme at times Mar 13 19:45:04 but i don't think that document is bad Mar 13 19:45:09 I remember reading his guide to sex. Was kinda bizarre. Mar 13 19:45:19 in an ideal world, GCM would be just a part of AOSP. but I don't think that's ever going to happen Mar 13 19:45:21 I think it was posted on /r/programming (in other words, I wasn't googling "sex guide" ;D). Mar 13 19:45:57 Spoom: heh. I jumped to RTFM, skimmed. I think that the next person that asks a super-broad question, like "I don't know how to program. how can I make an app+server+custom crypto+streaming video?", I'll just RTFM them. Mar 13 19:46:21 hey guys, please recreate facebook and send me the source, plzkthx Mar 13 19:48:23 groxx: the approach is not the same as you're envisioning at all. :) Mar 13 19:48:37 TacticalJoke: at least esr can post a guide to sex. ;) Mar 13 19:49:25 Spoom: fork and enjoy https://joindiaspora.com/ Mar 13 19:49:43 haha excellent Mar 13 19:49:48 nothing ever really came of that it seems like Mar 13 19:50:05 it's still moving... very slowly... Mar 13 19:50:32 but yeah. over-promising + a bunch of coders who had no idea what they were doing + some (earned) bad press due to major security fails = pretty much doomed. Mar 13 19:50:33 this seems like a stupid question, but which support library do i want? it seems like v7 does not imply v4, and v13 does not imply v4, except that it also contains bits of v4... i only want it for DrawerLayout Mar 13 19:50:59 it's not clear to me why i even have to choose... shouldn't v13 contain all of the previous support classes? Mar 13 19:51:22 no Mar 13 19:51:24 rmk0: take a look at the source docs for each support library, they backport different things Mar 13 19:51:29 the v# is not like a version Mar 13 19:51:32 rmk0: v13 works _down to_ v13. so it doesn't (in principle) need to handle things that backport down to v4 devices. Mar 13 19:51:46 * rmk0 eyes everything suspiciously Mar 13 19:51:48 welcome to the world's worst naming scheme courtesy of the Android team Mar 13 19:51:57 hehe, so it's not just me, then Mar 13 19:52:14 support-v13 depends on support-v4 and adds API 13+-only things to it Mar 13 19:52:19 * groxx is just glad they're finally breaking things apart, like recyclerview Mar 13 19:52:34 similarly, appcompat-v7 depends on support-v4 and adds API7+-only things to it (namely, the Toolbar et. al) Mar 13 19:52:49 the v# is merely the lowest Android API that they support Mar 13 19:52:55 given that i don't care about devices with an API level lower than 19, and i only actually want DrawerLayout... can i avoid the support library? Mar 13 19:52:57 they are all disjoint and should be composed together Mar 13 19:53:01 no Mar 13 19:53:11 welcome to the other part of the world's worst naming scheme Mar 13 19:53:16 support is a stupid, awful name Mar 13 19:53:21 it seems with Android 5.1 Google took a step backwards... MusicFX comes in the Nexus 5 factory image, and some dialogs that were previously Material Design are now reverted to Holo (for example the Google account chooser) Mar 13 19:53:31 oh wow, i wish i could throw away the libraries contain standalone components that are useful everywhere Mar 13 19:53:41 the whole thing is stupid and awful and makes me hate android more. :) Mar 13 19:53:53 kind of like recyclerview-v7, but contained inside of support-v4 Mar 13 19:53:54 Spoom: i wish i could throw away api 19 devices too! :D Mar 13 19:53:56 and yet, the alternative is apple development Mar 13 19:54:16 i think everything in front of me right this moment is 19. Mar 13 19:54:30 it's a clusterfuck, and it's fun to watch them figure out what every other Java developer in the world solved a decade ago Mar 13 19:54:43 naming, versioning, componentizing, distribution, build systems Mar 13 19:54:53 maddening Mar 13 19:55:16 I don't understand it. Aren't these people supposed to be la crème de la crème? Mar 13 19:55:18 both of those words are too forgiving :D Mar 13 19:55:26 Zeez mistakes make no sense. Mar 13 19:55:26 TacticalJoke: no, it's google. ;) Mar 13 19:55:50 just because you're good at one thing doesn't mean you're good at everything Mar 13 19:55:54 they may be cream of something Mar 13 19:56:00 wheat? Mar 13 19:56:09 and google seems to think it's a good thing to let people move anywhere they'd like in the org. Mar 13 19:56:09 corn? Mar 13 19:56:17 so what if they can write a killer ListView replacement does not qualify them to solve Android's build, distribution, packaging, consumption, etc. mechanisms Mar 13 19:56:52 so whoever writes the killer whatever might think he's good shit and then goes and dives headfirst into the deep end. Mar 13 19:57:10 then we're stuck with those decisions indefinitely :( Mar 13 19:57:40 But isn't there someone else who's like "Whoa, hold up. You're about to release this with a dumb name!" Mar 13 19:57:44 well, you can always write it yourself / grab something someone else wrote Mar 13 19:57:50 Google does everything perfectly and can never be wrong. Mar 13 19:57:58 TacticalJoke: sure. doesn't mean they have power to make decisions or influence Mar 13 19:58:03 TacticalJoke: not necessarily. and the name may not be the dumb part. Mar 13 19:58:03 Eye sea. Mar 13 19:58:34 i did google's little terminal code exercises a few months back Mar 13 19:58:42 i mean, "support library" makes sense in the context that it supports older devices. and it's versioned at the oldest the library targets. Mar 13 19:58:56 got up to the point where it asked if i wanted to submit to a recruiter, i said yes Mar 13 19:59:08 Spoom: my interview process with google, some years ago, was the most painful thing i ever experienced. Mar 13 19:59:11 and like every other interaction i've had with google, that went into a black hole, never to surface again Mar 13 19:59:18 Spoom: terminal code exercises? Mar 13 19:59:23 foobar Mar 13 19:59:32 Yeah, once you code it, you die Mar 13 19:59:34 that seems likely to be impossible to google for Mar 13 19:59:41 i think that's the point Mar 13 19:59:56 oh boy. "bing it on" is the second search result. Mar 13 19:59:57 phone interviews scheduled where they didn't call, asking me questions where they wanted "as much detail as i could provide" and then cutting me off after explaining the subject for a couple hours, etc. Mar 13 20:00:06 took almost 6 months for them to finally tell me no. Mar 13 20:00:12 Spoom: aaah, that one Mar 13 20:00:19 if you google for enough python-related terms, apparently it breaks into your normal search results and asks if you'd like to do some coding exercises Mar 13 20:00:43 i found another way in, there was this crypto crossword thing that worked for a couple of days Mar 13 20:00:50 was a fun way to learn python, at least Mar 13 20:02:37 is it OK to save my Google Developer Console Project Number (aka Sender ID) in my Strings.xml for easier access? Mar 13 20:05:46 So you can just subscribe to anything with RxJava as long as it implements Action? Mar 13 20:06:55 t0astt: you'll probably want to store that in your java, perhaps in a Constants.class Mar 13 20:07:19 so you can control its scope. Mar 13 20:07:27 treelzebub: Alright. So mainly for security reasons? Mar 13 20:08:07 convenience and security, yes Mar 13 20:08:40 how to hide passwords with retrofit post? Mar 13 20:08:52 actually its a get Mar 13 20:08:55 but same question Mar 13 20:09:03 don't put passwords in a GET Mar 13 20:09:15 I have a gridview, with ImageView inside. I would like to have 3 Squared ImageView by row, each using 33% (minus margin / padding) as side width / height. It is something I should to programaticly, or is it possible in the xml ? Mar 13 20:09:35 JakeWharton: what's the alternative? Mar 13 20:09:41 POST Mar 13 20:09:46 i have no control over the api Mar 13 20:09:49 and in the body, not query parameters Mar 13 20:10:09 the API is bad, don't use it Mar 13 20:10:14 it leaks info Mar 13 20:11:37 hehe Mar 13 20:12:51 if you put passwords in a GET they are sent plaintext over the wire Mar 13 20:13:13 unless it's https (though i agree it's bad practice) Mar 13 20:13:14 https + POST is what you want, right JakeWharton? Mar 13 20:14:33 i am just making the app have no control over api Mar 13 20:15:41 what's the API for? Mar 13 20:15:48 lasserix: i'm a little confused what you're asking specifically Mar 13 20:17:52 umm client stuff? Mar 13 20:17:59 its for "weather" like data Mar 13 20:18:10 but there is a api call for authentication of user accounts Mar 13 20:18:43 Spoom: i have to send email/password to get account information to a rest server, just wondering whats the proper way of doing it with retrofit Mar 13 20:18:54 but seems its a server end type deal, so in this case i have no control Mar 13 20:19:14 I mean is it a public API? Mar 13 20:20:00 public in the sense anyone can access it yeah Mar 13 20:20:18 Is there any way to get the height of the virtual keyboard? Mar 13 20:20:31 oh, i didn't know what retrofit was Mar 13 20:20:43 ok so what API is it? Mar 13 20:21:13 for the company of whom i am developing the app of Mar 13 20:21:28 android tools schema has tools:text for showing placeholder text in the previewer. is there something similar for images? I'd like to show an ImageView with a placeholder src Mar 13 20:21:47 tools:src Mar 13 20:22:21 oh that wasn't working for me earlier, but now it is... Mar 13 20:22:31 maybe cache goofed up or something. idk Mar 13 20:22:31 thanks Mar 13 20:24:32 lasserix: if you are developing the app for the company why can't you get the server changed? Mar 13 20:24:50 I will mention it to them but I don't work directly for them Mar 13 20:25:03 noob question: how do i import an android system theme textAppearance into my own styles.xml? i've tried ?android:textAppearanceSmall and (as an attribute to the Mar 13 20:26:23 then TextAppearence.Medium etc Mar 13 20:26:33 Spoom: ?android:attr/textAppearanceSmall Mar 13 20:27:41 groxx: sending in the URL is still inherently insecure because of logs, etc. Mar 13 20:28:10 true. I'd hope they're scrubbing their logs for that, if they require it in the url, but still worth avoiding. Mar 13 20:29:51 yes. also a bad idea. Mar 13 20:29:56 fix the problem, not the symptoms Mar 13 20:30:14 honestly curious whose api this is Mar 13 20:30:38 :) Mar 13 20:30:50 most weather apis i've used just have api tokens for reads Mar 13 20:33:50 WXC? Mar 13 20:34:20 looks like they're all GET but they do have an api token Mar 13 20:39:19 lasserix: any idea how to use the current theme syntax for the style parent? i.e. ?android:style/whatever -- which i tried and was unable to use Mar 13 20:39:32 JakeWharton: I integrated SqlBrite into my app. Something about following the example made RxJava start to click, so I got it wired up with Retrofit too. I am blown away by how awesome this is. Mar 13 20:40:13 Spoom: I answered that. Mar 13 20:41:00 thanks, trying that Mar 13 20:42:26 This second post reply to this Stack Overflow question about creating a GCMHelper class, is there anything anyone sees wrong with doing that? It looks like a clean way to do the GCM stuff, so I'm likely going to implement that. http://stackoverflow.com/questions/17721541/new-gcm-api-register-unknown-source-error Mar 13 20:42:41 TacticalJoke: i tried