**** BEGIN LOGGING AT Mon Jun 13 02:59:58 2016 Jun 13 03:14:27 ah there was another LAUNCHER intent, in some 3rd party code's manifest Jun 13 03:14:31 that sucked Jun 13 03:19:34 lol Jun 13 03:39:00 I use bluetooth tethering over android phone to get internet but I can't receive incoming connections, I think its called "port forwarding" can android phone do that ? I have 4.2.2, should I install some app or is it possible at all ? Jun 13 04:55:16 any recommendations for a better terminal on windows than the command prompt? Jun 13 05:01:17 anything would be better Jun 13 05:01:23 i.e. git bash Jun 13 05:01:49 I use conemu, works great Jun 13 05:01:53 in Intellij 'distraction free mode' how do you expand collapse stuff, the gutter has nothing for that (for example, can't collapse all my imports) Jun 13 05:07:44 lol thats retarded, all the adornments are there (version changes |> , implements interface method, implements superclass method) but the expand . collapse boxes are missing Jun 13 05:08:30 activity tags dont need BOOT_COMPLETED right? Jun 13 05:10:38 huh Jun 13 05:14:35 oh thats interesting, distraction free mode seems to have 'shadow' settings for a lot of things Jun 13 05:15:17 so in normal mode, you have 'code folding' enabled ... but then switch to distraction free mode, and its disabled. if you enable it, intellij remembers what you selected for distraction mode Jun 13 05:36:34 use the keystrokes you noob Jun 13 05:37:09 ctrl + and - on windows, use the equivalent on mac Jun 13 06:05:18 can someone please check my code: http://pastebin.com/TsPWJ6Kq Jun 13 06:06:06 using that in asynctask. stacktrace error on line 8 of that code Jun 13 06:07:00 FATAL EXCEPTION: AsyncTask #1. java.lang.RuntimeException: An error occurred while executing doInBackground() Jun 13 06:07:07 :/ Jun 13 06:07:51 hi! Jun 13 06:19:23 nevermind. im a fucking idiot. i forgot to get internet permission Jun 13 06:20:13 god damnit. i just wasted like an hour trying to figure out wtf was wrong with my code only to realize i just forgot about permission Jun 13 06:20:56 god. going to sleep. stupid manifest Jun 13 06:49:03 hmm, AS takes a lot more memory than vim+ant :) Jun 13 07:13:33 hi guys Jun 13 07:14:00 a question Jun 13 07:16:10 is it a bad idea if I provide a public function for a Fragment (e.g. setup(X x, Y y)) and setup my fragment in this function with 'x', 'y' rather than doing it in onCreateView() and passing parameters in Bundle? Jun 13 07:20:25 how would i change here https://github.com/KonradIT/HTTPCommander that it would do post requests instead of get Jun 13 07:43:43 I want to implement two-step authentication for my application ( with my own service ) , Is there any resource/Library to look for? Jun 13 07:44:00 two-factor Jun 13 08:13:38 hi, is it possible to use getString for the following? getString(R.string + stringParamter) ? Jun 13 08:14:05 or just getString(stringParamater)? Jun 13 08:18:42 given that R.string.foo is (probably) an integer ID... you need to do the concatenation after looking up the string resource Jun 13 08:22:43 using reflection? Jun 13 08:23:03 huh? Jun 13 08:23:28 like: getResources().getIdentifier(aString, "string", packageName); Jun 13 08:24:20 ugh Jun 13 08:24:40 I feel like a noob. My IDE nor my compiler (gradle script) can resolve: MobileIdApplication.getInstance().getBaseContext().getSystemService(FingerprintManager.class).remove(null, null) -- that is: FingerprintManager.remove() method is not found. But when I look in the source it's there. What's can be wrong? Jun 13 08:26:34 Leeds i see warnings that this might be a bit slow Jun 13 08:27:14 raoul11: given that resources are static, maybe use a string array instead? Jun 13 08:27:46 thought about using a hashmap instead Jun 13 08:28:12 but too lazy to the .put (50+ leaderboards) Jun 13 08:38:00 why didn't anybody tell me about retrofit Jun 13 08:38:15 I mean I hear about it a lot of course but I didn't know it was this cool, I guess I never had the use-case Jun 13 08:43:10 we were telling you all the time Jun 13 08:45:02 (how) can i restrict monkey to my app? because now also it clicks the system status bar and/or changes volume Jun 13 08:47:14 and it turns off internet which is annoying Jun 13 08:53:58 Hey guys. I just got a task to implement "Secure Portal" to an APp... Could anyone elaborate what that is exactly ? Jun 13 08:59:47 so I have this asynctask that I need to run many times, for different API calls, and I'm not using retrofit right now but I want to use it, do I just now keep the asynctask as it is to gain the onPre and onPost execute callbacks and just replace the doInBackground code with the new retrofit stuff? Jun 13 09:05:42 nope, no more asynctask Jun 13 09:07:04 asynctask is meh Jun 13 09:07:40 Anyone know where to find a list of possible errorCodes? https://developer.android.com/reference/android/hardware/fingerprint/FingerprintManager.AuthenticationCallback.html#onAuthenticationError%28int,%20java.lang.CharSequence%29 Jun 13 09:07:48 Android Doc sometimes... Jun 13 09:08:01 does anyone has experience with amazon iap and problem "in sandbox" even when releasE? Jun 13 09:19:54 Ah, found some static ints in top of FingerprintManager. Jun 13 09:21:37 Hi all, I'm researching making a basic camera app. Anyone have any pointers? I was thinking of trying this: https://developer.android.com/guide/topics/media/camera.html#custom-camera - Jun 13 09:21:38 I'm a node developer, and my knowledge of android is zero though. Is there just one way/language to build android apps? Any recommended projects for building a camera app for both android and iOS? thanks again. I saw a thing called xamarin, but it looked like would end up costing me moneys Jun 13 09:21:55 basiclaser: 'native' Android apps are written in Java Jun 13 09:23:37 I think basic xamarin is free... Jun 13 09:23:38 Anybody here know of any good Secure Portal LIbraries for JS ? Jun 13 09:23:44 sigh soz Jun 13 09:23:47 Hey guys. I just got a task to implement "Secure Portal" to an APp... Could anyone elaborate what that is exactly ? Jun 13 09:25:16 oO Jun 13 09:25:18 sound like Portal2 Half-Life -.- Jun 13 09:26:05 since microsoft got xamarin, xamarin is free for even commercial use Jun 13 09:26:31 thanks chums Jun 13 09:27:24 "native" has 2 meanings - either app written in Java (in opposite to xamarin or phonegap/cordoca) or native function/class written in C/C++,jni to speed up performance Jun 13 09:28:11 Ashiren: which is why I wrote 'native' rather than native :) Jun 13 09:29:37 good to note, thanks Jun 13 09:29:50 then there's react-native XD Jun 13 09:29:56 :s Jun 13 09:31:01 and so my process of choosing between xamarin or 'native' android dev, what would that come down to in your eyes? Jun 13 09:31:14 do you already know C#/.net? Jun 13 09:31:18 if not, go Java Jun 13 09:31:25 ah gotcha Jun 13 09:31:30 xamarin is c# Jun 13 09:31:33 anyone know the most reliable way knowing when an emulator is fully launched (and ready to install an APK on) through scripting? Jun 13 09:33:40 basiclaser: what it would come down to in my eyes is if you need a ios version as well Jun 13 09:33:55 I would eventually yes Jun 13 09:34:09 but im just building an MVP camera app Jun 13 09:36:36 is it possible to find out what the % is of android 6.0.0 versus 6.0.1 ? 6.0.0 has a bug regarding permissions that we need to deal with Jun 13 09:36:46 the dashboard just says 6.0 Jun 13 09:37:20 leakcanary: anonymous implementation of com.android.volley.ResponseListner Jun 13 09:38:54 Hey all Jun 13 09:47:29 Hey, Is there a way to make URI from the string without encoding it Jun 13 10:19:10 Hi guys Jun 13 10:19:52 I've added .idea/libraries to my .gitignore files, but it doesn't work, I still tracking changes on that folder... Any idea?? :/ Jun 13 10:20:01 Hey guys. I just got a task to implement "Secure Portal" to an APp... Could anyone elaborate what that is exactly ? Jun 13 10:22:06 Sepho, are those files already commited into the repo? Jun 13 10:22:21 Mavrik: yes Jun 13 10:22:23 (Also, I'd really recommend not including anything from .idea) Jun 13 10:22:28 Then you need to remove them with git rm Jun 13 10:22:45 Mavrik how'd the talk go? Jun 13 10:22:56 markyosullivan, it's wednesday :P Jun 13 10:23:05 Damn, thought it was the 12th for some reason Jun 13 10:23:14 I'm sure you're prepared for it :) Jun 13 10:25:25 Worked! Thanks Mavrik :) Jun 13 10:26:58 cart_man: yes, whoever gave you the task Jun 13 10:27:54 autrilla: Yea do now want to seem clue less when asking Jun 13 10:28:12 but you are Jun 13 10:28:19 autrilla: I just dont know what they mean when they say secure portal Jun 13 10:28:24 I don't either Jun 13 10:28:27 it's normal not to know Jun 13 10:33:07 I need to pass a header to a Retrofit call, and the header value will be inside sharedpreferences Jun 13 10:33:29 can't I say that the header will be provided later? Jun 13 10:33:53 nevermind Jun 13 10:34:52 cart_man, I don't get it. Why do you think WE'LL know anything more than YOUR CUSTOMER who thought of the task would? Jun 13 10:35:00 They're the ones that want the product. COMMUNICATE with them! Jun 13 10:35:03 Mygod. Jun 13 10:35:32 he doesn Jun 13 10:35:40 he doesn't want to sound like he doesn't know Jun 13 10:36:22 poor soul Jun 13 10:36:43 Hi, I'm not able to display my items in a ListView, I've been following a guide and I've written this code: https://dpaste.de/RqZ6 I start the app but it doesn't display anything, can you see any error? Jun 13 10:36:43 Yeah, that's terrible attitude. Which usually ends up with that nasty last meeting that goes "you built something totally wrong which has no connection to what we wanted. We're not paying unless you rewrite." Jun 13 10:36:56 when all you had to do was ask Jun 13 10:37:02 sounds like a Beatles song Jun 13 10:37:05 things left unsaid Jun 13 10:37:07 tsk tsk Jun 13 10:37:46 lol Jun 13 10:37:58 sumiau, you're not properly using the ArrayAdapter. Jun 13 10:38:12 sumiau, if you're a beginner I strongly suggest you avoid using it at all and extend BaseAdapter instead. Jun 13 10:38:21 Especially since you want to handle inflation of views yourself. Jun 13 10:38:51 (You're passing wrong resource id, you're not adding items to right arrays, you're trying to fight against what ArrayAdapter is trying to provide for you.) Jun 13 10:39:05 or use RecyclerView Jun 13 10:39:45 Mavrik: Okay, I'll go for BaseAdapter better! Jun 13 10:41:15 thanks! Jun 13 11:04:02 I have a memory issue. I have a gallery view (that I changed to use Picasso for loading the images thanks to people here), but if I rotate my phone a lot with it open I run out of memory Jun 13 11:04:47 I'd ask your doctor about Alzheimer's Jun 13 11:05:02 hehe Jun 13 11:05:36 but it looks like it loads the images into memory again without getting rid of the old ones? Jun 13 11:05:37 On another note, are you disposing objects? I'm not familiar with java so I don't know how garbage collection works in it. Jun 13 11:05:50 what do you use? Jun 13 11:05:55 C# Jun 13 11:05:58 same here, actually Jun 13 11:06:32 When you rotate your device, it essentially reloads the app. You need to override the method that handles the unload, and in that method you should be disposing any objects you won't be using anymore I believe. Jun 13 11:06:45 But that may or may not be relevant to your situation. It's just my first guess. Jun 13 11:08:22 I guess you're right that something is not disposed or gc-ed correctly Jun 13 11:08:31 but I don't hold any of the resources myself Jun 13 11:09:03 None of the objects you're creating implement IDisposable? Jun 13 11:09:27 Have you looked at the stack trace to try and figure out what objects are being created but not disposed of properly? Jun 13 11:09:37 Do you have a source code snippet? Jun 13 11:09:56 do you use any anonymous classes? Jun 13 11:09:59 or inner classes? Jun 13 11:11:14 in case they keep the references? Jun 13 11:12:00 I got rid of them, I think Jun 13 11:12:11 code plx then Jun 13 11:12:23 and some lecithin for the phone Jun 13 11:14:06 oh... hmm... I have one maybe... Jun 13 11:14:07 http://pastebin.com/xvZXrTAp Jun 13 11:16:12 the Post, it takes Runnable? Jun 13 11:17:25 yeah Jun 13 11:17:34 or in the c# case, an action Jun 13 11:20:17 so this is anonymous class Jun 13 11:20:17 it was the only way I found the width of the imageview Jun 13 11:20:25 yeah, you're right Jun 13 11:20:28 dunno if this is culprit Jun 13 11:22:20 yeah, could be if it keeps the imageview in memory... Jun 13 11:25:34 var fileObject = new Java.IO.File(file.Filename); Jun 13 11:25:42 Shouldn't that be inside a using block? Jun 13 11:26:02 ie: using (var fileObject = new Java.IO.File(file.Filename)) { ... do stuff ... } Jun 13 11:47:10 TactlessBastard: yes, it should. you are 100% correct Jun 13 12:14:14 anyone familiar with android studio monitor replacing package names with a (?) like: 3040-3255/? Jun 13 12:29:18 raoul11, i don't know exactly why, has been years it erratically does that, it's logcat failing to do resolution between pid and packagename Jun 13 12:29:50 yeah just started doing that out of the blue Jun 13 12:30:07 this is just the beginning :> Jun 13 12:30:22 no, it was working fine until now Jun 13 12:30:37 now im grabbing via pid, but that changes on every crash Jun 13 12:30:39 i meant, you will have more suprises, be prepare Jun 13 12:30:45 oh lol Jun 13 12:31:11 so its adb related, not android studio Jun 13 12:32:02 i'm not even sure, but you can run adb logcat and compare to see if it's AS wrapper or logcat, iirc it was logcat Jun 13 12:34:14 running it via cmd returns pretty much the same result Jun 13 12:35:45 killing/starting it doesnt seem to have any effect Jun 13 12:35:58 Anyone tried out this library: https://github.com/amitshekhariitbhu/AndroidNetworking Jun 13 12:36:14 if I want to feed retrofit a custom class so that it can use it when returning my Call object, and say I have a response from the server which has a json array among many other things, how am I supposed to structure the class to match that kind of response? Jun 13 12:40:05 for example this http://www.jsonschema2pojo.org/ Jun 13 12:40:21 ah so its true that there is that problem Jun 13 12:41:21 the output of this is what I would use as the class and feed that to Call Jun 13 12:41:27 without all those Json annotations Jun 13 12:41:42 just expose the setters and have some getters for myself when the response comes back Jun 13 12:43:05 thanks bruh Jun 13 12:45:56 is there a way to run an optimized build from visual studio Jun 13 12:45:57 ? Jun 13 12:49:10 not the place for that DrBenway Jun 13 12:49:20 erm android studio Jun 13 12:49:29 (don't know why i said visual studio) Jun 13 12:54:12 <_kw> my service isn't starting for some reason, and I can't figure out for the life of me why not, nothing I can see in the log Jun 13 12:54:16 <_kw> any idea how I can check this? Jun 13 12:55:13 <_kw> I just have in my android manifest, and that service extends FirebaseInstanceIdService, and implements onTokenRefresh Jun 13 12:55:18 <_kw> but nothing's ever called in that class Jun 13 12:57:20 Is there any way to convert a JSON object to x-www-form-urlencoded format? Jun 13 13:02:23 <_kw> this is driving me nuts, it worked fine on friday, but seems to do nothing now :/ Jun 13 13:02:54 _kw: you dont need to do that Jun 13 13:03:18 <_kw> do what? Jun 13 13:03:36 implement that service Jun 13 13:03:36 http://hastebin.com/ucuzeqoluq.xml Jun 13 13:03:50 its implemented by default in the iid module Jun 13 13:04:37 Hello all. Jun 13 13:04:48 <_kw> Hm, I'm a bit confused by the mix of c2dm and firebase there, shouldn't firebase replace that? Jun 13 13:04:48 I am defining an intent filter in the manifest. Jun 13 13:05:06 I want to support different combinations in my filter. Jun 13 13:05:32 So I have used multiple elements within the same filter. Jun 13 13:05:48 One for each scheme, host or path. Jun 13 13:05:53 Like this: Jun 13 13:06:12 _kw: it does, thats why its in the firebase library Jun 13 13:06:40 ddobrev: pastebin Jun 13 13:07:03 <_kw> hm I'm very confused now.. What does that manifest do exactly? Jun 13 13:07:25 <_kw> I thought for firebase I was supposed to implement a small service , and then in onTokenRefresh send the token to my server Jun 13 13:07:43 http://pastebin.com/mG7Zxung Jun 13 13:07:45 <_kw> which is what I'm doing (except my service isn't starting for some reason) Jun 13 13:08:14 Is this supposed to work? That is, does Android construct all possible combinations and try each one? Jun 13 13:08:54 ddobrev: yes that will work Jun 13 13:09:00 hey all, does anyone know how i would go about this (perhaps there is a lib or native thing for it) i dont know what its called so here is some great MS-Paint art skills to help describe what i mean: http://picpaste.com/pics/ex-uP1e5qaV.1465823280.png Jun 13 13:11:01 _kw: pastebin your services manifest entry Jun 13 13:11:51 thornekey: just use a recyclerview with two different view types Jun 13 13:12:05 <_kw> http://hastebin.com/ufolakeval.xml Jun 13 13:12:06 thornekey: one for expanded and one for collapsed Jun 13 13:12:37 thornekey: not the same thing, but might help.. see animated gif. https://github.com/slightfoot/android-material-comments Jun 13 13:13:08 _kw: you need to add android:exported="true" to both of those Jun 13 13:13:43 Napalm: hey bud, thanks :) yea that looks good ill check out those Jun 13 13:14:20 <_kw> I'll try that now :) Jun 13 13:14:52 the term expanded recyclerview found this: https://www.youtube.com/watch?v=2_E4ky0uXd8 so ill look into that Jun 13 13:14:59 Napalm: Does the method of using two diffrent view types work better than just having a state that changes the visibility type of some things? Jun 13 13:15:22 <_kw> Napalm, still nothing.. my service is just as simple as can be as well: http://hastebin.com/otalubamem.java but I'm not seeing that log anywhere Jun 13 13:15:42 <_kw> (I added that constructor just to add that log and see if it's being called) Jun 13 13:16:07 _kw: when are you expecting that to be called? Jun 13 13:16:19 _kw: are you expiring the old tokens manually? Jun 13 13:16:19 <_kw> I figured at startup it would be initializing the services Jun 13 13:16:26 _kw: no Jun 13 13:16:39 arkaros: depends on what your trying to do Jun 13 13:16:56 <_kw> I'm uninstalling the app and installing it freshly from Android Studio, shouldn't that restart these services? Jun 13 13:17:02 no Jun 13 13:17:15 <_kw> damn, then I've clearly misunderstood something :/ Jun 13 13:17:18 _kw: the services start only when required by the system Jun 13 13:17:23 they dont stay running Jun 13 13:17:25 How do I encode strings so I get it in the following format: grant_type=password&userName=test%40mailinator.com&password=thePassword Jun 13 13:17:33 <_kw> ok, so when a refresh token comes in? Jun 13 13:18:47 markyosullivan: http://stackoverflow.com/questions/3734844/how-to-url-encode-in-android Jun 13 13:19:28 Thanks arkaros Jun 13 13:19:30 <_kw> when I was testing friday a reinstall of the app triggered a token refresh in that service Jun 13 13:19:37 _kw: the MESSAGING_EVENT gets called when you get a new message Jun 13 13:20:08 _kw: the INSTANCE_ID_EVENT will be called when a token has expired or has been revoked or is no-longer valid Jun 13 13:20:12 aka invalid Jun 13 13:20:28 _kw: so for whatever reason your service got called then Jun 13 13:20:38 _kw: but why does this matter? are you simply trying to test the code? Jun 13 13:20:59 <_kw> well yes, I'm trying to get my test app to send the notification token to the server Jun 13 13:21:02 <_kw> but I can't get one Jun 13 13:21:18 _kw: just use https://developer.android.com/studio/command-line/shell.html#am Jun 13 13:21:22 <_kw> the InstanceId service doesn't really seem to be doing much Jun 13 13:21:23 startservice command Jun 13 13:21:30 and start it yourself Jun 13 13:21:51 <_kw> hmm that sounds useful Jun 13 13:24:59 <_kw> yesss, that does something! Jun 13 13:25:00 <_kw> thanks :) Jun 13 13:25:44 hey all. I am trying to build an application which takes a photo every 5 seconds, get the GPS data, writes it to the EXIF and saves on the sdcard. But when I see the meta data of the image, I am unable to find the GPS coordinates. Jun 13 13:25:56 Here is my main activity - https://github.com/AkshitKumar/cameraApp/blob/master/app/src/main/java/com/akshitk/cameraapp/MyCamera.java Jun 13 13:26:08 <_kw> how can I request/revoke a token though? Because my test app doesn't currently have any known token, and since there is probably still some unknown valid one, onTokenRefresh isn't called either Jun 13 13:26:25 <_kw> that's what I find most confusing about this whole thing Jun 13 13:26:26 Here is my helper class - https://github.com/AkshitKumar/cameraApp/blob/master/app/src/main/java/com/akshitk/cameraapp/GPSTracker.java Jun 13 13:26:55 Could someone please help me? I am new to Android and Java. Jun 13 13:34:00 hi! Jun 13 13:34:40 akshitkumar1: I would suggest debugging the app and see that it actually calls everything that should be called. Set some brakpoints and debug on device. I would also suggest that you read up on naming conventions. It's a bit weird that some of your private members are prefixed with m and some aren't. You should pick one of the two. Also maybe read up on private/public/protected access because you are mixing a lot right now Jun 13 13:38:05 ls Jun 13 13:38:08 oops Jun 13 13:38:10 hehe Jun 13 13:39:57 Napalm: thank you for the confirmation. Jun 13 13:41:28 is it possible to clear the location that fused location API is providing. this is to test a scenario when API is unable to provide any location Jun 13 13:45:53 how can I set a gradle task to run at the end of gradle sync? Jun 13 13:46:09 anyone has some insights on this? Jun 13 13:52:16 is it possible to have an activity overlay on another activity (like a dialogfragment)? Jun 13 13:54:10 hey, anyone worked with OpenSL via the Android NDK? Jun 13 13:55:46 anyone has experience with rxandroid? I created an observable and subscribed an observer. now i have a loop and want to push data to my observer via the observable. what function should i call? Jun 13 14:00:19 I'm using OpenSL to play sound and everything works except, that OpenSL plays at ~70.000Hz instead of the set 44.100Hz (for code see: https://github.com/fodinabor/Polycode/blob/goodbye_cmake/src/core/PolyOpenSLAudioInterface.cpp#L64 - POLY_AUDIO_FREQ is 44100) Jun 13 14:20:22 hi i am new to android development, there is issue with file upload work perfect in simulator but fails in the device there is no clue whatso happened when i click on upload button it opens file dialog when i select an image the dialog closes but nothing happens after that it neither steps to success not error callback function how to debug??? Jun 13 14:26:37 How would I go about retrieving a variable (session token) which is stored in my User class and then access this variable again in a different class? Jun 13 14:27:11 Would I not need to create a new instance of User in the new class to access the get method from the User class, thus wiping the old token value? Jun 13 14:27:42 I have a feeling this is pretty easy to do but I'm over thinking it Jun 13 14:31:42 basic. oo Jun 13 14:33:57 markyosullivan: Should this token be persistent after the app closes down and can you at a point in time have multiple ones of these tokens? Jun 13 14:35:00 arkaros: Only one token retrieved when the user logs in, so only one and I guess if the app closes down, I could force the user to login again Jun 13 14:35:36 Don't you keep the String variable static, so it wont be wiped when a new instance is created? Jun 13 14:36:46 markyosullivan: You could have it static but in this case it seems to me like the User object is a singleton Jun 13 14:39:13 markyosullivan: Or maybe i should refrace that to say that the User object should be a singleton. I guess you use the session token to do network requests so you could also put this auth information in the network handler it self Jun 13 14:40:44 arkaros: Yeah I've looked up a singleton example and it seems to be the best approach Jun 13 14:40:48 following this: http://www.tutorialspoint.com/java/java_using_singleton.htm Jun 13 14:41:03 means I can just have the one instance of User and reuse it Jun 13 14:41:18 Could potentially store more details about the user such as name, email, etc Jun 13 14:41:58 markyosullivan: Cool. Just be aware that singletons are sometimes a really bad aproach because they have a tendency to be hard to test but for this use case it seems to me like the perfect option Jun 13 14:42:35 arkaros: What would be an alternative approach? How exactly are they hard to test? Could you not just mock the singleton class? Jun 13 14:45:19 markyosullivan: Here is a perfect answer to why singletons are not always the best choise http://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons Jun 13 14:45:22 Don't follow what's in this article, they are using static to implement the singleton Jun 13 14:45:35 There is nothing wrong with singletons, just don't implement them with static Jun 13 14:46:15 CedricBeust: Why you recommend not using static? Jun 13 14:46:46 Makes your code impossible to test, various other problems, especially on Android Jun 13 14:47:28 markyosullivan: Here is what i usually do when implementing a singleton http://www.tutorialspoint.com/design_pattern/singleton_pattern.htm Jun 13 14:47:45 Use Dagger to manage your singletons Jun 13 14:50:18 CedricBeust: Dagger is really nice but maybe a bit overkill to switch to using dagger when all you really want is one singleton instance Jun 13 14:51:02 I told you the best currently known practice, you're free to use it or ignore it Jun 13 14:51:06 CedricBeust: I'm not familiar with Dagger, it's something I want to research and spend time on my own projects trying to get used to it before implementing them in projects where I have deadlines Jun 13 14:51:33 though I appreciate the advice Jun 13 14:54:26 It's fine, start with static, you'll learn a few things along the way. And investigate Dagger when you get a chance. Jun 13 14:55:03 CedricBeust: Im intrested how do you go about actually injecting. Where do you instantiate the Jun 13 14:55:08 component Jun 13 14:55:23 Very early, start of the application usually Jun 13 14:55:49 morning all Jun 13 14:57:31 CedricBeust: Okay. Because android guidelines is that you should prefer singletons to extending the application class. So i have a singleton that I use as an Injector and then i swap out the component of the Injector when running the tests. Is there a better way of doing it? It works fine for now but im unsure if it's the best option. Jun 13 14:58:10 I have to step away but read the dagger documentation, and after this, plenty of tutorials on how to use Dagger on Android on the web Jun 13 15:00:08 arkaros, you can automate the same behavior using build flavors Jun 13 15:01:00 CedricBeust: Most of them suggest putting the component in the application class and since google said prefer signeltons i guess i will stick to my current solution Jun 13 15:02:15 i use greenrobot EventBus and found out that only one subscriber will receive sent message? is it possible to send broadcast message for all subscribers? Jun 13 15:02:31 sticky messages? Jun 13 15:04:36 dragorn: Since the app im working on is white labeled i already have a shit tone of build flavors and i fear adding one for testing would turn into build flavor hell but it's a cool idea. Jun 13 15:16:01 hey guys Jun 13 15:16:06 I have this problem with Retrofit http://pastie.org/10874997 Jun 13 15:16:11 additional flavors should be little effort Jun 13 15:16:42 the fields arent being bound Jun 13 15:19:36 isn't that all that's required of the pojo to look like? just to have data members matching the names of the keys in the JSON response? Jun 13 15:20:22 and when constructing the RestClient of course I feed it a GsonConverterFactory.create() Jun 13 15:20:25 eventbus is ok, it was my fault Jun 13 15:21:31 as is just about always the case Jun 13 15:21:43 + Jun 13 15:23:20 um, ms acquiring linkedIn ... Jun 13 15:23:30 * g00s still trying to figure out the angle in that one Jun 13 15:23:43 well it can't be any worse than it is now so haha Jun 13 15:28:32 g00s: you talking about LinkedIn or MS couldn't be any worse? Jun 13 15:28:48 markyosullivan linkedin Jun 13 15:28:55 Hi, I'm developing an app which has a ListView and a button which launches another Activity for creating objects. How can I update the list on my first view after Object is saved in the second view? Jun 13 15:29:18 g00s: I find it a pain, it seems to be essential but I haven't personally had any great benefit of using it Jun 13 15:29:51 g00s, there is no angle, user data == $$$ Jun 13 15:30:14 I don't understand how notifyDataSetChanged() exactly works Jun 13 15:30:34 sumiau, you need to read more about it online, documentation, tutorial, etc Jun 13 15:30:55 this cannot be explained on irc in few lines Jun 13 15:32:01 markyosullivan the problem linkedIn always had, was how do you become a daily destination. people would log in, create resume, and leave. but for me personally it all went to shit when they started forcing that pule news shit into the feed. so i stopped even logging in to see what my coworkers were up to Jun 13 15:32:16 s/pule/pulse Jun 13 15:33:05 g00s: Oh yeah that was bullshit, you just see these clickbait news posts. If LinkedIn focused on it being a place for developers to be able to post interesting posts on what they been up to, it'd be better Jun 13 15:33:10 oh yeah, and then there was the semi-shady thing about people paying to change their search result ranking Jun 13 15:33:24 adq: I see... but, can you give me some guidelines? Jun 13 15:33:25 any idea about this guys? http://pastie.org/10874997 Jun 13 15:33:32 surely someone must've done this before! Jun 13 15:33:37 g00s: you mean Gavin Belson? Jun 13 15:33:54 and then there was that thing about accounts hacked in 2012, i got an email like a week ago Jun 13 15:33:56 Leeds: Praise Gavin Jun 13 15:34:00 sumiau, https://developer.android.com/guide/topics/ui/layout/listview.html & https://github.com/codepath/android_guides/wiki/Using-an-ArrayAdapter-with-ListView Jun 13 15:34:14 if you dare, don't use listview and directly use recyclerview Jun 13 15:34:19 i think once reed hoffman(sp) left it went downhill Jun 13 15:34:23 it's a bit more complicated but it's worth it Jun 13 15:36:06 adq: is it about performance? Jun 13 15:36:17 not only Jun 13 15:36:58 adq: I mean it's quite a simple list of text Jun 13 15:37:09 anyone listen to Fragmented Podcast 45 / dave smith - did he talk about Bluetooth 5 ? Jun 13 15:37:31 hi Jun 13 15:37:49 What's the best approach for dealing with delays in data coming back slow in AsyncTasks? For example, I have a Login class which I use to login the user, but the user details being received back in the AsyncTask method is retrieved after the navigation drawer is created in the MainActivity class. Ideally I'd want the email retrieved before the menu is created. Jun 13 15:38:00 Im trying to make a application where you press a item in a listview then that listview disappear and the other one comes Jun 13 15:38:32 I was going to just add another AsyncTask and create the navigation drawer in the doInBackground method Jun 13 15:40:19 ok solved Jun 13 15:40:26 http://paste.ubuntu.com/17293644/ Jun 13 15:40:27 you have to model the pojo exactly as the JSON Jun 13 15:40:32 anybody? Jun 13 15:41:36 listChannels.add("" + s); ? Jun 13 15:42:14 why concatenating with an empty string, it's a string Jun 13 15:43:11 that works anyway Jun 13 15:43:21 couse i can see the string is created in Log Jun 13 15:43:24 I can see that Jun 13 15:44:18 make them appear ontop of one another first Jun 13 15:44:22 then play with visibility Jun 13 15:45:22 how do I do it? Jun 13 15:45:37 I use a linear layout Jun 13 15:45:41 no Jun 13 15:45:46 relativelayout Jun 13 15:46:12 I never used it Jun 13 15:46:17 is it not possible? Jun 13 15:46:19 otherwise Jun 13 15:46:38 linearlayout doesn't allow you to place elements ontop of each other Jun 13 15:46:43 it's either horizontal or vertical Jun 13 15:49:21 Odaym, do you knwo how I put them on top of eachother Jun 13 15:49:22 ? Jun 13 15:49:41 just list them under relativelayout Jun 13 15:49:49 last one listed will be ontop Jun 13 15:50:17 http://paste.ubuntu.com/17294064/ Jun 13 15:50:26 yep Jun 13 15:50:48 have them all match_parent Jun 13 15:51:21 relativelayout doesn't accept weight Jun 13 15:51:33 unless its in a linearlayout Jun 13 15:52:34 why is the text white Jun 13 15:53:13 why is the sky blue Jun 13 15:53:17 questions... Jun 13 15:53:34 Why dotn go to default like the first listview Jun 13 15:53:48 it isnt Odaym /: Jun 13 15:54:06 well water sure ain't blue Jun 13 15:59:19 strange Jun 13 15:59:47 the text turns white. When I write android:textcolor = "#000000" still white Jun 13 16:04:22 Odaym, do you know? I cant even change the color Jun 13 16:09:12 is retrofit2 still in beta? Jun 13 16:09:36 anyone? Jun 13 16:13:05 no Jun 13 16:17:43 how do you import svg files created in inkscape to your project? Jun 13 16:18:12 I have created svg file with Inkscape, converted it to paths Jun 13 16:18:38 than used http://inloop.github.io/svg2android/ which created name.xml (invisible to Vector Asset Studio) Jun 13 16:19:04 so I have renamed it to name.svg, but it does not like it Jun 13 16:24:21 Hi Gurus ... need your help ... Jun 13 16:25:52 I am loading some NDK libraries and it is unable to find the main library... Jun 13 16:26:57 I tired loading the library in a static block.... and I tries mentioning the library name in the manifest as the activities meta data ... Jun 13 16:27:01 d0d0: pastebin the actual error Jun 13 16:29:36 http://pastebin.com/eiwr6Mgw Jun 13 16:30:07 also, here is the link to my stack overflow post about the same error: http://stackoverflow.com/questions/37759505/android-java-lang-illegalargumentexception-unable-to-find-native-library-main Jun 13 16:44:45 d0d0: can you also pastebin the output of "unzip -v" on your APK? Jun 13 16:44:58 d0d0: is there a libmain.so in there? Jun 13 16:45:25 I have coppied VectorDrawable *.xml file to drawable dir of my project Jun 13 16:45:49 problem is that I have no preview available - it just shows nothing when I link to the xml file Jun 13 16:46:31 is there some tool which will be able to recognise the problem? Jun 13 16:47:10 hi root ... I will pastern the contents of my apk .. also, there is no lib main.so ... there is a libUE4.so Jun 13 16:47:32 d0d0: Your call is to System.loadLibrary("main") ? Jun 13 16:49:04 no ... my call is to System.loadLibrary("libUE4") Jun 13 16:49:56 and I pass the meta data in the manifest : Jun 13 16:59:45 d0d0: well, it should only be "UE4" but it looks like NativeActivity.java:170 is calling "main" Jun 13 17:00:50 NativeActivity.java has a default lib named "main"... if we do not pass any libraries then it just calls this ... Jun 13 17:01:01 ohh, this is the no-java-code thing Jun 13 17:02:42 d0d0: Any activity that extends NativeActivity will need that android.app.lib_name meta-data, but the intent of NativeActivity was not to have people extend that class as far as I know. Jun 13 17:03:52 d0d0: It was mainly made for app developers that didn't want any Java in their program and just wanted a single entry point into their native code Jun 13 17:05:12 kroot, game engines like unreal extend Native Activity ... Game engines have their code in C++ and they 'thunk' into android using the GameActivity.java .... Jun 13 17:06:50 i haven't looked into Unity but I am sure they extend NativeActivity for their C++ code as well ... Jun 13 17:06:56 d0d0: Yeah, that's just not the original purpose of NativeActivity. But the reason you're getting that error is because you have a NativeActivity without a android.app.lib_name so it's using the default "libmain.so" Jun 13 17:09:48 ok ... NativeActivity is not meant to be extended .... but I am not sure why it is using the default lib main.so even after I pass the library name in the manifest and in the system.loadlibrary statements Jun 13 17:11:38 Oh, sorry, I guess I wasn't clear. You have two activities that are extending NativeActivity. Only one of them has the library specified. You can tell by the stacktrace. Jun 13 17:12:15 Notice the class in this line: at com.epicgames.ue4.GameActivity.onCreate(GameActivity.java:266) Jun 13 17:12:40 The one you have it specified for is com.hazardnetworking.unrealandroidtest2.MainActivity Jun 13 17:17:35 holy shit ... you are right ... I did not mention the meta data for lib_name for GameActivity .... Jun 13 17:19:35 let me change the code and try again ... this will take some time as I need to change the C# scripts that generate the android code ;-) ... oh joy ... Jun 13 17:21:03 I have this svg created with inkscape http://pastebin.com/KL64SXu2 Jun 13 17:21:35 than I have used http://inloop.github.io/svg2android/ to convert it to vectorDrawable xml -> http://pastebin.com/2SUk6vkz Jun 13 17:21:52 using this xml does in android project does not work Jun 13 17:21:57 problem is with that pathData Jun 13 17:22:12 replacing it with data from working drawable works ... Jun 13 17:22:29 anyone else having problems with http://inloop.github.io/svg2android/ convertor? Jun 13 17:23:34 yes I use the other one Jun 13 17:23:53 https://github.com/a-student/SvgToVectorDrawableConverter Jun 13 17:33:40 missingno, it does not work on that svg Jun 13 17:34:06 missingno, can you please try to convert it and use it - to be sure that it is something I can fix? Jun 13 17:35:16 what is "does not work" Jun 13 17:35:26 make sure you embed transform and matrix operations Jun 13 17:36:16 pfn, that is one part of the problem - I cannot tell what is wrong with that exported xml file - I do not have tool/debugger for it Jun 13 17:36:29 so I am simply skipping to it renders nothing Jun 13 17:36:33 empty space Jun 13 17:36:49 make sure you have the right colors etc Jun 13 17:37:04 pfn, ad "embed..." what does that mean? Jun 13 17:38:04 pfn, colors are not problem because by removing pathData for some that are working - I am able to see shape of working pathData... Jun 13 17:46:26 finally Jun 13 17:50:35 is it against google rules not to include a signout button for play-services? Jun 13 17:52:19 i have a navigationview as my drawer and the items are populated via a menu resource. The NavigationView has app:itemBackground="?attr/selectableItemBackground" but there is no click feedback Jun 13 17:52:44 raoul11: are you serious? Jun 13 17:52:45 if you press and hold the item theres some touch feedback but i would like the usually click ripple Jun 13 17:53:01 usual* Jun 13 17:53:18 if you're asking about it, id have to say no Jun 13 17:54:22 orbyt_: it probably has the ripples. but they are of a similar color Jun 13 17:55:09 i doubt that....but to test how would u change the color? Jun 13 17:55:18 i can set a custom ripple for the touch and hold Jun 13 17:55:24 but nothing seems to work for the click events Jun 13 17:55:51 actually the touch and hold isnt really a ripple, it just gradually darkens to a selected looking state Jun 13 17:56:41 orbyt_: what version of android? Jun 13 17:57:27 6.0 Jun 13 17:57:45 orbyt_: try colorActivatedHighlight Jun 13 17:58:58 where? as the app:itemBackground? Jun 13 17:59:05 in your theme Jun 13 18:00:54 no apparent change Jun 13 18:08:59 i am having this problem http://stackoverflow.com/questions/36662251/unsupported-method-instantrun-getrestartdexfile-android-studio , Jun 13 18:09:19 how can i patch upgrade my android studio to stable one , Jun 13 18:09:34 i am redirected to the browser site whenever i click update Jun 13 18:13:47 Why correct Java code that works in Eclipse, shows error in MainFragment in Android SDK? Jun 13 18:13:56 Just declaring a ArrayList and adding some strings in it. Jun 13 18:14:08 how about you read what the error says Jun 13 18:14:34 error: expected Jun 13 18:14:44 the same code works and compiles fine on Eclipse Jun 13 18:38:44 anyone face the Unable to create adapter for Observable error in Retrofit? Jun 13 18:40:30 rhd: I suspect you were compiling again java 1.7 in Eclipse and now you are compiling against 1.6 in Android Studio. new ArrayList(); < do not omit the String for 1.6 Jun 13 18:42:03 aha! Jun 13 18:42:05 I fucking new it Jun 13 18:42:08 knew* Jun 13 18:42:08 Napalm: Hmm, it seems the Fragment class wasn't automatically imported which is weird. And that got me errors. Jun 13 18:42:18 that too Jun 13 18:42:20 What was the shortcut to import a class by hovering over it? Jun 13 18:42:27 so I don't have to type it all out. Jun 13 18:42:30 he was subscribing on Schedulers.io() Jun 13 18:42:44 what the fuck is schedulers.io, you create a new fucking thread, Schedulers.newThread() done Jun 13 18:42:51 rhd: alt+enter Jun 13 18:43:12 Napalm: Ok, no errors. Thanks. Jun 13 18:47:22 man, to think that I had a function called runAsyncTask that takes 5 parameters Jun 13 18:47:35 and depending on one of them either posts or gets, and he handling of return codes is in a switch Jun 13 18:47:40 and in that maybe another switch Jun 13 18:47:49 yuck Jun 13 18:47:58 do not use newThread Jun 13 18:48:14 I get the Unable to create Adapter error if I do schedulers.io Jun 13 18:48:27 those are unrelated Jun 13 18:48:48 but I have all the same versions, and the return type of the observable is correct and everything is correct Jun 13 18:49:10 if it was correct, the problem wouldn't be occurring Jun 13 18:49:52 http://pastie.org/10875371 Jun 13 18:50:37 that is exceptionally wasteful Jun 13 18:50:52 you are creating two new thread per subscription Jun 13 18:50:54 the two newThread()'s yes of course Jun 13 18:51:01 but Im trying to see if it does work at all Jun 13 18:51:44 so why that error? the RxJavaCallAdapterFactory class checks out fine and it compiles, but on running that function it's unable to create adapter Jun 13 18:52:16 retrofit, gson converter and adapter are all at 2.0.2 Jun 13 18:52:31 well you haven't provided us with the error Jun 13 18:54:06 now it works Jun 13 18:54:08 what the fuck Jun 13 18:54:21 it's just switching between io and newthread in the code Jun 13 18:54:41 that is unrelated, as i said Jun 13 18:54:42 it got scared when you started talking Jun 13 18:54:54 probably instant run problems or something else Jun 13 18:54:59 i guess so too Jun 13 18:55:04 yeaaaa Jun 13 18:55:07 makes sense Jun 13 18:55:09 thanks man Jun 13 18:57:56 now I remember, I was also facing classdeferror, this is because of instant run Jun 13 19:04:14 root ... I am still getting the same error :-( Jun 13 19:05:09 kroot .... I am still getting the same error Jun 13 19:07:19 * pfn ponders the best way from HKG to kai tak terminal Jun 13 19:07:45 startup idea Jun 13 19:14:30 i could not redirect adb logcat -d > C:\my\logcat.txt it says cant create C:\my\logcat.txt read-only file system Jun 13 19:14:45 running on windows 10 Jun 13 19:14:51 pfn: Airport Express to MTR Jun 13 19:18:21 pfn: I think they have a shuttle bus from Hung Hom MTR to Kai Tak Jun 13 19:18:40 yeah, I'm looking at the map now Jun 13 19:19:00 google maps sucks at giving mtr directions Jun 13 19:19:04 i.e. none Jun 13 19:19:07 yeah, that's strange Jun 13 19:21:41 you probably want to walk to Austin station then take that one stop to Hung Hom and then take the shuttle to Kai Tak Jun 13 19:25:08 thanks, that's useful, you've cruised out of hk before? Jun 13 19:27:04 I have a recycler view that I am trying to hook up onclick events and it works for the background view but when I touch the text area inside it, it doesn't activate the event. Jun 13 19:27:50 I tried adding an onclick handler to the text view but that doesn't work either Jun 13 19:33:54 Anyone have an idea of what to look for? Jun 13 19:43:40 in my app upload is failing the same work in simulator but fails in the device when i select upload & choose a fine nothign happens not going into either succes or error callback how can i trace the issue Jun 13 19:44:15 no trace in logcat Jun 13 19:44:19 either Jun 13 19:53:42 use a debugger Jun 13 20:10:24 looking in the SDK manager - where did the samples go ? Jun 13 20:17:03 looking for ApiDemos Jun 13 20:28:40 hey Jun 13 20:40:10 hi Jun 13 20:42:20 ssh shell@androidPhone "su; am start -a android.intent.action.CALL -d tel:0981234567" <--- does nothing Jun 13 20:42:34 via adb works fine??? Jun 13 20:43:24 No, no the app is perfect even without the fingerprint. I'm using it over an year already. I've tried couple of other apps before yours and none of them is even close to KeepShare. :) Jun 13 20:43:28 where's his review that says that :-/ Jun 13 20:46:37 is there any difference in the environment when connecting via adb vs ssh ? Jun 13 20:52:48 got it... it needed a BOOTCLASSPATH env var Jun 13 20:53:07 adb would set it and the shell in the ssh session wouldn't... Jun 13 21:09:19 hello, so I've created some hardware that Im about to write an app for, but I feel the software could benefit from an open source approach. Could I still sell the hardware along with the open source software? Jun 13 21:10:42 yes Jun 13 21:11:03 is that a shitty thing to do? It feels wrong Jun 13 21:11:33 why? Jun 13 21:11:52 the hardware needs to be manufactured, shipped, tested Jun 13 21:11:58 all that costs money Jun 13 21:12:22 indeed, and I spent the last 6 months developing it Jun 13 21:12:52 parco, when someone else makes compatible hardware and starts using your open source app with it, are you gonna be mad? :D Jun 13 21:12:52 so don’t feel shitty asking for compensation for your hard work Jun 13 21:12:54 would i need to in turn make all of the hardware open source? Like schematics and what not Jun 13 21:13:00 no Jun 13 21:13:34 jesseg, I don't think so, unless its a complete rip off. I do have a patent pending Jun 13 21:14:15 parco, the only real problem with open source software is people are more likely to contribute. Then if you get greedy, and decide to close source it, those people will feel cheated because they thought they were helping out an open source cause. Jun 13 21:14:29 jesseg, i would never do that Jun 13 21:14:39 lots of people say that at first Jun 13 21:14:41 nor should i have the power to Jun 13 21:15:02 parco, then I'd say you're good to go Jun 13 21:15:03 so you’re content to just make your money selling the hardware Jun 13 21:15:10 yes absolutely Jun 13 21:15:51 parco, also, if it's open source, people will know the protocol easily and may make their own software for it, and some commercial companies may write their own software for your hardware and sell it, although that's always a risk if it's really good hardware Jun 13 21:17:44 that would be awesome, if the open source software we create becomes some "standard" that other competitors implement with their software, which in turn allows their end users to buy my hardware Jun 13 21:17:48 that sounds great! Jun 13 21:18:09 Sounds like a plan to me, then Jun 13 21:19:55 my next question is android specific. The device i made communicates via Bluetooth Smart. Does android allow me to create some sort of bluetooth service that I can offer on the play store, almost like an interface for other apps to talk to Jun 13 21:20:14 not really Jun 13 21:20:15 or would the bluetooth smart communication need to be implemented natively within in app? Jun 13 21:20:22 probably within the app Jun 13 21:22:17 has anyone intermittently gotten a 'ERR_EMPTY_RESPONSE' when loading a web view in an app? Jun 13 21:22:18 ok, looks like i have some decisions to make then Jun 13 21:22:19 thanks! Jun 13 21:24:36 if you want developers to integrate support for your device in their apps, you might wish to make a library which handles communication for them Jun 13 21:25:15 s73v3r: the library would handle all the setup and tear down of a bluetooth smart connection, along with sending to and from? Jun 13 21:25:39 pretty much. and probably some nice convenience methods for doing common things Jun 13 21:25:43 that's a really good idea I havn't thought of Jun 13 21:26:16 gmai Jun 13 21:26:19 woops Jun 13 21:26:41 anyone up for hire? Jun 13 21:26:59 Sorry, just read topic Jun 13 22:04:57 my app doesnt show proper permissions on install while the lines are correct in androidmanifest, is there something else i forgot? Jun 13 22:06:38 ahh minsdkversion Jun 13 22:15:40 jre7 and bcprov154: Anyone know if there's a conflict between these? Jun 13 22:16:23 SimonVT, hi - anybody home? Jun 13 22:17:09 does there exist a channel that has freelance programmers (android/ios) Jun 13 22:17:14 I have created functional example Jun 13 22:20:48 but if anybody else would look at it I will be glad Jun 13 22:20:52 https://github.com/sonavolob/ABIconTest/blob/master/app/src/main/java/com/example/abicontest/StableArrayAdapter.java Jun 13 22:51:06 Can someone help me debug this little piece of android code for MainActivityFragment. It doesn't show any errors, it it show "unfortunately stopped working" when I run it on the emulator and my device. Jun 13 22:51:07 ? Jun 13 22:51:10 http://pastebin.com/KYFhxA4V Jun 13 22:51:41 Just attempting to add array of strings to a ListView. Jun 13 22:52:03 http://imgur.com/jacoj rhd Jun 13 22:52:28 Lol ok. Jun 13 22:53:53 looks like a } is missing Jun 13 22:54:04 * wyrdtrtle hides Jun 13 23:05:06 Is there a good way to clean up recycler views' ViewHolders? Jun 13 23:08:57 explodes: onViewRecycled in your Adapter Jun 13 23:09:19 explodes: you also have onViewAttachedToWindow and onViewDetachedFromWindow Jun 13 23:10:28 why would my media player not play anything? I even has a .setOnErrorListener and its not printing anything either Jun 13 23:10:33 not sure how to debug Jun 13 23:10:51 Napalm: Ok, cool. It isn't called when I'm expecting it to be, but that is fine Jun 13 23:11:51 explodes: when do you expect it to be called? Jun 13 23:12:57 Not sure now that I think about it. But when the fragment is paused because a new fragment is opened on top of it, clearing some resources would be pretty nice Jun 13 23:14:16 explodes: whats that got to do with recyclerview? Jun 13 23:19:10 ok why does this throw an IO exception: http://pastebin.com/Rb64t8jA Jun 13 23:19:28 says setDataSource() failed Jun 13 23:19:35 status 0x80000000 Jun 13 23:19:44 What is the stack trace of the IOException? Jun 13 23:22:21 explodes: http://prntscr.com/bg1kq6 Jun 13 23:24:48 lel was internet permission woops Jun 13 23:27:45 failing to read logs OP Jun 13 23:47:33 cool , finally apple is going to replace hfs+ Jun 13 23:55:54 if in my activity i create a member variable mMyFragment, whenever i use FragmentManager.replace(...) to insert my fragment it seems myFragment.onCreate() is still called. does this sound like it's expected and i'm just stupid? Jun 14 00:07:29 hi mathu Jun 14 00:10:37 Hello, can anyone link me to how I can integrate with ff and Chrome's "add to home screen" features as a launcher developer? I'm failing at searching :S Jun 14 00:11:23 i don’t think a launcher would be doing those things Jun 14 00:11:35 a launcher would be sending intents to apps Jun 14 00:12:32 That's what in doing now, but I want to display sites/webapps that people 'pin' to the launcher Jun 14 00:13:19 I'm* Jun 14 00:13:22 Are integers atomic in Android? i.e. if another thread was (haha save it) changing an int from 0 to 0xFFFF and my main thread happened to read it, could it read 0x00FF for example? Jun 14 00:13:39 http://interestingengineering.com/programmer-automates-job-6-years-boss-fires-finds/ Jun 14 00:13:40 lol, moron Jun 14 00:13:52 jesseg, same behavior as on jvm Jun 14 00:14:28 pfn, hmm I don't understand. Some versions of JVM are atomic and others not? Jun 14 00:14:45 all jvm behave the same way Jun 14 00:14:57 losingkeys: can you tell if it’s a link or not? If so, then wouldn’t you just make an intent for opening a webpage Jun 14 00:15:32 and android is not a jvm Jun 14 00:16:27 s73v3r: I'm looking for an intro. I'm not sure where these things are stored (if they are), or if they just send my launcher an intent or something. I'll poke around the ff for android and chrome docs tonight Jun 14 00:16:42 well, how do you get the list of apps? Jun 14 00:17:07 pfn, oh gotcha, so go ask me another place then :D Jun 14 00:17:57 and your question doesn't make sense Jun 14 00:18:58 unless you use the proper threading primitives, your change may or may not be reflected immediately Jun 14 00:19:55 s73v3r: packageManager.getInstalledApplications(PackageManager.GET_META_DATA) right now. Should I be doing something different? I have to filter out things I can't launch and some specific system stuff Jun 14 00:20:26 have you looked to see how the Android launcher does it? Jun 14 00:20:29 it’s open source Jun 14 00:20:40 Nope but that's a smart idea :) Jun 14 00:20:48 I'll do that, thanks Jun 14 00:22:58 hmm, just reading about variables and threads. Almost seems a given variable that should be global may actually exist twice - one in the thread and one outside (i.e. different memory locations) and one might or might not get copied to the other by the JVM Jun 14 00:23:32 unless I use volatile Jun 14 00:25:05 jesseg there is also AtomicInteger, etc Jun 14 00:25:16 just because it's a global variable doesn't mean there can only be one copy in memory Jun 14 00:25:21 g00s, ahh OK very interesting Jun 14 00:25:31 especially when threading is involved Jun 14 00:25:35 jesseg which solves updating / visibility Jun 14 00:25:46 Well, I kind of assumed that if it was *a* variable there was only one :P Jun 14 00:25:48 there's also very little use in updating 0 or 255 Jun 14 00:26:08 that's rather false Jun 14 00:26:23 stuff moves from main memory to cache and registers all the time Jun 14 00:27:13 I'm thinking maybe my thread should call a function in my main activity as a callback rather than poking stuff in global variables Jun 14 00:27:55 you still would have a threading issue, unless you maintain all updates on main thread Jun 14 00:28:06 I'm trying to make a little oscilloscope app that uses the mic input, so naturally audiorecord runs in it's own thread since it's busted Jun 14 00:28:35 Actually maybe they fixed the audiorecord callback issue Jun 14 00:28:43 in like 4.0 or something Jun 14 00:30:19 hello i recently switch from eclipse to android studio and i am wondering why gradle build reuires internet connection and long time Jun 14 00:30:42 gradlew --offline Jun 14 00:32:05 mx8manger in AS preferences there is a box for 'offline work' Jun 14 00:32:08 is that a cli am win 8 user with no linux background and no capilities to run linux on my machine Jun 14 00:32:30 build -> build tools -> gradle Jun 14 00:34:17 and which is better getting a copy of gradle or using the default wrapper and how it is related to offline/online work Jun 14 00:36:58 ??? Jun 14 00:38:14 have you seen any benchmark of the overhead introduced by rxjava compared with a non-rxjava implementation? Jun 14 00:38:26 if not, any word on that? Jun 14 00:46:15 hey guys, any pages out there that demo some common app layouts? (modern) Jun 14 00:47:06 https://developer.android.com/design/index.html Jun 14 00:48:17 "material design", that's new to me Jun 14 00:50:24 is this like the new age layout technique that everyones moving to, or just an example Jun 14 01:00:41 Isn't System.err.println() meant to appear on the logcat? Jun 14 01:09:02 at one point it swallowed the output, i think you can (does automatically now?) redirect to logcat, but you should be logging using the Log class Jun 14 01:13:31 Hi, I need help on something with c and jni. I'm trying to get socket and streams to work, so far I got only sockets. How do I use streams with android c and jni? Jun 14 01:17:50 parco, it's the old new Jun 14 01:19:03 soon they will change, i guess Jun 14 01:19:34 designers need job security Jun 14 01:24:02 anyone? Jun 14 01:30:18 can someone help me out? im suddenly getting this when trying to run -> http://pastebin.com/NNVFLM00 Jun 14 01:43:53 *RAGEEEEEEEEEEEEEEEEEEEEEEE* the ebay seller who I bought a replacement part from for my monitor sent me the wrong damn part after I waited over a MONTH for it to clear customs. Jun 14 01:44:10 ok back to android. yay the google team fixed the bug I submitted about the test recorder! Jun 14 02:03:55 b1ackcat, google fixed a bug in android? I didn't know things like that happened :D Jun 14 02:21:39 Why does this throw a NullPointer exception. Here's the code http://pastebin.com/L3W22cpm and here's the stack trace. http://pastebin.com/uD9bcvGr? Jun 14 02:22:50 *http://pastebin.com/Lj4PmiyB for the stack trace Jun 14 02:23:03 I put a breakpoint and the adapter is not null. Jun 14 02:24:06 the new android studio + gradle plugin is incredibly more complex than the old eclipse version Jun 14 02:24:08 holy moley Jun 14 02:29:35 wat Jun 14 02:31:06 haha at least they fixed it! was getting an IDE error whenever I tried to complete an espresso test recording. turns out I had an issue with how my build.gradle file was defining things. It was still technically valid in terms of syntax/parsing, but it wasn't "properly formed" so the test recorder was choking on it Jun 14 02:55:40 b1ackcat, that's quite something. Well, I just found out they fixed a bug with AudioRecord that I ran up against a few years ago. All those years I had no idea whether it was my problem or android's and now today I found out it was theirs :D **** ENDING LOGGING AT Tue Jun 14 02:59:59 2016