**** BEGIN LOGGING AT Mon Dec 21 02:59:59 2015 Dec 21 03:11:04 it's so weird on every second reinstall I'm getting "ClassNotFoundException" for my service Dec 21 03:12:23 any ideas? Dec 21 03:14:40 <_genuser_> hello android nerds Dec 21 03:21:20 any of y’all have android tv? Dec 21 03:22:24 heh, googletv version 2 Dec 21 03:22:37 how do u view side loaded apps? Dec 21 04:11:20 hm Dec 21 04:11:54 anyone uses rxjava and writes unit tests? Dec 21 04:12:33 seems like even if I set all schedulers to Schedulers.immediate() some state is shared Dec 21 04:12:42 and tests fails when I run all set Dec 21 04:12:50 (works when I run one test) Dec 21 04:13:28 but when I implicitly change in code all subscribes and observesOn to Schedulers.immediate() it works like a charm Dec 21 04:13:59 so my question is: is it possible to inject those Schedulers with dagger ? Dec 21 04:15:05 https://medium.com/@ZakTaccardi/easily-test-your-one-off-async-operations-on-android-with-dagger2-eb77c6221901#.jbmkydrwl Dec 21 04:15:07 seems like I can Dec 21 04:45:34 its funny all web dev chatrooms are brimming with talk while iOS and android channels sit idle Dec 21 04:46:23 b4b web devs are all discussing the framework of the week :P Dec 21 04:46:25 not really Dec 21 04:46:36 check scala room :D Dec 21 04:46:42 or play framework Dec 21 04:46:50 it's like a dead room Dec 21 04:47:00 or zombie channel Dec 21 04:47:00 both this and #iphonedev are busier during US working hours Dec 21 04:48:15 dead? not at all Dec 21 04:48:57 for play framework ? Dec 21 04:49:06 i asked there question many times Dec 21 04:49:12 but rarely someone answers Dec 21 04:49:24 maybe spay channel is fancy now :D Dec 21 04:49:28 *spray Dec 21 04:50:39 rxjava is nic Dec 21 04:50:41 e Dec 21 04:50:43 but damn Dec 21 04:50:45 hard to test Dec 21 04:50:46 so is hitting enter it seems Dec 21 04:50:53 yes Dec 21 04:50:57 it is my new hobby Dec 21 04:53:13 having lots of problems with autocomplete in the XML editor lately Dec 21 04:53:24 i can type android:layout_gravity=" .... Dec 21 04:53:31 and nothing Dec 21 04:54:10 bankai_ you are still alive :) Dec 21 04:56:47 i am! Dec 21 04:57:05 oh look, dropzone 3 is $2 on MAS Dec 21 04:57:41 bankai_ how are the puppies ! Dec 21 04:58:48 still alive and kicking.... move up the coast a bit, so was taking them to the beach a lot, but one of them starting getting a bit too aggressive with other dogs, so had to put a stop to that :( Dec 21 04:59:06 :( Dec 21 05:05:14 bankai_ male or female ? Dec 21 05:05:27 both males, both been fixed Dec 21 05:14:28 i am trying to run an app with library and get that library to be included in debug build Dec 21 05:14:36 when i hit the debug button... Dec 21 05:17:38 Nick-S include it with debugCompile in gradle Dec 21 05:19:23 but i want to have a test project using that library to specifically use the debug variant Dec 21 05:19:53 according to this https://code.google.com/p/android/issues/detail?id=52962 its not the default behaviour Dec 21 05:23:37 this seems to be a way but so unclean Dec 21 05:23:38 http://stackoverflow.com/questions/27277433/why-does-gradle-build-my-module-in-release-mode-when-the-app-is-in-debug/30134955#30134955 Dec 21 05:35:39 maybe its not that bad Dec 21 05:36:47 g00s: but the trick is to use the productFlavors { library {} } thing which i dont' understanbd why, aren't there some implicit configurations for this? Dec 21 06:03:03 can't add libraries to build types? that's annoying Dec 21 06:44:18 https://medium.com/swlh/rxflux-android-architecture-94f77c857aa2#.6v6vn0m9t Dec 21 06:44:20 interesting Dec 21 07:15:09 i once saw a nice little article (i think in the official docs) about how to animate horizontally scrolling pages (used for a splash screen[s]) Dec 21 07:15:23 i can't find it anymore. my google-fu has dwindled Dec 21 07:30:00 So if you sign up for a developer account do you always have to insert your Card details...even though you are being invited to another persons developer account? Dec 21 07:57:19 guys, im trying to think of way to do this cleanly...basically, im making a network request, and if the request comes back with either a 400 response code OR a 429, I want to make the same request with a new parameter. Dec 21 07:58:34 orbyt_: factor out the function to take the parameter, then call it once with one param, branch on the results and if needed call it with the new parameter? Dec 21 07:58:48 So i guess I can just do a bunch of nested network calls but that screams bad design...I also tried doing a switch statement and keeping a counter of the past tries to determine which parameters to use on the next try, but that seems even worse Dec 21 07:59:01 fps: not sure what you mean Dec 21 07:59:23 nvm Dec 21 07:59:51 to add onto my question, I have a feeling Rx would do this cleanly but am not sure how to do it... Dec 21 08:05:58 fps: Are you familiar with Heads up notifications ? Dec 21 08:10:55 cart_man: nope Dec 21 08:11:17 fps: :( ok Dec 21 08:14:29 what's the issue though? Dec 21 08:14:45 don't ask to ask, just ask :) Dec 21 08:20:51 fps: I am not quite sure what the IDs of the Notifications are suppose to do. My problem is that my notifications sometimes never arrive even though I can see the event trigger did happen Dec 21 08:21:08 I believe that the ID`s might have something to do with it Dec 21 08:25:12 cart_man: are you talking about notifications in general or the "heads up notifications" app on the store? Dec 21 08:25:32 https://developer.android.com/design/patterns/notifications.html Dec 21 08:25:38 fps: The one that pops up on the top of your screen Dec 21 08:25:46 or this: https://play.google.com/store/apps/details?id=com.woodblockwithoutco.headsup Dec 21 08:25:50 oh, just usual notifications Dec 21 08:26:38 cart_man: i only remember ids from push notifications though Dec 21 08:29:09 Thats odd... I always have to give an ID and giving null or 0 just renders it useless Dec 21 08:40:08 cart_man: what api precisely are you using? Dec 21 08:52:45 using 19 Kit-Kat Dec 21 09:01:42 1 sec just restarting my machien Dec 21 09:57:09 hello. is there someone around here who is familiar with sudden death syndrome on samsung galaxy note 2 devices? Dec 21 10:09:34 Hello everyone. I have, of course, found a lot of topics on how to generally vertically align elements in a LinearLayout, but I cannot find a solution for this problem..with this XML layout on Android >= 5.0, both the ImageView and the TextView are perfectly vertically centered (and the TextView is centered with respect to the image, too). On an Android < 5.0, the TextView is almost at the same level of the top of the ImageView. Dec 21 10:09:37 The XML: http://pastebin.com/xq2kvY9N . Any hints? thanks Dec 21 10:42:47 @twilight I took a look at your layout using android studios xml design view. I looked at various versions of android and they all rendered the same, with the textview vertically aligned. Dec 21 10:47:15 sometimes the design view doesn't behave like the AVDs though Dec 21 10:51:35 phorloop: ouch, thanks for your test. So maybe it's something related to the parent view, or something in the hierarchy, it will be hard to find. ktwo sadly this is not the case, I've tested with Android 4.4 real devices, too Dec 21 10:51:35 I'm having an issue when trying to test inapp purchases. When selecting an option, instead of opening the playstore dialog with the price and buy button, it only displays an error. Dec 21 10:51:50 The error is: Error retrieving information from server. [RPC:S-7:AEC-0 ZPAQ-UTZL-UJAV2] Dec 21 10:51:59 Again, this is on the playstore side. Dec 21 10:52:06 Any idea what might cause this? Dec 21 10:53:58 The playstore itself also seems bugged. When I try to install any random app, it stops accepting my input (not a freeze) until I press the back button. I assume there's an invisible dialog there that catches my taps. Dec 21 10:55:51 twitter fabric sdk doesnt work with retrofit2 ? Dec 21 10:56:06 (i use it with different things but seems like it works on my phone but doesnt on other) Dec 21 10:58:30 twilight, yes its what i say, real devices / avd / design view - behaviour can vary Dec 21 10:59:51 Syzygy: do you have anything installed with a full-screen overlay, like a screen dimmer? Dec 21 11:01:53 no, also that doesn't explain the problem within my app. seems like an account issue? Dec 21 11:02:28 those RPC S-7 AEC-0 errors seem like google account problems from what I can read online Dec 21 11:47:13 pfn: Sorry IDCed Dec 21 12:07:04 people? Dec 21 12:07:52 can i scroll programmatically appbarlayout? Dec 21 12:08:35 i have child layout in it. And i want to hide part of it (scroll up) when view is created Dec 21 12:10:49 i mean collapsingToolBarLayout Dec 21 12:36:20 https://code.google.com/p/android/issues/detail?id=183358 well this is pretty crap Dec 21 12:54:43 hi Dec 21 13:13:39 hello Dec 21 13:14:45 I have this type of request json http://pastebin.com/Tay7cjfP Dec 21 13:15:07 and I am sending it with volley Dec 21 13:15:59 to handle this type of json format i have to create 4 type of classes Dec 21 13:16:04 pojo Dec 21 13:16:22 is is it possible to reduce it Dec 21 13:16:57 im trying to use the camera in a Fragment, and the Intent start but the onActivityResult is never called... any ideas? Dec 21 13:17:12 starts* Dec 21 13:22:45 hi, I use slidingTabLayout and slidingTabStrip from google. In my activity I use adjustPan when input box is focused. What happens is that tabsLayout is pushed up. How can I make it fixed in the top? Dec 21 13:52:01 Anyone signed up for "Cloud Test Lab" ? Dec 21 13:52:37 can anyone explain why this xml drawable http://pastie.org/10645411 on a samsung galaxy s4 results in just the specified bitmap being stretched to fill the view, with the topmost layer (solid colour) being hidden underneath? Dec 21 14:02:17 fuck it, I'll make a fucking 9 patch Dec 21 14:08:41 "Cloud test lab" anyone ? Dec 21 14:09:20 I signed up to beta last week, but now it suggests I sign up agai, is that normal ? Dec 21 14:09:33 I didnt sign up because i dont think it would be a benefit for my case Dec 21 14:10:17 Same here, I don't think I would gain much. But still I want to check it out Dec 21 14:10:31 but now confused with signup Dec 21 14:11:29 i think its aimed at companies and the ultimate aim is to get you to pay for additional testing Dec 21 14:12:06 ktwo, what do you use for testing? We are thinking about "Testdroid" Dec 21 14:12:55 it seems kinda expensive, but I love that real time access functionality Dec 21 14:13:58 I only have 10 devices to test on, and it is quite exhausting process Dec 21 14:14:07 i just test manually and make sure users dont exerpience crashes by checking the crashes & anr tab - but yea im the only developer so probably since you are talking about "we" it might be ok to get some suite Dec 21 14:15:05 I am only dev (will have another next year), but app is quite extensive Dec 21 14:15:21 As I will tahe over ios app next year Dec 21 14:16:26 i must say i didnt come over a lot of trouble yet with specific devices, so in 90% of cases it would be ok to test against a specific api level with the AVDs Dec 21 14:16:40 if youre not using a lot of native libararies, this should be fine Dec 21 14:17:26 once in awhile I get some specific Samsung model bug, such a pain to get it sorted Dec 21 14:18:18 It's just "change something and hope" methode, I can't get it sorted if I don't have specific device and report Dec 21 14:18:42 in what area was that bug? Dec 21 14:19:06 Generaly some UI issues, but sometimes it's more Dec 21 14:21:07 with UI you need to consider that touchwiz or other UI additions might overwrite the default theme, so it might help to use a common theme like appcompat and sometimes even hardcode values for things like dialogs etc Dec 21 14:22:19 For most apps it would be trivial, but I have "clients" that use it as payment method, so they call to client support and complain Dec 21 14:23:08 then I need to run around and find specific model with same versions and debug on it Dec 21 14:23:25 not pretty Dec 21 15:22:24 does android compile it's resource files like...alphabetically or something? Because I just solved a "id not found" error by renaming the layout file so it would be sorted after another layout file that had the id it needed Dec 21 15:22:27 seems really stupid Dec 21 15:24:22 Yes, it's alphabetically. But why not just use @+id? Dec 21 15:24:44 well I did in the layout where the id is defined Dec 21 15:24:52 so just use +id on the reference attribute instead? Dec 21 15:25:17 still stupid but whatevs Dec 21 15:25:52 Better than parsing all resources twice Dec 21 15:38:27 hello all, in recyclerview are index and position the same thing? Dec 21 15:39:52 documentation says index contrasts position. Dec 21 15:40:23 Says it's the child view index Dec 21 15:41:13 There are ViewGroup#getChildCount Views Dec 21 15:45:58 Thanks, SimonVT! Guess I have to read the documentation further Dec 21 16:01:28 anyone use Glide library? Dec 21 16:10:19 hey, I'm using AndridStudio on Ubuntu and I waht to see "all default android icons" that are described as "@android:drawble/*", does anyone know where its directory is? thank you for your answer Dec 21 16:10:38 i'm finding it very tedious to test in-app purchase code. Is it possible to test with debug build? Dec 21 16:11:00 it seems as though the IAP intents only show real products if the APK came from the play store Dec 21 16:19:04 Hi Dec 21 16:20:23 Any1 here? Dec 21 16:21:19 no Dec 21 16:22:25 I have a q - i own an s6 edge and apps trying to start an ad just crash instead. I've seen this asked a lot of times but no answer is given. Could you help me? Dec 21 16:22:43 Edge plus* Dec 21 16:24:47 wrong channel - see topic Dec 21 16:25:36 Hmm. Thought this is development related. Anyways, thanks. Dec 21 16:30:44 how is it development related Dec 21 17:07:20 Is anyone good with javascript? Dec 21 17:08:44 go to #javascript Dec 21 17:08:47 this is #android-dev Dec 21 17:10:18 I know, but I'm here often and was wondering if anyone had any experience for a quick answer Dec 21 17:10:59 try me Dec 21 17:11:04 but android has rotted my brain Dec 21 17:11:21 I found a piece of code for a simple image panner (image larger than container) and was wondering how hard it would be to add infinite scrolling capability, where the image would repeat itself. Dec 21 17:12:01 just put a background image on repeat and reposition it with CSS Dec 21 17:13:08 But will that function with drag and drop? Dec 21 17:13:28 http://tamaris.zero.si/panorama/pano.html <-- here's thing in its current state. Dec 21 17:13:49 I'd like for it to be infinitely scrollable horizontally. Dec 21 17:14:17 well, you'd have to progmatically handle the scrolling in that case with onmousemove and such Dec 21 17:14:34 hm Dec 21 17:14:49 does repeat-x work? Dec 21 17:15:06 TBH, I'm horrible at coding, I can only cobble together working snippets of code. Dec 21 17:15:16 Modifying by actually adding stuff is beyond my brainage. Dec 21 17:15:47 that's the easiest way I could think of it, doing actual infinite list shit would be less than trivial without other libs Dec 21 17:20:57 any recommended CI for an android project? Dec 21 17:21:13 is teamcity about as good as it gets? Dec 21 17:21:16 i don’t think any of them are recomended that much over the others Dec 21 17:21:36 CI is CI, to a large extent. I don’t think any would be better specifically for Android Dec 21 17:21:51 farout... Dec 21 17:21:54 i find that surprising Dec 21 17:21:57 why? Dec 21 17:22:05 I would have hoped that some have better integration than others Dec 21 17:22:16 why? Dec 21 17:22:33 I mean, it’s just running a build. Jenkins can do that just as well as teamcity can Dec 21 17:22:36 of course you can just have a bash script that runs gradle build... but it's kind of nicer when you have a proper plugin that parses the logs and gives you proper test reports Dec 21 17:22:52 right, but I still don’t see what would be android specific about that Dec 21 17:23:11 it usually comes down to the amount of work done in that regards Dec 21 17:23:43 and the amount of work is often driven by the amount of users Dec 21 17:23:48 which comes down to "what most people use" Dec 21 17:24:01 which then becomes a "recommended software for such n such" Dec 21 17:24:06 (back to my original question) Dec 21 17:24:34 right, but I still don’t see why any of that would be specific to android. as long as it’s decent for building java, it’ll be fine Dec 21 17:25:08 well gradle is really the key factor i think but also being able to run my androidtests and parsing the logs Dec 21 17:25:23 i think the androidtest are fairly... "android specific" Dec 21 17:25:47 no, it’s just a gradle task Dec 21 17:26:18 or more like a gradle plugin Dec 21 17:26:29 (which means that not necessarily all gradle projects use it) Dec 21 17:27:05 i dunno,,, im not here to argue over what is android specific and what isn't... i'm just curious what people use in general Dec 21 17:27:22 and how painful it is Dec 21 17:27:36 Anyone else agree that android is the worst framework that they've worked with in their long career? Dec 21 17:27:45 I gave in an ordered a 6p Dec 21 17:27:46 explodes, 100% Dec 21 17:27:47 explodes, no Dec 21 17:28:02 worst frameworks include html + js Dec 21 17:28:07 and win32 Dec 21 17:28:10 and other things like that Dec 21 17:28:13 android is far from it Dec 21 17:28:29 win32 is pretty epic too Dec 21 17:28:39 COM ATL Dec 21 17:28:50 people who make up shit like that really have no exposure to other frameworks at all Dec 21 17:29:34 or maybe we just dealt with frameworks that were worth something and didn;t waste time with the shitty ones Dec 21 17:29:48 me? Dec 21 17:29:54 Android isn’t the crappiest. But it’s definitely not the nicest Dec 21 17:30:04 it lacks polishing... Dec 21 17:30:07 there is a LOT of room for improvement Dec 21 17:30:17 god to build the NDK, i'm stuck with an experimental ALPHA plugin. Dec 21 17:30:25 if experimental wasn't bad enough Dec 21 17:30:32 to build with* Dec 21 17:31:16 some of the java stuff is alright... some of it is very behind if you compare it with ios Dec 21 17:31:20 don't build ndk using gradle Dec 21 17:31:22 that's really easy Dec 21 17:31:40 (just with the idea of "i know nothing about this... how long will it take me to get something working?") Dec 21 17:31:43 i think its normal for a huge API to need improvement, problem google has is that so many android versions are in use at once, its hard to make disruptive changes and get everyone (devs/users) on baord Dec 21 17:32:04 too late, i've set up the ndk build using gradle... it works... im not touching it Dec 21 17:32:11 apple can easily say, ok in iOS X we dropped this and you're using that now, and everyone is on baord Dec 21 17:32:50 s/baord/board :D Dec 21 17:32:50 pfn: the official recommendation from Google is to use Gradle. It’s not really easy to go against that Dec 21 17:32:58 s73v3r, not for ndk it isn't Dec 21 17:33:11 anyway, going from scratch with knowing virtually nothing about both platforms... my life was a lot easier developing the ios application Dec 21 17:33:18 slap an ndk build task into your existing build.gradle using the standard gradle plugin Dec 21 17:33:22 thats just my conclusion after working 4months on each Dec 21 17:33:23 and you're basically done Dec 21 17:36:00 s73v3r, not for ndk it isn't <-- personally following their stuff, i ended up getting the recommendation to use their experimental plugin Dec 21 17:36:03 and i'm stuck with it now Dec 21 17:36:14 maybe i was doing something special... i dont know Dec 21 17:36:29 it's fine really except that it doesn't always pick up on changes within .h Dec 21 17:36:40 the official recommendation for ndk is to build using ndk-build and Android.mk Dec 21 17:36:48 outside of that, it seems to parallelize the build fairly well Dec 21 17:38:03 what’re you using the NDK for? Dec 21 17:38:15 or it's just the typical google of "stuck between a deprecated version and a beta" Dec 21 17:38:53 to run a codebase that is mainly C++ based and shared between multiple platforms Dec 21 17:39:01 (I don't have to re-write the whole thing) Dec 21 17:39:35 ugh, damnit google store, why'd you process my order on my debit card and not credit Dec 21 17:39:38 * pfn hates missing points Dec 21 17:39:57 i still question whether it's an advantage or not... Dec 21 17:40:13 performance might become an issue and C++ might be nicer to optimize Dec 21 17:40:20 actually performance is already an issue Dec 21 17:40:39 but there's a lot of crappy stuff with the ndk Dec 21 17:41:06 the stl that i'm using has a bug where std::thread t([](){}); crashes... Dec 21 17:41:26 clang crashes if i try to use it... Dec 21 17:41:49 the directions about "how things should be done" are very unclear Dec 21 17:41:50 anyway Dec 21 17:41:52 brb Dec 21 17:41:56 somebody got swift running on rpi :D Dec 21 17:42:41 hey guys, any1 had any luck with otf fonts within an app Dec 21 17:42:43 most people’s performance issues are more because of the algorithms and data structures they use, not because they’re not using C/C++ Dec 21 17:42:57 g00s: I saw that. I need to play around with that some over the holidays Dec 21 17:44:28 the other half must be about assumption that the api does something when it does something else Dec 21 17:45:10 not saying it can't be done in java but i have an easier time knowing whats going on with my data when i'm in C++ Dec 21 17:45:21 and then if we really need to start digging deeper, i have the knowledge to do so Dec 21 17:45:55 when this gets fixed, i'l; be very happy - its making my code quite messy https://code.google.com/p/android/issues/detail?id=189121 Dec 21 17:46:46 amazingly, the status is still 'needsinfo' Dec 21 17:46:56 how in the holy hell could they release something without testing that very basic use case? Dec 21 17:46:56 like, don't you guys have test cases for this? apparently not Dec 21 17:47:26 it’s stuff like this that puts Android on the list of “crappiest platforms to dev for” Dec 21 17:53:53 isnt that the same problem as onActivityResult? Dec 21 17:54:20 i imagine it’s similar. same cause, probably Dec 21 18:11:58 s73v3r> how in the holy hell could they release something without testing that very basic use case? <-- i've done that once... Dec 21 18:12:10 yeah, but you’re not Google Dec 21 18:12:10 i could probably blame the QA but yeah... Dec 21 18:12:46 nested fragments aren't a basic use case Dec 21 18:12:48 they're things that happens... Dec 21 18:13:01 they are a pretty basic use case Dec 21 18:13:18 i remember that one was a project that did 1 thing... Dec 21 18:13:19 only 1 Dec 21 18:13:20 they're pretty much a corner case, nested fragments are not commonly used Dec 21 18:13:22 and we messed it up Dec 21 18:13:36 they’re only not commonly used because they’ve been so fucked up Dec 21 18:13:46 and then on top of that, requesting permission within a nested fragment is even less commonly done Dec 21 18:14:31 requesting permissions at all isn’t comonly done, because it just got into the damn OS Dec 21 18:14:44 i don’t buy your arguments at all Dec 21 18:15:40 no, requesting permissions from a nested fragment is absolutely rarely done Dec 21 18:16:03 because requesting permissions has just recently become a thing Dec 21 18:16:30 no, because no one in their right mind uses nested fragments Dec 21 18:16:31 and if nesting fragments hadn’t been royally fucked up, it’d be much more common, because people would want fragments to be quite self contained Dec 21 18:16:41 again, because google royally fucked them up Dec 21 18:16:52 eh, because there's no advantage to using nested fragments Dec 21 18:17:12 there is plenty of advantage to using them, especially if you want to support larger format screens Dec 21 18:17:31 simple example is reuseable viewpager Dec 21 18:19:09 not particularly, not nested Dec 21 18:20:32 i’m sorry, but just because you don’t use something doesn’t make it a corner case, nor does it make it acceptable that Google just glossed over it when releasing the platform Dec 21 18:21:00 i see nested fragments as just the android way of hierarchical controllers (MVC), which is pretty common Dec 21 18:21:44 for example, in my activity i have a nav drawer that swaps out fragments, pretty common stuff right? but its easy to see how those fragments themselves can have fragments Dec 21 18:22:18 just because I nor any of the dozen or so commercial projects I've worked on Dec 21 18:22:18 for example, in one screen I have SlidingPaneLayout, which has a fragment on left, and one on right Dec 21 18:22:23 corner case Dec 21 18:22:42 no Dec 21 18:22:55 yeah, you do it every day, right? nested fragments + request permissions Dec 21 18:23:05 it's a corner case Dec 21 18:23:08 no, it’s not Dec 21 18:23:19 you can argue that it's not all you want, doesn't make it less true Dec 21 18:23:29 and you saying it is makes it true? Dec 21 18:23:41 http://i3.kym-cdn.com/entries/icons/original/000/017/135/d64.gif Dec 21 18:24:10 the number of votes on the issue is relatively small Dec 21 18:24:16 it's pretty much a corner case Dec 21 18:24:19 this is something that absolutely should have been caught by Google’s testing. end of story Dec 21 18:24:31 good for you, apply to work in qa for them Dec 21 18:24:34 maybe you can fix things up Dec 21 18:24:55 as opposed to you, who would say everything is fine, and things that are broken are “corner cases" Dec 21 18:25:09 I never said it's not a bug Dec 21 18:25:16 I said it's a corner case that received less than normal attention Dec 21 18:25:26 corner cases happen, and they go untested Dec 21 18:25:58 i think one of the problems with fragments, is that they can have two types of parents: an activity or another fragment. I think the nesting is good, after all we nest views, why wouldn't we nest controllers - but there should just be one abstraction. Dec 21 18:26:04 if you think you can do 100% code coverage, have at it Dec 21 18:26:27 this isn’t about 100% code coverage. this is about a major flaw Dec 21 18:26:32 it's not major Dec 21 18:26:34 it is Dec 21 18:26:40 google certainly doesn't think so Dec 21 18:26:43 I agree with them Dec 21 18:26:56 google has proven themselves incompetent with android on several occasions Dec 21 18:26:57 you can think it's a major flaw all you want Dec 21 18:27:11 good, time for you to fork and make your own that's better without the incompetencies Dec 21 18:27:56 seriously? you honestly think it’s ok to have a platform released with such glaring fuck ups Dec 21 18:28:08 glaring? but it's not Dec 21 18:28:11 no one uses nested fragments Dec 21 18:28:11 but it is Dec 21 18:28:18 even fewer people request permission from a nested fragment Dec 21 18:28:19 clearly people do Dec 21 18:28:28 any fragment can be a nested fragment Dec 21 18:29:10 and if you’re using fragments at all, it would make perfect sense for a fragment to want to handle it’s own permissions. Dec 21 18:29:11 for main build.gradle I have this: http://pastebin.com/NN925CkX . I have added org.apache.http.legacy.jar to the project under libs and I have tried EVERYTHING. but I still get Warning:Unable to find optional library: org.apache.http.legacy on build. please assist. Thanks Dec 21 18:30:24 I wonder why that happens Dec 21 18:31:27 impliednude, ls $ANDROID_HOME/platforms/android-23/optional Dec 21 18:32:57 I’m ashamed to ask, but where’s the documentation for the Trust Agent API? Dec 21 18:33:28 you have to be trusted to get it Dec 21 18:33:39 Seriously? Dec 21 18:33:50 time to disassemble apps then to get it Dec 21 18:33:56 org.apache.http.legacy.jar and am on windows Dec 21 18:33:59 trust agent? yeah, you need system permissions Dec 21 18:34:08 that’s easy, Dec 21 18:34:22 I just want for myself a small smart lock app that uses the currently connected WiFi, Dec 21 18:34:23 and the API is in lollipop+ or kitkat+ don't recall Dec 21 18:34:26 and which is open source Dec 21 18:34:29 (it’s L+) Dec 21 18:34:33 just for personal use Dec 21 18:35:48 justJanne, the only way, afaik, to write a trust agent is if you're signed by the firmware key Dec 21 18:36:01 justJanne, so you're also going to have to custom build a rom Dec 21 18:36:11 dragorn: AOSP says it just needs to have system permissions Dec 21 18:36:37 yup. the only way to get that is to be installed in /system or be signed by the firmware key. Dec 21 18:36:40 And considering that GSF can be updated, Dec 21 18:36:41 so i suppose, rooted Dec 21 18:36:46 and that GSF supports smart lock, Dec 21 18:36:49 it has to be possible Dec 21 18:37:13 so you have to have a non-dm-verity device, and be rooted. Dec 21 18:37:19 you'll lose android pay, etc Dec 21 18:37:28 Eh, Android pay isn’t available in my region anyway Dec 21 18:37:35 Despite most stores having NFC Dec 21 18:37:42 and it's all @hide anyway Dec 21 18:37:48 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/service/trust/TrustAgentService.java Dec 21 18:37:56 looks pretty simple, I guess Dec 21 18:38:22 writing a trust agent isn't hard. getting a device to use it is a fair bit more difficult. Dec 21 18:38:33 well, it’s only for personal use. Dec 21 18:38:35 and hilariously, compromises a lot of the security systems to do so :P Dec 21 18:38:45 but it looks like Lollipop breaks the AOSP definition, Dec 21 18:38:49 well, trust agents allow compromising security Dec 21 18:38:52 and only supports one single trust agent at a time, Dec 21 18:38:56 and only in a com.google package Dec 21 18:39:11 so, time to disable GSF updates and modify that package, I guess? Dec 21 18:39:11 pfn, and disabling verity, rooting, disabling boot security, etc doesn't do you any favors either :P Dec 21 18:39:29 dragorn: trusting a trust agent from a US corporation is far worse, though. Dec 21 18:39:36 justJanne, no, you would just disable the smart lock trust agent and enable your own Dec 21 18:39:37 at least I know which backdoors I enabled. Dec 21 18:39:46 * pfn prefers location smart lock vs. wifi Dec 21 18:39:50 pfn: Oh, that works? k, then gonna do that. Dec 21 18:39:51 it's considerably better Dec 21 18:39:57 How? Dec 21 18:40:11 it’s less secure and uses more battery Dec 21 18:40:11 how? someone puts up their own bogus ap that's the same ssid Dec 21 18:40:16 no? Dec 21 18:40:26 I can require that I am /connected/ to a non-open AP Dec 21 18:40:32 and it uses no additional battery Dec 21 18:40:32 then it has to be the same network Dec 21 18:40:42 pfn> got any advice? ^_^ Dec 21 18:40:49 impliednude, nope, never ran into that problem Dec 21 18:41:07 impliednude, you're on compileSdkVersion 23 properly, and useLibrary org.apache.http.legacy Dec 21 18:41:07 pfn: Location smart lock requires having location on, that requires battery Dec 21 18:41:10 beyond that, dunno why it owuldn't work Dec 21 18:41:14 especially if you enable location access for google, Dec 21 18:41:15 justJanne, I always have location on anyway Dec 21 18:41:25 as it then activates GPS every 5 minutes to map the local WiFi network Dec 21 18:41:25 so for me, it requires no additional battery Dec 21 18:41:44 And it’s less secure, Dec 21 18:41:51 as it determines location by asking a remote server, Dec 21 18:41:59 which can, at any time, return a bogus answer. Dec 21 18:42:01 what if our brains had a unique ID we could send to locks? 0.o Dec 21 18:42:16 helix1: then you’d have verified a username, not a password. Dec 21 18:42:17 helix1, then you'd get hacked and the ID copied Dec 21 18:42:27 Biometrics are usernames, not passwords. Dec 21 18:43:03 true xD Dec 21 18:43:07 never make the password something you can't change Dec 21 18:44:45 pfn: the thing is, WiFi AP connection status (you are connected to that network) is impossible to fake, and requires no additional power. You can even combine it with an app that automatically turns on WiFi if you are connected to the same base tower ID as your home region. Dec 21 18:44:53 how can i scroll up part of appbarlayout? Dec 21 18:45:12 justJanne, indeed, you could Dec 21 18:45:44 as for impossible to fake, that's still not true Dec 21 18:45:48 when i programmatically scroll recyclerview, appbarlayout just don't give a shit Dec 21 18:46:14 pfn: no? it’s impossible to fake Dec 21 18:48:17 as the whole network challenge-response-auth is safe Dec 21 18:48:29 up until someone discovers your PSK Dec 21 18:48:39 unless you're using 802.11x Dec 21 18:48:59 i.e. using your home network shared with friends and other acquaintances Dec 21 18:49:19 well, the network I care about uses client certificates for auth Dec 21 18:49:24 x509 Dec 21 18:49:38 I guess you're all set then Dec 21 18:49:44 the only place I care to ever turn that on is at home Dec 21 18:49:46 and it's just PSK Dec 21 18:49:49 yup, as I said, it’s only about for personal use Dec 21 18:49:52 I wouldn't turnt hat on at work Dec 21 18:50:13 much larger attack surface at work (cleaning staff, etc.) Dec 21 18:50:24 and I don't use 802.11x at home Dec 21 18:52:09 https://play.google.com/store/apps/details?id=com.hanhuy.android.bluetooth.keyguard Dec 21 18:52:12 * pfn used to do that once upon a time Dec 21 18:54:06 well, pfn, that’s an interesting idea, too Dec 21 18:54:13 using device admins Dec 21 18:54:21 doesn't work in 5.0+ Dec 21 18:54:26 google broke it, see bug link Dec 21 18:54:29 Yup. Dec 21 18:54:37 Well, it kinda works. Dec 21 18:54:41 but only for Google apps. Dec 21 18:55:15 how do you guys parcel booleans? supposedly writeValue(Object) should work Dec 21 18:55:58 grekkos, writeByte((byte)(isTrue ? 1 : 0)) Dec 21 18:56:12 isTrue = readByte() == 1 Dec 21 18:56:44 just wondering what other people do Dec 21 18:56:51 I've also read that writeByte actually writes an int Dec 21 18:56:59 doesn't matter Dec 21 18:57:03 write an int if you like Dec 21 18:57:05 same difference Dec 21 18:57:20 I was just curious if you knew anything about that or not Dec 21 18:57:21 writing byte could be more efficient, but yes, it doesn't matter if it just 32-bit aligns Dec 21 18:57:24 cause byte sounds like it would be better Dec 21 18:57:30 doesn't matter either way Dec 21 18:58:08 and yes, it does writeInt as its implementation Dec 21 18:58:34 I guess I should have android sources somewhere that I could have checked that myself... lol sorry about that Dec 21 18:59:56 hello there Dec 21 19:00:10 my app needs an internet connection to display content Dec 21 19:00:27 in case there isn't a connection, I am currently only displaying a warning Dec 21 19:01:09 but the app's components like buttons and stuff still appear, how can I make them disappear if there is not a connection? ie, a white screen for example Dec 21 19:01:10 unless you have cached content, that’s about all you can do Dec 21 19:01:35 yapme: toggle their visibility maybe? Dec 21 19:01:42 if(noInternet) myButton.setVisibility(View.GONE) Dec 21 19:01:46 when you start up, check for internet connection. If you don’t have one, then show your new blank screen view Dec 21 19:02:23 unless you only have one or two items, don’t mess with visibility. that’ll just be a headache to maintain Dec 21 19:02:24 or put a view over all of it w/ an alpha filter. or set the alpha filter on your UI elements and disable the onclick handlers. You can do anything youf eel like, really Dec 21 19:03:01 all I want to do actually is hide the search bar Dec 21 19:03:06 look into overlay views? Dec 21 19:03:08 as they are still able to search and it will crash Dec 21 19:03:18 sounds like something you should fix Dec 21 19:03:25 there is no reason that should crash Dec 21 19:03:48 it is crashing because my search bar is only filtering an array Dec 21 19:03:57 but I there is no connection, the array will be empty Dec 21 19:04:13 and? Dec 21 19:04:23 what if you had a connection, but it didn’t return anything? Dec 21 19:05:09 if it didn't return anything it displays nothing Dec 21 19:05:22 if it tries to search on an empty array it gives null pointer exception Dec 21 19:05:25 your search methods should be taking into account an empty array Dec 21 19:05:37 yeah I could fix it Dec 21 19:05:44 so do so Dec 21 19:05:49 but I also think it doesn't make much sense having a search bar Dec 21 19:05:59 if there is no connection Dec 21 19:06:48 looks like something got screwy on update for android studio (I used to run 0.9.x and updated to newest) So now I have to erase sdk and download again >.< Dec 21 19:07:56 i believe that happened between 0.9 and 1 Dec 21 19:08:17 why would u have to erase the sdk though? Dec 21 19:08:32 they moved the location of the SDK Dec 21 19:08:38 It's just what everyone recommended Dec 21 19:08:52 impliednude, no optional.json in the optional directory? Dec 21 19:08:55 Yea exactly, you can just have to move it out of the same directory your AS installation is in Dec 21 19:09:05 just move* Dec 21 19:09:30 pfn> nopers. and just doing this as a safety measure. Dec 21 19:10:23 impliednude, if you're missing the optional.json, you need to re-install the android-23 platform, that's all Dec 21 19:11:05 pfn> gotcha. just weird how they changed it Dec 21 19:11:11 nothing changed Dec 21 19:11:18 probably the default SDK bundle is broken Dec 21 19:11:21 when you installed AS Dec 21 19:11:31 since the default SDK bundle usually includes the latest platform Dec 21 19:11:41 Thanks for info Dec 21 19:11:43 they probably fucked up and forgot to ship optional.json Dec 21 19:11:46 re-install android-23 Dec 21 19:12:06 people Dec 21 19:12:17 pfn: it is ridiculous, though, that they allow device administrators, but not trust agents. And it is inacceptable that they limit trust agents to either Google apps or the company who shipped the firmware Dec 21 19:12:35 justJanne, the api hasn't been fully fleshed out Dec 21 19:12:40 how can i set initial size of collapsingToolbarLayuout? Dec 21 19:12:42 justJanne, is the most likely reason Dec 21 19:15:13 ondroed, the same way you set if for any other view Dec 21 19:15:23 layoutmanager or xml Dec 21 19:15:35 also, expect things to become increasingly locked down in the future. doze and GCM priority is a good example. Dec 21 19:15:44 pfn: I found something that works, though! Dec 21 19:16:09 I love whoever made https://github.com/nelenkov/ghetto-unlock Dec 21 19:17:36 danijoo: i need it was scrolled up. I mean i have colapsingLayout and recyclerview. CollapsingLayout contains grid with 4 images. I want to show only two bottom. But user can scrool up to see all 4 images Dec 21 19:18:16 kotlin website got search \o/ Dec 21 19:18:54 g00s, the search box is not working for me :D Dec 21 19:19:37 danijoo i guess its beta :D Dec 21 19:20:05 haha Dec 21 19:20:33 meh.. AS 2.0 crashed again -_- Dec 21 19:20:38 So I think I may need some help, here’s the issue, I’m trying to create a .jar to be imported into Unity 3D. Currently it works with the toast functionality but when I try and do it with other modules it crashes at runtime with a noclassdefFoundError. Dec 21 19:20:43 Which means that the modules were there at compile time but are no longer there at run time, so I’ve been trying to get the modules into the jar so they will be there at run time but have had no success. I’m so frustrated with it, I’m willing to buy somebody a beer if they can help/do it for me. Dec 21 19:20:56 https://dl.dropboxusercontent.com/u/25973311/ShareText.zip Dec 21 19:21:21 your daily wtf "Database leak exposes 3.3 million Hello Kitty fans" Dec 21 19:21:48 Ombra, noone will be stupid enough to download a random zip Dec 21 19:23:16 * impliednude see's peeps start clinking link to prove counterpoint Dec 21 19:23:54 * danijoo sees people quickly stopping the download acting like they never clicked Dec 21 19:25:43 people Dec 21 19:26:48 do you even partially collapse collapsingLayout? Dec 21 19:29:16 @danijoo So would putting it on git be a better alternative? Dec 21 19:29:26 yes Dec 21 19:36:30 Anyone know of any examples of using retrofit/rx to chain network calls with different parameters if the previous call fails/returns a response other than 200? Dec 21 19:37:10 Im currently accomplishing this with a couple nested callbacks and i know Rx is good for avoiding callback hell Dec 21 19:42:33 there should be some kind of recoverWith Dec 21 19:50:36 pfn: Im not finding anything called recoverWith Dec 21 19:51:24 I see a couple error handlers but not sure which if any ur referring to Dec 21 19:51:33 onErrorReturn Dec 21 19:56:46 so is an onError thrown by default if anything but a response code of 200 is received? Dec 21 19:58:55 I dont think its thrown for 302 Dec 21 20:03:42 do you guys do anything special for creating intents to other activities within your application or do you just create the intent where you need it? I'm wondering if there are any tricks to getting around throwing string literals around for intents and extras Dec 21 20:04:09 I like that it's more loosely coupled but misspellings can cause issues Dec 21 20:05:30 grekkos, write constants Dec 21 20:06:00 define a public static final String EXTRA_USER_ID = ¨userID¨; for example Dec 21 20:06:03 danijoo: that's what I do now, I was just curious if anyone's tried anything else Dec 21 20:06:05 and then use that variable Dec 21 20:06:14 like factory methods for intents Dec 21 20:06:21 i do that Dec 21 20:06:33 but only if I need an intent on _a lot_ of places Dec 21 20:06:34 Hey guys why do I have example in my package name? How do get rid of it -> com.example.bill.app Dec 21 20:06:35 do you place them in the activity or a separate factory class Dec 21 20:06:36 not really common Dec 21 20:06:43 ah okay Dec 21 20:07:01 cart_man: you named your package com.example when you created the project Dec 21 20:07:13 Yea anyway to get rid of it now? Dec 21 20:07:13 cart_man: you should be able to refactor > rename it somewhere I think Dec 21 20:07:42 when I try that it only allows me to rename the end of the package ... like .app part Dec 21 20:07:58 cart_man: I would try going into the project explorer and refactor rename that (in "Project" view from the dropdown) Dec 21 20:08:32 cart_man: or you may have to do it as a move instead of a refactor, if that's an option... I forgot how to do it off the top of my head Dec 21 20:09:52 also dont forget to rename app package in manifest/gradle Dec 21 20:10:42 Ok but the users wont really ever see the package name right Dec 21 20:10:43 ? Dec 21 20:10:53 I mean the entire thing Dec 21 20:10:58 its part of the play store url Dec 21 20:11:05 if that matters for you Dec 21 20:11:11 Hmm not really Dec 21 20:11:17 so it will be in every link leading to your app if you share it Dec 21 20:11:29 sigh... Dec 21 20:11:38 at the same time, having “example” in your package name just screams amatur hour Dec 21 20:11:47 s73v3r: Yea no doubt Dec 21 20:11:48 ^ this Dec 21 20:12:45 well I am an armature so I do not mind Dec 21 20:12:54 but I can avoid looking like one I guess Dec 21 20:13:11 given that it’s so easy, i can’t see any reason not to change it Dec 21 20:14:11 generally the package name helps identify the developer Dec 21 20:14:17 great that AS flags using the wrong namespace, i keep saying android:XXX when i should say app:XXX - i'd be totally screwed without that guidance Dec 21 20:14:22 if nothing else, you don’t control com.example, I assume - you really don’t want to use that since it’s not your namespace. it’s unlikely that someone else will have a ‘com.example.bill.app’, but it’s possible Dec 21 20:14:24 s73v3r: Yea I am trying now although I can not seem to get on top of it yet. Change the file paths and the go into every class and change the package name ther as well Dec 21 20:16:00 also in Gradle and manifest Dec 21 20:16:05 does that sound right? Dec 21 20:16:23 yeah, I think so Dec 21 20:16:50 huh, I didn’t know com.example was actually reserved: http://www.iana.org/domains/reserved Dec 21 20:17:02 I wonder whether the play store will publish an app that uses that? Dec 21 20:23:10 duboisj, i think it doesnt because https://play.google.com/store/apps/details?id=com.example doesnt exist Dec 21 20:23:18 someone whould 100% did this ^^ Dec 21 20:24:00 it seems that whenever I put 2 or more children in a AppBarLayout Dec 21 20:24:03 everything breaks Dec 21 20:24:17 the coordinator stuff does not seem to trigger properlly Dec 21 20:24:27 and the children in the AppBarLayout dont get displayed Dec 21 20:24:30 would that link exist if an app used com.example.xxx ? I don’t see a com.adobe link either, but there is a com.adobe.reader Dec 21 20:24:42 appbar layout only supports 1 sibling Dec 21 20:24:45 iirc Dec 21 20:24:52 well that's not true, the added child does not display Dec 21 20:24:54 interesting Dec 21 20:25:00 i thought it extended LinearLayout Dec 21 20:25:07 a vertical one Dec 21 20:25:26 duboisj, yeah but someone would have grabbed com.example for sure :) Dec 21 20:25:35 er, which are you talking about, you mean putting multiple views inside of appbar layout? Dec 21 20:25:43 someone like me? Dec 21 20:25:43 yea Dec 21 20:25:44 that should work Dec 21 20:26:27 meh, why isn't the 6p available for google express... Dec 21 20:27:29 Could a package name consts of something like com.bill.appname ? Dec 21 20:27:46 interesting, if I put the View on top of the MinHeightCollapsingToolbarLayout, then I can see the view, but the collapsing toolbar no longer collapses Dec 21 20:27:54 cart_man, https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Dec 21 20:32:34 so yea I'm thinking AppBarLayout only supports 1 child Dec 21 20:33:03 or maybe CollapsingToolbarLayout is just broken Dec 21 20:38:32 Ok so it seems to be working accept that the folder thingy on AS itself now only goes com -> bill.app AND NOT com.bill.app Anymore Dec 21 20:40:09 cart_man: you don’t really want com.bill.app either. You want, e.g., com.cart_man.bill.app, or com.something-you-just-made-up-yourself.bill.app. You shouldn’t use a domain that doesn’t belong to you, especially one that actually exists and doesn’t belong to you. Dec 21 20:40:30 for example, www.bill.com is a real place. someone else has it, so you shouldn’t publish with that. Dec 21 20:41:10 If it’s only on your own device, it probably doesn’t matter, but if you’re giving out your app it’s not a good idea Dec 21 20:43:32 duboisj: Ok so lets say I do not have a domain .. just make one up? Dec 21 20:43:40 just make sure nobody else has it? Dec 21 20:44:02 I don’t know the rules for publishing in the play store with a made up domain, but that’s probably fine. Dec 21 20:44:18 they dont really care Dec 21 20:44:48 luckily for me cart.com does not exist Dec 21 20:44:56 yet Dec 21 20:44:58 but I get what you are saying Dec 21 20:44:59 that’s still fairly generic. Dec 21 20:45:06 true Dec 21 20:45:15 but e.g., cart_man is a little safer ;-) Dec 21 20:45:44 anyway, up to you. but the general idea is for that thing to identify you globally. Dec 21 21:07:51 could someone please tell me what the outcome would be if I Incremented my HeadsUp Notifications ID everytime it got called to fire ? Dec 21 21:08:39 lots of motifications instead of one Dec 21 21:09:21 danijoo: But can it potentially stop another one from popping up at all? Dec 21 21:09:38 notification ids are per app Dec 21 21:09:50 don't abuse heads up notifications Dec 21 21:13:29 pfn: Yea but they want what they though... I did advise them against abusing it though Dec 21 21:31:18 hmm can you use a FAB in a Widget..? Dec 21 21:31:25 cant Dec 21 21:31:44 because its not a supported view? Dec 21 21:31:53 tes Dec 21 21:31:55 yes Dec 21 21:33:17 yea thought so ty Dec 21 21:42:25 Do you guys have anything you use for creating quick rest api's for apps? I was thinking of just using django or laraval Dec 21 21:43:21 Taios there is https://github.com/begriffs/postgrest Dec 21 21:44:17 Sweet thanks g00s i'll check it out :). Dec 21 21:44:22 slim framework is nice too (php) Dec 21 21:44:29 lol no php Dec 21 21:44:36 * g00s smacks danijoo Dec 21 21:44:39 :p Dec 21 21:45:22 lol, i'm pretty comfortable in php =). Dec 21 21:45:32 g00s postgrest is written in Haskell??? Dec 21 21:45:53 uh, yeah vaguely remember that ... Dec 21 21:46:47 Mental.. :D. The lecturer of my old university was one of the founders of Haskell...he was also quite mental and had haskell clothes. Anyway, ty =) Dec 21 21:49:12 for anyone using the NDK https://android.googlesource.com/platform/ndk.git/+/master/CHANGELOG.md Dec 21 21:50:05 Taios, i know php is the black sheep of programming, but i found slim and laravel to both be easy options for setting up a restful api Dec 21 21:50:28 rails is nice too Dec 21 21:59:34 rails is nice? lolwut Dec 21 21:59:42 if you want to set something up in 5 minutes, ok Dec 21 21:59:50 to build anything on it for longer than a week, no Dec 21 22:00:17 To be fair, that is what Taios was asking for Dec 21 22:01:09 twitter was built on rails... Dec 21 22:01:46 orbyt_, dont argue with pfn. You hates everything thats not used by him :p Dec 21 22:02:04 twitter /was/ built using rails initially Dec 21 22:02:16 their backend hasn't been rails in years Dec 21 22:02:17 ive never used it i was js Dec 21 22:02:37 yea i know i read the werent able to scale well Dec 21 22:02:40 they* Dec 21 22:02:50 i think it was 2011 Dec 21 22:02:57 any idea why my first element of listview is under the toolbar? Dec 21 22:03:11 yapme, maybe you used appbarlayout Dec 21 22:03:20 danijoo, you're always so very wrong Dec 21 22:03:23 and didnt nest it Dec 21 22:03:53 yep, I did Dec 21 22:04:19 yapme, if you want it to work with plain ListView, you have to enable the nesting behaviour Dec 21 22:04:25 (will only work 21+ ) Dec 21 22:04:47 what are the alternatives? Dec 21 22:04:52 recyclerview Dec 21 22:05:20 Ok, I will give it a look Dec 21 22:05:21 thank you Dec 21 22:05:50 pre-21 only recyclerview and nestedscrollview have nested scrolling behaviour :/ Dec 21 22:14:12 so i am reading this http://googledevelopers.blogspot.com/2015/12/how-twitter-used-doze-in-android-60.html Dec 21 22:14:30 "One other best practice that Twitter used was in transmitting larger payloads, such as when delivering Twitter Highlights. In this case, they opted to pass metadata in the notification, which was then used to sync the application to get the requested Highlights" Dec 21 22:14:54 one question i have, is are they ALWAYS using GCM to push updates, even when app is in foreground ... Dec 21 22:15:07 or when the app is in the foreground, are they switching to something else like websockets Dec 21 22:15:36 so who all uses android tv boxes ie KODI etc Dec 21 22:17:07 g00s: at least while I’ve used it, the update is periodic. I’d imagine they’d be able to use GCM for that Dec 21 22:17:33 s73v3r interesting, i guess that simplifies things a bit - now i wonder what would one do for real-time Dec 21 22:18:08 maybe GCM in background, websockets in foreground Dec 21 22:18:25 i believe I’ve seen some kind of library offer that before Dec 21 22:18:26 g00s, i know that whatsapp uses gcm for background and then switches to an xmpp-fork Dec 21 22:19:04 so yeah.. websockets Dec 21 22:19:06 how does one delete a SQLite database on device? Dec 21 22:19:18 I could use some help with some code to play a tone every second, along with a timer animation, and increasing the tone rate in the last 2 seconds, just like the stock camera. Based on various advice, I'm starting with the following method: Dec 21 22:19:28 https://www.irccloud.com/pastebin/zDsUkDCQ/ Dec 21 22:19:48 This doesn't fail, but it also doesn't make a sound. Dec 21 22:20:06 on my test phone, that is (galaxy note 3) Dec 21 22:20:22 s73v3r you can do it from Settings app, do you mean in code ? Dec 21 22:20:33 yeah, in code Dec 21 22:20:39 just delete the file Dec 21 22:20:49 your app can access the directory Dec 21 22:21:41 ok Dec 21 22:22:25 is there anything other than that which would result in the db file being deleted? Dec 21 22:23:40 you opened it already :D Dec 21 22:24:08 i've had to kill the process and delete it to be safe Dec 21 22:24:11 are you being silly, or is that an actual thing, that multiple connections to the db can delete it Dec 21 22:25:02 i remember not being able to delete it for sure unless i killed the process Dec 21 22:25:19 but as long as you delete it before your SqliteOpenHelper runs Dec 21 22:25:38 unless you specifically close all connections Dec 21 22:26:13 ahh. I’m trying to track down an issue where it seems as if the DB has been deleted Dec 21 22:32:31 any idea how to fix a fatal build error in :app:transformClassesWithDexForDebug Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)? Dec 21 22:33:16 i tried forcing the JDK to 1.7.0_79 (which has been reported to fix this on the interwebs) but I'm still unable to build Dec 21 22:34:08 i'd clear the whole project (file->invalidate caches and restart) Dec 21 22:35:08 assuming that was the error and the fix, it might have something broken cached Dec 21 22:35:32 ok, thanks, let me try it Dec 21 22:38:58 this is quickly turning into one of those 'delete everything and start all over again' kind of issues Dec 21 22:39:13 what did you change? Dec 21 22:40:09 I'm not sure, i noticed that my changes weren't taking effect no matter what i did Dec 21 22:40:16 then i realized compilation broke at some point Dec 21 22:40:54 i added a few dependencies, might have been around that time and I just didn't realize Dec 21 22:42:04 id roll back to when this occured first and then apply the changes one by one again until it breaks Dec 21 22:42:14 just go through your commits if you are using git Dec 21 22:42:28 i hadn't committed this yet because it's still not really doing that much Dec 21 22:42:33 time to start over again i think Dec 21 22:51:02 Interesting fun fact: if you uninstall or freeze an app that is used as trust agent, the system refuses to boot anymore Dec 21 22:51:47 oh. Dec 21 22:52:03 I just found out Dec 21 22:52:11 it doesn’t even get far enough to run adb anymore Dec 21 22:53:36 I’m making a backup and then factory reset Dec 21 22:58:07 kommunicate, set javacOptions or whatever it is Dec 21 22:58:11 -target/-source 1.7 Dec 21 22:59:00 pfn: I tried that but I'm still getting the error. I hadn't actually written much code so I think it'll be faster to just wipe the project and start over Dec 21 22:59:14 kommunicate, gradlew clean assemble Dec 21 22:59:19 and it goes in app/build.gradle Dec 21 22:59:28 ok, i'll give this a quick go Dec 21 23:00:34 still no luck Dec 21 23:13:51 Hello everybody o/ Dec 21 23:55:21 With my "table of contents" navigation drawer, I open a fragment when I select an item and close the drawer. Works great. When I select certain items, the orientation is rotated to SCREEN_ORIENTATION_LANDSCAPE but the drawer stays open. Dec 22 00:05:42 Even with reinstalling android-23 and clean build. I am still getting Warning:Unable to find optional library: org.apache.http.legacy Dec 22 00:05:57 and it's driving me insane honestly Dec 22 00:06:30 optional.json is in the directory. I am on windows. Anyone have any idea what to do to fix it? Dec 22 00:35:02 why is gradle raising VC funding ... Dec 22 00:42:10 gradle.com will offer some kind of SaaS Dec 22 00:53:16 cause gradle would like to pay their employees? Dec 22 01:04:36 gradle.com looks like a website from the 00's :D Dec 22 01:05:07 wow Dec 22 01:13:36 does anyone here use assertions in android? Dec 22 01:19:05 no Dec 22 01:20:09 * pfn shrugs Dec 22 01:20:17 * pfn has never had a problem with org.apache.http.legacy Dec 22 01:20:35 building it with gradle or otherwise, as long as you have optional.json and the jar there, it should be picked up fine by useLibrary Dec 22 01:20:42 only possibility is if ANDROID_HOME isn't what you think it is Dec 22 01:27:17 pfn> I am just reinstalling android studio entirely Dec 22 01:27:25 that won't help Dec 22 01:27:39 check ANDROID_HOME and android-23 is there correctly Dec 22 01:38:41 I have an activity with two fragments that share a screen in 70/30 percent. I made the 30 percent fragment to be hiddeable by pressing a toolbar button Dec 22 01:39:06 I want the other 70 frag to take the whole screen now, so i set the 30 frag container weight to 0 Dec 22 01:39:41 The weight change is being done though a ValueAnimator, and evertything works smooth except one thing. Dec 22 01:40:10 The contents of the 30% fragment are squized during the weight adjustment Dec 22 01:40:32 and you can see their heights become bigger. Dec 22 01:40:38 How can i prevent this? Dec 22 01:50:24 DrGamatos: would it be better to just set the 30% fragments visibility to gone? Dec 22 01:50:56 i do this, but the fragment's container (FrameLayout) is still there! Dec 22 01:51:13 do the same thing with the framelayout then? Dec 22 01:52:16 orbyt_: And will the other framelayout resize automatically? Dec 22 01:53:00 I am on windows. and the system says its correct. C:\Users\maddie\AppData\Local\Android\sdk1 Dec 22 01:55:56 DrGamatos: setting the visibility to gone will make it so the view isnt accounted for when measuring Dec 22 01:56:12 i dont know how your layout is setup so i cant say, why not just test it..? Dec 22 01:56:28 orbyt_: happens when you have specified weights too? Dec 22 01:57:13 what the measuring? Yea, setting it to gone makes it act as if it doesnt exist Dec 22 01:58:03 Because i do set it to GONE and all i see is an empty space :P Dec 22 01:58:26 DrGamatos have you looked at SlidingPaneLayout ? Dec 22 01:59:15 g00s: You gotta be fuckin kiddin' me Dec 22 01:59:29 g00s: I spent around 4h making this shit Dec 22 01:59:30 ? Dec 22 01:59:35 oh , ha Dec 22 01:59:39 and its already implemented Dec 22 02:00:02 DrGamatos: if your view is .7 and your weight sum is 1 or something than obviously itll stay that way Dec 22 02:00:22 orbyt_: i dont' have sum. Dec 22 02:00:23 DrGamatos good blog entry with tricks http://blog.sqisland.com/2015/01/partial-slidingpanelayout.html Dec 22 02:02:07 g00s: Can this layout resize instead of push the other fragment? Dec 22 02:03:49 not sure, i used the defaults Dec 22 02:06:08 is there a way to make ProgressBar show up in AS Preview ? Dec 22 02:06:16 mine seems invisisible Dec 22 02:06:16 pfn> thing is, I checked and it all matches up. So I am confused. **** ENDING LOGGING AT Tue Dec 22 02:59:58 2015