**** BEGIN LOGGING AT Fri Jan 06 03:00:01 2017 Jan 06 03:04:06 Hi, I am having trouble with data binding classes not getting generated Jan 06 03:04:48 nma83: hi. I'm having troubles too. Jan 06 03:05:03 which results in 'org.owntracks.android.BR not found' errors, for instance Jan 06 03:05:31 I know these are caused by issues in the XML, but current build log shows nothing related to XML files Jan 06 03:05:41 how to narrow down the cause? Jan 06 03:05:58 no idea, sorry Jan 06 03:09:00 I have an activity with Toolbar, TabLayout and ViewPager. One of the fragments contains an horizontal RecyclerView. Now, you know that with TabLayout you can collapse the Toolbar with a swipe. If the Toolbar is not collapsed the RecyclerView doesn't shrink vertically and it's not displayed completely. Only when the Toolbar is collapse I can see the whole items. What am I doing wrong? Jan 06 03:09:49 In the portrait layout, when then RecyclerView is vertical, I don't have this problem Jan 06 03:10:46 dragorn ron_frown http://newatlas.com/intel-compute-card-internet-of-things/47252/ Jan 06 03:12:12 hey TacticalJoke, yeah I think marginTopPercent is a little broken Jan 06 03:12:42 Hey guys, I am currently studying the source code of android adb, but I don't get what fdevent is all about, anyone who is familiar with that? Jan 06 03:12:43 bubbley, glad you got it sorted Jan 06 03:12:53 Tricknology: Ahh, I've not used it yet. Jan 06 03:13:10 anyone in here besides JakeWharton use Kotlin regularly? Jan 06 03:13:54 TacticalJoke, when you do, try to set left/right + top/bottom Jan 06 03:14:05 i did left + right + top and top didn't work Jan 06 03:14:38 shows up in the layout editor though, oddly enough.. just not on the 5.0 device.. no 6.0 to test.. But regardless, I'm using appcompat Jan 06 03:15:25 com.android.percentcompat or something.. anyway check it out it's a neat feature but idk, behaves funny Jan 06 03:15:43 it's in PercentRelativeLayout Jan 06 03:17:37 JonSu: there is no much talk about the internals of Android or the platform tools here, actually. Jan 06 03:18:23 Melatonina: do you know of an android-centered Kotlin channel by any chance? Jan 06 03:20:23 Tricknology: :) I guess there is no better channel than this one. But I just read people mentioning it and not much more here Jan 06 03:23:14 Melatonina: where can I get help then? Jan 06 03:24:37 I'm exploring it, trying to see if it kicks off or not.. heh Jan 06 03:25:18 JonSu: perhaps message boards? Idk, haven't looked much into the internals unless I come across a problem Jan 06 03:25:58 I played with it a bit but I'm still learning lots of things about Android so I didn't want to add another level of complexity. I'll get back to it at a later time Jan 06 03:26:13 I've been way down into the C code looking for an issue.. bat country, but fdevent Jan 06 03:26:31 but from what I know of linux and C, fd is a file descriptor Jan 06 03:26:42 so maybe an event from a read/write operation.. a socket perhaps? Jan 06 03:27:29 Heh yeah good idea I guess. When I started Android I barely knew Java Jan 06 03:27:52 I guess Kotlin makes more sense if you know Java/C# and PHP Jan 06 03:28:09 JonSu: from the developers, maybe? I don't know, sorry. Jan 06 03:28:25 JonSu: Check what I was saying about fd ^^ Jan 06 03:28:30 just a guess really Jan 06 03:34:11 Gotcha. Jan 06 05:01:28 Android Studio has a new NDK feature which makes it easy to integrate C++ code. Anyone know how to use it? Jan 06 05:03:09 I want to do http://www.learnopengles.com/calling-opengl-from-android-using-the-ndk/ but using Android Studio instead of Eclipse Jan 06 05:30:18 tp43_, look at the hello-gl2 program Jan 06 05:37:40 Ologn, at learnopengles? Jan 06 05:38:24 https://github.com/googlesamples/android-ndk/tree/master/hello-gl2 Jan 06 05:38:43 Ologn, thx Jan 06 05:39:02 tp43_, also, Android uses OpenGLES, not OpenGL Jan 06 05:39:55 Ologn, it works for me, I can compile using -lGLES2 on my computer, but I guess emulator will do something else, not sure what you mean Jan 06 05:41:25 When I create a cpp file, be it .c or .h, it show up at the top when I click >src>, but not in the left pane under cpp Jan 06 05:42:55 I don't know, all my NDK/OpenGLES stuff was done from the command line, haven't tried new AS functionality yet Jan 06 05:43:50 Ologn, command line? how? do you have a link? I'd rather type in another editor, but this alt-enter importing is awesome in studio. Jan 06 05:44:44 command line like doing gradle builds of any sort from Android Jan 06 05:45:01 Ologn, never mind, it will be too complicated for me, too much to learn. The studio makes things easy, I should stick with it for now. Jan 06 05:52:18 is there a quick way to just import this project from github? Jan 06 05:55:41 tp43_, https://developer.android.com/samples/index.html Jan 06 05:57:18 Ologn, thx Jan 06 05:59:53 says install sdk build tools 23.0.2, what build tools was I using since? Jan 06 06:03:24 Nope, yeah, sdk build-tools doesn't mention any version, anyway it builds now, that sample code that required 23.0.2, I just click go ahead and install it Jan 06 06:15:12 writing a func to convert a map to a bundle, anyone see anything wrong with this: https://nopaste.me/view/266461c2 Jan 06 06:19:40 eljimmy: yea, what has parcel got to do with anything? Jan 06 06:20:21 either you parcel it up and put that in your bundle, or you just put the entries directly in the bundle Jan 06 06:22:02 eljimmy: you there? Jan 06 06:22:07 hm Jan 06 06:22:14 well i can't be an object into a bundle though Jan 06 06:22:21 er, put in object into* Jan 06 06:22:28 god i can't type Jan 06 06:22:35 **can't put an object into a bundle lol Jan 06 06:22:43 for good reason Jan 06 06:22:49 and writeValue doesnt mean you can anyway Jan 06 06:23:14 are you trying to put any of your models just into a Bundle? Jan 06 06:23:15 My code has printGLString("Version", GL_VERSION); but where can I read that print out? Jan 06 06:23:30 ahh, no, the objects are strings or numbers. Jan 06 06:23:37 right Jan 06 06:23:43 so why not write them as those? Jan 06 06:23:55 eljimmy: here, let me show you something Jan 06 06:24:03 i guess i could do instanceof checks Jan 06 06:24:08 na Jan 06 06:24:37 aaah the Android Monitor Jan 06 06:28:08 so the emulator is using my desktop's opengl, cause GL Version = OpenGL ES 2.0 (2.1 Mesa 10.3.2) Jan 06 06:35:50 maybe this is better? https://nopaste.me/view/546d254d#L6 Jan 06 06:37:29 sure but parcel has writeMap Jan 06 06:37:41 also p.readBundle() tries to read a bundle from the parcel Jan 06 06:37:46 thats not what you want Jan 06 06:37:51 eljimmy Jan 06 06:39:05 eljimmy: this is probably what you want https://hastebin.com/zuvasujoli.java Jan 06 06:39:57 all seems really pointless Jan 06 06:40:08 since HashMap implements Serializable Jan 06 06:41:58 eljimmy: you there? Jan 06 06:42:01 yeah Jan 06 06:42:13 so you see the above code? Jan 06 06:42:15 get it? Jan 06 06:42:28 well anyways, if your using HashMap then you can do this https://hastebin.com/asuvehuqid.java Jan 06 06:42:39 dont know why you wouldnt just do it directly Jan 06 06:43:35 i guess that is the simplest approach eh Jan 06 06:44:27 not sure if it'll work for what im doing though. Jan 06 06:48:07 Napalm you get 5 minutes in penalty box Jan 06 06:48:13 trying to log events to firebase analytics. wouldn't serializing the map directly into the bundle be different than using putString on each entry/value from the map? Jan 06 06:48:54 Napalm hows it going Jan 06 06:49:39 eljimmy: try and see Jan 06 06:49:41 hey g00s Jan 06 06:51:26 Napalm doing anything new & cool? new apis, techs, etc ? Jan 06 07:26:36 Guys and gals, question: I'm working on this existing project. The guy who set it up checked his .idea directory into git. Jan 06 07:26:45 I'm wondering how necessary that is. Jan 06 07:27:13 That is, if I deleted it from the git repo, does that add any extra grief to get the project building on a new machine? Jan 06 07:29:16 Also, how much is it going to hurt *me* to not have .idea revision-tracked, i.e. if something gets weird and I have to start over, or undo changes to stuff in .idea? Jan 06 07:33:48 opposite puff Jan 06 07:33:54 .idea hurts new machines, remove it Jan 06 07:34:04 well actually .iml files hurt it Jan 06 07:34:15 I think .idea is in the default gitignore for some reason Jan 06 07:34:21 so maybe it is not that harmful Jan 06 07:34:31 but it is definitely not needed Jan 06 07:35:12 missingno: Thanks. Jan 06 07:35:48 .idea is in (default) Jan 06 07:35:53 .gitignore Jan 06 07:36:06 Ashiren: Hm, then why is git diff showing differences in .idea files? Jan 06 07:36:57 the guy has failed .gitignore Jan 06 07:37:14 Ashiren: wait, default values probably are irrelevant if there's a custom .gitignore, right? Jan 06 07:37:23 Weirdly, the .gitingore in this project has several specific .idea-specific rules. Jan 06 07:39:35 Ashiren: The #git guys disagree about default values for .gitignore... or did you mean a value that Android Studio puts into .gitignore by default ? Jan 06 07:40:39 yes Jan 06 07:41:15 well there is "no" default .gitignore. i assumed the .idea as well the build/ should be ignored by android studio's generated .gitignore Jan 06 07:42:28 Well, there's a .gitignore here, and I added ".idea/" as a rule and the .idea changes are still showing up. Hm. Jan 06 07:53:31 why does my zenfone 5 lollipop version go to sleep when turning mobile data on Jan 06 08:42:56 i very recently learned that AsyncTask is pretty ... not great for non-blocking io on android. what is currently the recommended way to do non-blocking web requests in android apps that can actually handle many (10-50) connections concurrently? Jan 06 08:43:26 (most stuff i can find via google seems to be ~5 years ago, so i suspect not reflective of the current state of things) Jan 06 08:48:14 Does anyone know where to find the source code behind Android's core java library functions, e.g., things like java.lang.*? Jan 06 09:08:37 I found what I was looking for: https://android.googlesource.com/platform/libcore/+/master/ojluni/src/main/java/java/ Jan 06 09:08:44 Mithaldu: THis looks neat: http://loopj.com/android-async-http/ Jan 06 09:09:45 puff: dang, that does indeed look nice Jan 06 09:09:55 Mithaldu: I'm curious what the problem is with AsyncTask. Jan 06 09:10:25 AsyncTask is limited to number of concurrent tasks Jan 06 09:10:32 Mithaldu: Ah, sorry, re-reading your question. Right. Jan 06 09:10:45 on my phone (xperia compact z5), it's limited to 5 Jan 06 09:10:50 and to make things worse Jan 06 09:11:13 once you DO hit the 5, any further queued requests seem to delay the first 5 even longer Jan 06 09:12:14 Mithaldu: That's.. weird. Jan 06 09:12:31 it's a side effect of asynctask simply not being meant for long-running tasks Jan 06 09:12:44 Mithaldu: Did you try fiddling with the threadpoolsettings? Jan 06 09:12:56 also because the default manager for it works through things sequentially maybe Jan 06 09:13:15 e.g. it won't let later requests complete before the earlier ones Jan 06 09:13:31 i looked at trying to set up a custom Executor Jan 06 09:13:48 but due to a lack of examples and the docs being plain shit, didn't have any joy Jan 06 09:14:11 hello Jan 06 09:14:18 The corePoolSize defaults to CPU cores + 1 Jan 06 09:15:02 I've got a widget composed by a linearlayout, and inside it there are an imagebutton and an imageview. Using this method, the bottom imageview (stripe) is not displayed anymore Jan 06 09:15:04 Which I guess might make sense, I don't know phone hardware that well but on early multiprocessor/multicore machines it was a truism that you're really only effectively going to get as many threads as you have CPUs/cores. Jan 06 09:15:08 cristian_c: Hello. Jan 06 09:15:23 widget.xml: http://pastebin.com/w2gTPH5m Jan 06 09:15:32 puff: hi Jan 06 09:15:38 puff: the thread thing is correct, but also completely meaningless if you're doing io-bound things :P Jan 06 09:15:49 How could I change layout in order to make the imageviw appearing again without inserting new bad effects? Jan 06 09:15:54 *imageview Jan 06 09:16:09 any ideas? Jan 06 09:16:10 Mithaldu: Okay, so just up the core pool size... hm, can you do that iwth AsyncTask? Jan 06 09:17:50 Ugh, no, you can't, that's private static final. Jan 06 09:18:08 Mithaldu: You could just get the source for AsyncTask and make a custom version. Jan 06 09:18:08 puff: i tried exe = new ThreadPoolExecutor(1, 128, 10, TimeUnit.SECONDS, new LinkedBlockingQueue()); task.executeOnExecutor( exe ); Jan 06 09:18:30 (with more stuff inbetween etc. and the executor being one instance for all tasks) Jan 06 09:18:34 and it made no difference Jan 06 09:19:19 i wish the android docs were as well written as the stuff on CPAN Jan 06 09:20:14 puff: also modifying asynctask in that way is the kind of effort i'd rather leave to people who know what they're doing :P Jan 06 09:21:23 That's interesting: http://stackoverflow.com/a/205427/1813403 Jan 06 09:21:32 Mithaldu: Yeah. Jan 06 09:22:08 that lib you linked looks perfect though, if it works :) Jan 06 09:22:23 Mithaldu: I'm not sure how hard/easy it would be, I was suggesting literally copying the entire source of AsyncTask into a file named, for example, MithAsyncTask.java, changing the class name and constructor names to match, and then editing the corePoolSize line. Jan 06 09:22:35 Good luck with that lib, let me know how that goes, looks really handy. Jan 06 09:23:02 Mithaldu: I would assume that the copy & tweak approach would be pretty straightforward, but I haven't tried it, so who knows. Jan 06 09:23:10 hrm Jan 06 09:23:19 i guess i could try that for laughs Jan 06 09:23:41 and sure, will poke you when i know more (could be a few days though :) ) Jan 06 09:26:02 Cool. Jan 06 09:50:06 Mithaldu: As it turns out, the code I'm debugging/deciphering is using an AsyncTask. Jan 06 09:50:19 Mithaldu: as an inner class, for reasons I'm not sure. Jan 06 09:50:36 i don't know java well enough to know the significance of that Jan 06 09:54:25 Mithaldu: Mainly you do it so the inner class can access protected members of the outer class. I've never really cottoned to that, myself. I mean, why not just give the outer class accessor methods that the inner class can use to access those variables? Jan 06 09:54:59 Which is kinda something I was going to ask... is there some android-specific reason not to do that? Jan 06 09:56:08 Crap, Android Studio doesn't have "extract class" as a refactoring operation. Jan 06 09:56:14 Wish it did :-) Jan 06 09:57:13 Hm, maybe Extract Delegate. Jan 06 09:57:47 Dangit, it is, but not allowed on non-static innner classes. Sigh. Jan 06 09:57:59 This thing has a 3700 line Activity class. Yeesh. Jan 06 09:58:38 And that inner class is the only inner class. Jan 06 09:59:37 Mainly it's a networking class, it maintains the network connection between the app and the drone and updates variables on the Activity as the drone's state changes (lat, long, etc). Jan 06 10:00:00 So that's a reasonable use of a thread, but I'm wondering if there's some android nuance that makes having it in the Activity as an inner class a good idea. Jan 06 10:02:53 puff: i see, and yeah, separating it more seems sensible. i think anyone making it an inner is just doing so to avoid typing Jan 06 10:03:18 then again, most android code i've seen is amateurish at best Jan 06 10:05:56 Mithaldu: So far, yeah...I think Android's whole scheme kind of invites that. Jan 06 10:06:10 Mithaldu: In a lot of ways it's clever and elegant but... kinda falls short. Jan 06 10:06:40 So I'm manually extracting the class, which means now I have to go find 100 errors and fix them. Jan 06 10:54:44 Any way to get active keyboard from adb? Jan 06 10:55:00 Can't see anything in ime list -a that would indicate which one is active Jan 06 11:00:19 Can't find where the source code for ime is either Jan 06 11:00:29 Anyone care to drop a link? Jan 06 11:13:32 <_0xbadc0de> hi Jan 06 11:13:42 <_0xbadc0de> Is there any channel for information security? Jan 06 11:20:49 Found the ime.java source Jan 06 11:36:14 Is there a way to make a global ArrayList that is accessible to all my activities? Jan 06 11:44:13 make it a static member of some class Jan 06 11:44:56 or put the data in shared preferences or in sqlite db Jan 06 11:45:27 i have it in the db. but i have a service that handle all the db connections Jan 06 11:45:38 but i dont wan to be allways calling the db Jan 06 11:45:45 What was the question? Jan 06 11:45:58 so i need a place to store some lists Jan 06 11:46:09 what i will be acessing a lot of times Jan 06 11:47:16 make it a static member of some class Jan 06 11:47:21 I'm experimenting with an AppState class that holds all state across Activities and such. I instantiate it from App.onCreate() and I can access it with App.getState() and then call e.g. App.getState().getTheList() Jan 06 11:48:23 When I am making a list item like a cardview. Should I always wrap it in A frame layout or something as the root element in the xml file? Or is it fine to just do the cardview as the root Jan 06 11:48:27 That way my App isn't cluttered with too many state objects; just one. There's also AppPreferences which lets me get/set certains objects into SharedPreferences Jan 06 11:49:56 Melatonina, if i give it some values in my main activity, the values will remain if i acess some method in the static class in some other activity? Jan 06 11:50:47 InfiniteWaves: Hm.. I think you can use the CardView as your root element. I don't know why Google wraps it in a LinearLayout in the tutorial (https://developer.android.com/training/material/lists-cards.html) Jan 06 11:51:24 tsousa: Yes, that's the point. Jan 06 11:51:58 tsousa: yes, I would use a static lazy getter that inizializes the backing list static data member at the first call reading the data from the database Jan 06 11:52:32 tsousa: that way it will work even if you change the order of the activity creation Jan 06 11:52:38 static lazy getter.. can you explain that? Jan 06 11:52:40 tsousa: you never know... Jan 06 11:54:01 hi mela Jan 06 11:55:21 tsousa: https://gist.github.com/anonymous/849d33698fdae3f214083b95624109b3 Jan 06 11:55:42 hi rao!!! !! !! ! :) Jan 06 11:56:55 tsousa: http://pastebin.ubuntu.com/23751821/ Jan 06 11:57:49 tsousa: This tugs all your data that's global to the app away into a nice AppState object that you can reach from anywhere. Jan 06 11:58:01 Like a token for example Jan 06 12:06:37 Is there any reason why http://pastebin.com/TmyupqmB should not work inside a protected void method? Jan 06 12:06:44 Melatonina, http://dpaste.com/3KGM06A why is it complaining about the "this" Jan 06 12:12:15 tsousa: static members are accessed without "this", as "this" represent an instance of an class (Java 101) Jan 06 12:19:23 Bernzel: no Jan 06 12:20:11 Bernzel: do yourself a favor read about retrolambda :9 Jan 06 12:26:44 goddamn AS keeps collapsing my project view Jan 06 12:27:28 I have an activity with Toolbar, TabLayout and ViewPager. One of the fragments in the ViewPager contains a horizontal RecyclerView. Now, you know that with TabLayout you can collapse the Toolbar with a swipe. If the Toolbar is not collapsed the RecyclerView doesn't shrink vertically and it's not displayed completely. Only when the Toolbar is collapsed I can see the whole items. What am I doing wrong? In the portrait layout, when then Jan 06 12:27:28 RecyclerView is vertical, I don't have this problem Jan 06 12:28:48 what do u mean collapse the toolbar? Jan 06 12:28:53 hide it? Jan 06 12:30:08 Yeah, actually it's "collapsing the ActionBar part of the ToolBar" as the part of the ToolBar containing the tab headers are always visible, of course Jan 06 12:34:25 I'm trying to make two snapshots Jan 06 12:34:31 Melatonina not directly related but watch dis: https://www.youtube.com/watch?v=TS_J0Qw4zl0 Jan 06 12:34:33 screenshots Jan 06 12:35:04 this girl, is basically thepoosh with a dress on ecstasy Jan 06 12:36:55 from the competence point of view or from a physical appearance point of view? Jan 06 12:37:14 the first Jan 06 12:37:41 its a really good talk about RV's Jan 06 12:37:51 wasnt aware of 95% of the stuff she said Jan 06 12:38:55 I'll watch it later, thanks Jan 06 12:39:28 and I'll ask a date to thepoosh Jan 06 12:39:45 bbl Jan 06 12:51:15 Hey guys, I've ran into a bit of an issue. Not sure where to go. I'm using the Spotify SDK. I'm getting the current song playing position in milliseconds (long). From what I can tell... I'm getting stutter/really low fps appearance when drawing my timeline which moves while the music plays. Anyways, everything else in my app is butter smooth so I'm thinking for some reason the value I'm getting from the spotify player object is Jan 06 12:51:16 the issue. Anyone know what I could try to investigate the issue? Jan 06 12:58:51 hey guisiators Jan 06 14:20:13 can someone help me with getting a .so file working in my android project, stackoverflow doesnt have a working answer Jan 06 14:21:56 nor does google Jan 06 14:29:07 nobody knows more than google Jan 06 14:32:20 lol Jan 06 14:32:26 what about gooogle Jan 06 14:32:30 im pretty sure that knows more Jan 06 14:45:53 tsousa is another one who can't say "Thanks" Jan 06 15:38:31 bubbely: gooogle doesn't exist Jan 06 15:47:56 :| Jan 06 15:50:47 can someone help me with getting a .so file working in my android project cant find an answer Jan 06 15:50:53 Hi,is there a way to get back result from the bluetooth setting like for example, my app open bluetooth setting via an intent "android.provider.Settings.ACTION_BLUETOOTH_SETTINGS" once I click on a device I want to get the name and the MAC addresse back. I believe that I have to use onActivityResult to get the data back from the setting Jan 06 15:59:45 my irc crash I will rewrote my question:Hi,is there a way to get back result from the bluetooth setting like for example, my app open bluetooth setting via an intent "android.provider.Settings.ACTION_BLUETOOTH_SETTINGS" once I click on a device I want to get the name and the MAC addresse back. I believe that I have to use onActivityResult to get the data back from the setting Jan 06 16:03:12 http://dpaste.com/27E6SP9 am i implementing this listener right? Jan 06 16:03:21 because it's not beeing trigger Jan 06 16:15:40 tsousa: not enough info Jan 06 16:16:14 tsousa: you didn't thank for the help you received before and ask for more? Jan 06 16:19:16 emmanuel__: BluetoothAdapter.getDefaultAdapter().getAddress(); ? Jan 06 16:19:44 emmanuel__: ((BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter().getAddress(); ? Jan 06 16:21:15 emmanuel__: from the result intent: http://stackoverflow.com/a/19346953 Jan 06 16:39:15 Melatonina: thanks for responding,this rigth here "BluetoothAdapter.getDefaultAdapter().getAddress();" only get the local bluetooth device as well of this one "((BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter().getAddress();" Jan 06 16:39:26 Melatonina: the stack overflow link doesn't talk about using the bluetooth Setting but the insteresting thing is this phrase: "When the intent is fired to connect to the remote device and the device is successfully established the Device Address is returned as extra data with the Flag EXTRA_DEVICE_ADDRESS" Jan 06 16:40:46 emmanuel__: yes, that's how you extract information in result intents Jan 06 16:53:44 Melatonina: ok then if I m rigth once I open the bluetooth setting and click on the device it will save the mac address of the last device in this flag "DeviceListActivity.EXTRA_DEVICE_ADDRESS" the thing that not clear here I don't know where "DeviceListActivity" come from.is it a contant of the bluetooth api? I'll look into it Jan 06 16:56:16 Melatonina: and when dealing with extra you have prepare that intent like so: Intent.putExtra(); before doing any testing onActivityResult right? Jan 06 16:57:27 emmanuel__: the intent that you get as result is not the same that you send Jan 06 17:00:04 emmanuel__: I really don't understand what you are asking, it's all in the code of that StackOverflow answer. And it's not a "flag". Jan 06 17:05:17 emmanuel__: sorry, that SO answer is silly. It wasn't a good suggestion Jan 06 17:06:19 emmanuel__: that answer refers to this code https://github.com/googlesamples/android-BluetoothChat/blob/master/Application/src/main/java/com/example/android/bluetoothchat/DeviceListActivity.java Jan 06 17:06:35 emmanuel__: which is a CUSTOM activity to pick a connection Jan 06 17:06:53 emmanuel__: not the activity you are invoking with that intent Jan 06 17:07:26 emmanuel__: maybe you can get inspired here: https://github.com/googlesamples/android-BluetoothChat Jan 06 17:12:08 So when releasing to maven central with multiple artifacts, you have to obviously specify a groupId and artifactId for each artifact. Jan 06 17:12:25 I was wondering if it's typical to scope a project in the groupId or artifactId Jan 06 17:13:26 e.g. Scoping by groupid - groupId=com.mycompany.myproject and artifactId1=thing1 and artifactId2=thing2 Jan 06 17:13:52 e.g. Scoping by artifactId - groupId=com.mycompany and artifactId1=myproject-thing1 and artifactId2=myproject-thing2 Jan 06 17:14:04 * yiati shrugs Jan 06 17:15:32 Hmm I'm interpreting https://maven.apache.org/guides/mini/guide-naming-conventions.html as scoping by groupId Jan 06 17:15:56 Something like https://github.com/aws/aws-sdk-android seems to be scoping by artifactId Jan 06 17:19:51 Seems like all Square java projects are scoped by groupId, good enough for me Jan 06 17:21:16 Melatonina: I saw the bluetooth chat example many time and I know it doesn't use the bluetooth setting activity if I remember, they make one from scratch and that not my goal but each time I review it I also learn something new. Jan 06 17:21:33 emmanuel__: I re-read your question. It doesn't make any sense. Jan 06 17:23:59 :| Jan 06 17:24:34 Melatonina: with my activity I open the bluetooth setting then I chose a device to connect with , then I want to get back at my activity with the last click item on the bluetooth setting.It s that data I need to fetch(name and MacAddress) Jan 06 17:27:43 Melatonina: my question is to extract data from the bluetooth setting activity witch I called Jan 06 17:32:53 emmanuel__: check the documentation for the intent you are using to CALL the settings activity. It doesn't mention any return value. There are none. You can't. Jan 06 17:36:21 Why the hell i am getting an nullpointer exception on this code»? http://dpaste.com/15AB6JA its a callback to communicate between activity and fragment Jan 06 17:36:35 what’s your exception say? Jan 06 17:36:39 the stack trace knows all Jan 06 17:36:53 it's a null pointer Jan 06 17:37:00 it says more than that Jan 06 17:37:05 read the stack trace Jan 06 17:37:13 http://dpaste.com/10EJZSR Jan 06 17:37:27 but i dont see why it is a null pointer Jan 06 17:37:32 tsousa: read the stack trace when it says to thank people for the help you get Jan 06 17:38:24 so what’s on line 47? cause that’s where your NPE is Jan 06 17:38:36 Melatonina, jesus men. Thanks. Jan 06 17:38:48 s73v3r, it's the line i posted in the dpaste Jan 06 17:38:56 you posted several lines Jan 06 17:39:13 s73v3r, line 12 on dpaste Jan 06 17:39:17 Melatonina: do you mean this page https://developer.android.com/reference/android/provider/Settings.html#ACTION_BLUETOOTH_SETTINGS Jan 06 17:39:26 Melatonina: seen it and there no return value but since the bluetooth setting uses the bluetooth api I though I could access it through its contants values or return values. Jan 06 17:39:29 so it’s saying your activity isn’t attached Jan 06 17:39:46 when do you assign itemClicked Jan 06 17:40:23 it's that activity that "deploys" the fragment Jan 06 17:40:34 yes, i know that Jan 06 17:40:40 where do you actually assign itemClicked Jan 06 17:41:43 s73v3r, what? Jan 06 17:41:57 where do you go itemClicked = something? Jan 06 17:42:14 cause without that, of course its going to be null Jan 06 17:45:22 s73v3r, ok, i found it. i had it commeted Jan 06 17:45:26 s73v3r, i am sorry Jan 06 17:45:29 thanks Jan 06 18:00:16 Hey friends Jan 06 18:00:38 Trying to figure out some key-remapping on my system, wondering if anyone has any experience. Jan 06 18:00:42 hi, "friend" Jan 06 18:02:19 Right now, in /system/usr/keylayout/Generic.kl Key 255 is mapped to F5, which opens my settings Jan 06 18:03:13 but when I look around at other .kl files, F5 should be key 63 Jan 06 18:04:22 inf3rnal: is this Android specific? Jan 06 18:05:00 I think? I'm on an android system, not sure if this key 255 is an android thing or not Jan 06 18:06:03 What Android system are you using? Jan 06 18:06:50 just trying to find a ref that says key 255 is supposed to open settings, but I checked the keyboard shortcuts on source.android.com and i didnt see anything about a specific settings hotkey Jan 06 18:06:55 it's 6.0.1 Jan 06 18:08:29 Sorry, I meant, what kind of device. Jan 06 18:08:41 A tabled with an attached keyboard? Jan 06 18:08:46 I was just curious Jan 06 18:09:00 tablet Jan 06 18:09:30 nah, tv box with keyboard Jan 06 18:10:45 Thanks. I have no experience with such devices. Jan 06 18:11:12 Nobody asked something like this here Jan 06 18:11:15 Yes, but the device doesn't really matter, it's the keyboard layout. Jan 06 18:11:55 I understand. I asked just to learn about existing Android devices. Jan 06 18:12:02 ahh k Jan 06 18:12:08 I'm sorry I can't provide any help Jan 06 19:13:24 has anyone got an opinion on animating using paths vs a list of points? The more I use the paths the less good an idea they seem... Jan 06 19:13:37 hey yall. I'm working on a project where the author used a scrollview and is inflating fragments into it. There is a considerable amount of jank and OOM exceptinos toward the end of the list and Picasso won't even load the images. Jan 06 19:13:50 Is that a bad design OP might have used? Jan 06 19:14:19 (on older phones is where the OOM happens) Jan 06 19:14:24 have you profiled stuff? Jan 06 19:14:35 that would be your best bet to pinpoint what’s happening Jan 06 19:14:36 No what's a good way to do that? Jan 06 19:14:45 just started this project Tuesday Jan 06 19:14:50 Android Studio has several tools to do that built in Jan 06 19:15:15 if you watch the Android Performance Patterns videos, they show what they are and how to use them Jan 06 19:15:21 Tricknology: Tuesday is a good day to start a project Jan 06 19:15:50 s73v3r: I didn't know Android Studio had profiling tools. Thanks for the information Jan 06 19:15:54 Thanks Melatonina and s73v3r Jan 06 19:16:02 yeah, they’ve been harping on them for a while Jan 06 19:16:57 Tools menu Jan 06 19:22:52 I already described my layout problem in words but maybe pictures are more helpful to understand. This is what happens with my horizontal recycler view in a view pager with tab layout: https://s30.postimg.org/tg04kugup/Screenshot_1483706298.png (<- this is when the action bar is not collapsed: BAD) https://s30.postimg.org/oz9neviht/Screenshot_1483706326.png (<- this is when the action bar is collapsed: GOOD, it should always look like this) Jan 06 19:23:08 Does anybody know where is the problem? Jan 06 19:23:40 horizontal recycler in a viewpager, but why Jan 06 19:24:01 because of landscape orientation Jan 06 19:24:26 in portrait mode it's vertical Jan 06 19:25:55 that seems like an odd design Jan 06 19:27:16 What's the best practice for a menu screen with sub menus, like with settings and instructions sub menus for example? Are you supposed to have a different activity for each one, or the same activity and just use setContentView or something? Jan 06 19:27:27 anyone here display data URIs in android natively before? i'm being told this is really really hard Jan 06 19:27:29 I don't like to have it vertical. I made this change recently and I'm quite happy with it. There is just some layout problem that doesn't allow items to properly adapt to the screen height Jan 06 19:28:02 you may want to force the action bar to always be collapsed when in horizontal mode Jan 06 19:28:40 ^^ Jan 06 19:28:48 s73v3r: that's something I may do. But I want to understand why the pictures don't shrink first Jan 06 19:28:59 s73v3r: thanks for the suggestion, though Jan 06 19:31:57 hmm android memory monitor.. This monitor is disabled. Jan 06 19:32:02 s73v3r: plus there is going to be a search bar in the action bar, so I can't have it always collapsed. Jan 06 19:32:04 others are up.. what? Jan 06 19:32:10 hello all. Ok, so I need to distribute an android support v4 .jar (api 23 or above) with my project in the dependencies, but all I have in my android-sdk are "-sources.jar" files for api 23. How can I turn a sources jar into the kind of jar I need? Jan 06 19:32:14 mathu what do you mean data uris? Jan 06 19:32:18 (I am not an android dev) Jan 06 19:32:51 you want sources to unclude android support v4? Jan 06 19:32:56 include* Jan 06 19:33:00 .jar is just a .zip Jan 06 19:33:13 you can do it with Gradle if you're familliar Jan 06 19:33:34 Tricknology: so I can just extract and compile the whole directory? and rearchive? Jan 06 19:33:40 Tricknology: data uris are images encoded as base64 Jan 06 19:34:01 Tricknology: called such bc you can use them in the src attribute of an tag in html Jan 06 19:34:37 nice thing that happened to me today - gradle 3.3 is fast Jan 06 19:35:03 so what are you trying to do, mathu display the image? Jan 06 19:35:11 gordon_ is it our for Android? Jan 06 19:35:12 Tricknology: yes Jan 06 19:35:23 base64decode it to its bytes and use that to build the image Jan 06 19:35:29 BitmapFactory probably? Jan 06 19:35:42 Tricknology: yes, it speeds up builds Jan 06 19:35:56 yeah I know it's supposed to be fast but.. how did you set it up with AS? Jan 06 19:37:07 So.. this Activity has 254MB allocated.. probably not good? Jan 06 19:37:11 idk what's normal heh Jan 06 19:37:23 but it sure does crash on a Note 2 Jan 06 19:37:26 Tricknology: AS uses gradle wrapper Jan 06 19:37:37 so just change version in gradle.properties Jan 06 19:37:38 just change gradleversion in there? Jan 06 19:37:40 sick Jan 06 19:39:00 wait gordon_ in gradle.properties? Jan 06 19:39:05 or gradle-wrapper.properties? Jan 06 19:39:05 pfn: s73v3r: I understand why you are perplexed about an horizontal recycler view in a viewpager. In future I'll try and make a vertical viewpager and a side tab layout with vertical labels. Jan 06 19:39:10 Tricknology: it's not a bitmap though, it's a png Jan 06 19:39:46 Tricknology: gradle/wrapper/gradle-wrapper.properties Jan 06 19:39:46 doesnt matter mathu Jan 06 19:39:50 taht one Jan 06 19:39:58 err gordon Jan 06 19:39:59 * Dagmar goes outside to burn android.support.v7.widget.GridLayout in effigy Jan 06 19:40:02 Tricknology: I'm not familiar with gradle. See I'm not working in an ordinary build enviornment. I'm creating an extension to OpenFL that needs a newer android-support-v4.jar than the one I was provided by my client. I just need to drop a file into a directory, but this file isn't available, only the sources via the sdk manager. Jan 06 19:40:02 err mathu haha Jan 06 19:40:07 pfn: s73v3r: my priority now is having the items not going out of the screen Jan 06 19:40:09 Tricknology: i think it does matter? the binary representation of a bitmap and png are not the same Jan 06 19:40:48 yeah but BitMapFactory can figure it out Jan 06 19:41:24 gordon_ what are you setting there? Jan 06 19:41:28 gradleVersion=3.3? Jan 06 19:41:37 i have this: distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip Jan 06 19:42:21 just change distributionUrl to distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip Jan 06 19:42:27 BitmapFactory.decodeByteArray() Jan 06 19:42:34 Tricknology: p sure bitmapfactory is not a png decoder Jan 06 19:42:38 nice one thanks :) Jan 06 19:42:53 i have to go take out my recycling; will check highlights on return if anyone else has a link or suggestion Jan 06 19:44:50 Okay. Clearly there's only so many v7 GridLayouts you can use before the preview window goes berzerk Jan 06 19:45:03 mathu: are you sure? Jan 06 19:45:03 https://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeByteArray%28byte[],%20int,%20int,%20android.graphics.BitmapFactory.Options%29 Jan 06 19:45:13 BitmapFactory will decode the file into a bitmap Jan 06 19:45:19 you can use jpg or png too if im not mistaken Jan 06 19:45:23 just NOT windows bmp Jan 06 19:45:52 i'll give it a shot when i'm home Jan 06 19:46:06 ty, sorry if i sounded sassy, i was mostly just baffled Jan 06 19:48:41 it's all good Jan 06 19:48:54 i went down that rabiit hole before.. we had a device that could print bitmaps but only windows bitmaps Jan 06 19:48:59 suffice to say i had a very tough week Jan 06 19:49:15 ended up making a converter that would take windows bitmap and convert to png Jan 06 19:49:33 it was such a pain at the byte level Jan 06 19:50:08 Well gordon_ 3m48s instead of the usual 4m48s so I guess that's an improvement Jan 06 19:51:04 Tricknology: try second.time ;) Jan 06 19:51:12 hehe am Jan 06 19:51:15 2 mins in :/ Jan 06 19:51:16 or tasks from console Jan 06 19:51:33 I think there are just A LOT of dependencies in this project Jan 06 19:51:42 might be Jan 06 19:51:57 like it uses an SDK which has TONS.. but the SDK is local, in the project, in a separate module Jan 06 19:52:32 I've tried decoupling the module, and creating a jar which include its dependencies, to use in my base project.. but there were liek 3 dependencies that wouldnt resolve, all from the same package Jan 06 19:52:37 spend 5 hours on that BS Jan 06 19:53:48 Honestly, it's probably the time it takes to download all those dependencies Jan 06 19:56:18 5 mins into the 2nd build... Jan 06 19:56:28 6 mins Jan 06 19:56:37 What's the best practice for a menu screen with sub menus, like with settings and instructions sub menus for example? Are you supposed to have a different activity for each one, or the same activity and just use setContentView or something? Jan 06 19:57:48 BasedGod, whatever you do don't do the 2nd Jan 06 19:58:00 def open new activities if you're not already using fragments Jan 06 19:58:10 if you're using fragments from a base activity just swaw pe fragment Jan 06 19:58:24 swap the* fragment Jan 06 19:58:35 use supprt Fragment Jan 06 19:58:57 gordon_ lol. 8m11s Jan 06 19:59:25 Tricknology: Ok thanks. When would I want to use fragments vs activities? Jan 06 19:59:45 You pretty much want to always use fragments if possible Jan 06 20:01:30 Dagmar: What's the standard like best practice procedure for a menu with some submenus then, one activity that manages various fragments? Jan 06 20:03:33 To use the android-provided mechanisms for the type of menu you are invoking Jan 06 20:04:26 Dagmar: I suspect that for some reason he's talking about menus for a videogame. They are probably better implemented as activities Jan 06 20:04:56 "I suspect for some reason that" etc. Jan 06 20:04:57 Well, at this rate he's not going to get very far until he starts looking at the tutorials and samples Jan 06 20:05:54 Haha BasedGob: Just use whatever fits your use case Jan 06 20:06:04 but you probably wont know what that thing to use is until you poke around Jan 06 20:06:21 try tutorials and samples or just start building it and learn along the way.. there are 2 types of ppl Jan 06 20:06:40 I would recommend having a base activity that you launch your fragments from, BasedGob Jan 06 20:06:50 (or insert fragments into) Jan 06 20:07:13 then only your fragments contain the business logic, and you dont muck up your activity with a bunch of if/else Jan 06 20:08:16 Even if you went for multiple activities, which isnt a bad choice either for simpler implementations, those activities just have the logic to do only what that activity does. Jan 06 20:08:19 ya feel meh? Jan 06 20:08:22 Yea pretty much what I'm doing is making a neural net training thing. You have a main menu, then you can go into another training menu where you can start training your net using an IntentService, then you can go around through other menus and mess around, and eventually go to a different testing menu Jan 06 20:08:24 uuuuh. I'm going to lunch Jan 06 20:08:44 um Jan 06 20:08:50 check out DrawerActivity demo Jan 06 20:09:01 your main menu will be the sliding panel on the left Jan 06 20:09:08 Yea I've done drawer layouts before Jan 06 20:09:16 navigate by swapping out fragments in teh main drawer Jan 06 20:09:24 each fragment has your training stuff Jan 06 20:09:43 you can have your menu items in the sliding drawer have sub items as well Jan 06 20:09:45 Hmmm I was imagining having a bigger main menu but maybe I could stick it all in a drawer Jan 06 20:09:56 main list with sub items Jan 06 20:10:24 ExpandableListView is waht you'll want for that (subitems) Jan 06 20:10:37 Ok thank you Jan 06 20:10:41 Good luck BasedGob Jan 06 20:10:43 yw Jan 06 20:11:09 Can someoen give me a yes or a no about an activity taking up 256MB in the heap.. is that normal? Jan 06 20:11:18 (haven't really profiled apps enough to know) Jan 06 20:11:24 pfn: I fixed my problem!!! Jan 06 20:18:01 Think I might go with a ViewPager actually Jan 06 20:18:20 what kind of NN are you training? Jan 06 20:19:13 NEAT network atm, this is mainly just for my own learning and messing around. Obviously Android isn't the ideal environment for NN training hehe Jan 06 20:20:17 I know that. We talked before. I meant, what kind of data does the NN is going to process? Jan 06 20:20:48 Oooh ok. I'm teaching a NN to beat a little game I made that's kind of like Agar.io Jan 06 20:24:02 Cool Jan 06 20:39:48 Can someoen give me a yes or a no about an activity taking up 256MB in the heap.. is that normal? < not normal Jan 06 20:40:13 probably many (too) big images Jan 06 20:40:15 adq Whats the average? Jan 06 20:40:18 well thats.. active! Jan 06 20:40:20 Out of curiosity Jan 06 20:40:39 orbyt_, not aware of an average because vm max heap really changed across devices and android version Jan 06 20:40:59 Ah I see Jan 06 20:41:05 but using like 64MB is already a lot especially if most of the heap is not used by images Jan 06 20:41:24 and thats for all application Jan 06 20:41:29 I've only ever gotten an OOM once so was curious Jan 06 20:41:40 i barely managed to go over 100MB with many images in recyclerview Jan 06 20:41:56 eheh Jan 06 20:42:01 HAHA Jan 06 20:42:08 the splash screen is 128MB Jan 06 20:42:14 next activity is 256 Jan 06 20:42:14 lol Jan 06 20:42:20 you're right it is probably the images Jan 06 20:42:26 with a grid layout manager + RV + span size + images, it's easy to reach max heap Jan 06 20:42:34 there is no scaling or caching whatsoever, and it's fragments loaded into a scrollview Jan 06 20:43:11 I was thinking about ripping that apart and using a RecyclerView Jan 06 20:43:23 any reason why I shouldn't? Jan 06 20:43:26 best is to use the profiler Jan 06 20:43:32 so you can know what is being allocated Jan 06 20:43:35 (and when ofc) Jan 06 20:43:49 well so far I only got to the memory monitor before I wtf'd Jan 06 20:44:01 profiler profiles method calls? Jan 06 20:44:06 you can trace allocations too, between a start and stop marker Jan 06 20:44:25 profiler can also profile method calls, but it's more for performance (like time it takes, nb of cycles etc) Jan 06 20:44:26 maybe that's what I'll spend my day on. All other features are implemented and bosses are on vacay Jan 06 20:44:31 not really the amount of memory it will take Jan 06 20:44:36 just play with those tools, it's a must Jan 06 20:44:41 will do Jan 06 20:44:43 thanks adq Jan 06 20:44:50 it's ok Jan 06 20:45:01 also leak canary, if you can use it, try it Jan 06 20:45:07 Yeah I've used it before Jan 06 20:45:15 it helped me few times, and more importantly gave me more knowledge about why and what could leak Jan 06 20:45:28 for me, at my last gig it was static context everywhere Jan 06 20:45:29 especially when you entangled activity, fragments, nested fragments, etc Jan 06 20:45:38 no nested fragments thank god Jan 06 20:45:46 Tricknology Your displaying images using Fragments in a scrollview? Jan 06 20:46:00 but i really highly suspect that the scrollview and its fragments, and their images, is the culprit.. it's loading everything at once Jan 06 20:46:05 yeah.. not my design, I just walked into it Jan 06 20:46:10 orbyt_ what are your thoughts? Jan 06 20:46:14 Tricknology Are the Fragments only images? Jan 06 20:46:59 no they have an EventBus subscription that fills the model and updates the view but they basically house all the objects in the fragment. Jan 06 20:47:09 I am using picasso to inflate/insert Jan 06 20:47:26 Well, Orbyt_ two of them are Jan 06 20:47:29 only images Jan 06 20:47:45 I was thinking of just making a RecyclerView and CardViews instead of fragments Jan 06 20:47:49 If your only needing a scrollable list of images, Fragments in a ScrollView is a terrible implementation Jan 06 20:47:59 Tricknology Yes, that would be much better Jan 06 20:48:06 no some of the elements expand and have images and buttons in them Jan 06 20:48:16 and the images are dynamically loaded from a URL Jan 06 20:48:18 what is the image size? (just curious) Jan 06 20:48:22 shoot idk Jan 06 20:48:25 I should know Jan 06 20:48:35 Tricknology Where the images are loaded from is irrelavant Jan 06 20:48:45 ok cause you can approximate mem it takes Jan 06 20:48:46 And you can still have an expandable view Jan 06 20:48:56 well.. for instance the category image.. 11-17kb Jan 06 20:49:10 usually, 4 bytes for ARGB8888, and dimensions Jan 06 20:49:16 4 * width * height * something Jan 06 20:49:26 and you get an idea in byte of what a raw bitmap takes Jan 06 20:49:51 even if they are compressed jpeg, in memory they will be raw bitmap Jan 06 20:50:17 so don't look at the compressed size (png or jpeg usually) Jan 06 20:50:19 LOL one of them is 398x527 Jan 06 20:50:27 not bad Jan 06 20:50:43 yeah but that gets scaled way down Jan 06 20:50:53 in memory is it taking the entire size? Jan 06 20:51:05 usually, ppl do this mistake, they use a gigantic image like 1440*2560 Jan 06 20:51:12 oh hell no, I know better Jan 06 20:51:14 your image size of 398x527 is totally ok Jan 06 20:51:20 but I didnt architect it so I have to kind of dig around Jan 06 20:51:22 If your using something like picasso or glide, even using larger images isnt much of an issue Jan 06 20:51:33 ^ yep Jan 06 20:51:43 insamplesize ftw Jan 06 20:52:05 For example, most images in the feed of one of my applications are probably above 1200x1200 Jan 06 20:52:11 And they load extremely fast Jan 06 20:52:25 not using BitmapFactory though Jan 06 20:52:41 maybe Picasso is Jan 06 20:53:02 I actually got crashes until I swapped the Drawables with Picasso Jan 06 20:53:12 drawble.setImage(whatever) Jan 06 20:53:36 orbyt_, careful if you use a relatively high-end or new device :p Jan 06 20:54:01 adq >=) Jan 06 20:54:01 i always test this stuff on underpowered old device or by capping cpu in the VM Jan 06 20:54:18 i'm still using this old htc desire hd from 2011 it's crazy Jan 06 20:55:53 I just bought 3 batteries for my htc mytouch 4g (2011) ;) Jan 06 20:56:06 dang, 3, why? Jan 06 20:56:34 incase they stop making them Jan 06 20:56:39 ahah smart Jan 06 20:56:55 i have bought one for the desire hd 2 years ago Jan 06 20:57:11 well, at least it always works with the cable even if battery unplugged Jan 06 20:57:50 yeha but then it feels funny in your hand Jan 06 21:05:36 I have GTA III installed on that phone and it's pretty good framerate, 768MB ram 1Ghz cpu Jan 06 21:06:08 like 15 fps, not smooth, but playable Jan 06 21:07:15 15 fps playable? pffft console peasants Jan 06 21:08:09 How do you get google play console support is there a form or something? Jan 06 21:08:55 Only google console only support apk that it? Jan 06 21:09:14 how d'you reset the default proxy settings ? com.android.settings.ProxySettings Jan 06 21:09:27 I hope someone can help me?:) Jan 06 21:09:44 I was toying around with an app that launches settings configurations, and now the servers IP address is considered the default, and removing the values has no effect on the proxy Jan 06 21:10:12 perlsyntax, on the desktop version you can send them a message Jan 06 21:10:22 Oh really Jan 06 21:10:28 based on my experience, half of the message you send will be plainly ignored Jan 06 21:10:35 (i never got answer for few of them) Jan 06 21:11:06 (and it was not a problem i have but a problem they have on their front-end..) Jan 06 21:11:18 perlsyntax, top right [?] <- Jan 06 21:11:36 adq,I was told from google play console support the cloudn't help me with my question. Jan 06 21:11:58 well, you asked how to contact the suppor team Jan 06 21:12:08 i just told you, what happens after is beyond my knowledge Jan 06 21:12:37 ok Jan 06 21:13:15 no prob adq i see why the support sucks. Jan 06 21:13:34 :) Jan 06 21:14:08 maybe i try google+ Jan 06 21:18:00 perlsyntax Theres a big question mark button at the top right of the play console. Jan 06 21:18:05 Did you not try that? Jan 06 21:23:31 Hello, I am new to Android and I was wondering, can you do everything in design mode or are there still things you have to do in XML mode? Jan 06 21:24:06 can you do anything in design mode? :O Jan 06 21:24:16 i almost always use text mode Jan 06 21:24:25 Yes... lots, at least in the tutorials I am following Jan 06 21:24:54 you can. sometimes it is easier to work directly in XML mode, though Jan 06 21:25:04 and you really should have a good understanding of what the XML means Jan 06 21:25:18 But technically everything you can do in XML you can do in design mode? Jan 06 21:25:25 as far as I kno Jan 06 21:25:27 know Jan 06 21:25:44 I've got a list of paths that I want to animate. I thought animating one and then using the listener onAnimnationEnd to trigger the next would work, but it seems patchy (not just jerky but missing sections). Is my strategy wrong, or more likely something else? Jan 06 21:26:07 or animate an image through, more correctly Jan 06 21:36:12 no-one? Jan 06 21:38:01 We are waiting for you to overcome this difficulty all alone Jan 06 21:38:30 watching a movie, in the meantime Jan 06 21:38:38 "Passengers" Jan 06 21:38:42 thanx :z Jan 06 21:38:47 :) Jan 06 21:39:08 Be quick so you can join us Jan 06 21:39:35 MarkRS Theres specific ways to go about svg animatino Jan 06 21:39:40 animation* Jan 06 21:44:47 that's the kind of stuff I need to know orbyt_ . Can you point me in the direction of suitable docs? Jan 06 21:46:02 Look into AnimatedVectorDrawables: https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html Jan 06 21:46:15 Theres a large array of third party libs for svg animation as well Jan 06 21:46:35 In addition, you could check out some open source projects, like Plaid, that have great animations. Jan 06 21:46:43 ok, thankx. Jan 06 21:46:53 double thanx :) Jan 06 21:48:22 Hmm, I just want to move a graphic along a collection of paths. Is this the same thing, orbyt_ ? Jan 06 21:49:38 MarkRS: see, when I tease someone who doesn't get any help, invariably someone is moved to pity and answer. I do it all the time and it always work. Jan 06 21:49:38 When you say animating a path, the usual assumption is you're talking about SVG paths. Are you not using svgs? Jan 06 21:50:11 I've got a native library(luajit) linking statically in an NDK build. I'd like to use the dynamic version instead, but when I drop the .so in src/main/jniLibs and remove ldLibs.add("luajit");, the linker complains about missing symbols. Is there a step I'm missing to get it to link to a shared object? Jan 06 21:51:29 orbyt_: Due to ignorance on my part, I don't know what one of those is. I have an image, I want to move it around. You could kinda think of it as a ouija board. It's not that at all, but I s'pose it moves like that Jan 06 21:52:05 You're a star Melatonina. My usual strategy it to give an answer so hopelessly naive that someone else steps in. I'm far too new here to do that, though Jan 06 21:52:09 MarkRS So the graphic is something like a .png or .jpg? Jan 06 21:52:23 Yes orbyt_ , it is Jan 06 21:52:44 Yes, thats very different then. Jan 06 21:53:00 Ah, ok. Jan 06 21:53:50 MarkRS Reading through this should give you most of what you need to know: https://developer.android.com/guide/topics/graphics/prop-animation.html Jan 06 21:54:17 You can animate any property of any object, in this case you can just animate the x and y axis as needed. Jan 06 21:54:29 Thanks orbyt_ . Yes, I've been there once. Perhaps I didn't read well enough though. I'll have another go. Jan 06 21:54:46 I've got a list of paths. Jan 06 21:54:54 I want to animate them sequentially. Jan 06 21:55:25 What I'm finding is sometimes the animation doesn't get all the way through a path. I think my paths are correct Jan 06 21:55:35 Again, when you say paths, the assumption is an SVG path. Other then that, I dont know what you mean by "path". Jan 06 21:55:41 but I might be mistaken. Jan 06 21:55:48 An android path Jan 06 21:56:07 https://developer.android.com/reference/android/graphics/Path.html Jan 06 21:58:07 That has nothing to do with your original proposition to animate a graphic Jan 06 21:58:19 Regardless, you can still use the animators i linked above Jan 06 21:58:44 More specifically, check out AnimatorSet: https://developer.android.com/reference/android/animation/AnimatorSet.html Jan 06 21:59:16 That is how I'm (currently) animating the image. Jan 06 22:00:10 get an object animator and feed it my object, coupla other things and a path object. Jan 06 22:00:27 job done, just not very well done, at the moment :-( Jan 06 22:01:33 MarkRS At this point I would suggest posting to SO with you code examples and a description of exactly what the issue is. Jan 06 22:01:57 ok, thanks. Errr... "SO"? Jan 06 22:03:12 Stack Overflow Jan 06 22:03:29 Ah, :=) Of course. Thanks again Jan 06 22:12:15 so apparently, in themes and styles, you can’t use a color resource (@color/) when assigning the textColor Jan 06 22:15:34 oO Jan 06 22:15:47 Sure you can Jan 06 22:16:15 s73v3r: Are you sure? I think I did it once Jan 06 22:16:22 nope Jan 06 22:16:38 at least not in a TextAppearance style Jan 06 22:17:15 Crashes with an unsupported operation exception Jan 06 22:17:57 in the source of TextAppearance.* they use attr ?attr/textColorPrimary Jan 06 22:18:28 but sometimes i see they also use @color like @color/btn_colored_text_material Jan 06 22:18:37 but it might be a selector Jan 06 22:18:46 do you have a link to them doing that? Jan 06 22:19:07 and I’ve been doing android:textColor, that might be the issue Jan 06 22:19:26 but I’ve been doing android:textSize, and had no problems. Even referencing things in the dimen files Jan 06 22:19:35 s73v3r, nope, i just middle click (got to declaration) from a textappearance Jan 06 22:19:49 and then climb up to the parent to the parent etc.. until it finally reaches Jan 06 22:20:16 fungebob: not enough info to work with there, could you pastebin the error or something? Jan 06 22:20:27 the quick javadoc also displays the several attributes Jan 06 22:20:32 i see them doing android:textColor in there Jan 06 22:20:33 no need to climb up manually like i do Jan 06 22:21:04 ^ http://imgur.com/a/ruGWY Jan 06 22:21:33 that just from mousing over? Jan 06 22:21:56 yep, but you can force it with ctrl+q or a similar shortcut (depends on the os) Jan 06 22:22:15 sometimes you can even get a little preview of the colors too Jan 06 22:22:18 Yeah, there's no issue using resources as the value of android:textColor Jan 06 22:22:39 then i don’t know where my crash is coming from Jan 06 22:22:47 also: https://developer.android.com/guide/topics/ui/themes.html Jan 06 22:22:56 http://i.imgur.com/pwRH8Qi.png < Jan 06 22:23:04 they don’t do @color stuff in there, either Jan 06 22:23:09 i find it hard to debug styling error :( Jan 06 22:23:28 so I’m not doing colorPrimary or anything like that. I’m just doing @color/white Jan 06 22:23:37 which is defined in colors.xml as #FFFFFF Jan 06 22:24:02 maybe something is not resolved, aren't you mixing v21 style with regular style? Jan 06 22:24:32 i’m running on a device with 21 on it, so that shouldn’t be an issue. but I don’t think i’m mixing styles Jan 06 22:24:39 indeed Jan 06 22:24:53 I'm using me.kaelaela:verticalviewpager:1.0.0@aar to have a vertical viewpager when the device is in landascape mode Jan 06 22:25:27 how much RAM are you guys allocating to the build process? Jan 06 22:25:58 the problem is that the recycler view is not passing the touch events to the view pager. I can swipe from an empty tab to a tab with a recycler view but not vice versa Jan 06 22:26:06 Is there something I can do about it? Jan 06 22:26:46 java.lang.UnsupportedOperationException: Failed to resolve attribute at index 24: TypedValue{t=0x3/d=0x53 "res/color/secondary_text_material_dark.xml" a=1 r=0x1060119} Jan 06 22:26:54 Why does the recycler view behaves correctly when it's inside the original ViewPager but doesn't when it's inside a subclass? Jan 06 22:27:06 Tricknology, org.gradle.jvmargs=-Xmx2048m + build cache on ramdisk + build folders on ramdisk + etc Jan 06 22:27:42 anyone heard of that file? Jan 06 22:28:28 nope, but looks like its part of a support lib Jan 06 22:28:44 Appcompat prefix their resources with abc_ tho Jan 06 22:29:05 I’m using Theme.AppCompat and TextApperance.AppCompat Jan 06 22:30:04 Melatonina, no idea, just avoid nesting view supporting a scrolling direction inside a view supporting same scrolling direction except if you control how touch are handled (sometimes called greedy mode) Jan 06 22:30:31 There is nothing in the source code of RecyclerView referring to ViewPager Jan 06 22:31:38 adq: just out of curiosity, if I nest an horizontal recycler view inside a normal view pager it will work! You will be able to scroll all items inside the recycler view and, when you reach the end, you'll page to the next view Jan 06 22:32:28 My app needs to track where a sales guy of our company is going to. What's the most battery efficient way to do this? Jan 06 22:32:29 adq: in this case I'm using a subclass of ViewPager which is a VerticalViewPager. Thus currently the recycler view scrolls horizontally and the view pager vertically Jan 06 22:33:00 Do I have to keep the app on foreground mode all the time? Jan 06 22:33:12 ty adq Jan 06 22:33:14 danalbert, http://pastebin.com/zNfJWtTU Full project here: https://github.com/jimbo00000/Flickercladding Jan 06 22:33:14 or is there a way to wake the app every 5 minutes to take a gps location? Jan 06 22:33:30 Tricknology, what's that? Jan 06 22:33:36 I believe you can be notified on GPS changes Jan 06 22:34:34 Evening. Jan 06 22:34:56 CrowX-: Btw, that's a really good way to drain the battery and get the users to uninstall your app. Jan 06 22:35:23 CrowX-: You need a foreground service and a wakelock. There's no battery efficient way of doing that Jan 06 22:35:47 puff: doesn’t sound like it’s something they have to worry about, as it’s for work Jan 06 22:35:54 puff, the user is an employee of our company, so they're forced to use it. Still, I want to find the most efficient way to do this. Jan 06 22:36:10 fungebob: I only see the static libraries in that project Jan 06 22:36:19 CrowX-: There was a google IO session some years ago, on ways to do that more battery-efficiently... lemme see if I can find it. Jan 06 22:36:42 adq: it's a known limitation. A "todo" reads: "Use with scrollable views(ListView, ScrollView, RecyclerView, WebView)." https://android-arsenal.com/details/1/2651 Jan 06 22:37:05 danalbert, in app/src/main/jniLibs/armeabi-v7a there's a dynamic one I link to from luajit. I'd like to make luajit itself dynamic as well. Jan 06 22:37:08 Is it possible to let the device go to sleep, and send a FCM request from our server to wake the app where the app would take gps coordinates, send them to the server and go back to sleep? Jan 06 22:37:11 https://www.youtube.com/watch?v=OUemfrKe65c Jan 06 22:39:01 https://www.quora.com/Battery-Life/Why-does-GPS-use-so-much-more-battery-than-any-other-antenna-or-sensor-in-a-smartphone Jan 06 22:39:15 fungebob: I'm not really familiar with the gradle plugin, but to me it looks like you're still linking the static one Jan 06 22:39:18 https://github.com/jimbo00000/Flickercladding/blob/master/app/build.gradle#L51 Jan 06 22:39:59 danalbert, right, I've taken that out in the working copy. Would you recommend the new CMake build system instead? Jan 06 22:40:17 Whichever one you're most comfortable with is the best choice Jan 06 22:40:19 CrowX-: Sure, but after it wakes up it still has to wait a while for a location lock.. So if you want a location relatively frequently, the device will probably spend most of the time awake Jan 06 22:40:48 Installing a car mount for the device probably solves the battery issue tho Jan 06 22:41:13 adq: this guy took an half-assed StackOverflow answer and published as his own library on github and arsenal Jan 06 22:41:25 SimonVT, is it possible to do this without user interraction? Jan 06 22:41:35 What part of it? Jan 06 22:41:47 i.e. user presses 'start' on the app, and app goes to sleep, is waken up by server, does its job, goes back to sleep, etc. etc.? Jan 06 22:41:54 Sure Jan 06 22:42:38 So I guess that's what I need... unless puff's links show a better way. Jan 06 22:42:47 thanks btw Jan 06 22:42:56 CrowX-: That quora link is a pretty good overview, also read the comments. Jan 06 22:43:12 k Jan 06 22:43:14 thanks Jan 06 22:44:53 CrowX-: I'd swear there was another session, from like 2011 or so. Hm. Jan 06 22:45:58 Here's the slides for that first link (youtube): https://dl.google.com/io/2009/pres/W_0300_CodingforLife-BatteryLifeThatIs.pdf Jan 06 22:48:09 CrowX-: If I recall correctly, what you just proposed was one of the strategies they suggested, i.e. waking periodically instead of staying awake constantly. There are, of course, tradeoffs. Jan 06 22:48:17 hey fellas Jan 06 22:48:22 anyone to ask about AOSP? Jan 06 22:49:01 namely I'm at the very first step where I have to setup a sparse image, which I've done and I've successfully mounted, but I don't know where to proceed from here Jan 06 22:49:09 how do I ..well, begin working from within the image? Jan 06 22:49:16 do I have to get JDK on that image? Jan 06 22:49:47 try #android-root, #android, or XDA Jan 06 22:52:10 guess so Jan 06 22:58:44 does android have some speech recognition API that I could feed audio data and get back text? Jan 06 22:58:54 yup Jan 06 22:58:59 what is it? Jan 06 22:59:01 it might require a network connection, though Jan 06 22:59:05 check in Play Services Jan 06 23:02:04 Hi all! im trying to load up a year old project in IntelliJ, but getting some uncaught translation errors upon rebuilding the project. Errors like Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes; Jan 06 23:03:03 What could be the cause for these errors? Havent fiddled with android in so long Jan 06 23:03:13 I did use the support libraries for the project, back in the day, havent updated those. I did update the android SDK itself though, Jan 06 23:04:40 ThomQ: pastebin the full error. Jan 06 23:04:50 adq: I manage to get a vertical view pager that works with recycler view Jan 06 23:05:18 ThomQ: A quick google suggests maybe your setup has two versions of some jar file. Jan 06 23:05:41 ThomQ: I've gotta run, be AFK for a couple hours, good luck. Jan 06 23:05:56 yeah I expect it should be some conflict of interrest Jan 06 23:06:23 adq: on the internet you find 1) a subclass of view pager which some transformation applied to it which doesn't work with recycler view 2) a copy of the original view pager which works with the recycler view but it's not a subclass and doesn't work with tablayout and requires special code. Jan 06 23:06:45 puff, pasetbin: http://pastebin.com/wBVZQAKq Jan 06 23:07:01 I think its something with the support libraries, im gonna take a look now Jan 06 23:07:45 adq: I took this second code, made it extend ViewPager, made an inner class extend the namesake innerclass in ViewPager and it works! It's a subclass of ViewPager, it's compatible with everything and works with recycler view Jan 06 23:07:53 using IntelliJ btw, I remember using their Modules and normal libs was a pain Jan 06 23:08:10 If anybody wants a copy of it I can share it. Jan 06 23:08:46 Fortunately computers don't puke on this kind of horrid code Jan 06 23:08:55 I can't believe what I did Jan 06 23:10:18 I need a shower Jan 06 23:18:22 hello everybody Jan 06 23:18:28 i need help Jan 06 23:18:51 I need help too Jan 06 23:19:36 I would like to find an example of a well-designed application on github Jan 06 23:20:04 good luck Jan 06 23:20:08 navigation pattern, dagger2 Jan 06 23:20:19 :) Jan 06 23:22:05 svasi: there's a project called Android Architecture Samples: https://github.com/googlesamples/android-architecture Jan 06 23:22:20 svasi: I believe that might be very useful Jan 06 23:23:03 r0ver: thanks Jan 06 23:23:10 svasi: there's also a Android Testing Codelab (https://codelabs.developers.google.com/codelabs/android-testing/) which has a google talk and the full source code. This one makes enphasis on testing/mvp Jan 06 23:25:07 thank you very much, I will study Jan 06 23:25:24 r0ver: thank you very much, I will study Jan 06 23:26:42 svasi: np, wish you the best! Jan 06 23:27:32 r0ver: interesting links, thanks Jan 06 23:31:53 Melatonina: thks, nice nick.... it makes me feel very familiar with you :) Jan 06 23:32:39 r0ver: why does it make you feel very familiar with me? Jan 06 23:33:29 Melatonina: it was a stupid joke, I use to take melatonina to relugate my sleep cycle when jetlag Jan 06 23:34:22 Are these docs up to date for adding WebP support https://developers.google.com/speed/webp/faq#how_do_i_use_the_libwebp_java_bindings_in_my_android_project Jan 06 23:34:34 r0ver: that's what I thought :) I had a box of it next to the keyboard when I had to pick the nickname :D Jan 06 23:34:53 Specifically I'm not sure what "LOCAL_SOURCE_FILES" is in "Add swig/libwebp_java_wrap.c to the LOCAL_SRC_FILES list." Jan 06 23:35:31 s/LOCAL_SOURCE_FILES/LOCAL_SRC_FILES/ Jan 06 23:40:17 I guess there is 4 instances of it in the libwebp/Android.mk file Jan 06 23:40:20 * yiati shrugs Jan 06 23:41:04 "Building the library in Eclipse" kind of tips me off that this thing is horribly out of date Jan 06 23:42:15 Seems like webp promotion on Android by Google would be a bit better :P Jan 06 23:42:46 I'm not too sure what "Supported" means by showing webp in the list of "Supported Media Formats" https://developer.android.com/guide/topics/media/media-formats.html#image-formats Jan 06 23:56:09 adq: just out of curiosity, if I nest an horizontal recycler view inside a normal view pager it will work! You will be able to scroll all items inside the recycler view and, when you reach the end, you'll page to the next view << i'm not sure with recyclerview, but if you use a view pager containing another view pager it will do what you describe for sure (i did it like 2 monthes ago for a project, someone wanted tabs containings tabs) Jan 06 23:56:38 adq: I took this second code, made it extend ViewPager, made an inner class extend the namesake innerclass in ViewPager and it works! It's a subclass of ViewPager, it's compatible with everything and works with recycler view << then it's ok Jan 07 00:03:12 im starting to think that 8GB isnt enough RAM today Jan 07 00:03:18 to develop on Jan 07 00:06:53 5m4s to build Jan 07 00:07:26 is there any way to build apps and debug it on my phone without using the usb cord? i've got a nexus 5x which uses usb-C but i forgot to bring my usb-C-to-laptop cord home for the holidays Jan 07 00:08:20 Tricknology i have 4G ! Jan 07 00:10:55 can't make up my mind if i should replace this with another MBP or get a windows machine Jan 07 00:11:07 not really happy with apple these days Jan 07 00:15:27 * TacticalJoke represents the Windows master race. Jan 07 00:16:27 g00s: You can get 8GB Windows laptops so cheap. Jan 07 00:17:25 Some have the ability to take up to 16GB RAM. Jan 07 00:17:50 i was using win10 the other day (first time) and didn't really like it; seemed parts were really modern and slick but then you go down into dialogs and starts looking like windows 95 Jan 07 00:19:59 like parts of it were nice and polished but other parts weren't; felt unfinished Jan 07 00:20:21 g00s: it's a misconception. I's not "Windows 95", it's "Windows 9.5", hence the similarities with Windows 10 Jan 07 00:20:25 but apple and their damn 1mm thinner, missing ports, other stupidity Jan 07 00:21:05 hello friends Jan 07 00:21:14 Any ressurection remix rom for mtk6580 ? Jan 07 00:21:36 edney thats not english for this channel Jan 07 00:21:52 see topic ;) Jan 07 00:22:14 404 Page not found Jan 07 00:22:48 mzhang, use adb over wifi Jan 07 00:23:10 TacticalJoke i noticed windows laptops are going to start getting "precision touchpads" - finally, that will help some Jan 07 00:23:23 or it will be a requirement rather Jan 07 00:23:25 Tricknology, i have 32GB ram is cheap Jan 07 00:23:28 adq: i've read online that it was possible too, but there is no "adb over network" option under my developer tools :/ Jan 07 00:23:29 cpu matters a lot too Jan 07 00:23:45 mzhang, you have to enable it via command line iirc, which requires first to be cabled Jan 07 00:23:56 ugh darn Jan 07 00:23:58 whats wrong with english here goos? Jan 07 00:23:59 thanks for you help Jan 07 00:24:07 mzhang, https://developer.android.com/studio/command-line/adb.html#wireless Jan 07 00:24:09 adq mzhang To use adb over wifi you need to set the device in tcpip mode....which requires a connection first Jan 07 00:24:36 welp looks like i'm stuck with the emulator for a bit longer Jan 07 00:24:48 thanks for your help! Jan 07 00:24:59 Is there any ressurection rom for mtk6580 ? Jan 07 00:25:07 edney ^^ Jan 07 00:25:20 again , read topic ! Jan 07 00:25:22 edney, wrong channel Jan 07 00:25:42 welp, studio just took down my computer Jan 07 00:25:51 Hummmmmmmmmmmmmmmmmmm sorry! Jan 07 00:25:52 edney, try #android-root, or likely more usefully, the xda web forums Jan 07 00:26:01 looks like a sign it’s time to go home Jan 07 00:26:01 all right Jan 07 00:26:03 we're app-dev centric here, not rom/rooting Jan 07 00:26:04 thank you so much Jan 07 00:26:13 all right sorry for that hehehe Jan 07 00:26:17 im new on irc Jan 07 00:26:22 im a little lost hehe Jan 07 00:26:40 no worries. #android-root has some of the rom/root community, but xda website is probably where you want to be. good luck! Jan 07 00:26:52 All right. ill be there thanks Jan 07 00:30:08 g00s Just make sure it has sick specs.. I dont know if it's all the dependencies or the fact it has 8G and no SSD but build times are killing me Jan 07 00:30:17 you build like 10x a day and there goes an hour Jan 07 00:30:22 jsut sitting there Jan 07 00:31:13 Does AS have anything liek "attach debugger"? I'd really hate to have to rebuild to get the debugger going.. Jan 07 00:32:56 Tricknology: Yeah, under Run. Jan 07 00:56:00 Is there a way to remove the black bands in YouTube's thumbnails on Android? Jan 07 01:03:33 Maybe I should do it server-side Jan 07 01:11:05 GOtta think fo your use case and traffic I guess. You can probably do it server-side and cache thumbs for x amount of time Jan 07 01:11:16 idk if you'd want to crop every image every time before you send it down Jan 07 01:11:38 java.lang.RuntimeException: Unable to open trace file '/storage/emulated/legacy/dmtrace.trace' Jan 07 01:12:06 at startMethodTracing(); Jan 07 01:12:09 anyone familiar? Jan 07 01:12:22 I have the permission set in the manifest to read/write external Jan 07 01:12:46 TacticalJoke: Thanks Jan 07 01:48:22 I've seen this a million times, but I love it: https://i.reddituploads.com/86351c7fcc774f1fb488d3ae770b15b2?fit=max&h=1536&w=1536&s=b8815d7db002f8cabc4d94b5cd79a8a7 Jan 07 01:59:24 TacticalJoke lol, all those coal miners voting for trump ;) Jan 07 02:00:48 g00s: you should get the Acer swift 7 laptop Jan 07 02:01:23 it's the worlds thinnest atm Jan 07 02:01:32 i don't care about thinness shmooz Jan 07 02:01:37 A wild shmooz appeared. Jan 07 02:01:40 i mean, i don't want a compaq luggable Jan 07 02:02:23 TacticalJoke: because me tribes just crashed :\ Jan 07 02:02:31 Doh! Jan 07 02:02:42 Who runs the master server now? Jan 07 02:04:13 TacticalJoke: there's a few new ones I added Jan 07 02:05:07 skbmaster.ath.cx:28000 Jan 07 02:05:37 tlml.pu.net:28000 **** ENDING LOGGING AT Sat Jan 07 03:00:01 2017