**** BEGIN LOGGING AT Mon Nov 28 03:00:01 2016 Nov 28 03:03:32 I love when packets of peanuts have "Warning: May contain peanuts". Nov 28 03:17:22 TacticalJoke: Software engineer, Warning: May contain heavy sarcasm Nov 28 03:19:11 TacticalJoke reto's android book keeps getting pushed out ... was going to be this summer, then nov, now its next summer :) Nov 28 03:19:42 Kinda like our apps. haha Nov 28 03:20:04 i wonder if he gave up, imagine trying to explain why things are so crazy Nov 28 03:23:00 It can't be very fun. To me, it'd feel like I'm writing about something that I hope goes extinct as soon as possible. Nov 28 03:28:37 you guys work together? Nov 28 03:29:07 they're married... Nov 28 03:29:13 Nah, we're just both taking too long to release. Nov 28 03:30:32 g00s is taking so long I might have to send Shia LaBeouf around. Nov 28 03:52:44 TacticalJoke what if ... #MAGA meant ... "make android great again?" Nov 28 03:54:09 Again? Nov 28 04:16:51 fluorescent drone racing on espn2... awesomeness :-p Nov 28 04:20:26 capella-5x damn that sounds awesome Nov 28 04:20:40 okey friends Nov 28 04:20:53 enough making android great again for today Nov 28 04:21:01 once more, thank you very much for your help :) Nov 28 04:21:05 good night, sleep well Nov 28 04:22:35 pretty cool visually! Nov 28 04:23:37 there's like 6 @time chatting a tube Nov 28 07:23:22 Does anyone here use Macbook for serious Android dev? Nov 28 07:26:36 Probably a lot of people, but not for much longer Nov 28 07:32:01 every google dev iv met had a macbook /: Nov 28 07:32:47 Pretty standard equipment for developers in Silicon Valley Nov 28 07:32:57 yep Nov 28 07:45:13 I mean, I just bought one from eBay. It's BF sales Nov 28 07:45:36 256GB SSD but only 8GB RAM Nov 28 07:46:00 Idk how bloated Android Studio in OSX is compare to Windows Nov 28 07:46:20 id imagine its bloated on all os's equally Nov 28 07:46:41 surely u can dump more ram onit Duplicated Nov 28 07:47:11 uh, it's the early 2015 13" rMBP lol Nov 28 07:47:49 not the older ones back when Apple was nice and let people upgrade their own RAM/SSD Nov 28 07:48:44 what? Nov 28 07:48:52 you cant change the ssd/ram? Nov 28 07:51:07 nice thepoosh, real naaaaaaice Nov 28 07:52:04 I think it was after the early/mid 2014 model that they changed it up lol Nov 28 07:52:17 gotta milk the people more Nov 28 07:53:21 i wouldnt touch a pc/lap that you need some asshat in a store to upgrade its ram/hdd Nov 28 07:54:05 raoul11: HAI Nov 28 07:54:13 what's noice? Nov 28 07:54:33 you inviting me for a burger, then closing the window Nov 28 07:54:37 nice, real nice. Nov 28 07:56:00 But the deal's pretty good though, for a macbook Nov 28 07:56:11 raoul11: I was mentoring and stuff Nov 28 07:56:23 $1200 free shipping no tax Nov 28 07:56:30 helloWorld much thepoosh ? Nov 28 07:56:37 hmmm Nov 28 07:56:44 mostly talking about DB design Nov 28 07:56:58 but 2 stages after hello world Nov 28 07:57:05 any promising fwits there? Nov 28 07:57:12 Duplicated: that is a good price Nov 28 07:57:36 Well, I might probably return it unopened lol Nov 28 07:58:32 There's another one I was eyeing earlier, pretty desktop replacement spec but its weight won't kill my back (excluding the power brick) Nov 28 07:59:50 standard i7 quad core, 16GB RAM, GTX1060, 512GB SSD, 1080p IPS Nov 28 08:01:02 pretty good Nov 28 08:01:13 all for 1300 free shipping as well, and they use Clevo as their base which afaik mostly nailed down the thermal design Nov 28 09:04:55 Hello Nov 28 09:06:11 Hello Nov 28 09:06:47 I Have the program android studio but i cant activate the adv because of the recommendation "Your CPU does not support required features(VT-x or SVM) and i did turn on the SVM Nov 28 09:07:16 Im using windows 10 insider preview Nov 28 09:08:25 or do i need to be in windows channel for this question Nov 28 09:10:14 you mean the avd? Nov 28 09:10:20 yes sorry] Nov 28 09:11:06 and i cant install the HAXM Nov 28 09:11:19 oh, well shit, that's your first problem Nov 28 09:12:09 install HAXM first Nov 28 09:12:18 Cant getting the same error Nov 28 09:13:52 Vancouver-BC: http://imgur.com/a/d0nCe Nov 28 09:14:02 this are the errors Nov 28 09:14:44 Download it using your SDK Manager, then run the silent_install.bat Nov 28 09:14:51 same :S Nov 28 09:15:31 Why do you need to access the avd? Nov 28 09:16:29 euhm i did try genymotion but i get a bleu screen :S Nov 28 09:17:02 everything should be good once you figure out the HAXM installation Nov 28 09:18:37 This computer does not support Intel Virtualization Technology (VT-x). HAXM cannot be installed. with the silent install Nov 28 09:19:50 what chipset are you using? Nov 28 09:20:17 dont know :S Nov 28 09:20:35 did not install it maybee thats the problem :D Nov 28 09:21:08 Are you #($%$%! Nov 28 09:21:23 It won't run on none-intel chipsets, or chips that are too old Nov 28 09:21:32 is there a better way to update FragmentPagerAdapter's Fragment content w/o recreating than storing Fragment which created in getItem in weekreference ? Nov 28 09:21:35 Here are the minimum requirements Nov 28 09:21:36 https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows Nov 28 09:21:55 http://www.asus.com/Motherboards/M5A97_R20/ Nov 28 09:22:36 AMD 970/SB950 Nov 28 09:23:27 so i need to use genymotion i think because i did use this before with genymotion Nov 28 09:25:20 SVM is supported on linux Nov 28 09:25:57 yea but i dont like linux because i write a lot of program in c# for some companys Nov 28 09:27:13 dualboot Nov 28 09:28:12 wel that can only i need to run a prog from windows on a RPI and then run a Android app from linux :S Nov 28 09:29:10 @asturel; what are you trying to do? Nov 28 09:31:59 i have textview in Fragment where i want to add text :D Nov 28 09:32:13 but recreating it makes it 'laggy' Nov 28 09:33:10 pm me Nov 28 09:33:13 so now i have POSITION_UNCHAGED and update it my fragment thing way Nov 28 09:33:50 me? Nov 28 09:35:51 What is a good alternative to using weights in layouts if you want to have good performance? Use fixed dp and have those values in dimensions, such that global changes to say margins can be easily changed? Nov 28 09:49:44 I need to ball this idea and see what solutions someone else can come up with. I will have 1 ImageView with one TextView underneath it, representing a "profile" the user can enter by clicking. Now there will be about 5-10 profiles at the end (the user starts with 1 and can add on to that). These "profiles" are arranged vertically to eachother, so it will turn out to be a scrollable view when the user exceeds 3 profiles(it will Nov 28 09:49:44 fill the screen vertically). Nov 28 09:49:51 http://pastebin.com/FuLU0pkA like this Nov 28 09:50:14 clicking the bottom button will create a new set of CircularImageView and TextView Nov 28 09:50:52 so I need a layout that will "extend" dynamically when the user creates more profiles Nov 28 09:53:02 Sounds like a recyclerView Nov 28 09:54:56 Vancouver-BC, okey. Never used it before. I'll take a look, thanks Nov 28 09:57:17 Vancouver-BC, I can see where you're going with it. Creating an adapter to fill in the new profiles into the Recyclerview? Nov 28 09:57:29 is that what you wanted? Nov 28 09:57:51 you probably want to make use of a database? Nov 28 09:58:04 Might be! Yeah I'll have it connected to Firebase somehow Nov 28 09:58:31 There might be a more elegant solution Nov 28 09:58:44 Active Android JPA? Nov 28 09:58:48 perhaps? Nov 28 09:59:52 Vancouver-BC, it might be out of my depth. Never even heard of it before Nov 28 10:14:30 Bernzel, if I can do it, you can too. Honestly, I couldn't get past the guy with the lazy eye in the initial tutorials for firebase. Nov 28 10:20:44 thepoosh: good morning Nov 28 10:20:54 and a good day to you sir! Nov 28 10:38:42 Vancouver-BC, very well. Any resources you can recommend to get me started on that? Nov 28 10:40:56 is this new ?? http://stackoverflow.com/questions/37416428/you-need-to-check-the-icon-inside-your-apk-because-it-is-not-valid/40805935#40805935 Nov 28 10:41:24 the app icon must be in Mipmap otherwise the developer console will reject your APK? Nov 28 11:03:16 Does ?attr/selectableItemBackground not work on api 21? Nov 28 11:03:35 it works on marshmallow fine, but doesn't show any effect on lollipop Nov 28 11:30:21 Anyone? No one? Nov 28 11:35:33 it should work, it's been around since api 11 Nov 28 11:40:08 Hiya. Is it possible to read NFC while screen is locked? I can't seem to find any way without at least rooting phone but then again if not how does the nfc smart lock thing works? Nov 28 12:41:34 I get a JSONArray of JSONobjects from server is there a way to insert JSON objects/array to SQLite? Nov 28 12:41:56 yes Nov 28 12:42:04 you can either store them as text Nov 28 12:42:10 or deserialize them Nov 28 12:42:54 and store them as columns and rows, in the way you like it Nov 28 12:43:09 you are translating them from one representation to another Nov 28 13:03:48 mysteerimasa: you wanna deserialize the json into classes and the use an ORM to store those in a SQLite database Nov 28 13:04:40 I've been fighting for days trying to make file provider working: http://ideone.com/uwWD3v . But any pdf file can open the file Nov 28 13:13:56 ok it seems that adobe reader wants the file to have pdf extension lol Nov 28 13:27:52 Can I redirect users accessing a specific Google Play URL to another Google Play URL (app)? i.e. I have an old app I no longer want to maintain and want to redirect user's accessing that URL to the new app Nov 28 13:29:48 redirect them where? from the play console? Nov 28 13:30:02 yes from the console, can I specify somewhere to make this redirection ? Nov 28 13:30:25 I want to redirect them to another app (which is linked to the same google developer account) Nov 28 13:30:47 doubt it, but you can probably edit that app description to direct them to the correct app Nov 28 13:31:36 Melatonina: gdrc I'm looking for a way to avoid parsing a potentially huge json array and adding the objects piece by piece to sqlite. Nov 28 13:32:18 mysteerimasa: you can always store the json as text. It really depends on the kind of processing you need to do with the data Nov 28 13:32:22 What I'm doing now contentValues.put("id", jsonObject.getString("id")) Nov 28 13:33:45 I guess the problem is that I cannot store the objects as text, as I need to be able to store their properties in DATETIME, real and text Nov 28 13:34:03 and also query those values Nov 28 13:39:36 Store them in epoch time like god and Richie intended Nov 28 13:51:26 mflow, you cannot Nov 28 13:51:50 best you can do is to unpublish your app, it will not be available to new users but old users will still be able to see the store page Nov 28 14:00:59 is there a way to disable scrolling in NestedScrollView contains a RecycleView? Nov 28 14:01:26 i tried to override onInterceptHoverEvent to return false if scroll is disabled Nov 28 14:05:18 oh shi, wrong method I should override onInterceptTouchEvent Nov 28 14:05:19 :( Nov 28 14:05:20 my bad Nov 28 14:51:53 mosh: There's a flag for the recyclerview to disabled nested scrolling. That might be what you're looking for. Nov 28 15:46:27 i'm trying to show a search result that returns different "models" and so will be displayed in different recycler views somehow... Nov 28 15:47:04 and now am thinking how bad can placing multiple list views in a single activity be? Nov 28 15:48:20 use a tabbed view Nov 28 15:58:50 Hey there. Not strictly App-dev, but I'm trying to compile a part of AOSP, namely wpa_supplicant from source. The git repo for it is seperate as one of the external modules. Normally the source-code for wpa_supplicant can be compiled by itself. Now, building it with the android build environment makes this harder since it expects a whole AOSP source tree. I want to be able to compile wpa_supplicant for android with for example the "mm" Nov 28 15:58:50 command, for arm, without compiling all of AOSP. Does this seem possible? Nov 28 16:01:46 Please try #android or #android-root Nov 28 16:02:06 ok, thank you Nov 28 16:25:05 Anyone know offhand why performResumeActivity would be trying to cast one of my activities to another (unsuccessfully)? Seeing instabug reports, not sure how/why this is happening. None of my code is in the stack trace, of course. :-/ Nov 28 16:31:32 Hello Guys, I'm using NestedScrollView with "TextView" as a header then a RecycleView, first time I set the data into the adapter for the RecycleView the NestedScrollView scrolls down to the first item in the RecycleView Nov 28 16:31:39 is there anyway to prevent this?? Nov 28 16:31:40 please Nov 28 16:47:39 is nesting LinearLayouts really affecting performance at a noticable scale? Nov 28 16:48:23 yes, if you have a deep nested hierarchy with many views Nov 28 16:49:12 adq, hm okey.. Nov 28 16:49:59 I find it very difficult to achieve the same linear and uniformed results with RelativeLayout. Nov 28 16:53:20 you cannot always mimic the same things with relativelayout, especially if you use weight with your linearlayout(s) Nov 28 16:53:44 there is also the new constraintlayout if you haven't heard about Nov 28 16:53:50 Moshdev: give up on making RecycleView do the things you want it to, and just use (deprecated) ListViews everywhere? What I finally did. Nov 28 16:53:55 (though 2buggy4me atm) Nov 28 16:56:48 adq, yeah 2buggy4me2 , hope it'll be good though Nov 28 16:58:06 expect to be crushed Nov 28 16:59:16 ashark: what?! your advice is to user ListView over RecycleView?!! Nov 28 17:01:48 What can I say? I was in a hurry and ListView had more convenience-oriented features that Just Work. Nov 28 17:03:02 ... like addHeaderView Nov 28 17:15:00 ugh, i hate the fact that the preview when editing layout doesn't remember the fact that my app is fucking horizontal and fullscreen Nov 28 17:27:36 Where do I start to build my own build option for android? Nov 28 17:28:01 build option? Nov 28 17:28:09 I’d guess the Gradle plugin documentation Nov 28 17:37:05 hi everybody .... I would like to keep AVD in the /opt/ .... is it possible? Nov 28 17:37:22 if you’re on Mac or Linux, yeah Nov 28 17:38:04 just copy it there, and in Android Studio you have to tell it where it goes Nov 28 17:39:55 yocs0000 why ... AVDs are ephemeral Nov 28 17:41:39 g00s: what do you mean ephemeral? Nov 28 17:42:52 g00s: at the moment, on Ubuntu 16.10 64 bit, the .android directory is 1.3 GB Nov 28 17:43:03 g00s: for every user on the machine Nov 28 17:43:10 g00s: sorry, on the computer Nov 28 17:43:27 ever changing/non-permanent Nov 28 17:44:33 transient? ghost-like ...? cheap to recreate? "put them where you want"? Nov 28 17:45:46 konk3r: but the .img files seem to be permanent in the directory .android Nov 28 17:46:02 capella’s definition fits a lot better Nov 28 17:46:03 konk3r: so in what sense are they ephemeral if they are always there? capella Nov 28 17:46:10 those have to be, because they’re the base image that all AVDs get based off of Nov 28 17:46:28 how many users are sharing this computer, though? Nov 28 17:46:30 s73v3r: OK .... can they not reside in /opt? Nov 28 17:46:44 3 maybe .... Nov 28 17:47:03 do you have a large drive? Nov 28 17:47:07 that’s probably the better solution Nov 28 17:47:10 yocs0000 those are managed by the SDK manager. so when an updates comes, what then ... you'll copy it manually into opt ? Nov 28 17:47:24 you'll just make a mess Nov 28 17:49:07 g00s: yes, my question is how do I ask the SDK manager to move them into /opt/ Nov 28 17:49:22 i don't think you can Nov 28 17:50:21 Any Rx experts here? Nov 28 17:53:58 g00s: it sound very space consuming .... Nov 28 17:58:44 So my understanding is that Observable.create() is way to easy for users to implement incorrectly, so we’re supposed to stay clear of it Nov 28 17:59:33 Is Observable.defer( () -> Observable.just( intensiveBackgroundOperation() )); the recommended way to manage it then? Nov 28 18:54:52 Is it possible for internal storage to be kept when testing a debug build? Copying files from the apk to /data/data each iteration is adding time to my testing. Nov 28 19:32:53 where can I save a temporal camera picture for my own App ? I mean... I have some permissions troubles, pics are App specific, there is no need to save it in "media" place Nov 28 19:34:25 wherever you want in your private app space Nov 28 19:35:00 hello Nov 28 19:35:27 capella: it was actually very simple .... Nov 28 19:35:53 but I'm thinking this: Camera is an App, it have to save the picture somewhere public because it have to share the file to other App. Can the Camera App save temporal file directly to the private Own App ? seems impossible for security reason right ? Nov 28 19:37:02 no, you have to create your own FileProvider to allow it to write to the local file Nov 28 19:37:05 I've got a widget composed by a relative layout , and inside it there are a second relativelayout and an imageview. Inside the second relative layout there are a button and an imageview Nov 28 19:37:44 have to use FileProvider always ? Nov 28 19:38:04 I mean... in this kind of situation Nov 28 19:38:39 I've tried to position the external imageview below the first relativelayout, but it doesn't appear. If I use the layput_below param in the external imageview, it appeara but on the top of the relative layout Nov 28 19:40:16 it should be the opposite! These are the sreenshots: http://imgur.com/a/ioHBN Nov 28 19:40:31 Any ideas? Nov 28 19:40:49 (if you want, I can pastebin the layout code) Nov 28 19:50:59 pcmercardo: you'll get a file uri exposed exception on nougat and above for a situation like that. Nov 28 19:51:22 cristian_c: pastebin your layout Nov 28 19:52:34 Is it possible for internal storage not to be wiped each time a new build is installed? Nov 28 19:53:34 I lost the drift yocs0000, AVD location related iirc ... some AS env setting perhaps is what you located? or ... ? Nov 28 19:55:35 dsardari: http://pastebin.com/jbFfVGaZ Nov 28 19:56:34 Is creating multiple instances of Retrofit type still expensive in Retrofit 2? Nov 28 19:57:01 moonarch: what do you mean by "new build is installed"? Nov 28 19:58:16 harryparry: the instances themselves are not expensive Nov 28 19:58:51 What you don't want to do is create multiple http clients, or multiple Gson instances, or create implementations of your service over and over Nov 28 19:59:06 dsardari: thank you :) Nov 28 20:00:03 what's bad about multiple http clients JakeWharton? Nov 28 20:00:09 don't they like use the same thread pool internally? Nov 28 20:04:12 I'm using a JavascriptInterface with a web view, and I'd like to run a function from javascript. Testing for the interface works with "if (Android)", but I'd like to test for the existence of a particular function within the interface. Nov 28 20:04:43 Using "if (Android.functionName)" does not seem to work. Nov 28 20:06:04 @JakeWharton going by your answer here: http://stackoverflow.com/a/20627010/4954322 Is this the same reason for not creating multiple instances of RestAdapter in Retrofit 1? Nov 28 20:06:19 dsardari: any ideas? Nov 28 20:07:35 missingno: no. How would two separate clients know to use the same thread pool? Nov 28 20:09:30 cristian_c: are you just trying to create a button with an icon an a bottom border? your layout vs the image you posted is kind of confusing to me. Nov 28 20:10:38 dsardari: an image on the button (the grey square), and a stripe on the bottom Nov 28 20:11:01 image = grey square (test image) Nov 28 20:11:43 you're probably better off just making a custom drawable with the grey square and stripe on the bottom Nov 28 20:11:44 dsardari: in the left an android widget, on the right my widget Nov 28 20:12:19 dsardari: they are three different items Nov 28 20:12:41 harryparry: yes. RestAdapter and Retrofit instances aren't directly expensive. It's the underlying client and converters that you don't want duplicated. Nov 28 20:12:49 the grey square will be substituted by an icon Nov 28 20:13:10 If you ensure shared instances of those yourself then creating multiple Retrofit instances is fine Nov 28 20:14:00 dsardari: the stripe will keep two possible states (on and off, so two different colors for the stripe) Nov 28 20:14:24 Android comes with a default/native internet browser right? (not chrome) Nov 28 20:14:35 dsardari: if I put thenitems in an unique drawable, I can't handle them Nov 28 20:14:43 JakeWharton Makes sense. Thanks a lot! Nov 28 20:14:57 I'm trying to figure out why cookies aren't storing in the default/native internet browser app on android, but i can't find much documentation on it Nov 28 20:15:30 cristian_c: you would use a state list drawable in that situation Nov 28 20:16:31 nvm, it is storing cookies Nov 28 20:16:36 or even a color state list Nov 28 20:16:43 dsardari: ok Nov 28 20:17:14 I'll read the documentation about this (if it exists :-/) Nov 28 20:17:59 https://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html Nov 28 20:18:10 ok Nov 28 20:18:13 thanks Nov 28 20:21:47 codepath might be better if you're unfamiliar with all the capabilities of drawables: https://guides.codepath.com/android/Drawables Nov 28 20:23:16 Does anyone know if there is a way to check for the existence of a function inside the JavascriptInterface for webview? Nov 28 20:37:09 dsardari: I'll try to take a look also to it Nov 28 20:37:13 thanks again Nov 28 21:08:12 hello! Nov 28 21:08:48 ohai Nov 28 21:09:00 sup Nov 28 21:21:35 JakeWharton: I asked earlier but no one was around to anser, is “Observable.defer( () -> Observable.just( intensiveBackgroundOperation() ));” the recommended way to manage creating a single use observable that I need to subscribe on a background thread since Observable.create() appears to be strongly recommended against? Nov 28 21:22:37 Observable.fromCallable Nov 28 21:23:02 Thanks! Nov 28 21:28:48 so setCompatVectorFromResourcesEnabled doesn't seem to work for DrawableWrappers subclasses I declare in xml Nov 28 21:29:03 like, Nov 28 21:29:07 does not work on Kitkat Nov 28 21:29:32 Okay, so if I understand this fromCallable allows me to just operate directly on the item instead of it being wrapped as an observableSource Nov 28 21:35:58 from my activity i am opening another activity via an intent(settingsactivity/preferencessomething). now on load of the main activity i configure a ShareActionSomething. based on the settings the intent for this changes. my problem is that the setting is applied just fine upon restarting the main activity but not when the SettingsActivity goes back to the MainActivity(NavUtils.navigateUpFromSameTask) Nov 28 21:36:04 . could you point me to an event i could ... Nov 28 21:36:07 ... use in MainActivity to get noticed of this? so i can apply the settings to the Intent Nov 28 21:37:04 instead of just startactivity, you could try StartActivityForIntent Nov 28 21:37:12 err, startActivityForResult Nov 28 21:37:44 either that, or don’t configure the Share thingy until you are going to actually use it, or configure it in onResume Nov 28 21:37:49 weird appcompat apparently tries to inflate all your drawables onCreate of your first AppCompatActivity Nov 28 21:40:25 well not all seems to have a list of internal ones Nov 28 21:45:24 when using Android Camera Guide, I have my app crash, still don't know why, but in code, I have this: http://paste.opensuse.org/41950012 where appear "my_images" path in the fileprovider variable, why?. It crash when returning camera app and "data" variable in onActivityResult method is null Nov 28 21:45:43 s73v3r: thanks i will try that! Nov 28 21:48:41 pmercado: check your stack trace Nov 28 21:51:33 http://paste.opensuse.org/98746433 Nov 28 21:53:46 did you provide an absolute path? or did you use the Android system methods to get a path Nov 28 21:55:11 hmm so https://developer.android.com/reference/android/support/v7/app/AppCompatDelegate.html#setCompatVectorFromResourcesEnabled(boolean) Nov 28 21:55:17 implies that wrapped drawables should work Nov 28 21:55:27 but I don't see anything in their code handling those Nov 28 21:55:47 I don't see how it would work for either... Nov 28 21:56:43 http://paste.opensuse.org/32545155 (MainActivity) and http://paste.opensuse.org/46165318 (android-manifest) Nov 28 21:57:58 what version are you running on? you probably still have to declare the camera permission Nov 28 21:58:12 emulator is 6.0 Nov 28 21:58:43 you’re not asking for camera permission Nov 28 21:59:01 lines 5 and 6 are not enough? Nov 28 21:59:03 oh wait, you’re running on an emulator? Nov 28 21:59:08 (from manifest) Nov 28 21:59:13 no Nov 28 21:59:32 emulator doesn’t work with the camera, i don’t think. you should run on a device Nov 28 21:59:51 you can set the emulated camera for the device Nov 28 21:59:53 uhm let me see Nov 28 22:02:38 in my Moto X Play with Android 6.0.1 crash in the same way Nov 28 22:03:29 the problem is that your intent is null Nov 28 22:03:39 ... I just only follow android tutorial :'( Nov 28 22:03:43 yes, when back Nov 28 22:04:16 is this from d.android.com? Nov 28 22:04:34 the guide? https://developer.android.com/training/camera/photobasics.html <-- this Nov 28 22:05:21 the null intent is expected behavior iirc Nov 28 22:05:29 let me see if i can find it Nov 28 22:05:31 works fine in the "Get the Thumbnail", this is why I get a button and ImageView, to see thumbnail inside ImageView Nov 28 22:06:19 wait, find didn't add write external permission Nov 28 22:07:08 crash anyway :( Nov 28 22:07:54 same crash? Nov 28 22:11:21 yes, data is null Nov 28 22:11:57 did you google the problem? Nov 28 22:12:04 So I'm trying to run an application that I got from GitHub so I can tear it apart and learn how camera2 works. However, this is the second project I've downloaded where the project gradle is empty. Nov 28 22:12:37 pmercado: http://stackoverflow.com/questions/9890757/android-camera-data-intent-returns-null Nov 28 22:13:06 oh yes, in so too, but didn't found that link, let me see Nov 28 22:14:14 Do you have any clue why that could be happening s73v3r? Nov 28 22:14:21 no Nov 28 22:14:42 Would you mind taking a look at the GitHub project? to see if it's just on my end? Nov 28 22:15:04 if you see it on the Github site with a populated file, then it’s probably populated Nov 28 22:16:07 Nope..... it's empty -.- Nov 28 22:16:17 pmercardo: https://android.googlesource.com/platform/packages/apps/Camera/+/android-6.0.1_r74/src/com/android/camera/PhotoModule.java#1350 Nov 28 22:16:30 is there any easy way of building a gradle for the project? Nov 28 22:16:40 import it into studio Nov 28 22:18:50 building a gradle Nov 28 22:19:27 IamNewb import project > point to build.gradle file or settings.gradle file Nov 28 22:19:33 Usually works better in my experience Nov 28 22:19:49 better than pointing to the folder that is Nov 28 22:20:10 Will give it a shot ty Nov 28 22:20:34 [19:12] pmercado: http://stackoverflow.com/questions/9890757/android-camera-data-intent-returns-null <--- that is Nov 28 22:20:40 =) Nov 28 22:21:27 thank you for your time s73v3r :) Nov 28 22:22:04 build.gradle is still empty Nov 28 22:33:24 anyone know if you can sideload apps on the new kindle fire hd 8 Nov 28 22:33:47 no idea; try #android or #android-root Nov 28 23:40:45 Is it bad form to use RxJava to perform a background operation that doesn’t have a return value? Nov 28 23:41:04 Dont see why it would be. Nov 28 23:41:50 Well, as long as the operation isnt better suited to a specific Android component. Nov 28 23:42:32 Cool Nov 28 23:49:07 whoa, SanMehat lives? Nov 28 23:50:56 I do :) Nov 28 23:51:40 now with +2 child processes! Nov 29 00:40:05 Does anyone have any experience with iBeacon? AFAIK, the advertisement payload is suppose to be like 32 bytes, yet Im receiving a byte[] with a length of 62.. Nov 29 00:40:09 Not sure why Nov 29 01:13:08 AS 2.3 canary 2 Nov 29 01:35:01 would anyone today have any ideas how i could either fix or silence this error that i'm getting when i'm using a third party library: "Error:warning: Ignoring InnerClasses attribute for an anonymous inner class (com.baidu.mobad.feeds.BaiduNative$CustomIOAdEventListener$2) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. ... Nov 29 01:35:07 ... ..." i've tried adding -keepattributes EnclosingMethod and -dontoptimize to my proguard-rules.pro but it didn't help Nov 29 02:04:35 Hi, is a good practice to set strings in a resources/values/constants.xml as string constants like static string? Nov 29 02:05:41 I mean, well defined files path as: File.separator + R.string.path_original Nov 29 02:05:56 Does it provide any benefit, pmercado? Nov 29 02:06:05 I think the main reasoning behind strings.xml is translation. Nov 29 02:06:23 are the same constant written inside xml files too Nov 29 02:08:32 uhm, just to avoid write them twice Nov 29 02:08:44 :-/ Nov 29 02:10:21 pmercado: With `static final String` you get that benefit plus the ability to keep the constant near the code that uses it. Nov 29 02:10:38 Sometimes you can even use `private` and hide it from code that doesn't use it. Nov 29 02:10:59 and how use that static declaration inside a xml file ? Nov 29 02:11:05 that's my question Nov 29 02:11:33 or reverse, use a xml declaration inside java classes (like R.string.path.....( Nov 29 02:14:35 Which XML file do you want to use these string constants from? Nov 29 02:14:39 would be nice if tools created Preferences.java file from the keys of the preferences.xml file Nov 29 02:15:40 I don't know, is something already made? Nov 29 02:16:41 " and how use that static declaration inside a xml file ?" < Which XML file? Nov 29 02:18:02 In any case, if you need to access the strings from an XML file, you'll have to define them in XML. Nov 29 02:18:29 Unless data binding is an exception (I've not tried it). Nov 29 02:18:58 any file, a custom xml like /res/constants/folders.xml <--- and inside it something like @com.example.app.pkg1.pkg2.class Nov 29 02:19:32 that's weird, but you get the point I hope Nov 29 02:24:02 A typical practice is to define user-visible strings (e.g., "Please enter a message") in XML and other strings (e.g., `public static final String SEPARATOR = ", ";`) in Java. Nov 29 02:26:42 uhm, ok, thanks :) Nov 29 02:27:11 I'm trying to load drawables from string names and got this working for context.getResources().getIdentifier(resourceName, "drawable", context.getPackageName()); but it's kind of slow, I read in this http://stackoverflow.com/questions/4427608/android-getting-resource-id-from-string as well as other locations that the first answer is faster, but I can't get it to work because Drawable.class.getDeclaredFields() does not Nov 29 02:27:11 contain . Any idea how to get that to work? Nov 29 02:29:49 pmercado: This has good results: https://www.google.com/search?q=android+string+vs+constant Nov 29 02:31:09 Syzygy_: Hmm, wouldn't it be `R.drawable.class`? I don't understand why he's mentioning `Drawable.class`. Nov 29 02:32:17 writing that into my debug watch list disconencted my debugger :/ Nov 29 02:32:50 but that seems to do the trick. thanks Nov 29 02:34:08 Note that this could fail in future. Right now, the build tools create the R.drawable class with int fields, but if that ever changes then stuff won't work at run time. Nov 29 02:34:28 If you Ctrl+click (or middle-click) `R.drawable` you'll see the class that's generated. Nov 29 02:35:00 Or Ctrl+B. Nov 29 02:35:06 In which cases would it change so that the runtime request would no longer work at runtime? Nov 29 02:35:52 As far as I know, this'll always work at run time for that particular APK. But if you build again with new build tools which don't create the same basic R.drawable then it'll fail. Nov 29 02:36:25 Could you instead use the normal method and cache the results? Nov 29 02:36:33 Then it's a single read per drawable constant. Nov 29 02:37:19 TacticalJoke: cool, thanks mate :) Nov 29 02:38:23 TacticalJoke, what would that normal method be? The one I linked? It's loading to slow. Nov 29 02:39:11 actually both methods take ages Nov 29 02:39:33 I try to cache the data in a hashmap btw Nov 29 02:39:58 Yeah, the framework method. Nov 29 02:40:26 this? context.getResources().getIdentifier(resourceName, "drawable", context.getPackageName()); Nov 29 02:42:04 Yeah. That's basically guaranteed to always work. Nov 29 02:42:19 I would do that, but I'm having performance issues. Nov 29 02:42:36 Seems like it's loading all 1500 items of my recyclerview at the same time Nov 29 02:43:28 I wonder whether you could even use an array here: https://developer.android.com/guide/topics/resources/more-resources.html#TypedArray Nov 29 02:46:53 To put it another way, why is it that you have a string representation of a drawable-resource name? Nov 29 02:47:38 because the icons are local, but the items are loaded from json, but contain the name of their icon. Nov 29 02:48:10 and to display the items, I'll have to somehow load the corresponding icon. Nov 29 02:48:31 Can't you simply translate in code (e.g., `switch (name) { case "foo": return R.drawable.foo; }`)? Nov 29 02:48:54 I have 180 icons, possibly more later on Nov 29 02:49:01 Oh. Nov 29 02:49:02 I probably could, but... Nov 29 02:49:16 https://news.ycombinator.com/item?id=13056288 Nov 29 02:50:46 g00s: "Your phone probably contains banking, payment and personal information that can be remotely stolen via numerous known and unknown bugs in the Android software." < Scary. Part of the reason I always browse in Incognito, never remember sign-in details, use a throwaway account for my phone, etc. Nov 29 02:51:21 i have to decide what my next phone will be Nov 29 02:51:23 Syzygy_: How many Resources.getIdentifier calls does it take for things to feel slow? (I've never used it before.) Nov 29 02:51:59 If my code is working correctly, 114 takes about 14 seconds Nov 29 02:53:03 only 114 of the icons are actually loaded due to the dataset (and possible missmatches between the name in the dataset and the icon name), and they're all cached as a drawable in a hashmap Nov 29 02:53:21 so repeated calls will access the data through the hashmap Nov 29 02:53:59 Are you sure it's the actual Resources.getIdentifier call that's this slow? Nov 29 02:55:09 I would imagine (although I'm not sure about the under-the-hood details of resource loading) that loading the images **at all** is gonna take some time. Nov 29 02:55:40 The bigger problem is that they're loaded either way... for some reason my recyclerview loads all 1500 items at the same time Nov 29 02:55:59 aren't recyclerviews made so they only load what is necessary at the time? Nov 29 02:56:46 What do you mean by "loads all 1500 items"? RecyclerView just creates a few views and reuses them, creating perhaps 10 views for 1500 data items. Nov 29 02:57:19 Though the RecyclerView user determines how the data items are loaded. Nov 29 02:57:58 g00s: Is your current phone a Windows Phone? Nov 29 02:58:11 TacticalJoke yeah Nov 29 02:58:31 from what it sounds like MS is not abandoning WP Nov 29 02:58:48 g00s: You'd probably enjoy Android more if you had an Android device. :D Nov 29 02:58:54 not really Nov 29 02:58:57 lol Nov 29 02:59:07 TacticalJoke, I load and set the drawable in onBindViewHolder Nov 29 02:59:12 i use my n7 for kindle, thats about all android i can handle Nov 29 02:59:48 i just wonder how much longer google will waste our time with this java framework before rebooting everything **** ENDING LOGGING AT Tue Nov 29 03:00:00 2016