**** BEGIN LOGGING AT Wed Dec 14 03:00:00 2016 Dec 14 03:10:42 anyone here use mixpanel? Dec 14 03:19:31 I hope I can ask a question here. I am using android studio 2.2.3 with a AVD loaded and I am telnetting to the console to try and issue command "window scale " (window scale 0.5) as I see in the android studio docs but I am getting "KO: unknown command" error. Anyone tell me what I am doing wrong? Dec 14 03:22:39 real ghost town in here Dec 14 03:22:39 xD Dec 14 03:22:41 AKsuited: do other commands work? Dec 14 03:23:17 eljimmy: it's not a ghost town. It's that we hate you Dec 14 03:25:14 eljimmy: 1) it's a time of the day when there is less people 2) people tend do ignore non-questions like "does anybody use X?" "does anybody knows Y?" 3) Maybe nobody uses mixpanel Dec 14 03:25:51 heh Dec 14 03:26:00 It doesn't help that you're asking a question that should probably be directed at a paid consultant. Dec 14 03:27:06 its irc, just tryin' to chat, lighten up fellas Dec 14 03:27:38 eljimmy: ok. How are you today? Dec 14 03:28:30 Melatonina, quite dandy! and yourself? Dec 14 03:28:45 now it feels like yahoo chat Dec 14 03:34:24 bankai_ how are you today ? Dec 14 03:35:04 eljimmy: I'm good. It's nice of you to join the channel just to say "hello". Most people come here because they have a problem with Android development Dec 14 03:36:17 g00s: sick :( been sick since sunday Dec 14 03:37:16 Hey all, is anyone getting mismatched version errors for the new 25.1.0 support lib? (All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.0, 25.0.1. Examples include com.android.support:animated-vector-drawable:25.1.0 and com.android.support:customtabs:25.0.1 more... (Ctrl+F1)) http://pastebin.com/UQmtazqG Dec 14 03:37:38 bankai_ an excuse to take it easy + hang with the doggies :) Dec 14 03:37:40 The error always shows on the first entry in the list Dec 14 03:38:28 bankai_: flu? Dec 14 03:38:28 It was fine when I was using 25.0.1, only thing changed was "final SUPPORT_LIB_VER = '25.0.1'" -> "final SUPPORT_LIB_VER = '25.1.0'" Dec 14 03:38:54 Melatonina: nuh... i did a tri on sunday, then had a celebratory indian dinner, came with a side of gastro :) Dec 14 03:39:08 Melatonina, haha well im glad you're well. i actually did have a general question i was going to ask. perhaps i should have bypassed the mixpanel icebreaker. ;) Dec 14 03:42:36 bankai_ drink as much as you can and blast it out ! Dec 14 03:43:03 came out both ends, which as you can imagine was a LOT of fun Dec 14 03:43:30 you aren't going anywhere with opposing trust vectors = 0 Dec 14 04:00:01 eljimmy: you are still in time to ask a question if you wish Dec 14 04:01:21 ahh, i was curious what is considered best practice for sharing static primitive data between activities? an API token, for example. using application obj? intent extras? shared prefs? Dec 14 04:05:26 I just use an intent extra. Dec 14 04:07:03 I make each activity have a createIntent method which takes a Context variable and as well as extra info if needed and create intents through that method, that way you know any data requirements are met from the incoming intent Dec 14 04:09:05 So to go from login to main activity it would be "startActivity( MainActivity.createIntent(this, userId) );" for example. "this" is context variable for the LoginActivity, so if you are using fragments or something you would replace it with getContext() Dec 14 04:12:18 i considered that but it seemed redundant to be sending the same static final string on each intent. no? Dec 14 04:12:35 Good evening. Dec 14 04:13:09 puff, salut Dec 14 04:13:16 magic dragons ! Dec 14 04:14:02 g00s: fractal dragons! Dec 14 04:21:38 Hello. Dec 14 04:32:43 Yeesh... I hate this part of the project. Dec 14 04:33:05 At least android is a fairly well-defined application scheme. Dec 14 04:34:01 "Here, we need you to fix this machine." "What 'fix' are you talking about? This isn't a machine, it's a box of parts. Where's the guy who built this to begin with?" "Oh, that guy? Well it's a long story...." Dec 14 04:34:16 (box of parts without a set of instructions, or a design, or.. Dec 14 04:48:43 ratrofit-2 is batter than http-cline Dec 14 04:48:49 client Dec 14 04:51:22 hi Dec 14 04:52:28 i m fetching data in android from web service in php using ratrofit ... Dec 14 04:56:42 cool Dec 14 05:04:34 ratrofit? Dec 14 05:05:10 Melatonina: it's a thong Dec 14 05:09:29 thats what you do to avoid summoning jake Dec 14 05:09:55 I am very sure that rockwood didn't know that :) Dec 14 05:12:10 then there is the rotrofit fork, which rot13s all the things Dec 14 05:19:19 lol i loved the last jason bourne movie, when the 'deep dream' guy blurts out stuff about integrating user preference with UX being unprecedented', such a good swipe Dec 14 05:20:16 "Nokia Lumia 520 booted Android Nougat 7.1" nice, now why doesn't my n7 have it Dec 14 05:27:20 hmm I can't see the text on my alert dialogs... it's showing up as white on white. I created a new style to try and override it but it doesn't seem to be applying Dec 14 05:36:29 Oh i see, looks like it's taking my generic button layout and applying that... Dec 14 05:41:54 Hello. Dec 14 05:42:35 I have a question. Is this wacom kernel module for marshmallow? https://android.googlesource.com/kernel/msm.git/+/77cac325253126dd9e6c480d885aa51f1abf3c40/drivers/input/tablet/wacom.h Dec 14 05:46:52 okay im going to assume thaat i can sk dev questions here Dec 14 05:46:55 ? Dec 14 05:49:38 Yes, thomedy. Dec 14 05:50:25 If that sk is a typo of ask, anyway. Dec 14 05:50:27 can i use c++ in android or java is it Dec 14 05:50:33 <_rm> yes, you can Dec 14 05:50:49 <_rm> but you need to ask yourself if it's really necessary Dec 14 05:51:53 the only reason i ask is myserver only runs c++ java costs more Dec 14 05:52:05 thomedy: yes. create new android project and note “c++ support” checkmark. It will create default .cpp file with your project which will change textview in activity from c++ Dec 14 05:52:06 so im trying to make a decision Dec 14 05:52:25 just try it now Dec 14 05:52:36 <_rm> java costs more? Dec 14 05:52:43 yeah unfortunately Dec 14 05:52:55 im going to eventually beeing vsp Dec 14 05:52:59 but for now im shared Dec 14 05:53:02 vsp? Dec 14 05:53:04 <_rm> i'm not sure i understand Dec 14 05:53:06 vps sorry Dec 14 05:53:14 virtual private server Dec 14 05:53:19 <_rm> what's android got to do with your vps Dec 14 05:53:35 well its also a website and i have never built mobile Dec 14 05:53:46 i was assuming that the db comes from my server? Dec 14 05:53:52 but now im questioning that Dec 14 05:53:58 but one step at a time Dec 14 05:54:07 <_rm> well maybe, but you'd access that through some interface Dec 14 05:54:16 right i anticipate that Dec 14 05:54:24 <_rm> like, your android app isn't running on your server, is it? Dec 14 05:54:30 i know if i write c++ i can comman line with arguments Dec 14 05:54:47 im assuming you can do that similarly Dec 14 05:54:51 this scenario Dec 14 05:54:56 <_rm> i have no idea what you're talking about Dec 14 05:55:10 <_rm> what are you going to use android for Dec 14 05:55:13 okay so if i run c++ i can command line Dec 14 05:55:20 liike ./program arg1 arg2 Dec 14 05:55:33 <_rm> yeah. can't do that on android, at least not in a typical mobile app Dec 14 05:55:35 its only an assumption but im assuming i can make a call like that Dec 14 05:55:40 no worries Dec 14 05:55:52 okay so how about this i am going to build hello work android Dec 14 05:56:19 just to get my feet wet Dec 14 05:56:29 <_rm> download android studio, create a new project Dec 14 05:56:35 <_rm> on your computer, not your server :) Dec 14 05:56:53 <_rm> (you CAN do all of this on the command line as well, but that's way more work) Dec 14 05:57:15 right now everything is locl on my laptop Dec 14 05:57:28 right lets keep devtime down Dec 14 05:59:28 quick question Dec 14 05:59:32 does anyone know how to change the color of an alertdialog's positive and negative buttons? I want to change the text color of the positive button using my theme. The alert dialog is constructed using a builder Dec 14 05:59:44 i know android studio seems to be the main method Dec 14 05:59:59 has anyone heard of codenmae Dec 14 06:00:02 codename Dec 14 06:00:54 codename? Dec 14 06:01:18 it looks like an ide that runs java Dec 14 06:01:27 and also creates binary files for iphoen too Dec 14 06:01:32 any experiencee? Dec 14 06:02:08 my experience with iOS is that you will enter a world of pain if you try to avoid using Xcode in general Dec 14 06:02:33 <_rm> indeed Dec 14 06:02:38 <_rm> not unlike avoiding android studio :) Dec 14 06:02:46 well i will keep out of iphoen questions here Dec 14 06:02:52 cuz this is android Dec 14 06:02:53 but Dec 14 06:03:03 Google does it using their own build tool, but no matter how you do it you will be required to learn a lot about very conveniently undocumented command line tools that apple provides Dec 14 06:03:04 android studio it is thank you Dec 14 06:03:13 yeah Dec 14 06:03:18 builds can be done on android through gradle Dec 14 06:03:20 on the command line Dec 14 06:04:30 <_rm> that's one thing i like about android vs ios Dec 14 06:04:40 <_rm> the tools are so much better on android (albeit slow) Dec 14 06:04:53 well... Dec 14 06:04:55 cool Dec 14 06:05:11 i am just not looking forwrd to writing c++, objective-c, and java Dec 14 06:05:17 that sounds lame Dec 14 06:05:29 im already writing a fair amount of php for the web Dec 14 06:05:35 <_rm> cool kids write android apps with kotlin Dec 14 06:05:41 yeah Dec 14 06:05:59 you need a really good computer to run AS with few performance issues Dec 14 06:06:08 I just upgraded this machine to 32G ram Dec 14 06:06:08 <_rm> i recently started working on a project with kotlin. it rules Dec 14 06:06:18 nah, just a computer with an SSD and at least 8Gb of ram, preferably 16 Dec 14 06:06:19 wow 32g ram sounds awesom Dec 14 06:06:28 okay here we go Dec 14 06:06:33 CedricBeust: that's basically my laptop which ran into performance issues at some point Dec 14 06:06:34 android first Dec 14 06:07:17 <_rm> both my laptop and work computer have 8 GB and an ssd Dec 14 06:07:20 <_rm> it's been ok Dec 14 06:08:12 <_rm> what i don't recommend is trying to run android studio on one of them 12-inch macbooks :) Dec 14 06:08:26 <_rm> trying to compile our sdk with it compelled me to sell the damn thing Dec 14 06:10:51 You can run AS comfortably on a $1300 laptop with 16Gb of ram and a 15' screen Dec 14 06:11:16 <_rm> absolutely Dec 14 06:14:30 yeah I'd say 16 GB is best Dec 14 06:14:45 it'll run on 8GB but 16GB better performance for sure Dec 14 06:15:05 I worked on my laptop for about a year with 8GB ram and SSD Dec 14 06:15:49 Emulator? Dec 14 06:18:18 <_rm> i've practically never had a computer with more than 8 gigs Dec 14 06:18:24 <_rm> but i never use the emulator Dec 14 06:18:27 never use the emulator Dec 14 06:18:45 Very little reason to use the emulator these days Dec 14 06:24:46 <_rm> the emulator's default settings are pretty nutty too Dec 14 06:32:06 I have two apps, both using geofences, for one app, geofences are working, for the other they aren't. Here are some of the implementation differences: https://gist.github.com/Syzygy2048/026be5ed35117732faf62b6f7e4d37af any idea why one works and the other doesn't? Dec 14 06:32:18 the working app calls the onHandleIntent of the intent service once with GeofencingEvent == null and once with a valid trigger right when starting, the other does nothing with the intent Dec 14 06:32:42 the service is running according to the OS and the fences are registered sucessfully (according to a callback) Dec 14 06:34:43 Hi! I am new here. I am working on Dictionaries for IME and stuck upon an issue. Can anyone suggest me the right place to talk about it? (If this is not the right place to ask about it) Dec 14 06:35:51 Thanks for your help :D Dec 14 06:47:15 * raoul11 thepooshes thepoosh Dec 14 06:47:32 hi hi Dec 14 06:47:36 what's news? Dec 14 06:48:19 https://pbs.twimg.com/media/CzQuGB1WIAIpn7i.jpg:large Dec 14 06:48:28 tryin to figure out this bug i see in firebase Dec 14 06:48:59 its iabhelper related, so finding 0 fux on google Dec 14 06:49:12 trying to write a web based implementation of a BBC radio game show using firebase as a backend - in the next 4 hours or so Dec 14 06:49:20 I've noticed GAv4 (google analytics) logs fired each time app launches Dec 14 06:49:47 wondering how and why and where do I find what is spying Dec 14 06:52:59 app is just empty android studio project Dec 14 06:53:23 third party libs? Dec 14 06:54:52 maybe Dec 14 06:55:06 or it is trigger by other app on wake Dec 14 06:55:08 ? Dec 14 07:12:36 https://code.google.com/p/android/issues/detail?id=223249 << can anyone see this guy full email? Dec 14 07:14:51 no Dec 14 07:17:33 found his dev account. he's the only other post on google with a similar bug to mine Dec 14 07:22:03 raoul11: found a new online stalking target? Dec 14 07:22:19 tryin to resolve this shitty bug Dec 14 07:22:43 who has like 3 lines of stacktrace, and 0 outcomes on google search Dec 14 07:22:54 which* Dec 14 07:24:45 no one is surprised Dec 14 07:24:46 :) Dec 14 07:26:24 lets see if its even him Dec 14 07:26:34 and he has any useful input on this bug Dec 14 07:26:53 i need a 6 device to test anyways, wont have one till tonight Dec 14 07:29:01 God damn it why are my geofences not working T_T Dec 14 07:34:41 Currently I have an issue with my geofence test app that my geofenceintenservice is triggered twice, first with a list of triggered geofences that is null, a second time with valid geofences. Dec 14 07:35:14 Can someone check why that would be that case? Here's the repo https://github.com/Syzygy2048/GeofenceTestApp (it's just geofencing, nothing else, so should be easy to look through) Dec 14 07:35:50 https://gist.github.com/Syzygy2048/026be5ed35117732faf62b6f7e4d37af here's a short outline of what calls are made. Dec 14 08:43:36 hey guys got a quick question background services do those get installed like a normal app does? Dec 14 08:48:02 eagles0513875|2: a Service is a component of an app Dec 14 08:48:17 Leeds: ok no way to run a service with out an app Dec 14 08:48:46 reason im askign i work at a taxi company and our drivers have mobiles associated with a custom app that we use as well as some other settings like an app connecting to a dav server that i manage. Dec 14 08:48:52 that question doesn't make sense Dec 14 08:50:07 hello Leeds Dec 14 08:50:09 long time Dec 14 08:50:18 it's like asking "what if we wanted a steering wheel and engine, without a car?" Dec 14 08:52:55 hm? Dec 14 08:53:00 certain drivers are removing accounts associated access to the dav server etc. is there a way if an app had to be created as well as changing passwords for the wifi hot spot. basically through the background service Dec 14 08:53:44 i want if a user tries to remove an account unless a password is specified by me the app wont let the account/hotspot password be changed or any apps uninstalled or installed that obviously are not done through giving a password to allow the installation or uninstallation Dec 14 08:54:31 there are management systems for that sort of thing Dec 14 08:54:49 or, y'know, company disciplinary stuff for employees who mess with company equipment Dec 14 09:00:31 Leeds: i had implemented an app lock app and its not working they are even removing that. Dec 14 09:00:43 and its not easy to trace whose doing the stuff in our environment. Dec 14 09:01:19 any one time we have 80 drivers and it takes some time before they report an issue with the mobile and makes it impossible to trace Dec 14 09:01:57 anyway will figure out another way to do this. Dec 14 09:02:00 https://support.google.com/a/answer/1734200?hl=en Dec 14 09:02:27 eagles0513875|2: that's for you Dec 14 09:09:05 you're welcome Dec 14 09:22:30 hey Dec 14 09:22:39 is it possible to install a custom TEE in any android device? I would like to install my own "trusted apps" into a TEE. Dec 14 09:23:14 I've made my own class App extendes Application. In App I keep my application state including the User object of the logged in user. My problem is that sometimes loose this state in App, I think when the App has been paused over a long period. But how do I preserve App state? There's on savedInstanceState as far as I can see. Dec 14 09:25:02 <_rm> save your state when the app goes to the background Dec 14 09:25:05 <_rm> there are ways to detect this Dec 14 09:25:16 Hint: Application, not Activity. Dec 14 09:25:52 <_rm> yeah Dec 14 09:25:56 <_rm> i said "app" Dec 14 09:26:12 <_rm> and that there are ways to detect when your app goes to the background Dec 14 09:26:37 <_rm> so you'd have to save the state to disk yourself somehow Dec 14 09:26:41 How do I detect this? How do I save and restore state? Dec 14 09:26:52 kunfoozius: golf, or casual clothing? Dec 14 09:27:29 <_rm> Zta77: e.g. https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN Dec 14 09:28:03 <_rm> and conversely you can implement Application.ActivityLifecycleCallbacks somewhere to detect when your app returns Dec 14 09:28:13 <_rm> saving and reading is something you'll ahve to figure out Dec 14 09:28:39 Leeds: I prefer casual clothing, but honestly don't understand the question Dec 14 09:29:17 kunfoozius: what is a 'custom TEE' if not a shirt, or something to put a golf ball on? Dec 14 09:29:52 Leeds: trusted execution environment Dec 14 09:30:20 _rm: Thanks! I'll look into this. Too bad Application doesn't have a cleaner API for this. onSaveInstanceState and onRestoredInstanceState would be appropriate here . Dec 14 09:32:02 Leeds: that is the part of the system where all the secrets are handled. I guess there is no way to update the TEE, even by rooting, but I may be wrong Dec 14 09:32:04 <_rm> Zta77: yeah, i think the point is that you're not supposed to do application-specific stuff like that :) but we had the need to actually follow the application lifecycle, so.. Dec 14 09:32:26 kunfoozius: this does not seem to be an app development question, as such... Dec 14 09:32:50 Leeds: yeah right ... who could I ask? Any idea? Dec 14 09:33:58 _rm: Where else should I store my application state like currently logged in User? It seems inappropriate to save/restore from every Activity as it's somewhat out of their concern. Dec 14 09:34:31 kunfoozius: dunno, really Dec 14 09:34:50 Zta77: sharedpreference? Dec 14 09:35:42 Leeds: That's not an answer. SharedPrefs is just a tool to persist data. Dec 14 09:36:22 I could, of course, in my BaseActivity's onCreate() check if I have App state. If no, then logout user and restart at login Activity. Dec 14 09:36:39 But I'd rather just resume application usage. Dec 14 09:37:00 ok thanks, bye Dec 14 09:51:48 Hi all, I'm struggling to implement this criteria: Accept a POST of an item into the shopping cart. I been given the URL that shows the Request and Response. See here: http://pastebin.com/HKs8BK8E I have use Retrofit to GET items but I have never use it to POST and item before. How should I go about implementing this in retrofit. Do I just add my item to the shopping cart and then call my retrofit to send HTTP POST. Dec 14 09:55:34 droidace: are you asking how to implement a POST call with retrofit? Dec 14 10:00:16 Hn, Dec 14 10:00:17 Hm, Dec 14 10:01:54 I'm building an app that uses the mapbox android API. I added the mapboxetc.jar dependency and the central maven repo to project/app/build.gradle, but not to project/build.gradle. This caused android studio to go download mapbox, yay, it builds successfully. But building the APK fails with VegetableAmountNet Carbs Dec 14 10:01:54 Mustard Greens1/2 Cup0.1 Dec 14 10:01:54 Parsley (Chopped)1/2 Cup0.1 Dec 14 10:01:54 Spinach (Raw)1/2 Cup0.1 Dec 14 10:01:57 Bok Choi1/2 Cup0.2 Dec 14 10:01:59 Endive1/2 Cup0.2 Dec 14 10:02:02 Lettuce (Iceberg)1/2 Cup0.2 Dec 14 10:02:53 Dammit... I hope I didn't just spam the channel, and if I did, I apologize. Dec 14 10:03:00 linux cut & paste, oh how I hate you. Dec 14 10:12:56 danalbert, I think you guys forgot to push the Unified Headers Wiki page to GitHub :) Dec 14 10:13:16 puff: I <3 linux cut and paste Dec 14 10:13:22 puff: two clipsboards for the price of one :) Dec 14 10:15:22 srsly puff Dec 14 10:26:30 ))))))))) Dec 14 10:27:33 But building the APK fails with VegetableAmountNet Carbs Dec 14 10:27:55 <_rm> Zta77: how about the Android Way, and keep it in a singleton somewhere Dec 14 10:28:03 puff: fails with a method not found exception? Dec 14 10:35:46 squ: It fails, unable to find the mapbox jar. Dec 14 10:36:09 I guess it should go to jniLibs directory Dec 14 10:43:35 squ: I'm pastebinning it... Dec 14 10:43:47 no need Dec 14 10:43:53 can't help you anyway Dec 14 10:47:58 https://gist.github.com/anonymous/1083be7ed2568d4ed3c17e1d243d7188 Dec 14 10:55:26 has anyone setup a an android app in COSU mode "adb dpm set-device-owner" that manages the iptables ? im trying to understand if it is even possible Dec 14 10:56:07 raoul11: can you grep you adb for ‘fwrapper’ Dec 14 10:57:00 this thing spies thru camera device Dec 14 11:42:14 I am experiencing occasional problems unzipping zip files. The resulting output is a 0 byte file. Is this a known problem on Android? Dec 14 11:43:06 The file is extracted from assets Dec 14 11:53:47 Hello :). So I created a nice custom view in one class file. Now I want to re-use this like a package for importing to other AS projects. How do I do that ? Dec 14 11:54:19 To avoid copying the class file to each new project which will use it. Dec 14 12:07:31 NeoFrontier: how much nice is that custom view? Dec 14 12:07:59 Very much nice. Dec 14 12:08:00 Hi :) Dec 14 12:08:05 hi Dec 14 12:08:06 Ok Dec 14 12:08:09 Do like this Dec 14 12:08:31 create a folder where you'll store your libraries Dec 14 12:08:33 Done? Dec 14 12:09:04 Are you there? Dec 14 12:10:08 My c_mputer is hanging. Dec 14 12:10:51 Ok. Get back when it's ok Dec 14 12:11:31 you ok and then ? Dec 14 12:11:35 @ Melatonina Dec 14 12:11:44 yeah* ok and then ? Dec 14 12:12:58 create a new project in Android Studio Dec 14 12:12:59 will this make life easier for me than copying the class into the new project each time ? Dec 14 12:13:10 yes Dec 14 12:13:23 project location: inside that folder Dec 14 12:13:34 you'll create all your shared libraries in that folder Dec 14 12:13:40 (most of the times) Dec 14 12:13:57 set the platform as you wish Dec 14 12:14:05 "Add no activity" Dec 14 12:14:33 Done? Dec 14 12:15:08 hello? Dec 14 12:15:27 Jip Dec 14 12:15:27 hi :) Dec 14 12:15:53 rename the app module like your library Dec 14 12:15:58 "mylib" Dec 14 12:16:08 open the manifest Dec 14 12:16:28 remove the application tag Dec 14 12:16:39 done? Dec 14 12:17:20 remove the mipmap resources Dec 14 12:17:36 _rm: I am keeping it a Singleton. The Singleton instance lives on App. Dec 14 12:17:48 remove colors Dec 14 12:17:52 remove strings Dec 14 12:18:11 remove the styles Dec 14 12:18:25 done Dec 14 12:18:27 NeoFrontier: done??? Dec 14 12:18:28 ok Dec 14 12:18:47 open the build.gradle for you lib's module Dec 14 12:19:04 change apply plugin: 'com.android.application' to apply plugin: 'com.android.library' Dec 14 12:19:10 _rm: I assume that if my Application dies then my Application's singletons, no matter where they're kept, also are cancidates for gc. Dec 14 12:19:42 remove the applicationId field in defaultConfig Dec 14 12:20:22 NeoFrontier: give feedback, please Dec 14 12:21:20 Done @ Melatonina Dec 14 12:21:23 ok Dec 14 12:21:35 this is your library project Dec 14 12:21:49 bu you'll rarely open it to edit the library Dec 14 12:21:59 sync gradle Dec 14 12:22:05 save everything Dec 14 12:22:25 switch to a project where you want to use this library Dec 14 12:22:35 done? Dec 14 12:24:08 NeoFrontier: I'm about to go to sleep Dec 14 12:25:01 bye Melatonina Dec 14 12:25:05 sleep well Dec 14 12:25:14 I was joking Dec 14 12:25:46 but NeoFrontier is a bit slow. Dec 14 12:25:48 I will thank you when you wake up then. Dec 14 12:25:57 It's not finished Dec 14 12:26:02 switched? Dec 14 12:26:20 Add two lines like these in settings.graddle Dec 14 12:27:00 These ? Dec 14 12:27:09 include ':mylib' Dec 14 12:27:09 project(':mylib').projectDir = new File('path/to/your/Library/librarymodule') Dec 14 12:27:28 librarymodule would be "mylib" in this case Dec 14 12:27:31 and finally Dec 14 12:28:00 if you want to use that library in a specific module, like in your app module Dec 14 12:28:14 add a line like this in the build.gradle of that module Dec 14 12:28:22 compile project(path: ':mylib') Dec 14 12:28:27 sync gradle Dec 14 12:28:38 aaah Dec 14 12:28:42 and your library module should appear in the Android tab Dec 14 12:28:54 you can move classes there with drag and drop Dec 14 12:29:07 or simply create new classes or resources there Dec 14 12:29:14 mmmm Dec 14 12:29:17 That's all Dec 14 12:29:24 The first time it's complicated Dec 14 12:29:40 then it's quite quick and easy Dec 14 12:30:15 well done! Dec 14 12:30:20 thanks to me Dec 14 12:30:36 clap clap clap clap clap clap Dec 14 12:30:37 I'm just thinking Dec 14 12:30:56 did it work as described, at least? Dec 14 12:31:32 I completed the whole thing but will test it later. Thanks for all that. Was kind of you. Dec 14 12:31:47 I compiles though. Dec 14 12:31:48 Np Dec 14 12:32:03 sorry for my impatience but I have a big headache Dec 14 12:32:09 good luck Dec 14 12:32:43 Good luck with your headache, its terribly hot here Dec 14 12:33:38 where in the world are you? Dec 14 12:34:53 South Africa. Dec 14 12:35:01 hows weather? Dec 14 12:35:16 Shes very hot. Dec 14 12:35:27 but the sea breeze? Dec 14 12:36:08 I use my Cool Machine to get a cool breeze, designed it myself :D Dec 14 12:36:30 lets change places :) Dec 14 12:36:33 heh what it is made of? Dec 14 12:37:08 6°C raining :P Dec 14 12:37:28 you can see it @ http://infomultiverse.com featured article. @ squ Dec 14 12:38:01 where Dec 14 12:38:08 DIY LOW COST ENERGY EFFICIENT AIR COOLER – THE COOLMACHINE Dec 14 12:38:10 this? Dec 14 12:38:11 :) Dec 14 12:38:34 http://infomultiverse.com/wp-content/uploads/basicworking2.jpg Dec 14 12:39:00 Yes. Dec 14 12:39:52 water from bottom bottle is evaporated and you have breeze in your face Dec 14 12:40:30 No you have a pressure bottle with spray nozzle blowing into the fan array. Dec 14 12:40:37 I am trying to find the code in AOSP where assets are extracted from the apk. Any pointers? Dec 14 12:41:47 do you want to decompile barq ? Dec 14 12:44:29 NeoFrontier: No, I want to fix a bug that happens during asset extraction in my app. The resulting file that is unzipped sometimes has 0 bytes. Dec 14 12:45:18 Other people are experiencing this problem randomly as well as for example here: https://github.com/sqlcipher/android-database-sqlcipher/issues/139 But I haven't found the actual origin of the problem. Dec 14 12:45:54 sounds like one of those difficult problems. Dec 14 12:47:25 hi barq, do you want to start from asset manager ? Dec 14 12:48:41 You mean android_util_AssetManager.cpp? Dec 14 12:49:23 or asset_manager.cpp Dec 14 13:05:06 soz squ, was away, you still need that grep? Dec 14 13:05:19 no Dec 14 13:23:54 guys, someone know some tutorial or a loader like the ones used in some apps/games? these are an logo/image that will be filled with the color while the app is loading Dec 14 13:23:58 (sorry for my enlish) Dec 14 13:24:11 or at least some other way to make an good looking loader Dec 14 13:26:01 Hello Dec 14 13:33:55 samsagaz: loader like in youtube app? Dec 14 13:35:50 mmm no, i found a few tutorials but are not what i want. For example have an black and white image and while the app is loading then the image start filling with colors Dec 14 13:35:53 understand? Dec 14 13:35:57 my english sux :/ Dec 14 13:38:59 a loading icon? Dec 14 13:39:21 what is Fling gesture? Dec 14 13:39:42 Drag and throw =) Dec 14 13:39:47 raoul11, yes loading icon that will be filled with colors Dec 14 13:39:47 thanks Dec 14 13:39:55 samsagaz: animation? Dec 14 13:39:58 https://github.com/81813780/AVLoadingIndicatorView Dec 14 13:40:05 yeah think he's talking bout animation Dec 14 13:40:12 during app launch Dec 14 13:40:23 yes during app launch Dec 14 13:40:55 samsagaz: it is called Splash Screen Dec 14 13:41:09 ok, thanks will google about it! Dec 14 13:41:11 thanks guys Dec 14 13:55:56 =) Dec 14 14:03:54 where is g00s Dec 14 14:04:05 raoul11: going to watch SW tonight? Dec 14 14:04:15 the what Dec 14 14:04:20 starwars Dec 14 14:04:25 ohnoes Dec 14 14:04:39 gonna wait for a neat lil bluray Dec 14 14:05:21 heh Dec 14 14:05:32 going to iMAX with a friend who's a food critic Dec 14 14:05:38 so dinner is on him Dec 14 14:08:46 member chewbaca thepoosh Dec 14 14:11:43 oh!!! I member!!! Dec 14 14:12:58 yer friend hasnt responded btw Dec 14 14:13:12 Only nine votes? Come one: https://twitter.com/Zta77/status/808430278309986304 Dec 14 14:13:27 *on.. =\ Dec 14 14:13:48 not sure i still have a twitter account Dec 14 14:14:43 clearly project Dec 14 14:37:50 raoul11: spoke to her, she passed it on Dec 14 14:57:05 can someone give me a quick overview of the difference between the "Toolchain default" and the c++11 Dec 14 14:57:19 it is using an NDK compiler regardless correct Dec 14 14:58:14 If I am using a native activity as the foundation but tying in another c++ application. Would c++11 be the best choice Dec 14 15:01:28 when is toolchain default more appropriate? Dec 14 15:23:47 Hey I am following an MVP pattern and want to get the context/activity in a P class Dec 14 15:24:29 sof apears to say this is wrong but the Visitor pattern we use would call the onclick in the P class , so are these just not compatible ?? Dec 14 15:25:38 TL:DR , calling the permission needed in a visitor pattern in the Presentation class and think this should work but doesnt Dec 14 15:30:48 i am facing issues mapping points on a picture for diffrent devices help ? Dec 14 15:31:11 screen resolution change and alos my x y cords how should i slove this ?? Dec 14 15:31:52 ?? Dec 14 15:37:11 mx8manger: how about ImageView.getWidth() and Height() Check how much they differ from your original image, then multiply that value with your coordinates? Dec 14 15:39:33 Good morning folks. I was asked to post my question here rather than on #android Dec 14 15:39:47 we're debugging a complicated issue in the embedded browser app(not the browser we install like Chrome, etc) when we visit a captive portal. The javascript code we're using to check browser uses features like `window.fetch` if they exists. Older browsers didn't have Fetch API so our checker code worked. Unfortunately, it's failing in Google Pixel and Samsung S7 when captive portal launches and opens our app. Dec 14 15:42:32 Also, I'm having a very difficult time remotely debugging our javascript web application on this browser like app since the Chrome browser on my laptop only sees the devices but not include link to inspect it Dec 14 16:14:00 Re Dec 14 16:27:32 hi. Is it possible to move a card in a recyclerview from its original position, to the top of the list? Dec 14 16:30:43 what activity method is called when returning from a dialogfragment? Dec 14 16:32:13 LucaS05: Maybe this will help you http://stackoverflow.com/questions/33698646/how-to-change-position-of-items-in-recyclerview-programmatically Dec 14 16:39:34 Bleke: i'm trying it Dec 14 16:56:07 JuliusN: I don't think a method is called; the docs recommend implementing an interface in the activity: https://developer.android.com/guide/topics/ui/dialogs.html#PassingEvents Dec 14 16:57:17 That is how I do it in my app and it works fine Dec 14 17:42:18 Hey. i have a service that is responsable to acess the db and i have a main app and a widget that needs some data from the service. How can i send data from the service to activities? I request the data with a broadcast that the service handles, but how can i send from the service to the activite or widget? Dec 14 17:44:29 http://stackoverflow.com/questions/14351674/send-data-from-service-to-activity-android Dec 14 17:44:32 top result on google Dec 14 17:51:18 An event bus would be so much simpler then dealing with Binders and such Dec 14 17:51:40 I havent tried it with a service though. Dec 14 17:56:34 How reliable is AlarmManager? Dec 14 17:56:55 What makes you think its unreliable? Dec 14 17:57:11 It shouldnt be used for timing operations that need to be exact Dec 14 17:58:17 We’re having some hard to reproduce issues with alarmmanagers not removing push notifications that are supposed to expire, and looking into it it says that alarm delivery is inexact post API 19 Dec 14 18:00:46 Are alarms guaranteed to be called at some point unless the phone restarts? Dec 14 18:01:42 Android_Patrick: I don't know this for sure, but choosing C++11 might choose a different STL Dec 14 18:01:56 It might default to gnustl but switch to libc++ for C++11 Dec 14 18:02:16 It might also just be `-std=c++11` vs whatever the compiler default is (`-std=c++98`) Dec 14 18:02:50 (details about STLs here: https://developer.android.com/ndk/guides/cpp-support.html) Dec 14 18:03:36 orbyt_: Is there a better option for timing operations that should be more exact that need to run hours in the future? That seems like it should be outside the scope of a delayed runnable Dec 14 18:04:25 It's documented which AlarmManager methods are inexact Dec 14 18:04:41 konk3r Yea, alarm manager operations are not exact. They are fired off around the time specified, plus or minus some time depending on what the system determines is best Dec 14 18:04:45 But they'll all be executed eventually Dec 14 18:05:02 Unless the device reboots Dec 14 18:05:55 konk3r Im pretty sure the docs specify a few ways for exact alarms, they should be mentioned in the AlarmManager documentation as well Dec 14 18:07:04 Okay, I’ll double check the docs Dec 14 18:07:32 Is it possible with Rx to NOT have a subscriber that has onError() and not run into an onErrorNotImplementedException? Dec 14 18:07:32 however, if you at all can, you should favor the inexact timers, as they’ll help conserve battery life Dec 14 18:08:09 For my question above, I mean things like doOnError() seem to just do something with the error, but will not consume it Dec 14 18:08:25 Im wondering if theres a way to consume it without a subscriber implementing onError Dec 14 18:10:50 I’m fine with somewhat inexact timers. My issue is that we have some notifications that are set around timed events that we want to expire. It works 95% of the time with an alarm but in 5% of cases the notifications aren’t being dismissed for an hour+ after the alarm was supposed to fire (when the phone is being actively used). It’s hard to repro so I’m trying to figure out if there’s anything I missed with alarmmanagers on the Dec 14 18:10:50 side while I’m attempting to repro it. Dec 14 18:12:09 The notifications arent being dismissed, or there not firing? Dec 14 18:12:27 they're* Dec 14 18:16:21 They aren’t being dismissed Dec 14 18:17:57 They’re displaying fine, and in all of my local tests I set them to expire a minute later and that has never failed, but on production when they are supposed to be dismissed several hours later it’s intermitantly failing to dismiss them. Dec 14 18:19:55 Perhaps add some code and check to make sure the event is at least firing. That should narrow down the issue greatly. Dec 14 18:20:04 Hey guys, whats the best way to ensure DownloadManager is cleaning up files when remove(id) is called now that we can't access the local file path? I'm calling remove on this S7 and it seems to leave the file on disk. Dec 14 18:20:06 That’s where I’m at right now Dec 14 18:20:41 orbyt_: at least I’m on the right path then, heh. I was hoping there was something glaring that I overlooked here while I’m waiting to collect logs on that. Dec 14 18:22:55 I’m still going to read over the docs again to be safe Dec 14 18:46:58 Alright, fixed! The issue wasn’t that the alarm wasn’t being called, it’s that it was being called with the wrong intent Dec 14 18:47:14 Anyone use DownloadManager on an S7 edge? I'm having issues with getting it to delete the file when I'm done. Dec 14 18:47:17 In case anyone cared haha Dec 14 18:51:33 Hello, can someone Please help me in making simple android app? Dec 14 18:51:44 I need guidance about how to do it Dec 14 18:51:54 there are a lot of guides out there Dec 14 18:51:55 if anyone willing to help me please let me know, I iwll give further details Dec 14 18:52:45 s73v3r: so there is a website which checks serial number for warranty, without captcha, I want to make an app so that I check serial from app not from computer Dec 14 18:53:28 no, but all you would be doing is taking in input, sending it to a web service, and displaying the result Dec 14 18:53:37 there are plenty of guides out there that will help you do that Dec 14 18:53:43 what to search for? Dec 14 18:53:51 what guide should I search for Dec 14 18:54:05 start at d.android.com Dec 14 18:54:14 maybe read the Big Nerd Ranch android book Dec 14 18:54:25 they will get you started with basic android development. Dec 14 18:58:17 Hi. I have a dialog that has some settings such as initial color, etc: http://pastebin.com/DiGrHFAw - how can I make it so that lightnessSliderOnly() is used as a setting only if some boolean is true Dec 14 18:58:48 e.g. .if (trackingMode == 1) lightnessSliderOnly() - I know this is completely incorrect syntax, but is something like that possible? Dec 14 18:59:31 you’d either have two versions of the builder, or you could store the builder in a variable, and if trackingMode, add the last one Dec 14 19:00:36 Ah okay - two versions of the builder was what I was going to do but wanted to make sure there wasn't something simpler Dec 14 19:07:31 got it - thanks s73v3r Dec 14 19:08:08 went for the second method (storing builder in a variable) as its much cleaner Dec 14 19:13:29 Working with EditText + Spannable, when I specify text such as: [fdf]fdfdf (where text in brackets is text with a StyleSpan at SPAN_EXCLUSIVE_EXCLUSIVE), when I backspace at the end, it removes the span. Dec 14 19:14:02 How can I prevent this from happening? Dec 14 19:25:30 Hi I want to implement this criteria using Retrofit HTTP POST: "Accept a POST of an item into the shopping cart". I'm a bit confuse how to do it, do I create a model of the Request or The response first. he is my request and response http://pastebin.com/HKs8BK8E Dec 14 20:03:12 so i have 6 buttons across the top left of my view and below that I have a text view (image buttons). im using a relative layout and have put the text view below button A Dec 14 20:03:33 how do i make the text view so that its right edge aligns with the right edge of the far right button? Dec 14 20:04:33 align_right Dec 14 20:04:42 or maybe align_end Dec 14 20:05:23 layout_alignRight Dec 14 20:07:32 i can alignRight with the last button? Dec 14 20:07:42 yeah Dec 14 20:07:51 will that align text views right edge with buttons left or right edge? Dec 14 20:07:59 right edge Dec 14 20:08:06 it’s align right Dec 14 20:09:45 so intellij idea is telling me that align right is a redundant atribute now Dec 14 20:09:59 mark4: hi Dec 14 20:10:13 hi Dec 14 20:10:50 layout_alignRight? Dec 14 20:11:48 aha no layout_alignEnd Dec 14 20:12:03 i had that in there so right and end were doing the same job Dec 14 20:12:08 it was just set wrong Dec 14 20:12:14 same thing, yeah Dec 14 20:12:37 "Fetching documentation..." issue is back :( Dec 14 20:13:27 its saying my layout width should still be set Dec 14 20:13:39 wtf do i set it to that it doesnt bugger up the align right? Dec 14 20:14:25 i guess wrap content works :) Dec 14 20:16:16 mark4: "end" and "start" are equivalent to "right" and "left" only in left-to-right locales. If you want the sides to be swapped when text is right-to-left you should use "start"/"end". Otherwise you should use "left"/"right" Dec 14 20:17:00 For example if you want an icon to be displayed at the side of a button, where the text ends, you should use "end" Dec 14 20:17:29 ya makes sense! Dec 14 20:17:33 If you want to place direction signs "arrow left" and "arrow right" you probably want them to be to the left or to the right regardless of the direction of the text Dec 14 20:20:46 this is seriously xmas inside AS canary 3 Dec 14 20:22:14 is there a Christmas theme? Dec 14 20:45:53 hi, i need to configure android studio with NDK but there is some strange: https://developer.android.com/studio/images/projects/ndk-install_2-2_2x.png my list is much short Dec 14 20:46:14 and there isn't cmkae or lldb or ndk Dec 14 20:46:24 i need to add "SDK update site" ? Dec 14 20:46:36 my android studio is 2.2.3 Dec 14 20:47:45 help me pls Dec 14 20:50:42 if you ask "please" some more times and shed some tears, we may decide to help you Dec 14 20:50:50 xan_IT, i stopped using AS for ndk. its too flakey Dec 14 20:50:56 inconsistent Dec 14 20:51:23 you use android studios built in update manager Dec 14 20:51:53 i have download ndk manually but gradle doesn't see cmake Dec 14 20:52:17 wait Dec 14 20:52:45 https://paste.ubuntu.com/23630569/ Dec 14 20:53:26 mark4 in local properties i have added ndk.dir Dec 14 20:53:51 mark4: you found a NDK friend! Dec 14 20:53:53 aha thats what i was looking at Dec 14 20:54:10 Melatonina, one with all the same problems im facing :P Dec 14 20:54:12 Melatonina ahahaha Dec 14 20:54:12 you are not alone anymore Dec 14 20:54:19 thz GOD Dec 14 20:54:35 another IRC success story Dec 14 20:55:14 there is no spoon Dec 14 20:55:49 i was spending way too much time trying to figure out how to get AS to do what i wanted it to do and after i figured it out, getting it to KEEP doing what i wanted it to do Dec 14 20:55:51 no development Dec 14 20:56:05 Melatonina http://pasteboard.co/9PW4j4n8d.png this is my Dec 14 20:56:19 i switched back to intellij idea and just run ndk-build from shell Dec 14 20:56:33 its not even close to ideal but im not fighting it all the time Dec 14 20:56:44 how debug? Dec 14 20:57:06 Melatonina why my list is too short? Dec 14 20:57:23 lol im doing an NDK library in ASM. there is NO debug except printf to logcat Dec 14 20:57:32 literally thats it Dec 14 20:57:37 :) Dec 14 20:58:14 https://developer.android.com/studio/projects/add-native-code.html#download-ndk seams works Dec 14 20:58:17 xan_IT: mark4 is the NDK expert. I don't know anything about it. Sorry Dec 14 20:58:33 not even close to expert Dec 14 20:58:37 xan_IT: did you file a bug? that just looks like a studio bug to me Dec 14 20:58:40 just dipped my pinky toe in the waters so far Dec 14 20:59:01 Melatonina http://pasteboard.co/9PW4j4n8d.png your list is like mine? Dec 14 20:59:10 mark4: ndk-gdb should be able to handle debugging asm, fwiw Dec 14 20:59:17 I would expect lldb can too Dec 14 20:59:20 are you in linux? Dec 14 20:59:22 xan_IT: you are writing to me instead of writing to mark4 Dec 14 20:59:53 i want to know if my list is strange or normal Dec 14 20:59:53 danalbert, yes and GDB is the single most horrendously bad debugger for debugging asm i have ever used. cant see items on the stack because wtf thers no stack frame omg Dec 14 21:00:23 its even worse than the nec-75x ICE which only displayed an opcode AFTER you stepped it lol Dec 14 21:00:34 mark4 i use linux Dec 14 21:00:46 export ANDROID_HOME="/home/mark4/Android/Sdk" Dec 14 21:00:58 you need to set your path to the sdk in .bash_profile Dec 14 21:01:14 anyone can tell me is my list is same of your ? http://pasteboard.co/9PW4j4n8d.png Dec 14 21:01:31 mark4 already done Dec 14 21:02:09 anyone can open android studio? Dec 14 21:02:22 hang on looking Dec 14 21:02:23 xan_IT: As I said, no, you should be seeing NDK and related pieces too Dec 14 21:02:43 Best bet is to file a bug Dec 14 21:03:13 yea that list is wrong Dec 14 21:03:20 you dont have all the right update sites Dec 14 21:03:59 im going to PM you my update sites Dec 14 21:04:04 make sure you have all the same ones Dec 14 21:04:16 how many update site you have? Dec 14 21:04:27 9 Dec 14 21:04:39 me only 1 ........ Dec 14 21:04:42 yup Dec 14 21:04:45 theres your problem Dec 14 21:04:57 look at my PM, i sent you what i have Dec 14 21:05:16 i have to go to the store Dec 14 21:05:30 xan_IT: http://oi64.tinypic.com/2rpr7z8.jpg Dec 14 21:05:54 Melatonina huston i have a problem :D Dec 14 21:06:13 Melatonina, we found his problem :P Dec 14 21:08:18 https://paste.ubuntu.com/23630628/ this is my "SDK update site" see from android studio Dec 14 21:12:48 just add the ones i sent to you in a private message Dec 14 21:18:48 mark4 added but same result Dec 14 21:18:57 i use linux 64bit you? Dec 14 21:20:10 same Dec 14 21:20:17 close as and reopen Dec 14 21:20:23 im going to store brb Dec 14 21:23:24 i hate NDK Dec 14 21:34:11 Melatonina i found it manually...... https://dl.google.com/android/repository/cmake-3.6.3155560-windows-x86_64.zip Dec 14 21:37:48 Melatonina i have an idea but i don't know if can be true: recentry ndk for linux are only for 64bit but android studio are 32 bit, and doesent see package as compatible Dec 14 21:40:39 xan_IT: I don't know anything about the NDK. I already told you. I'm sorry Dec 14 21:40:48 how can i make a fragment layout to fill its parent's width and height? Dec 14 21:41:48 Melatonina bug is on android studio, not ndk. on manual install works Dec 14 21:42:49 don't you think that if I knew anything about your problem, I would have help you already? Dec 14 21:43:14 please stop addressing messages about this subject to me Dec 14 21:44:38 JuliusN: Set match_parent on both the revelant attributes. Just like any other widget. Dec 14 21:45:30 i have Dec 14 21:45:58 there seems to bee some padding still Dec 14 21:46:37 Melatonina ok :D Dec 14 21:46:40 oh i figured it out Dec 14 21:46:55 the default activity margins in dimens.xml Dec 14 21:49:33 hello there guys i have a classifieds android app and i am new on android and getting this errors java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(int)' on a null object reference at ... Dec 14 21:52:50 so this is the whole error https://dpaste.de/cNtG Dec 14 21:55:12 http://stackoverflow.com/questions/41152884/why-i-cant-install-ndk-cmake-lldb-with-android-studio Dec 14 22:17:25 wow, the VS Code team only has 10 people on it Dec 14 22:37:41 xan_IT: have you filed a bug yet? Dec 14 22:37:57 Things don't get fixed if you don't file bugs Dec 14 22:38:32 danalbert i don't understand if is my wrong conf or a bug Dec 14 22:39:21 I'm fairly certain it's a bug Dec 14 22:39:56 Even if there's something wrong with your config, it sounds like a Studio update might have caused the problem (if I'm understanding your story, anyway), and if studio broke it then it's a studio bug anyway Dec 14 22:41:40 hmmm... anyone know if MIPS is still a platform that may crop up or is it completely deprecated now? Dec 14 22:42:13 :') Dec 14 22:42:32 there was like less than 10 devices in total under MIPS? Dec 14 22:43:25 respective rom probably stuck on 2.3 at best Dec 14 22:43:33 Mhm. Still get some funny customer questions about that. Dec 14 22:55:35 i would suspect configuration over bug but the misconfiguration could be because of a bug :) Dec 14 22:55:57 Mavrik, a large number of wireless routers are MIPS :P Dec 14 23:12:48 any ideas why my app is crashing when i call googleApiClient.connect();? it doesn't output any errors. just crashes soon after the connect() is called Dec 14 23:14:19 abax: No idea, but I found a lot of questions on SO with the exact same description. Did you google it? Dec 14 23:16:02 TacticalJoke: yeah i did. i just looked the first question at SO and all the answers had zero upvotes. but yeah, there seems to be more questions than that. i guess i'll go through them Dec 14 23:16:23 The second one appears promising. Dec 14 23:16:48 the one about opengl? Dec 14 23:17:46 I mean this one: http://stackoverflow.com/questions/30743082/app-crashing-when-mgoogleapiclient-connect-is-called Dec 14 23:18:47 TacticalJoke: ok, i found one that said that the app might crash if opengl and GoogleApiClient are being initialized at the same time. but yeah, i'll look into that one that you pasted first Dec 14 23:31:44 oh man, twitter bounced from tech meeting because they would make trump a special emojo for him Dec 14 23:31:56 feel like we have a 5 year old here Dec 14 23:32:22 i could swear last week there was news that the Twitter CEO refused the invitation. But I can’t seem to find it Dec 14 23:32:55 just 3 hrs ago http://www.politico.com/story/2016/12/donald-trump-twitter-emoji-crooked-hillary-232647 Dec 14 23:33:04 i don’t know how to tell Google to search for last week only Dec 14 23:33:22 so ... i guess its not possible to make your own emojis then. i never tried Dec 14 23:33:57 that’s the thing: For some reason i have this in my head, from last week. Hearing the news now, it seems like it’s being rewritten, to be that Trump didn’t invite, instead of the CEO deciding not to go Dec 14 23:34:33 but, like I said, I can’t find anything that would imply that Dec 14 23:35:07 s73v3r: Search tools > Any time > Past week. Dec 14 23:35:31 so either I just made it up, or *conspiracy music* The new narritave came out to drown out what actually happened and push an alternative reality! Dec 14 23:36:35 abax: Did that fix it? Dec 14 23:36:59 abax: https://xkcd.com/979/ Dec 14 23:37:03 s73v3r maybe on breitbart :P Dec 14 23:37:22 (Maybe not 100% the same.) Dec 14 23:37:44 i guess. nothing shows up when i use the custom date range either Dec 14 23:38:03 trump got teh googles to censor the news! Dec 14 23:38:50 the most serious form of corruption is not pay-to-play (rent seeking) but /rent creating/ ... you have to be in good graces with the ruler for economic prosperity. this twitter thing reeks of that Dec 14 23:39:14 i don’t know how plausible the emoji thing it Dec 14 23:39:15 isd Dec 14 23:39:42 still hoping for giant meteor 2016 TacticalJoke :D Dec 14 23:40:20 TacticalJoke: :D. yeah, that actually fixed it. thanks for your googling skills Dec 14 23:40:20 Yeah, same here. Although it can probably wait till after Christmas, since we're so close. Dec 14 23:40:39 abax: Maybe I'm psychic. I just had a "good feeling" about that second link. Dec 14 23:40:50 TacticalJoke: maybe, maybe Dec 14 23:43:53 TacticalJoke have you noticed reddit popping up modal windows now when you clik on a story ? Dec 14 23:44:18 man thats annoying Dec 14 23:44:39 oh no, you'll just have to stop using it ... Dec 14 23:44:45 g00s: I haven't seen that. Dec 14 23:46:05 g00s: Do you have an example link? Dec 14 23:46:18 TacticalJoke everything on /r/aww does this Dec 14 23:47:43 All I'm seeing is that the images are inline. For example on https://www.reddit.com/r/aww/comments/5ic5wk/lil_jon_snow/. Is that what you mean? Dec 14 23:49:29 TacticalJoke browser ? Dec 14 23:49:51 Chrome 54 on Windows 10. Dec 14 23:50:04 hm. yeah i see modal windows in Chrome, not FF Dec 14 23:52:41 g00s: What do the popups contain? The image itself? Dec 14 23:52:54 It's possible that it's some beta feature that only a small number of users are getting. Dec 14 23:52:55 TacticalJoke everything, image, story, comments Dec 15 00:26:43 TacticalJoke anything interesting in the kickstarter app ? Dec 15 00:26:49 hello there guys i have a classifieds android app and i am new on android and getting this errors: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTextColor(int)' on a null object reference at ... so this is the whole error https://dpaste.de/cNtG Dec 15 00:27:17 g00s: Ahh, didn't check it out yet. Too lazy. :) Dec 15 00:27:39 GladiaTeur: Your TextView reference has `null` rather than a TextView instance. Dec 15 00:29:19 TacticalJoke okey if you can take a look at the whole error and give me more information i'll appreciate it Dec 15 00:30:56 GladiaTeur: There's nothing else relevant to say. You're calling TextView.setTextColor on a null reference. Dec 15 00:31:18 You can reproduce this as follows: `TextView textView = null; textView.setTextColor(0);`. Dec 15 00:32:47 ok tnx Dec 15 00:43:01 hm, looking at the bottomNav in the support lib, i don't see any of the scrolling behavior for coordinatorLayout Dec 15 00:51:12 who can help me editing this https://dpaste.de/Kaos instead of using camera to add pictures use gallery to choose them Dec 15 00:52:26 This activity is for camera to capture pictures i want it to let the user choose pictures from the gallery instead Dec 15 00:53:31 http://codetheory.in/android-pick-select-image-from-gallery-with-intents/ Dec 15 01:06:15 hey guys, seeking any wisdom on RecyclerView and RxStream backpressure Dec 15 01:08:53 what do you mean shipit Dec 15 01:09:36 shipit: if you have a question to ask, please just ask it Dec 15 01:10:00 @missingno a network endpoint is generating say 1000 items/second Dec 15 01:10:31 and I use retrofit into an adapter that's plugged into a RecyclerView Dec 15 01:10:40 at some point, I'll run out of memory Dec 15 01:10:44 > plugged into a recyclerview Dec 15 01:10:48 understatement of the day Dec 15 01:12:01 shipit: So you’re adding these things to your adapter. Why not throw out old items as you add these? Dec 15 01:12:32 I could do that. Or I could push them onto a ContentProvider and use CursorAdapter Dec 15 01:12:47 that also works Dec 15 01:12:50 that way I use the CursorWindow to get things done Dec 15 01:12:59 but then, there's a disk limit to that one too Dec 15 01:13:30 so w/ RxStreams, I can tell the endpoint to stop after I've reached a certain limit Dec 15 01:14:01 that's in theory, so I'm wondering is there's any wisdom that exists around this .... Dec 15 01:14:33 CursorAdapter buys me some time by moving the goal post a bit further, the point I'm trying to make here Dec 15 01:14:33 have you had a look at rxjava's backpressure docs? Dec 15 01:14:43 @bankai_ yes, I'm reading them now Dec 15 01:14:55 you don't need to '@', this isn't twitter... Dec 15 01:15:11 haha ok :) Dec 15 01:15:26 I think I picked up the habit w/ Slack Dec 15 01:20:46 the only other technique I think of is to implement "reactive pull" of a bounded buffer and drain my adapter's backing store Dec 15 01:21:17 that way I prevent having to manage a cache Dec 15 01:46:54 has anyone ever implemented google play games services login? i can't figure out how to do the sign in. i'm calling BaseGameUtils.resolveConnectionFailure() in my onConnectionFailed() when i'm calling connect() for the first time when it's not obviously yet logged in and i guess it's supposed to log in when i call the resolveConnectionFailure(). but it's not doing anything Dec 15 01:50:12 abax: I had good experience with Firebase auth, I'd use that if games services isn't absolutely necessary Dec 15 01:51:15 shipit: i guess that could be a possibility too. i would just like to save the progress in the game for a user Dec 15 01:52:26 abax: go with Firebase. Implement anonymous auth and stick user data in realtime db Dec 15 01:52:46 easier flow to implement if planning on iOS client as well Dec 15 01:54:31 maybe yeah. the thing i like about google play games services though, is that it saves the data to the user's own google drive space. so not to the developer's database Dec 15 01:55:18 fair enough Dec 15 01:55:34 btw, are you using a game engine? Dec 15 01:55:53 shipit: no. just c++ and opengl Dec 15 01:56:19 awesome Dec 15 01:56:45 I published one, cocos2d-x, also a thin layer over opengl/c++ Dec 15 01:56:55 oh cool Dec 15 01:57:30 got to iOS faster than android, 'cause gradle build and openssl heartbleed fix Dec 15 01:59:25 yeah. i'm trying to release the android version first and then the iOS Dec 15 01:59:58 i like the iOS developer tools much more than android. the compiling is like 10x faster etc. Dec 15 02:00:17 totally Dec 15 02:00:27 lot of things on android just irritate me these days Dec 15 02:01:03 impossible to develop without support lib, appcompat and their deeply buried brittle code Dec 15 02:01:47 yep... Dec 15 02:01:49 shipit: can you tell which game it was that you were talking about? Dec 15 02:02:05 abax: I did a hidden object game Dec 15 02:02:13 it's on app store right now Dec 15 02:02:18 ie iOS Dec 15 02:02:27 trying to get a release APK for android Dec 15 02:02:34 would you like a link? Dec 15 02:02:42 ok Dec 15 02:02:47 yeah why not Dec 15 02:03:47 here you go (iOS): https://itunes.apple.com/us/app/keepers-hd/id1071583894?mt=8 Dec 15 02:04:08 I working on dual currency setup now Dec 15 02:06:13 ok nice Dec 15 02:11:32 shipit: why should I use an app to simulate me saving the world instead of actually doing it? Dec 15 02:11:53 practice? Dec 15 02:11:57 ;) Dec 15 02:12:47 the real thing is better Dec 15 02:12:55 I agree with yo Dec 15 02:16:20 Can you programatically upload a beta testers mailing list (CSV) Dec 15 02:16:30 Help. Ever since I upgraded Android Studio to latest version, but whenever I run anything now I get EGL emulation errors every time my app switches activity. "E/EGL_emulation: tid 2456: eglSurfaceAttrib(1146): error 0x3009 (EGL_BAD_MATCH)" is the error, followed by the warning "W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xab8ce1c0, error=EGL_BAD_MATCH". Googling gives a few results but none of the suggested Dec 15 02:16:30 solutions work at all :/ Dec 15 02:17:39 Ether_Man: have you tried 'File -> Invalidate Caches and Restart ...'? Dec 15 02:22:09 ron_frown any thoughts on the new android for things stuff Dec 15 02:22:22 I heard about thigns Dec 15 02:22:26 not android for things Dec 15 02:22:40 but if thats android running on headless devices for things Dec 15 02:22:45 my input would be Dec 15 02:22:48 well, you know, what was previously brillo Dec 15 02:23:04 I wouldnt use android in any sort of remotely critical embedded situation Dec 15 02:23:09 REMOTELY Dec 15 02:23:11 been there done that Dec 15 02:23:13 still seems to have the java stuff, including our fav : activities :) Dec 15 02:23:38 java really sucks, but its neither that nor the activities stuff that makes me say that Dec 15 02:23:47 linux is rock solid Dec 15 02:23:55 even the linux in android is rock solid Dec 15 02:24:26 but bionic and all the shit that it takes to get from linux to embedded os Dec 15 02:24:32 abax wow looks like you put a lot of effort into the game Dec 15 02:24:35 makes it fragile as hell imo Dec 15 02:24:41 hm Dec 15 02:25:09 I mean I think its clever how activities work Dec 15 02:25:15 ron_frown https://developer.android.com/things/sdk/drivers/index.html Dec 15 02:25:23 how else can you compose apps that have activities coming from all over the place Dec 15 02:25:32 its just that like everything java Dec 15 02:25:41 its way way way way more verbose than it should be Dec 15 02:25:56 i'm guessing the userspace drivers link against bionic Dec 15 02:25:58 and the databinding stuff (at least when they rolled it out) was kinda crap Dec 15 02:26:00 havent seen it yet Dec 15 02:26:08 well, shut up then and look :) Dec 15 02:26:17 I dont want to Dec 15 02:26:20 shipit, just did an extra time for safety, still same :/ Dec 15 02:26:21 lol Dec 15 02:26:23 g00s: shipit, not me Dec 15 02:26:30 I'm abandoning android for my embedded shit Dec 15 02:26:46 I'd rather EOL that hardware than maintain android any longer Dec 15 02:26:49 ron_frown: I would NEVER consider Android for embedded Dec 15 02:27:01 at the time I did Dec 15 02:27:14 nope nope nope Dec 15 02:27:15 there was that or a couple of commercial bsd's Dec 15 02:27:19 wasnt much Dec 15 02:27:26 google still hasnt fixed shit Dec 15 02:27:42 rPi or avr, keep it simple and strong Dec 15 02:27:45 I have a galaxy s7 edge... pretty modern phone considerably Dec 15 02:27:55 relatively Dec 15 02:28:07 not even a ball park estimate of when its gonna get any os upgrade Dec 15 02:28:12 isn't samsung about to brick it in the next update? or is that the Note? Dec 15 02:28:26 It's the note Dec 15 02:28:28 they should have made linux do package management like ubuntu or something (not that there arent loads of headaches there) Dec 15 02:28:42 like I have a laptop Dec 15 02:28:56 if hp doesnt make an update explicitly for me Dec 15 02:29:02 it doesnt really matter Dec 15 02:29:14 I can continue to update the os until the hardware struggles Dec 15 02:29:31 so, i was wondering if you looked into their userland device drivers, thats all Dec 15 02:29:46 my hardware had 3 revisions of diff dimm modules and processors Dec 15 02:29:50 and it was a nightmare managing all that Dec 15 02:30:05 yeah i don't know how you make a bsp Dec 15 02:30:33 kicking out roms was pain in the ass Dec 15 02:30:42 debugging anything os side was a TOTAL pain in the ass Dec 15 02:30:55 I dont know how they keep engineers working on stuff like systemui Dec 15 02:31:18 hate Android - my phone just became unresponsive - top of line Xperia/marshmallow Dec 15 02:31:20 I think the dev tools themselves have gotten better since I started fucking with them Dec 15 02:31:27 its just garbage dude Dec 15 02:31:36 honestly they do impressive stuff with what they have Dec 15 02:31:54 but they should have just forgone java for anything Dec 15 02:31:56 just made it c++ Dec 15 02:32:03 and maybe you could write apps in java or something Dec 15 02:32:11 thats android for you Dec 15 02:32:18 ooooh I got an important call coming in Dec 15 02:32:18 I've been w/ Android since very beginning -- hating it most this year Dec 15 02:32:23 and my hate grows Dec 15 02:32:29 my phone wont actually let me swipe to answer Dec 15 02:32:33 I got an important SMS and phone locked up Dec 15 02:32:35 because of random lag Dec 15 02:32:47 or I upgraded os and now I gotta wait 30 minutes while it upgrades every one of my apps Dec 15 02:32:51 yup! you're speaking the truth ron_frown Dec 15 02:33:06 honestly Dec 15 02:33:19 samsung is making a big move on their tizen stuff Dec 15 02:33:38 top 100 apps make 10k, and thats done every month for year Dec 15 02:33:49 not to mention they just added .net core as a first class citizen Dec 15 02:33:52 for dev langs Dec 15 02:33:57 the problem is that snapchat, FB won't write to Tizen Dec 15 02:34:08 well tizen runs android apps =) Dec 15 02:34:19 I mean it doesnt get the official play store Dec 15 02:34:23 * shipit is schooled Dec 15 02:34:32 tizen isnt pretty Dec 15 02:34:35 at least what I've seen Dec 15 02:34:46 just seems more common sense tho Dec 15 02:34:52 yea, I mean, how would it run apps compiled against support-lib or google maps ... Dec 15 02:35:06 Igoogle maps is nice Dec 15 02:35:12 but by no means the only player in the game Dec 15 02:35:25 clearly, we need a better OS, lang, env for mobile vs iOS Dec 15 02:35:27 osm is nice Dec 15 02:35:55 they just need to treat lib hibris as the interface the hardware mfgs use to port Dec 15 02:36:01 and let them have their overlays et Dec 15 02:36:15 i think we're approaching post-mobile time; everybody just hanging in there until ar/vr are the new UI Dec 15 02:36:22 meh Dec 15 02:36:27 like google glass? Dec 15 02:36:31 yeah Dec 15 02:36:32 and wear devices? Dec 15 02:36:39 hm, not wear Dec 15 02:36:47 peoplea rent gonna buy shit just because people make it Dec 15 02:36:48 g00s: I wrote some VR code this year (cardboard), messed w/ Vive etc Dec 15 02:37:06 I built quite a bit of augmented reality stuff and for a market where it actually makes sense Dec 15 02:37:06 we're way far off w/ VR/AR as a modality Dec 15 02:37:12 but reality is Dec 15 02:37:23 google glass made you look like a total douchelord Dec 15 02:37:27 and MagicLeap just disclosed their tech doesn't work Dec 15 02:37:31 just walking around Dec 15 02:37:33 ron_frown: totally Dec 15 02:37:38 in addition to trying to use it Dec 15 02:37:51 my ar stuff with glass required the device to be heavily hacked Dec 15 02:37:59 and would literally burn the side of your face Dec 15 02:38:10 fundamentally not enough FLOPs and battery power to get that going ... Dec 15 02:38:17 but then I guess omap 4460 hardware was meh in the first place Dec 15 02:38:45 I have an nVidia tk1 sitting on my desk but needs fans, lots of fans Dec 15 02:38:46 android has some neat stuff Dec 15 02:38:58 the transcription stuff is all nice Dec 15 02:39:05 transcription? Dec 15 02:39:06 but all the move to play service Dec 15 02:39:28 tts stuff Dec 15 02:39:32 it was great Dec 15 02:39:38 then it required play services Dec 15 02:39:44 which I didnt feel like trying to get certified with Dec 15 02:39:59 lets bandaid the os with some weird hosted service stuff Dec 15 02:40:05 that requires live connection to their severs Dec 15 02:40:11 and break already shipped apps Dec 15 02:40:11 my customers are no go on that one Dec 15 02:40:21 so anyway Dec 15 02:40:29 thats my take on things Dec 15 02:40:29 the day play services update, eg maybe like today, my phone battery goes to shit Dec 15 02:40:36 everyone wants to be involved in IOT Dec 15 02:40:45 though theres no REAL definition what IOT is Dec 15 02:40:56 there's no real use case for IOT either Dec 15 02:41:06 you should be the only one involved in IOT, ron_frown. You are the man Dec 15 02:41:16 I am currently Dec 15 02:41:18 there's an assumption that software over internet will make the "Thing" smart Dec 15 02:41:20 not with android =) Dec 15 02:41:31 although like my coworker says Dec 15 02:41:39 iot and big data is like teenage sex Dec 15 02:41:47 everyone talks about it, everyone says they are doing it Dec 15 02:41:51 nobody is doing it =) Dec 15 02:42:06 teenage do sex Dec 15 02:42:10 my neighbor is doing it :D Dec 15 02:42:12 teenagers Dec 15 02:42:33 what is a must have IoT app/solution? Dec 15 02:42:34 thats my coworkers quotes not mine Dec 15 02:42:39 big data, that is. but in nyc you have a lot of financial companies Dec 15 02:42:40 like, we can't live without it? Dec 15 02:42:44 shipit I work in industrial manugacturing Dec 15 02:42:53 iot for us is mainly sensor shit Dec 15 02:42:54 just because you and your coworker were looser and didn't do it, it doesn't mean other people don't Dec 15 02:43:28 lol what Dec 15 02:43:34 ron_frown: how is IoT making a difference over existing/previous solutions? Dec 15 02:43:50 g00s: for a moment I thought you were spying your teenager neighbor doing sex Dec 15 02:43:52 well we had to use rs485 and real old archaic standards etc Dec 15 02:43:55 ron_frown: I'm guessing a sensor fabric over wifi? Dec 15 02:44:04 rs485! Dec 15 02:44:06 dude Dec 15 02:44:10 ehh wifi and industrial manufacturing dont work that great together Dec 15 02:44:24 yup, can't imagine -- interference etc Dec 15 02:44:26 too much interference Dec 15 02:44:28 yeah Dec 15 02:44:29 you should see some shit I had to pull in ti drivers for their wifi/bt devices Dec 15 02:44:33 it was shady as shit Dec 15 02:44:35 the CANbus is already done -- why not use that? Dec 15 02:44:38 an apt dropped an oday on my toaster and burnt my toast :( Dec 15 02:44:54 shipit old industrial machines dont all support it Dec 15 02:45:09 ah yes Dec 15 02:45:15 legacy migration ... Dec 15 02:45:16 anyway, having generic devices we can drop on equipemnt and support somethign simple like rest apis Dec 15 02:45:18 mcuh better Dec 15 02:45:30 other people think iot is ittt whatever Dec 15 02:45:56 if temp from this temp sensor is this and some service says val 1 =1 then post to twitter Dec 15 02:45:57 I used to work w/ optical telecom gear, RS485, TL1, you name it -- we had to proxy everything over into a MIB/CMIP EMS/NMS Dec 15 02:46:31 cool shipit Dec 15 02:46:53 I've been involved in desinging more shit than I probably should have been able to Dec 15 02:47:05 ron_frown: are you saying the REST interfaces plug into an orchestration layer/point? Dec 15 02:47:37 "heres my engineering changes to our board, you should drop 2.2mil on testing and manufacturing of 100 devices" Dec 15 02:47:43 ceo: "ok" Dec 15 02:47:48 dang Dec 15 02:48:01 made the company millions so Dec 15 02:48:04 its all good Dec 15 02:48:04 hi guys, i made a simple registration and login following a tutorial, and works, but dont say anything about how check if user is already registered, or if have some error. someone know some tutorial about registrarion? the one that i followed use volley Dec 15 02:48:12 ron_frown: that's very cool Dec 15 02:48:14 did andorid ever make databinding better? Dec 15 02:48:59 ron_frown: gson/retrofit did make life simpler ... Dec 15 02:49:08 ? Dec 15 02:49:15 databinding ... Dec 15 02:49:30 gson seems unrelated Dec 15 02:49:55 i don't think databinding has changed since you looked last ron_frown Dec 15 02:49:56 I meant building ui and wiring it to data Dec 15 02:50:23 ron_frown: ah yes, sorry, I misunderstood. You're right with the terminology in Android context. Dec 15 02:51:27 I worked a short consulting project w/ a home automation, IoT co., using custom Android ROM this year. Dec 15 02:51:30 did anyone ever build a decent datagrid? Dec 15 02:51:39 I saw soemone released one years after mine Dec 15 02:52:01 and I was liek "thank god, I'm gonna swap mine out for this one..." Dec 15 02:52:05 and sadly mine was better =( Dec 15 02:52:55 ok, guys you are all super pro developers, I got it. Could you pretend to be a little dumber and inexperienced? I'm getting depressed Dec 15 02:53:19 if it makes you feel any better I'm borderline retarded with android now Dec 15 02:53:37 its like when kids get raped as a child, and their mind just blots it out Dec 15 02:53:38 and I think Android made me retarded Dec 15 02:53:45 shipit lol me too Dec 15 02:54:07 i think i developed mental health problems after starting android Dec 15 02:54:31 hehe Dec 15 02:54:40 depression, anxiety, etc Dec 15 02:54:41 I need therapy Dec 15 02:54:42 :D Dec 15 02:54:50 we need #android-therapy Dec 15 02:54:51 I just lost IQ points Dec 15 02:55:03 staring at AS errors Dec 15 02:55:07 i felt like i spend years futzing with stupid apis Dec 15 02:55:09 and logcat Dec 15 02:55:09 at least you guys are probably better off without me in here bitching regularly =) Dec 15 02:55:27 bring ron_frown back! Dec 15 02:55:30 oi Dec 15 02:55:34 hey ron_frown behave ! Dec 15 02:55:55 http://www.aol.com/article/news/2016/09/20/cursing-is-a-sign-of-high-intelligence-study-shows/21476095/ Dec 15 02:56:02 shhhh Dec 15 02:56:03 man, how can you write Android code and not be profane Dec 15 02:56:20 I mean, what are we even doing at that point Dec 15 02:56:30 I dont code android anymore Dec 15 02:56:35 I'm trying to phase our hardware out Dec 15 02:56:58 are you replacing the RS485? Dec 15 02:57:24 i'm looking through the android things driver examples, i don't get it - the code that is there, doesn't look like a device driver to me Dec 15 02:57:40 looks like androids stuff for input and sensors Dec 15 02:57:40 https://github.com/androidthings/drivers-samples/blob/master/ht16k33/src/main/java/com/example/androidthings/driversamples/BoardDefaults.java Dec 15 02:57:51 this doesn't look like anything related to a device driver Dec 15 02:57:52 with the reallly minimal time I spent looking at it Dec 15 02:57:54 not REAL drivers Dec 15 02:58:24 nope nope Dec 15 02:58:31 I want streaming api Dec 15 02:58:39 like, how would i go about writing an i2c driver etc Dec 15 02:59:43 thats done in kernel drivers to be compiled into kernel or kernel module **** ENDING LOGGING AT Thu Dec 15 03:00:00 2016