**** BEGIN LOGGING AT Tue Aug 16 02:59:58 2016 Aug 16 03:00:03 I'm an android noob Aug 16 03:00:04 j4f-shredder you can do speculative pre-fetching Aug 16 03:00:17 http://myapi.foo/api/v1/my_bars?sort=newest&from=5&to=20 is a really really basic example Aug 16 03:00:19 that works too Aug 16 03:00:35 if you know how your users are going to behave most of the time Aug 16 03:00:41 you can fetch some data ahead so it feels smoother Aug 16 03:00:43 Is that just loading prior to reaching the absolute bottom of the records? Aug 16 03:00:49 yeah lol Aug 16 03:00:56 (depends on what the app does of course) Aug 16 03:00:59 yeah Aug 16 03:01:21 it's a wall of posts Aug 16 03:01:34 but there will be thousand of posts Aug 16 03:01:34 Keep it simple. Aug 16 03:01:41 and Aug 16 03:01:45 there are libraries that to this! Aug 16 03:04:04 tx, can you name any libs that do it? Aug 16 03:04:48 (not a library, more of an example: https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews-and-RecyclerView ) Aug 16 03:06:23 nice article Aug 16 03:06:37 I'm bringing the data on a recycler view adapter Aug 16 03:06:42 I hope that works Aug 16 03:07:10 thank you very much my friend Aug 16 03:07:29 add a nice slide in animation as you scroll down and boom it's fancy Aug 16 03:08:27 ;) Aug 16 03:12:02 where should I add the animation? Aug 16 03:12:08 I know how to create animation in xml Aug 16 03:12:10 lol Aug 16 03:12:15 get the basics working first Aug 16 03:12:15 after loading Aug 16 03:12:18 do animations once that's working Aug 16 03:12:19 data on the listeners? Aug 16 03:12:35 of course Aug 16 03:12:40 I will implement the basics first Aug 16 03:12:50 but do you have any article on adding animations on pageload? Aug 16 03:12:59 just to have the reference Aug 16 03:13:03 after implementing this Aug 16 03:16:36 @tx: thanks, i'll try picasso Aug 16 03:17:09 i've never used a gradle dependency before, do I have to do anything besides add the "compile" line to build.gradle? Aug 16 03:17:36 you may need to add the repository that picasso resides in to your repositories {} area of the build.gradle file Aug 16 03:18:03 but, doesn't seem like you do for that library ;) Aug 16 03:18:07 so go for your life. Aug 16 03:18:10 that's great Aug 16 03:18:12 thank you Aug 16 03:22:09 okay - yes, using the "Picasso.with(rootView.getContext()).load(R.drawable.placeholder).into(mainImage);" I can get the image to load. But how can I make it so that the height matches the width -- whatever the width is? Aug 16 03:22:43 do you want to crop it Aug 16 03:22:45 or scale it Aug 16 03:22:58 https://futurestud.io/blog/picasso-image-resizing-scaling-and-fit Aug 16 03:24:18 hmm i'm not sure Aug 16 03:24:31 basically, i have two columns (left and right) and my imageview is top left Aug 16 03:24:50 if it's a horizontal rectangle (width > height), then there are no problems Aug 16 03:25:06 because the image will scale down to use the most width possible - which is fine Aug 16 03:25:42 but if it's a vertical rectangle (height > width) then it takes up potentially too much space, because I want to use the full width - which could make for a very long image Aug 16 03:25:51 i hope i explained that well Aug 16 03:26:18 bascially, to avoid getting the "long image" - in those cases I just want to crop the top and bottom of the image so it becomes a square Aug 16 03:27:49 tx thank you very much man for this article Aug 16 03:27:52 great Aug 16 03:28:16 one more question, which is the usual way of caching data in an android app? Aug 16 03:28:46 any good articles on that? I just want to avoid calling the backend if the data is the same Aug 16 03:30:03 how will you know if the data is the same? Aug 16 03:30:16 (without making the request again) Aug 16 03:30:20 I don't know about the topic, I'm just asking which is the usual way Aug 16 03:30:53 Caching as in, forever in the ap p Aug 16 03:30:55 do you use a cache based on a time expiration disregarding if the data has changed or not? Aug 16 03:31:06 ? Aug 16 03:31:13 you can do that if you want Aug 16 03:31:14 I mean, which method do you use? Aug 16 03:31:51 a) I'm the user, I search for something, and 30 seconds later I search for the same thing and I get the same result even if the data has changed Aug 16 03:32:09 It really depends on the type of data we're dealing with. Aug 16 03:32:16 b)I verify if the data has changed, and then if it didn't I just use the same result set Aug 16 03:32:29 with posts for example Aug 16 03:32:49 you have a wall with posts Aug 16 03:32:59 and you have to catch that wall Aug 16 03:33:40 the thing is that it doesn't make much sense to catch data if I'm using the paging system you provided me right? Aug 16 03:42:54 I'm having an issue where FileOutputStream doesn't appear to actually be making the file Aug 16 03:43:01 It works fine on desktop java versions Aug 16 03:43:14 But as soon as I run it on Android, it downloads the contents - and the file doesn't exist Aug 16 03:43:28 It's in cache/, so it should work Aug 16 03:44:45 did you close the FOS Aug 16 03:44:51 is it writing to a writeable directory Aug 16 03:45:00 are you getting any exceptions / lacking permissions? Aug 16 04:01:09 @tx: i think i got it Aug 16 04:01:12 Picasso.with(rootView.getContext()).load(clickedImage).resize(300, 300).centerCrop().into(mainImage); Aug 16 04:01:21 is there any way to not hardcode the 300,300 though? Aug 16 04:01:31 like some way to dyanmically figure out which number should go there? Aug 16 04:02:34 you can get the size of the image Aug 16 04:02:42 and use it as a dynamic import for resizer Aug 16 04:02:49 er, input* Aug 16 04:24:04 having a hard time to get my app to receive gcm, when I post to gcm/send I get success 1 but onMessageReceived in my listener is never hit. and the packet in sending in has data not notification so I don't think thats the issue Aug 16 04:27:04 @tx: what if the size of the image is quite small, is there some way to make it take up all available space still? Aug 16 04:50:37 nownot are you using FCM or the old GCM setup? Aug 16 05:28:37 unused activities in project ? check Aug 16 05:44:43 How does this happen... Aug 16 05:45:00 The owner of an app on the play store console hasn't paid the fee ($25) Aug 16 05:45:24 so how did the owner submit to publish in the first place? Aug 16 05:45:27 bug? Aug 16 06:45:59 are there any good models/database libraries for android? Aug 16 06:46:24 looking for a decent (but simple) ORM Aug 16 06:57:56 ohi thepoosh Aug 16 06:59:07 raoul11: hi there Aug 16 06:59:12 how's tlv this morning? Aug 16 07:00:16 dis seems useful https://github.com/dmytrodanylyk/folding-plugin Aug 16 07:00:25 as fugly as it was yday thepoosh Aug 16 07:00:30 and twice as humid Aug 16 07:07:41 raoul11: it was a bit cool this morning here Aug 16 07:07:43 but very humid Aug 16 07:11:05 dis plugin is pure gold Aug 16 07:11:49 looking into this Aug 16 07:11:55 thepoosh: tried yday to hack/subfolder layouts, failed hard. dis plugin is just display Aug 16 07:12:12 coolio Aug 16 07:12:37 someone mentioned here there is a plugin doing that, couldnt remember name Aug 16 07:32:22 how can i have a preference in a PreferenceScreen that shows a dialog box onclick? Aug 16 07:32:37 do i need to make a custom `... extends Preference` class to do this? Aug 16 07:33:45 Just add a Preference and set a click listener Aug 16 07:33:49 Then you can do whatever Aug 16 07:38:41 ah, ok Aug 16 07:40:06 any idea what the standard Dialog element would be for an in app purchase with title/summary and not now/buy now options? Aug 16 07:40:53 i am making a keyboard and i want to show that dialog if the user clicks a button on the keyboard, or if the user clicks the "ugprade" Preference Aug 16 07:42:31 hi Aug 16 07:42:36 got a question about NavigationView Aug 16 07:43:21 typically, what causes it to open? Aug 16 07:43:31 currently just using an `Activity` with `android:theme="@style/Theme.AppCompat.Dialog"` but it doesn't look that great Aug 16 08:23:50 Hello. How does one spoof the location of the emulated phone in Android Studio? Aug 16 08:24:12 and move it while it is running? Aug 16 08:25:33 Via ddms Aug 16 08:25:53 Or via that button you get on the bar that appears when you start an avf Aug 16 08:25:57 Avd Aug 16 08:28:28 tx, which button and in which bar? Aug 16 08:34:41 Ah. I might only come up when you have skins turned off. Aug 16 08:34:53 In any case, DDMS will do it Aug 16 08:35:21 You can also use a telnet client to connect to the emulator and set the coordinates that way. Aug 16 09:15:35 does Android have a built in method for checking if a string is in a email format, I noticed some users have signed up using weird stuff like www.blabla.stuff.com Aug 16 09:15:46 Okay thank you tx Aug 16 09:20:02 Bernzel: look into patterns class Aug 16 09:20:48 thanks raoul11 Aug 16 09:22:08 or write your own regex checker Aug 16 09:27:28 a basic sanity checker for email is very easy Aug 16 09:27:38 an accurate, complete, RFC-compliant checker is very nearly impossible Aug 16 09:36:43 Just check if it contains @ and require activation. Annoying when some try to validate and then mess up stuff like email+tag@gmail.com Aug 16 09:39:30 I'd say "contains an @ and has at least one . after the @" Aug 16 09:43:14 Leeds, blah@com is valid email :) Aug 16 09:44:01 Hello everybody! Aug 16 09:44:41 Can anyone help me with manually adding root to custom ROM? Aug 16 09:45:10 Root/custom roms, head to #android-root Aug 16 09:47:52 Mavrik: in theory... Aug 16 09:48:04 In practice :) Aug 16 09:48:12 also john@co.uk, etc. :) Aug 16 09:48:20 or marta@de Aug 16 09:48:24 Mavrik: blah@[192.168.11.11] is technically valid, or whatever the RFC format is Aug 16 09:48:37 and john@co.uk would pass my filter :) Aug 16 09:48:41 I'm not talking about technically. Aug 16 09:48:46 I'm talking about that TLD only is a valid domain. Aug 16 09:48:57 do you know any TLDs which do that? Aug 16 09:49:01 And people do use them, especially with the new TLDs introduced. Aug 16 09:49:03 Yes :) Aug 16 09:49:20 I've met some country TLDs that used it for their admin mails, also the newfangled .coffee and crap uses it Aug 16 09:49:28 meh :P Aug 16 09:49:33 The Android SDK looks like an amateur job Aug 16 09:49:34 get off my lawn Aug 16 09:49:45 does it? Aug 16 09:49:51 Heh, TIL Aug 16 09:50:18 Arancio: this is not the way to make friends Aug 16 09:50:35 I guess the lesson is to not try and validate email addresses Aug 16 09:50:46 but its a good one liner to start a good ol irc bash Aug 16 09:51:07 Is it because real trade-off to work around hardware limitations, because they made it quickly or why? Aug 16 09:51:46 whats amateur about it? Aug 16 09:52:01 Leeds: it's just my current opinion. Aug 16 09:52:30 Arancio: it's still a pretty trollish thing to say out of the blue Aug 16 09:53:03 I think all people would need to have a short stint at developing desktop / embedded software. Aug 16 09:53:12 So they'd appriciate how brain dead simple Android and iOS dev is :P Aug 16 09:53:41 API sometimes looks "adjusted", like they had to add a functionality and didn't have or take the time to design the whole thing to make it fit in a better way Aug 16 09:53:57 But desktops don't have orientation changes, so it must be easier Aug 16 09:54:36 https://www.reddit.com/r/androiddev/comments/43d2jc/importance_of_screen_orientation_in_mobile/?st=irxalown&sh=7158fbb8 Aug 16 09:54:49 This is what makes me want to beat half of Android devs to dead with a Pixel C :P Aug 16 09:55:39 I'm not saying it's a complete disaster. Just it looks like a jump 10 years backward and not thought in depth. Android is a piece of software which runs on billions of devices and comes with the Google name on it. So I expected something more, I guess Aug 16 09:56:07 It's a 10 year old project with full backwards compatiblity. Aug 16 09:56:11 It can't be anything else than crap :P Aug 16 09:56:52 Ok, I didn't use the word "crap" Aug 16 09:57:00 I did. :) Aug 16 09:58:25 I didn't follow the Android development. I'm just jumping on it now. Aug 16 09:59:14 My point is, I've yet to see OS APIs that would be significantly better. Aug 16 09:59:31 iOS is a bit better, Windows is way worse, Linux is clusterfuck, other mobile OSes are awful beyond reason Aug 16 10:00:40 And no, Android isn't good either. So I guess go develop JavaScript webapps if you want new APIs? :) Aug 16 10:02:08 I need to develop a mobile application, so I'll stick with Android. That doesn't prevent me from expressing an opinion once a year and/or ask for explanation of my impressions. Aug 16 10:02:42 And that doesn't keep people from being annoyed by bunch of other people complaining about having to do their job :P Aug 16 10:04:29 Mavrik: I'm finding screen orientation a pain in the ass Aug 16 10:04:39 Android is perfect. Aug 16 10:05:17 lol Aug 16 10:11:37 Mavrik: what does "to have a short stint" mean? I can't google it. Aug 16 10:13:02 Arancio: an emglish idiom Aug 16 10:13:18 Arancio: s/m/n/ Aug 16 10:13:39 wyoung: I supposed that. I just could not google its meaning Aug 16 10:14:58 Arancio: live in an English speaking country for a bit :) gets some culture :) Aug 16 10:16:54 wyoung: I hope that was (an unsuccessful attempt at) a joke. Aug 16 10:17:41 Arancio: Be somewhere / do something for a short time period Aug 16 10:18:01 markyosullivan: thanks! Aug 16 10:20:16 Arancio: I was being serious Aug 16 10:21:22 wyoung: then that was a really stupid thing to say Aug 16 10:21:25 Should come to Scotland Aug 16 10:21:28 it's a nice place Aug 16 10:21:29 well Aug 16 10:21:35 Edinburgh is nice Aug 16 10:22:21 Arancio: goto scotchland Aug 16 10:23:22 Mavrik: I have much more experience of desktop development, actually. This is my first mobile project. In fact the only explanation I can give to the things I perceive as shortcomings of Android is that it's designed for small devices. Anyway your idea that I see Android as flawed because I have no experience of desktop programming has no basis. Aug 16 10:24:00 And I don't see Android particularly difficult. It's just new to me. Aug 16 10:24:47 wyoung: Ever been? Aug 16 10:24:55 markyosullivan: yes Aug 16 10:25:30 markyosullivan: I went at the start of summer and I was snowed on Aug 16 10:25:55 How much is MVVM used in Android programming, currently? Aug 16 10:25:59 Hi all:) Aug 16 10:26:08 No book that I saw talk about it. Aug 16 10:26:20 perlsyntax: hi Aug 16 10:27:05 perlsyntax: Channel rules: don't criticize Android unless you've been in Scotland. Everything else is ok. Aug 16 10:27:36 talk -> talks Aug 16 10:27:53 ok Aug 16 10:28:27 i talk to much when i drink to much coffee j/k Aug 16 10:28:56 welcome on board Aug 16 10:29:29 :) Aug 16 10:30:01 wyoung: You were snowed in during the summer? Aug 16 10:30:04 "summer" i say haha Aug 16 10:30:19 I moved here 2 months ago from Northern Ireland, Edinburgh is so much better Aug 16 10:30:39 markyosullivan: well snowed on, I could still drive but it was snowing Aug 16 10:30:58 markyosullivan: I did go via the skii fields though :P) Aug 16 10:32:37 from Balmoral (I went to the royal distillery) to Elgain Aug 16 10:32:55 Does anybody use MVVM on Android, here? Aug 16 10:36:30 wyoung: Heard you can do skiing in Scotland which is cool, I'd fancy doing that Aug 16 10:37:18 markyosullivan: yup, but NZ is better Aug 16 10:38:09 hey anybody here? Aug 16 10:38:27 wyoung: New Zealand? Aug 16 10:38:28 anyone know any method to convert a unicode text to non-unicode text? Or a unicode font to non-unicode font? Aug 16 10:38:31 chandujr: if you want to talk about snow in Scotland, then yes Aug 16 10:38:40 markyosullivan: yup Aug 16 10:38:50 chandujr: I am here Aug 16 10:38:50 @Arancio no but something close to that. Aug 16 10:38:52 Arancio: We talk about Android dev as well Aug 16 10:39:04 Hello, is there anyone here who has successfully submitted apps to chinese app stores and made money ? ( apart from Chinese people ) Aug 16 10:39:04 chandujr: in java? Aug 16 10:39:07 ;) Aug 16 10:39:29 @wyoung not particularly Aug 16 10:39:42 but my app is in Android Aug 16 10:39:57 I have a set of text data that needs to be converted Aug 16 10:40:15 chandujr: what language are you using to program on Android? Aug 16 10:40:29 I'm using Libgdx Aug 16 10:40:36 :) Aug 16 10:40:36 java, yes Aug 16 10:41:11 But is it possible to do that conversion using java?! Aug 16 10:41:11 chandujr: asciiString.encode('utf-8') Aug 16 10:42:29 wyoung: he was asking about the opposite transformation Aug 16 10:42:52 yeah Aug 16 10:43:40 Arancio: ah Aug 16 10:44:05 I am sure china has its good and bad just like any country, but after shopping on ebay i'm afraid of um the Chinese. Aug 16 10:44:30 I'm worried about he app stores. Aug 16 10:44:35 how can I reference debug.keystore of .android folder for the signingConfig ? Aug 16 10:44:52 and Baidu Aug 16 10:47:20 NeoFrontier: nothing wrong with the chinese stores unless you want to get what you paid for Aug 16 10:47:36 lol Aug 16 10:47:42 Does mobile phones allow websockets? or only http? Aug 16 10:47:56 I heard there is some limitation on allowing only http(s) in mobiles Aug 16 10:51:26 Baidu had backdoors built into their SDK. Aug 16 10:51:31 Vacuum_: mobile phones don't care about websockets, it is a web browser thing Aug 16 10:52:05 Vacuum_: if your web broswer running on your phone doesn't support X then you can install another web browser on the play store Aug 16 10:52:21 i care about wesockets Aug 16 10:52:22 from the play store either Aug 16 10:52:36 phil__: so use a web browser that supports it Aug 16 10:52:48 phil__: nothing to do withthe phone Aug 16 10:54:01 It's like saying does my mac support windows apps? well it does if you install windows on it :) (or run it in an VM). my point is nothing to do with the harware, it is to do with what you install on your device. Aug 16 11:00:31 Hey, i'm building an SDK to do relative simple queries, and i would like to persist some events in to a DB. For this i've been looking into using Realm, but I think it seems to restrict me somewhat with e.g. field types, and extending RealmObject/RealmModel. Aug 16 11:00:42 Would i be better off just using SQLite? Aug 16 11:01:42 well my friend if u havce to ask about Aug 16 11:01:43 that Aug 16 11:01:54 maybe you should not be buiding asn sdk in the first place Aug 16 11:02:06 lol phil__ Aug 16 11:02:13 huh Aug 16 11:03:49 I already wrote the thing using SQLite, seems to be what i needed. But i have a boss who is really into Realm, as he's 'only heard good things' Aug 16 11:04:18 My boss only hears what I have to say. Aug 16 11:05:11 Because I am he. Aug 16 11:06:11 wyoung: doesn't it has to do with mobile operators? Aug 16 11:06:56 Are there any Chinese developers present here today ? Aug 16 11:07:09 Yes Aug 16 11:07:37 Don't worry, you already offended them. Aug 16 11:08:13 :) Aug 16 11:09:50 Vacuum_: do you understand what websockets are? https://en.wikipedia.org/wiki/WebSocket Aug 16 11:12:31 Arancio: 11:07 < liste> Vacuum_: yeah, some mobile operators (or corporate firewall) may block websockets Aug 16 11:12:48 11:11 < Vacuum_> liste: in that case (if mobile operators block), socket.io will fallback to http Aug 16 11:12:51 11:11 < Vacuum_> liste: so I think we are safe? Aug 16 11:13:10 bbls Aug 16 11:17:27 NeoFrontier, are you chinese? Aug 16 11:18:25 I am human just like my fellow chinese people. Aug 16 11:18:43 I love the good side of the chinese culture a lot :) Aug 16 11:18:56 it's.. chinese comrades :D Aug 16 11:19:06 yes ! Aug 16 11:19:09 :D Aug 16 11:19:10 you mean there's a bad side? Aug 16 11:19:28 lol at iprime. Aug 16 11:21:05 I bought this cool bluetooth headset built into a pair of sunglasses. Advertized as stereo with polarized lenses. Aug 16 11:21:35 Works nicely. Apart from the fact that its not really stereo and it does not really have polarized lenses. Aug 16 11:21:54 中国人醒醒吧!! Aug 16 11:22:08 iprime: I disagree with you tehre Aug 16 11:22:23 i've heard ma yun say that fake goods are better than the real ones :D Aug 16 11:23:01 Well I did get half my money back. Aug 16 11:23:16 are you sure your polarized lenses don't have a new level of polarization not understood in the capitalistic west? Aug 16 11:23:29 So all and all it was not SUCH a bad deal. Aug 16 11:24:02 Yeah iprime and stereo can also be redefined... Aug 16 11:24:02 cheers wesley ) Aug 16 11:24:04 ;) Aug 16 11:24:20 :D Aug 16 11:24:23 It could have been a language barrier problem ? Aug 16 11:24:37 yeah lost in translation Aug 16 11:24:44 the original said "it does NOT have a stereo and polarization" Aug 16 11:24:53 translator's fault Aug 16 11:25:46 I like chinese. Aug 16 11:25:53 Some of them. Aug 16 11:25:55 really. Aug 16 11:26:25 I'd love to visit China someday. Aug 16 11:26:52 NeoFrontier: same, schezuan beef is tastey Aug 16 11:27:09 NeoFrontier: same with short soup Aug 16 11:27:24 Yeah some of the food is great also. Aug 16 11:27:28 iprime: let's not make confusion. NeoFrontier is not chinese. He's the victim. Aug 16 11:28:26 hehe Aug 16 11:28:33 NeoFrontier: their policies on capital punish is a bit morbid though, after they shoot you in a firing squad they send the bill of the bullets used to your survivor / next of kin Aug 16 11:29:05 lol Aug 16 11:29:30 NeoFrontier: that's just sick majn Aug 16 11:29:31 man(* Aug 16 11:30:19 I've learned to laugh at chaos and disorder, knowing how much better order is. Aug 16 11:31:08 sooner or later entropy gets you Aug 16 11:31:22 it's not sick. it's social control. you're action not only have a consequence on you but even on your family. So they better control your behaviour Aug 16 11:32:01 The consequences of your bad deed extend beyond yourself and your life Aug 16 11:32:21 And, yes, I'm not using "you" as a generic person, here Aug 16 11:32:30 We all know what you did Aug 16 11:32:50 lol Aug 16 11:34:47 lol Arancio Aug 16 11:34:56 I feel offended by the way ebay tries to sell vaporizers to me.. Aug 16 11:36:58 I'm about to reach 100.000 views on Quora. I'm going to be famous! Aug 16 11:39:46 was that on the "why android sdk sucks" question Arancio? Aug 16 11:40:35 No Aug 16 11:40:51 raoul11: do you use MVVM when you program on Android? Aug 16 11:41:47 not really Aug 16 11:42:01 ok, thanks. Looks like nobody does Aug 16 11:42:15 It's very strange Aug 16 12:06:30 o/ Aug 16 12:40:25 Hi. I'd like to buy a new phone. my current, i9300 I will give to my gf. cm13 runs amazingly on it. I'm tempted to buy a mid phone like the S5. S6 support looks rather average and S7 is just too expensive. Question: which phone maker is now the more "opened" towards community? Aug 16 12:40:49 I'm not sure if this is appropriate for this channel Aug 16 12:41:03 Though if you mean more developer friendly, stick to the Nexus phones Aug 16 12:41:17 You'll get the latest Android updates quicker than other phones Aug 16 12:41:30 Yeah dev friendly, thats why I ask here. That is my remaining criteria Aug 16 12:41:49 Yeah nexus. 6P probably too expensive for me though Aug 16 12:42:17 5X then Aug 16 12:42:25 or wait for the new Nexus phones Aug 16 12:43:29 I think 5x is really good value for the sort of price it's available at now Aug 16 12:44:11 Yeah I saw the 5x. thanks guys will look at the price in the supermarkt where I am going. Aug 16 12:45:52 Ok I think its going to be the 5x :) Aug 16 12:48:42 for what it's worth, the 32GB model is under 230 Euro (I'm guessing you're in a Euro country) here now - but there's no sales tax here Aug 16 12:50:07 I am french but now being in Germany which don't have this piracy tax. 230 euros is actually cheap. On the openess and software criteria I'd be happy to leave samsung. Still have to check battery and other basic stuffs. Aug 16 12:55:59 Samsung is the devil Aug 16 12:56:17 no arguments there. Aug 16 12:57:12 yes. and they are amazingly incompetent with software. I just need to look at my tv and my phones to realize it. software from the last century Aug 16 12:57:42 some have also locked their bootloader also or? Aug 16 12:57:44 the entire os on my sgs4 is about 7.5gb Aug 16 12:59:09 ok got to go. thanks again for reminding me about the 5x. its always hard before choosing a phone when you are not fully up to date.. Aug 16 12:59:52 Can someone explain why onCheckChanged is being called within my setOnCheckedChangedListener after I check / uncheck a switch and then rotate the screen? Aug 16 13:00:00 I don't know what is going on Aug 16 13:00:04 D: Aug 16 13:09:24 I'm trying to look for a sharedPreference file like this: http://pastebin.com/wNRF5BQq but it always return false, although I can fetch values from that file, so I must be looking for the file in the wrong way? Anyone see something that's wrong with it? Aug 16 13:11:39 Why are you checking if the file exists? Why not just if the preference exists? Aug 16 13:12:20 ALso, getFilesDir() should already contain the package name Aug 16 13:13:28 SimonVT, not sure what you mean? At one point on my app I .clear() the preferences, so I somehow need to check if it exists before trying to read values from it again Aug 16 13:15:08 Clear doesn't delete the file Aug 16 13:15:37 SharedPreferences has APIs for checking if some preference exists Aug 16 13:15:40 And it can return default values Aug 16 13:17:22 SimonVT, fair point, I set the default value for the .get methods to null, so that's why I got nullpointer, not because the file doesn't exists. correct? Aug 16 13:17:46 Probably, yeah Aug 16 13:24:30 markyosullivan, are you calling setChecked? Aug 16 13:29:36 anyone knows if theres a builtin editor in adb shell? Aug 16 13:33:36 bitkiller: nope, managed ot get around it thankfully Aug 16 13:33:41 android:saveEnabled="false" Aug 16 13:33:44 added that to the XML Aug 16 13:34:03 then I'm using savedInstanceState to retain the swtich checked or not Aug 16 13:55:45 hey fellow dev's ... I have a question when trying to use SimpleDateFormater I have been getting an error ( requires api 24) , this is an odd one since it seems to have been included in ALL api version. ( so what am i doing wrong ? Aug 16 13:56:32 pastebin your code Aug 16 13:57:14 including the imports at the top Aug 16 13:59:32 http://pastebin.com/X0dV3T5e Aug 16 14:00:44 it shows the error on the new instance? Aug 16 14:01:27 Try using the SimpleDateFormat that wasn't added in api24 Aug 16 14:02:14 ? so its a different import ? Aug 16 14:02:51 Yes, you're using https://developer.android.com/reference/android/icu/text/SimpleDateFormat.html Aug 16 14:03:09 Always check package as well as class name Aug 16 14:03:12 Ohh i get it Aug 16 14:03:32 what is icu ( should i know that abr. ?) Aug 16 14:04:49 use the google Aug 16 14:13:15 I have a question about some code that works, but can't figure out why Aug 16 14:13:17 http://pastebin.com/XPD2XV36 Aug 16 14:14:36 Basically, how do I access some intent's data that was set via . setData without an identifier like EXTRA_SOME_DATA Aug 16 14:16:05 getData Aug 16 14:17:47 SimonVT: In the next activity, there isn't any call to getData which is why I'm scratching my head Aug 16 14:19:43 Well, somewhere they get it Aug 16 14:19:49 And use it Aug 16 14:20:35 In the code I posted, it looks like it's accessed via getIntent().getStringExtra(EXTRA_VIDEO); Aug 16 14:20:49 but there wasn't any identifier Aug 16 14:20:57 so I'm confused Aug 16 14:34:57 I'm decoding video using MediaExtractor, and MediaCodec, but the playback is too fast. Do I need to manually wait, or can I tell the decoder to target a framerate? Aug 16 14:37:55 hello, i was wondering if it's possible to 'refresh' the list of remote branches from android studio. I added a branch to my github repo outside of android studio and now want to be able to view it in the studio Aug 16 14:38:05 Random q for JakeWharton or anyone curious - was idly looking through butterknife issues and wondering about https://github.com/JakeWharton/butterknife/issues/607 - is that because you prefer an enforced naming convention for fields from @BindView(R.id.user) EditText username -> @BindView(R.id.user) EditText usernameView ? Aug 16 14:40:55 Ah yes Aug 16 14:41:03 "the Google" Aug 16 14:42:07 Ooh, builder 2.1.3 Aug 16 15:19:26 Hi, with this xml I want the first button to use all the space that the second button doesn't use : http://pastebin.com/x8yL557T But the result is that I don't see the second button. If I revert buttons order in the xml, it works but I want the match_parent button in 1st position. How can I do ? Aug 16 15:20:29 ugh, and it hasn't sync to central yet Aug 16 15:21:01 dada2, I'm assuming you've already tried http://stackoverflow.com/questions/7313167/android-layout-fill-the-rest-of-the-space-except Aug 16 15:25:46 Thanks Glimmergaunt, I didn't found this answer, and thought that layout_weight was useful only when set on all items. Aug 16 15:31:33 Setting a default string value of "" would have .isEmpty() to recognize it as true right? Aug 16 15:35:48 Anyone know how to debug Android WebViews on KitKat? I can't get the inspect button to show up. Aug 16 15:38:03 Bernzel, seems like that's pretty easy to test, https://ideone.com/ Aug 16 15:52:34 :q! Aug 16 16:12:02 how do you validate an InAppPurchase on a backend server? Aug 16 16:12:41 I keep getting 401 unauthorized after following a variety of different mechanisms scattered throughout the google documentation... :( Aug 16 16:14:54 hi, "this field requires api lvl 21 current is 14" after this warning, what happens if i still use without version control ? do i get a crash ? Aug 16 16:15:30 Yep Aug 16 16:15:36 :O Aug 16 16:15:56 then why is it a warning ? should not be an error ? Aug 16 16:16:24 There's only so much static analysis can do Aug 16 16:17:00 It's an error for you to use it Hey guys - when storing date/times in the sqlite databases, do you use string or integers? Aug 16 16:17:24 well thanks Aug 16 16:17:48 Taios: long much better Aug 16 16:18:29 long is easy to handle Aug 16 16:18:29 sci-fic : i've even tried a long but I get a negative value :). This has been driving me a wee bit mental the last 2 days, and the posts on stack overflow seem to give a different solution to each question. Aug 16 16:18:38 I've used the datatype integer and bigint Aug 16 16:18:49 and long time = System.currentTimeMillis Aug 16 16:18:59 and the database val is negative -.- Aug 16 16:19:13 So then I go back to using strings but it's a pain to work with. Aug 16 16:19:31 i was using long field for dates when i was using OrmLite- android and i never had an issue Aug 16 16:19:40 Did I mention that Android is perfect? Aug 16 16:20:12 There's no issue using longs Aug 16 16:20:28 Your issue is likely elsewhere Aug 16 16:21:19 hnmmm, there's not much code for anything to be going wrong - i'll have another look it could be something obviously stupid Aug 16 16:21:32 Taios: send us your stackoverflow link Aug 16 16:21:43 I'm drawing multiple items onto the screens that the user can drag n drop around the screen. But for a reason I can't understand, when moving one object any other object on the screen is being positioned at the same spot and dragged likewise: http://pastebin.com/vMHT2mUr they share the same dragListener but as you can see I create a new instance of it for each object/image Aug 16 16:23:49 http://paste.debian.net/hidden/8ca9d184 :-) Aug 16 16:24:40 was that for me kbs ? Aug 16 16:24:41 sci-fic not made one just yet, i'll do a small pastebin :) Aug 16 16:24:58 Bernzel: nope, unrelated - random test involving longs and Dates Aug 16 16:25:10 roger that Aug 16 16:26:25 " Java 9 Modularity : Patterns and Practices for Developing Maintainable Applications" looks fun Aug 16 16:26:35 "Migrate existing applications and libraries to Java 9 modules" Aug 16 16:26:44 oh oh, well i hope those libs can still be used on android Aug 16 16:27:07 even if they aren't using any java 9 language features specifically Aug 16 16:27:15 Bernzel: maybe they are receiving the same event? Aug 16 16:27:56 what libs? Aug 16 16:28:25 any standard java libs that aren't android specific, but can be used on android often - like netty, etc Aug 16 16:28:34 3rd party stuff Aug 16 16:28:49 yeah, that’ll be a concern going forward Aug 16 16:29:07 i'm assuming eventually google would have to create some kind of manifest which says 'these are the modules in x version of android' so the tooling can keep working Aug 16 16:29:26 Arancio, I suppose since as soon as I touch down on one of the objects, the other one is re-positioned to that position. Which would be the Action_Down event I guess Aug 16 16:29:50 Hmm for sending encoded H264, do I need to send csd-0, and csd-1 first? Aug 16 16:30:42 but "why" the other object is affected still boggles my mind. Can'ẗ see that relationship happeninng Aug 16 16:30:50 Bernzel: I don't understand the details of your app. Maybe your are not handling an event originating from the source you think. Maybe it's originated above in the visual tree and it's legitimately handled by all receivers Aug 16 16:31:15 and you have to filter the events somehow Aug 16 16:31:33 can't help more, sorry Aug 16 16:31:46 Gotta go. Bye. Android forever the best! Aug 16 16:32:00 Bye ! Aug 16 16:36:41 i'm having trouble installing play services on my emulator, i've got the gapps apks downloaded, but i can't get /system to mount as RW even though i'm rooted on the emulator Aug 16 16:36:54 just keep getting Read-only file system as an error Aug 16 16:37:22 i don’t think you’re really able to install GPS on the emulator Aug 16 16:37:33 that’s why they make the Google Services images Aug 16 16:37:41 err, google apis images Aug 16 16:38:30 my image says Google APIs but i don't see the play store app Aug 16 16:38:36 yeah, it doesn’t have that Aug 16 16:38:56 how do i get play store on an emulator? Aug 16 16:39:01 you don't Aug 16 16:39:08 you might try using Genymotion Aug 16 16:39:36 ok, then how do i get the correct .apk from the developer console to test on my emulator? Aug 16 16:39:48 you download it on your machine Aug 16 16:39:53 Build it from source Aug 16 16:39:56 that too Aug 16 16:41:25 there's no way in android studio to get the signed apk onto the emulator? i just have to do it manually? Aug 16 16:41:36 there’s build & run Aug 16 16:41:45 but that is building from source Aug 16 16:41:52 sure there is Aug 16 16:41:54 i thought that built the debug version? Aug 16 16:41:56 edit the run config to sign the apk Aug 16 16:42:03 you can build whatever version you want Aug 16 16:44:19 Is it possible that the android local data(files, databases) is loss after app update? Aug 16 16:44:48 No Aug 16 16:46:08 a user send me a app screenshot that all the data is gone. Aug 16 16:46:30 hmm.. I found same case here http://stackoverflow.com/questions/25248616/how-to-prevent-android-app-data-loss-during-update-random-issue Aug 16 16:46:48 oh ok i got it, great. Aug 16 16:46:49 thanks Aug 16 16:55:48 ok, so now it seems like i still dont have the com.android.vending packages available on the emulator Aug 16 16:55:54 the signed app is working though Aug 16 16:58:13 why are you doing this on an emulator rather than a device? Aug 16 16:58:42 i just figured it would be easier since i only have one device and i need to log in as another user to test in app billing Aug 16 16:58:58 using a device is almost always easier Aug 16 16:59:43 ok Aug 16 17:00:01 Anyone knows if it's possible to tell Android Studio to download the source code of external libraries when it's available? Aug 16 17:02:50 It does that by default Aug 16 17:03:09 i dont see how to switch users on my phone, never even tried to do that before Aug 16 17:03:43 i'm showing some boxes in a surfaceView. Upon an external event, I need to update the position of a line. atm, I redraw all of the content of the SurfaceHolder upon the external event but the old content is still shown if there is nothing new on that particular spot. how do i force the canvas in the surfaceholder to be deleted before redraw? Aug 16 17:05:35 i dont even think my phone has multiple user accounts Aug 16 17:07:52 join #android Aug 16 17:11:44 Off topic subject... so i am ok... if i am ignored. But wow i think I an a great developer but when I ask a question and people give me bad responses. Like did you not know what I was talking about, I would rather they have just said, I didn't understand the question ( venting about a work meeting ) Aug 16 17:42:46 sci-fic - I have a feeling the issue with my negative numbers database is the database viewer i'm using :D. Aug 16 17:43:16 Were can I get the latest build of Android Studio Aug 16 17:43:42 https://github.com/thedathoudarya/AndroidDBvieweR such a handle tool Aug 16 17:43:49 satdav - google "download android studio" Aug 16 17:43:55 developer.android.com Aug 16 17:43:58 *handy little tool Aug 16 17:44:38 would be good for a github addon for Android Studio to push the code to github Aug 16 17:46:58 it already has a git client Aug 16 17:47:24 cool Aug 16 17:47:29 so I can connect it to github Aug 16 17:47:37 yup Aug 16 17:48:03 i personally don’t like it too much, and I prefer to use standalone clients, but others use it and like it quite well Aug 16 17:48:35 s73v3r, what one do you use for stand alone as I am using windows Aug 16 17:48:41 Sourcetree Aug 16 17:50:00 oh yes and thats free Aug 16 17:53:19 We've noticed that photos taken by the stock camera through the app - are zommed in - but at full resolution. Aug 16 17:56:53 +1 for source tree. Aug 16 17:58:05 truckcrash, I am downloading the latest version the now Aug 16 17:58:32 cool. yeah ,it is jut a personal preference for what you like best Aug 16 17:58:40 many people perfer command line Aug 16 17:59:14 i like source tree because it helps to visualize my history well Aug 16 18:00:04 do you use github or Bit bucket for the code but Aug 16 18:01:07 if you are ne wto git id recommend getting a handle on git alone without gthub, or source tree or bit bucket or any of that Aug 16 18:01:17 just familiarize yourself with git at the command line Aug 16 18:01:30 i use bitbucket, and a bit of github Aug 16 18:03:33 2 Aug 16 18:13:04 can anyone explain why the rectangles from paintSchema are overwritten by doSome()? and why there are multiple lines painted by doSome()? doSome is invoked periodically: http://pastebin.com/hZaXpGd5 Aug 16 18:21:32 Hi... SO is there alternative working libraries to Zip things with encryption on android? Aug 16 18:45:07 when you develop with android sdk and java, do you have technologies like web sockets or front end frameworks? Aug 16 18:46:32 wwwi: wat Aug 16 18:47:57 Hey guys, tried doing some googling on the issue but couldn't quite find what I was looking for. I'm making a custom keyboard and I'm wondering if it's possible for a user to press a button/image and have that image committed to whatever textfield is currently being typed in Aug 16 18:49:06 I should also mention that this keyboard isn't meant for a specific app, just meant to be used in any app that potentially supports having images pasted in (if it's possible) Aug 16 18:49:42 thepoosh: well, in the web you have frontend frameworks like angular, is there something similar for java? and how do you style the layout? is there something like css? Aug 16 18:49:55 oy Aug 16 18:50:18 wwwi: you just style it with the Android styles :| Aug 16 18:50:23 wwwi: there are many very different ways to accomplish that Aug 16 18:50:50 hey thepoosh Aug 16 18:50:52 how goes? Aug 16 18:51:00 tired Aug 16 18:51:05 just had a BBQ Aug 16 18:51:38 lucky you.. i cleaned the BBQ on Sunday and everything took an hour or two and then went to use it.. no gas :| Aug 16 18:52:13 i do only charcoals for now Aug 16 18:52:17 it's a pain in the ass Aug 16 18:53:08 wow in app billing is such a huge pain in the arse. amazing! Aug 16 18:53:12 especially when they are hot ಠ_ಠ Aug 16 18:54:16 why is there no good way to test in app billing? i have made a purchase using a test account so it's not charged. i want to be able to reset the purchase so i can purchase it again. i need to do this in the app, by consuming it, even though it's not consumable, and i also need to do it by updating my alpha apk on the developer console? Aug 16 18:54:46 so to do 1 test purchase takes about 1-2 hours, since that's how long it takes for google to update the version on play store Aug 16 18:54:51 is that correct? that seems... insane. Aug 16 18:55:16 greves, you don't need to update, only use the release version with same versionCode Aug 16 18:55:33 bitkiller, but i can't install it on my device as another user without going through the play store Aug 16 18:55:44 i have 2 google accounts on my device, and the main account is the developer account Aug 16 18:55:52 can i install it as the test account from within android studio? Aug 16 18:56:29 i think so Aug 16 18:56:36 how do i do that? Aug 16 18:56:47 or with adb install ... Aug 16 18:57:56 greves, u dont need to update the apk on the alpha version Aug 16 18:58:30 hi Aug 16 18:58:42 anybody there? Aug 16 18:58:43 just have your new apk have the same version/package as the one already on alpha Aug 16 18:59:17 if you want to continue testing, just add some test inapps on dev console, and change the sku on your app till you're satisfied Aug 16 18:59:21 but how do i install or run the application as the test user not the main user? so far when i have tried installing the release build from android studio it shows up as the default/main user, not the test user Aug 16 18:59:37 i have to download from google play (select test user account from within google play) and then it works Aug 16 18:59:46 Is there an equivalent to a java Map in libgdx? Aug 16 19:00:20 do you have your developer user on your phone? if so, id suggest testing on a developer free phone with test approved accounts Aug 16 19:00:42 developer free phone? Aug 16 19:00:43 i dont know what that is Aug 16 19:00:50 without a developer account on it Aug 16 19:00:52 i dont have a free phone, just my own phone Aug 16 19:01:10 i mean, where the user on the phone isnt the same as your developer account Aug 16 19:01:26 coz you cant test inapps with your own dev account Aug 16 19:01:46 I don't have any other phones except my own phone Aug 16 19:02:52 if your main account on the phone is the same as your developer account, dis a problem. Aug 16 19:03:06 thats what i meant - can i install or run or do something with adb or android studio so that it works with the test account? Aug 16 19:05:44 you need to add your test account to your phone Aug 16 19:06:05 nothin to do with adb/as Aug 16 19:10:43 guys would you mind seeing my code? http://dpaste.com/3T03AY5 my animation doesnt work when i press back but it work when i start activity Aug 16 19:17:50 raoul11, i'm not sure what you mean. i have added the test account to the phone, but how do i tell the app which google account to use when i try to make the purchase Aug 16 19:17:51 ? Aug 16 19:20:54 i have added both google accounts on the phone but i still only see 1 user account when i do `am list users` Aug 16 19:53:13 Hi guys, I'm working with retrofit, rxjava.... I create a retrofit singleton, however I wish to attach an auth header string if there is one persisted somewhere (curently in my SharedPreferences) . Any ideas how would I got about it? Is there some way to add it dynamically? Aug 16 19:53:38 Or point me in some other directio. This is my first android app, so any hints apreciated Aug 16 19:54:28 Use an Authenticator or Interceptor on OkHttp to set authentication Aug 16 20:02:40 Hey, for some reason when I display photos taken from an android camera in my app they're rotated about 90 degrees. iOS photos look fine and other photos look fine. Any thoughts? Aug 16 20:02:58 It's likely an exif issue, but I can't imagine google saves photos incorrectly... Aug 16 20:03:08 especially because they're oriented correctly in the android image gallery Aug 16 20:12:34 Hello guys Aug 16 20:12:49 I'm unable to connect my Android Virtual Device to internet. Aug 16 20:12:58 Hello, rangu. How are you? Long time no see Aug 16 20:13:03 I've tried to setup a proxy but it doesn't sem to work. Aug 16 20:13:20 Perhaps I'm not setting it the appropiate way. Aug 16 20:13:52 I've seen that before Android 2.1 was released, there was an option to setup a proxy through a flag. Aug 16 20:14:02 But now they removed that. Aug 16 20:14:17 * arancio wonders if his virtual devices can connect to internet Aug 16 20:16:00 * arancio wonders if Android Virtual Devices should have a virtual reality environment where you plug virtual ethernet cables for them to be able to connect to internet Aug 16 20:16:41 what? Aug 16 20:17:16 There is another way to run it through command line Aug 16 20:17:18 My virtual device was able to connect to internet out of the box Aug 16 20:17:19 it's like.. Aug 16 20:17:48 avd emulator-name -http-proxy Aug 16 20:18:29 Yeah but I need to setup a corporate proxy.. Aug 16 20:22:25 rangu, http://stackoverflow.com/questions/1570627/how-to-setup-android-emulator-proxy-settings Aug 16 20:27:05 arancio: thats what I've tried so far. Aug 16 20:27:52 "Android Programming, the big nerd ranch guide" is a simple book much better than other books (like "Professional Android Application Development") Aug 16 20:27:59 o/ hi. Can services not write to file while the app is closed? Aug 16 20:29:19 plugyn, what does "o/" mean? Aug 16 20:29:50 a little guy waving Aug 16 20:30:16 Services don't need an Activity to be able to write to a file, no Aug 16 20:30:33 i'm lost as hell as to why my service isn't writing to file :| Aug 16 20:30:54 it only writes it when my main activity (the only one i have) is open Aug 16 20:34:45 Xiaomi Note 3 gives {"/storage/emulated/0/etc"} back for ContextCompat.getExternalFilesDirs(context, null) Aug 16 20:34:51 But, behold! It is a tmpfs!! Aug 16 20:35:13 The directory your users are saving downloads to will magically disappear! Aug 16 20:35:44 -:{[( Thanks, Xiaomi! )]}:- Aug 16 20:36:23 plugyn, thanks for the kind explanation Aug 16 20:36:41 arancio: you're welcome! Aug 16 20:37:39 plugyn <3 Aug 16 20:38:06 hexagonSun_: <3 long time no see Aug 16 20:38:36 yeah, i've been kida away Aug 16 20:38:50 hard at it? c: Aug 16 20:40:05 definitely hard, how've you been? Aug 16 20:40:40 hexagonSun_: alright, haven't written any android java for about a month or two Aug 16 20:41:05 trying at this application fresh because i make delicious spaghetti code 24/7. it's working so far but now i got into the same problem as last time lol Aug 16 20:42:22 what u making? Aug 16 20:42:40 just a simple app that uses firebase cloud Aug 16 20:42:51 cool :p Aug 16 20:43:10 yeah c: it's fun so far but would much rather be learning haskell memes Aug 16 20:43:38 of course you would Aug 16 20:44:58 hexagonSun_: are you making anything atm? Aug 16 20:45:36 plugyn i'm doing an educational resource (app) for the university i work in Aug 16 20:45:52 very nice Aug 16 20:45:54 it's actually for very little kids, still in an analisis/planification stage Aug 16 20:46:04 been doing research so far Aug 16 20:46:07 awesome! Aug 16 20:55:40 Just thought I'd give this one last ask. Is there anyway to send an image through an InputConnection? I have a custom keyboard consisting of images as keys and I'd like to commit the image to the text field Aug 16 20:58:19 AlphaKatten: it would have to be a valid unicode character, images aren't text Aug 16 20:59:25 AlphaKatten: which is why, ultimately, emoticons can look different based on the font in use Aug 16 20:59:31 yeah I figured as much :/. So is it all possible to post images into textfields? Aug 16 20:59:40 Through some other means Aug 16 21:00:01 well, what exactly is this use case? Aug 16 21:00:12 AlphaKatten, make an input widget which can display text and images Aug 16 21:00:37 i'm not sure how emoji's are written but MAYBE you can convert that image into an "emoji-like-thing" Aug 16 21:00:51 but that's just a guess Aug 16 21:01:11 It's a custom keyboard that's supposed to work (hopefully) in facebook messenger, instagram, whatsapp, that sort of thing. The idea being you click an image on the keyboard and it sends the image through whichever app Aug 16 21:01:19 you ahve the keyboard open with Aug 16 21:01:37 Please add "o/" as "little-guy-waving" Aug 16 21:01:44 lol Aug 16 21:01:46 It's important Aug 16 21:03:02 :3 Aug 16 21:03:05 plugyn, I believe you just have to output the unicode escape sequence for it to be rendered. But in this case I'm just trying to send images, not unicode. I guess emoji is a poor way of explaining what I need Aug 16 21:03:25 AlphaKatten: ah, ok. Aug 16 21:03:29 AlphaKatten, anyway you need to write you advanced input widget Aug 16 21:03:44 your Aug 16 21:04:15 AlphaKatten: unfortunately, there's not a good way to do that Aug 16 21:04:32 take care plugyn Aug 16 21:05:22 I come from iOS dev so not as familiar with the android ecosystem. But how we're doing it int he ios version is copying the image to the pasteboard and then the user can paste the image directly into the text field Aug 16 21:05:56 I found this answer here: http://stackoverflow.com/questions/25240548/add-custom-image-as-emoji-in-android?lq=1 Aug 16 21:06:39 AlphaKatten: the issue is you'd have to have integration with their apps to do it Aug 16 21:08:37 AlphaKatten: I think the difference is that emojidom app linked isn't a keyboard Aug 16 21:08:46 herriojr, yeah I see what you mean Aug 16 21:09:06 you probably click on an emoji and then select which app to paste it to Aug 16 21:09:43 yup Aug 16 21:09:47 which is 100% doable Aug 16 21:11:27 Okay may have to go back to the drawing board then and consider doing something like that instead. It's too bad neither os really has a great way of doing an image keyboard like that, but way she goes Aug 16 21:11:34 Thanks for the insight everyone Aug 16 21:12:45 AlphaKatten: ultimately it comes down to the fact that the keyboard is literally to put text inside a textview Aug 16 21:12:58 not to push an image to your applicaiton Aug 16 21:13:16 AlphaKatten: you COULD do it if there was a standard put in place by those other applications Aug 16 21:13:47 AlphaKatten: like communicating over aidl or sending a broadcast to tell the other app to access an image you want it to Aug 16 21:13:57 herriojr, yeah that'd be nice Aug 16 21:17:08 I just re-read the spec Aug 16 21:17:18 sounds like I only have to support instagram and facebook Aug 16 21:17:21 Napalm lol https://github.com/golang/go/blob/496174e32e8983f46c6178cab250ea08f4d89dd2/src/cmd/compile/internal/gc/cgen.go#L2853-L3022 Aug 16 21:17:36 you almost had me interested in checking out Go, but then i saw that Aug 16 21:17:54 not sure I follow? Aug 16 21:18:08 /me whistles Aug 16 21:18:14 something about generics ... lalalalal Aug 16 21:18:27 * g00s waits until Go 2 Aug 16 21:18:35 im seeing but I dont get it? Aug 16 21:18:47 this is the compiler? Aug 16 21:19:03 I like my strongly typed languages most of the time Aug 16 21:19:07 i want generics, not that crap Aug 16 21:19:12 what crap? Aug 16 21:19:16 nm Aug 16 21:19:19 dude Aug 16 21:19:22 you get generics Aug 16 21:19:23 lol Aug 16 21:19:31 Go generics are not generics Aug 16 21:19:49 https://talks.golang.org/2012/10things.slide Aug 16 21:20:23 Can you program Android with Go? Aug 16 21:20:39 I think there’s something in Go for it, but it’s not officially supported Aug 16 21:20:57 so looks like arrays and maps are 'implemented' as generic types in Go Aug 16 21:21:17 arancio you can with Fucshia ! Aug 16 21:21:49 Fucks you? Aug 16 21:22:51 Ah, Fuchsia the LGBT OS from google. Aug 16 21:23:01 lol Aug 16 21:23:14 lol Aug 16 21:23:25 I hope the debug build is code named magenta Aug 16 21:26:12 What would cause android to rotate images in imageviews by 90 degrees? The photos were taken by android phones, (iOS images and web images look fine) and the images oddly enough are oriented correctly in the android gallery. Aug 16 21:27:08 eemgr_, are you sure that the images aren't actually "rotated" and that the gallery detects that and adjust the visualization? Aug 16 21:27:08 Exif Orientation meta data I would guess Aug 16 21:27:18 exactly Aug 16 21:27:34 it's almost certainly exif orientation, but i've taken the photo with the phone in portrait Aug 16 21:27:43 and it rotates it landscape CCW Aug 16 21:27:54 check the metadata to be sure Aug 16 21:28:18 one second, i can get an S3 URL Aug 16 21:28:27 In my experience, different phones will do it differently, some give you exif and other's don't, some rotate it for you and others don't Aug 16 21:29:48 okay, this one actually loaded consistently in the browser the same way it did an an imageview Aug 16 21:30:00 so maybe i'll stop looking into it Aug 16 21:30:30 long shot, but has anyone tried sofia (k/v db) on android ? its C so needs JNI bindings Aug 16 21:30:56 leveldb used to have android support but they dropped it i think Aug 16 21:30:58 i have just cloned a repository that had 2 projects : a library and an example Aug 16 21:31:23 g00s: no, but I've used another k/v implementation before on android Aug 16 21:31:28 g00s, I'll admit to avoiding JNI like the plague Aug 16 21:31:31 g00s: I think mapdb Aug 16 21:31:33 the example depends on the library , and is built supposed to be bundled together with it Aug 16 21:31:49 herriojr yeah, i've heard of mapdb. i think the latest version is writtin in kotlin Aug 16 21:31:57 or he was going to rewrite it in kotlin, dumb Aug 16 21:32:06 Affian yeah me too Aug 16 21:32:06 g00s: let me check, I used it about 1 1/2 hears ago Aug 16 21:32:08 for some reason, packages from the library are not found at runtime Aug 16 21:32:09 *years Aug 16 21:32:14 so i get a unknown type def error Aug 16 21:32:28 how can i solve this ? Compiling works, no issues in Android Studio Aug 16 21:32:38 no errrors, evrything looks good Aug 16 21:32:44 g00s: yeah, but it looks like he also translates it to java Aug 16 21:33:01 but part of the code (some classes) are never pushed to the android device Aug 16 21:33:09 so the types are not defined Aug 16 21:33:20 what could be the issue, and how do i solve/diagnose it ? Aug 16 21:33:42 i have attempted debugging, and the obvious happened (Exception) Aug 16 21:34:00 the repo i cloned is this : https://github.com/r0adkll/Slidr Aug 16 21:34:05 but this is irrelevant Aug 16 21:34:30 the code should work, it looks fine, and Android Studio shows no errors , builds fine, etc . Aug 16 21:34:32 HALP ! Aug 16 21:34:55 g00s: but yeah, I basically considered mapdb the local version of redis Aug 16 21:35:23 herriojr where do you see the java version? Aug 16 21:35:50 herriojr for just j/v i think mvstore is probably better, but sofia had prefix searches Aug 16 21:36:12 looks like it also has some nice time series features, which is why i was looking at it Aug 16 21:36:22 yeah, if you need prefix search, mapdb isn't the thing you want Aug 16 21:36:41 leveldb had that too Aug 16 21:37:42 but I mean, literally it's just a hashmap or a list or whatever, so you can search the data for prefix matches Aug 16 21:38:54 @g00s: https://github.com/jankotek/mapdb/ Aug 16 21:39:30 herriojr yeah, i've been following the project for a few years. there were a couple of red flags, decided not to use Aug 16 21:39:54 ok another question Aug 16 21:40:06 I'll have to look at some of the other ones you linked as I haven't glanced at them at all Aug 16 21:40:09 do i need a specific SDK in order to compile for a specific device? Aug 16 21:40:48 herriojr mvstore was originally based on old version of mapdb, but is now storage engine for H2 Aug 16 21:41:39 g00s: https://github.com/andreaTP/sophia-java Aug 16 21:42:24 g00s: unfortunately, the java bindings for maria aren't up to the latest version Aug 16 21:43:05 you could always fork the bindings :P Aug 16 21:44:46 soLucien: you can use the latest SDK to compile for most devices, but you need to set your minSDK target to the lowest one you plan to support Aug 16 21:45:38 so if i've installed sdk 24 i should be fine Aug 16 21:46:09 yes Aug 16 21:50:37 hey. what are you people deving right now? Aug 16 21:51:51 I'm checking out Kotlin Aug 16 22:00:05 kotlin ok Aug 16 22:00:50 SergioC, deving? Aug 16 22:00:54 fun Aug 16 22:01:26 I'm starting to get in shape with java coding Aug 16 22:01:34 android apps Aug 16 22:02:28 Affian, can you program Android apps in Kotlin? Aug 16 22:03:02 I guess yes Aug 16 22:03:05 Unsure, they say you can use it in Android Studio and it compiles down to the same JVM Aug 16 22:03:13 but why do you need kotlin? Aug 16 22:03:14 So I would think so Aug 16 22:03:24 I don't need it, it's just interesting Aug 16 22:03:50 Using Kotlin instead of Groovy would be great though Aug 16 22:04:06 theres so many alternatives tthat try to simplify (or maybe complicate) the code I dont understand why.. Aug 16 22:04:47 was checking butterknife Aug 16 22:05:07 okk but why?.. Aug 16 22:05:08 lol Aug 16 22:05:22 I'm perfectly happy coding my Android code in Java, but trying to deal with gradle files is a pain the the ass if you want to do unique or complicated things Aug 16 22:06:00 give an example of those things Aug 16 22:06:06 Hey, I'm using retrofit and rxjava. How can I get the messege from throwable onError if lets say I get a 403 response with Aug 16 22:06:08 "status": 409, Aug 16 22:06:09 "error": "Conflict", Aug 16 22:06:11 "exception": "com.ligu.carpooling.infrastructure.exceptions.UserAlreadyExistsException", Aug 16 22:06:12 "message": "This account email is already taken.", Aug 16 22:06:25 as json Aug 16 22:06:32 O.o Aug 16 22:06:53 simplify the code Aug 16 22:06:54 Beat the crap out of your backend people and then deserialize exception body_ Aug 16 22:06:55 ? Aug 16 22:07:18 SergioC, example: custom generated javadoc with automated deployment to github pages Aug 16 22:07:31 going to udacity classroom Aug 16 22:07:43 yey ok Affian Aug 16 22:07:56 Let's say I'm also responsible for the backend. What would be the best way to return that status? Aug 16 22:07:58 andrewgk, which version of retrofit? Aug 16 22:08:03 didn't get there yet Aug 16 22:08:05 andrewgk, the best way would be to return 409 status Aug 16 22:08:07 not 403. Aug 16 22:08:15 And then 409 as a payload, it's not how HTTP is built. Aug 16 22:08:36 oh fml that was a missspelling I meant 409. I'm only getting 409 Aug 16 22:08:41 If you want to return 409 error, return 409 HTTP error. Remember, the actual content of HTTP for errors isn't really defined (or commonly used). Aug 16 22:08:52 I am getting 409 with this payload: Aug 16 22:08:55 { Aug 16 22:08:57 "timestamp": 1471382706065, Aug 16 22:08:58 "status": 409, Aug 16 22:09:00 "error": "Conflict", Aug 16 22:09:01 "exception": "com.ligu.carpooling.infrastructure.exceptions.UserAlreadyExistsException", Aug 16 22:09:03 "message": "This account email is already taken.", Aug 16 22:09:05 "path": "/api/signup" Aug 16 22:09:06 } Aug 16 22:09:14 (Please use pastebin for these.) Aug 16 22:09:18 sorry! Aug 16 22:09:44 However throwable.getMessage() only returns 409 Aug 16 22:09:48 instead of that nice message Aug 16 22:09:53 Which version of retrofit do you have? Aug 16 22:10:20 retrofit:2.1.0 Aug 16 22:10:32 Please bear with me, started Android just yesterday. Aug 16 22:11:25 andrewgk, this I think pretty much addresses directly your issue: https://futurestud.io/blog/retrofit-2-simple-error-handling :) Aug 16 22:11:36 andrewgk: Please, please, please do not do that for your backend Aug 16 22:11:51 If the error is 409, then have the server return 409 Aug 16 22:12:18 there is nothing worse than having the server not return the proper error code, instead just choosing one at random Aug 16 22:12:54 nice server Aug 16 22:13:00 errorcode = rand() Aug 16 22:13:02 nevermind, I didn’t see it was a misspelling Aug 16 22:13:09 lol Aug 16 22:13:13 Sorry about that. Aug 16 22:13:41 Mavrik, any tips how would I go about applying it as an interceptor with rxjava observables? Aug 16 22:14:18 I have no idea what I'm doing to be honest. Someone give push me further in the right direction? Aug 16 22:14:51 StackOverflow: https://stackoverflow.com/questions/33815515/how-do-i-get-response-body-when-there-is-an-error-when-using-retrofit-2-0-observ :P Aug 16 22:17:36 Mavrik: thanks, I'll keep digging. Aug 16 22:17:58 Basically you get a HttpException, grab a body from that and deserialize it using a converter. Aug 16 22:18:21 It's not automagical since most of these frameworks don't really consider sending payloads in error messages. Aug 16 22:23:57 Is it a bad practice to send payload with error? Aug 16 22:24:31 if the payload can help you recover from the error, or give the user something actionable to do to resolve it, it’s fine Aug 16 22:25:22 Typically I just get the error code and translate the code into a user friendly error in the app Aug 16 22:26:05 how can i do multiple inheritance? e.g. class MainActivity extends AppCompatActivity, ListActivity Aug 16 22:26:13 you can't Aug 16 22:26:16 ^ Aug 16 22:26:25 the closest you can come is multiple interfaces Aug 16 22:26:35 and encapsulation Aug 16 22:26:39 and i would work to not get too crazy with that Aug 16 22:26:43 i want actionbar with listactivity Aug 16 22:26:49 don't Aug 16 22:26:59 use the actionbar activity, and just add a recyclerview Aug 16 22:27:33 recyclerview? Aug 16 22:27:42 the latest iteration of listview Aug 16 22:27:53 uhh, meant to say composition not encapsulation Aug 16 22:28:01 ^ Aug 16 22:28:04 that’s what you want Aug 16 22:28:25 i see so it will so deprecate? Aug 16 22:28:36 soon* Aug 16 22:28:39 i don’t think it will deprecate Aug 16 22:28:58 but recyclerviews are the future, and you’ll want to get familiar with them sooner than later Aug 16 22:28:59 since its latest listview Aug 16 22:29:30 recyclerview > listview Aug 16 22:29:38 and is meant to be a replacement for listview Aug 16 22:29:48 so s73v3r is right to just use recyclerview Aug 16 22:32:09 Has anyone had experience with trying to get more than one third party push service working in the same app? (Urban Airship/Mixpanel for example) Aug 16 22:32:59 like, for sending push notifications? Aug 16 22:33:03 Yup Aug 16 22:33:23 i can’t see that being anything but a pain in the ass. just choose one Aug 16 22:33:46 I totally agree with you Aug 16 22:33:48 you can still use the analytics and stuff from the other libraries, Aug 16 22:34:10 I tell people not to do it, but I still have to support them when they do :( Aug 16 22:34:44 tell them that implementing multiple services for the same thing will serve only to dilute their reach Aug 16 22:35:00 haha, love that wording Aug 16 22:35:29 that by sending push through multiple services, they’re going to end up sending conflicting messages because it will inevitably be different departments doing it Aug 16 22:36:09 by consolidating push sending through one service, with one group handling it, they can better stay on focus, and lessen the risk of multiple pushes being sent out at the same time, which users hate Aug 16 22:36:13 The GCM lib sends an implicit service intent that only hits the highest priority service that matches the intent filter. It's possible to create a service that hijacks the push received intent and forward it to the other libs Aug 16 22:36:45 it is, but that’s more complex Aug 16 22:37:15 Yeah, tempted to say "if you're intent on this path, here's how you do it, don't come crying to me" Aug 16 22:37:17 and what’s likely to happen is, either they’re going to split and run into the problems I pointed to above, or they’re gonna end up using only one, and it’ll be wasted effort anyway Aug 16 22:37:29 i wouldn’t even tell them how to do it Aug 16 22:38:10 i’m guessing this is the business wanting to send messages to users for promos and such? Aug 16 22:38:26 I actually came across an analytics lib that was using push to track uninstalls but didn't do push notifications itself, so it was blocking push notifications form getting to their actual push lib Aug 16 22:39:10 strange Aug 16 22:43:15 which lib was that, so I know to avoid it Aug 16 22:43:55 I'll see if I can find it again, give me a minute Aug 16 22:44:22 Why Android's toasts are called toasts? Aug 16 22:44:42 because they pop up like toast? Aug 16 22:44:43 cause they pop up Aug 16 22:44:55 Ah, cool Aug 16 22:45:02 Snackbars are cooler though ;) Aug 16 22:45:07 Thanks Aug 16 22:45:45 I didn't see the analogy Aug 16 22:50:38 s73v3r: https://support.appsflyer.com/hc/en-us/articles/207032126-AppsFlyer-SDK-Integration-Android Aug 16 22:50:49 Under 5.10 Track App Uninstalls Aug 16 22:52:07 what’s their guidance for solving the problem? They can’t expect anyone using their analytics to just not use push Aug 16 22:52:35 I haven't seen any FAQ or docs on any push platform around this issue Aug 16 22:54:24 Wish I could get in contact with some of these companies to see if they've had similar support issues, but I doubt they would be willing to share Aug 16 22:55:02 if you’re using their service, can’t you contact support? Aug 16 22:55:12 I'm not personally using it Aug 16 22:55:26 but your client is? Aug 16 22:55:32 or this is just something you’ve seen in the past? Aug 16 22:55:42 Client is Aug 16 22:57:18 I assume that the majority of people never run into this because they never consider using more than one solution to push Aug 16 22:57:40 because why would you >.< Aug 16 22:57:54 appsflyer also sends push? Aug 16 22:58:21 Don't think so Aug 16 22:59:10 i’m seeing the issue now. The client wants to be able to send push messages to users. but appsflyer is bogarting the push for it’s own uninstall tracking Aug 16 22:59:54 Yeah, but there's a chance that Push will work and appsflyer won't track uninstalls properly Aug 16 23:00:03 i think you’re gonna have to reach out to this company and ask them Aug 16 23:00:08 it all depends on which service is define first in the Manifest Aug 16 23:00:13 tell them your client is a user Aug 16 23:00:29 or ask the client for the credentials, so you can file a support request Aug 16 23:01:56 Not a bad idea Aug 16 23:02:18 it seems to be the best you can do, besides telling them to dump these guys Aug 16 23:08:52 The whole thing makes me sad, thanks for the help though Aug 16 23:13:17 Affian, the whole channel is mourning with you Aug 16 23:14:04 Hello... I am so utterly frustrated with how Android 6 handles SD cards. I converted my SD card to internal storage and now I have no idea how to access it anyhow .-. Aug 16 23:18:22 why would you want to access internal storage? Aug 16 23:19:55 TheSchaf: So I can use it with DriveDroid. Aug 16 23:20:03 how do i get the PreferencesFragment that is in android.R.id.content from the parent AppCompatPreferenceActivity ? Aug 16 23:20:05 i can't seem to get it Aug 16 23:20:22 i thought it would be: getFragmentManager().findFragmentById(android.R.id.content), but seems not Aug 16 23:20:53 android.R.id.content would be a layout Aug 16 23:21:12 Everybody in this channel seems to know more about Android than me Aug 16 23:21:16 TheSchaf: To be honest I'm shaving a yak here. I needed the SD card to use ext4 or something like it, because I cannot use FAT32. Aug 16 23:21:19 arancio, probably not me! Aug 16 23:21:39 Affian, ah... that would make sense. Aug 16 23:21:46 so how do i get it? Aug 16 23:22:32 the root element is , not fragment directly Aug 16 23:23:13 TheSchaf: I'm not trying to write an app to access it, I need to access it manually >.> Aug 16 23:23:31 I don't even know how to access the SD card through my PC via MTP. Aug 16 23:23:50 greves What about just making a PreferenceFrament instead and putting that inside your own activity? Aug 16 23:23:52 C0rn3j_: so maybe you want external storage, not internal storage :p Aug 16 23:24:15 Affian, I'm not sure I know what you mean? Aug 16 23:24:43 TheSchaf: Yeah... just found a forum post how to convert SD card to ext4... was confused and thought this would help me. Aug 16 23:24:59 greves https://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat.html Aug 16 23:25:03 i know that in most of the examples the PreferenceFragment is a static class inside of the Activity, I pulled it out into a separate class, but I don't actually see how that changes anything? Aug 16 23:26:10 actually I can just plop it in an adapter and use gparted, I'm stupid. Well thanks. Aug 16 23:26:39 Then you have a normal activity where you can use a tag in the layout, then you can use that tag's ID to get the reference to the fragment Aug 16 23:28:14 "normal activity" = AppCompatActivity or AppCompatPreferenceActivity ? Aug 16 23:28:21 AppCompatActivity Aug 16 23:29:40 so what should the layout be at the top? Aug 16 23:29:52 just a LinearLayout match_parent ? Aug 16 23:30:05 Yeah, pretty much anything Aug 16 23:30:26 If the fragment is the only child I think you could even use a FrameLayout Aug 16 23:32:40 trying this now Aug 16 23:32:47 FrameLayout is simpler than LinearLayout? Aug 16 23:33:16 It's a layout that only has a single child view filling it Aug 16 23:35:02 makes sense given the name Aug 16 23:37:08 alright well it appears that this is not the issue, because now i think i've got hold of the fragment by id and the text i'm expecting to update isn't updating Aug 16 23:38:43 Progress! Aug 16 23:40:41 i have the AppCompatActivity > PreferencesFragment, and there's a preference that when clicked launches another activity. i changed one of the SharedPreferences from that activity, but the OnSharedPreferencesChangeListener is not being called in the AppCompatActivity Aug 16 23:42:36 i am starting the 3rd activity (the one where a preference actually changes) via an OnPreferenceClickListener on one of the items in the PreferenceFragment, and it just does basic Intent ... startActivity Aug 16 23:42:50 any reason why the OnSharedPreferencesChangedListener would not be getting called from that activity? Aug 16 23:46:08 What kind of preference is it that you're using the extra activity? I haven't done it that way before so I'm not sure how it would behave Aug 16 23:46:33 it's an in app purchase, which itself is working fine Aug 16 23:46:56 basically pay a dollar and set the SharedPreference Aug 16 23:47:04 Right right Aug 16 23:47:42 and the preference is being set but the entry in the preferences fragment isn't updating? Aug 16 23:48:13 right, i'm just trying to grab the textView and change it from "Please support us" to "Thanks!" Aug 16 23:48:44 but i know the preference is being set because when i kill the app and restart it, the text shows up "Thanks" as expected Aug 16 23:48:47 it just doesn't show instantly Aug 16 23:50:28 I'm using a bit of a different setup Aug 16 23:51:19 you can use findPreference("pref_key") in the fragment on create, and set a listener on the Preference object it returns to listen for changes Aug 16 23:51:55 in Preference.OnPreferenceChangeListener you can call preference.setSummary("string"); Aug 16 23:51:57 do i need getPreferenceScreen().findPreference ? Aug 16 23:52:14 No, it's a method of the PreferenceFragment Aug 16 23:52:58 should my PreferenceFragment implement OnPreferenceChangeListener then? Aug 16 23:53:10 right now i only have AppCompatActivity implements OnPreferenceChangeListener Aug 16 23:53:23 OnSharedPreferenceChangeListener* to be exact Aug 16 23:54:22 https://developer.android.com/reference/android/preference/Preference.OnPreferenceChangeListener.html Aug 16 23:54:23 BigDecimal Added in API level 1, ok so why da fck does android studio says it needs API 24??? Aug 16 23:55:34 you’re using the wrong version Aug 16 23:55:45 look at your import Aug 16 23:56:12 import android.icu.math.BigDecimal; Aug 16 23:56:17 Java.math.BigDecimal was in API 1. API 24 added a version in an android math library Aug 16 23:56:24 yup, that’s the one in API 24 Aug 16 23:57:01 java.math.BigDecimal Aug 16 23:57:04 ok Aug 16 23:57:08 I found it Aug 16 23:57:11 change the import and you should be fine Aug 16 23:58:02 whats new in the android.icu.math.BigDecimal? Aug 16 23:58:30 just something more to crash the apps Aug 16 23:59:09 Affian, i've tried that too just now, it also doesn't do anything. but shouldn't it be the same whether i implement OnSharedPreferenceChangeListener in the Activity, or do myPreference.setOnPreferenceChangeListener on that preference specifically? Aug 16 23:59:11 i imagine it’s stuff more optimized to Android Aug 16 23:59:13 or mobile Aug 16 23:59:14 either way, the method is not getting called Aug 17 00:00:00 greves the way I mentioned means you get the Preference object that you can call setSummary() on to update the text value Aug 17 00:00:29 Affian, right, but the problem is that the listener method is not getting invoked Aug 17 00:01:52 Unsure of your exact setup, but it could be that the value is set when the preference activity isn't in the foreground, so the listener isn't registered at the time the value changes Aug 17 00:02:26 yes, i would assume that's it Aug 17 00:02:49 so maybe i should instead do the 3rd activity (IAB) as a `startActivityForResult` Aug 17 00:02:56 or use a broadcast receiver? Aug 17 00:03:39 Can you get a result from the payment activity and when it returns successfully and then use findPreference("something").setSummary("thanks") Aug 17 00:03:43 or update the preferences in .onResume? Aug 17 00:04:02 startActivityForResult makes sense to me Aug 17 00:08:54 wow that works perfectly Aug 17 00:08:55 great Aug 17 00:08:59 Yay, nice Aug 17 00:09:37 Make sure your fail-case works too Aug 17 00:10:21 what is the fail case? Aug 17 00:10:25 you mean no successful purchase? Aug 17 00:10:33 yeah Aug 17 00:11:18 should be fine, the method onActivityResult just calls an `updateUi` helper method that reads the preferences directly Aug 17 00:11:30 so once `updateUi` is called the display will be correct based on the current preferences Aug 17 00:11:39 Sweet, sounds good Aug 17 00:12:13 just got one more use case that's not working just yet Aug 17 00:12:22 although this is possibly significantly more complicated heh Aug 17 00:12:49 2 more uses cases. i want to be able to launch that purchase dialog from another button within my app, and account for promo codes that somebody has added on play store. Aug 17 00:13:40 currently if i launch the dialog from another button within my app, the preferences screen doesn't update. i haven't tried the external promo code thing yet Aug 17 00:15:50 i think if i move the call to getDefaultSharedPreferences() into `onResume` it would work though, maybe? Aug 17 00:19:53 oh no that would be the same object... hmmm Aug 17 00:27:22 if i wanted to have an "Add New" button for my Spinner Dialog... am i better off just popping a DialogFragment from a textview onclick? Aug 17 00:27:29 "Verizon Wants To Sell App Installations On Your Phone To Advertisers" Aug 17 00:27:39 bwahaha verizon, those %$%^ :D Aug 17 00:36:09 gorila banana Aug 17 00:36:17 lets build a game Aug 17 01:35:14 Are there tools out there for enforcing code styles using lint in Android studio? Aug 17 02:01:17 joeypardella, hi jeopardy-ella Aug 17 02:02:08 hai Aug 17 02:08:44 g00s, gonna go bleeding edge w/#fuchsia? Or izit way too soon even for early adopters? 😛 Aug 17 02:09:24 hi guys is there a channel for android system development Aug 17 02:10:02 #android-root? Aug 17 02:10:27 thanks Aug 17 02:10:58 np Aug 17 02:13:10 capella-5x i'm not sure if anyone even knows what it is yet :D Aug 17 02:13:24 i hope its the next thing, need a breath of fresh air Aug 17 02:15:11 Can I get the "wrapped_content" height of a layout Aug 17 02:15:16 ie, the height of all its children Aug 17 02:15:21 dynamically / programatically Aug 17 02:15:45 I want to resize a view from a fixed height to wrap_content. Aug 17 02:17:08 The Next Big Thing... (can't find my trademark unicode char) Aug 17 02:17:49 there actually is a #fuchsia Aug 17 02:19:33 si g00s you're sick of Android and welcome the new overlords 😊 Aug 17 02:21:34 what us this about? Aug 17 02:30:55 this is about android app development, and I went mildly off-topic Aug 17 02:33:11 ™️Found it! **** ENDING LOGGING AT Wed Aug 17 02:59:58 2016