**** BEGIN LOGGING AT Mon Aug 08 02:59:59 2016 Aug 08 03:01:42 I came across a project which provides a library; they have documentation that says I can add a line in build.gradle ... buildscript { ... dependencies { compile '...' } } what does that compile option do? Aug 08 03:02:18 Does it let me compile it as part of my project, as in if I update those files with my project notice and recompile them; or am I misunderstanding and that's if i create a project just for that library? Aug 08 03:06:01 i think they call that the scope Aug 08 03:06:11 it means, your app needs ... to compile Aug 08 03:06:55 there are other ones, like debugCompile Aug 08 03:08:47 k Aug 08 03:16:07 lol http://imgur.com/a/WV4oh Aug 08 03:16:35 after all that hard work listening to programmer dilemmas, it needs some vacation too Aug 08 03:17:52 man Aug 08 03:17:59 I remember when that duck was in Sydney. Aug 08 03:20:58 would be awesome if it was equipped with some audio , just let the thing float around the docks hammering out expletives + donald trump .. Aug 08 03:23:04 hi Aug 08 03:25:41 More Baroda Pride in place Aug 08 03:26:50 B is for Bandhini, the tie-and-dye fabric Aug 08 03:27:00 A is for America, the land of all hopefuls. Kevi Rite Jaish? Aug 08 03:27:15 R is for Relatives, many who you'll never meet again Aug 08 03:27:22 i have a UI question if anyone's got a moment. I want to recreate this sort of look: http://oi64.tinypic.com/wjx9gk.jpg Aug 08 03:27:36 WHat is the best way to do it? Should I use tablelayout, or should i try linearlayouts? Aug 08 03:50:35 ir7466 lol, there is so much junk on that page, what is the layout ? Aug 08 03:50:51 what do you mean? Aug 08 03:51:06 is it the Blue thing with "category" ? Aug 08 03:51:14 i'm talking about the whole thing Aug 08 03:51:35 like i thought initially, it might be a 6 row table Aug 08 03:51:42 with different styles on each row Aug 08 03:51:53 but then i thought maybe a linerlayout is better? Aug 08 03:52:00 because it's all 1 column Aug 08 03:52:16 its a pretty simple thing ... either will do. unless you don't know how many rows Aug 08 03:52:43 i know how many rows Aug 08 03:53:03 it'll be exactly like that, with different text though Aug 08 03:56:07 which approach do you think would be easier? Aug 08 03:56:44 linearlayout fine Aug 08 03:57:44 and how difficult would it be to do the styling? like making that top row have a blue background Aug 08 03:57:50 have the entire thing have a light grey border Aug 08 03:57:50 etc Aug 08 03:58:09 i was playing around with tablelayout and could get the border with a drawables Aug 08 03:58:15 you just set the background for that ... this is literally layout 101 Aug 08 03:58:35 so basically, you think it will be dead easy to copy that layout exactly? Aug 08 03:58:47 yeah ... Aug 08 03:59:49 what should i put where the text views go? Aug 08 03:59:57 ie. in html you'd have a wrapper like div or span Aug 08 04:00:09 in the the linear layout should i wrap the textview's in anything? Aug 08 04:11:24 ir7466 start with the training on UI and layouts ... Aug 08 04:20:49 how do you add a background colour to a textview? Aug 08 04:21:05 i created a style for the textview and successfully added text color and size Aug 08 04:21:20 but if I add @color/colorPrimaryDark then there's no change to the background colour... ? Aug 08 04:22:09 ir7466 you should start at the beginning and read the UI guides Aug 08 04:22:10 I love how AS lets you run code on multiple devices but then it fails Aug 08 04:23:25 CedricBeust i just hot some bad news : a project i use (ragel) is no longer targeting java. have you used antlr on android lately ? i remember you brought it up a while ago. I too looked at it but seemed poor at the time for android Aug 08 04:23:54 specifically, it would blow up the call stack easily Aug 08 04:25:35 am i barking up the wrong tree with colorBackground? Aug 08 04:25:51 i am reading doco from stackoverflow, it seems this is not as straight forward as i hoped Aug 08 04:26:25 its very straightforward, but you aren't starting from a good foundation Aug 08 04:26:38 thats why i said, read the UI guide on layouts Aug 08 04:27:00 this is very basic. if you are confused about this, it indicates you haven't spent any time looking at the basic docs Aug 08 04:27:26 you are talking about this guide yes? https://developer.android.com/guide/topics/ui/overview.html Aug 08 04:28:04 yep. see layouts and 'styles & themes' Aug 08 04:29:54 omg lol https://code.google.com/p/android/issues/detail?id=200925 Aug 08 04:35:46 g00s: ;) Aug 08 04:36:39 gordon_ thats pretty damn careless Aug 08 04:38:23 and jill still doesnt support java8 properly ;D Aug 08 04:39:07 i haven't been following j/j much ... i read a few times they were slowwwwww Aug 08 04:40:00 https://code.google.com/p/android/issues/detail?id=7884&q=scala&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Aug 08 04:40:02 LOL Aug 08 04:40:22 haha Aug 08 04:40:48 gordon_ its assigned ! keep your fingers crossed ... Aug 08 04:48:19 it's automatically assigned I think Aug 08 04:48:33 I wrote issue once and it was assigned in second Aug 08 04:48:55 https://code.google.com/p/android/issues/detail?id=214629&q=scala&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Aug 08 04:57:36 thanks for pointing my in the right direction g00s, i was able to get it working Aug 08 04:57:45 not always Aug 08 05:09:15 hi all Aug 08 05:09:28 guys, have anyone used a retained fragment here? Aug 08 05:09:35 I have a small question. Aug 08 05:11:25 "Java Applet support in browser" Aug 08 05:11:28 really? really!? Aug 08 05:11:40 Why hasn't that been "wontfix" labeled. Aug 08 05:12:15 oracle announced that they gonna remove applet support. Aug 08 05:13:20 ouch http://www.zdnet.com/article/quadrooter-security-flaws-affect-over-900-million-android-phones/ Aug 08 05:14:51 I personally hate java. Aug 08 05:14:52 ""Qualcomm has a significant position in the development chain, in that a phone maker isn't taking the Android open-source code directly from Google, they're actually taking it from Qualcomm," he said. Aug 08 05:15:01 any reason I use it is android... <.< Aug 08 05:15:02 man what a cluster f$%#@ Aug 08 05:17:32 lol Aug 08 05:17:43 that means newly fixed bugs take longer to trickle down to the end user Aug 08 05:33:56 in android studio how do you keep the preview (for xml views) window to STAY in split mode Aug 08 05:34:04 every time i click back on to the code it auto hides Aug 08 06:02:43 ok so i have got my view in place now Aug 08 06:12:06 how can i make it so it works in either portrait OR landscape? Aug 08 06:12:11 at the moment it's in portrait Aug 08 06:12:17 but if i turn the display it stays in portrait Aug 08 06:16:24 i added android:configChanges="orientation" to the manifest Aug 08 06:33:13 okay... fixed that one Aug 08 06:33:30 now all i want, how do i convert this into a full screen activity? Aug 08 08:08:13 google store doesn't seem to working while trying to install total commander from google store, it says that I've not signed, although I can easily verify that I've signed in. Any ideas about that? :o Aug 08 08:08:53 are you the dev of it? Aug 08 08:09:02 coz im guessin you're on the wrong chan Aug 08 08:09:40 nope, but I asking this from aonther channel, and they suggested this one Aug 08 08:09:58 try to force stop google play store and try again Aug 08 08:11:56 doesn't seem to work, oh well I dont' want to complai Aug 08 08:15:13 Hello, after I call .requestPermissions(...) can I do other stuff like processing until .onRequestPermissionsResult(...) is called? Aug 08 08:16:55 yes. Aug 08 08:21:13 Okay, now, should a class that provides location tracking extend a Service or an Activity ? Aug 08 08:22:17 yes Aug 08 08:22:47 should it work in background? Aug 08 08:25:07 technically it should retrieve your coordinates once and then do something about it, it shouldn't be constantly tracking where you are Aug 08 08:26:06 Ashiren, you said 'yes' but which one of the two? Aug 08 08:28:03 basically the GPS tracker enhances the funcionality of two activities in particular Aug 08 08:28:28 where if the GPS cannot be used for any reason, there is a fallback option. So I guess it should be a service or ... ? Aug 08 08:30:29 then service is your friend Aug 08 08:44:33 Okay, so how do I disable this warning? http://i.imgur.com/YjhvkDH.png because I do check it but it does not detect it Aug 08 09:03:53 alt+enter, there's usually a quick fix for suppressing Aug 08 09:24:50 you should show your full code Aug 08 09:27:01 my media player still plays music during incoming calls, so I gotta stop that, but I might make it a user optional feature ;) Aug 08 09:27:04 android-dev967, which part specifically? Aug 08 09:27:56 which one of these solutions is the best to pause the playing when the phone needs the sound for other things ? ... http://stackoverflow.com/questions/5610464/stopping-starting-music-on-incoming-calls Aug 08 09:29:23 it should also pause for sounds other than phone call as well like alarms and text message and notification alerts Aug 08 09:34:20 I guess the guy with the most points wins Aug 08 09:35:37 shmoooz, use AudioManager which will tell you when you lose the focus Aug 08 09:35:55 Mavrik: yeah, that's what I was thinking too Aug 08 09:36:00 The first answer is crap which will fail with anything that's not an actual call. Aug 08 09:36:11 (Like Hangouts, Skype, etc.) Aug 08 09:36:53 yeah, it should pause on all types, so why did that guy get the most points? Aug 08 09:37:57 Mavrik: would it be against the rules if I made it user optional with volume, so the user can set if and at what volume during calls ? Aug 08 09:38:35 because some people I gotta listen to talk for too long, I wouldn't mind having background music ;) Aug 08 09:40:18 without getting sued for making a car crash during an emergency call because the user enabled the option... Aug 08 09:43:46 Hello. So I have a service which I want to start in an activity, how do I start the service and pass an argument to it? also is onCreate(...) like the constructor of the service or ... ? Aug 08 09:44:08 So, I've been putting off updating targetSdkVersion and compileSdkVersion (currently 21) due to things not being there in 24 (HttpClient etc). Aug 08 09:44:29 now, I feel that I really should update to v24, so what is there about that I can use instead of HttpClient, or is there a way for me to include these? Aug 08 09:44:58 I was using import org.apache.http.client.HttpClient; Aug 08 09:45:20 Use OkHttp3 Aug 08 09:46:03 I have that in my build.gradle already, so I'll take a look into that. Aug 08 09:46:16 oh, it's actually okhttp:2.4.7 would that be ok? Aug 08 09:46:20 or does it have to be 3? Aug 08 09:47:17 yes okhttp would be ok ;) Aug 08 09:48:04 OK cool, and another thing, that it's throwing an error about Aug 08 09:48:10 List Aug 08 09:48:16 it doesn't like the NameValuePair Aug 08 09:48:35 though this is how I set the post data, so I guess I can do this in another way as described in the OkHttp guide Aug 08 09:51:29 Anyone here using Fabric's Answers? Aug 08 10:04:32 So, looking into this, the OKHttp has an issue "Try-with-resources requires API 19 (current min is 14)". Aug 08 10:04:52 is there any way to change the code to allow this to work on 14? Reason being that some of our customers are using API < 19. Aug 08 10:05:34 Hello, on my application I removed the title. But when i launch the app, there is a small time the title appears. Its like a splash screen, with a white page, and the title of my activity Aug 08 10:05:56 How do I remove this splash screen ? Aug 08 10:33:46 sdousley, don't use try with resources. Aug 08 10:33:55 it's not OkHttp that's at fault. Aug 08 10:34:18 mtR_, you optimize the startup so it doesn't block while loading Aug 08 10:34:25 It's an automatic placeholder. Aug 08 10:38:51 It's based on the theme in the application tag in the manifest.. so create a theme that does what you want Aug 08 10:40:16 Or is it the activity theme? Anyway, modify your themes Aug 08 10:44:19 Question about location: How does an the Android system update the device's location? For example: a user moves from point A to point B. At B, he presses the button 'show my location' (or whatever it's called) in google maps app. How does his location actually get updated to point B? I know that I assume the button in GMaps App simply reads in the last known location or does some other READ from LocationServices, but how actually does Aug 08 10:44:19 this variable in LocationServices (for example, the longitude) get updated??? Which method calls do that? And are those methods user methods, or system methods? Aug 08 10:56:27 Cmaj6, Android location APIs call callbacks on when location is updated. Aug 08 10:56:40 Google Play Services (and maps and others) hook into that and remember the last they got. Aug 08 11:00:14 Mavrik: so whenever i call LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient) to get a Location object, getLastLocation reads the components that can track location and sets it as 'the last location' in the returned Location Object? In other words, i don't have to manually somehow *track* the location of the device, but simply reading from the variables (using getLastLocation) suffices? Aug 08 11:00:43 getLastLocation will return you last location that has the device seen. Aug 08 11:00:49 Which may or may not be available, may or may not be old. Aug 08 11:00:53 And may or may not be wrong. Aug 08 11:01:37 If you want to tell the device that you're interested in current location you need to either use requestLocationUpdates with Fused API Aug 08 11:01:50 That will cause the device to start actively powering up location hardware Aug 08 11:21:18 Hello guys. I have an object which overrides onRequestPermissionsResult(...) and has another method which calls requestPermissions(...). I wait on a loop in this method where I call requestPermissions(...). The condition for the loop to stop is for the onRequestPermissionsResult(...) overriden method to change the value of one of the variables in the object. However it is getting stuck in the loop and onRequestPermissionsResult(...) is never Aug 08 11:21:18 called. The documentation says its asynchronous. What's going on? Aug 08 11:28:29 Have to hack my way to getting a goddamn view border. This API sucks so much. Aug 08 11:37:33 so how is c++ development for android, is the toolchain similar? Aug 08 11:39:53 hey! Aug 08 11:40:30 how can o download android developer docs for offline usage? foe example from here https://developer.android.com/training/index.html Aug 08 11:40:36 can i* Aug 08 11:43:08 hhee, should be part of your sdk in [...]android-sdk/docs Aug 08 11:43:19 otherwise any site downloader would do, from curl to wget via whatever Aug 08 11:43:23 adq, got it thx a lot Aug 08 11:43:53 Jiggunjer, it's clang Aug 08 11:43:56 3.8 atm Aug 08 11:46:30 Afternoon! I've been fidgeting with layouts. I put a linear layout and put "match_parent" on it for width, but it doesn't. It matches the content. Aug 08 11:54:15 lg188: whats around teh linearlayout? Aug 08 11:55:59 Nothing, it's a frame. The other frames seem to work perfectly. Aug 08 11:56:22 the only difference between their decleration is their id and name attributes Aug 08 11:57:34 fragment* Aug 08 11:59:47 Nevermind, made a mistake, the fragment itself has a list, and I was editiong the row layout for the list. Aug 08 12:01:56 hehe, rubber duck debugging succeeds again :D Aug 08 12:01:59 Hello all, how can I test if fragment still running or not? I have the issue that after fetching some data from the server, my app crashes. That's because it tries to update the UI with new data, while the fragment was destroyed. I already tested with isVisible(), but that didn't help. I can derive my own fragment and add a flag in onDestroy() to test whether the fragment has been destroyed or not, but if there's a better and cleaner solution I'd lik Aug 08 12:01:59 e to see it. This is something common, so I think there must be a solution. Aug 08 12:02:56 guys is there a way to wait for onRequestPermissionsResult(...) to be called and executed? Aug 08 12:03:34 the first thing I need to do in the application is to use the location so I need to wait for the user's response! Aug 08 12:04:23 call what you need to call from that callback then? Aug 08 12:05:50 then what code will execute while waiting for the callback to execute Aug 08 12:06:00 like what do I do in the meantime Aug 08 12:06:37 you just said you have to wait didnt you? Aug 08 12:06:43 yes Aug 08 12:06:45 if you gotta wait you gotta wait Aug 08 12:06:59 I am not understanding Aug 08 12:07:03 otherwise you could split things up and do non-location right away Aug 08 12:07:14 and do the location stuff after they give perms Aug 08 12:07:16 how do you wait programatically? Aug 08 12:07:41 you dont? the system will call that callback when its done Aug 08 12:07:52 you dont explicitly wait till it does Aug 08 12:08:05 same as how like onStart() or onPause() are done Aug 08 12:08:37 Okay my brain is going to implode Aug 08 12:09:12 heh okay lets back up Aug 08 12:09:15 what do you want to do? Aug 08 12:09:41 method A returns True if we have permissions or False if we don't have permissions Aug 08 12:10:02 method A must wait for onRequestPermissionsResult(...) to be called and executed to return the result Aug 08 12:11:04 no? you call ContextCompat.checkSelfPermission(thisActivityContextCompat.checkSelfPermission(thisActivity, Manifest.permission.WRITE_CALENDAR); Aug 08 12:11:33 that returns true or false if you have the perms Aug 08 12:11:48 er, well it retunrs PERMISSION_GRANTED or DENIED Aug 08 12:12:07 I do that in Method A, if the answer to that is true, I return true, if its false, I ask the user for permission and that is where I have to wait for onRequestPermissionsResult(...) Aug 08 12:13:23 oh Aug 08 12:13:37 no you're approaching it wrong then Aug 08 12:14:09 lets say you've written a getCoord() method that does the location stuff and gets the actual coordinates Aug 08 12:15:07 Hello all :) Aug 08 12:15:09 now you make another method that does if (checkSelfPermission(..)) { getCoord(); } else { ActivityCompat.requestPermissions(....); } Aug 08 12:15:36 ZeNEX: now that method just returns if it oesnt have the perms Aug 08 12:15:49 I am stuck developing a custom progress bar, could someone please help me? Aug 08 12:16:00 ZeNEX: now in your onRequestPermissionResult(..) method you just call that method again Aug 08 12:16:38 ZeNEX: if it has the perms it will call the getCoord(); if it doesnt, you do the fallback flow Aug 08 12:16:55 ZeNEX: https://developer.android.com/training/permissions/requesting.html#perm-request this stuff Aug 08 12:17:44 perfinion, I think I managed to fix it by using a countdownlatch Aug 08 12:18:00 ZeNEX: but the idea is you just return from it and then later when the onRequestPermissionResult() is called you call the stuff again Aug 08 12:18:07 countdown latch? Aug 08 12:18:08 perfinion, look at this http://stackoverflow.com/questions/14929322/need-to-wait-for-asynchronous-api-callback-before-i-return-from-method-in-java Aug 08 12:18:36 ZeNEX: oh uh you almost definitely do not wait to wait there, you're on the main UI thread Aug 08 12:18:44 so nothing can happen if oyu block there Aug 08 12:18:49 I want to set chinese text to textview. I am not doing localisation, I am fetching data that's in Chinese and I want to diplay it on textView Aug 08 12:18:56 Please how can I do that? Aug 08 12:18:58 I've gone through various pages of stack overflow questions to understand on how to change my progress bar color. Aug 08 12:19:04 ZeNEX: you'll get ANR's all over the place Aug 08 12:19:18 I did change the color. However, when progress happens, I don't see any progress bar, but only background. why ? Aug 08 12:19:31 spykins: textview.setText(strInChinese)? Aug 08 12:19:41 yes Aug 08 12:20:04 rand0m: you're setting it in the theme? Aug 08 12:20:06 textView.setText(སྐྱབས་བཅོལ་བའི་རྩེད་འགྲན་རུ་ཁག་རེའོ་ཨོ་རྩེད་འགྲན་); Aug 08 12:20:31 spykins: what doesnt work after that? Aug 08 12:20:52 It sets empty string on the textView Aug 08 12:21:22 I bet i need to find away to convert the སྐྱབས་བཅོལ་བའི་རྩེད་འགྲན་རུ་ཁག་རེའོ་ཨོ་རྩེད་འགྲན་ to char sequence Aug 08 12:21:45 spykins: its in a string first or you're just setting it directly in .setText("stuff")? Aug 08 12:21:56 perfinion: I created a new custom XML in drawable and included the colors in layer-list Aug 08 12:22:13 I am reading from online as a tring Aug 08 12:22:14 spykins: print it to logcat first and check the string is right? Aug 08 12:22:15 should I create one in theme and use styles? Aug 08 12:22:30 It’s printing in logCate Aug 08 12:22:40 but not setting on the textView Aug 08 12:23:08 rand0m: yeah, its easier to set the theme stuff properly and jsut set the theme on the progress bar instead of setting everything else on the bar one by one Aug 08 12:25:46 perfinion: It’s a string but when setText on textView calls char sequency on it, I think it doesnot find any character Aug 08 12:25:55 maybe it has to do with unicode etc Aug 08 12:26:22 spykins: its from a server? or hardcoded? Aug 08 12:26:30 From a server Aug 08 12:27:16 are you decoding it properly as unicode and stuff? Aug 08 12:27:25 No Aug 08 12:27:32 I am taking it as string Aug 08 12:27:55 how are you getting it from the server? Aug 08 12:27:59 perfinion, "Need to wait for asynchronous api callback before I return from method" this is exactly what I want to do, do you know how to do this? Aug 08 12:28:44 As an xml file Aug 08 12:28:50 I save it to database Aug 08 12:28:57 Then read from database, Aug 08 12:29:25 When I try to show it in a recycler view, the chinese stuff doesn’t show up Aug 08 12:29:35 ZeNEX: re-read hte link i sent, you're not supposed to "wait" for it. you're supposed to just return and then later in the onPermissionRequestGranted() you call the stuff you need to call Aug 08 12:29:45 When i print the read operation from db. it logs it out Aug 08 12:29:54 spykins: what type is it? Aug 08 12:30:07 མི་རིང་བར་བོད་མི་ ༡༡ ཁེ་ན་ཌར་གཏོང་འཆར་འདུག instance of class java.lang.String Aug 08 12:30:25 thats just showing up as boxes in my terminal Aug 08 12:30:42 perfinion, it will be too late then, because I either (a) use the location service or (b) fallback to manual mode so if I don't pause to get an answer the application will always go to (b) fallback to manual Aug 08 12:31:07 So change your code to make it not too late Aug 08 12:31:18 ZeNEX: then change the later stuff Aug 08 12:31:46 but the user can spend like 5 minutes looking at the dialog Aug 08 12:31:50 an infinite time Aug 08 12:32:07 Yep Aug 08 12:32:16 is there a way to make it not asynchronous but like Aug 08 12:32:19 Nope Aug 08 12:32:21 ZeNEX: what is hte manual method going to be doing in the mean time anyway? Aug 08 12:32:51 you cant block the main UI thread regardless, if you do not return it wont even show the dialog box Aug 08 12:33:04 the app either detects where you are automatically and selects your box for operation or you choose the box manually from a list Aug 08 12:33:12 hi perfinion, I've created a new style called customProgress and then included it in my progressbar as android:theme="@style/customProgress" it doesnt work :s Aug 08 12:33:55 hi .:()= Aug 08 12:33:55 ZeNEX: yeah so if they're looking at the permission box then they cant be picking manually from a list either so it doesnt matter Aug 08 12:33:59 perfinion, you understand now once I go down that road the location service is meaningless Aug 08 12:34:43 I hate this model lol Aug 08 12:34:46 ZeNEX: you should re-read how hte permissions stuff works, it can take many rounds if they deny it so teh way you have it now wont work at all Aug 08 12:34:48 who thought of this mess Aug 08 12:35:06 its the same as every single other thing in callback-driven programming Aug 08 12:35:33 its not like Button's wait in them until the user clicks, they register a thing and the system calls it when it happens Aug 08 12:36:08 but it just cannot work for me Aug 08 12:36:24 because it looks like garbage if they see the manual listing behind Aug 08 12:36:55 So don't show it Aug 08 12:37:14 who needs to do processing while the user is thinking about giving permission Aug 08 12:37:22 like 1% of the apps Aug 08 12:37:59 ZeNEX: how about the processing that the whole app needs to use to draw the box itself to the screen? Aug 08 12:38:24 draw it, wait for input Aug 08 12:38:45 ZeNEX: how can it draw it if you are blocking the thread? Aug 08 12:38:56 you're thinking about it the wrong way around Aug 08 12:39:27 regardless, if the function is freaking asynchronous why the hell can I block the thread? Aug 08 12:39:40 and unlock it from the super cool asynchronous callback Aug 08 12:39:58 ZeNEX: https://en.wikipedia.org/wiki/Event-driven_programming Aug 08 12:40:22 event driven programming is useful when there is a constant loop Aug 08 12:40:41 all of android is event-driven programming tho Aug 08 12:40:53 thats what onCreate, onStart, onStop etc are Aug 08 12:41:00 Okay, asynchronous means that the callback is running on its own thread? Aug 08 12:41:09 the callbacks are called when the event happens Aug 08 12:41:26 so if enter an infinite loop, will the callback get called? Aug 08 12:41:37 ZeNEX: no, most events happen on the main thread Aug 08 12:41:54 so I must exit the method for the thing to get called? Aug 08 12:42:00 ZeNEX: if you do while(true) {}; your app will completely hang and get killed when the ANR shows p Aug 08 12:42:03 up* Aug 08 12:42:04 yes Aug 08 12:42:21 what if I call another method? Aug 08 12:42:24 try putting a while(true) {}; inside an onCreate method Aug 08 12:42:27 will it get killed inbetween? Aug 08 12:42:34 called* Aug 08 12:43:10 there is a main looper that handles things, and events get added and get handled when it loops through them Aug 08 12:43:41 if there are no events (eg the user is reading the screen) the looper just does nothing and gives up the CPU Aug 08 12:44:29 pretty much all GUI stuff is event-driven Aug 08 12:44:33 my question is, why when you call requestPermissions the user is not asked immediately Aug 08 12:44:39 GTK has a looper thing, windows does too etc Aug 08 12:45:07 Because, like everything else in Android, it's async Aug 08 12:45:26 the drawing stuff happens all together Aug 08 12:45:39 So let me get this right Aug 08 12:46:00 How can I modify an OnClickListener? should I set it to null then modify it? Aug 08 12:46:10 I'm trying to change the listener of a button Aug 08 12:47:54 You can just set a new one Aug 08 12:48:21 SimonVT: ok, so it will replace the previous one Aug 08 12:48:27 hmm.. colorAccent only sets the progress bar color and not the background color. How do I change the background color of progress bar? Aug 08 12:48:29 Yep :) Aug 08 12:48:36 SimonVT: sweet Aug 08 12:49:08 perfinion, okay so I fallback to the manual mode, but the system does not ask me allow access to the location UNTIL I click one button... why is this happening Aug 08 12:50:34 It goes like this: I see I dont have permission, I ask for permission and exit. Obviously it returned we do not have permissions so I fall back to manual mode, at which point I draw 6 buttons on the screen, and the box that asks for permission does not appear until I click one of the 6 buttons. Aug 08 12:50:36 ZeNEX: why not just fallback to it from the callback ? Aug 08 12:50:55 no? Aug 08 12:51:13 no what? Aug 08 12:51:37 in onStart() you check if you have perms, if you do, make the right stuffin the UI visible and its all good Aug 08 12:51:50 if you do not have perms, you show the box Aug 08 12:52:15 can you show me with code? Aug 08 12:52:20 in the callback you again do all those checks and hopefully they gave you perms Aug 08 12:52:21 something very basic Aug 08 12:52:39 ZeNEX: https://developer.android.com/training/permissions/requesting.html#perm-request the block of code here Aug 08 12:53:22 read that whole section start to end Aug 08 12:53:59 perfinion, I already did, look, this example says do contact list related task, and this does not work for me, because I already fellback to manual mode Aug 08 12:54:14 I have TWO options, (a) use location (b) use manual selection Aug 08 12:54:31 so WHILE I wait for the thing to appear on screen and the user to choose to allow or not allow Aug 08 12:54:37 I display the buttons Aug 08 12:54:52 and I thought hey maybe it shows pretty fast on screen Aug 08 12:54:53 ZeNEX: there are two code blocks there Aug 08 12:55:05 ZeNEX: you're looking at the second which is the callback Aug 08 12:55:21 you need to do the stuff in the first one too Aug 08 12:56:00 "When your app calls requestPermissions(), the system shows a standard dialog box to the user." Aug 08 12:56:03 quoted. Aug 08 12:56:08 also you should have them all in the layout and just .setVisibility(View.Visible) or View.GONE Aug 08 12:56:14 however it takes like 2 seconds to appear Aug 08 12:56:34 so the buttons BLOCK the dialog box from appearing Aug 08 12:57:09 no you are blocking it because you're not giving up the thread so it can actually display it Aug 08 12:57:24 if you put a super long loop in tehre it will take even longer than 2 seconds Aug 08 12:57:28 how do I give it up? Aug 08 12:57:30 there are no loops Aug 08 12:57:33 guaranteed Aug 08 12:57:40 return; Aug 08 12:58:04 as in stop doing things and let the system do what it needs to do Aug 08 12:58:52 so the priority for the main thread is higher than this asynchronous thing? Aug 08 12:59:12 async does not mean it happens on a separate thread Aug 08 12:59:21 it just means it happens somewhere else Aug 08 12:59:42 in this case it does it on the main thread when you finish your stuff Aug 08 13:00:04 for example, if you call finish() in an activity, it doesnt go away in the middle of that function Aug 08 13:00:11 it goes away later once you return Aug 08 13:00:12 how do you exaplin then that right after I request the permission I draw a layout but the dialog box does not appear in between those two calls Aug 08 13:00:30 anyway, i gotta go eat, ttyl Aug 08 13:01:29 still with the permissions Aug 08 13:01:30 ? Aug 08 13:08:59 i created fresh avd machine but when i start it the loading for "starting emulator for AVD..." finish but the machine doesn't show up at all and i don't get any errors Aug 08 13:12:40 xorgate_, yeah and tomorrow as well... Aug 08 13:27:27 I can set a navigation, just by changing the text in the screen and buttons... Aug 08 13:27:49 but I notice that since I don't use a different fragment or activity, I lost the up button functionality Aug 08 13:27:59 is this means I'm creating a terrible user experience? Aug 08 13:28:33 Yes Aug 08 13:29:05 SimonVT: so I should create fragments for this/ Aug 08 13:29:06 ? Aug 08 13:29:25 Sure, or keep track of previous content yourself Aug 08 13:30:13 SimonVT: if I do that with fragments I would have like 100 fragments classes in my app Aug 08 13:30:15 is this normal? Aug 08 13:30:26 If I go to a screen, I expect the back button to take me to the previous screen Aug 08 13:30:37 Where should I go if i have trouble with importing things from GitHub ?... i think I don't understand the android/java plugins thing well.. any suggestions ? Aug 08 13:30:40 If your app doesn't do that, you're likely doing it wrong Aug 08 13:31:03 What app needs 100 fragments? Aug 08 13:31:21 SimonVT: mmm Aug 08 13:32:41 I can't imagine an app that needs 100 fragments being simpler if everything is in 1 activity Aug 08 13:34:08 SimonVT: ok, I think I would do a combination of the in-fragment navigation and the fragment to fragment Aug 08 13:34:34 Sure, as long as the back/up button works Aug 08 13:35:19 SimonVT: mmm ok, I'll use inheritance as well, since this fragments are pretty similar Aug 08 13:52:31 So, now that the global_tracker.xml is auto generated by the Google Services Gradle plugin and is not automatically merged with the one I had in my project beforehand, how am I supposed to set properties like anonymizeIp in xml rather than having to do it programmatically? Or is there really no other way? Aug 08 14:09:32 how to share avd sdcard with Linux host to file transfer? Aug 08 14:26:46 OK, so I have my app that's crashing on starting an activity, but I don't get any message in logcat about where, how can I find out where the crash is happening? Aug 08 14:27:39 I'm testing this in an AVD Aug 08 14:27:50 Im having trouble with my applicationTest, any ideas anyone? http://pastebin.com/335pGdRm Aug 08 14:27:54 sdousley, typically the activity manager will say something if an activity crashes Aug 08 14:28:04 sdousley, so maybe your missing it in a filter or something Aug 08 14:28:38 Hello Aug 08 14:28:40 sdousley, beyond that, you can throw a log.d message onCreate/onStart/onResume to hone into where the crash happened Aug 08 14:28:55 I recently installed Android Studio and I'm getting this error Aug 08 14:29:07 Failed to resolve: junit:junit:4.12 Aug 08 14:29:18 thebishop: ah, ok, I am filtering Log.X messages for just my app Aug 08 14:29:21 I forget I do that all the time lol Aug 08 14:29:40 how to push file from adb to avd emulator? Aug 08 14:29:42 How can I setup Android Studio such that this error doesn't appear anymore? Aug 08 14:29:57 ice9, "adb push " Aug 08 14:30:29 if I have a lot of common fragments, like firstWelcomeFragment, secondWelcomeFragment.... Aug 08 14:30:32 sdousley: you could also debug and step through the instructions Aug 08 14:30:36 Is there a naming convention_ Aug 08 14:30:38 ? Aug 08 14:30:50 OK, I found the issue, I'm passing "GBP100" into a BigDecimal Aug 08 14:31:13 thebishop, i have physical device connected to USB and the avd one, adb: error: connect failed: more than one device/emulator" Aug 08 14:31:44 ice9: see anything in adb help which might suggest a solution to that? Aug 08 14:31:52 ice9, Aug 08 14:31:55 ice9, "adb devices" Aug 08 14:32:00 find the id of the emulator Aug 08 14:32:10 adb -s push... Aug 08 14:32:17 i think adb -e will favor the emulator too Aug 08 14:32:35 yep Aug 08 14:33:13 ice9, "-e directs command to the only running emulator. returns an error if more than one emulator is running" Aug 08 14:33:46 Leeds, ;) Aug 08 14:34:28 thebishop, thanks that worked Aug 08 14:37:40 the avd emulator allow root? Aug 08 14:37:40 <^arcade_droid> Hi Aug 08 14:40:08 <^arcade_droid> I am tethering my connection from my phone to my PC, during that (normally) adb debug does not work, but today, due to some glitch, I can debug my app while tethering is enabled. Anyone know how to reproduce that? Aug 08 14:43:08 ice9, i never tried, checking here... Aug 08 14:43:30 ice9, yes Aug 08 14:48:58 thebishop, how did you enable root? Aug 08 14:55:15 Hello all, how can I make Volley to follow redirect url? I haven link that starts like http://a.b.c, but the server redirects it to https://x.y.z. Problem now, Volley doesn't go the redirected url and so I have to hardcode the link. How to make Volley such that it goes to redirected url? Aug 08 15:02:57 Im having issue with an applicationTest http://arxiv.org/ Aug 08 15:03:13 http://pastebin.com/335pGdRm**** Aug 08 15:13:11 ice9, on my AVD, it's enabled automatically. I tried "adb root shell", and got a message saying the adb server was already running as root Aug 08 15:21:28 thebishop, right but i wanna enable it for the app too Aug 08 15:22:51 has anyone used antlr4 on android ? Aug 08 15:23:06 long shot, just fishing for now ;) Aug 08 15:24:48 i see some early attempts in 2011 and then very little google results Aug 08 15:26:52 ice9, you have an app that needs root permission? Aug 08 15:27:27 ice9, i haved tried that. it might 'just work', or you might need something like SuperSU to handle the app requesting root. I don't know the details of that Aug 08 15:56:11 Hello, I released an app as Beta but I found that some users can still see it (marked as "EARLY ACCESS") when they search for it on the Play Store. How can I release the Beta version of my app so that only people who I invite (or to whom I send a download link) can install the app? Aug 08 15:58:45 should be a matter of setting your beta to be linked to a g+ or google group, which is either invite only or requires authorization to join, and having no public version in the store Aug 08 15:58:47 it'll still show up Aug 08 15:58:52 but no-one should be able to install it Aug 08 16:01:40 dragorn: I think I can only set a Google group for Alpha releases, not Beta. Also, ideally I want to have links that I can email people so that anyone who has the link can install it, but nobody without the link can find it on the Play Store. I think this used to be possible; has it changed? Aug 08 16:01:56 you can certainly set a group for beta Aug 08 16:02:15 and I don't think what you're suggesting (anyone with a link) is possible Aug 08 16:02:24 Okay, thank you for the info. Aug 08 16:02:30 that is, anyone with a link, but only a link. I've never seen an option for that. Aug 08 16:02:40 You can make it linked to a group and then send people links to the group to join Aug 08 16:02:42 to then get into the beta Aug 08 16:03:05 Maybe there's voodoo I don't know, the alpha/beta groups should act the same though Aug 08 16:03:29 https://support.google.com/googleplay/android-developer/answer/3131213?hl=en all here Aug 08 16:03:39 (Set up alpha/beta tests) Aug 08 16:04:10 what it looks like you want is a closed test Aug 08 16:33:53 What do you consider the best solution for controlling a character in a mobile platform game? Soft keyboard, tilting the phone or maybe something else? Aug 08 16:34:28 Thanks adq Aug 08 16:35:31 a virtual pad, which has the downside of reserving some surface area on the screen Aug 08 16:36:28 Yeah. Aug 08 16:38:55 Kake_Fisk, character in 3d? Aug 08 16:39:14 2D Aug 08 16:39:33 if i were making a mobile game, i'd focus on point/click with AI pathfinding Aug 08 16:39:43 virtual pad is maybe the best, but it's still clumsy Aug 08 16:40:24 depends on the type of game really Aug 08 16:41:30 Zharf, yep. and i personally wouldn't design a 2d action game for mobile unless you're going to strongly recommend external gamepad controls Aug 08 16:41:45 tilting is horrible from my experience, except maybe if you do a game like marble madness Aug 08 16:42:09 personally, i'd love to see more/better options for full gamepad controls that phones can slot into Aug 08 16:42:36 like how samsung made the GearVR for their phones, some manufacturer could make a high quality gamepad dock designed for their phones Aug 08 16:42:56 would be a nice differentiator for a brand like Sony Aug 08 16:43:08 they should just support any usb pad like computer does Aug 08 16:43:17 oh yeah, but form factor is a problem there Aug 08 16:43:25 there's already (bad) options like that Aug 08 16:43:27 but i doubt most ppl playing on their "phone" are using an extra physical pad Aug 08 16:43:41 they're not, i'd argue in part because the options are bad Aug 08 16:43:53 sony could reuse all their Vita inputs/sticks Aug 08 16:45:43 personally I don't get mobile games Aug 08 16:46:12 but maybe I'm too much of a gamer :p Aug 08 16:47:34 Zharf :D Aug 08 16:47:56 i'm guessing Zharf isn't running around finding pokemons Aug 08 16:49:11 I tried, got bored, went back to just walking with endomondo Aug 08 16:49:43 I wouldn't mind a proper gamification of my walks, but pokemon just doesn't do it for me Aug 08 16:52:43 Zharf, i'd kill for a decent way to play Rocket League portably Aug 08 16:52:54 current phones are powerful enough, but the input options are lousy Aug 08 16:53:57 thebishop, I see, what kind of situations would you play it in Aug 08 16:54:25 Zharf, basically all situations in life Aug 08 16:55:01 like what Aug 08 16:55:09 Zharf, like lunch break at work Aug 08 16:55:14 Zharf, like bus ride home from work Aug 08 16:55:21 Zharf, like on the beach Aug 08 16:55:29 Zharf, during intercourse Aug 08 16:55:38 immediately following intercourse Aug 08 16:55:53 I see.. Aug 08 16:56:24 I do my wanikani on the bus and my lunch breaks are about 10 minutes long because I can't wait to get back to work :p Aug 08 16:56:56 yeah a rocket league game takes about 10 minutes Aug 08 16:57:12 so there's lots of places to slot it in Aug 08 16:57:51 I eat during the 10 minutes Aug 08 16:58:03 i'll eat between goals Aug 08 16:58:06 :p Aug 08 16:59:00 mainly i'm just saying these phones are so powerful. next years phones could be approaching Xbox One graphics. it's a shame there's no options for playing full-fledged games Aug 08 16:59:22 we could kill dedicated handhelds entirely, and just make Android the new platform for handheld games Aug 08 17:00:08 and I'm just saying that I never saw what the deal was with handheld or mobile games... especially mobile games nowadays are just money grabs Aug 08 17:00:36 yeah i don't want "mobile games", I don't play them. handheld games were good on PSP when you could play Metal Gear and GTA Aug 08 17:00:50 Nintendo handhelds are always a substantially compromised experience Aug 08 17:00:58 Vita was good, but failed for a bunch of reasons Aug 08 17:02:25 I love my vita Aug 08 17:02:33 wish it had more games. such a wonderful piece of hardware Aug 08 17:03:54 Eplebit, exactly. i think somebody could make a controller shell that felt as good as vita, and just used your android screen/hardware Aug 08 17:10:23 Hello guys Aug 08 17:10:48 How can I create some custom templates for my company branding? Aug 08 17:10:55 I've seen that Android Studio have some templates. Aug 08 17:12:33 build-system] $ git tag --contains 7105a81e74fde224293e4b5a846c9371954066c1 Aug 08 17:12:33 studio-2.2-preview3 Aug 08 17:12:33 fml Aug 08 17:14:16 oh, right, aosp tagging for build-tools is fucked up Aug 08 17:14:26 this is in 2.1.2, as well, don't know about earlier... Aug 08 17:25:20 Hey. I'm struggling with wake locks. Android docs says "If you hold a partial wake lock, the CPU will continue to run, regardless of any display timeouts or the state of the screen and even after the user presses the power button.". But as far as I can observe, the exact opposite occurs. My wake lock has no effect whatsoever. As soon as my screen goes off, my service, which holds a wake... Aug 08 17:25:22 ...lock, is killed :/ anybody have experience with that? Aug 08 17:25:37 Hello Aug 08 17:26:26 What's the meaning of the usage of keyword "this" inside the method finishDialog in http://pastebin.com/rj39Qy2n? Aug 08 17:26:43 (yes, I am a Java newbie as well as an android newbie) Aug 08 17:27:15 removed paste? Aug 08 17:27:44 ah, extra ? Aug 08 17:27:50 There is a class name (same class where the method is declared) then the "this" keyword then a method call. Aug 08 17:28:01 Zharf: talking to me? Aug 08 17:28:06 yes Aug 08 17:28:27 arancio, it's just explicit, same as calling finish(); Aug 08 17:28:46 generally you ned to do that if you want to call a method of a parent class from an anon/inner class Aug 08 17:28:49 need* Aug 08 17:29:21 Ah, ok. Aug 08 17:29:42 * arancio checks if the code compiles with a simple method call Aug 08 17:31:42 Yes, it compiles and works. Aug 08 17:32:32 Zharf: thanks. I was puzzled because the construct seemed to be unnecessary and actually it is unnecessary, in this context. I was looking for an explanation for something silly. Thanks again! Aug 08 17:34:43 oh and i forgot to mention im using a partial wakelock Aug 08 17:44:38 emimull, how do you start your service Aug 08 17:47:56 Zharf: some different ways. one of which is startService(new Intent(this, MyService.class)) Aug 08 17:48:18 Zharf: it also returns sticky Aug 08 17:48:52 and im also using startForeground() Aug 08 17:49:11 and, lastly, also acquiring a wifi lock Aug 08 17:49:28 all of which are discarded and thrown overboard by android and it's documentation :( Aug 08 17:50:58 it seems this issue has been asked many times at stackoverflow, but with no solutions Aug 08 17:51:11 eventhough im starting my service with 'sticky' it does not restart Aug 08 17:52:33 could you write a test case for it Aug 08 18:04:12 Hi all! I'm new to android development. I'm trying to request a POST api in json... But i'm not able to pass an array of jsons in one of it's parameters properly. Aug 08 18:04:56 Initially i tried to request it in java and that seemed to work fine. https://gist.github.com/rohanKanojia/9ffca82c6c5fb5f76272fb5fe3465f09 Aug 08 18:05:41 But I read somewhere that the usage of HttpClient is deprecated since 5.1. Aug 08 18:06:01 So i tried this. https://gist.github.com/rohanKanojia/f82afa684604e138ebfc14755fdbb0be Aug 08 18:06:42 But this method is sending the array of jsons as a string. http://pastebin.ca/3678304 Aug 08 18:06:46 Please help. Aug 08 18:07:27 Try Retrofit Aug 08 18:07:35 @Rohan_kumar: What about using Retrofit and OkHttp? Aug 08 18:08:42 I haven't heard about Retrofit. Aug 08 18:09:03 * Rohan_kumar reading about OkHttp Aug 08 18:09:16 Retrofit is what you need. Aug 08 18:10:24 VonRath: ok i would read about it. Aug 08 18:14:21 VonRath: Is it possible to achieve the same thing with RestAdapter? I mean am i doing something wrong ? Aug 08 18:14:53 Yes, you're doing something wrong @Rohan_kumar. You shouldn't be re-inventing the wheel, you should use a modern library for this work, like Retrofit. Aug 08 18:16:45 Oh... Okay. Aug 08 18:17:16 the badoo dating app has 100,000 lines of code ... Aug 08 18:17:23 that is surely bad oo :D Aug 08 18:17:30 nah Aug 08 18:17:35 15.000 for dating Aug 08 18:17:46 85.000 lines of analytics, ad and other data stealing code Aug 08 18:17:54 lol Aug 08 18:17:59 + bitcoin mining Aug 08 18:22:22 hi, how i can do work progressbar horizontal in pre lolipop ? Aug 08 18:53:31 Mavrik any chance you have used antlr on android ? Aug 08 18:53:42 the runtime obviously Aug 08 19:18:49 Hi, quick question .. can I alter the menu items on a navigation drawer at runtime ? Aug 08 19:19:07 I want to have a second level of menu items but only after the user does a specific thing in the UI Aug 08 19:23:24 i'm trying to update an app in the play store, but it says "Your device isn't compatible with this version". how can i find out what about my device the app doesn't like? my phone is rooted etc if that helps Aug 08 19:23:49 also i can acquire the apk through another device maybe if that helps Aug 08 19:26:04 which app? Aug 08 19:28:28 pokemon go Aug 08 19:30:03 :D Aug 08 19:30:31 if you have the previous and current apk then you can just compare permissions etc Aug 08 19:30:34 their manifests Aug 08 19:30:41 if they're the same then it's a country restriction maybe? Aug 08 19:31:03 i'll try that Aug 08 19:31:17 if i look in the apk (which is a zip file right) then should those be easy to find Aug 08 19:34:48 no, not that straightforward, but you can decompile it Aug 08 19:34:49 ;) Aug 08 19:35:32 more like screen-size restriction or other features or maybe even minsdk Aug 08 19:49:51 Is there a library for displaying images in a pop up like twitter clients do (or reddit or most social apps) ? Aug 08 19:58:20 Hey. I'm trying to run android-studio, but all I get is a white screen. Popup boxes work perfectly. This is on Ubuntu Aug 08 19:58:29 anyone know what could be wrong? Aug 08 20:14:38 Hi, I was wondering how samsung make there ultra power saver mode app, and how it actually works as i cant find any details on it Aug 08 20:21:32 AaronTheGreat, well, they have full control over the system so of course they can do anything Aug 08 20:21:50 it would not be possible to do that by just using the SDK Aug 08 20:22:13 So is samsung phones rooted in a way for samsung's apps to de-clock etc? Aug 08 20:22:38 well, they’re the ones writing the system and kernel level stuff Aug 08 20:23:31 hum... I guess so... Aug 08 20:23:43 What controls could I do in terms of power saving through the SDK? Aug 08 20:23:50 almost nothing Aug 08 20:23:58 i don’t believe there is anything for that Aug 08 20:24:33 at most you can not "harm". dont use wakelocks etc Aug 08 20:29:36 Ah thanks, does motorola's kernel support power saving features? Aug 08 20:29:58 no idea Aug 08 20:30:23 you’d probably have better chances asking in #android-root or on XDA Aug 08 20:51:55 Hey all. I'm having an issue adding my device to the android studio device list. It is appearing in Windows device manager as Morotorla ADB Interface when connected via USB. I have developer options enabled and usb debugging enabled. Aug 08 20:52:12 I'm not exactly sure what else is left to try. Aug 08 20:53:09 The USB drive from Motorola's website is installed. I trie dunisntalling it and reinstalling it. It's a Motorola Moto E gen 2 Aug 08 20:57:17 WrinkledCheese, does it show up when you run adb devices? Aug 08 21:05:03 truckcrash, I'm looking for that program. What do I dop if it is not. I doubt it is. Aug 08 21:05:43 Every time I load the device selection dialog, it says in the console, unknown adb version output is: Aug 08 21:05:58 It doesn't print but it's blank Aug 08 21:07:41 I'm having issues finding the adb program on Windows XP. Aug 08 21:07:46 Any ideas? Aug 08 21:07:53 I'm looking for platform tools Aug 08 21:11:09 it’s under AppData, if you didn’t specify a directory yourself Aug 08 21:12:46 Thanks Aug 08 21:13:01 Apparently "search isn't running" Aug 08 21:13:12 XP is going to be replaced with Linux very soon. Aug 08 21:13:22 Laptop is circa 2002 Aug 08 21:13:48 oh, I was thinking of Windows 7+. I have no idea on XP Aug 08 21:15:06 Yeah, it's not in AppData. Aug 08 21:15:12 Still looking Aug 08 21:15:35 I'm just going to install slackware. I hope this POS will handle it. Aug 08 21:15:39 in android studio, go under Tools->Android->SDK Manager Aug 08 21:15:50 Excellent! Aug 08 21:15:54 Thanks! Aug 08 21:15:57 that’ll open a dialog which should tell you where the SDK path is Aug 08 21:17:00 Local/android/sdk Aug 08 21:17:03 in appdata Aug 08 21:17:28 Except there is no local in appdata Aug 08 21:17:46 paste the directory into the address bar Aug 08 21:17:54 I found it. Aug 08 21:18:11 I was in Application Data not AppData Aug 08 21:19:43 cd C:\Documents and Settings\WrinkledCheese\AppData\Local\Android\Sdk\platform-tools Aug 08 21:19:49 adb.exe Aug 08 21:20:13 The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll Aug 08 21:20:21 ...Slackware it is. Aug 08 21:20:36 Thanks for the assistance. Sorry I wasted your time with this. Aug 08 21:51:56 can somebody recommend me a good library for video recording? Currently using javaCV and having some issues with low FPS Aug 08 22:22:13 Hi, What would be the best IDE to develop android apps in? I'm not really looking for designing UI apps, more like background ones Aug 08 22:22:36 whats the best library for uploading of large image/videos?retrofit2? Aug 08 22:28:54 AaronTheGreat: There’s only one Aug 08 22:29:28 s73v3r: There are many... 0_0... Visual studio has add-ins for it, Eclipse does, etc Aug 08 22:29:39 no, when it comes to Android, there’s really only one Aug 08 22:29:51 Android studio Aug 08 22:30:01 any ideas? Aug 08 22:47:30 hey, if I have a TextView with a phone number in it, how can I tell if the user clicked it, launching the phone? Aug 08 22:48:28 s73v3r: the solution Android usually does is setting a clickable span, with an URL Action, Aug 08 22:48:35 which calls an intent to open the dialer with the URL Aug 08 22:48:58 I’m fairly certain that’s not what’s happening here Aug 08 22:49:16 well, I have only read 1 message Aug 08 22:49:29 so, dunno if there was a context Aug 08 22:49:45 nope, no context in backlog Aug 08 22:50:33 Does anyone know if UltimateRecyclerView library supports Loaders? Aug 08 22:51:37 nevermind, I thought the number was clickable. It’s not Aug 08 22:51:50 It’s not copyable, either Aug 08 22:52:53 is the htc marketplace still around Aug 08 22:53:18 no idea what that was, so probably not? Aug 08 22:53:35 I don't have any shitty chinese-only htcs to check on so it's hard to tell Aug 08 22:55:07 Even if it was, I doubt it’d be worth supporting Aug 08 23:19:06 Hello. If I wanted to 6 centered buttons, and a header of centered text right above them, would a ListView be my best bet? Aug 08 23:22:15 probably not Aug 08 23:22:26 unless the number of buttons could change at runtime Aug 08 23:29:15 quillford... what was he doing in here ;) Aug 08 23:30:35 Have you guys ever used Realm to supplment Firebases Offline capability? Aug 08 23:30:52 I looked into the offline stuff, and I think i'll need more. Aug 08 23:31:26 It looks as though there's a local cache that holds transaction to be issued while offline, but if the app restarts, these vanish Aug 09 00:05:58 in a complex app (with a lot going on, including jni), would it be normal for the directory structure to have all the source under app/src/main and so on, or would it be typical/better/required for there to be multiple directories under the project root, each with their own module/src/ structures? Aug 09 00:09:08 MjrTom: I usually seperate code into seperate projects / libraries as well Aug 09 00:09:30 and make then dependencies of my main project Aug 09 00:09:34 then =them Aug 09 00:10:12 i see ... i can see a lot of merit to that, with one of the few downsides being that android studio doesn't make it as easy as other ides to have all the source open at once Aug 09 00:13:31 MjrTom: yeah you need to load it in seperate windows, I recommend using multipl monitors Aug 09 00:16:12 yeah... Im used to that historically, but there'd be a fair amount of overhead to do that these days - I guess I should incurr that overhead and get that setup Aug 09 00:22:19 so lets say I wanted to use parts of the sensor-graph NDK example; to move towards that modularization, I might want to totally seperate the sensor reading into a seperate lib, and the graphics display portion into an app that depends on that lib, right? Is that about how you might do it knowing waht you know now, if you were starting out with Android? Aug 09 01:15:52 Hey all, does anyone know a simple fix for google sign in sending my app to the background? after i choose the account i am left at the home screen and have to pull up my active tabs, navigate back into my app Aug 09 01:16:21 WeAreOneMind: what are you using for authentication, any libraries? Aug 09 01:22:58 firebase Aug 09 01:25:31 I just implemented the same, i used firebaseui, no problems. Aug 09 01:27:45 it seemed like a lot of extraneous code for me to implement the whole ui Aug 09 01:27:56 its literally a startActivity Aug 09 01:28:10 pretty amazing, sends back results to main activity Aug 09 01:28:50 hmm Aug 09 01:29:13 i will check it out again, that sounds appealing. they let you use it as is? what licsence is it? Aug 09 01:31:26 no idea, the theme customization seems pretty limited, so depending on that I may be implementing my own Aug 09 01:38:55 dragorn http://www.zdnet.com/article/flaw-in-samsung-pay-lets-hackers-wirelessly-skim-credit-cards/ Aug 09 01:40:29 If I were to instantiate a custom class within an Activity, and then return to the previous activity ... and have that activity have access to the custom class. How would I do that? onActivityResult returns an Intent, but the Intent seems to need to know the variable type to work. Aug 09 01:41:03 Serializing sounds like it'll be wasting effort Aug 09 01:41:25 A global variable sounds better but I've read some articles discouraging it. Aug 09 01:56:17 <^arcade_droid> How do I get the amount of Element(s) in Elements (jsoup)? Aug 09 02:13:45 Hey all. If I have a static reference to an interface which is implemented in a class which has Context will it leak? **** ENDING LOGGING AT Tue Aug 09 02:59:58 2016