**** BEGIN LOGGING AT Sat Oct 15 02:59:58 2016 Oct 15 03:19:53 Hi guys, can anyone help me implement the execute-around pattern in java 8? Oct 15 03:21:39 Java 8? ;o Oct 15 03:23:01 What's the question, anyway? Oct 15 03:23:45 I'm converting from groovy Oct 15 03:24:27 My use case is a class that reads and writes from disk, has a handful of methods for read and for write. Each needs to be wrapped in a try/catch, so it's a good case for the execute around apttern. Oct 15 03:24:48 You can't really use Java 8 unless your minSdkVersion is 24. Oct 15 03:24:59 it is Oct 15 03:25:19 in groovy, i would have a generic try/catch that accepted a closure, i guess it's basically going to be the same thing, just with a function Oct 15 03:25:28 Yeah. Oct 15 03:25:33 It's easier in Kotlin. Oct 15 03:26:01 Well it doens't look hard in groovy Oct 15 03:26:04 i mean java 8, Oct 15 03:26:30 Here's an example in Kotlin: https://github.com/JetBrains/kotlin/blob/1.0.3/libraries/stdlib/src/kotlin/system/Timing.kt#L8 Oct 15 03:26:44 it's just... in groovy to execute the closure you do myClosure().. in java 8 you use myFunction.apply() , but all the examples do .apply(true) Oct 15 03:30:47 Isn't that the argument for the first-class function? Oct 15 03:31:14 The function i'm passing in has all of it's parameters baked in Oct 15 03:31:22 i just want to execute it inside the try catch Oct 15 03:34:32 https://codeshare.io/cyUVD excuse me, how do I include this listener into another class?.....I tried to instantiate it but when I log in to facebook it doesn't do anything Oct 15 03:34:41 I don't know how to consume it from another class Oct 15 03:38:00 jellycode: Should you use Runnable? I dunno; I haven't used Java 8 much. Oct 15 03:38:05 Maybe try ##java. Oct 15 03:58:04 public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService { Oct 15 03:58:18 does anyone know if that retrieves the facebook id or the firebase token? Oct 15 03:58:23 the facebook token I meant Oct 15 03:58:29 https://github.com/firebase/quickstart-android/blob/master/messaging/app/src/main/java/com/google/firebase/quickstart/fcm/MyFirebaseInstanceIDService.java Oct 15 06:28:24 Hello all Oct 15 06:28:52 I am getting error on YU device, but working fine on emulator. Oct 15 06:29:05 D/FirebaseInstanceId: background sync failed: PHONE_REGISTRATION_ERROR, retry in 10s Oct 15 06:29:15 Any suggestions? Oct 15 06:51:42 t2mkn how do you get the facebook user id?? Oct 15 06:51:46 I already have the token Oct 15 06:51:52 but I don't know how to get the user id! Oct 15 06:53:37 j4f-shredder which user id you are talking about? Oct 15 06:53:57 the facebook id Oct 15 06:54:05 I think I found it Profile.getCurrentProfile().getId() Oct 15 06:54:11 I'll try that one Oct 15 06:54:16 Yes. Oct 15 06:54:26 cause I'm loggin in with firebase Oct 15 06:54:31 but m new to firebase. I am just testing it. Oct 15 06:54:31 with firebase ui Oct 15 06:54:39 to simplify the login workflow Oct 15 06:54:45 and it doesn't provide the facebook id Oct 15 06:54:50 if you login with facebook Oct 15 06:54:54 they are working right now on that Oct 15 06:55:10 I'll just ask it to facebook myself, is no big deal Oct 15 06:55:18 but it would be nice if firebase id would do that Oct 15 06:55:31 Ooo ok. Oct 15 06:55:39 you have any idea about my issue? Oct 15 06:55:41 what Itbothers me is that it doesn't let you login with same email, same firebase id multiple providers Oct 15 06:55:45 that would be nice Oct 15 06:56:05 t2mkn Oct 15 06:56:21 that sounds like the emulator is registered and the device is not Oct 15 06:57:18 I feel like its a google service error. I tested and found the device has google service. Oct 15 06:58:00 any way to identify whats or where its going wrong. Oct 15 06:58:03 j4f-shredder Oct 15 06:58:42 what does the android monitor tells you Oct 15 06:58:57 first identify the activitythatis crashing the app Oct 15 06:59:01 on the android monitor Oct 15 06:59:03 the log Oct 15 06:59:12 after that put some Log.i Oct 15 06:59:23 and use the debugger line per line while connected to the device Oct 15 06:59:30 that's a good start Oct 15 06:59:37 you will see the error message for sure Oct 15 07:11:55 j4f-shredder I have just added the api to project. Testing for push notification. But I don't receive anything in device but do receive in emulator. So something is wrong in device. It's nothing to do with app at all. Oct 15 07:13:21 So I think, if it fails in my test device, it can fail in lot of others device also. So whether I should use firebase or not. But I don't think I have any alternative but to use it. Oct 15 07:14:34 yes Oct 15 07:14:40 you really don't have alternative Oct 15 07:14:42 it's the only way Oct 15 07:14:51 I think Oct 15 07:14:56 the device is not registered Oct 15 07:15:02 that's why is crashing Oct 15 07:15:09 there isa way of registering devices Oct 15 07:15:19 and get the token Oct 15 07:16:10 https://github.com/firebase/friendlychat/blob/master/android/app/src/main/java/com/google/firebase/codelab/friendlychat/MyFirebaseInstanceIdService.java Oct 15 07:16:19 t2mkn Oct 15 08:38:25 Hey, People. I am new developer. I am just have problem with android app that there is a stable version on play store which worked perfectly on all systems but when I changed some code and then build that app and install on my system it crashed then I undo that changes and delete data and uninstall that app and again install The stable version from play store and now that also start crashing but that stable version is working on other phones. Oct 15 09:36:28 Hi folks! I have a v7.preference.PreferenceFragmentCompat, if i add a checkboxpreference from xml it works okay, but if i add it from code, then it has no checkbox on the ui (although it functions) Oct 15 09:36:35 Can someone help me out why? Oct 15 09:59:04 Greetings girls and boys. Oct 15 10:00:06 Is there like a specific time or an around-about time when app stats on the play store is updated ? Oct 15 10:00:17 It lags with about 24 hours that is clear. Oct 15 10:01:25 Hi Melatonina Oct 15 10:42:14 What would you suggest to use ( Instead of a whole new activity ) for a popup with a message including a do not show this again checkbox ? Oct 15 10:42:28 and ok button of course :) Oct 15 10:46:51 a dialog :? Oct 15 10:47:18 So far thats first on my mind :) Oct 15 10:47:33 It can take a checkbox right ? Oct 15 10:48:30 Hi Oct 15 10:48:52 Can anyone tell me how I'm supposed to extend from AppCompatPreferenceActivity? Oct 15 10:49:08 I get the 'cant resolve symbol' error Oct 15 10:49:09 https://github.com/android/platform_development/blob/master/samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatPreferenceActivity.java Oct 15 10:49:45 I have the appcompat lib in my build.gradle: compile 'com.android.support:appcompat-v7:24.1.1' Oct 15 10:50:51 its example, not in support lib Oct 15 10:51:28 Areeb I usually get that if there was a version mismatch between stuff. Oct 15 10:51:29 NeoFrontier: it can take any view or layout Oct 15 10:51:38 like the build tools and something. Oct 15 10:51:38 but i think there is some default with checkbox on it Oct 15 10:52:17 I want to add a toolbar to my preferenceactivity and I saw some sample code that extends this class to display the tool bar Oct 15 10:52:55 so if I have to add a toolbar to my preference activity do I have to copy this source? (seems unclean to me) Oct 15 10:57:43 Areeb: simply copy this class Oct 15 10:58:11 NeoFrontier: good morning. Oct 15 11:01:33 Ashiren: You're sure there's no other way? Oct 15 11:02:48 Melatonina :) Oct 15 11:04:04 Areeb: http://stackoverflow.com/questions/30114730/how-to-use-appcompatpreferenceactivity Oct 15 11:04:24 You can just use PreferenceFragment and AppCompatActivity Oct 15 11:04:28 this class isnt in compat library. it is just example in some project. if you need it, copy it yourself Oct 15 11:05:35 I'll do it then Oct 15 11:05:36 Thanks Oct 15 11:11:41 is there any difference between giving IDs as main.toolbar or main_toolbar ? Oct 15 11:11:58 -or+and Oct 15 11:13:07 hmm you cant(?) put dot on id Oct 15 11:37:21 But i saw it on a project Oct 15 11:37:53 And its working. The guy who coded it using my.toolbar in xlm and calls it from java with my_toolbar Oct 15 11:37:57 interesting. Oct 15 11:38:02 my_toolbar* Oct 15 11:38:12 my(underscore)toolbar Oct 15 12:41:38 SUP Oct 15 12:57:32 Hello! Is there a way to pack some files into my application? Tried to use the raw/ resource directory, but it doesn't like file names (filenames begin with a number), but I would like to keep the original names. Oct 15 12:59:29 assets Oct 15 12:59:56 well it doesnt like them because in code it would be R.raw.01filename Oct 15 13:00:04 thats illegal variable name Oct 15 13:01:50 yes, I understand that. I'm fine with using something like open ("12 my clumsy file name.asv") Oct 15 13:07:08 yes, Assets are exactly what I want. Thank you. Oct 15 13:30:45 Hello everybody. Oct 15 13:35:55 http://stackoverflow.com/questions/40054097/using-surface-as-recording-source-resulting-video-not-full-size - does anybody have any idea? Oct 15 14:07:19 hithere Oct 15 14:08:24 I have uploaded two versions of app, latter have problem of removing data of previous one Oct 15 14:08:48 I would like to debug it. Code is versed with git. Oct 15 14:09:32 Is there a fastes, non-destructive way to switch to concrete revision? Oct 15 14:10:17 there is at least checkout or reset current branch here with (soft, Mixed, Hard, Keep) options Oct 15 14:14:36 I usually tag every release Oct 15 14:15:02 Is there like a specific time or an around-about time when app stats on the play store is updated ? Oct 15 14:15:29 If you haven't done that, you can checkout specific commits Oct 15 14:15:49 No specific time, just happens once in a while Oct 15 14:16:19 eish Oct 15 14:16:37 SimonVT, what do you mean by tag - to each commit I add info what version on Play it was - it was uploaded to play Oct 15 14:16:48 git tag Oct 15 14:16:51 There seems to be about a 24 hour lag at times. Oct 15 14:17:51 It can lag days Oct 15 14:18:32 If you want live stats, use some analytics service Oct 15 14:18:36 SimonVT, ok - that is just way how to differ between commits - I know what commit I want to debug - I do not know how to open it in AS without affecting last changes Oct 15 14:19:14 Google how to checkout commits Oct 15 14:19:28 of course - I am doing it in parallel ... Oct 15 15:11:22 I have a class member "public static ArrayList all;". AndroidStudio warns (underscores) the "public" modifier and says "access can be private". What does it mean? Oct 15 15:12:31 It's warning you that you don't need to use public visibility there. It's a good idea to make things as private as possible. Oct 15 15:12:56 well, but I want to access this from outside the class. That's the intention. Oct 15 15:13:19 Given that Android Studio is not psychic, it didn't know that. :D Oct 15 15:13:22 Either disable the inspection, or ignore it Oct 15 15:13:26 Or suppress it Oct 15 15:13:35 mmmm but for now I don't reference it anywhere yet, maybe thats the cause? Oct 15 15:14:07 I thought that it depends whether it has been used outside the class or not Oct 15 15:14:16 :) Oct 15 15:14:51 zap__, you can easily verify that... Oct 15 15:15:28 zap__: AFAIK, that warning is not enabled by default. Though it can be a handy warning. Oct 15 15:19:21 zap__: that kind of inspection is half-silly EXACTLY because Android Studio is not in a position to check if public visibility is needed or not. I usually know exactly what should be the visibility of my classes, methods and members and I ignore all those warnings. Oct 15 15:20:15 zap__: it can only tell if public visibility is required in the code it can inspect at a given moment Oct 15 15:20:35 Aha, now it tells me access can be package local. That's because I referenced it from same package. Oct 15 15:21:12 zap__: You have a strict custom set of lint warnings. Oct 15 15:22:01 That's ok if I understand what it wants :) Oct 15 15:22:33 it doesn't "want" anything. Despite the name Android studio is not a sentient being Oct 15 15:25:57 Melatonina: It's a fairly common metaphor over here in England. Oct 15 15:28:27 I don't know why IntelliJ uses the term "package local". AFAIR, the JLS always uses "package-private". Oct 15 15:36:25 is OnStartDragListener only usable in a fragment? Oct 15 15:38:04 TacticalJoke, hi - do you use git in AS? How do you switch between versions nondestructively in order to for example debug previous commit and than return back to last state? Oct 15 15:38:48 bolovanos: I use Mercurial at the command line. But can't you do what you want with Git branches? Oct 15 15:40:19 yes you can - but I would rather not to create another branches for that. I thought that there is someting more easier -> go to comit XY -> debug -> done -> go to last app state Oct 15 15:41:09 git checkout -> debug -> done -> git checkout master Oct 15 15:41:18 Git stash? Oct 15 15:49:28 new versions of git have worktree which is awesome Oct 15 15:50:10 thank you will test it Oct 15 15:53:21 The average quality of literature about programming is very low Oct 15 15:53:45 What do you mean? Oct 15 15:55:49 work-tree seems to be something I can use on my git ver also Oct 15 16:12:04 can the drag and swipe from this implementation https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf#.vwg10rc4e be done on an Activity instead of a Fragment? Oct 15 16:14:42 hexagonSun_: yea, of course Oct 15 16:20:56 Napalm i got stuck trying to convert it from a fragment to an activity ToT Oct 15 16:27:13 what should i change to an activity first? Oct 15 16:48:49 hexagonSun_: no idea what you mean? Oct 15 16:49:02 hexagonSun_: pastebin your fragment code then Oct 15 16:49:09 Is 20fps normal for recording when the profile is set to HIGH? Oct 15 16:49:11 Seems a bit low Oct 15 16:49:40 many reasons that might happen Oct 15 16:50:08 What might some reasons be? Oct 15 16:50:09 are you recording at the native resolution of the camera? Oct 15 16:50:21 I'm recording from a surface, no camera. Oct 15 16:50:28 waaaaa Oct 15 16:50:43 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); Oct 15 16:50:43 ok your going to need to explain what your doing Oct 15 16:51:22 oh i see, you mean your using MediaRecorder Oct 15 16:51:27 Yeah sorry Oct 15 16:51:40 what output format and encoders have you chosen Oct 15 16:52:11 JavaCameraView (an OpenCV view) basically uses the camea in a separate hardware pipeline, so I thought instead of changing code it would be easier to record directly from the surface that opencv creates, and that's what I'm doing Oct 15 16:52:20 not set - to my understanding, the camcorderprofile took care of that Oct 15 16:52:23 Napalm ok 1 sec Oct 15 16:52:28 I'll pastebin my exact mediarecorder settings, 2 second Oct 15 16:52:31 seconds* Oct 15 16:54:04 Napalm: http://pastebin.com/zT0W9DRb Oct 15 16:59:07 Napalm ok so i was implementing the drag and swipe following this implementation https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf#.4dc93iwwp but i want to make the drag and swipe thing in an activity instead of a fragment, the fragment is called RecyclerGridFragment http://pastebin.com/nSQL7cc8 which has this adapter http://pastebin.com/9VtWAAPz and there's this MainFragment Oct 15 16:59:09 class http://pastebin.com/yYH4y4Lf Oct 15 16:59:50 Faizan: one moment Oct 15 17:00:06 No problem, take your time. I appreciate the help Oct 15 17:00:15 me too :) Oct 15 17:01:49 hexagonSun_: http://pastebin.com/nSQL7cc8 < see the class implements OnStartDragListener so you should do that in your activity then simply add a RecyclerView to your layout file like line 25 is doing in code. Then copy lines 32 to 45 into your onCreate() after you call setContentView(R.layout.your_activity_layout); Oct 15 17:02:33 hexagonSun_: change line 34 to Oct 15 17:02:47 RecyclerView recyclerView = (RecyclerView) findViewById(R.id.your_layouts_recycler_view); Oct 15 17:02:55 with me? Oct 15 17:02:58 simple enough Oct 15 17:03:03 nothing really to "convert" Oct 15 17:03:14 i'm following, let me try and i'll get back to you, appreciate the help :) Oct 15 17:05:25 Faizan: ok, you here? Oct 15 17:05:28 Yeah Oct 15 17:05:46 so, I can only imagine a couple of scenarios that might cause this Oct 15 17:06:12 one, your OpenCV/Camera code is only updating the service at 20fps.. so thats all your getting Oct 15 17:06:21 Napalm it sais Class 'Activity001' must either be declared abstract or implement abstract method 'OnStartDrag(ViewHolder)' in 'OnStartDragListener' Oct 15 17:07:03 yea, so implement it Oct 15 17:07:14 cant you read lines 48 to 51 Oct 15 17:07:15 :P Oct 15 17:07:18 right Oct 15 17:07:20 Faizan Oct 15 17:07:26 so you got point one Oct 15 17:07:32 hexagonSun_: Alt+Insert to implement in Android Studio Oct 15 17:07:37 yeah currently researching some information on that Oct 15 17:08:00 I'm fairly sure I was getting 30fps prior to recording the surface, but I'm not sure how accurate OpenCV's fps counter is Oct 15 17:08:08 I'm using VLC right now Oct 15 17:08:21 Faizan: two, you might have contention on the surface lock, your java camera code is trying to update it more than the surface can be read by media-recorder.. but thats pretty slim Oct 15 17:08:22 Thanks :) Oct 15 17:08:23 why not profiling and find the bottleneck Oct 15 17:08:28 i bet you do lot of stuff on the ui thread Oct 15 17:08:41 Not much on the UI thread actually Oct 15 17:08:54 profile anyway, so you know where it is slow Oct 15 17:09:08 Sorry for my ignorance, what do you mean by profiling? Oct 15 17:09:13 :| Oct 15 17:09:20 according to all your story about recording since few days, i believe you're doing something wrong Oct 15 17:09:34 That is possible Oct 15 17:09:52 Faizan, https://developer.android.com/studio/profile/index.html Oct 15 17:10:23 also if you barely reached 30FPS, and now you added some additional "stuff to do", it probably makes sense this additional overhead is lowering your fps Oct 15 17:10:31 "Note: While profiling an app, you should disable Instant Run" Oct 15 17:10:37 Faizan: i'd also recommend you add a debug log line to your JavaCameraView that will get the FPS from the camera.. https://developer.android.com/reference/android/hardware/Camera.Parameters.html#getPreviewFpsRange(int[]) Oct 15 17:10:44 I wonder if that can be, I've been using instant run Oct 15 17:10:48 Faizan: you can also try https://developer.android.com/reference/android/media/MediaRecorder.html#setCaptureRate(double) Oct 15 17:11:24 right okay Oct 15 17:11:50 hey Napalm Oct 15 17:12:02 hey Oct 15 17:12:48 i keep instant-run disabled due to the little benefits but all those bugs it brings Oct 15 17:13:15 i doubt your perf issue comes from instant-run anyway, Faizan Oct 15 17:13:45 one of the first thing to do is to identify where the bottleneck is, could not repeat enough Oct 15 17:14:29 Yeah Oct 15 17:14:36 I'm not doing anything with the frame currently Oct 15 17:14:58 i swear IR is going to make my computer catch on fire Oct 15 17:15:00 nah, copy/paste someone else's code, modify it until does what you want and doesn't appear to crash, ALL GOOD Oct 15 17:15:14 lol Oct 15 17:15:27 if i leave machine for a while , and IR was doing its thing then I come back with cpus @ 100% fans going Oct 15 17:15:38 isn't that what programming is zinx? Oct 15 17:15:39 :D Oct 15 17:15:58 https://plus.google.com/u/0/+ChristianRinc%C3%B3nGtz/posts/eEQqeZqqMuo :') Oct 15 17:15:58 Faizan: one would think so observing some of the stuff made these days :P Oct 15 17:16:11 all those g+ communities are crippled with post like that Oct 15 17:16:25 some g+ communities are cancer Oct 15 17:16:27 that made me give up on answering anymore, barely able to laugh at it Oct 15 17:17:04 Okay so the bottleneck appears when I actually start recording the surface Oct 15 17:17:26 prior to that, when I'm just previewing it, it shows around 28 frames being updated a second Oct 15 17:17:35 Faizan: what do you plan to do with it? Oct 15 17:17:35 as soon as recording starts, that drops to 18 Oct 15 17:17:39 because recording is intensive Oct 15 17:18:12 The thing also is because I'm recording a surface, I have 2 surfaces going Oct 15 17:18:19 oO Oct 15 17:18:20 one for the preview and one for the recording Oct 15 17:18:24 I read it in this post: Oct 15 17:18:25 sec Oct 15 17:18:57 http://stackoverflow.com/questions/29538015/android-record-video-from-surfaceview-using-mediarecorder - fadden's answer Oct 15 17:20:38 So i guess I found my bottleneck :D Oct 15 17:23:22 Faizan: you already do approach #1 Oct 15 17:25:07 Napalm: I followed something along the lines of http://stackoverflow.com/questions/28663864/recording-live-opencv-processing-on-android/33074249#33074249 (SimonFojtu's post), so I'm rendering to 2 canvases Oct 15 17:25:31 whaaaaa Oct 15 17:25:35 :| Oct 15 17:25:43 Yeah.. Oct 15 17:25:47 why? Oct 15 17:25:49 lol Oct 15 17:25:52 Nothing else worked for me Oct 15 17:25:54 this sounds crazy Oct 15 17:26:06 you are crazy Oct 15 17:26:10 and in this last post answer, lot of computation which could have been pre-computed done every frame Oct 15 17:26:19 would not trust. Oct 15 17:26:46 adq: exactly Oct 15 17:27:00 Without adding that extra code I kept getting a stop failed error in my MediaRecorder, I guess because it wasn't initialized properly Oct 15 17:27:14 I've never recorded from Surface so it's obvious I wasn't clear how to do it Oct 15 17:27:42 no one is blaming you Faizan, no worry Oct 15 17:27:57 it's probably not a trivial task Oct 15 17:27:58 http://pastebin.com/3vctmjji I get that stack trace if I remove the code that renders on the second canvas Oct 15 17:28:14 but you have to be more pragmatic and methodic when approaching a problem to solve Oct 15 17:28:22 it's not specific for this recording perf issue Oct 15 17:28:30 Yeah Oct 15 17:28:47 I've been at this since Tuesday I guess I just followed the low performance option without thinking about it Oct 15 17:28:58 I still don't know how I'd do it without rendering to the second canvas Oct 15 17:29:23 Faizan: pastebin your JavaCameraView Oct 15 17:29:40 its CameraBridgeViewBase that deals with the rendering Oct 15 17:29:42 I'll pastebin both Oct 15 17:29:52 :| Oct 15 17:30:04 also check your PMs Oct 15 17:31:00 http://pastebin.com/tSQJEghf JavaCameraView Oct 15 17:31:18 http://pastebin.com/f1CtnVFb CameraBridgeViewBase Oct 15 17:33:07 Napalm, Faizan i love you guys, it worked! :D Oct 15 17:33:24 That was all Napalm, I only told you an android studio shortcut :D Oct 15 17:33:56 i was feeling kinda frustrated but i'm learning so much :D Oct 15 18:33:53 hi fellas Oct 15 18:34:16 anyone can give me a help when compilling a build? Oct 15 18:34:36 State your issue, maybe someone can/will help Oct 15 18:35:05 Just make sure you include any relevant code/error messages Oct 15 18:35:07 i'm having issues with the ninja_wrapper which tells me that is a unknown target Oct 15 18:35:34 ninja: error: unknown target shamu Oct 15 18:36:05 Are you trying to build AOSP? Try #android or #android-root Oct 15 18:48:16 hi I am using android studio to work on a tesseract project. I have built the project and imported everything and it seems like it went ok...However I dont know how to get the option to build an apk to appear any directions anywhere on this step? Oct 15 18:49:44 What is a tesseract project? Oct 15 18:50:33 character recognition Oct 15 18:50:51 transhuman_: then maybe it's just a library? Oct 15 18:51:30 orbyt_: OCR etc. Oct 15 18:53:26 yes its ocr Oct 15 18:56:28 siloxid tesseract is just a library but I also have Simple-Android-OCR in there as well which points to the tesseract libary. I guess what I am asking is how do I get Simple-Android-OCR to appear to be a android project that is capable of being turned into an apk...any directions on this step...help is appreciated! Oct 15 18:57:21 all i see is a make module and analyze apk option Oct 15 19:12:36 take care friends :p Oct 15 19:18:25 I have hardcoded references to API's, for example firebase on my code...is that unsafe? Oct 15 19:18:42 should I handle my Api url's in a safer way? Oct 15 19:45:42 how many of you use slack for desktop? Oct 15 19:45:48 vs web their web app Oct 15 19:47:32 orbyt, this channel is dead Oct 15 19:54:43 j4f-shredder: ? Oct 15 19:55:02 it's saturday, is getting hard to get answers Oct 15 19:55:27 do you know if it's better to get user's location with a service or directly into the activity? Oct 15 19:55:47 location services is callback based Oct 15 19:55:57 Just because someone doesnt answer your question doesnt make the channel dead j4f-shredder Oct 15 19:55:59 why would you need a service? Oct 15 19:57:01 myke cause maybe you need to get user location when the user closes the app right? Oct 15 19:57:23 why would that be different that last location? Oct 15 19:57:27 than Oct 15 19:58:06 cause you can send notifications to the user when he is close to something and the app is closed Oct 15 19:58:13 what do you think about that? what's your advice? Oct 15 19:58:26 ok but then your q is different Oct 15 19:58:31 it seems that half people make it one way and half the other Oct 15 19:58:55 if you want to send notifications with the app closed it has to be a service Oct 15 19:59:06 so the service has to run everything, including handling location callbacks Oct 15 19:59:17 will that suffice on the manifest? Oct 15 19:59:27 I've already written the service Oct 15 20:00:42 i guess i don't really understand the question Oct 15 20:00:55 you could have the service and app get location separately, or you could only have the service do it and pass it to the app Oct 15 20:01:33 yes Oct 15 20:01:33 to do notifications when phone is in standby you need a service Oct 15 20:01:36 I want the second one Oct 15 20:01:40 ok Oct 15 20:01:52 then you just code it however you're dealing with interaction between app and service Oct 15 20:01:58 i can make an intent to that service and then put a listener on the activity Oct 15 20:01:59 right? Oct 15 20:02:05 and with a case catch the result Oct 15 20:02:12 or post a runnable Oct 15 20:02:30 but yeah Oct 15 20:02:36 ohhh you can do id with a different thread Oct 15 20:02:40 that's better right? Oct 15 20:02:48 cause otherwise the intents are sync Oct 15 20:03:07 that may not be a problem for consumer-producer relationships Oct 15 20:03:17 only if there's a potential for deadlock Oct 15 20:03:31 so in this case Oct 15 20:03:34 what would you use? Oct 15 20:03:39 intent or runnable? Oct 15 20:03:41 are you just talking about the location? Oct 15 20:03:45 yes Oct 15 20:03:47 just that Oct 15 20:04:42 let me ask you one thing, which format android handles?...I have a postgres database with postgis and it handles GeoPoints() I think I need lat longitude format Oct 15 20:05:07 cartesian coordinates format Oct 15 20:05:21 cause I send a request to the server in lat/42312312/long/312312 format Oct 15 20:05:50 ah yeah i haven't messed with that, just getting locations Oct 15 20:06:33 yeah, but do you remember Oct 15 20:06:37 which formats android use? Oct 15 20:06:45 4564654654,213213213 Oct 15 20:06:48 lat/long is all i've used Oct 15 20:06:50 that would be ideal Oct 15 20:06:53 perfect Oct 15 20:06:56 that's what I need Oct 15 20:06:59 thank you very much sir Oct 15 20:07:03 np Oct 15 20:07:05 https://developer.android.com/guide/components/services.html Oct 15 20:07:08 this may help Oct 15 20:07:12 you probably want a bound service Oct 15 20:07:23 no reason to launch it from intents, it should run as long as your app is around Oct 15 20:07:32 bound service is a respwanable service? Oct 15 20:07:36 no Oct 15 20:07:39 it runs the whole time Oct 15 20:07:48 i read about services that resurrect when you kill them Oct 15 20:07:50 which is what you want if the service does all the location handling Oct 15 20:07:54 yes you can do that too Oct 15 20:07:58 yes Oct 15 20:07:59 but in this case why? Oct 15 20:08:02 that's what I want Oct 15 20:08:10 the bound service Oct 15 20:08:14 since the service would be getting location updates all the time Oct 15 20:08:15 yea Oct 15 20:08:23 and when I close the app Oct 15 20:08:31 that bound service will stay alive? Oct 15 20:09:42 no it goes away when the app does, hence bound Oct 15 20:10:23 Yeah, I'm reading that Oct 15 20:10:32 so how do I do for that bound service to be alive when the app dies Oct 15 20:10:33 ? Oct 15 20:10:58 actually nmind bound services stick around Oct 15 20:11:34 what? Oct 15 20:12:05 I jjust need a hybrid between the respawnable service and the bound service Oct 15 20:12:09 I need to do both Oct 15 20:15:48 Ok strange thing. I have 2 versions of app vA/vB(the latter one). User saves some data in vA (serialized object http://pastebin.com/sXahJVJ6) (test whether data are saved by reopening app). Installs version vB - open app data from vA are present. Oct 15 20:16:51 Doing this with signed, production ready versions, ends up with with no data in vB Oct 15 20:17:05 What can be causing this behaviour? Oct 15 20:17:38 Why am I loosing data between production versions and not with debug versions? Oct 15 20:19:28 one hint - (I am going to test) production vA was build with gradle 2.2.0 Oct 15 20:32:39 yes it was it Oct 15 20:37:23 https://i.ytimg.com/vi/-C0omBeNy3A/hqdefault.jpg Oct 15 20:47:20 ok - different conclusion - apk build with gradle 2.1.3 verA, with some user data, updated to verB buld with gradle 2.2.1 has like no data in it? Oct 15 20:48:05 What can I do to protect users data? Oct 15 21:03:33 so it seems to me that problem is with way the release is build Oct 15 21:06:39 hi, how do i restrict the number of archs built in externalNativeBuild ? I'd like to have a quicker edit/build/run cycle while developing, and only build for other archs in special occasions. Oct 15 21:12:29 matju: ndk.abiFilters ? https://developer.android.com/studio/projects/add-native-code.html "Specify ABIs" section Oct 15 21:24:07 Guys im thinking about (well already started) building a desktop app, but am considering just doing a web app Oct 15 21:24:19 which of the two do you usually prefer Oct 15 21:30:23 orbyt_: I don't like web Oct 15 21:30:45 por que? Oct 15 21:31:03 Melatonina, have you seen my problem?... what ver of gradle do you use, pls? Oct 15 21:31:06 I've made an app with an empty MainActivity with a short TextView. I want to make a secret way of accessing another Activity. Suggestion for an easy to implement solution that only works for those in the know? :D Oct 15 21:32:13 Perhaps add a tiny, 'invisible' button and a specific tap pattern? Oct 15 21:32:16 bolovanos: sorry, I just use whatever gradle Android Studio says I should use. I'm using the very latest version but I don't know which one it is Oct 15 21:32:52 Melatonina, and r u in phase of doing signed apk? Oct 15 21:33:31 orbyt_: because web it's still designed for documents. Everything else is a hack. There are no web application, just very complex hacks. Oct 15 21:33:44 That is retarted Oct 15 21:33:47 but ok Oct 15 21:33:55 orbyt_: thanks for insulting me Oct 15 21:34:19 bolovanos: I just started to sign APKs Oct 15 21:34:37 ? I didnt lol Oct 15 21:34:37 guys calm down Oct 15 21:34:54 Melatonina, great - would you please do some small test for me? Oct 15 21:35:07 orbyt_> That is retarted Oct 15 21:35:26 bolovanos: only if it's very simple. Oct 15 21:35:35 depends Oct 15 21:35:47 one more question - do you save data in your app? Oct 15 21:36:18 for example this way - http://pastebin.com/sXahJVJ6 Oct 15 21:37:49 bolovanos: most of the times I use shared preferences or a local or remote database Oct 15 21:38:25 good point I may test wheter shared preferences are affected to Oct 15 21:38:46 if yes - that test would be meaningful Oct 15 21:45:43 Melatonina, ok - shared pref. stays untouched Oct 15 21:45:47 Melatonina, works ! thanks ! Oct 15 21:46:51 in case where those saved data does not Oct 15 21:47:17 Melatonina, which means - that test would not help, anyway thank you for hint :) Oct 15 21:49:08 matju: good. I had no idea what I was talking about. I just googled "externalNativeBuild" and scrolled that page until I read something that looked related to your problem. I never compiled anything native on Android. Oct 15 21:54:21 Melatonina: i had been less lucky. More generally, for many other Android problems, i've stumbled upon too many irrelevant problems, unanswered questions, incomplete answers, complete answers that imply knowledge that I don't have, obsolete answers (work only in old versions of the software), etc. Oct 15 21:56:53 is there a way to make Android Studio show errors "directly" in the editor window, as in "not a tooltip" ? I'd like something that does not disappear when I just move my mouse, such as in XCode for example. Oct 15 21:57:02 matju: I wasn't saying you had to google instead of asking. I know that frustration. I was just amused to see how somebody can answer in a useful manner to a question he didn't know anything about just by googling and searching a text without using much intelligence. I guess that's how Siri works. Oct 15 21:59:36 Melatonina, would you pick lottery numbers for me? Oct 15 22:01:25 Melatonina: I mean, maybe it wasn't that hard for that case, it's just that my general threshold of "let's use #android-dev" is lowering and highly correlated with decreasing hope. Oct 15 22:06:25 Android documentation is a mess and everybody knows it. Documentation about programming is poor in general. I guess software evolves so rapidly that this knowledge is worthless and that instead of pouring money into writing good documentation it's economically better to just transfer that cost to the cheap mass of programmers Oct 15 22:24:17 Melatonina: never compared it to Windows Phone or iOS documentation myself Oct 15 22:24:38 Melatonina: it's certainly better than most documentation for the desktop stuff I use, though. Oct 15 22:38:37 hi if my android studio keeps on building an empty apk package but it compiles without error except when I run apk build with progard it says java.io.IOException the output jar is empty did you specify the proper -keep options what is the likely cause my project contains 2 libraries and one app? Oct 15 22:39:15 s/cause my project/cause, my project Oct 15 22:39:24 punctuation Oct 15 22:41:20 hi if my android studio keeps on building an empty apk package but, it compiles without error except, when I run apk build with progard. When I run it with progard, it says "java.io.IOException the output jar is empty did you specify the proper -keep options" what is the likely cause, my project contains 2 libraries and one app Oct 15 22:46:24 transhuman_: you are without hope :D Oct 15 22:47:54 heh, proguard *. * Oct 15 22:49:14 I had a bug involving that thing, and made the sme fix it Oct 15 23:07:23 hopefully Melatonina that you never start on a new venture...someone might not help they might just say "you are without hope" Oct 15 23:10:24 transhuman_: I've been told that. In this case I was only referring to your attempt to add punctuation to your message and I was joking. I didn't mean to discourage you and prevent you from doing what you are doing. Oct 15 23:17:02 Then, my apologies--I miss understood! Oct 15 23:26:38 Hi, I'm using XStream to save content to a .xml file, but I don't know where to look for this text file once my input has been saved to it? I'm just trying to make sure it's the right content, where should I be looking to find this file created by Android Studio? Oct 15 23:35:12 created by AS? not a runtime tool? maybe using emu? Oct 15 23:37:46 Java in Android does not support lambda functions yet? Oct 15 23:49:19 Sorry not by AS by the emu, yeah capella-5x Oct 15 23:53:25 hi folks. i'm using the new(ish) gradle/cmake system available in android studio 2.2. i'm having trouble building just one configuration type with gradle. i want to just build armv7a|release, but it seems that armv7a|debug and other architectures get triggered as well, especially for the cmake part of the build. Oct 15 23:53:57 does anyone have any experience dealing with this problem to allow for gradle to be more focused in its build Oct 15 23:54:22 i'm running ./gradlew appname:assembleArmeabi-v7aRelease Oct 16 01:29:25 hello im creating an app that needs to update a textview every so often its a streaming app with now playing on it, but i need it so i can have the current song playing showing, it shows the first song but it dont refresh after that, http://pastebin.com/CFPhEMfJ this is what i have but cant figgure out why it wont load up Oct 16 01:31:10 velus: Could you rewrite your sentence in a language that is understandable by humans, possibly including proper punctuation and capitalization? Oct 16 01:34:29 I am creating a app for a radio station and to stream there music over the app, i have most of it working, it streams the sound, it also shows what is playing when it starts, but it don't refresh the what is playing, it is only showing the first song. this is the code to display the title of the song http://pastebin.com/CFPhEMfJ Oct 16 01:37:11 i am looking in the debug console and its saying the new title but not on the app though? Oct 16 01:39:24 hmm think i know what is up i will check now Oct 16 01:42:15 ok that didnt work Oct 16 01:50:31 velus: You write code just like you write in English. Oct 16 01:51:45 what do you mean? Oct 16 01:52:09 that code i got from a site, it does most of what i need but it aint refreshing the ttext view Oct 16 01:54:07 Melatonina, im not being funny but will you be able to help me or just criticise me all the time. Oct 16 01:55:45 velus: I don't know that kind of API so I can't help you. My critiques to you have been useful because now your problem is understandable and maybe someone else will help you Oct 16 01:58:35 his English was fine, but I can't help either Oct 16 02:01:29 what does the timer do? Oct 16 02:26:32 Oh joy. Niantic gets to be the first people get catch hell from Google for ignoring notification guidelines Oct 16 02:35:37 Melatonina, do you know much about refeshing ? Oct 16 02:36:23 i have been reading the code and relised that the title_artist gets updated a lot but i need to make the set section update Oct 16 02:42:15 reading code is good **** ENDING LOGGING AT Sun Oct 16 02:59:58 2016