**** BEGIN LOGGING AT Tue Oct 21 02:59:59 2014 Oct 21 02:59:59 BB? Oct 21 03:00:02 Breaking Bad? Oct 21 03:00:03 worked on Narnia etc Oct 21 03:00:10 no Big Brother Oct 21 03:00:16 What did you do on Big Brother? Oct 21 03:00:35 Please tell me you're not that voice-over guy. Oct 21 03:00:38 trained artists and guided work with Endemol Oct 21 03:00:40 :D Oct 21 03:00:44 Interesting. Oct 21 03:00:51 StingRay_: You're hardly the typical programmer, then. Oct 21 03:00:57 EndEmol is in shepherds west building Oct 21 03:01:03 behind that shopping mall Oct 21 03:01:09 center Oct 21 03:01:13 The typical programmer couldn't design a nice icon if his life depended on it. Oct 21 03:02:40 Programming is new to me Oct 21 03:03:05 For me, programming is like a life-long abusive relationship. Oct 21 03:03:07 I keep going back. Oct 21 03:03:13 and a bit of a head fk too….sure I have started getting really bad regular headaches way too often now Oct 21 03:03:17 Programming is nice to me most of the time. Oct 21 03:04:23 Joking aside, I bet there are many parallels between programming and being in an abusive relationship. Oct 21 03:04:36 The whole "She/He'll change and stop hitting me" thing, for one. Oct 21 03:04:59 I'm like that regarding Android programming. "The platform will get better and the documentation will suck less. Just give it time". Oct 21 03:05:41 Same with Java for Android. "We'll get lambdas soon." Oct 21 03:06:41 TacticalJoke btw wasn't bigging myself up, in contrast I have worked on the crappiest xbox 360 game of all time and the lowest selling ps one game of all time too Oct 21 03:07:37 I know. It's interesting to find out about the stuff you've done. :) Oct 21 03:08:48 actually the biggest influence I had on a game was with the smallest effort, motorstorm :) I actually was thinking about that today Oct 21 03:09:31 StingRay_: It's better to help create the lowest-selling PS1 game of all time than to help create the 257th-lowest-selling PS1 game of all time. Oct 21 03:09:37 The former is some kind of achievement. Oct 21 03:09:59 I'm pretty shameless about it all really Oct 21 03:10:05 Though, to be pedantic, I have to ask whether the lowest-selling X is actually one that sold zero units. :D Oct 21 03:10:24 no, under 3k though Oct 21 03:10:33 It depends on how you define "selling", I guess. Oct 21 03:10:42 may not have technically been the lowest selling, but must have been close Oct 21 03:12:15 My background is all programming. Mainly network stuff. Oct 21 03:12:49 My artistic achievements include googling "free dice icon". Oct 21 03:13:06 AccessDenied Access denied. Oct 21 03:13:06 hmmm Oct 21 03:14:00 why would one get accessdenied on a httpget? Oct 21 03:14:07 StingRay_: If I released an app and it got popular, would you design an icon for me? Oct 21 03:14:14 i am trying to get this pdf from google..https://storage.googleapis.com/support-kms-prod/3A66AA84DBAE534708BE85706D1CFF3A4F80 Oct 21 03:14:31 tricknology: Is that a 403? Oct 21 03:14:53 tricknology maybe attempting redirect ? Oct 21 03:14:53 no 200 Oct 21 03:15:02 clear Oct 21 03:15:07 erm... apologies Oct 21 03:15:12 it's a page served by google i guess Oct 21 03:15:47 similar to https://storage.googleapis.com/support-kms-prod/3A66AA84DBAE534708BE85706D1CFF3A4F but acess denied Oct 21 03:16:37 so it seems to always 200 programmatically but the page that is served is AccessDenied Access denied. Oct 21 03:17:09 if one of you guys can show me how to set up maven dependencies I'll github the code so you can see what I'm talking about Oct 21 03:20:22 So, should we be thinking about moving from ActionBar to Toolbar? Oct 21 03:21:51 TacticalJoke no, they put it there for you to stare blankly at it :) Oct 21 03:23:27 Will the ActionBar be deprecated at some point? Oct 21 03:24:04 https://github.com/znwabudike/AndroidPhoneDatabase Oct 21 03:28:09 Toolbar ? Oct 21 03:28:50 TacticalJoke: it is deprecated http://developer.android.com/reference/android/app/ActionBar.html Oct 21 03:29:31 StingRay_: its finally what we have all wanted from an ActionBar Oct 21 03:29:43 never used action bar Oct 21 03:30:39 dont really agree with it…where are docs on toolbar ? Oct 21 03:32:54 oh so it's still actionbar..but now you can place it anywhere Oct 21 03:33:12 hmm…slightly better :) Oct 21 03:33:13 I don't get it. Oct 21 03:33:17 yes and no Oct 21 03:33:21 There's a lot of "X is deprecated"... Oct 21 03:33:33 ...but it doesn't say "Use Toolbar instead". Just "use something else instead". Oct 21 03:33:47 yes it is still an ActionBar but, it is also now a ViewGroup.. meaning you can now expand upon it as much as you like Oct 21 03:34:25 A tabbed ActionBar is now deprecated? Oct 21 03:35:25 Oh, the PagerTabStripo. Oct 21 03:35:26 -o Oct 21 03:35:45 does proguard strip all my comments Oct 21 03:35:59 cliffreich_: comments are not compiled Oct 21 03:36:01 The compiler strips your comments. They don't make it as far as Proguard. Oct 21 03:36:02 even the log.x? Oct 21 03:36:06 cliffreich_: they dont exist to be stripped Oct 21 03:36:07 ProGuard* Oct 21 03:36:14 what about the Log Oct 21 03:36:24 does proguard strip those for safety? Oct 21 03:36:27 no Oct 21 03:36:47 oh Oct 21 03:45:36 cliffreight Oct 21 03:45:50 cliffreich_ depends on the log Oct 21 03:45:55 if you use Log.d yes Oct 21 03:46:15 I would write my own log method as a wrapper for Log.x() Oct 21 03:46:37 if (BuildConfig.Debug) { do log stuff} Oct 21 03:46:47 err BuildConfig.DEBUG Oct 21 03:47:00 it is set to false when you sign your APK Oct 21 03:47:29 well proguard doesn't do it.. Oct 21 03:49:58 i see. i leave my Log commented on potentially problematic lines so it's just uncomment Oct 21 03:52:28 I'm reading this Android developer's blog, and his grammar is atrocious. I thought only super-geniuses worked at Google? Oct 21 03:52:38 Almost every sentence has a grammar error. Amazing. Oct 21 03:59:09 can anyone get to this site? https://storage.googleapis.com/support-kms-prod/3A66AA84DBAE534708BE85706D1CFF3A4F80 Oct 21 04:00:01 tricknology yes Oct 21 04:00:21 you mean the pdf right ? Oct 21 04:00:42 yes Oct 21 04:01:01 Works fine here, too. Oct 21 04:01:05 hmm.. Oct 21 04:01:14 i can't get it using httpGet Oct 21 04:01:24 maybe a same origins policy? Oct 21 04:01:31 https://support.google.com/googleplay/answer/1727131 Oct 21 04:02:12 tricknology maybe you are stripping the ident ? Oct 21 04:02:19 https://storage.googleapis.com/support-kms-prod/ Oct 21 04:03:28 I'm not sure that I am Oct 21 04:03:42 but I am not sure that I'm not let me check.. Oct 21 04:03:42 oh it's some kind of xml requesty thing Oct 21 04:03:43 https://storage.googleapis.com/support-kms-prod/somexmlrequest Oct 21 04:03:47 it is serving up that page Oct 21 04:03:57 key,content etc Oct 21 04:04:25 I am getting the access denied page, like the ident stipped off Oct 21 04:04:30 checking URI.. Oct 21 04:04:38 I know, thats why I said it :) Oct 21 04:05:06 ah yeah, that would be it StingRay_ Oct 21 04:05:20 +karma StingRay_ Oct 21 04:05:25 ++karma Oct 21 04:05:36 maybe that's a different room.. Oct 21 04:05:50 Thanks :) Oct 21 04:06:00 * StingRay_ wonders how to claim this… karma :) Oct 21 04:06:11 whats the karma to $$ rate ? Oct 21 04:06:20 very poor Oct 21 04:06:23 lol Oct 21 04:06:31 heh Oct 21 04:06:39 even worse to BTC Oct 21 04:06:59 now DogeCoin.. Oct 21 04:09:49 well I was guessing anyways… I know sod all about web stuff Oct 21 04:09:58 other than porn resides there…somewhere Oct 21 04:10:09 where's porn ? Oct 21 04:10:15 web I think Oct 21 04:11:12 wee! Yosemite! Time to install Android stuff Oct 21 04:11:31 Oh snap....all my Android stuff is in the other sad. Oct 21 04:12:13 Afzal AS kept crashing on me so reverted back to ML… think I will wait a few months Oct 21 04:12:32 but let me know how you get on Oct 21 04:12:49 StingRay_, oh boy. Well at least I have the other SSD so I can just swap them :) Oct 21 04:12:55 Afzal you'll have trouble with haxm Oct 21 04:13:17 g00s, yeah lol I'm not gonna worry about emulator. Oct 21 04:13:23 and there was a fix on G+ for that Oct 21 04:13:50 StingRay_ is there any way to still download old version of the OS from App Store? i searched for mavericks and didn't pull it up Oct 21 04:13:59 yeah sure Oct 21 04:14:06 "purchases" Oct 21 04:14:08 download Oct 21 04:14:14 so can we do Android Development exclusively with Java 8 or should I just start with Java 7? Oct 21 04:14:26 well, yeah but i don't think i grabbed it yet Oct 21 04:15:16 Afzal i don't really see why it would matter Oct 21 04:15:24 I hate that there's no search history in Spotlight still Oct 21 04:15:30 really? Well then I'm installing Java 8 Oct 21 04:15:31 AS by default will use apple java 6 Oct 21 04:16:03 g00s, there's no java installed by default anymore Oct 21 04:16:08 g00s oh crap..yeah… cant find it other than my purchases Oct 21 04:16:30 Afzal there hasn't been in a while, but when you try to run AS i think it will download it ? Oct 21 04:16:35 g00s cant even get you the link :( Oct 21 04:16:39 should ask first Oct 21 04:16:55 ah okay, oh well. Just download d'load the pre-reqs beforehand Oct 21 04:24:09 Are you all moving from ActionBar to Toolbar right now, or are you waiting for bugs to be fixed and so on? Oct 21 04:25:11 JakeWharton do you ever use gradle dynamic versions? Oct 21 04:25:33 (for 3rd party dependencies) Oct 21 04:25:59 JacobTabak: Are you moving from ActionBar to Toolbar right now, or are you waiting for bugs to be fixed and so on? Oct 21 04:27:50 yee, got the file. parsing nicely. now just have to edit (comment out and make a new) my parser Oct 21 04:28:04 TacticalJoke i haven't looked at the API in detail yet, but I may need to for something we're doing Oct 21 04:28:23 there's certainly no rush Oct 21 04:28:51 Okay. Oct 21 04:29:29 I'm reading this Material Design thing. Oct 21 04:29:30 It's long. Oct 21 04:29:38 Is anyone actually gonna implement this? Oct 21 04:30:16 TacticalJoke here a good thing, go get the pre material newstand app, do some stuff, read stuff etc Oct 21 04:30:34 then go get the new newstand app, and tell me that material design crap works Oct 21 04:34:12 hmm, AS still wants legacy Java SE 6 Oct 21 04:34:39 ah nvm Oct 21 04:34:50 Hmm, not sure how much I like this Newstand look. Oct 21 04:35:03 For one, it's way too busy when scrolling down (when viewing a topic). Oct 21 04:35:11 Way too much movement if you scroll only a little bit. Oct 21 04:35:26 good eye TacticalJoke ;) Oct 21 04:35:38 it's bling for the sake of bling Oct 21 04:35:58 not fitting of the design or purpose for which the user would use the app Oct 21 04:36:01 Why can't Google just keep it simple? Oct 21 04:36:08 Yeah, it feels that way to me right now. Oct 21 04:36:36 even that simple sentence you put up with grammar errors Oct 21 04:36:58 The one about "the users"? :D Oct 21 04:36:59 direct the user… purpose…etc they fail…really simply Oct 21 04:37:06 Yes. lol Oct 21 04:37:28 except Material design is the new thing that everyone must follow ;) time to decide for yourself Oct 21 04:37:32 Google could keep it simple and just say stuff such as "We're not making it easier for you to set the colour of the action bar". Oct 21 04:37:40 s/not/now/ Oct 21 04:37:52 eh, easy. AS worked now (or at least it started) Oct 21 04:37:54 with Java SE 8 Oct 21 04:38:14 StingRay_, when was AS crashing for you? Oct 21 04:38:50 now, more importantly, my github recovery codes :/ Oct 21 04:38:52 I loaded a libGDX project I was begining to learn with, build for desktop…run fine, left it on an OS crashed Oct 21 04:39:06 would not run again after that Oct 21 04:39:52 reset, cleaned, managed to run and open android…then after an hour just vanished, no error no log Oct 21 04:39:55 lmao OS crashed. :/ Oct 21 04:39:58 that's bad Oct 21 04:40:05 at that point reverted Oct 21 04:40:39 God, the Twitter app sucks. Oct 21 04:41:00 "I'll just keep these huge bars at the top and bottom so that you can't see much on your tiny phone screen." Oct 21 04:41:03 Gee, thanks. Oct 21 04:42:48 Afzal thats good, did you just have to install java8 manually beforehand ? Oct 21 04:43:28 g00s, yeah and then I had to edit Android Studio's Info.plist to use JVMVersion 1.8 instead of 1.6 Oct 21 04:43:37 yeah, ok Oct 21 04:43:48 * Fall ponders on how to set custom fonts on a textview that's part of an ACTV? Oct 21 04:43:49 hows font rendering? Oct 21 04:43:58 terrible. everything looks tiny and squished Oct 21 04:44:01 Why are you using Java 8? Just wondering. Oct 21 04:44:03 I'm using Java 7. Oct 21 04:44:03 might change the font Oct 21 04:44:29 Afzal thats the thing with oracle java; doesn't AA the fonts like apple Oct 21 04:44:33 TacticalJoke, no reason really. Just want to have one thing instead of 2 or 3 versions for now Oct 21 04:44:46 g00s, oh wait, you're talking about AS? I was talking about the OS :D Oct 21 04:44:56 Afzal yeah hows AS fonts ? Oct 21 04:45:22 my favorite font evar is proxima nova Oct 21 04:45:34 if it was easy to change ... i'd do it for mac, but it seems like surgery Oct 21 04:45:38 timehop uses proxima nova :) Oct 21 04:45:54 :D Oct 21 04:46:02 what's the best way to create an observer that uses a dedicated worker thread like a queue? Oct 21 04:46:03 StingRay_: I dislike how the top-right menu appears in that news app. Oct 21 04:46:07 Really disorienting. Oct 21 04:46:09 observable* Oct 21 04:46:24 has anyone used trampoline in rxjava? Oct 21 04:46:40 JacobTabak lol i asked about that last week Oct 21 04:46:44 haven't tried it yet Oct 21 04:46:53 TacticalJoke it is a mess… Oct 21 04:47:03 g00s, seems to be fine. I don't want to install the sdk or anything just now. I'll copy it over tomorrow Oct 21 04:47:04 I will never use that app again, and I used it lots Oct 21 04:47:07 i guess i should just use an intent service Oct 21 04:47:08 from my older drive Oct 21 04:47:41 JacobTabak why not make a HandlerThread and obServeOn (that) ? Oct 21 04:49:01 g00s what did you end up doing? Oct 21 04:49:14 i mean subscribeOn Oct 21 04:49:18 i always get these fucked up Oct 21 04:49:42 never used that class before Oct 21 04:49:45 JacobTabak i put that part of the app down for a moment. i think i maight need to make my own scheduler Oct 21 04:50:06 i don't need a looper Oct 21 04:50:27 there's no issue just making my own thread right? Oct 21 04:50:47 this is for a logger that writes to file Oct 21 04:50:56 i am getting out of memory errors using the IO scheduler Oct 21 04:51:08 because i guess i can spit out lots of logs and make lots of threads Oct 21 04:51:26 are you using the stacktrace? Oct 21 04:52:13 im logging stack traces yes Oct 21 04:52:34 i understand the logs of logs Oct 21 05:05:09 JacobTabak maybe Schedulers.from(executor) ... make a fixed size pool executor ? Oct 21 05:05:59 i just need 1 Oct 21 05:05:59 need a queue Oct 21 05:06:13 thinkin about it.. Oct 21 05:06:53 HandlerThread behaves like a queue :| Oct 21 05:07:04 do you mean it has to be a queue on the main thread ? Oct 21 05:07:18 nah, any other thread Oct 21 05:07:21 trying to figure out how to use handlerthread Oct 21 05:08:00 rxandroid schedulers has helpers for that Oct 21 05:08:22 halp Oct 21 05:08:23 im tired Oct 21 05:08:45 oh i see Oct 21 05:10:01 i think schedulers.newthread is all i need Oct 21 05:10:27 hehe Oct 21 05:10:50 nah Oct 21 05:10:51 im so confused Oct 21 05:10:51 ugh Oct 21 05:10:55 haha Oct 21 05:11:26 nah new thread is a new thread for each unit of work Oct 21 05:11:58 try trampoline Oct 21 05:12:07 i think youe 'right about handlerthread scheduler Oct 21 05:12:13 :D Oct 21 05:12:30 let's say you want the user to swap a bunch of buttons, graphically. any pointers on how to do this in a beautiful(?) and functional way? Oct 21 05:13:28 you could use scene transitions if you'er targeting 4.4+ Oct 21 05:13:40 you definte layouts for before and after and an interpolator and voila Oct 21 05:15:31 JacobTabak come on rxjava is viola too, get to it ! Oct 21 05:15:34 why not use message and handler? Oct 21 05:15:49 isn't the messagequeue enough? Oct 21 05:16:05 he's rxing all teh things Oct 21 05:16:17 tricknology i want to try to do it in rxjava Oct 21 05:16:21 just for fun Oct 21 05:16:30 ah Oct 21 05:16:36 we're not calling it rxjava anymore Oct 21 05:16:45 JacobTabak but what is the observable? you're just doing something on another queue (logging) Oct 21 05:16:56 no need for rx here, unless i'm confused Oct 21 05:17:01 * tricknology looks left, looks right Oct 21 05:17:04 rxjava? Oct 21 05:17:15 bankai_au whats it called O.o Oct 21 05:17:21 oh sorry yes we are, ReactiveX is the global name for it Oct 21 05:17:23 nevermind, i'm having a moment Oct 21 05:18:22 "observable sequences" == methods within our reach? Oct 21 05:18:26 confused.. Oct 21 05:20:36 oh.. graphics Oct 21 05:21:25 sorry, I was afk :S Oct 21 05:21:56 I'm not sure I like the card interface. Oct 21 05:22:17 It's kinda weird looking. Oct 21 05:22:31 in reality, these buttons are keyboard keys Oct 21 05:22:59 not sure how to do this graphically Oct 21 05:23:14 err s//no idea/ Oct 21 05:23:21 s/not sure/no idea/ Oct 21 05:25:15 TacticalJoke yeah i don't really like card stuff either. unless its a heterogenous collection of things Oct 21 05:26:51 bah, you weren't talking to me, lol Oct 21 05:28:33 I hope they're gonna make it easy for us to use these card widgets. It doesn't seem very easy right now. Oct 21 05:28:45 s/card/Material Design/ Oct 21 05:28:57 I don't mind some elements of Material Design. Oct 21 05:29:06 Stuff like changing the toolbar colour to match our app's theme. Oct 21 05:30:45 "Top video game players in South Korea are household names. Millions of people tune in to watch game competitions on television." Oct 21 05:30:56 wtf, i don't understand that ... those people must be really bored Oct 21 05:30:57 g00s: i watch them on twitch, they're amazing Oct 21 05:32:55 g00s: it's because SK was very networked in the 90s, they were one of the first to have broadband everywhere, so people grew up playing starcraft and there's a huge culture built around it... it's actually pretty amazing to watch, but probably not so interesting if you've never played the game Oct 21 05:34:50 maqr: Kinda like Cricket :-) Oct 21 05:34:57 (or any other sport, in fact) Oct 21 05:35:58 any other sport except those require one to get off their ass Oct 21 05:36:04 yeah, that makes sense, it also explains why i don't get the appeal of baseball Oct 21 05:36:09 g00s: chess? Oct 21 05:36:45 i think i read somewhere SC was good at improving planning function / strategic thinking Oct 21 05:36:48 Wheelchair basketball? Oct 21 05:36:50 :D Oct 21 05:37:51 I gotta sleep. Kthxbai. Oct 21 05:38:25 g00s: as an sc2 player, i'd believe it Oct 21 05:42:07 is there a way to start an async network request when you click a button, transition to a new activity, and then render the results of the request after the transition, to make the load time less noticeable? Oct 21 05:43:57 playing video games is generally a major waste of time (there's a difference between using games to improve your motor skills, hand-eye coordination and whatnot, and building your entire life around games). *watching* people play games, especially if on a regular basis... now that's a whole new level of timewasting. some people just have it too good in life Oct 21 05:45:11 ravilov: it's no worse than watching a sitcom imo Oct 21 05:45:32 its kinda like watching reality TC i guess ... Oct 21 05:45:34 TV Oct 21 05:45:50 but i prefer not to be a spectator :) Oct 21 05:48:46 ravilov i think you just have it too hard in life Oct 21 05:53:27 How to hide actionbar in xml style? Oct 21 05:53:54 i i think there is a theme right ? Oct 21 05:54:17 just upgraded to l Oct 21 05:54:27 now i dont see notitlebar anywhere in theme auto suggestiions Oct 21 05:57:04 why i am forced to use appcompat argh Oct 21 05:58:04 i'm not using it... yet :) Oct 21 05:58:16 android:windowNoTitile ? Oct 21 05:58:20 that hides the action bar? Oct 21 05:58:27 err is action bar reference as an item in styles? Oct 21 06:00:00 true Oct 21 06:00:11 lasserix you don't need the 'android' prefix when using appcompat Oct 21 06:00:15 or so i've read Oct 21 06:01:11 lasserix did you see this ? https://chris.banes.me/2014/10/17/appcompat-v21/ Oct 21 06:01:25 ahh to support <14 or not to support less than <14 Oct 21 06:01:27 fucking hell Oct 21 06:01:37 great that its there but ... man is google the most inept company at communication Oct 21 06:01:58 Manifest merger failked:uses-sdkMinSdkversion14 cannbe smaller than L decalred in libnrary com.android.support:appcomat-v7:21.0./0 Oct 21 06:02:05 lasserix no of course :) Oct 21 06:03:39 hmm g00s thanks Oct 21 06:04:29 did you set this up google? Oct 21 06:04:33 i get i can't find the dependency Oct 21 06:07:58 anyone have a build file i can look at that has target/compile the new l, but min sdk 14? Oct 21 06:08:26 lasserix https://github.com/google/iosched/blob/master/android/build.gradle Oct 21 06:09:37 ahh thanks Oct 21 06:09:57 is this app compat from the first link Oct 21 06:10:05 do i have to use it to use the l stuff in 14? Oct 21 06:10:45 should be same appcompat Oct 21 06:10:56 yeah Oct 21 06:12:53 how to get com.android.support:appcompat-v7:21.0.0" ? Oct 21 06:12:59 it seems not tobe a dependency Oct 21 06:13:05 but i updated sdk yesterday Oct 21 06:14:29 ahh nm forgot those things were at the bottom Oct 21 06:14:55 i got disconnected :-( Oct 21 06:15:07 is there a way to start an async network request when you click a button, transition to a new activity, and then render the results of the request after the transition, to make the load time less noticeable? Oct 21 06:15:52 g00s thanks Oct 21 06:16:25 Duckily: wha? Oct 21 06:16:52 can't you do your rendering in the async task Oct 21 06:16:53 lasserix: i’m doing an aync network request using volley to populate a list view Oct 21 06:17:03 and have your new activity just have a load(renderable) Oct 21 06:17:22 lasserix: how would it get passed to the new activity? Oct 21 06:17:42 wouldn’t it need to be thrown into the bundle and passed via intent or something? Oct 21 06:18:03 JacobTabak, nah, I have it just like it should be ;) and also by choice, my choice is to not waste (too much) time Oct 21 06:18:05 just use a callback or a singleton or whatever Oct 21 06:18:16 ... wait, why am I in this channel then?? Oct 21 06:19:48 g00s im just gonna use an Executors.newSingleThreadExecutor() then I can easily swap it out for SameThreadExecutor for unit tests Oct 21 06:19:54 and skip the rx Oct 21 06:34:12 Duckily: dont make your async in your activity Oct 21 06:34:35 use a intentservice that calls back to your application class or other such singleton Oct 21 06:34:41 or use one of the vent bus libarries Oct 21 06:34:43 lasserix: i’m using a sincleton, but i’m not sure how it helps Oct 21 06:35:05 the singleton is not dependent on activity a's in and out so you can access it from the other activity Oct 21 06:35:18 unless a being stopped kills it for some reason Oct 21 06:35:47 lasserix: the async request gets dispatched aync. but the data isn’t stored in the singleton Oct 21 06:36:04 so i don’t think something accessing the singleton could get to the data Oct 21 06:36:15 unless it called an intent service like you recommended Oct 21 06:36:22 which seems a bit overkill, no? Oct 21 06:36:29 a) no that incorrect Oct 21 06:36:40 b) yea an intent service is probably over kill, but not necessarily Oct 21 06:37:03 the singleton can just implement the async observer Oct 21 06:37:06 pass the data back to it Oct 21 06:37:17 then have be aacces the singleon to get it Oct 21 06:37:23 seems fairly straightforward Oct 21 06:37:30 but i am suggering brainfreeze so i could be worng Oct 21 07:10:31 Hi, quick quesiton for anyone using Android Studio on Yosemite... Please share if everything is fine because I'm planning to upgrade my machine to yosemite, and just want to hear if there's going to be any major problem with that. Thanks! Oct 21 07:18:34 Ahoy all. Im currently developing an API with our product and was hoping someone could verify with me some of the preferred ways that an android app could talk with a restful api. Is oauth a pain to implement? If I also made a token access for the api, on an ssl connection, how easy would it be to add a custom certificate authority? the api we have will go on its own hardware we sell with our machines so a ssl certificate from the main Oct 21 07:21:07 hi all.. i found it brilliant to use adb shell commands, my question is- how can i run those commands right from the device? [adb shell input text "hello world"] for example? Oct 21 07:21:21 im connected to devices right now as root via ssh Oct 21 07:23:06 there's uiautomator and espresso for that kinda thing Oct 21 07:24:05 bankai_au, is there extention for tasker? shouldn't be something like shell commands? Oct 21 07:24:51 never heard of tasker Oct 21 07:25:35 i fugured that out. thx! tasker - https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm Oct 21 07:25:38 there is a terminal emulator Oct 21 07:26:00 pepee, i just typed the commands without adb shell, works great Oct 21 07:28:41 so, android doesn't include the terminal emulator anymore? :/ Oct 21 07:28:56 these don't sound like development questions Oct 21 07:32:11 hi guys. i am looking at including small animations in my application, and i understand that some animations can be done through XML, but what i am looking to use to include animated buttons and such? Oct 21 07:32:25 i found GIFS works pretty poorly Oct 21 07:40:40 uhlm: have you looked at the documentation? http://developer.android.com/guide/topics/graphics/drawable-animation.html Oct 21 07:47:58 i hate sdk updates :( Oct 21 07:50:09 who doesn't Oct 21 07:50:33 my current sdk has 140000 files ;) Oct 21 07:50:49 i think i'll hit the 200k files line after the update Oct 21 07:55:10 that's some sdk... Oct 21 07:55:41 my /opt/android-sdk currently has 16512, /opt/android-ndk has 16301 Oct 21 07:55:58 that includes some custom scripts and such Oct 21 07:56:22 1.6 - 4.4.x Oct 21 07:56:27 Hi all. Does anyone have any idea about my problem from yesterday - http://www.shlomifish.org/Files/files/images/android-avd-on-ubuntu-vm.jpg ? Oct 21 07:56:55 monsti, 1.6, 2.2, 2.2-google, 2.3, 4.4 Oct 21 07:58:44 rindolf: no idea - but no such file or directory sounds like a missing file, a missing path, or a missing 755 permission... Oct 21 07:59:02 monsti: OK. Oct 21 07:59:21 rindolf: run file on that binary Oct 21 07:59:26 Its already 775 Oct 21 07:59:53 If you look in terminal Oct 21 08:00:15 yes. that's why i am asking about the next most likely thing. :) Oct 21 08:00:48 i've not used the emulator on linux, so i can't verify it for myself. Oct 21 08:01:17 lewellyn: OK. Oct 21 08:01:42 maybe you are on a 32/64bit issue Oct 21 08:02:08 monsti: that's what i'm thinking too. Oct 21 08:02:13 lewellyn: i'm getting that it's a 32-bit LSB i586 exe. Oct 21 08:02:16 well file is your friend Oct 21 08:02:25 so apt-get install ia32-libs :) Oct 21 08:02:33 on a 32bit os :) Oct 21 08:02:48 i think that's the ubuntu package name for it. Oct 21 08:03:12 (my generic solution is "install 32-bit firefox" since that'll pull down almost anything i'll care about) Oct 21 08:03:48 lol, interesting solution Oct 21 08:03:55 it hasn't failed me yet :) Oct 21 08:04:22 sure, i might waste 100 megs. but my time is much more valuable. Oct 21 08:04:42 omg!!!! Oct 21 08:04:49 you are a bandwidth thief!!! Oct 21 08:06:09 yes. i have a secret wire hooked up to my neighbor's router. Oct 21 08:06:51 that's what we all do ;) Oct 21 08:06:59 the NSA disabler line Oct 21 08:07:43 not secret anymore... Oct 21 08:07:49 lol Oct 21 08:08:16 omg 2 hours copying the sdk from disk to usb :( Oct 21 08:08:19 but.. you have more neighbors, no? Oct 21 08:09:31 anyway... I wonder: is it possible to swap two keys from a softkeyboard? Oct 21 08:09:41 huh? Oct 21 08:12:55 According to my bank statement, I spend $500 a month on adult entertainment Oct 21 08:13:52 that's cheaper than any wife! Oct 21 08:14:04 Ha Oct 21 08:15:10 Hi all. I want to clear the RAM memory of my Android tablet but I can't find how. On my phone I can do it like this http://howbees.com/2014/01/29/how-to-clear-ram-memory-on-android-phone-or-tablet/ any suggestions? Oct 21 08:15:39 how is this development related? Oct 21 08:16:13 because people who are developing are interested how to handle when ram memory is cleared Oct 21 08:16:28 are they? Oct 21 08:16:34 How do you programmatically terminate an App with extreme prejudice? I have an app that checks it configuration, and display a message if the config is bad & then die! Oct 21 08:17:00 if they aren't, they should think about it again Oct 21 08:17:24 Nivag: you can try System.exit(-1); - but that's no 100% solution Oct 21 08:17:26 FrancescoV, on the contrary, you should not use RAM cleaners and task killers at all on Android Oct 21 08:17:55 Nivag: why not let Android kill the process when appropriate? Oct 21 08:18:00 Ravenheart, exactly that... to swap two keys programmatically Oct 21 08:18:17 there doesn't seem to be a simple way of doing it Oct 21 08:18:39 pepee, does not compute, not enough context Oct 21 08:18:53 monsti, you shouldn't *ever* use System.exit() on android Oct 21 08:19:03 Activity.finish() should be good enough Oct 21 08:19:08 nop Oct 21 08:19:23 e.g. the application object doesn't die by .finish() Oct 21 08:19:30 even if it's not, System.exit() should never be touched Oct 21 08:19:41 that's just recipe for disaster Oct 21 08:20:01 ravilov: think again: http://stackoverflow.com/questions/21771624/android-app-crash-after-clean-the-memory Oct 21 08:20:02 I'm trying to make a customizable soft-keyboard.... and I want users to be able to swap keys Oct 21 08:20:05 well .exit kills the application object - but it's no 100% soloution in case you have an app with multiple proces Oct 21 08:20:23 don't quite understand why it's important to remove all traces of the app ever having been run though Oct 21 08:21:15 Eye sight tests are defined in files, I must verify files are consistent, before the App displays anything related. If the config is bad, I display a message. This is the only app the user should be using, as this is a dedicated tablet. Oct 21 08:21:18 FrancescoV, I don't see your point, I said you shouldn't ever use memory cleaners and such, and you're telling me some random apps crash when you do? you're making no sense Oct 21 08:23:25 FrancescoV: what does not handling savedInstanceState being null have to do with the System.exit? Oct 21 08:24:18 appel1: don't know what the System.exit is Oct 21 08:25:28 FrancescoV: ok, thought what you wrote in reply to ravilov was in response to that you shouldn't use System.exit(). :) Oct 21 08:25:32 appel1, it doesn't, who said anything about System.exit() there? those are two separate convos Oct 21 08:25:42 right, that ;) Oct 21 08:25:46 ravilov: got it =) Oct 21 08:27:42 FrancescoV, bottom line is - as a user, you should not ever reach for memory cleaners and task killers, as a developer there is a number of ways to guard against your app crashing out of nowhere, for example not assuming method args can't be null Oct 21 08:29:10 ravilov: currently when a user clears the ram of his device and opens my app again, it opens like nothing happend Oct 21 08:30:07 well there you go, problem solved Oct 21 08:31:02 true but needed to find out how I can also test this on my tablet, which works now with a ram cleaner app Oct 21 08:34:02 bye Oct 21 08:55:51 Hi! Which of these two selection schemes would be more usable on mobile? http://jsfiddle.net/frank_o/1ym9t70b/5/show Oct 21 08:56:10 join #android-dev Oct 21 08:56:53 No such channel Oct 21 08:57:13 Hey , I have a cursor that i created in OnCreate , but i need to access it from other classess too , any way to achieve this ? Oct 21 08:58:16 frank_o, seems reasonable, I hope you're not trying to make a "webified" app though Oct 21 08:58:35 killer, make it public and/or static Oct 21 08:59:29 ravilov: Thanks man :-) Oct 21 08:59:37 ravilov: Maybe I am? lol Oct 21 08:59:40 ravilov: I tried it but it says ,only final is permitted, illegal parameter Oct 21 09:00:08 public Cursor c; Oct 21 09:00:45 May be i should try this outside of OnCreate Oct 21 09:00:53 er duh Oct 21 09:01:18 there is no way to access anything defined inside a method from outside of that method Oct 21 09:01:30 frank_o, well I hope not Oct 21 09:02:36 ravilov: truth is im trying to provide a webified alternative to my app. with an up-to-date mobile browser, wouldn't that be okay? Oct 21 09:02:49 * alternative to my android app Oct 21 09:03:17 sure Oct 21 09:03:35 join #android-dev Oct 21 09:03:35 No such channel Oct 21 09:03:36 HAHAHA Oct 21 09:03:59 the other way around is what sucks, when people try to take a web page and make it into an app Oct 21 09:05:03 ravilov: doesnt it just suck because most people dont know how to do it right? Oct 21 09:05:30 frank_o, performance wise it sucks Oct 21 09:05:42 frank_o, and general usability Oct 21 09:06:01 i totally agree with the performance Oct 21 09:06:36 what do you mean about usability though? doesnt that depend entirely on the design / layout of the app? Oct 21 09:06:38 frank_o, no, it just sucks no matter what you do Oct 21 09:06:58 web pages are web pages (even if they're web apps) Oct 21 09:07:01 android apps are android apps Oct 21 09:07:23 actually that goes for all platform-native apps Oct 21 09:08:26 oh absolutely. but with the proper javascript libs, one can make web apps feel just like, well almost like, native apps. plus then they'd work across browser and platforms, and you'd get to use html+css+js + some backend language thats a whole lot prettier than java (say ruby) Oct 21 09:08:48 thats what they say in the webdev channels anyway. Oct 21 09:09:06 is there some truth to that though? Oct 21 09:10:23 some but not that much Oct 21 09:10:27 Honestly, unless you told me it was a cordova app, I usually can't tell the difference aside from the horrible lack of design principles Oct 21 09:11:25 But that's on the dev ;P Oct 21 09:13:12 web devs will always find a way to do their web dev things Oct 21 09:13:26 android has a webview, lets make a webpage and slap it in Oct 21 09:13:32 chromeos gets android Oct 21 09:13:46 lets make our android apps for chromeos and just run it in the vm Oct 21 09:13:50 no Oct 21 09:13:53 dont fucking do that Oct 21 09:13:57 write an android app for android Oct 21 09:14:02 web shit for web Oct 21 09:14:09 chrome package for chromeos Oct 21 09:15:36 hi guys. i am looking at including small animations in my application, and i understand that some animations can be done through XML, but what i am looking to use to include animated buttons and such? Oct 21 09:15:40 i found GIFS works pretty poorly Oct 21 09:31:45 uhlm: did you look at the documentation? Oct 21 09:33:46 appel1: i did a bit. i was wondering if it was common real life practice to create animated button in synfig or after effects or something similar to incorporate somehow Oct 21 09:36:12 uhlm: I'm sure such tools are used, depends on what kind of animation I'd guess. Oct 21 09:36:57 how can I find out the size of textures I can use on an android device? Oct 21 09:39:58 you use sane common sense values Oct 21 09:47:57 is there a solution for playing inline Live Video Stream in android, need it working in webveiw also. android 4.0+ Oct 21 09:49:51 hello Oct 21 09:50:06 hello Oct 21 09:50:56 using Bouncy Castle 1.51 to generate a 2048 bits RSA key, would it be possible that it takes forever because of e.g. not enough random bytes available? Oct 21 09:51:07 Hello Oct 21 09:51:11 happening on a Samsung I9300 with Android 4.3 Oct 21 09:51:30 (I'm using Spongy Castle actually) Oct 21 09:52:25 I have trouble with onTouch event -> ACTION_DOWN is NEVER called Oct 21 09:52:28 where do i can find a template for my privacy policy or some generator Oct 21 09:53:47 i want to do a custom onLongLick item -> i save time on ACTION_DOWN event, and I calculate diference on ACTION_MOVE to know how much time the user clicked Oct 21 09:53:54 but ACTION-DOWN never fucking called Oct 21 09:54:18 and seems the listenner disable all other listenner Oct 21 10:00:17 Hello. Is there any reason I should pass data to loader in bundle when calling ".initLoader" ? Code I'm working on always does it, but why can't I just use bundle from Activity? Oct 21 10:00:43 you can send Bundle.EMPTY Oct 21 10:01:00 or you can send a null Oct 21 10:01:02 your choice Oct 21 10:02:06 so there is no reason to send it data with bundle? I can just use any global var in "onCreateLoader" from Activity ? Oct 21 10:06:06 privacy policy is such pain Oct 21 10:07:46 It seems there's a 30-60min job that updates all the youtube API data... is there a way to actually get the latest uploads from users? The same up to date list going to /user/name/videos or my subscriptions page would do? Oct 21 10:12:33 hello Oct 21 10:13:35 if I create an app with some video inside and video is 1080p. So should I prepare some rescaled copies depending on playback hardware? Oct 21 10:16:50 you'll probably have to if you want the devices without 1080p decoders to play it Oct 21 10:18:15 note that "p" isn't the only thing you have to watch out for. Oct 21 10:36:05 Mavrik: thank oyu Oct 21 10:38:17 what could cause a motion event to reset distanceX/distanceY when onScroll() is called (or before)? Oct 21 10:43:09 hi, i asked yesterday this question but did not get an firm answer: is there a developer tool i can use to change the versions in the AndroidManifest.xml file from a script ? (btw i am using Mac) Oct 21 10:44:22 you can write one? Oct 21 10:44:31 the manifest is just xml Oct 21 10:44:42 read it, change value, write it Oct 21 10:44:44 yes i know but it would be easier if there was one made already ;) Oct 21 10:45:02 dont think so Oct 21 10:45:06 so if there is not then i guess i need to get started :D Oct 21 10:45:06 what are u planning on doing? Oct 21 10:45:11 automated builds? Oct 21 10:45:21 i need to increase the version in a CI Oct 21 10:45:23 yes Oct 21 10:45:40 i am using Atlassian Bamboo so i can call shell scripts Oct 21 10:47:43 err, is there a jump/browse concrete implementations key/function in IJ/AS when cursor is over an interface declaration? Alt-F7 doesnt crack it. Oct 21 10:49:01 does anyone have an example of privacy policy for an app Oct 21 10:53:40 rgr, https://github.com/android/platform_frameworks_base/blob/3bdbf644d61f46b531838558fabbd5b990fc4913/core/java/android/database/Cursor.java Oct 21 10:54:14 woops Oct 21 10:54:17 misread question Oct 21 10:56:31 heh Oct 21 11:09:31 donnib, I think Jenkins has such a feature, but haven't used it personally Oct 21 11:10:34 Ahoy all. Im currently developing an API with our product and was hoping someone could verify with me some of the preferred ways that an android app could talk with a restful api. Is oauth a pain to implement?  If I also made a token access for the api, on an ssl connection, how easy would it be to add a custom certificate authority? the api we have will go on its own hardware we sell with our machines so a ssl certificate from the main Oct 21 11:10:34 VnM: it may but i am not using Jenkins, i am writing a Python script as we speak Oct 21 11:16:05 is there anywhere I can find out the maximum texture size for each phone type Oct 21 11:16:20 it seems on my phone I can use larger textures than the OpenGL max texture says Oct 21 11:27:41 Zogot, using Retrofit library, its quite effortless Oct 21 11:34:45 kevel1: for using oauth things? Oct 21 11:37:45 Zogot, if you wanted to you could Oct 21 11:38:01 i used it for connecting to google endpoints API using oauth Oct 21 11:38:28 i usually use normal tokens though Oct 21 11:38:36 which i find works a lot easier Oct 21 11:47:11 how can i start GMAIL application on click of a button in my app?? Oct 21 11:49:01 auditore, you need an intent Oct 21 11:49:08 check the docs actually Oct 21 11:49:17 make an intent to execute it Oct 21 11:50:31 what should i put in intent? Oct 21 11:50:42 is there any code for GMAIL? Oct 21 11:51:28 auditore: are you trying to send an e-mail or do you just want to open the gmail app? Oct 21 11:53:23 i want to share text from my app and send it as e-mail. Oct 21 11:53:26 Hello. Any idea on how can I achieve this: (screenshot: http://i.imgur.com/FnA91af.png). Thanks :) Oct 21 11:54:05 auditore, create an intent to share to emailols Oct 21 11:54:18 http://stackoverflow.com/questions/8701634/send-email-intent Oct 21 11:54:24 googles very first result. Oct 21 11:54:26 man I hate how google's generated code has mPrefixed member variables Oct 21 11:54:31 auditore: https://developer.android.com/guide/components/intents-common.html#Email Oct 21 11:54:59 lnoskhen, created a rounded drawable Oct 21 11:55:04 apply as background to textview Oct 21 11:55:21 not quite sure how to make the two views sit tightly Oct 21 11:55:29 actually, if u find out, let me know, im interested Oct 21 11:56:16 will this intent start the default e-mail application? Oct 21 11:56:35 Is there a way to embed a certificate (CA or website cert) into an application using a WebView? Oct 21 11:56:42 auditore: the default or it'll show a list if there is no default and the user has multiple e-mail apps. Oct 21 11:56:57 Embed as in telling it to use that cert without installing it manually system-wide. Oct 21 11:57:31 auditore: it is all explained in the docs, for example at https://developer.android.com/training/basics/intents/sending.html Oct 21 11:58:12 hey Oct 21 11:58:18 how do i solve this? Oct 21 11:58:19 emulator: WARNING: option -port must be followed by an even integer, using port number 5554 Oct 21 11:58:21 isn't there any way to specifically start GMAIL(if it is installed)? Oct 21 11:58:22 ops lo Oct 21 11:58:25 *lol Oct 21 11:58:28 just a sec Oct 21 11:58:42 adb connect 192.168.158.1:5554 Oct 21 11:58:42 auditore: why don't you want to let the user use his preferred e-mail app? Oct 21 11:58:57 unable to connect to 192.168.158.1:5554:5554 Oct 21 11:59:27 Hi everybody Oct 21 11:59:28 I have a small problem with anonymous classes here's my code http://pastebin.com/DqFSjmpG Oct 21 11:59:47 I'm trying to populate a hashmap from an anonymous class but it doesn't add any item Oct 21 12:00:10 kevel1: I already done the rounded drawable to textview, but how can set margin to the left of first line? Oct 21 12:00:13 I think that it's because I'm creating the items to add in the anonymous class Oct 21 12:00:40 elichai2: try stop the `adb.exe` process then try to reconnect Oct 21 12:01:31 did Oct 21 12:01:33 @appell: because it is a requirement for my app to use only G-MAIL! Oct 21 12:01:35 i did killall adb Oct 21 12:01:41 same problem Oct 21 12:02:48 auditore: that's a stupid requirement. Oct 21 12:02:51 ;) Oct 21 12:04:11 any idea Oct 21 12:04:11 ? Oct 21 12:06:11 auditore, set the packet target or whatever Oct 21 12:06:16 to gmail's package Oct 21 12:06:16 ez Oct 21 12:06:55 Hey guys, I have a variable in the main activity which gets updated within main activity. How can I use its updated value in another class? Oct 21 12:06:59 auditore: be aware that it might change which will break your app at any time in the future. Oct 21 12:07:32 plkease? Oct 21 12:08:51 @appell could you repeat the answer my connection was reset Oct 21 12:09:34 auditore_: just warned that if you determine the gmail apps package name and use that, it might change in the future which will break your app. Oct 21 12:09:51 More reliable to use documented and supported features. Oct 21 12:10:46 elichai2: Have you tried `adb connect 192.168.158.1`? without the Port? Oct 21 12:11:21 @appell thanks for your help. I will try to follow your suggestion. Oct 21 12:12:17 ok I'm gonna pester more because I'm fairly stuck: so I'm working with samsung gear and it has this serviceProvider class which does the data transmission between the phone and the gear Oct 21 12:12:36 lnoskhen, yeah, it chooses 5555 as default... Oct 21 12:12:39 I need to somehow give data from main activity to that class so it could send Oct 21 12:14:34 elichai2: adb tcpip 5555 Oct 21 12:14:40 elichai2: then.. adb connect 192.168.158.1 Oct 21 12:16:11 auditore_, irc is not twitter, @ has a different meaning here Oct 21 12:16:23 and is generally useless for highlighting people Oct 21 12:16:55 @ravilov@ravilov@ravilov@ravilov@ravilov @ravilov Oct 21 12:17:13 lnoskhen, adb tcpip is to change an connected device listenning port Oct 21 12:17:15 @VnM sorry dude I'm not an @op Oct 21 12:17:22 :( Oct 21 12:17:34 i didn't know that. So what does it mean HERE? Oct 21 12:17:41 ^ Oct 21 12:21:55 Hello, how to convert this format to Date "2014-10-21T15:25:00+03:00" I tried passing it to Date, but got parse error. Oct 21 12:23:32 how about manually? split on "T" and "+", get date, time and timezone, then take it from there Oct 21 12:24:00 If i going to make app for android tv i need the sdk 24 right? Oct 21 12:24:37 Can anyone tell me how to get the hour of a time as a properly locale-dependent string? SimpleDateFormat does not seem to honour the User's settings (12/24, etc) Oct 21 12:25:04 vegetablesalad19: I use jodatime for all my date needs Oct 21 12:25:10 I have a Listview , inside which i just added button, now the normal scrolling of the listview does not work when the scroll starts from the button ? Oct 21 12:25:53 I tried DateUtils.formatDateTime but it doesn't allow me to say "only the hour" Oct 21 12:26:36 plz? Oct 21 12:30:04 How can i manage my button id's? Oct 21 12:30:49 mr1holmes: Did you add the button using an adapter? Oct 21 12:31:15 i mean i have X buttons that added/removed dynamically, when i add a button, it must be below the before one, so i need the id of the before one, what id's should i set for each button? random? Oct 21 12:31:27 @Mrdarknezz Yes Oct 21 12:34:52 @Mrdarknezz what i want is when i scroll it should scroll normally , and on normal single touch it's onClick should get called Oct 21 12:35:40 wow, another one that insists on using @? Oct 21 12:35:41 lol Oct 21 12:36:14 welcome to twitter 2.0 Oct 21 12:37:51 indeed, now taking place on an ancient textual medium such as irc Oct 21 12:38:17 it doesn't have the memory issues that twitter does ;) Oct 21 12:38:32 sorry, i'm new to IRC Oct 21 12:38:50 powered by a generation that only ever heard of twitter to begin with :p Oct 21 12:39:10 ravilov: in reality, twitter is essentially just reverse irc anyhow Oct 21 12:39:20 and it gets some things better :) Oct 21 12:39:28 mr1holmes: IRC is more like multiplayer notepad than twitter Oct 21 12:39:34 irc doesn't have the 160-char limit as far as I know ;) Oct 21 12:39:48 on irc, you have to ignore people. on twitter, you have to unignore people. and when you do, you get their entire history. Oct 21 12:40:52 I just think it's funny how people get used to a certain philosophy and netiquette to the point they think it applies everywhere else as well Oct 21 12:41:20 it's twitter's fault for not having tab-completion :) Oct 21 12:41:27 :) Oct 21 12:42:11 if people were used to tab-completing twitter, they'd start typing rav and hit tab and see it becomes "ravilov:" instead of "@ravilov" and catch on fast. :) Oct 21 12:42:42 Are Toasts reusable? I mean, can I cancel() the toast and then change text using setText() and then again call show()? Or should I make a new toast everytime? Oct 21 12:42:45 so my argument is solidly that it's twitter's fault, not the users :) Oct 21 12:43:37 astroduck, I've never seen toasts being used in any way other than Toast.makeToast().show(), but that's just me :p Oct 21 12:43:38 btw i don't use twitter :) Oct 21 12:44:08 lewellyn, actaully it's irc's fault for having to use tab at all, on twitter you just click the nick and it autocompletes for you :p Oct 21 12:44:17 mr1holmes, well you certainly have the mentality then :p Oct 21 12:44:32 some irc clients work that way, too. but we don't speak of those in polite company. Oct 21 12:44:34 ravilov: I'm using a custom toast so I was just wondering if reusing it would be better or not. Oct 21 12:44:40 maybe it's facebook? they stole the @ thing from twitter anyway Oct 21 12:46:00 I can't get drawable state_activated to show up on a Galaxy Tab 4 -- it works fine on all other 4.4.2 devices, but not here. Anyone else run into this? Google turns up questions, but no answers. Oct 21 12:46:18 astroduck, yeah I know technically you can inject your own view and do all kinds of stuff, but I've never bothered, so... ;) Oct 21 12:46:32 It works for single ImageView's or TextView's but not views in a LinearLayout. Oct 21 12:46:56 ravilov: I like IRC's tab completion, but its no possible in a webpage as Tab is used to change focus, it'll be really irritating if Tab was use for anything other than that on a website. Oct 21 12:47:06 *not possible Oct 21 12:47:24 And yes, I've tried making them 'Checkable' and that doesn't seem to work -- even extended the linearlayout for Checkable and propagating that down manually. Oct 21 12:47:27 no it wouldn't, have you ever seen freenode's webirc? works perfectly fine Oct 21 12:48:58 ravilov: On a page where the only element to interact with is a textbox. but on twitter, if tab was used for auto completion, you would have to click outside before you can use arrow keys to navigate up/down Oct 21 12:49:27 And I hope no one here prefers mouse over keyboard Oct 21 12:49:49 you could always remap shift+tab or something to be a get-out-of-tabbed-textbox tab Oct 21 12:50:38 Changing too many things would go against design principle #1: Don't make me think! Oct 21 12:51:13 because twitter is generally good at that? :p Oct 21 12:51:30 LOL Oct 21 12:52:29 So anyone here knows if reusing a custom Toast is a good idea or not? Oct 21 12:54:02 I'm not sure what you mean with reusing but you could just define a method with a string parameter and pass that on to the toast builder to "reuse" Oct 21 12:55:33 VnM: Yeah kinda like that, so its not bad if I do that? Oct 21 12:55:45 No issues whatsoever? Oct 21 12:56:13 Can't think of any Oct 21 12:58:01 how can i perform click events on button normally, at the same time passing scroll event to the parent listview ? Oct 21 13:02:00 mr1holmes, just put the button logic in the onclick method and also add something like listView.smoothScrollToPosition(i) or simply listView.setSelection(i) ? Oct 21 13:06:00 VnM: i don't want to scroll while user is clicking the button, currently i can't scroll listview when i start scrolling from the button Oct 21 13:06:34 hey guys im trying to upload my first apk file Oct 21 13:06:40 i got that message You uploaded a debuggable APK. For security reasons you need to disable debugging Oct 21 13:07:57 whatitis: Checking now Oct 21 13:08:02 Tomashe: android studio or eclipse? Oct 21 13:09:25 astroduck: Studio. Oct 21 13:09:35 Good afternoon. I have Android smartphone. Is there anyway someone can install apps and then the apps check if the user has Google Chrome or not if not it downloads and installs the app then launch it to use WebRTC? next time if the app is executed it will check if it exists it will simply use the WebRTC from Google chrome? Oct 21 13:09:47 (sorry, picked that up out of context) Oct 21 13:10:14 greymalkin: You need to create signed release APK, goto build > Generate Signed APK Oct 21 13:10:28 whatitis: No, it's not returning isActivated correctly. Oct 21 13:10:42 greymalkin: And I didn't notice the name, oops :P Oct 21 13:10:57 hmm I've seen listviews (or at least scrollviews) with buttons inside, scrolling and clicking works seamlessly Oct 21 13:11:06 np Oct 21 13:12:27 Here's the bit of relevant code (and there's no multi-threading of the cartHasPart method, it's still true) Oct 21 13:12:30 http://pastebin.com/6sX7k3cv Oct 21 13:12:51 Why is the view not activating? Oct 21 13:14:04 OS is 4.4.2, Oct 21 13:14:11 Device is Galaxy Tab 4 Oct 21 13:14:22 Works great on every other device I've tried. Oct 21 13:26:35 Nevermind... that code was somewhat bunk (some items were not activated) Oct 21 13:26:49 The view *does* return 'isActivated' properly. Oct 21 13:26:57 hi guys, can anybody point me to some examples on how to change the height and the color of a seekbar? Oct 21 13:27:10 But still the child views still don't show the right state. Oct 21 13:32:15 Question, if you can't see any system image in sdk manager, whan can be the solution to get system images? Oct 21 13:32:41 how do i change the font size from my settings page Oct 21 13:33:22 reopen the sdk manager ? Oct 21 13:37:00 https://stackoverflow.com/questions/26488091/adb-connection-not-working-because-of-a-double-port Oct 21 13:37:42 asperon: http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ Oct 21 13:38:43 astroduck, thanks, but i really need to do it dynamically in code Oct 21 13:38:46 GrecKo not working Oct 21 13:42:41 I've updated to Android Tools 23.0.5 but ADT Plugin is out of date. When I try to update it tells me there is a conflict and only one can be installed at once. Anyone know what I can do? Oct 21 13:43:14 I'm on a mac, the android sdk is installed in my home directory, and i'm trying not to reinstall due to having to download a lot of stuff. I have a time sensitive project. Oct 21 13:44:13 Cannot complete the install because of a conflicting dependency. Software being installed: Android Hierarchy Viewer 23.0.4.1468518 (com.android.ide.eclipse.hierarchyviewer.feature.feature.group 23.0.4.1468518) Software currently installed: Android Developer Tools 22.3.0.v201310242005-887826 Oct 21 13:49:34 Anyone have suggestions for random subset of users with LVL issues? Is the server managed policy just not all that robust? I saw https://code.google.com/p/marketlicensing/issues/detail?id=41, but it has only explained one issue. Oct 21 13:50:45 The only logcat I got from a user showed a signature verification failed, but I have checked the public key in my main activity and it's fine. It's also working for the vast majority of users. Oct 21 13:59:25 xdabbeb: http://www.reddit.com/r/androiddev/comments/2jspqi/got_many_recent_reports_of_license_verification/ Oct 21 14:00:45 I have a relative layout, and inside that a few TextViews and LinearLayout, now I want another full screen RelativeLayout to show up when I click a button. Should I add this relativelayout as a child of the root relative layout or is there a better way? Oct 21 14:01:02 bubbleguuum: thanks! I'll take a look Oct 21 14:13:20 Okay, I updated my API level, and now setChecked works -- but I don't want to have to fall back on this hack, since setActivated is supposed to work for api 11 and above. Oct 21 14:21:56 hey guys, i have a viewpager and make some size-calculations based on the layouts on all pages at startup. I make these calculations in the function onWindowFocusChanged because i thought everything will be drawn then so that i have some values i can work with (like widths/heights of linearlayouts),..... Oct 21 14:21:57 but this only works for the first 2 pages(page:0, page:1). Pages>=2 seem to be not drawn yet. Where can i make my calculations and be sure all pages are drawn? Oct 21 14:23:15 adkins, use a view tree observer Oct 21 14:23:59 https://stackoverflow.com/questions/26488091/adb-connection-not-working-because-of-a-double-port?noredirect=1#comment41611521_26488091 Oct 21 14:24:08 I'm trying to give my textfield focus and open a softkeyboard at the same time. The textfield does receive focus, but the keyboard doesn't open. here's the code that I expect to do this http://pastebin.com/YegkSERG Oct 21 14:24:12 why doesn't this work? Oct 21 14:25:35 exit Oct 21 14:27:43 try SHOW_FORCED Oct 21 14:27:59 pfn: ok, thx, never heard of ;) got a little more eplanation for me? Oct 21 14:29:53 elichai2, probably because the. emulator only listens on localhost Oct 21 14:30:03 adkins, use the google Oct 21 14:30:08 pfn how can i change that? Oct 21 14:30:13 are you afraid of the official docs, adkins? Oct 21 14:32:05 elichai2, look at options when running emulator Oct 21 14:32:16 ie emulator -help Oct 21 14:32:17 ravilov: no ;) found something, I think its easy to put such observer on a layout ..... in case of pages: do i need to add one to each layout on each page? Oct 21 14:32:25 pfn, i'll look Oct 21 14:32:43 elichai2, or if it's a Linux vm, use iptables to redirect Oct 21 14:33:30 elichai2, you can do netstat -a on the vm to see if it's because it's only listening on localhost Oct 21 14:33:41 i looked i don't see anything about IP or localhost in the emulator help Oct 21 14:33:52 pfn, wait a second Oct 21 14:33:58 the Emulator is on the Host Oct 21 14:34:09 what i need to do and where to check it? Oct 21 14:34:34 maybe i'll run nmap on the Host IP and see if 5554 is open Oct 21 14:35:54 pfn, nope, it seems like 55** is closed Oct 21 14:36:26 ravilov, show forced doesn't work either, as before I have to click on the element again to get the keyboard Oct 21 14:36:27 not nmap Oct 21 14:36:30 netstat Oct 21 14:36:41 pfn, ok, what to run and where? Oct 21 14:36:50 netstat Oct 21 14:37:06 already told you what to run Oct 21 14:38:25 pfn: i added a globallayoutlistener to my viewPager but it doesnt work any better, exactly the same: if pageNumber>=2.......not drawn yet... Oct 21 14:38:55 netstat -a | grep 5554 Oct 21 14:38:55 tcp 0 0 localhost:5554 *:* LISTEN Oct 21 14:38:59 that's on the host Oct 21 14:39:09 (where the Emulator is running) Oct 21 14:41:20 If I have a view (that contains a few textviews) and I want the entire thing to be clickable, I can simply set the onclickListener. However, there is no viusal feedback that the element was clicked. Is there a secret to making this happen? Oct 21 14:42:00 pfn, here? Oct 21 14:42:26 greetings guys, I have some questions regarding Intents in Android Oct 21 14:42:34 namely, how I use them Oct 21 14:42:58 for example, if I have activities A, B, and C all listening for the same intent. Even if only activity C was in the foreground Oct 21 14:43:16 would the intent only be received by C, or would A and B also receive it as well? Oct 21 14:46:03 hey guys Oct 21 14:46:26 at one point in my program I'm trying to use myListView.getAdapter().getItem(i); and I'm getting back all null Oct 21 14:46:35 elichai2, notice how it says localhost Oct 21 14:46:44 while the loop that runs this code returns the myListView.count() as the correct number Oct 21 14:46:51 pfn: just in case you`re curios.....setOffscreenPageLimit(10); makes 10 pages of the viewpager drawn after creating. it is 2 by default. Solved! Oct 21 14:46:51 pfn, how can i change it? Oct 21 14:47:10 elichai2, told you already Oct 21 14:47:17 emulator -help Oct 21 14:47:21 i looked Oct 21 14:47:30 adkins sounds like a horrible idea Oct 21 14:47:38 this? -shared-net-id join the shared network, using IP address 10.1.2. Oct 21 14:47:40 Odaym good idea to find out what is null before asking for fix ideas Oct 21 14:47:49 JacobTabak: why? Oct 21 14:47:53 the objects themselves Oct 21 14:48:01 Odaym which "object" Oct 21 14:48:08 adkins terrible waste of memory Oct 21 14:48:20 the one who sits inside an array that has a size of the same size that this listview is showing Oct 21 14:48:34 elichai2, and if there isn't an option, iptables Oct 21 14:48:45 or maybe -netfast disable network shaping Oct 21 14:48:46 and if you don't have iptables, find an equivalent for your host Oct 21 14:48:56 the count is true, but I dont think the means of getting the "getItem" from getAdapter is true, cause inside the adapter there was no where where I said "setItems" to be this array I need to access Oct 21 14:49:03 ah so the return value is null ? whats the backing data look like at the point you ask for an item ? Odaym Oct 21 14:49:05 I just passed it in the constructor and from it constructed each row Oct 21 14:49:39 JacobTabak: can you explain that a lil more? Oct 21 14:50:07 adkins if you have offscreen page count at 10 all 10 of those pages need to be rendered and loaded into memory Oct 21 14:50:12 well by then it would have already constructed the list and I can see all the data, upon moving one of the items (from a class - SwipeListView on Github) I want it to run through the dataset and check a parameter before it moves the item Oct 21 14:50:36 pfn, i have no experience in iptables Oct 21 14:51:03 adkins same reason a gallery app finding and loading all pictures in all folder on your phone when starting would be a bad idea Oct 21 14:51:14 JacobTabak: but what if i need to draw all 10 to make calculations.......how about setting to 10 and after i`m done setting back to 2? ;) Oct 21 14:51:18 elichai2, so? Oct 21 14:51:22 elichai2, is this #iptables? Oct 21 14:51:34 pfn, i think -shared-net-id is what i look for Oct 21 14:51:49 now i need to find a way to change my IP to something with 10.1.2.X.X Oct 21 14:53:28 heh, but it's not Oct 21 14:53:51 pfn, it's not? Oct 21 14:53:56 https://stackoverflow.com/questions/4044479/comunication-between-android-emulators Oct 21 14:54:23 StingRay_: i see, but what would you do in my case? what do you say about setting to 10 , do calculations and setting back to 2 ? Oct 21 14:54:39 irrelevant Oct 21 14:55:02 already loaded 10/measured etc Oct 21 14:55:29 StingRay_: ok......can i free the other 8 pages from memory again? Oct 21 14:55:30 same reason that gallery app would be slow and clunky Oct 21 14:55:58 why are you doing this ? why do anything when nothing is on screen to user ? Oct 21 14:56:01 There are obvious reasons why you shouldn't load all 10 pages. Your job now is to find a way to do what you need to do without loading all 10. Oct 21 14:57:23 StingRay_: it would just have been easier than the other way i can think of. but what you`re saying guives me the feeling there is no other way ;) Oct 21 14:57:53 adkins listen to SimonVT, he is old and wise and foreign Oct 21 14:58:22 StingRay_: SimonVT? Oct 21 14:58:34 view tree observer... Oct 21 14:58:46 yeah, you now need to find a way without loading all 10 Oct 21 14:59:36 StingRay_: alright, thanks a lot. but who is SimonVT? Oct 21 15:00:11 not sure how to answer "who am I" so "who someone else is" is beyond me … sorry Oct 21 15:00:35 t.t Oct 21 15:00:38 lol Oct 21 15:02:22 i overread the SimonVT name in above lines ;) Oct 21 15:02:46 or overlooked (if that is the better word, also foreign ;) ) Oct 21 15:05:24 pfn, i tried this, and it didn't worked :\ sudo iptables -A INPUT -p tcp --dport 5554 -j ACCEPT Oct 21 15:05:49 elichai2, again, this is not #iptables nor #linux Oct 21 15:06:11 :( Oct 21 15:06:40 and your host is linux? Oct 21 15:08:34 I don't know why I can't show my keyboard. Oct 21 15:09:01 even when I don't do it in if(requestFocus()) it's not shown Oct 21 15:09:11 I don't know why google made the gdrive api so crappy Oct 21 15:09:14 can two tables be created in same SQLiteDatabase? Oct 21 15:09:45 suko things like JOINs would be a bit pointless if that were not the case Oct 21 15:09:50 suko, yes Oct 21 15:10:18 man, why hasn't ViewServer been published to central Oct 21 15:10:46 Becuase it seems Google devs think MavenCentral has ebola. Oct 21 15:11:03 i have created two inner classes for tables. However, my code is throwing error that the second table does not exist! Oct 21 15:11:28 well, viewserver is romain's specifically Oct 21 15:11:34 and it's external to the android team Oct 21 15:11:38 i.e. it's his personal project Oct 21 15:11:45 mhm Oct 21 15:11:54 pfn he not around no more ? Oct 21 15:11:56 it's annoying we need that shim at all tho Oct 21 15:12:07 StingRay_, he's not on the android team Oct 21 15:12:09 I usually keep around a couple of rooted devices to not have to bother with it -_- Oct 21 15:12:32 pfn ah so no point being here then :) Oct 21 15:12:43 StingRay_, and he doesn't hang around as much anymore, no Oct 21 15:18:10 god damn it... why doesn't this show the soft keyboard? ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).showSoftInput(itemText, InputMethodManager.SHOW_FORCED); Oct 21 15:21:56 Syzygy_ ((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.SHOW_IMPLICIT); Oct 21 15:22:12 if you just want to pop it up Oct 21 15:23:08 I don't see how toggling would work when showing doesn't work, but I'll try it Oct 21 15:24:56 well, I guess it works. thanks Oct 21 15:25:29 ok now look at your view itemText, there will be some ambiguity with what/how it is I would guess Oct 21 15:25:35 if you wanted to fix that is Oct 21 15:26:05 if you dont care then fk it :) Oct 21 15:27:59 StingRay_, I'm not sure what you mean Oct 21 15:29:06 I mean maybe you have some flags set on that view itemText Oct 21 15:29:26 like no intereaction (touch,enabled,touchable , focusable etc) Oct 21 15:30:03 it's newly created and setFocusable(true); is pretty much the only thing I do Oct 21 15:31:03 code created ? Oct 21 15:31:35 it gets inflated with singleLine = true, imeOption=actionDone, background=@null, inputType = textCapWords. the rest is just setFocusable(true) right before it requests focus Oct 21 15:32:51 StingRay_ SimonVT pfn thx a lot again. got what i want :) Oct 21 15:33:06 (and of course there's some layout stuff that's not really worth mentioning) Oct 21 15:33:42 man, new appcompat library so pretty Oct 21 15:33:50 now there's a compelling reason to use it on api14-19 Oct 21 15:35:44 Does Theme.Material AlertDialogs support vertically stacked buttons as defined by the Material spec ? It doesn't seem it does, and unlike the Holo theme, if the buttons text is too large to fit horizontally, it is just put on 1 line and clipped...(Holo spreads the text on 2 lines). Oct 21 15:42:23 hi guys Oct 21 15:43:45 I'm creating my own dialog by this way: http://pastebin.com/xuppD86W but I need to avoid to hide it by clicking outside, it has only 2 buttons and I want to force user to choose one of them Oct 21 15:43:49 is it possible? Oct 21 15:44:58 Sepho there is a good chance that any question with " force user " in it is answer with a no, and if it isn't it needs reporting to google :) Oct 21 15:45:10 or thats my opinion anyways :) Oct 21 15:47:05 Sepho, setCancelable(false), setCanceledOnTouchOutside Oct 21 15:47:21 on a Dialog instance. Oct 21 15:48:27 StingRay_: it's a GameOver dialog, so the only possible options are: retry or go to main menu Oct 21 15:48:32 thanks both! Mavrik Oct 21 15:48:53 Sepho… ah, there is a bug with immersive mode and cancel outside touch btw Oct 21 15:49:31 or rather maintaining it and wanted behaviour, with standard dialogs Oct 21 15:53:03 hey guys, I’m trying to print this bitmap with a 3rd party sdk over bluetooth.. Oct 21 15:53:22 anyway it has a method called printBitmap(byte[] bmpfile, int bmpLenth) Oct 21 15:53:34 in the method is this Oct 21 15:53:35 http://pastebin.com/aDmGee2v Oct 21 15:53:55 I am passing byte[] bitmap, int bitmap.length Oct 21 15:54:41 has anyone styled the new SearchView yet? I'm trying to do a SearchView in a Toolbar below the Action Bar, and I am doing exactly what Chris mentioned here (https://chris.banes.me/2014/10/17/appcompat-v21/), but I can't seem to get it to change. Does that style only apply if it is in the action bar? Oct 21 15:56:00 got it.. im passign a png, prog expects a bitmap Oct 21 16:01:02 anyoen know how to convert a png to a true bmp? Oct 21 16:01:22 true ? Oct 21 16:01:25 Bitmap.CompressFormat.PNG I’ve found but does that not compress to PNG? Oct 21 16:01:34 yeah Oct 21 16:02:20 the cyte stream I have. the first 6 bytes are -119 80 78 71 13 10 Oct 21 16:02:24 0x89 Oct 21 16:02:27 png Oct 21 16:02:30 byte Oct 21 16:02:46 printer sdk is expecting a bmp Oct 21 16:04:28 Hello Oct 21 16:04:28 I am trying to launch the android emulator with a basic Hello world Oct 21 16:04:34 it gets stuck in the Android loading letters.. Oct 21 16:04:42 I am getting Oct 21 16:04:43 E/EGL_emulation﹕ Failed to establish connection with the host Oct 21 16:04:48 E/﹕ Failed to connect to host (QemuPipeStream)!!! Oct 21 16:04:50 I am starting to believe that there are no true BMPs in the Android universe Oct 21 16:04:55 I am using windows 8 Oct 21 16:04:58 any idea? Oct 21 16:05:22 AMD or Intel? Oct 21 16:05:36 I have AMD and I can’t get my emulator to load.. so I gave up Oct 21 16:05:55 works find on Intel though Oct 21 16:06:00 fine* Oct 21 16:07:28 newer_: You should switch to genymotion Oct 21 16:07:45 Intel Oct 21 16:09:06 tracebkac may be usefull: http://jsfiddle.net/x00a565u/ Oct 21 16:20:07 why this is giving me a warning : Map table_of_contentsMap= new HashMap(); Oct 21 16:20:21 because Class is a raw type Oct 21 16:20:25 Class Oct 21 16:20:40 and this map is view_id (Integer) vs Activity as a class.. Oct 21 16:20:58 so what!? Oct 21 16:21:51 what I am doing : when I click on an ImageButton it should go to an Activity. Oct 21 16:22:18 i tried it on a single button. it works. Oct 21 16:22:43 it's a little easier to manage than switch case statements Oct 21 16:25:02 hey guys Oct 21 16:25:43 I have a problem with reading a file in my app, can anyone of you help me? Oct 21 16:26:16 needcoin, elaborate Oct 21 16:37:39 sorry my cat just broke something -_- Oct 21 16:38:05 the problem is: i want to read a file Oct 21 16:38:17 but i get a nullpointer exception/the file is not found Oct 21 16:39:31 @needcoin Are you sure the file exists? Oct 21 16:39:57 Why does android studio think my class is missing despite being in the same package, it seems to want packagename.ClassName Oct 21 16:39:59 However it builds just fine Oct 21 16:43:57 @bpye can you be more specific? Is that in the manifest? Oct 21 16:44:04 In a bunch of Java files Oct 21 16:44:22 I'm using classes I define, however ANdroid Studio claims the symbol cannot be resolved Oct 21 16:44:29 IT can and is when the project is built Oct 21 16:46:44 bpye What happens when you attempt to resolve it? Is there an option to import? Can you show a screencap? Oct 21 16:47:04 If I use the option to import it prefixes the reference with the class name Oct 21 16:47:18 If I add an import manually it stops the complaint but then it says the import is unnessecary Oct 21 16:47:22 (which is true) Oct 21 16:50:20 anyone have success with this? https://github.com/ultrakain/AndroidBitmapUtil/blob/master/src/com/ultrasonic/android/image/bitmap/util/AndroidBmpUtil.java Oct 21 16:50:39 I am getting bufferoverflowexception Oct 21 16:50:50 so I added 1024 extra bytes.. Oct 21 16:50:54 now my image is blank Oct 21 16:51:08 bpye prefixes the reference with the package name or class name? Oct 21 16:51:16 Package name Oct 21 16:51:19 I already have the class name Oct 21 16:51:21 java.lang.Float myFloat; vs just Float myFloat Oct 21 16:51:46 Yeah, I have the later, and it will make the former, only for things in my package though, all java and android stuff works fine Oct 21 16:52:14 I've had that happen before, iirc it was an IDE setting or when the names of classes were incommon Oct 21 16:52:24 For example I had a Location class and so did Android Oct 21 16:52:30 LanguageHelper? Oct 21 16:52:31 For example Oct 21 16:52:40 can anyone help me with this : http://stackoverflow.com/questions/26491304/write-to-device-database-and-return-its-location Oct 21 16:52:41 I don't see an issue there Oct 21 16:53:09 yeah I don't see a conflict with taht bpye Oct 21 16:53:37 hello, what's the proper way to report a bug in ndk-build? Oct 21 16:53:45 bpye http://stackoverflow.com/questions/22701789/android-studio-import-class-action-adds-fully-qualified-name Oct 21 16:53:49 try that? Oct 21 16:54:05 well.. image isnt blank but that util doens’t work like I would expect it to Oct 21 16:54:20 tricknology_ does it work without the utility? Oct 21 16:54:40 Nope not that Oct 21 16:54:55 As I said, I can use any android. or java. classes fine Oct 21 16:55:08 Do people actually use traceview? Or is it just me who finds it so arcane. Oct 21 16:55:24 IT's not on either Oct 21 16:55:33 Maybe it's your project structure? Oct 21 16:56:08 lut4rp: Sure, I use it if necessary Oct 21 16:56:08 osipovas does what work? the image? Oct 21 16:56:15 well android doesn’t support BMP proper Oct 21 16:56:16 osipovas: maybe, I am having trouble finding what it should be, it was an eclipse import Oct 21 16:56:23 the printer expects a bmp Oct 21 16:56:33 only byte[] bmp Oct 21 16:56:37 SimonVT, it took my entire day to figure out the whats, wheres and hows. :( Oct 21 16:56:58 There doesn't seem to be a lot of documentation on d.android.com either Oct 21 16:56:59 Actually crap yeah that's it Oct 21 16:57:01 THanks :D Oct 21 16:57:07 no problem Oct 21 16:57:57 Don't know if it's been mentioned in any io talks Oct 21 16:58:02 man, really loving bitbucket Oct 21 16:58:05 I find it quite useful for certain things Oct 21 16:58:08 * lut4rp checks Oct 21 16:58:52 seems legit Oct 21 16:58:53 tricknology_ http://en.wikipedia.org/wiki/BMP_file_format this is what you need for the printer? Oct 21 16:59:07 my alma gives out free github privates though Oct 21 16:59:16 yessir Oct 21 16:59:20 proper windows bitmap Oct 21 16:59:33 not png like Android wants us to use Oct 21 17:00:24 am I goign to have to construct this? Oct 21 17:00:37 Tricknology try Bitmap.CompressFormat.JPEG? See what happens? Oct 21 17:00:51 I’ll try Oct 21 17:00:53 Good morning/evening everybody! Oct 21 17:00:58 SimonVT, is there anything other than traceview that you rely on? Or is that pretty much it? Oct 21 17:01:40 Lots and lots of logging Oct 21 17:02:00 heh Oct 21 17:02:12 I find traceview useful for debugging animation lag Oct 21 17:02:18 See if anything stands out Oct 21 17:02:26 that facebook's social comment plugin, is it available to be used within Android apps? Oct 21 17:02:26 Other than that, just logging Oct 21 17:03:09 That's sort of what I was trying to fix. Infinite viewpager swiping through some very loaded views. Oct 21 17:03:21 I´m programming in eclipse with osx 10.10, I have just updated to JDK 8 to target API 21, and now I have a slight slower behaviour in Eclipse. Anyone notice this issue? Oct 21 17:03:26 http://googledevelopers.blogspot.com/2014/10/updated-material-design-guidelines-and.html ... PSD, AI, and ... Sketch? fuck Sketch, give me svgs Oct 21 17:03:32 Anyone here use QPython? I get an error while trying to use input() or raw_input() Oct 21 17:04:41 g00s https://github.com/google/material-design-icons Oct 21 17:04:44 SVGs right there lol Oct 21 17:05:33 osipovas oops ! Oct 21 17:05:37 :D Oct 21 17:06:26 this is a table of contents of Activities based on a list of ImageButton to choose from. http://pastebin.com/209dLyCv Oct 21 17:06:27 why did they mention Sketch then, oh well i hope the svg's don't have Sketch specific namespace Oct 21 17:06:54 or maybe these are SVgs exported from AI Oct 21 17:06:54 https://raw.githubusercontent.com/google/material-design-icons/master/action/svg/ic_3d_rotation_24px.svg Oct 21 17:07:01 no clue Oct 21 17:07:15 I hope someone criticizes/comment for me on this. Oct 21 17:07:26 osipovas :( no luck. jpg makes it stop spooling Oct 21 17:07:32 returns -9 Oct 21 17:07:45 here http://pastebin.com/aDmGee2v Oct 21 17:08:02 imgSize != bmpLenth Oct 21 17:08:33 where is this from? what are you trying to interface with T_T Oct 21 17:08:44 a bluetooth printer Oct 21 17:08:58 Can you use the 4.4 printing api? Oct 21 17:08:58 it’s from their SDK Oct 21 17:09:10 eeeh. is it only for 4.4 devices? Oct 21 17:09:23 because we still have some on 2.3 X( Oct 21 17:09:28 https://developer.android.com/about/versions/android-4.4.html#Printing Oct 21 17:10:06 guys, I updated to Yosemite on Mac, now Android Studio is complaining about storage or some such - anyone else seeing this issue? Oct 21 17:10:26 shipit, thankfully no.. (because I use an ubuntu :P ) Oct 21 17:10:44 sheikhaman smart! Oct 21 17:11:20 :D Oct 21 17:11:57 sheikhaman: +1 Oct 21 17:12:11 guys, this is not funny ... Oct 21 17:13:18 Q about the printing framework.. how does it do this? Oct 21 17:13:26 Sorry to laugh at your expense, but on the contrary, it is quite funny Oct 21 17:13:37 usualyl I have to make a BT connection then execute print commands specific to the device Oct 21 17:13:41 byte commands Oct 21 17:13:49 over BT socket Oct 21 17:13:59 wondering about compatibility.. Oct 21 17:14:14 it complained about needing java 6 and then it just performed harakiri Oct 21 17:14:24 lol Oct 21 17:14:29 AS on mac? Oct 21 17:14:31 re-installing java 7 -- Oct 21 17:14:35 y, AS on mac Oct 21 17:14:40 use Java 8 Oct 21 17:14:54 someone in here had this exact problem yesterady Oct 21 17:15:14 forgot what they did.. but they didnt install Java 6 Oct 21 17:15:23 I don’t even think you can anymore Oct 21 17:15:29 hm Oct 21 17:15:38 k, installing java 8 Oct 21 17:16:26 I have java 8 on mac, no problems Oct 21 17:16:30 but I also don’t have yosemite yet Oct 21 17:16:44 thx tricknology_ Oct 21 17:16:51 I'll update in a min Oct 21 17:17:04 no shipit, i hope it works out for you Oct 21 17:18:07 i need Java 6 on oxc Yosemite to run Eclipse? Oct 21 17:18:25 hahahaha Oct 21 17:18:31 read a few lines above mylord Oct 21 17:19:03 I heard of some issues with Eclipse and Yosemite, I haven’t updated yet Oct 21 17:19:08 You don’t need Java 6, I believe Oct 21 17:19:23 I don’t even think you can download if it if you wated to.. try Java 8 Oct 21 17:19:59 you can download 6 i think.. but i don’t want to.. i Oct 21 17:20:02 I have 8 Oct 21 17:20:15 at least from command line java says 8 Oct 21 17:20:17 is there something similar to exclusionpath from ios on android? Oct 21 17:20:54 wtf.. i’d move to Android Studio but I have a phonegap project and they don’t work well together yet Oct 21 17:21:26 eclipse is a real piece of garbage huh? Oct 21 17:21:35 it won’t even let me open it to change settings Oct 21 17:22:50 lol mylord, the consensus it yet but I like it Oct 21 17:23:46 I only like Eclipse becaue it doesn’t have gradle — which people generally like, but which I find more complex for simple imports, where in Eclipse I can just drag or import from menu Oct 21 17:24:00 I don’t want to become an expert in an IDE import system.. just make it easy for me Oct 21 17:24:39 I notice only that Eclipse is not going fast JDK 8 with osx 10.10, there is a lag, thinking that I have to re-install Oct 21 17:25:02 might be a yosemite issue Oct 21 17:25:10 mylord check the logs Oct 21 17:25:10 java 6 eclipse yosemite site:logs.nslu2-linux.org/livelogs/android-dev/ Oct 21 17:25:18 copy paste that whole thign into google Oct 21 17:25:33 StingRay_ had that question Oct 21 17:25:37 josemiguelgalvan: so you got JDK 8 with Yosemite + Eclipse? How? Oct 21 17:26:14 19:01:32 Eclipse doesn't like Java 8 much Oct 21 17:26:41 Eclipse +1. OSS quality 0 Oct 21 17:29:20 No complaints by moving from Eclipse to Android Studio. Overall quality is better. Oct 21 17:29:41 gradle has a bit of a learning curve, but it's worth it imo Oct 21 17:30:01 I never really knew anything about Ant either Oct 21 17:30:31 ya, i’m moving the f away from eclipse.. i see that cordova can work fine with android studio Oct 21 17:30:59 runs dead slow on osx also Oct 21 17:31:22 Eclipse or Android Studio? Oct 21 17:31:23 looks like AS is working on Yosemite after java8 upgrade Oct 21 17:33:32 Eclipse runs slow on osx.. AS runs fast.. last I checked, b4 yosemite.. will update soon again Oct 21 17:34:12 AS takes some getting into but far more sanity than Eclipse Oct 21 17:34:58 for me AS is just trying way too hard to be "smart" and do things for me Oct 21 17:35:28 I don't want it to, I'm perfectly happy with how Eclipse works Oct 21 17:35:34 btw editing AS' Info.plist is necessary http://stackoverflow.com/questions/24124911/cant-run-android-studio-on-yosemite Oct 21 17:36:06 shipit how do AS's fonts look under java8 ? Oct 21 17:36:26 g00s: crisp! I'm on a retina mac book pro btw Oct 21 17:36:42 ah nice, i hev old machine with low dpi Oct 21 17:36:58 g00s: pamper yourself :) Oct 21 17:37:03 you probably wouldnt notoice subpixel AA vs greyscale AA Oct 21 17:37:19 you'd be suprised Oct 21 17:37:35 so i wonder if they fixed that then. they were only doing subpixel in JavaFX Oct 21 17:37:55 welp, I'm locked out of my github account :/ Oct 21 17:37:59 Whats wrong with this Theme.AppCompat from Material Design supportV7 ? Oct 21 17:38:03 oonoo Oct 21 17:38:16 everything Oct 21 17:38:24 AppCompat /mehates it Oct 21 17:38:29 i have to define android:textColor in my style or it will crash every time i want to create a textview without explicitly defining a color Oct 21 17:38:32 lol why trick? Oct 21 17:39:24 a fix for it will surely come out soon enough Oct 21 17:42:08 Any good way to generate a color based on pixels of an underlying bitmap? I'm aiming for optimal contrast/readability. Oct 21 17:42:29 osipovas the color pallette lib Oct 21 17:42:34 its in support :) Oct 21 17:43:15 ty sir Oct 21 17:43:23 i thought I heard something about during Google IO Oct 21 17:43:31 but couldn't remember the name and searches came up empty Oct 21 17:49:40 does anyone have a good tutorial for the new Toolbar thing? Oct 21 17:53:42 ... and the crowd went silent Oct 21 17:53:43 :p Oct 21 17:53:48 ^^ Oct 21 17:53:59 danijoo all i saw was https://chris.banes.me/2014/10/17/appcompat-v21/ Oct 21 17:54:12 not sure thats a tutorial, but some info anyhow Oct 21 17:54:57 better than nothing Oct 21 17:55:07 :( Oct 21 17:55:15 oh fuck, OneTab lost ... everything, all my tabs Oct 21 17:55:28 man why does everything suck so basly Oct 21 17:55:31 i might be to oldschool but im not sure if i understand the andvantages of that toolbar thingy.. Oct 21 17:55:33 *heh, badly Oct 21 17:55:56 actionbars in fragments, yay. but now i have to create my own menu item listeners and stuff, dont i> Oct 21 17:56:22 The advantage is that it's a regular view Oct 21 17:56:42 That you can animate and all that awesome stuff you can do with a regular view but not the action bar Oct 21 17:57:29 but it doesnt use the default onOptionsItemSelected anymore, does it? Oct 21 17:58:33 If you call setActionBar or setToolBar or whatever it's called I believe it does Oct 21 17:59:02 But yeah, you can manage it all manually if you want Oct 21 17:59:09 anyone done any styling with the new SearchView? (made an SO question about styling it like Chris Banes mentioned, http://stackoverflow.com/q/26491419/1747491) Oct 21 18:00:16 SimonVT sorry if i asked already, but do you know what widget they are using for tabs now? i still see Tabs in material apps but they look a little different? Oct 21 18:01:37 for example http://www.androidpolice.com/2014/10/20/a-quick-look-at-the-next-step-toward-material-for-google-play-books-on-android-lollipop/ Oct 21 18:02:52 Probably just a linearlayout and textviews Oct 21 18:03:23 Install a custom ROM and use hierarchy viewer to find out Oct 21 18:04:48 SimonVT so you don't think that is PagerTabStrip then ? Oct 21 18:06:58 Maybe Oct 21 18:07:06 Never seen them in action Oct 21 18:07:42 Now you know how to find out :) Oct 21 18:09:46 never installed a custom rom before. i need my device to work :) Oct 21 18:10:19 well, the sane thing would be for google to update the "building blocks" of the design guidelines Oct 21 18:10:44 whenever i see PagerTabStrip and PagerTitleStrip, the look so cheesy Oct 21 18:11:01 so it must be something else, or TabHost baaaaa! Oct 21 18:11:18 g00s take it as a "View" and do with it what you want :) Oct 21 18:11:22 safest bet Oct 21 18:11:59 i find the hap of information interesting. nav modes are deprecated but they don't say what to use instead for tabs Oct 21 18:12:15 christ, i have to type slower Oct 21 18:13:23 when using the paint object from a text view to measure text, does it take into consideration the typface that is applied to it? Oct 21 18:13:25 g00s dont get too hung on needing to be told what to do, it's not healthy :) now go try out 10.10 Oct 21 18:13:40 i think i'll update to 10.9 StingRay_ Oct 21 18:14:00 did not add much though ? FB/Twitter balls Oct 21 18:14:30 I think it's 10.8 or 10.10… thats the way I feel atm Oct 21 18:16:21 "Firebase is Joining Google" hmmmmmmmm :( Oct 21 18:17:05 any way i can kill Home Screen ? Oct 21 18:17:26 the default Home Screen of android Oct 21 18:17:52 What is "Firebase" ? a company? Oct 21 18:18:12 yeah, nice database product Oct 21 18:20:53 never installed a custom rom before. i need my device to work <-- me too, that's exactly why I'm using a custom ROM, have used the same ROM for the past 1.5 years ;) Oct 21 18:21:10 (which is probably longer than most of you have owned your current phone :p ) Oct 21 18:21:23 thats great, but i want to run what my users are running, which is stock Oct 21 18:21:36 butbut... I'm your user too! Oct 21 18:21:38 (not really) Oct 21 18:22:09 also, that would be a much better argument than "I need my device to work" ;) Oct 21 18:25:28 i thought roms are notorious for breaking drivers ? Oct 21 18:25:43 grab that blob put it here, hope it works , lalalalala Oct 21 18:26:06 oh no sources, lets hack the block to change a few things, oh doesn't crash, shipit ! Oct 21 18:26:34 what could be the reason for intellij xml previewer not showing support library views anymore? Oct 21 18:26:50 danijoo hm, JasonTabak mentioned that bug i think Oct 21 18:27:12 for example im getting errors for drawerlayout Oct 21 18:27:16 g00s, yeah often times custom ROMs have no access to source code for proprietary drivers so are stuck with fiddling with binary blobs... guess I'm just lucky and everything works Oct 21 18:27:23 makes the previwer unusable at that point.. Oct 21 18:27:27 danijoo https://code.google.com/p/android/issues/detail?id=77777 Oct 21 18:27:32 thanks! Oct 21 18:28:51 do you know what is this bug is related to? Today I updated Intellij, my os, build tools and support library ^^' Oct 21 18:30:38 so everything is messed up at my workspace Oct 21 18:30:42 what a day Oct 21 18:34:01 I have a question Oct 21 18:34:06 danijoo, no more software left to break, I suggest you switch to hardware now :p Oct 21 18:34:33 :D Oct 21 18:34:38 Mugwump101: just ask Oct 21 18:34:47 Okay thanks Oct 21 18:34:50 dont ask to ask is rune #1 Oct 21 18:34:51 Mugwump101, that is cool, I have a sandwich Oct 21 18:34:53 rule* Oct 21 18:34:56 I think I'm winning here :p Oct 21 18:35:01 like fight club rules :D Oct 21 18:35:15 yes. rule #2 is stacktrace or gtfo Oct 21 18:35:34 there is rule #0 too, though Oct 21 18:35:35 oh noes, I'll gtfo... I just want to ask a logic question. Oct 21 18:35:55 it is - google and google more before attempting to ask Oct 21 18:35:56 every rule has its exceptions Mugwump101 :) Oct 21 18:36:12 some more* Oct 21 18:36:23 ravilov: http://imgs.xkcd.com/comics/tech_support_cheat_sheet.png Oct 21 18:36:56 yeah seen that long time ago, but wonder how come you had the link so handy ;) Oct 21 18:37:39 was on 9gag a few days ago, this time i googled it (found with first try! - search word guru) Oct 21 18:38:03 So I have viewpager setup where the user can save or dismiss entries. When the user saves an entry, I want that entry to set up a repeating alert/alarm e.g. after a week. If a user clicks on dismiss, I want to be able to repeat the view of the entry after 15 mins (kind of like a snooze feature). Oct 21 18:38:09 hehe Oct 21 18:38:38 In this case, I would have to set up multiple repeating alarms. I was thinking how do I best go about this? Oct 21 18:39:01 Should I add the dismissed views to a collection and set alarm to show that collection afte 15 mins. Oct 21 18:39:16 The same thing will be doen for saved views and set alarm for a weekly reminder. Oct 21 18:46:07 anyone know how to make a run configuration in intellij/android studio that will run a gradle task after install? Oct 21 18:46:29 i have the gradle task which depends on install, and it works fine when I install with gradle, but not from the IDE Oct 21 18:46:46 ie, i need to grant permission to disable animations Oct 21 18:49:20 I wouldn't save the entire views in a collection. You mean the contents of the views? Oct 21 18:51:37 JacobTabak: Just guessing here, but I think you can make a gradle run configuration that first runs your Android run configuration then does whatever Oct 21 18:51:50 (never done it, no support provided) Oct 21 18:51:54 :) Oct 21 18:54:41 seems like part of the problem is with the path, it's not finding adb, i guess I can work around that Oct 21 18:58:28 osipovas, yes just the contents I mean Oct 21 19:00:39 man this is depressing http://www.reddit.com/r/androiddev/comments/2jw9cj/as_an_android_developer_and_user_having_your/ Oct 21 19:00:56 i don't understand why google can't simply prevent an offending app / change to be made in the first place Oct 21 19:01:20 if you update your description it should run the keyword spam system, and prevent the update Oct 21 19:01:58 why this retroactive permaban for life with no appeal bullshit? its such a douche move Oct 21 19:02:53 wtf are people releasing to get banned? Oct 21 19:03:20 osipovas well a few months ago, there was one dev (i haven't seen him in here since) that went through this Oct 21 19:03:40 he copied and pasted the legalese from the company he was working with into his description Oct 21 19:03:53 Does android have an after load event? i see on start, but not on finish of app loading Oct 21 19:03:58 basically he did what he was supposed to do. google's system flagged him based on that Oct 21 19:04:39 osipovas and thats just the problem ... what /are/ people doing? i bet many people don't even know what they are doing to wind up in hell Oct 21 19:05:20 when laws are things are made, these are under constant scruting and interpretation by lawyers - but in this case the lawyer is an algorithm biased by its creators Oct 21 19:05:41 decision, unilateral, permanent, binding forever. Oct 21 19:06:30 now if your app is caught stealing money from people, infecting with malware, etc thats a whole different arena Oct 21 19:07:21 and this is why google should not be invited to control any portion of a person's life ;) Oct 21 19:07:25 even their thermostat Oct 21 19:07:36 is there an irc channel related to cyanogen mod and the oneplus one? Oct 21 19:08:46 #cyanogenmod? Oct 21 19:08:57 no one in there Oct 21 19:09:02 oops Oct 21 19:09:11 my mistake thanks Oct 21 19:09:37 the android camera layout doesn't change but it changes the icon orientation only. so it seems the layout is locked but it still get notification of orientation change. anybody got ideas on how to do that? Oct 21 19:10:06 aspire: For the future, you might ask alis (/msg alis list *cyanogen*) before you ask other for channel-suggestions. ;) Oct 21 19:10:07 that reminds me, one plus one or nexus 6??? hmm Oct 21 19:10:25 nexus 6 Oct 21 19:10:37 why? :P Oct 21 19:11:01 It is better but more expensive :S Oct 21 19:11:07 Neither Oct 21 19:11:36 why Simon? Oct 21 19:11:48 Oversized crap :| Oct 21 19:15:41 if they are going to have a nexus 6" phone, it would be nice if they had a ~ 4" device too Oct 21 19:16:04 so your choices are 6" and 9" now :| Oct 21 19:16:33 Should I just buy the Nexus 5? Oct 21 19:16:42 Yes, I have a crappy old phone lol Oct 21 19:17:33 Is there a way to petition for Google to release a cheaper smaller phone? Oct 21 19:17:46 lol Oct 21 19:18:05 Mugwump101 if they sold Android One phones i'd get one Oct 21 19:18:09 (here in the US) Oct 21 19:18:55 lol, my emulator just rebooted. hammering it too hard, guess. Oct 21 19:22:46 maybe. Actually a peculiar thing about my emulator is when I use telnet to change the battery levels and charging states, at some point, it just blanks out. Oct 21 19:23:21 g00s, Android One? Really? Oct 21 19:24:57 ohh I just googled it and the funny thing is, although my old phone is slightly better than the Android One, it still won't allow me to run kitkat on it. Oct 21 19:25:15 is there a one-click screenshot inspector for hierarchy viewer in android studio? Oct 21 19:26:02 Hello guys. I'm trying to set size for a WebView. After setting size using webview.setLayoutParams(LayoutParams(200, 200)), I see the white square and a full-screen black layout behind it, I can't see the screen of my application. How can I remove this black screen, and actually use this WebView inside the app? Oct 21 19:26:23 if that code is kinda different, that's because I don't know much about Java and I'm developing in Python, kivy framework actually. I just need a Java snippet, and try to change it in Python way :) Oct 21 19:33:29 I am curious if I am setting a repeating alarm based on a value in my db, do I need to update the value in my db at some point or does it not really matter? Oct 21 19:33:43 Hi all, I'm trying to set up SQLite storage for my app. I know I need to use a separate thread (task?) to perform the database operations and I've seen a few references to using a Loader to acheive this. This is where I hit a bit of a contradiction... every example for using a Loader I have seen uses a content provider. Reading the docs, I don't need a content provider if the data is to be accessed only from within the app. First question, is a Oct 21 19:33:43 Loader the right way to go for this... second question, is there a way of implementing a Loader without a content provider? Oct 21 19:34:16 loaders suck Oct 21 19:34:37 don't use them Oct 21 19:34:57 You suck Oct 21 19:34:58 gsteinert if you must, i think cwac has a CursorLoader Oct 21 19:35:10 SimonVT are you a loader apologist? Oct 21 19:35:12 or :D Oct 21 19:35:20 I use them Oct 21 19:35:27 convince me Oct 21 19:35:30 JacobTabak: is there an alternative? I remember using an async task (or something like that) in the past but I can't tell if thats still a suitable option Oct 21 19:35:42 every time i do new db stuff i ask, man is there a better way to do this shit nowadays :P Oct 21 19:35:55 SimonVT: purely from a learning curve point of view, I'm completely lost with Loaders! Oct 21 19:36:13 I just use a cursor Oct 21 19:36:23 gsteinert i just do the work on another thread (asynctask is one way to do it), then save it to instance state onPause() Oct 21 19:36:33 save the results, rather than using a loader Oct 21 19:36:34 my app that uses sqlite, just uses the basic databasehelper. doesn't use loaders, linked lists, rocket fuel, etc. etc. etc. etc. basic CRUD operators for most apps aren't intense enough to require asynchronous tasks. Oct 21 19:37:05 Currently a really big fan of: https://github.com/emilsjolander/sprinkles Oct 21 19:37:08 yea you can go ahead and ignore that comment, don't query on the UI thread Oct 21 19:37:10 JacobTabak: Thanks, I'll take a look Oct 21 19:37:42 First of all, a model must subclass se.emilsjolander.sprinkles.Model Oct 21 19:37:42 NO Oct 21 19:37:48 i'm not subclassing your shit ever Oct 21 19:37:51 stop making libraries that do that Oct 21 19:37:59 i'm not? Oct 21 19:38:04 i know you're not Oct 21 19:38:05 lol Oct 21 19:38:05 If you have a ContentProvider, Loaders are convenient Oct 21 19:38:06 emils is :P Oct 21 19:38:07 ormlite is great Oct 21 19:38:11 Results are retained across configuration changes Oct 21 19:38:32 SimonVT i think they're really only good when using content providers Oct 21 19:38:34 Little lifecycle management (e.g. loaders are destroyed with the fragment that created them) Oct 21 19:38:37 which I refuse to use also Oct 21 19:39:09 I generate my contentprovider with an annotation processor Oct 21 19:40:19 yea i just store the results in saved instance state Oct 21 19:40:25 its like 2 lines of code Oct 21 19:40:31 Being able to define specific endpoints behind the scenes (i.e. not anywhere near my ui code) is quite convenient Oct 21 19:41:42 And lots of code for the parcelable crap Oct 21 19:42:08 and the async task ^^ Oct 21 19:42:35 i use an annotation processor for parcelables Oct 21 19:42:43 Parcels.wrap(my list of anything) Oct 21 19:43:51 and i don't use async tasks Oct 21 19:44:56 JacobTabak did you figur eout your rx dilemma from yesterday ? Oct 21 19:45:10 yea Oct 21 19:45:18 ended up just using a NewThreadExecutor Oct 21 19:45:20 er Oct 21 19:45:24 singlethreadexecutor? Oct 21 19:45:31 because it was super easy to just swap in a guava SameThreadExecutor for unit testing Oct 21 19:46:08 it ended up being rather complicated to use the handlerThread scheduler because you need to create the handler on another thread which by nature is asynchronous, Oct 21 19:46:26 font seems better now, still bad compared to 10.9 but manageable Oct 21 19:53:57 anyone know if (or where I should look to find out if) ImageIO is supported in Android? Oct 21 19:54:25 ah yes Oct 21 19:56:27 tricknology_, no, ImageIO is certanly not supported Oct 21 19:56:32 you have whole Android Bitmap API Oct 21 19:57:55 Hello ! Oct 21 19:58:21 So this thin font is Java 8's problem? or Yosemite's? Oct 21 19:58:25 where the F#@! are the samples for API 21 ? Oct 21 19:58:40 hey guys Oct 21 19:59:05 I'm trying to play a bit with Android Studio, with the default full screen appli, I try to deeactivate the UI Toggle every time I click on the app, but can't find out how, does anybody know ? Oct 21 19:59:06 i got a cert for my site the other day but chrome says its unsafe?! ff on pc is fine with it though.. Oct 21 19:59:16 g00s, they're not out yet Oct 21 19:59:25 what could be chrome on android Oct 21 19:59:26 Mavrik, are you referring to the Bitmap that comes with Android? Oct 21 19:59:30 Afzal, it's java 8 problem Oct 21 19:59:31 because that one is not sufficient Oct 21 19:59:35 Afzal any idea when? Oct 21 19:59:36 Afzal, install Apple Java in Yosemite and it's ok Oct 21 19:59:51 g00s, nope. I think they'll come with the final SDK if not earlier Oct 21 20:00:17 Mavrik, what I need is the capability to take a PNG and convert to windows BMP Oct 21 20:00:25 Bitmap only supports jpeg and png Oct 21 20:00:37 uh Oct 21 20:00:41 tricknology_ BMP, seriously ? Oct 21 20:00:46 uh x2 Oct 21 20:00:54 tricknology_, yes, I'm refering to that Oct 21 20:01:20 Hello guys Oct 21 20:01:41 yeah that is not working for me Oct 21 20:01:41 tricknology_, you'll have to find a BMP encoding library, even though I have no idea why would you want that. Oct 21 20:01:42 has anyone used Eqela? Oct 21 20:01:47 I have a printer SDK that requires a bitmap Oct 21 20:01:52 windows Oct 21 20:01:53 BM Oct 21 20:01:58 0x89 Oct 21 20:03:13 tricknology_, honestly it doesn't look like alot of work to implement it yourself: http://en.wikipedia.org/wiki/BMP_file_format Oct 21 20:03:28 write a header, DIB header and raw pixel data and that's that Oct 21 20:03:58 Thanks Oct 21 20:04:57 nobody? :D Oct 21 20:07:02 Afzal all going ok on 10.10 ? Oct 21 20:07:35 StingRay_, don't like the font from Java 8 so I'm putting Java by apple again Oct 21 20:08:45 thanks Mavrik Oct 21 20:08:48 Afzal, you do know that you can use Java 8 for compiling stuff and command line Oct 21 20:08:56 Afzal, and Java 6 just for IDEA right? :) Oct 21 20:09:33 Yeah @ Mavrik, sadly IDEA was crashing when I tried to find files when I started with Java 8 Oct 21 20:12:54 anyone else want this? https://code.google.com/p/android/issues/detail?id=77929&thanks=77929 Oct 21 20:13:13 star if you do Oct 21 20:13:13 ! Oct 21 20:13:38 Is there a way to launch to all attached devices automatically in Studio? Oct 21 20:14:17 I often mix a handful of devices on 3 different usb cables and would prefer to not have to select every time Oct 21 20:14:19 shit, setTheme() doesn't seem to work with appcompat Oct 21 20:14:52 pfn didn't qicr use setTheme() for light / dark ? Oct 21 20:15:17 zambo you can run tests on all devices with radle Oct 21 20:16:07 you can also do installDebug/installRelease but that doesn't run it Oct 21 20:16:13 oh heck yes Oct 21 20:17:22 radle=gradle Oct 21 20:18:42 JacobTabak, we can already copy/paste files Oct 21 20:18:51 Are you in the "Android" project view? Oct 21 20:19:38 Afzal between Android Studio and IntelliJ? Oct 21 20:21:03 JacobTabak, never tried that but between windows in Android Studio and between Finder <-> IntelliJ/AS Oct 21 20:21:17 yea, my point exactly :) Oct 21 20:21:21 is there an ios dev? Oct 21 20:21:25 #ios-dev Oct 21 20:21:56 lemme ask differently has anyone here used software such as: Adobe Air, Appcelerator, Kony, Marmalade SDK, eqela ? Oct 21 20:22:42 i.e develop once and port onto different platforms Oct 21 20:23:08 I'm considering one of it for my project, just want to be sure it really works Oct 21 20:23:12 don't do it Oct 21 20:23:16 anyway you came to the wrong place Oct 21 20:23:20 if you want favorable opinions on that crap Oct 21 20:24:42 JacobTabak, I have already created my first android app. I have to work one for Windows phone, thought I could use my android knowledge to create this app and then port it to windows phone Oct 21 20:24:44 guys, with gradle how to I make source jar? Oct 21 20:24:45 peska just try to find a good app on google play that was made with that cross platform stuff Oct 21 20:25:33 shipit check the answer here http://stackoverflow.com/questions/17218295/android-gradle-build-system-create-jar-not-library Oct 21 20:25:51 make a jar task Oct 21 20:25:52 I'm using: task jarSources(type: Jar) { from android.sourceSets.main }, it creates the jar but only manifest, no .java Oct 21 20:26:08 is your sourceset created correctly? Oct 21 20:27:12 yup Oct 21 20:27:35 JacobTabak, So they are just saying BS? I checked eqela's website. They claim to be better than their competitors :D I couldn't find anybody mention them online though Oct 21 20:27:39 so kinda fishy Oct 21 20:27:47 well that should work.. you can always do 'jar cf ..." from cli Oct 21 20:28:39 man, I want to use this gradle thing to do all this stuff Oct 21 20:28:45 it works Oct 21 20:28:49 ive made jars before Oct 21 20:28:51 it doesn't for me :( Oct 21 20:28:52 you done goofed somewhere Oct 21 20:29:55 peska the point is if that was a good approach you'd see good apps that use that stuff Oct 21 20:31:57 good apps, that is Oct 21 20:33:34 i want to put some strings in res/values for english and the same in german in res/values-de and want the user to be able to select in preferences which one of both he/she wants. how do i force in my app to use one or the other? Oct 21 20:33:39 do you know a canonical source for this task? not SO but android-library plugin Oct 21 20:34:13 shipit most people who make java libs for android do it with maven rather than gradle Oct 21 20:34:23 or do it as a java project in gradle Oct 21 20:34:26 rather than an android project Oct 21 20:34:28 well ok, thanks Oct 21 20:34:29 and will the device autmatically use german if the language in android settings is set to german if i do it that way? Oct 21 20:34:31 which would probably make more sense Oct 21 20:35:02 shipit you can have your sample project as an android module, and your library project as java module Oct 21 20:35:31 it just doesnt make sense to make a jar with the android plugin applied, know what i mean? Oct 21 20:35:39 JacobTabak fundamentally a gradle task is invoking 'jar cf' on a dir tree -- not rocket science Oct 21 20:36:32 task whatever(type: Exec) { commandLine "derpderpderp.bat" } Oct 21 20:36:57 https://github.com/eowise/recyclerview-stickyheaders/blob/master/library/build.gradle Oct 21 20:37:00 i think i found something-nevermind, thx Oct 21 20:37:14 no, I'm successful with far more complex tasks with gradle, so it's a matter finding the syntax/properties Oct 21 20:41:07 man all these classes and methods with "support" in them really sucks ass Oct 21 20:41:31 and you may say getFragmentManager instead of getSupportFragmentManager Oct 21 20:41:43 this keeps snowballing into a pile of shit Oct 21 20:44:38 I am wondering, when would I ever need to do anything in gradle? Oct 21 20:45:04 I've never directly interfered with a build before, so sorry if this is a n00b question? Oct 21 20:46:06 * shipit nods at g00s Oct 21 20:47:21 shipit http://stackoverflow.com/questions/19307341/android-library-gradle-release-jar that worked as well Oct 21 20:47:51 lo… banned from ##java Oct 21 20:48:03 thx JacobTabak, I'm actually looking at this page as we speak :) Oct 21 20:48:51 tricknology: Lol. Why? Oct 21 20:49:04 g00s: I agree. Oct 21 20:49:06 It's so ugly. Oct 21 20:49:21 for saying “It has been my observation that as time goes by there are more and more blogs obscuring the search results I really desire. “ Oct 21 20:49:47 yup JacobTabak! that was it! the property for source tree is: android.sourceSets.main.java.srcDirs Oct 21 20:49:51 off topic I guess Oct 21 20:49:53 The admins in ##java are terrible. Oct 21 20:50:04 TacticalJoke how so? Oct 21 20:50:07 yeah, it’s kind of toxic in there :( Oct 21 20:50:14 * JacobTabak bites tongue Oct 21 20:50:16 They kick/ban people for absolutely nothing. Oct 21 20:50:18 ~rtfm Oct 21 20:50:28 * JacobTabak is glad he's not an admin Oct 21 20:50:29 They also start fights with people and then kick those people when they fight back. Oct 21 20:50:42 It’s kind of brutal Oct 21 20:50:44 * JacobTabak is drowning in the blood from biting his tongue so hard Oct 21 20:50:47 * g00s is not surprised TacticalJoke has trouble in ##java :D Oct 21 20:50:52 ^ Oct 21 20:50:56 Oh, I never get kicked in there. Oct 21 20:51:01 Not sure why, though. Oct 21 20:51:07 I call them on their you-know-what. Oct 21 20:51:13 well I knew something would happen when I wrote that after they hit ~blog Oct 21 20:51:17 I actually asked to be kicked recently. They strangely declined. Oct 21 20:51:23 but I didn;t know it would be a ban Oct 21 20:51:31 I think they remove the bans. Not sure. Oct 21 20:51:45 now im gonna go in there Oct 21 20:51:45 I’m not really worried. It’s probably not long-term Oct 21 20:51:49 lol no Oct 21 20:51:57 it’s cool Oct 21 20:52:01 I'm in there. Haha. Oct 21 20:52:33 Srsly, the admins are like 12-year-olds. It's a shame. Oct 21 20:52:37 halp ... anyone get setTheme() working when using ActionBarActivity.onCreate() { super ... ; setTheme (); } Oct 21 20:52:56 if this was #java g00s you would get ~rtfm Oct 21 20:53:01 :P Oct 21 20:53:06 tricknology_ can you tell me where it is then ? Oct 21 20:53:07 ~tias Oct 21 20:53:27 because my theme extends from AppCompat; i'm thinking its some invariant check in the delegation crap Oct 21 20:53:34 and timing Oct 21 20:54:17 i could not at all tell you how Oct 21 20:54:25 * ravilov is tempted to actually visit ##java Oct 21 20:54:26 er where Oct 21 20:54:27 I feel like rebelling and using Holo for a long time. Oct 21 20:54:37 ... nah the temptation is gone Oct 21 20:54:41 Themes are not my friend Oct 21 20:54:44 In some ways, I prefer Holo to "Material Design". Oct 21 20:55:16 there's nothing to "prefer" about material - it's not prettier or more advanced or anything, it's just the newest fad Oct 21 20:55:17 Material Design popup menus are just weird -- especially when they hide the button that spawned them. Oct 21 20:55:37 there isn't a setSupportTheme() Oct 21 20:55:42 ravilov: Do you think it'll be killed eventually (like everything else)? Oct 21 20:55:52 s/eventually/in the not-so-distant future/ Oct 21 20:55:56 TacticalJoke sop asking such silly questions Oct 21 20:56:07 < Oct 21 20:56:09 OOPS Oct 21 20:56:12 How is that silly? Oct 21 20:56:12 oops again Oct 21 20:56:31 note to self: do not wipe keyboard when computer is on Oct 21 20:56:31 There's no need for a setSupportTheme.. It not possible to have a setSupportTheme.. Oct 21 20:56:31 'do you think google will X" ... who the fuck knows what google will do? Oct 21 20:56:55 do I think google will die? yes, eventually Oct 21 20:56:59 SimonVT ActionBarActivity.setTheme() isn't working for me Oct 21 20:57:03 Someone who's been programming for Android for years know more than I do about it. Oct 21 20:57:08 So I'll ask their opinions. Oct 21 20:57:17 If you don't like it, that's not my problem. Oct 21 20:57:25 I'm sure it's just you not knowing when or how setTheme works Oct 21 20:57:41 do you guys think TacticalJoke will ask some question about google's unannounced future plans? Oct 21 20:57:56 SimonVT well, it works prior to appcompat Oct 21 20:57:59 TacticalJoke why do you cause so much trouble >< Oct 21 20:58:11 Sigh. Oct 21 20:58:14 lol Oct 21 20:58:17 SimonVT also, this is the way the old Holo demo used to work switching light . dark themes at runtime Oct 21 20:58:21 Wait.. Android Studio is also saying it wants Java 6 on my OSX Yosemite Oct 21 20:58:29 * ravilov has not been programming for android "for years" Oct 21 20:58:31 First JacobTabak. Now g00s. What is going on. Oct 21 20:58:39 As does IntelliJ Oct 21 20:58:44 Anyone got around this? Oct 21 20:59:04 TacticalJoke, you are? :p Oct 21 20:59:11 mylord I did Oct 21 20:59:13 Right, so.. setTheme has to be called before the decor view is created.. You can check PhoneWindow for when that happens.. If setTheme "doesn't work", something is causing it to be created Oct 21 20:59:18 TacticalJoke there is a pattern ... Oct 21 20:59:19 * ravilov has no context or anything, just dropped in Oct 21 20:59:25 shipit, how? Oct 21 20:59:30 g00s: Uhh, get off my back. Oct 21 20:59:49 If all you do is super and setTheme, it's probably appcompat that causes does something new in onCreate Oct 21 20:59:58 mylord install Java8 from oracle, and edit /Applications/Android Studio.app/Contents/Info.plist, change JVMVersion to 1.7* Oct 21 21:00:09 ah, nice Oct 21 21:00:15 You're smart enough to figure out what.. Anyway Oct 21 21:00:27 SimonVT yeah, all i so is super() and setTheme Oct 21 21:00:29 so, command line already says Java8, so I guess I’ll try straight for the Info.plist Oct 21 21:00:44 SimonVT like i said, this is the exact code from google samples sooo Oct 21 21:00:59 Samples for appcompat v21 Oct 21 21:01:00 ? Oct 21 21:01:14 Behavior changes Oct 21 21:01:14 are there samples for appcompat ? Oct 21 21:01:22 shipit, it worked! thx! Oct 21 21:01:34 mylord: glad :) Oct 21 21:01:39 I don't know, unless it's samples for appcompat r21 it's not really relevant is it? Oct 21 21:01:55 i'll file a bug and let god sort it out Oct 21 21:02:23 Or call setTheme before super Oct 21 21:02:44 SimonVT that doesn't work either Oct 21 21:03:24 shipit, any idea on how to do this for eclipse? Oct 21 21:03:38 the file /Applications/Android Studio.app/Contents/Info.plist doesn’t show java 1.6 anywhere Oct 21 21:03:42 mylord nope - don't use Eclipse Oct 21 21:03:50 err: vim /Applications/Eclipse.app/Contents/Info.plist Oct 21 21:03:53 mylord i do Oct 21 21:04:02 mylord but I’m not sure what you’re tryign to do.. Oct 21 21:04:15 shipit, ya, but my gradle version isn’t supported.. i’m building a cordova (v 4.0) app Oct 21 21:04:32 tricknology: i’m trying to get Eclipse to use my Java7/8 Oct 21 21:04:34 no exp with cordova, but I do have Eclipse Oct 21 21:04:44 mylord look for JVMVersion in Info.plist Oct 21 21:04:47 trick, how to get it to not close on the Java 6 error? Oct 21 21:04:50 HI Oct 21 21:04:50 ok Oct 21 21:05:01 ah, i got that error but I don’t remember waht I did Oct 21 21:05:24 shipit: i don’t see anything java related here: vim /Applications/Eclipse.app/Contents/Info.plist Oct 21 21:05:27 does anyone know how I can access the real information about the max texture size on a certain phone Oct 21 21:05:28 Apple is like, let's bomb these Android mofos back to Java6! Oct 21 21:05:28 and no mention of 1.6 Oct 21 21:05:34 hahaha Oct 21 21:05:57 apple is such a filthy pos Oct 21 21:06:01 lol Oct 21 21:06:04 true dat mylord Oct 21 21:06:05 oph yes Oct 21 21:06:11 java -version Oct 21 21:06:20 would someone mind answering a question about binder transactions? (is that an appropriate question to ask here?) Oct 21 21:06:21 sorry, wrong box Oct 21 21:06:39 I have java 1.8 Oct 21 21:06:55 it forces closed? Oct 21 21:07:06 Is it possible to resize the webview parent? I have resized the view already, but its parent (the black full-screen behind it, is covering the whole screen) Oct 21 21:07:18 SimonVT ok, i had to call requestWindowFeature before super() Oct 21 21:07:35 ChrisUK, GL_MAX_TEXTURE_SIZE Oct 21 21:07:43 so i guess i need supportRequestWindowFeature Oct 21 21:07:52 apparently you can't change Z order for fragment transaction animations? is this true? Oct 21 21:08:06 ie, my exit animation is on top of my enter animation... and i can't seem to fix it Oct 21 21:08:11 mylord, do you have Java for OSX? Oct 21 21:08:44 seems i need to play catch up, are all the cool kids doing material these days? :( Oct 21 21:08:47 and are you 10.10? Oct 21 21:08:56 ha, that’s under debate.. Oct 21 21:09:20 I'll never go with the flavor of the flavor designs that google recommends Oct 21 21:09:56 only to need a suport-lib for it Oct 21 21:10:23 bankai_au: I'm waiting for the new support-v7 bugs to be fixed before even thinking about that. Oct 21 21:10:42 are there lots? Oct 21 21:10:59 iosched works, so it has to work at some level Oct 21 21:11:03 Not sure, but I've seen a lot of reports on Reddit and in here. Oct 21 21:11:15 are you sure they're bugs or people who don't understand things? Oct 21 21:11:17 TacticalJoke isn't sure because he isn't coding, just being a pita Oct 21 21:11:45 I'm getting close to putting you on ignore, g00s. Oct 21 21:11:48 Seriously, back off. Oct 21 21:11:55 \o/ Oct 21 21:12:03 TacticalJoke i wouldn't care seriously Oct 21 21:12:19 bankai_au, I've been using support libs since L preview and they worked rather ok Oct 21 21:12:31 (at least for RecycleView and CardView) Oct 21 21:12:32 "rather ok" hahaha ;) Oct 21 21:12:47 Hmm... ? Oct 21 21:13:10 i'm using appcompat and its working OK too, i had one bug but got arround it Oct 21 21:13:50 * bankai_au puts it on the todo list Oct 21 21:14:32 Yeah, didn't try the new appcompat yet, the larger libs are usually buggy at the release :) Oct 21 21:14:39 Hey guys, I'm trying to implement a spinner menu. One of the examples I found: http://stackoverflow.com/questions/13526913/android-actionbar-actionbarcompat-spinner-dropdown-list , creates an adapter with the resource id R.array.locations . Can anyone explain how I create an array resource? Do I just create an arrays.xml file? Oct 21 21:14:58 Getting design to be anywhere near niceness of Lollipop material stuff is the hard part anyway Oct 21 21:15:31 helichopter, http://developer.android.com/guide/topics/resources/string-resource.html#StringArray Oct 21 21:15:32 yeah by default it just made my fonts look weird / too small Oct 21 21:15:52 helichopter, so inside your strings.xml you do :) Oct 21 21:16:17 instead of material, they shuld have called it Microscopic Oct 21 21:16:25 tricknology_: Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Oct 21 21:16:39 works fine to load up AS, just not finding Eclipse fix yet Oct 21 21:16:58 do you still get some of the pretty? Oct 21 21:17:03 maybe its a JAVA_PATH Oct 21 21:18:46 hm. in my SettingsActivity, using the AppCompat theme messed up widget colors Oct 21 21:20:02 SettingsActivity isn't in the support lib, so I guess for those activities, i should use Holo or Material stright up ? Oct 21 21:20:03 there's also the AutoCompleteTextView theme bug :) Oct 21 21:21:32 oops, i meant PreferenceActivity Oct 21 21:22:00 so general rule of thumb, if our activity is not a descendent of ActionBarActivity, should we avoid Appcompat theme ? Oct 21 21:22:11 g00s, it always seemed like the PreferenceActivity is the bastard child of the API Oct 21 21:22:19 heh, yeah indeed Oct 21 21:22:20 my compiler compliance level is 1.6 Oct 21 21:22:23 in eclipse Oct 21 21:22:25 g00s, it seems Google tried to push us to use PreferenceFragment or whatnot Oct 21 21:22:27 and PreferenceFragment ... Oct 21 21:22:31 but that was terrible in its own right Oct 21 21:22:49 If someone can tell me where to look I’ll look Oct 21 21:23:01 there is no SupportPreferenceFragment so I guess we have to do it a bit differently :) Oct 21 21:23:14 yeah. Oct 21 21:23:18 *grumbles at google* Oct 21 21:23:24 but I honestly dont remember what I did to get ti to work.. I DLed Java 8 first, then Eclipse, got the error, loked for 1.6, got Java for OSX Oct 21 21:23:28 then i dunno Oct 21 21:25:37 tricknology: On Windows, I just downloaded the JDK 7, and everything just worked (with Eclipse). Not sure about Mac. Oct 21 21:26:22 man, I can't seem to debug w/ ART :( Oct 21 21:27:02 then debug without? if it works on dalvik, it should work on art too Oct 21 21:27:20 or else it's likely not your problem but an issue/bug in art Oct 21 21:27:58 lol it’s a mac thing definitely Oct 21 21:28:04 i'm wondering if anyone can help me understand (point me to somethng) to help me understand, say, ActivityManagerService, since it *seems* like the call "finishActivity()" creates a transaction which then calls back to "finishActivity()" which makes no sense =/ Oct 21 21:28:18 TacticalJoke, mac thing Oct 21 21:28:34 ravilov I see sporadic issues w/ ART Oct 21 21:28:39 just while debugging Oct 21 21:28:46 slows the app to a halt Oct 21 21:28:53 even when remote debugging Oct 21 21:29:45 hmm, I've had those issues too Oct 21 21:29:55 except that they disappeared on latest Android 5.0 image Oct 21 21:30:17 knowing what i know atm - no way i'd be first in line for android 5 device XD Oct 21 21:30:29 maybe second :p Oct 21 21:30:45 maybe like , next year, 5.4 :) Oct 21 21:30:53 lo Oct 21 21:30:54 l Oct 21 21:31:27 g00s, mmm, why? Oct 21 21:32:41 because bugs are a waste of time, that’s my 2 cents Oct 21 21:33:25 Mavrik that data released from testdroid shows after 4.0, the platform seems to be getting more and more unstable Oct 21 21:33:45 ah Oct 21 21:33:47 *shrug* Oct 21 21:33:48 and here we are with another big release, i'd just wait for a while Oct 21 21:34:25 I prefer to test my software on new releases Oct 21 21:34:33 oh yeah i will do that too Oct 21 21:34:34 so people get working stuff on their new phones :) Oct 21 21:34:53 i meant more as a personal device Oct 21 21:34:59 everyday , carry device Oct 21 21:35:30 but if the BT stack doesn't work well, like now - not much you can do about it Oct 21 21:35:58 mhm Oct 21 21:36:00 well, ATM i'm coding for 2 distinct categories of bahevior wrt BT : what nexus does, and what samsung does Oct 21 21:36:26 I've seen bunch of issues on the previous L preview Oct 21 21:36:42 is there any android 5.0 api demo? Oct 21 21:36:42 The latest image is surprisingly stable on my N5 for Google beta :P Oct 21 21:36:49 i'd like to have a cardview sample Oct 21 21:37:06 not touching the BT, Camera or other Media APIs with a long stick until final release tho :P Oct 21 21:37:38 Mavrik: did you have to backup your data on the N5? Oct 21 21:37:55 yes. Oct 21 21:38:03 it blows away everything? Oct 21 21:38:06 the preview images murder everything on the phone Oct 21 21:38:11 thought so Oct 21 21:38:13 thx Oct 21 21:38:15 so you guys have data on your lollipop N5? mine turned into an ipod Oct 21 21:39:01 Mine works rather well, even battery has improved Oct 21 21:40:01 everything works fine for me I just don't have mobile internet anymore, I just assumed that was "normal" lol Oct 21 21:41:15 so .. PreferenceActivity can't really be deprecated since it provides that header behavior Oct 21 21:41:47 stuff should go in PreferenceFragment, yeah -- but PA is still necessary for headers Oct 21 21:42:26 Memorion, uh, no :P Oct 21 21:42:43 we don't need no stinkin fragments! Oct 21 21:42:43 Memorion, you might have skipped the radio update, you're missing APN settings for your carrier, or you have an asshole carrier :P Oct 21 21:43:31 Mavrik a already reflashed the radio and the apn settings seem correct Oct 21 21:43:57 (also my carrier started deploying 800MHz LTE which means 10Mbit+ mobile internet in the middle of nowhere \o/) Oct 21 22:05:28 is there a hacker group on here? I think maybe they might be able to help me haha Oct 21 22:05:45 #hacktheplanet? lol Oct 21 22:06:38 lol redirect Oct 21 22:08:51 yay, I created a new apn with the same settings as before (I think) and now it works Oct 21 22:11:20 is there interstitial ad unit id for testing? Oct 21 22:40:14 well this sucks Oct 21 22:40:36 I have 3 items in my amazon cart. of those, 3 cannot be shipped to me. all because I don't live in the US Oct 21 22:46:32 did Google update anything today? my N5 just froze Oct 21 22:48:03 I think it's Google's retarded Hangouts crapshoot Oct 21 22:48:28 receive SMS, if N5 plugged into adb/usb, it may get toasted Oct 21 22:49:03 logcat reports touch errors worth encyclopedia britannica Oct 21 23:13:45 I found out yesterday that Android (at least from 4.1) has a reboot-in-safe-mode function. Just tap and hold "Power off" (after holding the power button). Oct 21 23:20:22 what's that do ? Oct 21 23:21:22 TacticalJoke: cool, though I guess it's a way to disable lots of popular security apps out there Oct 21 23:22:07 how can I get set up with an environment to compile source code for my Nexus 5?... just command line programs Oct 21 23:23:42 is there a docker container set up for cross compile? Oct 21 23:24:18 FunkyELF: what are you trying to do ? Oct 21 23:25:07 bankai_au: I want to try to compile ffmpeg Oct 21 23:25:38 https://trac.ffmpeg.org/wiki/CompilationGuide/Android Oct 21 23:27:44 Hello Oct 21 23:27:48 Need help Oct 21 23:30:56 Cracker_Z, ? Oct 21 23:31:22 Hey Oct 21 23:31:32 I've problem with youtube Oct 21 23:31:50 It won't seek or skip timeline Oct 21 23:31:59 ....huh? youtube the website? Oct 21 23:32:02 It rebuffers Oct 21 23:32:09 Application Oct 21 23:32:25 Old version works fine Oct 21 23:32:26 sorry bud, this is #android-dev, not #android :) Oct 21 23:32:44 I heard they"re using new kind of player Oct 21 23:32:54 Android people redirected me here Oct 21 23:32:57 WTH Oct 21 23:33:02 "Android people" lol Oct 21 23:33:13 and did you just install L-preview? Oct 21 23:33:23 I"m on 4.4.4 Oct 21 23:33:33 any reason why Theme.AppCompat would resolve but not the tags like colorPrimary, colorPrimaryDark, etc? Oct 21 23:33:34 I don't have nexus Oct 21 23:33:36 okay, well this isn't the place to ask for support Oct 21 23:33:43 Ok sorry Oct 21 23:33:54 drinfernoo, are you using android:colorPrimary or colorPrimary? Oct 21 23:34:50 and do you have a values-v21 folder with those tags in a styles.xml ? Oct 21 23:51:22 Afzal, it was me not using android: Oct 21 23:51:23 derp Oct 21 23:51:24 lol Oct 21 23:51:54 drinfernoo, but :/ I don't use android, Chris Banes said not to use android: :/ Oct 21 23:52:05 well, whatever works, right? :p Oct 21 23:52:52 i noticed that in chris' guide, some are and some arent Oct 21 23:53:00 and it doesnt seem to work for me without it Oct 21 23:57:48 also, how does ?attr/colorPrimaryDark work for the Toolbar background? Oct 21 23:57:57 it doesn't seem to resolve correctly Oct 22 00:02:58 Nah, haven't worked with Toolbar yet Oct 22 00:03:16 Can anyone confirm that MediaRecorder (for mic) doesn't work on the android wear? Oct 22 00:24:29 Afzal, sorry but one more question problem: i'm not being able to call setSupportActionBar() from my MainActivity Oct 22 00:24:45 heh, either I'm unbanned or the bans in ##java are nick-based Oct 22 00:24:50 or they banned my work IP Oct 22 00:25:01 lol Oct 22 00:25:13 drinfernoo, is your MainActivity extending ActionBarActivity? Oct 22 00:25:19 i'm definitely extending android.support.v7.app.ActionBarActivity, and giving it an andoird.widget.Toolbar Oct 22 00:25:30 ayy anyone know how to change the /whois info? Oct 22 00:25:36 maybe the real name? Oct 22 00:26:01 it says "Unknown methid 'setSupportActionBar' of '*package*.MainActivity' Oct 22 00:26:11 did all those joins just really happen? Oct 22 00:26:15 jeez that was a massive influx of people lol Oct 22 00:26:22 i know right? Oct 22 00:26:33 same thing in ##java Oct 22 00:26:46 it's called a netsplit. they happen. Oct 22 00:26:47 tricknology: doesn't look like you're on their ban list Oct 22 00:26:49 lmfao wat Oct 22 00:27:00 tricknology_ isn't? Oct 22 00:27:08 no Oct 22 00:27:16 temp ban then I guess Oct 22 00:27:45 yippie, now I can go back and get berated some more.. Oct 22 00:28:12 my award for the worst dingleberry of all time is for appcompat Oct 22 00:28:25 cliffreich_ for sure Oct 22 00:29:01 i cant get my app to extend ActionBarActivity right lmao setSupportActionBar() doesn't work Oct 22 00:30:19 oh you are using api 21 Oct 22 00:30:27 i try with it, its all evilness Oct 22 00:30:31 tried* Oct 22 00:31:00 you better use a toolbar and prepare for troubles Oct 22 00:31:44 yeah i'm trying to pass a Toolbar to that, and the method doesnt resolve Oct 22 00:31:57 im extending ActionBarActivity, but nothing Oct 22 00:34:53 weird, that method comes from V7 as actionbaractivity Oct 22 00:36:07 maybe you forgot to add the right view to the toolbar, it needs appcompat view class Oct 22 00:43:52 cliffreigh_ afreed Oct 22 00:44:30 cliffreich_* I picked up a project from the last dev that was there.. app-compat problems everywher Oct 22 01:01:44 is there a solution for playing inline Live Video Stream in android, need it work in WebView. Android 4.0+. HLS isn't playing nice across devices:< Oct 22 01:04:14 heh, Lollipop is for suckers! Oct 22 01:05:59 prove it shmooz Oct 22 01:06:19 suck it! Oct 22 01:06:35 thats what I thought Oct 22 01:07:02 I rest my case! Oct 22 01:07:22 I remember when throwing up the DX and telling someone to suck it would just end the argument. Oct 22 01:29:24 oh damn im so happy Oct 22 01:29:34 i removed appcompat from my app Oct 22 01:29:48 minsdk 14 plus some work Oct 22 01:29:51 yeah , wait till you have to add play services Oct 22 01:30:35 * StingRay_ is not happy :( Oct 22 01:30:45 my location function uses gplay services Oct 22 01:31:00 22,000 methods of fluff Oct 22 01:31:13 I hate when that happens.. Oct 22 01:31:15 how they have not broken that up yet is a mystery Oct 22 01:31:18 strip it if you can Oct 22 01:32:05 cliffreich_ what did you do to achieve this? Oct 22 01:32:21 how to strip it tricknology? Oct 22 01:33:02 whatitis gradle scripts/other scripts, but not sure it's worth it Oct 22 01:34:17 well, you cant user actionbar activities for sure (had to use FragmentActivity for my main to avoid some fragments requiring v4 because of FragmentStatePagerAdapter). some dependency removal here and there, theme for V14 only... Oct 22 01:34:30 i mean to avoid the conflict Oct 22 01:34:53 v14 theme is now main with Holo only Oct 22 01:35:45 i think now i can dream with api 21 Oct 22 01:37:57 humm build-tools is now 21.0.2 Oct 22 01:38:35 humm what? Oct 22 01:38:52 new build-tools Oct 22 01:39:34 eureka Oct 22 01:40:20 non specific questions :^) Oct 22 01:41:16 there was a question? Oct 22 01:42:24 * cliffreich_ is confused Oct 22 01:42:53 Hmm, why is it 21.0.2? I don't see any update on https://developer.android.com/tools/revisions/build-tools.html. Oct 22 01:44:47 hmm, humm Oct 22 01:46:17 tactical, do you update from that link, or use other means? Oct 22 01:48:30 new build tools Oct 22 01:49:39 I use the SDK Manager. Oct 22 01:51:36 so, why post a link that isnt related to it? Oct 22 01:52:15 That link shows recent updates. It doesn't mention 21.0.1 or 21.0.2. Oct 22 01:52:37 then it doesnt does it Oct 22 01:53:06 it shows lazy updates Oct 22 01:54:37 cliffreich_, appcompat is really easy, I don't see how you have a problem with Oct 22 01:54:40 it Oct 22 01:55:24 humm now with API 21 as im not using appcompat im not having warning of deprecated ActionBarDrawerToggle that is v4 Oct 22 01:55:28 need appcompat for material backward compat now in any case Oct 22 01:55:47 pfn are you using appcompat with qucr ? Oct 22 01:55:51 heh, QICR Oct 22 01:55:59 yes Oct 22 01:56:09 pfn now, you use setTheme for light / dark right ? Oct 22 01:56:19 yes Oct 22 01:56:44 have been Oct 22 01:56:50 did you have any weird issues with ActionBarActivity + setTheme + appcompat Oct 22 01:56:51 pfn i dont know why but with API 21 my actionbar was impossible to handle Oct 22 01:57:01 g00s, no Oct 22 01:57:05 works fine Oct 22 01:57:10 i had to call super after setTheme Oct 22 01:57:32 Probably because your super sets the content view Oct 22 01:57:55 i have theme set on the application, but not each activity Oct 22 01:58:20 is there a non-appcompat alternative for a drawer Oct 22 01:58:24 pfn hm, so you didn't have to change that at all, interesting Oct 22 01:58:51 g00s, I dunno, see sources Oct 22 01:59:02 its gonna be scala :| Oct 22 01:59:05 I don't remember doing anything special Oct 22 01:59:11 so? Oct 22 01:59:14 learn it Oct 22 02:02:55 * g00s needs appcompat sources Oct 22 02:08:47 why is android-sdk-macosx/extras/android/support/v7/appcompat/src ... empty ? Oct 22 02:10:10 you mean why are the contents missing, or why was an empty folder provided? Oct 22 02:10:31 I can wager a guess at the latter.. Oct 22 02:11:24 there is no source code Oct 22 02:11:31 i thought it used to be there, oh well Oct 22 02:11:43 apps or libs, one or both fail to build without a src dir (even if empty) on older (maybe current) toolchains Oct 22 02:12:08 ah ok Oct 22 02:13:33 damn thats gross (scala) Oct 22 02:13:40 makes java looks pretty Oct 22 02:14:43 wait is google serious? "If you’re using Gradle then the first thing to do is to add appcompat as a dependency in your build.gradle:" Oct 22 02:15:46 g00s, how are you so good at making incorrect statements Oct 22 02:16:13 practice of course ! Oct 22 02:16:42 pfn do you even try to format your code ? Oct 22 02:17:13 cliffreich_, source&relevance that makes you uneasy? Oct 22 02:19:45 g00s, it's all cleanly formatted Oct 22 02:20:12 the only ugliness I make for is strictly adhering to 80 columns Oct 22 02:20:45 Is it possible to change the button default color without using a drawable? Oct 22 02:21:13 *change button colors when pressed and not pressed Oct 22 02:21:25 mug, what? its just state Oct 22 02:21:49 Mugwump101 yes but little point Oct 22 02:22:04 Mugwump101: look at 'selector' Oct 22 02:22:35 this has been told to him before Oct 22 02:23:05 I mean I have used selector Oct 22 02:23:12 in a resource xml Oct 22 02:23:15 inside drawable Oct 22 02:23:21 but is there another way without doing that? Oct 22 02:23:33 Does anyone know if the android l preview 2 sources are buildable? Oct 22 02:23:59 mug, drop your ideas of the what, and use android Oct 22 02:24:03 Im assuming they're Oct 22 02:24:27 kouhai, why previews? Oct 22 02:24:55 Well is the full source out yet? Oct 22 02:25:12 On their git repos all i saw were previews Oct 22 02:25:17 your in wrong channel Oct 22 02:25:32 What, is this not dev? Oct 22 02:25:41 app Oct 22 02:25:49 * gutano looks at the room title Oct 22 02:25:57 channel topic* Oct 22 02:26:00 Oh whoops, goin to root channel Oct 22 02:26:14 -_- Oct 22 02:26:21 gutano, bye also? Oct 22 02:26:34 no, I was making the same pt Oct 22 02:26:42 hm? Oct 22 02:26:55 did I sound out of place other than calling it a "room title"? Oct 22 02:27:24 title has dev, but its app dev Oct 22 02:27:51 I was pointing out app was int he first 3 words, your reading me backwards Oct 22 02:28:07 thatd be ved Oct 22 02:29:53 app in first 3words, guess I did get confused Oct 22 02:31:44 i can see TacticalJoke having a fit reading this! hehehe Oct 22 02:34:45 trying out android studio. it doesn't seem to want to generate R.java, any hints? Oct 22 02:35:08 find the errors ? Oct 22 02:35:21 no errors other than references to R.java Oct 22 02:35:45 xml errors Oct 22 02:35:57 do you know what R.java is in reference to? Oct 22 02:36:13 some viewtype reference, that maybe you need a lib for that isn't setup ? Oct 22 02:36:36 speakingcode-wor suppose it depends on your actual project and setyp Oct 22 02:36:39 setup* Oct 22 02:36:39 dont think so. it was a pretty basic and working project Oct 22 02:36:55 iirc... haven't touched it ina while X-( Oct 22 02:37:18 speakingcode-wor try building from the command line Oct 22 02:37:31 it means, your xml is fucked. your are r eferencing something that isnt in scope. many places it could go wrong Oct 22 02:38:24 or at least many places we can speculate. you need to provide some detail Oct 22 02:38:45 ohhh, hmm Oct 22 02:38:47 well, no, just build command line like g00s said and should show you Oct 22 02:38:51 missing layout file Oct 22 02:39:03 :) Oct 22 02:39:15 uno momento Oct 22 02:40:48 building from commandline adds nothing. building from IDE tells all Oct 22 02:41:48 outside of java world, i use vim + cl tools for everything. might try it for android sometimes, but i dunno Oct 22 02:41:51 so verbose Oct 22 02:41:57 much to type in vim Oct 22 02:42:11 sounds horrible Oct 22 02:42:21 great for ruby on rails etc Oct 22 02:42:36 yeah....but.... Oct 22 02:42:38 most of my tailored dev environment sits in a dotfiles repo Oct 22 02:43:31 this is YOUR opinion, it is not really indicative of the whole Oct 22 02:45:43 cool. so does android studo not auto-complete xml attributes? like android:layout_align* Oct 22 02:46:07 fail Oct 22 02:46:25 speakingcode-wor: sure does Oct 22 02:46:43 it autocompletes all known Oct 22 02:47:12 using vim though... Oct 22 02:48:00 whatitis: whats wrong with vim? Oct 22 02:48:55 speakingcode-wor, it doesnt autocomplete your needs Oct 22 02:49:35 speakingcode-wor there is a bug, 77777 :) Oct 22 02:49:51 star it if its relevant Oct 22 02:50:20 there are some autocompletion plugins, several actually... youcompleteme is a good one... but the editing features of vim generally (IMO) outweigh lack of autocompletion Oct 22 02:51:04 bah, speaking, your question had no merit, so I flamed Oct 22 02:51:54 ok.. Oct 22 02:54:43 pfn i think in your case it works because your AndroidManifest, for the main activity, has android:theme="@style/AppTheme.Dark" Oct 22 02:55:08 i don't have that set in mine; in onCreate() i check a preference and setTheme(light | dark) Oct 22 02:55:55 oh well, fix is easy enough **** ENDING LOGGING AT Wed Oct 22 03:00:00 2014