**** BEGIN LOGGING AT Wed Apr 01 02:59:58 2015 Apr 01 03:02:38 ok so it happens.. sometimes.. when I randomly drag fingers across the screen very fast Apr 01 03:02:48 hi Apr 01 03:02:51 hi Apr 01 03:03:42 how are you? I'm glad to could join, I've neverd registry in a chat =) Apr 01 03:03:58 starting with android dev Apr 01 03:04:06 .. what happens Afzal, do you think.. if there is a view that is clickable as a child? Apr 01 03:04:12 what do you think happens to the motionevent? Apr 01 03:04:18 welcome ramirog89 Apr 01 03:04:25 thnx tricknology Apr 01 03:04:47 pls read the channel rules Apr 01 03:05:05 ok Apr 01 03:05:14 if you need to paste code plase use pastebin Apr 01 03:06:24 good to know, thnx tricknology , I'm just going happy I could join. Going back later for some help. Apr 01 03:06:32 tricknology see this: http://stackoverflow.com/questions/27646926/toggle-switch-inside-custom-listview-makes-listview-non-clickable Apr 01 03:06:44 Minimum Required Skills: Mobile Development, Android, Java, iOS SDK, Objective-C, Xcode, JavaScript, Windows 8 Mobile, PHP, REST Services Apr 01 03:06:46 * g00s sighs Apr 01 03:06:49 nto a listview though Apr 01 03:06:51 the child intercepts the touch Apr 01 03:06:58 so they want us to know all 3 mobile platforms now :/ Apr 01 03:07:02 so need to pass it on? Apr 01 03:07:09 well yeah but it's the same concept, hmm perhaps Apr 01 03:07:13 that’s ridculous Apr 01 03:07:17 or make your child view not focusable and see what happens Apr 01 03:07:26 they probably have a few positions open Apr 01 03:07:39 g00s they can't afford that skillset for whatever they might pay Apr 01 03:07:42 it needs focus Apr 01 03:07:48 some are edittexts :o Apr 01 03:07:52 i'm one of those that doesn't bother subitting if i don't meet the minimum requirements Apr 01 03:08:04 ah, but you want to detect gestures too? Apr 01 03:08:08 which is like 95% of the time Apr 01 03:08:22 seems like you could use a framelayout on top of your existing layout Apr 01 03:08:40 but Ihm Apr 01 03:08:47 lhm? Apr 01 03:08:49 I need the RelativeLayout that is currently the parent Apr 01 03:08:56 but I could wrap it in a framelayout.. Apr 01 03:08:58 so janky Apr 01 03:09:07 you want focus everywhere :/ Apr 01 03:09:23 and so it will be done.. Apr 01 03:09:27 thx Afzal Apr 01 03:09:40 you're welcome, lemme know if it works lol Apr 01 03:10:02 g00s I'm the kind of person who looks and that and understands they don't know what they're doing Apr 01 03:10:07 at* Apr 01 03:10:29 “This RelativeLayout layout or its FrameLayout parent is Apr 01 03:10:30 useless” Apr 01 03:10:34 NO IT IS NOT!! lol Apr 01 03:10:37 lol Apr 01 03:10:47 g00s, enjoy your snow? Apr 01 03:10:54 Afzal ^^^ word Apr 01 03:10:55 dragorn all done i think :) Apr 01 03:11:01 g00s, more next week Apr 01 03:11:04 wat Apr 01 03:11:16 well...you need your framelayout to contain two sub-layouts, one's your existing relative layout and the other would be the one you'd use for gesture detection Apr 01 03:12:13 dragorn i don't see anything resembling snow in the forecast O.o ... but you are a few miles north Apr 01 03:12:20 Afzal it worked :) :) Apr 01 03:12:28 sweet! Apr 01 03:12:38 with android:clickable,focusable and android:focusableInTouchMode="true" Apr 01 03:12:45 i just kind of threw them all in there Apr 01 03:12:48 lol Apr 01 03:12:56 no framelayout? Apr 01 03:12:57 oh haha Apr 01 03:13:00 yes Apr 01 03:13:04 but funny thing is Apr 01 03:13:12 it only captures swipes from the toolbar Apr 01 03:13:19 only the toolbar Apr 01 03:13:25 that's not what you wanted, right? Apr 01 03:13:28 everywhere else is pretty much clickable.. Apr 01 03:13:31 you want the whole screen Apr 01 03:13:35 yes.. Apr 01 03:14:06 as if there was a little invisible layout capturing only swipes, and transferring everything else through Apr 01 03:14:22 right, yeah, that's what I expected pretty much Apr 01 03:14:39 all those children are stealing the motionevent i guess Apr 01 03:14:46 not sure but it seems like it Apr 01 03:15:01 they hungry Apr 01 03:15:48 g00s, you know how to fix that toolbar so the stupid Up button respects the gravity? Apr 01 03:15:48 https://www.dropbox.com/s/d5kdzeqz9l9wajy/2015-03-31%2022.48.19.png?dl=0 Apr 01 03:16:20 lol, toolbar is a pita Apr 01 03:16:43 it is :/ Apr 01 03:16:57 i usually just mess with gravity until its right, otherwise you just add another layout beneath it Apr 01 03:17:11 lol spacer.gif ftw!! Apr 01 03:17:42 shim fer the win Apr 01 03:17:48 well okay, I'm gonna put that edit text in there anyway Apr 01 03:17:52 I'll do it right now and see Apr 01 03:18:04 (try different screen sizes) Apr 01 03:18:29 Afzal, I’m going to pass the onTouchListener to all the children and see how that goes.. wish me luck. I wish you luck as well Apr 01 03:19:22 good luck man! Apr 01 03:28:27 tricknology, i haven't really read your discussion with Afzal, but I think I figured what you want... and was wondering, won't creating a custom view for your root view be a better option? Apr 01 03:29:03 I suppose it would be. Apr 01 03:29:09 I already have one I could use, in fact Apr 01 03:29:27 intercepting is a much better option imho Apr 01 03:29:45 yeah thanks for the suggestion Apr 01 03:29:49 I will give that a go Apr 01 03:29:52 you can even have the interception logic back in your fragment Apr 01 03:40:08 oh dear lord! Salvation at last Apr 01 03:40:09 https://gist.github.com/chris95x8/53214de145571d410e13 Apr 01 03:46:31 iprime that is simpler, but now my click events do not register unless onDown returns true.. if it does then onFling is not called.. Apr 01 03:49:42 anybody else having connection problems with github? Apr 01 03:50:33 doing a repo sync, etc Apr 01 03:52:29 well, looks like the best way to have an expanded toolbar ..... *drum roll* Apr 01 03:52:46 is to fake it by having a transparent toolbar and a nice view under it Apr 01 03:55:16 lol Apr 01 03:55:22 hi-tek Apr 01 03:56:50 what gestures are you detecting? Apr 01 03:58:04 hi Apr 01 03:58:23 screwess says she wants to be unbanned Apr 01 04:03:49 well, time to ask Chris banes and call it a day Apr 01 04:03:55 otherwise on to stackoverflow Apr 01 04:04:10 pixel pushing sucks >_ Apr 01 04:04:11 >_< Apr 01 04:05:16 <_genuser_> finally narrowed down the list of google accoutns to Apr 01 04:05:17 <_genuser_> 6 Apr 01 04:06:48 _genuser_ loool damn, and I thought 3 was too much Apr 01 04:07:15 <_genuser_> Afzal: in ultimate object oriented approach created a new object for each purpose.... Apr 01 04:07:32 ..wait, we aren't talking about your google accounts? Apr 01 04:07:42 <_genuser_> yeah google accounts. Apr 01 04:08:10 <_genuser_> I just liked having a separate account/identity for each purpose. for my music band, for my blogging, for banking/credit-card, for regular android phone use. Apr 01 04:08:15 damn man Apr 01 04:08:17 <_genuser_> I had like 10. Apr 01 04:08:20 makes sense Apr 01 04:08:24 that is good but wow Apr 01 04:08:33 <_genuser_> probably 12. then I decided forget it. I just need to streamline it more. Apr 01 04:08:34 i wish browsers had separate identity profiles Apr 01 04:08:42 haven't found an extensuon for that Apr 01 04:09:00 similar to ,private mode but each profile stores data for one identity Apr 01 04:09:01 <_genuser_> myke: so in each browser instance you login with it's own cookieset? Apr 01 04:09:13 yes but to you just an email addy Apr 01 04:09:20 or even select from a list Apr 01 04:09:22 I have three but I want two. One for all the sensitive stuff and one main google account (plus/android/fb whatever) Apr 01 04:09:27 no need for separate passwords Apr 01 04:09:39 <_genuser_> myke: google has gotten good about letting you log into multiple accounts. I have 4 always logged in. Apr 01 04:09:41 ew, cookies Apr 01 04:09:47 facdbook is a real pain, they try hard to prevent fake accts Apr 01 04:09:56 cookies are a trigger for me :/ Apr 01 04:10:04 will only accept certain names, etc Apr 01 04:10:13 myke yup, that's why I create a new account whenever I travel lol, phone number verification :D Apr 01 04:10:20 all the fake accounts! Apr 01 04:10:21 _genuser_: in chrome? and you can switch identities? Apr 01 04:11:11 <_genuser_> Afzal: yeah, I had a novelty account because I thought it was a funny name. so I also created a professional one. then I created one just for my android. and one for my band. Apr 01 04:11:39 <_genuser_> myke: for most google products (gmail/youtube/plus) you can switch identities. https://support.google.com/accounts/answer/1721977?hl=en Apr 01 04:11:39 i dm't have that many but i do have separate "realy me" and "this business me" ones Apr 01 04:12:15 <_genuser_> yeah, my funny novelty email has all my bank/financial reset password going there. my professional one, I don't want to use with + and argue stuff online. Apr 01 04:12:34 <_genuser_> so I made an android one. and then one for my band. Apr 01 04:13:08 <_genuser_> but then within the band account, they made a + profile for the googel account and when I create a + "page" for the band, it then had two profiles. Apr 01 04:13:11 <_genuser_> so annoying. Apr 01 04:13:21 oh cool didn't know about that Apr 01 04:13:25 that's awesome Apr 01 04:13:51 yeah fb sucks Apr 01 04:13:53 <_genuser_> myke: yeah, the icon in the top right gives you a drop down, and you just pick one of the logged in identities. I just leave all 4 gmails open. Apr 01 04:14:45 <_genuser_> for a long time, I was using IE for one account and chrome for another. then my buddy tells me that's dumb, sign into multiple accounts. lol. Apr 01 04:14:49 fyou can create a fb page, and use the page within fb as an identity Apr 01 04:14:54 <_genuser_> that's when I learned about it. I think 3 years ago. Apr 01 04:15:00 but not otherwise Apr 01 04:15:08 no concept of role accounts Apr 01 04:15:23 <_genuser_> what woudl be a role account? Apr 01 04:15:33 yet i somehow doubt amazon's fb page is owned by jeff bezos' personal d Apr 01 04:15:35 account! Apr 01 04:15:45 <_genuser_> oh I see what you're saying. I was just griping at the same thing. Apr 01 04:15:48 "marketing dirextor" Apr 01 04:15:54 yep exactly that Apr 01 04:16:02 fb actively tries to prevent it Apr 01 04:16:08 <_genuser_> for my band, I have ao create a FB Page, but the owner is the same freaking person. so now you have two identities for the same thing. Apr 01 04:16:22 _genuser_: well thanks for that, you solved that problem for me Apr 01 04:16:30 <_genuser_> myke: :) have fun with that. Apr 01 04:16:32 gonna just make more google accts then Apr 01 04:16:48 <_genuser_> heh, lol more accounts? I just delete (believe it or not) 4 accounts today. Apr 01 04:16:53 <_genuser_> to bring mine down to 6 open. Apr 01 04:17:01 unrelated, i think many apps have horribly broken oauth implementations Apr 01 04:17:30 i got a few google emails Apr 01 04:17:32 i'm pretty sure i auth'd my venmo app yday with my other fb acct (not the one i used to originally log into venmo) - and it worked Apr 01 04:17:34 <_genuser_> lol, now if I can quit surfing the web and actually produce more music, I could actually start pushing it out to people. Apr 01 04:17:42 so lazy i stick to one tho Apr 01 04:18:04 how many internal api servers blindly trust the fb token they get from the app?? Apr 01 04:18:06 <_genuser_> yeah, you kinda have to grab your name@gmail.com or someone else will. Apr 01 04:18:16 how many devs don't even grok the issue? Apr 01 04:18:31 <_genuser_> lol half the devs are just coders. Apr 01 04:19:07 i got real name gmail somewhat Apr 01 04:19:11 to be fair the fb docs are the only plazce i found that even discussed them Apr 01 04:19:24 just been using bogus name for a while Apr 01 04:19:45 on my resume and all Apr 01 04:19:56 <_genuser_> I'd like to have a share with FB feature in one of my apps eventually. so I'll have to read up on their api on how to authenticate and share an update with FB. Apr 01 04:20:13 <_genuser_> fake name on resume too? Apr 01 04:20:26 no, just email Apr 01 04:20:28 <_genuser_> oh that reminds me I have the one with real name, etc. for publishing apps to play store. Apr 01 04:21:33 like wackaflockaflame@gmail.com Apr 01 04:21:43 not really Apr 01 04:23:24 <_genuser_> I have a funny one that I thought would be hialrious. now people constantly use it for spam registration and I get tons of junk mail. Apr 01 04:23:30 <_genuser_> which doesn't get caught by spam filter. Apr 01 04:25:51 <_genuser_> so chrome stopped logging into my citi account all of a sudden and IE works great. however, it wants me to install flash. ugh, actually install an adobe product? Apr 01 04:27:35 <_genuser_> WakaFlocka_k: intersting concept tho. fake name on resume to see if you can get a job like that, lol. Apr 01 04:28:09 ya didn't work so well Apr 01 04:28:38 <_genuser_> yeah when it comes to background check the ss# will probably throw a wrench in the gears. Apr 01 04:28:53 <_genuser_> I know people lie about education etc. all the time. Apr 01 04:29:03 heck ijust playing along, just an email Apr 01 04:29:15 <_genuser_> remember the HP ceo who said he went to harvard or something and actually didn't have the degree Apr 01 04:29:25 <_genuser_> they found out about him years after he'd been working there. Apr 01 04:30:13 well once hot chix knew who i was all heck would break loose Apr 01 04:30:50 <_genuser_> oh? Apr 01 04:33:14 <_genuser_> dang anime studio was 11 on amazon for a bit and now back to $25.00 Apr 01 04:37:59 wttttfffffff Apr 01 04:38:13 unbelievable Apr 01 04:38:30 I test ridiculous variations of my code, nothing works Apr 01 04:38:43 copy Chris Banes' code from stackoverflow that looks the same, it works <_< Apr 01 04:39:11 <_genuser_> heh, I know what you mean. I have sometimes compare two code based line for line and one works and the other doesn't. Apr 01 04:40:04 sometimes picky about memory size Apr 01 04:40:28 w/ [hones anyways Apr 01 04:40:34 phones Apr 01 04:42:58 <_genuser_> dumb FB. now I have a profile and a page as a band. so do I focus on friends or likes? and do I chat with users as profile or page? only if they didn't worry so much about "real identities" Apr 01 04:47:31 woooooooooooow, the freaking battle between android: and app: namespaces in xml Apr 01 04:47:39 wow, the was dumb Apr 01 04:47:49 nvm, that wasn't the difference Apr 01 04:49:57 so we can see each other and all Apr 01 04:52:22 guys guys Apr 01 04:52:37 and clue why the Installs on the app page could go down? When its only going up on the dashboard? Apr 01 04:53:12 installs went down to 50 - 100 when its over 200 on my dashboard Apr 01 04:55:13 weird :/ so if the minHeight is ?attr/actionBarSize, the up icon stays at the top Apr 01 04:55:18 otherwise, it goes down Apr 01 04:56:19 bitches bitches Apr 01 04:57:49 imagine some fatass trying to pick up girl Apr 01 05:01:05 omg.. there is a GestureOverlayView.. Apr 01 05:03:56 u fat fucking pussy Apr 01 05:03:57 lol Apr 01 05:05:41 oooookay, problems with the include tag as well Apr 01 05:05:42 fml Apr 01 05:05:56 but wow, that was a pain in the posterior Apr 01 05:05:57 wait wahat? Apr 01 05:07:06 might've been me, one sec Apr 01 05:07:17 WakaFlocka_k_m: knock it off please :) Apr 01 05:07:40 k Apr 01 05:07:48 so apparently the include tag respects the minHeight of the Toolbar but not the layout_height Apr 01 05:07:55 I’m trying to figure out what’s going on and I can't Apr 01 05:08:15 tricknology just go to sleep man Apr 01 05:08:16 it's over Apr 01 05:10:53 I stil have yet to order pizza and wait for it to come Apr 01 05:10:55 it’s not over Apr 01 05:11:02 watch Flash Apr 01 05:11:06 new episode is out today Apr 01 05:11:21 Bates motel is better Apr 01 05:11:26 jk never seen flash Apr 01 05:11:29 but bates is good Apr 01 05:11:56 g00s: back on my day off Apr 01 05:12:09 kind of dealing w/ better call saul Apr 01 05:12:25 juist dunno what else to go Apr 01 05:12:37 not that grear of a show Apr 01 05:12:52 great Apr 01 05:13:17 so, final word. Toolbar. Set min height to whatever you want the icons to adjust to (like up or hamburger, they will center within that height) and adjust normal height to whatever you want and put things inside like a normal view Apr 01 05:17:35 tricknology done! https://www.dropbox.com/s/gx0huoh0poyqu7o/2015-04-01%2001.17.15.png?dl=0 Apr 01 05:17:51 HAHAHA Apr 01 05:17:53 nice words Apr 01 05:17:56 well done Apr 01 05:37:22 it is a great show Apr 01 05:52:55 ongestureperformed() not called :( Apr 01 06:00:21 oh rats... Apr 01 06:00:35 tricknology, what kind of a gesture are you trying to detect? Apr 01 06:00:57 a 15-second handstand :p Apr 01 06:01:25 hahaha Apr 01 06:01:26 i lvoe it Apr 01 06:01:31 just up and down Apr 01 06:01:34 simple Apr 01 06:02:25 iprime, I am using a GestureOverlay now but onGesturePerformed is not being called Apr 01 06:02:34 probably because there i snothign in the gesture lib Apr 01 06:02:34 still, what gesture? Apr 01 06:02:41 swipe up, swipe down Apr 01 06:03:24 and your children need to handle what gestures/events? Apr 01 06:04:41 errr. say I have two views that join in the middle of the screen vertically, i want the gesture up to animate them apart, gesture down to animate together Apr 01 06:05:09 the views themselves, the children of the main view.. they have children that are clickable Apr 01 06:05:17 (grandchildren of main are clickable) Apr 01 06:06:15 I'd probably just use a custom ViewGroup Apr 01 06:06:17 but that's just me :p Apr 01 06:06:36 how did intercepting the touch work out ? Apr 01 06:06:59 you can always just chain the gesture detector Apr 01 06:07:20 without blocking the event propagandation Apr 01 06:08:29 ah man it was a nightmare Apr 01 06:08:49 haha Apr 01 06:08:59 is it really that bad Apr 01 06:09:02 what it boiled down to is onDown() Apr 01 06:09:19 one way makes is flickable but not clickable Apr 01 06:09:23 other way the reverse Apr 01 06:09:32 (the return as true/false) Apr 01 06:09:38 no easy way to have both Apr 01 06:09:47 maybe you should propagate _DOWN but not _UP if the gesture detector fires Apr 01 06:10:12 that would be nice huh.. except I think there is only onDown(); Apr 01 06:10:14 no onUp() Apr 01 06:10:30 you can revert to the interception approach then Apr 01 06:10:34 http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html Apr 01 06:10:40 that’s waht I was doing Apr 01 06:10:57 butting GestureDetector on an intercepting view Apr 01 06:11:00 puttin* Apr 01 06:11:10 it’s all whack... Apr 01 06:11:41 I have a GestureLayout now wrapping my entire parent view Apr 01 06:11:48 I've been using onFling() for this before Apr 01 06:11:50 I see yellow marks on my view when I make a gesture Apr 01 06:12:01 but onGesturePerformed is not called Apr 01 06:12:02 takes a little math but does what I need it to Apr 01 06:13:21 those children are fragments.. dows that matter? Apr 01 06:13:40 bottom line is.. there’s too much going on in this one fragment Apr 01 06:13:50 it’s ridicuouls.. but.. it’s cool as hell Apr 01 06:13:54 rethink your navigation :D Apr 01 06:13:59 do show! Apr 01 06:14:50 I can’t until it’s released Apr 01 06:14:59 hopefully Jul 4 Apr 01 06:15:19 how about you wrap up some sample project with your problem Apr 01 06:15:44 because time Apr 01 06:16:16 ah.. time Apr 01 06:16:17 how about you use OnGestureListener insetead of OnGesturePerformedListener Apr 01 06:21:00 duuuuuuude Apr 01 06:21:03 <3 Apr 01 06:21:10 thanks ravilov Apr 01 06:21:28 it seems that OnGesturePerformedListener depends on a gesture library that’s lodaded from resources Apr 01 06:21:47 I downloaded a random one.. it was recognizing only alphabet letters Apr 01 06:22:03 OnGestureListener is what’s up Apr 01 06:22:06 lol Apr 01 06:22:34 theoritically, one could program an app to write their name whenever they drew a 8==D Apr 01 06:22:51 as long as it’s one gesture Apr 01 06:24:30 now.. to differentiate between an up and a down.. I don’t think it matters at this point.. Apr 01 06:25:15 just some math :) Apr 01 06:26:28 Too late fo dat Apr 01 06:26:43 a round of CSGO is calling and then bed Apr 01 06:28:08 thanks all, iprime, ravilov, and Afzal Apr 01 06:33:43 <_genuser_> anybody else try using facebook's conceal lib? Apr 01 06:34:27 no Apr 01 06:36:36 hi good morning all Apr 01 06:37:38 what can cause a sync adapter -which repeats every hour- works closely ? http://paste.ubuntu.com/10716732/ Apr 01 06:37:55 as you can see in logs it worked 22:00 22:13 22:17 in a row Apr 01 06:38:13 sci-fic: maybe it got killed and restarted? Apr 01 06:38:18 user-requested sync? Apr 01 06:38:30 nop periodic Apr 01 06:39:10 idk i just left a service for testing which prints current time to .txt file Apr 01 06:39:58 then look at your logcat and search for anything related to that service Apr 01 06:41:02 it wasnt connected to my laptop. is there a way to get those logs ? Apr 01 06:41:34 ...yes? Apr 01 06:41:56 do you think a device only ever logs when connected? Apr 01 06:43:27 yes thats why i asked a way to get those Apr 01 06:43:28 :D Apr 01 06:43:48 this returns me Date from 1970 String getAmPmFromDate() { Apr 01 06:43:48 return getTimeFormat().format(getCalenderInstance().getTime()); Apr 01 06:43:48 } Apr 01 06:45:30 huh Apr 01 06:46:07 paste spam Apr 01 06:46:30 bazinga:P Apr 01 06:48:00 ravilov:do you know a way ? i don't want to lose time,ihave lots of work :D Apr 01 06:49:31 adb logcat Apr 01 07:06:57 morning fellas Apr 01 07:07:36 good m Apr 01 07:08:19 laughed a lot at the smartbox prank this morning. Google is getting a lot smart. :) Apr 01 07:20:07 guys can i use sync adapter as a normal class ? i mean can i implement interfaces ? Apr 01 07:20:20 and don't judge me im newbie in android :d Apr 01 07:26:02 never used sync adapter before Apr 01 07:28:09 sci-fic, if you sublcass it :) Apr 01 07:28:14 what exactly would stop you from implementing interfaces? Apr 01 07:28:25 couldn't you have tried this already instead of asking? Apr 01 07:28:43 being a noob isn't (too) horrible but not googling or trying out yourself is Apr 01 07:32:31 well.. you know you had too much android when you do "android:padding" in css.. :| Apr 01 07:34:27 I dont remember when I was doing web design last time Apr 01 07:34:59 i have to switch to different platforms/projects/languages to help with quick things Apr 01 07:36:03 now i need to write ruby, when needed Apr 01 07:36:06 since api is in ror Apr 01 07:37:53 sci-fic, the device was probably sleeping at those times and you get inexact sync schedules Apr 01 07:38:44 gordon_, you in the US? Apr 01 07:38:53 ror seems particularly popular there Apr 01 07:39:30 iprime: japan Apr 01 07:39:39 and ror here is like religion ;) Apr 01 07:40:34 well, that's understandable, anything ruby would be religionh ) Apr 01 07:44:04 ravilov:i do it already but i have limited time now Apr 01 07:44:38 ok, what do you expect me or anyone else to do now? Apr 01 07:45:18 you know, you can't find everything, asking is good Apr 01 07:45:35 and i was developing games all alone for past 9 months Apr 01 07:45:36 you *can* find everything, if you try hard enough Apr 01 07:45:46 sci-fic, what kind of games? Apr 01 07:46:11 libgdx 2d Apr 01 07:46:18 ravilov: i mean you can miss something Apr 01 07:46:49 sci-fic, any published yet? Apr 01 07:47:47 yup almost 15 search mobaxe in google play Apr 01 07:48:12 quite a few indeed Apr 01 07:48:15 i'll try some Apr 01 07:48:25 there are more but not all mine Apr 01 08:03:29 behold, April 1 is here Apr 01 08:04:47 i already see gradle-plugin 1.2.0 is released with ndk support :P Apr 01 08:06:48 oh yeah it's apr 1 Apr 01 08:07:17 g00s, guess what? I have seen the light, I'm switching to a KK ROM and also ditching Eclipse for AS Apr 01 08:07:30 lol Apr 01 08:07:47 ravilov guess what, i've seen the light too ... so i'm switching back to froyo Apr 01 08:07:57 cool! Apr 01 08:07:57 and vim. we'll trade places ! Apr 01 08:08:13 deal Apr 01 08:09:21 guess it wasn't believable enough :p Apr 01 08:16:11 hello Apr 01 08:17:08 there an easy shortcut to jump to the string in strings.xml from the activity file in android studio? Apr 01 08:17:37 ctrl+click? if not that then probably no Apr 01 08:18:30 seems like i used it in the past but my google-fu is failing me Apr 01 08:18:50 i have a problem with my multilanuage app: i changing the configuration in the activity via getBaseContext().getResources().updateConfiguration(config, null); in the manifest i added parameter to the activity: android:configChanges="locale|layoutDirection", and i added permission The language setting is working if i close and open again the app, but i want to trigger to reload Apr 01 08:18:50 the whole activity Apr 01 08:19:01 ctrl+click doesn't present any options for it as far as i can see. Apr 01 08:21:19 James0r, shame, that's all I have Apr 01 08:22:31 Hi guys, i have an app that is translated in french, english and spanish. My client would like me to translate it also in turkish and russian. am i going to have some problems doing so ? Or do I just give my xml to translate (the client have people that can translate), and then just put it in my app ? are there some specificities for this two languages that I need to take into account ? Apr 01 08:22:49 sci-fic, neat Apr 01 08:22:50 Morning all! Apr 01 08:23:21 Anthaas|afk, you are not allowed to talk while you are afk :p Apr 01 08:23:33 Sorry :p Apr 01 08:23:37 Oh wait, I can't change it. Apr 01 08:23:39 No!!! Apr 01 08:23:43 ... Apr 01 08:23:52 Oh wow, is this some April 1st stuff going on? Apr 01 08:24:01 Its literally not letting me change haha Apr 01 08:24:25 Ahh, my phone has taken my other name Apr 01 08:24:28 Stupid thing. Apr 01 08:24:44 iprime:i should earn money :D Apr 01 08:24:53 i should have :D Apr 01 08:25:12 sci-fic, why do you need money? ;) Apr 01 08:25:48 h3bus, i'd say no specifities for those languages Apr 01 08:25:54 don't you need ? xD Apr 01 08:26:11 h3bus, no... i need a yacht :D Apr 01 08:26:47 Hi! How can i execute something on the main thread and wait till it's executed? A blocking call like doOnMainThreadAndWait(Runnable)? Apr 01 08:30:22 replman show a progress bar Apr 01 08:34:29 replman, are you comfortable with threading in general? if not, why don't you use a service? like an IntentService Apr 01 08:37:28 replman: what do you want to do ? network call ? Apr 01 08:37:42 iprime: i'm using a middleware for rfc. The functions called from remote are executed on the worker thread, but internally i would like to run the code on the main thread. The function should not return before the code is executed. Apr 01 08:38:02 replman: asynctask Apr 01 08:38:21 I'm getting an error while building "Crunching Cruncher somefile.png failed, see logs", logs seem to give me a nullpointer exception in com.android.builder.png.QueuedCruncher Apr 01 08:38:40 gordon_: thanks, i will have a look... Apr 01 08:39:19 the only fix on stackoverflow is "restart android studio", however I'm building via console and the whole repo is pulled from git before each build Apr 01 08:40:33 someone had that weird crunching cruncher issue yesterday as well? Apr 01 08:40:33 replman, they're executed on a worker thread in what context? the middleware you use or your own? Apr 01 08:40:48 <_genuser_> an entire day spent fixing g+ profiles/pages, fb pages and no work done on my app library. Apr 01 08:41:17 iprime: the middleware calls my functions out of the middleware's worker thread Apr 01 08:41:41 ok, now I understand your issue, hmm Apr 01 08:42:01 and the middleware isn't open? Apr 01 08:42:08 nope Apr 01 08:45:06 I wrote a proxy class between my local objects and the middleware. The proxy is called from middleware and calls the local objects and i would like the proxy class to call the local objects from the main thread. Apr 01 08:46:21 But this cannot happen asynchronous Apr 01 08:47:01 so posting to uithread loop and returning is not an option Apr 01 08:48:28 in objc i would do a dispatch_sync :-) Apr 01 08:48:37 maybe wait/notify? Apr 01 08:51:54 replman: look up runOnUiThread(... Apr 01 08:52:24 shmooz: does this block till the code was executed? Apr 01 08:52:27 shmooz, he wants it to happen synchronously Apr 01 08:52:36 so after that he has to block the calling thread Apr 01 08:52:42 i guess wait() will do Apr 01 09:18:37 Guys, Im trying to create a Nav Drawer (slidey bit to the left), the values in there are going to be static, I want to also have sections though. What is the best way to do this? Apr 01 09:21:32 bye Apr 01 10:06:26 hey, how can i create these kind of circles and mini circles http://postimg.org/image/iyviir7vr/ ? Apr 01 10:07:26 badges? Apr 01 10:07:45 you can use a shape drawable on a view with equal size Apr 01 10:08:50 that's for the small circle? Apr 01 10:10:27 Guys, Im trying to create a Nav Drawer (slidey bit to the left), the values in there are going to be static, I want to also have sections though. What is the best way to do this? Apr 01 10:13:52 baera2, oh you mean the bigger ones have shadow Apr 01 10:13:57 well shadows can be tricky Apr 01 10:15:06 maybe you can create a layer drawable and simulate a shadow with a round gradient shape Apr 01 10:18:09 Hello, i'am new to android development. I have problem in linking a library in a project in android studio Apr 01 10:21:37 What's the problem osho0000? Apr 01 10:26:03 android.graphics.Rect is using pixels or dp? Apr 01 10:26:37 yes Apr 01 10:26:57 :) Apr 01 10:27:16 Ashiren: yes? Apr 01 10:27:23 id bet it takes pixels Apr 01 10:27:42 when I use it it looks more like dp Apr 01 10:28:25 well do an experiment Apr 01 10:29:48 to be more precise - rect just holds the numbers Apr 01 10:29:58 it is the other things Apr 01 10:30:08 i.e. canvas uses rect as pixels Apr 01 10:30:24 I use it for RecyclerView.ItemDecoration Apr 01 10:36:20 amugofjava when i want to import the library I get an error that an method cannot be found Apr 01 10:36:49 SneakerXZ, Rect is using just numbers Apr 01 10:37:05 it has no units, neither it ever converts them Apr 01 10:40:49 Mavrik: thanks, I understand, so it is up to upper implementation to decide how it threats the numbers Apr 01 10:41:03 SneakerXZ, yeah Apr 01 10:41:21 vast majority of Android calls interpret Rects as px Apr 01 10:41:59 RecyclerView.ItemDecoration also threats it as px Apr 01 10:42:19 Is there a way to solve memory leaks generate by my code within android studio ? Apr 01 10:42:54 depends on the code Apr 01 10:45:07 Cause I've just found out a leak with the memory monitor Apr 01 10:45:37 it happens on my tabhost when i switch tabs Apr 01 10:45:42 ektos, you can solve them in AS by fixing the code :) Apr 01 10:45:54 FYI it host fragment Apr 01 10:46:08 danijoo: Thanks for the tips :) Apr 01 10:46:12 ^^' Apr 01 10:46:12 ... Apr 01 10:46:54 I cannot figure it out where the leak, it's a simple tabhost with a recyclerview Apr 01 10:47:05 if anyone has an idea Apr 01 10:47:27 most memory leak occurs on orientation change and switching fragments/activities Apr 01 10:47:54 mostly due to keeping unneccessary references Apr 01 10:48:03 do you have any bitmaps? Apr 01 10:48:49 What is best strategy to pass intent from activity to fragment? Except of calling getActivity().getIntent() which I guess is not good? Apr 01 10:49:11 SneakerXZ: Fragment.setArguments. Apr 01 10:49:14 why not Apr 01 10:49:31 eg. myFragment.setArguments(getIntent().getExtra()) ? Apr 01 10:49:35 Yeah. Apr 01 10:50:23 SneakerXZ: Wait, no. Apr 01 10:50:32 TacticalJoke: no? Apr 01 10:51:26 I meant "create a Bundle and call Fragment.setArguments". Apr 01 10:51:39 Copying from the original Intent when creating the Bundle Apr 01 10:52:03 iprime my problem is i need to create the circles in this kind of gridlayout with the small circles Apr 01 10:52:15 TacticalJoke: but getExtras() return Bundle Apr 01 10:52:32 so it is better to get things I need from that Bundle and create a new Bundle? Apr 01 10:52:41 but i don't know should i use drawable png or shapes Apr 01 10:53:38 baera2, if you can use shapes, use them Apr 01 10:53:47 they need less memory and space Apr 01 10:54:03 SneakerXZ: Okay, I guess that'd work. Apr 01 10:54:11 Never tried, but I just looked at Intent.java. Apr 01 10:54:16 also they are more size independent Apr 01 10:54:26 Intent.getExtras returns a copy of the Bundle. Apr 01 10:54:50 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/content/Intent.java#5375 Apr 01 10:55:22 also how can i spread them evenly? Apr 01 10:55:39 SneakerXZ: Does your Fragment need all the extras, though? Apr 01 10:55:46 If not, it seems like TMI for the Fragment. Apr 01 10:55:59 girdlayout or two linear layouts? Apr 01 10:57:20 TacticalJoke: That is true, I will extract what I need from getExtras() Apr 01 10:57:26 thanks Apr 01 10:59:46 SneakerXZ: Note that you could use the "public static MyFragment create(String firstParam, String secondParam)" pattern here. Apr 01 11:00:02 That static method would create the Bundle and call Fragment.setArguments. Apr 01 11:00:15 (And return the new MyFragment instance.) Apr 01 11:00:23 What is it better than calling directly setArguments? Apr 01 11:00:27 *why Apr 01 11:01:30 SneakerXZ, it's the same, it just makes for a more maintainable code Apr 01 11:02:07 To be clear, this is what I'm referring to: http://stackoverflow.com/a/9245510 Apr 01 11:02:36 thanks both of you, I will do it like that Apr 01 11:06:09 factory methods are better than simple constructors, and add a bit of encapsulation and are more readable and maintainable Apr 01 11:07:45 baera2, why is a gridview a problem? Apr 01 11:10:55 This is going to be a stupid question, but Eclipse has drawable-hdpi, drawable-xhdpi, etc. Where is this on AS? Apr 01 11:11:01 http://bassistance.de/wp-content/problem-factory.jpeg Apr 01 11:13:16 Anthaas_, depends on your settings Apr 01 11:13:38 there's a drop-down box above the tree-view Apr 01 11:13:46 Ashiren, lol :D Apr 01 11:14:06 try switching to project, makes the fodlers more obvious Apr 01 11:14:20 Ashiren, haha Apr 01 11:14:58 The Android view is fine. Then it's just app/res/drawable. Apr 01 11:15:41 the android view does not show kotlin packages -_- Apr 01 11:15:45 they're merged there, even if it's indicated what belongs to what Apr 01 11:15:47 that mocks me every time i open it Apr 01 11:15:53 i very seldomly use the android view Apr 01 11:16:45 Ashiren: I'm not using bitmaps, I think the leak come from my way to set the adapter for my ViewHolders Apr 01 11:17:05 Ashiren: I have something like that Apr 01 11:17:12 https://www.irccloud.com/pastebin/GkRO2uXY Apr 01 11:22:57 iprime: Still don't exist. There is a drawable folder, but no drawable-hdpi etc Apr 01 11:23:19 create it :) Apr 01 11:23:28 indeed Apr 01 11:24:53 Oh, well that worked. Apr 01 11:25:10 Didn't yesterday, nothing showed up :/ but it appeared in my AndroidStudioProjects folder :/ Apr 01 11:28:32 Aaand now AS cant find the images I put into it. Apr 01 11:28:37 I need a coffee... Apr 01 11:33:03 Anybody ever managed to scale the android emulator down (using -scale or -dpi-device), WITHOUT getting pixelated to hell? Apr 01 11:33:46 u most likely only get a "use genymotion" in here Apr 01 11:34:22 Yeah, that's a workaround. Apr 01 11:34:33 no, thats a solution :p Apr 01 11:34:53 :-) Apr 01 11:35:11 Genymotion works great with Google APIs now? Apr 01 11:35:29 you can flash the gapps onto it Apr 01 11:35:34 arent google apis nearly completly in google play services now? Apr 01 11:35:45 ^ this Apr 01 11:36:05 If it works great with Play Services that should be sufficient yes. Thanks. Apr 01 11:36:10 just find the right .zip file and drag it onto the genymotion device Apr 01 11:36:24 you only need the arm translation zip and gapps Apr 01 11:36:25 kjeldahl, it does work great yah, for most of the services Apr 01 11:36:45 Coolio, thanks all. Apr 01 11:38:00 I currently have a bug in my app which counter-balances another bug. The first bug effectively fixes the second. This stuff is bizarre. Apr 01 11:38:16 TacticalJoke, call it a feature :p Apr 01 11:38:24 Lol. Considering that. Apr 01 11:39:02 Made it a paid feature. Apr 01 11:39:10 make* Apr 01 11:59:40 for SharedPreferences' string set storage type, can I rely on the order staying the same? Apr 01 12:01:06 Darkwater, check the source :) Apr 01 12:03:48 i guess it just serialized the set and deserializes it again, so order should stay Apr 01 12:05:04 The order won't stay. It uses a HashSet, IIRC. Apr 01 12:05:59 I don't think SharedPreferences is really intended for potentially large data such as a List. Apr 01 12:11:28 Darkwater: What are you wanting to store? Apr 01 12:12:12 it its only a small list, you could serialize them on your own with join() and split() Apr 01 12:12:15 thats what i usually do Apr 01 12:16:05 I'm running a RotateAnimation on View A and a AlphaAnimation on View B. Somehow the AlphaAnimation is not executed, but if I set the AlphaAnimation duration to be very slow, suddenly the RoationAnimation is very slow. Can Animations somehow interfere? Apr 01 12:16:11 TacticalJoke: a list of recents Apr 01 12:16:30 only need to store numeric IDs in order of time Apr 01 12:16:34 Darkwater, why not use a database Apr 01 12:16:50 wouldn't that be a bit overkill Apr 01 12:16:57 dunno Apr 01 12:17:00 I don't need to execute queries on them Apr 01 12:17:08 depends on how many ids it is Apr 01 12:17:17 an infinite list of recents would need a db Apr 01 12:17:22 I just need to retrieve the list, and update it Apr 01 12:17:28 about 5 Apr 01 12:17:36 absolute max 10 Apr 01 12:17:38 then serialize them on your own Apr 01 12:17:46 will probably do that then Apr 01 12:18:37 i take that question back, i april-fooled myself Apr 01 12:20:15 I wonder whether it'd make sense to store 10 values like "MRU item 1".."MRU item 10". Apr 01 12:20:22 If 10 is the fixed number. Apr 01 12:20:42 I say this because 10 MRU items seem to translate to 10 preference items. Apr 01 12:20:49 omg it is 1 april, i just realized even someone here talked about that at this morning :O Apr 01 12:21:08 sci-fic: welcome to the new month Apr 01 12:21:12 welcome to http://com.google/ Apr 01 12:21:28 In Soviet Russia, com.google. Apr 01 12:21:33 :D Apr 01 12:21:37 ru.google Apr 01 12:21:43 lol Apr 01 12:21:47 hi Apr 01 12:21:49 hi Apr 01 12:22:09 com.google isn't google.com for me :( Apr 01 12:22:21 it's the local google :/ Apr 01 12:22:22 Is com.google new? Apr 01 12:22:25 ye Apr 01 12:22:31 1st april thing Apr 01 12:22:32 It's the American one for me, I think. Apr 01 12:22:34 Ah, cool. Apr 01 12:22:43 It reminds me of how much I hate auto-search-on-type. :/ Apr 01 12:22:46 Worst feature ever. Apr 01 12:22:57 I think you can disable it somewhere Apr 01 12:22:57 im wondering if there is a department at google inc. that is responsible for eastereggs Apr 01 12:23:04 ^ there probably it Apr 01 12:23:10 is Apr 01 12:23:17 a group of devs with nothing to do but coding things like com.google or google search Apr 01 12:23:54 Yeah, I disable it. When I went to com.google I saw it again. Apr 01 12:24:02 Tom Stevens - Director of Easter Eggs at Google Inc. Apr 01 12:24:27 TacticalJoke, auto search on type is genious Apr 01 12:24:34 imagine making easter eggs all year Apr 01 12:24:44 *dream* Apr 01 12:25:02 Syzygy: It just gets in my way. I accidentally press and a key and suddenly... everyone has gone. ;| Apr 01 12:25:23 ah, nevermind, I was thinking of automatic search suggestions Apr 01 12:25:27 hours of fun Apr 01 12:25:31 Yeah, those are good. :] Apr 01 12:27:30 why ... Apr 01 12:27:31 Ok, so I went there, and everything looks like Tamil or something. Apr 01 12:27:38 why are oil prices failing Apr 01 12:27:42 Then I came back here, and normal letters didn't look right. Apr 01 12:27:48 why is gas so cheap Apr 01 12:27:54 what's with the average google user nowadays Apr 01 12:28:03 it's like they're getting more conscious Apr 01 12:28:05 hey guys, i was trying to add a Checbox to a LinearLayout using the "addView" method. It's rendering fine but the touch events are not working. The checkboxes are not checking/unchecking. The layout its simple. It's only have a linearlayout. Apr 01 12:31:45 Darkwater, why is there blood... :P Apr 01 12:32:21 "why can't we just forget about blood" Apr 01 12:32:24 "it's only bad" Apr 01 12:32:29 "fuck blood" Apr 01 12:34:32 "is albert einstein ..." :P Apr 01 12:35:26 "why does the sun make you tired" ... what? Apr 01 12:36:16 TacticalJoke: Do you have any idea how I can achieve this kind of Navigation Drawer? http://imgur.com/3B5rpma Apr 01 12:37:39 One with the Notification Bar partly visible underneath? Apr 01 12:38:10 that's part of material design i believe? Apr 01 12:38:12 I have no idea, but I'm just curious of what your question is. :D Apr 01 12:38:48 So, the slidey bit from the left, with the view at the top, with the sectioned listview underneath Apr 01 12:40:17 Ah. I haven't done much with navigation drawers, but I think that's doable. Apr 01 12:40:34 Trying to work out how, my NavDrawer looks nothing like that. Apr 01 12:40:41 Trying to work out if Im even on the right tracks Apr 01 12:40:59 What does yours look like? Apr 01 12:41:22 Getting that now :-) Apr 01 12:41:26 One sec Apr 01 12:41:52 Anthaas_: Look at the Google IO Code, they have an instance of that. Apr 01 12:42:57 TacticalJoke: http://imgur.com/mbSQcQr Apr 01 12:43:13 Offset to the right, shadow is in the wrong place, the darkened area is quite big... Apr 01 12:43:36 lol Apr 01 12:43:41 That does look a little different. Apr 01 12:43:57 I've been using the NavigationDrawer example code Apr 01 12:43:59 Hello guys! How to generate the name of build .apk file with Gradle? I want that Gradle generate File on assembleRelease like: myappname-1.0.1.apk (where 1.0.1 is version taken from AndroidManifest.xml) Apr 01 12:44:00 from Google Apr 01 12:44:02 Is it real? Apr 01 12:44:25 Anthaas_, http://www.google.com/design/spec/patterns/navigation-drawer.html Apr 01 12:44:43 Their Google IO code is different to their example. Apr 01 12:45:01 Uses com.google.samples.apps.iosched.ui.widget.ScrimInsetsScrollView for the Nav Drawer Apr 01 12:45:30 Ahhh Apr 01 12:45:34 Anthaas_, the drawer you want to build is part of material design as far as I know, so look at those resources instead of some outdated sample Apr 01 12:45:35 iprime: Thanks! Apr 01 12:45:46 https://github.com/google/iosched/blob/master/android/src/main/res/layout/navdrawer.xml Apr 01 12:46:20 Oh wow, thanks guys Apr 01 12:46:35 https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/widget/ScrimInsetsScrollView.java Apr 01 13:10:35 hi Apr 01 13:10:54 how i can open a menu , from bottom of screen to middle? Apr 01 13:11:40 t0th_-_: What does that mean? Apr 01 13:14:28 I think he means the bottom popup a lot of lollipop apps have Apr 01 13:15:31 or maybe something like that old sliding drawer thing Apr 01 13:15:55 you could just add it to a relative layout together with the main content view Apr 01 13:16:04 and animate a slide in effect + make it (in)visible Apr 01 13:16:49 i think he means this: http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7XzRWUmxIa285UDA/components_bottomsheets2.png Apr 01 13:17:05 google calls it "bottom sheet" Apr 01 13:19:05 Hey, im newbie with android development. I have a question about good practices. Im doing a Slide with ViewPager (http://developer.android.com/training/animation/screen-slide.html) and i want to have a three pages for my slide, this slides will have the same structure and centered image and text at bottom of image, but ofc the image and next will be different in each screen. But its the same structure. I should define one layout for all views and m Apr 01 13:19:05 odify text and image dynamically or easy way its to do three diferent layout?? Apr 01 13:20:22 codekK, use one layout and set the text promatically Apr 01 13:20:43 everytime you have to do the same 2 times, you should ask yourself: "how can I reuse the other stuff?" Apr 01 13:21:06 Yes its the fundaments of OO Apr 01 13:21:29 danijoo_, but my question its more oriented to image. The image can be load promatically too? Apr 01 13:22:11 codekK, yes. see ImageView#setImageDrawable Apr 01 13:23:05 danijoo_, ok thanks a lot friend Apr 01 13:23:47 yw Apr 01 13:56:00 what's the difference between mipmap and drawable folders Apr 01 13:56:08 Is mipmap a new thing? Apr 01 13:56:15 or just a rename? Apr 01 13:57:08 astroduck, read part of this: http://android-developers.blogspot.fr/2014/10/getting-your-apps-ready-for-nexus-6-and.html Apr 01 13:57:17 astroduck, are you familiar with opengl mipmaps? Apr 01 13:57:20 it was introduced recently Apr 01 13:57:54 iprime: no Apr 01 13:58:08 oh Apr 01 14:05:11 I am not sure I understand it. Someone explain please? Apr 01 14:07:15 /w 26 Apr 01 14:11:58 Im trying to include Android async http library from loopj. It keeps failing to resolve but I don't understand as I found it on jcenter and all of my other jcenter libs work fine. I've ideas? Apr 01 14:12:15 logs? Apr 01 14:13:32 Bod. No logs. I just gradle sync failure Apr 01 14:14:28 astroduck, in the link i gave you to read: " It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density." Apr 01 14:15:08 Eghdk: try with -S Apr 01 14:15:27 Eghdk: ( https://gradle.org/docs/current/userguide/gradle_command_line.html ) Apr 01 14:16:42 Hmm... I've never used gradle from cmd line. Is there just a gradle sync -S command? Apr 01 14:17:50 Eghdk: pass -S first (also usually its ./gradlew ) Apr 01 14:17:57 ' Apr 01 14:17:59 I understand the need for the s option but what task would I execute. Apr 01 14:18:11 Got it. I'll try that now. Apr 01 14:19:14 Wait bod command would be. @./gradlew -S? Apr 01 14:19:31 yup Apr 01 14:19:41 for instance ./gradlew -S tasks Apr 01 14:20:07 why does getXExtra() usually have a default value except for getStingExtra() -.- Apr 01 14:21:22 because null Apr 01 14:22:58 Ah. Thanks bod. SSL issue. Coolio Apr 01 14:23:22 ;) Apr 01 14:28:07 I'm trying to overlay a PopupWindow over a MapFragment, I'm calling popup.showAtLocation(mapFragment.getView(), Gravity.left, 0, 0), and isShowing() returns true, however the popup is nowhere to be seen Apr 01 14:28:30 is there some issue with putting a PopupWindow over a MapFragment Apr 01 14:44:58 is it possible to nest a recyclerview into a recyclerview which is hold itself into a tabhost (with fragment) ? Apr 01 14:45:33 woah Apr 01 14:45:37 Should I always be using ProGuard in gradle when building? Are there any negatives? Apr 01 14:45:40 without leaking memory ? cause I removed the nested recyclerview and It seemed to leak a little Apr 01 14:49:04 liuwenhao, it's slow and debugging tends to not work on optimized code Apr 01 14:49:31 Slow to build? or slow on the device Apr 01 14:49:48 slow to build of course Apr 01 14:49:48 :) Apr 01 14:49:53 liuwenhao: It would be useful for production builds Apr 01 14:50:02 release e.g. Apr 01 14:50:11 Any downsides to using it on release? Apr 01 14:50:19 FWIW, my question regarding pixelation when scaling the emulator doesn't look any better when using Genymotion. I'm guessing it's a combination of OSX "tricks" on retina screens which Android emulators is unable to work around. Apr 01 14:51:24 In gradle I'm trying to load a file that might or might not be available. (signing info that not all developers might have, any idea how I could implement that so that my project can still build? Apr 01 14:57:33 can I sign a release apk with the debug key? Apr 01 14:58:03 liuwenhao, not really Apr 01 14:58:03 (I just want to give the apk to some people, but I couldn't easily get proguard to work on my debug build) Apr 01 14:58:30 Darkwater, you cant upload to google play with debug key Apr 01 14:58:37 I know Apr 01 14:58:44 I said I just want to give the apk to some people Apr 01 14:58:49 to install directly Apr 01 14:58:51 how about you just try instead? Apr 01 14:58:51 you can do that Apr 01 14:59:17 alright, thanks Apr 01 14:59:18 but generating a signing key and using this will make your life easier (for exmaple if you want to give those people another apk to update) Apr 01 14:59:36 and generating one will take you about 2 minutes of your life.. another 30 seconds for signing Apr 01 14:59:58 hello Apr 01 15:00:00 hm, I'll see Apr 01 15:00:04 gotta go now, back in an hour or so Apr 01 15:00:41 i have probably a noob question Apr 01 15:01:18 but do u know if it's possible to enable data on lollipop without root the phone Apr 01 15:01:21 ? Apr 01 15:01:46 that doesn't even make sense Apr 01 15:02:08 ^ this Apr 01 15:02:15 and additionally: wrong channel :D Apr 01 15:02:19 indeed Apr 01 15:02:29 hm ? Apr 01 15:02:42 actually i'm working on battery saving app Apr 01 15:02:43 Pierre2C, #android-root Apr 01 15:02:45 What do you mean by "enable data"? Apr 01 15:02:53 ah okay Apr 01 15:03:05 which disable data when screen turns off Apr 01 15:03:16 it used to work well on 4.x Apr 01 15:03:32 Pierre2C, i think you can do this with ConnectibityManager Apr 01 15:03:39 Any idea why intent is lost when activity is recreated? Apr 01 15:03:40 you need permission though Apr 01 15:03:58 SneakerXZ, because you dont saved it in saveInstanceState: P Apr 01 15:04:15 danijoo_: Should not be saved automatically? Apr 01 15:04:22 *it Apr 01 15:04:44 to be honest, i dont know. I would expect not Apr 01 15:04:46 i tried but it asked me MODIFY_PHONE_STATE Apr 01 15:05:00 so add that then Apr 01 15:05:22 that's all my problem Apr 01 15:05:29 it needs permission system Apr 01 15:05:43 system permission* Apr 01 15:06:12 danijoo_: Is there any documentation about it? Apr 01 15:06:23 and i don't want my users to root their phone... Apr 01 15:06:30 SneakerXZ, Im pretty sure its mentioned somewhere in android docs Apr 01 15:06:35 but you could just try it ot. Apr 01 15:06:36 out Apr 01 15:06:59 hi, I am doing a. lesson https://developer.android.com/training/basics/actionbar/setting-up.html#ApiLevel7, and in logcat, after touching overflowed menu, I see this? http://pastebin.com/yvLSjjpX .Any ideas? Apr 01 15:07:25 Pierre2C, yeah they pretty much removed any ability to do that Apr 01 15:07:29 bolovanos, samsung phone + appcomapt-v21+ ? Apr 01 15:07:36 Pierre2C, probably because of abusive malware apps, or the fear of possible abusive apps Apr 01 15:08:06 Pierre2C, unless you're going to root or spin your own firmware, it's probably a dead end Apr 01 15:08:19 ok, so i'm f*cked. thx @dragorn Apr 01 15:08:34 danijoo_, samnsung tablet, compile 'com.android.support:appcompat-v7:21.0.3' compile "com.android.support:appcompat-v7:18.0.+" Apr 01 15:08:56 Pierre2C, yeah, there's some things you just can't do - turning off the screen, changing most system settings, going into airplane mode, etc are all protected now Apr 01 15:09:18 Pierre2C, the oly thing I can think of is to look at the mdm / device management api Apr 01 15:09:21 bolovanos, samsung devices with andorid 4.x have a bug when using appcompat-21 and not proguard Apr 01 15:09:31 im not sure if this is your error though Apr 01 15:09:46 Pierre2C, you can do some things, if the user grants you dvice admin rights, like set the screen lock characteristics and whatnot. I don't think you can turn off data that way, either, though Apr 01 15:10:33 i'm gonna have a look on that Apr 01 15:10:50 dragorn, thx anyway Apr 01 15:13:05 danijoo_, 0) good to know 1) did not know it is place use compile appcompat in gradle or use proguard 2) maebye it is obvious - i am in debug mode, as far as i know using proguard is possible when compiling final version for production release - play Apr 01 15:13:50 Pierre2C, you can try WRITE_SYNC_SETTINGS Apr 01 15:13:54 Oh, I discovered what was clearing my intent NavUtils.navigateUpFromSameTask Apr 01 15:13:59 is there any way to prevent it? Apr 01 15:14:01 Pierre2C, I don't recall if that's protected or not. you can toggle background data if you can get that Apr 01 15:14:16 danijoo_, pls correct me if i am wrong Apr 01 15:14:20 Pierre2C, not quite the same thing as turning off data; there's really no way you'll get that ability outside of being a system app Apr 01 15:14:55 i dont understand 1) bolovanos ^^ Apr 01 15:15:53 danijoo_, sry 1) did not know that it is placeed - Use compile appcompat in gradle or use proguard... Apr 01 15:16:28 bolovanos, you can use proguard on debug builds too. but im really not sure if this error comes from that Apr 01 15:16:48 you could run it in an emulator to check if its samsung related or just a bug in your code Apr 01 15:17:18 ok and if it is samsung related - what would you do? Apr 01 15:18:54 bolovanos, look for a workaround. samsung is too big a player to ignore, and they're not going to fix it (and users aren't going to update their devices, or even get devices) w/in the reasonable lifetime of your app, probably. Apr 01 15:19:39 dragorn, ok thanks for hint! Apr 01 15:20:03 Guys, I had installed debug version of my application. Now I want to install a Release version. I want to install it directly (.apk file). But when I try to install released version, I've got Message: App not installed. Apr 01 15:20:22 I did erase debug version from device. The same message :( Apr 01 15:20:35 Do I need to sign .apk file? Apr 01 15:20:41 bolovanos, if it is, you have to use proguard Apr 01 15:21:19 bolovanos, https://code.google.com/p/android/issues/detail?id=78377 Apr 01 15:21:56 bolovanos, i mean, it's not useful per se, but it's what you're going to have to do as an app developer. Platform fragmentation isn't as bad as some people think, but when you get hit by it, you pretty much have to work around it on your end, b/c you have to assume a year or more for "most" samsung users to get a fix from sammy Apr 01 15:22:37 I’m using BouncyCastle library to do some crypto and everything works fine, but now I created a JUnit test class from which I call BouncyCastle and I get “No such provider: BouncyCastle”. Can’t seem to figure out what the problem is, ideas would be appreciated :) Apr 01 15:23:32 Hey guys! I'm fed up! WTF is going on on Google Play? I got an app rejected for copyright and impersonation blah blah. The app has some videos from Youtube, some lyrics and pictures. There are dozens of apps out there that has the face of artis on their logos, and they were accepted anyway! What am I missing or doing wrong? Apr 01 15:24:15 Nimyz, read bouncy castle docs for how to add a jce provider Apr 01 15:24:44 * pfn hates jce in any case Apr 01 15:24:51 stupid security policy shit Apr 01 15:25:39 dragorn, thx 4 link, bunch of material for study and as you say i will have to fix on my hand rather than waiting for miracle Apr 01 15:26:56 Mattx, Probably comes down to, you violated policy, and they noticed you. They'll notice the others eventually. Stick to the policy, not to what people have gotten away with. Apr 01 15:27:36 if you get a dalvikvm/W message, ignore it unless your app crashes Apr 01 15:28:13 dragorn, it doesn't make sense at all. these apps I'm talking about that were accepted are infringing the copyright in a completely obvious and gross way u.u Apr 01 15:28:15 pfn, I know how to add the provider. it works in my "main" project but not inside my JUnit testing project but I have no idea why that is Apr 01 15:28:36 Nimyz, ask ##java then Apr 01 15:28:47 dragorn, my apps are fine apart from the lyrics (which I'm not sure if it's legal or not) Apr 01 15:28:48 add the provider Apr 01 15:29:06 Mattx, if you don't own them, it's not. fine Apr 01 15:29:30 https://play.google.com/store/apps/details?id=com.sadakata.katydeperryroar.lyrics Apr 01 15:29:52 this app not only sucks, it has the lyrics too Apr 01 15:29:57 Mattx, well, google isn't going to talk to you, don't talk to any of us, so... remove anything you don't own the copyrigts to. pretty simple. what someone else has gotten away with is irrelevant. Apr 01 15:31:13 I know, I know dragorn. I'm asking here not to complain but to see if there is anything I can do like write the title/description in a particular way or something Apr 01 15:31:19 based on your experience Apr 01 15:32:22 Mattx, have you every tried to get away with wrong parking just because "others do it too"? Apr 01 15:32:30 do you think this would work? ^^ Apr 01 15:33:27 Mattx, I think the simplest answer is, "don't include anything you don't own the copyright to in your description or screenshots". Apr 01 15:33:53 danijoo_, I don't even understand what is "wrong" with this app. I assume it's the lyrics, I can remove them, and put royalty free pictures. can I use youtube videos or should I remove them too? Apr 01 15:33:56 They use an algorithm to take down apps right? Or do they actually have people who make those decisions? Apr 01 15:34:04 for screenshots I mean Apr 01 15:34:30 for screenshots, dont use anything that is not **completly** your own stuff Apr 01 15:34:39 for the rest using (TM) is most often enough Apr 01 15:35:12 liuwenhao, most things are automated Apr 01 15:38:33 danijoo_, are youtube videos ok? can I use them? Apr 01 15:38:52 yes if its a video of yourself dancing Apr 01 15:38:57 no if its bayonce Apr 01 15:39:29 except you are beyonce, then its k too :) Apr 01 15:40:00 danijoo_ nah, beyonce probably doesn't own the rights on her videos Apr 01 15:40:27 memorion, she might have written permission though :) Apr 01 15:40:48 Mattx, you should be happy they rejected you instead of finding it out in a few month and ban it Apr 01 15:40:56 google wouldn't care, they would still take down her app Apr 01 15:40:59 danijoo_ that would still mean a takedown untik she can prove that :D Apr 01 15:41:29 danijoo_, ok, their algorithm really sucks Apr 01 15:41:36 but I understand, thanks Apr 01 15:41:48 danijoo_, copyright infrigment sucks ;) Apr 01 15:43:04 They should at least have some sort of dev support line like Apple does, but I know that will never happen Apr 01 15:43:22 liuwenhao, it seems to get better thoug Apr 01 15:43:41 sometimes devs even get an answer after being banned and try to get unbanned Apr 01 15:44:25 and this app rejectment instead of banning is an improvment too Apr 01 15:44:44 yeah, most stories on /r/androiddev are really obvious copyright infringements and the rest gets reinstated at some point Apr 01 15:45:29 the worst stories are those of people who get banned, reinstated and after a month the script finds them again and bans Apr 01 15:45:43 this + another time and you are out ^^' Apr 01 15:46:19 http://reddit.com/r/androiddev/comments/2qfqyz/google_wrongly_removed_my_app_and_put_a_strike_on/ stories like this let me hope it may get better, 8 hours to get his app reinstated Apr 01 15:47:29 http://pivotallabs.com/robolectric-3-0-rc2-released/ what ?! Apr 01 15:54:44 anyone looked at http://www.omgchrome.com/google-launch-port-android-app-to-chrome/ ? Apr 01 16:13:00 guys, I've turned on proguard with default 'proguard-android.txt' rules. And my app crashes, how I can look, where it crashes? I can't understand logcat, because the error is something like this: http://pastebin.com/QVM0vrmD Apr 01 16:14:24 woozly: Apr 01 16:15:14 woozly: when you use proguard, it has generated a file to reverse and make you stacktrace readable Apr 01 16:16:16 woozly: the file should be named mapping.txt Apr 01 16:17:47 disable obfuscation until app stops crashing Apr 01 16:18:03 (or disable it at all) Apr 01 16:20:33 ohai Apr 01 16:20:50 messing with premade eclipse projects, one a test suite of the other Apr 01 16:21:40 the (robotium) test suite can't find the main activity of the app, I assume it's because the test suite project doesn't somehow 'include' the app itself Apr 01 16:22:01 what makes the situation a bit more interesting is that I don't have eclipse/ADT and use android studio instead Apr 01 16:24:52 boxmein: cool Apr 01 16:25:20 yiati: ikr Apr 01 16:37:59 Hi guys I want to program a Windows server in C++ for an Android client and iOS client. My question is there a network/socket library I can use for all platforms? Apr 01 16:39:31 that would do what, over the standard unix-style sockets everyone copied? Apr 01 16:39:48 or, why not http and rest-like? Apr 01 16:40:07 Yeah, HTTP and REST is the way to go Apr 01 16:40:09 I don't know I'm a newbie in that topic, hence I need advices Apr 01 16:40:34 Is HTTP efficent and fast? I want to send and receive packets Apr 01 16:40:35 right so you're unlikely to do great coding your own server...so use a web server Apr 01 16:40:44 yes esp http2 Apr 01 16:40:49 no I've coded a server already for windows Apr 01 16:40:53 ah ok Apr 01 16:40:54 in c++ Apr 01 16:41:08 so what's the issue? did you use socket() and bind()? Apr 01 16:41:10 it was for an mmorpg project though Apr 01 16:41:10 android-dev138 maybe u can use socket.io Apr 01 16:41:17 winsock Apr 01 16:41:24 what’s the app doing? Apr 01 16:41:34 packet input output Apr 01 16:42:08 I mean what is the app itself doing? Is it a game, or a list application, or what? Apr 01 16:42:36 IT's a game, should have a world chat and some private chat functions, also send packets about the results of the fight Apr 01 16:42:50 and of course receive infos from the server Apr 01 16:44:02 should I juse use winsock für winodws and the socket library für android Apr 01 16:44:16 ektos, danijoo_: thank you Apr 01 16:44:33 or is there a better way Apr 01 16:57:58 When you are using the NDK and you are writing c++ code, you can call all android api's directly yeah? Apr 01 16:58:19 all the built-in android classes, including ui stuff like View and ViewGroup? Apr 01 16:59:02 or do you have to go through JNI Apr 01 16:59:27 liefer: you call Java types from C++ by using JNI Apr 01 16:59:32 so i'm not sure of your question Apr 01 16:59:54 jonp: thanks, you just answered it :) Was wondering if you had to go through JNI or not Apr 01 17:00:12 for all C++ to Java and Java to C++ calls, JNI is involved. Apr 01 17:00:23 different aspects, but all JNI Apr 01 17:00:39 I thought maybe the android API's were exposed directly in C++ Apr 01 17:00:49 *some* are. *most* are not Apr 01 17:00:54 ok. Thank you Apr 01 17:00:59 e.g. there's a NativeActivity type, iirc, which exposes some lifetime methods Apr 01 17:01:06 OpenGLES is available Apr 01 17:01:15 but by far most code is not directly accessible from C++ Apr 01 17:01:29 Ah. That seems reasonable Apr 01 17:01:45 well, depends on whether you call going through jni accessible Apr 01 17:01:57 that's why i said 'directly accessible' ;-) Apr 01 17:01:58 you can fully interact with java from c++, but it's incredibly painful and ugly Apr 01 17:02:09 once you've done it for years, it's not bad... Apr 01 17:02:18 * jonp wonders if he's brain damaged at this point Apr 01 17:02:22 ALL THE JNI... Apr 01 17:02:23 sure, but it still sucks Apr 01 17:02:32 agreed. Apr 01 17:02:47 so you instead write a code generator which does all the JNI glue for you! ;-) Apr 01 17:02:50 jonp: Heh, you can get used to a lot of things. Even excruciating pain :) Apr 01 17:03:43 jonp, indeed Apr 01 17:03:55 in any case, I'd rather write java than c++, and just call out to c++ as necessary Apr 01 17:03:58 rather than vice versa Apr 01 17:04:05 android needs more jna Apr 01 17:04:14 hi Apr 01 17:04:20 can someone help me with this Apr 01 17:04:22 i'd rather not write Java...and i'll just leave it at that. Apr 01 17:04:23 http://stackoverflow.com/questions/29396627/how-to-asynchttpclient-with-retry-dialog Apr 01 17:04:30 I was mostly trying to understand some cross-compiler stuff. Some of them seem to compile whatever(say, C#) into Java/java bytecode. I was wondering why that was, consindering that most of them compile their iOS counterpart into c++/objective-c Apr 01 17:04:49 but since you have to go through JNI, compiling directly to c++ wouldnt make much sense i guess Apr 01 17:04:49 liefer: Xamarin uses JNI. It doesn't emit Java bytecode. Apr 01 17:05:02 it compile down to c++ and uses jni? Apr 01 17:05:07 ..except when it has to. Apr 01 17:05:14 it uses the normal Mono JIT Apr 01 17:05:20 + JNI and Java "stubs" as needed Apr 01 17:05:38 Some Java code is needed to declare `native` methods so Java can call into C#/etc. Apr 01 17:06:22 seems a little bit messy :S Apr 01 17:06:28 but it works. :-) Apr 01 17:06:32 :) Apr 01 17:06:37 a future release will pre-compile all managed code into native code. Apr 01 17:06:41 indeed, xamarin is its own runtime, practically Apr 01 17:07:23 yay, got my app updated to use play services instead of google-api-client Apr 01 17:07:58 Its interesting though. Xamarin has a partnership with microsoft, but at the same time, microsoft ships visual studio 2015 with cordova as their default "android project" template Apr 01 17:08:08 life is interesting. :-) Apr 01 17:08:13 heh, indeed Apr 01 17:09:18 personally i put my money on xamarin, but it still seems like a kindda counter-intuitive move to me Apr 01 17:09:22 on MS's part Apr 01 17:09:48 like, they're kindda cutting into their own marketshare of cross-compiling by "supporting" two approaches/companies Apr 01 17:10:08 while increasing their relevance in the developer tools space. Apr 01 17:10:09 *that* desperate to get people to make apps for windows phone, perhaps Apr 01 17:10:11 might be a good tradeoff Apr 01 17:10:27 c# is a pretty great alternative to java Apr 01 17:10:36 hmm, yeah, maybe. I didnt think visual studio needed much of a boost in that area though Apr 01 17:10:47 c# is amazing. Apr 01 17:12:35 c# is amazing because MS paid a lot of money to compete with java Apr 01 17:13:09 I honestly dont care, i just get to enjoy using a great language :) Apr 01 17:13:30 the JVM is still a pretty impressive piece of tech though Apr 01 17:13:34 not sure $$$ can make something great. Apr 01 17:13:40 good taste certainly can... Apr 01 17:13:59 MS has proven money CAN buy everything ;) Apr 01 17:14:16 shmooz: so has the politics of america :P Apr 01 17:15:07 MS still dont have much of a presence in the mobile space, even though they are paying people to develop apps for their platform Apr 01 17:15:10 jonp: Have you seen Kotlin? Apr 01 17:15:11 Is there any way to preserve zxing Intent scan result after screen rotation? Apr 01 17:15:26 unfortunately, because i actually *like* windows phone Apr 01 17:15:33 TacticalJoke: no. Apr 01 17:15:57 https://com.google/ Apr 01 17:16:11 It's a JVM-targeting language that's better than Java. Seems like a good choice for Android development. Apr 01 17:16:22 I see lots of Microsoft stores in malls opening copying apple store, and a lot of people are buying their windows phones and stuffs Apr 01 17:16:33 TacticalJoke: "better than Java" isn't usually a high bar ;-) Apr 01 17:16:49 Well, could be worse than java. Could be objective-c :P Apr 01 17:16:59 the problem comes when you want your "better than Java" language to be used by Java or another JVM-targeting language Apr 01 17:17:04 then things get possibly weird/difficult Apr 01 17:17:16 No problem there. Apr 01 17:17:29 Just use scala :D Apr 01 17:17:43 TacticalJoke: i meant in theory, not necessarily for Kotlin Apr 01 17:17:47 e.g. Reified generics? Apr 01 17:18:01 certainly *doable* on the JVM, but language interop becomes messier Apr 01 17:19:57 liefer, 'cept swift is better than java... Apr 01 17:20:03 liefer, that's the approach I take Apr 01 17:20:12 IMHO, Perl is better than Java. Apr 01 17:20:15 ...i'm not a fan of Java. Apr 01 17:20:26 pfn: In theory, at least. Swift is cool, but still very very new... Apr 01 17:20:39 but there's a Swift-to-JVM compiler now! ;-) Apr 01 17:20:39 nothing beats pure C Apr 01 17:20:43 RemObjects is working on one Apr 01 17:21:09 shmooz: except, well, everything? :) Apr 01 17:21:29 * pfn has nothing against new Apr 01 17:21:32 everything is built on top of it Apr 01 17:21:35 and perl is pretty garbage Apr 01 17:21:39 java is also pretty garbage, though Apr 01 17:22:21 shmooz: everything is built on top of asm/machine code as well, but you dont see me enjoying typing in 0's and 1's in an attempt to make an UI Apr 01 17:22:51 C is a high level language in case you didn't know Apr 01 17:23:01 meaning close to english Apr 01 17:23:12 oh, i thought were we discussing things that were cool because other things were built on top of them Apr 01 17:23:16 but also close to hardware Apr 01 17:23:44 you are comparing doing C to doing machine code Apr 01 17:24:04 you were arguing that C was awesome because other things were built on top of it Apr 01 17:24:22 no, I was saying that it's just awesome Apr 01 17:26:44 eh, not really Apr 01 17:30:16 it's awesome because it punts on the hard problems by just letting you transform a chunk of memory into arbitrary types Apr 01 17:30:22 that's not really a solution Apr 01 17:32:13 Hi. My app makes download requests to our server. I've read that on the server it shows as 2 requests (one to verify the file exists, and one to download the file).... anyone know of a way in php to determine which request is which? I've checked the http headers and they're all the exact same. Apr 01 17:37:56 Gh0sted: wouldn't the order that the first hit is the verification and the second is the request give it away ? Apr 01 17:38:53 coming from the same address ... Apr 01 17:39:25 hi Apr 01 17:39:39 can somebody help me with making an aosp browser with material design that can be installed without root on lollipop Apr 01 17:40:51 I suppose, yes. But the only way I can think of to keep track of that on our download logs is to query the database for an existing download for that file & user combo, and if it finds one with a time close enough to this requests time, then don't log it... just worry that seems like a cheesy/non-fool-proof function Apr 01 17:41:17 what Apr 01 17:41:30 are you saying you can help me Apr 01 17:41:57 No, talking to shmooz Apr 01 17:42:02 ok Apr 01 17:42:40 there is already an aosp materail design browser at http://forum.xda-developers.com/htc-one-m8/themes-apps/app-material-design-aosp-browser-t2967740 Apr 01 17:42:47 joe11iu only sees what he wants to see appearantly Apr 01 17:42:58 no Apr 01 17:43:32 i came in after you shmooz posted so i did not see your message Apr 01 17:43:37 so i thought it was to me Apr 01 17:43:44 Shmooz, think that method is robust enough? Apr 01 17:44:42 Gh0sted: I'm not sure Apr 01 17:44:54 and there is already aosp browser without root for android 4.4 and lower: "me.android.browser" is one and also "vanilla browser" is one Apr 01 17:45:22 Ok, well if there's no way to flag the requests from the android itself, I guess that's my only option anyways. I'll go that route for now. Apr 01 17:45:44 joe11iu: what have you or what can you contribute toward your own project ? Apr 01 17:45:53 Can't you define your own protocol? Apr 01 17:46:07 Even via custom HTTP headers. Apr 01 17:46:52 there is no aosp browser that works on lollipop without root or without putting the apk into the system folder Apr 01 17:47:08 Tactical, that might be over my head, but I can check into it.... my only hesitation there is that the app is only making one request from my code. So adding a custom header to it would just make the custom header show up for both requests that the server receives Apr 01 17:47:23 joe11iu: are you a developer ? Apr 01 17:47:27 thats what i am trying to make is an aosp browser with material design that can be installed without root Apr 01 17:47:33 not exactly Apr 01 17:49:03 shmooz Apr 01 17:49:35 joe11iu so you want someone else to make that browser for you? Apr 01 17:49:43 no Apr 01 17:49:48 joe11iu: I don't think people will pay attention, you found something missing as a user and thought you could change the world by coming in here and asking people to do it for you Apr 01 17:49:49 i just want help with it Apr 01 17:50:31 a browser is a huge task to take on Apr 01 17:50:45 joe11iu but if you can't contribute anything that's not help that's a job Apr 01 17:51:11 i will help with contributing to it Apr 01 17:51:26 how? Apr 01 17:51:33 Ghost: Hmm, I don't remember enough about HTTP to say whether this is normal behavior. Apr 01 17:51:43 Also can't goggle easily right now. Apr 01 17:51:50 google Apr 01 17:52:54 idk Apr 01 17:53:01 what every i could help with Apr 01 17:53:39 if you can't program pretty much nothing Apr 01 17:53:43 joe11iu: try coding the skeleton of it yourself first, and then open source and ask for help Apr 01 17:54:19 no Apr 01 17:54:30 i wantto use aosp browser as the base Apr 01 17:55:03 just wait for them patch it Apr 01 17:55:03 for lollipop Apr 01 17:55:37 i have done that Apr 01 17:55:44 What the AOSP browser? What's so good about it. Apr 01 17:55:54 Why* Apr 01 17:56:00 or contact the team that is working on it Apr 01 17:56:06 minimal design Apr 01 17:56:45 i have contacted https://play.google.com/store/apps/details?id=com.droid.browser2&hl=en about it Apr 01 17:56:56 but he did not respond to me Apr 01 17:57:15 Google Chrome is minimalistic and 'material'. Apr 01 17:58:47 not like aosp broswer Apr 01 17:59:33 Google never seems to understand my questions anymore lol... but I'm trying. Thanks for the suggestions though! Apr 01 17:59:45 hi Apr 01 18:00:33 so no help Apr 01 18:00:52 joe11iu if you try something and get stuck you will get help Apr 01 18:01:02 but not if you don't do anything yourself Apr 01 18:01:08 ok Apr 01 18:01:26 aosp right? so you can DIY... Apr 01 18:01:29 i am trying to do it as we speek Apr 01 18:01:36 I'm just creating a new project from the sdk tool and want to build the assembleDebug with gradlew but I don't have the assembleDebug task in the main project, do I've to run first gradlew init? Apr 01 18:01:56 is my first time doing this with the android-sdk tool and want to load my first app in my android cellphone Apr 01 18:02:20 rgpixeltech, use an ide Apr 01 18:02:54 danijoo: ok I will, but also want to do this =/ thnx.. Apr 01 18:03:16 there's no way? Apr 01 18:03:26 what abotu smali Apr 01 18:07:06 i also write my code in smali Apr 01 18:08:27 so could you help me Apr 01 18:09:02 with what Apr 01 18:10:04 helping me make a aosp material design browser for lollipop that can be sideloaded Apr 01 18:10:28 ahoi danijoo Apr 01 18:10:30 ;) Apr 01 18:10:30 there are enough browsers in the app store if u ask me :) Apr 01 18:10:56 also i have my own projects :) Apr 01 18:11:00 aloha Apr 01 18:11:21 also ich someone says "i also write my code in smali", never believe them Apr 01 18:11:23 i know there is aosp browsers in the app store danijoo that work without rooting Apr 01 18:11:33 especially on 1. april Apr 01 18:11:40 hahah Apr 01 18:11:47 but they do not work with lollipop Apr 01 18:11:49 forgot it's april 1 Apr 01 18:12:04 seen the cyanogen mod update with "powered by Microsoft?" Apr 01 18:12:27 joe11iu, isnt the aosp browser opensource? Apr 01 18:12:50 so you could make it work (even without smali!) Apr 01 18:13:03 where are the april 1 "Android gets Java 8 support" announcements Apr 01 18:13:26 g00s, appcompat-21 was this years april fool. it just came to early ;) Apr 01 18:13:32 yes but i want to have it so that it can be installed on lollipop without having to root and put the file in the system fiolder Apr 01 18:13:38 danijoo lol Apr 01 18:14:42 joe11iu, use aosp as base and try to make an apk from it Apr 01 18:14:59 ok Apr 01 18:21:00 "Warning: Never send the exception message (e.getMessage()) to Google Analytics as it may contain personally identifiable information." Apr 01 18:21:10 ok that make sense but - how do debug anything then :| Apr 01 18:21:51 i like crashlyticsc for unhandled exceptions Apr 01 18:22:02 crashlytics* Apr 01 18:22:07 i'mkinda scared by the setup Apr 01 18:22:33 their wizard is pretty terrible, but once you're done with the setup its not bad Apr 01 18:22:42 and also, not knowing how it impacts the privacy of users with this stuff going to twitter Apr 01 18:24:34 liefer did you say above you were using Windows Phone ? Apr 01 18:24:56 Im not using windows phone, i just like it Apr 01 18:25:13 probably more developing for it than using it, though :) Apr 01 18:25:26 i'd like to try developing for it when 10 comes out- i guess technically the tools are out already Apr 01 18:25:47 I have no experience with 10, but i looks very intersting Apr 01 18:25:54 it* Apr 01 18:25:58 yeah thats a weird feeling, i dont really use android much but do development Apr 01 18:26:16 can i ask whats your personal phone then? :) Apr 01 18:26:43 you have been in the android dev channel for some time now, figured you were using an android Apr 01 18:26:52 oh i have an n7 Apr 01 18:27:11 the last of its kind :( Apr 01 18:27:31 thats not a phone, thats a tablet :) Apr 01 18:27:55 i'll have to put some more effort into getting a beaglebone or something to work as my dev environment Apr 01 18:28:34 I like using some common device as a dev target Apr 01 18:28:47 something like one of the samsung galaxy devices Apr 01 18:29:04 anything i encounter during development, some users are going to encounter too Apr 01 18:29:14 sure Apr 01 18:30:27 and theres a lot to encounter on samsung devices :D Apr 01 18:31:01 hehe yes, indeed. Most wierd things i see happen, are on htc devices though Apr 01 18:31:07 perhaps im just unlucky Apr 01 18:31:27 the old motorola phones are funny, too Apr 01 18:34:57 hm, i'd like to see play sevices StandardExceptionParser - oh well. closed i guess Apr 01 18:36:57 liefer but windows phone seems really struggling - the only reason i haven't put any effort into it Apr 01 18:37:57 Hello, I'm new to android development. I'am trying to do an USB host by follow a guide, but I have some trouble. Anyone can help? Apr 01 18:37:58 Yeah, same. There is not much incentive to spend time on it. Unless a client pays you to specificly develop for it :) Apr 01 18:37:59 but when i do see people with WP - like standing in aline at the post office - i go out of my way to ask them how they like it, etc. almost everyone likes it. android users seem more indifferent Apr 01 18:38:24 was a pleasure, though. Just doesnt make sense business wise if you look at their market share Apr 01 18:38:51 liefer if you can write one app that covers phone and desktop, and desktop has a viable market than maybe that changes things a bit Apr 01 18:40:03 Sure. Lets see if its as fluent as that, though. Neither android nor ios gets a tablet version completely "for free", but maybe windows is the one to change the game Apr 01 18:40:21 how do people like their windows device? Apr 01 18:41:29 android is the windows of the new millenium Apr 01 18:41:42 people don't care about wiendows on their desktops either Apr 01 18:41:46 that's the default Apr 01 18:41:57 pfft, windows' reign was longer. In 5 years noone will have apps, its all be in the browser :) Apr 01 18:42:01 * liefer ducks Apr 01 18:43:22 I don't see windows and android moving in on each others turf though, since I think browsers will ever be able to fully utilise the hardware in mobile devices like native code can. :) Apr 01 18:43:22 already happening Apr 01 18:43:31 from what i read, people install apps when they get a new phone and thats the end of it. also users tend to use 2-3 apps mostly Apr 01 18:43:33 fb messenger is getting its own apps yea? Apr 01 18:45:38 Troffel: NaCL? WebGL? Its just a matter of time IMHO Apr 01 18:46:14 most of my clients know about "responsive" websites (terrible name), but want the exposure of being on an app store/google play Apr 01 18:46:26 it might be, but that also requires that the engineer create mobile devices with that in mind Apr 01 18:46:50 once people figure out that they can have websites bookmarked as icons on their launcher, its game over for apps Apr 01 18:47:38 Sure. But creating a website that looks awesome on mobile is much cheaper than developing a windows phone app, an android app and an ios app Apr 01 18:49:01 and with service worker, your website can even work offline Apr 01 18:49:53 But then again, a lot of users expect a different UI for Android and IOS Apr 01 18:52:21 Question, for android development which Java version should I use to cover the most amount of users possible? Apr 01 18:52:36 I was thinking Java 6, but couldn't really find any charts or graphs to back that assumption up Apr 01 18:52:47 any thoughts? Apr 01 18:53:09 You can use 7 or 8. Makes no difference, AFAIK. Apr 01 18:53:14 Just don't use 6. Apr 01 18:53:31 You want the diamond operator and so on. Apr 01 18:54:20 I mean JDK 7 or JDK 8, to be clear. Apr 01 18:54:47 ryanw_se: Won't affect your ability to cover users really. It will just affect the language features you have available. Might as well use java 7/8 Apr 01 18:55:32 yiati_ what if I decide to use features such as lambas? Then I will have a problem right? Apr 01 18:56:27 I'm basically concerned because I want to use more advanced features in my app without breaking compatibility with older devices Apr 01 18:56:33 You can't use Java 8 for Android. Apr 01 18:56:44 But you can use JDK 8. Apr 01 18:57:09 ryanw_se, you're talking like you have any choice :P Apr 01 18:57:16 ryanw_se, the devices don't run a desktop JVM Apr 01 18:57:26 So I can develop in JDK 8, but I can't have my target app for java 8? Apr 01 18:57:33 the VMs on devices run Java 6 bytecode Apr 01 18:57:54 Mavrik so it doesn't really matter then what JDK I use, because I'm assuming its converted Apr 01 18:58:00 ryanw_se: you can target your app for java 8 but it will still default to java 7 Apr 01 18:58:08 and you can use features from Java 7 that can be compiled to java 6 bytecode. Apr 01 18:58:22 Thank you for your help guys, that really explains alot Apr 01 18:59:19 Apr 01 18:59:32 New versions of Android allow try-with-resources. Isn't that Java 7 bytecode? Apr 01 19:00:08 it is Apr 01 19:00:23 yes, and it only works on newest OS versions Apr 01 19:00:41 which versions? Apr 01 19:01:19 So it's either Java 6 bytecode or Java 7 bytecode. Apr 01 19:01:25 Depending on recency. Apr 01 19:01:42 So my next question is, if I hsbr JDK 8 on my machine, and I am developing Apr 01 19:01:57 What happens if I accidently use a Java 8 version feature, on my application? It just won't work? Apr 01 19:02:16 have* Apr 01 19:02:28 won't work Apr 01 19:02:36 set -target 1.7 -source 1.7 Apr 01 19:02:49 at best, you can use retrolambda Apr 01 19:03:00 ryanw_se, you'll have langauge level for source AND for compiled code set in Gradle Apr 01 19:03:12 ryanw_se, and if you use a new feature the compiler will error out Apr 01 19:03:29 That is very helpful Apr 01 19:05:55 for your April Fool's day enjoyment, I present to you an actual Eclipse error that my coworker encountered: http://cl.ly/image/0k3k1s452y0z Apr 01 19:07:02 Troffel: thats very true. But im willing to argue that 1. They'll be happy with a Good Enough(TM) ui, 2. Its possible to make device-specific UI's in websites too Apr 01 19:07:25 "they" being the users Apr 01 19:10:13 you can get really close to a native experience, that's true. But I'd still argue that being able to store data (more than just cookies) on the device, just to mention one thing. Is still huge :) Apr 01 19:10:30 Service Worker. Apr 01 19:10:40 You can store much more than cookies these days Apr 01 19:10:49 you can have an entire website available offline Apr 01 19:12:56 as long as it's easily supported across platforms, I agree that is a strong case :) Apr 01 19:13:13 Hadn't heard of the service worker Apr 01 19:13:18 Its not well supported yet. But it will be, sooner or later Apr 01 19:13:40 its just a matter of time, which is why i added the "5 years" :) Apr 01 19:13:46 even though i doubt it'll take that long Apr 01 19:14:03 but then again, android is used for more than just handheld devices Apr 01 19:14:13 service worker is very cool. Im not really a web dev, but i recommend reading up on it Apr 01 19:14:32 yeah, in theory. In practice, not so much :) Apr 01 19:14:39 I skimmed the first hit on google, seems solid with its separate lifecycle Apr 01 19:14:42 what, 90%? of android devices are phones Apr 01 19:14:48 anyone happen to know how to make the numberpicker's blue lines not be blue? Apr 01 19:15:02 right now, but then again a lot can happen in 5 years :) Apr 01 19:15:09 thats true :) Apr 01 19:15:19 google have quite a few devices that they can throw android add Apr 01 19:15:26 i *just* had a client who did android TV, so who knows? Apr 01 19:15:41 glasses, car, tv, etc Apr 01 19:16:16 glasses is pretty much dead for now, maybe car, but i dont put much faith into it Apr 01 19:16:47 leanback is pretty shit btw tbh :P Apr 01 19:16:59 Troffel arguably, google hasn't had much success outside of phones though (with android) Apr 01 19:17:17 well, +90% of googles income is still from ads. So we'll see what of their projects truly catch on Apr 01 19:17:26 O.o Apr 01 19:17:28 g00s, other than phones, yep :P Apr 01 19:17:33 ads rely on being seen by many people, though Apr 01 19:17:44 it make sense to be available on many platforms Apr 01 19:19:26 but then again, 5 years ago a lot was different too d: Apr 01 19:19:47 then again, perhaps trying to make people watch ads when driving their car is not the best of ideas :D Apr 01 19:20:19 1 ad every traffic light ^^' Apr 01 19:20:21 not watch, but it might go "the mcdonald you're now passing has cheeseburgers on sale" ;) Apr 01 19:20:52 i can haz cheeseburger :D Apr 01 19:20:53 and when driverless cars take off, there's plenty of time for ads :D Apr 01 19:21:02 danijoo: the auto-driving car suddenly makes sense huh? Being able to spam the driver with ads constantly :) Apr 01 19:21:19 Troffel: hehe yeah, indeed :) Apr 01 19:21:43 "driver", when I get my hands on such a car, my car will become an extension of my bed d: Apr 01 19:22:33 If any of you guys watch futurama, i cant wait for the eye-phone. Ads even when you sleep :D Apr 01 19:30:18 can anyone point me to a good algorithm for only choosing supported preview and picture sizes ( camera) of a certain aspect ratio? Apr 01 19:30:34 Do any of you guys use Ninjamock for app mockups? Or do you draw stuff by hand or use another tool? Apr 01 19:32:21 hi I'm running gradle (2.3) assembleDebug in my root android(sdk) application and seems that in the build.gradle where I set the versions of the compiledVersion and buildTools could not be found Apr 01 19:33:37 this is the error : http://pastebin.com/TukhUuvu Apr 01 19:35:09 how can I check my available plugins? Apr 01 20:17:01 groxx there ? q about GA / crashlytics Apr 01 20:17:06 ya Apr 01 20:17:25 pff, blue death and android studio says "Could not save application settings: java.io.IOException: java.lang.AssertionError: Unexpected content storage modification", AS does not show any previous projects - looking for solution on google, but if you have anything... Apr 01 20:18:12 groxx thanks well - say i want to record events - for example in my bluetooth code - which are different error conditions (timeouts, gatt errors, etc) - would you use GA for this or crashlytics ? i guess these are 'caught exceptions' Apr 01 20:21:11 g00s: GA, crashlytics' "analytics" is pretty much worthless. I'm not actually sure what GA offers for custom data in analytics, but I would assume it's on par with e.g. their web metrics stuff, which is pretty capable. Apr 01 20:22:00 groxx ok thanks. i'm setting up GA now and find it very confusing Apr 01 20:22:02 g00s: e.g. for my app, this is literally everything in Answers, and I'm not aware of any other stuff they offer: http://cl.ly/image/2y3q3l3F1h3X Apr 01 20:22:19 for example, i logged into my account, and had to create a GA account - so i have an account in my account :| Apr 01 20:22:27 and now they recommend another tag manager account wtf Apr 01 20:22:38 heh Apr 01 20:22:39 I have like 3x the top and bottom padding then right and left using cardview with useCompatPadding and cardElevation=4dp Apr 01 20:22:41 annyone know why? Apr 01 20:22:44 yeah, analytics is pretty Enterprise™ Apr 01 20:23:21 heh Apr 01 20:23:25 g00s: flurry works alright for stuff like this, though their "params" stuff can get pretty delayed (e.g. days behind). but maybe that's because we pump in a lot of data. Apr 01 20:24:47 g00s: e.g. video-encoding failure info that we collect: http://cl.ly/image/081G0O1d3F1l Apr 01 20:25:29 there might just be time / app version based filtering there, though Apr 01 20:25:35 I think GA is better at that Apr 01 20:25:59 groxx what is the app? Apr 01 20:26:24 so i guess a dumb question, what is a GA account wrt the gmail account :| Apr 01 20:26:25 lasserix: that's work, which I haven't named :) work requests I keep work and play separate. the first link was Comic Chameleon though. Apr 01 20:26:52 oh Apr 01 20:26:53 sorry Apr 01 20:26:58 g00s: not really sure, tbh. I suspect it just doesn't have their unified account stuff. Apr 01 20:27:11 Mister Groxx Secret Agent Apr 01 20:27:21 indeed! Apr 01 20:27:54 i am guessing you have some kind of app that is used for dirtiness and you are embarrased! Apr 01 20:28:25 undeniably Apr 01 20:29:16 I get a retrofit failure on parsing gson can't convert "" to a double, but it doesn't tell me where it is in the json, anyone got recomendation on how to find it? Apr 01 20:29:20 *or a fix Apr 01 20:29:21 start-up life, "stealth mode" is a thing and has some concrete benefits. I'd say, but work requests I don't, so I don't. Apr 01 20:29:27 lasserix: use Gson 2.3 or newer Apr 01 20:29:40 compile 'com.google.code.gson:gson:2.3.1' Apr 01 20:29:48 Already am? Apr 01 20:29:56 it should give you a JSON path Apr 01 20:30:06 let me recheck Apr 01 20:31:10 What's the best way to get into Android app development? Apr 01 20:31:10 Is querying BuildConfig.DEBUG the best way to check whether we're in debug mode nowadays? Apr 01 20:31:16 Just gives me the url Apr 01 20:31:18 IHideKeys: make an app Apr 01 20:31:32 IHideKeys and don't lose your kets Apr 01 20:31:34 *keys Apr 01 20:32:15 http://www.androidpolice.com/2015/04/01/google-reader-rises-from-the-grave-with-new-material-update/ Apr 01 20:32:21 Hi all, do you know if i must use real name and surname for a developer account on google store? Apr 01 20:32:26 What Java knowledge is required? Apr 01 20:32:30 TacticalJoke: that will give you whether the build is debuggable Apr 01 20:32:32 i mean, can i use an artistic name instead? Apr 01 20:32:33 I've taken an introductory course Apr 01 20:32:49 memorion: ikr? /me has excitement Apr 01 20:33:00 Yeah. Thanks. Apr 01 20:33:03 okdamn, ask your lawyer Apr 01 20:33:41 EPG: why Apr 01 20:33:58 because it's in large parts a legal matter Apr 01 20:34:02 okdamn: You mean the publicly displayed name? Apr 01 20:34:11 TacticalJoke: yes ! Apr 01 20:34:24 the app submitter name Apr 01 20:34:42 I think that can be a pseudonym. Apr 01 20:34:43 i don't have a company but i would avoid putting real name and surname i like more nicknames :P Apr 01 20:35:09 EPG: app is free i don't think it's a legal problem if i use a nickname nope? Apr 01 20:35:15 I've seen a lot of pseudonyms there. Apr 01 20:35:22 I'm not a lawyer Apr 01 20:35:34 I don't event know in which country you are Apr 01 20:35:37 -t Apr 01 20:35:55 oh no problems i appreciated thanks Apr 01 20:36:37 using your full name likely would be ok Apr 01 20:36:47 Some people show " Developers". Apr 01 20:37:06 JakeWharton: http://pastebin.com/P3bJWKQT am I missing something? Apr 01 20:37:08 EPG: He doesn't want to use his real name. Apr 01 20:37:26 TacticalJoke, I know. Apr 01 20:37:33 IHideKeys: start programming it Apr 01 20:38:35 are there any recommended things to start with? Such as type of app, etc Apr 01 20:38:47 no Apr 01 20:38:49 just do it Apr 01 20:38:54 nike (R) Apr 01 20:39:00 IHideKeys: "hello world" probably. I'd avoid the camera and databases for starters though. Apr 01 20:39:24 you should jump right into loaders and asynctasks with references to a context Apr 01 20:39:32 along with nested fragments Apr 01 20:39:38 hello world + navigation drawer is enough, thats about 20 files :) Apr 01 20:39:47 yes. nested fragments with CameraLoaderContentProviders :) Apr 01 20:39:57 navigation drawer? Apr 01 20:40:19 EPG: well you know sometimes you have a team with friends, you use to buy a domain like heyweareateam.com so you would avoid putting the name of a single component as owner of the app Apr 01 20:40:21 okdamn, if you choose a pseudonym I suggest that you thoroughly research that it doesn't infringe any trademark etc. Apr 01 20:40:26 JakeWharton: also I don't get a retrofit error thrown for this in the restadapter call Apr 01 20:40:35 *nevermind scratch that Apr 01 20:40:36 i do Apr 01 20:40:39 EPG: sure thanks ;) Apr 01 20:41:12 okdamn, I've seen an app with multiple full names as the developer name Apr 01 20:41:18 it's just tht Apple sucks in that way if you a team of developers you need to create a real company to submit apps with your team name Apr 01 20:41:30 EPG: so google rocks, they clever Apr 01 20:42:25 oh yeah the DUNS number, thats a freaking scam Apr 01 20:42:30 think you and 4 persons created an app, well on Apple store you have to submit with the name of only 1 component, or build a real company paying taxes for just submitting a fkn app lol Apr 01 20:42:34 unbelievable imho Apr 01 20:42:46 For single developers, does Apple require a real person's name? Apr 01 20:42:47 g00s: exactly Apr 01 20:42:54 TacticalJoke: yes ! Apr 01 20:43:00 That sucks. Apr 01 20:43:16 TacticalJoke there may be requirements based on how they sell things though Apr 01 20:43:18 exactly Apr 01 20:43:21 they fkn cops Apr 01 20:43:25 Is there a good website for beginners? Apr 01 20:43:44 google and apple sell differently - thats why we need personal contact info on our market listing, they dont Apr 01 20:43:51 If Google ever required that, I'd just not bother (unless I was releasing a paid app). Apr 01 20:43:52 okdamn: paying taxes is unbelievable? Apr 01 20:44:47 desmin88: ahah no no it's unbelievable that you must pay taxes for submitting a free app as company where you not a company but a simple team or group of developers Apr 01 20:44:55 friends most of the times you know … Apr 01 20:44:56 ahh, free app Apr 01 20:45:21 yes, i mean i agree, when it comes to sell something it's good to know who sell it Apr 01 20:45:26 but when it's free… mehhh Apr 01 20:45:35 if you have a non personal internet site in Germany you have to put your full name, address and phone number on it Apr 01 20:45:52 memorion: what is a non-personal site? Apr 01 20:46:10 okdamn everything that's not a blog or something like that Apr 01 20:46:11 Can't you use whois-privacy services? Apr 01 20:46:26 memorion: woa didn't know about that Apr 01 20:46:28 crazy Apr 01 20:46:54 TacticalJoke: indeed, i don't understand why such infos should be public when there are registers for domains Apr 01 20:46:59 Oh, "on it". Apr 01 20:47:09 well it's required so someone has to be legally accountable for the content on the site Apr 01 20:47:30 so..what is the difference between a broadcast receiver and an event bus? Should I just default to using a bus? Apr 01 20:47:35 okdamn: A free app can still do a lot of invasive stuff Apr 01 20:47:59 memorion: but if it's for legal stuffs the legal part can ask for whois privacy datas, where is the problem? :P Apr 01 20:48:52 s73v3r: sure but well… i just mean if you build something with friends for fun, you must create a real company or you have to submit as individual (while all your friends created the app) Apr 01 20:49:30 so? Apr 01 20:49:39 Is there a good site for beginners to use? Apr 01 20:49:48 i agree giving to Apple all my infos no problems, but let me show the team name or at least all the team members who created the app :/ Apr 01 20:49:50 Or any books? Apr 01 20:49:59 in public i mean Apr 01 20:50:20 okdamn why dont you ask the apply things on #iphonedev - they will be more helpful Apr 01 20:50:23 s73v3r: so in this sick world you must pay everything :P Apr 01 20:50:25 Hide: The official guides are about as good as it gets. Apr 01 20:50:48 I think. Apr 01 20:50:57 In any case, make an app ASAP. Apr 01 20:51:14 So many people waste time reading books. Apr 01 20:51:18 ahahah Apr 01 20:51:39 What does hello world with navigation drawers do? Apr 01 20:52:08 It could do Hello World in multiple languages. Apr 01 20:52:40 ah, so a drawer with different languages? Apr 01 20:53:08 thanks guys see you around ;) Apr 01 20:53:27 I was being kinda silly, but I guess you could do that. Apr 01 20:53:40 Can I go a little off topic? Trying to wrap my mind about css during last couple or days. It is just that is new stuff for me or Android layouts are much more sane? =) Apr 01 20:56:30 Is there a guide for navigation drawers on developer.android.com? Apr 01 20:56:36 I can't seem to find one Apr 01 20:57:22 icedp: assuming you're not mixing terms: CSS has always struck me as both sometimes-very-convenient, and often-very-insane. I personally despise it, but there's no alternative. (LESS / SASS, sure, but they turn into CSS, which is the problem) Apr 01 20:57:25 Wait, why are you asking about navigation drawers? Apr 01 20:58:02 I was told to make a hello world app with navigation drawers as my first app Apr 01 20:58:11 IHideKeys, https://developer.android.com/training/implementing-navigation/nav-drawer.html Apr 01 20:58:34 I'd just make an app that launches a secondary activity. Way simpler. Apr 01 20:58:51 IHideKeys sorry, i was just kidding - forget about nav drawer Apr 01 20:59:00 Lol. Apr 01 20:59:20 ah okay Apr 01 20:59:22 For your amusement (not code related) : https://docs.google.com/document/d/1IeXXqMSJx7RfvdjXpHLG7eNqT64wSdMzmJUCtkQtzmY/edit Apr 01 20:59:25 but i was serious about not loseing your apps private keys :) Apr 01 20:59:59 I have a great little python script for keys. Keeps them safe. It's in my scripts directory Apr 01 21:00:07 Maybe we should devise a curriculum for Hide. Apr 01 21:00:42 It's called addkey : http://goo.gl/7iqJGU Apr 01 21:01:10 Does an EditText sending string to a TextView in a second activity sound good as a first app? Apr 01 21:01:21 sending a* Apr 01 21:01:27 nice idea Apr 01 21:01:29 Yeah, Hide. Apr 01 21:01:34 groxx: yeah I feel the same way so far, some features of CSS seems awesome but more often then not I see Android xmls as a bliss Apr 01 21:02:36 IHideKeys, as a special bonus, after you do Activity A sends a string to B, make B send back a string to A Apr 01 21:03:10 okay :P Apr 01 21:03:43 not kidding... it's different. Apr 01 21:04:08 sending a string, and getting back a string is not the same thing Apr 01 21:05:02 icedp: the cascade seems nice in principle, but it really (really, really, _really_) fails to scale to larger, more complex websites. and e.g. components (which can control the cascade) have taken / are taking _way_ too long to appear and be adopted, so the only sanity-enforcer effectively doesn't exist Apr 01 21:06:14 I was just going to see if an intent existed with a message from Activity B and if so then create a new intent for A Apr 01 21:06:23 from Activity A* Apr 01 21:06:54 icedp: plus it's a massive clusterfuck of "Adobe wanted this, so we added it to the spec. Apple wanted that." => very very little overall organization, _and_ there's no way to polyfill it with JS, so you're stuck with whatever is built into the browser (which you can't reliably query for!) Apr 01 21:07:09 see, that's not the same. Your backstack would have A->B->A on it. That's not what you want Apr 01 21:07:15 icedp: personally, I think the "can't polyfill" is a fatal flaw they should've done away with on day 1. Apr 01 21:10:11 groxx: polyfill = support library?) Apr 01 21:11:06 Hide: Just do the activity launch first. Apr 01 21:11:31 Simplicity FTW. Apr 01 21:11:43 As well as incremental learning. Apr 01 21:12:03 icedp: basically. an enormous amount of Javascript can be bug-patched / upgraded to newer capabilities like "[1,2,3].forEach()" (though not the syntax). CSS is untouchable and can't be replicated by javascript, period, because browsers don't expose enough information (like font metrics). Apr 01 21:12:10 hey, I said AFTER he did the first task :) You have to keep reaching for the stars! :D Apr 01 21:12:34 Yeah, I agree. Was responding to his latest comment. :D Apr 01 21:12:43 crash day in progress :/, first some obscurity with probably samsung and appcompat mode, then I was trying to run app in emulator - endup with "emulator: ERROR: x86 emulation currently requires hardware acceleration!" - HAXM was installed. Than blue dath and AS stopped working. Apr 01 21:13:01 you da man TacticalJoke :) Apr 01 21:13:10 Now I am back where I was few hours ago - "emulator: ERROR: x86 emulation currently requires hardware acceleration!" Apr 01 21:13:20 Btw, for the record, I call you tac in my head :) Apr 01 21:13:31 but tac won't get highlighted :D Apr 01 21:14:02 icedp: polyfill generally = _invisible_ support library. patch the runtime rather than using Utils.forEach(array), because there are fairly-official "correct" ways to do them: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach Apr 01 21:14:51 :D Apr 01 21:14:53 Bbiab. Apr 01 21:18:28 how is a broadcast receiver different than event bus? Apr 01 21:18:49 heresjohnnee: it's intended for other applications to contact your application. so several thousand times more inefficient, roughly. Apr 01 21:19:27 otherwise, it's basically an event bus for the applications / the system to communicate with other applications / the system Apr 01 21:19:28 the broadcast receiver is? Apr 01 21:19:55 groxx: yeah this seems fragmented.. on the another side Android is fragmented too (and I don't mean screens).. I'd love to see some correspondence table between CSS and Android layouts )) If I'm understood correctly there is no analogue to RelativeLayout at all? Apr 01 21:20:47 heresjohnnee: yeah. that's why they have to be specified in your manifest - if you broadcast something, it gets serialized, sent to the OS, the OS looks at where it should go, and sends it to / starts up your application, which de-serializes it and handles it. Apr 01 21:21:05 heresjohnnee: contrast that with an event bus: you give it an object, it loops over receivers, and gives the object to them. Apr 01 21:21:34 so it is just a higher level event bus in a sense (I mean, the event bus could be "in-app" communication, and the broadcast receiver is meant for "outside of app" communication). Is that right? Apr 01 21:21:41 I would say that the big difference is that one is used inside an app, the other is to communicate with apps. Apr 01 21:21:45 heresjohnnee: pretty much exactly Apr 01 21:21:53 heresjohnnee, I guess you got it :D Apr 01 21:22:17 cool, thx guys Apr 01 21:22:28 There's also: http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html Apr 01 21:22:36 for purely "local" broadcasts Apr 01 21:22:46 shhhh Apr 01 21:22:50 heresjohnnee: there are quite a few examples of people using BroadcastReceiver for in-app events - it _works_, but it's massively unnecessary and more work than almost anything else. the only real exception is if you want to use an Alarm or Notification to send a broadcast to wake up your app (in which case you use a PendingIntent.getBroadcast) Apr 01 21:22:51 on thing at a time! Apr 01 21:22:52 :D Apr 01 21:23:24 interesting. thx Apr 01 21:23:59 yeah. IMO, stay away from LBM unless you _already_ have a broadcast receiver, and you want to use it internally for code-reuse purposes or something. Apr 01 21:24:15 Think I got the first one Apr 01 21:24:22 also if you want to have 1+ processes in your app, IIRC buses usually don't work Apr 01 21:24:42 not between the processes, no Apr 01 21:25:07 true. but then you'd probably use AIDL or something more efficient. Apr 01 21:25:10 yeah, so BroadcastReceiver (not Local) works Apr 01 21:27:17 icedp: re relativelayout in CSS: nope. technically somewhat with CSS variables, but basically no. that at least you can do semi-inefficiently in JS. Apr 01 21:27:56 icedp: that said, CSS is quite a lot more technically-capable than Android's built-in widget attributes, it just takes more containers / markup to achieve it in some cases. Apr 01 21:28:23 Mike how would you send a message back? Apr 01 21:29:15 IHideKeys: setResult Apr 01 21:30:26 what's a resultcode? Apr 01 21:31:31 "The integer result code returned by the child activity through its setResult()." Apr 01 21:31:53 IHideKeys: success / fail, basically. note that it's different than requestcode, which is used to tell which request the response is for. Apr 01 21:31:56 IHideKeys, you have to write my full name if you want me to get notified :) Apr 01 21:32:16 didn't want to hl :D Apr 01 21:32:29 smart :) Apr 01 21:32:30 yeah like write his full name Mike Wallace Dev Apr 01 21:32:31 :P Apr 01 21:32:33 :D Apr 01 21:32:47 No: Michael John Joseph Wallace :D Apr 01 21:32:50 IHideKeys: usually Activity.RESULT_OK or RESULT_CANCELLED. you can use setResult(code, intent) or smth to send String or much more in intent back Apr 01 21:34:00 so I would need to use the intent again to send back a message? Apr 01 21:34:40 IHideKeys: when you setResult() you can send a Bundle of data Apr 01 21:34:53 IHideKeys: setResult(RESULT_CODE, data) Apr 01 21:36:53 IHideKeys: Oh right it is an Intent not a Bundle Apr 01 21:39:26 groxx: css: I believe you, just don't it see it yet (only starting) Apr 01 21:41:37 icedp: it's a huge space, that's why :) e.g. Adobe (IIRC) has pushed for some neat things, like specifying multiple containers for content to flow between as needed: http://www.inserthtml.com/2012/10/css3-regions-flow/ Apr 01 21:41:59 icedp: ah, much better article: http://www.html5rocks.com/en/tutorials/regions/adobe/ Apr 01 21:46:58 I can't figure out this sending a message back thing Apr 01 21:47:21 Skipped 285 frames! The application may be doing too much work on its main thread. Apr 01 21:48:34 do it on a separate thread IHideKeys Apr 01 21:48:45 asynctask Apr 01 21:49:38 since IHideKeys is newby, we shall not damage his/her mind with asynctask Apr 01 21:49:51 no no, something is not right Apr 01 21:50:16 I don't even know if you can send that in another thread... should be the main thread Apr 01 21:50:47 if he's skipping that many frames.. Apr 01 21:50:54 groxx: thanks, wow, regions and exclusions are clever Apr 01 21:51:10 if he's skipping that many frames, something isn't done correctly Apr 01 21:51:17 intent.putExtra(TAG,"Thanks for the message!"); Apr 01 21:51:17 setResult(Activity.RESULT_OK,intent); Apr 01 21:51:17 startActivity(intent); Apr 01 21:51:18 I'm not even sure what IHideKeys is trying to do actually Apr 01 21:51:32 send a message back to Activity A from Activity B Apr 01 21:51:47 Why not just "finish();"? Apr 01 21:51:53 IHideKeys, you're not starting a new activity, you're quitting this one Apr 01 21:52:02 and sending back, not forward :) Apr 01 21:52:04 using startActivityForResult? Apr 01 21:52:20 icedp: yeah, I do _like_ a lot of things that are added, it just bothers me that there are all these isolated features that have to interact with everything else, there's no way to know if the browser supports the feature, and you can't duplicate that feature with javascript (like, at all) Apr 01 21:52:35 just call finish after getting the result..? Apr 01 21:53:15 how do I send a message back to Activity A though? Apr 01 21:53:24 "Finish" feels so weird as a transitive verb. Apr 01 21:53:25 Finish him! Apr 01 21:53:31 IHideKeys: that's code from activity B? you don't need to startActivity Apr 01 21:53:35 does anyone have experience using loopj async http library? im seeing some odd behavior Apr 01 21:53:39 IHideKeys: Via setResult. Apr 01 21:53:50 IHideKeys: just remove this line Apr 01 21:55:00 hey TacticalJoke - just got my users to test the scaling image thing I was having trouble with yesteday -it seems that scaletype CenterInside didn't fix it Apr 01 21:55:46 Are you able to reproduce the problem? Apr 01 21:55:59 icedp which line? Apr 01 21:56:02 not on my phone - it only occurs with small resolutions Apr 01 21:56:11 IHideKeys: startActivity in activity B code Apr 01 21:56:27 maybe I could test it in the emulator, but I'm not sure my app will run in there anymore Apr 01 21:56:56 how would the code in Activity A look? Apr 01 21:57:02 IHideKeys: onActivityResult Apr 01 21:57:07 oh Apr 01 21:57:19 I was thinking about this silly hax-y fix: get display metrics, get the ratio of the user's screen to my screen and multiply my scaling numbers by that ratio... get what I'm saying? seems awkward tho Apr 01 21:57:32 satt: scaleType should be sufficient. Apr 01 21:57:45 I'm making a reddit app that has to deal with all kinds of image sizes. scaleType has never let me down. Apr 01 21:58:12 scaleType's mah dawg. Apr 01 21:58:23 hmm I don't know why it's not working then Apr 01 21:59:07 I am setting the scale for x and y tho...think that would make a difference? I'm setting it after I set scaletype, maybe if i set scaletype after? Apr 01 21:59:09 Have you read this? http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Apr 01 21:59:22 What do you mean by "setting the scale"? Apr 01 22:00:58 sorry my network is being a dick today for some reason. Any ideas why my scaletype wouldn't work? Apr 01 22:01:14 http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Apr 01 22:01:25 I am using a gif library to display too...maybe that's why Apr 01 22:01:44 Which one? Apr 01 22:01:44 yeah man, I'm using center_inside Apr 01 22:02:13 https://github.com/koral--/android-gif-drawable Apr 01 22:03:02 here's what it looks like normally Apr 01 22:03:03 http://www.mattsaunders.info/dexterous/img/pokeDetailsCharLight.png Apr 01 22:03:29 here's what my users are reporting: Apr 01 22:03:30 http://i.imgur.com/2J0sIXL.jpg Apr 01 22:03:58 scaling code: Apr 01 22:04:00 pokeSprite.setScaleType(ImageView.ScaleType.CENTER_INSIDE); Apr 01 22:04:01 pokeSprite.setScaleX(3.5f); pokeSprite.setScaleY(3.5f); Apr 01 22:06:08 I don't understand why you're using the last two statements. Apr 01 22:06:23 images are too small otherwise Apr 01 22:06:42 gif dimens are pretty small Apr 01 22:06:48 It seems to me that you should be using scaleType alone. Apr 01 22:06:52 probably means you want the view to be bigger / a fixed size, so the gif grows to fill it? Apr 01 22:07:14 groxx - i don't want them too fill it, cause some of the gifs are different sizes Apr 01 22:07:29 and i want to maintain the differences, since diff pokes are diff sizes Apr 01 22:07:33 satt: ah. gotcha Apr 01 22:07:53 TacticalJoke, I think if i do that, they display super tiny on higher res phones Apr 01 22:08:01 satt: I'd guess that the screenshots show what's happening when you have different screen densities Apr 01 22:08:21 groxx - yes exactly. I need to fix it tho, Apr 01 22:09:02 satt: How about making the ImageView a certain size in dp and using the default scaleType (meaning that the image will grow or shrink as needed). Apr 01 22:09:05 i was thinking, take the screen dimens of the users' phone and get the ratio of that to my phone (1080p), then multiply the scale value by that to get an appropriate scale Apr 01 22:09:39 hmmm TacticalJoke - wouldn't that make them all grow to be the same size? Apr 01 22:10:15 like say one gif was 25x50px, and another was 130x200px, they'd be the same size on screen? Apr 01 22:11:05 Yeah, they'd be the same in certain cases. Apr 01 22:13:14 I'd like to avoid that if at all possible, maintain the differences in size. it'd look prety weird without it Apr 01 22:13:58 what i need is density independent scaling :( Apr 01 22:15:13 satt what you want to do is have the largest image and then scale it down Apr 01 22:15:26 Also play store will probably take down your app because Pokemon Apr 01 22:15:40 yup it's not going on the play store probably Apr 01 22:15:55 hey ive got a question about threadpoolexecutor.. im trying to find a good way to only have X runnables run at a time -- but not have the next (X+1) runnable get rejected... e.g. a policy that doesn't dump a job, just holds it and waits until there is a free thread... but i cant find a good example. anyone have a suggestion? Apr 01 22:15:59 I made it mostly for mysef, and as a challenge Apr 01 22:17:19 jobelenus i thought thats what the blockingQueue in threadpoolexec does -- hold pending tasks Apr 01 22:17:27 satt: what about making ImageView small and enabling adjustViewBounds Apr 01 22:17:51 If you use Executors.newFixedThreadPool(int), I think you get a LinkedBlockingQueue one. Apr 01 22:18:13 g00s: yes, it holds tasks.. but the pool will spawn up to Y threads... and if all the threads are full there are policies to what to do next... but none of the policies are "just wait" its either "run it on your thread" or some variation of "drop that job" Apr 01 22:18:26 TacticalJoke: ill look at LinkedBlockingQueue Apr 01 22:18:39 hm, that doesn't sound right Apr 01 22:18:52 Is there a way to change the color of a button while keeping the default pressed, etc. colors Apr 01 22:18:56 Here it is: https://android.googlesource.com/platform/libcore/+/master/luni/src/main/java/java/util/concurrent/Executors.java#45 Apr 01 22:19:05 g00s: i agree.. it sounds like an odd implementation, but thats what all the docs state Apr 01 22:19:16 "New tasks submitted in method execute(java.lang.Runnable) will be rejected when the Executor has been shut down, and also when the Executor uses finite bounds for both maximum threads and work queue capacity, and is saturated." Apr 01 22:19:39 "Using an unbounded queue (for example a LinkedBlockingQueue without a predefined capacity) will cause new tasks to wait in the queue when all corePoolSize threads are busy." Apr 01 22:19:44 icedp - hmm havn't looked at that. would that deal with scaling up? I don't have issues with aspect ratio Apr 01 22:19:56 http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html Apr 01 22:20:15 jobelenus it says right there: "If additional tasks are submitted when all threads are active, they will wait in the queue until a thread is available" Apr 01 22:20:17 is there any wat to see all the formatting on the play store descrption page? Apr 01 22:20:20 *way Apr 01 22:20:39 Afzal: yes, based on the queue choice (the default isnt Linked) Apr 01 22:20:42 icedp - the image view currently fills the parent width and takes up half the height Apr 01 22:20:56 jobelenus: Executors.newFixedThreadPool is ideal for this kinda thing, BTW. Apr 01 22:21:01 Unless you need more flexibility. Apr 01 22:21:08 ^^ what he said Apr 01 22:21:11 im literally watching my BlockingQueue blow my simulator memory limits b/c its trying to do everything at once Apr 01 22:21:14 http://pastebin.com/1S7Mf45z Apr 01 22:21:27 so lost right now Apr 01 22:21:39 IHideKeys: It's 'data', not 'getIntent()'. Apr 01 22:21:46 wait - what if I set maxHeight and maxWidth on the image to screen width and view height.. Apr 01 22:21:54 satt: try setting minWidth, maxHeight etc Apr 01 22:22:07 satt: just thought about it) Apr 01 22:22:18 icedp - nice, same idea :) I'll give that a shot Apr 01 22:22:18 Also, you should probably query 'requestCode'. Apr 01 22:22:35 anyone got a phone with low res? Apr 01 22:22:41 IHideKeys: getIntent() gets the intent that _originally_ launched your current activity. use the intent in the onActivityResult arguments. Apr 01 22:23:13 satt: try an emulator Apr 01 22:23:43 satt: yes, but why not emulator Apr 01 22:23:45 How do I query requestCode? Apr 01 22:23:57 if (requestCode == WHATEVER) { doStuff(); } Apr 01 22:24:13 It's the code you specified in startActivityForResult. Apr 01 22:24:13 also, when using startActivityForResult what is the requestCode Apr 01 22:24:16 Has anyone successfully used a camera library for custom camera implementations? I was using CWAC-CameraFragment but ran into some deal breakers Apr 01 22:24:37 i'll try the emulator, for some reason i think it wouldn't load my app properly before Apr 01 22:24:53 g1bbs: that pretty much describes the camera, imo. never done much with libs beyond reading them though, since they never do what I need Apr 01 22:24:57 IHideKeys: It's for you to define. Apr 01 22:25:39 groxx: ugh yep looks like I get to write from scratch. Can't wait for the if(Samsung) else ??? Apr 01 22:25:52 All secondary activities that are "started for result" will call back to onActivityResult. The requestCode system is a means to disambiguate. Apr 01 22:26:01 g1bbs: what're the problems, btw? I might know of some of them Apr 01 22:26:08 so Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(RSTP-streaming-link), "video/*"); startActivity(intent); Apr 01 22:26:10 crashes ? Apr 01 22:26:19 does the native media player not support rstp? Apr 01 22:26:26 groxx do you have comprehensive logs of this channel by any chance, spanning the past week Apr 01 22:26:51 i lost a link i posted here :| Apr 01 22:26:55 lol Apr 01 22:26:57 groxx: Well, shutter too slow on some devices, I'd rather use screen res images from the onFrame callback - He doesn't expose that API Apr 01 22:27:04 i think leeds might Apr 01 22:27:28 g00s: This is scary: http://logs.nslu2-linux.org/livelogs/android-dev/ Apr 01 22:27:36 groxx: also touch to focus + I'm using it in a FragmentViewPager which it doesn't seem to like when switching between cameras Apr 01 22:27:41 I mean, yeah, we have some "if (samsung)" checks, as well as lists of devices to use / avoid setRecordingHint. which is stupid and annoying. Apr 01 22:27:45 TacticalJoke lol thanks :D Apr 01 22:27:45 Not sure if comprehensive, though. Apr 01 22:27:56 g00s: not comprehensive, no. just the ones where I'm online. Apr 01 22:28:19 groxx: I don't suppose you are looking to opensource? :P Apr 01 22:28:45 g1bbs: alas no :| it's not good code. Apr 01 22:28:54 does anybody have problems with AS logcat windows? It stops working all the time. adb logcat works find though Apr 01 22:29:00 My username appears in recent logs *so* much. lol Apr 01 22:29:03 groxx: This is actually the second time I've done this but I have the same problem with my first codebase haha Apr 01 22:29:10 It's like 50% of the screen when I Ctrl+F. Apr 01 22:29:12 icedp yeah its crap Apr 01 22:29:23 icedp every time I press the clear button, a quick fix is to just disconnect the device and reconnect Apr 01 22:29:31 groxx: Show me someone writing good clean code for an Android camera implementation and I'll show you a liar Apr 01 22:29:34 g1bbs: re shutter: yeah, it can be surprisingly slow. if you need speed, the only option is to capture frames from the preview, or look at OEM APIs to see if they have a "fast mode" or something. Apr 01 22:29:46 g1bbs: a valid point :) Apr 01 22:29:59 I feel like there's a pattern every year. Near june/july till November/Dec, all tools seem to work nicely Apr 01 22:30:06 g1bbs: I haven't tried Camera2 yet though, maybe it's better? Apr 01 22:30:08 January to May, everything goes to shit Apr 01 22:30:42 groxx: My guess is just more features to break but who knows! Anyway until I can drop support for pre-L I'm SOL on that front Apr 01 22:31:37 now it's getting the result message but it's not going to the second activity Apr 01 22:31:44 I hate when I have to do a huge refactoring to cleanly fix a bug. Apr 01 22:31:45 or if it is it's doing it very very briefly Apr 01 22:31:54 g1bbs: heh, yeah :) I'm hoping that the more granular API will imply more granular conformance tests, because the hardware on tons of devices is absolute shit. supported camera sizes that don't actually work, or video sizes that capture green streaks / solid green video, audio-only output from a video-only request... Apr 01 22:31:56 Q: Can an app have more than one Canvas? Thanks. Apr 01 22:32:16 gekoX: tons. every view has one. Apr 01 22:32:20 IHideKeys: onActivityResult is called *after* the second activity finishes. Apr 01 22:32:37 IHideKeys: Remember when I said "Just launch the second activity to start with"? Apr 01 22:32:44 why didn't google give strings to their )))(((ing media player errors Apr 01 22:32:46 Implying "Worry about getting results from it later". Apr 01 22:32:57 groxx: how can I get a reference to the Canvas of a View? there doesn't seem to be a getCanvas() Apr 01 22:32:57 lasserix: because quite a few of them are OEM-specific Apr 01 22:32:59 I did launch it to start with :D Apr 01 22:33:06 gekoX: it only exists during onDraw Apr 01 22:33:11 :D Apr 01 22:33:17 gekoX: though you can also make your own, if you want to do custom drawing to a bitmap or something Apr 01 22:33:23 ahh i guess for default codes Apr 01 22:33:28 Then why are you sending messages giving the impression that you're trying to launch it from onActivityResult. Apr 01 22:33:39 groxx: thanks for the details. Apr 01 22:33:56 gekoX: or, maybe it exists outside that, though it shouldn't be used. override onDraw / make a new Canvas(mutable_bitmap). Apr 01 22:34:19 I'm attempting to receive a message as a result from Activity B Apr 01 22:34:44 keeping a canvas outside onDraw would be hopelessly memory inefficient Apr 01 22:34:49 http://pastebin.com/QA4gwPxw Apr 01 22:34:58 there's my onCreate in the second Activity Apr 01 22:35:35 groxx: i am calling this library that takes a Canvas as parameter and draws on it a custom image. I want to display the image in a View (like an ImageView) ... but I don't know how to pass a reference tothe ImageView Canvas to the library Apr 01 22:36:15 gekoX: you'll need to make a custom view, though it can extend ImageView. then you override onDraw, which will give you a canvas. Apr 01 22:36:20 weren't you just told to override onDraw? Apr 01 22:36:24 The first activity's onActivityResult callback will have the Intent passed to it (via 'data'). Apr 01 22:36:26 gekoX: http://developer.android.com/training/custom-views/index.html Apr 01 22:36:32 groxx: thank you. Apr 01 22:36:49 gekoX: you're probably more interested in the "custom drawing" section, though the whole thing may be useful Apr 01 22:37:49 Tac but the second activity isn't even displaying Apr 01 22:38:00 IHideKeys: that's because you call finish() Apr 01 22:40:09 is there another way to call onActivityResult without calling finish() in the second activity? Apr 01 22:41:01 Just remove 'finish()'. onActivityResult should still be called when the users Backs out of the secondary activity. Apr 01 22:41:19 Or call finish from a Button or something. Apr 01 22:41:22 finish()* Apr 01 22:41:54 tralamazza did you ever resolve that BLE long write problem? Apr 01 22:44:01 Do i necessarily need to add headers when trying to play rstp streams? Apr 01 22:46:46 Anyone know where i can get a hold of openrstp? Apr 01 22:46:51 * a binary Apr 01 22:48:12 oh yuck Apr 01 22:48:16 ran out of space on my ssd Apr 01 22:51:52 It feels so wrong catching OutOfMemoryError. But what can you do. Apr 01 22:52:37 can't find what's taking up so much space Apr 01 22:52:48 IHideKeys mac or windows? Apr 01 22:52:52 windows Apr 01 22:53:12 IHideKeys use WinDirStat Apr 01 22:55:46 oh a lot of 4k videos Apr 01 22:55:53 ah Apr 01 22:55:59 time to move them to backup Apr 01 22:56:00 :p Apr 01 22:56:03 :D Apr 01 23:02:34 TacticalJoke why would you catch an OOM ? Apr 01 23:03:09 last i recall "don't catch descendants of Java.lang.error Apr 01 23:03:57 It's possible to get it with BitmapFactory.decodeByteArray, for example. There seems to be no way to guarantee that you can avoid this. Apr 01 23:04:19 what can you do if you catch it anyhow ? Apr 01 23:04:47 You can actually try again but with more down-sampling. Or you can just show a WebView or something. :D Apr 01 23:04:50 oh well i probably don't know what i'm talking about Apr 01 23:04:52 Scale it down, display an error drawable, not die Apr 01 23:05:30 Right now I'm just deferring to WebView, but in the future I might try again at least once. Apr 01 23:07:46 Same goes with Movie.decodeByteArray (though I'm using Movie only temporarily). Apr 01 23:09:00 It has a bad rep (and it seems to use a lot of memory). Having said that, I'm kinda surprised by how reliable it is. Apr 01 23:12:18 hm, designing your analytics schema around the category/action/value things seems like an art; wish i ould find a good book on this Apr 01 23:13:04 TacticalJoke any luck creating that curriculum? :D Apr 01 23:13:08 finished first app Apr 01 23:13:09 still not sure i need tagManager Apr 01 23:14:59 IHideKeys: Nice. :D Apr 01 23:15:36 IHideKeys: I'm guessing you're not new to programming or the Java language. Apr 01 23:15:43 device was too big on this screen, back button wasn't visible Apr 01 23:15:52 I've taken an introductory Java course Apr 01 23:16:00 groxx any opinion of Google Analytics vs Fabric/Answers ? Apr 01 23:16:07 If you're new-ish to Java, a calculator could be a good second app. Apr 01 23:16:33 Though hopefully a simple one. Apr 01 23:16:47 g00s: just that Answers is pretty much useless. Apr 01 23:16:48 Or maybe something relating to ListView. Apr 01 23:16:48 TextView and several buttons? Apr 01 23:16:57 tells you DAU, not much more. Apr 01 23:16:59 groxx lol awesome Apr 01 23:17:05 How about an app that enables users to add items to a list and then picks one at random. Apr 01 23:17:07 thanks :D Apr 01 23:17:18 And the app tells the user "You have to do this thing I just picked for you". Apr 01 23:17:42 g00s: http://cl.ly/image/2y3q3l3F1h3X in case you missed it earlier :) that's literally everything. Apr 01 23:18:01 groxx ah ok, yeah we were talking about crashlytics. Apr 01 23:18:13 and ga. and that i guess :) Apr 01 23:18:29 g00s: fabric == crashlytics Apr 01 23:18:37 well, plus twitter + mopub ads Apr 01 23:18:53 + answers, digits, etc Apr 01 23:19:09 ah, right, that's the confusing part. sorry. Crashlytics introduced Answers. Apr 01 23:19:13 i still don't understand how twitter is staying in business, so i'll pass Apr 01 23:19:39 Crashlytics also does their beta thing (which is actually pretty nice, as a user. dunno re dev.) Apr 01 23:20:38 so "fabric" == Crashlytics (which also does Answers and Beta) + Twitter login (which also does Digits) + Mopub Apr 01 23:21:16 I' Apr 01 23:21:20 I'll work on it in a bit* Apr 01 23:22:04 Also, would you recommend reading the developer.android.com Getting Started guide? Apr 01 23:22:12 of course Apr 01 23:22:12 I would :) Apr 01 23:22:43 IHideKeys: I'd recommend it more than most other things you could read, yeah. Apr 01 23:23:04 nobody really covers the basics very well (outside of d.android.com and some books) Apr 01 23:23:19 should I read it all at once or practice the stuff it teaches as I read it? Apr 01 23:24:02 I'd say the latter. Apr 01 23:24:22 I think *doing* is more important than reading with Android. Apr 01 23:24:24 Generally. Apr 01 23:24:45 IHideKeys: I lean towards saying that the essentials (which are worth reading _very soon_, at least) are the first "getting started" tutorial (the rest are a bit less important, though useful), and the API guide -> intro -> app fundamentals. Apr 01 23:25:10 beyond that, grab the tutorials / guides when you think you may need something they cover, they're still better than most online tutorials Apr 01 23:28:25 wow, reto's new android book won't be out until nov Apr 01 23:29:50 reto? Apr 01 23:31:51 reto meier Apr 01 23:32:30 ah. how are his? I think I looked through one, once, briefly :| Apr 01 23:33:05 only ones i liked were his and big nerd Apr 01 23:33:34 over time apress ^ packt flooded the marker with bad topical android books, but those 2 are good. and dave smiths looks good too Apr 01 23:34:05 any suggestions on an algorithm to force certain aspect ratios from getsupportedpreviewsizes and getsupportedpicturesizes? Apr 01 23:34:15 anyone know of a library to allow users to enter code with syntax into a edit text Apr 01 23:34:25 like choosing the highest resolution only for 4:3 aspect ratios… Apr 01 23:35:29 DadFoundMy: hm. there are quite a few web ones that would work in a webview.... not sure for native though :| Apr 01 23:37:44 DadFoundMy: you could see what the github app does, it has a decent code-viewer: https://github.com/github/android Apr 01 23:38:47 DadFoundMy: Just curious -- why do you want to do this? Apr 01 23:38:49 groxx: right now i am thinking about using google-code-prettify to generate HTML and then using HTML.fromHTML Apr 01 23:39:07 TacticalJoke: me and a buddy are creating a new app that will be using it Apr 01 23:39:43 it's going to have users enter short code segments so it would be nice to have highlighting Apr 01 23:40:49 DadFoundMy: hm, might work. you can specify a TagHandler and parse things yourself if necessary, though I don't know how that fits in with known tags with unknown attributes. Apr 01 23:42:26 another concern of mine is the actual input. I think I might have to have users download hzackerkeyboard Apr 01 23:44:40 I'm reading the docs on ListViews and ArrayAdapters because I want to make a list of items in a basic app. Is this the correct approach for making a basic navigation page (i.e. the list items will take the user to different activities in the app)? Or is there something less dynamic (the list options aren't going to change)? Apr 01 23:45:28 HenriettaSalt: LinearLayout might be what you want Apr 01 23:46:04 groxx: Thanks, I'll check it out. Apr 01 23:55:35 wtf. anyone who has tried GridLayoutManager with a recyclerview: it seems to be calculating my span size wrong. I set 4 spans, and it displays 2. just started doing this, no clue why :| it's definitely not getting set back to 2, so I'm just boggled. Apr 01 23:56:33 ok, so it's showing me _half_ the spans. if I set 6, I get 3. but only in vertical mode, in horizontal it shows the right number Apr 01 23:59:30 :'( ok, that was worthy of a http://www.facebeautiful.net/wp-content/uploads/2012/04/Epic-Face-Palm.jpg Apr 02 00:00:20 guys, how can make the keyboard (called by an edittext) hide when touch on other area of a layout? Apr 02 00:00:39 abara: http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard Apr 02 00:03:38 groxx: ok, but it's hard to apply this solution because i have 30 widgets (switches, edittext, checkboxes) :( there any other way without having to use edittext reference? Apr 02 00:04:50 abara: you don't need the edittext itself, just the window token. any view (assuming you're not building a multi-window app) will have the same window token. Apr 02 00:05:14 so just use any_other_view.getWindowToken() instead Apr 02 00:05:30 groxx: ok. Apr 02 00:05:50 thanks :) Apr 02 00:34:59 you know you're f--cked doing android dev when you got to use wireshark to sniff headers Apr 02 00:35:56 lasserix: lol Apr 02 00:36:34 lasserix: I've been meaning to try out Stetho, which lets you view network traffic in chrome's debugger. and personally I proxy everything through a local mitmproxy when I want to view traffic. Apr 02 00:40:23 icedp - you around? Apr 02 00:41:10 what's the ideal/simplest way to get an onClick/Touch animation on a recyclerview item? Apr 02 00:43:23 satt: yep why? Apr 02 00:43:47 you were helping me earlier with my image scaling, i think i found a solution Apr 02 00:44:13 DisplayMetrics metrics = PokeDetailsTabs.con.getResources().getDisplayMetrics(); Apr 02 00:44:13 int width = metrics.widthPixels; Apr 02 00:44:13 float displayRatio = (float) width / 1080f; Apr 02 00:44:13 float scaleFactor = 3.5f * displayRatio; Apr 02 00:44:13 pokeSprite.setScaleType(ImageView.ScaleType.CENTER); Apr 02 00:44:13 pokeSprite.setScaleX(scaleFactor); pokeSprite.setScaleY(scaleFactor); Apr 02 00:44:28 satt: pastebin please, next time Apr 02 00:44:35 groxx - my bad Apr 02 00:45:02 anyways, it feels hacky as all hell, but it works Apr 02 00:47:29 hi Apr 02 00:47:54 i have done some things to the app i am doing thing Apr 02 00:47:56 satt: hmmm... so you want your scaling to depend on resolution, not physical size? Apr 02 00:48:20 can somebody look over the code for me in a few minutes after i am done Apr 02 00:49:07 why not just float scaleFactor = 3.5f * width / 1080f ? Apr 02 00:49:19 icedp - hmm I'm not entirely sure I guess. maybe physical size would be more ideal... Apr 02 00:50:00 myke - yeah I'll change it to that, i was printing the values for debug Apr 02 00:50:21 satt: :\ I suspect you're just thinking about display density wrongly, tbh. have you looked through e.g. http://developer.android.com/guide/practices/screens_support.html ? Apr 02 00:50:22 satt: {min,max}{Width,Height} didn't do the trick? Apr 02 00:50:47 would somebody help me look over the code after i finish in a few minutes Apr 02 00:50:48 isn't this the hole point of using dp instead of pixels? Apr 02 00:50:53 satt: pretty often the only thing you should be multiplying by is the display density (+/- some other constant factor) Apr 02 00:51:53 icedp - didn't seem to be working for me in the emulator, since the image files are dfferent sizes it was scaling little ones up too much Apr 02 00:52:29 groxx - i'll read through that again, but it didn't seem to say much about my use case Apr 02 00:52:34 satt could you help me Apr 02 00:52:54 joe11iu sure, whats up - link me to the code Apr 02 00:53:03 i will in a minute Apr 02 00:53:09 i am not done yet Apr 02 00:53:42 satt: yeah, it's not too concise for your purpose :\ what exactly do you want, though? typically I'd say you should just be scaling things by the density (so e.g. on a mdpi device, everything would be 1:1 with image pixels vs display pixels) Apr 02 00:54:14 satt: and in general you probably want to add an upper bound of some kind, since small devices exist, and it may e.g. push outside the bounds of the display Apr 02 00:55:20 satt: the idea was that small images remains small, but large will be scaled down to (max{Width,Height}) Apr 02 00:55:46 groxx - basically my issue is on lower density screens, the gifs are way too large. Ive got to deal with varying dimensions - so some gifs of little pokemon are like 25x50px,but then big ones are 200x300px - and I want to keep their relative scaling, so small pokemon are smaller than large ones Apr 02 00:56:23 well Apr 02 00:56:30 icedp - yeah it worked for that, but a big pokemon's gif would get scaled down to fit, making the difference in scale between small and big pokemon incorrect Apr 02 00:56:33 videoview / mediaplayer doesn't give an OPTIONS command Apr 02 00:56:35 VLC does Apr 02 00:56:42 which is why VLC rtsp stream works Apr 02 00:56:46 and mediaplayer doesn't Apr 02 00:56:51 has far as i can gather from wireshark Apr 02 00:56:54 f-ck this Apr 02 00:56:56 man! Apr 02 00:57:01 satt: em, so you want small scaled down too? Apr 02 00:57:07 yup Apr 02 00:57:26 Anyone know to to browse, read and write files in "/data/data/..." using "su" (root) ? Apr 02 00:57:27 do you have a lot of images? Apr 02 00:57:28 icedp - basically they all need to scale evenly Apr 02 00:57:38 tons, about 1450 gifs Apr 02 00:57:58 so I can't just make em all the same dimensions :( Apr 02 00:58:31 satt: by "way too large" you mean e.g. the 200x300px images * 3.5 get blown up bigger than the screen? Apr 02 00:58:39 groxx - exactly Apr 02 00:58:56 i'll link screenshots again Apr 02 00:59:00 satt: if you multiply by density, then it'll be roughly the same physical size on all devices Apr 02 00:59:56 small density screen: http://i.imgur.com/PXufCkX.jpg Apr 02 01:00:04 satt: wait you said you don't want them the same dimension Apr 02 01:00:06 higher density scren Apr 02 01:00:07 http://mattsaunders.info/dexterous/img/pokeDetailsCharLight.png Apr 02 01:00:25 satt: you can of course, but you don't want, right? Apr 02 01:00:30 AS 1.2 Beta.0 out Apr 02 01:00:31 satt: it might still get too big on some devices though - you could figure out the largest image possible, and calculate a scale value for all of them off that. so e.g. if you have 500x500 in one case, it'll be bigger than a small low density screen, so you'll want to, say, display it at 250x250px. to keep everything at the same scale, you'll need to scale Apr 02 01:00:31 down _all_ images by 1/2. Apr 02 01:00:59 icedp - i meant keep the scaling and have blank space padding them all to the same dimensions Apr 02 01:02:14 groxx - yeah that might work. how would I get the density to multiply by? and is it better than my current solution? Apr 02 01:02:42 satt: it's part of display metrics, I think Apr 02 01:02:57 cool i'll check that ot Apr 02 01:02:59 out* Apr 02 01:03:06 and it's similar but more technically correct (less hacky), might be some odd cases where it's more predictable too Apr 02 01:03:32 less hacky is always better, thanks man Apr 02 01:04:03 DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); float logicalDensity = metrics.density; Apr 02 01:04:04 satt: as far as how to display / how to calculate all that... I'm guessing the drawable works with scaletype set to matrix? Apr 02 01:04:13 According to http://stackoverflow.com/questions/6656540/android-convert-px-to-dp-video-aspect-ratio Apr 02 01:04:28 AndDev426: thanks Apr 02 01:05:08 groxx - you mean the imageview scaletype? Apr 02 01:05:24 currently set to center Apr 02 01:07:39 satt: yeah. basically, I'm thinking you can use `matrix.setRectToRect(biggestImageRect, viewRect, Matrix.ScaleType.CENTER);` and then `matrix.getValues(nine_float_array)` and then `float max_scale = nine_float_array[Matrix.MSCALE_X)`. Apr 02 01:07:58 satt: might be an easier way to accomplish that, but I've been playing with matrix a lot lately, so my mind goes there Apr 02 01:08:37 groxx - haven't checked that out much, i'll definitely take a look Apr 02 01:09:04 that would give you a scale value to fill the view with the biggest image. you probably want to floor it to an int so you get whole pixels (but not to zero), and might even want to cap it at your 3.5x that you like. Apr 02 01:11:26 satt its uploading just a minute Apr 02 01:12:06 groxx this looks good, I'll try it out and report back Apr 02 01:12:43 joe11iu cool hit me up when you're ready Apr 02 01:17:31 I have "clickable" and "focusable" set to true on my recyclerview, what else do I need to do to get it to animate when a recyclerview list item is clicked? All I want is a simple background color change of the item that is clicked Apr 02 01:18:02 t0astt: afaik you just set click / touch listeners directly on the child-views themselves Apr 02 01:18:19 t0astt - set on click listeners inside the adapter? Apr 02 01:18:51 satt, groxx: Ok. Then how do I actually make the background color change? Do I need to make a custom animation for that? Apr 02 01:18:53 or on item clicked/selected listeners on the adapter Apr 02 01:19:06 i'd probably just set background Apr 02 01:19:17 t0astt: just change color? I'd set a state-list drawable as the background Apr 02 01:19:28 and then would that handle returning the background color back to normal when the item is no longer clicked? Apr 02 01:19:40 t0astt: if you want lollipop-style expanding ripples, I gather it's a solved problem, but way more of a PITA than it should be Apr 02 01:20:01 nah, not worried about the L animations Apr 02 01:20:15 statelist drawable is probably your best bet Apr 02 01:20:30 satt i have the link Apr 02 01:20:32 but you can also just .setBackgroundColor(Color.RED); .etc Apr 02 01:20:39 joe11iu link me Apr 02 01:20:41 t0astt: yeah, you define an "" drawable, and a "plain" drawable, and the plain one will be used when it's not pressed. same is true for focused, enabled, etc. Apr 02 01:20:51 satt https://drive.google.com/file/d/0Bx1_H74foOz8eGkyQmZDR0t2WTg/view?usp=sharing Apr 02 01:21:00 ah ok Apr 02 01:21:24 t0astt: also, they're chosen from top to bottom, so put the more specific ones on top, and the plain one at the bottom of the list. Apr 02 01:21:33 haha joe11iu that's a whole project! is there something in particular you need help with/ Apr 02 01:21:46 got it groxx, thanks! Apr 02 01:21:50 http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Apr 02 01:22:04 :) Apr 02 01:23:03 satt i thought you were going to help me look at it Apr 02 01:23:30 joe11iu I will, no worries. what are you trying to do exactly though? Apr 02 01:24:09 i am trying to get an AOSP browser work on lollipop without rooting or flashing Apr 02 01:24:17 and also have material design elements Apr 02 01:24:37 hmm, when it asks for a drawable, is there a specific one I'm supposed to use for recyclerview? Apr 02 01:25:30 satt Apr 02 01:25:32 joe11iu - ambitious. what issues are you running into? Apr 02 01:25:51 it cant compile Apr 02 01:26:18 my tablet emulator wont open when i need to add a tablet screen shot to submit :/ Apr 02 01:26:41 satt: if you have many such ImageViews you may want extend it and use you own. just override onMeasure like that https://gist.github.com/mlatu/fb39189c0bad5d07cdbd (Didn't test it but should work). I like this approach more then setting setScale.() Apr 02 01:27:51 satt what should i use to compile it Apr 02 01:28:08 icedp - nice, I hadn't considered that, I'll definitely check that out :) Apr 02 01:28:30 joe11iu, android studio? I'm just getting it loaded now Apr 02 01:28:43 ok Apr 02 01:28:49 thats what i am using Apr 02 01:29:35 just checked and i am using an old version of android studio downloading the new version now Apr 02 01:30:38 that shouldn't make much of a difference. you said it wont compile, are there any obvious errors? Apr 02 01:32:09 hello any one doing 2D finger count opencv? Apr 02 01:33:48 ? Apr 02 01:34:40 Anyone know how to get the built in Android Studio screen recording working with genymotion? Apr 02 01:34:43 joe11iu: trying to compile an AOSP app using the SDK is unlikely to work Apr 02 01:35:25 joe11iu: platform apps typically have various dependencies on the actual platform, i.e. on "hidden apis" that normal apps compiled with the sdk don't have access to (sort-of..) Apr 02 01:35:36 groxx about GA "Once data is sent to Google’s server, you can’t delete it." huh Apr 02 01:35:56 JesusFreke joe11iu - yeah this doesn't look like it wants to compile. Apr 02 01:36:36 any one do 2d finger count opencv? Apr 02 01:37:35 Just hit publish on my app! Apr 02 01:37:41 how long should i expect to wait? Apr 02 01:37:54 groxx: I can't seem to get it working... here is my statelist drawable and my recyclerview code. Do you see anything wonky with that? http://pastebin.com/vJTCUzae Apr 02 01:38:04 DafFoundMy congrats man! :D What's the name? Apr 02 01:38:30 t0astt: AutoAgend, i dont think its done publishing though Apr 02 01:38:34 2-3hours probably Apr 02 01:39:02 thought bout making an app to notify when apps go live, but figured someone else already made one Apr 02 01:39:17 t0astt: remove the "state_pressed" attribute entirely from the last one, and set that background on the rows, not the recycler Apr 02 01:39:29 has anyone ver submitted to f-droid? Apr 02 01:39:31 ah, alrighty. Apr 02 01:40:23 where is f-droid Apr 02 01:40:41 VirgoSun: it's a open source repository Apr 02 01:40:55 its a modified version of the aosp broiwser Apr 02 01:41:30 joe11iu - did you get the original to compile at all? Apr 02 01:41:44 I publish to amazone, 1mobile, opera, aptoide Apr 02 01:41:46 what do you mean Apr 02 01:42:11 i trust aptoide but i dont trust 1mobile Apr 02 01:42:24 VirgoSun: i was going to publihs to amazon right after f-droid Apr 02 01:42:28 mobango suck banned my app so I banned mobango Apr 02 01:42:51 satt what do you mean Apr 02 01:42:54 so i know not to use my normal google account to submit apps, but do i need to do that for amazon? Apr 02 01:43:39 DadFoundMy you dont Apr 02 01:44:01 joe11iu - did you ever get the original, unmodified version to compile Apr 02 01:44:26 what did you say Apr 02 01:45:01 is it much download at f-droid Apr 02 01:45:32 VirgoSun - there aren't very many users of f-droid Apr 02 01:46:30 I publish it to my facebook page and social circile, you cant imagine, so much fun aha Apr 02 01:47:17 groxx: still no luck... I'm setting the background in my adapter now http://pastebin.com/NZW9mhmA Apr 02 01:47:17 VirgoSun: do you mind me asking what country your from? Apr 02 01:47:29 DadFoundMy what your app Apr 02 01:47:39 groxx: could it be the onClick I have registered to my RecyclerView that's preventing the animation from happening? Apr 02 01:47:41 VirgoSun: it's a student homework planner Apr 02 01:47:56 t0astt: you can probably .setDrawableResource(R.drawable.etc), but hm :\ Apr 02 01:47:59 DadFoundMy yeah u r welcome Apr 02 01:48:11 t0astt: possibly. it might be stealing the pressed state Apr 02 01:48:11 DadFoundMy I am vietnamese Apr 02 01:48:20 VirgoSun: ahh nice Apr 02 01:48:45 my app is about photos club delivery Apr 02 01:50:29 groxx: this is my onTouch event for the recyclerview... do you think this would be stealing the pressed state? http://pastebin.com/cR9ZMHsR Apr 02 01:51:59 my app is here Wallpaper service in amazon Apr 02 01:53:21 http://www.amazon.com/Virgo-Sun-SG-Wallpaper-service/dp/B00U6V9A3Q/ref=sr_1_1?s=mobile-apps&ie=UTF8&qid=1427939584&sr=1-1&keywords=wallpaper+service Apr 02 01:54:27 DadFoundMy how about ur Apr 02 01:54:41 t0astt: OnItemTouchListener? Apr 02 01:54:49 is anydroid 5.1.1 avalible yet Apr 02 01:54:55 ah, that does exist. never noticed. Apr 02 01:55:02 as it is avalible from android sdk manager there is a 5.1.1 listing Apr 02 01:55:15 groxx: I think you may have actually told me about OnItemTouchListener awhile ago haha Apr 02 01:55:37 t0astt: it may be intercepting touches in order to handle them itself, instead of having you add a touch listener on each item :) and that's possible, I just derp'd Apr 02 01:55:48 I may have just derp'd * Apr 02 01:57:20 arrghh.. where can I find the standard toolbal up (back) icon? Apr 02 01:59:12 groxx: should I remove that onItemTouchListener and set a touch listener on each item? Apr 02 01:59:24 icedp: here? http://developer.android.com/downloads/design/Android_Design_Icons_20131106.zip Apr 02 01:59:25 t0astt: yeah, give that a try, see if anything works :) Apr 02 02:04:38 icedp: maybe here too http://google.github.io/material-design-icons/ Apr 02 02:07:37 satt: thanks. looks good ) Apr 02 02:09:02 when running "toolbox ps" it gives output with the following headers: USER PID PPID VSIZE RSS WCHAN PC NAME Apr 02 02:09:05 example: u0_a81 27486 322 1708984 125824 ffffffff 00000000 S com.android.chrome Apr 02 02:09:13 My question is: What is "S" Apr 02 02:12:22 sad times; my froyo version of the app was 382K - not with google analytics its 7mb :( Apr 02 02:12:46 surf2b1: https://gist.github.com/mlatu/e68867f7ea0afe1a2b9b Apr 02 02:12:53 surf2b1: man ps Apr 02 02:13:05 meanwhile - google play is recommending both iron maiden and my little pony; i know my tastes are varied but ... Apr 02 02:13:27 icedp: Thank you :) Apr 02 02:13:57 So I guess the real headers are USER PID PPID VSIZE RSS WCHAN PC STATE NAME Apr 02 02:14:04 >so far i havent found mush application of PC beside information Apr 02 02:15:32 [Franklin] Apr 02 02:16:09 surf2b1: that's Android's stripped version or something Apr 02 02:18:33 groxx still there ? Apr 02 02:18:37 yep Apr 02 02:18:53 satt you still here Apr 02 02:20:08 groxx quick question, here https://developers.google.com/analytics/devguides/collection/android/v4/ . under section "1. Updating AndroidManifest.xml", do you know what this is for: If your devices are running Google Play Services, add the following meta-data tag as a child of the element: Apr 02 02:20:46 groxx could you kelp me Apr 02 02:21:29 groxx: got it! Turns out I just had to set an onClick listener in my adapter - I could still keep the onItemTouchListeners :) Apr 02 02:22:26 groxx Apr 02 02:22:32 g00s: not entirely. I'm going to guess it's so the system knows what version of the lib you have, so it can e.g. translate its responses / intents to match the API you expect. Apr 02 02:22:43 i think groxx is overwhelmed giving kelp :) Apr 02 02:23:02 groxx ok thanks Apr 02 02:23:05 so who can help me then Apr 02 02:23:11 Quick question. What's the way I should be refactoring code into a separate class? Is there a hotkey for it? Apr 02 02:23:13 in Android studio Apr 02 02:23:26 g00s: though I will point out that, if you get into an on-app-launch freeze, don't init stuff from xml, just do it in code. there has been a bug in the xml reading, and I think it has happened multiple times :| Apr 02 02:23:32 joe11iu kelp comes from the sea. also, you are trying to build aosp browser ? Apr 02 02:23:47 yes Apr 02 02:23:57 liuwenhao: personally I do ctrl-t and pick the refactoring from thre Apr 02 02:23:58 but not stock aosp browser Apr 02 02:24:00 joe11iu thats kinda OT for this channel Apr 02 02:24:12 what si OT Apr 02 02:24:15 off topic Apr 02 02:24:21 it is not stock aosp browser Apr 02 02:24:40 liuwenhao: or there's a "command" hotkey, cmd-shift-A on a mac, that lets you search for pretty much any action, and it shows the hotkey for that action. I can't remember anything, so I use that all the time :) Apr 02 02:25:00 i am trying to modify it so that it can be installed without putting it in the system folder Apr 02 02:25:10 joe11iu yeah, thats OT for here Apr 02 02:25:20 t0astt: interesting. so each view has a click listener, and you have a recyclerview onitemtouch listener? Apr 02 02:25:23 why??? Apr 02 02:25:24 thank you groxx Apr 02 02:31:35 groxx was that problem recent ? Apr 02 02:31:40 (xml config of GA) Apr 02 02:32:18 g00s: yeah, previous 6.x version I think Apr 02 02:32:28 7 probably fixes it, but now I'm paranoid :) Apr 02 02:32:45 ugh , the more google apis you use, the more headache you get Apr 02 02:35:15 g00s: hm. I'm not finding it at the moment, but yah. it's pretty nuts. Apr 02 02:46:21 groxx another Q: lets say sdk manager has play services 7.0. does that mean 7.0 has been pushed to all devices - and / or do I have to verify that the phone has the same version that i'm using as a library ? Apr 02 02:46:45 i didn't see anything like that in the GA docs, not sure if its a different kind of beast Apr 02 02:46:52 it used to be separate i think ... Apr 02 02:48:47 g00s: unfortunately I'm not sure how that works :| but 1) no, it definitely hasn't been pushed to all devices. 2) sometimes, you definitely do have to. ever seen a "x has requested gms update" style notification that takes you to the update? that's when people use the built-in error handling on gplay services, and the system-gplay is too old. Apr 02 02:49:44 g00s: 3) out of paranoia, at work we intentionally avoid the most-recent version, because we mostly expect google to use new-sdk-adopters to push people to upgrade their gms by hand. we find it a horrific user experience, so we just use a slightly older version, since it does everything we need. Apr 02 02:50:09 we haven't verified 3 though. Apr 02 02:50:32 and toss in a dash of "if we update it, we have to test it" laziness :) Apr 02 02:52:44 oh my. i wonder if this is worth it Apr 02 02:58:55 groxx what other play services do you use beside GA ? Apr 02 02:59:16 can somebody helpme get android sdk to work Apr 02 02:59:27 or to help me with android studio Apr 02 02:59:49 g00s: at worst, you can just eat the "out of date" error, and ignore the device, as if it were a non-gplay device. which isn't too hard, and it'll happen anyway. **** ENDING LOGGING AT Thu Apr 02 02:59:58 2015