**** BEGIN LOGGING AT Thu Nov 03 03:00:00 2016 Nov 03 03:05:23 LunarEclipse: The second value is what's returned if the queried value is undef (probably because it was never set in the first place) Nov 03 03:08:04 beshoo: They specifically require you go back and click on something in the browser every 30 minutes, so it's doubtful they'll be amenable to you trying to use it as a general-purpose VPN for warezing and so forth Nov 03 03:10:15 Seems like I'm going to fail Nov 03 03:10:38 Rendering a video to a bitmap is quite slow Nov 03 03:11:25 much slower than rendering natively to a surface Nov 03 03:12:58 Yes. Very. Nov 03 03:13:16 You woulnd't be a bit suprised if you'd ever tried to use a framegrabber for video recording Nov 03 03:13:42 Video playback is a *lot* of image data coming through *very* fast Nov 03 03:14:01 xres * yres * bit depth * fps Nov 03 03:14:19 the rendering code uses opengl Nov 03 03:14:52 I can't believe I'm going to fail Nov 03 03:15:35 Let it do it's magic then Nov 03 03:15:54 what magic? Nov 03 03:17:03 My head is spinning Nov 03 03:18:41 There's plenty of documentation on playing video through OpenGL textures Nov 03 03:18:48 It's _not_ easy tho Nov 03 03:19:21 You're still talking about moving roughly 6-12Mbps through Nov 03 03:19:27 ...for 1080p that is Nov 03 03:19:36 I already have code that renders the frames as OpenGl texture Nov 03 03:19:59 I just copy the bitmap at the end of the process Nov 03 03:20:00 If video playback were trivial, everyone would be doing it Nov 03 03:20:35 Plain video playback is trivial and everybody is doing it Nov 03 03:21:06 The problems arise when you deviate slightly from "plain" Nov 03 03:21:11 Most of them are calling other people's code that leverages hardware accelleration, or they've put in the time necessary to figure out how to use hardware accelleration Nov 03 03:22:13 _Without_ hardware accelleration you need about 1.8Ghz *minimum* to deal with most h.264 encoded stuff, and somewhere north of 1.2Ghz to mess about with SD resolution MPEG Nov 03 03:22:49 Why do you know all this stuff? Nov 03 03:23:04 Because I spent a ridiculous number of hours building and working on a MythTV box Nov 03 03:23:45 I started with an nVidia 5200 card and wound up eventually graduating to using an 8500 when things started transitioning from MPEG/SD to h264/widescreen Nov 03 03:24:14 I can work with low res preview though Nov 03 03:24:29 and I'm interested in short clips Nov 03 03:24:37 ...and without leveraging the hardware accelleration from the nVidia driver, things were pretty much universally dodgy Nov 03 03:25:01 If I didn't care about realtime processing, ffmpeg will get the job done. It's just a heaping pile of work without hardware support Nov 03 03:25:55 I need to be able to see what I'm doing on-screen Nov 03 03:26:02 At the moment I'm "enjoying" the tender mercies of trying to interface with the damn AT&T cable box Nov 03 03:26:30 but I can preprocess and postprocess the video as I want Nov 03 03:26:35 Even on a server Nov 03 03:26:35 It's probably going to be simpler if I just start sniffing traffic and have a go at maybe getting the video directly via IPTV Nov 03 03:27:36 I'm not a fan of using LIRC to bounce IR off the walls Nov 03 03:28:01 I don't understand the terms you are using Nov 03 03:28:31 AT&T uses IPTV (which is actually an old protocol) to ship video out to the set top boxes. Nov 03 03:29:21 LIRC is a library for IR signaling. Painful to set up new remote profiles, but it at least works. Nov 03 03:29:49 I've looked into what's necessary to use the IR port on my S5 and it's just not pretty Nov 03 03:31:07 I really can't fail Nov 03 03:31:29 If it were *less* of a PITA I'd be using it through a bit of scripting to control pretty much everything here Nov 03 03:31:54 As it stands it's way easier to just spam multicast packets over Wifi Nov 03 03:33:09 Sorry, I'm trying to figure out another way to reach my goals Nov 03 03:33:42 Lower your standards temporarily. :) Nov 03 03:33:54 Like what? Nov 03 03:34:12 Get skeletal functionality into place first by whatever filthy hacks you have to do, and then optimize the stupid out of it Nov 03 03:34:37 If it plays slow, so be it Nov 03 03:36:26 would loading low-rez full frames slower than decoding the video? Nov 03 03:36:36 loading from disk Nov 03 03:36:43 uncompressed Nov 03 03:36:55 Generally yes Nov 03 03:39:25 I wanna die Nov 03 03:40:58 Hey anyone work with firebase ? http://stackoverflow.com/questions/40393491/no-event-listener-removal-for-firebase-databasereference Nov 03 03:41:14 Trying to understand whether or not I need to remove the listener on the databasereference Nov 03 04:07:48 Is there a way to push lots of files to the emulator? Nov 03 04:09:41 for loop Nov 03 04:12:07 melatonina adb push Nov 03 04:12:45 adp pushes 1 file at time Nov 03 04:12:57 I'll need to use a script of some kind... :/ Nov 03 04:27:41 olol a batch script? Nov 03 04:42:55 scp! Nov 03 04:44:02 I'm _definitely_ going to remove the keyring passwords before i push this Nov 03 05:08:32 Dagmar: loading 854x480 PNG frames from disk is faster than real time Nov 03 05:33:13 drawing on a Surface of a SurfaceView is much slower! Nov 03 05:33:36 Before I was setting the image bitmap of an ImageView and it was much faster... Nov 03 05:34:35 Dagmar: do you know why? Nov 03 05:44:28 my layout isnt appearing when im using android studio Nov 03 05:44:51 it appears in the editor, but not in running app Nov 03 05:45:54 pastebin some stuff Nov 03 05:48:12 i pasted in from another project, which should be working fine Nov 03 05:48:18 the layout.xml Nov 03 05:48:54 http://pastebin.com/ZPwXDVGa Nov 03 05:49:31 the layout is semi-irrelevant. what about the java code Nov 03 05:50:56 http://pastebin.com/p7By048G here is mainlayout Nov 03 05:52:02 http://pastebin.com/yvxBnu8G Nov 03 05:52:16 the surfaceview that gets inflated Nov 03 05:53:02 everything else is non-relevant Nov 03 05:56:24 oh heh, i see it Nov 03 05:56:42 thanks everyone Nov 03 06:57:51 morning devs - if I want to fire an event (a network call) every 5 mins then which alarm type should I use ? To me it seems : ELAPSED_REALTIME_WAKEUP is the right choice. Am I right ? Nov 03 07:10:05 * thepoosh causes caos in raoul11 world Nov 03 07:10:27 boker thepoosh Nov 03 07:10:44 sup? Nov 03 07:11:12 sunndy day today Nov 03 07:11:33 thepoosh why does recyclerview is so complicated? Nov 03 07:11:52 it aint Nov 03 07:11:54 cry baby Nov 03 07:11:55 you need about a gazillion classes to get it going Nov 03 07:12:08 its not really, but it is Nov 03 07:12:08 you need 3 classes Nov 03 07:12:18 item, data, viewholder Nov 03 07:12:28 adapter Nov 03 07:12:49 gib me one liners plz. Nov 03 07:13:15 data? Nov 03 07:13:40 mokcup shit to process input data Nov 03 07:13:55 u can probably squeeze that into another Nov 03 07:40:19 what learning source for Espresso would you recommend? Nov 03 07:53:22 Leeds: sup? Nov 03 07:54:32 thepoosh: not much... won the pub quiz last night, which is nice Nov 03 07:55:05 quiz about what? Nov 03 07:57:40 Good morning :) Nov 03 07:58:02 Hi there Melatonina. Nov 03 07:58:22 news, sport, HK hotels, scary movies, music and something else that I forgot :) Nov 03 07:58:40 I have a new el-cheapo Android phone here which does not appear on the adb devices list when it is plugged in. Nov 03 07:58:55 Developer mode is on. Nov 03 07:59:17 ummmm Nov 03 08:00:02 NeoFrontier: do you get a debug notification on the phone? what PC OS? Nov 03 08:00:36 Ubuntu Mr Leeds. Nov 03 08:01:23 oh, mustaches was the 6th subject :) Nov 03 08:02:47 NeoFrontier: and the other question? Nov 03 08:03:29 When I plug the phone in it gives the notifications for Debug mode and Media device. Nov 03 08:03:54 yet when I type "adb devices" there is nada new phone. Nov 03 08:05:01 what if you "adb kill-server ; sudo adb devices"? Nov 03 08:08:13 Still nothing :| Nov 03 08:08:43 that's a bad sign Nov 03 08:08:51 what phone is it, anyway? Nov 03 08:09:01 XGODY X15 Nov 03 08:14:09 try p2p Nov 03 08:14:25 or charge mode if it has it Nov 03 08:15:54 Android Studio somehow manages to see the device. Nov 03 08:16:06 :\ :) Nov 03 08:16:48 neo try switching from camera to media device Nov 03 08:17:05 black91 I have already gone through all that. Nov 03 08:19:13 So what is the difference between how AS is using adb and me ? Nov 03 08:23:54 could try tcp if ur dire need Nov 03 08:25:19 There is some difference in the way AS is starting the adb server. Nov 03 08:25:35 Where can I look up the command it is issuing ? Nov 03 08:26:11 what do you mean black91 ? Nov 03 08:26:30 Anyone know what the defautl user-agent is (is it empty?) if one use volley. Nov 03 08:32:59 assuming it's the dalvik string. Nov 03 08:48:15 https://www.jstor.org/stable/20460976 Nov 03 09:05:24 what are opinions on requiring internet for an app, to serve ads, even if its an offline app Nov 03 09:05:36 ? does this seem nazi Nov 03 09:06:22 not nazi but a good way to get your app removed Nov 03 09:06:27 kinda stupid Nov 03 09:06:39 i have cheap paid version with offline access Nov 03 09:06:43 can you elaborate? Nov 03 09:07:12 http://android-developers.blogspot.hk/2016/11/support-ended-for-eclipse-android.html Nov 03 09:08:12 i dont think its enough to get your app removed Nov 03 09:08:22 of course its very meh but imo acceptable Nov 03 09:08:56 i feel meh about it too, but i feel the people who stick with or even pay are worth it, not the 2 or 3 who want to complain, or even disable internet to avoid ads Nov 03 09:09:05 kinda lame Nov 03 09:09:48 but then again i could be totally wrong idk Nov 03 09:15:22 I want to monitor the network traffic and see packets (headers and all the things) in my app. From what Ive read there is no way to do this in device monitor/ddms. Or is it possible? Nov 03 09:15:27 Seems like Charles or Fiddler is the way to go. Nov 03 09:19:00 why "startSupportActionMode" return null only if I have a fragment with (TabLaout, VeiwPager) and work fine for other fragment?! Nov 03 09:26:37 Hi. I am trying to write content to a file but i always get open failed: ENOENT (No such file or directory). I am trying to do it by using a FileOutputStream. How do i create the file before writing to it? Nov 03 09:29:07 styler2go: FileOutputStream out = mAppContext.openFileOutput(FILENAME, Context.MODE_PRIVATE); Nov 03 09:29:35 hithere - I am getting this error in pre launch report for MOTO X (2ND GEN) http://pastebin.com/7qibhHUY . Anyone with same issue? Nov 03 09:31:23 imla, but i already have the file object. can't i use that? it tells me that my path contains path seperator Nov 03 09:34:35 styler2go: in manifest setup provider with xml filepaths in the resource meta data Nov 03 09:57:29 What is "xhdpi-v19” layout file? Nov 03 09:57:29 Some kind of support variety? Nov 03 09:59:57 oO Nov 03 10:00:13 that would be only on Kitkat xhdpi devices Nov 03 10:00:23 but thats not typical Nov 03 10:00:31 is this from decompiled apk? Nov 03 10:02:43 v19+, not just v19 Nov 03 10:06:24 ah right Nov 03 10:51:21 guys i asked this question before but couldnt find answer anywhere My apps clipboard listener receives empty string only when a text was copied from a chromium based browser and opera. Any one know why its happening Nov 03 10:51:39 elsewhere its working perfect. Nov 03 10:51:55 pelase guide me someone, thanks in advance Nov 03 10:59:18 TheRightCorner: did you check the other content types? Nov 03 11:06:58 no my app only needs strings Nov 03 11:07:05 so i didnt checked others Nov 03 11:14:23 day two on this Floating Action Button and every step I take makes me wish I just grabbed a lib from arsenal and not try to use the google lib Nov 03 11:15:18 so current issue is the overlay dimming and it make me think should the FAB be a fragment itself that just lives over the more complicated activity that has multiple fragments? Nov 03 11:21:28 Hi, I'm having a problem with Travis CI, I get an error that the ConstraintLayout 1.0.0-beta1 license agreement has not been accepted (https://travis-ci.org/harmittaa/LukeApp/builds/172900933). Anyone else run into the same problem? Nov 03 11:28:35 I am trying to inject my dependency using Dagger 2 to android.app.job.JobService class but something is wrong, the reference to dependecy is null. Maybe because that class is being instantiated implicitly? Nov 03 11:29:01 Any ideas? Nov 03 12:03:49 Can i create a viewpager without fragments? Nov 03 12:04:10 styler2go: yes Nov 03 12:04:17 well, no Nov 03 12:04:22 but yes Nov 03 12:04:29 haha. what exactly do you mean? Nov 03 12:04:55 styler2go: RecyclerView with a horizontal LinearLayoutManager and custom animations Nov 03 12:04:59 for scrolling Nov 03 12:05:08 with decorations maybe for the borders Nov 03 12:05:30 but it wouldn't "snap" to the width right? Nov 03 12:05:56 it will if you control scrolling Nov 03 12:06:01 hmm Nov 03 12:06:05 you can write your own LayoutManager for that Nov 03 12:06:12 sounds like fragment is the easier way then Nov 03 12:07:41 yes Nov 03 12:07:49 absolutely Nov 03 12:08:56 i just hate the way of transfering int/string between activities and fragments. it feels so complicated although it's just so little code Nov 03 12:09:14 bundle it up! Nov 03 12:10:59 styler2go: seems like you should be using a notification system Nov 03 12:11:11 like a manager of sort Nov 03 12:11:13 controller Nov 03 12:12:51 has anyone ever gotten the gpu debugging to work in android studio? my sdk manager shows that i've installed the package called "GPU Debugging Tools" but then i click the gpu trace button under monitors, it says: gpu tools are not installed, install now? and when i click ok nothing happens Nov 03 12:12:54 any idea the best way to implement a nested comments ui? Nov 03 12:13:03 sort of like reddit's android app Nov 03 12:30:35 styler2go: you can use Views instead of Fragments in ViewPager Nov 03 12:30:54 what's the difference mbarisa? Nov 03 12:31:38 difference between that and RecyclerView with horizontal LinearLayoutManager ? Nov 03 12:32:01 no, difference between fragments and view in viewpager Nov 03 12:32:06 You would not be using fragments in a recycler view. Nov 03 12:32:15 haha :D Nov 03 12:32:29 your question was if you can create viewpager without fragments Nov 03 12:32:40 and my response is that you can use Views instead of fragments Nov 03 12:33:53 you don't have to handle fragment lifecycle Nov 03 12:48:44 Hmm Nov 03 12:49:01 Doesn't the viewpager has a titlebar by default? to see which page is active? Nov 03 12:49:54 negative Nov 03 12:50:17 http://i.stack.imgur.com/mDRky.png what is this? Nov 03 12:50:24 TabView? Nov 03 12:50:26 However, it does work well with a TabLayout Nov 03 12:50:43 Dunno, seems like a custom control based on some king of horizontal scroll thingy Nov 03 12:50:50 kind* Nov 03 12:50:52 humm Nov 03 12:54:23 you attach your ViewPager to TabLayout Nov 03 12:54:34 and in adapter of ViewPager you specify title Nov 03 12:57:39 What the three dots stand for in this method declaration? protected void onProgressUpdate(Integer... progress) Nov 03 12:58:24 pihpah: the method supports an arbitrary number of Integer arguments Nov 03 12:58:51 Thanks Nov 03 12:59:04 A call like onProgressUpdate(int1, int2, int3) for example would be valid Nov 03 12:59:35 You can treat the passed value as an array in the body of the method Nov 03 13:13:03 I have two applications of mine (a filesystem explorer and a video player) trying to access the "Pictures" subdirectory of Environment.getExternalStorageDirectory() on my Nexus 5x. The first can, the second can't. On the emulator both work. Why is it so? Nov 03 13:16:07 check folders/files permissions maybe Nov 03 13:16:32 why? because emulator is very different from a regular device Nov 03 13:19:40 if it was a permission problem on the real device, both would fail Nov 03 13:19:55 On the real device, one succeeds and one fails Nov 03 13:22:44 I also have another filesystem explorer that I downloaded from the Play store ("Root Explorer"). It has two views. One shows /storage/emulated/0 as empty. The other allows me two navigate inside. Can this be related? Nov 03 13:23:57 There's a lot of limits on how apps can access external storage and what directories they can access Nov 03 13:24:00 introduced in 5 or 6 Nov 03 13:24:07 maybe I found the problem, 1 sec Nov 03 13:24:26 I don't have a link handy but google around; there's more than just external storage access now. partly b/c google wanted to kill sd cards, partly for security Nov 03 13:24:37 may be related Nov 03 13:25:21 I modified the application to do a test and I bypassed the code for requesting permissions Nov 03 13:25:29 maybe it's that Nov 03 13:26:18 I quickly upload the app in the real device to debug a problem, bypassing that code. So it was never granted the permissions. Nov 03 13:26:26 Stupid me Nov 03 13:26:38 uploaded Nov 03 13:35:10 I may have to write the video player in native code. Nov 03 13:35:16 Will the NDK eat me? Nov 03 13:35:24 I'm scared Nov 03 13:38:08 Just... don't. Nov 03 13:38:26 Why? Nov 03 13:38:29 You don't have access to HW video decoder in NDK code. Nov 03 13:38:54 it's counterintuitive... Nov 03 13:39:21 The Java API calls native methods and from NDK you can't? Nov 03 13:40:11 yes. Nov 03 13:40:25 Can i somehow add a horizontal scrollbar to a ViewPager to show the user that he can scroll to to the lefT? Nov 03 13:41:44 https://code.google.com/p/android/issues/detail?id=206376#c5 bot Nov 03 13:43:19 Mavrik: well, anyway, the video playback API is faster when it renders directly to a Surface but when I draw bitmap to a surface it's much slower than if I swap bitmaps with an ImageView. Why is it so? Nov 03 13:44:00 The first needs to actually copy the bitmap to the surface for display. Nov 03 13:44:12 Mavrik: I can load PNG frames from disk and swap them in an ImageView faster than realtime. If I do the same drawing on an Surface, it's slower Nov 03 13:44:14 The other just composits the bitmap when compositor renders the UI Nov 03 13:44:37 I don't understand this last sentence Nov 03 13:45:58 if ImageView is fast, why Surface isn't? Nov 03 13:46:51 Hi all; how can you read nfc data when you have a BluetoothDevice? (android.bluetooth.BluetoothDevice) Nov 03 13:47:10 Melatonina, profiling would tell you Nov 03 13:47:24 but surface as in surfaceview is not hw accelerated at all Nov 03 13:47:27 I have a bluetooth nfc reader, it supports smartcards & nfc. But can't figure out how to read the id of an nfc card Nov 03 13:47:34 Melatonina, as I said. Nov 03 13:47:36 while an imageview which extends a view is Nov 03 13:47:41 (except on lower api) Nov 03 13:47:47 When you're drawing on a surface, the content of the bitmap is always copied to the bitmap for each draw command. Nov 03 13:47:54 When you're drawing a view, that doesn't happen. Nov 03 13:47:57 ^ Nov 03 13:47:59 But it just gets marked as "this bitmap goes here" Nov 03 13:48:25 And then SurfaceFlinger composits the windows, it'll just draw bitmap texture (which is thus never touched after first use) on that place. Nov 03 13:48:41 Without any copies and using GPU only Nov 03 13:49:15 there are few old posts from romainguy about how it works, despite things could have change a bit since, if you are curious to search for Nov 03 13:49:33 Nah, there's also talks by Romain Guy & Chet Haase on IO Nov 03 13:49:38 Sadly no real documentation overview. Nov 03 13:49:53 i mean for Melatonina, not for you Mavrik Nov 03 13:49:55 :p Nov 03 13:50:43 Yeah, I'm looking if there's any documentaiton on HW rendering pipeline Nov 03 13:51:35 i only saw mention Nov 03 13:51:51 oh he got a medium too now: https://medium.com/google-developers/a-better-underline-for-android-90ba3a2e4fb#.vqrdinorg Nov 03 13:53:25 https://medium.com/@romainguy/androids-font-renderer-c368bbde87d9#.ldihavt8z a bit more related to rendering Nov 03 13:53:29 (despite specific to font) Nov 03 13:58:02 what (if any) native libraries are guaranteed to be present on an Android system for shared linking to without including in an apk? presumably glibc's presence can be relied on, but whatever STL implementation you choose can't be relied on to be there. is there an authoritative source for what's available? Nov 03 14:01:00 AbigailBuccaneer, glibc is not on android Nov 03 14:01:18 AbigailBuccaneer, it uses bionic which has some (sometimes fairly significant) differences Nov 03 14:01:53 AbigailBuccaneer, there's no guaranteed native libraries Nov 03 14:01:53 anyone know a solution to Travis CI not accepting the ConstraintLayout 1.0.0.-beta1 license agreement? https://travis-ci.org/harmittaa/LukeApp/builds/172946836 Nov 03 14:01:54 AbigailBuccaneer, http://android-developers.blogspot.fr/2016/06/android-changes-for-ndk-developers.html Nov 03 14:01:56 if you need something beyond libstdc++ then you'll have to port it yourself (boost, etc) Nov 03 14:02:08 I've been trying to figure out this problem the whole day, maybe someone here has already solved it Nov 03 14:02:15 AbigailBuccaneer, this is what you get: https://developer.android.com/ndk/guides/stable_apis.html Nov 03 14:02:17 dragorn, okay, i meant libc, my fingers are too used to typing the g. but regardless, that's an example of a library which is available Nov 03 14:02:30 AbigailBuccaneer, don't assume you can link to something available everywhere except in rare cases Nov 03 14:02:41 AbigailBuccaneer, well technically libc isn't there either. Android uses bionic Nov 03 14:02:51 AbigailBuccaneer, http://android-developers.blogspot.fr/2016/06/improving-stability-with-private-cc.html and this one Nov 03 14:03:04 for N: the tldr: All NDK libraries (libandroid, libc, libcamera2ndk, libdl, libGLES, libjnigraphics, liblog, libm, libmediandk, libOpenMAXAL, libOpenSLES, libstdc++, libvulkan, and libz), plus libraries that are part of your app are accessible. Nov 03 14:03:08 AbigailBuccaneer, and as adq linked, the rules for linking native libraries are changing, and not for the better Nov 03 14:03:18 and this list will diminish across time Nov 03 14:03:26 dragorn, they're certanly changing for the better. Nov 03 14:03:30 they are not even providing openssl it seems Nov 03 14:03:42 Mavrik, Well, not for heavy native devs they're not. For the general ecosystem, yeah, probably. Nov 03 14:03:45 adq, Mavrik, thanks for the links - this is exactly the kind of info i was hoping for :) Nov 03 14:03:47 ah they are, temporarily Nov 03 14:04:02 dragorn, just because you could do something dumbass like link against a system lib, it doesn't mean it actually worked. Nov 03 14:04:14 AbigailBuccaneer, long story short, bring your own libs, save yourself trouble :) Nov 03 14:04:21 ^ Nov 03 14:06:11 I'd love to have Skia, SSL and video encoders in public surface tho Nov 03 14:06:33 (gradle version 2.14.1). Using com.android.tools.build:gradle 2.2.0 I cant build with gradlew. It fails because it cant find 2.2.0. It does work building in android studio though. I can build through gradlew if I use 2.1.0 instead of 2.2.0 :/ Nov 03 14:08:09 ah, needed to use jcenter instead of mavencentral. Nov 03 14:08:19 right Nov 03 14:14:33 somebody experience with apdu commands (instead of ndef)? Nov 03 14:21:53 Mavrik: thanks. I'm processing what you said Nov 03 14:22:03 adq: same Nov 03 14:28:22 i've got a web application that exposes a link for downloading a Word (.docx) file. basically it's a GET webservice call and the response is a Content-Disposition: Attachment with the word file in the body. nothing fancy. problem is, on certain android phones (regardless of browser), downloading that file results in an "unknown error". debugging the webservice showed no error (i.e. file was delivered). any ideas on Nov 03 14:28:22 how to find out the exact cause for the error? Nov 03 14:29:07 additional infos: 1.) web application is https, with a SSL cert signed by an untrusted root CA, 2.) it works on my own android phone with the stock browser but fails on e.g. an galaxy A3 (with several installed browsers), 3.) just to elaborate, the phone's GET request for the file reaches the webservice successfully and correctly and the response is returned by the webservice, so server-side we sho Nov 03 14:29:07 uld be solid Nov 03 14:30:23 interop_madness, are you setting the mime type properly? Nov 03 14:31:38 dragorn, yes: application/vnd.openxmlformats-officedocument.wordprocessingml.document Nov 03 14:32:25 your cert is untrusted? that's probably going to cause issues w/ downloadmanager if you're using it Nov 03 14:33:06 yeah i've read some forum posts hinting towards that end, but nothing concrete and it works on my android phone Nov 03 15:00:42 Anybody know how to test with keytool whether I have the correct password for a certificate? Nov 03 15:00:45 Trying to do it in a script... Nov 03 15:01:02 Do I just try to sign something with it and see if it fails? How do I do that? Nov 03 15:18:06 sorry, i don't know :D Nov 03 15:27:41 Nevermind, I got it Nov 03 15:28:00 I figured the simplest way is to just make a temporary copy of the keystore and use keytool to try to change the password Nov 03 15:28:11 It fails if you have the wrong password Nov 03 15:52:36 using a theme causes other problems what other ways can I have an activity as a translucent screen Nov 03 15:57:29 drill a hole in it Nov 03 15:57:37 you can just use keytool to verify and print information Nov 03 15:57:43 it will prompt for password Nov 03 16:07:37 Mavrik: maybe not all is lost! Nov 03 16:21:46 quiet ... Nov 03 16:23:09 g00s: http://www.cnbc.com/2016/11/03/google-android-hits-market-share-record-with-nearly-9-in-every-10-smartphones-using-it.html Nov 03 16:23:58 hey TacticalJoke , lol TIL 9 of every 10 people sacrificed themselves to surveillance capitalism :P Nov 03 16:27:26 Isn't it 10 out of 10? :D Nov 03 16:29:10 Hi Guys, Nov 03 16:29:23 Anyone using the TFVC plugin for Andoird Studio? Nov 03 16:29:27 TacticalJoke touche Nov 03 16:29:53 Don't seem to be able to import a repository without it hanging :( Nov 03 16:30:16 TacticalJoke mercurial versioning is weird (4.0) Nov 03 16:30:29 Yeah, I'm not a fan of that. Nov 03 16:31:35 g00s: I'm thinking of just using the release date for my app: '2016-11-03' Nov 03 16:31:46 With those apostrophes around it. Nov 03 16:31:59 And if there are two releases in a day then the second gets "b" or something. Nov 03 16:32:11 TacticalJoke go with some quixotic animal name ... Nov 03 16:32:15 haha Nov 03 16:32:31 this release of Lightning Lama ... Nov 03 16:33:15 Hmm. Nov 03 16:33:29 Anyone know how much of desktop stack do you need to run the new Android emulator? Nov 03 16:33:33 X server? Anything else? Nov 03 16:35:18 random question, but is there any way to opt out of AMP in search results? I'm getting close to ditching Google search over this shit Nov 03 16:36:32 AMP has been controversial ... Nov 03 16:36:43 AMP? Nov 03 16:37:01 Mavrik: (reaching back into scrollback a bit) have you filed bugs for the libs you'd like added to the NDK? Nov 03 16:37:05 Accelerated Mobile Pages? Nov 03 16:37:17 I think Nov 03 16:37:31 I can't guarantee that what you request will be added (it isn't up to me), but those do get considered Nov 03 16:38:02 danalbert, hmm, actually no, I didn't do feature requests, just bugs :) Nov 03 16:38:11 But yeah, I'll do it :) Nov 03 16:38:18 GitHub or code.google.com tracker? Nov 03 16:38:25 code.google.com Nov 03 16:38:32 There's a subcategory for API requests Nov 03 16:38:37 I forget the exact name Nov 03 16:38:59 Specifically about openssl, we do have some plans to at least make that easier for NDK users Nov 03 16:39:03 g00s, i think it's the worst user-facing screwup Google has ever don3e Nov 03 16:39:23 We can't actually just let you link the one from the platform (it's not actually there any more) Nov 03 16:40:28 Yeah, I wouldn't even want to do that really Nov 03 16:40:29 s73v3r, yeah it's google serving up certain websites (typically news sites) from their own cache. there doesn't seem to be a way around it on mobile Nov 03 16:40:29 But when we find the time we want to make it so it's at least trivial to add to your app Nov 03 16:40:31 Non-updated devices and that. Nov 03 16:40:35 (We ship botan now) Nov 03 16:40:50 s73v3r, so if you want to share a nytimes article, you'll have to share an amp.google.com url Nov 03 16:41:25 danalbert, btw, no idea if you had anything to do with it, but new cmake toolchain and support really saved us bunch of time and pain :) Thumbs up for that. Nov 03 16:43:05 I did a bit, but it was mostly from another engineer. Glad it helped :) Nov 03 16:49:52 "The Silicon Valley “megacommute” — defined as a single motorist driving 90 minutes or longer one way to work — is actually worse here in the Bay Area than is the case even in traffic-choked Los Angeles County." Nov 03 16:49:56 owie Nov 03 16:50:25 why can't they just disrupt commuting ? Nov 03 16:50:47 Wow... 90 mins. Nov 03 16:50:59 g00s, maybe amazon should use Mechanical Turk to build a high speed rail line Nov 03 16:51:05 I'd have to cross the whole country for my commute to be 90 mins :P Nov 03 16:51:16 $0.10 per railway spike Nov 03 16:51:56 Nah, just build high speed railway with investor money and then monetize it with ads Nov 03 16:53:03 Mavrik, haha silicon valley capital prefers the state do the heavy lifting and then deify the free market Nov 03 17:00:59 90 minutes... that's basically driving from SJ to SF to commute Nov 03 17:01:23 longer than 90 minutes during rush hour Nov 03 17:05:41 I live like 5 miles away from the google campus and it takes like 45 minutes to drive there (for like google IO and crap) Nov 03 17:07:14 I am using Retrofit 2.0 library but can't find any example of how to use it with Jackson convertor, all I found on the Internet are examples of its usage with Gson. Nov 03 17:07:59 Retrofit GET call for some reason returns empty body, res.body() -> null and I can't figure out why. Nov 03 17:08:40 Thought maybe in examples with Jackson convertor would be some hints. Nov 03 17:28:48 I always feel bad when I close the Wikipedia "Please donate" message. Nov 03 17:30:09 don't feel bad.... I like to donate my time and when I see something I update the wiki for info Nov 03 17:30:16 TacticalJoke: why don't you donate, are you a greedy man? Nov 03 17:31:18 Or you just don't tip like the guy from Resevoir Dogs movie? Nov 03 17:31:23 hey looking for more ways to handle a transparent activity. So far the only thing that works requires changing the theme in the manifest. Is there other ways to do this ? Nov 03 17:31:31 Reservoir* Nov 03 17:39:52 TacticalJoke: each time you close the Wikipedia "Please donate" message a random Wikipedia page is destroyed in order to save space and hosting expenses Nov 03 17:51:46 Melatonina, sounds awesome, what if I adblock it? Nov 03 17:53:24 Melatonina: That's a great idea. Nov 03 17:53:51 Saving money and guilt-tripping potential donators. Nov 03 17:54:58 Hi! Nov 03 17:55:36 fiveflowerzz: hi!!! ! ! ! ! ! Nov 03 18:10:16 Hi, when an intent filter declares multiple categories, the implicitent intent must match one of the declared categories, is that correct? Nov 03 18:23:27 soulisson: why don't you ask normal question as a normal developers for once? Nov 03 18:23:45 Melatonina: :) Nov 03 18:23:51 :) Nov 03 18:24:15 Melatonina: is there a channel for Android Apps security? Nov 03 18:24:21 I'm joking Nov 03 18:24:28 you are most welcome here Nov 03 18:25:12 Guys, the Android mom is back! Nov 03 18:26:25 soulisson: http://www.linuxtopia.org/online_books/android/devguide/guide/topics/intents/intents-filters.html Nov 03 18:26:39 soulisson: scroll down to "Category test" Nov 03 18:26:47 Melatonina: thanks very much Nov 03 18:27:15 soulisson: "For an intent to pass the category test, every category in the Intent object must match a category in the filter." Nov 03 18:28:45 Melatonina: and when an intent doesn't have a category Android considers the category is default is that right? Nov 03 18:30:08 soulisson: "However, with one exception, Android treats all implicit intents passed to startActivity() as if they contained at least one category: "android.intent.category.DEFAULT" (the CATEGORY_DEFAULT constant)." Nov 03 18:30:19 ok, nice Nov 03 18:32:30 Melatonina: so even if I add explicitly a category to an implicit intent, Android considers has also category.DEFAULT? Nov 03 18:33:30 I don't know but you can test it easily Nov 03 18:36:09 Melatonina: ok,that's what I'm doing but I'm facing an issue I have two activities in an application, both with the same action and the default category, I try to start those activities with an implicit intent, I expected Android to provide me a choice between those two activities, no choice is provided and only the first activity is started, any idea why Nov 03 18:39:39 soulisson: maybe that's the default behaviour. You can check the source code of Android. But I can't point you to the right location Nov 03 18:40:53 soulisson: but an Android security expert who also knows his way into the Android source code must be worth twice as a normal Android security expert Nov 03 18:41:11 Melatonina: certainly Nov 03 18:41:31 now print this message and ask a rise to your boss Nov 03 18:42:06 :) Nov 03 18:45:07 Melatonina: if two activities in the same application respond to the same intent a random one is chosen unless a priority is specified Nov 03 18:45:29 that doesn’t sound right Nov 03 18:45:59 g00s: hi hi Nov 03 18:46:23 soulisson: did you read that? where? Nov 03 18:47:12 oops, sorry it was for a service component Nov 03 18:50:24 My mind if fragmented after making this Floatting action button work in our app, How does everyone keep their android notes. I have notes about themes, color patterns, layouts and everything else under the sun for this one small task and its unorganized Nov 03 18:55:39 Melatonina: I forgot to put my intent filter is an element :) Nov 03 18:56:25 dar10s: I started to developed an app to store Android notes. But you know how this kind of circular stories end, right? Nov 03 18:56:30 develop Nov 03 18:56:46 hey thepoosh Nov 03 18:56:53 I have lots of bookmarks about Android topics Nov 03 18:56:55 have you seen the news? Nov 03 18:56:59 organized in folder Nov 03 18:56:59 about us? Nov 03 18:57:01 folders Nov 03 18:57:11 thepoosh: are you in the news? Nov 03 18:57:34 yessir Nov 03 18:58:34 Melatonina: made the test, Android considers the intent's category is CATEGORY_DEFAULT when no other category is specified Nov 03 18:58:42 for the intent Nov 03 18:59:59 thepoosh nope Nov 03 19:00:14 just a sec Nov 03 19:01:08 g00s: http://www.imore.com/apple-watch-band-camera-what Nov 03 19:02:01 Im testing push notes, how does topics work? Is it not possible to create a topicc by broadcasting or listening to it? Nov 03 19:02:10 Or do i have to do it from developer console? Nov 03 19:05:26 thepoosh hm, i wonder if it could be used to record police brutality :D Nov 03 19:05:34 kinda hidden camera Nov 03 19:05:47 hope it works out for you guys Nov 03 19:05:49 no, there is a red LED that flashes when recording Nov 03 19:05:52 same here Nov 03 19:06:07 electrical tape ? Nov 03 19:06:57 that could work Nov 03 19:07:33 rxjava 1.2.2 Nov 03 19:08:25 ConstraintLayout beta 3 Nov 03 19:08:41 ... and http://android-developers.blogspot.com/2016/11/welcome-to-playtime.html Nov 03 19:11:12 hm bummer, p4merge now behind registration-wall Nov 03 19:13:33 hi Nov 03 19:13:39 thepoosh: what's the story? Nov 03 19:13:43 sittu: hi Nov 03 19:13:59 Melatonina: I linked an article Nov 03 19:14:28 thepoosh its an odd decision, given that the wearables market isn't going well Nov 03 19:14:50 moto and lg just dropped out of it altogether Nov 03 19:15:00 g00s: question is if it's the future Nov 03 19:15:11 in any case, there are about 5M apple watch users Nov 03 19:15:18 i want to print only numeric values on edittext and do nothing if user press any other value,so what to do?Do i need some kind of filter? Nov 03 19:15:34 and according to Tim Cook about a third of them purchased a new watch bad Nov 03 19:15:36 *band Nov 03 19:15:40 so... Nov 03 19:15:46 sittu look at inputtype Nov 03 19:15:56 you could have googled this in 2 seconds Nov 03 19:16:03 and found answers back from 2009 Nov 03 19:16:13 ok ty Nov 03 19:16:21 thepoosh: oh, sorry. I thought it was an article about Apple Nov 03 19:16:27 ha Nov 03 19:16:30 almost Nov 03 19:16:36 the next big company Nov 03 19:18:26 g00s: https://www.producthunt.com/posts/cmra-for-apple-watch Nov 03 19:18:36 thepoosh so you guys get revenue from CMRA sales Nov 03 19:19:13 yep Nov 03 19:19:22 you know how this goes, if it ever became popular, apple would just put the 2 cameras in the watch and force you to use a restricted api :D Nov 03 19:19:49 their stuff becomes black hole for what others have tried Nov 03 19:20:02 beside tim cook is out of ideas Nov 03 19:20:26 tim cook == steve ballmer Nov 03 19:21:56 thepoosh hopefully there will be a more visible outlet like the verge covering it Nov 03 19:22:16 gotta spend more money on marketing :P Nov 03 19:22:24 g00s: they have, and so did yahoo, CNET Techcrunch Nov 03 19:22:26 and others Nov 03 19:22:33 oh , i never saw it ! Nov 03 19:23:35 looking further ... "Contractor Manpower Reporting Application" Nov 03 19:23:37 "Tim Cook" sounds similar to the italian "T'incul" ("You f##k you in the a##"). Nov 03 19:23:54 "CMRA camera band turns your Apple Watch into a first-gen Galaxy Gear" Nov 03 19:24:02 lol http://www.theverge.com/2016/11/2/13496276/apple-watch-camera-band-cmra-strap-glide Nov 03 19:24:45 thepoosh: you are covered by the Italian press too Nov 03 19:24:51 yay! Nov 03 19:24:53 link? Nov 03 19:25:32 http://www.applicando.com/cmra-cinturino-webcam-per-apple-watch/ Nov 03 19:25:44 http://www.macitynet.it/cmra-apple-watch/ Nov 03 19:25:52 http://www.dday.it/redazione/21472/foto-e-video-direttamente-dallapple-watch-con-il-cinturino-cmra Nov 03 19:26:16 Last link is from "Corriere della Sera" which is one of the main newspapers in Italy Nov 03 19:26:36 Melatonina: did they like it? Nov 03 19:26:54 1 sec Nov 03 19:27:42 thepoosh does the apple watch have some kind of connector / port allowing bands to have active circuitry ? or is cmra totally isolated / Nov 03 19:28:03 totally isolated, connections via bluetooth Nov 03 19:28:06 surprised apple didn't do that and license out the connector Nov 03 19:28:14 oh man, bt Nov 03 19:31:19 thepoosh: they are 3 technical preview articles without comments Nov 03 19:31:21 Can you detect Volume Up / Down event? Nov 03 19:31:49 fiveflowerzz: onKeyDown will give you the information of which key it was Nov 03 19:32:30 thepoosh, i would like to have a service which runs all the time Nov 03 19:32:33 (even when screen off) Nov 03 19:32:48 and detects volume up/down to launch an action (like in Tasker app) Nov 03 19:45:14 fiveflowerzz: http://stackoverflow.com/a/7017516/1056359 Nov 03 19:49:30 fiveflowerzz: https://guides.codepath.com/android/Managing-Threads-and-Custom-Services#custom-services Nov 03 19:52:34 thepoosh interesting, so glide is crowdfunding this Nov 03 19:52:53 "We’ll process your payment immediately. You are participating in a crowdfunding campaign for a new product in the final stages of development." Nov 03 19:52:53 no, presales != crowdfunding Nov 03 19:53:24 * thepoosh afk Nov 03 19:56:22 thepoosh well thats what glide's site says when you try to buy one Nov 03 19:56:29 they call it crowdfunding Nov 03 19:57:01 i just read the reviews of each PR article one the first 2 pages of google search ... Nov 03 19:58:16 * thepoosh afk? Nov 03 19:58:18 and? Nov 03 19:59:22 not many comments. trying to gauge reaction Nov 03 19:59:41 r/applewatch didn't like it Nov 03 20:01:44 g00s: https://sites.google.com/a/android.com/tools/recent/constraintlayoutbeta3isnowavailable Nov 03 20:11:28 So what is everybody’s opinion on conductor vs flow? Nov 03 20:11:55 konk3r seems people prefer conductor, i haven't tried either Nov 03 20:12:13 I looked into flow a long time ago but it looked like there was a lot of boilerplate Nov 03 20:12:25 The more recent versions look better with that at a glance Nov 03 20:12:34 konk3r: scoop seems more appealing to me Nov 03 20:12:43 Scoop you say? Nov 03 20:12:52 android is becoming like JS with their frameworks :D Nov 03 20:13:17 konk3r: https://github.com/lyft/scoop Nov 03 20:13:36 konk3r: https://www.youtube.com/watch?v=kAAnIN-IqWw&t=1s Nov 03 20:13:46 I'm sure those other ones are good to though Nov 03 20:14:21 http://julia-phi.tumblr.com/post/129723374436/communified-yesterday-you-said-tomorrow-so-just Nov 03 20:17:01 I recorded a video with my smartphone, then I split it in JPG frames. The size of the resulting folder of frame images is smaller than the original file. Nov 03 20:17:14 Is that normal? Nov 03 20:17:38 it the compression implemented by the smartphone suboptimal for performance reasons? Nov 03 20:17:43 That’s what I was looking for! Thanks yiati Nov 03 20:17:58 Shia does that for you Nov 03 20:33:13 any help implementing a nested comment ui? Nov 03 20:33:19 sort of like in reddit android app Nov 03 20:34:41 ewww my loading animation looks horrible Nov 03 20:35:53 raoul11, looked into this yet? ---> https://github.com/81813780/AVLoadingIndicatorView Nov 03 20:37:03 yeah, watched it earlier, thought bout doing a custom one by myself Nov 03 20:37:03 ill play with my shitty custom one a bit and if it fails, go for avi Nov 03 20:40:29 If i want to detect as a background service a combination of Vol Up, Volume Down Nov 03 20:40:46 should I create a new project with "Add No Activity" in Android Studio? Nov 03 20:42:03 Can anyone point me to something that will help me understand how I need to change my app to write to an Android/data directory on an external SD card under Marshmallow? Nov 03 20:42:18 I've been spending hours googling and haven't found a solution that works. Nov 03 20:42:59 google "runtime permissions" Nov 03 20:43:14 I found one function that parses the output of the mount command and gives me /mnt/media_rw/NNNN-NNNN Nov 03 20:43:33 but I don't seem to be able to access Android/data/a.b.c under that. Nov 03 20:43:51 Oh, does it need different permissions than it needed under kitkat to do that? Nov 03 20:44:36 Marshmallow introduces runtime permissions for some permissions Nov 03 20:44:36 Even to read it? Nov 03 20:44:49 besides adding permission to manifest you need to ask user to accept t Nov 03 20:45:13 havent you had that dialog when using other apps on android 6? Nov 03 20:45:20 I'm still building under an earlier SDK. But I thought that earlier SDK apps could still run under marshmallow? Nov 03 20:45:44 ok if youre targeting 22 then permissions are automatically added on install Nov 03 20:46:03 still, parsing output of mount is not good way to determine external storage Nov 03 20:46:42 https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() Nov 03 20:47:09 and yeah, kitkat introduced READ_EXTERNAL_STORAGE Nov 03 20:47:19 which is granted implicitly in WRITE_EXTERNAL_STORAGE Nov 03 20:48:03 I'm already doing Environment.getExternalStorageDirectory().getPath() for KitKat, but that's apparently not returning the right thing under Marshmallow. Nov 03 20:50:16 getExternalStorageDirectory() is returning /storage/emulated/0 which is the build-in mem, not the card. Nov 03 20:50:49 the "external" is ambiguous apparently Nov 03 20:51:02 I don't think it's the best place to ask for freelancers, but anyway... i'm starting work on a very small app, I'm looking for someone who can do freelancing in this direction Nov 03 20:51:17 If so, feel free to contact in pvt Nov 03 20:51:20 read the room message Nov 03 20:54:31 it's not a "job", it's just a small side-project... Nov 03 20:54:55 it’s still advertising a job Nov 03 20:54:59 Poking around in adb, I seem to be able to see the card at /storage/NNNN-NNNN/Android/data/... but I don't know of a reasonable way to get that programmatically. Nov 03 20:55:03 freelancing is a job Nov 03 20:55:35 no if its free *.* Nov 03 20:56:53 akk, https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() Nov 03 20:57:08 especially "Note: don't be confused by the word "external" here. This directory can better be thought as media/shared storage. It is a filesystem that can hold a relatively large amount of data and that is shared across all applications (does not enforce permissions). Traditionally this is an SD card, but it may also be implemented as built-in storage in a device [...]" Nov 03 20:57:36 i agree, they could have given a non confusing method name instead of a side note in the doc of a confusing method Nov 03 20:57:47 but it's historical, originally, android did not try to eradicate sdcard Nov 03 20:57:55 now it's a real mess Nov 03 20:58:25 Yes, I learned long ago that "external" means internal for android and that getExternalStorageDirectory() doesn't get anything to do with the card. Nov 03 20:58:33 it depends Nov 03 20:58:38 on the rom, devices, etc Nov 03 20:58:53 Anyway, that clearly isn't getting what I need. Nov 03 20:59:02 if you really need to direct your user to the sdcard path, you need to find yourself the way to find this path Nov 03 20:59:10 or provide a filebrowser to the user to select this place Nov 03 20:59:17 or something between those 2 extreme solutions Nov 03 20:59:41 The weird thing is, even running mount in a shell doesn't give me a path that works (/storage/NNNN-NNNN). Nov 03 20:59:45 best solution would be to have the user tell you where it is Nov 03 20:59:56 How would the user know where Android chose to mount it? Nov 03 20:59:58 best solution is to ignore sdcard at all Nov 03 21:00:00 yeah Nov 03 21:00:02 and just care of getexternalstorage Nov 03 21:00:08 remember, not every device has an SD card Nov 03 21:00:22 Sure, the program has options to use internal storage Nov 03 21:00:35 but the stored stuff can be big, and change a lot, so I want the option to put it on the card Nov 03 21:00:42 i wouldn’t bother Nov 03 21:00:51 besides which, I have this card with gigabytes of data on it that I'm transferring from my older phone. Nov 03 21:00:54 if you really want, give the user the option to decide where to store it Nov 03 21:00:54 still like the doc said: "This path may change between platform versions, so applications should only persist relative paths. Nov 03 21:00:54 " Nov 03 21:01:09 so imagine the user updates his device roms, sometimes it happens for real, path is not anymore the same, boom Nov 03 21:01:16 Yes, that's why I want a call rather than hardwiring in /storage/NNNN-NNNN Nov 03 21:01:25 and there is none Nov 03 21:01:41 but it looks like hardwiring is the only option if I want to give the user the choice of using an SD card for large data. Nov 03 21:01:50 Which seems hard to believe. Nov 03 21:01:51 akk: "external" means "non app-private". "Internal" means "app-private". The space for external storage may or may not be allocated in a sd card Nov 03 21:02:23 akk: the best you can do is just give your user the choice of what directory to put it in Nov 03 21:02:30 just use a default available path, the one from getexternalstoragedir for example Nov 03 21:02:31 otherwise don’t worry about it Nov 03 21:02:34 and allow your user to specificy a path Nov 03 21:02:39 that should help mitigate your issue Nov 03 21:02:50 s73v3r: How do I find the list of directories where the app can write? I'm fine with having the user choose from a list Nov 03 21:02:52 akk: I guess at the beginning "external storage" was allocated on sd cards Nov 03 21:03:03 how your user will find the sdcard path, with or without a filebroser, that's another story Nov 03 21:03:16 yeah, don’t present a list Nov 03 21:03:25 if you’re gonna do it that way, just have a file browser Nov 03 21:03:43 It's not reasonable to have the user have to know to type in / s t o r a g e / and then the UUID of the card. Nov 03 21:03:50 The file browser doesn't give that info either. Nov 03 21:04:01 I get OutOfMemory when scaling and cropping large images. Can I use the RegionDecoder to first scale each region and then stitch them back to a smaller variant of the original image? Nov 03 21:04:03 (maybe there are third-party file browsers that do, but none of the ones I've used) Nov 03 21:04:05 i’m saying, let the user choose where they want it saved Nov 03 21:04:16 it doesn’t matter if they choose the card or not Nov 03 21:04:19 s73v3r: I hear that, but how does the user know what to type? Nov 03 21:04:28 you present them with a file browser Nov 03 21:04:43 *BitmapRegionDecoder that is Nov 03 21:04:59 And they have to click around in a file browser looking for somewhere there's an android/data/ directory? Nov 03 21:05:10 no, they chooose where they want it Nov 03 21:05:20 it doesn’t matter where that is, or whether it’s an SD card or not Nov 03 21:05:25 they’ve chosen where they want it Nov 03 21:05:25 But there's only one place they can put it where the app will be able to write to it. Nov 03 21:05:32 Well, two places, one for the card, one for internal mem. Nov 03 21:05:46 you can request write permissions for that directory Nov 03 21:06:09 Under marshmallow I can request write permissions for any directory anywhere? Nov 03 21:06:26 Not just the Android/data/com/etc directories? Nov 03 21:06:29 not any directory, but those on general storage Nov 03 21:06:57 https://developer.android.com/training/basics/data-storage/files.html#GetWritePermission Nov 03 21:07:02 err, external storage Nov 03 21:07:51 My app already requests android.permission.WRITE_EXTERNAL_STORAGE, I needed that for KitKat. Nov 03 21:08:07 But that only worked for the two specific named directories. Nov 03 21:08:14 i think that’s it. Nougat changed some things, but I’m not clear on what Nov 03 21:08:45 But I still don't know how to get the path to that directory. Nov 03 21:09:07 how to change input language method at runtime i mean before start activity ? Nov 03 21:10:02 you can use getExternalFilesDir to get the base directory Nov 03 21:11:26 but at the end of the day, what you want to do, the way you want to do it, just isn’t going to work. it’s not Nov 03 21:11:42 we’re trying to give you a workaround Nov 03 21:13:13 i have two editTexs one of them is for the English language and another for the Persian language i want to change input language method at runtime when user focus on one of them any idea ? Nov 03 21:14:44 I appreciate any workaround. Probably dumb question: getExternalFilesDir() is part of Context. How do I get the context? I've only used Context in onReceive() where it's passed in. Nov 03 21:16:45 an Activity is a context Nov 03 21:21:42 Finally managed to getExternalFilesDir() to run, and it's not helpful, it still points to internal storage. Nov 03 21:22:12 It returns /storage/emulated/0/Android/data/... Nov 03 21:22:29 no, that’s external storage Nov 03 21:22:37 remember, external doesn’t mean SD card Nov 03 21:22:59 Right, it's external by Android's weird definition of it, but it's not on the SD card, which is what I'm trying to get. Nov 03 21:23:13 and that’s what we’ve said you can’t get Nov 03 21:25:30 If I'm making a "service" app Nov 03 21:25:39 do I absolutely need a GUI to start / stop ? Nov 03 21:26:11 if it’s a persistent service, I believe there has to be a notification in the notification area Nov 03 21:26:23 you can put a stop button there Nov 03 21:33:58 Can I explain what I'm trying to do? Nov 03 21:34:26 sure Nov 03 21:39:05 I want to do an app that listens for VOL UP / DOWN button to start audio recording Nov 03 21:39:21 I could use Tasker or launcher apps, but I'd like to code it myself for fun! Nov 03 21:39:26 I found this on github: https://github.com/ergobot/VolumeButtonDemo/blob/master/AndroidManifest.xml Nov 03 21:39:38 is it the right way to go? I should I avoid this, and use a service instead? Nov 03 21:40:53 *or should I avoid this Nov 03 21:41:15 i don’t know. i don’t think it matters Nov 03 21:42:20 how to keep focus on editeTex2 after i restart programmatically app ? there are two editText in activity Nov 03 21:42:53 s73v3r: if I want it to work all the time Nov 03 21:42:59 I need it as a service, right? Nov 03 21:43:04 probably a foreground service Nov 03 21:43:11 but after restart wifh finish and call activity by startActivity () focus goes on editext1 Nov 03 21:43:27 iresf: keep track of which one you’ve got focus before you restart Nov 03 21:43:40 then when you come back, see which one had focus, and give it to that one Nov 03 21:45:47 s73v3r what do you call a foreground service? Nov 03 21:46:08 what's the diff in terms of UI ? Nov 03 21:46:09 a foreground service Nov 03 21:46:20 https://developer.android.com/guide/components/services.html#Foreground Nov 03 21:46:37 keep in mind, I’m not 1000% sure you can have an app with no activities whatsoever Nov 03 21:50:41 fiveflowerzz: http://stackoverflow.com/a/21087442/1229735 Nov 03 21:51:01 fiveflowerzz: No type of service has a UI associated with it Nov 03 21:52:27 fiveflowerzz: tl;dr of that stackoverflow post is that there's no supported way to listen to volume changes Nov 03 21:58:06 yiati: http://stackoverflow.com/a/9162794/1422096 Nov 03 21:58:06 it seems to work Nov 03 21:59:31 fiveflowerzz: Yep, KeyEvents work in an Activity. But you are trying to listen for volume events even when your app is not running right? There are no broadcasts that your app can listen to for that. Nov 03 22:01:06 fiveflowerzz: MediaButtonReceiver seems to be an option for hardware media buttons at least https://developer.android.com/reference/android/support/v4/media/session/MediaButtonReceiver.html Nov 03 22:04:48 Ideally, there would be some Broadcast that the Android system sent when a user presses the volume buttons, and you could then have a BroadcastReceiver in your app that Android will fire up for you (so that you don't have to have a persistent Service running) when that Broadcast happens. In that demo app you posted they are subscribing to an Nov 03 22:04:48 undocumented/unsupported Broadcast that fires when a user presses the volume button, but it doesn't work on all devices since it's not officially supported Nov 03 22:05:40 hum ok... Nov 03 22:05:47 thanks for these very precise informations Nov 03 22:05:56 I wasn't aware of these things Nov 03 22:06:00 how would you do thenN? Nov 03 22:09:17 yiati: the link that you give (https://developer.android.com/reference/android/support/v4/media/session/MediaButtonReceiver.html) seems to state that this is possible, is that right? Nov 03 22:09:44 this is supported for all devices, isn't it? Nov 03 22:10:37 for media controls "such as those found on wired and wireless headsets" yes essentially. It's in v4 support lib so it Nov 03 22:10:37 in order to use this, should I do a normal app (with a GUI), a foreground service, a background service? something else? Nov 03 22:11:09 I don't think it works for phones volume buttons though, but idk you could try Nov 03 22:11:12 yiati: including the phone VOL + VOL - buttons? Nov 03 22:11:19 ok Nov 03 22:12:46 fiveflowerzz: Read up on BroadcastReciever and IntentService http://codetheory.in/android-broadcast-receivers/ Nov 03 22:12:58 Then you won't need to worry about long lived services Nov 03 22:14:07 https://www.cigital.com/blog/ineffective-certificate-pinning-implementations/ interesting article, but wasn't sufficient to discourage or convince a client to abandon this unsecure way (retrieve the hash directly from the server instead of using a known trusted hash outside of the scope of the app or even hardcoded) Nov 03 22:17:51 yiati: but would this work also if screen is off? Nov 03 22:18:41 If you read up on broadcast receivers you'll learn why the answer is yes :) Nov 03 22:20:17 But I see: We shouldn’t be executing jobs that lasts for long in broadcast receivers. Such jobs are usually meant to be executed by Services and hence can be delegated to them. They should only be doing minor tasks as they’re called on the UI thread which means a sluggish experience in case of a long running blocking operation. Nov 03 22:21:20 so your reciever starts a service Nov 03 22:23:33 hum this is complex... Nov 03 22:23:40 can you share a sample code ? :) Nov 03 22:27:54 is there a material icon representing sensors? Nov 03 22:28:06 I cant find any relevant icons -.- Nov 03 22:28:23 doubtful, as “sensors” is a pretty broad and nebulous term Nov 03 22:28:51 just looking for an icon that would represent a hardware sensor Nov 03 22:29:05 again, pretty broad and nebulous term Nov 03 22:29:09 I mean they have an icon for a pregnant women, but nothing for sensors lol Nov 03 22:29:19 pregnant woman is pretty specific Nov 03 22:30:27 Ok? My point is im surprised they have no icons representing any kind of hardware sensors. Nov 03 22:30:40 and my point is that you have to be more specific Nov 03 22:30:53 of course they have no icons representing “sensors”. What the fuck would that be? Nov 03 22:31:02 there are dozens of different kinds of sensors Nov 03 22:31:12 hundreds, even Nov 03 22:31:18 Yes, and there are no icons for any of them Nov 03 22:31:33 for example, an accelerometer Nov 03 22:31:49 so look for a specific thing, not a vague term Nov 03 22:32:04 an accelerometer is usually represented by a 3 axis plot Nov 03 22:32:49 Yes, but the material icon set has nothing like that. Nov 03 22:33:05 so find another source Nov 03 22:33:24 That was not the question lol. Nov 03 22:33:43 no, your question was poorly worded and vague Nov 03 22:34:00 but the answer is, you’re probably gonna have to find another source Nov 03 22:35:05 "Is there a material icon representing sensors?" That question is neither poorly worded or vague. I wont argue with you over something this trivial. Nov 03 22:35:12 Thanks anyway. Nov 03 22:35:19 it is, because once again, what the fuck is “sensors" Nov 03 22:43:34 hi all. im working on a small app(first time) and im getting an error regarding sqlite database, that the table i want to read from does not exists... now, the database isnt created and filled with the app, it just copies over the db file from assets folder to /data/data/databases. and if i open the same databases in sqliteman f ex - the table is there and has values, so what could be wrong? Nov 03 22:44:35 sorry, the paths is /data/data/appname/databases. but yeah.. Nov 03 22:53:21 probably copied to the wrong place/name Nov 03 23:00:30 jadesoturi: you can find the correct path using the method getContext().getDatabasePath(databaseName); Nov 03 23:01:36 databaseName is the name of the database file, including the extension, if present Nov 03 23:02:00 knob: "knob" as in "doorknob"? Nov 03 23:03:45 Yes. Nov 03 23:04:20 Isn't that a bad thing? Like when they say "You are a doorknob"... that's not a compliment, I think Nov 03 23:05:18 Hey, would anyone be able to assist me with a SharedPreferences thing? Nov 03 23:05:48 android-dev549: Take a ticket Nov 03 23:06:02 use '!ticket' Nov 03 23:06:12 ah, my apologies Nov 03 23:06:17 !ticket Nov 03 23:06:27 Alright now your good to go Nov 03 23:06:38 There are 548 developers requiring help before you Nov 03 23:06:48 Be patient Nov 03 23:08:42 Melatonina, ok. thanks ill try that. Nov 03 23:09:04 You're welcom Nov 03 23:09:26 android-dev549: see? One satisfied developer. Still 547 to go Nov 03 23:21:00 android-dev549: You can ask your question now. Nov 03 23:21:05 it's your turn Nov 03 23:26:27 anyone trying to build ConstraintLayout layouts programmatically? i'm getting strange behavior when i try to connect views and guidelines together in code Nov 03 23:27:06 and hi Nov 03 23:46:36 Is there any semi-accurate way to determine the distance of a BLE device from its RSSI strength? Nov 03 23:46:52 SO seems to suggest there isn't Nov 03 23:47:21 not really Nov 03 23:47:45 We don't really get signal "strength" information from stuff anymore. It's all signal/noise ratio now Nov 03 23:47:51 in general, the stronger it is, the closer it is, but that’s it Nov 03 23:49:23 How can I get the name of a user from the google api? Nov 03 23:50:06 I’d imagine it’s in the Accounts stuff. You’ll probably want to start looking over that API Nov 03 23:51:06 Do the bluetooth APIs in iOS have some kind of ranging function for BLE devices? I ask because I was talking with the CEO of one of my clients and he said he had code in their iOS app that does this. Nov 03 23:51:16 I would assume no Nov 03 23:52:27 Are there any free/opensource HTML display libraries, alternatives to WebView? Nov 03 23:52:39 I have an AMD processor Nov 03 23:52:50 anyway I can hook up another emulator with android studio to test the app? Nov 03 23:53:44 can't you use genymotion? Nov 03 23:53:46 orbyt_: It’s the same idea: use the RSSI as a rough approximation for distance Nov 03 23:54:13 Melatonina: currently I build the apk and install it on Droid4X. Would genymotion make the process faster? Nov 03 23:54:41 Yea, he mentioned he had distances in feet/meters though, which I had thought was not possible Nov 03 23:54:46 how do you do that? Just hit build in AS with a device plugged in? Nov 03 23:55:27 orbyt_: they don’t have an API, but i’m guessing they’re using an equation to correlate RSSI with distance Nov 03 23:55:49 Kam: you can start genymotion with a specific button in Android Studio. Once started it's detected by ADB like Android Emulator and you can run and debug your application there Nov 03 23:56:15 I don't know if Genymotion runs on your architecture. You should check it by yourself Nov 03 23:56:17 Melatonina: Cool, I'll give that a shot. Thanks! Nov 03 23:56:29 HAXM == Intel Nov 03 23:56:35 Genymotion == AMD Nov 03 23:56:53 If you're on AMD it's actually stupid-simple to install Genymotion. Nov 03 23:57:16 It pretty much sets all the hooks in Android Studio for you Nov 03 23:57:19 Any free method? Looks like a paid option Nov 03 23:57:36 It's free for singular developers not trying to spin up dozens of VMs Nov 03 23:57:47 no, it’s free for non-commercial use Nov 03 23:57:48 hi my directions for compiling in android studio say to go to console (done that in android studio, set sdk and ndk paths...done that then it says to execute android update project --target --path Nov 03 23:57:50 It just requires a bit of registration, but they haven't bothered me in two years Nov 03 23:57:57 but android update project doest exist Nov 03 23:58:06 if you’re making money off the app, then you have to pay for it, even if you’re a singular developer Nov 03 23:58:37 the indie license is quite affordable and i would recommand it Nov 03 23:58:43 Its a school app. No profits Nov 03 23:58:44 also HAXM == intel on win or osx Nov 03 23:58:51 genymotion == virtualbox with vt-x Nov 03 23:59:00 you cannot really compare both of them Nov 03 23:59:09 virtualbox takes up more power Nov 03 23:59:14 you got kvm on linux instead of HAXM Nov 03 23:59:21 Personally I prefer KVM immensely Nov 03 23:59:24 virtualbox is pretty light Nov 03 23:59:30 especially if the guest is not doing much Nov 03 23:59:31 should I get with VirtualBox or without? Nov 03 23:59:46 you should try the different alternative yourself, and keep the one(s) you like Nov 04 00:00:08 you have the official avd (qemu) image, genymotion (vbox under the hood), visual studio emulator (windows with hyper-v, incompatible with HAXM) Nov 04 00:00:11 etc Nov 04 00:00:13 anyone able to help? should I install something besides android studio, sdk and ndk Nov 04 00:00:31 transhuman: whats your question? Nov 04 00:00:48 I have 2 activities in my program Nov 04 00:00:57 transhuman, after installing android studio, run it and go into tools menu, then android, then sdk manager Nov 04 00:00:58 the main one has a button you press to go to the next activity Nov 04 00:01:06 pick and/or update things there Nov 04 00:01:18 http://prntscr.com/d2ta6x Nov 04 00:01:40 and my other screen just opens a webpage Nov 04 00:01:40 http://prntscr.com/d2taab Nov 04 00:01:52 but it constantly shows that webpage is not available Nov 04 00:01:56 I've tried different domains Nov 04 00:02:06 and I have the internet permission in manifest Nov 04 00:02:07 maybe you need to add internet permission Nov 04 00:02:20 Nov 04 00:02:30 ok then try without https, otherwise i have no ide Nov 04 00:02:33 I have it in main activity and the web_clubs one Nov 04 00:02:33 idea* Nov 04 00:02:39 I did Nov 04 00:02:42 ok your missing what I mean the command "android update project" is not found at the terminal on linux so is it called something different ..I am trying to follow the directions for compiling tesseract Nov 04 00:03:01 you should use the android:please="true" when you ask permissions Nov 04 00:03:21 Melatonina, avoid misleading ppl seeking for help please, even if it might be fun for you Nov 04 00:03:24 transhuman: I've used ocr-tesseract on linux Nov 04 00:03:28 this is just a place where ppl request & provide help Nov 04 00:03:47 thts good to here Kam! Nov 04 00:03:51 hear Nov 04 00:03:54 adq: wasn't it fun for you? Nov 04 00:04:01 transhuman: i’m betting your instructions are out of date Nov 04 00:04:07 come on, it was fun Nov 04 00:04:07 nope, but humour is like color you know Nov 04 00:04:08 transhuman: What're you trying to do? Nov 04 00:04:17 ocr-tesseract stinks Nov 04 00:04:18 imo Nov 04 00:04:23 yeah sounds like an old eclipse instruction Nov 04 00:04:37 black91: I used it for a project >.< Nov 04 00:04:42 now you build stuff either with gradlew in CLI or directly in AS which will call gradle Nov 04 00:04:55 compile tesseract with tess-two, eyes-two for an another project with full english ocr training modules Nov 04 00:05:10 does the project have gradle? Nov 04 00:05:11 transhuman: oh, I've only used it to convert image to text Nov 04 00:05:18 lets teach robots to detect shit grins guys Nov 04 00:05:25 yes to convert images to text Nov 04 00:05:37 I'm lonely. I need friends Nov 04 00:05:47 it was a project for the visually impaired Nov 04 00:06:04 then wheres the audi Nov 04 00:06:06 o Nov 04 00:06:20 ideally I would like to find training data that would help with detecting ingredients off of cereal boxes and stuff Nov 04 00:06:38 Melatonina: http://ipetcompanion.com/ Have fun! Nov 04 00:06:52 i like where thats going tho transhuman Nov 04 00:06:56 lol Nov 04 00:07:30 anyways is there a set of directions anywhere (new to android development that might walk me through this Nov 04 00:07:54 :( Nov 04 00:08:11 not specifically for that library, no Nov 04 00:08:20 you might need to go find their channel or forum and ask them Nov 04 00:08:22 orbyt_: that was not fun Nov 04 00:08:33 ? Did you pet the cats? Nov 04 00:08:36 Hows that not fun Nov 04 00:09:06 adq: Is there an alternative to open the webpage? Nov 04 00:09:14 without opening the actual browser? Nov 04 00:09:30 ok i will see if there is a channel for tesseract...didnt think of it Nov 04 00:09:56 transhuman: Very inactive. You're better off on github or google group Nov 04 00:10:29 https://github.com/tesseract-ocr/tesseract/tree/master/android Nov 04 00:10:38 Kam, not aware of Nov 04 00:11:12 Such a simple function Nov 04 00:11:20 and its not working Nov 04 00:11:25 welcome to android dev Nov 04 00:12:12 man this sucks Nov 04 00:12:30 and Genymotion is giving me a pain in the ass too Nov 04 00:12:32 Kam, https://guides.codepath.com/android/Working-with-the-WebView this might help you Nov 04 00:12:48 I tried webview Nov 04 00:12:52 be sure that where you test (the device or vm or whatever) has network connectivity Nov 04 00:12:56 it opens the browser Nov 04 00:13:04 because without much error, logs or anything, no one can guess Nov 04 00:13:15 and you already told us, you added the internet permission Nov 04 00:13:15 Genymotion is just stuck on Loading plugins Nov 04 00:13:20 so it might be something ridiculous Nov 04 00:13:28 http://prntscr.com/d2te3c Nov 04 00:13:46 yeah but that's unrelated, this is genymotion splash screen on your computer Nov 04 00:14:24 CCleaner may be a problem Nov 04 00:14:30 prolly what it is Nov 04 00:14:42 clean cache and try again Nov 04 00:15:13 i don't think this has anything to do with ccleaner, i'm not sure what is happening here Nov 04 00:15:20 with ppl misleading or misredirecting others Nov 04 00:15:31 frequency is increasing Nov 04 00:15:37 plz contact a pc tech Nov 04 00:15:55 or a manufacturer of computer Nov 04 00:16:59 orbyt_: cats ignored me Nov 04 00:17:13 ..Oh Nov 04 00:20:20 I almost broken one of the remotely controllable toys and another cat ignore me Nov 04 00:20:24 ignored Nov 04 00:20:57 broke Nov 04 00:21:17 I has been a depressing experience Nov 04 00:21:30 installing Gennymotion /w virtualbox Nov 04 00:21:37 join #depression, life sucks get over it Nov 04 00:24:07 Melatonina melatonin can cause depression Nov 04 00:24:51 And I really prefer making friends here Nov 04 00:25:02 Pets are just pets Nov 04 00:31:38 black91: your wrong suggestions to people here are not funny Nov 04 00:31:50 black91: please stop Nov 04 00:32:55 like your suggesstion at 18:00, your are an unhelpful nuisance to this room Nov 04 00:32:57 ? Nov 04 00:33:50 because my recommendation was correct, this is Android dev, not third party emulator support, Genymotion is a company, contact them Nov 04 00:37:37 black91: my suggestion was obviously false at first sight. I was not actually misdirecting other people. And I help people. I never saw you contribute anything. Nov 04 00:37:51 using emulator is part of android development Nov 04 00:38:29 google is also a company. Following your "ideas" we should shut down the channel and contact google for everything about android development Nov 04 00:38:53 not third party emulator, adb and AVD. Genymotion im sure provides technical support Nov 04 00:39:12 google too has forums and groups Nov 04 00:39:25 for genymotion? definitely not Nov 04 00:39:46 you said it yourself Nov 04 00:39:48 Now I understand why everybody ignores you and talks to your back Nov 04 00:40:25 you're grounded, get to bed Nov 04 00:51:50 Anyone used firebase? Nov 04 00:52:04 yes, lots of people Nov 04 00:52:47 I want users to login using a gmail account and just grab their name Nov 04 00:52:56 (i'm very new to android development) Nov 04 00:55:38 black91, sorry just saw your post...I will look at that unfortunately i think my problem is with changes to android studio (this is just one small piece of a much bigger thing I am doing) Nov 04 00:56:11 bb soon Nov 04 00:56:52 bankai_: https://codelabs.developers.google.com/codelabs/firebase-android/ Nov 04 00:57:01 that should help me out right? Nov 04 01:00:14 transhuman: black91 suggestion was a (bad) joke. Ignore it. Nov 04 01:01:28 Kam: when I used Firebase I found it well documented Nov 04 01:01:54 Kam: but I never used to manage logins Nov 04 01:02:06 I'm following the document for the friendlychat Nov 04 01:02:18 I just need to use the emails to get the real name Nov 04 01:39:47 well thanks figured it out myself. the executables are found android sdk path and android ndk path they have to be added to the PATH environment variable Nov 04 01:56:42 AS needs a "push this to both my damn devices" option Nov 04 01:58:06 Would it be outside the scope of this channel to ask how an app can be listed in the Google Play store in categories that aren't selectable in the Dashboard? For instance, my Educational game can be under "Business Sim" but I'm not sure how that gets decided. Nov 04 01:59:09 Not a clue but I'd wager if you just poke at the developers interface you'll find where the subcategories are Nov 04 01:59:21 I vaguely remember seeing a bunch of stuff I didn't care about when I put PDART up Nov 04 01:59:48 No one's going to downloading because they saw it in a category so caring level zero Nov 04 02:00:03 Heh, ok. Nov 04 02:01:07 When using firebase Nov 04 02:01:15 I login, but it just shows the same screen o.O Nov 04 02:13:41 Melatonina: When I login using gmail Nov 04 02:13:51 Melatonina: It doesn't redirect me to next activity Nov 04 02:14:37 Melatonina: It doesn't display any errors in logging in either :/ Nov 04 02:18:26 hi another question it says to include a line in the project.settings file but I dont find one.. How do I create one? Nov 04 02:19:54 is the local.properties a new name for it or project.properties? Nov 04 02:25:46 Has anyone else used Firebase? Nov 04 02:26:34 Apparently match_parent in some layouts within dialogfragments is secret code for "just don't show me this at all" Nov 04 02:49:39 Well, this is definitely a sinister sneaky in zxing's docs... Nov 04 02:50:06 The docs make it look super easy to scan QRCodes, and it is... until you combine it with any other use of fragments Nov 04 02:50:35 They don't do a super.onActivityResult in their example, and it leads to a _very_ weird error about onSaveInstanceState later on **** ENDING LOGGING AT Fri Nov 04 03:00:00 2016