**** BEGIN LOGGING AT Tue Dec 13 03:00:01 2016 Dec 13 03:09:34 Hm, the latest version of the ADT on the website is from march 2015. Is that the right one to use? Dec 13 03:10:52 puff: you mean the one with the big sign at the top of the page saying "The Eclipse ADT plugin is no longer supported per our announcement. Android Studio is now the official IDE for Android" Dec 13 03:21:50 does releasing new versions lower you on play store (cuz no reviews/download for new version)? Dec 13 03:22:16 is there benefit to release phonegap and having updates vai the web server only, avoiding play store updates that way? Dec 13 03:53:25 Leeds: ah-hah... yeah, that one :-) Dec 13 03:55:35 mylord: no, the play store doesn't delete reviews/downloads for new releases - but it does mark reviews as being for an older release Dec 13 03:55:58 I did a little android development three years ago, nothing fancy, just a couple little learning projects. What else has changed since 2013? Is there a document somewhere that lists major changes? Dec 13 03:56:31 Hm, Android Studio is a GUI tool? No CLI sdk? Dec 13 03:56:32 er... quite a lot has changed since then :) Dec 13 03:56:47 nope, there's still a CLI sdk - but it's based on gradle, not ant Dec 13 03:56:49 Leeds: That's what I was afraid of... Dec 13 03:56:52 ah-hah. Dec 13 03:56:58 I guess I can live with that. Dec 13 03:58:44 Leeds: Is it feasible to develop android apps with intellij IDEA community edition? Dec 13 03:59:29 I think it probably is, but since AS is based on intellij, why would you? Dec 13 03:59:54 Ah, it is? Awesome! Dec 13 04:04:18 it is Dec 13 04:12:51 Is there anything like an O'Reilly nutshell book for Android? Dec 13 04:13:31 O'Reilly doesn't have a nutshell book for Android, but I mean a concise summary. Dec 13 04:14:16 there aren't that many great Android dev books, I think - partly because it's moved quickly enough that books get left behind... the busy coder's guide might be your best bet Dec 13 04:16:03 Thanks. Dec 13 04:24:42 Is there anything like this page, only for android developers? https://en.wikipedia.org/wiki/Android_version_history Dec 13 04:24:53 I guess I can/should just download the release notes for each version. Dec 13 04:27:17 https://developer.android.com/about/versions/jelly-bean.html and links to other versions on the left of the page Dec 13 04:37:49 Thans. Dec 13 04:37:51 Thanks. Dec 13 04:38:47 also, you probably know it's worth taking a look at the dashboard to work out which version(s) of Android you actually want to target Dec 13 04:39:20 don't put a bunch of work into supporting new features which are only on 0.4% of devices... Dec 13 04:51:38 Yeah. Dec 13 04:52:08 My current project is a custom app for a little startup, used to remote control some drones. So... easier for me. But still, a good thing to remember. Dec 13 04:54:45 anyone do facebook connect before? I added the FB login button but when I press it nothing happens after I give permissions. None of the callbacks fire Dec 13 04:56:32 I've only done it on the web, not in android. Dec 13 04:58:41 oh wait maybe I see why Dec 13 04:58:51 yeah the fb docs for setting up kind of skip around Dec 13 04:58:59 I think the information is there but not in the right order necessarily Dec 13 04:59:09 yep Dec 13 04:59:10 lol Dec 13 05:06:15 when I make a subclass of DialogPreference, what layout does it use by default? Dec 13 05:28:37 Man, the android site is annoying. Dec 13 05:28:54 This page: https://developer.android.com/about/versions/marshmallow/android-6.0.html Dec 13 05:29:11 ...says "To start building apps for Android 6.0, you must first get the Android SDK." Dec 13 05:29:17 And links to https://developer.android.com/studio/index.html Dec 13 05:30:10 Which is rather circumlocutory about where the heck the SDK actually is. Dec 13 05:31:06 Took me a couple times around to figure out that the SDK has been superseded by the "get just the command line tools" and then you have to use the sdkmanager tool in that download to actually download the rest of the sdk. Dec 13 07:21:39 morning all Dec 13 07:24:31 thepoosh: .o/ Dec 13 07:27:22 morning Dec 13 07:27:29 .o/ Dec 13 07:27:52 what's news? Dec 13 07:29:25 <_rm> i'm adding Buttons to a LinearLayout programmatically and trying to add some padding between the buttons, but setPadding only seems to affect the *contents* of the button, not the buttons themselves Dec 13 07:29:32 <_rm> am i doing it wrong Dec 13 07:30:29 1. why via code and not XML? Dec 13 07:30:45 2. if you wrap content that's how it would work Dec 13 07:31:24 <_rm> because the amount of buttons isn't necessarily known at compile time Dec 13 07:31:44 <_rm> anyway, is there a way to add padding the way i'd like to? Dec 13 07:32:22 * raoul11 thepooshes thepoosh Dec 13 07:35:11 hi hi Dec 13 07:35:18 what's new babygirl? Dec 13 07:35:29 _rm: sounds like you want to add margin to the buttons Dec 13 07:35:46 and margin is a property which you set using the parent view Dec 13 07:36:19 I think you can set it in the button's layoutparams Dec 13 07:36:30 overslept today thepoosh Dec 13 07:37:13 I noticed, tried to ping you when I got to work Dec 13 07:37:16 but no raoul11 Dec 13 07:37:39 watched gold rush till 1am last night Dec 13 07:37:52 forgot to set an alarm Dec 13 07:38:01 gold rush? Dec 13 07:38:29 yessir Dec 13 07:38:36 what is that? Dec 13 07:38:52 its about dreamers m8 Dec 13 07:38:59 gold miners in alaska Dec 13 07:39:19 ermagerd Dec 13 07:39:32 discovery show, whch is known to be the bestest channel in the world Dec 13 07:39:40 dont u ermagerd me ): Dec 13 07:41:02 <_rm> pduin: ah, thanks, that's it yeah Dec 13 07:41:08 <_rm> just not figuring out how to do it in code Dec 13 07:42:38 hello anyone did or can tell me how to use enum field with Simple XML by sourceforge ? Dec 13 07:45:33 <_rm> ah ok, i was just using the wrong type of LayoutParams Dec 13 07:45:39 <_rm> works now. thanks pduin Dec 13 07:46:07 yeah, those can be fiddly Dec 13 07:46:09 np Dec 13 07:47:18 <_rm> yeah i hadn't realized that you're supposed to use the parent view's type, which seems pretty obvious in retrospect Dec 13 07:51:13 You learn something new everyday. Especially when you have to do your layout in code Dec 13 08:02:02 hello! is it possible to disable a view in layout editor? what attribute does the same as setEnable(false)? Dec 13 08:11:27 disable its clickability? Dec 13 08:11:59 clickable/enabled Dec 13 08:13:47 hi Dec 13 08:14:21 i work in a university, and i need to provide android-studio for students. Problem is that i want to install sdk on a mountpoint which is mounted read only Dec 13 08:14:34 android sdk says that it should be installed on rw path Dec 13 08:14:58 it works, but when i want to start an emulator, i think that qemu cannot write on ramdisk.img Dec 13 08:15:06 i search a way to make it works Dec 13 08:15:42 first solution was to install android-sdk on user's home directory, but they have 2G quota, android-sdk+emulators ~= 10G Dec 13 08:16:11 so i dont know what to do Dec 13 08:16:41 another solution was aufs but it work only by adding files, aufs cannot edit existing files Dec 13 08:17:19 the last way i see, is to copy with the launching script, android-sdk dir on /tmp, and set it to android-studio Dec 13 08:17:38 when 10G * 30 students... Dec 13 08:17:43 not a good solution Dec 13 08:17:46 eoli3n: you'll have to either ask your IT department for a central shared location for AS Dec 13 08:17:55 or buy your own machine Dec 13 08:17:59 i am the IT department Dec 13 08:18:01 huhu Dec 13 08:18:15 so install in a public location the AS and buildtools Dec 13 08:18:31 and allow users to install their .gradle dependencies on their own space Dec 13 08:18:39 yep Dec 13 08:18:40 i did Dec 13 08:18:44 anyone know if you can write BBM apps on android? (ie secure bbm messaging, cannot see any api anywhere) Dec 13 08:18:47 raoul11: did you ever use Glide the image lib? Dec 13 08:18:50 but 2G quota on home directory is not enough Dec 13 08:19:04 negative Dec 13 08:19:05 for what? Dec 13 08:19:22 thepoosh: for one emulator + one wear emulator Dec 13 08:19:38 install all possible emulators on shared space Dec 13 08:19:46 it cant work Dec 13 08:19:47 it's a virtual machine anyway Dec 13 08:19:50 that's my problem Dec 13 08:20:05 yep but the virtual machine as a "ramdisk.img" which needs rw access Dec 13 08:20:19 s/as/has Dec 13 08:20:38 eoli3n: Hm, I wonder if there's a way to configure the ramdisk.img to use /tmp Dec 13 08:21:19 puff: i find how to edit this on a conf file, but i was searching for a better solution Dec 13 08:21:41 3 years ago, android-sdk wasnt asking for rw path Dec 13 08:21:43 eoli3n: What's wrong with editing it in a conf file? Dec 13 08:21:53 eoli3n: 3 years ago android-sdk was very, very different. Dec 13 08:22:20 eoli3n: 3 years ago I was doing a little android dev. Just came back to it a couple days ago and I'm finding a whole lot of changes. Dec 13 08:22:35 puff: nothing wrong, but the file is on home's directory Dec 13 08:22:46 eoli3n: I'm not following you. Dec 13 08:22:57 eoli3n: Can you try to rephrase your comment? Dec 13 08:23:00 puff are you magic? Dec 13 08:23:06 wyoung: No, I'm fractal. Dec 13 08:23:34 puff: i will retry this way Dec 13 08:23:44 and tell you what's wrong later ;) Dec 13 08:24:50 eoli3n: You might look for a mailing list or forum for the android dev team, or android studio dev team, and ask them... seems like they'd want to encourage students using it. Dec 13 08:25:18 nice idea, i posted something on stackexchange, but no answer Dec 13 08:28:34 puff: http://askubuntu.com/questions/831083/android-sdk-on-a-read-only-mounted-nfs-export Dec 13 08:28:35 eoli3n: https://developer.android.com/studio/run/emulator-commandline.html Dec 13 08:28:59 eoli3n: -ramdisk Dec 13 08:29:05 When running the emulator. Dec 13 08:29:17 puff: problem is that students use android-studio, so i need to edit the line IN android studio Dec 13 08:29:22 i will search for this way Dec 13 08:33:35 eoli3n: Maybe post the question here http://groups.google.com/group/android-developers Dec 13 08:33:44 thx Dec 13 08:43:00 Hm, I'm opening up this existing android app project and it failed to build with an error: > failed to find target with hash string 'android-23' in: /home/puff/Android/Sdk Dec 13 08:45:59 Hm, I guess I'd better make sure this app is actually using version 6 of android. Dec 13 08:48:22 Looks like it: compile 'com.android.support:support-v4:23.2.0' Dec 13 08:56:33 puff: try cmd + ; Dec 13 08:56:56 thepoosh: What's cmd? Dec 13 08:57:44 Ctrl Dec 13 08:57:53 thepoosh: I'm on linux, btw, PC keyboard, isn't that the windows key? Dec 13 08:59:12 puff: go to project settings Dec 13 08:59:13 dammit Dec 13 09:00:40 thepoosh: Yeah, ctrl+ and windowskey+ didn't work. File/Settings? Dec 13 09:04:26 File/Project Structure looks like it... hm, and it looks like theproject doesn't have either a Build Tools version or a Compile SDK version selected. Dec 13 09:05:55 Odd, the Build Tools Version dropdown only shows one entry, "25.0.2". Dec 13 09:07:14 And I don't see anywhere in SDK Manager to install build tools... Dec 13 09:10:19 Ah, this is about waht's in /home/puff/Android/Sdk, not about what's in the app project under Android Studio. Hm... Dec 13 09:11:33 http://stackoverflow.com/a/37709840/1813403 Dec 13 09:14:00 raoul11: clickability isn't equivalent to enable, as it does not gray out the view Dec 13 09:14:19 you can gray it out with alpha Dec 13 09:14:41 thats what i usually do Dec 13 09:14:47 grey? Dec 13 09:14:55 ma english stinks. Dec 13 09:16:40 Okay, so I used the CLI android tool to install the build package for 23.0.3. Android Studio still shows the error, maybe I need to restart Android Studio? Dec 13 09:17:18 Nope... ah, I see the problem. It wants 23.0.0 and that package was listed as "obsolete" so I installed 23.0.3. Dec 13 09:17:57 updated your gradle? Dec 13 09:18:32 Hm: com.intellij.openapi.externalSystem.model.LocationAwareExternalSystemException: Gradle DSL method not found: 'android()' Dec 13 09:18:53 Yeah, I did File/Project Structure and set both to 23.0.3. Now I have a new, exciting and different error! Dec 13 09:19:20 raoul11: well, when you disable (some) View's they is displayed differently. But if you just setClickable(), it will won't change how its displayed. Dec 13 09:19:28 s/is/are/ Dec 13 09:22:01 did you update the buildToolsVersion puff? Dec 13 09:22:12 zap: not sure i am following Dec 13 09:22:16 raoul11: Where, in File/Project Structure? Yes. Dec 13 09:22:30 Hm, I can just manually edit project/build.gradle and project/app/build.gradle, or is there a GUI dialog I should use? Dec 13 09:22:30 in your app build.gradle Dec 13 09:22:41 manually nd sync Dec 13 09:23:29 hm, okay, in project/build.gradle the buildToolsVersion was set to 23.0.3, I guess from when I changed it in File/Project Structure/System Settings. But the compileSdkVersion was set to 23. Dec 13 09:24:00 compiledSdkVersion should be 23 Dec 13 09:24:07 Oh? Dec 13 09:24:08 android {\n compileSdkVersion 23 \n buildToolsVersion '23.0.3' \n } Dec 13 09:24:23 Okay, then I guess I should leave it like that. Dec 13 09:25:04 Maybe the version of gradle is out of date? Dec 13 09:25:17 could be Dec 13 09:25:24 which version do you have? Dec 13 09:26:05 Whatever came with the android studio download. Dec 13 09:26:34 ~/.gradle/wrapper/dists/gradle-2.2-all Dec 13 09:26:59 Yeah, looks like 2.2. I'm assuming that ~/.gradle was created by the Android Studio install. Dec 13 09:27:21 The timestamps certainly match the Android Studio install. Dec 13 09:28:04 just to be sure, those compiledSdkVersion/buildToolsVersion are in your app's level build.gradle or your top root build.gradle? Dec 13 09:31:57 That was from the top root build.gradle, but the app/build.gradle has the same version numbers. The exception thrown matched the top root build.gradle, however (it said line 17 and that was the line number in the top root build.gradle). Dec 13 09:32:39 Man, I hate it that Android Studio installs stuff all over the place. Dec 13 09:32:43 try to comment out that entire android bit Dec 13 09:32:47 Okay. Dec 13 09:32:48 on the root level Dec 13 09:34:08 Okay, that worked, once again a different error: > failed to find Build Tools revision 23.0.0 Dec 13 09:34:32 did you comment out that entire android block on the root level? Dec 13 09:34:42 Yeah. Dec 13 09:35:00 does it tell you where's the error? Dec 13 09:35:06 This time the console output didn't include a stacktrace. Dec 13 09:35:31 What's your preferred pastebin? Dec 13 09:36:24 any of em Dec 13 09:36:32 https://gist.github.com/anonymous/997bfb5bb41853fa53c9a9504c7298e0 Dec 13 09:37:07 is it stated as 23.0.3 on your app's build.gradle? Dec 13 09:37:32 puff: http://stackoverflow.com/a/16620529/1056359 Dec 13 09:38:30 raoul11: No, it's just 23. Dec 13 09:39:02 buildToolsVersion "23.0.whateveryouinstalled" Dec 13 09:39:29 compileSdkVersion 23 Dec 13 09:40:37 Yeah. Here's the full error and the app/build.gradle: https://gist.github.com/anonymous/1dc5dd55536bad57322168b83aad7dfc Dec 13 09:41:15 Ah, wait, buildSdkVersion says 23. Dec 13 09:41:39 buildToolsVersion '23' Dec 13 09:41:44 line 52 Dec 13 09:41:53 Yeah. Dec 13 09:41:58 sup fellas Dec 13 09:42:09 Odaym: Hey. Dec 13 09:42:27 change that puff Dec 13 09:42:34 to whatever u got installed Dec 13 09:42:42 my Retrofit response breaks if the response from the API is different from what I fed the Retrofit call on declaration Dec 13 09:42:48 raoul11: Yeah, it works now. Now it's choking on a missing dependency library. Time for some dependency whack-a-mole. Dec 13 09:42:55 (: Dec 13 09:42:56 <3 retrofit Dec 13 09:43:01 raoul11: Thanks! Dec 13 09:43:16 I get an empty array for the value of "data" when the call returns no objects, but I get an object for the value of "data" when there *are* items Dec 13 09:43:16 np Dec 13 09:43:22 so I end up not going through the onSuccess at all Dec 13 09:43:36 aside from having the API changed to be the same in both cases, what can be done to fix this? Dec 13 09:48:45 I'll just setup the code for working with the returned arrays before the call, if the arrays are empty then they get loaded with nothing, if the response runs it repopulates the data Dec 13 09:48:48 meh Dec 13 09:49:00 Odaym: Fix the API, you lazy bastard Dec 13 09:49:27 I didnt write it :\ Dec 13 09:49:34 trying to get the guy to do it Dec 13 09:49:51 a coworker? Dec 13 09:50:07 a cow worker Dec 13 09:50:18 :) Dec 13 09:52:08 Odaym: what does your nick mean? Dec 13 09:52:22 my name is Oday Dec 13 09:52:26 family name starts with 'm' Dec 13 09:52:56 Can I ask you what Country are you from? Dec 13 09:53:06 you already did Dec 13 09:53:08 Lebanon Dec 13 09:53:19 a neighboor (: Dec 13 09:53:36 o/ Melatonina Dec 13 09:53:46 Sorry, I didn't remember I knew somebody from Lebanon. Dec 13 09:54:00 raoul11: hi \o :) Dec 13 09:54:06 no I mean you already asked me when you asked me Dec 13 09:54:11 ah ok :) Dec 13 09:54:19 thepoosh: classic cosby http://i.imgur.com/3HqmEnT.gif Dec 13 09:54:33 oh myyy Dec 13 09:54:49 classic schmosby Dec 13 09:54:56 classic cosby http://imgur.com/gallery/X0UQ2eW Dec 13 09:55:20 TacticalJoke: HAI Dec 13 09:56:07 Hai! Dec 13 09:56:32 2.3C release notes say "The Run button continues to use "cold swap" to build the app more quickly than a full APK reinstall". Does that mean the Run button is still using Instant Run? Dec 13 09:56:46 I was hoping they'd completely separated "run" and "instant run", but I'm not sure they have. Dec 13 09:56:51 dunno, I don;t touch canary Dec 13 09:57:15 need some new android hype Dec 13 09:57:19 when's the next con Dec 13 09:57:22 or event or something Dec 13 09:57:31 life's getting stale Dec 13 09:57:32 Ahh, okay. Just in case anyone's curious about what I'm referring to: https://sites.google.com/a/android.com/tools/recent/androidstudio23canary3isnowavailable Dec 13 10:04:38 https://blog.stylingandroid.com/android-studio-2-3-canary-3-warning/ Dec 13 10:05:36 To answer my own question: yes, the Run button is still tied to Instant Run. Cold swaps are just "restart process" Instant Run things. Dec 13 10:05:44 will that blog ever load? Dec 13 10:06:04 It loads here. Dec 13 10:07:13 Though the Space (or Shift+Space) scrolling is horrible on that page. Really slow response. Dec 13 10:08:24 still spinnin loading here Dec 13 10:08:32 guess it h8s ma vpn Dec 13 10:14:44 is it still possible to get the Android SDK standalone somehow? I can't find it anywhere Dec 13 10:21:29 seems it doesn't exist anymore. So I have to either reinstall Android Studio or find the standalone version pirated Dec 13 10:26:35 anyone got a retrofit 2 example of using http post to add a shopping item to a cart? Dec 13 10:29:33 what example do you mean? Dec 13 10:29:44 for the interface? Dec 13 10:30:35 i'm trying to position sibling LinearLayouts horizontally next to each other in a RelativeLayout, but they end up on top of each other instead: https://dpaste.de/zYuR Dec 13 10:30:58 droidace http://pastebin.com/6zUHEGJD Dec 13 10:31:17 is toRightOf supposed to work on sibling elements? Dec 13 10:31:36 thanks pila, i was wondering why use http POST in this case? why not use HTTP GET? Dec 13 10:32:26 because GET "gets" data ;) Dec 13 10:32:42 use PUT or POST for storing data Dec 13 10:32:54 https://stackoverflow.com/questions/2946325/why-should-i-post-data-rather-then-get Dec 13 10:33:12 okay I see. thanks for explaining and providing aresource Dec 13 10:35:15 Hi. I have a web app that uses Google's OpenID/OAuth to authenticate users. How do I make that work with an Android client? Dec 13 10:35:22 JuliusN: That is not a valid XML layout. Dec 13 10:36:10 @Tacti Dec 13 10:36:16 Actually, maybe it is (minus the prolog and `android:` thing). Maybe you're defining the widths and heights in the styles. Dec 13 10:36:35 TacticalJoke: i only included the RelativeLayout part Dec 13 10:37:15 JuliusN: Why not create a new, simple layout, one which does only what you need? It's easier to figure out what's going on then *or* get help. Dec 13 10:37:38 maybe Dec 13 10:38:09 i was wondering if i'm using toRightOf correclty Dec 13 10:41:04 ok i figured it out Dec 13 10:41:13 the first sibling has to have an align reference Dec 13 10:41:34 JuliusN: I think you. But again it's easy to test that: http://pastebin.com/vY3y9ipQ Dec 13 10:41:40 I only find stuff on how to access APIs from the client, but I need to do it on the server. Dec 13 10:41:44 you are* Dec 13 10:42:10 Just paste that into an existing or new layout. You'll see it works. Dec 13 10:42:50 oh cool, id's can have slashes Dec 13 10:43:10 that might come handy in customizing naming conventions Dec 13 10:43:52 What slashes can they have? I didn't think they could. Dec 13 10:44:14 Eduard_Munteanu: look at Auth0. It may help Dec 13 10:44:27 They compile down to regular Java identifiers. Dec 13 10:45:03 Hi, I'm developing a photo app, user can use android camera, I create 10-20 image capture and so I'm creating engine to upload to the server Dec 13 10:46:18 what can I use to upload file? Ok retrofit 2 but how can I create engine to upload multiple files? Dec 13 10:46:24 IntentService? Dec 13 11:05:57 devandroid @Multipart for upload Dec 13 11:06:06 with @POST Dec 13 11:06:20 Call upload(@Part MultipartBody.Part file); Dec 13 11:06:25 this is for single file Dec 13 11:21:35 hi. I try to connect to linux under android with complete linux installer. now I see, I lack a loopback ability. How do I fix this? Dec 13 11:42:41 Hello, Android dev Dec 13 11:43:19 someone experience with AndroidTV dev Dec 13 11:44:27 DimkaDimi: I'm not, but asking "Can someone here answer a question on X?" is a waste of your time. It's better to ask the question instead. Dec 13 11:44:44 ok Dec 13 11:45:48 I am trying to create an custom ROW Presenter. But I dont realy know how to impl focus, selection handling. It is realy confusing Dec 13 11:46:02 I guess I can't use the existing web auth backend because it stores credentials in the browser session. Dec 13 11:48:38 ListRowPresenter is handling selecting/focus items. But in case you dont want an List(GridView). It is realy hard to impl select/focus handling. Dec 13 11:52:58 <_0xbadc0de> okay I am really desperate. "failed to resolve com.google.maps.android:android-maps-utils:0.4" Dec 13 11:53:05 <_0xbadc0de> please help. Dec 13 11:53:21 <_0xbadc0de> I have tried nearly everything that is logically possible Dec 13 11:55:36 repo? buildscript { Dec 13 11:55:36 repositories { Dec 13 11:55:36 jcenter() Dec 13 11:55:36 }} Dec 13 11:55:45 _0xbadc0de: You tried installing Google Repository? Dec 13 11:57:38 map utils are not in SDK (Google Repository). Dec 13 11:58:53 Is there any easy way on how to Cache things in Android? Dec 13 11:59:00 <_0xbadc0de> yeah Dec 13 11:59:02 like automatic caching? Dec 13 11:59:09 DimkaDimi: Hmm, plenty of web pages state that you need to install Google Repository to use map-utils. Dec 13 11:59:12 currently i am just writing and reading everything on my own from the cache dir Dec 13 11:59:29 which is a hard cache in its purest form Dec 13 11:59:30 Though most are SO answers, so they could be wrong. Dec 13 11:59:41 <_0xbadc0de> http://pastebin.com/G8th3NGT Dec 13 12:00:21 Google Map are in Google Repository. But not Map Utils. Dec 13 12:00:48 <_0xbadc0de> I have map utils Dec 13 12:00:52 <_0xbadc0de> *google repo Dec 13 12:01:17 <_0xbadc0de> http://puu.sh/sNWAQ/c4c0a51e4c.png Dec 13 12:02:24 _0xbadc0de: Doesn't `repositories` have to be inside `buildscript`? I could be wrong, but I thought this was the case. Dec 13 12:04:19 <_0xbadc0de> isn't this the build script Dec 13 12:04:25 <_0xbadc0de> I am terribly sorry Dec 13 12:04:33 <_0xbadc0de> for noobnessness Dec 13 12:06:09 _0xbadc0de: Are you saying that fixed it? Dec 13 12:06:43 <_0xbadc0de> nope Dec 13 12:06:46 <_0xbadc0de> I am just saying Dec 13 12:07:05 <_0xbadc0de> didn't I put it at the right spot? Dec 13 12:07:35 I thought it had to be inside a `buildscript` closure. :S Dec 13 12:08:21 <_0xbadc0de> hmm Dec 13 13:03:51 when is it appropiate to extend ContextWrapper? Dec 13 13:04:14 I have some Objects which need to be called with context - every time Dec 13 13:04:33 just because they need to resolve string resources or paths Dec 13 13:20:43 so one of my customers asked if we could show an idCard and lock their phone, so security and officers cannot have access to the phone unlocked. just to see the id. can this be done ? Dec 13 13:21:53 I could think of a custom lock screen but can we send an invisible activity and then lock the phone programmability Dec 13 13:22:13 lock screen + wallpaper Dec 13 13:22:14 :) Dec 13 13:27:53 when is it appropiate to extend ContextWrapper? Dec 13 13:28:18 I have some static Objects which need the data dir Dec 13 14:11:47 Hey guys, I'm looking for someone who can help me with an issue concerning connecting to wifi in code Dec 13 14:14:50 is there any way to align the top and bottom of the Unit text field (yellow) with the picker that's in a RelativeLayout (red)? https://dl.dropboxusercontent.com/u/612731/alignment2.png Dec 13 14:15:37 the textfield needs to be outside of the RelativeLayout beacuse i need to have the red stuff centered horizontally Dec 13 14:16:11 align it with the relativelayout? Dec 13 14:16:30 it is aligned, but i need it to align with the picker Dec 13 14:17:23 oh so not the whole picker, just the currently selected item Dec 13 14:17:33 the whole picker yes Dec 13 14:17:41 it is Dec 13 14:17:56 but there is a textfield above the picker, meaning that the picker height isn't the same as its parent's height Dec 13 14:18:02 the wifi issue I'm having: I'm trying to connect to a network with no internet connection (an AP on an ESP8266), when I do it manually, my 4G/3G/whatever my mobile internet is disabled on it's own, but when I connect to the wifi in code, it doesn't Dec 13 14:18:39 is there a solution that doesn't require me to disable my mobile internet in code? Dec 13 14:23:35 what device do you have where wifi and cell run concurrent? Dec 13 14:23:57 Nexus 5X Dec 13 14:24:27 but the wifi doesn't have internet access, so it's connected to the wifi, but because there's no internet, it stays connected to my mobile internet Dec 13 14:24:35 which really is a pain :P Dec 13 14:25:33 ah, can't you fix that in settings of device? to not decide connection quality of wifi and redirect? did you look at source of aosp to see how it manages it? or SO? Dec 13 14:26:10 I'll check out the settings Dec 13 14:26:21 And I've never looked in aosp, now Dec 13 14:26:22 no* Dec 13 14:27:15 but when I manually connect, after a few moments, there's a dialog to connect anyway despite the internetless connection Dec 13 14:27:21 but I can't find that setting in code Dec 13 14:29:23 i'd say narrow your search query down, i've not had any experience with that scenario but i'm sure others have. I just know with a sprint device it had internet optimization enabled by default that made it if wifi had no internet it'd try other options Dec 13 14:30:11 but it'd disconnect internetless wifi for cell coverage, never stayed connected to both simultaneous Dec 13 14:30:36 yeah it's weird behaviour Dec 13 14:30:42 but I'll keep looking, thanks anyway Dec 13 14:30:48 yep Dec 13 14:31:17 oh I found a flag in the wificonfiguration of the network Dec 13 14:31:31 noInternetAccessExpected=true Dec 13 14:31:44 so yeah, this is annoying :P Dec 13 14:35:52 Hmm, I could just allow it and see if I can access the webserver on the AP despite being connected to the WIFI Dec 13 14:38:46 Is it possible to use geofences without having a location listener? Lets say Im just interested in the fences and not the location of the user at that time. Dec 13 14:39:39 it does, from what I saw in the sample. nvm Dec 13 15:11:17 Does the applicationId in my gradle file need to be the same as the package name of the project? I messed up with my Firebase configs and need to change the app id Dec 13 15:18:42 yes Dec 13 15:19:16 you dont need to manually change the package name on all your classes and activities Dec 13 15:30:29 Hey all Dec 13 15:32:40 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 13 15:34:15 ok good robink Dec 13 15:34:18 raoul11, * Dec 13 15:51:23 Anybody know what the release schedule is for Robolectric 3.2? Do they have an idea in mind for when they plan to release? Dec 13 15:52:06 It's needed for API level 24 (afaik) and a bug fix just went in recently that I'd really like to use, but I don't want to rely on the snapshot... Dec 13 15:54:38 I can't find it right now but I remember reading that java.util.regex.Pattern is safe to use by multiple parallell threads even when compiled, but that matcher will need to be constructed once per pattern per thread. But, I'm not certain if I remember it correctly, or if I even understood it correctly so wanted to confirm if this is correct? Dec 13 15:55:54 hello there, im having a layout-scrolling issue. Here is my xml: http://pastebin.com/rk18vx0G/?e=1 Dec 13 15:57:15 hello there, im having a layout-scrolling issue. Here is my xml: http://pastebin.com/rk18vx0G/?e=1 - basically the viewpager has a fragment which contains a recyclerview, my problem is when I scroll the page, the first recyclerview in the layout gets fixed at the top of the page and the scrolling stops, meaning it does not scroll the recyclerview inside the fragament Dec 13 16:03:56 Does anyone know what the purpose of liboemcrypto.so is? Dec 13 16:35:09 So, I'm just looking at diskspace on my laptop, and a lot of it's taken up by thte Android SDK files. Dec 13 16:35:24 I have most system images from API 14+ Dec 13 16:35:36 Do I really need every API level installed in the SDK manager/ Dec 13 16:36:05 Not really. Dec 13 16:36:13 Just the ones you intend to use directly. Dec 13 16:37:08 as in the build target in build.gradle? Dec 13 16:37:20 targetSdkVersion* Dec 13 16:38:12 oh, and I guess the API level of any AVD's I want Dec 13 16:40:16 anyone know how to convert an array of enum values to a String array without iteration? Dec 13 16:40:33 in java ofc Dec 13 17:06:05 hi, does it make sense to have 2 executable using hwcomposer? One is SurfaceFlinger, the other one would be a Qt exec running, say, in a chroot env, so that both target two different parts of two differents displays... Dec 13 17:06:28 not sure it this is the place to ask though Dec 13 17:06:35 *if Dec 13 17:07:52 the alternative would be to have the linux Qt exec use DRM instead of hwcomposer Dec 13 17:10:20 the thing is: I've never seen anyone doing such a thing. Usually people juste replace SurfaceFlinger with their own exec (say, weston, through libhybris) Dec 13 17:10:53 but I need two programs using hwcomposer, not one. Dec 13 17:41:55 why is it so difficult to have a recyclerview inside a scrollview scroll as if both are together? Dec 13 17:44:24 Afzal why would you do that O.o Dec 13 17:44:55 g00s because there's a screen which has some content before the recyclerview which is taking up a fair bit of the height Dec 13 17:44:59 use epoxy if you have some weird layout that has to scroll together Dec 13 17:45:39 is it possible to receive user input after onSaveInstanceState? Dec 13 17:45:59 I always assumed you wouldn't get input after onStop... Dec 13 17:46:07 g00s right now if using nestedScrollView with some other options and it sorta works Dec 13 17:46:14 I'll check out epoxy for next time! thanks!! Dec 13 17:46:41 i'm* Dec 13 17:46:52 > If called, this method will occur before onStop(). There are no guarantees about whether it will occur before or after onPause(). Dec 13 17:46:56 hmmmmmm Dec 13 17:48:34 Callbacks come in random order, more or less Dec 13 17:53:43 I imagine user input could certainly come after any of those, missingno Dec 13 17:54:24 Event callbacks (like button touch events) could be scheduled in the handler and could run after onPause() or onStop() even. I doubt Android filters them in any sane way Dec 13 17:54:43 ludocode that is correct Dec 13 17:54:59 Related, I discovered this awful bug yesterday when my app crashed: https://code.google.com/p/android/issues/detail?id=191546 Dec 13 17:55:09 so if you tap a button twice quickly that starts an activity, you can wind up with 2 activities on the stack Dec 13 17:55:17 Even LocalBroadcastManager isn't smart enough to unschedule callbacks for unregistered receivers. It's ridiculous Dec 13 17:55:40 So I wouldn't trust Android's lifecycle events whatsoever. Assume they are all nonsensical and will fire at random times, and protect yourself from them Dec 13 17:59:29 huh new ver of standalone sdk has different directory structure Dec 13 18:00:45 hey Afzal, where can we find your android chart libraries benchmark (if any)? Dec 13 18:01:22 i finally went with mpandroidchart after testing few lib myself, and avoid google chart (because i don't want to make web request) Dec 13 18:01:32 adq loooool, still nothing man. I.....haven't been great recently plus I found the MPAndroidChart 3 was the best of the free ones so I'm using that on the regular now Dec 13 18:01:56 Wrote a custom LineChartView to manage the data inside more simply Dec 13 18:01:58 yeah, it clearly has much more features, support and perf than most of the other (free) libs Dec 13 18:02:14 and scichart looks obviously the best, but price is prohibitive for a personal project Dec 13 18:02:19 Yuuuuup. I was able to actually do a "section selector" feature with it Dec 13 18:02:39 i've got few issues with candlestick drawing atm (on v 3.0.1) Dec 13 18:02:39 but alas, not with highlighting, just with the vertical lines Dec 13 18:02:42 -but Dec 13 18:03:12 what's the issue? (admittedly I've only dealt with line chart right now) Dec 13 18:03:15 but using float as x indices... is making me very worry Dec 13 18:03:24 ludocode i wouldn't use LBM anyhow, try greenrobot event bus instead Dec 13 18:03:28 how come they end up with this limitation i have no clue Dec 13 18:03:38 Yeah we're trying to get away from LBM Dec 13 18:04:09 Afzal, some candle are not displayed properly, also their size is not right even if i adjust barspace and depending on the zoom too i got drawing issues Dec 13 18:04:12 Yeah, so far it's been good. I wish there was a pair for each entry. So indices could still be ints but X value could be anything, including a string. Or maybe that already exists (?) Dec 13 18:04:28 Ah. interesting Dec 13 18:04:45 i haven't tried with earlier version, but i will if i cannot find a fix quickly Dec 13 18:04:59 I have an issue with rescaling the line chart manually. Have to pinch zoom to get the labels to re-measure Dec 13 18:05:07 the trouble with most of these java plotting libs is they produce waaay to much crap on the heap Dec 13 18:05:08 otherwise they're cut off Dec 13 18:05:26 g00s, well it's not trivial, especially with gigantic dataset Dec 13 18:05:40 yup Dec 13 18:05:52 these days benchmarking my RX 470 vs RX 480. Result: RX 480 is waaaaaaay too loud at 75% fan speed Dec 13 18:06:29 also Afzal, this trick: https://github.com/PhilJay/MPAndroidChart/issues/789#issuecomment-241507904 Dec 13 18:06:35 makes me worry a lot Dec 13 18:06:56 (already using it, to relax these big indexes i got due to date as long ) Dec 13 18:07:02 wow eh Dec 13 18:07:07 Does anyone here build server code and app client code? Do you guys usually clump your sources together in one repo or split them out? Dec 13 18:07:10 this is highly suspicious lol Dec 13 18:07:24 something is fishy there Dec 13 18:07:31 well, i can confirm this fix works Dec 13 18:07:45 grekkos fairly versed in server code (express js and laravel) Dec 13 18:07:49 but i don't get why mpandroidchart suffers so much from high indices Dec 13 18:08:54 Afzal: would you ever slap your two code bases together in a single repo or do you usually separate them out ? Dec 13 18:08:56 grekkos depends if you're working with a team or alone. If alone, just put them all in the same repo. Especially if the server is lightweight. If with a team, merge conflicts could be a mess so separate repos Dec 13 18:09:12 Afzal: yeah I feel the same way, but my team says it should go all in one Dec 13 18:09:26 Afzal: well with the exception that even on my own I keep them separate Dec 13 18:09:28 are they experienced with git? Dec 13 18:09:45 Afzal: supposedly. They've been using it for 3 years at least but I don't get the impression they really know how to use it effectively Dec 13 18:10:02 I'm not sure that conflicts are going to be more easily resolved by multiple repos Dec 13 18:10:05 Everyone gets their own branch with their name, then they work on a feature together with everyone working in the same branch Dec 13 18:10:07 honestly keep em separate. Also CI Dec 13 18:10:12 Ci would also be a mess Dec 13 18:10:16 yeah Dec 13 18:10:23 that's a good point too, we don't have CI yet Dec 13 18:10:33 idk I feel like the way they use git is very sloppy Dec 13 18:10:55 try separate repos this time, see if they're happier (?) Dec 13 18:11:09 I was concerned about the conflicts also especially since I'll be starting the project for iOS and storyboards conflict even when you're by yourself Dec 13 18:11:13 well Dec 13 18:11:17 I don't think they will let me try separate repos Dec 13 18:11:21 lol Dec 13 18:11:28 I mean Dec 13 18:11:41 I'm a senior/lead level dev Dec 13 18:11:46 but it's a small company Dec 13 18:12:00 you're lead level, you can't convince everyone to use separate repos? :p Dec 13 18:12:04 so I think they look at me like I'm a jr. level... I haven't been at this company for long Dec 13 18:12:07 why on earth wouldn’t they let you do separate repos Dec 13 18:12:08 oh Dec 13 18:12:16 yeah Dec 13 18:12:21 What's their reasoning? Dec 13 18:12:29 It'll be easier to keep the code up to date Dec 13 18:12:35 that makes no sense Dec 13 18:12:40 that's what I said~ Dec 13 18:12:42 it'll be the same ease Dec 13 18:12:47 only if you’re using a shared library between the two Dec 13 18:12:51 they said we won't have to worry about which commits from native map to which commits on the web Dec 13 18:12:57 in which case, that should probably be its own, third repo Dec 13 18:12:58 s73v3r: that's what I said~ Dec 13 18:13:10 which commits from native maps to which commits on the web? Dec 13 18:13:13 if you’re lead dev, then just put your foot down Dec 13 18:13:15 that's why we use versioning Dec 13 18:13:25 api v1. The app uses api v1 Dec 13 18:13:29 I will be using some of their code in a webview, so they want to keep it together because it's tightly coupled, but that webview code is going to be accessed remotely Dec 13 18:13:38 they also don't use versioning apparently Dec 13 18:13:42 there are no normal release cycles Dec 13 18:13:47 I think they release changes almost daily Dec 13 18:13:51 for web Dec 13 18:13:55 Euw Dec 13 18:13:57 which obviously won't work in a native app Dec 13 18:13:59 do you have any authority as lead dev? Dec 13 18:14:17 well I thought I did. I was coming on as the mobile expert Dec 13 18:14:24 I mean Dec 13 18:14:24 Sounds like it's time to start loosening bolts in the raised flooring. Dec 13 18:14:31 maybe I'll just make a new repo anyway and say tough luck Dec 13 18:14:46 if you want it you gotta get it from here Dec 13 18:14:48 if you don’t, then you should probably start brushing up your resume. If they’re not giving you authority, they’re just looking for someone to take the blame Dec 13 18:14:58 yeah Dec 13 18:15:08 I think I was deceived a little when I was hired Dec 13 18:15:23 I was under the impression I'd be the owner of all the mobile stuff, but then they give me no say in how it's done Dec 13 18:15:24 don't google / fb use single repos for everything? (except android) Dec 13 18:15:38 hmm not sure g00s Dec 13 18:15:44 fb uses hg Dec 13 18:15:49 maybe that's why they want to do it that way? Dec 13 18:16:30 These guys are from M$ and I don't think they want to believe that anything they do could be improved on Dec 13 18:16:40 Google and FB do have one giant repo for everything Dec 13 18:16:41 but I don't know well enough yet Dec 13 18:16:44 literally everything Dec 13 18:16:46 yeah Dec 13 18:16:48 maybe that's it Dec 13 18:16:51 it's a big company thing Dec 13 18:16:54 let's make one big repo Dec 13 18:17:04 i’ve never liked that way Dec 13 18:17:07 idk from my experience that gets messy Dec 13 18:17:10 https://www.quora.com/Why-does-Facebook-have-so-much-of-their-source-code-in-1-giant-git-repo-did-they-not-think-that-this-approach-wont-scale Dec 13 18:17:27 both Google and FB have had to do a ton of work on their source control to make checking out not take eons Dec 13 18:17:33 it might be easier with hg though, i haven't tried it Dec 13 18:18:03 FB has done a bunch of work to make it so. I believe they’ve released it Dec 13 18:18:19 google was also working on hg with fb for some reason Dec 13 18:18:25 ok Afzal, just FYI, tested with 3.0.0 instead and same issue, then removed the quick fix for huge x indices and instead used a simple fake incremented counter as x indices starting from 0 (i++ while building) and not more issue displaying candles!!! Dec 13 18:18:42 meaning, it's even worse than i thought, there is a side effect depending on the value of x... Dec 13 18:18:46 for some reason I thought the guy behind Hg worked at Google, even though they use Perforce Dec 13 18:18:47 hmm Dec 13 18:19:04 i think the guy behind hg left hg s73v3r :D Dec 13 18:19:05 I don't know their main reason seems to be that there's a dependency on the web code, but we don't actually ship any web code with the app Dec 13 18:19:14 probably Dec 13 18:19:21 Afzal, so what i plan to do is to use a hashmap or a simple primitive array holding real value based on the indices Dec 13 18:19:26 hmm Dec 13 18:19:29 so to me that's not a code dependency Dec 13 18:19:31 yeah that's a better idea Dec 13 18:19:36 which might be problematic when data are not contiguous and periodic (like a hole in time) Dec 13 18:19:51 and he does now work for Facebook Dec 13 18:19:56 because the distance between 2 x indices must be proportional to the distance between the two dates Dec 13 18:20:00 grekkos big companies make little git repos and use gerrit or something to manage the parent project Dec 13 18:20:03 like google Dec 13 18:20:07 or blackberry Dec 13 18:20:20 whoa api 25 sources Dec 13 18:20:24 (BB is big enough) Dec 13 18:20:25 yup, finally Dec 13 18:20:31 chrome does that, android does that Dec 13 18:20:39 already on canary 3, no (new) issue so far Dec 13 18:20:45 * missingno sets compileSdk to 25 Dec 13 18:22:28 been on compilesdk 25 since weeks, by the way buildtools is now 25.0.2 (was previously 25.0.1) Dec 13 18:23:13 Afzal: yeah what's gerrit? Actually part of this project I had to compile libwebrtc which required me pulling all of the chrome project and a few other things. I think they even download all of their own SDK: libraries, code, compilers. Everything they need to make the build exactly the same Dec 13 18:24:09 https://android-review.googlesource.com/#/q/status:open grekkos Dec 13 18:24:17 each "project" here is its own git repo Dec 13 18:24:45 and google uses this tool called "repo" (ambiguous name) to compile all of AOSP together into one img Dec 13 18:25:05 or used it last time I compiled AOSP 4 years ago Dec 13 18:25:12 5 years ago? Dec 13 18:26:08 anyway, still the same conclusion. Have different git repos Dec 13 18:26:27 i'm playing around with the new 'sdkmanager' tool, how am i supposed to know what system-images;a...google_apis;x86 is .. everything is elided Dec 13 18:26:35 elided? Dec 13 18:26:43 g00s: what is that? Dec 13 18:26:56 https://developer.android.com/studio/command-line/sdkmanager.html Dec 13 18:27:00 what is the path to sdkmanager Dec 13 18:27:01 g00s "show package details" checkbox bottom right Dec 13 18:27:12 oooooh Dec 13 18:27:15 noooooooope Dec 13 18:27:16 tools/bin eh Dec 13 18:27:18 Afzal yeah, all the packages are listed as blah blah ......... blah blah Dec 13 18:27:21 is it new? Dec 13 18:27:24 I finally got a reliable CI script Dec 13 18:27:25 yeah Dec 13 18:27:27 I am not usin this shit Dec 13 18:27:55 why is it not in this machine's tools/bin Dec 13 18:28:18 I guess the build tools are old or something Dec 13 18:28:30 so for example i see: Dec 13 18:28:32 extras;m2reposi...ut;1.0.0-alpha3 Dec 13 18:28:32 extras;m2reposi...ut;1.0.0-alpha4 Dec 13 18:28:34 extras;m2reposi...ut;1.0.0-alpha5 Dec 13 18:28:42 thats not very readable :D Dec 13 18:28:48 nah man Dec 13 18:30:22 "Tidbit Tuesday: What to do with your ridiculously long strings.xml " how is this getting upvoted in 2016 Dec 13 18:31:07 wait, what do you do? just put it in separate files and include that in the gradle file? Dec 13 18:31:45 oh don't even need to put it in the gradle file Dec 13 18:31:54 er...This could be a one-liner Dec 13 18:32:15 <_rm> hardcore strings in code, obviously ;) Dec 13 18:32:19 tfw when values/color.xml and values/colors.xml both work Dec 13 18:32:25 _rm only in layouts ;) Dec 13 18:32:48 or sure use it in java code too :p Dec 13 18:32:55 <_rm> yeah mix'n'match Dec 13 18:33:37 yeah exactly. Refactoring should be a fun exercise, not easy Dec 13 18:33:38 :D Dec 13 18:34:02 Bad Advice Tuesday :D Dec 13 18:34:17 <_rm> heh speaking of CI, i recently modified my CI script to download all of android studio and have it perform its inspections on the command line :) Dec 13 18:34:19 oh already bug https://code.google.com/p/android/issues/detail?id=229920 Dec 13 18:34:29 but this is one of those bugs, what were they thinking lol Dec 13 18:34:43 <_rm> that way you can get some nullability annotation warnings in ci Dec 13 18:34:43 like, is there even a correct way to read this at all Dec 13 18:35:05 _rm how long does it take to run? :p Dec 13 18:35:14 <_rm> Afzal: a long time :D Dec 13 18:35:17 haha Dec 13 18:35:30 I got mine working around ~7 min now, with cache. Dec 13 18:35:39 Circle CI takes 4 min to restore cache though, which is weird Dec 13 18:35:46 <_rm> ci/run_android_studio_inspections.sh: 08:38 Dec 13 18:35:54 Docker instead on Gitlab is much quicker Dec 13 18:36:05 <_rm> my whole ci process takes around 20-30 minutes now Dec 13 18:36:09 <_rm> per project Dec 13 18:36:16 <_rm> most projects have tests that run in the emulator Dec 13 18:36:30 <_rm> (this is in circle ci as well) Dec 13 18:37:05 <_rm> and that time is with cache Dec 13 18:38:20 _rm actually gitlab + docker does it in 6:25. Circle CI does it in 7:19 Dec 13 18:38:51 could be improved but truth be told, I don't use it for much :P Dec 13 18:39:05 lone android developer in the company Dec 13 18:41:11 well this sucks, the latest sdk manager won't display the 'extras' folder in the tree; its empty Dec 13 18:41:22 its like the treeview is corrupted Dec 13 18:41:54 so ... hoping to start working on ms stuff soon, lol ;) Dec 13 18:42:13 lol Dec 13 18:42:19 nuget Dec 13 18:42:38 also enforced K&R :/ Dec 13 18:42:51 I like Java variant so much better Dec 13 18:44:19 has anyone seen this before? http://imgur.com/a/nYdc6 Dec 13 18:44:33 notice extras at the bottom, its empty Dec 13 18:45:04 can't scroll down any further Dec 13 18:45:52 oh ha, if i collapse the other folders , extras items are shown. what a piece of crap Dec 13 18:46:02 its like the widget is buggered Dec 13 18:47:50 lol.. Dec 13 18:48:01 it's been like this since 2008 I think Dec 13 18:48:40 wonder if there is existing bug in tracker Dec 13 18:52:38 i think what is happening is the first folder is filling up with more and more things (build-tools) Dec 13 18:52:46 seems like there are a limited # of slots Dec 13 18:54:49 where/what can I read about the preintsalled /system/apps/* on android OS? Dec 13 18:59:46 TheLawyer, probably you want either #android-root or the xda forums, if you want to hack at the system stuff Dec 13 19:00:34 ^ Dec 13 19:01:26 thanks Dec 13 19:13:07 so is Android for Things using the regular java stack then ? Dec 13 19:13:18 seems like automatic fail for IoT Dec 13 19:14:14 i don’t think so Dec 13 19:14:24 people said the same thing about java on phones back when android started Dec 13 19:15:19 <_rm> well, we recently implemented a big, performance-critical part of our app in javascript instead of java :) Dec 13 19:15:27 <_rm> so make of that what you will Dec 13 19:17:41 looks like its java to me https://github.com/androidthings/weatherstation/blob/master/app/src/main/java/com/example/androidthings/weatherstation/WeatherStationActivity.java Dec 13 19:17:45 lol google Dec 13 19:18:01 <_rm> (j2v8 is really nice, btw) Dec 13 19:18:29 <_rm> the bits where you can share memory between the js context and java is *italian chef kissy fingers* Dec 13 19:22:42 import com.google.android.things.contrib.driver.bmx280.Bmx280SensorDriver; Dec 13 19:22:42 import com.google.android.things.contrib.driver.button.Button; Dec 13 19:22:45 W T F Dec 13 19:23:04 they brought all this stuff into userland with jni bindings? Dec 13 19:23:40 yeah I'm not winning this argument Dec 13 19:23:44 https://github.com/androidthings/sample-button Dec 13 19:23:48 weird Dec 13 19:24:02 support lib 25.1.0 is out Dec 13 19:26:48 hey guys, is there any downside to loading the properties file every time in this example: http://javaant.com/how-to-use-properties-file-in-android/#.WFBHShsrKUk - or does the framework cache it after the first load? thought it might make sense to store the properties after the initial load to avoid re-loading it every time Dec 13 19:27:47 Fragment.onDestroy() not called for fragment in backstack lol Dec 13 19:28:37 wonder if they will ever get those fragments working :) Dec 13 19:29:46 somewhat concerning to see all these bugs fixed in recyclerview Dec 13 19:29:53 good thing its not part of the platform Dec 13 19:31:04 remembered this board http://www.drdobbs.com/jvm/the-tini-internet-interface/184404277 Dec 13 19:32:37 bitkiller "Currently, I have a custom piece of hardware that uses a Motorola 68HC11 " Dec 13 19:32:43 the good ol 68hc11 ! Dec 13 19:34:13 i might still have one of those boards around here Dec 13 19:34:51 google repository revision 41 just landed too Dec 13 19:35:43 g00s, tini board? Dec 13 19:36:03 bitkiller no some 68hc11 sbc Dec 13 19:36:13 i think i have some old z80 stuff too Dec 13 19:36:21 those were the days :) Dec 13 19:36:43 great days indeed Dec 13 19:41:46 i really miss my "electronics days" Dec 13 19:43:34 bitkiller yeah, me too Dec 13 19:46:40 Hi guys, in RelativeLayout.onMeasure() I get measured with = -2147482968. Why so? In the layout I have layout_width="match_parent" Dec 13 19:46:59 I expected it'll return the real width Dec 13 19:47:13 *width Dec 13 19:50:18 <_rm> is that the MeasureSpec value or decoded Dec 13 19:51:48 its widthMeasureSpec Dec 13 19:52:00 the first agrument of onMeasure() Dec 13 19:52:08 <_rm> try MeasureSpec.getSize(widthMeasureSpec) Dec 13 19:52:28 <_rm> https://developer.android.com/reference/android/view/View.MeasureSpec.html Dec 13 20:05:38 "...Android Things does not require a display. On devices where a graphical display is not present, activities are still a primary component of your Android Things app... Dec 13 20:06:18 bitkiller a while back, it sounded like full android was getting rpi support. i wonder if that is still the case, or if this is it Dec 13 20:07:56 https://developer.android.com/things/sdk/drivers/index.html Dec 13 20:08:52 hrm Dec 13 20:12:05 bitkiller i would think the overhead of doing it this way is high Dec 13 20:15:16 oh god. you still have to do Activities and crap on an IoT device? And deal with their lolcycles? pass Dec 13 20:16:30 man this Go fucking work extension is really being a pain Dec 13 20:16:33 can't open reddit Dec 13 20:20:43 s73v3r bitkiller also, afaik no google products are actually built on this Dec 13 20:22:45 its like the kubernetes strategy "we don't actually use this, but you should so we can commoditize AWS" Dec 13 20:36:39 I think I figured out what I'm gonna do. I'll make my own repo for the app. Then I'll add a post commit hook to sync and commit to the other repo Dec 13 20:36:42 everybody wins Dec 13 20:36:53 no one has to know :) Dec 13 20:44:56 man having the sdk25 source is glorious Dec 13 20:57:05 hrm is /sys/fs/pstore/console_ramoops still what I should check for last_kmsg in 7.1.1? Dec 13 21:27:59 hi, how can i display YUV_420_888 to imaveview? Dec 13 21:32:56 by converting it to something imageview support, basically a bitmap (preferably ARGB_8888) or a drawable Dec 13 21:36:28 adq i think im not in best way. it's to hard :D Dec 13 21:36:47 adq i need to acquire image from camera, manipulate and show on screen Dec 13 21:37:28 adq i can show YUV_420_888 to "surface" ? Dec 13 21:39:43 no idea, sorry Dec 13 21:39:53 (i doubt that) Dec 13 21:40:22 doesn’t the camera api give you the image as a bitmap anyway? Dec 13 21:41:26 s73v3r seams not, is very strange Dec 13 21:42:16 really? Dec 13 21:42:28 and none of the camera guides show you how to display the image you just took with the camera? Dec 13 21:51:20 xan_IT: Camera.Parameters.setPreviewFormat(ImageFormat.RGB_565) Dec 13 21:51:45 xan_IT: http://stackoverflow.com/questions/11535705/how-to-convert-yuv-to-rgb-efficient Dec 13 21:52:37 xan_IT: http://stackoverflow.com/questions/9325861/converting-yuv-rgbimage-processing-yuv-during-onpreviewframe-in-android Dec 13 21:53:35 this is for camera v1 api. deprecated Dec 13 21:54:22 Melatonina there are much caos with code snippet about camera api (v1 and v2) Dec 13 21:55:19 i don’t think most devices have camera 2 api Dec 13 21:56:33 s73v3r for a new app you suggest to use v1? Dec 13 21:57:10 s73v3r all new device support v1 api? i think google will cut support like httpclient Dec 13 21:57:20 they haven't Dec 13 21:57:46 plus, all the old apps that use camera v1 still have to work on the new devices Dec 13 21:58:19 k Dec 13 21:58:23 right Dec 13 22:03:47 hey everyone Dec 13 22:03:55 hi Dec 13 22:04:03 use both Dec 13 22:04:13 anyone can help to solve this problem : qemu: could not load PC BIOS 'bios-256k.bin' Dec 13 22:04:13 Dec 13 22:04:18 fallback to v1 for old devices Dec 13 22:04:52 iresf: I can't solve that problem Dec 13 22:06:00 why writing just one app when you can write two which do the same thing? Dec 13 22:13:55 pfn Melatonina actually i just need to create a demo Dec 13 22:14:16 another question, there is somthing like camera API in NDK? Dec 13 22:16:25 guys i will make my first android app but want to easy port to iOS, exist some framework to help me to develop my apps? recommend me to use some framework like react native? or use just java? Dec 13 22:20:45 xan_IT: https://developer.android.com/ndk/reference/group___camera.html Dec 13 22:24:22 danalbert thz Dec 13 22:24:58 SamSagaZ: your best option is to make both of them in their native toolsets. that will give your users the best experience on both Dec 13 22:25:51 i see, so will make first the Android One, think that the best option is to use Android Studio, right? Dec 13 22:26:00 yes Dec 13 22:26:47 Ok, some tutorial for beginners to recommend? Im wathing some from youtube... Dec 13 22:27:00 developer.android.com has some good stuff Dec 13 22:27:03 from ProgrammingKnowledge channel Dec 13 22:27:09 ok. Dec 13 22:30:08 https://developer.android.com/ndk/guides/index.html here say to download NDK as component of android studio, but there isn't Dec 13 22:43:24 Did that webp plugin for AS ever get integrated? Not seeing any options for it. Making sure I didn't just dream that up... Dec 13 22:49:56 xan_IT: there isn't an NDK studio component? Dec 13 22:50:05 no :( Dec 13 22:50:09 Are you on an incredibly old version of studio? Dec 13 22:50:16 2.2.3 :D Dec 13 22:50:28 You're looking at the studio sdk manager, right? Not the standalone one? Dec 13 22:51:38 each Dec 13 22:52:52 in SDK tools tab i have only 3 SDK, documentation, billing library and support repository Dec 13 22:55:00 xan_IT: I see it way down at the bottom of "SDK Tools" Dec 13 22:56:25 On the beta channel, apparently Dec 13 22:57:03 xan_IT: if you still don't see it though, file a bug Dec 13 22:57:51 danalbert ??? studio 2.2.3 stable is not enough'? Dec 13 23:01:11 danalbert is possible that cmake replace ndk ? Dec 13 23:02:24 no Dec 13 23:02:29 cmake is a build system. Dec 13 23:02:35 the NDK is a dev-kit Dec 13 23:04:19 s73v3r where is nkd ? :) Dec 13 23:04:23 ndk Dec 13 23:04:31 look for it on d.android.com Dec 13 23:05:07 xan_IT go yo AS plugins, make sure you don't have stuff deselected Dec 13 23:05:34 like 'android ndk support' :D Dec 13 23:08:01 hey guys, is there a way to make sure that a file is saved before the app closes? Dec 13 23:08:08 the file being a serialized object Dec 13 23:08:53 or do I have to save the object every time I change something? Dec 13 23:09:05 g00s tomorrow i will download ndk manually Dec 13 23:10:46 omarramo: that would be the safe way Dec 13 23:11:19 you can listen for onPause and onStop and onDestroy Dec 13 23:11:37 but i believe the last two are not guaranteed to be called Dec 13 23:12:40 okay then I'll do that Dec 13 23:12:52 I think the performance cost wont be too high or at least I hope so Dec 13 23:13:31 not unless you’re writing the file every half second, and it’s a huge file Dec 13 23:14:08 okay :) thanks for the advice Dec 13 23:17:19 omarramo support lib has a journal file utility Dec 13 23:17:49 oh sorry, misunderstood Dec 13 23:18:05 omarramo well you can do what google does for preferences, block onStop until its finished writing :D Dec 13 23:18:45 g00s: but will that guarantee that the file gets saved? Dec 13 23:18:47 i think that one line of code pretty much sums up how i feel about the platform Dec 13 23:18:54 g00s: actually I can just blame the user Dec 13 23:19:03 lol you can do that too Dec 13 23:19:04 journalling will ensure that the file does not get half-written Dec 13 23:22:37 now that i think of it ... Dec 13 23:22:57 with that HTC feature that kills your app process when going to home Dec 13 23:23:13 blocking to write in onstop may be the only reliable way to save needed state Dec 13 23:23:32 service won't even get you out of this one Dec 13 23:24:38 With multithreaded Sqlite does a RWLock even have a practical use? i.e. can you read multiple times in a thread-safe manner, but can only write on a single thread? Dec 13 23:27:36 explodes rwlock ? Dec 13 23:28:48 ReadWriteLock Dec 13 23:30:12 Having an activity and a widget needing a service. which one of those should start it? Dec 13 23:30:42 explodes most of the android sqlite things are thread safe, except cursor etc Dec 13 23:31:10 with proper transactions and understanding WAL or no WAL you should not need any external locking strategy Dec 13 23:31:17 Right, that's my fear, you have to lock while using a cursor :// Dec 13 23:31:35 I am getting a (rare) database locked exception Dec 13 23:36:11 Ohhh Write-Ahead Logging - sweet! Dec 13 23:41:52 I have a public static function in a class which is called in a constructor in an unrelated class. Now the ide complains: "Access can be package local" Dec 13 23:41:55 what does that even mean? Dec 13 23:46:42 it’s saying that you can make it not public. You don’t have to, it’s just telling you that you can Dec 13 23:47:00 in general, you should favor the most restrictive access modifier you can get away with Dec 13 23:47:39 because it’s not detecting you accessing that function outside of that package, it’s telling you that it doesn’t need to be public Dec 14 00:10:43 i'm trying to implement saving a game to the google cloud: https://developers.google.com/games/services/android/savedgames#writing_saved_games it says there that "To store content to a saved game, your game must obtain a reference to a Snapshot object..." i don't understand how i get a hold of a Snapshot object. it's an abstract class so i can't just make one with "new". do i have to make my own class that inherits it or what? Dec 14 00:10:58 yes Dec 14 00:11:56 ok... Dec 14 00:15:23 i wonder why i have to write my own class that inherits it. because there's no useful data in it. the payload is in snapshot.getSnapshotContents().writeBytes(payload); and the metadata is in a SnapshotMetadataChange object which isn't part of Snapshot Dec 14 00:15:52 so you can customize those things to suit your data Dec 14 00:17:34 ok i guess that makes sense Dec 14 00:18:25 seems a bit useless but oh well, good to know Dec 14 00:18:44 otherwise you’d have to have your data conform to whatever they chose Dec 14 00:19:09 it makes much more sense for them to just define an interface that you can use to provide a bunch of bytes that they store Dec 14 00:20:05 could be Dec 14 00:29:55 s73v3r: actually, i don't think i need to inherit a class from Snapshot after all. seems like i can do: Games.Snapshots.open(client, "name", true").await().getSnapshot(). (in a real version there would be more error checking in the middle) Dec 14 00:43:22 can I turn off mock locations with adb? Dec 14 01:01:12 I know the rules say you can't ask for someone to add you on Skype, but I'm really stuck and I'm sure it's a simple fix. Can anyone please add me on Skype Dec 14 01:07:56 Anyone? Dec 14 01:32:19 tassilo_tazz: just ask for pm on here Dec 14 01:32:23 or ask on SO Dec 14 01:32:36 May i pm yu? Dec 14 01:32:41 you* Dec 14 01:32:48 hahaha Dec 14 01:32:52 no Dec 14 01:32:55 .-. Dec 14 01:33:02 What's SO? Dec 14 01:33:09 or you can just ask your question here? Dec 14 01:33:11 stackoverflow Dec 14 01:34:21 Fine. Dec 14 01:35:19 So the problem that I'm running into is when I'm uploading an app to my tablet all the images and the text shrink to a smaller size. how do you fix this? Dec 14 01:35:25 Do you know what I mean? Dec 14 01:35:51 yes Dec 14 01:35:58 have you googled this? Dec 14 01:37:12 you've probably set their display manually using the wrong unit Dec 14 01:37:19 I have. Dec 14 01:37:37 The only thing that I saw was stuff about xxhdpi and other stuff, but no good tutorials about it. Dec 14 01:37:40 are the images the right size on a mobile? Dec 14 01:38:13 They're the right size on the nexus 5, but as soon as I run the app on a 7 inch screen all the images and text shrink Dec 14 01:38:32 https://developer.android.com/guide/practices/screens_support.html Dec 14 01:39:20 guys i need to add to an test app an option that send an alert every x days, and give the option to the customer to postpone the alert for 2 days when receive it. Dec 14 01:39:24 I read some of that. it made little sense. Do you know of any good video tutorial or no? Dec 14 01:39:37 Or should I just read that article again? Dec 14 01:39:38 can someone tellme some tip about what to search on google to do that? Dec 14 01:39:40 SamSagaZ: use an alarm Dec 14 01:39:49 ok Dec 14 01:40:16 SamSagaZ: https://developer.android.com/training/scheduling/alarms.html Dec 14 01:40:26 thanks Jonno_FTW ! Dec 14 01:40:54 So Jonno_FTW, basically you have to have multiple folders under the drawable folder? Dec 14 01:41:08 yes Dec 14 01:41:21 androi will pick the appropriate one I think Dec 14 01:41:55 Hello. Dec 14 01:42:07 o. Dec 14 01:42:09 I see Dec 14 01:42:17 ty Dec 14 01:48:26 Good evening. Is there anyone that has some knowledge about a persistent "Account Action Required" notification on Android Wear? (DP4) Dec 14 01:58:50 Hey guys, its my first time with android studio, im making my first Hello World app, when create the new emulator, is OK to install nougat android? Dec 14 01:59:10 sure why not Dec 14 01:59:47 well, just to be sure :) this will give me compat with old ones too, right? Dec 14 02:00:09 downloading nougat now Dec 14 02:16:14 https://github.com/codepath/android_guides/wiki/Shared-Element-Activity-Transition Dec 14 02:16:23 That is how to do activity animations Dec 14 02:16:30 And this https://developer.android.com/training/material/animations.html#Transitions Dec 14 02:23:02 how can you let views go all the way to the border of the screen? normally when the screen has match_parent for width and height there still is some space to the screen border Dec 14 02:26:29 omarramo guess u have padding somewhere Dec 14 02:27:15 in your layout Dec 14 02:28:07 Funeral: ahh correct Dec 14 02:28:08 thanks! Dec 14 02:44:22 I don't understand one thing: when I want to pass an object to another activity via intent, why do I have to make it serializable? why can't I just pass the object reference? wouldn't that be way more efficient? Dec 14 02:53:10 omarramo that Q is from android FAQ in 2009 - the truth is out there ! Dec 14 02:54:32 g00s: could you give me a link please? Dec 14 02:56:02 The TL;DR is "that's not how memory spaces work" Dec 14 02:57:35 Dagmar: so how do good devs handle this? Dec 14 02:59:00 or does it mean that the structure of my program is bad? Dec 14 02:59:32 No, it just means you need to serialize the data **** ENDING LOGGING AT Wed Dec 14 02:59:59 2016