**** BEGIN LOGGING AT Wed Mar 15 03:00:03 2017 Mar 15 03:07:56 I am using google Vision api example, for scanning qr codes, however, i need to tap the screen to get thr QR content, what can be done via code so that the QR content can be retrieved as soon as its detected? Mar 15 03:32:29 Hello all. I am using Ubuntu 16.04 LTS. I am looking to develop for Android, as well as possibly some non-Android Java applications. I have installed IntelliJ IDEA as my IDE, but noticed the ubiquitous use of Android Studio on the Android website. I know the two programs share a common base, but I was wondering, is there any downside to using IntelliJ IDEA for Android over Android Studio? Or should I Mar 15 03:32:31 just use 2 IDEs? Mar 15 03:33:51 why don't you use both and make a decision Mar 15 03:35:36 Well I didn't want to get too comfortable with an IDE, only to find out about the shortcomings after the fact.. so I just figured I'd ask Mar 15 03:37:37 d_ven0m: both are jetbrains based with as mentioned above yourself, share a common base Mar 15 03:39:35 Well what do you use yourself? Mar 15 03:40:18 IJ will be fine, you'll just get AS features a little "later". if that doesn't bother you, easy decision, esp if you do other java stuff Mar 15 03:41:44 Alright thanks Mar 15 03:52:12 hi all Mar 15 03:52:22 anyone here used servlets? Mar 15 03:52:39 send data from android app to a java servlet? Mar 15 03:54:50 i send data from android app to servlet (debugging my app) and i see i send data correct... but my servlet get only null values, why? Mar 15 03:56:47 http://pastebin.com/SJ7L7N89 any advice wich is wrong? Mar 15 05:34:18 can I override a style specifically set in a layout, somehow from another xml file? Mar 15 05:57:53 does anyone have google maps constantly open itself on their phone? Mar 15 06:03:46 What is a cheap aarch64 based android device? Mar 15 06:03:53 Any recommendations? Mar 15 06:37:00 yay nested databindings work as expected :) Mar 15 06:59:14 Hi Mar 15 07:00:26 I'd like to know if you can see the email addresses of the users who joined the beta program of your app through play store. Mar 15 07:00:52 can anyone tell me plz? Mar 15 07:06:27 * raoul11 thepooshes thepoosh Mar 15 07:06:51 about freakin time Mar 15 07:06:53 morning Mar 15 07:07:26 morning buddy Mar 15 07:07:32 plans for today? Mar 15 07:07:48 teaching Mar 15 07:07:53 about permissions and intents Mar 15 07:08:28 do you teach here or...? Mar 15 07:08:53 I teach in uni Mar 15 07:09:01 lurcher here Mar 15 07:09:14 k nice Mar 15 07:09:24 sup userro Mar 15 07:09:30 what are you up to? Mar 15 07:09:47 nothing much Mar 15 07:10:30 I came here to ask if developers can see the email addresses of users who join their beta program Mar 15 07:10:47 open beta? Mar 15 07:10:55 yeah Mar 15 07:11:11 nah, closed beta/alpha you need to add users manually with their emails Mar 15 07:11:56 ah thank you so much Mar 15 07:12:35 open beta afaik is just users who are "early adopters" Mar 15 07:14:21 userro https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Mar 15 07:14:30 userro: if you dont mind /not/ using play store, TestFairy does that Mar 15 07:14:33 based on e-mail list Mar 15 07:14:37 userro: no, unless you're doing it via a google group you have no access Mar 15 07:14:54 but then it's up to you to distribute it I think.. Mar 15 07:15:10 not sure if there's any sense in deploying the testfairy build, I don't think it collects e-mail Mar 15 07:15:23 though you could make your app do that and track via MixPanel or something Mar 15 07:19:06 ok good to know, thanks guys Mar 15 07:20:03 thepoosh do u do a presentation? Mar 15 07:25:16 raoul11: no, mostly talking and live coding Mar 15 07:25:25 I think maybe some slides will do the trick Mar 15 07:25:28 but I'm lazy Mar 15 07:25:39 you're not Mar 15 07:54:02 https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html Mar 15 07:54:05 jack is dead Mar 15 07:55:30 nooooo Mar 15 07:55:56 nyoro~n Mar 15 07:56:20 dat is just fuped Mar 15 07:59:20 jack fell down and broke his crown Mar 15 07:59:38 so basically they made jack off Mar 15 08:01:08 Ashiren: oh you Mar 15 08:01:23 "We hope the new plan will pave a smooth path for everybody to take advantage of Java 8 language features on Android. We'll share more details when we release the new support in Android Studio. " Mar 15 08:01:29 what does that even mean?! Mar 15 08:03:02 could mean anything Mar 15 08:03:28 if Google is like valve then well, "SOON (tm)" Mar 15 08:03:33 aka 4 years+ Mar 15 08:12:24 kevelbreh: it can also be Duke nukem soon Mar 15 08:12:30 which was 10 years Mar 15 08:12:33 or blizzard Mar 15 08:12:35 :S Mar 15 08:12:40 Ok, my test code cannot import the name Singleton from the same place my main code does. "javax.inject.Singleton" Mar 15 08:13:53 https://imgur.com/a/EqWZI Mar 15 08:14:24 are you using Dagger? Mar 15 08:15:42 thepoosh: atleast android 3 is something Mar 15 08:16:04 explodes: you need this in build.gradle: provided 'javax.annotation:jsr250-api:1.0' Mar 15 08:16:32 we do not talk about android 3 Mar 15 08:20:20 danix111: oh yes. thank you! Mar 15 08:20:49 danix111: should I be using the latest version? "1.0-20050927.133100" Mar 15 08:21:23 actually nevermind, that version doesnt work. Mar 15 08:21:26 I can use javax.inject.Singleton without adding extra dependencies.. Maybe your build tools just needs to be updated? Mar 15 08:21:31 also, this doesn't actually fix my problem. Mar 15 08:21:39 I assume you're behind since you still use apt Mar 15 08:21:58 using 25.0.2 :/ Mar 15 08:22:05 I no longer need apt? Mar 15 08:22:21 since gradle plugin 2.2 you can use annotationProcessor which is supported out of the box Mar 15 08:22:24 There's also a gradle plugin Mar 15 08:23:32 Leeds: you're alive? Mar 15 08:23:44 Huh. Mar 15 08:26:45 Ok, using annotationProcessor now. Mar 15 08:26:57 I still have the problem with importing Singleton, even with provided 'javax.annotation:jsr250-api:1.0' Mar 15 08:28:41 (I removed my repositories block from the top of build.gradle and the apk can build. I don't think that's normal) Mar 15 08:28:54 Building the test (not androidTest) build fails. Mar 15 08:33:58 You know what, it builds just fine. It is just AS complaining Mar 15 08:35:58 even after a restart Mar 15 08:38:23 i have created a custom Keyboardview class inside my activity but the app crashed because i cannot inflate the class from the layout xml Mar 15 08:38:52 how can i inflate that class correctly? Mar 15 08:39:35 do you have a (Context, AttributeSet) constructor? Mar 15 08:40:27 yes Mar 15 08:40:32 There's usually a stack trace that tells you why it can't be inflated Mar 15 08:41:01 Or rather, there is Mar 15 08:41:44 do you mean logcat? Mar 15 08:41:54 Yes Mar 15 08:42:02 That's where stack traces are printed by default Mar 15 08:42:13 Odd. My debug build is missing all classes from the dex list when decompiling. release build has them all. Mar 15 08:43:01 SimonVT: it says first that cannot inflate and after that the class cannot be found Mar 15 08:43:30 the right way to load in xml is packagename.activity.mycustomclass right? Mar 15 08:43:37 skin1980, if you post the whole stacktrace (at a site like gist.github.com or pastebin) it would be easier to help. Mar 15 08:43:49 some code might also be helpful Mar 15 08:45:45 https://gist.github.com/anonymous/0c2609423d06bb67567fdae0481bc292 Mar 15 08:45:50 here you go Mar 15 08:46:55 and com.skin1980.sparola.CustomKeyboardView exists? Mar 15 08:49:44 Syzygy: https://gist.github.com/anonymous/360a86182b1916e87932b47692e3b571 sorry..that was a test, this is the right stacktrace and yes, inside my Test activity there's that class Mar 15 08:51:12 https://gist.github.com/anonymous/48f1894ab915f7a2c3c72eaf2c67fa9f this is my custom keyboardview class Mar 15 08:52:06 It needs to be static if it's an inner class Mar 15 08:52:22 The last dot (.) probably also needs to be a $ to match the compiled class name Mar 15 08:52:31 You should just move it out into its own file Mar 15 08:53:56 SimonVT: I made in this way because if i make it in a separate class i can't load the assets because i miss the context Mar 15 08:55:04 All views have a Context Mar 15 08:55:15 The method to retrieve it will surprise you Mar 15 08:56:00 SimonVT: thank you for opening my eyes Mar 15 08:56:12 i know how to solve now Mar 15 08:57:25 SimonVT, that sounds so clickbaity... Mar 15 08:58:18 thepoosh: I am! Mar 15 08:58:24 Everyone can use a little buzzfeed in their life Mar 15 08:59:52 SimonVT: nobody needs buzzfeed in their lives Mar 15 09:00:01 what are you a manspreader? Mar 15 09:00:17 everyone needs some h3h3 in their life! Mar 15 09:05:18 thepoosh: buzzkick Mar 15 09:05:22 not buzzfeed Mar 15 09:05:23 http://imgur.com/a/RM4Ir So this is how my decompiled apks look like. The debug version is missing pretty much all classes (but the run that created that build still installed the app on the phone). The release build is working. Mar 15 09:05:25 ^___^ Mar 15 09:06:15 Syzygy: run your debug on a real phone Mar 15 09:06:19 I am Mar 15 09:06:28 and the debug.apk still shows this? Mar 15 09:06:33 yes Mar 15 09:06:55 obviously it won't work when installing from the apk directly. but android studio don't care Mar 15 09:07:05 android studio dont gaf Mar 15 09:07:30 usually fixed for me when i am running debug on real phone Mar 15 09:07:39 but direct run, not install Mar 15 09:09:33 Syzygy: what the fuck happened there? Mar 15 09:09:40 where is all the java? Mar 15 09:09:45 I wish i knew Mar 15 09:09:46 is that an update version? Mar 15 09:09:54 it should be a full build Mar 15 09:10:12 i uninstalled the app from the phone, pressed the trusty old run button in android studio Mar 15 09:10:38 and it created that abomination. the phone still installed and executed the app Mar 15 09:10:56 but when i install from the apk directly it can't instantiate the app because the application class is missing Mar 15 09:11:37 woot Mar 15 09:11:53 Syzygy: what is your monitor Mar 15 09:12:17 squ, i'm on a notebook. XPS15 9560 Mar 15 09:13:31 what is desktop resolution Mar 15 09:13:41 4k Mar 15 09:15:13 3840x2160 Mar 15 09:16:28 noice Mar 15 09:16:37 Syzygy, proguard enabled? Mar 15 09:16:55 Mavrik, on the build that is working, yes. the debug build has proguard disabled. Mar 15 09:17:33 Syzygy, this might also be an Instant Run issue Mar 15 09:18:03 That was my assumption as well, but I uninstalled the app from the phone and pressed the run button, so it shouldn't me Mar 15 09:20:15 If it works it's likely because of instant run Mar 15 09:20:23 weird and seemingly wrong, I added "testCompile 'com.google.dagger:dagger:2.9'" and I get my Singleton imports Mar 15 09:20:32 I shouldn't have to do that, right? Mar 15 09:22:09 Regardless, it is working. Next issue is that AS is giving me red for an annotationProcessor 'dagger' generated class: https://imgur.com/a/4UESb Mar 15 09:22:13 SimonVT, but where does it take the rest of the app from? I made sure to uninstall it from the phone and I cleaned the project. Mar 15 09:22:30 This code works and compiles, but AS doesn't recognize the class. Mar 15 09:22:40 In your apps internal storage Mar 15 09:22:48 Besides, doesn't the newest AS version have a dedicated instant run button? I'm not clicking that. Mar 15 09:23:14 Lots of dex files or something like that, faster pushing of changes Mar 15 09:23:29 I'll switch phone. Mar 15 09:24:13 Hello, yesterday I successfully compiled the Goldfish kernel (arm architecture), to be run on Android emulator. Now I am trying to run it. I follow the instructions here: https://yaapb.wordpress.com/2012/09/24/how-to-compile-the-kernel-for-the-arm-emulator/ and here: http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator?rq=, but the emulator complains there is no AVD specified. Mar 15 09:24:24 Now I am unable to start the AVD manager from Android Studio. Anybody knows? Mar 15 09:25:06 SimonVT, is that internal storage on my PC? where can I clear that? Mar 15 09:25:43 Enrico_Menotti: try #android or #android-root, this channel is just for app dev Mar 15 09:25:49 Syzygy: No, on your device Mar 15 09:26:00 What are you even trying to do? Why do you care what AS does? Mar 15 09:26:30 SimonVT: I know, but maybe here somebody know about AS. It's not an issue limited to kernels. I just need an AVD. Mar 15 09:26:48 Well, off topic :) Please try other forums Mar 15 09:27:10 is there a known bug with relativelayout and android 7? Mar 15 09:27:30 SimonVT: Ok, thank you anyway. I already asked on #android-root as well. Mar 15 09:28:08 I'm expecting odd behaviours on android 7 Mar 15 09:28:37 Shouldn't that get cleared when I uninstall the app? I know that there's allowBackups in the android manifest but I thought that was for shared preferences and not for dex lists and compiled classes. (plus it's set to false) Mar 15 09:28:39 gdrc, not that I know of Mar 15 09:29:25 Sure, it gets cleared when uninstalling Mar 15 09:29:47 Doesn't stop AS from filling it again Mar 15 09:33:10 Hi, I have made a measuring tool (Android Service) for testing purposes which uses the /proc/stat info to get CPU usage. I was trying to access the stat of a specific proces via /proc/{pid}/stat but this is not possible in Android N since one process has no permission to access info about other process. Is there a way to get over this? Notice that the other process/app that I want to measure is an app that I have the source co Mar 15 09:33:44 is it rooted Mar 15 09:33:49 SimonVT, but why would it, even after cleaning? It seems like Build > Build APK solved the problem for now. Mar 15 09:34:12 Why would it not, if it expects to use instant run for future changes? Mar 15 09:36:49 Because it instant run only works for apps that are already installed, the app was uninstalled and the project was cleaned so it shouldn't have a place to instant run from and they split instant run into a separate run option because it had so many issues. Mar 15 09:37:31 At least to my knowledge Mar 15 09:39:03 It needs to do all the heavy lifting up front for instant run to be faster for subsequent changes Mar 15 09:41:35 I don't know how the normal run works with instant run enabled. Nothing obvious stopping it from using the same files as instant run tho Mar 15 09:45:04 Well... such an odd thing. Maybe my approach for getting debug builds has been wrong all along? I do a regular run (shift + f10) with the configuration I need and then take the file from build/outputs/apk Mar 15 09:45:34 Does everyone else actually press Build > Build APK? Mar 15 09:46:02 I do gradlew clean assembleDebug Mar 15 09:46:10 Guaranteed no AS magic Mar 15 09:46:26 i just click run Mar 15 09:46:35 shift + f10 Mar 15 09:46:35 never found 'clean' to be necessary alongside 'assembleDebug' Mar 15 09:47:15 well, technically what I just did the same thing, except through the UI. Mar 15 09:47:17 It shouldn't be necessary, but every once in a while they fix a bug where changes aren't detected correctly Mar 15 09:47:29 So I just do it Mar 15 09:48:08 Not very often I need the apk tho.. Mar 15 09:50:56 Syzygy why did u analyze the apk? worried bout the 65k dex? Mar 15 09:51:37 raoul11, I was worried because all classes were missing from the dex Mar 15 09:51:52 o Mar 15 09:52:27 plus the build with minifyenabled false was smaller than the one with minifyenabled true. Mar 15 09:52:53 and crashed with an error that the class was missing, something that shouldn Mar 15 09:53:09 shouldn't have been the case according to what i could see in the files. Mar 15 10:01:34 any help? Mar 15 10:35:27 Hi everyone Mar 15 10:36:41 I am currently trying to build an ndk samples (hello-jni from here https://github.com/googlesamples/android-ndk ) with a fresh android studio install (2.3) and gradle fails to sync :( Mar 15 10:37:24 in the message view I get : Mar 15 10:37:37 Failed to parse android ndk revision Mar 15 10:38:23 I wonder what I can do to fix this Mar 15 10:38:29 any idea ? Mar 15 10:40:30 AIndroid, you might want to try #android-root Mar 15 10:41:20 guite, most here use java, so it might take a while until someone can help you. Mar 15 10:41:33 Syzygy: oh OK Mar 15 10:41:38 Syzygy: thanks :) Mar 15 10:41:44 no problem. Mar 15 10:41:49 Syzygy: is there a dedicated ndk channel ? Mar 15 10:42:01 I'm not aware of any. Mar 15 10:43:08 Syzygy: I think I still have a question :) Mar 15 10:43:22 Syzygy: does the SDK come with android studio Mar 15 10:43:23 ? Mar 15 10:43:32 or should it be downloaded separately Mar 15 10:44:10 I installed android studio on a previous install Mar 15 10:44:27 The SDK comes with AS, I believe the NDK is still a separate install Mar 15 10:44:46 somehow, I feel that my SDK is messed up Mar 15 10:46:22 Hi all,Does somebody know what I can use in obj c to port this code? http://pastebin.com/W6j8EEBA Mar 15 10:46:27 Make sure everything is up to date :) Mar 15 10:47:11 guite, try updating everything through the sdk manager that comes with android studio. Mar 15 10:49:22 wrong room.. srry guys Mar 15 10:50:05 Syzygy: I suppressed the Sdk directory… I couldn’t update anythig :( Mar 15 10:50:14 guys, is anyone having trouble with logging in genymotion? Mar 15 10:50:36 Syzygy: I removed everything now, I will try to do everything from the beginning Mar 15 10:50:40 gdrc, website or software? Mar 15 10:50:46 Syzygy: thanks anyway :) Mar 15 10:50:47 software Mar 15 10:51:28 no problem, good luck Mar 15 11:06:43 guite, I've got the same issue :/ reporting it to the dev team (FYI I work there). will let you know Mar 15 11:08:39 radixx-: sad :( Mar 15 11:08:42 radixx-: but thanks Mar 15 11:09:48 Hi, what does the unit 'f' stand for? Proofed to be hard to google :). It seems to be used for stuff that is between 0 and 1 Mar 15 11:09:59 float? Mar 15 11:10:18 fathom? Mar 15 11:10:27 why does it have to be labled as such Roughy ? Mar 15 11:11:01 anotheryou: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html Mar 15 11:11:35 SimonVT, thanks, I understand what a float is, but not why I have to label it as such to use e.g. https://developer.android.com/reference/android/view/animation/ScaleAnimation.html Mar 15 11:12:04 Because the java language spec says you have to Mar 15 11:12:41 1 is an int, 1.0 is a double, 1.0f is a float. If you type 1.0 it will ask you to be more specific, since converting a double to a float usually means it will be a less accurate number Mar 15 11:12:52 1f is also float Mar 15 11:12:56 SimonVT, ah, so every time I declare a float I should use f... ok. New to noobish me :) Mar 15 11:13:39 Also something to consider when combining (adding, subtracting, multiplying etc), as if you combine 1.5(float) and 1 (int) the wrong way, the final result (2.5) will get cast to an int and end up as 2 Mar 15 11:13:48 Roughy, so if a function requires float and I juts put `0`anyways, should I write 0f ? Mar 15 11:13:59 also there is L for long Mar 15 11:14:02 if it complains otherwise, yes. Mar 15 11:14:16 if you type long x = 5000000000 it will be error Mar 15 11:14:17 Roughy, doesn't :) but who knows with all the api levels Mar 15 11:14:37 thanks all of you :) Mar 15 11:14:44 Often a good idea to be explicit, especially when doing math Mar 15 11:14:46 No surprises Mar 15 11:14:52 I make a habit out of doing so after spending a full afternoon tracking down an unintended cast to int :( Mar 15 11:21:46 is elevation relative or absolute? (I mean, if I nest elevated objects, does it stack elevation?) Mar 15 11:25:03 I'm 80% sure it's absolute, but can't find a confirmation. Mar 15 11:25:22 hehe ok, was about to think the opposite Mar 15 11:26:16 at least for layering, currently trying to do an animation that's below app bar, but above bottom navigation :/ Mar 15 11:26:38 (material guidelines though want bottom nav to be more elevated than app bar...) Mar 15 11:29:03 anotheryou, https://storage.googleapis.com/material-design/publish/material_v_10/assets/0Bzhp5Z4wHba3VG9SaVpNbkpHb2s/whatismaterial_3d_elevation2.png Mar 15 11:29:24 adq, oh sweet. Mar 15 11:29:27 it should be above appbar, according to their design guideline Mar 15 11:29:55 i had issue with snackbar and bottomview elevation last week.. snackbar was popping behind the bottomview (default elevation is 16dp there) Mar 15 11:29:57 so annoying Mar 15 11:30:16 I'm trying to make a fly-to-basket animation Mar 15 11:30:19 and a hell to make a custombehavior to make the bottomview move like a fab when snackbar pops Mar 15 11:30:26 because bottomview already has its own behavior... Mar 15 11:31:06 I can't yet get above the bottom bar, but it's all a bit confusing here :) maybe I'll figure it out Mar 15 11:32:00 if i change elevation in an animation, does it change layering? like clipping through other stuff? Mar 15 11:32:51 no idea, try it Mar 15 11:51:50 I have a view representing a custom soft keyboard. I'd like to slide this fake keyboard up when I create an alert dialog. Anyone know what the best way to go about this might be? I think i need to grab a reference to the AlertDialog's root view, because if I just add a framelayout to my custom dialog view I think it'll try to display it within the confines of the dialog. If i add the keyboard to the activity that's Mar 15 11:51:50 spawning the dialog it'll be covered by the modal background. Mar 15 11:53:51 so i think i want to wrap the whole dialog view in a Framelayout, then add my keyboard view to that. But Im not sure that's possible Mar 15 11:53:59 Hi. Where do I fail in that code? https://paste.ubuntu.com/24182245/ Mar 15 11:54:40 angel-swe, you have a typo on line 5 Mar 15 11:54:46 lengt Mar 15 11:56:16 oh... thx DrAwesomeClaws Mar 15 11:56:21 np Mar 15 11:59:05 I suppose reading compiler output is a lost art Mar 15 12:00:02 im going on almost 5 days of trying to implement something i thought would take 5 minutes Mar 15 12:03:56 actually, here's a less vague question that might help me. When I create a custom alert dialog, and call setView on the builder... it eventually puts the view that i pass into some parent alert dialog view. Anyone know where i can look at the xml for that default parent view? Mar 15 12:04:30 im assuming it's in the Sdk/platforms/.../data/res/... somewhere Mar 15 12:04:54 just call getParent() on the alert dialog view? Mar 15 12:06:06 Roughy, yeah, that's kind of my plan. then hopefully I can find a way to modify the parent view to be able to display my view on it. Thanks, i think i might be on the right track now Mar 15 12:27:48 DrAwesomeClaws: For reference, here is what dumping the view hierachy from the alertdialog gets me: https://hastebin.com/awakenerel.pl Mar 15 12:29:53 Oh hey, I thought the layout inspector wouldn't let you dump dialogs, but you just have to select the second activity. derp Mar 15 12:32:35 You can just use Dialog if you don't want all the AlertDialog extras Mar 15 12:48:47 I want to write an app for finding Duplicate Contacts in mobile phones. Is there a tutorial that I can check how they do? Mar 15 12:49:06 I mean how to tell java to find contacts and duplicated numbers in it? Mar 15 12:50:14 Get list of contacts, use hashsmap to look for duplicate names/numbers etc Mar 15 12:50:19 Gradle 2.3 is magically not creating test reports Mar 15 12:50:24 why do you want to do that? google contacts can already do it Mar 15 12:51:04 Let's just change it. People need to get paid and busy work is the reason we automate (_-_) come on lol Mar 15 12:51:33 TheSchaf, google contacts doesn't have an app for mobiles and so many people not synced their contact list with google contacts... Mar 15 12:52:23 TheSchaf, Also I want to do small apps as I am very new with java codin.g Mar 15 12:52:49 Roughy, Thank you... Thats the answer I was looking for. Mar 15 12:54:05 how would I add a translateZ or elevation animation to my existing AnimationSet? Mar 15 12:57:35 Roughy, thanks dude. Mar 15 13:00:24 anotheryou: By using the newer AnimatorSet and a ViewPropertyAnimator Mar 15 13:00:58 android studio 2.4 <3 Mar 15 13:01:14 2.4 < 3... true Mar 15 13:01:23 haha Mar 15 13:01:35 SimonVT, ah, Animato*r*Set, I'll look that up. So I should/have to refactor the old Anmiations to ViewPropertyAnimatior too? Mar 15 13:02:23 You should, yeah Mar 15 13:03:02 Unless you need to do something on all animations just do view.animate().whatever().whatever2() ... and skip AnimatorSet Mar 15 13:03:06 ok. and as usual ViewPropertyAnimatorCompat if i target older devices too I guess Mar 15 13:03:45 SimonVT, ah, that's easy to understand, thanks Mar 15 13:04:10 but I fear timings need to differ (fast elevation, than some moving) Mar 15 13:05:07 Then you probably need ObjectAnimator Mar 15 13:05:19 did read about android dev switching to native java 8? Mar 15 13:09:23 SimonVT, because it does keyframes? Mar 15 13:09:46 Because I don't believe you can delay just parts of a ViewPropertyAnimator Mar 15 13:10:10 ah ok Mar 15 13:10:31 maybe I can get by with 2 animations and some smoothing Mar 15 13:37:24 * raoul11 thepooshes thepoosh Mar 15 13:37:26 status? Mar 15 13:41:48 Do anyone know how I can fix this error: http://imgur.com/a/Nx85n ? I have no clue :S Mar 15 13:44:51 Importing wrong SocketFactory Mar 15 13:46:30 Roughy: This is the code: http://pastebin.com/8STEBTHk what package imports should it be instead? Mar 15 13:49:36 This code doesn't match what you pasted earlier Mar 15 13:50:19 Roughy: I changed it back to what it should be Mar 15 13:50:33 Same error Mar 15 13:53:46 I solved it now when I changed import Roughy but got this error: http://imgur.com/a/6V8W1 Mar 15 13:53:52 Is that also because of import? Mar 15 13:54:25 everything you're using is deprecated, not even included in the libraries I have Mar 15 13:54:47 which is probably why they're crossed-out on your end Mar 15 13:55:03 hmm alright, but I seem to need to use this even though they are derecated. Because when I try something else, that's also deprecated Mar 15 13:55:20 If you're following a tutorial, you might want to find something a little more up-to-date Mar 15 13:56:38 yeah I have googled and this is all I can find Mar 15 13:56:51 in the above, you want to return HttpClient from org.apache.http.impl.client.defaulthttpclient Mar 15 13:57:37 er wait, I got that the wrong way around Mar 15 13:57:59 DefaultHttpClient does not return a HttpClient, in any case Mar 15 13:58:43 presumably DefaultHttpClient is supposed to extned HttpClient, but either it doesn't, or it extends from a HttpClient in a different package Mar 15 13:58:57 alright so I should return an HttpClient? Mar 15 13:59:41 wait a minute, that's your own class Mar 15 14:00:29 HttpClient is the class you are in, ie the class you are writing Mar 15 14:01:05 yeah Mar 15 14:01:22 it does not appear to have a DefaultHttpClient( ... ) constructor, so it looks for a method in a different class that does Mar 15 14:01:30 I used the third post here: http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android Mar 15 14:02:14 public class MyHttpClient extends DefaultHttpClient Mar 15 14:02:31 while yours is currently Mar 15 14:02:32 public class HttpClient Mar 15 14:02:49 Is it possible to have the mandatory AndroidStudio/gradle stack run flawlessly TestNG unit tests (as unit tests, not as in-device or in-emulator tests) or is any of the underlying tools stuck in 2003? Mar 15 14:03:13 wait, am I looking at the right answer here Mar 15 14:03:20 ah, there it is Mar 15 14:03:42 http://stackoverflow.com/a/23697732/2312367 Mar 15 14:03:43 this one, right? Mar 15 14:04:06 anyone here worked with android app and java servlet? http://pastebin.com/SJ7L7N89 when i send the values from my app android (send values) but java servlet receive all null values why: http://pastebin.com/SJ7L7N89 wich is wrong? Mar 15 14:04:42 Zajt: You are naming your class the same as a different class that you want to return. The method thinks you want to return an instance of this class, when you actually want to return a completely different HttpClient class Mar 15 14:05:57 yes Roughy that's the answer I looked at Mar 15 14:06:08 oh alright, I should rename my class Mar 15 14:07:43 But same error Mar 15 14:08:08 Roughy any advice? Mar 15 14:08:30 jak2000: Sorry, that's not something I am at all familiar with. Mar 15 14:09:49 Zajt: Exact same error? That shouldn't even by physically possible Mar 15 14:10:23 Unless in renaming the class you also renamed the return class from the method, instead of leaving it as HttpClient Mar 15 14:11:08 Roughy: http://imgur.com/a/5DxCF Mar 15 14:11:20 which is exactly what you have done Mar 15 14:11:38 to return new myClient? Mar 15 14:11:55 leave everything as it is, change "public static myClient getHttpClient" to "public static HttpClient getHttpClient" Mar 15 14:13:32 Also, don't use HttpClient at all. Use HttpUrlConnection or a better client like OkHttp. Mar 15 14:19:10 alrigh that solved it Roughy :) Mar 15 14:19:19 \o/ Mar 15 14:21:21 Roughy thanks Mar 15 14:22:01 Could anyone give me a sample jni project that support sdk 10 ? Mar 15 14:22:08 (somewhere on github) Mar 15 14:22:21 I tried to find some but doesn’t seem easy Mar 15 14:27:45 Oh sorry, it seems creating jni project is not that complicated :) Mar 15 14:28:01 (ie. just add c++ support when creating the project) Mar 15 14:28:05 :o Mar 15 14:29:51 http://logs.nslu2-linux.org/livelogs/android-dev/ we're being watched since years Mar 15 14:30:37 would be nice if one of the OPs could detect and get rid of this bot, or maybe advertise the fact we are publicly logged (cf freenode guidelines) Mar 15 14:34:05 adq, woah Mar 15 14:35:11 hmm? so something like echelog is illegal here? Mar 15 14:35:46 oshit Mar 15 14:36:02 i don't think it's illegal, it's just very bad to be logged without being aware of, of course i'm not that naive a popular channel like that have a high proba to be logged Mar 15 14:36:39 Ashiren, "illegal" - see Freenode guidelines :) Mar 15 14:37:13 it is not illegal Mar 15 14:37:17 freenode just does not recommend it Mar 15 14:39:00 but it could be anyone here Mar 15 14:39:09 how would ops know it Mar 15 14:39:32 HI anyone here know where I can find an example on 1to1 chat with retrofit2 ? :) Mar 15 14:43:45 Ashiren, you just have to join few channels listed in the link above and start correlating Mar 15 14:43:57 s/correlating/intersecting/ Mar 15 14:44:22 i could do it but it's not my job and this would have to be verified prior to any action taken to avoid framing ;) Mar 15 14:44:55 Jonathan-, you won't find example specifically for what you ask Mar 15 14:44:56 does not seem to me like it is against the freenode or channel rules **** BEGIN LOGGING AT Wed Mar 15 16:23:06 2017 Mar 15 16:23:12 I don't see an anpty one but that shouldnt be a problem.. weird Mar 15 16:23:23 Restart AS, do a clean build Mar 15 16:23:32 Make sure the latest changes are actually being pushed to the device Mar 15 16:23:33 xela use a recyclerview or viewpager Mar 15 16:23:37 set the page cache Mar 15 16:23:42 use Picasso to load the images, or Glide Mar 15 16:23:45 The code you've pasted so far would not cause this issue Mar 15 16:23:53 avoid keeping them in memory Mar 15 16:24:00 Thank you Mar 15 16:24:31 Also make sure you're not just reading an old stack trace Mar 15 16:24:31 I did a CLEAN BUILD let me restart ADT Mar 15 16:24:36 np. If you run into OOM it's likely your images are too large (by dimension) Mar 15 16:52:52 Hi! Mar 15 16:53:18 I get an error value of 2 when building with Android NDK, what can be the cause? Mar 15 16:59:03 hahhahahahh... got it Roughy and Tricknology : > back ground service was running and there is check in place if shower is OFF (from main unit) then make this null - so it was getting null before it got instance Mar 15 16:59:16 D: Mar 15 16:59:58 this manages to happen in teh split second after it gets instanced? jesus Mar 15 17:00:13 that there is called a race condition Mar 15 17:01:03 you might want to make those two lines synchronous Mar 15 17:02:20 i.e. lock until checkIsOff() executes Mar 15 17:04:42 Tricknology: Thanks.. Mar 15 17:04:53 np Mar 15 17:05:09 there are other ways to do it too.. if you can share a Semaphore it's probably easiest Mar 15 17:06:08 Semaphore semaphore = new Semaphore(1); semaphore.acquire(); semaphore.release(); Mar 15 17:18:04 hello Mar 15 17:18:09 I'd like to set preview image for a widget, and I should use avd for getting preview image. I've tried to run emulator but I get an error message Mar 15 17:18:25 PANIC: Unknown AVD name [mytest], use -list-avds to see valid list. HOME is defined but could not find mytest.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd Mar 15 17:25:03 cristian_c: presumably you have actually created an AVD called mytest? Mar 15 17:31:49 i'm still wondering if cristian_c is a bot Mar 15 17:32:35 in case you're a human, you should provide more information, including what -list-avds return Mar 15 17:32:45 and what $HOME env var contains, etc Mar 15 17:33:02 it has been like 2 years you're working on your widget i think Mar 15 17:33:11 this is highly suspicious Mar 15 17:34:04 Leeds: I've typed command as explained in androide developers website andI get that messsge. adq that command returns empty list Mar 15 17:34:34 cristian_c: which command? Mar 15 17:35:02 then your HOME var is probably not pointing to where it should Mar 15 17:35:21 ./emulator-avd mytest Mar 15 17:35:31 ./emulator -avd mytest Mar 15 17:36:08 so let me ask you the same question again... did you actually create an AVD called mytest? Mar 15 17:36:09 why don’t you just use Android Studio to manage your AVDs? Mar 15 17:36:35 s73v3r: ok, I try Mar 15 17:37:49 I'll take that as a no then Mar 15 17:38:49 How can I detect in my app that a USB OTG device has been connected? Mar 15 17:39:25 Leeds: I've found only those two commands. adq my HOME var shows onlymmy home path Mar 15 17:39:39 *only my Mar 15 17:40:12 so no, you have not created the AVD Mar 15 17:40:16 cristian_c: well, I don't know what docs you're reading, but you seem to have skipped a bunch of them, so meh... Mar 15 17:40:33 s73v3r: Could I create that with androidmstudio? Mar 15 17:40:38 yes Mar 15 17:40:46 Leeds: abdroid developers websit3 Mar 15 17:40:50 *website Mar 15 17:40:57 take your time and type properly Mar 15 17:41:07 ok Mar 15 17:44:06 Leeds: https://developer.android.com/studio/run/emulator-comnabdline.html Mar 15 17:44:19 Leeds: https://developer.android.com/studio/run/emulator-commandline.html Mar 15 17:44:35 how are you possibly mistyping a copy'n'pasted URL? Mar 15 17:44:50 anyway, "meh" means "I'm out of this conversation, it's too much work" Mar 15 17:45:05 cristian_c: If you look on the left, above the document you have selected, what does it say? Mar 15 17:45:48 "You must create an AVD configuration before launching the emulator." now I'm out Mar 15 17:46:28 mmmm, managing avds with avd manager Mar 15 17:47:03 (I had read only first part if document, without below table) Mar 15 17:47:49 if you want to be successful at Android development, let alone any development, you need to learn how to read the docs Mar 15 17:49:42 s73v3r: I talk about previous commands, about he left column, you're right, 'create abd manage virtual devices' is previous guide than 'control the emulator from the command line' Mar 15 17:50:36 all parts of 'run apps on the emulator' Mar 15 17:54:45 wow i've just seen jack's died Mar 15 17:55:06 and AS 2.4 track Mar 15 17:55:38 Everything looks different on AS 2.4 Mar 15 17:55:45 I don’t like change Mar 15 17:56:42 hmmm i'll procrastinate a little just to see it Mar 15 17:56:44 man I thought 2.3 was different enough Mar 15 17:56:54 it’s just the fonts and icons Mar 15 17:57:10 i don’t think they did any moving around of anything Mar 15 18:10:48 s73v3r: they changed the play/instant runi Mar 15 18:11:04 play button now relaunches app while lignthing bolt hotswaps code for quick UI changes Mar 15 18:11:05 i thought that was in 2.3 release Mar 15 18:11:09 but I guess not Mar 15 18:11:22 but from what I can tell it's reinflating the views over the old ones.. gets nasty with recyclerviews Mar 15 18:11:25 aah maybe.. Mar 15 18:11:32 2.4 canary or main? Mar 15 18:11:46 i’m on 2.4 canary Mar 15 18:11:56 aaaah ok, I'm on the mian release, still 2.3 Mar 15 18:12:05 I wish they would fix the databinding somehow Mar 15 18:12:33 like a way to display dummy data Mar 15 18:12:54 with databinding the constraintlayout coolness (making it easier to drag and drop into the layout editor) is kinda broken again Mar 15 18:13:08 i.e. there's nothing to display until runtime Mar 15 18:13:37 what do i have to do to get a commit to android studio merged? :/ Mar 15 18:13:56 makes it hard tif not impossible to lay views out graphically, I still find myself adding dummy data to make sure it lines up correctly, then going back through it to add the bindings Mar 15 18:14:12 Visit Mar-a-Lago Mar 15 18:14:17 Afzal: ^ Mar 15 18:14:34 But then I'd have to go to the US, which means I'll be detained :/ Mar 15 18:14:45 because I'm from Pakistan :/ Mar 15 18:15:00 Afzal: Don’t be poor. Problem solved Mar 15 18:15:05 Brah Mar 15 18:15:08 We're android developers Mar 15 18:15:23 Professional ones are definitely not poor Mar 15 18:16:09 you misunderstand me Mar 15 18:16:24 to the people who go to Mar-A-Lago, we’re definitely poor Mar 15 18:16:26 OHHHH Mar 15 18:16:32 yeah Mar 15 18:16:51 what's the rate over there anyway? Mar 15 18:16:53 So yeah, just go buy more money, and then you’ll be welcomed into the US with open arms Mar 15 18:16:56 7 Mar 15 18:17:03 (guess if I have to ask, it doesn't matter :P) Mar 15 18:17:13 brb, buying more money Mar 15 18:17:21 lemme hit up my gold mind Mar 15 18:17:23 mine* Mar 15 18:23:26 Can I make a viewPager with FragmentStatePagerAdapter with about 300 views? Mar 15 18:23:45 maybe Tor Norbye is on vacation :/ Mar 15 18:24:54 xela2244 sure, as long as the limit is not too high Mar 15 18:25:01 xela2244: Yes. You’re probably gonna run into problems with caching and things getting kicked out of memory, but you can do it Mar 15 18:25:06 what’s the use case? Mar 15 18:25:53 Afzal just expect question about android lifecycle from DHS when you enter Mar 15 18:26:16 g00s ez pz Mar 15 18:26:44 and write a contentprovider from scratch Mar 15 18:26:51 i read yesterday americans were being asked for the social media passwords upon reentering the country. dunno if it depended on where they went tho Mar 15 18:26:52 Can I still give that https://developer.android.com/training/animation/screen-slide.html effect without ViewPager? Mar 15 18:26:57 on paper? Cause then I'm screwed Mar 15 18:27:11 Haven't written a content provider in YEARS Mar 15 18:27:16 maybe 3 years lol Mar 15 18:27:22 xela2244: you could. a viewpager would be easier, though Mar 15 18:27:37 also, if you’re not using fragments, then you’d just use a regular PagerAadapter Mar 15 18:28:08 you could use a horizontal recyclerview with snap center Mar 15 18:28:08 i wouldn't put 300 fragments of anything into anything Mar 15 18:28:16 * raoul11 g00ses g00s Mar 15 18:28:21 hey raoul11 Mar 15 18:28:24 Thanks Mar 15 18:28:26 g00s hahaha joke's on them, I have no clue what my passwords are :D I use a pw manager Mar 15 18:29:01 my secondary hdd is dying g00s Mar 15 18:29:12 hdd sentinel says 36% /: Mar 15 18:29:15 raoul11 go buy a new one in the store immediately if you love your data Mar 15 18:29:27 will go tommorow morning Mar 15 18:29:31 raoul11 and also have a few thumdrives laying around just in case Mar 15 18:29:56 tarsnap is really interesting but pretty expensive Mar 15 18:32:26 AS 2.4 looks ok here Mar 15 18:32:39 bitkiller oh yeah how is the incremental dexing Mar 15 18:33:00 are you using android gradle 2.4 i gues Mar 15 18:33:15 incremental dexing... no faster than before, lel Mar 15 18:34:35 isn't there a layout manager for recyclerview that lets it behave like a ViewPager, with snapping ? xela2244 look it up Mar 15 18:35:05 yep Mar 15 18:35:13 snap to center Mar 15 18:35:31 found it not as handy as a viewpager Mar 15 18:35:46 g00s, build time seems to got improved Mar 15 18:35:49 and also a pain to use if you use it inside another recyclerview Mar 15 18:36:15 but there are some semantic shit appearing in my code Mar 15 18:37:19 in fact no semantic, but parameter names Mar 15 18:37:24 bitkiller oh yeah, romain mentioned 2017 has semantic highlighting Mar 15 18:37:43 its nice they grabbed 2017.1 ;) Mar 15 18:37:47 who here uses font ligatures? Mar 15 18:37:53 g00s u seen this talk? https://www.youtube.com/watch?v=TS_J0Qw4zl0 Mar 15 18:38:42 raoul11 yeah, thats a good one. i wonder if lisa wraystill has a job today, genious just had a bunch of layoff Mar 15 18:39:28 id hire her in an instant Mar 15 18:39:47 she's like thepoosh, but much better looking Mar 15 18:40:13 g00s according to her twitter profile, she's "Formerly Genius, Google, NYTimes, creator of the 50 Shades generator" Mar 15 18:40:17 so I'd say not Mar 15 18:40:27 who's thepoosh? Mar 15 18:40:48 raoul11 lol Mar 15 18:40:52 I’m sure she’ll land on her feet. people with that level of talent don’t stay unemployed for long Mar 15 18:40:55 thats the wrong question Afzal Mar 15 18:41:07 the real question is what is thepoosh Mar 15 18:41:14 what is thepoosh? Mar 15 18:41:44 basically the male version of lisa wray Mar 15 18:42:13 and a resident here, strange u havnt stumbled onto him yet Mar 15 18:44:51 maybe I have but don't remember Mar 15 18:47:09 pfn hm, "Scala for the impatient" is fewer pages than "Java for the impatient" O.o Mar 15 18:47:25 scala is a smaller language Mar 15 18:47:37 more complex, but smaller Mar 15 18:48:16 i guess i should learn enough to use spark Mar 15 18:48:31 a lot of it is mastering the type system Mar 15 18:48:37 once you master the type system, the language is ezpz Mar 15 18:49:19 android profiler not showing connected device Mar 15 18:49:24 restart android studio Mar 15 18:49:31 re-start adb integration Mar 15 18:49:34 re-start adb server Mar 15 18:52:17 already done Mar 15 18:52:26 unplug and replug device Mar 15 18:52:32 also Mar 15 18:52:32 OSX seems much more finnicky with adb than windows Mar 15 18:52:33 +1 windows Mar 15 18:52:42 linux here Mar 15 18:54:43 but does anyone use font ligatures really? Mar 15 18:55:01 only if you're doing a language other than java Mar 15 18:55:07 no reason to do ligatures with java... worthless trash Mar 15 18:55:09 I don't how it's better to see what you didn't/can't type like a fancy != or -> Mar 15 18:55:15 see* Mar 15 18:55:42 oh or worse, [] as a square Mar 15 18:55:44 srsly <_< Mar 15 18:55:54 having various ligatures representing common mathematical symbols is handy Mar 15 18:56:04 [] should not be a ligature Mar 15 18:56:21 https://www.jetbrains.com/idea/whatsnew/img/2016.3/idea_2016_3_fira_code_3.png Mar 15 18:56:27 sure looks like it, but maybe that's just the font Mar 15 18:56:35 oh, does intellij include ligatures already? Mar 15 18:56:40 2017 does Mar 15 18:56:45 that says 2016.3 Mar 15 18:56:54 last time I tried it, it ate shit (lagged the editor) Mar 15 18:56:54 huh interesting Mar 15 18:56:56 yes Mar 15 18:57:02 2016.3 does Mar 15 18:57:02 my bad Mar 15 18:57:34 the [] looks bad, the rest is ok Mar 15 18:57:47 the idea is expressing intent without syntactic clutter Mar 15 18:57:57 hmm maybe it's something that you get used it Mar 15 18:58:02 to* Mar 15 18:58:12 it's something that you'll enjoy greatly in more expressive languages Mar 15 18:58:18 java isn't a good candidate for ligatures, really Mar 15 18:58:41 I published an app today, I got the notification at 4 PM "Your update is live". Now it's 8PM and it's not live yet. Should I be worried? Mar 15 18:58:52 no Mar 15 19:00:14 any firebase alternative client side libs pop up recently? Mar 15 19:00:16 https://github.com/tonsky/FiraCode Afzal Mar 15 19:00:32 pfn I know the font, I might even have it installed lol Mar 15 19:00:39 something that has the offline syncs, but can be used with any backend service? Mar 15 19:00:52 parco er hehehe, couchbase mobile lite Mar 15 19:00:56 and good luck with that one :D Mar 15 19:01:24 there's also some offline syncing sql lib for android Mar 15 19:01:26 Afzal why good luck lol Mar 15 19:01:26 lemme find it Mar 15 19:01:35 parco eh, lots of gotchas in it Mar 15 19:01:54 Afzal, https://snag.gy/5HgJFG.jpg Mar 15 19:01:58 looks fine, it doesn't close the [] Mar 15 19:02:24 hmm Mar 15 19:02:26 okay Mar 15 19:02:43 * pfn experimented with ligatures when it was EAP a while back, didn't work well Mar 15 19:02:48 just turned it on for shits and giggles now Mar 15 19:05:08 parco nvm the library I was thinking about isn't for syncing Mar 15 19:06:41 huh Hack looks decent Mar 15 19:06:50 looks like menlo tho Mar 15 19:07:03 monaco* Mar 15 19:25:27 Hey, anyone got a clue what would be the footprint in KB of adding GSON to an android app ? Mar 15 19:30:31 dexmethodcount.com Mar 15 19:30:51 methodscount.com Mar 15 19:30:51 ugh Mar 15 19:33:35 apk size is slightly different due to compression Mar 15 19:34:04 ugh, firacode sucks, the stroke size is garbage Mar 15 19:34:12 can't run it at small font sizes as a result Mar 15 19:34:29 unusable under 14pt... Mar 15 19:34:39 :D Mar 15 19:35:42 I'm testing an app and one of my users is using and Android Sky phone that is running Android 5.1 with a Security feature called: Manage app permissions for security and privacy protection Mar 15 19:36:05 This permission feature acts very similar to the Marshmallow permissions feature Mar 15 19:36:46 However I've never seen it before and I'm not sure how to handle it programatically Mar 15 19:37:12 appops ignore it, and tell them to get a supported phone :P Mar 15 19:37:16 The existing Marshmallow permissions code I have in place does not handle it Mar 15 19:37:23 appops cannot be handled Mar 15 19:37:27 that's why it was never made public Mar 15 19:37:37 appops? Mar 15 19:37:41 http://www.androidpolice.com/2013/07/25/app-ops-android-4-3s-hidden-app-permission-manager-control-permissions-for-individual-apps/ Mar 15 19:37:45 tempted now to convert the Android wear 2.0 app to mvp Mar 15 19:38:02 didn't wanna do it earlier for a simple app but now it ain't a simple app no mo Mar 15 19:39:09 lexton, didn't cyanogenmod also have some sort of similar feature baked in, it performed just as poorly Mar 15 19:39:13 it cannot be detected Mar 15 19:39:15 which causes issues Mar 15 19:39:39 response to user: enable all permissions Mar 15 19:40:04 Anyone here try out Lottie? Mar 15 19:40:32 The cyanogenmod one didn't break apps tho.. They just returned no data Mar 15 19:40:38 e.g. no contacts, no location Mar 15 19:57:02 hi I have build an command line app which calls an activity as such Runtime.getRuntime().exec("am start -a android.intent.action.MAIN -n ... Mar 15 19:57:35 however the call executes sucessfully only when I am in root (su)? how come? Mar 15 19:58:41 The issue I'm seeing with the Sky and permissions is crashing my app hard Mar 15 19:58:51 Sky device Mar 15 19:58:55 tell them that’s not supported Mar 15 19:59:22 unless they allow permissions Mar 15 19:59:46 Ok Mar 15 20:11:31 I have an issue with Android Emulator. I have been able to run it with an AVD. Also in -no-window mode. Then I can telnet to it. Everything seems to work, but when I issue "kill" to the emulator to shut it down nothing happens (at least in the -no-window mode; with the window seems to work). I am on Mac. Mar 15 20:13:44 do kill -9? Mar 15 20:14:52 Doesn't work. Mar 15 20:15:11 define doesn’t work Mar 15 20:15:20 cause kill -9 should just terminate the process Mar 15 20:16:15 It says OK: killing emulator, bye bye, but then issues again an OK and is still alive. Mar 15 20:17:31 are you using the terminal’s kill command? Mar 15 20:18:04 huh? Mar 15 20:18:09 I am on telnet with the emulator. I issue kill to it. Mar 15 20:18:12 "then issues again an OK and is still alive" Mar 15 20:18:17 wtf does that mean... Mar 15 20:18:21 you didn't kill it then Mar 15 20:18:23 exit the telnet Mar 15 20:18:26 then kill Mar 15 20:18:34 man kill if you need help with that Mar 15 20:18:37 and why would you telnet to it... Mar 15 20:18:44 you can't kill the emulator from within the emulator Mar 15 20:18:57 I’m not telling you to use an emulator command, i’m telling you to use a regular Unix command Mar 15 20:20:02 Ok. But I read around, and also tried to issue an help to the emulator. There si definitely a kill command that should tell the emulator to shut down. And it works if I have the window (without the -no-window option). Mar 15 20:20:13 is* Mar 15 20:21:17 dunno. but if you can’t get that to work, kill -9 from outside the emulator should definitely do it Mar 15 20:22:29 I tried right now. It seems that on Mac the syntax is different: kill -9 doesn't work (the short help about the usage comes out). Mar 15 20:22:46 well, man kill should help with that Mar 15 20:23:23 Just one more point: if I issue "crash", the emulator crashes, as it is supposed to do. Mar 15 20:33:02 what exactly are you trying to accomplish Mar 15 20:33:06 just kill the emulator process Mar 15 20:33:16 why are you doing this in such a convoluted way Mar 15 20:38:57 pfn: Yes, I want to be able to kill the process in the right way - not by forcing it to die. There should be a command to tell the emulator to shut down, right? It seems to be "kill", issued by telnet. Mar 15 20:39:12 the right way is to just kill the emulator process Mar 15 20:39:39 there's no real state that the emulator needs to maintain Mar 15 20:43:17 kill -INT is typically sufficient as well Mar 15 20:43:18 pfn: Ok, I will try to find the right "kill -9" equivalent on my Mac. Mar 15 20:43:30 if you don't know how to kill -9 Mar 15 20:43:34 and kill -9 *is* the command on Mac Mar 15 20:43:42 but overkill, kill -INT is sufficient Mar 15 20:44:07 if you expect to build kernels, how do you not know how to use the `kill` command Mar 15 20:44:22 ? As I told you, if I issue kill -9 I get the help message. Mar 15 20:44:46 ... Mar 15 20:44:54 no comment, `man kill` Mar 15 20:44:55 Enrico_Menotti: Read the kill man page Mar 15 20:45:02 learn2computer Mar 15 20:45:07 Yes, I will. For sure. Mar 15 20:48:45 Whoa, am I reading this correctly? Google is dropping Jack? Mar 15 20:48:51 yup Mar 15 20:49:36 gtfo jack Mar 15 20:51:22 What was the original proposed benefit to Jack? Mar 15 20:51:50 there wasn't one Mar 15 20:52:08 it was probably a political move to get Oracle off Google's ass Mar 15 20:52:21 Gotcha Mar 15 21:14:22 pfn: Ok, now I know how to use kill -9, I think. I got the pid of the process. Issued kill -9 . And the process did not exit. (No error messages.) Mar 15 21:14:50 of course the process exited Mar 15 21:15:00 that's what kill does Mar 15 21:15:23 No it was still there. Mar 15 21:15:27 horseshit Mar 15 21:15:31 then you didn't kill the right process Mar 15 21:15:59 I will check. Mar 15 21:17:29 pfn: There do not seem to be other processes with that name opened. I got the pid by pgrep emulator. Mar 15 21:20:46 then if not, the emulator is gone Mar 15 21:23:37 pfn: I can still telnet the emulator - I don't understand what's happening. After kill -9 the pid has gone, but I can still telnet. Mar 15 21:25:13 then you didn't kill the right process Mar 15 21:25:16 maybe you did not kill the right process then Mar 15 21:25:29 or the telnet serv you connect is not specific to this emu Mar 15 21:25:37 i don't remember who is responsible, it could be avd Mar 15 21:25:40 err adb* Mar 15 21:26:28 Ok, I will try to reboot my system, that will kill all processes for sure. Then I will try again. Mar 15 21:27:07 the emulator has a port open for telnet? Mar 15 21:27:09 * pfn shrugs Mar 15 21:27:17 oh yeah Mar 15 21:27:23 you can control the whole thing through telnet Mar 15 21:28:02 s73v3r: In fact. But something doesn't work. Mar 15 21:28:19 that's annoying, pita to script Mar 15 21:28:36 Ok, reboot. Bye. Mar 15 21:29:01 adb emu kill Mar 15 21:29:02 oh, handy Mar 15 21:30:28 does z-axis not apply in a RelativeLayout when there's a cardview involved? Mar 15 21:30:35 z axis always applies Mar 15 21:31:21 trying to put a cardview and a linearlayout inside a relativelayout.. the linear layout is definitely above (in code, lower number lines) the CardView.. but the LinearLayout is displaying on top of the CardView for some reason Mar 15 21:31:26 maybe it's the binding? Mar 15 21:31:38 ill share XML Mar 15 21:31:47 order in source is reverse z-order Mar 15 21:31:55 last item in has a higher z-axis value Mar 15 21:32:22 Mar 15 21:32:50 http://pastebin.com/SCbgESev Mar 15 21:33:25 you could get rid of that include Mar 15 21:33:33 and cahnge the custom color i guess if you wanted to see.. Mar 15 21:33:57 but either way, the LinearLayout is above the CardView.. no matter which way they're ordered in the XML Mar 15 21:34:04 you set elevation=4dp on linearlayout Mar 15 21:34:06 duh Mar 15 21:34:17 elevation = z-axis Mar 15 21:35:15 elevation.. Mar 15 21:35:17 haha Mar 15 21:35:21 thanks Mar 15 21:35:31 how can use am start -a android.intent.action.MAIN -n org.connectbot/.ConsoleActivity without being root? Mar 15 21:37:08 why is Android wear 2.0 not released yet :/ Mar 15 21:37:29 why would you need root Mar 15 21:39:31 root is needed because we hate limitations Mar 15 21:40:15 pfn: does not start the activity unless the term is in root (su)! why i wonder Mar 15 21:52:40 possibly because ConsoleActivity is not exported Mar 15 21:53:31 hmm, nope Mar 15 21:53:41 should work fine without root regardless Mar 15 22:02:37 pfn: it doesn't surprisingly Mar 15 22:02:44 * pfn shrugs Mar 15 22:02:46 read logcat Mar 15 22:02:47 see why Mar 15 22:02:48 also tried to launch it with monkey Mar 15 22:02:52 same problem Mar 15 22:03:45 from adb it works fine Mar 15 22:04:04 it's just the android term (I tried 2 of them) Mar 15 22:05:41 so here is the error: Mar 15 22:06:39 startactivity asks to run as user -2 but is calling user 0; ... this requires permission bla bla Mar 15 22:07:22 can this be changed? am does not have a --user switch Mar 15 22:28:05 anyone poker around android things? Mar 15 22:30:43 I would sure hope so. Mar 15 22:31:40 I try, but when I do, I get overwhelmed and flush Mar 15 22:31:53 feel flush Mar 15 22:41:48 ah yeah, android things? Mar 15 22:42:32 As long as you mean the android platform, and not literal robotic androids Mar 15 22:54:23 oh, francogrex was calling from a terminal without permission.. (not adb shell) Mar 15 22:54:47 i.e. connectbot -> local terminal -> am (not allowed) Mar 15 23:28:53 weird, why'd my IntentService die before it processed all my queued intents... Mar 15 23:29:41 pfn: Don't want to disturb you - I just report what I found. Originally I installed the emulator from the Canary Channel (a couple of days ago it was only available there). Now I deleted the whole Android SDK an reinstalled everything from the Stable Channel. At this point the kill works, but after the emulator has shut down a crash message appears invariably. Mar 15 23:30:01 why don't you just adb emu kill and call it a day Mar 15 23:31:15 It doesn't work anymore, it seems, due to the authorisation requests. See http://vaughandroid.me/2016/05/27/killing-the-android-emulator/. Mar 15 23:40:46 funnny, avd/emulator uptime never lasted more than few hours with not even an intensive use here Mar 15 23:40:54 on different os, even with latest API Mar 15 23:41:13 but sometimes i have to kill it, because it hangs AS, because it hangs adb somehow Mar 15 23:41:24 and they still haven't decoupled properly AS with the other stuff Mar 15 23:44:23 huh? Mar 15 23:44:29 there's no authorization request when using adb emu kill Mar 15 23:45:09 at least not with current versions of adb Mar 15 23:46:14 at the end it is just a process you can kill anyway Mar 15 23:52:02 ugh, upgrading to opencv 3.2.0 doubles the size of my app :( Mar 15 23:54:11 weird, but the .so jar only grows by 3mb (while app blows up from 15mb to 36mb) Mar 16 00:13:45 I've got a weird issue where this code only sometimes throws an error: http://pastebin.com/TSs3bP1S Mar 16 00:14:59 Hello Mar 16 00:16:07 Apparently finding the radio partition to dump as an image isn't as simple as doing ls /dev/block/~~~~/by-name anymore, I seem to get every other partition I could ever ask for EXCEPT the radio partition which is what I'm really looking for Mar 16 00:17:11 Oh wait nevermind, this is for app development Mar 16 01:09:59 is there some program for assistance with bluetooth development? Mar 16 01:10:07 something i would test my app with Mar 16 01:20:41 hi, there's spam in tickets like https://code.google.com/p/android/issues/detail?id=251112 Mar 16 01:48:33 okay.. what's the recommended way to get google play on my virtual device? Mar 16 01:48:40 (I'm very new to android studio, btw) Mar 16 01:49:02 do I get a gapps package from .. basketbuild? Mar 16 01:49:26 what do I use to match the gapps version and the phone I just picked as a virtual device? Mar 16 01:53:03 nicolas17: There are so many like that. **** ENDING LOGGING AT Thu Mar 16 03:00:01 2017