**** BEGIN LOGGING AT Wed Nov 09 03:00:01 2016 Nov 09 03:02:04 who here develops android apps Nov 09 03:07:50 MY MOM Nov 09 03:14:06 i made a hello world one once, took me months! Nov 09 03:15:33 I MADE A TURD ONCE Nov 09 03:15:39 got pics? Nov 09 03:15:43 NOPE Nov 09 03:15:56 I DIDNT REALLY BECUZ IM IMMORTAL Nov 09 03:47:39 * g00s panics Nov 09 03:48:30 did you dump a core? Nov 09 04:23:51 Hey guys can someone link me to some written tutorials for android app dev which are good Nov 09 04:24:17 there are literally millions... Nov 09 04:24:42 yes i know but i dont know which are good Nov 09 04:24:56 what are you specifically interested in Nov 09 04:26:02 I am a beginner Nov 09 04:26:07 http://d.android.com/ Nov 09 04:29:17 bankai_ hardware emulation in android studio is slow i have a vt-x enabled but software emulation works fine any idea why? Nov 09 04:36:01 maybe some bios setting, dunno Nov 09 04:37:06 yea i have it enabled in bios Nov 09 04:51:13 karthyk: Unless you have a burning need for slowness, test on an emulated x86 device, not an emulated ARM device Nov 09 04:59:04 I think it says x86 on my AVD Nov 09 05:08:32 anyone worked with USSD codes? Nov 09 05:09:05 market://id=sector25.ebtbalance Nov 09 05:15:55 USSD codes are handled at network/sim provider end or I can use USSD code on any app? IS USSD code like an SMS that goes to me server? Nov 09 05:26:21 is like making phone call with UUSD code Nov 09 05:27:07 which sucks because android doesnt have USSD api to read the messages Nov 09 05:49:16 Is there any point in my using actual collections with a RecyclerView? Nov 09 05:49:55 At the moment i'm just pulling the data out of arrays from another class Nov 09 05:55:38 your mean in your adapter Nov 09 05:57:50 Yeah Nov 09 05:58:07 In all the tutorials/examples I see people using collections Nov 09 05:58:35 it depends, i like to keep stuff in one place Nov 09 05:58:53 ...and considering I'm looking at a multidimensional array that I had to generate from a spreadsheet in the first place, redoing it does not thrill me Nov 09 05:59:55 oh Nov 09 06:00:57 I'm starting to regret that monstrosity anyway. When I started it I did it that way so that I could hand-edit the values easily if needed. Nov 09 06:01:08 This has _yet_ to become necessary. Nov 09 06:01:34 So... 12 arrays of 150 items or one 150x12 doesn't much make a difference anymore Nov 09 06:02:28 Maybe i'll find a way to sort collections based on values in a second collection or something Nov 09 06:15:19 LG Becomes the First to Start Android 7.0 Nougat Rollout – G5 Update Live in South Korea Nov 09 06:37:22 black91: I'm sure you voted Trump. Are you happy? Nov 09 06:56:15 Nobody comments on the results of the presidential election? Nov 09 06:56:37 orbyt_: hi Nov 09 06:58:08 America is going to be made great again Nov 09 06:59:13 I thought Hillary would win, I'm quite surprised Nov 09 07:09:17 i voted hilary Melatonina Nov 09 07:09:44 well, then you are not so bad, after all :) Nov 09 07:10:26 please Nov 09 07:10:38 no america here please Nov 09 07:10:44 moving to canada now Nov 09 07:10:49 lol Nov 09 07:15:44 Firefox 52 drops support to battery API that allows sites to track users Nov 09 07:15:44 Mozilla introduced Battery Status API in 2012 to allow websites, apps and extensions to access the API to learn about the device’s battery charge and discharge times, whether the device is plugged in, how long it will last, and remaining battery level. This API was designed to allow websites to offer less energy-intensive versions of their services to visitors with little battery left. Nov 09 07:15:44 But, the browser grants access to this information directly, without any permission request process that could prevent any site from having this access: Nov 09 07:16:33 Back in 2015, security researchers revealed that it was easy to abuse the API to track browsing on the internet. One of the major concerns shared by researchers included how a website can link a user in a private browsing mode. Nov 09 07:17:39 well yeah. any piece of data exposed by the browser WILL be used for tracking. Nov 09 07:17:49 it's not a problem of that API specifically Nov 09 07:17:52 lol Nov 09 07:18:05 no Nov 09 07:18:28 problem is that regular users gained access to track other users Nov 09 07:19:31 what? Nov 09 07:20:32 any site can have access to user info Nov 09 07:20:41 as is stated in the article Nov 09 07:21:09 not sure how monitoring a user battery level in userland can be vulnerable to "track" users Nov 09 07:21:24 black91: short-term, paired with other data markers, yes Nov 09 07:21:34 squ: you're AGREEING with what I said, not disagreeing... Nov 09 07:21:41 and it's not 'regular users' Nov 09 07:21:45 it's 'websites' Nov 09 07:21:49 any site is regular users Nov 09 07:21:54 we are talking battery, not cookie, or gps tracking Nov 09 07:21:58 must be some details missed Nov 09 07:22:18 of course a website can track ips Nov 09 07:22:25 that article is dumb, all over the place Nov 09 07:22:34 black91: Every extra bit of data improves the ability to track people Nov 09 07:22:46 unique user fingerprint consists of many values, may include battery info too Nov 09 07:22:48 uh i dont think a battery does Nov 09 07:22:49 heh Nov 09 07:22:50 it's not one data point specifically, it's everything added up Nov 09 07:22:59 short-term yes it freaking does. Nov 09 07:23:00 :p Nov 09 07:23:20 id say if ur online, ur ip is x.x.x.x and ur connected to faceobok that is good enough for cybercrime dept Nov 09 07:23:25 :) Nov 09 07:23:33 we aren't talking cybercrime Nov 09 07:23:38 we're talking advertisers and stuff lol Nov 09 07:23:51 security researchers revealed that it was easy to abuse the API to track browsing on the internet. Nov 09 07:24:06 like all APIs that reveal data points. yes. Nov 09 07:24:18 just stop Nov 09 07:24:22 black91: you stop Nov 09 07:24:23 even a property exposing the amount of CPU cores. Nov 09 07:24:24 lol Nov 09 07:24:42 id say ur isp sniffing is enough Nov 09 07:24:52 we're not talking about ISPs Nov 09 07:24:53 black91: it may have revealed battery serial number for example Nov 09 07:25:05 software to blow up phone? Nov 09 07:25:08 phone may have shifted from isp to isp Nov 09 07:25:12 dl link plz? Nov 09 07:25:20 squ: no serial numbers are available in the api.. Nov 09 07:25:21 im out of this discussion Nov 09 07:25:50 who cares a serial of a battery Nov 09 07:25:56 jesus fuckstick sir Nov 09 07:27:15 prolly learn into how batteries are designed before assuming that Nov 09 07:27:16 black91: please go look up the discussions on the navigator.hardwareConcurrency property and become enlightened Nov 09 07:28:19 id rather not thats a dumb article Nov 09 07:28:21 and dumb argument Nov 09 07:28:51 your ignorance is hilarious Nov 09 07:29:01 plz learn linux kernel before thinking firefox has access to system hardware Nov 09 07:29:27 what? Nov 09 07:29:52 what does that have to do with anything Nov 09 07:29:56 like, how drunk are you Nov 09 07:30:00 scale of 1 to 10 Nov 09 07:30:03 pretty Nov 09 07:30:05 -1 Nov 09 07:30:11 was but no longer Nov 09 07:30:16 :( now just sad Nov 09 07:30:30 lets find something we can agree on and just end this rant lol Nov 09 07:30:33 um. RIP USA? Nov 09 07:30:43 09:09:16 i voted hilary Nov 09 07:30:46 explains everything Nov 09 07:31:10 exactly why im now, not drunk and poor Nov 09 07:31:10 squ: and so did i, gtfo Nov 09 07:32:33 squ: did you vote Trump? Nov 09 07:33:02 I'm not american and I don't care Nov 09 07:33:34 well the president of the united states is one of the most powerful positions in the entire world Nov 09 07:33:52 MWisBest: discuss that elsewhere Nov 09 07:34:30 you offended black91 and he quit Nov 09 07:34:37 squ: we've been off-topic for the last 20 minutes here, which you started actually. Nov 09 07:34:39 :/ Nov 09 09:41:03 Hey guys I have a toolbar and below it I want framelayout to fill the remaining space how I can do that? Nov 09 09:41:08 http://pastebin.com/VeUjmrsr Nov 09 09:44:31 Almis90: align the top of the framelayout with the bottom of the toolbar and the bottom of the framelayout with the parent bottom, maybe? Nov 09 09:46:40 hi Nov 09 09:51:05 a rather long time ago, I saw documentations about the numbers for material design (500 for main color that means 100 for something else in the app etc). But I cant find it anymore. Is it 700 for the status bar? Nov 09 09:53:35 how to make some like this in java android? https://jsfiddle.net/k5xveahu/ Nov 09 09:54:46 i want access to received button object in onclick function Nov 09 09:59:55 u mean this Zooklubba https://material.google.com/style/color.html#color-color-palette ? Nov 09 12:07:32 hithere Nov 09 12:07:33 I started teseting firebase analytics, and I am getting slow response times on getting resulting data in console (hours). Is this normal? Nov 09 12:08:12 #firebase channel seems to be in hibernation... Nov 09 12:25:44 thepoosh is your guy bolovanos Nov 09 12:25:58 he is everyone's guy Nov 09 12:26:36 I am nobody's guy. :) Nov 09 12:26:56 one day young grasshoper, one day Nov 09 12:27:19 bolovanos: it takes about 4-6 hours to get information Nov 09 12:27:30 ohi thepoosh Nov 09 12:27:47 but if you mark some events as conversion events, sending the data should be faster Nov 09 12:27:57 also, they're introducing live data soon Nov 09 12:28:08 as can bee seen in the keynote from the firebase dev summit Nov 09 12:28:13 ohi there raoul11 Nov 09 12:28:31 thepoosh, o great thx , I have one observation - I have hade 1 hit in events (first_open), but now it is gone. Have you seen something similar? Nov 09 12:29:25 nope Nov 09 12:29:31 ad dev summit - yes I know about it - I wrote about it on #firebase Nov 09 12:30:48 bolovanos: maybe that user removed the app Nov 09 12:31:16 thepoosh, it is me - with testing app.. Nov 09 12:31:34 look for debug view Nov 09 12:32:30 hi my friends Nov 09 12:48:56 how to add margin after each block? Nov 09 13:01:21 right. So I've themed the status bar and actionbar/toolbar. But for some reason, the colors are not the same. If I use the colorpicker that's within open a picture in android studio (after screenshotting through android studio). The colors I set in the theme is not what the color picker says it is. Trying to figure out what's up. It's basically a kind of transparent white layer over them. Nov 09 13:01:41 so the colors (in the app and colorpicker) are a bit more white than they should be. Nov 09 13:02:54 how to add bottom-margin after layout? Nov 09 13:03:46 in that layout, layout_marginBottom Nov 09 13:10:15 Hello people. Nov 09 13:10:19 And others. Nov 09 13:10:58 Do any of you publish apps anywhere other than Google Play and Amazon ? Nov 09 13:12:10 yes Nov 09 13:12:31 :) Nov 09 13:13:06 how is there a like a "#11ffffff" tint over all icons and stuff that should have the color from color.xml :S Nov 09 13:13:20 I have been looking at alternative app stores. Nov 09 13:13:42 The Chines ones are rather difficult. Nov 09 13:13:46 when i drag "Snapchat_v9.43.0.0_apkpure.com.apk" into a Android 7.0 Emulator, i get error: "Failed to start adb. Check settings to verify chosen adb path is valid" Nov 09 13:15:49 firebase news - works Nov 09 13:18:27 NeoFrontier, i find mine appearing on other stores anyways, so i dont even bother rlsing there Nov 09 13:19:03 raoul11, yeah I noticed that also Nov 09 13:19:42 they always seem to include my ad networks api key as well, so i keep seeing on applovin my app under a diff package name Nov 09 13:19:59 kind of them tbh Nov 09 13:20:15 Which ad networks do you use ? Nov 09 13:21:14 applovin mainly, also appnext, now gonna try vungle/adcolony coz i like their ads Nov 09 13:21:35 also got admob /: Nov 09 13:22:37 Who are you on Google Play ? Nov 09 13:23:33 ? Nov 09 13:23:51 I'm Google. Nov 09 13:24:08 Hello Google ! Nov 09 13:24:12 :) Nov 09 13:24:42 Do you write games or what kind of apps do you do raoul11 ? Nov 09 13:24:49 games Nov 09 13:25:22 initially did endless runners/jumpers/shooters, now mainly logic/math Nov 09 13:25:52 hoping to finally deploy this latest one next week Nov 09 13:25:59 how bout u NeoFrontier ? Nov 09 13:26:23 I mix it all in. Nov 09 13:27:37 Does anyone know how to send replies with a NotificationListener? 150 SO bounty: http://stackoverflow.com/questions/40369508/how-to-utilize-android-nougats-direct-reply-feature-with-a-notificationlistener Nov 09 13:27:45 Hi, NeoFrontier. Hi, raoul11 Nov 09 13:27:52 Good morning Nov 09 13:27:54 Hello sexy Nov 09 13:27:58 morning Melatonina Nov 09 13:28:46 how to fix this bug? https://i.gyazo.com/13dbf13f99992698685c3dac2ad5e861.png Nov 09 13:28:59 layout have android:layout_marginBottom="10dp" Nov 09 13:30:11 Which of those ad networks makes you the most money raoul11 ? Nov 09 13:30:44 applovin, but that was with the silly runners/jumpers games i had Nov 09 13:30:55 also pays proper and on time. Nov 09 13:31:09 Hi everyone Nov 09 13:31:26 hi reaxion Nov 09 13:31:26 sucks that they dont do portrait ads though, dont like the idea of oreintation changes Nov 09 13:31:46 I'm building an android app right now for an embedded headless device, and I am trying to set up bluetooth to be discoverable without user interaction. Nov 09 13:31:54 Is there a way to do this on a headless device? Nov 09 13:32:26 When is a device headless ? No screen ? Nov 09 13:32:29 I am working on my own AOSP firmware, so if necessary I can give it shared.uid permissions Nov 09 13:32:32 Yeah, no screen Nov 09 13:34:18 It's basically a chat relay and file transfer server that works over bluetooth and wi-fi Nov 09 13:34:29 So it doesn't need its own display Nov 09 13:34:48 Did you decapitate it yourself ? Nov 09 13:34:55 Heh, no. Nov 09 13:35:17 So, the 500 color for blue according to material design over at https://material.google.com/style/color.html#color-color-palette is #2196F3 however, setting that as a color. It is shown as #1F7BE4C in the app. Even colorPicking from that palette on that color, it says it's #1E80F0 - So I guess that color is not web safe or even android safe :S? Nov 09 13:35:53 web safe, at least on my mbpr w/ cinema display. Nov 09 13:36:03 It's a variant of the Rasp. Pi. Nov 09 13:38:00 NeoFrontier: Any ideas? Nov 09 13:38:08 setting DISCOVERABLE without user interaction is security breach thus not supported (officially) Nov 09 13:38:23 but sinces its your device, it can be done if its 'rooted' Nov 09 13:38:31 Ashiren: I build the OS from source. Nov 09 13:38:46 We have our own customised version of KitKat. Nov 09 13:39:12 So I can embed system apps, services, shared.uid stuff, etc. Nov 09 13:39:28 oh. i dont know it this is in scope of this channel. could be more suitable for #android-root or #android Nov 09 13:39:33 sounds like ROM building Nov 09 13:39:34 Okay Nov 09 13:39:34 Not in particular reaxion , you are going to have to change the firmware. I am not experienced in that so cant help. Nov 09 13:39:50 NeoFrontier: Okay, I appreciate your reply. Nov 09 13:40:12 :) Nov 09 13:40:19 Well, it's an app, but it might need to cross over into ROM building if I need to customise the bluetooth protocols. Thanks peeps. Nov 09 13:40:47 well you need to customize the bluetooth api that would be used in app Nov 09 13:47:21 Ashiren: Ok. I'll need to investigate that. Nov 09 13:51:26 on the Mac Android Studio, is anyone else experiencing this bug where the key shortcut for block comment doesn't work until you've opened the Code menu once? Nov 09 13:52:00 Found something. Nov 09 13:52:33 This is quite awesome. http://snipplr.com/view/49526/get-ibluetooth-instance/ Nov 09 13:52:50 :) Nov 09 13:54:45 hey guys, I am currently studying computer science, but I just want to be android developer: why do I need calculus/analysis? How can I use these skills being an android developer? (only partly interested in gamedev) Nov 09 13:55:49 You need calculus/analysis to pass your CS degree Nov 09 13:55:50 IndMan: You could use them if you're going to be building game engines that use complex calculations Nov 09 13:56:26 how to fix this bug? https://i.gyazo.com/13dbf13f99992698685c3dac2ad5e861.png Nov 09 13:56:28 layout have android:layout_marginBottom="10dp" Nov 09 13:56:38 Linear algebra will come in handy in game development Nov 09 13:56:42 sounds like you're on wrong curriculum Nov 09 13:58:09 well, I MUST pass it, just don't know how can I use it later...maybe good for reasoning skills, but otherwise... Nov 09 13:58:13 i think almost every computer science studies have calculus in there eh Nov 09 13:58:42 in gamedev it comes in handy even if most stuff is done by libraries Nov 09 13:58:43 reaxion, do I need to build a game engine for android game? Nov 09 13:59:07 Do you play games with stat-based combat? Nov 09 13:59:23 I think I did more calculus for picking out armor sets in WoW than I did my entire time at college Nov 09 13:59:53 one situation i remember long ago i was working on some bluetooth detector that was sending data and i needed approximate intergrals for statistics purposes Nov 09 14:02:44 Hello!, in this link: https://developer.android.com/training/gestures/detector.html#detect code below , method "onTouchEvent()", say a comment: "// Be sure to call the superclass implementation", and next line: "return super.onTouchEvent(event);"......... why? Nov 09 14:03:31 Because that might not be the only bit of code trying to listen for the event Nov 09 14:03:38 odigem, you are probably setting the layout params for your views hardcoded based on unobstructed margins from parent, and adding the parent margin squishes, pastebin your xml layout Nov 09 14:06:19 whatitis: http://pastebin.com/TPxLRZkN Nov 09 14:08:48 what if you removed margin from first textview, and added padding to the relativelayout for it's children Nov 09 14:08:49 whatitis: android:layout_margin make 10all margin to first view and 20 to other views Nov 09 14:10:45 whatitis: not helped Nov 09 14:11:18 and remove the margins for the childrens of that relativelayout Nov 09 14:11:51 remove the layout_marginBottom from the linearlayout too Nov 09 14:12:14 just use padding for relative layout Nov 09 14:12:48 and no need for weightSum as you don't use it Nov 09 14:13:06 height for relative layout can be match_parent Nov 09 14:13:22 Dagmar: thank you :) Nov 09 14:14:11 pastebin updated xml when you get chance, i may go afk for a bit. time to eat Nov 09 14:16:36 now my question is, how to do the same, but in a View.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { "return super.onTouchEvent(event);" } } ); Nov 09 14:17:36 is there a way i can play a sound at a specific volume without changing the phones volume? Nov 09 14:17:53 i want to make sure the user hears a sound, but i don't want to change their settings Nov 09 14:18:27 i could change the volume, play the sound, then change it back, but that seems messy Nov 09 14:19:27 overriding user preferences explicitly stated seems... yah, not suggestabke Nov 09 14:19:51 yeah that's no good Nov 09 14:20:06 but the main feature of the app requires a sound be heard Nov 09 14:20:48 @first do no harm? Nov 09 14:21:32 user preference wins in draw Nov 09 14:21:53 Yeah, I hope Android doesn't let apps change volume Nov 09 14:22:18 it does Nov 09 14:22:39 Really? Nov 09 14:22:50 in the version i've written now, it changes the volume to 70% Nov 09 14:23:03 even if the user has the sound off Nov 09 14:23:42 i don't change it back afterward though, and that's a problem Nov 09 14:23:53 can include view in other view? Nov 09 14:24:01 for easy design Nov 09 14:25:07 Huh, that doesn't seem like something you'd let apps do Nov 09 14:25:57 it doesnt require any special permission either Nov 09 14:26:27 but i mean, what if it was a music player. you'd want volume controls in there Nov 09 14:54:13 Does anyone here know if it's possible to cross compile various linux utilities to Android? Nov 09 14:57:49 Hello, me again: in this link: https://developer.android.com/training/gestures/detector.html#data <--- code have a switch/case with a default of "return super.onTouchEvent(event);" . How to achieve the same with a single view ? (using setOnTouchListener( new OnTouchListener() { .... } ) Nov 09 14:58:43 because in the example just "return true;" Nov 09 14:59:14 or always must return true while using OnTouchListener? Nov 09 14:59:50 true means event was consumed and dont pas the event further to parent Nov 09 15:00:45 i.e. you have button. button doesnt have TouchListener, or it returns false. then the event goes to the parent layout of that Button Nov 09 15:00:57 and if you have some logic introduced in that layout, it will be invoked Nov 09 15:02:56 ok thanks Nov 09 15:04:50 but my question is that purpose of "super.OnTouchEvent(event)" is to pass logic to superclass, how to do a "return super.onTouchEvent(event);" in a View.setOnTouchListener() Nov 09 15:07:12 you set there OnTouchListener, which is just interface and doesnth have superclass Nov 09 15:07:31 of course there's onTouch, you can do view.onTouchEvent() Nov 09 15:07:54 but afair that would end up with some sort of recursion Nov 09 15:08:04 that trigger any other related touch events ? Nov 09 15:08:09 oh yes you are right Nov 09 15:08:13 uhm :-/ Nov 09 15:10:10 ok other question Nov 09 15:10:33 I have a input type="file". Android provided me with a possibility to take a picture using the camera, but not the album. What can I use instead Nov 09 15:10:41 Also, the orientation got wrong Nov 09 15:13:53 while doing aView.setOnTouchListener( new View.OnTouchListener() { public boolean onTouch(){ ................ } } ); inside "onTouch()" method have to program again whole events? because I try to use GestureDetector class, and inside it I have "gd.onTouchEvent( event );", which return value have to have to correctly aView handle the event and parents too ? Nov 09 15:14:32 *inside onTouch() method Nov 09 15:28:37 pmercado: You can jsut call _other_ methods from inside onTouch. It's what i do to keep those things from becoming obscenely long and unreadable Nov 09 15:37:42 when android sdk store repository files in windows? Nov 09 15:41:11 odigem, you need to make more effort when you ask questions, carefully explaining your problem is half the solution Nov 09 15:55:31 http://imgur.com/a/a1zTU -__-" Nov 09 16:04:13 hi I am trying to implement a hangman game Nov 09 16:04:23 as hangman requires a one character input Nov 09 16:04:37 I have two things in my mind Nov 09 16:04:47 * Just use an EditText Nov 09 16:04:58 * Actually create 26 buttons ( which is horrible ) Nov 09 16:05:09 Do I have a better option? Nov 09 16:11:00 sorry for stupid question, but why one layout closes other? Nov 09 16:11:19 hello, im trying to support material design for pre lolipop, colorPrimary effects the app, however colorPrimaryDark and colorAccent does not work Nov 09 16:11:36 any idea ? @color/test1 @color/test2 @color/test3 Nov 09 16:15:23 gonna need to show what theme you are inheriting from there sci-fic Nov 09 16:15:32 pastebin your whole theme file Nov 09 16:16:27 missingno: this one is v18 http://paste.ubuntu.com/23451526/ Nov 09 16:17:05 missingno: and second one v21 http://paste.ubuntu.com/23451529/ Nov 09 16:17:16 are you using a theme on your toolbar in the layout Nov 09 16:17:17 no problem in v21 Nov 09 16:17:34 hey droids. I'm using support library v25's RecyclerView, set to `wrap_content`, but my RecyclerView is scrolling. I don't want it to scroll, I want it to be the full size of its children. Googling says this should have been fixed in a patch to v23. Is this a known regression? Nov 09 16:17:53 hi Nov 09 16:18:27 missingno: well u right, im using different color thats why i guessed it is not working :D Nov 09 16:18:53 missingno: however my colorAccent does not work ( im trying to change accent color of SwitchPreference) Nov 09 16:19:04 I'm doing a GET request to an internal endpoint. This request takes approximately 3 minutes to execute. When I run it over wifi, it works fine. When I run it over 4G (which is faster than our wifi!) it always throw a SocketTimeoutException Nov 09 16:19:14 I can't explain why, 4G here is so fast Nov 09 16:19:47 Maybe someone knows how i can root Samsung mobile phone? Nov 09 16:19:55 android-root silent Nov 09 16:19:58 Village: #android-root Nov 09 16:20:12 There silent, nothing don't helps:/ Nov 09 16:20:46 Dagmar: thank you :) Nov 09 16:20:49 Village: be patient, the west coast is just getting to work. This channel can't help you Nov 09 16:20:59 DevAntoine: If it's an internal network, I would assume that your phone can't connect to it on 4G Nov 09 16:21:25 (perhaps you have a VPN you can use to tunnel into your internal network) Nov 09 16:27:19 In the YouTube Data API you can call YouTube.Search.List#setFields(java.lang.String fields) to filter which fields of the data you want to actually receive, in order to not waste bandwidth. In some code from Google I see search.setFields("items(id/kind,id/videoId,snippet/title,snippet/thumbnails/default/url)"); And I'm actually receiving only the "default" thumbnail size (it's small). I changed the last part to "snippet/thumbnails/maxres/url" Nov 09 16:27:19 to receive the highest resolution thumbnail but it didn't work. Do you know where the format of the "fields" string documented formally? Nov 09 16:31:46 MarkyC: nop, it's not Nov 09 16:31:59 the endpoint is open to everyone Nov 09 16:33:22 DevAntoine: I will have to make a similar interaction where a HTTP request takes a lot of time. I'm choosing to let the request return immediately with a reference URL. The Android device will use that URL to make a WebSocket connection to the data from the server when it's ready and receive progress updates in the meantime. I will implement receiving intermediate results too. This way, I'll have feedback of the ongoing computation and the Nov 09 16:33:22 results will come as soon as they are ready Nov 09 16:34:02 DevAntoine: the server will use SignalR to push information to the Android device Nov 09 16:35:30 yeah, using websocket would be a better choice Nov 09 16:35:38 but everything is already coded and in production -_-' Nov 09 16:40:30 Melatonina, https://developers.google.com/youtube/v3/docs/channels#snippet.thumbnails they said default medium or high Nov 09 16:43:30 adq: thanks. Somewhere I read this "maxres" key and wasn't working. Probably "maxres" is a pseudo-key used only somewhere else in the API. Thanks. Now I'll look up for information in that page from now on. Nov 09 16:47:39 Melatonina, what i did when played with youtube api (years ago), is to have a raw text mode (on your browser for example) of eveyr fields being returned for a particular channel and/or vid Nov 09 16:51:18 adq: yes, in fact I came to the conclusion that maxres was an actual key few seconds before your message by querying the API with Postman. Nov 09 16:51:24 wasn't Nov 09 16:59:10 I'm using support library v25's RecyclerView inside of a ScrollView, set to `wrap_content`, but my RecyclerView is scrolling. I don't want it to scroll, I want it to be the full size of its children. Googling says this should have been fixed in a patch to v23. Is this a known regression? Nov 09 17:00:46 MarkyC, either use a nestedscrollview or don't put a scrolling container inside another scrolling container using the same direction Nov 09 17:01:50 if you want to expand all the items from a recyclerview, you should think twice if you really want a recyclerview Nov 09 17:01:58 many ppl did the same mistake with listview in the past Nov 09 17:03:19 adq: Thank you sir! I think using a RecyclerView for this is suspect (the author went with the approach that they knew). I'm going to apply this hack (NestedScrollView) for today, but I think long term we should just be inflating and adding a new view for each item that comes in Nov 09 17:03:44 nestedscrollview is not a hack, it's mean to be used like that Nov 09 17:04:15 yeah, if you don't have much item, and want to hav evyerthing expanded, i think it's better to inflate and add views/items programmatically Nov 09 17:04:24 Adding the NestedScrollView to support the RecyclerView (which probably shouldn't be used in the first place) is the hack Nov 09 17:04:45 i think it's linked to coordinatorlayout, this is why i say it's not a hack Nov 09 17:05:02 anyway Nov 09 17:05:27 coordinatorlayout can deal easily with scrolling behavior of recyclerview, nestedscrollview, etc Nov 09 17:05:37 but not really well with a regular scrollview for example Nov 09 17:10:13 adq: good to know, thank you Nov 09 17:17:02 I've been getting "Ignoring InnerClasses attribute" in the dexing phase of building an app with a specific lib, and the solution I'm seeing everywhere to ignore the warning is to add "-keepattributes EnclosingMethod" to the proguard file. This doesn't appear to be a proper way to ignore the warning since I'm not even using proguard Nov 09 17:18:14 Also seems like the ultimate fix is something to do with the creators of the lib recompiling for me, but I'm not sure what they need to change Nov 09 18:07:44 Is Galaxy Tab A an ok tablet for development? Nov 09 18:07:53 sure Nov 09 18:08:19 Thanks Nov 09 18:10:57 If I want to build a system app that uses com.android.internal APIs, what's the most straightforward way to do that? I can't do it in Android Studio, or at least haven't yet found a way. Nov 09 18:13:33 you can, you just need the libraries Nov 09 18:13:36 I am creating an app that will control 3G APN settings, wi-fi and GPS switches, etc. Nov 09 18:13:59 i don’t think you need com.android.internal apis for that Nov 09 18:14:04 Okay. I saw a couple of places that talked about a combined android.jar and framework.jar. I'm not entirely trusting of those. Nov 09 18:14:04 at least for Wifi Nov 09 18:14:35 I'm doing some other things as well. Hang on and I'll give you a few. Nov 09 18:15:33 well, then you’re probably going to need the combined android.jar and framework.jar Nov 09 18:15:39 Setting network type as 2G, 2G/3G or 3G. Changing system language. Factory reset. others Nov 09 18:15:56 Ok. I'll give that a try then. Nov 09 18:23:35 Hi, I have a question Nov 09 18:24:00 If I have a service running with the same priority as foregrounded apps, what happens when the user locks their phone? Nov 09 18:24:40 I mean, surely it doesn't stay executing at the same speed, right? Nov 09 18:30:19 Anyone got experience with Realm here? Nov 09 18:30:31 I'm curious what's the best way to update an RealmObject which doesn't have a primary key? Nov 09 18:30:54 nevermind should've googled more Nov 09 19:05:25 Hello guys, I got newbie question. Im adding programatically a tablerow to existing TableLayout. In my TableRow there are 5 TextViews. The problem is they are not divided equally in the width, but all are in one place. They dont fit other columns that are already in the table. Any ideas? I can give screen and cod Nov 09 19:06:22 you should automatically be giving screenshots and code Nov 09 19:06:45 but you might want to look at a Grid layout instead Nov 09 19:07:15 i believe with that, you can, on a per row basis, adjust the weight of the columns Nov 09 19:11:09 Thanks, i didnt know about Grid Layout, and it seems like it solves my problem Nov 09 19:27:14 How do you build bionic without any other components? Nov 09 19:34:57 Hi ! I have to update Google Play Services in the emulator and could not find out how :( I have installed the latest tools and SDK but nothing works. Could someone help me ? :) Nov 09 19:35:27 (I hope I'm in the right chan for Google Play Services issues...) Nov 09 21:09:19 Hello. I have a RecyclerView where I show YouTube thumbnails. The thumbnails are scaled in an ImageView with scaleType="centerCrop". Images are loaded with Picasso. If there is a noticeable delay people can see a thin item that successively grows to make space for the thumbnail. So I'd like to set the drawable of the ImageView to a drawable with the same size of the final thumbnail (I know width and height). What drawable can I use? Nov 09 21:10:17 I attempted to use https://gist.github.com/anonymous/496cd60fefe90837c8d4a7480f8237ab but it didn't work. Nov 09 21:10:23 just a rectangle drawable, I guess Nov 09 21:10:44 otherwise, try just setting the background color of the ImageView Nov 09 21:11:14 That code makes a rectangle and sets the intrinsicWidth and intrinsicHeight Nov 09 21:11:39 i see that now Nov 09 21:11:51 you could just pack a placeholder image, and use that Nov 09 21:12:56 Ok. I didn't want to create a new image for each item but the YouTube thumbnails have a specific size. So I just can make a placeholder bitmap Nov 09 21:13:04 I'll do that Nov 09 21:13:08 Thanks Nov 09 21:13:55 what I mean is: I don't have a problem because the size is always the same. I just need ONE image in the resources and I'm fine Nov 09 21:24:06 Hey guys lets say I have activity A and B and from activity A I go to B, then on B I call finish and it goes back to A, how I can capture from A that B was finished? Nov 09 21:24:29 startActivityForResult Nov 09 21:24:34 from A to B Nov 09 21:25:27 and in B setResult before finish() Nov 09 21:25:58 snibbles thank you I will try it now Nov 09 21:26:39 in A you will want to implement onActivityResult Nov 09 21:27:26 okay Nov 09 21:43:51 snibbles it doesn't seem to work, so I have a fragment which has `override void OnActivityResult` from my adapter I calling `_activity.StartActivityForResult(intent, 0);` in the activity B i calling `SetResult(Result.Ok); Finish();` but the breakpoint doesn't stop at my override Nov 09 21:44:17 try putting it in your activity, not the fragment Nov 09 21:45:10 or use the Fragment's startActivityForResult Nov 09 21:45:17 instead of the activity Nov 09 21:45:59 snibbles okay I will try Nov 09 21:46:20 s73v3r: I found the problem. The code that you saw is correct. The problem is that Picasso sets the source drawable of the ImageView to null as soon as you use .into(). You must use .placeholder() to set a drawable to be used as placeholder. Nov 09 21:47:10 Do no set the source drawable and then call into() because the drawable will never be used. Nov 09 21:55:31 snibbles yep I called fragment's startactivityforresult and it worked Nov 09 21:55:34 thank you Nov 09 21:55:43 no problem, glad you got it working Nov 09 22:25:37 hello Nov 09 22:26:17 is this a right channel to question related to android layout positioning? Nov 09 22:27:44 sure Nov 09 22:32:11 well, I am kinda new to all this, so this might be very wrong. I am using both Relative and Linear layouts, making something like menu. In the first linear layout, I have textview with skill lvl and reputation, and I want to fill blank space from top to second linear layout Nov 09 22:32:16 http://pastebin.com/dRC7Qmhr Nov 09 22:33:12 But I assume that the code that I have now is bad, because on smaller display than mine it won't work at all Nov 09 22:36:12 sysy: Looking at it I find the use of relativelayouts with a _single_ item inside them to be deeply suspicious Nov 09 22:36:31 sysy: Are you using Android Studio's layout editor? Nov 09 22:36:49 Dagmar: yeah Nov 09 22:37:44 Simplify your layouts, man Nov 09 22:38:34 Having a RelativeLayout with a single TextView inside... you could easily replace those with LinearLayouts Nov 09 22:39:12 it looks like this https://ctrlv.cz/shots/2016/11/09/nIMJ.png Nov 09 22:39:44 You barely need any RelativeLayouts for that Nov 09 22:39:53 HTML is piece of cake, this is rocket science. I should use tables Nov 09 22:40:45 Layouts in Android are much simpler then html/css Nov 09 22:41:08 flexbox brings things a bit closer but Android is still easier Nov 09 22:41:38 Well, yes. There's a TableLayouts you could leverage for this, but you could easily put skill * rep in a horizontal linearlayout with wrap_content for vertical and use gravity to pin it to the top... Nov 09 22:42:37 awesome would be some website with different layout design and xml code, on something like generator Nov 09 22:42:43 ...and all those textViews could easily just be in another vertical linearlayout with two other linearlayouts inside it... Nov 09 22:42:55 You don't need to put a textview into a linearlayout just to get a box around them Nov 09 22:43:02 That's what padding and margins are for Nov 09 22:43:13 A textView can take a background drawable just fine Nov 09 22:44:38 well, textviews here are means like buttons Nov 09 22:44:39 All those text buttons would probably fit quite neatly into a single tablelayout with eight rows, with the last four rows using a spanning attribute Nov 09 22:45:07 No worries there, everythign's clickable Nov 09 22:45:25 You just get to build custom selectors if you try to make textViews into buttons Nov 09 22:45:55 ...but you can skip selectors if you don't care if the buttons visibly react to being pressed, hint hint Nov 09 22:46:01 borders are wrong, because top and bottom are 2dp left and right 1dp, but I don't know how to use only top,left,right Nov 09 22:46:18 Un momento Nov 09 22:47:10 You just do somet6hing like, i am using strokes Nov 09 22:48:04 Yeah that's fine Nov 09 22:49:19 This is kind of messy, but you can do insets/offsets using a layer-list http://pastebin.com/LsfPRNai Nov 09 22:52:17 thank you, but don't waste time with me, need to fix the layouts firsts Nov 09 22:52:22 *first Nov 09 22:52:23 Using negative values for margins can get around some of the mess, but it's awkward Nov 09 22:53:05 I will try to use only linear layouts Nov 09 22:53:57 The main thing is to use as few levels of nesting as you can get away with Nov 09 22:54:59 Also there's 9-patch files you can leverage if you really want to Nov 09 22:55:42 You'd need to create a few different ones, but I suspect trying to keep the lines 1dip thick, even when they push against one another, is probably not going to work out visually with the rounded corners Nov 09 23:07:00 I have an Observable that when subscribed to begins emitting scan results. What I'd like to do is scan for 10 seconds, break for 10 seconds, and repeat until the views onPause() is called. Nov 09 23:07:13 My first though was to use Observable.interval() like so: http://pastebin.com/wRhfeftY Nov 09 23:08:19 This doesn't work as I initially thought it would, as once the Observable returned from the scanFor..() method is subscribed to, scan results are continuously emitted Nov 09 23:08:38 Any ideas on what I should be using to accomplish the above? Nov 09 23:09:22 To stop the initial scan, the scan observable needs to be unsubbed. Nov 09 23:53:37 lasserix: Yo, dawg. Long time no see. Nov 09 23:53:45 Hey hows it going? Nov 09 23:54:01 Did you finish that app you were working on? Nov 09 23:54:06 Pretty well. Where have you been?! Nov 09 23:54:17 Nah, but it's going along all right Nov 09 23:54:31 I took some time offline and ended up moving Nov 09 23:54:59 New country? Or new town. Nov 09 23:55:05 From ca to co Nov 09 23:55:29 my friend wanted help for his startup so i moved out to denver Nov 09 23:56:19 Neato. Nov 09 23:58:22 TacticalJoke oh man, where is Giant Meteor !? Nov 09 23:58:58 Perhaps we can create it, with technology? :S Nov 10 00:00:49 I queried my seven-year-old niece for a reaction earlier: "So, Donald Trump is now the president of the US. How do you feel?" Nov 10 00:00:53 Her reply was "Who's that?". Nov 10 00:01:09 Sums it all up. Nov 10 00:01:58 heh, we'll she'll remember that name 40 years from now when climate change is wrecking the planet, and all fingers point back to this watershed moment Nov 10 00:01:59 lucky her Nov 10 00:02:31 "who's that" already appointed climate change skeptic to EPA transition team Nov 10 00:02:49 if we make it that far Nov 10 00:03:00 i foresee a nuclear holocaust Nov 10 00:03:05 god damn, i wonder Palin is going to be in his cabinet, lol energy god no Nov 10 00:03:37 Newt will be Secretary of State apparently, Guiliani AG Nov 10 00:03:39 ann coulter as his sostate Nov 10 00:04:29 I still can't believe Donald Trump is the president of the US. Nov 10 00:04:58 i can't believe anything with a pulse could lose to him Nov 10 00:05:09 They should've pitched Bernie. Nov 10 00:05:35 that was my pick. he'll be too old to run in 2020 though Nov 10 00:06:10 TacticalJoke first thing trump will do is get rid of all obama's clean energy stuff Nov 10 00:06:38 and those dipfucks mining coal will still lose their jobs to market forces and automation Nov 10 00:06:43 Is he gonna get rid of Obamacare too? (I don't follow US politics much.) Nov 10 00:06:53 yeah Nov 10 00:07:08 I think Bernie had plans for a public health service. :[ Nov 10 00:07:09 its republican prez, house, senate, and soon supreme court Nov 10 00:07:34 i think this will set us back decades Nov 10 00:08:56 Is this guy gonna be even worse than Bush? Nov 10 00:09:04 yea Nov 10 00:09:07 Probably so. Nov 10 00:09:21 in time magazine "President Obama Should Shut Down the NSA’s Mass Spying Before It’s Too Late" Nov 10 00:09:31 he doesn't have the rep framework, he is literally a loose canon and spectulation he suffering from onset of alziherms Nov 10 00:10:04 he can't be arsed into learning anything complicated except tax loopholes Nov 10 00:10:19 He'll be open to all manner of oligarch greed tho Nov 10 00:10:43 This is a dude who regularly didn't pay his subcontractors because he figured they couldn't afford to sue Nov 10 00:11:30 now, him and bernie and clinton are guilty of one thing though - saying they will bring manufacturing back. it ain't gonna happen Nov 10 00:11:35 ...but he _was_ the _least_ detestable lizard running for office. Nov 10 00:11:40 mfg cap is up all the time but its all automated Nov 10 00:12:04 even the coal mines, those moster trucks drive themselves, and the mine boars are becoming automated too Nov 10 00:12:43 pretty much whats eating up a lot of GDP is increased healthcare costs Nov 10 00:13:09 ...which is what a purely free market capitalist isn't about to fix. :/ Nov 10 00:13:59 g00s its impossible: jobs didn't leave this country nearly as much as they were rendered redundant through automation. Nov 10 00:14:00 well thats also the thing, trump has no coherent ideology (except make money) lol Nov 10 00:14:44 and you can't run a company like a state, or vice versa. having skill in one doesn't commute skill in the other Nov 10 00:15:00 He can't really run either, so there's that Nov 10 00:15:14 Maybe his inability to run a company means he can not get us all radioactive Nov 10 00:15:39 we just have to hope the technicians will not do as he commands if it comes to that Nov 10 00:16:30 Dagmar but even if he does nothing ... "personnel is policy'. the people he surrounded himself will advice, determine where to put efforts, etc Nov 10 00:16:53 He was keeping _great_ company during the run-up Nov 10 00:17:24 can you guys imagine if Sarah Palin became secretary of energy ? Nov 10 00:17:39 Ernest Moniz is smart as hell Nov 10 00:18:18 lasserix military coup :P Nov 10 00:19:20 i think i'm more worried about Paul Ryan though Nov 10 00:19:31 privatize everything! Nov 10 00:19:33 I'm jsut gonna keep my bugout bag freshened up for when he loses his head and demands the FBI "round up all those hackers and put them into camps" Nov 10 00:20:45 haha, it must suck if you are on trumps list - he has 5 people he's dedicated to ruining their lives, according to Branson Nov 10 00:20:54 yeah Dagmar don't be on that list ! Nov 10 00:21:13 WEll, I'm sure I'm not on Trump's list. The FBI, not so much Nov 10 00:21:28 now , i bet google is very upset with all of this. haha, the tech elite have been very cozy with obama Nov 10 00:21:34 google, fb, etc Nov 10 00:23:46 A good discussion about the U.S.A. presidential elections, at last! Nov 10 00:29:33 Already ended? Nov 10 00:30:01 That's unfair. I just took my popcorns. Nov 10 00:31:43 Whats the best way to subscribe and unsubscribe a specific Observable? http://stackoverflow.com/questions/40517689/continuously-subscribing-and-unsubscribing-from-observable-for-ble-scans Nov 10 00:32:51 continuously* Nov 10 00:51:14 Hey. I have a menu that has a radiobutton group, and it appears when I press a button on my app. How can I set a default checked value on this menu, but make sure the newly selected value persists if the user chooses something other than the default? Nov 10 00:51:27 (not sure if i'm making sense Nov 10 01:01:20 Faizan: .setChecked or similar on the contained radio buttons Nov 10 01:02:39 Also, RadioGroup has a .check() method with a param of the buttons id. Nov 10 01:03:50 I was doing that, but I must be doing something else wrong orbyt_, as it doesn't show a toast when a radio button is selected Nov 10 01:04:05 Do I need to register for onOptionsItemSelected? Nov 10 01:04:48 You can set a onChecked listener for the radio button. Nov 10 01:05:03 Ah okay gotcha Nov 10 01:05:34 Should something like the following not work: Nov 10 01:05:52 http://pastebin.com/XuKpqdAR Nov 10 01:06:02 where the ...'s are listeners for various buttons Nov 10 01:07:31 God damn it should be onMenuItemSelected Nov 10 01:17:11 I have no clue why this isn't working Nov 10 01:18:03 Faizan: Isn't is `popupMenu.setOnItemClickListener(foo);` or something? Nov 10 01:18:25 setOnMenuItemClickListener Nov 10 01:18:45 it's showing the toasts when the item is selected, but radio buttons arent being toggled Nov 10 01:19:05 http://pastebin.com/FrRrQ0Vc - that's what I'm doing right now **** ENDING LOGGING AT Thu Nov 10 03:00:00 2016