**** BEGIN LOGGING AT Sun Jan 08 03:00:01 2017 Jan 08 03:18:21 keur: Never used Volley, but I can say for sure that static fields are not set to `null` if an Android Activity finishes. Jan 08 03:18:41 Do you have a link to the documentation item you're referring to? Jan 08 03:47:16 found another odd issue. I have content sitting in front of my appbar by using the behavior_overlapTop attribute. It works but only if I have a "enterAlwaysCollapsed" scrollflag set on my collapsing toolbar. If I remove it the content sits under the collapsingtoolbar Jan 08 03:47:57 I have no problem leaving it, but does anyone know why that might be occuring? I dont see what the scroll flag has to do with such elevation changes Jan 08 05:03:03 is it possible to change the gravity of the TextInputLayout hint? Jan 08 05:03:29 I have a TextInputLayout and a TextInputEditText. I want my EditText hint gravity to be centered, but my TextInputLayout gravity to be top left Jan 08 05:12:33 should just be android:gravity or android:foregroundGravity Jan 08 06:45:18 * raoul11 thepooshes thepoosh Jan 08 06:45:31 shavuatov buddy Jan 08 06:45:35 ohithere Jan 08 06:45:46 sup dudermeister? Jan 08 06:46:02 thepoosh Jan 08 06:46:16 that talk on the RV on steroids Jan 08 06:46:19 ++ Jan 08 06:46:27 yes man, it was amazing Jan 08 06:46:33 that chick is the female version of you Jan 08 06:46:33 sent it everywhere Jan 08 06:46:37 ha! Jan 08 06:46:50 also came in a good time thepoosh Jan 08 06:46:57 since i am RVing a lot lately Jan 08 06:47:01 there is never a bad time for that Jan 08 06:47:03 and will need to do a lot more soon Jan 08 06:47:10 also, came in the best time for up internally Jan 08 06:47:22 she has a point why they didnt bother with click events Jan 08 06:47:25 got a guy to not use viewpager and use RV instead Jan 08 06:47:45 why not both thepoosh /: Jan 08 06:48:04 it was for a filter strip at the bottom of the view Jan 08 06:48:11 oh Jan 08 06:48:15 adding fragments instead of cards was dumb Jan 08 06:48:22 and I'm happy I found this to use instead Jan 08 06:48:27 RV cant handle fragments no? Jan 08 06:49:00 nope, but there is no reason to use frags when cards are good enough Jan 08 06:49:18 i still dont get why did they add all those methods nd classes, but didnt bother with a standarized click event Jan 08 06:49:58 am sure this was asked many many times Jan 08 06:50:01 they added all the modules you can use but clicks are not modules Jan 08 06:50:36 but why not add a standard way Jan 08 06:50:48 u see SO and see a fuckton of approachs to it Jan 08 06:51:23 it seems very strait forward for me Jan 08 06:51:53 to you Jan 08 06:52:34 u use cardviews much thepoosh ? Jan 08 06:52:40 nope Jan 08 06:52:55 but we have a few use-cases for it Jan 08 06:52:57 like 2-3 Jan 08 06:54:20 do you have google autocomplete on your app? Jan 08 06:55:06 no Jan 08 06:56:58 need to implement this today Jan 08 06:57:10 ios dude said it was a pain Jan 08 06:57:48 sorry to hear Jan 08 08:16:44 Hi folks. Is it possible that existing BaseAdapters lose data when the app is running out of VM memory? Jan 08 08:17:15 I´m having Out Of Memory crashes for some users, but also fatal crashes related to BaseAdapter which I can´t reproduce Jan 08 08:17:30 So I´m unsure if the memory issues are related or not Jan 08 09:00:37 Hi. Is gradle wrapper included in the SDK? Jan 08 09:07:50 in SDK itself i dont think so Jan 08 09:11:51 Ashiren: Is it downloaded when I run the gradlew script? Jan 08 09:12:25 Because there is a distribution url for gradle inside gradle-wrapper.properties Jan 08 09:15:04 that would be android studio Jan 08 09:15:11 i assumed by sdk you meant android-sdk Jan 08 09:15:58 ah and yes, gradlew downloads it Jan 08 09:49:03 lol thepoosh Jan 08 09:49:16 did u hear bout bibi&mozes? Jan 08 09:53:20 the cigar thingie? Jan 08 09:56:37 raoul11: the israel is strong in this one: https://www.youtube.com/watch?v=EXHQsLicWR0 Jan 08 09:57:02 nooooo thepoosh Jan 08 09:57:09 open amit_segal on twitter Jan 08 09:57:28 frank underwood is a pussycat compares to this stuff Jan 08 09:57:42 * thepoosh reading Jan 08 09:58:29 raoul11: all I see is this; https://twitter.com/amitsegal22/status/781740759829602304 Jan 08 09:58:57 https://twitter.com/amit_segal/status/818025024330354688 Jan 08 09:59:09 Hi, where do the smartphone hardware geniuses hide on the net ? I need to talk to someone about cameras and their compatibility ( or not ) throughout different makes and models. Jan 08 09:59:19 raoul11: I though Mozes was his archnemisis Jan 08 09:59:24 lol Jan 08 09:59:26 yeah Jan 08 09:59:31 such a twist Jan 08 10:00:24 raoul11: #israel is the place for this, not #android-dev Jan 08 10:00:29 come over, it's fun Jan 08 10:00:46 NeoFrontier: you're gonna have to ask specific questions in order to get answers Jan 08 10:01:07 #israel on freenode? Jan 08 10:01:19 Yeah but where thepoosh its a hardware question. Jan 08 10:03:25 #android Jan 08 10:05:12 mmm Jan 08 10:05:14 lets see Jan 08 10:52:43 thepoosh: I watched the Recycler View video too. Thanks Jan 08 10:53:28 thepoosh: I don't like that kind of videos but it was interesting. Jan 08 11:00:35 Melatonina: those type of videos can be either gold or super-meh Jan 08 11:59:30 So my Service requires certain permissions. Should it Service request them? Or should one of my Activities? I want the Service to always start automatically so it's not necessary started by an Activity. Jan 08 12:01:33 Hm, I should catch SecurityException in any case whenever I access something that requires permissions because they can be revoked by the user at any time. Jan 08 12:02:01 Is there a software for PC /Linux that would pair with my android phone and I be able to send SMS via native android SMS app internally via copy paste in my computer? Jan 08 12:04:39 Isn't there some plug-in for the Google Chrome browser to do this? I don't use Crome myself and generally don't like browser (nor their plug-ins) but prefer native apps. Jan 08 12:04:56 Sircle: better asked on #android? Jan 08 12:05:01 Zta: Permissions are requested by an Activity. Don't catch the exception, just check before you use whatever requires permission. If the user revokes a permission your process is killed, in which case you check when it's started again Jan 08 12:15:06 Really? The process it killed when permissions change? Or when lowered? Jan 08 12:17:54 Sircle: Or #linux/#ubuntu/#rathead/etc.. Jan 08 12:18:42 Zta: Melatonina hm there used to be a "PC suite" for symbion phones, isnt there a similer by google for android? Jan 08 12:19:24 Sircle: I just Googled this which look like a decent hack: https://bbs.archlinux.org/viewtopic.php?pid=1462343#p1462343 Jan 08 12:20:32 (We're getting off-topic, sorry.) Jan 08 12:21:35 Zta: that needs a rooted phone Jan 08 13:24:01 thepoosh, just did some useless cusses checker on userinputs for usernames Jan 08 13:24:10 it feels like norton security Jan 08 13:29:47 hehe Jan 08 13:29:53 norton32 Jan 08 13:30:11 raoul11: are you old enough to remember norton file explorer? Jan 08 13:31:11 YES Jan 08 13:31:17 am old as fuk m8 Jan 08 13:31:23 I miss that blue screen Jan 08 13:32:46 so i got a 250 badwords dict thepoosh Jan 08 13:33:12 but i can see a lilsh!the@d bypassin it like this Jan 08 14:06:00 hi rao! Jan 08 14:07:12 sup mela Jan 08 14:08:13 hi Jan 08 14:11:05 I'm reviewing some old code. That is last month's code. Replacing callbacks with observables Jan 08 14:11:11 hi homa_ Jan 08 14:11:26 hi Melatonina Jan 08 14:12:39 Hi! Jan 08 14:12:59 Unable to execute dex: Multiple dex files define Landroid/support/graphics/drawable/AnimatedVectorDrawableCompat Jan 08 14:13:17 cleanup Jan 08 14:14:00 not helping : P Jan 08 14:31:29 bye Jan 08 14:32:48 bye Jan 08 14:48:46 There is no support for recycler view's adapter in RxAndroid, right? Jan 08 17:36:13 raoul11: hi hi Jan 08 17:40:02 well, I'm not sure it's a good idea but I'm planning on writing an annotation processor to clone a git repo and parse a file from there Jan 08 17:40:09 to generate analytics code Jan 08 17:40:21 and something tells me it's overkill Jan 08 17:41:46 Why clone the whole repo if you just need one file? Jan 08 17:43:01 because in order to get access to the raw file on bitbucket I'll have to Jan 08 17:43:07 unless there is a better option Jan 08 17:43:13 which I would love to hear Jan 08 17:50:32 hi Jan 08 17:50:49 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 08 17:50:50 hi Jan 08 17:50:54 g00s: super meh Jan 08 17:51:15 is that a question? Jan 08 17:51:22 thepoosh indeed (meh) Jan 08 17:52:02 cristian_c: cool story bro Jan 08 17:52:12 i don't really pay attention to /r/androidev or androidweekly any more though Jan 08 17:52:32 cristian_c: I wish my life was as cool as yours Jan 08 17:53:54 widget.xml: http://pastebin.com/zwPeFfuK Jan 08 17:55:04 How could I change layout in order to make the imageview appearing again without inserting new bad effects? Jan 08 17:55:14 any ideas? Jan 08 17:55:21 cristian_c: the imagebutton takes the whole height, the second is out Jan 08 17:55:46 yes, it's roght Jan 08 17:55:51 cristian_c: second = ImageView Jan 08 17:55:57 cristian_c: don't do it Jan 08 17:55:58 *right Jan 08 17:56:12 How could OI solve, instead? Jan 08 17:56:17 If the second has a fixed height Jan 08 17:56:31 you may want the first to have height="0dp" weight="1" Jan 08 17:56:42 yeah, it has to be always 4dp Jan 08 17:57:07 then do as I wrote Jan 08 17:57:10 ah, ok Jan 08 17:57:27 but 0sp is a foxed size Jan 08 17:57:32 *0dp Jan 08 17:57:36 *fixed Jan 08 17:57:42 * cristian_c dislexic Jan 08 17:58:13 but, I'll try btw Jan 08 17:58:53 * cristian_c is afraid maybe this is not the definitive attempt Jan 08 17:59:15 I hope to solve definitely (I've tried many methods) Jan 08 18:01:03 You are not dyslexic Jan 08 18:01:21 I've typed wrong letters on this virtual keyboard Jan 08 18:01:37 which is not the definition of being dyslexic Jan 08 18:06:36 ok, I'm looking at weight property Jan 08 18:07:29 ok, layout_weight Jan 08 18:11:23 Melatonina: :O Jan 08 18:11:27 good widget Jan 08 18:11:37 (a bit bigger, but good) Jan 08 18:11:45 screenshot coming Jan 08 18:12:01 yeah, we are waiting to see your screenshot Jan 08 18:12:26 * Melatonina stares at the screen impatiently Jan 08 18:14:18 ok, done, uploading on imgur... Jan 08 18:15:35 http://imgur.com/a/1Pdmf Jan 08 18:16:21 Cool Jan 08 18:16:22 my widget is widget right od first one Jan 08 18:16:29 *right of Jan 08 18:16:31 Good job Jan 08 18:16:37 I've done nothing Jan 08 18:16:43 Are you happy with it? Jan 08 18:17:02 no bad effects, only it's bigger than the left widget Jan 08 18:17:15 It'snalmost perfect Jan 08 18:17:23 Why are you not just using a background? Jan 08 18:17:44 imagebutton uses a background Jan 08 18:18:40 Melatonina: ok, it's good, anyway Jan 08 18:18:45 difference is minimal Jan 08 18:19:02 mobidevelop: ah, sorry, I've disabled the icon Jan 08 18:19:09 * cristian_c didn't understand Jan 08 18:19:45 mobidevelop: I've disabled the icon, so I could see the size in the tests Jan 08 18:20:12 size of the icon respect of background Jan 08 18:21:02 I guess if you are trying to make something like the left, just make a single ImageButton with the background and icon - a container plus image button and image view is overkill Jan 08 18:21:22 (if it's centered, etc...) Jan 08 18:22:30 mobidevelop: currently, widget (by linearlayout) contains two objects: an imagebutton and an imageview Jan 08 18:22:46 imagebutton is just icon + background Jan 08 18:23:06 imageview is the bottom strip, of 4dp length Jan 08 18:23:27 Yes, but you could accomplish the exact same thing with the ImageButton background Jan 08 18:23:48 ah, you mean adding stripe to imagebutton Jan 08 18:24:01 so, only imagebutton for the widget Jan 08 18:24:05 Indeed Jan 08 18:25:27 btw,the current today version works, if you looked at my several screenshot, you'd see many 'freaks/monster' widgets attempts Jan 08 18:25:34 and very awful Jan 08 18:26:23 the last widget is better than all the previous attempts until now Jan 08 18:27:12 omg Jan 08 18:37:08 cristian_c: what are you going to do now? Jan 08 18:37:37 after widget creation? Jan 08 18:38:25 it's a widget for usbumount app (activity is jot very suitable in order to use the app) Jan 08 18:40:07 using a widget with a holo menu is better and smart (power control widget/toggle, like sync, wifi, etc... ) Jan 08 18:50:33 hello everyone Jan 08 18:50:51 any android developer from Persia ? Jan 08 19:04:06 when using gridlayout, how can i set the margins for each row evenly? Jan 08 19:04:46 spacing between rows seems to depend the highest view in the row Jan 08 19:16:32 I have a CardView with layout_behavior="@string/bottom_sheet_behavior", when i expand it it opens to full size, but then snaps back to about half size for some reason. any idea why that might be the case? Jan 08 19:24:47 when I expand it, the bottom sheet callback gets called, first with STATE_SETTLING and then with STATE_EXPANDED. When I manually drag it to be fully expanded it, also has STATE_EXPANDED, even though they're expanded to different sizes. Jan 08 20:13:56 I'm trying to initiate a TileService from onStartCommand, but: https://gist.github.com/munowse/e365b509d2eb7aad7ab7e24db61944e2 Jan 08 20:16:21 it seems that the tile is null, thought i initialized it Jan 08 20:16:25 *though Jan 08 20:22:58 You don't initialize it, you call a method that's defined as returning a Tile. In your case it's returning null instead of a Tile instance Jan 08 20:23:10 Chances are you're using TileService wrong, try finding a tutorial or something Jan 08 20:24:11 Or well, you initialized it as null Jan 08 20:26:58 SimonVT It seems as if I can't call getQSTile() within onStartCommand, as it just returns null Jan 08 20:27:16 If I call it elsewhere, in a method that isn't inherited, then it works fine Jan 08 20:27:49 There you go Jan 08 20:28:36 SimonVT but where should I call it, so its still accessible to onStartCommand? Jan 08 20:29:32 If it returns null in onStartCommand, then it wont be accessible in onStartCommand Jan 08 20:30:12 SimonVT ok. Jan 08 20:42:17 Does anyone know an efficent way to change variables of a running service without repetedly calling onStartService with passed vars in a bundle? Jan 09 01:02:59 Evening. Jan 09 01:11:27 Evenin'. Jan 09 02:20:43 Hm, I'm trying to increase the font size in android studio, I'm in File/Settings/Editor/Font but the actual font size input is grayed out. Jan 09 02:21:21 yes, thats because you have to copy the default profile to a custom one Jan 09 02:21:35 look at the top of the dialog Jan 09 02:22:37 Ah-hah, have to do save as and then it's editable. Jan 09 02:30:45 hey there, i'm trying to make a little bit of modular code, and it needs to register callbacks for USB devices being connected/disconnected. Jan 09 02:30:49 the issue is, you want to register/unregister receivers for this in an activity's code - this means anywhere i want to use this code, i'll need to put extra code calling the appropriate methods of my code doing this. Jan 09 02:30:56 is there any way to register *extra* callbacks for onStart/onStop? Jan 09 02:31:17 like, just given a Context Jan 09 02:31:23 can i register extra callbacks for it Jan 09 02:31:30 or am i fundamentally confused on things Jan 09 02:34:26 Moggle: I'm confused trying to understand what you want to do :-) Jan 09 02:34:44 okay, so say normal code wants to register usb devices Jan 09 02:34:59 you'll create an intent filter and call context.registerReceiver Jan 09 02:35:06 Right. Jan 09 02:35:12 you're supposed to call unregisterReceiver in the onStop method in turn, right? Jan 09 02:35:23 i'm making a library of sorts Jan 09 02:35:39 i would like it to "automatically" deal with that so the end user just needs to create an instance of a class in my code Jan 09 02:35:48 and it'll handle everything without them needing to change three separate locations Jan 09 02:36:05 so ideally, in the onCreate method of an activity, they'll do whatever = new MoggleClass() Jan 09 02:36:23 and the MoggleClass sets up callbacks for onStop/onStart where it can do the registering Jan 09 02:36:27 Moggle: And then in MoggleClass's constructor, it'll call context.registerReceiver? Jan 09 02:36:30 right. Jan 09 02:36:33 though ideally Jan 09 02:36:36 it doesn't do it in the constructor Jan 09 02:36:42 but instead registers a callback for onStart and does it there. Jan 09 02:36:58 Moggle: So you'd have to pass the context in to MoggleClass, either into the constructor or in some other methods. Jan 09 02:37:03 right, i'm doing that. Jan 09 02:37:16 my issue is calling unregisterReceiver when the context's onStop/onPause are called. Jan 09 02:37:30 it's not easy to add code to do that - the user would have to take an instance of my class and call .cleanup() or something Jan 09 02:37:30 Moggle: When you say "a callback for onStart", what do you mean? Jan 09 02:37:58 when an activity's onStart/onStop are called, I would like to have *my* code's registerReceiver/unregisterReceiver called Jan 09 02:38:05 but I do not want the end-user of my library to have to manually do that Jan 09 02:38:26 i would like for them to pass in a context when instantiating my class, and then i handle the rest Jan 09 02:38:33 Moggle: Wouldn't the programmer using your code just override onStart() and onPause() in their activity and call this.moggleClass.onStart()/onPause() (or whatever corresponding methods)? Jan 09 02:38:39 Ah, I see. Jan 09 02:38:58 Hm... I am not an expert on any of this by far, but nothing I've seen so far suggests that's likely to be possible. Jan 09 02:39:05 i figured. that's unfortunate. Jan 09 02:39:24 The "flavor" of the way Android does things, so far as I've been able to tell, is to just hard-code it in the Activity class. Jan 09 02:39:30 Activity subclass. Jan 09 02:39:47 my issue with that is that it's ugly and error prone :) Jan 09 02:39:51 it's not the end of the world but Jan 09 02:39:58 i guesssssss i'll just have to suck it up. Jan 09 02:40:02 Not that I necessarily disagree, but I feel like there's a lot of clutter around the Activity subclass that's maybe due to that general approach. Jan 09 02:40:07 Moggle: It's almost certainly impossible. Jan 09 02:40:16 Note that event buses require users to do this manual wiring. Jan 09 02:40:24 e.g., look at the code sample here: https://github.com/greenrobot/EventBus Jan 09 02:40:30 I am currently trying to detangle a 3700 line Activity Jan 09 02:40:40 ...class, coded by an undergrad. :-) Jan 09 02:40:44 yeahhhhhhh see that's why i don't want users to have to do it, things are awful enough as it is Jan 09 02:41:01 Nice guy, but he was learning. Jan 09 02:41:07 i'm new to android programming, so i'm still sort of feeling my way around the ecosystem Jan 09 02:41:11 thanks for the feedback Jan 09 02:41:15 i'll take a look at this TacticalJoke. Jan 09 02:41:21 Moggle: If you use MVP/MVC/whatever, you can easily end up with small activities. Jan 09 02:41:41 MVC actually makes it really simple (but testability suffers). Jan 09 02:41:59 yeah, i'm sure it's possible to keep it manageable Jan 09 02:42:34 but i find any code where i have to manually keep two code chunks synchronized (for every register, i need an unregister) very easy to screw up Jan 09 02:42:45 so every time i see that in android i'm sort of internally freaking out Jan 09 02:43:12 Right, but I can't imagine any way around this. Jan 09 02:43:23 i'm looking into Fragments Jan 09 02:43:39 they seem to be "mini-activities"? they might work for what i want Jan 09 02:43:45 if you can just embed them in an activity Jan 09 02:43:56 do they get onStart/onStop callbacks if they do they'd be perfect i'll look into that Jan 09 02:44:52 Hmm, they get those callbacks, but I don't think they really help here. Jan 09 02:45:36 well theoretically users could just use my "fragment" in every single one of their activities Jan 09 02:45:51 and my fragment could just not have any actual UI displayed Jan 09 02:45:53 but looking into things, that seems like it would be an absurd hack Jan 09 02:46:08 i'll just suck it up and deal with the onStart/onStop manually i guess :) thanks again for the feedback guys Jan 09 02:46:55 I think I've seen libraries trying to hook themselves to activity callbacks somehow but I can't remember what those were Jan 09 02:47:01 or if they even really worked properly **** ENDING LOGGING AT Mon Jan 09 03:00:00 2017