**** BEGIN LOGGING AT Tue Apr 19 03:00:00 2016 Apr 19 03:00:12 perhaps it's slightly less efficient than kotlin, not much that it matters Apr 19 03:09:50 My androidTests are getting hung up on mocked Observables, they have a delay and are set to subscribeOn io(), but the hook is such that they should be using immediate() Apr 19 03:09:54 Tests run forever Apr 19 03:09:58 *literally Apr 19 03:12:10 pfn: Time wise, Scala is a dinosaur compared to Kotlin (what is it, 11 years old?) Apr 19 03:12:36 Should I use my dagger DI to inject schedulers? Apr 19 03:13:10 As for efficiency, I wasn't talking about raw performance (the two languages are probably on par) but developer efficiency writing the code. It's not even close there. Apr 19 03:13:14 Or, to wrap my Service in mock mode to return blocking observables, or subscribeOn immediate() ? Apr 19 03:19:07 CedricBeust, right, developing in Scala os much more efficient :p Apr 19 03:20:43 Obviously plenty of people disagree with that :) Apr 19 03:42:12 Anyone here familiar with DownloadManager? Apr 19 03:43:00 It seems to not understand typical http headers in the returned data: http://stackoverflow.com/questions/36707932/how-can-i-properly-download-a-file-from-google-cloud-storage-to-an-android-app. How can I work around that? Apr 19 03:54:05 hi there, i try to put google maps into a fragment ( http://pastebin.com/4VGWjSUL ) , but when i start the app, the maps fragment will not be executed somehow. i dont see anything. any help ? Apr 19 04:04:13 sponge-tmp: I think this is where people go to weep, not help. Apr 19 04:04:37 hardyt: what does weep mean? or you mean sleep ? Apr 19 04:04:53 weep = shed tears Apr 19 04:05:20 I've been here a few times over the past 72 hours and there has never been any responses to questions. Apr 19 04:06:33 Not been my experience but it probably depends what times you log on... Apr 19 04:07:33 Or did you mean you didn't see an answer to *your* question? Apr 19 04:09:16 I ate barbacue chicken wings and washed my hands 3 times, and they still smell like barbacue.. fml Apr 19 04:09:37 I've never seen an answer to anyone's question. Apr 19 04:09:50 Not even an acknowledgement. Apr 19 04:09:54 hardyt: what time is it at your place atm ? Apr 19 04:10:00 10PM Apr 19 04:10:09 west coast US ? Apr 19 04:10:16 Mountain Apr 19 04:10:20 i see Apr 19 04:21:08 Maybe someone can answer a basic java question. I am using FileAsyncHttpResponseHandler from https://loopj.com. Android Studio is saying I need to implement onFailure. When I override and implement onFailure Android Studio says the classes onFailure is marked final. How do I work around this? Apr 19 04:21:34 classes = class's Apr 19 04:31:33 hardyt: sry no idea Apr 19 04:32:52 Figured it out. The method to override is structured differently for that class than the other classes in AsyncHttpClient Apr 19 04:51:40 Any recommended ways of trouble shooting :app:transformClassesWithDexForDebug taking forever on a build? My app was compiling in seconds a couple days ago. Now it takes a few minutes or the compiler crashes. Apr 19 04:52:31 turn off instant run :? Apr 19 04:54:00 hardyt you can fiddle with gradle dexOptions { maxProcessCount x } Apr 19 04:54:12 appcompat is really finicky about different versions Apr 19 04:54:15 by default it was 4, but that killed my machine Apr 19 04:54:28 this project is compileSdk 22 Apr 19 04:54:35 or javaMaxHeapSize "4g" Apr 19 04:54:42 RustyShackleford it has to match, those are the requirements Apr 19 04:54:51 minor and patch also? Apr 19 04:55:00 major obviously Apr 19 04:56:14 Ashiren: Thanks. I have it at 2g. I'll go higher. That will make it faster? Apr 19 04:56:23 gradle app:dependencies shows me that its being satisfied with appcompat 23.0.0 Apr 19 04:56:31 depends if your project is big enough Apr 19 04:56:50 added this option at work sped up from 1.5 min to 0.5 min Apr 19 04:56:59 but i dont know what is "default" Apr 19 04:57:11 hardyt don't increase the heap size unless you are running out of memory ... Apr 19 04:57:16 but i added this option not for speed but because gradle complained about out of memory Apr 19 04:57:39 Ashiren you are giving bad advice :/ Apr 19 04:58:12 I think the libraries I'm adding in are just killing my build time. All I'm trying to do is authenticate, upload a file, and download a file with GCS. Apr 19 04:58:42 well i assumed out of memory could be one possibility it doesnt build for him Apr 19 04:58:53 the build would terminate Apr 19 04:59:02 nyoro~n Apr 19 04:59:21 the heap size is more suitable for in process dexing Apr 19 05:00:20 This is the error I get when it fails: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\ProgramFiles\Java\jdk1.8.0_77\bin\ja Apr 19 05:00:33 How can I prevent that from happening? Apr 19 05:01:24 there has to be more Apr 19 05:02:24 There's no more, but I think there was a message about how to get more information somewhere. But now it's building again. Apr 19 05:21:49 Back to my download question(s). I successfully downloaded a file with AsyncHttpClient. That client returns a File object. I used FileUtils.copyFileToDirectory to copy the File object. The operation runs without an exception, but the file does not appear. Is there some kind of "hidden file" gotcha? Apr 19 05:28:16 why is gradle satisfying apcompat with version 23.0.0? Apr 19 05:28:35 I have build tools 22.0.1 and compilesdk 22 Apr 19 05:29:05 and appcompat-v7 22.2.1 Apr 19 05:30:58 hardyt: Which OS? Apr 19 05:33:07 Android 6.0.1 Apr 19 05:35:45 Ok, I can see the files on the device using a file manager. They look like temp_24721974_handled. When I manually renamed them with the file manager with an extension (.pdf) the show up. But trying to rename them with File.renameTo isn't working. Apr 19 05:36:06 But that explains the FileUtils not working.. Apr 19 05:47:05 This is so depressing working with Android. I've spent the last 10 hours trying to download and save a file. Apr 19 05:48:49 hardyt: i know that feeling bro Apr 19 05:49:15 in the end you encounter, that it was just a small detail, which was holding you on for hours Apr 19 05:50:28 Yep. Normally working with big open source projects you have enough help to get past the small stuff. But with Android it's like everyone is totally confused. Apr 19 05:52:13 I mean, come on. I know where my temporary file is, but I've been stuck on _copying_ it for an hour now. Apr 19 05:52:47 In any other environment copying a file is simple. Apr 19 05:53:09 was it clear from the documentation what should have been done? Apr 19 05:54:42 The image in the topic is great :D Apr 19 05:55:09 aleogen: are you talking to me? Apr 19 05:55:18 hardyt: sure, or whomever Apr 19 05:55:47 What documentation for copying a temporary file to the application's Download directory? Apr 19 05:56:21 Or, I guess all I'm really trying to do is rename the temporary file. It's already in the Download directory. Apr 19 05:56:40 But ffs, 10 or 15 things I've tried haven't worked. Apr 19 05:58:21 What errors are you getting? What does your code look like? Apr 19 06:00:46 hardyt: I wrote a function to copy a file Apr 19 06:00:52 I can give you the function Apr 19 06:01:03 http://pastebin.com/9qf4NJEr Apr 19 06:01:40 http://pastebin.com/qG9JDW2F Apr 19 06:01:55 I didn't get any errors with that. So now I realize that /data/user/0/com.atrware.gcphealthcare/cache/temp_-1823711539_handled is not the app's Downloads directory Apr 19 06:02:25 AlexandreM: thanks, but that's not addressing the issue Apr 19 06:02:37 hardyt: Once you've figured out your problem, close() your streams in a finally instead of at the end of the method Apr 19 06:02:45 I'm trying to copy a temporary file to the app's Download's directory Apr 19 06:03:09 to get the apps directory, you need to use context.getFilesDir() I believe Apr 19 06:03:16 @CedricBeust: I'm not using any streams. Apr 19 06:03:51 oh sorry that was for AlexandruM Apr 19 06:04:17 AlexandruM: That returns a File object, which I can't use to rename the file. Apr 19 06:05:46 I need to take /data/user/0/com.atrware.gcphealthcare/cache/temp_-1823711539_handled and rename it to file.pdf in the app's Downloads directory Apr 19 06:07:21 hardyt: you can then get the real path by calling getAbsolutePath() on that object Apr 19 06:07:27 Is there a way to get the absolute path of the Downloads directory as a string? Apr 19 06:07:46 context.getFilesDir().getAbsolutePath(); Apr 19 06:07:49 Ok, I'll give that a shot. Apr 19 06:07:54 returns a string Apr 19 06:09:14 I have an issue as well, maybe someone can help me a bit Apr 19 06:10:51 got some asynctasks that upload files, and I need to handle retrying in case the upload fails Apr 19 06:11:28 but here is the twist .. at some point the user might need to login again, since his token will be invalid Apr 19 06:12:31 should I switch from asynctask to something else in this case ? Apr 19 06:12:52 is there something better suited to process stuff in the background, pause when there is no internet connectivity etc Apr 19 06:17:31 AlexandruM: thanks, that's mostly working. My main pdf reader can't read the file with an intents launch, but another one can. Good luck with your token question. Apr 19 06:17:46 hardyt: glad it worked Apr 19 06:23:11 Still have the problem with GCS sending headers in with the GET response, trashing the binary file. Does anyone know how to correct for this problem? http://stackoverflow.com/questions/36707932/how-can-i-properly-download-a-file-from-google-cloud-storage-to-an-android-app Apr 19 06:46:42 Hello, I am beginner and stuck on a probably very simple problem, since hours. Can you help me? Basically I try to use this: https://android-arsenal.com/details/1/1693 . I try use this as a widget (instead of a dialog) so I put the content in the .xml file as described at the bottom of that page. Everything is fine, I ca see the color picker in my app, but how do I use and override its methods? I can do: ColorPickerView Apr 19 06:46:42 picker = (ColorPickerView)findViewById(R.id.color_picker_view); int color = picker.getSelectedColor();, but I dont understand how to add a listener OnColorSelectedListener(). I don't find the correct syntax to do this. Thanks if you can help me :) Apr 19 06:50:02 If I only support one screen size, is it best to use pixels or dp for specifying the layouts? Apr 19 06:54:14 Hey, my application is crashing at a certain point and I would like to examine a variable that is in the function that causes the crash. How can i do this? Apr 19 06:54:25 I have tried System.out.println(); Apr 19 06:54:34 and Log.d() Apr 19 06:54:50 but I don't see anything in the Andoid Monitor Apr 19 06:54:59 Am I looking in the right place? Apr 19 06:55:40 debug and breakpoints :? Apr 19 06:56:57 No System.out. Use a logger. Apr 19 06:58:01 Log.d doesn't seem to work Apr 19 06:58:20 are you putting it after the line of crash Apr 19 07:00:06 guix: it seems it has addOnColorSelectedListener Apr 19 07:00:24 barq: always use dp Apr 19 07:00:36 one screen size? are you developing for certain phone Apr 19 07:02:37 yes but how to use it ? if I just type "picker.addOnColorSelectedListener" it says cannot resolve symbol Apr 19 07:03:41 Ashiren: Why dp if it's only one screen size? Apr 19 07:04:33 guix: dunno never used this librar actually Apr 19 07:04:45 barq: the same screen size could have different dpi Apr 19 07:05:03 Not if it's the same device Apr 19 07:05:38 ok. if youre pixel perfect then go ahead Apr 19 07:06:11 :v Apr 19 07:07:50 Ashiren: Is the Log.d() suppose to show up in the Android monitor? Apr 19 07:09:21 Yes Apr 19 07:09:29 Make sure you set your log level to debug. Apr 19 07:09:52 make sure you dont use "SMS" as tag Apr 19 07:09:58 i learned the hard way Apr 19 07:10:11 The tag matters? Apr 19 07:10:27 What are the tag options? Apr 19 07:10:39 i just found out that SMS is ignored Apr 19 07:10:55 you can use other tags as long theyre not empty and length is <= 23 Apr 19 07:11:31 I have set the tag to the application name, if that matters Apr 19 07:11:35 Does it? Apr 19 07:13:14 no its ok Apr 19 07:13:26 then you have something weird in your logcat Apr 19 07:13:51 or tell exactly how your Log.d() looks like Apr 19 07:15:29 Ashiren: Log.d("Krunch", expr) Apr 19 07:15:44 ok Apr 19 07:15:47 whats expr Apr 19 07:16:12 if its null or empty it wont show Apr 19 07:16:28 expr is suppose to be a string Apr 19 07:16:48 an expression, like 1 + 1 + 3 Apr 19 07:17:17 try something like expr + " - this is expr" Apr 19 07:17:41 but debugging app and setting breakpoints and watching variables on debugger is the 'proper' way of debugging Apr 19 07:17:45 not printing the variables Apr 19 07:18:00 I don't know how to work with a debugger Apr 19 07:18:08 so I will stick with this for now Apr 19 07:18:23 imma reboot Apr 19 07:18:26 brb Apr 19 07:25:59 Alright Apr 19 07:27:23 Ashiren: still doesn't work Apr 19 07:27:44 oO Apr 19 07:33:55 Here's the code, maybe you guys can see something I don't: https://gist.github.com/rgb-one/a75398f9f47342036bda67e4b958a36d Apr 19 07:37:38 umm Apr 19 07:37:40 Context context = null; Apr 19 07:37:58 then you use context.getString()... Apr 19 07:38:13 what should context be set to? Apr 19 07:38:31 you get NullPointerException before it reaches Log Apr 19 07:38:55 Ashiren: I see Apr 19 07:38:58 since youre in Activity, getApplicationContext() Apr 19 07:39:05 youre trying null.getString() Apr 19 07:39:08 hence the error Apr 19 07:39:10 x_x Apr 19 07:39:32 o_O Apr 19 07:40:06 can someone please help me I'm sure it should be really easy for you :/ For example here is a function of the ColorPickerView class: https://github.com/QuadFlask/colorpicker/blob/master/library/src/main/java/com/flask/colorpicker/ColorPickerView.java#L394 . From what I understand I should be able to do: ColorPickerView picker = (ColorPickerView)findViewById(R.id.color_picker_view); picker.setDensity(25); no problem Apr 19 07:40:06 on the first line, but for second line it says Cannot resolve symbol setDensity. What am I doing wrong ? Apr 19 07:42:02 seems ok Apr 19 07:42:05 Ashiren: That helped, thanks Apr 19 07:43:05 dunno, are you importing the right ColorPickerView Apr 19 07:46:02 well i have at the top: import com.flask.colorpicker.ColorPickerView; , also tried import com.flask.colorpicker.*; Apr 19 07:46:15 Hi Apr 19 07:47:33 the cannot resolve symbol refers to R? Apr 19 07:47:34 Calculator Works :) Apr 19 07:47:44 Great rgb-one :) Apr 19 07:47:46 I have created a custom listView with 2 textViews and 1 imageView. I needed multiline textView so I added android:lines="2" in the layout xml. Apr 19 07:47:53 rudolf_: :) Apr 19 07:48:01 But how do I access each line of the multiline textView. Apr 19 07:48:35 Like I want the first line to be "C++" and the second line of the same textView to be "Developed by xxx" Apr 19 07:49:44 Ashiren I have solved my error, my code was outside of a function so didn't work there. But I still have problem with syntax for the listener :( Apr 19 07:50:23 outside of a function x_x Apr 19 07:50:33 pastebin the code Apr 19 07:50:44 brb Apr 19 07:51:45 setText would set the text to complete TextView :( Apr 19 07:52:15 Or do I need to create a new TextView for doing this thing? Apr 19 07:52:47 setText("Line 1 Apr 19 07:52:52 setText("Line 1\nLine 2"); Apr 19 07:53:21 Ah...ok. Will try that. Apr 19 08:03:07 Alright Apr 19 08:04:14 rudolf_: How do you do modulus with Arity? Apr 19 08:04:39 Ashiren, I would like to be able to do something when the picker is touched. So there is this function: https://github.com/QuadFlask/colorpicker/blob/master/library/src/main/java/com/flask/colorpicker/ColorPickerView.java#L206 How can I hook into it? Apr 19 08:05:34 rgb-one: Never tried modulus :P Did not find anything in their docs? Apr 19 08:06:00 I didn't check :p gonna have a look Apr 19 08:12:14 guix: setOnClickListener or onTouchListener is universal for all vies Apr 19 08:12:18 views Apr 19 08:19:58 Ashiren thanks, I think I'm on something. But when I override OnTouch, then the colorPicker doesn't work anymore (can't move cursor to select color) Apr 19 08:23:53 success!! I simply needed to change return true to return false.. :) Thanks Ashinen for pointing in right direction :) Apr 19 08:25:00 Ashiren sorry Apr 19 08:25:32 guix: tab autocompletion is your friend, friend Apr 19 08:25:52 ok :P Apr 19 08:38:34 anybody heard of hackapp.com? I got an "automatic security report" from it and don't know whether it's true or it's spam Apr 19 08:40:03 i am creating aidl file and i cannot import operatorInfo in it Apr 19 08:40:04 http://paste.ubuntu.com/15926204/ Apr 19 08:40:10 i am getting this error Apr 19 08:40:15 Error:(5) couldn't find import for class com.byteshaft.listnetwork.OperatorInfo Apr 19 08:40:22 any suggestions Apr 19 08:40:49 error is Error:(5) couldn't find import for class com.android.internal.telephony.OperatorInfo Apr 19 08:43:07 I want to fix an image for all the imageViews in a custom listView. Is there an option for that or do I still need to create an array for the same image? Apr 19 08:44:00 Ah...I think I got it. Apr 19 09:23:07 hey, can anyone here provide me any detail on SSL warning errors coming from google play, Your app listed at the end of this email has an unsafe implementation of the WebViewClient.onReceivedSslError handler. Apr 19 09:23:33 I know why I'm getting the email but I'm wondering if I need to patch it now or is it safe to wait Apr 19 09:23:39 will google remove APKs due to this warning? Apr 19 09:34:46 why does it take so much to "adb install" over tcpip compared to copying the file over the network and installing it locally ? Apr 19 09:38:38 I can only explain it if adb install unzips and sends data uncompressed.. instead of delegating that job to the device Apr 19 09:47:13 Is N preview offically not supported in eclipse ADT? Apr 19 09:48:05 I have a nexus 9 flashed with latest N Preview and in eclipse it show up as unknown device, which seems to prevent me from deploying to it. Apr 19 09:48:31 does pure adb detect it Apr 19 09:49:39 Ashiren: which command lists devices in adb? Apr 19 09:50:19 hey guys, any idea how we can play protected videos from youtube on MediaPlayer? here is the issue that we found on stackoverflow, it is for iOS but same issue: Apr 19 09:50:22 http://stackoverflow.com/questions/12430337/embed-youtube-videos-with-contains-content-from-it-is-restricted-from-pl?lq=1 Apr 19 09:50:40 adb devices Apr 19 09:51:00 i know youtube-dl does decryption, and we can do same thing, but will google play store let me on store with such hack :D Apr 19 09:51:10 (noob question again) I have 3 OnTouchListeners, the code inside is indentical ( http://pastebin.com/2NZ3SwC3 ). Is there a way to avoid code duplication? Apr 19 09:51:34 Ashiren: yea it shows in adb same as other devices that are working for me Apr 19 09:51:59 dunoo havent used eclipse in year Apr 19 09:52:13 and it isnt officially suported since AS 1.0 Apr 19 09:52:14 Ashiren: It shows in eclipse as well, but with unknown os version Apr 19 09:53:06 guix: learn some java first. you can put OnTouchListener as separate variable Apr 19 09:55:53 I learn but it's hard... :) Apr 19 09:56:00 thats what she said Apr 19 09:57:29 just run into an odd issue, noticed that GCM push notifications isn't working on an app, it seems i can't find my GCM account at all, is there some reason this might have been deleted? maybe i missed a warning Apr 19 09:59:03 Ashiren: like this? http://pastebin.com/rr0gzFma Apr 19 10:00:00 eeyup Apr 19 10:00:37 nice, thanks again :) Apr 19 10:02:43 I added a product flavor to app gradle file and I see two apks installed on the device. Is there a way to install just the required product flavor on the device? Apr 19 10:03:31 oh, my google account got deleted, and I lost the cloud APIs along with it :( Apr 19 10:11:31 Any tips you guys can give me about using GridLayout for aligning buttons? Apr 19 10:11:45 Or general tips on Layouts Apr 19 10:14:07 heap dumps are sometimes lost in the void.. wtf AS Apr 19 10:20:44 catphish: why it was deleted? Apr 19 10:21:36 squ: my organization moved to gmail, creating the organization-managed domain in google deleted all existing google accounts associated with out domain name :( Apr 19 10:21:43 including my GCM account Apr 19 10:22:11 not your fault then :) Apr 19 10:22:25 i don't think so :( Apr 19 10:22:42 but still a pain, i have to push a new version of my app with new GCM IDs Apr 19 10:22:59 never mind, not too many users affected Apr 19 10:23:10 you will have to create new account from new (moved) org account Apr 19 10:23:46 it really makes sense to move to gmail from all the 3rd party email servers Apr 19 10:23:51 yep, done that, generated a new API key, all fine, but AFAIK i'll need to re-reploy my app with the new IDs and everyone will need to re-register Apr 19 10:24:03 i do like gmail :) Apr 19 10:24:35 do they use something else too? Apr 19 10:24:48 docs or cloud storage? Apr 19 10:24:59 sometimes, not much Apr 19 10:25:36 wondering if anyone is using google services for office stuff Apr 19 10:26:19 we don't work with documents much, so its not been an issue Apr 19 10:26:25 I see Apr 19 10:26:48 but email was probably a burden if you managed your own server Apr 19 10:26:59 now it must be easier Apr 19 10:27:23 gmail allows to buy (attach ?) company domain? Apr 19 10:28:05 yes, a google business account lets you attach your domain and manage all the google accounts within that domain together Apr 19 10:28:31 this is what your company buy? Apr 19 10:28:45 yes Apr 19 10:29:33 interesting Apr 19 10:30:12 https://apps.google.co.uk/ << this Apr 19 10:31:14 if you find out anything interesting let us know :) Apr 19 10:31:46 there's nothing interesting :) its just normal google services for a business with a domain name Apr 19 10:31:58 it is only email Apr 19 10:32:07 but google may provide hosting too Apr 19 10:32:32 afaik it has cloud sharing now (google docs?) Apr 19 10:32:45 mostly email and office apps right now, although google also have various other things you can use anyway, like app engine etc Apr 19 10:32:55 but yeah, mostly file storage and office apps Apr 19 10:33:00 and mail/calendar etc Apr 19 10:33:32 by complexity it is not that far from what hosting companies offer Apr 19 10:33:58 they usually offer website/data/email hosting Apr 19 10:34:11 got to go now :) Apr 19 10:34:31 that's when boss came in Apr 19 10:34:34 ))) Apr 19 10:54:31 > Android N introduces support for Java 8 language features Apr 19 11:09:52 how can the hostname be changed? Apr 19 11:12:44 the grand architekture is interesting Apr 19 11:38:55 hey all:) Apr 19 11:42:54 guys Apr 19 11:42:58 http://pastebin.com/eMUNNtmK Apr 19 11:42:59 and girls Apr 19 11:43:03 yeahh Apr 19 11:43:11 my onDraw() is not getting called Apr 19 11:43:14 can anyone plz help Apr 19 11:43:26 i have set willnotDraw to false Apr 19 11:43:36 disabled harware acceleration caching Apr 19 11:43:38 i see it commented Apr 19 11:43:38 still no use Apr 19 11:44:19 no no even if its not it still dont work Apr 19 11:44:31 sorry posted a few second old code Apr 19 11:46:46 is it in xml or manually created Apr 19 11:47:21 manual Apr 19 11:47:37 as new FilledRectHorizontal()? Apr 19 11:47:55 maybe you just needed to invalidate() your view Apr 19 11:47:58 and yet you provide super(null) instead of context Apr 19 11:48:25 well i created a class by extending view and then in the layout i just added this class in the xml Apr 19 11:48:37 the thread which calls invalidate works fine Apr 19 11:49:50 don't use dispatchdraw anyway, and revert to your commented code with onDraw first Apr 19 11:50:06 override other constructors and call their respective super Apr 19 11:50:30 ok plz wait Apr 19 11:50:32 also be sure to give in your xml a width and height Apr 19 11:50:42 which is not ending up with 0 Apr 19 11:51:08 otherwise onDraw will probably be skipped, same for visibility be sure it's a visible view Apr 19 11:51:16 no the view is gettring drawn for the first time it jsut dont update on invalidate Apr 19 11:51:58 do you see your Log.i being called when you call invalide (despite not being updated)? Apr 19 11:52:06 dont invalidate() from backgorund thread Apr 19 11:52:32 yeah, use postinvalidate() if you're doing it from another thread but iirc this should crash if you don't Apr 19 11:52:47 not neccessarily Apr 19 11:55:42 ohh ok wait Apr 19 11:57:46 well i defined all the constructor and called postInvalidate() instead of invalidate() still no progress Apr 19 12:01:10 other than http/https what other URI schemes are known by default in android? which shoud be interperted as URLs in other apps Apr 19 12:01:37 is compiling under android sdk always slow like this? gradle build running forever on a maps sample code Apr 19 12:01:46 or is it even compiling who knows what its doing Apr 19 12:02:12 maybe its just pains for the first time and will go faster after Apr 19 12:02:18 totally new to android development :/ Apr 19 12:02:28 guys any idea? Apr 19 12:03:41 i have set the layout_width and height to wrap content Apr 19 12:03:51 is that significant? Apr 19 12:05:50 Hi. Have anyone used WebkitCookieManagerProxy? Apr 19 12:06:44 Ashiren adq ? Apr 19 12:10:01 Ragzzy-R, maybe try first with a fixed width and height, so you are sure the view is measure, idk your layout Apr 19 12:10:22 Ragzzy-R, try to separate your problems, make a button which when you click on it will call invalidate on your view Apr 19 12:10:39 because maybe it's how you invalidate it which causes the problem Apr 19 12:11:02 if it works with a button, try to figure out why it does not with what you are trying to do atm Apr 19 12:11:04 etc Apr 19 12:11:49 Ragzzy-R, and read the doc: http://developer.android.com/training/custom-views/index.html Apr 19 12:12:57 ok thanks Apr 19 12:13:01 :D Apr 19 12:13:03 ill do that Apr 19 12:20:13 adq i tried what u said i made a button and called invalidate() when its clicked still onDraw() is not getting called i think its the problem with the size of the view how to set the size of the view via code? Apr 19 12:22:15 i tried setting in xml but when i do the view is invisible in the app Apr 19 12:59:34 Hi Apr 19 12:59:56 rudolf_, ahoy mate! Apr 19 13:00:15 In a custom listview adapter with ViewHolder, how do I set an item clickListener when the convertView is null? Apr 19 13:00:35 Do I set the clickListener inside : if(convertView==null){ } ? Apr 19 13:01:36 Hey Yotta92 :) Apr 19 13:05:19 Sorry got dc Apr 19 13:05:28 Did anyone answer? Apr 19 13:05:47 Nope, I was just reading the question Apr 19 13:06:09 Ok Apr 19 13:06:25 I will pastebin. It will be clear. Apr 19 13:06:45 On what exactly do you want to set item click listener, is it on viewholer or item within viewholder/ Apr 19 13:08:20 why is my postInvalidate() getting ignored? Apr 19 13:09:15 Sorry :| Again got dc Apr 19 13:09:20 http://pastebin.com/MZraHcnE Apr 19 13:09:26 So this is the custom adapter. Apr 19 13:09:36 rudolf_, what's up with your connection? Apr 19 13:09:42 http://pastebin.com/P3zeix1q Apr 19 13:09:52 my postInvalidate() is not getting called Apr 19 13:11:42 So in the getView method, how do I implement onClickListener. Apr 19 13:12:05 For now it is saying that rowView may not be intialized because it is inside the if block. Apr 19 13:12:09 http://pastebin.com/MZraHcnE Apr 19 13:14:06 If I inflate it outside, it will be of no use then. Apr 19 13:14:52 rudolf__, it's true, rowView can be null. Apr 19 13:15:13 Yotta92: So how do I use the ViewHolder and implement onClickListener ? Apr 19 13:15:33 rudolf__, is program_list is whole list item layout? Apr 19 13:16:16 Yep Apr 19 13:17:45 So who uses kotlin full time? Apr 19 13:17:59 rudolf__, what about holder? Apr 19 13:18:15 What about it? Apr 19 13:18:45 why don't you set on it Apr 19 13:18:46 The only thing in the layout is a listView. Apr 19 13:19:06 I didn not get you. Can you please explain a bit? Apr 19 13:19:38 You mean set clickListener on holder? Apr 19 13:20:29 rudolf__, can't you/ Apr 19 13:20:35 yes, on it Apr 19 13:20:41 Did not try...lemme try :) Apr 19 13:21:23 well it is saying holder does not have onClickListener Apr 19 13:21:35 is your intention just to show message if listview item is clicked? Apr 19 13:22:05 Yotta92: for now yes..but ultimately it will be used to launch an activity. Apr 19 13:26:34 Ah..i got it i think Apr 19 13:26:43 I called listener on convertView Apr 19 13:28:49 well, you set onclick listener on rowview and in your case you don't inflate rowview if convertview is not null. Apr 19 13:39:17 I removed rowView completely. Apr 19 13:40:19 http://pastebin.com/yX3WmM4n Apr 19 13:40:27 This is the new getView Apr 19 14:19:37 hola Apr 19 14:20:24 (= Apr 19 14:20:38 hey :) Apr 19 14:34:36 Is the place for Espresso questions or is there a better room? I couldn't find one on the Developer Support Resources page. Apr 19 14:35:45 I'm trying to figure out how to figure out a way to test a Theme.NoDisplay Activity that launches a Theme.Transparent Activity that does work in onCreate and then finishes. Apr 19 14:36:24 Its legacy code so I can't go on a re-architecting spree at the moment. I can't figure out any way to hook into the activity lifecycle to actually get an assert to fire. Apr 19 14:36:54 Even with an IdlingResource, by the time that fires, the second activity is already in the LifeCycleManager's DESTROYED state. Apr 19 14:40:26 Passing around getApplicationContext()'s context for opening a sqlite database file is fine right? Apr 19 14:42:31 torchdragon, hmm, what kind of assert? Apr 19 14:42:45 drose379, mostly yes. Apr 19 14:43:19 Im just using it to avoid leak Mavrik Apr 19 14:43:50 All I'm looking to do is verify that the Intent created by ActivityA is properly passed to ActivityB. Apr 19 14:44:39 but because of ActivityB calling onFinish() in onCreate() Apr 19 14:44:54 hey guys Apr 19 14:45:06 Is having a massive SQLite select statement as a String bad prac? Apr 19 14:45:11 I dont know where else to store it Apr 19 14:45:35 torchdragon, why aren't you testing this in two tests instead? Apr 19 14:45:40 1.) Test intent creation in ActivityA Apr 19 14:45:55 2.) Test what happens when you pass intent to ActivityB Apr 19 14:46:04 I have a ongoing notification which has a custom RemoteViews. Upon clicking those buttons on the view, some methods are called Apr 19 14:46:10 Also that sounds like something you should really refactor to make tests work :P Apr 19 14:46:28 should I start the notification in a service, or in a normal activity? Apr 19 14:46:35 drose379, don't see why. Apr 19 14:47:06 I don't want the notification to get removed after my app exits Apr 19 14:47:49 Because its an integration test? Apr 19 14:48:13 And because the same thing will happen. Apr 19 14:48:26 xJeremyCx, those two concepts aren't connected. Apr 19 14:48:28 Both Activities are calling onFinish() before they hit the render thread. Apr 19 14:49:31 Well if you refuse to refactor either the test or the code you're not going to be able to do it with espresso in a good way. Apr 19 14:50:09 Mavrik: to make myself clear: I want to make an app which shows a notification. On the notification bar, there are 2 buttons which control flashlight and volume programmatically Apr 19 14:50:19 Splitting test in two would let you use espresso-intents package. Apr 19 14:50:46 Except it won't because the activities are done before the intents package records them. Apr 19 14:50:47 xJeremyCx, yes, I got that. Notifications aren't part of your process, so it doesn't matter where you send it out. Apr 19 14:51:42 Mavrik: that means onClick(s) are still called even my app has exited? Apr 19 14:51:57 I'm launching ActivityA with launchActivity(myLaunchIntent). ActivityA creates a copy of myLaunchIntent's payload and calls startActivity(copyOfLaunch) to start ActivityB. Apr 19 14:52:07 intended() records 0 intents. Apr 19 14:52:26 I will not start a PendingIntent upon clicking the buttons Apr 19 14:52:53 And the only thing I can see is that whatever Espresso is depending on in order to record those intents is being killed immediately. Apr 19 14:53:25 So even if I were to split into two tests, because the Activities are being destroyed so quickly, its not recording the Intent that's being created by ActivityA. Apr 19 14:54:26 torchdragon, hmm, I find that hard to believe, did you trace the intent recorder in espresso? Apr 19 14:55:21 Mavrik: I'm not sure what you mean by "trace the intent recorder" Apr 19 14:55:22 xJeremyCx, hrmf, is it possible you're just not preparing the pending intent correctly / have wrong package / incidentally overwiring an older intent / getting intent delivered via onNewIntent ? Apr 19 14:55:37 torchdragon, set breakpoint at point where intents are recorded Apr 19 14:55:53 I didn't dig much into espresso-intents package to know how exactly they work Apr 19 14:57:04 Mavrik: sorry I don't get it Apr 19 14:57:32 torchdragon, ehm, also there's a bug with espresso-intents not working at all on Android M emulators Apr 19 14:58:19 This is on a physical device running 6.0 Apr 19 14:58:30 Potentially same issue? Apr 19 14:58:46 yeah, seems so: https://code.google.com/p/android/issues/detail?id=202217 Apr 19 14:58:52 Still not fixed it seems. Apr 19 14:59:23 xJeremyCx, perhaps your PendingIntent is malformed or you're not handling all possible ways of receiving intent? Apr 19 14:59:55 E.g. if you're targeting an activity, does it handle onNewIntent() ? Apr 19 15:00:16 Are you missing the flags to resend the intent and an existing intent is being overwritten (easy mistake to make)? Apr 19 15:00:33 I haven't done anything. Im just curious if I should start the notification in a service or in an activity Apr 19 15:00:49 It doesn't matter. Apr 19 15:01:19 Start it where it makes sense for your code. Apr 19 15:01:47 thanks for your advice Apr 19 15:07:16 Does anyone know how to get the current name of the current compiler target in Android.mk when building with the NDK? Apr 19 15:08:06 Compiler target? You mean arch or debug/release? Apr 19 15:09:14 target as in what file is currently being compiled Apr 19 15:09:25 I need to pass that information to the CFLAGS so that I can declare a define accordingly Apr 19 15:09:49 hrmf, why not __FILE__ ? Apr 19 15:09:52 Basically I need a -DOPERATION_ in my CFLAGS but I don't know how to get the filename value Apr 19 15:10:06 does that work? Is it that simple? gonna try Apr 19 15:10:18 __FILE__ is a macro in C Apr 19 15:10:29 No idea what ndk-build variable is tho :/ Apr 19 15:10:48 I tried -DOPERATION_`echo $* | sed 's/_$$//'` whcih works in Makefile but not in Android.mk Apr 19 15:12:18 The requirement for that seems funny tho :/ Apr 19 15:12:51 hello Apr 19 15:13:26 Wait, I guess that __FILE__ is a c macro isn't it? It won't really work for the makefile Apr 19 15:13:29 yeah you said that :-D Apr 19 15:13:41 I am building the sample gcm project (written by google). It worked before but now it issues: Error:(1, 1) A problem occurred evaluating project ':app'. Apr 19 15:13:42 > Failed to apply plugin [id 'com.android.application'] Apr 19 15:13:42 > Could not create plugin of type 'AppPlugin'. Apr 19 15:14:03 momken, there's an actual error in your log somewhere. Apr 19 15:14:17 Mavrik: indeed it is, it is a third-party library I need for my project and I am trying to write an Android.mk for that Apr 19 15:16:01 Mavrik, It also says in some log that "Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "b06d76a41fd718294bd61da9891d7c95f2f39dba" Apr 19 15:16:38 Mavrik, which plugin is too old? Apr 19 15:17:22 oh Google Analytics 3.0 ; i thought they left this app for dead Apr 19 15:19:49 huh https://www.reddit.com/r/androiddev/comments/4fguas/agera_reactive_programming_for_android_by_google/ Apr 19 15:21:46 momken, Android gradle plugin I guess. Apr 19 15:21:59 g00s, this actually looks kinda decent Apr 19 15:22:05 (Agera) Apr 19 15:22:19 Hi, how is it possible to save a file returned in an http response using Android? http://stackoverflow.com/questions/36707932/how-can-i-properly-download-a-file-from-google-cloud-storage-to-an-android-app Apr 19 15:24:48 Mavrik does it have anything to replace loader ? Apr 19 15:24:59 just started looking at it Apr 19 15:25:07 It looks like lightweight RxJava without operators. Apr 19 15:25:15 So yes I guess? :) Apr 19 15:25:23 I haven't used loaders for ages though. Apr 19 15:25:30 they have one package for sqlite Apr 19 15:25:34 Even though you probably have to use the headless fragment idiotism. Apr 19 15:25:55 (No idea who at Google thought that was a good idea to replace onRetainInstanceState) Apr 19 15:27:23 Mavrik they undeprecated that Apr 19 15:27:48 just fyi Apr 19 15:28:20 hmm, my Dash has old docsets then Apr 19 15:28:58 g00s, any link for that? Still seeing it deprecated Apr 19 15:29:12 one sec Apr 19 15:30:40 adam powell tweeted it, and twitter is official docs Mavrik Apr 19 15:30:46 **read the tweets!** Apr 19 15:30:47 okeh :D Apr 19 15:32:19 would be great if Dash had a twitter / medium / google+ scraper for additional docs :D Apr 19 15:32:28 oh got it. Apr 19 15:32:32 it's in Android N preview 2 Apr 19 15:32:36 hence not in docs yet :) Apr 19 15:32:41 :D Apr 19 15:33:23 But yeah, no idea what were they thinking :P Apr 19 15:34:35 Mavrik i think, many of the APIs are like "well, it was new years eve and seemed like a good idea at the time" Apr 19 15:34:41 :D Apr 19 15:34:59 "We gave this task to intern...." Apr 19 15:35:05 hehe Apr 19 15:41:36 Anyone know how to deal with those http headers in the returned http response? Apr 19 15:48:15 hardyt: What about them Apr 19 15:49:49 yiati: Every library I use saves the response as a file with http headers embedded, corrupting the binary: http://stackoverflow.com/questions/36707932/how-can-i-properly-download-a-file-from-google-cloud-storage-to-an-android-app Apr 19 15:51:24 hardyt: Serialize them in a way they can be deserialized Apr 19 15:51:27 huh Apr 19 15:51:40 Pretty much any HTTP library for Java (including default ones) will split those. Apr 19 15:51:52 Is this multipart form content? Apr 19 15:52:02 Ah yes. Apr 19 15:52:09 Find something that handles multipart content Apr 19 15:52:50 Mavrik: Thanks, that's why I'm here. I can't find anything except an old javax.mail library that's not working any longer. Apr 19 15:53:11 Parse it manually then I guess? Apr 19 15:53:24 It's a rather simple format. Apr 19 15:54:05 (It's a really strange API that does that though. Can you change the backend to not be crazy?) Apr 19 15:54:23 Any examples? If it was a string, I'd know how to do it. But it's binary and I'm getting a bit lost attemping to split it on the /r/n/r/n like I'd normally do with a string http response. Apr 19 15:54:49 The backend is Google Cloud Storage. I'll see if Google accepts my pull request. :P Apr 19 15:55:39 Read the multipart RFC Apr 19 15:56:00 Then read the stream and just start saving data when binary part starts and stop when you hit the marker? Apr 19 15:56:30 You can probably even use one of the scanners to split stuff into lines. Apr 19 15:57:18 I've googled for an example like what your suggesting, but couldn't find anything. Apr 19 15:58:00 This seems like a common problem people have to deal with all the time. I can't believe I have to implement something that should be standard in an http client package. Apr 19 15:58:36 You couldn't find a Java example on how to find a marker in a stream? Apr 19 15:58:56 Nope. :( Apr 19 15:59:40 it is implemented in many standard packages Apr 19 15:59:47 apache http is an example Apr 19 16:00:21 Example? Apr 19 16:00:29 pay me Apr 19 16:00:45 That seems like advertising. Apr 19 16:02:45 no, just not gonna handhold Apr 19 16:03:00 told you where to look, do your own leg work Apr 19 16:04:15 I’m having a little trouble figuring out Wifi P2p. I have an existing application and am trying to add Wifi Direct to allow communication with a windows server. The app has several activities and places where it attempts to copy files to the server in the background. Apr 19 16:04:51 First question I can’t find an answer to. Does a Wifi P2p connection persist across activities? Apr 19 16:06:14 If so, how would I get the connection information in a new activity? If not I’d rather not have to reselect the connection in every activity that is trying to transfer data. Apr 19 16:06:30 pfn: I have spent about 30 hours working with other http clients trying to do this. I'm skeptical in trying a new one. Apr 19 16:07:22 Probably could. have written your own Multipart parser in 30 hours Apr 19 16:09:18 pfn: I'm figuring out how to write that now per Mavrik's advice. Apr 19 16:09:50 But why would I have to do that in 2016 and millions of people using GCS? Apr 19 16:10:42 just about every library in existence handles Multipart Apr 19 16:10:52 why's SwiftKey keep capitalizing it.. Apr 19 16:12:42 Android's DownloadManager apparently doesn't, the library everyone uses - Android AsyncHttpClient - doesn't, and Google's GCS java api doesn't as far as I can tell. Apr 19 16:15:27 no one uses asynchttpclient Apr 19 16:16:12 That guy claims Instagram and Pintrest do. Apr 19 16:19:44 * pfn boggles at why his separator view is appearing above his container and not inside it... Apr 19 16:27:57 Uhg, zero examples on the web of spliting a binary file using a marker. Apr 19 16:35:28 Anyone look at agera yet? Apr 19 16:37:38 Whats to look at Apr 19 16:37:41 Anybody work with google drive api and can answer some questions Apr 19 16:39:52 * Ping_2_Ur_Pong plans to spend sometime today looking into https://github.com/google/agera Apr 19 16:40:10 Seems interesting, don't understand why google decided to go that route, but might be decent. Apr 19 16:41:02 Ping_2_Ur_Pong they mentioned why on github Apr 19 16:41:33 g00s: I haven't seen that, is it in one of the folders? Apr 19 16:42:23 the api looks like shit Apr 19 16:43:53 I dont see an explanation of the point of it other than they didn't write RxJava/RxAndroid. Only rationale I can possibly see is that it is more lightweight than the two I just mentioned. Apr 19 16:44:15 Either of you guys have thoughts on Kotlin?> Apr 19 16:45:04 drose379 looks fun, haven't tried it Apr 19 16:45:22 drose379: The general consensus I have heard is its nice and fast. Does cool things, but just another language. Apr 19 16:45:40 I have a friend that swears by it. Apr 19 16:45:41 Worth learning? Apr 19 16:45:50 Is Scala? Apr 19 16:45:57 I dont know Apr 19 16:46:13 Grovy, clojure, Jruby, Jython? Apr 19 16:46:24 I dont know Apr 19 16:46:44 I have an activity with a toolbar and a container, and I change fragments when navigating in that container. but I would like to have a shared element transition where I take a field from one of the fragments up to the title in the toolbar. is that possible when the toolbar is on the activity and not the fragment? Apr 19 16:46:57 depends if it seems good to you, take a dive and dont come up for air until you understand how you feel about it then come back and let us know. Apr 19 16:47:11 Sounds like a plan Ping_2_Ur_Pong Apr 19 16:48:17 Eplebit: communication between fragments should go through your activity, so you can easily set it up to persist information that you want into the toolbar Apr 19 16:48:24 it looks sort of "ad hoc" Apr 19 16:48:52 --> agera lib Apr 19 16:48:52 bitkiller: agera? Apr 19 16:49:09 Ping_2_Ur_Pong, yep Apr 19 16:49:23 * Ping_2_Ur_Pong hasn't looked at the code yet. When I go to lunch I am going to read the source to see. Apr 19 16:49:32 Ping_2_Ur_Pong: yeah, I was wondering about the transition animation Apr 19 16:50:18 * Ping_2_Ur_Pong doesn't understand what the transition animation has to do with the toolbar. Apr 19 16:50:25 oh, sorry Apr 19 16:51:13 I want the to have a transition animation of text from the fragment to the toolbar Apr 19 16:51:48 the fragments are just lists Apr 19 16:52:06 and I want the text in the row you click on to become the title Apr 19 16:53:03 g00s: Just saw https://www.quora.com/Why-wouldnt-Google-use-Go-instead-of-Java Apr 19 16:53:11 Look at Bruce Miller's answer Apr 19 16:54:14 tilal6991 d'oh Apr 19 16:54:17 wow, that's interesting Apr 19 16:54:32 I feel he is trolling hard lol Apr 19 16:55:49 The question of why not use Go, is actually a good question IMHO. Apr 19 16:56:21 tilal6991 i tend to take things at face value Apr 19 16:56:22 That's interesting from the perspective of an Engineer at Google though. tilal6991 yea probably hard trolling. Apr 19 16:56:30 * Ping_2_Ur_Pong wishes romainguy still hung out here. Apr 19 16:56:38 Fair enough Apr 19 16:57:15 why does the channel not have a simple bot for basic services like, !seen romainguy Apr 19 16:57:20 maybe trolling if it was his personal twitter or something Apr 19 16:58:01 Ping_2_Ur_Pong it was google policy a while back ... Apr 19 16:58:14 but google abandoned the channel so Apr 19 16:58:57 i think it was dan morrill's position, but even he left google Apr 19 16:59:50 what’s trolling now? Apr 19 17:00:19 s73v3r bruce miller's answer at https://www.quora.com/Why-wouldnt-Google-use-Go-instead-of-Java Apr 19 17:00:51 g00s: can I PM you? Apr 19 17:01:00 tilal6991 sure Apr 19 17:01:29 tilal6991 only have a few minutes, have to walk the dog :D Apr 19 17:05:26 tilal6991: btw http://stackoverflow.com/questions/27872324/how-can-i-animate-the-color-change-of-the-statusbar-and-toolbar-like-the-new-ca something like this is what you're looking for? Apr 19 17:05:53 Ping_2_Ur_Pong: I wasn't looking for anything? Apr 19 17:06:13 Eplebit: that link was for you Apr 19 17:06:16 my by tilal6991 Apr 19 17:06:26 my bad* Apr 19 17:08:47 Ping_2_Ur_Pong: thanks, I'll have a look at it Apr 19 17:08:52 * Ping_2_Ur_Pong honestly thinks the channel could use a bot to filter out the repeated questions... !stupidquestion !docs !stacktrace Apr 19 17:10:27 Ping_2_Ur_Pong that could help some i guess - but still many questions are conceptual, like how do i communicate between my activity and service Apr 19 17:10:51 still tons of people struggle with that - and its pretty open ended Apr 19 17:10:58 lots of ways to skin that one Apr 19 17:11:26 but yeah, would be nice Apr 19 17:12:18 'where do i put my presenter' ? :D Apr 19 17:13:56 tilal6991 do you have any idea, if there is some framework, api, even CSS or whatever, that would help me do Help in my app in a way that was consistent with Google Apps help ? Apr 19 17:14:18 all the gapps have help that looks consistent Apr 19 17:14:23 Off the top of my head no Apr 19 17:14:27 hm ok thx Apr 19 17:14:35 i'd imagine it's an internal part of the Google Play Services Apr 19 17:15:37 scala native can't come fast enough, exciting times Apr 19 17:17:26 g00s, you could host the help on a server and connect to it with a webview Apr 19 17:17:43 * Ping_2_Ur_Pong does that with the ToS Apr 19 17:21:34 i have an array string holding states to load in a spinner, once on is chosen i get the value and save it to db but i would like to save state abbreviated name instead of whole name is there a way to do that without recreating a second array holding state abbreviated name? Apr 19 17:21:35 How do know if Android SDK manager is installed (and if so, how do I open it)? Sorry for the noob question. I thought I installed it ages ago but can't find it Apr 19 17:21:42 pfn: rolled my own parser. http://stackoverflow.com/questions/36707932/how-can-i-properly-download-a-file-from-google-cloud-storage-to-an-android-app Apr 19 17:22:32 Oh I managed to find it in C:\Program Files\Android\android-sdk . Sorry to timewaste Apr 19 17:27:22 yeah, help content seems very well suited for being done with webviews Apr 19 17:36:21 for builders do you guys use setField() or field() for the method names Apr 19 17:36:43 for a builder? I guess I’d prefer just field() Apr 19 17:37:05 although it might be worthwhile to use AS’s “Create Builder” refactoring and see what it does Apr 19 17:37:13 it uses set Apr 19 17:37:16 that's why i was wondering Apr 19 17:37:23 but it also keeps adding my "parcelable in" field Apr 19 17:37:35 which as far as I can tell is not actually a field Apr 19 17:37:47 i think you can tell that refactoring which things you want to include Apr 19 17:37:59 but if the default style says setField, I guess I’d go with that Apr 19 17:38:05 i tried to remove it actually hah Apr 19 17:39:32 also seems to be incapable of putting the builder in the same class Apr 19 17:48:43 Agera Apr 19 18:10:01 hello, how can I create an apk over my website? Apr 19 18:10:30 lay the corners flat on the ground ... Apr 19 18:10:30 !stupidquestion Apr 19 18:10:36 I mean, I want to create an app on Google Play, where it will open my own website inside Apr 19 18:10:53 Ahiiru don't bother, thats silly Apr 19 18:10:56 Please don't Apr 19 18:11:07 go for something more ambitious, like cat pictures Apr 19 18:11:11 You wlll get shot down on the Play Store so badlt Apr 19 18:11:12 haha Apr 19 18:11:14 * badly Apr 19 18:11:24 The reviews will be somethng Apr 19 18:11:30 * something Apr 19 18:11:31 * Ping_2_Ur_Pong mumbles something about a webview but dont Apr 19 18:11:33 OMG can't spell Apr 19 18:11:56 please, is there a way to make it? Apr 19 18:12:04 I just told you Apr 19 18:12:04 there are tools, but we’re saying don't Apr 19 18:12:13 if not, what do you recommend me? Apr 19 18:12:26 to either make a mobile optimized version of your site, or to write an actual app Apr 19 18:12:30 Make a proper app which puts across the info on the website in a native way Apr 19 18:12:38 ^^^ Apr 19 18:12:46 Or a mobile optimised web app is a good idea too Apr 19 18:13:02 tilal6991: how to proceed? Apr 19 18:13:12 what software should I use? Apr 19 18:13:23 * Ping_2_Ur_Pong really hates people that dont read Apr 19 18:13:35 Well depends what you want to do? Apr 19 18:13:45 Mobile optimse + webappify your site or native app? Apr 19 18:13:55 tilal6991: I need to make the website available as an app Apr 19 18:13:58 * Ping_2_Ur_Pong blames freenode for turning him into a grumpy bastard, decades on here have done this to me. I arrive here all nice and happy and helpful. Apr 19 18:14:07 Ahiiru: Why? Apr 19 18:14:12 Welcome to http://developer.android.com/develop/index.html Apr 19 18:14:18 s73v3r: client asked me to do it Apr 19 18:14:23 what are the goals you are hoping to achieve by doing so? Apr 19 18:14:25 Wow OK Apr 19 18:14:39 Then I'm not going to argue further but I'd tell them don't bother Apr 19 18:14:44 s73v3r: to get his money to me Apr 19 18:14:49 you'd do better by just doing add to homescreen from Chrome Apr 19 18:14:54 That'll do better than an app Apr 19 18:14:58 clients ask for a lot of things. your job is to find out what you actually need Apr 19 18:15:03 tilal6991: Any thoughts on where to store a ListAdapter, the View or Presenter? Apr 19 18:15:12 so what are their goals? What do they want to achieve by doing so? Apr 19 18:15:29 view, presenter shouldn't know about an Adapter IMHO. Its android specific Apr 19 18:15:45 tilal6991: thanks for the link Apr 19 18:15:48 Ok so View stores the adapter, what about when the adapter needs to be updated Apr 19 18:15:54 drose379: I store a reference to the view in the presenter and same with the adapter - I store reference to presenter in Activity Apr 19 18:16:07 But I seem to do MVP differently to everyone else lol Apr 19 18:16:16 'lo Apr 19 18:16:18 I feel like everyone does a bit differently Apr 19 18:16:26 Because everyone else seems to think storing the adapter in the view is good Apr 19 18:16:28 But I don't see Apr 19 18:16:30 * see it Apr 19 18:16:38 Well is the adapter an extention of the view Apr 19 18:16:39 Ahiiru: the point that is being made to you is client are idiots, they don't know their asshole from an annotation. Its your job to take the BS they say and turn it into what they actually need. Apr 19 18:17:12 Ahiiru: go to the play store and look for applications that use webviews to show websites, and take that info to your client and convince them to build an actual application. Apr 19 18:17:14 An adapter is actually doing the same job as a presenter Apr 19 18:17:17 Should mean more money for you. Apr 19 18:17:20 Ping_2_Ur_Pong: I guess I'm a mobile deveoper from now on :s Apr 19 18:17:29 It's presenting data but in list form Apr 19 18:17:54 you might check out ReactNative from Facebook. Apr 19 18:18:12 ^^ that's a good idea Apr 19 18:18:33 Middle ground approcah Apr 19 18:18:35 Ahiiru: btw I gave you the answer for how to do exactly what the want when I mumbled Apr 19 18:19:40 just keep in mind that there is no cheap way to do this well. Either you do it right, and it costs a good amount of money + time, or you cheap out, and you get shitty results Apr 19 18:19:54 ^^ Apr 19 18:19:57 ^^^ Apr 19 18:20:48 ^^^^ Apr 19 18:20:51 maybe a bit of a linux/android dev crossover question, but I put android studio in my PATH; can I run it without requiring to write out studio.sh? Apr 19 18:20:55 instead of studio Apr 19 18:21:19 ThePendulum: create an alias Apr 19 18:21:34 ThePendulum: ^ or create a desktop file http://askubuntu.com/questions/589615/creating-an-application-launcher-icon-for-android-studio/667306 Apr 19 18:21:49 that'd be the first icon on my desktop in years :P Apr 19 18:22:03 You don't actually have to put anything on the desktop lol Apr 19 18:22:11 It's just a file extension linux uses Apr 19 18:22:15 well I'll be damned Apr 19 18:24:58 Ping_2_Ur_Pong: it was too subtle Apr 19 18:25:08 it was intentionally Apr 19 18:25:49 hardyt: okhttp would make your life easier Apr 19 18:25:49 and you got the results Apr 19 18:26:03 I think I have absolutely no idea what I'm doing Apr 19 18:26:03 webview dude, webview Apr 19 18:26:38 that helped me already, thanks again Apr 19 18:27:03 Any recommended introductory tutorials to Android dev? Apr 19 18:27:14 that are reasonably recent, I think the studio got revamped? Apr 19 18:27:23 ThePendulum: I remember when I was a kid, I thought adults had it all figured out and knew wtf they were doing. Then when I was in college I thought real engineers had all the answers and always knew what they were doing. Now, I realize no one has a fucking clue what they are doing but just faking it. Apr 19 18:27:24 the Udacity course, the Big Nerd Ranch book Apr 19 18:27:42 the changes to Studio aren’t huge enough to outdate the tutorials Apr 19 18:27:44 ^^ and the tutorials on developer.android.com are pretty nice Apr 19 18:27:52 neat Apr 19 18:27:54 Ping_2_Ur_Pong: and indeed Apr 19 18:27:59 s73v3r: I feel that this is like the 6th time you've said that in the past two days lol Apr 19 18:28:04 We really do need that bot lol Apr 19 18:28:08 yup Apr 19 18:28:13 bot? Apr 19 18:28:36 Ping_2_Ur_Pong: we fake so we can get their monies Apr 19 18:28:38 something that would recognize the question you just asked, and spit out what I said Apr 19 18:28:42 * Ping_2_Ur_Pong waits for Cedric to get back Apr 19 18:28:49 We were talking about getting a bot which answers common questions lol Apr 19 18:29:05 I know a Ced1200 Apr 19 18:29:07 I accidentally put a envelope in a view Apr 19 18:29:22 Ahiiru: Your job is to solve your client’s problems. Not to decieve them Apr 19 18:29:34 s73v3r: I concur :( Apr 19 18:30:05 therefore, I shall become a dev like, now. lol Apr 19 18:30:06 tilal6991: there needs to be a general version of that, so the iOS channels can have one that answers the question of how to develop iOS apps without a Mac Apr 19 18:30:37 Haha yup lol Apr 19 18:30:40 Ahiiru: me saying no one has any clue what they are doing more so meant, that you can never see everything it is experience that teaches you how to go forward on those situations and issues you don't know. But, generally speaking yea... most people walk around in the dark and rarely have any clue wtf they are doing. Apr 19 18:30:59 s73v3r: dont, that's a simple bot Apr 19 18:31:18 Ping_2_Ur_Pong: oh damn, does develop.android.com primary use video tutorials? Apr 19 18:31:18 Is there a different in the Fragment lifecycle between Rotation and Minimizing? Apr 19 18:31:21 although I guess not Apr 19 18:31:32 can't stand video tuts Apr 19 18:31:36 ThePendulum: no not at all, but there are some great ones on youtube Apr 19 18:31:51 good Apr 19 18:32:15 explodes: fragments are evil. Kill them with fire Apr 19 18:32:24 look for Android Developers thats the offical set from google, they don't cover most things, but that with which they do cover tends to give excellent detail Apr 19 18:32:26 I need to make a bot command for me saying that lol Apr 19 18:32:50 But not for fragments I don't think depending on how you mean you've "minimised" the app Apr 19 18:32:58 Ping_2_Ur_Pong: well if the written tuts are decent I'd prefer those Apr 19 18:33:04 I heard of an old software called Mobello, to make html5 apps... it looks like it died on the beach Apr 19 18:33:13 If you "back" out of the app destroy is called unlike home where destroy is not called Apr 19 18:33:16 tilal6991: what do you use instead of fragments? to decouple your views from your activity? Apr 19 18:33:20 maybe because it was wysiwyg? Apr 19 18:33:22 On rotation everything is destroyed and recreated Apr 19 18:33:34 Ping_2_Ur_Pong: roll my own presenters ATM Apr 19 18:33:41 hmm Apr 19 18:33:45 I'm playing around with Redux and React on Android though Apr 19 18:33:48 you have an example you can share? Apr 19 18:33:54 https://github.com/zserge/anvil Apr 19 18:34:03 https://github.com/brianegan/bansa Apr 19 18:34:03 hahaha, me just say the greatest troll code ever earlier today Apr 19 18:34:08 fragnum Apr 19 18:34:32 Sure current project is https://github.com/tilal6991/channels Apr 19 18:34:40 I have a new part and old part Apr 19 18:34:48 New part is in the redux package Apr 19 18:34:51 Old part is outside Apr 19 18:35:24 Hi, I'm trying to install/update some things in Android SDK Manager but get the following error "Stopping ADB server failed (code -1). Apr 19 18:35:24 Failed to create directory C:\Program Files\Android\android-sdk\platform-tools Apr 19 18:35:24 Skipping 'Android SDK Tools, revision 24.4.1'; it depends on 'Android SDK Platform-tools, revision 23.0.1' which was not installed." Apr 19 18:35:27 Could anyone help? Apr 19 18:35:28 tilal6991: https://github.com/pyricau/fragnums Apr 19 18:35:41 LOL Apr 19 18:35:43 Enums Apr 19 18:35:56 Big Nerd Ranch is way better than the Udacity course, and you don't have to watch the cringy p12 acting Apr 19 18:36:04 Cooleh: update your build.gradle and sync Apr 19 18:36:14 Ping_2_Ur_Pong: now tell me the difficulty level of building an app for a beginner devr Apr 19 18:36:14 https://medium.com/google-developers/developing-for-android-ii-bb9a51f8c8b9#.z8l67ykpq Apr 19 18:36:14 if it won't stop kill -9 Apr 19 18:36:17 Mavrik: From what I can determine, its not the bug that's causing it. It appears to be some kind of timing issue with IntentsTestRule that I still need to dig into. Apr 19 18:36:19 "Avoid Enums" Apr 19 18:36:30 But I guess if it's to replace fragments it's OK Apr 19 18:36:41 Ahiiru: its not difficult, its actually generally easy. Building a good/great app becomes more complicated Apr 19 18:36:55 tilal6991: are you from the team #perfmatters? Apr 19 18:37:04 I switched back to ActivityTestRule and wrapped my test code inside the Intents.init() and Intents.release() calls and was able to get the IntentMonitor to trap the Intents. Apr 19 18:37:05 No I'm from #teammiddleroad Apr 19 18:37:13 #perfandcodebothmattter Apr 19 18:37:33 #enumsMatter Apr 19 18:37:33 #ilikelivinglifeinthemiddlelane Apr 19 18:37:43 Mavrick: When running as IntentsTestRule, the Intents were being fired off before the IntentsMonitor callbacks were being registered by the TestRule code. Apr 19 18:39:08 Ping_2_Ur_Pong: Another day you told me about the WebkitCookieManagerProxy Class. Have you used it? Apr 19 18:39:13 Ping_2_Ur_Pong: Android Studio is the software that I should use, right? Apr 19 18:39:21 Rapitivo: years ago Apr 19 18:39:35 Ahiiru: unless you want to slit your own throat, yes. Apr 19 18:39:48 OMG every time I hear webkit I shudder Apr 19 18:40:07 Was not fun working with it Apr 19 18:40:15 Ping_2_Ur_Pong, thank you! It didn't work, what do you mean by stop kill -9 ? Apr 19 18:40:15 * Ping_2_Ur_Pong actually had to do what Ahiiru is doign for a client once, and they were hearing anything else. Apr 19 18:40:37 kill the process if it wont stop Apr 19 18:41:00 weren't* Apr 19 18:41:08 if you preload an app onto the phone, and you sell things from the app, do you need to pay google still? Apr 19 18:41:11 the project must be done, so Apr 19 18:41:13 if the app doesn't come from the store Apr 19 18:41:35 I hope my boss won't say something like "wow, it's so simple" and "you're taking too long" Apr 19 18:41:44 Ping_2_Ur_Pong: Okay. I'm trying to do the opposite. Convert android.webkit.CookieManager to java.net.CookieManager. I couldn't figure it out how to do that using WebkitCookieManagerProxy. Do you have any idea if it is possible? Apr 19 18:42:08 Ping_2_Ur_Pong, which process? Syncing build.gradle returned this error: Error:A problem occurred configuring project ':app'. Apr 19 18:42:08 > Could not resolve all dependencies for configuration ':app:_debugCompile'. Apr 19 18:42:08 > Could not find com.android.support:support-v4:22.2.0. Apr 19 18:42:31 guideX: if you preload the app no, but that would be a shitload of preloading... ie... you would essentially have to become a phone manufacturer. I do think there is a licensing fee though. Apr 19 18:42:54 Ping_2_Ur_Pong: we are a cell phone company Apr 19 18:42:54 also guideX you don't have to pay google when you sell stuff through your app on the play store unless you use the play store services to do so. Apr 19 18:43:00 hello, I'm trying to implement a SettingsActivity Apr 19 18:43:11 guideX: can you say which? Apr 19 18:43:16 Or is that secret? Apr 19 18:43:31 tilal6991: well, it's not that big a secret.. I work for a small one you have likely never heard of though Apr 19 18:43:42 and I don't get the code on the android dev guide Apr 19 18:43:54 https://developer.android.com/guide/topics/ui/settings.html#Fragment Apr 19 18:43:55 tilal6991: we are like 30-40 employees lol Apr 19 18:44:18 Cooleh compile 'com.android.support:support:-v4:23.3.0' Apr 19 18:44:23 exactly as I typed it Apr 19 18:44:41 so no 30% to google though right if I preload myself? also google will not sue us? Apr 19 18:44:48 if we sell in app things Apr 19 18:45:01 no play store involved etc Apr 19 18:45:07 guideX: we're not lawyers or business people so I would consult with them Apr 19 18:45:24 But from a technical standpoint I don't think there is anything stopping you Apr 19 18:45:35 guideX: they don't charge if you do in app purchases as long as you don't use play services ie... if you're a clothing company you don't pay google for every shirt you sell through your android app, but you need your own backend services to handle the transaction Apr 19 18:46:11 What would you call a world changing exploit? Apr 19 18:46:40 Something that let me look at Taylor Swifts nude pictures. Apr 19 18:46:47 on her phone* Apr 19 18:47:14 haha Apr 19 18:47:17 hahahahah Apr 19 18:47:19 world changing indeed Apr 19 18:49:10 could someone please help me? Apr 19 18:49:33 Ping_2_Ur_Ping: yueah but purchasing outside of google is restricted according to google policies Apr 19 18:49:50 so if I put a little credit card textbox and ascociated dropdowns, my app could be rejected etc Apr 19 18:49:55 or, we could get sued later etc Apr 19 18:50:00 you sure about that? Apr 19 18:50:04 hmm... /me checks Apr 19 18:50:17 szt: without some more guidance we can't really help Apr 19 18:50:19 not 100% no, I'm searching answers Apr 19 18:50:26 What part do you "not get" Apr 19 18:50:31 Ping_2_Ur_Ping: I *hear that's the case Apr 19 18:50:32 tilal6991: https://developer.android.com/guide/topics/ui/settings.html#Fragment Apr 19 18:50:40 Yes I know what you linked Apr 19 18:50:43 right there it says something about replace(R.id.something, new Fragment()) Apr 19 18:50:46 What is that ID? Apr 19 18:50:49 that makes no sense, how would square work? Apr 19 18:51:10 The id system is part of android's resouce system Apr 19 18:51:22 There are 50 different payment processing companies that aren't google. They would undercut all of them if that were the rule. Apr 19 18:51:24 androiid.R.id.content is a special id which references your entire visible activity view Apr 19 18:51:42 tilal6991: it's not defined oO Apr 19 18:51:57 Uh it most certainly should be Apr 19 18:52:22 Ooooh Apr 19 18:52:24 now it works Apr 19 18:52:28 thanks again tilal6991 Apr 19 18:52:34 hi there, I have a main activity with a fragment in it. I want to insert google maps in this fragment but it does not work. someone ever tried that ? Apr 19 18:53:07 Are you using MapFragment - https://developers.google.com/android/reference/com/google/android/gms/maps/MapFragment Apr 19 18:53:31 tilal6991: yes Apr 19 18:53:53 Doesn't doing getSupportFragmentManager.replce with it not work? Apr 19 18:54:06 sec Apr 19 18:54:06 does anyone know of any android-based game design tutorials? i have an idea for an RTS-style game, but i havent ever really done game development before. i am familiar with android app development, but unfamiliar with a lot of the concepts unique to games Apr 19 18:54:17 sponge-tmp: What's happening ? Apr 19 18:54:22 Ping_2_Ur_Ping: So I know you say, we're not lawyers etc, but you think it's legal to sell things inside the app outside play srtore? Apr 19 18:54:27 Is there a way to extends any Class that I could intercept the set-cookie header in a webview? Apr 19 18:54:38 sponge-tmp: Are you getting a blank / little-yellow screen ? Apr 19 18:54:44 im also open to great libraries anyone wants to recommend, but would like one is specific to rts since thats my goal :) Apr 19 18:55:20 guideX: I am actually looking it up, logic kind of dictates they can't force you to use their payment processing. I can see a lawsuit over that, but that doesn't mean they dont. Apr 19 18:55:21 Ping_2_Ur_Ping: This page seems to sum it up http://stackoverflow.com/questions/30117961/google-play-30-transaction-fee Apr 19 18:55:33 im searching ill let you know once I have a full understanding. Apr 19 18:55:35 but i'm still not sure Apr 19 18:55:35 ok Apr 19 18:56:26 lol I was looking for literal names Apr 19 18:56:29 this guy seems to sum it up well "Transaction fee which is equivalent to 30% of the price applies to absolutely all applications (regardless their content) and in-app products that you sell on Google Play." Apr 19 18:56:44 " ... that you sell on Google Play." Apr 19 18:56:58 So square works because it's for physical goods Apr 19 18:57:09 so seems I can preload all day, and go to town on whatever I wanna do that way Apr 19 18:57:13 wviana: tilal6991: this is what im doing: http://pastebin.com/eyqYN54W No compile errors, App crashes after start, saying NullPointer on mapFragment Apr 19 18:57:37 somehow i cant get the fragmentManager or it returns wrong stuff Apr 19 18:57:59 Uh I'm not sure what you're doing there Apr 19 18:58:10 Where does getChildFragmentManager() come into the picture? Apr 19 18:58:41 tilal6991: found that on stackOverFlow Apr 19 18:59:19 Right... that doesn't really solve anything TBH. Lost count of the number of times I've found wrong answers on SO Apr 19 18:59:38 tilal6991: http://stackoverflow.com/a/32091722 Apr 19 18:59:47 yea guideX that does sum it up quite nicely. Apr 19 18:59:48 sponge-tmp: belive that Map isn't a fragment. com.google.android.gms.maps.SupportMapFragmen is a map fragment. Apr 19 19:00:02 I wonder how square, visa, paypal and all the other payment processing companies get around it. Apr 19 19:00:13 There is no way in hell they are paying 30% on every transaction Apr 19 19:00:21 Ping_2_Ur_Pong: physical goods exception Apr 19 19:00:30 I'm not sure what map is and what main is? Apr 19 19:00:38 Is Map the fragment and Main the activity? Apr 19 19:00:58 sponge-tmp: https://developers.google.com/maps/documentation/android-api/map#the_map_object Apr 19 19:01:43 tilal6991: Main is the MainActivity, and Map.java is public class Map extends Fragment implements OnMapReadyCallback {...} Apr 19 19:01:56 tilal6991: so what about uber/taxi drivers that use square or something else for payment processing, they have to cough up 30%? Apr 19 19:02:08 doubtful Apr 19 19:02:36 they’re paying their payment processor for credit card transactions, somewhere around 2%? Apr 19 19:03:22 I can't remember who asked that question, but seriously go to your lawyers I bet you there is a way around there. It doesn't seem legal to force people to use your payment processing. Thats a monopoly. Particularly when there are other and better payment systems. Apr 19 19:03:24 sponge-tmp: I've said many times fragments are evil and nested fragments are eviller still but you want something line the bit inside the SO answer where "if (mSupportMapFragment == null) {" Apr 19 19:03:40 it’s not a monopoly. it’s a condition of entering the store Apr 19 19:03:58 tilal6991: k Apr 19 19:04:04 ill try something else Apr 19 19:04:04 but you only need to use Play Store payment processing for IAP. if you’re selling physical goods/services, then you can use whatever you want Apr 19 19:04:25 s73v3r: and it was a condition to use a windows computer once that .doc files work there and not be exportable to other systems. Apr 19 19:04:35 maybe if the part of the app that charges is in a webview loaded from a service , and not technically part of the native bits ? Apr 19 19:04:40 then office came out for OS X Apr 19 19:05:08 there are a couple ways around it, at least on the iOS side, which has the same policy Apr 19 19:05:09 i think i can buy ebooks on my Kindle app, and i'm pretty sure google doesn't get 30% Apr 19 19:05:11 they m$ got his with an anti-trust law suit Apr 19 19:05:44 g00s: technically ebooks are “physical goods” and not IAP Apr 19 19:06:12 this is interesting, I would be interested in knowing more about this. just seems weird. Apr 19 19:06:20 yeah but i think amazon had to do that with their Kindle iOS app Apr 19 19:06:31 if i recall Apple shut them down from direct purchase in app Apr 19 19:06:38 so they had to punt to website Apr 19 19:06:52 it was either ebooks or subscriptions for magazines or video Apr 19 19:07:16 it was a while ago, don't remember the specifics Apr 19 19:07:24 i worked on a music streaming app once where you would pay monthly for access, or buy some package for a number of hours Apr 19 19:07:36 in order to avoid Apple’s IAP, we had to direct them to the website Apr 19 19:09:12 Has anybody worked with trusty tee or can anybody point me towards some doccument for using it? Apr 19 19:12:52 dhaka ji kaise ho. Apr 19 19:13:12 kuldeep ^ Apr 19 19:13:30 ढाका जी कैसे हो ? Apr 19 19:18:32 engrish Apr 19 19:30:09 bgdl: tee like the command line tee? Apr 19 19:32:04 grekkos: No, it's an acronym for trusted execution environment, a security feature. Apr 19 19:59:41 Hi everyone; what should I ask from my graphic designer for app graphics? .svg or .psd? Apr 19 20:00:16 Wow he didn't eben wait a minute Apr 19 20:00:19 * even Apr 19 20:01:31 Hi everyone; what should I ask from graphic designer for app graphics - .svg or .psd files? Apr 19 20:02:05 monsterco: you should probably go with SVG and then convert to an XML vector drawable and use the support library Apr 19 20:02:20 But either should be OK AFAIK Apr 19 20:02:41 Although I have noticed ths support library has bugs handling vector drawables Apr 19 20:02:49 So it's an open question I guess Apr 19 20:03:08 tilal6991 - thanks - is that what modern apps use? i mean is that the standard practice? Apr 19 20:03:15 having both probably wouldn't hurt Apr 19 20:03:16 and no slicing needed in case of .svg - correct? Apr 19 20:03:46 monsterco: well that's the direction apps are moving yes Apr 19 20:03:52 But it's pretty cutting edge TBH Apr 19 20:03:56 So there are issues Apr 19 20:04:31 i guess changing from .psd to vector based means a lot of coding re-work afterwards? Apr 19 20:04:46 Well PSD ARE vector based Apr 19 20:05:00 So TBH it should just be a case of exporting them to SVG Apr 19 20:05:07 Which should be very easy Apr 19 20:05:13 i thought svg is vector based Apr 19 20:05:28 i guess i am confused of the diff btw the two Apr 19 20:05:31 So is PSD Apr 19 20:05:37 They are both vector based Apr 19 20:05:50 PSD just requires photoshop because it's a propietary format Apr 19 20:08:31 psd is a raster format, not vector Apr 19 20:08:46 some things are stored as vectors, but it's primarily a raster Apr 19 20:09:42 Woah Apr 19 20:09:46 Yes you are correct Apr 19 20:09:53 I'm rarely not Apr 19 20:10:03 Wow I didn't realise I totally misunderstood PSD Apr 19 20:10:11 Lol ok Apr 19 20:10:19 photoshop is a raster drawing application, there's no reason for psd to be vector Apr 19 20:10:27 that's illustrator's niche Apr 19 20:10:33 tilal6991 Apr 19 20:10:59 What's up? Apr 19 20:11:45 why isn't dnsmasq forwarding the clients to the internet? Apr 19 20:12:17 my guess is sysconfig Apr 19 20:12:31 I cant find sysconfig on android Apr 19 20:12:41 I have no clue lol. I'm not an expert on everything Android by any means Apr 19 20:13:02 you made a shiney irc client Apr 19 20:13:58 Correct Apr 19 20:14:03 your buddy is broadcasting about taxes Apr 19 20:14:05 In Fragments, when is the best time to attach listeners to my views? onViewCreated doesn't seem to get called when I minimize and restore Apr 19 20:14:20 But that doesn't mean I know the entire networking stack of Android Apr 19 20:14:32 My buddy is broadcasting about taxes? What? Apr 19 20:14:33 this is time consuming Apr 19 20:14:41 So, do we attach listeners to the views onStart or onResume? Apr 19 20:14:53 explodes, onStart / onStop ? Apr 19 20:15:02 explodes: View listeners in onViewCreated for sure Apr 19 20:15:12 You don't neeed to reattach when they minimise Apr 19 20:15:14 onCreateView / onDestroyView should work as well. Apr 19 20:15:15 They stay attached Apr 19 20:15:20 android looks like a veey strict and obscure linux Apr 19 20:15:26 Depends what kind of listeners and what their lifetime is. Apr 19 20:16:28 Mavrik: they should be around the entire span of the fragments interaction with the user Apr 19 20:16:35 so it is the same deal relearning where things have been moved around Apr 19 20:16:57 tilal6991: setting the listener in onViewCreated doesnt work when minimizing/maximizing Apr 19 20:17:11 explodes: I don't understand what you mean by "doesn't work" Apr 19 20:17:15 What doesn't work? Apr 19 20:17:21 The listeners get detached? Apr 19 20:17:21 yawns Apr 19 20:17:22 it doesnt get called to attach the view Apr 19 20:17:29 explodes, but that makes sense Apr 19 20:17:32 Since the view was not destroyed. Apr 19 20:17:33 Yes because it already is lol Apr 19 20:17:37 The listener is still there. Apr 19 20:17:55 ok I must be removing the listener somewhere Apr 19 20:18:06 and I am. fml Apr 19 20:18:09 :) Apr 19 20:18:21 tilal not an expert? Apr 19 20:18:39 why not? Apr 19 20:18:50 you can be an expeet Apr 19 20:19:03 expert Apr 19 20:19:07 I've never claimed I am lol. I've just dabbled in a lot of Android but no one can know everything on a platform as big as Android Apr 19 20:19:25 sure one can Apr 19 20:19:44 they move things around wvery release Apr 19 20:20:00 so stick with 4.4 Apr 19 20:20:12 all of my phones have 4.4 Apr 19 20:20:43 android uses a linux kernel, it is by no means "gnu/linux" Apr 19 20:21:01 *sigh* Apr 19 20:21:10 It looks like mostly X Apr 19 20:21:19 https://www.youtube.com/watch?v=BKorP55Aqvg Apr 19 20:21:33 <3 one of my favourite comedy sketches ever Apr 19 20:21:37 so if I can rbind root and pipe to the gpu Apr 19 20:21:45 Heartily recommend everyone watches it :) Apr 19 20:22:15 the thing can be fast as light Apr 19 20:22:22 can it? Apr 19 20:22:25 hmm Apr 19 20:23:33 it is mostly java programs running on X Apr 19 20:23:57 and few commands with limited functionality Apr 19 20:24:21 so it is more secure Apr 19 20:24:31 anyone have experience with MismatchSenderId response from GCM? Trying to dispatch a message here. As far as I can tell everything is set up right. Should the sender id be the same sender id on the client and server side? Apr 19 20:24:36 obscure loops in the file system Apr 19 20:25:03 grekkos, yeah Apr 19 20:25:34 I think you can get that error if you use wrong API key Apr 19 20:25:47 THese listeners concern threads for which we have no control, so I'm going to start listening onResume and stop listening onPause Apr 19 20:25:50 tilal Apr 19 20:25:58 I feel like that's a better approach @ Mavrik Apr 19 20:26:02 you can be an expert Apr 19 20:26:12 explodes, I'd do onStart / onSTop Apr 19 20:26:18 explodes, just because those semantics are changing in N Apr 19 20:26:29 onPause doesn't meant your UI is inactive anymore. Apr 19 20:26:33 if I can bind X to root Apr 19 20:26:35 For Fragments? Apr 19 20:26:37 (It didn't mean before that either) Apr 19 20:26:40 For anything. Apr 19 20:26:43 explodes: that's more a workaround but not really what you should be doing? Apr 19 20:26:44 onPause - your UI is still visible Apr 19 20:26:47 you can make all of the configurators Apr 19 20:26:50 onStop - your UI isn't visible anymore Apr 19 20:27:01 On Android N that's kinda important for multiwindow :) Apr 19 20:27:06 Mavrik: where can I read about those semantics? Apr 19 20:27:14 er, the new semantics Apr 19 20:27:22 I guess Android N changelog? Apr 19 20:27:38 Basically in multiwindow mode you'll get onPause but your app is still active. Apr 19 20:27:41 Lots of reading to do, I suppose. I'll get crackin' Apr 19 20:27:46 So you'll get strange behaviour. Apr 19 20:27:58 E.g. like YouTube app which stopped playback in onPause making is useless for multiwin. Apr 19 20:28:20 explodes: also fyi fragments are evil. Kill them with fire Apr 19 20:28:28 thanks again tila Apr 19 20:29:07 huh Apr 19 20:29:15 fragments are love, fragments are life Apr 19 20:29:24 heh Apr 19 20:29:25 <3 <3 <3 fragments Apr 19 20:29:54 Mavrik: I'm actually not the one working on the API side can you direct me to a sample request? the ones I've seen aren't specifying the sender id in the request. Is it something that needs to be sent up? Apr 19 20:30:32 Ashiren: Mavrik: https://corner.squareup.com/2014/10/advocating-against-android-fragments.html Apr 19 20:30:36 For my reasons why :) Apr 19 20:32:36 tilal6991, yeah, seen this BS posted like 150x already :P Apr 19 20:32:36 explodes: ^ also because it has a nice lifecycle diagram Apr 19 20:32:43 "BS" lol Apr 19 20:32:57 Each to their own Apr 19 20:33:19 are there any recommended sdks for taking panorama photos? Apr 19 20:33:35 I need to add this into our enterprise Android app Apr 19 20:33:56 wouldn’t that be part of the camera API? Apr 19 20:34:21 no. Apr 19 20:34:41 Good question though. Apr 19 20:34:43 I didn't find it in the docs Apr 19 20:35:03 tilal6991 do you know how to rig a nail gun to fire ofd when the door is opened? Apr 19 20:35:35 the community hepping out Apr 19 20:35:44 yaaic1: uh no and imho at this point you've been trolling for a while now and so I'm going to be ignoring you :) Apr 19 20:37:36 I wish it was part of the API Apr 19 20:38:40 hm, I'm having some issues with the coordinatorlayout Apr 19 20:38:51 is it possible to specify nested behaviors? Apr 19 20:39:01 Maurits-: what do you mean nested? Apr 19 20:39:10 Like nested coordinatedlayouts? Apr 19 20:39:18 no, something like Apr 19 20:40:36 Apr 19 20:41:16 No I think you have to be a direct child of CL but I'm not 100% on that Apr 19 20:41:27 Parent is within a CL Apr 19 20:41:35 let me explain better Apr 19 20:41:52 Yes but Child is not a direct child of CL so I don't think CL can interact with it Apr 19 20:42:08 the issue I have is I have an activity layout with a toolbar, coordinatorlayout and a fragment Apr 19 20:42:21 *framelayout containing a fragment Apr 19 20:43:00 one specific fragment has a toolbar at the bottom of the screen Apr 19 20:43:46 if I set the layout_behavior on the framelayout everything works well, but the bottom toolbar will inherit the scrolling behavior Apr 19 20:44:16 if I set it on the recyclerview inside the fragment the fragment appears behind the top toolbar Apr 19 20:45:29 because I'm guessing it doesn't know to add a margin because the framelayout doesn't have @string/appbar_scrolling_view_behavior" Apr 19 20:46:10 I get the feeling the solution to this is NestedScollView but I need to work out how it fits Apr 19 20:46:30 I was thinking about maybe writing a dummy behavior class for the bottom toolbar Apr 19 20:46:44 that depends on no other views and simply keeps the position fixed Apr 19 20:47:11 anyone have meaningful experience with libgdx or other game development frameworks? Apr 19 20:47:37 That might be another option to consider yes Apr 19 20:52:02 Maurits-: another option is to modify the behaviour to ignore any toolbars - https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/design/src/android/support/design/widget/AppBarLayout.java#1128 Apr 19 20:52:33 Line 1168 actually Apr 19 20:59:02 Hello, To generate a BitmapDescriptor from a resource, I don't need a resource reference. Now I'm needing to resize the same resource, to it I would use a Bitmap or DrawableBitmap. For a bitmap I need the resource reference. But In the class that I'm working in, I do not have context reference. Any suggestion of how to solve it ? Apr 19 21:00:05 You'll have to get your context to that class. Apr 19 21:00:16 Context describes where resources are found (among other things). Apr 19 21:00:38 Yes unfortunately that's the only way to access the resource system Apr 19 21:00:58 Man I really hate how context manages to sneak it's way into everything Apr 19 21:01:01 But, how BitmapDiscriptorFactory can get it without a context reference ? Apr 19 21:01:33 https://developers.google.com/android/reference/com/google/android/gms/maps/MapsInitializer#public-methods Apr 19 21:01:35 I guess? Apr 19 21:01:44 You call that with a context right? Apr 19 21:02:32 Indeed. Apr 19 21:05:31 the dummy layout behavior does not seem to work Apr 19 21:05:36 its methods aren't even called Apr 19 21:06:34 Maurits-: wait your toolbar is inside the framelayout right? Apr 19 21:08:16 My app signs people out from time to time, the user token stored in SharedPreferences gets wiped out- any obvious cause of this? Apr 19 21:09:22 tilal6991: the bottom one, yeah Apr 19 21:09:32 Then that makes sense Apr 19 21:09:44 As I said CL only looks at direct children's behaviours Apr 19 21:10:00 I misunderstood Apr 19 21:10:14 right, that makes sense Apr 19 21:10:18 You definitely want to modify the behaviour like I suggested Apr 19 21:10:54 ah, I missed that, I'll try that Apr 19 21:10:55 thanks! Apr 19 21:11:02 No worries :) Apr 19 21:14:20 Hi there, I'm using sub components with dagger 2, is there an easy way to swap out the underlying subcomponent implementation for tests? Apr 19 21:15:23 Dagger 1 provides a way to override modules, is there something similar in dagger 2? Apr 19 21:15:48 dagger is having your family murdered Apr 19 21:15:57 :( Apr 19 21:16:47 So in kotlin new Handler(Looper.getMainLooper()).post({//this is the runnable}); Apr 19 21:16:49 ? Apr 19 21:16:52 Seems nice Apr 19 21:16:56 Yes Apr 19 21:17:04 Thats a lambda right? Apr 19 21:17:08 Yes Apr 19 21:17:14 <3 Kotlin Apr 19 21:17:35 tilal you using 4.4? Apr 19 21:17:46 What if Runnables #run method accepted a parameter Apr 19 21:17:49 What would be the syntax Apr 19 21:17:49 tilal use 4.4 Apr 19 21:18:09 use 4.4 for future kolab work Apr 19 21:18:24 drose379: there would be an implicit it paramter you can use inside the lambda Apr 19 21:18:34 How would I look Apr 19 21:18:38 I supposed I shud just google it Apr 19 21:18:38 Or you can go { param -> Log.d(param) } Apr 19 21:18:42 Ive the wifi debugger working Apr 19 21:18:48 { Log.d(it) } Apr 19 21:18:52 drose379: ^ Apr 19 21:18:53 it was done by meta ctrl Apr 19 21:19:11 see if you can get a response from somebody tilal Apr 19 21:19:26 it is the param name tilal6991 ? Apr 19 21:19:26 tilal you are one of the few to respond Apr 19 21:19:33 drose379: yes Apr 19 21:19:37 for android devs Apr 19 21:19:51 Cool, thanks Apr 19 21:19:52 most people dont respond to anything Apr 19 21:20:41 "If your App looks like it was cobbled together in a few days, or you're trying to get your first practice App into the store to impress your friends, please brace yourself for rejection. We have lots of serious developers who don't want their quality Apps to be surrounded by amateur hour." bwahahaha Apr 19 21:20:52 tilal6991 can you read me? Apr 19 21:20:59 Who said that g00s ? Apr 19 21:21:16 new apple guidelines Apr 19 21:21:24 Haha classic apple Apr 19 21:21:29 Haha that's brilliant Apr 19 21:21:45 I bet Jobs would approve Apr 19 21:21:52 g00s rwlay to tilal Apr 19 21:22:04 relay the compliment Apr 19 21:22:07 those aren’t new Apr 19 21:22:31 In Retrofit (1), if I setRequestInterceptor on a RestAdapter.Builder that uses an OkClient that has 2 request interceptors, does the retrofit interceptor come 3rd or 1st? Apr 19 21:25:53 hm, new MBPs with Skylake ... but i heard bad things about Skylake Apr 19 21:26:22 silly question, but what would be the best way to maintain, say a list of analytic event names? can enums have string values? Apr 19 21:26:40 g00s, then buy last year's mbp at a savings Apr 19 21:26:45 s73v3r: yes they can have strings Apr 19 21:26:51 Actually they can have methods and everything Apr 19 21:26:56 s73v3r i tend to make things strings unless i have to do more than switch() on them Apr 19 21:27:09 Just declare a field and add a constructor Apr 19 21:27:40 But in general on Android enums are considered bad practice but if used ocassionaly they are ok :) Apr 19 21:27:51 bah, ignore the android enums advice Apr 19 21:27:51 always Apr 19 21:27:53 well, I’d prefer type safety Apr 19 21:27:59 there is absolutely no reason to avoid enums at all Apr 19 21:28:11 if you're still using 1.6 era hardware, ok, maybe you should avoid them Apr 19 21:28:19 there are much much bigger fish to fry in the performance game Apr 19 21:28:26 i don’t want just any string to be passed into as an event name; only those that have been defined as event names Apr 19 21:28:44 pfn: I agree just communicating what I know from best practices which were suggested by the Android team Apr 19 21:28:47 pfn: Don’t worry, I’m fully in the #EnumsMatter camp Apr 19 21:28:56 s73v3r http://developer.android.com/reference/android/support/annotation/StringDef.html Apr 19 21:29:32 I just feel that the Android team wouldn't be putting so much effort into stuff like IntDef and StringDef ^ if there wasn't some meaning behind them Apr 19 21:29:38 i'd use an enum to store pieces of info related to one things, or if the enum overrides a method, or whatever Apr 19 21:30:02 IntDef and StringDef are there because the idea of enums are valid, and the platform team needs something Apr 19 21:30:19 the platform guys have reason to avoid enums. Apr 19 21:31:45 enums still have there place. Apr 19 21:31:55 Their* place, oh man Apr 19 21:32:37 And, not sarcastic, goto has its place, too. Apr 19 21:32:52 100 goto 100 Apr 19 21:32:54 :D Apr 19 21:33:15 tilal6991: am I correct in assuming that any of the behavior stuff is only handled for direct childen of the CL? Apr 19 21:33:21 halt and catch fire Apr 19 21:33:24 Sorry for offtopic, but where does goto have a place? @explodes Apr 19 21:33:33 Maurits-: yes I think so Apr 19 21:33:43 liuwenhao in machine generated code, like parsers, etc Apr 19 21:34:13 True, I didn't think of that Apr 19 21:38:35 that would make sense from a complexity PoV Apr 19 21:38:50 as the amount of interacting views increases quadratically Apr 19 21:43:01 tilal6991, because they want to continue the status quo, and still retain the possibility of running on low end devices Apr 19 21:43:11 as app developers, you don't necessarily have the same constraints Apr 19 21:45:22 just profile & measure, find the bottlenecks and fix them Apr 19 21:46:02 pretty much Apr 19 21:46:39 i'm betting java 8 style lambdas using jack will probably be worse anyhow Apr 19 21:46:49 all those inner classes if i recall Apr 19 21:47:01 which we do anyhow , and nobody cares :) Apr 19 21:47:41 although i guess the kotlin impl is more efficient Apr 19 21:48:00 adq: pfn: interested to hear your take on https://plus.google.com/105051985738280261832/posts/YDykw2hstUu and the correspodning link based on that comment Apr 19 21:48:27 g00s: Kotlin impl is only more efficient if you are using inline lambdas Apr 19 21:48:37 Otherwise it is the same as inner classes Apr 19 21:52:55 I am trying to chunk out a byte array to use in a while loop like a stream. Basically i have a wav file in entirety in a byte[] and i want to infinitely loop through that byte array in 512 byte chunks and write it out. Apr 19 21:52:58 Does that make sense? Apr 19 21:53:30 similar to how you would read a filestream in byte size chunks, i want to read the bytes in chunks from an existing byte array. Apr 19 21:53:54 Hi all. Does google offer an API to detect a permitted phone's location using cell phone towers? Apr 19 21:54:32 join #java Apr 19 21:57:18 or wifi networks, etc Apr 19 21:57:34 tilal6991: right, the issue in the end turns out to be that the scrolling behavior calls the offset on a framelayout, which applies it to all its children, including the bottom toolbar Apr 19 21:58:19 bit hackish, but subclassing framelayout to let it ignore the toolbar (by hardcoding its id) seems to work Apr 19 21:58:29 Lol that's very hackish Apr 19 21:58:40 yeah, it's really an issue with my design Apr 19 21:59:34 but I can't think of another way of easily solving this without moving the toolbar inside of the fragment Apr 19 22:00:06 *the top toolbar Apr 19 22:01:02 Maurits-: I hope you won't mind me mentioning again why I don't like fragments so much :P Apr 19 22:01:23 I want to be sure of where users of my app are located. Any ideas? Apr 19 22:01:34 microhaxo: ByteArrayInputStream Apr 19 22:01:51 kotlin style isn't really more efficient Apr 19 22:01:55 it removes the class/method indirection Apr 19 22:01:59 but it bloats the code table Apr 19 22:02:25 tilal6991: hehe, this is kind of caused by google backing away from them, again, by making it preferable to have the toolbar in the same layout as the content views Apr 19 22:02:31 so you have the same code repeated throughout your dex, whether it's a good or bad thing depends on how complex the thing you're inlining is Apr 19 22:03:09 android Location, LocationListener, LocationManager Apr 19 22:03:13 Yes definitely preferably you only inline methods which are used only a few times or those which are very small Apr 19 22:03:15 android-dev265: Apr 19 22:03:26 seriously, fucking bot! Apr 19 22:03:55 ... Apr 19 22:04:12 in the end, it's all relative, if you have shittons of performance problems, enums and lambdas will often be the least of your worries Apr 19 22:04:54 Do locationlistener/locationmanager do anything other than give you the GPS location provided by your device? If so, what's to prevent them from lying about what the device said? Apr 19 22:05:02 android-dev265: look them up Apr 19 22:05:09 RTFM Apr 19 22:05:20 android-dev265: ofc they can lie but if they are that's because the user wants them to Apr 19 22:05:28 Because they have turned mock locations on Apr 19 22:05:38 Right, for security issues I want to know where the phone actually is. Apr 19 22:05:55 Not where the user says it is. Apr 19 22:06:01 Well then there's not really a way to do that unless you're rooted :) Apr 19 22:06:09 you can't force someone to do something with their device Apr 19 22:06:11 And you interface with the GPS libs directly Apr 19 22:06:48 Even interfacing with the GPS libs directly you are still sending a GPS coordinate to the server. That can be switched out at any time. Apr 19 22:06:55 99% of people don't know mocklocations exists Apr 19 22:07:06 Then you should be writing your own OS if you are that concerned about this Apr 19 22:07:08 you can't do mock location while disconnected from pc anyway Apr 19 22:07:49 android-dev265: can I presume you are trying to setup a geofence? Apr 19 22:07:54 Yes. Apr 19 22:08:09 * Ping_2_Ur_Pong points to his earlier statement about RTFM. You are covered with android. Apr 19 22:08:36 Short of the user disallowing GPS permission, and you check for that, in which even they fail. Apr 19 22:09:04 tilal6991, nothing to say (about the link) lol, it seems i +1'ed year ago Apr 19 22:09:16 Haha Apr 19 22:09:18 they should better filter logcat in their platform and library first. Apr 19 22:09:19 Aight, sound solid. I'll look into it. Apr 19 22:10:06 http://recode.net/2016/04/19/google-memegen-nest/ ah memegen Apr 19 22:10:07 android-dev265: it is really trivial to setup location services, the only real gotcha is permissions on 23+ vs pre. Apr 19 22:10:26 :) Apr 19 22:10:28 We're targeting 16+ Apr 19 22:10:31 should project number and sender id be the same for GCM? Apr 19 22:10:39 (GPS jammers exist.) Apr 19 22:10:45 (Cheap and extremely effective.) Apr 19 22:10:53 then you have to deal with the gotcha. AS will yell at your when you try to not do what you need to do. Apr 19 22:10:59 grekkos, yep, they're the same number. Apr 19 22:11:20 Yeah I'm not concerned about it. Support libraries exist etc Apr 19 22:11:39 All I'm concerned about is if my server will give someone something they can only read inside a certain location Apr 19 22:12:23 *sigh* Apr 19 22:12:35 * Ping_2_Ur_Pong wonders if android-dev265 works for the NSA. And is implementing a shitty security mechanism Apr 19 22:12:42 Mavrik: my google services id in the json file seems to be different from the sender_id I'm using, so those should definitely be the same? Apr 19 22:13:07 No idea, I don't use the json config :/ Apr 19 22:13:13 ah okay Apr 19 22:13:19 Ping_2_Ur_Pong: hahahaha or US airforce and Area 51 (https://en.wikipedia.org/wiki/Area_51) Apr 19 22:13:29 Nah, probably just a retarded company. Apr 19 22:13:38 Hi there, I'm using sub components with dagger 2, is there an easy way to swap out the underlying subcomponent implementation for tests? Apr 19 22:13:40 People that know security would understand that his approach is silly. Apr 19 22:13:41 Nah, I'm a consultant by trade. But this is for a dead drop app I'm working on with a friend. Apr 19 22:13:41 Dagger 1 provides a way to override modules, is there something similar in dagger 2? Apr 19 22:13:47 And would just setup a secure wifi :P Apr 19 22:13:56 android-dev265: honestly, you do realize you'll have to continuously check the users location and the second they leave the area close whatever you are creating to allow them to view the document. Apr 19 22:14:03 also, make sure you disable screenshots Apr 19 22:14:17 android-dev265, setup wifi with access to data. Done. Apr 19 22:14:35 better solution Apr 19 22:14:41 Yes ^^ Apr 19 22:14:47 That's much better way to do it Apr 19 22:14:57 I'll send you my 1500EUR consulting invoice shortly :P Apr 19 22:15:18 :-P Apr 19 22:15:39 I'm also starting open source hacking so can we pass this off as two coders working for the sake of working? Apr 19 22:15:40 you think he's joking... you have to register with an email, he's already sent off the paypal request Apr 19 22:16:13 Hey Ping_2_Ur_Pong - I had to leave for a while but was just wondering how to run "compile 'com.android.support:support:-v4:23.3.0'" as you suggested a few hours ago. Sorry about this - I'm new to android development Apr 19 22:16:35 Syncing build.gradle now returns another error instead: "Failed to find: com.android.support:support:-v4" Apr 19 22:16:35 add it to your build.gradle and sync Apr 19 22:16:41 ahhh ok Apr 19 22:17:01 ah that's what I did then I get the android:support error Apr 19 22:17:12 support:-v4 is incorrect Apr 19 22:17:15 support-v4:23.3.0 Apr 19 22:17:18 I think the problem with Android SDK manager might've caused them to stop working Apr 19 22:17:27 Yup I've got dependencies { Apr 19 22:17:27 compile fileTree(dir: 'libs', include: ['*.jar']) Apr 19 22:17:27 compile 'com.android.support:support:-v4:23.3.0' Apr 19 22:17:38 holy fuck I just realized something stupid. Apr 19 22:17:39 listen to pfn Cooleh Apr 19 22:17:52 Cooleh, then you need to update your sdk Apr 19 22:17:54 Even if they get the dead drop in the location, it's digital data. It can be copied and shared at ease Apr 19 22:18:14 Oh sorry, I thought Ping_2_Ur_Pong said to do this before updating SDK. Ok I'll try that now! Thank you guys Apr 19 22:18:33 android-dev265: that's what I was saying, you're going to have to write a custom view that controls the view of the data. Apr 19 22:18:35 I don't know why I'm even here, this will never work. Apr 19 22:18:58 Stopping ADB server failed (code -1). Apr 19 22:18:58 Failed to create directory C:\Program Files\Android\android-sdk\platform-tools Apr 19 22:18:58 Skipping 'Android SDK Tools, revision 24.4.1'; it depends on 'Android SDK Platform-tools, revision 23.0.1' which was not installed. Apr 19 22:19:03 ie you have to control it being displayed and then immediately delete it once they leave the area Apr 19 22:19:23 Cooleh: if you can't deduce what that means, im going to punch you in your fucking face Apr 19 22:19:50 I'm thinking the dead drop portion of the app may be... dead. Apr 19 22:20:00 I dont understand why it's uninstalled it Apr 19 22:20:28 Also Ping_2_Ur_Pong I'm very new to this man, I'm just trying to learn Apr 19 22:20:36 android-dev265: is the information really that important? Apr 19 22:20:39 is it like actual security, or just a game type thing, android-dev256? Apr 19 22:20:42 It was installed before I believe which seems odd Apr 19 22:20:44 Cooleh, part of learning is learning to read Apr 19 22:21:17 * Ping_2_Ur_Pong ponders a solution he would implement for this... It is actually an interesting problem. Apr 19 22:21:29 game type thing Apr 19 22:21:31 well. Apr 19 22:21:33 I don't know. Apr 19 22:21:41 I say game type thing but I have no idea what our mobile users will be doing. Apr 19 22:21:46 They could do... secretive things. Apr 19 22:21:53 android-dev265: lol maybe you should figure out what it should be doing before asking for technical advice Apr 19 22:22:00 that’s the #1 thing you have to go back and think about Apr 19 22:22:03 Yeah I thought I knew. Apr 19 22:22:17 Ping_2_Ur_Pong, sure. I'm just trying to install Android SDK Platform-tools and it fails though Apr 19 22:22:21 Ping_2_Ur_Pong: implementing a bot is looking more and more attractive now Apr 19 22:22:21 I was wrong. Apr 19 22:22:21 I'm sorry I wasted everyone's time. Apr 19 22:22:27 * Ping_2_Ur_Pong nods Apr 19 22:22:28 No worries :P Apr 19 22:22:31 meh Apr 19 22:22:47 Cooleh: what os are you on? /me yells out windows Apr 19 22:22:53 windows 10 Apr 19 22:22:56 hahaha Apr 19 22:23:04 Wel C:\Program Files gives it away lol Apr 19 22:23:27 We all start somewhere Apr 19 22:23:31 I'm a beginner Apr 19 22:23:36 * Ping_2_Ur_Pong hasn't used Windows as a dev machine ever, he got in a fight with a college professor about trying to force that shit. Apr 19 22:23:40 Cooleh: don't mind him too much Apr 19 22:23:47 He's just being cynical :P Apr 19 22:23:52 Ping_2_Ur_Pong, what did you start on when you were a kid? Did you go straight to linux Apr 19 22:23:56 * Ping_2_Ur_Pong is an asshole, generally always cynical Apr 19 22:24:09 Well he's also been super helpful when he was trying to help me earlier. But also harsh on a noob Apr 19 22:24:26 Cooleh, go to preferences and download the sdk again Apr 19 22:24:33 It's OK - on SDK manager just make sure you have everything installed and up to date Apr 19 22:24:36 IDK where its at Apr 19 22:25:14 As in, the SDK Tools, through the SDK Manager? or on the web redownloaded Android SDK Apr 19 22:25:23 sdk manager Apr 19 22:25:39 If the SDK manager is loading correctly they just through the manager Apr 19 22:26:12 Woah Apr 19 22:26:13 https://github.com/google/agera Apr 19 22:26:19 Google advocating Reactive programming Apr 19 22:26:21 Just waoh Apr 19 22:26:29 * woah Apr 19 22:26:53 https://www.youtube.com/watch?v=-BJFJxLMsNQ <-- might be helpful Cooleh, but you should just be able to update and grab the missing SDKs through AS. Apr 19 22:26:59 Thank you Ping_2_Ur_Pong Apr 19 22:27:16 Would you believe it guys, I interned at google Apr 19 22:27:20 someone as stupid as myself Apr 19 22:27:24 tilal6991: yea its interesting. The consensus I have seen here is the API is shit. I haven't dived into the source yet. Apr 19 22:27:26 the company must be going downhill Apr 19 22:27:36 Cooleh: really? Apr 19 22:27:39 Which team? Apr 19 22:27:41 Yep Apr 19 22:27:42 Maps Apr 19 22:27:53 Cooleh: then please learn to google well. Your questions have been googlable Apr 19 22:28:08 Maps huh Apr 19 22:28:11 Fun Apr 19 22:28:15 I have tried although definitely not as hard as I should have Apr 19 22:28:24 context is helpful Apr 19 22:28:29 I was in Chrome Android last year - which office were you in? Apr 19 22:28:41 Cooleh, don't answer that Apr 19 22:28:52 Lol ok Apr 19 22:28:58 haha why not? Apr 19 22:29:01 Ping_2_Ur_Pong: why? Apr 19 22:29:07 so you interned too tilal6991? or visited? Apr 19 22:29:11 Interned Apr 19 22:29:15 because you're trying to connecting the dots to a wtf moment Apr 19 22:29:27 what do you mean? Apr 19 22:29:33 * Ping_2_Ur_Pong nvms Apr 19 22:29:38 * Ping_2_Ur_Pong goes back to coding Apr 19 22:29:42 ah go on! Apr 19 22:30:12 * Ping_2_Ur_Pong is personally kind of pissed that you fuckers got to intern a google, he would have loved to intern there when he was in college Apr 19 22:30:53 Lol Apr 19 22:30:58 tilal6991: you in college? Apr 19 22:31:02 Yeah Apr 19 22:31:04 CS? Apr 19 22:31:06 could I ask what you do now Ping_2_Ur_Pong Apr 19 22:31:23 Maths and CS Apr 19 22:31:42 Howd you get the job at google? Apr 19 22:31:55 I applied, interviewed and got in :P Apr 19 22:32:01 I was an APM internet btw tilal6991 Apr 19 22:32:03 Your standard method I guess - nothing special Apr 19 22:32:04 Sweet, how was it? Apr 19 22:32:05 not a SWE Apr 19 22:32:12 which explains my lack of coding skill to you.. Apr 19 22:32:18 Ah OK - still you need technical background for it Apr 19 22:32:46 It was v good. Enjoyed my time there and going back this summer :) Apr 19 22:33:01 Are you a Freshman? Apr 19 22:33:08 True. I'm fine coding straight up java or c# or whatever if I'm in eclipse or unity Apr 19 22:33:18 I've just done nothing with android before so am very lost atm Apr 19 22:33:32 No no - I don't know what the US equiv is but I'm a third year of a combined Bach/Masters degree Apr 19 22:33:42 Ah ok Apr 19 22:33:44 Cool Apr 19 22:33:46 Also https://github.com/google/agera/issues/20 - the last comment man Apr 19 22:34:51 drose379, I was referred for my interview. If you have a friend who works there I'd recommend it if you're applying Apr 19 22:35:15 dudes, anyone know what's the deal w/ documentation window in AS? Apr 19 22:35:18 it wont guarantee anything but usually gets you a guaranteed interview and often skips you past the first round with the recruiter Apr 19 22:35:30 damn thing keeps popping up in middle of bid-ness! Apr 19 22:36:00 Are you in the USA Cooleh Apr 19 22:36:08 no, UK Apr 19 22:36:15 why? Apr 19 22:36:38 JW Apr 19 22:36:58 tilal6991: haha, thats fucking funny Apr 19 22:37:06 Cooleh: never answered which office lol Apr 19 22:37:06 "its quite an elephant in the room" Apr 19 22:37:16 Ping_2_Ur_Pong, scared me off Apr 19 22:37:23 Haha Apr 19 22:37:35 Zurich Apr 19 22:37:36 how about you? Apr 19 22:37:39 Ping_2_Ur_Pong: yeah the entire thread is funny and the last comment cuttingly brutal Apr 19 22:37:43 I was in London Apr 19 22:37:48 Came to Zurich for the summit tho Apr 19 22:37:50 oh nie Apr 19 22:37:52 yeah i was going to say Apr 19 22:37:56 haha we probably were in that talk together! Apr 19 22:38:05 Probs several yeh Apr 19 22:38:06 the demo one in the room by the restaurant Apr 19 22:38:10 Yup Apr 19 22:38:14 which talks did you go to? Apr 19 22:38:29 Can't remember of the top of my head + we've gone waaayyy off topic lol Apr 19 22:38:35 hahah true Apr 19 22:38:48 I met a couple of girls from the LDN office Apr 19 22:41:10 " Apr 19 22:41:10 Net - For HTTPUrlConnection interaction" Apr 19 22:41:20 Seriously they're still using that nonsense over OkHTTP? Apr 19 22:41:51 Mavrik: yeah it was supposed to be the same apparently, not sure where the other number came from. (GCM sender id vs project number) Apr 19 22:41:57 the json file had the right value Apr 19 22:44:10 tilal6991: if nothing I can use Agera to see how they wrote it and use that knowledge might be useful. Apr 19 22:44:28 TBH I just flicked through it Apr 19 22:44:29 I think I am going to eat dinner tonight reading the source and piecing the architecture together. Apr 19 22:44:44 There's some interesting concepts but what was said in that comment is dead on Apr 19 22:45:05 It actually does much of the same job databinding performs Apr 19 22:45:07 yea, I see no reason to use it over RxJAva, but always good to take some time and see whats being done Apr 19 22:45:12 Definitely yes Apr 19 22:45:16 I will look into it too Apr 19 22:45:26 There are some interesting ideas there I'm sure Apr 19 22:45:49 * Ping_2_Ur_Pong really needs to find a good book/something on reactive programming Apr 19 22:46:25 hi guys Apr 19 22:46:40 * Ping_2_Ur_Pong bows Apr 19 22:47:56 I want to make a USB or HD (connected via USB to Android Tv box) be seen as internal storage Apr 19 22:48:10 I've been told it can be donw Apr 19 22:48:12 *done Apr 19 22:48:14 Ping_2_Ur_Pong, I think my problem is if I try and install just Android SDK Platform-tools (23.0.1), I have to accept the licenses and attempt to install Android SDK Tools (24.4.1) tool. But SDK tools fails since it needs Platform-tools. Trying to google now Apr 19 22:48:39 I'm not a developer or even an Android expert but I know that a lot of people I spoke to think this is a good idea Apr 19 22:48:56 Can it be done and would anyone be willing to do it? Apr 19 22:49:19 lol Apr 19 22:49:59 Cooleh? Apr 19 22:50:18 Queenslayer: it's called adoptable storage and you can find info https://source.android.com/devices/storage/adoptable.html Apr 19 22:50:25 Looper.myLooper() will get the looper for the current thread? Apr 19 22:50:37 Love you tilal6991 Apr 19 22:50:39 drose379: most threads don't have a looper note that Apr 19 22:50:53 I want to check if my current thread is the main thread Apr 19 22:50:54 Queenslayer: you're welcome :P Apr 19 22:50:59 How do I? Apr 19 22:51:07 But is it availlable for 5.1? Apr 19 22:51:14 drose379: Looper.myLooper() == Looper.getMainLooper() Apr 19 22:51:29 Right thats what I've got, but I thought some threads dont have a looper Apr 19 22:51:30 Queenslayer: as the page says only for 6.0 and above Apr 19 22:51:33 I guess if it doesnt, itll be null Apr 19 22:51:38 Exactly Apr 19 22:51:44 So it'll evaluate to false Apr 19 22:51:54 tilal6991, can it be developed for 5.1? Apr 19 22:52:00 A feature within it? Apr 19 22:52:09 Cooleh, why not just install everything? Apr 19 22:52:11 I'm referring to Android boxes that have storage issues Apr 19 22:52:11 Queenslayer: without root almost impossible Apr 19 22:52:21 I have root as do most of these boxes Apr 19 22:52:32 Then yeah anything is possible Apr 19 22:52:44 I've tried the External to Internal App Apr 19 22:52:50 Didn't work for my device Apr 19 22:52:52 Is there a way to make a retrofit .enqueue call not call onResponse on the main thread? Apr 19 22:52:55 You need to change up the boot image and remap the the links Apr 19 22:52:57 Or should I just use .execute Apr 19 22:53:40 Queenslayer: if you want a full swap of internal and external storage it can't be done at the app level Apr 19 22:53:46 You'll have to mess with the boot image Apr 19 22:53:56 tilal6991, what do I need to know to do that? Apr 19 22:54:12 Love you still stands Apr 19 22:55:08 Well the type of box, they you need to either split the boot image into a ramdisk and kernel, edit the init rc files to remap the partitions recompile with the correct offsets and mkbootimage params and then flash the new bootimage and hope it works Apr 19 22:55:13 * then Apr 19 22:55:46 It's not trivial I'll give you that Apr 19 22:55:51 Nope Apr 19 22:55:52 lol Apr 19 22:56:07 I'll copy, paste and print that on my wall Apr 19 22:56:44 Your best bet is to find a CM repo for your device and then work off the parameters there Apr 19 22:57:01 And I'm guessing removing that storage during operation would render it useless? Apr 19 22:57:03 Or google your device and find an XDA forum for it where other people will have tuts for it Apr 19 22:57:08 It's better to get an SD card Apr 19 22:57:15 Well it would almost certainly reboot the device and/or corrupt it Apr 19 22:57:30 Yeah, it's not that popular a device Apr 19 22:57:35 But there are others 'like' it Apr 19 22:57:42 tilal6991, you're a star man Apr 19 22:57:47 I guessed that would be the case if you were asking here :P Apr 19 22:58:00 Obscure mediatek/allwinner device? Apr 19 22:58:06 yeah Apr 19 22:58:08 AML Apr 19 22:58:15 Had my share of them :P Apr 19 22:59:32 drose https://github.com/square/retrofit/issues/370 Apr 19 23:00:03 drose379: ^ and I agree you should be using RxJava if you want fine grained control of threads Apr 19 23:00:46 AML tilal6991 ? Apr 19 23:00:58 No cheap chinese boards Apr 19 23:01:05 Allwinner a10 specifically Apr 19 23:01:07 Oh yeah Apr 19 23:01:07 I see Ping_2_Ur_Pong tilal6991 , I ended up just using #execute which stays on whatever thread its called on Apr 19 23:01:36 tilal6991, can I speak to you in PM? I don't think I'm allowed to ask my next question in public Apr 19 23:01:46 Sure go for it Apr 19 23:02:09 Can you pass lambdas as a param to a method in kotlin? Apr 19 23:02:22 Yes ofc Apr 19 23:02:31 So bad ass Apr 19 23:02:37 Right now I use Runnable for that Apr 19 23:03:02 Even better Kotlin does SAM conversion Apr 19 23:03:11 So you can pass lambdas to Java method :D Apr 19 23:03:14 * methods Apr 19 23:03:23 Noo way Apr 19 23:03:25 Nice tilal6991 Apr 19 23:03:56 I tried to add retrolambda to my project but it wouldnt build Apr 19 23:10:38 Anyone familiar with startTransaction and .endTransaction with SQLiteDatabase Apr 19 23:10:47 Heard if you are making a bunch of inserts it can speed things up Apr 19 23:10:59 Yes that's correct Apr 19 23:11:28 Can I use it with the convenience .insert method? Apr 19 23:11:54 Yes Apr 19 23:12:01 Sweet Apr 19 23:13:06 http://stackoverflow.com/questions/16564000/begintransaction-endtransaction-and-settransactionsuccessful-what-exact - want something like that Apr 19 23:19:17 Laters tilal6991. You're a gent Apr 19 23:19:28 Queenslayer: anytime :) Apr 19 23:19:42 Where should I start for Android developing? Apr 19 23:19:52 Before I go Apr 19 23:20:38 Queenslayer: Udacity course and nerd ranch book Apr 19 23:20:52 Sorted Apr 19 23:20:53 Night Apr 19 23:20:53 Who usually says this? Apr 19 23:20:56 Night Apr 19 23:21:09 me Apr 19 23:21:11 s73v3r: ^ Apr 19 23:21:16 Yup lol Apr 19 23:37:29 How come when I pass a String to a method, and that string gets edited, the string that was used to call the method does not get updated? Apr 19 23:47:37 if you want to do that you need to return the string Apr 19 23:50:43 drose379: Strings are immutable Apr 19 23:50:51 in java Apr 19 23:51:16 Anyone had luck generating coverage for androidTests ? Apr 19 23:51:22 hah Apr 19 23:51:24 My report doesn't include coverage. Apr 19 23:51:28 I wish I could remember Apr 19 23:51:39 I know I fiddled with it quite a bit, I got it working at some point explodes Apr 19 23:52:27 And you ain't got no stinkin' repo with the deets? Apr 19 23:52:42 ahh it's a proprietary project I couldn't share the code anyway :| Apr 19 23:52:51 I'm looking at it now though Apr 19 23:52:53 tilal6991: decided to have my fragment layouts contain the top toolbar, with a switch for the cases in which they are used toolbarless Apr 19 23:52:55 what have you tried doing Apr 19 23:53:04 Maurits-: fun times Apr 19 23:53:14 not as nice an abstraction, but this does fix the problem properly Apr 19 23:53:31 thanks for the help Apr 19 23:53:34 explodes: in my case I was integrating with sonar qube Apr 19 23:53:36 Any time :) Apr 19 23:54:31 grekkos: added this jacoco stuff to my app module's build.gradle: http://pastebin.com/ehS3y95v Apr 20 00:12:11 Is it possible to only put in a scroll view into a layout if the layout doesn't fit within the space of the phone display? Apr 20 00:12:28 yes Apr 20 00:13:00 you can make two layouts, one with a scrollview, and put them into different bucket folders Apr 20 00:13:22 or you can do something at layout load check if screenSize < something, add a scrollview Apr 20 00:14:41 Yeah because it looks weird having scrollviews on layouts which don't need them, that's why I was asking, is it similar how to how you can have horizontal bucket folder layout and portrait bucket folder layout? Apr 20 00:15:18 we add scrollviews for our HDPI base layout, but leave it out for XHDPI Apr 20 00:16:08 https://www.manning.com/dotd Apr 20 00:16:13 ;P Apr 20 00:16:21 just because Apr 20 00:17:12 now I need to wonder if those are on Safari. Apr 20 00:17:15 i don’t think so? Apr 20 00:17:34 they are Apr 20 00:18:04 FUCK! I forgot to write off my Safari subscription when doing my taxes :( Apr 20 00:18:26 not that much money, though, is it? Apr 20 00:18:56 no, but every little bit helps Apr 20 00:19:06 just don't forget other things Apr 20 00:25:32 FUCK! I forgot to write off my kids on my taxes Apr 20 00:27:33 s73v3r: by leaving it out for XHDPI, does that mean every layout above the size of XHDPI will not have it? Likewise for those HDPI and below, does that mean that every one below it will have a scrollview? Apr 20 00:27:49 yes Apr 20 00:28:18 and we have a complex setup where we have a base Activity, which inflates the base layout, and each activity inflates into that layout Apr 20 00:28:25 that's a bummer if you forget your kids :P Apr 20 00:28:29 for something simpler, it could be done on a per activity basis Apr 20 00:31:34 s73v3r: Sounds like I could learn a lot from you, do you have to add any code in your java files to get the layouts to change be the same as either the XHDPI or HDPI layout or is that just automatically done? Apr 20 00:37:02 s73v3r forgot to write kids as dependents on taxes ? Apr 20 00:37:15 can you amend stuff ? Apr 20 00:38:07 I sense sarcasm Apr 20 00:39:40 s73v3r https://www.irs.gov/uac/Newsroom/Make-a-Mistake-Amend-Your-Tax-Return Apr 20 00:39:45 it was a joke Apr 20 00:39:54 oh :) Apr 20 00:40:05 i was like haha how can you forget your kids :) Apr 20 00:40:08 markyosullivan: the layout buckets are a fundamental feature of android Apr 20 00:40:26 I've been neglecting that feature, I feel bad for doing so Apr 20 00:40:29 Don't judge me! Apr 20 00:40:38 we dub the unforgiven ! Apr 20 00:40:42 *thee Apr 20 00:40:46 I'm going to redo this project app once Uni is over, I like the app idea but my code is so hacky and could be so much better Apr 20 00:41:52 feel like I'll be able to learn by going over it and improving it Apr 20 00:52:10 Is anyone experienced with AudioTrack? I cannot for the life of me get the audio buffer correct. It will play fine on one phone but not play on another model.. Apr 20 00:54:06 Your emulator is out of date, please update by launching Android Studio: Apr 20 00:54:07 hrm Apr 20 00:54:47 message went away after starting emu again Apr 20 01:01:01 Anyone worked with audiotrack? Apr 20 01:20:45 Hey Apr 20 01:22:01 How can I retrieve data about an app in the play store such as reviewer, date, title, review content etc.? Apr 20 01:22:27 Have any of you done something like this? Apr 20 01:27:00 open the web page and read it with your human eyes Apr 20 01:40:01 If I have a MockService, how can I make it execute immediately, but only in my tests? Apr 20 01:43:14 I've got this in my custom test runner: RxJavaPlugins.getInstance().registerSchedulersHook(new ImmediateSchedulersHook()); Apr 20 01:43:25 But it doesn't help Apr 20 01:45:36 Could it be because I'm using Single instead of Observable? Apr 20 01:47:05 protip: nope Apr 20 02:29:36 * g00s sighs Apr 20 02:33:54 g00s, you okay? Apr 20 02:34:58 damn it ny :/ Apr 20 02:35:14 Trump Trump Trump Trump! Apr 20 02:35:50 Wathcing him is like fun, like a slow-motion train wreck Apr 20 02:35:56 i'm starting to think its either a slow blow with hillary or a huge blowout with trump leading to revolution Apr 20 02:36:42 Imagine, "Askin for it!" Apr 20 02:39:02 NY lit the Empire building in red tonight Apr 20 02:39:42 capella those communists ! Apr 20 02:40:12 HA hahah ... vs. the other side, "socialists" ... or are they marxists? I can't discerne :/ Apr 20 02:40:13 * g00s goes for walk Apr 20 02:41:47 ok, im not american, how bad is it that trump won NY? how important are primaries to becoming the president? Apr 20 02:51:04 NY counts ~100 delegates towards a required ~1300 ... it's a lot for one primary win Apr 20 02:51:59 And if you don't win either the US Dem or Rep primary, it's almost impossible to get on the Natl ballot Apr 20 02:53:42 in my recycler view adapter i'm doing this http://pastebin.com/myDkELUy but i get a getAdapterPosition can't be resolved library 23.3.0 and same on 23.3.1 Apr 20 02:53:50 *23.2.1 Apr 20 02:57:29 quick question. Head First Design Patterns or GOF? **** ENDING LOGGING AT Wed Apr 20 02:59:58 2016