**** BEGIN LOGGING AT Fri Oct 14 02:59:58 2016 Oct 14 03:13:52 "Yahoo Patents Smart Billboard That Would Deliver Targeted Ads To Passersby or Motorists" Oct 14 03:14:03 sure google would love to do this too Oct 14 03:15:37 i hope the adverts are small... not sure i want other people seeing the things it would be advertising to me Oct 14 03:17:09 bankai_ Billboards usually aren't small :D Oct 14 03:17:24 some enlightened cities have banned them Oct 14 03:17:34 north korea? :P Oct 14 03:25:43 or I can just not use an animated vector Oct 14 04:20:27 Hi all, trying to convert all key's and values of a hashmap to lower case using Java 8 functional interfaces. I'm novice, plus it's my first time with the functional interfaces. Will i be able to have an elegant solution, or will it be messy? Oct 14 04:24:09 jellycode: I would assume it would look like this. map.forEach({k,v -> map.put(k, v.toLowerCase())}) Oct 14 04:24:14 not tried it though Oct 14 04:25:38 wow... java 8 is amazing... i got it Oct 14 04:25:39 that's java? looks like ECMAScript/JS ☺️ Oct 14 04:25:46 http://stackoverflow.com/questions/25903137/java8-hashmapx-y-to-hashmapx-z-using-stream-map-reduce-collector Oct 14 04:26:29 The answer from John Kugelman, i just replaced the to lamda's e.getKey().toLowerCase() and e.getValue().toLowerCase() Oct 14 04:26:47 are you the capella in #javascript? Oct 14 04:27:34 er, no 🤔 Oct 14 04:27:57 but I've written a bunches of that stuff Oct 14 04:30:03 jellycode... this is my registered nick - used on my desktop Oct 14 04:30:08 Haha Oct 14 04:30:25 not sure about #javascript .... I can pop over ;) Oct 14 04:30:36 well, whoever i saw isn't there now Oct 14 04:30:46 maybe it was in #nodejs, which has recently gone invite only Oct 14 04:31:06 oh mmm ... maybe ... Oct 14 04:31:15 Ahhh Oct 14 04:31:17 no, it's canela Oct 14 04:32:00 Also, looking for a shorter version of this: this.baseDir = new File((String) Optional.ofNullable(hostProps.get("basepath")).orElse("..")); Oct 14 04:33:00 oh :) Over @ moz people used to sersly confuse me with mcomella ... heh ... Mike and I both had long-dark hair and basically thin ... it was fun :D Oct 14 05:01:49 lol what is this garbage https://github.com/guardianproject/android-support-library/blob/master/v4/java/android/support/v4/provider/RawDocumentFile.java#L48 Oct 14 05:04:23 that looks like exception swallowing Oct 14 05:08:10 gordon_ another cool electron app :D https://keeweb.info/ Oct 14 05:14:46 nice one Oct 14 05:14:48 you don't need that if you use the same password for everything.... Oct 14 05:14:52 i'm working on my first electron app to Oct 14 05:14:58 indeed Oct 14 05:18:28 jellycode is it pretty easy to ise TypeScript with electron? MS does it w/VS Code ... just wondering if you have tried it Oct 14 05:18:56 g00s_: return null in case of exception, why not? Oct 14 05:19:23 indentation is a bit messed Oct 14 05:19:26 squ so how do you know what went wrong? Oct 14 05:19:40 what is this guardianproject ? Oct 14 05:19:49 forget that, thats the support lib Oct 14 05:20:01 "Failed to createFile: " + e); Oct 14 05:20:08 should print the stack trace probably Oct 14 05:20:23 sure that works great with your app in production ;) Oct 14 05:21:09 :) Oct 14 05:21:24 but this is how everything is done in java Oct 14 05:21:45 I use vscode Oct 14 05:21:55 not using typescript, can't comment Oct 14 05:22:42 g00s_: that method should raise an exception and pass it, not catch and handle it — is that what you want to say? Oct 14 05:23:07 so that your code could handle it Oct 14 05:40:23 have you heard about initiative to ban android devices to airlines Oct 14 05:41:26 well, the note 7 seems to be banned at a few airlines Oct 14 05:46:33 completely understandable considering that the oem has issued a mandatory recall Oct 14 05:46:34 hi Oct 14 05:47:31 hello Oct 14 05:47:54 How do I transparently intercept calls to my server with mock responses? - http://stackoverflow.com/q/40033482 Oct 14 05:49:42 no idea i'm afraid Oct 14 06:02:00 AlecTaylor, if you're using retrofit, just implement the interface instead of passing it to retrofit Oct 14 06:02:16 Not using retrofit, just okhttp Oct 14 06:02:35 But I want some kind of full DI or transparent proxy Oct 14 06:02:55 Not something piecemeal like component isolation testing Oct 14 06:03:33 are you using DI currently? Oct 14 06:03:38 I assume you mean dep injection Oct 14 06:05:58 yeah Oct 14 06:06:45 so inject a mocked implementation of your service Oct 14 06:07:05 if you don't have an abstraction between OkHttp and whatever's calling it, add one Oct 14 06:14:24 AlecTaylor: oh, and have a look at thid Oct 14 06:14:25 https://github.com/square/okhttp/tree/master/mockwebserver Oct 14 06:14:27 *this Oct 14 06:18:54 does java have the ternary operator or not? Oct 14 06:19:32 i see examples here that do it Oct 14 06:19:38 but, they're not working properly for me :( Oct 14 06:19:46 i guess, i have my answer, it's just my problem Oct 14 06:20:08 it does Oct 14 06:21:46 jellycode, sometimes you need to add brackets as the operator presedence can trip you up Oct 14 06:21:56 ahh, that probably it Oct 14 06:22:25 "value = " + value == null ? null : value.value(); doesn't work if i remember rightly Oct 14 06:22:40 it tries to concat first and a string isn't a boolean so it falls over Oct 14 06:35:36 alex_PP: Yeah that doesn't do what I want Oct 14 06:36:06 That just tested that your API client returns something, what I want is a full API server that runs alongside the app Oct 14 06:36:09 (but mocked obviously) Oct 14 06:37:34 do you care about testing all the http stuff? Oct 14 06:37:56 if not add an abstraction and test against that Oct 14 06:38:43 not sure you gain anything by testing okhttp, square already did that Oct 14 06:48:33 Why does this say that Java doesn't have elvis operator? http://winterbe.com/posts/2015/03/15/avoid-null-checks-in-java/ Oct 14 06:58:04 Because it doesn't have it Oct 14 07:01:07 http://i.imgur.com/x0lph92.png Oct 14 07:57:56 Good morning folks. I´m trying to get a custom view working. Want to draw a simple rect for now. I simply don´t see it in the IDE or when testing the app Oct 14 07:57:59 Code: http://pastebin.com/JUXZ7Jqm Oct 14 07:58:06 Could anyone tell me what I´m doing wrong? Oct 14 08:00:53 Ywa, maybe your getWidth/Height return 0 Oct 14 08:01:30 iprime, I have both set in my layout xml to 70dp though. Or should I use other functions to get the width and height? Oct 14 08:01:59 i think they'll be calculated after layouting Oct 14 08:02:16 try to get them on every draw, just to test Oct 14 08:04:38 getWidth() getHeight() will return 0 when view is constructed but not laid out yet Oct 14 08:04:45 another thing with custom views using a canvas to draw is to make sure you're using software rendering, i.e. disable the hardware layer Oct 14 08:05:30 it is better to get the size in onDraw though Oct 14 08:05:44 and/or use getMeasuredWidth() Oct 14 08:06:18 Isn´t there a function between construction and onDraw? It feels as bad practice to setup my rect in onDraw itself (even though I can still do it only once in onDraw) Oct 14 08:06:49 well there are surely more callbacks Oct 14 08:06:53 there's onSizeChanged and whatnot Oct 14 08:07:01 Will look into that Oct 14 08:07:07 Using getWidth(), getHeight() in onDraw works. Thanks iprime and Ashiren Oct 14 08:07:08 like you can get view.getViewTreeObserver().setOnPreDrawListener() Oct 14 08:07:32 but i think there could be some callback like onAttachToParent() Oct 14 08:07:54 https://developer.android.com/reference/android/view/View.html#onAttachedToWindow() Oct 14 08:08:00 draw a rekt Oct 14 08:08:07 Yes. Thanks again Oct 14 09:03:44 Hi, I was trying to make a vertical slidable dialog like Uber app, I made a base dialog & dialog fragment for it, in similar pattern as BottomSheetDialogFragment. I am facing an issue now, I have a FrameLayout content which does all the sliding and has an onTouch listener on it, now if I insert a view inside it and set a click listener on it, the ontouch stops working. How can i fix it? Is there an open Oct 14 09:03:46 source lib that i can read to fix this? Oct 14 09:04:33 The second option i can do is use CoordinatorLayout and its behavior to do all the sliding but I'm saving that option as a last resort Oct 14 09:11:39 hi all Oct 14 09:12:04 Does the Download Manager ensure downloaded files are free from corruption? Or should I implement a MD5 hash checking system? Oct 14 09:17:14 Download Manager can't know that, so you'll have to check youreself. Oct 14 09:17:20 After all, where would DM get the MD5 to check >( Oct 14 09:17:36 Mavrik: true :) Oct 14 09:17:39 ta Oct 14 09:23:47 Hi all im creating an app that pushes data to a rest server with simple post requests Oct 14 09:24:02 but i need realtime updates back to the clients, how could i do this? Oct 14 09:24:14 websocket Oct 14 09:26:36 GCM Oct 14 09:27:13 FCM now Oct 14 09:27:21 can't make new GCM projects Oct 14 09:27:47 i dont want FCM Oct 14 09:27:57 Dont want to share my data with google. Oct 14 09:28:07 or well the data of my users Oct 14 09:28:39 someone has used cmake 3.7 with Nsight Tegra for Visual Studio yet? Oct 14 09:28:55 cmake 3.7 added android support, but i am facing bugs Oct 14 09:29:02 then encrypt the data! Oct 14 09:29:19 well if your app is run on android, google knows it anyway Oct 14 09:29:25 regarding gson, what's the difference between @Keep and @Expose ? Oct 14 09:30:24 isn't @Keep for proguard? Oct 14 09:30:31 feliwir, wait for the thing to actually be supported first I guess. Oct 14 09:30:31 https://developer.android.com/reference/android/support/annotation/Keep.html Oct 14 09:30:34 https://static.javadoc.io/com.google.code.gson/gson/2.6.2/com/google/gson/annotations/Expose.html Oct 14 09:30:57 Mavrik, it is supported according to documentation Oct 14 09:31:13 https://cmake.org/cmake/help/v3.7/manual/cmake-toolchains.7.html#cross-compiling-for-android-with-nvidia-nsight-tegra-visual-studio-edition Oct 14 09:31:42 But you're facing bugs. Oct 14 09:32:03 ask cmake people Oct 14 09:32:23 Because you installed something that's not even released yet (CMake 3.7 is in RC stage). Oct 14 09:32:48 It'll probably work on its own, but issues with IDE integration on such changes aren't unexpected or rare. Oct 14 09:32:55 Mavrik, yea but the Nvidia Tegra stuff was part for cmake in earlier versions already Oct 14 09:32:56 yeah i spent more than half of yesterday figuring out why the fields in my pojo were not serialized.. used @Keep instead of @Expose in combination with excludeFieldsWithoutExposeAnnotation :(( Oct 14 09:33:53 Mavrik, see: https://cmake.org/cmake/help/v3.6/manual/cmake-toolchains.7.html#cross-compiling-using-nvidia-nsight-tegra Oct 14 09:40:46 Why I can't use any emulator while any other virtual os is running? Any solution to this? Oct 14 09:42:13 Probably your CPU is missing the correct virtualization extensions? Or your other virtual software is doing something to fight with qemu? Oct 14 09:48:01 So, I have a couple jar files that I need to include in my project. I've put them in the "app"/libs folder, and have compile fileTree(dir: 'libs', include: ['*.jar']) in my build.gradle Oct 14 09:48:14 but when I go to use them, the IDE can't seem to find them. how can I get the IDE to recognise them? Oct 14 09:48:35 Are raw TCP sockets an good option in android ? Oct 14 09:48:43 or are there any big drawbacks Oct 14 09:49:10 sounds low level Oct 14 09:49:18 Mavrik: I found it. We can't use same processor for different OS running at same time. One have to disable hardware acceleration for emulator to work. Oct 14 09:49:35 Ashiren, it is, but websockets is low level to Oct 14 09:49:37 too Oct 14 09:49:53 is it Oct 14 09:50:23 back in the days when windows 8 came out I ran virtualbox on my windows and tried to do some windows store development... running the emulator would cause a bluescreen because vt-x was already reserved by virtualbox Oct 14 09:50:57 If I want to use Java 8 features (streams, default methods in interfaces) then I need to change my minSdk and targetSDK to 24? I can't use them at all on something like SDK 19? And if I have code using them I need to rewrite it? Oct 14 09:51:32 some language features are available through jack but library features (like streams) aren't Oct 14 09:51:39 on pre-24 Oct 14 09:51:41 well theres some thing like retrolambda Oct 14 09:51:57 but full(?) support exists only in 24+ Oct 14 09:52:19 jack still isn't usable though Oct 14 09:52:31 okay. I don't want to use retrolambda (it would be too much for me). And I can't make jack work. Oct 14 09:52:44 why would retrolambda be too much? -.- Oct 14 09:52:46 So I'll rewrite some things. Thanks for answers. Oct 14 09:52:56 Zharf: I don't know. I don't want to mess up something again. Oct 14 09:53:13 it's literally a few lines in build.gradle files Oct 14 09:53:20 oh Oct 14 09:53:28 Let's try it then. Oct 14 09:53:29 (apply plugin, set language level to java 8) Oct 14 09:53:42 https://github.com/evant/gradle-retrolambda Oct 14 09:54:18 I have noticed that my build.gradle is a bit weird. Everything is gray and yellow-highlighted. Oct 14 09:56:55 change theme [solved] Oct 14 09:57:45 eh. Maybe my use of java 8 features is not a problem. I'm still getting the same error as yesterday :( Oct 14 09:58:13 what's that Oct 14 09:59:05 Zharf: you mean the error? http://pastebin.com/raw/nVHMYXzT Oct 14 10:08:07 karkoon, need more log Oct 14 10:08:11 that doesn't tell the actual error Oct 14 10:08:32 unless you didn't actually specify the source and target language levels in build.gradle Oct 14 10:09:05 t2mkn, hmm, sure you can. What's your host OS? Oct 14 10:09:18 karkoon, http://c20b4e92edf35405.paste.se/ Oct 14 10:09:47 Mavrik macOS Oct 14 10:10:08 Hmm, I regullarly run Genymotion / AVD / VMware at once with different OSes. Oct 14 10:10:54 Dont know but it's happening with me Oct 14 10:11:04 lacking cpu features? Oct 14 10:11:17 emulator just don't start if other guest is running Oct 14 10:12:00 That or using a funny non-compatible VM. Oct 14 10:12:09 Zharf: I have something similar in one of my gradle files... (but I didn't write them and I don't really know how they work.) Oct 14 10:12:12 I know VirtualBox liked to crash the OS if AVD was run on some versions. Oct 14 10:12:40 ya, its VB Oct 14 10:16:46 Mavrik https://code.google.com/p/android/issues/detail?id=197915 Oct 14 10:17:31 Ah. Oct 14 10:17:42 does dex convert files starting from the first class in alphabetical order? Oct 14 10:17:47 Never tried Hypervisor.framework so I guess that one is incompatible :) Oct 14 10:18:16 because if yes then it says that it fails at the start because something something version 52 not supported. I have to go now. Oct 14 10:18:58 ya Oct 14 10:20:16 karkoon, sounds like you're using an old java to compile for a newer version which obviously isn't supported Oct 14 10:20:31 javac* Oct 14 10:20:40 Yep, that's Java 6 JRE/JDK complaining when it sees a Java 7 file. Oct 14 10:20:40 Zharf: I think I have only the latest jdk installed. Oct 14 10:21:01 Mavrik, 52 is java 8, so it could be java 7 complaining too Oct 14 10:21:07 right :) Oct 14 10:21:46 karkoon, make sure you're using jdk8 Oct 14 10:35:21 I think I am. I don't have any javac.exe besides for jdk8 Oct 14 10:38:12 that's not what the error suggests Oct 14 10:39:30 is there a max value I can put in using: list.add(new byte[] { 0x24 }); Oct 14 10:39:56 0x24 is the $ sign, but I want the £ sign, which is hex 0xa3, but it doesn't like that Oct 14 10:41:00 byte can take -128 to 127 Oct 14 10:41:05 or up to 0xFF Oct 14 10:42:57 try (byte)0xA3 Oct 14 10:43:12 since 0x80 it will complain Oct 14 10:43:29 it doesn't work without a cast because in java there's no unsigned types Oct 14 10:44:27 Well, this is where it's odd, it works fine with 0x24 and 0x1d Oct 14 10:44:51 those are < 0x80 Oct 14 10:44:58 ah ok Oct 14 10:45:05 so anything > 0x80 you need to cast Oct 14 10:45:08 yep Oct 14 10:45:10 er Oct 14 10:45:12 >= 0x80 Oct 14 10:46:14 OK, with the (byte)0xa3 that compiled, and printed, but, it didn't print the symbol I wanted. hehe Oct 14 10:46:36 how do you print it? Oct 14 10:47:07 it's going to a Bluetooth printer Oct 14 10:47:41 as bytes? Oct 14 10:47:52 to send text, I'm doing: Oct 14 10:47:52 list.add("AMOUNT ".getBytes()); Oct 14 10:48:09 when I changed back to (byte)0x24, it's now no longer printing the $ sign Oct 14 10:48:32 I guess yeah, they must be sent as bytes by doing the .getBytes() within the array assign Oct 14 10:50:08 that's probably safer, although you could inspect the bytes and see what it actually sends Oct 14 10:51:25 yeah, if I remove (byte) from before 0x24, I get teh $ symbol again Oct 14 10:51:40 so the (byte) seems to be breaking it unless that can't cast hex properly maybe Oct 14 10:54:14 Why do so many things have to make the £ sign so hard to do Oct 14 10:55:04 when it can print cyrillic perfectly fine, is it too much to ask for a currency symbol to just work hehe Oct 14 10:55:31 I wonder what charset it's using Oct 14 10:56:57 yeah, not sure on that one Oct 14 10:57:02 I'll just use GBP instead hehe Oct 14 10:57:27 does it work if you use "£".getBytes() Oct 14 10:57:37 £ dropped so much recently it wont matter much soon, so screw it Oct 14 10:57:42 :p Oct 14 10:57:59 nah, if I do that, I get some REALLY weird characters Oct 14 10:58:29 that's what I tried first, cos that is how the $ was done, so I assumed the £ would work too Oct 14 10:58:34 two characters? Oct 14 10:59:18 ueah, like a u with a ^ above it and then a B that looks like the german double-s character Oct 14 10:59:31 I'm really going to suggest that you're falling into a trap with default encodings, you should specify an encoding with getBytes as a parameter Oct 14 11:00:12 yeah, my manager just said to use GBP instead , so I'm fine with that Oct 14 11:00:40 not bad for a morning's work though, replicating receipts so that they look almost identical Oct 14 11:03:10 https://i.redd.it/f3o0ovmg69rx.png Oct 14 11:09:12 Zharf: I'm developing a libgdx game and the project is divided into 3 modules. One for desktop, one for Android and one called 'core'. I was toying with the configuration of the Android build.gradle and everything that was connected with it. I have tried now to change the source compatiblity of the 'core' module to 1.7 and then Intellij cried that I'm using 1.8 features (which is understandable) and now I have rewritten them to wo Oct 14 11:32:33 hi people's republic of android dev Oct 14 11:32:35 ;) Oct 14 11:32:45 karkoon, get split_lines.pl, your line got cut off ;) Oct 14 11:33:01 er, splitlong.pl Oct 14 11:33:07 could someone take me screenshots of my app using a terminal please? i'm blocked Oct 14 11:33:09 I never remember the name of that script properly Oct 14 11:33:20 blocked? Oct 14 11:34:03 using a terminal? Oct 14 11:34:15 Ashiren: i am lost. i mean emulator Oct 14 11:34:43 try starting again, you're not making any sense Oct 14 11:35:03 i want someone to take me screenshot of my app using a emulator. Oct 14 11:35:50 and what's the problem? Oct 14 11:36:12 Zharf: eh... in which part did it split? Oct 14 11:36:28 doesn't the emulator have a screenshot button? Oct 14 11:36:33 karkoon, rewritten them to wo Oct 14 11:36:45 Zharf: i am blind. the emulator isn't usable here Oct 14 11:36:53 DelphiWorld, oh Oct 14 11:36:56 Zharf: I have rewritten them to work on 1.7. And it compiled now! :D Oct 14 11:37:41 I think that retrolamda didn't work for me because I have written it as a dependecy/something for android module and not the core module. Oct 14 11:38:54 DelphiWorld, so is your problem taking the screenshot or using the application in such a way that would get you the screenshot you want? Oct 14 11:39:57 so..., Someone? Oct 14 11:40:13 DelphiWorld, how would you transfer the apk Oct 14 11:42:15 Zharf: download link? Oct 14 11:42:33 Zharf: do you want a release signed one, or a debug one so you can adb it Oct 14 11:42:41 doesn't matter Oct 14 11:42:59 Zharf: ok, let me give a dbg one so easy to do Oct 14 11:44:09 I think it should be possible to write a shell script that would install, run, navigate and take a screenshot of your application Oct 14 11:44:21 but sure I can take a screenshot of the app for now Oct 14 11:45:20 Zharf: well love to write it if i get any idea!!! Oct 14 11:51:09 Zharf: do you use a linux or a windows box? Oct 14 11:51:17 both Oct 14 11:51:37 Zharf: ok, when you take the screenshots, i'll give you a sftp account to push them Oct 14 11:58:37 is it good to show ad on screenshots that's destined for google play submition? Oct 14 11:59:01 i wouldnt show any ads Oct 14 11:59:11 Ashiren: ok Oct 14 12:00:07 hello everyone Oct 14 12:00:22 ohai Oct 14 12:00:39 I have question regarding shared animations Oct 14 12:01:14 just ask and someone might answer Oct 14 12:01:19 is it possible to do shared animation from listview/recyclerview from one activity to recyclerview in another activity ? Oct 14 12:02:13 shared animations work with unique ids, so I'd say yes Oct 14 12:03:06 and you set uniqueids as transitionName ,right ? Oct 14 12:03:14 yes Oct 14 12:04:52 well I did that in viewholder itemview.setTransitionName("name") and nothing happens and code which I'm calling is ActivityOptionsCompat transitionActivityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation((Activity) mContext,view,"name"); mContext.startActivity(intent, transitionActivityOptions.toBundle()); Oct 14 12:05:16 am I missing something ? Oct 14 12:05:20 your transitionname has to be *unique* to the whole activity Oct 14 12:05:30 you can't have the same name in every item on the list Oct 14 12:05:37 (not sure if that's the problem) Oct 14 12:06:02 also another problem might be that you might have to delay the transition if the element isn't immediately available on the receiving activity Oct 14 12:07:11 Zharf I only have one item of that type in recyclerview it's like header Oct 14 12:07:31 ok Oct 14 12:07:46 okey that could be the problem Oct 14 12:07:51 but how do I delay transition ? Oct 14 12:09:19 postponeEnterTransition Oct 14 12:09:47 http://www.androiddesignpatterns.com/2015/03/activity-postponed-shared-element-transitions-part3b.html has some sort of an example Oct 14 12:20:00 512gb sdxc work on sgs1? Oct 14 12:20:02 Zharf: Thank you man.I'll dig into it Oct 14 12:39:02 hithere Oct 14 12:39:08 ... why me?! time Oct 14 12:40:02 from yesterday - during build I got BSOD - first two of them from yesterday were with dump file, the last one went out wihtout nothing - direc restart Oct 14 12:40:36 AS 2.2.1 - win10pro 64bit Oct 14 12:40:46 what Oct 14 12:41:54 is there a simple way to add a material divider to a recycler view? Oct 14 12:42:42 long story short - analyse of dmp files said that it is studio64 and USBXHCI.SYS related Oct 14 12:43:11 as long as I don not have any dmp from last crash - I would like to go through AS log/ Gradle log Oct 14 12:43:25 where can I find last gradle log for my project? Oct 14 12:43:42 hi Oct 14 12:43:43 How do I transparently intercept calls to my server with mock responses? - http://stackoverflow.com/q/40033482 Oct 14 12:50:48 Is there a guide for setting up the proper environment for Java development in Windows? Oct 14 12:51:20 Oh, not Windows. Linux. Oct 14 12:53:04 Is there a "hello world" script that's good for testing if everything's set up right? Oct 14 12:53:19 yes all of those things are very easily found using google Oct 14 12:53:29 * TheSHAD0W is googling right now Oct 14 12:53:53 is there a simple way to add a material divider to a recycler view? Oct 14 12:59:15 yea you start a new project Oct 14 12:59:18 it says hello world Oct 14 12:59:19 in a textview Oct 14 12:59:46 I found one, thank you. Oct 14 13:00:01 * TheSHAD0W is thrashing around trying to help a friend Oct 14 13:00:14 I thought he might've gotten the environment set up wrong, but maybe not. Oct 14 13:01:10 He tried building https://github.com/NetEase/Emmagee and it wouldn't start, just black-screened and he couldn't figure out why. Oct 14 13:07:59 Anyhow, thanks folks. Oct 14 13:23:42 is there a simple way to add a material divider to a recycler view? Oct 14 13:32:18 Ben_1, itemdecoration Oct 14 13:42:27 is there a way to take advantage of AppCompatBackgroundHelper without actually subclassing from a AppCompat*View ? Oct 14 13:48:31 Anyone worked with custom markers for Google Maps? Oct 14 13:50:31 I'm having issues where the custom markers are being moved for some strange reason Oct 14 13:50:39 depending on how zoomed in the map is Oct 14 13:50:53 I found this but it wasn't much of a help: Oct 14 14:00:43 hi all Oct 14 14:00:59 Hi. I am trying to do screen cast from android to windows. Encoding as h.264 and decoding at the other end using ffplay. Could you suggest the best parameters to make sure of realtime (almost) streaming over wifi. Currently there is a observable avg 2 sec delay. I am looking to make it some 500 mill sec would be great. I am using https://github.com/JonesChi/CastScreen/blob/master/app/src/main/java/com/yschi/castscreen/CastService.java code as ref Oct 14 14:01:00 erence . with 1 mbps bit rate and 25 fps. Please help. thanks in advance Oct 14 14:01:33 if I have a receiver defined in my manifest which listens for intents, it doesn't seem to work until after the first time the app is launched. Oct 14 14:02:00 After that, it seems to work fine, even across reboots. Does something special happen the first time it is launched? Oct 14 14:02:10 When are receiver intent filters registered? Oct 14 14:02:19 Working as intended Oct 14 14:02:50 You wont receive system broadcasts until an activity in your app has been launched Oct 14 14:03:54 https://developer.android.com/about/versions/android-3.1.html see "Launch controls on stopped applications" Oct 14 14:07:50 well that's unfortunate for me. Oct 14 14:18:38 I'm not sure how true that is. Oct 14 14:18:46 I killed the process -- the activity is no longer running. Oct 14 14:19:04 but it launches the app when the usb stick is inserted. Oct 14 14:20:12 It just needs to have been launched once Oct 14 14:20:26 If you force stop it gets put back in stopped state Oct 14 14:20:26 ah, am force-stop pkgname prevents it from happening. Oct 14 14:20:32 I see Oct 14 14:20:42 is app state persisted across reboots? Oct 14 14:20:50 it seems to be Oct 14 14:20:50 Yep Oct 14 14:20:53 interesting. Oct 14 14:21:01 I'll have to read about the app lifecycle some more. Oct 14 14:25:00 how much app publishing on playstore take? Oct 14 14:25:29 thank to who ever helped me here, my app is in playstore Oct 14 14:26:22 *regard to the previous question i asked, talking about MediaCodec encoder settings value to be specific Oct 14 14:27:45 DelphiWorld, half an hour to a few hours... depends Oct 14 14:28:11 and 24-48h or even more before it is searchable Oct 14 14:28:20 and before you get stats Oct 14 14:29:08 :P Oct 14 14:32:38 https://twitter.com/tmdev_team/status/786935731495243776 Oct 14 14:43:57 DelphiWorld: are you going to become millionaire in 24h? Oct 14 14:44:37 Melatonina: yes, but only if SimonVT make a deal with me and hack the Melatonina HSBC (HK) account and give me in cash ;) Oct 14 14:44:38 LOL Oct 14 14:55:54 do google have a team to verify apps like apple? Oct 14 14:56:47 yes Oct 14 14:56:55 i see Oct 14 14:57:05 My understanding is that Google does some amount of review, but it happens “in the background” and doesn’t block an app from being released. Oct 14 14:57:48 Google has a bunch of scripts and they run them in VMs to automate testing Oct 14 14:57:59 which I believe delays and can block publishing Oct 14 14:58:23 lovely my app dont have any copyrighted materials Oct 14 15:01:44 dragorn: Right, but my understanding is the “human” review happens after those scripts run, and won’t hold up a release. Oct 14 15:02:08 I could be wrong — my understanding is based on an article from a year or two ago. Oct 14 15:03:04 app status is panding publication :-P Oct 14 15:09:33 apple i think it generate for you a signing key Oct 14 15:11:27 I’ve got an application where the action bar worked in Android 5 and 6, but now in 7 the back button doesn’t work and the options menu doesn’t appear. Any ideas on where I should start looking? Nothing useful is showing up in logcat. Oct 14 15:17:12 i can't imagine a app that would be wirable lol Oct 14 15:18:45 hmm, developer.android shows a list of enum values with 8 options, my IDE only shows 4 of them, and a couple have different names... Oct 14 15:21:32 Lies Oct 14 15:22:24 bassturds! Oct 14 15:22:50 turns out the other options were there, I just had to type them, delete the line, type again, delete, and the 3rd time they magically appeared... Oct 14 15:23:23 best 12"+ Android tablet on the market currently? Oct 14 15:24:00 iPad pro LOL Oct 14 15:24:08 * azv4 gasps Oct 14 15:35:16 does the Firebase test lab work well? Anyone using it? Good alternatives? If I use it to test an app that has a feature that fails on only one model, can I test on just that model on Firebase and expect 100% same results as testing on physical device? Oct 14 15:53:21 app rejected Oct 14 15:53:45 :o Oct 14 15:54:08 ashark: use of copyrighted content... Oct 14 15:54:10 stupidity Oct 14 15:54:14 huh Oct 14 15:55:37 is stupidity copyrighted Oct 14 15:56:02 i mean they are stupid Oct 14 15:56:12 putting a logo of a free to air channel is copyrighted? Oct 14 15:56:16 What framework are most people using for managing lifecycle events in views? Is Mortar the most common one? Oct 14 15:56:34 I could have sworn there was another one picking up steam but I can’t track it down Oct 14 15:57:04 Huh? You rang? What's going on? Oct 14 15:57:10 DelphiWorld Oct 14 15:57:25 ashark: what? Oct 14 15:57:52 Oh. I think your autocomplete automatically completed incorrectly. Oct 14 15:58:26 ashark: maybe... Oct 14 15:58:45 ashark: oh, it was to Ashiren LOL Oct 14 15:58:54 Ha Oct 14 15:59:17 i did appeal now Oct 14 15:59:21 let's see from google Oct 14 16:06:00 use, it's copyrighted Oct 14 16:06:04 you cannot use logos you do not own, not without permission Oct 14 16:06:15 free to air is not free to use Oct 14 16:06:32 pfn: go take a look at WWITV Oct 14 16:06:41 app including lot of streams worldwide without ad Oct 14 16:06:52 do you think this app have copyright to use all those channels? Oct 14 16:06:57 report them then Oct 14 16:07:05 not interested in what made it through the filters Oct 14 16:09:31 they tested it in a nexus Oct 14 16:10:10 this has nothing to do, what pfn said stands valid Oct 14 16:22:16 someone try this link if it works?https://play.google.com/store/apps/details?id=com.wwitv.android Oct 14 16:22:46 not in usa Oct 14 16:22:58 and not in algeria Oct 14 16:25:28 not in france too Oct 14 16:26:49 you think it get suspanded allready? and google is missrepresenting the message? Oct 14 16:27:24 no idea, you said you made an appeal, nothing will happen until you get an answer i believe Oct 14 16:27:32 this is not my app Oct 14 16:27:35 this is wwitv Oct 14 16:30:41 does it matter, you can't see the listing Oct 14 16:31:48 Hi guys, I know this is hard without any code, but what could cause a ViewPager#getCurrentItem() to return a different index than the one currently shown? Oct 14 16:32:23 I have been hours on this, lots of logs and everything should work fine, however I see fragment 0 and I should see fragment 1 Oct 14 16:33:14 you have an off by 1 error in your code Oct 14 16:34:19 Then when I manually swipe to fragment 1, everything is as expected from then on.. only the initial visible fragment is wrong Oct 14 16:34:35 I created an AAR with a native library (.so) and uploaded it to a private artifactory. When I try to use the library in an app I get an UnsatisifiedLinkError complaining that it couldn't find the library.so. The .so is in the app and also in /data/app/package.name-1/libs/. I am not sure what is going on. Any ideas? Oct 14 16:35:56 hi progard is giving me the error java.io.Exception the output jar is empty did you specify the proper -keep options is there an easy fix...if I don't run progard it creates an empty apk package ...thanks Oct 14 16:40:35 can you recommend me an opensource android app that i can study the methods that they use to create a clean and good looking code. Oct 14 16:42:20 torak: cheesesquare Oct 14 16:42:28 plaid is good Oct 14 16:43:37 orbyt_: thank you Oct 14 16:43:47 Np Oct 14 16:44:55 Anyway, I have a method that performs a write to a bluetooth characteristic using the rxandroidble lib. The write method itself takes a byte[] and returns a byte[] indicating the new value Oct 14 16:45:06 This method can also throw one of 3 exceptions Oct 14 16:45:42 Currently, my own method that wraps this functionality returns an Observable, but I would like to notify the caller of my method if any errors occur Oct 14 16:45:49 what would be the best way to do that? Oct 14 16:46:47 For the first part of the question, I meant the write method returns an Observable, not just a byte[] Oct 14 16:47:14 hi Oct 14 16:47:53 i have a recyclerview with infinite scroll populated Oct 14 16:48:15 i'd like to show a spinner while loading data Oct 14 16:48:21 in a fragment Oct 14 16:48:24 how can i do that? :S Oct 14 16:49:33 Is it safe to install this Android 7.0 update on my phone? Oct 14 16:50:17 depends on your model Oct 14 16:50:20 Melatonina: if the update is stock firmware from the manufacturer, then its safe Oct 14 16:50:30 Nexus 5x Oct 14 16:50:32 spinner in RecyclerView or spinner when nothing is loaded? Oct 14 16:51:35 Ashiren: spinner in recyclerview Oct 14 16:53:06 maybe something like http://stackoverflow.com/questions/30681905/adding-items-to-endless-scroll-recyclerview-with-progressbar-at-bottom Oct 14 16:54:34 Ashiren: yes thanks! :D Oct 14 17:02:12 is there a way to set the style for a custom widget in your custom theme? Oct 14 17:02:26 ie: I have a custom View class called "BananaStand" Oct 14 17:02:50 and I want to have a default style applied on all instances of class BananaStand unless overridden in the layout xml Oct 14 17:03:22 and I want to have a default style applied on all instances of class BananaStand unless overridden in the layout xml Oct 14 17:09:35 setup an attribute in your theme that references the style, load the style up by default Oct 14 17:12:07 pfn: so there's no way to have a style applied to all uses of a custom widget without having to specify a style attribute on each one used in layout? Oct 14 17:13:38 I just said you set it up in your theme Oct 14 17:14:01 there's a 3rd arg on view ctors for a reason Oct 14 17:14:32 pfn: is there a good resource for how this works? Oct 14 17:14:37 all I seem to find is that you "do it" Oct 14 17:14:39 and that's how it's done Oct 14 17:14:42 you call it from your 2-arg ctor with a value of R.attr.customViewStyle Oct 14 17:15:01 oh, gotcha Oct 14 17:15:09 wait... Oct 14 17:15:15 you can look at most any view in framework for an example of how its. done Oct 14 17:15:50 ok Oct 14 17:16:28 but how does the theme figure in? Oct 14 17:16:47 you mean that I set it as a theme arg Oct 14 17:17:02 you create a theme that extends Theme.DeviceDefault or Theme.AppCompat Oct 14 17:17:06 add the attribute into your theme Oct 14 17:17:10 and ask the theme if there's a style, and pass either the provided style or some arbitrary default from the 2-arg constructor to the 3-arg constructor? Oct 14 17:17:19 no asking, you always pass it Oct 14 17:17:26 ok Oct 14 17:17:29 again, look at any view in framework, particularly something like TextView Oct 14 17:17:36 rager: http://blog.danlew.net/2016/07/19/a-deep-dive-into-android-view-constructors/ Oct 14 17:18:00 thanks Oct 14 17:18:12 I'll dive in and see if that makes me grok this Oct 14 17:19:05 "A new report by Unified API integration leader CloudRail shows that Dropbox leads the consumer cloud storage market with 63.8%, ahead of Google Drive, OneDrive and Box of all users choosing their service." Oct 14 17:19:23 Big surprise. Oct 14 17:19:24 damn it i was hoping to ignore them Oct 14 17:19:30 The only company that has decent software :P Oct 14 17:19:52 Mavrik wonder if they said 'SAF sucks, use our sdk' Oct 14 17:20:02 No. Oct 14 17:20:09 because dropbox is garbage Oct 14 17:20:11 They said "Use our SDK to be locked into our platform." Oct 14 17:20:13 well they have no SAF support anyhow Oct 14 17:20:36 i see devs ping them on their tracker all the time, they are like 'we'll take this to the dev team' Oct 14 17:20:50 'sorry, no plans atm okthxbai' Oct 14 17:21:14 saf works perfectly fine, and dropbox api is no better than saf Oct 14 17:21:37 even microsoft supports saf for onedrive Oct 14 17:22:00 Dropbox API is crap :) Oct 14 17:22:20 Especially the new v2 is even worse, it's just a thin layer over REST requests. Oct 14 17:22:35 The actually released it for Swift only without ObjC support on iOS :) Oct 14 17:22:35 yes, worse even Oct 14 17:22:50 that isn't a bad thing... Oct 14 17:23:45 What exactly? Oct 14 17:23:51 i dont mind the extra work of adding it, i just don't know wth to do about UX - the system chooser will not have dropbox, so i have to add an extra preference / path / screen for my special users who use that specifically Oct 14 17:24:03 Being forced to use broken compilers and langauge with not library support to use their SDK? :P Oct 14 17:26:52 swift is neither of those things Oct 14 17:26:58 g00s, simple, say fuck you to dropbox Oct 14 17:27:00 Mavrik does the dropbox SDk have a UI component file file picker, or do i have to do that all myself Oct 14 17:27:05 there's no reason to support dropbox Oct 14 17:27:16 until your customers ask, at least Oct 14 17:27:17 every other cloud storage vendor has SAF support Oct 14 17:27:35 onedrive, box, google, um, there's at least a few other big ones I can't remember right now Oct 14 17:27:41 g00s, we dont support dropbox :) Oct 14 17:27:46 pfn, iCloud” Oct 14 17:27:47 !!! Oct 14 17:27:50 seriously? Oct 14 17:27:54 Cloud has SAF ? Oct 14 17:28:00 No, joking. Oct 14 17:28:01 *iCloud Oct 14 17:28:03 ha Oct 14 17:28:14 They're decently big because Apple shove it down the throat of their users. Oct 14 17:28:20 yes Oct 14 17:28:45 hmm https://www.reddit.com/r/androiddev/comments/57ga2l/new_dashboard_and_manage_release_tabs_in_play/ Oct 14 17:34:55 orbyt_, hi Oct 14 17:35:03 hi Oct 14 17:36:03 orbyt_, rxBleConnection.writeCharacteristic(uuid, bytes) would call the error callback if it fails Oct 14 17:36:36 orbyt_, so just subscribe to it with the error handler Oct 14 17:37:10 Hi is realm an OK database to use on Android or does it use slow reflection etc? Oct 14 17:37:56 pfn, the packagingOptions.exclude didn't work for assets Oct 14 17:38:17 bitkiller__, yes, that's for other stuffs... the aaptOptions ignore assets filter is what you would use Oct 14 17:39:57 bitkiller__: rgr thanks Oct 14 17:44:41 ok, this makes sense, now Oct 14 17:44:59 I have to declare an attribute for each theme I want to apply the widget style to Oct 14 17:45:27 (wasn't my idea to have each theme based on a different parent) Oct 14 17:45:49 well this sucketh http://spectrum.ieee.org/view-from-the-valley/at-work/tech-careers/analyst-ugly-year-for-tech-layoffs-and-its-going-to-get-worse Oct 14 17:46:12 weird Oct 14 17:46:38 we're still looking for android candidates, despite not having any official headcount allocated Oct 14 17:46:39 \ Oct 14 17:47:25 capella-5x: how's your experience with the 5x? are you subject to the "wait, I'm thinking" pauses? Oct 14 17:47:47 it's taken great reserves of willpower not to hurl my 5x at the wall on a daily basis Oct 14 17:48:29 rager: 5x in capella's nick it's because he's 5x smarter than you not because he has a Nexus 5x! Oct 14 17:48:32 rager, I spent a lot of time in Firefox, and get looooong hangs Oct 14 17:48:54 I get the worst ones when someone calls me Oct 14 17:48:59 thought it was them but haven't seen bug filed Oct 14 17:49:18 or really... anything wants to share the phone's resources with the foreground process Oct 14 17:49:22 and I'm CM 6.0.1 Oct 14 17:49:30 I'm on stock 7.x, latest Oct 14 17:49:53 it could be the hardware 🤔 Oct 14 17:50:12 raining raining Oct 14 17:50:29 playing pokemon was especially bad - getting a call while that app's in the foreground would mean 5-10 minutes of a frozen frame, no response from any ui or buttons, and no notification that the phone's incoming except the vibration/ringing until after it's over Oct 14 17:50:33 I get ghost touches when plugged /charging that's annoying Oct 14 17:50:40 weeeiird Oct 14 17:51:10 oh wow 5-10mins Oct 14 17:51:26 I display touches in dev options for debugging and they show up all over the screen in the wrong places Oct 14 17:51:33 one thing I've read that could help it not suck is setting the governor on the main CPU core(s) to the lowest possible Oct 14 17:52:05 but since I'm on stock software, it's a non-starter for me Oct 14 17:52:27 so at least my phone's not unusual Oct 14 17:52:50 missingno: yeah... means I can't actaully even answer the phone Oct 14 17:55:33 Hi, if I'm understanding correctly the onCreate method doesn't display the activity, right? Oct 14 17:56:04 I need a new phone for my mom, and thinking 6p... hope the os hangs don't follow to that device Oct 14 17:56:55 I think they were a little *too* successful at making the 6p the premium device on that generation Oct 14 17:57:29 soulisson you can build and display your first view in your activities onCreate Oct 14 17:57:32 rager you getting a pixel Oct 14 17:57:42 blern\ Oct 14 17:57:42 $ Oct 14 17:57:44 probably Oct 14 17:57:52 because like a fool, I signed up for Fi Oct 14 17:57:55 $$ Oct 14 17:58:01 whatever, I'm a dev Oct 14 17:58:09 awesome Oct 14 17:58:15 weren't there like rumors of Fi getting verizon added to it Oct 14 17:58:24 that'd be cool, I guess Oct 14 17:58:31 I keep googling and my only conclusion is that I have pulled that notion out of ass Oct 14 17:58:36 *out of my ass Oct 14 17:58:36 I spent hard on my laptop... tool of the trade 👍 Oct 14 17:58:51 because either t-mo or us cellular has a damn stingray at the train station at my house Oct 14 17:58:51 I spent not-so-hard on my desktop Oct 14 17:58:56 tool of trade that is 2x faster than laptop Oct 14 17:58:57 so you can get full bars and no bandwidth Oct 14 17:59:23 I have been really happy with my US$260-ish N5X... hard to justify US$600++ for a personal phone Oct 14 17:59:27 I let my employer spend on my laptop Oct 14 17:59:55 Leeds: what do you do? what's the secret? Oct 14 17:59:57 Leeds, meh. Oct 14 18:00:03 <- is freelancer/consultant, provides own laptop Oct 14 18:00:19 how do you not hate the 5x? are you sacrificing souls to it, daily? Oct 14 18:00:20 Leeds, high-quality hardware with stock android and support? I'll pay 600$ immediately. Oct 14 18:00:29 Support? Oct 14 18:00:32 what support? Oct 14 18:00:33 I'm happy Leeds ☺️ I've torn it down and rebuild couple times, nice screen with CM, good battery, price etc Oct 14 18:00:50 some idiosyncrasies Oct 14 18:01:17 what's to hate? Oct 14 18:01:40 the performance, mostly Oct 14 18:01:40 Nexus 5X is pretty neat. Oct 14 18:01:52 the 5x is probably on par with the Moto E (2013) for performance Oct 14 18:01:55 for me Oct 14 18:02:06 the stalls are hard, but again, I thought it was FF Oct 14 18:02:09 it's a phone - as long as it can keep up with my typing in whatsapp, it's good enough performance for me Oct 14 18:02:16 wow that is harsh rager Oct 14 18:02:26 it's honest Oct 14 18:02:28 http://stackoverflow.com/questions/40032686/android-opencv-recording-javacameraview can anybody look at this and see if they have any idea? Oct 14 18:03:13 Faizan, that's... not how any of that works :/ Oct 14 18:03:24 there's something about that overlay it does for text/calling that kills my performance Oct 14 18:03:32 Mavrik: can you elaborate? Oct 14 18:03:35 it goes to like..... 50spf instead of fps Oct 14 18:03:52 trying to do the bottom sheet for sharing is similarly painful Oct 14 18:04:35 huh I did a weird bottomsheet animation on a 5x the other day and it did not have trouble Oct 14 18:04:43 Faizan, the camera is on a special hardware pipeline and you can't really easily tap into it with another object that expects exclusive access. Oct 14 18:04:58 Right okay Oct 14 18:05:03 The better way would be to use Camera2, grab surfaces and then feed them to both MediaCodec and OpenCV Oct 14 18:05:19 I have to target api 19 though Oct 14 18:05:22 it's something about those suggestions for "shortcuts" that just brings it to a grinding halt Oct 14 18:05:26 the google tango tablet Oct 14 18:05:46 (I asssume) Oct 14 18:06:07 So there's no way to access the camera then Mavrik? Oct 14 18:06:08 those share targets that aren't just apps that have registered intent listeners for the share action Oct 14 18:06:18 Faizan, of course there's a way. Oct 14 18:06:23 It's just not going to be a one-liner. Oct 14 18:06:31 Go figure out what your OpenCV camera view is doing. Oct 14 18:06:40 Figure out if it's capable of feeding those frames to the video encoder as well. Oct 14 18:07:27 When you say camera2, are you referring to setVideoSource(MediaRecorder.VideoSource.SURFACE)? Oct 14 18:08:11 no, I mean Camera2 API. Oct 14 18:08:13 O.o Oct 14 18:08:35 Is setting the video source to surface not an option either? Oct 14 18:08:44 I have some code doing that in the stackoverflow post Oct 14 18:12:35 Faizan, where in your code do you tell MediaRecorder which surface it has to record? ;) Oct 14 18:12:50 I don't but I'm not sure how to :D Oct 14 18:13:09 That's because MediaRecorder creates a surface you need to render INTO Oct 14 18:13:21 And camera has it's own surface to which it dispatches image data. Oct 14 18:13:38 As I said, it's an accelerated pipeline which you can't just tap into, especially when other things lock it. Oct 14 18:14:00 Right okay so even recording from the surface won't even be as straight forward Oct 14 18:14:22 Hi, currently experiencing an issue with bluetooth headsets when using android text to speech within an application while another bluetooth input device is also connected. Oct 14 18:14:32 http://stackoverflow.com/questions/28663864/recording-live-opencv-processing-on-android/33074249#33074249 I was using this solution as a starting point Oct 14 18:15:57 I get garbled audio output from the bluetooth headset but not from the device speakers. Oct 14 18:16:58 I don't actually make any calls or select any bluetooth devices to explicitly read out, I rely on the google text to speech engine and allow it to automatically read through bluetooth Oct 14 18:17:05 by configuration Oct 14 18:17:30 the only calls are to tts.speak(..) Oct 14 18:17:54 anyoned ever experience this before? Oct 14 18:19:57 Hey it looks like we can finally download our APKs from the Play Store Developer Console Oct 14 18:20:12 There are download links in the new "Manage Releases" page Oct 14 18:26:20 Does anybody have experience with MediaRecorder - specifically, recording from Surface? I can't figure out how to set the actual surface I'd like to record to Oct 14 18:26:49 record from* Oct 14 18:42:23 Hey i'm having trouble posting and image and some text content to my rest api with retrofit: http://pastebin.com/rHPX7seY. Can anyone help? Oct 14 18:47:03 Greetings - is it possible to launch an app when a screenshot is taken? (let's assume I can listen for a screenshot event somehow) Oct 14 18:50:40 ejb, yes Oct 14 18:51:10 adq: even if another app is currently in the foreground, I could launch my app? Oct 14 18:52:52 ejb, not sure what you meant Oct 14 18:53:08 you can launch an app via intent Oct 14 18:54:04 adq: ok, cool. Have you had any success with listening for screenshots? I've seen some FileObserver implementations Oct 14 18:55:08 ejb, nope, never tried, not sure it's even possible without having a rooted device Oct 14 18:55:14 not even sure how would you detect a screenshot Oct 14 18:55:27 keydown? Oct 14 18:56:06 I guess alot of phones have different key combos for that Oct 14 18:56:50 how would you know if one of my apps retrieve the drawing cache of a decorview Oct 14 18:56:56 you would not. Oct 14 18:59:21 adq: ok. I wanted to see if an app could be created that would detect qrcodes in screenshots and open the link automatically (or prompt to open the link) Oct 14 19:00:45 http://www.addictivetips.com/android/shotdrop-auto-upload-android-screenshots-dropbox-copy-link-to-clipboard/ seems promising Oct 14 19:00:48 ejb, that's definitely possible if your app is taking the screenshot, then you would have access to it Oct 14 19:00:55 and you would know when a screenshot is taken too Oct 14 19:01:48 adq: I don't think the app would be initiating the screenshot. I'm talking about screenshots of other apps done with phone buttons Oct 14 19:01:56 physical buttons Oct 14 19:02:28 maybe there is a way, but i never tried, which would consist of monitoring (let's discuss how later) where the screenshots are saved Oct 14 19:02:33 (pic are indexed by android subsystem) Oct 14 19:03:00 and then everytime a new picture is added, you scan for QR inside it, but that would mean scanning a lot of pic unrelated too Oct 14 19:03:17 SDK platform-tools 24.0.4 Oct 14 19:03:31 best for you is to find a solution where you don't have to poll a folder, but retrieve that a new file has been added or at least the underneath file system changed Oct 14 19:03:38 and only process in this case Oct 14 19:04:01 still, i don't think it should be done like that Oct 14 19:04:11 i don't want ppl to scan my picture, with or without QR Oct 14 19:04:16 adq: for sure. polling the screenshots folder wouldn't be terrible expensive Oct 14 19:04:20 adq: true Oct 14 19:04:28 hadn't gotten to privacy concerns yet Oct 14 19:04:51 huge issue, but usually bypassed with a simple permission that the user doesn't even know the consequences Oct 14 19:04:52 sadly Oct 14 19:05:42 old g00s Oct 14 19:05:48 did you switch again to canary? Oct 14 19:05:52 it's in preview since ages iirc Oct 14 19:06:14 adq its stable since a few minutes ago. i don't use canary (thats for chumps) Oct 14 19:06:19 ahah ok Oct 14 19:06:27 thx then, i was going to "remind me later" Oct 14 19:06:42 because on canary, no way to know the diff without opening the sdk manager Oct 14 19:07:02 this is so dumb Oct 14 19:07:28 and it will probably stay like that until they realize their sdk manager is under "appearance & behavior" Oct 14 19:07:42 adq: well thanks for the insight Oct 14 19:07:45 lol i use Tools -> android -> sdk manager Oct 14 19:08:38 still it's a shortcut of what's in the settings, UNDER appearance Oct 14 19:08:58 lol maybe thats why i can't find it that way :P Oct 14 19:10:33 "34% customers might not buy another Samsung smartphone: Branding Brand Survey" Oct 14 19:10:36 only 34% ? Oct 14 19:10:54 what has to happen for 100% .... Oct 14 19:11:17 "might not" Oct 14 19:11:42 * pfn hasn't had a problem with 5x lagging since march update Oct 14 19:16:03 samsung owned up to it Oct 14 19:16:11 what's the problem with that... Oct 14 19:16:34 they took every single defective phone back, ate a huge loss, and are willing to replace 3rd party transactions with a high quality phone Oct 14 19:16:58 so yeah, if you think this sways brand loyalty negatively, you have a terribly black view of the world Oct 14 19:17:52 but going by your usual spiel in this channel, par for the course Oct 14 19:17:59 not only samsung exploded in the history Oct 14 19:18:06 its just not good year for them Oct 14 19:18:28 eh, exploding lithium batteries is nothing new, but that's from abuse, typically Oct 14 19:18:37 in this case, it's a defect, unfortunately for samsung... Oct 14 19:20:34 already said that you have a higher probability to _die_ in the car you will use to bring back your non-lethal phone Oct 14 19:21:31 ppl would not get an ISO27001 study, but the non-risk and ridiculous impact is obvious concerning those note 7 episodes Oct 14 19:21:48 it's just that media seem to like it, and not surprisingly ppl seem to enjoy those stories too Oct 14 19:21:55 case in point Oct 14 19:22:38 maybe it's political too, because samsung is not an US company Oct 14 19:23:19 eh, I'm sure they've had equally negative stories in SK Oct 14 19:23:38 considering they were pulling phones back there first well before they did a global recall Oct 14 19:23:46 Afzal, you left yesterday but thx for those insight about chart lib, i expected mpandroidchart to behave a bit better but not as much as you said Oct 14 19:23:57 no, its not just about "exploding batteries" ... Oct 14 19:23:59 ""Inhumane conditions are rife" at the company, the ITUC reports, noting that Samsung employees are overworked, under-paid and forced to suffer appalling conditions, including "standing for 11 to 12 hours, verbal and physical abuse, severe age and gender discrimination, and lack of worker safety." Oct 14 19:24:14 again pfn has uninformed and black and white view of the world Oct 14 19:24:51 says g00s who lives in his little whole, with his tinfoil hat Oct 14 19:24:58 let's not talk about apple, and let me remember this documentary "blood in the mobile" (mainly targetting nokia at that time) Oct 14 19:24:59 s/w// Oct 14 19:25:05 adq I think the reason why mpandroidchart seems to stutter is just due to framerate jitter, if it's consistent even at 55, it would be smooth. Oct 14 19:25:10 anyone here used the android TextToSpeech Engine before with bluetooth Oct 14 19:25:11 ? Oct 14 19:25:24 Afzal how is that going ... did you convert over ? Oct 14 19:25:30 and are you using 2.x or 3.x ? Oct 14 19:25:37 3.x Oct 14 19:25:44 hm, 3.x should be smoother Oct 14 19:25:53 I did scichart, hello and mpandroid Oct 14 19:26:04 and yeah, might use mpandroid again Oct 14 19:26:14 hello is 20 fps max ;ol Oct 14 19:26:15 scichart must be awesome due to his cost Oct 14 19:26:26 s/his/its/ Oct 14 19:26:35 isn't scichart opengl ? Oct 14 19:26:35 scichart is ridiculous and ridiculously expensive Oct 14 19:26:45 i'm using the trial version :p Oct 14 19:26:58 i searched for a port of rrdtool on android, but only find old stuff Oct 14 19:27:07 i would be interested in a rrdtool port :) Oct 14 19:27:12 rrdtool is so 1995 Oct 14 19:27:21 oops 2005 Oct 14 19:27:22 :D Oct 14 19:27:24 rrdtool is so oddly written that it makes a non-C interface impossible Oct 14 19:27:25 but it's smart Oct 14 19:27:32 basically a rewrite, I suppose Oct 14 19:27:51 well, yeah, a port/rewrite in another language, interesting that no one's really bothered Oct 14 19:27:56 adq well, smart if you want to lose data precision as time goes on Oct 14 19:28:06 thats ok for server metrics i guess Oct 14 19:28:09 this is not how it works Oct 14 19:28:11 you tend not to care about historical data Oct 14 19:28:23 but most of the time series DBs since that time have overcome that limitation Oct 14 19:28:26 most chart libs don't handle aliasing issue Oct 14 19:28:30 it's already a big problem Oct 14 19:28:35 (i don't talk about graphic aliasing) Oct 14 19:28:44 but when the frequency is above nyquist Oct 14 19:29:12 (the nyquist limit is basically your width/2 if width is in pixel and you plot per pixel) Oct 14 19:29:36 and that can lead to huge misinterpretation of a chart due to how it's plotted Oct 14 19:30:03 * azv4 wonders what the default android:scaleType of an ImageView is... Oct 14 19:30:05 the trick i do is usually draw the chart in a very huge canvas and then rescale the resulting image Oct 14 19:30:16 but this is just a trick and has some drawback (like taking more memory) Oct 14 19:30:33 i'm not plotting pixel per point ;) Oct 14 19:30:49 aliasing is still an issue once you start scaling down, though Oct 14 19:33:41 found this afternoon logcat in AS is partially broken if there is no tag :))) Oct 14 19:33:42 http://imgur.com/a/v9uCB Oct 14 19:34:13 sure, a tag should be there, but still .... everything i'm using in AS, i had or have issue with, and i'm still using it (go figure) Oct 14 19:34:45 it also break their color, and take the color of previous "normal" log Oct 14 19:35:09 logger in android is retarded Oct 14 19:35:25 how can they fail to output properly Oct 14 19:35:53 they are probably using some regex because they let you select fields to show Oct 14 19:36:02 and the fucked up their regex :) Oct 14 19:36:10 so they have to split the line somehow Oct 14 19:36:37 it's crazy what it does :)) color is taken from previous log, message escape the log line and goes after it, etc Oct 14 19:36:42 it's just some funny side effect Oct 14 19:36:57 oh and also the indentation Oct 14 19:37:01 which cycles Oct 14 19:38:33 adq if you step back enough does it kinda look like nyan cat? Oct 14 19:38:54 ^^ Oct 14 19:39:08 there are still using a partial nyancat icon i can see Oct 14 19:39:21 it's a good thing I rarely use the logcat toolwindow Oct 14 19:39:47 pfn seems immunte to most of AS bugs, because he simply doesn't use it! Oct 14 19:39:50 although, my regex is probably broken for that as well Oct 14 19:39:51 immune* Oct 14 19:40:16 code editor and debugger is all I need Oct 14 19:41:04 and the debugger is a luxury most of the time Oct 14 19:43:51 "Twitter shares tank as Salesforce reported to be out of the bidding process " Oct 14 19:43:56 they should make it a nonprofit Oct 14 19:48:35 pfn those technical problems jcenter <--> maven central must be formidable Oct 14 19:48:47 yep Oct 14 19:49:00 I just resorted to fat-jarring Oct 14 19:49:03 problem solved for now Oct 14 19:50:11 Afzal wow 3.x is taking a while, last release was in july Oct 14 19:50:19 oh wow Oct 14 19:50:30 i see a lots of open issues Oct 14 19:50:35 lot* Oct 14 19:51:00 the api is kinda ... meh Oct 14 19:51:44 yup main deterrent g00s Oct 14 19:52:44 pfn, wonderful https://code.google.com/p/android/issues/detail?id=224167 Oct 14 19:53:49 bummer Oct 14 19:53:58 proper solution: move stuff that shouldn't be there out of assets/ Oct 14 20:00:56 Hey i'm having trouble posting and image and some text content to my rest api with retrofit: http://pastebin.com/rHPX7seY. Can anyone help? Oct 14 20:05:52 Afzal are you still using couchbase for sensor data syncing ? can you explain how that all works, kinda curious. right now i have no server syncing (not sure if i want to either) Oct 14 20:06:23 g00s noooope. Not using it for sensor data anymore. Just local csv that gets uploaded on demand Oct 14 20:06:31 oh Oct 14 20:06:43 main issue was parsing the large primitive json array Oct 14 20:06:47 so i got rid of json array Oct 14 20:06:48 :p Oct 14 20:06:52 :D Oct 14 20:07:56 couchbase library works pretty well for no hands syncing but it also restricts you from using other local db solutions Oct 14 20:08:23 it handles all the network availability issues by itself Oct 14 20:08:37 not sure how realm mobile platform compares to it Oct 14 20:10:53 Any one have solved the following Oct 14 20:10:53 D/FirebaseInstanceId: background sync failed: PHONE_REGISTRATION_ERROR, retry in 10s Oct 14 20:11:08 fix your registration IDs Oct 14 20:11:36 How? Oct 14 20:11:47 by using correct values Oct 14 20:12:21 can you point me, where is that id, which I need to fix Oct 14 20:13:10 wherever you set all your keys up Oct 14 20:13:17 dev console, manifest, google-services.json, etc. Oct 14 20:15:05 pfn: hi! How are you today? Oct 14 20:17:35 pfn I am really not getting it. Which key? R u talking about SHA1 fingerprint ? Oct 14 20:21:53 pfn: verified in google-services.json all is good. Have downloaded again and used that. Still that error. Not receiving any notification. Oct 14 20:22:18 then your sha1 signatures don't match don't match Oct 14 20:23:03 Does anyone here know anything about streaming audio via bluetooth causing a garbled sound where parts of the audio is cut off!? Specifically related to android's text to speech engine Oct 14 20:23:52 So when I call the TTS engine on some text, it's properly spoken through the deviced speakers but garbled via bluetooth Oct 14 20:24:13 I've been looking for help with this all day, can anyone here help? Oct 14 20:24:17 maintain line of sight between headset and device Oct 14 20:24:28 that's a constant Oct 14 20:24:55 @pfn the device is kept on a belt loop and the headset worn on the head Oct 14 20:25:09 if it's crossing the body, that's not line of sight Oct 14 20:25:14 same side Oct 14 20:25:29 hold it in your hand in front of the headset Oct 14 20:25:30 try again Oct 14 20:25:35 tried it Oct 14 20:25:50 even if they are both on a table right next to each other Oct 14 20:26:09 get a better headset Oct 14 20:26:17 I ruled out different devices by testing cross device in both directions Oct 14 20:26:27 the problem isn't the hardware Oct 14 20:26:38 if I play a vid on youtube it comes out fine Oct 14 20:26:53 headset vs. a2dp profiles Oct 14 20:27:10 what does that mean? Oct 14 20:27:33 the connection via bluetooth being used to deliver audio Oct 14 20:27:59 I rely on android's installed tts engine, in this case google, and the the engine routes the audio by default Oct 14 20:28:24 the weird thing is that it doesn't always happen. If i reboot the phone occasionally this stops happening. Oct 14 20:28:46 In addition, it seems when I connect another bluetooth input device it happens again Oct 14 20:29:04 markypc3: sounds like a device problem, i've never had that problem on my phones Oct 14 20:29:33 I'm thinking I'm using an api incorrectly or something Oct 14 20:30:34 how can I see what profile is currently being used to connect? Oct 14 20:30:45 is there any way to debug this? Oct 14 20:33:03 @pfn thanks for pointing me in a direction Oct 14 20:33:30 @zinx I really don't think it's a device specific issue; Oct 14 20:37:52 markypc3, do you use this method in your code? https://developer.android.com/reference/android/speech/tts/SynthesisCallback.html#start(int, int, int) Oct 14 20:38:17 if yes, what are the values you pass as param? if no, nevermind. Oct 14 20:38:19 adq no Oct 14 20:38:28 I just make a call to speak Oct 14 20:39:10 you can set the stream type to use via audio attributes Oct 14 20:39:11 tts.speak and I also have and onUtteranceProgressListener implementation set Oct 14 20:39:33 is there any way to debug this? <- at least you have two cases, the good (after reboot, ocassionally) and the bad Oct 14 20:39:55 so you would search any relevant differences, record a profiling on both, etc Oct 14 20:40:32 Yeah, but not perfectly consistent. I'm pretty sure it has something to do with a second input (bluetooth barcode scanner) connected at the same time Oct 14 20:48:14 pfn : tested on emulator, api 24. All working fine. But in YU device it's not working at all. Getting that D/FirebaseInstanceId: background sync failed: PHONE_REGISTRATION_ERROR, retry in 10s Oct 14 20:49:23 Seems something wrong with this device. But how to identify. Oct 14 20:55:14 hi Oct 14 21:04:34 Hi everyone! Greetings from Berlin! :) Oct 14 21:05:57 http://www.independent.co.uk/travel/thailand-king-dead-bhumibol-adulyadej-death-will-it-affect-holiday-travel-a7359916.html#gallery Oct 14 21:05:59 oh come on... Oct 14 21:06:16 last time, thailand was under martial law... Oct 14 21:06:17 now this... Oct 14 21:12:18 when i use 'com.android.support:appcompat-v7:23.1.1' Oct 14 21:12:22 in gradle Oct 14 21:13:16 when i add 'com.google.http-client:google-http-client-android' Oct 14 21:16:43 i get this error that faild to resolve 'com.google.http-client:google-http-client-android' Oct 14 21:16:49 what should i do ? Oct 14 21:35:30 why would you add that, that isn't a real library Oct 14 21:35:42 i.e. why are you typing random garbage Oct 14 21:36:06 anyone there? Oct 14 21:36:22 pfn, what should i add then ? Oct 14 21:37:57 import org.apache.http.NameValuePair; Oct 14 21:38:11 i cant import that Oct 14 21:38:16 pfn, there? Oct 14 21:38:52 why would you even use that Oct 14 21:39:14 Hi. If I'm recording from the surface, and the output video is the size of a thumbnail, what could have gone wrong? I'm not using the Camera so I can't call getPreviewSizes Oct 14 21:39:20 add the correct apache http client lib (use search.maven.org) or add usesLibrary to your build.gradle Oct 14 21:39:25 Does anyone know how to get the facebook token when I use firebase auth? Oct 14 21:39:33 (using MediaRecorder and VideoSource(Surface) to record) Oct 14 21:39:35 I already logged in succesfully Oct 14 21:40:10 I got those properties firebaseUser.getUid(), firebaseUser.getDisplayName(), firebaseUser.getEmail(), firebaseUser.getPhotoUrl() Oct 14 21:40:10 ArrayList nameValuePairs = new ArrayList(); Oct 14 21:40:26 but there is one getToken() but it asks for a boolean which I don't know what it is Oct 14 21:40:43 pfn, i need for that Oct 14 21:41:00 NameValuePair is like the simplest class Oct 14 21:41:32 missingno, i cant use that in my app Oct 14 21:42:08 you could like, make it Oct 14 21:42:24 missingno, how ? Oct 14 21:43:56 Hello, maybe someone knows app that it lets play music in call, and all call sides hear it..? Oct 14 21:44:06 no, not possible Oct 14 21:45:59 what about phonecall apk? You know it? Oct 14 21:46:14 hey guys i use volley in my app i have a phone register for my app when i enter phone number in app i see that the code comes but app doesnt go to next stage to enter code Oct 14 21:46:28 And no at samsung, whare are samsung and microsoft apps? Oct 14 21:46:46 is problem from server or from app ? Oct 14 21:47:32 that’s something you need to step through and find out for yourself, linuxlove Oct 14 21:48:12 s73v3r, i just want to know is problem from my app or from networking ? Oct 14 21:48:26 til somebody still uses volley Oct 14 21:48:30 and I said you’re going to have to step through your app and find out yourself Oct 14 21:48:37 no one here is going to be able to answer that Oct 14 21:48:54 how can i debug that? Oct 14 21:49:02 same way you’d debug anything Oct 14 21:49:31 stupid fraxkin pdf so useless on mobile Oct 14 21:49:54 * capella-5x random bitch Oct 14 21:50:06 s73v3r, i see error in connecting to server but code comes to my phone Oct 14 21:50:19 then look at that Oct 14 21:50:56 s73v3r, when code comes to my phone it means i have connection to server right? Oct 14 21:51:04 probably Oct 14 21:51:17 why probably? Oct 14 21:51:30 just look at your code Oct 14 21:51:51 codes can be good or evil Oct 14 21:52:13 is volley fair to use ? Oct 14 21:52:18 they tell you which they are Oct 14 21:53:02 i use laravel Oct 14 21:53:10 i have a Sms.php Oct 14 21:53:23 Does anybody have experience recording with MediaRecorder using Surface as the source? I'm recording fine etc, but in the resulting file, the video is really small. Oct 14 22:18:12 What would be the best way to design a layout containing one surface view, with a button on top of it? (bottom center) Oct 14 22:20:02 JakeWharton: I thought you'd abandoned this channel. :D Oct 14 22:21:33 who is familiar with digits in twitter Oct 14 22:21:47 can i implement in my app? Oct 14 22:22:21 linuxlove: https://docs.fabric.io/android/digits/sign-in-with-phone-number.html Oct 14 22:24:45 s73v3r, thanks Oct 14 22:25:56 i have entered to https://www.fabric.io Oct 14 22:26:30 but i see just this is loading Add the first SDK to your project Oct 14 22:27:01 follow their instructions Oct 14 22:28:08 TacticalJoke: i have about a year ago Oct 14 22:28:12 or maybe two at this point Oct 14 22:29:20 one of the freenode splits surely knocked me from being authed and out of the channel and then IRC Cloud logged me out so i didn't notice, and that was fine Oct 14 22:29:27 now i'm going to close the tab. see you in a year. Oct 14 22:29:44 bye Oct 14 22:29:57 look forward to next year’s visit Oct 14 22:30:02 bye Oct 14 22:30:15 bye JakeWharton Oct 14 22:30:23 see ya JakeWharton Oct 14 22:36:12 http://pastebin.com/B0JphUfw Am I doing something stupid here? The elements in the first child relativelayout (with id toolbar_top) doesn't show Oct 14 22:40:47 Hello did anyone has any experience with privacy policy or EULA? Do you know any easy and cheap way to create a policy for my app? Oct 14 22:41:17 torak its not hard, just say in plain terms how you use people's information Oct 14 22:41:28 contact a lawyer. it’ll be far cheaper in the long run Oct 14 22:42:21 the Play store TOS states if you must have a privacy policy if you use info Oct 14 22:42:44 g00s: but I am not capable of anything related to law. So, a talented lawyer can find holes in my text easily. Oct 14 22:43:14 torak it doesn't have to be legalese Oct 14 22:43:27 "We use your phone number to do xxx' Oct 14 22:44:35 a EULA is something different, for that maybe you want a lawyer Oct 14 22:45:19 g00s: I am accualy developing a social network. Something similar to twitter. I am not sure what to use. Oct 14 22:45:36 oh god not another social network ... Oct 14 22:45:48 g00s: ahahah :) Oct 14 22:46:08 This moment will appear in an upcoming movie. Oct 14 22:46:15 copy twitter's eula :P Oct 14 22:46:46 g00s: ahah :D but it's not the same. Oct 14 22:47:02 TacticalJoke: I wish. :) Oct 14 22:47:29 torak better not be, they are having money problems :D Oct 14 22:47:43 i don’t think their EULA is the source of their money problems Oct 14 22:48:08 g00s: I don't have Ads too! :D Oct 14 22:48:24 torak mhm. so how are you making money :D Oct 14 22:48:35 g00s: I am not making. :D Oct 14 22:48:47 how do you plan on making money? Oct 14 22:48:56 Making money is so 2002. Oct 14 22:48:59 or, more direct, how do you plan on paying people? Oct 14 22:49:00 then you don't need EULA :D Oct 14 22:49:09 and paying for your servers and stuff? Oct 14 22:49:50 torak just a tip, web 2.0 is over, now its web 3.0 Oct 14 22:50:01 I am just a developer and i have a cheap server. I will think of that if things got big. But actually this is just a project for me to get a better job. :/ Oct 14 22:51:58 Hey all, is there a good tutorial for implementing a recyclerview clicklistener interface in the viewholder? there are so many sub par tutorials i'm finding, it's a bit hard to wade through the junk :\ Oct 14 22:52:04 torak: what kind of social network Oct 14 22:52:09 I don't know this kind of things are too hard to do it alone. It takes too much time. Maybe it's i am not very professional. Oct 14 22:52:25 BinaryWaves: You just use a regular click listener Oct 14 22:59:31 orbyt_: its like twitter but more usefull. Oct 14 22:59:47 In what way Oct 14 23:01:36 if it’s like Twitter, then how are you going to handle harassment? Oct 14 23:02:32 s73v3r: What kind of harassment? Hate speech or direct verbal harassment to one another? Oct 14 23:02:40 all of it Oct 14 23:03:51 side note: anyone gotten the error Execution failed for task ':transformClassesWithInstantRunForDebug'. when building in AS? Oct 14 23:04:10 builds fine on the command line with ./gradlew assembleDebug Oct 14 23:04:18 I am not responsive if a neo-nazi loads an image of SS logo. But I would probably try to remove these kind of posts or delete the accounts. Of course it won't be enough or very responsive. Oct 14 23:04:27 sounds like the plugin-does-not-match-AS version thing s73v3r Oct 14 23:04:35 resolved via disabling IR and running a full clean Oct 14 23:04:50 thanks Oct 14 23:04:58 Second users can't interact or send messages to each other so that won't be a problem. Oct 14 23:05:47 so it’s a social network without the social? Oct 14 23:06:31 I've given up on Instant Run. :s Oct 14 23:06:33 s73v3r: Yes something like that. You can post but you can't chat. Time will show what should be added or removed. Oct 14 23:06:43 orbyt_: http://stackoverflow.com/questions/24471109/recyclerview-onclick there are like 10 different implementations listed is what i mean... which is the best one to use? Oct 14 23:06:47 TacticalJoke: are you a bot or something? :D Oct 14 23:06:50 what if they mention me by username in my post? Oct 14 23:07:44 in their post, I mean Oct 14 23:07:55 torak: No. Do I seem like a bot? Oct 14 23:08:38 BinaryWaves: `public interface Listener { void fooClicked(); }` inside adapter. Oct 14 23:08:46 s73v3r: No that won't be anything that people can do. It's not what its designed to do. If people starts posting their pictures with families or car photos they are using it wrong. Its just will be used for getting some jobs done. Will make our lifes easier. Oct 14 23:09:00 TacticalJoke: yes? Oct 14 23:09:01 Have OnClickListener say `listener.fooClicked();` or whatever. Oct 14 23:09:39 TacticalJoke: If you are, you have failed at Turing test. :P Oct 14 23:10:02 please don’t think I’m trying to discourage you from doing this. But these are questions that people are going to have when thinking about using your product Oct 14 23:10:25 s73v3r: Sure yes you are absolutely right about all of these. Oct 14 23:10:42 I'm not a goddamn bot. :/ Oct 14 23:11:14 TacticalJoke: https://www.reddit.com/r/totallynotrobots/ Oct 14 23:11:15 s73v3r: I am not offended but I am sorry that i can't share too much information about the idea itself. So it's really hard to explain the job without telling what it is. Oct 14 23:11:40 i understand Oct 14 23:12:38 s73v3r: Surprisingly active. Oct 14 23:12:40 Am i the only one who can't use this reddit? Oct 14 23:12:50 found the robot Oct 14 23:13:50 After forums this thing looks so complicated. Pages are too crowded with text and I don't know what to look what to browse. Interesting. Oct 14 23:18:21 job = suffix of a compound word... hmm Oct 14 23:18:22 ok Oct 14 23:31:44 Is there any difference between using getActivity() and MyActivity.this? Oct 14 23:32:49 Since getActivity is a function probably it will use some resource. If i know which activity this code will run probably giving it with this would be better? Am i right? Oct 14 23:33:29 *getApplication() i mean. Not getActivity() Oct 14 23:34:28 torak: There's a huge difference. One returns an Application reference; the other is an Activity reference. Oct 14 23:34:59 TacticalJoke: than which one should i use? Both can be used as context? Oct 14 23:35:28 It depends on why you need the Context. Oct 14 23:37:29 TacticalJoke: toast? Oct 14 23:39:40 I think you can use either for Toasts. Though most people use the Activity. Oct 14 23:44:54 Google uses `getApplicationContext` in this example: https://developer.android.com/guide/topics/ui/notifiers/toasts.html#Basics Oct 14 23:45:40 TacticalJoke: Thank you sir. Oct 14 23:56:33 wtf, power is out Oct 14 23:56:41 I'm not in bfe damnit Oct 14 23:58:14 bfe? Oct 15 00:00:26 Lmgtfy bfe Oct 15 00:01:30 Bum Fuck, Egypt ? Oct 15 00:03:05 Typically, the power never goes out here Oct 15 00:03:50 pfn: Where? Oct 15 00:04:05 woohoo... wine o:clock Oct 15 00:04:13 Silicon Valley Oct 15 00:04:24 :O Oct 15 00:05:25 I am surprised. I don't even think i am talking people who live at silicon valley. Interesting. Oct 15 00:05:38 i think that’s just the valley’s way of saying “Go home and be done with work for the day" Oct 15 00:05:39 I would love to work&live there. Oct 15 00:05:56 meh. overrated. Southern California is where it’s at Oct 15 00:06:32 Texas Oct 15 00:06:40 What? Texas? Oct 15 00:07:04 I am not from US but isn't Texas full of trump supporters? Oct 15 00:07:04 Yah, I'm moving there Oct 15 00:07:11 yes Oct 15 00:07:21 capella-5x: I'm sorry for you Oct 15 00:07:34 Heh, whatevs Oct 15 00:07:53 Yes whatever. This no place to talk about politics. Oct 15 00:08:39 * capella-5x checking scrpllback Oct 15 00:12:20 lol, funny when non-US folks assume texas is crazy and associate it with trump :D Oct 15 00:12:55 g00s: Yeah. It's always represented that way on tv and comedy shows. Oct 15 00:13:15 That guy's exes all live there. Oct 15 00:13:17 torak if they showed you AZ you wouldn't believe it Oct 15 00:13:18 Family guy/ the big bang theory etc. Oct 15 00:13:34 g00s: AZ? Oct 15 00:14:16 no water? no problemo! we love business so lets have saudi Arabia grow alfalfa and ship it back Oct 15 00:15:04 what else are we going to do with our aquifiers, motorola dumped all that cr-6 in there a few decades ago LOLOLOL Oct 15 00:15:17 ?? Oct 15 00:15:21 at least the horses will be shiny :D Oct 15 00:16:01 torak AZ - arizona. The AZ politicians left Texas to form AZ because TX was too 'moderate' Oct 15 00:16:20 g00s: Whoaa! Oct 15 00:17:39 Thanks obama! :P :D Oct 15 00:21:30 hee Oct 15 00:24:54 i'll try http://apple.stackexchange.com/questions/151545/appstore-multiple-update-of-the-same-application Oct 15 00:24:59 oops wrong chan Oct 15 00:27:28 :O g00s does apple code on the side.... /shock/horry/ Oct 15 00:27:32 horror Oct 15 00:31:21 lol Napalm Oct 15 00:32:28 Napalm is horrified, but Google is like "Ehh, whatever". Oct 15 00:34:24 what are you up to Napalm Oct 15 00:35:50 I get the impression that they wouldn't care if all the developers left. Oct 15 00:36:12 last night I reverse engineered a game file format for clickteam fusion Oct 15 00:36:21 erm, and just looking at purchasing an FPGA Oct 15 00:36:29 like a dev board for some ideas i got Oct 15 00:36:59 Napalm thats fun, what tools will you use ? Oct 15 00:37:03 https://www.terasic.com.tw/cgi-bin/page/archive.pl?CategoryNo=163&No=941&PartNo=1 Oct 15 00:38:07 really good price for the spec, dual core ARM-A9 @ 925MHz and FPGA with 40K logic elements/cells Oct 15 00:38:15 runs linux Oct 15 00:38:40 im thinking i get the best of both worlds Oct 15 00:38:51 this is really talk for another channel however Oct 15 00:45:31 If I have a hex say 0x########, how can I parse the alpha, red, green and blue values from that? Oct 15 00:46:10 Faizan: shift them out Oct 15 00:46:11 I'm trying something like a = (hex & 0xFF000000) >> 24, b = (hex & 0xFF0000) >> 16 and so on, but it's not giving me what I was expecting Oct 15 00:46:32 its probably RGBA not ARGB Oct 15 00:46:43 Ah that could be actually Oct 15 00:46:46 that makes sense Oct 15 00:46:55 you could also have an endianess issue Oct 15 00:47:09 awesome Oct 15 00:47:35 Faizan: https://developer.android.com/reference/android/graphics/Color.html Oct 15 00:47:51 use Color.red(yourcolor) or Color.alpha() so on Oct 15 00:48:07 I've had a look at that, problem is I'm using OpenCV Oct 15 00:48:14 oh Oct 15 00:48:14 so I have to pass in a scalar construct Oct 15 00:48:30 which takes an argument such as scalar(blueval, greenval, redval, alphaval); Oct 15 00:48:40 well there might be other issues then, pastebin your code or whereever Oct 15 00:48:52 are they floats? Oct 15 00:48:57 just a thought Oct 15 00:49:05 nope Oct 15 00:49:36 if I pass in a hex such as 0xffff0000 into a draw method, is that not ARGB? Oct 15 00:50:15 it could be Oct 15 00:50:19 it really depends Oct 15 00:50:28 http://pastebin.com/B1uW4GZj Oct 15 00:50:30 i would try very specific test values Oct 15 00:50:39 it works fine for the default 0xFFFF0000 Oct 15 00:50:46 i'm expecting a red and I get a red Oct 15 00:50:56 it's the conversion to r, g and b components that are iffy Oct 15 00:51:00 well thats ARGB then Oct 15 00:52:10 Can't you just use `Color.red`, `Color.alpha`, etc.? Oct 15 00:52:17 Hmm I wonder if opencv takes it in a different order Oct 15 00:52:20 https://developer.android.com/reference/android/graphics/Color.html#red(int) Oct 15 00:52:23 I know matlab uses rbg lol Oct 15 00:52:41 I'm not sure actually Oct 15 00:52:43 I could try that Oct 15 00:54:38 I think there's an endianness problem - it works fine to start off with (i.e. components are red), but as soon as I change the color, it differs from the one selected Oct 15 00:54:53 object:tracker: r is -1 Oct 15 00:54:58 interesting Oct 15 00:56:21 Faizan: are you just putting values of 255 in? your example does show your opencv code or use of the lib Oct 15 00:56:55 mgproc.putText(newMat, Integer.toString(frameCount), new Point(100, 500), 3, 100, new Scalar(TrackingActivity.r, TrackingActivity.b, TrackingActivity.g), 10); Oct 15 00:57:00 that's where it's being used Oct 15 00:57:05 new Scalar Oct 15 00:57:27 so it starts off fine, and once I change the colours, the values of r, b and g are changed. r is set to -1 for some reason Oct 15 00:57:37 If I use firebase auth to log in with facebook do I still need to use the facebook api to get the token or the firebase gives it to you? Oct 15 00:57:50 RBG? Oct 15 00:57:55 yeah Oct 15 00:58:00 just trying different combinations Oct 15 00:58:07 https://stackoverflow.com/questions/17355492/wish-to-use-android-colors-int-in-opencv-scalar Oct 15 00:58:12 matlab uses RBG so that was first instinct after RGB Oct 15 00:58:45 Faizan: i would also suggest you shift then mask.. theres a difference Oct 15 00:58:49 Faizan, please, help me, noone can tell me if firebase gives you the facebook id or if I need to put a listener Oct 15 00:58:49 "I'm not sure about Java, but in C++ API are colors usually reversed: BGR, so it maybe need to be changed" Oct 15 00:58:54 aha Oct 15 01:00:09 Okay that didn't work - let me try shift and masking now Oct 15 01:00:46 r = overlayColor >> 24 & 0XFF000000; LIKE THAT RIGHT? Oct 15 01:00:48 woops Oct 15 01:02:37 a is -16777216, r is 16711680 Oct 15 01:02:49 Faizan: a = (overlayColor >> 24) & 0xFF, r = (overlayColor >> 16) & 0xFF, g = (overlayColor >> 8) & 0xFF, b = (overlayColor & 0xFF) Oct 15 01:04:23 unfortunately still not, getting values too large Oct 15 01:05:01 Faizan: they cant be, your doing something else wrong Oct 15 01:05:14 0xFF at the end will force 0 - 255 Oct 15 01:05:31 Aha okay I think my code didn't update Oct 15 01:05:38 changed some logs, nothing else and it seems to work Oct 15 01:05:53 Numbers are normal now, just need to work out the order that opencv likes them in Oct 15 01:05:58 thanks for the help, really appreciate it Oct 15 01:06:00 I don't think it makes sense to do this mathematics yourself. You should just use Color.red and so on. Oct 15 01:06:46 TacticalJoke: could you give an example of how I can use that to extract the r channel from a hex colour? Oct 15 01:06:51 I've never used that Color class tbh Oct 15 01:07:19 forget hex its just an int Oct 15 01:07:24 and the functions take a int Oct 15 01:07:29 but i still wouldnt use the functions Oct 15 01:07:31 Here is the source of Color.red: public static int red(int color) { return (color >> 16) & 0xFF; } Oct 15 01:07:45 Napalm: Why not? Oct 15 01:07:54 infact, i wouldn't do it anything like what your doing probably Oct 15 01:08:12 How would you go about doing it? Oct 15 01:08:14 TacticalJoke: overhead, and he's going to have a lot if he's processing lots of color values Oct 15 01:08:47 Faizan: i dont know your application, so I cant really comment in detail Oct 15 01:08:48 No it's just once Oct 15 01:09:07 it's basically an initialization phase to set the colours of bounding boxes etc for the overlay Oct 15 01:09:31 Faizan: then use the Color funcs Oct 15 01:09:34 and you do it once - but I need to feed that colour into both android draw methods (e.g. circle) and opencv's text method Oct 15 01:09:51 Faizan: Here's the source: https://android.googlesource.com/platform/frameworks/base.git/+/master/graphics/java/android/graphics/Color.java#53 Oct 15 01:10:18 but if i'm understanding correctly, arent the Color functions basically doing what I'm doing anyway? Oct 15 01:10:24 a bit of shifting and masking Oct 15 01:10:36 It does, but there's less room for error (and easier-to-read code). Oct 15 01:10:43 okay gotcha Oct 15 01:10:45 and there's* Oct 15 01:11:07 I'll look into that then, thanks guys! Oct 15 01:11:44 it would just be something like int r = Color.red(0xFFFF0000); for example right? Oct 15 01:12:00 Or whatever the users chosen color was Oct 15 01:12:19 r = Color.red(overlayColor); Oct 15 01:12:31 yeah Oct 15 01:12:45 okay that's actually a whole lot easier, thanks again Oct 15 01:13:52 The Color class is pretty handy. :D Oct 15 01:14:09 Yup I'm sure it is. I've not really had much purpose for Color Oct 15 01:14:19 Color me surprised. Oct 15 01:14:32 Been having a nightmare with OpenCv's JavaCameraView for the last week Oct 15 01:15:46 I guess the Color.x methods will be no good for RGBA representations Oct 15 01:16:35 they'd be fine, but you'd have to swap them around. r = Color.a() for example Oct 15 01:16:45 yeah Oct 15 01:16:59 which arguably leads to hard to read code :D Oct 15 01:16:59 place a comment above the lines with RGBA -> BGRA Oct 15 01:17:24 i mean BGRA to ARGB Oct 15 01:17:25 lol Oct 15 01:17:50 I genuinely have no idea what's going on Oct 15 01:18:02 tried all 6 combinations of RGB Oct 15 01:18:15 colors are being converted correctly, still not correct Oct 15 01:18:19 maybe its HLS :P Oct 15 01:18:51 It's 100% RGB, I just remember they're really particular about where your alpha component goes Oct 15 01:19:02 so i guess theres 12 combinations including alpha Oct 15 01:19:04 yay Oct 15 01:21:18 RGBA. Why can't they follow normal convention lol Oct 15 01:21:41 that is a normal convention Oct 15 01:21:48 I mean RBGA** Oct 15 01:21:57 oh Oct 15 01:21:59 ok Oct 15 01:24:35 Does anybody know why recording from a surface (as opposed to a camera) might result in a video that's not full size? Oct 15 01:24:44 It's only recording around a quarter of the surface view Oct 15 01:38:37 http://stackoverflow.com/questions/40054097/using-surface-as-recording-source-resulting-video-not-full-size if anybody is knowledgeable about the content in this post, any advice would be very much appreciated/ Oct 15 02:22:47 * capella-5x wonders if it supports openCV 😜 http://arstechnica.com/gadgets/2016/10/nikon-d5500-peltier-cooler-astronomy-less-noise/ Oct 15 02:34:45 hello friends, I am trying to install a library for the first time in android studio but the steps that I am following in the readme is to use gradle assemble, this is giving me an exception, anyone know how to approach this? Oct 15 02:35:13 Which library? Oct 15 02:35:19 it's called gral Oct 15 02:35:34 I just want to have some basic graphs Oct 15 02:36:05 not sure if library is the correct term...software? Oct 15 02:36:23 http://trac.erichseifert.de/gral/ Oct 15 02:36:58 I've never really done anything but install from windows .exe's, switched to ubuntu recently Oct 15 02:38:41 I am using Android Studio and created a Login Activity (template comes with Android Studio). When I click the 'Sign in or Register' button, i get the spinning progress bar, then the app minimizes itself. When I go back to it, an empty login screen is displayed, Oct 15 02:40:26 any idea how to fix this? Oct 15 02:40:45 raj_: It should be enough to put the '.jar' file 'in "libs". Oct 15 02:41:17 xrandr: Why does the app "minimize itself"? Oct 15 02:41:32 but O do not have a .jaar file yet, I think gradle assemble is supposed to make that, can I use the zip instead? Oct 15 02:41:45 TacticalJoke, dunno, using the template from android studio Oct 15 02:41:56 not showing any errors in the console Oct 15 02:41:59 raj_: Download the .jar file. Oct 15 02:42:14 oh okay Oct 15 02:42:19 xrandr: I guess look at the code? Oct 15 02:42:21 I will try that tahanks **** ENDING LOGGING AT Sat Oct 15 02:59:58 2016