**** BEGIN LOGGING AT Fri Jul 29 02:59:58 2016 Jul 29 03:05:42 g00s: don't you dare throw a 100 year old fellow countryman / "banker" @ me XD Jul 29 04:49:59 you can tell how steeped in propaganda things are when speaking about control of production is so taboo, you have to talk about "managing markets" as opposed to "managing production" Jul 29 04:54:14 check this stuff https://capnproto.org/ Jul 29 04:54:16 :) Jul 29 05:00:52 squ its old ... Jul 29 05:01:12 navigationmenu.getmenu() <= After doing this we get Menu for drawer, and if we do .size() on that, we get total number of items... which in my case is 3, because I have 3 groups in it Jul 29 05:01:23 But I want to get number of elements in those groups Jul 29 05:01:26 how can I do that? Jul 29 05:01:34 Can't really find it anywhere in the docs Jul 29 05:01:42 https://developer.android.com/reference/android/view/Menu.html Jul 29 05:02:03 the size() gives me ... 3 which is because I have 3 groups in my navigationmenu Jul 29 05:02:14 but I can't get count of the elements inside the group Jul 29 05:03:54 What happened to the lunar lander sample? Jul 29 05:08:33 any idea g00s ? Jul 29 05:19:06 Should I always use the AppCompat classes if I'm going to code for 4.0+? Jul 29 05:25:38 What's the proper way to synchronize rendering with the screen's refresh rate? Jul 29 05:33:53 Great. My onBackPressed magically stopped being called when in a specific popup. Jul 29 05:39:51 quadrilaterl cowboy Jul 29 06:11:48 so, docker for mac and windows, hm Jul 29 07:30:24 Ah, that feeling when you finally manage to reduce lines of code AND optimize it Jul 29 07:31:21 guys, if I make a service as a difference process from my app, will It load a completely different instance of JVM? Jul 29 07:35:16 But then again, optimizing Java is like adding a new corner to a square wheel Jul 29 08:04:00 Hi, I have been having trouble accessing GPS on my android virtual device. I've tried it with an example app from google (https://github.com/googlesamples/android-play-location) for their Location API and it can't detect any location. Location is definitely activated and it has permissions to access location. I've simulated coordinates both via the emulator settings as well as via adb, both to no avail. The emulator is running Jul 29 08:04:07 Any ideas? Jul 29 08:06:30 maxrebo, did you try with own code? Jul 29 08:06:41 just using the LocationManager Jul 29 08:06:44 maybe that code is deprecated Jul 29 08:08:10 Yes, I've tried it myself first and it didn't work. And according to Google, the Location API from Google Services is the newer, preferred way of doing it Jul 29 08:12:00 ktwo: plus i need geofencing so i dont think im gonna get around using google play services for this Jul 29 08:39:10 Hi all, I want to use Dagger injection in my custom View (CurrencyTextView). Is it possible to inject the view in the class itself and not in the Fragment / Activity where the CurrencyTextView is used? Jul 29 08:39:36 It would be easier to inject the CurrencyTextView in one place instead of in all the Fragments where that view is used Jul 29 08:41:20 Fucck Jul 29 08:41:26 wrong textview Jul 29 09:20:53 Goddamn prude Google. Wanna include a cool painting but it has slight nudity and would need a higher rating. Jul 29 09:37:25 VerbalKint: googles, recently proved, politically motivated filtering is really worrying as well Jul 29 09:38:58 flutterb1t: ? Jul 29 09:39:58 VerbalKint: they filtered/filter trump out of the results if you search for "presidential candidates 2016" Jul 29 09:40:06 flutterb1t: lol Jul 29 09:40:26 like really filter. you see the faces of a few candidates. but not trump Jul 29 09:40:51 flutterb1t: not from the US and A :D Jul 29 09:41:23 VerbalKint: they likely fixed it already. but its to late, its well documented and dozens of articles about it exist already Jul 29 09:42:02 flutterb1t: so you're a Trump voter? :D Jul 29 09:43:07 it doesnt matter Jul 29 09:43:08 its wrong Jul 29 09:43:11 VerbalKint: im not from the usa. idk who i would vote for as i dont know their political agenda. but thats besides the point. you know, first they came for X, but i didnt care as i am not X... Jul 29 09:43:51 The system was fixed decades ago Jul 29 09:43:58 Whoever wins, the majority loses Jul 29 09:44:39 I don't really see the point of elections anymore Jul 29 09:45:14 not sure what you mean with fixed. i doubt the election counting itself is fixed Jul 29 09:45:45 im wondering why it ends up with 2 Jul 29 09:46:15 Ashiren: in its entire existence, the US has had only 2 parties hold power Jul 29 09:46:19 Talk about pluralism! Jul 29 09:46:21 well. market consolidation Jul 29 09:46:40 its a funding game Jul 29 09:46:49 is it legally forced? Jul 29 09:46:52 meh Jul 29 09:46:59 or "anyone" can start for president Jul 29 09:47:28 Ashiren: afaik, independents can run for senators and presidents and stuff Jul 29 09:47:29 That's definitely a lie Jul 29 09:47:45 You need a lot of funding to run for president Jul 29 09:47:46 its less of a funding game in germany, therefore we have a few more parties. but even here it used to be 2big, 2smallish, lots of tiny parties Jul 29 09:48:32 Democracy is basically like an elective elitism Jul 29 09:48:34 It's about who can hire the most brilliant and expensive PR guys Jul 29 09:48:51 the blaming game is easy to adopt when you can't do or won't fix the problems within the systems you are targeting/locking on Jul 29 09:49:34 It's sad when you take a step back and look at what's going on in the world, a lot of injustice throughout the world, even in our own countries Jul 29 09:49:51 O_O Jul 29 09:50:53 It's true though Jul 29 09:50:54 markyosullivan: yeah, I gotta go back to my job as a cobalt miner in the Congo in a few hours. I feel so denied of justice. :P Jul 29 09:51:26 Ha! Jul 29 09:51:34 But you know what I mean :p Jul 29 09:52:01 http://reporters365.com/wp-content/uploads/2016/01/Congolese-children-mine-cobalt-for-smart-phones-770x470.jpg Jul 29 09:52:26 We're lucky but there's a lot of people even within the UK or US or whatever country you're from are in a bad state and then you have the politicians that show up claiming to be the answer to all these peoples problems Jul 29 09:52:28 Them Congolese children love us so much that they'll work for small pay in miserable conditions mining cobalt for our smartphones! Jul 29 09:53:23 Oh man Jul 29 09:53:30 I'm gonna change the topic Jul 29 09:53:44 http://goodtoknow.media.ipcdigital.co.uk/111/00000bfa2/1643/Nougat-recipe.jpg Jul 29 09:53:52 I haven't tried it Jul 29 09:53:57 but it's supposed to be tastey Jul 29 09:54:25 Just think in 2 versions time, it'll be Android P Jul 29 09:54:45 data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQSEhUTEhMWFhUXGB0aGRgYGBggHRsgGxgZGxgaHRoaHiggGB0lHxoXITEiJSkrLi4uFyAzODMsNygtLisBCgoKDg0OGxAQGy4mICYvMi8yLy0vLS0tMi0vLS0tLTYvLS8tLS0vLSstLS0tLS0tLS0vLy0tLS0tLS0tLS0tLf/AABEIAKQBNAMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAEBQADBgcCAQj/xAA+EAABAgUCBAQEBQMDBAEFAAABAhEAAwQSIQUxBkFRYRMicYEykaGxQlLB0fAHFGIjkuEWM4LxchdDg6Ky/8QAGgEAAgMBAQAAAAAAAAAAAAAAAAMBAgQFBv/EADERAAICAQMCBAQEBwEAAAAAAAECAB Jul 29 09:54:52 Whoops sorry Jul 29 09:55:47 Why does every image of pizza have a long url Jul 29 10:02:40 markyosullivan: how mature :P Jul 29 10:03:41 markyosullivan: nougat recipie - adb reboot bootloader && ./flash-all.sh Jul 29 10:03:53 But I should stop before people call me a communist :P Jul 29 10:06:06 "When I give food to the poor, they call me a saint. When I ask why are they poor, they call me a Communist." Jul 29 10:41:00 I have references to two fragments, F1 and F2. I put F1 in activity using fragment manager transaction. I then replace it with F2 and then later replace F2 with F1. Will F1's onCreate() method be called again? Jul 29 10:41:34 I am trying to understand old fragment's lifecycle. Jul 29 10:46:32 I notice that google removed the live wallpaper category from the play store Jul 29 10:47:14 any Googlers know if it's a permanent change? Jul 29 11:00:52 arunL: Test it out, just print out to console within onCreate() and onResume() and see which message gets printed or if both get printed Jul 29 11:10:47 I'm trying to make a tabbed activity with 3 fragments. In each I want to have a webview with .loaddata Jul 29 11:11:25 Can I fetch the data in oncreate and then just populate the webviews in the fragments oncreateview? Jul 29 11:53:04 depends where you fetch it from Jul 29 12:13:02 xorgate, remote source Jul 29 12:13:03 why? Jul 29 12:15:10 if it's from the network you'll have to do something in the background Jul 29 12:15:52 OK but I'm having trouble with wvMyTeam = (WebView) findViewById(R.id.webView); Jul 29 12:16:01 from onCreate Jul 29 12:16:20 because R.id.webView is actually found in the fragment layout not the main activity layout Jul 29 12:16:49 if i do View myTeamView = LayoutInflater.from(getApplication()).inflate(R.layout.fragment_myteam, null); in oncreate then im getting a blank screen in my fragment tab Jul 29 12:21:01 xorgate, does any of that make sense? Jul 29 12:29:57 fragment layout inflation happens in the fragment's onCreateView method Jul 29 12:38:13 xorgate, OK, so is it possible to fetch and load webview content in the oncreate before the fragment layout is inflated in oncreatview? Jul 29 12:38:28 so that when you're swiping to that fragment the webview is already loaded in there Jul 29 12:38:43 at the moment you have to swipe to the fragment to initiate webview.loaddata Jul 29 12:39:27 which is OK on first load. But then if you swipe away to another fragment, and make your way back to the webview fragment, it loads all over again - which is poor. Jul 29 12:40:51 xorgate? Jul 29 12:41:22 it is possible but you have to manage it then Jul 29 12:41:35 meaning? Jul 29 12:42:08 meaning you could start downloading on activity oncreate, and in fragment oncreateview check whether it's done yet (or not). if not, wait Jul 29 12:42:30 yeah i get what you mean but my problem is simpler. Jul 29 12:42:55 i can't even reference a webview in my oncreate because it lives in the fragments layout not the main activity layout Jul 29 12:43:10 xorgate, do you see what I mean? Jul 29 12:43:42 yes Jul 29 12:44:19 lose the idea that the activity should populate your fragment's webview Jul 29 12:44:42 it can only prepare the download Jul 29 12:44:55 then you need to orchestrate how the data flows from the network onto your fragment Jul 29 12:44:56 yeah ok thats fine Jul 29 12:46:11 ok but how do I prevent it from reloading the webview everytime the fragment is swiped to? Jul 29 12:46:58 you can probably handle that in fragment's lifecycle Jul 29 12:47:13 can't seem to find a way Jul 29 12:47:18 if the fragment is destroyed then you're outta luck Jul 29 12:48:20 xorgate, why would it be destroyed? Jul 29 12:48:25 are they auto destroyed? Jul 29 13:07:49 i think they could be, not sure Jul 29 13:10:35 Somehow creating a module with reusable code for testing freezes up when I gradle build, but copy pasting the code to each individual module builds fine Jul 29 13:12:03 Seems like lint was freaking out about robolectric being in the src/main directory, but I'm not sure Jul 29 13:13:00 src/test isn't shareable :P so I was putting reusable testing code in src/main and just testCompile project(':sharedTestCode') in the other modules Jul 29 13:13:18 I have a base module that I would ideally like to put reusable testing code in Jul 29 13:29:41 it seems fragment views are destroyed if you go more than 1 adjacent fragment away in the stack Jul 29 13:29:46 There HAS to be a way to prevent that Jul 29 13:37:47 generally you should only be rendering views that you are actually displaying at the moment or are just about to display Jul 29 13:40:25 alexfu, i've got webviews in these views, rendering them every time you display the fragment again is too slow Jul 29 13:40:38 Guys, what do you use to test restful web services? Some plugins for AS or any 3rd party tools? Jul 29 13:40:39 How can I prevent the destory? Jul 29 13:40:48 I like how strings are recommended to be in a strings.xml file Jul 29 13:40:48 I managed to install my SDcard as if it were a directory, so if I put the sdk/ndk on it, will it be usable? Jul 29 13:41:17 AegNuddel, why would you want that? Jul 29 13:42:02 the ridiculously small hard drive on this computer Jul 29 13:46:12 kostodo: is your whole app just webviews or something? Jul 29 13:46:41 alexfu, 3 webviews Jul 29 13:46:55 amongst other things Jul 29 13:47:23 first of all, webviews are expensive so they should be used sparingly Jul 29 13:47:55 that much I know Jul 29 13:48:09 But in this case its necessary Jul 29 13:48:29 Just need to swipe between them withour destroying the view and reloading it every time Jul 29 13:49:27 you cant have 1 webview that swipes between these web pages? Jul 29 13:49:40 instead of the other way around Jul 29 13:49:49 No Jul 29 13:50:04 Would have been nice! Jul 29 13:50:45 i mean... viewpager caches fragments so Jul 29 13:50:55 fragmentviewpager i mean Jul 29 13:51:09 if i swipe to the adjacent fragments, the view remains Jul 29 13:51:25 as soon as i go one further and then try go back the view is destroyed and its having to load all over again Jul 29 13:51:29 oh. no Jul 29 13:51:56 no? Jul 29 13:51:58 or you can just use a standard viewpager adapter Jul 29 13:52:42 FragmentStatePagerAdapter Jul 29 13:53:58 alexfu, if its maintaing the view when you go to its immediate neighbour, then it must be able to do for even further away Jul 29 13:54:28 kostodo: by default viewpager caches 1 ahead i think Jul 29 13:54:48 you can tell it to cache an x amount Jul 29 13:54:55 how? Jul 29 13:55:15 https://developer.android.com/reference/android/support/v4/view/ViewPager.html#getOffscreenPageLimit() Jul 29 13:55:31 if I add that, my webview never loads Jul 29 13:55:41 i mean oncreateview is never called Jul 29 13:56:12 i dont know what you're talking about Jul 29 13:56:13 any idea why that may be? Jul 29 13:56:28 err Jul 29 13:56:35 getOffScreenPageLimit Jul 29 13:56:46 If I set that to say 5 Jul 29 13:57:06 The fragment's oncreateview is never run Jul 29 13:57:15 only the one with the webview in it. Jul 29 13:59:40 alexfu, I know you've got the solution ;) Jul 29 14:00:30 view pager renders items on an as needed basis Jul 29 14:00:45 so for the first time load, it wont load all of your pages at once Jul 29 14:01:25 yeah im saying if i change the value of getoffscreenpagelimit even when i go to the page with my webview in it, nothing loads. oncreateview of that fragment is never run Jul 29 14:01:37 other static fragments work Jul 29 14:01:41 yeah thats how it's supposed to work Jul 29 14:02:40 so how do i load something in that fragment? Jul 29 14:03:07 i mean initially Jul 29 14:04:48 alexfu, in that case am i supposed to use something other than oncreateview? cos thats never hit Jul 29 14:04:50 ever. Jul 29 14:09:57 alexfu, you see what i mean? Jul 29 14:11:57 alexfu, maybe its the fact that fragment is not static? Jul 29 14:19:35 kostodo: i dunno how you've got your stuff setup but it works for me Jul 29 14:19:48 hmm Jul 29 14:19:55 mind sharing that code? Jul 29 14:20:16 i was wrong before. viewpager will create as many items it needs... https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v4/java/android/support/v4/view/ViewPager.java#1047 Jul 29 14:21:15 Can you share your code please? Jul 29 14:22:12 kostodo: what does your adapter look like? Jul 29 14:22:31 which part? Jul 29 14:23:30 your FragmentPagerAdapter Jul 29 14:23:46 Tried both that and FragmentStatePagerAdapter Jul 29 14:24:03 what does it look like Jul 29 14:24:08 nothing crazy in there. Basically started with Android Studio's template for Tabbed Activity Jul 29 14:24:34 Do we handle the events like onClick in fragments the same way as we do in activity? Jul 29 14:24:35 how are you creating the fragments Jul 29 14:24:44 purplex88: yes Jul 29 14:25:16 alexfu, in the TabbedActivity template they used public static class to extend Fragmetn Jul 29 14:25:36 thats not what i mean Jul 29 14:25:38 is that what you mean? Jul 29 14:25:41 heh Jul 29 14:25:55 what does the code for your FragmentPagerAdapter look like? Jul 29 14:26:10 aka, can you pastebin the code Jul 29 14:27:33 Yeah one sec Jul 29 14:29:46 alexfu http://pastebin.com/qLbXbEGp Jul 29 14:30:07 That placeholder fragment is from the template in Android Studio Jul 29 14:31:19 your adapter is only ever going to return 2 fragments at most Jul 29 14:31:29 the rest will be null Jul 29 14:31:45 why? Jul 29 14:32:20 not even, how do you not have a compilation error in getItem Jul 29 14:32:47 you using an if elseif with no else or default return Jul 29 14:33:25 uh sorry i pasted wrong Jul 29 14:33:25 is the line "tools:context="com.myapplication.MainActivity" necessary in XML? i see it generated by default in android studio. In my other projects i don't have this line. Jul 29 14:34:13 please explain to me flatmap in RX java on some easy examples Jul 29 14:34:25 alexfu, what is the right way? Jul 29 14:34:27 also i never used this line: android:paddingBottom="@dimen/activity_vertical_margin" what about this? Jul 29 14:34:36 kostodo: right way to do what? lol Jul 29 14:34:46 if statements? Jul 29 14:34:57 but i just say android:paddingBottom="16 dp" Jul 29 14:34:57 purplex88, no its for. design preview Jul 29 14:35:00 that was missed in the paste Jul 29 14:35:11 the tools line Jul 29 14:35:13 alexfu, there is an else return PlaceholderFragment.newInstance(position); Jul 29 14:35:28 purplex88, don't use the 16dp Jul 29 14:35:35 pfn: design whatt? Jul 29 14:36:19 pfn: i never seen the "@dimen/activity_vertical_margin" before Jul 29 14:37:16 kostodo: and you are saying that your 5 fragments aren't being created even though you have setOffscreenPageLimit set to 5? Jul 29 14:37:29 alexfu, no only the MyTeamFragment Jul 29 14:37:39 others are being created Jul 29 14:38:05 oh.. then thats a whole different issue Jul 29 14:38:09 alexfu, http://pastebin.com/RUpSKk7z fixed the else. Jul 29 14:38:15 look at MyTeamFragment Jul 29 14:38:24 specifically onCreateView Jul 29 14:38:32 hi alll what is the best way to unit test a private method? Jul 29 14:38:35 i wonder why your webview isn't showing Jul 29 14:38:45 kostodo: take a good look Jul 29 14:39:25 kostodo: nvm Jul 29 14:39:28 alexfu, no idea mate, been staring at this for ages. Jul 29 14:39:28 misread Jul 29 14:39:31 ah Jul 29 14:40:10 alexfu, if i don't use @SuppressLint("ValidFragment") then get errors about static Jul 29 14:40:30 thats irrelevant to the problem Jul 29 14:40:47 kostodo: are you sure that the webview isn't being rendered? you sure it's just not displaying anything Jul 29 14:40:55 ? Jul 29 14:41:06 im sure that if I LOG inside onceateview it never shows in logs Jul 29 14:41:46 alexfu, maybe its how its being called in getItem: return new MyTeamFragment(); ? Jul 29 14:42:14 purplex88, read the android app development guide at d.android.com Jul 29 14:42:26 kostodo: no, that doesnt matter Jul 29 14:42:38 pfn: i couldn't find.. Jul 29 14:42:53 kostodo: are these fragments in the same file?? Jul 29 14:42:58 yes Jul 29 14:43:04 MainActivity Jul 29 14:43:06 why Jul 29 14:43:21 Look I just extended the template from Android Studio Jul 29 14:43:37 they had their PlaceholderFragment in MainActivity I just made one below. Jul 29 14:43:47 if you're gonna have nested fragments inside your activity like that, the fragments need to be static Jul 29 14:44:05 thats what I was asking you about static Jul 29 14:46:50 even if I make it static Jul 29 14:47:47 kostodo: still nothing? Jul 29 14:47:48 alexfu, own file worked. Jul 29 14:47:59 eeeek Jul 29 14:49:44 alexfu, I have Jsoup grabbing some HTML for me in MainActivity saving it to htmlData. How do I access that now in my MyTeamFragment class file? Jul 29 14:50:00 What a productive Friday writing comments Jul 29 14:50:35 Also added in a BaseFragment and BaseActivity class which contains some commonly used methods, so I guess that's helped tidy up my code Jul 29 14:50:54 kostodo: uh. create a setter on the Fragment? Jul 29 14:52:00 or have the fragment load the data Jul 29 14:53:21 Hi. Is it possible to start a webserver on an android device and post data to that from a website which is open on the same device? Jul 29 14:54:27 alexfu, thanks for your help mate appreciate it very much Jul 29 14:54:30 have a nice weeken Jul 29 14:55:46 Chepra: start a webserver and post data to it from a website? Jul 29 14:55:58 yes Jul 29 14:56:41 if i enable splits{} in build.gradle using 'density', the build process generates l,m,h,x,xx,xxx dpi apks. What if my device is tvdpi? Will it just pick one of the available ones from the store? Jul 29 14:59:35 hi, question about Spannable: lets say i have this string: "x + y" (string created dynamically), and i want to make the size of the + (or whatever it will be) smaller Jul 29 15:00:16 basically, any char at the index % 2 != 0 points in my string, and then apply it to a textview Jul 29 15:01:09 protobuf 3 final is out :D Jul 29 15:16:00 Leeds HK has lots of book stores :O http://qz.com/741099/the-worlds-cities-with-the-most-bookstores-and-libraries-per-capita/ Jul 29 15:17:35 hmm, over 1500 bookshops in HK? sounds a little unlikely Jul 29 15:17:47 unless they're including things like newsstands Jul 29 15:18:37 Damn, Edinburgh has 60.5 libraries per 100,000 people Jul 29 15:20:57 I'm using HttpLoggingInterceptor to log the request I'm sending to the server, however it only logs headers fine, the body of my request is all question marks, like unknown unicode symbols. Jul 29 15:21:24 What can I do to have readable log in my Android Monitor? Jul 29 15:23:11 http://i.imgur.com/tWGZkow.png Jul 29 15:23:34 presumably that includes public libraries, university libraries, private libraries, etc. Jul 29 15:23:41 Not particulary useful logger TBH :) Jul 29 15:23:52 Still, that's a ton of libraries Jul 29 15:32:23 Chepra: I was asking you to expand, clarify, explain... what you meant Jul 29 15:36:11 Chepra, nanohttpd lib Jul 29 15:36:30 hi, im looking for a mentor that can guide me to learn android development. i work hard and wont be a nagging noob, i'd ideally try to make contact a few times a week for 15-30mins each time. does anybody have the time? Jul 29 15:38:22 supay, tell us what you already know Jul 29 15:38:33 supay i wouldn't bother looking for a mentor among group you don't know - probably better off finding a supervised class Jul 29 15:38:47 that would be closest you could get 1:1 Jul 29 15:39:27 bitkiller: i can work my way around basic android apps. i have experience with java. i understand how to go about creating android apps, but i would like to learn the nuances and be really good at it. Jul 29 15:39:28 you surely can learn a lot by yourself and find help here on specifics Jul 29 15:39:34 is here someone who can explain to me one thing from this page ? Jul 29 15:39:36 http://blog.danlew.net/2014/09/22/grokking-rxjava-part-2/ Jul 29 15:40:11 g00s: well, im from india, and supervised classes mean something totally different here :) also, ive had mentors from irc before and i learned a lot Jul 29 15:40:25 my experience is that "nuances" change Jul 29 15:40:43 Leeds: In the end I want to connect an arduino to an android tablet (5.0). Then I want to have a website which controls the locally plugged in arduino. What I thought: Create an http server which listens on port X, listen on that port for commands to send to the arduino (through usb serial). Then talk from a website to that http-server Jul 29 15:40:56 what was best practice two years ago may not be anymore today Jul 29 15:40:57 bitkiller: sure, but you have to reach a certain level and then keep up with the shifts in your industry imho Jul 29 15:41:49 bitkiller: also, i would prefer a mentor instead of self-learning + irc because a mentor would bring in a certain level of accountability and be a huge motivator Jul 29 15:42:45 Hey guys, which sound format is best to use for an android app? Jul 29 15:46:42 Chepra is the other day, maybe it will help http://blog.stablekernel.com/mobile-development-for-arduino Jul 29 15:53:47 anyone have experience with FFmpegFrameRecorder Jul 29 15:53:51 ? Jul 29 15:54:42 or javacv Jul 29 15:55:58 g00s: thanks Jul 29 15:57:37 How do I set the alpha of my toolbar from a fragment if the toolbar is within an activity which contains the fragment? Jul 29 15:58:02 Or show I not alter the alpha of a toolbar when showing progress bar indicator? Jul 29 15:59:00 markyosullivan when stuff like that goes on, i put the toolbar in the fragment Jul 29 15:59:13 either way, kinda messy Jul 29 16:01:22 :( Jul 29 16:01:55 Sounds awkward Jul 29 16:08:13 g00s: So do you keep the toolbar always in the fragment or only when you have to set the alpha for it? Jul 29 16:11:15 does that cause problems when you're wanting to have a menu g00s? Jul 29 16:12:21 markyosullivan for simple case where fragments don't modify toolbar, i put in activity. but like now, i have it in my fragments. gapps go both ways, it may be too awkward if toolbar is very different fragment to fragment Jul 29 16:12:39 if you just have to change altha, for 1 fragment, thats pretty simple you could go either way Jul 29 16:16:26 Why not have the activity implement an interface with a callback. When the fragment is attached, assert that the activity implements said interface, and then add it as a listener. Then call the changeOpacityOfToolbar method on the listener in the fragment? Jul 29 16:21:04 Guys, does anybody use HttpLoggingInterceptor to log requests in OkHttp? Jul 29 16:22:26 It writes its output in question marks instead of how it should... I know, I asked it a bit earlier but I just can't find anything on that in google Jul 29 16:22:29 Like, at ll Jul 29 16:22:45 http://i.imgur.com/tWGZkow.png Jul 29 16:23:00 g00s: So if you put it in your fragment, do you put it over the toolbar in the activity? Jul 29 16:23:05 I'm slightly confused about your approach Jul 29 16:29:02 markyosullivan, if you want to try my approach, try looking here at the first two sections to see how you can get a message to the activity to change the opacity. Jul 29 16:29:03 https://developer.android.com/training/basics/fragments/communicating.html Jul 29 16:29:37 Instead of "displaying the article" you would change the toolbar opacity Jul 29 16:32:40 markyosullivan teh activity doesn't have one. each fragment puts up its own toolbar Jul 29 16:33:21 so basically, your Activity's layout is pretty much just a FrameLayout with nothing ... Jul 29 16:47:22 me rn http://imgur.com/a/UhxZC Jul 29 16:47:35 is there any way to speed gradle? Jul 29 16:49:18 increase heapsize :? Jul 29 16:49:58 what would you say is a good size? Jul 29 16:51:13 the more the merrier. doesnt gradle tell you your heapsize is 533004894389MB, try increasing to 49834983G? Jul 29 16:51:45 will try soon Jul 29 16:52:30 Is anyone here familiar with android XML animations? Jul 29 17:34:31 hi. gradle scripts sux my cpu power. i wonder is it worth upgrading cpu. http://cpuboss.com/cpus/Intel-Core-i7-4578U-vs-Intel-Core-i5-4300U Jul 29 17:46:30 newke, almost always worth upgrading to SSD and adding RAM first Jul 29 17:46:40 if you do upgrade make it a 6000 series I-7, i goofed and got the 4510u I-7 which turns out is a dual not quad core Jul 29 17:47:30 still flys thru building android tho Jul 29 17:47:49 just not like the quad would Jul 29 17:48:29 what's a good cross platform language to develop applications on android/ios? the application will be connected to the internet, and most likely use the notification system Jul 29 17:49:59 we’d probably suggest not doing that, and just writing each natively Jul 29 17:50:19 nino_ probably xamarin https://www.xamarin.com/ I am not sure many here would recommend that though. Jul 29 17:50:42 the standard practice is to rewrite completely different apps natively? Jul 29 17:50:43 Yeah, most people here (myself included) would say native is a better Jul 29 17:51:04 what do you think about Qt for mobile applications? Jul 29 17:51:18 I have not heard of anyone using QT in a long while Jul 29 17:51:41 and QT is a windowing frawework, that is only part of the equation Jul 29 17:51:51 nino_: yes it is. Jul 29 17:52:38 doing native apps is the best way to make sure your app fits in with the system Jul 29 17:52:41 truckcrash: what wouldn't it handle? Jul 29 17:52:47 nino_ probably the best you can hope for is write common parts in c++ Jul 29 17:52:57 or swift! Jul 29 17:53:24 s73v3r how easy is it to java <--> swift ? i'm running under the assumption that some parts are best done in java Jul 29 17:53:36 not a clue. i’ve never tried it Jul 29 17:54:25 swift on android sounds interesting, we'll see in the future - for now i'd stick to c++ for common code Jul 29 17:54:43 yeah, I was being more silly than anything Jul 29 17:54:45 or C if you must haha Jul 29 17:56:02 nino_, Qt will help you build your UI, and not much else. Jul 29 17:56:18 Qt UI will probably look terrible Jul 29 17:56:29 to be fair i have not looked at it in quite a while, so may be best to research yourself Jul 29 17:56:38 g00s, looks like Qt has a material theme Jul 29 17:57:09 i still have all kinds of problems getting the official things to look material-y across all versions ... Jul 29 17:57:13 i think its a waste of time Jul 29 17:57:20 Agreed Jul 29 17:57:29 nino_ wants to consider it though Jul 29 17:58:31 nino_ what MS does across their android apps, is client / server : UI in Java, business in C++ Jul 29 17:59:11 i wonder how Apple wrote its few Android apps ... Jul 29 18:02:01 truckcrash: g00s: so the only problem with C++/Qt is that the UI will look terrible? Jul 29 18:02:28 nino_ i was just guessing Jul 29 18:03:04 what i do predict, is that you will spend more time trying to have common code base than it would to have 2 dedicated apps Jul 29 18:03:17 unless you've really thought this out well ;) Jul 29 18:05:02 g00s: to be honest i never developed mobile applications on either platform Jul 29 18:05:19 g00s: what are things that C++/Qt cannot handle in a common way? Jul 29 18:06:00 from NDK perspective, there are APIs that can't be accessed (easily). i don't have a list here Jul 29 18:06:36 the Android Framework is Jave Jul 29 18:07:07 nino_ anyhow, this question gets asked many times, every week - you can find some resources on google Jul 29 18:07:51 http://thinkapps.com/blog/development/develop-for-ios-v-android-cross-platform-tools/ Jul 29 18:27:18 any try to decompile api 24 yet Jul 29 18:27:35 I'm trying to figure out what appears to be an undocumented dragndrop change Jul 29 18:27:51 guess I'll try to figure out where ViewGroup.class is on this N image Jul 29 18:33:43 well that was easy - set compileSdk 24 and Android Studio will decompile it for you Jul 29 18:34:08 oh the contents of each method is "throw new RuntimeException("Stub!");" Jul 29 18:34:11 those wily rascals Jul 29 18:41:48 https://github.com/JesusFreke/smali/issues/378 darn Jul 29 18:50:33 havent seen that nick in quite awhile Jul 29 18:51:31 wonder why jesusfreke doesnt hang in #android anymore Jul 29 18:52:51 wyrdtrtle is he in #smali / etc ? he didn't really do android dev Jul 29 18:54:04 idk, he may well be. but he used to always be in android, was one of the 3 or 4 ops that google left as an op lol Jul 29 19:03:59 jesusfreke's code was the initial basis for the XScreenSaver port Jul 29 19:04:09 How do I know if GoogleApiClient.connect() worked? Jul 29 19:06:03 Daedalusk isn't there a callback ? Jul 29 19:07:11 in logcat? Jul 29 19:38:12 i have a bar that is a LinearLayout that's pinned to the left of the screen. how can i rotate this so that it's pinned to the bottom? Here's a pic: https://www.dropbox.com/s/2tk097k6ld5k5jb/Screenshot%202016-07-29%2015.36.08.png?dl=0 Jul 29 19:39:19 basically i want to rotate it Jul 29 19:40:34 trudev, if this is a simple matter of changing your layout, read through https://developer.android.com/guide/topics/ui/declaring-layout.html Jul 29 19:40:48 if not please clarify what the complication is Jul 29 19:41:16 is there some kind of attribute on LinearLayout to rotate it? Jul 29 19:41:33 or do i have to restructure the entire thing Jul 29 19:41:37 Yes, and it is quite simple to look up. Jul 29 19:41:46 you shouldnt have to ask here to find it Jul 29 19:41:55 i meant RealtiveLayout Jul 29 20:37:55 i'm calling GoogleCloudMessaging.register from a service but it still thinks im calling it from a main thread? Jul 29 20:41:46 exactly where? Jul 29 20:41:51 some functions in service are from main thread Jul 29 20:42:48 Ashiren: im just calling context.startService(..) Jul 29 20:43:05 i.e. service's onCreate() is called from main thread Jul 29 20:44:30 i guess onStartCommand runs on the main thread then Jul 29 20:44:39 since thats where im doing the work Jul 29 20:44:49 that too Jul 29 20:45:50 actually is it up to you to create background thread or executor in your service and put work there Jul 29 20:46:32 so... i could have a service that blocks the ui? or is the "main thread" here different than the ui thread Jul 29 20:46:52 main thread = ui thread Jul 29 20:47:06 and yes, service may block ui thread Jul 29 20:47:48 i'll just use an IntentService for simplicity Jul 29 21:14:56 does a button say 16 dp have same size on all devices? Jul 29 21:16:30 something tells me it doesn't because 1 DP = 1 px on mdpi and 3 px on xxhdpi Jul 29 21:16:46 Hi all, I am trying to create a new game with google play services but when i try to create one its just stuck "Working" on the google play developer console Jul 29 21:26:00 purplex88: physically (in mm, cm) it will look approximately the same on different devices Jul 29 21:26:18 hi shmooz Jul 29 22:03:11 Ashiren: but pixels Jul 29 22:03:25 when using multiple apks (split by density), is it a good idea to just give them sequential versioncodes? How can I do this? Jul 29 22:20:45 What do people usually do for user analytics in their apps? Like monitoring things like active monthly users/churn rate/time spent per session/sessions per day/money spent per month/etc Jul 29 22:56:40 using android studio 2.2 preview 6, gradle 2.14.1 / 2.2.0-alpha6, i can run ndk-build from the command line and build the module, but trying to run the build through AS (or gradle externalNativeBuildDebug on the command line) fails, claiming "No rule to make target 'blah'", where 'blah' is listed in Android.mk as 'blah.cpp' in LOCAL_SRC_FILES of an include $(MY_HOME)/../some_other_path/Android.mk Jul 29 22:57:46 i don't know how or why gradle seems to be finding all of the possible [sub-]targets and trying to run ndk-build on each of them individually Jul 29 22:58:33 i've scoured all my Android.mk files for trailing spaces or lines ending with a backslash to no avail Jul 29 22:59:09 Do you think it's possible to rebuild my Android 4.2.2 rooted phone's "Media Scanner" built-in app? Jul 29 22:59:24 I just want to change 5 lines in the code of the "Media scanner" : https://android-review.googlesource.com/#/c/31110/2/media/java/android/media/MediaScanner.java Jul 29 22:59:34 is it difficult to rebuild a Android built-in app ? Jul 29 23:00:03 if you don’t have the code? Yes Jul 29 23:00:16 the other issue is you’re not going to have the signing keys Jul 29 23:00:52 if it's rooted, do I need to signing keys? Jul 29 23:01:11 you should Jul 29 23:01:43 s73v3r : isn't the code opensource for the standard 4.2.2 android of my Samsung phone? Jul 29 23:01:48 it’d be pretty shitty if the system let just any random update to an app be installed Jul 29 23:01:53 you don’t have the signing keys Jul 29 23:02:48 and I have no idea what all is open on that phone Jul 29 23:02:57 it’s entirely possible the scanner app isn’t open Jul 29 23:03:20 BasedGob: google analytics or twitter's Answers are options Jul 29 23:03:44 s73v3r : it's just an update I would do on my *own* phone, with all root enabled Jul 29 23:03:59 doesn’t matter Jul 29 23:04:02 of course it's normal that such an update couldn't be available on an app store, this would say the system security is weak Jul 29 23:04:10 because if you can do it, any random can do it Jul 29 23:04:15 why? Jul 29 23:04:22 if I use adb , then su, etc. Jul 29 23:04:23 fiveflowerzz: i think s73v3r is wrong Jul 29 23:04:34 the phone can’t really tell between an update you put on, and an update someone with malicious intent would Jul 29 23:04:40 fiveflowerzz: if you set your phone to allow untrusted apps Jul 29 23:04:43 If I do things with adb / su etc. it doesn't mean any random could do it Jul 29 23:04:49 it’s not an untrusted apps thing Jul 29 23:05:00 p14nd4: but can I replace the stock com.???.media.scanner ? Jul 29 23:05:07 even with untrusted apps, the app itself is still signed with a key Jul 29 23:05:20 and it’s going to look for that signature for updates to that app Jul 29 23:05:22 when you install, it warns you that the signing key is different than the installed copy Jul 29 23:05:28 this is true even for apps not installed through Play Jul 29 23:05:44 but it lets you overwrite it, at least in my experience (admittedly not for a baked-in app) Jul 29 23:06:11 but i think the in-rom apps are handled via some overlay filesystem Jul 29 23:06:38 so you should still be able to sideload your own copy Jul 29 23:07:11 p14nd4 : where could I first find the android.process.media code for my standard 4.2.2 Samsung build ? Jul 29 23:07:12 it shouldn't be a terribly difficult experiment to try Jul 29 23:07:17 p14nd4 : how ? Jul 29 23:07:27 I'm open to donate much for a solution ;) Jul 29 23:07:38 finding the code for a specific phone isn’t in the scope of this channel. You’re gonna have to try #android-root Jul 29 23:07:42 or maybe xda Jul 29 23:07:52 is it possible to synthesize microphone input? i want to transmit an audio clip in a phone call Jul 29 23:08:26 oh, is it a core part of the OS, not an app that you run? Jul 29 23:08:53 p14nd4 yeah ;) Jul 29 23:09:03 yeah, if that’s the case, you’re getting into writing your own custom rom Jul 29 23:09:08 and compiling android from source Jul 29 23:09:22 can't I just replace a part of the system? Jul 29 23:09:26 in that case, i'd think you're going to have to get the whole rom source Jul 29 23:09:29 do I need to compile the whole thing? Jul 29 23:09:32 probably Jul 29 23:09:34 argh // Jul 29 23:09:55 but i don't know how this particular library/whatever gets built offhand Jul 29 23:10:24 s73v3r swift 4 https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160725/025676.html Jul 29 23:10:31 yeah, you’d be best looking at XDA for this Jul 29 23:11:38 fiveflowerzz: you MIGHT be able to just build "com.android.libmedia' or something and drop that in, but it might require rebuilding a larger piece (e.g. kernel/rom) Jul 29 23:14:45 I am wonder have an old old phone that uses to develop on but the android sdk built tools only go back to like 17 in the android download manager. So I can download the sdk to version 1 all the way up to 6.NX ,...etc but what i am going to have an issue is if i am building gingerbread app's or lower. I know your probably going to tell me why are you using such old stuff i get Jul 29 23:15:24 dbkaplun: look at the responses (not the answer) to the question here: https://stackoverflow.com/questions/28082471/android-play-audio-file-during-phone-call Jul 29 23:15:30 p14nd4: how ? Jul 29 23:15:42 droid2: my sdk manager goes back to 2.1 Jul 29 23:15:49 api 7 Jul 29 23:16:34 droid2: you might have to check an option to show hidden items; and are you using the in-studio sdk manager, or the standalone sdk manager? Jul 29 23:18:18 I wait so are you talking about SDK platforms or SDK tools tab because i got all the platforms from begining of android to current its just the build tools only go back to 17 Jul 29 23:18:28 in-studio i see back to 7 (2.1); standalone i can click a box to see 'obsolete' back to android 1.1 (api 2) Jul 29 23:18:34 SDK Platforms Jul 29 23:19:05 aoh, i think i misread your question >_< Jul 29 23:19:41 i think that new build tools should still be able to target older SDKs Jul 29 23:20:13 On the sdk tools tab i only got back to 17 build tools but on the sdk platform tab i got all the way back to api 1 or 2 the pretty much begining. Jul 29 23:20:28 e.g. i can use the version 24 build tools to target api 17 apps Jul 29 23:20:32 have you tried using a newer build tools? Jul 29 23:20:55 I guess i am wondering what the sdk platform as opposed to the tools tab is doing Jul 29 23:21:19 No not much way back when i did apps i just downloaded the sdk and i was all set Jul 29 23:21:39 the platform is the libraries and such. the build tools are the things that assemble the app Jul 29 23:21:45 So kind of wondering how this changed we have build tools and platform tabs Jul 29 23:21:58 Right thats what i thought Jul 29 23:22:04 sdk platform is the actual APIs and libraries available for that android version; the build tools are the scripts and such that actually build code, afaik Jul 29 23:22:12 you always had build tools, though Jul 29 23:22:37 so should you need build tools to go back to version 1.1 as with the SDK 1.1 version Jul 29 23:23:01 try using the updated build tools Jul 29 23:23:22 but, and here’s the question: why are you trying to use SDK 7? Jul 29 23:23:51 why aren’t you using the up to date sdks, and just setting your min-sdk really low? Jul 29 23:23:53 though i'll admit i'm not 100% sure what the difference is between "sdk tools," "sdk platform tools" and "sdk build tools." i think platform-tools is stuff like 'adb,' but not sure about tools vs build tools Jul 29 23:24:54 s73v3r: fwiw, i believe you still need to have that SDK installed in order to set it as the min-sdk Jul 29 23:25:18 but there's plenty of stuff that's been deprecated or removed since sdk7 Jul 29 23:25:45 some of which has replacements available in the support repository Jul 29 23:30:49 well when set the mini version of sdk to 1 i get it cann't be less then 7 Jul 29 23:30:57 errors when building Jul 29 23:31:25 lol Jul 29 23:31:27 If i set it above 7 this is greater then my sdk that i want to uses? Jul 29 23:31:47 they actually have that as an error ? Jul 29 23:32:08 I thought this was because i didn't have the correct build tools but i see there is only build tools back to 17 Jul 29 23:32:12 shmooz did you see that? what happens when they don't allow minSdk 9 :) Jul 29 23:33:01 So how are you suppose to develop ginerbread or lower apps now a days Jul 29 23:33:16 you aren't Jul 29 23:33:20 :D Jul 29 23:33:25 Because the api's are out there but what is there point if you cann't uses it Jul 29 23:34:23 at some point, new dev tools won't support sufficiently old platforms--e.g. Visual Studio 2015 [basically] can't build apps for Windows 95. i don't know exactly what the situation is on Android, but it's certainly possible that if you want to target something on android 1.1, you may very well need to download older tools (pre-android studio) Jul 29 23:34:48 droid2: you’re really not supposed to be using stuff that old. Jul 29 23:34:58 I guess the only way is to set this up without the android studio but you would still need the older build-tools which are not available in the SDK manager anyway Jul 29 23:35:53 droid2: what version of android are you actually trying to target? Jul 29 23:36:20 you've talked about android 1, mentioned less than 7, and "gingerbread or lower" Jul 29 23:36:58 Ok so then i guess where are these older tools or is there some type of link to show you how to set this stuff up. I would imagine once downloading the sdk's and tools to a location you could just set there path in the env variable of your computer then just uses notepad Jul 29 23:37:07 what are your min sdk, compile sdk, and target sdk versions? Jul 29 23:37:47 gingerbread around 2.3 with favoring on the lower side 2.3, 2.2 , 2.0 versions Jul 29 23:37:58 why? Jul 29 23:38:13 Because this old phone is ginerbread i have Jul 29 23:38:21 so? Jul 29 23:38:29 I wanted to uses it for something Jul 29 23:38:31 droid2: well, it seems like android studio can likely go back to API 7, which is android eclair (2.1) Jul 29 23:38:57 and you just said you get errors if you set the minSDK to something LESS than 7. so set it so 7. Jul 29 23:39:04 Ya for the api but the build tools only go back to 17 Jul 29 23:39:12 that shouldn’t matter Jul 29 23:39:16 ignore the build tools Jul 29 23:39:21 use the current build tools Jul 29 23:39:29 that can't be right Jul 29 23:39:35 the error I got when setting minSDK to 1 was that it can’t be less than what some other library set it at, which was 8 Jul 29 23:39:41 Ok so then the build tools are self contained in the SDK not seperate Jul 29 23:39:59 they're independent Jul 29 23:40:03 I guess i still don't get why there is a split with SDK and build tools Jul 29 23:40:11 because there is Jul 29 23:40:37 in the same way that i can build an app for windows 8 on my computer running windows 10 with visual studio 2015. i don't need to get whatever version of visual studio compiler was out when windows 8 came out Jul 29 23:40:48 the build tools are the things like png crush and adb and aapt Jul 29 23:41:10 which ones have the compiler and stuff to build the APK i would think build tools and if you only have 17 or greater how are you going to beable to build 2.0 sdk Jul 29 23:41:40 build tools have that Jul 29 23:41:41 droid2: are you trying to get it to work, or are you trying to understand the intricacies of it all? Jul 29 23:41:53 Both Jul 29 23:41:55 and they are able to do that because they’re backwards compatible Jul 29 23:42:29 so long as there aren't wild changes, new tools can still keep building things in a format that old platforms will understand Jul 29 23:42:44 Ok so i will try setting the min back to default 7 and just seeing if it will build knowing that i installed all the 2.3 ,... lower SDK Jul 29 23:42:52 (even if there are wild changes, the developers of the build tools can choose to continue to support the old format in new tools) Jul 29 23:43:05 so once again, what is your min-sdk, your compile sdk, and your target sdk? Jul 29 23:43:43 gingerbread 2.3 apps Jul 29 23:43:50 no, i mean the api numbers Jul 29 23:43:55 the ones you set in your build.gradle Jul 29 23:44:45 I downloaded all of them from 2.3 and lower in the SDK manager there all installed now i just have to figure out when creating a new project how to set what SDK and build tools to uses Jul 29 23:45:11 that’s not what i’m asking Jul 29 23:45:26 I can only set minsdk when i create a new app Jul 29 23:45:36 Where would i find that info Jul 29 23:45:41 in the build.gradle Jul 29 23:46:45 what you’re probably going to want to do, is set your compile and target sdk versions to 23, and your minsdk version to 7, or whatever Gingerbread is Jul 29 23:47:54 ok well compiled , build , target are all set to 24 Jul 29 23:48:24 that should be ok. now set minsdk to whever you wanted it to be, and try running on device Jul 29 23:48:54 the mini is what i changed to 1 which gave me errors so i can change it back to 7 and i am alright but the app won't install if i copy the apk file over to the ginerbread phone Jul 29 23:49:17 try plugging the phone in and hitting run Jul 29 23:49:22 it should give you an error message Jul 29 23:49:34 because it doesn't support 24 sdk Jul 29 23:49:43 ok give me a little bit Jul 30 00:21:21 Hello Jul 30 00:22:13 Does anybody know what to do with task killers? Jul 30 00:22:29 When people swipe my app it closes off services too. Jul 30 00:22:48 The service(s) contain valuable information. Jul 30 00:23:11 I have searched for solutions on Google but none seem to work. Jul 30 00:25:08 Using a Samsung device running the newest version. 6.0.1 Jul 30 00:25:36 Or you can just call me an idiot for asking a dumb question. Jul 30 00:26:18 Example http://stackoverflow.com/questions/20592366/the-process-of-the-service-is-killed-after-the-application-is-removed-from-the-a Jul 30 00:28:29 namrandgo a foreground service should survive Jul 30 00:28:43 g00s App is open source... want a link. Jul 30 00:28:50 no Jul 30 00:28:56 Ok. Jul 30 00:29:25 Thanks g00s Jul 30 00:39:29 heh Jul 30 00:46:05 capella-5x did that feature ever make it into FF to show resource usage across tabs ? Jul 30 00:46:25 i was on beta channel, i guess now i have 48.0 stable, soon it will go to 49 b1 Jul 30 00:47:54 honestly g00s? I've stopped contributing there, and have lost track of state :-/ Jul 30 00:48:21 ah ok, yeah i lost track too. every once in a while i start it up to see whats new Jul 30 00:48:24 once in a while :) Jul 30 00:48:29 looong while :D Jul 30 00:48:41 hee ;) Jul 30 00:55:41 I've galaxy S4 with broken screen, how to show it on pc? Jul 30 00:58:55 TheLawyer you could try Koush's thing, Vysor Jul 30 01:00:40 koush? Jul 30 01:28:22 hi Jul 30 01:28:43 So Java 8 features like util.function and lambda, I can use that with Android right? Jul 30 01:28:45 (API 22+) Jul 30 01:29:13 hm java 8 classpath is nugget only i think Jul 30 01:29:25 of course, d.androd.com will tell you :) Jul 30 01:30:09 you can use lambdas with jack or retrolambda... debugging seems to still be somewhat broken when jack is involved so I'd recommend retrolambda instead Jul 30 01:31:56 Hmmm, Zharf does retrolambda allow me to pass functions as arguments into functions? (functions that are defined inline... lambdas) Jul 30 01:33:30 streamsupport backports java.util.function Jul 30 01:34:28 Great Jul 30 01:35:07 Hmm, looking at streamsupport's examples, it looks like they're also using lambdas. So do I only need streamsupport then, not retrolambda? Jul 30 01:35:46 it says "Want also lambdas? https://github.com/orfjackal/retrolambda" Jul 30 01:36:06 so yes, you need both Jul 30 01:37:10 Ah kk, cool Jul 30 01:37:33 Hmm, any downsides to this approach? - Zharf does it make by apk huge? Jul 30 01:37:35 *my Jul 30 01:41:01 retrolambda is pretty much compile time dependency Jul 30 01:41:14 anyone else have android studio crashing sometimes when running app? Jul 30 01:41:25 like freezing Jul 30 01:41:34 then i need to close AS via task manager Jul 30 01:41:38 streamsupport might bring up the size a bit but you can counter most of it with proguard Jul 30 01:52:30 ok so i can get the apk working on this old old device but i don't know how to set the a desktop icon for it when i install it. The best i can do is create a short cut which then gets that effect of the ic_launcher icon. Jul 30 01:53:31 How do you set the ic_launcher.png when installing be like the desktop icon i was assuming its something in the Manifest file but don't know what it is Jul 30 01:55:02 Even if i move the apk to run on the phone as opposed to run on the sd card doesn't make a difference in changing that to create the icon. Anybody out there know what makes the icon in installation and how you can install the app to phone as opposed to off sd card Jul 30 02:06:35 Zharf - cool, searching for ProGuard also brought up https://developer.android.com/studio/build/shrink-code.html - neat! Jul 30 02:07:36 it's ... a bit dicey to use but once you get it running it'll shrink your apk a bit **** ENDING LOGGING AT Sat Jul 30 02:59:58 2016