**** BEGIN LOGGING AT Tue Sep 20 02:59:58 2016 Sep 20 03:03:09 TacticalJoke: when you wrote "four-parameter" I read "four-coordinate" (as opposed to a single RectF object). I was looking to the wrong overload Sep 20 03:03:54 Maybe, in time, I will find a way to forgive. Sep 20 03:04:49 I kid. But, on a serious note, you can sometimes reuse Rects for performance. Sep 20 03:06:21 The garbage collector doesn't like too much allocatin'. Sep 20 03:16:01 gordon_ lol, its not 600mb, and its really a lightweight IDE with intellisense, debugging, refactoring, git support ... Sep 20 03:16:46 Afzal oh no Sep 20 03:17:25 I read that ConstraintLayout is intended to be *the* ViewGroup we all for everything. Sep 20 03:17:31 s/all/use/ Sep 20 03:18:04 I'll hold onto my hand-crafted-for-performance ViewGroups for the time being. :D Sep 20 03:18:11 600 mb is tiny. It's less than one-tenth of a byte. Sep 20 03:18:15 600 millibit. Sep 20 03:18:22 g00s: you're right Sep 20 03:18:25 it's 170 mb ;) Sep 20 03:18:30 600 MB on the other hand, is something completely different. Sep 20 03:19:17 loke: we're not talking about bits here.. Sep 20 03:19:38 TacticalJoke i thought it was a replacement for RelativeLayout ... Sep 20 03:19:41 I like loke's pedantry. Sep 20 03:19:43 gordon_: Why did you type "b" then? (meaning bit). Byte are abbreviated "B"./ Sep 20 03:19:55 Same with m = meaning milli. Mega is "M". Sep 20 03:20:01 because i write everything with small letters ;) Sep 20 03:20:21 save the shift Sep 20 03:20:43 how can you write code using only small letters? Sep 20 03:21:08 gordon_: Then you have to type it out in full. Of course, very few people use a term like "millibit" since it's ridiculous, but imagine someone saying that the speed is 150 b/s Sep 20 03:21:11 i am mean to my collegues Sep 20 03:21:24 Terminology is important. Sep 20 03:21:49 gordon_ is literally e. e. cummings. Sep 20 03:22:55 g00s: Never mind; I read that quote in some random Medium article: https://medium.com/google-developer-experts/first-impressions-of-androids-new-constraintlayout-c6d081b2bc2a#.w4d5uxrz2 Sep 20 03:22:59 But we aren't your colleagues Sep 20 03:23:08 Arancio: I write normal codes ;) Sep 20 03:23:12 TacticalJoke: yeah ;) Sep 20 03:23:38 Another alternative is to use COBOL, which is case-insignificant. Sep 20 03:23:49 case-insensitive? Sep 20 03:23:57 loke: I know it is but in this discussion it doesnt matter Sep 20 03:24:13 Arancio: learn cobol Sep 20 03:24:18 earn a lot of money Sep 20 03:24:25 gordon_: It's always fun to bring up Cobol. Sep 20 03:24:31 SQL is case-insensitive too Sep 20 03:24:37 and you earn more money Sep 20 03:24:45 Arancio: True, but is it turing-complete? Sep 20 03:24:45 my friend was writing cobol at work Sep 20 03:25:08 Arancio: I dont think there's only SQL job Sep 20 03:25:12 I doubt it Sep 20 03:25:13 loke: extensions of SQL used today are Sep 20 03:25:27 * loke installed a Cobol compiler and played around with it. The only interesting thing was the screen definition stuff. The rest was kind of horrific. :-) Sep 20 03:25:45 Arancio: Fair enough, but standard SQL isn't, as far as I know. Sep 20 03:26:02 loke: when my friend changed something, there were like 7 other people doing code review of it Sep 20 03:26:14 If aliens studied the programming languages humans have created, they'd consider nuking us from orbit. Sep 20 03:26:43 I don't understand why people think that aliens are better than us Sep 20 03:27:08 they probably invented similar programming languages and some are even worse Sep 20 03:27:14 gordon_: That would be horrible regardless of language used. Also, they probably did that because of the environment on which the applications ran. Mainframe systems are funny like that. Sep 20 03:27:45 that's where the code was used Sep 20 03:27:52 old pieace of mud Sep 20 03:29:37 Arancio: True. I think we can expect aliens to be like earthlings, in light of convergent evolution. Sep 20 03:30:02 gordon_: Yeah. Mainframe environments are usually a huge hairball of thousands of small applications, each working together with dependencies across every single component. Global variables everywhere and each module dependent on the exact output format of the others. I would not want to work with such systems. It does, however, ensure that migrating away from them is ridiculously hard since you can never migrate just a single component at a time. Sep 20 03:30:04 It's fun to imagine aliens destroying humanity, though. Sep 20 03:31:08 And that's what keeps IBM's mainframe division i business. Sep 20 03:31:18 We think of them as saviors coming to remove the evil from humanity Sep 20 03:31:29 just because they have FTL drive Sep 20 03:31:46 Arancio: And Star Trek. Sep 20 03:32:03 "The Day the Earth Stood Still" Sep 20 03:32:22 Arancio: Well yes, and War of the Worlds. Sep 20 03:33:16 In "War of the Worlds" aliens came just to conquer the planet. "The Day the Earth Stood Still" is another story Sep 20 03:33:37 Arancio: Yes. Sorry. Sep 20 03:34:00 I misremembered. I saw TDTESS when I was a kid, decades ago. Sep 20 03:34:19 I thought you were brining up a counterpoint. Sep 20 03:34:42 I do recall it being a good movie though. Now I have to watch it again. Was the remake any good? Sep 20 03:34:55 I didn't watch the remake Sep 20 03:35:03 g00s: going back to topic.. did you tried that for android dev ? Sep 20 03:35:42 gordon_ no .. it would be interesting if google made a android plugin for it tho ... it would be an alternative to heavyweight ide Sep 20 03:35:53 Someone put the whole remake on Youtube. 2 years ago and it's still not been taken down. Sep 20 03:35:53 doubt they will do it Sep 20 03:35:58 me too Sep 20 03:36:09 loke: then it probably sucks really bad Sep 20 03:36:11 well, if you have java, you just need xml plugin Sep 20 03:36:15 Arancio: Exactly. :-) Sep 20 03:36:26 gordon_ yeah and some tie-in to gradle maybe Sep 20 03:36:58 Arancio: Funny enough I can't find the original on Youtube. That settles it. I'm rewatching the original. Sep 20 03:39:27 g00s: that plugin is... not impressive ;P Sep 20 03:39:45 first release heh Sep 20 03:40:29 also, i didnt notice that I was writing scala instead of java in file ;) Sep 20 04:00:32 anyone have that link to firebase crash reporter bug .. status Sep 20 04:00:42 the bug that crashes your app :P Sep 20 04:04:44 ah https://status.firebase.google.com/incident/Crash%20Reporting%20%28Beta%29/16003 Sep 20 04:04:53 so i guess its fixed Sep 20 04:19:27 g00s: you can't blame google for your own bugs anymore Sep 20 04:27:19 am getting this "java.io.IOException: Content-Length and stream length disagree Sep 20 04:27:20 " with retrofit what does this mean Sep 20 04:38:53 it means exactly what it says Sep 20 04:58:11 huh, why is my InboxStyle notification limiting itself to 2 items Sep 20 05:04:45 09-20 07:59:50.387 8276 8337 E HTTPMetricsTransport: amazon.communication.MissingCredentialsException: Static Credential is unavailable. Sep 20 05:04:46 09-20 07:59:50.387 8276 8337 E HTTPMetricsTransport: at com.amazon.client.metrics.transport.StaticCredentialRequestSigner.signRequest(StaticCredentialRequestSigner.java:44) Sep 20 05:04:48 what's that Sep 20 05:11:52 so weird... InboxStyle isn't honoring my addLine above 2 items... Sep 20 05:12:40 well, it does, it shows +n more, but it doesn't show the line items (normally up to 5, at least) Sep 20 05:24:21 what InboxStyle? Sep 20 05:25:50 hidey ho folks Sep 20 05:33:56 ah, have to set priority high and category message Sep 20 05:35:42 obvious Sep 20 05:47:15 grekkos: was that a greeting? Sep 20 05:47:22 ugh, Resources.getString(fmt, args) doesn't have a CharSequence equivalent.... Sep 20 05:51:21 loke: yeah, it suck Sep 20 05:51:24 s Sep 20 05:52:03 Arancio: Last conversation was over an hour ago. Have you watched the movie now? :-) Sep 20 05:52:04 loke: I "watched" it in past but I skipped so many parts that I didn't even remember I "watched" it Sep 20 05:52:14 loke: yes Sep 20 05:52:18 I see :-) Sep 20 05:52:48 Arancio: I don't remember much from the original. I assuming it's better. Yes? Sep 20 05:53:17 I had to analyze somethin on paper so I played it while I was scribbling Sep 20 05:53:46 Arancio: do you always question my presence ? Sep 20 05:54:53 grekkos: Do I? I don't even remember I ever talked to you. You are welcome anyway, for what my opinion is worth. I just didn't understand "hidey ho". Sorry Sep 20 06:01:37 its a southpark kinda thing Sep 20 06:02:12 loke: the first one had the nuclear weapons / cold war theme. At that time the problem was felt much more than a generic threat of human race destroying the planet. In the original version the alien came to save humans from themselves. In this version the alien came to save the planet from human that are destroying it because earth it previous being one of the few planet capable of supporting life. The problem is that if few explode every nuclear Sep 20 06:02:12 weapon we have, we may destroy the human race but the planet will keep "living" and will forget the "human accident" in few centuries or thousands of years at worse. So earth needs not to be saved. Second, why should a "pacific" alien race care about earth? Are they going to invade it? No, because they are pacific. So inhabited by humans or nuclear wasteland earth is of no uses for a pacific alien race. Sep 20 06:02:49 think its the greeting given by Mr. Hankey the christmas poo Sep 20 06:03:45 wyrdtrtle: thanks. Never watched "South Park" Sep 20 06:05:23 llol probably for the best, is a very strange cartoon show about a seriously screwed up town in Colorado Sep 20 06:06:23 loke: the style of the movie is the usual Hollywood sci-fi attempt to make a blockbuster. Military as usual, troubled family as usual, good old scientists as usual, "Well-tempered clavier" by Bach as example of something good made by humans, etc. Sep 20 06:07:45 loke: I don't think the original was a masterpiece but I expect more from a more recent movie not less Sep 20 06:41:14 woo 2.2 Sep 20 06:42:38 pixel Sep 20 06:46:27 neat https://i.redd.it/i8lm1jjwvbmx.png Sep 20 06:48:54 and i thought my 3-4 mins is bad Sep 20 06:50:00 nice pc Sep 20 06:50:07 stop building on a 386 Sep 20 06:54:33 hello simple question Sep 20 06:54:48 I have a web page with a href=tel: Sep 20 06:55:13 where and how do I add a white list for it in the ehader? Sep 20 06:55:17 header Sep 20 07:06:59 Ashiren: haha Sep 20 07:07:22 Ashiren: my android studio is also slow Sep 20 07:07:33 autocompletion takes minutes Sep 20 07:07:47 Hi, I just reinstalled ubuntu on my laptop and started gradle build, but it doesn't seem like it's going to complete anytime soon. I googled regarding this problem and installed some things like libs like lib32z1 and many more but its doesn't look like its working Sep 20 07:07:47 typing with lags Sep 20 07:07:54 Anyone has any idea about this? Sep 20 07:08:18 linux is linux what do you expect Sep 20 07:10:10 Why is this so broken :( Sep 20 07:11:53 I remember last time lib32z1 solved this. But it looks like Linux has new plans for me this time Sep 20 07:14:40 astroduck: why don't you install windows 10 and retry? Sep 20 07:17:18 squ: its not mine :v Sep 20 07:19:07 I currently have a preferenceactivity set up traditionally / old school Sep 20 07:19:13 using a preferences.xml file Sep 20 07:19:32 I want to separate the preference categories into tabs to allow for horizontal swiping Sep 20 07:19:45 any way or do I need to do some rewriting? :p Sep 20 07:20:12 nice, new MITx java course on edx Sep 20 07:21:44 Arancio: I have other stuff to do as well, and I need linux for it Sep 20 07:22:03 And windows is ... well ... irritating, at least for me Sep 20 07:22:24 astroduck: just run linux inside a virtual machine when you need linux Sep 20 07:23:34 astroduck: it's just matter of habits. If you are accustomed to use Linux, Windows is irritating. If you are accustomed to use Windows, Linux is irritating. Sep 20 07:28:45 Arancio: Na, I used linux for a few months, while using windows, and i love linux Sep 20 07:28:55 Well different people, different preferences Sep 20 07:29:06 But I'll make this stupid thing work somehow!!!! Sep 20 07:44:59 I can restart android phone with my application Sep 20 07:45:22 squ: no Sep 20 07:45:54 yes Sep 20 07:50:25 if you can, that's a serious security flaw Sep 20 07:50:47 squ: prove it Sep 20 07:51:37 I'm using camera2 api and somehow it bugs to freeze the phone Sep 20 07:52:02 which raises the ok/wait dialog and then restarts Sep 20 07:53:00 it's not the same Sep 20 07:54:02 I can write an app which tells the user "Please would you restart the phone, pretty please?" Sep 20 07:54:51 on what phone and what OS version? Sep 20 07:54:58 Utal: hi. Would you restart your phone, please? Sep 20 07:55:55 android 6.0.1 sony xperia Sep 20 07:56:24 it didn't work Sep 20 08:03:57 squ: can I ask you what kind Android project are you working on currently? Sep 20 08:05:10 Leeds: what about you? May I ask what kind Android project are you working on? Sep 20 08:06:55 you may ask, but I couldn't possibly comment Sep 20 08:08:34 NSA spy nanobots integrated into your main board Sep 20 08:09:00 ok. I was just curious about the kind of project in general. If you can't comment it's ok. Thanks anyway Sep 20 08:09:37 I have no main board Sep 20 08:09:52 But my computer has one Sep 20 08:10:51 i cant elaborate further, or leeds will have me snowdend Sep 20 08:11:17 I have contacts in the police in Israel Sep 20 08:12:23 raoul11: see, Leeds is more imaginative than you Sep 20 08:12:54 Leeds http://i.imgur.com/ha9bqsr.png Sep 20 08:12:59 (I'm facebook friends with a guy who seems to spend his weekends catching drunk drivers - no idea what his actual status is) Sep 20 08:13:23 mitnadev Sep 20 08:15:41 yeah, but when I was a mitnadev, I was teaching kids English in a moshav school :) Sep 20 08:15:51 isn't that nice when activity ignores finish() Sep 20 08:16:15 which moshav Leeds Sep 20 08:17:36 I lived on Netuah, the school was at Meona Sep 20 08:18:40 'ם' Sep 20 08:18:44 wow, what a shithole Sep 20 08:19:08 nice :) Sep 20 08:19:19 well, not a shithole shithole, just so far Sep 20 08:19:57 long way north, yeah Sep 20 08:20:27 from maalot to singa Sep 20 08:20:31 thats quite a move Sep 20 08:20:34 of look Sep 20 08:20:40 thepoosh finally out of the mamad Sep 20 08:20:54 never went in Sep 20 08:20:57 was a load of BS Sep 20 08:21:03 anyone can tell me why is finish() ignored Sep 20 08:21:05 lol Sep 20 08:21:18 raoul11: aint nobody got time for dat Sep 20 08:21:37 squ, it shouldnt. mayb you have an ongoing seperate thread running Sep 20 08:21:42 tru thepoosh Sep 20 08:21:52 no, except the camera2 thing Sep 20 08:21:55 i went out to get burekas and popsicles Sep 20 08:22:00 which raises ok/wait Sep 20 08:22:25 no threads Sep 20 08:22:25 Hong Kong, not Singapore :) Sep 20 08:22:44 oh Sep 20 08:22:51 oh, now I haven't had a decent bureka for a long long time... Sep 20 08:23:08 doubt you can find proper burekas in HK Sep 20 08:23:27 mayb i should open up a place for israeli food in HK Sep 20 08:23:54 burekas are Turk food Sep 20 08:24:09 all our food is borrowed* Sep 20 08:24:09 They sell them 100m from my house too Sep 20 08:24:21 and we call it israeli Sep 20 08:24:24 ah ok Sep 20 08:24:33 btw, say burekas is turkish in bulgary, and expect to get stabbed Sep 20 08:24:43 why? Sep 20 08:24:48 pride Sep 20 08:24:55 over yummy food Sep 20 08:25:03 Never ate it Sep 20 08:25:18 never had burekas? Sep 20 08:25:20 do it son. Sep 20 08:26:51 there's an Arab/Lebanese place directly across from my office - and a Lebanese kebab place just up the road as well Sep 20 08:26:56 I used to eat Kebab but now I don't. I try to eat less meat Sep 20 08:27:21 and more vegetables Sep 20 08:27:35 why not both /: Sep 20 08:27:42 and don't try to prepare my meal myself Sep 20 08:28:00 "and try to" Sep 20 08:28:29 gotta rewrite this shitty screen again Sep 20 08:28:30 fml. Sep 20 08:31:48 I'm trying to write a text editor that allows me to enter symbolic items beside text Sep 20 08:32:35 Is there any available component that already does that? Sep 20 08:44:41 Hi, I am making a network request to login to a backend server. I use loopj for that and in case of a failure there is the onFailure message which is triggered. So far so good. But, how do I propagate the error from the onFailure method to my activity? the onFailure method just returns void and the calling method from the intent does not get any feedback about what happened. What is the idiomatic approach within android to do netw Sep 20 08:45:21 sveri: "to do net"? Sep 20 08:45:42 Arancio: ? Sep 20 08:46:01 sveri: your message appears to be truncated Sep 20 08:46:10 ah ok, I just repost it Sep 20 08:46:16 Hi, I am making a network request to login to a backend server. I use loopj for that and in case of a failure there is the onFailure message which is triggered. So far so good. But, how do I propagate the error from the onFailure method to my activity? the onFailure method just returns void and the calling method from the intent does not get any feedback about what happened. What is the idiomatic approach within android to do netw Sep 20 08:46:35 please stop pasting it, type the last sentence again Sep 20 08:46:37 one approach is to use notification mechanism Sep 20 08:46:51 another is to use observer/emitter from rx Sep 20 08:47:29 third option is to pass context along Sep 20 08:47:59 (context, activity instance) Sep 20 08:49:01 squ: What do you mean by notification mechanism? You mean these ones? https://developer.android.com/guide/topics/ui/notifiers/notifications.html Sep 20 08:50:20 I am using rx, don't know about notifications Sep 20 08:50:34 Ok, I got that, thank you very much Sep 20 09:09:38 java.lang.VerifyError Sep 20 09:09:42 what's that Sep 20 09:15:36 can be the result when you have compiled against a different library than you are using at runtime --> by SO Sep 20 09:16:24 hi Sep 20 09:16:32 i have a generic chinese branded android phone Sep 20 09:16:45 what do i need to install in order to be able to debug apps on it from android studio? Sep 20 09:17:03 nothing, you just need to enable debugging Sep 20 09:17:11 enable Developer Options Sep 20 09:17:19 oh, you might need to install stuff on your PC if you're silly enough to use Windows Sep 20 09:17:26 by going to about and clicking on buttons :p Sep 20 09:17:29 yep i'm on windows Sep 20 09:17:56 that's silly :P Sep 20 09:18:41 try this http://adbdriver.com/ Sep 20 09:18:44 you probably need drivers or something Sep 20 09:19:24 thanks - just the ADB Driver Installer (Universal) one? Sep 20 09:19:55 hsousa: how is that possible? Sep 20 09:21:29 ir7466: yep, that should be enough Sep 20 09:23:12 since its windows, it will probably need restarts ~ Sep 20 09:24:15 ok i'll give it a go, thank you Sep 20 09:26:50 how to fix java.lang.VerifyError Sep 20 09:28:02 pastebin the whole error.. Sep 20 09:28:45 that is all Sep 20 09:28:59 context? Sep 20 09:29:06 class name follows and that is all Sep 20 09:29:14 context? Sep 20 09:29:21 clicking a button Sep 20 09:30:15 code: ‘MyClass.publicStaticBoolean = true;’ Sep 20 09:30:29 AndroidRuntime Caused by: java.lang.VerifyError: MyClass Sep 20 09:33:06 http://stackoverflow.com/questions/668788/android-java-lang-verifyerror lot of different options here Sep 20 09:34:36 yep, for an error saying nothing Sep 20 09:37:13 ir7466: using Windows is not silly Sep 20 09:37:43 it's okay, i know it's just people stating their preferences Sep 20 09:38:11 i use a mac at home, but i'm using windows for this. i see both sides of the coin Sep 20 09:39:27 people using a mac should be forced to develop iOS applications only Sep 20 09:47:37 fixed ‘fix java.lang.VerifyError’ by moving ‘public static boolean’ to other class Sep 20 09:47:58 :) Sep 20 09:48:34 I hate java Sep 20 09:50:08 I hate hava too! Sep 20 09:53:23 i jate hava Sep 20 09:54:20 Java! I hate Java! Sep 20 09:58:08 kree java! Sep 20 10:11:03 Any way to haven multiple instances of SharedPreferences? One for each user Sep 20 10:11:19 And changed this based on what person that is logged in Sep 20 10:11:36 Im using PreferenceFragmentCompat for handling settings Sep 20 10:12:48 nilsi: you can show name for preferences Sep 20 10:13:07 Arancio: what do you like then Sep 20 10:14:12 gordon_ So I put a name for each users preferences you mean? Sep 20 10:14:28 i guess Sep 20 10:14:33 oh okey Sep 20 10:14:53 dont know much about multi user support of android Sep 20 10:16:59 Okey thanks anyway I will figure it out Sep 20 10:17:22 gordon_: among enterprise programming languages I think C# is way ahead of Java. I think it's unfortunate because it's all about how it has been developed. Java is not inherently worse than C#. C# and the .NET platform in general have been just pushed more ahead. That's all. And it infuriates me even more. Sep 20 10:18:04 funny how I dropped c# ;) Sep 20 10:18:15 gordon_: what do you mean? Sep 20 10:18:23 I used to write c# Sep 20 10:18:28 long time ago Sep 20 10:18:44 my first job was c# / .net work Sep 20 10:19:53 no, I meant what's funny in how you dropped it? Sep 20 10:20:09 You mean that you didn't care switching? Sep 20 10:20:42 what's a good channel for unit testing questions? particularly around C++ and/or google test framework Sep 20 10:21:01 it's funny how someone thinks it's better and I think it's not because of closed source Sep 20 10:21:07 but that was long time ago ;) Sep 20 10:21:28 lately I needed to give a try and wanted to batch process word files Sep 20 10:21:38 VS installation took 1 hour Sep 20 10:21:44 nothing has changed :D Sep 20 10:22:01 I should say that I didn't use the first versions of C#. I guess it started as a clone of Java before it took off. So I experienced the better part of it. Sep 20 10:22:06 And F# Sep 20 10:22:11 i started with 2.0 Sep 20 10:22:16 and used 4.0 Sep 20 10:22:33 heard good things about f# Sep 20 10:22:48 good thing scala is around ;) Sep 20 10:23:11 yeah. When I'll be more accustomed to the Android platform I'll try scala Sep 20 10:23:17 not the moment now Sep 20 10:26:38 I wish I had a chance to get a PhD in CS and work on programming languages Sep 20 10:27:52 you always can ;) Sep 20 10:48:20 <_genuser_> Arancio: morning Sep 20 10:49:19 _genuser_: have a good one Sep 20 10:49:32 <_genuser_> :) Sep 20 10:49:38 <_genuser_> night time where you are at? Sep 20 10:52:32 Having a Recyclerview that shows objects of type Node... I want to show some "loading bubbles" in between them... any idea on how to do this? By loading bubbles I mean, some progress indicator that's temporally showing the expectation of another Node object yet to come Sep 20 11:01:56 I can stably freeze the phone Sep 20 11:02:26 it doesn't update statusbar with clock or anything Sep 20 11:02:46 may restart, or may stay in frozen state Sep 20 11:12:33 Hi everybody Sep 20 11:13:34 Is there someone who have try to pass the android certification from Google ? Sep 20 11:14:01 naruara: hello! Sep 20 11:14:25 Hello Arancio Sep 20 11:14:48 Never heard anybody talking about android certification Sep 20 11:15:06 It's this Sep 20 11:15:07 https://www.udacity.com/google-certifications Sep 20 11:15:34 This is the direct link, but if i remember you can find it, directly in developer android Sep 20 11:16:08 Yeah, there is a whole training area Sep 20 11:16:11 Thanks Sep 20 11:16:32 https://developers.google.com/training/ Sep 20 11:17:41 The things is that, the test is : You have 48 hours for debug and add new features to an android project Sep 20 11:17:54 But i don't know, if it's possible to find some training project like this Sep 20 11:18:15 why did you applied for that test Sep 20 11:18:58 I didn't applied for now Sep 20 11:19:32 ? Sep 20 11:19:53 I'm asking just for resource Sep 20 11:20:01 Just for get ready for this test Sep 20 11:22:37 naruara: doesn't the course include lessons? Sep 20 11:23:05 that should be the training projects Sep 20 11:24:33 Android Studio updates! Who-ooh! Sep 20 11:25:13 squ: did you get that certification? Sep 20 11:25:22 what Sep 20 11:25:36 the certification naruara is talking about Sep 20 11:25:43 I have no idea Sep 20 11:25:54 I guess then it's "no" Sep 20 11:33:14 Do most people have that certification? Sep 20 11:33:30 No idea Sep 20 11:34:17 I hear most people panicking "Oh my god I have no certification!!!" Sep 20 11:34:39 "Everybody has a certification but ME!" Sep 20 11:36:18 I don't know, i think it's a new certification Sep 20 11:36:23 that's because Java Micro Edition does not pass cts tests Sep 20 11:36:53 does anyone have exposure on BLE, I am able to scan devices using android and Ios but for no solution so far using JAVA Sep 20 11:37:09 BLE? Sep 20 11:37:57 using java? Sep 20 11:38:00 Bluetooth Low Energy Sep 20 11:38:04 thats what you use in android Sep 20 11:38:05 ! Sep 20 11:38:07 ^ Sep 20 11:39:39 actually I am trying to scan bluetooth enabled devices..using java program but so far no sufficient library for it.. In android we have good library for it altbeacon Sep 20 11:40:17 min2: you are confusing. "Using java program" on what platform? Sep 20 11:40:26 windows.. Sep 20 11:40:50 Ok, so you have a windows library but not an android library for that Sep 20 11:40:52 just a simple java program.. Sep 20 11:41:33 min2: I assume you read https://developer.android.com/guide/topics/connectivity/bluetooth-le.html Sep 20 11:41:36 ? Sep 20 11:41:44 my pc is bluetooth enabled.. I tried using BlueCove aJava library for Bluetooth,but it seems that it does not support Bluetooth Low Enegry 4.0. Sep 20 11:41:53 so thats more of java generic/windows problem, not android per se Sep 20 11:42:45 min2: there is a sample project and video with a Chinese guy. What more do you need? Sep 20 11:43:06 can you share.. Sep 20 11:43:25 i searched alot.. but didnt get any solution.. for this.. Sep 20 11:43:58 Oh sorry. I got it the other way around. You need a library to do that on Windows? Sep 20 11:44:05 Well, that's the wrong channel then Sep 20 11:44:15 Why did you ask here? Sep 20 11:45:15 actually its quite realted to java .. so thaught here in this channel huyz must be writtern big libraries for the same.. Sep 20 11:45:58 like Bluecove http://bluecove.org/ Sep 20 11:46:03 this is not a Java channel Sep 20 11:46:34 there is a #java channel Sep 20 11:47:03 and there are Microsoft development forums and StackOverflow questions about that subject Sep 20 11:47:04 too ruthless Sep 20 11:47:18 thanks for sharing.. sorry guyz.. Sep 20 11:47:43 np Sep 20 11:47:53 <_genuser_> hey guys, finally got the package pushed to jcenter@! Sep 20 11:48:01 <_genuser_> it's now avaialble and working. Sep 20 11:48:08 <_genuser_> now to add actual code to the package, lol. Sep 20 11:48:09 yay! what package is that? Sep 20 11:48:14 Bummer Sep 20 11:48:20 -.- Sep 20 11:48:31 <_genuser_> Arancio: my profile image cropper. it works. I just want to clean it up. Sep 20 11:48:36 <_genuser_> https://github.com/maxpower-ndrd/profileimagecropper Sep 20 11:48:46 Oh, I remember it Sep 20 11:48:59 So it took 3 days to write it Sep 20 11:49:18 and another 2 days to publish it as a package on jcenter Sep 20 11:49:27 <_genuser_> 2-3 days to write it. another 3 days I suppose to get it to publish on jcenter. Sep 20 11:49:52 I better find a way to use it in my application so that you can amortize all this time you invested Sep 20 11:50:12 <_genuser_> if I had to do it again, it will probably take half a day to write. but learning new stuff, trying out new things that takes time. Sep 20 11:50:23 it's always like that Sep 20 11:50:34 <_genuser_> Arancio: yep, so it's at 0.0.2 and as you know 0 versin are always experimental. Sep 20 11:50:48 ok, I'll way till 1.0.0 Sep 20 11:50:54 <_genuser_> I think with community help, I might clean it up more in the sense that I don't leave in stray images. Sep 20 11:51:18 <_genuser_> Arancio: the widget is pretty much fully functional. the sample project comes loaded with a model images... do'nt know how users feel about that. Sep 20 11:51:44 <_genuser_> I'm in the process of adding an activity that does all that and just returns the filename of the cropped file to you. So you can just launch it wiht an intent and be done. Sep 20 11:52:22 That's the way to do it Sep 20 11:52:27 <_genuser_> I think the time wasted was not so much wasted as a distraction from my real project. But I learned a great deal. Sep 20 11:52:48 I don't think you wasted time at all Sep 20 11:53:12 <_genuser_> maybe I can switch from .NET to android. just go in with I have one app published, one package on jcenter, so I'm determined. gimme a job!! Sep 20 11:54:48 <_genuser_> it's embarrassing put code out, you konw know people will be like, omg you didn't use pattern xyz or you name the vars like that. Sep 20 11:55:00 <_genuser_> but, I figure this is a cool package to share. Sep 20 11:55:14 most people won't ever read your code Sep 20 11:55:20 as long as your library works Sep 20 11:55:34 <_genuser_> the condescending ones who make a fuss are the ones who go and read the code, lol. Sep 20 11:55:47 <_genuser_> yeah, as long as it worked. Sep 20 11:55:53 if I compile a library from a repository I expect it to just work Sep 20 11:56:05 I don't want to read the code Sep 20 11:56:10 <_genuser_> I'm using picasso for rendering so hopefully all the out of memory issues will handled. Sep 20 11:56:43 <_genuser_> this project is helping me get more muscle memory. "git" instead of "hg" Sep 20 11:56:50 <_genuser_> I just naturally go hg status! Sep 20 11:57:01 <_genuser_> and then ... git status. lol Sep 20 11:57:22 <_genuser_> oh let's not forget, android studio deleted one of my activties as part of "refactoring" Sep 20 12:02:48 Java generics suck Sep 20 12:08:01 Do you have try to use the swipe to delete with recyclerview(ItemTouchHelper.SimpleCallback) ? Sep 20 12:09:08 The only problem that i have with this is after the delete, my item(cardview), is deleted but the draw form(rectangle) is still present Sep 20 12:09:12 E OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything... Sep 20 12:09:15 hehe Sep 20 12:09:20 :) Sep 20 12:12:20 squ: you are almost as funny as me Sep 20 12:13:06 1586 1586 E JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 2900) Sep 20 12:14:08 I found cause of device restart Sep 20 12:14:27 it looks like infinity loop, I guess Sep 20 12:17:44 interesting: ImageButton size is bigger than ImageView size on the same drawable Sep 20 12:17:58 http://i.imgur.com/6QAjASq.png Sep 20 12:18:02 Leeds: Sep 20 12:18:04 Arancio: Sep 20 12:19:04 I am still learning Android dev terminology. I'm trying to figure out everything I need to read up on to wire up my class that extends AlertDialog so that it only shows an "ok" button after the caller has finished doing some work? Sep 20 12:19:29 I think I need a 'callback' Sep 20 12:19:40 azv4: Are you still trying? Sep 20 12:19:48 Arancio, still trying? Sep 20 12:19:56 not sure I understand the question, can you be more specific? Sep 20 12:20:11 azv4: you asked "I'm trying to figure out.... ?" Sep 20 12:20:20 What is your question exactly? Sep 20 12:20:36 azv4: Am asking if you are trying, because I can't tell. Sep 20 12:21:02 Are you a troll? Sep 20 12:21:10 azv4: you formed your question improperly. It starts like a statement and end like a question. I'm not a troll Sep 20 12:21:16 squ: I'm so ignorant that I can't understand the significance of that screenshot Sep 20 12:21:55 Arancio, were you able to use the context of what I wrote to understand my intention? Sep 20 12:22:05 Honestly, no Sep 20 12:22:11 Arancio: camera api is caught in a dead lock or infinity loop, I guess Sep 20 12:22:20 so change the ? to a . Sep 20 12:22:23 did that help? Sep 20 12:22:45 Ok. then we are waiting for your question Sep 20 12:23:36 Callbacks in Android are usually set with a setXXXListener method Sep 20 12:23:38 Arancio, can you help me assemble a list of everything I need to read up on to wire up my class that extends AlertDialog so that it only shows an "ok" button after the caller has finished doing some work? Sep 20 12:24:13 "caller" as in caller code? Sep 20 12:24:55 You are showing a dialog but the "ok" button must be enabled only when an asynchronous task completed? Sep 20 12:25:20 Did I understand you correctly? Sep 20 12:25:27 Yes you did Sep 20 12:25:40 I think it's a bad UI design Sep 20 12:25:48 its what I have to work with at the moment Sep 20 12:26:02 If there is a "cancel" button too you should show a progress dialog with a cancel button Sep 20 12:26:14 and the close that and show the rest of the dialog after completion Sep 20 12:26:20 I already have the ProgressDialog showing the OK button and it is functioning properly, but the user can press it before the async task is complete Sep 20 12:26:50 There should not be an "ok" button at all Sep 20 12:26:53 I dont want to give the user the option to 'cancel', which the 'ok' button currently allows them Sep 20 12:26:54 Why do you want a OK button ? If you don't want that the user can exit this task ? Sep 20 12:27:18 azv4: you have you UI all messed up, in my opinion Sep 20 12:27:25 this is the situation, the user is too stupid to click outside the alert to make it disappear, so the user has requested an 'ok' button Sep 20 12:27:49 Just use this, setCancelable(false); Sep 20 12:27:51 with your dialog Sep 20 12:29:55 naruara, I already have .setCancelable(false); Sep 20 12:30:28 if I put it after the setButton() will it change the functionality of the Button? Sep 20 12:30:35 * azv4 is trying it out Sep 20 12:32:54 okay then, the things that you can do is to set a boolean taskComplete to true, when the task is done, and you check with this to enable your button or not Sep 20 12:32:54 dialog.getButton(android.support.v7.app.AlertDialog.BUTTON_POSITIVE).setEnabled(false); Sep 20 12:35:55 naruara, will the taskComplete flag need to be part of the calling code to the AlertDialog? Sep 20 12:36:07 or will it be at the end of the method that is being called? Sep 20 12:43:50 Arancio: https://code.google.com/p/android/issues/detail?id=211555 Sep 20 12:44:03 you did not believed about reboot Sep 20 12:44:12 proof for you Sep 20 12:44:23 infinity loop or deadlock on main thread Sep 20 12:46:08 Ok, you won, this time. Sep 20 12:46:40 why would I lie to you Sep 20 12:47:26 possibility to restart android device from your application is big flaw Sep 20 12:47:43 but I'm not surprised, this is android Sep 20 12:48:49 I remember times when you could restart or blue screen windows for visiting a website Sep 20 12:50:11 that times everyone called windows a must die software. Why android does not have same bad reputation? Sep 20 12:50:37 I mean why it is not widespreed that android is really shit software Sep 20 12:53:42 squ, I never thought you were lying. I just asked more information in a manner that resembled a joke. Sep 20 12:54:21 Every time I say that Android sucks Leeds says "You won't make friends here talking like that" Sep 20 13:01:21 you should listen to Leeds Arancio, he's old and wise. Sep 20 13:02:17 raoul11: then why when squ says Android suck nobody tell him the same? Sep 20 13:02:46 Android does suck Sep 20 13:02:55 everything sucks Sep 20 13:03:59 So why squ can say it but I can't? This is discrimination Sep 20 13:04:39 you can say whatever you want son Sep 20 13:05:06 yeah, right Sep 20 13:05:16 But I won't make friends Sep 20 13:05:36 I want to say the unspeakable truth and make friends too Sep 20 13:05:40 I want it all Sep 20 13:06:17 Arancio https://www.youtube.com/watch?v=j7leQB_Oe_k Sep 20 13:07:06 raoul11: https://www.youtube.com/watch?v=hFDcoX7s6rE Sep 20 13:07:27 (: Sep 20 13:07:45 * Arancio facedesks at the rhythm of the drum of "I want it all" Sep 20 13:08:36 i h8 rewriting code iv already wrote Sep 20 13:09:17 I feel like I'm always rewriting the same code Sep 20 13:09:41 make a utility class then Sep 20 13:10:20 I have a whole module with utility classes Sep 20 13:12:17 <_genuser_> hmm, I used to be able to do adb pull /data/data//files/file.png but I can't anymore. Sep 20 13:12:24 <_genuser_> anybody got a clue why? Sep 20 13:12:46 <_genuser_> rather, is that somethign that ws doable at one point and not anymore? I see permission denied. Sep 20 13:24:54 Hi all, I need to figure out how to make automation build on android, having multiple targets, to jenkins. Any advice to start with this? (something I need to know) Sep 20 13:25:26 the code is in a gitlab repo Sep 20 13:29:54 Anyone knows a simple way of reliably getting the current locale's year/month/day order? Sep 20 13:36:00 FranescoV, I wrote this a long time ago when we were building Paradigm for the Galaxy Nexus. Maybe it will help. https://bitbucket.org/shauder/android-build-bot-script Sep 20 13:36:25 shauder, thanks, I'll check it out! Sep 20 13:39:14 is an Application class gets called when alarm manager triggers a Service ? Sep 20 13:39:52 FranescoV, didn't realize u meant apps Sep 20 13:40:05 Probably wont help much lol Sep 20 13:40:19 shauder, I see :p already found this: http://www.vogella.com/tutorials/Jenkins/article.html Sep 20 14:04:21 The new Android Studio freezes from time to time while I edit Sep 20 14:13:41 Arancio: you got like 16GB of RAM, right? Sep 20 14:13:53 32 GB Sep 20 14:14:09 SSD? Sep 20 14:14:44 32 GB of RAM on my desktop computer Sep 20 14:14:51 Arancio: try this https://stackoverflow.com/questions/18723755/android-studio-how-to-increase-allocated-heap-size Sep 20 14:15:33 Idiosyncratic: I'll try it later but I'll try it. Thanks Sep 20 14:16:04 Arancio: someone else was having the same trouble and they said this increased performance Sep 20 14:16:31 it started to happen after I updated Android Studio an hour ago Sep 20 14:16:36 Thanks very much Sep 20 14:16:58 Maybe it's still caching something Sep 20 14:20:40 Arancio: you can also put this in your app's build.gradle in the android{} http://hastebin.com/tomawesuni.nginx Sep 20 14:21:00 Arancio: obviously, putting way more memory and more processes Sep 20 14:21:18 I should probably run and not come to work tomorrow Sep 20 14:21:24 [develop 4202c86] Whitespace cleanup 272 files changed, 32964 insertions(+), 32969 deletions(-) Sep 20 14:21:43 Zharf: did you work too much? Sep 20 14:22:17 I probably broke ever merge for the near (and not so near) future Sep 20 14:22:20 every* Sep 20 14:23:04 Change name and move to another Country Sep 20 14:23:41 If you have the money Sep 20 14:24:00 Otherwise I can lend you a thick rope Sep 20 14:24:40 Just leave a note saying that it must be returned to me at your expenses Sep 20 14:24:53 heh Sep 20 14:25:18 Did you make some mistake? Sep 20 14:29:56 probably not Sep 20 14:30:22 * Zharf proceeds to make sure it compiles Sep 20 14:30:43 Anyway, we love you. Don't commit suicide, please. I was joking. Sep 20 14:31:01 obviously Sep 20 14:37:40 That looks scary Zharf Sep 20 14:38:07 This would be my reaction if I seen that: http://i.imgur.com/ZjW2c55.gif Sep 20 14:39:48 Instead he kept his cool and he's trying to find a way to blame it on a coworker Sep 20 14:44:17 There are scripts to do that Sep 20 14:44:54 Hi guys! I'm learning Dagger 2 and I have a question. Where should I keep my components so I could access them from any place of my app including classes not derived from Context? Let's say I have some LoginInteractor class in my MVP application which is a POJO, and I need some Android-specific object like Context there. Sep 20 14:45:07 AlexBerdnikov: Hi! Sep 20 14:46:05 The only way I see for now is to keep Dagger components as a static members of Application class, but I believe it's a bad idea to keep anything static in Application. Sep 20 14:46:45 https://twitter.com/koush/status/778020598463078400 Sep 20 14:46:57 tl;dr unknown versions of the support libs in maven getting auto-fetched Sep 20 14:47:35 All the examples I found in the internet all demonstarate injection in Activities or Fragments where you have getApplication() method. Sep 20 14:48:30 But what if I need to inject Context in some POJO class which is in the deep layer my app's architecture? Sep 20 14:52:03 Arancio: Git blame ftw Sep 20 14:52:18 *git blame someone else Sep 20 14:52:28 Zharf: https://github.com/jayphelps/git-blame-someone-else Sep 20 14:52:33 Don't say I never helped you ;) Sep 20 14:58:36 hey folks i have an old android tv box .. it looks to be a generic MXQ amlogic s805 running a custom 4.4.2 image, i would like to do some dev work with it .. the issue atm is it doesnt have a microUSB port so i cant hook up my computer to setup adb authorization ... i do have a terminal installed on it .. and i can get adb to connect to it over tcp-ip.. just cant authorize so it shows as offline ... it has usbA female ports so I am thinking of making a Sep 20 14:58:36 usbA male to male cable crosing over data pins 2/3 to see if that might allow me to do a usb adb connection ? thoughts ? Sep 20 14:59:32 ghostD0g, no Sep 20 14:59:40 you probably need an OTG cable Sep 20 14:59:57 i have a otg i made up Sep 20 15:00:02 usb is a client/host protocol, you can't just do a crossover like ethernet Sep 20 15:00:15 so you need to shove one end of your connection into host mode, if it isn't already Sep 20 15:00:19 micro mal usb and female usbA and male usbA Sep 20 15:00:28 (or shove it into client mode, i suppose, if both are hosts) Sep 20 15:00:46 anyhow, you can't just go host to host Sep 20 15:00:51 hmm Sep 20 15:01:19 usb data is a differential signal pair (one line is + and one is -), while crossing them shouldn't burn out a port or anything, it won't get you anywhere Sep 20 15:01:50 the issue is with only pins 1/2/3/4 to work with i cant trick it into client mode like yo can on a micro usb cable with 5 pins Sep 20 15:02:13 correct Sep 20 15:02:16 you can't OTG an A port Sep 20 15:02:20 ok is the a way i can authorize it ove tcp ip Sep 20 15:02:42 guys, any idea what im getting this error at notifyItemRemoved(index) or notifyItemInserted(index)? java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder Sep 20 15:02:46 otg requirs a 5th pin for detection Sep 20 15:02:48 why* Sep 20 15:03:28 ghostD0g, correct, OTG uses the 5th pin in mini/micro. A quick google indicates that you ought to be able to enable adb over tcp, initiate a connection, and get the standard authorization screen. Sep 20 15:04:02 i dont get the authization Sep 20 15:04:08 just connects Sep 20 15:05:56 on the device i was able to do : su setprop service.adb.tcp.port 5555 Sep 20 15:05:56 stop adbd && start adbd Sep 20 15:06:22 and on my computer i can adb connect x.x.x.:5555 Sep 20 15:06:49 but i dont get the authorization screen on the device Sep 20 15:07:03 so i think i am missing something Sep 20 15:10:18 this seems to indicate the only way to authrize is over usb :( http://stackoverflow.com/questions/19485467/adb-wireless-device-unauthorized Sep 20 15:10:48 hmm adb wifi Sep 20 15:11:01 Hello guys Sep 20 15:11:09 To use the automatic animations in Android Sep 20 15:11:20 I should use android:animateLayoutChanges="true" Sep 20 15:11:26 yes Sep 20 15:11:35 do I have to put this in the activity_main and also the content_main? Sep 20 15:11:40 or only in the activity_main? Sep 20 15:11:49 I mean in the root layout. Sep 20 15:11:55 wherever you put it Sep 20 15:12:00 it will apply to any child views Sep 20 15:12:16 (nested) Sep 20 15:12:33 so if I put it in the activity_main, it will wrap the content_main Sep 20 15:12:47 Sep 20 15:12:49 this guy over there Sep 20 15:13:15 Thanks tx Sep 20 15:14:23 where oh where has naruara gone? Sep 20 15:17:35 I feel like animationLayoutChanges didn't do that much to my child components. Sep 20 15:18:01 When I have a gone textview and then turn it to visible, it doesn't makes like a smooth transition Sep 20 15:18:38 depends on the type. of layout Sep 20 15:18:56 linear, grid and table layouts are easy to. animate changes Sep 20 15:19:05 Well my root layout is a coordinator layout and my content_main is inside of a Scrollview Sep 20 15:19:11 frame and relative are next to impossible to animate well Sep 20 15:19:22 The portion I want to animate is a Linear layout Sep 20 15:19:35 But it has a Relative as a child component Sep 20 15:19:48 you're talking in circles Sep 20 15:20:01 Circles? Sep 20 15:20:04 what is the direct parent of the view you are changing visibility on Sep 20 15:20:38 LinearLayout Sep 20 15:21:06 Inside of the linear there is a Relative Sep 20 15:21:22 but I want to animate the portion inside of the relative too. Sep 20 15:21:41 animate contents of relative layout yourself Sep 20 15:21:53 a direct child of linear layout will animate fine Sep 20 15:22:08 Ok, I'll try it,. Sep 20 15:32:45 is there a way to authorize adb .. without a usb to pc connection ? it is rooted with a terminal emulator Sep 20 15:33:09 yes Sep 20 15:33:14 download wifi debugging (the app) Sep 20 15:35:13 tx: I'm still not experiencing a smooth transition Sep 20 15:35:31 Could it be related that the layout hierarchy is Coordinator>Scroll>Linear? Sep 20 15:35:50 nice it wont let me install it .. your device is not compatible.. Sep 20 15:36:50 looking for the apk Sep 20 15:38:21 Anyways Sep 20 15:38:28 :P Sep 20 15:38:28 Perhaps I was expecting a smoother transition Sep 20 15:38:35 And that's what android has for me Sep 20 15:40:13 ghostD0g did you already say why you couldn't authorize using usb first? you should only have to do it once and check the box to always allow right? Sep 20 15:40:57 there is only usbA female ports on the device so there is no physical way to connect via usb Sep 20 15:42:21 i considered making a crossover ... but dragorn confirmed my worry that it wont work Sep 20 15:42:54 ghostD0g, if you have the old sony one, the only method is tcpip, and it should show an authorization dialog. That's all I found via limited googling. Sep 20 15:43:22 sont ? Sep 20 15:43:26 sony one ? Sep 20 15:43:42 i dont get the autorization screen Sep 20 15:43:53 Well, whatever you have. Google is your friend, and it's all ancient unsupported stuff anyhow at this point. Sep 20 15:44:58 yeah google is telling me to hook it to usb first lol .. which isnt possble Sep 20 15:45:04 hehe Sep 20 15:46:31 Hello, I'm having trouble with android routing tables and was wondering if someone here has some suggestions. I have setup a bluetooth panu connection on the devices which creates a bt-pan interface and want an application to use that interface. Sep 20 15:47:14 The problem is that when I try to send to an address on the bt-pan interfaces subnet it does not get routed through it. Sep 20 15:47:43 I think that has something to do with the default ip rules that android sets up. Sep 20 15:48:37 Unfortunately binding the socket to the local adress of the bt-pan interface does not work. The only think that works is binding the socket to a devices but that requires root acess Sep 20 15:48:59 i am looking at the pcb right now to see if there is a way to solder a 5 pin usb Sep 20 15:53:54 Holy shit, pricing for new pixel phone is targeted at $650?! Sep 20 15:55:37 pfn, for the small one Sep 20 15:55:52 thats hilarious Sep 20 15:55:52 I know, that's crazy Sep 20 15:56:03 seeing the absolute shitfest that have previous pixel releases Sep 20 15:56:11 how is it even a premium brand ? Sep 20 15:57:45 my Pixel C running fully updated stock without any mods still randomly freezes for a minute every hour or so, a year after release Sep 20 16:00:04 what's going to kill it for me is if they carrier-lock/brand it Sep 20 16:03:13 I wouldn't mind paying that if it's iPhone level quality.. If it's anything like the previous nexus phones it's disappointing Sep 20 16:03:15 dragorn : i might be in luck there is a unused 4 pin header on the pcb the looks like it may be a USB OTG .. this is a picture of a pcb that is almost identical to mine http://www.cnx-software.com/wp-content/uploads/2014/07/HD18Q_Board_for_EM6Q-MXQ_640px.jpg ... see the white header at the bottom .. mine has the holes just not the connector ... this seems toindicae there is a otg port on the board Sep 20 16:03:45 SimonVT: you mean like updates that bricking phone? :P Sep 20 16:03:50 nevermind the whit header has only 4 pins .. so no sense oin Sep 20 16:03:56 pin Sep 20 16:04:00 We got that already Sep 20 16:04:06 I just want the build quality Sep 20 16:05:14 i dont think iphone has good build quality but.. Sep 20 16:05:20 at least from what I saw at work Sep 20 16:05:21 ghostD0g, it may still be a client-mode usb header, but I wouldn't wire it up to usb blindly Sep 20 16:05:30 wait the one usb port is marked usb-otg Sep 20 16:05:32 The feel then Sep 20 16:05:37 haha Sep 20 16:05:38 but only 4 pins Sep 20 16:05:43 hmm Sep 20 16:05:48 iPhones feels more premium than nexus devices Sep 20 16:05:51 I like nexus 6p Sep 20 16:06:14 dont have it, just feeling from work Sep 20 16:06:32 nexus6 is also nice but it's plastic Sep 20 16:07:00 not like plastic is bad Sep 20 16:07:11 I'd choose thinkpad x1 carbon over macbook pro 13' Sep 20 16:08:52 how do i put a picture into my android emulators Pictures? Sep 20 16:09:04 or Gallery as it is called Sep 20 16:09:48 you can download it from internet Sep 20 16:09:57 at least that's what I'm doing Sep 20 16:10:06 when i press "Save Image" in the Browser, it just immediately crashes Sep 20 16:10:11 you can put it through usb Sep 20 16:10:30 i mean adb Sep 20 16:10:58 https://stackoverflow.com/questions/5151744/upload-picture-to-emulator-gallery Sep 20 16:19:10 Don't bash Nexus Sep 20 16:19:19 * tx bashes nexus. Sep 20 16:19:28 * s73v3r bashes the Nexus right in Sep 20 16:20:02 -.- Sep 20 16:22:20 We’ve got two Nexus devices with swollen batteries. Best not to bash them. Sep 20 16:23:06 ^ Sep 20 16:23:25 rig up a robot to do the bashing Sep 20 16:23:34 either that, or just emotionally cripple it Sep 20 16:23:45 "Nexus: you can't bash it. By design" Sep 20 16:24:19 oh you can totally bash it. it’s just not the best of ideas given the circumstance Sep 20 16:27:41 <_genuser_> hey bashers and trashers Sep 20 16:27:46 <_genuser_> stop bashing stuff. Sep 20 16:27:55 Can I root my Nexus to display a bitten apple while booting? Sep 20 16:28:08 Sorry, wrong channel Sep 20 16:28:28 i need to bash AS keeps giving me internal IDE errors "typeahead request blocked' wtf does that mean Sep 20 16:28:51 g00s: did you update AS today? Sep 20 16:29:12 <_genuser_> g00s: you're typing too fast. or you're updating AS too often. Sep 20 16:29:29 <_genuser_> I'm still on 2.1.2 I don't even know what the latest versio is. Sep 20 16:29:31 <_genuser_> *version Sep 20 16:29:39 2.2 Sep 20 16:30:06 <_genuser_> ah, 2.2.0 wonder if I should really install it. it's working fine for now. Sep 20 16:30:22 <_genuser_> does JakeWharton not visit here anymore? Sep 20 16:30:31 it has a new icon for "run in debug mode" Sep 20 16:30:37 sure he does Sep 20 16:30:40 the old one was ridiculous Sep 20 16:30:46 <_genuser_> or should I tweet him my questions... Sep 20 16:30:54 <_genuser_> tx: guess I haven't seen him in a bit. Sep 20 16:31:03 or leave him alone as he probably is busy work work :P Sep 20 16:31:05 or Sep 20 16:31:09 make issues in his projects? :D Sep 20 16:31:34 OR, submit merge requests for new features / bug fixes :D Sep 20 16:31:47 <_genuser_> tx: err, you release a highly useful and highly used library... cant' expect people to not have questions!! Sep 20 16:31:57 _genuser_ he might also be on slack Sep 20 16:31:58 "Issue #4310: Hi, Jake. How are you? Long time no see. I how your cat is doing well too. Bye" Sep 20 16:32:02 _genuser_: which one? Sep 20 16:32:07 i think there is an android lib slack channel Sep 20 16:32:08 <_genuser_> ok, that kinda sounds like I'm saying I have a right bug people. but no, I was Sep 20 16:32:12 <_genuser_> was mostly joking. Sep 20 16:32:14 there are a few heh :p Sep 20 16:32:24 <_genuser_> g00s: so I go and find him on slack? Sep 20 16:32:31 <_genuser_> I have a slack registered somewhere. Sep 20 16:32:49 uh, well not personal message but on the channel Sep 20 16:33:09 i think his projects mention how to get in contact, folow that Sep 20 16:33:12 <_genuser_> slack has an android channel? Sep 20 16:33:34 <_genuser_> yeah, I figured if he's here, I'll ask quickly. otherwise, it will actually add to his headache. Sep 20 16:33:47 slack is a bunch of teams Sep 20 16:33:53 there's no global slack team that has an android channel Sep 20 16:34:16 <_genuser_> tx: right, that's what I thoguht. I was like I'm not part of any android slack team, is there a public one? lol. Sep 20 16:34:24 <_genuser_> ok ok, nevermind. I should leave jake alone. Sep 20 16:34:29 haha, teams can set themselves as public. Sep 20 16:34:48 <_genuser_> tx: damnit, how did slack get so complicated. Sep 20 16:36:47 <_genuser_> ok, so I update my package and push to git, and it's all done. Sep 20 16:37:00 <_genuser_> but I need to add it as a new version to bintray and push to jcenter I think. Sep 20 16:37:11 <_genuser_> it's sounding like more and more work. Sep 20 16:37:37 <_genuser_> jitpack is trying it darndest to look all cute right now. Sep 20 16:37:47 sounds like something that’s ripe for scripting Sep 20 16:38:13 <_genuser_> s73v3r: what is? the jcenter push? Sep 20 16:38:28 yeah. and the versioning Sep 20 16:39:04 <_genuser_> s73v3r: so it's just a change in the build.gradle and then gradlew bintrayUpload from the term. but then you have to go and click "add to jcenter" and wait for them to accept and approve it. Sep 20 16:39:10 <_genuser_> that's the part that takes time. Sep 20 16:39:40 <_genuser_> and I think the bintray pluing can't upload the same version on top of an exsiting one. Sep 20 16:40:03 <_genuser_> the entire plugin is so fragile. it breaks if you look at it funny Sep 20 16:40:07 <_genuser_> lol Sep 20 16:40:50 I am looking to pass an imageView from an object so I need to instantiate a view but not relate it to the findById , can I do this ? Sep 20 16:41:17 or is it too generic . since another level I would say what the imageView comes from Sep 20 16:42:25 you can just do new ImageView(...) Sep 20 16:42:59 <_genuser_> instead of passing imageview from one object to another, just pass the image source. either as data or as file location, etc. Sep 20 16:43:05 ^ Sep 20 16:43:42 s73v3r: what would my ... be ? ( i tried that and dont think i filled in the right stuff there ) Sep 20 16:43:57 you’d have to look at the documentation Sep 20 16:44:06 i don’t know it offhand, which is why I put the ... Sep 20 16:44:35 <_genuser_> http://stackoverflow.com/questions/6180802/android-imageview-programmatically Sep 20 16:45:16 <_genuser_> https://developer.android.com/reference/android/widget/ImageView.html Sep 20 16:45:44 <_genuser_> constructors are all requiring a context. your activity, or a child view where imageview will be added probably Sep 20 16:45:47 nice link! thanks Sep 20 16:46:16 <_genuser_> man I hate doing readme.md for github pages. Sep 20 16:47:06 there are good markdown editors online Sep 20 16:47:13 the real-timey ones that update as you go Sep 20 16:47:23 <_genuser_> tx: markdown is ok, I use basic stuff. it's the content and organization of it. Sep 20 16:47:32 <_genuser_> the thinking part... Sep 20 16:47:53 If theres alot of content you can think about using a gh-pages site for extra docs Sep 20 16:48:11 huh thats weird, if my target/compileSdk=24 ... but i deploy to device with 23, I need to have sdk 23 installed for instant run O.o Sep 20 16:48:20 <_genuser_> well I was just saying organizing the content takes some thinking. Sep 20 16:48:41 <_genuser_> you know, how do I tell you what I wrote and how you can use it, without adding uncessary crap and without adding proper context, etc. etc. Sep 20 16:49:43 <_genuser_> but I will keep gh-pages in mind for extensive documentation. Sep 20 17:06:13 Anyone have experience dynamically adding Headers using Retrofit? Sep 20 17:06:48 Im using @Header and passing in an auth string, and before it was working, but suddenly I dont see the auth string being sent in the request Sep 20 17:06:58 (im intercepting and logging the requests) Sep 20 17:07:08 not sure why Sep 20 17:08:41 orbyt_: maybe you can try to setup okhttp Sep 20 17:08:59 this is what I've done as far as I remember Sep 20 17:09:18 What do you mean Sep 20 17:19:18 hello! Sep 20 17:19:27 gordon_: retrofit uses okhttp already Sep 20 17:19:53 That's why I set up okhttp headers Sep 20 17:20:05 So retrofit will use that settings Sep 20 17:21:19 this would be alot easier if someone would just do it for meh! Sep 20 17:26:28 hi al Sep 20 17:26:43 what's your prefered android style guide BTW? Sep 20 17:27:18 I'm having trouble working with a dev who loves littering his views with textView1, textView22 ugh!@! Sep 20 17:36:32 hey say i wanted to look at other examples where people used "extends Recycler.ViewHolders", i've google searched and found a few , but is there a place to search code better ? Sep 20 17:38:03 github, androidxref, etc. Sep 20 17:41:15 Hello guys Sep 20 17:41:33 Do I have to manually translate each string resource to support internationalization on android? Sep 20 17:41:52 wow androidxref is great, i never knew that one Sep 20 17:42:01 is it sane to trigger button clicks programmatically? Sep 20 17:42:41 I'm stuck between triggering a click and making the actions of the click listener public Sep 20 17:44:38 Hi, I'm a noob but I have some troubles understanding intents. In the documentation is described as "An intent is an abstract description of an operation to be performed", however when an intent is created that way Intent(Context packageContext, Class cls), I don't see where the description of the action to be performed is Sep 20 17:46:24 an example would be "sending an email" Sep 20 17:46:49 question for experienced devs: You have a form in your app that will send form data across Internet to a hosted database. You want to provide a Dialog that informs the user the transfer is complete along with a button to close the dialog box. What is the most flexible and effective approach? Sep 20 17:47:03 soulisson: Intent does more than that Sep 20 17:47:13 soulisson, the class would. be the name of the activity Sep 20 17:47:24 you could use it for viewing a photo in the default gallery viewer for instance Sep 20 17:47:25 the android.content.Intent class has a lot of statics with examples Sep 20 17:47:36 and the activity would be performing an action Sep 20 17:48:20 azv4: do you plan on showing the progress bar like say a percentage or just show an inifinite dialog till its completed Sep 20 17:48:57 idoko, currently am using ProgressDialog.setIndeterminate(true); with a STYLE_SPINNER, and this is fine Sep 20 17:49:07 pfn, an activity might allow the user to do several things Sep 20 17:49:47 azv4, yeah that's fine for most use cases Sep 20 17:49:58 I also have an 'Ok' button showing for my ProgressDialog(s), but Im trying to figure out if ProgressDialogs are a bad choice considering I want to allow user to close the ProgressDialog by clicking the 'Ok' button Sep 20 17:50:03 maybe it's better if I just consider intent as messaging system between application components Sep 20 17:50:13 *messages Sep 20 17:50:19 showing an actual figue will mean constant communication between both server and client Sep 20 17:50:21 but only after data is processed Sep 20 17:51:02 idoko, it isnt necessary for user to see a status bar, just a spinner letting them know things are happening is fine Sep 20 17:51:25 right now Im having trouble figuring out how to delay the 'ok' button from showing until after the form submission is complete Sep 20 17:51:50 OS X Sierra Sep 20 17:52:09 oh 'macOS Sierra' now Sep 20 17:52:11 so I was thinking perhaps ProgressDialog isn't the best choice, which is why Im posing the question Sep 20 17:58:21 soulisson, a well. designed activity does very few focused things Sep 20 17:58:59 I honestly do not understand why this was a new OS, they didn't change anything except siri and a few apps Sep 20 18:00:10 I find it strange that I am seemingly the only person ever that has needed to add an 'Ok' or a 'close' button to appear on a ProgressDialog after some synchronized task is complete... Sep 20 18:02:38 <_genuser_> I've been working on this lib for a while and now it feels odd to go back to the main project. Sep 20 18:03:36 az4: what does the ok button give you? just to inform the user that it's done? Sep 20 18:05:08 azv4, either you dismiss the dialog without prompting the user Sep 20 18:05:36 or you update it when the task is completed Sep 20 18:08:38 Ok, so if I understand correctly an intent is an object that contains information about the action to be performed? Sep 20 18:10:39 For instance when I use an intent with StartActivity, the Intent describes the Activity I intent to use Sep 20 18:10:41 ? Sep 20 18:11:00 yeah, I guess Sep 20 18:11:29 ok, thanks Sep 20 18:12:14 Ur welcome Sep 20 18:23:26 dsardari, the customer wants an 'ok' button to appear so that the user can close the ProgressDialog box instead of clicking outside the box Sep 20 18:24:21 network lag is really killing me here Sep 20 18:26:12 is there a recyclerview/adapter/layoutmanager method that is called when a cell is about to be recycled? Sep 20 18:28:07 onViewRecycled or something Sep 20 18:30:19 thanks Sep 20 18:39:48 <_genuser_> lol bitbucket. Sep 20 18:40:09 <_genuser_> it tells me I can't use my login name to login, and then tell me to use the associated email address. Then tells me the address. Sep 20 18:40:13 <_genuser_> if you have all that just log the user in~ Sep 20 18:40:14 <_genuser_> ! Sep 20 18:40:43 Who uses bitbucket... Sep 20 18:42:13 have used it orbyt_ Sep 20 18:42:14 why Sep 20 18:43:36 im trying to make a custom RatingBar and everything works except I can't find a way to control the height of the stars themselves Sep 20 18:43:42 any height property I change just clips them and doesn't actually scale them down Sep 20 18:43:46 any ideas? Sep 20 18:44:56 hi all. im setting up Android Studio on a new machine. i noticed that the SDK manager in Android Studio, and the stand-alone do not match. One says that rev 2 of the SDK platofrm is available, the other says that it is already installed Sep 20 18:45:18 within android studio though, it does have a dash, and according to the website - that means there is an update available... Sep 20 18:45:26 but the status says installed, soi am confused Sep 20 18:45:27 <_genuser_> orbyt_: I use it, why? Sep 20 18:46:57 hi all, could I get some advice on this please https://gist.github.com/bsodmike/b8ef88a6c497e6dad50b757f66bef260 Sep 20 18:47:39 I'm basically trying to check if flagEnumSet contains all the set elements of the 'full set' Sep 20 18:49:24 has anyone gotten this to work?: https://github.com/rharter/auto-value-moshi Sep 20 18:49:45 yes Sep 20 18:50:36 I dont have a "AutoValueMoshi_MyAdapterFactory" class generated and cant figure out why Sep 20 18:52:31 the only generated classes I have is the standard AutoValue classes Sep 20 18:52:56 it's like moshi is being ignored Sep 20 18:53:21 ohhh this works flagEnumSet.containsAll(TaskSynchroniser.Flag.ALL_OPTS) Sep 20 18:54:58 idoko, that is what Im trying to learn how to do... Sep 20 18:55:10 which is why I asked the series of questions... Sep 20 18:55:16 ?? Sep 20 18:55:59 i love when people ask questions, get answers, but never actually indicate that they saw the answer Sep 20 18:56:11 xximjasonxx: :) Sep 20 18:56:12 Fordeka, https://developer.android.com/reference/android/widget/ImageView.ScaleType.html Sep 20 18:56:15 what do you think? Sep 20 18:56:23 In an Android Studio project, is there any good location to keep the Project Documentation? What if I want to have README files or TODO lists? Sep 20 18:56:29 xximjasonxx: https://gist.github.com/bsodmike/b8ef88a6c497e6dad50b757f66bef260 Sep 20 18:56:37 michael_mbp: i wasnt referring to you, orbyt_ Sep 20 18:56:40 is that the most effective way to implement bit flags via EnumSets Sep 20 18:56:46 ah. Sep 20 18:56:51 sorry Sep 20 18:56:58 @truckcrash: how do I use that in a drawable xml? Sep 20 18:57:08 xximjasonxx: ? Sep 20 18:57:21 Fordeka, read the page, it is there Sep 20 18:57:26 I've got multiple Retrofit API callbacks, that I want to wait on until they all complete. Sep 20 18:57:52 I'm planning to setup methods within TaskSynchroniser to assist with this :) Sep 20 18:58:05 michael_mbp: Use rx, and handle the logic in oncompleted Sep 20 18:58:07 orbyt_: you asked about bitbucket, two people responded, and you didnt say anything. Its your choice, it just annoys me when people seem to ask questions, get answers, but never indicate that they got an answer Sep 20 18:58:10 truckcrash: can you elaborate? how do I use an imageview in a drawable? Sep 20 18:58:21 orbyt_: rx? Sep 20 18:58:24 xximjasonxx: I didnt ask anything about bitbucket Sep 20 18:58:55 <_genuser_> I think it's alright, I figured, he didn't realized people still use it. Sep 20 18:59:00 Fordeka, dont use it in the drawable, use it in your layout xml Sep 20 18:59:05 <_genuser_> I use it because it allows free private repos. Sep 20 18:59:10 michael_mbp: yes Sep 20 18:59:19 orbyt_: mmm ok, I saw your comment on Bitbucket thought it was a quesiton, maybe part of a conversation i didnt see cause i came in too late Sep 20 18:59:21 <_genuser_> allows me to backup my code to my fileserver, and then to bitbucket. without publishing it. Sep 20 18:59:45 truckcrash: ok, how do I use an imageview in a RatingBar? Sep 20 19:00:13 Hi everyone Sep 20 19:00:18 for some reason none of the auto-value extensions i have are being recognized... any ideas why? Sep 20 19:08:34 sigh Sep 20 19:11:04 hey orbyt_ I just caught up with this http://randomdotnext.com/retrofit-rxjava/ Sep 20 19:11:15 how can I set about 'stacking' multiple observers though Sep 20 19:11:35 i.e. MainActivity fires multiple API calls. Think I saw examples using flatMap Sep 20 19:11:42 yup, flatmap Sep 20 19:12:08 http://orbyt.github.io/RxCookbook/ Sep 20 19:12:22 ooh ta Sep 20 19:12:24 Just flatmap your calls Sep 20 19:12:34 or whatever depending on what you want to do Sep 20 19:14:16 .flatMap(param -> // is this Rx specific? Sep 20 19:14:27 is what Sep 20 19:14:36 the "->" Sep 20 19:14:44 Do you know what a lambda is? Sep 20 19:14:50 Is there someone who are using mapbox ? Sep 20 19:14:55 oh neat, yup. Sep 20 19:15:04 Yea im using retrolambda there Sep 20 19:15:11 pretty much goes hand in hand with rx Sep 20 19:18:41 i know what a lambda is, its that animal you make sweaters from Sep 20 19:25:34 none of the auto-value extensions I have are being "recognized", any advice? Sep 20 19:34:50 Hey guys Sep 20 19:34:58 When should I use constraint layout? Sep 20 19:35:08 Whenever I need a relativeLayout? Sep 20 19:35:21 Is there any suggestion regarding to this new layout? Sep 20 19:36:40 or should I use it all the time? Sep 20 19:39:42 rangu: generally yes. You should use it when you're trying to do complex layouts with a mixture of relative and linear layouts Sep 20 19:40:26 basically in an attempt to flatten the heirarchy, even though flattening is now quite difficult with wrapped layouts everywhere (CoordinatorLayout, NestedScrollView, TextInputLayout) Sep 20 19:40:43 but the guess is that behavior layouts are not expensive I think Sep 20 19:40:54 Is there any concern with publicly publishing an example app with my test Google Maps API key in the repo? i.e. should I just ask users to get their own Google Maps API key? Sep 20 19:41:13 So I can still continue to use my LinearLayouts and Relative Layouts Sep 20 19:41:46 I mean.. I'm not loosing performance if I don't use the constraint Sep 20 19:41:58 rangu, you are. Constraint is better performing Sep 20 19:42:02 it's one pass iirc Sep 20 19:42:04 Oh I see. Sep 20 19:42:08 vs two passes for every RL Sep 20 19:42:26 How responsive are constraint layouts? Sep 20 19:42:59 same as any other layout in Android, you create a layout file in another folder layout-large, layout-land etc Sep 20 19:43:38 Hello, I have a linear layout in my main activity which includes a support v7 toolbar and a listview inside a swiperefreshlayout. when I comment the code for the toolbar the listview is inflated by the adapter, but when the toolbar is set, the listview doesn't show Sep 20 19:43:46 any idea how to fix it? Sep 20 19:43:46 ConstraintLayout is slower for lots of things.. Not really any way of knowing before you try Sep 20 19:43:48 sometimes there's hardcoded dp values in there, so maybe restricted, haven't played with different screen sizes enough to say Sep 20 19:44:00 SimonVT: slower to run? o.O Sep 20 19:44:05 But they can make it faster, on all api levels Sep 20 19:44:25 Yeah Sep 20 19:44:30 g00s, i recall you searchedfor/talkedabout chart lib few times, what did you end up with? cause I tried like MPAndroidChart and few others, it's bugged as hell, even for simple line chart, and later on i think i'm gonna try the hellocharts-android (next on the list) Sep 20 19:44:40 Well, I guess it's slower than an oriented linearlayout, should be generally better than relativelayout, right? Sep 20 19:44:55 Afzal: Not necesarrily Sep 20 19:45:12 (dunno why I mentioned orientation though) Sep 20 19:45:15 rangu how come? Sep 20 19:45:21 adq yeah, mpandroidchart. Afzal has tried a few :) Sep 20 19:45:28 Linear Layouts are quite responsive. Sep 20 19:45:33 I think right now the main focus is making something that's easier to work with Sep 20 19:45:38 oh okay Sep 20 19:45:49 They've said there's lots of potential performance improvements they can make, but that'll be after 1.0 Sep 20 19:46:05 g00s, well this one sux for me: http://imgur.com/a/wIZa0 here's an example of one of many bugs Sep 20 19:46:06 rangu: I said CL is possibly slower than LL but should be better than RL. Sep 20 19:46:07 So don't expect it to solve all your performance issues just yet Sep 20 19:46:17 Yes of course. Sep 20 19:46:17 SimonVT: I see, so all that stuff is "coming soon" (TM) Sep 20 19:47:11 You'll probably be able to reduce some complex layouts to something simpler that'll be faster at runtime.. But there's no set in stone LL > CL > RL Sep 20 19:47:24 hey Afzal how's you mate Sep 20 19:47:25 right Sep 20 19:47:32 dealing with this bag of fun https://gist.github.com/bsodmike/b8ef88a6c497e6dad50b757f66bef260 Sep 20 19:47:38 Probably shouldn't use it in production before 1.0 anyway, but it's the future for sure Sep 20 19:47:41 I'm good michael_mbp, thanks Sep 20 19:48:02 looking at the best way of handling multiple Retrofit callbacks Sep 20 19:48:06 I agree with you SimonVT Sep 20 19:48:11 to sync. a splash screen. Sep 20 19:48:19 :') Sep 20 19:48:31 Need to play with RxAndroid first, not used it before. Sep 20 19:48:34 wow, umm what? Use Observables :D Sep 20 19:48:38 yeah Sep 20 19:48:40 Btw, I haven't seen a single video of the google devs working with the ConstraintLayout Sep 20 19:48:44 just the I/O 2016 Sep 20 19:48:45 hehe yeah. Sep 20 19:48:50 wich was some sort of preview Sep 20 19:49:06 it's still 0.1.0 :D haha lovely Sep 20 19:49:18 oh wait Sep 20 19:49:26 read it wrong. 1.0.0-alpha8 Sep 20 19:49:38 meh, good enough. /s Sep 20 19:49:48 ConstraintLayout xml is kinda yucky Sep 20 19:49:59 g00s: wait till you get used to it Sep 20 19:50:07 I do it almost exclusively in xml now :D Sep 20 19:50:22 Afzal does it work in the previewer ? Sep 20 19:50:51 kind of. Sometimes the previewer doesn't reflect reality. But I haven't seen the previewer in 2.2 stable yet lol Sep 20 19:50:51 so many problems with that thing Sep 20 19:51:12 been fixing this fiasco with couchbase not being able to handle a 1000+ float array Sep 20 19:51:13 >_< Sep 20 19:51:27 oh Sep 20 19:51:30 jackson always manages to mess things up Sep 20 19:51:45 1000 floats in json haha Sep 20 19:52:01 does not sound much Sep 20 19:52:08 lets try to be creative a figure out a less efficient way to do this :P Sep 20 19:52:25 it's not the json, it's the conversion from json to the object. Sep 20 19:52:41 3 second method time, yeah, figure that one Sep 20 19:52:50 lot of alloc Sep 20 19:53:01 yeah well that's jackson's fault >_< Sep 20 19:53:11 Just gonna switch the db to realm and only sync to couchbase on save. screw it Sep 20 19:53:38 g00s: constraint inside linear layout shows up appropriately in the previewer though, I didn't expect that one Sep 20 19:53:39 The observer pattern is similar to ES6/7's JS Promises yeah? Sep 20 19:54:43 Afzal wish i could get some RCFile or (O)RC file reader running on android ... Sep 20 19:55:04 reader + writer, the apache ones depend on a bunch of big heavy hadoop / hive stuff Sep 20 19:55:23 mhm, intesting Sep 20 19:55:32 i guess i could write my own, but then i'd have to do some conformance testing Sep 20 19:55:34 Hey guys. Really vague question here. I'm using android:onClick for one of my buttons in my layout, as opposed to an onClickListener. It doesn't recognize when I've pressed the button on a physical device however, but it works perfectly on an emulator. Any idea what gives? Sep 20 19:55:50 couchbase does map/reduce. But it's hilarious. It builds the db index on every write sooooo, yeah, it halts the crap out on large sets still Sep 20 19:56:34 Kinda grateful retrofit allows switching json parsers, in case that's the bottleneck ever Sep 20 19:56:57 Faizan, buddy, ButterKnife -> @onClick(R.id.yourbutton) Sep 20 19:57:03 shit macOS Sierra doesn't support my MBP Sep 20 19:57:13 g00s: it's not a real update anyway :p Sep 20 19:57:22 Hmm let me read up on what ButterKnife is Sep 20 19:57:24 actually pure gson can be bottleneck Sep 20 19:58:04 i tried something that was generating special TypeAdapter which was directly mapping json to pojo, without reflections Sep 20 19:58:09 and it was 2-3x faster Sep 20 19:58:09 Of course, depends on the data, and some practices Sep 20 19:58:23 Yuuup makes sense Sep 20 19:59:29 Afzal: is there any solution without any external libraries? Sep 20 20:00:01 Faizan: using android:onClick is a terrible idea Sep 20 20:00:04 Faizan, probably. I don't use android:onClick though Sep 20 20:00:08 i tried this: http://dubedout.eu/2016/07/11/faster-json-deserialization-autovalue-extension/ Sep 20 20:00:10 Why's that? :o Sep 20 20:00:11 what s73v3r said Sep 20 20:00:37 because now you’re letting your layout, which should have no knowledge of it’s backing, dictate what your activity/fragment looks like Sep 20 20:00:42 I mean I have it working with using setOnClickListener so it probably makes sense to use that anyway, but onClick is so much more readable Sep 20 20:00:44 Hey there Sep 20 20:00:53 and if you for some reason rename that method, or forget to put it in there, you crash Sep 20 20:01:01 it really, really isn't Sep 20 20:01:19 Ahh okay, so is it somewhat related to tight coupling? Sep 20 20:01:24 yeah Sep 20 20:01:28 Right gotcha Sep 20 20:01:46 The strange thing is though, onClick works on every single device but my google tango tablet Sep 20 20:01:50 (android:onClick) Sep 20 20:01:53 I really wanna know why lol Sep 20 20:02:14 man, how come Jake Wharton got all these fancy ideas for ButterKnife, and Timber, and Retrofit >_< Sep 20 20:02:18 :P Sep 20 20:02:31 Faizan: Step through it, I guess Sep 20 20:02:49 especially retrofit, good lord it makes things so simple, wtf Sep 20 20:02:51 I have, it just doesn't go into that method Sep 20 20:02:54 for whatever reason Sep 20 20:03:11 Ah well at least it made me not apply bad programming practice I guess Sep 20 20:03:18 lol Sep 20 20:05:43 So where do you guys stick your listeners, onCreate will do right? Sep 20 20:08:53 Faizan: https://developer.android.com/reference/android/widget/Button.html Sep 20 20:09:12 the first way Sep 20 20:09:16 not android:onClick Sep 20 20:09:41 I'm doing mine somewhat slightly different to that Sep 20 20:10:03 extends Activity implements View.OnClickListener; Sep 20 20:10:15 getting the buttons id's and setting listeners to it on oncreate Sep 20 20:10:21 You can use butterknifes @OnClick as well Sep 20 20:10:32 then implementing onClick() method Sep 20 20:10:48 yeah i should really look into what butterknife is all about Sep 20 20:10:53 i've seen it come up a lot Sep 20 20:13:00 and setting listener to your Activity? Sep 20 20:13:48 yeah Sep 20 20:14:01 e.g. viewRecordingsButton.setOnClickListener(this); Sep 20 20:14:17 essentially the same way as Afzal's link, just more readable to me Sep 20 20:15:25 Hey does any1 know a way to root the g930T s7 from t-mobile and not have the df_verify issue? Sep 20 20:15:34 Faizan: I meant step through the View class, and see why it’s not registering Sep 20 20:16:04 many ways to skin a cat. As long as it works. You can also OnClickListener myActionListener = new OnClickListener... viewRecordingButton.setOnClickListener(myActionListener); Sep 20 20:16:07 im putting mine back to factory ROM now on ODIN Sep 20 20:16:22 Ah okay s73v3r. I'm not sure where I'd begin with that Sep 20 20:16:46 yeah exactly whatitis. I wanted to do android:onClick but 1) it didn't work specifically for the google tango and 2) I was advised otherwise Sep 20 20:16:50 i’d start with the View constructor that receives the XML attributes Sep 20 20:16:52 julyrose: this channel is for app dev, try #android or #android-root Sep 20 20:17:02 ahh i understand Sep 20 20:17:07 sorry Sep 20 20:17:29 Np :) Sep 20 20:18:07 s73v3r: are you referring to findViewById? (that's not a constructor but I'm not using any explicit view constructor in my code) Sep 20 20:18:11 i think.. Sep 20 20:18:27 god I really need to learn how to debug Sep 20 20:18:42 System.out.println() of course Sep 20 20:19:02 If only Sep 20 20:19:12 logcat is the only way to debug :) Sep 20 20:19:16 Faizan: no, i mean the constructor to the View class Sep 20 20:19:20 love logcat Sep 20 20:19:27 I was actually really sad when I found out where were no println's in android studio Sep 20 20:19:33 #1 debugger Sep 20 20:19:39 umm.. Sep 20 20:19:48 no, a debugger is the #1 debugger Sep 20 20:20:03 logd tab autocomplete, fill in necessary details, it'll automagically add the method you are in for TAG Sep 20 20:20:06 lies Sep 20 20:20:07 about https://twitter.com/koush/status/778020598463078400 , does anyone know if the "possible rogue" versions have been analysed in the meantime and if they are really rogue or not and what they do in case? Sep 20 20:20:13 println is present in android, more preferable is Log, and more preferable is debug Sep 20 20:20:26 they should really sign their stuff... Sep 20 20:20:27 Well yeah but Log is effort Sep 20 20:20:33 :O Sep 20 20:20:36 not really but i'm lazy.. Sep 20 20:20:42 it's less letters Sep 20 20:20:49 but the longgg tags Sep 20 20:20:54 Timber then Sep 20 20:20:55 why long? Sep 20 20:21:02 you create a static variable named TAG, and assign it once Sep 20 20:21:07 isn't it recommended to do "packagename.something"? Sep 20 20:21:10 true Sep 20 20:21:11 lowercase logd in AS and hit tab or loge logw etc, and it'll add in some stuff so less typing Sep 20 20:21:27 s73v3r, it's nice to know the method you are in, not the class Sep 20 20:21:39 i mean, I know laziness is a prized quality among developers, but that’s just ridiculous Sep 20 20:21:43 Timber automatically tags for you Sep 20 20:21:47 Hugo logs methodnames Sep 20 20:21:50 and tag can be only up to 23 characters Sep 20 20:21:54 God damn whatitis Sep 20 20:21:59 I didn't know tab auto completes Sep 20 20:22:00 #squarekoolaid Sep 20 20:22:02 missingno, so does using AS's presets Sep 20 20:22:04 here's me doing ctrl space.. Sep 20 20:22:55 anybody know what database Reddit Sync uses for local storage? Sep 20 20:23:44 Faizan, it's a nice addition Sep 20 20:23:44 adq jesus christ ! Sep 20 20:23:48 adq: Google has analyzed them, they’re the official versions Sep 20 20:23:54 So, nothing horrible Sep 20 20:23:55 Is it a bad idea to set a full screen theme to an activity, as opposed to using immersivemodefragment? Sep 20 20:23:57 ok so same checksum & stuff Sep 20 20:23:57 and, tbh, justified. Sep 20 20:23:59 Yes. Sep 20 20:24:02 thx justJanne :) Sep 20 20:24:10 Google should upload Android Support Libs to maven in the first place Sep 20 20:24:14 <_genuser_> ok, now that my jcenter push is completed. Sep 20 20:24:19 <_genuser_> I find it hard to get back to teh real project, heh. Sep 20 20:24:30 Faizan: android studio’s debugger is the #1 debugger anyway, because it has direct in-place code evaluation Sep 20 20:24:32 <_genuser_> I'm distracted by updating the github readme and fixing up the package. Sep 20 20:24:37 meaning you can execute any code in process, Sep 20 20:24:40 and roll it back, Sep 20 20:24:43 Faizan, you should really take one of the free udacity courses on Android development Sep 20 20:24:44 and execute a different alternative Sep 20 20:24:49 it'll answer a lot of questions for you Sep 20 20:25:03 Afzal: I've done the beginner and the weather one Sep 20 20:25:17 oh okay Sep 20 20:25:32 it's helped a lot but there's still some things I'm unsure of Sep 20 20:25:40 justJanne, I had no idea you could change it on the fly Sep 20 20:25:45 Like I can figure out things but there's a lot of talk on what's good and what's bad Sep 20 20:25:54 drinfernoo: press the "evaluate" button and enter evaluation mode Sep 20 20:25:59 I could write a decent app but I want the app to be well written and not a big mess Sep 20 20:26:02 you can run any code in that mode, and directly see results Sep 20 20:26:16 very useful, I often do that to check the results of calls in specific contexts, Sep 20 20:26:26 that's why I ask here a lot about how experienced devs would do things Afzal Sep 20 20:26:32 fair fair Sep 20 20:26:36 rather than learning bad practices and then getting stuck with them Sep 20 20:26:49 that's one way to learn, and this is quite a good place to help and learn honestly Sep 20 20:26:56 Yeah this channels great Sep 20 20:27:10 the problem is, you ask and ask and ask, and at the end of the day, you haven’t done anything Sep 20 20:27:18 s73v3r: hehehe Sep 20 20:27:28 I do like procrastinating Sep 20 20:27:29 :D Sep 20 20:27:32 i speak from experience on that one Sep 20 20:27:46 I've made a good start though, haven't been on this channel in like 5 days I think Sep 20 20:27:50 so that's something :D Sep 20 20:29:49 So yeah, is setting a full screen theme in the manifest an okay way, or is there a preferred way to set full screen? Sep 20 20:30:27 ImmersiveMode probably wouldn't be ideal for a camera app since the status/title bar can be toggled Sep 20 20:30:59 Faizan, you'll always be learning. Don't worry about what's "best" or what's "preferred". Learn as you go, go back and make app from 1.0 to 1.1 etc, and refactor/organize/write better code as "you" progress Sep 20 20:31:32 That's true, fair enough Sep 20 20:31:58 Faizan: and learn from existing behaviors. The stock camera app uses immersive mode doesn't it? Sep 20 20:32:15 Let me check my phone, not on the google tango however Sep 20 20:32:23 actually it doesn't lol Sep 20 20:32:40 Yeah neither does my phone Sep 20 20:33:04 well it uses sticky immersion without HIDE_NAVIGATION is my guess Sep 20 20:33:19 since you can swipe in the status bar Sep 20 20:33:41 Ahh okay so swiping wouldn't be possible if I just set a full screen activity Sep 20 20:33:44 let me check and confirm that Sep 20 20:33:57 if I just set a full screen theme* Sep 20 20:33:59 again, there are always multiple ways to do things Sep 20 20:34:10 ^ Sep 20 20:34:23 so apply one, and try it, if it works satisfactorily, that's it. If not, try the other, if that doesn't work, choose the best option Sep 20 20:34:27 trial and error Sep 20 20:34:48 Yeah, I think i'm too caught up in trying to make a perfect first app Sep 20 20:34:52 Then write a blog post about it Sep 20 20:34:54 which never happens Sep 20 20:34:58 perfect first app haha Sep 20 20:34:59 yeah no Sep 20 20:35:03 :D Sep 20 20:35:09 i still cant make a perfect app, and i am on like 75 Sep 20 20:35:11 good luck handling rotation ;) Sep 20 20:35:16 It will happen, just don't base your releases on it willy nilly. you'll go mad Sep 20 20:35:22 a better learning experience, honestly, is to make the app quick and dirty, and learn how to refactor it Sep 20 20:35:27 yup Sep 20 20:35:35 at least, that’d be a more real world experience Sep 20 20:35:56 and also making backend libraries imho, makes you focus not on the UI for a change Sep 20 20:36:01 Would it be though? What if you have other people working along side you and your code needs to be readable and maintainable from the get go Sep 20 20:36:12 ha Sep 20 20:36:22 i mean, you always want your code to be readable and maintainable Sep 20 20:36:25 (i've never developed professionally so idk if that happens) Sep 20 20:36:26 do you? Sep 20 20:36:32 idk i'm asking you guys :p Sep 20 20:36:32 but the truth is, readable and maintainable mean different things to different peoople Sep 20 20:36:41 Make it work, then refactor Sep 20 20:36:56 there are plenty of jobs where you’ll walk in and the code is crap Sep 20 20:37:00 ...Make it work, understand how it works, then refactor Sep 20 20:37:02 plenty? Sep 20 20:37:03 id say all Sep 20 20:37:06 98% Sep 20 20:37:14 being able to take that crap and make it something less so is a very important skill Sep 20 20:37:27 actually even a lot of open source code i've contributed to is dog shit lol Sep 20 20:37:34 someone once told me, the difference between new code and legacy code is a single keystrike Sep 20 20:37:36 everyone trains you to go through their process Sep 20 20:37:36 *keystroke Sep 20 20:38:08 their code review, their code style. All you need to know is best practices, and higher level concepts Sep 20 20:38:12 As a Consultant, my business is dealing with shitty code and making turds sparkle as much as I can Sep 20 20:38:18 just develop that sense of smelling bullshit code :p Sep 20 20:38:22 all code that was written before the present is legacy Sep 20 20:38:54 therefore confirming xximjasonxx Sep 20 20:38:54 it's legacy the moment it's committed Sep 20 20:39:03 @deprecated Sep 20 20:39:13 heck, pfn's statement is already legacy Sep 20 20:39:26 I think I prefer keystrike Sep 20 20:39:33 keystrike? Sep 20 20:39:44 adding extra pressure to keys Sep 20 20:39:49 ah Sep 20 20:39:52 its legacy the moment you type the next character Sep 20 20:39:52 haha Sep 20 20:40:04 it's legacy the moment you think of the next character Sep 20 20:40:07 poof Sep 20 20:40:08 ^^ Sep 20 20:40:21 unless the next character is backspace? :p Sep 20 20:40:30 legacy'd Sep 20 20:40:33 Afzal: we call that bug fixing Sep 20 20:40:39 legacy fixing Sep 20 20:40:49 Programming is the art of creating bugs, debugging is the art of taking them out Sep 20 20:40:49 what a nonsense conversation lol Sep 20 20:40:56 truth Sep 20 20:41:07 just a bunch of confirmations Sep 20 20:41:20 what it is, is a bunch of confirmations :) Sep 20 20:41:22 see what i did there ;) Sep 20 20:41:25 youre welcome Sep 20 20:41:27 ..... Sep 20 20:41:34 \/door Sep 20 20:42:58 realm annotation process not helpful >_< Sep 20 20:43:03 NullPointerException without a message Sep 20 20:43:06 kidding me :? Sep 20 20:44:28 i can't be arsed to try realm Sep 20 20:44:41 sqlite is good enough ;) Sep 20 20:44:43 g00s: what db do you use? Sep 20 20:44:45 ah Sep 20 20:44:51 well shhhhh Sep 20 20:45:03 i do wish there was some good time series solution Sep 20 20:45:14 well, i guess eXtremeDb financial but ... Sep 20 20:45:37 hmmmm Sep 20 20:45:43 oh oh look what I found the other day Sep 20 20:46:00 https://github.com/steelkiwi/AndroidRecording Sep 20 20:46:02 hope its not something like cheese from between your toes :) Sep 20 20:46:06 go to VisualizerView :D Sep 20 20:46:25 and BarGraphRenderer. Possibly a good place to start an openGL chart Sep 20 20:49:06 nope Sep 20 20:49:13 no? Sep 20 20:49:14 it's the same code everyone is copying since now 5 years Sep 20 20:49:18 ah looool Sep 20 20:49:21 about the visualizer + linerenderer & stuff Sep 20 20:49:28 it's not fast? Sep 20 20:49:38 it's educational only i think Sep 20 20:49:40 I thought since it's audio-related, it'd be fast Sep 20 20:49:42 :( Sep 20 20:49:43 and indeed it's not fast ;) Sep 20 20:50:08 does that library suck? Sep 20 20:50:14 g00s: have you used Perst? Sep 20 20:50:22 can I delete the bookmark? Sep 20 20:50:25 Arancio, i don't think it sux Sep 20 20:50:34 it just not optimized at all Sep 20 20:50:36 like: Sep 20 20:50:36 for (int i = 0; i < data.getBytes().length / mDivisions; i++) { Sep 20 20:50:44 when you see that, it gives you a clear indication Sep 20 20:50:44 Afzal no - a friend that works on trading app at some hedge fund recommended it Sep 20 20:50:45 ok Sep 20 20:50:46 oh lol well Sep 20 20:50:52 I understand Sep 20 20:50:55 thanks Sep 20 20:50:58 *financial app Sep 20 20:50:58 but since i played a lot with visualizer & stuff on android + audio real-time Sep 20 20:51:05 i tend to recognize the code everyone is forking Sep 20 20:51:10 hmm, I'm looking at it. might as well lol Sep 20 20:51:19 today's looking like a late day again :( Sep 20 20:51:31 thanks Sep 20 20:51:37 thanks g00s Sep 20 20:51:51 https://github.com/felixpalmer/android-visualizer/ < this one is probably the most forked/copied code for "visualizer + android" Sep 20 20:51:52 Afzal i was also thinking about storing the data in mvstore as key (time) : value Sep 20 20:52:04 thats log structured, so writes shouldn't be that bad Sep 20 20:52:08 adq: you played a lot with that stuff and you still haven't found a fast enough free library? Sep 20 20:52:10 oh boy Sep 20 20:52:13 i did mine lol Sep 20 20:52:18 i reach 60FPS easily ;) Sep 20 20:52:27 adq: liiiiiiiiinkkkk! Sep 20 20:52:31 in pm then Sep 20 20:52:37 sure Sep 20 20:52:38 lol Sep 20 20:54:23 android studio 2.2 is out? hmm Sep 20 20:57:03 it's in my computer Sep 20 20:58:00 pfn: it has a new icon for running the application in debugging mode. Tha previous one was ridiculous Sep 20 20:58:04 The Sep 20 20:59:09 yes pfn since few days Sep 20 20:59:18 That's the improvement that had the greatest impact in my workflow Sep 20 20:59:25 lol Sep 20 21:02:11 hmm, jcenter hasn't sync over to central yet, that's so annoying Sep 20 21:05:02 Has anyone else had their gradle builds hanging at 'transformClassesWithDexForDebugAndroidTest' since android-gradle 2.2.0? Sep 20 21:05:53 Building the application works fine, but trying to run the tests always hangs at that point Sep 20 21:09:06 Adobe Lr 6.7 installer crashes 50% through ... Sep 20 21:09:11 those guys suck also Sep 20 21:10:34 Has anyone else had their gradle builds hanging at 'transformClassesWithDexForDebugAndroidTest' since android-gradle 2.2.0? < i had a hang but not at this spot, due to instant-run which i disabled again Sep 20 21:11:45 @adq, I have instant run disabled already Sep 20 21:12:26 then try to run it via CLI with verbose because i have no clue Sep 20 21:12:35 man my gradle builds are flying since yesterday Sep 20 21:12:37 I don't know why Sep 20 21:13:12 solar tempest maybe ;) Sep 20 21:13:27 what's that Sep 20 21:13:48 OMG! Angelina Jolie and Brad Pitt are divorcing! Sep 20 21:13:54 finallly!! Sep 20 21:13:56 well, usually the joke is made about solar tempest disrupting circuits and flipping bits Sep 20 21:13:57 There's your chance bro Sep 20 21:13:58 and mine Sep 20 21:14:12 (of course it does not happen, nor the contrary aka making things run faster) Sep 20 21:14:15 u wanna fight for her mate? Sep 20 21:14:19 Hi. In a service, can one use a android.os.Handler to defer actions? Sep 20 21:14:30 fullstop: defer to when Sep 20 21:14:45 down the road. ;-) Sep 20 21:14:54 fullstop: how down? after onDestroy? :p Sep 20 21:14:58 no, I want to call handler.postDelayed(runnable, ms); Sep 20 21:15:05 no, during the lifecycle of the service Sep 20 21:15:13 then yes, you already know that's possible :p Sep 20 21:15:32 Yes, I think that it should be possible.. and I've written it. Sep 20 21:15:40 but the runnable never gets called. Sep 20 21:15:44 Afzal: what about if we fight for him? Sep 20 21:15:53 Arancio: no need, you can have him Sep 20 21:16:28 wait, jolie has more money, right? :p Sep 20 21:17:01 fullstop, did you set the looper? or did you get your handler from ui thread otherwise? Sep 20 21:17:03 don't they have like 20 kids ? Sep 20 21:17:10 that might be the cause why your runnable is not triggered Sep 20 21:17:16 just 6 Sep 20 21:17:19 oh shit, *I* will have to pay support for that? Sep 20 21:17:24 no right? Sep 20 21:17:31 adq: I did not. I didn't see that in the example I was following. Sep 20 21:17:38 ah true, good catch adq Sep 20 21:17:46 There is no ui-thread; just an activity which starts the service and then finishes. Sep 20 21:18:02 fullstop: A service runs on UI Thread Sep 20 21:18:07 or main thread rather Sep 20 21:18:16 unless it's IntentService, which runs in a background thread Sep 20 21:18:24 no, it extends Service Sep 20 21:18:44 Is it safe to call Looper.getMainLooper() in this case? Sep 20 21:18:51 yeah Sep 20 21:19:07 Is this within the UI context? Sep 20 21:19:32 that is, should I be extra careful to not block here? Sep 20 21:20:25 always be extra careful, but maybeyou can take another approach and use a one-shot alarm delayed between "now" and the moment you want to trigger what you need Sep 20 21:20:26 A Service is not a thread. It is not a means itself to do work off of the main thread (to avoid Application Not Responding errors). Sep 20 21:20:38 ^^ quote docs Sep 20 21:21:00 I'm not doing significant work in these deferred actions. Sep 20 21:21:06 let me give this a shot Sep 20 21:22:03 do you need to run something even if your app is not visible/in front of the user? if no, you could just do that in one of your activities and don't need to externalise some simple task in a service Sep 20 21:22:23 fullstop: here try this : https://newfivefour.com/android-service-handler-tutorial.html, if you wanna do it in the background Sep 20 21:22:24 from reading the documentation of Handler, it doesn't look like this should be required. Sep 20 21:22:31 with a looper Sep 20 21:23:17 but then be careful with posting at a really high frequency, it might become a bottleneck too Sep 20 21:24:44 naw, this is either 30 seconds or 10 minutes down the road. Sep 20 21:26:43 well, it didn't fire. Sep 20 21:26:48 hehe Sep 20 21:26:53 logcat doesn't have anything? Sep 20 21:26:59 is your service in the manifest? :P Sep 20 21:27:42 the service starts and I can catch breakpoints in the debugger Sep 20 21:27:46 oh ok Sep 20 21:28:10 Everything about the service works with the exception of the Handler. Sep 20 21:28:37 :| Sep 20 21:28:40 hmm, sharing the code snippet might help, where are you called handler.post? Sep 20 21:28:43 fullstop, what did you give as "ms" delay? Sep 20 21:28:48 (could be a simple mistake) Sep 20 21:28:58 for testing, 60000 Sep 20 21:29:01 so, one minute Sep 20 21:29:06 ok so in 1 minute, basically Sep 20 21:29:19 onStartCommand or onCreate? Sep 20 21:29:34 onStartCommand Sep 20 21:29:41 hmm, this should work :/ Sep 20 21:29:58 There's nothing complicated in here, really. Sep 20 21:30:08 prove it, show code Sep 20 21:30:13 yeah lol agree Sep 20 21:30:20 haha, I'll need to sanitize. Sep 20 21:30:34 * g00s hands fullstop some bleach Sep 20 21:31:08 I mean isopropyl would've worked just fine Sep 20 21:31:23 or ethanol if you wanna have it edible Sep 20 21:31:38 @adq Here's what it's doing when it gradle hangs: http://pastebin.com/YeUHrLVS Sep 20 21:31:39 anything android related requires bleach Sep 20 21:31:57 oh okay, I see it lost all the colour ;) Sep 20 21:32:00 maybe isopropyl is ok with swift code :D Sep 20 21:32:31 Affian: kill the daemon? Sep 20 21:33:03 @Afzal I can kill it, but if I try and run the tests again, it just does the same thing Sep 20 21:33:40 hmm Sep 20 21:34:02 ignore any odd bugs surrounding the handler code as I've been completely unable to test them Sep 20 21:34:03 http://pastebin.com/raw/ps2nzzGr Sep 20 21:34:23 and it may or may not compile due to some sanitation. Sep 20 21:34:50 line 135 is confirmed to be true? Sep 20 21:35:37 yes Sep 20 21:35:54 it connects to the queue Sep 20 21:36:27 and I can send it messages through the queue and it receives them. Everything works except for the Handler. Sep 20 21:38:09 Is there a better method for timers such as these? Sep 20 21:38:31 did android studio 2.2 change the font!? Sep 20 21:38:37 or something to do with fonts Sep 20 21:38:44 is mqttAndroidClient = new MqttAndroidClient(this, "ssl://noway", uid); serial or async? Sep 20 21:38:57 I'm not all that familiar with Android and do 99% of my stuff in C Sep 20 21:39:09 whatitis: it's async Sep 20 21:39:22 I'm pretty sure that the android paho client is _only_ async. Sep 20 21:39:44 on more than one occassion, my counterpart on the iOS side has said, Android must be a bitch because of the fragmentation. But I think I am winning cause more than a few times he has cursed silently for the things Android does natively that he has to do by hand in iOS Sep 20 21:39:46 https://eclipse.org/paho/clients/android/ Sep 20 21:39:50 collapsible header anyone :) Sep 20 21:39:56 then, in disconnectTask mqttAndroidClient =... may not have finished making it !=null == null Sep 20 21:40:01 yep, no blocking API exists Sep 20 21:40:28 i dunno, they get to use swift, while we’re still stuck with ancient java Sep 20 21:40:28 fullstop paho as 2 async apis, and 1 blocking 1 if i recall Sep 20 21:40:44 oh they removed the blocking one? interesting Sep 20 21:40:45 g00s: not the android version, at least according to the documentation Sep 20 21:40:59 oh yeah, ugh. i remember talking to them about that Sep 20 21:41:09 i would just use the raw paho client, not their android shit Sep 20 21:41:38 whatitis: it exists. Sep 20 21:41:50 fullstop you know that you can't receive mqtt messages any more when your phone sleeps, right ? that used to be possible ... Sep 20 21:42:11 I can set a breakpoint or log stuff in the disconnect handler and it never happens. Sep 20 21:42:19 g00s: for my task, this is acceptable Sep 20 21:42:37 g00s: it will be running on a device which never sleeps. Sep 20 21:42:38 also going through the paho code itself, was pretty nasty ibm-styled java 1.2 crap Sep 20 21:42:40 then disconnectTask is getting executed, and your handler works Sep 20 21:43:08 you've either misunderstood what I've written or I've explained it poorly. Sep 20 21:43:14 yeah Sep 20 21:43:18 I can put logging in the disconnect task and it does not log. Sep 20 21:43:30 you just said it exists in disconnectTask Sep 20 21:43:45 but wasn't your question why the handler wasn't workin? Sep 20 21:44:06 Poor wording on my part Sep 20 21:44:10 ... Sep 20 21:44:27 it's never null is what I was trying to convey. Sep 20 21:44:53 it'd only be null if mqttAndroidClient = new MqttAndroidClient(this, "ssl://noway", uid); returned null Sep 20 21:45:10 Yes, but I know this is not true as I can send it messages. Sep 20 21:45:25 so debug the MqttAndroidClient code Sep 20 21:45:30 not the service Sep 20 21:45:42 and mqttAndroidClient.setCallback(this) does not throw an exception. Sep 20 21:45:49 It's not null. Sep 20 21:46:00 why would it if it isn't null Sep 20 21:46:00 fullstop take it up with the paho guys maybe Sep 20 21:46:06 that code was crap, good luck :) Sep 20 21:46:26 show the mqttAndroidClient code Sep 20 21:46:35 I'm not sure how the paho stuff is even related to my problem. Sep 20 21:47:43 I have an instance of it in my service which should definitely not affect the Handler Sep 20 21:48:15 I can comment out the client creation and see if that makes a difference. Sep 20 21:48:32 the MqttAndroidClient class show that code. it seems to be the issue Sep 20 21:50:26 https://github.com/eclipse/paho.mqtt.android/blob/master/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/MqttAndroidClient.java Sep 20 21:51:29 I've removed everything called from the service except for creating the handler. Sep 20 21:53:17 setCallback() doesn't have a throws for exception, only the connects and disconnects Sep 20 21:55:10 yes, but if new MqttAndroidClient(this, "ssl://noway", uid); returned null, .setCallback would be a npe. Sep 20 21:55:39 false Sep 20 21:55:43 @Override Sep 20 21:55:44 public void setCallback(MqttCallback callback) { Sep 20 21:55:44 this.callback = callback; Sep 20 21:55:44 } Sep 20 21:56:02 but you said that constructor doesn't return null i mean Sep 20 21:57:15 I'm not following you. Sep 20 21:57:20 and that constructor just sets class variables, it won't return null Sep 20 21:57:39 line 235 of that class Sep 20 21:57:41 so there's no way for it to be null, yes? Sep 20 21:57:46 right Sep 20 21:58:06 it doesn't do anything but set instance variables Sep 20 21:58:15 .connect method is where the magic happens Sep 20 21:58:22 I don't believe this will affect anything with a Handler Sep 20 21:58:23 after you intialize the class Sep 20 21:58:58 the handler works fine, it's your interpretation of creating the class instance that is confusing you Sep 20 22:02:15 can do MqttAndroidClient mqttAndroidClient = new MqttAndroidClient(null,null,null); and it'll still not error til you mqttAndroidClient.connect.... Sep 20 22:02:26 I understand that much. Sep 20 22:03:14 How does this tie to the Handler? Sep 20 22:05:08 you just said the handler works.... whatitis> then, in disconnectTask mqttAndroidClient =... may not have finished making it !=null == null/fullstop> whatitis: it exists./ Sep 20 22:05:32 if disconnectTask is getting ran then the handler is running it Sep 20 22:05:37 No, I said the handler does not work. Sep 20 22:06:16 in fact, I believe that I stated that everything works with the exception of the handler. ? Sep 20 22:07:08 where, and how did you test that everything works Sep 20 22:07:56 by everything, of course, I mean that I can deliever messages through the queue and have htem received on the device. Sep 20 22:08:22 the only piece not working for me is the handler callbacks. Sep 20 22:09:02 there is no callback from handler, you are just getting the main looper and posting the runnable Sep 20 22:09:21 which is the disconnectTask runnable Sep 20 22:09:35 Yes, sorry, C slipping in. Sep 20 22:09:48 are there any nice loaders that basically shows on top of an activity until something is loaded? Sep 20 22:09:54 should just take a moment to re figure your question Sep 20 22:11:17 are you talking about the mqttAndroidClient.setCallback? Sep 20 22:11:21 NO Sep 20 22:11:31 I am talking about handler.postDelayed(disconnectTask, DISCONNECT_TIMEOUT); Sep 20 22:11:41 the mqtt callbacks work just fine. Sep 20 22:14:57 just a quick observation, do you see how many times you are doing handler.removeCallbacks(disconnectTask); in your code? maybe race issues Sep 20 22:15:30 perhaps Sep 20 22:15:45 although I always re-add it after removing it. Sep 20 22:16:00 so even with a race, the last thing to happen would be re-adding it Sep 20 22:16:42 readding a new that may get removed when new ones are added, how quickly are they msgs coming Sep 20 22:16:57 i'll need to pause hahah, i'm confusing myself with it all :) Sep 20 22:17:24 messages are very infrequent Sep 20 22:17:42 add some log.Xs and see what's happen each step if debugger isn't workin Sep 20 22:19:57 start with onStartCommand, then if (intent.getAction().equals("update")) {, then init(intent.getStringExtra("uniqueID")); etc. and maybe post that logcat Sep 20 22:20:36 I rebooted the device and now the runnables are running. This doesn't exactly exude confidence. Sep 20 22:20:49 hahaha Sep 20 22:20:51 :) Sep 20 22:20:55 I hate shit like that Sep 20 22:22:20 trying without Looper.getMainLooper() Sep 20 22:22:41 since it looks like new Handler() should use the looper of your current context. Sep 20 22:23:02 boom, it worked Sep 20 22:25:21 anyway, the rest of this is a 9 AM problem. Thanks for poking at it with a stick with me. Sep 20 22:25:46 think maybe with getMainLooper you also have to do some Looper.loop() or something weird too Sep 20 22:26:09 was always wondering why you got mainlooper when service runs on ui thread anyways hahha Sep 20 22:26:25 I almost added a thread but that seemed like such overkill when I really just wanted a timer. Sep 20 22:26:51 cool, well good luck with ya :) Sep 20 22:26:55 thanks Sep 20 22:30:50 Hey guys, anybody know if it's possible to detect all Android devices on a wifi network? Sep 20 22:31:24 can you have multiple intents per AlarmManager? Sep 20 22:31:35 can maybe get quite a few by OS Fingerprinting the MAC addresses Sep 20 22:31:57 or whatever they do Sep 20 22:32:10 I'm mainly trying to detect devices on the wifi and allow connectivity between them Sep 20 22:32:19 Is that possible? Sep 20 22:32:19 i know my router shows most android device hostnames as android-XXXXXXXXXXXXXX Sep 20 22:32:40 Doesnt the nearby api have some sort of functionality similar to that? Sep 20 22:33:32 can maybe setup some kind of broadcast, of wifi p2p stuff Sep 20 22:33:41 or* Sep 20 22:34:06 wifi direct connect is what i was thinkin for that second part Sep 20 22:34:07 Can I do it if I have the local IPv4 for the device? Sep 20 22:34:25 sure if there is a server/client protocol setup for communication Sep 20 22:34:46 this is what you do when you're at the end of your wits: Use reflection to freakin access whatever you want Sep 20 22:34:47 just use Socket and ServerSocket Sep 20 22:34:57 I suppose I can use sockets Sep 20 22:35:03 just didnt know if Android had anything more powerful Sep 20 22:35:10 you mean easier? Sep 20 22:35:14 yeah Sep 20 22:35:22 haha i'm sure there are libraries Sep 20 22:35:30 Also my IDE is saying that aapt.exe finished with non exit value 1. Sep 20 22:35:34 Anybody know a fix? Sep 20 22:35:38 atleast not -1 Sep 20 22:49:30 hey orbyt_ Sep 20 22:49:34 why does every company that writes a json parser claim it's the fastest? Sep 20 22:49:44 I'd been reading up and familiarizing myself with RxAndroid Sep 20 22:49:50 cause it’d be pretty silly to write one that is slower Sep 20 22:49:58 Check out my use of .zip please https://gist.github.com/bsodmike/d0d664e56dc1091319e1cb24b7c178c5 Sep 20 22:50:24 of course, in that example the 'second' call, would be a different API call :) Sep 20 22:52:26 michael_mbp: does it work as expected? Sep 20 22:53:08 orbyt_: it does Sep 20 22:53:41 nice michael_mbp Sep 20 22:53:51 thanks Afzal Sep 20 23:03:32 s73v3r: interestingly, reflection based JSON parsers can’t ever be "the fastest", though Sep 20 23:04:29 You might remember that I did an RPC framework on android for Qt’s signals, and after looking at profiling results, 95% of processor time for every call was spent in Class::getDeclaredMethod Sep 20 23:04:48 building an annotation processor equivalent of Qt’s MOC reduced that to 2% Sep 20 23:05:01 so, yeah, reflection on Android is horribly slow Sep 20 23:06:28 s73v3r: just using reflection to get the internal json byte array lol, not to resolve fields Sep 20 23:06:54 oh wait, he didn't talk about reflection lol Sep 20 23:11:29 Afzal: he did talk with you about json parsers Sep 20 23:11:47 so I mentioned the topic of reflection based json parsers, which is how most of them started Sep 20 23:11:54 Gson still is reflection based even, afaik Sep 20 23:12:59 hey everyone Sep 20 23:13:11 kinda cool how MS just has articles on general patterns https://msdn.microsoft.com/en-us/library/dn568103.aspx Sep 20 23:13:27 would have been nice if Google / Android did that too Sep 20 23:13:36 Slightly on topic: Best Design Patterns book, or at least Best Java Design Patterns book? Sep 20 23:13:55 looking to develop an app for android, wondering if there's a particular resource that is commonly regarded as a good place to start or if I should just go for whatever suits my fancy? Sep 20 23:14:16 for the most part, whatever suits your fancy Sep 20 23:14:27 End goal is a tamogatchi-style app, nothing crazy. I have experience with development just not for android specifically Sep 20 23:14:29 we recommend the Udacity course, and the Big Nerd Ranch book Sep 20 23:14:41 s73v3r hm, tough one. for idiomatic java i guess "Effective Java" Sep 20 23:14:51 Ok cool, I'm familiar with Udacity. I'll check out the Big Nerd Ranch right now Sep 20 23:15:00 but for /patterns/ ... not sure. head first is like cartoons Sep 20 23:15:05 yeah Sep 20 23:15:30 I bought head first a few years ago when I was 16, is silly. If anyone wants it and is near hamburg, I’ll give it away, btw Sep 20 23:15:38 g00s: in a good way? Sep 20 23:16:16 justJanne: right, fair I see. I thought it had something to do with me using reflection and also complaining about json parsing Sep 20 23:16:58 s73v3r its a tricky subject. GoF book is kinda outdated, according to the authors. and they are not updating it Sep 20 23:17:21 where you see success is patterns applied to specific domains, like enterprise architecture, enterprise integration, etc Sep 20 23:17:35 but for general Java ... Sep 20 23:18:06 i can't think of anything really Sep 20 23:18:07 s73v3r: I can try to get you a list of patterns you should look at from university textbooks I’ve got on my desk, but you’d have to wikipedia each of them then seperately Sep 20 23:18:20 I can’t provide actual text on how to implement due to copyright Sep 20 23:18:34 i’ve got the wiki article on design patterns up already, but thanks Sep 20 23:19:16 i guess if you think that tehre’s a couple it doesn’t list that’d be nice to know? Sep 20 23:19:38 a lot of them, you already do Sep 20 23:19:43 justJanne: excerpt should be fair use Sep 20 23:20:02 s73v3r some of the more interesting are Visitor, Flyweight maybe Sep 20 23:20:34 Afzal: not if I copy 200 pages Sep 20 23:20:39 oh lol Sep 20 23:23:19 Is 4 lines of about 30-40char each enough to require a pastebin? Sep 20 23:23:47 Well, anyway, s73v3r, look at least at these patterns: https://paste.kde.org/ptkwtumau Sep 20 23:24:06 thanks Sep 20 23:24:07 JustJanne: If you have to think about it, just pastebin it :P Sep 20 23:24:07 stuff is partially translated from German, I hope it matches the english names, should actually Sep 20 23:24:17 orbyt_: how can I still access the OkHTTP response via `Observable.zip()`? Sep 20 23:24:47 Also definitely look at where Java Beans came from, their ripples still continue in the Java ocean Sep 20 23:27:32 you likely have used most of the patters before already Sep 20 23:27:56 but looking at the formal definition can often be helpful, too Sep 20 23:29:47 yeah. I know many of them. i was just looking for inspiration for a way to solve something Sep 20 23:30:00 or rather, just deal with something Sep 20 23:31:37 then this might be a bit more helpful? http://i.imgur.com/eU0Xpwf.png Sep 20 23:31:58 overview of patterns and what they do and where they’re used in relation to each other Sep 20 23:32:18 that does look interesting. thanks Sep 20 23:33:25 what’s it what you’re trying to do anyway? Or maybe are you trying to find patterns on an abstraction level above these? Sep 20 23:33:44 invasive analytics tracking to serve ads Sep 20 23:33:54 hm Sep 20 23:34:22 no, it is analytics, though Sep 20 23:34:43 that sounds like the typical "achievement" concept, where you’d end up setting up a special event bus, and send events at any moment, and the receiver filters them and handles them Sep 20 23:35:00 basically, I’m trying to come up with something so that I can abstract away the analytics providers Sep 20 23:35:11 ah, okay, that is interesting Sep 20 23:35:22 so, a facade then simply? Sep 20 23:35:36 i have the facade in place. Sep 20 23:35:50 the problem is that not every event should go to every provider Sep 20 23:36:04 ah Sep 20 23:36:08 and unfortunately, some of the providers have different names for the same event Sep 20 23:36:22 well, you’re already having providers, you’re already having consumers, you already have events... Sep 20 23:36:49 i had a facade that had a switch based on an enum of the name. but now the names can be dynamicly created Sep 20 23:37:09 well, that’s simple Sep 20 23:38:07 and you now want to just be able to declare "this class can handle events", and have it automatically handle that? Sep 20 23:38:15 well, that does smell like dependency injection Sep 20 23:40:19 well, up until now, I had assumed the names were constant, and I could use that to decide which events went to which thing Sep 20 23:41:43 Anybody know how I can get 2 emulated devices to have differnet IP addresses? Sep 20 23:42:03 I'm trying to test sockets and naturally I need different IPs, but my emulator gives them the same one. Sep 20 23:42:18 i believe you can tell the emulator to use a certain IP address Sep 20 23:42:24 you could before, anyway Sep 20 23:42:56 Im using Genymotion Sep 20 23:43:35 oh. then look up how to get VirtualBox to use static IP Sep 20 23:45:46 apparently Genymotion uses Network>Adapter 1 internally, so anything you want to do should be done to Network>Adapter2 Sep 20 23:46:42 s73v3r yeah, analytics. its kinda like logging, or sometimes security - a policy thats spread around the code base (cross-cutting concerns) https://en.wikipedia.org/wiki/Cross-cutting_concern Sep 20 23:47:17 s73v3r you can probably use some of the AOP tooling Sep 20 23:47:31 AspectJ .. but thats getting kinda serious, have to be pretty comitted Sep 20 23:47:36 not sure its worth it honestly Sep 20 23:47:45 Analytics are a bit meh in general Sep 20 23:47:50 maybe. I have something set up, but it seems like there are a few more things that the analytics guys want to be able to do Sep 20 23:47:59 you just increase the haystack, 90% of the time, Sep 20 23:48:05 it doesn’t help that analytics on the web are so easy and fluid Sep 20 23:48:10 instead of making it easier to find the needle, but harder Sep 20 23:48:11 whereas on the device, they’re not Sep 20 23:48:45 s73v3r: well, you could create a custom base class instead of AppCompatActivity that automatically tracks every button clicked, every fragment replaced, etc Sep 20 23:48:56 we don’t need that just yet Sep 20 23:49:15 and we already have a custom activity base that is doing way too much as is Sep 20 23:49:37 I’ve done some similar stuff to automagically handle binding to service, loading custom themes, etc Sep 20 23:50:08 I’ve thought about moving it all to annotation processors, though Sep 20 23:50:50 s73v3r the way i did analytics events (if you're doing firebase, they are just events, not page flows) - is i chuck them on an event bus. I only use the bus for analytics Sep 20 23:51:04 I’ll go and drink something, I’m so dehydrated, I’m only rambling random stuff Sep 20 23:51:11 i didn't want any coupling to analytics in most of my code ,so that just decouples it Sep 20 23:51:34 the code is coupled to the bus, though ;( Sep 20 23:51:35 meh Sep 20 23:51:45 there is no good way around it, its all meh Sep 20 23:52:15 that’s not where I’m having trouble thinking. It’s more in trying to get everything that all the different providers need, without really coupling which providers are at which event Sep 20 23:52:38 s73v3r: that’s why you let each provider register to events themselves Sep 20 23:52:45 then it’s only coupled in the provider class Sep 20 23:52:50 and not anywhere else Sep 20 23:55:11 Anyone ever seen anything like this? https://reports.kuschku.de/bug/show/24326 Sep 20 23:55:35 java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TestActivity" on path: DexPathList[[zip file "/data/app/com.iskrembilen.quasseldroid-1/base.apk"],nativeLibraryDirectories=[/data/app/com.iskrembilen.quasseldroid-1/lib/x86, /vendor/lib, /system/lib]] Sep 20 23:55:57 why is it looking for TestActivity in the support library? Sep 20 23:56:05 Wondering if I could get some layout advice. I have something along the lines of a root framelayout, with a surface view that has top and bottom padding so I can add UI controls. I'm thinking for the UI controls, for the top part I have relativeLayout > above surfacePreview, and then everything in a horizontal linear layout Sep 20 23:56:18 is there a better way to achieve what I'm trying to do? Sep 20 23:56:23 s73v3r: I don’t know? There’s no reference to TestActivity in any of my code. Sep 20 23:57:00 is this a user, or you testing? Sep 20 23:57:02 Faizan: why do you need relativelayout for ui controls? Can't use a horizontal linearlayout? Sep 20 23:57:06 s73v3r: this is a user Sep 20 23:57:25 I can Afzal but I need controls above AND below the surface preview Sep 20 23:57:34 I could use 2 linear layouts and just use gravity Sep 20 23:57:34 me testing would be in another project. I really need to improve the UI still Sep 20 23:57:47 which thinking about it is probably cleaner Sep 20 23:58:03 Better to do that, flatter hierarchy. Sep 20 23:58:14 you don't even need gravity I think Sep 20 23:58:18 Yeah didn't think of it until you questioned my doing lol, thanks Sep 20 23:58:19 it’s one person. are you able to reproduce, or reach out to them?? Sep 20 23:58:29 hmm how else could I specify the positions Sep 20 23:58:32 justJanne: Note that Google has a few results for "android.support.v7.widget.TestActivity". Is any of those relevant? Sep 20 23:58:50 linearlayout -> controls, surfaceview, controls (?) Sep 20 23:59:26 welp, time to go to work on Couchbase lite's source code Sep 20 23:59:29 screw this Sep 20 23:59:34 So root linear layout, then linearlayout > controls, surface, linearlayout > controls again Sep 20 23:59:49 right Sep 20 23:59:51 that could work Sep 21 00:00:06 you could try a Toolbar Sep 21 00:00:08 I've been trying to do it with frame thinking it was the best way Sep 21 00:00:19 frame for overlapping Sep 21 00:00:19 LinearLayout->Toolbar, Surface, Toolbar Sep 21 00:00:26 with linearlayout, they wont overlap Sep 21 00:00:30 yeah exactly Sep 21 00:00:49 they were overlapping first till I realized the UI was difficult to read and then created a black frame on top and bottom Sep 21 00:00:51 looks cleaner Sep 21 00:00:52 heya guys, I am trying to get requestPermissions working, but for some reason the dialog is not showing up on MM, even though it's in the manifest, as well as requested in code Sep 21 00:00:53 and yeah I think I agree with s73v3r, way easier to deal with Toolbar Sep 21 00:00:53 any ideas ? Sep 21 00:01:03 let me look into toolbars, appreciate the suggestions guys :) Sep 21 00:01:05 Tusker: logcat? Sep 21 00:01:47 i don't see anything using the standard app filter, let me remove the filter in case it's logging externally Sep 21 00:02:59 Tusker, I did something like this nasty mess once https://puu.sh/rikLJ/5631f4f31e.png Sep 21 00:03:00 TacticalJoke: looks like that’s just the Google Play Bouncer Sep 21 00:03:07 so nothing to worry about Sep 21 00:04:27 system memory of 0M, emulator, fingerprint of "google/aosp_cdrnemu_x86/cdrnemu-x86:6.0.1/MMB29U/tassadar04131820:user/test-keys" but "is_debuggable" of false, claims to be a Nexus 4 Sep 21 00:04:32 cbot: why not request both permissions together? Sep 21 00:05:06 God Afzal I wish I could tell you but I don't remember what I was doing Sep 21 00:05:13 hah no worries Sep 21 00:05:19 it has been a year since I've looked at it lol Sep 21 00:05:42 and don't Android permissions fail gracefully so that location call would return something empty but not null if the permission isn't granted Sep 21 00:05:58 so theoretically, would be nice to just handle permission on activity start? Sep 21 00:06:14 Afzal: http://pastebin.ca/3720469 Sep 21 00:06:15 wellllll. I mean technically this is better though Sep 21 00:07:08 Afzal: I can see that the permissions activity is started, but nothing shows Sep 21 00:07:50 Tusker: are you using a negative value as request code? Sep 21 00:07:55 like I said Afzal god knows wtf I was doing Sep 21 00:08:00 101 Sep 21 00:08:09 TacticalJoke: yup, two users sent the report, one from Google’s network, the other from http://whois.domaintools.com/212.4.138.185 (AVG Technologies – the virus scanner thingy) Sep 21 00:08:12 cbot: just kinda thinking lol Sep 21 00:08:21 so, the two crashes only occur from virus scanners or the bouncer Sep 21 00:08:22 lol Sep 21 00:08:47 dunno Tusker :// Sep 21 00:08:58 what a weird thing Sep 21 00:09:09 don't think too hard on my 3 hour project Sep 21 00:09:23 I had to write some shit for some company interview last minute Sep 21 00:09:46 heh Sep 21 00:10:01 in other words, I found by accident a reliable way to find out if my app is running in a sandbox from AVG Sep 21 00:12:23 this time I see a "java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@c813f4b does not exist" Sep 21 00:18:03 After years apart, Courier New and I are reunited. Sep 21 00:18:12 ew Sep 21 00:21:18 TacticalJoke lol Sep 21 00:21:32 actually i'm using Roboto Mono Light Sep 21 00:23:25 I thought you hated Android, g00s. :D Sep 21 00:23:49 i use that as my programming / editor fonts on terminal, console, etc Sep 21 00:23:54 the Fixed width font is OK Sep 21 00:24:25 i liked it because it has different weights, for some reason on OS X when you have inverse text - the AA is thicker Sep 21 00:24:27 bitstream vera sans mono <3 Sep 21 00:24:36 I've been using Consolas for years in VS/Eclipse/IntelliJ/AS. But I was a Courier New guy for years before that in Delphi and so on. Sep 21 00:24:45 heh i tried that, Proggy, Consolas Sep 21 00:25:40 Can anybody here recommend some good libraries that allow color picker widgets? Sep 21 00:25:41 TacticalJoke the Windows Phones aren't dead :D Sep 21 00:25:52 Lumia is gone, but I guess Surface Phone is next Sep 21 00:26:01 Is surface phone a thing? Sep 21 00:26:02 Check out this quote from HN: "Same situation here, except that it's Courier New that I always return to." Sep 21 00:26:04 This guy gets it. Sep 21 00:26:24 TacticalJoke isn't there Comic Sans Fixed or something :P Sep 21 00:26:28 g00s: Should we expect them to die? I haven't been keeping up with WP news. Sep 21 00:26:40 yeah they have been doing poorly Sep 21 00:27:03 sadly Sep 21 00:27:05 There was someone on Reddit seriously arguing in favour of using Comic Sans for programming. Another advocated Arial. Sep 21 00:27:08 Android needs more competiion Sep 21 00:27:09 empty catch statements in internal json parsing code in a db library Sep 21 00:27:10 wow Sep 21 00:27:20 g00s, it does, but WP wasn't very good Sep 21 00:27:30 from my point of view anyway Sep 21 00:27:47 * g00s hugs his Lumia 521 Sep 21 00:28:03 I didn't like developing for it at all either Sep 21 00:28:06 the app selection was terrib;e Sep 21 00:28:18 the big name apps, like weather channel, were terrib;e Sep 21 00:28:35 which version, 7, 8x, or newest ? Sep 21 00:28:46 all of them Sep 21 00:28:49 font doesn't matter for programming... as long as it's fixed width, sans-serif except to distinguish i/I/l/|, 0/O, and a long list of other requirements :P Sep 21 00:29:00 wrow removed dagger and build time got down to 6s (from 40) Sep 21 00:30:08 LOL Sep 21 00:30:23 bitkiller: maybe need a faster computer to process all those annotations compile-time :p Sep 21 00:32:21 g00s: Which desktop OS and which phone OS will be big in 20 years from today? Sep 21 00:32:28 mobile skylake i5 ssd 8gb ram Sep 21 00:32:49 Wait, maybe we won't have desktops. Sep 21 00:32:53 TacticalJoke: trick question, we will be using sticks & stones after WW3 Sep 21 00:33:21 TacticalJoke i think they will be the same, everything will converge into A/R UIs + projecting UIs on inanimate objects Sep 21 00:33:33 Ah, that's true. Sep 21 00:33:56 like that demo that shines a keyboard anywhere Sep 21 00:34:29 virtual keyboards are terrible, I need to touch feedback Sep 21 00:34:42 i was just using that as an example ... Sep 21 00:34:49 How can I change the minSdkVersion when I'm running tests? Sep 21 00:34:51 sure, I was just commenting :) Sep 21 00:34:54 :D Sep 21 00:35:04 i'll be disappointed if we don't have neural interfaces Sep 21 00:35:15 * Zharf zzz Sep 21 00:35:20 TacticalJoke the question is, in 20 years from now, will google and fb control everything and predict our behavior Sep 21 00:35:25 I'd be scared of people seeing my cranial output. Sep 21 00:35:30 will we be slaves to AI Sep 21 00:35:35 :D Sep 21 00:35:43 but tech innovation has slowed down quite a bit, so i expect neural input's more than 20 off, even though it should be more like 1-2 :( Sep 21 00:36:03 I want to get rid of having to use multidex during tests, so I need the minSdkVersion to be 21+ but the released codebase goes back to 14 Sep 21 00:36:24 zinx hm, maybe - so much is still unknown about how the brain works. was just reading yesterday, your brain has connections to the adrenal medula Sep 21 00:36:28 like lol, wat Sep 21 00:36:54 g00s: i don't think there's a single system in the human body that we fully understand Sep 21 00:36:56 wait i got that wrong, one sec Sep 21 00:37:41 g00s: No, we'll all be monitored by psychopath-pass systems. Sep 21 00:37:50 Err pass not path ;) Sep 21 00:37:54 yeah the frontal cortex is connected to the adrenal medula, the part responsible for motor control Sep 21 00:38:21 What I figure is WWIII starts over encryption Sep 21 00:38:24 they find this out, sadly, by infecting monkey with rabies and follow its progression up the nerves Sep 21 00:38:27 g00s: look at where we were 20 years ago, and then project that change int the future. Sep 21 00:38:52 This is why it's crazy to claim we have free will. How can we claim to be the authors of our intentions when we are clueless about how the intention system even works? Sep 21 00:39:01 20 years ago, we just had windows 95, shitty computers, butt he Newton was already ages ago Sep 21 00:39:02 justJanne: that was more fun for people that did it 20 years ago Sep 21 00:39:08 Existianal crisis: Check! Sep 21 00:39:21 TacticalJoke i think there is paradox, we don't have free will - but society requires that we believe we do Sep 21 00:39:30 so, in the future, everything will get smaller, more interconnected, software will get more bloated and shitty, Sep 21 00:39:40 we will see more proprietary code, and even less open source Sep 21 00:39:42 http://existentialcomics.com/comic/1 Sep 21 00:39:42 g00s: It's shocking how those scientists don't feel the need to justify those horrible practices. Sep 21 00:39:53 In the next few years, likely everything turns SaaS Sep 21 00:40:01 Naw, you'll see even more OS and CS software Sep 21 00:40:21 alphamule: I don’t think so, in an increasingly SaaSS world Sep 21 00:40:29 We'll have standards... 100's of them that don't work together, then market collapse because 1984 video games. Oh wait Sep 21 00:40:35 Yeah, according to studies, a lot of people feel the need to believe they possess "the freedom to act otherwise", which is obviously absent. Sep 21 00:40:37 TacticalJoke i read this a few weeks ago you might like http://www.theatlantic.com/magazine/archive/2016/06/theres-no-such-thing-as-free-will/480750/ Sep 21 00:40:42 everything runs on someone’s servers, with no way to access or control them Sep 21 00:40:48 that’s where we’re headed Sep 21 00:40:54 LOL maybe Sep 21 00:41:00 No, seriously Sep 21 00:41:05 look at Parse, Firebase, etc Sep 21 00:41:16 "serverless", it’s called already now Sep 21 00:41:29 even the app developers can’t build a copy of their infrastructure themselves Sep 21 00:41:31 Have you actually seen the kind of software they want to do that with? It's shit that only the patents prevent copying or it's too trivial to care (games). Sep 21 00:41:51 Well, suckers depended on ORacle too during the 1990's Sep 21 00:41:56 alphamule: yes, but no one cares about copying anymore Sep 21 00:41:56 at all Sep 21 00:41:59 And IBM before that Sep 21 00:42:06 It's same ol' story Sep 21 00:42:07 There’s millions of people using Firebase cloud messaging Sep 21 00:42:14 This is not exactly new. Sep 21 00:42:18 Afzal did you see couchdb 2.0 Sep 21 00:42:19 not a single open source implementation of the library for the app Sep 21 00:42:23 not a single fucking one Sep 21 00:42:26 well, now there is one Sep 21 00:42:30 So? Most of the computer industry used timeshares during the 1970's. Sep 21 00:42:38 but before a friend and I did it, there wasn’t one Sep 21 00:42:54 no one cares that they import libs with tons of analytics code, Sep 21 00:43:08 or that they host all their data in a foreign cloud they have no control over Sep 21 00:43:16 Just don't use it, then. This is like complaining that IE/Edge is sucky, then not using SeaMonkey/Chromium/Firefox/etc. Sep 21 00:43:25 alphamule: the issue is, you can’t Sep 21 00:43:33 Well that'll be their achille's heal Sep 21 00:43:36 thanks to Android’s Doze, you HAVE to use Firebase Cloud Messaging Sep 21 00:43:38 on Android Sep 21 00:43:49 When all that shit goes up like the servers in the World Trade Centers, they'll cry. Sep 21 00:43:54 yet, no one, literally, had made an open source library before Sep 21 00:44:05 Same with Firebase In-App Indexing Sep 21 00:44:06 Get bit and be shy for a decade... then a new generation of suckers. Sep 21 00:44:13 you require several closed source libraries for that Sep 21 00:44:37 the first thing tomorrow I’ll do is reverse it all, write a spec, send the spec to someone on the other side of the globe, and let them reimplement it Sep 21 00:44:47 yet no one else cares Sep 21 00:44:49 at all Sep 21 00:45:07 g00s: The studies are interesting. But so many people make the bad argument "Without free will, morality falls apart". IMO, that's absurd. I think basically any conception of morality relates to suffering and joy, and actions still create suffering and joy if there's no free will. Sep 21 00:45:42 Microsoft word used to be proprietary lock-in crap. But now there's LibreOffice that seems to work fine. Sep 21 00:45:51 alphamule: which no one uses anymore Sep 21 00:46:02 instead they all use Google Docs or Microsoft Office365 Sep 21 00:46:05 Microsoft Office? Sep 21 00:46:05 Like Sam Harris says, a grizzly bear is a threat we need to respond to, whether it has free will or whether it's a robot programmed by its genes. We don't need to think up nonsense just so we can justify tranquilizing it (or whatever). Sep 21 00:46:07 Oh Sep 21 00:46:08 haha Sep 21 00:46:29 businesses, except for some idealistic governments in the EU, are all on MSO, Sep 21 00:46:37 most private users use cloud services Sep 21 00:46:48 One could argue that we have a moral duty to take out the grizzly bear even if we, and it, have no free will. Sep 21 00:47:09 A document works just as well being edited on browser as native program... and vice versa. If someone can't save a document to their PC, then THEY're the fool for not actually owning it. Sep 21 00:47:14 The protective systems of society have failed, we have given up our rights to self-determination of our data, ourself. Sep 21 00:47:17 Like I said: New generation of suckers Sep 21 00:47:27 Just to get some things easier Sep 21 00:47:39 Also, imagine someone suing because I write a wrapper that exports it (luckily, this is not needed as you can just save it) Sep 21 00:47:46 there’s this word Sep 21 00:47:51 Lazy? Sep 21 00:47:55 Convenience? Sep 21 00:47:58 Cheap? Sep 21 00:47:59 :P Sep 21 00:48:11 Selbstverschuldete Unmündigkeit Sep 21 00:48:14 as Kant called it Sep 21 00:48:18 fun Sep 21 00:48:33 Alogrithm complexity makes determinism pointless Sep 21 00:48:48 realised I needed to return these as Observable> so as to gain access to the OkHttp response itself. Sep 21 00:49:01 It's like those theories that the universe is really 2D. Sep 21 00:49:03 Self-imposed Unmündigkeit - you chose not to have the right to make decisions for yourself Sep 21 00:49:15 Oh, you mean imbe-err nvm :P Sep 21 00:49:23 Though there is the very real effect of people becoming demotivated (and the other stuff mentioned in the article) when they don't believe they have free will. Sep 21 00:49:37 Obliviated Sep 21 00:49:44 And not in the Harry Potter sense Sep 21 00:49:44 The solution is "Stop committing reasoning errors", but it's hard to get them to do that. Sep 21 00:49:47 TacticalJoke: i suppose i don't see any point in acting any other way than having free will - if you don't have it, then it doesn't matter, you have to think you have it anyway. if you do have it, you're right goddamnit :P Sep 21 00:50:23 Even better than fate and determinism: The idea that the universe doesn't have time at all. Sep 21 00:50:30 There is no past or future. Sep 21 00:50:42 alphamule: google "arrow of time" Sep 21 00:50:54 5-minute universe Sep 21 00:51:02 Taken to extreme Sep 21 00:51:51 Universe being only a very thin slice of time, roughly equivalent to distance between quarks in a nucleus or smaller even. Also, circular definition. ;) Sep 21 00:52:06 Distance requires time in modern physics Sep 21 00:52:35 I mean, we can go full-blown. Sep 21 00:53:12 Go read New Kind of Science for just how reductionist you go. Sep 21 00:55:11 TBH, I don't see many people using even 1% of the new features/functionality implemented in Word, since 2000. Sep 21 00:55:51 It's the smart phone paradox, in a way. People mainly need a phone. You can have the best tablet in the universe, but if it has poor reception, people can't use it. Sep 21 00:56:24 the smartphone and tablet world has hit a wall in general Sep 21 00:56:28 Or in terms programmers get: 10% of features, used 90% of the time Sep 21 00:56:34 the set of features most people want is 100% solved Sep 21 00:56:39 Yeah, now they're working on battery life :P Sep 21 00:56:45 what now has to be done is fix the quality of the hardware, Sep 21 00:56:49 stabilize things, Sep 21 00:56:58 and slowly reduce update periods Sep 21 00:57:06 so you don’t have to replace your phone every year Sep 21 00:57:13 Expansion, consolidation cycles hehe Sep 21 00:57:28 Heavens no! We want to keep selling phones every year! Sep 21 00:57:31 actually, a Nexus 7 2012 – my little sister uses one right now – is still faster than most cheap tablets today Sep 21 00:57:31 (LOL) Sep 21 00:57:45 so, slowing hardware and software changes is where we’d usually be headed, Sep 21 00:57:55 and instead improving performance, minimalizing things, etc Sep 21 00:57:57 Next new feature: All phones, all glass, all the time Sep 21 00:58:03 instead we seem to be going the web route: Sep 21 00:58:17 rewrite everything every few years, new design, new framework, Sep 21 00:58:22 Are you over 40? Sep 21 00:58:27 not much better, but we need a rewrite anyway Sep 21 00:58:35 nah, lol, I’m still in uni Sep 21 00:58:39 I’m 20 Sep 21 00:58:44 Haha, well talk to your professors. Sep 21 00:58:50 Ask them about time-share computers Sep 21 00:58:55 Eye-opener Sep 21 00:59:00 I’ve used some ;) Sep 21 00:59:07 for research purposes, those are still a thing Sep 21 00:59:08 It's how Bill Gates got into so much trouble Sep 21 00:59:21 Well yeah, if you need 5000TB of RAM or some shit Sep 21 00:59:21 you can’t use supercomputers like you want, Sep 21 00:59:24 yeah Sep 21 00:59:37 Need it only for equivalent of 1 second of your normal PC Sep 21 00:59:41 But you need all that RAM Sep 21 00:59:49 Or something along those lines Sep 21 00:59:54 Non-scaling problems Sep 21 01:00:11 Not possible to reasonably run it if I/O is a major limitation Sep 21 01:00:13 or need some 5000TFLOP Sep 21 01:00:34 Or you just need to run the same program with random "errors" 100x. Sep 21 01:00:42 *cough*weather sims*cough* Sep 21 01:01:06 not sure what i'm going to do here if from now on, google's most googly devices are going to cost $650 Sep 21 01:01:18 Many parallel computers running actually not too fast, but not efficient to use desktops for it. Sep 21 01:01:34 They have a lot of network bottlenecks Sep 21 01:01:38 g00s: those devices wouldn’t be ideal for most in here anyway Sep 21 01:01:50 True Sep 21 01:01:51 they’ve got a locked bootloader, and don’t work with systemless root Sep 21 01:01:56 they’re Pixel, not Nexus Sep 21 01:02:08 consumer-facing, custom skin (from Google, yet still...), Sep 21 01:02:18 more expensive, and less ideal to develop for Sep 21 01:02:21 I found that $100 DoPo DPW10A and... it's actually probably ideal for a lot of Android rooters, if they can get the OS working. Sep 21 01:02:27 what we’d need would be a good developer device again Sep 21 01:02:35 like the 200$ Nexus 7 was back in the day Sep 21 01:02:54 Also, OS bloat is the name of the game for $700 phones. Sep 21 01:02:58 and coupons would even apply on that thing, and you got 60$ google play credit, and 2 movies of choice Sep 21 01:03:34 I wish most Android tablets let you boot off USB like PC's do. Sep 21 01:03:35 :( Sep 21 01:03:45 alphamule: the Nexus 7 can! Sep 21 01:03:45 No modified OS needed. Sep 21 01:03:48 justJanne yeah ... so what does a developer do then ? Sep 21 01:03:49 there’s a mod that allows that Sep 21 01:03:59 I mean, if it can just boot off a SD card or disk image. Sep 21 01:04:02 g00s: you continue using your existing Nexus, or wait a year longer Sep 21 01:04:13 Get a Note 7 Sep 21 01:04:23 I'm sure they'll drop in price :P Sep 21 01:04:28 i like being able to flash my n7 up and down versions Sep 21 01:04:28 BOOM Sep 21 01:04:33 Flash you say? Sep 21 01:04:38 BOOM Sep 21 01:04:40 *shorts out the batteries* Sep 21 01:05:13 Seriously, too bad you can't just go to any of their official stores/distributors and just exchange the battery pack. Sep 21 01:05:27 From way I hear it, the battery isn't actually the problem. Sep 21 01:05:34 It's a circuit on the motherboard. Sep 21 01:06:14 let's see, changed all library code to LoganSquare from Jackson with regex XD what could go wrong Sep 21 01:06:15 Yeah, there's a mod, but it's not a standard deal. :( Sep 21 01:06:17 let's run the test Sep 21 01:06:23 oh boy, all failed lol Sep 21 01:31:42 I have a time selector, how should I be able to transform that hour:minute in utc? Sep 21 01:32:06 like, I get from the server 12:00 (24h), in pacific timezone that's 5:00 Sep 21 01:32:39 that could be easy by using the hour difference, but in case the number is like 01:00 it will be -6:00 Sep 21 01:32:46 you use the DateFormat thingy alex88 Sep 21 01:32:58 Afzal: nope because I don't have a full date/time Sep 21 01:33:03 just a string with hour:minute Sep 21 01:33:28 that's not a problem. just setHour, setMinutue in it Sep 21 01:33:45 eating otherwise I'd give a better answer Sep 21 01:34:04 no problem, I'll check SimpleDateFormat.. thanks! Sep 21 01:36:30 Is this a developer channel? I want to write an Android app Sep 21 01:36:40 yes it is Sep 21 01:37:15 Whew thank goodness, people called me out for asking in the other chat LOL but ya glad to be here Sep 21 01:37:22 lol Sep 21 01:37:32 acos: I didn't call you out. You asked if it was the developer channel and I said no. :D Sep 21 01:38:19 I considered the "spoonfed" called out thats all Sep 21 01:38:35 But hey all is well Sep 21 01:39:14 acos: Google offers a training guide here: https://developer.android.com/training/index.html Sep 21 01:40:21 I did some stuff a while ago, trying to get back into it. Thanks ya im just trying to do simple math should be easy enough. Sep 21 01:42:12 Ologn some wallpapers http://www.androidcentral.com/google-pixel-teaser-wallpapers Sep 21 01:46:21 LunarEclipse120, don't be a dick Sep 21 01:46:31 " acos: The app development channel is #android-dev. Please don't ask to be spoonfed." Sep 21 01:46:35 what the hell is wrong with you Sep 21 01:46:49 How is that being a dick? Sep 21 01:47:04 I didn't mean that he asked to be spoonfed. I was advising not to do so. Sep 21 01:47:10 Why Sep 21 01:47:12 Sorry it came out wrong. Sep 21 01:47:39 Why did you feel the need to do that Sep 21 01:47:44 what the hell is wrong with cs students Sep 21 01:47:53 so ego-driven Sep 21 01:47:57 no social skills Sep 21 01:47:58 Im a tall and outgoing guy :D Sep 21 01:48:57 cbot, Thanks :D Sep 21 01:48:59 CS students? Sep 21 01:49:07 cs people Sep 21 01:49:08 in general Sep 21 01:49:11 cbot: ##java was always the best example of this. They even had a bot to automate the insults. Sep 21 01:49:14 What are CS? Sep 21 01:49:20 lol TacticalJoke Sep 21 01:49:35 *is CS?: Sep 21 01:49:35 computer science = CS Sep 21 01:49:44 me thinks Sep 21 01:49:47 yes Sep 21 01:49:48 Oh ok. I'm not a computer science student. Sep 21 01:50:00 O.o Sep 21 01:50:01 And I'm not ego driven. Sep 21 01:50:14 lol Sep 21 01:50:25 I was trying to advice to not ask to be spoonfed. If you get spoonfed then you don't learn. Sep 21 01:50:29 Don't start assuming and advising to people things when they ask simple questions Sep 21 01:50:40 He didn't ask anything to make you give advice Sep 21 01:50:54 Don't assume that someone is a computer science student when they aren't. Sep 21 01:51:02 I corrected myself Sep 21 01:51:21 They said they wanted to learn to make an app. They obviously wanted advice. Sep 21 01:51:33 Go re-read what you said Sep 21 01:51:57 As the OP can I quote myself? Sep 21 01:52:00 Now you try to make it sound nice but what you said came off snarky Sep 21 01:52:04 OP delivers boys! Sep 21 01:52:19 cbot: Well I didn't mean it to sound snarky. Sep 21 01:52:49 I'd like to be spoonfed yoghurt by Cara Delevingne. Sep 21 01:52:51 acos: I see you're a fellow redditor. Sep 21 01:53:02 Can Java Lambda be used in Android Dev? Sep 21 01:53:12 LunarEclipse120, Yes, I know how to use the internet tyvm :D Sep 21 01:53:33 acos: That was supposed to be a compliment. Sep 21 01:53:40 so i tried this way https://gist.github.com/alex88/a16d75b95c390683376664e90ad53854 but I still get the same hour:minute Sep 21 01:54:18 LunarEclipse120, Thanks. @all, I will be back when I get my env fired up and I have a few more spefic questions. Sep 21 01:54:25 lockheed: Yeah, with Retrolambda or the not-yet-stable Jack compiler. Sep 21 01:55:41 acos: No problem. Sep 21 02:02:30 oh I'm close with this https://gist.github.com/alex88/13b7db63a4fe93bc6a6148de674dfead Sep 21 02:02:36 I get the time in different timezone Sep 21 02:02:43 however, instead of having 2 am, I have 1 am Sep 21 02:03:01 could be TimeZone.getDefault() doesn't count daylight saving? Sep 21 02:04:28 ok well, I get GMT-7 in phone settings Sep 21 02:04:35 but the hours are moved by 8 hours from utc Sep 21 02:11:10 any idea? Sep 21 02:12:24 TacticalJoke i'm still getting to the bottom of that ... is jake stable or not ? Sep 21 02:12:35 maybe its stable, but you just can't use instant run Sep 21 02:14:54 http://tools.android.com/tech-docs/jackandjill still says "Jack is currently an experimental tool chain", but I guess that might have been written a while ago. Sep 21 02:16:21 has anyone used jack yet? Sep 21 02:16:23 is it faster? Sep 21 02:16:39 Date date = new SimpleDateFormat("yyyy/MM").parse("2016/09"); how can I now retrieve just the month? Sep 21 02:29:14 I updated to the latest Android Studio on my mac. However, when I try to reference a view the IDE is inputting the view id like this. Button btnCalls = (Button) findViewById(R.id.@+id/btnCalls) Sep 21 02:29:32 of course it is throwing an error saying their can't be a / Sep 21 02:29:49 Anyone else experiencing this? If so, what is the workaround? Sep 21 02:33:12 findViewById(R.id.@+id/btnCalls) <- thats not correct at all Sep 21 02:33:24 omit the @+id/ Sep 21 02:33:37 eg. R.id.myViewId Sep 21 02:38:25 when I do the IDE still give a red squiggly line under btnCalls and says that isn't right Sep 21 02:38:30 I know that it is though Sep 21 02:38:50 I submitted a bug report for Android Studio Sep 21 02:39:04 I didn't have this issue until I updated Android Studio earlier today Sep 21 02:51:25 wttttf, there's a mouse in the office! Sep 21 02:51:30 wow, abort mission Sep 21 02:53:39 Afzal does it have a friggin laser on its head ? Sep 21 02:55:15 South park? Sep 21 02:57:57 http://x3.cdn03.imgwykop.pl/c3201142/comment_u7LEyfrdzSYMvuNyo8rt1qHKc7rckvB4.jpg Sep 21 02:59:05 capella-5x http://i.imgur.com/GIsDnyv.jpg Sep 21 02:59:40 gordon_ lol that was good Sep 21 02:59:44 no, they didn't like me first **** ENDING LOGGING AT Wed Sep 21 02:59:58 2016