**** BEGIN LOGGING AT Thu Dec 08 03:00:02 2016 Dec 08 03:14:10 is there something on my code that would obviously throw a nullpointer exception error? http://pastebin.com/Wtxf5H62 i haven't been able to find it Dec 08 03:18:47 if you're getting one, check the stack trace Dec 08 03:22:26 Hey guys, I need advice on gettting started to be able to draw a shape on top of the camera view Dec 08 03:22:33 bankai_ would you help me interpret it? Dec 08 03:23:01 pastebin your stacktrace, there's many places in your code an NPE can/will occur Dec 08 03:24:06 Yes the stacktrace should help you identify the method where it's happening Dec 08 03:24:09 at the very least Dec 08 03:24:22 http://pastebin.com/WA5GWChL Dec 08 03:24:43 (i have already stated the activity in my Manifest) Dec 08 03:25:39 Looks like it's inside your onCreate Dec 08 03:25:47 Maybe this: progressBar = (ProgressBar) findViewById(R.id.progressBar);? Dec 08 03:25:55 It says it happens on line 69 of oncreate Dec 08 03:26:08 not sure if your pastebin matches the line numbers but looks like it could be that Dec 08 03:26:13 double check the id of the progress bar Dec 08 03:28:59 that was it Dec 08 03:29:16 thank you android-dev162 Dec 08 03:29:25 no problem Dec 08 04:20:15 So I have this activity where I have setContentView(R.layout.view_art); and there in that layout I have ViewPager, when I switch the ViewPager has always layout_art in from and switching others in background Dec 08 04:20:20 how can i fix that? Dec 08 05:02:00 JakeWharton, well got it figured out eventually, reading the inputstream and writing to the sink :) seems to work, so thanks for the little nudge in the right direction Dec 08 05:19:39 Which is your choice of app market in china, and does that has any licensing system? Dec 08 05:34:56 hi Dec 08 05:35:27 does anyone know if I can change the sources location from app/src/main/java/.../.../MyFiles.java to something like app/src/MyFiles.java? Dec 08 05:35:39 so that AndroidStudio works with it Dec 08 05:39:40 I tried to move it in AndroidStudio, but the app cannot start after that Dec 08 05:43:00 good night friends, thanks for yous support today Dec 08 05:43:08 i love you all Dec 08 05:48:17 turned out I had to provide sourceSets in build.gradle Dec 08 07:42:42 * raoul11 thepooshes thepoosh Dec 08 07:44:01 צם׳מןמ Dec 08 07:44:03 mownin Dec 08 07:45:24 sup Dec 08 07:47:49 life and stuff Dec 08 07:47:54 super tired all the time Dec 08 07:47:56 which sux Dec 08 07:47:58 and you? Dec 08 07:48:09 reading medium Dec 08 07:48:19 wheres the right place to ask for a review/rate Dec 08 07:48:34 gl Dec 08 07:48:48 \: Dec 08 07:49:04 when are you doing another meetup thepoosh at google Dec 08 07:50:56 * thepoosh checking Dec 08 07:51:43 raoul11: seems like January 1st Dec 08 07:51:50 but I'll probably come once before as well Dec 08 07:52:07 right Dec 08 07:54:53 raoul11: when are you coming to the holy city? Dec 08 07:55:13 about 14+/- years from now Dec 08 07:55:18 \: Dec 08 07:55:44 don't bre such a bummer man Dec 08 07:57:27 am tryin thepoosh Dec 08 07:58:43 so come by for a cop of coffee Dec 08 07:59:12 to jlm? Dec 08 07:59:22 ill drop by when yer in rg Dec 08 08:04:41 remember! Dec 08 09:10:28 Has anyone used data binding, I have a couple of questions Dec 08 09:30:46 I got disconnected, oops. So has anyone used data-binding? Dec 08 09:36:13 Also, if I inflate a bindable layout into a viewstub of another bindable layout and call DataBindingUtil.bind on original layout, can i set variables of inner layout directly on it? Dec 08 09:38:13 i.e, is this valid, A.viewstub.inflate(B). DataBindingUtil.bind(A).setVariable(BR.bmodel, model) where bmodel is definer in B's xml Dec 08 09:49:03 astroduck: They had a talk on Google IO 2016 called "Advanced data binding". Maybe your answer is in it. Dec 08 09:51:48 Does anyone have any decent guides to uploading files using OkHttp 2.7.4? Dec 08 09:54:09 sdousley: Multipart Upload? http://stackoverflow.com/questions/24279563/uploading-a-large-file-in-multipart-using-okhttp#24285633 Dec 08 09:54:20 Bleke: Oh did they, I'll look at it then Dec 08 09:55:56 I am using a NestedScrollView (android.support.v4.widget.NestedScrollView) but the size is wrong Dec 08 09:56:14 i'm trying to draw a circle on a canvas but it shows up as a rectangle instead. my first question is: if i'm this bad at drawing, should i use an existing library instead? i need to draw arcs and circles indicating calculated percentages. Dec 08 09:56:14 in some cases I display a fragment and in some other cases i dont Dec 08 09:57:09 when i display the fragment the other contents is pushed correctly downwards but i cannot scroll further than screen size and thus the stuff just dissappers below the screen border Dec 08 09:57:24 it's a NestedScrollView with wrap_content inside an CoordinatorLayout Dec 08 09:58:33 JuliusN, have you tried Dec 08 09:59:45 iLembus: no Dec 08 10:00:21 iLembus: what does it do? Dec 08 10:00:34 JuliusN, it draws a circle Dec 08 10:01:22 can it draw arcs and rings? Dec 08 10:01:28 JuliusN, here is some quick preview http://blog.vogella.com/2011/07/19/android-shapes/ Dec 08 10:01:36 JuliusN, i am nor sure about arcs, but rings should work Dec 08 10:01:55 JuliusN, also you can have multiple shapes. One big red one. One small white one. Result is a red ring Dec 08 10:02:43 JuliusN, never tried it myself but android seems to have arcs ready to use https://developer.android.com/reference/android/graphics/drawable/shapes/ArcShape.html Dec 08 10:03:19 JuliusN, ArcShape(float startAngle, float sweepAngle) and then #draw(Canvas,Paint) Dec 08 10:03:31 JuliusN, but i have no experience with it myself Dec 08 10:04:47 I have contents inside a NestedScrollView which are bigger than 1 screen size Dec 08 10:04:47 I can scroll - but the scrolling stops once the NestedScrollView hits the upper screen rim - thus hiding everything below Dec 08 10:04:48 I use app:layout_behavior="@string/appbar_scrolling_view_behavior" Dec 08 10:05:43 raoul11: http://www.androidcentral.com/latest-nougat-beta-galaxy-s7-and-s7-edge-renames-touchwiz-samsung-experience Dec 08 10:07:02 DEATH TO TOUCHWIZ Dec 08 10:07:35 does anyone know why my NestedScrollView might not work? Dec 08 10:08:09 iLembus: you'll need to supply a bit more info Dec 08 10:09:46 astroduck: thanks for that, I'll take a look/give it a try :) Dec 08 10:11:35 hey I've been trying to get the combinations of relativelayout and linearlayout to just display some image with setview in activity.. It works fine with linearlayouts but why doesnt it play nice with relativelayout can anybody help me ? Dec 08 10:11:39 http://pastebin.com/iez74r2j Dec 08 10:17:01 iLembus: the shape class crashes my inflater. is it part of some library that i need to add to the layout source? Dec 08 10:17:04 ok right.. it's just the other imageview breaking things apparently Dec 08 10:17:13 must be foreground issue Dec 08 10:18:05 placing other imageview would have solved this issue tho wtf Dec 08 10:18:15 other imgview on top of other one* Dec 08 10:20:17 anyone know why android-studio ( java) take 100% cpu to build project on ubuntu 14.04 ? Dec 08 10:22:09 thanks for not helping finding it out on your own is better Dec 08 10:22:35 why the hell would the fg priority be "below" each other that's another topic for another day Dec 08 10:28:35 thepoosh, sorry i was shortly away Dec 08 10:28:44 thepoosh, i already stated my problem a few messages earlier Dec 08 10:29:18 JuliusN, shape is used inside an Dec 08 10:29:42 JuliusN, you create this as a resource and then you can use it as source (for example using ImageView for displayign the shape) Dec 08 10:29:57 JuliusN, i posted a link to a tutorial. Check that out for more information Dec 08 10:36:00 JuliusN, here is some more information on how to create a circle http://stackoverflow.com/q/3185103/4773888 Dec 08 10:36:20 you'll end up with an your_circle.xml drawable Dec 08 10:36:29 ok nice Dec 08 10:36:59 JuliusN, Android Doc https://developer.android.com/guide/topics/resources/drawable-resource.html Dec 08 10:37:57 JuliusN, the doc is very verbose. You might be better off just looking at the StackExchange and then when you need a special feature like gradients or shadows you can look in the doc for how to tell android that Dec 08 10:45:32 so anyone knows what i might do wrong? Dec 08 10:45:45 I am using a ScrollView but I cannot scroll completely down Dec 08 10:48:39 is it possible to close application from itself? Dec 08 10:49:16 Duvdevan, finish() Dec 08 10:49:40 Duvdevan, that closes the current Activity and makes it unavaiable for the back-button Dec 08 10:50:00 okay... Dec 08 10:50:06 can I remove it from the task manager? Dec 08 10:50:07 Duvdevan, it's helpful for login-screens where the user should not be allowed to go to again after logging in Dec 08 10:50:19 Duvdevan, so you want an android app to completely shut down? Dec 08 10:50:26 Duvdevan, like System.Exit(0)? Dec 08 10:50:26 yes Dec 08 10:50:34 tried that, still appears in the task manager Dec 08 10:50:41 I even tried this Dec 08 10:50:42 https://gist.github.com/duvdevan/53d297384de841e69a22dce50029e957 Dec 08 10:50:49 Duvdevan, android doesnt like that. You violate the lifecycle and you grain user resources Dec 08 10:51:10 Duvdevan, android handles resources very well. When the user does not use your application - android will handle termination for you Dec 08 10:51:20 hmm Dec 08 10:51:22 okay Dec 08 10:51:30 Duvdevan, i do not recommend closing your app from within the app itself Dec 08 10:51:40 what should I use? Dec 08 10:51:48 Duvdevan, it's not really a useful feature for the user either. Why should he close it? He clicks the home button and forgets about it Dec 08 10:52:03 there is a reason... Dec 08 10:52:09 its a private app for a company Dec 08 10:52:13 not something distributed Dec 08 10:52:17 iLembus: it's possible that the view that is hosting the scrollview extends beyond the bottom of the screen? Dec 08 10:52:27 iLembus: is it Dec 08 10:52:35 Duvdevan, when android sees that the app is inactive for too long it will terminate it for you. When the user goes back to it it re-creates the app and restores its state. Opening might take a little longer but the contents wont have moved Dec 08 10:52:54 Melatonina, it might be Dec 08 10:53:04 Melatonina, i added 50dp space below my fragment Dec 08 10:53:12 iLembus what should I use then? Dec 08 10:53:20 how to properly kill the app? Dec 08 10:53:43 Melatonina, now i can see all the content. This means that scrolling ability is not impaired. It only means that - as you say - my nestedView-thingy might be too big Dec 08 10:53:53 Duvdevan, why do you want to kill it? Dec 08 10:54:00 Duvdevan, the proper way is "dont do it" Dec 08 10:54:08 as I said Dec 08 10:54:10 So, I'm just implementing Crashlytics in our app, do I need to do the Fabric.with(this, new Crashlytics()); in EVERY Activity? Dec 08 10:54:12 it's a private app Dec 08 10:54:22 Duvdevan, ah ok Dec 08 10:54:26 if it's installed on a device which is not owned by the company Dec 08 10:54:33 it should close Dec 08 10:54:34 Duvdevan, why is the kill important for that? Dec 08 10:54:43 I don't know... is it? Dec 08 10:54:43 Duvdevan, ypou just dotn load it inside the play store Dec 08 10:54:51 I won't Dec 08 10:54:51 but Dec 08 10:55:01 a guy at the company might install it on its phone Dec 08 10:55:05 Duvdevan, not publishing an app is easier than publishing it Dec 08 10:55:06 on his private phone* Dec 08 10:55:08 I don't want that Dec 08 10:55:45 Duvdevan, so you got company data on the phone and you dont want anyone who has access to the phone to have access to the app? Dec 08 10:56:01 Duvdevan, thus every time the user closes the app he ahs to re-authenticate after that? Dec 08 10:56:15 Duvdevan, you could whipe your login onStop() Dec 08 10:56:24 no Dec 08 10:56:45 every person who will use the app has it's own tablet device owned by the company, and it's assigned to that worker Dec 08 10:56:52 Duvdevan, ok Dec 08 10:57:11 so if he installs it on it's wife's phone, lover's android TV, whatever, I don't want them to see anything :D Dec 08 10:57:40 Duvdevan, so you think a worker gets the apk and installs it on the phone of some non-employee? Dec 08 10:58:19 Duvdevan, i guess the app goes into the company intranet, gets the data, displays it and the worker can interact with it Dec 08 10:58:26 Duvdevan, or is it all inside the app? Dec 08 10:58:33 Duvdevan, like a resource? Dec 08 10:58:38 at the moment, no... it's not on a VPN or a local intranet Dec 08 10:58:49 it communicates openly to our services which are out there on the open Dec 08 10:59:06 something is inside the app, most of the things are out on the open Dec 08 10:59:07 Duvdevan, so you need to be inside the intranet to get the data Dec 08 10:59:14 on the internet* Dec 08 10:59:19 Duvdevan, isn't that enough protection? Dec 08 10:59:25 no Dec 08 10:59:27 Duvdevan, ah ok Dec 08 10:59:31 I am paranoid Dec 08 10:59:31 :FD Dec 08 10:59:32 :D Dec 08 10:59:46 Duvdevan, you could encrypt the contents and only workers get the password Dec 08 11:00:00 Duvdevan, or you have some central computer with an RSA cert Dec 08 11:00:16 eh neither at the moment Dec 08 11:00:24 Duvdevan, when you are a worker, you connect to it, the server approves it, encrypts the data for you and then you no longer need the sever Dec 08 11:00:24 just communicating with an API HTTP server Dec 08 11:00:32 Duvdevan, you will need physical contact to that computer Dec 08 11:01:19 Duvdevan, you can use encryption to protect any data which is a resource on the device itself Dec 08 11:01:33 yea Dec 08 11:01:38 I'll think about it Dec 08 11:01:41 well, either way Dec 08 11:01:47 this closing procedure is enough Dec 08 11:01:49 Duvdevan, but i dont think its worth it. You would have to connect to that central computer every time you reinstall the app or whipe its data dir Dec 08 11:01:57 and as you said, android will take care of irresponsible processes Dec 08 11:02:02 Duvdevan, first step of protecting the remote data is SSL Dec 08 11:02:28 Duvdevan, TLS/SSL is easy peasy set up - you dont even need to buy a cert for that. Just generate it and force the app to accept this oe cert Dec 08 11:03:41 Duvdevan, alternatively you could whitelist the MAC-Adress on your HTTP server Dec 08 11:04:04 Duvdevan, thus only company devices can connect to it. When someone installs it on his/hers private phone and gets into the intranet than he/she wont get any data Dec 08 11:04:30 Duvdevan, but MAC-Whitelisting is really insecure. It will only pretect againgst people who don't know how to forge a MAC-Adress Dec 08 11:04:43 Duvdevan, thus it's like 99.9% effective Dec 08 11:05:07 Duvdevan, but not for the 0.1% who a) have high computer skills b) really really want to use their private phone instead of the company provided Dec 08 11:05:15 Duvdevan, are you satisfied? Dec 08 11:05:23 Duvdevan, MAC-Whitelisting is easy. SSL too Dec 08 11:06:06 Duvdevan, i dont know what data you are transmitting but I guess you aren't building any nuclear weapons or anything. When you need to comply to any security protocols you should look there Dec 08 11:07:04 Duvdevan, killing the app wont do anything for your data protection. It will only slow down re-opening the app Dec 08 11:09:34 Melatonina, yes it is too big Dec 08 11:09:45 :) Dec 08 11:10:03 is it set to match parent? Dec 08 11:10:05 Melatonina, I am using Match_parent but isnide the Designer i can clearly see that it is like 1 screen size tall Dec 08 11:10:16 Melatonina, which is bad because i have an app_bar above Dec 08 11:10:30 Melatonina, yea i already tried wrap_content and match_parent Dec 08 11:10:39 yeah Dec 08 11:10:50 I thought that was the problem Dec 08 11:10:58 It happened to me too Dec 08 11:11:26 can you use layout_weight? Dec 08 11:12:00 Melatonina, its inside a CoordinatorLayout Dec 08 11:12:21 Melatonina, the content i put inside the ScrollView are nested LinearLayouts - so i guess i could use weights there Dec 08 11:19:13 why android studio and gradle on ubuntu 16.04 to build is faster than ubuntu 14.04 ? Dec 08 11:20:23 may i use qemu in tools directory of SDK instead of emulator ? Dec 08 11:20:40 can i use qemu in tools directory of SDK instead of emulator ? Dec 08 11:22:33 Anyone here used Crashlytics? Dec 08 11:28:34 so i'm trying to build a project after cloning it from github and now i'm stuck with only three files: manifest, config and R.java Dec 08 11:40:53 argh gradle 2.2.3 - - generating signed APK - normally it takes under 2 mins - now 4 and Gradle Console stopped at "transformClassesAndResourcesWithProguardForFull..." - CPU / disk load - almost none for AS Dec 08 11:41:35 is it true that Intel Atom x86 is faster than intel Atom x86_64 ? Dec 08 11:49:41 anyone knows what are the best API for comparison between hotels. Dec 08 11:50:38 lol - I can't stop gradle process, neither AS process - hammer time Dec 08 11:54:29 bolovanos, why do you uys gradle 2.2 Dec 08 11:55:09 bolovanos, there is already gradle 3.x Dec 08 11:55:35 * iLembus notices that this android stuido uses 3.2 while the build.gradle references the 2.2.2 Dec 08 11:55:46 am i version locked to 2.2.x? Dec 08 11:56:42 You're mixing up Gradle version and version of Android gradle plugin. Dec 08 11:56:56 Mavrik, ah ok Dec 08 12:00:37 :) Dec 08 12:19:19 my app permissions include "phone" but I dont know why exactly, anyone know what it is that triggers the need forthat? Dec 08 12:27:06 Gaz`, just remove it if you dont use phone Dec 08 12:27:23 Gaz`, or start adding comments on your permissions Dec 08 12:27:49 so which one would it be though, things like read_phone_state i assume? Dec 08 12:29:34 problem is this damn apk is generated in the cloud so i dont have full control over whats happening, wondering what code i may have written to trigger it to add permissions for "telephone".. confusing Dec 08 12:56:19 is there a faster way than bitmapfactory decode image ? probably not, the factory decode itself is made for optimized processing of larger images right ? Dec 08 13:02:02 sdfgdsfg, there are faster ways, but are you sure you need more speed, what your issue exactly? Dec 08 13:12:22 anyone experienced with http://developer.samsung.com/galaxy/multiwindow# . I have problem to build signed APK - http://pastebin.com/Qw2xKmug . I have found http://stackoverflow.com/questions/30117048/pass-1-1-3-proguard, http://developer.samsung.com/forum/thread/a/201/250907, http://developer.samsung.com/forum/thread/a/201/220707 - changed proguard-rules.pro http://pastebin.com/HdALfjM8, but it keeps complaining Dec 08 13:27:16 Anyone done much/anything with Crashlytics? Dec 08 13:33:43 don't ask to ask, just ask Dec 08 13:34:57 I just wondered, when you have to add the code into onCreate as per their documentation, I presume that needs to go in EVERY activity? Dec 08 13:35:28 or, I presume I could make every class extend a custom class that extends Activity, and create an onCreate in that class that does it Dec 08 13:38:41 sdousley, yep Dec 08 13:38:48 cool, I'll do that I think Dec 08 13:39:01 then if there's anything else I need to do in onCreate for everything, I can whack it in that class instead :) Dec 08 13:39:19 crashlytics is a singleton anyway, so it has to be initialized once at least Dec 08 13:40:57 maybe you can put it in application class to, but i would not recommend it Dec 08 13:42:19 What you mean in an application class? Dec 08 13:42:44 What I was thinking is creating a class that extends Activity, and has an onCreate method that sets up crashlytics. Dec 08 13:42:52 then all my classes that currently extend Activity, extend that one Dec 08 13:43:04 oh, and my custom class will also super.onCreate() Dec 08 13:43:20 so it does get all the way up to the Activity class Dec 08 13:43:20 A few days ago I posted problem about getting an OutofMemoryException here, guys said my hardware is not suitable for android development, so I asked a friend to build it but he's also having the exact same problem, he waited for 30mins and gave up on it, but he didn't get that exception until then. Is it possible there is some problem with the code or the resources? Dec 08 13:44:21 during the build or on a phone deployed? Dec 08 13:45:19 raoul11: No exactly during the build, I suppose If anything is wrong with the code I should at most get a compile time error, but nothing happens and it throws that exception after 20-30 mins. Dec 08 13:45:41 sdousley, https://developer.android.com/reference/android/app/Application.html Dec 08 13:46:01 raoul11: Also during the process RAM gets full, not even a single megabyte remains. Dec 08 13:46:06 are you able to make a simple build (of a helloWorld app for example) ? Dec 08 13:46:19 but avoid crippling this place as much as you can, even if it can be convenient.. initializing crashlytics is just few lines per activity (or subclass) Dec 08 13:47:01 mohsen_, different devices got different max heap size Dec 08 13:47:16 you should profile your app and determine/detect what is causing the OOM and fix it Dec 08 13:47:17 adq no issues actually, I just have to provide an optimum, threaded solution, possibly with RxJava + bitmapfactory decode etc Dec 08 13:47:33 raoul11: Didn't try it, I will try it and report. Dec 08 13:48:02 Ah ok, yeah, I don't think I'll play with that adq Dec 08 13:48:05 and I need to assume they will feed big fkoff bitmaps Dec 08 13:48:14 also look into what adq suggested, look for 3rd party libs Dec 08 13:48:15 I'll just do the class that sits between my activities and hte Activity class Dec 08 13:48:45 adq: Does gradle also downgrade when I downgrade android studio? Dec 08 13:49:10 sdousley, if you want faster loading, you have to directly feed with bytes the bitmap, because bitmapfactory usually convert a png to a bitmap first etc Dec 08 13:49:25 but i doubt you should worry about that Dec 08 13:50:31 adq: Was your last message for me? Dec 08 13:50:33 mohsen_, no idea Dec 08 13:50:38 Do I even need to process the bitmap in paralell i dont even know, how big could a bitmap be Dec 08 13:50:42 mohsen_, nope it was for sdfgdsfg Dec 08 13:51:18 adq: Is it possible that there is something wrong with the code? Dec 08 13:51:48 mohsen_, probability is high that there is something wrong with the code lol Dec 08 13:51:49 hmm ok Dec 08 13:52:16 mohsen_, maybe you're leaking some references, maybe you're using too big images, etc you're the one who should find what's causing it Dec 08 13:52:18 so it's probably a really tiny optimization that doesnt even matter with a single file Dec 08 13:52:35 sdfgdsfg, yep Dec 08 13:52:43 thank you adq Dec 08 13:52:51 sdfgdsfg, a good rule is to measure and profile to know where the bottlenecks are Dec 08 13:53:23 otherwise we could speculate a lot on what should be optimize or not but it wouldn't matter without real fact Dec 08 13:53:50 adq: but shouldn't I get a runtime exception if I use a too big image? Dec 08 13:54:16 only if it cannot fit in heap memory Dec 08 13:55:56 adq: Okay does that also happen in compiling? does the compiler load images used in the app? Dec 08 13:56:53 nope, it cannot happen at compile time an OOM exception Dec 08 13:57:00 or if it happens, it has nothing to do with your app Dec 08 13:57:34 Hi all, if you use the play-services for scanning a qrcode, can you put all the resources in your apk instead off checking if the play services are installed? Dec 08 14:28:40 Hi guys, anyone here? Dec 08 14:34:27 No one here but us chickens. Dec 08 14:39:30 adq: Upgraded AS to the previous version that I firstly installed and it got built in 5 mins and 39s, is this normal? Dec 08 14:39:55 That depends on what version that was Dec 08 14:40:20 The previous (2.0 possibly 2.1 as well) releases invoked gradle in a way that was quite a bit faster Dec 08 14:41:28 Dagmar: It was 2.1.1 that wasn't able to build the project, now it's 2.2.2-1 Dec 08 14:42:52 It's up for debate if the previous method was wholly correct. Dec 08 14:43:35 I think waiting 30mins would make anyone think there is something wrong, but 5mins I think is normal? especially I'm not running a high end computer? Dec 08 14:43:56 Dunno about that. We had a guy in here last week waiting 21m for his build. Dec 08 14:44:12 He was doing it on a laptop with 4Gb of RAM and didn't seem to think that was a problem. Dec 08 14:44:27 Other people would probably notice the disk activity light burning like a small supernova. Dec 08 14:44:28 It was me:D Dec 08 14:44:34 And it's the same laptop:D Dec 08 14:44:41 Ahhh... Did you finally get more ram? Dec 08 14:45:14 No, but I'm really building the app in 5 min using the same laptop, there was really something wrong with that version of AS I was using. Dec 08 14:45:15 Five minutes is fairly reasonable given your specs Dec 08 14:45:33 Yeah Dec 08 14:45:51 You can always try ripping out the test directories Dec 08 14:46:24 I know testing is important to some people, but for my part I'm just not doing anythign all that complex yet Dec 08 14:46:48 If I can't reliably add two numbers together and multiply by a third one... Dec 08 14:47:17 * capella ... all the way to Abilene, and then it snows last night ... Dec 08 14:47:34 Dagmar: Is this the same term used by Java developers as "unit testing"? Dec 08 14:47:50 yeah Dec 08 14:48:07 Traditionally, I do that manually. Dec 08 14:48:23 Write a function, test the @#$@# out of it, and then sort of enamel it over. Dec 08 14:48:57 I do not trust code I can't just eyeball and see clearly what it's doing. Especially if I'm the one who wrote it. Dec 08 14:49:35 ^ Dec 08 14:49:35 So I wind up doing a ton of tiny little functions, usually less than 24 lines apiece Dec 08 14:49:52 It's nearly 6 years I'm using Java, but never thought about using a unit testing library in my projects. Dec 08 14:50:20 WEll, for some things, like... uhm... the one I probably _should_ be writing, it's important Dec 08 14:50:33 Let's say you have an app that's doing HTTPs communication. Dec 08 14:51:03 You *kinda* want it to fail the connection and report the error upwind if the perfectly reasonable conditions of requiring a valid cert aren't met Dec 08 14:51:14 ...or if you're pinning a cert and some other cert shows up. Dec 08 14:52:12 Lots of coders almost never do tests like that because it's going to involve writing 3x-5x more code than the function being tested. Dec 08 14:52:23 ...BUT IT BEATS READING ABOUT IT ON FULL-DISCLOSURE. Dec 08 14:53:58 rather just play sc2 Dec 08 14:54:03 Then I think I'd have to take a look at a testing library. Dec 08 16:02:43 Happy Thursday everyone Dec 08 16:10:55 Hi guys. Could someone help me with Android studio? I have a question Dec 08 16:13:16 I'm trying to port a ROM but it has only from XHDPI res. I need HDPI. I saw that it's possible to resize the images with Android Studio, how can I add HDPI res to the apk? Dec 08 16:14:34 you create a folder in res/drawable-hdpi and put "stuff" in it Dec 08 16:14:44 but since you're talking about rom cooking, you're on the wrong channel Dec 08 16:15:15 well, not exactly. I want to port the ROM but first I need to edit the apk Dec 08 16:15:47 I don't have to add nothing in xml files to tell that hdpi exists? Dec 08 16:15:49 see topic Dec 08 16:15:50 not here Dec 08 16:16:04 and porting a rom involves building from source Dec 08 16:16:11 not really Dec 08 16:16:16 I read the topic Dec 08 16:16:24 :') Dec 08 16:16:41 then go away Dec 08 16:17:12 it is always a pleasure to meet people polite and willing Dec 08 16:17:53 whoah, why so rude pfn :p Dec 08 16:18:01 if you call that rude Dec 08 16:18:33 meaybe i gave it a rude accent on my mind Dec 08 16:18:36 you have a problem with being rude yourself Dec 08 16:18:45 particularly being an asshole and ignoring the topic Dec 08 16:18:55 and insisting on blabbering about shit that isn't relevant Dec 08 16:20:19 is it still possible install signed apk over ADB on Lollipop? Dec 08 16:21:52 because it tells me "Failure [INSTALL_FAILED_INVALID_URI]" Dec 08 16:23:14 even for packages I have successfully installed on Kitkat... Dec 08 16:26:56 even on Jelly, probably table chair problem Dec 08 16:37:45 servus, anyone familiar with debian & maven? I have some troubles with maven to compile Gello :/ Maventest: http://paste.debian.net/901252/ Dec 08 16:37:49 any ideas? Dec 08 16:48:43 your maven is broken Dec 08 16:49:01 rather, your java/certificates installation Dec 08 16:49:10 [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Dec 08 16:51:28 pfn, i have maven reinstalled Dec 08 16:51:33 same issue :/ Dec 08 16:51:42 has nothing to do with maven, it's the java/certs installation Dec 08 16:51:44 google it Dec 08 16:53:12 ugh, this ffbe maintenance sucks Dec 08 16:53:18 pfn, my certs was already imported with keytool Dec 08 16:53:25 wrong certs Dec 08 16:53:49 serious? Dec 08 16:54:02 google it, debian maven certificates Dec 08 16:54:11 give me a sec Dec 08 16:54:36 and this is more appropriate for #maven or something Dec 08 17:19:22 Hello there i want to hire a android developer that working by android studio Dec 08 17:19:31 an* Dec 08 17:20:01 how much? Dec 08 17:20:15 per project Dec 08 17:21:07 can i pm you with the details? Dec 08 17:22:49 read the room message Dec 08 17:22:55 this isn’t the place to advertise jobs Dec 08 17:24:16 i am hiring a developer not advertising s73v3r Dec 08 17:24:28 that is advertising Dec 08 17:24:51 we wish this room to not become overrun with recruiters Dec 08 17:25:29 ok i'll switch to the oftopic then Dec 08 17:25:48 android offtopic channel Dec 08 17:26:08 thank you Dec 08 17:26:28 You're Welcome Dec 08 17:30:45 pfn, your are right :D I have create a new ssl cert. Its working now: http://hastebin.com/idofunehuh.rb Dec 08 17:31:17 why do you have to create a new ssl cert, are you mitm proxying or something Dec 08 17:32:00 idk, my cert was bogus Dec 08 17:32:08 hello Dec 08 17:32:47 i dount use proxy Dec 08 17:32:51 I've got a widget composed by a linearlayout , and inside it there are a relativelayout and an imageview. Inside the relative layout there are a button and an imageview Dec 08 17:33:57 when I changed from relativelayout to linearlayput the external imageview is not displayed anymore: imgur.com/a/zgAuH Dec 08 17:38:34 this is widget.xml: pastebin.com/KsbKCz4N Dec 08 17:41:02 I don't know why imageview with 'widget_bottom' id is not displayed anymore Dec 08 17:41:21 Any ideas? Dec 08 17:42:09 your widget is the one floating off into space? Dec 08 17:42:36 yes Dec 08 17:42:56 s73v3r: the top widget Dec 08 17:43:03 yes Dec 08 17:43:15 and you’re trying to have an indicator thingy at the bottom like in the row of widgets Dec 08 17:43:36 s73v3r: yeah Dec 08 17:44:11 i don’t think you want the layout_margin on the root linearLayout Dec 08 17:44:39 If I use two relative layout (a relative layout in place of linear layout, imageview is displayed but in bad position Dec 08 17:44:58 i honestly think you just want one linear or relative layout Dec 08 17:44:59 s73v3r: I've already tried to remove it Dec 08 17:45:23 if I remove it, the widget becomes bigger (of course) Dec 08 17:45:48 s73v3r: I've already tried to remove it <- the layout_margin parameter Dec 08 17:46:48 s73v3r: currently, linearlayout contains a relativelayout + imageview (the object I'd like to display) Dec 08 17:47:01 and the relativelayout contains button + imageview Dec 08 17:47:19 s73v3r: so, exactly, what do you suggest? Dec 08 17:49:07 hmm, is there an api for detecting /which/ application is playing audio Dec 08 17:51:34 I really want an app that manages audio volumes depending on which app is playing audio Dec 08 17:51:38 i retrieve data from extra inside onCreate, how can i use the variable i seted the data in on an AsyncTask call that's outside onCreate? Dec 08 17:51:47 e.g. my game, I want on fairly low volume, youtube and music on high-ish volume Dec 08 17:52:18 but it looks like no api exists to detect when music (audio) starts playing and which app is playing Dec 08 17:57:01 mediasessionmanager sounds promising, but as I understand it, only works with stuff that registers a media session, not everything that just plays sound... Dec 08 17:57:17 sounds like a feature Nova Launcher could implement Dec 08 17:58:09 not interested in running nova launcher; and no, it doesn't sound like Dec 08 17:58:30 pfn, i'm not aware of any, closest thing would be to handle audioFocus Dec 08 17:58:44 yeah, but audiofocus only tells you if you gain/lose focus, and not to whom Dec 08 17:58:59 yup Dec 08 17:59:30 hmmm Dec 08 17:59:34 maybe if you can parse "dumpsys media.audio_flinger" Dec 08 17:59:46 but that's very hacky Dec 08 18:00:36 yeah, oh well, app idea on the backburner until it becomes possible Dec 08 18:01:31 Hi Dec 08 18:10:32 hi all, is somebody familiar with android services and alert system. im trying to develop a feature which triggers a notification once a day. but its triggering the same several times. and i just cant figure out why Dec 08 18:13:03 offtopic but, anybody also late in parse migration? Dec 08 18:13:26 how deep are the tendrils of parse into your app? Dec 08 18:15:33 user registration, records saving, some conf saving, in app purchase validation, some user analyctics Dec 08 18:16:07 i guess i meant do you have it all segregated out in the outskirts of your app, or do you have parse code littered throughout your activities? Dec 08 18:16:41 there is a well-defined layer Dec 08 18:16:56 that’s good Dec 08 18:17:18 so many apps I’ve worked on didn’t do that. Nothing but PFObjects everywhere Dec 08 18:17:19 it would not be hard to migrate to another service or in-house app Dec 08 18:17:35 i mean, *not hard* Dec 08 18:17:49 dammit, forget it Dec 08 18:18:00 would not Dec 08 18:18:01 i think i got it Dec 08 18:18:43 in fact, i've built some proof od concept in rails Dec 08 18:21:11 s73v3r: any ideas? Dec 08 18:21:24 i just got out of meeting Dec 08 18:21:40 but I am not liking the nested layouts you have Dec 08 18:21:48 have you tried using ImageButton? Dec 08 18:22:03 s73v3r: I've tried to look at it in past Dec 08 18:22:05 Or just using an image and setting a click listener on it? Dec 08 18:22:28 wondering if cristian_c is another markov chain bot from now on Dec 08 18:22:34 I use an image, currently Dec 08 18:22:43 you have image and button Dec 08 18:22:46 adq: ..... Dec 08 18:22:52 s73v3r: yes Dec 08 18:23:15 that seems redundant, when you could use ImageButton, or just ImageView with an onClickListener Dec 08 18:23:40 (no onclicklistener on widget, but you have a pendingintent to act like it) Dec 08 18:24:02 s73v3r: imag3view should change if clicked, for example Dec 08 18:24:11 and using another png picture Dec 08 18:24:19 that’s perfectly doable Dec 08 18:25:06 s73v3r: for example, not highlighted image and highlighted image (similar to widget on the bottom of screenshot) Dec 08 18:25:20 yup. perfectly doable Dec 08 18:26:15 s73v3r: ok, I'll study this idea Dec 08 18:44:14 oh please you mighty programmers help me. is somebody familiar with android services and alert system. im trying to develop a feature which triggers a notification once a day. but its triggering the same several times. and i just cant figure out why Dec 08 18:50:06 fuck.. they pay around 100 grands for a decent android developer these days Dec 08 18:50:13 more than that Dec 08 18:50:29 MS kicking ass http://www.theverge.com/2016/12/8/13881930/microsoft-turn-a-phone-into-a-pc-arm-continuum Dec 08 18:50:31 also, that’s not limited to just android developers Dec 08 18:51:17 I have two phones with the exact same code, which uses HttpURLConnection, but only one phone returns FileNotFoundException Dec 08 18:51:27 windows 10 will have full arm support, and on the fly x86 emulation Dec 08 18:51:40 logicp: Are they different Android versions? Dec 08 18:51:47 hey TacticalJoke Dec 08 18:51:51 logicp: 4.4+ uses a different HTTP framework under the hood. Dec 08 18:51:53 g00s: Hey! Dec 08 18:52:04 logicp yeah, best to use okhttp Dec 08 18:52:06 They're both Android 5 Dec 08 18:52:16 why okhttp ? Dec 08 18:52:24 Ive seen a chinese developer use that Dec 08 18:52:26 It's not like http is that hard Dec 08 18:52:29 but I did initially get it working on the new phone Dec 08 18:52:29 OkHttp is the HTTP master race. Dec 08 18:52:30 always wondered why Dec 08 18:52:46 I just reinstalled on both to be sure.. Dec 08 18:52:47 ok Dec 08 18:52:54 requests not being sent though. .nothing in the server logs Dec 08 18:52:56 I'd check the webserver logs and look at the actual query being sent that results in the 404. Dec 08 18:53:07 he was pretty good so that explains Dec 08 18:53:25 If there's nothing in the server logs then you need to make sure the thing is actually going to the _right webserver_ Dec 08 18:53:35 Webservers don't "just forget" to log queries Dec 08 18:53:47 it seems to me that the request isn't leaving one of the phones Dec 08 18:53:48 logicp under the hood if i recall , android 5+ HttpUrlConnection is really okhttp. you you may as well just get the library and know what version you have Dec 08 18:54:03 but what makes okhttp good anyways ? Dec 08 18:54:07 data is working on it though.. so strange Dec 08 18:54:14 I'l look into okHttp though Dec 08 18:54:15 better than the native solution ? Dec 08 18:54:28 you can still request async natively no ? Dec 08 18:54:30 sdfgdsfg: What is the native solution? Dec 08 18:54:43 plain Http Dec 08 18:54:49 Using java.net.Socket? Dec 08 18:54:51 I highly doubt that Android has replaced a java standard with a third party library. Dec 08 18:54:59 Dagmar you would be wrong ;) Dec 08 18:55:04 is that the native way ? Dec 08 18:55:12 I dont know i'm new to this Dec 08 18:55:14 Dagmar: From 4.4+, HttpURLConnection uses OkHttp under the hood. Dec 08 18:55:22 sdfgdsfg: Using java.net.s Dec 08 18:55:31 Socket* to implement HTTP manually would be insane. Dec 08 18:55:39 HTTP isn't simple. Dec 08 18:55:46 Actually HTTP _is_ simple. Dec 08 18:56:02 nah you're just supposed to make an async json parsing with OkHttp it's a oneliner Dec 08 18:56:03 HTTPs with bare sockets... that would be self-mutilation. Dec 08 18:56:17 isnt there the same oneliner solution with socket or some other android library ? Dec 08 18:56:29 HTTP is far from simple. Dec 08 18:56:30 i mean the default android libraries Dec 08 18:56:38 HttpConnection etc Dec 08 18:57:20 and I thought he was ripping me off when I saw the okhttp syntax Dec 08 18:57:34 what's this python crap doing in my work Dec 08 18:57:57 little did I know it was the king of restful api Dec 08 18:58:04 I've written webservers that comply with 1.0 in bash and ones that comply with 1.1 in _perl_. Dec 08 18:58:16 It's a tcp socket and you don't even have to screw around with OOB signalign Dec 08 18:58:35 and it should be simple right Dec 08 18:58:38 your not even trolling Dec 08 18:58:46 Hell, I wrote patches to MythWeb to handle the multipart attachments without being a security vulnerability Dec 08 18:58:58 what about tls, connection reuse, caching, route database? Dec 08 18:59:05 TLS is not HTTP. That is HTTPs. Dec 08 18:59:05 did you build all those in bash as well? Dec 08 18:59:51 If you've got a problem with the fact that some of us have been working on the internet since _gopher_ was a thing, you can get stuffed. Dec 08 19:00:14 that's a big jump you made Dec 08 19:00:36 that chip on your shoulder looks GIANT Dec 08 19:00:37 It's _why_ I've written my own damn HTTP implementations in the past. Dec 08 19:00:46 wise words of one of the big guns, heed the call Dec 08 19:00:58 okhttp is a lie Dec 08 19:01:01 Eat a bowl of dicks, noobcake. Dec 08 19:01:10 aw look Dec 08 19:01:13 Please watch your language Dec 08 19:01:13 we poked him too hard Dec 08 19:01:20 your referring to everyone in the channel and i second that Dec 08 19:01:50 Dagmar is gay Dec 08 19:01:56 i would tell you to GOAWAY, but sounds like you haven't written an HTTP/2 client in bash Dec 08 19:02:27 he cant even sub an irc away automation Dec 08 19:02:27 sdfgdsfg: That goes for you too Dec 08 19:02:32 When you've sat down and written a websevrer, _then_ you can try and pass judgment. Dec 08 19:02:37 ok Dec 08 19:02:44 Start by traveling back to 1994. Dec 08 19:02:52 I've done that. Judgement rendered. Dec 08 19:02:52 shit thats when I was born Dec 08 19:02:58 Dagmar: Even I have written an HTTP server, and I consider myself not very clued up about HTTP. Dec 08 19:03:03 you must be old Dec 08 19:03:04 ...and then you will know _why_ people might want to do that. Dec 08 19:03:18 and probably most here are Dec 08 19:03:33 and I would have thought it's android, it should be lollipops and gayboys Dec 08 19:04:02 dude Dec 08 19:04:04 rip Dec 08 19:04:51 TacticalJoke: HTTP is just as dumb as it looks on the cover. Without worrying about 1.1 and being able to handle more than one query per connection, you literally listen for headers until you get an empty line, then parse a bunch of key: values out of the headers. Charset support is nightmarish but that's not unique to http Dec 08 19:04:54 he saw it coming, and tried to call out, but no words would come forth from his fingertips Dec 08 19:05:41 Handling more than one query per connection is surprisingly simple, and the other bear from 1.1 is vhost handling because of the need for separate document roots Dec 08 19:06:00 * g00s sighs Dec 08 19:06:17 Dagmar: What about basic compression? Dec 08 19:06:25 gzip. Dec 08 19:06:34 In any case, you're saying "Take HTTP and remove loads of expected functionality, and it's simple". Dec 08 19:06:46 Compression of data is optional. Dec 08 19:06:57 You're not even supposed to try unless the client suggests it Dec 08 19:07:25 ...and it's literally gzip compression. Calling that is ludicrously easy. Dec 08 19:08:53 nice, i was looking for this a few days ago http://shop.oreilly.com/product/0636920052326.do Dec 08 19:08:56 http/2 book Dec 08 19:08:56 did some more troubleshooting Dec 08 19:09:05 now i don't have to read ietf draft :D Dec 08 19:09:07 I installed a different app, using the same HTTP request pattern Dec 08 19:09:08 and it works fine Dec 08 19:09:23 but for some reason, this other app, which works perfect on another phone with the same OS version, doesn't seem to do anything Dec 08 19:09:28 no requests being received by the sever Dec 08 19:09:43 logicp: Strange. Not a firewall issue or something? Dec 08 19:10:07 no.. both devices are on the same wifi at the moment Dec 08 19:10:18 HTTP/2 is a clusterf**k of complexity. HTTP 1.0 and 1.1 were designed to be super-friendly to developers. It's why the queries are all uppercase and plaintext... so the poor sod trying to debug the mess can actually read it without having to pull out some deranged tool like journalctl Dec 08 19:10:24 it's probably lack of sleep :) Dec 08 19:11:41 logicp: Fire up chrome at the URL the malfunctioning device is supposed to be requesting. See if that query actually arrives Dec 08 19:13:18 * JakeWharton banned SimonVT!*@* Dec 08 19:13:43 it goes through perfectly Dec 08 19:14:46 JakeWharton: dude, I knew you were well respected in development circles, but I didn’t know you were allowed to ban the mods. 0_0 Dec 08 19:16:34 lol Dec 08 19:16:38 Good thing JakeWharton never leaves the channel. :D Dec 08 19:16:48 Apart from occasionally when there's a net-split. Dec 08 19:16:56 * JakeWharton bows Dec 08 19:18:08 it's good because we can thank him and his Square team in person, for the work in Retrofit, Picasso and few other libs Dec 08 19:18:13 Having looked around now, I'm going to have to go with detemining you guys meant that _Android's_ code is using okhttp instead of everything that runs on 4.4. AS still happily provides includes for java.net and javax.net.ssl Dec 08 19:18:15 thank you JakeWharton! Dec 08 19:19:01 Dagmar: everything using java.net.Http[s]URLConnection on Android 4.4 or newer is using OkHttp under the hood Dec 08 19:19:02 Dagmar: You could just google it. :E Dec 08 19:19:18 TacticalJoke: That's actually what I'm doing Dec 08 19:20:30 I see other people saying okhttp is in use from 4.4 on, but it sounded like you guys might be implying that calls people expect to go through java.net's HttpURLConnection might be getting redirected through the other implementation somehow Dec 08 19:20:45 they are, yes Dec 08 19:21:03 HttpURLConnection isn't an implementation, it's just an API Dec 08 19:21:05 Being that I am in the middle of writing a couple of different things that do HTTP and HTTPs, that's kinda something I'd need to be on the lookout for Dec 08 19:21:18 why would you care? Dec 08 19:21:26 I know most people would not be pleased to start seeing strange libraries showing up in stack traces Dec 08 19:21:42 Android pulls in hundreds of these libraries Dec 08 19:24:11 CONCLUSION: I deleted the app, reinstalled it.. works fine Dec 08 19:24:15 it shall remain a mystery Dec 08 19:26:41 ...at least until 2am the night before release, where it will again rear it's ugly head. ;) Dec 08 19:27:22 cannot bypass murphy law Dec 08 19:29:48 Oh! Dec 08 19:30:07 haha Dec 08 19:30:16 logicp: Was the instance of that app on the device the result of you clicking the little 'run' button in Android Studio? Dec 08 19:32:09 The moment you disconnect from USB, the Instant Run feature stops being your friend and starts pricing life insurance polcies and chewing on brake lines. Dec 08 19:34:45 IMO, Instant Run is never your friend. Dec 08 19:35:41 Well, it's pretty cool when you're trying to beat some last stupid little bug out of a program. Dec 08 19:35:58 Having it take about 10-15 seconds to push a change is nice Dec 08 19:36:30 That little toast popup about "Your program doesn't have the latest code changes" should probably be in bright red and play an alarm klaxon tho' Dec 08 19:37:36 It's lots of fun when you want to show someone some UI changes and you hold up the phone to see "MyApp: C.H.U.D. edition" Dec 08 20:27:47 !@#!@# the XL is out of stock Dec 08 20:30:12 XL doesn't fit nicely into the daydream headset does it? Dec 08 20:30:50 Hello, I don't know if its the right place to ask but is there a way to override DNS servers globally (wifi and mobile) w/o root or paid apps on nougat? Dec 08 20:31:26 Not really. As close as you're going to get would be telling it you require the use of a proxy server. Dec 08 20:32:00 pfn: Apparnetly that's part of the reason it's stretchy? I saw a reviewer last night that mantioned it was a bit bulgy but still fit Dec 08 20:32:21 it's not just that, but the display extends beyond the headset, so you're not using all the pixels... Dec 08 20:32:31 There is some "DNS changers" on the playstore, but most don't allow custom DNS without paying. I don't even know if its worth a try Dec 08 20:32:42 ...then I can do some layout work and make a new Cardboard headset Dec 08 20:33:00 at least my 6p is too big for the daydream headset Dec 08 20:33:05 LEI: You're not changing DNS settings without admin access, man. Dec 08 20:33:09 I didn't try with the XL when I had it Dec 08 20:33:29 Dagmar: yeah :( Dec 08 20:33:35 At the moment I'm still usign a Galaxy S5, but with the ZeroLemon "Giant Ass Battery" hardcase Dec 08 20:33:45 It doesn't really fit into a damn thing unless I make it myself. Dec 08 20:34:53 It's 3/4" thick, but tremendous battery life Dec 08 20:36:17 thats what she said Dec 08 20:40:28 pfn, the daydream headset is sold for the pixel and the xl; the xl is a little bigger but it fits. As you say, not the whole screen is in there Dec 08 20:40:57 pfn, the xl is only marginally smaller than the 6p Dec 08 20:41:17 I think my xl w/ a case is about the size of the 6p w/ no case Dec 08 20:41:40 yeah, I'd assumed as much Dec 08 20:43:05 Hey all. I am wanting to incorporate reactive programming in my app. Which versions of rxjava and rxandroid should I use? Should I just go with version 2 for both or do the 2.0.0 rc1 for rxandroid and 1.1.6 for rxjava Dec 08 20:44:11 were can i find jenkins stuff for android auto build? Dec 08 20:44:25 2.0.2 of RxJava and 2.0.1 of RxAndroid Dec 08 20:44:45 sup felles Dec 08 20:44:58 Oh shit! It's Jake lol. You are like a super star Dec 08 20:45:01 need build android for my device Dec 08 20:45:52 Thanks for the reply. I've been confused because i see a few places suggesting to use both v2 and some saying stick with the older rxjava until 2 is more finished Dec 08 20:46:33 I run into an exception (no lines of code shown as to where it's happening) when I try to switch back to a fragment I have in the bottom bar, the exception is ArrayList.size() on a null object reference Dec 08 20:46:52 BinaryWaves: it's definitely ready and better in a lot of ways Dec 08 20:46:52 here's the code of what's happening in the fragment and how the fragment is loaded into the framelayout when the bottom bar button is clicked http://pastie.org/10979777 Dec 08 20:47:09 no ArrayList.size() is ever called during this operation Dec 08 20:47:22 JakeWharton: gotcha, thanks! Do you frequent the irc here? Dec 08 20:47:45 it is however called in FragmentManagerImpl.getFragment() Dec 08 20:47:46 rarely. someone mentioned OkHttp like 50 times today and i left the tab open Dec 08 20:47:54 if (index >= mActive.size()) { <-- here Dec 08 20:48:04 why does it lose track of who's active? Dec 08 20:48:50 Odaym: What is the stack trace? Dec 08 20:49:15 JakeWharton: Ah, glad I caught you :) Thanks for making nice libraries, I just butterknife a lot and trying to learn dagger, kotlin, and rx stuff over my winter break! Dec 08 20:49:23 use* Dec 08 20:49:25 here http://pastie.org/10979780 Dec 08 20:49:42 refers to native code Dec 08 20:50:02 awesome. kotlin is a lot of fun to learn and use. Dec 08 20:50:04 Im going to feed the beginTrasaction a new fragment Dec 08 20:50:29 it stopped complaining.. Dec 08 20:50:45 all the other fragments are loaded into the beginTrasaction as preinitiliased objects.. Dec 08 20:55:06 JakeWharton: Actually I have another question for you! I was trying to add retrolambda to my project earlier and it wouldn't compile, I found a SO suggesting to remove the classpath apt entry and change the apt 'com.jakewharton:butterknife-compiler:8.4.0' line in the app gradle file to annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'. This works and compiles but does this mean butterknife is the goto processor for EVERY Dec 08 20:55:06 annotation? Or does it only handle the butterknife-specific annotations Dec 08 20:55:22 Like could i have multiple annotationProcessor ... lines? Dec 08 20:55:27 yes, you can have multiple Dec 08 20:55:39 it only operates on the annotations it specifies Dec 08 20:55:47 gotcha thanks for clarifying Dec 08 21:23:43 so you can't load a fragment into fragment's viewpager? Dec 08 21:24:01 I'm using getChildFragmentManager Dec 08 21:29:24 this guy's doing it http://stackoverflow.com/questions/13379194/how-to-add-a-fragment-inside-a-viewpager-using-nested-fragment-android-4-2 Dec 08 21:37:25 Odaym, i'm doing it too in one of my project, it's an activity with a viewpager + tabs and few fragments, and one of those fragment is a nestedfragment with also a viewpager + tabs and few fragments, it looks like that for this part: http://imgur.com/a/MztRr (it was a client request to have sub tabs under one of the main tabs) Dec 08 21:37:40 true Dec 08 21:37:44 and i did not do anything specific except using mViewPagerAdapter = new ViewPagerAdapter(getChildFragmentManager()); inside the nested fragment Dec 08 21:37:47 (as you figured) Dec 08 21:37:50 exactly Dec 08 21:38:02 there are few tricks to do if you want to handle option menu though but nothing you will not overcome by yourself i believe Dec 08 21:38:14 it's not showing its view Dec 08 21:38:21 the fragment that gets loaded it's as if it didnt get loaded Dec 08 21:40:05 hmm, i'm not using transaction like you did, but simply adding my (singleton) fragment instance to the viewpageradapter like: mViewPagerAdapter.addFragment(...) and then set the adapter Dec 08 21:40:16 mainly because those fragments never change Dec 08 21:40:36 no no that's for adding the parent fragment to the tab bar below Dec 08 21:40:43 i do that in both Dec 08 21:40:52 ah ok Dec 08 21:40:56 true, your case Dec 08 21:40:59 cause mine is a bottom bar Dec 08 21:41:05 not tabstrip or something Dec 08 21:42:00 ahh then idk if same lifecycle applies Dec 08 21:42:25 seems obvious http://pastie.org/10979834 Dec 08 21:43:08 could it come from how (and when) binding is done with butterknife? Dec 08 21:43:23 aha Dec 08 21:43:36 i'm not using any databinding, butterknife or anything in this project Dec 08 21:43:55 so i cannot include or exclude this factor Dec 08 21:44:00 ill check Dec 08 21:45:32 nope, nothing Dec 08 21:46:07 im even loading fragments that are elsewhere in the project, ones that load fine Dec 08 21:46:31 dang Dec 08 21:53:39 oh man Dec 08 21:53:41 i knew it! Dec 08 21:53:52 i changed the viewpager height to something static in the fragment, now the thing shows Dec 08 21:55:45 this is because of the parent fragment container Dec 08 21:56:03 a cluster of fucks Dec 08 21:56:17 Odaym: no bad words, please Dec 08 21:56:28 I apologize, m'lady Dec 08 21:59:14 that fragment container is sitting inside a nestedscrollview, if you want to have it so that the viewpager inside that fragment container can have match parent, fillViewport on the scrollview will make that possible Dec 08 22:25:05 Melatonina: curtsy! be polite to Odaym Dec 08 22:25:39 Odaym son! Dec 08 22:25:42 well, gnight Dec 08 22:42:51 Hello, in a contentprovider, can I mix * and # ? like: content://com.example.app.contentprovider/table1/*/# ?? Dec 09 01:19:12 Hello, to zoom an Image seems https://github.com/MikeOrtiz/TouchImageView is the only ready-to-use solution (and coding by my self), is there another library to do same functionality ?, I mean.... the link library seems a little old Dec 09 01:25:02 pmercado maybe https://github.com/chrisbanes/PhotoView Dec 09 01:29:06 aahh thanks g00s :-) Dec 09 02:14:46 java.lang.OutOfMemoryError: Failed to allocate a 350438412 byte allocation with 1048576 free bytes and 255MB until OOM <---- first 4 lineas example of PhotoView :( Dec 09 02:32:30 pmercado Could be that the image is simply to large Dec 09 02:32:42 I think I recall running into a similar issue Dec 09 02:33:07 well, yes, is the main idea, to zoom/pan bigger images, like a gallery app Dec 09 02:34:53 Yes, but if you have too many in memory, you'll run into the issue you posted. Dec 09 02:36:29 Also, I'm sure you dont need the full size. I doubt a user is going to want to zoom and pan an entire 7k x 7k image, for example Dec 09 02:39:05 pmercado: also call recycle() on your bitmaps as soon as possible Dec 09 02:39:21 well, error was only with the main_layout and ImageView inside and one image from drawable resources, nothing more. And yes, the main app purpose is to see image details Dec 09 02:39:50 pmercado: my application loads tons of small bitmaps and if I don't call that method I end up with a Out of Memory error Dec 09 02:41:05 you could also tile the image on disk and load only the tiles you need at each time Dec 09 02:42:20 subsampling? Dec 09 02:44:09 I never attempted to load a 7k x 7k image but... is that considered a big image? It's just 7 times the screen size Dec 09 02:44:22 Can that be a problem? Dec 09 02:46:17 a problem that must be solved :-/ Dec 09 02:48:26 pmercado: You could rig something up with https://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html Dec 09 02:48:38 like Google Maps block loading style or something Dec 09 02:51:08 ds84182: thank you, will see it soon :-), seems an alternative **** ENDING LOGGING AT Fri Dec 09 03:00:01 2016