**** BEGIN LOGGING AT Fri Feb 26 17:11:53 2016 Feb 26 17:15:33 http://stackoverflow.com/questions/27198375/animated-population-of-recyclerview Feb 26 17:15:39 wow, someone took some good time to draw up ascii diagrams Feb 26 17:15:43 jvrodrigues: I DID NOT HAVE STUDIO OPEN. Feb 26 17:15:55 upvoting just because of the ascii art illustrating what he wants Feb 26 17:16:07 (I tried with studio before, but for that try, I killed everything except for KWin, Konsole, Plasma and Gradle) Feb 26 17:16:50 oh Feb 26 17:16:52 so thats odd yea Feb 26 17:17:00 should definitely not happen Feb 26 17:17:31 it’s also a 3-button-app which uses multidex and where the apk, after running through proguard, is still 20MiB Feb 26 17:17:52 * pfn unignores for shits and giggles, 20mb of code? Feb 26 17:18:06 of the .dex in the apk, yes. Feb 26 17:18:16 how have you fucked up so hard? :P Feb 26 17:18:19 the app is a super simple app, and I – and my team – have to extend it. Feb 26 17:18:34 I didn’t write it, other students did, as project requested by a few hospitals. Feb 26 17:18:48 hum, why is a simple app so big? lots of dependencies? Feb 26 17:18:59 for patient - doctor communication, say, "did you take your meds?" or "please fill out these surveys about your stool" Feb 26 17:19:30 if I could get the app to compile at least once, I could actually try to work on it, but so? Feb 26 17:19:52 justJanne time for vim :) Feb 26 17:21:01 g00s: well, IDEA Ultimate can load the project, it just doesn’t work well when it can’t compile (and therefore can’t properly check views, etc either) Feb 26 17:21:21 and gradle can't build it? Feb 26 17:21:23 huh i wonder what nslu2-log is Feb 26 17:21:34 you could try disabling predexing Feb 26 17:22:00 pfn: gradle can build, but the dexer crashes with OOM Feb 26 17:22:00 justJanne yeah, without a build AS is clueless Feb 26 17:22:02 justJanne: https://gist.github.com/artem-zinnatullin/28ac8ea1494825832f23 Feb 26 17:22:07 everything goes red / batshit Feb 26 17:22:24 justJanne, then increase dex heap Feb 26 17:22:53 pfn: tried, increased it to every free bit of memory, still crashed with OOM while I set the dex heap at 7.2GB Feb 26 17:23:10 justJanne, enable multidex then Feb 26 17:23:14 Is enabled. Feb 26 17:23:17 By the previous devs. Feb 26 17:23:18 justJanne, set minsdkversion 21 Feb 26 17:23:22 Is set. Feb 26 17:23:28 * pfn shrugs Feb 26 17:23:33 The previous devs also said it only compiles with 16GB or more. Feb 26 17:23:42 It’s seriously a pure clusterfuck Feb 26 17:23:43 lol Feb 26 17:23:45 you can try building with sbt Feb 26 17:23:56 enable sharded dex and it should work Feb 26 17:24:03 and teach every member of my team sbt first? Feb 26 17:24:08 * pfn shrugs Feb 26 17:24:16 if you can't get it to build otherwise Feb 26 17:24:24 you can keep complaining, or bite the bullet Feb 26 17:25:10 It wasn’t intended as complaining, Feb 26 17:25:18 but as "look, wtf is that? lol, that’s odd" Feb 26 17:25:40 I wonder if you could use some sort of cloud to build the thing Feb 26 17:25:54 try it on AIDE Feb 26 17:26:00 +1 Feb 26 17:26:22 rofl. Feb 26 17:26:30 I only have 1GB RAM android devices. Feb 26 17:26:36 windows azure gives you 160e to try Feb 26 17:26:55 you could setup a vm with 32gb ram in no time Feb 26 17:27:07 Well, I’m gonna buy a dedicated with 32GB RAM today anyway, for our build server, but still.. Feb 26 17:27:24 Hello Feb 26 17:27:26 I wanted to use it to build both the android app and the grails size Feb 26 17:27:28 *site Feb 26 17:27:34 Anyone know how come I don't receive notifications when I receive one while my phone is asleep? Feb 26 17:27:47 Bantalon: android 6.0 or later? Feb 26 17:28:21 justJanne: Im pretty sure that as soon as you build it you can remove a lot of the stuff thats not being used on the app. They probably just added all the libraries they found Feb 26 17:28:38 jvrodrigues: yeah, I thought the same. Feb 26 17:28:40 same happens whenever a new intern starts a new app Feb 26 17:28:47 in the grails project, they misconfigured everything, too. Feb 26 17:29:04 They also mixed code styles and had as it seemed never heard the word "indentation" Feb 26 17:30:19 yea, mixing code styles is actually very very common Feb 26 17:30:35 we started today by defining a code style (the K&R 1TBS style, also used by most java), by agreeing on settings for android-lint (and our linter for grovy), on how and where to communicate, etc. Feb 26 17:30:50 automated builds, testing, etc are all planned, and we’ll set those up this week. Feb 26 17:31:11 it’s the same project where the previous students had set up the SSL Engine to accept all certificates, always. Feb 26 17:31:43 its probably worthwhile to assert if starting from fresh is not actually less work than picking that project up Feb 26 17:33:27 The requirements are clear: Feb 26 17:33:34 The existing project MUST be extended. Feb 26 17:33:46 oh Feb 26 17:33:50 then yea Feb 26 17:33:55 (well, in german, but still using the standard definitions there) Feb 26 17:34:00 well maybe some stuff can be salvaged Feb 26 17:34:08 although the definitions contradict each other: Feb 26 17:34:16 oh are you based in germany? Feb 26 17:34:34 > The Doctor MUST NOT be able to access the patients personal data, and medical record via the same webcomponent. Feb 26 17:34:38 why it asks me to remove throw IOExceptions from some methods like runnable() and doInBackground()? Feb 26 17:34:57 > The webcomponent W_M MUST show the doctor both the patients data and medical record at the same time Feb 26 17:35:01 yes, in Germany. Feb 26 17:35:16 oh, whereabouts? Feb 26 17:35:42 I moved to koln about 7 months ago, sweet country Feb 26 17:36:02 far in the north, Kiel. Feb 26 17:36:19 ah, never been, anyways, time for my german lessons. good luck with that Feb 26 17:36:23 jvrodrigues: is that why mock students failing their exams or was it just in born stupidity? Feb 26 17:40:52 justJanne: how can i see the andorid versio? Feb 26 17:40:58 under Settings > About I see "EMUI 3.1 Feb 26 17:41:03 it's a huawei phone Feb 26 17:41:11 Ah sorry, 5.1.1 Feb 26 17:41:27 (a) I can’t help you, (b) no one here can, (c) try #android. Feb 26 17:41:27 so when my phone is under Sleep, i do not receive any notifications at all Feb 26 17:41:32 :/ Feb 26 17:41:36 tried android, they pointed to android-dev Feb 26 17:41:40 i'm developing push notifcations for my app Feb 26 17:41:53 but it does not show the notifications received when the phone is in sleep mode, if not,it works perfectly fine Feb 26 17:56:38 Are delayed notifications a device-related issue, or code related? Feb 26 17:56:40 sigh coordinatorlayout is somewhat frustrating Feb 26 17:57:19 If I remove scroll flags from the appbarlayout, shouldn't it stop collapsing on scroll? Feb 26 17:57:20 Bantalon, depends. Feb 26 17:57:22 or on touch? Feb 26 17:57:46 Mavrik: i've got this param set in my message parameters: 'delay_with_idle' => false, Feb 26 17:58:02 but still my notifications from my app are delayed until I open up the app Feb 26 17:58:09 Is the problematic device on Android 6? Feb 26 17:58:19 Until you open up the app? Feb 26 17:58:24 nAndroid v5.1.1 Feb 26 17:58:28 Hmm, that shouldn't happen, you are using GCM right? Feb 26 17:58:31 yeah until i open my app, then I receive all the notifications i've sent Feb 26 17:58:36 yeah Feb 26 17:58:45 i can close my app and still receive the notifications, but only for a few seconds Feb 26 17:58:58 and then if my device goes to sleep, it won't receive the notices anymore until I open up my app, then I receiva ll the ones i've sent Feb 26 17:59:29 Hmm, does your service grab a wakelock when you're processing the notification? Feb 26 18:00:27 not sure Feb 26 18:01:15 this is my code: http://pastebin.com/RsCRQEEH Feb 26 18:01:45 if you're not sure, the answer is "no". it doesn't happen automatically. Feb 26 18:01:46 everything works, except it's not received if my phone's asleep until I open up the app, then i get all the notificaitons Feb 26 18:02:00 What I meant up there actually was: If I remove scroll flags [ using setScrollFlags(0) ] from the toolbar, shouldn't it stop collapsing on swipe? Feb 26 18:02:00 Bantalon: does the device have the Google Play Store installed? Feb 26 18:02:02 dragorn: i did not undersatnd the question fully Feb 26 18:02:08 You mentioned it’s a huawei device. Feb 26 18:02:09 justJanne: yeah Feb 26 18:02:14 i installed it manually Feb 26 18:02:25 Okay, then that might be why GCM doesn’t work properly ;P Feb 26 18:02:28 is it better to replace the adapter for a recyclerview or change the data set of the adapter and notifyDataSetChanged? Is there a performance gain or loss either way, or a certain case where one might be better than the other? Feb 26 18:02:32 if you had to install Google Services manually. Feb 26 18:02:43 but it works Feb 26 18:02:46 only that the notices are delayed Feb 26 18:02:50 until i open my app Feb 26 18:03:13 i've tried adding that parameters to my notification parameters on the server, "delay_with_idle" => false Feb 26 18:03:26 and I've tried checking my device settings for backgrounds processes being disabled - and they weren't, my device allows for background processes Feb 26 18:03:52 also my notificaitons do not show my icon for some reason :-/ Feb 26 18:04:07 arf Feb 26 18:06:27 http://stackoverflow.com/questions/35658488/swappable-modules-with-dagger-2 anyone :) Feb 26 18:10:39 then acquire a wakelock while you send your notifications, as indicated earlier Feb 26 18:10:44 why ignore advice that you're given Feb 26 18:16:30 pfn: i missed that one Feb 26 18:16:53 pfn do you use coordinatorlayout? Feb 26 18:16:58 casadogg, yes Feb 26 18:17:14 for toolbar related stuff? collapsing and all that? Feb 26 18:17:23 for various different things, yes Feb 26 18:17:32 I don't have any oss stuff that uses collapsing toolbar though Feb 26 18:17:42 oh no Feb 26 18:17:47 only instance I have of using coordinatorlayout in anything oss is with a fab for show/hide Feb 26 18:17:50 Just coordinator + appbarlayout Feb 26 18:18:13 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/BrowseActivity.scala#L718-L750 Feb 26 18:18:14 seriously... i've shipped an apk on the app store and 3 days down the track... it's still not showing. any idea what i should do? i sent a mail to support yesterday... still didn't get a reply Feb 26 18:18:23 casadogg, there's cheesesquare for a demo of that Feb 26 18:19:18 Actually all I want to do is disable the collapse toolbar on swipe event Feb 26 18:19:33 casadogg, extend the behavior Feb 26 18:19:53 casadogg, everything in coordinatorlayout that is not-default involves extending a behavior Feb 26 18:20:07 either creating your own entirely, or extending an existing behavior Feb 26 18:20:30 I don't think this is behavior dependent, setting the scrollFlags is enough to be able to hide the toolbar by swiping directly at the toolbar Feb 26 18:21:21 Thing is, you have to set the scrollFlags to hide the toolbar on scroll, right? Feb 26 18:21:47 yes, dunno if setting scrollFlags at runtime works Feb 26 18:21:52 depends on when they're processed Feb 26 18:21:58 you would need to read the source to see that Feb 26 18:23:49 pfn hmm yeh, I'll check this Feb 26 18:23:56 http://ezscreens.appspot.com/view/2d91/newest+qicr+review Feb 26 18:23:56 pfn thanks man Feb 26 18:23:57 lol Feb 26 18:24:38 probably because google play doesn't update the version number when users update their reviews Feb 26 18:25:43 lol Feb 26 18:26:24 pfn: Maybe they can’t update? Feb 26 18:26:39 if they used a 3 year old version, they’ll have a 3 year old phone. Feb 26 18:26:55 wait, oh Feb 26 18:26:59 * justJanne noticed the bottom Feb 26 18:27:16 I take back everything I said and claim the opposite Feb 26 18:27:32 but yeah, they couldn’t have made the review with that phone. Feb 26 18:28:07 * casadogg Feb 26 18:28:14 hi hi Feb 26 18:29:08 What if a time traveller decides to download today's applications and travel back 1 year to post reviews? Feb 26 18:29:09 why is my activity showing the text of a textView 2 times Feb 26 18:29:09 Hmm Feb 26 18:29:22 linuxuz3r_, because that's what you asked it to do Feb 26 18:29:24 i only made it clear to print it 1 time Feb 26 18:29:28 linuxuz3r_ what do you mean Feb 26 18:29:54 it's showing like hello worldhello world? Feb 26 18:30:16 yes Feb 26 18:30:36 uh then it's because of what pfn said Feb 26 18:31:09 how are you setting your textview's text? Feb 26 18:31:19 xml or programmatically? using strings.xml or user input? Feb 26 18:31:21 getActivity().setContentView(R.layout.fragment_paranoid_shift); Feb 26 18:31:45 then textView.setText("string");l Feb 26 18:31:46 R.layout.fragment_paranoid_shift is your TextView? Feb 26 18:31:48 oh Feb 26 18:31:57 no my fragment layout Feb 26 18:32:01 ok Feb 26 18:32:14 idk man we'd have to see more code, but I'm sure it's fairly simple Feb 26 18:33:35 Hey, anyone else noticed some problems after upgrading to 23.2.0? For example the color of the backbutton now is black no matter what. with 23.1.1 it adapted based on the background Feb 26 18:34:06 Are you using AppCompatActivity? Feb 26 18:34:10 `casadog what code do you need to see? Feb 26 18:34:11 yea Feb 26 18:35:51 all i did was to change the version in the gradle file. Is there maybe some other maintenance i have to do ? Feb 26 18:35:55 I think you need to enable the vector drawable support thing: android-developers.blogspot.com/2016/02/android-support-library-232.html Feb 26 18:36:27 linuxuz3r_ that's hard to say when looking for a bug/glitch lol Feb 26 18:36:50 linuxuz3r_ I'm guessing we could look around the part where you set the textview's thext Feb 26 18:36:54 text* Feb 26 18:37:01 that guy has a freaking monobrow xD Feb 26 18:37:40 linuxuz3r_: getActivity().setContentView() is a good sign that you're using fragments wrong Feb 26 18:38:03 fuck im scared.. https://www.youtube.com/watch?v=sAmyZP-qbTE < the future is now. robots are bloody real. Feb 26 18:38:15 g00s: ^ Feb 26 18:38:16 Napalm robots have been real for a while now Feb 26 18:38:18 no Feb 26 18:38:21 not like that Feb 26 18:38:24 Napalm: if they run on Android, they won’t be scary. Feb 26 18:38:28 hmm let me see Feb 26 18:39:34 you thought the asimo robot was good.. they took big-dog and made it walk Feb 26 18:39:58 Hello again. Is there a nice way to determine if this is the first call to an onCreate? I have an activity for login that is the first activity which loads after the app launches, but I use it again when I click a logout button. The issue is I want to use Thread.sleep() to show the login page background ( splashscreen) if the app is just opening, but *not* if I'm coming from the logout button. Feb 26 18:40:37 Napalm "I love you box" rofl this is too funny Feb 26 18:40:54 cordovafan8: check if savedInstanceState parameter is null Feb 26 18:41:00 Napalm: relevant: https://youtu.be/HrjvjZET8R4?t=3m27s Feb 26 18:41:01 xD xD Feb 26 18:41:10 casadogg: yea, its a parody of the original Feb 26 18:41:13 cordovafan8: Have a separate, splash screen activity Feb 26 18:41:17 Yeh I know Feb 26 18:41:26 But you're right, soon enough people will start losing jobs Feb 26 18:41:42 To box loving robots Feb 26 18:42:20 And that's the tip of the botberg Feb 26 18:42:43 Automated killing machines is some scary shit Feb 26 18:43:13 casadogg: there are far scarier things. Feb 26 18:43:19 Software automatically writing apps. Feb 26 18:43:23 cordovafan8: Use Handler#postDelayed if you want something to happen after a period of time Feb 26 18:43:43 We already are seeing systems where you only have to click together most of the app, and use a bit of javascript to do the rest. Feb 26 18:44:07 if you use react.js with some simple frameworks you can already eliminate more and more code. Feb 26 18:44:22 Is there a url scheme you can use to open up game services either on the app store or on the device on Android? Feb 26 18:44:23 many smaller apps will be able to be written by purely designers soon. Feb 26 18:44:27 like game center on iOS has "gamecenter:" Feb 26 18:45:20 justJanne I know there are. It's still scary Feb 26 18:45:31 Bantalon: check here https://developers.google.com/games/services/android/init Feb 26 18:45:47 thanks! Feb 26 18:46:12 designer then be called coders :) Feb 26 18:46:43 Guess we should all start to build robots that automate shit Feb 26 18:47:50 Fun Fact: Mercedes is now replacing their robots with people again, because people are cheaper and can handle more variants easier. Feb 26 18:48:28 at the same moment German car makers announced they’d require almost one million new workers, no qualifications or knowledge required. Feb 26 18:48:48 haha Feb 26 18:48:52 is there a location I should be using to store files downloaded by my apps? Feb 26 18:48:56 people are the robots Feb 26 18:48:59 All of these people will be unemployed soon again. Feb 26 18:49:04 exactly. Feb 26 18:50:23 Wanna see something scarier? Feb 26 18:50:24 https://www.youtube.com/watch?v=YSyWtESoeOc Feb 26 18:51:04 I have that bookmarked o.O Feb 26 18:51:47 it's a freaking hologram Feb 26 18:51:58 It always shocks me that people pay to see this live Feb 26 18:52:36 well, a normal concert (thanks to melodyne live) isn’t better than an album either – it’s about the experience. Feb 26 18:52:42 #1, you can't have holograms at home, and it's still performance art Feb 26 18:53:42 live performer or not Feb 26 18:53:57 idk, it's something I'd enjoy seeing in an exposition Feb 26 18:54:03 but not a concert Feb 26 18:54:09 it lacks the interaction I guess Feb 26 18:54:27 non programmed interaction, or at least the illusion of Feb 26 18:54:41 that's a technical problem Feb 26 18:54:43 ignore the part after the comma Feb 26 18:54:45 and bound to be overcome Feb 26 18:55:09 yeh it's a technical problem of the projection not having organs, feelings or anything that makes it human Feb 26 18:55:09 lol Feb 26 18:55:45 well, people also go to see Compressorhead lvie: https://www.youtube.com/watch?v=3RBSkq-_St8 Feb 26 18:55:54 * pfn shrugs Feb 26 18:56:01 ( a full live concert is https://www.youtube.com/watch?v=M9qmspX3clE ) Feb 26 18:56:03 your viewpoints are not the same as those who would pay to go see Feb 26 18:56:45 I know, you're right, and I am not saying I criticize them Feb 26 18:57:00 I just said it shocks me that people pay to see it live. Feb 26 18:57:07 Napalm yeah i saw that Feb 26 18:57:08 not that my opinion matters. just a thought Feb 26 18:57:30 lol justJanne Feb 26 18:57:39 casadogg: also watch https://www.youtube.com/watch?v=pAjzZ1-PSHg Feb 26 18:57:43 that’s the best Feb 26 18:57:45 now that I definitely can't understand Feb 26 18:57:58 I would actually go and pay to watch that last vid, tbh Feb 26 18:58:14 it's still performance art, and it's pretty awesome Feb 26 18:58:15 Napalm was also reading about a garbage truck, drone, droid combo that collect garbage from street (drone couts for bins and droid goes to pick them up) Feb 26 18:58:39 g00s: well, that issue is solved anyway, Feb 26 18:58:54 by the robots that clean the street and sidewalks once a day Feb 26 18:58:57 anyone here who develops a game using Google Play Games? How can I display the new profile image that the players have? Feb 26 18:59:15 justJanne that guitarist though Feb 26 19:00:29 pfn It is awesome Feb 26 19:00:33 And I'd pay to see it Feb 26 19:00:38 But in an exposition Feb 26 19:04:18 ktwo https://www.reddit.com/r/androiddev/comments/47ni7v/if_you_support_older_versions_of_android_there_is/ Feb 26 19:04:25 why the phone become so slow after running an app from Android Studio few times? and how to fix this? Feb 26 19:05:35 How might I go about getting the value of a SwitchPreference from somewhere outside a PreferenceActivity? Feb 26 19:05:50 I can't figure out how I might reference it from SharedPreferences? Feb 26 19:06:06 that's not a bug... Feb 26 19:06:12 I like resolution "UserError" Feb 26 19:06:14 I'd like to be able to read the value globally Feb 26 19:06:34 because that is what it is Feb 26 19:07:43 cordovafan8 it is what it is, life is life ! Feb 26 19:08:52 g00s, Thanks! useful info Feb 26 19:09:09 exactly the bug im facing Feb 26 19:10:50 I figured it out Feb 26 19:10:59 The guy ditching the toolbar for a RelativeLayout has a point Feb 26 19:11:15 you just need to call getDefaultSharedPreferences(), then you can ask for it with getBoolean() like any other pref. Feb 26 19:11:38 casadogg hmm. until you want your fragments putting actions in the actionbar Feb 26 19:12:02 I don't know about that Feb 26 19:12:05 You could write some interfaces Feb 26 19:12:09 use onbackstackchanged... Feb 26 19:12:11 many ways Feb 26 19:12:14 or until you want to use simple menus in the action bar Feb 26 19:12:21 apparently I could have more 10 replies if I used another nickname like blondbitch or something Feb 26 19:12:28 putting actionmenuview manually in there makes it more complex again Feb 26 19:12:37 interesting fuckers Feb 26 19:12:45 UbuntuDude you could also have more replies if you provided actual information Feb 26 19:12:57 casadogg: not really Feb 26 19:13:11 UbuntuDude: yes, really. Feb 26 19:13:22 your current info is 100% useless, and so 100% ignored. Feb 26 19:13:57 justJanne: they're as useful as you're. Feb 26 19:14:34 is there a built in way to implement an image picker? Feb 26 19:14:44 or is it all just random people creating different implementations? Feb 26 19:15:17 So, I'm writing this ContentProvider Feb 26 19:15:33 DrBenway I don't think there is a built in. You have to build your own Feb 26 19:15:46 but the things it provides may change without using it Feb 26 19:15:56 casadogg: thanks Feb 26 19:15:59 I created an Observer Feb 26 19:16:22 but of course, that does not make any sense at all, doesn't it? Feb 26 19:16:45 I should only have a ContentProvider if everything I provide is to be changed through it Feb 26 19:17:07 otherwise it wouldn't be aware of changes and could not notify clients of such changes Feb 26 19:17:08 I feel stupid Feb 26 19:18:14 But then, I can't observe the system volume at all Feb 26 19:18:31 The only way to do that is to query it every X seconds Feb 26 19:18:53 I'm right am I not? Feb 26 19:20:24 Of course I am, I am always right when I call myself stupid Feb 26 19:21:00 Then only through recognizing oneself dumbness is one able to advance? Feb 26 19:21:32 Evolution is then but the constant realization that decisions we took are wrong Feb 26 19:22:06 Improvement can only be archieved by strong critics Feb 26 19:22:30 and therefore I should RTFM more. Feb 26 19:22:55 *RTFME myself Feb 26 19:22:58 *RTFM Feb 26 19:23:07 thank you all, farewell. Feb 26 19:23:11 linoge: or choose a ticky nickname Feb 26 19:25:45 You guys have to understand a few things: Feb 26 19:25:57 1 - If you provide shitty information you'll get a shitty answer or no answer at all Feb 26 19:26:07 2 - If you get no answer at all it may be because no one knows how to solve your problem Feb 26 19:26:50 3 - We are not paid to answer stuff here, so try stackoverflow, people are paid reputation points there and are eager to answer you. Feb 26 19:27:46 casadogg: keep barking Feb 26 19:29:11 reputation points? Feb 26 19:29:14 they're worth something? Feb 26 19:29:21 I troll stack overflow about the same way I do irc Feb 26 19:30:13 Is it possible to use Gradle 2.0 beta with AS 1.5.1? Or does it require AS2.x? Feb 26 19:32:25 pfn I think reputation points not only are worthless but responsible for turning the stackoverflow community into shit. But to me stackoverflow is relevant because of several users Feb 26 19:32:38 besides you troll but you are very helpful at the same time Feb 26 19:33:39 casadogg profound, you mean pfn is yin and yang ! Feb 26 19:34:08 wow yeh, I was going to actually say this Feb 26 19:34:23 but then I thought better and he's not Feb 26 19:34:45 i feel there’s a Codeless Code story in there somewhere Feb 26 19:50:48 huh , support 23.2 changed behavior of tabLayout / gravity / mode Feb 26 19:52:24 * p_l played around with "Plaid" App... :< Feb 26 19:52:45 p_l ha ! Feb 26 19:53:00 for what its does, insane amount of code and complexity ... Feb 26 19:53:26 well, I'm thinking of punting it into a library and code generator Feb 26 19:53:59 i like the app, its really smooth. nick is pretty good coder. but when i think 'android is more complicated than it needs to be' i can just point to the Plaid code base ... and its only api 21 ! Feb 26 20:00:04 Hi there. I have a 737 lines fragment. So I intent to improve the code and get some responsibilities to other classes. How would you suggest to do it ? Any tool to get the class diagram and re-think everything ? Should I do it on pencil + paper ? Feb 26 20:00:23 pencil and paper’s about your best bet Feb 26 20:00:48 s73v3r: yeah, I think will be it. Feb 26 20:01:23 have to better think about the architecture of my app. Feb 26 20:01:24 maybe use index cards, pen and big enough table Feb 26 20:01:37 * p_l wishes there were better diagramming apps for android tablets Feb 26 20:02:17 p_l: there are, they’re called "whiteboard and board marker" Feb 26 20:03:27 justJanne: I meant on a device. That said, if I were to go more into Office 365, MS has wonderful application for android designed specifically for dealing with whiteboards Feb 26 20:03:39 (and OneNote looks like best note application right now....) Feb 26 20:03:54 OneNote is nice Feb 26 20:04:24 for programming notes i use Quiver , awesome too Feb 26 20:04:33 OneNote is the worst note taking application: Doesn’t run on any unix, Feb 26 20:04:41 therefore 100% useless for dev systems. Feb 26 20:04:52 oh then you watn emacs and org mode lol Feb 26 20:05:18 well, currently I use just kate and write markdown files. Feb 26 20:08:22 OneNote 2010 works on linux, afaik Feb 26 20:08:29 unfortunately, right now I deal with 2016 Feb 26 20:09:17 yeah, there are quite a few issues. Feb 26 20:09:33 sadly, as long as note taking apps work worse than paper, they’re not really usable. Feb 26 20:09:44 although they manage to handle storage better than paper Feb 26 20:11:38 some people go with scanning and OCR Feb 26 20:16:46 "dev systems" -- I develop exclusively in windows Feb 26 20:16:49 sometimes osx, rarely linux Feb 26 20:17:51 well, you’re the exception Feb 26 20:18:13 I don’t like trying to use the command line on windows, it’s a pain in the ass. Feb 26 20:18:20 or using gcc there, or gdb. Feb 26 20:18:22 Any respectable dev uses osx Feb 26 20:18:34 > Any respectable dev uses a *NIX Feb 26 20:18:35 FTFY Feb 26 20:19:15 not really Feb 26 20:19:34 there are quite a number of tools, especially for embedded developers, that have only been for Windows Feb 26 20:20:16 *there have been Feb 26 20:20:36 most, from my experience Feb 26 20:20:50 With embedded systems it’s a 50/50 chance. Feb 26 20:21:04 sometimes it only works on linux with an ancient version of GCC compiling for it, Feb 26 20:21:22 * pfn shrugs Feb 26 20:21:23 or it only works on windows with some weird GUI program for it Feb 26 20:21:27 * pfn gets by with mingw Feb 26 20:21:36 yes, this is true. If it works with GCC, then it’s going to be a shitty old version, with no way to update Feb 26 20:22:02 90% of those times they even deliver a custom build of GCC, no source or anything. Feb 26 20:23:01 But especially in the C and C++ world, most complex embedded processors, the server world, and mostly the scientific world, it’s all *NIX Feb 26 20:23:33 there was one system I worked on where their dev environment, Windows only, was a customized version of Eclipse. And this was an ancient version of Eclipse at the time. And no way to update to a newer one Feb 26 20:23:41 yeah Feb 26 20:24:20 we started working on a grails project, and it was limited to grails 2.4.4, which only worked with eclipse pre-luna, or IDEA Ultimate, and additionally doesn’t work on JDK8 Feb 26 20:24:21 it’s like, why on earth would you customize it that much? Did you honestly get that much more out of it than just writing a plugin? Feb 26 20:24:34 s73v3r: the same could be said about Android Studio ;) Feb 26 20:24:45 so much stuff should be a plugin instead of a rebuild. Feb 26 20:24:59 kinda. Studio at least tracks IntelliJ pretty well. Feb 26 20:25:07 especially the eclipse stuff, as eclipse is more a LEGO for IDEs than an IDE. Feb 26 20:25:53 s73v3r: while studio tracks IntelliJ, it doesn’t track IDEA. Feb 26 20:26:07 some of us want to use their Ultimate features they paid for... Feb 26 20:26:33 Ultimate has support for Android, doesn’t it? Feb 26 20:26:43 only equivalent to Android Studio 1.2 Feb 26 20:26:55 not any of the features since, and only some from 1.3 Feb 26 20:27:09 but it supports Instant Run on the emulator (but nowhere else) Feb 26 20:27:39 I need to write a simple backend Feb 26 20:27:44 want to try out some new technology Feb 26 20:27:48 what do you guys suggest? Feb 26 20:28:57 java but its not new ^^ Feb 26 20:29:24 new to me, not to the tech world :) Feb 26 20:29:33 spring is not new to me, I guess I could try other frameworks Feb 26 20:29:46 groovy on grails it is Feb 26 20:29:48 I’ve heard Python+Flask is excellent for simple backenends Feb 26 20:30:08 python is good to get things up and running fast Feb 26 20:30:11 Grails is pretty awesome, yeah. Feb 26 20:30:23 We use it at uni for most simple projects in Java, Feb 26 20:30:36 but obviously prefer python+flask or Ruby on Rails for other projects. Feb 26 20:30:58 avoid rails at all costs Feb 26 20:31:03 but ruby is a nice language Feb 26 20:31:17 those are all good alternatives Feb 26 20:31:21 hum... Feb 26 20:31:27 there's always php as well Feb 26 20:31:33 not new to me either :) Feb 26 20:31:34 people shit all over it, but it's gotten much better Feb 26 20:31:46 php 7 is crazy fast Feb 26 20:31:48 php is the best be technology I worked with tbh Feb 26 20:31:58 well, php isn’t ideal for these things. Feb 26 20:31:58 the frameworks it has are amazing Feb 26 20:32:03 I'm not sure it's really suited for backend Feb 26 20:32:22 you could try Go Feb 26 20:32:24 90% of php’s libs, frameworks, and especially stdlib are... unsuited for anything. Feb 26 20:32:32 or a Lisp Feb 26 20:32:36 As is always the case when it’s easy for anyone to start. Feb 26 20:32:39 Rust Feb 26 20:32:44 Clojure, Erlang Feb 26 20:32:48 Prolog Feb 26 20:32:48 s73v3r: for lisps Racket would be nice – it has lots of awesome frameworks. Feb 26 20:33:00 racket is nice Feb 26 20:33:08 well maintained, batteries included Feb 26 20:33:17 Erlang is also useful for real-time backends, say chat servers, etc. Feb 26 20:33:36 (We also used racket in a first semester course at uni) Feb 26 20:33:48 a drunk guy cornered me and talked my face off about Erlang at a party once Feb 26 20:33:49 you could write it in ASM, too, if you want to experience pain Feb 26 20:33:52 he wouldn't quit Feb 26 20:34:03 ahaha what a shitty party it must have been Feb 26 20:34:04 no matter what I did to end the convo he just spawned a new one Feb 26 20:34:17 *bah dum tiss* Feb 26 20:34:18 he was probably on MDMA Feb 26 20:34:23 ok bad Erlang joke Feb 26 20:34:23 cordovafan8: Oh, and Erlang wasn’t the language Feb 26 20:34:26 mooooove on Feb 26 20:34:27 Erlang was his penis Feb 26 20:34:29 I once met a guy who cornered me talking about acetone Feb 26 20:34:30 lol Feb 26 20:34:56 I bet that was scary Feb 26 20:35:50 nobody said node.js ! Feb 26 20:36:00 must be all old farts Feb 26 20:36:08 gah, I already work with node in my job Feb 26 20:36:14 would rather stay away at this point in my life Feb 26 20:36:30 jvrodrigues what framework with node ? Feb 26 20:36:35 express Feb 26 20:36:51 ah yeah, thats pretty low level i hear Feb 26 20:37:25 thing is, its very easy to fuck up, and the dev that worked on it was a student and had never worked with node before Feb 26 20:37:27 anyone tried React? Feb 26 20:37:28 and he fucked up Feb 26 20:37:37 I tried react-native Feb 26 20:37:47 good/bad/ugly? Feb 26 20:37:59 I think it needs to mature a lot on the android side at least Feb 26 20:38:08 before I consider using it on production Feb 26 20:38:17 try going to the facebook react page and download the featured apps Feb 26 20:38:24 react has, IMO, a *lot* of potential. Feb 26 20:38:27 But not before 2035. Feb 26 20:38:30 you'll see what I am talking about :/ Feb 26 20:38:34 Until then it’s fully patented. Feb 26 20:38:41 yea, what justJanne said Feb 26 20:38:48 heh Feb 26 20:38:50 And you can only use it if you never sue Facebook, or never contest any of their patents. Feb 26 20:38:57 aight, have a good weekend guys Feb 26 20:39:02 even if they infringe your patents, you can’t do anything. Feb 26 20:39:29 I don’t think that’s a big deal for most people using it Feb 26 20:39:39 i don't worry about that too much, its mostly about how fast I can deliver quality work Feb 26 20:39:51 s73v3r: not for small devs, but for anyone who has plans to go into research, and for anyone planning to sell out. Feb 26 20:39:53 and its either fast or average Feb 26 20:40:02 Also prevents other big companies from using it. Feb 26 20:40:58 it’s kinda like the Tesla Patent deal: You may use these patents* (if you give away all yours for free) Feb 26 20:43:07 Hey guys. I have an activity that hosts many fragments. Some of them I want in the backstack so when i transact I do an addToBackStack. One of them I don't want in the stack, so when I add that fragment I don't addToBackStack...however when I press the backbutton it still goes back to that fragment Feb 26 20:43:50 martiallaw so clearly it's in the back stack :D Feb 26 20:44:15 yep, how do i prevent it from being added there is my question Feb 26 20:44:27 martiallaw what are you doing/not doing to prevent it, right now? Feb 26 20:45:00 well from every sof article i've seen they say don't add line .addToBackStack() in the transaction Feb 26 20:46:00 martiallaw : dont add this fragment in backtrace or remove it once the fragment is destroyed Feb 26 20:49:08 dd_dabba: and how do i do that? pop it ondestroy? Feb 26 20:53:42 mystery? Feb 26 20:54:00 i'm not adding to the backstack which is why i'm asking you guys Feb 26 20:57:40 is there a way to read the response body of an okhttp response without resetting it, i.e. for logging purposes? string() closes the buffer, so I can't really read it without breaking things Feb 26 20:59:53 nm, found this: https://github.com/square/retrofit/issues/1072#issuecomment-139097973 Feb 26 21:01:30 What to use for pastes? Feb 26 21:01:36 I need someone to check at why something is not working :/ Feb 26 21:03:21 anyways Feb 26 21:03:21 https://gist.github.com/clinoge/27bc10b652fd9e9b1780 Feb 26 21:03:33 Apparently Kotlin map delegate doesn't play well with Gson :( Feb 26 21:04:14 I've got a HandlerThread, start it, create a Handler with the HandlerThread's looper as Argument and then postDelay a RunnableObject to that Handler. Feb 26 21:04:25 Code in run() never executes Feb 26 21:07:30 Nothing wrong there Feb 26 21:07:32 how do you run the service Feb 26 21:08:39 Through a BroadcastReceiver https://gist.github.com/clinoge/9a0eb4262aac204c7ea4 Feb 26 21:09:01 Intent startServiceIntent = new Intent(ctx, VolumeService.class ); ctx.startService(startServiceIntent); Feb 26 21:09:43 did you confirm service is indeed started, onCreate invoked and onDestroy not invoked Feb 26 21:10:08 Ashiren: no, I didn't, previously I had some errors and the service stopped on boot Feb 26 21:10:24 So I've always thought it executes Feb 26 21:10:40 Also, there's no exception shown in monitor (debugging tool) Feb 26 21:11:23 i usually put Log.d(...) in methods like onCreate, onResume etc Feb 26 21:11:26 Use log statements to check whether everything is executing as expected.. And make sure you're not filtering them away Feb 26 21:12:29 also, did you try when the device is plugged in to charger/usb Feb 26 21:12:35 or purely on battery Feb 26 21:29:32 nice Rpi 3 with BLE Feb 26 21:30:22 how do i prevent a fragment from being added to the backstack? Feb 26 21:30:48 martiallaw uh, your situation is weird; if you didn't add it - can't see how it is there Feb 26 21:30:59 oooo, i would like a Raspberry Pi with BLE built in Feb 26 21:31:25 ya i know. i'm not adding it Feb 26 21:31:35 martiallaw file a bug Feb 26 21:31:44 add project to it Feb 26 21:35:04 martiallaw, i doubt its a framework bug. Are you using support fragments? are you sure you don't have another activity on the stack? Feb 26 21:37:47 i am using support fragments Feb 26 21:38:04 are you calling add? Feb 26 21:38:18 replace Feb 26 21:38:50 i am also sure i have no other activities in the stack Feb 26 21:39:28 i know android well but i have no idea why it's being added when i'm not adding it Feb 26 21:41:03 having this as a fragment is not entirely necessary so i will just convert it to an activity. Feb 26 21:41:10 wait Feb 26 21:41:15 are you calling .add or .replace? Feb 26 21:41:18 replace Feb 26 21:41:21 huh Feb 26 21:41:36 post code, there has to be a bug somewhere Feb 26 21:42:11 also what version of the support lib are you using? Feb 26 21:42:14 it's a dead simple fragment, it just holds an imageview and does alpha anim on it and closes. the transaction is simple Feb 26 21:42:29 v4 Feb 26 21:42:36 :) Feb 26 21:43:00 thats the name of the library, not the version Feb 26 21:43:36 ok so you add a fragment by calling replace the does some stuff then closes itself? Feb 26 21:44:10 right, this is after a series of fragments were added before it so there are frags in the stack (that i intentionally add to the stack) Feb 26 21:44:20 ok Feb 26 21:44:31 when it closes itself what is supposed to happen? Feb 26 21:44:44 the app also closes? Feb 26 21:44:48 or does it go to another fragment? Feb 26 21:44:54 another frag Feb 26 21:45:17 yea, you are probably calling the wrong method there Feb 26 21:45:36 are you overriding on back pressed in the activity, for example? Feb 26 21:45:43 yep Feb 26 21:45:49 what do you do in it? Feb 26 21:45:54 could you be adding another fragment? Feb 26 21:46:48 not unless a certain condition is met and that condition is not met in this case Feb 26 21:46:54 give me a moment Feb 26 21:48:45 right, it was the next transaction after the problem fragment was closed... that was the problem Feb 26 21:48:47 thanks dude Feb 26 21:50:08 heh :) to think a bug report was almost filed Feb 26 21:50:19 glad I could be of help Feb 26 21:51:43 alright so I'm gonna dive into grails Feb 26 21:52:08 Hi! Feb 26 21:52:50 hey Feb 26 21:53:04 yech Feb 26 21:53:23 Can anyone tell me, is there a way of making android:onClick="show [STRING_FROM_STRINGS.xml]" /> so if my string.xml had myFunction in, showMyFunction() would be called? Feb 26 21:54:19 not possible :( Feb 26 21:54:25 lol i wouldn't have filed a bug report for that Feb 26 21:55:52 okay, how about getting the text from a button? I could do it that way around? I've got the view, public void showToast(View view), so I'd need to somehow know which button was pressed so I could get the text from the button then make a string up. Feb 26 21:56:27 Its just I'm showing a toast when one of 5 buttons is pressed, amd I'm sure I should be able to do it with 1 method, rather than 5. Feb 26 21:56:38 switch (view.getId()) ? Feb 26 21:57:14 if you are assigning ids to your buttons Feb 26 21:57:17 which you should anyway Feb 26 21:58:04 I always found the onClick attribute to be terrible though Feb 26 21:58:25 i never use it, but why? Feb 26 21:58:57 because I think Views/activities/fragments should know about the xml but the xml should be agnostic to what is using it Feb 26 21:59:11 right Feb 26 21:59:11 I also don't like data bindings Feb 26 21:59:13 but thats me Feb 26 21:59:14 :/ Feb 26 21:59:46 So I'd have the android:id="@+id/buttonSpotifyStreamer", how do I go about getting the string from the button? No need to tell me code, I'll go and look it up, just I don't know *what* I'm looking up! Feb 26 21:59:57 getText Feb 26 22:00:07 lol, should have guessed :-) Feb 26 22:00:16 you need to cast the view to a button first though Feb 26 22:00:22 then getText() heh :) Feb 26 22:00:30 heres a question, i have a viewpager inside a scrollview.. all works well but when i want to scroll down i have to do it outside of the viewpager... anyway to allow this to happen if i am touching the vp? Feb 26 22:00:36 well yeah Feb 26 22:02:51 I wonder why mobile vision is a google play services api Feb 26 22:03:50 freaking stackoverflow... my life is no fun, everything has been done before http://stackoverflow.com/questions/5620772/get-text-from-pressed-button Feb 26 22:04:08 I can't even search for the info to work out the answer, without someone giving me the answer... Feb 26 22:04:08 well... lol Feb 26 22:04:19 :) Feb 26 22:05:51 martiallaw, you can maybe requestDisallowTouchEvent(false) on the view pager but I am pretty sure that won't work Feb 26 22:06:12 i was thinking that myself but i don't think it will work either Feb 26 22:06:22 you'd be better off writing your own touch listener Feb 26 22:06:40 and allow it to scroll on the y? Feb 26 22:06:46 the thing is, even if it works you go test it on a samsung and it won't work because samsung decided to say fuck all to touch apis Feb 26 22:06:49 ya Feb 26 22:07:02 samsung sucks Feb 26 22:07:08 you read the touch event and either dispatch scroll to the scrollview or to the view pager Feb 26 22:07:19 right Feb 26 22:07:46 though a view pager inside a scrollview is sketchy to say the least Feb 26 22:08:15 wouldn't you be better off by adding scrollviews to the fragments that need it inside the view pager? Feb 26 22:11:57 right but the bottom part of the viewpager can't change when the page changes. Feb 26 22:13:53 will all the pages have the same size though? Feb 26 22:14:08 you can get around it with scrollTo(x,y); Feb 26 22:14:59 * pfn <3 android-gradle-build Feb 26 22:15:02 I never have to run gradle Feb 26 22:15:33 what's that pfn? Feb 26 22:15:49 something that autoconverts a gradle-build definition into my build tool of my choice Feb 26 22:15:55 oh Feb 26 22:16:32 I'm sorry, what is trying to be done with a viewpager in a scrollview? Feb 26 22:17:30 proper propagation of the motion event to the scrollview if its Y or vp if its X Feb 26 22:18:58 did he already extends scrollview? Feb 26 22:19:41 fook it, I'll use the google vision api for barcode scanning, zxing is too complicated Feb 26 22:20:11 basically, you have to catch the down event and upon motion, pass the events to the correct view Feb 26 22:22:58 zxing is cool Feb 26 22:23:14 I would share my implementation with you but I am using deprecated camera apis Feb 26 22:23:21 I haven't used zxing in forever, I kind of feel like scanning barcodes is a niche Feb 26 22:23:23 can't be bothered to update at this point in my life Feb 26 22:23:59 we work with QRs heavily Feb 26 22:24:19 though mostly its just creating them, not so much for scanning Feb 26 22:24:27 I just mean as a user Feb 26 22:24:39 ah Feb 26 22:24:39 I can see it in some kind of industrial setting being used Feb 26 22:24:50 like maybe a warehouse or something Feb 26 22:24:53 well I think its about to see an increase, I think here in germany Feb 26 22:25:10 though, as I said, its mostly creating them, not so much for scanning them Feb 26 22:25:21 I don't think i ever scanned a qr code that I saw lying around in my life Feb 26 22:26:08 jvrodrigues, why would you update any time soon, camera2 is api21+ Feb 26 22:26:24 it's very niche Feb 26 22:26:31 I just want to scan qr codes for otpauth urls Feb 26 22:26:43 rather than relying on launching an external activity Feb 26 22:26:46 pfn the zxing looked easier if you are using camera; if you already have the bitmap GMS might be easier Feb 26 22:27:02 g00s, nope, zxing isn't easier if using camera Feb 26 22:27:16 i.e. the zxing android pieces aren't published as a library to make re-use easy Feb 26 22:27:34 camera2 also apparently has a lot of bugs I've heard Feb 26 22:27:36 android-core is a single class Feb 26 22:27:52 and android-integration is for calling an installed barcode reader Feb 26 22:28:05 someone wrote a 3rd party integration library, it's better Feb 26 22:28:10 but I want to use a canonical implementation Feb 26 22:32:29 [info] Packaged: keepshare-release-unsigned.apk (14.73MB) Feb 26 22:32:30 hrm Feb 26 22:32:38 card.io added 12mb to my apk :( Feb 26 22:33:06 wait it is? Feb 26 22:34:08 is it possible to switch the phone's language settings programmatically? Feb 26 22:34:24 I just love reading java code, everything is a thousand lines of code Feb 26 22:34:41 grekkos: not from an 3rd party app Feb 26 22:34:43 https://github.com/googlesamples/android-vision/blob/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/ui/camera/CameraSource.java Feb 26 22:34:51 well, 700ish after taking out comments Feb 26 22:34:57 tl;dr Feb 26 22:34:59 i'm thinking it would be very convenient for me to create some kind of "dev widget" that allows me to access the most used settings I have to deal with for testing Feb 26 22:35:18 grekkos: you can do it internal to your app only but not globally Feb 26 22:35:21 really? you use those many settings? Feb 26 22:35:34 jvrodrigues: no just a few but it's often enough to be tedious Feb 26 22:35:43 jvrodrigues, it's comment to flip a ton of stuff for dev... Feb 26 22:35:44 I turn on debugging once and thats pretty much it Feb 26 22:35:45 like wifi proxy settings and language Feb 26 22:36:04 show view bounds, show touches, wifi proxy (for charles), language for translation, font-sizes for view rendering Feb 26 22:36:04 etc. Feb 26 22:36:16 Ah. Feb 26 22:36:31 i should be able to launch an intent at least for Language & Input I would think Feb 26 22:36:36 like I flip show touches on and off all the time for screenrecording Feb 26 22:36:43 yeah Feb 26 22:36:47 that would be useful too Feb 26 22:36:53 > I totally do all that stuff too Feb 26 22:37:07 and showing overdraw so I can figure out wtf my view went sometimes Feb 26 22:37:17 but yea font sizes I can see being important, have donut a couple of times Feb 26 22:37:19 like right now I have to switch back and forth between french canadian and US english Feb 26 22:37:35 you only have 1 device? Feb 26 22:37:40 I personally don't have to switch languages, but testers often do Feb 26 22:37:43 i do :3 Feb 26 22:37:51 can't you setup two emulators? Feb 26 22:37:53 I have a second one but it's on gingerbread Feb 26 22:38:00 I often have like 3 or 4 devices on my table Feb 26 22:38:02 app doesn't run on the emulator lol Feb 26 22:38:10 thats probably why I don't need to change settings often Feb 26 22:38:16 although that would be viable in the general sense of things Feb 26 22:39:01 was debating buying another android phone but I'm not sure if I want to make that investment just yet Feb 26 22:39:29 ohai! I am trying to get adb working on my ouya. it's enabled in the settings, adb works on my laptop with my phone, file transfer works so the cable must be fine, but it's not in "adb devices" Feb 26 22:39:33 what am I missing? Feb 26 22:40:09 Peetz0r: what OS? Feb 26 22:40:24 drivers? Feb 26 22:40:45 ubuntu 14.04 on my laptop, android 4.1.2 on the ouya Feb 26 22:40:50 dev rules Feb 26 22:40:54 udev* Feb 26 22:40:56 Peetz0r: did you populate your dev rules? Feb 26 22:40:59 udev roules have been made, yes Feb 26 22:41:05 have rebooted after that, yes Feb 26 22:41:18 debug mode enabled on the device? Feb 26 22:41:19 tried adb as root even, no difference Feb 26 22:41:21 https://wiki.cyanogenmod.org/w/UDEV Feb 26 22:41:22 yes, enabled Feb 26 22:41:40 Peetz0r: do you have the correct udev rules? Feb 26 22:41:42 Some devices just have different modes Feb 26 22:42:04 charge, file transfer, ... Feb 26 22:42:10 sometimes you need to change the mode. Media won't allow debugging etc. Feb 26 22:42:31 my G4 needs to be set to camera to be able to use adb Feb 26 22:42:42 I could try that, moment Feb 26 22:44:28 where is this setting that lets you change between MTP and PTP? Feb 26 22:44:33 can't seem to find it :p Feb 26 22:44:49 you should have a notification that will take you there Feb 26 22:44:54 for an Ouya I have no idea, most devices give a notification Feb 26 22:44:55 Peetz0r: what notifications do you have when you connect via usb? Feb 26 22:45:14 ok, I'll stop helping, I just seem to keep getting my stuff in too late Feb 26 22:45:26 haha Feb 26 22:45:32 there's no notification thing that I can see Feb 26 22:45:34 I just opened this by mistake ;) Feb 26 22:46:13 their launcher tries to get me to make an ouya account which requires credit card details or coupon codes. I have neither :') Feb 26 22:47:01 but before that it gives me the option to connect to a network, an that screen has an 'advanced' button, which leads to the stock android network settings thing, and back from there is the main settings thing Feb 26 22:47:13 so the settings is everything I can access Feb 26 22:47:25 and no notifications visible while I am in the settings. not even a clock Feb 26 22:49:24 is the phone charging? Feb 26 22:49:40 it's not a phone, it's an ouya Feb 26 22:49:48 it's an android based game console Feb 26 22:50:07 but I want it as a generic linux box instead :p Feb 26 22:50:19 it has a dedicated power supply brick Feb 26 22:50:40 but as mentioned before, MTP file transfer works, lsusb lists the thing, so the usb cable works just fine Feb 26 22:51:03 what does the Ouya site say? Feb 26 22:51:15 guys, did you know theres a gaming console that has android called ouya? Feb 26 22:51:21 and is developer mode on? Feb 26 22:51:25 they invent everything these days Feb 26 22:51:38 I will stop helping now as I have absolutely no idea what this thing is Feb 26 22:52:46 their website has generic how-to-install-adb instructions (that assumes eeryone has either windows or osx) and nothing else Feb 26 22:52:57 many other things on the internet say adb should just work Feb 26 22:53:11 and yes, usb debiugging is enabled as stated before Feb 26 22:57:19 I guess I can cut down 6mb if I remove the 64bit abi Feb 26 22:58:15 actually have to remove the 64bit abi, it will crash my app otherwise (since my other libraries aren't built for 64bit abi) Feb 26 23:05:15 pfn what are you working on? Feb 26 23:05:34 Peetz0r, did you google the device specific u dev rules? Feb 26 23:05:37 also Feb 26 23:05:43 jvrodrigues, messing around with my password manager Feb 26 23:05:44 are there any worthwhile games for that stuff? Feb 26 23:06:02 this is great Feb 26 23:06:06 jvrodrigues: I don't know about the games. I am not a gamer Feb 26 23:06:15 https://github.com/pfn/keepshare https://play.google.com/store/apps/details?id=com.hanhuy.android.keepshare Feb 26 23:06:19 on monday Im going to arrive with a huge grin across my face Feb 26 23:06:24 Guys, do you have any rule of when to use SyncAdapter over your custom OkHtttp/Retroft - based Api class? I have another new project and I want finally try to use SyncAdapter but to be honest it's only because I have never worked with it before, not because I really see some advantages. Feb 26 23:06:29 are you fucking serious, searching for my app in google play shows me other related apps before it shows mine... Feb 26 23:06:41 and I don't need google for those udev rules, I just need to know the vendor-id which lsusb tells me (but google agrees with me on this anyway) Feb 26 23:07:30 looks interesting Feb 26 23:07:41 going to clone your project and give it a go Feb 26 23:07:46 go == look Feb 26 23:07:49 but anyways Feb 26 23:07:54 monday morning Feb 26 23:08:01 the CTO will receive a device request Feb 26 23:08:10 this ouija thing Feb 26 23:08:17 I want it Feb 26 23:08:17 jvrodrigues, if you actually want to run it, you need to setup a google app https://github.com/pfn/keepshare/issues/2 Feb 26 23:08:24 hmm.. before I try this out, does @PostConstruct work in android? Feb 26 23:10:05 search in google play is pretty .. weird. i see a lot of apps before mine that don't have anything to so with the keyword, except there must be some statistical correlation thats unfathomable Feb 26 23:10:15 *to do Feb 26 23:11:04 search in google play is broken Feb 26 23:11:28 if i search from the web, it doesn't even show all the results. Feb 26 23:11:34 from device it does Feb 26 23:11:37 there is no reasoning that can explain how shitty it actually is Feb 26 23:12:03 jvrodrigues lets hope these super algorithms don't start deciding our lives :D Feb 26 23:12:24 i heard the term other day 'algorithmic fate' Feb 26 23:13:48 it correctly describes the uneasy feeling of not understanding this misbehaviour Feb 26 23:16:33 can we use gradle-plugin 2.0 b6 with AS 1.5.1 ? i'm guessing not, wonder if anyone knows Feb 26 23:18:28 see you guys tomorrow Feb 26 23:19:20 try it and see Feb 26 23:19:45 http://thevarguy.com/open-source-application-software-companies/intel-unveils-android-phones-can-also-run-debian-gnulinux Feb 26 23:28:51 hello guys! good night! Feb 26 23:30:39 guys. i wonder with the automatic generation of the R.java file is made by some gradle routine or some other part of the Android Studio. Feb 26 23:30:48 can someone confirm it to me? Feb 26 23:31:53 oh noes latest Plaid crashes on start :( Feb 26 23:37:31 vyscond: the resources file generation is done via a command line tool called aapt Feb 26 23:39:07 herriojr: cool. thanks for answer. Feb 26 23:40:01 hi guys how do i delay my splashscreen Feb 26 23:40:19 that depends on how your splash screen is set up Feb 26 23:40:31 I wish people would just get rid of splash screens Feb 26 23:42:23 meh. in most cases, there’s not really a better option. Feb 26 23:43:33 happy friday Feb 26 23:43:43 woo! time for some more android dev Feb 26 23:45:33 herriojr: strange. all the api levels are missing the tools/ folder Feb 26 23:45:36 .-. Feb 26 23:50:06 vyscond: did you download the api levels? Feb 26 23:50:15 vyscond: run the android tool Feb 26 23:50:46 herriojr: yes. i have building my apps this week. i just got curious about the "behind the scenes" Feb 26 23:51:16 the gradle build tools are open source if you want to look at them Feb 26 23:51:18 herriojr: currently using the api level 21. but the aapt is not there. Feb 26 23:51:41 herriojr: can you give a url? Feb 26 23:52:50 aapt is under build-tools/ Feb 26 23:53:28 herriojr: ohhhh Feb 26 23:53:35 herriojr: ack. Feb 26 23:53:46 vyscond: just a sec, I have to find the repo url Feb 26 23:53:59 herriojr: okkey Feb 26 23:54:21 vyscond: http://tools.android.com/build Feb 26 23:54:42 herriojr: thanks mate :) Feb 26 23:55:28 before you start looking through their gradle crap, make sure you know groovy Feb 26 23:55:41 as well as how to build a gradle plugin Feb 26 23:57:07 herriojr: groovy... i didint heard this name in a long time... Feb 26 23:57:22 herriojr: thanks again for the help mate! :D Feb 27 00:00:01 np Feb 27 00:26:10 Hello there, I have a bit of a problem again, I am creating a file in the download-directory., I want the user to do with this file as they please but for that they need to be able to see said file, and the Downloads-app is not showing the file, can s.o. tell me as to why this file is not shown? it is a json-file export.json Feb 27 00:30:26 Hello, im trying to compile sdl2 on android using ndk, but i get an error: fatal error: EGL/eglplatform.h: No such file or directory. has anyone dealt with this issue? Feb 27 00:37:41 hey herriojr have time to one more question? Feb 27 00:40:09 ok bump -.-, I don't need a solution, just a hint into the right direction would be awesome, when a file is created prgramatically in Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath() why is not showing in the Downloadsapp although other files in that directory are shown? Feb 27 00:40:20 just ask the question. if someoen can answer, they will. if not, then they won't Feb 27 00:40:25 sry got cut off again, so in case there has been a response to my inquiry please repeat Feb 27 00:41:35 sw33tlull4by: didn't get you question at all. Feb 27 00:42:06 sw33tlull4by: what the hell is Downloads-app? Remember. We are not with you project code and context. Feb 27 00:42:24 it’s the app on Android that shows recent downloads Feb 27 00:42:43 most phones ship with some kind of app like that Feb 27 00:43:02 s73v3r: good know. Feb 27 00:43:08 vyscond, the app that shipps with any android-os, you list the apps and click the symbol for downloads Feb 27 00:43:11 s73v3r: iOS user here :P Feb 27 00:43:32 sw33tlull4by: you're probably missing a intent hook Feb 27 00:44:34 sw33tlull4by: did you tried to save a .json from other sources? like the browser and see if the Download-app show it? Feb 27 00:44:36 I will have to read up on intents, and just outta curiosity, why is not listing the fs-content? that is sort of, sir let's shoot him in the eye through the foot and everyone of them 10fingers Feb 27 00:44:54 sw33tlull4by: maybe it's about the extendions. Feb 27 00:45:08 vyscond, no but I changed the json to jpg to see what happend, and it is not shown either Feb 27 00:45:32 android is so fragmented -.-' Feb 27 00:45:46 sw33tlull4by: well i think he show only files that have being downloaded... no? Feb 27 00:46:03 sw33tlull4by: renaming one that already being downloaded doesnt count? Feb 27 00:46:17 I didn't try that one Feb 27 00:46:41 sw33tlull4by: fragmented? dont think so. it's too flexible on a weird way most of the time. Feb 27 00:46:58 sw33tlull4by: well try to save a .json from the browser. Feb 27 00:47:06 see if it show the .json Feb 27 00:47:30 and check if he shows download from other apps. e.g. facebook? Feb 27 00:47:44 facebook can still save photos from albums? Feb 27 00:48:19 well fragments can be moved around like crazy, so it is flexible yes, but it has absolute disregards for spearations of concerns on a FS level, e.g. why whatever happend to the KISS principle, i just fuck'n hate it and am happy once I get this app done. Feb 27 00:48:29 I don't use facebook Feb 27 00:48:44 for all I care they can shove their social networks into very dark places Feb 27 00:48:56 sw33tlull4by: use some other app that makes download so. Feb 27 00:51:32 what is the googledork for fileextensions again -.- Feb 27 00:52:58 http://www.explorehacking.com/2011/01/google-dorks-using-google-efficiently.html ah great json is not amongst those... well vyscond, can't do, and that is exactly what I am talking about Feb 27 00:54:02 at least hes gone Feb 27 00:54:03 :P Feb 27 01:16:13 how do I repen a project in android studio after an update? Feb 27 01:18:57 repen? Feb 27 01:23:05 [pfnguyen@galactica gms] $ ls */*/*doc* Feb 27 01:23:05 ls: cannot access */*/*doc*: No such file or directory Feb 27 01:23:12 seriously?? they don't ship doc with gms??? Feb 27 01:40:16 anyone here know much about cordova please? I am having an issue with my load screen. http://kopy.io/M4YCa I have delay the splashscreen for 8 mil seconds but when the splashscreen disappear i get this white and black lines and after my app is fully loaded Feb 27 01:42:04 baako this is native app dev, try cordova forums Feb 27 01:43:40 anybody use Timber? Feb 27 01:44:36 I'm logging the lifecycle methods in BaseActivity. It would be nice if the tag was my subclass instead of BaseActivity Feb 27 01:50:31 g00s whats new player Feb 27 01:50:40 hmm, getting gms vision working was pretty easy Feb 27 01:50:50 I just need to figure out how the hell to work with camera Feb 27 01:51:01 my camera preview is all the wrong size and stuff, heh Feb 27 01:51:55 hi guys, do you guys have any suggestions for a clear, thorough beginner's book for android dev? Feb 27 01:52:34 ron_frown hm, my app is crashing inflating a preferences.xml file, but AS shoes no problems, really weird error too. wonder if its supportPreferenceFragment Feb 27 01:52:55 whats the error Feb 27 01:52:57 AS is pretty clueless with shit really ... Feb 27 01:53:30 you got logcat output do you not? Feb 27 01:53:36 so much for all the static typing eh Feb 27 01:53:45 yeah one sec, but its not very interesting Feb 27 01:54:43 "Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String" Feb 27 01:54:56 this is from the inflater though Feb 27 01:55:00 and this is inflating Feb 27 01:55:13 I've seen that where I say where this.doSomething() == something else Feb 27 01:55:21 and dosomething returns null Feb 27 01:55:35 hmm at android.support.v7.preference.ListPreference.onSetInitialValue Feb 27 01:56:07 whats the type Feb 27 01:56:39 has anything to replace androids weird databinding come out? Feb 27 01:57:56 would be nice if the stupid thing told me the preference key causing the problem Feb 27 01:58:45 Hello guys! Have you used the new Toolbar widget? Feb 27 01:59:04 I couldn't figure out yet how to handle the back press Feb 27 01:59:10 would also be nice if ListPreference let us use integer arrays for entryValues, stupid Feb 27 01:59:31 Mattx the new toolbar widget ? not really new ;) Feb 27 01:59:40 new as in API 23 Feb 27 01:59:48 man you should see the random shit I've seen grenade in sharedprefs Feb 27 01:59:58 the point is this, I've a drawer which replaces fragments on the same MainActivity Feb 27 02:00:04 apparently the values USED to be stored interllay behind the scenes in xml Feb 27 02:00:18 and (not saying it was smart in the first place) Feb 27 02:00:21 In some occasions I want to open another activity, with the same toolbar but with a back arrow instead of the hamburger Feb 27 02:00:27 coworker stored encrypted shit in sharedprefs Feb 27 02:00:39 but the animation doesn't like going back in the stack Feb 27 02:00:44 as soon as the encryption produced somethign that wasnt escaped properly in xml Feb 27 02:00:59 grenaded loading all shared prefs Feb 27 02:01:11 I guess I can create a custom animation, I'm just not sure if there's a better way, maybe using the same activity and puting the previous fragment in a stack or something Feb 27 02:01:32 that was a fun one to troubleshoot Feb 27 02:01:34 I'm using the gmail app as a reference, and it looks awesome, but I can't find that behaviour, is it built in? Feb 27 02:04:09 ron_frown so i cleared all my apps data, there is something wonky about the xml file. now my Activity#onCreate has PreferenceManager.setDefaultValues(this, R.xml.preferences, false); Feb 27 02:04:29 and the logs are useless Feb 27 02:07:07 i guess i'll just have to comment out each ListPreference to find out which one is causing the problem Feb 27 02:07:12 pos Feb 27 02:17:29 ron_frown did you see rpi 3 gets BLE and wifi ? Feb 27 02:17:38 spi Feb 27 02:17:41 raspery pi? Feb 27 02:17:46 si Feb 27 02:17:49 no Feb 27 02:17:58 but honesty I never really cared for the lowend hardware Feb 27 02:18:03 most my stuff was android Feb 27 02:18:07 now I just dont gaf Feb 27 02:25:12 pfn scala #14 http://redmonk.com/sogrady/2016/02/19/language-rankings-1-16/ Feb 27 02:25:18 * g00s surprised Feb 27 02:28:54 haha what "Groovy has a backer who's actively gaming the stats for the language, doing things like creating questions using various aliases on Stack Overflow." Feb 27 02:30:18 surprised by what? scala is amazing, and it's taken over big data Feb 27 02:31:37 although it's surprising go and haskell follow it immediately Feb 27 02:33:50 anyone getting issues in Android Studio since last Ubuntu ssl updates? Feb 27 02:34:09 I can't fetch maven libraries from jitpack.io since then Feb 27 02:34:19 Dechcaudron, Likely need to update AS to go with it. You can try to run ldd on the AS binary and see, but that's all I know Feb 27 02:34:40 also try "strace -eopen " Feb 27 02:34:47 g00s, scala is only niche on android Feb 27 02:35:01 and that's because of the fud Feb 27 02:35:18 just few weeks ago saw the most popular languages / tools in big data, scala wasn't even a blip Feb 27 02:35:21 has to be something else Feb 27 02:35:35 people are using Spark ... Feb 27 02:35:46 spark is enormous Feb 27 02:37:11 giving it a try now Feb 27 02:37:14 thank you guys Feb 27 02:37:23 you don't have the same issue? Feb 27 02:38:08 might it be because I am using openjdk? Feb 27 02:39:21 Dechcaudron, possibly Feb 27 02:39:24 howdy Feb 27 02:39:36 can someone help me with an older android problem? Feb 27 02:39:36 Gonna try downloading JDK7 Feb 27 02:39:42 Dechcaudron, did you try updating everything else on your system? Feb 27 02:39:42 shoot the question Feb 27 02:39:50 yeah, everything is upgraded Feb 27 02:40:42 Dechcaudron, when you install jdk, try in your home folder or in /opt, and you have to do update-alternatives Feb 27 02:41:21 cool, gonna try Feb 27 02:41:27 Dechcaudron, http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre Feb 27 02:41:32 g00s - yeah, and java still shows up as being high on those lists Feb 27 02:41:56 I'm curious how MS is going to use xamarin purchase to move their shit forward Feb 27 02:42:48 I like the android debug setting keep device awake Feb 27 02:43:03 just wish it was smart enough to know when usb is connected for power only, dont keep screen on Feb 27 02:46:43 why wont cwm 5.0.2.8 mount my SD card? Feb 27 02:46:44 cryptonix2 jdk7 works Feb 27 02:47:02 I just formatted it in clusters of 512bytes fat32 fs Feb 27 02:47:05 I lost 2 freaking days trying to figure out where the damn problem was Feb 27 02:47:13 and it was in openJDK Feb 27 02:47:19 I'd better let them know Feb 27 02:47:44 Shawn|Core2Quad wrong channel, see topic Feb 27 02:48:16 thanks a lot man, you just saved me a whole week Feb 27 02:48:34 well, theres no clockworkmod channel Feb 27 02:49:01 Shawn|Core2Quad sorry :) Feb 27 02:50:48 surprised there is nothing like String.EMPTY or something Feb 27 02:50:58 putting "" in code looks like crap Feb 27 02:52:26 Dechcaudron, np good luck on your endeavours Feb 27 02:57:52 500px just open sourced this, looks nice https://github.com/500px/greedo-layout-for-android Feb 27 02:58:04 its offical, im old Feb 27 02:58:14 i cant make stay up 24hrs anymore Feb 27 02:58:39 :'( Feb 27 02:58:55 Napalm time to get walker with tennis balls Feb 27 02:59:02 lol Feb 27 02:59:45 write app so when you fall and get up calls ambulance Feb 27 02:59:52 *can't get up **** ENDING LOGGING AT Sat Feb 27 02:59:58 2016