**** BEGIN LOGGING AT Mon Feb 20 03:00:01 2017 Feb 20 03:04:00 hello Feb 20 03:04:20 so I have some menu item on my actionbar Feb 20 03:04:23 it's a "done" action Feb 20 03:04:44 but, I was wondering, onOptionsItemSelected gets called, then, can I call finish()? b/c onOptionsItemSelected has to return boolean Feb 20 03:12:01 huh. it worked Feb 20 03:12:02 :D Feb 20 03:15:04 hope this is the right place, anyone have thoughts on this? ... http://stackoverflow.com/questions/42146894/why-is-gradle-saying-the-c-compiler-is-not-able-to-compile-a-simple-test-progra Feb 20 03:18:37 missing libraries i'd imagine Feb 20 03:19:41 Why would a drawable not be rendered? Feb 20 03:20:32 I have a jpg in my res/drawable folder and I'm setting it to the background of a layout. It displays fine in Studio, but when I deploy to my physical phone, the image is missing Feb 20 03:37:18 Can someone help me with my BroadcastReceiver - it doesn't seem to get triggered. Feb 20 03:50:02 Can anyone help me work out why my BroadcastReceiver, which is defined in my manifest, is never being triggered? Feb 20 03:56:13 pastebin some code Feb 20 04:17:32 bankai_, http://pastebin.com/fFzXCsPp <-- manifest Feb 20 04:19:47 bankai_, http://pastebin.com/JhcZY8eS <-- receiver Feb 20 04:24:23 Uhh I dont know what happened there - ignore the "onReceive" at the top Feb 20 04:29:41 looks fine to me.... which OS are you testing on? Feb 20 04:40:26 I've updated this question in the hopes that anyone might have some thoughts ... http://stackoverflow.com/questions/42146894/why-is-gradle-saying-the-c-compiler-is-not-able-to-compile-a-simple-test-progra Feb 20 04:40:44 bankai_, Windows 10 Feb 20 04:42:50 android OS version Feb 20 04:43:31 bankai_, 25 Feb 20 04:44:00 so 7.1.1 Feb 20 04:48:08 Yes Feb 20 04:48:30 Hello all. I am working on a little side project that requires a DHCP server. I am using the Android Things dev preview 2 on a Raspberry Pi 3. I am having a hard time finding anything on the web that could point me in the right direction on how to set this up. In the past, I have configured a server using isc-dhcp-server and hostapd in the past, but am unable to do this on Android. Any ideas or pointers to helpful documentation woul Feb 20 04:48:31 d be helpful. Feb 20 04:51:14 Anthaas: i think you're running into a perm problem because of the sdk version and the new (not so new now) permissions framework. Feb 20 04:52:10 bankai_, Am I not asking for permissions in the correct way? Feb 20 04:53:31 certain permissions will still work that way, but for newer versions of android you should check you (still) have said permissions - ContextCompat.checkSelfPermission(context,perm)... Feb 20 04:55:17 After API23 you need to use the new permissions model (runtime permissions), as bankai_ stated. e.g. int permissionCheck = checkSelfPermission(this, Manifest.permission.WRITE_CALENDAR); Feb 20 04:57:17 So, what about static permissions, or do I absolutely have to set up permissions on first load? Feb 20 04:57:45 Im not encountered with an error of any sort, wwhich I'd expect if that was the limitation Feb 20 04:57:47 well, you gotta check every time because they can be revoked at any time Feb 20 04:58:07 It depends. There are two types of permissions under the new model. Normal and dangerous. Dangerous permissions must be granted by the user at runtime to the app. Feb 20 04:59:02 What about those I am using? READ_PHONE_STATE and PROCESS_OUTGOING_CALLS? Feb 20 04:59:38 They are both dangerous permissions, past API 23 Feb 20 05:00:19 this is the list https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous Feb 20 05:00:19 This provides a lot of info on the topic https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous Feb 20 05:01:56 So you always have to specifically ask for "dangerous" permissions? Feb 20 05:03:16 You need to check for it at runtime is all. Once granted, the user will no longer be prompted. Feb 20 05:03:46 Ok, so there may be a case where the user is never prompted - i.e. they never take the permission away? Feb 20 05:04:18 they'll be prompted once Feb 20 05:04:32 Right, in which case there is a problem, I am never being prompted. Feb 20 05:05:04 All permissions need to be noted in the manifest, but only dangerous ones need to be checked. Are you using the method bankai_ noted above to check? Once checked, the dialog should appear. Feb 20 05:05:39 Oh I see. Feb 20 05:06:05 So I can actually check if I have it, if not display some info about why I need the perm, and then let the system request it Feb 20 05:06:45 Correct. There is even a parameter to give a description of the reason for the request. Feb 20 05:07:20 Ahhh decent. I mean, I get the need but its a bit disruptive... Feb 20 05:08:05 Ok, so I want to do this on first load, best to check in onResume, right? Feb 20 05:10:53 I have used it in onCreate; knocking it out at first launch (before anything else). I am not sure if that is commonplace, or conforms to guidelines but it works and is a better UX IMO Feb 20 05:11:17 Why does it return an int when there are only 2 possible return values? Feb 20 05:11:22 Ill do that then - same reason I guess. Feb 20 05:14:01 I believe it is for the callback (onRequestPermissionsResult), but not 100% positive on that (new to this field). Feb 20 05:14:17 Am I correct in interpreting that if I ask for READ_PHONE_STATE, then PROCESS_OUTGOING_CALLS is automatically granted because they are in the same group? Feb 20 05:15:37 If they are in the same group, they would all be granted you are correct Feb 20 05:16:20 Now to work out how to request the permission haha Feb 20 05:16:38 I am checking and want to do stuff before requesting if I dont have it Feb 20 05:25:19 AzraelPwnz, Ok, somewhat confused. ActivityCompat.shouldShow...Rationale() - why is this something that I am not in control of? Feb 20 05:25:31 Why should I check this? Or is it completely optional? Feb 20 05:26:56 Gets whether you should show UI with rationale for requesting a permission. You should do this only if you do not have the permission and the context in which the permission is requested does not clearly communicate to the user what would be the benefit from granting this permission. It is the description. Feb 20 05:27:24 If you dont want to give a reason, you arent required to Feb 20 05:27:31 I want to always give a reason. Feb 20 05:27:44 If Im asking for privileges, I want the user to know exactly why, and what I will do with it. Feb 20 05:41:31 AzraelPwnz, bankai_ Thats resolved my problems - thank you. It'd be somewhat better if, for developers at least, if this was the issue there was some sort of clue in the LogCat! Feb 20 05:41:59 Thanks again guys! I need to sleep now! Feb 20 05:42:21 i'm surprised you didn't get a security exception Feb 20 05:44:02 Yeah, I'd have thought I'd have gotten something. Instead it just never registered the receiver and silently ignored me. Feb 20 05:46:19 Not a problem! Feb 20 07:24:05 Not sure if anyone is here Feb 20 07:24:11 But the debugger is refusing to attach Feb 20 07:24:26 The only output that I can see is "Waiting for application to come online: com.redrield.notetaker" Feb 20 07:24:36 But when I'm not attaching the debugger, the app launches fine Feb 20 07:27:46 enable usb debugging in developer options Feb 20 07:31:30 I already have Feb 20 07:31:45 Same thing is happening in AVD Feb 20 07:32:38 launch application manually Feb 20 07:46:25 Is there a way to show back arrow on Toolbar without calling setSupportActionBar Feb 20 07:50:40 Found it. Toolbar.setNavigationIcon() Feb 20 09:32:15 Hmm, RecyclerView doesn't provide an option to set a view when empty? Feb 20 10:24:19 Anthaas, no it doesn't Feb 20 10:24:48 Mavrik, What is the best practice approach to take to implementing a similar feature? I've looked around and found a few suggestions. Feb 20 10:25:05 Put a view behind it and hide the recyclerview Feb 20 10:25:42 Mavrik, I did read something about a new(ish) data binding feature? Feb 20 10:25:51 Accepted answer in: http://stackoverflow.com/questions/27414173/equivalent-of-listview-setemptyview-in-recyclerview Feb 20 10:26:06 I don't use that, it's a beta feature. Feb 20 10:26:13 Ahhh thanks. Feb 20 11:42:17 hi to everybody. i'm brend new of android, and i'm developing an app and a module. I have a odd behaviour in my module. Can someone help me? Feb 20 12:12:34 ilgios_: What Feb 20 12:12:47 ilgios_: What's this odd behavior that you talk about Feb 20 12:21:01 ilgios_, best way to get help is to state your problem, possibly pastebin some code and wait patiently Feb 20 13:05:53 ahoy! i need some help with boot image flashing on android.. Feb 20 13:06:54 i was able to unpack and extract the boot ram disk and repack the files into a emmc.win file. but after i flash it to the device, it boots only to the recovery. it doesnt boot to the system Feb 20 13:07:10 Try #android Feb 20 13:07:20 This is specifically for development on Android. Feb 20 13:07:31 or custom roms or root try #android-root Feb 20 13:07:50 application development specifically Feb 20 13:07:59 oh. my bad! sry Feb 20 13:07:59 ^ Feb 20 13:08:07 No worries - common mistake. Feb 20 13:12:26 So I'm doing some coding for my local public transport company and they have the cleanest best implemented rest api I saw in my life #DidntExpectThat Feb 20 13:13:47 hi. do you know a good introduction in to how to do material design technically? I have an unstyled android project in android studio and want to apply material design according to the guidelines. I assume there is something pre-build for cards etc so I don't have to set the shadows and such myself? Feb 20 13:15:03 CardView is already 'styled' Feb 20 13:15:06 or can you point me in the right direction? can't be too complicated :) I just assume there are some templates or prebuild styles hidden somewhere Feb 20 13:15:25 Ashiren, ah ok, so if I use the default elements they should look material already Feb 20 13:15:30 TotallyNotKim: They might have paid someone good moniez for that Feb 20 13:16:07 Ashiren, and things like the small grey font? I'm coming from CSS and wonder if I do classes or something Feb 20 13:16:41 anotheryou, Look up styles and themes on d.android.com Feb 20 13:16:54 thanks Feb 20 13:17:56 Looney: They did, indeed. Well I'm speaking of the public transport in hamburg. But I saw way to much big companies with bullshit apis, if you even would name them api Feb 20 13:18:30 or with fcked up unclear, incomplete docs Feb 20 13:18:41 Hahaha, tell me about that Feb 20 13:18:49 I re-did a client's API Feb 20 13:19:07 Never got anyone's evaluation but I like to think that it's OK Feb 20 13:19:16 yeah I fell you haha Feb 20 13:19:23 Somebody else did iOS and they didn't complain a word Feb 20 13:19:42 in that case it cant suck that much Feb 20 13:19:45 :D Feb 20 13:20:49 I can PM you if you are interested in reviewing/suggesting improvements for future work Feb 20 13:21:02 *PM swagger docs Feb 20 13:21:08 "Can we get the news from the site in our app?", "Yeah we would need an api for that", "Cant you just parse the html?" *Anger intensives* Feb 20 13:21:12 sure, why not Feb 20 13:21:22 peer reviewing is a good thing to have Feb 20 13:22:30 what is peer reviewing Feb 20 13:22:47 squ, have a 2nd expert look over the work Feb 20 13:23:07 squ, especially important for scientific publications, but not hurting elsewhere either :) Feb 20 13:23:30 to share responsibility? or to move away responsibility to auditor? Feb 20 13:23:47 well more to add trust and reliability Feb 20 13:24:00 to find errors Feb 20 13:26:24 that is testing Feb 20 13:27:13 squ, Think of it as code editing - a normal editor will read some article and say "You could write this in a clearer way, such as..." - in a peer view of code, or a code review, the second person will look at your code for ways to improve its scalability, efficiency, readability, etc. Feb 20 13:27:29 The sort of metrics that testing cannot examine. Feb 20 13:28:00 collective thinking? like colony of ants Feb 20 13:28:04 Peer Review literally means having a peer, someone who is able to similar tasks to you, review your work to test those metrics. Feb 20 13:28:25 Not really, more of a second set of eyes to see if you may have overlooked or could improve on something. Feb 20 13:28:44 we call it 'code review' Feb 20 13:29:05 thing of it as stackoverflow's code review in a more personal way Feb 20 13:29:07 For example, if you write a loop with quadratic time efficiency, and I can suggest a way to improve this to linear, I could tell you and you could make those improvements. Feb 20 13:29:11 think* Feb 20 13:29:13 some projects use dedicated tools like crucible, some others just as merge request in gitlab Feb 20 13:29:23 stackoverflow's code review? Feb 20 13:29:31 stack exchange* Feb 20 13:29:43 http://codereview.stackexchange.com/ Feb 20 13:29:45 squ If you didn't understand my explanation you are better off just Googling it. Feb 20 13:30:04 TotallyNotKim: didn't know about codereview Feb 20 13:30:53 i like it for small portions of code, not for whole projects Feb 20 13:31:08 but you can gather some input on some specific code rather quickly Feb 20 13:31:16 I wonder who are typical users of that stuff Feb 20 13:31:59 beginners to some experts in some specific field Feb 20 13:32:13 diversity of language made it impossible to know one tool good enough, and developing a project usually involves many stuff. That is explanation I guess Feb 20 13:32:46 yep Feb 20 13:33:04 Uhhh, not really. Feb 20 13:33:27 I mean, with a group of developers and a decent code review process its possible to keep the code quality of the project to a relatively consistent standard. Feb 20 13:33:42 Hi all, can you make a service which is always running? Feb 20 13:34:00 Sure Feb 20 13:34:08 how? Feb 20 13:34:15 Have a broadcast receiver trigger on device boot, and then have the receiver start the service. Feb 20 13:35:30 but watch out: http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/ Feb 20 13:36:01 Though I'd probably look for a document describing services thats a little more up to date... Feb 20 13:36:05 Thats 8 years old nearly. Feb 20 13:36:48 true, but most of the points are still valid, or not? Feb 20 13:38:04 Haven't read it, nor have I been involved in Android for quite a while. Feb 20 13:38:10 Not that long ago though haha Feb 20 13:38:20 hehe Feb 20 13:39:25 I mean, the docs describe that they can be ran indefinitely Feb 20 13:39:42 eeyup Feb 20 13:40:03 until system will claim them for resources Feb 20 13:40:09 If this is not the case, you could probably cheat it by calling another BroadcastReceiver in onDestroy to start it up again... Feb 20 13:40:25 Probably shouldn't though... Feb 20 13:40:44 you can make Service more persistent if its in foreground Feb 20 13:41:25 the one with persistent notification Feb 20 13:41:36 thats how most music apps work Feb 20 13:41:50 you dont want to kill your music randomly eh Feb 20 13:43:15 eh? Canadian spotted? :P Feb 20 13:45:20 meh Feb 20 13:45:25 im not sorry Feb 20 13:46:39 :( Feb 20 13:46:48 Us British people also say eh Feb 20 13:47:18 really? Feb 20 13:47:22 didnt noticed that Feb 20 13:47:42 We sort of use it more in a "dont you agree?" way Feb 20 13:48:10 oh indeed Feb 20 13:48:11 https://en.wikipedia.org/wiki/Eh Feb 20 13:49:24 language is a beautiful thing Feb 20 13:50:27 im not canadian nor british Feb 20 13:51:18 a) NZ b) you do it 'cause you can Feb 20 13:52:29 eeyup Feb 20 13:52:38 (where does that come from) Feb 20 13:53:04 My Little Pony? Feb 20 13:53:09 eeyup Feb 20 13:53:12 lol Feb 20 13:55:56 My RecyclerView.Adapter doesn't get its onDetachedFromRecyclerView(RecyclerView recyclerView) called. Any idea why? The public void onAttachedToRecyclerView(RecyclerView recyclerView) is called when I invoke recyclerView.setAdapter(adapter), but I expected the counterpart to be called when the Activity is destroyed. Feb 20 13:57:11 should I do recyclerView.setAdapter(null) in Activity's onPause() ? Feb 20 13:57:26 i expect it would be called when its manually deattached from RecyclerView Feb 20 13:59:25 As a minimum, yes. But I'd it to be automatically detached when the view hierarchy is destroyed. Feb 20 13:59:31 How do I detach it manually? Feb 20 14:02:14 setAdapter(null) results callback to onDetachedFromRecyclerView(RecyclerView) Feb 20 14:03:15 If you have AppX which has an ActivityX and an AppY which has an ActivityY; When ActivityA (AppX) starts AcitivityY (AppY); can ActivityY be transparent so that the user can still see something of ActivityA (AppA)? Feb 20 14:03:55 It's unfortunate that I need this manual hook in order to make the Adapter's lifecycle callbacks works. I wanted my Adapter to be self-controlling. Feb 20 14:08:32 FrancescoV, you are mixing up your Variable theoreticals Feb 20 14:09:28 you havfe AppX, AppyY, ActivityX, ActivityY, ActivityA, ActivityY, AppA.....etc Feb 20 14:09:47 Whatitis, sorry, If you have AppX which has an ActivityX and an AppY which has an ActivityY; When ActivityX (AppX) starts AcitivityY (AppY); can ActivityY be transparent so that the user can still see something of ActivityX (AppX)? Feb 20 14:10:07 i'd hope not Feb 20 14:11:03 why doesn't AppX have ActivityA and AppY have ActivityA, what are you doing. are these two seperate package apps? Feb 20 14:12:27 It's for some research; I need to invest all options to interact between apps Feb 20 14:13:00 sounds like, if Goolge Chrome launches Google+ will Google+ be transparent so can see Google Chrome Feb 20 14:14:47 whatitis: Something like this is in facebook android sdk, which is open source i think, when you post something, a dialog opens in transparent activity. Feb 20 14:15:14 From a quick google search: http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android Feb 20 14:15:23 so little detail Feb 20 14:15:52 whatitis: Yeah well I haven't memorized facebook's sdk source code :P Feb 20 14:15:57 you can use services or have windows on top etc... Feb 20 14:16:25 i'm saying FrancescoV is detailing what he wants, who is AppX and who is AppY Feb 20 14:16:30 are they his apps? Feb 20 14:17:43 Yes, both apps are ours Feb 20 14:25:33 Hello, what do you think of my WIP game ? http://polycount.com/discussion/183612/wip-happy-junk-memory-game#latest Feb 20 14:28:25 octo8, looks cute. I guess I'm to old for this, but if you add a nice scenery where the items integrate it might be fun for kids Feb 20 14:29:15 anotheryou: like make a version with toon style animals for kids ? Feb 20 14:29:42 octo8, no, I thought of a background image which is a rendered 3d scene Feb 20 14:29:46 where the items fit in Feb 20 14:30:03 so the items are actually all in one "room" or photo Feb 20 14:30:33 to give it some atmosphere and make the items less floaty Feb 20 14:30:42 anotheryou: nice idea... Feb 20 14:31:14 I mean like: you arrange all in one scene in blender, with backdrop, than you hide the items to bake the background only and than place the animations on top again Feb 20 14:31:15 Can anyone point me in the direction of documentation that could assist me with configuring the android OS to host a dhcp server? In the past I have used ISC DHCP in a linux environment but unsure of how to get this working on an android device (Rpi3 with Android Things dev preview 2) Feb 20 14:33:16 octo8, in any way: get rid of the white :) even some grey gradient would do good Feb 20 14:33:21 as a background Feb 20 14:34:15 maybe I will do a non-tidy room that has elements scattered, hehehe... Feb 20 14:35:31 wtf is going on. got an RV with a viewpager (images) for each row item, and when i toggle down in the list, load more items, when i go back up - it switches image items on each viewpager Feb 20 14:54:01 Hey guys. I'm having a small problem. I'm trying to mount a FUSE filesystem on android (rooted). I've managed to properly compile and run hello_ll.c (a minimalist FUSE fs with a single "hello" file in it), but when I try to access the mounted FS from any other user than root, it appears as though the FS is not mounted, and accesses the parent FS. A Feb 20 14:54:02 s a user, the FUSE doesn't even appear in /proc/mounts, even though it's there as root. Is android hiding FUSE FS from non-root users somehow ? Feb 20 14:59:32 woops, sorry I disconnected Feb 20 16:23:30 Hi guys I was planning to give a speed up to my old tablet (Motorola Xoom 3G) I saw a mod, blend booster, that looked quite much good, but it look designed just for N4. Does it exist anything else like that? I'm using omnirom with android KitKat 4.4.4 Feb 20 17:26:40 Hello there, I have a question a bit too short for forum threads : could it actually create performance problems if I replace the adapter instance by a new one in a recyclerview each time its data change ? Feb 20 17:29:53 possibly Feb 20 17:29:57 why would you want to do that? Feb 20 17:35:12 If i want to use the material design bottomBar I need a plugin for api level below 21, right? Feb 20 17:35:29 liek https://github.com/roughike/BottomBar Feb 20 17:37:26 I use a library ( https://github.com/thoughtbot/expandable-recycler-view ) to have categories in my app. It's handy but it does not handle properly things when adding new items. The author wish to fix that in the next release but I'd prefer a working solution right now. Feb 20 17:38:04 you’re gonna run into problems. By resetting the adapter, you’re throwing away all of the cells that had already been created Feb 20 17:38:23 you can try it out and see if the performance is still acceptable to you Feb 20 17:39:59 I am working on a project using Android Things (Dev Preview 2). The project requires that up to 10 nodes be assigned IP addresses from a DHCP server. I have used isc-dhcp-server in the past with Linux, but cannot find any documentation on how to accomplish this in Android (any variant). Any tips or links to documentation would be very helpful. Feb 20 17:57:18 http://imgur.com/O3wYjUA anyone know why the images for this gridview would be loading all wonky? the grid should be just evenly spaced squares with the icons in the center of each, but for some reason the second image in the list (top right) is loading really tiny and the second row is overlapping. The icons are all the same size on the server. Using firebaseUI and Glide to load the images Feb 20 18:19:13 i see Android Things articles on /r/androiddev once in a while - but wonder if anyone has seen any design wins Feb 20 18:23:19 Anyone own a 5X? Feb 20 18:38:08 so i got a horizontal RV inside a vertical RV, and when the parent RV toggels down, the horizontal RV's are being recycled. how should i restore the state of the horizontal RVs? li Feb 20 18:38:13 http://imgur.com/O3wYjUA http://pastebin.com/MHmeLcLd anyone know why the images for this gridview would be loading all wonky? the grid should be just evenly spaced squares with the icons in the center of each, but for some reason the second image in the list (top right) is loading really tiny and the second row is overlapping. The icons are all the same size on the server. Using firebaseUI and Glide to load the images. Apologies my Feb 20 18:38:13 computer died and i had to move to another building. reposting as i missed the answer if anyone replied earlier Feb 20 18:42:53 drose379: I have one Feb 20 18:52:20 If I have a 2.4 rated usb C wire Feb 20 18:52:28 And a 2.0 A charging brick Feb 20 18:52:30 Is that ok Feb 20 18:52:32 AzraelPwnz: Feb 20 18:54:04 wow https://www.fraunhofer.de/en/press/research-news/2017/february/app-reveals-constituents.html Feb 20 18:55:21 hello there! Feb 20 18:56:26 g00s: do you know anything about this Feb 20 18:56:32 My charging adapter says 2A Feb 20 18:56:36 and my wire says 2.4A Feb 20 18:56:38 Are they compatable Feb 20 18:56:42 sure Feb 20 18:56:49 How do you know? Feb 20 18:57:00 I do not see a problem with it. It is better than the other way around haha Feb 20 18:57:02 wire is just saying its rated to take up to 2.4a Feb 20 18:57:19 and the adapter isn't going to give more than 2 so Feb 20 18:57:37 technically it may give a little bit more, but should be ok Feb 20 18:57:57 OK nice Feb 20 18:58:03 And my 5X does not rapid charge with it Feb 20 18:58:09 But it does with the brick that gives 3A Feb 20 18:58:11 Makes sense Feb 20 18:58:41 i think dragorn can explain that one Feb 20 18:58:58 I need help with an animation/effect Feb 20 18:59:18 i want to "emulate" the google inbox effect when you click on an item Feb 20 19:01:02 i already tried to find any library or tutorial to make it or at least something similar, but i still didint find anything Feb 20 19:03:18 tksko: I like using Lottie for animations because it renders adobe after effects. Not sure if that is what you are looking for or not. Feb 20 19:03:26 https://github.com/airbnb/lottie-android Feb 20 19:03:44 tksko I'm going to assume you mean the animation where the title animates to the top when clicked? Feb 20 19:03:55 In which case this is called shared element transitions Feb 20 19:05:16 yes, its like that the card you select gets full screen, and the list is "splitted", one halt roll to the top and the toehr half to the bottom Feb 20 19:06:12 Yes, it's a shared element transition Feb 20 19:06:23 do what now? Oh. charging? charging is a cluster. Feb 20 19:06:39 yes, a 2.4a cable is fine on a 2a charger. you can always overspec the consumption side. Feb 20 19:06:40 i will try to share a video Feb 20 19:06:57 fast charging is a wacko specialty thing; there's probably a half dozen ways it's negotiated Feb 20 19:07:16 here is the demo: https://drive.google.com/open?id=0B-6r3853kNZ4VV93ZHJ6dU1JZnc Feb 20 19:07:55 my second problem is that my min API level is 14.. Feb 20 19:07:57 the modern stuff all uses a data negotiation w/ the charger so if you don't match the spec the charger expects and the spec the charging circuit in the phone expects, you don't get fast charging, because that has to negotiate rates. Feb 20 19:08:03 I need pre lollipop transitions Feb 20 19:08:31 I am actually using some libs that backport some animations Feb 20 19:08:48 but i still cant emulate the inbox animation Feb 20 19:09:01 you’d have to look for a library that backports transitions, but I’m pretty sure shared transitions came with Lolipop Feb 20 19:09:14 hey dragorn getting warmer ! Feb 20 19:09:39 g00s, yeah it's quite nice. Feb 20 19:20:13 raoul11: g00s: ? Feb 20 19:20:19 thepoosh Feb 20 19:20:24 how is it? Feb 20 19:20:27 kids are a drag Feb 20 19:20:55 sooooo tired and they only came back home today Feb 20 19:22:20 \: Feb 20 19:22:30 sux, i need you in your best thepoosh Feb 20 19:22:37 sup? Feb 20 19:22:43 what's messed up? Feb 20 19:24:23 am trying to do nested RV (horizontal inside a vertical) with snap center, that works, but i need some extra functionality: restore state of nested after it was recycled, add some onclick interceptor on parent, and a listener that tells me whats the current item Feb 20 19:24:31 hit me tommorow if you got the time Feb 20 19:24:47 hey thepoosh ! Feb 20 19:25:09 * g00s hits raoul11 now, plenty of time Feb 20 19:25:25 are you reusing your nested adapters, or caching them? Feb 20 19:25:29 sure, talk to g00s, he's the bomb Feb 20 19:25:39 thepoosh didn't you do c+ in the past ? are you keeping up with it ? Feb 20 19:25:48 like, are you familiar with c++17 ? Feb 20 19:25:55 a bit, mostly read not write Feb 20 19:26:27 thepoosh ok, are stroustrup's latest reference guide, you know the 1200 page one, it says c++11 - how much stuff will be different ? Feb 20 19:26:58 pretty expensive, haven't seen any plans of him updating the book. so wondered if its worth the money to get back into it Feb 20 19:27:19 i don't remember what was in c++14 either lol Feb 20 19:29:23 this one https://www.amazon.com/C-Programming-Language-Bjarne-Stroustrup-ebook/dp/B00DUW4BMS Feb 20 19:29:39 i read, i think it was the 2nd edition. that was a doosy ! Feb 20 19:32:33 * raoul11 throws ether on DrGonzo Feb 20 19:44:43 hello Feb 20 19:45:35 I've implemente a an appwidgetprovider/broadcast receiver for a widget Feb 20 19:45:40 *implenented Feb 20 19:46:14 so, I've populated onUpdate method and I've added onReceive method Feb 20 19:47:24 unfortunately, though I've placed some log call in logcat, visual changes in my widget are not displayed Feb 20 19:48:24 in particular, onUpdate log message ia not displayed anymore in logcat Feb 20 19:48:34 I pastebin java code Feb 20 19:50:58 Hey. What am I going with for a startup. Android IDE or IntelliJ + Plugins? Feb 20 19:51:42 gradle 3.4 https://docs.gradle.org/current/release-notes.html Feb 20 19:52:12 http://pastebin.com/RDNC1Gyq Feb 20 19:54:06 any ideas? Feb 20 20:02:42 Hello! And once again I come to you to ask if anyone knows what is that wrong with multidex that it puts custom Application class in a secondary dex file, and how can I possibly get it out of there. And please don't send me links to the manual, I've read it and tried both multiDexKeepFle and multiDexKeepProguard, they have zero effect Feb 20 20:20:43 Maybe you misspelled multiDexKeepFile. But if it doesn't work, you did it wrong or you found a bug. Either way, creating a test project is always a good idea. Feb 20 20:28:58 ~hey peeps, got a question Feb 20 20:29:33 I'm working on laying out board for a Connect4 game and was trying to figure out what the best layout to use would be Feb 20 20:29:56 GridLayout? Feb 20 20:31:51 And when I am laying out the XML for this Custom View, do I really need to list each and every image view within the grid, or can I add those dynamically? Feb 20 21:00:57 is there a RXJava Guru around? http://stackoverflow.com/questions/42353881/rxjava-2-rxandroid-2-vs-observable-vs-listener-to-observe-from-different-classe Feb 20 21:11:26 hey guys Feb 20 21:11:35 can someone help me setup android studio ? Feb 20 21:11:48 I've installed it, downloaded the SDKs Feb 20 21:12:02 now I'm receiving some failed to resolve errors Feb 20 21:12:23 like :: Failed to resolve: com.android.support:appcompat-v7:25 Feb 20 21:12:42 and com.android.support.test.espresso: espresso-core Feb 20 21:17:36 Make sure you installed the support repository Feb 20 21:18:06 thanks for replying, however my internet connection Feb 20 21:18:18 where I am, android's website on google is blocked Feb 20 21:18:23 and everything related to it Feb 20 21:18:30 I have to use proxy behind every single process Feb 20 21:18:36 I was using one to install the studio and the sdks Feb 20 21:18:45 but now I can't find a way to use one inside the studio itself Feb 20 21:19:12 you ned to be online to download the support repository Feb 20 21:21:58 I see Feb 20 21:22:06 any idea on using proxy within the studio itself ? Feb 20 21:23:22 nope Feb 20 21:34:05 do you guys know how I can use an XML layout on a custom view? (derived from View) Feb 20 21:34:16 Am I not supposed to inflate a custom view? Feb 20 21:35:13 no, you can use it Feb 20 21:35:20 you just inflate it in the view’s constructor Feb 20 21:35:47 s73v3r: hm, I tried that but may have had the syntax wrong Feb 20 21:35:58 you do have to get your own inflator Feb 20 21:36:08 it’s not like an Activity where you can just do setContentView() Feb 20 21:36:17 yeah with LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Feb 20 21:36:33 so what’s going wrong? Feb 20 21:36:34 and inflater.inflate(R.layout.custom_display_view, this); Feb 20 21:36:37 If you just want to use a custom view in an xml file, include package name Feb 20 21:36:50 it cannot resolve the method name Feb 20 21:37:11 which medthod name Feb 20 21:37:14 SimonVT: No, I want to use an xml layout to draw my custom view Feb 20 21:37:37 s73v3r: inflater.inflate(R.layout.connect_four_view, this); Feb 20 21:38:13 s73v3r: http://pastebin.com/ui0mYaJn Feb 20 21:38:22 what does the entire error say Feb 20 21:38:25 line 7 won't let me compile, yes the view esists Feb 20 21:38:32 if you read it, it will tell you what’s worng Feb 20 21:38:33 wrong Feb 20 21:38:59 cannot resolve method inflate(int, ) Feb 20 21:39:39 that’s because that method takes a LayoutRes int, and a ViewGroup Feb 20 21:39:42 not a View Feb 20 21:40:08 what would my ViewGroup be? Feb 20 21:40:33 you probably want your custom view to inherit from ViewGroup, instead of View Feb 20 21:42:08 s73v3r: I see, s73v3r is there a way to use an xml layout on a view, or should that type of thing happen in an init Feb 20 21:42:34 whenever I try to install repository and sync I get Feb 20 21:42:37 package not available Feb 20 21:42:58 atbe: i don’t know what you’re asking Feb 20 21:43:30 s73v3r: Can I layout a custom view using xml or does it all have to be done in the code? Feb 20 21:43:49 you can Feb 20 21:45:06 although then you’d need to be a ViewGroup, instead of a View Feb 20 21:45:08 s73v3r: is there any information on how I can properly do that? Feb 20 21:45:55 all of the android docs I have found on custom views involve a canvas and drawing the view manually Feb 20 21:45:59 google is full of tutorials Feb 20 21:46:22 yes, you generally do that for Views. A ViewGroup can use XML Feb 20 21:46:29 but ViewGroup extends View Feb 20 21:46:33 I see Feb 20 21:47:23 install repository and sync project aren't working Feb 20 21:47:46 then file a bug Feb 20 21:52:40 <_genuser_> hello ppl Feb 20 21:52:48 <_genuser_> I see androidstudio have version for project files too? didn't think it had standards. Feb 20 21:57:08 What do you prefer, Eclipse with the necessary plugins or IntelliJ? Feb 20 22:05:09 <_genuser_> Elusa: they're both crap. Feb 20 22:17:41 Does anyone still use mvc? For a small application should I use mvc, mvp or mvvm? Feb 20 22:19:40 use whatever you feel most comfortable with Feb 20 22:20:45 Thanks Feb 20 22:21:36 is there any preference between getting my object id's once in my activity's onCreate(), or later at different events (like when I change a Record / Stop button's text and color)? Feb 20 22:21:46 measure it Feb 20 22:21:55 I mean, getting my view from the Id Feb 20 22:22:06 there can be Feb 20 22:22:49 I usually just get it ASAP Feb 20 22:22:56 yeah, if there are some obvious practical reasons -- like maybe it changes, isn't available, etc. Feb 20 22:23:07 you mean, as early as possible you collect them? (in onCreate() for instance)? Feb 20 22:23:22 as early in execution as possible? Feb 20 22:23:43 what would change? Feb 20 22:23:57 In fragments obviously in onCreateView Feb 20 22:24:23 anyone have thoughts on this? ... http://stackoverflow.com/questions/42146894/why-is-gradle-saying-the-c-compiler-is-not-able-to-compile-a-simple-test-progra Feb 20 22:25:31 s73v3r, I'm not sure. perhaps onCreate() code memory is freed once it runs and no future references to that activity exist? Feb 20 22:25:46 then the activity is destroyed Feb 20 22:26:04 but that means it’s not on screen anymore, so it doesn’t matter Feb 20 22:26:04 well, the activity might still be running Feb 20 22:26:28 so I imagine all member functions stay around too Feb 20 22:26:29 then it won’t have it’s memory freed Feb 20 22:27:08 then, your instances of Buttons and stuff, as global vars, all stay around Feb 20 22:27:38 but they'll be created and destroyed only when used if, for instance, they're done at an event (like an onpress thing) Feb 20 22:27:44 no Feb 20 22:28:07 well.. they exist anyway.. just the reference is retrieved.. but I don't know what that is Feb 20 22:28:16 it doesn’t change Feb 20 22:28:26 k Feb 20 22:29:07 now I need to start getting consistent and practical with my naming scheme Feb 20 22:29:13 Button btnRecord = (Button) findViewById(R.id.btnRecord); Feb 20 22:29:52 What should I call my class that holds all my Managers -- UsersManager, ChatManager, ThisManager, ThatManager...? (Don't say M.M.) Feb 20 22:30:13 ServiceLocator Feb 20 22:30:22 although Manager is a terrible name Feb 20 22:30:47 https://blog.codinghorror.com/i-shall-call-it-somethingmanager/ Feb 20 22:31:37 and need to figure out if I should set my event listeners in the .xml or in java Feb 20 22:32:08 java Feb 20 22:32:11 don’t do it in the XML Feb 20 22:32:17 why? Feb 20 22:32:43 putting them in the XML binds that XML, and it’s just messy Feb 20 22:33:12 yeah it's weird to me.. coming from C.. Feb 20 22:48:32 s73v3r: I was thinking ManagerProvider. It provides the Managers. But then Provider may have a different meaning, almost pattern-like. I'll read the codinghorror and hope for an answer. Feb 20 22:49:04 Manager is generally a bad name, because it doesn’t really describe what the thing does Feb 20 22:49:57 It's more like a Janitor =) Feb 20 22:50:08 then it’s probably doing too much Feb 20 22:50:16 and should be separate objects Feb 20 22:53:37 how do I convert my line selection to full lines? Feb 20 22:53:58 (to copy a bunch of them to the clipboard) Feb 20 22:55:01 without hitting home and end to get to the real starts/ends Feb 20 22:56:00 I'm seeing only line vs block in pages Feb 20 23:02:04 I wish studio'd let me zoom the font scale in other windows, like messages Feb 21 00:10:01 my app API level is set to 15, I wanted to use android.hardware.amera Feb 21 00:10:05 oops Feb 21 00:10:24 my app API level is set to 15, I wanted to use android.hardware.Camera but it was deprecated on API 21 Feb 21 00:10:45 if i'll use the new one, will my app work in older devices? Feb 21 00:12:57 help me understand Feb 21 00:13:56 my question is, if minimum level is set 15 and I use new API methods, do these new ones translate into usable object code for API 15 devices? Feb 21 00:14:29 no Feb 21 00:15:09 Chainfire: thanks. What's the purpose of setting a minimum API level then? Feb 21 00:15:24 that’s the lowest API level that your app will work on Feb 21 00:15:27 in your code you need to detect current API level, and choose to use the 'new' code or 'old' code. You would need to compile against an API level that has the new code. For a lot of things, you can actually keep using the old code Feb 21 00:15:53 oh Feb 21 00:15:55 I see Feb 21 00:15:58 thank you! :) Feb 21 00:16:04 it kind of depends on the API whether just using the old code in all cases is still possible. I'm not intimately familiar with Camera API so I can't answer that for you. Feb 21 00:16:11 welcome to Android Feb 21 00:16:21 hahah Feb 21 00:16:23 this sort of stuff is likely to be your primary frustration in years to come... Feb 21 00:17:00 yeah well I'm too lazy to do your first suggestion so I'll try to use only deprecated methods as much as possible Feb 21 00:17:24 oh, years to come is saying too much lol I'll get tired rather soon Feb 21 00:17:24 don't Feb 21 00:17:42 s73v3r: why Feb 21 00:18:06 doing things the proper way will help ease a lot of headaches down the road Feb 21 00:18:11 why use newer methods if I get same result Feb 21 00:18:18 hmm Feb 21 00:18:24 because the old ones will go away at some point Feb 21 00:18:26 it is questionable if you would get the same result Feb 21 00:18:27 hence, deprecated Feb 21 00:18:42 but if I want to support older APIs I still have to do the old method, so...? Feb 21 00:18:51 hmm Feb 21 00:18:52 do both Feb 21 00:19:21 You make two camera objects: One doing the old stuff, and one doing the new stuff Feb 21 00:19:30 in this case generally the lazy way is to increase minimum API level until you no longer need to support the old code, rather than skipping the new code Feb 21 00:20:34 but, let's say the old methods go away as you said. Wouldn't that imply that I'm not targeting that old API anymore nor the old devices that use it? And I would just have to use the new code in an update, that's all, isn't it? Feb 21 00:21:00 hmm Feb 21 00:21:17 no, because the old devices will still be there that use it Feb 21 00:21:28 the old devices aren’t getting updated Feb 21 00:21:40 you may decide not to support them, which is perfectly fine, too Feb 21 00:21:49 but then how can the deprecated methods go away? Feb 21 00:21:59 hmm Feb 21 00:22:10 for newer devices Feb 21 00:22:42 a phone that’s on API 15 will not be updated. It is stuck with the library that it originally shipped with, that has the original Camera API Feb 21 00:23:11 so if Google drops support for that deprecated Camera API in Android O, that’s not going to change the device still running 15 Feb 21 00:39:49 I'm trying to make my app widget refresh when I click on an image in my widget. However, onReceive doesn't seem to get the intent. Can someone help me out? I pasted my manifest and the relevant parts of onUpdate Feb 21 00:39:50 https://gist.github.com/ollien/0a31601678c72937b183967770d7156f Feb 21 01:29:28 Woo! LTE carrier aggregation.. Feb 21 01:29:39 wireless up to 230 mbts Feb 21 01:50:50 how would you have a file-transfer loop? Feb 21 01:50:51 do you start a thread? Feb 21 01:55:07 I'll use this downloader as a basis I guess.. although I'm sending a file with sockets... http://www.androidhive.info/2012/04/android-downloading-file-by-showing-progress-bar/ Feb 21 02:11:20 how do you break your code apart.. like if I want my download stuff in another file Feb 21 02:12:00 but I need it to have access to my MainActivity display stuff Feb 21 02:15:28 so much to learn **** ENDING LOGGING AT Tue Feb 21 03:00:00 2017