**** BEGIN LOGGING AT Sat Sep 24 02:59:58 2016 Sep 24 03:11:50 huh, it's already incremental... Sep 24 03:15:51 looks like this is from August, but fairly recent Sep 24 03:16:01 incremental while still using annotation processor Sep 24 03:17:11 hmm, the list of supported libs is pretty small but includes dagger, etc Sep 24 03:29:27 I think this little experiment demonstrates that something isn't right about Android's measure/lay-out system: Define a FrameLayout with a single child. The child is match_parent x match_parent, and it has a red background. The FrameLayout has a blue background, but of course this isn't visible. Sep 24 03:29:44 Now say `frameLayout.layout(...);` at run time, increasing its size. Sep 24 03:30:02 The end result is that the red box stays the same size, but now you can see blue. Sep 24 03:30:40 An inconsistency between the size of the child (it's already measured itself) and the size of the background (it changes measurements on demand). Sep 24 03:31:35 Since the child is match_parent x match_parent, I think it's fair to argue that blue should never be visible. **** BEGIN LOGGING AT Sat Sep 24 03:37:52 2016 **** BEGIN LOGGING AT Sat Sep 24 03:48:26 2016 Sep 24 03:49:55 I think FrameLayout and LinearLayout also get it wrong. In `onLayout`, they should be using `this.getMeasuredWidth` and `this.getMeasuredHeight()` instead of `right - left` and `bottom - top`. Then there'd at least be consistency between child sizes and child positions. Sep 24 03:50:10 getMeasuredWidth()* Sep 24 03:51:42 If you resize a FrameLayout using View.layout, and it has a match_parent x match_parent child with `android:layout_gravity="bottom"`, the child doesn't change size but does jump to the bottom. Seems a bit weird. Sep 24 03:54:00 I'd conclude that, other than `changed`, the parameters of View.onLayout should be ignored. View.getMeasuredWidth and View.getMeasuredHeight should be used instead. Sep 24 03:55:39 Unless we need absolute positions (e.g., left and top), but even then I'm concluding that the other two should be ignored. Sep 24 03:59:33 I don't understand why they had to change the Design Editor. It's clunkier now and there's this bug that makes scrolling Properties windows really, really slow. Sep 24 04:01:55 TacticalJoke: I haven't fought the layout engine since a few years ago, but I recall it being a struggle. Sep 24 04:02:59 I kinda like it on the whole, but the fact that View.layout can set a new size has always bugged me. I've always felt it should be for setting the position only. Sep 24 04:03:36 Like `void View.layout(int left, int top) { int right = left + getMeasuredWidth(); ... }`. Sep 24 04:04:03 And also `layOut`, not `layout`. :D 'Layouting' and 'layouted' are ridiculous. Sep 24 04:04:35 Idiosyncratic: I find the whole thing (including the Preview window) slower now. Sep 24 04:04:46 Though the blueprint thing looks kinda neat. Sep 24 04:05:41 you can take my xml when you pry it from my cold, dead hands Sep 24 04:06:24 Maybe they should've dropped the 'lay out' terminology. It's a clunky phrase. 'Position' is simpler: View.position(int left, int top) Sep 24 04:06:37 Position/positioning/positioned. Sep 24 04:08:02 TacticalJoke: switching to Oracle's JDK made it a bit smoother, but the new designer still sucks Sep 24 04:08:39 Idiosyncratic: Do you use it for anything other than ConstraintLayout? Sep 24 04:08:39 I have to press a lot of clicks now in order to do stuff that took only a few clicks in 2.1.3 Sep 24 04:08:50 TacticalJoke: ? Sep 24 04:09:19 Outside of ConstraintLayout, isn't it better to write XML by hand? Sep 24 04:09:55 TacticalJoke have you tried CL yet ? Sep 24 04:10:00 Nah. Sep 24 04:10:04 Way too lazy. Sep 24 04:10:12 lol Sep 24 04:10:27 I bet it ends up slower than hand-crafted ViewGroups. Sep 24 04:10:28 it'd like to but its alpha8 ... Sep 24 04:10:34 TacticalJoke: not really. I need my gooeis. Sep 24 04:11:32 Idiosyncratic: Hmm, I don't really see any advantage of that. Just annoyances. Sep 24 04:12:57 I love GUIs too. I'd pick an "Install GNU/Linux" button over spending hours setting up Slackware. Sep 24 04:13:23 That button is Stallman-friendly. Sep 24 04:13:34 TacticalJoke: GNU/Linux? What distribution is that? Sep 24 04:14:14 It's a distribution of the GNU operating system. Sep 24 04:14:29 TacticalJoke: can't be. Linus invented Linux. Sep 24 04:14:33 Or GNU system. **** BEGIN LOGGING AT Sat Sep 24 04:19:19 2016 Sep 24 04:21:06 <92AAADD44> lolwtf Sep 24 04:21:45 Leeds http://www.wsj.com/articles/an-era-in-hong-kong-is-ending-thanks-to-chinas-tight-embrace-1474647072 Sep 24 04:22:22 TacticalJoke: anyway, I was just messing with you :) Sep 24 04:24:03 Idiosyncratic: I hope you're using Linux-libre, for maximum freedom[tm]. Sep 24 04:25:20 TacticalJoke: but I like my digital handcuffs Sep 24 04:25:47 g00s has a wsj sub? Sep 24 04:28:36 TacticalJoke: they sparkle when I get outside out of a Microsoft forced-labour mining camp Sep 24 04:28:56 TacticalJoke: and the Google collar that explodes if I take it off is definitely in this season Sep 24 04:30:32 TacticalJoke: can freedom compare to this?! Sep 24 04:33:02 TacticalJoke other day you asked me what OS will be popular in 20 years ... Sep 24 04:33:31 starting to wonder, if we'll even be around then ,,, http://www.rollingstone.com/politics/news/the-point-of-no-return-climate-change-nightmares-are-already-here-20150805 Sep 24 04:33:45 g00s: lol Sep 24 04:34:22 Damn, poor things Sep 24 04:35:51 g00s: but hey, it'll be an adventure to kill your neighbours over farm land when civilization goes to hell Sep 24 04:36:07 Is it bad that part of me wants to see the planet go up in smoke? Sep 24 04:36:33 TacticalJoke Giant Meteor 2016 Sep 24 04:36:43 TacticalJoke: we're all going to die one day, so why not sooner than later? Sep 24 04:36:49 That sounds like an awesome game. Sep 24 04:37:10 TacticalJoke did you ever see Melancholia ? Sep 24 04:37:20 http://www.imdb.com/title/tt1527186/ Sep 24 04:37:29 Nah. Sep 24 04:38:11 "13% of Americans say they would rather vote for a ‘giant meteor hitting the earth’ than Trump or Clinton". That's /r/me_irl material right there. Sep 24 04:38:23 Can we really vote for that? Sep 24 04:38:25 in that movie, all the normal people start freaking out, and all the depressed people become normal (when they hear a planet is going to collide with earth) Sep 24 04:38:30 haha Sep 24 04:38:51 The depressed people can finally relax. Sep 24 04:39:06 TacticalJoke yeah, they are like 'woohoo , the end !" Sep 24 04:39:43 I should watch that. Sep 24 04:40:38 My grandmother told me once there was such a big snowfall one year that the height was bigger than the average person. They literally had to make tunnels. This was in Southern Romania where it's mostly plains too. But this past decade, snowfall has become less and less pronounced. Sep 24 04:41:15 *that the snow's height was higher Sep 24 04:41:39 Idiosyncratic yeah i saw stuff like that in switzerland Sep 24 04:42:51 how do i get AS to refresh its gradle cache ? Sep 24 04:43:39 g00s: delete .gradle from the root project and your $HOME? (note: $HOME one has important stuff in there so delete the caches folder) Sep 24 04:43:44 Is it Tools > Android > Sync project with Gradle files? Sep 24 04:43:44 g00s: but this is just an idea Sep 24 04:45:12 Oh man, look at this code generated by the designer: android:id="@+id/@+id/rate_popup_message"/> Sep 24 04:45:44 They had ~3 months to make this release and it's buggy as hell Sep 24 04:46:20 well, tnorbye said if they fixed all the high priority bugs it wouldn't be out til next year :P Sep 24 04:47:08 His name should be Norbyte. Sep 24 04:48:14 If I were close to Silicon Valley, I would tie a letter with this bug report and throw it at one of Google's offices Sep 24 04:48:40 https://www.reddit.com/r/androiddev/comments/53iqji/android_studio_22_released/d7ti83r Sep 24 04:48:46 Through their windows Sep 24 04:49:05 Everyone should submit bug tickets this way Sep 24 04:49:16 <[Saint]> I find it really difficult to believe that AOSP hasn't "liberated" Samsung's way of dealing with 'Unknown sources' yet. Sep 24 04:49:16 <[Saint]> That seems a funny thing to have patent restriction on, but I wouldn't put it past Samsung at all. Sep 24 04:49:16 <[Saint]> (for reference, I mean the ability to "Allow unknown sources just this once". Sep 24 04:49:18 <[Saint]> ) Sep 24 04:50:15 <[Saint]> Without that, Joe Average is almost certainly not going to remember to ever turn vetting of unknown application sources back on again if they turn it off. Sep 24 04:50:19 Idiosyncratic: I would just drop the Design view. :D Sep 24 04:50:28 I think nobody in here uses it. Sep 24 04:51:11 Samsungs got a new tv display based on quantum dots already?? Sep 24 04:51:14 TacticalJoke: that's as useful of a suggestion to me as telling me that I should use ed for my refactoring Sep 24 04:54:49 TacticalJoke: I paid Google 25$ *and* I'm programming for their devices and making them popular; I demand a quality IDE from a company that could buy half of Africa if they wanted to Sep 24 04:55:33 Idiosyncratic they are preparing you for the day there is only 1 corporation, and its selling you air Sep 24 04:57:13 g00s: sell me air and claim a copyright on its molecules too Sep 24 04:57:21 I'm surprised we don't have to work to buy air already. Sep 24 04:57:59 TacticalJoke well technically in the US you do, because the ones with lowest incomes often have the lowest air quality Sep 24 04:58:10 If air could be switched off, I bet some company would try to sell it. Sep 24 04:58:13 either they are downwind from a coal plant, etc Sep 24 04:58:36 Ahh, true. Sep 24 04:59:57 g00s: maybe they should've paid more attention in school and make best use of their 1 million dollars that they inherited from their parents Sep 24 05:01:40 "It has not been easy for me. And you know I started off in Brooklyn, my father gave me a small loan of a million dollars." - Trump Sep 24 05:02:09 What did *you* do with your 1 million dollar loan from your father?! Sep 24 05:05:27 To be honest, I do deserve to be of lower-middle class because I wasted my million dollar on vacations in Ibiza Sep 24 05:09:53 dang sprites take up alot of space dont they Sep 24 05:09:57 like isnt a scrolling background usually 10 mb ? Sep 24 05:10:32 like no wonder so many games are so simple.. they cant make them detailed without making it like 300 mb game no one would want to stuff on their phone Sep 24 05:12:19 Holy shit, using the designer is breaking A LOT of stuff Sep 24 05:14:57 I'm gonna ask a favor from the Russian mob to leave a dead horse's head in the Google CEO's bed Sep 24 05:19:17 Hmm. It seems like the guy's an Indian. Then a dead cow's head would be scarier. Sep 24 05:19:19 Idiosyncratic: Just wondering (I've been away from this channel for a while) -- have you been doing Android stuff for long? Sep 24 05:19:48 TacticalJoke: 3 months :D Sep 24 05:21:04 The max size of a android game/app is 50 mb to upload ? or how do you go over that Sep 24 05:21:10 The Stockholm syndrome is probably setting in right now. Sep 24 05:23:25 TacticalJoke: lol Sep 24 05:25:58 because the main issue everyone has when making an android game is size right ? Sep 24 05:26:27 like it has to have big images for these HD phone screens and only 50mb Sep 24 05:26:50 so its like all about being clever to make the game great with less than 50mb Sep 24 05:27:08 aka little variation in sprites Sep 24 05:28:07 NateRiver: not sure if people will notice the difference between high and low compression if you do it right Sep 24 05:28:45 ohh okay. Cool, thats a good point Sep 24 05:29:28 i was just looking at my png file sizes and thinking "wow these are big" maybe i need to learn compression Sep 24 05:29:31 NateRiver: I'm not making a 3D game, but my application does display ~100 images of a minimum width of 800px and my whole APK's ~12mb Sep 24 05:29:55 NateRiver: oh, they're PNGs? You can't compress 24bit PNGs :( Sep 24 05:30:12 NateRiver: if the images don't need transparency, go for JPG Sep 24 05:31:24 <[Saint]> depending on the use case SVGs might save you some weight, at the cost of come complexity. Sep 24 05:36:10 NateRiver: PNG8 can be "compressed", though Sep 24 05:39:49 NateRiver: actually, just use PNG8 Sep 24 05:45:20 okay thank you. Im looking into it now Sep 24 05:47:44 Guys does AdMob have anything to do with the Russian mob? Sep 24 05:51:14 is their any way i can control the scrolling speed of code in Android Studio 2.2 Sep 24 05:52:18 after upgrading to MacOS Sierra, scrolling is super fast. want to slow it down in AS only. Sep 24 05:58:10 Can't you learn to read faster? Sep 24 06:18:34 Arancio: Arancio2: impossible for me to read that first Sep 24 06:19:58 t2mkn: seriously, if the change happened after an OS update maybe the cause is in the OS, not in the application (Android Studio) Sep 24 06:21:56 yes cause is os. but there are options in java to control the speed of scrolling. AS people should add it somewhere. Sep 24 06:22:28 Arancio: I'm not sure about this, but it may have to do with the bundled OpenJDK as of AS 2.2 Sep 24 06:22:51 not possible i guess. Sep 24 06:23:01 No scrolling problem here on Windows 10 Sep 24 06:23:14 any ways its. ok i can manage. Sep 24 06:23:21 t2mkn: what do you mainly use for java? OpenJDK or Java's JDK? Sep 24 06:23:40 java jdk Sep 24 06:24:07 t2mkn: can you try renaming the jre folder to something like jre.bkp and restart Android Studio and see if that helps? Sep 24 06:24:17 t2mkn: that's in your Android Studio Sep 24 06:24:36 i have tried that. not working. Sep 24 06:25:40 AS people need to release a fix for Sierra soon. Sep 24 06:26:13 any ways, get to go. i will look for options later. have a nice time people. bb. Sep 24 06:26:59 Idiosyncratic: so you are affiliated with the mob? This "Ad" mob? Sep 24 06:27:54 Arancio: I hustle "make money online" ads for them Sep 24 06:28:59 Idiosyncratic: do you have experience with "swipe to delete" items in RecyclerView? Sep 24 06:29:24 Arancio: I don't have the slightest clue as to what's a RecyclerView :D Sep 24 06:29:49 Idiosyncratic: ok. Thanks. Sep 24 06:30:06 Haven't dabbled into Fragment stuff Sep 24 06:46:14 I don't feel like programming today Sep 24 06:50:05 Did they remove the refresh button from the designer? I can't find it Sep 24 06:57:08 They removed the device chrome from the designer! Sep 24 06:58:07 They removed the refresh button because not the designer is perfect and you don't need to tell it to refresh anymore Sep 24 06:59:34 Arancio: of course! Sep 24 07:14:53 Idiosyncratic: can you choose how big are the ads displayed with AdMob? Sep 24 07:15:07 Arancio: yeah Sep 24 07:15:45 Arancio: https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize Sep 24 07:15:59 Do you have any statistics on how often people follows the external links in your game? Sep 24 07:16:03 follow Sep 24 07:16:13 Arancio: external links? You mean clicks? Sep 24 07:16:42 Idiosyncratic: no, the external links that provide more information about the question topic Sep 24 07:16:57 Arancio: oh. Nope. Don't really care. :D Sep 24 07:18:01 Arancio: would have to make some analytics thingy for that afaik Sep 24 07:19:04 Idiosyncratic: you should care. If people uses that links you could remove some of the ads from the main game workflow and add them between the click and the redirection to the information page Sep 24 07:19:49 Arancio: yeah, I don't really think that people would bother actually clicking those links Sep 24 07:20:01 Arancio: I only added them so that it's more "professional-looking" Sep 24 07:20:09 -.- Sep 24 07:21:46 Arancio: I got the streets smarts, bro. I think I have a pretty good idea about how the masses work. Sep 24 07:22:22 Somehow that sounded less cringy in my head Sep 24 07:24:55 :D Sep 24 07:25:50 What about geo-localized trivia? Sep 24 07:26:15 "Trivia Go" Sep 24 07:26:29 Arancio: what do you mean? It has a Romanian language option Sep 24 07:26:38 "Trivia Go" Sep 24 07:27:42 Arancio: I'm not sure about this, but the uniqueness (read: retardedness) of my app's name might give SEO/ASO juice Sep 24 07:27:54 You wander about interesting part of a city and a quiz about what you see pops up on the screen of your smartphone Sep 24 07:28:54 Arancio: bro, I'm a single guy doing all of this. That kind of stuff takes a lot of people to make. Sep 24 07:29:12 You'll find someone Sep 24 07:29:22 Arancio: yeah, me Sep 24 07:29:41 someone else, several people Sep 24 07:29:49 you'll make millions Sep 24 07:30:08 you must believe in yourself Sep 24 07:30:38 make a small scale demo Sep 24 07:30:43 Arancio: stop with yer trolling :P Sep 24 07:30:56 I'm not trolling Sep 24 07:32:14 I'm sorry you dismiss everything I say as trolling Sep 24 07:33:15 The fact that I'm a troll doesn't mean that everything I say is trolling Sep 24 08:25:27 raoul11: good morning, friend raoul! Sep 24 08:25:46 hello Arancio Sep 24 08:37:37 My programming superpowers are weakening. I need to eat some ice cream. Sep 24 08:44:47 Arancio: i don't think it helps. Can attest, just had some Sep 24 08:45:38 if i had coded the adoptable feature to board config file. There will be any crashes in the android os Sep 24 08:46:07 setprop persist.fw.force_adoptable 1 Sep 24 09:04:22 if i set this properties "setprop persist.fw.force _doptable 1" hard coded in the board config file there will be any issues with the Android OS Sep 24 09:26:52 Robdgreat: dosage is very important in things related to superpowers. Your probably didn't eat enough. Try eating more of it Sep 24 09:27:39 Arancio: This. Changes. Everything! Sep 24 10:09:47 Why there is no visual difference between enabled and disable option menu items? Sep 24 10:10:09 Can we use Java 8 with Android Studio 2.2? Sep 24 10:10:17 yes Sep 24 10:12:26 Cool. I missed Enumerations from C#. Streams should be the Java equivalent Sep 24 10:13:24 Today the method completion in Android Studio showed the List#stream() method Sep 24 10:27:48 SpeedEvil: why did you trade space for speed? Sep 24 11:05:24 raoul11: important question: is there ad revenue after 5 euros? Has anyone come back to confirm that you can indeed make money with AdMob? Sep 24 11:06:08 lol no :) Sep 24 11:07:17 Mavrik: but the blog posts say otherwise Sep 24 11:07:22 DO THE SCRIPTURES LIE?! Sep 24 11:07:29 As we had a talk already. Sep 24 11:07:38 Look at CPI / CPC. Sep 24 11:07:49 And conversion rates. Sep 24 11:07:55 And then calculate how many users you need to make money. Sep 24 11:07:57 :) Sep 24 11:08:07 If you have that much users - yes. :) Sep 24 11:08:14 Hmm. Made 0.08 euros today. Sep 24 11:09:14 Mavrik: well, I'm looking to get ads displayed to 1st world countries since they value more Sep 24 11:09:28 Mavrik: I had the incredible luck to get 3 euros from a *single* click Sep 24 11:09:32 *of getting Sep 24 11:09:33 Did you look at that numbers yet? Sep 24 11:09:56 Mavrik: TED talks say that you need hope and self-confidence, not numbers Sep 24 11:10:27 TED Talks and a thick rope. What else do you need in life? Sep 24 11:10:31 So I won't look at the numbers. The numbers are haters. Sep 24 11:10:46 3EUR per impression is ridiculous Sep 24 11:10:53 Are you sure you're looking at the right numbers? :P Sep 24 11:11:10 Mavrik: I'm serious Sep 24 11:11:18 2-3 EUR per 1000 impressions is something that's sustainable. Maybe. Sep 24 11:11:23 At least it was a couple of years back. Sep 24 11:11:28 Mavrik: I got 3EUR per *one* click Sep 24 11:12:15 Right. Sep 24 11:12:18 Must've been an ad of a Swiss diamonds trader Sep 24 11:12:24 Mavrik: you don't believe me? Sep 24 11:12:43 https://media.mnn.com/assets/images/2014/05/dont_believe.jpg Sep 24 11:12:55 Mavrik: I already said that I'm still at almost 6EUR. Why would I lie that I got lucky? Sep 24 11:13:06 Meh, whatever Sep 24 11:14:01 https://www.scirra.com/forum/what-is-admob-average-pay-per-click-and-earnings_t95243 Sep 24 11:14:27 But meh, I'm refining this app a little bit and I'm going to go back to webdev Sep 24 11:14:50 https://monetizepros.com/cpm-rate-guide/mobile/ Sep 24 11:15:26 Most reports don't ever go over 10$ eCPM Sep 24 11:15:45 Which means that in best fluffiest case scenario you'll earn 10$ for each 1000 impressions of an interstitial Sep 24 11:15:48 Banners are worth less. Sep 24 11:15:51 Videos are worth more. Sep 24 11:15:54 Do your math. Sep 24 11:17:26 Also, you have your own dashboard, it certanly shows your own eCPM. Sep 24 11:18:57 Mavrik: 3.69EUR Sep 24 11:19:37 Mavrik: but I have a really low number of downloads right now Sep 24 11:21:34 That sounds about right Sep 24 11:21:37 Idiosyncratic: can you know how many people didn't de-install your app after they downloaded it? Sep 24 11:22:04 Arancio: there's probably some analytics about that, but it's a hater analytics Sep 24 11:22:24 So that means you earn about 3.7EUR for every 1000 shows of your app. Sep 24 11:22:43 Now use fabric / dashboard to figure out how many impressions you actually make (how often people open your app) Sep 24 11:23:09 Mavrik: 3 weeks = 1.4k impressions Sep 24 11:23:40 Which would mean ~6EUR/month Sep 24 11:24:14 Flappy Bird made $50.000 a day! Sep 24 11:24:50 Idiosyncratic, yeah, so now you need to figure out how do you get to 104.000 impressions to make 600 a month :) Sep 24 11:24:53 The plan is perfect. I just need to browse Bahamas realtor websites to pick which mansion I'll buy right now. Sep 24 11:25:55 Mavrik: but I shove ads into people's faces the right way. If I were to get loads of idio... I mean users, I could make some meager sum. Sep 24 11:26:44 Mavrik: and analytics show me that most of my users are European/North American, so ads will worth more Sep 24 11:27:04 Yes, they're worth more - 3.7EUR/1000 Sep 24 11:27:10 Otherwise you'd be at 1.5EUR/1000 Sep 24 11:27:19 Mavrik: :P Sep 24 11:28:03 ^^ Sep 24 11:28:17 We need to teach people to buy their software again :P Sep 24 11:28:43 Mavrik: I know that you're giving me this advice half because of you legitimately want to help me and the other half because of schaudenfreude, but I think that I know my odds :P Sep 24 11:29:39 *wanting Sep 24 11:30:11 People buy the software that is worth buying Sep 24 11:30:30 Idiosyncratic, I just managed to work for a company trying to compete with admob and others for awhile Sep 24 11:30:34 And I've seen the internal numbers. Sep 24 11:30:52 Ads just don't work unless you have obscene amount of users and marketing power. Sep 24 11:31:11 2-3 dorrah/euro per 1000 impressions is pretty much the avg on the decent companies Sep 24 11:32:04 Yeah, there's things like videos that pay more Sep 24 11:32:09 But I'm not a company :( Sep 24 11:32:26 Legally, I am a freelancer, but I'm not a company :( Sep 24 11:32:31 And if you focus on clicks you might be better with "native" ads in side your dataset. Sep 24 11:32:33 including vid interstitials Mavrik Sep 24 11:32:48 But that just pisses off users more so you're not making all that much more. Sep 24 11:32:50 higher than 5$ eCpm is big Sep 24 11:32:50 raoul11: that's how I get most of my impressions and clicks Sep 24 11:34:32 Mavrik: I would like to have the algorithm that detects when an user's potential to give me money reaches zero and use it so that just before he uninstalls my app I can give him a "Fuck you!" image. Just to add to the pissing off factor. Sep 24 11:35:01 also, 1000 impressions on a short period of time (a few hours) will yield more revenue than 1000 impressions on a longer period of time (like a week) Sep 24 11:35:02 Then don't give your app out for free. Sep 24 11:35:04 :D Sep 24 11:35:42 Mavrik: I would put a price on it, but I'd have to do more legal stuff Sep 24 11:36:26 I mean, to have the legal right to sell digital coins Sep 24 11:38:56 I can imagine the cashier lady's bewildered face if I would tell her that I'm selling digital candy bars with which to give more energy to your Talking Tom clone Sep 24 11:41:29 "Kids, your virtual cat will die of starvation if you don't pay 50$ for this booster pack! Pay it, you sick fucks! Look, he's all skin and bones! You'll grow up to be hateful and unloveable adults if you don't save Tom!" Sep 24 11:43:11 Sep 24 11:43:26 You should try to make an application that could be used by people you do not despise. Sep 24 11:48:54 Yeah, kinda helps :) Sep 24 11:59:30 Can anybody explain me why there is no visual difference between enabled and disable option menu items? Sep 24 12:00:28 I have two undo/redo buttons and you can't tell if you can undo/redo something without pressing the button. What's the sense of preparing the option menu? Sep 24 12:00:31 Hey all. Sep 24 12:00:39 Hi Sep 24 12:01:16 I was in here about a month ago with a Windows XP issue, because my laptop is circa 2004 boasting Pentium4 non-HT technology. LOL Sep 24 12:01:21 WrinkledCheese_: Remember that name-calling is not allowed here. Sep 24 12:01:41 Arancio, ? Sep 24 12:02:34 WrinkledCheese_: don't make me call names, ok? It's not allowed. Sep 24 12:02:51 Chu talkin' bout Willis? Sep 24 12:03:05 Who is Willis? Sep 24 12:03:25 Anyway, what's your question? Sep 24 12:03:53 https://www.youtube.com/watch?v=pCrjLVSapII Sep 24 12:04:08 Good ol Gary Coleman quote Sep 24 12:04:10 Arancio, https://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu) Sep 24 12:04:43 and you should see a diff if an item is disabled (grayed-like) Sep 24 12:05:20 adq: I implemented onPrepareOptionsMenu. And I don't see any different. That's why I'm asking. Sep 24 12:05:31 maybe you expect something different than what it does Sep 24 12:06:00 I also calling invalidateOptionsMenu Sep 24 12:06:03 I'm currently running Slackware ( same hardware unfortunately ) and I'm having issues with the IDE that aren't making any sense. Straight out of the box nothing just worked. I've had to fight with it the whole time and obviously something I'm doing is wrong, but I can't figure out what. My current issue is the platform tools Android Studio are giving me an error as if it downloaded the 64-bit platform tools for Sep 24 12:06:03 my 32-bit system. How can I tell? Sep 24 12:06:05 I'm Sep 24 12:06:50 adb says cannot execute binary file Sep 24 12:07:04 you can use `file' against your binary to know its architecture Sep 24 12:07:36 adb is probably a 64bits binary you are trying to run on a 32bits system, based on whatr you said Sep 24 12:07:45 adb: ELF 64-bit LSB shared object Sep 24 12:08:13 That was my suspicion, but the SDK manager didn't give me that information in "package details" Sep 24 12:08:13 so either you install a 64bit release of slack (if your cpu supports it), or you install everything in 32 bits Sep 24 12:08:27 It's a circa 2004 Pentium 4. Sep 24 12:08:32 32 bits is the only option. Sep 24 12:08:47 Why did 32bit Android Studio download 64bit platorm tools? Sep 24 12:08:54 ah that idk lol Sep 24 12:08:54 How can I tell it to do otherwise? Sep 24 12:09:05 they probably assume everyone is under 64bits nowadays Sep 24 12:09:25 Assume ASS | U | ME Sep 24 12:09:27 lol Sep 24 12:09:42 Then why provide a 32 bit Android Studio LMFAO Sep 24 12:09:47 ugh Sep 24 12:09:58 My brain hurts, the logic doesn't fit Sep 24 12:10:01 problem is the official requirements on linux: https://developer.android.com/studio/index.html Sep 24 12:10:05 64-bit distribution capable of running 32-bit applications Sep 24 12:10:09 you're out of their supported scope Sep 24 12:10:50 I see Sep 24 12:13:45 I wonder if this beast can run Windows 7... Sep 24 12:14:08 have you already run AS elsewhere? Sep 24 12:14:21 I installed it on Windows XP Sep 24 12:14:29 It doesn't work there either. Sep 24 12:14:45 ok, don't expect it to be a light IDE Sep 24 12:14:59 Nope. Sep 24 12:15:01 seriously don't try to use AS on a 2004 PC... Sep 24 12:15:16 you might be able to use the bare SDK Sep 24 12:15:40 My only other option is to wait until the government fixes their mistake I've been waiting for m income taxes for. Latest update is late December... Sep 24 12:16:44 WrinkledCheese_: what kind of app do you want to develop? Sep 24 12:17:06 A local VPN to sniff app data ( at user request ) Sep 24 12:17:56 Think of it as a targeted Wireshark. Sep 24 12:18:23 Are you sure you can do it? Sep 24 12:18:41 Android is new to me, the rest not so much. Sep 24 12:20:06 App can't access each other's files. I doubt they can access each other's network traffic Sep 24 12:20:33 Apps Sep 24 12:20:42 If my app is a VPN, it has access to all network traffic. That's all I want/need. Sep 24 12:20:52 yeah, you can make a VPN service as part of an app Sep 24 12:20:56 And the VPN server is local ( 127.0.0.1 ) Sep 24 12:21:07 obviously there are various warnings before the user activates it Sep 24 12:21:13 Yup Sep 24 12:21:26 Same as with Orbot while being used as a local proxy. Sep 24 12:21:42 "They can see everything you do. Are you sure" Sep 24 12:22:13 The users will want this, they may not trust it fully, but enough to use it. Sep 24 12:22:52 Plus as soon as they terminate the VPN service, the icon goes away and they're free to browse without my VPN service having access to their data. Sep 24 12:23:35 Can't you only fake the terminate your app and steal their passwords and give them to me? Sep 24 12:23:45 termination of Sep 24 12:23:54 http://imgur.com/a/KKfVn AS being AS Sep 24 12:24:02 No, the android system will display the "key" icon at the top while VPN services are enabled. Sep 24 12:24:05 even slider text is failing Sep 24 12:24:41 I use a VPN on one of my tablets, for various reasons - including managing to occasionally fool Google Rewards into giving me a few pennies Sep 24 12:25:23 tsk tsk Sep 24 12:25:44 I had an app idea to do that a little more than "a few pennies" Sep 24 12:26:06 Then I decided to follow the Google motto. Don't be evil. Sep 24 12:26:46 "Don't be evel" is Google's motto for you, not the one they follow. Sep 24 12:26:47 irony Sep 24 12:26:53 I also use it to access inaccessible tapjoy stuff - that's a pretty scummy thing anyway :) Sep 24 12:27:09 No idea what that is. Sep 24 12:27:25 and I use it on a PC, actually in a VM, to... evade georestrictions, let's say Sep 24 12:28:01 WrinkledCheese_: "install this app for 3 gems", "sign up for a trial of this service for 27 gems", "get a life insurance quote for 289 gems" and so on Sep 24 12:28:21 Ah Sep 24 12:28:41 I used to break the JavaScript for those things and just submit succcess. Sep 24 12:29:32 You guys are hackers Sep 24 12:29:53 For fake monies Sep 24 12:30:09 Go team 1337 LOL Sep 24 12:31:03 arguably not so fake, since I guess they'd just prefer you give them cash money for gems, rather than having to collect it from an advertiser Sep 24 12:31:45 I don't think they care. Sep 24 12:31:54 It's as real as any other in-game money. Sep 24 12:32:05 That you have to bu with real money. Sep 24 12:32:19 Or collect very very very slowly, or steal. Sep 24 12:32:37 Steal! Sep 24 12:33:22 "Do no evil except for stealing virtual money" is your motto Sep 24 12:33:31 I suppose I will go get some aluminum to make a bracket to fix my cooler for my non-circa 2004 computer. Sep 24 12:33:37 I don't have a motto. Sep 24 12:34:01 You should have one Sep 24 12:34:06 Leeds: what kind of questions are there? Sep 24 12:34:11 You deserve a motto and a better computer Sep 24 12:34:41 My motto: God Damn *&^$&*^#$ Circa 2004 POS Laptop! Sep 24 12:35:14 How come you are so experience but you can't have a decent computer for development? Sep 24 12:35:21 experienced Sep 24 12:35:25 "In general, do you approve or disapprove the efforts of the UN?" Wtf is with these questions? Sep 24 12:35:42 Idiosyncratic: mostly asking me to review a place I've been, or asking if/how often I shop for certain things Sep 24 12:35:58 since it's contextual, I suspect I don't match much of the available survey stock Sep 24 12:36:01 Leeds: how often do political questions pop up? Sep 24 12:36:22 I got a 10k rpm drive. It died. I bought an SSD, got it replaced under warranty. The replacement died out of warranty. The only drives I have left require me to build a bracket for a cooler that doesn't fit the motherboard that supports the raid card I need to use the SAS drives I have. Sep 24 12:37:07 And I have a leech of an ex and a Son that I have 75% custody of. Sep 24 12:37:11 SO I is broke. Sep 24 12:37:41 WrinkledCheese_: should've thought twice before marrying and having a kid Sep 24 12:37:59 I did, I think it was the third thought process that was required. Sep 24 12:38:04 I don't think I ever had a political question Sep 24 12:38:23 Leeds: it's freaky to me Sep 24 12:38:42 Leeds: at least 10 million people answer political questions for virtual pennies? Sep 24 12:38:58 sure Sep 24 12:39:10 correction: at least 10 million people lie to political questions for virtual pennies Sep 24 12:39:13 remember how much people hate paying pennies for apps - flip side is they love free pennies Sep 24 12:39:29 Canada got rid of the penny. Sep 24 12:39:50 Because they knew the true value of everyone's $0.02 ( opinions ). Sep 24 12:40:03 there is a certain amount of checking against lying - for example, if you're being asked to review a place, first they'll give you a list of 5 places and ask if you visited any of them recently - only 1 will generally be true, and that's the one they want a review for Sep 24 12:40:20 We live in a dystopia Sep 24 12:40:26 There's no other way to put it Sep 24 12:40:26 Ah Sep 24 12:40:51 if you lie, they'll stop asking you questions Sep 24 12:41:01 hi Sep 24 12:41:13 I just lie about my location :) Sep 24 12:41:20 Ok, I'll install this app and see what I get Sep 24 12:42:49 Layout XML has ``, how do I conditionally include (show/hide) this? - Do I assign an `android:id` and `android:visibility` to it, or is there a special way? Sep 24 12:43:12 you can also get zero-price surveys, sometimes... Sep 24 12:43:54 AlecTaylor, you usually do it in code after referencing the id of the layout (include does not have any id field) and then .setVisibility on it Sep 24 12:44:59 I can't install it Sep 24 12:45:08 Leeds: this is freaky as hell Sep 24 12:45:39 Google is datamining more and more Sep 24 12:45:59 Idiosyncratic: er, are you in a supported country? Sep 24 12:46:27 Leeds: don't know. It could be because I don't have a wallet attached to my account Sep 24 12:47:01 Idiosyncratic: it's not 'money' - it's Play credits Sep 24 12:47:24 what's the average per hour? 2$/h? :) Sep 24 12:47:28 Leeds: I get it, but that's not what freaks me out, it's the survey of political opinions Sep 24 12:47:34 (i'm pretty sure ppl time get ripped off from it) Sep 24 12:48:27 eh, each survey would be less than a minute, mostly, and I've had up to US$0.5 or so from them, although most are lower Sep 24 12:48:52 if you answered one per day, you could fund a nice app habit Sep 24 12:49:02 But anyway, I told myself I would stop with the politics bullshit... Sep 24 12:49:14 ok, i thought it would be much lower than that Sep 24 12:49:18 Idiosyncratic: I don't know where you got the politics from, anyway Sep 24 12:49:27 like less than 1$ for 10-15 min Sep 24 12:49:44 Leeds: https://lh3.googleusercontent.com/I0V8kbIXeX7007xaXXeIMNFJYnCFHOgb3q5JTx1L9riKGT1Dynr3CQr8f6A9k0z9SkI=h900 Sep 24 12:52:06 most surveys are 3-4-5 questions, like "Do you listen to streaming music online?" "Do you pay a subscription for one or more streaming services?" "Which service(s) do you pay for?" "Would you consider a new service backed by $SOMECOMPANY?" Sep 24 12:52:39 Leeds: online search results mention politics Sep 24 12:53:05 Jesus Christ, this is Brave New World and 1984 happening at the same time Sep 24 12:53:28 looking at my history, my biggest payment was 55p which is about US$0.71 and was more at the time, before the Brexit vote Sep 24 12:54:01 anyway, asking about the UN seems fairly normal for something that, after all, is called 'Opinion Rewards' Sep 24 12:54:24 Leeds: but why would they care? To whom would they sell that information? Sep 24 12:54:52 that's not how it works - someone has paid them to create that survey Sep 24 12:55:14 they're not just randomly asking questions in case someone cares about the answer Sep 24 12:56:49 Leeds: this is hella immoral Sep 24 12:57:09 why? it's just an opinion panel, they've been around forever Sep 24 12:58:10 Leeds: how do you know who's making the survey? For what purpose? Sep 24 12:58:53 you have to opt-in, you can skip any survey you don't like... it's not like they're datamining your brain while you sleep Sep 24 12:59:12 I don't know, and I don't really care - it's generic opinion data, for aggregation Sep 24 12:59:27 Leeds: you could help a PR firm hired by a group of neo-nazis for all you know when you answer questions like "Do you agree with migrants?" Sep 24 13:00:22 Leeds: and then they can use that survey data to further their agenda in public Sep 24 13:00:51 "Hey, this survey from Google tells us that we should put brown people into extermination camps!" Sep 24 13:00:55 *in Sep 24 13:01:19 unlikely, since I would answer "yes, I think migration is generally a good thing, both for the destination countries and the migrants themselves" Sep 24 13:01:47 Leeds: yeah, that's why the brexit happened :P Sep 24 13:02:00 y'know, being an immigrant myself and all Sep 24 13:02:21 Leeds: I'm not talking about you, I'm talking about the opinions of the masses Sep 24 13:02:40 meh Sep 24 13:02:48 Guys did you know what when you move an item in a recycler view, say 3 positions from the original location, the item is actually moved 3 times? Sep 24 13:03:15 nothing forcing anyone to opt-in, nothing forcing anyone to answer any questions, and in my experience it's consumer questions and location reviews... so, meh Sep 24 13:03:21 Basically RecyclerView can only swap the position of two consecutive items Sep 24 13:03:24 This is sick Sep 24 13:03:32 Android is a joke Sep 24 13:04:14 Currently if I move an item N positions away from the original location my undo stack registers N operations! Sep 24 13:05:10 Arancio: you really should have given up and moved to something like sailfish by now Sep 24 13:05:16 lol Sep 24 13:06:09 recyclerview is a view anyway, it does not hold your data like the adapter nor swap anything (except visually) Sep 24 13:06:30 Leeds: err, so you installed the app because you like being quized? Sep 24 13:06:39 Leeds: you just said that you use a VPN to get money on it Sep 24 13:07:48 I installed the app because I was temporarily in a country where it was supported, and I was curious Sep 24 13:07:56 Leeds: what's forcing you to do those quizes is the incentive Sep 24 13:08:31 adq: if it's not the RecyclerView it's RecyclerView.Adapter which in case you didn't notice it's defined inside the RecyclerView class Sep 24 13:08:34 no, what's incentivising me to do them is the incentive... I certainly don't need the money, so there's no coercion involved, no forcing Sep 24 13:09:00 Arancio, this is radically two different things but of course I noticed Sep 24 13:09:35 Leeds: maybe in your case, but the average person isn't as filthy rich as you are and they actually are incentivized to answer the quizes because they want play money Sep 24 13:09:43 Arancio, idk how you handle your undo stack at all Sep 24 13:09:50 but it should not be based on view op, but on data op Sep 24 13:10:08 so if you swap stuff in your array, assuming it's _one_ op, it should be _one_ undo Sep 24 13:10:29 not the amount of stuff recyclerview or something else is doing to visually swap items Sep 24 13:10:31 yes, they are incentivised, not forced - they are very different things... and since it mostly only works in fairly rich 'western' countries (plus Japan), it's not like anyone is going to be making a living on it... Sep 24 13:10:36 also, double-meh Sep 24 13:11:55 Leeds: you don't get it Sep 24 13:12:03 But meh indeed Sep 24 13:12:21 I absolutely do get it Sep 24 13:12:32 Leeds: no, you don't Sep 24 13:12:49 you are wrong about it being immoral, and that's my last word :P Sep 24 13:12:55 adq: my undo stacks is driven by the adapter. Obviously it should register 1 operation only. Why do you think I complained? Sep 24 13:14:13 Leeds: that's because you don't have the imagination to realize its implications :P Sep 24 13:14:27 well this is weird, but it's been too long i did not use the default adapter (i always extend my own) Sep 24 13:15:12 Leeds: http://nationbuilder.com/software_for_political_campaigns Sep 24 13:16:50 I unignored you Idiosyncratic but I can see nothing changed at all, you still believe you're on #android or something Sep 24 13:17:03 adq: go suck on an iPhone Sep 24 13:17:18 are you 12 years old or what? Sep 24 13:17:26 don't fight, guys Sep 24 13:17:41 Follow my example Sep 24 13:17:53 I'm peaceful Sep 24 13:18:43 adq: ignore Idiosyncratic again and live in peace. He never says anything interesting anyway Sep 24 13:18:56 well, i was tired of reading non sense due to the ignore Sep 24 13:19:02 but the result is the same Sep 24 13:20:34 Leeds: http://www.l2political.com/products/data/ Sep 24 13:22:24 For just as low as 5000$ you can get the patterns of 200.000 people Sep 24 13:27:12 But hey, I'm stopping now Sep 24 13:27:17 Pinky promise Sep 24 13:45:25 Hello. I'm having trouble setting up a ToolBar on API 19. Menu resources give me the following error: "Failed to find style 'listMenuViewStyle' in current theme". I'm using the light AppCompat theme, and I don't understand why I'm receiving errors. Sep 24 14:10:40 No one? :( Sep 24 14:12:12 Compiling against the newest sdk? Sep 24 14:15:35 Idiosyncratic: welcome back Sep 24 14:18:07 SimonVT: Think so? I have minimum set to 19, I have compile set to 24 and target set to 24 Sep 24 14:18:33 The error *only* shows up on s within menu res files Sep 24 14:20:12 Sure the issue isn't in your menu resources? Sep 24 14:20:19 It might be, but I'm following the dev guide step by step Sep 24 14:20:49 My menu resources has a single file, and it's done the way d.android did it (though AS made me change a few things... like adding xml for "app") Sep 24 14:21:16 I'm using an AppCompat theme, it's weird if it's missing these style parts :( Sep 24 14:22:17 Haven't seen that issue before Sep 24 14:22:20 Arancio: thanks Sep 24 14:22:26 I have no clue what's causing it :( Sep 24 14:22:29 hi i have some problems or doubts with realm db. I have this json http://pastebin.com/nC87RcuM array album with array photo... I use retrofit and gson to get data and creare my model Home->List->List. I don't understand if i create a table Home or Album Sep 24 14:22:29 doubts Sep 24 14:23:22 Apophasis: you should have said "Hello. I won't mention that I'm having trouble setting up a ToolBar on API 19." Sep 24 14:23:36 devuser: What are you doubting? (or are you using it in the South indian sense, meaning "question"?) Sep 24 14:23:42 Arancio: :P Sep 24 14:24:12 no North Indian :D Sep 24 14:24:19 ok sorry Sep 24 14:24:34 SimonVT: Would you be willing to take a look at it? I could give you access to it on GH Sep 24 14:24:43 It is an awful project no one would want to steal :P Sep 24 14:24:44 devuser: Sorry. I was thinking India, but meant to type "south asian" since that usage of the word isn't limiteed to India. Sep 24 14:24:51 Just pastebin the relevant parts, maybe someone can point you in the right direction :) Sep 24 14:24:59 Everything seems to be a relevant part Sep 24 14:26:53 If the IDE points to your menu xml, the issue is probably there Sep 24 14:28:52 is findbugs a good codelinter for android code? Sep 24 14:29:12 SimonVT: It points to missing styles Sep 24 14:29:15 hmm, how do I determine device orientation outside of an activity Sep 24 14:29:49 it's complicated.. to write in chan sorry... i create a pastebin http://pastebin.com/WzbGLrzf Sep 24 14:29:50 contact.name = "John Doe"; Sep 24 14:30:15 i don't understand how create my db Sep 24 14:30:26 ... Sep 24 14:30:29 I just fixed it Sep 24 14:30:38 mother fucking "restart anv invalidate caches" Sep 24 14:30:54 answer buried beneath 90 other answers, all of them retarded Sep 24 14:31:00 I'm going to tattoo that to my arm Sep 24 14:31:20 oh wait, no, still bugs for 19 Sep 24 14:31:21 i'd like avoid to use a foreach to get all album... is there some method to creare my db from data received Sep 24 14:31:23 faaantastic Sep 24 14:31:35 ah, WindowManager.getDefaultDisplay.getRotation Sep 24 14:33:46 is there a method to creare table from my models? Sep 24 14:34:02 *to creare Sep 24 14:34:06 *to create :D Sep 24 14:35:02 hmm, getting rotation isn't a good solution... (service is posting notifications that are notification tray width dependent); but rotation won't cause the service to re-post the notification, I guess I'll just write it to depend on smallest width Sep 24 14:35:19 s/just write/leave -- already current behavior Sep 24 14:39:05 Anyone know how I can SPECIFY my weird ass style request myself? Sep 24 14:39:09 Surely I can just MAKE a style for this?! Sep 24 14:41:02 so even android dev can't make a proper guide on how to use their tools, this is obscenely stupid Sep 24 14:41:16 (the site, not you guys) Sep 24 14:42:32 Apophasis: when I have to insult the developer of the Android platform without insulting the developers in this channel I say "Android platform developers" Sep 24 14:42:43 good call Sep 24 15:07:04 g00s: ready for it? http://i.ebayimg.com/images/g/~CUAAOSwU1FXQi1E/s-l1600.jpg Sep 24 15:15:22 Oh, this is really fucked up Sep 24 15:16:46 Android is a toy Sep 24 15:17:01 i have another problem. I use retrofit+ rxjava.. when use realm instance inside call http://pastebin.com/LNQkTQvG i get this error onError: Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created. Sep 24 15:17:02 Toy OS for toy applications Sep 24 15:17:42 how can i use realm inside call response? Sep 24 15:22:26 Use the same thread where you created the object Sep 24 15:29:42 I managed to make RecyclerView crash Sep 24 15:36:54 I saw a thing on Facebook. Ironman told me I had to register and vote. As a Canadian, where can I register so I can vote for Trump? Sep 24 15:37:34 ^ not here, offtopic Sep 24 15:37:53 K Sep 24 15:38:01 If you're going to troll, at least do it somewhere you're allowed to be off topic lol Sep 24 15:39:33 Sorry, I missed the no offtopic rule. Sep 24 15:40:20 WrinkledCheese_: after all it's called #android-dev and not #whatever. Do you really need a rule? Sep 24 15:40:34 eventually things get offtopic, but it's like an "organic development" Sep 24 15:41:13 I was commenting on an ebay image post. Sep 24 15:41:30 although it was half an hour ago. Sep 24 15:41:42 so you should start an Android development conversation and the subtly drop the Trump thing between one line and another Sep 24 15:41:44 Anywho, lesson learned. Sep 24 15:42:10 I can't 32-bit is only supported on Windows :rolleyes: Sep 24 15:42:31 Maybe call a variable trumpForPresident or something like that Sep 24 15:43:00 What about a system level function _CanadiansForTrump Sep 24 15:43:09 Right, figured out what my problem was -- Android-Studio is retarded. Sep 24 15:43:15 It accepts no arguments, it does what it wants without reason. Sep 24 15:43:28 Is there a good way of changing language at runtime? I've googled, but I get these half-assed solutions Sep 24 15:43:31 Apophasis, that's like blaming a hammer when you bend a nail. Sep 24 15:43:48 WrinkledCheese_: More like blaming a hammer when it turns invisible when you hold it. Sep 24 15:43:56 That is not proper hammer functionality! Sep 24 15:44:10 Sure it is. It's pro-blind. Sep 24 15:44:28 There's a bug that gives a rendering error for no reason when you deal with AppCompat and menus, but if you actually just implement and run, it'll be fine in the emulator Sep 24 15:44:45 What's the best way of changing a language at runtime? Sep 24 15:46:26 changing the language of your app or changing the language of your device? Sep 24 15:46:42 I think he means app. Sep 24 15:46:42 app Sep 24 15:47:10 Did you see this in your searches? http://stackoverflow.com/questions/12230553/android-how-to-change-the-application-language-at-runtime Sep 24 15:47:13 I figure I have to pick up current locale from the config, then have a switch based on that, then somehow load the data in again. The last part is the trickiest. Sep 24 15:47:29 Yeah I looked at it, but I wasn't sure it was a very *good* way of doing it :P Sep 24 15:47:48 you simply override the locale Sep 24 15:48:00 and then update? Sep 24 15:48:13 I found a pretty sweet solution for it Sep 24 15:48:17 not made by me, I have no talent Sep 24 15:49:04 hey all Sep 24 15:49:45 i'm making a react-native app, and implementing Fabric in it. Followed the following guide, but i'm getting a `Must initialize Fabric before using singleton()` error. Sep 24 15:50:12 https://github.com/corymsmith/react-native-fabric#android Sep 24 15:50:14 you need to restart the app Apophasis, not all resources are loaded at runtime Sep 24 15:50:29 adq: Surely there's a way to refresh them, though. Sep 24 15:50:35 no Sep 24 15:50:38 Seriously? Sep 24 15:50:53 only for those loaded at run-time Sep 24 15:50:56 I only need two types of resources -- drawables and strings Sep 24 15:50:59 can't find anything on the net about this, so i must be doing smth wrong :/ Sep 24 15:51:02 s/only/except/ Sep 24 15:51:13 Which ones are loaded at runtime? Sep 24 15:51:24 please say drawables and strings :P Sep 24 15:51:49 i don't know, i would look the doc if i were you Sep 24 15:52:05 i just know a bunch of strings are loaded when you run the app, once Sep 24 15:52:55 it's perfectly acceptable to ask the user to restart the app or notify it will be available at next launch Sep 24 15:53:02 it's not like you switch languages frantically Sep 24 15:54:50 Apophasis, https://developer.android.com/guide/topics/resources/runtime-changes.html Sep 24 15:55:24 This leads me to believe that if you do change the language, there is a way ( not mentioned how in link ) to load other resources for that language. Sep 24 15:55:39 Apophasis, the SO is correct Sep 24 15:55:46 Run that, then restart your activity and it should mostly work. Sep 24 15:56:00 (I don't remember if the activity gets restarted automatically or not.) Sep 24 15:56:32 Oh, I just read a bit more on that link I sent. You can have your app restart itself. Sep 24 15:57:50 I think the dev link is most telling :P Sep 24 15:57:53 I'm not getting out of restarting it Sep 24 15:58:01 but I can just specify a restart procedure for all the activities so it ends up nicely Sep 24 15:58:23 and you can retain objects between those restarts of activities. Sep 24 15:58:27 From waht I'm reading. Sep 24 16:10:42 Nearly done my coffee and my socket F bracket for my ets-t40 coolers. Soon I'll be able to code for Android. System specs will be: Mobo: SuperMicro H8DAE-2, 2x Opteron 2389(quad core) 8GB DDR2 ECC. 6x 15k RPM 300GB SAS on raid ( some dell raid card ) Sep 24 16:17:43 WrinkledCheese_ cool story bro Sep 24 16:22:06 WrinkledCheese_: I'm coding on an Intel E2180 and 4GB of old RAM. CHECK YOUR PRIVILEGE. Sep 24 16:32:13 Man, lines like this make me shiver Sep 24 16:32:17 App.settings.edit().putInt( App.OPTION_TOTAL_PLAYED, App.settings.getInt(App.OPTION_TOTAL_PLAYED, 0) ).apply(); Sep 24 16:32:45 Err, forgot the increment part Sep 24 16:35:36 still trying to get Fabric to run on my react-native app, but keep getting a `Must initialize Fabric before using singleton()` error. I followed the guide, but can't find the mistake i am making(nor anything on google, unfortunately). I assume I am doing something wrong, but can't as of yet figure out what :/ Sep 24 16:35:53 made a code sample here: https://gist.github.com/walidvb/dab0f9d52463d534aad21c98c7451652 Sep 24 16:36:15 the guide: https://github.com/corymsmith/react-native-fabric#android Sep 24 16:39:57 any help greatly appreciated! Sep 24 16:41:32 walidvb: This channel is for native android Sep 24 16:41:47 You'd be better off asking in a react channel or twitters forums Sep 24 16:42:31 orbyt_: hm fair enough, although it's a java error i'm getting Sep 24 16:42:54 Then post the error or try #java Sep 24 16:43:01 so i figured it was a native issue Sep 24 16:54:58 walidvb, any reason you're not initializing fabric in your Application class? Sep 24 16:55:16 Since the issue is obviously because you didn't initialize it before trying to use it the first time. Sep 24 17:03:16 raoul11: so... how was the weekend? Sep 24 17:04:23 thepoosh: the weekend isn't finished yet. There still is today evening and the whole tomorrow Sep 24 17:04:27 entertaining Sep 24 17:04:33 not for us Arancio Sep 24 17:04:44 Oh right Sep 24 17:04:50 Mavrik thepoosh did you watch this by any chance? https://realm.io/news/360andev-richa-khandelwal-effective-android-architecture-patterns-java/ Sep 24 17:04:53 You are Jew Sep 24 17:04:54 how was yours? did the lord hear your prayers thepoosh ? Sep 24 17:05:07 well, just like any other time Sep 24 17:05:10 (: Sep 24 17:05:14 Arancio: yep Sep 24 17:05:16 g00s, not yet, but thanks for reminding me Sep 24 17:05:20 Need to watch more of those :) Sep 24 17:05:21 dont think ill come in monday Sep 24 17:05:32 they have some very good talks there Sep 24 17:05:41 that firebase dude is speaking Sep 24 17:05:42 ran Sep 24 17:05:46 he's a boss Sep 24 17:05:49 (I'll probably read it instead tho.) Sep 24 17:05:50 g00s: https://www.spectacles.com/ Sep 24 17:05:56 raoul11: nachmany? Sep 24 17:05:59 yes Sep 24 17:06:03 very good man Sep 24 17:06:04 Wow. Sep 24 17:06:07 i like him a lot Sep 24 17:06:14 he gave us a 2 hour lecture on the meeting a while ago Sep 24 17:06:27 everyone does, he's a RL gilfoyle Sep 24 17:06:28 Mavrik: I think that will crash and burn Sep 24 17:06:33 HA Sep 24 17:06:43 Nah, that's going to be most popular thing ever. Sep 24 17:06:44 i emailed him once, he didnt bother to answer Sep 24 17:06:50 Can anybody help me debug this exception in a RecyclerView? java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder Sep 24 17:06:57 but thats ok, coz he a boss Sep 24 17:06:59 Mavrik: 129$ a piece and only 10s videos Sep 24 17:07:02 so crap Sep 24 17:07:11 what other speakers are worth it thepoosh ? Sep 24 17:07:16 thepoosh, noone will care Sep 24 17:07:21 Bieber will put them on Sep 24 17:07:26 And they'll sell millions Sep 24 17:07:27 raoul11: sounds like linus Sep 24 17:07:32 he also likes to answer Sep 24 17:07:37 you fucking moron Sep 24 17:07:38 And you'll see douchebag teenagers all over underground :P Sep 24 17:07:50 Mavrik: nope, I really don't understand this Sep 24 17:08:12 but time will tell Sep 24 17:08:19 IoT is all the rage now Sep 24 17:08:24 (douchebag teenagers) You rang? Sep 24 17:08:39 Arancio: can you paste the adapter code? Sep 24 17:08:46 Sure Sep 24 17:08:54 g00s: it's too bad realm has a shitty service Sep 24 17:09:16 thepoosh sqlite is ok for me ;) Sep 24 17:09:22 same Sep 24 17:09:33 Can anybody help me debug this exception in a RecyclerView? java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder < lol, I just hit it too few minutes ago: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{88ff565 position=1 id=0, oldPos=0, pLpos:0 scrap [attachedScrap] tmpDetached no parent} Sep 24 17:09:34 I wish I could move away from GreenDao Sep 24 17:09:35 now Sep 24 17:09:50 raoul11: hebrew or english speakers Sep 24 17:09:50 Arancio, basically, don't force the item count to be return to something different than what's in your array Sep 24 17:09:51 ? Sep 24 17:10:04 any Sep 24 17:10:08 thepoosh: https://gist.github.com/anonymous/d00bcc30abb7d82f8116fda4de678d80 Sep 24 17:10:16 fontain isnt speaking right? Sep 24 17:10:17 you always have good ol' JakeWharton Sep 24 17:10:21 ha Sep 24 17:10:25 she's a shitty speaker Sep 24 17:10:45 Arancio, i had this issue while showing a fake screen because rv was empty and forcing getItemCount to return one in this specific case, if I would add a regular item again + notifyiteminsertedblabla, then BOOM crash Sep 24 17:11:22 while it sounds good to handle this case at RV, it's bad due to the count mismatching the real state and then the adapter is lost after insertion Sep 24 17:11:25 adq: it's happening while I drag an item around Sep 24 17:11:29 but she's hot Sep 24 17:11:43 who's hot and a shitter speaker? Sep 24 17:11:49 and her name makes me hard /: Sep 24 17:12:11 true dat Sep 24 17:12:31 Lisa Wray? Sep 24 17:12:38 She's a good speaker... Sep 24 17:12:41 thepoosh: there is some code related to a undo stack but I commented it out so that should not be the problem Sep 24 17:14:51 Arancio, https://gist.github.com/anonymous/d00bcc30abb7d82f8116fda4de678d80#file-recyclerlistadapter-java-L97 here you remove an item from your array but does not notify it has been removed, maybe your inconsistency comes from here Sep 24 17:15:43 thepoosh: here I commented out all the undo code so that it's more clear what's the active code: https://gist.github.com/anonymous/e95d55c2263dacb49f2dde7270d4e9f9 Sep 24 17:16:06 no MikeWallaceDev Sep 24 17:16:21 adq: then I remove an item I call notifyItemRemoved(position); but the problem doesn't not happen when I remove an item. It happens while I'm dragging an item around Sep 24 17:16:45 yes but the cause sometimes is burried Sep 24 17:16:54 and not directly linked to the consequences/error Sep 24 17:17:20 anyway, did you try to notify the adapter that the item you remove from the array is removed prior to tell the adapter that you swapped (moved) some items too? Sep 24 17:17:27 ok but 1) I call notifyItemRemoved() 2) that code is not running at all Sep 24 17:17:29 because that's the only thing fishy i can see Sep 24 17:17:55 i believe you but I don't see it on https://gist.github.com/anonymous/e95d55c2263dacb49f2dde7270d4e9f9#file-recyclerlistadapter-java-L96 Sep 24 17:18:13 raoul11, no not Lisa? or no she's not a good speaker? Sep 24 17:18:14 i see you're notifying the adapter there is a swap between two positions, but the first pos is not anymore the same item since it has been removed Sep 24 17:18:22 not lisa, fontain Sep 24 17:18:43 adq: Sorry, now I saw what you mean. That line is completely wrong. It should be .get() not .remove() Sep 24 17:18:51 adq: Thanks very much Sep 24 17:18:52 thepoosh chuckled a bit when he asked her a question Sep 24 17:18:55 np man Sep 24 17:19:07 WUT Sep 24 17:19:28 felt like richard trying to hit on monica tbh Sep 24 17:19:31 thepoosh: problem fixed by adq. Thanks for looking at the code Sep 24 17:19:32 \: Sep 24 17:19:34 https://www.linkedin.com/in/fontainefoxworth Sep 24 17:22:43 Huh. I don't know her. Sep 24 17:23:19 Ah ok, she does mostly Firebase. That's on my todo list :) Sep 24 17:25:13 if you do meet her, ask her "if you can export firebase data to csv" Sep 24 17:25:33 and count how many times she repeats the word bigquery Sep 24 17:26:47 Not sure if I'll meet her... I don't travel much these days. I did meet Lisa once or twice Sep 24 17:27:08 HAHAHHA Sep 24 17:27:18 MikeWallaceDev: where are you from? Sep 24 17:27:28 Montreal, Canada Sep 24 17:28:00 oh myyy Sep 24 17:28:40 What up George? :D Sep 24 17:28:49 indie/startup/corp MikeWallaceDev ? Sep 24 17:29:06 Yes. :D Sep 24 17:29:29 Though my corporation expired and I have to get that back up to snuff Sep 24 17:34:43 k Sep 24 17:38:41 looking at all the artifacts in GMS, and firebase (part of gms) its pretty crazy Sep 24 17:38:52 there has to be like 40 or 50 different things you can import Sep 24 17:39:05 40 or 50 different ways for vendor lock-in ;) Sep 24 17:47:21 https://youtu.be/GYKoS5stxSM Sep 24 17:47:22 HA Sep 24 18:04:22 g00s: https://github.com/google/iosched/issues/199 Sep 24 18:10:23 :') Sep 24 18:38:11 thepoosh lol Sep 24 18:38:11 yeah Sep 24 18:38:13 i keep on getting emails with updates on this ticket Sep 24 18:44:16 Mavrik: hey sorry, i didn't catch your msg earlier Sep 24 18:44:16 about initializing Fabric Sep 24 18:47:46 not sure why i don't, but mainly because the guide doesn't say so Sep 24 18:47:51 SUP everyone Sep 24 18:48:02 can someone help me rename my app Package? Sep 24 18:49:26 DelphiWorld: applicationId in your build.gradle Sep 24 18:51:17 thepoosh http://digg.com/video/augmented-reality-future Sep 24 18:51:41 nope nope nope Sep 24 18:59:09 thepoosh come on, isn't that the end game of silicon valley, the attention economy, etc ? Sep 24 19:28:53 wtf just happened here Sep 24 19:30:55 fucking chineses Sep 24 19:31:09 ??? Sep 24 20:36:23 hi Sep 24 20:36:53 good evening Sep 24 20:52:55 Good evening Sep 24 21:06:11 good evening Sep 24 21:22:09 Probably a simple question: How can I edit a library (locally) used by my app. When I open the appropriate file (via clicking on class name in code) there's this lock symbol in the tab. Sep 24 21:23:41 copy the source code... or extend the class and modify it that way, if it's not made impossible by the library created Sep 24 21:26:30 I've tried extending it, but I would need to extend 3 classes just to make one minor change. Also there seems to be a problem with protected attributes. Sep 24 22:14:21 Hey. If I have a layout that has a ton of buttons and each require an onClick method, what would be the cleanest way to do so? Sep 24 22:15:01 Currently I'm implementing OnClickActionListener in my activity, then in onCreate I'm just doing something like Button x = (Button) findViewById(R.id.button); button.setOnClickActionListener(this); Sep 24 22:15:20 then I have a public void onClick(View v) method which gets the id of the view and uses cases to call the correct method Sep 24 22:15:36 It works but it's a lot of boilerplate code Sep 24 22:15:44 might look into butterknife Sep 24 22:16:05 Oh yeah some guys recommended that a few days ago for something Sep 24 23:08:39 how do people usually do the modual add on downloads for an app ? like if your app has many 5mb extensions people can add. can google host those on play ?(not as its own seperate app, just hidden) or do you need private server/hosting stuff Sep 24 23:32:53 Can someone provide some insight on your conversion rates between facebook/reddit ads? Sep 25 00:02:11 hey TacticalJoke , saw this earler : your distopian future (brought to you by google, fb, etc) http://digg.com/video/augmented-reality-future Sep 25 00:03:44 Interesting. Sep 25 00:09:45 I like the sound of AR. I'm already constantly trying to augment reality using technology (e.g., listening to music on the bus, reading Reddit while bored, etc.). Sep 25 00:11:57 http://www.androidpolice.com/2016/09/24/googles-merged-android-chrome-os-andromeda-may-be-teased-on-october-4th/ Sep 25 00:16:06 Merging Chrome OS and Android... is that even a good idea? Sep 25 00:22:30 i would ask, when will android die (if it's not already dead) Sep 25 00:26:08 TacticalJoke i guess it could explain why progress has (imho) been so slow these last years Sep 25 00:26:20 seemed like google was distracted Sep 25 00:27:23 I'd love to see apple buy mclaren Sep 25 00:28:26 Rose Gold P1 Sep 25 00:28:40 with Beats Audio Sep 25 00:28:55 Ha Sep 25 00:29:20 no gas tank inlet Sep 25 00:29:41 So all electric? Works for me. Sep 25 00:30:11 g00s, P1 does have electric motors but they are only good for 8 miles or something like that. Sep 25 00:31:36 bitkiller, i feel maybe it won't die per se, google will probably focus on chrome os Sep 25 00:31:54 and leave open source android to fend for itself Sep 25 00:32:21 .part Sep 25 00:33:06 lol, they should donate it to apache foundation Sep 25 00:34:19 g00s, Thats Oracle's dumping grounds Sep 25 00:35:20 is there an api in android that we're supposed to use to download files from http? or should my app just do it directly in a java-ish way? Sep 25 00:36:17 ~240 people here Sep 25 00:36:31 there's downloadmanager, but you might want something like okhttp or even retrofit Sep 25 00:36:38 ~380 during the week, if i'm not mistaken Sep 25 00:36:40 depends on what you're doing Sep 25 00:41:08 Zharf: podcast app. I need to be able to download part of the file (maybe even from the middle), pause, and download the rest later, etc... do any of those APIs support stuff like that? Sep 25 00:41:16 if not maybe I'm better off implementing my own thing Sep 25 00:42:29 for streaming? Sep 25 00:43:10 yeah. I want, for example, that if someone streams half an episode, and then pauses, and later hits download on the episode, it has already saved the first half and only has to download the remainder Sep 25 00:43:10 anyway, the guy is an executive, and executives are executives Sep 25 00:43:30 okhttp probably would work Sep 25 00:43:44 a good podcast client should let you predownload any episode or not, and just do its best to play it back smoothly Sep 25 00:44:00 oh cool it's on square's github Sep 25 00:44:04 I will take a look, thanks Zharf :) Sep 25 00:45:31 I still can't help thinking of U2 when typing `android:elevation="`. Sep 25 00:45:56 hmmm I think okhttp has no support for partial downloads Sep 25 00:47:04 you can probably do it with interceptors Sep 25 00:47:13 maybe Sep 25 00:47:18 what are interceptors? Sep 25 00:47:25 I know what they are in starcraft :P Sep 25 00:47:31 https://github.com/square/okhttp/wiki/Interceptors Sep 25 00:48:00 I'm not 100% sure how you'd do it though Sep 25 00:48:24 ah I see in there a part where they can manually add http headers Sep 25 00:48:29 so that will let me do a partial download Sep 25 00:48:56 right, there's http headers for that Sep 25 00:49:25 yeah just looked up the headers actually Sep 25 00:49:33 seems like http partial downloads work by specifying a range, not just a start Sep 25 00:49:59 which could be convenient. maybe I could just abstract over the files as a series of chunks Sep 25 01:01:33 https://www.youtube.com/watch?v=dLRLYPiaAoA Sep 25 01:48:50 All y'all are too quiet. Sep 25 01:51:43 "At some point, your parents picked you up, put you back down, and never picked you up again." Sep 25 01:51:47 -- some guy from Reddit Sep 25 01:57:13 That's a cold truth. Sep 25 02:00:51 g00s: We might be dying soon after all: The United Nations just declared antibiotic resistance “the greatest and most urgent global risk.” Sep 25 02:04:08 Hmm https://www.spectacles.com/ Sep 25 02:04:48 TacticalJoke yeah, and our dumbass greedy mofo livestock operations here in the US Sep 25 02:05:02 i declared myself undieaable Sep 25 02:34:26 is this error caused by me or the library im using? http://hastebin.com/gibawazuzu.php Sep 25 02:36:18 hi i am trying to do some performance tuning for a simple app that has a RecyclerView showing a list and when you tap onto an item it shows a Detail Activity. I am finding that after cold start of app, the first load of the Detail Activity is always a lot slower than a warm start. Any ideas? is this cause of JIT? Is there a way to speed that up? Sep 25 02:36:55 hello i need an advice about app coding Sep 25 02:37:04 any masters here ? Sep 25 02:37:26 thornekey: "Error inflating class com.tubb.smrv.SwipeMenuLayout" <-- SwipeMenuLayouts fault Sep 25 02:37:47 ohk, so nothing i can do yiati :( ? Sep 25 02:38:06 but if that's a library it could be expecting you to use it a certain way, and just not be logging letting you know how to do it correctly Sep 25 02:38:15 its this https://github.com/bsuhas/SwipeMenuRecyclerView Sep 25 02:38:44 the only line i didnt put in (but the demo did) was recyclerView.setOpenInterpolator(new BounceInterpolator()); Sep 25 02:38:57 setOpenInterpolator cant seem to be found on my end :( Sep 25 02:44:06 thornekey: https://github.com/romannurik/Android-SwipeToDismiss Sep 25 02:45:42 thornekey: Or at the very least use the original fork of that repo you linked here, it's been update more frequently https://github.com/TUBB/SwipeMenu Sep 25 02:45:55 s/update/updated/ Sep 25 02:47:27 oh its the same lib? **** ENDING LOGGING AT Sun Sep 25 02:59:59 2016