**** BEGIN LOGGING AT Thu Feb 09 03:00:03 2017 Feb 09 03:01:27 lake:im only seeing recognizing objects that exist.. not picture matching Feb 09 03:10:36 adq how do you get 25.3.0 ? no standalone, and AS + android don't see any updates Feb 09 03:11:03 canary i guess, http://tools.android.com/recent/androidsdktoolsrevision2530feb2017 Feb 09 03:11:08 bubbely: I'm not sure. I haven't actually needed to use OpenCV myself (I had a presentation on it at a conference I attendend once) Feb 09 03:11:08 haven't played with it anyway Feb 09 03:11:33 bubbely: But I would definitely have assumed it was there. I mean, it has everything else :-) Feb 09 03:12:43 In the presentation they quickly built an application to play tic-tac-toe with a computer by drawing your moves on paper and having image recognition see what your move was. Feb 09 03:14:02 I tried the Android Studio theme editor, changed some colors, but when I reset them, they reverted to different colors than they were when they started. Anyone know what gives? Feb 09 03:16:01 (unfortunately, ctrl-z undo doesn't work, as it gives an error before going all the way back to before my changes) Feb 09 03:16:11 am I conceptually understanding it correctly, that, given the lifetimes of different app components, one usually wants to have Model in a Service, and then have various Activity's act as the View and Controller? Feb 09 03:18:04 "Some much needed changes to sdkmanager. As always, k..p up the g...t w..k!" Feb 09 03:18:05 lol Feb 09 03:18:54 This is just a WebView wrapper... https://github.com/wasabeef/richeditor-android Feb 09 03:34:39 adq i wonder if the 'improved pipe performance' what xav mentioned last year at i/o ... adb speed improvements Feb 09 03:35:02 no clue, i think it's just for avd Feb 09 03:35:09 not adb specifically Feb 09 03:36:26 recent avd are quite fast for me, but stability is still a huge major issue Feb 09 03:36:43 "Linux Kernel 3.18 Reaches End of Life " Feb 09 03:36:47 with genymotion i got week(s) of uptime, with avd it barely last more than few hours (at best) Feb 09 03:36:47 lol android uses that Feb 09 03:48:11 im trying to setup a build server for android and I cant get sdkmanger to list the full name of the images Feb 09 03:48:27 it always shows an abbreviated vrsion Feb 09 03:51:47 g00s: that could mean any of: https://ghostbin.com/paste/47ywj Feb 09 04:03:13 Does Android Studio override some colors in the apptheme on a default project template? Feb 09 04:22:22 https://code.google.com/p/android/issues/detail?id=165545#c19 noice Feb 09 04:51:36 hey guys, i have a question, im using a simple reflection on BottomNavigationView Field to disable its shifting behavior; so is it such a bad thing to have it on production app? Feb 09 04:52:40 not in this life but you'll burn in hell in the afterlife Feb 09 04:55:14 * kevoroid thinking good thing that he's an atheist! :) Feb 09 04:57:19 seriously, it's almost as using any other feature. Except that when the "feature" you are using is removed or changed, you don't get a deprecation and a compatibility library. Can you handle that? Feb 09 04:57:55 In 6 months, will you be able to identify a bug report as being caused that this code? Feb 09 04:58:24 Can you tolerate that can of bugs at all? Feb 09 04:58:38 If the answer is "yes" then it's not a big problem Feb 09 04:59:16 If the answer is "no" I would glue my ass to the chair and write a good solution Feb 09 05:00:00 "tolerate that can of" -> "tolerate that kind of" Feb 09 05:00:58 I see your point, yet if I keep an eye on support library and changes on that particular class(s), dont you think its better than using the 3rd party lib on github just to remove that annoying shifting mode? Feb 09 05:03:58 Honestly, unless the 3rd party library from github is poorly written, I would use it instead of using reflection Feb 09 05:04:31 If it has minor bugs you can fix and contribute them. You don't even have to sweat to write code from scratch. Feb 09 05:05:19 That's me, anyway. Feb 09 05:05:39 There are no rules sculpted in stone Feb 09 05:08:14 i hear ya Feb 09 07:12:01 hi guys Feb 09 07:12:12 i get this error Feb 09 07:12:14 http://picpaste.com/error10-Mo5nnpz3.png Feb 09 07:12:21 what should i do ? Feb 09 07:12:57 anyone here ? Feb 09 07:14:44 no, come back tomorrow? Feb 09 07:15:38 why? Feb 09 07:16:45 gradle guys are slackers, they went to bed already ... Feb 09 07:17:14 heh, teasing Feb 09 07:17:38 was hoping someone who knew might jump in faster ☺️ Feb 09 07:19:25 do you have those build tools installed? (naive guessl Feb 09 07:20:53 linuxlove: path to git.exe is not valid Feb 09 07:21:05 is error message Feb 09 07:21:06 :) Feb 09 07:21:12 how can i fix this? Feb 09 07:21:56 fix git path Feb 09 07:22:35 ahhhhh..... Feb 09 07:22:48 * capella didn't spot that Feb 09 07:25:09 i dont know where is git.exe located Feb 09 07:27:08 i dont know even git is installed or not Feb 09 07:27:41 hence, your problem Feb 09 07:28:20 i am remote to another pc Feb 09 07:28:27 i have ubuntu Feb 09 07:28:39 that system is windows Feb 09 07:31:57 ? who manages the remote? Feb 09 07:35:14 linuxlove: PATH mechanism is the same on linux and windows, so “I'm using linux” is not an excuse Feb 09 07:35:33 hey guys Feb 09 07:35:51 i have android { Feb 09 07:35:51 compileSdkVersion 23 Feb 09 07:35:51 buildToolsVersion '23.0.2' Feb 09 07:35:51 } Feb 09 07:36:07 Yah saw that Feb 09 07:36:45 and in app/build gradle Feb 09 07:36:57 it is android { Feb 09 07:36:57 compileSdkVersion 17 Feb 09 07:36:57 buildToolsVersion "21.1.2" Feb 09 07:37:20 i should change that ? Feb 09 07:38:41 han? Feb 09 08:50:23 Hi ... If I want 2 full activities run split screen at the same time (while also interacting with each other) .. I thought of using Fragments .. So how do I start? Do I need one "main" acitity which loads a layout file where 2 other fragments are placed above each other.. and both fragments are actually just the activities (i already created separately) but now extend Fragment class instead Feb 09 08:50:23 of Activity class? (changing onCreate to onActivityCreated etc.) Feb 09 08:51:51 or does anyone know a good example/tutorial somewhere? I can only find examples using some list view connected to some detailActivity .. like a news article app layout Feb 09 08:55:30 you want one Activity split into 2 parts? Feb 09 08:55:52 no .. I have 2 activities ... I want them active at the same time Feb 09 08:56:02 "split-screen" .. vertically Feb 09 08:56:35 activity is a screen. technically you want 1 screen divided into 2 parts Feb 09 08:56:46 I guess .. Feb 09 08:56:52 i'd do 1 activity with 2 fragments Feb 09 08:56:58 okay Feb 09 08:57:16 so youd need to change a bit to 'convert' those activities into fragments Feb 09 08:57:25 ah yeah Feb 09 08:58:07 one activity is a camera/opengl (augmented reality) view ... other activity is a sort of mapview Feb 09 09:00:09 how common is it to extend the Application class? Feb 09 09:10:46 mniip: Rather. Feb 09 09:13:03 quite common for at least not-small projects Feb 09 09:18:34 Hi all, I use a RippleDrawable in code, which works great. But I'm wondering how you can use a Shape with it. Like a RippleShapeDrawable. Any advice? Feb 09 09:33:18 TacticalJoke, are there common mistakes or do's and don't's? Feb 09 09:34:08 Such as what? I don't think subclassing Application is dangerous or anything. Feb 09 09:34:22 Application.onCreate is just a handy place to initialize certain things on a per-process basis. Feb 09 09:34:52 * regan has gotten away with subclassing Application Feb 09 09:36:14 * regan is working on a cable company application, merging a complex billing section into a program guide. Its about 100K lines of code. Feb 09 09:37:08 There is a weird bug that the back button in some fragments sometimes go back to a particular fragment. Feb 09 09:37:27 TacticalJoke, I need some code to be running after an app opens even when it's minimized Feb 09 09:37:40 if I'm correct I need a Service, but Feb 09 09:37:48 starting that service from the Activity seems incorrect Feb 09 09:37:58 * regan mostly uses services for stuff like that. Feb 09 09:38:34 once a fragment gets stuck in the back stack some fragments seem to keep going back to that point from random places. Feb 09 09:39:42 There is like maybe 50 fragments and some get stuck as a point for other ones to come back to instead of where they are supposed to go back to.... Feb 09 09:40:53 any ideas anyone...??? Feb 09 09:40:53 I've trawled through stack overflow trying to dump the contents of the back stack and it happens all the time for the testers but as a dev I can not reproduce it... Feb 09 09:44:30 raoul11: ! Feb 09 09:44:53 * raoul11 thepooshes thepoosh Feb 09 09:44:59 11:44 thepoosh !!! Feb 09 09:45:38 what's up Feb 09 09:48:51 fukin bout with google sign in thepoosh Feb 09 09:49:03 did that last week for a bit Feb 09 09:49:15 it's not that comprehencible Feb 09 09:51:01 i need a tokenid Feb 09 09:52:11 but not sure whats: requestIdToken(String s) Specifies that an ID token for authenticated users is requested. Requesting an ID token requires that the server client ID be specified. Feb 09 10:09:01 so Feb 09 10:09:14 would it be okay to extend Application to launch my custom Service at startup Feb 09 10:09:28 and then provide a handle to it to all Activities that ask Feb 09 11:03:24 Is there a good tutorial for implementing a ContentProvider without using a database? Feb 09 11:03:49 I want to allow in-app searching on Android TV, but everything goes back to haveing a DB for it, whereas I have an API Feb 09 12:38:47 With Intent.createChooser, how can I send data to an app so that not the main activity, but some other one is launched? Feb 09 12:39:24 does android have an interface for (or something similar to) openssl BIOs? Feb 09 13:32:53 see javax.net.ssl...? Feb 09 13:33:11 If you have a drawable inside an .aar. Can you access it normal in a layout xml file? or do you need to setup a namespace for it? Feb 09 13:37:08 webczat, I don't see references to BIO Feb 09 13:37:39 mniip: does it have to be called bio? you asked for "something similar". what features do you need? Feb 09 13:38:34 I want to use an SSL library as an encoding layer Feb 09 13:38:55 i.e let the library do all the hard work, but manage the data transport myself Feb 09 13:39:04 mniip: SSLEngine Feb 09 13:39:14 see javax.net.ssl.SSLEngine Feb 09 13:40:11 ah ha Feb 09 13:40:17 that looks like what I want Feb 09 13:40:34 thanks Feb 09 13:43:04 another question: startService *schedules* a service to be started, right? Feb 09 13:43:20 can I actually launch it inline? Feb 09 13:44:17 no Feb 09 13:44:27 mniip: from what i understand, no you cannot unless you use it as a normal class without the whole service framework. Feb 09 13:44:43 mniip: it is all asynchronous by nature. Feb 09 13:45:13 hmm Feb 09 13:45:15 especially that service could be out of process in another app Feb 09 13:46:48 in my app, the activity makes no sense without the service, so I'd really like to have the service start before any events are processed by the acttivity Feb 09 13:47:07 because I don't like the idea of having 'if(service isn't started){ignore event}' all over the place Feb 09 13:50:24 This is why you have bound services. Feb 09 13:50:53 Mavrik: but isn't binding also asynchronous? Feb 09 13:51:11 you get a notification but Feb 09 13:51:13 Yes, it is, but you can't get around that. Feb 09 13:51:26 It does pin the service to your application so other strange stuff doesn't happen. Feb 09 13:52:12 but this service is probably in the same app? Feb 09 13:52:20 it is Feb 09 13:52:40 I plan on interacting with it via an object reference Feb 09 13:53:09 not sure about the binder stuff, it sounds like it does marshalling? Feb 09 13:53:11 if object reference then you definitey should bind Feb 09 13:53:40 it probably does. not sure if it optimizes the case where we are in sam vm Feb 09 13:54:28 No it doesn't. Feb 09 13:54:38 The FIRST paragraph of the three options talks about it :P Feb 09 13:55:11 well then that's a no-go Feb 09 13:55:28 the first paragraph of what? Feb 09 13:55:46 First paragraph of the bound services documentation: https://developer.android.com/guide/components/bound-services.html Feb 09 13:55:55 The first thing you check out when talking about new stuff, right_ Feb 09 13:56:06 "Extending a Binder Class" Feb 09 13:56:26 100 arrays of 1000 strings is not something I'd like to marshal Feb 09 13:56:51 why not? Feb 09 13:57:01 think big! Feb 09 13:57:04 Because it would consume a hilarious amount of memory Feb 09 13:57:17 it would consume an unacceptable amount of time Feb 09 13:57:21 in the best case it is empty strings, that should not be that bd Feb 09 13:57:22 +a Feb 09 13:58:32 *shrug* Feb 09 13:58:37 :p Feb 09 13:58:38 That's what windowing access is for. Feb 09 14:03:03 who needs unmarshalling Feb 09 14:03:08 just show the API result to the user raw Feb 09 14:03:11 performance++ Feb 09 14:06:36 Interesting issue, what's the MIME type for food? Feb 09 14:07:08 for food? lol Feb 09 14:07:18 food/chicken lol Feb 09 14:07:29 SUGGEST_COLUMN_CONTENT_TYPE is a mandatory field, so yeah I need to specify the MIME type for food Feb 09 14:08:07 hi Feb 09 14:08:12 hey Feb 09 14:09:42 CyberJacob, i have a problem in android studio after import my project Feb 09 14:10:04 compile 'com.adobe.creativesdk.foundation:auth:0.9.1186' Feb 09 14:10:06 compile 'com.adobe.creativesdk:image:4.8.3' Feb 09 14:10:17 i added this Feb 09 14:10:25 but i get this error Feb 09 14:10:38 Error:(51, 13) Failed to resolve: com.adobe.creativesdk.foundation:auth: Feb 09 14:10:49 how can i fix this Feb 09 14:11:04 where is com.adobe.creativesdk.foundation coming from Feb 09 14:11:31 in app/gradle Feb 09 14:11:45 dependencies Feb 09 14:12:18 it is not what he asked :) Feb 09 14:12:35 CyberJacob, application/atom-stream :p Feb 09 14:12:44 but dependencies added this way are downloaded from repositories. so Feb 09 14:12:49 if I were intending to be serious I'd use text/plain probably Feb 09 14:13:09 because your food is probably a piece of text? Feb 09 14:13:24 mniip: nope, it's a thing that can be ordered and delivered Feb 09 14:13:25 * webczat eats a piece of text Feb 09 14:13:50 huh Feb 09 14:13:55 i couldnt understand what you said Feb 09 14:14:25 mniip: I'm adding search results to an app that lets you order food Feb 09 14:14:26 aren't mimes supposed to be descriptions of a block of bytes? Feb 09 14:14:41 CyberJacob, what do you mean ? Feb 09 14:14:58 let me see you a pic Feb 09 14:15:09 linuxlove: I said: dependencies added to gradle are usually downloaded from a remote internet repository. if you have a library jar in lib/ then I believe you do not need to add them, unless I am wrong? Feb 09 14:15:30 linuxlove: adding those lines to your gradle is telling the compiler to get the source code with the namespace com.adobe.creativesdk.foundation and include it in the build Feb 09 14:15:34 like, it'd be pointless to assign mime types to arbitrary objects, it only makes sense for a block of otherwise unknown data Feb 09 14:15:53 mniip: I'd agree with you there, but it's a mandatory field... Feb 09 14:16:01 probably gonna use the app namespace, it makes the most sense Feb 09 14:16:02 a mandatory field in what Feb 09 14:16:16 CyberJacob: application/octet-stream? or some other generic thing? search for some generic mime types Feb 09 14:16:41 "Column name for suggestions cursor. Optional. If your content is media type, you should provide this column so search app could understand more about your content. The data in the column must specify the MIME type of the content." Feb 09 14:16:51 what are your search results? Feb 09 14:16:53 mniip: https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_CONTENT_TYPE Feb 09 14:17:20 are your search results pieces of text? Feb 09 14:17:24 or images? Feb 09 14:17:33 they have text to describe them, and images of them Feb 09 14:18:10 the search is by text? Feb 09 14:18:25 yes Feb 09 14:18:41 Is there some way I can get the icon and name of an app that I have the package name to, that is not yet installed? For installed apps, I can do packageManager.resolveActivity(launchIntentForPackage) to get those infos. Feb 09 14:18:42 then text/plain is an option Feb 09 14:18:50 in addition to the ever so generic octet-stream Feb 09 14:26:58 I'm not quite sure I understand the usage of Intent.CATEGORY_ALTERNATIVE based on the documentation. Currently I'm using it to not have stuff like Skype try to handle my action_send with a very specific mimeType. Feb 09 14:28:07 (Because skype accepts */* mimetypes, meaning it also accepts something like "application/only-shit-applications-accept-this" Feb 09 14:33:22 Does anyone know how to show a snackbar atop a supportmapfragment? I tried Snackbar.make(fragment.getView(), ..., ...).show() but it still doesn't seem to show or do anything. Feb 09 14:34:19 try getActivity().getView(). Feb 09 14:35:32 Wintereise, fragment is not a view, snackbar wants a visible view Feb 09 14:36:01 check the doc, it crawls back up to decorview if needed Feb 09 14:36:10 adq: I tried passing it the root view as well -- but I think the fragment actually is "at the top" and thus you can't see the snackbar Feb 09 14:36:21 ah then you might fix it with elevation Feb 09 14:36:29 How do I assign elevation to the snackbar Feb 09 14:36:29 iirc default elevation of snack is like 16dp Feb 09 14:36:35 search for it Feb 09 14:37:10 or do the contrary, fix the elevation of other components to have your snack above them Feb 09 14:37:19 h8 it they havnt added support for elevation on preloli Feb 09 14:37:24 I did, but mostly drawing blanks. Feb 09 14:37:31 materialdesgin my a$$ Feb 09 14:38:27 If I want to open an app in the playstore, I should use Uri.parse("Market://detials?id=" + packageName), but I need to surround that with try and catch because if the playstore is not installed it crashes, in that case I should do Uri.parse("https//play.google.com/store./apps/details?id=" + packageName);. But that also opens the playstore if it's installed. Feb 09 14:38:33 > Snackbars appear above most elements on screen, and they are equal in elevation to the floating action button. However, they are lower in elevation than dialogs, bottom sheets, and navigation drawers. Feb 09 14:38:39 So why should I even use the first Uri at all? Feb 09 14:38:40 My root is a NavigationLayout Feb 09 14:38:51 *DrawerLayout Feb 09 14:39:04 So hm Feb 09 14:39:06 Bizzare Feb 09 14:39:49 I found the fragment.getView() hack at https://github.com/tananaev/steps-navigation/blob/master/app/src/main/java/com/tananaev/stepsnavigation/MapsActivity.java <-- here, but that doesn't seem to work either Feb 09 14:39:51 it does Syzygy ? it should open up the chooser for which app u want to open that url with Feb 09 14:40:54 raoul11, well, I already have a chooser with several apps that I want to open i want to open in the playstore if none of them is installed, maybe that's interfering. Feb 09 14:42:33 The only difference is that one displays "Google Play Store" and the other one "Play Store". Feb 09 14:45:20 It doesn't look like you can set elevation on the snackbar Feb 09 14:45:21 Lame Feb 09 14:46:06 raoul11, looks like this if i try to open it via url: https://goo.gl/photos/9u3w67yM87fhafRBA Feb 09 14:46:42 Obviously I'm still looking for a way to add the correct app icon and name. Feb 09 14:47:40 so you're actually directing to other apps on the playstore? Feb 09 14:48:12 yes. Feb 09 14:48:24 (or to the app directly if it's already installed) Feb 09 14:48:36 (chooser if several are installed) Feb 09 14:51:00 if you're only going to deploy your app on the playstore, pretty safe to assume market will be available Feb 09 14:51:09 though i might be wrong here Feb 09 14:51:17 I know, but sideloading is a thing... Feb 09 14:51:30 and since the safe method works just as well, might as well use that. Feb 09 14:52:55 Now I only need a way to find out the name and icon, preferably without sending them over my api or scraping the play store. Feb 09 14:57:17 goodluck with that Syzygy (: Feb 09 14:57:47 Thanks. I guess I'll have to use one of those options :( Feb 09 14:58:39 https://github.com/jaredrummler/GooglePlayScraper Feb 09 15:00:03 i added this maven { url "${project.rootDir}/creativesdk-repo/release" } Feb 09 15:00:21 So, I figured it out. Passing fragment.getView() is indeed the right way to do it, but you gotta wait until the fragment itself has a view. It doesn't on onCreate() for example. If you do it after onMapReady (GoogleMap gMap), everything is fine. Feb 09 15:00:24 while a guy said in stack Feb 09 15:00:41 but i still get error Feb 09 15:01:05 Error:(51, 13) Failed to resolve: com.adobe.creativesdk.foundation:auth: Feb 09 15:03:29 Wintereise, pretty sure that fragments have a onViewsCreated() method. Feb 09 15:04:02 onViewCreated() actually Feb 09 15:04:10 Or that Feb 09 15:04:17 which is exactly what you're looking for in this case i guess. Feb 09 15:04:33 yep Feb 09 15:04:34 Thanks Feb 09 15:08:26 Thanks raoul11, I just wish I could just use it with gradle... Feb 09 15:09:18 I've got a couple that have less than two dollars between them. I *still* back them up Feb 09 15:09:19 @#$@ Feb 09 15:12:05 What's that about? Feb 09 15:12:39 Sometimes I don't smack ^wp enough to get to the right window Feb 09 15:13:03 The perils of CLI IRC clients Feb 09 15:13:13 I was trying to illuminate someone on the ills of using bitcoin but keeping only *one* secured copy of one's wallet. Feb 09 15:13:34 Money you can accidentally _delete_ requires special care Feb 09 15:14:15 ...although it's handy when the IRS changes guidelines about taxation and it's easier to just rm the wallet than it is to figure out how the hell you pay back taxes on it Feb 09 15:17:52 How do you explain that to your tax collector? Feb 09 15:19:26 There's nothing to explain. The thing in question doesn't exist and it would be pretty much impossible to say it ever existed Feb 09 15:49:30 Does anyone know if androids Intent.createChooser(...) thingy will use LabeledIntent.getIconResource() or LabeledIntent.loadIcon(...)? Feb 09 15:49:54 so quick question with not an easy answer most likley Feb 09 15:50:15 Is there a way to install an app that will add items to the share menue of certain file types? Feb 09 15:50:29 so share on a pohot and it will share it to my site Feb 09 15:50:55 quick answer actually. yes, that's fairly simple, your app just needs to have an intent filter with the correct mimetype Feb 09 15:51:21 https://developer.android.com/training/sharing/receive.html Feb 09 15:52:01 hello everyone Feb 09 15:53:14 can someone help me with this error message, "cannot resolve icon_0" on this line icon(BitmapDescriptorFactory.fromResource(R.drawable.icon_0))); Feb 09 15:53:41 it seems like icon_0 is not in your drawable folder. Feb 09 15:54:02 I tried importing it by right clicking drawable folder Feb 09 15:54:09 and image asset Feb 09 15:54:17 open your drawable folder and check where it actually is. Feb 09 15:54:22 but It seem to have gone to the minimap folder Feb 09 15:54:25 like, through your filesystem. Feb 09 15:54:38 drag it into your drawable folder. Feb 09 15:55:01 thanks, i'll try it Feb 09 15:55:46 no dragging did not work Feb 09 15:56:02 so where is your drawable now? Feb 09 15:57:39 mipmap folder Feb 09 15:58:29 Syzygy: Thanks.. Feb 09 15:58:42 can you tell me how do I import marker icons and use it in code Feb 09 15:59:00 put it into your drawable folder. Feb 09 15:59:55 Syzygy: My PHP app currently returns results in a JSON format so i should be able to parse that with my app for success or error Feb 09 16:01:59 probably. Feb 09 16:02:11 I cant seem to be able to put it into drawable folder, draging it from explorer to drawable folder in android studio is disabled Feb 09 16:02:57 do it in explorer Feb 09 16:04:01 ok I will try that Feb 09 16:05:06 that seem to work Feb 09 16:05:39 but how do I refer to it on my code on this line .icon(BitmapDescriptorFactory.fromResource(R.drawable.icon_0))); Feb 09 16:06:45 do I need something like @drawable/icon_0.png Feb 09 16:36:40 R.drawable.icon_0 as it shows there will work Feb 09 16:36:57 compiling a well compiled code now I have this: java.lang.IllegalArgumentException: Unknown URL content%3A// Feb 09 16:37:36 Go further down on the stacktrace, you'll see what method actually caused/threw it a couple lines below. Feb 09 16:39:17 content%3A// is a pretty clear clue Feb 09 16:39:22 you urlencoded the entire url Feb 09 16:41:27 uhm Feb 09 16:42:25 Uri.Builder b = new Uri.Builder(); <--- b have content%3A// Feb 09 16:42:26 b.path(PContentProvider.URI.toString()); <--- PContentProvider.URI: content:// Feb 09 16:43:32 @wintereise thanks Feb 09 16:44:10 but it threw an error saying illegal start of expression on next line Feb 09 16:44:36 Syntax/parse error, check your code. Feb 09 16:46:28 doing that now Feb 09 16:47:12 thanks it worked Feb 09 16:47:32 thank you very much @wintereise Feb 09 16:48:05 now I need help with another question :D Feb 09 16:48:24 Good to know that it worked :) Feb 09 16:48:52 yes it was syntax error Feb 09 16:49:40 now that I have markers displaying, how can I have different sizes of icons displayed for different size of user screens Feb 09 16:50:33 on google maps Feb 09 16:50:45 Read https://developer.android.com/training/multiscreen/index.html Feb 09 16:51:54 thanks a lot Feb 09 17:21:07 how badly can a poorly designed layout can effect memory usage? Feb 09 17:21:23 pretty badly Feb 09 17:21:40 but you have to get quite poorly designed layout before you get there Feb 09 17:21:51 fortunately, Android Studio has tools to help you see what’s eating memory Feb 09 17:22:02 so you don’t go guessing at ‘Maybe this is my problem” Feb 09 17:22:26 i designed a layout which basically consumes 100 mb memory - http://pastebin.com/KXD4Eqq2 Feb 09 17:22:33 did you profile it Feb 09 17:22:42 xml? Feb 09 17:22:52 no, did you run the memory profiler on your app Feb 09 17:23:00 no Feb 09 17:23:08 do that before you start asking about this Feb 09 17:23:21 ok Feb 09 17:23:53 when you guess as to what’s causing your problems, odds are you end up missing what the actual problem is, and so you spend a lot of time fixing things that aren’t actually improving anything Feb 09 17:24:16 whereas with a profiler, you can point directly to what are the biggest, or easiest to fix, problems, and target them Feb 09 17:26:18 i checked memory usage in logcat it showed 120 mb usage when i used this layout, and 8 mb with empty linear layout. and the images used in this consume only 200 kb, so i was thinking xml might be the reason. Feb 09 17:26:29 go be sure Feb 09 17:27:01 although, i have now looked at your layout, and I instantly see 3 nested linearlayouts. Feb 09 17:27:02 that’s bad Feb 09 17:27:30 if you’re nesting linear layouts, that’s a sign that you need a different kind of layout Feb 09 17:28:06 but I’m willing to bet your memory problem is with all the images Feb 09 17:28:29 they consume only 200kb in disk space Feb 09 17:28:35 Your bitmaps use w*h*4 bytes of memory, not whatever size they are compressed on disk Feb 09 17:29:36 A View object doesn't really use any memory Feb 09 17:29:58 what quality are you unpacking your images into? Feb 09 17:30:31 3x nesting LinearLayout isnt problem yet Feb 09 17:30:51 I don't see anything all that bad about the layout, although it's pretty pointless to put layout_weight="1" on an ImageView that you're specifying the width and height explicitly for Feb 09 17:30:59 It's not going to turn around and try to remeasure those Feb 09 17:31:10 what size (width x height) are the images Feb 09 17:31:18 i don’t like nesting them beyond 2 Feb 09 17:31:37 512*512px Feb 09 17:32:03 max size Feb 09 17:32:44 4 * 512 * 512 = 1048576 bytes Feb 09 17:32:55 hmm Feb 09 17:33:38 Ashiren: but the same size worked with my other programs Feb 09 17:33:58 hmm Feb 09 17:34:39 and it still is 1 mb, i am getting excess memory of 100 mb while using this layout Feb 09 17:34:59 My guess is that this is a problem with over-specification Feb 09 17:35:15 watch some of the PerfMatters videos, especially those around images. Feb 09 17:35:27 and around how to use the memory profiling tools Feb 09 17:35:28 Maybe your bitmaps are being scaled because you put them in the wrong folder Feb 09 17:36:04 abhi_: do you only have one version of the image, or do you have different versions for the different buckets? Feb 09 17:36:27 Also very possibly the use of layout_weight="3" is just wrong Feb 09 17:36:29 s73v3r: will definitely watch them, working on profiling Feb 09 17:36:51 s73v3r: different version of images Feb 09 17:37:02 are they sized properly? Feb 09 17:37:03 Android might be doing something very silly when encountering that Feb 09 17:37:27 There's no need to have a weight of 3 on all four of the top-most linearlayouts Feb 09 17:37:39 Dagmar: i was using layout_weight="3" getting grid design Feb 09 17:37:49 why not use a GridLayout? Feb 09 17:37:54 You only need 1 for that Feb 09 17:38:11 abhi__: You've basically told it you want them all to take up three times the usual space Feb 09 17:38:16 Android wont do anything silly when encountering that Feb 09 17:38:16 They're a ratio. Feb 09 17:38:24 s73v3r: i am learning and will try it Feb 09 17:38:43 If you have two elements, one with a weight of 1 and one with a weight of 2, the second will be given twice as much space as the first Feb 09 17:38:50 dig? Feb 09 17:38:51 Dagmar: That might be the mistake let me try it Feb 09 17:40:10 It could be Android's mistake as well... I've noticed that it varies between releases, but things like having multiple widgets that result in an instruction that the same something should be centered _more than once_ practically toggles it back off and _un_-centers it (for example) Feb 09 17:40:44 So basically, the fewer layout instructions the better, for lots of reasons Feb 09 17:43:29 Tehse drawables shouldn't take up that much Feb 09 17:44:58 abhi__: You're actually using drawble-mdpi through drawable-xxxhdpi for these images, right? Feb 09 17:46:14 At 48dpx48dp, this is basically 12 icons Feb 09 17:46:35 If they were to consume significant amounts of RAM, my Nova setup would make a phone burst into flames Feb 09 17:46:53 Dagmar: I have specified different imgages in different drawables, according to their resolution Feb 09 17:47:31 Yeah, so... drawable-mdpi being 48px by 48px and xxxhdpi (if you bothered) being 192px by 192px, yes? Feb 09 17:47:32 Bet you that's a no Feb 09 17:48:42 It wouldn't surprise me. Some graphic arts people get kind of crazy ideas about DPI sometimes Feb 09 17:49:48 I'm sure if Android did something weird like loading object code into a view because of the onClick I'd have heard about it by now (although I never ever do it that way) Feb 09 17:50:56 Dagmar: No Feb 09 17:51:07 What size did you make these images? Feb 09 17:51:35 for xxxhdpi its 512px by 512px Feb 09 17:51:47 There's a specific ratio for pixel density, man. mdpi displays are 1 dp to 1 pixel. xxxhpi (the ooh-la-la fanciest) use 4 pixels per dp Feb 09 17:51:56 Yeah that's insanely too large Feb 09 17:52:17 You need an image that's the dp size, multiplied by the density ratio... Feb 09 17:52:37 1 - mdpi, 1.5 hdpi, 2 for xhdpi, 3 for xxhdpi, and 4 for xxxhdpi Feb 09 17:53:00 Anything bigger is just a waste of resources unless you expect the images to be scaled Feb 09 17:53:29 It's probably not all that's going off the rails here, but it's definitely an error Feb 09 17:54:03 Dagmar: i will scale the image size down Feb 09 18:11:16 Hi everyone, i'm considering moving away from firebase, any suggestions? Feb 09 18:11:28 backendless? Feb 09 18:11:31 your own server? Feb 09 18:11:33 GCP Feb 09 18:11:45 it’s kinda hard to suggest something without knowing why you’re moving Feb 09 18:11:54 Oh i'll tell you why. Feb 09 18:12:08 hi Feb 09 18:12:23 i want to call a fragment from another fragment Feb 09 18:12:37 so how to do it? Feb 09 18:12:43 go through the activity Feb 09 18:13:16 I need to be able to run reports and more complex queries, it seems the only way to get from a firebase realtime database is either: Daily backup, or GAE service that listens continuously to firebase nodes (expensive) Feb 09 18:13:21 Dagmar s73v3r scaling down images worked. It drastically brought down the memory usage. but what might be the reason for the increase usage of memory even when it needed to be scaled down. Feb 09 18:13:46 s73v3r we can't do it in a fragment itself? Feb 09 18:14:02 sub_zero: it’s a pretty bad idea to do so Feb 09 18:14:18 fragments are supposed to be self-contained, independent modules Feb 09 18:17:34 s73v3r but its working ,the main problem is the new fragment is not loading on the complete space taken by the old fragment,its not covering the space acquired by the button of old fragment Feb 09 18:18:00 yes, you can make direct fragment to fragment communication work. doesn’t stop it from being a terrible idea Feb 09 18:18:35 and if your fragment is not laying out properly, that’s likely a problem with your activity’s layout Feb 09 18:19:05 s73v3r: if I had to say the one functionality I really liked about FB, is that any CRUD that happen offline, still reflect changes in the app. Does that functionality exists in any other lib? Feb 09 18:19:19 but the button is on fragment not on activity Feb 09 18:19:35 sub_zero: so? The activity is the one that switches fragments Feb 09 18:19:45 parco: if it doesn’t, you can code that in yourself Feb 09 18:19:56 is there any solution for it? Feb 09 18:20:07 That sounds complicated and unrealiable, wouldn't you sy? Feb 09 18:20:10 no Feb 09 18:20:20 sub_zero: the solution is to route communications through the activity Feb 09 18:20:23 fragment is not a view Feb 09 18:20:39 oh ok Feb 09 18:20:44 https://medium.freecodecamp.com/material-design-and-the-mystery-meat-navigation-problem-65425fb5b52e#.qucgz9dxl so true Feb 09 18:21:16 so tired of this designer hype while things are crippled with bugs and where those UI does not even help basic end users Feb 09 18:22:49 adq fragment is not a view? surely doesn't do mvp :D Feb 09 18:23:11 lol 2016 still Qs on fragment to fragment comms Feb 09 18:23:18 https://developer.android.com/reference/android/support/v4/app/Fragment.html there is a proof Feb 09 18:23:26 adq, don't you feel users are becoming more familiar with such icons that "mystery meat" no longer applies? Feb 09 18:23:27 it does not extend any view Feb 09 18:23:49 parco, i don't know you would need a gigantic international survey Feb 09 18:23:51 adq of course, its considered part of the v in mvp though Feb 09 18:24:25 g00s, for me it's like saying an activity is a view Feb 09 18:24:29 non sense Feb 09 18:24:41 but i don't mind anyway, since i'm used to it now Feb 09 18:24:55 lolcycle is still something obnoxious https://github.com/xxv/android-lifecycle Feb 09 18:26:10 parco, around me i saw basic users having trouble to even understand the "do not disturb" icon in the statusbar Feb 09 18:26:20 they did not get why no sound anymore lol Feb 09 18:26:54 but my personal experience cannot reflect a global ones, also it hihgly varies across countries and education level of ppl Feb 09 18:26:58 it's too complicated Feb 09 18:27:06 Sounds like hamburger icon + nav drawer for an older audience, bottom nav bar for the trendy kids Feb 09 18:27:20 Make it an option, bam donezo Feb 09 18:27:25 but even kids who never saw floppy are used to it for saving Feb 09 18:27:25 that sounds awful Feb 09 18:27:32 making your statement basically void Feb 09 18:27:37 (absurd reasoning) Feb 09 18:27:41 now you have to maintain two different navigation models. No thanks Feb 09 18:27:52 (not your reasonning being absurd, don't be mistaken, absurd like in maths proof) Feb 09 18:28:15 i'm not saying i have a solution or it's easy to solve Feb 09 18:28:26 just that there is too much hype on design atm Feb 09 18:28:43 imagine a book with only a stylistic approach and almost zero meaning Feb 09 18:29:13 but the next release will apply the damn good looks with a more meaningful message Feb 09 18:29:21 ahah keep dreaming :)) Feb 09 18:29:22 stepping stones Feb 09 18:29:28 google repository 43 ... they keep updating the repository but i don't see any new artifacts Feb 09 18:29:38 afk, brb Feb 09 18:30:33 just quickly about bottom nav tho, i remember sawing a heat map of finger press/position Feb 09 18:30:44 this is why a bottom nav makes much sense on a phone factor size Feb 09 18:30:48 mainly Feb 09 18:31:11 it's not about ios having it earlier than other OS or whatever, or the meaning of icons in it (which obviously inherits of the problem we are discussing) Feb 09 18:31:36 i still find google's original reasons for not doing it, to be legit though Feb 09 18:31:42 or because it's hype, why a bottom bar with few icons would even generate hype Feb 09 18:31:44 kinda sucks that nav bar is right below it Feb 09 18:31:45 is a mystery to me Feb 09 18:32:22 what sucks is having the same thing at multiple places Feb 09 18:32:48 except when there is more than n+2 actions to reach it between those 2 "same thing" Feb 09 18:32:56 like burried in a menu in some settings Feb 09 18:33:18 but due to screen space constraints, obviously you have to make compromise, if not "sacrifice" Feb 09 18:33:57 i think they made a good job at enforcing "avoid duplicating actions" Feb 09 18:34:25 still, the nav bar with back + toolbar with back is very confusing for regular users, and does not follow what i just said above Feb 09 18:34:31 (despite, technically, it's different) Feb 09 18:35:05 I agree with that Feb 09 18:35:21 And the “technically, it’s different” part isn’t good for most end users Feb 09 18:36:03 DEATH TO THE HAMBURGER Feb 09 18:36:10 srsly, just killit. Feb 09 18:36:18 maybe they should have never allowed to put "back" in the nav bar, and keep a close app instead Feb 09 18:36:26 and let developers handle the back navigation inside the apps Feb 09 18:36:51 this is very similar to regular computer app flow Feb 09 18:37:09 also this square icon, some ppl might think: "maximize" lol Feb 09 18:37:11 * adq runs Feb 09 18:37:36 u pro hamburger adq ? Feb 09 18:38:03 i'm no pro nor against, i was against the animation of it being covered 95% of time when they recommended to have the drawer above it lol Feb 09 18:38:16 why animate something you hide... is also a mystery to me Feb 09 18:38:38 again, it's a proof of this noxious designer/animation hype on everything Feb 09 18:39:03 MOTION Feb 09 18:39:10 motion of what, you don't see it Feb 09 18:39:27 anyway, i know it's easy to criticize, don't mistake me Feb 09 18:39:39 just discussing about this recent medium article triggered me :)) Feb 09 18:39:57 gonna eat instead Feb 09 18:40:15 plz link Feb 09 18:40:28 whenever i wanna feel bad about myself i go into medium Feb 09 18:40:44 and read neurotic mvp articles Feb 09 18:40:48 you lazy but Feb 09 18:40:48 https://medium.freecodecamp.com/material-design-and-the-mystery-meat-navigation-problem-65425fb5b52e#.qucgz9dxl so true Feb 09 18:41:07 it's moving your finger on your scroll wheel a little Feb 09 18:43:03 adq, doesn't there exists people who's sole job is to design? what are they called... designers? Feb 09 18:43:28 what would you like them to do instead? Feb 09 18:44:15 i don't see what's so bad about the hype... engineers can't keep up with the changes? Feb 09 18:44:42 so it results in a lot of half baked solutions, which are buggy... Feb 09 18:44:52 i like where this article is going Feb 09 18:45:15 gonna bring it up on the next android coders/designers meeting Feb 09 19:20:19 adq raoul11 pretty much everything in that article was written about 20 years ago. wonder why google does things that way Feb 09 19:21:08 hi. I want to apply repeatWhen in an rx chain when a certain intent arrives Feb 09 19:21:25 so repeatWhen coughs up an Observable, how do I combine that with Observable? Feb 09 19:21:31 they even bring up the NN/g study, its basic shit anybody in UI has read before Feb 09 19:21:52 (not poking at the article, just wondering why google UI guys are clueless, or whatever) Feb 09 19:22:56 to this day i think i'm slowed down 500ms or so every time i press the circle, there is some mental process going on like 'ok, wanna go home, wtf is that the circle or square' Feb 09 19:28:51 Redesigning the nav bar really bothered me Feb 09 19:29:04 It made sense for new users before Feb 09 19:37:33 nav bar is ridicolous Feb 09 19:37:43 why are we all hating on the nav bar Feb 09 19:37:53 we drew lots this morning Feb 09 19:37:59 and today is the nav bar’s day Feb 09 19:38:27 is it not an effective way to have many screens while saving on precious real estate? Feb 09 19:38:41 nav bar is awesome Feb 09 19:38:43 i personally think it’s fine Feb 09 19:38:53 it’s 1000x better than the side drawer Feb 09 19:40:18 Nav bar is awesome, but switching from symbols that represented what they did to more asthetically pleasing symbols bothers me Feb 09 19:40:19 https://cdn-images-1.medium.com/max/800/1*qWVdCU42G-lG7eSbZlKM6w.png Feb 09 19:40:20 oh, i was referring to nav bar + side drawer Feb 09 19:40:44 I agree, the newer icons look better, but they’re not as good at doing their job Feb 09 19:41:29 those icons doesnt mean anything Feb 09 19:43:40 Is it a good idea if I try to recover deleted files from the internal storage of an android device using mtpfs? Feb 09 19:43:47 Because mtp is raher slow? Feb 09 19:46:16 That won't work. Feb 09 19:52:50 Mavrik: Yeah, not a good idea, I've seen some people say that its possible to get a raw image of the internal storage by adb and mount it on linux and do recovery on it, would this work or there is no success in it too? Feb 09 19:53:03 wrong channel for data forensic Feb 09 19:53:53 i don't see what's so bad about the hype... engineers can't keep up with the changes? < engineers better be able or they would lose their title lol, but end users.. idk, any abrupt change is really painful for them Feb 09 20:03:58 in onBackPressed() i moveTaskToBack(true) if fragment manager back stack count is 1. then if i resume my app via task list it works fine. but if click apps icon like starting it fresh, it has a blank screen, then i can hit back and get to where it should be Feb 09 20:04:37 any hints? Feb 09 20:07:59 i used to be an android developer then i started playing starcraft Feb 09 20:24:09 http://imgur.com/a/kFo8x YO DAWG Feb 09 20:24:31 lot of stuff related to wear2 happening atm, documentation updated, new support lib (out of beta) Feb 09 20:24:32 etc Feb 09 20:25:53 View v = inflater.inflate(R.layout.item_row_home, parent, false); | why would this line generate NPE errors (onCreateViewHolder) only after a few instantions of the RV? Feb 09 20:26:32 your parent is null? Feb 09 20:26:47 or your inflater, no other things could be null Feb 09 20:26:48 works works works derps Feb 09 20:27:05 Binary XML file line #147: Error inflating class Feb 09 20:27:42 look at the XML Feb 09 20:28:10 Look at the rest of the stack trace Feb 09 20:29:38 trying to generate this error again Feb 09 20:30:46 or it could be instant ruin :)) sometimes it fails at properly reflecting layout changes Feb 09 20:31:06 not using it on this device Feb 09 20:31:17 had outofmemory errors Feb 09 20:31:18 hm guess the differene is whether onCreate gets called Feb 09 20:31:20 and network overload Feb 09 20:31:22 so many lifecycle paths =( Feb 09 20:31:22 oO Feb 09 20:31:37 that's a lot of different errors you have, npe, oom, class except etc Feb 09 20:31:40 pick one please lol Feb 09 20:31:54 am derp testing: switchin like a maniac between activities Feb 09 20:32:01 solved the outofmemory ones Feb 09 20:32:06 and the networking Feb 09 20:33:02 use the allocation tracker for memory, and tools like leakcanary Feb 09 20:33:27 leakcanary? Feb 09 20:33:32 nice Feb 09 20:33:33 especially with rv, context, layoutmanagers, adapter with images, etc there are few things to do to be sure it's done right Feb 09 20:34:06 pretty sure something is leaking Feb 09 20:37:38 take a heap dump and analyze Feb 09 20:39:12 android studio even includes a rudimentary heap analyzer Feb 09 20:43:23 nice. if (!isTaskRoot()) { finish(); return; } in onCreate() seemed to work Feb 09 20:43:46 the lifecycle maze keeps trying to trip me up but i zig and zag Feb 09 20:44:13 Hi Feb 09 20:44:19 I'm using android studio and attached a phone, I wonder if I can access the phone through a window on android studio Feb 09 20:44:38 access the phone in what manner, like remote desktop? use vysor Feb 09 20:46:06 like accessing it with a emulator window, but since I'm connecting a physical device, there is no window to show what's going on on my device Feb 09 20:46:09 pfn: Feb 09 20:47:09 goto 7 Feb 09 20:49:12 goto 9 Feb 09 20:49:46 pfn: Is vysor a chrome extension? Feb 09 20:49:56 yes Feb 09 20:50:52 pfn: That's brilliant, I only thought of opening such a window using some android studio feature Feb 09 20:51:01 pfn: Thanks a lot :) Feb 09 20:57:27 pfn = pifon? Feb 09 20:57:36 long time man :> Feb 09 21:00:31 no Feb 09 21:00:54 pifon is a poseur who tries to pretend to be me Feb 09 21:05:01 oh Feb 09 21:18:56 Does anyone know how to exclude a class from building in Android Studio? I already tried 'sourceSets' but it says it's an undefined method for the build.gradle file. Feb 09 21:21:15 why would you exclude a class file Feb 09 21:22:22 pfn: As it's unfinished and the whole project won't build if it's included but I can't/don't want to delete it. Feb 09 21:22:40 then comment it out Feb 09 21:23:40 you could also write unit tests for it, and execute it piecemeal through those Feb 09 21:26:02 and don't write code that doesn't compile Feb 09 21:26:21 pfn: No way to just exclude the whole class so I don't mess up existing comments in the file? Feb 09 21:26:30 no Feb 09 21:26:36 this is not sustainable cuddylier Feb 09 21:26:38 move it out of the way Feb 09 21:26:49 i could recommand you to use flavor, but not for this particular use case Feb 09 21:26:50 It's part of a git project so it needs to stay Feb 09 21:27:00 rename the extension until you finish working on it Feb 09 22:16:10 hello Feb 09 22:18:48 I am trying to build a FOTA client for our phones, but our system apk is asking for permission to use storage, we use the shared signed in android.mk Feb 09 22:20:10 will try the platform setting, should this do it? With shared we eliminated the IMEI permission request Feb 09 22:24:09 man i hate how adsense uses 1099 mics Feb 09 22:24:10 miscs Feb 09 22:25:41 think im going to owe like 3k to gov cuz i lost some receipts Feb 09 22:25:46 :( Feb 09 22:27:43 you made that much scratch from ads? Feb 09 22:29:05 i only made 18k Feb 09 22:29:28 pretty reasonable amount Feb 09 22:29:54 5k in expenses so far still owe 3k Feb 09 22:30:06 not sure how you can live on 18k lol Feb 09 22:30:10 but they think i can Feb 09 22:31:34 + i steal internet so i cant write that up Feb 09 22:31:36 darn Feb 09 22:32:33 feel bad for all the youtubers Feb 09 22:32:41 that get like a million views Feb 09 22:32:47 a day Feb 09 22:32:54 then they have to pay back like 60k Feb 09 22:32:58 lol Feb 09 22:33:17 if they’re paying 60k, then they made far more than that Feb 09 22:34:46 pretty much Feb 09 22:35:29 god damn I hate Java Feb 09 22:35:46 “This variable might not have been initialized” in the if statement where I’m comparing it to null Feb 09 22:36:05 no shit it might not have been initialized. That’s why i’m checking to see if it was Feb 09 22:36:31 blame lint Feb 09 22:36:43 go a zillion amount of false positive, ok a bit less Feb 09 22:36:47 got* Feb 09 22:37:15 i mean, is there a different way I’m supposed to check if it was initialized or not? Feb 09 22:37:27 and this is the compiler bitching Feb 09 22:38:17 and the only reason it might not be initialized is because i split declaration and assignment, so I could access the variable in a finally block so I could clean it up Feb 09 22:39:39 "uninitialized" is different from *null* Feb 09 22:39:49 hmm yeah, maybe in this case it's expected Feb 09 22:39:58 void foo() { String f; if (f == null) ... // uninitialized } Feb 09 22:40:07 which is illegal Feb 09 22:40:12 yup Feb 09 22:40:31 then your declaration must also initialize it Feb 09 22:41:12 ok, let’s see how this could work, then Feb 09 22:41:21 the variable in question is an HttpURLConnection Feb 09 22:42:00 the constructor takes a new URL, and then opens connection Feb 09 22:42:13 just initialize it to null Feb 09 22:44:36 man at rpm of 15 a million view youtubers make 5475000 a year Feb 09 22:44:41 thats alot of tax Feb 09 22:45:19 they make $5.4 million a year? Feb 09 22:45:25 that’s a lot of revenue Feb 09 22:45:28 graveyard girl does Feb 09 22:45:40 she posts a vid everyday and it gets like 1 mill views Feb 09 22:45:46 so shes prolly making that Feb 09 22:45:47 or close Feb 09 22:46:34 think pewdiepie makes like 15 mill a year from youtube Feb 09 22:47:05 hope he bought a mansion he can claim as an asset Feb 09 22:47:09 lol Feb 09 22:48:28 i wouldn’t waste time worrying about any of them. at those amounts of revenue, they can afford good accountants Feb 09 22:49:48 Based on your responses, your anticipated income tax for 2017 is $2,121,404. In addition, you appear to be subject to an additional Medicare tax of: $47,475. The recommendation below addresses both of these tax obligations. To meet your anticipated tax of $2,168,879 change your current withholding arrangement by claiming 0 allowances plus an additional amount of $278,530 for the balance of 2017. Here’s how: Feb 09 22:50:30 wrong channel Feb 09 22:50:57 again, they can afford good accountants, who are going to make sure they’re not realizing that revenue as income taxes, but rather company taxes Feb 09 22:51:26 is that right? if u make 5mill untaxed u pay 2.1m? Feb 09 22:51:32 wtf Feb 09 22:51:52 seriously dude, drop it Feb 09 22:51:58 you don’t know what you’re talking about Feb 09 22:53:01 but you have to pay federal tax on adsense Feb 09 22:53:13 am i wrong? Feb 09 22:53:19 yes, you have to pay taxes on income/revenue. Feb 09 22:53:28 this is nothing new. Feb 09 22:53:40 this seems rather off topic Feb 09 22:53:46 quite Feb 09 22:54:12 well i figured since it was android related, it would be appropriate Feb 09 22:54:17 now how to implement admob sdk Feb 09 22:54:24 it’s not Feb 09 22:54:24 this is more about android development Feb 09 22:54:25 jk ok im done Feb 09 22:56:15 one of the only places where my ignore is growing Feb 09 22:58:10 but what i mean is Feb 09 22:58:28 nvm Feb 09 22:59:07 i didnt say tax was new, but vendors like leadbolt, flurry, etc withold tax Feb 09 22:59:14 so you dont have to worry about backtaxes Feb 09 22:59:29 but obviously this isnt android topic Feb 09 22:59:30 still not relevant here Feb 09 22:59:43 there's probably a mailing list for the sdk you are trying to use. Feb 09 22:59:44 how is it not? adsense is directly tied in with android sdk Feb 09 22:59:58 it is a separate product sdk Feb 09 23:00:07 wrong Feb 09 23:00:10 heh ok Feb 09 23:00:20 used gradle before? Feb 09 23:00:23 heh Feb 09 23:00:23 regardless, this is not a tax consultancy channel Feb 09 23:00:34 and really, discussing ad networks and taxes has nothing to do with android development Feb 09 23:00:59 i disagree, especially with revenue and assets a big part of android Feb 09 23:01:03 but ok Feb 09 23:01:17 take money out of android, and you have no android Feb 09 23:01:27 that’s business related. Feb 09 23:01:32 the play store is built around money, and saying discussing android tax ettiqutte is off topic is wrong Feb 09 23:01:34 this is development related Feb 09 23:01:41 no, it’s not Feb 09 23:01:57 by that token, HR Benefits would be on topic in this channel too Feb 09 23:02:59 well ill just sum it by saying if you are big into android dev its a good idea to be conscious about the taxing system, etc Feb 09 23:03:06 just so you dont owe Feb 09 23:03:08 money Feb 09 23:03:10 but ok im done Feb 09 23:03:13 ty Feb 09 23:03:54 you've said that about 5 times already. Feb 09 23:03:56 just let it go Feb 09 23:03:56 lots of people are big into android dev, and the taxing is no concern Feb 09 23:04:01 since it's through $dayjob Feb 09 23:06:37 all my own android app dev doesn't generate shit for money :-/ Feb 09 23:33:20 We get HR benefits as independent developers? That doesn't seem to make much sense Feb 09 23:33:38 not everyone is an independent dev here Feb 09 23:34:19 I mean, it could be useful. My boss is a real dick and I'd kinda like to file a complaint with HR about the number of hours he makes me work Feb 09 23:34:40 boundaries Feb 09 23:34:41 set them Feb 09 23:34:49 and some consulting firms offer benefits Feb 09 23:34:58 the joke Feb 09 23:35:04 your head Feb 09 23:35:39 :p Feb 09 23:36:18 pfn: How, precisely do I set those boundaries? =) Feb 09 23:36:38 by pushing back on deadlines, etc. Feb 09 23:36:53 i dunno, his boss is quite a bastard Feb 09 23:37:01 that and insisting on more resources as $work is given to you Feb 09 23:37:12 s73v3r: ^5 Feb 09 23:37:17 managers generally get an idea when you're overloaded, if you keep accepting more work, you'll keep getting more Feb 09 23:37:31 Dude I'm self employed Feb 09 23:37:34 It's a _joke_ Feb 09 23:37:48 ok, I didn't know you're self-employed Feb 09 23:37:52 heh Feb 09 23:39:09 The way that joke hit some of my former co-workers... because they'll ask about how I like my new boss before asking what I'm doing Feb 09 23:40:33 really? I never ask about people's bosses Feb 09 23:40:45 nor do I discuss mine, unless they're a bastard Feb 09 23:41:12 Well, at the last office my boss was a real "piece of work". Feb 09 23:41:52 i guess if i knew a friend went to a new job, I might ask about it along with all the other stuff with the new job Feb 09 23:42:02 I was the guy in the office with 20 years experience, and he had a tendency to treat me like some kind of windows user Feb 09 23:42:28 ...and they were all astonished that I didn't breathe fire and burn his skull off his neck Feb 09 23:46:21 Per example, my partner in crime and I had Heartbleed 100% mitigated by 10:35pm the night it was released. Filed all the paperwork, everything according to prodecure, all I's dotted, all T's crossed. 8:00am comes, we are in meetings with management. Various managers spend an hour running their mouths about what it was. Around 9:30am they ask us, the guys who already took care of it, to explain it. We do, in detail, using small- to medium-sized Feb 09 23:47:16 First words out of my bosses mouth after that: "What do you think we should do next to fix this?" Feb 09 23:47:22 *blinkblink* Feb 09 23:47:40 Later we get chewed out for not notifying him before making a trivial, pre-approved standard change. Feb 09 23:47:49 F**k that pinhead. Feb 09 23:48:14 I didn't have the heart to point out to him that there was an email in his inbox already explaining things Feb 09 23:48:58 To properly acknowledge his contributions would require WMD-level ordinance, so I always just let it slide Feb 09 23:55:46 I tried animating a view using the following AlphaAnimation: `AlphaAnimation animation = new AlphaAnimation(0f, 1f);` and then set the duration and called .startAnimation(animation) on the view Feb 09 23:56:23 For whatever reason, this does not work. However, doing mView.animate().alpha(1).setDuration(500); does work Feb 09 23:56:29 Why may that be? Feb 10 00:35:16 hello, what is "google repository", I have an update of it, but what is? Feb 10 00:37:36 it's where play-services lives Feb 10 00:39:59 oh, ok, thanks :) Feb 10 00:42:12 hey pfn Feb 10 00:42:36 sup flammable stuff Feb 10 00:42:41 :) Feb 10 00:43:40 not a lot Feb 10 00:43:50 same old, same old Feb 10 00:44:27 Indeed, same as it ever was Feb 10 00:46:34 true true Feb 10 00:46:55 pfn: you doing app work atm? Feb 10 00:47:15 I've got a contract with the big S Feb 10 00:49:08 hello Feb 10 00:54:58 Napalm: Sears? Feb 10 00:55:09 Samsung Feb 10 00:55:26 Napalm SDI ? :D Feb 10 00:55:27 pfn google play doesnt live there Feb 10 00:55:30 its a seperate sdk Feb 10 01:09:20 Does anyone know the correct Rx operator to timeout an operation if x amount of time passes without any elements passing through? Feb 10 01:10:02 I know there is the .timeout() operator, however this will continue to timeout items even after the first item. Feb 10 01:10:35 I'd like to timeout the operation if no items are emitted after a specified time, but cancel the timeout if any items are emitted Feb 10 01:14:44 why can't I sendBroadcast(actionString) from inside a push notification received callback... Feb 10 01:15:35 what kind of class is the callback in Feb 10 01:15:37 and intentservice? Feb 10 01:15:42 yes Feb 10 01:15:54 GcmIntentService that is used by OneSignal Feb 10 01:16:08 I think Feb 10 01:17:58 ok nice there's plenty of resources on google on this. So it was the intentservice Feb 10 01:18:58 lets see where this rabbithole leads to. Someone says latest versions require you to use explicit intents because of security etc Feb 10 01:19:03 wtf.. Feb 10 01:26:05 cant even pass a static context Feb 10 01:32:02 If your familiar with Rx please take a look: http://stackoverflow.com/questions/42150045/timeout-if-no-items-are-emitted-after-specified-time Feb 10 01:35:14 just use asynctask Feb 10 01:35:20 rx is crap Feb 10 01:35:31 overrated Feb 10 01:43:18 there's a few different variants of 'timeout', are you sure that's not what you're after? Feb 10 01:44:56 bankai_ What else did you have in mind? I can hack it together by using a simple `.timeout(3, SECONDS)`, then catching the error in .onErrorResumeNext() and checking the size of returned items there before return Observable.empty(). However this is less then ideal. Feb 10 01:45:16 sasser, yes, it does live there Feb 10 01:46:15 and I said play-services Feb 10 01:48:45 is there something like a hand tool to be able to pan inside the editor window? Feb 10 01:50:29 wut Feb 10 01:50:42 Napalm, nice Feb 10 01:52:32 efloid There is exactly that Feb 10 01:52:56 orbyt_: excellent! do you know what the keyboard shortcut is? Feb 10 01:53:57 I'm unsure of a keyboard shortcut for it, however it's the hand icon in the editor window. Im sure you could create a shortcut for it if none exists. Feb 10 01:55:20 hand icon... hand icon... looking .... Feb 10 01:55:53 not finding it... Feb 10 01:57:16 not see it. nor in the edit toobars & menus dialog Feb 10 02:24:06 I noticed the NDK for Windows relied on makefiles and a make.exe. Does Gradle rely on any UNIX tools? **** ENDING LOGGING AT Fri Feb 10 03:00:01 2017