**** BEGIN LOGGING AT Mon May 04 02:59:59 2015 May 04 03:01:01 Still looking for a solution to a bug caused by enabling minify in gradle. May 04 03:01:14 One libary seems to get screwed up and no longer work after minification May 04 03:02:02 Guessing it's a class re-naming issue that doesn't jibe with some JNI. Google library. Not sure if it uses native. May 04 03:02:55 knapper_tech: Find the problem, add an exclusion in the proguard rules May 04 03:02:57 Do what my friends recomend? I'm reading a book and its saying to program to an interface and not an implementation. I'm redoing the networking in my app, so I thought this would be a good place to start? What do you mean wrong interface? Cloneable is the only thing that OkHttpClient impelemnts May 04 03:03:23 eghdk: In this case, you can't program to an interface. I'll explain May 04 03:03:50 CedricBeust, the bug doesn't throw an exception, just 404's requests. Can I exclude the entire library in proguard? May 04 03:03:50 Thanks. I appreciate it. May 04 03:04:10 Say you have class Dog implements Animal, you should then be writing "Animal a = new Dog()" instead of "Dog a = new Dog()". May 04 03:04:32 In this case, I mistakenly assumed that OkHttpClient implemented an HttpClient interface, as its name hints May 04 03:04:34 Yeah. And that would be good. because.... polymorhpism? May 04 03:04:34 I was wrong May 04 03:04:50 eghdk: Yes, it's especially important for parameter types May 04 03:05:23 Another example is List l = new ArrayList<>() May 04 03:05:41 and not ArrayList l = new ArrayList<>() May 04 03:06:21 Gotcha. So it makes sense why I'd want to easily swap out the right side of the = May 04 03:06:36 So should I try to do that for networking and OkHttpClient May 04 03:06:50 No you can't for OkHttpClient, just use that type May 04 03:06:51 Or should I make a wrapper around OkHttpClient May 04 03:07:43 CedricBeust, looks like it worked. thanks May 04 03:12:10 CedricBeust: I'm still confused why I can't use Cloneable though. It is a valid interface from OkHttpClient May 04 03:12:33 Yes it's absolutely valid, it's just useless here May 04 03:14:21 OkHttpClient is the most abstract class you can use that can give you the functionality you need May 04 03:18:45 Also, CedricBeust or JakeWharton I am trying to have okhttp keep retrying even when theres no connection... and do so for 10 seconds. But when I have no data/wifi onFail automatically gets called even if I setConnectTimeout(10, SECONDS); IDeas? May 04 03:19:43 I tend to implement my heartbeats and retry logics at the application level, not at the http client level May 04 03:20:21 I have a generic ConnectionManager class that just needs to be told how to connect and how to send pings() and it takes care of sending the heartbeats and/or retryingconnections with exponential backoffs May 04 03:21:48 Ok. I'll probably implement the same. I know I could do it, but I thought maybe there was a retry flag that I wasn't setting. May 04 03:47:50 DNS lookup probably fails immediately May 04 04:01:02 why does okhttpclient implement cloneable, who ever uses clone? May 04 04:05:55 Yeah it's pretty bizarre May 04 04:06:27 Probably used to a quick prototyping and creating a new client with slightly different properties May 04 04:06:59 Ok in English again: probably used to achieve a cheap prototyping imitation May 04 04:38:20 clone should have been nuked from java May 04 04:39:03 or at least somewhat fixed in 1.5 May 04 04:40:11 pfnQ: arent you using scala case classes ? ;) May 04 04:40:36 sure, but copy is better than clone May 04 04:41:57 in all regards May 04 04:43:59 Not easy to use a method that all objects use :) May 04 04:44:08 Not easy to remove a method that all objects use :) May 04 04:44:29 no one uses it, and it was a mistake to throw it on object May 04 04:47:44 hm, is there any accepted way to communicate something is long clickable ? May 04 04:48:37 no May 04 04:48:49 no accessibility hint or anything ? May 04 04:51:15 long clickable for what action? multiselection? May 04 04:51:40 yes May 04 04:51:51 action modes, etc May 04 04:51:59 not using a list? or using list? if latter i thought long clickable meant multi May 04 04:52:11 or went hand and hand May 04 04:52:26 i'm using recyclerview but ... thought i saw something in here http://developer.android.com/guide/topics/ui/accessibility/index.html May 04 04:53:13 for users with disabilities of some sort? May 04 04:53:58 long click is something of a black sheep May 04 04:54:23 but for lists it isn't is it? thought always mean action modes May 04 04:54:41 not all lists are long clickable May 04 04:54:47 whatitis no ... in my past version, i had a seperate screen for creating "filters". but i'd like to remove that, and just have the user multi-select the items in front of them and then use action-mode "Create filter from selection", etc May 04 04:54:59 and you see enough lists that aren't long clickable you stop long clicking May 04 04:55:29 g00s, oh that link you posted was more towards making things more accesible for users that make have difficulties physically May 04 04:55:30 g00s, if multi selection is possible, make it obvious by adding check boxes May 04 04:55:41 make = may May 04 04:55:57 ^ there's a good idea if it doesn't clutter too much May 04 04:56:00 g00s, or add a selection mode May 04 04:56:21 gallery is an example now, checkboxes for selection May 04 04:56:26 pfnQ yeah that would make sense, but this is a dashboard of data, numbers, graphs - ia checkbox is kinda out of place May 04 04:56:39 * g00s looks at gallery May 04 04:56:40 pfnQ, after long click? or always visible? May 04 04:57:14 on my tabs it depended on orientation, landscape had check boxes for selection,portrait needed long click, but this was file browser May 04 04:57:34 samsung tablets* May 04 04:58:40 i'm in gallery but don't see any affordances for long-click entering multiselect / action modes May 04 04:58:51 must be +photos May 04 04:58:52 g00s, if ya get a chance maybe post some screenshots of what you have now, and someone maybe able to chime in tweaking a bit if you don't come up with somethin May 04 04:58:58 menu to enter select mode May 04 04:59:10 and checks once selected, oh well May 04 04:59:16 not quite what I remember May 04 04:59:18 pfnQ oh i see now, "Select item" May 04 04:59:32 d'oh May 04 04:59:44 did pfnQ win the internet? May 04 04:59:52 yes he did :D May 04 04:59:54 haha May 04 05:12:43 selectableItemBackground gives me a simple grey, is there any way to easily tint it ? May 04 05:13:03 for example, selecting items in gallery seems to put a nice blue overlay May 04 05:13:15 * g00s hates making own state lists May 04 05:14:49 hm, maybe that comes from colorControlNormal May 04 05:18:08 so I am attempting to wrap my head around broadcast receivers. can I set com.thekarlbrown.br1.MYACTION as an action to intent-filter for? May 04 05:18:25 Anyone want to work in Seoul? May 04 05:18:34 for static registration of my broadcast receiver May 04 05:18:52 knapper_tech what kind of work May 04 05:19:52 TheKarlBrown_, using everything Jake Wharton generously contributes, lots of client-server Java in Android and RxNetty, potentially some Rust dev coming up. May 04 05:20:37 I need everything from lead engineers to people hooking up RTL and translation string support May 04 05:26:22 That sounds awesome but I am tied to States for a while due to fiance about to take LSAT then law school May 04 05:28:02 oh boy, law school sounds ... like quite a gamble May 04 05:30:19 Why is law school a gamble g00s? Babydoll is going, not me May 04 05:31:30 http://www.nytimes.com/2015/04/27/business/dealbook/burdened-with-debt-law-school-graduates-struggle-in-job-market.html?_r=0 May 04 05:31:41 http://qz.com/358929/law-school-enrollment-decline/ May 04 05:31:55 g00s, why you not like making state lists? I make em for everything everywhere i can, cause i hate default state lists :) May 04 05:33:15 TheKarlBrown_ and http://www.theatlantic.com/features/archive/2014/08/the-law-school-scam/375069/ May 04 05:33:32 g00s, we know that and are intentionally not going into student loan debt May 04 05:34:10 g00s, TheKarlBrown_ I should mention that the jobs are at a startup, so it's not without risk =) May 04 05:34:26 she has a 3.87 gpa and a degree is theatre May 04 05:34:27 I have some pictures of my roaming around Seoul for interested parties May 04 05:34:44 TheKarlBrown_, seems like law school is quite the income upgrade May 04 05:34:44 TheKarlBrown_ the problem seems to be collapsing demand though May 04 05:34:53 MBA demand is up I heard May 04 05:35:07 MBA May 04 05:35:10 is a joke degree May 04 05:36:05 knapper_tech hmm, maybe in Seoul -- not so sure about here in the US May 04 05:36:06 I've been to entrepreneurial events, had conversations with people at T1 colleges, and observed what MBA influxes do to markets, and I think business is a bad major, and MBA's are silly May 04 05:36:18 I read that MBA's were getting hired a lot recently in the US May 04 05:36:28 I don't honestly know much about Seoul. I get all my news in English May 04 05:43:19 well yeah I dont know May 04 05:43:30 I believe she has the power to do well May 04 05:43:42 But I think I am going to remind her of how important it is to specialize and stand out May 04 05:44:22 She has already been steadfast in getting a huge scholarship, and your articles make me think this more than ever May 04 05:44:24 ((AppCompatActivity)getActivity()).startSupportActionMode(actionModeCallback); gross i hate those casts May 04 05:44:25 We deal with a lot of law at my company with just a few employees. Would we hire an MBA? Maybe after like...100 employees. May 04 05:44:41 MBA's are a joke May 04 05:44:47 whoes articles? May 04 05:44:57 g00s send a ton of em May 04 05:45:03 oh earlier May 04 05:45:08 yeeeee May 04 05:45:25 those articles were about lay school lol May 04 05:45:28 *law May 04 05:46:14 Feel free to pass any references my way for Android devs looking to GTFO of wherever they are at. I'll train happily if they pick up things quickly and do a good job. May 04 05:46:38 I know g00s May 04 05:46:40 Lots of spicy food and hiking May 04 05:46:56 knapper_tech do you have a linkedin? or way to send em on? May 04 05:47:00 TheKarlBrown__ and there have been some big changes, like e-doscovery May 04 05:47:08 damn it, e-discovery May 04 05:47:45 so she needs to be cutting edge! May 04 05:48:14 She is looking into labor employment law May 04 05:48:26 e-discovery is huge I heard. Lots of legal teams play cold war with obfuscating the discovery process and using e-discovery to un-screw it May 04 05:56:36 i think ibm is using watson for that May 04 05:56:42 or selling it as a service May 04 05:57:36 lol, lay instead of law works too May 04 06:02:24 thepoosh ! May 04 06:02:24 !!! May 04 06:02:52 hi, does anyone know if the system volume is done in hardware or in software? May 04 06:04:55 spots: what do you mean? May 04 06:05:08 it's a control that you pass as an argument to the soundpool manager May 04 06:05:29 and the soundpool manager adjust the volume? May 04 06:05:51 it plays with the requested volume, have you read the documentation? May 04 06:05:55 g00s: what's new? May 04 06:06:07 so if i play music and adjust the volume, is that done in software or hardware? May 04 06:06:39 if you consume the onKeyDown event, it's done by you, if not by the system May 04 06:06:50 spots, all sound mixing/volume is done in software May 04 06:06:55 i think you are misusing the term "hardware" May 04 06:07:10 thepoosh: hardware, controlling the amplifier May 04 06:07:14 ravilov: i think he meant programmatically or systematically May 04 06:07:26 I think he meant in terms of sound boards on PCs May 04 06:07:37 spots: nothing happens in the hardware May 04 06:07:43 ravilov: thanks, where can i find information on that? May 04 06:07:54 thepoosh hm, trying to figure out why windowActionBarOverlay">true is not dissapearing my toolbar when action mode is enabled May 04 06:08:09 spots, google "android stagefright" May 04 06:08:39 thepoosh, like, does the software change the output waveform in-memory, or does it just tell the hardware to lower the output gain May 04 06:08:53 i think that in api > 21 it's behind the toolbar May 04 06:09:11 oh May 04 06:09:20 well, I would read the code for that May 04 06:09:21 ravilov: what is the name of lowest api/daemon that handles the software mixing? May 04 06:09:32 spots, no idea, some system service May 04 06:09:35 probably just "media", lol May 04 06:09:41 thepoosh i'm having this problem http://stackoverflow.com/questions/26443403/toolbar-and-contextual-actionbar-with-appcompat-v7 May 04 06:10:26 ravilov: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.2_r1/android/media/SoundPool.java#609 May 04 06:11:02 thepoosh, that still doesn't show what happens behind the scenes ;) May 04 06:11:23 it's a native lib call, and the lib can do anything May 04 06:11:55 yeah, but the lib is open sourced as well May 04 06:11:59 i found that lowering the volume on an Nexus 5 results in truncation. seem like the amplifier is set to 'max amplification' and the volume is adjusted in software May 04 06:12:02 at least for the nexus devices May 04 06:12:39 but sound output on android has to be done in software using a background service, nothing else makes sense. otherwise android couldn't play from multiple audio sources all at once May 04 06:12:47 not so consistently across all the various devices at least May 04 06:13:04 https://android.googlesource.com/platform/frameworks/base.git/+/71f2cf116aab893e224056c38ab146bd1538dd3e/media/jni/soundpool/android_media_SoundPool.cpp May 04 06:13:31 sounds about right May 04 06:13:51 the mixing is done in memory and a single channel is played at any given moment May 04 06:14:12 g00s: that looks sucky May 04 06:14:33 yeah, typical android, every damn thing takes 2 hours + SO May 04 06:14:42 :S May 04 06:14:43 i wanted to support this 'statement' with a reference, but couldn't find any May 04 06:14:59 why the heck can't this just work May 04 06:14:59 unless you ask pfn, in that case everything takes 2 minutes and you're stupid May 04 06:14:59 thepoosh, *sounds* about right... no pun intended, right? :p May 04 06:15:07 lol May 04 06:15:19 thepoosh, sounds about right May 04 06:15:25 i knew it! May 04 06:16:00 spots, maybe it's just your device? I'd confirm by making a full backup and flashing another ROM May 04 06:16:30 * pfnQ goes back to pondering how to encapsulate state in android May 04 06:16:54 pfnQ, that's a 2 minute job, you stupid May 04 06:16:55 * ravilov hides May 04 06:17:02 LOLL May 04 06:17:54 yeah, you go and write all your code to be referentially transparent in 2 minutes May 04 06:17:59 How would one go about remote controlling programatically the Android application, Ingress in order to build upon it with methods? May 04 06:18:40 i tried both android:windowActionBarOverlay and no-prefix windowActionBarOverlay = true ... hmmmmm May 04 06:20:26 does android use alsa? May 04 06:21:27 http://www.wired.com/2015/05/im-terrified-tell-people-much-make/ May 04 06:21:46 hmm, but she doesn't say how much she makes at the end May 04 06:22:37 spots, no May 04 06:22:49 at least I don't think so May 04 06:23:28 Check out @adriarichards's Tweet: https://twitter.com/adriarichards/status/594365313182879745?s=09 May 04 06:23:34 wow, that's terrible May 04 06:23:46 speaking of, now to google that person May 04 06:24:39 Oh, that dongle business May 04 06:25:03 that sounds dirty May 04 06:27:39 I suspect she had a big chip on her shoulders but based on her tweets, she seems to have a whole list of them May 04 06:28:17 <_genuser_> who has a chip on her shoulder? May 04 06:28:20 <_genuser_> some plitician? May 04 06:29:13 who is adriarichards, why do we care May 04 06:29:36 She got famous in the wrong way May 04 06:29:40 CedricBeust: chip with its own gravity well May 04 06:30:27 <_genuser_> wait, it seems like it's about gender ineaquality for pay. May 04 06:31:04 <_genuser_> I thought an independent research had proven a few years ago that women in IT are only 6% behind men. not 30% as the feminists normally claim. May 04 06:31:21 Operations/Finance/General Startup Ace, 14 years experience, currently at 4th FT Bay Area startup job $85k/yr. #talkpay May 04 06:31:25 ouch May 04 06:31:31 that's rough May 04 06:31:35 pfnQ: http://www.cbsnews.com/news/techie-adria-richards-fired-after-tweeting-about-mens-comments/ May 04 06:32:14 <_genuser_> couple that with this new claim the women don't negotiate as well, then it's not so much about discrimination but about a situation that's just so because it is. May 04 06:32:33 <_genuser_> pfnQ: bay area? 85/year in bay area is like peanuts, no? May 04 06:33:58 _genuser_, yeah, it's not much May 04 06:34:21 considering homes are hitting well over the million dollar mark for a cottage May 04 06:34:43 oh yeah i remember that ... 3013 May 04 06:34:47 *2013 May 04 06:34:58 <_genuser_> pfnQ: this woman in teh linked article is talking about not negotiating and blah blah. May 04 06:35:07 14 years experience, that person has got. to have a shit ton of equity May 04 06:35:11 <_genuser_> pfnQ: reddit ceo is banning salary negotiatinos because women don't do so well. May 04 06:35:12 or I'd hope so May 04 06:35:29 <_genuser_> but even I didn't negotiate when I started, and I'm a guy. May 04 06:35:57 reddit ceo sued Kleiner Perkins and lost May 04 06:36:08 _genuser_: you work for reddit? May 04 06:36:10 <_genuser_> year 14yrs of experience at least software dev would make more. this guy seems to be just a facilities manager. May 04 06:36:35 <_genuser_> thepoosh: no, it was in teh news. the CEO (female) was quite (almost angry) insistent that salary negotiations hurt women. May 04 06:36:49 <_genuser_> pfnQ: kleiner perkins? should I google this? May 04 06:37:00 _genuser_, recent news May 04 06:37:25 Can anyone help me I was following a guide and then this command came up sudo chcon u:object_r:system_file:s0 bootanimation.zip chcon: invalid context: u:object_r:system_file:s0: No such file or directory - as you can see it outputeed an error anyone kno why or what it might have intended to say? May 04 06:37:51 Haxxa, wrong channel May 04 06:37:51 <_genuser_> Haxxa: you're rooting yoru phone? May 04 06:38:13 wrong channel indeed May 04 06:38:23 <_genuser_> pfnQ: when I started, friend who referred me to the job told me to ask for 55,000 at least. May 04 06:38:47 <_genuser_> I thought the hiring manager would see me for the n00b that I am (and it was an entry level position), and not even hire me if I ask that much. May 04 06:39:12 <_genuser_> and now I think it was a big mistake. it took me that much longer to move up with measly 5% raises per year. May 04 06:39:28 move up by moving jobs May 04 06:39:36 it's not the 5% raises that get you more money May 04 06:39:39 it's the new jobs :) May 04 06:39:40 pfnQ speaks the truth. May 04 06:39:49 Best way to get a raise is to switch jobs. May 04 06:40:02 Or work for yourself. ;-) May 04 06:40:08 <_genuser_> pfnQ: so true. for years I was tied to this one and just stayed. now I'm ok looking, but it's comfort vs. pay. May 04 06:40:25 comfort is never a good reason to stay May 04 06:40:33 unless you have a family to support May 04 06:40:35 <_genuser_> agreed. it's really laziness. May 04 06:41:00 <_genuser_> well, I have a mortgage, and financial obligations. so it does make me think, hey why mess with a paycheck. May 04 06:41:05 then you build up the cushion to move May 04 06:41:25 <_genuser_> but on the other hand, I look back at the last 10 years and think I could have taken some risks and moved, etc. May 04 06:41:45 <_genuser_> yep, so true about the cushion. hence why I'm keeping my almost 10yr old car. keeping older bike, etc. etc. May 04 06:42:03 <_genuser_> altho, this new car guy almost sold me a car a few weeks ago. May 04 06:42:07 now move to a trailer :p May 04 06:42:19 ravilov: done :p May 04 06:42:42 JesusFreke is clearly commited to building up his cushion May 04 06:42:48 JesusFreke you live in a trailer? May 04 06:42:53 g00s: I do May 04 06:43:03 JesusFreke what kind, i'm curious May 04 06:43:06 although, trailer parks in the bay area aren't quite the same as in the south :) May 04 06:43:10 <_genuser_> ravilov: new trailer? where do you find these trailors? May 04 06:43:25 g00s: a super crappy (and super-cheap!) old 70's era single-wide. May 04 06:43:25 i imagine a plot with a unicycle May 04 06:43:31 nah, just squat in someone's abandoned trailer May 04 06:43:38 <_genuser_> well anything in the bay area would be crazy expensive, no? May 04 06:43:53 _genuser_, that must be exactly why he's living in a trailer, no? :p May 04 06:44:01 <_genuser_> lol squat. that's the best kind of domicile. even the law can't kick you out. May 04 06:44:04 _genuser_: it's pretty reasonable. although I've heard the lot rent has skyrocketed in this park in particular, for new tenents May 04 06:44:08 JesusFreke, so you're saying you're NOT white trash? :p May 04 06:44:24 <_genuser_> he hasn't said that yet! May 04 06:44:29 <_genuser_> don't put words in his mouth? May 04 06:44:33 oops May 04 06:44:45 ravilov: well, no rusting cars up on blocks. does having rusting unicycles in my lawn count? May 04 06:44:57 nah, sorry May 04 06:44:59 <_genuser_> unicycles... that's more a circus connection. May 04 06:45:17 were you a circus freak in your past life? May 04 06:45:18 JesusFreke, mobile home? now? yuck May 04 06:45:27 JesusFreke, yeah, rents are stupid noe May 04 06:45:30 pfnQ: definitely. best choice I ever made May 04 06:45:44 JesusFreke you just need this hooked up to your unicycle May 04 06:45:46 http://www.gizmag.com/wide-path-camper/34644/ May 04 06:45:53 If the user has no G+ profile cover photo, how can I show a generic photo in the nav drawer like Gmail does? May 04 06:45:59 Is there any library or license free repo of these cover pics? May 04 06:46:03 JesusFreke, really? or being sarcastic May 04 06:46:16 I'm living quite cheaply, and making a great salary = lots to put back into savings, and still have more than enough for fun stuff. May 04 06:46:23 how in the world does that fit two adults... May 04 06:46:36 JesusFreke, are you also single? May 04 06:46:40 <_genuser_> lol, you guys are seeing #talkpay trending? May 04 06:46:41 because paying like 1500/mo in rent/mort for a 50k trailer is steep May 04 06:46:44 ravilov: yes :p May 04 06:46:48 figures :p May 04 06:46:49 <_genuser_> my twitter feed shows #plussizeappreciation. May 04 06:46:54 <_genuser_> once you see it, hard to unsee.... May 04 06:47:01 pfnQ: right. my rent and trailer are both cheaper than that. May 04 06:47:04 <_genuser_> https://twitter.com/hashtag/plussizeappreciation?src=hash May 04 06:47:27 if i could afford a ford transit , i'd try to live out of that :P May 04 06:47:37 if I moved into this park now, that's what I would be paying for rent May 04 06:47:39 * ravilov feels no need to click on that link May 04 06:47:45 <_genuser_> women can be so dumb. say something #fatPeopleAreCool, and tons of naked chicks start posting pictures. May 04 06:47:50 JesusFreke, lucky you, I guess, someone I know in san jose has a tiny single wide and pays like 1200/mo May 04 06:47:56 but I moved in a few years ago, and they can only raise the rent by.. 5% a year. something like that. May 04 06:47:59 <_genuser_> ravilov: I double dog dare you! May 04 06:48:10 pfnQ: it's sub $1k May 04 06:48:26 although it is a tiny single wide as well. heh May 04 06:48:32 <_genuser_> JesusFreke: wait, wow, that's pretty cool. for trailer AND lot? May 04 06:48:40 _genuser_: oh, I just bought the trailer outright May 04 06:48:51 _genuser_, ok I did, I see nothing wrong with any of that May 04 06:48:52 <_genuser_> JesusFreke: how do you connect ot the interwebs? May 04 06:48:54 and pay rent on the lot May 04 06:49:00 it's just people being comfortable with who/what they are May 04 06:49:03 _genuser_: ... the same way you do, I would guess. May 04 06:49:06 I support that May 04 06:49:19 <_genuser_> ravilov: most of it is kinda cute girls. it's the flabby butts now and then that are kinda... dude, why? May 04 06:49:20 I have at&t's dsl May 04 06:49:38 pft, no analog modem? May 04 06:49:41 <_genuser_> JesusFreke: oh, so ISPs do have drops to individual lots on trailor park lots. cool. May 04 06:50:00 _genuser_: yeah, I can get dsl and cable, etc. May 04 06:50:12 <_genuser_> JesusFreke: mine's a FiOS line. I wish I could just do regular dsl. May 04 06:50:15 <_genuser_> it would be cheaper May 04 06:50:16 JesusFreke what are your neighbors like :P May 04 06:50:23 _genuser_: I wish I could get fios :p May 04 06:50:29 g00s, does it matter? he can always change neighbors easily :p May 04 06:50:47 i didn't mean it that way May 04 06:50:49 g00s: about half is roughly the same demographic as me. the other half, mostly retirees May 04 06:50:57 <_genuser_> JesusFreke: well, I have 50Mbps, and it was costing me 70. And netflix streams just fine on this as it did on a 1Mbps connection with cable. May 04 06:51:13 <_genuser_> I recently talked Verizon down to $56/mo May 04 06:51:31 although, all of my immediately neighbors fall into the latter May 04 06:51:37 immediate* May 04 06:51:47 _genuser_, mobile home parks here are completely connected to utilities May 04 06:51:49 that's ok, soon enough you'll join them, right? :p May 04 06:51:51 JesusFreke, ^ May 04 06:52:19 JesusFreke so its pretty peaceful probably May 04 06:52:28 <_genuser_> pfnQ: yeah it's the "trailer trash" words, that cast this image of the entire lot being disconnect from the world. May 04 06:52:33 g00s: yeah, it's a pretty quiet neighborhood May 04 06:52:38 very little crime, etc. May 04 06:52:41 _genuser_, pretty much May 04 06:52:42 JesusFreke, just out ouf curiosity, what demographic would that be? May 04 06:52:56 ravilov: young (ish) tech worker May 04 06:52:56 but mobile home parks here are very crowded neighborhoods May 04 06:53:08 and they're mostly vietnamese May 04 06:53:20 <_genuser_> so the trailers are just headless RVs no? May 04 06:53:27 no May 04 06:53:27 not really May 04 06:53:29 young-ish... I see ;) May 04 06:53:32 they're mobile homes May 04 06:53:43 they are immobile May 04 06:53:54 <_genuser_> oh, so to transport it, you really got load them on the back of a big truck using a crane or somethign. May 04 06:53:55 pfnQ, like, wheels off and on cinder blocks? :p May 04 06:54:00 manufactured homes, better word for it May 04 06:54:08 <_genuser_> ah, that explains it. May 04 06:54:09 _genuser_: they do have axles May 04 06:54:20 it's part of their structural support :p May 04 06:54:34 but moving them is a.. big task. May 04 06:54:36 <_genuser_> interesting. I thought manufactured homes didn't have all that stuff. May 04 06:54:41 <_genuser_> but I guess things get updated, etc. May 04 06:54:51 I've never seen axles on them... May 04 06:54:53 Guys, maybe a topic for a different channel? May 04 06:54:58 never looked, I supposr May 04 06:55:00 <_genuser_> I kinda thought about buying a Ford Flex and living out of it for a while. May 04 06:55:11 <_genuser_> you buy new with warranty and travel the country. May 04 06:55:19 * ravilov moves to #trailers-ftw May 04 06:55:38 <_genuser_> CedricBeust: but then this channel would be dead and newcomers would think nobody was here to help!! May 04 06:55:58 _genuser_: or it would be filled with insightful discussions about Android dev like it's been for months? May 04 06:56:05 it's late, everyone's done with their coding tonight May 04 06:56:07 _genuser_, what's wrong with that? May 04 06:56:18 pfnQ, it's early morning for some May 04 06:56:20 <_genuser_> CedricBeust: uhoh, busted. :) May 04 06:56:46 ravilov, for some that don't matter ;) May 04 06:57:26 <_genuser_> it's night for me and I've been coding away at nights. I didn't start today because I'm try to sleep tonite. May 04 06:57:27 pfnQ, go sort out your state encapsulation :p May 04 06:57:29 <_genuser_> early. May 04 06:57:49 _genuser_, too late for that :p May 04 06:58:06 <_genuser_> it's 2am, gonna quite by 3am. May 04 06:58:14 <_genuser_> I'm tackling zooming issues on images on android. May 04 06:58:19 so you say... May 04 06:58:29 <_genuser_> and looking into decoding given regions. May 04 06:59:01 <_genuser_> and trying to determine when an image is zoomed, what percentage it's at and what region it's showing. then get that rect and try to decode that part as bitmap in high-res. May 04 06:59:17 right May 04 06:59:18 <_genuser_> not to mention trying out different image conrol that can zoom/pan May 04 06:59:23 good luck dealing with that by 3am :p May 04 06:59:23 what view are you using that gives you those details? May 04 06:59:35 <_genuser_> ravilov: well, I'm thinking of not starting on it tonite. May 04 06:59:44 <_genuser_> whatitis: asking me? May 04 06:59:47 ye May 04 06:59:50 s May 04 07:00:01 [02:59] <_genuser_> and trying to determine when an image is zoomed, what percentage it's at and what region it's showing. then get that rect and try to decode that part as bitmap in high-res. May 04 07:00:03 <_genuser_> I'm using TouchImageView by Mike Ortiz. I think that's his name, May 04 07:01:01 <_genuser_> it's on github. it does all of the zoom pan. Now I'm looking at the source code to see if I can extend it to determine the zoom level and area in view when the zoom in happens. May 04 07:01:27 whatitis, an image zoomer? May 04 07:01:39 knapper_tech, cool May 04 07:01:52 whatitis, what's problem? May 04 07:02:09 taking image zoomer and making it ez May 04 07:02:50 aside from just import library.x, compared to knowing what you are doing and making it happen yourself on a level of detail needed for your own app May 04 07:03:14 whatitis, I used Sephiroth library. I'm sure there's some hooks or a logical place to send data to a listener May 04 07:03:42 cool knapper, you just put yourself in it, good for you May 04 07:04:03 <_genuser_> the zoomer seems like it will just zoom in the view to make it fullscreen. May 04 07:04:46 <_genuser_> now, have you any experience with it to know if it will actually zoom into a 1920x1080 image to 100% view? so you can zoom in and see finer details. May 04 07:05:28 zoom into 100% of an image? isn't 100% just the image? May 04 07:05:53 <_genuser_> I should say 100% meant the real size. May 04 07:06:30 maybe 100% of 10% of 20% of 30% of 42% of 9%? May 04 07:06:34 <_genuser_> so in that case on phone screen, you'd only see a small portion of the 1920x1080 image. You'd have to scroll sideways and downwards to keep seeing the rest. May 04 07:07:24 100% of your question is detailed 110% on SO or others. you aren't the first,but i'm lost between you and knapper jumping in May 04 07:07:48 who has the question? May 04 07:07:58 u and him? May 04 07:08:00 and me May 04 07:08:14 <_genuser_> yep yep, I've gone thru all those. and that's why I downloaded a few libraries to try them out. May 04 07:08:45 <_genuser_> I think I like TouchImageView the best so far. It can zoom a little bit. Not all the way into a 1920x1080 or higher res image. May 04 07:08:52 what are you zooming? May 04 07:08:54 For what it's worth, Sephiroth zoomer was not bad at all. I used it with Picasso and a target. Easy breezy. May 04 07:09:01 are you making an image editing app? May 04 07:09:14 knapper, then show him the link May 04 07:09:33 instead of questioning me May 04 07:09:33 <_genuser_> knapper_tech: I'll give it a shot. Were you able to zoom into a picture all the way? or just a little bit? May 04 07:10:23 _genuser_, there is a maxzoom and minzoom setting. The defaults were reasonable and allowed me to see finer detail even on over-pumped resolution phone screen May 04 07:10:39 Sephiroth google'd leads to Final Fantasy, good help :/ May 04 07:10:46 pans and zooms May 04 07:10:51 ahaha May 04 07:11:06 https://github.com/sephiroth74/ImageViewZoom May 04 07:11:17 <_genuser_> knapper_tech: yeah, that's kinda what I'd like to do. I'm thinking option a) save it locally and launch it in gallery view. b) just show it in my own app and let them zoom in for finer details. May 04 07:11:20 wow great May 04 07:11:49 <_genuser_> knapper_tech: honestly, option a isn't too bad but kinda seems ... hacked. I'd like my own app to just handle that instead of throwing it out to gallery. May 04 07:11:49 Picasso can make it easy to load the remote image and gives you back a bitmap in a target May 04 07:11:51 The Sephiroth library doesnt exist, but oh it's awesome.... May 04 07:11:56 troll May 04 07:12:39 <_genuser_> knapper_tech: yeah, I"m using picasso but problem with picasso is, you either have to tell it to .fit() in which case it will fit to screen, or give it a specific size to resize the image to. May 04 07:12:44 Picasso can will load File or String (http path) May 04 07:12:47 <_genuser_> and that's always limited by your phone's RAM. May 04 07:12:48 knapper_tech: you shoule /quit May 04 07:12:55 and when you load it to a target, you get the bitmap back May 04 07:13:01 unscaled May 04 07:13:44 oh yeah, can use picasso to load file or string(http path) and when load it to target you get back bitmap unscaled? May 04 07:13:57 <_genuser_> it.sephiroth.android.library.imagezoom:imagezoom:+ May 04 07:14:04 <_genuser_> gradle enabled? that's pretty cool. May 04 07:14:15 /ignore next4hrs May 04 07:14:28 so in the target you just use the imagezoomer lib's setImageBitmap(bitmap) May 04 07:14:36 it's all gradle May 04 07:14:37 <_genuser_> one thing I'm really liking about gradle is the ability to just pull in libs like that. I never started that on eclipse/maven. May 04 07:15:03 AS has been a dream for me with Gradle. I've never had such an easy experience building on any other platform. May 04 07:15:36 <_genuser_> problem with unscaled bitmap is if you go really high on resolution (as in the highest your camera will support), you'll run out of ram loading an unscaled image. May 04 07:16:06 <_genuser_> which is why I moved to picasso. And custom RequestHandlers in picasso. May 04 07:16:11 _genuser_, then you need some elegant voodoo. May 04 07:16:27 <_genuser_> knapper_tech: picasso being that elegant thing. May 04 07:16:53 Does it have some tools for displaying a subset of the image? that's a hard problem when panning. May 04 07:16:54 <_genuser_> and my idea of waiting for zoom to end, then seeing which part of the image is in view and decoding that region only in high res May 04 07:17:06 gotta do like google maps and tile/refine on the fly? May 04 07:17:06 <_genuser_> knapper_tech: picasso doesn't but android does. May 04 07:17:14 ah May 04 07:17:15 <_genuser_> yeah, you can do that. May 04 07:17:36 <_genuser_> http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html May 04 07:17:41 oooh nice May 04 07:17:51 <_genuser_> so that's the bit I was lookign to implement myself in whatever zooming image control I use. May 04 07:18:06 <_genuser_> once the zoom is ended, it will have zoomed in on a low quality image and the details will be blurry. May 04 07:18:14 <_genuser_> then I go and decode only that bit and load it high-res. May 04 07:18:25 <_genuser_> so you can read what your expense reports actually say, lol. May 04 07:18:27 <_genuser_> and the receipts. May 04 07:18:49 lol, voodoo and elegant in the same sentence? May 04 07:18:56 So you need to resample at the right moments and allow some panning May 04 07:19:08 <_genuser_> ravilov: hey CedricBeust wanted android related talk.... May 04 07:19:40 um okay May 04 07:19:55 <_genuser_> knapper_tech: I haven't tried it yet. So I'm thinking I'll either load the region in view on zoom-end/pan-end.... or I'll load twice teh screen size and track when they fall out of that region when panning. May 04 07:20:00 <_genuser_> and reload. May 04 07:20:56 Tricky. The more tiles you use, the better the performance gets. If you write a general implementation for 100 tiles etc, the codes basically the same for 2 or three tiles. May 04 07:21:47 <_genuser_> only way to know it to code it up. May 04 07:21:50 fun problem for a little while May 04 07:22:17 <_genuser_> there's so much stuff I had envisioned one way and once I started coding I had to re-adjust lot of the design based on performance. May 04 07:22:17 knapper_tech do you have any idea what you are typing, or just guessing? May 04 07:22:39 If the user has no G+ profile cover photo, how can I show a generic photo in the nav drawer like Gmail does? May 04 07:23:17 WantToCode, find the default place image May 04 07:24:27 <_genuser_> pack an image with your apk. May 04 07:24:29 the currentUser.getCover() returns null May 04 07:24:32 <_genuser_> load it iw the g+ image is null. May 04 07:24:47 But I can see the image on Google+ web and the Gmail app for that account May 04 07:24:55 if you want like Gmail does you find the place holder Gmail uses, otherwise create your own May 04 07:25:01 <_genuser_> so if currentUser.getCover()==null then setImage(R.drawable.generateUser); May 04 07:25:10 you can see the placeholder Image? May 04 07:25:39 Yeah. I believe they have several default images. I opened a lot of random G+ accounts too May 04 07:26:09 is the default 1 static image, or something with a Letter in a circle? May 04 07:26:12 For eg this : https://lh3.googleusercontent.com/-ohlPUxOOUf0/UYFKropQKcI/AAAAAAAABik/eUblmdCg_5g/w1600-h900/default_cover_7_b6a70e983e161747a6b43731672f0d01.jpg May 04 07:26:23 or this : https://lh6.googleusercontent.com/-D6JHlNuwnhc/UYFKrlfHGrI/AAAAAAAABig/9n26gdFyG9s/w1600-h900/default_cover_6_580ddb76fb4aadaf625bc20613e35f5c.jpg May 04 07:26:58 I think they have some set of default image which are on G+ web. The same are shown on Gmail. but the api retuns null May 04 07:27:05 oh goodness, get in contact with google so you can share their images May 04 07:27:24 oh hey, 5.1 got a new API level, I never noticed that May 04 07:27:51 whatitis, sorry didn't get you. May 04 07:28:21 I'm saying if they don't make those defaults public, you need to contact them, otherwise quit being so needy and make your own May 04 07:28:30 whatitis is quite pissed off at the moment for whatever reason May 04 07:28:35 i thought you meant the icons for the user May 04 07:28:49 maybe you should tone it down a bit, whatitis May 04 07:29:11 then answer them.... May 04 07:29:19 why? May 04 07:29:24 then shush May 04 07:29:34 i'm not asking the ?s May 04 07:29:38 so? May 04 07:29:48 go back to gingerbread May 04 07:30:11 your "help" is not appreciated if it comes this way May 04 07:30:14 I think that whatitis should be angry. Anger is constructive May 04 07:30:34 <_genuser_> ravilov: new api level? May 04 07:30:40 yeah, 22 May 04 07:30:43 <_genuser_> eh, another 30min downloading the latest api level... May 04 07:30:43 22 May 04 07:30:55 it isn't anger, just a wanting of "i want this, i've seen it done so it must be simple, so tell me in a oneliner how i can do it" May 04 07:30:59 <_genuser_> sometimes, it seems we maintain our coding env more than we code, lol. May 04 07:31:14 whatitis, I thought you're ignoring the channel, maybe you should do that May 04 07:31:20 *contextual anger May 04 07:31:32 _genuser_, move to a trailer park, you'll have faster connection there :p May 04 07:31:33 /ignore #channel May 04 07:32:06 I was not asking for a one liner solution. I was just hoping I am missing something silly in the APIs, because for some users the image were returned and for some it was null May 04 07:32:17 WantToCode, just ignore him May 04 07:32:30 WantToCode, some of your users? May 04 07:33:00 <_genuser_> ravilov: haha. it's a quite a bit of data, it will probably still take 30. May 04 07:33:26 <_genuser_> WantToCode: honestly, forget all that. Just check if g+ returns null, then assign a generic image that you packed with your app in drawables. May 04 07:33:28 _genuser_, you do realize you don't *have* to have the latest API, right? ;) May 04 07:33:32 * g00s ponders making some ravioli May 04 07:33:36 For the users who have explicitly set a cover photo, for them it is working as expected. For those poeple who have not set cover images (and default is set by Google), the API is returning null May 04 07:33:47 screw you g00s now i want ramen May 04 07:33:52 WantToCode, your users? May 04 07:34:16 right now I am building the app and testing with some old and new gmail accounts May 04 07:34:21 <_genuser_> ravilov: somewhat, we do. have to stay up to date. if for no other reason, then to stay marketable. May 04 07:34:29 the latest ones are giving null because of no explicit cover images May 04 07:35:13 _genuser_, not really. your code will still compile exactly the same, and you can easily change maxSdk without actually having a newer SDK ;) May 04 07:35:37 <_genuser_> WantToCode: it's probably not that a default image is "set" by google. It's more likely they're doing this: getUserImage(user)==null ? .assign(theGenericImage). May 04 07:36:11 <_genuser_> in other words, it's not that they're assigning the account a generic image but that they're showing a generic if none is assigned. May 04 07:36:14 WantToCode, the URL to the generic image is probably constructed different than for user-set images May 04 07:36:41 on all the platforms? web, G+ app, GMail...i.e. for that user's full profile. And it is the same, its not random. May 04 07:36:52 <_genuser_> ravilov: true true. but you know what I mean. each new SDK or item will bring new issues. better to be familiar with them ahead of time. instead of on the job. May 04 07:37:00 Anyone here good with broadcast receievers and services want to help me figure out why my settings/notifications are not working properly? https://github.com/thekarlbrown/Project5/tree/master/app/src/main/java/com/thekarlbrown/project5 May 04 07:37:20 <_genuser_> ravilov: makes it to much easier when you've already banged your head against that wall and it comes up in a meeting. you're like, "pfft, you guys don't know this?" May 04 07:37:55 <_genuser_> TheKarlBrown__: is it not working at all or just intermittent? May 04 07:37:55 you can get that through reading dev discussions, you don't need first-hand experience :p May 04 07:37:57 Debugging shows me that I am getting to myservice after the reciever is registered, but for some reason my project doesnt count my preference additions properly or send notifications properly May 04 07:38:14 <_genuser_> ravilov: dang, you're set on making me miss this experience of api 22, eh? !! :p May 04 07:38:34 not at all May 04 07:38:37 _genuser_, how's your plan to call it quits by 3am working out? :p May 04 07:38:42 TheKarlBrown_: how are Broadcast Receivers and Services related? and where is your manifest or anywhere that you register a receiver? May 04 07:38:56 <_genuser_> ravilov: it's 2:38am... 20 min to surf the web then try to walka way. May 04 07:39:12 that's more than it takes you to download the new SDK :p May 04 07:39:23 uh I mean less May 04 07:39:31 or something May 04 07:39:32 <_genuser_> ravilov: heh, I'll probably get starting on that sometimes this week. May 04 07:39:49 <_genuser_> ravilov: my current dilemma, move existing proj to AS or not. May 04 07:40:06 _genuser_, ravilov , whatitis - for now I am putting the defaults in the SDK, but I don't think so it is right because there are many default images too. Thanks for the time :) May 04 07:40:06 whatitis the manifest is in main. the reciever starts a service May 04 07:40:08 <_genuser_> ravilov: I like some of AS features. but eclipse is so much faster. I'm comfortable with both. May 04 07:40:11 wait for them to rename it to ASS, and then move, _genuser_ :p May 04 07:40:25 I linked to the classes but that github is a complete android studio project May 04 07:40:29 android studio...system? May 04 07:40:39 <_genuser_> WantToCode: sometimes, you kinda have to wing it. but googling may show if there's an alternate way to get the icon. depends on how much you want it. May 04 07:41:00 tried a lot. Added a TODO May 04 07:41:03 TheKarlBrown__, no manifest isn't in main..... May 04 07:41:08 I would think google would have an API to get things off of G+ May 04 07:41:17 github.com/thekarlbrown/Project5/tree/master/app/src/main May 04 07:41:18 <_genuser_> ravilov: I know someone whose initials are ASS. and when people tell him to initial stuff, he always does AS. May 04 07:41:27 <_genuser_> I'm like, own it! May 04 07:41:29 <_genuser_> ass!! May 04 07:41:32 lol May 04 07:41:41 ravilov, I am using that. I'll go and look into iosched now May 04 07:42:25 <_genuser_> so this "full stack" is a bonafide tech term now.. argh May 04 07:42:45 genuser are you talking about me? I read it somewhere and I liked it May 04 07:42:51 _genuser_, http://www.oddee.com/_media/imgs/articles2/a98272_email-fail_6-email-address.jpg May 04 07:42:52 having problems making Android Studio finding (linking) my native compiled library code.... May 04 07:43:05 <_genuser_> TheKarlBrown__: just saw it on linkedin. May 04 07:43:10 Hehehehehe May 04 07:43:37 TKB = the karl brown May 04 07:43:51 So I'm the king of my own castle ;D May 04 07:44:07 <_genuser_> ravilov: LOL, super hilarious. May 04 07:45:59 whatitis you take a looksie? May 04 07:46:27 I think it might have to do with the fact the preferences and notifications are done as a service May 04 07:51:02 <_genuser_> I have an IntentService broadcast'ing status. Which multiple activities subscribe to. if they're up, they get the notification. if they're not, nothing crashes. May 04 07:51:02 <_genuser_> launching a broadcast via service shouldn't be a problem. May 04 07:51:27 you saw Google's doodle? May 04 07:51:38 I can start notifications from services, correct? May 04 07:53:20 Odaym, yes, cute May 04 08:01:57 http://8e62ac4a831f7d37.paste.se/ thanks samsung <3 May 04 08:05:11 that's "Jesu, Joy of Man's Desiring" May 04 08:05:25 really nice piece, you hear it at the start of SICP video lectures May 04 08:06:05 do they also include a slider to make it forte? :p May 04 08:06:28 nah its just the course theme May 04 08:06:30 theme sawng May 04 08:06:31 :[ May 04 08:07:12 Anyone have any ideas why my notifications arent showing up? I coded them and run them via a service. Do they need to be via the main activity somehow? May 04 08:07:37 no May 04 08:07:58 Ive tried setWhen(0) and setPriority(MAX) May 04 08:10:23 Do I need a notificationlistener serivce? May 04 08:10:35 do they have drawable icon May 04 08:10:45 they do not. do they need that? May 04 08:10:46 need code May 04 08:10:53 or pastebin the code when you make notification May 04 08:11:41 well in many cases you cant show notification without small icon May 04 08:15:31 Ok. trying that then sharing updated github May 04 08:16:31 THAT DID IT May 04 08:16:40 *hugs ashiren* May 04 08:16:52 wee May 04 08:17:19 I have a pounding headache May 04 08:17:24 But I gotta finish zee code :3 May 04 08:25:25 Alright here is the repo for my code. I'm starting in the Class directory, but you can navigate as necessary. I figured out the notifications error with Ashiren 's advice, I just need to determine why preferences arent updating from my service Alright here is the repo for my code. I'm starting in the Class directory, but you can navigate as necessary. I figured out the notifications err May 04 08:25:34 https://github.com/thekarlbrown/Project5/tree/master/app/src/main/java/com/thekarlbrown/project5 May 04 08:26:15 wait im so tired im not commiting them May 04 08:27:19 lol @ commiting to git, only to re-read code and see own problem May 04 08:27:49 thank you silent irc masses :D May 04 08:31:53 well, https://en.wikipedia.org/wiki/Rubber_duck_debugging May 04 08:43:12 is there an android wear channel? May 04 08:46:04 who ever wear smartwatches :v May 04 08:46:09 * SirLagz hides May 04 08:47:00 I wear a smartwatch but not android wear :P May 04 08:47:23 I can't really stomach the idea of a non-waterproof watch May 04 08:47:24 well i don’t wear it, but i sport a LOT on high level and keep track of everything. Therefore, having something that monitors my heartrate 24/7, especially during heavy activity, would be pretty nice and interesting for me May 04 08:48:39 So basically, i’m only interested in the sports-activity side of a smart watch. And since i also like developing android apps, i prefer an android wearable May 04 08:49:52 the new pebble watches support modular functionality in custom watchbands so it seems likely someone will make a heart monitor "smartstrap" May 04 08:50:00 but certainly android wear is an option too May 04 08:52:21 okay thank you for your comments lizzie May 04 08:52:51 anytime, I like making comments! May 04 08:53:05 I think i’m leaning towards an android wearable still, but still need to read up more on the gadget before i make my decision to buy one :) May 04 08:54:11 for me the big selling point for pebble is the display technology May 04 08:54:29 I don't like the idea of a watch that gets just a day or two of battery life and doesn't even always show the time May 04 08:54:53 I am actually kind of surprised nobody is making low-power display android wear products. once those are on the market I'll be more interested in android wear May 04 08:55:47 sadly I think the vivid bright-color displays are there because it looks good on a store shelf and consumers aren't good at judging practicality May 04 08:56:32 also not sold on touch controls. an android wear device with buttons would be nice May 04 08:58:15 Is there a way to completely kill RxJava's thread pool and cancel everything in a centralized manner or do I need to do the plumbing myself? May 04 09:00:07 https://gist.github.com/dcunited001/3a249dd89bb0784ba4ef May 04 09:01:08 can someone help me out? i've spent about 3 hours trying to track this down May 04 09:01:35 basically i'm getting a Multiple Dex error when trying to build my project May 04 09:01:48 the `gradle -q dependencies` output is in that gist May 04 09:01:59 when i run the command, i don't see any dupes May 04 09:03:20 however, when i build, i'm getting some warnings that libraries are "being excluded from debug, as they may be conflicting with the internal version provided by android" May 04 09:10:42 if anyone can help me, that'd be great May 04 09:11:06 this is the 3rd channel i've posted on and i've been trying to figure this out for 3 hours May 04 09:11:34 or can anyone suggest another library to use besides WireMock? May 04 09:14:29 hi, has anyone figured this out? http://stackoverflow.com/questions/21389703/getting-http-status-code-201-created-in-robospice May 04 09:20:36 I'm struggling to have my gallery-type app refresh to show new thumbnails. Is that even possible for third-party apps (Android 4.4.4)? Please see my SO post: http://stackoverflow.com/questions/30014240/reload-the-mediastore-thumbnails-in-my-app May 04 09:26:24 https://gist.github.com/dcunited001/3a249dd89bb0784ba4ef May 04 09:26:27 can someone help me out? i've spent about 3 hours trying to track this down May 04 09:26:29 basically i'm getting a Multiple Dex error when trying to build my project May 04 09:26:31 the `gradle -q dependencies` output is in that gist May 04 09:26:33 when i run the command, i don't see any dupes May 04 09:26:35 however, when i build, i'm getting some warnings that libraries are "being excluded from debug, as they may be conflicting with the internal version provided by android" May 04 09:31:40 Hey, I have a progress bar, I'd like to set a value that the user cant set beyond it.. that value is not the max value of the progress bar May 04 09:31:52 any suggestions on how to implement? May 04 09:34:41 happy may the 4th ! May 04 09:35:08 viran i think you could look at the source for progressbar, and find the appropriate method to override.. if at all possible May 04 09:35:12 then make a subclass May 04 09:35:57 i would think setProgress May 04 09:36:51 How can a fragmenttransaction never be called ? (and with the commit, no syntax error) May 04 09:41:15 https://gist.github.com/dcunited001/3a249dd89bb0784ba4ef May 04 09:41:18 can someone help me out? i've spent about 3 hours trying to track this down May 04 09:41:20 basically i'm getting a Multiple Dex error when trying to build my project May 04 09:41:22 the `gradle -q dependencies` output is in that gist May 04 09:41:24 when i run the command, i don't see any dupes May 04 09:41:26 however, when i build, i'm getting some warnings that libraries are "being excluded from debug, as they may be conflicting with the internal version provided by android" May 04 09:43:40 can someone plz help me with this? May 04 09:43:50 i'm new to android and i've been trying to figure this out for 4 hours? May 04 09:46:03 dcunit3d: well you get a lot of warnings and 1 error May 04 09:47:42 xorgate: it's a DexMerge error, so it should be the result of a duplicate dependency somewhere, but i haven't been able to track it down May 04 09:48:07 i also attached the `gradle -q dependencies` output May 04 09:48:24 but the error doesn't tell me which library is causing the problem May 04 09:49:02 xorgate it's because i'm using WireMock. are there any better mocking libraries? May 04 09:50:57 i fixed the two warnings at the top by excluding those libraries. not sure if that's the right thing to do or now May 04 09:51:00 not* May 04 09:51:23 i might just forget about the api and just mock the data and add assets to the project or something May 04 09:51:59 i'm trying to avoid writing an API bc i just don't want to $#@! with 3 different projects at this point May 04 09:57:51 xorgate do you know if you can use WireMock as a dependency? or only as a test dependency? May 04 09:58:49 https://gist.github.com/dcunited001/3a249dd89bb0784ba4ef May 04 09:58:52 can someone help me out? i've spent about 3 hours trying to track this down May 04 09:58:54 basically i'm getting a Multiple Dex error when trying to build my project May 04 09:58:56 the `gradle -q dependencies` output is in that gist May 04 09:58:58 when i run the command, i don't see any dupes May 04 09:59:00 however, when i build, i'm getting some warnings that libraries are "being excluded from debug, as they may be conflicting with the internal version provided by android" May 04 09:59:24 out of 500 poeple online, there's gotta be someone awake that can help me out May 04 09:59:54 sorry, just getting a bit frustrated, as i've been trying to figure this out for 4 hours now May 04 10:00:54 try stackoverflow May 04 10:01:08 i have May 04 10:01:25 i've also tried #gradle and #android May 04 10:01:28 but no dice May 04 10:02:43 everyone seems to want me to go somewhere else May 04 10:04:30 hi, I want to encrypt/decrypt using AES-CCM. I know I can do this with the spongy castle provider but can it also be done with the standard SUN provider? May 04 10:11:50 anyone familiar with MediaStore, and how to use it in a gallery-type app? May 04 10:14:53 * ravilov has only ever used MediaStore to notify it about a new image file appearing May 04 10:19:52 has anyone tried getting WireMock to work in-app instead of with tests? May 04 10:20:01 similar to this article: http://joshskeen.com/mocking-webservices-with-robolectric-wiremock/ May 04 10:31:02 ravilov: yeah.. I guess my needs are "opposite"; I want to be notified when *another* app updates the MediaStore... May 04 10:39:12 what's the MediaStore May 04 10:39:19 joakimk_ May 04 10:45:42 dcunit3d: It's one of the standard content providers on Android, for media (images and videos) on the device: http://developer.android.com/reference/android/provider/MediaStore.html May 04 11:02:30 can anyone help me with this Wiremock/MultipleDex issue? i've been trying to figure it out for 5 hours now. May 04 11:02:45 Is com.android.locker a process that runs in android by default by Google ? May 04 11:02:51 https://github.com/tomakehurst/wiremock/issues/267 May 04 11:06:33 sleep May 04 11:06:36 it's overrated May 04 11:08:52 i wish i could get some sleep May 04 11:09:52 i really wish i could use ionic for this project, but i can't May 04 11:38:33 Still working on drag & drop, nearly done, but again the android guide puts me a variable without declaration (dragData = item.getText();) May 04 11:38:40 what could that dragData possibly be? it's not ClipData May 04 11:39:05 the item btw is ClipData.item May 04 11:39:15 ClipData.Item* May 04 11:46:32 guys how can i mask that relative layout ? http://postimg.org/image/bbykfe21n/ May 04 11:48:25 Still working on drag & drop, nearly done, but again the android guide puts me a variable without declaration (dragData = item.getText();). What could that dragData possible be? I've tried ClipData already. Btw,the item is a ClipData.Item May 04 11:51:33 Can someone explain me this: Google play rejected an update because they thing I use intellectual property, but the update seems to be available via play store (checked on multiple devices) May 04 11:52:36 It means they stole y- I'm sorry, I have no idea ;_; May 04 11:52:39 Lorenz9: put cursor on getText and Navigate / Declaration and read the code May 04 11:53:48 wow May 04 11:54:00 this is awesome May 04 11:54:07 I just lvl'd up mate, thanks haha May 04 11:54:19 haha np May 04 11:56:24 Is there any api available that lets me search for content (apps, music, books etc.) in the play store and see country availability? May 04 12:01:07 how come i can't click on a relativelayout even though i set clickable true and duplicateparentstate on all its children? May 04 12:02:26 anyone ? guys how can i mask that relative layout ? http://postimg.org/image/bbykfe21n/ i need to get a circular relative layout i guess May 04 12:03:19 nevermind, i figured it out May 04 12:07:26 How do you add the click effect of a button to a relativelayout when its clicked? May 04 12:21:54 jutsi, with a selector May 04 12:22:27 danijoo i managed to get an effect using a different approach May 04 12:24:47 though i've only tested on emu, might not work on real device May 04 12:24:52 which one May 04 12:25:11 i set background to use the selectableItemBackground attribute May 04 12:26:04 well. thats not a different approach. attr/selectableItemBackround is just a link to the default selector of the app May 04 12:30:31 Hi, I have to authenticate the users through my app, I found this http://android-developers.blogspot.ro/2013/02/using-cryptography-to-store-credentials.html but I have two questions: 1. What are some good practices to clear out the plaintext password, so a coredump won't show it, and 2. How do I pass a SecretKey through an Intent? May 04 12:35:53 you are afraid someone might take a core dump to get a password on android? May 04 12:36:05 imv, 1) you need to reach zero-footprint in memory, not sure it's even possible on android. You can mitigate that by using only one place/alloc in memory to store your password (again, not even sure there will not be many references or duplicate in memory due to how java manages things), keep the string in memory encrypted instead of plain, and use it only when you need it, for the least amount of time May 04 12:36:06 possible May 04 12:36:18 and flush this memory alloc as soon as you're done with it May 04 12:36:51 adq, makes sense, thanks May 04 12:36:54 2) no idea, not sure it's a good idea May 04 12:37:00 guys why my relative layout doesn't clip childrens ? May 04 12:37:01 how one can flush memory alloc in java May 04 12:37:02 http://paste.ubuntu.com/10984249/ May 04 12:37:09 Ashiren, System.gc() :) May 04 12:37:15 imv, and also put an explicit string in your test, coredump and search for reference of this explicit string May 04 12:37:23 and also reference of the reference of the explicit string May 04 12:37:34 to know how far you are from zero footprint May 04 12:37:38 adq, the other alternative is passing the pt password back to the caller. OR are there any better ways/ May 04 12:37:53 other alternative is not using sensible data May 04 12:37:55 like a token May 04 12:38:02 instead of a password May 04 12:38:56 or you could look how i.e. keepassdroid handles it (if it does) May 04 12:39:24 adq, in the scenario I'm trying to defend against the attacker can have your phone, so it's bound to be something only a legitimate user would know, like a password May 04 12:39:46 when someone got local access, you're screwed :p May 04 12:40:00 but I see the point May 04 12:40:21 noone knows what happens when you send the pt thoguh an intent because it gets serialized/deserialized and might get passed to the application manager and back to the app May 04 12:40:32 I have STUDIO_JDK set to use Java 8, but it still appears to be using the Java6 jdk May 04 12:40:46 you might end up with multiple references where you dont even have access to May 04 12:40:47 attacker would be delayed by posting on the victim's facebook "I'm gay", so that should aso be taken into consideration May 04 12:40:50 any thoughts on why that might be happening? May 04 12:40:55 lol May 04 12:41:48 adq, from what I see, android has some cryptographic hashes support, so it should be doable, but I have no idea where to look May 04 12:41:50 JasonO, maybe you are using 64bit and didnt set STUDIO_JDK_64 May 04 12:43:54 Re: MediaStore.Images.Media. I've got query() working, and I see the docs referring to insertImage(), but what if I want to *update* -- say -- the DESCRIPTION field on an image? May 04 12:44:07 also im pretty sure noone coredumps the phone to post "i am gay" :p May 04 12:44:21 imv, might help http://developer.android.com/reference/java/security/package-summary.html May 04 12:44:51 adq, thanks! May 04 12:44:54 but either you handle yourself login/password (make sense since you asked #1), either you use an oauth mecanism with a third party per example May 04 12:46:34 what would be the URI, if I want to update? Or is it obvious for all (except me) that one can only insert and query the MediaStore? May 04 12:48:25 adq a third party would be great, actually. Extra-secure, too, since I'm dumping the security on them. Besides, the user's bound to have a google account. Thanks! May 04 12:49:33 http://developer.android.com/guide/topics/providers/content-provider-basics.html#Updating May 04 13:01:26 how can I keep the camera centered while I zoom in/out on a map May 04 13:02:36 dumpsys: I've summarized my question at http://stackoverflow.com/questions/30030869/how-to-update-an-image-in-mediastore May 04 13:03:58 did you try to invoke it ? May 04 13:05:07 dumpsys: didn't yet... Worried I might make a mess of my image database... ;) May 04 13:05:42 lol, do it on emulator May 04 13:06:02 wow such worry, there must be no worry in dev, always have backups, git, etc May 04 13:07:14 but, does it *look* sensible? I'm just coding in the dark, here. The MediaStore docs don't mention any update() abilities, as far as I can see: http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html May 04 13:09:04 https://developer.android.com/reference/android/content/ContentResolver.html#update(android.net.Uri, android.content.ContentValues, java.lang.String, java.lang.String[]) May 04 13:18:06 prajna: hehe! I like your thinking :_) May 04 13:18:35 trying this -- in the emulator, obviously (hehe) -- I see that I *can* indeed set/write the DESCRIPTION field in the specified image :-D May 04 13:18:47 thanks dumpsys! May 04 13:19:21 :) joakimk_ May 04 13:22:30 Does android still run on the dalvik vm? May 04 13:22:39 ... May 04 13:22:57 please use google before asking obvious and trivial questions May 04 13:27:29 i did check google first May 04 13:27:38 though not a proper search session May 04 13:28:57 Google all the things. May 04 13:29:20 I wonder whether anyone has worshipped Google as a deity yet. Maybe even started a cult around Google. May 04 13:30:32 http://www.thechurchofgoogle.org/\ May 04 13:31:07 first church with an official subredit :D May 04 13:34:44 I wonder if there's a church of reddit May 04 13:35:11 and does it have its own subreddit May 04 13:35:16 reddit is too verbose to be worshipped May 04 13:35:20 provides nothing May 04 13:35:23 does nothing May 04 13:35:25 is nothing May 04 13:35:36 I can see some people worshipping nothing May 04 13:35:52 yea we call it religion May 04 13:36:00 Zing. May 04 13:37:51 um sure May 04 13:38:47 is there a command line version of the android sdk manager? May 04 13:39:32 shoerain, the sdk manager binary kinda is command line May 04 13:39:33 http://tools.android.com/recent/updatingsdkfromcommand-line i did a google search for you May 04 13:39:51 your question used more words than the query itself May 04 13:39:53 it's amazing May 04 13:40:49 well I was looking around on google, just thought I'd ask in parallel May 04 13:42:11 there should be a fee on questions like this May 04 13:42:15 you're getting deeper in the water May 04 14:10:40 danijoo, there should be a fee on questions. period. :p May 04 14:11:10 Hi. Would it be safe to use postAtTime on a Handler, with a time in the past. The code appears to cause the message to be inserted to the front of the message queue, but is it safe to assume that the Runnable will always be called, even when the time is in the past? The docs do not mention this, which makes me weary of using it. May 04 14:11:55 Matt_von_Mises, time travel is not supported yet May 04 14:12:10 <_genuser_> ravilov: you're still here? May 04 14:12:31 _genuser_, you're here already? May 04 14:12:36 * ravilov is always here May 04 14:12:52 <_genuser_> yeah, didn't sleep very long. got up 7am. May 04 14:13:11 <_genuser_> trying to get in the habit of sleeping at nite and waking up early. don't wanna sleep thru summer. May 04 14:13:45 nah man, gotta get into the groove May 04 14:13:51 Matt_von_Mises, I just checked the source. When your time is in the past, it will get executed immidiatly. there is a if(delayMillis < 0) delayMillis = 0; in the method May 04 14:13:54 sleep at day, partay at night May 04 14:14:28 dont sleep. May 04 14:14:58 works for you, right? May 04 14:15:27 unfortunatly not :( May 04 14:17:03 danijoo: :-) Yes, though the code appears to cause the message to be queued at the front: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/MessageQueue.java#336 However I'm weary about going with the code rather than the docs, as the code could change. May 04 14:17:51 Matt_von_Mises, postDelayed(runnable, -123) is just the same as calling post(runnable) May 04 14:22:24 Can I get the child fragment manager from activity? getChildFragmentManager() isnt avaiable May 04 14:28:39 viran, how should the activity know from which fragment you want the childfragment manager? May 04 14:28:45 each one has its own May 04 14:33:48 danijoo: can I search for it? May 04 14:36:34 you can search for the fragment and call methods on that May 04 14:37:00 any specific library you guys use for view pager tabs? May 04 14:38:54 there are plenty good ones out there May 04 14:39:12 jw's for example is pretty complete May 04 14:57:49 i've got a fragment, using child fragment manager I add a new fragment, when I pop the backstack of the child fragment manager, I dont see the parent fragment........... why is that? May 04 15:00:27 viran, no code, no help in here :) May 04 15:01:20 I have 3 text views side by side, one of them displays a &, the other two contain variable length strings, the have a common center, but is there a way I can ellipsize them "fairly"? like only ellipsize if the textview if it contains more than 15 characters? May 04 15:01:42 Syzygy_, dont do it like that May 04 15:01:49 how else should I do it? May 04 15:01:51 make it one textview and use String.format() May 04 15:02:15 the strings have different color and the middle textview should always be visible May 04 15:02:51 you can have different textcolors in a single textview May 04 15:03:05 but how would ellipsizing work? May 04 15:03:15 in something along the lines UserA vs UserB May 04 15:03:19 I'd just do it half and half, seems most fair May 04 15:03:30 [____] & [____] May 04 15:03:54 whatever gets elipsized gets elipsized May 04 15:04:40 ravilov, any idea how I could implement this? right now UserA gets ellipsized but still pushes everything offscreen May 04 15:05:12 Syzygy_, if you want to stick to 3 textviews put them in a tablelayout or use weights to make sure "&" always gets enough room May 04 15:05:38 I didn't think of weigths, that might work. thank you. May 04 15:12:35 Syzygy_, you caught me in a good mood so... http://pastebin.com/raw.php?i=zRz32rKv May 04 15:12:51 simple May 04 15:13:22 thank you. looks pretty much the same as my code though May 04 15:14:12 <_Auron_> Hey guys, anyone know if the Google Maps API broke or significantly changed in the past week? Our app is getting crash reports with "java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()" coming from 'com.google.maps.api.android.lib6.gmm6.m.k.a' May 04 15:15:03 _Auron_, have you checked the issue tracker? Maybe they published a buggy play services (again) May 04 15:16:56 Should I keep my model layer as a separate module or within my app's package? May 04 15:17:14 cryptojuice, whatever pleases you May 04 15:17:38 <_Auron_> danijoo: only thing I could find was with screen orientation changes, but that isn't the case on my end since we force the app in portrait May 04 15:17:38 seperate module might reduce compile time and you can easier reuse it for other projects May 04 15:17:40 we been here 9 hours man May 04 15:17:43 wew May 04 15:17:49 lawng day for me May 04 15:17:55 slept like crap yesterday May 04 15:18:03 i'm finding that I need access to certain android classes which i'm not getting with a separate module. May 04 15:18:18 cryptojuice, you do if its an android library module May 04 15:18:39 but if you dont have a reason to put your business logic in another module, dont do it May 04 15:19:13 I might look into converting this into an android library module then. May 04 15:19:15 Thanks. May 04 15:20:14 bbl May 04 15:21:45 Hi guys May 04 15:22:08 I have an app with a bunch of medium density images. andeverything works great across all devices May 04 15:22:30 now I would like to have higher density images load if the mobile device is capable. May 04 15:23:50 if I have a smaller image within drawable-mdpi and a larger image in hdpi, with the same file name May 04 15:24:08 theoretically it should choose the correct image based on the devices capabilities May 04 15:24:26 where can I find the appropriate sizes (max's) May 04 15:24:33 for higher resolution images May 04 15:24:35 it will use the one where the folder matches the device properties May 04 15:25:03 ie if the phone is an hdpi folder, it will grab all images from that and fall back to other folders if this is not available May 04 15:25:09 and which density should i target xhdpi or xxhdpi? May 04 15:25:44 all of them May 04 15:26:21 so lets say, I have 1 image in mdpi with x y size. what size should i choose for xhdpi? May 04 15:26:41 mantas322, read the guides about that May 04 15:26:56 (I wont google the link for you) May 04 15:27:11 don't, I won't learn otherwise May 04 15:28:08 <_Auron_> mantas322: http://developer.android.com/images/screens_support/screens-densities.png May 04 15:28:16 <_Auron_> which is on the http://developer.android.com/guide/practices/screens_support.html page May 04 15:29:23 thx May 04 15:31:46 hi.. is there some common way to pass an instance of a java class from activity to a child activity? i currently use putExtra() but it's not enough. So some kind of parselable for example May 04 15:33:43 sanova: The typical pattern is to have your class implement Parcelable. Is that an option here? May 04 15:34:38 Then it's just Intent.putExtra(String, Parcelable) and so on. May 04 15:35:57 <_Auron_> mantas322: np May 04 15:44:06 Is it possible to have two onCreate inside one Fragment ? May 04 15:44:36 I have this : http://pastebin.com/UV0ZCw7F But not sure why they did it like this. May 04 15:44:52 hello May 04 15:45:12 how can i update a widget from an activity/service? May 04 15:45:28 haven't googled anything intresting yet. May 04 15:45:41 Nightwalkerkg, no. and this is no compiling code since the first onCreate missises a closing bracket anyways May 04 15:46:16 Yeah, i know abou the bracket. But i didn't understand how they put two onCreate. May 04 15:46:21 *about May 04 15:47:13 Nightwalkerkg, this is not possible. it wont compile May 04 15:47:33 oh nvm http://stackoverflow.com/questions/4073907/update-android-widget-from-activity May 04 15:47:42 Nightwalkerkg: Who is "they"? May 04 15:47:54 <_Auron_> Nightwalkerkg: That isn't possible in Java, C++, or any OOP language I know of. Has nothing to do with Android. You can't have the same method name with the same parameters, the compiler won't know which one to use. May 04 15:48:02 Yeah, i am trying to figure out how to add additional options to the settings. May 04 15:48:48 _Auron_, yes, i understand, but i had to ask just in case. May 04 15:48:53 <_Auron_> What you CAN do is send an Intent to that activity and build the activity based on the intent (or lack thereof). May 04 15:49:11 TacticalJoke, glade team. May 04 15:49:12 <_Auron_> Or wait, that's a fragment. May 04 15:49:17 <_Auron_> I need coffee. May 04 15:49:35 You can use Fragment.setArguments, I guess. May 04 15:49:37 Yeah. :D May 04 15:50:16 I need to check github and find a rom that has additional options. May 04 15:50:25 hi May 04 15:50:30 i am getting this error May 04 15:50:36 WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.4 is ignored for debug as it may be conflicting with the internal version provided by Android. May 04 15:50:36 In case of problem, please repackage it with jarjar to change the class packages May 04 15:50:58 i spent 3 hours on google and found nothing. people post solutions but none of them work for me May 04 15:50:59 this is not an error May 04 15:51:02 its a warning May 04 15:51:04 but May 04 15:51:11 it will cause an error May 04 15:51:25 FAILURE: Build failed with an exception. May 04 15:51:25 * What went wrong: May 04 15:51:25 Execution failed for task ':app:dexDebug'. May 04 15:51:27 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 May 04 15:51:29 * Try: May 04 15:51:31 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. May 04 15:52:15 hey guys any good guides on how to restore the nexus 4 to stock rom from google? May 04 15:53:17 the problem is with apache http client library May 04 15:53:31 how can i make gradle does not use android built in apache http client May 04 15:53:38 rather use my downloaded jar May 04 15:56:07 It's part of the framework on every Android device. You should jarjar it before using it May 04 15:56:46 ok May 04 15:56:53 pls pls can you tell me how can i use jarjar May 04 15:56:59 No May 04 15:56:59 is there any guides for it May 04 15:57:07 ? May 04 15:57:14 I don't know, did you try googling for any? May 04 15:57:29 yes i spent 3 hours May 04 15:57:33 there are a lot of guides May 04 15:57:37 but none of them work May 04 15:57:44 why don't they work May 04 15:57:47 You spent 3 hours googling how jarjar works? May 04 15:57:53 funny. I got results for "java jarjar" in 2seconds. May 04 15:58:08 :/ yes i know how to google java jarjar May 04 15:58:13 anyways May 04 15:58:14 thx May 04 15:58:24 i will give a break and try with jarjar again May 04 15:59:30 I have been trying different images and custom boot loaders for my nexus 4 yet it seems to end up in a vicisou boot loop on the boot logo any ideas on waht I am missing or how i can rectify the situation May 04 15:59:47 SimonVT, there's no good working jarjar gradle solution for Android May 04 16:00:59 eagles0513875: This is for app development. I guess the right channel is #android-root or #android. May 04 16:01:07 oops my bad May 04 16:02:39 Oh, well.. pre-jarjar it I guess May 04 16:02:41 question! Can encapsultation make a program slower than a program without encapsulation ? May 04 16:03:34 ektos: Depends on the encapsulation. May 04 16:04:00 TacticalJoke: what do you mean ? May 04 16:04:29 He means, what do YOU mean? May 04 16:05:15 TacticalJoke: For a system service some of my collegues code theirs part with everything in public, public static, no getter, no setter May 04 16:05:30 SimonVT: I mean that ! May 04 16:05:35 :/ May 04 16:06:35 i have custom attrs and I want to reference another style with one of my attrs. in the view code how should I apply the referenced style to one of my views? ContextThemedWrapper? May 04 16:08:17 I suppose there's always some overhead.. The jit might optimize it away tho May 04 16:11:13 Or aot these days May 04 16:17:22 Quick Quesiton about Android Studio Projects. May 04 16:17:49 Am I able to copy the root folder of the project onto another computer and open it up using Android Studio? May 04 16:17:58 yes May 04 16:18:04 okay thanks May 04 16:18:16 Note that you can import Gradle projects from build.gradle/settings.gradle. May 04 16:18:28 Without having the .iml files. May 04 16:18:35 I just wanted to make sure I wasnt missing some sort of critical step May 04 16:18:45 sometimes it does even work! May 04 16:18:53 thanks. May 04 16:25:15 yeah, i've been just opening the build.gradle and it works every time May 04 16:25:24 you just don't get IDE settings (ie. code styles, warnings etc) May 04 16:25:56 I do that every time I update AS (just in case something crazy has changed). May 04 16:26:19 I tried it once and it didnt work at all May 04 16:26:31 but AS was beta that time May 04 16:26:33 danijoo: Did you get that message about the location of Gradle? May 04 16:26:46 I get that every time (and I have to input the Gradle location). Annoying, but I've had no other issues. May 04 16:26:46 dont remember May 04 16:26:53 but it took me 3 hours to make it work :) May 04 16:29:50 I have a textureview that renders stuff on top of a webview .. on android 4.4.4 the textureview flickers or renders .. wrong? whenever the webview has a page loaded, any wizards ? May 04 16:34:10 <_Auron_> danijoo: Couldn't find anything about my google maps issue earlier that was directly related, so I think some users just need to update their Google Maps app. I can't even replicate the issue. May 04 16:34:37 so we have flame charts for performance analysis, and they're pretty great. but is there any equivalent for aggregate results, say from thousands of devices? May 04 16:34:47 bdecoste_: A TextureView on top of a WebView? ;o May 04 16:35:23 Is that a thing? May 04 16:37:10 <_Auron_> that's really odd, but it's probably having troule switching GL contexts between the views May 04 16:37:13 <_Auron_> trouble* May 04 16:37:40 hello, what is the easiest file to host some file online and read/write to it from android app? May 04 16:39:04 guys, I have lots of ImageView Button, is there an easy way to write just one selector for them all May 04 16:39:37 I mean the button pressed and focused when I mean selector May 04 16:40:41 the textureview kind of floats on top of the system and therefore a webview could conceivably be on the page at the same time May 04 16:42:10 <_Auron_> meadhikari: You mean its style/graphic and not the onclick listener, right? May 04 16:42:20 meadhikari, I have no idea how you could do that in a way where the selector cannot be reused May 04 16:43:11 _Auron_, I mean a custom image view where I give buttonpressed_src and nonpressed_src as attribute to the two different images May 04 16:43:39 rather than writing selector xml for each of the imageviews May 04 16:43:46 <_Auron_> meadhikari: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList might be what you're looking for May 04 16:45:40 _Auron_, Exactly that but I want to write only one such thing and possibly use it on my multiple image views, is it possible? May 04 16:48:10 meadhikari: You only have to write the selector once. All you need to add to each view you apply it to is the android:background xml attribute, with value equal to your selector name? May 04 16:48:44 <_Auron_> ^ May 04 16:48:55 dbro, I have multiple image views, not just multiple places where they are called May 04 16:50:25 The two state for each imageviews are two different image files May 04 16:50:54 so for each ImageView you set one xml attribute equal to the selector. You can do that in XML or via imageView.setBackgroundResource(R.drawable.my_selector) May 04 16:51:07 you combine the two images into a state list drawable as Auron linked May 04 16:51:41 then you connect that state list drawable to the view with the xml android:background attribute or in Java with view.setBackgroundResource(..) May 04 16:51:59 danijoo: Are you still doing anything in Kotlin? Just curious. May 04 16:52:17 I've been playing around with it for a while, but I haven't had time to write anything serious in it. May 04 16:52:24 dbro, so one xml file for each image view is a must right? May 04 16:53:25 dbro, _Auron_ danijoo thanks guys for your time May 04 16:54:02 You define 1 xml file for the state list drawable (See Auron's link). You connect each ImageView to the *one* state list drawable xml via the xml "android:background" attribute or view.setBackgroundResource(...) May 04 16:56:37 <_Auron_> meadhikari: It's called a StateListDrawable, because it is a -list-. Each 'item' in the list is a different drawable, and is used accordingly for the states you define in the XML. Use this XML StateListDrawable as your Button background and it'll automate from there. May 04 16:56:47 I'm gettting a fun error: AppCompat does not support the current theme features. Here are my themes.xml files: http://pastie.org/10141410 The post I saw on SO says to use "Theme.AppCompat" as my base theme, and I still get the error May 04 16:59:27 It's the windowActionBar thing. May 04 17:00:02 http://stackoverflow.com/questions/29790070/upgraded-to-appcompat-v22-1-0-and-now-getting-illegalargumentexception-appcompa May 04 17:00:37 _Auron_, my case is like this, http://prntscr.com/71gzpp with each having a separate image on when it is pressed, so I was thinking of writing just one StateListDrawable for all three, which I am clear is not possible May 04 17:00:58 _Auron_, thanks once again for the clarification May 04 17:05:27 HI May 04 17:05:30 SUP May 04 17:08:41 TacticalJoke, yep May 04 17:08:59 I have an app in production with only 4 java classes May 04 17:09:16 4? you could do it with 1, an Activity :p May 04 17:09:29 unless you're counting all classes that are generated May 04 17:09:36 in which case, you have Manifest, and R.* May 04 17:09:37 pfn, you could do it with 0 :p May 04 17:09:49 danijoo, well, not really May 04 17:09:55 the 4 are pojos and i only did them in java because of easy gson May 04 17:10:12 danijoo, are you talking about using non-java then, ok May 04 17:10:46 pfn, yeah I mean 4 java classes and xx kotlin classes :p May 04 17:10:59 danijoo, yeah, that's not as interesting May 04 17:10:59 :p May 04 17:11:06 :pp May 04 17:11:25 thought we wree code golfing May 04 17:12:22 most of my apps only have R for a java class May 04 17:12:40 i dont count generated files :) May 04 17:16:20 anyone familiar with renderscript know if this can be done https://github.com/antonmks/nvParse May 04 17:16:25 (parse CSV file) May 04 17:24:54 danijoo: Nice. I badly wanna use Kotlin, but I think I'm gonna wait till 1.0. May 04 17:25:37 i suspect the MS tools that port your app to Windows should work regardless of kotlin ? May 04 17:25:45 should just be bytecode May 04 17:26:26 good question May 04 17:29:13 new android SDK 24.2 May 04 17:30:08 how do I get Android Studio to figure out that DaggerAppComponent exists? May 04 17:30:13 dagger:2.0 May 04 17:35:13 Same way you let it know about any other class in your project, I guess? Put it in a source folder May 04 17:35:21 joshkovach well, dince jake's not answering i'll put this here http://frogermcs.github.io/dagger-1-to-2-migration/ May 04 17:35:36 use the android-apt plugin May 04 17:35:55 jake is here :D May 04 17:39:33 apt 'com.google.dagger:dagger-compiler:2.0' May 04 17:40:00 apply plugin: 'com.neenbedankt.android-apt' May 04 17:40:11 now just Build > Make any time you write something that generates code May 04 17:40:36 if i'm implementing multiselect with recyclerview, should it be enough that whan a view is long-pressed i remember that view position, and the ViewHolder sets that view.setSelected(true) ? May 04 17:41:15 <_genuser_> g00s: this implementation, is it going to be open and online for re-use by others? May 04 17:41:40 <_genuser_> I've been meaning to implement multi-select in gridview (which is what I'm using for picture gallery view) for the time being. May 04 17:42:08 _genuser_ i dount it, i think its simple enough without a library May 04 17:42:12 *doubt May 04 17:42:35 Thanks, Build -> Make Project was what I was missing May 04 17:42:52 <_genuser_> true, I wasn't thinking lib. I was just thinking the class. I'd rather copy a properly working class that's been tested than write and alpha/beta test yet another objet. May 04 17:43:45 i just wonder if i need my selectable things to have an 'overlay' view that tints them selected, oh well May 04 17:44:05 a selector should be enough May 04 17:44:59 _genuser_ btw i am following this http://enoent.fr/blog/2015/01/18/recyclerview-basics/ May 04 17:45:03 danijoo thanks May 04 17:45:22 _genuser_ starts at 1. Selection state May 04 17:45:39 but they use that overlay view, i'm going to try danijoo 's suggestion May 04 17:46:13 joshkovach: you'll also need to do that when your change the API of your component in order to have the generated code update. May 04 17:46:16 g00s, selectors can be in forgorund too :p May 04 17:46:26 danijoo yeah i have that on my cardview May 04 17:46:27 JakeWharton: thanks May 04 17:46:41 <_genuser_> g00s: nice. I think I saw a similar one by vogella. I didn't get convinced to put in more work and more to recyclerview instead of the gridview, since gridview worked fine with picasso. May 04 17:46:52 <_genuser_> and I haven't had speed or memory issues with it. so far. May 04 17:46:58 yeah if it works i wouldn't change :) May 04 17:47:07 g00s: May 04 17:47:11 thepoosh ! May 04 17:47:26 _genuser_ eventually i wanted to implement drag and drop, and RV was supposed to be easier May 04 17:47:32 flippin' material design issues May 04 17:47:49 <_genuser_> g00s: oh nice. drag and drop might be quite cool UI eye candy wise May 04 17:47:49 because of the new design, there is a default value to SeekBar May 04 17:48:03 which caused 6 reopens of the same ticket May 04 17:48:11 fixed today like a baws! May 04 17:48:17 wow :D May 04 17:48:51 well, more like read through vlc code and found an attribute i wasn't familiar with May 04 17:48:55 :P May 04 17:49:59 <_genuser_> ah, geez, the chrome bookmark management has completely gone touch friendly and not so mouse friendly. May 04 17:50:10 wat? May 04 17:50:42 is it possible to "install" a gradle dependency into the gradle cache, similar to maven May 04 17:51:04 are you using incremental build? May 04 17:51:37 yes, this also isn't a library project of the root app, it is a whole separate project May 04 17:52:12 is it a module? May 04 17:52:32 yes May 04 17:52:59 so it should be as part of your root build.gradle May 04 17:53:34 it is not in the same project as the app that uses it May 04 17:53:55 heater89 yeah look at the uploadArchives stuff in gradle examples May 04 17:54:14 g00s: thanks, i will take a look at that May 04 17:54:15 actuallyi think the newer grade samples lost those ... May 04 17:54:25 g00s: I am using gradle 1.2.0 May 04 17:54:43 heater89 i had a problem with it not addings its dependencies to the pom May 04 17:54:55 good luck :) May 04 17:55:07 heater89 may as well use 1.2.2 May 04 17:55:14 g00s: don't be like that, we are still ising 1.12 May 04 17:56:06 :D May 04 17:59:46 g00s: this would still require me to have a flat dir repo, or utilize maven's repo right? May 04 18:00:17 it can be a m2repository on your machine or over the network i think May 04 18:00:30 ~/.m2 May 04 18:01:15 g00s: alright, so there isn't anyway to write to .gradle/cache it has to pull from either remote repo or .m2 May 04 18:01:44 yeah i think so May 04 18:01:57 g00s: seems like that is a big limitation... no? May 04 18:02:20 no, just put you ~/.m2 entry in build.gradle repositories May 04 18:02:48 there is an alias : mavenLocal() May 04 18:03:15 repositories { mavenLocal() \n mavenCentral() \n } May 04 18:03:59 Whats the best way to to start/stop animation drawable as the action view of action bar menuitem? May 04 18:04:03 g00s: right, i thought there would be a more 'native' way of doing something like this, vs needing to utilize maven May 04 18:04:24 not like maven has to be installed May 04 18:04:37 you are just publishing a project's artifacts to it May 04 18:04:44 to its ~/.m2 May 04 18:05:15 yea, that's true May 04 18:06:00 i would think of the gradle cache more as impl detail May 04 18:11:41 how 'different' should two apps be, that i don't use flavors/build variants anymore, but actually separate them into two projects? May 04 18:12:49 usecase for flavours would be: one with google apps for playstore, one without for amazon store May 04 18:12:49 <_Auron_> fancy42: different enough to warranty a need for two separate apps. May 04 18:12:56 or premium and free version May 04 18:13:27 <_Auron_> or a TV app versus mobile May 04 18:13:33 <_Auron_> (maybe) May 04 18:14:24 basically anything that shares the most of its code May 04 18:14:32 we have a 'main' version that we develop for us and then we sell rebrandings of the app to customers. but they don't always get all the features or at least later on May 04 18:15:00 sounds more like you should use modules May 04 18:15:03 you could do that at your dvcs level May 04 18:15:07 branch <- May 04 18:15:16 different features in different modules May 04 18:15:16 dcvs* May 04 18:15:19 i have an animationd rawable for refresh on actiob bar menu refresh icon, but when it runs its to th eright slgihtly, anyone know why? May 04 18:16:26 TacticalJoke you there ? May 04 18:16:31 Yeah. May 04 18:16:44 TacticalJoke reading http://www.reddit.com/r/androiddev/comments/34uehq/is_there_a_way_to_disable_the_subreddit_styles/ May 04 18:16:49 where is that checkbox? i dont see it May 04 18:16:55 You need RES, I think. May 04 18:17:04 what is RES ? May 04 18:17:16 g00s: so, i ran into this problem earlier, but when gradle can't resolve from mavenLocal it fails, instead of moving on to the next defined repo May 04 18:17:19 A Chrome extensions. May 04 18:17:21 extension* May 04 18:17:28 well we use modules as much as possible. the hope is that at some point the only thing the different versions of the App do is arranging how these modules work together May 04 18:17:31 But you can disable *all* subreddit styles in the normal reddit settings. May 04 18:17:39 RES lets you disable them per subreddit. May 04 18:18:12 hello May 04 18:18:15 anyone have a good overview of the AppContainer+ActivityHierarchyServer pattern I see in all the u2020 apps? Feels like there's a lot going on there but nota lot of explanation as to what/why May 04 18:18:18 i have a question May 04 18:19:15 when my main GUI activity finishes (using the back button), the service still works May 04 18:20:10 hTmlDP: that is not a question May 04 18:20:13 but when i close the app from the last used list, the service stops May 04 18:20:25 how can i make the service still work after that? May 04 18:20:31 thepoosh: now it is =) May 04 18:20:37 TacticalJoke ok, disabled it for all subreddits May 04 18:20:41 thanks May 04 18:20:43 create a sticky service May 04 18:20:51 and you cannot May 04 18:21:12 hTmlDP well, that could be kinda a bug May 04 18:21:16 swiping from recents is almost the same as going to settings>apps and clicking force close May 04 18:21:39 thepoosh: i do create a sticky service May 04 18:21:43 thepoosh is right, but different versions of android have shown different behavior - when that service is foreground May 04 18:21:48 so how can i restart that service? May 04 18:21:51 immediately May 04 18:22:34 you dont. May 04 18:22:41 hTmlDP: http://stackoverflow.com/a/10707996/1056359 May 04 18:22:42 if it stops with tyour app, you are doing it wrong. May 04 18:23:08 fine May 04 18:23:12 gta v time May 04 18:23:14 that's my code May 04 18:23:15 http://lpst.tk/?ijrE May 04 18:23:48 thats a pretty empty service May 04 18:24:10 hTmlDP read https://groups.google.com/forum/#!topic/android-developers/mRDeMHVVS3Q May 04 18:24:47 we need a bot May 04 18:24:56 that quickly links guys to android docs May 04 18:26:38 JakeWharton: Do you by chance have written up something that explains the AppContainer + ActivityHierarchyServer stuff of the u2020 app? May 04 18:26:40 The bot would have to be a genius, deftly figuring out whether to go to d.a.c, SO, GG, or elsewhere. May 04 18:27:06 joshkovach: AppContainer is just an indirection to allow attaching the debug drawer in debug builds May 04 18:27:17 ahh, ok May 04 18:27:21 TacticalJoke, nah.. not that kind of bot. something like "!docs service" and it puts out the link to documentation about service May 04 18:27:54 ActivityHierarchyServer is just an adapter version of ViewServer (https://github.com/romainguy/ViewServer) which lets you use hierarchy viewer May 04 18:27:56 bcs people seem to not google for those docs and ask here instead May 04 18:27:59 lol nevermind, it works and worked before May 04 18:28:07 i wasn't patient enough =p May 04 18:28:17 the service restarts after 3-4 seconds May 04 18:28:48 g00s: oh won't it work on 5.1? May 04 18:30:39 g00s: I agree with the too-much-whitespace thing. :D May 04 18:30:42 Just saw that. May 04 18:30:52 In both things. May 04 18:31:12 :D May 04 18:31:27 guys, I'm trying to build an android project with gradle from command line, but it says he could not find com.android.support:appcompat-v7:22.1.1. What should I do? May 04 18:31:44 fsestini, update your sdk May 04 18:32:01 install the support repository May 04 18:32:46 danijoo, where do i find it in the sdk manager? May 04 18:32:56 yep May 04 18:32:59 at the bottom May 04 18:34:00 danijoo, android support library? May 04 18:34:06 yep May 04 18:34:11 but the repository ro it May 04 18:35:16 danijoo, installing.. thank you very much! May 04 18:35:20 So in AS I see my project all alone on a bar at the top. Why can't I have multiple projects there? May 04 18:35:24 I am inflating an imagview with an animtion drawable that I was use actionview for a menu item, setting it / clearing it when it is clicked. problem is it's slightly off center, can't figure out why May 04 18:36:09 lasserix, maybe your image is off center in the file? :p May 04 18:36:17 no May 04 18:37:41 its like just auto aligning to the right May 04 18:37:48 instead of being centered May 04 18:40:40 Quacked|: We can't have multiple projects in one window, can we? May 04 18:40:46 Even in the Alt+1 window. May 04 18:41:15 you can open AS 2 times :p May 04 18:41:33 ahh May 04 18:41:46 so actionbar icons are actually 48dp May 04 18:41:51 How can see how much memory my thread pool is using? I don't see any difference in AS's Memory Monitor with hugely different thread-pool sizes. May 04 18:41:53 g00s, did you find a solution to the 4 java processes? May 04 18:41:57 err the "layout space per icon is 48dp" May 04 18:41:59 i think i need more ram May 04 18:42:05 danijoo it hasn't happened today May 04 18:42:15 g00s, interessting May 04 18:42:30 I might ask you again at end of week and decide if I update after that :) May 04 18:42:30 lasserix: they're 36dp square May 04 18:42:38 the icons themselves May 04 18:42:45 yes May 04 18:42:45 but the actual space is 48 May 04 18:43:01 google just rejected a bugfix update from me -_- May 04 18:43:04 danijoo its more likely when i sync gradle manually and then build, i haven't sync'd gradle in a few days May 04 18:43:06 no changes in any content May 04 18:43:07 kind of.. May 04 18:43:09 if you click on one, the square that lights up takes up 48dp May 04 18:43:10 whats wrong with them May 04 18:43:19 in height, in portrait, pre-5.0 yes May 04 18:43:35 TacticalJoke: have you checked out Glide image library ? I heard it supports .gif May 04 18:43:36 landscape is 40dp height, sw600dp is 56dp in height (again, pre-5.0) May 04 18:43:48 the width has a minimum of 56dp regardless of height May 04 18:44:10 and on 5.0+ the height has changed to be 56dp in portrait May 04 18:44:29 Yeah. I ended up rolling my own (so that I can have download progress, total customisation over everything including thread pools, etc.). May 04 18:44:37 JakeWharton: so is there a easy way to make the actionview copy the bounds of the actiom menu icon since I really, really dont want to modify the 50 frames again May 04 18:44:53 or is there a ?style of some sort for that? May 04 18:44:56 Also, I need a tiny subset of their functionality. May 04 18:44:57 There are styles you can use for your action views, if you want them the same size as the action bar icon May 04 18:45:10 At least there was pre-toolbar.. Can't imagine that changed May 04 18:45:36 Anyone know what that might be? I never have used the ?android..r much May 04 18:46:02 lasserix you're gonna have to read up on the ?android :P May 04 18:47:06 there is a style for it, not sure there's a public attribute May 04 18:47:11 I'm still trying to figure out an optimal thread-pool strategy. What should I read? JCIP? May 04 18:47:18 Mainly I can't figure out how many core threads to keep, etc. May 04 18:47:25 for what? May 04 18:47:36 TacticalJoke: I heard rxjava is good for that stuff May 04 18:47:40 For an Android reddit client. May 04 18:47:56 that tells me nothing May 04 18:48:02 so try 435 May 04 18:50:42 JakeWharton: yeah seems teh case May 04 18:50:47 hurry TacticalJoke, please May 04 18:51:17 I'm assuming reddit will be dead in few years, still waiting for your client to be released BEFORE reddit is dead : May 04 18:51:18 :p May 04 18:52:12 Oh, man, I hope not. May 04 18:53:05 TacticalJoke, its time for a beta! :P May 04 18:56:13 I hope so soon. :) May 04 18:56:48 Where 'soon' is totally up to the reader's interpretation. May 04 18:57:01 s/to/for/ May 04 18:59:58 In Gradle is there a way to specify different environment variables depending on the buildType? May 04 19:00:12 soon == ASAP May 04 19:01:03 lollipop ripple seems tobe interfering withmy animation drawable, is this a known thing? May 04 19:01:25 hello. No action bar is being shown in my activities. I am using AppCompact, as