**** BEGIN LOGGING AT Mon Dec 19 03:00:00 2016 Dec 19 03:05:44 hey guys Dec 19 03:05:48 I have a drawable (shape) Dec 19 03:05:59 am I able to set its border (stroke) colour programatically Dec 19 03:06:05 (ie, not using colour filter) Dec 19 05:12:47 Hey, anyone around to help me with my issue? http://forum.xda-developers.com/chef-central/android/help-kernel-problems-building-cm13-zhn5y-t3521842 Dec 19 05:13:08 oh wait, wrong channel srry Dec 19 07:23:46 hey Dec 19 07:23:51 anybody around? Dec 19 07:25:33 maybe Dec 19 07:28:33 applesjgtl: no Dec 19 07:28:44 oh, f##k... Dec 19 07:28:52 Yes, I'm here Dec 19 07:29:30 Melatonina shud be modding r/programmerhumor Dec 19 07:29:49 * raoul11 thepooshes thepoosh Dec 19 07:30:02 Hello Dec 19 07:30:51 When listing connected devices with adb, my phone is shown as "0123456789ABCDEF device" - how can I change this to something more non-generic? Dec 19 07:32:41 Drzacek: does it happen always? Dec 19 07:32:47 raoul11: HAI Dec 19 07:32:58 hi buddy Dec 19 07:33:04 Drzacek: are you connecting multiple devices at the same time? Dec 19 07:33:18 raoul11: I feel proud, last night I went to the android academy thing Dec 19 07:33:34 Melatonina, I remember that it showed ZTE the first time I used, but since then it is always 0-f device. I don't connect multiple devices Dec 19 07:33:36 and removed a bunch of clusterfuck code from someones project Dec 19 07:33:42 lol Dec 19 07:33:51 someone wrote a recyclerview adapter Dec 19 07:33:52 gib examples of noob fuckups plz Dec 19 07:33:58 that had a CursorAdapter member Dec 19 07:34:09 in order to use it with a Cursor Dec 19 07:34:12 foe what point? Dec 19 07:34:25 in order to have the bindView from CursorAdapter Dec 19 07:34:34 instead of moving the cursor manually Dec 19 07:34:40 Drzacek: recently my Nexus 5x started to "disconnect" from ADB. When that happens it shows with a code like that and a "offline" label. I have disable and re-enable debugging to make it work. I don't know if it's related to your problem Dec 19 07:34:54 "I have to..." Dec 19 07:35:14 is that where you mentor thepoosh ? Dec 19 07:35:19 yep Dec 19 07:35:39 oh great, it crashed. Guess it doesn't like that when it is connected Dec 19 07:37:24 thepoosh http://i.imgur.com/BaGXGxc.png Dec 19 07:37:32 interested? Dec 19 07:37:39 no, it doesn't look like thats the cause. Since then I did multiple factory resets (not related to this issue), activated/deactivated usb debugging many times. Shouldn't there be some config file with device name etc? Dec 19 07:37:52 sounds interesting Dec 19 07:37:56 but fucking hybrid Dec 19 07:37:57 so no Dec 19 07:38:03 look at the location Dec 19 07:38:05 \: Dec 19 07:38:29 I saw Dec 19 07:38:33 but I'm no racist Dec 19 07:38:35 raoul11: http://imgur.com/a/bApmN Dec 19 07:38:41 got this from someone this morning Dec 19 07:39:10 seems like a cushion government job Dec 19 07:39:21 \o/ Dec 19 07:39:22 by the illegal requirements Dec 19 07:39:27 go for it Dec 19 07:39:31 right Dec 19 07:39:58 avia-app Dec 19 07:40:14 what's that? Dec 19 07:40:19 aviation? Dec 19 07:40:42 raoul11: even better, infosec Dec 19 07:40:43 http://avia-app.org/ Dec 19 07:41:05 do you know google push serviec? Dec 19 07:41:08 hehe Dec 19 07:41:13 love that package name Dec 19 07:41:20 i push like a baws Dec 19 07:41:48 what a baws app ux Dec 19 07:41:57 avia avia Dec 19 07:42:35 \: Dec 19 07:42:59 avia security Dec 19 07:43:47 squ: do you know them? Dec 19 07:43:54 no Dec 19 07:44:27 Drzacek: never used any config file. Usually names are detected automatically Dec 19 07:45:01 any hot chicks on the android academy thepoosh Dec 19 07:45:08 or are they all guys named dima Dec 19 07:45:24 :) Dec 19 07:45:27 aren't you married? Dec 19 07:45:48 i am Dec 19 07:46:00 thepoosh: have you challenged that lesbian? Dec 19 07:46:01 well, I need to have a chat with you Mrs. Dec 19 07:46:09 but she still allows me to stare at other gurls Dec 19 07:46:15 anywho, these are 3 of the organizers Dec 19 07:46:15 https://scontent-frt3-1.xx.fbcdn.net/v/t31.0-8/15003364_10154697202099591_4142715108033959728_o.jpg?oh=92f87ec6b99969943dfb192417daebd2&oe=58F07AFA Dec 19 07:46:33 nice Dec 19 07:46:41 that girl Dec 19 07:46:43 Hi guys, how can i have a main LinearLayout ( orientation=vertical with scroll view + ads view ) but when i open the keyboard the ads is pulled up and showed above the keyboard also if i set windowSoftInputMode="adjustPan Dec 19 07:47:01 hi all how do i Mockito test this button. when it click it calls saveItem(). //when button is click save the item in the DB mAddCartBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { saveItem(); } }); Dec 19 07:47:15 skin1980: and droidace: use a paste service for code Dec 19 07:47:20 i.e. pastebin or pastie Dec 19 07:47:24 thepoosh: what skill she is proficent with Dec 19 07:47:30 okay my bad Dec 19 07:47:40 Melatonina: oh fsck! Dec 19 07:47:54 squ: she runs the android dept. in some company Dec 19 07:48:03 gives about half the lectures Dec 19 07:48:10 the issue I'm having is I've implemented an HH_MM picker that produces time in ms but for some reason whenever I try to grab the duration as an int it gives me the error "Non static method getDuration() cannot be resolved from a static context" Dec 19 07:48:11 http://pastebin.com/HkCY1rYv Dec 19 07:48:14 lol sku Dec 19 07:48:25 here i would like to mock test this one Dec 19 07:48:59 thepoosh: http://pastebin.com/Nd7ru6et Dec 19 07:49:00 droidace: https://goo.gl/079lsm Dec 19 07:49:01 hoping to set a study timer for x amount of time - If you pause it, then add a penalty (either you choose the penalty as an integer like +5m or automatically add on penalty time based on some multiple of the time paused) Dec 19 07:49:16 I Dec 19 07:49:20 I'm using this https://github.com/svenwiegand/time-duration-picker Dec 19 07:49:25 skin1980: what am i looking at? Dec 19 07:49:38 thanks thepoosh but im not sure if that is the right link? Dec 19 07:49:48 the main layout... when softkeyboard opens the ads view is pulled up above keyboard Dec 19 07:49:57 thepoosh: i want prevent this Dec 19 07:50:47 https://www.irccloud.com/pastebin/OnTw8R9b/getting%20an%20error%20on%20getDuration() Dec 19 07:51:10 skin1980: you need to set the adjustPan in the manifest to prevent that Dec 19 07:51:28 thepoosh: already set it.. nothing change Dec 19 07:51:44 I feel like I'm writing a "hello world" app and failing Dec 19 07:51:46 to what? Dec 19 07:51:59 applesjgtl: what's up? Dec 19 07:52:41 applesjgtl: looked at the paste, getDuration is not a static method, meaning you must have a TimeDurationPicker instance in order to invoke that method Dec 19 07:52:41 thepoosh: i think that the issue is because of the linearlayout... Dec 19 07:52:43 thepoosh: I'm writing a countdown timer but can't seem to figure out how to grab the output from the time picker dialogue Dec 19 07:53:22 thepoosh: I have PickerDialogFragment.java here Dec 19 07:53:25 https://www.irccloud.com/pastebin/gQt1cqQ0/ Dec 19 07:53:53 using this, pretty sure I called it correctly in Gradle as it builds alright https://github.com/svenwiegand/time-duration-picker Dec 19 07:54:11 applesjgtl: https://github.com/svenwiegand/time-duration-picker/blob/master/time-duration-picker/src/main/java/mobi/upod/timedurationpicker/TimeDurationPicker.java#L186 Dec 19 07:54:18 see that that method is not static Dec 19 07:54:26 and cannot be called like you did Dec 19 07:54:43 you MUST create a new instance of the picker before calling getDuration Dec 19 07:54:48 thepoosh: I guess I understand I can't call it like that, but I'm confused on how /to/ call it Dec 19 07:54:52 OH Dec 19 07:56:54 thepoosh: do I simply move that down after the pickerdialog or? Dec 19 07:57:28 applesjgtl: you are asking for a property of a timepicker but you don't actually have one to ask about Dec 19 07:57:41 first you create/inflate one and then you ask questions about it Dec 19 07:58:03 so is this purely a UI element then? https://cl.ly/iUso Dec 19 07:58:24 is it part of your layout.xml file? Dec 19 07:58:40 well yes, but it's also responsive Dec 19 07:58:52 when I click OK I get the response 1800000 Dec 19 07:58:58 in my log Dec 19 07:59:02 thepoosh: solved...tnx anyway Dec 19 07:59:14 cool cool cool Dec 19 08:00:49 thepoosh: i called in my activity this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); so probably override the manifest option Dec 19 08:02:38 thepoosh: if getDuration is wrong, how do I input the variable into the CountDownTimer? Dec 19 08:03:39 didn't understand the question Dec 19 09:24:50 hi all Dec 19 09:25:17 guys, I'm trying to find when a vpn connection is established by my app. Dec 19 09:26:13 but CONNECTIVITY_ACTION is not sent for vpns in api level 14. Dec 19 09:26:26 any idea how to detect this change? Dec 19 09:27:59 an idiotic way is to check interfaces all the time and trigger event when interface is up. Dec 19 09:28:14 any other method comes to mind? Dec 19 09:34:32 I updated my intellij and now stuff that was working is reporting cannot run as incorrect major minor version Dec 19 09:41:56 Hi, is there a way to define default values for missing json fields in gson Dec 19 09:44:28 in model class you could provide the class variable = something Dec 19 09:45:26 So if its missing in json, it'll take that value? Sweet! Dec 19 09:45:52 Much better than using a custom deserializer in model :P Dec 19 09:46:10 or in other words it creates the object and overwrite its values if they are present in json Dec 19 09:46:36 I wish this was configurable in Gson instance, like set all strings to "" instead of null Dec 19 10:38:26 astroduck, define your own type adapter and then properly handle it? Dec 19 10:49:24 Mavrik: ohithere Dec 19 11:31:39 My simple view with border draws itself (variable) multiple times (http://pasteboard.co/bEYOAmK6E.png). Is this just an emulator problem, or what have I done wrong (I've been searching and can't find any reference) Dec 19 11:49:08 hi guys, how recommend me to manage the user registration and login ? is PHP recommended for server side? i works mainly with python but PHP is ok too. Dec 19 11:49:44 and another question, someone know a good tutorial about that? i was testing that function using volley, but i see that android studio come with a login template Dec 19 12:20:26 thepoosh, ^^ Dec 19 12:20:47 What are the guidelines for having multiple floating action buttons vs performing several actions with one (expanding) floating action button? Dec 19 12:21:37 should icon visibility on a map even be triggerd with a FAB? Dec 19 12:26:05 what have i missed? Dec 19 12:28:07 And how should I indicate that a FAB flings out new options? Dec 19 12:31:31 Should I have both? 2 FABs plus make them expandable? Dec 19 12:41:56 Funny how google violates it's own design guidelines... Dec 19 12:43:03 * raoul11 thepooshes thepoosh Dec 19 12:43:46 <_rm> Syzygy: that's the point of guidelines like that; gotta know 'em to know what and how to break them :) Dec 19 12:45:06 My simple view with border draws itself (variable) multiple times (http://pasteboard.co/bEYOAmK6E.png). Is this just an emulator problem, or what have I done wrong (I've been searching and can't find any reference) Dec 19 12:51:31 raoul11: this type of aggressiveness will not stand! Dec 19 12:51:50 i ment that in a good way Dec 19 12:52:06 it's ok Dec 19 12:52:16 i mean, the rug really tied the room together Dec 19 13:34:44 hi. I'm using retrofit to call a soap webservice. Every method in the WSDL doesn't have a soapAction (It is an empty string) and my API is this: http://pastebin.com/fhkbif9G (I have added "test" but it doens't even work with an empty string "") and i'm still getting "no SOAPAction header" error on the server Dec 19 13:35:13 has anyone experience with this? Dec 19 14:44:05 I would like to implement some form of tooltip http://stackoverflow.com/questions/17653320/android-quickaction-like-dialog-window-to-display-other-components - for that I need get view for concrete ID, is there a way to do that universally? Dec 19 15:53:44 * thepoosh raoul11s raoul11 Dec 19 15:54:05 u learned that from slumianski? Dec 19 15:54:16 HEY! Dec 19 15:54:26 if you were offended by my warm manner Dec 19 15:54:35 it's your fault but I'm sorry(ish) Dec 19 15:56:12 <3 Dec 19 15:57:13 raoul11: have been migrating internal system to firebase remote config Dec 19 15:57:16 it sucks Dec 19 15:58:12 good Dec 19 15:58:18 teach me later how to do it Dec 19 15:58:28 my 3 users might appreciate it Dec 19 16:01:48 wtf Dec 19 16:02:07 ? Dec 19 16:02:09 what happened Dec 19 16:02:17 it's just a very tedious job Dec 19 16:07:23 hello to Israel Dec 19 16:11:16 How can I tell which kernel version this patch was fixed for? https://android.googlesource.com/kernel/common.git/+/c70fc22aa9f442379b1f64e863b8adf8da2356e8%5E%21/#F0 Dec 19 16:22:30 barq, wrong channel, old obviously since it dates from 2012, and version is in the makefile... among other places Dec 19 16:41:13 adq: wrong channel? What is the right channel then Dec 19 16:41:30 (learn to) read the topic Dec 19 16:48:25 My simple view with border draws itself (variable) multiple times (http://pasteboard.co/bEYOAmK6E.png). Is this just an emulator problem, or what have I done wrong (I've been searching and can't find any reference) Dec 19 16:55:15 MarkRS: you are not giving any information useful to understand your problem. Dec 19 16:55:44 Hi Melatonina. Sorry about that. What would be helpful? Dec 19 16:56:11 I've created a relativeview, about the only adjustment is adding a border, I thought. Dec 19 16:56:14 kind of view, source code, markup Dec 19 16:57:02 try on a real device, genymotion or something to know if it comes from the emulator or not Dec 19 16:57:21 also other apps should probably be affected is your emulator at fault Dec 19 16:57:28 relativelayout, containing a text view, a frame layout and an image view. Set up in oncreate, just as AS creates it Dec 19 16:57:29 s/is/if/ Dec 19 16:57:48 Yeah, unfortunately I don't have access to a real device :( Dec 19 17:01:29 All XML defined, here http://pastebin.com/Lgdyh0Yz Dec 19 17:02:21 I think it's produced a single border once, usually it's about seven of them Dec 19 17:02:25 adq: Thanks for the brilliant input. I get a binder transaction failure, so I do think this is the right channel. Dec 19 18:36:49 * raoul11 thepooshes thepoosh Dec 19 18:36:54 ohithere Dec 19 18:36:55 yustillonline? Dec 19 18:46:36 guys i'm using notificationlistener service to capture the notifications. But the whatsapp notifications gets in this way like 5 message from 2 chats. how can i get individual messages? Dec 19 18:46:44 doing some weird changes to our app login flow ... can the permission asking model ( you know grant location/storage/etc..) be opened without an fragment ? Say from a service ? Dec 19 18:48:47 vb0x3f: You can only get the contents of notifications as they’re posted Dec 19 18:49:02 if whatsapp doesn’t put the contents of the message in the notification, you’re SOL Dec 19 18:49:55 but we can see the individual message after pushing the notification down. So it must be there in the notification right? Dec 19 18:50:24 it might be Dec 19 19:22:51 http://www.androidcentral.com/editors-desk-android-trends-2017 Dec 19 19:24:25 #2 - lol Dec 19 19:29:36 i don’t see #2 happening anytime soon Dec 19 19:38:04 @JakeWharton What was the reasoning behind some of the syntax changes in Butterknife 8? I've found myself still opting for Butterknife 7 in subsequent projects due to familiarity. Dec 19 19:38:22 If there much difference between @BindView and the old @Bind annotations? Dec 19 19:38:34 Is* Dec 19 19:39:37 No Dec 19 19:39:42 Find replace and move on Dec 19 19:42:06 Then why the change to the more verbose annotation name? Is it just a preference thing or is it something else? Dec 19 20:27:20 g00s: hi hi Dec 19 20:27:28 raoul11: ! Dec 19 20:27:37 was I too harsh? https://redd.it/5j5iv5 Dec 19 20:37:54 thepoosh you were a bit liek dis: http://a.fod4.com/misc/Attack%20Goat%20Tackle.gif Dec 19 20:38:11 :) Dec 19 20:38:57 I need to get view for menu item, but it returns null when called from onCreateOptionsMenu - it does not exist yet. What part of activity life cycle https://raw.githubusercontent.com/xxv/android-lifecycle/master/complete_android_fragment_lifecycle.png is appropriate for that? Dec 19 20:39:23 is there some method where can be said that everything is already loaded? Dec 19 20:39:28 can you please suggest me good course to buy/rent online for learning Android programming, I am also readind android tutorials from android website but one more source/tutorial/course will be better for me. Dec 19 20:40:55 jennie watch thenewboston vids on youtube Dec 19 20:41:30 ok, sounds good, raoul11 any book you would like to suggest for noob? Dec 19 20:41:43 yes Dec 19 20:41:53 Android Studio Development Essentials - Android 6 Edition Dec 19 20:42:08 Can I pM you? Dec 19 20:42:13 sure Dec 19 20:52:03 Hey. Is there any equivalent show permission rationale method for api <23? Dec 19 20:52:24 Even if its through use of an external library Dec 19 20:55:45 So I'm using Retrofit and I create a Call from an Activity and I enqueue it, giving a Callback. The Callback will update the text of a TextView... Dec 19 20:57:52 Oh, sorry; replace Activity with Fragment. Shortly after enqueue() the user tabs the Back button, and the Fragment is gone. Later the Callback returns and tries to set the TextView and I get a crash because the Fragment is not attached to an Activity. Dec 19 20:58:21 Cancel the call Dec 19 20:58:24 What's the general approach to fixing this? Cancel the Call in onPause? Dec 19 20:58:35 Right. Dec 19 20:59:05 I was thinking perhaps using a WeakReferences but I'm not very familiar with those. Dec 19 21:02:44 I would avoid them Dec 19 21:09:25 They're one option I've been considering. Lately I've encountered quite a lot of bugs regarding callbacks to Fragments or Activities not longer being alive, e.g. after configuration change or navigating back and then forth again (and not just using Retrofit, also other task queues). So I've refactored nearly all Callbacks to Listeners using publish/subscribe instead, ie. add Listeners onResume() and remove again onPause(). It feels a lot more robust. Dec 19 21:10:48 I'm beginning to think that letting Activities implements Callbacks is basic design error given the rather volatile nature of Activities. Dec 19 21:11:14 Everything from the activity up should be considered transient Dec 19 21:11:44 So it's wise to separate them from the actual logic and state dealing with async things Dec 19 21:18:02 Android seems to easy to begin with, but then you realize that you want an app that's also *stable*... Dec 19 21:32:22 Heh, next thing after adding a Listener is to also pair it with the Handler that's supposed to execute Listener's method. Dec 19 22:05:09 I need help with some java and threads Dec 19 22:05:52 what's an elegant way to send work to another thread and make it come back to the middle of the function where it was called Dec 19 22:06:09 this is my question http://stackoverflow.com/questions/41047432/animate-android-views-in-order/41049467#41049467 Dec 19 22:10:32 mountSin: you need to learn how to use continuations. C# has the concept of async methods which allow you to write the code linearly, as you would like to do. Java has not such construct and you have to break the code in "before the thread start" and "after the thread completion" (= the continuation). Dec 19 22:11:14 mountSin: you can then create an AsyncTask and call the continuation in the onPostExecute() Dec 19 22:11:44 mountSin: or put the code of the continuation in the onPostExecute() method Dec 19 22:57:55 Hi, I'm using HttpURLConnection in an IntentService, but everytime I call getOutputStream I get a Permission Denied error, I have the INTERNET permission...?! Dec 19 23:00:32 gho: stacktrace? Dec 19 23:02:06 leeds: java.net.Socket Dec 19 23:05:18 leeds: http://pastebin.com/zZ5U1gdf Dec 19 23:06:55 that's not a stacktrace Dec 19 23:09:04 Leeds: sorry here is the strace: http://pastebin.com/HTs9dq4F Dec 19 23:14:43 next question is, are you *sure* you have the INTERNET permission? Dec 19 23:15:25 go check Dec 19 23:16:19 ok I'd defined the permission inside the application tag in the manifest, that was the problem Dec 19 23:16:23 thanks for your help Dec 19 23:16:31 there we go :) Dec 19 23:16:36 is the same true of use-feature, should be outside application? Dec 19 23:17:50 uses-permission and uses-feature both go under the root tag, rather than under er, Dec 19 23:18:12 https://developer.android.com/guide/topics/manifest/manifest-intro.html Dec 19 23:18:22 ok thanks Dec 19 23:21:03 anyone here use Remix OS? Dec 19 23:21:14 just trying to get a few opinions on it Dec 19 23:35:46 LissajousPattern: Wrong channel? Dec 19 23:36:46 is there a dedicated remix os channel? Dec 19 23:37:09 neat: https://www.facebook.com/notes/mark-zuckerberg/building-jarvis/10154361492931634 Dec 20 01:11:03 Hallo all, is there prob with adb server 1.4.0 like "The system cannot find the file specified. (2)"? **** ENDING LOGGING AT Tue Dec 20 03:00:01 2016