**** BEGIN LOGGING AT Fri Feb 13 02:59:58 2015 Feb 13 03:24:30 I hate variable shadowing in java, it's so lame Feb 13 03:33:02 "sources claim the Galaxy S6 will come out of the box with a full suite of Microsoft’s Android applications" Feb 13 03:33:07 haha Feb 13 03:33:17 Actually, OneNote is good Feb 13 03:34:25 Galaxy S6 with Microsoft on it would not be suprising Feb 13 03:34:45 IE is the most popular browser in South Korea Feb 13 03:39:59 its clever, get people in MS apps. then they can switch to windows. or not. Feb 13 03:40:06 OneDrive, etc Feb 13 03:42:56 "gateway theory" ... works for drug dealers :) Feb 13 03:43:31 Yeah Windows should definitely still being trying to go all out with making fantastic apps for non-windows platforms. It's just a matter of getting people to use it their as opposed to on their laptops that are running xp Feb 13 03:44:01 there* Feb 13 03:44:11 thanks, that was killing me Feb 13 03:44:26 :p Feb 13 03:44:34 I knew something was wrong Feb 13 03:44:37 * capella <-- grammar nazi Feb 13 03:47:40 what really kills me is upgrading my api level in the sdk ... (zzzzzzzzzzz) Feb 13 03:47:56 the target or the min? Feb 13 03:48:01 I love upgrading both Feb 13 03:48:06 especially the min Feb 13 03:54:41 ugh, just watched Predestination. I dont know what the hell i saw :| Feb 13 03:55:11 capella are you doing some java proper now :D Feb 13 03:55:17 easing off the js :D Feb 13 03:55:21 g00s: http://www.astronomytrek.com/predestination-2014-explained/ Feb 13 03:55:27 yiati thanks ! Feb 13 03:55:40 javascript is a subset of java right? Feb 13 03:55:55 i kept thinking, is jane & john the same person this is carzy no waaaat Feb 13 03:56:11 * yiati i kids Feb 13 03:57:22 g00s: in between projects ... just finished a big js repair ... most of my patches are 65% 25% 10% js/java/c++ based on the area I help Feb 13 03:58:27 * capella used to work with a mainframe scheduling system named Zeke & Zeb Feb 13 03:59:04 Can't remember which one Zeke was :p Feb 13 03:59:46 But I always think of those two hillbillies in the bugs bunny cartoons Feb 13 04:00:15 * yiati was a star in Disney's classic hit, Zeke and Luthor Feb 13 04:12:21 yiati: Javascript is to Java what hamster is to ham Feb 13 04:18:54 deuteros__: More like Javascript:Java as Twig:GalliantSteed Feb 13 04:21:44 is sdl supported in android Feb 13 04:22:51 it is Feb 13 04:23:30 glad to help Feb 13 04:23:58 should be through ndk though Feb 13 04:24:08 which is probably what you found Feb 13 04:28:14 hey y'all Feb 13 04:29:34 javascript hurts my brain ... though for a dynamic language it's pretty interesting what you can do with generators, asych Tasks, and Promises Feb 13 04:30:01 but yah, "hamster" Feb 13 04:31:27 How do I make an entire view translucent? Feb 13 04:32:04 knapper_tech: alpha Feb 13 04:32:50 xml --> http://developer.android.com/reference/android/view/View.html#attr_android:alpha Feb 13 04:33:00 java --> http://developer.android.com/reference/android/view/View.html#setAlpha(float) Feb 13 04:38:42 later Feb 13 04:47:22 where can I report Android Studio bugs ? Feb 13 04:48:29 gordon_ the usual bug tracker Feb 13 04:48:42 just use 'development tools' as the component Feb 13 04:49:23 ok, thank you Feb 13 04:55:55 reported Feb 13 05:08:20 capella, but generators and shit in javascript are only available from mozilla Feb 13 05:08:40 no other browsers have them Feb 13 05:09:05 bleeding edge :) Feb 13 05:12:47 wait, generators are basic ecmascript I thought Feb 13 05:13:27 Task.asynch() probably isnt Feb 13 05:15:22 *tmp++ what does this mean Feb 13 05:15:42 increment the thing that tmp points to Feb 13 05:15:45 Dereference tmp and then increment the address it points to Feb 13 05:16:01 increment it by how much Feb 13 05:16:08 heh Feb 13 05:16:09 the size of a pointer Feb 13 05:16:12 1 address space? Feb 13 05:16:13 ok Feb 13 05:16:28 c++, js, and java .... what a channel :D Feb 13 05:16:48 linuxuz3r: Don't feel bad for not figuring it out, it's super counter intuitive and only old people (like myself) will find that obvious Feb 13 05:17:10 yes Feb 13 05:17:17 i understand now Feb 13 05:17:32 its *tmp++ = x Feb 13 05:17:58 Sometimes I feel that this is what C was invented around: "we want while *p++=*c++" to mean something, how can we create a language that will achieve this?" Feb 13 05:18:01 it will de4reference tmp then increment it by size of tmp then assign the new address with x Feb 13 05:18:19 the value in the address Feb 13 05:18:40 Like Brainfuck: "We need to invent a language where '>++++.>>+..' is a legal program" Feb 13 05:20:13 or: life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵} Feb 13 05:20:25 good ol' APL Feb 13 05:20:30 yep :p Feb 13 05:20:45 I hated that, but the EE's in school loved it Feb 13 05:21:07 Wow it was taught in a school? Feb 13 05:21:46 RIT, circa, well, back a while ;) Feb 13 05:22:10 ok that makes me feel better... somewhat Feb 13 05:22:25 capella i missed that class :D Feb 13 05:22:48 g00s: probably by 1 decade or so Feb 13 05:23:06 When I was going to school, they were teaching Pascal and Modula 2 Feb 13 05:23:15 yeah we used Pascal Feb 13 05:23:15 not to say that I'm old or anything, but... I'm freaking old Feb 13 05:24:07 *I* Owned an apple II, ser# 3,??? or other Feb 13 05:24:23 Older! i win! or something Feb 13 05:24:28 So did I. And even older computers as well Feb 13 05:24:44 Hoooooommmmmeeee Feb 13 05:24:50 JSR $FDED Feb 13 05:25:02 call -315 Feb 13 05:25:14 -151? Feb 13 05:25:27 ...... yah maybe, so old I forget stuff Feb 13 05:25:52 I actually wrote a few articles for Call -A.P.P.L.E Feb 13 05:25:55 Honestly I can't believe I even remember these addresses Feb 13 05:26:50 * capella rememebrs finally moving off cassete to my first HD ... a monster 5m Feb 13 05:27:02 Didn't get a HD until the Amiga Feb 13 05:30:18 Wrote for Nibble magazine, never made it in Creative Computing though :/ Feb 13 05:30:40 I used to write for a magazine too Feb 13 05:34:21 I am going to use SQLite to save some data that gets updated daily but I was wondering where/what would be the right place to save one-time-profile-information and also settings. Feb 13 05:35:23 <_genuser_> I r so bored Feb 13 05:36:15 <_genuser_> does any of you work on ios apps too? or think it would be nice to code both? or do you think hey let another dev handle that and focus on android? Feb 13 05:37:39 i have a hard enough time with android. if you are working with a few people, and you can do ios & android and not have to be awesome at both thats probably easier Feb 13 05:37:57 that is, where you have a skills gap other can pick up Feb 13 05:38:32 but if you are the only dev on both apps, and trying to do something polished ... thats gotta be tough Feb 13 05:39:13 these platforms just keep on getting more complex Feb 13 05:40:11 (gdb) p *tmp Cannot access memory at address 0xffffffffef931000 Feb 13 05:40:15 Because our world and the problems we are trying to solve are getting more complex Feb 13 05:40:30 deuteros: can you tell me why gdb is giving me that Feb 13 05:40:37 linuxuz3r: No idea Feb 13 05:42:57 <_genuser_> g00s: true, these things are getting more involved. I think a graphics artist helps in creating some polished UIs. icons, layouts, backgrounds, images, etc. nice border, etc. Feb 13 05:43:36 <_genuser_> g00s: plus maintaining state across screen rotate, I think that's still gotta be the toughest thing. most of my apps either don't implement that or have screen locked. Feb 13 05:47:32 _genuser_ sometimes what i do for rotation is have a worker fragment with some rx operations like getSelectedDevice() as BehaviorSubjects. then that will retain its state on rotation, and when the other UI fragmen gets recreated and does worrker.getSelectedDevice(), it gets pushed that item again Feb 13 05:48:28 i do think android is needlessly complex for 2015. a lot of reasons why the did things in 2007 using java are ... silly now Feb 13 05:48:54 g00s: Got any specific example of over complication Feb 13 05:49:13 i think the activity and fragment lifecycles are overcomplicated Feb 13 05:49:33 <_genuser_> g00s: if I have fragments, I just set Fragment#setRetainInstance(true) which is also the recommended method (by Googld devs). or so I hear. Feb 13 05:49:58 _genuser_ yes, that works nicely for retaining state Feb 13 05:50:15 <_genuser_> as far as I can tell, onResume() and onPause run EVERY single time. even on first creates. etc. etc. Feb 13 05:50:37 <_genuser_> that sounds overly complicated. the entire java world lifecycles (applets) and android activities never made sense. Feb 13 05:51:03 <_genuser_> and this coming from a VB6/Delphi/VC++ world of windows forms lifecycles. somehow they made sense. Feb 13 05:52:06 the moz mobile group is porting FF to iOS ... contributors welcome :p Feb 13 05:52:28 personally, I've got enough complexitiy in my life Feb 13 05:52:28 capella using gecko ? Feb 13 05:53:03 <_genuser_> firefox? Feb 13 05:53:17 Apple makes other browsers use its infra Feb 13 05:53:24 <_genuser_> why can't chrome just kill it in a metal cage wrestling match? Feb 13 05:53:27 ah, so FF using webkit lol Feb 13 05:54:05 yep Feb 13 05:56:54 Big discussions on UIWebView vs. WKWebView Feb 13 05:57:27 capella i guess i dont see the point much Feb 13 05:57:32 *shrugs* no interest in iOS atm Feb 13 05:58:58 <_genuser_> do you guys do android dev for a living? Feb 13 06:02:56 I would if someone would send me paychecks :p Feb 13 06:03:33 <_genuser_> heh, so what do you do now? Feb 13 06:04:14 contribute time to mozilla ... and lurk here for tips Feb 13 06:04:42 <_genuser_> no work? Feb 13 06:04:44 er, technical tips Feb 13 06:05:10 Unpaid contributor yes Feb 13 06:05:57 <_genuser_> hmm, working as dev is pretty boring but also can be fun if you work in teh right place. Feb 13 06:06:28 <_genuser_> not necessarily someplace like google. but anywhere where you have good friends, etc. Feb 13 06:06:59 why not google? I'd work with them Feb 13 06:07:31 <_genuser_> I meant, not necessarily a place like google only where you get lot of free stuff. but anywhere where you have good friends, etc. Feb 13 06:08:04 <_genuser_> anyway, google focuses on giving you free stuff and encouraging that you basically stay on campus as long as possible. free gourmet dinner at 8pm, etc. it encourages you to work till 8p. Feb 13 06:08:05 I'm doing it for a living right now... Feb 13 06:08:22 <_genuser_> so if you're married, etc. or have friends outside of work, you'll be stuck at work. Feb 13 06:08:31 I interviewed in December ... we didn't find a good match Feb 13 06:08:35 <_genuser_> Leeds: coding android for a living? Feb 13 06:08:40 yeah! Feb 13 06:08:44 you wouldn't be stuck... Feb 13 06:08:57 you can always leave, but free food is awesome Feb 13 06:09:00 <_genuser_> Leeds: what does it look like? do you storyboard, do wireframes, etc? Feb 13 06:09:06 god no :) Feb 13 06:09:17 I write XML by hand in vim... Feb 13 06:09:18 jira and comps Feb 13 06:09:21 that's all Feb 13 06:10:09 <_genuser_> Leeds: just the xml layouts? Or the code too? Feb 13 06:10:13 all of it Feb 13 06:10:20 <_genuser_> is it customer based? Or internal company app? Feb 13 06:10:46 customer based... but without many customers Feb 13 06:10:55 Leeds: lol Feb 13 06:11:27 google doesnt let you work remotly ? Feb 13 06:11:32 <_genuser_> Leeds: so you just do some screenshots for the customers? and then design it your own way? Feb 13 06:11:33 *remotely Feb 13 06:12:11 I was soooo going to mountainview - remote work is suboptimal Feb 13 06:12:18 Google is not well-known for their support of remote engineers... mostly big companies find that hard, because it means you're outside the organisation Feb 13 06:12:27 ++ Feb 13 06:12:51 <_genuser_> I work for a big company and my entire team works from home. Feb 13 06:12:54 even being at a non-HQ site can be hard, never mind working away from any formal site Feb 13 06:13:08 <_genuser_> I haven't seen most of my team members in years. My boss in maybe 1.5-2 years. Feb 13 06:13:28 isnt it like... you still are working with teams from other part of the world ? Feb 13 06:13:43 <_genuser_> heck, I haven't even _talked_ to most of my team members in years. just my boss and members of other teams taht I work with on a given project. Feb 13 06:15:00 <_genuser_> I sit on phonecalls most of the day once my coding is done. Feb 13 06:19:44 Should I use SharedPreferences to save settings and user-info and SQlite for actual data? Feb 13 06:19:59 donniezazen: probably Feb 13 06:20:41 Leeds: okay just making sure. Feb 13 06:22:11 _genuser_: are they hiring ? ;) Feb 13 06:22:41 donniezazen: we use SharedPreferences Feb 13 06:22:42 <_genuser_> gordon_: our little team used to be 100+. probably 150. over 10 years they've reduced to about 25-30. Feb 13 06:22:52 <_genuser_> gordon_: specializing in running on the smallest crew. lol. Feb 13 06:23:21 still more than my team ;) Feb 13 06:23:45 <_genuser_> we recently hired some contractors. and we keep letting them go when projects are done. Feb 13 06:24:00 got it Feb 13 06:24:51 <_genuser_> heh, but hey do you really do c#.NET, etc? and CTI stuff? Feb 13 06:25:09 I used to write c# Feb 13 06:25:19 but not anymore ;) Feb 13 06:25:45 <_genuser_> our team is very specific to call center technologies using c# .NET, microsoft technologies, cisco technologies, etc. Feb 13 06:26:04 interesting Feb 13 06:26:12 dont have exp in that :) Feb 13 06:26:38 I'm mostly doing android these days Feb 13 06:26:48 and API in rails when they make me ;) Feb 13 06:28:11 <_genuser_> gordon_: yeah, I'm doing more android. wouldn't mind branching out. working from home, sitting on phone calls, muting, watching youtube isn't all that great. Feb 13 06:28:41 haha Feb 13 06:30:14 eveything has it's own adventages and disadventages Feb 13 06:35:01 gordon_: You mean you use SharedPreferences for saving settings and user-info. Feb 13 06:35:12 ok Feb 13 06:35:17 I mean, yes Feb 13 06:35:24 cool Feb 13 06:35:41 indeed Feb 13 07:55:44 hi, good morning all, what is the difference between sim country iso and network country iso ? Feb 13 07:56:02 Anyone that has worked on porting an exisisting bluetooth Android app to IOS? Feb 13 07:57:25 sci-fi: presumably... if you have a SIM from country A, but you're currently roaming in country B... Feb 13 07:57:41 yay thanks Feb 13 08:04:50 what build tool do you use? Feb 13 08:05:00 Leeds: one more question is sim serial number or device id unique for a phone ? do you know ? Feb 13 08:05:04 I heard only about maven and groovy ? Feb 13 08:05:18 gradle =) Feb 13 08:05:34 I use maven , therefore cant remember second name correctly Feb 13 08:21:22 capella "Firefox Nightly now plays Amazon.com Flash videos using Shumway" :| Feb 13 08:21:48 yep Feb 13 08:23:17 whyyyyyy Feb 13 08:25:43 g00s, hi Feb 13 08:25:52 hey lemonxah whats up :) Feb 13 08:26:00 applied for a job 2 days ago they said they liked me so hopefully ;) Feb 13 08:26:28 the job entails creating their own verion of the OS including own appstore and notification system and the likes Feb 13 08:26:32 so that should be interesting Feb 13 08:26:55 so its going ok ish Feb 13 08:27:19 lemonxah oh so you are leaving mxit ? Feb 13 08:27:29 i have left them in november Feb 13 08:27:34 oooh Feb 13 08:27:48 they are no longer developing android apps Feb 13 08:28:07 oh, i thought they would fired you for bringing scala into the android app XD Feb 13 08:28:15 lol no Feb 13 08:28:29 the copmany is folding Feb 13 08:28:34 so i jumped ship Feb 13 08:28:52 hm :( Feb 13 08:30:07 yeah well such is life .. knew it was coming for a while meh Feb 13 08:30:19 now i try to help ppl on stack overflow Feb 13 08:30:41 but some of them except the wrong answers too easily without understanding the framework Feb 13 08:31:08 yeah, i call it sewer overflow now Feb 13 08:31:46 lol seems appropriate Feb 13 08:34:00 hello Feb 13 08:43:13 lemonxah that sounds like a lot of work, seems the new job is forking android ? Feb 13 08:44:02 not forking the OS so much as making a new eco system Feb 13 08:44:06 i was actually surprised to read that xaoimi's miui & devices actually pass CTS, and are only missing play services in china Feb 13 08:44:13 the job entails creating their own verion of the OS including own appstore and notification system and the likes Feb 13 08:44:15 does sound interesting Feb 13 08:44:37 minor changes in the OS and embeded apps and such Feb 13 08:44:43 yeah kevel it does :) Feb 13 08:47:13 lemonxah, for which group is this? Feb 13 08:53:47 lemonxah there is an oreilly book on embedded android, maybe it goes over some of those things Feb 13 08:53:51 JakeWharton, how well does retrofit play with okhttpclient's interceptors? Feb 13 08:54:25 kevel, very well Feb 13 08:54:28 JakeWharton, i added an interceptor but doesn't seem to be intercepting anything except my picasso calls Feb 13 08:54:29 :( Feb 13 08:54:31 what do you want to do? Feb 13 08:54:42 i have done that Feb 13 08:55:29 lemonxah, have an interceptor on my okhttpclient to append headers Feb 13 08:55:36 yeah i do the same thing Feb 13 08:55:41 lemonxah, assign okhttpclient to be the client for picasso and retrofit Feb 13 08:55:41 i add headers in 2 ways Feb 13 08:55:54 retrofit has a request_interceptor Feb 13 08:55:57 so does okhttp Feb 13 08:56:03 but i have done exactly that with retrofit and okhttp on the same call Feb 13 08:56:21 i want to add 1 interceptor, not two and two different places :( Feb 13 08:56:52 with headers you have to add them with request interceptors from retrofit Feb 13 08:57:11 what kind of headers do you want to add? Feb 13 08:57:16 what information should be in them? Feb 13 08:57:27 i mean soz Feb 13 08:57:29 sure, but picasso doesn't use retrofit's http client Feb 13 08:57:35 query items should be retrofit Feb 13 08:57:45 but headers are with okhttp interceptors Feb 13 08:58:04 yes, but retrofit adapter isnt calling the okhttpclient Feb 13 08:58:09 mine is Feb 13 08:58:15 thus, the interceptors are being ignored Feb 13 08:58:23 OkHttpClient zapperClient = new OkHttpClient(); Feb 13 08:58:23 zapperClient.interceptors().add(new ZapperInterceptor(context)); Feb 13 08:58:29 .setClient(new OkClient(zapperClient)) Feb 13 08:58:34 on your adapter Feb 13 08:59:00 i did exactly that Feb 13 08:59:15 could you pastebin me your code? Feb 13 09:00:35 i am adding security keys in headers for the retrofit adapter cause all calls need those headers and its working fine so if you could just show the code Feb 13 09:00:38 then we sort it out :) Feb 13 09:02:54 lemonxah: http://paste2.org/_FytYIVCw Feb 13 09:03:01 i had to omit a lot of stuff Feb 13 09:03:12 mainly variable names and header names Feb 13 09:03:16 security reasons and such. Feb 13 09:03:21 but the main flow is there Feb 13 09:04:08 in my log i have a call where a 403 is returned Feb 13 09:04:19 "Intercepting network call: %s" is not even printed Feb 13 09:04:32 thus assuming that retrofit isnt making use of my interceptor Feb 13 09:04:56 (its an api call through retrofit adapter) Feb 13 09:05:16 401* not 403 Feb 13 09:05:25 I see dagger Feb 13 09:05:31 * gordon_ gives props Feb 13 09:05:59 looks similar to u2020 ;) Feb 13 09:06:05 ;) Feb 13 09:06:09 was inspired by it Feb 13 09:06:36 used it as my introduction to dagger, kinda just rolled with it Feb 13 09:06:53 kevel problem is Feb 13 09:07:05 well that is one problem at least Feb 13 09:07:21 request.newBuiler().buil(); is not given to a new var Feb 13 09:07:29 so those headers are not added Feb 13 09:07:41 you add the headers but then ignore the request that has them in Feb 13 09:07:42 dagger is nice, but can be a little bit of pain when you're familiar with guice of spring. since you need to explictly (is that the right word? ;)) point all classes Feb 13 09:07:48 and use the orignal request Feb 13 09:07:55 and guice is simply scanning classpath afaik Feb 13 09:08:10 not saying that is the only issue cause you said its not even printing hte intercept part Feb 13 09:08:12 still reading Feb 13 09:11:48 ok so that is the methods that you are calling just want to make sure when you call provideRestAdapter(..) do you call provideClient for that too? and then in the provideClient you are passing in provideOkHttpClient Feb 13 09:11:50 lemonxah, ah, ok i ammended that now Feb 13 09:11:51 just making sure Feb 13 09:12:01 cause the your flow isn't in that paste Feb 13 09:12:54 provideWyzetalkApiService calls provideRestAdapter calls provideClient calls provideOkHttpClient Feb 13 09:13:12 its hard to debug code i cant see though ;P Feb 13 09:13:24 er, without wyzetalk Feb 13 09:13:24 lol Feb 13 09:13:28 >_< Feb 13 09:14:27 Hey, View.performHapticFeedback() seems to run on the UI thread, thus freezing the interface for the duration of the feedback, is that true? Feb 13 09:14:38 kevel: so those variable names you stripped for security reasons...? Feb 13 09:14:54 luckily not Feb 13 09:15:06 and, they were renamed Feb 13 09:15:08 not stripped out Feb 13 09:18:34 kevel other than that request that was null there shouldn't be anything in there that will cause it not to work Feb 13 09:18:52 the only other thing is when calling the methods you pass in the wrong client some how Feb 13 09:19:29 but that i wont be able to tell you from this ofc no implementation example Feb 13 09:19:54 i put it all in 1 big method Feb 13 09:20:06 from okhttpclient creation all the way to returning my adapter Feb 13 09:20:12 still no intercepting happening Feb 13 09:20:15 JakeWharton: ping Feb 13 09:20:56 without you showing the actual code that you are trying it would be near impossible to figure out cause i have that setup and its working Feb 13 09:21:31 pastebin what have done? Feb 13 09:26:46 kevel try taking out the authenticator and see if you get the interceptor messages Feb 13 09:29:08 not that it should make a difference but start with the smallest code possible to get just the interceptors working and keep adding code till it breaks Feb 13 09:29:53 haha Feb 13 09:29:56 hmm Feb 13 09:30:00 ? Feb 13 09:30:03 found the issue? Feb 13 09:30:11 picasso loaded my images Feb 13 09:30:18 401 returned from retrofit though Feb 13 09:30:27 so headers were added to retrofit calls Feb 13 09:30:33 werent Feb 13 09:30:49 because retrofit and picasso can both work off of the same okhttpclient Feb 13 09:30:59 and in my case, thats how im implementing my flow Feb 13 09:31:19 i can assume that retrofit is ignoring my headers on the okhttpclient? Feb 13 09:32:23 no Feb 13 09:32:32 if its the same client then it has the same intercepter Feb 13 09:32:39 if I modify a signed released apk, will that fail Google Play Feb 13 09:32:43 well, clearly not Feb 13 09:34:42 internet at works keeps breaking :/ Feb 13 09:35:12 same happens here Feb 13 09:35:13 -_- Feb 13 09:35:18 kevel: I mean, changing the contents will right Feb 13 09:37:17 panda81, sorry my response was for lemonxah Feb 13 09:37:33 panda81, just resign? Feb 13 09:38:06 resign? what happend in the minute i was offline Feb 13 09:38:07 sho Feb 13 09:38:22 quitting your job because of an apk issue sounds extreme Feb 13 09:39:16 Leeds, that is what i did :) Feb 13 09:39:18 well sort of Feb 13 09:39:42 re-sign Feb 13 09:39:45 but ye, resign Feb 13 09:39:50 sometimes it gets tough Feb 13 09:39:57 and u just gotta throw things on the floor and walk out Feb 13 09:39:59 and the place i am working now .. the whole android team got fired cause of issues in the app Feb 13 09:40:18 cause the big boss wants it to be html5 content that integrate with native stuff Feb 13 09:40:23 and he wants the app to be responsive Feb 13 09:40:30 responsive Feb 13 09:40:31 TO WHAT Feb 13 09:40:44 to touch and content and smoothness Feb 13 09:40:47 incase someone installs ur app on an iphone Feb 13 09:40:55 kevel: oh cool. I wish to modify some image and text files rather than asking the original person to rebuild the already signed apk. Sounds like I can switch those files and resign Feb 13 09:41:03 but then the server hosting the html content is slow and the android team gets fired Feb 13 09:42:18 how about phonegap Feb 13 09:42:38 its not html5 that lives on the phone Feb 13 09:42:50 lemonxah, sounds like your boss is a prick Feb 13 09:42:54 i hope he knows that Feb 13 09:42:57 oh you have no idea Feb 13 09:43:03 does he have any technical ability Feb 13 09:43:04 lemonxah: I thought it is html5 Feb 13 09:43:04 ? Feb 13 09:43:19 yes panda81 but the html5 is hosted from the site Feb 13 09:43:23 i refuse to work for people with 0 technical ability Feb 13 09:43:37 it can be good, if you train them properly Feb 13 09:43:39 and the guys that wrote that isn't updating only bits of it they .. reserve most of it Feb 13 09:43:44 its a bad bad place to be Feb 13 09:44:24 this guy owns the business park we are in he owns all the buildings in it and he believes what ever he believes and we should too Feb 13 09:44:38 cant work for that guy .. Feb 13 09:44:44 anyway .. back to android issues Feb 13 09:45:36 which office park btw? Feb 13 09:45:41 im in technopark Feb 13 09:45:47 in century city Feb 13 09:46:22 meh .. traffic to stellenbosch not that bad .. but to technopark in stellenbosch its bad Feb 13 09:46:54 haha ja Feb 13 09:47:01 i either leave home at 6am Feb 13 09:47:04 or 9am Feb 13 09:47:08 nothing inbetween Feb 13 09:49:04 i just thought you were writing about a place in germany when i googled and found out it is in US :D Feb 13 09:49:22 its in south africa Feb 13 09:50:08 oh :D Feb 13 09:52:00 there was also century city in LA ^^ Feb 13 09:52:09 hehe :) Feb 13 09:53:50 If I extend ActionBarActivity in SettingsActivity I see no settings. But if I use Activity, I see settings but no ActionBar. Feb 13 09:54:31 because settings should not have an actionbar Feb 13 09:54:34 brbr lunch Feb 13 09:57:23 lemonxah: How do then I get Up button, icon, title, overlay icon in settings? Feb 13 09:58:06 It is also not very consistent when the whole app has actionbar but not the settings. the text jumps up to the top of screen. Feb 13 10:02:16 settings without an actionbar looks terrible imo Feb 13 10:02:37 from a ux perspective Feb 13 10:02:54 without an actionbar u feel a lost or disconnected from whichever app you are in Feb 13 10:03:04 also Feb 13 10:03:04 http://www.google.com/design/spec/patterns/settings.html#settings-settings Feb 13 10:03:08 actionbar is present. Feb 13 10:06:20 I just made custom settings with a normal activity then you have all freedoms Feb 13 10:08:14 Hi! Is there anyone who has time to answer a question or two about sending data between fragments for a novice, or maybe change my mind? Feb 13 10:09:01 Lundell: you'd need to ask the question before anyone could try to answer it Feb 13 10:12:50 singletons and static FTW Feb 13 10:13:05 why make class variable when you can have singleton Feb 13 10:13:26 I got a little project of my own. Me and my friends usually play some FIFA tournaments but we always end up using pen and paper. So I decided to make a little application with no requirement to use internet. I got the basics setup so I can create a team and everything with that. But when my tournament is created I want one ListFragment with all the matchups like team1 vs team 2 and below that it should be the score. If you Feb 13 10:13:26 click one of the said list items you get a popup and you can write in the score and save or cancel. If you save it should send the data to either SQLite db and/or update the other fragment you can swipe to. In that fragment you got a table with the standings live. The problem is that I'm having a hard time to decide how to do this. Feb 13 10:13:31 Wall of text :( I'm sorry. Feb 13 10:15:06 if you have sqlite or save the data, i would save to database and just read from it when fragment is shown Feb 13 10:15:24 SettingsActivity from preferences activity Feb 13 10:15:34 that has title bar with icon Feb 13 10:15:42 you cant make custom actions Feb 13 10:16:02 but that is what you should be doing .. well should have done not sure about lollipop still learning that Feb 13 10:17:20 @Ashiren so when the fragment loads just call for the information everytime? When using viewpager I thought the closest fragment already loaded? Feb 13 10:19:11 afaik with viewpager when fragment is switched onResume is called Feb 13 10:19:43 other option would be to store the data in activity and fragments would just point to that activity Feb 13 10:20:04 Great! Thank you. I thought I would get shot down instantly with the way I want to use the data :D Feb 13 10:20:30 or if onResume doesnt get call, you can use OnPageChangeListener Feb 13 10:20:48 on a viewpager the 2 views on either side is allready loaded Feb 13 10:20:49 Yea, but I want to be able to resume an old tournment a week later or something like that so thats why I want it down in a DB. Feb 13 10:21:01 so if there are one to the left and one to the right they will be loaded allready Feb 13 10:21:06 so onResume wont be called Feb 13 10:21:49 Yea, thats what I thought. I had that problem on another app I did before but a year ago. Thanks alot! Feb 13 10:22:48 Thank you guys for your help :) Cleared up alot! Feb 13 10:22:52 Lundell, if you want to learn Feb 13 10:23:06 I always want to learn. :) Feb 13 10:23:08 then if you use ContentProvider with ContentResolvers then you dont have to update the other fragments Feb 13 10:23:26 cause its got something that is akin to data binding Feb 13 10:23:38 using CursorAdapters with CursorLoaders Feb 13 10:23:47 that would be the best way to do it Feb 13 10:24:03 Thanks! I'll look in to that. Feb 13 10:24:06 then there is no funny code to handle when fragments still exist Feb 13 10:24:39 I know. But I thought that would be the fastest and easiest way to check the standings in the table fast and easy. Feb 13 10:25:23 the "propper way" with content resolvers would be fast aswell Feb 13 10:25:31 might not be fast developing them while learning Feb 13 10:25:44 but then you will be sure that there will never be a mismatch of data Feb 13 10:25:48 But another choice is two activities and use a menu to switch between them. But then I have to save the current layout on the matchup list somehow. Feb 13 10:26:15 but even then Feb 13 10:26:25 if you use the content providers you dont have to update the views Feb 13 10:26:37 cause changing the data in the database will automatically update the views Feb 13 10:26:51 its not complete magic ofc but still you dont have to manually update them Feb 13 10:26:57 Sounds awesome, I will definatly take a look at that. Feb 13 10:28:22 http://www.vogella.com/tutorials/AndroidSQLite/article.html Feb 13 10:29:33 Lundell, look at point 9 on that tutorial Feb 13 10:29:35 that is what you want Feb 13 10:30:00 http://www.vogella.com/tutorials/AndroidSQLite/article.html#todo <-- that one Feb 13 10:31:06 Thanks Feb 13 10:31:19 no worries Feb 13 10:32:25 kevel, that actionbar isn't an "actionbaractivity actionbar" its most likely just the PreferencesActivity it has its own actionbar Feb 13 10:33:50 lemonxah: I tried extending PreferencesActivity and it's the same. No actionbar Feb 13 10:34:31 is this for lollipop? Feb 13 10:35:02 lemonxah: I tried API 19 emulator and device running API 21. Feb 13 10:35:32 hmm i will have to see the code Feb 13 10:35:37 let me make a dummy app Feb 13 10:36:54 lemonxah: I basically copy pasted from the docs.https://developer.android.com/guide/topics/ui/settings.html#Fragment Feb 13 10:36:58 https://developer.android.com/guide/topics/ui/settings.html#Fragment Feb 13 10:38:19 did you do the fragment one? or the activity one? Feb 13 10:40:46 How do i change the name of selections in navigation drawer ? Feb 13 10:45:36 lemonxah: Fragment one. Feb 13 10:47:10 ah yeah Feb 13 10:47:24 lemonxah: I would have preferred activity one but addPreferencesFromResource is now deprecated. Feb 13 10:47:41 so actionbaractivity cause you are also using actionbar compat? Feb 13 10:47:49 yes for that you have to use just normal activity Feb 13 10:50:06 I just gave the non-fragment Acitivity one a try. It has the same problem. No actionbar. Feb 13 10:51:54 trying to setup something like that Feb 13 11:16:01 lemonxah: created a quick sample https://github.com/donniezazen/workspace/tree/master/SettingsSample Feb 13 11:17:38 soz donniezazen got busy with work :) manager was here wanting something Feb 13 11:18:33 lemonxah: no problem. Thank you for looking into it. Feb 13 11:19:47 Hi anyone here uses pusher? if not what notification client do you use? Feb 13 11:25:14 mostly use google's stuff Feb 13 11:35:18 Does anyone have a favorite way to implement a tabbed interface within a fragment? Feb 13 11:35:51 designer has decided that tabs to put tabs in my tabs, so now I can tab when I tab. Feb 13 11:37:23 finally Feb 13 11:38:02 Why so quiet !?!? Feb 13 11:38:10 huh? Feb 13 11:38:38 Dont see anyone talking about anything ! Feb 13 11:39:11 Anything! Feb 13 11:39:15 very busy with work :/ Feb 13 11:39:24 Haha ! Funny guy ! Feb 13 11:39:35 Im new to this channel Feb 13 11:39:44 looks fairly active to me: http://picpaste.com/o7QOyYmL.png Feb 13 11:40:22 i was active but right now work has got me by the short and curlies :/ Feb 13 11:40:40 Sweeet, this is cool ! Feb 13 11:41:24 Is anyone willing to offer some advice on a project im starting to dev at all ? Im a bit of a Android dev noob ! Feb 13 11:41:42 just ask, dont ask to ask Feb 13 11:41:53 and wait for someone to respond it might take some time Feb 13 11:42:00 K got it ! Feb 13 11:42:43 do you have any java or programming experience? Feb 13 11:43:27 Im trying to make an app that will save text and audio that can be retrieved from a calendar or listview, im used to C# so im unsure what the best way is Feb 13 11:43:59 Very little exp, ive mostly done C#, html, php Feb 13 11:44:14 Hi guys , I have 1000+ location saved in a database , and I'm tracking location updates , so when user location changes a search around the saved locations is started so once a user current location found saved in the database , a specific action is performed , my purpose is prevent location search over the hole saved locations I want some kind of structuration that makes the search most optimal , so any propositions ? Feb 13 11:44:46 c#.. fair enough. although it would be good to know java to be able to write something more than hello world Feb 13 11:45:04 p0wonTnx, index your sqlite db Feb 13 11:45:19 c# and java is very close to each other Feb 13 11:46:08 minor syntax changes and namespace(packagename) changes and the corresponding classes in java is just named something else Feb 13 11:46:16 should be able to pickup java in a few hours Feb 13 11:46:20 if not minutes Feb 13 11:46:49 ok awesome, yeah i went through some basics Feb 13 11:46:56 and tons of melissa Feb 13 11:47:02 lemonxah: how to index it ? which criteria I have to use to index my database ? Feb 13 11:47:30 you have to index it on what you are currently using to lookup Feb 13 11:47:33 Where im stuck is the best way to save and retrieve the entries for the calendar view to be honest Feb 13 11:47:51 if you are doing a lookup on lat long then index those Feb 13 11:49:03 yea indexing is similar in msSQL and MySql Feb 13 11:49:09 donniezazen, have you seen this http://forum.xda-developers.com/showthread.php?t=1363906 or http://stackoverflow.com/questions/9783368/alternatives-to-preferencefragment-with-android-support-v4 Feb 13 11:49:19 and sqlite Feb 13 11:49:33 nvm Feb 13 11:49:46 what calendar view entires are you talkinga bout? Feb 13 11:49:51 yeah, I was thinking zip codes but you can use lower-fidelity lat-longs to create a box which the user is inside Feb 13 11:50:32 even non lower-fidelity lookups Feb 13 11:50:38 well its just a journal i want to create where you add txt and voice. The calendar is to see past entries Feb 13 11:50:45 if those columns are indexed it should fast enough Feb 13 11:51:28 Rubuntu, draw what you want first and then see what controls you need Feb 13 11:52:01 more often than not you are trying to use puzzle pieces that almost fit what you want instead of creating/using the right pieces Feb 13 11:52:59 because it sounds like you want a custom calender view instead of the calender view that exists(which is kind of only a date selector) Feb 13 11:53:00 Ive got the layout I just dunno whether i need a database to save entries or how one would do that Feb 13 11:53:18 I thought about using this https://github.com/marcohc/RobotoCalendarView Feb 13 11:54:10 i say this to everyone .. if you are not apposed to leaerning, saving in a database using contentprovider and content resolvers is the best way to get something akin to data binding Feb 13 11:54:36 lemonxah: looking into it now. thanks. Feb 13 11:54:44 Rubuntu, http://www.vogella.com/tutorials/AndroidSQLite/article.html#todo Feb 13 11:55:12 ok awesome so how would the calendar then link up to that sqllite? Feb 13 11:55:28 with a contentObeserver or CursorLoader Feb 13 11:56:01 AHHHHHHHH Feb 13 11:56:06 GREAT ! Feb 13 11:56:18 been googling FOREVER for this ! Feb 13 11:56:31 Thanks so much ! you really helping me ! Feb 13 11:58:14 content obeserver observes a certain uri(you can think of this as a table) then when that "table" changes it runs the update in the content observer and then you can update the calender Feb 13 11:58:52 so that when the databse changes from any point in the background like over the internet or what ever if the data table changes it wil fire an event to contentobserver so that you can update the calender Feb 13 12:00:13 Is there a tool that will help me make better images for diff screen sizes ? Feb 13 12:00:30 Nightwalkerkg, is this resources for icons and the likes ? Feb 13 12:00:38 ok great ! so when someone adds an entry (which I save to a Database) I run code to update the calendar view (add a dot or something to show the entry) and then when you click on the specific day with the dot you call the table for that day ? Feb 13 12:00:41 have you checked out android asset studio? Feb 13 12:00:57 http://romannurik.github.io/AndroidAssetStudio/ Feb 13 12:01:16 lemonxah: Not icons, i have some logo's and other images i need to add to the app, they look solid on 4" and 5" but anything above just get's streched. Feb 13 12:01:36 Nightwalkerkg, that should be able to help you with it too Feb 13 12:01:50 lemonxah: The nine-patch ? Feb 13 12:01:54 Don't you add that ic_icon with a certain rest and android studio scales it ? Feb 13 12:02:07 Rubuntu, no when someone adds an entry you save it to the database and then the content observer fires an update tot he calender Feb 13 12:02:20 no you can use the generic icons section Feb 13 12:02:29 then make the color 0% Feb 13 12:02:35 strip the padding out Feb 13 12:02:46 and then just upload an image Feb 13 12:02:59 and set the size in dip it should be Feb 13 12:03:23 lemonxah: Thanks for this. Feb 13 12:03:28 no worries Feb 13 12:04:24 Nightwalkerkg, also mark it as dont trim so that it doesn't trim your image Feb 13 12:05:43 isn't Rubuntu like russian ubuntu ? Feb 13 12:05:54 hahaha Feb 13 12:06:03 http://rubuntu.com/ Feb 13 12:06:06 No im from ZAR Feb 13 12:06:09 south africa Feb 13 12:06:13 yeah ek ook Feb 13 12:06:18 hahaha Feb 13 12:06:19 rerig ? Feb 13 12:06:22 en AFR ? Feb 13 12:06:23 yup Feb 13 12:06:26 yup Feb 13 12:06:30 HECTIC Feb 13 12:06:31 but keep to english here ;) Feb 13 12:06:35 Ok Feb 13 12:06:40 since not everyone would understand it Feb 13 12:06:48 Djoburg ? Feb 13 12:06:51 cpt Feb 13 12:06:54 Ah ! Feb 13 12:07:10 What are the chances Feb 13 12:07:27 not that bad .. i have met 5 Feb 13 12:07:31 in this channel Feb 13 12:07:36 hectic Feb 13 12:07:49 You've been a great help though ! Feb 13 12:08:03 :P Feb 13 12:08:44 lol @ the name lamflam Feb 13 12:09:38 lemonxah: So one question about this, i should make an xml with the configuration qualifiers for this to work ? Correct ? Feb 13 12:09:58 no Feb 13 12:10:07 those images are made into different folders Feb 13 12:10:24 xhdpi xxhdpi hdpi mdpi Feb 13 12:10:36 and the device it runs on will use one of those iamges Feb 13 12:10:46 depending on its density and size Feb 13 12:11:44 Ok, but i need to add the image in the imageView but it seems it can't see the -hdpi mdpi and other folders other then /drawable Feb 13 12:11:59 yes that is correct Feb 13 12:12:01 just /drawable Feb 13 12:12:15 the -hdpi mdpi folders are resource folders in the app Feb 13 12:12:26 and then android knows which one to get Feb 13 12:12:50 So, i put any of these in the drawable and their correct folders and it will call the one it needs ? Feb 13 12:12:52 so the phone will know what it's density and screensize is so it will go fetch the appropriate image Feb 13 12:13:03 no you place all those folders in the res folder Feb 13 12:13:35 I don't think we understand each other. xD Feb 13 12:13:50 so that you have multiples and then just using R.drawable.image or @drawable/image it will then source the correctly sized image Feb 13 12:14:23 you want to have the same image but have it in different sizes so that it doesn't look streched on larger devices and it should look crisp on smaller devices? Feb 13 12:15:06 lemonxah: Yes. I understand all of this but i have the problem with the adding the image to the imageView in the app. Feb 13 12:15:52 These images are all in folders other then /drawable, but when i try to add the image as a background it dosen't see the folders other then drawable. Feb 13 12:16:09 So i need to place the image in the drawable and use it as a background. Feb 13 12:16:22 yes Nightwalkerkg you want see anything else other that /drawable Feb 13 12:16:25 that is by design Feb 13 12:16:31 Yeah. Feb 13 12:16:37 because only at runtime you will know what size image to put in there Feb 13 12:16:42 and androido will handle that for you Feb 13 12:17:12 so even though there is no image in /drawable and only for example in /drawable-hdpi and /drawable-xhdpi Feb 13 12:17:32 you will still be able to access that image using the /drawable folder Feb 13 12:17:49 Ah, ok. Feb 13 12:17:49 that is how the resource works its part of the android framework Feb 13 12:18:29 does this make more sense nou Nightwalkerkg ? Feb 13 12:18:38 Yeah, i understand. Feb 13 12:18:38 now** Feb 13 12:18:41 ok cool Feb 13 12:19:02 I just didn't know what to put as the background. :D Feb 13 12:19:09 ok cool Feb 13 12:19:13 When all the images were in diff folders. :P Feb 13 12:19:13 glad i could help Feb 13 12:19:18 Thanks a lot. Feb 13 12:19:33 androido will choose the right one depending on the phone it runs on Feb 13 12:20:42 lemonxah: They need to be named the same, right ? Feb 13 12:20:48 yes Feb 13 12:21:27 if you use that tool i have shown you you just upload 1 image specify the size in dip which stands for density independent pixels and it will make all the files the same name and put them in the right folders Feb 13 12:23:27 donniezazen, did that work for you? Feb 13 12:26:36 ohai hashtag android dashtag dev Feb 13 12:26:53 lol hi Feb 13 12:27:00 anyway Feb 13 12:27:06 i'll grab the opportunity to ask something silly again Feb 13 12:27:16 how the hell would i go about making an android app that uses modules of some sort in java Feb 13 12:27:17 go for it Feb 13 12:27:26 that i could add on later / distribute separately Feb 13 12:27:29 modules? Feb 13 12:27:34 oh Feb 13 12:27:38 AARs Feb 13 12:27:48 its like java .jar libs Feb 13 12:28:15 can they be dynamically loaded, or at least loaded on startup? Lol Feb 13 12:28:39 I wanna make a simple app that basically is a share target that lets you apply filters to stuff Feb 13 12:28:44 not image filters, oh no Feb 13 12:28:52 if you want to use dependency injection you could use dagger Feb 13 12:28:58 for example, AES encrypt that file, or ROT13 this text, or MD5sum this image, etc etc Feb 13 12:30:08 but I want to make a bunch of these features and not have them all in the app, so someone could sideload a module for instagram filters if they so felt like it Feb 13 12:30:14 you could make intent-filter that could accept any of those file times and then make that open an activity and depending on the file you could give options as to what you want to do with the file Feb 13 12:30:37 boxmein, take a look at dagger Feb 13 12:30:51 http://square.github.io/dagger/ Feb 13 12:31:00 that is dependcy injection for android Feb 13 12:33:11 is it hard to become a GDE? Feb 13 12:33:21 i should start going to the gdg Feb 13 12:33:45 boxmein, depends, you can go the deskclock solution of binding other apks services Feb 13 12:33:55 boxmein, or you use .dex classloading to load compiled classes Feb 13 12:33:56 lemonxah: I am not at my system. I will give it a try soon. Feb 13 12:33:59 depends on your solution. Feb 13 12:34:18 I am kinda horrible at android development lol Feb 13 12:34:31 dagger sounds like a good pick right now, but I'll need to figure out how to use it lol Feb 13 12:36:49 Dagger doesn't do what you want. Feb 13 12:37:16 yeah dagger looks like DI which is what angularjs does Feb 13 12:37:27 and it's a bit witchcrafty Feb 13 12:37:34 dex classloading sounds like a thing Feb 13 12:37:47 what's the deskclock solution you mentioned? Feb 13 12:38:38 lemonxah: The images turned really blurry, so i switch from background to src and now they are perfect. Why is this ? Feb 13 12:39:04 imageview uses .src to specify the image Feb 13 12:39:20 background is inherited from the view class Feb 13 12:39:37 so i will have to check that to see why it would do it Feb 13 12:40:19 but if you want to display an image in an image view you should be using src Feb 13 12:40:34 Ok, thanks again. Feb 13 12:40:35 Mavrik, why doesn't dagger give him the functionality he wants? Feb 13 12:40:45 Because you haven't read his requirements. Feb 13 12:41:03 you could download an addon from the play store to handle some new aspect Feb 13 12:41:35 he wants to in runtime load functionality into his app Feb 13 12:49:47 I added android:screenOrientation="portrait" to the manifest but it's not working. :/ Feb 13 12:50:15 I need to lock it in portrait mode. Feb 13 12:50:26 did you add that to the activity in the manifest? Feb 13 12:50:30 or where did you add it? Feb 13 12:50:57 Under you cant restrict the application Feb 13 12:51:20 Yeah, i see what i did now. Feb 13 12:51:21 xD Feb 13 12:51:22 just move that to the activities that should work Feb 13 12:51:47 what is the reason you want to lock the rotation? Feb 13 12:51:52 It works now. That again, and again. xD Feb 13 12:52:15 lemonxah: The UI get's messed up when it's in landscape and i don't have time to deal with it. :P Feb 13 12:52:22 I have to finish the app by tommorow. Feb 13 12:52:22 oh ok Feb 13 12:52:41 was just about to say normally locking rotation is not the best solution Feb 13 12:53:00 Yeah i know, but it's the fastest fix. :D Feb 13 12:56:05 speaking of locking rotation Feb 13 12:56:06 uh Feb 13 12:56:09 how do I lock to landscape Feb 13 12:56:17 not in code but just in general usage Feb 13 12:56:31 start an app Feb 13 12:56:36 rotate to landscape Feb 13 12:56:43 then open your notification area and lock rotation Feb 13 12:57:28 most phones have a quick setting in the notificaiton area to lock rotation or just go to the quick settings page that should have it also Feb 13 12:58:16 my notification area button is called "Auto-rotate" and disabling it turns back into portrait Feb 13 12:58:24 the perils of owning a huawei I suppose Feb 13 12:58:57 yeah its that button i am talking about :) the name also differs on implementaions Feb 13 13:12:10 uh Feb 13 13:12:13 another idiotic question Feb 13 13:12:32 can I just pass any data along with an intent to start another activity in my own app Feb 13 13:12:40 aka, dex class loader'd references or something Feb 13 13:14:25 actually I won't overcomplicate this Feb 13 13:19:43 lemonxah: looks like easiest solution would be to create a toolbar. I wonder why there is no ActionBar for PreferenceActivity. Feb 13 13:26:52 What would be the best way to make a schedule, lists ? Feb 13 13:27:01 uh okay Feb 13 13:27:13 I basicly need to display time, name and a small bit of text. Feb 13 13:27:23 Nightwalkerkg: probably? you could use some adapter magic to make list items have any kind of views inside them Feb 13 13:27:33 Nightwalkerkg: don't ask me for details though, kind of a noob at this lol Feb 13 13:28:17 I was thinking about doing something like the Inbox app. Feb 13 13:28:55 Display the time on dividers, and under that to display names and text. Feb 13 13:33:46 Nightwalkerkg: what about something simple like http://puu.sh/fRsTZ/3a634ba2de.png ? Feb 13 13:34:01 Nightwalkerkg: also, mspaint mockups are fun! Feb 13 13:34:27 Haha, this is great, but it dosen't need to be this complex. Feb 13 13:35:00 all it is is a checkbox and a date and a name? how is it complex Feb 13 13:35:01 lol Feb 13 13:35:53 I am making an app for a festival, it only needs to show at what time each activity starts. Feb 13 13:35:56 And that's it. :D Feb 13 13:36:27 Like two textViews. But i need a way to organize them in one scroll. Feb 13 13:36:48 I was thinking of doing something like this : https://developer.android.com/design/material/images/list_mail.png Feb 13 13:37:02 With the dividers in bettwen with the time. Feb 13 13:53:35 anyone around Feb 13 13:53:35 ? Feb 13 13:53:41 heee Feb 13 13:54:05 i just setup version 5.0 x86 in a vm so im just curious how do i get to the console on this vm Feb 13 13:55:23 version 5 of wat ? Feb 13 13:57:15 which VM ? and what OS? Feb 13 13:58:16 adb shell Feb 13 13:58:31 well the OS android os Feb 13 13:58:51 ok when i power it up do i go into debug mode Feb 13 13:58:51 ? Feb 13 13:59:34 I wish they updated AS and the Gradle plugin way more often. It'd be cool to get the changes right away. Feb 13 13:59:48 At least twice a week would be cool. Feb 13 13:59:52 If not nightly. Feb 13 14:01:41 i downloaded andriod 5.0 x86 and installed it in a vm now the box is booting up in to the andriod gui my question is how do i make it boot into the shell Rubuntu Feb 13 14:02:01 whats your host OS - windows, linux? Feb 13 14:02:40 Esxi Feb 13 14:02:43 vmware Feb 13 14:03:28 there should be some terminal emulator app, right? Feb 13 14:05:05 then you could enable wireless adb and connect to adb from host OS Feb 13 14:07:27 kevel: Use 1.9.0 Feb 13 14:07:49 thse are the instructions that i followed http://www.vladan.fr/how-to-install-android-kitkat-in-vmware-workstation/ Feb 13 14:08:20 just trying to see if there is a way to boot into the console like you would in a liux machine Feb 13 14:10:48 hmm https://plus.google.com/+LinusTorvalds/posts/jmtzzLiiejc Feb 13 14:11:09 does the os come with the terminal emulator Feb 13 14:11:10 ? Feb 13 14:11:21 i dont know Feb 13 14:11:24 i use genymotion Feb 13 14:11:32 it uses virtualbox and automates stuff Feb 13 14:15:56 Hmm. Setting a Spinner's padding from XML doesn't work when using AppCompat. This is unintended behaviour, right? (Firs ttime I've tried setting a Spinner's padding.) Feb 13 14:16:58 I guess it must be, since setting its padding from Java code works. Feb 13 14:17:23 Oh, it's mentioned in this bug: https://code.google.com/p/android/issues/detail?id=77982 Feb 13 14:17:46 Strange thing is that setting a TextView's padding works here but setting a Spinner's doesn't. Feb 13 14:17:58 Wait, that says EditText. Never mind. Feb 13 14:20:51 uh Feb 13 14:21:00 actually wait Feb 13 14:28:33 uggghg Feb 13 14:28:45 im looking for terminal emulator Feb 13 14:28:57 adroid x86 5.0 Feb 13 14:39:47 Hi, I have made this simple activity which should display an image to fill the layout. The image appears as expected on the preview but won't display on a real device. What's going on? http://pastebin.com/LCBUSATi Feb 13 14:41:08 emorris, you must be seeing some errors in your log, the image size is probably too big, try putting it in xhdpi or xxhdpi if you haven't already Feb 13 14:42:17 Hey, there! I'm currently designing an app where one can drag and drop certain items. I wanted to ask if there is the possibility to modify the color of the dragshadow while dragging? (or modify the dragshadow in any way)? Feb 13 14:43:11 anyone able to help me with this, no clue how to make this work, to get the registration id out http://stackoverflow.com/questions/28417275/google-cloud-messaging-is-not-giving-me-a-registration-id Feb 13 14:43:43 VnM, no errors, and I changed the image to a small icon which is already being used (the application icon); still no luck Feb 13 14:46:43 emorris, and you're sure thats the layout you're loading in? you're not accidently hiding the imageview in your code or anything? Feb 13 14:49:53 I have a question, a "page" on my navigation drawer that has images on it is laging when i try to open it or go from it to another "page", is there a fix for this ? Feb 13 14:50:58 If I have an Activity and a bunch of fragments contained within that use a model from the database, would it be a good idea to do the lookup in one place (the Activity) and just GSON it as an ARG to all the fragments? Feb 13 14:54:22 I don't understand why the documentation always recommends using ranges (e.g., "compile 'com.android.support:recyclerview-v7:21.0.+'"). That seems like an accident waiting to happen. Feb 13 14:54:46 I see the + as a prayer symbol: "I pray that my app doesn't fail in subtle ways." Feb 13 14:55:59 TacticalJoke: Letting the minor minor version (whatever that is called) update automatically is pretty common in Node. I guess the idea is that that version shouldn't have breaking changes. I know what you mean though. Feb 13 14:56:53 Yeah, let's pray that it doesn't have breaking changes. Feb 13 14:57:11 Or new bugs. Feb 13 14:57:15 TacticalJoke, I usually leave it on + , then lock it when I release/tag Feb 13 14:58:15 TacticalJoke, MikeWallaceDev probably a situation where the time saved not updating those versions in all your dependencies manually is much greater than any time wasted from one rarely having a breaking change in the third version slot Feb 13 14:59:23 disagree mattblang , if I have to spend 5 minutes searching my code because somebody else screwed up their code, that's too much. Feb 13 14:59:33 VnM, yep, I was being an idiot. What you get for trying to mix together samples and own code! Feb 13 15:00:00 but like I said, I keep it to + while I'm working on the code, then lock it when releasing Feb 13 15:00:24 :D Feb 13 15:00:46 MikeWallaceDev, TacticalJoke: YOLO compile 'com.android.support:recyclerview-v7:+.+.+' Feb 13 15:01:04 Yeah, I don't like the idea of auto-updates possibly introducing subtle bugs at any time. Feb 13 15:01:16 * 'com.android.support:recyclerview-v+:+.+.+ Feb 13 15:01:20 Risk-driver development. Feb 13 15:01:22 driven* Feb 13 15:01:25 MikeWallaceDev: haha! Feb 13 15:01:28 :) Feb 13 15:01:51 android httpclient gives me UnknownHoseException and says unable to resolve host, bt i can resolve it threw web browser the same post request. The main problem is that in android the request works most of the time, but it throws the error randomly. means some time it works some time it dont. cant figure it out where the problem is Feb 13 15:06:08 rathodvikas10: Have you tried a different hose? :D Feb 13 15:07:21 Joking aside, I guess it's very hard to help without seeing code (including the host in question). Is there something you could post? Feb 13 15:09:27 i dont have the code now, it is simple post request using httpClient Feb 13 15:10:06 Hello Feb 13 15:11:02 A long time ago I used eclipse + ADT plugin to develop some apps for android Feb 13 15:11:40 most of my apps were amateur projects for myself, but at one time I contributed in development of Firefox for android (which used NDK) Feb 13 15:12:00 i used volley in my project, it thought it might be volley but then i used simple HttpPost and with HttpClient to check bt the result were the same Feb 13 15:12:44 Anyway, after these years, google has shifted its trend toward android studio. Now I have 1 very important question: Feb 13 15:13:22 If I make a project in Android Studio for linux, can I open that project and work with it in Android Studio for windows? Feb 13 15:15:49 im trying to boot directly into the command line on andriod x86 has anyone done this ? Feb 13 15:16:02 im not trying to boot into the gui Feb 13 15:16:11 i guess so, i have windows in my office and i took the project and import it in my laptop which is centos and it worked Feb 13 15:18:06 oh god Feb 13 15:18:07 screw that Feb 13 15:18:15 rathodvikas10, Hmmm. Thanks. But I am not sure what import does? It may change some project file structures to make it compatible with linux version Feb 13 15:19:09 basically lol I tried to make a dex class loader that loaded a jarfile with custom code in it that was supposed to be runtime-pluggable functionality Feb 13 15:19:19 http://stackoverflow.com/questions/28502770/failure-manifest-parse-error Feb 13 15:19:22 i got to the command line using alt f1 but cannot type anything in Feb 13 15:19:27 anyone understand why I am getting the manifest error Feb 13 15:19:41 I went so deep down the rabbit hole I was playing with abstract classes figuring out how to set a Method instance as a class method Feb 13 15:19:44 just android and blinking curor Feb 13 15:19:44 ...yeah screw that Feb 13 15:19:46 cursor Feb 13 15:20:34 digitsm, what file structure? you mean the the scr,res,layout etc ?? Feb 13 15:21:11 Lonesoldier728: Why don't you give the exact error message? "Manifest error" says so little. Feb 13 15:21:13 rathodvikas10, No, I mean project files. I am not very familiar with android studio. Feb 13 15:21:25 I posted it Feb 13 15:21:29 ok Feb 13 15:21:34 TacticalJoke it is on the bottom Feb 13 15:21:58 I don't see it. Feb 13 15:22:11 Oh, you just added i. Feb 13 15:22:11 it* Feb 13 15:22:24 How do i add a divider to the android drawer ? Feb 13 15:22:28 rathodvikas10, I worked with Intellij 12 & 13 before for developing android. The strange thing was that, I couldn't load a project made with intellij 12 in intellij 13. They were not compatible with each other Feb 13 15:23:06 rathodvikas10, I want to avoid these incompatibility issues. Feb 13 15:23:07 digitsm: I think you can just import from Gradle with AS. No need to worry about IntelliJ projects. Feb 13 15:23:20 I don't even bother checking in the IntelliJ-project files. Feb 13 15:25:01 TacticalJoke any clue? Feb 13 15:25:14 ok, i dont know about that, and yes one guy gave me the project form the android studio and i just imported it to my android studio and he use windows and i use linux and i had no problem in that. digitsm Feb 13 15:25:32 TacticalJoke: ohai Feb 13 15:25:51 digitsm, i have not tried with different intellij versions Feb 13 15:26:19 Lonesoldier728: Not sure. Feb 13 15:26:21 boxmein: Hai. Feb 13 15:26:25 rathodvikas10, Hmmm. Thanks Feb 13 15:27:02 Lonesoldier728: Are you seeing an error when you open the manifest file in whatever IDE? Feb 13 15:27:19 It has to be something with the receiver part Feb 13 15:27:24 because when I take it out it works Feb 13 15:27:27 android:name="com.facebook.LoginActivity" Feb 13 15:27:29 What is that? Feb 13 15:27:40 I figured out what it is Feb 13 15:27:47 well what it is a part of Feb 13 15:27:50 something with the receiver Feb 13 15:28:30 nice Feb 13 15:28:35 i was missing a period wow hah Feb 13 15:28:38 Hi, wonder if anyone can help with a touchscreen driver issue. Using getevent I can see data streaming in when I use the touchscreen (an Elo 4200L) but the events do not affect the GUI. So it looks like the USB comms are working ok, but for some reason, Android is not connecting the touch input to the display! I have set an idc file for the vendor/product id, but that made no difference Feb 13 15:29:06 (this thouchscreen works with linux and windows, by the way) Feb 13 15:29:23 Lonesoldier728: By the way, do you really want to call your app "com.example.lior.winklio"? Feb 13 15:29:28 com.example.wut Feb 13 15:29:34 nope Feb 13 15:29:51 just random name given to it Feb 13 15:30:01 Interesting: "This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission." Feb 13 15:30:04 it is not my main app Feb 13 15:30:19 whats the grub command to boot only into the command line on andriodx86 Feb 13 15:30:21 What if they change the terms someday? "You must now ask for permission!" Feb 13 15:31:12 TacticalJoke, just some questions: 1. Can I assume that a projects made with Eclipse+ADT, Intellij and AndroidStudio are incompatible with each other? Feb 13 15:31:42 TacticalJoke, 2. Are projects made with different versions of Android Studio, compatible with each other? Feb 13 15:31:57 digitsm: Android studio is *supposed* to be able to import from Eclipse projects, but it doesn't seem to work very well Feb 13 15:32:02 My understanding is that IntelliJ and Android Studio are very similar, especially in regard to projects. Eclipse uses a different project format. Feb 13 15:32:36 digitsm: I think it's sufficient to have source files and build scripts to open/import a project into IntelliJ/AS. Feb 13 15:32:53 No special project files required. Feb 13 15:33:01 I've gone back to eclipse after Android studio randomly reset some projects, losing code. Don't trust it now. Feb 13 15:33:21 Dave666: I've not seen that. In any case, aren't you using version control? Feb 13 15:33:43 whats the grub command to boot only into the command line on andriodx86 Feb 13 15:33:45 Yes of course I'm using SVN, but it didn't inspire confidence Feb 13 15:33:50 O.o Feb 13 15:33:55 SVN. Feb 13 15:33:58 Mercurial and Git are better than SVN, BTW. Feb 13 15:34:01 Just on a side note. Feb 13 15:34:13 cue: hipster comments about why git is better than svn... Feb 13 15:34:21 oh, too late :) Feb 13 15:34:23 Because it's superior. Feb 13 15:34:25 hey TacticalJoke im just trying to boot only into the command line on x86 how would i go about doing that Feb 13 15:34:28 ? Feb 13 15:34:29 Programmers are pretty pragmatic. Feb 13 15:34:38 Dave666, I feel completely like you. I love eclipse a lot more. I feel it's still more stable. But I am working in a team in which everyone should use AndroidStudio (possibly on Windows) Feb 13 15:34:48 No idea, cyclonis. Isn't there a channel for that (#android or #android-root or something). Feb 13 15:35:02 digitsm, of course, because using Eclipse with no build system in a team is dumb Feb 13 15:35:23 Not having a good way to do repeatable headless builds and CI is just asking for trouble. Feb 13 15:35:23 arguing that git is better than svn is like arguing that blue is better than red. It's pointless. Feb 13 15:35:35 Git is better than SVN. Miles better. Feb 13 15:35:39 Though Mercurial is better than Git. :D Feb 13 15:35:42 just stop... Feb 13 15:36:17 Hrmf, I think it's mostly just that most tools have completely stopped supporting SVN integration lately Feb 13 15:36:37 I generally use the command line for git and svn (yep I use both) Feb 13 15:36:44 Mavrik: Centralised version control is just a poor concept. Feb 13 15:37:11 does terminal emulator come with android x86 Feb 13 15:37:11 ? Feb 13 15:37:26 TacticalJoke: Do you actually work in a production environment with legacy code in svn that's been used for years? Feb 13 15:37:49 ...and is automatically backed up by the centralised server? Feb 13 15:37:53 Dave666, mhm, me too, most IDE integrations are strange Feb 13 15:38:13 I do like having VCS stuff taken care off then I refactor / move / add / delete stuff Feb 13 15:38:29 Mavrik: Yeah, that can be painful by hand Feb 13 15:38:43 (or a bit messy :) Feb 13 15:38:58 yeah, especially if you forget about it and then checkin duplicate moved files and stuff ;P Feb 13 15:39:00 Dave666: Gladly not, but that's not really what you said. What you said was basically "It's pointless to claim that Git is better than Subversion". Feb 13 15:39:56 TacticalJoke: You're obviously just looking for an argument because "someone doesn't like what I like!!" But I'm not interested. Use what you like, I don't care. Feb 13 15:39:58 Dave666, When I wanted to learn git, I used to work with git in command line. I am not very comfortable with git integration tools, like tortoisegit. However about svn, I still prefer tortoisesvn Feb 13 15:41:33 cyclonis, I think this channel is for developing apps for android, not android itself. And I guess it's not possible to only boot into android without GUI. It's like booting into windows without its default gui Feb 13 15:41:34 I just use what works for us. My devs have the choice of svn or git for new projects. With SVN the central repo is automatically backed up, with git they have to ensure they push changes back frequently for backups too. As long as people are productive, I'm not interested in religious wars about tools :) Feb 13 15:42:07 oh ok im sorry about that Feb 13 15:42:10 However you can boot into android, and then use terminal emulator app in android, or use ADB to send commands to your android Feb 13 15:44:31 You can also use an ssh server in android - most also give you more command-line tools, which makes it nicer to use Feb 13 15:45:47 Dave666: Not looking for an argument -- just respecting the facts. I couldn't care less whether someone likes Git or Mercurial (in fact, I'm not even a fan of Git). Feb 13 15:46:10 "facts". Feb 13 15:48:04 TacticalJoke, I used svn, git & hg. Now I am confused as hell! Feb 13 15:49:00 And I really can't say which one is better. As long as it does what it has to do (I mean historical backups of all code), they are the same for me Feb 13 15:49:51 Anyway, I hate using SCM systems altogether! But using them is a must! Feb 13 15:50:44 Mavrik, Why you say using Eclipse w/o a build system is a dumb idea? What do you mean by a build system? Feb 13 15:50:53 Yeah, just a tool for the most boring part of a job :))) Feb 13 15:53:05 Mavrik, as you know mozilla uses eclipse (because they use NDK), and they have their own build script (named mach). But I never understood why they wrote a heavy build script to build Firefox project? Why they didn't use eclipse built-in build tool? Feb 13 15:53:34 What eclipse built-in tool? Ant is horrible, limited and requires manually writing huge XMLs. Feb 13 15:53:57 Maven is compatible with Eclipse, but the android-maven-plugin support has kinda lapsed since Gradle took over Feb 13 15:57:29 Mavrik, Hmmm. I was not familiar with differences b/w Ant, Maven and Gradle. I only knew that eclipse uses Ant for developing android and java. I also heard about Maven, but didn't know why it should be superior than Ant Feb 13 15:57:47 well, I suggest you try configuring a project with each Feb 13 15:57:50 possibly with dependencies Feb 13 15:57:57 and test runs... and you'll see rather quickly :) Feb 13 15:58:13 the differences are more pronounced as you add people and project increases in complexity Feb 13 15:59:07 Mavrik, Oh! Feb 13 15:59:35 digitsm, basically the objective is to have the easiest way possible to configure, get dependencies and run different tasks with a project Feb 13 15:59:56 Guys, how can I show only Toast message upon application launch (no windows, no other elements, just Toast message)? For example, when user taps the application icon Toast message will appear saying "Hello, world!". Feb 13 16:00:17 So I need to fill up an image based on a percentage. I made an image that has a transparent cutout that lays on top of a View with a background in a LinearLayout that I change the weight on. This seemed to work great, until I ran it on a Note 4. Any ideas on how to accomplish something like this? Feb 13 16:00:21 e.g. we have full release workflow in gradle -> documentation generation, build, ZIP packages, preparation of samples, upload to our distribution server, git tagging, etc. Feb 13 16:00:33 sh0ne: You could make your own Application class Feb 13 16:01:10 theblang, can you explain more what "based on precentage" means? Feb 13 16:01:38 Mavrik: If user has a 50 percent score, the image is filled with green 50 %. Feb 13 16:02:08 Mavrik: So the View I adjusted the weight on to be 50, with the LinearLayout having a weightSum of 100. Feb 13 16:02:08 theblang: how do you mean "Make my own Application class"? Feb 13 16:02:13 ah Feb 13 16:02:15 sh0ne one sec I'll get you a gist Feb 13 16:02:25 Mavrik Hacky feeling, but it worked, on the Nexus Feb 13 16:02:27 theblang, I'd either extend an ImageView containing the image or create a custom view Feb 13 16:02:32 theblang, and just handle it onDraw Feb 13 16:02:38 theblang: thank you, mate Feb 13 16:02:41 inflating several layouts and hacking together stuff Feb 13 16:02:51 Mavrik, document generation, build, upload and git tagging; all with pressing 1 single button? really? Feb 13 16:02:57 Mavrik: yeah I know, awful stuff. I think I'll try extending Feb 13 16:03:01 then you're essentuially doing canvas.drawrect(0, 0, getwidth, getheight / percent) is silly :) Feb 13 16:03:19 theblang, so extend the imageview, override ondraw, call super() and then just do drawrect :) Feb 13 16:03:28 Mavrik: would be cool to do some openGL, haha, but I don't think I have time for that Feb 13 16:03:39 digitsm, it's more like './gradlew release -Pversion=" :) Feb 13 16:04:44 Mavrik, Oh my god. I did all these jobs separately before! Feb 13 16:04:50 Mavrik, Thanks man. Feb 13 16:04:59 But it does require some manual work :) Feb 13 16:05:08 In preparation of scripts. Feb 13 16:06:04 Mavrik, Hmmm. If I wanted to write scripts, I could do it with bask scripting (like what mozilla does). Then there were no need to use Gradle. Feb 13 16:06:14 *bash scripting Feb 13 16:06:20 sh0ne: https://gist.github.com/mattblang/48d2d54f671d5996aec5 Feb 13 16:07:06 sh0ne: extending Application has been useful for several things I've needed Feb 13 16:07:48 digitsm, well you could use ASM as well Feb 13 16:07:57 Is there a way in AS Preview to see exactly which drawable is being displayed? (hdpi, xhdpi, etc..) Feb 13 16:08:27 Mavrik, I dot your point Feb 13 16:08:30 *got Feb 13 16:09:22 Mavrik, Thanks dude for describing these for me. Just 1 question: What did you mean by dependencies? Feb 13 16:09:26 digitsm, anyway, as I said, it's worth just trying to setup a hello world project Feb 13 16:09:31 it's easy to see the differences Feb 13 16:09:32 :) Feb 13 16:09:45 What to use is a perpetual flamewar though. Feb 13 16:10:05 theblang: Thank you very much. So I just need to replace 'extends Activity' with 'extends Application', right? Feb 13 16:10:09 Mavrik, Yeah. I will test all of them (If I get time) Feb 13 16:11:06 That's the best way. Pretty much ignore what others use and use what's best for you. If there was one "best" IDE or "best" VCS, everyone would use it :) Feb 13 16:11:15 sh0ne: Right. Feb 13 16:11:33 Words of wisdom Dave666 Feb 13 16:12:08 Dave666, of course we have to add Feb 13 16:12:15 anyone with different opinion than me is wrong. Feb 13 16:12:21 sh0ne: I didn't know about Application for the longest. It runs on app start, and can be extended and customized with lifecycle methods very similar to Activity. Just make sure to reference it in your manfiest so ANdroid knows to use your custom one Feb 13 16:12:22 :) Feb 13 16:13:01 But that's not very realistic advice. Sometimes there is a best IDE or a best revision-control system. Feb 13 16:13:01 sh0ne: I shouldn't say very similar, it actually isn't very similar other than the onCreate http://developer.android.com/reference/android/app/Application.html Feb 13 16:13:41 Mavrik, Could you say an example about "dependencies"? Feb 13 16:13:46 Thanks Feb 13 16:14:01 If a newbie comes in here and leaves with the impression that Git isn't really better than Subversion and it's all opinion, they have been misled. Feb 13 16:14:08 digitsm, well, see for example https://github.com/square/picasso Feb 13 16:14:26 everyone does use android studio and git :p Feb 13 16:14:27 digitsm, if you want to add that library to a project managed with gradle, you just add that "compile ..." line into dependencies part of build script Feb 13 16:14:32 and it'll download and include it automatically Feb 13 16:14:34 In this industry, it's common for individuals and teams to get stuck using ancient technology for various reasons. Feb 13 16:14:40 digitsm, same for Maven which has an XML syntax Feb 13 16:14:43 pfn except when your company requires SVN :P Feb 13 16:14:49 git-svn fixes that Feb 13 16:15:06 digitsm, if you want newer version, you just update the version number, so no more playing .jars in libs folders Feb 13 16:16:21 Mavrik: messed around with some Swift. It doesn't work with the unofficial cocoa pods dependency manager for objc. It made me appreciate dependency management, haha. Feb 13 16:16:45 yeah, especially since Eclipse doesn't support AAR packaged libs Feb 13 16:16:54 which are thus really painful to setup Feb 13 16:17:02 (maybe that changed lately) Feb 13 16:17:18 Mavrik: If I extend ImageView and mess with the onDraw, I'll need to set the percentage dynamically. I guess I can do this in onCreateView which should happen before it draws right? Feb 13 16:17:43 Mavrik: But will it have the dimensions at the point Feb 13 16:17:44 theblang, why not just add "setPrecentage()" method to the extended view Feb 13 16:17:55 theblang, store the current precentage as field Feb 13 16:17:58 and in ondraw you just do Feb 13 16:18:13 TacticalJoke: Are you still banging on about "Git is better than SVN"? Please get over it. It's your opinion - that doesn't mean it's an absolute fact. Feb 13 16:18:15 (getHeight() / 100.0) * precentage for height :) Feb 13 16:18:21 getHeight being height of canvas Feb 13 16:18:21 AndroidAssetStudio dosen't work for FullHD images ? Feb 13 16:18:38 Mavrik: I'll need to do this after onCreateView right? in which case I guess I just call an invalidate? Feb 13 16:18:50 theblang, do what? Feb 13 16:18:57 theblang, it doesn't matter when you assign a property :) Feb 13 16:19:06 and yes, invalidate will cause ondraw to be called again Feb 13 16:19:25 Mavrik: Right, I am jus tthinking about issues I've had in the past where heigth and width wasn't know yet because Android hadn't calculated Feb 13 16:19:40 theblang, that's why you don't do anything with that until onDraw Feb 13 16:19:42 Mavrik: Can't remember at what point they are calculated Feb 13 16:19:48 Mavrik: ahh right Feb 13 16:19:48 theblang, you just store the % value Feb 13 16:19:58 Mavrik: Thanks man Feb 13 16:20:01 theblang, and calculate pixel height in ondraw... where you have exact canvas size :) Feb 13 16:21:03 There is an event callback in Android after it's finished layout. At that point it knows the dimensions. Feb 13 16:21:20 FrameLayouts default z-order is that the further down in the xml file it is the higher it's z-order is right? Feb 13 16:22:18 Dave666, yep, if you're extending a view, extending onLayout makes more sense :) Feb 13 16:22:23 Because I have a FrameLayout with a custom MapView inserted first, and a ScrollView second, but the custom MapView seems to have a higher z-order which is not what I expected Feb 13 16:22:41 yiati, is one of those a surfaceview? Feb 13 16:22:47 Mavrik, Very useful man. Thanks a lot. But is downloading JAR files and putting them in /libs directory really a big issue? Feb 13 16:23:17 digitsm, well once you have more of them and they have their own dependencies, it's easier to manage versions and update them Feb 13 16:23:24 Mavrik: I dunno, I might have to dig into the MapView, I just wanted to be sure my expectations were right Feb 13 16:23:47 yiati, IIRC MapView is a GLSurfaceView which is a bit special when it comes to hiearchy Feb 13 16:23:57 yiati, it's either on top of everything or on bottom of everything Feb 13 16:24:22 Mavrik: Yep the custom MapView extends SurfaceView Feb 13 16:24:40 Mavrik, Why do you like update JAR files? if sth works, there is no need to update. I have this opinion about updating software in linux too Feb 13 16:24:41 Mavrik: Hmm cool, maybe I can find a way to make it bottom of everything Feb 13 16:24:45 yiati, yeah, so SurfaceView has a setZOrderOnTop call Feb 13 16:24:53 set it to false and it should be on the bottom Feb 13 16:25:07 Mavrik: Awesome, thanks I will try that out Feb 13 16:26:06 Mavrik, But I got what you wanted to say. Thanks a lot man for your help Feb 13 16:26:50 Any Android devs on who work on drivers? Or know how the USB devices connect to the UI? Need to work out why a touchscreen is firing events, but they're not getting to the screen Feb 13 16:29:47 Dave666, Is your issue device specific? Because driver problems are always device specific Feb 13 16:30:47 digitism: Yep, the device enumerates, and Android recognises it as a touch screen, and using getevents I can see data coming in when I swipe it, but it's not sending those events to the GUI Feb 13 16:34:03 Dave666, If so, xda developers is always the best forum for those device specific issues (driver problems and so on). I could force my nook simple touch to become multi-touch by hacking its touch screen driver, using a thread in XDA developers Feb 13 16:34:22 And most root solutions for different devices is also available in XDA Feb 13 16:34:44 hmm, that's a good idea, I'll check, cheers Feb 13 16:35:54 Dave666, I can't personally help a lot. Plus I am not sure whether your problem is about android's internals (in Java), or is about linux drivers (used in android) or what Feb 13 16:36:39 hi Feb 13 16:37:03 I've worked on drivers in the past, so it seems like the driver is doing the right things, however I'm trying to work out why Android isn't making use of it. I'm sure it'll be something simple though! Feb 13 16:39:46 My final question: When I want to download AndroidStudio or AndroidSDK, I can't find where I can download 32 or 64 bit version for linux. Why? Feb 13 16:40:18 Is it because AndroidStudio is fully written in Java? Feb 13 16:41:01 Linux SUCKS!!! Feb 13 16:41:08 No, wait, I use Linux. Feb 13 16:41:10 My bad. Feb 13 16:42:33 I don't remember there being different versions. Feb 13 16:43:11 MikeWallaceDev, Why? Feb 13 16:43:32 All apps for linux always have 2 versions: 32 bit and 64 bit Feb 13 16:44:02 Not saying it doesn't, saying I don't remember :) Feb 13 16:44:14 I looked at my about, doesn't mention 32 or 64 Feb 13 16:44:17 Android SDK tools are 32-bit only Feb 13 16:44:22 Android Studio is a Java app Feb 13 16:44:58 there are 64bit tools now too Feb 13 16:46:28 Mavrik, If android SDK tools is 32-bit only, then doesn't it have any problem running on 64-bit linux? Feb 13 16:46:51 no, I'm on 64 bit Feb 13 16:48:27 MikeWallaceDev, I am always on 64bit linux. And I can run them. But I am suspicious that you may be running a 32-bit application on your 64-bit linux. Feb 13 16:48:38 Sometimes running a pure 64bit app is faster Feb 13 16:48:48 digitsm, as long as you have the 32-bit libs it needs Feb 13 16:48:50 it works. Feb 13 16:49:35 don't see why you're suspicious of that... happens all the time. Feb 13 16:50:26 MikeWallaceDev, No, when you are on 64-bit linux, all default linux apps you run are compiled for 64-bit Feb 13 16:50:46 About android sdk I think it has both 32-bit and 64-bit files Feb 13 16:51:01 sdk is 32, ndk is 32 or 64 Feb 13 16:51:54 and of course the default apps are 64 bits, we're not talking about default apps... Feb 13 16:52:05 just install the 32-bit libs. Feb 13 16:54:34 MikeWallaceDev, So you mean if I want to use android-sdk tool, I must have 32-bit libs? Feb 13 16:54:51 yeppers Feb 13 16:55:49 Just reading about the cusor loader Feb 13 16:56:06 for ListView, Adapter.. haven't used it so far, it's possibly more efficient, isnt' it Feb 13 16:56:12 Hi Feb 13 16:56:26 have you managed to use the same facebook app id to share content in multiple android apps? Feb 13 16:56:45 MikeWallaceDev, I could always easily run AndroidSDK tools and I don't remember installing any 32-bit libs. Maybe I installed them sometime that I don't remember Feb 13 16:56:51 I have 5 apps and I want to use the same facebook app to add a "share" button to them Feb 13 17:02:07 digitsm, try it. If it works, great. Unbuntu Tahr can run 32bit I think. If it doesn't work, sudo apt-get install ia32-libs Feb 13 17:02:52 can you use scala for android dev? is it relatively painless? Feb 13 17:04:51 Can I get y'alls' opinion on something? I have an Activity where I use an object from SQLite in several fragments. I don't want to do multiple database calls, in the fragments, so could I just do it once and pass it as JSON to the fragments that use it maybe? I guess I could do a getModel callback in the fragments but then I would have to do null checks I'm sure Feb 13 17:05:56 theblang, I think you need to inverse your thinking Feb 13 17:06:17 write a SQLite provider / manager / handler where calling getYourData() returns java objects representing your SQL data Feb 13 17:06:24 and then inside that you can do caching ets. Feb 13 17:06:27 *etc. Feb 13 17:09:18 Mavrik the on refresh of the list of data (on the list screen) I just blow away the cache? Feb 13 17:12:35 yep Feb 13 17:12:47 theblang, other trick I sometimes do is to use EventBus postSticky() Feb 13 17:12:56 and when results are available they're sent as a sticky event Feb 13 17:13:17 which means that no matter when fragment/activity is ready (even on orientation change) it has that data available Feb 13 17:13:22 but that can get messy :) Feb 13 17:22:40 anyone familiar with running parallel tests with gradle? Feb 13 17:27:39 can i run IOS emulator on VM? Feb 13 17:30:50 postSticky, otto has that? neat Feb 13 17:31:04 but how do you clear sticky, though? how does eventbus know when to stop delivering an event Feb 13 17:32:50 dang, got spam after being on the appstore for 2 days http://i.imgur.com/RpS4AXi.png Feb 13 17:33:54 Yet another reason to have a separate google account for apps Feb 13 17:33:57 I'm so unpopular, I get little spam Feb 13 17:34:07 either that or it's in my spam filter Feb 13 17:34:08 pfn, we can fix that Feb 13 17:34:29 the spam, part not the popularity Feb 13 17:34:35 lol Feb 13 17:38:57 but having to relog all the time now blows yiati :( Feb 13 17:43:36 Hi guys , when I register a SensorEventListener and I provide as Handler one ctreated from a HandlerThread , is the onSensorChanged method from the SensorEventListener is executed on this thread ? Feb 13 17:43:58 shekibobo, parallel tests should be a function of your test runner, not gradle Feb 13 17:45:08 pfn: do you happen to know where I could learn more about that? Feb 13 17:45:30 shekibobo, the documentation for your choice of test frameworks? Feb 13 17:45:50 has anyone used svg-android? Feb 13 17:48:49 Is there any issue with normal ListView dividers on 5.0? Feb 13 17:48:53 When using AppCompat. Feb 13 17:49:15 My app isn't showing dividers properly on the 5.0 emulator when using AppCompat, but it's showing them properly when not using AppCompat. Feb 13 17:49:27 Hi guys , when I register a SensorEventListener and I provide as Handler one ctreated from a HandlerThread , is the onSensorChanged method from the SensorEventListener is executed on this thread ? Feb 13 17:52:03 yes Feb 13 17:56:37 This is pretty cool: https://www.reddit.com/r/minimalism Feb 13 17:56:39 Does anyone know if it is possible (eg knows source i can look at) where my app theme can be Light.NoActionBar but my toolbar be dark (that is, I want the UI to be light, the text/icons of the toolbar to be light, but the toolbar background is dark) Feb 13 17:57:18 Hi, I'm following the tuto in the developer.android page to use MYSQLite ... I've made all the steps identically, but when I try to instantiate the DbHelper it says me that it's not a closing class ... Feb 13 17:57:26 What does it mean ? Feb 13 17:57:27 read styles.xml Feb 13 17:57:44 mysqlite? Feb 13 17:57:45 lol Feb 13 17:58:10 pfn i have, and i have tried a million different styles, but if do noactionbar as the style the toolbar ALWAYS uses dark text/icons Feb 13 17:58:15 lasserix: Can't you just set the background of the toolbar and then use the appropriate overlay theme (for the light text/icons)? Feb 13 17:58:19 (Sorry, my fault) Feb 13 17:58:23 Freud Lapsus Feb 13 17:58:35 I'm able to get the light icons by changing the overlay theme of the toolbar. Feb 13 17:58:59 lasserix, then you do it yourself if you can't find one that does it for you in the provided styles Feb 13 17:59:07 TacticalJoke: can you post some code I cann see what you mean? Feb 13 17:59:11 Okay, one sec. Feb 13 17:59:12 pfn: i have been trying Feb 13 18:00:55 Any suggest ? Feb 13 18:01:40 Tuly it means your dbsqlitehelper is a non static inner class and can't be instantiated without its parents class having been Feb 13 18:02:13 the easiest way to solve your problem is make your opensqlitehlper its own top level class Feb 13 18:02:37 which is equivalent to adding "static" to the class declaration when it is a nested inner class Feb 13 18:03:03 Yep, but if I make it static, it cannot be instantiated Feb 13 18:03:12 Tuly-, learn java Feb 13 18:04:52 can you pastebin this class Feb 13 18:06:21 that easy http://pastebin.com/MavTS4vG Feb 13 18:06:37 Maybe I made some mistakes in the nesting of the classes Feb 13 18:07:15 Tuly, initialize your dbhelper in the constructor of your TasksDbContract Feb 13 18:07:29 lasserix: http://pastebin.com/7aD0TYKe Feb 13 18:07:31 the point is without being static, it must have TasksDbContract instance to live in Feb 13 18:07:41 White icons. Feb 13 18:07:58 either make public static class TasksDbHelper or put it in separate file Feb 13 18:08:08 Ok ok, got it Feb 13 18:08:08 there are no static classes in java, this is just name Feb 13 18:08:11 since you'll probably only ever use it when you are using TasksDBContract... then just initialize it in the constructor, so whenever you make new TaskDbContract, you'll always have an instance of dbhelper too Feb 13 18:08:25 Thx a lot Feb 13 18:09:06 Tuly-: but as pfn said, be sure to read up on inner classes / static inner classes / top level class and enclosing instances for java, very important in android Feb 13 18:11:00 woa , google is hutting down helpouts ? didn't they just turn that on ? Feb 13 18:11:49 hehe, shutting down Feb 13 18:12:22 What I don't understand is why there's no ThemeOverlay.AppCompat.Light.ActionBar. Feb 13 18:12:33 ThemeOverlay.AppCompat.Light doesn't seem to be quite the same. Feb 13 18:13:20 Nor does ThemeOverlay.AppCompat.ActionBar. Feb 13 18:13:22 g00s: come on, you know that's what Google does :) Feb 13 18:13:50 2015 and whatsapp still FC's Feb 13 18:14:15 lasserix: Did that work? Feb 13 18:14:17 TacticalJoke theme madness XD Feb 13 18:15:04 I half feel like sticking with Holo. AppCompat feels so unsafe. Feb 13 18:15:30 I think some people use Holo on <21 and Material on 21. But that does sound like a bit of effort. Feb 13 18:15:48 And it means no Toolbar. Feb 13 18:18:06 TacticalJoke google tends to do the minimum necessary in the compat department, or less depending on how you look at it Feb 13 18:18:17 TacticalJoke: unsafe? Feb 13 18:18:40 Yeah, I just expect it to break down on certain devices. It's just a feeling. Feb 13 18:19:02 Well, one thing seems certain: it will break on certain Samsung devices unless we use ProGuard. Feb 13 18:19:39 g00s, hmm Feb 13 18:19:53 g00s, wouldn't minim necessary be just not to provide the compat stuff? Feb 13 18:20:30 not provide = first we should as what should be provided i guess. like ActionBar back in 2010 :) Feb 13 18:20:39 or 2011 Feb 13 18:20:42 ? Feb 13 18:20:59 I dunno, I think google has done a rather good job with providing compat stuff lately. Feb 13 18:21:59 Would it be crazy for me to support Holo on < 21 and Material on 21+? Feb 13 18:22:39 Yes. Feb 13 18:24:56 I hate that buttons aren't themed in AppCompat. Feb 13 18:25:00 I guess it's not hard to do manually, though. Feb 13 18:26:08 Morning Feb 13 18:28:22 huh Feb 13 18:28:26 of course buttons are themesd. Feb 13 18:28:28 *themed Feb 13 18:31:39 Below 21 they use the standard theme, not Material. Feb 13 18:31:54 In my case, Holo. Feb 13 18:34:50 Hey guys, does anyone know if the app usage table (new in L API) ever resets? Feb 13 18:43:02 evg1: What is the app usage table? Feb 13 18:44:47 yiati: https://developer.android.com/reference/android/app/usage/package-summary.html Feb 13 18:45:09 I'm using ListViews with default dividers. If my app uses AppCompat, when it runs on the 5.0 emulator the dividers don't always show. If my app doesn't use AppCompat, they show consistently. Feb 13 18:45:18 Is there any issue with using ListView dividers and AppCompat on 5.0? Feb 13 18:45:37 never saw that one Feb 13 18:45:50 g00s: Okay. Feb 13 18:45:56 lasserix: Did you see my link? Feb 13 18:46:04 check on device Feb 13 18:46:06 yiati: basically, I'm wondering if it collects data from the moment phone is launched and until the heat death of the Universe (since it's using long types), or there's some kind of a reset schedule Feb 13 18:46:15 Wish I had a 5.0 device. :[ Feb 13 18:46:22 I guess I'll have to get one. Feb 13 18:48:22 Is there a way to choose the position of a Toolbar's menu-overflow button and navigation icon? Feb 13 18:48:42 position of overflow - no Feb 13 18:49:11 If I reduce the height of the Toolbar, the two icons don't move. It makes stuff look bad. Feb 13 18:54:49 TacticalJoke: lollipop seems to drop the dividers between different view types, if that counts Feb 13 18:55:58 groxx orly Feb 13 18:56:04 is that intentional ? Feb 13 18:56:11 It does that in ListViews? Feb 13 18:56:20 for example, when i look at the new style prefernces stuff, a lot of dividers are gone Feb 13 18:56:23 in listview, yeah Feb 13 18:56:33 ;o Feb 13 18:56:37 Is there a way to disable this? Feb 13 18:56:52 hello guys. Feb 13 18:57:04 TacticalJoke: draw dividers by hand? I dunno, but it annoys me Feb 13 18:57:08 TacticalJoke maybe just wait until i/o 2015 when google announces metamaterial :P Feb 13 18:58:11 I feel like I've seen another case where listview divider behavior changed between os versions. can't remember at the moment though. Feb 13 18:58:31 In the app I'm making I would like to add 10 sec audio of commercial songs. A friend told me this is legal (max 10 sec for song). Can you tell if this is true? Do you have any experience in this? Thanks a lot. Feb 13 18:58:32 at this point I just avoid them entirely when I'm going for a specific look Feb 13 18:58:33 I don't understand why they'd do that. A new view type doesn't necessarily mean the UI should change. Feb 13 18:59:22 TacticalJoke i wonder what recyclerview does Feb 13 19:00:07 TacticalJoke: I suspect it's too make section headers stand out more. because obviously that's the only thing you use list views for. Feb 13 19:01:16 /exit Feb 13 19:01:18 boo Feb 13 19:01:24 * yiati actually exiting now Feb 13 19:01:31 g00s:@ I think just not show dividers (unless manually drawn). Feb 13 19:01:58 sure so provide an ItemDecorator it should be ok Feb 13 19:03:58 Looking at the emulator now. It draws all dividers, even with new view types. Feb 13 19:04:19 The only issue is that they sometimes become really thin while scrolling really slightly. Feb 13 19:04:25 It looks like a graphics glitch. Feb 13 19:04:57 I wouldn't think much of it because it's the emulator -- but it wasn't doing that before I switched to AppCompat. Feb 13 19:05:56 lasserix: Do you have a 5.0 device? Feb 13 19:09:07 Sometimes I spend 75% of my Android time just figuring out whether something could break on some particular device. Feb 13 19:10:44 You're obviously doing something wrong. Feb 13 19:11:33 What am I doing wrong, Mavrik? Feb 13 19:11:40 If it's "obvious". Feb 13 19:11:48 no idea, probably everything Feb 13 19:11:57 "Probably everything", said someone with no clue. Feb 13 19:12:04 Ok :) Feb 13 19:23:57 TacticalJoke: yeah i am using 4.1 4.3 4.4 and 5.0 atm Feb 13 19:24:11 sorry got jammed up in scrum Feb 13 19:24:43 What is ThemeOverlay? Feb 13 19:26:31 It seems to be a way to get the icons/whatever to show in pure-white/pure-black (depending on theme). Feb 13 19:26:36 TacticalJoke: ahh you are my hero thanks! Feb 13 19:26:46 lasserix: Could I send you my app later, if you have time, just to test something on 5.0? (I have to run any second so can't send now.) Feb 13 19:26:58 Yeah no Feb 13 19:27:00 *yeah np Feb 13 19:27:06 Thanks. Be back later. Feb 13 19:34:39 ThemeOverlay is what? Feb 13 19:34:44 /me has interest Feb 13 19:38:35 I'm trying to add bluetooth support to an app Feb 13 19:39:05 When I ran the app the first time, it popped up a dialog asking me whether I want to authorize this app for bluetooth Feb 13 19:39:18 I choose yes. But now when I rerun the app, it remembers that choice Feb 13 19:39:26 is there any way to un-authorize it, for testing? Feb 13 19:40:46 johnflux: does uninstalling the app do it? or maybe clear data? Feb 13 19:41:55 johnflux you will have to use reflection to unpair the device Feb 13 19:42:05 http://stackoverflow.com/questions/9608140/how-to-unpair-or-delete-paired-bluetooth-device-programmatically-on-android Feb 13 19:43:07 groxx: uninstalling with -k seems to have done it :-) Feb 13 19:43:11 thanks Feb 13 19:43:38 johnflux can you show your command for that ? Feb 13 19:43:39 Hi Feb 13 19:43:40 cool. not quite ideal, but good to hear :) Feb 13 19:44:42 g00s: adb shell pm uninstall -k com.myapp Feb 13 19:45:00 i dont see how -k could work, thats weird Feb 13 19:45:18 g00s: hmm, maybe just it worked for some other reason Feb 13 19:45:22 and I'm misattributing it to that Feb 13 19:45:26 so you are saying android unbonded the device and forgot about it ? Feb 13 19:45:33 g00s: no no Feb 13 19:45:43 g00s: I'm saying that the app asked me for permission to enable bluetooth Feb 13 19:45:52 ooh Feb 13 19:46:07 i thought you were going through the pairing process the first time on connect Feb 13 19:46:20 Do someone know if is it possible to secure a table in a sqlite database? not the entire database Feb 13 19:46:54 johnflux: if you don't want/need to go through the install process, you should also be able to `adb shell pm clear com.myapp`. not sure where the dialog is coming from, but in theory it should probably work too Feb 13 19:47:29 oh, interesting. I'd forgotten about -k. Feb 13 19:47:54 groxx: thanks Feb 13 19:47:55 MalekAlrwily: who are you trying to secure it from? (not a rhetorical question) Feb 13 19:49:19 groxx: from user Feb 13 19:49:30 user shouldn't see that data Feb 13 19:50:18 but I don't need to secure the entire database Feb 13 19:50:33 it only one table Feb 13 19:50:35 MalekAlrwily: keep it in your internal application directories, they can't access it there (without root. with root they can pretty easily bypass any security you may set anyway) Feb 13 19:52:05 groxx: it is a sensitive data, I can save the password of database on my server Feb 13 19:52:58 MalekAlrwily: you have to realize that, if you can access the data in the app, there is _literally_ no way to prevent them from accessing it too? you can make it harder, but it's impossible to stop entirely. Feb 13 19:53:48 if it's sensitive enough that Android's sandbox model isn't sufficient, you probably shouldn't put it on the device in the first place Feb 13 19:55:09 MalekAlrwily depending on how important it is to you, you may want to check out the sqlite chapter in http://www.informit.com/store/bulletproof-android-practical-advice-for-building-secure-9780133993325 Feb 13 19:55:29 if for some reason you really need / want to allow people to access / back up the database, I'd very much recommend using an encrypted sqlite database, and keeping the password in your internal folders. Feb 13 19:55:37 g00s: thank you Feb 13 19:55:43 groxx: thank you too Feb 13 19:57:50 MalekAlrwily: iirc there are a few ways to build this for android: https://guardianproject.info/code/sqlcipher/ Feb 13 19:58:55 groxx: yeah, I need something like that :D Feb 13 20:00:27 MalekAlrwily: afaik sqlcipher is essentially "correctly" encrypted storage. nearly anything you roll yourself will not be, and depending on what you did it might make whatever encryption you do almost pointless. use something battle tested, not random snippets. Feb 13 20:21:28 how am I supposed to implement a tabbed view in api 21? Feb 13 20:22:12 the part about viewpager on the developer guide still seems to be about pre-21, because it mentions ActionBar.Tab things which are apparently deprecated in 21 Feb 13 20:23:37 just don't put the tabs in the action bar Feb 13 20:23:55 you can still put them in the toolbar in any case Feb 13 20:24:15 they still haven't changed that O.o Feb 13 20:24:25 I don't know where to start though Feb 13 20:24:36 I'm still working on my first app Feb 13 20:24:43 don't have much experience yet Feb 13 20:26:08 Hey, got another issue with static contexts: https://github.com/Moter8/InteractiveStory/blob/master/app/src/main/java/pw/moter8/interactivestory/ui/MainActivity.java#L57-62 Feb 13 20:26:43 Moter8: I see no static contexts there...? Feb 13 20:26:44 It says that non-static getResources() can not be referenced from a static context... And well, I tried googling but that didnt help Feb 13 20:26:58 ah sorry Feb 13 20:27:57 learn more java Feb 13 20:28:06 static means without an object instance Feb 13 20:28:07 groxx, F5 Feb 13 20:28:48 Moter8: ah. yeah, it says that because it's true. "getResources()" is an instance method on Activity. in a static method, you don't have an instance of Activity, so you can't call it like that. Feb 13 20:29:32 'ello everyone Feb 13 20:29:47 Hmm, I tried preceding getResources with MainActivity... same thing Feb 13 20:29:59 these static/activity are confusing Feb 13 20:30:14 learn more java Feb 13 20:30:19 it's not confusing Feb 13 20:30:21 I'm trying to :D Feb 13 20:30:23 you simply do not know java Feb 13 20:30:28 and you're jumping in over your head Feb 13 20:30:31 true Feb 13 20:31:05 android is a very big jump for starting java Feb 13 20:31:32 go run through some oracle java tutorials first Feb 13 20:31:40 I've had 2 years of java classes and Android still had a huge learning curve Feb 13 20:31:45 multi-threaded, complex base-classes and lifecycle, and constrained memory. pretty much everything you don't want to deal with when learning a new language. Feb 13 20:31:46 then consider books like thinking in java and jcipo Feb 13 20:31:47 jcip Feb 13 20:32:02 memory constraint isn't a real big problem on current generation devices Feb 13 20:32:06 or even last few generations Feb 13 20:32:14 yeah, thankfully :) Feb 13 20:32:25 it's still a thing though, and it drives some of the API design Feb 13 20:32:51 but it could be with Google Android One Feb 13 20:33:57 hm, these guys have 1gb ram Feb 13 20:34:44 just because you have a ton of resources doesn't mean you should code sloppily Feb 13 20:34:56 who said anything about sloppy Feb 13 20:35:01 memory constraint just isn't really a problem for a newbie Feb 13 20:37:32 dunno. lots seem to want to dive straight into huge-bitmap-capturing-and-manipulation stuff, for some reason Feb 13 20:39:37 So, what should I search for to learn to fix this? Feb 13 20:39:58 java tutorials from oracle Feb 13 20:41:34 http://docs.oracle.com/javase/tutorial/ Feb 13 20:42:11 I don't suppose anyone knows of an old version, so it doesn't use java 8 stuff? Feb 13 20:45:10 groxx, maybe wayback machine would have java7 tuts? Feb 13 20:47:58 Has anyone here taken a look at the newest Google Play Music app? I've noticed they're using a navigation drawer and a view pager on some pages. Is each "page" of the app a separate activity? Or are they using fragments? Because I'd like to use that kind of navigation layout for my app and AFAIK view pager doesn't work placed on a fragment, it needs to be on an activity. Feb 13 20:48:35 viewpager can go anywhere you want Feb 13 20:48:36 Oh, and didn't someone awhile back say some of the newer google apps have their source up somewhere? Can anyone point me to the right link for that? Feb 13 20:48:56 and google apps sources are not published Feb 13 20:49:15 Ok. I could've sworn I saw someone that said they saw the source up a week or so ago Feb 13 20:49:34 people lying on the internet?:D Feb 13 20:50:14 Bleeeeehhhhh :'( Feb 13 20:51:09 pfn: So what you're say (in regards to the view pager stuff) is I could have this Pager Sliding Tab Strip (https://github.com/jpardogo/PagerSlidingTabStrip) on a fragment, and have the view pager swiping fragments in that main fragment that houses the view pager?? Feb 13 20:51:19 sure Feb 13 20:51:24 Well damn Feb 13 20:52:36 Does anyone know how can I validate that this version of my app downloaded via Google Play and not modified? Feb 13 20:52:53 you can't, you can try checking your signature Feb 13 20:53:03 but crackers can always work around that Feb 13 20:53:26 pfn: LVL and Google tokens can;t do that for me? Feb 13 20:53:42 cn't* Feb 13 20:53:49 shit, can't Feb 13 20:54:53 lvl does some, but that doesn't mean it can't be worked around Feb 13 20:55:15 pfn: oh, can you please explain? Feb 13 20:55:52 MalekAlrwily: in short, "don't trust the client" :) Feb 13 20:55:53 "can't be modified" -- someone can just open it up, and remove the call to LVL Feb 13 20:56:03 and it's done Feb 13 20:56:15 t0astt: yeah, wayback might work. it's not the nicest browsing experience though :) Feb 13 20:57:02 JesusFreke, pfn: I know, my client (app) NEED to call server to get some info Feb 13 20:57:28 MalekAlrwily: and opening up apps and modifying them is pretty common. lots of random "download x apk" inject ads and whatnot automatically. Feb 13 20:57:34 server will check if app is validated Feb 13 20:57:42 server can never do that Feb 13 20:57:54 "download x apk sites", that is Feb 13 20:58:08 and yes. it's impossible to tell for sure from the server. Feb 13 20:59:31 groxx: I read something about it and it is possible Feb 13 20:59:57 you read something incorrect. Feb 13 21:00:07 :( Feb 13 21:00:12 but the intarweb says so! Feb 13 21:00:28 why LVL exists then? Feb 13 21:00:48 It increases the amount of effort required to modify an app Feb 13 21:00:56 you can make things harder to fake, even to the point of being quite difficult, but that's it. Feb 13 21:00:59 Hmm, can we expect any big updates to AppCompat? I kinda hate all the little inconsistencies (buttons are still Holo, spinners in toolbars don't have the right arrow colours, etc.). Feb 13 21:01:11 I'm a huge consistency person, and little things like that drive me crazy. Feb 13 21:01:35 TacticalJoke: I don't see why not, but you can just keep the old version Feb 13 21:02:09 I don't recall any big changes happening in the past though Feb 13 21:02:27 You mean Holo? I'm seriously thinking about it. lol. But everyone (especially redditors) seems to want Material nowadays. Feb 13 21:03:30 To me, AppCompat just feels unfinished. It's like "Yeah, 80% of your app will kinda look like Material. Enjoy". Feb 13 21:03:40 TacticalJoke one of the things you have to ask yourself when writing an app, is what kind of audience you will have, and what they want. redditors are probably a tough crowd, but you asked for it :D Feb 13 21:03:45 redditors seem abnormally hype-driven Feb 13 21:03:47 :D Feb 13 21:04:03 I could do a Material-like Holo pretty easily. Feb 13 21:04:31 I think Reddit News does that. Everyone talks about how awesome and Material it is, but it looks like a customised Holo to me. Feb 13 21:04:32 not abnormal for _reddit_, of course, but as users in general :) Feb 13 21:04:40 Yes. lol Feb 13 21:05:44 my plan is: client need some info to work, that info stored on my server, client will request the info from server, but (as you know) HTTP requests can come from anywhere! so client need to give server a proof Feb 13 21:05:45 Is it possible to use RecyclerView with Holo? I guess not, but I wonder. Feb 13 21:06:08 groxx: what do you think about my plan Feb 13 21:06:19 TacticalJoke of course you can :| Feb 13 21:06:42 Oh. I tried using Toolbar with Holo and it gave me an exception every time. So I guess you can use RecyclerView but not Toolbar? Feb 13 21:06:55 MalekAlrwily, eventually someone will figure out the proof Feb 13 21:07:15 It's best to assume that any web API is public Feb 13 21:07:30 frankdrey: the proof can be a license response or a token Feb 13 21:07:49 MalekAlrwily: since the app needs to have proof, people can copy it and fake the response. there is no way to make that impossible. Feb 13 21:08:05 I'm gonna try it. Feb 13 21:08:31 harder, sure - you may be best off with something like dexguard + actually understanding the security implications (which will take a LOT of time). but "harder" is all you can ever achieve. Feb 13 21:08:40 it's not a limitation of Android, it's a limitation of _reality_ Feb 13 21:09:09 groxx: but people can't fake the proof, since the proof is signed by google servers, and the only way to read it is using the public key Feb 13 21:09:21 Maybe my attitude should be "I don't care what users want; I care what I want. If what they want and what I want happen to coincide, awesome". Feb 13 21:09:27 Though that is kinda selfish. Feb 13 21:10:23 MalekAlrwily: then they can mimic whatever submits the request to google's servers to sign the data, and send it to you, and it'll look legit (because it is) Feb 13 21:10:51 it's hard, but not impossible. Feb 13 21:11:41 groxx: oh, I understood your point, thanks Feb 13 21:13:30 MalekAlrwily: the important part is that at some point there's something that can be faked. always. and not due to security exploits, just because that's the nature of communication. all you can do is hide things and make them harder to fake. Feb 13 21:14:26 yeah Feb 13 21:21:15 I'm correct in thinking that I can't use Toolbar with Holo, right? Feb 13 21:24:56 I'm looking at the ViewPager implementation here (http://developer.android.com/training/animation/screen-slide.html). In the last code section before the customize section, they have a "public Fragment getItem(int position)". Can I replace the "return new ScreenSlidePageFragment();" with a different fragment, based on some fragments that I've already made and a switch case? Like if position == 1, return a Home fragment, if 2 return a Profile fragmen Feb 13 21:25:39 TacticalJoke: one thing I've been wondering for a while now: what does Toolbar give you beyond e.g. your own view? make it easier to migrate from the actionbar API? is there some behavior it makes easier (move away on scroll)? Feb 13 21:26:11 I haven't tried it out yet (soon!), but I at least have developed a healthy distaste for actionbar. Feb 13 21:26:13 i use toolbars in different places of my layout :) Feb 13 21:26:34 g00s: at the bottom, diagonally, in 3D transforms? Feb 13 21:26:40 The API is nicer. You can say inflateMenu(R.menu.main) instead of doing stuff in onCreateOptionsMenu. Showing a back arrow is also nicer: app:navigationIcon="?attr/homeAsUpIndicator". It can be positioned wherever, animated, etc. Feb 13 21:27:04 Oh, and no more onOptionsItemSelected. You just set an on-click thing for the menu. Feb 13 21:27:10 what's used on android to create videos wich uses hardware acceleration? ffmpeg doesn't Feb 13 21:27:31 I think ffmpeg can? typically you'd render it to a surface view Feb 13 21:27:33 groxx in some fragments (at the top) and in cardviews Feb 13 21:27:52 groxx: Are you guys sticking with Holo? Feb 13 21:27:58 Or something based on Holo. Feb 13 21:28:03 gdrc: you'll want to watch ffmpeg's licensing rules though, the GPL stuff may not let you use it like that w/o your app being GPL too. Feb 13 21:28:07 any good way to revert database just in case it crashes while onUpgrade? Feb 13 21:28:37 groxx: that's the last of the problem Feb 13 21:28:54 Is there any visually pleasing charts/plot library for android? Feb 13 21:29:11 autrilla: I was planning on releaseing something simple Feb 13 21:29:17 Never had enough time for it though Feb 13 21:29:27 TacticalJoke: work-app isn't any system theme (not totally custom either, just not e.g. Holo inspired), side-app is holo-ish? but mostly because I haven't pulled in appcompat 21 (gotta get proguard working reliably first, gee thanks, samsung) and I haven't really spent any styling time yet. Feb 13 21:29:36 Well stuff like http://androidplot.com/ isn't exacly good looking :p Feb 13 21:29:41 lol Feb 13 21:29:50 Mine doesn't expand. You have to define the scale and other stuff Feb 13 21:29:56 And it only goes point by point Feb 13 21:29:59 You can't do curves Feb 13 21:30:08 One thing I find is that Toolbar, while nice, isn't *that* customizable. Feb 13 21:30:09 Its only a graph Feb 13 21:30:25 There seems to be no way to determine where the overflow icon appears or where the back icon appears, for example. Feb 13 21:30:27 The JS one Google has is nice Feb 13 21:30:34 autrilla: Yeah Feb 13 21:30:37 So reducing its height seems to be a no-go. Feb 13 21:30:38 androidplot looks pretty reasonable to me from those pictures - there are some garish styling choices in some, but the range makes me think you can probably tweak it to look fine. Feb 13 21:30:44 (Because they stay at the same position relative to the top.) Feb 13 21:30:57 I want the ability to customize *everything*. Anything else is a pain. Feb 13 21:31:07 like the 4th one, "Pacer". is something wrong there? Feb 13 21:31:13 This one looks better https://www.youtube.com/watch?v=ufaK_Hd6BpI Feb 13 21:31:15 Yeah. They probably customized it a lot Feb 13 21:32:06 brb Feb 13 21:32:34 Ugh. Holo looks kinda blocky and AppCompat is so fiddly and I don't trust it. Hard to know what's best. Feb 13 21:32:34 http://i.imgur.com/01PGoVY.png :( Feb 13 21:33:42 I could use a ViewGroup à la shmooz, but then I lose the ability to have consistent-looking overflow menus, overflow buttons, and back buttons. Feb 13 21:34:01 Moter8, stacktrace or gtfo Feb 13 21:34:20 http://imgur.com/jacoj nice to see this is still up there Feb 13 21:34:24 TacticalJoke: I'd assume the overflow menu code is somewhere? maybe it can be used in isolation. Feb 13 21:34:29 Why doesn't Android just give us an OverflowMenuButton or something? Feb 13 21:34:40 Or a ToolbarButton. Feb 13 21:34:46 https://gist.github.com/Moter8/562a37b03e5d6a0c1a2f Feb 13 21:35:08 I think so, groxx, although I suspect it'll be big and complicated, drawing on all kinds of theme-related stuff. Feb 13 21:35:35 Moter8: What's the stack trace (from LogCat)? Feb 13 21:35:39 F5 Feb 13 21:35:41 TacticalJoke: yeah, it wouldn't surprise me. Feb 13 21:35:53 I probably did some retarded thing Feb 13 21:36:15 I think the stacktrace is self explainatory Feb 13 21:36:30 Imagine if we had that: ToolbarButton (which could be a back button), OverflowMenuButton. We could just place them on ViewGroups. God, it'd be so easy. Feb 13 21:36:41 ActionBar and Toolbar force everything into a rigid box. Feb 13 21:36:50 Moter8: basically: don't make activity instances yourself. if you need a context (and it's not being used to build views! this is important!), you can use the Application context. otherwise, in general, you should be passing in contexts whenever you're calling things (so activity should call .getPages(this) ) Feb 13 21:37:05 String mPageText[] = mActivity.getResources().getStringArray(R.array.myPageBook); Feb 13 21:37:22 Oh, I wondered what he meant by F5. Now I see. Feb 13 21:38:01 "private Activity mActivity = new MainActivity();" Feb 13 21:38:03 Oh boy. :D Feb 13 21:38:35 Moter8: Can I just make the understatement of the century and say "That is not correct". Feb 13 21:38:38 "passing in contexts" hmm Feb 13 21:38:57 Why does Android need so many contexts anyway> Feb 13 21:38:59 ?* Feb 13 21:39:58 autrilla: http://possiblemobile.com/2013/06/context/ Feb 13 21:39:59 Moter8: Wasn't it you the other day we were telling to pass the Context (or Resources) in as a parameter? Feb 13 21:40:01 this is too high for me :/ Feb 13 21:40:13 Yes, I had a similar issue Feb 13 21:40:24 I moved the resource calling into the mainactivity.java Feb 13 21:40:26 autrilla: they're the information that tells your app who it is and where all its data is. Feb 13 21:41:16 Moter8: You cannot call Context.getResources inside that class of yours. Like we said the other day. Feb 13 21:41:17 autrilla: they also take into account system info, like the current language, which isn't something you could "know" without asking. and all that can change which resources you get from your package. Feb 13 21:41:28 Do that in an Activity subclass or an Application subclass. Feb 13 21:41:44 groxx, yes but I've seen Android ask for one on methods you wouldn't expect to need one Feb 13 21:41:47 Trying to instantiate an Activity to call Context.getResources makes no sense at all. Feb 13 21:42:29 autrilla: it can be a bit fuzzy, yeah. but if it e.g. gives you an error message, it may need to localize it. or if it needs access to _literally anything_ that isn't in your code (filesystem, the OS, etc), it probably needs a context. Feb 13 21:42:44 Moter8: Why not just pass the Resources to your object? Story story = new Story(getResources()); Feb 13 21:42:57 Then your object can say "resources.getStringArray(...);". Feb 13 21:43:03 Even better might be to pass the string array itself. Feb 13 21:45:08 autrilla: if you think of it as a "notMyJavaCode.doSomething" (like "getString", which accesses the XML and the system's current language (and maybe even your current theme / etc)) wrapper, you're pretty close to understanding it. Feb 13 21:47:03 agree with TacticalJoke. You should be giving your classes the things they need, not requiring them to go fetch them for themselves Feb 13 21:47:07 I'll try doing something Feb 13 21:51:07 crash :D Feb 13 21:52:49 Good thing we don't learn to drive like we learn to program. Feb 13 21:53:42 google will be doing it for us :| not so sure thats good either :) Feb 13 21:57:01 eh. people suck at driving. I'll be thrilled when robots do it for us. Feb 13 21:57:12 I still get around two IDE errors every day in Android Studio. I barely trust them to make an IDE. ;| Feb 13 21:57:58 At least I'm goot at making NPEs Feb 13 22:00:09 How about this for an idea: Forget Toolbar and ActionBar; just use a ViewGroup with a flat button for the Up arrow and a spinner for a (simple) overflow menu. Is that crazy? Feb 13 22:00:17 ugh. wtf Android Studio. Y U NO warn me that View.getDisplay() is APIv17? Feb 13 22:00:21 Obviously we lose the ability to show actions when there's room. Feb 13 22:01:06 groxx: Yeah, doesn't warn me either. Feb 13 22:01:08 TacticalJoke: copy Toolbar's source, add whatever you need? Feb 13 22:02:52 One thing that drives me crazy about Android is "There has to be a simpler way!" turns, hours later, into "Meh, I guess I'll just do it the normal way". Feb 13 22:02:58 Or days/weeks later. Feb 13 22:03:14 And the constraint feels totally arbitrary. Feb 13 22:03:38 Yeah, looking at Toolbar.java. It's big. Feb 13 22:03:49 and then another couple days later you discover that there's a keyboard shortcut for it Feb 13 22:04:19 I'm actually working on a Toolbar right now... Feb 13 22:04:21 щ(ಠ益ಠщ) Feb 13 22:04:32 MikeWallaceDev: Why is that? Feb 13 22:04:53 What's it's use besides having specialized views? (logo, navIcon) Feb 13 22:05:16 I'm using it to create a "partial ActionBar" Feb 13 22:05:19 Oh, you mean the standard Toolbar? Thought you meant a custom version. :) Feb 13 22:06:08 I'm customizing it. I just don't see why I'm using Toolbar. I think a linear layout would have done the job Feb 13 22:06:08 I guess it's just a ViewGroup that can have an overflow thing and a navigation icon. Feb 13 22:06:26 TacticalJoke, right... Feb 13 22:06:49 So it's more like ActionBar2, that can be placed anywhere. Feb 13 22:06:56 Yeah, seems that way. Feb 13 22:07:23 Yeah, I think I'm going to remove it. I don't think I will use any of that stuff... Feb 13 22:07:28 Isn't it weird that they ever released ActionBar? Feb 13 22:07:53 I'm actually thinking of hiding it, just leaving a little tab, and sliding it out when the tab is clicked on Feb 13 22:08:01 YES! Feb 13 22:08:22 I don't understand why the person/people who thought of ActionBar didn't think of something way more simple. Feb 13 22:08:51 I was reading about resources and views last night, and I found it weird that the ActionBar is not counted in your screen space... Feb 13 22:08:57 anybody have experience using this horizontal list view? https://github.com/sephiroth74/HorizontalVariableListView Feb 13 22:08:59 I think it was pre-compat-lib? Feb 13 22:09:13 at least they're learning, and not putting Toolbar in the main SDK Feb 13 22:09:22 http://i.imgur.com/jVjfs5R.png gahhh! Feb 13 22:09:27 TacticalJoke, because Android once had a solid base and since then they've been hacking on pieces left and right? Feb 13 22:09:32 Just a thought Feb 13 22:09:54 Moter8: thats what http://www.emptyloop.com/unlocker/ is for Feb 13 22:10:01 groxx: Oh, it is in the main SDK. :D Though also in v7. Feb 13 22:10:28 MikeWallaceDev: Yeah, I guess that's a factor. Feb 13 22:10:41 Hi guys Feb 13 22:10:47 Napalm: Did you use AppCompat for the BBC app? Feb 13 22:10:48 TacticalJoke: d'oh. k, issue a redaction. they haven't learned. Feb 13 22:10:56 Anyone from eastern-Europe? Feb 13 22:11:12 I don't know enough about the different Views to pick the right one for what I want it to do. Feb 13 22:11:19 Reading up on resources last night : is available, you can use it - should always be used. - never use !! Feb 13 22:11:25 newbQ: What do you want to do? Feb 13 22:11:48 TacticalJoke: yes Feb 13 22:11:50 Yeah, I saw that, MikeWallaceDev. I think "never use it" wins overall, but it's confusing as heck. Feb 13 22:12:25 xxxhdpi should ONLY contain your icon. Don't put any resources. - xxxhdpi is used for Nexus 6 and 9, put all your resources!!! Feb 13 22:13:05 What's the selector color to use for listview in navigation drawer? Feb 13 22:13:11 TacticalJoke, I'm not sure... because it says that supports-large and xlarge have difference defaults on different versions of Android! Feb 13 22:13:24 So if you don't put it, you might not show up on the Market Feb 13 22:14:04 gahh Feb 13 22:14:20 >folder browser that doesnt update when opening a new folder(tree) Feb 13 22:14:32 literally android studio Feb 13 22:15:06 yeah, be minimal about xxxhdpi. it takes up a lot of space, and beyond xx / xxx you really don't see the blurry edges. N6 isn't even using xxxhdpi exactly, it does some scaling, but you don't notice (it's 3.5x DPI) Feb 13 22:16:09 groxx, that's not what I read last night :-/ Feb 13 22:16:31 and it did look weird in AS preview without the xxxhdpi Feb 13 22:16:35 your suppose to use the mipmap resource type for launcher icon resources Feb 13 22:16:40 but my app is still 7.6 Mb Feb 13 22:16:44 so I'm ok Feb 13 22:16:58 MikeWallaceDev: the N6 falls into this density bucket: https://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_560 Feb 13 22:17:09 Napalm, that tab is still open in my browser :D Feb 13 22:17:14 TacticalJoke: dynamically add horizontally arranged columns that space themselves equally to fill the row. and have them drawn/redrawn based on a spinner's value Feb 13 22:17:21 Hi anybody from europe who wants to build an app with me/ Feb 13 22:17:24 groxx, I know, it falls in between Feb 13 22:17:53 TacticalJoke: not sure I explained that very well Feb 13 22:17:56 dev18: Why would physical location even matter? Feb 13 22:18:08 does it count that getDimensionPixelSize(R.dimen.one_dp) == 3, and R.dimen.two_dp == 7? Feb 13 22:18:15 Hmm Feb 13 22:18:22 well could be handy right (same time-zone etc) Feb 13 22:18:30 Okay, fair point. :) Feb 13 22:18:50 time-zones are for wuses. Feb 13 22:18:57 LOL? Feb 13 22:18:59 wusses? Feb 13 22:19:00 :D Feb 13 22:19:14 :O Feb 13 22:19:23 Yeah, I work with a guy in Germany, it's not always easy Feb 13 22:19:41 hmm do you have any recommendation website Feb 13 22:19:50 the 3.5x scaling can cause some joyous-to-debug single-pixel errors :| and the scaling can bite you too, since if you have a transparent pixel against a solid pixel, it'll blur a single semi-transparent pixel in between. Feb 13 22:19:52 then again, I also work with a guy from basically the same city and we are like ships passing in the night... Feb 13 22:19:53 where is easier to find partners (programmers) Feb 13 22:20:03 hmm Feb 13 22:20:28 groxx, I've been dealing with this since yesterday morn. Hell. Feb 13 22:20:41 dev18, are you a programmer? Our just looking for one? Feb 13 22:20:51 who cares about single pixel errors :p Feb 13 22:20:52 well looking for one because i am myself not so good Feb 13 22:20:53 not when it's 300dpi Feb 13 22:21:25 why is retrofit complaining "No retrofit annotation found" when there's an annotation right there Feb 13 22:21:31 on the parameters Feb 13 22:21:38 dev18, then maybe someone at school would be best? Feb 13 22:21:38 MikeWallaceDev: don't ya wish the xml resources could have math in them? e.g. @dimen/y + @dimen/z Feb 13 22:21:55 groxx, read it to the tune of Pussycat Dolls Feb 13 22:22:13 hmm not a bad idea what you just said Feb 13 22:22:15 groxx, My first wish is that AS had more information in it. I'm very visual. Feb 13 22:22:20 MikeWallaceDev: it would make "use resources for everything" so much easier, since you could have "exact" values saved, and not get compound-pixel-rounding errors Feb 13 22:22:35 Afzal: ಠ_ಠ Feb 13 22:22:39 Afzal: now that'll be in my head. Feb 13 22:22:52 Don'tcha wish your parser was a freak like me? Feb 13 22:23:21 Yeah, it's weird that we can't do that. Seems like an obvious feature. Feb 13 22:23:21 thanks MikeWallaceDev Feb 13 22:23:24 groxx, I wish AS would tell me exactly which resources it was using in the preview. And the boundary of the resources Feb 13 22:23:41 no problem dev18 , that's how many of us started :) Feb 13 22:23:56 MikeWallaceDev: hm. the xml preview? it seems pretty good to me (though it can require some (in code!) tweaks to not crash the preview) Feb 13 22:24:15 yet more need for proguard :| "if (isInEditMode())" should never make it into production. Feb 13 22:24:57 groxx, oh I was having all kinds of problems with it... Especially when viewing many devices simultaneously. Feb 13 22:25:52 1 or 2 devices would just switch orientations for no reason (my activity is locked in landscape!) Feb 13 22:25:58 weird Feb 13 22:26:24 I screwed around for an hour because I thought it was resizing my drawables Feb 13 22:26:25 I've never had problems with the multi-device / language previews Feb 13 22:26:30 or not using the correct one Feb 13 22:26:38 ah. yeah, drawables don't work 100% in it. Feb 13 22:26:46 almost! not quite. Feb 13 22:26:54 turns out that they did! But I didn't know it Feb 13 22:27:04 it was resizing my view Feb 13 22:27:22 But I thought it was seeing the Image's boundary, not the View's Feb 13 22:27:36 what I usually have problems with is it selecting the wrong theme (even though we have an application theme set) Feb 13 22:27:45 it could have a line for the View and a dashed line for the Image Feb 13 22:27:52 aah Feb 13 22:28:28 It was hard to figure out because my image shouldn't have scaled... I still don't understand why it did/does Feb 13 22:28:41 yeah, some kind of rich view-inspector would be nice. I think my next project may be to build PonyDebugger for Android, in particular the view inspection stuff Feb 13 22:28:56 Napalm the rx subject docs say about Subject "Because it is an observer, it can subscribe to one or more Observables" .. do you know how ? Feb 13 22:29:09 I'd like to plug it into Firefox instead, but their debugger API isn't stable yet, and doesn't include enough to do the view inspection Feb 13 22:29:17 yeah.. I'm sure we'll get it soon enough :) Feb 13 22:30:41 Is there some kind of library that mediates requests for data by doing something like checking memory cache, if empty check disk cache, if empty do network request, then feed that back into memory and disk cache and propogate to original caller? Feb 13 22:31:43 Ugh. Guess I can't avoid AppCompat. Stuff just looks so old in Holo now. Feb 13 22:32:15 lasserix: that would probably be OkHttp? Feb 13 22:32:17 groxx: Are you certain about that ListView-not-drawing-dividers-for-new-view-types-on-5.0 thing? It seems to work fine in the 5.0 emulator. Feb 13 22:32:22 I zoomed in and they all look fine now. Feb 13 22:33:02 TacticalJoke: small possibility they changed their minds and it doesn't happen in e.g. 5.0.1, but reasonably. I won't claim 100% though. Feb 13 22:33:24 i can check a bit later Feb 13 22:34:23 Dude. I'm freezing. http://www.theweathernetwork.com/weather/canada/quebec/laval?wx_auto_reload=forecasts:%20city%20page:%20auto%20refresh Feb 13 22:34:46 MikeWallaceDev: nice. Feb 13 22:34:57 that's legit cold Feb 13 22:35:14 Feels like -26F :-/ Feb 13 22:36:09 I do kinda miss cold weather. originally from Wisconsin, now in silicon valley, where there is no weather at all. Feb 13 22:36:59 I wouldn't change it for the world. Feb 13 22:37:22 Just because I'm cold _NOW_ doesn't mean that I don't love it :) Feb 13 22:38:43 TacticalJoke: pretty sure. red is the divider, you can guess which are the differing view types: http://cl.ly/image/1y3F3S2A0d1l (ignore the gray lines, those are backgrounds on the cells themselves, since it's marginally less horrible) Feb 13 22:39:35 TacticalJoke: that's a pretty vanilla listview. just layout_width/height + divider/dividerHeight set, a simple multi-type adapter, nothing else. Feb 13 22:39:38 Weird. Are you doing anything strange at all? Feb 13 22:39:44 Okay. Feb 13 22:39:44 nope. works fine on older OSes Feb 13 22:40:27 no weather? you get spring and summer, what more do you want? Feb 13 22:40:31 Are you setting the divider height in px? Just curious. Feb 13 22:40:40 small possibility they decided to pull a Samsung and this is an N6 only thing, I don't think I've tested it on other 5.0 phones Feb 13 22:40:43 1dp height Feb 13 22:40:50 want me to try? Feb 13 22:40:58 Sure. If you could try 1px. :) Feb 13 22:41:05 It probably won't change anything, but I'm curious. Feb 13 22:41:21 same Feb 13 22:41:40 Weird. I'm trying custom divider/dividerHeight now on the emulator (was using defaults before). Feb 13 22:41:42 thinner, obviously, but where it draws is the same Feb 13 22:42:36 Are you using Material on 21+, BTW? I see that the status bar is coloured with your app. Feb 13 22:42:39 looks the same on an N4 Feb 13 22:43:44 In your screenshot, it looks like there's a grey line where a red one is missing. Feb 13 22:43:50 Maybe I'm mistaken. Feb 13 22:44:35 hmm my cardviews are all flat on lollipop, anyone know why? Feb 13 22:44:39 the gray line is a line I'm intentionally drawing on the bottom of my bigger views, to fake the divider, because I'm lazy Feb 13 22:44:45 Okay. Feb 13 22:44:48 Are you using AppCompat there? Feb 13 22:44:58 still can't wrap around my head with this static-nonstatic *#!\ Feb 13 22:45:00 lasserix maybe no elevation? Feb 13 22:45:46 hmm, connection problem, seems my theme line may not have been sent. I'm using android:Theme.Holo.Light.NoActionBar as my base theme, very little styling beyond that. Feb 13 22:46:02 it's still placeholder-y Feb 13 22:46:04 Oh. So it's not an AppCompat thing? ;o Feb 13 22:46:28 doesn't seem that way, no Feb 13 22:46:48 not sure why appcompat theming would change divider placement, but who knows Feb 13 22:47:01 lasserix: If you're not busy, can I send you my app? Feb 13 22:47:05 Don't worry if you're busy. :D Feb 13 22:47:24 Yeah you can send it Feb 13 22:48:09 Thanks! One sec. Feb 13 22:48:48 My computer slows to a crawl with Android Studio, Google Chrome, and the emulator. Feb 13 22:49:07 Google Chrome is one of the worst. Just a few tabs and it's falling apart. Feb 13 22:50:04 on my nexus, i keep trying to open tabs in Chrome but get a blank window saying "maximum # of processes exceed, try again in xxx" Feb 13 22:50:08 I pretty much only use Chrome because of the extensions... Feb 13 22:50:12 it's kinda sad how browsers keep repeating the "simple! fast! don't use that old bloated X!" -> "sure, lets add ALL the features" -> "slower than X! no alternative! Hah!" sequence. Feb 13 22:50:14 I don't use it on my devices. Feb 13 22:50:23 I use Boat Browser, I like it Feb 13 22:50:48 firefox has extensions on devices. much <3 for adblocking on my phone. Feb 13 22:51:17 Nah none of that is working Feb 13 22:51:24 I know firefox has extensions, but not the same ones... and AD is a life saver Feb 13 22:51:32 Is it app-debug.apk from Gradle? Feb 13 22:51:34 AD? Feb 13 22:51:42 and yeah, most of the same extensions work, no modifications Feb 13 22:51:45 well, that's what I remember :D Feb 13 22:52:00 the extension from Nurik, to find the source code Feb 13 22:52:07 ones with compiled code don't usually, but the JS-based ones work, though the UI is often funky. Feb 13 22:52:16 Or should I send app-debug-aligned.apk? Feb 13 22:52:19 you type AD and it automatically searches in Android Feb 13 22:52:28 Oops. I mean the one that doesn't have "-unaligned". Feb 13 22:53:18 MikeWallaceDev: aah, gotcha. yeah, chrome does have the advantage that it's _really_ easy to build extensions. Feb 13 22:53:57 alas that they're not on mobile. dunno why not, since a lot of the UI seems like it would translate, and they're nearly all JS/HTML/CSS. Feb 13 22:54:03 I guess Pocket is available on FF too, and goo.gl those are the ones I use the most Feb 13 22:54:46 people using eclipse in 2015 for android-dev <3 Feb 13 22:54:50 also try "Bluhell firewall" - way faster adblock than Adblock, gets 90%+ of the ads. Feb 13 22:55:08 I've actually dropped Adblock for all browsers, it slows things down visibly Feb 13 22:55:33 I have adBlock, and some style thing... It was needed for "something" Feb 13 22:55:34 use uBlock instead Feb 13 22:55:39 maybe I should remove them... Feb 13 22:56:15 Okay, sent, lasserix. Hope I sent the right APK thing. lol Feb 13 22:56:43 When you have time, can you just check whether list dividers show on the first activity and on the comments activity. Feb 13 22:56:47 Every item should have a grey divider. Feb 13 22:56:56 MikeWallaceDev: adblock may very well be your single biggest bloat. it's terrifying how it works. Feb 13 22:57:02 There is a bug where it crashes every time reddit is down (lol), but that's semi-purposeful and temporary. Feb 13 22:57:17 I just changed something to rethrow an exception, but totally forgot it'd rethrow when reddit is down too. Feb 13 22:57:21 TacticalJoke: appropriate :) Feb 13 22:58:24 Maybe that could be my app's way of saying that reddit is down? Feb 13 22:58:27 Make the user feel the pain. Feb 13 22:58:47 TacticalJoke andy being crushed by arrows Feb 13 22:58:47 "This is all your fault!" Feb 13 22:59:27 :( Feb 13 22:59:28 sorry Feb 13 23:00:04 There's also a bug where you rotate the screen and a subreddit is selected. Really easy to fix but I have been pushing it to the back of my mind (because I have screen rotation disabled). In other words, if it crashes, don't worry. :D Feb 13 23:00:05 groxx, searching for "bluhell firewall" on the webstore... nada. Feb 13 23:00:37 MikeWallaceDev: sorry, i was confused earlier :) it's a firefox extension Feb 13 23:00:52 Fine! Tease me! Feb 13 23:00:54 :D Feb 13 23:00:55 :P Feb 13 23:01:02 They have uBlock, might just try that Feb 13 23:01:05 I might actually show a sad smiley when reddit is down. Like "reddit is down :(". Though maybe it's too lolcat. Feb 13 23:01:32 The typical 15-year-old user would probably love it though. Feb 13 23:02:03 crap, uBlock has great ratings! Thanks Moter8 Feb 13 23:02:09 "i can't haz internet (yet; please try again in a moment)" Feb 13 23:02:13 ublock still looks adblock based. hopefully it's a bit smarter about its technique (should be possible), but I think that may still be a core flaw. Feb 13 23:02:24 I'm using uBlock. It seems slightly more memory efficient. Feb 13 23:02:57 see, switching from adblock to bluhell dropped _gigabytes_ of memory for me. and cut a second off page-loads on my phone. Feb 13 23:03:43 Nice. Feb 13 23:04:07 Nice Feb 13 23:07:39 I don't understand why they put "minifyEnabled false" in release mode.... Feb 13 23:11:40 lasserix: Did it go through? Feb 13 23:13:09 MikeWallaceDev: since it could remove stuff, it could change behavior. better to be safe. Feb 13 23:14:31 Well.. yes... but it should be part of one's development process to fix optimizations anyway... Feb 13 23:14:53 I mean, what else does Release do?? Feb 13 23:15:07 as far as optimizations go? Feb 13 23:15:09 not include debug code, have different signing behavior? Feb 13 23:15:14 I think some people don't use ProGuard. Feb 13 23:16:14 I wonder what this is: "First version of the test only plugin": https://android-review.googlesource.com/#/c/132111/ Feb 13 23:16:15 groxx, not what I mean. I mean, _compiling_ in release mode... Feb 13 23:16:41 it doesn't include debugging symbols Feb 13 23:17:14 wow. Feb 13 23:17:29 /s Feb 13 23:18:21 Last time I tried to remove the Log.* and it didn't work... Feb 13 23:18:40 sorry, not actual ProGuard syntax, I was just being lazy there :) Feb 13 23:19:21 They're also working on "Add the ability to run tests in the cloud". Feb 13 23:19:27 w00t Feb 13 23:19:28 Not sure exactly what that's about. Feb 13 23:19:38 e.g., this: https://android-review.googlesource.com/#/c/130930/ Feb 13 23:24:01 MikeWallaceDev: yeah, proguard is definitely non-trivial to use. read the docs, try making a custom proguard rule file without any additional ones (e.g. remove the getDefaultProguardFile call), and try reading the proguard files in the SDK folders. Feb 13 23:24:25 getting just log-removal isn't too hard. Feb 13 23:24:36 agree. Still didn't work :D Feb 13 23:26:04 MikeWallaceDev: this is also kinda interesting: http://raptordigital.blogspot.com/2014/06/logging-and-proguard.html Feb 13 23:26:29 I'll check it out! Feb 13 23:26:33 it also links to a decent "android and proguard" article near the top Feb 13 23:27:43 though you'll see elsewhere - don't use -assumenosideeffects { *; }. it can cause problems. Feb 13 23:28:07 normally it probably doesn't matter, but it's fundamentally not really safe Feb 13 23:28:52 Hey, I have a question: What's the advantage of Property Animation over View Animation? Feb 13 23:28:59 groxx: Do you know an alternative to LVL? Feb 13 23:29:00 It was never clear to me Feb 13 23:32:04 simpler to write and conceptualize Feb 13 23:32:55 and yet, I never write animations Feb 13 23:33:10 my Achilles heel on android Feb 13 23:33:32 that's it? Feb 13 23:34:27 heh. I don't write animations much either - can't help you :) Feb 13 23:34:52 Meh, I'm using View animations... Feb 13 23:35:04 I use Property animations for other stuff... Feb 13 23:37:16 That's actually why I was asking... I use both, but don't see the advantage of Property animation. Feb 13 23:41:25 One thing I don't understand is why ActionBarActivity.setSupportActionBar(Toolbar) exists. Feb 13 23:41:48 As far as I can see, that gives us nothing whatsoever. Feb 13 23:41:53 Well, nothing good. Feb 13 23:42:20 It exists because it's a backport of the Toolbar api Feb 13 23:43:36 awwwwww I just found the 1.6 SDK on my drive :) Feb 13 23:44:49 *nostalgia* -> rm -rf that_folder Feb 13 23:45:24 too late. Feb 13 23:45:31 the nostalgia got ya? Feb 13 23:45:38 hello guys Feb 13 23:46:09 it just makes the grieving process more drawn out. rm before it sets in! Feb 13 23:46:11 TacticalJoke: nothing beats La Stile a la shmooz ! Feb 13 23:46:18 hehe Feb 13 23:46:23 hey alexi5 Feb 13 23:46:48 if i have an application that allows user to perform transactions and have the last 10 transactions logged, what storage mechanism is most suitable for this ? Feb 13 23:47:25 probably cloud, they will want that info everywhere Feb 13 23:48:00 I'll say that it depends on the transactions. since that's not likely to be much data, I might just reach for shared preferences :| Feb 13 23:48:57 ok. i was thinking of sqlite database, but i figured it would be to much for something like this Feb 13 23:49:01 JSON with a key? Feb 13 23:49:04 lasserix: Did the APK go through? Feb 13 23:49:47 this data will be listed in a listview as well Feb 13 23:50:00 What kind of transactions? I just assumed bank transactions Feb 13 23:50:08 for a small amount of data, I usually think sqlite is overkill. lots of boilerplate, you don't really need to keep memory down, etc. if you intend to make lots of changes / have unbounded size, then absolutely, but not for something small. Feb 13 23:51:40 messages send to a server (non financial) via SMS Feb 13 23:52:04 oh wow, just a string. Yeah, preferences will probably be the simplest Feb 13 23:52:11 but then: meta data Feb 13 23:52:20 JSON all the things :D Feb 13 23:52:37 That's what _I_ said! :P Feb 13 23:52:38 :D Feb 13 23:52:41 yeah :) Feb 13 23:52:57 thanks MikeWallaceDev Feb 13 23:53:08 speaking of, anyone know of any JSON way to integrate shoutcast search into an android app ? Feb 13 23:53:11 but yeah. that or query the server directly, depends on what you need. sqlite is very likely overkill. Feb 13 23:53:22 it was a team effort alexi5 :D Feb 13 23:53:45 see, I have all my boiler down... I just go straight to SQL... Feb 13 23:53:53 haha Feb 13 23:54:02 no, seriously :D Feb 13 23:54:14 yeah, I made a helper class a while back. makes it a lot easier to just say "meh, I'll use sqlite" Feb 13 23:54:18 I have an extensive SQL library that allows me to do it quickly Feb 13 23:54:25 exactly Feb 13 23:54:31 maybe some day I'll try Schematic :) Feb 13 23:55:36 In some cases, a flat file might be appropriate. Feb 13 23:55:46 But the write-rename trick might be needed for atomicity. Feb 13 23:56:00 yeah. which is why I lean towards sharedpreferences first Feb 13 23:56:07 fsync() could be used for durability, but at that point a database is probably starting to make sense. Feb 13 23:57:14 you need to do all and fall back to another when one fails Feb 13 23:57:38 if the db goes down, you got sharedprefs and flat file Feb 13 23:57:57 filesystem goes down: pray the internet hasn't died. Feb 13 23:58:14 internet is dead: the apocalypse is nigh, records don't hold value. stockpile bitcoins ASAP. Feb 13 23:58:40 If the Internet went down, I bet suicide rates would sky-rocket. Feb 13 23:58:45 If it went down for, say, six months. Feb 13 23:58:47 *stockpile chickens Feb 13 23:59:02 I'm not sure how I'm defining "the Internet". Feb 13 23:59:13 "facebook" probably Feb 14 00:00:16 STAND BACK! or I'll press the button! http://turnofftheinternet.com/ Feb 14 00:00:56 http://nooooooooooooooo.com/ Feb 14 00:01:41 I hope you've been programming and not just playing Tribes, shmooz. :D Feb 14 00:02:21 Don't do it man!! Feb 14 00:02:23 TacticalJoke: actually when I stopped playing tribes I also was programming less, so now I started playing at least an hour a day Feb 14 00:02:24 keys have been pressed. it's more or less the same thing. Feb 14 00:02:40 admit it, we all just pressed the button... Feb 14 00:02:45 TacticalJoke: I think playing some games gets your mind oiled up for programming Feb 14 00:03:01 shmooz: what, like spacechem / infinifactory? Feb 14 00:03:12 i read Starcraft 2 improved strategic thinking Feb 14 00:03:20 also APM Feb 14 00:03:24 groxx: Tribes 1.11 Feb 14 00:03:24 such APM Feb 14 00:03:40 Did anyone play Red Alert 2? Feb 14 00:03:40 old school Tribes , nothing has ever beat it Feb 14 00:03:47 Yeah, 1.30 is less old-school. Feb 14 00:04:31 TacticalJoke: yeah, a fair bit. so far no RTS has eclipsed Homeworld for me though. Feb 14 00:04:32 It's funny how skiing was a bug at first. Then it became intended behaviour. Feb 14 00:04:40 A great example of how a bug can stop being a bug because of new intentions. Feb 14 00:05:01 I'd like to get back to playing Descent 2 Online again Feb 14 00:05:08 groxx: I used to love that map where you could build all the way down to the middle. Feb 14 00:05:13 But it was so hard to defend bases. Feb 14 00:05:16 yeah, descent was fantastic Feb 14 00:05:19 On Red Alert 2. Feb 14 00:05:44 I typically built zeppelin armadas Feb 14 00:06:25 I accidently finished a whole jar of Nutella while playing Feb 14 00:07:53 that's a pretty serious addiction shmooz Feb 14 00:08:02 shmooz: Did you ever get into Tribes modding? Feb 14 00:08:09 They used a scripting language kind of like C++. Feb 14 00:08:24 TacticalJoke: no, but I did do some Descent levels online Feb 14 00:08:32 and some Unreal Tournament and original Unreal levels Feb 14 00:08:52 Tribes mods look very limited Feb 14 00:09:00 you have to reuse existing objects Feb 14 00:09:07 Yeah, but you could do a lot. Feb 14 00:09:48 yeah you can reprogram them to behave different Feb 14 00:10:08 My mod was customised so heavily. I remember feeling really unrestricted. Feb 14 00:10:26 aha "Donations are only permitted for validated non-profit charitable organizations (for example, a validated 501(c)(3) charitable organization or the local equivalent)" Feb 14 00:10:29 I used to rent a server. Damn, that's years ago now. Feb 14 00:11:10 I remember someone offering to pay me to put a secret cheat in the mod. lol Feb 14 00:11:13 Like $100. Feb 14 00:11:23 TacticalJoke: you owe it to yourself to get back on, I'll be at the Brazil Annhiliation server :) Feb 14 00:11:25 For the ability to insta-kill anyone. I declined. Feb 14 00:11:40 All the mods I played are probably dead anyway. Feb 14 00:11:46 LT and VX7. Feb 14 00:12:01 Crow has adjusted Annhi to be better than ever Feb 14 00:12:26 g00s: ya. afaik that's true for everything in the USA. "donate" is a very specific, legally-defined term. Feb 14 00:12:41 only game I've been playing is lol Feb 14 00:12:43 meh Feb 14 00:13:04 Did any of you ever play chess? Feb 14 00:13:27 hi, what chess Feb 14 00:13:29 probably most of us have Feb 14 00:13:33 yeah Feb 14 00:13:41 Were you good? Feb 14 00:13:47 what is this "chess" you speak of. is it on android? Feb 14 00:13:55 F2P? Feb 14 00:14:06 Can the Roboto font be used on apps that support Android versions < lollipop? Feb 14 00:14:20 I was good but that's because my opponents sucked Feb 14 00:14:24 an 8 year old kid beat me about 2 weeks ago Feb 14 00:14:30 t0astt, roboto is 3.0 and up Feb 14 00:14:31 shmooz: that's about all I can claim too :) Feb 14 00:14:33 t0astt: Isn't that just a new version of Roboto? Feb 14 00:14:35 Or something. Feb 14 00:14:36 I prefer go, but I suck at it :) Feb 14 00:14:50 TacticalJoke, Oh, I guess Feb 14 00:14:51 If you go to PlayChess, you can get a game against famous people. Feb 14 00:15:01 Idk my fonts just don't look like they did when I did my design in Photoshop with Roboto Feb 14 00:15:03 Though it's hard to find someone who'll play an unknown name. Feb 14 00:15:10 and chess.com has a big online community Feb 14 00:15:15 Yeah, I was on Chess.com. Feb 14 00:15:16 JesusFreke, golang?:D Feb 14 00:15:41 I tried Go. Remember it being really hard. Feb 14 00:18:11 A problem with chess is that it's too easy to cheat. Feb 14 00:19:04 You can download for free an engine that can beat any human in existence (e.g., Houdini). Feb 14 00:19:08 both sides should have streaming video of each other with skype so they can see that they are not cheating Feb 14 00:19:08 yeah, the forced split-screen mode is annoying Feb 14 00:19:24 damn screen-watchers can headshot your queen while she's hiding behind a pawn Feb 14 00:19:51 shmooz: Though you could still run the engine on a different screen. Feb 14 00:19:58 Or on your tablet, maybe. Feb 14 00:20:10 i could probably run it on the phone, and they wouldn’t be able to see it Feb 14 00:20:36 I'd catch your eyeballs looking down at it Feb 14 00:20:53 and then go 'HEY! BUSTED! GET HIM!' Feb 14 00:20:58 Maybe it could send electrical impulses. Feb 14 00:21:00 unless it uses audio cues :) Feb 14 00:21:14 well I'll be listening too Feb 14 00:21:32 I remember playing a game against someone who was terrible. Just awful. Then, all of a sudden, he played like a World Champion and destroyed me. Feb 14 00:21:38 how about those in-shoe cheating things for poker? Feb 14 00:21:40 I think if you're trying that hard to cheat you aren't having fun anymore Feb 14 00:21:43 surely they can be adapted Feb 14 00:21:58 braille! Feb 14 00:22:01 And I checked his moves with an engine after -- he managed to pick the best moves every single time. He was as good as, or better than, the best player in the world. Feb 14 00:22:05 frankdrey: I think you're thinking that trying hard to cheat isn't fun :) Feb 14 00:22:30 One possibility is that I played Carlsen or someone. Feb 14 00:22:50 How you know you suck at go: even a computer can beat you! Feb 14 00:23:03 TacticalJoke: you played Watson Feb 14 00:23:08 he hussled you Feb 14 00:23:20 Oh, the drama on Chess.com used to be good. Countless accusations of cheating; people getting banned with little evidence; etc. Feb 14 00:23:28 Famous chess players getting banned. Feb 14 00:23:37 And then people trying to ruin their reputations and those posts getting banned. Feb 14 00:23:49 I love watching Kasparov having a fit Feb 14 00:24:01 There was one famous chess player who issued a public apology after the Chess.com staff caught her cheating. Feb 14 00:24:07 sounds suspiciously like the CS:GO field right now :) Feb 14 00:24:11 Then she took it back and threatened them with legal action, IIRC. Feb 14 00:24:38 shmooz: Did you see that Kasparov video with the flying object? lol Feb 14 00:24:47 no Feb 14 00:25:14 Here it is: slightly NSFW: http://youtu.be/haRZxPw0JYg Feb 14 00:26:48 Typical Russian politics. Feb 14 00:26:50 oh, lol, I remember that happening Feb 14 00:27:05 one of those moments when chess politics became global news Feb 14 00:27:27 nobody can resist reporting about a flying NSFW Feb 14 00:27:36 :D Feb 14 00:32:43 damn. The other day someone figured out how to stop the logcat/ddms from appearing on application start, now I cna't find it in the settings... :-/ Feb 14 00:33:00 It's in the LogCat tab in the Run Configurations thing. Feb 14 00:33:46 AH! Run configurations! I was in settings. Feb 14 00:33:49 Thanks TacticalJoke Feb 14 00:34:39 This is interesting: if you set a Toolbar's minHeight to, say, 200dp, the overflow button moves down. Feb 14 00:34:46 If you set its height to 200dp the overflow button doesn't move down. Feb 14 00:34:55 s/height/layout_height/ Feb 14 00:35:54 The overflow button stays vertically centred with minHeight but not with layout_height. Feb 14 00:35:59 Same with setting the height smaller. ;o Feb 14 00:36:24 TacticalJoke: hilarious Feb 14 00:36:46 This applies to the navigation icon too. Feb 14 00:36:51 it should have lunged into his mouth Feb 14 00:37:01 So we *can* move make the toolbar less high and keep the icons vertically centred. Feb 14 00:37:07 lol shmooz. Feb 14 00:40:53 Look how small the toolbar is: http://i.imgur.com/djcD9sJ.png Feb 14 00:41:02 Note that the back arrow isn't really used; it's just for this demonstration. Feb 14 00:41:49 Hi Guys! Why onRestoreInstanceState() method of View object (or its descendant) might not be called on activity restoring? Feb 14 00:42:35 AlexBerdnikov: Hmm. Is there an ID for it in the layout file? Feb 14 00:42:41 Yes Feb 14 00:43:08 Actually it's a dynamically created View with assigned unique ID Feb 14 00:43:15 "A new Android Studio 1.1 RC 1 is available in the canary channel." Feb 14 00:43:27 AlexBerdnikov: does it have the same ID both before and after restoring? Feb 14 00:43:28 MikeWallaceDev: That's so yesterday. Feb 14 00:43:40 :D Feb 14 00:43:47 I wonder why I just got it? Feb 14 00:43:54 Though I don't shutdown AS Feb 14 00:44:09 groxx it doesn't have an ID after restoring because, you know, it's not restoring at all Feb 14 00:44:18 hey all Feb 14 00:44:29 My dynamically created Views aren't resored Feb 14 00:45:00 AlexBerdnikov: that's probably the problem :) if it doesn't have an ID before the state is restored, how does it tell from ? Feb 14 00:46:01 I have been trying to get bullet physics to build with ndk via cmake for android (it builds fine for win/osx/ios/linux)... can some one look at my errors and give me some advice Feb 14 00:46:03 http://pastebin.com/gpJK3Mjg Feb 14 00:46:09 So this is really cool. We *do* have control over the positions of a Toolbar's navigation icon and menu-overflow button. We just have to set minHeight! Feb 14 00:46:28 AlexBerdnikov: iirc the view state restoration process looks at all views _which already exist_, and restores their states by ID. it won't recreate the views, since you may have changed structure entirely due to e.g. rotation. Feb 14 00:46:37 Is it possible to use LVL for free apps? some guys said yes and others said no Feb 14 00:46:42 AlexBerdnikov: it has been a while since I poked at it though, so that may be wrong Feb 14 00:46:44 I have tired r9c and r10 with 4.6 and 4.8... to no avail. Feb 14 00:47:40 The funny thing about Android is that you can stumble upon important API information by pure chance. Feb 14 00:47:47 groxx, wait, I'm confused... let me straighten it out. 1) I have a layout with a few elements 2) then I create some VIew object dinamically in the code and append them to the layout 3) I live the app (to call onStop()) method 4) I go back to the app and the views from layout are there but the views I appended to the layout programmatically are not. Feb 14 00:48:19 AlexBerdnikov: _just_ leave the app, or leave + kill the process? Feb 14 00:48:19 * leave the app Feb 14 00:49:28 SOrry, I told it a bit wrong. In fact I emulate configuration change (rotate the screen) Feb 14 00:49:50 Well there's yer prablem Feb 14 00:49:54 That's the problem, on configuration change my dynamically created views aren't restored Feb 14 00:50:28 AlexBerdnikov: so what that does is it destroys your _entire_ activity, and restores it from saved instance state. when you start back up, you probably setContentView(R.layout.whatever). that sets your views from your layout file, which does not include your dynamically-added views. Feb 14 00:50:31 But that's not how the restore-instance-state thing works, is it? It doesn't recreate them. It just gives them state back. Feb 14 00:50:46 Usually they're in the XML layout, in which case parsing *that* recreates them. Feb 14 00:50:51 AlexBerdnikov: it won't re-create those views for you. it'll just restore state (like the text in an edittext) _if the view exists_. Feb 14 00:51:05 You'd have to create them and give them the same ID again, I think. Feb 14 00:51:33 That should work, since it uses the ID as a key in the bundle under the hood. It saves a Parcel with that key, as far as I remember. Feb 14 00:51:46 Or a Parcelable. Feb 14 00:51:50 Ok, so I have to save the views in some other way and then re-append them in onCreate/onRestore method of the Activity Feb 14 00:51:55 Right? Feb 14 00:51:55 AlexBerdnikov: the advantage to doing that is that it lets you re-arrange your layout on rotation, and keep all your state "for free" even though things have moved around Feb 14 00:52:06 yep Feb 14 00:52:17 Wooo I now have a dedicated IRC monitor Feb 14 00:52:27 AKA Surface Pro w/ Synergy Feb 14 00:52:30 Ok, got it, thank you all guys! Feb 14 00:52:44 AlexBerdnikov: Also, if in doubt, check the source. Feb 14 00:53:00 I google stuff like "android googlesource view.java" (though there may be a better way). Feb 14 00:53:02 I certainly should Feb 14 00:53:51 AlexBerdnikov: "sources for SDK" will let you go-to-definition on methods within your IDE, which is pretty nice. otherwise, grepcode.com is pretty nice for reading (though super-heavyweight), and I've come to like androidxref.com for searching. Feb 14 00:54:18 I like stepping through the methods with the debugger. Feb 14 00:54:24 Though it sometimes doesn't have the right lines. Feb 14 00:54:43 I use IDEA with Android plugin, it shows me all the code usually Feb 14 00:56:20 One of the worst things is going to the code and seeing interface (or superclass) after interface (or superclass). Feb 14 00:56:26 And not being able to find any implementation. Feb 14 00:56:45 Then it's a case of grepping, which gets tedious. Feb 14 00:56:52 Or debugging. Feb 14 00:59:22 Oh, it's nice to be able to put the Toolbar at the bottom of the screen. Feb 14 00:59:40 I am kinda amazed that ActionBar was ever released. Toolbar was the obvious thing. Feb 14 01:05:33 I wonder why I just got it? (oops, I forgot to hit SEND earlier :D ) Feb 14 01:05:54 So I just figured out the difference between View Animation and Property Animation Feb 14 01:06:04 Property Animation actually works :-/ Feb 14 01:06:36 On Android, that doesn't count as a major difference. Feb 14 01:07:03 View animation was always crap. Feb 14 01:07:20 Is it weird to offer the user the option of having the app bar at the bottom of the screen? It's so handy down there. Feb 14 01:07:20 The documentation was terrible, and so was the implementation Feb 14 01:07:27 Like, for RSI sufferers. Feb 14 01:07:50 I'm making a half ActionBar. Fuck da police! Feb 14 01:08:00 Do you read /r/UnexpectedThugLife? Feb 14 01:08:18 I would say that you could change the layout depending on the device. Feb 14 01:08:33 Tablets are not easy to use Feb 14 01:08:33 That's true. The thing is, it looks so weird at the bottom. lol Feb 14 01:08:37 But I like it for not having to stretch. Feb 14 01:08:39 and no, I don't :) Feb 14 01:08:40 Yeah. Feb 14 01:09:03 And Lollipop on a tablet is a big bunch of poo. Feb 14 01:09:16 Many controls are in the middle of the screen! Feb 14 01:09:27 especially notifications Feb 14 01:11:36 MikeWallaceDev: This is what your comment reminded me of: http://youtu.be/_HngKgbjLNg (NSFW language!) Feb 14 01:17:50 I don't know why he keeps calling me nigger? Feb 14 01:19:17 lol, i must have somebody on ignore Feb 14 01:19:38 TacticalJoke, I raise you : https://www.youtube.com/watch?v=A8iBanBWlhU Feb 14 01:22:38 The sword one is good. Feb 14 01:26:47 Time for me to take a break... Supper time! Feb 14 01:27:19 TacticalJoke check out my Toolbar :) http://imgur.com/tONlKUB Feb 14 01:35:47 I'm confused. Feb 14 01:55:33 About? Feb 14 01:56:50 MikeWallaceDev: your toolbar appears to just be a "cool ->" thing. unless you're referring to the imgur gif banner ad? Feb 14 01:57:15 groxx what you don't see it ? Feb 14 01:57:36 it is quite glorious. fully transparent Feb 14 01:57:50 Oh! Right! Sorry. I shared the pic from my app, and that doesn't show the controls. Oops. Feb 14 02:02:34 MikeWallaceDev_: I'm really curious about this toolbar now. Feb 14 02:03:23 TacticalJoke: it's the forbidden toolbar. WE MUST KNOW WHAT IT IS. Feb 14 02:03:45 the emperor's new toolbar Feb 14 02:04:37 Sorry, took me a while to upload it from my tablet Feb 14 02:04:43 https://docs.google.com/file/d/0B6naYuAKJVSHaUxaODV6RW1hUFU/edit?usp=docslist_api Feb 14 02:05:10 fancy Feb 14 02:05:35 dat battery level though. distracting D: Feb 14 02:05:40 I like it :) Feb 14 02:05:45 Is that a ViewGroup? Feb 14 02:05:57 It's animated :) Feb 14 02:06:09 No it's a Toolbar Feb 14 02:06:09 is it a problem if you add back navigation to your UI Feb 14 02:06:23 hm. why toolbar? Feb 14 02:06:35 interesting that it's that configurable, but seems like a slightly odd choice Feb 14 02:06:45 You're making a drawing app, MikeWallaceDev_? Feb 14 02:06:54 Cause I thought it would be a good idea, but it's overkill Feb 14 02:07:06 ah, that's a good reason :D Feb 14 02:07:11 I'm going to switch to a linear layout probably Feb 14 02:07:47 Yes TacticalJoke Feb 14 02:07:57 It's pretty nice Feb 14 02:08:40 I like the 3D effect. Feb 14 02:08:49 How did you do that? Feb 14 02:10:12 It's a mask. Thanks Feb 14 02:10:32 I'd love for you guys to join the beta group Feb 14 02:12:28 I can't get a link on my tablet :( Feb 14 02:12:43 Coloroos Beta Group Feb 14 02:15:17 I couldn't convince this old lady friend of mine to buy a Moto G, she's gonna buy a windows phone :P Feb 14 02:15:41 shmooz she's smart :D Feb 14 02:16:05 with taste like that, might be a good idea to ask her on a date :D Feb 14 02:16:12 yeah this gives me an opportunity to check it out myself, so I didn't resist too much Feb 14 02:16:39 but windows 10 for phone is coming soon, so whatever you feel about 8.1 it will likely change a bit Feb 14 02:16:59 Microsoft opened a new store in the mall with 10 times brighter lights than anyone else Feb 14 02:17:12 and she went over to it like a zombie Feb 14 02:17:17 haha Feb 14 02:20:10 as bright as a grow room Feb 14 02:22:35 shmooz an interesting looking book coming out soon http://www.amazon.com/gp/product/0385539002 Feb 14 02:28:13 is this the same bradfitz that worked on android ? https://plus.google.com/+BradFitzpatrick/posts/bpUvi6BBubm Feb 14 02:28:52 think so Feb 14 02:31:14 g00s: looks interesting , although I've burned out from reading a lot of that kind of stuff Feb 14 02:32:11 but unfortunately it's mostly true as well, now I just gotta hide behind my happy bubble Feb 14 02:33:09 its probably not clear yet to many people, if it ever will be, how algorithms will decide the fate of their lives Feb 14 02:38:38 I'd better run. Bai. **** ENDING LOGGING AT Sat Feb 14 02:59:58 2015