**** BEGIN LOGGING AT Fri Oct 24 03:00:01 2014 Oct 24 03:09:13 import android.support.v7.app.ActionBarActivity; Oct 24 03:10:21 sprinke support on all the things Oct 24 03:10:26 *sprinkle Oct 24 03:17:43 when you use gradle dynamic versions ( 1.0.+ ) i think be default it only checks to see if something better exists every 24 h? is there a way to force it to check ? Oct 24 03:17:47 Can you get android.util.Log messages through a test case? Oct 24 03:18:12 ...because I am not seeing them Oct 24 03:19:19 boo rxjava release new release, didn't update CHANGES.md Oct 24 03:19:32 g00s my bloggy is gonna be published s00n Oct 24 03:19:41 \o/ Oct 24 03:19:45 need u to review it ! Oct 24 03:20:09 oh my Oct 24 03:20:23 i was just watching https://www.youtube.com/watch?v=qpoxRwSNXXQ Oct 24 03:20:38 i think the NYT is using groovy in their App Oct 24 03:20:45 JacobTab_ let me know when its up ! Oct 24 03:20:54 hey Oct 24 03:20:58 <5min Oct 24 03:20:59 help a brother out Oct 24 03:21:09 I have a list in android Oct 24 03:21:14 and want to display some buttons below it Oct 24 03:21:18 but the buttons get covered Oct 24 03:21:21 by the xml Oct 24 03:21:25 I mena by the lsit* Oct 24 03:21:38 * g00s wonders why Google never asks me for Developer Story :( Oct 24 03:22:13 ajoul go read up on LinearLayout, FrameLayout, RelativeLayout and what a viewGroup is… that then should allow you to fix your prob…or come up with a solution yourself Oct 24 03:22:43 i mena by the isit too ! Oct 24 03:22:49 StingRay_: this is my XML please take a look at it Oct 24 03:22:50 http://pastebin.com/2skYpKk6 Oct 24 03:22:52 we *all* mena by the isit Oct 24 03:23:12 even StingRay_ Oct 24 03:23:28 ajoul android:layout_height="wrap_content" not good for a listView Oct 24 03:23:39 not good - doesn't work Oct 24 03:23:44 ajoul since your parent is a linearLayout have a look at layout weight Oct 24 03:23:48 StingRay_: what should I put Oct 24 03:24:06 StingRay_: ok so if I keep the wrap_content height and put a weight of 0.7 Oct 24 03:24:11 it will be better Oct 24 03:24:16 go have a read Oct 24 03:24:23 you need to understand it a bit Oct 24 03:24:43 weight = fraction of remaining space after initial layout Oct 24 03:25:00 no fraction of screen :) Oct 24 03:25:04 not* Oct 24 03:25:41 StingRay_: so weight of 1 will work? Oct 24 03:26:14 ugh…yes and match parent on the list Oct 24 03:26:55 as in height …but you should read rather than asking for absolutes … most of the time if someone gives you the answer it's not as effective as learning it when being pointed in the right direction Oct 24 03:27:44 ha…and scap listView and use recyclerView :) Oct 24 03:28:32 * StingRay_ is gonna start to convert his way over complex listViews to this new view…for no other reason than learning…and it "could" be better….somehow :) Oct 24 03:33:24 ok im officially a blogger g00s http://jacob.tabak.me/2014/10/a-fresh-look-at-retaining-state-persisting-retrofit-rxjava-observables-across-activityfragment-recreation/ Oct 24 03:35:54 Is there a better ds than nesting a hashmap three times? Oct 24 03:36:18 DS? Oct 24 03:37:29 data structure Oct 24 03:37:53 lasserix: You have to explain what you're doing before anyone will be able to answer. Oct 24 03:38:15 i have a 3 part hash Oct 24 03:38:27 i need to be able to retrieve by each part Oct 24 03:38:41 so like set a contains set b contains mapping of position - value Oct 24 03:38:57 why is AS turning into such a bloated pile of crap; this thing is taking 1.6 G mem Oct 24 03:39:11 i can fit 6 eclipses in that memory Oct 24 03:39:19 g00s: no you can't Oct 24 03:39:27 loke like fuck i can Oct 24 03:39:58 allright, maybe 5 Oct 24 03:40:01 g00s: Not if you want it to do anything useful (arguably, Eclipse is utterly unable to do anything useful no matter how much memory you throw at it) Oct 24 03:40:13 not the way I set it up Oct 24 03:41:02 i could do everything in 450 mb memory; build all day long with ADT running Oct 24 03:41:03 g00s: Well, go and use Eclipse then? (as for me, I prefer to use the full IntelliJ IDEA and even then, its memory usage is a few hundred MB) Oct 24 03:41:21 loke i'm just saying, AS is getting to be a pig Oct 24 03:41:30 and i dont care what you prefer :) Oct 24 03:41:32 hi, can i detect if android is in hotspotmode or not? Oct 24 03:41:35 an extremely awesome pig Oct 24 03:42:06 g00s: Well, I have been using IDEA since version 3 (which was amazing), and even though they've now reaced version 14, it's still not as much of a hog as version 4. :-) Oct 24 03:42:20 Version 4 was... well... you've never seen a hog until you saw that version Oct 24 03:42:45 smart1: It's not Oct 24 03:42:59 smart1: Android doesn't have hotspot. In android you have either Dalvik or ART Oct 24 03:43:40 loke, wifi hotspot. what are you talking about ^^ Oct 24 03:43:43 JacobTab_ you may want to tweet this to @rxjava Oct 24 03:43:50 that will give you more feedback Oct 24 03:44:04 i'm not 100% if this is good Oct 24 03:44:31 JacobTab_ maybe see what JakeWharton thinks also Oct 24 03:45:08 so i mean can i detect if the device has opened an accespoint or if its connected to a wifi network Oct 24 03:45:39 http://en.wikipedia.org/wiki/HotSpot Oct 24 03:46:04 lol, nice. never heard about that :D Oct 24 03:46:23 smart1: Exactly why do you want to check for this? Oct 24 03:46:36 I have a hard time thinking of a situation where that would be useful Oct 24 03:46:59 you should be able to find out if you're connected to a mobile hotspot, at least some of the time Oct 24 03:47:00 i'm developing and emergency network application for my thesis Oct 24 03:47:08 Leeds :D Oct 24 03:47:39 smart1 hope yours is unique; there are quite a few of those Oct 24 03:48:05 crowdsourcing signal, p2p, geolocation needs, etc Oct 24 03:48:21 Leeds: Usually one wants to know if the user is connected to a network that has metering. There are unmetered (unlimited plans) mobile networks, and there are metered WLAN (for example, network sharing from a different phone). There is a special API that tells you whether the connection is metered or not. Oct 24 03:48:39 when one Android device connects to another working as a hotspot, it identifies as such during the network config... and you can manually mark an AP as being a hotspot Oct 24 03:48:43 I'll read in 15m Oct 24 03:48:49 JacobTabak Oct 24 03:49:21 just spent a few days in Japan with a rented hotspot - mostly worked very well :) Oct 24 03:49:30 JacobTab_ congrats on your first blog post , i enjoyed it :) Oct 24 03:51:07 Theme.AppCompat.Light is supposed to have black background? Oct 24 03:52:15 there are not that many. i talk about disaster applications. the idea is to open a emergency application for this. for energy savings i have to control my devices network modes. and detect the one set. but i really got no hint in the api :( for energy cost sharing its important to swap ap modes between devices Oct 24 03:53:50 lasserix don't think so O.o Oct 24 03:53:58 mine is white Oct 24 03:54:11 yeah Oct 24 03:54:15 wasn't set in manifest Oct 24 03:54:23 wow my drawing algorithm almost worked! Oct 24 03:54:25 ;p Oct 24 03:55:30 so a tree of trees of trees Oct 24 03:55:50 yea i have a hash that takes 3 arguements Oct 24 03:55:57 i can parse the hash to get the three arguements Oct 24 03:56:05 the three arguements correspond to each key, with a final value Oct 24 03:56:27 well really i have never used triple nested hashmap before, so if it's not a problem to use then there is no worry Oct 24 03:56:38 its actually not so great Oct 24 03:56:44 (space wise) Oct 24 03:56:57 fairly small values Oct 24 03:57:22 first set contains 1-6, second contains 6-12, third contains 6 or 9 Oct 24 04:00:11 could you make it single level, but 3-part key ? Oct 24 04:00:19 it already is Oct 24 04:00:23 but i have to iterate over them Oct 24 04:00:51 ill work on it more Oct 24 04:00:56 then i can show you the details Oct 24 04:04:55 hey g00s Oct 24 04:05:12 hey Napalm Oct 24 04:05:22 did you get my messages i left for you Oct 24 04:07:05 So, I finally reloaded my laptop (Kubuntu 14.04, Ubuntu with KDE) and installed Eclipse Luna-- but it keeps crashing when I try to create a project from existing code. Anyone else affected? Solution found? Oct 24 04:08:18 ZeroBeholder, just an idea, what happens if you export and reimpoert a project created with luna Oct 24 04:08:45 I'll give it a go. Oct 24 04:10:10 Locked up in the new project dialog/wizard. Oct 24 04:11:02 Crashed before I could get to the 'taking too long wanna terminate?' screen. Oct 24 04:11:27 ZeroBeholder what jvm ? oracle ? Oct 24 04:11:29 Tried OpenJDK & Java 6-8 Oct 24 04:11:40 Was just typing that. Oct 24 04:12:02 Oracle Java 6-8... Oct 24 04:12:30 i don't know if they support 8, but i guess its easy to find out. no harm in using 7 Oct 24 04:12:45 All four are installed. But only one at a time is set as the system default and gets used. I have tried all four. Oct 24 04:12:48 ZeroBeholder also check eclipse's logs Oct 24 04:13:01 Ooooh, good idea. I feel silly now. Oct 24 04:14:00 Where are those? Oct 24 04:14:15 I don't see anything in /etc/log or in the folder where I have the binary. Oct 24 04:14:30 probably your workspace Oct 24 04:14:40 a dir like .eclipse or something Oct 24 04:14:53 i haven't used it in about 2 years, sorry Oct 24 04:15:24 if ADT was still being actively developed like AS, with 1st class gradle support, i'd be using eclipse now Oct 24 04:15:29 but i wnated to use gradle Oct 24 04:17:02 Maybe I'll take this opportunity to ask about alternative IDEs. Possibly there is better now... Oct 24 04:17:23 Been out of the mobile dev arena for about a year and a half. Oct 24 04:17:31 the only alternatives are Android Studio and Intellij Oct 24 04:17:31 there is no need for alternatives Oct 24 04:17:35 there is only vim. Oct 24 04:17:43 and there is only leeds using vim :D Oct 24 04:17:44 yy! Oct 24 04:17:45 "There is only XUL" Oct 24 04:17:58 are you the gradlekeeper? Oct 24 04:18:00 the One using the One Oct 24 04:18:08 gravekeeper Oct 24 04:18:13 the bang was only for emphasis... Oct 24 04:18:38 Leeds emacs 24.4 came out, nows a good time to switch ! Oct 24 04:18:47 I am using the One... E8 Oct 24 04:19:09 or as they call it in Chinese - E-bah Oct 24 04:19:21 E-bah ? Oct 24 04:19:30 E-bay ? Oct 24 04:19:43 taobao.com ? Oct 24 04:19:48 (chinese ebay) Oct 24 04:20:02 it's not really ebay Oct 24 04:20:11 Yeah, I know. Oct 24 04:20:34 But, weird/neat still. I buy stuff off of it every once in a while. Oct 24 04:20:41 my gf gets about 1 shipment a week from there Oct 24 04:21:06 latest thing, today, 8 pairs of glassless glasses Oct 24 04:21:13 to go with the 8 or so pairs she already has... Oct 24 04:22:07 That made me chuckle. Thanks for the heads up. Going to not even worry about Eclipse and see if Android Studio (since it is going to be the official IDE) will run. Oct 24 04:22:30 I'm a little surprised they haven't reached a 1.0 for AS yet Oct 24 04:23:05 Uh, what does someone do with glasses without lenses? Oct 24 04:23:17 ZeroBeholder: I don't know. You see a lot of it in asia Oct 24 04:23:27 I've seen it in both korea and singpaore Oct 24 04:23:38 Leeds glassless glasses ? what is that ? Oct 24 04:23:44 they're a fashion thing... I thought it was pretty dumb, but to be honest they quite suit her Oct 24 04:23:58 Oh. Trendy stuff, I wouldn't really know about that. Oct 24 04:24:52 If it works for you, I'm not going to knock it. Oct 24 04:25:11 I think she's only paying a couple of US$ for each pair Oct 24 04:25:58 Leeds so, are they glasses with no optical changes - but they still have glass ? Oct 24 04:26:16 they aren't just rims :) Oct 24 04:26:25 I think it's a case of being able to wear contacts for optical correction, but having a choice of lots of styles of glasses without needing proper lenses... Oct 24 04:26:29 g00s: nope, glassless Oct 24 04:28:47 http://goo.gl/7JLebj Oct 24 04:29:30 Leeds they still have lenses , though Oct 24 04:29:41 g00s: only the sunglasses there do Oct 24 04:29:49 huh Oct 24 04:30:31 the one on the right looks like the glasses for mr potato head Oct 24 04:30:51 http://blogs.wsj.com/runway/2011/11/18/glassless-glasses-hit-hong-kong/ Oct 24 04:30:56 Hong Kong too, it seems Oct 24 04:31:25 My activity puts a fragment into view when a nav item is clicked on the drawer, but the fragment doesn't appear Oct 24 04:31:33 Did the fad reach outside asia yet? Oct 24 04:31:41 if you reload that photo, you should be able to go to photo 39 in the album now - proof of no lenses :) Oct 24 04:31:45 the code i'm making the transaction with is standard so i dont think that's the issue really Oct 24 04:32:09 Leeds haha Oct 24 04:32:20 but the FrameLayout that will hold the fragment has a background set to #f00 (red) and i don't see any red Oct 24 04:32:30 thats crazy. i think they should at least have UV blocking properties Oct 24 04:32:42 purely fashion frames Oct 24 04:32:45 even if clear Oct 24 04:33:11 as I say, I thought they were dumb fashion, but actually the do look good on my gf, so they're ok with me Oct 24 04:33:34 * loke just remembered his daughter has a pair of those. How could I forget that (we bought them at Hello Kitty Land a few months ago) Oct 24 04:33:46 Hello Kitty Land next to Legoland? Oct 24 04:33:50 Leeds: yep Oct 24 04:34:00 we went to Legoland a few months ago :) Oct 24 04:34:00 Leeds: you been there? Oct 24 04:34:09 ah, bot not HKland? Oct 24 04:34:16 I managed to resist HKland Oct 24 04:34:19 well you live in HK :-) Oct 24 04:34:31 the land of HK, indeed Oct 24 04:34:33 Leeds: Actually, to be fair. HKland isn't bad Oct 24 04:34:49 Legoland was ok, did it as a day trip from SG Oct 24 04:34:54 the third floor is a quite large indoor amuselemnt park Oct 24 04:36:48 :U Oct 24 04:37:18 we were in Okinawa this week, trying to book a quick trip to Osaka for January right now :) going to .au in Feb, got 1/2 a day in SG on the way, just long enough for crab... Oct 24 04:37:34 explodes: sorry, nothing personal... I've managed to go this long without dealing with fragments, so I can't really help Oct 24 04:41:27 anyone know how to fix '04:09:02.098 [ERROR] [org.gradle.BuildExceptionReporter] > Could not create plugin of type 'AppPlugin'.' ? Oct 24 04:42:04 i can't seem to figure out how a gradle version and com.android.tools.build:gradle:0.13.0 versions are related in any way Oct 24 04:45:14 * loke doesn't even know what gradle is. What problem does it solve? Oct 24 04:45:29 * loke relies on the build system in IDEA Oct 24 04:46:04 gradle is the toold Oct 24 04:46:23 Leeds: i'm going to osaka in jan too :) Oct 24 04:46:45 bankai_au: cool... any particular reason? Oct 24 04:47:15 i used to live in osaka, so i'm visiting friends. then heading to tokyo, then nagano for snowboarding Oct 24 04:47:20 sweet Oct 24 04:47:42 bankai_au awesome Oct 24 04:47:45 we did Tokyo/Nagano/Kyoto a couple of years ago, then Kyoto/Osaka last year, Okinawa this year :) Oct 24 04:47:56 lots of yanks in okinawa i hear Oct 24 04:48:12 bankai_au: especially now, or always? Oct 24 04:48:26 there's an army base there isn't there? Oct 24 04:48:26 mostly on base nowadays - they're not so popular locally Oct 24 04:48:40 Air Force rather than Army, I think - something like 40,000 troops there Oct 24 04:49:04 40k? Wow... And I feel Singapore is invaded when a single ship stops in port. Oct 24 04:49:10 i applied for a job there a few years ago, but turned it down coz they made it sound like a little american town haha Oct 24 04:50:04 * loke visited the American Club in Singapore. That was very bizarre Oct 24 04:52:00 nice sounding trip Oct 24 04:52:42 I enjoyed my few days in Japan this summer Oct 24 04:53:42 great place to travel - and we get some pretty cheap flights nowadays Oct 24 04:54:28 if I can actually book this one - the airline site is overloaded because they're running a sale - it'll be US$310 for 2 of us, with 1 bag, including taxes and whatnot Oct 24 04:54:40 wow! Oct 24 04:54:57 who's that through? Oct 24 04:54:59 except... booking failed, now showing a much higher price Oct 24 04:55:02 Leeds: which site are you using? Oct 24 04:55:18 HK Express, regional/low-cost carrier Oct 24 04:55:23 considering you're injjj Oct 24 04:55:26 hk Oct 24 04:55:29 it Oct 24 04:55:32 might have missed it :( Oct 24 04:55:35 you could basically walk there Oct 24 04:56:08 only a couple of hours to Okinawa - a bit further to Osaka/Tokyo Oct 24 04:57:01 its 1400 rt from sjc Oct 24 04:57:38 er... sjc? Oct 24 04:58:25 suth jersey city Oct 24 04:58:30 *south Oct 24 04:59:38 that's between England and France, right? Oct 24 05:02:08 Leeds closer to the Shire Oct 24 05:02:59 I'm confused Oct 24 05:03:17 so Leeds whats next, patchless eye patches ? Oct 24 05:04:13 g00s: Crotchless thongs Oct 24 05:04:28 yeowza Oct 24 05:07:50 like... flip-flops? Oct 24 05:08:39 How about an Android question? How do you create one of those titlebar-like thins that scroll out of the way when you scroll down but appear when you scroll up? Like the address bar in Chrome or the menu bar in the G+ application? Oct 24 05:09:10 those things drive me nuts Oct 24 05:09:11 What are those called? Oct 24 05:09:53 a view :) Oct 24 05:10:23 but I think you mean what moves the views out of the way, as in mode or condition etc Oct 24 05:10:38 Hmm, ok Oct 24 05:11:01 and related, the gmail application's top bar has that little shadow thing on the bottom Oct 24 05:11:05 so you can have immersive modes that do that…you can make your own views do that by listening to it Oct 24 05:11:23 as in the current view mode state of the main bars etc… Oct 24 05:11:36 the botom has a grey line a few pixels high, and then the scroll view underneath are fading out like a shdow. how is that done? Oct 24 05:12:01 isn't that material's z-axis? Oct 24 05:12:54 Leeds: I have no idea. I'll try Oct 24 05:13:14 and the grey line is just an empty blank view or something? Oct 24 05:13:32 it also might be the window content overlay on the theme Oct 24 05:13:46 it's a 9-patch which sits on top of the framelayout that the content is inflated into under the action bar Oct 24 05:14:19 I thoroughly apologize for hijacking the channel by mentioning taobao. But, I like where this is going with the crotchless panties... Oct 24 05:57:44 https://medium.com/@joshliptzin/this-is-how-google-kills-your-app-c1abad30eb25 Oct 24 06:02:02 Love the last line Oct 24 06:02:05 Shit like this makes me want to switch to iOS :p Oct 24 06:02:13 They actually have humans doing the reviewing Oct 24 06:02:35 ya, i think their approval process can be a hassle, but they dont permaban you unless you *really* fuck up Oct 24 06:02:42 as I said t'other day... they should have an active and more manual process for *mistakes* than for obvious flagrant violations Oct 24 06:02:42 and retroactive removals are kinda rare(er) too Oct 24 06:02:47 Leeds yeah Oct 24 06:02:54 at the end of the day, they are both walled gardens Oct 24 06:03:02 one won't let you in, the other - gardener thinks everything is a weed Oct 24 06:03:03 They're both CYA Oct 24 06:03:10 Google is just really lazy about it Oct 24 06:03:39 andreyrd its kinda interesting been a dev since 2010, seeing how google has changed Oct 24 06:03:42 android dev that is Oct 24 06:03:54 Google have just moved much much more to the *telling* developers the way it is, rather than communicating Oct 24 06:03:58 in te beginning they seemed more personal, more outreach, they needed community Oct 24 06:04:25 now, they have what they need (maybe even too much) and don't seem to give a damn Oct 24 06:04:38 Leeds right Oct 24 06:05:04 you could even link in their wholesale abandonment of these IRC channels, if you fancied :) Oct 24 06:05:44 yeah, i seriously wonder what exactly google developer advocates do Oct 24 06:06:09 go developer ! Oct 24 06:06:25 er, "go *google developer*" Oct 24 06:06:55 *smite* Oct 24 06:06:56 I just emailed that to my advocate Oct 24 06:08:57 g00s: try to get big companies not to go iOS first, I think Oct 24 06:10:23 Leeds oh yeah, that pisses me off on the Apple side - they want excusitivity also. I read a few times if an android port was taken, they would lose (on iTunes) editors' choice or some high placement Oct 24 06:10:27 presumably only in the US, since that's where Google puts their effort Oct 24 06:10:55 all these companies are the same Oct 24 06:11:22 come on man, why can't i have a good ubuntu touch phoneeee plleeeeeez Oct 24 06:11:23 s/good// Oct 24 06:11:28 g00s: did you put your money down for the Edge, huh? Oct 24 06:16:46 Leeds i'm sure if it runs vim you'll like it ;) Oct 24 06:16:56 meh Oct 24 06:17:05 nah - i got a $69 lumia 521 , that was my splurge Oct 24 06:17:06 i still love that thing Oct 24 06:17:26 I don't like Ubuntu in general :S Oct 24 06:17:31 yeah, their reputation in the linux community has defnitely changed in the 10 years Oct 24 06:17:34 I think they really shot themselves in the foot with the ads thing Oct 24 06:19:41 firefox was doing something there too Oct 24 06:19:42 Man, I think I'm slowly becoming an apple fanboy ;_; Oct 24 06:19:42 I did hackintosh and now I can't use anything other than OSX :p Oct 24 06:19:42 I used a mac for a while, years ago - went back to Linux to get stuff done Oct 24 06:19:42 Leeds mac runs vim too :) Oct 24 06:19:42 * g00s pretty sure Leeds balances checkbook in vim Oct 24 06:19:42 in octal Oct 24 06:19:42 If Linux got better multi touch support I'd be all over it Oct 24 06:19:43 a whatbook? Oct 24 06:19:50 I love the three finger swipes for Spaces Oct 24 06:19:52 g00s: it's the 21st century - I know the US is behind, but nobody in the real world has balances a chequebook in decades Oct 24 06:19:53 Lol Oct 24 06:19:58 heh, yeah Oct 24 06:19:58 * andreyrd has a budget spreadsheet Oct 24 06:20:00 I want to convert it to an app Oct 24 06:20:18 * capella started coding on an octal machine Oct 24 06:20:38 Oh, g00s and I had this discussion before :P Oct 24 06:20:46 I lost my local chequebook years ago... no idea where it is, haven't needed it Oct 24 06:23:24 i think so capella ... Oct 24 06:25:56 g00s Oct 24 06:33:32 is android's gradle plugin roadmap somewhere ? Oct 24 06:33:33 found only this http://tools.android.com/tech-docs/new-build-system/roadmap Oct 24 07:18:09 StingRay_: Got it working with some reflection Oct 24 07:38:55 hi, is it possible to set the language of an app to english (via set locale) but getting the current location/position from locationManager.network_provider in german? because my app lets the user select between these two languages but i would like to get the location names in the language of the country i`m currently in Oct 24 07:41:18 * capella just special-case repaired a bug to the point where I wished I'd just accepted living with the bug Oct 24 07:42:29 . o O ( think I'll just WONTFIX the dang thing :/ ) Oct 24 07:42:30 :D Oct 24 08:28:28 wrote my own control that has an adapater backing the views Oct 24 08:28:37 extended from viewgroup Oct 24 08:29:07 but when ever i call onDataSetChanged() all touch events on my view doesn't work Oct 24 08:32:11 cool story bro Oct 24 08:37:12 * StingRay_ questions ravilov perception of what is cool Oct 24 08:41:08 StingRay_, http://www.urbandictionary.com/define.php?term=cool%20story%20bro Oct 24 08:41:32 fkin urban dics Oct 24 08:41:42 even more nonsense to learn :) Oct 24 08:42:01 you no like urban dicks? :p Oct 24 08:48:22 Oh you guys Oct 24 09:20:19 Anyone here having problems with Google Maps fragment causing OOM Errors? Oct 24 09:28:32 no, but I've noted google maps causing a lot of GC triggers in my recent testing Oct 24 09:35:29 Hey, does anyone have much experience with displaying JSON data back in a ListView? Oct 24 09:38:55 I want to create an animated ImageView via animation-list xml. Is it possible to do that with a sprite sheet instead of having multiple pngs? Oct 24 09:39:38 I cant find a way to tell animateion-list items to only use a part of the image provides Oct 24 09:39:44 provided Oct 24 09:40:01 my VPN tunnel sometimes uses the IP address I set by VPNService.Builder, but most often than not it uses the IP my device got from DHCP before establishing tunnel. Why is that? How to always make it respect IP address settings? Oct 24 09:48:10 Is the Toolbar to be used with tabs? Oct 24 09:48:31 I mean if I want tabbed navigation is it a good idea to put them in the toolbar? Oct 24 09:49:26 marrrk: they completly removed tabs in 5.0 Oct 24 09:50:05 The top bar in the G+ application and Gmail, are they actionbars? Oct 24 09:50:59 marrrk: they want you to create your own tabs with horizontalscrollview or whatever you want.. Oct 24 09:51:13 I see Oct 24 09:51:19 I was actually just considering doing this now Oct 24 09:51:24 Good! Oct 24 09:51:41 Should that go into the toolbar thougH? Oct 24 09:51:47 if you give me a second ill give you the official post of a google guy about what he considers being the best way to implement it Oct 24 09:52:26 Yeah, that sounds like a good idea so I can do the exact opposite :D Oct 24 09:52:49 there you go https://plus.google.com/+ChrisBanes/posts/ZqVBYudxvFv Oct 24 09:54:01 and this is the example he is talking about: https://developer.android.com/samples/SlidingTabsBasic/project.html Oct 24 09:54:40 basically a horizontalscrollview with textviews in it, and the sliding state is set by clicking on that texts Oct 24 09:56:02 I don't want it to slide anyways so I should be fine doing it meself. Oct 24 09:56:54 im pretty sure it wont take long for someone releasing a library which is exactly what old tabs were ^^ Oct 24 09:58:31 someone should fix his irc node.. Oct 24 10:01:05 Hello there! Oct 24 10:01:30 can you advice me, how can I use conscrypt classes in my app? Oct 24 10:02:04 Why does if I select my app from multitasking it resumes correctly and when I select from navigation drawer it starts from first activity? Oct 24 10:02:10 when I trying to import it, and says hat there is no such package... Oct 24 10:03:57 mva seems that you didnt add the depency correctly Oct 24 10:04:09 ehm, app drawer not navigation drawer lol Oct 24 10:05:31 i can’t get my app to use immersive mode… here are my flags: http://pastebin.com/UM3cE3jq Oct 24 10:05:47 i set my target to 4.4 and my nexus 7 has been upgraded to 4.4, so i don’t get why this doesn’t work Oct 24 10:08:31 hi all Oct 24 10:09:36 danijoo: can you advice me about proper way of adding it? :) Oct 24 10:09:50 i never used that library, sorry mva :/ Oct 24 10:10:02 is is a gradle source, a jar, or how do you add it? Oct 24 10:10:08 When I implement an activity-filter to provide a view action for a filetype everyuthing works fine. But filemanagers like Astro sometimes "open my application inside theirs" as some kind of overlay. I was wondering what this feature(?) or approach might be called. Thanks for reading through :) Oct 24 10:12:11 btw, to prevent XY-problem syndrome: my main problem is that I'm using java.security.interfaces.RSA* + java.security.PrivateKey; And I'm casting PrivateKey to RSAPrivateCrtKey. It worked fine before Android 4.4.2, but now it throws > java.lang.ClassCastException: com.android.org.conscrypt.OpenSSLRSAPrivateKey cannot be cast to java.security.interfaces.RSAPrivateCrtKey Oct 24 10:12:44 So I decided to redo that with conscrypt.OpenSSLRSA* Oct 24 10:14:09 but can't google enough documentation on that. And when I just trying to import org.conscrypt. or com.angroid.org.conscrypt., and trying to build it with ant — I get javac errors that it is no such package Oct 24 10:14:50 while it IS org.conscrypt in $ANDROID_HOME/sources//org/conscrypt Oct 24 10:15:14 at least, it is for android-19 and android-21 (and I'm building for android-19) Oct 24 10:18:37 hi guys.. i have hide the action bar... with: requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Oct 24 10:18:53 if i want show the actionbar? Oct 24 10:19:03 Hey guys could someone please help me? It's more than 10 days that I'm stuck. here: http://goo.gl/TcW95D Oct 24 10:29:27 does it make sense that i should have to put the immersive mode flags on onResume? i was putting them in onCreate before and it didn’t work Oct 24 10:29:36 it’s working now, but i want to make sure that’s right Oct 24 10:29:57 if it works,its right :) Oct 24 10:30:44 haha i’ve been told the opposite so many times that i just ask now Oct 24 10:30:50 that was always my way of looking at it Oct 24 10:31:26 so here’s another question then, since that’s how you look at it… all my layouts are done manually (graphics, everything is drawn)… it’s ok to call .layout on a view? Oct 24 10:31:47 from my parent view’s onLayout, i use the dimensions to layout the child views Oct 24 10:32:53 :/ Oct 24 10:32:58 if it works :p Oct 24 10:33:13 its my paradim to everything related to programming Oct 24 11:08:00 will there really be a drawable-xxxhdpi folder for nexus 6? Oct 24 11:08:25 wondering how far this will go... nexus 6 (2017) drawable-xxxxxhdpi? Oct 24 11:09:07 http://android-developers.blogspot.de/2014/10/getting-your-apps-ready-for-nexus-6-and.html Oct 24 11:09:33 retoric question :) Oct 24 11:10:54 danijoo: vhdpi ... xvhdpi ... xxvhdpi <- the M$ style ;) Oct 24 11:11:01 ^^ Oct 24 11:11:22 remember? win 10 will be the new, new, new, new, new, new, new technology ;) Oct 24 11:11:39 are you all creating all these images by hand or do you create them automatically for every resolution? Oct 24 11:11:58 depends Oct 24 11:12:10 i often only include one of them Oct 24 11:12:36 for thinks like 9.png elements its often pointless to provides them in 10 different resolutions Oct 24 11:12:40 beo6: i have eastern pixel slaves - they are cheap Oct 24 11:13:25 it took me some weeks to teach them "make it like this - with content like this"... Oct 24 11:13:27 monsti: probably named "photoshop action" ? Oct 24 11:13:42 no stanislav and victor ;) Oct 24 11:14:01 ah. vector. ;) Oct 24 11:14:58 the guys are great - but it was hard trial & error teaching them 9 patch Oct 24 11:16:03 9 patch? Oct 24 11:16:13 9.pngs Oct 24 11:16:33 ah yes Oct 24 11:16:57 also a never ending story is "how to use correct names for images" ;) Oct 24 11:17:20 one day i will add a svn trigger script and reject their checkins ;) Oct 24 11:18:08 "StuPid Window's n#ame.PnG" ;) Oct 24 11:19:42 as long as the name is a valid filename in windows Oct 24 11:20:00 I'm right that screenOrientation="nosensor" would result in portrait mode on phones and landscape mode on tablets? Oct 24 11:20:56 Yeah icedp .. ish, it sets it to the default device orientation, but for some small tablets, like the Nexus 7 the default orientation is portrait Oct 24 11:21:40 So there are some outliers, but generally it's portrait for mobile devices and landscape for tablets Oct 24 11:21:50 When using "nosensor" Oct 24 11:22:20 thanks VnM Oct 24 11:25:12 Wouldnt call it "outliner" Oct 24 11:25:22 I think its just portrait for everything > 7" Oct 24 11:30:18 i hacve a class extending mapfragment, which i add a popup window to (to the view hierarchy). setRetainInstance(true) is called. When the orientation changes I still have a handle to the popup, but it belongs to the old viewhierarchy. Is it a good idea to do this, and add it to the new hierarchy? Or am i leaking memory or something Oct 24 11:30:36 Not sure, but N7 is a tablet, and it's default orientation isn't landscape so in that aspect it's an outlier Oct 24 11:40:25 is there any CardView sample? Oct 24 11:40:31 or an api demo for L? Oct 24 11:41:12 monsti: its a framelayout with minimal makeup Oct 24 11:48:52 anyone using fabric yet Oct 24 11:50:09 guys i use: getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); getActionBar().hide(); Oct 24 11:50:16 for switch in fullscreen Oct 24 11:50:56 but if i want return at normal mode...? Oct 24 11:51:00 if i use getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); getActionBar().show(); Oct 24 11:51:38 Why not use getwindow().clearflags? Oct 24 11:52:12 for return in normal mode (?) Oct 24 11:52:51 Yes, getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); Oct 24 11:52:52 Try that? Oct 24 11:54:53 thank youuuuuuu Oct 24 11:55:57 i wonder if you can use fabric twitter api with dynamic content and load more than regular api. as its twitters new baby Oct 24 12:10:33 Does the Maps v2 API require a key even for debug builds? Oct 24 12:21:13 Android docs, Material: custom color accent like so: @color/accent. However, I want to access the uncustomized color accent: ?????. What do I put in place of ????? nothing I've tried worked Oct 24 12:25:43 Syzygy_ yes Oct 24 12:25:57 Chainfire: hex value? Oct 24 12:26:56 Guys, can i close db when using cursor? I mean can i use cursor when it's db closed? Oct 24 12:27:29 Hey guys could someone please help me? It's more than 10 days that I'm stuck. here: http://goo.gl/TcW95D Oct 24 12:28:50 icedp I dont want to hardcode Oct 24 12:28:59 aaearon, do I use the same API key that I generate for a signed release build for my unsigned debug build? Oct 24 12:29:22 I can use it from layouts as ?android:attr/colorAccent though, but since it changes between API levels, I want reference I can change Oct 24 12:29:59 yes you still need to add the SHA1 hash of the debug.keystore Oct 24 12:33:23 trying to send commands to android emulator with telnet but whatever I give it instantly closes the telnet connection... any clues on what's happening? -.- Oct 24 12:33:50 android monitor is also unable to send text messages and stuff to the emulator Oct 24 12:34:28 Zharf, "help" should help Oct 24 12:34:38 ravilov, nope, it disconnects immediately as well Oct 24 12:34:53 it's not connected Oct 24 12:34:59 of you have some firewall issue Oct 24 12:35:14 it does give me the android prompt which says 'help' for commands and "OK" Oct 24 12:35:33 Zharf, http://pastebin.com/hr0Wdh1g Oct 24 12:37:11 ravilov, nope, I only get lines 1-6, whatever command I give it just disconnects Oct 24 12:37:15 not quite sure what service is that on the emulator, or how it can even be disabled Oct 24 12:37:28 this is also a freshly created android 5 emulator Oct 24 12:37:37 oh lord Oct 24 12:38:04 seriously, I've only ever heard of problems regarding the newest SDK Oct 24 12:38:15 :) Oct 24 12:38:24 already decided I'm not going to upgrade for now, everything I've heard so far only fortifies that decision Oct 24 12:39:01 I generally don't give a crap about the emulator, but I was curious Oct 24 12:39:15 I do have android L preview running on nexus 5 and it's horrible Oct 24 12:39:28 there you go Oct 24 12:39:39 but that's not why I was curious Oct 24 12:39:46 I wanted to try the telnet stuff :p Oct 24 12:39:56 I can't help but laugh everytime I see someone sway at L Oct 24 12:40:08 yeah I guess you're better off with an older emulator for that :p Oct 24 12:40:15 guess so Oct 24 12:42:36 except telnet doesn't work on that either Oct 24 12:42:46 apparently it says KO: forbidden binary request. Aborting Oct 24 12:43:49 It sounds angry... Oct 24 12:44:03 lemme guess,windows? Oct 24 12:44:24 sure Oct 24 12:45:05 well it either is or isn't Oct 24 12:45:21 ? -.- Oct 24 12:46:40 https://github.com/android/platform_external_qemu/blob/master/android/console.c#L424 puzzling... Oct 24 12:47:08 that's what I was getting too Oct 24 12:47:29 something about invalid input Oct 24 12:48:42 if you're really that curious and have enough spare time, you can always make a virtualbox VM with a *real* OS inside and try it there, as I'm pretty sure it has something to do with your OS or your settings Oct 24 12:49:45 I wouldn't be so sure Oct 24 12:49:50 I do have linux machines around Oct 24 12:49:56 and I wouldn't call it a real OS either Oct 24 12:50:00 there isn't a real OS in the world Oct 24 12:50:03 they're all bunch of crap Oct 24 12:50:22 I'm using putty as my telnet application though Oct 24 12:50:43 dunno, for me linux does everything I throw at it and does it well, don't have any complaints as of yet Oct 24 12:50:50 unlike any other OS I've tried Oct 24 12:50:58 oh lord Oct 24 12:51:02 you're not helping your case Oct 24 12:51:02 it's personal, for sure :p Oct 24 12:51:11 what's wrong with normal commandline telnet? Oct 24 12:51:35 would have to install it separately and I don't have the media :p Oct 24 12:51:43 they don't ship it with windows anymore Oct 24 12:51:53 right Oct 24 12:52:00 so much about that "OS" Oct 24 12:52:32 nothing wrong with putty... -.- Oct 24 12:53:40 what version of windows are you on? with windows 7 at least you are able to add telnet without needing the media Oct 24 12:53:44 really? dunno, looks to me like it doesn't work :p Oct 24 12:53:45 win8.1 Oct 24 12:53:57 you poor poor soul Oct 24 12:54:19 a system so horribly unsuitable for development Oct 24 12:54:20 is it requesting the media ? Oct 24 12:54:28 you're just bashing at random walls, ravilov, your pathetic attempts at trying to promote your "superior OS" aren't working Oct 24 12:54:31 putty or cygwin work well enough Oct 24 12:55:06 Zharf, I'm not trying to promote anything, I'm just stating the facts, you can take them or leave them, I don't care either way Oct 24 12:55:32 ravilov, I have no interest in OS wars consider they're all equally crap at everything :p Oct 24 12:55:38 http://www.sysprobs.com/install-and-enable-telnet-in-windows-8-use-as-telnet-client ??? Oct 24 12:56:03 whatever you say Oct 24 12:56:47 bottom line is, my system works for me, while yours apparently doesn't :p Oct 24 12:57:24 you're clearly not using your linux on too many things ;) Oct 24 12:57:36 frankly if you still think there's good software in the world, you're too young to talk about software Oct 24 12:58:08 riiiight, yep Oct 24 12:58:13 I'm barely even using this box Oct 24 12:58:20 rolled my eyes so hard i think i got a headache Oct 24 12:58:20 just use whatever tools work for you from the massive heap of shit out there Oct 24 12:58:47 aaearon, I know, right? Oct 24 12:59:08 Play nice ravilov Oct 24 12:59:16 VnM, never Oct 24 12:59:58 let's put it this way, this is the only system that works so incredibly well that I'm actually doing regular backups Oct 24 13:00:32 I'm not saying getting it to work this well was easy, it took quite some effort... but it was totally worth it Oct 24 13:00:39 and I'm not going to lose it now Oct 24 13:00:56 and I'm not saying that you shouldn't use it -.- Oct 24 13:01:05 especially because it really is set up that well that everything just *works* Oct 24 13:01:10 I'm just saying that it's all the same shit, whatever you end up using Oct 24 13:01:37 Zharf, you also believe there is no hope for humanity; I rest my case :p Oct 24 13:01:46 what case? -.- Oct 24 13:02:43 As if you have any hope for humanity ravilov Oct 24 13:03:16 but I do Oct 24 13:05:17 You must be on drugs, or hoping for Ebola to spread Oct 24 13:05:44 ... Oct 24 13:05:48 it should spread, unfortunately it's not going to be persistent enough to make any difference Oct 24 13:09:09 how usefull is beacon support in apps? Oct 24 13:09:19 anyone good with contacts in here? Oct 24 13:12:07 Nah we're all recluses subsignal Oct 24 13:12:39 :P Oct 24 13:13:09 https://dpaste.de/rhGs , any one can help this? why does the table can not be update? Oct 24 13:13:23 the project_item Oct 24 13:13:48 the id, where values are all OK Oct 24 13:14:26 ProjectContract.Column.ID is also _id Oct 24 13:15:17 getContentResolver().update(uri, values, null, null); Oct 24 13:17:23 Anyone have any insight into this problem: http://stackoverflow.com/questions/26538075/layout-weight-on-a-listview-causes-choicemode-to-stop-working Oct 24 13:21:07 Hey guys could someone please help me? It's more than 10 days that I'm stuck. here: http://goo.gl/TcW95D Oct 24 13:22:36 too much to read in my current state Oct 24 13:22:56 Zharf is drunk Oct 24 13:22:59 and horny Oct 24 13:23:07 uhhuh... Oct 24 13:23:25 wat Oct 24 13:23:26 that is too much to read Oct 24 13:23:37 * ggVGc agrees with Zharf Oct 24 13:23:49 libgdx it is then. Very nice little library. Oct 24 13:24:03 ggVGc, I don't think most people here would understand the irony in your statements about me :p Oct 24 13:24:06 it is also something he's asked not so long ago Oct 24 13:24:15 pretty sure if someone knew the solution they'd say so by now Oct 24 13:24:35 haha you silly fool Oct 24 13:24:50 i am trying to pick a number from a specific contact URI Oct 24 13:25:10 subsignal, haha you simpleton Oct 24 13:25:23 ACTION_PICK gives a list of all contacts even if i pass the contact URI Oct 24 13:25:26 mcmaur : you saw there was an updated answer. Besides that "it doesnt work" is not really a lot to go on. You need to show some sort of indication you know where the trouble is. Oct 24 13:25:52 using ACTION_VIEW if i selected the phone number it dials using the build in phone app, i need to change this funtionality for my app Oct 24 13:26:48 either i need to be able to select the phone number and have it passed back or i need to be able to override the functionality of the list view seletion in the contacts view Oct 24 13:29:09 subsignal, http://developer.android.com/training/basics/intents/result.html Oct 24 13:29:45 anyone can help the reason why the table can not be updated? Oct 24 13:29:47 https://dpaste.de/G3F7 Oct 24 13:29:50 yea ive read through this Oct 24 13:30:08 ACTION_PICK present a list of all contacts Oct 24 13:30:14 i already know the contact uri Oct 24 13:31:10 then I'm afraid the standard dialer is not capable of dealing with what you want Oct 24 13:31:27 i guess ill just rebuild a person view Oct 24 13:32:17 wild that apple allows this but android doesnt there must be a way! Oct 24 13:33:33 funny, at first they were copying each other, now it looks like people *expect* them to copy each other :p Oct 24 13:33:44 just because one does doesn't mean the other should too Oct 24 13:33:47 I am staring at this menu editor in eclipse, what goes into the icon setting ? ( it does not have a brows button like the rest ). Oct 24 13:34:06 i just figured its such a standard thing that there would be a way to do it Oct 24 13:34:14 even the windows phone allows u to do this Oct 24 13:34:23 and android is the most open platform ive used so far Oct 24 13:34:27 just found it weird Oct 24 13:34:33 Unknown0BC, using the "visual" editor is a bad idea anyway, you should be typing raw XML code like a real coder! but anyway, any drawable goes in there Oct 24 13:34:55 hehe Oct 24 13:34:58 ^ Oct 24 13:35:05 yes that visual editor is super bad Oct 24 13:35:07 lol Oct 24 13:35:12 subsignal, you can try installing an alternative dialer, see if that helps any Oct 24 13:35:27 we already have a voip sytem in place Oct 24 13:35:29 I must agree, since it gets stuck on stuff and messes up a lot of stuff. Oct 24 13:35:39 i was just trying to use built in contact view for a person to select their number to dial Oct 24 13:35:44 Unknown0BC, then quit using it, most people already have ;) Oct 24 13:35:47 but its such a nice "looking" interface ! ;) Oct 24 13:35:49 its all good im just gonna rebuild a person view Oct 24 13:36:10 once u start building custom views the editor throws up on itself Oct 24 13:36:11 so Oct 24 13:36:17 subsignal, yeah even viber has its own contacts view, even though they pull the data out of the phonebook Oct 24 13:36:27 yea thats what we will do it seems Oct 24 13:36:29 no biggie Oct 24 13:36:38 I find the visual editor handy as a properties reference or as a shorthand for setting some properties, but yeah it is kind of awful Oct 24 13:36:50 just trying to use as much built in things as posssible so the user doesnt have to look at all these different views Oct 24 13:37:07 thanks for the help rav Oct 24 13:37:09 jooles: ditto. There is a set who start crying if you use. It's very useful if you use it properly. Oct 24 13:37:21 I only ever use the visual editor as a quick preview, even though even that is quite inaccurate most of the time Oct 24 13:37:31 ^ Oct 24 13:37:45 how did the guys who made it get to use it ? Oct 24 13:37:48 yea on more custom things that visual editor can really f u up Oct 24 13:37:48 all tools are useful to some degree :) Oct 24 13:37:51 jeez Oct 24 13:38:06 You have to do double the coding to get it working. Oct 24 13:38:21 no triple. Oct 24 13:39:10 Unknown0BC, well they did use Java as the main app development language ;) Oct 24 13:40:12 oooooh yes... good old java, want to change a colour ? lets write a library for it... ;) Oct 24 13:41:13 who in their right mind changes colors anyway Oct 24 13:41:13 guys whats a good way to promote app without money Oct 24 13:41:14 a library? Why not a whole new enterprise framework? Oct 24 13:41:26 * jooles does like Java really Oct 24 13:41:29 cliffreich, make it awesome and unique, and then tell a few friends Oct 24 13:41:39 also social media Oct 24 13:42:02 If it's worth a retweet/share, people will do so Oct 24 13:42:07 but seriously, nothing promotes an app like its own quality Oct 24 13:42:08 my social media=0 Oct 24 13:42:22 * Unknown0BC blinks Oct 24 13:42:27 better grind the social media front Oct 24 13:42:42 cliffreich, put it on google play and hold thumbs someone sees it. Oct 24 13:42:52 cliffreich, is your app a frontend to your own developed social network? :p Oct 24 13:43:03 Unknown0BC, he did say no money.. Oct 24 13:43:03 its on from 2 days, but like 10 downloads so far Oct 24 13:43:08 ( if you have an account, err which you pay for ) Oct 24 13:43:20 I forgot for a moment. Oct 24 13:43:29 contact some bloggers Oct 24 13:43:39 send them ur app for free if its not Oct 24 13:43:43 maybe they will blog about it Oct 24 13:43:55 yeah its free Oct 24 13:44:02 then send them a link Oct 24 13:44:03 what are good blogs to do that Oct 24 13:44:10 google Oct 24 13:44:21 ok will do Oct 24 13:44:25 depends on your type of app Oct 24 13:45:41 I want to know , how can i set the view of my application , that is shown in the overview screen for android device ? Oct 24 13:45:44 ravilov i mean i have same amount of social networks profiles as stallman Oct 24 13:45:49 :P Oct 24 13:47:36 cliffreich, that means you have no personal profiles of your own, but you do have tons of groups and fan pages ;) Oct 24 13:47:55 chinmaya, what is an "overview screen"? Oct 24 13:48:16 no one knows? Oct 24 13:48:44 just the same amount of personal profiles :(. maybe some day i'll have fans making fake profiles of me and i'll hate them in secret Oct 24 13:49:05 a man can dream Oct 24 13:49:06 overview screen (also referred to as the recents screen, recent task list, or recent apps) Oct 24 13:51:50 chinmaya, I thought that always shows a random recent screenshot of the app Oct 24 13:52:27 ravilov, I think thats the last activity screenshot . Is it possible to manage the screenshot of the app Oct 24 13:52:43 not that I know of Oct 24 13:53:07 probably not though, or else that could be used for malicious purposes Oct 24 13:53:38 If I am going to avoid the graphical interface designer should I avoid the xml files also ? Oct 24 13:53:46 it also serves as a quick reminder of where you left off in the activity, so... Oct 24 13:53:55 Unknown0BC, ... no Oct 24 13:54:17 ask for help, sirs, https://dpaste.de/G3F7 Oct 24 13:54:24 ravilov, i know that apps using pincode to allow users to access the apps, show a blank screen or loading view Oct 24 13:54:30 looks like you're a total beginner Unknown0BC, correct? Oct 24 13:55:01 ravilov, not exactly. Oct 24 13:55:20 sure looks like it though Oct 24 13:55:22 :) Oct 24 13:55:47 http://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background Oct 24 13:56:18 I've seen nobody else actually try to use the visual editor, and when told not to consider abandoning xmls altogether Oct 24 13:57:09 fyi, you won't get far if you stay away from xmls Oct 24 13:58:20 oh Zharf, I lied, I just thought of one single thing my system/setup doesn't do (yet) that I wish it did - connect to my company's wifi with weird proprietary encryption and stuff Oct 24 13:58:35 but even that is just a matter of time ;) Oct 24 14:01:39 chinmaya: i don't understand that SECURE flag ;) Oct 24 14:02:16 chinmaya: i can use a 2nd device and create a picture of the "secure" device ;) Oct 24 14:02:55 that's somehow similar "security" then the face recognicion lock ;) Oct 24 14:07:12 RAVILOV, i'VE USED THE VISUAL EDITOR, IT'S NOT BAD. oops caps. I manunly use it to generate a quick xml Oct 24 14:07:18 mainly*.. Oct 24 14:07:30 sometimes I don't use an XML at all if the layou tis more complicated Oct 24 14:08:46 I've been using macroid, its nice Oct 24 14:09:43 tricknology, if your typing is generally this good, I'm not surprised you'd rather click around than type code :p Oct 24 14:09:47 * ravilov hides again Oct 24 14:11:09 Android layout XML is far too verbose Oct 24 14:11:22 clicking is arguably faster Oct 24 14:13:05 pfn, copypasting my standard boilerplate works much better for me Oct 24 14:13:13 I'd get nowhere with clicking Oct 24 14:13:24 just not my kind of thing Oct 24 14:15:39 My typing is shit, I have really short fingers Oct 24 14:17:33 I'm surprised you didn't notice earlier. I always hit the key next to the one I want, or hit the space bar too early. I think I need a mechanical. Oct 24 14:18:12 cant close the variable window in IJ. Its sitting over the tools area (debug, logcat etc). it says its docked but its not. any ideas how to properly reembed it? Oct 24 14:18:54 ravilov, copy pasting involves clicking for you, I bet Oct 24 14:19:22 pfn, um no it doesn't Oct 24 14:19:40 it does for most people Oct 24 14:19:51 he uses ctrl, shift, and page up/dn Oct 24 14:20:01 and arrow keys.. Oct 24 14:20:19 not to forget home and end Oct 24 14:20:35 ah yes, they are important too, but not on a mac Oct 24 14:20:46 that's how I've always done it, can't stand making selections with the mouse Oct 24 14:21:35 random, but you just reminded me. my dad used to take the mouse when he went to work in the summer because I was on the computer constantly. And that's how I learned to navigate without a mouse. Oct 24 14:22:40 good hint, I might try that on my kids Oct 24 14:23:32 lol Oct 24 14:23:49 and then install linux command line Oct 24 14:24:29 taking the keyboard is more effective, heh Oct 24 14:24:42 in a few years you kids wil see everything in matrix mode Oct 24 14:25:06 haha well he figured that out but by that time I had enough to buy my own, then I bought my own computer Oct 24 14:25:26 pfn, if your goal is total absolute control over the poor kid, yes; this is better because it forces you to learn new skills - if you manage to navigate the computer using the keyboard only, then you've earned the right to use the computer in my book Oct 24 14:25:46 tricknology, s/mode/code/ Oct 24 14:28:01 https://dpaste.de/G3F7 anyone can help figure out why the project table item can not be updated? Oct 24 14:28:35 Is there something I can do with this -> Task 'aD' is ambiguous in root project 'MyExamples'. Candidates are: 'androidDependencies', 'assembleDebug', 'assembleDefault'. Oct 24 14:28:42 semanty, asking once or twice is plenty enough, more than that is just spamming the channel, if anyone had a solution they would have offered it by now Oct 24 14:28:50 when running ./gradlew aD Oct 24 14:30:06 ravilov: that is y i send this for help after a long period, i hope new people can see that Oct 24 14:30:36 ravilov: and you really online this for quite hours, right? Oct 24 14:31:21 ravilov doesn't sleep, he's in our computers Oct 24 14:31:35 semanty, doesn't work that way, sorry Oct 24 14:31:41 and yes I am, is there a problem with that? Oct 24 14:32:10 Please get out of my computer Oct 24 14:32:40 VnM, only after I'm done with it Oct 24 14:32:43 ravilov: nothing Oct 24 14:36:33 semanty what is the problem? Oct 24 14:36:59 tricknology: the data for project can not be udpated Oct 24 14:37:16 tricknology: i checked many times, the statement should be right Oct 24 14:37:53 tricknology: there is no error, just return 0 Oct 24 14:38:15 it would be nice if you could see the sqlite statement you are generating Oct 24 14:38:31 I usually just execute sql without using android's methods Oct 24 14:40:31 semanty, http://billdoesgames.blogspot.com/2014/10/android-sqlite-and-rawquery.html Oct 24 14:40:37 semanty, could it be related to that? Oct 24 14:40:48 try to find the entries first.. test that. maybe it's with your where Oct 24 14:40:54 since you are generating that Oct 24 14:41:30 oh you have a log there, what is that string on 63? Oct 24 14:41:43 my guess is that it can't find that condition so nothing is being updated Oct 24 14:42:16 wmoran: sorry, i cannot enter into that site Oct 24 14:42:38 semanty, that so? Oct 24 14:43:09 Well, the upshot is that I found that certain SQLLite methods will not modify rows, and will not report an error either. Oct 24 14:43:14 he is not using rawQuery is he? does update use it? Oct 24 14:43:40 tricknology, I don't know if he's using rawQuery() ... didn't see reference one way or the other Oct 24 14:43:44 I usually use execSQL() Oct 24 14:43:52 Also, I don't know if that pattern extends to any other methods Oct 24 14:44:06 Didn't test any more than necessary to fix my problem Oct 24 14:44:09 do you have more than 500 entries that you are trying to update or insert? Oct 24 14:44:21 tricknology: https://dpaste.de/9ypm Oct 24 14:44:36 tricknology: no, in fact, not more than 50 Oct 24 14:44:55 wmoran: anyone to put the content in dpaste? Oct 24 14:45:01 byt you have >= 402 records? Oct 24 14:45:16 tricknology, does SQLLite have trouble modifying more than 500 rows with a single statement? Oct 24 14:45:27 not sure about modifying but inserting, yes Oct 24 14:46:08 it does? Oct 24 14:46:41 Wow ... you mean in a single transaction, or a single statement? Oct 24 14:46:48 tricknology: just a new app, the database not have that much dagta Oct 24 14:46:49 transaction Oct 24 14:46:50 data Oct 24 14:47:06 Wow ... that's a bit ridiculous Oct 24 14:47:11 Btu good to know Oct 24 14:47:17 tricknology, this makes me want to try that out as it seems kind of unprobable Oct 24 14:47:24 buuuut I don't feel like it :p Oct 24 14:47:25 https://github.com/znwabudike/AndroidPhoneDatabase/blob/master/src/com/github/znwabudike/androidphonedatabase/db/DbHandler.java Oct 24 14:47:27 line 37 Oct 24 14:47:30 is how I handle it Oct 24 14:48:04 499 at a time Oct 24 14:48:23 so it handles 499 just fine, but breaks down on 500? Oct 24 14:48:24 that is weird Oct 24 14:48:43 I think i set it 1 lower Oct 24 14:48:54 just to be a weirdo Oct 24 14:51:12 ravilov, depends, Oct 24 14:51:15 ahhh, i found this just now.. maybe there is no limit? http://stackoverflow.com/questions/7199305/sqlite-number-of-transactions-limit this guy says he can do 10mil Oct 24 14:51:42 http://www.sqlite.org/limits.html Oct 24 14:52:03 I read somewhere that it was 500 and just went with it when my code broke inserting more than 500 Oct 24 14:52:50 TextView, android:typeface="monospace" appears to no longer work when using Theme.Material ... any ideas on how to workaround anyone? Oct 24 14:52:58 semanty if it's only your update method then I would check your syntax or variables. can you first check if the entry exists? can you add to the table? Oct 24 14:53:01 tricknology: http://stackoverflow.com/a/14263897/2788674 Oct 24 14:53:08 i'm going to be gone for about 2 hours Oct 24 14:53:30 there we go, that's what I read Oct 24 14:53:39 thanks GrecKo Oct 24 14:54:55 hi, what's the best way to simulate an htc one m8 on my mac? for web development Oct 24 14:54:57 tricknology: it does exist. i just updated data to server and at the same time update the database Oct 24 14:55:12 tricknology: after i refresh, the server has the value, Oct 24 14:55:16 what happens if I put an AdapterView in a RemoteViews in a notification? Oct 24 14:55:39 tricknology: before i refresh, the local database does not have that word Oct 24 14:55:46 udpated Oct 24 14:57:57 hey all, i have a question about this chunk from a tutorial http://pastie.org/9672656 Oct 24 14:58:20 my question is how do i get the result from like 52 into my MainActivity.java class? Oct 24 15:00:42 i mean, i can get it into a logcat by System.out.println(client.execute("myurl.com") but i don't know how to return a result or put the result into a variable. Oct 24 15:01:30 skrite http://developer.android.com/reference/android/os/AsyncTask.html#onPostExecute(Result) Oct 24 15:03:37 pfn http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Oct 24 15:03:43 Only some are allowed Oct 24 15:03:57 osi Oct 24 15:03:58 otherwise it throws some sort of exception, not sure what the exact exception is Oct 24 15:03:59 osipovas, I know which ones are allowed, and the adapterviews are Oct 24 15:04:01 osipovas: thanks ! Oct 24 15:04:11 osipovas, the question is, what happens to adapterviews in *notifications* Oct 24 15:04:32 Well a notification can have custom views, right? Oct 24 15:04:38 no Oct 24 15:04:43 Set remoteviews or w/e Oct 24 15:04:43 it can only have remotableviews Oct 24 15:05:44 ok solved that as well... to get monospace on material you also have to set fontFamily="monospace". but then you wont get monospace on 2.x :') Oct 24 15:05:48 remotableviews? Oct 24 15:05:55 osipovas, once again, the question is what notifications do with remoteviews Oct 24 15:05:56 er Oct 24 15:05:58 http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomNotification Oct 24 15:05:59 adapterviews Oct 24 15:06:07 you're pretty thick Oct 24 15:06:25 wmoran: how could i show the sql statement used by contentprovider in the log> Oct 24 15:06:32 the cost to experiment with a notification is really small? Oct 24 15:06:40 uh, not for an adapterview Oct 24 15:06:46 an adapterview requires a lot of service plumbing Oct 24 15:07:28 and of course, it seems like no one has ever tried putting an adapterview into a notification... Oct 24 15:07:32 wmoran: or the raw sql, how to use, i searched with nothing returned Oct 24 15:09:59 pfn, ooc are you trying to get Widgetish functionality out of Notifications since no more lockscreen widgets or something completely different Oct 24 15:10:37 osipovas, no, I'm trying to work around a problem I'm having with text truncation in my notification Oct 24 15:10:51 and what I want to do is basically impossible in a textview Oct 24 15:11:17 osipovas, https://lh3.googleusercontent.com/-wwY-QgD1HNg/VElEXYTFU8I/AAAAAAAAMZA/cnoUCp7bglU/w368-h589-no/14%2B-%2B1 Oct 24 15:11:35 osipovas, it always shows the beginning lines rather than the end Oct 24 15:12:08 second or first notification? Oct 24 15:12:14 first Oct 24 15:12:26 an adapterview would fix the problem... Oct 24 15:12:34 but only if it works in notifications... Oct 24 15:16:44 and of course, looks like no one has ever tried Oct 24 15:21:16 I have a feeling it won't work; looking at: setRemoteAdapter Oct 24 15:21:44 mentions something about a widgetid Oct 24 15:21:48 at least in the compat library Oct 24 15:28:54 semanty, Use execSQL() for statements that modify data. Just give it a String with the SQL Oct 24 15:29:10 You'll have to do your own sanitation of data, though, it doesn't take parameters Oct 24 15:30:01 wmoran: how do i put the content values? Oct 24 15:30:27 String sql = "UPDATE" + " " + ProjectContract.TABLE + " " + "SET" + " " + values + " " + "where" + " " + where; Oct 24 15:30:30 Make a StringBuilder and do append() to create a valid SQL statement Oct 24 15:30:33 db.execSQL(sql) Oct 24 15:30:53 For the record, that is not a recommended method ... it's vulnerable to SQL injection Oct 24 15:31:02 Unless you use it carefully Oct 24 15:31:48 hi all Oct 24 15:31:50 wmoran: i firstly want to approve the data can be updated Oct 24 15:32:00 Anyone ever developed a chat app for android? Oct 24 15:32:04 If so please help me >.< Oct 24 15:33:09 maybe the whatsapp devs are in this chan Noobda Oct 24 15:33:19 That would be nice :) Oct 24 15:34:01 hey, whenevr i run emaulator , it says " ./emulator -avd AVD_for_Nexus_One_by_Google Oct 24 15:34:04 NAND: could not write file /tmp/android-killer/emulator-j9AMvv, File exists Oct 24 15:34:06 what is your problem Noobda Oct 24 15:34:16 I don't understand why to use XMPP protocol for developing a chat application Oct 24 15:34:42 I mean I can simply connect the device to the server's database and periodically check for messages Oct 24 15:35:11 because xmpp is a protocol that has been designed for that Oct 24 15:35:36 and is more robust than your way of doing Oct 24 15:35:47 Well the thing is I cannot install xmpp on my servers Oct 24 15:36:14 ok Oct 24 15:36:18 What can be a problem with my way? Oct 24 15:36:21 then do what you can do Oct 24 15:46:38 Noobda, what other protocol would you use if not that one? What are its benefits of comparable protocols? Why not use just standard HTTP? Oct 24 15:47:37 yeah I'm gonna use HTTP Oct 24 15:47:50 But I'll have to check the server for new messages every 100ms Oct 24 15:48:30 What's really wrong with native (C/C++/ASM) programming on Android simply because I prefer those languages? https://developer.android.com/tools/sdk/ndk/index.html Oct 24 15:48:37 That might cause some problems (I'm not even sure what problems) Oct 24 15:48:43 ok, the end result, notifications do not support adapterviews Oct 24 15:48:44 :( Oct 24 15:49:08 there's no way to notify data set changed, no way to force the initial view render to poll the remoteviews service Oct 24 15:49:29 pfn is that for me? :O Oct 24 15:49:35 no Oct 24 15:49:36 Shoosweetleafs there is nothing wrong with going native on Android just have a rationale for it. More than I prefer C++ Oct 24 15:49:47 Noobda, why would I be talking to you Oct 24 15:49:58 okay Oct 24 15:50:06 I do my secure stuff, client code for certificates, and keys in native Oct 24 15:54:07 I'm sure stuff like OpenGL is a lot better in C/C++. Oct 24 15:54:28 opengl is all done in GL Oct 24 15:54:33 so it doesn't matter that it's c++ or java Oct 24 15:54:33 wmoran: thank you so much, i figure it out. it is because i use intent to pass two table's id, and the id variable both refers to "_id", i put prefix, that is OK now Oct 24 15:55:17 wmoran: that means, i want to use project's _id, but actually i used step's _id, hope this can also helps others Oct 24 15:56:17 The problem is so often somewhere other than where you're looking Oct 24 16:01:54 hi Oct 24 16:04:05 BaluderBaer: hi Oct 24 16:04:25 haaaay Oct 24 16:15:21 hi Oct 24 16:17:38 the app i need to build will make many request to our server for JSONArray objects. I should be able to build just one class that can handle this instead of using an AsyncTask in every activity, right? Oct 24 16:20:40 hi Oct 24 16:20:48 skrite does that sound right to you? Oct 24 16:20:53 is android dev a good skill to learn? Oct 24 16:21:03 osi Oct 24 16:21:03 keep things DRY Oct 24 16:21:17 I guess time to haxor with staticlayout Oct 24 16:21:25 osipovas: sounds like it would be keeping it more DRY, yes (i am coming here from the ruby and rails world) Oct 24 16:21:59 osipovas: just having the devil of a time figuring out how to do that. Oct 24 16:23:05 hmm, now do I get the width of the notification tray? Oct 24 16:27:55 skrite: http://www.therealjoshua.com/2012/09/android-architecture-structuring-network-calls/ Oct 24 16:29:50 Why not one async in your activity that calls methods from your json class? Oct 24 16:30:52 you coul do something liek this: http://stackoverflow.com/questions/15487807/android-development-having-an-asynctask-in-a-separate-class-file Oct 24 16:35:14 ..that is a nice async task Mrdarknezz, thanks for the link Oct 24 16:35:40 hey , when i run lollipop emulator(4.X versions work fine) ,it ./emulator -avd AVD_for_3_7_WVGA_Nexus_One Oct 24 16:35:42 qsSegmentation fault (core dumped) Oct 24 16:36:02 you using NDK? how are you getting a seg fault? Oct 24 16:37:21 Nope the usual sdk , with all the same configurations same as 4.x avd's Oct 24 16:37:31 have you tried a different device? Oct 24 16:38:10 dat dere is a memory access vi-o-layshun Oct 24 16:38:51 AVD_for_5_1_WCGA is the other one that i tried Oct 24 16:40:24 Mrdarknez: thanks for the link ! Oct 24 16:41:06 tricknology__: yes, that was kinda the issue, because i will likely have lots of activities, so lots of Async classes. Oct 24 16:42:17 ugh, notification_panel_width isn't documented Oct 24 16:42:19 then does it really matter if the activity is in your class or in your activity? Oct 24 16:42:48 tricknology__: good point Oct 24 16:44:45 the resource MrDarkneez gave is an example of a good design pattern, but I think what you want in the end is good clean code taht is easily readable, if you use that same taska lot in different activities, I’d say put it in a class. If not, then the activity is fine unless you have a lot of other stuff goign on in there Oct 24 16:47:51 I am so stupid.. spent 15 minutes trying to figure otu why my app wasn’t displaying logcat messages. I was using the signed apk X| Oct 24 16:48:25 tricknology__: ok, cool Oct 24 16:58:04 hi Oct 24 17:02:45 much nicer pull to refresh Oct 24 17:06:59 meh https://github.com/castorflex/PlayServicesStrip-plugin Oct 24 17:07:16 why the hell couldn't google have done this by now Oct 24 17:08:07 nice find Oct 24 17:08:20 what if I need the whole thing huh! Oct 24 17:08:21 huh! Oct 24 17:08:34 jk, I have no idea what that is Oct 24 17:08:50 you have no idea what play services is? Oct 24 17:09:03 how do you develop apps? Oct 24 17:09:05 that was not a link to play services Oct 24 17:09:06 smartass Oct 24 17:09:28 that was a link to the "stripping down of play services plugin" Oct 24 17:09:38 Because why wouldn’t you need your app to do all the things? Oct 24 17:10:30 tricknologic Oct 24 17:10:32 :D Oct 24 17:10:37 that'll be $10 Oct 24 17:12:36 10 doll-hairs? I think I can do that Oct 24 17:13:22 double pun Oct 24 17:13:41 i would like Android to call GLSurfaceView.onSurfaceChanged() on my request. [so that i can load appropriate resources (in opengl thread) as per new configuration] [note: "setRenderer" can only be called once -- doc] Oct 24 17:13:46 I spent time to connect a bq device with android studio to use it to debugging, if someone have problems with this, let me know to help you. Oct 24 17:14:06 post about it on SO josemiguelgalvan Oct 24 17:14:11 get rept! Oct 24 17:14:13 oka Oct 24 17:14:41 ^ Oct 24 17:15:18 why does the paypal app need sms / calendar permissions ? Oct 24 17:15:20 http://thepcspy.com/read/paypal-permissions-microphone-camera-photos/ Oct 24 17:15:45 * g00s still asserts: android permission system is totally busted Oct 24 17:15:54 it’s jacked Oct 24 17:16:07 people are paranoid as it is.. permission system doesn’t help Oct 24 17:16:28 we had a lady call in freaking out because it “can take pictures and record audio Oct 24 17:17:34 are there Android devices out there with no SD card? or emulated SD card? Oct 24 17:18:07 I want to copy a file from raw to sd, or some place where I’m allowed to write it but I’m not sure if SD storage is generic enough.. anyone know? Oct 24 17:18:50 maybe I should rtfm some more.. http://developer.android.com/training/basics/data-storage/files.html Oct 24 17:19:09 my lollipop emulator doesn't work armeabi version but atom-intel-x86 works fine,is it ok to test app on x86 version only ? Oct 24 17:22:51 ? Oct 24 17:22:54 tricknology, "are there Android devices out there with no SD card?" MotoG Oct 24 17:23:04 killer depends; are you using NDK? Oct 24 17:23:22 thanks kuldeepdhaka Oct 24 17:24:34 kuldeepdhaka, tricknology__, to my knowledge all android devices out there either have either an emulated card (a dedicated part of the internal storage) or a real SD card slot Oct 24 17:24:45 i see peoples dont even look at permission and just install them. they are not aware about what possibly could go wrong Oct 24 17:25:07 people do look at permissions Oct 24 17:25:20 there's no such thing as "people don't do XYZ" Oct 24 17:25:22 osipovas: no Oct 24 17:25:39 Ravenheart, tricknology my note was just to for SD card Oct 24 17:25:53 what? Oct 24 17:26:10 ravilov, ^ Oct 24 17:26:31 killer should be fine? Oct 24 17:26:40 Ravenheart, :) Oct 24 17:27:03 i've started reading an android book Oct 24 17:27:06 so far so good Oct 24 17:27:12 and android studio is much better than eclipse Oct 24 17:27:21 NO. Oct 24 17:27:22 osipovas: you mean it should work fine? Oct 24 17:27:22 (but still no where near as good as VS) Oct 24 17:27:34 enjoy your light reading, then when you're done head over to d.android.com to get some ACTUAL information :p Oct 24 17:28:06 killer yes Oct 24 17:28:51 one question about http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html Oct 24 17:29:00 they have app:theme="@style/ThemeOverlay.AppCompat.ActionBar" /> Oct 24 17:29:16 how does it work when the theme attribute isn't in android namespace, but app: ? Oct 24 17:29:35 Ravenheart, its all java. except with its own UI and xml feature to ease gui development. and thats it. (and yea optimized for phone) Oct 24 17:29:48 you include that up in the parent of the XML Oct 24 17:29:54 ending with res-auto Oct 24 17:30:11 well my main language is C# and desktop apps Oct 24 17:30:21 moving over to java feels painful Oct 24 17:30:29 mostly because of the lack of good tooling Oct 24 17:30:38 otherwise i must say android feels nice Oct 24 17:30:39 Eclipse does this for me when I bring up suggestions for the element that has these attrs applicable Oct 24 17:30:44 Is there a way to listen for a URL hash change on a WebView (e.g. index.html -> index.html#hash). onPageStarted() only works for URLs that reload the page. Oct 24 17:30:51 g00s, you define an extra namespace in your xml? Oct 24 17:30:55 * kuldeepdhaka feels unproductive in java. (c was better) Oct 24 17:30:58 Odaym thanks - but I still don't get how it works. if i write a custom view, my ctor would read those custom attributes and do something Oct 24 17:31:15 in this case though, its just the toolbar not a custom view Oct 24 17:31:15 your ctor can still get to that data Oct 24 17:31:32 Ravenheart: lack of good tooling?:P you must be using eclipse Oct 24 17:31:44 oh Oct 24 17:31:45 read up Oct 24 17:31:46 lol Oct 24 17:32:15 so in the example, are they assuming you will extend Toolbar? Oct 24 17:32:29 and then do something with that app:theme attribute? because it doesn't seem from the example Oct 24 17:32:47 Ravenheart, Android till now i felt is mostly for nui (utilizing GNU/Linux and JVM) Oct 24 17:34:02 Ravenheart, i never felt lack of tooling. afaik theirs `adb`, `ndk-build`, `android` etc. and that all required Oct 24 17:34:41 Odaym here is another example https://github.com/google/iosched/blob/master/android/src/main/res/layout/toolbar_actionbar.xml#L23 Oct 24 17:34:46 g00s, the styling attributes are defined in the support lib already (through values/attrs.xml or similar) and are used inside the lib already, you don't need to extend anything, this is just a way to actually use them Oct 24 17:35:14 (no idea if that made any sense) Oct 24 17:35:15 is what allows them to do that Oct 24 17:35:20 xmlns:iosched="http://schemas.android.com/apk/res-auto" Oct 24 17:35:21 xmlns:iosched="http://schemas.android.com/apk/res-auto" Oct 24 17:35:22 oops Oct 24 17:35:35 that's how understand it, dummy as it may sound Oct 24 17:35:43 yes except for app:foo="bar" you need xmlns:app ;) Oct 24 17:35:45 I put that line, then I can do custom:etc.. Oct 24 17:36:08 yes, i understand the xml decl part... what i don't understand is , how are these 'not android' namespaces and attributes being used Oct 24 17:36:20 cause you add them to your attrs Oct 24 17:36:38 g00s, through the declarations in attrs.xml Oct 24 17:36:46 which get translated into R.attr.whatever Oct 24 17:36:51 Oct 24 17:36:51 Oct 24 17:36:56 now you can do app:typeface Oct 24 17:37:00 or app:whatever Oct 24 17:37:22 granted the element's type is com.your.app.TypefacedButton Oct 24 17:37:43 sure i've done that before ... ok let me recheck this all, i think my brain needed jumpstart Oct 24 17:37:44 g00s, basically, to you it might be "just a toolbar" but in the support lib it is probably a view just like any other Oct 24 17:38:05 see the element's type? it isn't Oct 24 17:38:11 it's com...........Toolbar Oct 24 17:38:21 das it Oct 24 17:39:23 g00s, well let me know if you need some cables, I think I might have some in my trunk :p Oct 24 17:39:33 hahah Oct 24 17:39:54 * g00s imagines ravilov crossing them, making sparks, while approaching menacingly Oct 24 17:40:02 with a twisted laugh Oct 24 17:40:08 >:-] Oct 24 17:40:28 stand still, it won't hurt at all Oct 24 17:41:14 yes, finally, my notification looks right Oct 24 17:42:29 WELL RIGHT ISN'T GOOD ENOUGH! Oct 24 17:42:38 * Odaym encourages Oct 24 17:44:11 later Oct 24 17:44:48 later Oct 24 17:47:26 to connect any device that is not listed in Android Studio (ID Vendor) to debugging in OSX with Eclipse or Android Studio http://stackoverflow.com/questions/24685768/lg-device-not-listed-in-adb-devices/26553386#26553386 Oct 24 17:48:08 ravilov : iosched:popupTheme="@style/ActionBarPopupThemeOverlay" Oct 24 17:48:16 there is no attr popupTheme in iosched :| Oct 24 17:48:51 Thanks Oct 24 17:49:40 g00s, I'm not following, is that the error you're getting or your own statement? Oct 24 17:49:55 ravilov no, i'm still confused. Oct 24 17:50:22 you've done custom views with custom attributes before? Oct 24 17:50:25 so they declare in xml res-auto this ns, iosched: ya ya this is easy stuff Oct 24 17:50:52 but where is this popupTheme coming from, and how is it being handled since its not in the android: ns ? Oct 24 17:51:16 you welcome! Oct 24 17:51:28 again - it is coming from attrs.xml that's inside the lib Oct 24 17:51:51 then why isn't it android:popupTheme ? Oct 24 17:52:05 because libs can't declare attributes in the system (android) namespace Oct 24 17:52:10 oh ! Oct 24 17:52:17 that's for framework only Oct 24 17:52:34 did it click finally? :) Oct 24 17:52:42 ok so that part is out of the way, but how come it not then appCompat:popupTheme ? Oct 24 17:53:01 to my understanding you get to name it whatever you want Oct 24 17:53:15 so the xmlpull parser inflating must ignore the ns Oct 24 17:53:24 you declare xmlns:whatever="http://..." at the beginning, then just use whatever:blahblah="xxx" Oct 24 17:53:45 no, it doesn't ignore the namespace Oct 24 17:54:05 thing is, xmlns:android="..." is just a shorthand for the full namespace which in reality is "http://..." Oct 24 17:54:31 so you get to declare your own shorthand, the xml inflater/parser will translate that to full URL anyway Oct 24 17:54:54 and that's the only thing that matters, that the custom attributes fall into that namespace that ends with "res-auto" Oct 24 18:01:58 any more questions? Oct 24 18:02:47 hmm Oct 24 18:03:39 * g00s reading source Oct 24 18:04:27 think of what you're using as a prefix (prefix:attr="value") as a kind of an "alias", what matters is the URL that hides behind it Oct 24 18:04:34 technically, the system namespace doesn't *have* to use the "android" prefix, you can name it whatever you want, it's just a convention to name it "android" for clarity Oct 24 18:04:43 still, why is it app:theme rather than android:theme ? Oct 24 18:05:00 thats standard android: stuff Oct 24 18:05:20 again, only the base framework code is allowed to use the system namespace Oct 24 18:05:32 app:theme refers to the support library's attribute, not the system one Oct 24 18:05:52 all attributes are in a global namespace Oct 24 18:05:59 if android definex xxx, you can not Oct 24 18:06:02 Anyone can use any attribute, system or not Oct 24 18:06:09 It's most likely just for consistency Oct 24 18:06:12 g00s, um yes you can Oct 24 18:06:32 I can easily define my own custom attribute that I happen to call "layout_width" Oct 24 18:06:38 wat Oct 24 18:06:40 And no, system attributes does not conflict with app attributes Oct 24 18:07:04 wow, i remember having problems with that Oct 24 18:07:52 well, not sure how else to put it, let me know when it clicks for you I guess :p Oct 24 18:08:00 ravilov thanks :) Oct 24 18:08:19 yeah, i remember defining at attr that collided with something in android Oct 24 18:08:33 and i thought i could by not havint it top level, but in Oct 24 18:08:44 That might be what you remember, but that's not what was happening Oct 24 18:08:54 ok Oct 24 18:10:24 hi Oct 24 18:10:51 g00s, np Oct 24 18:10:57 * ravilov goes back to battling with his layout Oct 24 18:11:23 I'm getting this problem with a scala project: https://code.google.com/p/android/issues/detail?id=22586 Oct 24 18:11:39 can't install the apk Oct 24 18:11:52 on android 2.3.3 Oct 24 18:12:03 not many scala users here Oct 24 18:12:23 doesn't matter, I'm having a jvm related problem Oct 24 18:13:21 I can't install an apk, because a library I use has too complex interface hierarchies Oct 24 18:13:42 still kind of out of scope here, people here only focus on apps; but good luck, maybe someone will be able to pass some advice Oct 24 18:13:55 I'm trying to install an app Oct 24 18:13:58 SimonVT at http://developer.android.com/reference/android/widget/Toolbar.html none of the attributes like popupTheme are listed .. i think thats why I am confused Oct 24 18:13:59 I'm also developing it Oct 24 18:14:51 shouldn't all these things like toolbar_titleMarginTop be in the documents ? Oct 24 18:15:39 g00s, could be an attribute specific to the support lib and not to the core framework? just guessing Oct 24 18:15:41 https://gist.github.com/pfn/a8e70e5ec43a6abdd099 Oct 24 18:15:44 well, that was kinda painful Oct 24 18:15:59 I was checking the "inherited xml attributes" but it's not listed there either Oct 24 18:16:31 appify on #android is asking: Good evening. Since Travis CI cannot offer to generate the APK of our GItHub project and upload it to a GitHub folder or another static link, can anybody here please be so nice and recommend another service to us? Oct 24 18:16:40 he cannot join here without registering Oct 24 18:16:49 man, these new java7 (8?) lambda methods/objects look so ugly Oct 24 18:18:34 i guess if you're willing to help appify, pm/query him Oct 24 18:18:37 ravilov, you just have a bad opinion of what good code looks like :p Oct 24 18:18:45 thanks Oct 24 18:18:56 then have him register... Oct 24 18:19:03 no one's gonna pm Oct 24 18:19:23 azizLIGHT, might be a better idea for him to simply register, it's not that difficult; also who is this Travis CI and why can't they upload stuff on github Oct 24 18:19:26 ? Oct 24 18:19:27 pfn, .flatMap (m => Seq(m, "\n")).init:_*) Oct 24 18:19:33 how is that good/pretty? :p Oct 24 18:19:44 what is this :_* part? Oct 24 18:19:52 the :_* is varargs expansion Oct 24 18:19:58 ravilov OK, then if they were appcompat specific they could have but the documentation for all the attributes here instead ;P http://developer.android.com/reference/android/support/v7/widget/Toolbar.html Oct 24 18:20:02 ravilov: ok, relayed the message. lets see if he does it Oct 24 18:20:58 g00s, agreed, it should be eithere here or there Oct 24 18:21:01 but it's nowhere Oct 24 18:21:02 strange Oct 24 18:21:23 maybe it's one of them "hidden", "undocumented" ones :p Oct 24 18:21:41 pfn, oh wow Oct 24 18:22:08 pfn, wait... that's not even java! Oct 24 18:22:15 ravilov, no one ever said it was Oct 24 18:22:28 yep, no one did, I just assumed Oct 24 18:22:29 silly me Oct 24 18:22:38 no wonder it looks ugly :p Oct 24 18:22:50 you just have a bad opinion of code Oct 24 18:22:59 all these statements with no ; at the end make me feel uncomfortable Oct 24 18:23:14 yeah, ;, the epitome of ugliness Oct 24 18:23:29 pfn: do you use scala for android app development? Oct 24 18:23:33 pippijn, yes Oct 24 18:23:44 looks like he's in luck, just found a victim :p Oct 24 18:24:00 have you seen the LinearAlloc issue? Oct 24 18:24:05 no Oct 24 18:24:11 but I also don't support 2.2 Oct 24 18:24:14 2.3.3? Oct 24 18:24:20 haven't seen it, no Oct 24 18:24:27 you support that? Oct 24 18:24:28 2.3, haven't seen it Oct 24 18:24:34 hmm ok Oct 24 18:24:47 I test it in the emulator Oct 24 18:24:50 none of my users has a problem with 2.2 that's reported Oct 24 18:24:51 I don't have a 2.3.3 device Oct 24 18:25:19 or 2.3 Oct 24 18:25:31 hmm ok Oct 24 18:25:59 5MB classes.jar (after proguard) Oct 24 18:25:59 https://groups.google.com/forum/#!topic/scala-on-android/Ac3ToKKXUdg Oct 24 18:26:01 I guess he's run into it Oct 24 18:28:02 wow, even the framework.jar is not that large Oct 24 18:28:40 https://paste.xinu.at/WBZ9/ Oct 24 18:29:05 https://paste.xinu.at/WBZ9/#n3824 Oct 24 18:29:50 3777 classes Oct 24 18:30:11 oh, I can get rid of instareloader, I don't use that Oct 24 18:30:20 "The limit seem to have been 5MB in Gingerbread. It was bumped up to 8MB for an ICS patch" Oct 24 18:30:26 maybe minSdk = 16 ! Oct 24 18:30:46 16? Oct 24 18:30:59 yeha, who is using 3.x ? Oct 24 18:31:03 nobody Oct 24 18:31:17 but a significant number of people use 2.3 Oct 24 18:31:21 ICS is dying, but still minSdk=15 should be OK Oct 24 18:31:22 unfortunately Oct 24 18:31:23 not significant enough to care Oct 24 18:31:57 don't be hatin Oct 24 18:32:07 * ravilov uses 2.3.7 Oct 24 18:32:09 pippijn i wouldn't be surprised, if GB does in fiery explosion once Android One takes off Oct 24 18:32:18 http://developer.android.com/about/dashboards/index.html Oct 24 18:32:21 then cheap good new phones will be available Oct 24 18:32:22 Android… One? Oct 24 18:33:01 .compareTo(iPhone 5C)? Oct 24 18:33:06 tricknology__ like http://origin-www.businessweek.com/articles/2014-10-21/googles-big-plans-for-low-cost-android-one-phones-in-india Oct 24 18:34:04 ravilov, shitty phone Oct 24 18:34:13 ravilov, no wonder you think anything nice looks ugly, because you don't have anything nice :p Oct 24 18:34:20 I get the new moto x next week, yay Oct 24 18:34:26 pfn, this is purely by choice though Oct 24 18:34:34 ravilov, that doesn't make it any better Oct 24 18:34:39 2.3 looks like ass Oct 24 18:34:47 and your opinion is practically nullified by prefering it Oct 24 18:35:01 um ok Oct 24 18:35:02 sure Oct 24 18:40:21 ravilov 2.3 is so old ... and probably has tons of security bugs that aren't patched Oct 24 18:40:49 you will have to move up sometime soon, whether your li-ion battery goes into a coma, or whatever Oct 24 18:41:57 even if the battery goes out there will stil be batteries otu htere Oct 24 18:42:10 if its replaceable i guess Oct 24 18:42:16 I had someone call me about an evo 4g the other day -.- Oct 24 18:42:27 is that the one with more wifis ? Oct 24 18:42:30 g00s, it is very much replacable, not to mention I already have a spare Oct 24 18:42:41 4 wifis instead of 3 Oct 24 18:42:46 not that it's anywhere near crapping out, still lasts me 2 days solid Oct 24 18:42:49 haha, i remember that video Oct 24 18:42:56 i think somebody from tmo did it Oct 24 18:42:59 lol Oct 24 18:43:11 http://www.youtube.com/watch?v=FL7yD-0pqZg Oct 24 18:43:33 haha Oct 24 18:43:41 sprint messed up with their 4g service btw Oct 24 18:43:49 it’s crap.. sprint service is crap in general Oct 24 18:43:57 g00s, and yes I'm aware 2.3 is old but it performs really well for me and I have no desire to upgrade (software or hardware wise), but I'm also aware I'll have to make the switch eventually, just getting mentally ready for it, it's not easy y'know :p Oct 24 18:44:04 what, what is that ? is it an iphone ? :) Oct 24 18:44:24 “i don’t care” Oct 24 18:45:02 hehe Oct 24 18:45:34 * JacobTabak looks around Oct 24 18:45:56 GB was so weird, it was between froyo and HC which had totally different design / colors / styles Oct 24 18:46:09 some bastard child Oct 24 18:46:55 JacobTabak did blog stand up to scrutiny :P :) ? Oct 24 18:47:00 lol I just realized that google’s stats don’t include 3.0 Oct 24 18:47:10 are they trying to erase history? Oct 24 18:47:14 g00s, not that I care, I have my own system theme :p Oct 24 18:47:17 g00s i haven't really publicized it Oct 24 18:47:28 just shared it with a few ppl Oct 24 18:48:06 ravilov so anyhow, you are dealing with a huge bug surface area writing for minSdk=GB Oct 24 18:48:13 tricknology__, doesn't it explain right there on the page? "platforms that take up less than 1% are not shown" Oct 24 18:48:19 but if you like pouring your energy into that, i guess fine ;) Oct 24 18:48:27 g00s, it gets worse - my minSdk is Oct 24 18:48:30 are you ready? Oct 24 18:48:31 4 Oct 24 18:48:32 :p Oct 24 18:48:44 (no I'm not kidding) Oct 24 18:49:13 I'm also not making or releasing apps for the great general public nor publishing them on play store, so yeah I can afford it Oct 24 18:50:00 0.1% ravilov :P Oct 24 18:50:13 even still, my minsdk version is 3.0 Oct 24 18:50:21 just to be a weirdo Oct 24 18:50:57 well if you've seen that remark then I'm not sure why you think they're trying to erase history or whatever Oct 24 18:51:22 I should totally drop my minSdk to 1 Oct 24 18:51:27 just to be weird Oct 24 18:51:36 I've never even seen android 1.0 in real life Oct 24 18:52:36 The oldest phone I have around here someplace is an HTC Hero, I think it's on 1.5 Oct 24 18:53:04 I have an evo and a LG cricket Oct 24 18:53:16 I have the original G1 that I flashed with 2.2 but I'm trying to get it back to 1.5 or 1.6 Oct 24 18:53:31 but why? Oct 24 18:53:36 do you dev on windows 3.1? Oct 24 18:53:39 why not? Oct 24 18:53:43 what if I do? Oct 24 18:53:50 I would give you a medal Oct 24 18:54:04 not everybody needs to be forced to fit into a mould y'know Oct 24 18:54:15 idk, it’s your device, I was just wondering what your motivation was, out of curiosity Oct 24 18:54:36 specifically for G1? because it was originally shipped with it and because I feel it works best with it Oct 24 18:54:43 it works with 2.2 as well but it's kinda sluggish Oct 24 18:54:59 I think all devices get more sluggish as updates happen Oct 24 18:55:10 happened to my evo, happened to my gfs phone, happening to my s3 Oct 24 18:55:16 why is it surprising then if I want to go back to older versions that were snappier? Oct 24 18:55:23 (but i have cyanogen so it could be for different reason) Oct 24 18:55:55 the argument is valid, I just don’t understand why you would want to, do you use this phone daily? or is it a dev phone? Oct 24 18:56:01 everything gets worse as updates come in, and yet people do update anyway and even advocate updating is good for you Oct 24 18:56:11 it's my pet phone Oct 24 18:56:47 in some cases updating is good for you.. security flaws need to be patched, but I think they expext better hardware configs out of each update Oct 24 18:57:00 until your phone drops out of the updatable frame Oct 24 18:57:17 never did any vendor-driven updating anyway Oct 24 18:57:26 don't care for it Oct 24 18:57:30 can anyone help me on this code ? https://gist.github.com/AmirHooshangi/05f06c42e4de38979de6 Oct 24 18:57:38 this code adds each "custom" to same place in the view so they overlap each other . Oct 24 18:58:01 do you want that to happen? Oct 24 18:58:03 works as designed Oct 24 18:58:28 whether they overlap or not depends on what kind of viewgroup you're using Oct 24 18:58:47 I'm still waiting for an actual question Oct 24 18:58:58 i want each view to be added after the other one Oct 24 18:59:12 then use a proper container for it Oct 24 18:59:25 linearlayout seems like an obvious choice Oct 24 18:59:41 ravilov: let me check it Oct 24 19:00:38 also you don't need to use index with .addView() Oct 24 19:00:56 in fact it is probably better if you don't Oct 24 19:01:06 Is there a way to listen for a URL hash change on a WebView (e.g. index.html -> index.html#hash). onPageStarted() only works for URLs that reload the page. Oct 24 19:03:23 faz4 waht you are doing is probably stackign them on top of eachother, no? Oct 24 19:03:45 sure takes him long to "check it" Oct 24 19:03:48 if you want them to appear in different places of what have you you need some layoutParams Oct 24 19:04:00 um no he doesn't Oct 24 19:04:35 well, for gravity, margins, padding Oct 24 19:05:06 that is all optional Oct 24 19:05:57 tricknology__: yes Oct 24 19:06:26 i want to design one form in layout.xml and fill it from DB and show it multiple times Oct 24 19:06:35 but i don't know how to do it. Oct 24 19:06:44 googling it should help Oct 24 19:06:58 use a linearlayout like ravilov said Oct 24 19:07:00 seems too trivial for google to not be able to give you an answer Oct 24 19:07:10 it will display them one after another in a row Oct 24 19:07:15 downward Oct 24 19:07:42 but.. Oct 24 19:07:44 i changed it to LinearLayout and now i have them in one row Oct 24 19:07:54 ok that’s good, right? Oct 24 19:08:09 better than before Oct 24 19:08:13 faz4, please look up docs for linearlayout, this channel is not a substitute for reading official docs Oct 24 19:08:25 ravilov: sure Oct 24 19:09:25 (controlling whether they go left to right or top to bottom is even more trivial and is clearly explained in the docs) Oct 24 19:12:06 faz4, read up on all the layouts, you probably want relativelayout or gridlayout I’m guessing.. but it’s nice to know all the layouts so that you can choose better which one you need. Oct 24 19:12:41 tricknology__: that's a good idea Oct 24 19:12:54 yes reading the docs is always a good idea Oct 24 19:13:24 Is there a way to specify which application class is used when running unit tests? (I am not using robolectric) Oct 24 19:13:31 yes Oct 24 19:13:53 public class ConverterTest extends ActivityInstrumentationTestCase2{ Oct 24 19:14:08 pieces029, application contexts are not loaded during unit tests Oct 24 19:14:15 then constructor.. public ConverterTest(){ Oct 24 19:14:16 super(Hacktivity.class); Oct 24 19:14:17 } Oct 24 19:14:22 sorry shouldnt have pasted that here Oct 24 19:14:25 ravilov: the last question, I'll have one button which binds to one action listener and each form has it, can i get it's view and check which view has fired it ? Oct 24 19:14:51 tricknology__: I don't want activities. I have a Application class that I want loaded. Oct 24 19:15:06 ah sorry, misred Oct 24 19:15:15 thanks though Oct 24 19:15:58 faz4, not sure, I don't think there's a way to get a view's parent Oct 24 19:16:31 View.getParent().getClass().getName()? Oct 24 19:16:33 you can always assign a custom ID to every button as you inflate it, then check for button.getId() Oct 24 19:16:52 tricknology__, they will all be of the same class Oct 24 19:16:57 ravilov: you know something like html forms which we pass hidden id to a form so we can get which id has called the button. Oct 24 19:17:07 tag Oct 24 19:17:16 thoughts on android studio? Oct 24 19:17:18 faz4, yes I do, android apps are not html apps though Oct 24 19:17:24 should I try it if im just starting out Oct 24 19:17:25 or tags, yes Oct 24 19:17:34 shaun413, sure Oct 24 19:17:39 ok Oct 24 19:17:49 i really dont like eclipse :/ Oct 24 19:18:04 ok Oct 24 19:18:04 I do Oct 24 19:18:14 at least for now Oct 24 19:18:18 ravilov , tricknology__ : thanks you really helped Oct 24 19:18:29 really? cool :) Oct 24 19:18:36 i want to find a way to mount my one monitor vertically Oct 24 19:19:07 ... just the right place to ask about this, huh? Oct 24 19:19:20 unless that was just a random comment Oct 24 19:19:32 maybe hoping someone has done it? Oct 24 19:20:17 http://lmgtfy.com/?q=mount+monitor+vertically Oct 24 19:21:14 I want 2 of these http://www.ergostoreonline.com/Dual-vertical-mount.aspx Oct 24 19:21:32 or one of these http://www.ergostoreonline.com/DIS-2-2.aspx Oct 24 19:22:03 I want to replace all of those with a http://www.oculus.com/ Oct 24 19:22:06 or zero of these file:///dev/null Oct 24 19:22:29 JesusFreke, what, just one? Oct 24 19:22:49 I'm not sure how you would go about strapping multiple ones to your head Oct 24 19:23:05 or how useful it would be Oct 24 19:23:16 unless you happen to have eyes on the top/back of your head Oct 24 19:23:17 maybe I have a different head for each day of the week :p Oct 24 19:24:21 when the display resolution gets high enough, I think it will actually be feasible to use it instead of monitors. i.e. have some sort of simulated multi-monitor setup. Oct 24 19:24:42 why not this? http://www.aliexpress.com/item/Google-Cardboard-Virtual-reality-Mobile-stereoscopic-Oculus-Rift-Durovis-Dive-vrase-3D/1977445899.html?af=ppc&isdl=y&src=Google&albch=Google&aff_short_key=6vYvMRFf&gclid=CJSPjIyCxsECFU5ufgodlgYAJg Oct 24 19:24:46 oh god :0 Oct 24 19:24:59 monitors? psh, try bare walls Oct 24 19:25:06 all riddled with various command-line utils Oct 24 19:25:28 is that you ravilov from earlier who does not like the mouse? Oct 24 19:25:35 Hello friends... Oct 24 19:25:42 tricknology__, correct Oct 24 19:25:50 who says I'm serious about any of this? :p Oct 24 19:26:17 is this thing for real? http://tinyurl.com/lwjg5aj Oct 24 19:26:46 i think so, there was hype about that not long ago Oct 24 19:26:55 tricknology__: https://play.google.com/store/apps/details?id=com.google.samples.apps.cardboarddemo Oct 24 19:27:33 need help, have a large json file... and i'm thinking of reading it and display in the Android UI, my question is... what's the best way to get it done, fetch it and assign it to a model or fetch it one after the other... also thinking if i should create different class and each class will be responsible to fetch there data from json... what do yu think guyz Oct 24 19:28:37 just make one big parser Oct 24 19:28:57 what's big parser? Oct 24 19:29:13 do you expect that your json data is goign to change much? Oct 24 19:29:24 hackable, you only ever come in here when you need some sort of help, how about you contribute something back instead? Oct 24 19:29:46 Yes.. is going to change as user moving from one activity to another.. Oct 24 19:30:07 I don’t even want to know Oct 24 19:30:31 Ravilov: i'm sorry for that... i do contribute Oct 24 19:30:45 Tricknology__ don't know what? Oct 24 19:32:02 actually, i'm using volley Oct 24 19:32:38 ok I have no idea about volley, my experience with JSON was to send data to a supercomputer and get calculated results back Oct 24 19:33:30 Sad! Oct 24 19:35:32 i think its weird volley never made it out of some dark corner in AOSP Oct 24 19:36:09 probably noone has time and will to maintain it publicly Oct 24 19:36:12 similar to ExoPlayer Oct 24 19:36:40 well, thats a red flag if ever :D Oct 24 19:38:52 Hey guys. I got the bug in Google Developer Console which stops me from using some APIs in my app. I posted it on stackoverflow, G+ community, android-developers forum, but no result. What would you do? Oct 24 19:44:16 uhmmm.. Oct 24 19:44:49 Is there an intent flag set when an Activity restarts because of a config change (rotation?) Oct 24 19:46:16 For example, I can check if an Activity was launched from the task manager with `(intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0`, but is there something like: FLAG_ACTIVITY_LAUNCHED_FROM_CONFIGURATION_CHANGE? Oct 24 19:51:44 So it turns out ScrollView cannot have GridView as I child. I need to have a small number 2-32 of ImageViews which scroll vertically with other views.. Do I need now to create GridLayout with 32 cells and inject ImageViews manually? It seems to be rather step behind after GridView. What options do I have? Oct 24 20:05:24 gridlayout should work, icedp. LinearLayout>ScrollView>GridLayout Oct 24 20:10:13 Can you @Inject (with Dagger, of course) into an Annotation...? Oct 24 20:10:22 er, what? Oct 24 20:10:40 explain yourself Oct 24 20:11:54 I want to make an annotation called @Bind(...keypath...) that binds the annotated function to a key path (dot-notation path of where a variable occurs in an API) but the API "controller" object needs to be created first, I was wonder if I could use injection to make that API object available Oct 24 20:12:27 *when that keypath's value gets updated, the function gets called with the changes Oct 24 20:13:00 Heyas Oct 24 20:14:09 Quick question: when porting a native app to android is it better to use the existing automake stuff with the NDK's "make-standalone-toolchain.sh" script, or to go through and add proper NDK makefiles alongside the autotools stuff? Oct 24 20:14:46 JakeWharton: What do you think, man? Oct 24 20:15:02 I don't see how that's injecting into the annotation Oct 24 20:15:21 seems like you just want to use the annotation's value to alter the injection Oct 24 20:15:57 not quite, there will be an instance of "Api" injected into the annotation Oct 24 20:16:14 the keypath parameter of the annotation determines what gets pull from the Api Oct 24 20:16:36 annotations cannot have instances of objects Oct 24 20:16:40 only value types can be used Oct 24 20:16:44 kk Oct 24 20:16:48 (primitives, strings, class references) Oct 24 20:17:00 That answers my question Oct 24 20:29:35 Is there a way to listen for a URL fragment id change on a WebView (e.g. index.html -> index.html#fragment)? onPageStarted() only works for URLs that reload the page. Oct 24 20:32:08 How do you think Google's doing the hambuger to arrow animation? Oct 24 20:32:43 jessie https://plus.google.com/+AndroidDevelopers/posts/D5xpUJt7x2m Oct 24 20:32:51 http://developer.android.com/training/material/animations.html#AnimVector Oct 24 20:34:11 not exactly sure what they do in appcompat with that api not available, its probably just animated frames Oct 24 20:35:24 JacobTabak: Awesome, thanks. Oct 24 20:36:15 on glass: how do I get rid of the indicator at the bottom of a card scroll view like in this image: http://i.imgur.com/PPGwj4O.png Oct 24 20:40:24 I'd imagine they just draw lines in appcompat Oct 24 20:40:25 And do math Oct 24 20:41:27 /quit Oct 24 20:41:40 you quit Oct 24 20:42:16 pfsh Oct 24 20:42:17 math Oct 24 20:42:20 so overrated Oct 24 20:42:44 any reason that this string from our api server cannot be converted to a JSONArray ? http://pastie.org/9673404 Oct 24 20:43:06 because it's not an array. Oct 24 20:43:51 so it needs to be a JSONObject or somesuch? Oct 24 20:44:28 seems reasonable Oct 24 20:44:43 can I use Android Studio to submit apps to the store currently? Oct 24 20:44:48 ok, thanks Oct 24 20:45:00 JakeWharton: i need help, have a large json file... and i'm thinking of reading it and display in the Android UI, my question is... what's the best way to get it done, fetch it and assign it to a model or fetch it one after the other... also thinking if i should create different class and each class will be responsible to fetch there data from json... what do yu think guyz Oct 24 20:45:02 because Eclipse is refusing to work Oct 24 20:47:18 what does the IDE have to do with the publish process? Oct 24 20:53:48 Ive never used eclipse to publish apps.. Oct 24 20:54:01 you mean signing APKs? Oct 24 20:54:42 hackable, fetch the whole thing and create an object from it.. or an array of object Oct 24 20:55:07 depending on the size, maybe prefetch if you can predict what you’ll need Oct 24 20:55:22 (if your UI relies on the results) Oct 24 21:01:01 ok. thank Oct 24 21:06:25 Hey , i used this " startActivity(new Intent("android.intent.action.MAIN"))" to go back to main activity, but it instead of going back to main activity shows options Oct 24 21:10:46 mafiaboy: a) that's starting every activity on the system which handles MAIN (everyone with a launcher icon) b) you probably want finish() Oct 24 21:11:02 offering to start* Oct 24 21:11:17 finish(); should work ? Oct 24 21:21:25 save Oct 24 21:21:44 ( sorry wrong window ) Oct 24 21:22:30 * sq saves just in case Oct 24 21:40:06 Hey guys, I'm trying to use android's built-in face detection. My phone supports face detection, but onFaceDetection() always receives a 0-length array of faces. Any idea why? Is it possible to detect faces with the back-camera? Oct 24 21:44:10 paste some code, and your question(s) is/are kinda.... Oct 24 21:45:26 is this a human based face detection, or all faceable objects Oct 24 21:52:21 I have a strange question Oct 24 21:52:30 that's all. Oct 24 21:53:48 no but seriously, is there a way I could find out how much time it takes between the moment where the code that runs "take picture" runs and the moment where the picture is taken is? Oct 24 21:55:11 also can I be running a separate thread doing a certain task while I'm in camera mode? Oct 24 22:02:13 cant you use time? and you can do seperate threads anytime you want Oct 24 22:08:09 what about the camera thread acting upon something that came up in the other thread? Oct 24 22:09:02 well the camera will be on the main thread Oct 24 22:18:23 Odaym: When you call takePicture, there's a shutter callback as well as a RAW and a JPEG callback. Between timing those and the time of the call to takePicture, you should be able to get what you need. Oct 24 22:19:13 well I wouldn't know what to do with the amount of time if I got it, what I really need is to know whether I can catch an event at an exact moment Oct 24 22:20:02 well I should be trying this instead of asking Oct 24 22:20:46 yes, as your asking just leads to different questions Oct 24 22:33:36 Hey all Oct 25 00:04:22 ayyy Oct 25 00:19:38 The Fonz? Oct 25 00:27:22 Yep! Oct 25 00:28:51 http://pastie.org/9673770 content_view has a zero-width after the activity's onCreate does a setContentView(R.layout.activity_main) This FrameLayout by all rights should be the full-size of the view... anything obviously wrong? Oct 25 00:30:04 This is from the project template with a DrawerLayout Oct 25 00:31:51 does sqlite statement binding start at 0 or 1 Oct 25 00:31:59 and how do you do it with autoinc primary key Oct 25 00:32:03 NULL, ?, ? Oct 25 00:34:59 should prepare your question better Oct 25 00:37:32 explodes, yes, oncreate doesnt say hey everything is computed Oct 25 00:40:06 hey guys, my apps json file is local, thus when someone opens the app on a new device their information is lost. Can i upload the json file using google play services? or do i need a server? Oct 25 00:43:35 jubjub: I googled and found this: http://stackoverflow.com/questions/7109372/include-local-json-file-in-eclipse-android-project Oct 25 00:45:02 this isnt the same thing TacticalJoke. What i mean is for example the json contains things specific to the user, if I use google+ login can i maintain that json, or do i require to upload/download from a server every time Oct 25 00:45:18 anyone used freetype or related library to draw text in JNI on GLSurfaceView? help regarding which version of opengl it support, and feedback about it Oct 25 00:45:23 google has a backup service Oct 25 00:45:41 (im using OpenGL ES 2.0) Oct 25 00:46:44 If I'm using DrawerLayout, do my fragments that go into that drawer need to be of type android.support.v4.app.Fragment? Oct 25 00:47:10 explodes, it can be whatever you want Oct 25 00:47:21 That's what I thought Oct 25 00:49:59 hey Oct 25 00:52:32 What the crap mang Oct 25 00:53:59 when i replace a FrameLayout with a fragment using FragmentTransaction, the FrameLayout just becomes "the wrong color" Oct 25 00:54:28 FrameLayout is red by default, the new Fragment is green, but FrameLayout turns dark grey Oct 25 01:00:16 help Oct 25 01:00:29 https://developer.android.com/reference/com/google/android/gms/games/Player.html Oct 25 01:00:41 how do I actually get the player id? Oct 25 01:00:49 What is the code..? Oct 25 01:03:16 WHAT Oct 25 01:03:24 Do you mean the id of the Player in XML? Oct 25 01:03:38 What? Oct 25 01:03:43 No of course not you mean the registered device id? Oct 25 01:04:02 there is a getPlayerId() Oct 25 01:04:05 but WHAT.getPlayerId() ? Oct 25 01:05:44 myPlayer Oct 25 01:05:50 myPlayer.getPlayerId() Oct 25 01:05:51 How do I get myPlayer? Oct 25 01:06:09 idk man did you read the documentation or related tutorials? Oct 25 01:06:16 no tutorials Oct 25 01:06:21 docs are just an api listing Oct 25 01:09:01 God dammit, i've been working on this fragment bs for at least 3 hours now Oct 25 01:09:15 the whole project was supposed to take maybe 20 Oct 25 01:09:35 20hrs, good time then Oct 25 01:19:51 "We have reviewed your appeal and will not be reinstating your app. This decision is final and we will not be responding to any additional emails regarding this removal." Oct 25 01:19:52 :'( Oct 25 01:21:23 stop promoting badness Oct 25 01:28:05 RobertClarke: What did you do wrong? Oct 25 01:28:25 Not sure, have had the app up since last year, just randomly got taken down for spam keywords yesterday. Oct 25 01:29:50 what is a good external bluetooth keyboard for android developers? Oct 25 01:30:08 I need caps -> ctrl on the keyboard. and ctrl-[ or caps-[ sends escape Oct 25 01:30:11 for vim Oct 25 01:30:26 also, I need a keyboard that doesn't do: tttttthhhhiiiiiiiiiissss Oct 25 01:32:54 newbie dev here, how come there are no samples for api 21? do they usually ship later? Oct 25 01:33:37 you sure? Oct 25 01:38:34 RobertClarke: http://www.reddit.com/r/androiddev/comments/2k5z9s/this_is_how_google_kills_your_app/ Oct 25 01:39:10 Yup Oct 25 01:39:16 That's $2k/mo out the window :/ Oct 25 01:39:17 fucking google Oct 25 01:39:23 bends you over at every turn Oct 25 01:39:27 It's your third warning? Oct 25 01:39:40 no Oct 25 01:39:40 first Oct 25 01:39:48 Then you should be able to re-upload. Oct 25 01:39:55 yeah Oct 25 01:39:58 Okay. Oct 25 01:40:00 I doubt it'll get to the same level it was at before Oct 25 01:40:03 Ya. Oct 25 01:42:50 Has anyone got Toolbar working well? I've heard so many bug reports. Oct 25 01:47:42 i have the L preview samples, but there are no api 21 samples? Oct 25 01:52:28 heh, epiphany after seeing the overview of the android history at the end of lesson 1 of the udacity google course. The first letter of the "code names" is in alphabetical order so you don't have to memorize all those silly names to work out which version is older than which. Oct 25 01:52:57 a lot better than the OS X naming history Oct 25 01:55:47 Hi Oct 25 01:56:27 I've been wondering, is it possible to upgrade my Gingerbread to Jellybean? I have The Optimus Q Oct 25 01:57:12 AnkokuSeijin: see #android Oct 25 01:57:38 JakeWharton: Thanks Oct 25 02:08:04 The new Google Play app shows the app icon on the Settings activity. Oct 25 02:08:09 Seems inconsistent with "material design". Oct 25 02:13:49 is it updated? Oct 25 02:28:02 kinch, you only just realized? Oct 25 02:38:35 hi Oct 25 02:38:45 Im learning app dev and want a basic project to try Oct 25 02:38:51 any ideas?, something simple Oct 25 02:39:30 TacticalJoke: it's an evolution, not a hard switch. There's so much wrong and buggy about Play that they fix over the coming releases. Oct 25 02:48:15 shaun413, not the best place to ask such questions, this is not exactly a place for noobs Oct 25 02:48:30 heh **** ENDING LOGGING AT Sat Oct 25 03:00:01 2014