**** BEGIN LOGGING AT Sat Feb 20 02:59:58 2016 Feb 20 03:16:01 RustyShackleford: dpm Feb 20 03:16:26 oops nvm Feb 20 03:21:11 Don't ping me? Feb 20 03:23:28 I feel like throwing a party every time my code Just Works. Feb 20 03:25:55 I'm trying to use an emulator, but it is very very slow. I'm on a Mac Mini and in the Run section it says "HAXM is working and emulator runs in fast virtual mode". If that's fast, I'd hate to see a slow one. It took four minutes too boot. A click on an icon might provoke a response 30 secs later. Feb 20 03:26:48 kinch: What are the specs of your machine? Feb 20 03:27:44 nothing to brag about. 2.66 Ghz Core 2 Duo, 8GB Feb 20 03:29:54 current ones are probably twice a fast. Still, that would not make the emulator much more useable. There must be something wrong. Feb 20 03:30:44 any pointers on how to build this?: https://android.googlesource.com/platform/packages/apps/DeskClock/ Feb 20 03:33:35 the cpu in the AVD manager is set to X86 so it's not because it's emulating an ARM Feb 20 03:34:58 J’s on ma feet Feb 20 03:35:00 so get like me Feb 20 03:37:03 kinch: Hmm, not sure. I wonder whether it helps to use an older image, though (such as the Nexus S). I've found that to be quite a bit faster than the Nexus 5 image. Feb 20 03:38:05 I'm on an i5 with 12GB RAM, and the emulator is fast. I'm using only 5GB RAM right now, though, with it and AS (and other stuff) open. Feb 20 03:39:56 Is 13 inch small to be working with Android Studio ? Feb 20 03:40:04 Is 13 inch MBP small to be working with Android Studio ? Feb 20 03:40:15 during install of android studio there was a question of memory usage, don't remember precisely the purpose. I chose the default of 2GB. Perhaps that was the memory allocated to the emulator Feb 20 03:40:36 suhas_sm: get a cheap external screen, your future self will thank you. Feb 20 03:40:45 hmm Feb 20 03:41:31 But I am next to a actual desk. Feb 20 03:41:37 But I am hardly next to a actual desk. Feb 20 03:42:21 when will the first parallel universe cpu be invented? Feb 20 03:43:12 lets say I don't get myself external screen, would I find the screen size small for android studio ? Feb 20 03:44:44 suhas_sm: Probably best to try a 13" screen in the store. Feb 20 03:45:06 Along with the external monitor, I will have to buy a desk and chair too :P Feb 20 03:45:07 Though that won't answer every question (unless you can somehow install Android Studio on there). Feb 20 03:45:45 Will install it on a friends MBP and check it out Feb 20 03:46:25 Personally, I would suspect that a 13" screen will be too small for programming. Feb 20 03:47:20 15 inch is damn good. But the one I use right now is provided by company I work for. it won't be with me forever Feb 20 03:48:41 You could always buy a Windows laptop at a way lower price. :D Feb 20 03:48:50 win32 sux Feb 20 03:48:51 Noooo :( Feb 20 03:48:53 15.6" Windows laptops are inexpensive. Feb 20 03:49:03 I am loving this experience now Feb 20 03:49:10 This MBP has spoilt me Feb 20 03:49:11 win32 api is antiquated Feb 20 03:49:24 shit just hasent evolved since like xp Feb 20 03:49:45 layered windows are a joke Feb 20 03:49:46 I would rather switch to linux Feb 20 03:49:57 dont even get me started on x11 Feb 20 03:50:04 makes me wanna punch nerd faces Feb 20 03:50:06 the XPS 15 is nice for 2 G's Feb 20 03:50:22 just get a chromebook everything gonna be web soon anyways Feb 20 03:50:28 hmm Feb 20 03:50:33 i run x11 - its ok Feb 20 03:50:59 Windows sucks, but so does Mac OS. And so does GNU/Linux. Feb 20 03:51:10 (And Android.) Feb 20 03:51:33 yeah, everything sucks as soon as you know it well enough Feb 20 03:51:47 I'm not sure I buy the idea that Mac OS is better than Windows. Feb 20 03:52:04 depends who you ask Feb 20 03:52:18 pointless to argue about it though Feb 20 03:52:57 i could from the standpoint that its a *nix. i'd rather run stuff on OSX if it was just osx and win32. Feb 20 03:53:07 So, I think we've decided: suhas_sm is getting a Windows laptop. Feb 20 03:53:21 :| Feb 20 03:54:40 I doubt that will ever happen now Feb 20 03:55:01 Mac has spoilt me Feb 20 03:58:26 I have 2 MacBook pro retinas on my desk Feb 20 03:58:39 I like Windows much more by far Feb 20 03:59:13 I do like Mac hardware, though. Feb 20 04:00:57 jdv79, download all of aosp, then make DeskClock, done Feb 20 04:01:28 thanks Feb 20 04:02:29 none of the aosp apps build standalone Feb 20 04:02:38 they all make use of framework internals Feb 20 04:14:34 thing i like about OS X these days is that it has some awesome apps like Affinity Designer Feb 20 04:15:17 does anyone work with android apps without android studio? Feb 20 04:16:16 iirc going the IDE-less route in the java world is a pita. Feb 20 04:22:17 jdv79: If they do, they're crazy. Feb 20 04:24:31 idk. i guess i'm old. when i use an ide i feel like i'm forced into weird mindsets i don't appreciate. Feb 20 04:25:01 like a windows admin poking around trying to find the magic incantations Feb 20 04:25:18 i get it for layout but not otherwise Feb 20 04:25:38 was just curious if anyone had any experience going sans IDE Feb 20 04:25:55 jdv79: I did it a bit, but I agree. it's a PITA Feb 20 04:26:06 * Ping_2_Ur_Pong loves an IDE, coding in vim can be productive if you're used to it, but auto-complete is beautiful, text highlighting is beautiful let's not even start on auto-indentation Feb 20 04:26:20 IDEs offer powerful code completion and code navigation. That's much harder to get with a (dumb) text editor. Feb 20 04:26:24 i don't need any of that personally  Feb 20 04:26:33 Also debugger integration. Feb 20 04:26:48 the completion i can see since the lib collections are so large Feb 20 04:26:51 You don't need code completion and navigation? Feb 20 04:26:52 maybe Feb 20 04:27:10 not really. idk. Feb 20 04:27:22 jdv79: you can do your straight java without an ide, but building out your UI will be really hard without sometype of way to view your xml. I think it would be more work than it is worth than to just use the IDE. Feb 20 04:27:26 unix is my ide:) Feb 20 04:27:27 it would be an interesting thing to try Feb 20 04:27:51 yeah, layout/ui stuff. sure. Feb 20 04:28:21 you must be a grep/sed/awk king Feb 20 04:28:25 so i'll take this as a "no, nobody does or doesn't want to talk about it' Feb 20 04:28:32 Working without code completion and code navigation would restrict the best of the best, let alone everyone else. Feb 20 04:28:34 idk. i'm ok. Feb 20 04:28:52 to each his own i say Feb 20 04:28:54 autocomplete XML resources is ... essential imho Feb 20 04:29:26 I'm an awk/sed/grep king and even I would never write code for the JVM without an IDE. Feb 20 04:29:47 ive never tried it, im sure you could do it. Feb 20 04:29:48 I remember years ago when code completion was absent (or less good). The sheer amount of typing you had to do was insane. And the amount of looking up stuff in documentation. Feb 20 04:29:53 http://developer.android.com/tools/building/building-cmdline.html jdv79 Feb 20 04:29:55 Just those two activities were a huge time-sink. Feb 20 04:30:02 why dedicate working capacity to memorizing methods / etc when you could use it on the problem domain at hand Feb 20 04:30:06 i admint my java experience is very limited. i've coded c# stuff without VS before. Feb 20 04:30:12 *admit Feb 20 04:30:15 The same applies to C#. Feb 20 04:31:12 * Ping_2_Ur_Pong generally has a rule about not remembering stuff he can easily look up. Unless its one of those use really often and you remember it by sheer usage. Feb 20 04:31:39 i don't remember a lot of stuff. that's what docs are for, no? Feb 20 04:31:49 * Ping_2_Ur_Pong nods Feb 20 04:31:52 That's what code-completion is for. :) Feb 20 04:31:58 Ping_2_Ur_Pong thats good, because as the brain gets older it has more trouble clearing out irrelevant stuff :P Feb 20 04:32:03 And Ctrl+B or Middle Click. Feb 20 04:32:04 * Ping_2_Ur_Pong was going to say that 2 secs later Feb 20 04:32:24 Or Ctrl+P ("show parameters"). Feb 20 04:32:29 ok Feb 20 04:32:36 that does that in AS TacticalJoke ? Feb 20 04:32:57 I write java and jvm targeted code without an ide all the time Feb 20 04:33:12 less often now that intellij is so awesome though Feb 20 04:33:14 I'm sorry, jdv79, but your request not to use Android Studio has been denied. Feb 20 04:33:40 seems so Feb 20 04:33:41 ide xml preview is useless though Feb 20 04:33:43 I'm just kidding, BTW. Sometimes, text sounds blunt as heck. Feb 20 04:34:02 that is the least reason to use android studio Feb 20 04:34:04 pfn every once in a while ill do some something quick in java that I run straight from the command line and don't open the IDE for, but its usually less than 30 lines. Feb 20 04:34:10 jdv79: I think some people use vim with some kind of Android-code-completion stuff, but I've never tried it, and I can't imagine it's that amazing. Feb 20 04:35:06 emacs has a good java completion mode, I think Feb 20 04:35:11 and ensime is amazinf Feb 20 04:35:15 I was creating a Java "Hello, world" using plain vim on a Raspberry Pi the other day. Gawd, it was a pain without IDE stuff. Feb 20 04:35:26 Even typing the import statements was obnoxious. Feb 20 04:35:37 its no big deal. i'm just trying to do some android stuff and there's alot. AS is just my scapegoat at the moment cause its in my face and its very busy. Feb 20 04:35:46 we'll see in a few days if i can't get something working Feb 20 04:36:06 and ironically slow as shit Feb 20 04:36:20 busy as in the UI/complexity is what i meant Feb 20 04:37:01 jdv79: Yeah, the default UI setup is too busy. I hide most of those things. Feb 20 04:37:02 well, not ironic. just oddly. though i imagine that shouldn't be surpising. Feb 20 04:37:18 anyway, bleh. Feb 20 04:37:20 You don't even need a file navigator in IntelliJ. Ctrl+N (and Ctrl+Shift+N) is generally enough. Feb 20 04:37:46 Try View > Enter Distraction Free Mode for the kinda thing I mean. Feb 20 04:38:04 Although you don't have to use Distraction Free Mode to get a simple view. Feb 20 04:52:46 Tactical I didn't know about distraction free mode, that's friggin great, I absolutely love it, tnx Feb 20 04:53:14 g00s: would you know how to use reflection to instantiate an @hide interface / listener, and defining its callback ? Feb 20 04:53:40 * capella googling furiously Feb 20 04:53:58 why isn't my fragment visible? Feb 20 04:54:27 RustyShackleford: that is a very vague question Feb 20 04:54:29 onCreateView {return inflater.inflate(R.layout.content_main, container);} Feb 20 04:55:04 theres also an optional 3rd paramter attachToRoot Feb 20 04:57:10 I dunno i'm confused Feb 20 04:58:05 bah ... too much of ViewTreeObserver is @hide ... particularly interface OnComputeInternalInsetsListener Feb 20 04:58:21 anyone have any good android dev blogs, podcasts? Ive been listening to Android Developer Backstage, looking for more that are technical and not 30 mins of cheesy jokes and 2 mins of technical details. Feb 20 05:00:09 RustyShackleford: Doesn't every tutorial use `inflater.inflate(whatever, container, false);`? :s Feb 20 05:00:55 yeah seems to be a pattern Feb 20 05:01:08 if I omit it, does it default to false? Feb 20 05:02:49 RustyShackleford: https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/view/LayoutInflater.java#374 Feb 20 05:04:01 awesome Feb 20 05:04:11 would have been cool if they put that in the docs Feb 20 05:04:18 didn't think to look in the source Feb 20 05:04:47 * capella all hail the source Feb 20 05:04:50 On a side note, has the online documentation changed appearance? All of a sudden, the "Returns" thing is hard not to notice. Feb 20 05:04:58 In fact, it's hard to notice anything else. :s Feb 20 05:05:15 its commented there Feb 20 05:05:25 I don't see it on this page Feb 20 05:05:35 I mean the documentation pages. Feb 20 05:05:54 oh god I'm blind Feb 20 05:06:07 maybe thats enough android development for today Feb 20 05:08:11 so i did repo sync and that was an hour ago Feb 20 05:08:24 what is happening... Feb 20 05:12:03 I wish the Java world used `enabled` and `setEnabled` naming (rather than `isEnabled` or `getFoo` or whatever). Would be much clearer. Feb 20 05:12:12 There's really no need for a prefix on the accessor. Feb 20 05:12:49 `print(person.name());` and `person.setName("Sam");`. Though first-class properties are better, of course. Feb 20 05:12:54 anyone know how big this "aosp" is? Feb 20 05:12:58 its at 11G so far Feb 20 05:13:04 what the hell is in there?! Feb 20 05:13:14 It's the Android Open Source Project. It's gonna be big. Feb 20 05:13:20 i hope some movies Feb 20 05:14:07 yah, there's movies in there :p Feb 20 05:14:41 maybe i should have seen if repo does shallow clones Feb 20 05:14:43 :( Feb 20 05:17:49 yo we gotta this loot on shit boomin in here Feb 20 05:23:21 I wonder how long it takes to compile android Feb 20 05:23:48 4-core w/SSD? Or quantum device? Feb 20 05:24:33 4 core with SSD sounds reasonable Feb 20 05:25:12 this guy says 270mins http://www.droidforums.net/threads/want-to-know-how-long-it-takes-to-finish-compiling-an-aosp-rom.109422/ Feb 20 05:30:40 wow 270 Feb 20 05:30:55 will the build fail on the 270th minute ?-) Feb 20 05:32:03 Android can provide a welcome workflow activity? Feb 20 05:32:08 such a common usecase?? Feb 20 05:33:19 are tabs supported in 6? Feb 20 05:45:02 does romain guy still come here? Feb 20 05:46:14 the website says i need 100G of disk to build the aosp stuff Feb 20 05:46:22 i do not have htat much disk. jesus. Feb 20 05:46:43 i guess i'm out Feb 20 05:49:02 The suggested cache size is 50-100G Feb 20 05:49:54 well, repo sync is still chugging and its up to 25G now. i'll give it 50G and then i'm killing it. Feb 20 05:50:03 what is this world coming to Feb 20 05:50:33 you have an external hdd? Feb 20 05:50:51 if so mount it and write directly to it. Feb 20 05:50:53 i do. but that's kinda slow usb. Feb 20 05:51:02 like shit it is Feb 20 05:51:02 i'm doing local ssd at the moment Feb 20 05:51:26 usb 3.0 is faster than you can download and usb 2.0 should be able to keep up with your download speed Feb 20 05:51:33 usb2 Feb 20 05:52:02 maybe i'll try that once this way fails. Feb 20 05:52:32 * Ping_2_Ur_Pong had to transfer 50 gigs from one an old computer so he scp it over the network but wrote it directly to his hdd. using usb2.0 took 4ish hours but it still worked and was painless Feb 20 05:52:50 oh wow. it completed at 33G Feb 20 05:52:54 nice Feb 20 05:53:33 that is still a shitload of space, I kind of want to build the android source, ive always been curious at looking and working with the source, just really never had any need to. Feb 20 05:53:40 why have you decided to jdv? Feb 20 05:53:58 i just want to build a modified version of their alarmclock/deskclock app Feb 20 05:54:07 and pfn told me its easy to do it in situ Feb 20 05:54:14 so i'm gonna try that tomorrow Feb 20 05:55:29 hmm... Feb 20 05:55:30 yeah. i have never seen anything use up that much space. _maybe_ a few gigs. seems like insanity to me. Feb 20 05:55:58 i mean it is the source to the entire OS. 33 gigs isn't bad tbh Feb 20 05:56:50 https://android.googlesource.com/platform/packages/apps/AlarmClock/ Feb 20 05:57:01 uh i guess. i think linux is a few gigs. Feb 20 05:57:01 wy not just grab that git and build that? Feb 20 05:57:10 i did and it failed and i couldn't figure it out Feb 20 05:57:16 then pfn said to try this way Feb 20 05:57:20 :) Feb 20 05:57:25 * Ping_2_Ur_Pong nods Feb 20 05:58:03 its weird though, should work... The core apps are intended to be very modular. Feb 20 05:58:57 * Ping_2_Ur_Pong thinks he is going to try to build the alarm clock app just to futz with the code Feb 20 06:01:12 int dayCount = 0; Feb 20 06:01:15 for (; dayCount < 7; dayCount++) {yes Feb 20 06:01:18 that's weird Feb 20 06:01:31 UI Design is hard Feb 20 06:01:38 they remove the intialization of the dayCount outside the for loop Feb 20 06:01:55 my actionbar is drawn on top of my main view Feb 20 06:02:43 http://pastebin.com/c2mtGtCW Feb 20 06:02:56 RustyShackleford: UI design is all thinking like an old codgy woman that hates everything, if you can think of anything that the old lady that bitches about everythig would dislike then reconsider it. Feb 20 06:03:26 this was autogenerated by AS, I added the framelayout Feb 20 06:05:09 your actionbutton is supposed to be on top of your main view. It hovers over your view. Is the placement wrong? A picture is worth a 1000 words. Feb 20 06:05:37 I added padding so my textview is visible Feb 20 06:05:58 its just a placeholder, but the actionbar covers part of that framelayout Feb 20 06:06:13 I want a "container" that I can change dynamically Feb 20 06:06:30 i.e. the FrameLayout Feb 20 06:09:15 http://developer.android.com/reference/android/widget/Space.html ? Feb 20 06:10:41 eh no I don't think so Feb 20 06:10:51 Do I need a CoordinatorLayout? Feb 20 06:11:09 A relativeLayout would be an easy fix Feb 20 06:38:32 pretty plain vanilla question: i want to use a rest webserver, what's the best way to go about doing that? Feb 20 06:39:46 also, I'm using the java.time libraries for the server; anything I can do to conver the dates into that format from android? Feb 20 06:39:54 kommunicate: can you explain? are you asking "whats the best way in Android to communicate and use a rest server?" or "how do i make a rest server for use with Android?" Feb 20 06:39:57 jsr310 seemed to cause build failures when i was trying it before Feb 20 06:40:29 Napalm: I want to communicate with a rest server Feb 20 06:40:44 isn't there a http client lib somewhere? Feb 20 06:40:57 kommunicate: https://square.github.io/retrofit/ Feb 20 06:40:57 Look at Retrofit Feb 20 06:41:00 seems like there's a lot of alternatives, i just want to know which one you like the most Feb 20 06:41:38 this looks good Feb 20 06:42:14 kommunicate: the converters you use decides how the data-format over http is serialized and deserialized into java objects Feb 20 06:42:17 kommunicate: https://github.com/square/retrofit/tree/master/retrofit-converters Feb 20 06:42:31 so you can use xml, json, protobufs.. whatever Feb 20 06:42:38 hell make your own :| Feb 20 06:43:18 I'd like to spend the minimum amount of time shuffling from one data format to another Feb 20 06:43:20 NO! after what seems like an hour the build failed:( Feb 20 06:43:36 off :( Feb 20 06:44:10 i hear json is what the cool kids use these days Feb 20 06:44:41 soap 4 evar Feb 20 06:44:45 lol Feb 20 06:45:27 * jdv79 cringes Feb 20 06:45:37 whatever floats your boat Feb 20 06:45:46 Wanna hear a joke? The "S" in SOAP stands for "Simple". Feb 20 06:45:57 :) Feb 20 06:46:01 aggh Feb 20 06:46:23 painful to remember Feb 20 06:47:00 you guys ever had to consume java8 dates? Feb 20 06:47:33 i'm not sure if i have any alternative except to hack up the server side Feb 20 06:49:27 do I need to subclass my own recyclerview? Feb 20 06:49:33 I want a listview basically Feb 20 06:49:44 RustyShackleford then use listview :P Feb 20 06:49:52 but I want to learn the fancy new API Feb 20 06:51:03 RustyShackleford: why do you want to subclass it? Feb 20 06:54:15 kommunicate: trying to figure out how to use it Feb 20 06:54:42 you subclass listview pretty often. Looks like I don't need to subclass recyclerview Feb 20 06:55:05 do you guys use CoordinatorLayout? Feb 20 07:01:39 Is it worth using a lib to encrypt SharedPreferences (specifically for an API auth token)? It seems pointless since it's still stored locally and can be accessed by anyone with root Feb 20 07:03:20 well if it"s encrypted it doesn"t matter if they can access it Feb 20 07:25:12 y’all nerds know what it is Feb 20 07:49:21 Hi. Is there any way how to change the TabLayout indicator's width? Feb 20 07:54:09 just the indicator or the whole tab? Feb 20 07:55:06 afaik the indicator takes the same with as the tab Feb 20 07:55:34 width* Feb 20 07:58:20 orbyt_: just the indicator Feb 20 09:20:37 liuwenhao: depends. Do you want to protect against a child trying to extract the token? Then it is useful. Do you want to protect against a compsci student or someone working for a competing company trying to extract the token? Then it's useless Feb 20 09:21:07 Because you'll have to decrypt it to use it, and in that moment one can do a memory dump. Feb 20 09:34:29 Hi, I have a recyclerview of images, and a detail view of those, which uses a viewpager, the viewpager is going to be in a fragment. How can I sync scroll in recycler and swiping in viewpager, ie, if user swipes 20 images in pager and presses back, the recycler should show the same image at top that was last visible to user in viewpager Feb 20 09:49:50 astroduck: well, you could use start activity for result instead of start activity, and then let the detail activity return, as result, the ID of the image scrolled to? Feb 20 09:50:07 Another clean solution would be via a service to sync them. Feb 20 09:50:23 In either way, you'd then just do a scroll to position at that moment Feb 20 09:51:41 justjanne: How does photos app do it? Their recycler and detail view are synced perfectly Feb 20 09:52:01 Also, does activity goes in onStop when fragment is attached? on onPause? Feb 20 09:52:20 *or onPause Feb 20 10:10:33 oh, so you have two fragments? Feb 20 10:10:59 you do realize that you can do many different ways then, considering that you instantiate the fragments yourself? Feb 20 10:48:13 justjanne: like? attaching a listener to fragment? or maybe firing an event, I am using eventbus in my app Feb 20 10:48:37 your choice – you have a direct reference to the fragment, you can just do these things Feb 20 10:50:57 I think I'll just use eventbus, simple 3 lines of code :P Feb 20 12:19:09 people Feb 20 12:19:45 coordinatorlayout shows views on big screen in wrong order Feb 20 12:19:59 why& Feb 20 12:20:00 ? Feb 20 12:22:50 Hey.. I'm trying to fix "plugin with id 'com.android.model.application' does not exist" in my gradel build does anyone know what this means, google seems to fall down with this. Feb 20 12:24:32 change it to com.android.application Feb 20 12:25:39 baash05: that is from experimental gradle, what jvrodrigues said should help you if you use standard gradle Feb 20 12:27:16 Yeah.. but I'm trying to get a native app running and this is from the sample. Feb 20 12:27:33 sorry native activity. Feb 20 12:28:59 Is it safe to pass reference of activity to adapter of recyclerview in that activity? Feb 20 12:29:38 I'll drop it back to stable :( Just wish the sample creators picked stable eh :) Feb 20 12:32:01 Anyone know of a sample native-activity other than the one in samples? Feb 20 12:34:30 mbarisa: and jvrodrigues: thanks heaps Feb 20 12:36:28 what do you mean native activity? Feb 20 12:37:22 There's a sample in the NDK that is called native activity.. Feb 20 12:37:28 it has no java at all. Feb 20 12:37:41 but the sample use the fun experimental gradel Feb 20 12:38:01 And getting it to work on a new project is undocumented. Feb 20 12:38:06 aah Feb 20 12:38:07 or well I can't find the docs. Feb 20 12:38:14 cant help you there sorry Feb 20 12:38:33 Yeah.. it's was a long shot. Feb 20 12:39:19 You'd figure the samples would be replicatable.. :) Feb 20 12:39:40 If I wanted easy I'd be a web programmer :) Feb 20 12:39:49 ahahaha Feb 20 12:40:30 that comment has the potential to make a lot of people mad Feb 20 12:40:30 Only funny because I'm a ruby-on-rails dev in my day job :D well and because its web dev.. Ha Feb 20 12:41:00 in web developers defense, I couldnt center a div if my life depended on it Feb 20 12:41:21 mad respect for those guys who center divs for us Feb 20 12:41:30 Ha ha.. Feb 20 12:43:22 You do any NDK work? Feb 20 12:44:50 nah, im a java developer Feb 20 12:44:54 mostly android Feb 20 12:45:18 some backend aswell, java, php, js Feb 20 12:47:29 hm does anyone know of a validation framework for android? I have read about making my own, but I don't want to re-invent the wheel unless I have to.. I tried https://github.com/ragunathjawahar/android-saripaar, but my widgets are defined in a layout.. and I'd like to attach validators there Feb 20 12:48:42 also centering a div is relatively easy (even vertically - though that depends on the target browser), but I am afraid I wouldn't be able to do it at the first try even though I like CSS and know my way around it Feb 20 12:55:47 baash05: what is your gradle version? Feb 20 12:57:41 baash05: classpath 'com.android.tools.build:gradle-experimental:0.2.1' Feb 20 12:57:47 try that Feb 20 12:58:27 with for me com.android/model.application works with it Feb 20 13:08:23 hi all, what is the best/most common practice for uniquely identifying and caching information from MediaStore? I'm developing an app in which i run an algo upon every image in MediaStore. should I query mediastore in onCreate every single time my app starts in case the user moved some photos around, or if there is a way to "sync" mediastore with my local Feb 20 13:08:23 data every so often. right now all I know is that _ID only persists for the duration of a "session" and that some people use the absolute /emulated/ path returned by .DATA since that is persistent and handle the rest manually. Feb 20 13:26:30 mbarisa: Thanks.. I got it working.. I think.. No gradle errors at least. Feb 20 13:26:50 I really just wanted to know that my android_main was being called. Feb 20 13:31:39 people Feb 20 13:43:47 appbarlayout covers all other views in API > 16 Feb 20 13:43:49 ^( Feb 20 13:43:55 what could it be? Feb 20 13:43:59 and why? Feb 20 13:46:36 actually i have two phones 4.4.2 - work as expected Feb 20 13:46:38 and 5 Feb 20 13:46:49 5.1 - appbar covers all other views Feb 20 13:49:29 can someone help me understand why jarsigner & zipalign shows GOOD results but when installing the app i get "App not installed" ????? Feb 20 13:49:58 the debug apk works great btw Feb 20 13:50:08 (crosswalk) Feb 20 14:07:55 nodedfree, whats the error you get Feb 20 14:37:07 people i found out - it was elevation Feb 20 14:50:15 danijoo_: fixed the error, after removing previous debug app Feb 20 14:52:42 you cant the same app installed twice ;) Feb 20 16:12:59 what is the advantage of using one of the frameworks resource identifier? Feb 20 16:13:11 i.e. android:id/list instead of +id/list Feb 20 16:23:27 ListFragment will automatically assign android:id/list for getAdapter() and getListView() Feb 20 16:35:25 are there other reasons? Feb 20 16:35:39 no Feb 20 16:38:33 ListFragments are so last week Feb 20 16:39:17 even last week they were unpopular :p Feb 20 16:41:22 jvrodrigues sometimes, you need to use android:list or some arbitrarily defined ID. for example, you want to provide a custom layout for PreferenceFragment. You can use whatever you want, as long as it has a ListView with android:id/list ... PF must find it in the hierarchy Feb 20 16:43:11 ah, ofc, make sense yea Feb 20 16:43:31 wonder why I didnt think of that Feb 20 16:43:56 maybe because its a terrible way to go at it Feb 20 17:10:50 crap PreferenceFragmentCompat assumes its not a child fragment and calls through to the parent activity to handle screen click. And PreferenceFragmentCompat#getCallbackFragment is public, but hidden Feb 20 17:10:57 kinda like they didn't think things through Feb 20 17:21:11 more like no one cares about nested fragments Feb 20 17:32:46 hm weird I have never thought of this before, but if I write a class that is generic (e.g. SomeClass), is it possible to have a private attribute this type? from what I currently see all I can do is either use T or View (according to my example) Feb 20 17:33:05 private attribute of this type* Feb 20 17:41:22 Can someone explain why in the Retrieiving Data section for Firebase docs, they use a ValueEventListener? Why isn't there a method for retrieving the data without one? Feb 20 17:41:43 Aoi: What do you mean by "private attribute"? Feb 20 17:42:28 I was just curious why it is not possible to write "private view" or something.. Feb 20 17:42:59 I never dealt with such a thing before so I was wondering if there is a way Feb 20 17:43:08 But what is there to make private? The type parameter is visible only to those who can see the class or method or whatever. Feb 20 17:43:33 I did not mean the class definition Feb 20 17:43:39 but the attribute(s) Feb 20 17:44:30 You mean that you want a field of the T type? You can just say `private T t;`. Feb 20 17:45:13 so T also considers the class I extend from? Feb 20 17:45:36 ah lol.. must have a brain cell jumping in my head.. Feb 20 17:47:04 The `extends Foo` part doesn't need to be repeated as it's just a restriction for the type parameter. Feb 20 17:48:26 yeah so the T I use inside my abstract class implies that extension already Feb 20 17:52:04 Is there a way in Android studio to automatically override a layout to specify a different version in landscape mode? Feb 20 17:53:53 hrmf Feb 20 17:54:03 Plast_, http://developer.android.com/training/basics/supporting-devices/screens.html Feb 20 17:54:05 Is Google really selling tickets for I/O like two weeks before event? -_- Feb 20 17:54:49 adq my question was if Android Studio had automatic support for doing that? You know how it will override a layout if you use an API feature above your minSDK Feb 20 17:55:22 Android Studio won't do a thing. It's a code edit.r Feb 20 17:55:30 Mavrik guess it makes it more fun to plan your itinerary :) Feb 20 17:55:38 g00s, eh Feb 20 17:55:54 Just annoyed because it gets expensive and hard to plan. Feb 20 17:56:09 when you rightclick on res and select "new res directorty" Feb 20 17:56:12 Suits me for not paying 4000$ of rent in SF I guess. Feb 20 17:56:43 you can ask AS to add portrait layout folder for example Feb 20 17:57:03 Plast_, might wanna look at guides a bit: https://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Feb 20 17:57:24 There's a list of resource qualifiers. Feb 20 17:58:33 oh I didn't even see that you can add qualifiers to layout resource directories. Thanks adq Feb 20 18:04:56 weird.. I think I have a design flaw in my head... if I have say a EditTextValidator, which inherits methods common to all Validators (e.g. "validate()") from AbstractValidator, how am I going to keep a "String message" in the class if I might need to override it in a subclass of EditTextValidator? Feb 20 18:07:57 I'm going to make a list item view for my recycler view Feb 20 18:08:33 how would you determite how tall this view is? wrap_content? or specify a value in dp Feb 20 18:09:02 you can use ?listPreferredItemHeight or similar Feb 20 18:10:03 Aoi: It's hard to tell what you're asking. Those terms you're using are very vague. Feb 20 18:11:43 they are very precise to me :) Feb 20 18:12:05 but don't mind it I guess I solved it.. not sure I solved it the best way, but it was the best way I could think of Feb 20 18:12:33 You're talking about a "message" and "overriding" that in a subclass. That could mean anything. Feb 20 18:13:11 hello everybody Feb 20 18:13:18 well overriding is clear, but message was supposed to be a "string" instead Feb 20 18:13:50 basically say I have a protected attribute in Class A and B is a subclass of A.. yet I'd need to override that attribute - what would be the best way to do it?` Feb 20 18:15:00 the reason I'd like to have attribute in Class A is because I'd like methods that will be common to all subclasses of Class A be defined in there (in Class A) Feb 20 18:15:40 I'm guessing that, by "attribute", you mean "field" once again. Feb 20 18:15:50 object attribute Feb 20 18:16:38 object is an instance of a class.. object attribute is the attribute that has the object scope - at least that's what they are called in German Feb 20 18:16:48 The term is "field" in Java. Feb 20 18:17:03 http://docs.oracle.com/javase/jndi/tutorial/objects/storing/dircontext.html Feb 20 18:17:27 g00s: thanks, didn't know that existed Feb 20 18:17:40 err actually http://stackoverflow.com/questions/8479038/what-is-attribute-in-java - this says attribute is just another term for field. Feb 20 18:18:13 Aoi: The JLS doesn't use the term "attribute". It uses "field". Feb 20 18:18:37 Maybe I sound stubborn here; I'm just trying to make these sentences you're typing easier to read. :s Feb 20 18:18:40 from my knowledge it is attribute - it's also what is used in various UML designers Feb 20 18:18:50 Aoi: https://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.3 Feb 20 18:19:28 so I need to make a network call to retrieve that data that will be displayed in this recyclerView Feb 20 18:19:30 "Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which are data structures that contain data, in the form of fields, often known as attributes;" I speak OOP here, TacticalJoke :) Feb 20 18:19:45 so field and attribute is essentially the same Feb 20 18:19:59 where do I make the network call? In the MainActivity, somewhere in my fragment? Feb 20 18:20:27 I could make an adapter that takes a retrofit callback as a parameter Feb 20 18:20:37 Aoi: If you want to use the wrong term and confuse people, continue to use "attribute". I give up. :D Feb 20 18:21:00 it'd be the wrong term if it actually was the wrong term. Just because /you/ do not know it does not mean it's wrong :) Feb 20 18:21:48 like.. calling object methods "functions" as some do, is also wrong.. but that was not even that wrong.. whatever - I found my solution Feb 20 18:24:04 The "function" analogy isn't great because a method is a kind of function; they are not synonyms. Feb 20 18:24:29 well I was taught objects don't have functions - they only have methods Feb 20 18:24:53 function is a term from old times - back when programming was mostly done in a procedural way Feb 20 18:25:20 Aoi: unless you're working in C++ Feb 20 18:25:28 Functional programming is big today. Take a step away from Java and you'll be using that term all the time. Feb 20 18:25:30 C++ has no methods Feb 20 18:25:41 only member functions Feb 20 18:25:47 c++ does have no objects and does not follow OOP? Feb 20 18:25:54 it doesn't even have member functions Feb 20 18:25:55 "Procedure", "routine", and "subroutine" are probably little-used today, though. Feb 20 18:26:16 Aoi: C++ is pretty far from most OOP Feb 20 18:26:25 I guess.. Feb 20 18:26:39 the typical OOP is about sending messages between objects, which are typically acted upon by methods Feb 20 18:26:40 How is C++ far from OOP? Feb 20 18:26:44 I only did a tiny bit of it like 5 years ago .. I didn't like it Feb 20 18:27:19 RustyShackleford: the big idea of OOP is the part that C++ tries to avoid the most - and implements in a way that is slower than Java Feb 20 18:27:23 OOP means object-oriented programming, doesn't it? So if one is using functions, which are not tied to objects, how is that not far away from OOP? Feb 20 18:27:31 i.e. polymorphism Feb 20 18:27:46 heh I found it funny that C++ can inherit from several classes at once Feb 20 18:28:11 C++ is a mess Feb 20 18:28:12 Aoi: that's actually a nice feature when done right. Unfortunately, C++ doesn't do it right, so you have infamous "diamond inheritance path" problem Feb 20 18:28:35 deadly diamond of doom Feb 20 18:28:53 * p_l uses languages where it never happens despite multiple inheritance - thus he is happy ;D Feb 20 18:28:56 well sometimes I wish Java offered a way for that, too... then again usually whenever I need multiple super classes, there's usually a design flaw Feb 20 18:28:56 I like that old quote: "C++: An octopus made by nailing extra legs onto a dog." Sums up the language well. Feb 20 18:29:27 Aoi: well, you can patch over Java with runtime code mangling using various libraries Feb 20 18:29:34 TacticalJoke https://www.youtube.com/watch?v=YoB8t0B4jx4 Feb 20 18:29:37 nah thanks :D Feb 20 18:29:39 otherwise java tends to suck at composability Feb 20 18:30:46 Oh yeah, I've seen this, g00s. Must've been terrifying. Feb 20 18:31:04 well .. I remember our code-designers did some really effed-up stuff in Innovator (some enterprise UML editor) .. and then demanded it should generate Java code xD... Feb 20 18:32:03 Aoi: FYI, I've heard the term "attributes" being used to describe fields/class-member variables/properties/whatevers before, but never in Java, and probably only in VB6 or something. Feb 20 18:32:47 But, since the term in Java is very clearly "field", I think no good argument can be made in favour of using a synonym. Feb 20 18:32:55 Java lacks setter/getter support, so people had to write their own Feb 20 18:33:20 on one hand that sucks Feb 20 18:33:45 but some languages that have automatic getter/setter support can be comfusing Feb 20 18:33:55 I really don't like ruby, for example Feb 20 18:34:24 well, too much magic and people are lost. But the java alternative is worse, and left us with JavaBeans Feb 20 18:34:38 (which were nice concept, but thanks to implementation details sucked) Feb 20 18:34:40 at least the IDE can generate them for you Feb 20 18:34:53 declare your members, generate the rest Feb 20 18:34:55 I think the Java situation would be less bad if the naming convention were foo()/setFoo() rather than getFoo()/setFoo(). But only slightly less bad. Feb 20 18:35:02 your term in Java is field Feb 20 18:35:11 my term in Java is attribute .. jeez is that so hard to understand? Feb 20 18:35:32 if you say that in the context of Android, it might make people think of xml Feb 20 18:35:36 There is no "my term in Java". The JLS is your overlord. Feb 20 18:35:38 I mean in the end we both know what we mean and if you did not understand what I meant, you could have asked and I'd have told you Feb 20 18:35:40 TacticalJoke: or if there was a way to define methods for it nicely... Feb 20 18:35:43 we are terminology nazis here Feb 20 18:36:13 it's an object attribute .. just like there is a class attribute and a method attribute .. Feb 20 18:36:31 "Method attribute" sounds just wrong. Feb 20 18:36:33 those are the scopes - usually D: .. and then you can have additional scopes inside anonymous classes Feb 20 18:36:35 That's a local variable. Feb 20 18:36:43 local field according to you >_> Feb 20 18:36:47 No, not field. Feb 20 18:37:10 A field is a member variable, not a local variable. Feb 20 18:37:11 variables? then why not call the rest variables, too? I mean - the only thing that is different is their scope Feb 20 18:37:21 what about a static variable? Feb 20 18:37:25 That's a class variable. Feb 20 18:37:33 not a class field? Feb 20 18:37:49 that's messed up beyond repair really Feb 20 18:37:58 There are instance fields and static fields. Feb 20 18:38:01 attribute is UML term for class piece of state Feb 20 18:38:06 The point is that a local variable is not a field. Feb 20 18:38:20 to me variables are like functions: they are from another generation of programming languages (unless you use C++ / C etc.) Feb 20 18:39:06 actually even those are not exactly OOP D: Feb 20 18:41:15 Aoi: A JVM-targeting language was released a few days ago. It has methods and functions. And the methods are defined with `fun` (standing for, as you can surely guess, 'function'). Feb 20 18:41:20 There is nothing legacy about the term 'function'. Feb 20 18:41:38 'function' is 2016 and it is here to stay! Feb 20 18:41:51 well I haven't seen any functions in Java >_> Feb 20 18:41:56 Every method is one. Feb 20 18:42:01 it's a method Feb 20 18:42:27 I'd say function is something that neither derives from nor uses any objects.. Feb 20 18:42:41 since in Java everything extends an object and operates on one, it can only have methods Feb 20 18:43:40 SF rents are stupid Feb 20 18:44:06 all of the bay area is Feb 20 18:44:25 We need to use a common vocabulary to communicate, and a lot of people would disagree that a method is not a function. Feb 20 18:45:37 I usually differentiate in order to show that something is bound to an object of any class if I am referring to a method... likewise if I was to speak of functions, I would be referring to something that is not bound to an object at all Feb 20 18:45:39 semantic ftw Feb 20 18:45:56 a method is a function, but a function is not a method Feb 20 18:45:58 then again to each their own I guess.. Feb 20 18:46:10 see, adq, I disagree Feb 20 18:46:30 a method is not entirely lose, but tied to whatever class it is in Feb 20 18:46:36 Hi i wanna now , how much should i enlarge the size of my logo to support all screensize ? Feb 20 18:46:41 well, i only think of method inside a class of an object in oop, function is procedural Feb 20 18:46:57 correct @adq.. that's what I am thinking, too Feb 20 18:47:07 hourb, just provide different resolution (mdpi, hdpi, xhdpi, xxhdpi.. etc) Feb 20 18:47:39 one could argue static methods in static classes are somewhat functions.. but they are tied to the class they are written in .. and in most cases they also operate on objects, too Feb 20 18:47:48 in fact, function is a mathematical term :) Feb 20 18:47:59 /msg NickServ SETPASS hourb gkfwxclsckho 9619 Feb 20 18:48:04 ! Feb 20 18:48:13 damn haha Feb 20 18:48:16 hehe.. yup I know - I remember that stuff D: Feb 20 18:48:18 you can change it now :) Feb 20 18:48:36 at least he did not identify in this channel xD Feb 20 18:48:56 the whitespace shiit Feb 20 18:49:01 >< Feb 20 18:49:04 problem is ppl tend to reuse same password, you can change all of them now Feb 20 18:49:12 also I did not mean to piss off TacticalJoke, but I just did not agree D: Feb 20 18:49:41 i don't think you pissed him of, don't worry anyway Feb 20 18:51:37 can i create a toolbar in android 4 ? Feb 20 18:53:28 hm, putting a PreferenceFragment in a ViewPager .. when it has Screens is very difficult Feb 20 18:54:20 was hoping the PreferenceFragment would just handle all this navigating down into Preference screens within itself ... Feb 20 18:54:46 but because you have to basically recreate the Fragment with the root of the new screen and add it to the container its all in your hands Feb 20 18:59:56 huh, so only PreferenceFragmentCompat has OnPreferenceStartScreenCallback ? Feb 20 19:00:01 wtf Feb 20 19:00:16 all this shit needs to be burned to the ground Feb 20 19:00:48 :)) Feb 20 19:02:09 Hello Feb 20 19:02:57 how can i mute/unmute an audio stream from C or C++? .... any links to docs i can use? Feb 20 19:04:07 only docs i can find on developer.android.com are for java Feb 20 19:20:35 adq so PreferenceFragment and PreferenceFragmentCompat behave very differently with regards to inner elements. Feb 20 19:20:58 principle of most surprise, once again Feb 20 19:22:36 a n d r o i d Feb 20 19:25:17 http://imgur.com/EGk94qN - i'm making an audio visualizer out of https://github.com/gelitenight/WaveView Feb 20 19:33:56 I'm trying to get adb to see my LG G3. I have a lenovo yoga tab 3 that adb can see. It's basically this problem: https://ask.fedoraproject.org/en/question/77869/ I have done this http://forum.xda-developers.com/lg-g3/general/guide-connecting-lg-g3-to-linux-adb-aka-t2821673 still, 'adb devices' shows nothing Feb 20 20:25:12 does android 4 support toolsbar ? Feb 20 20:27:55 Intellij IDEA 16 preview Feb 20 20:29:27 oh nice has Git worktree support Feb 20 20:30:21 And AS 1.5 features. Feb 20 20:30:36 Which is annoying a bit, but I get why :/ Feb 20 20:56:06 imma og gangsta set trippin banga Feb 20 20:56:16 and my nerds is down so dont arrouse my anga Feb 20 20:58:39 hm.. is there an annotation, that would suggest that using a certain method / constructor is discouraged? Feb 20 20:59:06 like.. because the sole purpose of that constructor is to provide a way to create an instance of that object in order to allow for proper deserialization? Feb 20 21:20:21 mark it private Feb 20 21:21:16 mark it deprecated Feb 20 21:22:06 pfn never seep Feb 20 21:22:17 *sleep Feb 20 21:25:28 Ugh, ban list is full or something Feb 20 21:25:49 *sighs at state of humanity* Feb 20 21:25:57 :o Feb 20 21:26:38 yay miley-cyrus is unbanned haha okay.. enough jokes for today D: Feb 20 21:28:28 finally. Feb 20 21:30:33 SimonVT, you can use AKICK it's pretty convinient, you set up a ban expiration with it (like 15 days), most ppl banned for enough time don't come back and then chanserv takes care of removing the ban automatically after expiration Feb 20 21:31:01 and it auto-ban-kick when being setup (/msg chanserv help AKICK for more info) Feb 20 21:31:09 I only have +o, unfortunately can't use that command ;/ Feb 20 21:31:14 awww Feb 20 21:31:20 If you know what flag I need to use it I might be able to get it Feb 20 21:31:21 mmmm mcdonalds Feb 20 21:31:25 bet you guys are jealous Feb 20 21:31:26 let me check Feb 20 21:31:59 spankbot was banned 4 years ago.. He joined the channel, said "Heavy Spanking" and got kickbanned Feb 20 21:32:30 He probably fixed it by now Feb 20 21:32:33 lol Feb 20 21:32:43 SimonVT, +Afiorstv for sure with that AKICK will work, there might be few uneeded but i don't remember which Feb 20 21:42:15 Guy in #freenode thinks it's +rf Feb 20 21:50:57 Hey! Feb 20 21:52:13 can someone help me add the android command so that i can build stuff using phonegap? Feb 20 21:52:16 :p Feb 20 21:53:40 I'm running Ubuntu 15.10 by the way Feb 20 21:57:17 Anyone know how to make a CollapsingToolbarLayout only show the title when it is collapsed? Feb 20 21:57:44 I've tried a few things including setting the title to transparent and it doesn't work fully Feb 20 21:57:57 When the view collapses the shadow of the text shows up Feb 20 22:00:41 heys Feb 20 22:00:57 hi Feb 20 22:01:37 I wonder if there is nice guide to port any post- 4.x android to my tablet - which is intel based cpui Feb 20 22:04:06 hello! am i correct i can ask text to speech questions here? I can't get x-sampa to work. Feb 20 22:04:22 x-sampa stuff is just being ignored Feb 20 22:04:48 freekevin: there is few open source info on android-ia which makes it quite hard heh Feb 20 22:08:17 text = " Testing ."; Feb 20 22:08:45 according to some post on google groups this should play: ‘testing actor’, but it only plays testing Feb 20 22:16:43 XXCoder, Im sure someone here has complete source info on porting to intel Feb 20 22:17:03 hope so :) Feb 20 22:17:04 oh no http://www.androidauthority.com/exclusive-android-n-may-not-have-an-app-drawer-674571/ Feb 20 22:17:39 hey guy Feb 20 22:17:43 stock rom isnt too bad though so its not a huge loss. Just less effecient as intel cpu is 64 biut and 4.4.2 is last version not taking advange. Feb 20 22:17:53 ok I definitely meant hey guys Feb 20 22:18:07 how do I describe this tree? Feb 20 22:18:09 http://pastie.org/10730704 Feb 20 22:18:31 is it N children with M ..children? Feb 20 22:23:12 so what is the actual status of tts on android 6? Can’t find it anywhere Feb 20 22:25:13 I am running android 6 launcher Feb 20 22:25:29 on galaxy s6 Feb 20 22:27:53 woo hoo ... finally ordered my n5x Feb 20 22:29:50 hmm, guess seller decided to accept my offer on condo, now to find a tenant Feb 20 22:31:05 in material colors, they use numbers like blue 500 - what does /500/ mean Feb 20 22:31:31 does that # translate directly to H L or S Feb 20 22:31:42 well not H obviously Feb 20 22:34:51 g00s: afaik its just an arbitrary number system, with 500 being the primaries. Feb 20 22:35:57 hm ok, numbers go from 50 - 900 i wonder how they pick L / S values for each stepping Feb 20 22:36:58 mhm, from what i've read a few people have tried to calculate a pattern but from what they've said there doesnt seem to be one. Feb 20 22:37:07 ok Feb 20 22:38:43 there must be a logic in the relation Feb 20 22:40:02 random link making me think there is a pattern by observation: http://www.sankk.in/material-mixer/ Feb 20 22:41:08 yeah the A numbers seem more saturated Feb 20 22:41:16 A means accentued Feb 20 22:41:34 but the number itself really looks like a combo of s & v on hsv Feb 20 22:42:06 haven't look the code of Palette maybe it's hidden inside Feb 20 22:42:26 yeah R G B have FF for their rgb component on A #s Feb 20 22:42:51 not all Feb 20 22:42:59 like A700 is #d50000 Feb 20 22:43:10 what do sync adapters actually do for you? The tutorial makes it sound like they're super useful but after having read through the documentation it just seems like it makes you write a bunch of extra code without actually doing anything useful for you Feb 20 22:43:17 alpha is always FF anyway Feb 20 22:43:36 kommunicate welcome to android :D Feb 20 22:43:58 D: Feb 20 22:45:04 frankly google's documentation for android sucks Feb 20 22:45:27 Oh it's whine o'clock again. Feb 20 22:45:33 depends on the class Feb 20 22:45:34 lots of detail but without ever getting to the point Feb 20 22:45:50 more examples would be nice Feb 20 22:46:02 read the docs and yet I still have no idea how to use this class Feb 20 22:46:06 kommunicate: exactly. sample code could solve the problem Feb 20 22:46:18 or if its even the right thing for what i'm trying to do Feb 20 22:47:11 I just needed to use a Timer Feb 20 22:47:14 Yes, Google should make an app for everyone so they can just copy paste into AS and win moneyz! Feb 20 22:47:37 But the docs say use ScheduledThreadPoolExecutor Feb 20 22:47:47 lol Feb 20 22:47:54 :D Feb 20 22:48:06 But the class docs for it suck Feb 20 22:48:26 The code they have in samples is usable for it though Feb 20 22:49:40 hmm.. is there a way to retrieve a favicon if it's specified in a website using a request? I mean..browsers do it.. but do they parse the html to find and set it? Feb 20 22:50:00 Aoi, they mostly just do a blind request. Feb 20 22:50:15 Jamie Zawinski says "Android is terrible" Feb 20 22:50:21 At least my logs are full of 404s from some browsers. Feb 20 22:50:30 Ologn i think so does carmack Feb 20 22:50:36 He knows a thrown-together API when he sees it Feb 20 22:50:41 lol Feb 20 22:50:49 g00s, yes, Carmack says so too Feb 20 22:50:54 Right. Feb 20 22:50:57 So I guess they are both wrong (?) Feb 20 22:51:13 Now we're being lectured about API quality by mighty Ologn who can't read the first line of Timer class doc :P Feb 20 22:51:26 Aoi, this has nothing to do with android, and the favicon is usually at the website root named favicon.ico Feb 20 22:51:48 I know it has nothing to do with android D: .. I'd also be satisfied if I could get it using javascript / ajax or something Feb 20 22:52:11 Mighty Ologn whose book app has 6 million downloads Feb 20 22:52:25 that is pretty damn good Ologn Feb 20 22:52:31 Thank you g00s Feb 20 22:53:12 Not sure how that entitles random bitching around. Feb 20 22:53:29 Can I have some help modifying the PATH environment variable? Feb 20 22:53:43 Aoi, looking at implementations the browsers or other tools just try to fetch "favicon.ico" from a path and that's it. They get 404 in return if it's not there. Feb 20 22:54:05 staticsn0w: what do you need help with? Feb 20 22:54:15 Also, I went to the Android dev summit thing in NYC two years ago, and virtually everyone on stage was "bitching" about the then dex method limit Feb 20 22:54:30 i put export PATH=${PATH}:~/android-sdk-linux/tools Feb 20 22:54:30 export PATH=${PATH}:~/android-sdk-linux/platform-tools on the very top of my .bashrc but putting in android it gives a "command not found" error Feb 20 22:54:43 Ologn, I'm sure that was very useful for people paying for the conference. Feb 20 22:54:57 And not wasting time that could be used in constructive conversations. Feb 20 22:55:11 try which platform tools Feb 20 22:55:23 ? Feb 20 22:55:25 Uphold the party line! Smash those who criticize Marshmallow! Feb 20 22:55:35 staticsn0w, are your platform-tools actually in your home folder? Feb 20 22:55:38 "report to google" Feb 20 22:55:41 staticsn0w: which will give you the path to the binary Feb 20 22:55:48 I dont think so Feb 20 22:55:59 Ologn, nop, I just don't see the point of spamming a channel with constant bitching. Feb 20 22:56:01 Yes, Android sucks. Feb 20 22:56:02 I dont know where the sdk installed itseld Feb 20 22:56:07 So does pretty much every fucking stack out there. Feb 20 22:56:09 staticsn0w: that's your problem then Feb 20 22:56:13 itself* Feb 20 22:56:16 Suck it up, find solutions, talk about those. Feb 20 22:56:16 ah Feb 20 22:56:17 ok Feb 20 22:56:20 Constructive, less whiny. Feb 20 22:56:37 Mavrik: I just feel like the documentation leaves a lot to be desired Feb 20 22:56:41 It's what being an engineer is all about. Feb 20 22:56:46 kommunicate, it does. Feb 20 22:57:04 Some stacks are better than others. C, Python, Scheme are stacks people are happy with. C++ and PHP are stacks most people are unhappy with. Feb 20 22:57:10 Make it work, write a blog post, next person will have an easier path. Feb 20 22:57:24 That's how most ecosystems work. Feb 20 22:57:33 Ologn new project; my dog is wearing a motion sensor. goal is to know when he is sleeping vs when he's up Feb 20 22:57:47 I expect better out of google Feb 20 22:57:54 not to say AWS has great documentation either Feb 20 22:58:06 i cannot fix google dev making cheesy youtube video, writing crazy posts on g+ with formatting collabsing redirecting to a stackoverflow post Feb 20 22:58:08 g00s, this is one of the most epic talks I've seen on this topic: https://www.youtube.com/watch?v=DMNSvHswljM Feb 20 22:58:13 kommunicate, well don't. Feb 20 22:58:14 when the doc could have been directly updated :p Feb 20 22:58:18 but at least they highlight why you should use a component instead of making it a mystery Feb 20 22:58:32 kommunicate, you know by this time Feb 20 22:58:35 you could have just asked. Feb 20 22:58:39 and we would have told you :P Feb 20 22:58:48 guys .. if you had seen the libraries I have worked with at work.. libraries our company bought for many thousands of euro .. and how VERY bad they are documented + no sources (java libraries), you'd say android is the best thing on earth Feb 20 22:58:57 oh, and forgot medium in the middle of the chain Feb 20 22:59:04 and twitter account too Feb 20 22:59:11 Ologn, most of those stacks are similar crap or have good parts written by 3rd parties Feb 20 22:59:12 haha, that's why I'm here :P Feb 20 22:59:24 g00s, sounds cool Feb 20 22:59:26 Only with Android I see so many cargo culters just waiting for stuff to fall out of Google Feb 20 22:59:53 DOS dog :D Feb 20 23:00:04 guinea-pig dog Feb 20 23:00:10 I mean.. people should just go and make something better if they are unhappy with android or something D: Feb 20 23:00:35 There IS bunch of good stuff written for Android that makes things easier. Feb 20 23:00:36 that's cool project g00s Feb 20 23:00:47 Including other programming languages :P Feb 20 23:00:50 The 65k dex method limit is a perfect example... Feb 20 23:01:01 ...first, you have no idea there is a limit... Feb 20 23:01:17 ...then, you get a cryptic error message when you come across it... Feb 20 23:01:34 ...then, the person working on fixing it leaves the Android team... Feb 20 23:02:30 ahah i remember jbq leaving left zillion of tickets assigned Feb 20 23:02:42 ...then finally after years of everyone from Matt Murphy point this out, Jake Wharton making dex method counters etc., they finally fix it Feb 20 23:03:06 MultiDEX always existed. Feb 20 23:03:28 adq, they should just throw the whole ticket tracker in the bin and use Apple approach Feb 20 23:03:34 iirc, it was always possible if you looked into docs and wrote apropriate compilation steps? Feb 20 23:03:37 Give out access to select people and kill the random noise. Feb 20 23:03:38 someone has apps with 65k+ methods :O? Feb 20 23:03:48 ours at work is like 85k methods Feb 20 23:03:49 Aoi: Facebook Feb 20 23:04:03 you can add a lot of methods by importing libraries Feb 20 23:04:03 i would not be against Mavrik tbh Feb 20 23:04:07 p_l, mhm, they later added Gradle tools to automatically run the DEX splitter and loader Feb 20 23:04:07 google play services is huge Feb 20 23:04:13 facebook is huge enough to write their own language before they write an android app xD Feb 20 23:04:13 Aoi, how many methods did the original services library originally have? Feb 20 23:04:17 also google code issue tracker has several flaw they don't want to patch Feb 20 23:04:23 i even made ticket(s) about it Feb 20 23:04:30 they say it cannot be fixed lol Feb 20 23:04:37 adq, I mean there's just so much damn random "I haz samsungz and battery diedz" tickets in there Feb 20 23:04:44 that said - is there a good listing of useful libraries/tools for writing android apps? Feb 20 23:04:49 That anything actually talking about reproducing framework bugs is invisible Feb 20 23:04:55 also all those phone sex hotline # in bangalore Feb 20 23:05:00 And you need to go personally bug Google people anyway (if you have contats) Feb 20 23:05:01 Aoi, because Google's libraries were taking up a good chunk of that dex limit for many Feb 20 23:05:04 It's just useless. Feb 20 23:05:29 i think some big changes are coming with android 7; so we'll see :D Feb 20 23:05:33 what i noticed is the number of stars or dups has not influence on the probability to be fixed Feb 20 23:05:48 I wonder what the N release will be called Feb 20 23:05:54 Nougat? Nutter Butter Feb 20 23:05:58 most of my tickets (1 star only thus) are however assigned and then fixed Feb 20 23:06:06 aren't we first going to get 6.1? :D Feb 20 23:06:08 (and i submit 1 per day now, except the weekend lol) Feb 20 23:06:19 adq, I think its rather random, depending on who looks Feb 20 23:06:26 I've reported the HDMI alpha bug in preview 2 Feb 20 23:06:37 And they confirmed it after they released broken Marshmallow final Feb 20 23:06:44 sNickers? Feb 20 23:06:44 -_- Feb 20 23:06:45 Also "Multidex always existed" doesn't mean much...it's like saying "The ability to write your own OS exists". It does, but.... Feb 20 23:06:47 p_l merging some chromeOs + openJdk sounds like a big .0 release Feb 20 23:06:53 i can see they tend to quickly assign & fix Android Studio bugs Feb 20 23:07:02 adq, yeah, different team Feb 20 23:07:03 Multidex wasn't made easy until more recently... Feb 20 23:07:03 but not at all when it comes to android library, like renderscript or appcompat Feb 20 23:07:28 still waiting some critical fix for RS, fully acknowledged by their team, since last year Feb 20 23:07:42 Ologn, no, being too lazy to run a tool with your build system is not comparable to writing your own OS. Feb 20 23:07:43 kommunicate I changed the things in bashrc to my actual sdk path, and it still doesnt work Feb 20 23:07:45 but i cannot blame their team, not enough ppl Feb 20 23:07:48 too much work for sure Feb 20 23:07:49 It's annoying and unecessary yes. Feb 20 23:08:01 But not "hard". Feb 20 23:08:20 there is another thing i noticed, if the ticket owner is from google.com, it gets quickly assigned if not instantly Feb 20 23:08:24 why do I see this log message? E/RecyclerView: No adapter attached; skipping layout Feb 20 23:08:27 staticsn0w: try giving it an abolute path (expand out ~ to /home/something) and check that you execute permissions Feb 20 23:08:31 adq, eh, I wonder if they also have issues with internal process. Feb 20 23:08:35 ok Feb 20 23:08:40 looks like my recyclerview is fine, Its displaying the data like I expect Feb 20 23:08:43 adq, I mean, they break coverage reporting in each gradle plugin version Feb 20 23:08:49 Which means that a.) They don't have testing Feb 20 23:08:51 multidex, even with 1.0 I think, wasn't at the level of writing your own OS - at most, it would involve returning to the old practice of writing code that writes code that writes code Feb 20 23:08:58 b.) They don't use coverage reporting at all Feb 20 23:09:07 or a & b! scary :D Feb 20 23:09:16 p_l, nah, you had to run a tool to split .DEX files Feb 20 23:09:33 i can remember a comment on a ticket from chris banes saying he won't even test Feb 20 23:09:46 adq, also the quality of testing libraries kinda confirms my suspicions they're not actually doing testing Feb 20 23:09:53 Mavrik: I was thinking more of generating multiple .DEX files and autogenerating some glue code Feb 20 23:09:54 or blaming oem when there is no oem (like on android wear) Feb 20 23:09:56 hilarious Feb 20 23:10:06 p_l, yeah, I know it wasn't all that hard, just annoying as hell Feb 20 23:10:41 adq, honestly I wouldn't mind if they'd offload some of that on community Feb 20 23:10:45 it wouldn't be a problem if they just, you know, didn't make mistakes Feb 20 23:10:46 That's how the good languages do it. Feb 20 23:10:50 that's my approach to testing ;) Feb 20 23:10:54 But then they need to start frigging talking to people. Feb 20 23:11:34 Anyway. Feb 20 23:11:52 RustyShackleford, I guess there's a layout pass before you set the adapter? Feb 20 23:12:08 and setting the adapter runs another layout pass Feb 20 23:13:04 kommunicate still nope Feb 20 23:13:39 did you reload your .bashrc file? Feb 20 23:13:44 try source ~/.bashrc Feb 20 23:13:45 I don't have this log message in the fragment i use with recyclerview RustyShackleford, i set the adapter inside onCreateView Feb 20 23:13:48 ok Feb 20 23:14:12 kommunicate still nope Feb 20 23:14:41 can you execute it directly? Feb 20 23:15:05 yeah Feb 20 23:15:44 are you sure you're running that command as the same user? Feb 20 23:16:00 yes Feb 20 23:16:08 ok, i'm out of ideas then Feb 20 23:16:20 echo $PATH and see if you see anything obviously wrong Feb 20 23:16:24 ok Feb 20 23:17:14 this is the output: http://hastebin.com/loremowuze.js Feb 20 23:24:25 ok, so where is the file actually located? Feb 20 23:26:53 * pfn never worried too much about dex limit at all, before or after multidex :p Feb 20 23:27:10 although, I had an app that eventually broke limit even with proguard Feb 20 23:27:11 Hey everyone, I've been struggling to display my data from my Firebase database. I'm trying to use data from Firebase database to build my navigation drawer within my activity Feb 20 23:27:18 having to add multidex kinda sucked Feb 20 23:32:33 hm XML autocomplete doesn't work in preference XML files i guess ? android:title="@string/xxx " ... no answers Feb 20 23:33:56 it works for me o.o; Feb 20 23:34:27 huh. using 1.5 ? Feb 20 23:34:36 e.g. 'android:title="@string/pref_title_caching_enabled" />' Feb 20 23:34:45 in SwitchPreference Feb 20 23:34:49 nope - using 2.0 b5 Feb 20 23:34:53 ah Feb 20 23:42:54 g00s, there is a bug in cache iirc, already submitted a ticket Feb 20 23:45:33 oops, in fact i did not, and the one i starred (not created) was about attr: https://code.google.com/p/android/issues/detail?id=200364#c6 Feb 20 23:46:59 adq thanks Feb 20 23:48:54 however i have your issue in one of my module of a project Feb 20 23:49:03 while the others modules seem unaffected, so weird Feb 21 00:10:52 Hello everyone Feb 21 00:11:27 i'm trying to compile a simple java command line program that mutes/unmutes audio, using an instance of AudioManager. Feb 21 00:11:46 what do i need to pass to the java compiler command on the line? Feb 21 00:13:01 uh.... Feb 21 00:13:07 what do i need to pass to the java compiler on the command line? Feb 21 00:48:37 there are no command line programs Feb 21 00:59:45 there is only Xul Feb 21 01:36:01 anyone here had a google cardboard 1 or 2 Feb 21 01:36:13 im curious if the nose thing in cardboard 1 is much of an annoyance Feb 21 01:36:38 looking to add my own dyi button to add to a cb 1.0 Feb 21 01:36:58 just trying to get my feet wet into vr dev, see what i can come up with Feb 21 01:50:33 I'm populating a recyclerview with data Feb 21 01:50:58 um hold on, let me figure out how to phrase this Feb 21 01:51:36 I need to accomplish a few things Feb 21 01:52:24 I'm figuring it out for one rest call right now. But I want to accomplish this for several different rest calls, reusing components as much as I can Feb 21 01:52:41 1) fetch the data I need with a rest call Feb 21 01:53:05 2) create a fragment and recyclerview adapter Feb 21 01:53:36 and link the data to this somehow Feb 21 02:01:16 so anyway, I'm confused Feb 21 02:02:30 tripknotix: nose thing? Feb 21 02:04:07 the google cardboard has what looks like a support beam, where your nose goes, its carved in a way to not get in the way of your nose, but it might still touch it, but cb2.0 has that part completely carved out Feb 21 02:04:33 ahh yea depends on people I guess Feb 21 02:04:38 for me it wasnt too bad Feb 21 02:26:34 that was with a cardboard 1.0 xxcoder? Feb 21 02:26:38 with the bridge where the nose is Feb 21 02:27:03 yeah I have cheap one though may be different Feb 21 02:27:51 i was gonan buy a cheap one for $6 on ebay Feb 21 02:27:55 gets here in 3 days if i order today Feb 21 02:28:01 err by tomorrow Feb 21 02:28:08 then add my own button Feb 21 02:28:25 not bad. I paid $1.50 something but then it was from chinese cheap site Feb 21 02:28:29 month shipping Feb 21 02:47:13 yeah XXCoder i saw those 2, you still have it? Feb 21 02:47:25 yeah a sec Feb 21 02:47:49 yep it has center support Feb 21 02:47:59 bridge. it has minor sweat mark on it Feb 21 02:49:29 it means it touches my nose when I use it Feb 21 02:49:35 yeah sweat mark is probably annoying Feb 21 02:49:45 how long do you think you could wear it befor ethat nose gets annoying Feb 21 02:50:14 not sure, I have worse limition than that Feb 21 02:50:17 it makes me dizzy Feb 21 02:50:42 <[Saint]> Mmmmmm. Pre-owned neckbeard face grease. Feb 21 02:50:43 =X Feb 21 02:51:04 all oiled up and ready Feb 21 02:51:59 trying to make some alternatives in my app, first you select whether you want 3D with glasses or 2D single camera, if you select 2D an extra option comes up asking if you want to use motion sensors or just Touch Drag the camera (its an on rails game) Feb 21 02:52:20 i will probably allow touch drag anyway, its just meant to disable the sensors Feb 21 02:52:44 apparently adding fake nose in screen helps on dizzyness Feb 21 02:52:59 i'd hate to create a game that makes less people able to play it Feb 21 02:53:06 thats interesting Feb 21 02:53:07 http://www.gamasutra.com/view/news/239807/Putting_a_fake_nose_in_your_VR_game_may_make_it_less_nauseating.php Feb 21 02:53:39 its early research though so maybe option to add various races of noses Feb 21 02:53:39 wow, interesting Feb 21 02:53:42 hm weird.. I have a validate() method and in my UrlValidator it uses Patterns.WEB_URL.matcher(text).match() .. but if I was to try and test validate with mockito, it says Patterns.WEB_URL is null D: Feb 21 02:54:50 and I did not mock my validator.. oh well Feb 21 02:55:10 JakeWharton http://www.amazon.com/Hierarchies-Smarties-Kaufmann-Management-Systems/dp/0123877334 **** ENDING LOGGING AT Sun Feb 21 02:59:58 2016