**** BEGIN LOGGING AT Tue Nov 01 03:00:02 2016 Nov 01 03:03:47 Hello everyone. I am having a really weird issue. I have a file with 2 states (in the filename). Either su or su.disabled. I have a method checking if it can find either of these files, and then it it finds them allows the program to continue. The thing is it is able to find it in the enabled state, but not in the disabled one.\ Nov 01 03:04:17 This is the code in question http://pastebin.com/we6kiCAs Nov 01 03:07:31 Nevermind. It was a stupid symlink. Nov 01 04:10:11 g00s, get-scala is an independent effort to improve doc Nov 01 04:10:43 pfn are the android bits they mention your work ? Nov 01 04:16:55 yes Nov 01 04:17:07 congrats :) Nov 01 05:08:32 hey , I have exact problem as this http://stackoverflow.com/questions/24188050/how-to-access-fragments-child-views-inside-fragments-parent-activity , am trying to access fragment's child view , by using the method given with 38 upvotes Nov 01 05:12:36 ok? Nov 01 05:14:49 and it doesn't seem to work , gives me null exception Nov 01 05:15:07 probably trying to set text on a null object Nov 01 05:16:23 http://pastebin.com/rb5M8YXZ Nov 01 05:17:57 yes , that was what i looking for , but couldn't find it Nov 01 05:19:07 fragmenttrasactions are async too Nov 01 05:21:27 and , they are causing the error , they are not allowing to set the text in fragments Nov 01 05:31:35 Sometimes my service restarts on its own under various circumstances , i'm looking for a function which will be invoked before any unintended restart so that i can save preferences ? Nov 01 05:32:49 so , how can i make sure that following actions are performed only after the transcation has completed Nov 01 05:33:20 if you're going to do it like that, use a bundle Nov 01 05:41:38 to state the problem exactly , I want to perform an action once a fragment is loaded . Nov 01 05:41:59 some better or preferred way Nov 01 05:42:37 what kind of action Nov 01 05:43:07 like placing a text on the fragment (taken from database) Nov 01 05:43:16 by using setText Nov 01 05:51:33 you can do a callback, but it's a little hacky Nov 01 05:59:53 bankai_: Sorry for the mention but only you seem to be active here that's why , Sometimes my service restarts on its own under various circumstances , i'm looking for a function which will be invoked before any unintended restart so that i can save preferences ? Nov 01 06:00:41 onDestroy should catch most instances of termination Nov 01 06:09:25 bankai_: no onDestroy is not called when service is restarted by OS but called when i do stopSelf(); or stopService(); if service is STICKY android OS will never stop the service on its own instead it'll temporarly hibernates service for a while and restarts service when enough resources are present so i this procedure onDestroy() is never called but when service restarts a new instance of service is created :\ Nov 01 07:08:32 My RecyclerView has 2 EditText by row; how to put the focus in a given position ? Nov 01 07:29:02 hi hi Nov 01 07:29:26 boker thepoosh Nov 01 07:33:07 raoul11: HAI Nov 01 07:33:27 there is a android fundamentals course starting today in TLV Nov 01 07:33:33 you should go... Nov 01 07:33:48 helloWorld stuff? Nov 01 07:33:51 Hello, I manage a co-worker that is doing a mobile app and she has problems with "Cross-domain Ajax with Cross-Origin Resource Sharing". I tried to understand how to implement this but I couldn't as well. Nov 01 07:33:54 for sure Nov 01 07:34:02 Ran Nachmani is gonna be there Nov 01 07:34:07 really? Nov 01 07:34:11 why wasnt i invited Nov 01 07:34:16 am a big fan Nov 01 07:34:23 it's in their meetup board Nov 01 07:34:43 what's the issue? Nov 01 07:34:59 also, not understanding what you're trying to achieve Nov 01 07:35:14 need to finish integrating heroiclabs api today Nov 01 07:35:29 for leaderboards/multiplayer Nov 01 07:35:44 raoul11: https://scontent-waw1-1.xx.fbcdn.net/v/t1.0-9/14907578_10154656652844591_3590828593888228455_n.jpg?oh=14b94720a1cee72a19c008feddc9a302&oe=58A4DA64 Nov 01 07:37:10 sounds like http://vignette2.wikia.nocookie.net/nonsensopedia/images/f/f7/Czw%C3%B3rka_przy_stole.jpg/revision/20130821170002 Nov 01 07:37:30 a bit more hipsterish Ashiren Nov 01 07:37:34 and its spot on Nov 01 07:38:19 HA Nov 01 07:39:24 http://i0.kym-cdn.com/photos/images/facebook/000/273/548/de2.jpg Nov 01 07:47:56 thepoosh Nov 01 07:48:04 im reading comments on the first roundup Nov 01 07:49:30 some of em are topkek stuff. Nov 01 07:53:05 raoul11: where are you reading? Nov 01 07:53:28 https://www.meetup.com/TLV-Android-Academy/events/231021357/#event-comments-section Nov 01 07:54:52 i really should join this site Nov 01 07:56:37 hello Nov 01 07:56:52 so imported eclipse project to AS Nov 01 07:57:05 but none of the java files were imported Nov 01 07:57:12 what do i need to do ? Nov 01 07:59:40 https://developer.android.com/studio/intro/migrate.html#import-steps Nov 01 08:00:11 from my experience it would be better to create new project and copy java files, res, assets etc. manually Nov 01 08:51:54 raoul11: there is a waiting list of about 150 people Nov 01 08:52:19 thepoosh ill pass, gonna wait till im #1 on your mentoring list Nov 01 08:52:34 you're always #1 on my list <3] Nov 01 08:52:38 <3 Nov 01 08:52:58 that's gay Nov 01 08:53:18 not that there's anything wrong with it* Nov 01 08:53:31 no but you should exchange a kiss now Nov 01 08:53:44 * thepoosh closes his eyes and raises his right leg Nov 01 08:54:01 kissexchange.com Nov 01 08:54:39 raoul11: by the way the organizer is kinda hot Nov 01 08:54:45 britt b? Nov 01 08:54:48 yeah Nov 01 08:55:02 sounds like a proper username in pornhub Nov 01 08:55:03 mostly cute (but that's because I'm old a f) Nov 01 08:55:17 yer younger than i am fuker ): Nov 01 08:55:38 well, you're about to die soon Nov 01 08:57:01 my moto is "live fast, die fast" Nov 01 09:11:44 your motorola is dead? Nov 01 09:12:09 short battery duration Nov 01 09:32:57 moring peeps Nov 01 09:33:04 morning, even Nov 01 09:33:07 lesing Nov 01 09:33:10 :D Nov 01 09:33:15 :) Nov 01 09:33:50 https://www.youtube.com/watch?v=nx5N-4JvVyk Nov 01 09:34:54 Melatonina: so old, always what everyone says Nov 01 09:34:55 :D Nov 01 09:34:59 but always cool Nov 01 09:35:11 I know Nov 01 09:37:20 Napalm: morning pepe Nov 01 09:38:15 thepoosh: morning Nov 01 10:13:55 Hello. I am trying to upload a file to my php script. Currently, i am using a "BitmapToString" function to send it as POST payload. The upload is working but i think i have problems with encoding because i can't open and view the image on the server. Nov 01 10:14:51 https://p.styler2go.de/4657898/ this is my bitmaptostring function in Java Nov 01 10:15:00 what's the size o the image? Nov 01 10:15:07 why not use a file upload? Nov 01 10:15:08 thepoosh, around 31kb Nov 01 10:15:29 thepoosh, no specific reason Nov 01 10:15:35 styler2go: bitmap2string? seriously? Nov 01 10:15:50 Napalm, no i am just trying to make you laugh Nov 01 10:16:04 you're making the blob of the image much larger when making a string out of it Nov 01 10:16:09 seems like a bad idea Nov 01 10:16:17 Ok, will make a file upload then Nov 01 10:16:21 more procesing time also Nov 01 10:16:39 also, when you say "not working" what do you mean? Nov 01 10:16:55 i can't see the uploaded image Nov 01 10:17:09 it's there, it's around 31KB but i can't see it Nov 01 10:17:12 styler2go: http://stackoverflow.com/a/20322851/1056359 Nov 01 10:17:23 https://p.styler2go.de/2583924/ content is like that Nov 01 10:17:31 styler2go: you probably Fed it up with the base64 representation Nov 01 10:18:06 styler2go: looks fine to me Nov 01 10:18:09 its a png file Nov 01 10:18:14 serverside i do urldecode and base64_decode Nov 01 10:18:18 just process it properly Nov 01 10:18:26 but i can't see it Nov 01 10:18:33 use multipart and send a blob Nov 01 10:18:39 like a normal person Nov 01 10:18:42 maybe i hav ea problem in the resizing code Nov 01 10:18:46 i will Nov 01 10:19:31 styler2go: also, I would use a networking library Nov 01 10:19:46 but i am still curios why i can't view the image Nov 01 10:19:50 such as retrofit, OkHttp, Volley etc. Nov 01 10:20:00 styler2go: it was messed up in the transfer Nov 01 10:20:01 you can view the image Nov 01 10:20:08 Why is the title text size much larger in portrait (when there is less space) than in landscape? Nov 01 10:20:10 you can do a hex compare of before and after Nov 01 10:20:23 styler2go: just put header('Content-Type: image/png') before you output the base64_decoded data Nov 01 10:20:29 Melatonina: are you sure it's not you? Nov 01 10:20:46 Napalm, i am opening the file directly Nov 01 10:20:49 thepoosh: me? What do you mean? Nov 01 10:21:13 are you sure that the text size is not determined by you in some layout-land file? Nov 01 10:21:25 Napalm, at least file details shows me the resolution of the image. o well nvm, i will just make the multipart form Nov 01 10:21:45 styler2go: the file is uploaded fine then, its how your outputting it to the browser Nov 01 10:22:05 Napalm, i think the problem is in the resizing progress Nov 01 10:22:27 thepoosh: yes. I don't have any specific layout or anything Nov 01 10:22:45 so it's probably the style differences Nov 01 10:22:48 styler2go: ok, I dont see how that makes a blind bit of different to what you showed Nov 01 10:23:18 Napalm, what if the resizing just writes an empty bitmap.. for example Nov 01 10:24:02 styler2go: sure, but what you showed was text, not an image. Nov 01 10:24:12 thepoosh, does the image NEEDS to be a file in order to upload it with Multipart? Nov 01 10:24:19 Melatonina: http://stackoverflow.com/q/28486858/1056359 Nov 01 10:24:25 styler2go: no Nov 01 10:24:35 ok good Nov 01 10:24:58 Napalm, the resize is like that: https://p.styler2go.de/8548278/ but it's probably wrong because i didnt check it yet Nov 01 10:25:41 looks fine to me Nov 01 10:25:46 you would still see an image out of it Nov 01 10:26:02 even if it was blank or screwed up Nov 01 10:26:04 looks like an OOM exception in the making Nov 01 10:26:50 styler2go: see this https://p.styler2go.de/2583924/ is an image, but your viewing it as text Nov 01 10:27:11 Napalm, i know but i tried to open it in image viewer Nov 01 10:27:19 https://p.styler2go.de/526123/ Nov 01 10:27:22 it's just black Nov 01 10:27:37 right, you never said that Nov 01 10:27:52 styler2go: what is the resolution of the image, and what is its filesize? Nov 01 10:27:53 https://p.styler2go.de/3776245/ i think it's just a transparent 1280x1280 png Nov 01 10:28:01 31MB and 1280c1280 Nov 01 10:28:12 you mean 31Kb Nov 01 10:28:14 lol Nov 01 10:28:15 oups Nov 01 10:28:18 yeah^^ Nov 01 10:28:25 yea, its probably blank Nov 01 10:28:38 so i made some mistake in the rsizing humm Nov 01 10:29:38 styler2go: i see your problem Nov 01 10:30:10 styler2go: float ratio = (float)width / (float)height; Nov 01 10:31:06 but the calculation of the new height is correctly? Nov 01 10:32:44 styler2go: what are you trying to do there? Nov 01 10:32:46 thepoosh, the link you showed me. The MultipartEntity. Where is this from? Nov 01 10:33:03 Napalm, resize the image to a width of 1280 but keep the ratio Nov 01 10:33:09 styler2go: do not use that code, its ApacheHttpClient which is just fail Nov 01 10:33:21 Yeah. that's what i suspected Nov 01 10:33:44 I am using java.net.HttpURLConnection currently Nov 01 10:34:32 styler2go: int neheight = (int)(1280f * ((float)height / (float)width)); Nov 01 10:34:38 newheight Nov 01 10:34:59 you can do it with HttpURLConnection if you want Nov 01 10:35:13 so.. i already send it in the correct way? Nov 01 10:35:22 then what's the problem with how i send it :/ Nov 01 10:35:23 styler2go: probably not Nov 01 10:35:50 https://p.styler2go.de/7172241/ Nov 01 10:36:03 that's the current part for the POST data Nov 01 10:36:34 because its non-standard, meaning shit on the net might fuck it up.. plus more and other things that are too many for me to bother with Nov 01 10:36:59 styler2go: your sending this to PHP right? Nov 01 10:37:10 yes Nov 01 10:37:19 styler2go: so php supports file uploads Nov 01 10:37:27 yes Nov 01 10:37:34 styler2go: https://secure.php.net/manual/en/reserved.variables.files.php Nov 01 10:37:49 so send the data right, and you can take advantage of that Nov 01 10:37:50 but it's not a file right? it's a bitmap in my program because i resized it Nov 01 10:38:26 Napalm, but the problem is how should i send the "data right"? Nov 01 10:38:30 styler2go: what? what do you think makes it a file Nov 01 10:38:30 lol Nov 01 10:39:12 a "file" is an object on a storage which is not a dir? Nov 01 10:39:54 styler2go: your sending a file ok Nov 01 10:40:20 styler2go: pastebin your entire function that handles your post Nov 01 10:43:22 Napalm, it's a pretty basic AsynTask with HttpURLConnection Nov 01 10:44:59 I presume I can nest try/catches? Nov 01 10:45:18 https://p.styler2go.de/3850708/ Nov 01 10:45:19 and if the inner try gets an exception the outer will continue execution Nov 01 10:46:49 so many issues with this Nov 01 10:47:32 styler2go: grab https://square.github.io/okhttp/ and make your life easier Nov 01 10:47:38 Napalm, it's working like a charm Nov 01 10:48:30 Napalm, will check that out, thank you Nov 01 10:48:32 styler2go: sure until it fails Nov 01 10:58:23 raoul11: can I tell you something Nov 01 10:58:29 styler2go: http://pastebin.com/2sGZSJKi Nov 01 10:58:29 only you'll understand? Nov 01 10:58:40 styler2go: that basically does what you want Nov 01 10:59:05 and itself already handles the background work? Nov 01 11:00:08 styler2go: you would want to do this in your background task, because you do image resizing and other things that take time Nov 01 11:00:33 ah yeah. so OkHTTP doesn't automatically create a background task for network stuff? Nov 01 11:01:31 styler2go: well it can, read the docs, but there is no point since you already need a background task to do your bitmap stuff Nov 01 11:01:47 Ok, thanks Napalm Nov 01 11:01:54 styler2go: that is the difference between execute and enqueue Nov 01 11:07:46 hi Nov 01 11:08:30 hi hi Nov 01 11:08:32 i am trying to install Emulator Acelerator HAXM but can't find Nov 01 11:08:38 where is Extra located? Nov 01 11:08:53 i am following this https://www.youtube.com/watch?v=IirnGaWBTso Nov 01 11:09:23 Akuw: without watching the video, just open the download manager and install whatever you want Nov 01 11:10:25 thanks man Nov 01 11:12:00 Akuw: then you will find those in the /sdk/extras folder Nov 01 11:12:27 i used Launch Standalone SDK Manager Nov 01 11:12:37 installing HAXM now Nov 01 11:14:27 why in the AVD manager, does API level 24 still show as null rathe than Nougat? Nov 01 11:47:32 I'm using the title bar to display the current path of my file explorer Nov 01 11:47:37 filesystem explorer Nov 01 11:47:57 when the path it too long it get truncated with an ellipsis Nov 01 11:48:13 I'd like the beginning to be truncated, not the end Nov 01 11:48:15 Can I do that? Nov 01 11:50:08 Ok, I should find a way to set android:ellipsize="start" in the title TextView Nov 01 11:55:34 hithere Nov 01 11:55:36 I have app in open alpha channel. I am trying to search on the Play Store using words in Short / Full description , but nothing is found. Is it normal? How can I change it? Nov 01 11:55:44 ie - I am not sure whether alpha/beta (open) can be searched for on Play by words in dsc. Cannot find any information on this https://support.google.com/googleplay/android-developer/answer/3131213 Nov 01 11:56:49 I am trying to build this demo app from the Android Dev summit https://github.com/yigit/dev-summit-architecture-demo but getting the follwing error 'could not find com.android.databinding:library:1.1.' Nov 01 11:56:55 What's wrong? Nov 01 12:01:58 bolovanos, it's normal Nov 01 12:02:43 and play store search has serious issue since it does not allow to find via strict 'expression' Nov 01 12:02:51 but i heard it's intentionnal, sadly Nov 01 12:03:24 adq, hi - it is normal for unreleased (alpha/beta) app, or for new app on play as such ? Nov 01 12:03:39 both Nov 01 12:04:04 on alpha/beta, you give a link, or a google group or a g+ community to your testers anyway Nov 01 12:04:14 they don't even have to search for the app Nov 01 12:05:21 hm, looking into some old code. Instead of setting a image resource via code they have made 3 imageviews and just shows one of them. That got me wondering if there's any performance gain to do that. Feels way smarter to just have 1 image view and just set the resource Nov 01 12:05:34 pihpah, exactly what the error said Nov 01 12:06:07 com.android.databinding:library:1.1. << could be this last dot, or a typo, be sure to include the correct dependency and version Nov 01 12:07:46 Zooklubba, it depends, but maybe they didn't do it for performance but more for convenience Nov 01 12:07:55 like they animate the switching from an imageview to another Nov 01 12:08:46 adq, hm not in that case. But there are a lot of other (what I consider too much) nested views. Like 3-5 relative layouts inside each other. So I think it was to try to save some time. Nov 01 12:09:01 at least in considering the layout, instead of setting up all the rules. but w/e. Nov 01 12:09:14 it really depends, even a textswitcher would use 2 textviews Nov 01 12:09:19 can be a waste sometimes Nov 01 12:10:36 if you're caring about performance, you cannot guess anything and you have to measure and profile everything instead Nov 01 12:10:50 then you will know where (and when) are the bottlenecks Nov 01 12:11:09 adq: Error:Could not find com.android.databinding:library:1.1. Nov 01 12:11:09 Required by: Nov 01 12:11:09 client:app:unspecified Nov 01 12:11:28 In what lifecycle method should a tab be set as selected programmatically? Nov 01 12:11:33 yeah, I did some testing with the previous nesting layouts. And I know there are other more severe bottlenecks to look at before. Getting to those. Nov 01 12:16:52 i am installing HAXM but in status is a message "Not compatible with linux" Nov 01 12:18:51 then i can't use Intel x86 Emulator Accelerator? but that is needed to test my app on Virtual Device Nov 01 12:20:38 Akuw: linux is shit Nov 01 12:21:05 i can do nothing with that answer Nov 01 12:22:50 yes that's right, you can do nothing with linux Nov 01 12:29:38 adq, ok thank you Nov 01 12:30:11 squ, it's KVM on linux Nov 01 12:30:14 not HAXM Nov 01 12:30:26 btw - is there some tool to choose right words for title/dsc in Play listing - I think something was in adwords, but I am not sure Nov 01 12:30:32 adq: teach it to Akuw Nov 01 12:30:39 (oops sorry squ) Nov 01 12:53:05 does BitmapFactory.decodeByteArray automatically knows which image format it gets? Nov 01 12:54:11 Android 4.4 — 26% Nov 01 12:54:11 Android 6.0 — 13% Nov 01 12:54:11 Android 5.1 — 11% Nov 01 12:54:29 styler2go, yes because it expects a raw bitmap Nov 01 12:55:41 but what if i want to load a png Nov 01 12:55:46 Android 4.2 10% Nov 01 12:55:46 Android 4.1 10% Nov 01 12:55:46 Android 5.0 9% Nov 01 12:56:03 styler2go, it checks the header Nov 01 12:56:03 you gotta be kidding me Nov 01 12:56:55 4.1 is api 16 Nov 01 12:57:17 yes Nov 01 12:57:24 squ, why the flood lol Nov 01 12:57:29 <****> 8=100% 10=100% 15=98% 16=97% 17=91% 18=84% 19=81% 21=54% 22=41% 23=19% Nov 01 12:57:34 styler2go, basically all formats have a magic value at the beginning so you can identify them Nov 01 12:57:53 Mavrik, so i can load any image into it? Nov 01 12:58:00 "any"? Nov 01 12:58:04 well Nov 01 12:58:10 starting from api 16, you cover 97% of users, based on the outdated https://developer.android.com/about/dashboards/index.html Nov 01 12:58:11 i am trying to load a png from server and show in ImageView Nov 01 12:58:37 styler2go, yes, any of image formats listed here: https://developer.android.com/guide/appendix/media-formats.html Nov 01 12:58:44 adq: Android 5.1, api 22 = 41% — thats doesn't match my data Nov 01 12:58:52 it's the official data Nov 01 12:58:58 not specific to an app in particular Nov 01 12:59:18 my data was not specific to app Nov 01 12:59:28 ok but it comes from https://developer.android.com/about/dashboards/index.html (already said) Nov 01 12:59:41 you just sum them up, to know from which api you cover what percent of users Nov 01 12:59:42 period. Nov 01 12:59:44 That dashboard is very misleading. Nov 01 12:59:54 yes, this is why i pasted a bot line above Nov 01 13:00:12 5.1 22 21.9% Nov 01 13:00:18 because what matters is how many users you want to cover modulo the availability of api Nov 01 13:00:30 that seems more as truth, not 41% you pasted Nov 01 13:00:36 ... Nov 01 13:00:41 but still far from my data Nov 01 13:00:56 I mean not my obviously, but that data I pasted Nov 01 13:01:16 21.9 + 18.7 ~= 41² Nov 01 13:01:18 4&* Nov 01 13:01:22 omg 41 Nov 01 13:01:30 what Nov 01 13:01:36 squ, where does your data come from? Nov 01 13:01:41 play store Nov 01 13:01:51 download counts Nov 01 13:02:04 i give up Nov 01 13:02:16 idk where they get distribution from, maybe devices sold or manufactured Nov 01 13:02:19 probably both things are right, they are just not hte same thing Nov 01 13:02:54 adq: you pasted api22 = 41%, page you linked says api22 = 21.9% Nov 01 13:02:54 the addition above just illustrated you why min sdk api 22 corresponds to covering api 22 + api 23 which is roughly 41% based on official dashboard Nov 01 13:03:06 i cannot explain it more simply Nov 01 13:03:31 why you sum api 22 + api 23, when you specifically pasted api22 = 41% Nov 01 13:03:43 because anything running on 22 will run on 23 and above too Nov 01 13:03:44 22=41% 23=19% Nov 01 13:03:45 here Nov 01 13:03:48 yes Nov 01 13:03:51 oh Nov 01 13:03:58 that is called cumulative graph Nov 01 13:04:08 it's not a graph Nov 01 13:04:14 well, data Nov 01 13:04:19 it's just the sum (already said, cumulative if you prefer) Nov 01 13:04:28 because what matters is how many users you want to cover modulo the availability of api Nov 01 13:04:44 I've just read your post from the end, never read its beginning :) with 8=100%, wasn't paying attention sorry Nov 01 13:04:51 no worry Nov 01 13:05:39 anyway it doesn't match what I pasted Nov 01 13:05:42 lol Nov 01 13:05:49 probably because they don't share same data Nov 01 13:06:01 yes Nov 01 13:06:16 official page tend to be more optimistic Nov 01 13:06:32 while somewhat hidden playstore downloads are more realistic Nov 01 13:07:24 you said my data was not specific to app Nov 01 13:07:28 yes Nov 01 13:07:37 I did Nov 01 13:07:40 but i have no clue in the dev console how you would get global statistics of the playstore like the one on the dashboard Nov 01 13:07:55 open statistics page Nov 01 13:07:57 this is why i thought you're talking about the stats of one of your app Nov 01 13:08:11 which is a subset of the global stats Nov 01 13:08:25 yup i'm on it Nov 01 13:08:45 do you read text written in capital letters: YOUR APP, ALL APPS IN Nov 01 13:09:07 that second column, ALL APPS, means not specific to your app Nov 01 13:09:15 yes, it's a subset of the category of the app Nov 01 13:09:27 not it is not for your app Nov 01 13:09:34 well, for example: Nov 01 13:09:58 "ALL APPS IN Nov 01 13:09:58 FINANCE" << not all categories which would be maybe similar to dashboard stats Nov 01 13:10:17 it's just all the apps in finance and i have no clue which timeline they use compared to the dashboard too Nov 01 13:10:19 it states what it states Nov 01 13:10:21 this is really misleading Nov 01 13:10:31 because it's obviously not the same set of data Nov 01 13:10:32 it is not misleading Nov 01 13:10:41 well, i mean it is misleading for you Nov 01 13:10:42 think of it as a tag Nov 01 13:10:56 all apps in finance != all apps Nov 01 13:10:57 stats for all apps selected by tag Nov 01 13:10:59 simple as that Nov 01 13:11:09 i took finance, but i could take games or other cat Nov 01 13:11:10 yes, very simple. and it is not specific to your app Nov 01 13:11:20 yes but still a subset of the global set Nov 01 13:11:32 so i can expect deviation, more or less Nov 01 13:11:41 it is global set filtered by tag Nov 01 13:11:56 tell me what procents you have in all apps Nov 01 13:12:18 do they match Android 5.0 9% Nov 01 13:12:25 gonna take an other app, 2 sec, will make a screenshot Nov 01 13:12:36 just tell number for 5.0 Nov 01 13:13:05 http://imgur.com/a/YBomr in music & audio "category" (what you call a tag) Nov 01 13:13:15 so please help ... I am looking at something that extends AppCompacyActivity, yet I am implementing it to a class that only has an extends fragment., it takes a new Dialog and setting this to a fragment is not possible apparently without the extend being appCompact. what is this incompatibility called and how do you handle it ? Nov 01 13:13:28 for 5.0, 8.72% lol Nov 01 13:14:04 versus 11.76% in this cat versus the dashboard percent i'm too lazy to fetch again Nov 01 13:14:25 you forgot to screenshot android version column for all apps Nov 01 13:14:28 :) Nov 01 13:14:47 i don't have that collumn oO Nov 01 13:15:01 on the left Nov 01 13:15:11 <--- Nov 01 13:15:20 i don't have that column Nov 01 13:15:40 okey Nov 01 13:15:56 only percents without corresponding android version column Nov 01 13:16:19 http://imgur.com/a/vCFQo Nov 01 13:16:31 i got 3 columns, i don't have "all apps" column Nov 01 13:17:26 do you see pie chart Nov 01 13:18:05 of course Nov 01 13:18:10 right to it, android version column Nov 01 13:18:15 ---> Nov 01 13:18:23 yup this is why i told you 5.0 is 8.72% Nov 01 13:18:45 because it does not correspond to the same order as on the top 10 column since i truncated the versions (and the download counts) Nov 01 13:18:45 4.01% ? Nov 01 13:18:51 ok Nov 01 13:19:03 what is 4.01% there? Nov 01 13:19:11 and 9.4% Nov 01 13:19:21 android 4.03 & 4.04 Nov 01 13:19:52 9.4% corresponds to android 4.1 Nov 01 13:20:06 probably it is good that Android 6.0 is second place Nov 01 13:20:07 but again, it's a subset Nov 01 13:20:35 you will expect some similiraties or tendencies but in now way it will match the global set Nov 01 13:20:54 we've figured out they fake global stats Nov 01 13:21:32 if you got proof, make a post i will read it Nov 01 13:21:56 just spent 20 minutes doing it Nov 01 13:21:57 if you think they are faking their stats based on a subset from their own data, good luck Nov 01 13:22:50 So the android tool is no longer supported and we use the command line version to create emulators (CI purposes), does anyone know if there's an alternative or supported version in the works? Nov 01 13:23:11 porten, check genymotion Nov 01 13:23:27 they got new stuff with CI and cloud vm i heard Nov 01 13:23:37 (these kind of features + support is not free) Nov 01 13:25:14 I'm not interested in using 3rd party emulators Nov 01 13:55:57 hey , I am trying to override method onCreateAnumation() in my fragment , but it shows resource not found error , and I can't figure out why Nov 01 13:55:58 hi all, i've got a report in my crashlytics about a security exception ("missing INTERNET permission?"), but i'm declaring INTERNET in my manifest. any idea how it could be missing? looks like it's coming from some off brand phones ("YU", "LYF", "Intex") Nov 01 13:56:00 http://pastebin.com/sqNuyhJh Nov 01 13:58:36 thebishop, probably someone just blocked this permission in their rom Nov 01 13:58:57 just handle the case when you don't have this permission to avoid a crash, use run-time permission, etc Nov 01 14:00:15 adq, cool. is there a good way to test that behavior in an emulator? Nov 01 14:00:38 easiest way would simply be to temporarily remove your internet permission from manifest Nov 01 14:00:45 yeah ok Nov 01 14:00:46 adq, thanks Nov 01 14:01:19 Any reason that editor.apply() wouldn't update preferences, where changing to editor.commit() does work? Nov 01 14:01:57 the only difference I can tell is that apply() does in the background where commit() does it on the UI thread Nov 01 14:02:24 I want to perform a specific action when a fragment finishes loading , so onAnimationEnd() would do the job for the fragment Nov 01 14:02:25 ? Nov 01 14:03:49 sdousley, apply is asynchronous, the filesystem might not yet be synced but the memory/cache of sharedpref itself should be Nov 01 14:04:52 adq: how long would syncing the filesystem take? Nov 01 14:05:03 like the sharaed prefs store some default values for this activity Nov 01 14:05:08 so I did the clear Nov 01 14:05:20 closed the activity and reloaded it, and the boxes were prepopulated again. Nov 01 14:05:35 so we're talking like a second or so after it completes, I close the activity, and reopen it Nov 01 14:05:45 which seems like plenty of time (to me) for this to flush properly. Nov 01 14:10:07 Just the same, use commit Nov 01 14:29:56 How can I run a particular test on connected device? ./gradlew connectedCheck would run all tests. Nov 01 14:41:14 Dagmar: yeah, I was going to as that works :) Nov 01 14:41:45 sdousley: out of curiosity, does the apply() ever work? (e.g. after a minute) Nov 01 14:42:08 kbs: hmmm, that I'm not sure on, let me check Nov 01 14:43:24 iirc, there are listeners on the object that (in principle I guess) you can hook into, if you want to be sure things were committed. Nov 01 14:43:53 can't create Empty Activity i got "Selected activity template has a minimun SDK level of 9" but in SDK Platforms i can see API Level 25, 24 and 23 installed Nov 01 14:44:18 25 is Partially Installed Nov 01 14:44:22 * kbs waves - sdousley sorry, arriving at destination here - good luck :) Nov 01 14:46:34 OK, so when I had apply() I must have had something that didn't work, changing back to apply() works fine now. Nov 01 14:51:35 Hello. Help me? I move some class and related resources to a library and now I get "error: package R does not exist". There was a reference to a class with wrong package path in a layout file. I fixed that but still no R for me. What can I do? Nov 01 14:52:27 Melatonina: because those resources aren't in the library Nov 01 14:52:39 or they haven't been generated Nov 01 14:52:42 thay are. I can see them Nov 01 14:52:51 have you generated an R.java Nov 01 14:52:51 Ok. But why aren't they being generated Nov 01 14:53:09 I don't generate R.java. Android Studio does that for me usually Nov 01 14:53:25 Yes it should, and you can see what stuff the R.java has Nov 01 14:53:44 if it doesn't have your resource you want then you don't have the resource in the correct path (even if you do have it) Nov 01 14:55:01 Also is your build target still set to just the app or are you building the library as well? Nov 01 14:55:08 If so the library won't be generating it's R.java Nov 01 14:55:30 the library is referenced by the app Nov 01 14:55:45 Click "Clean Build" and then rebuild. If you interrupt gradle or otherwise crash a build it can get into that state where R doesn't exist and it doesn't notice Nov 01 14:56:13 I did several clean build already Nov 01 14:56:27 I did this procedure many times. This never happened before Nov 01 14:56:45 Melatonina: dunno if you could share your project structure and gradle files but that's really the only way to answer this Nov 01 14:57:06 I'll see what I can do. 1 minute Nov 01 14:59:36 I managed to get output from the build process Nov 01 14:59:51 there is a failure in the build of the library caused by a dependency Nov 01 15:00:11 I must have messed some gradle file with a typo Nov 01 15:00:43 should AlertDialogs persist on rotation Nov 01 15:00:49 ie, should I use a dialogfragment Nov 01 15:01:53 it's weird that the support library does not provide this Nov 01 15:02:46 any help Nov 01 15:03:14 no idea what you asked Nov 01 15:03:28 Is there a way to communicate from the Activity to a subfragment without going through the normal fragment hosting the subfragment? Nov 01 15:03:46 that sounds like you are bypassing encapsulation Nov 01 15:03:48 I update my model from the Activity and then need the UI to refresh for a subfragment Nov 01 15:04:17 The Model is updated asynchronously in the activity and by the time that is done onResume of the subfragment has also passed. Nov 01 15:04:29 The refresh of the subfragment happens in onResume Nov 01 15:04:35 what loaded the model into the subfragment in the first place Nov 01 15:04:49 easy solution, just recreate the fragment Nov 01 15:04:52 I am guessing you passed it in as an argument? Nov 01 15:04:59 The model is held in the application and both Activity and fragments + subfragments have access to it Nov 01 15:05:44 can't create Empty Activity i got "Selected activity template has a minimun SDK level of 9" but in SDK Platforms i can see API Level 25, 24 and 23 installed Nov 01 15:06:39 yiati: I dno't want to sacrifice performance by recreating it Nov 01 15:06:58 yiati: This is the build error: https://gist.github.com/anonymous/c17d1e6eb325e45efdd1b26cf2e8ab1c This is the build.gradle file for commonui: https://gist.github.com/anonymous/b1327bf1405bee62d30f46f1d6086f43 Nov 01 15:07:34 yiati: this is settings.gradle: https://gist.github.com/anonymous/d80d3bb3e91ebd431272cbcf37e95a98 Nov 01 15:07:44 yiati: I can't see the problem Nov 01 15:18:17 missingno: So you think even calling a method in the (normal) fragment from the Activity is bad design? Nov 01 15:26:28 “If you have an iterable that you need to process, using Observable.from will disperse that work up amongst multiple threads for the current scheduler - computation most likely.” Is this true? That’s really cool if it is Nov 01 15:31:58 barq: no? maybe? ideally you'd have a system that broadcasts updates to models in general, and have activity, fragment, and subfragment all listen to that Nov 01 15:32:26 say "return" is the same as "return null" ? Nov 01 15:32:44 * "return;" and "return null;" Nov 01 15:33:16 missingno: I had an observer pattern implemented, but the code was hard to maintain, since often the Activity would send notifications to multiple fragments. Nov 01 15:33:40 Maybe broadcasts wtith specific receivers would be an option. Nov 01 15:41:47 Detach and attach does the trick as well Nov 01 15:43:38 yiati: still there? Nov 01 15:44:17 Melatonina: Sort of :) looks like you need to resolve "Build file 'G:\Development\android\libs\Common UI\commonui\build.gradle' line: 39" Nov 01 15:45:32 yiati: I know that. It seems ok to me. I have that line in lots of modules and lots of projects Nov 01 15:46:57 Melatonina: which library contains that build.gradle file you posted? Nov 01 15:47:52 yiati: the library that does not compile, "commonui", which depends on "common" Nov 01 15:49:30 http://www.theverge.com/2016/11/1/13480840/google-tango-lenovo-phab-2-pro-apps-games-release-date Nov 01 15:49:35 Melatonina: Sounds like "Project with path ':common' could not be found in project ':commonui'." Nov 01 15:49:40 kinda strange the pixels don't have tango Nov 01 15:50:04 Melatonina: Do you need lines 4 and 7 in your settings.gradle? Nov 01 15:50:11 maybe try building without those Nov 01 15:50:30 yiati: as you see :common is in settings.gradle Nov 01 15:50:49 Sure I need them Nov 01 15:51:06 libs are external to the project folder Nov 01 15:51:19 they are shared between all my projects Nov 01 15:55:12 So one of the paths needs to change so that it's pointing to common correctly Nov 01 15:56:12 Also not sure if that space in the path is throwing things off Nov 01 15:56:29 maybe try either getting rid of the space, or using double quotes instead of single quotes Nov 01 15:57:57 hi my main activity is http://kopy.io/dKxIO while i run i get error in the part that i add listview to adapter whats wrong? Nov 01 16:01:46 yiati: I was missing an "import com.gk.commonui.R" Nov 01 16:02:07 Melatonina: nice Nov 01 16:02:17 got it all building? Nov 01 16:02:21 yes Nov 01 16:02:40 Cool, build errors didn't seem to indicate that :P Nov 01 16:02:47 glad you got it though Nov 01 16:03:04 This time I moved a fragment from the top level package of the app to a nested package of a library Nov 01 16:03:19 g00s_: I didn’t realize that Tango was something modular, I expected it to be its own phone a la Ara Nov 01 16:03:42 with Android Studio drag and drop Nov 01 16:03:49 and it didn't work Nov 01 16:03:57 automagically Nov 01 16:04:03 konk3r i think its the sensors for 3d mapping of space, some APIs, could be wrong Nov 01 16:04:06 I don’t think I’d be as excited about it if Johnny Lee wasn’t heading it up. Nov 01 16:04:12 now I need a long pause Nov 01 16:04:19 Yeah, that article definitely made it sound like that. That’s exciting Nov 01 16:07:05 yiati: thanks for looking into my files Nov 01 16:11:06 g00s_: have you seen flutter? ;) Nov 01 16:11:50 gordon_ seen it demod, haven't played with it Nov 01 16:12:37 "Reading the instruction manual for the elephant you’ve just bought." https://twitter.com/fascinatingpics/status/792055983442890752 Nov 01 16:31:05 g00s_: still dont know why they didnt make it native for anroid Nov 01 16:31:08 *android Nov 01 16:34:06 i suspect deep down google doesn't wan't any 'native' android, just life support for dart vm with some hw apis Nov 01 16:35:01 the material design langiage covers all form factors and is android agnostic Nov 01 16:35:21 android is just one possible implementation Nov 01 16:36:09 That matches pretty closely with what Dianne Hackborn has said about Android Nov 01 16:36:14 g00s_: seems like it Nov 01 16:36:30 konk3r: could you ellaborate ? Nov 01 16:37:07 Well when asked about architectural patterns for development she said that Android shouldn’t have anything to do with that, just do whatever java you want on top of their base framework Nov 01 16:38:00 it seems like it would have been much, much easier to accomplish that if the base system was implemented in C/C++, not Java Nov 01 16:38:39 Also the fact that we’re closely tied to a set of complicated lifecycles I think the platform should provide some guidance Nov 01 16:39:52 My service isn't really doing anything (most of the time) but battery drain is quite high. What is a good checklist to go over for troubleshooting battery drain? Nov 01 16:40:16 from the dart presentation, i got the hint that even within google, they are getting tired writing 3 different things for each product feature like gmail web, gmail for android, gmail for ios Nov 01 16:40:16 explodes: I believe there is a battery monitor profiler in AS Nov 01 16:40:25 s73v3r: Oh really now Nov 01 16:40:28 Cool! Nov 01 16:40:41 g00s_: I thought that is why they had that Java -> ObjC compiler Nov 01 16:45:37 s73v3r: they did that but... Nov 01 16:45:53 do you think that code translated by some tool will be good ? ;) Nov 01 16:46:36 it was good enough for them Nov 01 16:46:56 remember, it wasn’t for any UI or system stuff, it was just the logic, models, and business uses Nov 01 16:47:08 They weren’t turning an Activity to a ViewController Nov 01 16:53:00 yes I know Nov 01 16:54:33 my point is, dart isnt popular so it would be better if they make it in different, native language Nov 01 16:54:47 in rust or whatever Nov 01 17:03:21 Hi, I want to play white or maybe brown noise for a long time with changing volume. Should I try to generate or try to loop seamlessly? Or even some wave table? Nov 01 17:03:41 s73v3r: Thanks, it is this tool: https://github.com/google/battery-historian Nov 01 17:03:58 I'd prefer a seamless loop auf audio Nov 01 17:06:17 Ah i figured if I'm smart I can just bake a few sounds and get rid of the loop :) I'll go with that for now Nov 01 17:07:52 gordon_ it isn't popular, but now google has everybody by the %$#$ and could pull what apple did : you want to dev for our now popular platform? dart it is (obj or swift for iOS). at this time we're a captive audience - back then they had to cater more Nov 01 17:09:08 if anything , if this worked well on ios + android at the same time it would be a huge relief for many startups / SMBs / even large enterprises that don't need intimate HW interfacing (Bluetooth, etc) Nov 01 17:11:18 and those 'acme rent-a-car' type things were you don't really want to install an app, but they kinda want a mobile entry point to their services Nov 01 17:12:20 can anyone recommend me a good tutorial to quickly get the hang of contexts and folder structure in android. I'm trying to hack something simple together in android, but always stumble with this. Also don't know where to put my main loop thing to update the ui and trigger some conditions (I doubt I'll need to seperate in to threads, I just pull some gps and play a sound or two) Nov 01 17:12:56 oh, meant to make a questionmark somewhere :) not to be interpreted as a command, just a humble question :) Nov 01 17:12:57 anotheryou sounds like you need to start from the beginning ... Nov 01 17:13:45 g00s_, if it has to be :) yes. I know some java and hacked together 1-2 half apps before though :). Any recommendation? Nov 01 17:15:03 anotheryou: Search youTube for alidenerd's android activity lifecycle. Start there. Nov 01 17:15:07 last time (years ago) I tried to write audio in to a ringbuffer and had to read some C because there was no documentation for low level processing of the audio, hehe. Nov 01 17:15:17 Dagmar, thanks. Nov 01 17:15:18 One big clue you're missing is that you don't put your "main loop" anywhere Nov 01 17:15:30 Everything is dictated by the lifecycle methods Nov 01 17:15:38 oh ok Nov 01 17:15:40 :) Nov 01 17:15:46 I'll check that out Nov 01 17:16:06 Android does the "main loop" for you with a Looper and a Handler Nov 01 17:16:46 damn it AS, VCS integration problem with mercurial, i can add some modules, and some others refuse to be added: 18:16:07 Access is allowed from event dispatch thread only.: Access is allowed from event dispatch thread only. Nov 01 17:16:56 i will have to go CLI Nov 01 17:16:58 ludocode, Right, you just mustn't bloat it with real work so you stay responsive. That's how much I remember :) Nov 01 17:18:10 Largely you are just waiting for _outside events_ Nov 01 17:18:43 ok. I'm now watching the tutorial :) Nov 01 17:19:51 I want to build some augmented reality for audio on speaker. That way it's not really augmented, because it does not just layer on top of reality i your small screen, but actually streams back in to reality :) Nov 01 17:20:33 for now I just want to have virtual waves (some fading noise) running through the coordinates. (just some modulo on the coordinates to the volume of my noise or something) Nov 01 17:21:08 I hope it will be fun when you have multiple phones and stand a bit spread out in space Nov 01 17:25:19 hi Nov 01 17:25:36 what is the best dev environment for NDK development on Linux? Nov 01 17:25:45 k_j: distro? Nov 01 17:25:53 debian Nov 01 17:26:05 (preferable) Nov 01 17:26:08 k_j: I meant "do you mean which distro?" Nov 01 17:26:19 i think he meant IDE Nov 01 17:26:20 What do you mean by "dev environment"? Nov 01 17:26:22 danalbert, I mean IDE in the first place Nov 01 17:26:26 Gotcha Nov 01 17:26:29 Studio probably Nov 01 17:26:35 Studio? Nov 01 17:26:40 Android Studio Nov 01 17:26:42 for linux? never heard of it Nov 01 17:26:43 not much experience with android studio for C++ Nov 01 17:27:01 I'm a vim user, so I probably can't be trusted :) Nov 01 17:27:09 you could rather ask what C++ IDE is good overall Nov 01 17:27:12 I heard of Qt Creator / Eclipse instead, but I am not sure of which is the best Nov 01 17:27:34 Eclipse support for the NDK is deprecated (dead?) Nov 01 17:27:38 i used qt creator for c++ part in my app Nov 01 17:27:45 danalbert, is there a vim-like extention for android studio? Nov 01 17:28:14 ¯\_(ツ)_/¯ Nov 01 17:28:19 haha ok Nov 01 17:28:26 but then again android studio is essential to run and debug app. other C++ IDE for just editing files only Nov 01 17:28:27 I don't actually make apps. I work on the NDK Nov 01 17:28:32 that broken ascii char says more than the real thing Nov 01 17:28:32 wait, how are you working on Android development and not heard of Android Studio? Nov 01 17:28:34 ah Nov 01 17:28:41 my guess is that there is nothing for linux close to visual studio for windows Nov 01 17:28:49 x_X Nov 01 17:28:53 uh Nov 01 17:28:54 KDevelop Nov 01 17:29:00 for android development i mean Nov 01 17:29:03 That's a pretty crap standard to meet Nov 01 17:29:11 VS doesn’t do android development Nov 01 17:29:18 they do on windows Nov 01 17:29:24 huh Nov 01 17:29:35 i’m fairly certain it doesn’t support Java Nov 01 17:29:45 maybe xamarin stuff Nov 01 17:29:52 are you sure? i was under the impression that ms added android-dev support for native apps in their visual studio c++ Nov 01 17:30:03 iirc it's NDK + Xamarin Nov 01 17:30:36 ok, so back to my original question, what ide is best suited for android native app development? Nov 01 17:30:45 Android Studio Nov 01 17:30:56 ok, link? Nov 01 17:31:00 d.android.com Nov 01 17:31:03 ok Nov 01 17:31:06 thx Nov 01 17:31:07 k_j, probably AS, but you can couple it with other ide/editors Nov 01 17:31:25 CLion is more focused on cpp Nov 01 17:31:27 whatever you end up using, you’re gonna need AS anyway, as that has all the tools Nov 01 17:31:34 but usually, vim or emacs would be a good choice on linux Nov 01 17:31:49 what i do NOT want is to take one approach and later fall into workarounds and traps to make the ide work with the ndk Nov 01 17:31:50 Then you'd miss out on IntelliJ Nov 01 17:32:07 i prefer doing the hard job from the beginning if it's coherent and consistent Nov 01 17:32:17 just get started using something Nov 01 17:32:20 just use what you feel confortable with Nov 01 17:32:30 you can switch later Nov 01 17:32:33 and of course, if you never heard or tried android studio, you should because it's officially supported Nov 01 17:32:58 after that being said, we can debate but really that's the core of your concern Nov 01 17:33:11 as a side note, what do you think about using qt creator instead? Nov 01 17:33:17 i would avoid it Nov 01 17:33:22 That's the hard way Nov 01 17:33:27 ok Nov 01 17:33:52 (keep in mind that i ll be working with the ndk) Nov 01 17:33:56 if you like qt creator for editing your files you can still use it Nov 01 17:34:00 Android studio pretty much taught me Java last year Nov 01 17:34:08 you will just end up using AS for things you cannot do with qt, building, debug & stuff Nov 01 17:34:16 i see Nov 01 17:34:19 a lot of things Nov 01 17:34:22 building takes time Nov 01 17:34:26 so what are you doing with the NDK? Nov 01 17:34:35 if qt creator cannot cope with that, then it's a good idea not to use it Nov 01 17:35:02 s73v3r, real time apps, audio streaming, mainly Nov 01 17:35:06 also remember you can build everything from CLI with gradlew Nov 01 17:35:16 you don't need AS, but then you don't have all the features AS brings to you Nov 01 17:35:38 some ppl here are not touching AS with a ten-foot pole and can still develop android apps without major issue Nov 01 17:35:44 ...like elimination of 99% of blisteringly stupid typos Nov 01 17:36:31 The number of curly braces I mismatch on a daily basis without AS's editor is downright alarming Nov 01 17:44:13 interesting, when i read an article on medium it pings their server every second Nov 01 17:44:43 at least this one does https://medium.com/@haarman.niek/async-await-in-android-f0202cf31088 Nov 01 18:02:47 anotheryou: I'm unique Nov 01 18:03:20 does someone here use qpython? Nov 01 18:03:29 Melatonina, I'm not Nov 01 18:04:12 you sure are Melatonina Nov 01 18:04:28 How can he be another me, then? Nov 01 18:05:05 magic? Nov 01 18:07:55 https://www.youtube.com/watch?v=0p_1QSUsbsM Nov 01 18:16:47 TheSchaf: I don't by thanks for mentioning it Nov 01 18:16:56 You always learn something in this channel Nov 01 18:20:23 hey Nov 01 18:20:32 how's the android world? Nov 01 18:23:51 bitkiller mvp, mvvm, or mvvm-c ? Nov 01 18:24:02 well, just received and email about changes in merchant account Nov 01 18:24:22 g00s_, mvcvvmp Nov 01 18:25:02 in fact, mvp-vm Nov 01 18:25:10 that's what i tried last Nov 01 18:25:34 (using data binding api) Nov 01 18:29:53 bitkiller that seems to be the Q android world keeps bringing up in /r/androiddev any how :P Nov 01 18:30:17 the hell is mvvm-c Nov 01 18:30:56 missingno lol, you aren't keeping up! https://www.bignerdranch.com/blog/shades-of-mvvm/ Nov 01 18:31:25 50 shades of mvvm Nov 01 18:34:25 50 shades of android Nov 01 18:35:00 databinding reminds me of jsf Nov 01 18:35:10 which was bad Nov 01 18:42:36 gordon_ have you used mvvm in the context of MS stuff ? Nov 01 18:43:31 on HN a few days ago, BoorishBear commented "And everyone is doing MVVM bindings the way everyone else figured out was wrong in the mid 2000s (using your bindings to do business logic) so it looks like MVP is pulling ahead before the war even starts." Nov 01 18:44:16 i never used mvvm with ms tools, so just wondering if the android incarnation guarantees some kind of flaw Nov 01 18:44:59 For a standard alarm clock app, would the flow be AlarmManager -> Service -> Activity? Nov 01 18:45:10 g00s_, it's pretty easy to misuse it Nov 01 18:45:14 or should I just start my activity from the alarm manager. (The activity has snooze, skip, etc) Nov 01 18:45:27 bitkiller thats OK ... gotta know what you're doing Nov 01 18:46:00 i have some forms, with 6-12 fields Nov 01 18:46:12 I have a question on MVP, what is the advantage of using view interfaces? Nov 01 18:46:23 testability Nov 01 18:46:53 g00s_: you mean wpf ? Nov 01 18:46:56 Okay, that’s what I thought. Is it really just the ability to test without Robolectric? It seems like you could just mock out a view easy enough Nov 01 18:47:01 gordon_ yes Nov 01 18:47:11 yeah, but it was 4 years ago :D Nov 01 18:47:15 your presenter shouldn’t know anything about Android Nov 01 18:47:16 c# 3.0 Nov 01 18:47:23 lol Nov 01 18:47:25 that way you can do regular JVM unit tests, and they go fast Nov 01 18:47:29 s73v3r: I’m more than happy with that Nov 01 18:47:31 or more ? Nov 01 18:48:05 konk3r: you can mock views then Nov 01 18:48:34 gordon_: Haha I mean I’d rather not, I’d definitely prefer to just use junit. I was just curious if that was the full reason or if there was something past that Nov 01 18:48:52 I don’t like doing things just because, I like to know exactly why Nov 01 18:49:07 konk3r: https://github.com/charafau/U2020k/blob/master/app/src/test/kotlin/com/nullpointerbay/u2020k/presenter/MainPresenterTest.kt this is what I mean Nov 01 18:49:12 testability and decoupling Nov 01 18:50:56 I’ve never heard of Spek before but I like this Nov 01 18:51:50 Getting rid of java method names to describe your tests sounds dreamy haha Nov 01 18:52:18 Spek: http://tinyurl.com/hymg2gh Nov 01 18:53:01 The more I look into Kotlin the more I’m tempted to just make the leap on a production app. Nov 01 18:53:34 konk3r do eet ! Nov 01 18:53:42 anyone have any clue about this samsung specific multi window blue box -> http://picpaste.com/pics/small_touch_area.1478026348.jpg Nov 01 18:53:57 nope Nov 01 18:53:59 the touch area on my app is limited to that blue box and I cannot figure out what is controlling its size Nov 01 18:54:34 g00s_: are you using it ? Nov 01 18:54:37 when you select a window in samsung multi-window mode, it outlines the window with the blue border/box, but for some reason it is smaller on my app Nov 01 18:54:43 gordon_ no :P Nov 01 18:54:49 Lol Nov 01 18:55:06 I will probably make a move Nov 01 18:55:29 This project is my playground ;) Nov 01 18:55:32 checked delegatearea, and a bunch of others all seem to have the right screen width/height, no clue what is causing that box/touch area to be smaller Nov 01 18:55:34 Honestly, my only concern up until now has been the difficulty in hiring devs that know it, but I would be happy to have a new hire take a week to figure his way around Nov 01 18:55:37 when manning was having their 50% sale i was contemplating buying the book, but its already out of data b/c doesn't cover 1.1 Nov 01 18:56:02 You don't need any book... Nov 01 18:56:13 exceuse me touchdelegate, like for cases where you want that lager Nov 01 18:56:18 s/lager/larger Nov 01 18:56:22 Everyone says that, but I honestly learn better from a physical book than a website Nov 01 18:56:25 gordon_ yeah, the website is 'ok' Nov 01 18:56:34 I’m just more used to the format Nov 01 18:56:39 Many examples out there Nov 01 18:56:44 the Ceylon language spec is awesome, the kotlin stuff is loosy goosy Nov 01 18:56:58 konk3r: what format Nov 01 18:57:13 g00s_: I haven't touch Ceylon Nov 01 18:57:37 gordon_ but i think in this case with the book - that the authors themselves are kotlin creators - no excuse to be out of date Nov 01 18:58:10 Kotlin is not complicated Nov 01 18:58:16 Dagmar, hehe, slidenerd is very slow. I skapped to tho 100th video and it's still about the layout :) Nov 01 18:58:19 Rather easy Nov 01 18:58:23 Btw Nov 01 18:58:34 slidenerd guy is funny Nov 01 18:58:36 Anyone used toothpick ? Nov 01 18:58:41 anotheryou: No, there's just _far_ more material to cover than you yet understand Nov 01 18:59:11 try thenewboston anotheryou Nov 01 18:59:12 https://github.com/stephanenicolas/toothpick Nov 01 18:59:30 slidenerd is not bad as well Nov 01 19:00:20 Dagmar, I listned through the basics to refresh my memory on the lifecycle functions (which are pretty straight forward once you know the names and how they can be called in quick sucession). Now I just wonder where to put my java code, hehe. I actually don't have any UI and he explained the layout stuff for the last 80 videos :) Nov 01 19:00:27 anotheryou: I pointed you specifically at the Android Lifecycle explanations because the idea that there's some main() loop you need to do in Android is dead wrong and you need to let that go early Nov 01 19:00:35 jup thanks Nov 01 19:00:40 that helped indeed :) Nov 01 19:01:17 but not yet explained where to "refresh" my ui. what I would call a main loop. Could you point me to the android way/term here again? :) Nov 01 19:01:37 If you have no UI and there's nothing for the user to interact with, then you're basically building a Service, and you need to look at the Service Lifecycle Nov 01 19:02:08 There is audio, so technically an "ui" :) Nov 01 19:02:24 IF you have a UI you don't have to explicitly refresh it. You simply make changes to the View objects and then let whatever function you're working in exit Nov 01 19:02:26 but practically an image in the display it most, so not much layout Nov 01 19:02:37 hm Nov 01 19:02:45 Android will then update whatever you changed Nov 01 19:03:02 well to be more concrete: I want nood some if triggering on gps and time changes Nov 01 19:03:22 Look into postDelayed and Runnable Nov 01 19:03:35 As far as GPS goes, you're _entirely_ event-driven there Nov 01 19:03:35 thanks Nov 01 19:03:42 gordon_: having a physical copy to hold in my hands and browse through is just easier for me to process than reading off a screen Nov 01 19:03:43 ok Nov 01 19:03:53 Even reading off a tablet doesn’t have the same feel Nov 01 19:04:16 But I’ve basically stopped buying new technical books at all because they go out of date so quickly Nov 01 19:04:40 Ah, you're talking about books, ok Nov 01 19:06:12 gordon_ you know scala, but you're going to do kotlin ? Nov 01 19:06:57 or is it because of existing team ... Nov 01 19:07:12 g00s_: I know both ;) and it is because of the team Nov 01 19:07:24 makes sense Nov 01 19:08:52 Do you both prefer scala? Nov 01 19:09:38 I prefer ;) Nov 01 19:09:43 One thing that C# misses from Java are non-static nested classes Nov 01 19:10:45 I really like Scala, Kotlin feels like a lighter version of it. The learning curve for Scala is way higher than Kotlin from my experience though so it would be really hard for me to choose it for a large project Nov 01 19:11:53 Unless I made Scala harder than it had to be haha Nov 01 19:13:13 #scalaisthedevil Nov 01 19:15:08 You do hate it so much Nov 01 19:15:08 Mavrik: functional programming is black magic Nov 01 19:15:48 gordon_: why do you say so? Nov 01 19:16:12 Because I want to be a wizard Nov 01 19:16:48 Packing things in momads Nov 01 19:16:54 Monads Nov 01 19:17:37 Oh, you were making a pedestal for yourself :) Nov 01 19:30:05 hey guys, is there any difference between the icon used for the apps launcher and the icon that is displayed in the status bar when a notification is received and the app is not open? Nov 01 19:30:36 reason i am asking is, my main launcher seems to be used for both, but I would like to use a different one since our main launcher has too much fidelity to be used in the notification bar Nov 01 19:30:59 we do have it using the appropriate icon when the app is open and the notification is received, just when it is closed (white square) Nov 01 19:31:12 um, of course there's a difference Nov 01 19:31:19 in style and size. Nov 01 19:31:31 You're probably getting the default because you didn't set it on your notification. Nov 01 19:33:28 Mavrik: see that is the weird thing. Our size and style are different between the two icons Nov 01 19:34:16 and we do have code which creates a notification. However, I hard coded some text in this code and then forced a notification. When I viewed the notification, it did not contain my hard coded text Nov 01 19:34:38 so, my thought is that it is some sort of default process in the Android OS that is creating the notification Nov 01 19:35:18 Mavrik: what do you think? Nov 01 19:35:53 I think you messed something up when creating the notification. Nov 01 19:36:02 Or you're calling a wrong thing. Nov 01 19:36:24 my thought is, this might be default functionality for the provded GcmReceiver Nov 01 19:36:32 can you confirm> Nov 01 19:37:01 the docs seem to indicate that it delivers it to GcmListenerService Nov 01 19:37:30 No. Nov 01 19:37:44 I'm pretty sure default gcmreceiver doesn't do anything with notifications. Nov 01 19:39:10 You can specify any icon you want when showing a notification. It doesn't have to match any other icon in your app Nov 01 19:39:42 ludocode: that is what i understood. Mavrik I found the source for GcmReceiver, you are correct Nov 01 19:39:50 Also note that notifications have both a "large" and "small" icon, and both are visible in the notification (and they are in different places based on the OS version) Nov 01 19:39:58 ludocode: we are using large and small Nov 01 19:40:39 consider, we have a bit of code in our IntentService. This bit of code creates the notification in the status bar when a notification is received. This works properly and consistently Nov 01 19:41:10 with the correct icon and text. However, the notification that is created when the app is closed does not appear to come from this process Nov 01 19:41:25 this is also the notification case where the icon appears as a white square instead of our small icon Nov 01 19:41:30 does that make sense? Nov 01 19:42:38 also, to further confirm this I harded coded the text for the notification and installed the app. When I received a notification it was without the default text Nov 01 19:43:16 Is there anything like app:srcCompat for background vector images? My google-fu is failing me. Nov 01 19:46:11 ohhh Nov 01 19:46:14 eff me Nov 01 19:48:36 ok i thought i figured it out, but i was wrong Nov 01 19:48:45 if anyone has any ideas, i am all ears Nov 01 20:05:16 Guys there is too much silence. Please discuss something Nov 01 20:06:01 Melatonina i want google to update as or platform tools so recyclerview works in preview ! Nov 01 20:06:51 i want to know why my notification status bar icon is different Nov 01 20:09:06 xximjasonxx: I didn't get to notifications yet. Sorry Nov 01 20:09:53 I made a video player and a filesystem explorer. Those are my top achievements, so far. And a rich text view. Nov 01 20:22:12 hello everyone, i'm making a project using the ndk and i'm trying to include the eigen library, but i'm getting a strange linker error D:\Superresolution\AndroidTest\app\src\main\cpp/Eigen/src/Core/util/Memory.h:224: error: undefined reference to 'posix_memalign' Nov 01 20:22:33 has anyone seen this before? Nov 01 20:22:39 not a strange error at all. Nov 01 20:23:12 bionic does not have that function, plain and simple Nov 01 20:23:17 yp. Nov 01 20:24:04 but i've seen other projects that include the eigen library...? sorry, i'm new to this Nov 01 20:24:27 they either configure it to not use that function, or include something that does implement it. Nov 01 20:24:31 Well open that source file and see if there are any ifdefs for android you're forgetting to set. Nov 01 20:24:53 or they're compiling against a newer bionic Nov 01 20:25:02 ugh where should i look for a great explanation of all the layouts in android and how they work well together Nov 01 20:25:25 there was a patch for that function in 2011 Nov 01 20:25:51 85aad909560508410101c18c6ecc6633df39c596 Nov 01 20:27:42 maybe use a newer ndk? :/ Nov 01 20:27:59 EIGEN_HAS_POSIX_MEMALIGN Nov 01 20:28:02 exists. Nov 01 20:28:07 casual glance through that function. Nov 01 20:28:30 many options Nov 01 20:28:43 my thing with layout is I can use to the left of for some layouts and others its not functional , which is crazy to take aways simple features of arrangements Nov 01 20:29:05 dar10s, wat. Nov 01 20:29:40 Hello, im getting an error in the line 5 java.lang.illegalArgumentException: Buffer is closed, however I dont release the buffer until the loop has finished, so why is it giving me that error? http://pastebin.com/7Nw9iX5M Nov 01 20:29:41 Platyp: Android didn't have posix_memalign until... android-18? Nov 01 20:30:24 We resort to hacks like this for building eigen in the platform: https://android.googlesource.com/platform/external/eigen/+/befc7f388f7b49c7922909c5215d311e99c50c8c Nov 01 20:30:30 just having issues with CoordinatorLayouts and aligning Floating action buttons with text and other things on the screen Nov 01 20:30:49 my ndk version is 13.1.3345770 Nov 01 20:31:13 Well, you're not targeting Android 18+ or you're not properly configuring eigen. Nov 01 20:31:14 Does anyone have any idea on what game library might of, or a similar library that would of been used to create the Android Game "Infinity Loop" ? Working on a flat game, but wanting to have "Tron" style colors or graphics. Similar to Infinity Loop anyhow. Any insight would be appreciated. Nov 01 20:31:31 Why are people using Ravello when you can just use ARM for free? Nov 01 20:32:50 What's ravello? Nov 01 20:32:52 is the target version "targetSdkVersion" in build.gradle? Nov 01 20:33:06 Platyp, no, you set platform version for NDK separately. Nov 01 20:33:14 Of course, if you set it to 18, then your app won't work on < 18 Nov 01 20:33:27 oh, in application.mk? Nov 01 20:33:53 Platyp: in Application.mk it's APP_PLATFORM Nov 01 20:34:10 yes, this says android-21 Nov 01 20:34:23 so i guess it's a matter of using a hack like the one you showed me Nov 01 20:34:37 What hack? Nov 01 20:34:46 Just tell Eigen your platform doesn't have that call and that's it. Nov 01 20:35:52 i am going to ask this question again: is there any different with the way Android will handle an incoming GCM message for an app that is in the foreground vs background/closed Nov 01 20:36:11 No. Nov 01 20:36:17 Check your notification creation code. Nov 01 20:36:25 Mavrik: believe me i have Nov 01 20:36:26 Platyp: I see posix_memalign in the headers for android-21 Nov 01 20:36:47 Oh, undefined reference, so libs Nov 01 20:37:06 so it doesn't exist in android-21? Nov 01 20:37:49 hmm, I actually see it defined in android-16 already Nov 01 20:37:53 Seems to be in all the libs too Nov 01 20:38:40 yep Nov 01 20:38:49 libc Nov 01 20:39:01 Mavrik: Virtualization software for android on ec2 Nov 01 20:39:03 ok, i guess i'm just configuring this properly then Nov 01 20:39:03 So I guess misconfiguration or using a funny build system. Nov 01 20:39:08 *improperly Nov 01 20:39:32 Platyp: build command line (the clang command line) might have some answers Nov 01 20:39:42 I'm guessing it's not actually linking against android-21 Nov 01 20:40:16 or it's a windows library path issues Nov 01 20:40:35 considering that even his error message has messed up directory delimiters :) Nov 01 20:44:11 The compiler/linker usually either work or explode when the paths are bad rather than silently dropping an argument Nov 01 20:44:55 Yeah, but it may grab something from android-8 or some other silly default Nov 01 20:45:56 I suppose yes, if it's the argument to -L and it's just performing escaping with all the backslashes, you're probably right Nov 01 20:47:01 maybe it will help if i post some code. This is the only area of our application where notification and built: http://pastebin.com/3snrVgTM Nov 01 20:51:29 Halloween's over :( Nov 01 20:52:06 this is one of the crappy things about living in an apartment. No trick or treaters Nov 01 20:52:25 so likely no taking any around Nov 01 21:00:05 capella-5x: I attempted to organize a party here but nobody cared Nov 01 21:00:43 do you offend? 🤔 Nov 01 21:00:52 hey guys, i really hate to ask again, but there is simply no way the notification I am seeing when the app is in the background or closed is coming from my app. I need to know where it is coming from, thus I am trying to determine what other processes could be creating a notification for my app Nov 01 21:00:55 can anyone shed some light on this Nov 01 21:01:35 did you long press on the notification? Nov 01 21:01:43 no Nov 01 21:01:57 that’ll tell you what app presented it Nov 01 21:02:02 offend? Nov 01 21:02:42 Did you make fun of trains? 😜 Nov 01 21:02:55 s73v3r: it is saying my app, but that is not possible Nov 01 21:02:57 is there a single page in the android docs that enumerates the various material design theme attributes and what they do? Nov 01 21:03:15 I'm trying to find the name of the thing that colors the text in disabled buttons, but I can't seem to find it Nov 01 21:03:15 i hard coded a bunch of text in the only spot where a notification could come from and it is showing the message that is coming from GCM Nov 01 21:03:15 unless someone else got your signing key, then it is your app Nov 01 21:03:33 colorAccent makes the normal buttons be that color Nov 01 21:03:34 rager lol, no - that would be 'documentation' Nov 01 21:03:34 rager, https://material.google.com/components/buttons.html Nov 01 21:04:02 adq: 0 mentions of colorAccent on that page Nov 01 21:04:13 because it's irrelevant Nov 01 21:04:27 it seems to set the default color of the text on my buttons, though Nov 01 21:04:31 disabling button is mainly playing with alpha Nov 01 21:04:32 so it seems relevant Nov 01 21:04:35 xximjasonxx: you need to check the notification you’re sending from GCM, and probably your receiver. Nov 01 21:04:48 depending on the button, it's either the font color or the whole tint being "alpha-ed" Nov 01 21:04:55 there might be some automagic stuff that displays a notification when it gets a push from GCM Nov 01 21:04:57 adq: are you suggesting programmatically setting the alpha instead of using theme colors or color state selectors? Nov 01 21:05:01 tossing old unsorted music to dvd w/ntfs file system won't play in truck, redoing as cda Nov 01 21:05:06 because that's a non-starter Nov 01 21:05:08 uh no, just extend a button style Nov 01 21:05:12 ... Nov 01 21:05:14 and apply this style/theme to your button Nov 01 21:05:18 ..... Nov 01 21:05:23 and you just have to care of setEnabled(true/false) Nov 01 21:05:37 I'm trying to find the style/theme attribute that corresponds to the disabled color Nov 01 21:05:43 so that I *can* use setEnabled(true/false) Nov 01 21:05:47 again, it's alpha Nov 01 21:05:49 it's not a color Nov 01 21:06:02 okay, still doesn't answer "what is the theme attribute that makes this different?" Nov 01 21:06:16 transparency racy Nov 01 21:06:20 because as it stands, my disabled buttons are the same color as my not-disabled ones Nov 01 21:06:36 sorry... letting my frustration at this get misdirected at you Nov 01 21:06:52 ok, here is 3 lines for you: Nov 01 21:06:52 Nov 01 21:07:11 that will style a button with the colorAccent, borderless in this case Nov 01 21:07:24 are you saying I should make colorAccent a selector instead of a plain color? Nov 01 21:07:25 setenable will take care of the alpha Nov 01 21:07:32 no Nov 01 21:07:40 i'm not saying anything about selector Nov 01 21:08:37 so you're saying as long as I just set the colorAccent and don't touch textColor on the button's own style, it should just automagically apply the alpha? Nov 01 21:08:49 works like that for me Nov 01 21:08:57 you have other ways to customize your button like: