**** BEGIN LOGGING AT Sat Apr 23 02:59:58 2016 Apr 23 03:10:22 weird, why doesn't sdk manager tell me tools 25.1.3 is available? Apr 23 03:13:19 Wow AS 2.0 is sluggish as hell on my comp Apr 23 03:13:25 i7 8GB Apr 23 03:13:30 heya Apr 23 03:13:41 very new to android dev Apr 23 03:14:45 yes Apr 23 03:15:26 AS 2.0 Crapt,lags as hell and not stable Apr 23 03:15:54 this should in beta branch not stable branch Apr 23 03:16:04 I almoast want to go back to my old version Apr 23 03:17:15 AS 1.5 is best,AS 2.0 need more a litle time before release tho Apr 23 03:17:26 intellij forlife Apr 23 03:18:00 Yeah id like to go back to 1.5 Apr 23 03:18:02 How can I? Apr 23 03:18:10 is intellij support like AS ? Apr 23 03:18:24 reinstall 1.5 ^^ Apr 23 03:21:11 Whats the diff between MVP and MVC Apr 23 03:21:18 Seems like P == C? Apr 23 03:31:24 intellij is a superset of android studio 1.5 Apr 23 03:31:42 idea <3 Apr 23 03:32:37 android studio 2.0 features will probably get rolled into the next major version of intellij Apr 23 03:34:17 I am still using 1.5.1 Apr 23 03:34:22 should i upgrade? Apr 23 03:34:56 I'm still using eclipse :P Apr 23 03:35:58 * wyoung backhands shmooz Apr 23 03:36:21 you can make two versions cohabit, wyoung Apr 23 03:36:39 shmooz: why you using eclipse? Apr 23 03:36:43 tbh, i'm almost all the time on canary, it's not a big deal Apr 23 03:36:51 I like it Apr 23 03:36:52 every release of AS got bugs anyway Apr 23 03:37:28 shmooz: hows it going? What you been up to Apr 23 03:37:34 I don't have time to chase bahdwag9hs Apr 23 03:38:08 AS is really nice though Apr 23 03:38:16 Although, ive never used eclipse Apr 23 03:38:38 no, AS is not nice at all Apr 23 03:38:50 but it's the recommanded choice for android dev Apr 23 03:39:02 Whats not nice about it? Apr 23 03:39:20 buggy, alpha, resource hog, etc... Apr 23 03:39:34 java runtime Apr 23 03:39:42 also, slow Apr 23 03:39:46 1.5 was not slow Apr 23 03:40:07 well, idk what you used before to compare and say it's not slow Apr 23 03:40:14 True Apr 23 03:40:24 adq: yeah I know, I have eclipse installed too, but for scala, not android work Apr 23 03:41:13 elipse got alot of bug than AS and they not supported any more Apr 23 03:41:41 it works for me and runs faster than AS on my system Apr 23 03:42:12 yea,fast but buggy Apr 23 03:42:32 no bugs for me Apr 23 03:42:38 or that I can see Apr 23 03:43:53 tilal6991: I have an app request. Apr 23 03:44:00 shmooz: I had the oposite experience Apr 23 03:44:13 I was use eclipse for learn and AS for work Apr 23 03:44:48 after a few month I was delete that eclipse Apr 23 03:45:25 PC2K: :) Apr 23 03:45:43 cause no gradle no life with modern app =)) Apr 23 03:47:37 I live a happy Gradle free life with Kobalt :) Apr 23 03:48:41 like they say, from gradle to grave ... Apr 23 03:49:15 Whats so bad about gradle? Apr 23 03:49:29 learning it Apr 23 03:50:01 Oh CedricBeust you use kotlin? Apr 23 04:07:01 the dsl and performance of gradle sucks Apr 23 04:07:58 adq i'm writing down a list of shit AS does not autocomplete in XML Apr 23 04:08:13 will submit bug ticket 'y u no autocomplete" Apr 23 04:08:17 lol Apr 23 04:08:50 at some point, i submitted one ticket per day for few weeks, i completely gave up since then Apr 23 04:09:09 i just click "report to google" in AS when it blinks Apr 23 04:09:18 yeah its like, ok if you fix my ticket you'll probably make 10 more bugs in the process Apr 23 04:09:32 also how the tickets are handled, it's like they hired a bunch of bot Apr 23 04:09:36 so you're actually making more work for yourself too :) Apr 23 04:09:39 "needs info" WTF read Apr 23 04:10:03 adq yeah i have seen quite a few, the push back unless you provide a project Apr 23 04:10:36 anyway, we have to deal with it :) Apr 23 04:10:56 'please provide some junit tests we can add to our test suite :)' Apr 23 04:11:07 the fact they don't even provide another platform than the old google code issue is a sign too Apr 23 04:11:22 and they already acknowledged themselves this platform is problematic and .. cannot be updated! Apr 23 04:11:33 not having much luck in android-root. anyone able to help out a poor soul with a Gigaset qv830 tablet whose mfg/vendor refuses to update the device past 4.2.2? Apr 23 04:12:13 fatmikefosscad wrong channel, sorry Apr 23 04:16:53 * Ping_2_Ur_Pong is kind of falling in love with vivaldi Apr 23 04:16:59 damn nice... damn damn nice Apr 23 04:17:27 the notepad built in the browser is very useful I love the ability to move where the tabs are, and stacking tabs is pretty friggin awesome. Apr 23 04:17:31 now to look into extensions Apr 23 04:19:16 does it have ad blocking Ping_2_Ur_Pong Apr 23 04:20:01 pretty fucking awesome add blocking Apr 23 04:20:04 it looks pretty slick, i wonder how much of it is implemented in JS Apr 23 04:20:17 meh... nvm no it doesnt Apr 23 04:20:31 hmm... that's interesting Apr 23 04:20:48 wired.com is usually filled with ads, and I only see one on the page the top banner. Apr 23 04:28:16 http://imgur.com/IomS7wN Apr 23 04:28:32 its interesting, wired is showing me the mobile view. Apr 23 04:28:44 looks like vivaldi is built on top of chromium Apr 23 04:30:52 just being able to split multiple pages into multiple views that are open is fucking awesome to me Apr 23 04:31:32 * Ping_2_Ur_Pong usually likes doing 10 things at once. So being able to watch a movie on network and still search the web is awesome. Apr 23 04:32:06 Or looking up documentation and having multiple doc pages open simultaneously and comparing what they say without switching back and forth Apr 23 04:32:20 if its based on chromium shouldn't be any issue install extensions. Apr 23 04:35:22 http://imgur.com/XhhCH6c <-- that is fucking awesome IMHO Apr 23 04:39:40 Hello all, I have a question about modifying a dependency library: https://github.com/QuadFlask/colorpicker Apr 23 04:40:33 I would like to modify the sliders, but I can't find how to do that, I think I must have access to the library source files but I can't find them locally Apr 23 04:41:13 This is how I installed the library: https://github.com/QuadFlask/colorpicker#how-to-add-dependency Apr 23 04:41:46 So I don't have library files, it's just a dependency link in gradle build file Apr 23 04:42:31 why not just browse through the source and find what you want, bet they have samples Apr 23 04:42:41 worse case scenario you clone the repo and add the files locally Apr 23 04:43:55 Yes I would like to clone and add manually the files, but where do I put them? I'm totally beginner Apr 23 04:45:07 say i have downloaded the master.zip of this github repo. What do I do next with this zip file ? Apr 23 04:45:13 guix: what are you trying to actually o? Apr 23 04:45:22 you don't do that first Apr 23 04:45:34 git clone Apr 23 04:45:41 do* Apr 23 04:45:56 I want to modify the style of the sliders because I find they are too small Apr 23 04:45:56 what is your ultimate goal, I have a feeling you're trying to go around the mountain to get next door. Apr 23 04:47:08 Look at ColorPickerDialogBuilder Apr 23 04:47:17 looks like you can change the size from there Apr 23 04:47:26 read the source dude Apr 23 04:47:31 https://github.com/QuadFlask/colorpicker/blob/master/app/src/main/java/com/flask/colorpicker/sample/SampleActivity.java Apr 23 04:47:39 that example shows you how to adjust them Apr 23 04:51:11 I've read the source, I made an app which uses this library ( without using ColorPickerDialogBuilder ) Apr 23 04:51:49 but I'm beginner and I don't understand how I can modify the look of the sliders :( Apr 23 04:52:13 in your link there is nothing about the sliders Apr 23 04:53:14 this file: https://github.com/QuadFlask/colorpicker/blob/master/library/src/main/java/com/flask/colorpicker/slider/AlphaSlider.java Apr 23 04:53:37 contains functions I would like to modify Apr 23 04:53:46 how do I do that, if I dont have this file locally ? Apr 23 04:56:12 or better yet, this file: https://github.com/QuadFlask/colorpicker/blob/master/library/src/main/java/com/flask/colorpicker/slider/AbsCustomSlider.java Apr 23 04:56:31 there is a value in there, "barHeight" set to 5. How can I set it to 10 instead ? Apr 23 04:56:45 override the class Apr 23 04:57:09 if the variable isn't private you can change it, if it is look to see if there is a setter method that changes that value Apr 23 04:57:22 tilal on? Apr 23 04:57:24 extend the class* Apr 23 04:57:32 any devs do work? Apr 23 04:57:49 Atomic_ZPW0P: ask your question Apr 23 04:58:12 I want an app built. Apr 23 04:58:24 Do any devs build apps? Apr 23 04:58:28 hmm... Apr 23 04:58:52 * Ping_2_Ur_Pong normally would say go to a site where they specialize in that and point to the topic, but what do you need the app to do. Apr 23 04:59:07 I have a kid I am mentoring that can build it. Apr 23 04:59:12 Thank you Ping I will try Apr 23 04:59:18 shuffle the keyboard keys Apr 23 04:59:34 a keyboard with a shufflekeys button Apr 23 04:59:47 Atomic_ZPW0P: please explain as if you are going to spend money on this and not like I know wtf youre talking about. Apr 23 05:00:32 sure for the © I will pay Apr 23 05:02:29 using the shortest path to source so it is not reproducable without infringment Apr 23 05:02:50 Atomic_ZPW0P: I am not generally a very patient person, nor do I usually spend much time helping people run down rabbit holes. Please explain what you're trying to do as you would if you were trying to convince someone to give you money. Apr 23 05:03:05 not a © on abstracted proprietary or obscure layers Apr 23 05:04:15 I want an app built to shuffle onscreen keyboard keys. Apr 23 05:05:02 you want an app that shuffls the onscreen keyboard, for what purpose? Apr 23 05:05:17 I am trying to understand what you're trying to achieve. Apr 23 05:05:38 for security Apr 23 05:05:53 how does shuffling the keys on the keyboard secure anything? Apr 23 05:06:17 just makes it take longer to type as you have to search for the key you want which isn't in its natural positioning Apr 23 05:06:25 Ivwany a dev not a student. Apr 23 05:07:13 You sit here and ask questions. Apr 23 05:07:22 Too many. Apr 23 05:07:29 Atomic_ZPW0P: you want to underst wtf you're doing first. You're presently talking to a team lead engineer, explain what you want before I become disinterested Apr 23 05:07:32 lulz Apr 23 05:07:41 shut up and go away troll Apr 23 05:08:22 I want something that doesnt make faces and works. Apr 23 05:08:44 A dev to build what I ask for. Apr 23 05:08:47 * Ping_2_Ur_Pong wants the person that has no idea what he is doing to go away Apr 23 05:08:55 Atomic_ZPW0P: you don't know wtf you want Apr 23 05:08:59 you can't even explain it Apr 23 05:09:09 Some websites uses this shuffle thing so that you cannot use scripts like AutoHotKey to make the mouse click on the key... but that doesn't make much sense on touchscreens Apr 23 05:09:21 A keyboard that shuffles the keys. Apr 23 05:09:36 Atomic_ZPW0P: that makes no damn sense, it doesn't secure anything. Apr 23 05:09:46 make it so that when you shake the phone the keys re-shuffle Apr 23 05:10:06 Shake is fun. Apr 23 05:10:10 or reshuffle them every 15 seconds just to keep the user guessing where the k will be next Apr 23 05:10:15 Button press works. Apr 23 05:11:02 put up a dialog that says, Are you sure you want to tap there ? Apr 23 05:11:33 no Apr 23 05:11:46 not a clown program Apr 23 05:11:57 this is for security Apr 23 05:12:03 Atomic_ZPW0P: note to you, if you hire a dev and they don't have any questions to ask they are dumbasses Apr 23 05:12:34 * Ping_2_Ur_Pong is still failing to understand why moving the keys around does anything with security Apr 23 05:12:36 then I want a "dumbasses" Apr 23 05:12:52 * Ping_2_Ur_Pong lulz Apr 23 05:13:04 Atomic_ZPW0P: how can someone do something if they don't know what that thing is? Apr 23 05:13:15 go to fiver and hire someone Apr 23 05:13:30 or any of the other 500k shitty sites that has dumbasses abound Apr 23 05:14:02 it would stop programs from brute force guessing by clicking Apr 23 05:15:06 SwiftMatt can you make a keyboard to shuffle onscreen keys? Apr 23 05:15:27 why me Apr 23 05:15:37 he thinks you're cute Apr 23 05:15:47 You made swift keyboard, no? Apr 23 05:17:08 shmooz, that fails if I have an app and its my device you can't 1. force me to use your keyboard, but 2. this would have to be embedded into another product, 3. I will decompile the fuck out of his shitty app and do what I damn well please 4. If you're trying to stop brute forcing shifting the keys is not a great way. Apr 23 05:17:33 s/not great/fucking stupid/ Apr 23 05:19:17 what Atomic_ZPW0P hasn't realized is that the cynic in the room is actually trying to figure out what he is actually trying to do so he can give him an answer that isn't retarded. Apr 23 05:21:38 SwiftMatt? Apr 23 05:22:06 ?? Apr 23 05:22:17 Can you do it? Apr 23 05:22:54 !topic Apr 23 05:23:24 for android? Apr 23 05:23:25 "no advertising please, jobs or otherwise" Apr 23 05:23:26 I don't really do android Apr 23 05:24:26 SwiftMatt: did your write swiftKey? No... that's built by a team Apr 23 05:24:35 what is swift key Apr 23 05:24:38 I have no idea what that is even Apr 23 05:25:39 awesome keyboard with predictive typing. you slide your finger around and it discerns what you mean by the characters you stop on. Apr 23 05:27:37 http://lmgtfy.com/?q=hire+app+developer+india Apr 23 05:28:05 Kill this thing Apr 23 05:28:16 SwiftMatt Apr 23 05:28:24 It is a G.E. Apr 23 05:28:26 * Ping_2_Ur_Pong points out that this is the dumbest fucking thing he has heard all day and he works with managers that don't know an IP from an asshole Apr 23 05:28:27 what Apr 23 05:28:36 kill it Apr 23 05:28:45 stop pinging me Apr 23 05:29:05 it is an ec2 clown Apr 23 05:29:17 babbles nonsense and argues Apr 23 05:29:25 Ok next topic. Apr 23 05:29:29 * Ping_2_Ur_Pong nods Apr 23 05:29:42 so how bout those bears? Apr 23 05:29:45 freenods Apr 23 05:30:08 bobbleheads everwhere Apr 23 05:30:35 * Ping_2_Ur_Pong is bad at this part Apr 23 05:30:49 * Ping_2_Ur_Pong walks away so he doesn't get in trouble Apr 23 05:35:44 anyone have a problem with the cursor in the monitor app, on mac, looking like a checkered circle :( Apr 23 06:11:03 Is there a special permission needed to allow an app to work in multi window mode in n preview ? Apr 23 06:11:22 Has google given out a guideline for that ? Apr 23 06:13:39 devslash did you see https://medium.com/google-developers/5-tips-for-preparing-for-multi-window-in-android-n-7bed803dda64 Apr 23 06:14:03 and https://commonsware.com/blog/2016/04/19/exported-activities-freeform-multiwindow-mode.html Apr 23 06:14:11 No but thanks im going to read it now Apr 23 06:15:21 Wow thats complicated Apr 23 06:15:41 of course, its an afterthought like everything else in android Apr 23 06:15:50 why do you need multi window? Apr 23 06:16:36 shmooz i guess so people can use multiple phone apps at the same time on their tablet side by side :P Apr 23 07:00:17 In MVP is it a bad practice to store data retrieved from models in a presenter? Apr 23 08:00:36 anybody seen wargamrs? Apr 23 08:00:44 the movie? Apr 23 08:19:08 the troll is still here? Apr 23 08:20:08 Atomic_ZPW0P: in western culture, specifically this crowd that is like asking if you've ever taken a walk down the street. Apr 23 08:25:26 ok ping how many gamea did joshua play? Apr 23 08:33:03 https://www.youtube.com/watch?v=NHWjlCaIrQo Apr 23 08:36:27 i need help Apr 23 08:36:54 imagine you have two devices one 10'' and one 5'' Apr 23 08:37:10 they enter the same drawable folder because they have the same density Apr 23 08:37:13 xhdpi Apr 23 08:37:27 defining the two images with dps Apr 23 08:37:33 they will be the same physical size Apr 23 08:37:47 however I dont want them to be the same physical size Apr 23 08:38:00 I want one (10'') bigger that the other (5'') Apr 23 08:38:08 how do you accomplish that Apr 23 08:38:10 use picasso to adjust the image based upon screen dimensions Apr 23 08:38:27 make sure you have enough resolution on the image though, it will look grainy if not Apr 23 08:38:43 you can accomplish the same thing by scaling the bitmap yourself, but picasso makes it easy Apr 23 08:38:58 can you provide me a link for picasso? Apr 23 08:38:59 pls Apr 23 08:39:03 no Apr 23 08:39:17 xD Apr 23 08:39:18 http://square.github.io/picasso/ Apr 23 08:39:19 ? Apr 23 08:39:40 yea Apr 23 08:39:43 thks Apr 23 08:40:32 A powerful image downloading and caching library for Android Apr 23 08:40:34 xD Apr 23 08:41:59 I used this sw600dp and sw720dp to make different values to fit the images on the screens Apr 23 08:42:00 https://github.com/square/picasso is a little btter, they give samples, but the page you're on links to the source Apr 23 08:42:04 however my question is Apr 23 08:42:33 if I have a tablet 7'' with 600dp it gonna fit on sw600dp Apr 23 08:42:37 so I get the same problem Apr 23 08:42:49 if I make myself clear Apr 23 08:43:04 check the screen width yourself and scale the image based upon the screens dimens Apr 23 08:43:36 screw allowing android to do it for you, I personally dont like letting android create my images it doesn't do the best job. Apr 23 08:44:35 ok Apr 23 08:44:41 its a mess Apr 23 08:45:05 * Ping_2_Ur_Pong is slowly falling in love with emacs Apr 23 08:45:40 so basically I can load an image with suffcient quality and size and then resize according what you are suggesting Apr 23 08:46:49 pycas: You might want to look into Glide Apr 23 08:47:02 I like it more than picasso Apr 23 08:47:37 ok thks Apr 23 08:48:59 using percentages is a good way to do this? Apr 23 08:49:24 percentage of the width? Apr 23 08:49:28 astroduck: why do you like astroduck Apr 23 08:49:44 pycas yes that is a way to handle it Apr 23 08:50:11 you could also handle it in your layout and have the image fitCenter and it will fill to the size it has available Apr 23 08:50:33 that was obviously supposed to mean why do you like Glide. Apr 23 08:54:28 Ping_2_Ur_Pong: diskCacheStratery! and loads a little faster, at least this is what I observed Apr 23 08:55:05 But yeah, Fresco is better than all these when it comes to memory Apr 23 08:57:07 astroduck, fresco is dangerous Apr 23 08:58:24 putting all your images into ashmem will be good for your apps memory, but it will slow down the entire phone Apr 23 08:58:32 and thats what fresco is doing Apr 23 08:59:02 one of the reasons why low end phones run more smooth if you dont install facebook app :p Apr 23 09:00:02 dont install facebook app on any phone Apr 23 09:00:13 im with you :) Apr 23 09:11:05 danijoo: But its fine if I keep a small memory cache size, its 20Mb for my app Apr 23 09:34:08 Hi, can anybody tell me - is Android NDK usable? Apr 23 09:34:35 yes. Apr 23 09:35:17 but theres no good ide support Apr 23 09:36:30 and is it possible to use it for tcp/ip communication like ICP ping or Client-Server example? Apr 23 09:37:36 i think you would use a service for that. I dont use ndk so i cant tell whats possible there Apr 23 09:37:56 i dont see a reason to use c++ for that. Apr 23 09:42:21 the reason is to use code in C/C++ for PC... simple google for "java ICMP ping" does not give cliear sample like "icmp ping sample code" Apr 23 09:46:30 it gave me a lot of results.. Apr 23 09:49:33 Most of them use ping from shell Apr 23 09:50:58 InetAddress.getByName(...).isReachable(timeout) Apr 23 09:51:38 not sure if this is what you want Apr 23 09:52:45 i think that does an echo ICMP Apr 23 09:53:32 Hmmm.... Apr 23 09:55:05 I look at https://sourceforge.net/projects/icmp4j/ and its 4,265,745 bytes icmp4j-project.zip Apr 23 09:55:20 so what? Apr 23 09:55:34 too comlicate Apr 23 09:55:44 complicate Apr 23 09:55:58 what has the size to do with that? Apr 23 09:57:05 heh the size of head of C/C++ programmer Apr 23 10:01:03 hi Apr 23 10:01:23 evgen2: ICMP is an IP protocol, not TCP or UDP Apr 23 10:01:35 typically it requires root permissions to use Apr 23 10:01:45 that's why ping is setuid root on many platforms Apr 23 10:02:13 I'm trying to send a http get request from device to a server and it doesnt work https://gist.github.com/danpasca/ea39897185a83eb6f8522ba0cf707621 Apr 23 10:02:27 Really, the task is to find some device in local net, i.e use fast ping to 255 address Apr 23 10:02:52 holy http query injection vulnerability batman Apr 23 10:03:10 haha Apr 23 10:03:13 evgen2: just ping the broadcast address if you want that Apr 23 10:03:28 s1k3s, http://imgur.com/jacoj Apr 23 10:04:32 cbreak: not all devices/hosts answer for thisk ping :-( Apr 23 10:04:44 this Apr 23 10:04:48 sure. They could firewall or ignore ICMP Apr 23 10:05:02 ideally you would do this with some support from each device Apr 23 10:05:19 a UDP port listening for broadcasts is popular with some software / hardware Apr 23 10:05:24 or mdns / avahi Apr 23 10:05:24 but they answer on "personal" ping Apr 23 10:08:16 hi again, chat client errors if you say my name apparently Apr 23 10:08:22 so there is no stack trace Apr 23 10:08:30 there is no error Apr 23 10:08:36 great. fixed. Apr 23 10:08:50 wireshark to the rescue Apr 23 10:08:53 http://pastebin.com/QiaLWg9w code here Apr 23 10:09:09 there is no error because you are catching it. Apr 23 10:09:31 evgen2 cbreak: i have done this for previous software, listen on UDP port, when attempting to scan, broadcast udp packet on same port to broadcast address, devices that have my service running respond to the udp broadcast with a ident packet of sorts Apr 23 10:09:32 and e.printStafckTrace() is not guaranteed to work on android. use Log.e Apr 23 10:10:27 this is what I see in the output Apr 23 10:10:28 http://pastebin.com/drDs4JxW Apr 23 10:11:20 Stop using printStackTrace and System.out.println Apr 23 10:11:22 s1k3s: what device are you trying to run this on? Apr 23 10:11:37 and I suggest to use a better library for networking Apr 23 10:11:46 emulator, nexus 5 android 4.1.2 Apr 23 10:11:48 OkHttp or something. that will make your life way easier Apr 23 10:12:11 s1k3s: old emulator? Apr 23 10:12:28 So the output is that it properly connects... Apr 23 10:12:36 And then some error that is most likely not related to your app Apr 23 10:12:54 "doesn't work" Apr 23 10:12:56 SimonTV the connected message is written by me Apr 23 10:13:01 SimonVT: nice catch. didnt see the pid was different Apr 23 10:13:05 Napalm, idk? Apr 23 10:13:17 s1k3s: it doesnt matter. Apr 23 10:13:18 If it doesn't work, s1k3s, then you need to find out what happens Apr 23 10:13:43 did you check if theres something arriving on your server at all? Apr 23 10:14:03 I'd use wireshark Apr 23 10:14:22 when I go to that link some info is added into a database. It works if I use it in browser, not working from android app Apr 23 10:14:38 hmpf.. updated support lib and it destroyed all my apps paddings and layout params -_- Apr 23 10:15:10 danijoo: waa? do a clean rebuild.. Apr 23 10:15:12 I guess this is recyclerview now using match_parent Apr 23 10:15:29 because now my recycler items all use entire screen ^^ Apr 23 10:16:02 Not sure connect() is all you need to call do actually do the request Apr 23 10:16:58 Try reading the status code, the response, stuff like that Apr 23 10:17:23 ok let's see Apr 23 10:17:31 s1k3s: you cant connect and disconnect.. you want to send your request... you need to call getResponseCode() for instance.. and then i suggest you get the getInputStream() and simply read all its data before you disconnect Apr 23 10:21:20 yeah Apr 23 10:21:22 fixed now Apr 23 10:21:27 I had to use that getResponseCode Apr 23 10:21:29 thanks Apr 23 10:22:12 adb shell setprop log.tag.GMPM VERBOSE, how do i put this in adroid sdk so its run when i hit the run button? Apr 23 10:23:42 i guess you could make gradle execute that before starting/installing the app Apr 23 10:25:18 i want to enable logging, this showed up in logcat saying logging is not enabled Apr 23 10:25:22 and i should add that Apr 23 10:26:01 You don't need to enable anything to use the Log class Apr 23 10:26:32 okay Apr 23 10:28:41 any idea what could cause my ViewPager to have an inner margin on top if used with appbar_scrolling_view_behaviour? Apr 23 10:29:08 this only happens since i updated support libs to 23.3.0 Apr 23 10:29:24 (from 23.1.1) Apr 23 10:30:05 this is the layout file: https://gist.github.com/danijoo/a13a449196144a240e6f0f7e8be1787b Apr 23 10:31:04 and this is the padding im talking about: http://prntscr.com/avs6he Apr 23 10:31:09 By inner margin do you mean padding? Apr 23 10:31:57 Probably because you have fitsSystemWindows Apr 23 10:32:31 Should only be on the AppBarLayout and friends Apr 23 10:32:59 youns still playing? Apr 23 10:35:29 SimonVT, i mean the white one before the first card. It is part of the ViewPager layout and does not scroll away Apr 23 10:35:53 removing fitsSystemWindows doesnt affect it Apr 23 10:42:42 interesstingly the padding goes away if i remove Apr 23 10:42:42 `app:layout_behavior="@string/appbar_scrolling_view_behavior"` from the ViewPager Apr 23 10:42:49 but then I wont have scrolling obviously Apr 23 10:47:06 danijoo: turn on "view bounds" in developer options Apr 23 10:47:13 thadt should show you whats causing it Apr 23 10:47:35 i did. its part of the viewpager Apr 23 10:47:51 but not of the fragment inside it Apr 23 10:48:48 maybe diff the app scrolling behavior class between the two support library versions? Apr 23 10:49:14 I'd expect this to be a bug of the default appbarlayout behavior, weird Apr 23 10:49:31 not of the behavior on the scrollview Apr 23 10:49:44 thats also my thinking Apr 23 10:49:54 to me it kinda looks like the same height as the systemtoolbar Apr 23 10:50:01 maybe it somehow applies that Apr 23 10:50:12 status bar * Apr 23 10:50:35 danijoo: yea Apr 23 10:50:56 i see why Apr 23 10:51:32 danijoo: at least i think i see why, add android:fitSystemWindows="true" to CoordinatorLayout Apr 23 10:51:44 and remove it from your ViewPager Apr 23 10:52:21 wait.. what? Apr 23 10:52:33 like all of your layout items have android:fitsSystemWindows="true" .. what you trying to do? Apr 23 10:53:00 yeah.. ^^ this file has some heavy hacking in it to get the layouts scrolling like i want. :/ Apr 23 10:53:13 at some point I just randomly applied this until it worked :x Apr 23 10:53:13 well your doing it wrong Apr 23 10:53:21 most likely Apr 23 10:53:30 i guess i only need it at coordinatorLayout and AppBarLayout? Apr 23 10:53:45 See how cb does it in cheesesquare Apr 23 10:53:51 yea, it might just be on CoordinatorLayout Apr 23 10:54:17 i seem to remember that coordinatorlayout consumes all the window-insets and dispatches them to its children as a window insets compat Apr 23 10:54:46 At least down to CollapsingToolbarLayout so it can apply the status bar scrim Apr 23 10:58:40 great thanks. actually it was the fitsSystemWindows on the appbarlayout Apr 23 11:09:57 I converted an old Android project into a Android library, and when building I always get `Error:(2) Attribute "color" has already been defined` Apr 23 11:10:01 What could be the issue? Apr 23 11:11:34 that you try to define color twice Apr 23 11:12:10 danijoo: Um how? Apr 23 11:13:20 basically I took an old Android project and imported it as a library Apr 23 11:13:43 some android studio magic merged values/*.xml into values.xml Apr 23 11:14:20 Here's the original: https://github.com/SUPENTA/ardrone-sdk-android/tree/master/app/src/main/res/values (it is an application, but I changed the gradle settings to lib) Apr 23 11:23:36 danijoo: Could all these problems be caused by the fact that I removed applicationId? Apr 23 11:26:15 i dont know what you did Apr 23 11:27:34 danijoo: I converted an gradle application module into a library module (by changing apply plugin to 'com.android.library' and removing applicationId). Now when building the project there is an error `Attribute color has already been defined` Apr 23 11:28:30 maybe you define the same attribute in the library and the app that uses the lib Apr 23 11:29:08 danijoo: Here's the intermediate xml that causes the attribute error http://paste.ofcode.org/3b2HQ5w4PM4JQiyNnqvCys7 Apr 23 11:29:31 the build error doesn't point to a specific line in the xml though Apr 23 11:30:04 dimitrovskif, there are 2 items with the name color Apr 23 11:30:30 nvm Apr 23 11:30:36 nope Apr 23 11:30:40 yes Apr 23 11:30:53 my bad :0 Apr 23 11:30:57 one is a style ;) Apr 23 11:31:02 maybe you define the same attribute in the library and the app that uses the lib Apr 23 11:31:13 it could be the support lib Apr 23 11:31:15 your looking at the wrong files Apr 23 11:31:25 also try to seperate your files.. Apr 23 11:31:25 check the intermediate files Apr 23 11:31:26 my app has no attrs just the default ones and the support lib Apr 23 11:31:44 keeping all the stuff in a single file doesnt make it easier to debug this problem ;) Apr 23 11:31:45 their app (now lib) has another support lib (older i think) Apr 23 11:31:52 http://pastebin.com/f3i5dJ2R i'm trying to add map markers i get from an ArrayList, but the makers arent showing up Apr 23 11:31:56 it's looping through the thing tho Apr 23 11:31:56 this is an intermediate file, not a one file Apr 23 11:32:15 lol. Apr 23 11:32:17 post your files. Apr 23 11:32:23 not some built stuff Apr 23 11:32:34 https://github.com/SUPENTA/ardrone-sdk-android/tree/master/app/src Apr 23 11:32:39 taub: mMarkers.get(i).getLAT(), mMarkers.get(i).getLAT() <<<<< do you see your problem Apr 23 11:32:59 all i did is import this project from github and changed the gradle plugin from com.application to com.library Apr 23 11:33:16 and it is now a part of my project which has 1 module (my app) Apr 23 11:33:43 no Napalm Apr 23 11:33:50 dimitrovskif: but it is now a module in your project? Apr 23 11:33:52 oh... Apr 23 11:33:55 Napalm: yes Apr 23 11:33:57 there we go Apr 23 11:34:01 thank you Apr 23 11:34:01 the error says you try to define the property 'color' twice Apr 23 11:34:06 np Apr 23 11:34:13 so check all your files for that attribute Apr 23 11:34:22 my module has no such thing Apr 23 11:34:26 now i'm a happy chappy Apr 23 11:34:29 although the support libs could cause that Apr 23 11:34:34 omg Apr 23 11:34:40 this is like watching a broken record Apr 23 11:34:40 and also check that support libs are on the same version Apr 23 11:34:45 they are not Apr 23 11:34:50 their app uses older support lib Apr 23 11:34:54 i think Apr 23 11:35:05 update it Apr 23 11:35:17 my app is freshly created blank activity with compile 'com.android.support:appcompat-v7:23.1.1' Apr 23 11:37:29 this is outdated too Apr 23 12:05:51 is there a recommended library for doing http requests? Apr 23 12:06:30 okhttp Apr 23 12:14:37 hi guys noob here xD Apr 23 12:15:23 need to start somewhere Apr 23 12:16:17 how can I create a stock ROM? on my android device(Samsung galaxy core 2 SM-G355HN) Apr 23 12:16:25 there is no availeble Apr 23 12:17:43 Root/custom ROMs, head to #android-root Apr 23 12:18:14 no this is android-dev android-root is not the place where I need to be\ Apr 23 12:18:46 I got some nice answers there Apr 23 12:19:35 I know Apr 23 12:20:12 and this is no =t Custom ROM but STOCK ROM a whole difference Apr 23 12:36:11 other question is it possible to port Burnout paradise city to android? Apr 23 12:38:04 you are probably not real developers Apr 23 13:12:04 hi Apr 23 13:12:21 is it possible to upgrade the hardware on your phone? Apr 23 13:14:47 umm Apr 23 13:14:53 what do you mean Apr 23 13:17:41 can I upgrade the hardware of my phne? Apr 23 13:18:38 like cpu or ram? Apr 23 13:19:03 no Apr 23 13:19:14 altough there is some projects like project ara Apr 23 13:19:21 but normally no Apr 23 13:19:30 cpu and RAM Apr 23 13:32:04 tim241: If you need help developing android apps, feel free to ask your questions here. Other topics are better suited for #android or #android-root Apr 23 14:04:30 I'm trying to get the ip address of the device and I found a piece of code that is deprecated Apr 23 14:04:57 so I need to use getHostAddress but I can't find any example, do you guys know how to use it? Apr 23 14:09:16 i use this but probably deprecated http://pastebin.com/dB0jDm3X Apr 23 14:20:45 Shouldn't app:layout_scrollFlags="scroll|enterAlways" be enough to make Toolbar dissapear when scrolling down? Apr 23 14:21:08 I'm querying the MediaStore for all images and all thumbnails on the device. Then I use a CursorJoiner to join the two (on ID): http://developer.android.com/reference/android/database/CursorJoiner.html However, normally the cursors don't align perfectly -- there are typically more images than thumbnails generated (some thumbs not generated yet) -- and then the CursorJoiner fails. Apr 23 14:22:10 as in the docs, I iterate like this: for (CursorJoiner.Result joinerResult : joiner) { .. } But what happens is either of the cursors run out (typically c_thumbs.isAfterLast() == true) and then the loop never finished Apr 23 14:22:14 finishes Apr 23 14:22:38 mentazoom, you still need to put it in an AppBarLayout Apr 23 14:23:22 this seems to vary with device/API, maybe, because on my previous phone (Z1 compact) this was not a problem. But on my new phone, (Z5 compact) this happens. Apr 23 14:23:54 danijoo_: I have, still now working Apr 23 14:24:08 now or not ;) Apr 23 14:24:40 sorry, still not working danijoo_ Apr 23 14:24:45 show your file Apr 23 14:25:50 danijoo_: http://pastebin.com/aAAcy7vE Apr 23 14:26:51 mentazoom, what is the view that should initiate the scroll and what api version are you testing on? Apr 23 14:31:28 danijoo_: http://pastebin.com/vaJCieeF Apr 23 14:32:09 Target is 23 danijoo_ Apr 23 14:33:09 you didnt show what initiates the scroll Apr 23 14:33:22 theres a viewpager and I guess in there is a scrollable view? Apr 23 14:33:43 It's recyclerview danijoo_ http://pastebin.com/aDRjAfxj Apr 23 14:33:47 I am asking because ListView wont initiate a scroll Apr 23 14:33:52 at least on api < 21 Apr 23 14:34:12 add this to the recyclerview: app:layout_behavior="@string/appbar_scrolling_view_behavior" Apr 23 14:35:15 danijoo_: I have it on SwipeRefreshLayout, so have it on both? Apr 23 14:35:22 try it Apr 23 14:36:07 danijoo_: Doesn't work Apr 23 14:37:19 hm. Apr 23 14:37:26 never used this swiperefreshlayout :/ Apr 23 14:45:47 danijoo_: It's suddenly working after reinstalling app.. But the whole toolbar doesn't go away, you can still see 25% of it Apr 23 14:46:09 have a look at https://github.com/chrisbanes/cheesesquare as a ref Apr 23 14:51:57 danijoo_: The link you sent has this "android.support.design.widget.CollapsingToolbarLayout" and that's working Apr 23 14:52:01 thanks mate Apr 23 14:52:11 yw Apr 23 14:52:35 im also fighting the collapsing toolbar right now ^.^ Apr 23 14:52:39 different problems though Apr 23 14:53:02 what's your problem Apr 23 14:53:25 getting the status bar overlaying the way i want Apr 23 14:55:05 oh, but CollapsingToolbarLayout makes the Actionbar soo big Apr 23 14:55:38 you can disable that Apr 23 14:57:38 danijoo_: Can't I make it collapse properly without CollapseingToolbarLayout? because this one looks too flat and too big Apr 23 14:58:03 AppBarLayout should be enough Apr 23 14:59:10 I'm beeing so dumb right now, it's actually working, but the app title shows little when it's collapsed, so I have to hide it manually? Apr 23 15:00:01 check your fitsSystemWindows attributes Apr 23 15:00:16 android:fitsSystemWindows="true" Apr 23 15:00:23 you want it on the CoordinatorLayout and AppBarLayout Apr 23 15:02:25 danijoo_: Won't work :/ Apr 23 15:14:44 My app has a Spinner in a Toolbar. In 23, spinners now have an exit transition, and I'd like to get rid of it for this particular Spinner. I think it's this: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/styles_material.xml#765 Apr 23 15:15:01 The problem is that I can't override that style and set 'android:popupExitTransition'. It states that 'android:popupExitTransition' does not exist. Apr 23 15:15:12 I also can't find 'popupExitTransition' mentioned in the framework source. Any ideas what's going on? Apr 23 15:15:37 s/override/inherit/ Apr 23 15:17:00 TacticalJoke: are you using Support lib? Apr 23 15:17:04 Nah. Apr 23 15:18:33 I was surprised that 'popupExitTransition' wasn't mentioned in Spinner.java or PopupWindow.java. In fact, I can't see it anywhere. Apr 23 15:19:27 TacticalJoke, did you also check SpinnerCompat? Apr 23 15:19:28 Oh, weird -- I now see it in PopupWindow.java. But I still can't reference this attribue in my style. Apr 23 15:19:30 it is in PopupWindow Apr 23 15:19:36 attribute* Apr 23 15:19:53 i dont think this is what you think Apr 23 15:20:07 the styles always used for showing and hiding a popup have been the window animations Apr 23 15:20:33 PopupWindow.setAnimationStyle Apr 23 15:20:47 or ListPopupWindow.setAnimationStyle Apr 23 15:21:43 looks like the style is got from mPopupContext in Spinner Apr 23 15:21:58 thats the popupTheme attribute Apr 23 15:24:03 TacticalJoke: so you need a to set android:popupTheme attribute on your Spinner view and that theme needs the android:popupAnimationStyle style that points to a style that contains android:windowEnterAnimation and a android:windowExitAnimation Apr 23 15:24:54 @empty ?? Apr 23 15:25:03 since when has @empty been a thing instead of @null Apr 23 15:25:45 Thanks, Napalm. I'll try that. Apr 23 15:25:50 Yeah, I just saw '@empty' too. Weird. Apr 23 15:26:08 It gets highlighted in red in AS when I use that, but the app runs without error. Apr 23 15:27:42 Napalm: I'm having a issue you fixed for me before, but I forgot how :p Apr 23 15:28:27 About GridLayoutManager, just trying it on portrait on tablets atm Apr 23 15:32:07 there is nothing to fix as far as i can remember Apr 23 15:33:14 i'm popping out now, but i'll take a look when im back.. i think you want a StaggeredGridLayoutManager where the span count for a collapsed view is a multiple of the expanded one. Apr 23 15:33:23 You fixed a problem I had about that when you expand a cardview it pushes all the other views down, that's ok but when you collapse they won't come back up. Apr 23 15:33:43 actually Apr 23 15:33:48 looks like StaggeredGridLayoutManager might do it for you Apr 23 15:33:53 Napalm: Hmm, that doesn't work. Tried '@null', '@empty', '@android:anim/whatever', and various other values for `android:windowEnterAnimation` and a `android:windowExitAnimation`. I'll keep investigating. Apr 23 15:34:10 What you said gave me a good bunch of hints, though. Apr 23 15:34:40 brb Apr 23 16:03:47 TacticalJoke: did you checkout Reddit's new official app ? Apr 23 16:06:03 Yeah. Not a big fan of what I saw. Apr 23 16:06:21 The Chrome Custom Tabs for handling all content (even images) felt slow and horrible. Apr 23 16:06:26 Slide is the best reddit app Apr 23 16:06:39 Official app is horrible Apr 23 16:07:31 I haven't tried Slide yet. Apr 23 16:07:55 You should, open source and IMO best app, only Relay for Reddit comes close Apr 23 16:08:01 I don't do reddit and I haven't tried any of them, but I would go with TacticalJoke's app because I saw how he was optimizing it Apr 23 16:08:01 Talking of Chrome Custom Tabs, I hate you can't go in Incognito Mode with those. I prefer WebView for my app for that reason. Apr 23 16:08:39 Thanks, shmooz. :D Apr 23 16:08:43 What's your apss name TacticalJoke ? Apr 23 16:09:08 I haven't actually released it yet. But it's been my daily driver for a long time. Apr 23 16:10:06 Oh cool, you could maybe look for Slide app and its code for inspiration if you need it Apr 23 16:10:38 I read on /r/Android that he was using an AsyncTask as an inner class of an Activity. :s Apr 23 16:10:49 I didn't check, though. Apr 23 16:11:18 Ah, I haven't actually checked the code either, but the app works great Apr 23 16:14:20 Slide looks nice Apr 23 16:15:13 especially because it supports changing between light and dark themes Apr 23 16:15:55 the whole app feels great and it's fast, if you compare it to the official app then the official app is garbage Apr 23 16:16:57 Relay for reddit is another great app too Apr 23 16:19:08 btw when I do app:layout_scrollFlags="scroll|enterAlways" the toolbar collpases but the app name title on the toolbar never goes away and you can still see little of it when toolbar is collapsed. Any ideas? Apr 23 16:19:56 woo it has inner asyncTask https://github.com/ccrama/Slide/blob/master/app/src/main/java/me/ccrama/redditslide/Activities/MainActivity.java Apr 23 16:21:17 Ashiren: Wow, what a mess. Apr 23 16:21:20 Several of them, too. Apr 23 16:23:13 Code like that becomes impossible to maintain eventually Apr 23 16:36:02 A shitty released app is better than a non-shitty unreleased app Apr 23 16:39:43 SimonVT: depends on if it bricks your phone :P Apr 23 16:44:52 This page talks about drawing on Canvas "witout calling View.invalidate" http://developer.android.com/guide/topics/graphics/2d-graphics.html Apr 23 16:45:10 I can't figure out how to do this, exactly. Is there an example? Apr 23 16:46:38 vorgang: It sounds like you're asking for examples on how to use SurfaceView. Apr 23 16:46:55 TacticalJoke: cool, I'll try that thanks! Apr 23 16:46:58 Because an example of drawing to a Canvas is something like `someCanvas.drawRect(0, 0, 1, 1, somePaint);`. Apr 23 16:47:57 well, ok. I tried something but nothing showed on the emulator screen. Apr 23 16:48:29 also I'm not sure if busy loop is good idea in android (battery drain?) Apr 23 16:48:30 I've set up two virtual devices in Android Studio (Nexus 5 and 6), with 200MB internal storage, and 100MB Studio-managed (SD-card). I need to add some images (photos) to the emulated device, but if I try to download one via the web browser then that just fails. Download failed. I don't get it Apr 23 16:48:58 I've even gone through the emulated formatting of the (virtual) SD-card, and still no luck Apr 23 16:49:40 Is there any easier way to copy some images (JPGs) from my PC, onto the image, so that they appear in the Gallery app etc? Apr 23 16:50:40 Long-pressing an image in the Browser app starts the download, but which then immediately causes the Browser app to stop (crash) :( Apr 23 16:57:14 are logs saved anywhere and viewable by users? http://developer.android.com/reference/android/util/Log.html Apr 23 16:57:38 eemgr: logcat Apr 23 16:57:58 so if a user downloads an app from the play store they can somehow view the logs? Apr 23 16:58:12 if the app is logging data through Log.v or Log.d? Apr 23 16:58:19 eemgr: via logcat Apr 23 16:58:34 wasn't sure if that was only accessible during debugging or something Apr 23 16:58:34 thanks Apr 23 16:59:04 are all of the logging levels available for a release build via logcat? Apr 23 16:59:39 eemgr: yes Apr 23 17:05:09 eemgr: no, a general app cannot see the logs of other apps Apr 23 17:05:18 only system apps can do that Apr 23 17:05:35 say someone finds someone elses phone on the ground Apr 23 17:05:36 calling logcat from an android app will show your apps logs .. and thats it Apr 23 17:05:38 can they view logcat? Apr 23 17:05:47 yes, if you plug it in Apr 23 17:05:51 over usb Apr 23 17:06:00 i'm just trying to come up with a potential security flaw in an app Apr 23 17:06:04 but installing an app on the device will give you nothing Apr 23 17:06:07 its just an example Apr 23 17:06:22 if you are logging sensitive data like session ids and api keys Apr 23 17:06:22 but hands on with a device is always vuln Apr 23 17:06:33 once you have a device, its game over Apr 23 17:06:38 that is true Apr 23 17:07:04 eemgr: ah, well that still doesnt help Apr 23 17:07:22 logcat will not work until the computer you plug the device into is accepted on the devices screen Apr 23 17:07:32 and only then when developer options are enabled and usb debugging Apr 23 17:07:38 alright, maybe i need to find another example Apr 23 17:07:44 meaning you device has to be unlocked to enable logcat Apr 23 17:08:03 mentazoom: hows it going? Apr 23 17:09:05 i guess i can use the logging as a performance example Apr 23 17:09:13 leaving unneeded logging into a release build Apr 23 17:09:37 Napalm: StaggeredLayout seems weird, I liked the way you fixed it before, but I can't seem to get it working Apr 23 17:10:30 Napalm: no Apr 23 17:10:34 Napalm: you're wrong Apr 23 17:10:43 Napalm: you don't need to unlock the device to access logcat Apr 23 17:10:59 no Apr 23 17:11:04 you do to enable it Apr 23 17:11:43 Napalm: you don't Apr 23 17:11:49 Napalm: you just enable adb and access it from there Apr 23 17:12:06 Napalm: also, you can add crash reporting in the app (as it has access to its own logs) Apr 23 17:12:42 spudowiar: and i already said that Apr 23 17:12:59 adb will not connect to the device until its been enabled Apr 23 17:13:10 Napalm: but you don't have to unlock the device to enable it Apr 23 17:13:16 Yes you do. Apr 23 17:13:20 rolls eyes Apr 23 17:13:24 Mavrik: you can take this one Apr 23 17:13:32 I have better things to do Apr 23 17:13:38 Napalm, I'm not a nice person to idiots :/ Apr 23 17:13:49 you don't have to unlock a device to use adb Apr 23 17:14:15 Mavrik: not saying you dont have better things... oh.. then dont be nice.. i dont care Apr 23 17:14:18 Fuck, wait Apr 23 17:14:22 do you mean unlock the screen? Apr 23 17:14:39 Yep. Apr 23 17:14:40 :) Apr 23 17:14:40 I meant bootloader unlocking :) Apr 23 17:14:44 FML Apr 23 17:15:01 Ah. Apr 23 17:15:23 Promise you I'm not stupid!!! Apr 23 17:15:33 See, I have problems understand people Apr 23 17:15:35 IRL as well Apr 23 17:15:38 And expressing myself Apr 23 17:17:29 Napalm: I just want the 2x cards vertical with gridlayoutmanager portrait as it was with horisontal before, just trying for tablets Apr 23 17:21:26 I am getting Error inflating class when i run my app Apr 23 17:21:29 only on Jellybean Apr 23 17:21:53 I've tried cleaning my project Apr 23 17:21:59 I've checked my layout file Apr 23 17:22:17 AKK9_: http://imgur.com/jacoj Apr 23 17:23:27 * spudowiar waits Apr 23 17:23:29 AKK9_: GTFO! Apr 23 17:23:32 lol Apr 23 17:23:34 jk Apr 23 17:23:34 lol Apr 23 17:23:49 Napalm: are you on Reddit? Apr 23 17:23:55 no Apr 23 17:23:55 wait Apr 23 17:23:57 no Apr 23 17:23:59 wrong username Apr 23 17:24:05 :'( Apr 23 17:24:12 you aren't the guy I'm looking for Apr 23 17:24:14 fuck off Apr 23 17:24:16 :P Apr 23 17:25:33 Napalm: spudowiar, sorry. the stack trace cuts off before 'Caused by' Apr 23 17:25:35 no idea why Apr 23 17:25:45 AKK9_: log buffer too small Apr 23 17:25:57 I think Apr 23 17:26:03 you can increase it i think Apr 23 17:26:08 the per-line buffer length Apr 23 17:26:11 as in, it says: at android.view.ViewRootImpl.d Apr 23 17:26:15 then 04-23 17:24:38.677 1017-1203/system_process W/ActivityManager: Force finishing activity com.ap.n4gapp/.MainActivity Apr 23 17:26:18 is the next line Apr 23 17:26:20 god Apr 23 17:26:23 just pastebin Apr 23 17:26:29 then entire thing you have Apr 23 17:27:14 Napalm: spudowiar: http://pastebin.com/dtXzc0ch Apr 23 17:27:46 com.ap.n4gapp.FeedItemAdapter.onCreateViewHolder(FeedItemAdapter.java:83) Apr 23 17:27:57 you try to inflate a layout Apr 23 17:28:02 which one on that line. Apr 23 17:28:03 pastebin it Apr 23 17:28:05 i love waiting five minutes for my build each time :) Apr 23 17:28:07 AKK9_: you have an XML element called unknown Apr 23 17:28:15 pict: are you using the gradle daemon? Apr 23 17:28:20 yes Apr 23 17:28:43 spudowiar: i checked that and i dont Apr 23 17:29:06 AKK9_: link us that XML file then Apr 23 17:29:35 spudowiar: Apr 23 17:29:38 spudowiar: http://pastebin.com/gQFGP2K9 Apr 23 17:29:52 if i uncomment Either of those 3 commented views i get the error. Apr 23 17:29:58 ok.. first Apr 23 17:29:58 i cant figure out why Apr 23 17:30:09 pastebin your com.ap.n4gapp.FeedItemAdapter.onCreateViewHolder function Apr 23 17:30:19 as long as they are commented it all works fine Apr 23 17:30:47 I get an "Error installing restart patches" and then it cleans and rebuilds the whole project before it deploys to my phone, taking a total of five minutes Apr 23 17:31:19 Napalm: http://pastebin.com/ufCu2iyF Apr 23 17:31:42 AKK9: well there's your problem Apr 23 17:31:49 your asking it to use a data-binding layout Apr 23 17:31:53 but not using data-binding Apr 23 17:32:36 what am i doing wrong Apr 23 17:32:46 RowNewsitemBinding binding = RowNewsitemBinding.inflate(inflater, parent, false); Apr 23 17:32:58 this runs perfect on lollipop Apr 23 17:33:01 View v = binding.getRoot(); Apr 23 17:33:38 AKK9_: i doubt its perfect. something else is going on there. probably a build caching issue. Apr 23 17:35:47 has anyone ever had this problem with these very slow gradle builds Apr 23 17:35:57 ive googled and tried almost everything Apr 23 17:36:34 pict: i dont Apr 23 17:36:44 pict: what version of AS? Apr 23 17:36:47 2.0 Apr 23 17:38:40 Napalm: ive done what you said but i still have the same problem: http://pastebin.com/cwu2Fq4m Apr 23 17:39:41 paste the new stacktrace and your entire file.. because i cant see where the line numbers match up Apr 23 17:40:56 napalm: adapter http://pastebin.com/iw4Mc6Rj, stacktrace http://pastebin.com/1M5Rhg6z Apr 23 17:41:35 AKK9_: can we have RowNewsBinding? Apr 23 17:43:36 spudowiar: no you cant.. its automaically generated Apr 23 17:43:46 spudowiar: i think this might just simply be a build issue Apr 23 17:43:47 oh, lol Apr 23 17:44:00 AKK9_: that last line was for you Apr 23 17:44:01 Haven't done native Android development for a while Apr 23 17:44:03 AKK9_: i think its a build issue Apr 23 17:44:08 AKK9_: have you done a clean build? Apr 23 17:44:12 AKK9_: so, do this Apr 23 17:44:18 Napalm: yeah iave tried that Apr 23 17:44:37 sorry i meant spud, ive tried clean build Apr 23 17:44:42 AKK9_: close AS. go to your project folder. delete your build dir. then go into your "app" module dir and delete the build dir from therre Apr 23 17:44:58 AKK9_: then open AS. do a gradle sync and then a rebuild. Apr 23 17:45:01 then see how it goes Apr 23 17:47:56 Napalm: same issue :( Apr 23 17:48:06 i iwll try to increase the log buffer thing to get the full logs Apr 23 17:48:40 it wont help Apr 23 17:49:06 the problem is what it says.. its trying to inflate a view that is not known. Apr 23 17:49:20 the question is why is that happening. now the layouts are auto generated. Apr 23 17:49:23 ah.. wait Apr 23 17:49:26 go look at those Apr 23 17:49:59 AKK9_: go into your generated/intermediate dirs in your app/build dir and find the layout files that data-binding has generated Apr 23 17:50:09 see what its got in them on line 146 Apr 23 17:53:04 Napalm: this is on line 146 http://pastebin.com/TJB5FWkC Apr 23 17:53:08 its just a Apr 23 17:53:25 wait? Apr 23 17:53:28 of the generated ones? Apr 23 17:53:30 yeah Apr 23 17:53:43 app\build\intermediates\data-binding-layout-out\debug\layout\row_newsitem.xml" Apr 23 17:53:46 ok.. delete your commented views Apr 23 17:53:49 from your layout Apr 23 17:53:55 they are probably causing an issue Apr 23 17:54:04 i need them though. i commented them because they were cuasing the issue Apr 23 17:54:14 if i comment this last on line 146 it works Apr 23 17:54:24 right.. so the one you pasted wasnt actually the layout causing the issue Apr 23 17:54:25 :| Apr 23 17:54:31 look.. its your problem now Apr 23 17:54:32 either of them cause the issue Apr 23 17:54:33 either of the 3 Apr 23 17:54:40 i cant be assed anymore Apr 23 17:54:41 whichever i uncomment, same problem Apr 23 17:54:49 omg Apr 23 17:55:07 so.. you know what was causing your issue.. the use of the raw views Apr 23 17:55:18 and you dont get the issue when they are commented out? Apr 23 17:55:21 i tredi changing them to LinearLayouts Apr 23 17:55:24 and RelativeLayouts Apr 23 17:55:25 same thing Apr 23 17:55:39 i want to die Apr 23 17:55:46 i asked you a question Apr 23 17:56:16 AKK9_: http://www.samaritans.org/ Apr 23 17:56:20 i dont get the issue when they are commented out, but i dont think the cause is View tags Apr 23 17:56:32 well it is if thats the cause Apr 23 17:56:35 case Apr 23 17:56:37 becuase one of the problem views is the ImageView Apr 23 17:56:38 change them to ImageView Apr 23 17:56:44 right. Apr 23 17:56:53 which device is it causing an issue on? Apr 23 17:56:59 API 16 emulator Apr 23 17:57:13 only on the emulator? Apr 23 17:57:20 Get the full, un-truncated stacktrace.. The debugger can probably help you with that Apr 23 17:57:33 Or by catching it yourself and printing every line on its own Apr 23 17:57:39 right, i have better things to do. bye bye Apr 23 17:57:48 ok thanks for the help though Apr 23 17:57:56 appreciate your time Apr 23 17:58:17 SimonVT: where would i start with either of those things? Apr 23 17:58:32 Click the debug button Apr 23 17:58:48 Or try-catch Apr 23 18:04:17 SimonVT: ok so i used debugger, it crashed when it tries to load the background drawable Apr 23 18:04:36 omg..... Apr 23 18:04:45 ........................................................... Apr 23 18:04:53 i am a clown Apr 23 18:05:07 :) Apr 23 18:05:18 all my drawables are in drawable-v21 Apr 23 18:05:23 haha wow Apr 23 18:05:24 lol Apr 23 18:06:33 defo need to start relying on debugger more often Apr 23 18:06:49 i just run to google and stackoverflow etc Apr 23 18:07:01 AKK9_: I was thinking of mentioning that Apr 23 18:07:08 AKK9_: but I would have assumed a different error Apr 23 18:07:09 hmm Apr 23 18:07:55 right thanks again all of you Apr 23 18:08:02 gonna have a break now lol Apr 23 18:08:03 bye Apr 23 18:08:05 cheers Apr 23 18:20:43 Is there a way to avoid Loaders and still have same functionality, ie, having your content sync across activities/fragments. I am using Retrofit2 + RxJava/RxAndroid for making requests and Also from my old code I have a ContentProvider. I just don't want to use a Cursor in my RecyclerView, gives me the chills. Apr 23 18:21:16 I read about SQLBrite but it looks like it only works with ContentProvider, nothing is written about Loaders :/ Apr 23 18:25:22 astroduck did you look at rxloader or sqlbrite ? Apr 23 18:26:25 Does SQLBrite work with loaders? Didn't know about rxloader Apr 23 18:26:46 what do you suggest to localize app with other users? is there any free web site? Apr 23 18:27:30 astroduck probably more of a replacement Apr 23 18:28:53 g00s: Does it sync data automatically in case it changes, like loaders do? Apr 23 18:29:14 astroduck not sure, sorry Apr 23 18:29:34 i think if you insert to X, the Rx part requeries Apr 23 18:29:52 you have to decide on a string that is a key of sorts to listen to Apr 23 18:30:30 i always found that bit somewhat strange, but works simple scenarios Apr 23 18:31:07 Ok, I'll look into both sqlbrite and rxloader more, thanks Apr 23 18:31:56 ;) Apr 23 18:32:40 why are loaders even considered, RxJava completely obviate them Apr 23 18:32:56 pfn no they don't, and you know that Apr 23 18:33:10 eh, yes they do Apr 23 18:33:36 its one thing to dislike the loader api, but it does bring lifecycle management to the table Apr 23 18:35:32 pfn: How would you solve this sync problem? I have something like a list and then a detail page which can update data, how would you sync these changes? Apr 23 18:36:39 RxJava has similar lifecycle management Apr 23 18:37:10 not quite automatic, but still dramatically better than loader api Apr 23 18:37:35 you are conflating two things; pipeline subscription != lifecycle management Apr 23 18:39:34 you don't need lifecycle management Apr 23 18:39:47 subscription replaces automatic lifecycle management Apr 23 18:40:10 not if the observables are cold, and resubscribing causes another operation Apr 23 18:40:46 god damn it, first time AS completely hung with instant run disabled :( Apr 23 18:41:02 always the same thing, wake up from sleep ... hangs Apr 23 18:43:05 pick the right observable model Apr 23 18:43:18 astroduck, use any sort of shared data structure Apr 23 19:00:49 Hi there. I'm trying to factory reset Samsung s5 mini (totally broken screen) with Ubuntu 15.10 there is no way in hell I can get udev with lsusb so I'm not able to issue any fastboot commands. Any linux devs here that can help me out? Apr 23 19:02:24 frojnd wrong channel Apr 23 19:03:57 if lsusb doesnt see your phone there not much you can do Apr 23 19:05:04 Ashiren: I confirmed it's the same with samsung s advance... Apr 23 19:05:23 do I have to install some sort of samsung drivers for being able to see a device in recovery mode? Apr 23 19:14:51 frojnd: #android or #android-root Apr 23 19:24:40 I can't for the life of me figure out how to remove the little tab in the circles... http://imgur.com/M6m46PK.jpg Apr 23 19:44:37 looks like gradle 2.13 is going to have a bunch of performance improvements , (yey!) Apr 23 20:07:18 I have CoordinatorLayout with 2 children: (1) A list (to be on top) and (2) a bottomSheet. How can I have the bottom Sheet opened (peekHeight) so that it is 'anchored' to the bottom of the list ? Apr 23 20:12:17 Does anyone know how to remove the tab of the QuickContactBadge? http://i.imgur.com/M6m46PK.jpg Apr 23 21:04:48 What is getIntent().getParcelableArrayList... Apr 23 21:04:53 Never seen that syntax Apr 23 21:09:34 drose379: That's the normal way of invoking a function that returns a generic type object, an ArrayList in this case Apr 23 21:10:05 You can omit it in case you are assigning it to a variable which defines the type Apr 23 21:10:53 I see, ok Apr 23 21:11:26 So getParcelableArrayList returns ArrayList, so in order to get it as MyObject, I need .getParcelableArrayList(..) Apr 23 21:14:51 Thanks astroduck Apr 23 21:17:19 In MVP, should the presenter store all data members of an Activity Apr 23 21:32:45 http://tools.android.com/recent/androidstudio21rcavailable Apr 23 21:39:24 Napalm there ? Apr 23 21:39:28 yers Apr 23 21:39:31 yes Apr 23 21:40:23 oh hai :) quick Q; lets say you have a recyclerView with cards. But each card itself, has a number of unbounded items in it. do you think, putting a recyclerview in the card also would cause be problematic ? Apr 23 21:40:51 is that just crazy :D Apr 23 21:42:05 Apr 23 21:42:19 Apr 23 21:46:51 this sounds like a bad idea Apr 23 21:54:22 i think its fine Apr 23 21:54:36 its sounds crazy because your used to ListView Apr 23 21:55:25 luckily RV has wrap_content for height, i'm betting on that working correctly so each card is the right size (to show all its list contents) Apr 23 21:58:02 d Apr 23 23:32:21 HI Apr 23 23:33:11 looking for a teacher, willing to pay almost nothing/month to answer random questions i have mainly about syntax Apr 23 23:35:06 almost something*? Apr 24 01:04:23 why don't more people nerd out on weekends Apr 24 01:04:27 so boring Apr 24 01:05:15 pfn there inner nerd is weak Apr 24 01:05:20 their* even Apr 24 01:05:59 I guess even the nerds here have a life Apr 24 01:06:17 what is this life thing Apr 24 01:08:43 hey jug6ernaut , i saw your /r/androidev post on 2.1 RC - are you using it ? Apr 24 01:09:11 yup Apr 24 01:09:40 doesnt seem to be any noticeable differences from the last beta Apr 24 01:09:56 * jug6ernaut is still waiting for compiler options for annotation processors Apr 24 01:10:00 i'm tempted, but who knows maybe like last time with 11 RCs Apr 24 01:10:22 i have different installs for 2.0 & 2.1x Apr 24 01:10:38 so its whatev's lol Apr 24 01:10:48 i wonder what 'support for N' means, how does that impact AS ? Apr 24 01:12:12 if your not using jack Apr 24 01:12:28 i doubt there is any difference, i mean you can access the N api's and dev images Apr 24 01:12:46 but if ur not targeting N i doubt there is any real difference with 2.0 Apr 24 01:12:55 jug6ernaut is jack still very slow ? Apr 24 01:13:21 idk, i still cant run it lol, since all my projects have annotation processors Apr 24 01:13:23 or databinding Apr 24 01:13:43 i suppose i could make a sample project, but it would be to small to make any real kinda assessment Apr 24 01:15:50 been playing with 2-way databinding today Apr 24 01:15:56 its pretty awesome Apr 24 01:16:01 nice Apr 24 01:16:56 jug6ernaut is 2-way experimental ? Apr 24 01:17:13 yeah, introduced in one of the last beta's Apr 24 01:17:20 i think Apr 24 01:18:42 hmm Apr 24 01:18:57 seems there are two ways Apr 24 01:19:10 old way https://medium.com/@fabioCollini/android-data-binding-f9f9d3afc761#.99rriyoog Apr 24 01:19:14 using text watchers Apr 24 01:19:21 new way https://halfthought.wordpress.com/2016/03/23/2-way-data-binding-on-android/ Apr 24 01:19:31 http://milessabin.com/blog/2011/06/09/scala-union-types-curry-howard/ Apr 24 01:20:00 neat, so old, but at the same time, I just never need union types Apr 24 01:22:01 miles does so much awesome stuff with the type system Apr 24 01:25:13 * jug6ernaut should learn scala one of these days Apr 24 01:25:57 i just got an update email from bill venners that the 3rd ed of programming scala is out Apr 24 01:26:06 * g00s was interested in scala a long long time ago Apr 24 01:27:17 wow, i have the 1e from 2008 Apr 24 01:28:20 lol Apr 24 01:29:18 what happened, was that somewhere between now and 2008 i saw some of pfn's scala code... Apr 24 01:29:23 and the rest is history Apr 24 01:29:40 too next level for g00s' mind Apr 24 01:29:58 need to spend more time coding and level up Apr 24 01:30:05 * jug6ernaut has been spending his spare time on Kotlin Apr 24 01:30:09 for better for worsse Apr 24 01:30:26 kotlin does not like new AS builds every week.... Apr 24 01:32:14 jug6ernaut is there a status page, that says kotlin X & plugin work with AS blah blah and gradle-plugin blah blah ? Apr 24 01:32:39 i guess you can't assume it works with the freshest stuff Apr 24 01:32:46 yeah Apr 24 01:32:59 i mean it "works" but its buggy Apr 24 01:33:09 have to restart AS every 30mins or so Apr 24 01:33:44 that's not usable Apr 24 01:33:55 orly? only time i have problem with AS is when my MBP comes out of sleep, its gotta be force-killed (it hangs) Apr 24 01:34:24 * g00s is pretty amazed, otherwise, how problem free MBP is even from 2009 Apr 24 01:34:41 MBP? Apr 24 01:34:44 i guess i set myself up to be easily impressed coming from gentoo :D Apr 24 01:34:52 Napalm macbook pro Apr 24 01:34:56 ohhhh Apr 24 01:35:04 there needs to be a 32GB mbp Apr 24 01:35:08 I would consider one of those unusable as well Apr 24 01:35:20 i give gradle 5GB of ram and it still say sit wants more for in process dex Apr 24 01:35:44 pfn i <3 my mbp, no other machine i would use for dev Apr 24 01:36:03 I mean one from 2009 Apr 24 01:36:17 oh Apr 24 01:36:18 yeah Apr 24 01:36:20 f-that Apr 24 01:36:22 I don't like using my Mac either though and I have 2 Apr 24 01:36:26 jug6ernaut back in the day, there was an program that used genetic programming technique, to find the best gcc compiler flags ... (it just kept running your app with different optimization flags and traversering this search space) ... Apr 24 01:36:27 thats the big unibody ones righ? Apr 24 01:37:12 that would be a good idea, to find the best gradle config ... there are enough knobs to turn, that a program could search that space tweaking here and there to find teh best build time Apr 24 01:37:37 i find just giving it more memory is all it really cares about lol Apr 24 01:37:48 tho there a few configs that seem to make a difference Apr 24 01:37:50 jug6ernaut kinda like some banker on wall street Apr 24 01:38:13 jug6ernaut are you using dex in process ? Apr 24 01:38:21 trying to Apr 24 01:38:25 also gradle 2.13 has a bunch of perf optimizations Apr 24 01:38:27 it keeps wanting more ram lol Apr 24 01:38:32 one for starting up new jvms quicker Apr 24 01:38:44 2.12 hasnt been released right? Apr 24 01:38:51 2.12 is out, 2.13 is RC2 Apr 24 01:38:57 ah Apr 24 01:39:15 howdy peeps Apr 24 01:39:26 does anybody know if i should be storing my players google profile photo on my server, or if i can always use the link that i get from google to access their profile photo? e.g https://lh3.googleusercontent.com/-XdUfgdfhMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/423452rscbv5M/photo.jpg?sz=50 Apr 24 01:40:23 Teedo why wouldnt u always hit the google version? Apr 24 01:40:38 not sure if the link would expire or anything Apr 24 01:40:59 ah Apr 24 01:41:03 * jug6ernaut has no idea Apr 24 01:42:07 or if it's safe to give that link out to everyone since players need to give access and use my API key to retrieve that link Apr 24 02:16:40 is there a way to style support lib TabLayout to look like this http://i.imgur.com/KgV0z2t.png Apr 24 02:16:48 with the inverted background and text Apr 24 02:34:45 What's up guys anyone on? Apr 24 02:43:31 Hey, can anyone advise on how to sign up to a Play Store account as a startup rather than as an individual? Apr 24 02:44:18 Never heard of it honestly Apr 24 02:44:25 I'd love to help if I could Apr 24 02:59:51 g00s: yes **** ENDING LOGGING AT Sun Apr 24 02:59:58 2016