**** BEGIN LOGGING AT Mon Feb 08 02:59:58 2016 Feb 08 03:01:32 why does Android Studio 1.5.1 for Linux installs platform-tools as 64-bit ELF and never verifies that my OS doesn't support 64-bit ELF binaries ? Do I have to reinstall my OS ? Feb 08 03:01:47 lol another victim Feb 08 03:02:08 matju ... didn't you bring this up a few weeks ago ? Feb 08 03:03:52 nope, i only tried today. Feb 08 03:04:14 yeah, the sdk manager doesnt check that your machine is compatible Feb 08 03:04:38 so, are 32-bit ELF binaries discontinued ? Feb 08 03:04:43 yes Feb 08 03:05:00 * g00s wonders why anyone is using elf-32 now :| Feb 08 03:07:06 I don't know, just old reflex of presuming that some linux apps only support 32-bit mode, and the knowledge that 64-bit mode eats a lot more RAM (especially with interpreted languages). But then, I had not thought about it in a few years when I installed ubuntu on my new computer last summer. Feb 08 03:14:47 downloading ubuntu 64 now... fortunately, I reserved a 32 Go partition for that kind of thing, though I didn't have 64-bit in mind... Feb 08 03:17:37 matju btw this happened to me too - kinda. I was on OS X, and they linked stuff against a new libc i think. And then everything was busted. I filed a bug with them, that they should verify requirements before overwriting stuff - that was 6mos ago Feb 08 03:17:59 i updated from 10.7 to 10.10 on that day Feb 08 03:34:21 g00s: I mostly develop for iOS these days, and Apple does worse than that every time. iOS suggests that I be upgrading it, so I install the new iOS x.y, which then causes XCode to refuse to upload a binary of my app onto the iPhone, because it doesn't know that OS. So then I want to upgrade XCode but then the new version only runs on OSX 10 dot more than I have. And Apple's progress bars always lie. Feb 08 03:35:30 lies, damn lies, and progress bars Feb 08 03:35:39 I'm trying to get silent sign-in using Google identity. Should I use smartlock or Google sign-in? Feb 08 03:36:30 they both seem to do the same thing in different ways Feb 08 05:16:50 hello everyone Feb 08 05:17:02 doese anybody from Google here ? Feb 08 05:17:20 not really Feb 08 05:18:36 Google please dont limit Iranian android programmers they are not polotical please help to Iranian android programmers Feb 08 05:19:00 Political Feb 08 05:19:57 mmc i'm sure its not google's choice; has to do with US law, sanctions, etc. given that, from what I heard much of that is easing becuase of iran's compliance with the nuclear stuff ... so maybe you will be able to sell stuff soon ? Feb 08 05:22:25 g00s : why Microsof does not limit Iranian windows and win phone programmers ? but google and oracle dont accept us to access their develop websites Feb 08 05:23:14 mmc the nuclear agreements were like last week , or 2 weeks ago? if MS can do it, oracle and google will too Feb 08 05:23:28 microsoft needs all the exposure it can get :P Feb 08 05:24:08 g00s : Microsof never limit Iranians Feb 08 05:24:36 mmc how do you know your own govt is blocking access to google ? Feb 08 05:25:02 MS is not above the law. they can't do things that google can't Feb 08 05:25:29 g00s : we can access to google but , develope.android.com is no accessible Feb 08 05:26:17 developer.android.com * Feb 08 05:27:51 capella mozilla is in deeper crap than MS :D Feb 08 05:28:23 Yah, moz just retired FFOS based phones Feb 08 05:28:50 just read they removed individual cookie blocking behavior in FF 44 Feb 08 05:28:59 they are going down the tube Feb 08 05:29:46 "Individual cookie blocking" ? Clarify? Feb 08 05:30:31 capella http://tech.slashdot.org/story/16/02/04/2221204/firefox-44-deletes-fine-grained-cookie-management Feb 08 05:30:58 * capella finds glasses, reads ... Feb 08 05:31:07 we are problem to download Android SDK and update android-sdk and i have an error but with limition of Google , Solving error is hard Feb 08 05:31:15 sorry Feb 08 05:31:24 We have problems Feb 08 05:31:46 once you get the sdk, you're just going to have more problems :D Feb 08 05:31:58 g00s: I don't believe that's correct ... that's describing certain site settings, not individual cookies per site Feb 08 05:32:55 can do web automation using webview ? Feb 08 05:33:43 not just for test Feb 08 05:34:41 oh says here trade embargo is still in effect, except for limited business Feb 08 05:35:07 i dunno then Feb 08 05:38:26 I have coded a project by using web automation that i have used Selenium Lib and i know there is Selendroid for Android but i think it can test not for anything else is there a way to use not for test ? Feb 08 05:53:48 too much new years festivities Feb 08 06:47:03 i love this in the sqlite 3.8.11 release notes "Miscellaneous micro-optimizations result in 22.3% more work for the same number of CPU cycles relative to the previous release. SQLite now runs twice as fast as version 3.8.0 and three times as fast as version 3.3.9. ....)" Feb 08 06:52:34 still, not bundled in android ;) Feb 08 06:54:05 i can see that as being one plus for realm.io - you just bundle the latest one, always Feb 08 06:54:25 no having to deal with the lowest common denominator sqlite over android versions Feb 08 06:54:38 yeah Feb 08 06:54:47 but you dont get stupid exceptions with sqlite ;) Feb 08 06:56:21 realm reminds me of hibernate Feb 08 06:56:24 dont know why Feb 08 06:56:41 So is SQLIte generally the best to use? Feb 08 06:59:15 unless you really know what you're doing Feb 08 07:22:01 In Selendroid how to record and playback script? (like selenium IDE in firefox) (I am using eclipse) thanks in advance Feb 08 07:22:23 Well, sqlite is shit if you need speed, but it barely works well enough that people continue to use it. Feb 08 07:22:36 it fits a very specific niche in very good way Feb 08 07:22:48 When your db reaches several gigabytes of data which is constantly queried, it starts to show its issues. Feb 08 07:22:53 similarly with MS JET, which survives to this day Feb 08 07:22:59 Yeah. Feb 08 07:23:03 justjanne: most people never reach gigabytes, in my experience Feb 08 07:23:18 * p_l has ~300GB Postgres database or so Feb 08 07:23:19 Well, we use it as storage backend for an IRC bouncer. Feb 08 07:23:30 You can choose sqlite or postgresql Feb 08 07:23:53 I personally switched to pgsql after reaching 50MiB, by now I'm at 748MiB Feb 08 07:24:25 But full text search over your complete IRC logs, and the ability to always get on any client any piece of log, is awesome. Feb 08 07:25:35 switching to postgres meant dropping in speed of queries for us (we switched from... *hbase*), but it's been rock solid once we gave it appropriate hw instead of puny VM Feb 08 07:25:59 puny VM = ~96GB of RAM nad 48 physical cpus :D Feb 08 07:26:33 Yeah, puny VM for me is OVH 2$ tier Feb 08 07:26:59 I'm happy if a search for a common word takes 71ms, and for an uncommon word < 3 sec Feb 08 07:28:37 heh, unfortunately even with newer hw we can't spring up for more than ~7GiB/s transfer. Nothing like the giant jobs on mainframes that can munge hundreds in few seconds Feb 08 07:30:10 If I had a stable income, Is probably buy the 14$ tier at OVH. Feb 08 07:30:47 That's an i5 quadcore plus 16GB RAM with 50GB HDD, and then I'd pay another 6$ for 60GiB SSD Feb 08 07:30:55 That'd be a monster. Feb 08 07:31:03 (For my purposes) Feb 08 07:32:52 well, yeah, my postgres cluster is for work. still, I was very surprised that they got us *anything*, let alone ~22k USD machine (which is actually a bit above small change, but nothing big when you're buying in range of one or two machines) Feb 08 07:33:05 Hey, if I remember correctly, there's an adapter (animation related) that takes two colors and when given a number returns a color between those colors... rings a bell? Feb 08 07:35:15 the gradient? Feb 08 07:35:50 ValueAnimator? Feb 08 07:36:17 But that does it time-based. Feb 08 07:36:54 But doing a transition between colors based on your own choice of mixing style shouldn't be hard. Feb 08 07:37:09 well http://stackoverflow.com/questions/15582434/using-a-valueanimator-to-make-a-textview-blink-different-colors Feb 08 07:37:23 Although Google recommends a transition from color to desaturate to color, and no thing does that in the support lib. Feb 08 07:38:07 my problem is, i want to take two colors red and green.. given a number between 0-99 i want the color in the in the relative 'distance' from red to green (like a gradient) Feb 08 07:39:42 And you want a simple mixed gradient in argb or HSL? Feb 08 07:39:53 Different color spaces lead to different gradients. Feb 08 07:40:17 Anyway, it's simple. Feb 08 07:40:44 argb, what's the technique ? Feb 08 07:40:51 value_i = red_i * (1-position) + green_i * (position) Feb 08 07:41:19 For each value, in argb, those I's are a, r, g and b Feb 08 07:41:27 A simple linear mixing Feb 08 07:41:46 thanks Feb 08 07:41:53 Obviously, I would recommend a modified cubehelix colorspace, as that color mixing is far more natural. Feb 08 07:44:09 https://bl.ocks.org/mbostock/310c99e53880faec2434 Feb 08 08:01:31 In Selendroid how to record and playback script? (like selenium IDE in firefox) (I am using eclipse) thanks in advance Feb 08 08:23:51 I want to create dialog window in adroid api 7 Feb 08 08:23:55 api7> Feb 08 08:24:01 How to? Feb 08 08:24:45 DialogFragment doesn't work on api7 Feb 08 08:34:56 hi! Feb 08 08:35:09 how to start making android app? Feb 08 08:35:16 like from "hello world" onwards Feb 08 08:35:29 google is your friend Feb 08 08:35:41 doing that already Feb 08 08:36:07 1.1 GB android Studio. should i be needing more data to download or would that 1.1GB suffice ? Feb 08 08:44:14 Good morning people! Feb 08 08:46:34 [11:23:50] I want to create dialog window in adroid api 7 Feb 08 08:46:36 [11:23:54] api7> Feb 08 08:46:36 [11:24:00] How to? Feb 08 08:46:36 [11:24:44] DialogFragment doesn't work on api7 Feb 08 08:46:39 Can anyone help me Feb 08 08:46:40 morniiiing Feb 08 08:47:42 :o api 7 is 2.1 i set my minimal in api 10 :S Feb 08 08:48:06 I need it :) Feb 08 08:49:08 Ozymandy, would AlertDialog help? Feb 08 08:51:30 Yotta92: I need dialog windows with big text Feb 08 08:51:32 Scrolling Feb 08 08:51:50 I have LeakCanary defined in an apklib dependency, but when I run the app I get Component com.squareup.leakcanary. DisplayLeakService does not exist in package. LeakCanary works fine if it is part of the app directly, but how can I get this to work if I move it to an apklib. Feb 08 08:53:14 I found a similar issue here https://github.com/square/leakcanary/issues/29 but haven't found a solution. Feb 08 08:54:21 Ozymandy, you could change text size in code. Feb 08 08:54:30 Hello everybody. I have a problem using Android Studio with a Dell 4k Monitor on OSX: It is lagging severely. Anybody else experienced such behaviour? Feb 08 08:55:19 Ozymandy, "doesn't work" isn't very specific, provide a problem description and the code you used Feb 08 08:56:13 Maybe the problem is that I am using the same service in different applications Feb 08 08:56:31 degill__, does it lag on build or on regular use? Feb 08 08:57:43 Hi. Feb 08 08:57:54 Regular use. Like scrolling, moving cursor and such. It *only* happens on the 4k monitor. If I move the window to the laptop or to another <4k monitor is suddenly stops Feb 08 08:59:18 I use the latest OSX on the latest "down-right" macbook pro (so performance shouldnt be a factor in determining why it happens) Feb 08 08:59:27 I'm having trouble with my android emulator and sdcard. I've created an sd-card with mksdcard. I'm starting the emulator with -sdcard. The emulator starts fine, and I can e.g. reformat the sdcard from Settings. BUT when I download somethig (an APK) from the brower, it give an error saying it needs an SD card in order to download. What's going on? Feb 08 09:00:07 degill__, someone actually reported this. There is solution, might help: https://code.google.com/p/android/issues/detail?id=191229 Feb 08 09:00:43 Has anyone used Activity recognition ? Feb 08 09:00:53 Thanks Yotta92. I already tried the suggested solution (I am actually the one at the bottom of that thread) but that doesnt seem to fix it (at least not for me) Feb 08 09:01:03 I found is to be too incorrect and unreliable Feb 08 09:01:11 I found it to be too incorrect and unreliable Feb 08 09:01:45 Specifically I tried setting sun.java2d.d3d=false Feb 08 09:01:53 degill__, heh, had an idea you'd be the last guy. Feb 08 09:02:12 Yotta92, seems like not so many people have that problem ^^ Feb 08 09:03:09 degill__, did you try changing resolutions on that screen? Feb 08 09:03:56 suhas_sm, yes, activity recognition is not reliable. On android dev page you can see the percentage of accuracy regarding each activity. Feb 08 09:06:06 Yotta92, Yes, indeed, when I set the resolution to the highest value (well, under OSX you cant actually set the resolution, but rather the scaling) the lagging is gone Feb 08 09:08:27 degill__, so lagging appears only if you set scale to the highest? More space or less space? Feb 08 09:09:18 Yotta92, 'highest value' meaning most space (small font and such) Feb 08 09:10:51 degill__, well, that's counter intuitive. I'd think it would lag more if you increase scaling. Feb 08 09:12:44 Yotta92, I thought that its more intuitive: More scaling meaning that its more at the native resolution of the monitor....meaning less performance? Feb 08 09:15:06 Yotta92, but I really dont know how scaling in such an area works, performance-wise :/ Feb 08 09:17:30 degill__, well, personally, on my MBP, if I set the scaling to max: more space. (1680x1050) The performance falls down - scrolling not so smooth, etc. Otherwise, on default (1280x800) it works way better.) Feb 08 09:18:17 If I have a service in an apklib, what else do I need to do in order for the apk to find the service? I get service does not exist in package? Feb 08 09:19:45 Yotta92, interesting. I cant confirm that. It still makes working a bit more painful Feb 08 09:28:54 I need allertDialog without neutral button, how to implements this? Feb 08 09:30:16 Ozymandy, what buttons do you need? Feb 08 09:30:29 Only positive and negative Feb 08 09:30:41 And can I send to allertDialog big text? Feb 08 09:30:45 With scrolling Feb 08 09:31:30 to understand recursion you must first understand recursion Feb 08 09:32:10 Ozymandy, when you say big text, do you mean big font or big text in terms of log sentence? You can disable neutral button in code if you want. Feb 08 09:32:41 Yotta92: log sentence Feb 08 09:32:43 long* Feb 08 09:34:20 Ozymandy, never tried that. But from API I can see you can set your own view to the AlertDialog. So you could define your layout and set it in the code. Feb 08 09:34:34 Do I have to removeUpdates before passing a new LocationRequest ? Feb 08 09:36:13 Ozymandy, pastebin your code Feb 08 09:38:27 Zharf: http://pastebin.com/bZBYypfB Feb 08 09:52:16 Hi, I'm trying to know when a re-draw triggered from onItemChanged() finishes. Is there a non hackish way to do it ? Feb 08 09:52:19 Thx anticipately Feb 08 09:57:43 Ozymandy, are you using android.app.AlertDialog or android.support.v7.app.AlertDialog? Feb 08 09:58:48 Zharf: first Feb 08 09:59:01 I thought it works on v7 Feb 08 09:59:17 I test on android 4.0.3 Feb 08 10:00:53 I don't have any api7 devices and it seems they don't have emulators for that old androids available anymore, so I can't say for certain that AlertDialog hasn't changed at some point Feb 08 10:00:59 so I'd use the support version Feb 08 10:06:57 How to reduce image in percentage on relative layout? Feb 08 10:07:28 do what now? Feb 08 10:08:52 ? Feb 08 10:09:05 I don't understand what you want to do Feb 08 10:12:00 Zharf: I have big picture, and I want to reduce size Feb 08 10:16:24 set the ImageView size to whatever you want? Feb 08 10:19:30 Zharf: yes, I resize, but layout_height and width doesn't help Feb 08 10:19:35 Ozymandy, you can use scaleType to do some simple scalings on the image. Feb 08 10:19:49 ImageView has an attribute scaleType Feb 08 10:20:18 Yes, but I need reduce size to 50% Feb 08 10:20:30 I can't do it with scaletype Feb 08 10:20:55 50% of what? the screen or the original image? Feb 08 10:21:08 of the original Feb 08 10:22:23 if you know what size the image is, you can use layout_height and layout_width, if not, then you'll have to calculate the size in code and modify the ImageView's LayoutParams Feb 08 10:23:31 Zharf: I know, but when I change layout params it resize only layout, not image Feb 08 10:23:53 Ozymandy, did you use a scaleType? Feb 08 10:23:55 It cuts image Feb 08 10:24:07 Ozymandy: you have to have the right scaleType Feb 08 10:24:25 Ozymandy, what are width and height of the image? Feb 08 10:24:47 Ozymandy, should try fill parent Feb 08 10:25:11 you probably want android:scaleType="fitCenter" or something Feb 08 10:25:16 I set scaletype and it works, thanks Feb 08 10:31:32 do you also thing that "connection services" on android makes phone synchronization slow ? or stop it sometimes Feb 08 10:33:31 it's "google connectivity services" Feb 08 10:34:16 Oh, great! Doze leads to reddit having to block access for a third party reddit app. Feb 08 10:34:54 Doze let's the apps poll for notifications at :15, :30, :45, etc of each hour. Obviously, when all Android devices do so at once, that causes a huge peak. Feb 08 10:36:06 what's Doze? Feb 08 10:37:13 there should be a middleware database that gets it's stuff from reddit's db and then the clients should connect to that middleware Feb 08 10:37:13 if I were reddit I would disallow devices directly connecting, only allow middleware db's Feb 08 10:38:54 And then I'd stop using reddit. Feb 08 10:39:09 for third party app developers that is ... Feb 08 10:39:27 Cause now you have not only reddit, but also random app devs having full control over your data. Feb 08 10:40:03 Doze is the new battery-saving mode in marshmallow that activates during night. Feb 08 10:41:07 problem solved :) Feb 08 10:42:49 justjanne, why would the middlware db affect you as a user in any way? Feb 08 10:43:06 * Zharf doesn't use reddit Feb 08 10:45:43 Zharf, because you're giving out credentials to someone else? Feb 08 10:45:45 justjanne: not having middleware doesn't mean it's more secure Feb 08 10:45:54 And what does you using reddit have anything to do with it? O.o Feb 08 10:46:08 justjanne, thing is... not sure if middleware actually helps you Feb 08 10:47:22 Mavrik, you're already giving credentials to someone else if you're using a third party application Feb 08 10:47:29 No. Feb 08 10:49:33 Hi all. I have an application that opens a WebView and loads a URL and displays it. However, I want to implement a retry/reload functionality when the website can not be loaded for any reason. Is there a best practice for this? Feb 08 10:50:48 I can use the WebViewClient's onReceiveError() function, but I think it's not a good thing to create an intent from within this handler. Right? Feb 08 10:51:54 ok, it was doze problem... Feb 08 10:52:15 thank you doze for blocking my sync Feb 08 10:52:36 Guys, I have string in string.xml. Big text. How to format it? I mean new lines for every paragraph and so on Feb 08 10:53:01 Parham, why would you create an intent? O.o Feb 08 10:53:30 Mavrik: To display an activity which has an error message and a retry button. Feb 08 10:54:28 Mavrik: I'm going to show two other buttons as well; one opening the "Cellular data" settings and the other opening the "Wireless" settings. Feb 08 10:54:37 Can anyone help me? Feb 08 10:55:52 Ozymandy, what do you mean with "format it"? Feb 08 10:56:14 Add paragraphs for example Feb 08 10:56:30 Ozymandy: http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling Feb 08 10:56:37 Thanks Feb 08 10:56:44 Ozymandy: Look under "Styling with HTML markup" Feb 08 10:57:11 I have begun writing Android apps just a few hours ago, so I might be wrong, but a simple Google search led me there. Feb 08 10:57:48 Yes. Feb 08 10:57:57 A simple Google search will indeed help a lot at those questions. Feb 08 10:58:19 Parham, that handler is pretty much the only place where you can do that kind of thing so you don't have much choice :) Feb 08 10:58:37 Parham, I don't see an issue with opening intent, just make sure you cancel navigation so the callback doesn't get triggered multiple times. Feb 08 10:58:43 Or you'll spam dialogs :) Feb 08 11:00:32 Mavrik: Oh. This is to handle the case where the original page loads fine, but then suddenly the connection drops and the client now wants to load a lot of assets, right? Feb 08 11:02:29 Parham, I don't exactly remember how the callback works, but it could happen you get the error call for each asset / redirect failed to load Feb 08 11:02:35 But I'm not sure, I try to avoid using WebViews :/ Feb 08 11:02:47 Mavrik: Thanks a lot. Feb 08 11:03:00 Mavrik: That was a tricky issue. I'm glad you told me about it. You're awesome. Feb 08 11:03:03 I'll be fun when I'll have to use webview. Feb 08 11:03:10 Hopefully I can avoid it. Feb 08 11:03:33 justjanne: Why? Are there issues that make it annoying? Feb 08 11:03:48 justjanne, custom chrome tabs are usually better Feb 08 11:03:53 Also provide less shitty UX Feb 08 11:04:05 Of course, less control as well. Feb 08 11:08:24 wtf java Feb 08 11:08:44 i has private ImageView[] mImageView; then do in constructor mImageView = new ImageView[3]; Feb 08 11:09:02 and yet after in some method after those i get Attempt to write to null array Feb 08 11:09:16 this is ViewHolder is its relevant Feb 08 11:09:38 That sounds horribly wrong :P Feb 08 11:11:04 the error or using arrays for views :? Feb 08 11:12:01 Just don't see a good code pattern where putting views in arrays is maintainable. Feb 08 11:12:12 But... if you want help, pastebin some code somewhere and maybe someone will find time. Feb 08 11:12:32 no no i just used the channel for some rubber duck debugging Feb 08 11:12:39 i found the error lol Feb 08 11:13:21 the base abstract class uses setupView() in constructor and it was called before initializing arrays Feb 08 11:22:28 Parham: because WebView is (a) WebKit, which has lots of horrible bugs in its handling of JS and HTML, and I’ve run into lots of issues with it before Feb 08 11:22:40 and (b) would still be webkit, and not fix the issues. Feb 08 11:23:05 a browser engine where bugs that violate the HTML Spec are marked "WORKING AS INTENDED" has no business to be used in my apps. Feb 08 11:24:54 I have layout with big size background image. How to implements cut when screen size less than pic size? Feb 08 11:25:17 Generally I want to cut by width, not height Feb 08 11:27:24 @Mavrik: Still webkit, and can’t be embedded in the app properly Feb 08 11:27:37 justjanne, yes, but it retains users state Feb 08 11:27:51 Which means no shitty reauthentications and popups everywhere. Feb 08 11:28:23 The worst part of WebView UX is that it doesn't remember anything of what you did on your systems browser. Feb 08 11:28:32 "Oh look, do the 2 factor auth for Google AGAIN" Feb 08 11:28:54 "Here have ALL the cookie notifications and none of the page settings!" Feb 08 11:29:17 Can anyone help me with this? Feb 08 11:30:53 I mean I need layout background without scaling in X coordinate Feb 08 11:35:11 I tried to goolge, but didn't find anything Feb 08 11:38:57 :( Feb 08 11:39:33 Hey all.. Just wondering if I could get a little help making a hello world NDK in AS. Feb 08 11:39:50 I'm hitting this error ndroid/Sdk/ndk-bundle/sources/android/native_app_glue/android_native_app_glue.h:25:35: fatal error: android/configuration.h: No such Feb 08 11:40:05 file or directory Feb 08 11:41:06 do anyone faced this issue, after you refresh-dependencies, android studio doesn't resolve most of the code even support libraries, and when listing the dependencies you can tell they are exists?? Feb 08 11:41:46 i can tell this bug/issue happened after the last build of android studio Feb 08 11:44:43 Can anyone help me? Feb 08 11:46:38 Ozymandy, did you try scaleType="centerCrop" Feb 08 11:46:52 It's layout background Feb 08 11:46:58 So I can't use it there Feb 08 11:47:22 well, your options are to either scale it in code or use an ImageView for the background Feb 08 11:48:12 In selendroid I cant able to find action bar menu item by id,linkText...etc? any one can experience these kind of issue please help me. thanks in advance Feb 08 11:49:29 Mavrik: my use case is more "embed youtube videos in chat client" Feb 08 11:49:37 although not for videos, Feb 08 11:50:02 as I’ve written my own video lib that handles youtube, vimeo, dailymotion, google drive, etc using exoplayer Feb 08 11:50:22 (so a single snackbar on top of the video doesn’t instantly kill the app – fuck you, google) Feb 08 11:56:52 hello Feb 08 11:57:06 I am having issues setting a linearLayout / relativeLayout's background to transparent in code(not xml). I have tried both setBackgroundColor() and setAlpha() but they both make the background grey not transparent. I want to be able to see the underlying layout's colour when the linear/RelativeLayout above it is transparent. I need help please! Feb 08 12:03:55 show code Feb 08 12:14:01 @Zharf: How shld I do that? copy and paste? (I am new to irc) Feb 08 12:14:45 Does anyone know of a simple ExecutorService that allows you to set a time limit for each runnable? Feb 08 12:15:23 Nnabueze: use a pastebin site Feb 08 12:21:07 ok. I just did that Feb 08 12:21:29 shld I send the link to the code? Feb 08 12:21:57 yes Feb 08 12:22:36 Nnabueze, thanks for asking and not pasting it on the channel ;) Feb 08 12:23:17 http://pastebin.com/5WUbnnGM Feb 08 12:23:55 lol. I havent used pastebin before Feb 08 12:31:58 line 204, what's that size-progress doing there? Feb 08 12:32:00 :O Feb 08 12:32:29 there's a lot of things I'd point out from that code but you're probably a beginner -.- Feb 08 12:34:00 hi all Feb 08 12:34:39 oh it's probably to invert the seekbar, huh.. Feb 08 12:37:18 Hi Feb 08 12:37:34 its fixed Feb 08 12:37:35 ? Feb 08 12:38:03 Nnabueze, oh, if your seekbars are set to [0, 100], you'll need to scale that up to [0, 255] Feb 08 12:38:41 Nnabueze, not quite enough info in there to give you a complete answer since I don't know what the colorCodes is like and what the seekbar min/max are Feb 08 12:39:07 Nnabueze, but to be honest, you should just use some math to create the color integer Feb 08 12:39:14 Hello guys, I'm working on an app which is targeting on Android L. But should work from Android Jelly Bean. The problem is that the EditText widget is like invisible, looks like completely transparent. This way a user can't see the EditText field. Why is there no bottom border line which is familiar in Android 4+? Feb 08 12:40:05 This is the case on a tablet with Android 4.0.3, I'm not sure how it looks like on Android L. Feb 08 12:40:40 Because default design for EditText is different between 4.0.3 and 5.0 Feb 08 12:40:46 Also 4.0.3 is not Jelly Bean. Feb 08 12:41:07 Mavrik, ok, I mean from Android 4.0+ Feb 08 12:41:31 Mavrik, so that explains the invisible EditText? Feb 08 12:42:05 No idea if it explains it in YOUR case, since I have no idea what you set and how. Feb 08 12:42:16 Mavrik, what is the common solution for that? To create a custom style (I'm really no in to that, but if I have no choice...) Feb 08 12:43:10 What are you really trying to do? Feb 08 12:43:16 https://www.google.com/design/spec/components/text-fields.html#text-fields-labels Feb 08 12:43:50 Mavrik, targetSdk is 23 and minds is 15 in my case. I just simply added an EditText widget in my layout. But the EditText field is completely white, so I can't see the field. Feb 08 12:44:23 And how do you want your edittext to look like on Android 4.0.3, 4.1, .. 6.0 _ Feb 08 12:44:24 ? Feb 08 12:45:14 Mavrik, as normal, with a bottom border line. Now I see nothing, until I touch the field and you can see the cursor. Feb 08 12:45:25 Well use AppCompat version then. Feb 08 12:45:30 Which will have same design everywhere. Feb 08 12:46:38 Mavrik, so you mean instead of change it to something like that? Feb 08 12:47:27 I use Theme.AppCompat.Light.DarkActionBar theme, so according to you it should work. Feb 08 12:47:30 Applying AppCompat theme properly should be enough. Feb 08 12:49:15 Mavrik, sorry for my stupid questions, but what do you mean by applying AppCompat theme properly. I already use AppCompat theme. Feb 08 13:09:55 whats the best custom rom for sm-g920p Feb 08 13:10:03 Android’s String::split is broken Feb 08 13:10:05 WTF Feb 08 13:10:06 im having trouble figuring this out.. Feb 08 13:10:14 justjanne, ? Feb 08 13:10:18 it returns different results than Oracle Java’s String::split Feb 08 13:10:25 quantibility, #android-root Feb 08 13:10:31 thank you Feb 08 13:10:35 different how Feb 08 13:10:38 "ab".split("") returns [, a, b] on Android, and [a, b] on Oracle Java Feb 08 13:11:34 Time to write my own compatibilityUtils method for this, too Feb 08 13:11:58 by the way has anyone thought about using Knox to have root ? Feb 08 13:12:04 justjanne, report a bug :p Feb 08 13:12:13 Zharf: haha, very funny Feb 08 13:12:16 or just use guava Splitter Feb 08 13:12:26 Android. Bug Report. Fixing things on API 16+ Feb 08 13:12:27 lol Feb 08 13:12:42 like under the Knox guise can you make a root android system? Feb 08 13:13:05 justjanne, ... Feb 08 13:15:26 no one? Feb 08 13:15:31 is it not possible? Feb 08 13:16:44 Zharf: honestly, do you think a Bug Report will fix anything? I mean, I could report a bug, then complain that this limits the usability of my phone and is a manufacturers issue, and then sue for Motorola to fix it, but that wouldn’t change anything for the remaining devices out there Feb 08 13:17:07 I can't see my device in adb devices (it's a oneplus x)... and in the computer's device manager, my phone is shown under portable devices... I tried installing the drivers but didn't work... could somebody pls help me? Feb 08 13:17:47 no but not reporting certainly doesn't help anyone in the future Feb 08 13:17:51 Nick007: did you enable USB debugging? Feb 08 13:18:00 justjanne, yes Feb 08 13:18:02 And whitelist the computer on your phone? Feb 08 13:18:35 justjanne, how do I do that? when I connect my phone to the pc, I don't get any popup box Feb 08 13:18:41 im not exactly a noob here just curious Feb 08 13:19:22 justjanne, pls tell me about that whitelisting part Feb 08 13:19:42 Nick007: you should get a popup box. Feb 08 13:20:42 justjanne, I don't... am I doing something wrong? Feb 08 13:20:51 I don’t know Feb 08 13:22:55 Newbie having trouble with a NPE and not sure why. http://pastebin.com/0CqEKS6h I would have thought line 5 here would have caught that it's null (and it does, it logs the message out) and started the new intent, but the ugly crash message comes up first, and then the intent fires up after I press OK to make the crash message go away. Not sure why it's happening in that order. Feb 08 13:25:12 BilldaCat: it will still execute the code after the if. Feb 08 13:25:20 do finish() to stop the current activity Feb 08 13:25:28 or put the code below in an else block Feb 08 13:26:02 @Zharf: I am really sorry for keeping u waiting. Just had a meeting with my supervisor Feb 08 13:26:16 colorCodes is an String-array of hex letters from 00, 01... A0,A1...FF(256 in number) Feb 08 13:26:35 but why? Feb 08 13:26:36 I think I tried finish() already and it still executed but I'll give it another go. Failing that I'll try wrapping it in an else block, last time I did it I must have done it wrong as I was getting back an empty view Feb 08 13:26:40 thanks justjanne Feb 08 13:28:41 Nnabueze: first thing, why? There’s String.format("%02x", 255) to turn an int into a 2-byte hex string Feb 08 13:28:54 (replace 255 with a number of your choice) Feb 08 13:28:58 finish() doesn't return from the current method Feb 08 13:29:17 (use 255 & 0xFF to make sure you only get the last byte, so 256 rolls over to 1) Feb 08 13:29:30 @justJanne: wow thanks Feb 08 13:29:40 is there a way to know when a file on the filesystem has beed edited? Feb 08 13:30:12 public static final String intTo2ByteHexString(int i) { return String.format("%02x", i & 0xFF); } Feb 08 13:30:56 yup, checked. Works with all possible integers. Feb 08 13:31:12 Nnabueze: so, what was with your colorCodes now? Feb 08 13:32:03 Anyone is using the Youtube Android Player API? I've got reports of the buffering/loading icon staying on the screen all the time, just tested it and can confirm Feb 08 13:32:08 Anyone else has this problem Feb 08 13:32:09 ? Feb 08 13:32:15 I am having issues with setting a View to transparent in code(not xml) Feb 08 13:33:11 I have tried both setAlpha() and setBackgroundColor(), both just turns the background grey not transparent Feb 08 13:33:25 so no one has thought about using knox for root ? Feb 08 13:33:38 Nnabueze: .setVisibility(View.INVISIBLE); ? Feb 08 13:33:51 there’s also .setVisibility(View.VISIBLE); and .setVisibility(View.GONE); Feb 08 13:33:58 gone removes it completely and makes it 0 tall, Feb 08 13:34:04 invisible just makes it invisible Feb 08 13:34:40 that wouldnt work in my case cuz I want to use a seekbar to alter the transparency of the view Feb 08 13:34:57 ah, that is an issue. Feb 08 13:35:16 your code has a bug Feb 08 13:35:41 @Zharf: thanks for coming back. Where pls? Feb 08 13:35:50 i wish i could be as good as you guys but the only programing i have ever done was MIRC scrpting Feb 08 13:37:31 Nnabueze: does view.setLayerType(View.LAYER_TYPE_HARDWARE, null); view.setAlpha(0.5F); work for you? Feb 08 13:37:51 havent tried dat yet Feb 08 13:37:52 doesn't alpha apply to children as well? Feb 08 13:38:02 it should, yes. Feb 08 13:38:10 When I try to update drivers for my phone from windows device manager... I get the following error: http://imgur.com/KBl8abe Feb 08 13:38:33 sometimes there are issues with bugs and slowness if you don’t set a layer type, so from M on LAYER_TYPE_HARDWARE is default, but you should set it before, too Feb 08 13:38:42 I have C:\Program Files (x86)\OnePlus USB Drivers... and these are the contents of OnePlus USB Drivers folder: http://imgur.com/jIwQUvP Feb 08 13:38:42 at least during animations or while it may change Feb 08 13:38:50 I think so Feb 08 13:38:56 justjanne, of course if you update layer contents it gets very slow. Feb 08 13:43:13 Nnabueze, I'm not sure but if you do view.setBackgroundColor(0); it'll get a transparent background, for sure Feb 08 13:43:35 Nnabueze, you should abandon the string parsing to color and just use the seekbar values for Color.argb() Feb 08 13:44:34 (btw, short explanation why 0 as background color is transparent: background colors are parsed as hex colors – 0 evaluates to 0x00000000, where these values are AA, RR, GG and BB. As any value below 16777216 means AA is 0, the colors is transparent) Feb 08 13:45:08 0xAARRGGBB, yep Feb 08 13:45:15 (so you can just set 0 or 1 or 16777215 and it’ll be transparent) Feb 08 13:46:52 @Zharf: I havent tried dat yet either Feb 08 13:47:25 justjanne, it worked! Feb 08 13:47:41 the setLayerType() Feb 08 13:47:44 then do now what Zharf said, and you should improve performance even more Feb 08 13:48:06 btw, you should only set a tiny amount of elements with layertype hardware, as many devices only support a limited amount of those Feb 08 13:48:14 yes I would do dat thanks guys Feb 08 13:49:20 Pls explain. I dnt really get Feb 08 13:50:13 Also, I read in the docs that calling setAlpha() frequently leads to performance issues Feb 08 13:50:45 dats y I wanted to use the setBackgroundColor() with the ARGB format Feb 08 13:50:49 you don't need to use setAlpha for your problem, you just need to have the correct integer for setBackgroundColor Feb 08 13:51:25 @Zharf: when I set those hex codes in xml, they work perfectly Feb 08 13:51:26 has anyone ever thought about using knox for root pribvilages? Feb 08 13:51:42 Nnabueze, sure, but your code is not producing the same hex codes Feb 08 13:52:08 Nnabueze, and you shouldn't really convert the ints from seekbars to a string and then convert that to an int again through Color.parseColor Feb 08 13:52:23 you should just use Color.argb(alpha, red, green, blue) Feb 08 13:52:55 Yeah, I dint know about that method before Feb 08 13:53:08 (well doing that manually isn't much harder either :p) Feb 08 13:53:27 (alpha << 24) | (red << 16) | (green << 8) | blue Feb 08 13:53:50 or if you want to be safe, do & 0xff on each parameter Feb 08 13:54:15 but I'm just confusing you now Feb 08 13:54:16 I would change that today Feb 08 13:54:16 thanks a lot Zharf Feb 08 14:00:48 I think I prefer the Color.ARGB() way Feb 08 14:01:05 lol. No U re not. I prefer to know all alternatives ways to achieve it Feb 08 14:01:48 * Zharf confused, did I ignore someone? Feb 08 14:02:14 yup Feb 08 14:02:46 smeargol? Feb 08 14:02:53 nope, no one one my ignorelist is here Feb 08 14:05:00 ive been asking questions and pretty much ignored Feb 08 14:05:44 quantibility, well your questions belong in #android-root Feb 08 14:06:05 this channel is for application development Feb 08 14:06:08 about using knox to root? Feb 08 14:06:15 i thought that was a job for programmers.. Feb 08 14:06:27 we are app programmers, not rooters Feb 08 14:06:33 understood, Feb 08 14:07:09 but knox creates a container in a special protected form and im assuming special privilages.. Feb 08 14:07:37 #android-root Feb 08 14:12:48 quantibility: is your question solvable by an app distributable as apk? if yes, here. If not, #android-root Feb 08 14:12:57 <_0xbadc0de> hello Feb 08 14:13:18 <_0xbadc0de> I was trying to set up a decent android developing / testing emulated machine Feb 08 14:13:25 <_0xbadc0de> but I am lacking google apps Feb 08 14:13:31 <_0xbadc0de> to run certain apps Feb 08 14:13:42 <_0xbadc0de> anyone can help me with this? Feb 08 14:14:09 <_0xbadc0de> how can I get approppriated google apps for my emulator, and what version should I choose? Feb 08 14:14:43 you can use the Google images and they should provide most google play services you need Feb 08 14:14:56 sure not the apps but do you really need them? Feb 08 14:15:13 what do you think you need the apps for? Feb 08 14:15:26 does anyone know of a simple, md-standard compatible library for nick chips? Feb 08 14:15:51 <_0xbadc0de> ok So I have android v5.1 lollipop Feb 08 14:16:00 <_0xbadc0de> witch armv7 Feb 08 14:16:04 <_0xbadc0de> (sdk emulator) Feb 08 14:16:13 <_0xbadc0de> where would I get google images? Feb 08 14:16:25 <_0xbadc0de> with that stuff Feb 08 14:17:13 <_0xbadc0de> hmm it already says with google apis Feb 08 14:17:33 so it should be fine, if you have Intel cpu use x86 with haxm btw Feb 08 14:17:36 and not arm Feb 08 14:17:52 so what Google stuff do you want which isn't there, and why? Feb 08 14:18:20 <_0xbadc0de> I tried to run a third party application on it Feb 08 14:18:27 <_0xbadc0de> and it was complaining about google apps Feb 08 14:18:49 so... this isn't something you need to develop your app? Feb 08 14:19:07 <_0xbadc0de> I just wanted to test that app thats all Feb 08 14:19:13 <_0xbadc0de> I wanted to see it run on the emulator Feb 08 14:19:21 you only need play services and they are shipoped with the google api images for the emulator Feb 08 14:19:45 meh Feb 08 14:20:01 I have a memory leak with ContentObserver, even though I unregister the observer in my Activity's onPause(). Is this a framework bug or how can I fix this? Feb 08 14:20:10 if you need an environment which is 100% like a google-powered android phone just use Hardware Feb 08 14:20:41 and if you're not developing, you probably want to steer clear of development tools Feb 08 14:24:10 any idea about this error? [org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-pattern-valid: Value 'build-tools;23.0.0 rc3' is not facet-valid with respect to pattern '[a-zA-Z0-9_\-;.]+' for type 'segmentListType'.] Feb 08 14:24:24 even am not using build-tools 23 rc Feb 08 14:24:30 i use 23.0.2 Feb 08 14:25:21 Hello guys, how to set a label to EditText that floats up when you type something in it? Feb 08 14:25:45 I mean, what is the name of te property for that cool behaviour Feb 08 14:25:53 Moshdev_, try to find if you reference 23.0.0 anywhere in your code. Feb 08 14:26:05 Moshdev_, or libraries Feb 08 14:26:32 Number5, placeholder? Feb 08 14:26:37 floats? Feb 08 14:26:43 @Yotta92 in code i didn't find anything, but libraries how could i find which build tools they use! Feb 08 14:26:56 Yotta92, yes I think that's it :) thnx Feb 08 14:27:45 Moshdev_, try checking build.gradle files of the libraries, but I am in doubt that would help. Feb 08 14:31:09 yeah, didn't help since there is nothing match build-tools 23....rc Feb 08 14:31:19 i belive its new gradle beta2 bug Feb 08 14:38:46 Number5, are you looking for http://www.androidhive.info/2015/09/android-material-design-floating-labels-for-edittext/ Feb 08 14:40:45 @Number5: wrap ur editText inside a TextInputLayout. Feb 08 14:44:10 Zharf, that's nice. Didn't know that one existed. TIL, I should look through material design support library. Feb 08 14:47:33 material design documentation shows all these things but they never tell you how actually do them, it's annoying Feb 08 14:49:12 Zharf, they have material design in codelabs but it does not cover a lot. Feb 08 14:49:19 <_0xbadc0de> the best android emulator there is is the sdk one, right? Feb 08 14:49:57 _0xbadc0de, some people recommend Genymotion Feb 08 14:50:03 Never tried one though Feb 08 14:50:11 <_0xbadc0de> tbh, I am not even a developer Feb 08 14:50:17 <_0xbadc0de> I do hacking for fun Feb 08 14:50:24 <_0xbadc0de> and I wanted to reverse engineer a certain application Feb 08 14:50:44 _0xbadc0de, you don't need emulator for that Feb 08 14:50:44 <_0xbadc0de> but I wanted to have a stable emulator to play with it Feb 08 14:50:59 <_0xbadc0de> yes but as I do my modifications Feb 08 14:51:05 <_0xbadc0de> I need to have a testing device Feb 08 14:54:44 so you're a developer... -.- Feb 08 14:54:54 <_0xbadc0de> http://puu.sh/n0nhB/2a07ad5de0.jpg Feb 08 14:55:11 <_0xbadc0de> I wanted to play around with it Feb 08 14:55:19 <_0xbadc0de> before I start to look inside the code Feb 08 14:56:47 just get the one from sdk manager, or possibly pay for genymotion Feb 08 15:20:34 where can i put this option to load my emulator: -noaudio -qemu -m 512 -enable-kvm there was something like this before in android studio: http://storage1.static.itmages.com/i/16/0208/h_1454944808_8191114_4193e8a66b.jpeg but now there no place for this: http://storage2.static.itmages.com/i/16/0208/h_1454944844_7458154_2b15d52a25.jpeg Feb 08 15:20:46 any idea? Feb 08 15:23:34 did anyone use Selendroid ? Feb 08 15:25:20 mmc whats that? Feb 08 15:26:14 a web test automation tool for android Feb 08 15:26:36 markyosullivan : a web test automation tool for android Feb 08 15:37:56 https://pp.vk.me/c630217/v630217315/14481/9HUQ-4JgRmg.jpg What is wrong here? Feb 08 15:47:13 Can anyone help me? Feb 08 15:49:55 Well, I don't know Russian, so I can't tell you what the exception says, but it sounds like something's already bound to that port: you already have a debugger running somewhere. Feb 08 15:52:13 I'm a vi retard... have root on android 6.0.1 (nexus 6) and every command I enter says not implemented. Am I missing something basic? Feb 08 15:52:38 slycoder: Android just doesn't have all these things. Feb 08 15:52:48 i have busybox installed Feb 08 15:52:50 You need to install GNU Utils yourself. Feb 08 15:53:13 Well, busybox still doesn't contain vi, or bash. Feb 08 15:54:01 i have vi, i just can't do anything with it... i can open files, navigate, but when i do :i for example, i get 'i' is not implemented Feb 08 15:54:49 Try installing a full vim build. Feb 08 15:55:54 don't install a full vim build, use it on a full computer Feb 08 15:56:19 A phone is a full computer, just that the OEM has tried to limit you. Feb 08 15:56:34 meh Feb 08 15:56:35 Nexus 7 + Fedora with Plasma Active = Full computer. Feb 08 15:56:40 oh, fuck off Feb 08 15:56:46 useless full computer Feb 08 15:56:53 justjanne: It says that Program on yours host-computer broke installed connection Feb 08 15:57:33 pfn? How so? You have hdmi out, a full desktop environment, USB. Feb 08 15:57:45 Nothing useless about that. Feb 08 15:57:56 like i said, vi retard. so i should be looking for a command on my computer to open a file remotely on the phone? Feb 08 15:58:33 are you trying to do on-board app development in vi? Feb 08 15:58:48 no i just need to edit a prop file Feb 08 15:58:56 are you trying to do app development? Feb 08 15:59:30 justjanne, nope, the oem has done nothing to limit that Feb 08 15:59:32 I think nano works well on Android, actually. Feb 08 15:59:44 But it's the only editor I know that works well Feb 08 15:59:54 pfn: the OEM and Google, yes. Feb 08 16:00:03 nope Feb 08 16:00:15 unlocked devices can do whatever you want Feb 08 16:00:20 One provides the tools to lock bootloaders, the other locks them. Feb 08 16:00:39 Especially locking bootloaders to only one hardcoded key. Feb 08 16:00:56 nope Feb 08 16:01:04 justjanne: Are you trying to insert code into the file by typing 'i'? Feb 08 16:01:11 but I can't deal with your socialist talk, back to ignoring Feb 08 16:01:18 marienz: no, slycoder is. Feb 08 16:01:45 * markyosullivan: slycoder is Feb 08 16:01:52 slycoder: I don't know how you're supposed to use vi on a phone Feb 08 16:02:03 i'm using the adb shell Feb 08 16:02:06 very poorly Feb 08 16:02:15 slycoder: are you trying to do app development? Feb 08 16:02:42 Leeds: no, just need to edit a file Feb 08 16:02:49 pfn: a device where you can be limited from doing whatever you want, but the OEM can never be limited, is not acceptable. I buy it, I control it, and only I. Feb 08 16:02:51 can you read the topic of this channel? Feb 08 16:05:05 then don't buy it Feb 08 16:10:49 That is my long term goal, but currently I don't have the money yet to commission my own device. Feb 08 16:12:06 The first issue is building a GSM chip with software I've audited myself. Luckily I have a chance to do so very soon, which is going to be the first step towards a device I own Feb 08 16:12:55 But for the other millions of customers there is no such chance. Feb 08 16:13:18 yeah,ok Feb 08 16:14:23 when you're at the root screen of an application and you hit the back button what is standard operating procedure: minimize or exit? Feb 08 16:15:27 finish Feb 08 16:15:27 usually exit, although some apps say 'sure you want to exit?' Feb 08 16:15:39 okay, cool. Feb 08 16:15:41 thanks Feb 08 16:17:07 I'm guessing when you have different levels of permissions for users in an app you would have 1 login screen but multiple permissions. So average user would have permission to do the default things, whereas staff users would have access to staff features? Feb 08 16:25:08 is xamarin free to use? Feb 08 16:27:17 is it possible to utilize androids native downloading notification UI but handle the downloading in my app myself? Feb 08 16:27:48 why would you need that? Feb 08 16:29:08 so users dont have to reopen my app to see the status of what they're downloading Feb 08 16:29:26 they could just pull down the notification tray and check the status Feb 08 16:29:45 realies: visual studio 2015 community edition is free and comes with a xamarin which has restrictions Feb 08 16:30:03 andr3wmac, isn't there a way for you to design that? Feb 08 16:30:11 realies: if you're a student, you might be able to get a full xamarin license for a year at a time Feb 08 16:30:25 karhu, are these functionality restrictions? Feb 08 16:30:40 realies: I just googled it and found https://stackoverflow.com/questions/30313302/is-xamarin-free-in-visual-studio-2015 Feb 08 16:31:20 i wonder which way to go, to start with java or try using some .net implementation for building apps Feb 08 16:31:49 java Feb 08 16:32:26 there's no reason to get xamarin unless all you know is net and you never want to know anything else Feb 08 16:32:38 ok, where to start? Feb 08 16:34:06 java Feb 08 16:34:45 yeah, where to start with developing android apps with java? Feb 08 16:35:28 justjanne: using openbsd much? sounds like Theo De Raat ;D Feb 08 16:36:52 realies, Udacity courses Feb 08 16:37:19 realies: http://developer.android.com/intl/ru/index.html Feb 08 16:37:55 does anyone android developer here ? Feb 08 16:38:03 :D Feb 08 16:38:03 realies: depends what you want. to get some fresh experience, just peelk random guide from internets Feb 08 16:38:08 mmc, serously? Feb 08 16:38:34 pfn vigilancer ty Feb 08 16:39:13 vigilancer, ru? fix your cookies Feb 08 16:39:13 realies: no, only manga fans here Feb 08 16:39:24 it's cool Feb 08 16:39:25 anyone know how to get the currently active SSID from the command line? Feb 08 16:39:27 pfn: meaning? Feb 08 16:39:35 vigilancer, intl/ru Feb 08 16:39:45 ah Feb 08 16:39:46 danijoo : are u android-developer from Google ? Feb 08 16:40:01 mmc we all are Feb 08 16:40:15 mmc, there arent any officials in here. Feb 08 16:40:43 i need to a official Feb 08 16:40:45 any official presence left long long ago Feb 08 16:40:49 an * Feb 08 16:40:54 mmc, why Feb 08 16:41:00 got banned? Feb 08 16:41:01 so there were officials around here? Feb 08 16:41:12 wonder why they got off lol Feb 08 16:41:32 realies, rats are leaving the sinking ship :D Feb 08 16:41:37 too many noobs Feb 08 16:41:53 yeah... Feb 08 16:41:54 and they weren't here in an official capacity Feb 08 16:41:55 mostly, the people who were here moved on, and weren't replaced Feb 08 16:41:58 they moved to #and-now-really-android-dev Feb 08 16:42:15 'plus' of course, everything important moved, briefly, to G+ Feb 08 16:42:23 danijoo : i want to say their about limitation on Iranian Android programmers we iranian programers are not Political Feb 08 16:42:26 G+ still alive? Feb 08 16:42:36 vigilancer: hence, briefly Feb 08 16:42:52 mmc, what? Feb 08 16:43:03 mmc: nobody in here is going to say or do anything about Google's corporate policy towards Iran Feb 08 16:43:04 mmc, no idea what that means. Feb 08 16:43:22 got it, just courious. so, no it is :) Feb 08 16:43:51 *curious Feb 08 16:44:25 in AS, when you have NO files / text editors open, double clicking on the screen toggles all the tool windows being shown or hidden. is there a way to keep that behavior even when a file is open ? Feb 08 16:44:32 anyone you'd talk to would do nothing about it either Feb 08 16:45:12 g00s, maybe you can assign a keyboard shortcut to it? Feb 08 16:45:23 or mouse button XY Feb 08 16:46:11 g00s: there is hotkey for that, can't recall. not sure about double click Feb 08 16:46:14 mmc: there are some things you should know. 1. Google never answers any requests, or fixes anything you ask for. 2. Google doesn't ever care about you. 3. Just give up. Feb 08 16:47:19 justjanne : yh i know because Google is part of SIA Feb 08 16:47:35 is google that bad? Feb 08 16:47:36 mmc: I can't publish apps via Google play either, unless I pay 100$ a year just to get a credit card. Feb 08 16:47:42 SIA ? Feb 08 16:47:48 And then the 25$ registration fee... Feb 08 16:48:00 justjanne, go ios ;D Feb 08 16:48:25 realises: would be cheaper, iOS accepts other payments than credit card. Feb 08 16:48:48 I thought it's a lot easier to publish apps on the play store... Feb 08 16:48:49 justjanne: visa electron counts as a 'credit card' for google play Feb 08 16:48:49 danijoo: how did you get a credit card, btw? If I remember correctly you were in Germany, too, right? Feb 08 16:49:04 justjanne: unless there's something I'm missing Feb 08 16:49:18 $100/yr for a credit card? Feb 08 16:49:21 sucks to be german :P Feb 08 16:49:24 g00s : i ment , Feb 08 16:49:24 America 's spy agency Feb 08 16:49:28 karhu: well, German debit cards don't even have a card number — they're not even part of the visa or MasterCard network. Feb 08 16:49:39 Usually. Feb 08 16:50:05 That's why I'm asking. Feb 08 16:50:07 Hello Feb 08 16:50:37 I know the cheapest is the Amazon credit card for 61$ a year, unless you ever had a loan with a bank, then Wüstenrot would be cheapest. Feb 08 16:51:09 mmc said that d.android.com was blocked though, i thought that was kinda weird Feb 08 16:51:14 justjanne, I have a free prepaid creditcard Feb 08 16:51:25 it only costs 2% to pay money in, but free for the rest Feb 08 16:51:35 danijoo: from where? All I could find had like 50% pay in fee Feb 08 16:52:08 http://www.kalixa.com/kalixa-pay/de Feb 08 16:52:10 justjanne : 100$ !!!! ? Feb 08 16:52:17 Ah, nice. Feb 08 16:52:34 Going to bookmark that. Feb 08 16:52:40 I also found this card working perfectly for paying hotels and stuff like that in UK Feb 08 16:52:47 justjanne : we have blocked even to use Google play Feb 08 16:53:09 mmc why? Feb 08 16:53:17 does anyone know of a usb hub with qualcomm's quick charge technology? Feb 08 16:53:26 I have to check if the NFC payment system I use can be extracted to get the normal card jumber Feb 08 16:53:30 *number Feb 08 16:53:50 justjanne, which one are you using. looking for one is on my todo list, too Feb 08 16:54:11 Good morning everyone :) Feb 08 16:54:16 but seems like every store in germany has its own one -_- Feb 08 16:54:25 ie REWE uses something else then EDEKA etc Feb 08 16:54:33 relies : becuase Feb 08 16:54:33 Google has sanctioned Iranian android programmers Feb 08 16:54:48 danijoo: I'd have to check, but it's the standard MasterCard paypass app, that connects to your giro and works just well. But they use instead a glued on NFC sticker. Feb 08 16:55:08 ALDI supports the standard stuff, and the edekas here do, too. Feb 08 16:55:14 And Android pay still is blocked here. Feb 08 16:55:18 nice. ill look into it Feb 08 16:55:43 I wonder when they unblock most of the Google now things here... Feb 08 16:55:52 Currently it's like only weather and traffic. Feb 08 16:55:58 And not even very well. Feb 08 16:56:29 did anyone use Selendroid ? ??? Feb 08 16:57:03 mmc you realize, that this isn't google's decision and more like international policy ? Feb 08 16:57:16 mmc you need to learn a little about how the world works Feb 08 16:57:26 g00s tell us Feb 08 16:57:37 g00s: it is Google's decision. Feb 08 16:58:02 Iran isn't officially embargoed, and hasn't been for years. Even the US lifted their unlawful embargo last year. Feb 08 16:59:09 man I hate how android randomly lowers my music volume because it thinks I'm listening too loud Feb 08 16:59:37 justjanne mmc i just found this http://www.theverge.com/2013/8/28/4669004/google-opens-play-store-to-iran-after-us-lifts-sanctions Feb 08 17:00:32 so i still don't understand why mmc can't reach developer.android.com, unless something is going on that end Feb 08 17:01:23 g00s : http://www.theverge.com/2013/8/28/4669004/google-opens-play-store-to-iran-after-us-lifts-sanctions is news not really Feb 08 17:02:08 where is right human ? Feb 08 17:03:54 mmc: Actually that's great news Feb 08 17:04:11 > 2013 Feb 08 17:04:14 Not really news Feb 08 17:05:16 Oh Feb 08 17:05:36 But wait. As for recently, it wasn't psosile for the iranians to buy from the play store Feb 08 17:06:05 mmc is saying he can't even access developer.android.com though Feb 08 17:06:17 loke' ' " you are right Feb 08 17:06:18 No wait... Sorry. I don't know about the play store, but github is still not accessible, as are plenty of thoer such sites, because Iran is still on that ridiulous "encryption export list" Feb 08 17:06:29 oh, that might be it Feb 08 17:06:37 Did you guys see this? https://www.reddit.com/r/Android/comments/44opi3/reddit_sync_temporarily_blocked_for_bad_api_usage/ Feb 08 17:06:42 that also prohibits information about how to use the encryption libraries. Feb 08 17:06:47 therefore obviously d.android.com Feb 08 17:06:53 Insanity Feb 08 17:06:56 TacticalJoke: yeah, Doze gone bad Feb 08 17:06:56 The author of the Reddit app seems to think that Doze Mode caused the issue of too much traffic. Feb 08 17:07:09 justjanne: I did see your comments in there. :D Feb 08 17:07:20 g00s : in developr.android.com i got this : Your client does not have permission to get URL / from this server. (Client IP address: *********) Feb 08 17:07:20 We're sorry, but this service is not available in your country. That’s all we know. Feb 08 17:07:22 TacticalJoke: Yeah, it invokes the timer on every device every 15min at max, aligned to the quarter hour Feb 08 17:07:24 I seem to know everyone's Reddit username inherently, for some reason. Feb 08 17:09:00 interesting how almost every app from the google play store is also available on myket.ir Feb 08 17:09:38 but not every Feb 08 17:10:34 so, in Iran, you have access to all free Google Play Store apps without encryption, according to Google? Feb 08 17:10:35 justjanne: What is myket.ir? Feb 08 17:11:19 an iranian app store that I heard of Feb 08 17:12:03 me and my wife has considered going to Esfahan on vacation. Feb 08 17:12:10 Looks amazing Feb 08 17:12:35 Or Isfahan, however you want to transliterate Feb 08 17:13:10 loke ' ' : i am Isfahanian Feb 08 17:14:50 mmc: Cool! Perhaps you can recommend a good hotel? I found exactly three web sites, two of which were in Farsi only. :-( Feb 08 17:15:34 yes i can loke ' ' Feb 08 17:15:59 mmc: Why not use tab-completion? It's "loke``". :D Feb 08 17:16:03 mmc: luckily, I’m not in the US, and therefore not bound to their export rules. I’ll try to download all of d.android.com into one folder, and publish it as zip for you Feb 08 17:16:03 Hotel Abbasi is the best botel in IRAN and it is very nice in Esfahan Feb 08 17:16:34 mmc: Ah yes. That's the only worn with an english web site that I found. :-) Feb 08 17:16:48 mmc: It's decently cheap by international standards too. Feb 08 17:17:10 They claim to be the world's oldest hotel? (a lot of things seems to be the world's oldens in Iran) Feb 08 17:17:46 loke`` : i can help you in Esfahan , wait please we have to chat in pv Feb 08 17:21:38 is there a way to get the currently selected item from a Nav drawer? Feb 08 17:22:08 i am using jni on an embedded device with a watchdog. I am trying to read/write values to the watchdog, which requires pointers to specific addresses. When reading the address, the app crashes with a signal 11 (SIGSEGV). Am I just not allowed to do this? Feb 08 17:22:57 lol http://motherboard.vice.com/read/a-big-phone-works-for-everyone-but-you Feb 08 17:22:58 I'm trying to figure out how to set the default layout fragment and so far no luck, so I'm trying this route Feb 08 17:23:14 "That brings us to the economic explanation, and my own personal conspiracy theory to explain the rise of the big phone: There are increasingly powerful interests that want us to drop our phones so they can fix them and sell us new ones." Feb 08 17:23:59 HACKhalo2 multiple items can be selected, so 'current item' doesn't make much sense Feb 08 17:24:16 good point Feb 08 17:32:42 son of a gun Feb 08 17:34:51 there we go Feb 08 17:36:09 the default layouts, while nice, suck for modifying using tutorials online Feb 08 17:39:43 Has anyone used the 'icon' param for GCM notifications? Feb 08 17:39:59 Sounds like it'll just grab something out of your drawables? But I'm not really sure the specs on this Feb 08 17:48:45 what is the best way to Update an object passed through Parcelable intent Feb 08 17:49:43 min2: How do you mean? Feb 08 17:51:06 an object passed through parcelable is copied. if you want the edited version available for the sender, you need to pass it back with onActivityResultr Feb 08 17:52:45 danijoo : is there any other approach to handle this except onActvityResult Feb 08 17:53:10 min2: kinda. You can start a service and connect both activities to it, and share references through that. Feb 08 17:55:05 or static variables or busses Feb 08 17:55:27 whoa...service won't it impact my app performance.. Feb 08 17:55:37 Don’t use statics to communicate Feb 08 17:56:17 they work fine if done right Feb 08 17:56:42 if we will consider performance and memory which one is best Feb 08 17:56:57 They only work fine when you’re lucky Feb 08 17:57:12 lol Feb 08 17:57:23 s/lucky/doing it right Feb 08 17:57:24 :p Feb 08 17:57:41 its just easy to fuck this up Feb 08 17:57:56 No, lucky. They will crash on weird devices out in the wild and you’ll have no way to test or reproduce it. Feb 08 17:58:09 min2, considering all this, onActivityResult is the best ;) Feb 08 17:58:11 jaana: That's a bit OTT. It's not hard to use statics for something like this if you're sensible. Feb 08 17:58:20 At the very least, make your static immutable. Feb 08 17:58:27 In fact, I think the framework team even recommends it (though I know that doesn't mean much). Feb 08 17:59:39 static is easiest one.. :P Feb 08 17:59:56 Yeah, there are cases where the "use a static field" solution is by far the simplest solution. Feb 08 18:00:08 I'm not happy about that, but it's true. Feb 08 18:00:53 Of course, we have to be sensible and realise that if our process is killed then our statics will go down. (And that if it's not killed then our statics will stay up.) But in many cases that is no problem at all. Feb 08 18:01:01 static variables don't crash in the wild Feb 08 18:01:05 or on weird devices Feb 08 18:01:18 Mutable static variables certainly cause crashes Feb 08 18:01:28 sure, but not as a result of weird device Feb 08 18:01:28 does anyone know of an applocker that works with the nexus 6p fingerprint scanner? (NOT just samsung)... i've only found one that works for nexus 6p so far (cm security) but it has ads that can't be removed (even after purchase) and they're very obtrusive. too bad as cm is great otherwise... Feb 08 18:01:29 s Feb 08 18:01:40 jaana, if done wrong yes. Feb 08 18:01:43 I meant weird as “exotic" Feb 08 18:01:48 or exotic Feb 08 18:01:55 static variables do not crash on exotic devices Feb 08 18:02:01 exotic as in “hardly ever used and can’t get a device to test on" Feb 08 18:02:06 danijoo: I agree. I think the anti-static thing is a bit overstated in general. Feb 08 18:02:16 little memory, weird configurations (double sd cards on odd networks, etc...) Feb 08 18:02:28 I’ve seen all of these happen Feb 08 18:02:33 but those do not influence the behavior of the VMM Feb 08 18:02:45 No but they exercise code paths you don’t think of testing Feb 08 18:03:15 jaana, all you are saying leads to: if the dev did it wrong :p Feb 08 18:03:20 jaana: The alternatives are far from perfect too. Feb 08 18:03:31 It's not like there's some magical solution without drawbacks. Feb 08 18:04:11 I have a case where I have an object > 1mb that i have to pass from time to time Feb 08 18:04:20 and I do it via a static Feb 08 18:04:28 because parcelable doesnt work for >1mb Feb 08 18:04:36 never experienced a crash related to that ever Feb 08 18:12:34 It's a shame Cedric isn't here. :D He seems to really hate static fields. Feb 08 18:12:51 At least mutable ones. Feb 08 18:14:20 do singletons count ? :p Feb 08 18:15:09 Yeah, he seems to hate `static` there too: http://beust.com/weblog/2011/03/10/rehabilitating-the-singleton-pattern/ Feb 08 18:15:19 "Singletons are fine as long as you don’t implement them with static" Feb 08 18:16:05 he must hate the ApplicationClass.getApplication() strategy everyone uses then :p Feb 08 18:19:11 I'm getting this error in Android Studio Feb 08 18:19:13 Could not find any version that matches com.google.maps.android:android-maps-utils:0.4.+ Feb 08 18:20:10 android-maps-utils was working fine at version 0.4.+, but today it started complaining Feb 08 18:20:23 anyone else run into this issue? Feb 08 18:21:27 dont use + in dependencies Feb 08 18:22:35 how can I find the exact version? Android Studio sometimes displays it, but not for android-maps-utils Feb 08 18:22:43 * g00s uses + \o/ Feb 08 18:23:15 lexton if you say 'gradle dependencies' on command line , it will show resolved version Feb 08 18:23:49 unless its not resolved g00s ^^ ´ Feb 08 18:25:36 lexton, you can also look them up at jcenter or mavencentral or whereeveer you have it from Feb 08 18:26:06 is what is 'com.google.maps.android:android-maps-utils' anyhow Feb 08 18:26:34 I'm using mavencentral Feb 08 18:26:48 I haven't setup gradle at the command line, need to do that Feb 08 18:26:59 compile 'com.google.maps.android:android-maps-utils:0.4+' Feb 08 18:27:05 not 0.4.+ Feb 08 18:28:25 cool TIL about that library, which can do heatmaps Feb 08 18:28:36 yes I'm trying that now, thanks Feb 08 18:28:50 0 errors... Feb 08 18:28:55 \o/ Feb 08 18:30:09 danijoo have you seen this https://github.com/nebula-plugins/gradle-dependency-lock-plugin Feb 08 18:31:51 Hey how do I update a current RecyclerView to display the new data that I have given it? I use RecyclerView.notifyDataSetChanged(); but it does not seem to update. Feb 08 18:32:13 you do it for adapter Feb 08 18:32:37 Ashiren: Sorry I mean the adapter... I have a custom built adapter and it worked fine Feb 08 18:32:47 but now I want to add a new list of data to it Feb 08 18:33:01 i bet youre instancing new adapter Feb 08 18:34:19 Ashiren: Nope I have a global adapter that gets instantiated in the onCreate ...Its bad practice but I just want to test something Feb 08 18:34:32 I use the same adapter Feb 08 18:34:57 well it must be something silly doesnt it Feb 08 18:44:42 Does the onBindViewHolder run only once when the Adapter gets binded to a RecyclerView ? Feb 08 18:45:31 everytime viewholder gets visible Feb 08 18:45:34 it runs for every visible items Feb 08 18:45:51 so couple of times on start and then while scrolling for every new item Feb 08 18:46:18 cart_man, show your code if you want help.(as always... ) Feb 08 18:47:03 Ok and what about the virtual getItemCount() function... My RecyclerView.Adapter will start off with nothing in it so asking the List.Size() will result in a null object Feb 08 18:47:21 The plan is to just update it later when data is loaded Feb 08 18:47:28 danijoo: Will do in a sec Feb 08 18:47:38 if you call size() on a null object, the app will crash. Feb 08 18:48:52 danijoo: Lol yea quite dramatically Feb 08 18:51:10 and the solution is... Feb 08 18:51:43 myList?.size() ?: 0 Feb 08 18:52:02 no Feb 08 18:52:13 try { return list.size(); } catch ( NullPointerException e ) { return 0; } ! Feb 08 18:52:16 im so smart Feb 08 18:52:26 if (myList==null) { return 0; } else { myList.Size(); } Feb 08 18:52:34 would that not also work Feb 08 18:52:35 ? Feb 08 18:52:45 but its not as fancy as miine Feb 08 18:52:58 Ashiren: haha I bet its more efficient though Feb 08 18:53:01 Ashiren, try/catch is a big performance hit Feb 08 18:53:07 heh Feb 08 18:53:21 btw. wasnt that java 8 thing Feb 08 18:53:56 no. android cant java8 Feb 08 18:54:09 wtf is myList?.size() ?: 0 Feb 08 18:54:38 Ashiren, the same what cart_man wrote in a oneliner Feb 08 18:55:43 but now so java eh Feb 08 18:55:45 do apps behave differently on different models of phones? Feb 08 18:55:52 yes Feb 08 18:55:53 Ashiren, no java Feb 08 18:55:56 ya Feb 08 18:56:06 yes @ me? Feb 08 18:56:19 yes Feb 08 18:56:26 NonSecwitter: Yea... The way they pop in and out of intents ... is the first difference I saw Feb 08 18:56:33 NonSecwitter, they crash more often on samsung if that counts :p Feb 08 18:56:46 hmmm. Feb 08 18:56:49 danijoo: Yea I have had that on tablets ... something about 4.4.3 Feb 08 18:56:52 FML Feb 08 18:56:57 I have a cheapo HTC Desire 610 Feb 08 18:56:59 5+ works find Feb 08 18:57:04 Apps seem to behave strangely on it Feb 08 18:57:43 it’s entirely possible they didn’t test it on it Feb 08 18:58:01 but define “behave strangely" Feb 08 18:58:18 Sunrise calendar creates 25 instances of national holidays Feb 08 18:58:28 most recent example Feb 08 18:59:25 Would the calendar not be a HTC built app ? Feb 08 18:59:35 or Standard Android supplied app Feb 08 18:59:48 Sunrise connects to GMail and Exchange Feb 08 19:00:49 thats not a bug, its a feature Feb 08 19:01:01 youll never forget the holidays and accidently go to work Feb 08 19:01:14 i don’t think that’s an HTC thing Feb 08 19:01:27 maybe its a sync problem Feb 08 19:01:37 I have Google Calendar and a bunch of things that hook into it, and i get several instances of holidays too Feb 08 19:01:39 danijoo: I am an android wannabe programmer so holidays do not matter anyway Feb 08 19:01:40 holidays from multiple accounts or something like that Feb 08 19:01:55 yeah Feb 08 19:02:14 also my calendar account has several calendars on it, and each of those have some holidays, etc Feb 08 19:02:56 anybody knows this error? http://codepad.org/0CQHSDUv Feb 08 19:03:56 looks like you try to use host gpu but it doesnt find what it needs to do so Feb 08 19:06:46 danijoo: i tried without it but doesn't work . my problem is when i run emulator my cup stick to 100% in version 1.4 android studio i have an option that i add to disable audio but in version 1.5 it disappeared . now i try run emulator from command line Feb 08 19:16:49 http://www.cyrilmottier.com/2012/05/03/splash-screens-are-evil-dont-use-them/ Feb 08 19:17:14 <_0xbadc0de> guys Feb 08 19:17:21 <_0xbadc0de> just enlighten me a bit Feb 08 19:17:30 <_0xbadc0de> android apps are java? Feb 08 19:17:42 <_0xbadc0de> if thats true, then how come Qt has a android thing somewhere Feb 08 19:17:58 they are allowed to have things in places Feb 08 19:18:19 cause there’s also the NDK, which allows C/C++ code to interop with Java code Feb 08 19:19:15 <_0xbadc0de> ah ok Feb 08 19:25:51 g00s, old Feb 08 19:25:57 i think you saw the colt's post ;) Feb 08 19:26:30 How does one get the size of the screen again pragmatically ? Feb 08 19:27:17 _0xbadc0de: Is the Qt not in C++ Feb 08 19:28:10 adq yeah .. although the site won't load for me, maybe blocking vpn or something Feb 08 19:34:21 cart_man: I don't know in the context of android but i know Qt has some QML thing and I know they were using it for other phones... not very clear on what it is or how it works Feb 08 19:35:02 does anyone know how @IntDef works with enums? Like how does the @interface get associated with the @IntDef? Feb 08 19:35:57 you list the different things that the @interface can have Feb 08 19:36:43 I'm looking at this example https://developer.android.com/tools/debugging/annotations.html#enum-annotations Feb 08 19:36:52 the interface is empty Feb 08 19:38:08 Those annotations are so ugly. :s Feb 08 19:38:31 huh. I really, really, really hope they’re not just saying that the closest @IntDef is the one used Feb 08 19:38:35 @interface is just how you define annotations in java Feb 08 19:38:42 no, we know that. Feb 08 19:39:02 we’re wondering how the NavigationMode interface knows which set of values to use Feb 08 19:39:05 yeah I'm not sure if this is my lack of knowledge in how to create generic annotations or if this is some android thing Feb 08 19:39:36 I thought, "well maybe it's a naming convention based thing", but then the example below it has a slightly different naming for its members Feb 08 19:39:40 it uses the @IntDef that is declared in scope Feb 08 19:39:49 but which one? Feb 08 19:39:51 so you can only have one per class? Feb 08 19:39:57 what if I have two in the same class? Feb 08 19:40:00 @IntDef(...) public @interface NavigationMode Feb 08 19:40:05 that is what it is Feb 08 19:40:07 oh Feb 08 19:40:13 okay :] Feb 08 19:40:16 which is why I said I really, really hope that’s not how they do it Feb 08 19:40:22 that is how java works Feb 08 19:40:24 the comments threw me off Feb 08 19:40:29 it's a single statement Feb 08 19:40:35 the @IntDef is the annotation for the public @interface Feb 08 19:40:38 correct Feb 08 19:40:47 that makes a lot of sense now Feb 08 19:40:51 so what if I have two in the same class? Feb 08 19:41:02 Just use enums. #yolo Feb 08 19:41:09 @grekkos Feb 08 19:41:09 s73v3r: should still work Feb 08 19:41:13 doesn't matter Feb 08 19:41:21 TacticalJoke: hah, I actually do in some places Feb 08 19:41:28 that's like saying, I have public void foo and public void bar, and now I have 2 @Override annotations Feb 08 19:41:38 the annotation applies to the statement at which it's applied Feb 08 19:42:03 s73v3r: it's a single statement @IntDef() public @interface MyInterface {} Feb 08 19:42:11 yeah, i see that now Feb 08 19:42:14 yeah Feb 08 19:42:17 that tripped me up hugely Feb 08 19:42:27 that just seems like someone wanted to be clever Feb 08 19:42:34 hah Feb 08 19:42:48 it was very shady looking when I didn't recognize the pattern Feb 08 19:43:54 hey folks, I am trying to have a switch change a bool, but i keep getting access from inerr clas set it as final .. i dont want it final .. i want it togglable .. http://pastebin.com/bxgGPyBj Feb 08 19:44:10 you can’t Feb 08 19:44:14 ho can i set that var .. so i can check its value latter Feb 08 19:44:22 later Feb 08 19:44:38 AtomicBoolean? Feb 08 19:45:04 ghostd0g, it's something you never want to do Feb 08 19:45:16 as it's in a callback, you don't know when the value will be updated Feb 08 19:45:16 grekkos: That'd be a really bad solution here. AtomicBoolean is a concurrency thing. Feb 08 19:45:19 yeah it sounds like you don't need to be able to change it Feb 08 19:45:25 it’s because the inner class is just capturing the value, not the reference Feb 08 19:45:41 TacticalJoke: yeah I wasn't getting the full picture at first Feb 08 19:46:16 i have another botton that checks if its set true if so it does something Feb 08 19:46:17 instead of making another variable, you could always just check, s.isChecked Feb 08 19:46:41 yes but i can use s.check in the button? Feb 08 19:46:52 should be able to Feb 08 19:47:03 lrmi tru again Feb 08 19:47:10 might need to make it final Feb 08 19:47:11 ack cant type Feb 08 19:47:12 Make `s` a field. Then you can query it whenever you want. Feb 08 19:47:20 The problem is that you're trying to use local variables. Feb 08 19:47:29 ah that's why Feb 08 19:49:43 s or swt ? Feb 08 19:49:49 s Feb 08 19:49:57 if you do that, then there’s no reason for swt to exist Feb 08 19:50:29 ie Field s = (Switch) findViewById(R.id.rotate); ? Feb 08 19:50:38 no Feb 08 19:50:40 oh i see what you're trying to do Feb 08 19:50:51 no field means that it's declared in the class's scope Feb 08 19:50:54 it's a member variable Feb 08 19:51:54 I kinda wish Android tutorials never used anonymous classes. They cause so much confusion. It'd probably be better to start people off with *named* inner classes, defined at the member level, and *then* introduce them to the shorthand version. Feb 08 19:52:09 hehe Feb 08 19:52:35 I think I used the Udacity tutorial to learn android at the beginning Feb 08 19:52:42 just that first project Feb 08 19:52:47 something about a weather app Feb 08 19:53:00 but I had some prior java knowledge Feb 08 19:53:00 Sunshine ! Feb 08 19:53:02 I jumped from C#/.NET, so for me the language and BCL were easy to pick up. Feb 08 19:53:03 yes Feb 08 19:53:04 haha Feb 08 19:53:10 yeah Feb 08 19:53:58 I think I originally learned using C++ but before android mostly was working in PHP/JS... I bounce around a lot though between languages Feb 08 19:53:59 unfortunatly i am coming from javascript land .. been messing with node.js for last bit .. so java is a bit confusing Feb 08 19:54:04 yeah Feb 08 19:54:09 JS is loosey-goosey Feb 08 19:54:13 It gets easier, ghostd0g. It's quite a simple language on the whole. Feb 08 19:54:24 yeah it's not too bad actually Feb 08 19:54:47 used to hate it in college but now I actually really like the language Feb 08 19:54:51 ok i am dumb .. i dont get this field thing Feb 08 19:55:17 so to make it a field Feb 08 19:55:32 you have to remove the *declaration* from the method... i'm guessing it's onCreate() or something Feb 08 19:55:41 yeah Feb 08 19:55:47 and move it outside of the function... usually near the top of the class people will declare their fields Feb 08 19:55:47 need to go through some java basics first... Feb 08 19:56:10 then you initialize it in the onCreate() by saying s = (Switch) findViewById(...); Feb 08 19:56:14 so stick Switch up top ? Feb 08 19:56:26 ahh ok Feb 08 19:56:36 yeah I would run through some basic java object oriented programming articles Feb 08 19:57:08 that's what we call a "field" it's a variable that belongs to the class, and all methods in that class can access it Feb 08 19:57:55 so Switch s; up top Feb 08 19:58:11 and s = (Switch) findViewById(R.id.rotate); in my oncreate Feb 08 19:58:13 Yeah, but also with `private`. Feb 08 19:58:26 Fields should almost always be `private`. Feb 08 19:58:38 ok that makes sense Feb 08 19:58:48 thank you Feb 08 19:59:05 Though I guess people might argue about "almost always". Perhaps "usually". Feb 08 19:59:19 haha Feb 08 19:59:24 yeah Feb 08 19:59:32 testing it now Feb 08 19:59:52 if it's not final it should probably be private Feb 08 20:00:01 not to say that it can't be both Feb 08 20:00:38 it depends on where you fall on the topic of accessor methods for simple things Feb 08 20:01:01 yeah Feb 08 20:01:07 I like to encapsulate everything Feb 08 20:01:24 sweet ! works Feb 08 20:01:28 thank you Feb 08 20:01:43 omg i have spent a few hours screwing with that Feb 08 20:02:07 the good news is you've learned something new Feb 08 20:02:18 the bad news is that there are many more hours ahead of you Feb 08 20:02:22 yeah lol Feb 08 20:02:36 android is a bit weird to be honest Feb 08 20:02:44 kinda confusing Feb 08 20:02:52 weird? not in the least Feb 08 20:02:52 ghostd0g: Like they said, though, you need to learn Java. Feb 08 20:03:01 oh yes i do Feb 08 20:03:02 at least what you've encountered is not the least bit weird, but just java basids Feb 08 20:03:03 basics Feb 08 20:03:04 Android is difficult, and mastery of Java is a must. Feb 08 20:03:12 most of the stuff is actually pretty straight forward, some of it is a little nutty Feb 08 20:03:27 yeah, I wish I had some java book to recommend Feb 08 20:03:36 actually I might have one but I forgot the name Feb 08 20:03:39 thinking in java Feb 08 20:03:45 Head First Java is ok. Thinking in Java is good Feb 08 20:03:46 and java concurrency in practice Feb 08 20:03:53 recommended for all java developers, android or not Feb 08 20:04:58 thinking in java... hmm I'll have to check that out. some friends are trying to learn java Feb 08 20:05:06 i wrote those down Feb 08 20:05:29 I gave them head first but then when I started reading through it I actually didn't like it that much Feb 08 20:06:07 i would mind a step by step .. ie teach yourself java in x amount of days .. i had a C book that halped me alot Feb 08 20:06:32 start with basics and work my way up Feb 08 20:06:43 usually teach yourself x in y days is kind of a scam (in my opinion) Feb 08 20:07:08 ghostd0g: yeah I had a java textbook that somebody recommended if I come across the name of it again I'll let you know Feb 08 20:07:09 i just like the structure Feb 08 20:07:26 start with hello world Feb 08 20:07:44 i usuall skim them Feb 08 20:08:54 I think it was this: http://www.buildingjavaprograms.com/ Feb 08 20:10:39 i am esentially trying to build a android battleship game, sorta learning as i go along Feb 08 20:11:10 oh interesting Feb 08 20:11:20 That's a nice app idea. Feb 08 20:11:31 Simple and fun. Feb 08 20:11:36 I taught a basic java class and I had them write a battleship game too Feb 08 20:11:55 i am using points to track ships Feb 08 20:12:19 makes sense Feb 08 20:12:30 so i hava ships class that has and array of points .. then i push that to a fleet Feb 08 20:12:33 there are many different ways to do it Feb 08 20:12:39 nice Feb 08 20:12:46 fleet has a bigger array Feb 08 20:13:14 Is it a one-player (against the computer)? Feb 08 20:13:23 then i check if the chord is contain Feb 08 20:13:31 will be vs cpu atm Feb 08 20:13:39 but eventually pvp Feb 08 20:13:49 i haveny figure out the ai yet Feb 08 20:13:54 have not Feb 08 20:14:03 think i am just going random Feb 08 20:14:07 you can start out simple Feb 08 20:14:09 yeah Feb 08 20:14:44 i will put it up on git hub when i am done Feb 08 20:15:01 let you gus rip it apart Feb 08 20:15:05 :) Feb 08 20:15:09 guys Feb 08 20:18:43 How do I set a ImageView's Source to nothing ? Example ImageView.setSource(null); or something similar Feb 08 20:19:09 cart_man: `imageView.setImageDrawable(null);` Feb 08 20:28:26 TacticalJoke: Thanks ! Feb 08 20:28:35 TacticalJoke: Have you implemented GCM? Feb 08 20:30:01 Hey people, I have small auto-completion problem in Linux Feb 08 20:30:10 I can have auto complete for the adb commads Feb 08 20:30:38 but not for the paths, like in case of adb install app/build/ etc. won't complete itsself Feb 08 20:47:51 ask #linux Feb 08 20:49:00 OK, pfn Feb 08 20:49:08 but android is part of linux Feb 08 20:49:12 :v Feb 08 20:49:13 no Feb 08 20:49:16 don't be stupid Feb 08 20:49:28 Although the path completion works for scp, ls etc. Feb 08 20:49:41 I thought it to be naturally some SDK related issue Feb 08 20:50:28 bash-completion is individual for each app/command Feb 08 20:50:39 it is adb responsibility to support that Feb 08 20:50:42 Precisely, that's what I had in mind Feb 08 20:50:58 I mean I can have de to devices Feb 08 20:51:17 easily but adb install ap doesn't become app/ Feb 08 20:51:20 so google people didnt think of completing paths Feb 08 20:51:47 i bet it expects a file ended with .apk Feb 08 20:52:00 nope Feb 08 20:52:05 it's #ubuntu Feb 08 20:52:05 works perfectly here Feb 08 20:52:06 go ask them Feb 08 20:52:16 its an issue of your terminal / console whatever Feb 08 20:52:18 not of adb Feb 08 20:52:25 has absolutely 0 to do with adb Feb 08 20:52:28 and android Feb 08 20:52:31 huh Feb 08 20:53:29 Ubuntu sux FYI Feb 08 20:53:49 Either use Fedora or openSUSE Feb 08 20:53:49 ubuntu is great Feb 08 20:53:50 Does any distro not suck? :/ Feb 08 20:54:01 vacuumOS Feb 08 20:54:06 lol Feb 08 20:59:39 Looney you can try fzf, they have an android port Feb 08 20:59:51 i use it on OSX all the time, not sure how well the android one works Feb 08 20:59:57 since i think it needs ncurses Feb 08 21:00:14 fzf is super awesome :D Feb 08 21:01:10 fzf? Feb 08 21:02:04 not the same as autocomplete, but ... a helper in that area :D Feb 08 21:02:12 https://github.com/junegunn/fzf Feb 08 21:05:54 Looney oh, you want to autocomplete paths on linux that are on your device Feb 08 21:06:03 Linux Feb 08 21:06:05 eeyup Feb 08 21:06:09 ok sorry, fzf won't do that - it runs on the device though Feb 08 21:07:49 Has anyone used the 'icon' parameter when implementing GCM? Feb 08 21:08:26 I'm super confused why you don't just always get onMessageReceived anymore when setting up pushes. Is Google trying to be nice and make the notification for you if the app is inactive? Feb 08 21:08:37 Or is it that your app can't receive pushes anymore when it's not active - an SDK change, perhaps? Feb 08 21:09:08 I implemented pushes a few years ago, now reimplementing it seems that my receiver is not always called. Do you guys know about this? Feb 08 21:10:34 anyone know any good viewpager indicator libraries with circle indicators? everything i'm finding looks old Feb 08 21:11:43 circle indicators are old Feb 08 21:11:46 no one does 'em anymore Feb 08 21:12:05 gold 6p's are back in stock!!! Feb 08 21:12:10 so tempting Feb 08 21:12:22 dude i know... I've visited this page so many times Feb 08 21:12:38 the 5x's are also retardedly cheap Feb 08 21:12:44 the 5x sucks Feb 08 21:12:47 returning the one I got Feb 08 21:12:48 can't make up my mind!!! Feb 08 21:12:52 oh really Feb 08 21:12:54 get a 6p Feb 08 21:12:57 5x is defective Feb 08 21:13:05 and lg/google are putting no priority into fixing it Feb 08 21:13:13 defective how? Feb 08 21:13:32 Where all my push notification / GCM implementers at? Feb 08 21:13:32 it has unacceptable lags and delays while using the phone normally Feb 08 21:13:40 every review of the 5x ever mentions this over and over Feb 08 21:13:43 I thought they were being picky Feb 08 21:13:51 it got decent reviews Feb 08 21:13:59 only complaint I saw was that battery life was meh Feb 08 21:14:19 look at longer than 5-minutes using the phone reviews Feb 08 21:15:29 http://www.androidcentral.com/nexus-5x-three-months Feb 08 21:16:34 every single one of those 3 month followups mentions unusable lag Feb 08 21:16:46 I only used the phone for 2 days and already experienced those lags Feb 08 21:35:59 anyone know why drawing a ProgressBar directly on a canvas doesn't animate? Feb 08 21:36:19 i.e. pb.draw(canvas) Feb 08 21:39:14 Is it worth getting the 5x if you have a 5 from a dev's perspective? Feb 08 21:39:25 ok actual non jav question .. i am getting a weird warn/error in android studio it says that Set arraySet = new ArraySet(); <-- call requires an api level 23 and mine is set to 21 .. it worked a minute ago .. is this a android studio thing ? Feb 08 21:39:40 the 5x has a fingerprint sensor. if your app could use it, then yes Feb 08 21:40:51 ghostd0g: ArraySet was added in API 23 Feb 08 21:40:57 hmm Feb 08 21:40:59 ok Feb 08 21:41:06 so if i am in 21 Feb 08 21:41:17 what would the equiv method be ? Feb 08 21:41:30 or just set it to 23 and be done Feb 08 21:42:25 Can I set any action onInstall app? Feb 08 21:42:36 For example creating file when app installs Feb 08 21:42:50 app's installed* Feb 08 21:43:26 ghostd0g: there's hashset but it's not a memory efficient as ArraySet Feb 08 21:44:04 they should be find with HashSet Feb 08 21:44:07 fine Feb 08 21:44:25 ok .. lets say i do change the api to 23 .. where do i do that in android studio Feb 08 21:44:39 i am gonna do the hash sets Feb 08 21:45:59 ghostd0g: you change your build settings in the build.gradle file Feb 08 21:46:07 thank you Feb 08 21:46:22 android studio is counter intuitive Feb 08 21:46:35 ie ctrl+y doesnt undo Feb 08 21:46:45 that was anoying to learn Feb 08 21:47:02 as there a way to hide tabs in AS ? Feb 08 21:47:07 (editor tabs) Feb 08 21:47:18 Can anyone help me with this problem? Feb 08 21:47:19 pretty sure ctrl+z is universally the undo keystroke Feb 08 21:47:34 sorry meant redo Feb 08 21:47:42 ctrl+y doesnt redo Feb 08 21:48:06 in as it ctrl+sft+z Feb 08 21:48:52 Ozymandy: you cant hook into app installs. but you write some logic to write a file if it doesnt exist on app launch Feb 08 21:49:05 ctrl+y loock like it does line cut ? Feb 08 21:50:02 sorry about the typos .. my fingures are retarded today Feb 08 21:50:14 fingers Feb 08 21:50:56 why wouldn't dexInProcess work with gradle plugin 2.0.0-beta2.. I keep getting "dexInProcess flag ignored, reverted to out of process" Feb 08 22:02:35 because in-process eats too much ram Feb 08 22:12:10 how do you set up an emulator with apps like chrome Feb 08 22:14:42 I'm getting "Long monitor contention" during network I/O, for the obvious reason that the network call is taking a long time. Feb 08 22:15:01 Unfortunately, I need to lock on call because if I don't I get "inbalanced enter/exit" errors with okhttp Feb 08 22:17:49 Do I need some permissions for write in internal memory? Feb 08 22:18:40 Hello, Im extending FragmentActivity as MainActivity and initializing my Fragment class onCreate(), but It's "working" but it draws the fragment before the data has been placed on it and i'm not sure how to fix it, because the data is retrieved from the fragment class with AsyncTask, this works, it's even changing the values on the view but it doesnt look like it's updating the fragment or something Feb 08 22:19:58 SlidingTabsFragment fragment = new SlidingTabsFragment(); // SlidingTabsFragment takes care of fetching the data and everything else but it goes to the next line: transaction.replace(R.id.content_fragment, fragment); before it's done or something? Feb 08 22:20:27 Still having some odd trouble catching a NPE here -- shouldn't the finish() statement on line 9 here end the execution? http://pastebin.com/vWAK3VC6 Line 6 ends up logging, but then I get a NPE crash on line 15 .. I hit OK once the crash happens in the app, and then the intent on line 8/9 goes and fires.. not sure why line 15 even executes Feb 08 22:20:28 it's not updating the Fragment/View Feb 08 22:20:36 it’s async. so it’s not going to wait Feb 08 22:20:45 s73v3r: so, what do i do? Feb 08 22:21:25 when your async task finishes, send the results back to the fragment, and have it update the widgets in it’s view Feb 08 22:21:44 there will be time when the fragment isn’t populated. you can put up a spinner while you wait Feb 08 22:21:50 this transaction.replace(R.id.content_fragment, fragment); onProcessFinish Feb 08 22:21:51 ? Feb 08 22:22:00 I actually tried that Feb 08 22:22:04 that has absolutely nothing to do with it Feb 08 22:22:07 do not touch that line Feb 08 22:22:07 but idk how to instantiate the Fragment that way Feb 08 22:22:30 creating the fragment is not your problem Feb 08 22:22:41 if you want, post your code Feb 08 22:22:42 yea it's updating the view Feb 08 22:23:10 the other thing is that you should not be using AsyncTask. but that’s beside the point Feb 08 22:23:16 why? Feb 08 22:23:28 everyone told me to use it Feb 08 22:23:28 there are many, many resources out there that will explain that Feb 08 22:23:34 who’s everyone? Feb 08 22:23:41 can't remember but it was here Feb 08 22:23:46 also every good tutorial has it Feb 08 22:23:48 and books Feb 08 22:23:48 i doubt that Feb 08 22:24:01 if they’re using AsyncTask for web requests, then they’re not good Feb 08 22:24:18 web requests? Feb 08 22:24:26 isn’t that what you’re doing? Feb 08 22:24:32 i never said that Feb 08 22:24:40 Twirl an easy way is to use IntentService for web requests Feb 08 22:24:51 you can punt a result to your UI using greenrobot eventbus Feb 08 22:25:05 no i don't want that Feb 08 22:25:12 either way, what do you do at the end of the asynctask? Feb 08 22:25:13 Twirl look at the dev summit video on app architecture Feb 08 22:25:18 i just want to know how to update my fragment after the asynctask is done Feb 08 22:25:38 it puts everything in a recyclerview Feb 08 22:26:04 and we’re asking you what you’re doing at the end of the AsyncTask Feb 08 22:26:04 that part works it's just not updating the fragment or view or something Feb 08 22:26:09 you’d best show your code Feb 08 22:26:12 I just told you Feb 08 22:26:32 are you calling notifyDataSetChanged on your recyclerview adapter? Feb 08 22:26:47 no but that part is working Feb 08 22:26:53 post your fragment Feb 08 22:27:21 it's big and it many files Feb 08 22:27:28 the question is pretty simple Feb 08 22:27:35 no, it’s not Feb 08 22:27:47 post the fragment, and maybe the AsyncTask, so we can see the code Feb 08 22:27:56 you don't have to see the code to answer "How to update the fragment after asynctask is done" Feb 08 22:28:04 we’ll be able to see what’s wrong in 2 seconds Feb 08 22:28:12 whats wrong with what? Feb 08 22:28:17 i just told you everything works Feb 08 22:28:26 it clearly isn’t working, or you wouldn’t be asking Feb 08 22:28:32 lol Feb 08 22:28:46 everything works, i don't know how to update the fragment after asynctask is done Feb 08 22:28:52 this is embarassing, I think my pinky toe is broken Feb 08 22:28:55 I stubbed it Feb 08 22:28:55 in onPostExecute Feb 08 22:29:04 against the door way. Now I can't walk at all Feb 08 22:29:13 Twirl docs clearly say onPostExecute Feb 08 22:29:17 Guys. I create file. And write to it, but after restart file is clear Feb 08 22:29:21 oh sorry s73v3r Feb 08 22:29:23 yes i know but how to update the fragment? Feb 08 22:29:23 How to fix it? Feb 08 22:29:36 i just told you: you do it in onPostExecute Feb 08 22:29:39 Twirl ok, this game got boring Feb 08 22:29:41 i know WHERE i dont know HOW Feb 08 22:29:49 really man Feb 08 22:29:53 if you don't know it's ok Feb 08 22:29:59 yeah, that doesn’t work Feb 08 22:30:06 goodbye Feb 08 22:30:22 "do it in onPostExecute" Feb 08 22:30:26 yes i know, how Feb 08 22:30:33 RustySha1kleford go to a foot doc; i busted by big toe and it was f%$% misery Feb 08 22:30:42 how depends entirely on what you have Feb 08 22:30:48 Maybe because I make new File onCreate page? Feb 08 22:30:50 pretty sure you can't do anything for a pinky toe Feb 08 22:30:50 that’s not a question I can answer without seeing your code Feb 08 22:31:18 RustySha1kleford you'll want to see if there is any ligament / tendon damage that could be fixed; maybe not a 'break' Feb 08 22:31:32 s73v3r: forget it man, if you can't give a simple answer to a problem then you don't know what you are talking about Feb 08 22:31:41 that’s fine Feb 08 22:32:18 g00s: fuckin hurts yo. I'm gonna give it one more day, it feels immensely better when the swelling goes down and can even support a little weight Feb 08 22:33:56 * g00s yawns Feb 08 22:34:05 Can anyone help me? Feb 08 22:34:46 where do you save the file? Feb 08 22:36:24 On the code Feb 08 22:36:35 Is73v3r: I have method save and readFile Feb 08 22:37:12 But in onCreate method I make File file = new File(filename). Maybe it's created new file Feb 08 22:37:36 do you check if the file exists first? Feb 08 22:37:52 Yes Feb 08 22:38:50 s73v3r: http://pastebin.com/sLix2V4v it's onCreate Feb 08 22:39:12 and it’s always taking the else branch Feb 08 22:39:24 ? Feb 08 22:39:58 Yes. I think yes Feb 08 22:40:16 what is filename? Feb 08 22:40:29 and to what folder are you writing? Feb 08 22:40:37 private String fileName = "counter.txt"; Feb 08 22:40:50 default folde Feb 08 22:40:50 r Feb 08 22:40:56 default folder? Feb 08 22:41:09 whats that? Feb 08 22:41:33 Folder of app Feb 08 22:41:38 there is no such thing Feb 08 22:42:01 you cant just put a file name, you are only allowed to access certain directories in android Feb 08 22:42:09 http://pastebin.com/0anzBFuG it's my write and read Feb 08 22:42:23 And it's worked. But after restart it doesn't Feb 08 22:42:58 Clear file Feb 08 22:43:08 restart of the phone, or of the app? Feb 08 22:43:19 write to an appropriate folder Feb 08 22:43:20 of the app Feb 08 22:43:31 like externalstorage, datadir, or cache Feb 08 22:43:49 danijoo: No, I need write to folder of the app Feb 08 22:43:54 no Feb 08 22:44:00 you want getFilesDir() Feb 08 22:44:03 that’s where you want to put it Feb 08 22:44:09 you cant write to the app folder. Feb 08 22:44:18 also, if it is just a number, then why not use SharedPreferences? Feb 08 22:44:48 s73v3r: SharedPreference? I need to keep value Feb 08 22:44:57 From installing to deleting app Feb 08 22:44:59 yeah. you can do it there Feb 08 22:45:26 it’s just a key-value store, so you can do it in shared prefs. Feb 08 22:45:44 Ozymandy, read about stuff before trying to do it ;) http://developer.android.com/guide/topics/data/data-storage.html Feb 08 22:46:18 Hmmm, and it's more rational then write to file? Feb 08 22:46:29 read and decide Feb 08 22:46:44 wth, in AS you can't remove tool window buttons from the sidebar ? Feb 08 22:46:55 danijoo are you using AS 2 ? Feb 08 22:46:57 like all things, it depends on your situation. But I would suggest at least taking alook at it Feb 08 22:47:00 g00s, I think there was a plugin that can do this Feb 08 22:47:02 g00s, yes Feb 08 22:47:33 danijoo if you right click a tool window button, do you see 'remove from didebar' ? Feb 08 22:47:40 *sidebar Feb 08 22:48:46 g00s, Yes,, Feb 08 22:48:51 http://prntscr.com/a0rz0l Feb 08 22:48:56 ugh, ok i guess they added that in 15 Feb 08 22:49:05 lol , seems like a feature for 1.0 Feb 08 22:49:25 thanks danijoo Feb 08 22:49:27 there is a plugin for pre 15 that allows that too Feb 08 22:49:49 but dont ask me for its name... Feb 08 22:49:58 what’s it’s name? Feb 08 22:50:07 huehue Feb 08 22:50:13 amazing tho between pinned / docked / floating / split i never can get things to work quite rigt Feb 08 22:53:11 And how to check if exists entry in preferences? Feb 08 22:54:27 I have a question Feb 08 22:54:32 this: https://medium.com/android-news/creating-an-intro-screen-for-your-app-using-viewpager-pagetransformer-9950517ea04f#.qnuybh6up Feb 08 22:54:48 can't you feed the IntroFragment a layout? Feb 08 22:55:13 in the onCreateView I want it to return the inflated view from the layout ID I passed to it Feb 08 22:55:27 it seems awfully simple to do that, yet I am coming up empty when I load the pager Feb 08 22:55:35 Ozymandy: Attempt to load it, and have a default value available Feb 08 22:55:53 Null? Feb 08 22:55:57 I get null? Feb 08 22:56:33 in the load method, you can give it a value to return if it doesn’t find anything for that key Feb 08 22:56:47 Ozymandy, read the docs -_- Feb 08 22:57:45 this should work Feb 08 22:57:58 it's not allowed to not work Feb 08 23:00:56 speaking of, "read the docs" has anyone here tried dash before? Feb 08 23:01:21 sorry about that but android studio is painful, isn't it? Feb 08 23:01:44 no it isnt Feb 08 23:01:45 its the better alternative luvenfu Feb 08 23:01:52 I think you misspelled painless Feb 08 23:01:58 best god damn IDE Feb 08 23:02:12 way better then eclipse Feb 08 23:02:14 Android Studio is better than Mac OSX, man Feb 08 23:02:15 i'm trying running a simple app make 3 hours Feb 08 23:02:22 you trippin Feb 08 23:02:33 "better than?" Feb 08 23:02:33 is this because of AS or because of you? :p Feb 08 23:02:56 Android Studio as a software is better than Android OS Feb 08 23:02:57 haha Feb 08 23:02:58 dang I forgot how to scroll up in irssi Feb 08 23:02:59 there Feb 08 23:03:00 that's embarrassing Feb 08 23:03:01 Odaym: no jokes, sir Feb 08 23:03:07 i'm newbie Feb 08 23:03:13 Android Studio can barely keep up with my typing Feb 08 23:03:15 its awful Feb 08 23:03:24 RustySha1kleford, really? Feb 08 23:03:27 I guess you need a machine that can run it Feb 08 23:03:29 i'm having a problem with gradle Feb 08 23:03:44 i changed it to 21 and now appcompat is giving trouble Feb 08 23:03:46 yea you do need the machine for it Feb 08 23:03:46 if provided you have a machine good enough to handle AS, it is pretty awesome Feb 08 23:04:09 i5, 8gb ram and and ssd Feb 08 23:04:11 I hated most of the java based IDEs before SSD Feb 08 23:04:13 should be able to do it Feb 08 23:04:16 every machine built in the last 1 or 2 years can run AS Feb 08 23:04:21 I think that's the same machine I'm running Feb 08 23:04:24 it is definitely better than eclipse though Feb 08 23:04:41 i'm runing on my 4GB memory and celeron notebook Feb 08 23:04:53 RustySha1kleford: yeah that's the same as my machine Feb 08 23:04:57 luvenfu, the memory will be a problem Feb 08 23:05:01 only the emulator didn't runned yet Feb 08 23:05:07 AS takes arround 1 gb+ and gradle the same Feb 08 23:05:16 so theres not much left for emulator Feb 08 23:05:18 I think it's better to use a real device than an emulator Feb 08 23:05:21 if you can afford it Feb 08 23:05:36 danijoo: there's no light alternative for android development then? Feb 08 23:05:45 netbeans? Feb 08 23:05:47 there's always vim and emacs Feb 08 23:05:53 :] Feb 08 23:06:11 netbeans is light? Feb 08 23:06:15 the boilerplate stuff would be kind of painful though I'd imagine Feb 08 23:06:18 unix also has the `echo` command :p Feb 08 23:07:12 danijoo: but with vim i can type 80i* and have 20 beautiful asterisks across my screen Feb 08 23:07:17 80 Feb 08 23:07:23 math happend. somehow Feb 08 23:07:27 keep studying android, get better, get hired, get money, buy better machine for Android Studio Feb 08 23:07:31 you owe it that much Feb 08 23:07:42 grekkos, that must be really handy for android programming.. :p Feb 08 23:07:54 danijoo: it's great for comments :} Feb 08 23:07:56 hehe Feb 08 23:08:04 danijoo: and it can autocomplete my sentences too Feb 08 23:08:06 grekkos, comments? whats that? Feb 08 23:08:08 life is not that easy Feb 08 23:08:17 danijoo: haha :| Feb 08 23:08:41 tell me about it Feb 08 23:08:46 luvenfu: you can probably feasibly do android development using *any* editor, but it might be a lot of work to set up Feb 08 23:08:46 resuming in one line, buy a mac if you want to be an android developer Feb 08 23:08:53 no. Feb 08 23:08:57 in the past 7 months i've been rejected for android jobs more than I have andriod years of experience :P Feb 08 23:09:04 just buy a machine that has more ram than a toaster Feb 08 23:09:07 grekkos: from scratch? Feb 08 23:09:15 luvenfu: it's what the IDE does for you Feb 08 23:09:31 Odaym, 1? :p Feb 08 23:09:38 luvenfu: it's a lot more work and probably a highly undocumented process but I'm sure some text editor purists do it Feb 08 23:09:38 ha, try 15 Feb 08 23:09:52 and I get close too Feb 08 23:09:55 but finally they say no Feb 08 23:10:01 ouch Feb 08 23:10:05 ironically I got a job doing android development when applying for an ios position Feb 08 23:10:12 yea I dont know why Feb 08 23:10:14 I think it's God Feb 08 23:10:19 danijoo: i have 4gb of memory Feb 08 23:10:20 maybe you can try that Feb 08 23:10:21 he's tyring to say something Feb 08 23:10:25 * danijoo never applied for a job in his entire life Feb 08 23:10:30 my toaster has 3, so it's ok Feb 08 23:10:37 you live in Sweden or something? Feb 08 23:10:48 luvenfu, I think 8 is minimal for AS :/ Feb 08 23:10:59 but 4 should work if you dont use an emulator Feb 08 23:11:10 Odaym, no im just still a student ;) Feb 08 23:11:17 oh ok Feb 08 23:11:19 luvenfu: yeah i don't think no matter what you do you can run an emulator on that machine Feb 08 23:11:20 yea, you'll get around to it Feb 08 23:11:38 danijoo: here runs pretty well without lags, the problem is i fix a problem and then appears another and never finish. Feb 08 23:11:50 luvenfu, welcome to programming Feb 08 23:11:50 luvenfu: "problem?: Feb 08 23:12:20 thats ok for problems, but i don't know if ide problem or programming problem Feb 08 23:12:28 hahahah Feb 08 23:12:36 nice description luvenfu Feb 08 23:12:36 that depends on what the problem is, I'd say Feb 08 23:12:47 if it doesnt compile... Feb 08 23:12:54 its clearly an ide problem Feb 08 23:13:02 :p Feb 08 23:13:14 "i fix a problem and then appears another and never finish." Feb 08 23:13:33 that's a programmer's day to day i think Feb 08 23:13:40 its life too Feb 08 23:13:50 i'm remembering that line Feb 08 23:13:56 i know, but i stucked at hello world Feb 08 23:14:02 in any case, are you having performance issues running it or something just "isn't working? luvenfu? Feb 08 23:14:10 luvenfu, http://imgur.com/jacoj Feb 08 23:14:36 we cant help you if your problem description is ¨doesnt work¨ Feb 08 23:14:43 yeah, i didn't run the emulator, i think it's a little heavy Feb 08 23:15:02 but it's ok, i can try to run in my oldie phone Feb 08 23:16:02 grekkos: i'm having problem with appcompat in gradle Feb 08 23:16:42 i changed the version of compiler to 21 Feb 08 23:16:57 have i to adjust appcompat too? Feb 08 23:17:08 no Feb 08 23:18:36 luvenfu: you need to match appcompat version with compileSdk Feb 08 23:18:53 thats a kinda tricky one Feb 08 23:19:09 ok Feb 08 23:19:17 i was using api 14 Feb 08 23:23:46 why does AS take you to the generated XML when you encounter a compile time error in XML Feb 08 23:23:53 weird Feb 08 23:24:19 Odaym, yeah thats stupid Feb 08 23:24:23 always mocks me.. Feb 08 23:24:26 I edit, run again, then same Feb 08 23:24:29 then I look and see Feb 08 23:24:34 that's like X seconds Feb 08 23:24:41 it always takes 1 or 2 runs until i notice :D Feb 08 23:29:16 it's because going to the original xml is a difficult problem Feb 08 23:29:35 although the resources merger is supposed to inject breadcrumbs that will take you to the original XML Feb 08 23:30:52 yea i guess it doesn't want to hold any references to what caused it to get to the stage where the error is produced to you Feb 08 23:30:59 it's sort of "here's what happened, bye" Feb 08 23:31:14 "toodles!" Feb 08 23:31:16 that ain't no feature Feb 08 23:35:57 i see, the way to learn android, i got the picture Feb 08 23:36:02 is patience Feb 08 23:36:43 that's the way to learn anything Feb 08 23:37:01 like, patience Feb 08 23:37:03 :D Feb 08 23:37:45 man, I was using a library called AppIntro...what have I become Feb 08 23:38:21 udacity is making a good job displaying free tutorials in internet Feb 08 23:38:38 I'd get a book if I were you Feb 08 23:38:40 feels more official Feb 08 23:38:57 theres a bunch of docs in googles site Feb 08 23:39:04 yea....you dont wanna go there Feb 08 23:40:11 Odaym: which book? Feb 08 23:40:23 get the Big Nerd Ranch book Feb 08 23:40:37 those folks are amazing at teaching Feb 08 23:41:45 nice name, i tought it was a joke, really, it's a real book of android and looks professional Feb 08 23:42:19 one of the founders of that company used to work at Next and worked on producing ObjectiveC Feb 08 23:42:28 he helped write that language Feb 08 23:42:47 Odaym: that's cool Feb 08 23:43:03 teach is an art Feb 08 23:43:45 you know it in practice when you read a book of 1500 pages struggling and i guy in youtube do it all in 15 minutes Feb 08 23:43:55 no one can teach it in 15 minutes Feb 08 23:44:27 Books are good, but you still need to practice Feb 08 23:44:37 If you learn and practice in 15 minutes Feb 08 23:44:40 * pfn publishes iota 1.0.0 Feb 08 23:44:42 you won't learn much Feb 08 23:44:48 youtube tutorials are the worst Feb 08 23:44:54 a book will teach you why Feb 08 23:45:00 videos will only teach you how Feb 08 23:45:01 and it's spreading like plague and not only in dev field Feb 08 23:45:09 you come up like me, half-assed knowledge Feb 08 23:45:11 video are too slow Feb 08 23:45:15 book can teach you how Feb 08 23:45:16 adq: not at all Feb 08 23:45:25 book teaches you both I mean Feb 08 23:45:36 it's a complementary thing Feb 08 23:45:44 p l a g u e Feb 08 23:45:53 yea videos are no good Feb 08 23:46:03 unless it's like Udacity or a full curriculum thing Feb 08 23:46:10 I hate videos when they replace text Feb 08 23:46:10 it depends Feb 08 23:46:11 but snippets and bits here and there is really bad Feb 08 23:46:16 videos together with text is fine Feb 08 23:46:20 videos are a nice addon Feb 08 23:46:22 but videos in place of text is unacceptable Feb 08 23:46:28 i said for me, videos is a boost to learn Feb 08 23:46:32 but nothing that replaces reading/practicing Feb 08 23:46:36 they feel like you did something, yea Feb 08 23:47:04 they are also nice to get an overview Feb 08 23:47:11 without much effort Feb 08 23:47:36 just like tv, there are good channels and bad channels Feb 08 23:47:44 plus we don't all have access to Amazon all the time Feb 08 23:47:48 if you think videos are useless, do you also think listening to talks are useless? Feb 08 23:48:02 depends on the goal really Feb 08 23:48:20 if you plan to become knowledgeable about something you had no idea about, from attending a talk, then you won't Feb 08 23:48:29 it just feels like you did something useful Feb 08 23:48:42 its a good starting point to get an overview about that something though Feb 08 23:49:03 yea, nothing is useless after all Feb 08 23:49:55 i think the most important part is the information is to be shared, it could be shared through books, videos, stack overflow, ops, whatever Feb 08 23:50:07 the thing about books Feb 08 23:50:39 is the thing that happened to me when I started reading an android book, I saw tons of shit that I needed to save and I couldnt figure out how to do it easily Feb 08 23:50:56 you feel like you're consuming a lot and it's all going out the window when you close the book Feb 08 23:50:59 cause you cant save Feb 08 23:51:23 yeah, have a 1-week-deadline in the back to learn android or fired. Feb 08 23:51:37 if you know _where_ something important is written, you already know a lot Feb 08 23:52:04 time to get fired Feb 08 23:52:08 + Feb 08 23:52:15 well i stopped when I got into that question and I made the app im working on right now just for this purpose Feb 08 23:52:37 now I open a book and read away, i dont care if its something that I should spend some time on, i just know it smells important, i save it Feb 08 23:52:38 luvenfu, so you got hired for a job you dont have skills for. Feb 08 23:52:46 it's like distilling Feb 08 23:52:58 and im not finding a job out here! give them my cv luvenfu :P Feb 08 23:54:52 so what is the difference in using new Subscriber<> vs new Observer<> in the following? : With Subscriber: http://prntscr.com/a0soci with Observer: http://prntscr.com/a0sp0y Feb 08 23:55:13 They both seem to function the same Feb 08 23:55:30 obihann, a subscriber is not an observer Feb 08 23:55:35 one observes, one comsumes Feb 08 23:56:03 a subscriber is kinda the end point of the event chain Feb 08 23:56:17 an observer is a point others can again subsribe to Feb 08 23:56:38 isnt an Observable the thing that gets subscribed to though..? Feb 08 23:56:57 by a subscriber Feb 08 23:57:02 orbyt_, yes Feb 08 23:57:20 subsribe using the subscriber, on X thread Feb 08 23:57:20 observe using an observer, on Y thread Feb 08 23:57:23 that is legit Feb 08 23:57:49 i also didnt know you can put another observer in onSubsribe tbh Feb 08 23:57:54 same Feb 08 23:58:01 and just realized how shitty Rx looks in java without lambdas :p Feb 08 23:58:07 and why not use Func1? Feb 08 23:58:18 you dont seem to be using the rest of the methods Feb 08 23:58:18 rxjava looks shitty in general :P Feb 08 23:58:33 I have retrolambda but im just keeping everything expanded to help understand whats going on Feb 08 23:59:20 orbyt_, id stay away from putting an observer into onSubsribe Feb 08 23:59:26 it looks strange :/ Feb 08 23:59:55 so Odaym, from what your saying it sounds like, if i do .subscribeOn(Schedulers.io) and then .observeOn(mainthread), and then use new Subscriber<>, that is executed still on the IO thread? Feb 09 00:00:15 things get executed when you subscribe Feb 09 00:00:21 where you subscribe is where things will get executed Feb 09 00:00:26 when is when you subscribe Feb 09 00:00:41 g00s, had that nice link for that... Feb 09 00:01:02 here it is: https://getpocket.com/a/read/657195890 Feb 09 00:02:07 the tutsplus one? Feb 09 00:02:14 I made a whole video of me running through that :P Feb 09 00:02:16 haha Feb 09 00:02:20 really nice one Feb 09 00:03:07 oh no that's not the one, your linked one was not found Feb 09 00:03:13 this one I meant https://getpocket.com/a/read/1007441974 Feb 09 00:03:24 Odaym: you made a video of the tuts plus one? Feb 09 00:03:29 yea Feb 09 00:03:44 whats ur youtube channel Feb 09 00:03:56 dryculture Feb 09 00:04:08 the video might have ton of shit wrong though, your funeral Feb 09 00:04:08 lol I was watching that the other day, your funny as hell Feb 09 00:04:18 you were watching my channel? Feb 09 00:04:21 "lets just dump this shit into this shit" Feb 09 00:04:29 how come.. Feb 09 00:04:30 "now we are professional coders" lol Feb 09 00:04:53 haha Feb 09 00:05:01 what are the odds Feb 09 00:05:20 tbh was probably the best beginner rx vid ive watched Feb 09 00:05:31 hey thanks Feb 09 00:05:44 RxJava? Feb 09 00:05:57 I was just looking at it. Feb 09 00:07:18 @ danijoo and Odaym i cant seem to access those pocket links, keep getting redirected Feb 09 00:07:37 same Feb 09 00:08:55 Is possible to chain success/fail callback with volley? kind of like one would using Q/jquery/angular? Feb 09 00:09:26 or is that more or less what RxJava does? Feb 09 00:10:06 its just the builder pattern being used i think Feb 09 00:10:08 the dot dot dot? Feb 09 00:10:19 i dont know Feb 09 00:11:22 So I guess a Subscriber is basically just an Observer + a Subscription according to: https://github.com/ReactiveX/RxJava/issues/792 Feb 09 00:12:03 so you can unsubscribe from a Subscriber but not an Observer by itself Feb 09 00:12:37 it wouldnt have the unsubscribe method available to it if its not from the Subscriber class Feb 09 00:13:23 smacko, it's basicallyu what rxjava does Feb 09 00:13:33 danijoo: what was the title of that Pocket link Ill try and manually find it Feb 09 00:13:38 volley is a shitty library Feb 09 00:13:53 pfn: thank you, and I'm pretty irritated with it. Feb 09 00:13:53 Odaym: as well as the Subscription interface Feb 09 00:14:17 very green to android, and I've def taken over a messy situation Feb 09 00:14:32 what's the favored http client? Feb 09 00:14:36 retrofit? Feb 09 00:14:59 retrofit is for consuming rest services Feb 09 00:15:28 that's what I have, tho it doesn't look like it has patch Feb 09 00:17:37 is card.io an open/free api? Feb 09 00:18:44 hmm, looks like it, that's nice Feb 09 00:24:52 magic custom credit cards Feb 09 00:25:45 I want to scan credit cards into my password manager Feb 09 00:26:36 I hate always having to go to my desk to find my wallet to get my credit card numbers Feb 09 00:27:34 pfn: yea I'm liking it thus far, but how do I actually pay with them? it just loads the image and I look at it? Feb 09 00:27:43 ? Feb 09 00:27:49 card.io? they're just a credit card scanning library Feb 09 00:28:09 wallet apps and such use it Feb 09 00:28:16 ah got it Feb 09 00:28:43 you don't use them to pay, but companies like square, paypal, etc, use it to load credit cards into their apps for making payments Feb 09 00:56:48 slow day Feb 09 01:40:10 danijoo still there ? Feb 09 01:59:30 I am getting a net.socketexception EACCESS (permission denied) error. I have added the internet permission to my manifest and have double checked it is the right permission and is in the right location. Does anyone know what could be the issue? Feb 09 02:02:03 cuulcars: Could you post AndroidManifest.xml? Feb 09 02:03:51 @TacticalJoke http://pastebin.com/3d8fJX73 Feb 09 02:04:16 It should be "android.permission.INTERNET". Feb 09 02:05:37 TacticalJoke TIL capitalization matters. Thank you. Feb 09 02:05:41 * cuulcars feels like a dumbass Feb 09 02:07:14 TacticalJoke i asked this earlier, forgot if you were around ... when I have no files open in AS, and I double click on the background, the tool windows either disappear or are restored in the state I last left them - nothing I do through the View/Tools menu seems to replicate this Feb 09 02:07:25 do you know what its called, or if there is a keypress ? Feb 09 02:08:25 ah ha, found it ! Feb 09 02:09:08 but weird, hide all windows / restore all windows ... restore didn't restore the exact split sizing i had Feb 09 02:09:20 meh screw it, will try again in as 2 Feb 09 02:10:13 Note that double-clicking a tab header should do the same. Feb 09 02:10:20 Though I didn't know about the Ctrl+Shift+F12 shortcut. Feb 09 02:10:29 (I mean if you have an open editor tab.) Feb 09 02:10:39 In fact, double-clicking the tab bar seems to be enough. Feb 09 02:11:49 I wish I could turn off AS's menu bar completely in Windows. It's such a waste of space. Feb 09 02:12:14 If I need it I can press Alt+F or similar. Feb 09 02:22:57 TacticalJoke i'd like to know why it takes so long for an app to crash Feb 09 02:23:13 i mean, lets say i hit a button which executes something and NPEs... Feb 09 02:23:17 like 5 seconds goes by Feb 09 02:23:39 Hmm, I've not noticed a delay. Feb 09 02:23:45 Even on my old computer. Feb 09 02:24:46 So, Sailfish ... sounds like a thing :p Feb 09 02:25:43 What is the news on Sailfish? Feb 09 02:25:53 MeeGo part two? :P Feb 09 02:26:07 Heh, thought I'd et a rise from g00s Feb 09 02:26:22 sailfish is probably as dead as FFOS Feb 09 02:27:43 The rule is that nice guys finish last -- even in software. Feb 09 02:27:49 heh - My buddy was a FFOS QA, looking for the next thing and thinking SailFish ... I trying to talk him down Feb 09 02:28:29 if MS can't get break into the duopoly i doubt they can Feb 09 02:29:09 and yeah, i think apps are dead, and coming up with a new mobile platform is kinda meh even Feb 09 02:29:19 next frontier, AR/VR ! Feb 09 02:29:47 "Apps" as in MarketPlace / Web apps? Feb 09 02:29:53 yeah Feb 09 02:30:03 or bubble is coming, or already came ... Feb 09 02:30:06 Yah, I'd believe Feb 09 02:30:53 read something about Intel a few days ago, i think they said their processors weren't going to get any faster, but they would become more power efficient Feb 09 02:31:19 i mean, who knows their roadmap, but imagine something like core i3 in your phone Feb 09 02:31:36 then the MS continuum vision of things would have better shot Feb 09 02:31:44 CPU's haven't gotten faster much in at least two years ago Feb 09 02:32:00 Reaching limits .... time to go photonic Feb 09 02:32:49 I think it's about time we departed from the physical world. It's too limited. Feb 09 02:32:50 the whole apps things reminded me of shareware in the 90s Feb 09 02:32:57 By "we" I mean our consciousness streams. Feb 09 02:33:34 TacticalJoke better happen before we wreck the planet :P Feb 09 02:42:26 is it not possible to set up a ViewPager outside of an activity? Feb 09 02:42:49 Hi,I was hoping someone could explain to me what class this overridden `connect()` method is in, in this example http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html#connect ? Feb 09 02:43:28 WifiP2pDevice ? Feb 09 02:44:06 oops no Feb 09 02:44:49 Ah, its the WifiP2pManager Feb 09 02:45:21 Nope, never mind. WifiP2pManager.connect accepts 3 parameters.. Feb 09 02:47:17 Do you think maybe the "@Override" is a typo/error? Feb 09 02:49:19 I should buy the 6p right now, shouldn't I? Feb 09 02:51:01 RustySha1kleford worry about your damn toe Feb 09 02:51:30 might have a big medical bill coming up :D Feb 09 02:52:12 yeah I might need to get it xrayed... fuck man Feb 09 02:52:48 I think i'll be working from home again. Thank god they have a flexible policy with that Feb 09 02:52:58 in my case the x-ray showed no problem, then the doc might need other imaging for soft tissue Feb 09 02:54:08 talked to my aunt and some webmd Feb 09 02:54:21 even if its broken, the best they can do is tape Feb 09 02:54:39 they will put it into a splint Feb 09 02:54:42 yeah Feb 09 02:54:47 i'll see how it feels tomorrow Feb 09 02:55:10 these days phones are so big - probably break your toe dropping the 6P on it Feb 09 02:55:18 maybe get smaller phone :D Feb 09 02:55:24 I'm not against going to the doctor, I just doubt they can do anything Feb 09 02:55:34 oh man after this, I'm wearing steel toed boots around the hous Feb 09 02:55:53 I stubbed the absolute shit out of this toe Feb 09 02:57:02 chop it off Feb 09 02:58:05 I had a girl friend missing a toe, named Eileen Feb 09 02:58:31 but dont get any ideas of dropping it into your chipotle and suing them for burritoe Feb 09 02:58:44 Doh! And I thought my joke was bad Feb 09 02:59:06 :D Feb 09 02:59:52 wat **** ENDING LOGGING AT Tue Feb 09 02:59:59 2016