**** BEGIN LOGGING AT Fri May 13 02:59:59 2016 May 13 03:18:57 indeed May 13 03:35:24 dependent type + eager evaluation: count me in May 13 03:35:42 but right now, I think it can barely prove simple list concatenation May 13 05:08:55 "Oracle attorney Annette Hurst questioned Rubin for more than four hours" ouch May 13 05:09:48 " Rubin, who has grown a beard and a Fu Manchu-style mustache since leaving Google" haha i need to see May 13 05:15:27 Annette Hurst seems like a tough cookie May 13 05:24:08 so quiet. ok , this is good http://i.imgur.com/fqcYMXN.gif May 13 05:29:38 i simply can not get ActionMenuView to show up as a child of RelativeLayout May 13 05:29:47 wtf is up with this thing May 13 05:51:27 руддщ May 13 05:51:31 hello :) May 13 06:09:33 hi May 13 06:09:35 hi May 13 06:09:35 hi May 13 06:09:37 hi May 13 06:09:38 srry May 13 07:04:56 https://medium.com/google-developers/faster-android-studio-builds-with-dex-in-process-5988ed8aa37e#.63xqgj188 May 13 07:09:40 meh May 13 07:12:39 Still doesn't fix the real performance problem: The existence of Gradle May 13 07:13:22 love how gradle eats all the ram you throw at it and spits out a 5 mb apk May 13 07:13:57 azgul: Just one of many things to love about it. May 13 07:14:23 :D May 13 07:16:30 Ashiren: that the one about increasing the memory for 2gigs? May 13 07:17:24 * Ping_2_Ur_Pong doesn't have much of an issue with gradle, nor AS. But, he does have 16gigs of ram with an SSD and i7 May 13 07:17:48 Ping_2_Ur_Pong: I also have SSH+16 GB and gradle is still horrible. May 13 07:17:55 SSD i mean May 13 07:18:09 seriously, i haven't noticed any major issues. May 13 07:18:14 What are the problems you refer to? May 13 07:18:30 Ping_2_Ur_Pong: Were you ever deloping Android applications on pure IntelliJ IDEA before Android studio? May 13 07:19:05 You know, back in the day when you could click on "build" and the APKJ was ready immediately? May 13 07:19:14 * Ping_2_Ur_Pong runs vm_stat and Activity monitor while building. May 13 07:19:43 loke, nah... I was on Eclipse so its a 100% improvement for me. May 13 07:19:56 Ping_2_Ur_Pong: Ah, then I understand you :-) May 13 07:20:26 hmm... can't you still use ant if you want to bite that horrible horrible bullet? May 13 07:21:17 Ping_2_Ur_Pong: I did that for a while, but far too many of the libraries are completely designed around Gradle that you can't even find documentation on which JAR files to include. May 13 07:21:59 Ping_2_Ur_Pong: Point is, with pure IDEA you don't even need Ant. It has the entire build process as part of the applciation. May 13 07:22:06 I haven't really been having much issue with build times since instant run. May 13 07:22:12 I only ever used Ant for production builds when I needed signing. May 13 07:22:21 I get sub 3 second builds particularly when warm and hot swapping May 13 07:22:56 its so fast that the updated app is usually pushed before I have a chance to press command + tab May 13 07:23:00 Ping_2_Ur_Pong: Interesting. You must be the first person I have seen that says that Instant run actually saved them time. May 13 07:23:15 I love it tremendously May 13 07:23:36 9 times out of 10 Instant run fails to compile/redeploy the changes, leading you to try to find nonexistent bugs. May 13 07:23:42 its loads better than prior to, building prior to 2.0 I had started to use genymotion just to avoid those horrible build times May 13 07:24:00 * Ping_2_Ur_Pong hasn't updated past 2.0, but that's interesting May 13 07:24:20 yea, I guess it depends on the changes that you're updating. May 13 07:25:18 that can be a bit of pain, it isn't very context aware, ie... I change a variable in class x and change class why using variable x. It won't restart to x being instantiated and the variable being set in y. May 13 07:25:36 I heard they are working on a fix for that though. May 13 07:26:29 Reto Meijer, I think his name is the developer advocate did a great write up on how instant run works, it helps you see what to do and not to, and how to avoid stuff like that... ie... knowing when to just clean and when you can just run. May 13 07:26:50 well, there is bright site http://artandlogic.com/wp-content/uploads/2013/07/compiling.png May 13 07:27:48 one of my favorite xkcd comics May 13 07:30:56 Interview May 13 07:30:57 We first got in touch via email. The interview process was very slow (they took time between stages - the whole thing took over a year) and very thorough. First, they sent me a "programming challenge" - an email with several tasks, which took a few hours to complete. Then we talked on the phone about books, interests, programming, and so on. May 13 07:30:59 wtf May 13 07:31:05 over a year for a fucking job. May 13 07:31:12 you've got to be fucking kidding me May 13 07:33:46 wow that places salary is shit May 13 07:34:08 hourly too May 13 07:35:31 coolest thing I have seen android wise today... https://github.com/google/flexbox-layout?utm_content=buffer4a5a8&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer May 13 07:35:41 very interesting. Might become my new favorite layout. May 13 07:54:49 What the heck is /res/drawable-finger ? May 13 07:56:40 :O May 13 07:58:52 I found that folder in a very old app that I'm supposed to update soon. I googled it and found it used here too: https://android.googlesource.com/platform/packages/apps/Contacts/+/donut-release/res/drawable-finger/ic_dial_number.xml May 13 08:07:36 are we going to have an I/O streaming party in chan? May 13 08:07:54 kraft: I/O streaming party next week? May 13 08:08:25 kroot: * May 13 08:11:02 I need help action bar orientation (rotation) change, my tabs look wonderful in portrait mode but have quirks in landscape mode May 13 08:12:52 https://www.google.com/design/spec/motion/material-motion.html May 13 08:13:09 in landscape mode, the tab text becomes larger than its container (the tab consists of a icon and text). but the container should be wider, because there is enough space for it. May 13 08:13:33 my tab is using a customView May 13 08:13:49 and im required to use java only (no xml/theme) May 13 08:13:50 genkgo: right click on the res folder and select android resource file, then selection orientation as the type and set the name as being the exact same as your other layout file May 13 08:14:01 customize for making it look good in landscape May 13 08:14:24 wait, why are you required to use java only? May 13 08:14:25 Ping_2_Ur_Pong: i have to use java only, i am not an experienced android developer May 13 08:14:29 school project? May 13 08:14:40 the way I gave you was the easy way May 13 08:14:52 its harder and more time consuming to do it in code May 13 08:15:24 Ping_2_Ur_Pong: no, cordova plugin :) javascript has to be able send parameters, requiring java May 13 08:15:58 Ping_2_Ur_Pong: I am tweaking this project: https://github.com/Microsoft/ace May 13 08:16:21 Ping_2_Ur_Pong: and I am really far, those 5 PRs are mine May 13 08:16:29 but not I am really stuck May 13 08:16:31 genkgo: fyi, cordova is shit. Its too much of a resource hog, both bandwidth and processing. Look at reactive if you're going to go the hybrid May 13 08:17:02 Ping_2_Ur_Pong: maybe, but i am way too invested in this :) May 13 08:18:05 I don't understand why you can't use xml? May 13 08:23:19 I cant use xml because i want javascript to send parameters to my java method which is possible using the cordova bridge May 13 08:23:21 https://github.com/frederikbosch/ace/blob/merged/src/android/framework/TabBar.java#L152 May 13 08:23:36 there my tab is created, with the icon / text May 13 08:24:00 and i am happy how that looks, in portrait mode May 13 08:24:53 but when i rotate, the text is too large for its container, so i should increase the width of the container when orientation changes (rotated). May 13 08:29:35 genkgo, link an image of what your app looks like in landscape and portrait May 13 08:29:57 Ping_2_Ur_Pong: sure, working on it May 13 08:35:51 Ping_2_Ur_Pong: https://www.genkgo.com/f/files/inline?f=app/screenshot_20160513-103238.png May 13 08:36:12 https://www.genkgo.com/f/files/inline?f=app/screenshot_20160513-103251.png May 13 08:36:51 you shouldn't be using 12, I think when you just use a value its in pixels or inches or some shit, use dp. Second... check and decrese TEXTSIZE to 4 or something just to see if it fits correctly. One sec... May 13 08:38:34 what's the issue again? that INSTELLIGEN. is cut off? May 13 08:38:38 Ping_2_Ur_Pong: alright, but then that code should be invoked when the orientation changes, and reverted when the orientation changes back May 13 08:38:42 Ping_2_Ur_Pong: yes May 13 08:39:18 getResources.getConfiguration.orientation will give you the orientation May 13 08:39:20 Ping_2_Ur_Pong: secondly, less important, but I think it is nicer to have the tabs on the right since the title have a variable length May 13 08:40:34 Ping_2_Ur_Pong: ah wonderful, so i should configure a listener for configuration changes, or orientation change May 13 08:41:17 its hackey, but you could. tbh... I think your width on your linearlayout isn't wide enough, but I need to see the other orientation to understand it. May 13 08:42:17 Ping_2_Ur_Pong: i send two links May 13 08:42:26 dude stop nick alerting me May 13 08:42:27 one portrait, one landscape May 13 08:42:33 sorry :) May 13 08:43:09 but i agree, my linearlayout should be wider May 13 08:43:22 but how to invoke code on an orientation change May 13 08:43:35 now i have a onTabSelected May 13 08:43:37 ll.setPadding(0, 0, 0, 0); set that third 0 to 20 just to see something May 13 08:43:45 see if it gives you enough spacing May 13 08:43:56 genkgo: in onConfigurationChanged() May 13 08:44:30 shmooz: ah wonderful May 13 08:53:23 genkgo: LinearLayout.LayoutParams tvp = new LinearLayout.LayoutParams( May 13 08:53:24 ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); May 13 08:53:56 set that second WRAP_CONTENT to MATCH_PARENT, that's for your textview, force it to fill to the size of its parent which is your linear layout May 13 08:54:03 you shouldn't need to check orientation then May 13 08:54:22 actually first one May 13 08:54:25 width is before height May 13 09:00:23 I need some gradle help. I've made a function computeVersionName() that I've added in my root build.gradle of the project. In my app/build.gradle I can call this function like this: projectRoot.computeVersionName(). May 13 09:01:35 I have quite a lot of helper methods like these, so I've moved them into versioning.gradle and placed that file in the project root. In root build.gradle I've added this in the top: apply from: './versioning.gradle'. Now my app/build.gradle cannot find that method anymore =\ May 13 09:02:27 What am I doing wrong? May 13 09:02:30 Hello, maybe someone can give me some input. I am creating a musical app which will have a piano keyboard on the display to show which note is played, so the played note must get highlighted. Now I am not sure which would be the best approach. Use an image of a keyboard, or use a grid or table layout ? May 13 09:02:51 With each note in a grid spot. May 13 09:05:31 Ping_2_Ur_Pong: unfortunately, does not solve it May 13 09:05:45 the text is now aligned to the left May 13 09:06:40 i cant see any other changes May 13 09:06:47 https://github.com/frederikbosch/ace/commit/e2cd0784408bb7128f78ae3d7324fba1f5918fea May 13 09:06:50 that my commit May 13 09:07:25 i also started with the configuration change implementation May 13 09:13:40 genkgo: set your Zta77 try it without ./ May 13 09:14:04 sorry, i dont understand that May 13 09:14:07 Zta77 May 13 09:14:13 I basically want to do (and have done) this, but I want have the "def computeVersionName()..." moved to another file: http://stackoverflow.com/a/21329965/2412477 May 13 09:14:31 NeoFrontier: you can do it many different ways, depends on how you intend to connect to the keys May 13 09:15:55 Zta77: yes, that defines it, but to load your script look at https://docs.gradle.org/current/userguide/userguide_single.html#sec%3aconfiguring_using_external_script May 13 09:16:10 it doesn't mention any directory resolution thorugh ./ May 13 09:16:22 genkgo that was to zta May 13 09:19:22 Ping_2_Ur_Pong: I cannot find an answer there... May 13 09:20:09 NeoFrontier: 2 linear layout possibly one for black keys and one set for white keys May 13 09:20:21 ZTa it doesn't mention anything about using ./ May 13 09:20:37 it just says 'other.gradle' when trying to do apply from May 13 09:20:45 you're adding ./, why? May 13 09:21:12 I was just being explicit about current dir. I've removed it. Doesn't change anything. May 13 09:21:43 pastebin you gradle files May 13 09:22:46 hmm... http://stackoverflow.com/a/18718802/2412477 May 13 09:25:04 Neo, that is actually an interesting problem, you need to have 99 keys x which are white and y that are black but they must overlay on top of each other May 13 09:25:26 NeoFro :( https://github.com/2bard/AndroidPianoView May 13 09:26:01 Hah! May 13 09:26:06 I think it works now. May 13 09:27:12 hmm... that's interesting May 13 09:27:17 * Ping_2_Ur_Pong will be trying that later today May 13 10:07:07 hi. i've an activity that contains a list (RecyclerView), when the activity is destroyed (because of a back button) i want to recreate the list with same data, when i access the activity is recreated again May 13 10:07:37 i've tried with the bundle, but obviously when the onCreate is called, the bundle is null May 13 10:08:56 http://developer.android.com/training/basics/activity-lifecycle/recreating.html May 13 10:12:20 Chainfire: it says that if the user press the back button the concept of that activity is gone forever. I think that there isn't a solution May 13 10:13:36 so many cases where eventbus is used and startActivityForResult would've worked May 13 10:13:38 so much sadness May 13 10:13:59 I hate startActivityForResult May 13 10:14:18 why May 13 10:14:32 LucaS05 either you're not reading that page right, or you're not explaining your problem right May 13 10:14:41 it should be done with some 'Future', 'Promise' pattern May 13 10:14:48 you can use onSaveInstanceState (and friends) to save arbitrary information about your activity, such as the current state May 13 10:14:48 no callback in onActivityResult May 13 10:15:23 then that information gets passed back to the newly created activity in onCreate or onRestoreInstanceState, and you can use that info to recreate the exact same screen as you used before May 13 10:15:49 or do you mean even with back this info is lost? then you can still persist the info to a database (for longer) or a global (for as long as the process is around) May 13 10:16:03 but then you'd be working against expected behavior May 13 10:16:37 Hi, if you want to have two independent columns of items (as in vertical lists) in the same view but with different heights, should I put two recycler views or some custom implementation of grid layout? May 13 10:17:08 gordon_, unfortunately the calling activity might get destroyed meanwhile May 13 10:17:22 Chainfire: My problem is this: I've Activity A, then i press the back button. When i go again on the Activity A, i want to restore the data that it was containing previously May 13 10:17:23 I'm not a fan of it either though May 13 10:17:34 it has its use-cases May 13 10:17:40 is what im saying May 13 10:17:43 sure May 13 10:18:02 not sure if I've actually used it in years May 13 10:18:04 beginners only know it from camera intents and the like, it's not "marketed" as something handy May 13 10:18:13 Zharf: so onActivityResult wont work either in that case May 13 10:18:44 LucaS05 again, if that means you don't get passed the bundle, then persist the data some other way, I gave you two examples of how already May 13 10:18:54 gordon_, how do you mean? pretty sure the system would call onActivityResult after reconstructing the activity May 13 10:20:32 Chainfire: i was thinking to that. But i don't want to involve any database. Now i've a dialog that says "Are you sure..." so it prevents an accidental back button click and losing all the data May 13 10:20:37 nice, Zharf May 13 10:20:42 didnt know thap May 13 10:20:45 otherwise the whole system wouldn't make any sense May 13 10:20:53 otherwise using a future would definitely be better May 13 10:21:24 It's a little mechanical but it could be good May 13 10:24:02 Odaym, test it by turning on "Don't keep activities" May 13 10:24:10 yea I've had my run with that option May 13 10:24:11 hey anyone knows if it's a good idea to have two recyclerviews instead of one with custom grid layout? May 13 10:24:21 really used to fuck me up when I used an eventbus May 13 10:24:36 literally breaks that functionality that depended on the eventbus flow May 13 10:24:45 you used eventbus wrong :p May 13 10:24:48 yes May 13 10:25:03 to an extent that we used to check with users whether they had that option turned on in their settings, so they could turn it off May 13 10:25:16 -.- May 13 10:25:21 yea I was really stupid May 13 10:26:05 Zharf: I dont think it will be called after onDestroy() is called May 13 10:26:21 no, it'll be called after onRestoreInstanceState is called May 13 10:27:00 (before onResume) May 13 10:27:24 there's solution for that May 13 10:27:33 but I cannot remember now May 13 10:27:41 (to get something like future there ) May 13 10:29:51 LucaS05 you dont want to involve a database or any other storage because too much work? instead you are going to use a confirmation dialog to exit?! Please note that such confirmation dialogs before exit are amongst the most hated things app do to people May 13 10:31:24 confirmend May 13 10:31:28 zharf / Odaym I use startActivityForResult more often than eventbus (which ones are you talking about, btw?). But as I usually employ them for the user to make some sort of selection far beyond the scope of a normal model dialog, I tend to make them look popup-y by making them smaller than full screen. May 13 10:31:32 it's actually antipattern from google May 13 10:31:45 A nice side effect of that is that the activity behind is still marked visible, and is thus never destroyed :) May 13 10:32:13 if the flow is 1 more activity from the one that originally spawned the cycle, i use eventbus May 13 10:32:29 this is how my crooked principles work May 13 10:32:36 i've got a whole rulebook of this shit May 13 10:32:41 no I dont May 13 10:33:10 Chainfire: you're right. I will study which storage mechanism best fits my problem. Are Content Providers the wrong choice? May 13 10:33:50 A friend of mine was thinking to them for solving my problem. But i don't know them very much May 13 10:34:03 gordon_, antipattern is a useless word, be more specific May 13 10:34:38 I have a ContentObserver that helps update my cursorAdapter on changes in DB. However when there are multiple changes caused by different insert/update/delete operations in almost quick succession, the content observer somewhat freezes the UI as it's onChange is called for each of the changes. What would be a more optimized approach to have the onChange triggered only once within a specific time interval? May 13 10:35:46 LucaS05 they might be, but I've always felt they were more suited to providing content outside of the app. As I haven't used them much, that may be wrong. Read the docs, see if it fits you. May 13 10:35:48 afk May 13 10:36:08 Chainfire: thanks! May 13 10:36:14 Zharf: sorry I was thinking about 'press back again to close the application' behaviour May 13 10:40:53 I'm trying to build for arm64 as primary arch. Envsetup correctly adds these two dirs to my $PATH May 13 10:41:16 "/cyanogenmod12.1/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin" May 13 10:41:28 "/cyanogenmod12.1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin" May 13 10:41:39 but installs the compiler in the wrong dir May 13 10:41:54 "/cyanogenmod12.1/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc-4.8" May 13 10:42:19 oh that's what you mean May 13 10:42:32 yea definitely wrong to do double backs May 13 10:42:36 completely useless May 13 10:42:45 very old apps used to do that May 13 10:42:49 file managers specifically :P May 13 10:44:53 javier4, #android-root maybe? May 13 10:45:30 hey guys, how would you implement this "grid" ? it's two columns but items vary in height http://i.imgur.com/bbwEDR2.png May 13 10:45:45 Odaym, weeell, I don't think it's a bad thing for coming back from a deep stack when user's just pounding on the back key May 13 10:45:53 i got it working with one recycler view and grid layout but all items have same height May 13 10:47:00 Twirl, grid rows will have the same height May 13 10:47:15 Zharf: yea but i need different height May 13 10:47:40 Zharf, ok, I'll try to post there too. May 13 10:48:03 yea good point May 13 10:48:24 Twirl, write your own layoutmanager May 13 10:48:39 Zharf: can i just extend the gridlayout May 13 10:49:36 Zharf: or you mean the root element of the row May 13 10:50:09 no I mean if you write your own layout manager, you can lay the elements out as you like May 13 10:50:28 but not sure if gridlayoutmanager is flexible enough to be extended for this purpose May 13 10:50:43 gridlayoutmanager just extends linearlayoutmanager a little bit May 13 10:51:03 well then it should work? May 13 10:51:26 what makes you think that May 13 10:51:43 if a class derives from another one doesn't have all the same except what you override May 13 10:52:26 ... go read the code, don't guess :) May 13 10:52:26 it's not like i don't want to go with your solution it's just that it's already made with a gridlayout and i would have to change it, but it's ok May 13 10:53:00 I did a grid with varying sizes and positions in recyclerview May 13 10:53:06 but I didn't extend gridlayoutmanager May 13 10:53:14 it didn't bend the way I needed it to May 13 10:53:41 (I built an EPG grid with it) May 13 10:53:56 mmh alright the thing is I also need it to be responsive May 13 10:54:19 and i'm doing that extending the GridLayoutManager May 13 10:55:03 maybe i can do that your way too May 13 10:55:20 alright I will try it, do you have an example or something i can take a look at? ^^ May 13 10:57:15 Twirl: recyclerview has it implemented May 13 10:57:49 I'm having an issue with Android Studio with gradle. I'm trying to add android-apt but gradle fails to sync and I just get an Error without any message. May 13 10:57:51 StaggeredGridLayoutManager May 13 10:57:57 oh right that thing existed too May 13 10:58:45 gordon_: what May 13 10:59:05 just google it May 13 10:59:08 oh yea that's exactly what I need, how do i use it May 13 10:59:09 it does what you want May 13 10:59:20 yea nice May 13 10:59:23 -> google it May 13 11:02:15 https://www.youtube.com/watch?v=Bnql2VFeyp4 I made something like this May 13 11:02:44 this was a proof of concept before doing it in the actual application May 13 11:03:00 that would probably work as well May 13 11:03:05 looks good May 13 11:10:02 alright, the StaggeredGridLayoutManager worked, now i need to make it responsive May 13 11:10:32 to what May 13 11:10:36 number of columns ? May 13 11:10:48 when i flip the device it keeps showing two columns May 13 11:10:54 it can fit another one May 13 11:10:59 easy May 13 11:11:07 just too easy :P May 13 11:11:19 haha yea but i still have to do it May 13 11:11:26 https://pbs.twimg.com/media/CiTOyQNUoAER3kf.jpg May 13 11:13:19 Is it possible to run a ContentObserver off UI thread? I have a serious challenge as it is blocking UI May 13 11:16:48 g33kyboi: why not? you pass in a Handler in the constructor May 13 11:16:49 http://developer.android.com/reference/android/database/ContentObserver.html#ContentObserver(android.os.Handler) May 13 11:17:05 so if you pass in a Handler for a different thread, callbacks will happen on it May 13 11:17:50 I have made an attempt at doing that but the UI still freezes when the ContentObserver's onChange is called May 13 11:18:14 http://pastebin.com/G3LsYUpp May 13 11:20:40 Any insights as to why the UI still blocks? May 13 11:20:43 freeze with ANR? May 13 11:21:11 yes May 13 11:21:29 so run "adb pull /data/anr/traces.txt" and see what is blocking you May 13 11:31:21 traces.txt is empty May 13 11:31:28 let it anr first May 13 11:36:22 hmm since ##java was pretty quiet, I hope someone here has insight in Cyclic Barriers May 13 11:36:34 can await be used on the same CyclicBarrier more than once, by the same party? Example: If I want my parties to all sync at multiple steps during their executions May 13 11:38:13 I want to know if googgle maps api cost money to use? May 13 11:38:20 Troffel: beware, google and oracle are in court now because of things like this May 13 11:38:53 wtf are you talking about. May 13 11:39:10 Mavrik,You mean me? May 13 11:39:37 Troffel, if I understand you correctly, CycligBarrier is exactly for your usecase - it'll block until all threads stop, release them and then those threads can await again. May 13 11:40:32 my oddly specific question comes from an example, where N threads are started, and a barrier is created with N+1 members/parties May 13 11:40:58 What happens is that during the threads execution, they call await() twice, May 13 11:41:37 and by calling await() from the main thread (presumably as the last waiting member/party), it use the same CyclicBarrier for multiple 'syncs May 13 11:41:39 ' May 13 11:42:36 e.g. mainthread: await() check thread mid statuses, await() check final result May 13 11:43:00 Home it makes sense Mavrik d: May 13 11:43:34 Yeah, I mean it makes sense. May 13 11:44:05 CB is a pretty dumb class, it'll count until N+1 awaits() and the release all of them and then start counting again from N + 1 May 13 11:44:19 Thing is.... if your main thread await() gets in there before all threads, it'll block your main thread. May 13 11:46:08 but it will only block mainthread til the others have called await() too, effectively a join() in some way May 13 11:46:26 but I assume it keeps track of which thread has called await() May 13 11:46:59 from javadocs it says: "If the current thread is not the last to arrive then it is disabled for thread scheduling purposes and lies dormant until one of the following things happens: May 13 11:46:59 The last thread arrives; or [...]" May 13 11:48:32 cyclicbarrier May 13 11:48:43 wew, makes me wanna use it for sounding so complicated May 13 11:49:08 Mavrik, I know all points point to this being exactly what i'm asking, but since I haven't been able to find any documentation on multiple uses of await() 'rounds', I would ask d: May 13 11:49:27 Odaym: sounds very un-android May 13 11:49:31 blocking all threads May 13 11:49:45 Troffel, I don't understand what's confusing you May 13 11:49:50 when you call await() the thread STOP May 13 11:50:00 shallNotPass() May 13 11:50:02 It's blocked and waits until all other threads call await() May 13 11:50:10 And then the counter is reset back to initialized state. May 13 11:50:20 And then threads can again do whatever May 13 11:50:23 "Threading, because fuck you." May 13 11:50:41 Hey Odaym May 13 11:50:48 hiya perlboy May 13 11:50:52 the counter is reset without having to call reset() on the barrier, is what left me unsure d: May 13 11:52:18 But I guess everyone is in agreeance d: May 13 11:56:58 Agreeded May 13 12:01:42 :-D May 13 12:02:36 g33kyboi: how's your ANR? May 13 12:04:52 12,000 lines of greek May 13 12:51:12 hi, using single instance in manifest in "multitasking apps" will be 2 instance of my app. why? May 13 12:56:02 xan_IT: Use launchMode="singleTop" May 13 12:57:44 thz May 13 13:28:09 i have a question on the action bar May 13 13:28:35 in landscape the title and the tabs are displayed next to each other May 13 13:28:53 however, i constantly update the title according to the view May 13 13:29:21 how does the word "however" fit into a question May 13 13:29:33 therefore, the tabs are also constantly on a different position May 13 13:29:49 Good morning, I'm trying to contribute back more into community. Could you help me improve this answer that I made in SoV ? http://stackoverflow.com/a/37211137/1864883 May 13 13:29:49 thepoosh: fair enough :) May 13 13:30:10 i want the tabs to be the same position all the time May 13 13:30:10 :P May 13 13:30:24 same position on the sceen or the selected tab? May 13 13:30:33 and how does updating the text change the tabs? May 13 13:30:52 * contribute more back to community. ( Is this the right way to write it ? ) May 13 13:31:02 thepoosh: the tabs are not changed, but their position is May 13 13:31:20 how longer the text, the more to right the tabs are (only landscape) May 13 13:31:29 you're gonna have to add some more context, can you paste the code and maybe an image or 2? May 13 13:31:56 thepoosh: https://www.genkgo.com/f/files/inline?f=app/screenshot_20160513-103238.png May 13 13:32:02 that is portrait May 13 13:32:04 and correct May 13 13:32:12 ok May 13 13:32:15 because the title is above the tabs May 13 13:32:25 https://www.genkgo.com/f/files/inline?f=app/screenshot_20160513-103251.png May 13 13:32:28 this is wrong May 13 13:32:43 so why is the title next to the tabs? May 13 13:32:53 I'm sure this can be changed May 13 13:33:14 thepoosh: i hope so, i see two options May 13 13:33:30 the tabs move to right, or the tabs move to the right May 13 13:33:33 uhhh May 13 13:33:39 can you paste some code now that i undersdtand the issue? May 13 13:33:55 nah, the toolbar should stay the same way after rotation May 13 13:34:45 but then i wonder where to put the title? May 13 13:35:04 you do not want to have too much space used on landscape (because of phones) May 13 13:35:05 https://github.com/frederikbosch/ace/blob/merged/src/android/framework/TabBar.java#L91 May 13 13:35:29 https://github.com/frederikbosch/ace/blob/merged/src/android/framework/TabBar.java#L54 May 13 13:35:39 there i create the tabs and the title May 13 13:35:47 genkgo: it's more in here: https://github.com/frederikbosch/ace/blob/merged/src/android/framework/TabBar.java#L174 May 13 13:36:09 thepoosh: that is where a single tab is created May 13 13:37:57 thepoosh: i have to solve this by code May 13 13:37:59 not by xml May 13 13:38:28 google is claiming that your code is deprecated and that you should be using toolbar and not actionbar May 13 13:39:21 thepoosh: it's a cordova plugin, im changing someone else's code May 13 13:39:38 im reluctant in upgrading it May 13 13:43:44 Hey, anyone here use OkHttp? I know its not specific android library, but I'm going to use it on Android to replace HttpClient. Anyway what would be a good way to handle about 3-4 sequential http requests asynchronously? Wrap it all in a AsyncTask (which I think JakeWarton recommended against on stackoverflow before) or have something like a promise chain? May 13 13:44:09 Myu use case is that I am logging into a site, requesting a few pages and scraping the data May 13 13:44:43 the login sequence for the site in question is messy and needs a few urls with data POSTed to in sequence May 13 13:45:46 maybe use rxjava May 13 13:45:56 instead of asynctask May 13 13:50:27 + May 13 13:51:15 Ok coll, will read up on that, thanks. May 13 13:52:21 here's a nice video i made about it for beginners :D https://www.youtube.com/watch?v=vfjgQabgjOg May 13 13:53:57 Cheers, thanks guys May 13 13:56:06 I will watch that video before I do anything, looks like you put a good bit of effort into it. May 13 13:56:31 its a very nice tutorial May 13 13:56:34 i just follow along May 13 14:12:14 I need to println the current versionName, versionCode and variant.buildType.name of my app when I'm building it, right when the build starts, ie. before looking up dependencies. How to hook that up? May 13 14:12:24 ...in Gradle May 13 14:13:24 before the phone launches even! May 13 14:13:28 BEFORE YOU BUY THE PHONE! May 13 14:17:02 I already bought the phone =( May 13 14:17:16 what'd you buy May 13 14:17:22 Nexus 5x. May 13 14:17:28 cool May 13 14:17:36 my nexus 5 is still stuck on Android 5 May 13 14:17:44 rare bug May 13 14:17:52 soon I'll get the new one though, i must! May 13 14:18:27 I don't really like 5x that much. I wish Google's "Nexus 5y" would be squashed into the Nexus 5 case. It was a really nice size. May 13 14:18:39 Nice indicator led too. May 13 14:18:55 Of course it should have finger print reader added on the back. May 13 14:18:55 its too big? May 13 14:19:48 But 5x is too big, yes. And it's slow. Touch events are occasionally lost, and scrolling and app startup is lagging. May 13 14:20:19 Nexus4 -> Nexus5 was 8-DDDDDDD \o/ \o/ May 13 14:20:38 Nexus5 -> Nexus5x was more like o________o, May 13 14:20:52 ;________; if you will May 13 14:21:08 even =( May 13 14:21:58 Making gradle scripts is (╯°□°)╯︵ ┻━┻ May 13 14:22:44 Zta77: agreed about gradle :) but curious - are you asking where to hook it in (rather than how to println stuff)? May 13 14:24:35 kvs: I know how to do this: android.applicationVariants.all { variant -> variant.mergeResources.doFirst { println .... }} May 13 14:25:34 bit I'd really like to do android.applicationVariants.CURRENT.resolveDependeicies.doFirst { println "About to resolve deps..." } May 13 14:26:06 or at least android.applicationVariants.all { variant -> variant.resolveDependeicies.doFirst { println "About to resolve deps..." } } May 13 14:27:16 Zta77: ah, interesting. I usually just hook into the gradle lifecycle callbacks; but that's probably not what you're looking for. May 13 14:28:54 It is. May 13 14:28:56 It's kinda annoying that random tasks can keep augmenting various lists in the build, so it's like chasing jelly to directly hook as the "first" task into anything exciting May 13 14:29:04 I just don't know which callback to look for. May 13 14:29:37 Zta77: I just use one of these https://docs.gradle.org/current/userguide/build_lifecycle.html May 13 14:31:49 That document makes no sense too me. Gradle is too confusing. May 13 14:32:01 haha :-) May 13 14:32:19 It's all foobarbaz. No real-life examples now how to do stuff during an android build. May 13 14:32:34 so the *.whenThingHappens are how you add a listenerto the ThingHappend event May 13 14:33:56 e.g. if you want to print something after the first evaluation of the project, you use allprojects { afterEvaluate { .. }} - here you can continue to muck around with the project and cause anguish to anyone who needs to figure out what the heck you did to the project :) May 13 14:33:58 hello May 13 14:34:30 how can i emulate a touch on a button by code, i only have a reference to the Button May 13 14:34:38 * kbs considers gradle a throwback to when IMakefiles were prevelant on X Window systems May 13 14:35:51 I see that variant has a .mergeResources that has a .doFirst. May 13 14:36:00 But where do I get a full list of what variant supports? May 13 14:39:36 Or: at some point, after i type ./gradlew assembleDebug, gradle must figure out that I've chosen to assemble a build of type debug. I'd like a hook there. Something like onDecidedOnBuildType( BuildType t ) May 13 14:40:01 haha :-) if you find a sane way to find documentation on what tasks actually do/exist, please let me know - I do the incredibly stupid thing of grepping through the groovy files/random dsl documentation with hopeful keywords May 13 14:41:17 Zta77: I guess if it's not critical, by the time the task graph is ready I think is good enough maybe? May 13 14:42:05 you can try putting something in gradle.taskGraph.whenReady { graph -> ... } May 13 14:42:26 That's what I'm talking about. May 13 14:42:28 It's all reandom. May 13 14:42:31 *random May 13 14:43:18 The guys in #gradle are completely silent. I think they're in chok. May 13 14:44:07 No arguments re: gradle, I'm sure it's logical when you hold it a certain way I guess :) but - by the time the task graph is ready it should have figured out the variant; so worth just dropping that in and see if that's good enough. May 13 14:44:37 https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#configure-by-dag May 13 14:46:08 I'm overriding OnScrollStateChanged and it's not getting called when changing orientation, why? May 13 14:46:16 * kbs hopes to wake up one day and find gradle was an elaborate April's fool prank May 13 14:47:57 do i need to keep track of orientation myself or what? May 13 14:48:49 kbs: How do I get a hold of my current variant? May 13 14:49:27 Zta77: beats me :-) May 13 14:49:33 =) May 13 14:50:08 gradle is messed up May 13 14:50:39 Also, I think these build variants only exist in the Android PLugin. May 13 14:50:48 I'm extending the StaggeredGridLayoutManager and I don't know how to keep change of orientation change to change span count May 13 14:50:55 span or column or w/e May 13 14:51:00 Which is "documented" here: http://google.github.io/android-gradle-dsl/current/index.html May 13 14:55:44 Bingo! http://grepcode.com/file/repo1.maven.org/maven2/com.android.tools.build/gradle-core/1.1.1/com/android/build/gradle/api/BaseVariant.java May 13 14:56:09 android.applicationVariants.all { variant -> variant.preBuild.doFirst { ... May 13 14:57:04 Zta77: :-) cool, so just hooking in into a magic task list works, awesome May 13 14:59:20 This still runs for all variants. I only want the current. May 13 14:59:30 oh well, I'll call this a day. May 13 14:59:35 bye all =) May 13 15:01:03 nice, it started working and i have no clue why May 13 15:05:40 lol crazybob May 13 15:20:37 anyone remember, maybe 1-2 months ago .. didn't twitter come out with an android app for their analytics? May 13 15:23:24 ah found it, 'fabric' May 13 15:35:33 How to make this code: http://pastebin.com/PsBVbKHW make the default gallery app appear like photos or gallery or another app? Right now in my test, the code is crashing my app. May 13 15:45:42 * Ping_2_Ur_Pong just found out about System UI Tuner, friggin cool May 13 15:49:46 :( May 13 15:50:23 meh, only features that are really there are adjusting the system bar and showing the amount of battery displacement May 13 15:50:27 though still kind of cool May 13 15:50:41 Is the channel having a I/O viewing party? May 13 15:53:40 Any thoughts on my question? May 13 15:53:43 I assume there will be a few people in here chatting about it May 13 15:53:49 ill probably be around May 13 15:54:17 what was the quesiton May 13 15:55:49 R13ose: shouldnt you also specify setDataAndType? May 13 15:58:53 Ashiren: I think I did at one point but uri wasn't being recognized May 13 16:00:53 oh May 13 16:09:53 I will look into this again and see what I can figure out. Thanks for the help May 13 16:33:20 is there a way to change the width of the items in a recyclerview dynamically? as in, the root element, which is a LinearLayout May 13 16:35:43 dont see why not May 13 16:37:14 Hello May 13 16:37:51 I'm trying to run an Android Studio app in my HP Slate 7 but Android Studio doesn't detect the tablet. May 13 16:38:22 Is there something I could do to fix this? May 13 16:38:24 is the Slate 7 in developer mode? May 13 16:38:28 Yes. May 13 16:38:35 do you have the drivers installed? May 13 16:39:00 I tried to install them but they didn't got installed properly. May 13 16:39:11 try again, i guess? May 13 16:39:15 Hmm May 13 16:39:18 I mean May 13 16:39:19 are you on Windows, Mac, or Linux? May 13 16:39:23 Windows May 13 16:39:25 hey May 13 16:39:29 good moooorning May 13 16:39:34 yeah, you’re probably gonna need drivers May 13 16:39:50 I couldn't find the drivers tho. May 13 16:39:55 PirateMonkey> good evening May 13 16:40:07 I could try something different May 13 16:40:18 unfortunately i don’t know where those drivers are, either May 13 16:40:25 Exactly May 13 16:40:40 I tried searching in the HP Site but they don't have a driver for this device. May 13 16:40:47 you might try XDA. they might know what’s up May 13 16:41:08 What's XDA? May 13 16:41:27 XDA developers May 13 16:41:40 it’s a community of device developers and ROM makers. May 13 16:41:48 You might want to enable USB debugging, my workstation doesn't recognize my cellphone until i enable USB debugging, enabling dev. options doesn't cut it. May 13 16:42:07 I have done this many times. May 13 16:42:21 This is the first time I get so many issues. May 13 16:42:42 I'm quite sure it has USB Debugging enabled. May 13 16:42:57 have you tried it on a different machine? May 13 16:43:15 Yes. May 13 16:43:21 same results? May 13 16:43:48 Mounted as Media device (MTP) or Camera (PTP)? May 13 16:44:46 I've tried both options. May 13 16:45:40 check XDA. they might have the driver you need May 13 16:46:10 hi May 13 16:46:47 Do they have a portal to download these drivers? May 13 16:47:12 someone might have them linked May 13 16:47:30 you’re gonna have to search their forums, though May 13 16:49:35 Hello! Can anyone suggest 100% working solution for programmatic changing color of action overflow menu of toolbar? May 13 16:51:43 hey cool, kotlin got incremental compilarion May 13 16:51:53 but these things are annoying ... https://youtrack.jetbrains.com/issue/KT-12303 May 13 16:58:49 Ok I know this might be asked before but still... I have problem with ArrayAdapter. Somewhere in my code I must have a bug because if I choose a picture from gallery then icon in list_item should change. The problem is that icon also changes for another list item and I can't figure out why... also I don't know why but when I pust LOG at the end of getView method,... I can see that for one item added to the list getView is being called 3 times.. May 13 17:04:23 For example, thnis is array adapter class with overriden methods: http://pastebin.com/JzU35Ufi and this is method inside home fragment where array adapter is being called: http://pastebin.com/nyRGTBBS May 13 17:04:30 Anyone willing to help me out? May 13 17:07:28 well May 13 17:08:33 do the adapters use the same list? May 13 17:08:46 yeah.. May 13 17:09:17 so when you change something in list tey both got affected ~ May 13 17:12:48 Hey guys, I implemented SSL between my android server, and android client. It connects, and send data back and forth just fine.. But I have a feeling I am doing something wrong. I made a keystore for my server, and I put the same keystore onto my client, is that correct or would I need to do something different with the keystore for the client? May 13 17:13:48 Ashiren: well it's like this: http://pastebin.com/eQM6cazZ May 13 17:15:49 dunno. arrayadapters are passe. use recyclerview :V May 13 17:16:35 Ashiren: also when adding 4 extra items (without picture)now in total 7,.. when I scroll down and up last one changes icon lol first it has correct icon but when I scroll it just changes and stays wrong May 13 17:17:05 Demon_Jester https://github.com/doridori/Android-Security-Reference/blob/master/network/tls_cert_pinning.md May 13 17:17:18 Ashiren: yeah will try with that May 13 17:18:40 just noticed this stuff "randomly changes" May 13 17:19:55 g00s I am not doing HTTPS requests this is just p2p with SSL ontop of it. If that makes sense. May 13 17:20:31 frojnd: because you set holder.imgReceipt.setImageDrawable only if receiptBeam.getReceiptImage() May 13 17:20:44 Demon_Jester from the sounds of it, better have somebody audit the code May 13 17:20:50 i bet you want if receiptBeam.getReceiptImage() == false then image is null (no image)? May 13 17:21:36 g00s, this is personal use. I don't have any friends that code in java/android. They code in other languages. May 13 17:22:16 Ashiren: no, the logic is correct, you can see from the logs May 13 17:22:52 Ashiren: if getReceiptImage returns true then change icon to plus May 13 17:24:16 otherwise change icon to default May 13 17:25:45 well there you have it May 13 17:26:12 you just helped me out with a bug and give me idea about recycler view :) thank you! May 13 17:27:49 jaana, Hey, I figured out my dex issue from yesterday. May 13 17:27:58 I had added not only dagger but dagger-compiler as dependencies. May 13 17:27:58 yes? May 13 17:28:07 So all of the dagger-compiler was being stuffed into my apk. May 13 17:28:11 When I changed my gradle file to an apt dependancy instead, things worked much more smoothy. May 13 17:28:16 any good way to share and troubleshoot Android/Java code like jsfiddle? May 13 17:28:21 ah tricky May 13 17:28:32 yeah. beginner mistake May 13 17:29:57 We have dozens of languages for subtitles, and changing which subtitle track is being used freezes the player May 13 17:30:04 (VideoView/MediaPlayer) May 13 17:35:48 hey REALLY need some help out here. i'll even send ya bits if you fix it May 13 17:36:44 following this tutorial but content_my.xml doesn't exist in my directory tree, just activity_my.xml: https://developer.android.com/training/basics/firstapp/creating-project.html May 13 17:37:09 shouldn’t matter. just use the one you have May 13 17:37:16 so i have a horizontal recyclerview, it's got different options. On a certain event i need one background color of one of the items to change for x amount of seconds but change back, this is true for another item May 13 17:37:21 how do i do this? May 13 17:37:28 s73v3r, the tutorial says I should have both files May 13 17:37:37 then make the other one May 13 17:38:53 Pir May 13 17:38:59 oh he quit May 13 17:39:05 raj: take a look at what activity_my.xml has in it. see if it looks like he has both May 13 17:39:20 see if it looks like it has both file’s contents May 13 17:39:21 so i have a horizontal recyclerview, it's got different options. On a certain event i need one background color of one of the items to change for x amount of seconds but change back, this is true for another item May 13 17:39:43 PirateMonkey: Use an animator? May 13 17:39:53 eeyup May 13 17:39:55 how do i get the item? May 13 17:40:03 on viewholder.itemView May 13 17:40:12 what event is it that causes the background color to change? May 13 17:40:13 or whatever the item's root layout is May 13 17:40:15 i dont necessarily know where it is May 13 17:40:42 you dont know the item position thay should be changed? May 13 17:40:44 s73v3r, tutorial says content_my.xml should contain the "hello world" textview, but activity_my.xml has it May 13 17:40:54 sounds like the tutorial is out of date May 13 17:40:59 ya May 13 17:41:03 i'm finding that annoying May 13 17:41:03 you should be fine May 13 17:41:11 is there a more uptodate tutorial i might use? May 13 17:41:35 the rest of it shouldn’t have too much of a problem, it’s just that the template project changed May 13 17:41:46 how do i get the item view outside of the recyclerview adapter May 13 17:41:54 ya, the new version of android studio doesn't even have "blank activity" May 13 17:42:17 anyway, ok, I'll just continue as is. I hope it becomes more streamlined soon May 13 17:42:18 PirateMonkey: you really shouldn't May 13 17:42:35 why not? May 13 17:42:36 what’s the event you’re trying to act on? May 13 17:42:58 PirateMonkey: Because you have no idea if it’s on screen or not, or if it’s been recycled May 13 17:43:30 ok so a pitch is thrown in a baseball game. i choose a pitch in the RV. my pitch is wrong. i need to change the pitch that was right to red and the pitch that was wrong to black May 13 17:43:31 what kind of event is it that you’re trying to act on? May 13 17:43:35 for 3 seconds May 13 17:43:42 and then go back to normal May 13 17:43:59 it doesn’t sound like a recyclerview is what you want to use May 13 17:44:00 this is some kind of quiz? May 13 17:44:06 yes May 13 17:44:16 should I just be using layouts? May 13 17:44:21 but if you’re going to do it, you might try invalidating the item at that index May 13 17:44:23 does it scroll May 13 17:44:23 probably May 13 17:44:33 and are there multiple of the same cell? May 13 17:44:35 everyone agree? May 13 17:44:53 eeyup May 13 17:45:23 or could give screenshot of what you want to do. recyclerview sounds overkill for it May 13 17:45:51 yeah, show a screenshot. that’ll help a lot May 13 17:50:29 Oh cool - the cause of deadlock was either a synchronized callback method, or the track-deselection happens automatically, so we didn't need to do it ourselves May 13 17:54:35 thanks guys May 13 17:55:04 im killing RV and doing a layout May 13 17:55:07 appreciate it May 13 17:56:17 s73v3r, what's your btc address? i got you May 13 17:57:15 i don’t think i have one May 13 17:58:13 use paypal May 13 17:58:33 how do I clean and fully build an apk on the command line? May 13 17:58:49 Build -> Rebuild Project finishes before an apk is created May 13 17:58:59 you don't use btc? May 13 17:59:05 your way behind my friend May 13 17:59:17 i have no use for it May 13 18:00:17 you guys have full time dev jobs? May 13 18:00:33 yup May 13 18:00:40 let me ask you May 13 18:00:46 do you get paid overtime? May 13 18:00:57 nope :( May 13 18:01:12 is it in yout contract that you do? May 13 18:01:35 nope. salaried in the US means no overtime May 13 18:01:53 im salaried in the US, my contract contains OT May 13 18:02:03 even though in California, you’re not supposed to be exempt unless you make over an amount the state sets every year May 13 18:02:43 fuck this shit May 13 18:02:48 im tired of working 20 hour days May 13 18:02:59 and getting paid nothing for it May 13 18:03:18 lol May 13 18:05:23 I work with a bunch of people who are hourly May 13 18:05:26 but i'm salaried May 13 18:05:32 sucks during crunch time May 13 18:05:52 they have no problem with working 60 hours per week May 13 18:05:56 anyone know of any good ui/ux examples with orange as the main color scheme May 13 18:06:01 im simple developer. i do my job - i get paid May 13 18:06:13 orbyt_, google play music May 13 18:06:26 RustyShackleford: Any examples that dont wanna make me puke May 13 18:06:27 i don't get it, for some reason changing the layout_gravity in the layout doesn't do absolutely anything, i removed it and textviews still appear almost in the center May 13 18:06:44 what layout May 13 18:07:04 the one that i'm using on a recyclerview May 13 18:07:13 as item May 13 18:07:25 not in the new repo May 13 18:07:35 anyway, hourly is the way to go May 13 18:07:39 ? May 13 18:08:41 google play music used to be an awesome app May 13 18:08:55 i barely look at it. just turn it on and go May 13 18:09:02 ever since they started pushing their music store, theres way too much stuff going on now May 13 18:09:13 although I must say, I'm enjoying the free trial May 13 18:09:41 omfg, this is so weird, now it fixed itself, it's exactly in the middle and it doesn't have any layout_gravity in the layout or in the code, this doesn't make any sense, i'm glad it works though, magically so it's probably going to break itself May 13 18:09:47 but its no longer good for someone who wants to upload their own music collection. The music in their store shows above the music in your collection May 13 18:10:10 Twirl: pastebin the item layout and layout in which theres recyclerview :? May 13 18:10:11 Why is this not working for infinite scrolling? It adds 5 cards after ea. 5th scroll but stops at 25 total cards. https://gist.github.com/intern0t/a383d1070f16309a37b1e6a1ce972845#file-mainactivity-java-L67 Please help! May 13 18:10:17 isn’t it a subscription anyway? May 13 18:11:04 yeah its a subscription May 13 18:11:13 I might subscribe, they have a good selection May 13 18:11:47 thats how they get you, free trials lol May 13 18:12:03 the subscription also comes with YouTube Red, which is pretty nice May 13 18:13:11 youtube Red... they did it on purpose didnt they May 13 18:15:48 I don’t see what you’re talking about ... May 13 18:16:41 raw: http://pastebin.com/raw/yVvdLTVq full: http://pastebin.com/yVvdLTVq May 13 18:16:52 Ashiren: see if u can make any sense of it May 13 18:17:12 seriously it's showing the text in the middle (as needed) but idk why May 13 18:18:30 which text, all? May 13 18:18:34 maybe i have to clear/reindex and rebuild or something? May 13 18:18:37 the textviews May 13 18:18:53 right there in the layout May 13 18:19:15 and the recyclerView itself doesnt have like gravity=center? May 13 18:19:57 nope May 13 18:20:03 oO May 13 18:20:49 http://pastebin.com/MDZRDEh3 May 13 18:21:31 already tested in in two devices too May 13 18:22:29 hmm May 13 18:24:35 but you do some programmatically mambo-jumbo with margins and whatnot May 13 18:25:45 you think it's that? May 13 18:26:39 alright, invalidated caches, cleared, rebuild and still the same May 13 18:26:41 it's magic May 13 18:26:52 well comment the mambo-jumbo and check May 13 18:27:50 that messes up a little bit with the width of the linear layout holding the text views but still shows the text in the middle May 13 18:28:35 Use hierarchyviewer to find out what's causing it May 13 18:29:25 alright May 13 18:32:17 FUCK YEAH May 13 18:32:25 got this project building in less than 5 mins May 13 18:32:29 it was taking 15 May 13 18:33:18 promotion here we come... May 13 18:33:44 more like, “Oh, the build takes 1/3 less time? Here’s 2/3 more tickets" May 13 18:33:56 err, 2/3 less time May 13 18:34:34 such an incredible waste of time lol May 13 18:35:14 this project is going to be so much less of a headache May 13 18:35:28 5 mins is still a long build time May 13 18:40:41 * g00s has hard time comprehending 5 minute build time, thats still terrible May 13 18:41:27 SimonVT: it says width 510, what type of units are those? May 13 18:41:51 Pixels May 13 18:42:04 and what is mRight? it's 515 May 13 18:42:48 Position of right side in parent May 13 18:43:26 my project isn't huge; but not tiny either: 7 modules, 15 libraries, and after initial full build doesn't take more than 10 seconds usually, with IR about 4-7 seconds May 13 18:44:01 thats on a craptastic core 2 duo from 2009 May 13 18:44:35 it also has 40 padding from left and right May 13 18:45:32 maybe its because i don't have any annotation processors May 13 18:46:39 drawing x = 5 and drawing pivotX = 255 May 13 18:47:13 seriously, idk, it's really helpful to look at it this way though May 13 18:48:20 oh, i have no multidex either May 13 18:48:22 Use it to find out what ViewGroup is centering its child views horizontally May 13 18:48:40 The child views width will be smaller than its parents May 13 18:48:59 Once you know that you know where to look May 13 18:50:44 in lyout drawing or measurment? May 13 18:51:20 layout May 13 18:58:26 omg, found it May 13 18:58:38 it was in layout-v21 folder May 13 18:58:45 i never created that idk how it got there May 13 18:59:49 probably created automatically but it should copy the changes i make in the other one or something May 13 19:13:17 SimonVT: Sorry to ask you outta nowhere, you don't happen to goto Virginia Tech by any chance...? Saw the VT in the end of ur nick. May 13 19:18:00 Scarecr0w long go i thought VT was vermont :D May 13 19:18:49 g00s: it might be lol. May 13 19:19:00 its neither May 13 19:20:18 it could be virtual titties, with all Oculus rift hypes and stuff. May 13 19:22:47 it's Veteranary Technician May 13 19:42:45 My damned app looks like it may be near finishing May 13 19:48:13 Ologn damn ! May 13 19:48:23 guys , any experience in building ASAN builds from AOSP ? May 13 19:53:33 Ologn: what is your app? May 13 19:56:46 not specific to an app ,but its related to building AOSP May 13 19:57:43 How do can i make an infinite scroll with RecyclerView, Cardview and LinearLayoutManager.. is there an easy way to know if the the current cardview is the last one? I am hooking onto RecyclerView's addOnScrollListener > onScrolled event. Mine stops at 25 cards. :( May 13 19:58:17 there should be plenty of examples of that if you search google May 13 20:26:49 shmooooz, a wallpaper app May 13 20:27:17 Ologn any wishes for i/o announcements ? May 13 20:27:49 g00s, some say they may drop some hints about Android on desktop...but who knows May 13 20:28:07 ah, yeah. somehow not excited about that May 13 20:28:19 I want them to have up-to-date documentation and things like that... May 13 20:28:46 I want timely aosp drops May 13 20:29:07 android VR could be interesting May 13 20:30:35 am am looking to send whatsapp message from other app . device is rooted . now as some know , there is a sqlite DB sqlite3 /data/data/com.whatsapp/databases/msgstore.db .. there is a key_id filed , it seem encrypted ... how can i generete such key ? May 13 20:30:51 no May 13 20:31:03 this room does not condone hacking of apps May 13 20:31:12 it is not hacking ! May 13 20:31:22 can anyone tell me why this isn't making the bottom frame layout twice as large as the top frame layout. line 104 is not being shown at all... it shows up if I give the layout_height an actual pixel value May 13 20:31:23 https://gist.github.com/anonymous/f3cae57c548ea6526a284c4e069a0146 May 13 20:31:33 beshoo: then use their API to send messages May 13 20:32:00 Thats why i am using database , there is no API ! , if there is please advice May 13 20:32:19 gee, I wonder why. could it be that they don’t want you sending messages from other apps? May 13 20:32:39 i'd expect line 55 and line 104 to be the only two objects in the linear layout and the top one to be 1 third of the linear layout May 13 20:32:58 is my understanding wrong? May 13 20:33:56 weaksauce: Are they the same size? Or what’s the problem? May 13 20:34:09 s73v3r it doesn't display at all May 13 20:34:29 the second one? or the entire linearlayout? May 13 20:34:34 it's basically copied from the example recycler view one May 13 20:34:39 just line 104 May 13 20:34:50 the other parts show up May 13 20:34:59 and you’re performing the fragment transaction in your code, right? May 13 20:35:28 yeah i will set it to 100px and make sure it's showing up May 13 20:35:42 try removing the scrollview too, just in case May 13 20:37:07 I can see that being an issue yeah. May 13 20:39:16 I am working on a voip app. I got a full screen incomingCallActivity working. It starts playing the default ringtone in oncreate. This works everywhere, and the activity even starts correctly when the phone screen is off and locked... but for some reason if the phone screen is off and locked the activity starts but won't play the audio. Any ideas? May 13 20:40:43 alright. so it was the scrollview s73v3r... any ideas on making that stuff work together? May 13 20:41:16 yo guys - if i have 2 step google authentication - how will i set it up on my phone? May 13 20:41:23 what is multidex-main-dex-list.txt for? May 13 20:41:29 is that even necessary? May 13 20:41:29 not offhand, sadly. i think the scrollview needs to know the size of the views beforehand May 13 20:42:07 alright. good to know. I'll just adjust the design accordingly i suppose May 13 20:50:03 eghdk: how are you playing the sound..? pastebin some code May 13 20:52:03 Napalm: I'm getting a ringtone object from the ringtone manager and calling .play() May 13 20:53:04 * Napalm rolls eyes May 13 20:53:24 Napalm: Why? Is that incorrect? May 13 20:53:58 what stream type do you use? May 13 20:55:57 Napalm: I don't set any kind of stream type. May 13 20:56:41 ringtone.setStreamType(AudioManager.STREAM_RING) May 13 20:57:25 also is your activity set to keep the screen on? May 13 20:58:13 Keep screen on, turn screen on, show when locked Napalm May 13 20:58:24 Those flags are set. May 13 21:02:40 have you tried playing the sound onResume May 13 21:02:52 or maybe even postDelayed(...,1000L) May 13 21:09:10 is there a way to keep the keyboard out of the size ratios for layout? when the keyboard pops up it makes the entire screen recalculate the size. May 13 21:10:02 Is this even valid syntax? What is going on with the braces around the try/catch in the example code on this page? http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html May 13 21:10:29 weaksauce... there is. Let me see if I can find it May 13 21:11:51 it is valid May 13 21:12:13 The try block is in round braces May 13 21:12:16 that is valid? May 13 21:12:29 I get redlines in idea May 13 21:12:29 yes May 13 21:13:05 weaksauce, http://developer.android.com/training/keyboard-input/visibility.html "Specify how your ui should respond" section May 13 21:13:14 thanks truckcrash ! May 13 21:13:21 at least here http://stackoverflow.com/questions/13926339/why-are-parentheses-needed-for-try-catch-block-bufferedwriter May 13 21:14:01 android would require API >=19 May 13 21:15:19 huh, ok I must be on java 6 still in intellij May 13 21:15:25 thanks Ashiren May 13 21:17:03 its friday, someone say something funny May 13 21:17:27 eclipse May 13 21:17:32 lol May 13 21:17:33 poop May 13 21:17:39 i was first May 13 21:17:44 and funnier! May 13 21:18:01 yeah, mine was pretty crappy May 13 21:18:07 .. May 13 21:18:12 *groan May 13 21:18:27 what’s the matter? it wasn’t that corny May 13 21:18:40 ew May 13 21:18:42 orbyt_ what's a pile of kittens? May 13 21:18:59 um May 13 21:19:06 idk May 13 21:19:06 a meowtin May 13 21:19:13 ha May 13 21:23:42 Ashiren, I'll give it a try May 13 21:39:39 Napalm: and Ashiren I wrapped it in a newHandler(Looper.getMainLooper).postDelayed(new runnable(), 100) and it works... =( May 13 22:08:15 wish i had access to com.google.android.libraries.* :D May 13 22:08:58 interesting, google analytics app uses dagger May 13 22:09:33 and greenrobot event bus. so the gapp guys are loosening up ;) May 13 22:11:34 or maybe i just don't recall ever seeing dagger in a google app May 13 22:11:39 i could have missed it May 13 22:23:11 hi devs, a quick question, had a quite long gradle build which is finished and afterwards the AS stoped responding. Is it safe for me to force close it? May 13 22:24:42 i think that after gradle build finished, my code should be safe, or not? May 13 22:25:05 i mean, it’s not going to blow up your computer May 13 22:25:21 and your code should be in a version control repository, so you can undo anything that happens May 13 22:25:46 i did it on my laptop and i havent isntalled bash there for git May 13 22:26:11 essenin91 i kill AS often. so far no problems May 13 22:26:23 ok, tnx g00s May 13 23:09:14 no git is cruising for a bruising May 13 23:21:58 Does anyone here have a reasonable explanation as to why this list https://github.com/android/platform_external_skia/blob/master/include/core/SkXfermode.h#L71 is different from this list? https://github.com/android/platform_frameworks_base/blob/master/graphics/java/android/graphics/PorterDuff.java#L22 May 13 23:22:47 It seems like an artificial limitation, https://android.googlesource.com/platform/frameworks/base/+/master/core/jni/android/graphics/PorterDuff.cpp May 13 23:22:55 like they just forgot to update the available modes or something May 13 23:23:06 it would have been very useful to have access to the hard light mode :( May 13 23:25:13 Should I download lldb? May 13 23:25:20 And cmake? May 13 23:35:52 what for? May 13 23:40:52 Setting up Android Studio May 13 23:41:04 What do they even do? Google isn't providing many answers May 13 23:43:45 how do you make ShadowApplication.getInstance().getApplicationContext() from Robolectric return the subclass of Application that was specified in the manifest (android:name) May 13 23:52:28 LunarEclipse120: Why would you download either of those? You just download Android studio May 13 23:52:41 LLDB is a debugger for LLVM, and Cmake is a build system May 14 00:12:11 haha, gosling on Oracle / Java Swing / JavaFX May 14 00:12:13 " I've got some apps that we do that have to be desktop apps. Should I just convert over to Swift?" May 14 00:12:20 https://dzone.com/articles/james-gosling-on-oracle May 14 00:13:32 " They are just the most clueless company when it comes to stuff like development environments." May 14 00:13:39 sounds like Gosling is depressed May 14 00:15:50 i think thats fascinating, so even Gosling doesn't know what to use for Java UI on the desktop - or Java at all May 14 00:16:18 fuck, sounds like outside of EE Oracle just doesn't care about UI at all - that seems like a serious weakness May 14 00:45:00 does anybody know how do I get just a single string property out of JSON object (response) using retrofit 2? May 14 01:21:32 is anyone here familiar with the recycleview staggered layout manager? May 14 01:23:02 is anyone here familiar with the recycleview staggered layout manager? May 14 01:36:11 oh nice mark allison did a write-up for flexbox layout May 14 02:36:59 Can anyone help me fix "The constructor ParcelableCall is undefined" on line 668 of InCallController.java for my repo @ github.com/DominionOS/packages_services_Telecomm May 14 02:49:38 ?? **** ENDING LOGGING AT Sat May 14 02:59:58 2016