**** BEGIN LOGGING AT Mon Aug 01 02:59:58 2016 Aug 01 03:01:37 O maybe thats for the newer version of fastboot Aug 01 03:02:35 fastboot version af05c7354fe1-android Aug 01 03:03:43 O ok i have fastboot format as well as erase Aug 01 03:05:07 but none of them on this help menu give any option of a file system type ...so i am guessing its ext type if i go to adb shell could probably look into just wondered if anybody knew the default types used Aug 01 03:06:31 varys, in cm most are ext4, flash is vfat Aug 01 03:07:15 Cann't really test this well thats why i am asking because my devices only support adb not fastboot because fastboot devices shows nothing so i don't think this ZTE score has this capability Aug 01 03:07:25 on adb capablity Aug 01 03:07:59 on => only adb Aug 01 03:09:46 thats why i keep getting waiting for device for any fastboot command but adb commands work fine. Anybody know if the old fastboot ZTE score phone doesn't support fastboot because i am like 90% sure thats the issue Aug 01 03:11:38 What's the best way to quickly decompile my android app code to see what's actually going on inside? Mostly assking because some annotations that genrate code are confusing to me. Aug 01 03:14:32 http://www.javadecompilers.com/result?currentfile=android/support/v4/net Aug 01 03:14:38 works pretty well Aug 01 03:15:01 if you want to do it over web Aug 01 03:16:31 APKMultitool Aug 01 03:16:48 curious between flashall , flash:raw boot [ ] , and boot i am trying to figure out how these differ? Aug 01 03:17:02 for fastboot Aug 01 03:17:29 flashall is a script that does them all Aug 01 03:17:51 the others are for specific ones Aug 01 03:18:48 it say's its like flash boot + recovery + system but not sure how that relates to fastboot flash system mysystem.img Aug 01 03:19:12 like what is it internally doing different then just flashing different partitions Aug 01 03:19:51 flashall comes in the google factory images Aug 01 03:20:20 it also starts in adb Aug 01 03:21:16 it reboots to bootloader and flashes new bootloader, then reboots it again Aug 01 03:21:36 then flashes system data and userdata.img Aug 01 03:22:00 so its flashing 3 partitions Aug 01 03:22:25 or however many are included in the image from google Aug 01 03:22:41 plus it wipes each prior to flashing Aug 01 03:23:04 unless you edit the script Aug 01 03:23:28 ok gotcha so have to look into you said its a script you know the name? Aug 01 03:23:38 most folks just flash each on there own Aug 01 03:23:50 flashall.sh Aug 01 03:23:57 ya with fastboot flash ya i see that being the one most used Aug 01 03:24:07 of course, none of this applies if you have a random unknown shitty ancient non-Nexus device, as droid2 apparently does Aug 01 03:24:19 Curious the last one i have is flash:raw boot option Aug 01 03:25:13 wyrdtrtle: recommend not wasting your time trying to explain Aug 01 03:25:14 right and i cann't do this with any of my phones maybe an nook plus though but probably not Aug 01 03:25:59 in this case i cant answer anyway Aug 01 03:27:19 outside my current level of reading and googling knowledge Aug 01 03:28:01 and far far outside droid2's knowledge or ability to comprehend Aug 01 03:28:31 trying to follow some of these books and tuts is like reading war and peace in german using a translation book Aug 01 03:28:55 eh, there's always the source :) Aug 01 03:29:00 ok well the only major command i don't get now apart from understanding which partitions are what / what ones get flashed . Is the flash:raw boot it Aug 01 03:29:40 say's it creates a bootimage but looks to be like fastboot boot where you can just boot a kernel image , initrd.img from an sdcard Aug 01 03:29:43 i assume that is some form of non compressed format Aug 01 03:29:59 Basically telling the bootloader what kernel and ramdisk to boot Aug 01 03:30:52 to bad my devices dont support fastboot by default Aug 01 03:31:29 have to nuke the laf partition just to reach a broken fastboot implementation Aug 01 03:31:29 Basically my last question was between flash:raw boot and just boot. Aug 01 03:32:19 boot is an arguement ie fastboot boot myrecovery.img Aug 01 03:32:31 does flash:raw actually create the .img file but the what parition does it flash ? Aug 01 03:33:05 gonna have to googlefu it Aug 01 03:33:52 fastboot boot vmlinuz initrd.img doesn't take an image its telling the bootloader to boot a different kernel and ramdisk you so fu Aug 01 03:35:13 wyrdtrtle: seriously, why are you wasting your time? there's absolutely no reason to believe that droid2 has a device with fastboot support Aug 01 03:35:18 flash:raw is the one that seems to take the kernel and ramdisk image and create an .img then flash it to some partitions though was just wondering if you ever tried it or knew how it worked like the other ones Aug 01 03:35:24 ok later Aug 01 03:39:10 because it was a valid question, and i didnt know the answer. also cuz nobody else was talking in the channels i'm in and i was bored. Aug 01 03:40:16 basically is fast boot just allowing you to boot into a different os but flashraw actually creates the image and flashes it over the other os so it will permenantly change it Aug 01 03:40:41 fast boot => fastboot boot Aug 01 03:40:44 it allows both Aug 01 03:41:13 fastboot boot is only booting a one time thing not installing/reflashing like flash:raw boot does right? Aug 01 03:41:32 there is fastboot flash and fastboot boot Aug 01 03:41:37 yes exactly Aug 01 03:42:13 gotcha so if you want to boot one time or a couple of times to see if it works you uses fastboot boot ... Aug 01 03:42:15 if your flashing you must name the partition to flash Aug 01 03:42:31 ie fastboot flash recovery recovery.img Aug 01 03:43:00 If you want to install the kernel and initrd/ramdisk then fastboot flash:raw boot kernel ramdisk Aug 01 03:43:45 idk what that raw is, ive never had reason to use it Aug 01 03:44:20 well i think its to permanently install it in your phone killing what you had there to begin with Aug 01 03:44:34 flash does that Aug 01 03:44:38 But fastboot boot won't harm anything all you got to do is reboot Aug 01 03:45:08 yes fastboot flash partitions will do damage if not properly used Aug 01 03:45:16 correct, boot boots from the designated .img but does not flash the partition Aug 01 03:45:59 all of this is assuming the device even supports fastboot Aug 01 03:46:14 OT: can you help me with my english in a debug error? Aug 01 03:46:14 good not i am all set i kind of need a device with fastboot support i wondering if i root this phone if i can install a fastboot daemon on this thing so i can uses fastboot Aug 01 03:46:20 or if the oem covered fastboot with a dl mode Aug 01 03:48:09 not sure what the serverside services is for this fastboot command Aug 01 03:48:45 no clue Aug 01 03:49:08 maybe its part of the bootloader partition itself Aug 01 03:49:31 Or maybe its in most rom's of the phone some hidden place Aug 01 03:50:05 probably some stuff for ssh or vpn Aug 01 03:50:57 develCuy: try us Aug 01 03:52:20 ya well kind of need to know the flashboot services what partition and weather there is a custom service i can install with adb shell for it Aug 01 03:55:44 kind of wondering if udev is the issue in any way ? http://pastebin.com/VsRWVtPF Aug 01 03:57:48 no does seem so even for the adb command and even if i was under root Aug 01 03:58:05 Hi all, anyone familiar with google play services for real time multiplayer? I have a question and was hoping someone might be able to help Aug 01 03:58:26 this is all stupid so... just don't have the fastboot service so only thing is curious on if its downloadable / installable thru adb Aug 01 04:00:52 if your devices have a dl mode then fastboot is not installable Aug 01 04:01:32 it's probably there already, just overridden by the dl mode Aug 01 04:08:03 "Thrown database connection and execution errors immediately." Aug 01 04:08:11 Leeds: ^ Aug 01 04:09:44 do you mean something like "Database error, connection failed"? Aug 01 04:11:39 Leeds: yes, and if that phrase is well written Aug 01 04:15:32 develCuy: sorry, got to go, racing a typhoon.... Aug 01 04:30:54 ok i have id , adb shell busybox su , chmod 777 busybox but cann't seem to switch to a suid 0 Aug 01 04:31:18 O.o Aug 01 04:32:08 is there a login root password or something that would give me my root control of all the programs like chmod a busybox , ...etc etc because once i have suid 0 in my id and i can switch to that user i am good Aug 01 04:34:21 chmod u+s /bin/busybox gives me bad mode Aug 01 04:34:57 dd Aug 01 04:35:18 oh yeah, thats a peachy idea Aug 01 04:35:56 cant without a rooted shell anyway Aug 01 04:36:05 id gives me uid=2000(shell) gid=2000(shell) Aug 01 04:36:22 is there away to change uid=0 gid=0 Aug 01 04:38:50 busybox whoami gives me uid 2000 Aug 01 04:39:30 so my issue if there is no su , sudo commands how does one change the users id to uid 0 root Aug 01 04:40:37 is there like a su app that one installs that one can just run with a default password. In either case i would imagine a root hack would have to adduser that has uid 0 then login to it Aug 01 04:41:44 ANd its like chicken and egg to me to understand because to install these su and security command one has to be a privilage user and getting to privilage uses is not avalible how the heck can this be done with out modify the image and reflashing Aug 01 04:43:16 exploits Aug 01 04:44:16 which is not what this channels topic includes Aug 01 04:47:36 and if one does have the setuid or setgid commands or even if he does how can he even access them if he doesn't have privilages in the first place? Aug 01 04:47:58 magic Aug 01 04:53:38 well i cann't do busybox chmod 6777 default.prop Aug 01 04:54:10 so how could one ever do this gives me read only file system so maybe if i remount the parition Aug 01 04:54:15 as rwx Aug 01 04:54:37 but i don't think i have the mount command available Aug 01 04:54:45 with me suid 2000 Aug 01 04:55:01 droid2: Wrong channel Aug 01 04:56:17 ok all try somewhere else adduser doesn't work say;s i need to be root to Aug 01 05:59:18 anyone familiar with BLE? Aug 01 06:04:31 I'm sure there are, just ask your question. Aug 01 06:07:08 bleh Aug 01 06:25:43 is there any proper way to stop a monkeyrunner script? i'm just interrupting it now but when i do that it seems something stays running on phone because next time i run i get errors, once i interrupt that second session it will start working normally Aug 01 06:28:11 Can wifi p2p be used while connected to wifi? Aug 01 06:43:58 Hi, why cant i see local variables when using the jack compiler ? Aug 01 06:44:13 when i change back to regular one and 1.7 source compatibility it works Aug 01 06:44:20 using latest gradle plugin Aug 01 07:08:25 curious is there away to turn off this popup box to upgrade to nugget ? Aug 01 07:09:31 i know there is no turn off upgrades on this phone Aug 01 07:10:07 but i think it is a local notification type thing Aug 01 08:08:53 ktwo, buggy jack or incompetent debugger, I think the former, that's also why I didn't use jack after trying for a little while in my latest project start Aug 01 08:21:00 hey guys, the mobile applications that the banks provide - how safe is to use them ? for example.. the username and password that they store are locally stored right ? Aug 01 08:21:02 without any encryption ... aint it ? Aug 01 08:21:17 hi guys. Aug 01 08:21:45 guys, I have a strange problem when using atmoic operations in ndk. Aug 01 08:21:58 here is full description: http://stackoverflow.com/questions/38691269/atomic-operations-in-ndk Aug 01 08:22:08 any idea why this happens? Aug 01 08:31:49 Jonno_FTW: You still here? I've done some work with BLE Aug 01 08:39:01 How would I go about setting the alpha for the entire screen and not just the fragment? Aug 01 08:56:13 Could anyone give me advice on how to replicate the image with the blurred image background in this: http://www.uplabs.com/posts/runtastic-me-android-app Aug 01 09:03:20 is there any way to clear data for an app over adb? Aug 01 09:03:38 hello there. When I look for my app name on the play store, I see my app and the one of a competitor (the name is completely different). They don't have our app name in their descriptions or title. Can you help me to understand how this is possible - how the research works? Aug 01 09:04:17 looks like "pm clear" Aug 01 09:04:22 please note the the opposite is not true: if I search for the competitor app name, my app is not shown Aug 01 09:09:55 twilight: I think it's to do with keywords in your app's description along with the number of downloads your app has and the rating of the app Aug 01 09:10:26 I had a budget app aimed at students and eventually it reached #1 when I was searching for it Aug 01 09:11:39 ok markyosullivan, just a question to be clear: when you think about "keywords", you are talking about the only 3 free-text fields in the dashboard (short and complete description, title)? Aug 01 09:11:47 when you talk* Aug 01 09:14:02 Yeah Aug 01 09:14:25 I'm pretty sure it's similar to websites in terms of how they're ranked: keywords, views, etc Aug 01 09:14:47 except for apps it's: downloads / rating, keywords Aug 01 09:15:07 I think downloads / rating has a high impact but if you don't have the keywords in then it wont show up in search Aug 01 09:15:23 Like atm your app isn't number #1 but with more downloads and more good ratings, it'll rise to #1 Aug 01 09:16:15 ok markyosullivan thanks :) Aug 01 10:00:26 Anyone know how to do a custom shape to show percentage like the one over the image in this pic: http://www.uplabs.com/posts/runtastic-me-android-app Aug 01 10:13:05 markyosullivan: you could make your own view and draw the arc in onDraw Aug 01 10:16:43 markyosullivan: this should get you going http://stackoverflow.com/questions/11131954/how-to-draw-arc-between-two-points-on-the-canvas Aug 01 10:25:56 xorgate: How would that work for different sized screens? Would it not move the percentage ring to the wrong place? Aug 01 10:26:22 markyosullivan: if you scale it depending on the view's size you could be fine Aug 01 11:20:16 why is it so hard to position a switch Aug 01 11:29:26 The switch seems to always sit on the right hand side no matter what I change the gravity to Aug 01 11:29:45 Is this a bug or something? Aug 01 11:56:33 question about printing with android.print.* : How to let the user select a printer to print from? Aug 01 11:56:38 I've seen PrinterDiscoverySession but it seems that it's only for internal use, I cannot access it Aug 01 12:00:42 Hey. I lost my bookmarks, I remember I had a site providing loads of Android UI graphics, like the standard "log out" symbol etc, anyone know this or similar site? Aug 01 12:08:55 Bernzel, you mean google isn't your bookmark? :) Aug 01 12:09:13 https://www.materialui.co/icons maybe Aug 01 12:09:28 there's also the option of using the vector assets from the sdk Aug 01 12:09:53 https://developer.android.com/studio/write/vector-asset-studio.html Aug 01 12:22:31 Zharf, I couldn't find the correct search term :/ That first one looks good! Thanks Aug 01 12:22:46 does anybod know how to get files into the packagename/file folder? i like to put some config files and access them within my native activity Aug 01 12:23:24 yaakuro, this should do it: context.openFileOutput(fileName,Context.MODE_PRIVATE); Aug 01 12:26:09 ktwo: i mean i like to put a config file during packaging and access that later in that "files" folder Aug 01 12:26:57 maybe use the asset folder? Aug 01 12:43:21 yeah i know that but i was just wondering how one is supposed to use the "files" path Aug 01 12:57:28 should 'View' come in with 'import android.os.Bundle;'? Aug 01 12:59:46 yaakuro, you write your data to your "files" path and read it from there afterwards, you can't really prepackage it, you'll at least need to copy it from assets Aug 01 13:00:41 yaakuro, but note that assets are readonly, if you want to provide a premade file for modifiable configuration or somesuch you'll need to copy it from assets to files and then modify it Aug 01 13:01:30 I guess it comes in with android.view.View;, surprised the "Getting started" tutorial doesn't mention this must be added Aug 01 13:02:44 azv4, java imports are explicit if it doesn't have a * in it Aug 01 13:03:13 Zharf, unfortunately I don't understand what you are saying at this point Aug 01 13:03:30 I might lack some understanding of java/programming Aug 01 13:03:45 it only imports that one name, unless it's something like android.view.* in which case it would get all names from that package Aug 01 13:04:19 therefore android.os.Bundle only allows you to use Bundle Aug 01 13:04:30 and android.view.View only gives you View Aug 01 13:04:44 it's not that complicated really, and most of the time your IDE is smart enoguh to do it for you Aug 01 13:12:09 Zharf, ahh ok, I understand now, thx Aug 01 13:12:34 I could import android.view.* to pick up android.view.View Aug 01 13:56:42 surprised cap isnt on... Aug 01 14:04:59 Oh I get it, Freenode is dying Aug 01 14:05:56 just irccloud Aug 01 14:06:42 Oh yeah, I see. Forgot to check the hosts Aug 01 14:18:25 Back pressing on Android and restarting is bringing me to the "splashscreen" everytime, so to perserve "states" on where we left of in my app before it was put in the background I use SharedPreferences? Aug 01 14:26:05 Bernzel: depends on what you want to preserve Aug 01 14:26:49 alexfu, which Activity to return to when resuming the app Aug 01 14:28:51 Bernzel: you could save the class name to disk and then when the app launches the main activity, you could read the class name from disk and launch the desired activity Aug 01 14:29:13 i know this is android-dev but for mobile dev when building an app with html5 does anyone know the manifest permissions for camera access? Aug 01 14:29:15 really? Never heard of that before Aug 01 14:30:33 Bernzel: there's a Class.forName method where you can convert a string into a Class object, which you can use in startActivity Aug 01 14:31:08 there's no "standard" process for launching dynamic Activities Aug 01 14:31:25 alexfu, awesome. Gotta take a read on that. But for saving to disk I would still need to use Prefernces? Aug 01 14:31:46 SharedPreferences is probably the easiest way Aug 01 14:33:21 Backing out of all activities is supposed to lose state of where the user was Aug 01 14:33:27 Using home preserves state Aug 01 14:33:34 jamie_1: https://developer.android.com/reference/android/Manifest.permission.html Aug 01 14:34:32 SimonVT, Well I can't know what my users will do. So handling both occasions is to prefer Aug 01 14:34:40 thanks alexfu! im currently building the new camera app for the B2G os Aug 01 14:34:57 SimonVT, no wait, you're right Aug 01 14:35:01 i assume he/she wants to preserve which activity the user left off at through phone restarts Aug 01 14:35:16 Bernzel: So? If there are no activities in any task stack, the app is started from scratch Aug 01 14:35:32 Like with every other app, splash screen or not Aug 01 14:35:45 What's the safest way to call parent activity methods from a fragment Aug 01 14:35:51 yes I realised it now, it's common. Aug 01 14:36:08 markyosullivan: safest? Aug 01 14:36:17 best / safest :p Aug 01 14:36:22 callbacks Aug 01 14:36:37 I think I'm going to have a lot of interfaces in this project :D Aug 01 14:36:42 Is that common? Aug 01 14:37:16 is it common to have a lot of interfaces? Aug 01 14:37:20 Yeah Aug 01 14:38:53 depends on the project Aug 01 14:39:06 I'm also binding a service to a specific fragment, I guess I should bind the service to the activity instead and then create a callback method to return the service so methods from the service can be used within the fragments? Aug 01 14:39:41 wat Aug 01 14:43:31 Hello, I am using bluetooth on my application. I dont use the device selection screen, I automatically select a paired device. But i have an exception when i use sendBroadcast on the device : java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.bluetooth.devicepicker.action.DEVICE_SELECTED Aug 01 14:44:06 I have all the bluetooth permissions on my manifest Aug 01 14:44:30 But the code i am using was build on very old version of android Aug 01 14:47:19 Google dont allow us to intercept the device picker anymore? Aug 01 14:49:29 alexfu: yeah I'm confused about what I'm doing too Aug 01 14:50:56 mtR_: Have you got location service enabled? Aug 01 14:52:03 markyosullivan: nope Aug 01 14:53:37 mtR_: sounds like -- https://code.google.com/p/android/issues/detail?id=206211 Aug 01 14:54:03 Has anyone had an issue with the Android Emulator + Charles Proxy, not being able to DNS resolve ip addresses? Aug 01 14:54:54 I've been starting it on cli with the proxy option and the dns-server options, but no luck. The events show up in Charles proxy, but only under raw ip addresses Aug 01 14:54:57 emulator -verbose -netdelay none -netspeed full -avd Nexus_5X_API_23 -http-proxy 127.0.0.1:8888 -dns-server 8.8.4.4,8.8.8.8 Aug 01 14:54:58 mtR_: BLE doesn't work unless location is enabled Aug 01 14:55:03 alexfu: this sounds exactly like that yeah Aug 01 14:55:05 not sure if normal bluetooth is the same Aug 01 14:58:25 alexfu: Essentially I've got a service which handles all my bluetooth functions, such as reading some bluetooth characteristics. I call these methods from a Fragment currently but now I need a second fragment to access the service. Aug 01 14:59:10 markyosullivan: why do you have this in a service? Aug 01 14:59:24 Currently, the service is binded to the one fragment, I could do that again but it means I'd be binding the service, then unbinding it before binding it in the second fragment Aug 01 14:59:43 So the data can be sent from the service to the fragment Aug 01 15:00:00 and so the service can be reused by other fragments Aug 01 15:00:05 at least that's what I was hoping Aug 01 15:01:58 Originally I had all the bluetooth code within the fragment but there was like 800 lines of code Aug 01 15:02:32 markyosullivan: ive never dealt w/ bluetooth api, but after briefly reading the api docs on it, you should be handling communication between bluetooth and your Activity Aug 01 15:03:03 Why not between bluetooth and fragment? Aug 01 15:04:34 It's actually BLE API I'm using Aug 01 15:05:33 You probably want your Activity to talk to your Service, and then your Fragments talking to your Activity Aug 01 15:07:19 That's what I was thinking Aug 01 15:08:13 Bind the service to the activity, then make calls from the fragments to methods within the Activity which would allow me to do stuff within the service Aug 01 15:08:56 Might be a bit of a pain in the butt trying to restructure my app now, rolled out an alpha test last week to our customers Aug 01 15:17:12 hi Aug 01 15:17:37 guys, I have some problems using atomic operations in ndk, some strange problem. Aug 01 15:17:42 here it is : http://stackoverflow.com/questions/38691269/atomic-operations-in-ndk Aug 01 15:17:49 any idea why that happens? Aug 01 15:19:53 How do you within a fragment call methods from the parent activity? Aug 01 15:20:32 callbacks Aug 01 15:21:01 Newbie question: I open a splash screen activity, then prompt for login credentials, then open a main screen; Where is the logic to popup the login activity? In the splash screen? In the Main? Aug 01 15:23:22 go splashscreen to main, then if not logged in display login Aug 01 15:26:04 but I wouldn't want to see the main, until the login was successful, there an easy way to keep it from showing up until after the login? Aug 01 15:29:41 in onCreate and onResume check for credentials would be a start. Aug 01 15:30:06 k, thank you Aug 01 15:34:01 np. there's many ways to skin a cat. I like using AbstractAccountAuthenticator for sync apps Aug 01 15:41:19 I wrote a couple apps a few years ago, relearning everything now, going through some online classes I've found, trying to learn all I can quick as I can. What I've found is so intro though, that I haven't got to some basic guide for a logical flow... or how to see information contained in other activities. Thanks for mentioning AbstractAccountAuthenticator. Looks like just what I will need. Looking to avoid any reinventing of Aug 01 15:45:18 no need to reinvent. I use that service with gcm/fcm a lot. Aug 01 16:18:27 so it turns out firetv can turn on my tv, but it doesn't turn off the tv when it goes into standby, lame Aug 01 16:31:10 Zharf: thx a lot. ok, so when i need read/write access i have to copy it to the "files" folder, or use the external drive Aug 01 16:32:03 guess i have to write a propper archive class for my stuff Aug 01 16:32:09 internal isn't readable by the regular user, external is, so you can choose that way Aug 01 16:39:47 Zharf: do you know where the "assets" folder is stored? is that in the internal memory? Aug 01 16:40:46 Assets are in the apk, they're not extracted in installation Aug 01 16:41:51 that's also why you can't write to them and can only access them with assetmanager (or whatever it was called) Aug 01 16:42:05 sleep timenow though Aug 01 16:45:08 have a good night Aug 01 16:58:02 i have an x-file bug. I have a file /sdcard/mydir/token.dat which i store some kind of auth token shared between 2 apps. when i log out from the first app, it writes "" to that file and bail. I close the first app and go look at the file and can confirm that the file is empty. then I go with my second app which tries to read that file and... my token is back! Aug 01 16:58:11 then i go back with a file explorer and the file is no longer empty Aug 01 16:58:19 i'm never writing to that file with app 2... Aug 01 16:58:35 the same value that was there is now back Aug 01 17:10:25 hi guys Aug 01 17:10:42 if i want something to run every 5 seconds, like logging GPS location, do I need to have a long running service or is there another more reliable way? Aug 01 17:11:01 I use a webview to load a pdf resource and zoom in on it Aug 01 17:11:28 now, I would like to zoom not from the center but a precise region of the pdf Aug 01 17:11:35 how could I do it ? Aug 01 17:12:47 zoraj_ you're able to zoom in on it at the moment correct? Aug 01 17:13:00 parco, yes Aug 01 17:13:09 zoraj_ does the zoom function allow for variables like zoom center or anything? Aug 01 17:13:10 but I don't want to zoom the center Aug 01 17:13:15 but a specific region Aug 01 17:13:29 does the zoom function allow you to define your own origin of zoom? Aug 01 17:13:30 no Aug 01 17:13:36 or like an offset Aug 01 17:13:45 no Aug 01 17:14:07 any functions that allow you to convert to bitmap first? Aug 01 17:19:59 parco, do I have to convert it to bitmap ? Aug 01 17:20:39 hero_biz: if you build for armeabi-v7a does the problem go away? Aug 01 17:21:26 hero_biz: I seem to remember that armeabi has issues with some of the atomics Aug 01 17:21:42 zoraj_ im not familiar with webview functionality, but the canvas functions (which you can use with the bitmap) have the zoom functionality you're loooking for Aug 01 17:23:50 hello Aug 01 17:23:51 anyone know a lightweight IOC container for android ? Aug 01 17:35:02 Hello! Does anybody know how to make my view appear from top using translationX? The thing is, when I do that, parts of view that were initially out of container are gone Aug 01 17:35:20 you’d want to use translationY Aug 01 17:35:25 And the whole view should be gone at the start Aug 01 17:35:28 Y is the up and down. X is the left and right Aug 01 17:35:39 s73v3r: I know, that was a typo Aug 01 17:38:21 The layout is like this: http://pastebin.com/eSz8qthg Aug 01 17:39:14 There is a GestureDetector hooked up to both drawer_container and drawer_handle, and it moves both in its onScroll method Aug 01 17:39:47 But when I move handle down, nothing is appearing above Aug 01 17:40:47 When I changed drawer to be below handle, it moves with the handle perfectly, but a strip of it is missing Aug 01 17:40:57 At the bottom Aug 01 17:44:21 Hello. Is there a specific channel for google's firebase SDK or should I ask here? Aug 01 17:44:33 loredan13: where's the code thats doing the translation? Aug 01 17:45:08 alexfu: in the onScroll Aug 01 17:45:26 alexfu: drawerContainer.setTranslationY(e2.getRawY() - e1.getRawY() + initialTranslation); Aug 01 17:45:53 alexfu: GestureDetector.GestureListener.onScroll() that is Aug 01 17:46:42 alexfu: initialTranslation is the translationY of drawer_handle that I save in onDown Aug 01 17:48:51 loredan13: perhaps the reason why your view doesnt move the way you expect it to when it's on top is because the y value for e2 is negative when moving from top to bottom Aug 01 17:50:05 alexfu: They both move exactly as I expect them to, when I place drawer_container below drawer_handle it shows and moves Aug 01 17:50:54 alexfu: the drawer_container is just not drawing the parts that are coming from the edge for some reason Aug 01 17:52:00 not sure if i understand your problem Aug 01 17:53:16 alexfu: I can't see parts of view that were off screen Aug 01 18:01:32 Looking into DrawerLayout, there it seems to be done with offsetTopAndBottom Aug 01 18:02:48 Can someone tell me why onLayoutClicked is still working after I set android:clickable="false" and android:onClick="onLayoutClicked" on relative layout? Aug 01 18:09:39 Setting a click listener sets clickable to true Aug 01 18:09:39 because onClick sets clickable true Aug 01 18:09:48 and don't ever use onClick Aug 01 18:09:56 I was told that nexus and moto are the phones with the best developing capabilities like fastboot flashing an image , booting a custom kernel on an sdcard , rooting the phone,...etc.. But i am curious if there is a model thats prefered Aug 01 18:10:22 nexus Aug 01 18:10:43 any particular models or do all of them have the capabilities? Aug 01 18:10:57 last ones Aug 01 18:11:13 5x and 6p Aug 01 18:11:33 they receive the earliest system updates Aug 01 18:11:37 you mean latest ones with marshmallow and nugget os's on them Aug 01 18:12:08 yeah Aug 01 18:12:21 I think they still have marshmallow though Aug 01 18:12:33 officially Aug 01 18:12:43 how about a nexus with version 4 or3 Aug 01 18:12:53 the highest anything officially could have would be marshmallow Aug 01 18:13:19 well nuggets out for upgrade Aug 01 18:13:21 droid2: are you looking for app development? Cause just about anything will work for that Aug 01 18:13:37 What's the recommended way for an app to check for content updates at regular intervals? Does Android provide a mechanism for it? Aug 01 18:13:39 idealy you’d get yourself something like a Samsung or another device known to be trouble Aug 01 18:13:41 now i am looking at lower development then app's Aug 01 18:13:57 thats why i need fastboot , the ability to root the phone ,...etc Aug 01 18:14:06 honestly, then probably whatever you have Aug 01 18:14:35 things like nexus devices will have plenty of people doing roms for them. other devices, not so much Aug 01 18:15:23 so nexus is the developer phone of choice with all the features i want Aug 01 18:15:47 if ones is doing things lower then app's Aug 01 18:16:27 right there probably very high price right? figures Aug 01 18:17:27 not totally. no more than other devices in their class Aug 01 18:17:47 so, any knowledge on my case? I have a view that is completely out of screen by the layout, and when I change its translation it doesn't appear Aug 01 18:17:51 the making do some ridiculous commitment to a plan? Aug 01 18:18:34 loredan13: where is your animation code? Aug 01 18:19:00 s73v3r: GestureDetector.GestureListener.onScroll() Aug 01 18:19:10 and what are you doing in there? Aug 01 18:19:36 SimonVT: then what is the purpose of android:clickable if setting handler makes it true? Aug 01 18:19:57 s73v3r: drawerContainer.setTranslationY(e2.getRawY() - e1.getRawY() + initialTranslation); Aug 01 18:20:37 also, i’m not seeing how the layout makes it completely off screen Aug 01 18:20:53 s73v3r: http://pastebin.com/eSz8qthg Aug 01 18:21:04 purplex88: To indicate whether a View is clickable Aug 01 18:21:17 s73v3r: well, not off screen, but out of container Aug 01 18:21:18 yes, I saw that. I don’t see what is causing any of these views to be off screen Aug 01 18:21:31 paste your code for your activity/fragment Aug 01 18:22:22 s73v3r: the LinearLayout has layout_gravity="top" and FrameLayout has layout_above="@id/drawer_handle" Aug 01 18:22:27 SimonVT: if i set android:clickable=false the button won't be clickable like disabled? Aug 01 18:24:30 not clickable and disabled are different things Aug 01 18:25:01 Assuming you set a click listener anywhere, your android:clickable attribute is pretty much pointless Aug 01 18:25:21 Since whenever you set the click listener the attribute is set to true, as mentioned Aug 01 18:25:37 After that you can set it to false again if you want Aug 01 18:26:12 But why even have a click listener then Aug 01 18:26:16 s73v3r: here you go: http://pastebin.com/ZZLyTJqj Aug 01 18:26:40 s73v3r: I cut everything not relevant Aug 01 18:29:12 SimonVT: thats what i want to know what difference "android:clickable=false" makes? i could just not have a listener and then the button would still be useless even if its clickable or not Aug 01 18:29:48 have you tried logging the values inside your onScroll? Aug 01 18:31:22 s73v3r: no, why? Aug 01 18:31:34 that could point to some problems Aug 01 18:31:51 s73v3r: as you can see, I am moving two views identically, and one of them is definitely moving Aug 01 18:32:09 like I said, it could be a problem with your logic Aug 01 18:32:24 In your example it makes no difference Aug 01 18:32:31 For e.g. a CheckBox it makes a difference Aug 01 18:32:37 s73v3r: are you the LOLsummoners guy? Aug 01 18:32:52 no Aug 01 18:33:09 ah ok i forgot who then, it was one of the other guys I see in here regularly Aug 01 18:33:10 s73v3r: then why when I change layout_above for layout_below, drawer_container moves normally? Aug 01 18:33:16 i don’t know Aug 01 18:33:42 when you changed that, did you go back to your code and reverse the direction of your animation Aug 01 18:33:55 no, why? Aug 01 18:33:59 My N7 has developed a very noticeable bulge mid device g00s ... I sense the battery is trying to escape ... :/ Aug 01 18:34:17 well, i’m assuming that when you had layout_below, the animation was going the other direction. i could be wring Aug 01 18:34:18 capella get it out of the house ... Aug 01 18:34:20 wrong Aug 01 18:34:28 drop it down an elevator shaft? Aug 01 18:35:04 cool atom 1.9 out Aug 01 18:35:17 I am dragging the handle and container should follow. When container is below, it's fine, when container is above I can't see it Aug 01 18:35:25 you and ms :) Aug 01 18:35:51 'course, I'd work for them if they asked ;) Aug 01 18:36:32 All I'm asking is how to make the view to draw the parts that are appearing Aug 01 18:36:46 There is no other explanation Aug 01 18:36:49 and we’re trying to help you find the problem Aug 01 18:36:51 capella github atom lol, what ms O.o Aug 01 18:37:09 s73v3r: sorry Aug 01 18:37:51 Ah, mispoke, that's an Intel thing specifically ? Aug 01 18:38:02 lol Aug 01 18:38:18 * capella been out of corp. America too long :) Aug 01 18:38:21 https://atom.io Aug 01 18:38:40 *gah* acronym trouble Aug 01 18:41:13 I enabled the boundaries in developer settings and it looks like the view is just not there Aug 01 18:41:42 try logging the size of the view Aug 01 18:41:53 it may not be drawing at a visible size Aug 01 18:42:04 GMS 9.4.0 out Aug 01 18:42:50 s73v3r: 0 Aug 01 18:43:08 s73v3r: okay Aug 01 18:45:16 s73v3r: so I need to use FrameLayout instead and then setOffsetTopAndBottom to move it away Aug 01 18:45:26 sounds like a plan Aug 01 18:45:38 I probably have to do it in onMeasure though, right? Aug 01 18:45:54 i’m not sure. maybe? Aug 01 18:46:31 Or after Aug 01 18:46:48 Is there a method in activity that fires up after measuring? Aug 01 18:51:00 setTranslationY overrides offsetTopAndBottom Aug 01 18:51:46 Does anyone managed to use a cloud space for using an android studio project on several computers? Aug 01 19:08:12 so using android studio 2.2p6, 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 cmd line) fails Aug 01 19:08:16 gradle (/android studio) produces the error "No rule to make target 'blah'", where 'blah' is listed as 'blah.cpp' in LOCAL_SRC_FILES of an include $(MY_HOME)/../some_other_path/Android.mk ) Aug 01 19:08:28 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 Aug 01 19:08:31 it's called github, tommek Aug 01 19:08:34 per google search results, i've scoured all my Android.mk files for trailing spaces or lines ending with a backslash to no avail Aug 01 19:08:51 hee Aug 01 19:09:00 any ideas? Aug 01 19:09:20 pfn: I dont want to use git, I just want to sync my project Aug 01 19:09:30 What's the recommended way for an app to check for content updates at regular intervals? Does Android provide a mechanism for it? Aug 01 19:10:16 tommek now thats sounding more like dropbox or something Aug 01 19:11:03 g00s I've got an ownCloud instance, but Android Studio seems to store some computer related Info in the projectfolder Aug 01 19:11:07 tommek, sync using git Aug 01 19:11:19 anything else is a recipe for fail Aug 01 19:11:32 Smilex: JobScheduler (or whatever the support equivalent is called) is probably the way to do it these days Aug 01 19:12:53 SimonVT: Thanks Aug 01 19:15:07 should i use developer docs to learn about sockets and http? Aug 01 19:15:49 the book i have will make me follow their long project Aug 01 19:15:53 what would cause "Called unimplemented GLESv2 API" error on emulator using sdk24? Aug 01 19:18:02 if you're doing http you should almost certainly use an established library like okhttp Aug 01 19:18:23 because there are so many complex edge cases & it handles them and other integration Aug 01 19:19:04 generally it's a good idea to avoid doing raw socket io, but if you have to, it's more or less the same as socket io elsewhere in java. Just don't expect to be able to hold a socket open forever, and learn about services - you'll need to put your network io in one, instead of in the activity Aug 01 19:21:01 the network io shouldn’t be in the activity anyway Aug 01 19:22:49 what? Aug 01 19:23:35 dragorn: are you suggesting to use other libraries? Aug 01 19:23:58 they’re suggesting not to use raw sockets unless you absolutely have to Aug 01 19:24:30 use android's own http APIs Aug 01 19:24:41 you don't need to go third party Aug 01 19:24:50 if you're doing http over raw sockets, you're doing it wrong. Aug 01 19:25:07 how else will i handle client-server requests without those sockets? Aug 01 19:25:08 p14nd4: you don’t have to, but the 3rd party APIs make things much nicer Aug 01 19:25:40 https://developer.android.com/reference/java/net/HttpURLConnection.html Aug 01 19:25:53 oh ok no im not gonna parse http via sockets Aug 01 19:26:33 sockets for client-server connection Aug 01 19:26:37 s73v3r: and adds another unnecessary MB to your app size Aug 01 19:26:46 http for getting text in html Aug 01 19:26:52 not much, and if it’s making things easier, then it’s not unnecessary Aug 01 19:27:05 okhttp isn't 1mb Aug 01 19:27:18 p14nd4 httpurlconnection is implemented as okhttp recently anyhow, afaik ? Aug 01 19:27:39 retrofit is 83kb Aug 01 19:27:51 i was asking if android developer guides should be enough to learn what i need to know Aug 01 19:28:23 purplex88: for the most part, the sockets aren’t any different than regular java Aug 01 19:28:57 should i ever use java http and sockets? Aug 01 19:29:09 not unless you really have to Aug 01 19:29:25 if you have to ask, then the answer is almost assuredly no :) Aug 01 19:29:27 cus i don't know them in java already Aug 01 19:30:10 so i guess i'd just do them in android since thats what i'll be using Aug 01 19:30:47 like we said, there’s very little difference between regular java and android when it comes to sockets Aug 01 19:31:07 so any resource you’d use to learn sockets on java will be just fine for learning it on android Aug 01 19:31:42 purplex88 only thing that may be different is async networking (nio.2) Aug 01 19:32:02 the regular blocking java apis are the same though Aug 01 19:32:44 sockets on Android work exactly the same as in normal Java Aug 01 19:32:50 ah yes i saw "async task" Aug 01 19:33:08 essentially a background thread Aug 01 19:34:16 good so i might just learn them in java if android docs don't seem enough Aug 01 19:37:21 and for the most part, nio2 is somewhat rarely used Aug 01 19:40:32 i have two books, surprisingly one of them doesn't say anything about "sockets" in its 36 chapters and the other one has only one little section about socket programming on client-server model Aug 01 19:41:01 mostly youd use something higher level than sockets Aug 01 19:42:38 i have done sockets in c++ before building a tcp chat client Aug 01 19:42:45 this oracle tutorial seems to have some info, http://docs.oracle.com/javase/tutorial/networking/sockets/ Aug 01 19:43:11 but just like purplex88, I haven't done socket anything since c++ Aug 01 19:43:47 also tried to work on a packet sniffer Aug 01 19:43:48 had to look at something with websockets a while back but didn't retain any good info Aug 01 19:46:43 back then i used special book "networking with sockets" since general books contain very least information in that area Aug 01 19:51:10 one level of abstraction over sockets is 0mq Aug 01 19:51:18 anything you would have learned in Unix network programming. by Stevens would still be applicable Aug 01 19:51:20 they have a native java client Aug 01 20:17:30 Can you guys recommend any android development tutorials for a beginner? Aug 01 20:17:48 (Beginner in android developing, not a beginner in programming) Aug 01 20:18:12 I had good luck wiuth the nerd ranch books Aug 01 20:18:29 I didn't like how they were practically outdated by the time I finished with them Aug 01 20:18:48 Faizan, d.android.com Aug 01 20:19:47 ChopEmIntoHaggas: reading the same Aug 01 20:20:00 They're not free are they ChopEmIntoHaggas? Aug 01 20:20:17 technically, no Aug 01 20:21:32 check out "training" and "guides" at the link to get you started Aug 01 20:21:46 but I did like them for both android and ios Aug 01 20:22:45 guides and tutorials probably just as good though... most of the apps I've messed with I have been able to find sample code online to do whatever I want from the UI to gps coordinates Aug 01 20:22:54 Faizan: you will also find video tutorial on the same link Aug 01 20:23:30 purplex88: which link Aug 01 20:23:43 d.android.com Aug 01 20:23:49 ah okay Aug 01 20:24:18 If I can find it.. Aug 01 20:24:40 Ah got it thanks Aug 01 20:43:45 Should I be using timer's scheduleAtFixedRate or handler's postDelayed if I want to run something every 10 seconds or so? Aug 01 20:43:46 If you add a Basic activity, then add a Settings activity, then set the Basic as your main, and from there start the Settings... you can go all around in settings and the back arrow does what you expect, until you are done then clicking it doesn't bring you back to previous Basic activity. I found how to cause an action with the Back Arrow, but then it loses the function it provided before I messed with it. Aug 01 20:44:28 how to only have the new 'back arrow' functionality when returning to the previous activity? Aug 01 21:16:13 I'm trying to record audio from the microphone, and I'm using AudioRecord. After running the initializing like this: rec = new AudioRecord(MediaRecorder.AudioSource.MIC, 44100, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_FLOAT, 44100 * 2); I run rec.startRecording() I get an error: AudioRecord: AudioFlinger could not create record track, status: -1; AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with Aug 01 21:16:39 I have set permission: Aug 01 21:36:17 I'm using Netty to handle TCP sockets with Java's nio stuff. Since it's all asynchronous and non-blocking, would it be fine to have networking code on the main UI thread? Aug 01 21:36:35 I'm doing it now and there's no lag, but I had to change the thread policy before Android let me do it Aug 01 21:49:28 it would not be fine Aug 01 21:49:32 since you still have an event loop Aug 01 21:52:01 as in if I did it this way, I'd be running an event loop within Android's own Application event loop? (I'm new to Android development, diving in head first) Aug 01 21:53:01 I notice the more I am learning, the more there seems to be little things that have to be fixed that you wouldn't expect. for example, just added a list to a fragment, and when it scrolls the toolbar with its menu's slide up off the screen the about the height of the tab titles. Someone know the solution off-hand? Aug 01 21:54:15 Is there a specific channel for the multi-os-engine? Aug 01 22:05:52 ugh, is there any way to set the anr timeout on a firetv... Aug 01 23:06:11 sigkell let me know if you get that working, i don't see how netty async could work (afaik uses nio.2) Aug 01 23:15:42 I am looking for proof of concept devices that track range of motion for android. any assist would be appreciated Aug 01 23:16:21 or code that could be interesting to look at for said devices Aug 01 23:52:06 whats the go to for a decent native looking range bar (seekbar with a min and max)? Aug 02 00:15:06 hey how to show the view hierarchy in the AS layout inspector? it has disappeared Aug 02 00:18:25 bitkiller: what device are you connected to? try with an emulator if you aren't already running on one Aug 02 00:19:51 using a Moto X. it worked for the first capture some minutes ago Aug 02 00:20:23 now i only have the screen capture, not the hierarchy Aug 02 00:25:37 so, i'm considering trying my hand at mobile dev, coming from web dev, and wondering if anyone has any horror stories about react native.. seems like it'd be a great transition Aug 02 00:26:26 I don’t, but you might try asking in the #react-native channel. They might be able to point out potential pitfalls better than we can Aug 02 00:33:45 thought about that, but it felt like asking #emacs if emacs is a good editor Aug 02 00:34:00 found the properties. it was hidden in the right side. the hierarchy is probably hidden in the left, but i can't get the handle to unhide it Aug 02 00:34:17 also #react-native only has 6 people idling Aug 02 00:34:32 I wouldn’t phrase it like that. I guess I’d ask what are some legitimate downsides and things to watch out for Aug 02 00:34:42 yeah, that might make it harder Aug 02 00:35:31 wow got it Aug 02 00:41:16 hey , I can't seem to understand , what does uri argument do in a interface , like public onFragmentIntercationListener(Uri uri) Aug 02 01:38:57 that's up to you to decide Aug 02 01:39:50 if all you know is javascript, react native and Cordova are good avenues to trying out mobile development Aug 02 01:40:09 don't count on much of anything else Aug 02 01:42:51 hey invite me Aug 02 01:49:04 wkwkwkw cant ddos bot server busy wkwkwkwkwkw Aug 02 02:14:37 sigkell any luck ? Aug 02 02:36:37 is there no adb over wifi in 6.0.1? Aug 02 02:38:15 Jonno_FTW there is ... Aug 02 02:38:35 i get no option in settings Aug 02 02:39:27 i dont think i have an option either ... Aug 02 02:40:20 6.0.1 here, also no option for it Aug 02 02:40:31 looks like i need a 3rd party app Aug 02 02:41:50 you type adb wifi into your computer Aug 02 02:41:53 presto Aug 02 02:42:07 ok Aug 02 02:42:17 yeah need usb first, sadly ;) Aug 02 02:42:47 firetv has an option to use adb wifi in settings Aug 02 02:42:53 cyanogenmod does as well **** ENDING LOGGING AT Tue Aug 02 02:59:57 2016