**** BEGIN LOGGING AT Tue Aug 09 02:59:58 2016 Aug 09 03:09:22 Newbie question: I start a MainActivity, and in onCreate I start another activity. In the other I finish(); and in MainActivity it is called onActivityResult... where I attempt a findViewById which returns null? Second later MainActivity displays. Aug 09 03:35:51 hello Aug 09 03:37:11 i've followed the gridview example at https://developer.android.com/guide/topics/ui/layout/gridview.html - only difference is i'm using it in a fragment Aug 09 03:37:29 i am not seeing the gridview appear on screen, but i've got it so it no longer crashes Aug 09 03:37:44 (had to change some contexts to use getActivity() and things like that) Aug 09 03:37:59 is there anything else i need to do so it works in a fragment? Aug 09 03:59:28 It shouldn't matter Aug 09 04:00:16 If you can get a TextView working in a Fragment, you can get a GridView working in a Fragment Aug 09 04:13:53 ConstraintLayout alpha6: potential OOM when handling complex layouts ... :/ Aug 09 04:31:03 I'd like to make an app with a series of "screens." Each screen would have text, possibly an image, and a few buttons. Each button would take the user to a different screen. Ideally I'd like to have several cardviews and have them animate left and right. What's the best way to implement this using Android's guidelines? Aug 09 04:33:27 fraktor i guess you could try CardViews in a ViewPager ? Aug 09 04:34:25 i'm trying to make a custom keyboard, i've followed the examples/explanations from https://developer.android.com/guide/topics/text/creating-input-method.html (and using the sample SoftKeyboard.java) but nothing shows up in the settings menu when I install the APK on emulator Aug 09 04:34:38 i am assuming the keyboard is supposed to show up in the settings menu under language & input? Aug 09 04:35:51 g00s: that's what it was! I couldn't remember the name of ViewPager, though I'd read about it. Thanks! Aug 09 04:37:05 i can see that my keyboard app is installed on the device in the Apps settings menu Aug 09 05:42:27 g00s my friend! Aug 09 05:42:52 is there any reason why a gridview & imageview inside a linearlayout would only show one and not the other? Aug 09 05:43:12 when both are set to android:layout_height="wrap_content" Aug 09 06:40:29 AsyncTask: Is it safe to call cancel() multiple times? Aug 09 06:41:17 Or should I guard cancel calls with e.g. if ( !asyncTask.isCancelled() ) { asyncTask.cancel(); } ? Aug 09 06:50:38 It doesn't seem that invoking cancel twice on an AsyncTask will do any damage other than the 2nd invocation will return false because the AsyncTask was already cancelled. Aug 09 06:51:10 Zta77: call it once Aug 09 06:51:16 even though it doesn't matter Aug 09 06:52:22 The issue is that we have quite a lot of place where we guard against calling it twice. It adds up to a lot of code. I'm in the middle of a refactoring of something and need to choose whether maintaining this code is worth it. Aug 09 06:53:07 It's methods like void cancelAnyTasksRunning(); So they don't even care about the result. Aug 09 06:53:24 ...of .cancel() Aug 09 06:54:43 I don't see why I should bother protecting successive invocation of .cancel() if it doesn't matter Aug 09 06:54:51 thepoosh: Do you? =) Aug 09 06:56:02 Hi folks Aug 09 06:56:07 http://stackoverflow.com/questions/38843576/aligning-a-gridview-with-another-view/ Aug 09 06:56:17 does anyone know why i've got that excess whitespace on the gridview? Aug 09 06:58:13 Zta77: because it more correct Aug 09 07:00:08 thepoosh: I think agree. But is it still more correct if AsyncTask handles it gracefully? Aug 09 07:00:34 Zta77: 1. gracefully is not setting a boolean to true if it's already set to true Aug 09 07:01:01 2. look in the sample source in the docs Aug 09 07:06:29 raoul11: HAI Aug 09 07:06:40 ohi thepoosh Aug 09 07:06:50 thepoosh: billing question Aug 09 07:07:07 mHelper.consumeAsync(inventory.getPurchase(SKU_REMOVE_ADS), Aug 09 07:07:07 mConsumeFinishedListener); Aug 09 07:07:30 if i remove this line ^ it will act as a non-consumable item? Aug 09 07:07:34 I know nothing about billing Aug 09 07:07:35 sowwie Aug 09 07:07:39 ah ok Aug 09 07:07:51 only implemented consumables so far Aug 09 07:08:08 but someone been bitchin in his review that he'd consider payin for removing ads Aug 09 07:09:32 tell him to use some ad blockers Aug 09 07:09:43 [solved] Aug 09 07:09:53 but i wantz the monies Aug 09 07:10:11 plus my current ad supplier isnt really delivering Aug 09 07:15:01 thepoosh: What sample source? I've just found this https://developer.android.com/training/displaying-bitmaps/process-bitmap.html and as I read it bitmapWorkerTask.cancel(true); is not guarded against a 2nd call. Aug 09 07:15:26 whatever Aug 09 07:15:34 moved on with my life Aug 09 07:17:20 Sure. I was just curious about the nature of cancel() anyway. Aug 09 07:31:06 how can i change the theme of an input method to match the default (light gray background, no borders around the letters) Aug 09 07:51:59 Hi. Can SharedPreferences contain different values based on the context? E.g. if I call context.getSharedPreferences("PREFS", Context.MODE_PRIVATE) where context is an activity or a service (of the same app) could I get different preferences? Aug 09 07:52:55 where can i find all of the default theme values? Aug 09 07:54:00 i want to change a color but i dont know what it's called Aug 09 09:22:39 I think latest Fedora 24 update broke AOSP build Aug 09 09:22:45 anyone experienced anything? Aug 09 09:52:08 can i have a buildflavor that's basically a copy of another, only with a few changes? sort of like inheritance of build flavors Aug 09 09:54:59 xorgate: I've not done it myself, but from what I understand, you can do that. It will take stuff it needs from the flavor, anything that's not defined in the flavor, it takes from default Aug 09 09:55:43 xorgate, with the permissions again... Hello man Aug 09 09:56:07 ZeNEX: hi :) Aug 09 09:56:14 I got the system to ask me for the location but it takes too long to appear and it gets blocked by a layout Aug 09 09:56:26 Its a layout with 6 buttons and it gets drawn before the permissions popup Aug 09 09:56:45 so it gets blocked by the layout, I have been sure of it. Aug 09 09:57:02 because everytime I click on the button the popup appears and then the next layout appears Aug 09 09:58:15 the flow goes like this -> requestPermissions(...) -> exit method -> perform if statement -> call to draw layout Aug 09 09:58:24 and it still does not have time to appear... Aug 09 09:58:35 should I sleep for X or something? Aug 09 09:58:45 ZeNEX: you are drawing things yourself? Aug 09 09:58:55 inflate layout -> ask for permissions -> wait Aug 09 09:59:03 xorgate, super.onCreate(savedInstanceState, R.layout.activity_request); Aug 09 10:11:53 Hey all. I installed android studio a few days ago and I ran into an issue my device wasn't showing up. Someone suggested running adb.exe devices and I tried and got an error. Aug 09 10:12:50 I decided I was going to install slackware and try again. I had to run WinDirStat to free up space to download the DVD so I could do a USB install. I stumbled on c:\ANdroid\sdk\platform-tools\adb.exe Aug 09 10:13:00 slackware is always a good start... Aug 09 10:13:07 o.O Aug 09 10:13:18 is that a different adb.exe from the one you were running before? Aug 09 10:13:31 I bet the error was that it coulnd't find adb.exe Aug 09 10:13:34 I ran adb.exe in that location, and not the one in C:\documents and settings\ user\.local\appdata\android\sdk Aug 09 10:13:48 This time it started a daemon and listed my device. Aug 09 10:14:56 So I launged android studio, still doesn't appear, I suspect because the SDK is point to the wrong location. I changed the sdk in android studio and it wants to install build tools. Aug 09 10:15:08 This doesn't seem like normal procedure. Aug 09 10:15:12 "You have an open-alpha testing program; you cannot manage beta testing users while you have an open-alpha." Aug 09 10:15:16 will android users be able to install my future playstore app for free even if they aren't rooted? Aug 09 10:15:27 Can you not have open alpha testing and open beta testing? Aug 09 10:15:55 WrinkledCheese: so you have two different sdk paths Aug 09 10:16:04 Ashiren, it appears that way. Aug 09 10:16:11 easiest way would be to download build tools again Aug 09 10:16:15 From default install of android studio downloaded on Sunday Aug 09 10:16:23 as if you downloaded them, you did it in previous path Aug 09 10:16:26 I'm hoping that works. Aug 09 10:16:38 I'm not sure this POS can handle KDE or even XFCE. Aug 09 10:16:51 althought probably you could copy paste them but i dont know exact files Aug 09 10:17:08 huh Aug 09 10:17:14 how much ram Aug 09 10:17:23 I'm giving it a shot but I only came across this because I was trying to free up disk space trying to download Slackware. Aug 09 10:17:27 2GB Aug 09 10:17:36 Pentium 4 HT Aug 09 10:17:48 oh boy Aug 09 10:17:52 LOL Aug 09 10:19:22 :| Aug 09 10:19:33 I fear for your sanity WrinkledCheese Aug 09 10:19:54 Fear not! It's long gone. Aug 09 10:20:20 I plan on getting a new laptop when my income tax comes in....been audited 3 times this year....cause they keep fucking it up. Aug 09 10:20:21 RIP sanity Aug 09 10:20:35 I've been saving for a Macbook Pro Aug 09 10:20:49 They seem to last long and their resale value seems to be good too Aug 09 10:20:59 Would be the perfect laptop to work on the go Aug 09 10:22:41 Hi, I need this settled once and for all. Is it necessary/mandatory to have a "Restore Purchases" button on Android apps? I query all of the users purchases when starting the app and flag different booleans on the result to give the users their purchases. Shouldn't this be a more practical solution? Aug 09 10:23:18 and please, do correct me if I'm entirely wrong Aug 09 10:25:55 never seen a restore purchases button Aug 09 10:26:17 ^ same Aug 09 10:26:30 Zharf, really? In a lot of games I see them all the time. But so you do as me, and restore purchases automatically? Aug 09 10:26:38 yep Aug 09 10:26:51 alright, that was easier than I thought. Thanks Aug 09 10:27:03 what kind of items do the games sell? Aug 09 10:27:04 i think it's an ios thing Aug 09 10:27:28 Zharf, The latest example I saw would restore in-game currency. Aug 09 10:27:48 tjg1, yes on IOS it's a must. But I've been told before that it's good practice to have it on Android too Aug 09 10:28:27 Bernzel, I bet they have their own server that keeps track of the user's ingame spendings Aug 09 10:28:44 Ah okey, that might be it. Aug 09 10:28:54 because restoring consumables isn't something you can do otherwise Aug 09 10:29:24 yeah, I only use non-consumable products so Aug 09 10:30:20 What do you guys track for analytics? Just whenever users click on certain buttons which are supposed to do something, then whether or not that function was successful or not? Aug 09 10:30:58 screen views, some action clicks and errors Aug 09 10:33:08 remember that games often use cross-platform libraries Aug 09 10:33:29 so they might be just using the same ui for ios and android Aug 09 10:34:40 tjg1, good point Aug 09 10:34:45 i found a weird edge case that causes my app to crash Aug 09 10:35:25 fix itt Aug 09 10:37:14 I have a viewpager to display images full-screen that implements infinite scrolling. If the user views the last image on the given page (triggering infinite scrolling fetch in the background) and immediately swipes to the right, my app freezes and then crashes. No ANR dialog, no stacktrace, no exception thrown, nothing. Aug 09 10:45:10 Zharf: Screen views, where do you track that? I'm guessing whenever an activity / fragment is created? Aug 09 10:46:34 onresume Aug 09 10:47:38 it's a bit tricksy with viewpager thoguh Aug 09 10:47:40 yeah that makes sense, onCreate isn't called every time but onResume is Aug 09 10:47:54 Zharf: Why? Aug 09 10:50:01 because it resumes fragments to the side as well Aug 09 10:55:52 Sounds a bit confusing Aug 09 10:56:08 How would you handle that when doing analytics? Do you have a work around? Aug 09 11:03:51 pagechangelistener or whatever Aug 09 11:07:15 Zharf: How do you track views on Fragment, they don't have onResume()? Aug 09 11:08:05 onStart instead? Aug 09 11:09:02 ehm Aug 09 11:09:59 https://developer.android.com/reference/android/support/v4/app/Fragment.html#onResume() Aug 09 11:10:11 Hello. Could someone explain why this app has this method @Override protected void onStart() { super.onStart(); } Aug 09 11:10:28 How does that work Aug 09 11:10:33 but now that you mention it, I'm not sure if we do it in onStart or onResume... doesn't really matter though Aug 09 11:10:45 ZeNEX, ? Aug 09 11:11:53 it's just a regular overload that only calls the super method... Aug 09 11:12:04 it's the same as if it didn't exist Aug 09 11:12:30 Zharf: I only asked cause I can't override onResume within Fragment but can with onStart() Aug 09 11:12:46 Didn't mean fragment doesn't have onResume :D whoops Aug 09 11:13:08 why can't you override onResume? Aug 09 11:14:54 Zharf, so does it never get called? Aug 09 11:15:37 ZeNEX, it gets called Aug 09 11:15:57 but only thing it does is call the method it's overriding, so effectively it's the same if it didn't exist Aug 09 11:16:04 but if you add code to it then it's not the same anymore Aug 09 11:16:13 should I add code there? Aug 09 11:16:21 where should I add the permissions code Aug 09 11:16:42 taking into account its the first thing that I need Aug 09 11:19:49 https://developer.android.com/training/permissions/requesting.html Aug 09 11:20:49 Zharf: nevermind, I am an idiot and realised I had already override it Aug 09 11:21:00 Didn't check it first Aug 09 11:21:01 whoops Aug 09 11:21:11 :) Aug 09 11:21:47 Means I can just put it in there now :) Aug 09 11:21:59 Cheers for the tip Zharf, I'm gonna test it out and see how it goes Aug 09 11:22:51 Why does Activity have onBackPressed() but Fragment doesn't? Aug 09 11:23:10 I'm using a key listener within my fragments to see if back has been pressed Aug 09 11:30:35 Okay, legit question Aug 09 11:31:11 Have any of you ever made an application where when executed you must choose to do A or B, and the criteria depends on the response of the permission system? Aug 09 11:31:53 I cannot go down either road until I get the permission Aug 09 11:31:58 so therefore I must wait Aug 09 11:32:04 how do I wait? Aug 09 11:32:10 ah locked bootloaders make life so hard Aug 09 11:32:35 markyosullivan, because the fragment may not be a part of an activity, thus it wouldn't make sense to have a onBackPressed callback. Aug 09 11:49:14 perfinion, you around? Aug 09 12:13:24 Can SharedPreferences contain different values based on the context? E.g. if I call context.getSharedPreferences("PREFS", Context.MODE_PRIVATE) where context is an activity or a service (both of the same app) could I get different preferences? Aug 09 12:13:26 ZeNEX: you could display a different fragment based on the result of the permission request Aug 09 12:13:32 or even start a new activity Aug 09 12:17:53 asimas: no they are shared. if you want to make a distinction, just use different keys Aug 09 12:18:53 xorgate, okay thanks, just wanted to make sure users are getting the same values when called getting prefs from different context. Aug 09 12:21:26 Guys are permissions given on an application level or on an activity level Aug 09 12:22:57 anyone using applovin sdk? Aug 09 12:28:15 ZeNEX: sup Aug 09 12:28:52 ZeNEX: perms are for the whole app, if a perm is revoked the app is killed and restarted so you never have to deal with suddenly not having hte perm if you had checked when the activity started Aug 09 12:31:34 Does anyone know, when I open a certain activity on my app, the keyboard pops up by default - this isn't a problem, but in doing so, it scrolls the screen up a little, is there a way to stop this? Aug 09 12:32:07 perfinion, thats great I didn't know that! Aug 09 12:32:26 suddenly it is so much easier now Aug 09 12:32:42 though what if you are in the middle of writing a file or something similar Aug 09 12:34:20 ZeNEX: well to revoke perms the user has to go into settings->app->find it->perms->revoke the one, so unless its a huge file you're probably not gonna run into that Aug 09 12:34:40 ZeNEX: also, it destroys it properly first, onDestroy() and stuff will be called so you can close the file Aug 09 12:35:19 if for example you're downloading a huge file you would need a way to resume it regardless since networks can be flakey Aug 09 13:11:29 asimas: Would it not be appropriate to have something similar to onBackPressed for Fragment? Aug 09 13:35:09 What is it called when you ship a feature in a disabled state and can enable (and disable) it again from your backend? Aug 09 13:36:42 On disc DLC? Aug 09 13:37:25 haha Aug 09 13:37:41 good one Aug 09 13:37:57 heh, more or less Aug 09 13:39:44 IBM CPUs? Aug 09 14:05:19 what’s the difference between an AVD and a system image in the android sdk? Aug 09 14:15:56 umib0zu, an avd uses a system imagr Aug 09 14:17:17 so… which one? I’m having trouble emulating a project using cordova. I think it’s an issue of the emulator not having the right dependencies, but I’m not sure since I just get a sparse error message saying there was an error, without telling me why. Aug 09 14:17:21 pfn ^^^ Aug 09 14:19:10 umib0zu: I've never seen anyone help anyone with cordova here Aug 09 14:19:33 'there was an error' is a good enough reason to avoid it Aug 09 14:19:42 haha you’re about right Aug 09 14:20:12 cordova’s a bit of an annoying wrapper for the android sdk Aug 09 14:23:55 umib0zu, you use one that represents the version of Android you want to run Aug 09 14:24:13 Cordova suck, don't use Aug 09 14:25:48 creating new project , what should be optimal target id? Aug 09 14:25:58 is 10 good enough ? Aug 09 14:27:23 Suppose I wanted to create a secure android app that would simply return responses. Other than creating a socket, SMS, or HTTP request, is there any other message handling requests I can create? Aug 09 14:27:52 pfn I think I’m starting to get it. I might need to “build” before “running" Aug 09 14:27:59 Komak57: UDP Aug 09 14:28:08 boodllebat: that's a socket Aug 09 14:28:40 Komak57: yes you can pass message to other process using msg queues and process will send that for you Aug 09 14:29:00 Komak57: but i'll use socket Aug 09 14:29:21 Komak57: when you said HTTP request and socket aren't they both same ? Aug 09 14:29:46 Komak57: you can use Curl Aug 09 14:30:06 umib0zu, in any IDE, run implies build.... Aug 09 14:30:34 In a lot of cases, HTTP is a TCP socket request, yes. I want the phone to essentially be in "server mode" if you will, where it will simply wait, disconnected, for a request. I was hoping that Google would have some kind of way to pass on requests if you give them, say, the email or public key of the device. Aug 09 14:32:30 in a lot of cases? Aug 09 14:34:08 Anybody had an issue with Google Play Game Services when it is stuck in loading animation when you try to log in? Aug 09 14:35:15 Not important pfn, the fact is that I need the phone to act as a disconnected server that jumps different networks at any given time, but needs to be connected to when a message is in que in the server. I can turn it into a client if I absolutely must, I was just hoping there was some low level message service that google may have implemented. Aug 09 14:36:36 If I create a client, it would either have to stay perpetually connected to receive messages, or ping frequently enough that any delay would be negligable (not really an option). Just hoping to avoid a constant connection. Aug 09 14:37:47 Im just getting into android, but I thought google did have messaging, as a google service or w.e Aug 09 14:39:28 called GCM Aug 09 14:39:31 Google Cloud Messaging Aug 09 14:41:09 That looks like it, thanks tx Aug 09 14:55:02 yo Aug 09 14:55:13 my gradle is looking for the sdk in a wrong place. how to change it? Aug 09 14:55:21 without android studio, just using files. Aug 09 15:00:48 Look at local.properties Aug 09 15:01:23 Mavrik: thanks dude Aug 09 15:07:59 Mavrik: see this: Aug 09 15:08:04 sdk.dir=C:\Users\tayeb\AppData\Local\Android\sdk Aug 09 15:08:07 it should be correct Aug 09 15:08:09 but when i do Aug 09 15:08:21 gradlew.bat assamble, it look into that same dir Aug 09 15:08:23 so for example Aug 09 15:08:33 e:\news\c:\... Aug 09 15:11:26 am i doing something wrong? Aug 09 15:11:33 anyone here using roughike's bottom bar? how do i make the colours of the icons show? it changes them to white... Aug 09 15:11:48 bottom bar still a thing ? :P Aug 09 15:11:53 was it ever a thing :D Aug 09 15:12:31 well what else to use? Aug 09 15:13:38 (other than building my own) Aug 09 15:13:57 thornekey i was referring to the UI pattern, not the library itself ... Aug 09 15:14:11 oh i see. my mistake. but yea, i think it looks good Aug 09 15:14:21 design guidelines does too ahaha Aug 09 15:14:33 is it not used much on android, i know iOS apps use it a lot Aug 09 15:18:50 i think i may have solved it though tbh ahah Aug 09 15:21:38 g00s: isn't it a thing all over again? Aug 09 15:22:56 i think they are going around in circles now :D Aug 09 15:24:22 I look forward to the thing they've been hiding for N - a new global theme, dubbed "Tron Legacy" which bears no relation whatsoever to anything to do with bees Aug 09 15:25:13 pics? Aug 09 15:25:47 I could show you, but I'd have to kill your Google account Aug 09 15:25:57 that's okay Aug 09 15:26:00 I'll log out ;) Aug 09 15:27:46 Leeds i'm looking forward to google fixing the security update situation my modularizing the OS Aug 09 15:28:38 soft-ara? Aug 09 15:28:44 Hmm, ive given my users the option to log in with facebook or log in with a custom account, however if they log in with my custom log in they cant see facebook users names Aug 09 15:28:53 as there is no facebook auth token Aug 09 15:28:58 how do i solve this Aug 09 15:29:04 i remember back in 2010, 2011 - i even chatted with romainguy about it /back then/ he didn't believe me when i said the way this is handled, will become a disaster. now its 5 years later. if they worked on it, we'd be OK by now Aug 09 15:32:17 Leeds have you seen copperhead ? http://arstechnica.co.uk/security/2016/08/copperhead-os-fix-android-security/ Aug 09 15:33:00 i see what they are trying to do; but think the problem lies more in the OS needs to be more modular for updates by OEMs like windows + their driver model Aug 09 15:35:17 do we need developer console to add maps into our app ? Aug 09 15:35:38 is it mandatory ? cause i dont have a developer account ? Aug 09 15:36:33 Don't you need an account to release your app? Aug 09 15:38:45 ResidentBiscuit: i'll look that later currently i'm just developing it , i'll buy dev account when i'm about to complete my app does that sound reasonable to you ? Aug 09 15:39:03 Does it even cost money? Aug 09 15:39:40 Oh, it does. 25 bucks Aug 09 15:39:45 25 USD Aug 09 15:40:32 ResidentBiscuit: so is it mandatory ? Aug 09 15:40:44 ResidentBiscuit: for maps ? Aug 09 15:41:02 ResidentBiscuit: i've coded my server i've test it with maps Aug 09 15:41:12 Kind of looks that way. Not sure, I never looked for a way without having an account. You get your key in the dev console, I'm not sure how else you would get one Aug 09 15:41:29 It is just a one time registration fee if that makes it any easier Aug 09 15:41:35 ResidentBiscuit: ah thanks anyways Aug 09 15:45:10 anybody else who knows , that can i use maps without google developer console or not ? Aug 09 15:46:19 dont u need to get a auth cert from them Aug 09 15:46:29 which comes with the dev console account Aug 09 15:46:46 think its free if ur not a business or something but youll have to confirm that yourself Aug 09 15:47:39 thornekey: is developer console different from that android developer console ? Aug 09 15:48:13 thornekey: yes! its free Aug 09 15:48:21 thornekey: thanks Aug 09 15:48:45 think its the same account, cant remember, been a while since i used google maps api Aug 09 15:48:54 https://developers.google.com/maps/documentation/javascript/get-api-key Aug 09 15:49:02 thornekey: no google API console is different Aug 09 15:49:22 ahk Aug 09 15:49:25 Then I don't know. You seem to already have the answer you want, just waiting for someone to agree with you Aug 09 15:49:32 You can google as well as we can Aug 09 15:49:41 there is also a Premium Plan Aug 09 15:49:45 for business owners Aug 09 15:50:08 thornekey: yes but i'm just on development mode so i need free thing Aug 09 15:50:10 which i think u must use if you have a certain amount of users making requests on the map Aug 09 15:50:15 yea just use free Aug 09 15:50:19 AFAIK you need to pay the 25 dollars to get your developer account, then you can get keys to whatever api you want Aug 09 15:50:40 ResidentBiscuit, i thought the 25$ was to publish on the google play store? Aug 09 15:51:06 You pay 25 dollars to create your account, which you need (from what I know) to get API keys Aug 09 15:51:42 hmm Aug 09 15:51:46 maybe its changed since i used it Aug 09 15:52:08 ive not paid yet and ive used google maps api with a key assigned to my account Aug 09 15:52:12 (a while ago though) Aug 09 15:52:39 ResidentBiscuit: hey i got my API key Aug 09 15:52:46 Going through the process again just to see, and yeah it requires payment Aug 09 15:52:58 No i did not pay any usd's Aug 09 15:53:02 Great Aug 09 15:53:12 but to publish you definitely need to pay Aug 09 15:53:18 ResidentBiscuit: https://console.developers.google.com Aug 09 15:53:43 thornekey: yes i know that Aug 09 15:53:55 Free trial? Aug 09 15:57:06 Hello, i have a problem with my main activity. I got a progressBar incremented during the loading of data. But it seems that the GUI is refreshed only when all the stuff is done. So I have a very long flash screen, and no progressbar Aug 09 15:57:37 Can I force a GUI refresh ? Aug 09 16:01:46 ResidentBiscuit: i just logged in from my default account , and a pending project was already there i just deleted it and created new , i dont know if its a trial or not Aug 09 16:02:03 ResidentBiscuit: that pending project was about 3-4 yrs old Aug 09 16:08:18 Should I put all the graphic stuff on the "onStart()" ? Aug 09 16:10:45 does anyone know what this means? Aug 09 16:10:46 http://i.imgur.com/eUXiJuM.png Aug 09 16:10:51 I don't see any errors Aug 09 16:12:19 brunch output: http://pastebin.com/m6QqAkxJ Aug 09 16:14:18 hi Aug 09 16:14:36 hey Aug 09 16:14:39 what's up? Aug 09 16:14:49 boodllebat: the google services api console blah blah isn't the same as the play store publisher console Aug 09 16:14:58 i need to test if a devices is rooted Aug 09 16:15:21 how can i root a system-image? Aug 09 16:16:59 Leeds: yes, that was what i was talkin about but ResidentBiscuit was having a little bit of trouble finding the link Aug 09 16:17:21 can i ask a gradle question here? Aug 09 16:17:43 Try and see if we bite you Aug 09 16:18:26 i'm want to use gradle v2.10 it was not on mavenCentral() so i tried jCenter() , and its not even there how do i use 2.10 in my build script Aug 09 16:18:34 i am getting following error http://paste.ubuntu.com/22815575/ and here is my gradle.build http://paste.ubuntu.com/22815671/ , i am trying to work with android. Thank You Aug 09 16:22:14 Problem Solved i think Aug 09 16:23:03 whats that trick to (has a name of the technique) where if one is false or null itll choose the other and its like soAndSo = x ? : y Aug 09 16:23:05 or something Aug 09 16:23:47 ternary operator Aug 09 16:23:52 ah, cheers Aug 09 16:25:58 boodllebat, huh Aug 09 16:26:03 so "a < b ? a : b;" basically means if a is less than b = a otherwise = b ?? Aug 09 16:26:05 Gradle isn't part of the repositories. Aug 09 16:26:14 Use gradle wrapper (gradlew) to invoke it and it'll autodownload Aug 09 16:26:34 Mavrik: yes sorry i'm new i dont know stuff Aug 09 16:26:52 Mavrik: which gradle version are you using ? Aug 09 16:27:18 Mavrik: wrapper files and build.gradle Aug 09 16:27:46 How can I do (on my main activity) a Loading with a progressBar if the flash screen dont get out before all the works is done ? Aug 09 16:28:22 put a progressbar in your toolbar Aug 09 16:31:30 i dont have toolbar Aug 09 16:34:34 Threads Aug 09 16:34:38 is what I need :) Aug 09 16:40:16 so in https://developer.android.com/reference/java/lang/Thread.html#Thread(java.lang.ThreadGroup,%20java.lang.Runnable,%20java.lang.String,%20long) Aug 09 16:40:38 anyone observe how stackSize works? docs basically say, all bets are off Aug 09 16:41:26 sounds like my n7 can do one thing, and samsung can do another Aug 09 16:43:13 don't recurse too deeply Aug 09 16:43:15 problem solved Aug 09 16:43:24 lol pfn with all the solutions Aug 09 16:43:35 don't program at all, problem solved :) Aug 09 16:47:14 use solutions such as iteration Aug 09 16:47:14 I just did ./gradlew but its says http://paste.ubuntu.com/22818904/ Aug 09 16:47:18 or tail recursion when available Aug 09 16:47:28 i'm using gradle wrapper Aug 09 16:48:34 Mavrik: i'm now using gradle wrapper but still the same problem, can you take a look ? Aug 09 16:49:28 What am i doing wrong Aug 09 16:49:30 oh, your language doesn't have tail recursion? sux2bu Aug 09 16:49:47 any idea of http://stackoverflow.com/questions/38856176/tablayout-setupwithviewpager-bug ? Aug 09 16:50:08 * boodllebat screams "Why is this happening? Help me" Aug 09 16:50:13 eheh Aug 09 16:51:04 boodllebat, 2.2.1 isn't a valid android plugin version Aug 09 16:51:12 why would you even put 2.2.1 in there??? Aug 09 16:51:26 https://jcenter.bintray.com/com/android/tools/build/gradle/ Aug 09 16:51:27 duh Aug 09 16:52:40 pfn: Whoops , am i dumb ? Aug 09 16:52:47 yes Aug 09 16:54:30 when i use response.message() with retrofit what exactly is the message? is it the same as the body? Aug 09 16:57:31 pfn: to use 2.1.2 what should i set my distribution url to ? is gradle-2.12-all.zip fine ? i got it from here https://services.gradle.org/distributions/ Aug 09 16:59:10 try it and see Aug 09 17:02:22 Hello, is there a way by which I can open a website remotely on android device? Aug 09 17:02:28 (new to android development btw) Aug 09 17:03:03 I am thinking of something like a server running on a particular port. You send a command to it, it opens website, takes data and returns you the data Aug 09 17:03:48 yes Aug 09 17:04:52 elosz, nanohttpd Aug 09 17:06:02 pfn: It worked! you good bro Aug 09 17:06:48 bitkiller: looks nice. But for such a simple stuff, do I need maven and and all that which nanohttpd uses? Aug 09 17:07:06 wouldn't writing a custom server be easier and lightweight? Aug 09 17:07:21 pfn: now i can compile my project , here take this song its a gift from me https://www.youtube.com/watch?v=uyWbqAtsZQc Aug 09 17:09:29 Hi all. What's the best way to get a persistent icon in the status bar with no normal notification, just the icon? Aug 09 17:10:34 Basically, I have an app that's paired to a single custom bluetooth device-- when the app is open, I need a status bar icon that shows the status of the connection to our bluetooth device Aug 09 17:10:59 elosz, that was a starting point for me Aug 09 17:11:23 i removed some of their code i would not use Aug 09 17:13:19 liuwenhao, persistent notification Aug 09 17:13:48 liuwenhao: Notification Manager gives that doesn't it ? Aug 09 17:14:25 elosz, i think you could add it as a dependency in your project and use it as is Aug 09 17:14:40 bitkiller: cool, will take a look Aug 09 17:15:04 liuwenhao: i dont know but i guess https://developer.android.com/guide/topics/ui/notifiers/notifications.html has it all what you need Aug 09 17:17:43 @pfn @boodllebat thank you Aug 09 17:17:49 can anyone recommend tools to help design a database.. like visualization tools? Aug 09 17:18:08 SQLite? Or Realm? Aug 09 17:18:11 im having a hell of a time wrapping my head around this puppy Aug 09 17:18:18 im using Realm Aug 09 17:18:20 You could always make UML charts Aug 09 17:18:21 actually, firebase Aug 09 17:18:42 PlantUML has a cool IntelliJ/Android Studio plugin Aug 09 17:19:01 UML, never heard of it Aug 09 17:19:15 I should have taken at least a cpl CSE courses ha Aug 09 17:19:30 I'll look into it, thank you! Aug 09 17:19:31 parco: UML is basic , just read it on some blog Aug 09 17:19:41 UML is just diagrams of what code will be structured like (without actually writing code) Aug 09 17:19:59 thats exactly what i need, up until this point its just been me and my whiteboard Aug 09 17:20:12 which sucks when it gets to documenting stuff Aug 09 17:20:19 parco: it just shows schema and function dependencies and relations Aug 09 17:20:27 read the other day some regrets grady had about UML Aug 09 17:20:43 PlantUML is cool because it just generates diagrams from plaintext, and you can do it inside Android Studio (I actually kept my database diagrams in the same package as model classes until we went to production) Aug 09 17:21:00 i like UML but i'm not sure if UML likes me too :\ Aug 09 17:21:24 https://plugins.jetbrains.com/plugin/7017?pr=ruby Aug 09 17:21:54 oh wow, so this seems pretty popular then Aug 09 17:25:32 just curious, do they teach UML as standard curric for CSE ? Aug 09 17:25:41 (Computer Science) Aug 09 17:25:45 parco: yes Aug 09 17:25:50 mmm... standard curry Aug 09 17:26:02 parco: its just a chapter though Aug 09 17:26:38 how about the chrome app? Aug 09 17:26:45 oh... ignore that Aug 09 17:30:19 @parco I learned UML before I started coding... but it didn't really make sense to me then Aug 09 17:30:47 liuwenhao: there's a part of me that thinks that's how you should learn Aug 09 17:31:21 I don't think it's that useful either, but for database diagrams its perfect (especially if you have a lot of complex relationships in your DB) Aug 09 17:31:38 as an EE, i noticed too many CSE student's learning syntax when they didn't know proper logic and flow Aug 09 17:32:36 alright cool, thanks again Aug 09 17:33:55 For me the problem was having to diagram UML when I didn't even know what a class or object was haha. Although I think that wouldn't be that big of an issue with a good instructor Aug 09 17:40:27 compile 'com.google.android.gms:play-services:9.4.0' what should i set my play-services version to , instead of 9.4.0 , i have rev 32 of google play services can you teach me how to look up version ? Aug 09 17:40:32 join #sql Aug 09 17:40:35 oops Aug 09 17:40:36 haha Aug 09 17:48:43 boodllebat there is a string resource Aug 09 17:49:03 g00s: how would i use that in build.gradle ? Aug 09 17:49:14 g00s: to link deps ? Aug 09 17:49:18 oh, no its for the manifest Aug 09 17:49:20 android:value="@integer/google_play_services_version" Aug 09 17:49:38 i just use 9.4.+ Aug 09 17:50:40 g00s: does it gives you the latest ? if yes then shout "Hell yeah" Aug 09 17:51:03 well, it gives the latest in 9.4.* Aug 09 17:51:13 You can look up the latest version in sdk/extras/google/m2repository/ Aug 09 17:51:16 i'd have to change it again for 9.6.* etc Aug 09 17:52:07 g00s: i got that when you didn't shout "Hell yeah" cause one only shouts "Hell yeah" if one is confident Aug 09 17:55:41 SimonVT: yes i messed up that folder earlier so i deleted it all now , re-downloading play services Aug 09 17:55:58 SimonVT: and i'm sure version will be there Aug 09 17:58:46 SimonVT: i'm here sdk/extras/google/google_play_services/samples/maps/res/values Aug 09 17:58:59 SimonVT:no sign of version yet Aug 09 18:00:11 do you have any hint where it could be Aug 09 18:00:41 Why not follow the path I told you? Aug 09 18:01:44 SimonVT: i dont have any m2repositiory directory Aug 09 18:02:04 SimonVT: google-play-services removed it in rev 32 Aug 09 18:02:20 SimonVT: as far as i can remember it Aug 09 18:03:48 SimonVT: http://stackoverflow.com/a/37311511 Aug 09 18:04:19 It's called google repository or something in sdk manager Aug 09 18:04:33 You need to download that to use it as a gradle dependency Aug 09 18:06:04 SimonVT: i see that package , downloding it Aug 09 18:20:22 SimonVT: now i have a m2 directory Aug 09 18:20:44 "Erik: I predict that within the next year we will all be using Swift." lol Aug 09 18:21:45 im getting an error that i need to make a string final (im setting it in an inner class) so i do.. and then its like cant value to final variable.. Aug 09 18:22:04 thornekey, java basics Aug 09 18:22:04 SimonVT: i'm here /extras/google/m2repository/com/google/android/gms/play-services-maps and it has many directories like 9.2.0 , 9.2.1 , 9.4.0 and many more does that mean the best version i suport is 9.4.* ? Aug 09 18:23:05 boodllebat depends. if using an emu, the best version is what you're stuck with on emu Aug 09 18:23:29 so if you are , for example using kitkat avd, whatever is on there Aug 09 18:23:59 but generally you want the latest, or latest - 1 Aug 09 18:26:28 ah cos its a transient local variable Aug 09 18:26:31 quite misleading Aug 09 18:31:32 g00s: no i'm not using emulator , i run things on device Aug 09 18:32:06 g00s: how should i set the optimal version in gradle ? 9.5.+ ? Aug 09 18:35:14 hithere Aug 09 18:35:15 https://support.google.com/googleplay/android-developer/answer/3131213#availability Aug 09 18:35:16 Can I run multiple tests per app at the same time? Aug 09 18:36:13 I am bit disconcerted by the second answer "If you run an open alpha test, you can't use the open or closed beta track" - Can I - How? Aug 09 18:40:41 how do you find where OutOfMemoryError is coming from Aug 09 18:43:50 #java Aug 09 19:43:40 I can't get gradle to build for some reason, it keeps looking for a mac jar? http://pastebin.com/c8hpEzqE Aug 09 19:43:58 theres my build.gradle with the error on the bottom Aug 09 19:49:19 anyone have a good article on when to use colors in apps? my boss asked me to write some guildeline, and I have no idea what to write... Aug 09 19:51:29 Why does google recommend using the Google Location Services API (which is part of Google Play services) over API classes in android.location, besides that "Google Location Services API is the preferred way to add location-awareness to you app, has simpler API, higher accuracy, low-power geofencing, etc." Aug 09 19:52:30 Better api, higher accuracy and lower power consumption aren't reasons enough? Aug 09 19:55:34 SimonVT: well, there ARE tutorials on developer.android.com about using APIs in android.location (see: https://developer.android.com/guide/topics/location/index.html). If Google Location Services API is better (which i may believe, no problem), then why are the tutorials/information about android.location still in the guides of android? Aug 09 19:56:53 No reason to completely remove documentation of methods that exist and work Aug 09 19:57:16 the "Training section" handles applying location using Google Location Services API, however, the training section covers only little info about this (and any other topic), hence, i'm reading the guide. But the guide however, it's still using android.location in the topic of Location and Sensors......... Aug 09 19:58:03 SimonVT: i agree, but there is no comprehensive guide on using location with Google Location SErvices API, despite that those APIs are what's being used in the Training section Aug 09 19:58:45 And i'd like to read comprehensive info, not just scratch the surface of a topic Aug 09 19:59:58 There's not really a whole lot to getting location updates Aug 09 20:00:06 Register, wait Aug 09 20:00:32 The documentation seems to cover that Aug 09 20:00:51 what more would you want? What would be considered “comprehensive”? Aug 09 20:03:31 s73v3r: i don't know, it seems to simple as it is now...i feel like there has to be more stuff that is needed in order to make a PROPER location aware feature in an application... Aug 09 20:03:40 to = too* Aug 09 20:03:44 have you tried it? Aug 09 20:03:48 yes Aug 09 20:03:54 it did work Aug 09 20:03:58 there you go Aug 09 20:06:55 https://support.google.com/googleplay/android-developer/answer/3131213#availability Aug 09 20:07:00 Can I run multiple tests per app at the same time? Aug 09 20:07:06 I am bit disconcerted by the second answer "If you run an open alpha test, you can't use the open or closed beta track" - Can I - How? Aug 09 20:07:21 s73v3r: ok never mind then :p Aug 09 20:08:59 Then don't run an open alpha test? Aug 09 20:10:25 bolovanos: Your best bet is probably to use a separate beta service, like HockeyApp Aug 09 20:10:38 SimonVT, you right - blackout Aug 09 20:11:30 s73v3r, hi - have not heard of it yet - will look at it. Btw - what is wrong with googles way? Aug 09 20:11:47 it’s just a lot easier to not deal with them Aug 09 20:13:24 s73v3r, to deal with google or to deal with thei alfa/beta testing? Aug 09 20:13:31 either or Aug 09 20:13:49 besides, it sounds like what you want is not something they allow Aug 09 20:14:00 Seems easier to have betas delivered through play store.. With auto updates and everything Aug 09 20:14:12 if your beta process is simple, sure Aug 09 20:14:48 i know ours isn’t, and it’s a pretty big headache trying to juggle what we have in the alpha channel, the beta channel, and what’s promoted to the store Aug 09 20:14:58 admittedly, we’re an edge case Aug 09 20:15:41 gues I am mainstream, and I will stick with mainstream, but thanks for hint - maybe for bigger projects in future Aug 09 20:15:41 :) Aug 09 20:15:50 So unless you're an edge case, just use Google? Aug 09 20:16:08 i dunno. I kinda like HockeyApp, so I’d probably stick with them. Aug 09 20:16:19 Crashlytics isn’t bad either Aug 09 20:16:37 I kinda like not having to click update :p Aug 09 20:16:50 both have the ability to push updates automatically Aug 09 20:17:38 and, it sounds like bolovanos is trying to do something which the play store doesn’t allow Aug 09 20:18:03 It sounds like he just doesn't understand what the documentation says Aug 09 20:18:34 SimonVT, is right - I am not even sure whether I need simultaneous alfa/beta testing Aug 09 20:18:57 so I am just arranging my thoughts Aug 09 20:25:36 but thank you both for your assist! Aug 09 20:30:10 is R.anim.push_left_in deprecated? Aug 09 20:30:42 I think it is... Aug 09 20:31:00 Looks like I have a bunch of push_* out of R.anim. that need updated... Aug 09 21:23:30 guys I was wonder why this xml is printing like this: Just Java order for %1$8 Aug 09 21:23:31 Just Java order for %1$s Aug 09 21:29:35 Which part are you surprised about not working? The format pattern or the xml? Aug 09 21:29:52 as far as I know you Aug 09 21:30:14 you'll need the CDATA-tag in order to include xml-data in strings Aug 09 21:30:53 a %1$s turning into %1$8 sounds more mysterious though :) Aug 09 21:44:55 android sdk manager only has build tools down to 19.1. do i care or will 19.1 work fine for an API 16 target Aug 09 21:47:40 (i would experiment but i'm still downloading a bunch of packages and i will have to leave before they finish) Aug 09 22:13:58 Hi all what are easy alternatives to Loaders for Loading data in the network? Aug 09 22:19:16 Hi all what are easy alternatives to Loaders for Loading data from the network? Aug 09 22:32:40 p_l https://aaron-fischer.net/tdn Aug 09 22:37:03 hello Aug 09 22:37:22 for android apps, can you store your business logic in the server? Aug 09 22:37:52 yes Aug 09 22:38:32 don't they reject the app? because it has to run offline? Aug 09 22:38:40 it has to run offline? Aug 09 22:38:44 hardly any apps do these days Aug 09 22:39:13 google isn't apple Aug 09 22:39:23 they don't have arbitrary requirements Aug 09 22:39:47 well, it would be nice if it run offline, but I don't think it will make much difference Aug 09 22:39:58 I'm not sure where apple requires that... Aug 09 22:40:17 wwwi what does 'store business logic on server' mean ? Aug 09 22:40:33 i think something else is going on Aug 09 22:41:02 g00s: I don't want the whole world to see be able to get my code Aug 09 22:41:24 wwwi so your app is more a thin client (even more thin) :D Aug 09 22:41:43 neither google or apple care how you partition that Aug 09 22:41:45 g00s: I don't mind putting boring things there Aug 09 22:41:58 wwwi, if you have to ask, I'm pretty sure that no one will care about your code Aug 09 22:42:05 wwwi: unless you want really sluggish apps you should probably duplicate a lot of it in your app, though Aug 09 22:42:18 fake it until you make it Aug 09 22:44:49 Eplebit: fake it until you make it? not familiar with this expression Aug 09 22:45:26 so, you think neither Google nor apple care if you put your business logic in the server? Aug 09 22:47:27 wwwi: it was not the correct use of the expression anyways. but if you put business logic on the server it could be smart to fake the app to show that everything went well instead of waiting for a response from the server every time Aug 09 22:48:17 which means you should probably duplicate some of the logic to make sure you rule out the obvious cases Aug 09 22:48:35 at least that's my philosophy Aug 09 22:49:25 then again I make apps for people working in the middle of nowhere where their connection sucks... Aug 09 22:50:12 wwwi: the generally accepted guidance is that much of your business logic should be in the server, so you can change it without pushing updates to the app. Aug 09 22:50:26 depending on the scenarios you’re building the app for Aug 09 22:51:17 and as far as I know, neither Google nor Apple have any kind of requirement that the app run offline Aug 09 22:51:40 you can’t crash if there’s no network, but there’s nothing against popping a dialog saying your app requires interent Aug 09 22:52:39 I see. Aug 09 22:52:58 well, how about the windows store for desktop apps? Aug 09 22:53:20 not a clue Aug 09 22:53:28 you’d best ask in there forums/channel Aug 09 22:53:34 s73v3r: ok Aug 09 22:53:36 if it can't do anything without internet, may as well go mobile web Aug 09 22:53:51 maybe Aug 09 22:56:48 so, a bit confused. the guidance is that much of business logic should exist on server and neither Google nor Apple care if you do that, right? so, why just go mobile web? Aug 09 22:57:07 why then* Aug 09 22:58:52 the idea is, if you absolutely have to have internet, then going mobile web will ensure there is interent Aug 09 23:01:55 wow chrome 53 phases out adobe flash Aug 09 23:02:18 wwwi: nothing there either Aug 09 23:02:23 why on earth would there be? Aug 09 23:02:48 g00s: except you miss the native feeling Aug 09 23:03:45 Eplebit: nothing where? Aug 09 23:04:27 wwwi: no requirement for having to work offline Aug 09 23:04:48 does netflix work without a connection? Aug 09 23:05:59 can it buffer a movie for playback offline ? Aug 09 23:06:18 * g00s doesn't have netflix :D Aug 09 23:06:23 NO Aug 09 23:06:37 lol that sucks Aug 09 23:07:01 I guess there is a requirement for working offline in the loosest sense in that, you can’t crash because there’s no network connection Aug 09 23:08:48 Eplebit: ok Aug 09 23:09:06 s73v3r: yes, that is true Aug 09 23:09:19 but I am probably better off if I provide some functionality that also works offline? Aug 09 23:09:43 it depends? Aug 09 23:10:04 if you can, great. if it doesn’t make sense, though, then don’t Aug 09 23:10:11 ok Aug 09 23:10:49 depends on what you're creating Aug 09 23:11:39 Ologn https://adtmag.com/articles/2016/08/08/cutting-edge-dev.aspx Aug 09 23:11:44 and everyone else ;) Aug 09 23:12:03 ""Indeed, unless we integrate computing directly with our thoughts, AR might be the final interface paradigm." Aug 09 23:12:16 i agree with this - we're going to need a material guidelines update :D Aug 09 23:13:36 g00s: wow, that was a lot of people involved in VR and AR... Aug 09 23:13:42 the age of the glowing rectangle is coming to an end ... Aug 09 23:14:40 with the firebase database, i can add items to objects as i see fit right? Aug 09 23:15:50 i guess i mean if i wanted a flag on an object, i can append a boolean later on for instance Aug 09 23:24:06 thanks for the help Aug 09 23:41:27 AS 2.2 beta 1 Aug 09 23:42:01 wait, what have we been running thus far? Aug 09 23:43:03 i'm using 2.1.2 Aug 09 23:43:33 guessing 2.2 stable by the end of august ? Aug 10 01:55:05 Is it necessary to specify an id for the root element of an android layout xml? Aug 10 01:56:55 svm_invictvs: nope Aug 10 01:57:19 Grr that's what i thought Aug 10 01:57:30 why isn't my layout showing up in R.drawable.the_file_name Aug 10 01:57:49 oh derp Aug 10 01:57:57 because it's in layouts Aug 10 01:58:03 oh fuck, I can't believe I was staring at this code for 30 minutes only to ask in here Aug 10 01:58:05 :-D Aug 10 01:58:08 lol Aug 10 01:58:12 It's been a long tday Aug 10 01:58:15 *day Aug 10 01:58:18 indeed Aug 10 01:58:20 Hello everyone, does anyone know how does gmail expand their cardview inside recycleview into full screen on item click? Aug 10 02:14:17 shankz :-/ Aug 10 02:14:21 wish I had an answer for ya Aug 10 02:34:35 elevation animation, expanding animation and shared element transition Aug 10 02:34:50 plaid or Topeka does this Aug 10 02:35:01 or something similar **** ENDING LOGGING AT Wed Aug 10 02:59:58 2016