**** BEGIN LOGGING AT Tue Jan 13 02:59:59 2015 Jan 13 03:00:51 adb install takes the same amount of time in eclipse as it does in android studio Jan 13 03:00:54 it runs adb install underneath Jan 13 03:00:59 if your app is slow to install, something else is going on Jan 13 03:01:24 TacticalJoke: in general, measure happens 1 or more times, layout happens once. layouts _can_ trigger another pass, but it's frowned upon. Jan 13 03:02:15 How can i prevent people from running my app when it's not downloaded from the Play Store? Jan 13 03:02:23 Okay, that makes sense. Jan 13 03:02:34 the idea is to do the expensive stuff during measure, so layout is fast, which helps hit the desired frame timing Jan 13 03:03:03 then in layout you just read what measure decided, and move views where they're needed Jan 13 03:03:14 Okay. Thanks. Jan 13 03:04:22 fwiw relative layout is a good example - onMeasure does a crap ton, onLayout does almost nothing. not that that's an easy view to follow though :) Jan 13 03:05:03 Yeah, the code's not that simple. But I'll probably grok the basics after staring at it for a while. :) Jan 13 03:05:06 barbs: CLion is paid only Jan 13 03:05:08 ReScO, licensing services Jan 13 03:05:42 pfn, already using them, it doesn't run the code in the callback Jan 13 03:05:50 so you did it wrong Jan 13 03:07:09 JakeWharton: it is? I didn't see that anywhere, I can only see an EAP build, don't know if they're planning to make it paid only... Jan 13 03:07:14 ReScO: why would you want to do something silly like that? :O Jan 13 03:07:20 If i set the response to LICENSED it is licensed Jan 13 03:07:40 If i set it to not licensed, it's not licensed and shows a popup Jan 13 03:07:53 barbs: it was announced that it would be Jan 13 03:07:59 i'm too lazy to look right now Jan 13 03:08:15 "Update version to 1.1 Preview 1" -- https://android-review.googlesource.com/#/c/123000/ Jan 13 03:08:17 Does that mean something? Jan 13 03:08:22 If i set it to respond_normally no popup from denied, but also no licensed confirmation Jan 13 03:08:29 https://twitter.com/clion_ide/status/520113702952243200 - looks like it'll be both free and paid like their other IDEs. So that's good :) Jan 13 03:09:05 If 1.1 Preview 1 has unit-testing support, I guess that'll be my cue. Jan 13 03:09:10 (When they release it, I mean.) Jan 13 03:10:02 Also, it would be great if android studio could just export screenshots for all screen sizes.. Jan 13 03:10:30 all screen sizes resco ! o.O Jan 13 03:10:38 even the one 4:3 size ? :) Jan 13 03:10:51 i'd like it if it could visualize in touchwiz Jan 13 03:11:02 Rather phone, small tablet, big tablet and stufd Jan 13 03:12:21 But pfn, could it be that i'm recieving a error that it's not managed by the market but i'm not handling it? Jan 13 03:13:21 Will you folks update to 1.1 Preview 1 when it's out? Jan 13 03:15:27 The number of people who say "it layouts the children". ;| Jan 13 03:19:14 ReScO, uh, then handle it? Jan 13 03:21:09 TacticalJoke: this is AS I assume Jan 13 03:21:15 I certainly will ve Jan 13 03:21:37 agh spelling. much sadness on phone keyboard tonight. Jan 13 03:21:51 Yeah. Jan 13 03:22:16 TacticalJoke: hoping for a guinea pig or something? Jan 13 03:22:30 I think the latest code base has support for JVM unit testing. Jan 13 03:22:41 Though it might not have much GUI support yet. Jan 13 03:23:33 I wonder how many pain I will endure when I switch my project from Eclipse to Android Studio. I'm expecting a good amount. Jan 13 03:23:51 try it, measure it, react ! Jan 13 03:23:53 I'll start from a blank project and manully import everything, which might reduce pain slightly. Jan 13 03:23:56 ah. I haven't tried compiling it yet, but I'll make sure I'm on canary builds tomorrow :) low battery now, or I'd give it a shot. Jan 13 03:24:47 TacticalJoke: AFAIK the importer does a decent job for most apps. if you are using manifest merging though, do it by hand, it's easier. Jan 13 03:25:01 speaking from experience :( Jan 13 03:26:59 I think my strategy will begin with just randomly messing around with Android Studio. This kinda thing is as much psychological as anything. :D Jan 13 03:27:57 well, if you consider layout to be a verb, that sounds fine Jan 13 03:28:14 kinda fucked up, but english is fucked up Jan 13 03:28:43 Yeah, but 'layout' is simply not a verb. Jan 13 03:28:51 "to layout something" Jan 13 03:29:07 People just get confused because we use 'layout' as a noun or adjective. Jan 13 03:29:13 "to layout" being infinitive Jan 13 03:29:35 It's "to lay something out" or "to lay out something". Anything else is a mistake. Jan 13 03:29:47 english is a mistake Jan 13 03:29:59 buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo Jan 13 03:30:08 There has to be some rules; else we wouldn't be able to communicate at all. Jan 13 03:30:10 have* Jan 13 03:30:17 clearly, we can't Jan 13 03:30:20 oops, missed a buffalo in there Jan 13 03:30:35 (http://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo) Jan 13 03:30:41 And capitalization Jan 13 03:30:53 this is irc. no-one capitalizes :p Jan 13 03:30:58 ^ Jan 13 03:31:16 unless it starts the next sentence. Then we remember to type properly. Jan 13 03:31:37 Saying "to layout the grid" is as weird as saying "to walkup the stairs". Only difference is that people don't get confused about 'walk up'. Jan 13 03:32:31 programming isn't english, and layout is a verb in the android vernacular Jan 13 03:32:34 get with it Jan 13 03:32:40 won't someone layout the children? Jan 13 03:32:50 I don't think it's a verb anywhere. What makes you think it is in the domain of Android programming? Jan 13 03:32:53 groxx++ Jan 13 03:33:13 we must grammar, for the sake of the childrens Jan 13 03:33:13 TacticalJoke, the fact that it's a method, makes it a verb Jan 13 03:33:14 pfn: You're asking me to simply join the masses in making a mistake. I can't do that. :p Jan 13 03:33:44 generally speaking, all methods are verbs Jan 13 03:33:46 pfn: Okay, true. But that's just a language mistake. It should be View.layOut. Jan 13 03:33:58 yeah, no Jan 13 03:34:17 Yeah, yeah. Jan 13 03:34:31 and it's clearly not a language mistake Jan 13 03:34:36 It's just wrong. I can't believe you're seriously arguing in favour of using 'layout' as a verb. Jan 13 03:34:41 like I said, it's a verb in the android vernacular Jan 13 03:34:43 Okay, find 'layout' listed as a verb in any major dictionary. Jan 13 03:34:54 So last comment on this ... Taking the newest of both Eclipse and ADT, and installing per directions should not result in a 6 hour hunt for install/reinstall procedures or downgrading some core component. Wtf are they thinking with this Jan 13 03:34:54 I agreed with you. Jan 13 03:35:04 Then I pointed out that this fact is based upon the misuse of language. Jan 13 03:35:05 and programming isn't english Jan 13 03:35:14 I've generally become more yolo in my verbing of things. and general englishing. y'all know what I'm sayin, that's good enuf. Jan 13 03:35:55 TacticalJoke i think you say some pretty smart things some times Jan 13 03:36:03 but can you lay off the endless grammar stuff? Jan 13 03:36:04 ac_slater_? Jan 13 03:36:08 I tend to disagree :p Jan 13 03:36:10 groxx: I like when people are creative with language. It's disappointing when people just make basic mistakes, though (such as "it layouts the children"; yuck). Jan 13 03:36:10 it's really tiresome Jan 13 03:36:20 i'm trying to be charitable pfn *kick* Jan 13 03:36:22 besides, we can thank Shakespeare for our verbing frenzy. it's useful. Jan 13 03:36:40 shit brits turn last names into verbs Jan 13 03:36:42 like crap Jan 13 03:36:45 now stop this crap Jan 13 03:36:48 :) Jan 13 03:36:56 Also, the whole your/you're thing makes me face-palm over and over. Jan 13 03:37:10 really tactical stop it Jan 13 03:37:22 TacticalJoke: "lay out" is a transitive verb. Jan 13 03:37:32 TacticalJoke: heh. there we can agree :) my wife and I are grammar Nazis, and we thoroughly enjoy breaking the rules where it makes sense Jan 13 03:37:32 oh god Jan 13 03:37:33 Right. Jan 13 03:37:37 this endless login layout stuff Jan 13 03:37:45 lewellyn: But it's never "layout". Jan 13 03:37:52 can we stop this tacticaljoke i'd prefer not to /ignore you Jan 13 03:37:53 "Layout", used as a verb, is always a mistake. Jan 13 03:38:35 I'll have to think about "layout" as a state, but yeah. layout the children is painful. Jan 13 03:38:36 TacticalJoke: i'm not scrolling back to see wtf you're bitching about. but keep in mind that not everyone here is a native english speaker, and even native speakers typo and purposely omit "unnecessary" punctuation. "login dialog" comes to mind. Jan 13 03:38:52 oxford comma ftw Jan 13 03:38:53 nevermind the rampant removal of hyphens from hyphenated words. Jan 13 03:39:10 hyphen removal is infuriating Jan 13 03:39:24 groxx: i did not omit any commas. "typo and [...] omit" was a single clause. Jan 13 03:39:32 "wtf I'm bitching about" -- I just switch off there. (Switchoff there? :p) Jan 13 03:39:43 lewellyn: not claiming you did :) just remarking on punctuatuon Jan 13 03:39:47 ARG Jan 13 03:39:59 Yeah, the Oxford comma is a really good idea. Jan 13 03:40:06 groxx: yeah. just making sure that my intent was noted. :) Jan 13 03:40:44 but the oxford comma *allows* one to be able to have a clause containing the word and. :P Jan 13 03:40:55 so i don't see why people argue against it. Jan 13 03:41:04 yiati: ? I'm just whining on how none of the android tools work Jan 13 03:41:15 oxford comma because http://themoosebody.tumblr.com/post/10317138331/unlikelywords-why-the-oxford-comma-is Jan 13 03:41:20 I dunno; I just think this stuff is so basic. I can't understand why it's so hard for native English speakers to, for example, figure out the difference between "your" and "you're". Jan 13 03:41:33 I've heard intelligent people say stuff like "I can't remember the difference". Srsly? Jan 13 03:41:55 It's an absolute fundamental of something we use every single day. I'm guessing people just don't care. Jan 13 03:42:04 ac_slater_: Yeah ADT support has pretty much gone out the door, you won't find much for it. All the good help and up to date stuff will be for Android Studio Jan 13 03:42:26 TacticalJoke: probly becuz u no meant what was neway. Jan 13 03:43:05 yiati yes that is true why such angry hatred from google on that and why they can't support both or have a moderate transition Jan 13 03:43:11 as much as I grammar, it is legitimately rarely necessary for understanding. Jan 13 03:43:23 look TacticalJoke you can't tell the difference between ignorance and fast typing and you have an OCD suprirotity complex Jan 13 03:43:33 this is your last warning from my side either cut the crap or get ignore i dont care Jan 13 03:43:45 groxx: yeah. but the top image is backwards, so i don't cite that cartoon much. Jan 13 03:43:49 now go tell me how ignorant i am because of my fast typing ahat Jan 13 03:43:52 Yeah, but I do think it says something about the user. If someone uses 'your' in place of the correct 'you're', every single time, don't you start thinking that person isn't very smart? Jan 13 03:43:59 lewellyn: a good reason :) Jan 13 03:44:06 Or perhaps they're lazy. I'unno. Jan 13 03:44:18 yiati: which is sad since AS doesnt really work that well. And NDK support is deprecated. This is really lame Jan 13 03:44:44 I have an issue. Whenever I show an interstitial ad in my game the user gets logged out of google play game services. Jan 13 03:45:57 TacticalJoke: I've relented over time. it bothers me when it's in print, because it means someone didn't even run a grammar checker / paid their editor too much, but it's trickier for second-languagers. and there are a LOT of those. Jan 13 03:47:17 Yeah, I don't direct these criticisms against second-languagers, as you say. Jan 13 03:47:50 Jumblemuddle thats hardcore interstitial Jan 13 03:48:11 TacticalJoke: problem is that you never know, unless you know :) it's an unsafe default. Jan 13 03:48:33 https://paintingthegreyarea.wordpress.com/2012/11/26/literacy-privilege/ Jan 13 03:50:02 yeah, and that Jan 13 03:50:24 Just an interesting read on the topic Jan 13 03:50:57 "nearly half of all North American adults cannot cope with complex written material of the sort that the other half of us take completely for granted." Jan 13 03:51:00 definitely. I have a couple friends who fall into a couple of those categories. Jan 13 03:51:18 Donate is likely to get app cut from store right? Jan 13 03:51:57 lasserix: depends on the country. in USA, it should, technically. that doesn't stop tons of apps thoufh Jan 13 03:52:10 "send" is too close to "." Jan 13 03:52:55 yiati: that does look like a pretty decent article... I'll have to hang onto that, thanks :) Jan 13 03:53:05 lasserix you can use play services for donation Jan 13 03:53:10 (6.5+) Jan 13 03:54:22 g00s: but AFAIK you can't use the word "donate" unless you're a registered non-profit Jan 13 03:54:22 Yeah they added a new donate button, don't know if they want to restrict that to charity stuff only though? Jan 13 03:54:44 in America, at least. no clue elsewhere. Jan 13 03:55:25 groxx leave to google again, to leave us in the dark. if apps get yanked I guess thats their way of letting us know Jan 13 03:55:34 ahh ok Jan 13 03:55:52 so donate is OKAY but only if your some non-profit charity? Jan 13 03:55:56 g00s: it's assholeish, yeah Jan 13 03:56:24 "this release adds a ‘Donate with Google’ button for providing the same ease of use in collecting donations." Jan 13 03:57:22 So they debate is whether a tip jar is okay lol Jan 13 04:07:06 the only way to find out, is to set up a new developer account, different wallet, and try it ! Jan 13 04:07:16 for science ! Jan 13 04:08:49 Maybe they should add a "Tip" button Jan 13 04:09:44 later Jan 13 04:11:13 I'm far from certain, but AFAIK "tip" is OK. there's plenty of room for me to be wrong, IANAL, etc, but if you must choose between those two, choose "tip" for the US Jan 13 04:11:29 Maybe I should add a feature to my app that detects and corrects misuses of "your". :D Jan 13 04:11:45 (Just saw another one on reddit.) Jan 13 04:18:30 TacticalJoke: What's you're app called? Jan 13 04:18:48 Oh, it hasn't been released yet. Jan 13 04:19:28 Unless you were seriously asking about "I am app". :) Jan 13 04:20:49 What do you mean? Your not an app, your a dev Jan 13 04:22:08 why does notification .... .build() require api 16? any workaround? Jan 13 04:25:23 HevvyMetal: NotificationCompat Jan 13 04:28:46 *sigh* Jan 13 04:28:54 v4 or v7 groxx? Jan 13 04:28:59 if (Build.VERSION.SDK_INT < 16) Jan 13 04:29:00 { Jan 13 04:29:00 n = nb.getNotification(); Jan 13 04:29:00 } Jan 13 04:29:00 else Jan 13 04:29:00 { Jan 13 04:29:00 n = nb.build(); Jan 13 04:29:01 } Jan 13 04:29:05 seems to puke on me Jan 13 04:29:47 I don't remember :/ it's part of the package name if you find it on the dev site though. Jan 13 04:31:52 HevvyMetal: wtf indentation there. Jan 13 04:34:33 some bad irc plus i prefer newline indented { Jan 13 04:34:37 should be 4 spaces tho Jan 13 04:35:03 obviously the braces are a little superfluous in this particular case Jan 13 04:38:49 why u need personal information? Jan 13 04:39:10 i dunno about this Jan 13 04:39:17 too much should just be gps Jan 13 04:39:59 what personal information? Jan 13 04:40:57 you mean my app? i dont collect any personal information lasserix? Jan 13 04:41:46 these are my perms is there a problem? http://pastebin.com/wT90AwKd Jan 13 04:52:35 why the log one? Jan 13 04:52:41 doesnt even work on jelly bean anymore Jan 13 04:53:26 it's just some standard perms i copy and pasted Jan 13 04:56:53 i think gps needs internet perms for google maps but i never tried it without that Jan 13 04:57:17 What sets the color of the blank screen when cold-loading the application? Jan 13 05:02:33 think the system ui Jan 13 05:03:55 knapper_tech maybe this will be useful http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Jan 13 05:06:05 bah, chrome desktop crashed and lost all my bookmarks. back to FF, which i switched from because it crashed and lost all my bookmarks arrgghh! Jan 13 05:06:22 s/bookmarks/open tabs Jan 13 05:06:50 I've never had that problem with Chrome or Firefox (though I'm on Windows, so maybe it differs). Jan 13 05:07:32 The worst I've had is that "We didn't shut down correctly" screen, but it let me re-open all my tabs. Jan 13 05:07:45 TacticalJoke thats because you haven't accumulated enough open tabs for it to be a traumatic loss Jan 13 05:08:00 :) Jan 13 05:08:10 lol Jan 13 05:08:26 I think Chrome would be delighted to lose all my tabs. Jan 13 05:08:57 Joking aside, that has to be annoying. :/ Jan 13 05:13:09 isn't there a plugin you can dump open tabs to a text file? Jan 13 05:13:34 OneTab is basically an elaborate version of that. Jan 13 05:14:12 I was using OneTab when I lost all my shit Jan 13 05:14:29 that thing sucks. if they were just plain bookmarks i would have had everything still Jan 13 05:15:31 So both the browser and OneTab lost their data? Jan 13 05:16:03 actually FF, OneTab just lost everything Jan 13 05:16:07 Chrome crashed Jan 13 05:16:40 any way to make the recent entry in lollipop change color? do you have to change the theme? Jan 13 05:17:25 recent whag Jan 13 05:17:27 what Jan 13 05:18:46 the recent apps thing Jan 13 05:18:52 "window"? Jan 13 05:19:10 "windows" Jan 13 05:19:12 -s Jan 13 05:19:17 the color? Jan 13 05:19:22 yes Jan 13 05:19:22 colorAccent and colorPrimary Jan 13 05:19:28 in the theme? Jan 13 05:19:31 yes Jan 13 05:19:35 rectangle segment og the screen used for GUI stuff¨ Jan 13 05:19:37 can you change those dynamically? Jan 13 05:19:39 read material docs Jan 13 05:19:41 no Jan 13 05:19:46 Yes, you can Jan 13 05:19:51 dynamically Jan 13 05:19:57 cph_dk, how? Jan 13 05:20:00 does anyone use crittercism in here? Jan 13 05:20:11 i'm curious about a few things :) Jan 13 05:20:19 drinfernoo You can in all other windowing systems, so you MUST be able to in android Jan 13 05:20:49 drinfernoo And I wrote my own android gui stuff, and it could Jan 13 05:21:28 The problem is Java and its crappy garbage collection Jan 13 05:21:48 Are you still working on your Tetris-like app, cph_dk? Jan 13 05:21:49 You need to get it to delete all refs to the old window Jan 13 05:22:02 TacticalJoke No, Something with real money in it Jan 13 05:22:32 uh Jan 13 05:22:34 Choke Java in its craddle and replace it with C++ Jan 13 05:22:40 wow, nice job making a bullshit statement cph_dk Jan 13 05:22:53 pfn wanna hear the idea or not? Jan 13 05:23:00 I already change the status bar and toolbar colors, but I want to change the highlights and recent entry match along with them Jan 13 05:23:03 at this point, no Jan 13 05:23:22 pfn Ok, from your truly, upn yours Jan 13 05:23:25 :D Jan 13 05:23:30 with love Jan 13 05:23:39 i Jan 13 05:23:44 don't know what just happened Jan 13 05:24:19 TacticalJoke I do electronic music, and electronic musicicans always need good kick drums¨ Jan 13 05:24:33 drinfernoo Was no intended for you, sorry Jan 13 05:24:39 not Jan 13 05:25:24 TacticalJoke I have analyzed 1000s of good analog-like kicks and identified what makes a good kick. Jan 13 05:25:47 TacticalJoke The key is the decay of the main oscillator Jan 13 05:26:08 Well, 69-70% of it Jan 13 05:26:18 k Jan 13 05:26:58 I am no gonna spill the beans, because this is potentially worth money Jan 13 05:28:02 The Drum synth can make as infite varieties Jan 13 05:28:07 good as Jan 13 05:28:32 pfn check ur pm Jan 13 05:28:48 cph_dk have you checked out stomper ? I dunno if it still exists but makes great kicks esp subwoofer Jan 13 05:28:58 brb, making a gui in visual basic so I can trace their IP address Jan 13 05:29:00 HevvyMetal Yes. I know it well Jan 13 05:29:01 * Fall laughs Jan 13 05:29:17 HevvyMetal But the kicks are not as good as mine Jan 13 05:29:19 i wish they had a vsti version do they yet or still old wafv geneartor? Jan 13 05:29:24 not by a long shot Jan 13 05:29:32 oh great well paste some of urs adn ur toones cph_dk what do you make them with? Jan 13 05:29:58 HevvyMetal My program is little more than a ton of math formulas Jan 13 05:30:09 of course it is cph_dk Jan 13 05:30:25 i mean paste the soundfiles of your kicks and or your tunes cph_dk Jan 13 05:30:37 HevvyMetal I can paste my tunes Jan 13 05:30:44 MY kicks will have to wait a bit Jan 13 05:30:44 kewlio Jan 13 05:30:51 do your tunes have your kicks in them? Jan 13 05:30:56 Upbeat trance og housy trancy?= Jan 13 05:31:50 Until now I have been making kicks on a VIrus Ti2 and in that process figured out why the linear decay does not work Jan 13 05:32:04 Hey all, having some problems getting the AlarmManager to pop my activity up. Jan 13 05:32:09 how many of you use intellij? and who has switched over from eclipse to intellij? Jan 13 05:32:18 HevvyMetal I can show the math if you want Jan 13 05:32:20 <= still on eclipse Jan 13 05:32:31 I use intellij Jan 13 05:32:48 cph_dk, do you use gradle? and have you used eclipse before? Jan 13 05:33:03 Trinity: I'll switch to Android Studio as soon as I can. Jan 13 05:33:12 A lot of people have switched. Jan 13 05:33:15 Trinity I hated eclipse, I put me off java for years Jan 13 05:33:28 just paste the tunes cph_dk i can live without the math Jan 13 05:33:33 Android Studio is more or less IntelliJ Jan 13 05:33:48 I hated eclipse before but then when I switched to IntelliJ I hated it even more Jan 13 05:33:49 Anyoen have exp with alarms? Jan 13 05:33:56 me too Trinity Jan 13 05:34:03 whats with all of the artifacts and modules and shit Jan 13 05:34:03 HevvyMetal https://soundcloud.com/gorbachevlovesyou Jan 13 05:34:05 what is their game plan? Jan 13 05:34:10 HevvyMetal Experimental stuff Jan 13 05:34:16 HevvyMetal Maybe it sucks Jan 13 05:34:24 are your kicks in there? Jan 13 05:34:34 Did you not read? Jan 13 05:34:38 Trinity: There are some guides on the web about IntelliJ's way of doing things (e.g., what a module is). Jan 13 05:35:01 Trinity: https://www.jetbrains.com/idea/documentation/migration_faq.html Jan 13 05:35:05 HevvyMetal The kick is a sample, but all other sounds are mine from scratcth Jan 13 05:35:07 you said your (possibly naked) kicks have to wait cph_dk Jan 13 05:35:12 That's an "IntelliJ for Eclipse users" guide. Jan 13 05:35:17 TacticalJoke, I understand modules and artifacts fine now. I just can't get gradle/libgdx to work together with a third party Jan 13 05:35:24 on top of it all im working on linux :/ Jan 13 05:35:33 from scratch your own dsp ? whats the synths in the hybdric electronica from? what daw? vsti or all your own dsp? Jan 13 05:35:45 its kewl sounds but its just one chord forever Jan 13 05:35:53 but nice synth what is that cph_dk ? Jan 13 05:35:58 HevvyMetal Cubase 5, Virus Ti, Nord LEad Jan 13 05:36:03 ok Jan 13 05:36:05 Virus TI Jan 13 05:36:07 yeah Jan 13 05:36:12 All sounds in this one is TI Jan 13 05:36:15 have you checked out the genesis synth? its pretty nice Jan 13 05:36:17 right Jan 13 05:36:22 Ah. I've never used libgdx. Jan 13 05:36:33 its decent for sure Jan 13 05:36:50 HevvyMetal I program all my sound from scratch without exception¨ Jan 13 05:37:08 HevvyMetal/cph_dk: I don't mind a bit of off-topic, but you two are pretty much just carrying on a personal conversation. maybe take it to PM? :) Jan 13 05:37:28 yep Jan 13 05:37:30 HevvyMetal: Pop tramce: https://soundcloud.com/gorbachevlovesyou/resonant-reconquest-02 Jan 13 05:37:38 HevvyMetal: All nord Lead Jan 13 05:37:44 yeah just pm me cph_dk Jan 13 05:41:19 figured it out.. no intentReceiver Jan 13 05:50:06 hi i am facing a strange issue with Google Cloud Messaging, one of my device receives 2 copies of same message. I checked the messange sent status, it doesnt have cannonical ids. Other devices recives just one version. Jan 13 05:50:38 if i send a message with payload, 1st message comes without payload and second comes with payload Jan 13 05:50:48 how to resolve this kind of odd situation Jan 13 05:52:01 device in question is dev device and have generated multiple gcm registration ids, but server pushing the data uses only the recent id. yet the dev device receives double notifications Jan 13 06:03:52 well.. nic eto know you can add two fragments on top of eachother... Jan 13 06:06:32 JakeWharton, is there a way using Retrofit to annotate field names onto java object fields? Jan 13 06:06:46 So that the variable name may differ to the actual field name? Jan 13 06:07:43 @Something("message") String outcome; Retrofit will look for message instead of outcome in api response Jan 13 06:08:51 Use @SerializedName for gson Jan 13 06:11:10 f2prateek_ ta Jan 13 06:12:02 anyone wanna split any revenue 75/25 by helping do the tedious stuff? You may laugh, but how much CRAP have I really posted in here and how much respectable code:D? Jan 13 06:12:54 I only need a gui actually Jan 13 06:13:13 And I will do the rest Jan 13 06:13:45 f2prateek_, do i need to set the gson converter for retrofit or is it by default? Jan 13 06:14:56 Android is the faster platform a i know of to do basic GUIs and the program can export .wav Jan 13 06:15:41 and preview over some USB speaker system of mini jack Jan 13 06:16:59 so i take it it's bad to have an infinite loop in the OnCreate method of an Activity? Jan 13 06:17:09 because i did that and really bad things started happening Jan 13 06:18:57 anyone doing unit tests in AS? Jan 13 06:19:21 a few here Jan 13 06:19:28 might be sleeping though Jan 13 06:19:44 AFAIK AS only supports 3? Jan 13 06:19:52 TacticalJoke: is android testing supported by AS yet? Jan 13 06:20:09 TactialJoke has joined the rebellion? Jan 13 06:20:19 I think JVM unit testing will be supported soon. Jan 13 06:20:29 Tricknology: Not yet. lol Jan 13 06:20:35 phew Jan 13 06:20:51 Pretty soon I will be the only one on Eclipse... Jan 13 06:21:02 how many of you have goatees? Jan 13 06:21:19 I'm kinda bummed out. I was hoping to use an ActionBar spinner for choosing subreddit, but now that I've implemented downloading the user's subscribed subreddits I see that it's a pain going up there all the time to change subreddit. Jan 13 06:21:23 but the Apache, Java backend, and PHP capabilities... mmmm Jan 13 06:21:29 So I'm gonna have to use something I don't really like: the navigation drawer. Jan 13 06:21:31 what's AS? Jan 13 06:21:41 Tricknology: Why don't you want to use AS? :) Jan 13 06:21:43 Just curious. Jan 13 06:21:47 oh android studio? Jan 13 06:21:47 impulse: thatta guy Jan 13 06:21:56 what was the consesus on adding donation/tips? Jan 13 06:22:00 oh i don't use eclipse Jan 13 06:22:16 i only have 16GB of ram Jan 13 06:22:17 TacticalJoke: because every time I try to use it, I spend more time learning how to use it than I do actually being productive Jan 13 06:22:20 anyone doing CI/jenkins with android? Jan 13 06:22:27 lasserix: Whatever you do, do it through Google Play. As far as I remember, it's a bannable offence to have something like a "Donate via PayPal" button somewhere. Jan 13 06:22:36 although eclipse is almost surely better Jan 13 06:22:39 TacticalJoke: there comes a point where I'm like "Fuck it.. Eclipse" Jan 13 06:23:18 ah ok Jan 13 06:23:21 TacticalJoke: thanks Jan 13 06:23:25 I can understand that. You might end up getting used to AS, though. :) Jan 13 06:23:33 So that means its an in-app purchase? Jan 13 06:23:39 Damn TacticalJoke, thanks Jan 13 06:23:56 yeah lasserix. If you need a donate button do it through GW Jan 13 06:24:12 lasserix: I guess that or a paid version of the app. Jan 13 06:24:15 as is superior to eclipse, particularly now that as supports testing Jan 13 06:24:43 TacticalJoke, I need a project that I can sit down and produce start to finish without time constraints.. whether real or self-imposed Jan 13 06:25:05 for what I need it for Eclipse is great. Jan 13 06:25:12 lasserix: "The Payment Processor must process all fees that a Developer receives for any version of a Product distributed via the Store." Jan 13 06:25:15 https://play.google.com/about/developer-distribution-agreement.html Jan 13 06:25:25 "Payment Processor(s): As specified and designated in the Developer Programme Policies, a party authorised by Google to provide services that enable Developers with Payment Accounts to charge users for Products distributed via the Store." Jan 13 06:25:40 keep in mind I also do Python, C/C++, and Apache RESTlet development Jan 13 06:25:51 it's really nice to have an all-in-one IDE Jan 13 06:26:03 thanks Jan 13 06:26:09 Could you use IntelliJ for those things? Just wondering. Jan 13 06:26:19 Some people use AS and IntelliJ. (Others use just IntelliJ.) Jan 13 06:26:31 It is kinda mean, in a way, that Google is basically forcing us to use IntelliJ. Jan 13 06:27:00 IDK about IntelliJ and Apache Jan 13 06:27:02 This is better: Jan 13 06:27:03 "Developers charging for apps and downloads from Google Play must do so by using Google Play's payment system." Jan 13 06:27:09 https://play.google.com/intl/ALL_uk/about/developer-content-policy.html Jan 13 06:27:18 Not sure why it says 'uk' there, but I guess the US one is the same. Jan 13 06:27:26 it seems Google wants you to use their App Engine Jan 13 06:27:51 symmantically, probalbyt Jan 13 06:28:09 Tricknology: I guess the worst-case scenario is using AS for Android stuff and Eclipse for everything else. Jan 13 06:28:19 but whyyyyyy Jan 13 06:28:19 Though it's not ideal, I know. Jan 13 06:28:25 lol, right? Jan 13 06:28:38 Maybe an alternative is to keep using Eclipse for everything. There are some third-party people maintaining ADT. Jan 13 06:28:39 I understnad that there may or may not be a shift coming Jan 13 06:28:42 No idea how good they are, though. Jan 13 06:28:50 :( Jan 13 06:29:05 Or you could be like that guy from Legend of 1900. Jan 13 06:29:10 am i the only one who uses vim here? Jan 13 06:29:11 wue? Jan 13 06:29:13 Simply refuses to leave the ship. Dies on board. :D Jan 13 06:29:17 lol ^^ Jan 13 06:29:24 Sorry for spoilers. Jan 13 06:29:34 that's ok.. good perspective Jan 13 06:29:42 Tricknology: You could be a martyr. Jan 13 06:29:52 TacticalJoke Ok, people are not taking me as the genious I am :D Jan 13 06:30:06 TacticalJoke Wanna see my GUI sketch, for the synth?= Jan 13 06:30:12 genius* Jan 13 06:30:16 Joke:D Jan 13 06:30:20 wait.. synth? Jan 13 06:30:20 Obviously Jan 13 06:30:25 Tricknology Jan 13 06:30:29 Drum synth Jan 13 06:30:32 -seized? Jan 13 06:30:39 -eizer Jan 13 06:30:41 Are you a genius, cph_dk? ;o Jan 13 06:30:42 dude... Jan 13 06:30:49 fork Jan 13 06:30:54 I wonder how we can define 'genius' in any sensible way. Jan 13 06:30:55 TacticalJoke No, not by a lklopn shot Jan 13 06:31:01 long shot Jan 13 06:31:05 cph_dk we need to talk Jan 13 06:31:10 Okay, upload 'er. Jan 13 06:31:17 I make musics Jan 13 06:31:19 Tricknology About? SOunds ominous¨ Jan 13 06:31:27 Sounds like a break-up. Jan 13 06:31:31 lol Jan 13 06:31:51 Tricknology My synth is unique, not VERY, but a it takes elements not combined before Jan 13 06:32:03 If you were you were you with the guys they must not have ordered anything because I found the receipt.. dinner for two Jan 13 06:32:31 that's cool. would you like some help? From someone who has been producing for over a decade? Jan 13 06:32:48 Tricknology How about since 1997 :D Jan 13 06:33:05 No, that is not right, 1995 Jan 13 06:33:06 ah touche Jan 13 06:33:19 But 1995 was NOT with fancy gear Jan 13 06:33:35 well, I'm at your service anyhow Jan 13 06:33:35 I got an Akai s3000xl in 1999 Jan 13 06:33:59 Tricknology That would be awesome, you know about synth and drums synths? Jan 13 06:34:12 I know how to use them.. Jan 13 06:34:17 not how to program them Jan 13 06:34:44 I have an idea though Jan 13 06:34:45 Tricknology Very rough sketch: http://i.imgur.com/pCUBW0o.png Jan 13 06:35:08 The key for kick drums is the slope of the decay Jan 13 06:35:23 I have worked the math out. Jan 13 06:35:24 you will want to targer 5.0 Jan 13 06:35:50 ? Jan 13 06:36:08 they reworked some stuff for 5.0 Jan 13 06:36:14 less latency Jan 13 06:36:22 So, if someone wants to implement a navigation drawer that goes on top of the ActionBar/Toolbar, do they have to use some third-party library? Jan 13 06:36:59 on.. top?.. Jan 13 06:37:01 I have designed a function that can be gradually turned from a linear decaying function to something close to a reverse exponetial function Jan 13 06:37:14 Yeah, as in the material-design thing. Jan 13 06:37:23 * Tricknology runs Jan 13 06:37:29 Drawing on top of it (like a layer). Jan 13 06:37:30 TacticalJoke What? Jan 13 06:37:37 drawablelayer Jan 13 06:37:48 TacticalJoke You are not in with the cool kids!!! Jan 13 06:37:56 * cph_dk is bullyung TacticalJoke Jan 13 06:37:57 :SD Jan 13 06:37:58 The material guidelines suggest that navigation drawers should hide part of the Toolbar/ActionBar. Jan 13 06:38:06 What do the cool kids do that I don't? Jan 13 06:38:08 not sure what would happen if you inflated a fragment that didn't have an actionbar over the one that did... Jan 13 06:38:37 I'm talking about the third dimension, not the second. I mean "cover the ActionBar". Jan 13 06:38:39 U mean Gmail? Jan 13 06:38:44 Will anyone do that gui, give me a working GUI in which I can put my synth code Jan 13 06:38:55 they still havent given me the damn swipe left to remove Jan 13 06:39:00 Yeah, like in Gmail and other Google apps. Jan 13 06:39:16 cpk_dk I can , but It will take a bit Jan 13 06:39:21 I have swipe-left-to-remove in Gmail. Jan 13 06:39:27 but the question is how do you want to process the audio? Jan 13 06:39:30 and load samples? Jan 13 06:39:46 If you are not nice I will just do the GUI myself, I bet I can do i faster than any of you WITHOUT nothing ANYTHING about android GUIs:D:D Jan 13 06:39:58 Tricknology NBo, samples, not loading. Jan 13 06:40:05 Tricknology Exporting only Jan 13 06:40:20 It is a synth, not a sampler Jan 13 06:40:30 ok I see Jan 13 06:40:33 it generates sound from scratch Jan 13 06:40:41 I have a freelance project I'm working on Jan 13 06:41:03 I can start work in the next few weeks Jan 13 06:41:12 I can make a text version of the synth until the gui is ready. Jan 13 06:41:25 github? Jan 13 06:41:37 Tricknology IF we get it to generate GOOD kick it is worth a lot of momney¨ Jan 13 06:41:49 I know my kicks Jan 13 06:42:10 got good noise? Jan 13 06:42:27 Tricknology Would you not like a tool that could make them galore by dialing some buttons? Jan 13 06:42:46 of course, there used to be a tool like that back in the day Jan 13 06:42:50 Like stomper, just MUCH better sounding, and easier to use Jan 13 06:42:56 haha stomper.. yes that Jan 13 06:43:12 Stomper sounded awful and was impossiple to use Jan 13 06:43:24 It should have a pattern sequencer Jan 13 06:43:28 similar to an 808 Jan 13 06:43:31 or redrum Jan 13 06:43:31 Look at my sketch: http://i.imgur.com/pCUBW0o.png Jan 13 06:43:42 I saw Jan 13 06:43:56 are those dials? the ovals? Jan 13 06:44:27 First you dial in how much BOOM and how long/short you want it, then you mix in a sub oscilaator, then a noise click, then a osclittator click Jan 13 06:44:32 yes. Jan 13 06:44:42 ROUGH Jan 13 06:44:53 Mornin everyone. Jan 13 06:44:55 how did you come across the mathematical knowledge? Jan 13 06:45:05 Tricknology I deduced it. Jan 13 06:45:12 from scratch Jan 13 06:45:20 I mean are you a math/physics major? Jan 13 06:45:28 The variable slop decau fuctionm Jan 13 06:45:38 Tricknology no, not at all,. Jan 13 06:45:45 just really like math? Jan 13 06:45:49 just good at some parts of math Jan 13 06:46:12 waveforms? Jan 13 06:46:39 I know almost nobody agrees with me on this, but I hate navigation drawers. Jan 13 06:46:45 They're so clunky and weird and hard to use. Jan 13 06:46:48 Noise is just all frequencies at once, or sample[0] = random(65546), and so on Jan 13 06:46:56 TacticalJoke - YES Jan 13 06:47:19 Tricknology Sinus, and PUlse are the ones neeeded,. Jan 13 06:47:23 And those are easy Jan 13 06:47:38 Tricknology: I feel like a defector of the clan by even thinking about finally moving to Android Studio. Jan 13 06:47:38 655536 Jan 13 06:48:26 sample this function lasting 1 sec: sin(2PI) Jan 13 06:48:36 There is this issue I'm having.. trying to close all the drawers.. well I have a custom drawer object which has isExpanded that is true when onGroupClicked().. there is an animation that modifies a textview in the drawer_group_item.xml. Jan 13 06:48:53 well sometimes the animation randomly triggers :/ Jan 13 06:48:56 if the sample rate is 44.1 khz, then you sample 44100 samples Jan 13 06:49:18 (drums are mono) Jan 13 06:49:26 But 16 bit¨ Jan 13 06:49:33 so 88200 samples Jan 13 06:49:48 at least 16 bit Jan 13 06:49:53 Tricknology Wanna help? Jan 13 06:49:58 My subreddit selector is a spinner in the ActionBar right now. I love how neat and simple this is. Only issue is that it's quite a stretch to get there (especially on large screens). Jan 13 06:50:03 cph_dk, have any experience with PID controllers? Jan 13 06:50:10 I really don't wanna have to use a navigation drawer for this. Jan 13 06:50:11 Tricknology Nope. Jan 13 06:50:36 I mean, maybe I'll use a navigation drawer for something, but for subreddits? Doesn't feel right. Jan 13 06:50:36 yes, but that stuff can be expensive. not sure if Android's tech is there, that's why I said target 5.0 Jan 13 06:50:47 Tricknologyq I know everything needed to write the synth, I would like a filter also, but I have yet to readf up on that Jan 13 06:50:47 luckily the higher ends will be getting 5.0 soon Jan 13 06:51:11 Tricknology We dont need all that? Jan 13 06:51:17 I have knowledge of controllers, filters, and some signal processing Jan 13 06:51:23 Make me a gui like the one in the scetch Jan 13 06:51:50 Tricknology Ok, can you implement a lp filter with res? Jan 13 06:51:52 I don't have time for a few weeks Jan 13 06:52:07 Tricknology I will make the synth in the meanwhile. Jan 13 06:52:07 RMS or peak? Jan 13 06:52:30 THough I mihght write it in c++ and port it. Jan 13 06:52:38 NDK Jan 13 06:52:46 you can ust use c++ Jan 13 06:53:12 It is VERY easy to port c++ code Jan 13 06:53:22 can you make guis in windows? Jan 13 06:53:34 I can Jan 13 06:53:41 WIth some effort Jan 13 06:53:59 c#, but no i never have Jan 13 06:54:03 java Jan 13 06:54:15 filters are just variations of PID filters Jan 13 06:54:16 fuck, the internet has killed my work productivity. How am I supposed to get any work done when I have infinite possibilities at the click of a button? Jan 13 06:54:22 Ok, can I get your contact thinhy? Jan 13 06:54:25 laplace transforms Jan 13 06:54:37 I know those from QM Jan 13 06:55:15 I'll take a fourier transform any day. Jan 13 06:55:25 laplacian*(i/h^2) = e*f(x) ? Jan 13 06:55:43 eigenequationm Jan 13 06:56:07 might be wrong, off the top of my head Jan 13 06:56:34 WRONG OG RIGHT?!?!? Jan 13 06:56:55 idk it's been a long time since eigen-anything Jan 13 06:57:28 K*1/(tau*s+1) Jan 13 06:58:09 Tricknology mine is from QM, E is the energy of the wavefuction Jan 13 06:58:09 that's the one thing I like about computer science. I rarely have to do any calculus. Jan 13 06:58:15 lol Jan 13 06:58:20 I love calculus Jan 13 06:58:25 i gets kme hard Jan 13 06:58:32 unles you get into an area of CS where there is no package to do it for you Jan 13 06:58:38 then iteration galore Jan 13 06:58:59 If you cant do math you have no business in CS AT ALL Jan 13 06:59:03 in fact, if it appears i'm going to have to worry about algorithms i'll try and weasel out of the work somehow Jan 13 06:59:09 well now.. Jan 13 06:59:23 I can do math all do long, I just choose not to Jan 13 06:59:33 day* Jan 13 06:59:47 anyway.. I have to get back to work then bed then work Jan 13 06:59:54 msg me and we'll talk Jan 13 07:01:04 hi i am facing a strange issue with Google Cloud Messaging, one of my device receives 2 copies of same message. I checked the messange sent status, it doesnt have cannonical ids. Other devices recives just one version. Jan 13 07:01:08 if i send a message with payload, 1st message comes without payload and second comes with payload Jan 13 07:01:19 device in question is dev device and have generated multiple gcm registration ids, but server pushing the data uses only the recent id. yet the dev device receives double notifications Jan 13 07:01:25 how to resolve this kind of odd situation Jan 13 07:04:14 personally, I drink Jan 13 07:04:46 I hope you don't derive drunk. Jan 13 07:05:22 Heh - actually, I used to drink - A LOT ... but then I stopped Jan 13 07:05:33 I think I just gained my virginity back Jan 13 07:05:35 o, I see what you did there Jan 13 07:05:54 drink and derive, heh :p Jan 13 07:06:01 I copied it from some old joke. :D Jan 13 07:06:20 It feels better to make up our own puns, so I'm gonna have to think hard now. Jan 13 07:06:51 Man, this issue is bothering me. Jan 13 07:06:54 TacticalJoke Real awesomestere come up with their stuff on their own :D Jan 13 07:06:58 Why have ActionBar spinners gotta be so freaking high? Jan 13 07:07:09 I wrote the 1987 Regan Berlin Wall Speach :D Jan 13 07:07:11 SPeech Jan 13 07:07:20 reagan Jan 13 07:07:27 ummm. really? Jan 13 07:07:31 cph_dk: But is anything we think of original? Jan 13 07:07:32 Nope. Jan 13 07:07:41 TacticalJoke Good point. Jan 13 07:07:43 oh Jan 13 07:07:57 TacticalJoke At least everything is derived from something existing Jan 13 07:08:03 you can be my friend Jan 13 07:08:04 I guess there are degrees of originality. Jan 13 07:08:07 for that Jan 13 07:08:17 But even then it's stuff like genetics (which we aren't responsible for). Jan 13 07:09:17 TacticalJoke Get this: I am either superioer to everyone everywhere or raving mad ala delusional psychosis, DONT tell me which one :D Jan 13 07:09:26 can you change the color of an SVG icon in Android in the XML? Jan 13 07:09:42 or, in Java for that matter? Jan 13 07:09:57 oddalot Yes, load it as a bitmap. Jan 13 07:10:09 aight Jan 13 07:10:10 Using the android graphics lib Jan 13 07:10:28 I have written a lib that does that Jan 13 07:10:43 also does gamma correction Jan 13 07:10:47 cph_dk: It's interesting (and kinda startling) how much people take comfort from feeling superior to others. Jan 13 07:10:49 * regan didn’t make a wall speach in 1987 Jan 13 07:11:04 I think it's probably true that if you didn't ever feel superior to another human then you'd be seriously depressed. Jan 13 07:11:07 wow, sounds like I should just make a new icon? Jan 13 07:11:12 might be simpler. Jan 13 07:11:14 what are nav drawers supposed to be used for? Jan 13 07:11:16 regan 2 years before the wall came down, YES! Jan 13 07:11:20 Which is unfortunate. Jan 13 07:11:30 "GORBACEHV, tear down this wall.1987" Jan 13 07:11:45 might be 88 Jan 13 07:11:47 but Jan 13 07:11:59 88 was BUSH Jan 13 07:12:04 kevel1: There is one set by default, but you can set a custom instance if needed Jan 13 07:12:04 not reagan Jan 13 07:12:12 HevvyMetal: think of it is a high level context menu that can be also be used for navigation Jan 13 07:12:20 kind of like how webpages used to have directory page Jan 13 07:12:22 (which you shouldn’t for need for this) Jan 13 07:12:23 * regan was never president Jan 13 07:12:28 reagan Jan 13 07:12:31 seamtics Jan 13 07:12:34 sematics Jan 13 07:12:43 yeah but who uses that now? name a standard android app that uses that so I can try it out lasserix ? Jan 13 07:12:43 lasserix: What can I do if an ActionBar spinner is too high up and a navigation drawer is undesirable? Jan 13 07:12:50 But ok, I hate that too, spelling errosd Jan 13 07:12:51 lots of them do Jan 13 07:13:00 TacticalJoke: for what? Jan 13 07:13:07 lasserix: For picking subreddit. Jan 13 07:13:10 es file explorer Jan 13 07:13:19 play store Jan 13 07:13:30 lots of them Jan 13 07:13:38 why is the actionbar spinner too high up? Jan 13 07:13:44 Because it's in the ActionBar. :D Jan 13 07:13:52 oh you mean when you are scrolling down comments or something? Jan 13 07:13:55 One solution: have a bottom-of-the-screen ActionBar. Jan 13 07:14:16 If I'm looking at posts, and I'm currently on /r/aww, and I wanna go to /r/programming. Jan 13 07:14:22 It's such a reach to get to the ActionBar spinner. Jan 13 07:14:31 https://speakerdeck.com/jakewharton/2014-1 Jan 13 07:14:32 how about double fling up Jan 13 07:14:36 jumps to top of list? Jan 13 07:14:37 huh what JakeWharton are you sleeping? Jan 13 07:14:47 Gorbachev should have been giving time and peace to work, he wanted to reform the USSR into a Nordic Style social democracy, and THAT is surely better that what we have now Jan 13 07:14:56 What I mean is: the ActionBar is always at the top. Always hard to get to. Jan 13 07:15:15 If I had a bottom-of-the-screen ActionBar, that would look ridiculous. But, damn, that'd be handy for navigation and stuff. Jan 13 07:15:34 lasserix neitehr es nor play store uses navdrawer on my devices Jan 13 07:15:42 Imagine if he had pulled it off, Denmmark, NOrwar and Sweden carboncopied unto to USSR Jan 13 07:15:44 lasserix: I guess I could implement some gesture to open the spinner without touching the top of the screen, but that'd probably be ridiculous too. Jan 13 07:15:49 es uses bottom buttons and playstore is almost a web page no navdrawer at all?? Jan 13 07:15:56 I thought that's what the split action bar was? Jan 13 07:16:23 True, but does anyone use those anymore? Jan 13 07:16:26 Sorry, did not realize that geopolitics was beyond Android "coders" :D Ah, sorry, did not mean that. Jan 13 07:16:35 I don't want my app looking like it was designed for BlackberryOS. Jan 13 07:16:55 BlackBerry OS* Jan 13 07:16:56 TacticalJoke: no that would be cool Jan 13 07:17:00 like doa circular motion Jan 13 07:17:03 TacticalJoke You must have something to say? Jan 13 07:17:10 cph_dk: Huh? Jan 13 07:17:12 could open up the spinner Jan 13 07:17:19 why no navigation drawer? Jan 13 07:17:21 lasserix: It might look weird, though. lol Jan 13 07:17:29 TacticalJoke Gorbachev Jan 13 07:17:30 Twirl around and a spinner opens. Jan 13 07:17:30 just do it as a dialog Jan 13 07:17:44 people will say its too complicated but it is a secondary action, short cut Jan 13 07:17:46 I don't know who that is, cph_dk. ;| Jan 13 07:17:54 Do what as a dialog? Jan 13 07:17:55 TacticalJoke Nice. Jan 13 07:17:57 and when people accidently stumble upon it they'll go coole aster egg Jan 13 07:18:01 haha Jan 13 07:18:02 present the options Jan 13 07:18:07 why no nav drawer tho? Jan 13 07:18:10 I hate nav drawers. Jan 13 07:18:15 They're so hard to use. So fiddly. Jan 13 07:18:20 Annoying having to swipe them open. Jan 13 07:18:27 Having to remember what they contain. Jan 13 07:18:28 i'm still trying to find one in use TacticalJoke before i hate on them Jan 13 07:18:34 maybe gmail uses them Jan 13 07:18:59 play store uses them Jan 13 07:19:19 TacticalJoke: that's not a real reason, because i belive most users are used to themby now Jan 13 07:19:31 you say that but i havent seen them in play tore lasserix Jan 13 07:19:34 and theyre the best way to do your maximize screen use Jan 13 07:19:34 Yeah. That's not as bad as using them for subreddits, though, because the Play Store's navigation drawer has few items. Jan 13 07:19:38 maybe on your ancient device lasserix Jan 13 07:19:44 The more items it has, the harder it is to remember what's in there. Jan 13 07:19:48 HevvyMetal: i have multiple devices Jan 13 07:19:53 does anyone see nav draweres on play store in 4.4.4? or 5.0? where? Jan 13 07:20:12 lasserix: Yeah, but having subreddits in a nav drawer is crazy. You have to scroll down a huge nav drawer. Jan 13 07:20:13 TacticalJoke: just use it for a few basic things Jan 13 07:20:24 I don't mind having like five items in a nav drawer, I guess. Jan 13 07:20:24 use nav drawer as top level in page nav? Jan 13 07:20:26 like goto top Jan 13 07:20:27 Especially if they're rarely used. Jan 13 07:20:27 goto bottom Jan 13 07:20:31 goto settings Jan 13 07:20:34 goto favorites Jan 13 07:20:35 that's all Jan 13 07:20:38 and new post Jan 13 07:20:39 ah you tube has them Jan 13 07:20:57 Shouldn't nav drawers be used to open different Fragments/Activities/whatevers? Jan 13 07:21:03 Rather than just "go to top of current screen". Jan 13 07:21:07 they can be used however Jan 13 07:21:18 the whole point is they are a secondary context or navigation pane Jan 13 07:21:21 menu Jan 13 07:21:28 anyone see this? Jan 13 07:21:50 TacticalJoke: its that, or some obscure gesture, or something that takes up screen space all the time Jan 13 07:21:59 anyone know the hex value for the color of the grey action bar icons? Jan 13 07:22:18 anyone using rxjava? Jan 13 07:22:19 lasserix: I'm googling "actionbar bottom screen". lol Jan 13 07:22:25 In case anyone has any views on that. Jan 13 07:22:32 it used to be called split action bar Jan 13 07:22:38 i think it is deprecated now Jan 13 07:22:59 The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers. Jan 13 07:23:12 this is what i've been asking for for weeks now JakeWharton :) Jan 13 07:23:22 anyone using it in here? Jan 13 07:23:24 Yeah. It's also a crazy idea. Jan 13 07:23:40 TacticalJoke: what is? rx or split action bar? Jan 13 07:23:41 uh huh what makes it crazy oh wise TacticalJoke ? Jan 13 07:23:55 Showing my subreddit selector at the bottom. Jan 13 07:24:01 oh ok Jan 13 07:24:07 yeah Jan 13 07:24:11 are we still handholding on every line of your app TacticalJoke ? Jan 13 07:24:12 that seems wrong Jan 13 07:24:26 he is just brain storming Jan 13 07:24:35 brainscrolling Jan 13 07:24:57 no thats what you do when you go off on one of your patent monologues Jan 13 07:25:00 :) Jan 13 07:25:11 Hmm, it'd help a lot if the user could drag down the spinner. Jan 13 07:25:13 Then it's way less effort. Jan 13 07:25:25 i just think its polite to talk about things that are interesting to at least 2 or more people on the channel Jan 13 07:25:27 Oh, I put that guy on ignore. Jan 13 07:25:31 BTW. Jan 13 07:25:34 err 3 or more Jan 13 07:25:53 i took my offtopic stuff to pm earlier :) Jan 13 07:25:58 i try to be gud Jan 13 07:26:19 TacticalJoke Boy, I am NOT making friends in my regular channel #politics on efnet Jan 13 07:26:22 do weneed to break out the peace pipe guys? Jan 13 07:26:37 or should there be a round of trout slapping Jan 13 07:26:58 cph_dk: haha Jan 13 07:27:05 is that the one with C0metbaby cph_dk ? Jan 13 07:27:11 and nharris? Jan 13 07:28:22 Hmm, would it be hard to implement drag-to-open on a spinner? Not really seeing any Google results for that. Jan 13 07:28:26 The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers. Jan 13 07:28:30 bleah Jan 13 07:28:33 http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Jan 13 07:34:19 TacticalJoke: drag to open on a spinner why? Jan 13 07:34:27 you use rxjava Zharf or lasserix ? Jan 13 07:34:43 or retro lambda Jan 13 07:35:06 It's way more convenient than releasing and then making scroll gestures. Jan 13 07:35:06 HevvyMetal yes, those two are nice enough Jan 13 07:35:26 seems ncie Jan 13 07:35:35 i was asking about linq alike before and noone got back to me Jan 13 07:35:39 seems pretty similar Jan 13 07:35:51 can you use rxjava to query in memory db cph_dk ? Jan 13 07:36:40 have you gotten this syntax to work with all that on android? Observable.from("url1", "url2", "url3") Jan 13 07:36:40 .subscribe(url -> System.out.println(url)); Jan 13 07:37:13 HevvyMetal I dont do web stuff Jan 13 07:37:33 i didnt say you did i'm talking about in android Jan 13 07:38:24 hello Jan 13 07:39:23 anyone using that? Jan 13 07:39:49 lasserix: Maybe I'm thinking about it at the wrong level. Maybe the user shouldn't *need* to keep changing subreddit. Jan 13 07:39:53 Though I have no idea where that leads. lol Jan 13 07:41:43 TacticalJoke Go into the low level stuff of the Android API, the GFX stff Jan 13 07:45:22 TacticalJoke: here Jan 13 07:45:26 if you are scrolled down Jan 13 07:45:31 pressing back takes you to top of the list Jan 13 07:45:36 from which actionbar spinner is visible Jan 13 07:45:42 pressing back at top of list goes back Jan 13 07:45:46 problem solved? Jan 13 07:46:49 lasserix: The ActionBar spinner is always visible. Jan 13 07:47:14 The issue is that it's a stretch (especially on a big screen) to touch the ActionBar. Jan 13 07:47:36 anyone wanna see my gtx overclocked HEAVILY running Crysis 3 with all set to beyond max Jan 13 07:47:38 ? Jan 13 07:48:06 lasserix: I'll figure something out. Thanks for listening. :) Jan 13 07:48:20 wait Jan 13 07:48:20 just do the if scrolled Jan 13 07:48:20 goto top on back Jan 13 07:48:24 as first pass onback pressed Jan 13 07:48:29 then its consistent with the rest of it Jan 13 07:48:34 as a spinner in action bar, and it is easy Jan 13 07:48:48 and it makes sense navigationaly since, switching to another reddit is like going back and then into Jan 13 07:49:01 you're just saving them a step of going from back to next, by going to top to spinner Jan 13 07:49:02 Are you saying that pressing Back should make the spinner open? Jan 13 07:49:06 no Jan 13 07:49:06 anyone wanna see my gtx overclocked HEAVILY running Crysis 3 with all set to beyond max??? IT IS AWESOME Jan 13 07:49:06 The only issue is getting the spinner to open. Jan 13 07:49:22 you are being too fussy Jan 13 07:49:30 that is like saying how can people touch the action bar? Jan 13 07:49:34 Right. Jan 13 07:49:36 some things you have to assume that's how it works Jan 13 07:49:41 I want this client to be usable one-handed (not for that reason). Jan 13 07:49:51 but i think having back make the list goto top is not a bad idea Jan 13 07:50:05 Hmm. Everybody would be surprised by that. lol Jan 13 07:50:12 Like "Whoa, why did I just scroll up?". Jan 13 07:50:18 how do you make sure only used classes are put in your apk? Jan 13 07:50:26 The MSI GTX 970 can be overclocked alomst 50% Jan 13 07:50:30 and run stabloy Jan 13 07:50:38 TacticalJoke: they'll figure it out after the first time it happens, then it'll just be a handy way to goto top Jan 13 07:50:54 and if you want to go back you just double tap back which is the same as going back two screens whichis essentially equivalent Jan 13 07:51:08 What if I use a floating action button for opening the dropdown? Jan 13 07:51:42 It's a clever idea, lasserix. I think it'd be way too jarring, though. Jan 13 07:52:37 TacticalJoke https://www.youtube.com/watch?v=pyHGAPJQclg&feature=youtu.be Jan 13 07:52:43 TacticalJoke WATCH!!:D Jan 13 07:53:01 TacticalJoke Remember to set it up to 108 Jan 13 07:53:51 The graphics look great. What is 1080p60? Never seen that before. Jan 13 07:54:28 1080p (full hd) 60 FPS Jan 13 07:54:31 how do you make sure only used classes are put in your apk? Jan 13 07:54:49 Ah. Nice. Jan 13 07:57:05 Norrin: Can't ProGuard do that? Jan 13 07:57:13 http://developer.android.com/tools/help/proguard.html Jan 13 07:57:26 TacticalJoke, aapt can't do it? Jan 13 07:57:39 it just throws everything in? no way not to? Jan 13 07:58:42 * cph_dk Talks with a soft voice to TacticalJoke, because he cares, drop all 3rd party API, write your own stuff, you will wake in 1,2 3 :D Jan 13 08:00:21 TacticalJoke Ok, it is a wASTE, I agree, but the stuff you LEARN doing your own stuff Jan 13 08:00:29 It's more of a UX problem than an implementation problem. Jan 13 08:00:45 ÜX? Jan 13 08:00:59 I am not at your level? I am novice :D Jan 13 08:01:00 a Jan 13 08:01:09 http://en.wikipedia.org/wiki/User_experience Jan 13 08:01:21 TacticalJoke GUI Design Jan 13 08:01:28 SHortly put Jan 13 08:01:54 I am opposed to new age crap in computer programming :D Jan 13 08:02:38 I await with suspense "women's algorithmic major" Jan 13 08:03:20 TacticalJoke, so aapt is just dumb and dumps everything in? Jan 13 08:03:41 i was interviewing some womens cs majors lately cph_dk Jan 13 08:04:25 Norrin: I have no idea; sorry. Jan 13 08:04:54 HevvyMetal Oh, it was an attack on them. Jan 13 08:05:10 in what way cph_dk ? Jan 13 08:05:16 HevvyMetal On the TITLE: ""women's algorithmic major"" Jan 13 08:05:22 NOT AN ATTACK Jan 13 08:05:40 Like "Women's Studie's Major" Jan 13 08:05:48 No, female CS grads Jan 13 08:05:51 not Jan 13 08:06:09 those are just a qualified as any man Jan 13 08:06:14 as Jan 13 08:06:50 don't get me started cph_dk Jan 13 08:07:11 cph_dk: I think the UX of a product is different from its UI. The UX might be influenced by things such as general branding and so on. Jan 13 08:07:21 to me the real irony is that Jan 13 08:07:28 women are treated as minorities ok? Jan 13 08:07:35 yet 52% of the population is female Jan 13 08:07:42 HevvyMetal In the US, but not here Jan 13 08:07:45 so how is it exactly that's a minority? Jan 13 08:07:52 oh ok so women aren't minorities in dk? Jan 13 08:07:59 are they < 50% population? Jan 13 08:08:00 Affirmative Action for WOmen?= Jan 13 08:08:15 if women were 49% ok Jan 13 08:08:20 but 52%? Jan 13 08:08:57 I get your point, no, they are NOT a minority, BUT they have been discriminated against at some point Jan 13 08:09:01 its funny tho anyway next Jan 13 08:12:53 Norrin that's what progaurd is for Jan 13 08:14:08 imo proguard is for obsfuscation. i understand proguard can do this. but this is something a compiler/linker usually does Jan 13 08:14:15 proguard is an extra step Jan 13 08:14:30 i want to know how can the compiler/linker do this. Jan 13 08:14:44 no Jan 13 08:14:53 proguard does obsfucation but it does lots of other things too Jan 13 08:14:57 that's what it is for Jan 13 08:15:03 if you look it's now called minify Jan 13 08:15:04 that's fine. but it's extra Jan 13 08:15:06 i want to know how can the compiler/linker do this. Jan 13 08:15:10 no its the whole point Jan 13 08:15:15 you can turn off obsfucation Jan 13 08:15:23 fine. but it's extra Jan 13 08:15:24 ] Jan 13 08:15:26 i want to know how can the compiler/linker do this. Jan 13 08:15:28 it minimizes by removing unused and encoding Jan 13 08:15:30 its not extra Jan 13 08:15:38 The compiler/linker can't, at least for android Jan 13 08:15:43 with jack, it may be another story Jan 13 08:15:44 its the fundemental action, obsfucation is just an extra Jan 13 08:15:45 while (true) { print("i want to know how can the compiler/link do this."); } Jan 13 08:15:46 proguard has it's whole own independent setup Jan 13 08:15:57 since it does encoding, you can just rename everything while you are at it Jan 13 08:15:59 and voila Jan 13 08:16:05 Dream_Team, what's jack? Jan 13 08:16:23 http://tools.android.com/tech-docs/jackandjill Jan 13 08:16:37 I doubt they'll stop using proguard. it works well Jan 13 08:16:55 wait, they did Jan 13 08:16:57 my bad Jan 13 08:17:01 why do cheap tablets sometimes lack firmware reflash files? Jan 13 08:17:35 Dream_Team, thanks so much. so you're sure the standard tool chain can't do it? Jan 13 08:17:59 no one else seems to know Jan 13 08:19:54 wow AS logo changed :D nice Jan 13 08:20:23 Norrin: mayeb there is a way, but google integrated proguard so deeply that I doubt the standard toolchain can do it Jan 13 08:21:06 i just find that really dumb / hard to believe.... they have this packager that copies everything regardless of whether it's used or not Jan 13 08:21:24 *sigh* this cheap tablet, it has no way to recover the firmware Jan 13 08:21:37 buy a new cheap tablet then RudyValencia Jan 13 08:21:47 www.amazon.com Jan 13 08:21:53 hth Jan 13 08:23:23 well, I want to develop apps but I worry that I'll brick it Jan 13 08:23:38 Dream_Team, yeah it does seem to hint jack&jill will do it Jan 13 08:23:53 I presume a user app can't easily brick a device? Jan 13 08:24:06 NAH Jan 13 08:24:09 oops, sorry Jan 13 08:24:16 Nah, SDk apps can't easily brick a device Jan 13 08:24:20 only fb msgr RudyValencia Jan 13 08:24:20 you're sandboxed and all Jan 13 08:24:32 Worst case scenario, just wipe data Jan 13 08:25:04 well, at least that's no big worry then Jan 13 08:25:15 it shouldnt brick RudyValencia unless your root and fb it Jan 13 08:25:37 HevvyMetal: fb? Jan 13 08:25:56 so anyone else seem linking google play services adding 3 to 4 MB to an apk? Jan 13 08:26:03 anyone else seen* Jan 13 08:27:32 RudyValencia fb=facebook and/or fastboot Jan 13 08:27:39 norrin did you use proguard? Jan 13 08:27:52 hm, I should see what URL the update connects to Jan 13 08:28:39 probably could use wireshark to sniff for it Jan 13 08:29:44 Play services has been split up into multiple packages, probably won't be as bad if you only add the parts you need as dependencies Jan 13 08:32:03 The latest version has a few bugs last I checked, so might want to hold off until they’re fixed Jan 13 08:32:28 i'm sure the next version will have bugs too ;) Jan 13 08:33:09 probably even moar, thats why they split it up. there is a limit to thr # of bugs in an apk Jan 13 08:33:13 I added a library called Parse (parse.com) to my project. When I open a code file of the library in AS I see this - http://puu.sh/dhQXc/2f64034c60.png - I'm really curious on knowing what onReceive() contains, is there some way to get the code piece inside it? Jan 13 08:33:36 Norrin, use split package version, use resConfigs Gradle directive to strip away translations and resources for languages you don't support. Jan 13 08:34:11 shmoon_, there's an IDEA plugin that displays java disassembly in those cases Jan 13 08:34:19 don't know what it's called tho, it's installed by default in Ultimate Jan 13 08:34:42 HevvyMetal, no i haven't. i'm talking about w/o proguard Jan 13 08:35:11 Norrin without it probably does add a lot Jan 13 08:35:31 Mavrik: Ultimate is an edition of IDEA? Jan 13 08:35:41 its good to use proguard even if it's a bear Jan 13 08:35:42 f2prateek_, latest version of what? Jan 13 08:36:06 Play Services, the update that splits the modules Jan 13 08:36:31 Mavrik: would be great if you could tell me the name ? Also why does it show like that anyway ? because its a jar (archive) file that probably does some compilation of the code ? Jan 13 08:36:38 Mavrik, hmm thinks Jan 13 08:36:40 f2prateek_, i see Jan 13 08:36:45 shmoon_, it shows it like that because you don't have the source Jan 13 08:36:50 shmoon_, and only compiled version. Jan 13 08:37:01 so actually this is not a java app, persay Jan 13 08:37:17 Norrin, ? Jan 13 08:37:19 "thinks"? Jan 13 08:37:29 Mavrik: ok, so there's some way to convert compiled version to code which is what that plugin does? Jan 13 08:37:35 it's mostly C/C++. it's a game. so dunno if resConfigs / proguard are even possibilities Jan 13 08:37:50 shmoon_, not really, especially if it's obfuscated with proguard. Jan 13 08:37:55 Norrin, of course they are. Jan 13 08:38:05 Norrin, you're stripping Java code from Play Services, not your code. Jan 13 08:39:00 It's "per se", BTW. Jan 13 08:39:04 lol Jan 13 08:39:11 i was waiting for that Jan 13 08:39:27 Latin. Jan 13 08:39:49 let me know if you recall the name of that plugin that shows java disassembly in such cases, would be helpful, Mavrik Jan 13 08:40:58 bleh my vcsystemtray keep crashing not sure why Jan 13 08:41:29 i read this http://blog.jetbrains.com/idea/2014/07/intellij-idea-14-eap-138-1029-is-out/ Jan 13 08:43:02 seems like there are some java decompiler tools to decompile jar files heh Jan 13 08:43:22 might use them someday if I really require to see some library's source code Jan 13 08:44:08 Mavrik, well there's no gradle. unity spits out the apk one shot Jan 13 08:44:36 no results for resconfig or resconfigs on unity3d.com Jan 13 08:45:37 if unity still uses obsolete build system, you'll just have to tolerate that 4MB of additional stuff Jan 13 08:47:49 well nite all :) Jan 13 08:48:03 Mavrik, this is the split package you're talking about? http://developer.android.com/google/play-services/setup.html#split Jan 13 08:48:14 where can i get the corresponding jars? Jan 13 08:48:20 yep Jan 13 08:49:05 f2prateek_, ^ Jan 13 08:49:06 how can i invoke my activity using Jan 13 08:49:35 I don't think there are split libraries for old Eclipse projects Jan 13 08:49:41 shmoon_, those have been around very long Jan 13 08:49:42 As far as I can see :/ Jan 13 08:50:14 shmoon_, I think Parse deliberately gives you a compiled and obfuscated JAR so you can't see what they're doing :/ Jan 13 08:50:18 Mavrik, hmm. doesn't the gradle rule just download a jar from somewhere? (guessing) Jan 13 08:50:35 i dont hear good things about parse lately Jan 13 08:50:49 shmoon_, you can try decompiling the lib (JD-GUI is rather ok for opening .jar files), but if they used proguard it'll look like garbage Jan 13 08:51:33 Norrin, good point, it's from android SDK repo, look at android-sdk/extras/google/m2repository/com/google/android/gms Jan 13 08:53:18 Linkify.addLinks(spannableStringBuilder, Patterns.PHONE, "myapp"); I wanted to open activity using schemes Jan 13 08:54:02 but getting android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=myapp://01108888888 (has extras) } Jan 13 08:55:05 I have also decalred intent filter in my manifest Jan 13 08:59:44 I want when user click in Phone No it will display activity rather than call Jan 13 09:00:33 huh, LG smartwatch running webOS Jan 13 09:01:54 Hi guys what is the best way to bind a autocompletetextview to a webservice for the dropdown menu? Jan 13 09:20:12 Mavrik, hmm I see this file. sdk/extras/google/m2repository/com/google/android/gms/play-services-ads/maven-metadata.xml Jan 13 09:20:14 but where's the jar? Jan 13 09:20:41 might have found it... Jan 13 09:21:02 damn its an aar Jan 13 09:21:21 norrin its a repository, not a library file Jan 13 09:21:42 i know. looking for the jar Jan 13 09:24:27 Norrin, of course it's an aar Jan 13 09:24:38 it has resources in it Jan 13 09:25:50 yeah Jan 13 09:25:58 Hey, how about a programming quiz, each chatter asks a Q and the other answer? Jan 13 09:26:10 Mavrik, well did most of the research at this point. this other team that actually needs this should be able to figure out the rest Jan 13 09:26:22 mhm Jan 13 09:26:29 Norrin, I think you'll just have to stick with the size add Jan 13 09:26:37 cph_dk, isnt that what we are playing here already ^^ Jan 13 09:26:40 since you're not using a build system that can use the split AARs :/ Jan 13 09:26:54 Mavrik, well they can compile the aar, open the classes.jar, delete what they don't need, and rejar Jan 13 09:26:56 Ok, my first= Jan 13 09:26:58 ? Jan 13 09:27:01 me Jan 13 09:27:48 Mavrik, brb Jan 13 09:33:46 public class base { abstract void BaseFunc(); }; public class derived : extends base { void basefunc() {}; }; base b = new derived(); derived.basefunc Jan 13 09:33:57 forgive my off the top java Jan 13 09:33:58 :) Jan 13 09:34:08 what happens? Jan 13 09:34:19 easy one, but someone will better this Jan 13 09:34:52 I dont think you find lots of guys that are here to play games.. Jan 13 09:35:02 oops....b.basefunc() Jan 13 09:35:03 soirry Jan 13 09:35:44 danijoo Could be fun, more fun than inherent arrogance, although that CAN be fun. Jan 13 09:36:08 good luck :( Jan 13 09:36:21 danijoo Well, it was an idea :) Jan 13 09:36:51 well I found a tool to dump the partitions of this tablet Jan 13 09:36:52 :D Jan 13 09:38:06 Anyone who within 2 minuts can implement the multiplication between the z-rotation matrix and some vector both in 2d is AWESOME! Jan 13 09:38:23 I cant Jan 13 09:39:37 http://stackoverflow.com/questions/27814321/android-simplecardstackadapter-get-adapter-item-info-and-like-dislike-button Jan 13 09:39:43 any help on this? Jan 13 09:43:42 hi is there way to determine if user fresh installed the app or updated for the already on the market app? Jan 13 09:44:10 erkangur, make a sharedpreference Jan 13 09:44:41 erkangur Usually in such cases you can uninstall the update? Jan 13 09:45:04 danijoo: i cant make a sharedpref because the app is live now and people using the app wont have that flag and i will mistakenly identify the m as fresh installs Jan 13 09:45:13 store the versionnumber of the app in it. If this number is null, its a fresh install. if its something other than the current version, the user just updated Jan 13 09:45:31 I'm dumping this tablet Jan 13 09:45:38 so that I can have a copy of the firmware available Jan 13 09:46:08 danijoo: for existing users that does not work :/ Jan 13 09:46:26 afaik there is no working solution for already existing users Jan 13 09:47:03 danijoo: i was thinking about PackageInfo's lastUpdateTime and firstInstallTime, but i am not sure Jan 13 09:47:14 try it, never used that Jan 13 09:48:00 danijoo: for that, i couldnt figure ou Jan 13 09:48:30 t the trying process, when i adb -r install apk it gives always 0 0 :/ anyway thanks for help Jan 13 09:48:58 maybe thats because of adb.. dunno Jan 13 09:50:38 hi guyes Jan 13 09:50:46 is this private channel? Jan 13 09:50:57 my pal can't login lol Jan 13 09:51:09 you need to have a registered nickname Jan 13 09:52:33 ahh i supposed he did it though.. thanks. let me ask to retry Jan 13 09:57:03 Is it okay to set lineSpacingExtra on a TextView to a negative value? Jan 13 09:57:11 It seems to work, but I can't see any recommendation in the documentation. Jan 13 10:07:04 Assume it's like any other undocumented feature. Might work, might not Jan 13 10:15:47 TacticalJoke: If you shot into your leg, probably it will work, but you never see this recommendation :) but in case lineSpacingExtra negative value - i don't think it is a crime Jan 13 10:23:48 Java into your leg!!!! Jan 13 10:29:05 Why cant you add parameters in volley when you are sending get requests? What is the idea behind? Jan 13 10:32:56 https://www.youtube.com/watch?v=pyHGAPJQclg&feature=youtu.be Jan 13 10:33:05 gtx970 clock 60% Jan 13 11:15:42 Hey guys Jan 13 11:16:10 I have some dilemmas about organizing and running tests Jan 13 11:17:04 I know very little, but the stuff i DO know about I am very good at :D Jan 13 11:17:17 I have some instrumentation tests already, but I wanted to start usign Robolectric, so after a bit of trouble I managed to set it up with Android Studio Jan 13 11:17:55 supid q: is that profiling software or do I need to read? Jan 13 11:18:10 Does anyone know the ID of the expandable list view expandable indicator thing? Jan 13 11:18:45 cph_dk were you addressing me? What are you referring to? Jan 13 11:18:46 again stupid: but arent IDs freely assignable in the XML editor? Jan 13 11:19:19 finishingmove Nevermind, I would have to read to be of any help. Jan 13 11:20:02 finishingmove But how is AS turning out? Jan 13 11:20:15 basically after setting up Robolectric, my instrumentation tests are failing Jan 13 11:20:40 so I was wondering if I will need to place the Robolectric tests in a separate module Jan 13 11:20:54 are all AsyncTasks in an application ran on the same single worker thread? Jan 13 11:21:04 you have sensor coupled to your "setup"? Jan 13 11:21:31 is kingo root a good one-click rooter? Jan 13 11:21:46 I was very happy with intellij IDEA, is AS better? Jan 13 11:22:20 cph_dk, its the same Jan 13 11:22:30 just stripped of IDEA ;) Jan 13 11:22:58 well, AS is basically a fork of IDEA, tailored for android dev... I think it's lacking in some areas and better (for android) in others Jan 13 11:23:24 generally though Jetbrains IDEs are the best thing I've worked with, by far :) Jan 13 11:23:34 but the things its lacking will get backported Jan 13 11:23:40 it just takes some time Jan 13 11:23:51 yeah it just got out of beta a month ago or so Jan 13 11:23:57 finishingmove Yes, IDEA was even better than MSVSC++ Jan 13 11:24:04 as an ide Jan 13 11:39:59 hello. if a solution to a problem is simple and working but completely nonstandard, is it considered bad? Jan 13 11:40:21 On a Nexus 5 I’m trying to push directory on the flash disk, but when I use Environment.getExternalStorageDirectory() it returns the /storage/emulated/0/www/index.html open failed: ENOENT (No such file or directory) How exactly to push the directory content to the /storage/emulated/0/ ? Jan 13 11:41:07 have you created www first? Jan 13 11:42:01 hey guys trying to move a project to Android Studio from eclipse, but i cant get GMC working for the life of me, it says the package doesnt exist, rest of my jars are working Jan 13 11:42:12 gcm Jan 13 11:42:22 danijoo: yes with: adb push www /sdcard/www Jan 13 11:42:50 koleto, please read the topic of this channel Jan 13 11:43:12 Gaz`, migrating to gradle? Jan 13 11:45:14 trying to yes Jan 13 11:45:28 infuriating, it doesnt want to see GCM Jan 13 11:45:33 please post your build.gradle then Jan 13 11:46:11 and you should remove your jars in favour of gralde resources then. Jan 13 11:46:13 its supposed to only need compile "com.google.android.gms:play-services:3.1.+", AFAIK Jan 13 11:46:33 yeh i just did that, before i was using libs/gcm.jar Jan 13 11:46:42 its also suppost to include your jars ;) Jan 13 11:46:47 and you need to tell it to do so Jan 13 11:47:24 well my other stuff is all compiling fine only gcm and maps is not Jan 13 11:47:36 to compile all jars from a library folder, you can add: compile fileTree(dir: 'libs', include: '*.jar') Jan 13 11:47:50 uhmm. btw. isnt GCM part of play-services now? Jan 13 11:48:03 you shoudnt need an extra jar for that. Jan 13 11:48:05 seems so yes Jan 13 11:48:25 what a pita Jan 13 11:48:48 just realized how horribly outdated google docs are Jan 13 11:49:05 try a version of play service that is not years old :p Jan 13 11:49:13 and my brain, feel like i havent coded android for ever Jan 13 11:49:14 current version is: compile 'com.google.android.gms:play-services:6.5.87' Jan 13 11:49:20 ok cheers :) Jan 13 11:49:22 nor 3.1 lol Jan 13 11:49:25 not* Jan 13 11:49:32 shows how old this app is lol Jan 13 11:49:36 hehe Jan 13 11:49:50 been good to me tho, client wants updates for years after :) Jan 13 11:50:03 yeah but it also shows 3.1 on "How to set up google play services". and this is redicoulus Jan 13 11:50:18 ah yes, thats wher ei pasted from in fact Jan 13 11:50:48 i dont understand gradle as much as i did ant either Jan 13 11:51:16 nobody does. but youll get used to it :) Jan 13 11:51:35 :) Jan 13 11:51:57 what is an unbounded queue? Jan 13 11:52:02 one that ha sno size? Jan 13 11:52:21 still cant find gmc Jan 13 11:52:23 fffffssss Jan 13 11:53:03 gah might just go back to eclipse lol Jan 13 12:08:21 Gaz`, nobody can help you if you dont post any code Jan 13 12:13:57 Hey I have a chat activity in my app. I have a listview where it opens up the ChatActivity via intent. THe chat activity has a ListView inside it and each row is a message. It works fine but when I chat with someone and then go back to the original activity and want to chat with someone else the listview in the chat activity has the same messages a Jan 13 12:13:57 s if i were talking to the first person Jan 13 12:14:28 when i do adapter.clear() in my onPause() and onDestroy() of my chat activity it does clear it but then no more rows can be made (ie. i cant send any messages) Jan 13 12:15:40 hey buys, whats the best way to transfer files Jan 13 12:16:33 guys*] Jan 13 12:17:07 DragonPunch, via sms Jan 13 12:20:22 DragonPunch, put the cabinets on handtrucks and wheel them around. Jan 13 12:24:58 you could also do smoke signals. bit for bit.. Jan 13 12:27:50 Hey guys, recently switched to Android Studio, and having a bit of an issue with it hiding files & folders from view Jan 13 12:28:04 Anyone have an idea how to show everything available? Jan 13 12:28:14 *specifically* in build/intermediates Jan 13 12:28:33 when I open that folder in Finder, there's 10-15 subfolders Jan 13 12:28:38 in Android Studio, only 2 Jan 13 12:28:46 exploded-aar and tmp Jan 13 12:29:28 In IntelliJ proper, there's a "Show hidden folders" option Jan 13 12:29:35 but I can't see that anywhere in Android Studio Jan 13 12:42:39 Anyone? Jan 13 12:43:48 seaders_, what do you need to view? Jan 13 12:44:31 The merged manifest, specifically Jan 13 12:44:45 But generally, I'd like to be able to control those filters Jan 13 12:44:53 like I used be able to do in Eclipse Jan 13 12:45:05 and like you're able to do in full IntelliJ Jan 13 12:45:20 I've a project, with a main app, and sub library projects Jan 13 12:45:28 with merge manifests enabled Jan 13 12:45:52 Never used any of that Jan 13 12:45:53 I see the merge result text file, but I'd like to be able to view the *exact* outputted manifest file Jan 13 12:46:25 If you even include Google+ / GooglePlay libraries Jan 13 12:46:39 if you've manifest merge enabled in Gradle Jan 13 12:46:50 it'll take bits and pieces from those library projects Jan 13 12:47:07 I'd like to be able to view the end result AndroidManifest Jan 13 12:47:13 the one that's used in the apk build Jan 13 12:47:28 maybe its in app/build directory ? Jan 13 12:47:42 it resides in either build/intermediates/manifests/debug or build/intermediates/manifests/release Jan 13 12:48:05 but those folders are, for whatever reason, hidden in Android Studio, without any way that I can currently see, to unhide Jan 13 12:48:18 seaders_, Jan 13 12:48:23 in 1: Project Jan 13 12:48:29 in 1: Project (window/tab) Jan 13 12:48:36 click on teh top Jan 13 12:48:39 theres a little Menu Jan 13 12:48:50 that shows Project - Packages or Android Jan 13 12:48:53 set it to Project Jan 13 12:48:57 done Jan 13 12:49:01 and the app/build directory will appear Jan 13 12:49:03 :) Jan 13 12:49:10 go into intermediates Jan 13 12:49:17 only 2 subfolders Jan 13 12:49:29 exploded-arr and tmp Jan 13 12:49:32 right-click on that folder, Reveal in Finder / Explorer Jan 13 12:49:36 loadsa folders Jan 13 12:49:57 yeah? Jan 13 12:50:02 yes Jan 13 12:50:09 so some filter is happening Jan 13 12:50:19 preventing me from seeing what I should be able to Jan 13 12:50:23 maybe android studio hides those because you should mess with it Jan 13 12:50:27 http://stackoverflow.com/questions/26839898/idea-14-hide-excluded-folders-from-tree/26839923#26839923 Jan 13 12:50:27 shoudlnt Jan 13 12:50:44 crappy, crappy thing to do with a development IDE Jan 13 12:50:57 Probably YOURE doing something wrong Jan 13 12:51:07 what? Jan 13 12:51:12 because if someone at google or something ever need to do that that youre doing Jan 13 12:51:16 that would not be hidden Jan 13 12:51:25 so... what you need - there must be another way Jan 13 12:51:35 I SHOULDN"T be able to view the AndroidManifest that's generated for the packaged APK? Jan 13 12:51:37 seriously Jan 13 12:51:38 ? Jan 13 12:52:09 sup Jan 13 12:52:33 I dont even see anything on google of people asking for that... Jan 13 12:52:46 again, not my concern Jan 13 12:53:02 have you seen if theres any gradle option for that? Jan 13 12:53:10 I, as an Android developer, want to see the final AndroiManifest that is packaged with the APK Jan 13 12:53:21 seaders_, extract it Jan 13 12:53:29 why should I need to do that? Jan 13 12:53:32 it's in a folder Jan 13 12:53:44 but that folder is just completely hidden Jan 13 12:53:52 seaders_, ... dont know what youre doing Jan 13 12:53:52 with seemingly no way to unhide Jan 13 12:53:53 but... Jan 13 12:53:57 why should you need that is the question :p Jan 13 12:53:59 My AndroidManifest.xml Jan 13 12:54:08 is the same one as the Generated one Jan 13 12:54:14 on intermediates Jan 13 12:54:24 how can i make sure my sqlite database is successfully created? Jan 13 12:54:27 gradle creates the AndroidManifest Jan 13 12:54:32 But, set up a multi-project setup Jan 13 12:54:37 with Manifest merging enabled Jan 13 12:54:44 and then have 5 sub-projects Jan 13 12:54:48 levo: if you get back a SqliteDatabase object, it's fine Jan 13 12:55:13 wanting to see the final AndroidManifest, when investigating issues absolutely is important Jan 13 12:55:23 no it's not Jan 13 12:55:28 in Eclipse, I was able to just hop into bin/ Jan 13 12:55:32 what might be the difference between them?! Jan 13 12:55:34 why on Earth not? Jan 13 12:55:36 None Jan 13 12:55:45 They wont change... if you have the originals Jan 13 12:55:46 seaders_: go into the file system /root/bin Jan 13 12:55:48 they just get merged Jan 13 12:55:53 ok, let me pastebin my problems Jan 13 12:55:57 *my manifests Jan 13 12:56:03 im using multiple module project and never needed to lol. And if you need, extract it.. no idea where your problem is... Jan 13 12:56:23 He just wants to look at it Jan 13 12:56:27 and it is on the file system Jan 13 12:56:27 seaders_: manifest issues should prevent the app from functioning Jan 13 12:56:44 cant see what the problem is - i think its a NOT-PROBLEM Jan 13 12:56:59 thepoosh: my app has two parts, one creating a database and the other part showing its table's content on a ViewList widget. the latter takes place right after onCreate(), the app complains of "my_table" not existing. Jan 13 12:57:15 the whole thing is, I want to be able to view all the files, including built ones Jan 13 12:57:36 I think I should be able to have that choice in my IDE Jan 13 12:57:43 You dont need to see generated files Jan 13 12:57:43 levo: you can navigate via adb to the application and see the db Jan 13 12:57:45 and pull it Jan 13 12:57:53 I should have that choice Jan 13 12:57:56 whats the most appropriate way of handling file transfers android Jan 13 12:57:57 hm i can do that in my ide. Jan 13 12:57:59 seaders_: why the hell should you need that?! Jan 13 12:58:04 damn, I'm able to even in something like that with XCode Jan 13 12:58:05 Because he wants Jan 13 12:58:10 no reason Jan 13 12:58:17 DragonPunch, nobody can answer that Jan 13 12:58:17 thepoosh: i tried to do "adb shell ; sqlite3 ... " but it said sqlite3 not found Jan 13 12:58:19 well in this *specific* reason Jan 13 12:58:21 i wanted that android studio did coffee for me Jan 13 12:58:24 but it doesnt :) Jan 13 12:58:31 danijoo: why Jan 13 12:58:36 http://pastebin.com/Ar39LJAt is my root / main AndroidManifest.xml Jan 13 12:58:47 levo: adb pull /data/data/my.package.name/databases/DB_NAME Jan 13 12:58:51 then check it out Jan 13 12:59:15 http://pastebin.com/wQWEcJ7z Jan 13 12:59:19 is the merged one Jan 13 12:59:19 thepoosh: oh thanks, i didn't know that. i saw adb shell; sqlite3 dbname on one android's book from 2011 Jan 13 12:59:29 very, very, very different Jan 13 12:59:29 Hi, is it possible to set up an emulator without having the virtualization on the processor? Jan 13 12:59:48 I want to be able to open that sort of thing up, in my IDE and fully understand exactly what's going on Jan 13 12:59:51 and what changes occur Jan 13 12:59:56 he just merges the activitys Jan 13 13:00:00 nothing else Jan 13 13:00:03 *I* want to see that Jan 13 13:00:08 danijoo: like image uploading? there isn't a standard way to do that? Jan 13 13:00:17 Open an explorer and SEE IT Jan 13 13:00:34 *I* want the ability to properly compare it to sub-project a, and the main project Jan 13 13:00:39 but in general Jan 13 13:00:42 Well you cant Jan 13 13:00:52 I want the option to not have anything hidden from my view Jan 13 13:00:57 that's Apple style thinking Jan 13 13:01:01 DragonPunch, no but there is no standart for file transfers. You dont say what data. you didnt even say how you want to transfer. could be bluetooth, usb, internet, whatever. So how should one give you an answer to that Jan 13 13:01:15 can't understand this mentality Jan 13 13:01:21 seaders_, you can use gradle Jan 13 13:01:23 without android studio Jan 13 13:01:29 problem fixed :) Jan 13 13:01:33 get a btter IDE Jan 13 13:01:36 this one is free Jan 13 13:01:37 danijoo: True. I am doing web-related stuff. I would say internet. Jan 13 13:01:42 I konw, but Android Studio is the official IDE recommended by Android Jan 13 13:01:48 And works for everybody Jan 13 13:01:50 and supported by Android Jan 13 13:01:51 but you Jan 13 13:02:03 If you search google, no one wants what you want Jan 13 13:02:07 because it doesnt make any sense Jan 13 13:02:11 its just merging two files Jan 13 13:02:15 you have file 1 and file 2 Jan 13 13:02:24 he just merges them... nothing is changed Jan 13 13:02:32 so when you merge files, you never want to see the result? Jan 13 13:02:39 You dont need Jan 13 13:02:42 DragonPunch, text, images, audio files, nuclear weapon launch codes? Jan 13 13:02:43 the file is used for the BUILT Jan 13 13:02:45 the file is used for the BUILD Jan 13 13:02:51 its not used for anything else Jan 13 13:03:01 if you need to edit, you change manifest1 or manifest2 Jan 13 13:03:09 * thepoosh is washing his hands off this stupid argument Jan 13 13:03:10 you've obviously never implemented 5 different billing implementations for Chinese Mobile markets Jan 13 13:03:19 danijoo: danijoo: well. images first. Jan 13 13:03:22 LOL Jan 13 13:03:40 thepoosh: my data directory is empty :| Jan 13 13:03:43 there've been so many times where I've had to resolve problems, with some things to do with the manifest file, and more Jan 13 13:03:50 are you sure it's not permission issues? Jan 13 13:03:53 levo: ^ Jan 13 13:04:01 that I always like to know *exactly* everything that my app is built with Jan 13 13:04:03 thepoosh:‌ actually i don't know Jan 13 13:04:14 try adb shell -> run-as my.package.name Jan 13 13:04:14 absolutely including the main manifest file\ Jan 13 13:04:48 fALSO: just use a different build system (ant, mvn, jenkins, etc.) Jan 13 13:04:56 im not complaning Jan 13 13:05:01 it was seaders_ Jan 13 13:05:06 oh Jan 13 13:05:06 I like gradle :) Jan 13 13:05:07 sorry Jan 13 13:05:10 DragonPunch, make a bitearray out of the bitmap and send it over http would be the easiest Jan 13 13:05:10 :D Jan 13 13:06:00 danijoo: um.. cant i just 'read' the file into memory and send it over http. Jan 13 13:06:07 do a fread on it or something Jan 13 13:06:56 thats what I said.. Jan 13 13:07:26 thepoosh: you're right, now i can see it. Jan 13 13:07:31 YAY Jan 13 13:07:41 thepoosh: how can i pull it then via adb? Jan 13 13:07:45 now chmod it to allow read permissions as guest Jan 13 13:07:53 and btw its the first result for a google search "android send image to server" Jan 13 13:07:56 or copy it to /sdcard Jan 13 13:08:00 and then pull it Jan 13 13:16:36 levo: ? Jan 13 13:17:03 thepoosh: i copied it to my hard drive, the database was created but no table Jan 13 13:18:17 i think something's wrong with my mySQLOpenHelper class Jan 13 13:18:26 sux Jan 13 13:18:27 thepoosh ^ Jan 13 13:19:22 thepoosh: does it mean anything to you? E/cutils﹕ to chown(/mnt/shell/emulated/0, 0, 0) Jan 13 13:19:27 danijoo: in the 2nd example on the post you told me to look at, why is the person Base64Encoding the data? Why doesn't he just send it. Jan 13 13:19:39 nope Jan 13 13:20:15 hraaa. working with other people's libs is so aggrevating. I vote for banning the private and final keywords altogether Jan 13 13:22:14 DragonPunch, what example? We might get different results on google because of localization Jan 13 13:22:27 danijoo: http://stackoverflow.com/questions/20322528/uploading-images-to-server-android Jan 13 13:23:29 DragonPunch, because Base65 is less characters compared to 000100101110101101011001101001 Jan 13 13:23:45 Base64* Jan 13 13:24:52 danijoo: yeah so thats what im saying, dont turn it into byte array and just read whatever is inside file Jan 13 13:24:54 and send it Jan 13 13:25:02 if you turn into byte array you have more data Jan 13 13:25:10 DragonPunch, yes, but whats inside an image? :) Jan 13 13:25:18 bunch of garbage text Jan 13 13:25:34 an image does not contain of characters, it contains of bytes. and to make characters of those bytes, you use Base64 Jan 13 13:25:43 but cant you send that garbage text raw and still get the image to the server? Jan 13 13:25:50 the garbage text is just your texteditor not knowing what to do out of the image.. Jan 13 13:25:53 O.o Jan 13 13:26:05 guys, you seem to be overthinking something. Jan 13 13:26:05 and trying to hex dencode it or whatever Jan 13 13:26:16 im trying to avoid base64 here because it increases file size Jan 13 13:26:22 by ike 255 Jan 13 13:26:23 25% Jan 13 13:26:35 DragonPunch, I just came... are you trying to upload a file to server? Jan 13 13:26:39 yeah Jan 13 13:26:52 DragonPunch, HTTP? Which HTTP method? Jan 13 13:26:57 http Jan 13 13:27:04 POST/PUT? Jan 13 13:27:05 post i guess Jan 13 13:27:09 post Jan 13 13:27:29 i want to be able to read Jan 13 13:27:33 fread the img Jan 13 13:27:40 than send the fread data straight over t omy server Jan 13 13:27:42 to my* Jan 13 13:27:44 would that work Jan 13 13:27:52 if so, drawback Jan 13 13:28:53 just send the bytestream.. Jan 13 13:29:47 see http://stackoverflow.com/questions/19762581/how-to-take-a-photo-and-send-to-http-post-request-with-android Jan 13 13:29:51 DragonPunch, use HttpUrlConnection Jan 13 13:30:16 DragonPunch, see "posting content": http://developer.android.com/reference/java/net/HttpURLConnection.html Jan 13 13:30:43 DragonPunch, basically you create FileInputStream and use a loop to copy from FileInputStream to OutputStream on the connection (use this loop: http://stackoverflow.com/questions/43157/easy-way-to-write-contents-of-a-java-inputstream-to-an-outputstream ) Jan 13 13:30:54 it's like 40 lines of code Jan 13 13:31:39 anyone know the correct permissions for systemui.apk. is it 0666? Jan 13 13:32:37 bynarie, 0777 should resolve all permission problems :p Jan 13 13:33:04 i tried chmod -r 0000 / once Jan 13 13:33:10 im not sure thats the most "secure" way, but it might have to do Jan 13 13:33:15 Hi Jan 13 13:33:25 bynarie, its definitly the least securest way :D Jan 13 13:33:31 lol Jan 13 13:33:33 * Fraz tears hair out Jan 13 13:33:42 yea Jan 13 13:34:03 if you tell me where that file is located, i can tell you the stock permissions Jan 13 13:34:16 system Jan 13 13:34:38 system/app Jan 13 13:35:16 a 6 is r/w correct? Jan 13 13:35:34 lots of folders there, but no systemui.apk Jan 13 13:35:56 try system/priv-app Jan 13 13:37:02 there you go: http://prntscr.com/5ry91c Jan 13 13:38:08 Hello. I'm looking for a way to force output through 3.5mm jack even if there is no headphones detected there. Is it possible? Jan 13 13:38:39 default perm is 644 Jan 13 13:38:45 yep Jan 13 13:38:46 well 0644 Jan 13 13:38:56 thnks Jan 13 13:38:58 yw Jan 13 13:39:25 creitve, how should it send output through something thats not there? Jan 13 13:40:01 no headphones connected -> no electric circuit Jan 13 13:40:31 lol Jan 13 13:40:33 that really doesnt make any sense Jan 13 13:40:35 -> no electrons can move between + and - Jan 13 13:40:39 danijoo: There is a custom device in the jack that will get the signal, but will not be detected as headphones Jan 13 13:41:18 like a square card reader or somethin? Jan 13 13:41:34 Not a reader, but that idea exactly. Jan 13 13:41:48 gotcha Jan 13 13:42:23 I dont think there is something like "headphone detection". it will detect anything with a closed circuit Jan 13 13:42:49 thats how people build those do-it-yourself infrared devices with just a 3,5mm jack and infrared lamps Jan 13 13:43:53 thepoosh: suppose i rerun the application, can the new installed one use the previous one's database? could it be the reason why it can't access tables? Jan 13 13:44:07 it will Jan 13 13:44:20 if you upgrade the app, all the data stays Jan 13 13:44:25 levo, it always uses the old one unless you increment database version Jan 13 13:44:30 and delete it manually there Jan 13 13:44:31 ^^^ Jan 13 13:44:37 * thepoosh agrees Jan 13 13:45:26 you can clear app data in settings to remove the created datbaase without deleting the app (theres an AS/IDEA plugin for that :p ) Jan 13 13:46:00 danijoo: It makes sense to me, but I was tasked with finding out if there is a way to force OS to make output even if there is no closed-cirquit device in the jack. Jan 13 13:47:08 creitve, i dont think so. because if there is no closed circuit, no electrons can "move" (thats the nerd view from a chemist) Jan 13 13:47:20 you can also save the db in a different folder to prevent it from going away when clearing data Jan 13 13:47:35 Well, physically so, but not programmatically. Jan 13 13:48:06 thepoosh: after uninstalling the app and deleting the app's data , now it works. it was correct from the beginning lol Jan 13 13:48:13 creitve, if its not working physically, how should it work promatically? Jan 13 13:48:24 all the programm does is trigger physical reactions Jan 13 13:48:47 levo: uninstalling an app should delete its data if it has placed its files in the correct locations =) Jan 13 13:49:14 maybe you could write a mock arround like "if connected, do stuff, else: do nothing but pretend to do it" Jan 13 13:49:48 appel1: well i hadn't uninstalled it either, i just ran the code over the old one (i use my own device for testing purposes) Jan 13 13:50:21 levo: ok Jan 13 13:50:22 maybe i should change the adb ... parameters for installing over the last version? Jan 13 13:50:43 i don't know Jan 13 13:51:08 levo, if you want to force a clean reinstall, remove the -r parameter Jan 13 13:51:15 -r means: keep old data Jan 13 13:51:46 levo: just don't forget to test the upgrade scenario between releases :) Jan 13 13:51:47 thanks Jan 13 13:52:06 in android studio, is it possible to move methods in a file using the structure view? Jan 13 13:52:26 danijoo: Thanks, I think I'll need to understand my problem better on the first place. Jan 13 13:55:37 bitkiller, you have to user ctrl+shift+up with cursor in method definition line Jan 13 14:09:04 http://forum.xda-developers.com/android/help/to-access-android-devices-pc-t3000779 <<<<< Any ideas? Jan 13 14:09:31 sorry to keep asking, i'm just hoping to catch someone in here that might know whats going on Jan 13 14:09:52 i would say bad USB port Jan 13 14:09:55 connect to another Jan 13 14:10:01 its the same with them all Jan 13 14:10:14 WEll it could be OS problem Jan 13 14:10:35 You could have some "drivers" borked or somthing Jan 13 14:10:53 in what way? i have 2 pcs with win 8.1 both installed from the same disk. one works, the other doesnt Jan 13 14:11:12 the usb ports work with other devices ? Jan 13 14:11:15 other than androids Jan 13 14:11:18 if you mean the device drivers, im sure i have the correct ones. same ones on both pc Jan 13 14:11:29 yeh, not had any problems with any other devices Jan 13 14:11:45 Dont know what to say, but it isnt an android problem Jan 13 14:11:52 is something with that computer/os/usb port Jan 13 14:12:15 lol.. ur out of luck my friend.. Jan 13 14:12:19 yeh thats pretty much my conclusion Jan 13 14:13:43 i wouldn't laugh bynarie, im about ready to snap:P Jan 13 14:13:50 i know Jan 13 14:13:55 its crazy Jan 13 14:14:40 i just wanna debug my hello world app!!!!!!! Jan 13 14:14:55 then actually start work on something Jan 13 14:16:11 oh fALSO, it isnt an os problem Jan 13 14:16:19 since its the same in linux Jan 13 14:16:23 on this machine Jan 13 14:17:21 Question about .apply() and .commit() in android.content.SharedPreferences.Editor -- It says in the docs to use .apply() when you don't care about the return value (which I don't) but it also has some bits I'm shaky about when it comes to blocking. When could that even happen? Jan 13 14:17:55 does anyone use Haxe to develop? I'm having an issue porting to android. it installs, but the screen is black, then kicks back to home screen after a few moments. Jan 13 14:18:17 As long as I queue up the changes to sharedpref and .apply() when I leave the activity (in my case a fragment), the changes will happen in the background and there's little chance a user could re-open the fragment and make a change and .apply() in time to interrupt, right? Jan 13 14:19:13 Hello Jan 13 14:19:21 hey Jan 13 14:19:33 Where can I find the config files for external input devices? Jan 13 14:19:48 Any ideas? Jan 13 14:21:04 I'd love to be helpful, but I'm rather clueless Jan 13 14:21:29 boredDev, ok, np Jan 13 14:21:32 :) Jan 13 14:21:51 https://source.android.com/devices/input/input-device-configuration-files.html Jan 13 14:21:55 Looks like a lead, cristian_c. Jan 13 14:22:01 I'm trying to get setup and running with haxeflixel and it's going terrible. Jan 13 14:23:10 ch1k, I've looked for them in /data/system, but I don't see the 'devices' directory Jan 13 14:24:38 If you have the others, say in /system/usr/idc/, then it defaults there. I think the locations given are just the order the OS looks for them in. Jan 13 14:25:01 is there a way to map a soft key to a command? Jan 13 14:25:27 ch1k, ok, /system/usr/idc is populated Jan 13 14:25:31 :) Jan 13 14:26:30 There ya go. That's about the extent of my knowledge there, the all is up to you and friendly old Google Jan 13 14:27:04 https://source.android.com/devices/input/input-device-configuration-files.html Jan 13 14:27:43 ^that what ur lookin for? Jan 13 14:27:47 Is there an intellij plugin for publishing updates to the play store? Something I can click and it automagically uploads the app to my account .. Jan 13 14:28:12 u dont use android studio? Jan 13 14:28:50 nope Jan 13 14:29:04 i did use intellij but then i changed over Jan 13 14:29:15 dont see a reason to do so Jan 13 14:29:15 its basically the same thing Jan 13 14:29:39 i know. i tried it :) Jan 13 14:29:51 thats the reason why i dont see a need to switch for me ;) Jan 13 14:30:02 android studio = intellij + tweaks maybe Jan 13 14:30:06 yep Jan 13 14:30:22 id say android studio = intellij - features :p Jan 13 14:30:29 but lets not begin another war on that :p Jan 13 14:30:58 i have a listview. i have to call clear() on the list and then add new elements. the rows are removed but when i add new elements they do not show up. (ps. yes i am calling notifyDatasetChanged()) Jan 13 14:31:02 AS now has that deploy thing or what? Jan 13 14:31:41 so u think intellij is better danijoo ? Jan 13 14:32:49 MartialLaw, are you using arrayadapter? Jan 13 14:32:51 bynarie, i didnt look into AS for the last few month. But I dont think ist "better". Its just a matter of taste. And I like my intellij and dont see a need to switch Jan 13 14:33:12 since i can do a lot of things with it. And I'd miss the intellij professional edition features Jan 13 14:33:17 Mavrik: yep Jan 13 14:33:41 danijoo, i wasnt trying to argue i was just asking cause im interested for my own beneifit =] so just gettin ur opinion Jan 13 14:34:18 u got the pro version? Jan 13 14:34:35 for example with IDEA professional I have an sqlite manager. I can directly open sqlite files on my hdd and even the ones on my device with it and see whats going on there Jan 13 14:34:44 not sure if AS has that. It hasnt last time I used it Jan 13 14:34:54 MartialLaw, are you refilling it't internal arraylist? Jan 13 14:34:58 bynarie, Im a student. Intellij gives me everything in PRO for free :p Jan 13 14:35:14 nice! Jan 13 14:35:23 im a student too how u get it for free? Jan 13 14:35:42 bynarie, https://www.jetbrains.com/student/ Jan 13 14:35:52 Mavrik: what do you mean? I am calling the .add() function and then notifyDatasetChanged like you would normally do. but for some reason after deleting rows it refuses to show newly added one Jan 13 14:35:54 ones Jan 13 14:36:30 dam thanks danijoo i didnt know about that Jan 13 14:36:39 you are welcome: ) Jan 13 14:36:48 MartialLaw, do you use ArrayAdapter or a custom base adapter? Jan 13 14:36:48 ::signing up now::: Jan 13 14:37:04 Mavrik: even if i close out the activity and return... that's also a weird thing.. after leaving the activity it saves the state of the listview..dont want that either Jan 13 14:37:21 *sigh* Jan 13 14:37:24 Mavrik: it is an ArrayAdapter Jan 13 14:37:32 i mean danijoo Jan 13 14:37:39 I strongly suggest you extend BaseAdapter so you'll have full control over your data Jan 13 14:37:57 hmm Jan 13 14:37:58 you're probably confusing the arrayadapter or not adding stuff to it's own arraylist properly Jan 13 14:38:41 well no no, i can add stuff fine.. just fine. if I remove or clear the list and THEN add something..nothing happens Jan 13 14:38:56 and trust me i am not calling clear() after adding Jan 13 14:39:31 hm.. if you dont do something incredibly wrong, it shoud work with arrayadapter. Jan 13 14:39:32 danijoo, got it!!! Jan 13 14:39:34 show some code Jan 13 14:39:39 bynarie, congrats :) Jan 13 14:39:51 dam you get access to all products.. sweet Jan 13 14:39:57 yeah its insane Jan 13 14:40:06 I have RecyclerView with cards, that vary in height (using wrap_content). I've set setHasFixesSize(false). After a lot of scrolling around and adding/removing items, I get cards that are the wrong height. Any ideas? Jan 13 14:40:44 Chainfire: that's Android. welcome to funky town...or android development whatever you prefer Jan 13 14:40:52 wait, how do i get the pro features.. it only shows the community edition or the 30 day trial Jan 13 14:41:47 hmm i can see it going through the add() function but it doesn't actually show up as a new row Jan 13 14:41:51 so f-ing weird Jan 13 14:41:52 bynarie, if I remember right, you just download the pro version from the site Jan 13 14:42:07 bynarie, it's called Ultimate. Jan 13 14:42:10 and in that, you click register and enter your jetbrains credentials Jan 13 14:42:21 Chainfire, hrrm... maybe the card isn't invalidated properly when in recycles? Jan 13 14:42:24 yes i know its ultimate Jan 13 14:42:29 ok ill figure it out Jan 13 14:43:09 is that the legit chainfire? Jan 13 14:44:36 Mavrik: I figured it out.. it was me who was parsing it wrong Jan 13 14:45:44 Mavrik in ideas on how to do that then? I've tried manual requestLayout calls in onBindViewHolder... display content in this example is just a textview (wrap_content) I change the text to. The text displays fine, the bottom lines are just cut-off because the card uses the size another card had Jan 13 14:45:50 *any Jan 13 14:45:55 bynarie yes Jan 13 14:46:13 he's a fraud! Jan 13 14:46:27 sorry i know... i just honestly assumed you were a programming god, which you are Jan 13 14:46:34 =] Jan 13 14:47:02 oh dear, you've all seen through my deception Jan 13 14:47:07 ugh Jan 13 14:47:22 danijoo, wow theres a lot of features packed into the ultimate version Jan 13 14:48:10 Chainfire, hmm, no idea out of hand... try plugging in Hiearchy Viewer and seeing which view isn't measured properly? Jan 13 14:51:36 bynarie, yeah but also a lot of useless ones (at least for android) :p Jan 13 14:51:50 but I really love that sql feature Jan 13 14:51:53 true Jan 13 14:55:38 hraa Jan 13 14:55:48 where the hell is Hierarchy Viewer in Android Studio Jan 13 14:57:27 Chainfire, it's a utility for examing layouts Jan 13 14:57:35 *examining Jan 13 14:57:41 I know what it is Jan 13 14:57:51 but I recently switched to Android Studio, I can't find it Jan 13 14:58:00 Chainfire, use monitor Jan 13 14:58:11 Oh, u said where, not what. Sorry Jan 13 14:58:28 Chainfire, hier.. is deprecate Jan 13 14:58:30 d Jan 13 14:58:39 its now android device monitor Jan 13 14:59:02 Chainfire, what bynarie said Jan 13 14:59:31 so, tools->android->android device monitor, and then I get a ddms window with just logcat in it Jan 13 14:59:50 Chainfire, dunno 'bout that. I used shell->monitor Jan 13 14:59:59 with tools in PATH of course Jan 13 15:00:00 adm-window-perspective Jan 13 15:00:06 then heirarchy viewer Jan 13 15:01:08 Chainfire, in the android device monitor click window-open perspective Jan 13 15:01:08 its right there Jan 13 15:02:00 restarting android studio made adm actually work... Jan 13 15:02:09 Chainfire, did you find it? Jan 13 15:02:18 still I must be completely daft, my ddms window inside Android Studio has no window/open-perspective Jan 13 15:02:32 hm Jan 13 15:03:03 Chainfire, neither does mine Jan 13 15:03:19 u have no menu options like file, edit, window, help? Jan 13 15:03:44 thats odd Jan 13 15:05:31 pft enough of this bs, I'll run monitor manually Jan 13 15:06:55 I have little patience with IDEs too. To a fault. Jan 13 15:10:47 Hi! Jan 13 15:12:24 Can someone help me to tune de new cardView widget for pre loliliop? Jan 13 15:12:27 i am a bit lost Jan 13 15:16:40 I am trying to define a style.. Jan 13 15:16:49 on v21 is working OK! but on pre 21 it doesnt...... Jan 13 15:16:58 i see all the card with a black rectangle..... Jan 13 15:17:10 I want to add a color when the user press the card Jan 13 15:17:15 how did you set accentColor and primaryColor? Jan 13 15:17:24 with styles? Jan 13 15:17:28 ch1k, I don't see config files for external devices in that directory Jan 13 15:17:30 custom:primaryColor or android:primaryColor Jan 13 15:17:35 on your theme, you have to define them Jan 13 15:17:40 tksko, show the theme Jan 13 15:18:05 for card pressed I had to use android:foregroundDrawable (or android:foreground, couldn't remember) on the card Jan 13 15:18:07 i made a foreground selector Jan 13 15:18:08 for the support library, you must not prepend primaryColor with android: Jan 13 15:18:10 for the cardview.. Jan 13 15:18:14 but i think iam doing it wrong Jan 13 15:18:23 tksko, thats the only way atm unfortunatly Jan 13 15:18:28 (and yes this sucks)( Jan 13 15:18:34 yes but i cant make it to work.. Jan 13 15:18:45 is there any way to "inheriR" the default card colors? Jan 13 15:18:51 bynarie, I don't see devices directory in /data/system Jan 13 15:18:52 and just change the brackground color? Jan 13 15:19:16 nope. if you want to have a pre-lollipop selector, you need to use forgroundDrawable Jan 13 15:19:20 because i have to make the entire shape and redefine border color, etc Jan 13 15:19:24 cristian_c, the .idc files are configs Jan 13 15:19:39 and i am doing it wrong :S Jan 13 15:19:46 I just used android:foreground="?android:attr/selectableItemBackground" Jan 13 15:19:56 ^ this tksko Jan 13 15:20:11 let me se Jan 13 15:20:14 see Jan 13 15:20:22 ch1k, I've seen the .idc files content Jan 13 15:20:26 android 5 ruls! Jan 13 15:20:37 its a pitty we cant use the same effects on pre lollilop versions Jan 13 15:20:41 ch1k, but they are not for external devices Jan 13 15:20:43 i love the animations Jan 13 15:22:31 cristian_c, not sure what to do then, might have to ask someone else Jan 13 15:23:15 tksko, you can. I recently saw a library on gothub that added ripple to pre lollipop views Jan 13 15:23:29 ch1k, http://pastebin.com/u4K1r2kL Jan 13 15:25:06 Input device configuration files are typically not necessary for standard peripherals such as HID keyboards and mice since the default system behavior usually ensures that they will work out of the box. Jan 13 15:25:18 lol, it's an hid keyboard Jan 13 15:25:59 Is it possible to use the lockscreen mechanisms (pattern, pin, facerecognition ...) in my own app to secure some parts of the app? Jan 13 15:26:16 yo! Jan 13 15:26:40 anyone know of any efforts to be able to use something better than androids shitty webview in android < 4.4? Jan 13 15:26:41 danijoo, it works! Jan 13 15:26:52 I got somethign that is only buggy in android webview Jan 13 15:26:59 and cant remote debug it because its not chrome =( Jan 13 15:27:29 danijoo: It turns out they soldered the device to the jack, but they need any other sounds to continue going through the speakers. So they did it w/o triggering jack detection, so that all the sounds don't start going there. Jan 13 15:27:31 danijoo, but i cant change anything if i use the predefined style Jan 13 15:27:40 anynway, its better than before :D Jan 13 15:27:50 ron_frown, isn't there a chromeview project? Jan 13 15:27:58 it'll add 25MB or so to size of your app tho Jan 13 15:28:19 well 4.4 works Jan 13 15:28:24 I've not see a chromeview project Jan 13 15:28:55 tksko, what do you mean? Jan 13 15:28:57 ron_frown, you can always just set minsdk to 19 Jan 13 15:30:10 Mavrik: sorry I wasnt more clear Jan 13 15:30:23 I actually maintain hardware that is effectively stuck on 4.3 Jan 13 15:30:45 hardware is all locked down, so I have webviews to allow for web interaction Jan 13 15:30:48 this android:foreground="?android:attr/selectableItemBackground" Jan 13 15:30:51 but no ability to actually launch a full browser Jan 13 15:32:53 ron_frown, as I said, chromeview then Jan 13 15:32:59 or crosswalk or whatever the project is called now Jan 13 15:33:30 it's basically compiled chrome exposed as a webview drop-in replacement Jan 13 15:35:52 I'll see if I can find a demo of that Jan 13 15:35:58 and see if it exhibits the same issues Jan 13 15:38:04 it is like first hit on google :P Jan 13 15:43:52 in may application i do a often following operations: saving bitmaps on disk, transforming bitmaps, loading bitmaps from disk. Now i use AsyncTasks. May be someone can suggest lightweight alternative? Jan 13 15:44:21 Or it is ok? Jan 13 15:45:00 xgearx, only native threads are more lightweight than async task Jan 13 15:45:05 but they are already pretty lightweight Jan 13 15:45:31 u mean p_thread's? :D Jan 13 15:46:07 I meanv new Thread() { ....}.start() Jan 13 15:46:43 danijoo, AsyncTask uses native threads. Jan 13 15:47:04 Mavrik, i know. I just wanted to point him to a method without async task Jan 13 15:47:09 xgearx, bitmap and I/O operations are so slow that your choice of concurrency isn't going to affect anything much Jan 13 15:47:19 xgearx, chose the one that provides best looking code :) Jan 13 15:47:54 you have a choice of all Java concurrencty primitives (do read Java Concurrency in Practice if you didn't) and Android based AsyncTasks, Handlers all the way to RxJava Jan 13 15:48:26 i understand what you mean, just joking. i heard few times from devs that use PhoneGap about native android apps, and they mean written in java apps :) Jan 13 15:49:50 interesting what they will say about real native apps. pow(native, 2) ? Jan 13 15:50:02 ? Jan 13 15:50:09 I don't follow :P Jan 13 15:50:57 so, as i understand, in my case asynctasks is simplest way Jan 13 15:51:18 xgearx, hard to say without seeing your code. Jan 13 15:51:22 anyone here work with Bluetooth Low Energy? Jan 13 15:51:32 xgearx, java Executors usually create simpler code and API Jan 13 15:51:44 but it's hard to tell without knowing what do you do Jan 13 15:51:57 i know, but i need to update ui :) Jan 13 15:52:27 i can use handler + handlerthread Jan 13 15:52:46 but it is more code and less comfort Jan 13 15:53:06 as I said. :) Jan 13 15:53:13 anyone have a good link that explains what happens when you return to an app that has been killed in the background? Jan 13 15:53:57 bmcdermott, hm, http://developer.android.com/training/basics/activity-lifecycle/recreating.html ? Jan 13 15:59:26 serious question for you android devs : were you already java-acquainted when you started and how did u learn? (books, online tutorials?) Jan 13 15:59:38 i just cant understand the flow of things.. shit makes no sense to me Jan 13 16:00:11 i come from c#, so the syntax i completely understand but the way things are done just dont add up to me Jan 13 16:01:14 can anyone recommend a good book, or say an online walkthrough that will actually help me understand? Jan 13 16:01:40 I was recommended Thinking in Java 4th, don't know if it is a standard. Jan 13 16:01:52 bynarie: Let the java flow through you :) Book - bruce eckel thinking in java Jan 13 16:02:31 ok Jan 13 16:02:48 I wish that the android people would focus more on the emulator Jan 13 16:02:56 its REALLY SUCKY Jan 13 16:03:15 maybe you should try the x86 image Jan 13 16:03:21 Im using it Jan 13 16:03:24 Its stupid slow Jan 13 16:03:30 with the INTEL DRIVERS etc Jan 13 16:03:32 HAXM installed? Jan 13 16:03:34 yes Jan 13 16:03:38 mine is blazing fast Jan 13 16:03:45 it loads up in like 4 seconds Jan 13 16:03:47 HAXM didn't give you any VT-x issues? Jan 13 16:03:51 No uses Jan 13 16:03:53 no issues Jan 13 16:03:58 did you run the actual installer in /extras/intel/ ? Jan 13 16:04:01 just add to install the HAXM driver Jan 13 16:04:03 had Jan 13 16:04:18 fALSO, is it maybe u got a slow computer? or no? Jan 13 16:04:19 i did all this yesterday.. seems to work pretty snappy for me :/ Jan 13 16:04:21 no Jan 13 16:04:23 quad core Jan 13 16:04:25 8gb of ram Jan 13 16:04:30 quad core what Jan 13 16:04:37 e6600 Jan 13 16:04:39 or something like that Jan 13 16:04:43 Pentium Pro Jan 13 16:04:44 what cpu Jan 13 16:04:58 my q6600 quad core was running emulator at like 12fps Jan 13 16:05:06 not awesome, but not too shitty Jan 13 16:05:17 Its über crappy slow Jan 13 16:05:19 its pretty old cpu.. i mean its not terrible Jan 13 16:06:22 are you running 3d stuff or something? Jan 13 16:06:23 its ok for everything, but android emulation :) Jan 13 16:06:25 nop Jan 13 16:06:38 not sure OpenGL accel has been stuck in Jan 13 16:07:09 I have gpu mode enabled... and I have a Nvidia GTX 460 Jan 13 16:07:13 should be enough Jan 13 16:07:36 From my opinion... this x86 emulator is slower than the older one Jan 13 16:07:39 at least for me Jan 13 16:07:42 try disabling gpu mode and going for the snapshot option instead Jan 13 16:07:56 ill try that later Jan 13 16:08:06 Genymotion <3 Jan 13 16:11:15 Chainfire, theres a hierarchy viewer executable in the sdk/tools folder Jan 13 16:22:14 fALSO, yes, if you use snapshots it does load faster Jan 13 16:22:24 im not talking about the load time Jan 13 16:22:32 im talking about it being über sluggish Jan 13 16:22:48 Ill try it later, and report back :) Jan 13 16:22:51 (im at work now) Jan 13 16:22:56 i kno Jan 13 16:22:58 ok let us kno Jan 13 16:39:15 crosswalk looks interesting Jan 13 16:39:27 I wish i could find a very very simple example of setting it up to see if it works Jan 13 16:59:01 Anyone else have issues dragging and dropping a window onto another window with an xml file open while using split windows Jan 13 16:59:07 in Android Studio Jan 13 17:13:44 Sorry i still new to android programming i use crashlytics only prob i have where can i find usr to be beta testers? Jan 13 17:14:56 perlsyntax, you have to convince them :p Jan 13 17:15:08 baiting with cookies worked for me Jan 13 17:15:49 what you mean danijoo? Jan 13 17:16:16 you asked how to find betatesters, didnt you? Jan 13 17:16:23 danijoo,yes Jan 13 17:16:35 crashlytics wont search them for you. Jan 13 17:16:46 i see Jan 13 17:16:49 you need to find them on your own. in real life or forums. Jan 13 17:16:59 (baiting with cookies really helps) Jan 13 17:17:03 that be prob i got to look for some. Jan 13 17:17:28 danijoo,It sucks when you don't know anyone. Jan 13 17:18:09 perlsyntax, there are forums and pages that are dedicated to find beta testers Jan 13 17:18:09 make sence Jan 13 17:18:24 oh i didn't know that. Jan 13 17:18:41 just google :) Jan 13 17:18:46 ok thanks Jan 13 17:23:32 perlsyntax, ill beta test for u Jan 13 17:24:44 what do yall think would be the best way to abstract properties like server URL from the code (for different dev environments). Jan 13 17:25:08 if its something cool, i would beta test too Jan 13 17:25:22 theblang, in an xml maybe Jan 13 17:26:06 danijoo: it would need to be something not committed to the version control Jan 13 17:26:17 theblang, i usually do if(BuildConfig.DEBUG) usedebugxml else userealxml; Jan 13 17:26:33 danijoo ahh Jan 13 17:26:39 you could then just not commit the debug xml file Jan 13 17:26:56 and the java compiler will remove that if case as well if its a production build Jan 13 17:27:04 so its a pretty cool solution in my opinion Jan 13 17:27:29 Have gradle put different url's in BuildConfig depending on build type Jan 13 17:28:12 SimonVT, danijoo there is still the problem of having different dev environments (we are all running our own back-end server) Jan 13 17:28:15 you can even make gradle alter the xml files for different build types. Jan 13 17:28:30 make it a runtime switch that's only available in debug builds Jan 13 17:28:31 then you dont need that if case at all Jan 13 17:28:42 which endpoint you are connecting to should not be correlated to which build type you are using Jan 13 17:28:43 Read the url from e.g. local.properties, put it in BuildConfig Jan 13 17:29:18 Or that Jan 13 17:42:00 hey all - first time android dev here. I want to write to a file on the device and use this function; FileOutputStream fOut = openFileOutput(file,MODE_PRIVATE);. Is there any way to open this file on Windows? (using simulator) Jan 13 17:43:33 hmm Jan 13 17:43:35 bellingcat, use adb Jan 13 17:43:47 pull it of your device Jan 13 17:44:36 JakeWharton: do you base the switch on an environment variable? Jan 13 17:44:51 i have a service, that creates a notification in onCreate(), now in that notification it's supposed to start a floating activity, and it starts it, but the thing is that in the first time i click the notification, it opens the MainActivity and then the floating activity, and then any other clicks works fine, once i restart the service the problem occures again Jan 13 17:44:52 danijoo: is that a typo for AVD, or do you really mean 'adb'? Jan 13 17:45:00 and this is the code of the service Jan 13 17:45:00 http://pastebin.com/e276kJKP Jan 13 17:45:05 i really mean 'adb' Jan 13 17:46:24 theblang: preference Jan 13 17:48:24 danijoo: this the console application right - used through CMD? Any tips on how to transfer the file from the image to a textreader? Jan 13 17:49:05 bellingcat, you do adb pull /path/to/file/on/device . and this copies the file onto your PC Jan 13 17:49:27 danijoo, path to pc not necessary? Jan 13 17:49:44 thats the . Jan 13 17:49:48 o Jan 13 17:49:56 '.'means: currecnt location Jan 13 17:50:02 yeah got it Jan 13 17:50:08 but i thought it's just the end of the sentence Jan 13 17:51:50 danijoo: thank you :) I realise this is a very basic question, but how do you know where the file is ont he device? I assume there is some sort of way to list current files? Jan 13 17:52:30 bellingcat, Jan 13 17:52:35 adb ls /sdcard Jan 13 17:52:49 replace sdcard with ext_sdcard or w/e on your device Jan 13 17:52:53 ^ or adb shell and then browse arround Jan 13 17:52:53 or just use a file manager Jan 13 17:52:58 maybe Jan 13 17:53:06 but for a basic user it's easier :D Jan 13 17:57:38 ok, i can actually browse files on the device under linux on this pc Jan 13 17:57:43 man ive had enough of this Jan 13 17:58:00 Fraz, hm? Jan 13 17:58:46 danijoo: Why don't you still do the gradle BuildConfig solution with git-ignore for your own local build type Jan 13 17:58:46 Overcoder, i cant get usb debugging to work in either linux or windows 8.1 on this pc. And i cant even browse the files on the phone through win 8.1 Jan 13 17:59:45 yiati, what do you mean? Jan 13 17:59:45 .........aaaaaaaaaaaaaand I just spent hours in the wrong room wondering why there were so many user questions... Jan 13 18:00:34 And making people go O_o when I asked : Does anyone know how I can stop the Android tab from popping up every time I run my app? Jan 13 18:00:59 MikeWallaceDev, did you flame them? :D Jan 13 18:01:10 HAHAHA that would have been too funny :D Jan 13 18:01:24 happend to me once :( Jan 13 18:01:40 posted them the stacktrace or gtfo pic.. L/ Jan 13 18:01:43 Actually, I smart person said "That would be a question for #android-dev" and then _I_ went O_o Jan 13 18:02:25 /I/a/ Jan 13 18:07:32 I'm using a RelativeSizeSpan to set the middle of a TextView's text to be 2x the normal size. However, the TextView seems to have a gravity stuck to bottom. Jan 13 18:07:45 That is, the first and third word (the second word is the one that is big) are stuck to the bottom of hte TextView Jan 13 18:07:55 Even though android:gravity is center Jan 13 18:08:23 I tried calling 'invalidate' to see if the TextView would realign itself, but no avail Jan 13 18:08:39 I've never used RelativeSizeSpan, but does it also have a gravity? Jan 13 18:09:18 Well I don't think that'd be useful since the the middle word is 'wrap_content' on height - the first and third word (now smaller than the middle word) are the ones that seem to have gravity bottom Jan 13 18:09:36 That is, the middle word matches the height of the TextView now. The first and third word are attached to the bottom Jan 13 18:09:46 I understand :) Jan 13 18:09:57 probably because the text has top and lower padding that scales with size Jan 13 18:10:00 for accents, etc. Jan 13 18:10:38 So is my only option to have 3 TextViews then? ugh such a hack Jan 13 18:11:50 Well, one hack could be to set the minHeight attribute to 'prepare' for the dynamic SpannableString modification Jan 13 18:11:51 probably not, but you make have to draw the text yourself Jan 13 18:12:09 Given that I know the middle word is getting bigger at runtime Jan 13 18:13:19 Which didn't work.... Jan 13 18:13:32 achuinard, wrap in an alignment span Jan 13 18:13:38 rxjava has a lot of cool stuff in it Jan 13 18:13:51 anyone using rxandroid and/or the retro-lambda stuff on android? Jan 13 18:13:59 achuinard, If I understand this correctly, you gave a Character style to the middle word, did you try also giving styles to the first and last word? Jan 13 18:14:07 nope Jan 13 18:14:14 well, I have retrolambda support in my build setup Jan 13 18:14:16 No, I was relying on the default android:gravity="center" to keep the first and third word in the middle of the TextView Jan 13 18:14:17 but I don't use retrolambda Jan 13 18:15:04 pfn: Trying alignmentSpan now Jan 13 18:15:45 https://github.com/pfn/android-sdk-plugin/blob/master/sbt-test/android-sdk-plugin/simple-retrolambda/src/main/java/com/example/retrolambda/MainActivity.java Jan 13 18:15:46 seems to work Jan 13 18:15:47 heh Jan 13 18:17:19 oh ok Jan 13 18:17:26 how come you have it in your build if you dont use it? Jan 13 18:17:47 kewl pfn did you use AS or eclipse? how did you set it up? Jan 13 18:18:40 I use intellij Jan 13 18:18:50 and I maintain a build system, and it supports myriad configurations Jan 13 18:18:54 retrolambda support is one of them Jan 13 18:22:33 How can I get the text value of the selected item in a spinner. I tried mySpinner.getSelectedItem().getText().toString(), but get a nullpointerexception, because the getSelectedItem returns null. Jan 13 18:23:44 getSelectedItem returns null when nothing is selected Jan 13 18:24:01 do you have getItem() implemented in the Adapter_ Jan 13 18:24:02 ? Jan 13 18:24:13 The default selection is selected, I didn't manually select anything. Jan 13 18:24:44 I'm using ArrayAdapter Jan 13 18:24:46 there is no default selection. Jan 13 18:25:34 I didn't extend the ArrayAdapter so didn't override getItem() Jan 13 18:25:55 Is there another way to change the text size of a word besides the RelativeSizeSpan? Jan 13 18:26:27 absolutesizespan... Jan 13 18:26:35 ah just saw it Jan 13 18:26:37 thanks :P) Jan 13 18:27:38 I am calling getSelectedItem from a different class though, just passing the reference to the class. Is that a problem when doing getSelectedItem()? Jan 13 18:30:35 what kind of "build sytem"? just editing your gradle config? would it work on AS? feel free to pastebin it Jan 13 18:34:57 i'm fairly new to AS/intellij Jan 13 18:35:07 mostly use eclipse but transitioning over slowly to as Jan 13 18:35:44 HERE is the issue that I'm getting when setting hte word 'UPDATED' to be an AbsoluteSizeSpan greater than the normal size Jan 13 18:35:45 http://imgur.com/wzS9vPc Jan 13 18:36:16 I want 'the' and 'app' to centered vertically with 'UPDATED' Jan 13 18:36:23 Not aligned bottom Jan 13 18:36:27 we all understood that achuinard .... Jan 13 18:36:35 MikeWallaceDev: heh ok just wanted to paste SS Jan 13 18:36:45 :) Jan 13 18:36:53 So what was your idea? Sounded complex Jan 13 18:36:59 Did you try putting each word in a span? Jan 13 18:37:11 No, only updated is in a span Jan 13 18:37:17 hehe, no more complex than putting one word in a span :D Jan 13 18:37:32 What kind of Span should I use for 'the' and 'app'? Jan 13 18:37:49 hey, you're the span expert here :D Jan 13 18:38:00 something with vertical alignment Jan 13 18:38:08 I don't know if anyone is a SPAN expert Jan 13 18:38:12 they're complex kind of Jan 13 18:38:34 well, whatever you used to make the middle part bigger... Jan 13 18:38:44 do the same thing on either end Jan 13 18:38:48 no? Jan 13 18:39:00 I tried making the and app smaller Jan 13 18:39:03 and not touching the middle Jan 13 18:39:05 with the same result Jan 13 18:40:21 I've never used spans, show me the code to make the middle part bigger please Jan 13 18:40:45 HevvyMetal, I use sbt exclusively for android development Jan 13 18:41:16 http://pastebin.com/BHRhXQUg Jan 13 18:42:02 achuinard, even if you wrap all 3 into individual alignment spans it doesn't do what you want? Jan 13 18:42:27 So use 4 spans - 1 for the AbsoluteSize and then 3 individual alignment spans for each word? Jan 13 18:42:28 apply the size span first, then alignment on top Jan 13 18:42:37 sounds about right Jan 13 18:42:37 anyone here using mopub? Jan 13 18:44:16 How do I get the hour/minute/second time parts of a joda-time duration/interval? Jan 13 18:44:35 shekibobo, ##java Jan 13 18:44:45 or read the apidoc Jan 13 18:44:53 redirected, thanks Jan 13 18:48:16 pfn sbt? Jan 13 18:48:22 never heard of that? Jan 13 18:48:27 you dont use gradle then? Jan 13 18:48:35 or you use that as part of your gradle? Jan 13 18:48:53 I don't use gradle Jan 13 18:50:06 can someone explain me this piece of information - http://puu.sh/etdFD/4dcb825176.png - if an asynchronous task is executing and broadcastreceiver is destroyed, why would the process be empty since it has a worker thread running? Jan 13 18:51:42 achuinard, give this a shot : textSpan.setSpan(new AbsoluteSizeSpan(100), updatedWordIndex, updatedWordIndex + "UPDATED".length(), SPAN_INCLUSIVE_INCLUSIVE); Jan 13 18:51:42 huh Jan 13 18:51:53 I added the SPAN_INCLUSIVE_INCLUSIVE at the end. Jan 13 18:51:58 Let me try.... Jan 13 18:52:13 That might work, or... they might all go big :D Which would be dumb. Jan 13 18:52:26 shmoon_, how doesn't that make sense it's completely clear Jan 13 18:52:27 ah ok Jan 13 18:52:42 pfn don't your clients want straight AS/gradle builds these days or...? Jan 13 18:52:50 MikeWallaceDev: nope, the side words are still aligned bottom Jan 13 18:52:53 This is crazy! Jan 13 18:52:57 that's cool that you are bucking the dominant trand tho Jan 13 18:53:05 it didn't do anything?? what the hell? Jan 13 18:53:10 HevvyMetal: yeah I'm surprised you can get away with not using gradle these days Jan 13 18:53:32 it's not me omegavesko .... but pfn is a legend he can get away with anything! :) Jan 13 18:53:49 HevvyMetal: yeah, I meant 'you' as in anyone :P Jan 13 18:53:57 pfn: my question is, if the task is running, how is the process empty as the task is running? so why will the runtime kill the process before the task is finished? Jan 13 18:54:34 shmoon_, an app must have a life cycle component running Jan 13 18:54:34 The word 'UPDATED" is big, but the other are still vertically aligned at the bottom Jan 13 18:54:36 shmoon_: an asyncronous task isn't an android component Jan 13 18:54:47 a thread is not a life cycle component, shmoon_ Jan 13 18:54:58 an async task can be running outside of the context of an activity, broadcast receiver, service, etc. Jan 13 18:55:21 omegavesko, because gradle sucks Jan 13 18:55:33 e.g. start service, start a new thread that does some stuff, and stop the service Jan 13 18:55:58 the process will be "empty" because there is no more service (assuming there's no other components), but the thread that the service spawned is still running Jan 13 18:56:06 Is it possible to get the selected item in a spinner outside of the onclicklistener? Jan 13 18:56:11 so if there's no app component with a lifecycle in the process, android runtime kills the app process instantly, is what you guys are suggesting? Jan 13 18:56:13 achuinard, even with align spans? Jan 13 18:56:19 not instantly Jan 13 18:56:24 shmoon_, whenever Jan 13 18:56:27 but it has a much higher chance of getting killed Jan 13 18:56:30 not instant Jan 13 18:56:35 it. can be instant Jan 13 18:56:37 pfn: I don't think the alignment spans are modifying the vertical alignment at all Jan 13 18:56:59 oh ok, that was a new thing to learn. very useful. thanks :) Jan 13 18:58:16 achuinard, did you read this? http://flavienlaurent.com/blog/2014/01/31/spans/ Jan 13 18:58:38 I was looking at it briefly, it didn't seem to mention any cases of aligning TextView lines with Spans Jan 13 18:58:41 Lots of info, I just added it to my Pocket. Spans look cooler than I thought Jan 13 18:59:13 Maybe a TextAppearanceSpan would make more sense? Jan 13 18:59:13 wtf, rxjava wiki docs are dissapearing https://github.com/ReactiveX/RxJava/wiki/Scheduler Jan 13 19:00:35 nice span blog. I'll also suggest: read the source for a few spans. quite a few things are _really_ easy to make yourself. Jan 13 19:01:44 Damn, even using a TextAppearanceSpan, when I change the size of line 2 on my TextView, line 2's smaller text is aligned bottom Jan 13 19:02:06 MikeWallaceDev thats the best span blog i've seen for sure Jan 13 19:02:28 yeah g00s , it's pretty nice... Jan 13 19:02:32 can't wait to read it Jan 13 19:04:54 achuinard, http://stackoverflow.com/questions/15356162/two-different-styles-in-a-single-textview-with-different-gravity-and-hieght Jan 13 19:05:01 that's AN answer... Jan 13 19:05:25 I know this is not #complain but I'm still going to say it Jan 13 19:05:45 how dare they tell me how to do my job on a conference call when they aren't an Android Developer! Dammit! Jan 13 19:05:46 ....jim! Jan 13 19:06:01 :-P Jan 13 19:06:05 haha Jan 13 19:06:10 now, I want to make sure I'm not crazy... there is no way to get Traffic Stats per app and per interface, correct? Jan 13 19:06:12 jim must be ur boss??? Jan 13 19:06:32 bynarie, you are very smart... yes, Jim used to be my boss... he was actually my first boss Jan 13 19:07:09 MikeWallaceDev: Thank you! Jan 13 19:07:13 Quite a hack!!!!! Jan 13 19:07:21 Spannables should be easier to use, but at least it's working now Jan 13 19:07:30 When the OS destroys an Android process (e.g. low memory situation), is the savedInstanceState bundle the only thing that survives? Do retained fragments survive? Jan 13 19:07:52 anybody? Jan 13 19:08:02 SilentByte: yes, and they get revived if they wrote their state into the bundle (usually they do) Jan 13 19:08:51 I know that TrafficStats gives you info per app for ALL interfaces Jan 13 19:08:52 SilentByte: or, it's close enough to "only" that it makes no real difference. Jan 13 19:08:59 it doesn't discriminate between wifi and cell, etc Jan 13 19:09:10 if a task is asynchronous, or a method call is asynchronous, or whenever I come across the term asynchronous, would that mean the operation happens on a separate background/worker thread? Jan 13 19:09:25 safe to assume Jan 13 19:09:26 ? Jan 13 19:09:29 How do I check if a user has removed a notification? Jan 13 19:09:40 shmoon_, very safe to assume Jan 13 19:09:46 shmoon_: yeah Jan 13 19:09:52 I can't think of another way to do it... Jan 13 19:10:01 shmoon_: that's essentially the entire point Jan 13 19:10:12 unless you repost to the main thread, which is kinda dumb. Jan 13 19:10:18 ya :D Jan 13 19:11:24 DammitJim: it does look that way from the API, but I've never tried. and arguably there's always root. Jan 13 19:11:37 no, no rooting of the devices Jan 13 19:11:40 but then that leads to another question Jan 13 19:11:50 straight up whatever is loaded Jan 13 19:12:10 matt_j: you set a 'delete' pending intent. it's called for both user-removed and 'clear all' though. Jan 13 19:12:23 groxx: hmm Jan 13 19:12:29 sendBroadcast() is said to be asynchronous, the call returns immediately and receivers continue to run. but then receivers run on the main thread. Jan 13 19:12:36 so what happens there? Jan 13 19:13:12 otherwise, afaik the only way to "know" what notifications area available is to ask for rather dubious permissions, intended for accessibility / notification mirroring Jan 13 19:13:13 they are running on the same thread, but not at the same time Jan 13 19:13:19 shmoon_, ^^^ Jan 13 19:13:30 shmoon_: they post a message to the thread's handler, it's run "later". Jan 13 19:14:08 good answer groxx :) Jan 13 19:14:12 ah ok got it, since the docs said "you will continue executing while the receivers are run" i was confused, cuz I thought that receivers would get executed simaltaneously Jan 13 19:14:13 groxx: what I want to do is have an "inbox" style notification, but I want the app to know if the user removed the last notification Jan 13 19:14:17 like gmail Jan 13 19:14:26 like swiped to delete it Jan 13 19:14:59 matt_j: afaik the only way is to record everything you show, and everything you/they remove, and keep track yourself Jan 13 19:15:07 it's doable, but a pain. Jan 13 19:15:32 yeah, I need to figure out how the app knows they swipe to remove the notification Jan 13 19:15:44 matt_j: builder.setDeleteIntent Jan 13 19:15:48 yeah Jan 13 19:15:50 thanks. Jan 13 19:16:54 oh, and afaik you don't have any way to know what's happening if they disable notifications for your app. dunno how things behave, but I would _guess_ it just never clears. Jan 13 19:17:04 BTW, beware of problems on 4.2.2 where the device sends multiple repeated broadcast messages when the device connects to a WIFI network Jan 13 19:17:19 ugh. Jan 13 19:17:22 can someone else confirm that there is no way to get network usage per app per interface? Jan 13 19:18:53 shmoon_: fwiw I forget if receivers are main thread only when called within your app, or not. at the very least, they're not main-thread-only when _other_ apps send a broadcast to you (e.g. 'network connected' or 'boot completed' etc) Jan 13 19:19:21 no it is actually Jan 13 19:19:56 the only way a receiver won't be called on the main thread is if you use http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler) Jan 13 19:20:04 and specify a handler for a different thread Jan 13 19:20:15 ah, nevermind, you're right :) Jan 13 19:20:48 JesusFreke: wow didn't know that was possible, interesting. Jan 13 19:21:06 is there anyway to set the selection in a spinner to nothing? Jan 13 19:21:10 so it is blank Jan 13 19:21:10 shmoon_: I actually didn't think so either, but I wanted to check the docs before I said anything in here :) Jan 13 19:21:19 heh ok Jan 13 19:22:04 I could swear I've received broadcasts on other threads without explicitly setting a handler... might be forgetting though. Jan 13 19:26:58 Any of you guys had problems highlighting buttons using colorfilter? Jan 13 19:30:19 Does anyone have any experience building an SDK / 3-rd party library that registers for GCM? Jan 13 19:41:04 in java if you do obj1 == obj2 that tests if the two objects are to the same reference ie point to the same memory space? Jan 13 19:42:53 ChrisUK, yeah. if they are literary the same object, == will be true Jan 13 19:43:38 javarepl is nice Jan 13 19:43:48 You can test java stuff out in an interpreter Jan 13 19:44:30 It's kind of fragile, but it gets the job done for simple stuff Jan 13 19:44:42 like testing obj1 == obj2 Jan 13 19:48:09 shouldnt it be === to test for equality and same type Jan 13 19:48:09 ? Jan 13 19:48:18 heh, that's pretty cool. I usually have a side project called "sandbox" where I test out simple stuff like that. Jan 13 19:48:29 equals tests equality bynarie Jan 13 19:48:36 == only tests reference Jan 13 19:48:47 Isn't === python Jan 13 19:48:54 === is php Jan 13 19:48:57 and php Jan 13 19:49:03 so if(x=10) is a valid statement? Jan 13 19:49:04 I don't think java has it Jan 13 19:49:11 no Jan 13 19:49:15 I don't think python has === Jan 13 19:49:21 === is javascript! Jan 13 19:49:29 if(x==10) is Jan 13 19:49:45 === is for a lot of languages... it tests equality and type Jan 13 19:50:04 Ah I was thinking of Javascript I think Jan 13 19:50:21 its for java, javascript, c# c++ etc... Jan 13 19:50:31 I don't think java has it Jan 13 19:50:38 java not Jan 13 19:50:41 these other languages. they don't exist. java and javascript 4 lyfe. Jan 13 19:50:49 ======= is for Mark Down :P Jan 13 19:50:55 winner! Jan 13 19:50:57 its most often usted in not strongly typed langs Jan 13 19:53:48 so how do you test for equal types in java?? Jan 13 19:54:21 instanceof, or check equality of .getClass() Jan 13 19:54:32 slightly different semantics, of course Jan 13 19:54:36 well, not slightly Jan 13 19:55:00 most often, if you're checking for types, you're doing it wrong. Jan 13 19:55:04 yea Jan 13 19:55:21 you dont need to do that often in java. Jan 13 19:55:32 because variables are strong Jan 13 19:55:35 yes thanks i am aware it was a simple question Jan 13 19:56:27 this is 50% off today http://shop.oreilly.com/product/0636920035053.do?code=DEAL Jan 13 19:57:22 Nice, thanks g00s Jan 13 19:57:30 thats like an alpha release for books lol Jan 13 19:57:36 early release.. Jan 13 19:58:03 why didnt they call it early access beta book Jan 13 20:03:33 http://stackoverflow.com/questions/27913366/android-connectedcheck-task-fails-when-run-with-the-build-task-but-not-when-run Jan 13 20:05:13 damn it, each time google chrome updates itself it creates a person profile Jan 13 20:06:20 (Person 1, Person 1) Jan 13 20:08:52 i probably should switch to Chromium Jan 13 20:09:25 what's the defference between chrome and chromium? I thought they were the same g00s? Jan 13 20:09:51 they are except branding and plugins Jan 13 20:10:03 boy i get tired from talking on the phone all day I'm a programmer not a salesman heh Jan 13 20:10:56 is there a different between checking if a boolean is false, vs checking if an object variable = null? Jan 13 20:11:21 in terms of performance Jan 13 20:11:55 is that a stupid question Jan 13 20:12:07 it's not exactly stupid... Jan 13 20:12:20 There can be a difference, but so minute Jan 13 20:12:59 finally pushed a new version of my app, users won't email me their crash reports anymore, yay Jan 13 20:13:08 if you dont do it 1million times in a loop, you will never see a difference Jan 13 20:13:18 checking if a variable equals null is checking the address for that variable. Checking if a boolean is false means loading the contents of that address then checking that. Jan 13 20:13:46 same difference Jan 13 20:13:48 MikeWallaceDev, ah so it's mostly the same then. so nothing i should be worrying about Jan 13 20:13:57 hell no. Jan 13 20:14:20 Unless you're working on Google's search engine. Then it's just no, instead of hell no. Jan 13 20:14:31 MikeWallaceDev, thanks man. im running code onScrolled on my recyclerview and trying to make sure it is as efficient as it can be Jan 13 20:14:48 haha Jan 13 20:15:01 you have 99 problems, but booleans aren't one of them :D Jan 13 20:16:03 lol Jan 13 20:16:41 gj what app pfn? is it a personal app or one you wrote for somene else? Jan 13 20:16:53 for someone else Jan 13 20:17:06 Is it possible to set a custom color for the contextual action bar for text selection? Jan 13 20:17:06 not if it's an unboxed boolean MikeWallaceDev Jan 13 20:17:07 you get crashs per mail Oo Jan 13 20:17:23 yep, I fucked up and enabled acra in a published build Jan 13 20:17:54 ? why not enable ACRA in a release build? That's where I want it the most. Jan 13 20:17:57 does anyone use crittercism here? I wonder how they do the performance monitoring they claim without having to modify your code a lot to call their services..is that how it works? Jan 13 20:17:57 ah. acra Jan 13 20:18:04 because I use something else for production builds Jan 13 20:18:09 oh. Jan 13 20:18:13 the acra stuff was for internal qa to report stuff Jan 13 20:18:24 I'm a fan of ACRA Jan 13 20:18:25 pfn, crashlytics for production? Jan 13 20:18:25 a release build can send reports automatically but for dev you need to use acra or smoething else MikeWallaceDev Jan 13 20:18:32 danijoo, for this particular app, yeah Jan 13 20:18:56 acra used to be more important for testing but with modern android builds its easy for a user to generate a log dump themselves so it's not as important as it used to be Jan 13 20:18:56 I only wrote in acra for this app so qa could send me logcat pretty easily Jan 13 20:19:06 hola folks - just got a Qualcomm 8084 dev kit - can't seem to get adb to list it... it shows up in lsusb as "05c6:9025 Qualcomm, Inc. Qualcomm HSUSB Device" - I've added udev rules, and dmesg is telling me it's detected as an android device Jan 13 20:19:14 can't seem to get adb to see it Jan 13 20:19:15 HevvyMetal, that's untrue, since ics, it's much more difficult for users to get to logcat Jan 13 20:19:19 any ideas? Jan 13 20:19:33 troy, what distro Jan 13 20:19:42 troy, prbably udev needs to give your user read/write permissions on it Jan 13 20:19:44 pfn on my galaxy S4 I can get to a logcat just by holding down the power button and choosing from a menu... Jan 13 20:19:49 bynarie: opensuse (what we use at work) Jan 13 20:19:51 HevvyMetal, that's a custom rom Jan 13 20:19:51 troy, this is not the correct channel Jan 13 20:19:55 no it isn't pfn Jan 13 20:19:56 but thats ok Jan 13 20:19:58 it's stock rom Jan 13 20:20:03 bynarie: I asked in #android, they said ask here Jan 13 20:20:05 i have not customized my s4 at all Jan 13 20:20:10 i know Jan 13 20:20:12 bynarie: sorry Jan 13 20:20:13 i was there lol Jan 13 20:20:18 bynarie: hahaha Jan 13 20:20:20 nah its ok Jan 13 20:20:33 this channel is app development... meet me in #android-root Jan 13 20:20:34 HevvyMetal, must be some samsung customization, never heard of that Jan 13 20:20:35 grr i need to jump on another call soon but this guy still hasn't called me yet was supposed to be at 12pm wonder when he will call Jan 13 20:20:42 bynarie: roger Jan 13 20:21:18 HevvyMetal, that's atypical of android devices Jan 13 20:22:12 https://www.youtube.com/watch?v=6zvyEeFuXAg Jan 13 20:22:21 that shows it a bit how it works pfn Jan 13 20:23:15 oh, bug reports, that's kinda separate Jan 13 20:23:40 it's a lot of dumps that's pretty irrelevant Jan 13 20:33:04 more Jan 13 20:33:24 less Jan 13 20:33:33 head Jan 13 20:33:36 most Jan 13 20:35:12 huh? Jan 13 20:38:05 HevvyMetal, you lost, it was "tail" Jan 13 20:40:05 hm? what's the problem? Jan 13 20:40:08 :p Jan 13 20:43:37 Mavrik got a second? i have an rxjava design question, not sure whether to use hot or cold observables in this scenario Jan 13 20:44:46 hmm, I think JakeWharton is the better target for that question :) Jan 13 20:44:58 anyway, shoot Jan 13 20:45:35 When the OS decides to destroy a process to reclaim memory, is it always the entire process or is it possible that it might only destroy some things, like fragments? Jan 13 20:45:39 Mavrik ok, cool - thanks. well this is regarding the Android bluetooth LE apis. specifically, this class https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback.html Jan 13 20:45:40 it's a lot of dumps that's pretty irrelevant Jan 13 20:45:47 is hat i said huh to gidnt get that Jan 13 20:46:04 silentbyte entire process Jan 13 20:46:12 GC would reclaim fragments not in use Jan 13 20:46:25 Mavrik if you wanted to use Rx with this, would you just have a BehaviorSubject or something for each callback, and have it just put the result on that - or would you try to use cold observables and match requests with responses ? Jan 13 20:46:51 Thanks. Jan 13 20:47:29 in other words, the cold observable would have a side effect of subscribing to initiate the operation. one of those callbacks would then have to grab the subscriber which inititated the operation, and then call onNext(characteristic | descriptor) on it Jan 13 20:47:44 g00s, ok, more importantly about that whole concept Jan 13 20:47:48 SilentByte: fwiw you can mimic it for testing - make sure you're not "in" the app, then hit the "x" on the left in the DDMS bottom-section of Studio Jan 13 20:47:50 g00s, can you lose events on that bus? Jan 13 20:47:58 mavrik are you using rxjava or rxandroid port? are you using the retro-lambda? I'm wanting to configure that for both AS ane Eclipse if you know anything there it seems like cool stuff Jan 13 20:48:16 HevvyMetal, there's no Android port of RxJava, there only one Jan 13 20:48:30 Mavrik i'm not sure from the BT APIs if I am guaranteed a 'balancing' callback for an operation i started Jan 13 20:48:32 RxAndroid is just some additional utility methods that provide prefabs for android-related stuff Jan 13 20:48:37 (and is a submodule of RxJava) Jan 13 20:48:49 https://github.com/ReactiveX/RxAndroid Jan 13 20:49:08 ok and what about retro-lambda are you using lambdas with your code and if so how and what did you configure in the ide? Jan 13 20:49:23 if there was some unique ID, i could match the request with the response more reliably Jan 13 20:49:25 i haven't tried it yet but want to do that today or tomorrow so curious mavrik :) Jan 13 20:49:32 I'm not using retrolambda because having a tool that rewrites bytecode is too large of a stability risk Jan 13 20:49:39 yeah Jan 13 20:50:06 g00s, yeah, true... honestly as far as I've worked with BT APIs I don't think they're reliable enough to make a request/response pairs Jan 13 20:50:08 mavrik and proguard and dex aren't? :) but yeah I don't understand why it's not bytecode compatible from the get go Jan 13 20:50:20 but I think rxjava without lambdas would bevery clunky code style Jan 13 20:51:09 so you are saying that the stnadard rxjava gradle/maven always includes android right so I just grab that one jar and not a seperate android one for rxjava on android right Mavrik ? Jan 13 20:51:28 HevvyMetal, I always include both, don't know how internal dependencies are set up Jan 13 20:51:43 fwiw I've just included the rxandroid and it works Jan 13 20:51:54 g00s, so I'd make a hot observable probably, since those events can come at all times Jan 13 20:51:58 pulled in rx 1.0rc1 or something Jan 13 20:52:24 even though, I'm worried about you possibly losing the onServicesDiscovered event Jan 13 20:52:30 *grumble* BLE is a mess :/ Jan 13 20:53:02 ah, 1.0.0-rc.9 Jan 13 20:53:13 HevvyMetal, it doesn't give good logs for debugging, that is relevant Jan 13 20:54:32 Mavrik yeah, thanks Jan 13 20:55:54 pfn whats not good in what way? Jan 13 20:56:21 Hello guys Jan 13 20:56:32 ok mavrik since you are using rx and the observable stuff are you using any binding frameworks as well? for listitems or textviews? like bindroid or robodroid or any other binding framework? Jan 13 20:56:53 it seems like that would be a natural fit for rx Jan 13 20:57:08 Is somebody so kind to briefly explain me the main, the simple difference between a fragment and an activity? Jan 13 20:57:19 We mostly use Rx in our library we distribute to others which doesn't have much UI and we don't use those there Jan 13 20:57:22 You'd help me a lot with that. Jan 13 20:57:48 oh ok have you tried out any binding frameworks just on a personal project or anything mavrik? Jan 13 20:57:55 monod, fragment is essentialy an activity that can be put inside another activity Jan 13 20:58:03 do i need to use openGL or is it very benificial to use OpenGL, if my game only has very simple 2d graphics, like similar to dwarf fortress -just basic backgrounds and lots of icons moving around a grid pretty fast Jan 13 20:58:04 monod, and it causes about 15x as much problems and issues for the developer :P Jan 13 20:58:07 i've done it straight by hand to date but ant to start using one of the binding frameworks if they are stable and can work with rx Jan 13 20:58:19 njcomsec, a canvas is more than enough for that Jan 13 20:58:32 hat problems with fragments i particular? i agre fragments are a mess tho Jan 13 20:58:37 ok Jan 13 20:58:37 njcomsec, maybe use SurfaceView for max performance but there's no need for OGL for that - Android will use OGL for canvas operations anyway Jan 13 20:59:06 Mavrik, I don't know why, but my team has decided that we need them. What is the reason for that 15x much of problems? O_O Jan 13 20:59:10 monod: activities form part of your application's lifecycle. fragments are just "reusable" pieces of view + controller code that you can put in activities. Jan 13 20:59:11 so i only need to call openGL directly if i use 3d or dynamic lighting/shaders? Jan 13 20:59:19 Mavrik, and thanks for answering, thanks also groxx Jan 13 20:59:39 monod, mostly issues around lifecycle - they're retained when the activity reconfigures, so they can be detached from UI (which causes bunch of fun crashes if you try to manipulate UI in that time) Jan 13 20:59:51 also it significantly complicates reasoning about what happens when because they have their own lifecycle Jan 13 20:59:56 and they can be buggy as hell Jan 13 21:00:06 haha ok Jan 13 21:00:17 monod: well... personally, there are a lot of inconsistencies in fragments. e.g. if you nest support fragments (a useful thing to do!) then you don't get onActivityResult in the second+ level ones. there have been (and probably still are) bugs with saved state not restoring. Jan 13 21:00:19 Sounds nasty, guys. :) Mavrik groxx Jan 13 21:00:36 yes Jan 13 21:00:37 also Jan 13 21:00:42 do make sure you use the support lib fragments Jan 13 21:00:51 at least those have consistent bugs across Android OS versions ;) Jan 13 21:00:54 I can't really decide if they're just a part of Android that everyone should use and hate and there's no alternative, or if you're just really better building your own abstraction. Jan 13 21:01:02 lol, Mavrik Jan 13 21:01:12 yeah +1 for support everything. predictability lets you actually fix problems. Jan 13 21:01:48 groxx, there are people that built their own abstraction Jan 13 21:01:52 do avoid them if possible Jan 13 21:02:01 avoid those abstractions, or fragments? Jan 13 21:02:06 fragments. Jan 13 21:02:07 or both :) Jan 13 21:02:13 I didn't mention that I'm the newbiest member of my team and they thought fragments where easier than the rest of the work, so they decided to assign them to me. Mavrik groxx Jan 13 21:02:14 but for alot of cases you just have to deal with that vart Jan 13 21:02:25 were* easier Jan 13 21:02:37 monod, you shouldn't go in alone, take this: https://github.com/xxv/android-lifecycle Jan 13 21:02:51 Thank you Mavrik :) Jan 13 21:03:08 monod: they are _extremely_ common in android dev, so there is some benefit in them. but they're definitely one of those things you hate more and more as time goes on. Jan 13 21:04:10 isnt there an easy way to see if it's deatched mavrik? Jan 13 21:04:22 Is that link a repository? Does it contain written examples of fragments? Or is it a tutorial that explains the ins&outs of fragments? If you know what I mean by "ins&outs". Mavrik groxx Jan 13 21:04:24 also it's funny, all the new fancy animation stuff in Lollipop is exclusive to activities Jan 13 21:04:37 Fragments weren't touched and it looks like the team kinda wants to forget about them ;P Jan 13 21:04:45 what do you recommend instead of fragments mavrik? is there a different api? Jan 13 21:04:51 fragments are a mess but most of the android ui is also a mess Jan 13 21:04:58 monod, it's just a link to a handy image of android lifecycle when you have fragments and activities Jan 13 21:05:08 it's the least evolved of many frameworks ive worked with but if there are alternative kits i'd be interested Jan 13 21:05:13 monod, it's by far the best explanation, because that crap is never explained well on one place Jan 13 21:05:24 monod: http://www.vogella.com/tutorials/AndroidFragments/article.html Jan 13 21:05:27 HevvyMetal, there's something that square uses (mortar) that's based on views Jan 13 21:05:31 but I don't really like that approach Jan 13 21:05:33 (why is it http://developers.google.com but http://developer.android.com ?) Jan 13 21:05:39 http://www.vogella.com/tutorials/Android/article.html#components_fragments Jan 13 21:05:39 Mavrik: mortar has nothing to do with views Jan 13 21:05:49 Mavrik: you are thinking of Flow. Jan 13 21:05:54 monod: https://developer.android.com/guide/components/fragments.html Jan 13 21:05:55 I might have misremembered the name :) Jan 13 21:06:07 What I did notice is that we rely heavily on custom viewgroups and views latetly. Jan 13 21:06:10 Mavrik +1 for misremembered :) Jan 13 21:06:23 Which provide way tighter components with way less crap than Fragments :) Jan 13 21:06:25 Mavrik: how's the custom viewgroup stuff working? I've been pondering that Jan 13 21:06:41 Thank you for the links, HevvyMetal groxx. Mavrik: so I only need to learn from that big picture in that link, if I got it correctly. Jan 13 21:06:43 groxx, pretty well, instead of nesting 16 layoutmanager Jan 13 21:06:44 mavrik what does your toolkit/library do? I thought you said it doesnt have much UI? Jan 13 21:06:52 you just say "YOU VIEW! 150 pixels off the bottom!" Jan 13 21:06:54 it seems like arguably something "external" to the views would be cleaner, but obviously internal can work too Jan 13 21:06:55 and it just works :P Jan 13 21:06:58 fast as hell :) Jan 13 21:07:14 Oh guys Jan 13 21:07:17 HevvyMetal, ask me in a month :) Jan 13 21:07:18 what's the url to this flow thing? Jan 13 21:07:24 What popped to my mind you don't know! Jan 13 21:07:30 some potential client was asking me about fragments versus viewgroups Jan 13 21:07:46 Does anyone know if there's an easy way to make a gradle tasks that only runs the large tests Jan 13 21:07:48 Am I wrong or fragments were "invented" to approach tablets?? Jan 13 21:07:48 i hate when people say "which would you use" when they really mean "guess what we're using and if you guess wrong we don't hire you" Jan 13 21:07:53 HevvyMetal: you could offer them the choice between being stabbed in the eye, or the ear Jan 13 21:08:06 it's similar to the question they're asking Jan 13 21:08:18 i pretty much said I would use fragments first but if it could not be done with fragments i'd do custom views groxx Jan 13 21:08:25 right well what do you think about that as an answer? Jan 13 21:08:35 then they ask me "would you review every line of code" Jan 13 21:08:38 same type of question Jan 13 21:08:42 "guess what we do.." Jan 13 21:08:49 pretty sure you can pull it off with either. but anything beyond really trivial non-communicating fragments seems more pain than it's worth. Jan 13 21:08:51 would you always use concrete instead of wood? Jan 13 21:08:59 it depends Jan 13 21:09:08 well a binding framework could help cleanup fragments if it was compatible with it Jan 13 21:09:15 so where is this flow thing? can't seem to find it on google Jan 13 21:09:23 is it a square.io product? Jan 13 21:09:42 don't use it Jan 13 21:09:57 i'm jsut curious about it and see what alternatives are Jan 13 21:10:09 Am I wrong or fragments were "invented" to approach tablets? Mavrik groxx HevvyMetal Jan 13 21:10:12 is this the right channel to ask questions related to building aosp? Jan 13 21:10:18 are there any binding frameworks you've tried? Jan 13 21:10:18 monod, yes Jan 13 21:10:28 it's not just tablets but yeah Jan 13 21:10:30 Mavrik, bingo! :) Jan 13 21:10:34 afk some minutes! Jan 13 21:10:39 Thanks guys! Ttl Jan 13 21:10:43 tliu: no Jan 13 21:10:43 tliu: did you try the platform mailing list? Jan 13 21:10:52 no, i can go do that Jan 13 21:11:04 JakeWharton: there isn't an irc channel for android platform dev? Jan 13 21:11:10 i don't think so Jan 13 21:11:13 monod: in part, that's the claim, yeah. but fragment-like-things exist in pretty much every view system, because reusable complex "widgets" are useful. Android's is just a bigger pain than most. Jan 13 21:11:15 ok, thanks Jan 13 21:11:51 everything about android is a bigger pain than most groxx it's like they ignored 20 years of UI framework design and went back to the stone age Jan 13 21:11:59 or stoned age when it comes to fragments especially Jan 13 21:12:03 i have a little piece of layout that isn't working right http://pastie.org/9830313 the layout_weight is being ignored i think. Jan 13 21:12:34 android just needs a reboot. because its a patchwork. but we'll never see one. Jan 13 21:12:54 there's no such thing as software reboot Jan 13 21:13:02 "just" Jan 13 21:13:41 I doubt there has ever been a successful large software rewrite project that would improve anything :P Jan 13 21:13:50 ie, "to fix android, use something else". yeah. though then you'll have a brand new pile of bugs to learn :) Jan 13 21:14:04 well, Jolla ftw ;) Jan 13 21:14:45 i think i asked but does square use any binding frameworks in their products? if so which ones JakeWharton ? Jan 13 21:14:47 I'd rather break my head over Android bugs than publish for something nobody uses Jan 13 21:14:59 I'm having trouble styling the text selection action mode bar background using the v21 support library. Has anyone here done that? Jan 13 21:15:03 mavrik: they could have and should have for 5.0 I don't see why they didn't Jan 13 21:15:19 also their could be a jar third party or otherwise that at least hide all the garbage from every day developers Jan 13 21:15:27 and curious if there is one already Jan 13 21:15:49 HevvyMetal: no Jan 13 21:16:07 yeah I think that's what you said last time Jan 13 21:16:10 but cool just curious Jan 13 21:16:18 things that would be a natural to combine with rxjava Jan 13 21:16:18 skrite: hm. looks alright to me, though you're missing an xml namespace (I'm guessing that's not the cause though?) Jan 13 21:16:30 do you use retro-lambda at all JakeWharton ? Jan 13 21:16:34 no Jan 13 21:16:46 ok cool Jan 13 21:17:03 skrite: or, what exactly are you trying to do? I just noticed that they're both "gone" Jan 13 21:17:10 * monod is *back* Jan 13 21:17:44 hmm, while we're at stupid ideas: is Kotlin actually usable for Android? Jan 13 21:17:44 https://android-arsenal.com/details/1/1259 Jan 13 21:17:52 that's one way binding Jan 13 21:17:54 afaik yeah Jan 13 21:18:10 groxx: oh jeez, i found the problem. had width and height all bassackwards Jan 13 21:18:16 Hi! Jan 13 21:18:45 Do you know how to import all contact (that I have in a Excel file or .CSV file with 2 columns : Name / Phone number) from a file to Android PHONE ? Jan 13 21:18:58 Do I need an app for this? or is there an import feature? Jan 13 21:19:06 skrite: haha, that does happen at times :) I'll personally recommend "rearrange code", which puts all the xml attributes in a canonical order. makes mistakes like that a _little_ easier to spot. Jan 13 21:19:22 I'm a little annoyed by how much time it took to get a RecyclerView-based list with swiping and reordering working at the same time, and I even stole most of the code :/ Jan 13 21:19:27 ahop: if you want to write an app for it we can help you, otherwise you're in the wrong place Jan 13 21:19:40 Chainfire: ooh. that's on my list of things to do. have any pointers? Jan 13 21:19:57 my advise would be to beat up JakeWharton until he releases a proper lib for it Jan 13 21:20:04 groxx: cool, thanks. and really, you guys helped me a lot yesterday. thanks Jan 13 21:20:55 JakeWharton ohh sorry, I used to come here that's why I asked here Jan 13 21:20:59 Chainfire: or Lucas Rocha, to finish TwoWayView v2? Jan 13 21:21:05 but I could go somewhere else of course Jan 13 21:21:38 groxx what twowayview? are you doing two way databinding in android? Jan 13 21:22:21 HevvyMetal: http://lucasr.org/2013/02/21/introducing-twowayview/ Jan 13 21:22:22 seriously groxx, I ended up just subclassing it, stealing an adaptation of SwipeDismissTouchListener from SuperRecyclerView (which is itself I believe an adaptation of JakeWharton's adaptation of RomanNurik's code) and a modified DragSortRecycler, and then mashed that all together Jan 13 21:22:34 ha Jan 13 21:22:38 nice Jan 13 21:22:51 Chainfire: which includes a variety of things I haven't yet seen. helpful, thanks :) Jan 13 21:23:06 actually all that only took three hours or so, but I spend a day or two trying out various libs which all failed to work in various and spectacular ways Jan 13 21:23:18 Gotta go sleep! Thank you guys! Mavrik groxx HevvyMetal Jan 13 21:23:27 I tried poking at swipey-listview libraries a while back, but they were omg-levels of awful. Jan 13 21:23:30 oh ok do you work at fb groxx? Jan 13 21:23:38 no? Jan 13 21:23:41 i wonder why fb still has native apps and not just webview Jan 13 21:23:52 i thought maybe you wrote that page you linked to groxx Jan 13 21:24:04 google now stalking services are really quite cool(scary?). I'm heading off to japan tomorrow via cairns (AU) and it's giving me weather forecasts for both places and telling me about my accom i've booked lol Jan 13 21:24:09 JakeWharton: any idea? Jan 13 21:24:55 bankai_ nice :) where in japan? does it tell you the best expat bars to go to? Jan 13 21:25:09 and when you get to tokyo..stop by the hub pub! Jan 13 21:25:13 osaka -> tokyo -> nagano. Not interested in expat crap Jan 13 21:25:44 do you speak japanese bankai_ ? vacation or business? Jan 13 21:25:55 yeah i do, 'vacation' Jan 13 21:25:59 HevvyMetal: fwiw FB's stated reason is that performance sucks in webview. relatively speaking. not that I think their app is a great example of what you can do with native... but it is legitimately pretty speedy. Jan 13 21:26:00 are you going skiing in nagano? Jan 13 21:26:06 snowboarding Jan 13 21:26:13 ncie Jan 13 21:26:14 nice Jan 13 21:26:39 just hoping i don't get sick from the massive temp differences (it's summer here) Jan 13 21:27:02 so why osaka and not kyoto bankai_ ? Jan 13 21:27:13 i hear kyoto is so nice in the winter Jan 13 21:27:38 going there as well. i have a soft spot for osaka and kansai Jan 13 21:27:45 i never got to kansai region when i was there Jan 13 21:27:50 but i'd like to next time i'm there Jan 13 21:27:58 especially in the spring or winter Jan 13 21:28:12 tokyo is a boring crap hole. i honestly don't understand why people want to spend copious amounts of time there Jan 13 21:28:40 what made you learn japanese bankai_ ? did you grow up in japan or study it in school? Jan 13 21:28:46 bankai_: they’ve never been to Japan, and it seems to be the most logical place to start Jan 13 21:28:53 studied at school, but i lived over there for a while too Jan 13 21:29:02 as an english teacher? Jan 13 21:29:17 well tokyo is like new york it's a great place to visit but I wouldn't want to be there too long Jan 13 21:29:31 I don't know why people don't spend more time in okinawa where it's tropical personally Jan 13 21:30:08 I don't think people really go to tokyo for vacation tho bankai_ Jan 13 21:30:25 hey HevvyMetal howd your interview/test thign go? Jan 13 21:30:26 they go to tokyo for business or work or something or on the way to somewhere else because its a train hub etc Jan 13 21:30:49 hey thanks for helping me test the app lasserix Jan 13 21:30:54 np Jan 13 21:31:03 i havent sent the app in yet but i think the interview went pretty well Jan 13 21:31:22 but they asked me a bunch of "how would you' do xyz which really means "guess which one we prefer" Jan 13 21:31:28 "would you use wood or concrete?" etc Jan 13 21:31:41 but I thought it went pretty well but I don't know really Jan 13 21:32:58 cool Jan 13 21:35:12 the split is real Jan 13 21:36:21 JakeWharton: are you saying don’t use Flow in general or were you specifically directing that advice at HeavyMetal? Jan 13 21:38:45 damm split Jan 13 21:39:00 Are here dutch people available ? Jan 13 21:39:13 fLm: does it matter? Jan 13 21:39:27 JakeWharton: were you advising against Flow in general or just replying to HeavyMetal specifically? Jan 13 21:39:43 Well sometimes if i need to explain some difficult problems :p Jan 13 21:39:59 Please dont talk dutch in here <.< Jan 13 21:40:06 We’re looking at Flow as we reduce the number of Activities below the number of screens. Jan 13 21:40:24 i won't talk dutch here, i'm just asking if here dutch people are available Jan 13 21:40:36 what do you mean by that dcow? Jan 13 21:40:37 Hi, how do I compile something like CWM or TWRP for my device? Jan 13 21:40:45 RudyValencia: s.android.com Jan 13 21:40:51 or CW website Jan 13 21:40:57 should have the info Jan 13 21:41:16 i said another position i interviewed with a few weeks ago that is more high level (dev manager) they want to have a 2nd interview on if you missed that laserix Jan 13 21:41:17 HevvyMetal you were asking about Flow, JakeWharton said, “don’t use it”. Jan 13 21:41:42 [1:09pm] HevvyMetal: so where is this flow thing? can't seem to find it on google Jan 13 21:41:43 [1:09pm] HevvyMetal: is it a square.io product? Jan 13 21:41:43 [1:09pm] JakeWharton: don't use it Jan 13 21:41:48 i know dcow Jan 13 21:41:52 i was confused by Jan 13 21:41:53 Were looking at Flow as we reduce the number of Activities below the number of screens. Jan 13 21:41:59 oh. Jan 13 21:42:03 what do you mean by reduce the # of act below # of screens? Jan 13 21:42:08 We do N activities for N screens. Jan 13 21:42:09 fLm> ? Jan 13 21:42:14 yes Jan 13 21:42:18 we’re changing that philosophy as we add more complex animations Jan 13 21:42:29 so we’ll have M screens with N activities Jan 13 21:42:37 dcow: i don't like it at all Jan 13 21:43:02 Chainfire ? Jan 13 21:43:03 JakeWharton is there a specific reason I should be aware of? Jan 13 21:43:08 if you have activity A, and it loads either layout A or B, that the backstack only has one entry dcow? Jan 13 21:43:17 * Chainfire <-- Dutch Jan 13 21:43:40 What architecture is the Rockchip RK3066 CPU anyway? Jan 13 21:43:45 dcow: i don't like it Jan 13 21:44:34 RudyValencia #android-root Jan 13 21:46:23 it's just going to be one of those days i gueess Jan 13 21:46:27 someone getting ddosed? Jan 13 21:46:46 Hi, does someone ever worked with the google Volley library ? Jan 13 21:49:17 fLm: ? Jan 13 21:49:19 Hrm, it's kind of lame that you can't pass arguments to am instrument command through the gradle plugin Jan 13 21:49:59 i have Jan 13 21:50:22 well, i have a question about feedback to the user while doing a request Jan 13 21:51:03 After adding the request to the queue, i instantiate a new progress dialog and when i get response i would like to dismiss the dialog, but it doesn't dismiss.. Jan 13 21:51:37 do you dismiss it in both the onResponse and the onErrorResponse? Jan 13 21:51:42 Yes Jan 13 21:52:29 are either of those methods being called? Jan 13 21:52:37 use logging statements to test this Jan 13 21:52:40 (or debugging) Jan 13 21:52:53 tx: one of them has to be called Jan 13 21:52:58 yes, in the background it load's my views with the right info Jan 13 21:53:02 the question is about timeouts Jan 13 21:53:09 ? Jan 13 21:53:15 but my progress dialog doesn't hide Jan 13 21:53:41 hey matt_z Jan 13 21:53:46 supp Jan 13 21:54:04 Volley posts back to the UI thread by default Jan 13 21:54:05 runOnUIthread? Jan 13 21:54:05 runOnUIThread perhaps? Jan 13 21:54:08 (for the third time) Jan 13 21:54:12 ah Jan 13 21:54:24 Haven't tried out Volley yet. Jan 13 21:54:37 well, the requests working well Jan 13 21:54:55 but the feedback to the user i want to show not :p Jan 13 21:55:55 fLm: this means you have an issue with the dialog, not with volley Jan 13 21:57:26 Yes, but where do i instantiate the progress dialog best ? Jan 13 21:58:22 At this moment i instantiate a new progress dialog in the OnCreate method Jan 13 21:58:39 in a Fragment! maybe is this good information Jan 13 22:05:00 fLm: why not have it as a member and show it when you insert the request to the request queue? Jan 13 22:05:50 you mean like this : public ProgressDialog pd = new ProgressDialog(this.getActivity(), ProgressDialog.STYLE_SPINNER); Jan 13 22:06:15 and then show it after adding to the queue ? Jan 13 22:07:50 yes Jan 13 22:08:09 so it appears that Android Studio doesn't read environment variables? Is there an alternative to specifying multiple options across developer machines. Jan 13 22:08:11 anyone kno wwhere to find the old guid to building apk on command line? Jan 13 22:08:16 guide* Jan 13 22:08:22 the corrent guide is for gradle Jan 13 22:10:31 a search for building with ant should yield results Jan 13 22:11:08 Hey Jan 13 22:12:35 thanks MikeWallaceDev Jan 13 22:13:08 Is there any way to set values in local.properties? Jan 13 22:13:09 really.. ant release? Jan 13 22:14:02 awesome :) Jan 13 22:14:28 no way to automate alias and apssword? Jan 13 22:27:03 define that question? I just wrote a blog post on that, I don't know if it's what you need though... Jan 13 22:37:23 blog post on what MikeWallaceDev ? Jan 13 22:37:44 does anyone have a suggestion for how I could store properties that shouldn't be committed to the version control? It appears that I can't use environment variables. Jan 13 22:37:58 actually, it's a script to make handling your keys safer... Jan 13 22:39:16 http://androiddevcorner.blogspot.ca/2015/01/a-script-to-safely-manage-your-android.html Jan 13 22:39:45 the only time that your keys are really vulnerable is when you modify your keystore, this automates the task. Jan 13 22:40:29 hi guys, I know googles site says not to use listview with scroll view... but what if i wanted to have the entire fragment move.. everything from textview and other elements? Jan 13 22:41:35 or did they just mean, we shouldnt use listview with scroll view alone? Jan 13 22:43:23 Makalak: how do you want to use it? scrollview inside the listview? Jan 13 22:44:02 the key is to lock either the listview or scrollview while the other is active Jan 13 22:44:18 lasserix: listview and 2 textviews inside scrollview, obviously within layer Jan 13 22:44:36 so listview has rows the rows have scrollviews containing textviews? Jan 13 22:44:49 so what you can do is extend listview, add a locking mechanism Jan 13 22:44:49 no... Jan 13 22:44:54 oh Jan 13 22:45:03 sorry what doy ou mean then? Jan 13 22:45:12 Makalak, your listview will be a child of the scroll view, right? So when the user scrolls inside the listview, what should move? just the listview? the whole fragment? It's confusing... Jan 13 22:45:17 just a normal listview with it own list and 2 seperate textviews Jan 13 22:45:29 the whole thing Jan 13 22:45:31 a listview within a listview? Jan 13 22:45:49 lasserix: you're complicating this more than it needs to be :p Jan 13 22:45:51 well like i said, a way to do it is extend and then lock it Jan 13 22:46:05 so when the user touches inside the inner scrolling thing, lock the outer one Jan 13 22:46:13 when the user touches outside of it, allow it to move Jan 13 22:46:14 again Jan 13 22:47:10 MikeWallaceDev: the whole fragment, i want it to act as one, so when i scroll, the listview will be scrolled with the page Jan 13 22:47:43 Makalak, my point is that it's confusing to the user Jan 13 22:47:51 lasserix: again, i think you're making it more confusing... all i want is to be able to scroll the entire page Jan 13 22:48:20 can you draw somethign with the containers? Jan 13 22:48:24 sure Jan 13 22:50:38 http://pastebin.com/WJWGBpi5 Jan 13 22:51:00 ahh okay Jan 13 22:51:06 so what's the behavior if i scroll inside the listview? Jan 13 22:51:11 just the listview scrolls? Jan 13 22:51:28 and if i scroll inside the scrollview NOT inside the listview, the scrollview scrolls? Jan 13 22:51:29 lasserix: the whole page Jan 13 22:51:41 you want the whole thing to scroll if you scroll inside the listview? Jan 13 22:52:04 yes, and im sure thats how it will work (though i havent tested)... Jan 13 22:52:10 so basically you just want to intercept all the listview scrolls Jan 13 22:52:19 then just manually scroll both the scrollview and the listview Jan 13 22:52:22 my problem is "ou should never use a ScrollView with a ListView, because ListView takes care of its own vertical scrolling" Jan 13 22:52:34 yeah you have to override it Jan 13 22:52:44 you have to intercept the listview touch events Jan 13 22:52:48 and manually scroll it Jan 13 22:53:00 hell of a split. Jan 13 22:54:38 "Using a ListView to make it not scroll is extremely expensive and goes against the whole purpose of ListView. You should NOT do this. Just use a LinearLayout instead." Jan 13 22:55:16 you dont have to Jan 13 22:55:21 you just have to propogate Jan 13 22:55:32 scrolls inside the listview to the scrollview Jan 13 22:55:36 and vica versa Jan 13 22:56:46 theres probably another way of doing what you're trying to achieve Jan 13 22:56:52 without putting a listview inside a scrollview Jan 13 22:57:36 AKK9: which is? Jan 13 22:57:47 what? Jan 13 22:58:28 but it will also mean I need to create some sort of adapter for it no? Jan 13 22:59:24 what are you putting into the listview? Jan 13 22:59:37 do you know the number of elements it'll host, is it a fixed number? Jan 13 23:00:15 lasserix: nope, but its 2 textview and 2 imageview each item Jan 13 23:00:51 oh Jan 13 23:00:51 yeah Jan 13 23:00:54 then dont use listview Jan 13 23:01:09 you have 8 items total? Jan 13 23:01:20 for each item in the listview ya Jan 13 23:01:20 you dont really need alistview at all Jan 13 23:01:38 i mean, how many rows will it have, is that a fixed number? Jan 13 23:01:40 that list could be as bag as 38 Jan 13 23:01:44 no thats not fixed Jan 13 23:01:51 oh Jan 13 23:02:17 well like i said all you have to do is manually scroll the list by propagating scrolls on the scrollview to the listview Jan 13 23:02:41 which you can do by setting a scroll listener on the scrollview, then just scrolling the listview by some delta corresponding to the delta of the scrollview Jan 13 23:02:49 and vica versa Jan 13 23:02:50 so when the user scrolls down the two text views at the top of the scrollview come into view? Jan 13 23:03:02 and when the user scrolls up they move out of view again? Jan 13 23:03:05 is that what you want? Jan 13 23:03:13 is there a way to place 2 custom textviews into the listview then Jan 13 23:03:20 yeah multiple item type Jan 13 23:03:58 AKK9: something like that.. except the listview is visiable from the start.. but as they scroll down i want the 2 textviews to move up Jan 13 23:04:00 Say I have 2 versions of an app. theyre both the same but each has a different logo and one is a library of the other.. how would I tell the app that uses the library to use a different logo? Jan 13 23:04:11 you need to extend base adapter, override getViewItemType (return 0 and 1) getViewItemTypeCount (return 2) and getView, switch on if its the textview (ie getViewItemType is 0) and inflate the custom textview, and if its standard row inflate the other Jan 13 23:04:27 teh drawable has the same name, but they are different Jan 13 23:04:28 Makalak: you just want a listview with multiple row types Jan 13 23:04:33 but they are both in res/drawable Jan 13 23:04:48 tricknology: you can do that with gradle Jan 13 23:04:55 w/o gradle :P Jan 13 23:05:01 lasserix: ill probably check for that Jan 13 23:05:10 Makalak: you dont need the outside scrollview Jan 13 23:05:42 you just need one listview, the listview inflates either the textviews or the standard rows Jan 13 23:06:12 you can look at this http://www.survivingwithandroid.com/2014/08/android-listview-with-multiple-row.html Jan 13 23:06:43 instead of CONTACT_WITH_IMAGE you'd do like CUSTOM_TEXTVIEW or STANDARD_ROW Jan 13 23:07:39 Makalak, if i were you i would use a frame layout which contains your listview, and also a layout which contains your two textviews. then add an onscroll listener to your listview, on scroll down move that view into the screen, and on scroll up move it out of the view Jan 13 23:07:42 lasserix: thanks im reading that now Jan 13 23:07:45 in the javascript Jan 13 23:07:53 Java Jan 13 23:07:55 sorry not javascript Jan 13 23:08:13 AKK9: I've also seen that.. seems like the easier option Jan 13 23:08:41 it'll also mean, i dont need to chnage any of my current work, just add that along side Jan 13 23:09:44 Makalak, yeah i think it will definitely be the easiest to implement, and if you really dont like it then try something else Jan 13 23:12:32 Makalak, the other even easier option is to add a header to your listview containing your two text views. But then it means the user will need to be at the top of the list to see it Jan 13 23:13:03 AKK9: thats what i want Jan 13 23:13:16 lol.. why didnt i think of that Jan 13 23:13:34 lol listview.addheaderview Jan 13 23:14:14 make a layout with your text views, and then add it to your listview using addHeaderView Jan 13 23:17:01 lasserix chk ur pm Jan 13 23:18:10 so noone has used retro lambda yet right? Jan 13 23:18:24 i'm kinda interested in checking it out Jan 13 23:18:41 as a former .NET and C# guy rxjava and java 8 give me goosebumps :) Jan 13 23:19:14 whoever was asking if java is FOSS or not it is a little ironic that oracle gives java out for free (mostly) but it's not FOSS *shrug* Jan 13 23:19:23 i'd definitely like to see native java 8 for android tho Jan 13 23:20:57 Greetings, question if I may. I have a custom class which extends Thread (does nothing right now). I create it/started it/null it out, but, the garbage collector doesn't seem to free the thread object. Example Code: http://pastebin.com/pHizZBWL . How do I properly cleanup a thread class so it gets gc'ed? I'm thinking it's not gc'ed because when I run the code, wait ~15 mins, and then generate a HPROF file eclipse, I can see "come.myapp.MyConn Jan 13 23:21:44 NvrBst: Threads, while running, are "gc roots" and never get collected. Jan 13 23:22:10 AKK9: that was too easy, i feel stoopid!! Jan 13 23:22:12 but the run method is empty, shoudln't it stop running immediatly after I start it in this case? then be gced? Jan 13 23:22:41 NvrBst you have to null out the reference to the thread Jan 13 23:22:49 oh you did Jan 13 23:22:52 ah. if it's empty, I would expect that... unless something else is holding on to it? do you have a thread cache anywhere? Jan 13 23:22:56 i think it's because you did a .join Jan 13 23:23:03 you don't need to do a .join afaik Jan 13 23:23:09 but it's been awhile since i made any threads by hand Jan 13 23:23:15 the .join is what's getting yuo i think Jan 13 23:24:04 I don't beleve i have a thread cache anywhere, but, this app is big I can try it with a test app to make sure I see the same results. I'll also try without the join quickly :) Jan 13 23:25:04 NvrBst: have you checked the paths-to-gc-roots in hprof? Jan 13 23:25:26 Makalak, haha glad i could help man Jan 13 23:25:49 aye, it just says "com.myapp.MyConnectThread @ 0x418a0a88 Thread-1330 Unknown: 1,80,80,176" and no tree (single line) Jan 13 23:26:01 HevvyMetal: fwiw I've been using retrolambda. I like it, zero problems thus far, generated code is pretty sane. Jan 13 23:26:45 nice to hear groxx are you doing that in AS or Eclipse or both? What did you have to do to configure it? are you using any binding libraries to bind the observables to UI views at all? :) Jan 13 23:27:29 In HPROF I see nothing under "incoming references" either. But "outgoing references" lists about 5 entries (I assume private varialbles in the extend Thread class, like "group" and "interruptActions"). Jan 13 23:27:45 just AS, I used https://github.com/evant/gradle-retrolambda, and no. I might be using Rx soon, but that's pending a few other more important things. Jan 13 23:27:45 hopefully i'm going to try out retrolambda later today Jan 13 23:28:11 ok what did you have to paste into your gradle to get get retrolambda to work? Jan 13 23:28:26 what are you using the lambdas for in your android app if not r? Jan 13 23:29:01 HevvyMetal: the gradle-retrolambda github site has all the info. Jan 13 23:29:53 HevvyMetal: personally, I'm using it for just code-niceness. I've been toying with an event-bus-style architecture, and making a bunch of listeners / callbacks is quite a bit easier on the eyes. Jan 13 23:30:16 right sure what about ui binding groxx? Jan 13 23:30:24 nope Jan 13 23:31:28 I'm not a fan of UI binding frameworks in general. every time I've done anything reasonably complex with them, or talked with people building reasonably complex things, it _always_ comes out that binding is great for easy stuff, and gets in your way when it's not trivial. Jan 13 23:32:06 I and most people I've talked to have settled on e.g. using something like Rx / a more generic tool to do specific bits of UI binding essentially by hand, and never full frameworks. Jan 13 23:32:47 well if the binding works well, and you hae the observables, it's pretty nice and it decouples the UI Jan 13 23:32:51 like in WPF Jan 13 23:33:09 if have binding without notifications it doesnt help much Jan 13 23:33:13 yeah, when it works, it's really fantastic Jan 13 23:33:37 yeah there are a few binding frameworks but i'm not sure how good it is because it's not well known in the java/android community Jan 13 23:33:44 bindroid/etc Jan 13 23:33:56 so i was wondering if anyone had used them before i try out 3 half baked binders heh Jan 13 23:37:27 Is actionbar.newTab() obsolete? Jan 13 23:37:31 but if not i can be first :) Jan 13 23:37:42 speaking of which Jan 13 23:37:49 anyone use Xamarin yet? Jan 13 23:39:30 I'm trying to install android studio, but I can't run the setup as a normal user, so I ran it as root and it just set it up only for root.... Jan 13 23:39:43 How can I get it for my normal user? Jan 13 23:39:47 that's weird... Jan 13 23:39:57 how is it not working as a regular user? Jan 13 23:39:58 what didn't work? Jan 13 23:40:52 Failed to create directory /opt/android-sdk/temp Done. Nothing was installed. Jan 13 23:41:05 cuz I'm not root... then it stops thes setup... Jan 13 23:41:10 Yeah it crashes when I use actionbar.newTab(). Looks like its messed up. Looking into splitActionBarWhenNarrow Jan 13 23:42:55 But it installed it fine for root, but it still isn't working on the normal user... Jan 13 23:43:01 I'm running arch btw Jan 13 23:44:09 Glitches: probably some perm problem Jan 13 23:45:18 bankai_: well, I already install these archives as root, why is it not working? Jan 13 23:45:18 Glitches, you can install it in a temp dir, as user, then move it to opt. That's what I did Jan 13 23:45:31 Update: removing .join() seems to have same effect. I also created a brand new android app with nothing but the "Hello World!!" activity boilerplate code. Created the MyCustomThread object in the "onCreate()" (same 4 lines as in pastebin). And after ~10 mins I still can still see the "com.example.testthread.MyConnectThread Objects: 1" in the HPROF histagram. Jan 13 23:46:18 did you try to force a gc? Jan 13 23:46:22 NvrBst ? Jan 13 23:46:43 I would to know how to view the location of multiple users on google maps. For that, I suppose I must have a interface where users log to a "room" where they may be see each others on the map. Is there any tutorial, github or information that can help me? This would be very appreciated. Jan 13 23:46:46 * HevvyMetal installing jdk8 Jan 13 23:46:50 I clicked the "Cause GC" button in DDMS a few times before I dump the HPROF Jan 13 23:47:31 the JDK 8 splash screen says "3 Billion Devices Run Java ---- Computers, Printers, Routers -- Most of them pay us licensing fees. Except..Google" Jan 13 23:47:43 I'm running on samsung tab3 (android 4.1.2). Jan 13 23:48:37 Lmao. Jan 13 23:48:54 can I switch from Actionbars and tabs to view pagers? Are those depreciated in Lollipop like tabs? Jan 13 23:49:03 Or should I just use the app compat lib Jan 13 23:49:05 "Pure Android design guidelines mention not to use bottom tabs for navigation" Jan 13 23:49:12 Ohh Jan 13 23:49:20 "Pure Android design guidelines" lmao Jan 13 23:49:23 LOL Jan 13 23:49:26 what a fucking idiot Jan 13 23:49:40 http://ux.stackexchange.com/questions/67197/android-floating-action-button-vs-bottom-navigation-bar Jan 13 23:49:57 Answer #2 Jan 13 23:50:08 Someone please, flame this idiot. Jan 13 23:50:54 I might just use a viewpager Jan 13 23:51:05 AndreYonadam: Use a view pager. Jan 13 23:51:11 I HIGHLY prefer them. Jan 13 23:51:24 They are silky. Jan 13 23:51:34 Anyone could answer my question ? ;) Jan 13 23:51:35 is it possible to inject an aftertask for the java compile task? Jan 13 23:51:35 Yeah lol. I'll see how they play with my heavy images. Jan 13 23:51:50 I want to run my shell script once java has finished compiling Jan 13 23:51:53 AndreYonadam: You may have to setup caching for images. What's your app about? Jan 13 23:51:57 but before the module is done building Jan 13 23:52:02 DragonPunch: The Physics App Jan 13 23:52:11 AndreYonadam: DeviantART uses a view pager and they do a great job w/ it. Jan 13 23:53:05 AndreYonadam: i dont get it, do you have a play store link? Jan 13 23:53:13 DragonPunch: I will soon. Jan 13 23:53:20 I had it on the play store a year ago. Jan 13 23:53:25 AndreYonadam: ok. use a view pager. Jan 13 23:53:38 don't over kill it coupling the view pager with a navigation drawer. Jan 13 23:53:46 that just makes you look like your trying too hard. Jan 13 23:53:51 thats not sexy at all. Jan 13 23:53:56 unattractive. no no. Jan 13 23:53:58 Took it off for a while. I'm doing to publish it again today. Do I need to use the app compat for the view pager. I already had a perfect tabs inplace and the reason I switched from them is because I didn't want to use the app compat Jan 13 23:55:32 heh the jcenter google search says "JCenter -- Forget about Maven Central!" Jan 13 23:55:38 why do they hates on maven central? Jan 13 23:55:46 why should we forget about maven central? Jan 13 23:55:57 i like jcenter but that seems a little icy Jan 13 23:57:29 NvrBst: don;t use join to stop the thread, also the process is cached Jan 13 23:58:46 DragonPunch: actually, the actionbar should be at the bottom of the screen Jan 13 23:58:55 they f--k up by putting it at the top Jan 13 23:59:31 thread is cached? Is there a way for me to get it in a state where gc will clean it up, or it's already in that state your thinking? Jan 13 23:59:44 no i mean, the process is cached when you "quit" the app Jan 13 23:59:55 so as long as you aren't leaking something Jan 13 23:59:58 you dont need to worry about it Jan 14 00:00:05 although you can use DDMS to force GC Jan 14 00:00:11 to test whether your code is leaking Jan 14 00:00:45 and unless you have a specific reason to subclass thread you shouldn't Jan 14 00:00:49 you should implement Runnable instead Jan 14 00:01:17 lasserix: The action bar at the bottom is nice. Jan 14 00:01:22 lasserix: I agree. Jan 14 00:01:32 https://bintray.com/reactivex/RxJava/RxJava/1.0.4/view Jan 14 00:01:45 lasserix: But when people are like 'material design' is everything. " Do you use material design? " Jan 14 00:01:53 I honestly have no comment about those people. Jan 14 00:01:55 how do i get the compile string? from jcenter like I can from maven central? Jan 14 00:02:04 aye, its not my code, i'm just trying to investiage a memory leak, and it's to do with this "ConnectThread" class. I commented everything from it to help me understand why it's not getting cleaned up. I think using Runnable would be better though. Jan 14 00:02:23 Design is something that comes from your own creativity. It isn't copied from someone else. Jan 14 00:02:25 are you sure its leaking? Jan 14 00:02:48 just because you see it there later doesn't mean its leaking, like i said the process is cached Jan 14 00:03:11 Thing i don't understand is in the "testthread" app. if I don't call the ".start()" method, then, via MAT i can see "Objects: 0" for that class. But after I call the ".start()" method (eventhough the .run() is empty), i can't get the HPROF to bring that class back to 0, it's always 1. Jan 14 00:03:56 I think it's leaking because this thread gets creating every ~5 mins when trying to connect to an unconnectable server. After I leave it on over night i can see 100's of this class. Jan 14 00:04:35 is the thread holing on to some reference? Jan 14 00:04:58 So i just tried to dumb it down to what it is now to try to get 1 instance cleaned. But your thinking I should run overnight test with this dumbed down version to see if it gets to the 100's range? Jan 14 00:05:14 It shoudln't be. The class is empty in my dumb'ed down version. Jan 14 00:05:48 im not sure waht the 100's means: could it be its just keeping count of instatiated ? Jan 14 00:06:14 let me open up my old HPROF to get exact info, 30s Jan 14 00:07:21 For this example (was run 8h), HPROF says "Class Objects: 215, Class Shallow Heap: 20kB" Jan 14 00:07:42 to my understanding, it should be 0 or 1. Jan 14 00:08:47 isn't there like a suspect leaks tab? Jan 14 00:09:21 aye, it lists some kind of resources related to "" (think those 2 itlists are false positives) Jan 14 00:10:08 Damn NickServ. Jan 14 00:10:18 NvrBst: why are you suspecting there is a problem to begin with? Jan 14 00:11:09 I get "OutOfMemoryError" after running it over the night. 20kB on this class isn't much, but, the class holdes references to other structers which are much bigger and what is using up all the memory. Jan 14 00:11:15 TacticalJoke: tell me about it Jan 14 00:11:41 ahh Jan 14 00:11:46 but though i should tackle this class since it's the top of the chain to the ones that are nto gettting cleaned up Jan 14 00:11:50 NvrBst: does live and alloc'd object count equal? Jan 14 00:12:12 NvrBst: it could be something inside, since what is inside can be holding a reference and cuains leak of host objects Jan 14 00:12:47 how do i tell if live and alloc'd equal? is this from withing MAT or DDMS? Jan 14 00:13:00 dunno Jan 14 00:13:02 you said object count Jan 14 00:13:06 is there only one column? Jan 14 00:13:11 you should verify what that columsn means Jan 14 00:13:12 I was thinking of using reflection to mutate Strings (by making String.value {the char[] buffer} visible). Is this a sensible thing to do? Jan 14 00:13:21 no Jan 14 00:13:39 well i guess its clever? but why not just use a string buffer? Jan 14 00:13:50 aye, MAT histogram only shows 3 collumns "Objects / Shallow Heap / Reserve Heap" which is to my understanding, the number of allocated objects on the heap, and the size they are taking up. Jan 14 00:13:52 then you can use setText(charsequence) Jan 14 00:14:30 lasserix: If I use a StringBuilder (or, I guess, StringBuffer) then the original String's buffer is cloned. That's too resource-intensive for what I need. Jan 14 00:15:02 For objects that get allocated then gc'ed, i can see "Objects: 0" in the histogram, which, ideally, is what I want to get this "MyCustomThread" class to read ;) Jan 14 00:15:15 NvrBst: http://eclipsesource.com/blogs/2013/01/21/10-tips-for-using-the-eclipse-memory-analyzer/ Jan 14 00:15:49 Ahh i'll read that now, thankies ;) Jan 14 00:15:59 I just need some kind of "mutable String view" thing. Jan 14 00:16:14 NvrBst: http://andmateclipse.blogspot.com/ also Jan 14 00:16:24 ok :) Jan 14 00:19:42 How can i download ssl certificate from twitch.tv? Jan 14 00:19:54 Need to make use of https thats why Jan 14 00:21:43 Hi all, is here also support of the original google team ? Jan 14 00:27:59 whee got java 8 installed Jan 14 00:28:02 lambdas here i come Jan 14 00:29:46 fLM: How do you mean? Jan 14 00:30:13 Like team members of google are they here also available for help ? Jan 14 00:31:05 Hmm, not sure. Jan 14 00:32:02 how difficult is it to create a cloud storage app like dropbox Jan 14 00:34:00 are you serious? Jan 14 00:34:13 do you mean the app or the whole cloud storage? Jan 14 00:35:24 lasserix: I'm gonna stick with the spinner after all. :) Jan 14 00:35:30 By far the best solution, IMO. Jan 14 00:35:44 (As opposed to using a nav drawer for what I was talking about.) Jan 14 00:35:58 yea plus the back for up Jan 14 00:36:00 you should try it Jan 14 00:36:02 it won't be jarring Jan 14 00:36:07 just use smooth scroll Jan 14 00:36:21 You mean Back translates into "open nav spinner"? Jan 14 00:36:24 no Jan 14 00:36:32 back simply positions the listview at the top Jan 14 00:36:35 if it is not there Jan 14 00:36:45 if it is already at the top, it will do normal behavior Jan 14 00:36:51 but that way if i want to switch subreddit Jan 14 00:36:58 ic an just do back,open and click Jan 14 00:37:13 lasserix: The subreddit spinner is always visible (since it's in the ActionBar). Jan 14 00:37:19 oh Jan 14 00:37:25 then what was the problem!?! Jan 14 00:37:26 ;p Jan 14 00:37:29 :D Jan 14 00:37:51 The problem was that I was getting pain in my hands from having to open the spinner all the time, since it's so high up. Jan 14 00:37:53 the app Jan 14 00:38:10 But I think I am simply not used to that movement. Jan 14 00:38:13 yeah im serious Jan 14 00:38:25 app is fairly simple, if you mean using dropbox api Jan 14 00:38:27 What are the new android themes called? Jan 14 00:38:31 no Jan 14 00:38:34 not using dropbox api Jan 14 00:38:36 The ones that have the flat top Jan 14 00:38:39 creating a cloud storage app Jan 14 00:38:45 AndreYonadam: I think "material design" or some variation. Jan 14 00:38:51 Thanks! yeah those are them! Jan 14 00:38:52 like taking the file reading the file contents Jan 14 00:39:06 than sending the file over a network and having it synced across all devices Jan 14 00:39:15 and show the progress etc Jan 14 00:39:26 AndreYonadam: This is the holy text: http://www.google.co.uk/design/spec/material-design/introduction.html Jan 14 00:39:34 s/.co.uk/.com/ perhaps Jan 14 00:39:42 TacticalJoke: Lol thanks for the link Jan 14 00:40:16 having 2 adapters 1) for image selection a 2nd for like file system browsing Jan 14 00:40:21 TacticalJoke, sorrylost my connection Jan 14 00:40:49 fLM: I don't know whether there are Google employees here. I do know that there are experts. Jan 14 00:41:14 Alright Jan 14 00:41:26 Wel did you ever used Volley ? Jan 14 00:41:50 Google's nertworking library for android Jan 14 00:42:05 I haven't, but some people have. Best way to get an answer is to ask. :) Jan 14 00:42:14 Alright Jan 14 00:42:41 Now i'm going to sleep, i will ask it tomorrow. Thanks in advance! Jan 14 00:46:47 This, despite being a tiny change, looks interesting: " Jan 14 00:46:47 WIP: UI for switching test artifacts.": https://android-review.googlesource.com/#/c/123044/ Jan 14 00:46:54 Oops. Two lines. Jan 14 00:49:02 How can i download ssl certificate from twitch.tv so i can fetch json from https Jan 14 00:49:45 Other suggestion wont work for me since i then have to redo an activity Jan 14 00:54:48 Any ideas anyone? Jan 14 00:55:30 IDK, never used twitch API Jan 14 00:56:27 http://superuser.com/questions/97201/how-to-save-a-remote-server-ssl-certificate-locally-as-a-file Jan 14 00:57:10 Are you sure it works that way though dragonpunch? Jan 14 00:57:26 http://serverfault.com/questions/139728/how-to-download-the-ssl-certificate-from-a-website Jan 14 00:57:50 you can do these on OSX maybe Jan 14 00:57:52 or Linux VM Jan 14 00:58:03 I think firefox has a view certificate tab i could just do that and export it? Jan 14 00:58:09 sure? Jan 14 00:58:12 again, I don’t know Jan 14 00:58:23 TIAS Jan 14 00:58:24 I read an article about it Jan 14 00:58:34 well thenn... Jan 14 00:58:35 try it Jan 14 00:58:38 tricknology: have you switched to AS yet now that is supports testing? Jan 14 00:58:38 I need to check tomorrow once i get back on the pc Jan 14 00:59:02 haha I haven’t no. I need to get ahold of a porject that will allow me to learn AS Jan 14 00:59:21 lasserix: Supports testing? Jan 14 00:59:23 right now I have 2 time-dependent projects :X Jan 14 00:59:32 yeah as now has androd unit testing Jan 14 00:59:53 —now— finally (FTFY) Jan 14 00:59:54 oh tricknologymeant TacticalJokesorry it autotabbed Jan 14 00:59:55 I'm curious of what you mean. Jan 14 01:00:04 well that was my reason too Jan 14 01:00:04 as supports android testing Jan 14 01:00:17 Android unit testing Jan 14 01:00:26 is it clean? Jan 14 01:00:40 1.0.2 is the latest version. That doesn't support JVM unit testing. Jan 14 01:00:57 boo. where’s my pitchfork? Jan 14 01:01:17 lasserix: I wish it supported it. ;| Jan 14 01:01:19 laters Jan 14 01:01:31 i read that it did Jan 14 01:01:32 wtf Jan 14 01:01:41 lasserix: I guess the latest build does. Jan 14 01:01:45 Just not the latest release. Jan 14 01:01:45 TacticalJoke: http://rexstjohn.com/unit-testing-with-android-studio/ Jan 14 01:01:48 I think 1.1 is supposed to Jan 14 01:02:02 oh wait Jan 14 01:02:05 thats a long time ago Jan 14 01:02:07 so lasserix. Jan 14 01:02:15 about that cloud storage. Jan 14 01:02:21 what do you think, is it difficult? Jan 14 01:02:34 synchronization Jan 14 01:02:42 Yeah, those seem to be emulator/device tests. Jan 14 01:02:51 what do you mean synchronization Jan 14 01:02:52 But wait -- there's more. You also have to use JUnit 3. Jan 14 01:03:04 -2 for the price of 1. :) Jan 14 01:03:54 so does it support android testing? Jan 14 01:04:32 The latest release supports testing where the tests run on a device or the emulator. Jan 14 01:04:43 But it doesn't have first-class support for tests running on the JVM. Jan 14 01:04:52 Here is one of the key changes for support of the latter: https://android-review.googlesource.com/#/c/116880/ Jan 14 01:04:56 (Which isn't released yet.) Jan 14 01:05:12 have you sween this? http://www.bignerdranch.com/blog/all-in-together-android-studio-gradle-and-robolectric/ Jan 14 01:05:50 Yeah, as far as I can tell that involves creating a Java module for app code that doesn't touch Android. Jan 14 01:05:54 That's a bad idea, IMO. Jan 14 01:06:20 What if your Java-only code needs to use something from Android (e.g., Parcelable)? Then, unless I'm mistaken, the whole system breaks down. Jan 14 01:06:28 s/needs/suddenly needs/ Jan 14 01:06:58 oh Jan 14 01:07:02 so its just junit testing Jan 14 01:07:10 Ya. Jan 14 01:07:17 what is it called the android testing that emulates running android activities and such? Jan 14 01:07:22 junit is just java, that is>? Jan 14 01:07:44 I think they say "instrumentation testing" for the general idea. Jan 14 01:08:31 hmm ok Jan 14 01:08:32 lasserix: Instrumentation testing uses JUnit. JVM testing can use JUnit (or something such as TestNG). Jan 14 01:08:53 The former uses JUnit 3, which is old and annoying. Jan 14 01:09:00 hi, im having some trouble figuring out how to generate jni function names for my native methods. all i can find online are some halfsanswers of people just copy/pasting java(h/c) commands in the terminal. can anybody explain which files im supposed to use and which directory i need to be in if that matters? Jan 14 01:09:16 TacticalJoke: it looksl ike that guide allows android insrumentation testing Jan 14 01:09:18 For example, the name of every test method has to start with 'test'. Annoying limitations such as that. Jan 14 01:09:28 @Config(emulateSdk = 18) Jan 14 01:09:28 @RunWith(CustomTestRunner.class) Jan 14 01:09:28 public class MyActivityTest { Jan 14 01:09:28 ... Jan 14 01:09:28 } Jan 14 01:09:33 i used android studio to compile the native code so the output files are in that format Jan 14 01:09:53 I think that's Robolectric (which runs on the JVM). Jan 14 01:10:11 yeah Jan 14 01:10:23 At least the @Config part. The rest is all about JUnit 4. Jan 14 01:10:34 but that should allow activites and such to be ran Jan 14 01:11:08 Right. Though I think then you *have* to use Robolectric. I'm not currently using that. Jan 14 01:11:25 ahh Jan 14 01:11:29 roboelectric is nice Jan 14 01:12:41 woot i have rxjava running Jan 14 01:12:49 what is that heavy Jan 14 01:12:55 so far just in jdk8 will try out android Jan 14 01:13:06 lasserix: Here's an example of some tests I run on the JVM (remember my CollapsingList class? :): http://pastebin.com/KRgMATEY Jan 14 01:13:07 it's an observable collection/linq like package for java Jan 14 01:13:13 giantpune: check out the "Resolving Native Methods Names" section Jan 14 01:13:18 http://docs.oracle.com/javase/6/docs/technotes/guides/jni/spec/design.html Jan 14 01:13:18 HevvyMetal: how did your "bank job" go? Jan 14 01:13:22 ;p Jan 14 01:13:24 Though those tests are pretty boring. Jan 14 01:13:48 DragonPunch http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Jan 14 01:14:01 what testing framework / class are you using / extending from? Jan 14 01:14:21 That's just JUnit4 with AssertJ. Jan 14 01:14:53 hevvymetal: sounds cool. what does it allow you to do? Jan 14 01:15:06 check this out DragonPunch re retrofit and rxjava https://speakerdeck.com/jakewharton/2014-1 Jan 14 01:15:15 ooh Jan 14 01:15:31 HevvyMetal: is this the latest n greatest for android Jan 14 01:15:51 latest and greatest hat for android? Jan 14 01:16:12 its too bad i cant copy and paste out of the slides i woner if the source is online :) Jan 14 01:16:21 is this the latest n greatest for android Jan 14 01:16:40 latest and greatest what for android DragonPunch ? Jan 14 01:16:51 retrofit for networking Jan 14 01:16:54 instead of volley Jan 14 01:17:07 and idk why rxjava does yet Jan 14 01:17:22 do you have the text/source of your slides anywhere by chance JakeWharton Jan 14 01:17:23 ? Jan 14 01:17:42 well look at that slide deck and you will know DragonPunch Jan 14 01:19:53 HevvyMetal: retrofit look scool Jan 14 01:19:58 im still unsure about ewhat the rxjava Jan 14 01:20:46 RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences. Jan 14 01:21:08 monadology Jan 14 01:21:42 qwertyoooooooooool Jan 14 01:22:00 mo mo mo mo monadit Jan 14 01:22:10 grep grep grep grep it up Jan 14 01:22:20 woop woop woooop Jan 14 01:22:25 dont panic Jan 14 01:22:29 just grep grep Jan 14 01:22:33 lol Jan 14 01:22:34 grep it up Jan 14 01:22:36 grep grep grep gerp Jan 14 01:22:56 think we need to make youtube music video Jan 14 01:23:04 yeah dood for real. Jan 14 01:23:24 Grep - DragonPunch (feat. lasserix) Jan 14 01:24:28 does that explanation make sense lasserix? Jan 14 01:25:01 I'm tempted to use "..." for menu items that open a new activity/dialog, as in Windows, but it doesn't seem to be an Android thing. An example is "Log in". "Log in..." seems more intent-revealing, but I guess it's not Android-y. Jan 14 01:25:18 tactical what app u making Jan 14 01:25:23 Having said that, Google Chrome uses "Share...". Jan 14 01:25:26 A reddit client. Jan 14 01:25:27 Could find much about this issue on google, but im sure theres something simple im missing Jan 14 01:25:37 how many adapters do you need fo rsuch a thing Jan 14 01:25:40 .setLights wont work Jan 14 01:25:42 TacticalJoke iirc the material design document specifies when (not) to do this Jan 14 01:25:43 I've lost count. lol Jan 14 01:25:44 HevvyMetal: what? Jan 14 01:25:50 Chainfire: Ooh, didn't know that. Jan 14 01:26:05 I read it somewhere that's for sure. I think there. Anyway, goodnight :) Jan 14 01:26:11 whats iirc stand for? Jan 14 01:26:13 Thanks. :) Jan 14 01:26:22 goodnight chainfire Jan 14 01:26:25 if i recall correctly Jan 14 01:26:28 dont chainsmoke Jan 14 01:27:08 DragonPunch: "If I recall correctly". Jan 14 01:27:38 When I used to say that, people often thought I'd meant "In Internet Relay Chat". Jan 14 01:28:04 llo Jan 14 01:28:06 lol* Jan 14 01:28:12 What is an argb number? Jan 14 01:28:19 argv? Jan 14 01:28:54 a method im using asks for a color Jan 14 01:28:58 int argb Jan 14 01:29:08 Hmm, some of the menu items on this page have captions with ellipses: http://www.google.co.uk/design/spec/components/menus.html Jan 14 01:29:09 argv is a convention in programming that goes back to the C lang Jan 14 01:29:18 Others don't. Jan 14 01:29:21 it refers to 'argument vector' Jan 14 01:29:31 drose379: Alpha-red-green-blue. Jan 14 01:29:38 drose379: "Alpha" refers to transparency. Jan 14 01:29:44 oh argb Jan 14 01:29:44 Where can I find the color codes for it Jan 14 01:29:53 hey is it viable to build apps for android using anything other than Java nowadays? Jan 14 01:29:58 I want to avoid webviews Jan 14 01:30:22 drose379: http://developer.android.com/reference/android/graphics/Color.html Jan 14 01:30:22 C# Jan 14 01:30:27 according to xanarim Jan 14 01:30:31 In practice, it's #aarrggbb Jan 14 01:30:38 e.g., #ff00ff00 Jan 14 01:30:50 so you could use c# for both android and IOS maybe sorta? Jan 14 01:30:59 http://puu.sh/euecH/469b571701.png Jan 14 01:31:01 Thank you, also have you ever worked with setLights method Jan 14 01:31:06 Never. Jan 14 01:31:10 yeah with xamarin Jan 14 01:31:15 For a notification? Jan 14 01:31:41 This also looks good: http://en.wikipedia.org/wiki/RGBA_color_space#ARGB Jan 14 01:31:42 what what lasserix ? :) Jan 14 01:31:44 nesoi: for a couple hundred bucks a seat, yeah Jan 14 01:31:57 s73v3r: what do you mean? Jan 14 01:32:09 xamarin costs money. Jan 14 01:32:40 oh xamarin. I looked at that and it wasn't clear you could use it for freely-distributed apps Jan 14 01:32:47 only for corporate within one company at a time Jan 14 01:35:14 Anyone here ever worked with setLights in the NotificationBuilder class Jan 14 01:36:35 s73v3r: is my info wrong? can you write mass-market (ie: freely distributed) apps with xamarin? Jan 14 01:36:38 It might be device-dependent, drose379. "Set the desired color for the indicator LED on the device, as well as the blink duty cycle (specified in milliseconds). Not all devices will honor all (or even any) of these values." Jan 14 01:36:59 i think you can nesoi Jan 14 01:37:13 who's using xamarin? Jan 14 01:37:14 You can use it for things you intend to put in either app store no problem. But you have to pay for a license in order to do so Jan 14 01:37:18 Ok Jan 14 01:37:39 i dont think you *have* to pay for a license yo ujust have to if the app is > a few kilobytes ;) Jan 14 01:37:42 s73v3r: on their site, the license types all seem to reference companies Jan 14 01:37:49 in terms of distribution Jan 14 01:37:52 drose379: Does your phone even have a notification-light thing? Jan 14 01:37:55 or did I misread it? Jan 14 01:37:56 those are probably site licenses intead of per seat nesoi Jan 14 01:38:00 I think I read that a lot of Samsung devices don't. Jan 14 01:38:19 "permitted use" Jan 14 01:38:19 Yes it does, but there is a flag I need to set for the LED to work, i just found out Jan 14 01:38:24 they tend to talk about companies, but even if it’s just you, you’re a company of one Jan 14 01:38:28 maybe that's just for the dev enbiroment? Jan 14 01:38:35 environment and not for app distribution? Jan 14 01:38:37 Its a constant Jan 14 01:38:52 https://store.xamarin.com/ Jan 14 01:38:56 wow xamarin is cheap now Jan 14 01:39:05 $25 / month Jan 14 01:39:05 paid monthly or annually Jan 14 01:39:12 look at the indie license nesoi Jan 14 01:39:19 How do I attach a constant Jan 14 01:39:24 it used to be $1200/seat now it's just $25/month nesoi Jan 14 01:39:43 drose379: What's the actual, specific question? :) Jan 14 01:39:46 or $83/month wwith VS support Jan 14 01:39:50 that's not too shabby Jan 14 01:39:58 i wonder what happens if you stop paying does ur app stop working? Jan 14 01:40:04 I looked at the license but it wasn't clear whether apps could be deployed for free or not Jan 14 01:40:06 A constant is just a named value, basically. Jan 14 01:40:16 I need to assign the constant Jan 14 01:40:18 Or set it Jan 14 01:41:39 hm. I don't really know java or c… just a bit of each Jan 14 01:41:49 i wish ihad a mac to test out xamarin on Jan 14 01:42:03 so it's unclear to me whether xamarin would be good to work with or not Jan 14 01:42:35 nesoi: If you're just doing Android, Java is the way. Jan 14 01:42:42 If you're doing Android and iOS, I have no idea. Jan 14 01:42:58 hmmm Jan 14 01:43:02 hey yo o/ Jan 14 01:43:11 well download it and try it Jan 14 01:43:17 In terms of Android documentation and stuff, it's all about and assuming the use of Java. Jan 14 01:43:35 which is easier to develop for, androd or IOS? ie: if I develop for one platform and then pay someone to port, which would be easier to port to? Jan 14 01:43:37 (Or at least a JVM language.) Jan 14 01:43:37 it's mostly for people that want to develop cross platform apps, or prefer C# Jan 14 01:43:38 Phonegap for android and ios ?? Jan 14 01:43:52 xamarin is an alternative to phonegap Jan 14 01:43:59 phonegap is more html ish Jan 14 01:44:29 yes... just an option if you dont have complex apps :) Jan 14 01:44:30 is xamarin .net only, or is it an html-fusion thing too? Jan 14 01:44:53 I was using phonegap but the webview is just too slow for a lot of stuff. for example displaying contacts. I have a few thousand contacts: how about 20-30 seconds wait time? Jan 14 01:44:58 TacticalJoke is there a way to attach a constant to my class? Jan 14 01:45:05 so I already built a lazy loader, but it's inconvenient Jan 14 01:45:19 grr this xamarin installer is dowloading the SDK 22.?? why? i have the sdk already Jan 14 01:45:20 drose379: I can't make sense of that question. What are you trying to do? Jan 14 01:45:30 nesoi: ouch. why that long? Jan 14 01:45:30 Im using the notification Class Jan 14 01:45:35 it has a list of constants Jan 14 01:45:38 I need to use one Jan 14 01:45:42 groxx: because webview Jan 14 01:45:43 nesoi: were you putting them all in the html or something? Jan 14 01:45:51 To use a constant in another class, just say "ClassName.CONSTANT_NAME". Jan 14 01:45:56 s/in/defined in/ Jan 14 01:46:25 groxx: that's how phonegap works Jan 14 01:46:32 Which constant are you trying to use, drose379? Jan 14 01:46:39 display is all webview unless you write a native plugin Jan 14 01:46:42 FLAG_SHOW_LIGHTS Jan 14 01:46:45 so mavrik why is rxstring in a different jar than the rest of rx? do I need it or just use the generic Observable? Jan 14 01:46:48 ok, bbl Jan 14 01:46:52 thanks for hints Jan 14 01:46:54 My IDE is telling me the symbol cannot be resolved Jan 14 01:47:06 The is a way to make EditText have some default format string like "00,00" so every value which is type will be automatically formated. Example i type "1234" so the edittext will show "12,34". but without have to set listerners? Jan 14 01:47:14 Okay. That seems to be "Notification.FLAG_SHOW_LIGHTS". Jan 14 01:47:53 Shit, I mixed up my class instances Jan 14 01:48:02 I was using the NotificationManager by accident :) Jan 14 01:48:22 I hate that naming style, on a side note. My mind auto-corrects it to "SHOW_LIGHTS_FLAG". Jan 14 01:48:48 abara: someone has probably already built something, but as a back-up you can read how some of the SDK's TextWatchers are implemented. https://developer.android.com/reference/android/telephony/PhoneNumberFormattingTextWatcher.html for example. Jan 14 01:48:53 Mine is saying "Not a statement" TacticalJoke Jan 14 01:48:58 abara: it feels like there's some other option too, but I can't remember it off-hand Jan 14 01:49:32 I'm guessing you're trying to use an identifier as a statement. Jan 14 01:49:46 groxx: yeah, i think someone should have done this already, but i dont know the exactly terms to search this thing '-' Jan 14 01:49:56 Oh, it has to be the actual name of the class Jan 14 01:51:20 Changed it to Notification.FLAG_SHOW_LIGHTS Jan 14 01:51:26 still giving me the not a statement Jan 14 01:51:43 hey guys hats the maximum amount of data you can send in one request Jan 14 01:51:55 like say my user want to transfer 20MB large file Jan 14 01:52:08 i base 64 encode it Jan 14 01:52:19 and send the string to my web server api Jan 14 01:52:25 for decode and storing prposes Jan 14 01:52:28 drose379: Those are the best errors. The compiler diagnoses the problem for us. :D Jan 14 01:52:57 Whats wrong with the code thats making it not a statement Jan 14 01:53:33 DragonPunch: probably isn't one. but hopefully you're not doing that by hand? just about everything has e.g. a form-POST API that supports file handles so you don't have to explicitly base64 it. Jan 14 01:53:35 You'd have to post the code for anyone to know. Jan 14 01:54:24 Line 13: http://pastie.org/9830610 Jan 14 01:54:42 DragonPunch: and unless your base64 encoding is being done on the stream, you're probably going to waste a ton of memory and have out-of-memory errors loading all that into RAM. Jan 14 01:55:16 I think you have to say something like "FinalNotification.flags |= FLAG_SHOW_LIGHTS;". Jan 14 01:55:26 Note that variable naming should use camelCase: finalNotification. Jan 14 01:55:32 20mb is not alot of ram though groxx Jan 14 01:56:13 DragonPunch: but a 20mb encoded as a base64 java string means something like double the ram, probably at a minimum (strings are UTF16 in java) Jan 14 01:56:16 i wont base 64 it than. ill just send as a form-POSt blah blah set boundaires and read the file and just output that file into my web server and save it ther Jan 14 01:56:23 okay okay groxx Jan 14 01:56:28 i wont base 64 encode it qtpie Jan 14 01:56:31 Oops, I mean "FinalNotification.flags |= Notification.FLAG_SHOW_LIGHTS;". Jan 14 01:56:39 but say its 20mb non b64 Jan 14 01:56:40 your web server can probably handle that a lot more efficiently too. file uploads are optimized for that kind of thing Jan 14 01:56:42 whats the |= Jan 14 01:56:50 I know, a classic learn java moment :) Jan 14 01:57:07 bitwise or-equals Jan 14 01:57:25 flags = current_flags | FLAG_SHOW_LIGHTS Jan 14 01:57:53 does retrofit automatically install rxjava if I install it from gradle? Jan 14 01:58:03 no Jan 14 01:58:14 you have to add a dependency seperately Jan 14 01:58:17 not a required dependency Jan 14 01:58:23 is there any way to see what other packages a gradle thing brings down either on maven central? Jan 14 01:58:32 so =| is different then == Jan 14 01:58:32 hey guys the maxLength attribute is not working on editexts? Jan 14 01:58:45 ok f2prateek_ then how does retrofit allow for use of Observable if it doesn't include rxjava by default? Jan 14 01:58:55 It's, as groxx said, a bitwise operation. It's also |= Jan 14 01:58:56 it has a provided dependency on it Jan 14 01:59:04 In this case, it is used to add a flag to some existing flags. Jan 14 01:59:11 drose379: it's the " | " equivalent of "+=" which adds to the current value. Jan 14 01:59:18 So it compiles against it, and at runtime, it checks if rxjava is available or not Jan 14 01:59:20 ah hrrm what's a provided depency f2prateek_ ? snippet? Haven't heard of that myself Jan 14 01:59:29 ok Jan 14 01:59:31 so it adds a flag? Jan 14 01:59:37 you can look at retrofits pom Jan 14 01:59:49 Yeah. If the flag already exists then nothing is changed. Jan 14 01:59:57 https://github.com/square/retrofit/blob/master/retrofit/pom.xml#L35 Jan 14 02:00:11 optional in maven = provided in android Jan 14 02:00:37 is there a way to query an rxjava collection and have it return all pojos of type T where T.getProp() == "Foo" ? how? Jan 14 02:00:40 Ok, I dont see anything of a flag method in the NotificationCLas Jan 14 02:00:44 It works using bits (binary digits). In binary, 1000 | 0001 = 1001. Jan 14 02:01:05 ah ok Jan 14 02:01:37 it's not often that people are willing to explain boolean logic here Jan 14 02:01:57 There's a whold section on filtering http://reactivex.io/documentation/operators/filter.html Jan 14 02:02:07 groxx: how would you deal with network latencies and such Jan 14 02:02:20 groxx: since uploading is a stream Jan 14 02:02:23 Thank you TacticalJoke && groxx Jan 14 02:02:44 '&' would've worked well in this context. :D Jan 14 02:03:06 (Bitwise AND.) Jan 14 02:03:09 DragonPunch: you let something like OkHttp do it for you, because almost zero people can do better than it can with anything they'd build themselves :) Jan 14 02:03:10 I thought && means and? Jan 14 02:03:19 ah, alright Jan 14 02:03:21 That's logical AND. Jan 14 02:03:22 groxx: lmao Jan 14 02:04:08 TacticalJoke hows your reddit client coming? Jan 14 02:04:18 groxx: what is okhttp? yet another networking library Jan 14 02:04:34 It's going pretty well. :) It feels like a lot of physical work, though (as opposed to intellectual work). Jan 14 02:04:41 yup they should have called it YANL DragonPunch Jan 14 02:04:42 So it's just tiring. Jan 14 02:04:44 networking is complex. but it's essentially "solved" for normal usage - upload as quickly as possible, hope for the best, there are precisely zero guarantees it will work when you want it to. Jan 14 02:04:47 Physical work? Jan 14 02:04:50 How do you mean Jan 14 02:04:59 Yeah, it feels like cleaning a house or something, rather than solving problems. Jan 14 02:05:17 DragonPunch: yeah. it's part of Square's github repos iirc, and it forms the foundation for networking on KitKat and newer OSes. Jan 14 02:05:18 The typing:thinking ratio feels high. Jan 14 02:05:24 hm, are you liking it? Jan 14 02:05:37 Yeah, it's rewarding because I really like the app. Jan 14 02:05:55 Cool, you gonna put it on the market? Jan 14 02:05:59 Yeah. Jan 14 02:06:04 Free? Jan 14 02:06:08 Ya. Jan 14 02:06:13 DragonPunch: there are other things built into Android, but they're all a pain to use, and even harder to use _correctly_ and efficiently. OkHttp will do a good job "out of the box". Jan 14 02:06:15 Free, no ads, no nonsense. Jan 14 02:06:16 TacticalJoke: you are wrong Jan 14 02:06:37 About what? Jan 14 02:06:54 doesn't matter. BAD TacticalJoke! Jan 14 02:06:59 groxx; thanks for ur recommendation. ill def use it than. Jan 14 02:07:14 groxx: you are also wrong Jan 14 02:07:26 I can live with this Jan 14 02:08:11 (╯°□°)╯︵ ssǝuʇɔǝɹɹoɔ Jan 14 02:08:17 lol Jan 14 02:08:21 That's pretty clever. Jan 14 02:08:23 dat emoji Jan 14 02:08:41 Now how come a notification LED would only work when the screen is turned off? Jan 14 02:08:51 hrrm weird i did talk to expensify a few yeras ago Jan 14 02:09:05 Does your phone ever show them when the screen is on? Jan 14 02:09:10 Yes, it dows Jan 14 02:09:12 does Jan 14 02:09:22 Shows the item, but light only goes when I shut the screen off Jan 14 02:09:28 drose379: apparently it depends on the device, but that definitely seems to be the case for phones I've used. turning on the screen turns off the notification light (presumably "you've seen it, turn off the notification" is the logic there) Jan 14 02:10:12 Makes sense I guess Jan 14 02:10:13 Thanks Jan 14 02:10:46 drose379: What app are you making now? Jan 14 02:11:55 Just something for pracrice Jan 14 02:12:17 One activity where the user enters their Name and email, goes to next activity, asks for name, checks DB, returns email Jan 14 02:12:27 if no match is found, returns "No match found" Jan 14 02:13:02 It asks for name and e-mail address and returns e-mail? Jan 14 02:13:03 Just setting a notification on reasponse from the server, for pracrice Jan 14 02:13:33 Well the first activity where it asks for name and email is like a _registration_ Jan 14 02:13:42 so the name and email combo are being saved to a database Jan 14 02:13:49 Ah, okay. Jan 14 02:13:56 Internal politics. Jan 14 02:14:05 Just practice HTTP,DB and stuff Jan 14 02:14:11 Looking for a fun app to make though Jan 14 02:14:30 I get the feeling you'd probably make a good app. Jan 14 02:14:40 Really? Thanks, how come? Jan 14 02:15:40 I guess you seem to advance quickly. Jan 14 02:15:54 You should make a Twitter client or something. :) Jan 14 02:15:59 Android needs a good one of those. Jan 14 02:16:09 how about a reddit client ;) Jan 14 02:16:19 haha Jan 14 02:16:20 You think the Twitter app sucks? Jan 14 02:16:24 Yeah. Jan 14 02:16:39 I haven't tried it in months, but the last time I tried it I despised it on my small(ish) screen. Jan 14 02:16:43 So much space-waste. Jan 14 02:16:55 Hmm, ok. Jan 14 02:17:09 Does reddit offer an API for developers to make apps? Jan 14 02:17:12 I think it had a split ActionBar, and the end result was I had a tiny view into what actually matters (the content). Jan 14 02:17:31 Yeah, it has an API that has fairly good documentation. Jan 14 02:17:33 no no Jan 14 02:17:36 It's also open-source, so you can check stuff. Jan 14 02:17:55 The main part of the API uses JSON, drose379. Though you can (if you're crazy) choose to use XML. Jan 14 02:18:25 JSON is something Ive started to use while learning java Jan 14 02:18:31 is it possible to backport 5.0's webview to 4.4 devices? Jan 14 02:18:35 Id like to get deeper knowledge of it though Jan 14 02:18:40 sadly, Java makes JSON as much of a pain to use as XML. Jan 14 02:18:58 with helper libs like GSON how is it painful? Jan 14 02:19:21 there are XML libs too, if you want to go that route :) Jan 14 02:19:24 f2prateek_ do you work for square also? Jan 14 02:19:53 Haha no Jan 14 02:19:57 TacticalJoke Im thinking of making a contact book application that runs on a MYSQL server Jan 14 02:20:09 Then I could make a web interface to go along with it Jan 14 02:20:17 and I'd say GSON is sufficiently complex internally that it can be called "a pain" at least on par with what most people do with XML. Jan 14 02:20:18 A contact-database thing? Jan 14 02:20:24 Yeah, basically Jan 14 02:20:27 though it has the benefit of already being created. Jan 14 02:20:28 Cool. Jan 14 02:20:59 I know google contacts does the exact same thing, but idk. Whenever I think of something, I get excited about the unique idea, then realize that google has already done it Jan 14 02:21:01 :) Jan 14 02:21:14 I wonder how much time it'd take to create a JSON implementation. Jan 14 02:21:38 Perhaps one that supports only DOM-building parsing. Jan 14 02:21:52 Don't Jan 14 02:22:24 is there any way to bundle the m39 webview with my apk? Jan 14 02:22:27 drose379: The thing about Android is that some stuff that has already been done sucks. So you're not totally reinventing the wheel. :D Jan 14 02:22:43 JakeWharton: What were groxx and I wrong about? I'd love to learn if I made a mistake. Jan 14 02:22:58 drose379: Though maybe that applies less to Google stuff; I'unno. Jan 14 02:23:30 Good point TacticalJoke Jan 14 02:25:56 Anyone worked with the filesystem before? Jan 14 02:25:59 To be honest, even basic things such as to-do-list apps aren't amazing, given what I've seen of Android to-do-list apps. Jan 14 02:26:07 I've never used a to-do-list app and thought "Wow, this is awesome". Jan 14 02:26:13 ColorNote is okayish. Jan 14 02:26:21 What are some things youd like from a to-do app Jan 14 02:26:30 (Ill take notes) :D Jan 14 02:27:10 I guess a hierarchical UI view would be nice. The ability to back data up on the device or "in the cloud", at any arbitrary point. Jan 14 02:27:37 so I can query an observable collection of pojos with rxjava right? Jan 14 02:27:39 It's been a while since I've used something other than Keep, so I can't think. Jan 14 02:27:50 Oh, categories. Jan 14 02:28:04 categories _and_ tags Jan 14 02:28:08 Yeah. Jan 14 02:28:19 and favorites, because Jan 14 02:28:22 TacticalJoke: I use Evernote for my todo lists Jan 14 02:28:33 I should try Evernote again; it's been a while. Jan 14 02:28:33 what about google keep SirLagz ? Jan 14 02:28:46 Sounds like a good practice idea TacticalJoke Jan 14 02:28:46 I wanted to love evernote but the windows client is awful it's like some visual basic crap Jan 14 02:29:00 HevvyMetal: I use it occasionally. I think Evernote is just a habitual use thing now Jan 14 02:29:05 Yeah, I'd say that sounds like a good first serious app. Jan 14 02:29:08 Update FYI incase someone was curious: earilier I asked about threads not being cleaned up. I ran the same code on PC and it was cleaning up the threads as expected. I then found a link indicating that android apps run in debug mode don't clean up thread objects (somehow ddms or eclipse holds on to references of the thread objects and stops the gc of gc'ing them). Jan 14 02:29:20 are you on windows sirlagz?' Jan 14 02:29:25 HevvyMetal: nope Jan 14 02:29:31 After finding the link i ran my app in run-as and dumped the heap afterwards, and everything was as expected :) Link: http://stackoverflow.com/questions/11640390/thread-objects-not-garbage-collected-after-being-finished Jan 14 02:29:33 NvrBst: cool Jan 14 02:29:35 TacticalJoke: in more seriousnessness, I prefer being able to apply multiple tags / categories (whatever you call it) to an item, so you don't have to come up with the "best" fit for something. Jan 14 02:29:49 Yeah, that's nice. Jan 14 02:29:57 NvrBst: d'oh. nice find, I didn't know about that one Jan 14 02:30:05 Should I try that before a contact list app? Jan 14 02:30:11 I fixed 2 of the memory leaks, and just (?this?) the 3rd is left. So i'll test it over night as run as and see if it is still an issue. :) Jan 14 02:30:20 Contact list is prob more basic, so I should start with that Jan 14 02:30:26 Im still a heavy noobis Jan 14 02:30:30 NvrBst: does "debug mode" mean "debugger attached", or "compiled with debuggable = true"? Jan 14 02:30:53 I think it means just debugger attached Jan 14 02:30:55 the thing I like about Evernote is that my wife uses my evernote account, so she can sync things to my phone, but she doesn't need to link anything else. Unlike Google Keep Jan 14 02:30:56 groxx: Does any to-do-list app have that feature? That'd be awesome. Jan 14 02:31:13 TacticalJoke: Evernote can do multiple tags per note Jan 14 02:31:14 because my manifest is still "debuggable=true" Jan 14 02:31:20 Oh, cool. Jan 14 02:31:41 I was thinking of an image pooling app Jan 14 02:31:56 TacticalJoke: dunno :\ fwiw for android + to do lists, I use https://play.google.com/store/apps/details?id=ch.teamtasks.tasks pretty happily. google task syncing, it's a pretty functional UI, and it handles LOTS + multiple accounts easily. Jan 14 02:32:13 drose379: What do you mean by 'pool'? Jan 14 02:32:16 yeah, Evernote does pretty much everything. Jan 14 02:32:24 Like multiple people can be hooked up to the same Database, they can all add/view the images. And add others to their "pool" Jan 14 02:32:36 Then they can save specific images to their local SD Jan 14 02:32:40 Or the whole album Jan 14 02:32:45 NvrBst: good to know. I don't think I've ever hprof-dumped while debugging. Jan 14 02:33:08 drose379: I know you're new, but honestly I would recommend diving into something you *want* to make. Jan 14 02:33:20 Because it takes so long to make any app. It's easy to waste months making something that you'll never use. Jan 14 02:33:40 And you think the learning on the way part is OK? Jan 14 02:33:42 Making a to-do-list thing wouldn't be that hard. And, by the time you're ready to implement advanced features, you'll be way more knowledgeable. Jan 14 02:33:55 Yeah, that's a necessity for anyone, to whichever degree. Jan 14 02:34:01 True, I think im gonna do that Jan 14 02:34:22 drose379: Do you use Mercurial or Git or something? Jan 14 02:34:26 https://android-arsenal.com/details/3/973 Jan 14 02:34:27 Git Jan 14 02:34:31 Okay, good. Jan 14 02:34:46 For version control? Jan 14 02:34:52 that reminds me, I need to get my codebase onto git...been putting that off for waaaaaay too long Jan 14 02:35:01 * SirLagz makes a note to do it when he gets home Jan 14 02:35:04 Yeah. Just asking because that makes a world of difference (and I wasn't sure how much you know about version control). Jan 14 02:35:25 Yeah I just use github Jan 14 02:35:29 Note: it may be just ddms attached (not debugger), from what it sounds like on that stackoverflow question. AKA eclipse may still be able to attach fine (or maybe not). Jan 14 02:35:42 I like github for sharing code too Jan 14 02:36:21 so a to-do app Jan 14 02:36:22 hmmm Jan 14 02:37:46 TacticalJoke what did you think about the image "pool" idea/ Jan 14 02:37:47 ? Jan 14 02:37:56 this guy uses _ as well Jan 14 02:37:59 see i'm not the only one Jan 14 02:38:01 Sounds interesting, but is that something a site like imgur already does? Jan 14 02:38:38 shows some cool rxjava Jan 14 02:38:40 Maybe, I just use imgur to upload images to host on the web Jan 14 02:38:58 Does it have an album feature where multiple people can upload to an album Jan 14 02:39:14 It has an album feature. Not sure whether multiple users can contribute. Jan 14 02:39:41 drose379: Is there some app which, if you made it, you'd use it all day every day and think "This is awesome"? Jan 14 02:40:09 Thats what I need, Ive been thinking about it but am having a hard time coming up with it Jan 14 02:41:14 Is that why your building a reddit client? Jan 14 02:41:17 Yeah. Jan 14 02:41:36 hmmm Jan 14 02:41:36 Though unfortunately I'm starting to like reddit a lot less lately. lol Jan 14 02:41:42 How come? Jan 14 02:41:49 I've written so much code now, though, that I'd continue even if I couldn't stand reddit anymore. Jan 14 02:41:57 Not sure. It feels like the content is getting less and less good. Jan 14 02:42:04 Of almost every subreddit. Jan 14 02:42:25 Either I'm getting boring or reddit is. Can't tell which. Jan 14 02:42:30 (Or both.) Jan 14 02:42:34 it's never been good :P Jan 14 02:42:34 hahha Jan 14 02:43:00 TacticalJoke: thinking http is easy Jan 14 02:43:07 Well Id like to do something that can be controlled on the desktop and on the phone itsself Jan 14 02:43:21 JakeWharton: I don't think that. ;o Jan 14 02:45:11 TacticalJoke now you got me goin crazy over thinking of a cool idea Jan 14 02:45:14 :) Jan 14 02:45:38 drose379: Think of your hobbies and things you do all day. Jan 14 02:46:01 e.g., if you're an avid chess player, a really nice chess client (supporting sites such as FICS) would be great for Android to have. Jan 14 02:46:29 Hmm, I kind of spend my days researching java Jan 14 02:46:32 ummmm Jan 14 02:46:39 In school Jan 14 02:47:06 drose379: This is often the most important part of the project. lol Jan 14 02:47:16 Right yeah Jan 14 02:47:19 am i that lagged? Jan 14 02:47:52 What about a daily planner thing Jan 14 02:48:03 Like a calendar app? Jan 14 02:48:03 I keep a daily plan of things I want to get done each day Jan 14 02:48:12 Something you fill in daily Jan 14 02:48:20 You can choose the priority of each item you put in Jan 14 02:48:41 fill them in throught the day, then when your done, hit build Jan 14 02:48:45 Yeah, that could be cool. Jan 14 02:49:00 And you could shape it to a very specific set of use-cases, maybe. Jan 14 02:49:10 Something that nobody else has done (or done well). Jan 14 02:49:31 hmmm Jan 14 02:49:42 Do you use a daily planner for your programming? Jan 14 02:50:06 Nah. I just use my bug tracker on Bitbucket combined with (temporary) // TODO comments. Jan 14 02:50:26 Though I would definitely be open to something like that. Jan 14 02:50:50 I guess I sometimes open a text editor for short-term tasks. Jan 14 02:50:51 Thanks for the help Jan 14 02:51:14 Most developers use an android phone anyway, this would be perfect for them :) Jan 14 02:51:29 Yeah, this does sound like the kinda thing that could be good if done right. Jan 14 02:51:39 Keyword: Done right Jan 14 02:51:41 Kinda like a calendar/to-do-list app with a specific focus. Jan 14 02:51:54 Youre an app genious Jan 14 02:52:37 How long have you been going on your reddit client? Jan 14 02:52:41 Even if you just created a calendar it could be welcomed if really good. I've never liked any calendar app I've used on Android. Jan 14 02:52:48 I'm not sure whether I'm an app genius. lol Jan 14 02:53:22 Just under nine weeks. Jan 14 02:53:25 sdk and vdm are giving me problems Jan 14 02:53:36 Is this your first serious project? Jan 14 02:53:42 For Android, yeah. Jan 14 02:53:47 when i launch an image it says it couldnt find emulator in the specified directory Jan 14 02:54:03 i checked the directory and it is in there Jan 14 02:54:06 whats going on Jan 14 02:54:25 Did you have a lot of Java experience before starting the project? Jan 14 02:54:38 Almost none. But a lot of C# experience. Jan 14 02:55:06 Do you code for a career? I think Ive asked someone this here before and everyone got pissed at me lol Jan 14 02:55:08 Yeah, I'm just learning as I go. Jan 14 02:55:14 Nah, I don't. Jan 14 02:55:22 Really? Not even realted? Jan 14 02:56:40 Just a hobby Jan 14 02:56:49 C#/.NET are very similar to Java/Java, so I guess that qualifies as related. Jan 14 02:57:09 Or "Java/JRE", I guess. Jan 14 02:57:44 Howd you get into android dev? Jan 14 02:57:57 (Or "Java(ish)/Dalvik|ART". Or something.) Jan 14 02:58:35 Hobby since childhood. :) Jan 14 02:58:56 Good stuff Jan 14 02:59:40 I gotta write down my ideas for that daily planner app Jan 14 02:59:56 You should write them in your daily planner a... Wait. **** ENDING LOGGING AT Wed Jan 14 02:59:59 2015