**** BEGIN LOGGING AT Sat Jul 02 02:59:57 2016 Jul 02 03:09:12 Hi All, is there any restriction that "LocationServices.SettingsApi.checkLocationSettings" CallBack method will not be called more than once? Jul 02 03:27:49 According to the Log docs: "Verbose should never be compiled into an application except during development". How exactly do I prevent these log messages from being compiled in given that Java doesn't have a preprocessor? Jul 02 03:27:55 https://developer.android.com/reference/android/util/Log.html Jul 02 03:36:52 proguard, Lewoco Jul 02 03:37:21 Lewoco, or if (BuildConfig.DEBUG) all calls to Log Jul 02 03:50:21 how do I set a TextView to the top of the RelativeLayout? Jul 02 03:50:48 alignParentTop Jul 02 03:52:10 g00s: I have that value set as true but it is still right in the cetner Jul 02 03:52:38 g00s: http://dpaste.com/1HD4W3N Jul 02 03:54:39 g00s: https://postimg.org/image/ukgym1729/ i want the workd Priority to the top near the blue line Jul 02 03:55:11 g00s: actually I think I need to add something for it to do what I want Jul 02 04:09:10 when using an Android.mk file, where do I add additional include paths? LOCAL_C_INCLUDES is relative to the nkd root dir, was hoping for another way Jul 02 04:15:51 looks interesting (frp + ui) https://manning.com/books/grokking-reactive-user-interfaces Jul 02 04:16:32 i've heard of him before Timo Tuominen Jul 02 04:16:47 maybe some /r/androiddev posts ? Jul 02 04:30:55 g00s: hmmm, i'm half-way in that first "free" chapter and I've counted a handful of spelling errors already, makes me weary Jul 02 04:33:04 pepperoni oh its not due until 2017, so its unedited Jul 02 04:33:29 I created a RadioGroup called priorityChoice. What do I put into the setOnCheckedChangeListener in order to process the changes in choices? `priorityChoice.setOnCheckedChangeListener();` Jul 02 04:34:40 ah, good to know ... otherwise, i couldn't have kept going Jul 02 04:37:55 yeah, you can sort meaps by pub date .. i usually don't buy them until they are 80% done or so Jul 02 07:55:29 Ok, so a few days ago I asked about how I should add custom fonts to my application. I realized that I would have to reload all the fonts in each new activity and someone suggested that I should use an application-wide service, but can this be considered a good practice? Jul 02 08:03:29 Think that I'll have to extend TextView. Does Android cache the font that I load if it's the same path or something? Jul 02 09:12:06 So much spaghetti code... my OCD's going through the roof Jul 02 09:16:27 May the Code Gods forgive me Jul 02 11:34:32 Hello. If I want to reduce the size of existing APK - can I delete not needed resolutions "drawable-*dpi" folders from res? Jul 02 11:41:19 yes. system itself will scale down res when appriopate Jul 02 11:46:51 Ashiren: Thanks! And when I did remove those folders (like drawable-ldrtl-hdpi, drawable-ldrtl-xhdpi, drawable-ldrtl-xxhdpi) - do I need to cleanup something else? Like some references to those folders in some XMLs? Jul 02 11:47:47 hmm are they somehow different for rtl devices? Jul 02 11:48:20 well you dont have to if their id is the same as other's drawables Jul 02 11:50:12 actually I don't even know what that ldrtl means. I only know that I need to keep "drawable-mdpi". There are also drawable-hdpi Jul 02 11:50:12 , drawable-hdpi-v11 and Jul 02 11:50:12 drawable-hdpi-v9 there. I have removed them also Jul 02 11:50:31 oO Jul 02 11:50:48 youd want to keep the higher dpi. scaling up will look meh on more densed devicfes Jul 02 11:50:59 rtl is for right-to-left reading Jul 02 11:55:08 Ah, sorry. I should have mentioned it before. Here is the deal. I'm targeting only one device :) I have a car head unit with 800x480 display. And I'm having a hard time with free space in it. All embedded software (APKs) has only drawable-mdpi. But I also have some APKs form google play installed. So I want to reduce their sizes by removing higher resolutions (which are not needed) Jul 02 11:56:11 so it is only for you Jul 02 11:57:32 well if -mdpi has all the needed resources then ok. sometimes it may happen some needed resource is in -xhdpi so it cant be deleted from there Jul 02 12:02:19 damn, that sounds not good. That means some APK from google play can have something missing in -mdpi, right? Jul 02 12:07:04 Ashiren: is there kind of standard regarding in which drawable- folder APK must have all required graphics? I.e. can I be sure that drawable-xhdpi of any app has full set of graphics? Jul 02 12:08:12 no Jul 02 12:08:21 morning folks. I'm trying to use a custom IR Remote with android on pine. here are some information I got https://gist.github.com/gschanuel/bdeb4c0d6aa65c9c1c633f9cbfccc955 Jul 02 12:08:21 on the the getevent part, I pressed 4 buttons from the remote control. Jul 02 12:08:21 Then, I'm trying to create a custom keylayout file to match this control. I'm creating two files (because I don't know wich one android will use) rc_map_sunxi.kl and sunxi_ir_recv.kl (one based by information on line 11 and the other from line 17 from my previous paste) Jul 02 12:08:21 For testing purposes, i'm just testing KEY_VOLUMEUP at fisrt. Following this example "key 1707 KEY_VOLUMEUP" I have tryed to put everything on this files!! i have put the numbers from getevent in DEC, in HEX, just the two final numbers, the last 3... i have even created a file with 1 to 2000 to see if it got anything, but until now nothing. I'm out of ideas!! Jul 02 12:10:11 Ashiren: and what does -v11 means in drawable-xxhdpi-v11? is it framework version? Jul 02 12:16:43 after every change in kl files i reboot the system Jul 02 12:18:38 If Visual Studio for Android is soo great then why is everybody not using it? Jul 02 12:20:09 cart_man: probably the ones who know C# do use it Jul 02 12:20:21 cart_man: think that most of us are using Linux/Mac. Honestly, I would like to have Visual Studio over Android Studio for development if it'd have the same features. Jul 02 12:20:28 Well ita very much the same though? Jul 02 12:20:56 Apparently it feels almost like AS Jul 02 12:21:33 But there is ALWAYS catch Jul 02 12:22:34 intellij > visual studio Jul 02 12:22:49 To be honest Cordova was not great imo Jul 02 12:23:06 really? ;) Jul 02 12:23:14 who can tell me what -v11 and -v9 means in drawable-mdpi-v11 and drawable-mdpi-v9? Jul 02 12:23:42 Well i think my biggest problem with Cordova ia that I inherited an app that was written in it and finding my way out of the nest was hard Jul 02 12:23:43 v11 requires minsdk >= 11 Jul 02 12:23:54 Ha, caught some competing Android developer minimizing ads on a black screen so that people will click it! Jul 02 12:24:01 biggest problem with Cordova is... it exists Jul 02 12:24:03 Should I be a total asshole and report him? :D Jul 02 12:24:24 Lol if you want Jul 02 12:24:45 Meh, I don't to get in trouble with the guy. His app is shit, though. Jul 02 12:25:13 *don't want to Jul 02 12:25:28 gordon_: so it means the graphics in this folder will be used only on devices with framework version >= 11? Jul 02 12:27:37 no ideas either? Jul 02 12:27:38 Intruder777: no Jul 02 12:28:01 it means that you cant compile it in api < 11 Jul 02 12:28:14 because this lib uses minsdk 11 and it's features Jul 02 12:29:07 wait, but if I see both drawable-mdpi-v11 and drawable-mdpi-v9 in same APK it means this APK required minsdk 11, right? then why it has v9 at all? Jul 02 12:29:10 Intruder777: Yes, it means that it will only be used on api level 11 and up. Nothing to do with your min sdk. All resource qualifiers are documented here: https://developer.android.com/guide/topics/resources/providing-resources.html Jul 02 12:30:30 SimonVT: thanks! Jul 02 12:30:46 Intruder777: ah you're talking about drawables, not support library Jul 02 12:31:03 then yes, you're right - v11 will be used from api 11 and up Jul 02 12:31:14 sorry for misunderstanding Jul 02 12:32:16 gordon_: np, thanks Jul 02 12:32:44 Hi, I'm having trouble with scope of R. OnCreate spawns a 'doInBackground' thread which in turn calls a function back in the MainActivity class. This calls a series of functions to a point where I want to add ui elements but the code that works to add views in OnCreate says referencing null object from the other function Jul 02 12:34:49 That is, code to add elements works when called from OnCreate but not when called from a function that was called from 'doInBackground' thread using MainActivity main_activity = new MainActivity(); main_activity.function(); Jul 02 12:36:19 the function is called much later after variables are initialized and I tried storing the relevant variables doing the lookups in OnCreate but everything is null in the scope I'm dealing with Jul 02 12:39:10 A question. There is an existing APK with like 81 pictures in drawable-mdpi folder and 169 pictures in drawable-xhdpi folder. If I want to use that app only on mdpi device, does it mean I can remove drawable-xhdpi folder from it? Jul 02 12:41:39 in another words, can application use some graphics from drawable-xhdpi folder when it is run at mdpi? Jul 02 12:42:11 Intruder777: you want to build a version of your app that only runs properly on certain devices? Jul 02 12:43:44 Leeds: no, I have 800x480 device, and the APK from google play. I want to reduce the APK size by deleting some drawable-* folders from it. And I want to be safe and avoid any missing graphics issues Jul 02 12:46:59 yeah, don't edit other people's apps Jul 02 12:50:05 Leeds: why is that? I have issue with free space, and since the device is 800x480 - I don't need higher resolution graphics Jul 02 12:50:27 because, don't edit other people's apps Jul 02 12:51:53 but you didn't explain why Jul 02 12:54:51 Can android app use some graphics from drawable-xhdpi folder when it is run on a mdpi device? Jul 02 12:57:26 Intruder777: Yes, Android app can use graphics from drawable-xhdou folder if the graphics only in the mdpi folder Jul 02 12:58:18 but, if the mdpi folder contains the graphics and the device is mdpi, and the mdpi is first Jul 02 12:59:10 you can learn about the android resource manage Jul 02 13:00:20 cnbleu: I see, thanks. There is 81 pictures in drawable-mdpi folder and 169 pictures in drawable-xhdpi folder - does it mean that some graphics exists is only in xhdpi and missing from mdpi? Or does it mean that on xhdpi device app will use more graphics that at mdpi device? Jul 02 13:02:35 app will use graphics that inclued int the mdpi device. if not, the graphics will be used from some other dpi folder which similar mdpi Jul 02 13:06:20 so if I remove all drawable-* folders except the one with the largest number of graphics (full set) then app will not loose any graphics elements, right? Jul 02 13:08:27 no. some android devices are not support the largest dpi folder and your app will crash Jul 02 13:10:32 cnbleu: got it. thanks. and if I remove everything except my device dpi - I still can loose some graphics, right? Jul 02 13:11:52 look at this document: https://developer.android.com/guide/topics/resources/providing-resources.html Jul 02 13:15:33 my device has camera2 as its camera app..when i switch to front camera, i get flash turn off/on toggles even though my device has not front flash support...is it camera app side issue or kernel side ? Jul 02 13:15:42 anyone has idea on this ? Jul 02 13:16:21 hmm, using a UsbDevice / UsbConnection raw Jul 02 13:16:26 I can't seem to disconnect. Jul 02 13:16:38 I wonder if there's a more hacky way to get the USB bus to reset it. Jul 02 13:16:48 (using otg) Jul 02 13:17:17 Intruder777, this is a developer app channel, what you're asking is beyond the scope here, and indeed you should not alter app of other ppl. Why aren't you removing useless app to gain space? you don't have any guarantee that most apk(s) would benefit from removing images Jul 02 13:22:49 adq: I have already removed all not needed apps. So now I'm cutting out unneeded languages and graphics out of the useful apps Jul 02 13:23:03 how can one refresh a View ? Jul 02 13:23:07 Intruder777: consider getting a new phone which has capability to match your requirements Jul 02 13:23:41 cart_man, invalidate() Jul 02 13:24:31 or postInvalidate if you're outside of UI thread, or call onDraw if you're dealing with surfaceview between canvas lock, or .. etc Jul 02 13:25:13 Leeds: it's not a phone, it's a car head unit. And there are not much alternatives. I already have the one which has best features Jul 02 13:26:13 a car head unit that runs Android onboard? that sounds... odd Jul 02 13:26:16 anyway, off-topic Jul 02 13:27:40 we need real HUD on the windshield Jul 02 13:28:16 lol, that's not odd at all. In future all head units will have android. And that is not an off-topic, because I'm asking about how the apk works with resouces, so it's dev related Jul 02 13:29:02 android auto does not mean android running on the head unit Jul 02 13:30:00 adq: Yea its inside a onClick() soo Jul 02 13:30:33 haven't yet played with android auto, but it's basically a remote display where you can just send notifications and control media player basically Jul 02 13:31:05 looks like very weak, but i understand they don't want a phone or a tablet in auto due to how they control this platform Jul 02 13:31:16 adq: hence, fucking around with the resources in an app is nothing to do with it Jul 02 13:31:21 (but they might end-up like android wear, with more possibilities) Jul 02 13:31:38 yeah, i understand he needs help but it's definitely not the place as already told Jul 02 13:32:09 a lot of the reason behind AA being as it is is the long long update cycle for cars, I think - if you have the intelligence on the device and just reflect it on the display, you can keep the display cheap dumb and simple Jul 02 13:32:46 also means you can have AA be one service amongst others - so native controls can still exist, iCar (or whatever Apple's car stuff is) can go there as well, etc. Jul 02 13:34:27 they will kill FM radio stations at this rate ;) (i heard most significant amount of users listening to FM radio are ppl in car) Jul 02 13:35:51 I don't believe I own a radio of any sort now, except in spare not-in-daily-use phones Jul 02 13:36:28 how the question about app resources can be an off-topic on a dev channel? adq has gave me a useful link related to my question. The title of it says Develop > API Guides > App Resources. How can it be off-topic? Jul 02 13:36:59 Intruder777: because this channel is for people developing apps Jul 02 13:37:01 simply, because you're not asking how to make your own app lighter Jul 02 13:37:10 but asking how you can strip resources from app of others Jul 02 13:37:13 not for people trying to break someone else's app Jul 02 13:37:16 maybe #android-root might help you better Jul 02 13:37:24 there are few apps which does that if you're rooted, iirc Jul 02 13:42:05 Leeds: it is a channel for "Android application development". Whether I'm developing some app or not, if I have a development related question - this is the right place. Jul 02 13:42:17 adq: Well, actually my question was not "how to reduce apk size?", but how does app uses resources from different drawable-* folders. And the reason behind this question is irrelevant. Jul 02 13:42:40 the "why" is the most important thing, see "xy problem" Jul 02 13:42:56 you can try to reason as much as you want :) Jul 02 13:43:44 also, by the way, my comment about stuff being off-topic was specifically in regard to discussion of Android head units Jul 02 13:44:54 i added more RAM this morning, AS, gradle & VMs will be happier Jul 02 13:46:07 adq: I see. but consider I have only X problems :) anyway thanks for help. Jul 02 13:49:14 I've gone from working on my nice roomy home PC to a mid-range laptop I bought almost a year ago... a bunch of chrome tabs and gradle bring it grinding to a halt... need to look at upping the RAM Jul 02 13:51:13 i went to extrem resorts with AS & gradle.. I put the build/ dir of projects inside a ramdisk Jul 02 13:51:26 even with ssd, there is a bottleneck here Jul 02 13:51:43 so moving up this part to ram helps significantly Jul 02 13:51:48 yeah, that would probably help too Jul 02 13:52:11 cpu is not an issue, i realize it never reaches 100% of any core at all, idk if they changed something since one or two years Jul 02 13:52:22 laptop has a 'hybrid' drive - an 8GB SSD sitting as a cache in front of a 500GB spinning drive Jul 02 13:52:24 because i remember ppl complaining about huge load and OS locking/freezing for few sec Jul 02 13:53:10 this is the best tip i can gave, put some stuff into a ramdisk Jul 02 13:53:30 (i'm so tired of these so-called pro-tip which are mainly keyboard shortcuts (wtf?!) and gradle daemon conf) Jul 02 13:54:41 I should look into the daemon some time - I get a warning about it every time I build Jul 02 13:54:53 I guess I'm not a vim+ant user anymore... vim+gradle now Jul 02 13:55:16 Leeds: tried making swappiness really low? Jul 02 13:55:27 i'm using vim too, but not for android dev, though sometimes i crawl or edit few files here & there Jul 02 13:58:33 MisterGadfly: nah, haven't bothered with any of that sort of thing Jul 02 13:58:46 might give it a clean re-install this week, now that Slackware 14.2 is released Jul 02 13:59:15 Leeds: well, you should try it. The default setting is way too high for the average 4GB of RAM. Jul 02 13:59:42 I've got 8GB - 4GB would be unusable :D Jul 02 14:00:40 Leeds: you could completely disable swappiness then Jul 02 14:00:45 *swap Jul 02 14:01:11 woo slackware <3 patrick v is still alive that means Jul 02 14:01:17 Does Swarm not support multiplayer? Do you have access to the leaderboard data? Jul 02 14:01:25 patrick v is alive! and possibly even well! Jul 02 14:01:35 that's good, i remember his health troubles Jul 02 14:01:44 indeed Jul 02 14:01:48 slackware is my fav linux distro Jul 02 14:02:10 but recently i'm using more openbsd and windows (lol, yes) Jul 02 14:02:42 has been mine since 1996 - with brief breaks for Solaris, Unixware, OSX, Redhat and suse Jul 02 14:03:22 after 20 years, I suspect if I had to use windows, I'd just hack it around as much as possible to be *nix-ish, or just end up running slackware in a VM anyway Jul 02 14:09:30 adq: OpenBSD FTW! Jul 02 14:10:13 and yeah slackware is also my fav linux, the original! Jul 02 14:10:27 :3 Jul 02 14:11:18 I still have a slackware ver 0.8 CD that came with the first linux bible, first linux book ever, I think 1992 or 91 Jul 02 14:11:43 I downloaded it, mostly just to seed it, then went and made a donation equal to the price of buying the CD/DVD set Jul 02 14:11:56 because who the hell needs physical media, but it's still worth paying for Jul 02 14:13:03 I installed it on a AST 386SX laptop with 4MB ram, minimum requirement was 8MB ram, so it was swapping like crazy Jul 02 14:13:24 I think version 3 was my first bought set Jul 02 14:14:08 the big new thing was ELF support :D Jul 02 14:14:40 ahah, makes me remember slackintosh, which i once ran on an old mac ppc Jul 02 14:14:53 for desktop, had a choice of fvwm, twm, and motif Jul 02 14:15:21 i often built WM (windowmaker) for slack, don't ask me why Jul 02 14:15:54 I used afterstep for a long time Jul 02 14:16:33 Leeds where is your boyfriend Lunar_eclipse120 Jul 02 14:24:13 I have a bunch of activities (act1, act2, act3, act4). I would like to now make it so that users can swipe left on act1, act2, or act3, and arrive at act4. Is this possible to do without using fragments? I've already implemented the activities and don't want to have to re-implement them. Thank you! Jul 02 14:36:14 can anyone recommend an introduction to rxjava/rxandroid for someone who hasnt worked with rx* before? Jul 02 14:37:02 Anyone here that use playtomic? I might wish to extend it with multiplayer support, possible? Jul 02 14:46:03 yawkat: There's a good series here: http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Jul 02 14:46:14 thank you Jul 02 15:26:39 Is it possible to have decent security without https? platomic uses http not https ... seems like a bad idead to have your leaderboard and achievement data sent over pure http Jul 02 15:30:59 I am trying to convert two of my Activities to Fragments and the R.id.whatever ints I'm trying to use in findViewById are undefined now. What do I need to do to get them working again? Jul 02 15:33:30 Oh, the problem was a corrupt XML file for that activity -> fragment. Jul 02 15:33:33 Sorry to bother! Jul 02 15:43:57 fdf: It's a terrible idea, they should use https Jul 02 15:45:24 CedricBeust: but then you need certificates right? or is that somehow already handled if you use https? Jul 02 15:45:50 You need certificates. Jul 02 15:45:56 use raw tls you need to. but if you use https on android will you automatically use some google cert Jul 02 15:46:07 CedricBeust: seems like a pain to maintain? Jul 02 15:46:28 It's our job to do things properly to protect users' privacy Jul 02 15:46:41 hi all Jul 02 15:46:50 anyone here - Jul 02 15:48:09 fels, gtfo Jul 02 15:48:12 how can I refer to a file in mipmap folder. I what to do something like ... srclocation = "file:///" + R.mipmap.SOME_FILE Jul 02 15:48:25 rake_boss: huh? Jul 02 15:51:30 @CedridBeust: Or use GPGS - they use https right? And take of all the cert handling for you...easy peasy except for the lockin Jul 02 15:53:12 CedricBeust: what you trying to do ? Jul 02 15:53:50 Me? Just trying to help random people. Jul 02 15:54:02 I'm random :) Jul 02 15:54:11 and need help :) Jul 02 15:55:02 How can i find the fileName of a file in mipmap folder ? Jul 02 15:55:51 fels, why not use /res/raw https://developer.android.com/reference/android/content/res/Resources.html#openRawResource(int) Jul 02 15:57:04 fels, those aren't files. Jul 02 15:57:07 So you can't. Jul 02 15:57:21 sd512: I want to get the file name beacuse there's another method that uses fileName to load the image -.... Jul 02 15:57:43 Mavrik: oh....;( so can I add a file Jul 02 15:57:55 Not really. Jul 02 15:58:00 Resources are packed into APK. Jul 02 15:58:08 all i want is show a image placeholder when blank Jul 02 15:58:19 So why do you need a file? Jul 02 15:59:16 Mavrik: the code is already using ImageLoader . displayImage Jul 02 15:59:27 that needs a uri .. Jul 02 15:59:35 So replace the code. Jul 02 15:59:45 Or modify it to support displaying a resource. Jul 02 16:00:12 Mavrik: I can't at this stage - it's not possible Jul 02 16:00:20 Bullshit. Jul 02 16:01:09 Mavrik: why ? Jul 02 16:03:29 Mavrik: how then can I use ImageLoader with resrouce ? Jul 02 16:04:00 Well look at the documentation / code O.o Jul 02 16:04:11 I don't know what "ImageLoader" is in your code Jul 02 16:09:29 Mavrik: I found a work around - thanks Jul 02 16:09:50 Can someone explain this to me "Provide a way to invoke Google Play Games default UI with user interface entry points for Achievements, Leaderboards, Multiplayer Invites, or Game Gifts. Developers are still encouraged to implement their own UI for these features. See the FAQ for details." Jul 02 16:10:22 First i should i provide a way then it is rcommended i dont? Jul 02 16:10:49 do they mean that while I should design my own leaderboard for example, there should also be a way to run the default google one? Jul 02 16:11:01 I am seriously in the mood of dumping GPGS Jul 02 16:11:34 fels: so what kind of workaround did you use? Jul 02 16:12:10 http://www.gamerevolution.com/features/free-speech-under-attack-youtuber--repair-specialist-louis-rossmann-alludes-to-apple-lawsuit Jul 02 16:12:12 that makes me sad Jul 02 16:12:23 fdf, sentence structure is pretty clear Jul 02 16:12:40 Designing a leaderboard that conforms to your game style is preferred. Jul 02 16:12:53 But if you don't want to, you should still provide a button to invoke the default UI. Jul 02 16:13:09 It makes sense if you use your brain, no? Jul 02 16:19:12 Good Morning Jul 02 16:22:32 I am trying to implement a viewpager with two fragments. The first fragment works fine, but when I swipe left to get to the next one it's just a blank screen. I know the fragment code is running (I have Log.d in there) but it's just black! Any ideas? Jul 02 16:23:37 deadmund, hey I wish I could help but I haven't learned about fragments yet. One person said to stay away from them, and another said they were so much more fun than regular activities! Jul 02 16:27:21 Jesus Christ, it's so tedious to animate views X_X Jul 02 16:27:41 MisterGadfly, oh I know Him Jul 02 16:29:35 jesseg: tell him to change history and make Google use a different language for Android Jul 02 16:29:56 MisterGadfly, LOL Amen brother :P Jul 02 16:30:08 like maybe C/C++ Jul 02 16:30:18 jesseg: damn right Jul 02 16:30:43 Even though I'm not proficient in either. I'm afraid that I'll become proficient in Java. :( Jul 02 16:31:40 Is startActivity() the only way to open a new activity? Jul 02 16:32:00 If we had used C/C++ for Android, we wouldn't be here to discuss it since Android would have failed Jul 02 16:35:26 correct, CedricBeust Jul 02 16:41:35 I was actually thinking the other day "Just how hard would it be to make my own simple framework?" I mean, it's linux under the hood. I've been using linux for nearly two decades, and it's not all that tough. Jul 02 16:42:00 Yeah what's so hard about a mobile OS after all? Jul 02 16:46:20 for Pete's sake XWindows could run on these things just fine Jul 02 16:47:21 Google put in a very large effort to make Android, and it's still a bug-ridden house of cards. If they had put *half* that effort into optimizing xwindows for mobile devices, we'd have a golden platform Jul 02 16:47:37 Linux apps would just compile and run Jul 02 16:48:18 X Window on mobile? Seriously? Jul 02 16:48:35 CedricBeust, why not? Jul 02 16:48:49 Because it was absolutely not designed for that and it was already sluggish on local machines Jul 02 16:49:29 CedricBeust, the sluggishness of xwindows is actually the "window manager" -- some of which, like KDE 4, etc -- are pure bloatware. Jul 02 16:49:41 No, it was X Window. The WM didn't help. Jul 02 16:49:48 it ran on ipaqs 15 years ago :P Jul 02 16:49:59 It's a remote server technology, think about that for a minute Jul 02 16:50:07 The X-server itself is very light weight and fast. I use XFCE which is a super light weight WM and it's very nice Jul 02 16:50:17 where 'remote' means 'over a local socket' Jul 02 16:50:26 CedricBeust, for *years* X11 has supported direct non-network connection. Jul 02 16:50:36 local interface doesn't make a difference it's still orders of magnitude too slow Jul 02 16:51:38 CedricBeust, well anyway I've been using it for many years even on 386 and 486 computers and trust me it's no more sluggish than Android's UI LOL Jul 02 16:51:59 Trust me, I know X and Android very well. It's not even in the league. Jul 02 16:53:02 I totally love the ability to run an app on one computer and natively display it on another. Jul 02 16:53:33 Yes it's a cool idea but Windows ended up implementing much better with Remote Desktop than X ever did. Which is kind of ironic Jul 02 16:56:07 Well, it's a different animal. I love being able to SSH into a remote machine, run wireshark and have it show up on *my* desktop blended in with my other apps, without having to have a dedicated block of my workspace taken up by the remote machine. Jul 02 16:57:23 but anyway we agree that Google could have chosen a better way to do things :D Jul 02 16:57:58 Not language wise Jul 02 16:57:58 CedricBeust, do you have a windows phone/tablet? Jul 02 16:58:11 Not any more Jul 02 16:59:29 Me neither. Had only one. Boss gave me broken HTC (It got wet, and touch screen was crazy.) I gave it to co-worker :D Jul 02 16:59:44 I was like "Can I install Linux on here? Nope, here you can have it" Jul 02 17:22:39 Hey guys, I'm trying to use some stuff from the support library, but merely extending AppCompatActivity causes this exception in logcat: (https://gist.github.com/anonymous/a4d1f4a3db23a99cf2b2acce7564aa50). This is my build.gradle: (https://gist.github.com/anonymous/18a513d98a3fd6343f1d8f10e93128af). Jul 02 17:23:21 eh, remote desktop isn't better than x11 in terms of flexibility Jul 02 17:23:30 they did it much better in terms of performance Jul 02 17:23:41 citrix did app hosting sell Jul 02 17:23:43 well Jul 02 17:24:04 Windows became much better at remote than X Window becoming better at local. Predictible outcome. Jul 02 17:31:09 Is there a better and more "flexible", but at the same time reusable way to animate a View than this? http://pastie.org/private/jflruxbbs9evdpowcdkkg Jul 02 17:32:04 The verbosity is driving me nuts Jul 02 17:32:26 MisterGadfly, define you animator in xml Jul 02 17:32:51 https://developer.android.com/guide/topics/resources/animation-resource.html is a good starting point Jul 02 17:33:16 Flaghacker: but let's say that I define a property in that xml, can I change ONLY that property without changing the others? Jul 02 17:34:13 Yes, you get back the ObjectAnimator as usual and you can use the setters like you're doing right now Jul 02 17:35:31 Flaghacker: so if I clone my ObjectAnimator with multiple properties, I can setValues() only on the properties that I want modified and leave the ones that I don't alone? Jul 02 17:35:42 Yes Jul 02 17:36:06 Flaghacker: I thought that setValues() overwrites everything Jul 02 17:37:43 Flaghacker: nope, the cloned ObjectAnimator doesn't store previous stuff in it :( Jul 02 17:38:56 Bah, I'll just leave it at this. Fugly, but works. Jul 02 17:39:46 Oops, my internet failed... Jul 02 17:40:06 Flaghacker: caught my last message? Jul 02 17:40:35 I think so, I replied with "MisterGadfly, I'm sorry, I thought you were talking about other properties of the ObjectAnimator (like duration) and not literal "values". Jul 02 17:40:35 * Disconnected (Connection reset by peer) Jul 02 17:40:35 " Jul 02 17:41:27 Flaghacker: darn it. Thanks anyway. Jul 02 17:41:57 MisterGadfly, couldn't you hack something together using getValues? Jul 02 17:42:24 and stick it in a util method somewhere Jul 02 17:42:33 Flaghacker: meh, too much work Jul 02 17:49:35 MisterGadfly, wouldn't something very simple like this work? (https://gist.github.com/anonymous/b74b5c68eae89571f2e56a5948bf3e19) Jul 02 17:49:59 I wrote it to see if it was easy, it doesn't matter if you use it offcourse :) Jul 02 17:50:21 Flaghacker: thanks :D Jul 02 17:50:53 Flaghacker: but I don't know if it's performant Jul 02 17:51:33 At what rate are you creating new animators that it matters that much? Jul 02 17:53:38 Flaghacker: you're right, but I'm a nut when it comes to stuff like this Jul 02 17:53:58 And it should have decent performance, there is only one String comparison per property, and some small list & array creation... Jul 02 17:55:00 And I'm sorry (EN is not my native language), but what does I'm a nut mean? Jul 02 17:56:13 Flaghacker: EN isn't my native language either and nut means crazy :D Jul 02 17:56:16 Nuts Jul 02 17:57:43 Ah so you're saying (figuratively) you value performance very much, to the point of being crazy? Jul 02 17:58:15 Flaghacker: yep Jul 02 18:02:10 Sigh... what am I doing wrong here - > 'onCreateViewHolder(ViewGroup, int)' in 'com.example.cart.recyclerviewwithfragment.ContactAdapter' clashes with 'onCreateViewHolder(ViewGroup, int)' in 'android.support.v7.widget.RecyclerView.Adapter'; attempting to use incompatible return type Jul 02 18:02:26 incompatible return type Jul 02 18:19:09 are acer smartphones good ? Jul 02 18:20:09 hassoon, For devellopment? Otherwise #android may be better suited for your question. Jul 02 18:20:32 Flaghacker: okey let's say for development since i'm here Jul 02 18:22:45 Does anybody know of a RecyclerView example that uses more the one Layout? Jul 02 18:30:37 hello! Jul 02 18:30:58 folks, how dows android treat received IR signals? Jul 02 18:31:24 i'm trying to use a IR Remote but it do not recognize the keys.. getevent shows some pulses. Jul 02 18:31:28 cart_man - you mean many different view holders? Jul 02 18:31:34 https://gist.github.com/gschanuel/bdeb4c0d6aa65c9c1c633f9cbfccc955 Jul 02 18:32:58 Omnipot: Yes I want the one Item to have ONLY text and the other ONLY a Image etc .... Jul 02 18:33:08 i tried to create a keylayout file on /system/usr/keylayout/ but i think it's being ignored Jul 02 18:37:31 use getItemViewType to return constant integer which represents your item type and then recognize which item you want to inflate in onCreateViewHolder(ViewGroup parent, int viewType) by using viewType parameter Jul 02 18:38:18 cart_man then in onBindViewHolder(RecyclerView.ViewHolder holder, int position) use holder.getItemViewType to get holder type and bind data Jul 02 18:44:53 So can somebody help me? I'm trying to use some stuff from the support library, but merely extending AppCompatActivity causes this exception in logcat: (https://gist.github.com/anonymous/a4d1f4a3db23a99cf2b2acce7564aa50). This is my build.gradle: (https://gist.github.com/anonymous/18a513d98a3fd6343f1d8f10e93128af). Jul 02 19:03:44 if I was looking for someone to help design/code some nice Material XML layouts for me, where is a good place to find freelancers for that? Jul 02 19:09:11 is this possible? https://android.stackexchange.com/questions/63667/radius-server-on-android Jul 02 19:13:34 Hi. Jul 02 19:17:46 I'm stumped. This sums it up: http://stackoverflow.com/questions/38163091/how-to-use-geodataapi-getplacebyid Jul 02 19:27:57 i need to sell my simple android game, unpublished. anyone interested? Jul 02 19:29:46 bq: Off topic for this channel, please find somewhere else to sell your apps Jul 02 20:00:53 why do i keep getting these...Failure getting entry for 0x010805c9 (t=7 e=1481) (error -75) Jul 02 20:13:43 anyone aware of an app that can show me screen video of a victim android phone? Jul 02 20:14:36 So can somebody help me? I'm trying to use some stuff from the support library, but merely extending AppCompatActivity causes this exception in logcat: (https://gist.github.com/anonymous/a4d1f4a3db23a99cf2b2acce7564aa50). This is my build.gradle: (https://gist.github.com/anonymous/18a513d98a3fd6343f1d8f10e93128af). Jul 02 20:22:50 Flaghacker: Upgrade to latest build tools Jul 02 20:23:03 I mean gradle plugin Jul 02 20:28:56 SimonVT, is 2.1.0 the newest version? Jul 02 20:29:35 You can use search.maven.org to find dependencies in maven central and their versions Jul 02 20:30:19 pretty sure maven is at 3 Jul 02 20:31:22 Not talking about maven the build tool, just a dependency in maven central Jul 02 20:31:25 It's 2.1.2 then. Jul 02 20:31:35 oh, sorry Jul 02 20:35:09 np Jul 02 20:36:02 SimonVT, I still get the exact same error message Jul 02 20:36:52 Sorry, I get a diffrent error now: https://gist.github.com/anonymous/ff1941d107887723aee18f947f52b3f2 Jul 02 20:37:54 No I'm wrong, it is still the same -_- Jul 02 20:43:35 Clean, sync, all that stuff Jul 02 20:44:28 Not sure what you're doing wrong.. Creating a new project does not lead to this error Jul 02 21:03:49 SimonVT, I've done all of that stuff Jul 02 21:04:04 Maybe it's somehting with minSdkVersion being set to 16? Jul 02 21:04:22 or have you also copied the build.gradle file? Jul 02 21:12:41 Nope, tried with minsdk 16.. Ran on api16 Jul 02 21:19:14 Strange... Jul 02 21:19:27 I have to go unfortunately. Jul 02 21:19:38 See you guys later Jul 02 22:05:19 hm, looking at Google's Scince Journal App, their sqlite schema - surprised they are storing time series in sqlite completely denormalized in a single table , single row ... Jul 02 22:05:37 i'd think that would be brutally inefficient Jul 02 22:06:00 *Science Journal Jul 02 22:06:35 i keep taking apart google apps hoping to find amazing design, and they are always dissapointments Jul 02 22:07:07 just like the SDK then.. :) Jul 02 22:07:23 lol, i think the senior devs do the sdk and the interns do the apps haha Jul 02 22:07:33 at least thats what it feels like Jul 02 22:08:23 It's almost as if it's completely different teams working on different google products Jul 02 22:08:42 almost :) Jul 02 22:09:00 but i think thats a problem. maybe dianne should do a shift as an app developer to see how crappy some of these APIs are Jul 02 22:09:22 plenty of companies were engineers shift between dev, QA, etc Jul 02 22:10:07 basically rotations Jul 02 22:14:08 Many of those shitty APIs weren't really shitty in the context they were created.. But things change, and then you have the choice between sticking with what you got or reimplementing the wheel and maintaining two sets of APIs that achieve the same thing Jul 02 22:15:40 g00s, Any company that gets large is going to have disjointed software development. Too many hands in the pot. Jul 02 22:15:41 this is kinda interesting, a lot of these tables have columns of blobs, looks like they put protobufs in there Jul 02 22:16:13 so the data is structured but they punt on certain fields and just store protobufs Jul 02 22:16:25 which is ok , if you don't need to index or query on those Jul 02 22:16:35 DLSteve_ yeah Jul 02 22:25:49 https://www.reddit.com/r/Android/comments/4qyrru/top_security_researcher_recommends_you_only_buy/ Jul 02 22:26:00 "Top security researcher recommends you only buy Nexus or Samsung devices" Jul 02 22:31:34 So devices that get security updates are more secure Jul 02 22:34:35 i thought more OEMs than Samsung were doing monthly / frequent updates though ... Jul 02 22:34:45 security updates Jul 02 22:35:17 after the Stagefright debacle Jul 02 22:41:16 Hopefully he checked Jul 02 23:06:21 Is it possible to sign your debug/build runs that you just buld and run on target? Jul 02 23:06:52 I think my problem is that my app is not signed (and uses GPGS) when in run it without creating a signed apk Jul 02 23:13:20 debug build is signed Jul 02 23:25:39 how can i get the screen height minus status bar height? i forgot how. display.getSize(size); includes the status bar height Jul 02 23:34:02 pfn: but not with the same cert right Jul 02 23:54:02 i want to create a toggle button from one of those markers on a google maps app with the default marker.. has anyone got a clue on how to access it as a reource? Jul 03 01:33:46 I am trying to access whatsapp database.. Root is garnet /data/data/com.whatsapp/databases/wa.db I got this error Invalid sql statement: android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14): , while compiling: PRAGMA journal_mode Please advise Jul 03 01:34:18 i am usibg TASKER Jul 03 01:39:00 beshoo wrong channel, this is app dev ;) **** ENDING LOGGING AT Sun Jul 03 02:59:58 2016