**** BEGIN LOGGING AT Mon May 18 02:59:59 2015 May 18 03:08:52 TacticalJoke: im a bad coder so a lot of times instead of using setTag ill get the text inside of the view and use that in my conditions May 18 03:19:20 TacticalJoke: not being familiar with tags, are they kind of similar to CSS classes? May 18 03:23:49 Nah, tags are just arbitrary data that can be associated with a View. May 18 03:24:12 As far as I remember, CSS classes are more like Java 7 superclasses. May 18 03:27:06 hey anyone knows of a good tutorial to use existing database in android? May 18 03:27:56 Lol, what will be the name of next Nexus? :D Nexus 7 is already released years ago. May 18 03:28:38 I can't say I'm amazed by Google's naming schemes. May 18 03:29:54 I can't imagine they didn't foresee this. May 18 03:30:23 Knowing Google, they're just release another 5" screen and call it Nexus 5 2015/2016. May 18 03:30:31 (Whichever year; I dunno.) May 18 03:30:43 lol May 18 03:31:15 Names for 7 and 9 are already reserved May 18 03:31:27 so may be they will call it "Nexus 8" May 18 03:33:56 I'm happy with my Gnex though. Someone from XDA managed to build Lollipop for it as well. May 18 03:38:47 napster: obviously 7.2 May 18 03:38:49 :P May 18 03:38:58 napster: and it's slow May 18 03:39:05 I mean galaxy nexus May 18 03:39:29 so in the end who will make new nexus 5? LG or Huawei ? May 18 03:39:50 slow when you use it for your day to day needs. I use Gnex for development only. I have an iPhone for other uses. ;) May 18 03:40:26 LG already have two devices. So I would love to see from Huawei May 18 03:42:00 hmm May 18 03:42:18 dont know what huawei is like in case of quality May 18 03:48:50 LG is the fucking worst in terms of customer service May 18 03:48:59 took two months for me to get my nexus 4 back after sending it in for repair May 18 03:49:03 I would love to see it from Motorola honestly :) May 18 03:52:27 like nexus 6 ? May 18 03:52:30 it would be expensive May 18 03:56:24 I have visited stackoverflow for 175 consecutive days. I have a problem. May 18 03:56:45 i visited stackoverflow for 176 consecutive days :p May 18 03:56:51 haha May 18 03:56:56 jajaja May 18 03:57:36 You get a little gold badge when you hit 100. I'm wondering if I will get another. My mom never gave me a gold star so I'm looking forward to this. /s May 18 04:00:42 haha /s, but no /s. that badge means something bro. that badge means something. May 18 04:04:57 Expensive but new phones from Moto appears to be very good to me. Almost vanilla Android, and pretty much good build quality. gordon_ May 18 04:06:13 strictly for development? May 18 04:07:35 Nexuses (Nexi?) don't interest me that much. May 18 04:07:47 The screens always look faded and yellow. May 18 04:07:55 All of the Nexus phones have terrible cameras May 18 04:08:02 which is a huge bummer May 18 04:08:20 I like the Sony blue, bright screens. May 18 04:08:37 Nexus is Googli for "beta tester's device" May 18 04:08:53 liuwenhao, what phone did you end up getting? z1 compact? May 18 04:09:58 i found a cheap refurbished gs5 on ebay and love it, haven't gotten around to flashing a custom rom yet though May 18 04:10:24 i still have my nexus 4 for developing May 18 04:10:30 how much for the gs5? May 18 04:11:06 does the xml editor in android studio have nifty shortcuts? it's kind of annoying to add attributes to an xml tag May 18 04:11:38 If one is planning to run custom ROMs, Nexus phones are good. May 18 04:12:45 it was around $275. I wasn't sure if I would like it because of touchwiz but it's great, no problems at all May 18 04:13:04 swappable battery is nice too, i live in china and picked up some batteries for $5 each May 18 04:13:59 You will be getting domestic brands in China right? one of my friend has a phone that looks like iPhone 6 running Android 5 May 18 04:14:06 nexus 4 on 5.1 camera api force reboots the phone half the time so having a phone with an actually good camera is a nice change May 18 04:14:22 i bought it in the usa napster May 18 04:14:30 ok May 18 04:14:46 if you want clones you can buy them for super cheap on taobao.com or jd May 18 04:14:49 lol, i had to upvote "Stop doing a half-assed job at everything." for I/O wish May 18 04:15:08 and then there's the actual good chinese brands like meizu and xiaomi that are pretty inexpensive as ewll May 18 04:15:26 g00s: heh there's a wishlist? May 18 04:15:33 shoerain yeah on reddit May 18 04:15:49 Xiomi ftw May 18 04:17:26 http://www.gsmarena.com/meizu_mx4-6627.php i was considering this for a while but no sd card slot May 18 04:18:21 nice looking phone though May 18 04:18:40 it's pretty hard to make an ugly phone these days May 18 04:19:04 nokia does a pretty good job at making ugly phones May 18 04:19:06 it's the fit and finish that's hard to copy May 18 04:19:42 Only apple can do that kind of finish ;) May 18 04:20:25 http://assets.windowsphone.com/efc5dce1-b923-4bf7-b556-595a485af2ab/Nokia-Lumia-920-PhoneHero_en-US_Default.png May 18 04:20:28 i never understood this design May 18 04:20:35 It looks like the phone is permanently in a box May 18 04:20:50 lol :D May 18 04:20:58 i used a 920 for a while and it drives me crazy May 18 04:21:04 i like the OS though May 18 04:21:05 i'm more offended by what's on-screen May 18 04:21:30 i'm still rocking my lumia 521, the mest phone evar for $75 May 18 04:21:37 lol mehst :D May 18 04:21:40 best ! May 18 04:21:57 tahts asewom May 18 04:21:58 nokia windows phone cameras are godly May 18 04:22:04 better than most point and shoots May 18 04:22:05 i'll be sad if nokia here maps gets sold to uber, those scumbags May 18 04:24:02 what does pressing the back button on the home screen do May 18 04:24:15 on that windows "phone" May 18 04:24:56 it depends May 18 04:25:03 Are those hardware buttons? May 18 04:25:06 long press on back shows something like recents on Android May 18 04:25:24 otherwise, it works like android mostly May 18 04:27:10 windows 10 looks like it will be a success for them May 18 04:27:22 i hope so - i need a change of scenery May 18 04:31:11 I wonder what will be the future of Android. May 18 04:33:08 as g00s would say... May 18 04:33:15 "bugs... lots and lots of bugs" May 18 04:33:57 Pwnies lol, indeed :D May 18 04:34:23 :) May 18 04:34:53 i always get the impression Android is one option of some Google A/B test that they are only doing because they have to May 18 04:34:59 are there any major drawbacks of removing android:process=":sync" from your syncadapter service? May 18 04:35:47 i expect memory usage would be higher? May 18 04:36:25 android is just an ad delivery vector so it will follow whatever the current market trends May 18 04:37:05 so the future of android is just the future of "mobile platforms" in general May 18 04:38:05 What is Windows dominate the market share in the future? May 18 04:38:53 mobile market share? May 18 04:39:29 yep May 18 04:39:51 why there are 18,24,36, 48 dp variations in "material-design-icons" ??? any one? May 18 04:40:14 vertical integration is just so important, i don't see it happening May 18 04:40:24 which dp is prefectly suitable for Toolbar ? May 18 04:40:43 because android devices come in a wide variety of resolutions May 18 04:41:09 hmm May 18 04:42:12 so how can I target all resolutions !!! May 18 04:42:36 by including them all -- the runtime choose which to use May 18 04:43:38 i'm not even sure windows phone will exist in 10 years May 18 04:44:06 that choice is by drawable-hdpi, mdpi, xhdpi, xxhdpi, and xxxhdpi May 18 04:44:11 lol i hope i'm not doing what i do today 10 years from now May 18 04:44:55 Given that they produce their own hardware and the OS May 18 04:44:56 Levite i think MS and Ubuntu have it right with their convered philosophy. if Windows phone doesn't exist 10 years from now, its because its just windows that runs on a phone May 18 04:45:07 s/convered/converged May 18 04:45:11 not that it really matters, MS doesn't bring any new ideas to the table. May 18 04:45:13 but the icons material-design-icons set has 18, 24, 36, 48 dp variations in all May 18 04:45:55 right. "windows" would be more profitable as a constellation of platform-agnostic apps May 18 04:48:19 Windows is bringing hundreds of millions of dollars every year, I think it's doing quite alright May 18 04:49:21 how many people are running windows on mac hardware though? it's unofficially a mac OS May 18 04:49:34 uh what? May 18 04:49:43 ? May 18 04:50:06 I never tried to write Windows apps, hoping eventually they will die out. :) May 18 04:50:21 you mean parallels? May 18 04:51:24 windows runs *excellently* in parallels May 18 04:52:56 but I'm referring to people running it using boot camp May 18 04:54:04 Why would people run Windows on Mac anyway? (except for programming purposes) May 18 04:54:30 games May 18 04:54:49 because the hardware is better and they can retain the option to run OS X and Linux, and gaming, and to fit in May 18 04:54:49 :D May 18 04:57:17 i'm wondering if chromebooks are going to catch on in the real world May 18 04:57:23 I actually just switched over to a macbook pro... I'm loving it so far May 18 04:57:53 Hey is there a way to use the old hierarchyViewer again? I want to see the tree view, which is really weird in the device monitor May 18 05:01:24 i think in the future, discussing what hardware you use is going to be seem as lame May 18 05:01:28 i think May 18 05:02:00 Levite i dont think you are considering the social psychology of brands May 18 05:03:34 the tribes we belong to, ideal we subscribe to, and simply prestige May 18 05:04:00 i read somewhere it works very much like religous affiliation May 18 05:08:08 it's like in the 50's how you had greasers arguing over ford vs. chevy but the cool kids just wanted to cruise around May 18 05:09:41 WantToCode: there's a command-line tool that'll just launch it, but it's pretty busted it seems :| I've always had to run (and lately, modify) https://github.com/romainguy/ViewServer to get it to do anything. May 18 05:09:56 Hmm, I got a rather weird crash report tonight. NumberFormatException on "40.0dip" when inflating some xml-file (says unknown binary xml file) while launching the app. The only layout xml relevant does contain a couple of "40dp", but..... what? May 18 05:10:19 the cmd tool just says it is deprecated and quits. Ubuntu 14.10 May 18 05:10:35 WantToCode: that's pretty horrible :\ May 18 05:10:58 WantToCode: ooh. it does say that normally, because it expects you to use the DDMS version (which is basically gone) May 18 05:11:30 WantToCode: but it should be opening up a java window. might be logs or something explaining the fail if there is one. May 18 05:11:36 I really like the tree view with all the data of measure, layout, draw, and the red green yellow dots. It gave a very nice overview. May 18 05:11:48 Does it open in your system? Which os? May 18 05:11:54 yeah, when I can get it to work, it's handy. and yes, OSX May 18 05:13:34 groxx, will try again and see the logs. Thanks May 18 05:14:47 I dunno. Anyone seen anything similar? heh May 18 05:22:05 Chamooze: dunno. can you post the stack / the xml file? I'd guess that it's just a field which accepts a _number_ but not a _dimension_ (though that would be kinda weird) May 18 05:23:51 My app has two activities: One to display a list of articles, and one to display an article when it's picked from the list. When I am on the activity that displays an article and I press the back button on my device, it goes back to the previous activity with the state of the activity persisted. If I press the Back arrow on my toolbar from the article activity, it goes back to the list activity but recreates it. Which of those is the correct action, May 18 05:25:19 t0astt: personally, I think it's generally better to leave things as they were, so I'd prefer the "up" button to act like the "back" button here. but both can make sense, depending on the context. May 18 05:25:44 groxx: that's my thinking as well. Would I just want to finish() on the "up" button then? May 18 05:26:20 groxx: http://pastie.org/10194191 May 18 05:26:37 t0astt: probably, yeah. I assume there's always an activity "under" the current one? May 18 05:26:44 WantToCode: from what I've head hierachy view doesnt always says true May 18 05:26:49 groxx: yes, there is always an activity underneath May 18 05:27:21 gordon_, as in the measure layout draw times? May 18 05:27:35 groxx: The line number from the stack does match the opening tag of where I use 40dp in the xml, but.... what the heck is going on? heh May 18 05:29:03 WantToCode: dont know all the details, just saying what I've heard May 18 05:29:10 hmm ok May 18 05:29:22 Chamooze: that's kinda funky, yeah.. May 18 05:29:36 there was skalpel project from square for debugging layouts May 18 05:29:47 groxx: Aah! It seems to be a bug with Galaxy Tab 2 and paddingStart/End specifically. lol May 18 05:29:48 https://code.google.com/p/android/issues/detail?id=60055 May 18 05:30:07 it doesn't always give you _accurate_ times, but they tend to be reasonably comparable. something's better than nothing. May 18 05:30:53 Chamooze: interesting. what OS version? May 18 05:32:04 groxx: 4.1 May 18 05:33:07 groxx: Not sure if it also affects newer versions, I've only gotten 1 crash out of ~1700 users May 18 05:33:08 huh. I wonder if they shipped with some internal "paddingStart" thing that's colliding now. May 18 05:33:15 samsung does that kind of crap all the time though :| May 18 05:33:47 man i hope samsung just goes with tizen and dissapears May 18 05:34:43 simple fix in this case - I only added paddingStart/End because lint suggested it to better support RTL layouts, but since the padding is symmetrical it's not really needed May 18 05:35:07 still... damn, that's a bad bug. May 18 05:36:01 but but .. its Obsolete May 18 05:36:31 I feel like there needs to be a community version of `lint` that is just a crap-ton of "this crashes on samsung devices running X or Y". May 18 05:36:33 well its Samsung so, yeah May 18 05:36:41 groxx exactly May 18 05:36:58 that would be awesome May 18 05:37:11 i thought about this , even years ago. and when i type something in AS editor, if i'm about to use an API with a bug a tooltip should come up May 18 05:37:26 but it would require good data, thats the problem May 18 05:37:28 hence my desire to have a wiki form of the android docs May 18 05:37:42 i good database, of app the devices, the apis that broke on each one, etc, it would be hard to confirm this May 18 05:37:49 wiki -> javadoc -> in-IDE cautions. May 18 05:38:06 If there was a warning "This might not work on Samsung", our sources would have yellow on every single line May 18 05:38:24 i wish i could just blacklist a manufacturer from Play May 18 05:38:26 easiest lint check ever May 18 05:38:44 if (checks.include(samsung_compat)) return false; May 18 05:39:43 groxx probably somebody would have to create something like a CTS and run it on each device, it would be a huge undertaking May 18 05:39:56 and collect the bugs / diffs into a database May 18 05:40:02 ya, the only crash report I have for my app is a samsung. May 18 05:40:44 i'm kinda excited about ARA but i don't see how Google is going to handle now even more configurations like that May 18 05:41:11 we have enough problems with phones that don't swap components May 18 05:42:39 a majority of my crashes are from the "galaxy ace" whatever that is May 18 05:44:23 the note4 is bad too May 18 05:45:01 i have users & problems with note 3 May 18 05:45:15 for some reason, damn thing just doesn't want to connect to bluetooth devices May 18 05:45:45 this is the old rfcomm apis, shit was stable back in 2.1 May 18 05:51:41 Phew, fixed version uploaded to Play Store. thanks guys. :) May 18 05:53:02 groxx i wonder what would happen if devs could blacklist oems from Play. those stats would be interesting , buyers might decide on what oem has the least # of blacklisted apps May 18 05:53:16 transparency ftw ! May 18 05:53:42 but google is not going to want to admit that , devs blacklist at that scale, because it implies things are messed up May 18 05:53:56 until someone figures out how to game it ;) May 18 05:54:17 as long as they can't write a review :D May 18 06:07:08 is there a way to change the "OK, Google" prompt to "Fuck You, Google"? May 18 06:08:00 get a moto x May 18 06:08:13 lol May 18 06:10:03 I have a DialogFragment with Buttons that look like this: https://cdn.tutsplus.com/mobile/uploads/legacy/Android-SDK_Password-Box/fig3.png How can I change the style of the buttons to look like this? http://i.stack.imgur.com/bB4WZ.png May 18 06:12:50 i think i might get a moto g (3) for dev May 18 06:13:21 g00s: get a BLU Vivo Air May 18 06:13:23 it seems like a solid device May 18 06:13:26 as long as its under $200 May 18 06:13:37 i'm never spending more than $200 for an android device :) May 18 06:13:48 I wish it had more RAM though May 18 06:13:53 the Vivo Air is about $200 May 18 06:14:18 Any ideas? May 18 06:14:56 besides entering XML hell? no May 18 06:16:11 Is there a way to change the Button style or do I need to use AlertDialogBuilder and build ths thing from scratch? May 18 06:19:34 "Report: Saudis may purchase Pakistani atomic bomb" d'oh ! May 18 06:21:55 shmooz does it come with a geiger counter ? May 18 06:22:25 g00s: there's an app that modifies cameras to detect radiation May 18 06:22:30 https://github.com/Morlunk/Plumble anyone build this project on windows? May 18 06:22:38 but you have to put a black tape over the lens May 18 06:22:50 oh yeah now i remember that May 18 06:22:54 I forgot what it was called May 18 06:26:01 I tried style="?android:attr/borderlessButtonStyle", but then I don't get any border. I want just a line border such as here: http://i.stack.imgur.com/bB4WZ.png May 18 06:26:23 lol thats because its borderless :D May 18 06:26:46 I would like the style that AlertDialog.Builder uses, but I can't find it. May 18 06:26:49 i see barq is descending into theme attribute hell May 18 06:27:42 barq that could come from the linearlayout dividers / seps ... May 18 06:27:55 but you could do it yourself anyhow May 18 06:28:33 shmooz just came across this http://www.amazon.com/gp/product/0300199473 May 18 06:28:58 Well, there must be a style defined somewhere that AlertDialog.Builder uses? May 18 06:34:58 Hello, replace() with addToBackstack is basicly add()? May 18 06:35:16 if I replace() and add to backstack every time? May 18 06:42:08 g00s: we are far from either path May 18 06:42:50 it won't set us free and it won't lock us up, it'll just annoy us for the next couple centuries May 18 06:47:28 when I hear " internet of things " I think of my panasonic "smart tv" May 18 06:47:42 a bunch of software written by idiots May 18 06:48:59 "things" indeed May 18 06:49:09 Levite is it as bad as this? http://techcrunch.com/2015/02/08/telescreen/ May 18 06:50:07 meh, that's maliciousness May 18 06:50:26 well, not maliciousness May 18 06:50:55 it's basically tacking the "internet" onto existing products tends to make crappy products May 18 06:51:17 instead of making things that are useful in and of themselves, organically useful May 18 06:53:13 Mornin happy people :) May 18 06:53:55 regular people aren't nerds so non-intuitive products don't usually succeed in the free market May 18 06:54:08 so it's not really an issue May 18 06:56:09 good taste is in such limited supply May 18 06:59:20 I SAID DO MY DISHES , NOT POO MY WISHES ! May 18 07:00:37 what I hate most is seeing tasteful products like Nest being assimilated by non-tasteful entities like Google May 18 07:03:50 I'd say the most important quality in a company is earnestness May 18 07:04:22 Mavrik did you learn anything from that BLE talk ? it was kinda basic May 18 07:04:56 I just skimmed over it since I don't use it, but yeah, it looked basic enough May 18 07:05:12 Maybe if there was a video since I guess the guy actually explains the gotchas around it May 18 07:05:21 API22+ I guess ;) May 18 07:06:12 ooh new Silicon Valley May 18 07:07:07 too many dick jokes on that show May 18 07:07:25 well there's a new good female character May 18 07:08:16 I wish IT Crowd was back May 18 07:09:15 http://cdn-www.xda-developers.com/wp-content/uploads/2012/07/Logcat.jpg May 18 07:09:23 lol May 18 07:09:24 please help May 18 07:09:27 that's my logcat May 18 07:09:42 lelz May 18 07:13:46 holy shit, this looks cool http://blogs.nvidia.com/blog/2015/03/17/pascal/ May 18 07:22:16 capella so sounds like multiprocess FF is next release May 18 07:23:16 yeah i just installed nightly to try it out May 18 07:23:29 Levite how is memory usage ? May 18 07:23:34 seems nice I guess, not that I had any problems with single process FF May 18 07:23:35 tell us what you seee !!!! May 18 07:23:39 too early to tell May 18 07:23:45 It was a little buggy @ first - they've fixed a lot of stuff May 18 07:23:52 it seems like there's going to be friction with existing addons though, that's what worries me May 18 07:24:19 Oh, yah, that not fixed up yet? May 18 07:24:23 not at all May 18 07:24:31 I remember it was a problem out of the gate May 18 07:24:50 they've added shims and stuff to maintain backwards compatibility but looking at the new API it's going to be rewrite city May 18 07:25:08 I think they're even paying the adblock plus guy to do it May 18 07:25:54 yeah can't have interwebs without ABP May 18 07:25:59 devs that have been developing for chrome should be able to adapt well May 18 07:26:06 sorry, I meant NoScript May 18 07:26:37 the addons page gives dire warnings like here https://dl.dropboxusercontent.com/u/24899691/m/Screen%20Shot%202015-05-18%20at%202.26.18%20AM.png May 18 07:26:46 capella see, thats the ticket ... write plugin nobody can do without, let mozilla make breaking change, wait for donation ... profit ! May 18 07:27:26 i wish they would release an iOS version already May 18 07:27:31 hello everyone. I would like to create an app that downloads encrypted files from a web server (PDFs, html5 animations,videos, etc) and views them. could you recommend something for this? May 18 07:28:20 this is an interesting read re:noscript https://bugzilla.mozilla.org/show_bug.cgi?id=1058542 May 18 07:29:50 and adblock: https://bugzilla.mozilla.org/show_bug.cgi?id=930787 May 18 07:31:33 mozilla is one of the few companies that I trust implicitly so I want them to succeed May 18 07:31:49 if wishes were dollars May 18 07:33:21 capella your electricty failing again ? May 18 07:33:35 maybe that nuclear reactor is having a problem May 18 07:34:13 no - my machine just got flaky - started auto-cancelling tasks ... ran out of virtual memory .... fan started blowing hot ... May 18 07:34:28 oh boy, e10 sounds great ! May 18 07:34:39 hahaha - I was in the middle of a build May 18 07:35:12 but I'd physically moved the laptop previously, so I wonder if I had a cable short(?) May 18 07:35:28 That damn N7 connection does odd things May 18 07:36:17 hm yeah i still baby my n7 May 18 07:36:31 especially now reports they are bricking from bad flash May 18 07:36:44 erm? oh dear May 18 07:37:15 my logcat is constantly being spammed with shit, presumably this is writing to a file on flash ? or is it just a circular memory buffer ? May 18 07:37:28 maybe Mavrik knows May 18 07:45:38 What is the style name that AlertDialog.Builder uses for the positive/negative buttons? May 18 07:46:08 barq you'll have to look it up May 18 07:46:21 open up those styles.xml, attrs.xml, themes.xml ... May 18 07:46:32 its time for a journey ! May 18 07:48:47 yay for open source \o/ May 18 07:49:48 Hi, where can I find menu templates? May 18 07:50:12 cart_man: google May 18 07:50:32 ive tried...I manage to find the same ones over ander over May 18 07:50:50 but it is ok I will just keep on searching. May 18 07:51:41 lol, this looks like such a terrible idea https://github.com/tumblr/Remember May 18 07:51:54 androidweekly.net is going to hell May 18 07:52:32 well it was a slow week - so they were probably digging up the dregs May 18 07:56:49 <_rm> what's the point of that May 18 07:56:59 <_rm> except to get something that's kinda similar to NSUserDefaults on ios May 18 07:58:27 i'm noticing one of the 'goals' of startups is to have some open source thing / lib, because its prestigous i guess - and they feel it attracts talent May 18 07:58:49 but often their lib is crapola May 18 08:00:11 "Pre-requisite: Your project must have Guava installed." May 18 08:00:42 lol thats awesome; we wrote this silly wrapper on dahredprefs - and to use it, increase your dex method count by 20k May 18 08:00:46 <_rm> that's quite a hefty dependency for what's essentially an interface on top of sharedpreferences May 18 08:00:52 <_rm> ya May 18 08:02:41 anyhow, anyone looking for a real k/v store that works well on android - i recommend H2 mvstore May 18 08:11:34 come on man, when's that rep gonna start rolling in! May 18 08:11:53 doesn't anybody want to know how to keep a google map centered as you zoom? May 18 08:12:11 * Odaym sulks May 18 08:12:20 meh - wonder if I should switch from intelliJ to AS May 18 08:14:57 hi - how do you secure API key stored in AndroidManifest.xml since it can retrieved by any apk backup tool? May 18 08:18:06 darklrd: What's the API key for? Used by a third party? May 18 08:18:08 Hi! I use the MediaRecorder to record a video from the camera. The result is a video where the blue and green channels are flipped. Does anyone know this problem / know how to solve it? May 18 08:18:59 People look like smurfs in the resulting video ;-) May 18 08:20:13 haha May 18 08:20:20 maybe the device is on shrooms May 18 08:21:07 Odaym: That was my first thought too, but It happens on other devices too May 18 08:21:24 that's good, means 1 major thing is wrong May 18 08:21:43 I would say it's in the settings of the media recorder, the initialization step May 18 08:21:48 but i cannot figure out what's wrong May 18 08:21:58 see all Constants that are valid to be fed to the recorder options May 18 08:22:41 http://developer.android.com/reference/android/media/MediaRecorder.html May 18 08:23:15 This is how i setup: https://gist.github.com/anonymous/3731a0b25a0304dda141 May 18 08:23:34 replman, your color space is wrong May 18 08:23:50 Mavrik: how to set it correct? May 18 08:23:59 Or you're setting a wrong video size May 18 08:24:11 Some devices demand that you record at the same resolution as preview is May 18 08:24:18 if (s.width == 640 && s.height == 480) May 18 08:24:18 { May 18 08:24:18 mMediaRecorder.setVideoSize(s.width, s.height); May 18 08:24:18 } May 18 08:24:35 definitely definitely pain to read this May 18 08:25:00 why? :-) May 18 08:25:08 640 and 480 written just like that May 18 08:25:29 there must be something else that calculates in another way May 18 08:25:55 how you do that if when its inside the for loop over supported sizes? May 18 08:26:07 just explicitly say "setVideoSize(640, 480)" May 18 08:26:43 But what if this size is not available? May 18 08:26:44 cause you're looping over all supported and only picking the one you want, just set the one you want from the beginning and don't loop over anything May 18 08:26:54 then you end up not setting anything! with that code May 18 08:27:25 (and causing recording issues) May 18 08:27:26 that code says, only if there is 640 480, set the video size, otherwise you don't set video size at all May 18 08:27:49 so right now you are unaware of what happened from the for loop result May 18 08:27:53 no idea what got picked in the end May 18 08:28:12 Yes, just wondering myself May 18 08:30:24 The colorspace problem still exists... May 18 08:30:44 How can I find out, what theme is used for the AlertDialog.Builder. The method setPositiveButton does not specify a theme, it just returns a Builder. And if I look into builder there are several possible themes that can be used. May 18 08:31:30 it will still exist replman because you weren't given a solution, just telling you that there is a problem, no idea what you decided to do about it May 18 08:31:53 its on SO I'm sure May 18 08:32:31 Odaym: already searched SO, but didn't found anything. Maybe i used the wrong search terms May 18 08:32:48 yea its not easy to search for this one May 18 08:38:20 Hey Guys, can someone tell me which is the APK for the TW launcher on Samsunt Node devices (Lollipop), May 18 08:38:31 is it /system/framework/twframework-res.apk May 18 08:44:09 wrong channel May 18 08:45:19 Mavrik: looks like you are right. If i set the recording size to the preview size, the colors are correct... May 18 09:03:38 How can I find out, what theme is used for the AlertDialog.Builder. The method setPositiveButton does not specify a theme, it just returns a Builder. And if I look into builder there are several possible themes that can be used. May 18 09:11:12 How can I get a border around the attr/buttonBarStyle? May 18 09:20:52 i have a client which claims that the fact that i am retrofit and he is using volley creates a problem when wifi is lost and 3g is regained May 18 09:20:55 does it make any sense? May 18 09:27:40 there's a dagger 2? May 18 09:27:41 lol May 18 09:31:59 https://www.youtube.com/watch?v=sEXHeTcxQy4 May 18 09:32:22 may be slightly NSFW, depending on the W May 18 09:35:17 Hi, i'm trying to learn more about broadcast receivers, my broadcast receiver for incoming call is only working when my application is started, is that normal? May 18 09:35:39 can't see youtube here :\ May 18 09:36:14 is it in manifest? do you have enough permissions May 18 09:37:39 Ashiren, well the broadcast receiver is working when i launch my application, i expected the system to instantiate my broadcast receiver even when i didn't explictly started my application May 18 09:39:28 nice BLE speaker deck, very nice he didn't miss anything https://speakerdeck.com/hugovisser/connecting-the-bean-the-bumpy-road-of-ble-on-android-1?utm_source=Android+Weekly&utm_campaign=b59a6e0142-Android_Weekly_153&utm_medium=email&utm_term=0_4eb677ad19-b59a6e0142-337905357 May 18 09:40:59 soulisson: for that it must be in manifest May 18 09:41:34 Ashiren, it's in the manifest May 18 09:43:18 Ashiren, one sec let me try once more May 18 09:43:42 Ashiren, the problem might come from the logcat filtering May 18 09:45:25 Ashiren, yes, the problem was coming from my logcat filtering rules, sorry May 18 10:00:37 hey does anyone know what EXCEPTION FROM SIMULATION: expected type int[] but found float[] means? May 18 10:01:07 in android studio May 18 10:10:27 i'll try again, cuz i know it raises a big question, is there a way that retrofit and volley toegether on same app makes a problem? May 18 10:24:59 danijoo, only Google analytics I am seeing that there are 26 sessions from the US, the app in question is not even on the store but it does have AdMob enabled and displays ads using the Test ID given by Admob, so it shows the same test add on all banners May 18 10:25:24 any idea what could be causing this? I mean I haven't even given the apt to anyone since I implemented analytics, what the henn May 18 10:25:59 are you located in the us?# May 18 10:26:54 oh, no May 18 10:27:15 mh. I thought it might be your test device(s) May 18 10:27:21 no idea.. May 18 10:27:27 I even get an iOS session, what the fuck May 18 10:27:36 lol May 18 10:27:40 thats weird May 18 10:27:59 i'd fill a bugreport May 18 10:28:00 it shows N5 and S3, that's reasonable because I have those 2 devices and I use them for testing May 18 10:28:16 but the map showing users is chock full of US users May 18 10:28:18 are you seeing them in the live session thing? May 18 10:28:26 nah, real time nothing of course May 18 10:28:30 yea Im going to do as you said May 18 10:30:11 Im going to look for a way to flush data May 18 10:30:33 cause even when I started, I was seeing duplicate screen view events May 18 10:32:09 I think it's all of those data sharing (spying) services you can opt in for when you create a new account May 18 10:34:21 ok, starting fresh again May 18 10:35:15 How can I find out what style AlertDialog.Builder.setPositiveButton is using for the button? I looked at the code, but the style is not defined in that method. May 18 10:35:28 dude this is the 10th time you ask that question today May 18 10:35:32 more than 1 May 18 10:35:34 10* May 18 10:35:44 So far no hints received. May 18 10:36:01 Except for look in the jungle. May 18 10:36:04 i am trying to get an android build image in docker but i get an error during the 'android update sdk' command: "Failed to rename directory /opt/android-sdk-linux/tools to /opt/android-sdk-linux/temp/ToolPackage.old01." Any idea what's wrong and how to fix it? The build runs as root May 18 10:36:06 then look elsewhere! May 18 10:36:27 There are other people online now than before. But thanks for your help. May 18 10:36:39 you could've got an answer long long ago May 18 10:36:53 How? May 18 10:36:54 but..ok :) good luck May 18 10:37:02 you have to find that out May 18 10:37:16 only you can prevent forest fires May 18 10:37:18 luke... May 18 10:38:19 Would you be so kind as to explain how? May 18 10:41:58 Odaym: In the constructor of Builder the alertDialogTheme is mentioned as a comment. Is that what you are referring to? May 18 10:41:59 how go in the jungle or how to prevent forest fires? :-/ May 18 10:42:23 make specific question please :( May 18 10:42:54 icemanbp: You mean me? May 18 10:42:59 ye May 18 10:43:05 you barq May 18 10:43:22 How can I find out what style AlertDialog.Builder.setPositiveButton is using for the button? May 18 10:43:44 you could've googled May 18 10:43:47 Or rather, what is the style, if my question is not specific enough. May 18 10:44:15 Of course I googled May 18 10:44:37 But I only found how to change the theme, not how to use the default for a different use. May 18 10:44:42 there is such a thing called App Theme May 18 10:44:52 which all elements inside an app use to know what they should look like May 18 10:45:03 change it and observe how magically things stop looking like they used to May 18 10:45:30 I have Theme.Light. May 18 10:45:31 baraq http://bit.ly/1HpDQis May 18 10:46:27 ez life May 18 10:47:08 icemanbp: Again, those results are how to CHANGE the default, not how to use the default for a custom DialogFragment. May 18 10:47:26 you can try to reproduce the same May 18 10:47:35 by setting attributes May 18 10:48:32 use the source, luke May 18 10:49:42 the strength it's the only way May 18 10:50:39 and if you look up to the sky, you will see Walker walking over the clouds May 18 10:51:01 I only see his shadow. Holo.Dark. May 18 10:51:07 there you go May 18 10:51:09 that's a start May 18 10:51:17 soon all your Exceptions will be forgiven May 18 10:51:26 he will fix your null heart May 18 10:51:39 and push you to the repo in the sky May 18 10:52:01 I changed Theme.Light to Theme.Holo.Light. No change whatsoever. May 18 10:52:14 did ANYTHING change? May 18 10:52:18 about ANY OTHER ELEMENT? May 18 10:52:31 All looks exactly the same. May 18 10:52:36 then you changed in the wrong file :P May 18 10:52:40 my god May 18 10:52:46 slap yourself and man up May 18 10:52:48 bbl May 18 10:53:20 I changed AppBaseTheme parent May 18 10:55:25 in what file, is the file you are editing applicable for the device May 18 10:55:41 cause there are many values folders May 18 10:55:48 I don't know man May 18 10:56:00 kick up the timer again and keep asking the question above :P May 18 10:56:28 Odaym: It's in styles.xml May 18 10:56:35 ... May 18 10:56:44 But I don't want to change the overall styles, just of the one Dialog. May 18 10:57:14 ok man gl May 18 10:57:16 you do know the alertdialog builder accepts theme ID as an optional argument, right? May 18 10:57:21 try doing something else May 18 10:57:34 show a Toast message for now :P May 18 10:57:35 I am not using an AlertDialog May 18 10:57:44 I am extending a DialogFragment. May 18 10:57:54 If I were using AlertDialog.Builder I wouldn't be asking. May 18 10:58:48 why does the sdk archive require additional downloads? for example /tools getting updated May 18 10:59:08 cause it has updates? May 18 10:59:14 things change May 18 10:59:30 hi, when there's service A, and two applications, AP1 and AP2, when each of those application uses service A, will each service call be performed in process in which service A is running? May 18 11:00:21 Odaym: How does it help that AlertDialog takes theme as optional param if I am not using AlertDialog? May 18 11:00:22 yes May 18 11:01:01 wakelock, you've responded to my question ? May 18 11:01:09 I wasn't the one talking about optional param for theme May 18 11:01:10 yes May 18 11:01:12 wakelock was May 18 11:01:35 barq, it doesn't, I didn't know you're using fragments instead of builder May 18 11:01:46 wakelock, thanks ;) May 18 11:02:07 wakelock: I want to find out the style that AlertDialog.Builder uses in order to use that style for a DialogFragment. May 18 11:03:13 I would've found the answer by now May 18 11:03:44 So would have I if I had gotten some input. May 18 11:03:47 cause of the awesomeness May 18 11:03:55 no input, I do it alone May 18 11:04:03 I just rubber ducky here, I don't expect anyone to know or care :P May 18 11:04:41 at least keep trying and report where you've reached, it gets people interested in solving what you're trying to solve, if it isn't silly May 18 11:04:52 not just repeating your need for help May 18 11:05:34 In the documentation for DialogFragment (http://developer.android.com/reference/android/app/DialogFragment.html) there is the option of setting a style for the dialog by doing setStyle in the code. May 18 11:06:12 i am having a problem adding a wifi network to a nexus 7 using WifiConfiguration wifiConfig = new WifiConfiguration(); it will work on a samsung tablet May 18 11:06:13 great shit! May 18 11:06:20 there should be a get then! May 18 11:06:24 here is my code http://pastebin.com/5TqKzmdq May 18 11:06:27 or SOMETHING May 18 11:06:33 any help would be great May 18 11:06:35 there's getTheme May 18 11:06:42 returns int May 18 11:11:01 ok i guess nobody knows May 18 11:12:40 so exactly what problem are you having? May 18 11:13:38 i cannot see the network i create on the nexus 7 May 18 11:13:43 Odaym: I need to know the style and theme though. May 18 11:13:45 just saying "I have a problem" will get you responses... May 18 11:14:47 Leeds: i want to add a network and connect to it... it works on most other tablets except this nexus 7 May 18 11:15:02 i cannot see any errors May 18 11:16:14 What is the name of this style/theme? http://i.stack.imgur.com/ijh4F.png May 18 11:17:46 well i have explained the problem May 18 11:19:04 is is adding a network cause this is returning Log.d("WifiPreference", "add Network returned " + netId); May 18 11:19:23 but looks like its hidden in the wifi list May 18 11:19:25 weird May 18 11:19:33 barq, looks like holo light May 18 11:19:40 or maybe material May 18 11:19:49 how can i set an imageview asynchronsouly inside an recycler view? May 18 11:20:36 wakelock: OK, if I use that the buttons are with grey background though as in https://cdn.tutsplus.com/mobile/uploads/legacy/Android-SDK_Password-Box/fig3.png May 18 11:23:06 well i guess no experts here May 18 11:23:26 this is standard gingerbread style, obviously you're not applying the theme correctly May 18 11:24:00 I am doing setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme_Holo_Light); May 18 11:24:34 maybe you're doing it too late May 18 11:24:35 dunno May 18 11:25:13 markpollard, impatient much? correct, we're not experts, we're just enthusiasts May 18 11:25:40 too late ? May 18 11:25:50 ... May 18 11:33:17 ok I have a question now. how come does not respect the included layout's margin? see here: http://pastebin.com/3T7jQwkw May 18 11:34:12 It's 1dp everywhere. May 18 11:34:52 ? May 18 11:35:26 that's true wakelock May 18 11:35:37 but why? May 18 11:35:37 I tend to set the margin on the include element\ May 18 11:35:40 but why May 18 11:35:40 is that a bug? May 18 11:35:41 well May 18 11:35:55 because it isn't aware of where its sitting in until its runtime May 18 11:35:56 I would guess May 18 11:36:03 what's the point in setting it in the "child" layout if it's going to get ignord? May 18 11:36:06 +e May 18 11:36:22 Odaym, doesn't matter, it is supposed to store that value for later use May 18 11:36:36 and the file you're including can't detect that its being included so that it would warn you about uselessness of setting margin in that included file May 18 11:36:41 makes sense to me May 18 11:37:31 In cameraparameters we have previewsizes and videosizes. Do previewsizes always contain all videosizes? May 18 11:37:32 doesn't make sense. if I can set the margin as an attribute to then it should be able to figure out the margin from the root node of the included xml as well May 18 11:37:47 Odaym, ^ May 18 11:38:22 I would like to set the margin in one place only and not have it scattered all across the xmls or (worse) set it in code somehow May 18 11:39:15 `However, if you want to override layout attributes using the tag, you must override both android:layout_height and android:layout_width in order for other layout attributes to take effect.' May 18 11:40:08 wow that's ridiculous, especially because the "inner" xml happily defines those as well May 18 11:40:27 "inner" = included May 18 11:40:28 it's cause of the parsing I'm sure May 18 11:40:47 meh. makes no sense at all and could/should have been done better May 18 11:40:54 it is ridiculous May 18 11:41:07 these things must be unchanged regardless of how they end up being used May 18 11:41:44 write your own layout inflator May 18 11:41:58 the fact that every single person who will try them will have to learn how they behave this way when in this specific case, means it's a bug :P May 18 11:42:00 it should be intuitive May 18 11:42:22 or "broken by design" May 18 11:42:28 nah I wouldn't go that far May 18 11:42:42 icedp, why don't I just write my own framework instead? May 18 11:42:51 start my own version of the VM May 18 11:43:11 it's a platform that allows you to do all of what you do, why rage at this :P May 18 11:43:46 because it is stupid and trivial and broken and hinders my progress May 18 11:44:07 wakelock: I agree, but what should we do. http://developer.android.com/reference/android/view/LayoutInflater.Factory.html it may be not that hard May 18 11:44:18 file a bug about it May 18 11:44:59 I know Im going to file a bug about this, for example https://dl.dropboxusercontent.com/u/19390574/Google-Keep_Animation_bug.mp4 May 18 11:45:03 hello May 18 11:45:24 I faced it and I found out that they face it too and yet they released the app regardless May 18 11:45:50 namely, unreliable layout animations May 18 11:46:18 as if tables aren't difficult and stubborn enough in android May 18 11:46:21 how do I authenticate/link an app with a website account (which the user already has)? having to enter username/password in the app seems inconvenient and insecure May 18 11:46:59 Thorn, OAuth May 18 11:47:04 the website has to provide an API that will let you do that, Thorn May 18 11:47:16 the website is under my control May 18 11:47:30 send yourself an email, ask yourself about such an API and see if you offer it May 18 11:47:34 Thorn, OAuth May 18 11:47:36 Odaym, I will not file any bug reports, because: 1) I have filed bug reports before and they never EVER so much as look at it, and 2) it does me no good if they fix it in some future release, I need it fixed NOW, for CURRENT frameworks May 18 11:47:37 so the user will have to login in chrome on the device? May 18 11:48:07 I understand your frustration, but what use is it to rage? May 18 11:48:13 you will achieve nothing and only waste tim May 18 11:48:30 hes always raging ^^ May 18 11:48:32 what about generating a code in the app and entering it in the web control panel or vice versa? May 18 11:48:35 I was like you man May 18 11:48:38 but then I took an arrow in the knee May 18 11:48:47 every day i see him hes like "fuck android" ^^' May 18 11:49:13 danijoo, go make your woman fetch you beer instead :p May 18 11:49:30 there is a reason why there are websites called "survivingwithandroid" May 18 11:49:33 ;) May 18 11:49:42 it ain't easy being cool, brah May 18 11:50:04 I'm not raging btw, I'm just venting. there's a difference May 18 11:50:10 renting May 18 11:50:12 and now I will start working on a workaround May 18 11:50:14 If something mocks you, change it. If you cant, take it or leave it. May 18 11:50:22 Raging just wastes your and our time. May 18 11:51:15 or, they can stop mocking. making fun of someone doesn't make you right and them wrong May 18 11:53:16 hey guys where the assets folders is in android studio or has it been removed completely? May 18 11:53:27 hert, you have to create it May 18 11:54:22 ok thnx May 18 11:54:23 here you go, wakelock https://code.google.com/p/android/issues/detail?id=2863#c9 May 18 11:54:26 since 2012 May 18 11:54:42 sorry 2010 May 18 11:55:14 and then in 2014, same thread https://code.google.com/p/android/issues/detail?id=2863#c27 May 18 11:56:17 ok, I see now why it gets ignored like that May 18 11:56:22 unbelievably dumb of them May 18 11:56:35 because nobody cares ^^ May 18 11:56:40 there are more important problem May 18 11:56:42 s May 18 11:57:04 yea like the one in my video above May 18 11:57:40 all views throw an error if you don't define layout_width and layout_height, if the error gets thrown then obviously all other attributes get ignored, however apparently the inflater silently ignores the error as if nothing happened May 18 11:57:53 Odaym, imagine being a google employee. You come to work and there are 3 things to do: wakelocks fill_parent, your animation issue and Android Lollipop memory leak on all nexus devices May 18 11:57:57 what do you do? :p May 18 11:58:00 are you passing null to the inflater, wakelock , by the way? May 18 11:58:15 I orgasm in my mind cause I got hired by Google May 18 11:58:21 das it May 18 11:58:22 danijoo, yes, everybody's problem is the most important and nobody else's is that important May 18 11:58:31 Odaym, thats why nobody works there :p May 18 11:58:33 correct wakelock May 18 11:58:37 orgasms everywhere :D May 18 11:58:41 haha May 18 11:58:48 Odaym, yes I pass null as the root May 18 11:58:52 they walk into the office in the morning "OH MY GOD WE WORK AT GOOGLE!" May 18 11:59:12 "somebody's had fun last night... AGAIN" May 18 11:59:18 ok its unrelated wakelock I was just wondering May 18 11:59:33 my friend works there May 18 11:59:47 he slacked off a little and got carried away in the beginning, got a warning May 18 12:00:24 individually I think we suck, but if we apply together...we have a shot May 18 12:00:38 we could work there collectively as one entity May 18 12:00:58 each getting $.12 from the collective paycheck May 18 12:01:09 yea but you'd go to work in turn May 18 12:01:23 representatives May 18 12:01:26 <_rm> my guess is that android's whole layout and ui system was written by interns May 18 12:01:45 _rm: lol May 18 12:01:50 to me layouts are the easiest part of android May 18 12:01:58 I understood the game once, and that was it May 18 12:02:03 _rm, it's not about who did it and why, it's about who would even think of releasing that May 18 12:02:03 <_rm> yes, because they are terrible May 18 12:02:25 <_rm> or well, layouts are fine May 18 12:03:03 you are all welcome to contribute to AOSP and fix the bugs. May 18 12:03:08 + May 18 12:03:13 that's right by the way May 18 12:03:43 for something like the include bug, there is a good chance that even a normal human being can do that May 18 12:04:09 but there are only 2 kind of people it seems. the raging ones and the ones not giving enough fucks ;) May 18 12:04:43 the raging fucks May 18 12:04:48 welcome to earth May 18 12:05:21 better rage 3 hours instead of fixing it in 1 ^^ May 18 12:05:33 or work arround it in 5 minutes May 18 12:05:56 danijoo, you think it's easy but it isn't. having to maintain 100% backward compatibility (which google claims is guaranteed) sometimes means having to leave bugs alone May 18 12:07:12 again, I am not raging. but if it bothers you, simply ignore it. it doesn't help pretending to be a smartass right now :p May 18 12:07:37 if you don't line android layouts by all means try ios autolayout May 18 12:07:52 btw... <--- STILL ignores the margin May 18 12:08:00 considering that the first android release was in 2008, when Java still was a language in growing popularity. the layout system in XML was a much better alternative than J2ME or JWT May 18 12:08:09 variable row heights, hiding a control with margins, etc. May 18 12:08:26 complain about the framework based on the current tech is unfair May 18 12:08:41 framedoesn'twork May 18 12:08:42 lel May 18 12:08:52 <_rm> on the other hand, when manipulating views with transforms and such, i'd fuckin pay money to have the ios layout system on android May 18 12:09:09 ventura, this specific thing has nothing to do with "outdated tech" or "doing the best with whatever is available" May 18 12:09:16 Im not pretending to be a smartass. Im just always wondering why people say google does not care about the issue tracker. Ofc there are lots of issues being "ignored", but just look at how many issues there are May 18 12:09:40 and there are pretty active once is lots of support, too May 18 12:09:43 <_rm> oh and gesture handling, ahh May 18 12:10:11 meaning, you have to push HARD for anything to change. lovely. May 18 12:10:56 <_rm> wakelock: i assume it's like apple's bug tracking, that issues are ignored unless there are lots of dupes May 18 12:11:06 <_rm> or some other kind of noise about it May 18 12:11:16 if the fix is truly as simple as you claimed above, then they should be well able to fix it despite it not being "popular" or "demanded" May 18 12:12:00 btw I've seen some very popular and high-volume bug reports that either got ignored completely or got marked with "WONTFIX" May 18 12:12:56 at least its a statement xD May 18 12:13:05 <_rm> *shrug* May 18 12:14:00 its 33910 sites of issues atm May 18 12:14:09 wakelock: maybe this was the best they could do based on what they could foresee by that time (i don’t have enough Android XP/MP to eval the architectural decisions) May 18 12:14:09 wow May 18 12:14:40 lets see if they reach the 50k before android 6 ^^ May 18 12:14:42 if I have 10 bugs I explode May 18 12:15:01 ventura, if you look deep enough into this particular bug, you will see this was just a very dumb oversight and has nothing to do with "doing best with what you have" May 18 12:15:08 well its for all build tools and the framework and ASOP May 18 12:15:17 man, how early must Google be coming to work to be able to code all of that May 18 12:15:20 what a guy May 18 12:15:23 s/sites/pages/ maybe May 18 12:15:24 ? May 18 12:15:42 google never leaves work May 18 12:16:42 I woudnt leave it if my workplace wood look like googles HQ May 18 12:16:58 nah you'll get sick of it May 18 12:17:01 2nd week May 18 12:17:09 you realize that "Oh, this too is work..." May 18 12:17:28 not if you live where I live :D May 18 12:17:38 you're europe May 18 12:17:45 you have scenery and culture May 18 12:18:01 I live in Beirut Lebanon May 18 12:18:36 there might be more people working for google than living in my town ^^ May 18 12:18:49 ah you are EU? May 18 12:18:53 I mean east europe? May 18 12:19:02 no. germany May 18 12:19:13 hey, Rocket Internet is there May 18 12:19:15 lol, gmaps search for "beirut" immediately places me in "Hard Rock Cafe, Beirut" May 18 12:19:22 that place closed May 18 12:19:42 you're way better off living in Germany May 18 12:20:01 its not bad here :) May 18 12:20:08 bro, we don't have a president May 18 12:20:11 i just have to move to a more urban area :) May 18 12:20:35 Odaym, you are self governed? cool May 18 12:20:44 no, they just haven't agreed on picking one May 18 12:20:48 always in conflict May 18 12:21:53 but good drugs here May 18 12:21:55 world class May 18 12:22:24 and there's me of course, I'm an asset to my country May 18 12:22:39 "Beirut? Oh they have Oday there!" May 18 12:23:02 no? May 18 12:23:08 ok May 18 12:23:23 :D May 18 12:24:00 "Oday? Isnt that the guy with activities calling onStart as first callback?" :p May 18 12:24:03 Odaym, that's more of a "better stay away" kind of argument :p May 18 12:24:48 "Odaym? oh yeah, it's that guy that likes to ramble about layout animations all the time" May 18 12:25:14 haha onstart before oncreate May 18 12:25:18 ^^ May 18 12:25:57 hey I have an idea May 18 12:26:01 ODAYM FOR PRESIDENT May 18 12:26:07 of Google May 18 12:26:23 here you have to belong to a certain sect to be president May 18 12:26:26 you have to be catholic May 18 12:26:32 other sects for other positions May 18 12:26:53 eh, you have to sell your soul to be any kind of president anyway May 18 12:27:05 well, bbl , lunch May 18 12:27:24 Odaym: here you have to belong to a certain sect to be president —> as most of nations, i think May 18 12:27:26 (he's going to eat souls) May 18 12:29:32 game of thrones is a lesson about politics: you need to have dragons (daenerys), gold (lannisters), or sell your soul (little finger) May 18 12:29:49 otherwise you are f**** May 18 12:32:09 nah it's just sectarianism rule May 18 12:32:15 cause there are about 18 sects here May 18 12:33:02 Odaym: have you worked with ContentProviders + SyncAdapter? May 18 12:33:15 no May 18 12:33:22 afraid May 18 12:33:29 lel May 18 12:33:46 honestly no, not fear, just no use case May 18 12:33:57 but then again I don't know what they do, so I cannot know if I have a use case for them or not :P May 18 12:34:00 the cycle of nobodies May 18 12:34:04 SyncAdapter has the worst implementation ever XD May 18 12:34:05 noobness* May 18 12:34:13 you don't know and you don't know that you don't know May 18 12:34:16 nothing can beat that xD May 18 12:34:18 mind blown May 18 12:34:42 ignorance is bliss, they say May 18 12:34:48 Odaym: it is not hard, only painful and boring May 18 12:34:58 why do you ask? May 18 12:35:46 Odaym: https://www.youtube.com/watch?v=xHXn3Kg2IQE Google I/O 2010 - Android REST Client Applications May 18 12:35:52 I can't see youtube here May 18 12:36:10 I know I can pick it up if I wanted, but meh, these are things you worry about when you get to them May 18 12:36:14 what was your question? May 18 12:36:23 need to be in a certain sect in order to access youtube? May 18 12:36:27 Odaym: I am tring to use ContentProvider as a Facade Pattern do RESTful api May 18 12:36:43 one of those keywords can be removed I'm sure May 18 12:36:47 see Square libraries :P May 18 12:37:00 no wakelock but here at work they treat you like a employee before human being May 18 12:37:10 so you cannot access things that will deter you from your job May 18 12:37:19 not unlike any other company May 18 12:37:31 there are places that don't do that May 18 12:37:31 I also have no access to youtube at work... at least technically ;) May 18 12:37:42 Odaym: the maps the ContentProvider to HTTPS May 18 12:37:48 insert <—> GET May 18 12:37:51 catvideos increase productivity May 18 12:37:58 tell them that May 18 12:37:58 sorry May 18 12:38:03 insert <—> POST May 18 12:38:08 query <—> GET May 18 12:38:09 etc May 18 12:38:12 why are you under the impression that I can help May 18 12:38:19 danijoo++ May 18 12:38:24 because you're an asset May 18 12:38:31 well Im part of an asset May 18 12:38:33 haha May 18 12:38:36 the ass part May 18 12:38:38 lel May 18 12:39:07 Odaym: but I found no explanation about what would you do when you try to query a data that is on the server that is not at the SQLite yet May 18 12:39:49 API of course May 18 12:39:50 uploading my first app to amazon store.. lets see if I hit the 100 installs :p May 18 12:39:57 its really crap there May 18 12:40:00 Odaym, you're pretty much the loudest one in here right now, of course he'd think you can help :p May 18 12:40:05 but then again I uploaded crap to it :P May 18 12:40:11 true wakelock May 18 12:40:16 just don't feel like working today May 18 12:40:32 go watch cat videos May 18 12:40:34 in your head May 18 12:40:42 wakelock: any idea bout it? May 18 12:40:51 nope May 18 12:41:19 are you going to individually ask every single person that says anything? :p May 18 12:41:37 why not? it is an O(n) algorithm XD May 18 12:41:56 amazon is so funny May 18 12:42:06 ugh don't mention complexity please May 18 12:42:07 they let a monkey runner test your app everytime you upload it May 18 12:42:12 have an upcoming interview May 18 12:42:17 Hello folks! May 18 12:42:17 need to demonstrate coding and such May 18 12:42:18 and you can see the screenshots from it ^^ May 18 12:42:29 complexity is one of my weakest points by far May 18 12:42:42 algorithm complexity* May 18 12:43:28 wakelock: take a look at Programming Challenges, Algorith Design Manual (by Steven Skiena) May 18 12:43:42 I got a ListView on a Fragment where each line corresponds a given database entry. How do I get the name of it? May 18 12:44:04 wakelock: and Python Algorithms (by Magnus Lie Hetland) May 18 12:44:07 I mean from inside a OnItemClickedListener method. May 18 12:44:40 hm why python? I'm not proficient in python either May 18 12:45:07 wakelock: you can learn python in half a day May 18 12:45:22 but I don't want to :p May 18 12:45:27 I just don't like it May 18 12:46:07 ircfox_: you mean name == a database column? May 18 12:47:51 ventura: yes, but it is the ListContent text as well. From inside OnItemClickedListener method I have the position of the list view but I don't think I can get the name of it. May 18 12:54:35 ircfox_: public void onItemClick(AdapterView parent, View view, int position, long id) May 18 12:54:53 parent.getAdapter().getItem(position) May 18 12:55:06 ventura: the ListView text I got from a database column. When a user clicks on a ListView line it calls the OnItemClickedListener method and from inside of it I am planning to "treat" it. How can I figure which line was clicked from inside OnItemClickedListener method? May 18 12:55:27 Oh.. le me test it. May 18 12:55:52 position == list index, not the db primary key May 18 12:56:24 ventura: yeah, I figured it. May 18 12:58:17 what I will be receiving back from parent.getAdapter().getItem(position) ? May 18 12:59:39 the adapter May 18 13:00:10 what should be the diension of header image for a drawer acording to material design ? May 18 13:00:15 you can learn chess in 10 minutes May 18 13:00:16 so what May 18 13:04:40 im trying to install cm12 on my gs5a with safestrap. should I just use the s5 rom and install it under safestrap? May 18 13:05:56 chrstfer: wrong channel May 18 13:06:03 chrstfer: android-root people may help better May 18 13:06:15 yeah I noticed, my b, thanks May 18 13:13:17 android-root is pretty dead atm though, unfortunately May 18 13:16:29 it's dead May 18 13:16:30 forever May 18 13:16:59 #android-dev is the only channel remaining on friend May 18 13:18:35 "on friend"? May 18 13:18:46 or were you calling me friend May 18 13:19:05 freenode May 18 13:19:08 autocorrect... May 18 13:20:52 its off now May 18 13:25:55 well... its still there and full of it.. May 18 13:51:47 how we can pull the networkresponse object from ExecutionException object? May 18 13:52:00 JakeWharton: Dagger 2 doesn't have module overrides yet does it? May 18 13:54:05 i am able to see the complete details in executionException object but now unable to get networkresponse and error status code from it May 18 13:58:16 Hello everyone, is it possible to add a delay to an Action Bar? For instance, show action bar, keep it there for three seconds, then hide it. May 18 13:59:00 android-dev559: I think toolbar you can. cuz toolbar is a view. May 18 13:59:53 Why a toolbar? May 18 14:01:58 Ohhh, so you mean, put the progress bar IN the toolbar? May 18 14:02:02 I see, i see. May 18 14:02:24 so build-dependent dependencies need to be provided in build-specific modules... May 18 14:02:47 I read trough the documentation and i saw " android:indeterminateDuration ". Shouldn't that be usable? May 18 14:02:48 android-dev559: http://stackoverflow.com/questions/26510000/how-can-i-place-a-progressbar-at-the-right-of-the-toolbar May 18 14:03:35 volley: how to pull status code information from ExecutionException object? May 18 14:03:54 thank you ventura, eghdk May 18 14:04:07 anybody have experience this issue May 18 14:04:37 i am able to get Throwable obect using ,getCause() method May 18 14:07:03 Hello! Can someone suggest the way how to measure battery usage per app? I found that earlier it was possible to gather info using batteryinfo service but i can't even find code example for this. So, any suggestions? May 18 14:08:25 http://stackoverflow.com/questions/15144127/battery-information-service-to-monitor-battery-status-etc May 18 14:08:31 looks like code to me May 18 14:14:38 ventura: How can I obtain the adapter from a longClick event ? May 18 14:15:36 OnLongClickListener overrides onLongClick(View v) method. May 18 14:16:08 Instead of onItemClick(AdapterView av, View view, int position, long id). May 18 14:17:57 Odaym: it is very bad and useless code) May 18 14:18:15 Ok, sorry, I got it. There is a setOnItemLongClickListener method also. May 18 14:18:19 cause it didn't work? :P May 18 14:23:38 ircfox_: no problemo May 18 14:23:43 Odaym: cause it looks like code piece of sh*t May 18 14:24:04 ventura: ;) May 18 14:24:21 joshkovach: no, and it's highly unlikely it will ever get them May 18 14:24:40 haha May 18 14:24:49 how can code have that characteristic May 18 14:29:32 man, Parceler is a really nice library May 18 14:29:47 what a nice guy May 18 14:34:34 Hi I'm looking to sync my android app with an SQL database. However it seems like there aren't any good standard protocols for this. I'm kindof looking for something like rsync but then between my app and server. Any ideas? May 18 14:35:17 Muted, how bis is the db? May 18 14:35:35 in rows May 18 14:37:59 euhm good question, at the moment like 50, but hopefulle 10k soon :) May 18 14:38:20 for 50 i'd say use http and send them via json May 18 14:38:25 for 10k... not May 18 14:38:59 do you really need them all on the device? you could build a rest service on your database and query rows when they are needed May 18 14:39:47 nono, there's info stored on the DB and the user will only have access to a very brief part of that information May 18 14:41:18 for instance if there's a group of users and some other user adds someone into the group, all other people should be able to see him under users in group May 18 14:41:33 but groups will rarely change, so I sont want to have to download the group like every 5 minutes May 18 14:42:40 While this is a very simple sync issue, it becomes tricker I think if the DB also needs to get new information from app. While this isn't the case at the moment it just seems easier to have these bases covered with something like rsync May 18 14:44:59 hm.. this sounds like you should overthink your design May 18 14:45:37 for your example the phone does not need to check if the group changes every few minutes if you use GCM for example May 18 14:45:49 just send a push notification to all users of the group that their group have changed May 18 14:46:33 if there is no change, theres no need for the device to look for one every x times. May 18 14:46:56 Thats true, but if it did change, then what? You download the entire group list or just the delta? May 18 14:47:20 the phone only needs to know about a few groups May 18 14:47:34 I like the ideo of the delta but the problem is than if it should go out of sync at somepoint, you need some backup system May 18 14:47:41 Thats true May 18 14:47:42 if i had to build something like whatsapp i would let the phone download all groups the logged in user is in May 18 14:47:52 that would only be a few kb of data in json format May 18 14:48:05 can be easily transfered through a http request to a REST api May 18 14:48:07 really? so also all history and stuff that comes along with the chat? May 18 14:48:32 i'd not save any history on the server at all May 18 14:48:43 thats gigabytes of garbage data :p May 18 14:48:54 haha lol May 18 14:49:09 noone does that. not even the big players in the business May 18 14:49:33 so that would mean, take whatsapp, if I delete a conversation with some person, I would not be able to recouperate that? May 18 14:50:10 correct May 18 14:50:31 if you factory reset your phone and reinstall whatsapp, all conversation data is lost May 18 14:50:35 if you dont export/import it May 18 14:50:40 and so using GCM is less battery intensive than requestion a "do I have new data?" every 5 min or so? May 18 14:50:50 yes thats true, good point May 18 14:51:20 yeah. gcm is way more batterysave May 18 14:51:30 to stay with whatsapp, they are using GCM ;) May 18 14:51:47 I guess the same goes for services like facebook, twitter and whatever May 18 14:52:01 how do those services work on kindle, I wonder May 18 14:52:28 pfn, I guess a second build flavour using amazones push service May 18 14:52:38 possibly May 18 14:52:46 I imagine they all build their own push services though May 18 14:53:16 pfn, whatsapp states in their FAQ that they use GCM May 18 14:53:24 indeed May 18 14:54:02 Ok, well thanks for your help! I'll probalby go with GCM then. =) May 18 14:55:15 Would onErrorResumeNext be the best place to catch 401s with rxjava? May 18 14:56:33 can a service have a null Application ref? May 18 14:56:48 alexfu, afaik no. it runs in the same task May 18 14:57:34 danijoo: the “use”. probably they use polling when the activity is in context, and only gcm when it is paused May 18 14:58:31 because you could experience some delay on the UX if the push takes to long to arrive May 18 14:58:48 why should a push delay the ui? May 18 14:59:17 alexfu, no May 18 14:59:21 imagine we are chatting just like now May 18 14:59:48 and the backend send a push to sync to get a new message May 18 15:00:29 if it takes to long to arrive, i could have sent 10 messages until you app receive the push and trigger the GET May 18 15:00:38 causing a bad user experience May 18 15:01:54 so, the program is active, you could use polling in order to not cause this delay experience May 18 15:02:09 polling is bad May 18 15:02:17 and you don't use push messaging during interactive chat May 18 15:02:18 i dunno. i didnt use gcm in production yet May 18 15:02:24 but i dont thing GCM is that slow ;) May 18 15:02:30 you use push notification to alert the user that they should begin interactivity May 18 15:02:43 pfn: that is my point May 18 15:03:13 you don’t send a message through a push, only notify the app to start a sync May 18 15:03:20 i think i once read whatapp uses a protocol derived from xmpp once the app is open May 18 15:03:39 if the ui is active you should probably have an active method of receiving events. Push will wake you up if you're not active and use less power when the device isn't on. May 18 15:04:06 ventura, you can do whatever you want with push. depending on what you're sending and if you want to pass it through google, you can push the entire content of your event OR just use it as a wakeup to initiate your own query May 18 15:04:54 dragorn, nope. push as a pretty tight limit of size May 18 15:05:31 4KB May 18 15:05:37 danijoo, not that tight May 18 15:05:48 danijoo, unless you're pushing ridiculously large content for your events May 18 15:06:52 so don't push more than 4k... May 18 15:06:54 not that hard May 18 15:07:02 yeah. 4k. Apples is a lot tighter. 4k is huge for a push event tho May 18 15:07:06 just push the bare minimum so that your app knows what is going on, and can wake up May 18 15:07:09 and do the right thing May 18 15:07:15 and yeah, 4k is huge May 18 15:07:55 obviously you CAN wake up and retreive your own thing. You can also get the whole message, if you're not privacy oriented or if the content is encrypted. Sure, you can't push like an animated gif in the message itself, but why would you? May 18 15:08:12 there's tons of options, fortunately. do whatever. May 18 15:08:52 timtowtdi May 18 15:09:37 AWS Push Notification Service, Parse Push Notification, etc… May 18 15:09:54 http://www.quora.com/How-does-messaging-work-in-WhatsApp May 18 15:15:25 Hey guys. I have an OpenGL GL2SurfaceView that's empty, and once it's drawn on one of my other layouts gets pushed to the bottom. How can I force it on top? I've lost track of what I've tried, but throwing everything in a framelayout and mucking around with different options there has been the gist of it. Happy to re-try things May 18 15:15:58 where in the sdk is the underline drawable for edittext? May 18 15:20:12 tjbiddle, if i recall (and it's been quite a while for me, too), surfaceview does funky z-axis stuff and generally doesn't work well if it's not the only thing there May 18 15:20:21 tjbiddle, or in other words, i think I had the same problem and never solved it either May 18 15:20:51 dragorn: Gah. Frustrating. It's being used as a WebRTC container with opengl renders. Hm. May 18 15:20:58 I spent all day Friday working on it with no progress May 18 15:21:52 this was 2 years ago I messed with it, if I recall, surfaceview didn't behave right w/ z-axis, and textureview has some fatal API errors where it's impossible to know you've been destroyed mid-render-cycle (ie user rotates, leaves app, etc) and then it crashes deep in native gl code May 18 15:22:06 I ended up just using a regular view, I think. It's a bit hazy. May 18 15:26:09 hmm, dragsortlistview no longer maintained? May 18 15:34:37 Where can I edit my local.properties for Gradle? The one in the root of my project says it will be erased by Android Studio May 18 15:37:11 tjbiddle: everytime you import a project to android studio, local.properties is rewritten May 18 15:37:29 ventura: Is there an area in the the AS settings where can tweak? May 18 15:37:39 Just trying to get more performance. Compilation is slow May 18 15:38:20 1. what you wanna tweak? May 18 15:38:31 2. remove if from gitignore if you wish to save it May 18 15:38:45 ventura: http://stackoverflow.com/a/27361044/1125714 May 18 15:38:49 ~/.gradle/gradle.properties May 18 15:39:49 tjbiddle: gradle.properties instead of local.properties, as mentioned by danijoo May 18 15:40:15 danijoo: Not there currently - I'll create it. I do know that AS keeps setting up a whole gradle/ directory in my folder; haven't had time to figure out why. But I think it's setting up a local installation in there and not using my system copy. Think it'll still use my home directory settings? May 18 15:40:18 (Will try regardless) May 18 15:40:25 But no idea how I can prove if it's being used lol May 18 15:40:43 try it :) i dunno May 18 15:41:13 * tjbiddle shrugs May 18 15:41:14 Haha thanks May 18 15:42:18 Since I've been working on Android dev I swear half my job is just waiting for compilation to complete. All I can think is: https://xkcd.com/303/ May 18 15:46:33 tjbiddle: it is keeping a whole gradle setup because your AS is configured to do so May 18 15:47:07 ventura: Oh I'm sure it is. Just haven't bothered to tweak it. May 18 15:47:08 :p May 18 15:52:02 ugh, fabtoolbar kinda sucks May 18 15:53:43 pfn: The https://github.com/AlexKolpa/fab-toolbar library - or just in general? May 18 15:54:54 ah fab toolbar is the thing now May 18 15:55:08 reminds me of a 2.x options menu which I missed May 18 15:55:30 nice fap toolbar May 18 15:56:21 tjbiddle, that library May 18 15:56:43 how am i going to add some marginTop for my ListFragment ? May 18 15:57:56 and circularreveal isn't on maven central, how annoying May 18 15:58:08 the same way you do it for every other view May 18 15:59:32 not between items but from the top of the layout only May 18 16:00:15 im talking about the top of the layout May 18 16:00:57 dragorn: http://stackoverflow.com/a/21374827/1125714 Worked for me :-D May 18 16:01:23 tjbiddle, cool, maybe they fixed it May 18 16:01:32 tjbiddle, this was easily 1.5-2 years ago May 18 16:02:48 dragorn: Yeah. Definitely looks like we're not the first to have run into the problem though. May 18 16:04:52 Hey guys. Is it possible to test another app, with use of a testing framework like robotium, - without modifications to the target app? May 18 16:05:09 Mainly UI interaction May 18 16:05:20 danijoo, yes you are right - I had my toolbar inside the FrameLayout :P May 18 16:13:49 anyone testing on travis-ci? May 18 16:14:17 nope, their Android support is terrible May 18 16:14:21 my tests are erroring out because it can't find any of the support 22.1.1 libs May 18 16:25:46 You need to tell it to download it May 18 16:26:21 Add extra-android-m2repository to components May 18 16:27:43 SimonVT: thanks, trying that now May 18 16:28:13 Mavrik: I don't think it's terrible May 18 16:28:38 Not since they added actual android support May 18 16:30:02 did they also support the new unit test feature yet? May 18 16:30:56 All they need to support is downloading of the sdk, rest is gradle May 18 16:31:01 So sure, it works May 18 16:40:31 Does anyone know the size for custom background image in the Action Bar ? May 18 16:44:20 ... > Could not find com.squareup.leakcanary:leakcanary-analyzer:1.3. May 18 16:50:04 joshkovach leakcanary 1.3.1 is there May 18 16:50:23 http://search.maven.org/#search%7Cga%7C1%7Cleakcanary May 18 16:51:23 local can't seem to find the analyzer... but I'm also using jcenter... May 18 16:54:14 i still need to give it a try May 18 16:54:21 seems pretty useful though May 18 17:00:35 hey guys, tell me soemthing, if i need to go about http requests, no retrofit, volley, ok http what should i take care of? May 18 17:01:38 Nick-S why not use okhttp ? May 18 17:02:05 i have a client saying he's using volley and i am using retrofit for an sdk, and he seem to have proven that it leads to a problem May 18 17:02:29 i don't know if adding okhttp will make things better May 18 17:02:39 i am currently using retrofit without okhttp there May 18 17:02:53 i know if i add to the bundle the okhttp it will be usd automatically May 18 17:05:00 ? May 18 17:05:09 Re: leakcanary on jcenter https://github.com/square/leakcanary/issues/117 May 18 17:05:33 wow. I never thought I see a this: "We accepted you appeal and the app has been reinstated." May 18 17:05:57 faith in humanity restored May 18 17:06:29 danijoo your app ? May 18 17:06:34 what was the issue daniele_athome May 18 17:06:38 danijoo* May 18 17:06:43 g00s, yes. May 18 17:07:00 keyword spam May 18 17:07:01 danijoo thats great news May 18 17:07:03 ^^ May 18 17:07:33 but "forced" keyword spam... I had to include a third party "this app is not endores with blabla" in it May 18 17:07:51 and those legal texts always mention the company 5 times in every sentence, you know May 18 17:07:56 hah i had keyword spam before May 18 17:07:59 if i've got a bunch of mock classes that needs to be shared between unit tests and instrumentation, where's the best place to put them? in debug? May 18 17:08:18 i fixed it after a cold google email May 18 17:08:31 [The title of your Project] isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games. Riot Games are trademarks or registered trademarks of Riot Games, Inc. May 18 17:08:39 i did not like the tone of that email one bit May 18 17:08:56 that triggered the spam algorithms. May 18 17:09:06 danijoo i have seen that happen before May 18 17:09:12 its been going on for years May 18 17:09:38 g00s, i worked arround it by replacing it with a oneliner. May 18 17:09:53 if riot contacts be because of that ill put a screenshot with that text in the description May 18 17:09:54 Typically when you have a refresher layout, the content is not interactable while refreshing, ? May 18 17:10:31 but I was really afraid because its my second app being update-rejected in 1 week May 18 17:11:05 the second one is lost though May 18 17:12:51 If you implement a refresher layout for a listview say, should the listview will be touchable while refreshing? May 18 17:15:20 Hi, can anyone help me out with Google Maps? I have a map runnning live updates on a bus. I update the map with Map.MoveCamera() but when I do this I get white artifacts in the map like this : http://d.uia.io/1s6k7.jpg Can anyone tell my the reason why? And if it is possible to get rid of this? May 18 17:16:15 They flicker in both horizontal and vertical position, on every move.. I would say I move the camera with a 0.5s interval. May 18 17:21:10 nebiros: /whois ventura May 18 17:21:46 SimonVT: is there a way to add --stacktrace to my gradle command on travis-ci? May 18 17:23:19 install: ./gradlew assemble --stacktrace May 18 17:23:19 test: ./gradlew check --stacktrace May 18 17:24:30 is check the way to run unit+instrumentation tests? May 18 17:24:49 unit only May 18 17:25:27 if it's an Android project the test command is 'build connectedCheck' May 18 17:25:37 http://docs.travis-ci.com/user/languages/android/ May 18 17:27:01 thanks May 18 17:27:47 n1ftyn8: sorry for taking so long… you can remove the /gradle from you project and AS should work perfectly May 18 17:28:22 but if you need you use the CLI, first you will have to build gradle wrapper May 18 17:28:29 $ gradle wrapper May 18 17:28:38 $ gradlew assembleDebug May 18 17:39:46 lol http://developer.android.com/reference/android/view/View.html#MEASURED_SIZE_MASK May 18 17:39:51 "Bits of getMeasuredWidthAndState() and getMeasuredWidthAndState() ..." May 18 17:41:16 what's lol about that May 18 17:42:54 pretty sure the second getMeasuredWidthAndState should really be getMeasuredHeightAndState May 18 17:43:09 the same typo repeats a few times there May 18 17:45:06 this is lol https://developers.google.com/reference/com/google/android/gms/tagmanager/DataLayer May 18 17:45:32 404? May 18 17:45:42 yeah, in 2015 May 18 17:45:47 ^^ May 18 17:46:05 did anyone here ever publish to amazone store? May 18 17:46:16 yes, you did :p May 18 17:46:39 wakelock, thats what I thought May 18 17:46:56 but its not available May 18 17:47:13 and the dev console only states the app as "approved". nothing about being published May 18 17:47:17 and theres no button for it May 18 17:47:28 waiting game May 18 17:47:34 maybe :) May 18 17:50:55 i have nexus 5 running lollipop, trying to root on ubuntu machine. when i try to flash recovery i on the terminal it gets stuck waiting for the device. Any help? May 18 17:51:14 itsme, not here May 18 17:51:19 see chanel topic May 18 17:51:48 where do i go? May 18 17:51:55 itsme, see channel topic May 18 17:52:09 do you know any other channels May 18 17:52:27 #android-root May 18 17:52:33 thanks May 18 17:52:38 * danijoo sighs May 18 17:52:54 what? May 18 17:53:05 did I mention its in the topic? ^^ May 18 17:53:23 oh May 18 17:53:32 :p May 18 17:53:40 >:-D May 18 17:54:31 anyone had success with using retrolambda on travis-ci? May 18 17:54:51 travis-ci not free for private repos :( May 18 18:01:06 i want to import this app into my app project however im using eclipse May 18 18:01:07 https://github.com/pocmo/Yaaic May 18 18:01:25 any idea how i can import that app into my current app project on eclipse? May 18 18:02:51 Eclipse? :p May 18 18:05:30 ~eclipse++ May 18 18:07:48 DarkChaoz: I think Eclipse has an "import gradle project" option? not sure :| worst-case, copy/paste a bunch of files into a new mostly-blank project. May 18 18:09:06 unfortunately it doesnt have that option D: May 18 18:09:12 yeah, I would create a new project and import the source, or something May 18 18:13:04 * ventura wonders what has happened to Tizen May 18 18:13:52 DarkChaoz: copy/paste tends to work pretty well, tbh. the src/main/java folder will match exactly what Eclipse expects, as are all the res/* folders and libs/. the only things that really need customization is the AndroidManifest.xml file, and you may need to download the .jar files from http://search.maven.org/ for dependencies (and God help you if they May 18 18:13:52 have resources) May 18 18:14:46 ventura samsung is still using it May 18 18:15:09 yeah, they're still releasing not-Wear android wathes May 18 18:15:10 watches* May 18 18:16:41 if you wanna hear some good stuff on Tizen, there’s a pretty long thread in TheDailyWTF forums where someone describes what it’s like to work on Tizen May 18 18:18:58 s73v3r: I worked on Tizen :-( May 18 18:19:09 you poor, poor bastard May 18 18:19:19 yup May 18 18:19:53 ventura: building Tizen, or building things _on_ Tizen? May 18 18:20:19 groxx: both May 18 18:20:48 dang. any horror stories / actually-not-horror stories? May 18 18:21:08 the best part is when one of the higher ups on the Tizen project comes into the thread to try and defend himself May 18 18:21:36 * ventura definitely is not one of them May 18 18:21:50 Samsung aspires to be like apple i think ; so they need their own OS May 18 18:21:50 he said he’d have absolutely no problem with demoing his software in front of higher ups, and having log lines that say “BITCH” “or “Spank, spank, spank” show up May 18 18:31:10 g00s: http://www.forbes.com/sites/gordonkelly/2014/02/10/how-google-used-motorola-to-smack-down-samsung-twice/ May 18 18:33:58 is the only way to override modules in dagger 2 is to create a new app component? May 18 18:34:38 alexfu: looks that way. what are you trying to accomplish? May 18 18:34:57 s73v3r: ubuntu phone is a much better “alternative” to android than tizen dreams to be May 18 18:35:03 it's not really module overrides in dagger 2 May 18 18:35:15 but yes, you replace and/or delegate at the component level May 18 18:35:47 joshkovach: need to override a network module i have for testing. at the moment, i'm creating a whole new application component. May 18 18:37:05 my current strategy is to not put components in app/src/main, only in app/src/debug and app/src/release (and for each build) May 18 18:37:54 take a look at jake's PR on u2020 for how to detect if you're in instrumentation tests May 18 18:38:24 then use that boolean in your debug modules to decide if you're mocking the resource or not May 18 18:38:31 Does anyone know where the captive network browser cache is stored? May 18 18:39:15 ventura sure; google is no angel :) no better than MS imho May 18 18:39:52 g00s: agreed, but i would still buy a windows phone instead of tizen May 18 18:41:50 am I annoyed at square or at jcenter for my leakcanary availability issues? May 18 18:42:00 jcenter May 18 18:42:07 we publish shit to Maven Central May 18 18:42:18 the fact that their sync is broken is not our problem May 18 18:42:22 This error is showing when I try to inflate a ListFragment with a ListView inside of it : Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'. May 18 18:42:27 JakeWharton: cool, I had a feeling May 18 18:42:36 joshkovach didn't the dev say just put mvenCentral in your repositories ? May 18 18:42:56 ircfox_, seems perfectly clear to me May 18 18:43:31 I renamed this ListFragment on the xml to android:id="@android:id/list" May 18 18:43:43 I mean I renamed the ListView May 18 18:43:44 g00s: yeah, I'm just trying to figure out the best way to prevent the issue in the future May 18 18:43:50 mavenCentral comes first May 18 18:44:37 But now when I use ListView lv = (ListView) view.findViewById(R.id.list); it returns null. May 18 18:45:23 This is happening since I changed this class from extending from Fragment to ListFragment. May 18 18:46:03 Could someone help me figure to understand this issue please? May 18 18:48:50 You're not supposed to find the ListView if you're using ListFragment, right? May 18 18:49:03 I'd google but I'm on phone and lazy. May 18 18:49:21 ircfox_, android.R.id.list != R.id.list May 18 18:51:14 I pack resources for my app into the apk. For example, there is "data/maps/the_map.txt" resource in the apk. I want to read it with getResource("data/maps/the_map.txt") but for some reason the default dalvik.system.PathClassLoader does not see it... how do I solve this? May 18 18:51:38 http://developer.android.com/reference/android/app/ListFragment.html#getListView() May 18 18:51:43 does that work ircfox_ ? May 18 18:51:56 wakelock: yes!!! o/ May 18 18:52:04 *(i missed the underscore in the example, sorry but it's there, the name is correct in my situiation) May 18 18:52:14 damien5314: thank you! :D May 18 18:52:15 Is there a way to combine the outputs of a flatmap back into a list within one rxjava chain? May 18 18:52:26 wakelock: thank you!!! May 18 18:52:30 um np May 18 18:52:41 I have a GitHub repo with changes I made from my desktop last night. I'm on my laptop now and am trying to pull those changes so I can work on the latest copy of my code from last night, but on my laptop. I'm trying to do a Pull from inside Android Studio, but it keeps telling me it failed because it will overwrite my files... what am I doing wrong? May 18 18:52:48 Currently it seems like I need to maintain a list outside of the chain, and add to it from there May 18 18:53:07 t0astt, you're using AS, that's what you're doing wrong :p May 18 18:53:26 t0astt: probably you have changed something on your laptop already. OR your IDE did change it's settings files which are commited May 18 18:53:34 lol I guess, but it seems like a more streamlined way of working with it May 18 18:53:52 yiati: toList() May 18 18:53:55 t0astt: you have 2 options: 1) pull the repo anew, to a completely new location, 2) discard your changes and pull May 18 18:53:55 I use the command line for everything Mercurial. May 18 18:54:00 t0astt: use command line May 18 18:54:12 Command line fo evar. May 18 18:54:13 yiati: https://github.com/ReactiveX/RxJava/wiki/Mathematical-and-Aggregate-Operators May 18 18:54:48 joshkovach: https://goo.gl/A8MbUJ May 18 18:56:04 t0astt, streamlined? eh maybe. I just see it asa huuuge bloat to do a simple task :p May 18 18:57:03 I think I'm getting closer to it working... my IDE on my laptop made changes. I tried to stash the changes but it failed because it couldn't find my email address lol... wut May 18 18:57:40 this is... not getting better May 18 18:59:54 I somehow got a dialog to let me input my email, and all is good now May 18 19:00:01 when you create the asset folder init not supposed to be blue right above the have one under app? May 18 19:00:22 mine looks more like the res folder May 18 19:03:56 its the icon of a normal folder with 3 yellow stacks next to it May 18 19:04:22 hert, http://prntscr.com/76pbjg May 18 19:05:52 no idea if it is "normal" or not, but i have it too danijoo May 18 19:06:21 also appears in "res" folder May 18 19:07:15 this is the normal icon May 18 19:07:21 i've been having issue with copying the db inside of it so i was wondering it's was the right one May 18 19:07:37 hert, show the code :) May 18 19:09:30 oh, by the way (Odaym not here yet), did a little test about his issue with listview animation and activity lifecycle: https://vid.me/M1Ie May 18 19:09:45 no issue ;) May 18 19:10:16 (pressing home button despite it's not visible and coming back) May 18 19:10:18 I have never enjoyed coding as much as I now do with Rxjava. Finally dove head first into it this past weekend, and now I'm totally rewriting my app with it. It's far easier to implement parallel stuff with rxjava than a lot of serial stuff with callbacks :D May 18 19:10:52 here it is http://pastebin.com/RmmRzzzW getting code 14 could not open database line #87 May 18 19:11:22 noncom: in case someone hasn't responded: I forget what the options are for data folders :| if nothing else, that probably belongs in assets/maps/the_map.txt or res/raw/the_map.txt though. and the getResource() method will _only_ work with res/raw/etc, and there's an openRawResource for that purpose. May 18 19:11:38 hert, have you checked if the database is copied? May 18 19:12:22 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/BrowseActivity.scala#L336 May 18 19:12:25 hmm, that's pretty convenient May 18 19:12:26 also there is https://github.com/jgilfelt/android-sqlite-asset-helper that does that for you May 18 19:12:33 * pfn infects more of his code with rx shit May 18 19:12:47 i don't see any database folder created inside the package on the emulator that's why i was thinking may be my assets folder May 18 19:13:01 pfn: that is a nice API for that, yeah May 18 19:13:10 hert, have you stepped through your code with a debugger? :0 May 18 19:13:25 groxx, better than creating a bajillion interfaces/listeners/callbacks May 18 19:13:45 yep, everything is fine until that line May 18 19:13:53 if I extend a component in Dagger 2, do I have to re-declare all provides methods? May 18 19:13:56 pfn: well, equivalent, but nicer reading definitely :) May 18 19:14:20 groxx, well, bajillion as in a different type per listener type May 18 19:14:40 groxx, e.g. onVisibilityChange, onClick, onCheckChange, onSizeChange, etc. May 18 19:14:53 yeah. though retrolambda / when we get java 8 in android in 2050 makes it a lot closer, since you'd generally just have (v) -> doThing; May 18 19:14:57 How do I access the parent (previous) context from a actual Fragment context ? May 18 19:15:14 groxx, still have to define the type May 18 19:15:20 pfn: nope May 18 19:15:30 if it's unique, it's inferred May 18 19:15:36 groxx, I mean, the type still has to be defined, if they're going to keep the interface setup, rather than FunctionN May 18 19:15:47 groxx, it's inferred, yes, but it's still a type May 18 19:15:56 Because I need to use a element from a previous xml layout with my current layout is placed in. May 18 19:16:03 doesn't change the "bajillion types" statement May 18 19:16:05 aah, you mean define the interface + use it in the method signature? May 18 19:16:08 s/with/which May 18 19:16:11 groxx, yes May 18 19:16:11 thought you meant in the call May 18 19:16:15 hert, line 46 May 18 19:16:28 groxx, of course, with lambdas, you could just define it as a function type May 18 19:16:31 if(database not exists) doNothing ? ^^ May 18 19:16:42 and if it is already copied, copy it again! May 18 19:16:56 groxx: alright, i put the text file under /res/raw and Android Studio does not see it, like the raw folder is empty.. May 18 19:16:58 alexfu: you'll need to use @Component(modules={}) to override the modules that get used May 18 19:17:01 it does not get into the apk either May 18 19:17:46 noncom: weird. refresh? it should be automagic. May 18 19:17:57 noncom: though I don't think you can have subfolders in raw May 18 19:18:36 groxx: 8O true... it does not allow subfolders.... May 18 19:19:24 groxx: tell me please, maybe you could help... if I want to load some text files with a classloaders getResource("/path/to/my/file/in/the/apk.txt"), how do I acheive it? May 18 19:20:03 the default dalvik.system.PathClassLoader apparently fails to handle the full paths inside the apk.. May 18 19:20:23 how dull it is that there are *widgets* and then there is package android.widget whose members are logically smaller than the aforementioned widgets. May 18 19:20:42 joshkovach: i dont have to specify every module though, right? just the one i need to replace? May 18 19:21:37 typically I'd say "don't do that" unless you're actually loading a .class file. if you have a file in raw/ you can use `context.getResources().openRawResource(R.raw.the_file)` to get an InputStream you can read from. if in assets/ you can use `context.getAssets.open("path/to/file.ext")` (path is relative to assets/) May 18 19:22:22 so now I'm writing android.widget -like Views specific to my own app, but the app also includes the other type of widgets. May 18 19:22:28 put files anywhere else, and you _might_ have to customize your build process to include them. May 18 19:23:02 groxx: i see.. hmmm, so there is no way to get such behavior so that a class (maybe a custom one) that extends ClassLoader can access it with getResource("/full/path.ext") ? May 18 19:23:29 `context.getAssets.open("path/to/file.ext")` gets closer, but it is not ClassLoader.getResource() May 18 19:23:31 well, you can override getResource to call getAssets().open. May 18 19:23:55 are you loading a class, or just using a classloader for some rason? May 18 19:23:58 reason* May 18 19:24:02 but getResource() must return a URL? May 18 19:24:22 groxx: you see, I am loading Clojure code. thus it must remain structured in proper folders :) May 18 19:24:50 ah May 18 19:24:55 groxx: and the way Clojures loader works, is asking the ClassLoader to getResource() - I cannot change that unless I fork it May 18 19:25:18 I *can* substiture the ClassLoader with my custom one though... May 18 19:25:24 so I am trying to solve this one puzzle... May 18 19:27:06 noncom: unfortunately I haven't tried that :| though https://github.com/clojure-android looks interesting May 18 19:27:13 danijoo i dint see that one but the issue is still there May 18 19:27:34 hert, hm... whats the reason you do it manually? May 18 19:27:39 and not using a library May 18 19:28:08 This is a snippet code from the doubt I am currently involved : https://gist.github.com/anonymous/20a5d78809d3c3b81772 May 18 19:28:31 groxx: yeah, I am using exactly this official port of clojure. it all works just perfectly if I put the sources in some external folder, I can classload them no problem. But idk how to do it from within the apk... May 18 19:28:45 which library? May 18 19:28:50 groxx: the official way of doing clojure on android is through desktop, and I am trying to setup a dev cycle on AIDE :) May 18 19:29:13 AIDE? May 18 19:29:15 I could figure how to access the FragmentManager from the original class but now I need to access the previous xml layout as well. Is there a way of doing it? May 18 19:29:29 noncom: the "answer" might ultimately be to copy the files to a local folder, like `context.getFilesDir()`. doing that is pretty common for files you need to access in abnormal ways / might need to be writable May 18 19:29:30 so it turns out I have to first unpack them from the apk to some external folder, but that does not sound appealing May 18 19:29:37 danijoo is there a different of adding existing db to project? May 18 19:29:41 groxx: oh, really? May 18 19:29:49 TacticalJoke: right :) May 18 19:29:52 hert, the one i posted you is pretty good May 18 19:30:00 AIDE :D May 18 19:30:20 I think it was g00s who gave it the name "Toy IDE".. May 18 19:30:42 yeah, it is pretty toy and shoot-your-brains-out thing :) May 18 19:30:54 but i have a purpose.. May 18 19:31:34 could you post link again? May 18 19:31:42 groxx: alright, thanks for the hint. I guess, I will have to go that way - unpack to context.getFilesDir()... May 18 19:31:54 if you say that this is common.. May 18 19:32:05 The thing is Eclipse shows all the variable instances, but not just the currently layout ones. May 18 19:32:29 I forget the reasons :| it's possible everything packaged with the app is left zipped, so there's really no _path_ to it. May 18 19:33:18 I forget if some things are unpacked or not though. anyway, copying isn't _too_ hard, though agreed that it's annoying. May 18 19:33:18 groxx: but the own package is a path itself, no? May 18 19:33:26 groxx: heh, well instead of the "file://" schema, there could be a "zipentry://" or stuff... May 18 19:33:39 the PathClassLoader references the apk as its path anyway... May 18 19:33:45 noncom: could be :) and you might be able to build one. but I don't know of any at least. May 18 19:34:14 well, at least, you gave a clear picture of what is out there, since I am new to android development May 18 19:34:24 hm. dunno. I'd have to google a lot more than I can do right now ¯\_(ツ)_/¯ May 18 19:34:33 ah, taking the hard route I see :) May 18 19:34:51 yeah, the hard one :D May 18 19:35:38 well, good luck :) you'll probably have to end up learning quite a bit about how android packs / unpacks / stores stuff on disk, which would be fun May 18 19:35:57 thanks, I will :) May 18 19:37:46 My current Fragment View uses a different xml layout from the one I need to access. How do I access a different layout from other than my current? May 18 19:38:45 ircfox_: access how? May 18 19:40:01 As my main layout has 2 fields (A and B), it inflated a ListView on field A, now from this ListView I want to load another layout on field B (which is on preview context). May 18 19:41:02 LayoutInflater.from(getActivity()).inflate(R.layout.other, fieldB) ? May 18 19:41:35 Anyone aware of how to turn a GL2SurfaceView into raw data? ByteBuffer, int[], or byte[]? May 18 19:42:23 groxx: interesting, let me try that. May 18 19:47:24 sup guys May 18 19:47:51 Odaym: I made a thing: https://github.com/Groxx/LocalTrace May 18 19:48:40 pretty deep man May 18 19:48:44 I wouldn't know how to make use of it May 18 19:49:54 hi guys May 18 19:49:54 ahhh Odaym May 18 19:50:01 put it on hackernews May 18 19:50:04 not reddit May 18 19:50:06 Odaym, https://vid.me/M1Ie May 18 19:50:21 (i just move some stuff from onCreate to onResume, this is not elegant, but it works) May 18 19:50:39 onCreate is not called when you press home and then come back to your app May 18 19:50:43 onResume will be May 18 19:51:01 see, it pays to know how the lifecycle works May 18 19:51:04 ok. why the heck is there an appcompat version of AlertDialog, but not of ProgressDialog -_- May 18 19:51:13 for sure May 18 19:51:15 I was playing with the idea of making a thread sleep but it was a definite no no May 18 19:51:23 danijoo because progressdialog is ghetto May 18 19:51:25 but this is not an elegant solution, because it recreates stuff May 18 19:51:32 instead of forcing the animation to start again May 18 19:51:37 this is not dev related but I thought you guys might know.. does google honor play store refunds that have been manually issued by a dev past the 2h window? I ask because I was refunded an app yesterday yet it still is tagged as purchased in the store and my cc wasnt credited :/ any idea May 18 19:51:37 :( May 18 19:51:42 can I see the code? May 18 19:51:53 because if you set the animation in XML you do not have the ability to do this May 18 19:52:00 you must have set the controller in code of course May 18 19:52:01 it's the example you posted: http://android-er.blogspot.co.il/2009/10/listview-and-listactivity-layout.html May 18 19:52:09 ah yea ok May 18 19:52:10 rhapsody`, it will take some time May 18 19:52:10 just move layoutcontroller inside onresume May 18 19:52:13 but yes May 18 19:52:21 the money will be refunded May 18 19:52:44 guys in this air there is super hot hostess. she's Spanish I think May 18 19:52:54 usually my cc is credited almost instanly if i refund during the 2h window May 18 19:53:01 err even the whole stuff, not only layoutcontroller (not elegant, told you) May 18 19:53:24 what do you mean the whole stuff? the finding of the listview in layout as well? May 18 19:53:29 ok thanks May 18 19:53:36 just the setlistadapter May 18 19:53:39 gdrc, ?? May 18 19:53:52 I've got a two-pane UI, with two activities w/fragments. If there is no data loaded (in the "main fragment") I want to *remove* the "detail fragment" from the UI, essentially collapsing the UI down to single-pane UI. However I go about this (remove, View.GONE, etc etc) I still see the blank space left behind by the detail fragment... How do I make the "main fragment" fill the entire screen? May 18 19:53:53 their onCreate is extremly minimalist, not so much to move :p May 18 19:54:02 danijoo, I'm flying what? May 18 19:55:26 lol he left May 18 19:55:30 ProgressDialog is also trivially recreated, just use an AlertDialog with a custom view == an infinite progress bar, and no buttons / no title. May 18 19:55:33 we have to file a bug about this May 18 19:55:34 but after n hours, the developer has to do it May 18 19:55:36 this is insane May 18 19:55:42 so, MainFragment.onLoadFinished() gets an empty cursor, and does a *callback* to MainActivity, which set up the two-pane UI to begin with. There, in removeMe(), I get the DetailFragment (by ID) and do, getSupportFragmentManager().beginTransaction().remove(fragment).commitAllowingStateLoss(); May 18 19:55:43 what's more insane is that you can see it in Google Keep! May 18 19:55:44 otherwise nothing will happen May 18 19:56:01 sorry, I get the DetailFragment by tag... ;) May 18 19:56:01 Odaym, yeah, i find the animation burger menu insane, since it is hidden May 18 19:56:07 for 80% of its time May 18 19:56:12 so i will stop there :p May 18 19:56:24 and all these troubles just to have a menu drawers and few fragments May 18 19:56:41 and then you want to style, and chaos rules May 18 19:56:50 not even talking about performance.. May 18 19:57:12 * this can escalate very quickly * May 18 19:57:43 IO will fix it May 18 19:57:48 IO will fix all the things May 18 19:58:01 oh IO who art in the sky May 18 19:58:11 bugless, be thy name May 18 19:58:15 :p May 18 19:59:13 actually, maybe this will be "IO who Dart in the sky" May 18 19:59:24 there should be more IO livestreams :( May 18 20:00:07 man, as you approach release, random shit starts to come up May 18 20:00:15 A new language sounds good, but Kotlin seems to be the only sensible one. May 18 20:00:18 as long as they're recorded and watchable later, "live" isn't all that important to me. but they should _all_ be recorded ಠ_ಠ there's too much useful stuff in there to abandon the community like they tend to. May 18 20:00:19 and the kind of shit that is really undismissable May 18 20:00:33 Having says that, I'd support any new language within reason. May 18 20:00:57 javascript! May 18 20:01:10 It's 2015; we shouldn't be stuck with Java 7. May 18 20:01:21 "Within reason". :D May 18 20:01:31 It's 2015; we shouldn't be stuck with Java. May 18 20:01:31 :P May 18 20:01:32 :p May 18 20:01:43 hey g00s I'm on airplane. nice Spanish hostess chick over here May 18 20:01:55 native support for node.js would be pretty cool. May 18 20:02:03 groxx … why? May 18 20:03:18 because javascript, which has some fantastic tooling these days, and is way easier to modify at runtime. May 18 20:03:40 I fail to see a single advantage that javascript has over java May 18 20:03:45 eval() May 18 20:03:57 lol May 18 20:04:11 If you really need eval, embark an interpreter May 18 20:04:26 not really a very common need on android May 18 20:04:52 it's not even "if you really need", it's "because it's trivial, you can do crazy shit to make your life better, and there are a lot of options out there to do exactly that" May 18 20:05:23 Everything that javascript does, java does too… better May 18 20:05:26 A lot of people on reddit say "Java 8", but gawd that sounds underwhelming. May 18 20:05:37 a sensible alternative to what we have now is moving java framework bits to navtive code and providing another language that can easily ffi with the native code May 18 20:05:55 g00s: That’s not sensible, that’s a nightmare May 18 20:06:04 making something _easy_ has dramatic effects on how people use it. technically they're all the same because they're all Turing-complete, but that doesn't stop people from preferring X over Y, or from having X do something way better than Y May 18 20:06:47 the jvm is an isolationist platform May 18 20:07:05 if you are on jvm, fine - but everything outside via jni is too much pita May 18 20:07:09 g00s: It’s the most interoperable platform on the planet at the moment May 18 20:07:31 .net doesn’t come close because of its support for reification, which makes it very hard to interop with May 18 20:07:57 jni/jna is trivial with java May 18 20:08:14 unless you're dealing with a reified language, yeah :) May 18 20:08:20 s/language/target May 18 20:08:46 jni 2 will be interesting, but we won't see that i'm guessing May 18 20:09:47 also, i don't generally hear people say jni is trivial or emjoyable May 18 20:10:06 jni is trivial, and enjoyable May 18 20:10:13 Chainfire lol May 18 20:10:26 When sun invented JNI, it was buggy and they simply didn't give a shit May 18 20:10:38 bugs reported stayed there for years May 18 20:10:48 ok airplane ongoing to fly. Se you guys May 18 20:11:13 are shared preferences only in the scope of my activities? Can I have app preferences accessible from everywhere in my app? May 18 20:11:23 Yeah, anywhere. May 18 20:11:29 g00s, so its basically the same thing everyone is saying about android issue tracker :p May 18 20:11:29 some are activity scoped May 18 20:11:30 just needs a Context May 18 20:11:39 Application.getDefaultSharedPreferences are not May 18 20:11:46 danijoo heh, yeah :D May 18 20:11:57 although I dont agree May 18 20:12:07 I'd say it about Google Play though May 18 20:12:10 wait, there are activity-scoped shared prefs? May 18 20:12:11 they just have priorities May 18 20:12:21 Yeah, groxx. Terrible idea. May 18 20:12:32 It couples the activity name with the file name. May 18 20:12:37 😱 May 18 20:12:45 what call is that ? May 18 20:12:50 its basically just a naming of the pref after the activity May 18 20:12:52 Activity.getSharedPreferences. May 18 20:13:00 you can still access them from everywhere May 18 20:13:20 * Chainfire always uses PreferenceManager.getDefaultSharedPreferences() May 18 20:13:28 ^ this May 18 20:13:43 ok I'm flying. bye May 18 20:13:52 That just uses the other one with the package name. May 18 20:13:54 how can I get or set preferences from within my app (not outside) May 18 20:14:02 have good flight gdrc May 18 20:14:03 http://developer.android.com/reference/android/app/Activity.html#getPreferences%28int%29 dang. they should deprecate that crap. May 18 20:14:11 thanks May 18 20:14:19 Activity.getSharedPrefences seems like a very easy mistake to make May 18 20:14:25 they should deprecate the whole java framework :P May 18 20:14:30 Using Context.getSharedPreferences is fine. May 18 20:14:45 TacticalJoke you're kidding me right May 18 20:15:05 Always use the least specific type to access methods May 18 20:15:08 in this case, context May 18 20:15:19 Chain: The one you're talking about just calls the one I'm talking about. May 18 20:15:36 getSharedPreferences is fine (it's just the underlying Context version, same as the others), it's getPreferences that's not. May 18 20:16:14 groxx ah, that clears it up May 18 20:16:34 because getPreferences induces neophytes to risk to pass an Activity to use getPreferences outside of an activity? May 18 20:16:40 Why did you ask whether I was kidding? May 18 20:17:01 probably out of disbelief that the world is populated by people that would create such a method May 18 20:17:27 TacticalJoke I misunderstood. That Activity.getSharedPreferences would return an Activity-specific SharedPreferences while Context.getSharedPreferences would return app-global SharedPreferences May 18 20:18:22 adq, https://dl.dropboxusercontent.com/u/19390574/animation_bug_remains.mp4 May 18 20:18:34 this is the anticipate_overshoot interpolater May 18 20:18:38 spoiled by the title :' May 18 20:18:48 you can try it if you feel like it, also bounce interpolater May 18 20:18:54 those are heavy ones May 18 20:19:36 and they are interpolaters, not just linear May 18 20:19:46 you have delay field inside your layout animation controller dont you? May 18 20:19:57 oh yeah, interpolators are great, under the hood they are like "waveforms" May 18 20:20:14 https://vid.me/7qDz <- same kind of interpolators (lfo) but applie on sound May 18 20:20:28 and different targets May 18 20:20:35 ive seen that video May 18 20:21:23 :p May 18 20:21:38 just imagine a waveform representing the speed of the animation in time May 18 20:21:56 or the position of the frames of the animations in time May 18 20:22:47 i remember some nice article from chet haase about non boring animations, mimic-ing cartoon technics May 18 20:23:03 yea I know it, the one where he shows a kids app May 18 20:23:18 you feel he is misanthropic and nihilistic, but when he gets going in the video you feel he is normal May 18 20:23:23 usually May 18 20:23:27 ahah i feel he is funny ;) May 18 20:23:33 he looks fed up May 18 20:23:44 as if he feels too old for what he is doing May 18 20:23:45 lol May 18 20:23:55 who knows anyway ^^ May 18 20:23:58 I do May 18 20:24:02 I have an eye for these things May 18 20:24:10 onstart called before oncreate, bro May 18 20:24:58 thug lifecycle May 18 20:25:03 LOL! May 18 20:25:07 gold!! May 18 20:25:59 I answered that in an interview 2 days ago haha May 18 20:26:08 so now I keep remembering it when I want to show that I am credible May 18 20:28:49 Odaym, btw did they call you back? ^^ May 18 20:28:57 not yet May 18 20:29:31 maybe someone answered onResume(), then you have a chance xD May 18 20:29:37 haha! May 18 20:29:46 well the apps I showed them more than made up for those mistakes May 18 20:29:59 but regardless, I can never work somewhere that doesn't see the sun May 18 20:30:31 its like half-underground May 18 20:32:34 that marquee challenge, the issue is in displaying Arabic characters May 18 20:32:40 that's the gotcha behind it May 18 20:37:04 is android studio a resource hog? May 18 20:37:23 i remember when i used it before a stable version was done.. it was a resource hog May 18 20:37:32 yea definitely May 18 20:37:37 It's less bad now. May 18 20:37:46 But it's not exactly Notepad. May 18 20:37:49 DarkChaoz: s/android studio/java/g May 18 20:38:46 How can I make the following UI fill the screen height? In short (not showing full XML, obviously), activity.xml is . The fragment.xml is May 18 20:39:43 thats fillng screen height May 18 20:39:53 its layout_height though, not height May 18 20:40:08 yeah, android:layout_height May 18 20:40:15 i might as well install android studio May 18 20:40:18 should work May 18 20:40:21 Dark: AS is definitely recommended. May 18 20:40:23 i messed up eclipse IDE lol May 18 20:40:38 still, it leaves a gap at the bottom... It really only wraps the content (of the LinearLayout) May 18 20:40:48 because i was tryna update the ADT plugin.. i messed up and now wont launch anymore lol May 18 20:41:02 so i thought.. what the heck, i might as well go with AS now May 18 20:41:04 just dump Eclipse May 18 20:41:07 completely May 18 20:41:07 yeah May 18 20:41:25 there aint an uninstall exe file for eclipse is there? May 18 20:41:34 no its a binary May 18 20:41:36 just remove the folder May 18 20:41:57 Yeah, I never liked that about Eclipse. May 18 20:41:58 alright May 18 20:42:00 Felt weird. May 18 20:42:10 unix way May 18 20:43:42 The UI in the fragment is a "vertical stack" of a textview, an imageview, another textview, and a button. I want the UI to fill the height in the sense that, a) there's no gap anywhere, and b) the textview/imageview are aligned with top of screen, while the other textview and the button are aligned with bottom of screen May 18 20:43:50 https://github.com/yongjhih/proguard-annotations May 18 20:43:56 that looks cool May 18 20:44:07 I’ll dump Eclipse when AS starts supporting incremental compilation May 18 20:44:08 Odaym: you had a link to a bug report for the onstart / oncreate thing? I can't remember what it was :| May 18 20:44:15 (for people that suck in proguarding) May 18 20:44:32 jaana_: it does. May 18 20:44:32 here it is groxx https://dl.dropboxusercontent.com/u/19390574/animation_bug_remains.mp4 May 18 20:44:43 groxx: not even remotely close May 18 20:44:52 Yeah, the lack of incremental compilation isn't great, but personally I'd take Gradle one-liners over that. :D May 18 20:45:04 Odaym: that's animation stutter though, isn't it? or is that being caused by something else? May 18 20:45:05 we suck at proguard because of having to chase libraries and figure out which lines belong in proguard to keep that library's classes, that's it May 18 20:45:05 What I've got now, is really just the above structure with a