**** BEGIN LOGGING AT Thu Dec 18 02:59:58 2014 Dec 18 03:02:21 lasserix: Napalm advised me to draw over a TextView and use padding. Hadn't thought of that. Dec 18 03:02:26 Trying to find huge comments to test it with. Dec 18 03:02:42 huh? Dec 18 03:02:54 You know how I have that indent thing? Dec 18 03:02:59 I'm now drawing that over a custom TextView. Dec 18 03:03:09 s/custom/derived/ Dec 18 03:03:19 "draw over a textview"? Dec 18 03:03:31 Yeah Dec 18 03:03:32 . Dec 18 03:03:39 sorry i am not following Dec 18 03:04:21 didn't you give up on the custom view? Dec 18 03:04:32 lasserix: http://pastebin.com/UechGCzd Dec 18 03:04:33 Yes. Dec 18 03:04:39 I might give up on this, too, if it's not fast. Dec 18 03:05:00 what's the point of this? Dec 18 03:05:03 drawing the ident? Dec 18 03:05:40 Yeah. Dec 18 03:05:48 Then I don't have to have that IndentView thing. Dec 18 03:05:51 are the first 4 lines legal? can you call getPadding and get something ? Dec 18 03:05:55 ahh cool Dec 18 03:05:57 Yeah. Dec 18 03:06:07 Field initializers run after super() has been called. Dec 18 03:06:18 but has it been laid out yet? Dec 18 03:06:22 or is padding set before that? Dec 18 03:06:32 I think it's set before. I guess I should check TextView.java. Dec 18 03:06:39 Though it's probably in View.java, actually. Dec 18 03:06:47 cool Dec 18 03:06:51 nice optimization Dec 18 03:11:54 I can't take credit, as it was Napalm's idea. It seems like it *should* be faster than what I was doing. I hope so. Dec 18 03:12:06 Only thing is that now I'm making two extra spans per comment. Dec 18 03:12:36 well its a first step to custom drawing the text Dec 18 03:16:55 TacticalJoke: did you see this? Reddit is basically just a crowd-sourced solution to boredom. Dec 18 03:18:04 True. Guess it applies to human interactions in general, too. Dec 18 03:27:39 lasserix did you recommend a particular snackbar the other day ? Dec 18 03:27:54 nispok Dec 18 03:28:06 lasserix why did you recommend that over engineer13? Dec 18 03:29:20 lasserix dude, its just a linearlayout ... there has to be some awesomesauce ! Dec 18 03:29:30 ? Dec 18 03:29:34 what is what? Dec 18 03:29:34 lol nm Dec 18 03:29:53 tbh i didn't see enigeer13 Dec 18 03:29:56 looks better tho? Dec 18 03:30:04 seem the same? Dec 18 03:32:18 engineer13 allows permanent snacks Dec 18 03:33:22 Not good for those on a diet. Dec 18 03:34:18 permenant? Dec 18 03:34:29 Groxx, know how to dim the tabs that arent selected? Dec 18 03:35:09 Okay, this looks promising. This new TextView code seems faster than the old code. Dec 18 03:35:13 And it's more modular. Dec 18 03:39:52 This is cool. Even on my old device, huge posts are fast. :) Dec 18 03:40:03 If I eventually move to RecyclerView things might get even faster. Dec 18 03:40:17 wow Dec 18 03:40:20 just doing that? Dec 18 03:40:24 Yeah. Dec 18 03:40:26 Weird. Dec 18 03:40:30 send me the apk alreadyyo Dec 18 03:40:33 Not sure why my custom drawing was so slow. Dec 18 03:40:34 nah not weird Dec 18 03:40:41 yeah show me the class Dec 18 03:41:28 Pastebin is under heavy load right now. :/ Dec 18 03:42:46 Do you want me to e-mail the APK to you? Dec 18 03:42:51 If so, I guess PM me your e-mail address. Dec 18 03:43:19 BTW, the app sucks so much so far. Don't take too much notice of the current state. :D Dec 18 03:43:36 dont worry Dec 18 03:45:54 Okay, sent. Dec 18 03:46:22 Only permission needed so far is "INTERNET". Dec 18 03:47:16 I sent you the version with the new TextView. Dec 18 03:47:21 So this should be the fastest version. Dec 18 03:47:37 The post list doesn't use a custom view (yet), but that's fast anyway. Dec 18 03:47:41 It's just the comment list. Dec 18 03:48:04 can you post the custom class Dec 18 03:48:07 that doesn't work Dec 18 03:48:11 What doesn't work? Dec 18 03:48:15 err that you gave u pon Dec 18 03:49:08 One sec. Pastebin is under heavy load. Dec 18 03:49:12 Did you get my APK? Dec 18 03:49:32 yeah Dec 18 03:49:38 when i opened it a toast appeared that said Selected Dec 18 03:49:41 Yes. lol Dec 18 03:49:45 Ignore that. Dec 18 03:49:57 That was testing how spinners in ActionBars worked. Haven't gotten around to moving it yet. Dec 18 03:49:59 removing* Dec 18 03:50:08 You have to click the comment-count on the right to view comments. Dec 18 03:50:14 I'll make that move obvious in future. Dec 18 03:50:28 switching at the top has noe ffect Dec 18 03:50:32 Right. Dec 18 03:50:34 k Dec 18 03:50:39 throw new NotImplementedException(); Dec 18 03:50:46 Click the numbers on the right. :) Dec 18 03:50:54 are you going to replace the load more button? Dec 18 03:50:58 Yeah. Dec 18 03:51:01 you should load more on "continued pull" down Dec 18 03:51:04 Gonna make it auto-load-more on scroll. Dec 18 03:51:08 Right. Dec 18 03:51:11 yea Dec 18 03:51:17 Are the comments fast? Dec 18 03:51:21 Scrolling through them. Dec 18 03:51:42 yeah you should seriousily make the flat/unflatten it would be bad ass Dec 18 03:51:48 Yeah, I might do that. Dec 18 03:52:07 The ones that say "null" are the "load more comments" links, BTW. Dec 18 03:52:09 Haven't done that yet. Dec 18 03:52:19 yeah it skips a few when it hits a huge comment Dec 18 03:52:29 did you do the onscrolllistener thing to not do it? Dec 18 03:52:37 dont load it if it is scrolling Dec 18 03:52:42 I tried, but that worked out really horrible. Dec 18 03:52:42 well if it is really big Dec 18 03:52:48 what do you mean? Dec 18 03:53:18 If I refused to draw while scrolling, the ListView got confused (even if I called ListView.invalidate and myView.invalidate after). It added empty views now and then. Dec 18 03:53:36 If I refused to requestLayout while scrolling, the UX was too weird (and it was still slow anyway). Dec 18 03:53:44 no no Dec 18 03:53:48 just dont call setText Dec 18 03:53:53 in getView Dec 18 03:53:57 TacticalJoke not my area, but you may want to handle scrolling and flinging differently Dec 18 03:54:06 Okay. I didn't try that, but that'd create the weird UX anyway. Dec 18 03:54:09 then onStop scrolling invalidate and then let it settext Dec 18 03:54:14 well Dec 18 03:54:17 Because then when the list stops it suddenly loads a huge comment out of nowhere. Dec 18 03:54:22 instead of setText the actual text Dec 18 03:54:25 just use placehold Dec 18 03:54:27 er Dec 18 03:54:36 Loading Dec 18 03:54:37 or something Dec 18 03:54:38 lasserix: Is it really slow on your phone? Dec 18 03:54:43 nah its fast Dec 18 03:54:49 whenit hits a huge comment it hiccups Dec 18 03:54:52 Yeah. Dec 18 03:54:59 Do other Reddit clients do that on your phone? Dec 18 03:55:01 well Dec 18 03:55:03 On mine, every one I've tried does it. Dec 18 03:55:07 i will try to do the onscroll thing Dec 18 03:55:12 for you Dec 18 03:55:19 since i can just sim with bunch of text Dec 18 03:55:20 Oh, it's okay. I know how to do it. Dec 18 03:56:10 lasserix: Is there a Reddit client which is faster on your phone? Just curious. Dec 18 03:56:12 If so, I'll try it. Dec 18 03:57:00 how do i see comments in reddit Dec 18 03:57:05 news Dec 18 03:57:14 You have to click a post and then swipe up from the bottom. Dec 18 03:57:29 It should have a direct "View comments" button, really. Dec 18 03:58:11 yeah it hiccups Dec 18 03:58:16 Yeah. Dec 18 03:58:18 yeah thats terrible way to view comments Dec 18 03:58:26 I think all Reddit clients hiccup. Dec 18 03:58:34 Reddit News is probably using RecyclerView, too. Dec 18 03:58:51 well its like you said on the fb post Dec 18 03:58:59 "reddit is fun" app seems to be fine on my phone Dec 18 04:00:04 nah reddit is fun hiccups Dec 18 04:00:08 Reddit is Fun is way slower here. ;o Dec 18 04:00:11 Slowest I've tried, in fact. Dec 18 04:00:13 plus they cover by doing "show more" Dec 18 04:00:29 It's slow even on threads with small, not-varying-too-much comments. Dec 18 04:00:57 I looked at the code for Reddit is fun. It uses one view per indent level. Like eight views. Dec 18 04:01:01 Doesn't seem economical. Dec 18 04:01:44 so tactical remember what i was saying last night? Dec 18 04:01:50 use buckets as viewtypes with incremental heights? Dec 18 04:02:14 ie viewtype = 0 height = 50 1 = 100 2 = 150 3 = 200 etc Dec 18 04:02:23 lol Dec 18 04:02:25 I dunno whether that'd work. Dec 18 04:02:32 it deos Dec 18 04:02:34 The problem is, even if know each element height, as all elements have different heights, I can't do a setHeight() with the previous height, it will be incorrect for sure (for example, the recycled element was just a short message and the new one has a 400px height image) I have solved this creating several item types with 50px intervals, so getItemType(position) returns a type depending on its content height. If the item type height Dec 18 04:02:34 step is kept sufficiently small (in my case I calculated 50px) there won't be jumps when scrolling up ! Dec 18 04:02:35 there's no "show more" button on 'reddit is fun' on comments and as i said - works flawlessly on my phone. no stutter or jitter of any kind Dec 18 04:02:38 http://stackoverflow.com/questions/20602972/listview-and-variable-height-items-causes-scroll-problems Dec 18 04:02:57 bankai_: It might be that I and lasserix are extremely critical here. Dec 18 04:03:00 bankai i loaded one with 2000 comments, it has "show more" for nested comments and lags Dec 18 04:03:10 err stutters when it passes by a huge comment Dec 18 04:03:14 so the bucket idea will work Dec 18 04:03:21 Every single Reddit client lags like that. Dec 18 04:03:24 I'd put money on it. Dec 18 04:03:29 It's an Android problem. :/ Dec 18 04:03:42 RecyclerView might make it less bad; not sure. Dec 18 04:03:58 i think you're spending far too much time on something that really isn't that big of a problem Dec 18 04:04:15 if the problem is scrolling through hudnreds of items -- how many people are actually going to do that? Dec 18 04:04:20 True. Dec 18 04:04:32 its all about perfection. Dec 18 04:04:36 In any case, this latest change has helped performance and improved code maintainability. Dec 18 04:04:37 PERFECTION Dec 18 04:04:39 haha Dec 18 04:04:45 there's no such thing as perfection Dec 18 04:04:50 lasserix: Do you think mine is fast enough, though? Dec 18 04:04:55 Taking into account that all of them have hiccups. Dec 18 04:05:03 yeah its fine Dec 18 04:05:09 i mean its not ideal Dec 18 04:05:15 its not something i'd want to show an employer Dec 18 04:05:16 on android, PERFECTION is simply working without crashing Dec 18 04:05:23 because it is one of those things you want to iron out Dec 18 04:05:25 lasserix: But I can't really fix that. Dec 18 04:05:29 yeah you can Dec 18 04:05:30 buckets. Dec 18 04:05:34 That idea is insane! Dec 18 04:05:34 lol Dec 18 04:05:34 and async loading Dec 18 04:05:38 no it's not Dec 18 04:05:41 totally logical Dec 18 04:05:44 The heights could be anything. Dec 18 04:05:47 I have no idea what the heights will be. Dec 18 04:05:58 you're missing the point Dec 18 04:06:03 here Dec 18 04:06:05 ill make it Dec 18 04:06:08 then see if it works Dec 18 04:06:13 and if it does you can looka t the code Dec 18 04:06:50 lasserix: The problem is that I am an obsessive perfectionist, and you're encouraging me. ;| Dec 18 04:07:03 i would say insecure, not obsessive perfectionist Dec 18 04:07:07 hehe Dec 18 04:07:13 TacticalJoke in your adapter , you aren't doing anyting crazy like parsing gson, quadratic time lookups, allocating bitmaps, etc right ? Dec 18 04:07:19 the thing is if you can figure out a solution this is a perfect thing to explain in an interview Dec 18 04:07:22 Oh, no. It's very simple stuff. Dec 18 04:07:35 g00s: I think the code is about as optimal as possible. Dec 18 04:09:51 wonder if view type count has a upper bound Dec 18 04:11:37 lasserix: Note that the font is tiny. If I make it bigger, things are way faster. Dec 18 04:11:43 Reddit News uses a large font. Dec 18 04:11:51 Smaller font = more items on screen = more lag. Dec 18 04:12:34 adjust the font so that everything fits on the screen, done ! Dec 18 04:17:16 lasserix: Which phone do you have, BTW? Dec 18 04:22:47 Hello Guys, I'm using android studio and I want to create a html app with cordova. the thing is that when I modify the html and debug the app I do not see the changes on my phone. Dec 18 04:22:54 Not sure why that happens and what I can do to fix it - Dec 18 04:23:51 degva probably best to ask the cordova folks Dec 18 04:24:19 g00s: not saying nothing at all :( Dec 18 04:24:28 thanks for the suggestion though Dec 18 04:31:30 the android watch of the future http://imgur.com/a/Flm7g Dec 18 04:39:44 This is handy: http://developer.android.com/reference/android/util/Pair.html Dec 18 04:39:53 Napalm showed me it (in a code sample). Dec 18 04:40:27 In fact, it's incredibly simple. Dec 18 04:41:17 * g00s hates tuples in java, they just make things confusing. first? second? lol Dec 18 04:41:26 this isn't python Dec 18 04:41:51 The alternative might be to create a class for every situation in which we need a pair. Dec 18 04:43:16 what if you need a triple? Dec 18 04:44:01 there is an old tuple project out there Dec 18 04:44:36 this is the first time i heard about this http://google.github.io/physical-web/ Dec 18 04:44:38 Pairs are quite common, though, for key:value mappings. Dec 18 04:45:39 I wish we could use primitives as generic types. :[ Dec 18 04:45:44 I always feel bad when autoboxing. Dec 18 04:45:55 Can use primitves as types in C#. Dec 18 04:46:49 TacticalJoke java is moving towards getting rid of primitives. was supposed to be java 9, but seems its 10 at least Dec 18 04:47:27 you have to go into using java like you would going to JS - just recognize its a shitty language and put that behind you :) Dec 18 04:47:57 pair is sometimes usefull Dec 18 04:49:32 I suppose one could create a common "pair" that doesn't involve autoboxing: the first value is always an int (or something). Dec 18 04:49:55 That'd also make client code more readable ("FooPair" rather than "Pair"). Dec 18 04:53:17 Hmm, Pair seems basically the same as Map.Entry. Dec 18 04:58:42 This seems ideal for many cases: http://pastebin.com/mDFrNfLf Dec 18 05:00:58 There's probably a better word than 'mapping', though. Dec 18 05:04:02 g00s: What are they gonna replace primitives with? Dec 18 05:04:10 I'm googling and not finding good answers. Dec 18 05:04:21 everything will be an object Dec 18 05:04:40 I wonder what the performance implications are with regard to heavy calculation. Dec 18 05:08:08 this is good https://medium.com/circa/the-right-way-to-ask-users-to-review-your-app-9a32fd604fca Dec 18 05:09:10 I'm back lol Dec 18 05:09:36 so i decided to just go with a GridView, but i can't get the margins on the top and bottom right Dec 18 05:10:11 I'm using CardView for the grid cells Dec 18 05:10:29 the top is flush with my Toolbar, and the bottom is flush with the navbar, so the shadow gets cut off on the bottom Dec 18 05:11:16 if i use padding, there's a border around the edges, and if i use margins, the overscroll animation is offset from the edges Dec 18 05:11:22 what's the solution here? Dec 18 05:11:56 I just installed 'reddit is fun' which asked me to rate it right away. Hate that. :/ Dec 18 05:12:24 will a preference automagically save if it uses a custom layout? Dec 18 05:12:52 I want to have a list of custom prefs (each has a switch and edittext) Dec 18 05:13:32 But idk if I should use the Preferences framework or manage the info manually Dec 18 05:13:52 TacticalJoke, it's a hot debate between my friends and i, but i think reddit sync is better lol Dec 18 05:14:21 TacticalJoke: which reddit client is yours? Dec 18 05:14:43 I haven't released it yet. Hopefully in a few months. Dec 18 05:14:59 making one for ios as well? ;) Dec 18 05:15:05 Why make a reddit client Dec 18 05:15:09 there's some excellent ones already Dec 18 05:15:15 MJCD: Such as what? Dec 18 05:15:15 like, excellent. Dec 18 05:15:28 MJCD, why bag on his app? Dec 18 05:15:29 To be honest, I hate them all. Dec 18 05:15:31 Every single one. Dec 18 05:15:50 I don't mean to be mean. Dec 18 05:15:57 http://www.androidcentral.com/best-reddit-apps-android?nopaging=1 Dec 18 05:15:57 like any of those Dec 18 05:16:03 Yeah, I've never really found one that is really good Dec 18 05:16:09 lol I don't mean to be mean either. Dec 18 05:16:22 I dislike all of four of those. Dec 18 05:16:30 But some of them are really, really good. Dec 18 05:16:30 Not sure what youd actually improve on Dec 18 05:16:36 i seriously love reddit sync lol what's wrong with any of those? Dec 18 05:16:40 so how is yours better? Dec 18 05:16:52 Mine won't waste whitespace. It'll show a lot of comments/posts/whatever. Dec 18 05:17:05 reddit sync doesnt waste whitespace Dec 18 05:17:09 thats what I use Dec 18 05:17:11 A simple comment display with powerful navigation. Dec 18 05:17:23 it has simple comments, powerful navigation Dec 18 05:17:26 at a glance overviews Dec 18 05:17:28 again, reddit sync Dec 18 05:17:28 try to fit all the vanilla options into the app :P Dec 18 05:18:00 reddit sync wastes so much space. Dec 18 05:18:04 lol... Dec 18 05:18:08 if you say so.. Dec 18 05:18:08 how??? Dec 18 05:18:11 You get, what, four posts on a screen with a large phone? Dec 18 05:18:21 Arg I don't want to save a list of prefs manually if the framework can handle it Dec 18 05:18:28 Those buttons are taking up too much space, IMO. Dec 18 05:18:33 lol :| Dec 18 05:18:47 It's not bad, but come on. What about small screens? Dec 18 05:18:47 oook then. Dec 18 05:18:48 i use reddit is fun Dec 18 05:18:51 http://imgur.com/jt6KEcL Dec 18 05:18:58 Telling me that on a tiny phone reddit sync is easy to browse Reddit with? Dec 18 05:19:03 sure. Dec 18 05:19:13 not the prettiest, but it has most abilities of the website Dec 18 05:19:14 it works just fine and is very customizable. Dec 18 05:19:33 there's different settings for the main feed ui, and large cards does waste a lot of space, but they don't all Dec 18 05:19:46 Okay, sorry. I'm just hugely opinionated here. Dec 18 05:19:51 It's almost in anger that I'm making this app. lol Dec 18 05:19:57 don't take this the wrong way - but as a developer - as with all things in business, you need to feel out actual market demands and meet needs that aren't already largely met or meetable using existing tools. Dec 18 05:20:05 If you're just reinventing the wheel 1% differently... Dec 18 05:20:07 Oh, I've researched. Dec 18 05:20:08 It's largely a waste of time. Dec 18 05:20:09 I've tried everything. Dec 18 05:20:24 godspeed TacticalJoke Dec 18 05:20:25 * g00s believes TacticalJoke Dec 18 05:20:26 TacticalJoke, I'm in support of a new app Dec 18 05:20:30 One of the biggest mistakes made in market research is assuming your opinion is anyone elses Dec 18 05:20:42 *shrug* Dec 18 05:20:53 I'm really quite interested to see it when you're done Dec 18 05:20:53 All the best anyway, I just hope you do something really new. Dec 18 05:20:55 up with hope, down with MJCD Dec 18 05:21:02 Not just a slightly new interface. Dec 18 05:21:02 It'll be different. Dec 18 05:21:07 Oh, no. That's pointless. Dec 18 05:21:13 I understand your comments totally. Dec 18 05:21:13 rdnt: I'm a realist. And have a lot of experience. Dec 18 05:21:20 So many apps are yet another version of Whatever. Dec 18 05:21:22 Take my experience or leave it, I couldn't care less heh. Dec 18 05:21:30 TacticalJoke: totally :) Dec 18 05:21:34 I'm just joking around Dec 18 05:21:54 so no input on GridView margins? lol Dec 18 05:22:02 I was gonna say dope, and then decided to put MJCD instead Dec 18 05:22:09 lmao Dec 18 05:22:17 MJCD: There's a client called RedReader that I like. Unfortunately, it doesn't support much of Reddit (doesn't even support "load more comments"). Dec 18 05:22:24 hi, i want to implement something like the whatsapp emoji keyboard. i need that view to be exactly high as the default keyboard. any hint? Dec 18 05:22:27 I say 'unfortunately' because the UI is awesome for Reddit. Dec 18 05:22:31 as a user, i find that multiple paid apps that do the same thing is confusing, and I don't know which to pick. Often, I delay the decision as a result Dec 18 05:22:38 Mine is inspired by that. Dec 18 05:22:41 for free apps, i like having variety to pick from Dec 18 05:23:16 It's inspired by the UI, anyway. Dec 18 05:23:28 I hate paid apps that have no demo Dec 18 05:23:31 It's so dumb. Dec 18 05:23:41 yeah Dec 18 05:23:47 TacticalJoke, i would like to see a couple of things: reddit live support, link flair support, user flair editing, and subreddit theming Dec 18 05:23:48 Like im going to buy something I have no idea if I like or not. Dec 18 05:24:09 drinfernoo: I intend to support all of those except subreddit theming. Dec 18 05:24:27 btw, who here uses google ads for revenue, and is there any good data on the profitability of that? Dec 18 05:24:28 I don't know about the cost:reward ratio of supporting that. Dec 18 05:25:31 To what degree could an Android Reddit app theme itself in accordance with a subreddit's theme, too? Dec 18 05:26:05 i'd never tried reddit sync until 30 seconds ago -- it's really nice! Dec 18 05:26:43 MJCD i wish i could make my paid app free and add IAP, i guess its technically possible but the people who already bought it would have to rebuy the IAPs Dec 18 05:26:52 i think if its free, then its a demo :) Dec 18 05:27:00 juicy bits cost extra Dec 18 05:28:01 i guess you run into the same problem , somebody will want a demo of the IAP Dec 18 05:28:06 heh Dec 18 05:28:30 Yeah, I dont think limiting features is the way to go personally. A demo should be the full thing. A time or number of uses limit is better Dec 18 05:28:35 or a combination of the two Dec 18 05:28:48 Like if you use the app X times in X days then obviously you use it enough to pay for it Dec 18 05:31:15 TacticalJoke, it would probably have to be mainly colors, but you could probably use custom voting icons too Dec 18 05:31:53 even a custom snoo action bar icon (not exactly material, but it's an idea) Dec 18 05:32:00 goddamnit google, I keep marking everything from this sender as spam Dec 18 05:32:05 but you won't put it in spam for me Dec 18 05:32:10 lol Dec 18 05:34:34 If I'm drawing a straight line and a rectangle, I don't need to worry about antialiasing, do I? Dec 18 05:34:44 Like, not a diagonal line. Dec 18 05:34:49 no Dec 18 05:34:51 K. Dec 18 05:34:56 you can't alias a straight line... Dec 18 05:35:58 ofcourse you can Dec 18 05:36:05 Chuck Norris can. Dec 18 05:36:05 you just dont need to Dec 18 05:37:21 yeah, drawing apps have special algos to have h/v lines at pixel boundaries Dec 18 05:39:37 in inkscape, you have to do a few things or you'll get blurry exports Dec 18 05:39:46 pfn you can alias a straight line if you draw it on a sphere Dec 18 05:41:15 i wonder if google is discontinuing google earth desktop. they haven't done shit with that thing in ages Dec 18 05:41:21 that's not a straight line for purposes of this discussion Dec 18 05:41:29 haha Dec 18 05:43:37 and aliasing a straight line will make it no longer straight :p Dec 18 05:46:18 pfn maybe the spammer paid google to get into your inbox :) Dec 18 05:46:22 how do you overlay two views? like having a transparent footer on a grid item? Dec 18 05:46:46 also, i figured out the margins thing! http://stackoverflow.com/questions/17138943/gridview-rows-outer-margin Dec 18 05:47:14 I srsly owe Napalm a virtual beer. He came up with such a simple solution to my problem Dec 18 05:47:37 And gave me an entire app demonstrating it. lol Dec 18 05:47:41 TacticalJoke: was the solution "napalm"? Dec 18 05:47:47 BOMB DA PROBLEMZ Dec 18 05:47:58 I am trying to test my implementation of google mobile analytics. I am using this page: https://developers.google.com/analytics/solutions/testing-play-campaigns yet it wants me to test the INSTALL_REFERRER. but I don't care who the install referrer is. I just want to test that the tracker which is run once the app has already started, is sending the campaign data correctly Dec 18 05:48:30 in other words, will testing the INSTALL_REFERRER stuff ensure that my screen view builders are getting built properly too? Dec 18 05:48:53 or is it a seperate testing procedure for apps that have already been installed and their campagin attribution? Dec 18 05:50:10 I just declared productFlavors and now my manifest is empty for one of the flavors, why did this happen? isn't it supposed to pick up the main manifest? Dec 18 05:50:30 what flavour is it? Dec 18 05:50:33 if its blueberry Dec 18 05:50:35 I ate it all Dec 18 05:50:35 sry Dec 18 05:50:42 sry notsry Dec 18 05:50:44 ;< Dec 18 05:51:01 lol Dec 18 05:51:05 That's so bad I almost-laughed. Dec 18 05:51:12 alol Dec 18 05:51:49 What's the best stack to use? ArrayDeque? Dec 18 05:52:36 Though I hate how ArrayDeque requires at least eight elements. Dec 18 05:53:00 Stack seems out of the question because it subclasses Vector and doesn't implement an interface. Dec 18 05:53:08 Anyone know why gradle would wipe out my manifest ? Dec 18 05:55:31 lol Dec 18 05:55:41 argh and now it says packageName cannot be resolved wtf Dec 18 05:55:53 damnit why didn't i git this when i had the chance Dec 18 05:56:47 ;o Dec 18 05:56:55 so weird Dec 18 05:57:05 ir ecovered via the local history VCS in as which is really nice Dec 18 05:57:09 but i did not delete it Dec 18 05:57:21 and it specifically has entry "Deleting" the bulk of the manifest Dec 18 05:57:25 Now that I'm sticking with this code, I improved my BetterSpannableStringBuilder: http://pastebin.com/350beaSd Dec 18 05:57:29 Though I should rename it. Dec 18 05:57:50 SuperSpannableStringBuilder? Dec 18 05:57:55 UberSpanStringBuilder Dec 18 05:58:05 Maybe just "SpannedTextBuilder" or something. Dec 18 05:58:12 Hide the whole "spannable string builder" thing entirely. Dec 18 05:59:32 StringBuilderOfLinearClosure Dec 18 06:00:43 I could do the Android thing: just append a '2'. Dec 18 06:03:09 SpannableStringBuilderSquarred Dec 18 06:03:11 don't forget the abstract factory to go along with that Dec 18 06:03:15 :D Dec 18 06:06:45 whata better about it? Dec 18 06:08:15 drinfernoo: Have you tried using SpannableStringBuilder? lol Dec 18 06:08:22 http://threatpost.com/manufacturers-backdoor-found-on-popular-chinese-android-smartphone/109929 Dec 18 06:08:34 It's kinda like a half-built house. Provides a little shelter. Dec 18 06:08:49 contains a backdoor from the manufacturer that is being used to push pop-up advertisements and install apps without users’ consent. Dec 18 06:08:52 lol Dec 18 06:09:10 yeah i don't like it Dec 18 06:09:12 lol Dec 18 06:13:22 Hmm. I'm calling Paint.getStrokeWidth in, effectively, a tight loop, but I see that it's defined as "public native float getStrokeWidth();". Should I cache the value because of JNI stuff? Dec 18 06:13:50 how can I tell if the onChange event in an autocompletetextview came from the user entering text via the keybpard, or if he just clicked an item in the views' list? Dec 18 06:16:06 any pointers on auto fitting grid items? Dec 18 06:22:47 I am moving my Big Nerd projects to Android Studio. They are maintained in Git and I am doing checkout via git option in Android Studio. I am presented with two option Create from existing source or import project from external model (gradle and maven). Which option should I choose? Dec 18 06:28:52 do you have build.gradle files in your existing project? Dec 18 06:35:05 regreddit: no, they are classic eclipse projects. I don't think they use gradle at all. Dec 18 06:35:29 then just create from existing source Dec 18 06:35:29 they used adt Dec 18 06:35:30 afaik Dec 18 06:35:33 ant * Dec 18 06:36:03 What is Big Nerd? Dec 18 06:36:40 okay i am being asked to update project properties files - once, always, never? Dec 18 06:36:42 Ok Dec 18 06:36:45 I have a dilemma Dec 18 06:37:13 The Big Nerd Ranch Guide is a very famous Android beginner book. Dec 18 06:37:14 As some of you might know, I use javascript/cordova Dec 18 06:37:26 I made an update to the java part Dec 18 06:37:26 Does data in sqlite databases pertaining to an application (e.g. data in /data/data/foo.bar.application/databases/$somedatabase) or the sqlite databases themselves get backed up to google's servers on a per account basis? or is this perhaps done on a per-app basis to begin with? Dec 18 06:37:54 will a linearlayout get the click event on it's child views? Dec 18 06:38:01 donniezazen, i dont think that matters, try once Dec 18 06:38:02 the JS is downloaded from github Dec 18 06:38:21 but now... the (new) javascript part doesn't work... but only if the game is downloaded from Google Play instead of compiled on my phone Dec 18 06:38:32 so i'm using the old js and it is annoying Dec 18 06:38:38 because it is the compiled js Dec 18 06:38:45 and .... yeah i don't have the old version.. Dec 18 06:38:50 *faceplant( Dec 18 06:38:53 aargghhhh Dec 18 06:38:59 regreddit: are you making a reddit app too ? Dec 18 06:39:09 nooo Dec 18 06:39:16 thats just my reddit username Dec 18 06:39:24 what the hell do i do Dec 18 06:40:43 donniezazen, ah, I knew about Big Nerd Ranch, just wasn't sure if that was what you were referring to Dec 18 06:40:55 shit Dec 18 06:41:38 regreddit: i get that update properties notification everytime i start AS. I should look into migrating projects to gradle Dec 18 06:42:12 Agamemnus get rid of that cordova shit of course :) Dec 18 06:43:03 now i remember why long ago i put Agamemnus on ignore, all his probems were cordova and unrelated to this channel Dec 18 06:43:31 well it is android development Dec 18 06:43:45 so is xamarin Dec 18 06:43:46 but not 'native android' Dec 18 06:44:03 if its not google apis / tools, its not android-dev Dec 18 06:44:08 native meaning NDK ? Dec 18 06:44:15 mobile web sites are 'android development' if that's the case Dec 18 06:44:21 well, we put up with pfn :) Dec 18 06:44:38 yes xamarin is also android dev Dec 18 06:45:04 i guess it doesn't matter. carry on ! Dec 18 06:45:35 How can I add additional content to the actionbar (/Toolbar) like in this guidelines mockup? : http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0Bx4BSt6jniD7bzRtTVY0YWc4R1k/layout_structure_appbar_metrics4.png Dec 18 06:45:41 I'm finally starting my Xmas shopping. lol Dec 18 06:45:43 donniezazen, definately migrate to gradle Dec 18 06:45:59 its a PITA to get going, but ok once you do Dec 18 06:46:24 napster google chris banes extended height toolbar Dec 18 06:46:40 ok Dec 18 06:46:46 he did a google+ or SO post on how to do it, because updating the docs is too hard Dec 18 06:47:37 ok. Dec 18 06:48:17 shmooz did you mention timecop the other day ? Dec 18 06:48:43 well! I already came across the that SOF post. and what I get is a shadow less toolbar with 128dp height. Dec 18 06:48:43 :) Dec 18 06:48:59 g00s: yes Dec 18 06:49:22 shmooz i rented it, that was pretty funny Dec 18 06:49:31 cool Dec 18 06:50:14 when we were talking about how if noone has sent a machine to kill you by now, you're not wanted by them Dec 18 06:50:27 * napster is confused on the usage of Toolbar over an Actionbar. Dec 18 06:50:58 Agamemnus you know there is a #cordova channel right ? Dec 18 06:51:14 napster: Not sure, but I'm guessing Toolbar will be where everyone eventually moves. Dec 18 06:51:18 I haven't moved there yet. Dec 18 06:51:50 ok Dec 18 06:52:18 I think Toolbar is a bit more flexible. It's just another View to mess around with. Dec 18 06:52:36 As opposed to being a weird static thing at the top of a window (as ActionBar is). Dec 18 06:52:59 thats right Dec 18 06:53:20 I use a linear layout instead Dec 18 06:53:27 regreddit: I can always start the next BNR app in AS and continue to use Eclipse. Running to Java IDE on your system is not pleasing. Dec 18 06:53:32 what do I need a bar for Dec 18 06:53:38 but, the menu inflation and title string etc were taken care of by the actionbar automatically Dec 18 06:53:57 shmooz Many uses a linear layout :) Dec 18 06:57:05 Shouldn't the import to AS have already migrated them to Gradle? Dec 18 06:58:42 I wonder why the toolbar doesn't have a shadow by default?! Dec 18 07:10:31 should google mobile analytics be working on any app? or only the version of the app downloaded through the play store? Dec 18 07:10:57 bilb_ono: I have no idea. Dec 18 07:11:03 I tried it myself and it didn't work. Dec 18 07:11:11 I was only able to see when my phone was active. Dec 18 07:11:20 After I turned off the app, I had no more recordings Dec 18 07:11:31 but i probably did something silly... Dec 18 07:14:04 any app bilb_ono Dec 18 07:14:16 does not have to be distributed through the play store Dec 18 07:15:02 aaearon, is there an analytics tool thats easier to set up that google's? I really don't need much. though I do need campaign attribution Dec 18 07:15:51 tbh im not sure.. although i agree its a pain because the documentation is kind of lacking Dec 18 07:16:41 aaearon, ah thanks for validating my failure Dec 18 07:17:15 are you setting it up for the first time? when i did it, i noticed that data didnt start showing up until the next day or two, including 'real time' data Dec 18 07:17:25 turning on debug logging really helped with implementation Dec 18 07:18:02 debug logging? is that part of the app and would show up in logcat? Dec 18 07:19:28 aaearon: aha Dec 18 07:19:33 yea. let me see if i can find a link. i must have blocked that trauma from my memory Dec 18 07:19:38 The docs seemed pretty simple Dec 18 07:19:43 But it just DIDN'T WORK Dec 18 07:19:52 lol Dec 18 07:20:09 right i agree Agamemnus with the docs it seemed straight forward but didnt turn out to be Dec 18 07:21:02 Don't you have me on ignore, MJCD? Dec 18 07:21:26 ok bilb_ono https://developers.google.com/analytics/devguides/collection/android/v4/advanced#testing Dec 18 07:21:52 this is what helped me to see in logcat that something was happening even though nothing showed up in GA console Dec 18 07:22:01 It's possible they didn't work because I didn't have the v4 library jar file Dec 18 07:22:14 but i do now.. Dec 18 07:22:20 although i am not sure if i need it Dec 18 07:22:27 I just used the js file Dec 18 07:22:50 I had the google play library file. Dec 18 07:22:57 google play services Dec 18 07:23:44 iirc i had the global tracker file but didnt have a global analytics config Dec 18 07:23:48 aaearon: I just used this: https://developers.google.com/analytics/devguides/collection/analyticsjs/events Dec 18 07:24:01 not the android SDK Dec 18 07:24:04 Since I'm using JS Dec 18 07:24:08 (Cordova) Dec 18 07:24:32 And then I just used this: https://developers.google.com/analytics/devguides/collection/analyticsjs/screens Dec 18 07:25:52 I think I tried both screenview and pageview Dec 18 07:26:11 Anyway it was all a big dud. Hopefully that debugging switch will help bilb_ono Dec 18 07:28:32 wtf, why isn't am broadcast -a action mypkg/.myreceiver getting hit Dec 18 07:28:38 hmm. I really only need 1 thing. I just need campaign attribution every time someone hits a certain page. Would it be simpler for me to just make my own, have that activity ping a url? Dec 18 07:29:06 and look at server logs to count pings from different phones Dec 18 07:29:15 hmm I guess I couldn't really use the GPS location settings though Dec 18 07:29:32 pfn, are you testing? Dec 18 07:29:41 May help to.. Dec 18 07:29:46 restart Dec 18 07:29:48 everything Dec 18 07:30:04 always take me a bit of fiddling with am to get it working Dec 18 07:30:08 nope, that's not helpful Dec 18 07:30:08 * pfn sleep Dec 18 07:30:24 bilb_ono: theoretically it is not that hard Dec 18 07:30:35 bilb_ono: but i gave up and made my own Dec 18 07:30:57 it should be as simple as "ga('send', 'screenview', {'screenName': 'select screen'})". Dec 18 07:31:08 (for the js...) Dec 18 07:31:19 yeah looking back it wasnt hard, it was just the information wasnt all on the GA site. iirc in addition to the global tracker config, i needed a global analytics config Dec 18 07:31:42 i dont know if the global analytics config is touched on on the site, i dont believe so Dec 18 07:32:01 Agamemnus, any disadvantages you ran into because of that? especially if someones phone has less than awesome internet connection. Like where the g analytics catches stuff that you cant Dec 18 07:32:30 well, sure Dec 18 07:32:36 google analytics uses a cdn Dec 18 07:32:38 I don't Dec 18 07:32:42 but Dec 18 07:32:49 that part of it hasn't been a problem Dec 18 07:38:29 wait what? analytics.js is for websites. but you manage screens viewed in your android app? Dec 18 07:41:18 It is a Javascript program. Dec 18 07:42:14 But I don't use analytics.js because I couldn't get it to work, like I said. Dec 18 07:42:28 I am using Cordova and Crosswalk. Dec 18 07:45:30 Agamemnus: why don't you try it with java ? Dec 18 07:47:09 question Dec 18 07:47:17 suppose I have a production version of an app on my phone Dec 18 07:47:28 but I want to test updating to a new version (preserving user data) Dec 18 07:47:36 how do I do this without deleting the old version? Dec 18 07:54:36 matt_j i dont understand; install version 1, establish state, install version 2 Dec 18 07:56:49 matt_j: you need to sign the update version with the same key and keep the same packagename Dec 18 07:57:18 It seems that we can't do this in an attrs.xml: Dec 18 07:57:25 It says that 'x' is declared twice. Dec 18 07:57:36 So should we namespace all attrs, even those in declare-styleable tags? Dec 18 07:58:23 just use unique diction pertaing to the target Dec 18 07:59:13 The only issue I have with this is that I'm already doing stuff like this in code: array.getDimensionPixelSize(R.styleable.CommentTextView_singleIndentSize, 0); Dec 18 07:59:38 If I namespace again, it's CommentTextView_CommentTextViewsingleIndentSize or whatever. Dec 18 08:01:30 If I don't namespace, I can't use 'singleIndentSize' in another attr list. Dec 18 08:01:42 (But I can use it outside of a , weirdly enough.) Dec 18 08:02:25 hi, i want to implement something like the whatsapp emoji keyboard. i need that view to be exactly high as the default keyboard. any hint? Dec 18 08:03:23 g00s: needs same signature. I don't have access to the signing info at the moment Dec 18 08:03:48 mneri look at the source Dec 18 08:04:58 lasserix: source of... ? Dec 18 08:05:36 android source code Dec 18 08:06:07 lasserix: lol Dec 18 08:06:39 lasserix: i mean, what class, what file, what package? Dec 18 08:06:56 you can find out the default height of the keyboard idk look up the keyboard Dec 18 08:14:03 mneri: you can look at sample code here. This demo does something similar: https://github.com/chiragjain/Emoticons-Keyboard/blob/master/src/com/learn/testdifferentkeyboard/MainActivity.java Dec 18 08:17:30 appleX: ty Dec 18 08:19:32 I stupidly updated a bunch of stuff in the SDK manager and I''m now getting a bunch of errors in the format "styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'." Dec 18 08:20:24 I can fix it by changing the target-sdk from 19 to 21, but I still want to build against sdk-19 for now. How can I roll back to building with 19? Dec 18 08:29:26 Hi all, is it possible to use a tint color / colorfilter on this? http://pastebin.com/ShF8QU0X Dec 18 08:31:12 d0de: try updating the support lib Dec 18 08:45:56 thepoosh, pretty sure I already have the lastest v of the support library, 21.0.3 Dec 18 08:50:43 did you update adt and all the build tools? Dec 18 08:50:45 d0de: ^ Dec 18 08:52:40 thepoosh, yeah, I updated everything Dec 18 08:53:01 all the advice I found online just said "change your complileSdkTarget to 21" which does suppress the complaints Dec 18 08:53:08 are you using appcompat? Dec 18 08:53:12 yes Dec 18 08:53:19 did you update it? Dec 18 08:53:25 the project Dec 18 08:54:05 I'm not sure what you mean by the project - I updated everything using the SDK manager Dec 18 08:54:11 d0de: you should downgrade the support library Dec 18 08:54:20 Dream_Team, how do I do that? Dec 18 08:54:22 you need to import the new appcompat to your workspace Dec 18 08:54:31 Are you using gradle ? Dec 18 08:55:32 Dream_Team, no, I'm using Eclipse Dec 18 08:55:34 and ant Dec 18 08:55:41 shmooz: I am not a masochist. Dec 18 08:55:57 I know I should switch, but I haven't yet Dec 18 08:56:00 Oh Dec 18 08:56:14 Don't know how to get an older version of the appcompat project Dec 18 08:56:30 For curiosity, why can't you compileSdk 21 ? Dec 18 08:57:13 I guess you could compile with 21, but keep 19 as a target in your manifest Dec 18 08:57:28 Well I can - I updated the SDK manager because I wanted to get some lollipop emulator images to test against Dec 18 08:57:43 but in lollipop, my notification actions don't seem to be working properly Dec 18 08:57:57 changing the SDK you compile with doesn't have to change the targetSdk of your manifest Dec 18 08:58:02 but I'm not sure if that's because of the new theme my app seems to be using, or if it's always been like that Dec 18 08:58:16 so I want to test my old apk with the old theme against lollipop Dec 18 08:58:27 oh okay Dec 18 08:58:39 Question: If I want to build hardware to run Android TV. Is there a good resource to contact or read Dec 18 08:58:47 only the targetSdk should change behaviour Dec 18 08:59:00 that's what the runtime checks Dec 18 08:59:13 Dream_Team, but even setting the target sdk in my manifest to 19, my app still has the new material-esque theme Dec 18 08:59:23 the appcompat backports it Dec 18 08:59:35 it brings material-esque even to kitkat Dec 18 08:59:37 (and lower) Dec 18 09:00:08 is it possible to change the color of a 9patch image programatically? The drawable is used in a style Dec 18 09:00:22 also, even if target-sdk is 19 you are right : the values-v21 will be picked Dec 18 09:00:33 so you need to find an onlder appcompat and build with that Dec 18 09:00:54 Dream_Team, do you know how I could do that? :S Dec 18 09:01:10 you need to find an older copy somewhere Dec 18 09:01:13 don't know where :/ Dec 18 09:01:17 (and I have to go) Dec 18 09:01:39 But I highly doubt that your issue has to do with the theme Dec 18 09:01:55 notifications aren't impacted by that themes Dec 18 09:03:40 Dream_Team, yeah you're probably right. Thanks very much for your help Dec 18 09:04:27 I should probably have an older version of appcompat in my version history anyway Dec 18 09:08:29 http://www.xda-developers.com/android/android-5-1-coming-february-2015/ Dec 18 09:08:31 what ? Dec 18 09:09:06 gordon_: I heard about it, it's supposed to help some memory issues Dec 18 09:10:22 eh.. Dec 18 09:10:31 5.0.2 is too mainstream.. Dec 18 09:16:45 developer registration fee is 25 dollars yea? Dec 18 09:17:50 aaearon: Let me ask you this, when you push hard enough, does blood come out? Dec 18 09:18:07 lol wut Dec 18 09:18:43 aaearon: Thanks, I've saved your response and we'll consider it in future updates. Dec 18 09:19:04 LOLLLL Dec 18 09:19:18 aaearon: did you try to register? Dec 18 09:24:26 Morning All Dec 18 09:27:57 CIFS writes at 1MB/s who needs OTG anymore Dec 18 09:28:04 Shit, who needs computers anymore Dec 18 09:29:12 I've started going to the movies with a fork Dec 18 09:30:29 Not to eat with mind, but we seem to have the uncanny habit of attracting fat fucks who buy the large bucket of popcorn and sit right next to me Dec 18 09:30:50 what Dec 18 09:31:20 They'll fart so loudly and deafening about half way through the movie, the event lasts aproximately 20 seconds and the fucker just keeps eating popcorn without popping a sweat Dec 18 09:31:26 does multidex work for you in android 2.x ? Dec 18 09:31:38 farting in a movie theater? Dec 18 09:31:40 that's new Dec 18 09:31:54 I've got one on them now, turns out there's an area on the human skull that, when punctured with the proper of amount of force, induces an instant vegitative state Dec 18 09:32:09 last time I was in a movie theater was the release of Harrison Ford's family abduction movie. Dec 18 09:32:12 Which bombed. Dec 18 09:32:19 But some guy kept laughing like an idiot Dec 18 09:32:44 Some people just want to watch the world burn Dec 18 09:32:49 darklust, should i call the police Dec 18 09:33:07 http://www.imdb.com/title/tt0408345/ Dec 18 09:33:10 After we leave the theater sure Dec 18 09:33:13 that's the last movie I saw Dec 18 09:33:29 movie theaters are dead to me Dec 18 09:34:13 Of course, redbox and netflix are tempting Dec 18 09:34:37 But I'd like to enjoy the big screen for once without fear of being coated with a fine layer of fecal matter Dec 18 09:37:06 what country/state? Dec 18 09:37:08 asl? Dec 18 09:37:26 :P Dec 18 09:37:42 Heh Dec 18 09:38:23 My wife is concerned that the body count will get too high too quickly Dec 18 09:39:25 how would I create something like these coach marks for YouTube? http://www.mobile-patterns.com/android/coach-marks Dec 18 09:39:50 as if a window into the underlying view, with the rest of the overlay being opaque Dec 18 09:40:18 ahhh what they do is make a picture that has an empty spot in it, Im sure Dec 18 09:40:25 ok nvm Dec 18 09:40:31 https://github.com/amlcurran/ShowcaseView Dec 18 09:40:35 i see Dec 18 09:40:43 i should sleep Dec 18 09:40:45 goodnight Dec 18 09:40:50 Sleep is for the weak Dec 18 09:40:52 don't stab too many with your plastic fork Dec 18 09:40:58 or is it a spork Dec 18 09:40:59 yea I saw showcase being recommended somewhere Dec 18 09:41:08 very nice, thank you Dec 18 09:41:19 It's a fine titanium fork, german craftmanship Dec 18 09:41:25 Is it worth using? Dec 18 09:41:25 Perhaps. Why not ask Google, HaxSync, or AllCast, which each use the library? Dec 18 09:41:28 haha Dec 18 09:44:15 maybe this is good for when you have minimal UI like the one he previewed, or UI with little number of things to press Dec 18 09:44:26 or few things to explain :) Dec 18 09:44:31 which should be the case Dec 18 09:45:42 Odaym: if you have too much to explain, I think that you have a bigger issue Dec 18 09:46:07 ok Dec 18 09:46:10 thanks Dec 18 09:46:13 Even this kind of tutorial gets boring fast, and you end up mashing the OK button Dec 18 09:48:29 sup whatitis Dec 18 09:48:31 what is it? Dec 18 09:48:32 lel Dec 18 09:48:37 brb Dec 18 09:48:38 my apk compiled with proguard is unusable b.o. errors like "Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted". I can list all those classes with -keep class but I feel it makes no sense to explicitly keep classes that are part of the "standard library" Dec 18 09:48:43 is there any other way to do it? Dec 18 09:50:48 slmb: you need to update your proguard.cfg Dec 18 09:51:07 if you;re using libraries, you should check them for the definitions you need Dec 18 09:51:28 slmb: http://stackoverflow.com/a/18847362/1056359 Dec 18 09:51:50 hm yeah okay, thanks thepoosh Dec 18 09:51:55 np Dec 18 10:02:14 Has anybody worked with SOAP on Android with KSOAP2 library? Dec 18 10:02:25 I need to clear some doubts, to understand it well Dec 18 10:02:27 yes Dec 18 10:02:43 kevel1, great! :) Dec 18 10:03:05 I have trouble understanding how it all works, what's an envelope, and why is it different than a request etc Dec 18 10:03:23 do you understand soap? Dec 18 10:03:32 Not exactly. Dec 18 10:03:38 Have worked more on REST so far Dec 18 10:03:48 and probably for the best also :p Dec 18 10:03:57 indeed! :P Dec 18 10:03:58 you create an envelope with a namespace Dec 18 10:04:17 then you can add your extra params and what not Dec 18 10:04:25 I am trying to create an order in Magento, which is not available with their REST API, thus, SOAP Dec 18 10:04:25 then you send the envelope as a request Dec 18 10:04:42 okay, but that envelope says setOutPut to the Request Dec 18 10:04:55 digging up an old repo Dec 18 10:04:56 hold on :p Dec 18 10:05:10 giving an impression that the envelope will be executed and the output will be set to the request. Dec 18 10:05:28 but in reality, request is executed, and output is being printed with toString() etc Dec 18 10:05:44 Ok so you create en envelope Dec 18 10:05:46 kevel1, oh great, thanks so much :) Dec 18 10:05:50 mhmm.. Dec 18 10:05:58 set its output soap object as your request Dec 18 10:06:02 which is a SoapObject Dec 18 10:06:06 mhmm Dec 18 10:06:55 How do I reset wearable data items of my app from the device? =) Uninstall seems not doing it Dec 18 10:07:28 SheikhAman, http://pastebin.com/jbMTwVic Dec 18 10:07:51 what's the bast way to implement chat mecanism ? webservice for pushing / pulling messages, or GCM for pulling messages ? Dec 18 10:08:02 kevel1, opening it :) Dec 18 10:08:14 SheikhAman, thats a method i wrote which calls a specific method on a soap endpoint Dec 18 10:08:30 or something hybrid, like webservice for pushing / pulling + GCM Sync for telling when to pull ? Dec 18 10:08:35 passing it a hashtable of params, it puts it into the request, then fires it off Dec 18 10:08:41 and returns the resulting soap object Dec 18 10:08:43 kevel1, pastebin is just a blank white page, srange! Dec 18 10:09:17 okay, so is the Envelope merely a meta information, which is put in the request? Dec 18 10:09:32 request is put in the envelope Dec 18 10:09:41 and outputting an enveloper on to a request means you're setting the meta of that request? Dec 18 10:09:55 blusky, gcm for receiving messages, rest for posting messages (this is the easy route) Dec 18 10:10:03 is it? Dec 18 10:10:04 hey guys, so I got this connection to Web service java class, I managed to connect and get back the login token, but how do I intergrate this into my android project? so I can use it as a function? Dec 18 10:10:12 kevel1: can I trust GCM to send all messages ? Dec 18 10:10:12 envelope.setOutputSoapObject(request); does the other way around Dec 18 10:10:30 blusky, you could also create some sort of socket communication if you want however when the devices deep sleeps, connection is dropped and user is offline Dec 18 10:10:42 TaxmanBD, you can use pretty much all that java code into your android app Dec 18 10:11:01 blusky, i think gcm piggybacks on tcp/ip so ye i would assume so Dec 18 10:11:01 TaxmanBD, better replace the classes which are doing the network handling, with Android's own such classes Dec 18 10:11:55 kevel1: cause I was thinking a "pull?lastView=..." called when a GCM sync is receive, send all messages since lastView Dec 18 10:12:02 kevel1, I am afraid, the pastebin link you gave doesn't open :( Dec 18 10:12:05 SheikhAman, thanks but when I put this java class in a package in my android project for example and tried to debug it, I got some errors Dec 18 10:12:07 so if a GCM call isn't sent, the next one will make it work Dec 18 10:12:09 just gives a blank page Dec 18 10:12:10 SheikhAman, create envelope, set request for envelope, create transport, send envelope through transport Dec 18 10:12:44 blusky, im very against the whole polling for messages thing Dec 18 10:13:00 kevel1: why ? Dec 18 10:13:08 because its a waste of network calls Dec 18 10:13:19 TaxmanBD, what errors are those? Dec 18 10:13:28 kevel1, I think I'd read some theory of SOAP first :D Dec 18 10:13:35 it's all quite confusing :P Dec 18 10:13:51 99% of polling returns data that isn't needed (or empty results) Dec 18 10:13:59 Maybe somebody knows this here: If a custom class isn't in the classes.dex file, where else could it be found? (Not a system/custom rom class) Dec 18 10:14:06 unless you doing some statistical reporting or something Dec 18 10:14:09 As soon as one of my notification actions is used in lollipop, the notification actions disappear and don't return. The notification is still there, but the actions aren't. This only happens in lollipop, 4.x works fine. Any ideas about what's going wrong? Dec 18 10:14:10 Polling wastes battery, processing and network Dec 18 10:14:28 SheikhAman, exactly Dec 18 10:14:33 kevel1: I would need a confirmation that the message is received, i can do it at this moment Dec 18 10:14:45 gcm for incoming, http post for outgoing (if u have limited time) Dec 18 10:14:53 ok Dec 18 10:14:56 will try it :) Dec 18 10:14:57 thx ! Dec 18 10:15:00 blusky, just what kevel1 said Dec 18 10:15:11 SheikhAman, something about socket closed, I'm not on my main box right now can't paste the full error, oh btw you mean I should convert all java network handling into using android libs? Dec 18 10:15:15 when your device receives a message, ping another URL telling your server that it did Dec 18 10:15:51 TaxmanBD, ideally, yes. Android has it's own classes Dec 18 10:16:11 TaxmanBD, have a look at okhttp and retrofit Dec 18 10:16:41 TaxmanBD, and then have a look at activityauthenticator (i think its called that) and android accounts Dec 18 10:17:54 kevel1, yes I have them both in my project, but does retrofit deal with getting CA certificate from the web service? sorry I just found out about retrofit yesterday but mainly went through the json part Dec 18 10:18:54 wouldnt u use a sslfactory or something for that? Dec 18 10:19:51 kevel1, yes I do but with java Dec 18 10:22:13 kevel1, so I have connected with the webservice and got the login token back but it's in a java class outside of my android project, when I copy the code into my android project and debug it I got some error, the exact same code works fine in a java project Dec 18 10:22:45 what was the error? Dec 18 10:25:05 hmm I'm not on that machine right let me see if I can google the error Dec 18 10:30:02 something like this error: http://stackoverflow.com/questions/12273118/internal-error-javaclasses-cpp129 Dec 18 10:33:34 I checked a few answer on SO and got some results that should make it work but it seems kinda hacky, I really wanna know the correct way to login through webservice to android, the android doc example isn't quite complete Dec 18 10:49:55 for native development of 3d apss, what IDE would you recommend for fast debugging and coding? is CDT the only one? Dec 18 10:55:23 lasserix: You here? Dec 18 10:58:11 TacticalJoke, need help? Dec 18 10:59:56 Oh, I'm fine, thanks. He and I were talking about optimizing ListView recycling, and I'm trying something new. :) Dec 18 11:02:05 Basically, ListView seems to be slow when showing rows of wildly varying heights. Dec 18 11:02:37 The idea I'm trying right now is to estimate how high a row will be before displaying it; if it's gonna be high, consider it a type 2; if it's gonna be small, consider it a type 1. Dec 18 11:02:42 And just return the same regardless in getView. Dec 18 11:02:57 Then the recycler mechanism is reusing rows of the same kinda height. Dec 18 11:03:31 i think i like kotlin Dec 18 11:03:32 Omg, I think it works. lol Dec 18 11:03:44 why is it popular with android? Dec 18 11:11:25 hi there Dec 18 11:12:10 lasserix: Dude, this is hilarious. Dec 18 11:12:30 when I set this @color/white from my styles.xml it will set every view background to white, even my TextViews Dec 18 11:12:34 lasserix: If I just keep adding view types for different comment lengths, it can scroll with almost no lag through some comments. lol Dec 18 11:12:44 Even if they're varying between monster size and tiny. Dec 18 11:12:56 what I would like to achieve is to set my activity, fragments to an image Dec 18 11:13:02 any clue Dec 18 11:13:18 only fragments and activities Dec 18 11:13:50 zoraj: The only way I can think of is to create a custom attribute. Something like myActivityBackgroundColor. Dec 18 11:13:54 yeah Dec 18 11:14:00 just add Dec 18 11:14:01 lasserix: I am amazed. Dec 18 11:14:02 like 10 Dec 18 11:14:10 do it based on line height Dec 18 11:14:18 zoraj, check WindowBackground in the same way Dec 18 11:14:19 lasserix: How do I get the line height in advance, though? Dec 18 11:14:41 you need to make part of retrieving the comments to be parsing, so you can estimate Dec 18 11:14:49 ok thanks for the path to go, let me do some search about them now Dec 18 11:15:55 lasserix: Wouldn't I need to measure the text, though? Dec 18 11:16:00 lasserix: Or are you talking about new-lines and stuff. Dec 18 11:18:08 yeah Dec 18 11:21:22 Yeah, this current system (counting characters) seems only so good. Dec 18 11:21:26 I really need to estimate lines. Dec 18 11:32:42 my notification actions disappear on lollipop, but work fine on 4.x - any ideas why? http://paste.ideaslabs.com/show/a6SYTEHHEg Dec 18 11:33:26 have a couple of actions attached to a notification for a foreground service Dec 18 11:43:11 lasserix: I might start collecting data. There certain seems to be a very strong correlation between number of characters and height. Dec 18 11:43:20 I could add view types for outliers, I guess. Dec 18 11:43:33 Though I don't wanna go too far and worsen performance. Dec 18 11:45:39 TacticalJoke, hope you taking in the character sp value into consideration Dec 18 11:45:44 in fact, my notification won't update at all Dec 18 11:45:57 it's not just the actions, even if I try to change the text or title, nothing happens Dec 18 11:56:25 choo chooo! hi people :) Dec 18 11:56:45 hey Dec 18 12:00:12 TacticalJoke: yeah Dec 18 12:01:05 you may want to just parse inside the retrieval,t hen you can insert your delimiters... so your custom drawing can just look for the breaks at the delimiters Dec 18 12:05:36 Hmm. What I'm finding is that the fastest thing is simply to not setText too many characters. Dec 18 12:05:40 Maybe I should implement the limit thing. Dec 18 12:05:50 Setting maxHeight and maxLines don't even solve the problem. Dec 18 12:05:54 Even with tiny values, the lag is very similar. Dec 18 12:06:00 I think setText is another bottleneck. Dec 18 12:06:07 Regardless of the ListView thing. Dec 18 12:08:03 are admob ads supposed to include a close button or do i have to createa a close button? theres an x and a ? that appear in the same place and just take you to the google ad prefs page Dec 18 12:10:54 hi, it happens to me that while gradle builds are successful, Android Studio have compilation error due missing libraries, what I could clean up? I tried restarting Studio then cleaning cache history but still got those errors...damn Dec 18 12:11:19 TacticalJoke, what is it again you are trying to do? Dec 18 12:11:30 Something about list view items and heights Dec 18 12:13:54 blues-man: are you upgrading from eclipse or something? which libraries are missing? Dec 18 12:14:04 you can clean project Dec 18 12:14:26 and you can try restart/invalidate caches, it used to solve a lot of problems back in <0.8 Dec 18 12:16:48 bluecup, I'm using Android Studio 1.0, and using jar libraries that in libs directory as specified in the gradle file. The point is that invoking gradlew by command line, I have a build successful, but from Android Studio I see errors due missing classes Dec 18 12:18:02 ok, you tried syncing gradle files, clean, rebuild? this is really weird :S Dec 18 12:18:19 bluecup, this problem goes aways only on reboot, so it should be some /tmp settings or whatelse, cannot find out why there is this ncoherence Dec 18 12:19:10 Try File> Invalidate caches/Restart if you haven’t already. Anyways, I’d report it as an issue Dec 18 12:19:12 I tried to sync the project, clean intellij cache, and clean from gradle but no way, I wonder if is there some trick I should do Dec 18 12:19:25 Yes I did.. :/ Dec 18 12:19:44 sry man, don’t have any real clue what might be happening :/ Dec 18 12:20:12 I see, thanks for trying to :) Dec 18 12:22:13 kevel1: Making a Reddit client, and noticing that ListView scrolling is quite slow for large comments. Dec 18 12:22:22 Investigating every possibility. Dec 18 12:22:43 I'll probably switch to RecyclerView at some point, but I don't know how much it'll help. Dec 18 12:22:56 Performance isn't terrible (it's about the same as that of Reddit News). Dec 18 12:23:11 hello. i’m going over the Big Nerd Ranch book, and I want to add my work to a git repo. Dec 18 12:23:13 I wish it were extremely fast, though. :) Dec 18 12:23:37 Tactical: Have you thought of shortening comments over N characters, and expanding them onClick? Dec 18 12:23:47 Yeah, I'm considering that. Dec 18 12:24:16 It complicates the UX a little, but it might be worth doing. Dec 18 12:24:34 what files to you add to your repo, particularly if you want to allow people with other IDEs import your code? Dec 18 12:24:47 s/to/do Dec 18 12:24:50 I have ActivityA that can start ActivityB (using startactivity). When I click back in ActivityB it goes to activityA. Now, how can I start my old ActivityB rather than creating a new one? Dec 18 12:25:01 scruz: It's an IDE issue. Try googling your IDE name + gitignore. Dec 18 12:25:58 Might be a really good idea, I had a project where there were some locations with tons of description on them, and I ended up just shortening it (actually, creating a smaller model since that one had a lot of stuff) and expanding onClick. It’s a common UX element Dec 18 12:26:00 TacticalJoke: thanks. Dec 18 12:26:11 vedu: look up Intent Flags Dec 18 12:26:16 would that i had a structure anyone could import into any IDE Dec 18 12:26:47 vedu: using single top or reorder to front Dec 18 12:27:38 scruz: It's hard to go from IDE to IDE in general, to be honest. Dec 18 12:27:40 bluecup: yes I was about to Dec 18 12:27:59 TacticalJoke, githubbing? Dec 18 12:28:07 Why is written that singleInstance and singleTask should not be used? Dec 18 12:28:39 TacticalJoke, i find it being suffice Dec 18 12:29:01 TacticalJoke, i remember seeing an API for setting the number of cached views in memory Dec 18 12:29:11 my notification actions disappear on lollipop, but work fine on 4.x - any ideas why? http://paste.ideaslabs.com/show/a6SYTEHHEg Dec 18 12:29:32 the notification doesn't seem to update at all after I've set it, even if I just try changing the text Dec 18 12:29:36 TacticalJoke, else u trying to set a view as soon as it comes to focus / in view Dec 18 12:29:40 and trying to populate it with info Dec 18 12:30:08 also try reduce slow executing code from view handling Dec 18 12:30:14 well, i guess i’ll just use eclipse, since AS can import its code Dec 18 12:30:21 in case you are doing extra db calls or something Dec 18 12:30:45 vedu: because they may cause “backstack” issues and you can create weird navigation using them that users won’t be used to Dec 18 12:30:49 scruz: no Dec 18 12:30:57 scruz: get the hell away from that Dec 18 12:31:23 lol. scruz I agree with bluecup Dec 18 12:31:29 scruz: importing any more complicated project from eclipse to AS can ruin your day, as it is not as automated as it seems to be Dec 18 12:32:17 bluecup: following a book that uses eclipse. Dec 18 12:33:12 scruz: never mind that, work in AS and if you can’t seem to do something, look it up on google or ask here. eclipse with ADT got deprecated for a reason. Dec 18 12:40:31 is it possible to mutate a drawable which is used in a style? Dec 18 12:41:49 like i have some 9 patch drawables and want to change the color Dec 18 12:44:51 i’ve android sdk installed via homebrew. how do i configure AS to use that and not download its own copy? Dec 18 12:45:49 FrancescoV, that would depend on the specific drawable (there are many variants) Dec 18 12:47:20 ravilov: like those pngs https://github.com/JakeWharton/Android-ViewPagerIndicator/tree/master/library/res/drawable-hdpi I want to modify the color programatically Dec 18 12:53:44 PNGs are generally BitmapDrawables, apparently making them mutable only copies the state while the bitmap itself is still shared Dec 18 12:54:19 so I guess you can, but I don't think that is generally the advised approach Dec 18 12:59:27 ravilov, this is my code now but isn't working, any idea what I'm doing wrong? http://pastebin.com/F49YsvCn Dec 18 13:00:03 for some strange reason i don't get the scan results from the wifi when the wifi off even if scan only is availablle Dec 18 13:01:33 try SRC_ATOP FrancescoV Dec 18 13:01:57 or any other PorterDuff mode Dec 18 13:02:03 ? Dec 18 13:09:30 Hi! Dec 18 13:09:38 hi ahop Dec 18 13:10:03 hi bluecup Dec 18 13:10:26 do you work with java + android studio usually? Dec 18 13:10:42 yeah, always Dec 18 13:11:10 bluecup Do you know a little bit about javascript? Dec 18 13:11:43 (I know it's off topic here ^^) Dec 18 13:11:55 oh not really, I never liked js, but I do work with them on hybrid apps so I might know the answer sometimes :) Dec 18 13:12:05 *them meaning our JS team Dec 18 13:12:35 there is a javascript channel too though x) Dec 18 13:12:52 bluecup here is the "app" I need to do : http://gget.it/5zi1kwt1/test_app.html (only 14 lines of code!) Dec 18 13:13:07 But I need to do it as an Android app, not JS Dec 18 13:13:21 ktwo: i imagine JS channel as something like a battleground of holy wars. worse than vim vs emacs, it’s node vs angular vs backbone, vs 3 node forks vs all kind of weird shit Dec 18 13:13:31 I promised to my friend who asked me to do that: "I can do this in 10 minutes" Dec 18 13:13:44 ok that ain’t hard Dec 18 13:13:49 button with an onClickListener Dec 18 13:13:58 I managed to do it "in JS in 10 minutes" but not as Android app Dec 18 13:14:39 Do you think these 14 lines are easily convertible into Android app (android studio java) ? Dec 18 13:15:23 Create an EditText with these parameters programatically, and then just in onClickListener addView(myEditText); to a LinearLayout that is set to vertical Dec 18 13:15:43 and be sure to put the LinearLayout in a scrollView :) Dec 18 13:16:26 which version of java is supported by android? Dec 18 13:16:28 I'm afraid I will lose my bet with my friend :( I have a meeting with him in 45 minutes Dec 18 13:16:55 HunterD: it’s 6..kinda Dec 18 13:17:05 bluecup for how much would you help me to convert these 14 lines of JS into app? ;) Dec 18 13:17:10 ahop: nah you won’t Dec 18 13:17:25 hahah idk man Dec 18 13:17:56 ty bluecup Dec 18 13:22:43 from what i heard, it doesn't matter if you're black or white Dec 18 13:22:45 O_O Dec 18 13:30:22 Hello! For example i have 3 Layouts one over other and they all are match parent, so all have application screen size. If i place in first layot (bottom) surface view and start draw with 60FPS. If i add some lightweight view in layout 2 and 3 - they can decrease performance of surfaceview drawing. So my question. If i set visibility GONE for all top layouts - it will improve performance? So i mean if view is gone - is it participate ind Dec 18 13:30:22 whole rendering process? Dec 18 13:31:32 my notification actions disappear on lollipop, but work fine on 4.x - any ideas why? http://paste.ideaslabs.com/show/a6SYTEHHEg Dec 18 13:33:58 d0de: are you using the notificationmanagercompat ? Dec 18 13:35:12 Dream_Team, yes, I use NotificationCompat.Builder to build the notification Dec 18 13:35:53 Noticed that, but are you feeding it to NotificationManagerCompat ? Dec 18 13:35:56 I don't see where you instanciate it Dec 18 13:37:40 Dream_Team, oh, I have `NotificationManager notificationManager = (NotificationManager) getSystemService(this.NOTIFICATION_SERVICE);` , is that wrong? Dec 18 13:38:00 Well, it shouldn't be Dec 18 13:38:17 xgearx: if view is gone, it's not rendering Dec 18 13:38:18 But 1/ make sure you are not in the code path that uses startForeground (at least for debugging this) Dec 18 13:38:28 2/ https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat.html Dec 18 13:38:54 it replaces the systemService Dec 18 13:40:52 hi guys anyone working with retrofit library? Dec 18 13:41:55 Dream_Team, I seem to get a castClass exception when I try to change to NotificationManagerCompat: "android.app.NotificationManager cannot be cast to android.support.v4.app.NotificationManagerCompat" Dec 18 13:43:06 Hey guys. I'm trying to use RecyclerView with Horizontal orientation to scroll through some images. The problem is that I want to simulate the same effect as gallery, when the user scrolls the next image is centered Dec 18 13:43:34 Any ideas on how I can achieve this behavior? Dec 18 13:45:06 nm, I was instatiating it wrongly Dec 18 13:45:37 sux Dec 18 13:46:17 huh, I think the notification orginally stopped working on lollipop because I updated the v4 support library, I hadn't made that connection till now Dec 18 13:47:25 does anyone use jackson-jr? Dec 18 13:48:36 Dream_Team, I successfully changed notificationManager to notificationManagerCompat but the problem with the actions still persists Dec 18 13:49:40 EditText with AllCaps filter adds whitepace after each character in 4.1, but not in 4.4 Dec 18 13:49:46 d0de: I don't understand :/ Dec 18 13:49:55 I mean, I understand what you said Dec 18 13:49:58 but not why it happens ... Dec 18 13:50:56 should I not be using startForeground? is there some method of notificationManagerCompat I should be using instead? Dec 18 13:51:55 it's a really frustrating problem. I've checked with users who run 5.x and the old release of my app, before I upgrade the support libraries, worked fine with notifications! The problem only started when I stupidly updated a bunch of stuff in the SDK manager Dec 18 13:52:13 I don't know about startForeground Dec 18 13:52:41 but maybe the notification builder compat is broken Dec 18 13:53:10 maybe, but it still works perfectly on 4.x :( Dec 18 13:53:25 JakeWharton: I have a question about Android-ViewPagerIndicator. Is it possible to change the color of a TabPageIndicator which uses the style like your sample programatically? Dec 18 13:53:42 d0de: did you try calling the native api ? Dec 18 13:53:52 i know it's not a long term solution Dec 18 13:54:09 Dream_Team, could you explain what that means in this context? Does that mean not using compat at all? Dec 18 13:54:21 Yeah, use the standard Notification Builder Dec 18 13:54:24 giving it a shot Dec 18 13:54:35 obviously only for testing, since it will break on older 4.x Dec 18 13:56:36 Btw, are you sure that your notification is not simply collapsed ? Dec 18 13:57:38 Dream_Team, what does a collapsed notification look like? How would I know Dec 18 13:57:52 You don't Dec 18 13:57:59 just swipe down on it with two fingers Dec 18 13:58:01 and see if it expands Dec 18 13:58:18 I'm pretty sure it's not that - the actions don't update even right after I tap them. E.g. on 4.x when I tap the "mute" action it immediately is updated to the "unmute" text and icon. Nothing happens on 5.x Dec 18 13:58:28 Oh, but you see the action ? Dec 18 13:58:32 I thought they didn't show up Dec 18 13:58:35 Well I'm only testing against the emulator Dec 18 13:58:52 they show up the very first time I run the app, and no times after that Dec 18 13:59:07 hmm I heard about that already Dec 18 13:59:21 about what sorry? Dec 18 13:59:32 about the actions showing up the first time Dec 18 13:59:33 and never again Dec 18 13:59:39 IIRC there was something wrong with the pending intents Dec 18 14:00:00 I vaguely remember reading something about that Dec 18 14:01:11 ok! that's progress Dec 18 14:01:50 hope it is. Dec 18 14:03:15 ...but that wouldn't explain why the actions worked on 5.x before I updated the SDK? Dec 18 14:04:39 d0de: I really don't know ... Dec 18 14:04:57 Maybe it's stricter about the manifest ? Dec 18 14:04:59 or other stuff Dec 18 14:05:20 I got a crash the other day, only for target 21 apps running on L, because something was missin g in the manifest Dec 18 14:05:31 there are many changes that we don't know about Dec 18 14:05:46 does that code still work on 4.x ? even with the new sdk ? Dec 18 14:09:04 Dream_Team, yes, it still works on 4.x - you mentioned the manifest, what should be in there? Dec 18 14:09:17 everything, the receiver, the service Dec 18 14:09:22 Is logcat silent about that issue ? Dec 18 14:09:37 I must admit that I have no clue of what is going on, but the problem is probably with the pending intents Dec 18 14:12:13 oh, perhaps my receiver doesn't have the correct filter set up in the manifest? Dec 18 14:12:38 if it is the case, it should have broken way before 5 Dec 18 14:12:40 how can I find out what that receiver should look like? Dec 18 14:13:49 is it possible to set a selector drawable programatically as background? instead of in xml? Dec 18 14:15:36 Dream_Team, can you point me towards what intent-filter my receive should have to access the intents sent my NotificationManager actions? Dec 18 14:20:23 sorry, got disconnected for a moment Dec 18 14:23:41 d0de_: I don't know Dec 18 14:23:43 sorry Dec 18 14:24:11 I'm going to try reverting back to the older version of the v4 support library and see what happens Dec 18 14:24:56 Dream_Team, thanks for all your help so far, I do very much appreciate it Dec 18 14:25:13 I had forgotten what a nightmare these kinds of problems are to diagnose, I should never have updated my SDK Dec 18 14:30:26 it's not possible that it's just broken in the emulator is it? Dec 18 14:30:43 5.x hasn't been pushed to any of my test devices yet so I'm totally relying on that Dec 18 14:32:22 it's kind of possible Dec 18 14:32:28 the emulators have always been crappy Dec 18 14:32:37 if you have any doubt, try genymotion Dec 18 14:35:15 switched back to the old version of the v4 support library, exactly the same thing :( Dec 18 14:39:54 aw :< Dec 18 14:42:30 d0de_: we have lollipop devices that work just fine with appcompat Dec 18 14:42:42 do you know that there are 3 different versions of it at the moment? Dec 18 14:42:53 one jar for each part of the support Dec 18 14:44:35 thepoosh, the notifications don't seem to work even when I don't use appcompat Dec 18 14:50:31 Got a call from a guy telling me I've had a car accident in the last two years. Dec 18 14:50:37 Asked him for my name and he hung up. lol Dec 18 14:51:39 good morning TacticalJoke Dec 18 14:51:47 bloody hell Dec 18 14:51:53 it's the bloody emulator that's broken Dec 18 14:52:01 I am the world's stupidest man Dec 18 14:52:09 try wiping all the blood off of it Dec 18 14:52:12 Dream_Team, sorry for wasting so much of your time Dec 18 14:52:38 I spent the last five hours trying to fix a problem that doesn't exist Dec 18 14:52:58 yeah I hate when that happens Dec 18 14:53:38 band aid on a wooden leg ? Dec 18 14:53:39 :D Dec 18 14:53:56 (im not sure if it mean anything in english :D) Dec 18 14:54:05 Hey, shmooz. Dec 18 14:54:39 If you have a Bitmap which has red and white pixels. Is it possible to change the red pixels to another color? Dec 18 14:55:27 Hi How can I integrate selendroid to a gradle project Dec 18 14:55:28 please help since I have not used selendroid before Dec 18 14:55:28 IS there any documentation or sample projects available ? Dec 18 14:56:03 http://developer.android.com/reference/android/graphics/Bitmap.html#setPixel%28int,%20int,%20int%29 ? Dec 18 14:56:14 FrancescoV: Dec 18 14:56:51 blusky: thanks a lot! Dec 18 14:57:25 TacticalJoke: he was guessing you had a car accident anytime within the last two years ? Dec 18 14:57:53 I don't know if I should be happy or sad Dec 18 14:57:59 d0de_: don't worry Dec 18 14:58:02 you should have asked him to also guess letters that may be in your name Dec 18 14:58:14 At least I'll be aware when it happens to me Dec 18 14:58:34 I had one recently telling me he's from my ISP and that my computer is infected with malware. Dec 18 14:58:38 He didn't know who my ISP was. lol Dec 18 14:58:43 He named about 10. Dec 18 14:58:48 d0de_: don't worry be happy , at least you know you were wasting time now Dec 18 14:58:57 The emulator is stupidly broken, google needs to get their shit together Dec 18 14:59:21 Then he actually argued with me when I told him he'd not stated my ISP. He told me I was wrong. Those people are something else. Dec 18 14:59:35 Switched to genymotion, never looked back. Sadly the license is pretty expensive for companies Dec 18 14:59:53 they do it because they can mind control a percentage that they call Dec 18 15:00:01 RIght. Dec 18 15:00:04 i* Dec 18 15:00:25 shmooz: yeah, people like my parents :/ Dec 18 15:01:16 Ugh.. some damned windows phone user is testing the app I'm working on Dec 18 15:01:32 ? -.- Dec 18 15:01:56 How can you set an EditText to be an email type and not show suggestions? Dec 18 15:02:03 hmmm I should telemarket psychic services Dec 18 15:02:25 and I can pick victims who I can spy on and retrieve info about Dec 18 15:02:47 and they'll believe I'm a fortune teller Dec 18 15:03:56 TacticalJoke: sleep much? Dec 18 15:05:38 I did earlier. Dec 18 15:06:20 lasserix: that lottery app you made randomly picks the numbers for you? or based on previous stats ? Dec 18 15:06:49 i actually met up with the client, she generated the "equations" by looking at statistics i guess Dec 18 15:07:29 it would be interesting to do the AI that predicts the lucky numbers Dec 18 15:08:14 well the problem is its like flipping a coin Dec 18 15:08:26 i can't remember in probability the next event doesn't rely on the previous one Dec 18 15:08:39 so the statistics of past draws/flips are actually useless ;p Dec 18 15:10:56 lasserix: I was thinking: when I implement collapsing, scrolling won't be a big deal anyway. Dec 18 15:11:03 It's so rare that I (for example) scroll through comments. Dec 18 15:11:09 I collapse the ish out of them. Dec 18 15:11:54 Having said that, I'll switch to RecyclerView when I can. Dec 18 15:12:24 anyone know what permission the account owner of an app needs in Analytics for it to work? Dec 18 15:13:48 hey mattblang Dec 18 15:13:58 Napalm|work hey man! Dec 18 15:14:18 Napalm|work: Thanks for that example earlier. Using a custom-drawn TextView seems faster. Dec 18 15:14:24 Than what I was doing. Dec 18 15:14:34 Sure, np Dec 18 15:14:36 https://plus.google.com/u/0/+SimonLightfoot/posts/iF6HWNDzz4U Dec 18 15:15:03 That link is for anyone here that wants to subscribe up to the new BBC News Beta programme Dec 18 15:15:23 Napalm|work awesome! I certainly will. Dec 18 15:15:25 Are you working on the BBC News app? Dec 18 15:15:36 Yes Dec 18 15:15:43 Nice. Dec 18 15:15:45 cool Dec 18 15:16:23 Request sent. Exciting man! Dec 18 15:17:15 once you get the email its only valid for 24 hours Dec 18 15:17:18 just fyi Dec 18 15:17:30 I'm just outside of London, BTW. Dec 18 15:17:55 how would i go about piping commands to a console and receiving the output????? for example, running a dd command or tar command Dec 18 15:18:21 in an app? Dec 18 15:19:56 Do you folks bother making your app available in multiple languages? Dec 18 15:20:04 you should Dec 18 15:20:50 the demon developers website is not very uh helpful ;p Dec 18 15:20:57 Napalm|work: By any chance, do you know whether spans that cover a lot of TextView text are slower than spans that cover a little TextView text? Dec 18 15:21:08 Or perhaps there's no speed difference. Dec 18 15:21:19 Hi How can I integrate selendroid to a gradle project Dec 18 15:21:19 please help since I have not used selendroid before Dec 18 15:21:19 IS there any documentation or sample projects available ? Dec 18 15:22:09 spans are just charsequences arent they? Dec 18 15:23:16 whatitis-: They seem to have this updateDrawState callback. Dec 18 15:24:10 TacticalJoke: no real difference to the amount the span.. but the more spans the more work needs to be done Dec 18 15:24:18 K. Dec 18 15:27:43 Hmm, there's no API for getting the default subreddits. I think I'd have to hard-code. :/ Dec 18 15:30:13 ugly Dec 18 15:30:54 If i change a Drawable to a Bitmap, change some pixels and change the bitmap back to a Drawable, the size of the Image is different on my screen. This is my code http://pastebin.com/hkrqdJqi (this is used on a Map) any suggestions what the problem is? If I don't execute this code, my image is larger on the screen Dec 18 15:31:45 TacticalJoke: you should do a screen-scraper API that can scan any site and create name,value pairs Dec 18 15:32:00 If you do some conversions FrancescoV Dec 18 15:32:05 don't forget to take the density into account Dec 18 15:32:41 Dream_Team: can you explain this a little more, how can I handle that? Dec 18 15:32:52 You should probably call setDensity on the BitmapDrawable you return Dec 18 15:33:02 with mapIcon's density as argument Dec 18 15:47:36 Dream_Team: to get the density, should I use something like this? http://stackoverflow.com/a/3166582/1723525 or can I get it with a function of Drawable? Dec 18 15:48:04 screen density? Dec 18 15:48:14 you should get from displayMetrics Dec 18 15:48:21 thanks Dec 18 15:48:44 also, make sure you keep track of density as a float or double and not an int Dec 18 15:48:53 the new nexus 6 for example, reports 3.5 for its density Dec 18 15:49:02 No, it's the bitmap density Dec 18 15:49:11 you want to use the source drawable density Dec 18 15:49:14 not always the screen density Dec 18 15:49:37 you have setDensity/getDensity Dec 18 15:49:54 you should do newDrawable.setDensity(oldDrawable.getDensity()) Dec 18 15:53:06 out of curiosity, when is there a situation when a drawable would have a different density than screen density? Dec 18 15:54:18 I don't know Dec 18 15:54:27 Well, if somebody specified the density manually Dec 18 15:55:25 In his case, I don't think it's safe to assume that it will not always be the case Dec 18 15:56:02 fair point, I just can't imagine a time that they wouldn't be the same Dec 18 15:56:09 hmm, gonna test something Dec 18 15:56:37 I have a few variables that i need to live after the application dies and when it is restarted then grab them.. what is the best way to store them? Dec 18 15:56:54 are they primitives? Dec 18 15:56:57 or complex objects? Dec 18 15:57:00 primitives Dec 18 15:57:03 cyonic: I don't know, if you put a bitmap in drawable-mdpi and get the BitmapDrawable on a nexus 5 Dec 18 15:57:15 is the bitmap's density mdpi or xhdpi ? Dec 18 15:57:24 probably sharedPrefs martial Dec 18 15:57:29 my first guess would be to say mdpi Dec 18 15:57:36 Dream_Team, thats what im about to test Dec 18 15:57:42 Oh great Dec 18 15:57:45 ah that's right. you sure there is no "easier" or faster way? Dec 18 15:57:54 SharedPrefs is the easiest way I know Dec 18 15:57:57 sharedprefs is pretty freaking easy/fast Dec 18 15:57:58 easier? Dec 18 15:58:54 get your application wide sharedprefs, get its editor then put them with a key name and then write a get function in your onCreate Dec 18 15:58:54 Is it possible to have a my location btn that goes to a custom location? Dec 18 15:58:55 ezpz Dec 18 15:59:13 what do you me darkness? Dec 18 15:59:23 like on a google map? Dec 18 15:59:26 cyonic i know how to use sharedpreferences doood Dec 18 15:59:32 thanks tho, i guess Dec 18 15:59:32 with geo coordinates or an address? Dec 18 15:59:59 i mean, you asked for easier, thats about as easy as it gets lol Dec 18 16:00:20 cyonic: With LatLng Dec 18 16:00:43 cyonic: We have a car tracking app and I want the map to move to the location of the car Dec 18 16:01:42 is this the correct way to programmatically set "80sp" : 80 * metrics.scaledDensity ? Dec 18 16:02:06 if I'm not mistaken the 2nd one makes it shorter :S Dec 18 16:02:09 jesus, this place is a madhouse, so many people asking questions so few answering Dec 18 16:02:09 With googlemaps Dec 18 16:02:10 thats a huge font Dec 18 16:02:32 darkness, have you checked the maps api for a setLocation() function? Dec 18 16:02:34 lol it should have been "density" Dec 18 16:02:36 maybe taht's the solution Dec 18 16:02:40 no wait Dec 18 16:02:44 not scaled density Dec 18 16:02:46 you need to convert it Dec 18 16:02:50 well it's the width of a small spinner Dec 18 16:02:54 just put it in dimen Dec 18 16:03:10 both are scaled density so why does it give different sizes? Dec 18 16:03:11 then do getResources.getDimensionPixelSize(R.dimen.myEightySpFontSize) Dec 18 16:03:18 sp != dp Dec 18 16:03:21 I know Dec 18 16:03:24 sp is scaled to user prefs Dec 18 16:03:28 well that's a work-around Dec 18 16:03:30 so just add it to dimen.xml Dec 18 16:03:40 then you can use getDImensionPixelSize Dec 18 16:03:43 in resources Dec 18 16:03:52 to convert 80sp to appropiate px Dec 18 16:03:54 I'll try, if nobody has an idea why 80 * metrics.scaledDensity != "80sp" ? Dec 18 16:03:56 Mrdarknezz: http://developer.android.com/reference/com/google/android/gms/maps/GoogleMap.html#setLocationSource(com.google.android.gms.maps.LocationSource) does this help? Dec 18 16:04:22 altcp because it is scaled by user prefs no just scaledDensity Dec 18 16:04:36 oh nm Dec 18 16:04:38 oh so sp doesn't mean scaled density? Dec 18 16:04:48 no it does Dec 18 16:04:51 oh well, I'll do dimen.xml anyway, only 1 source is always better, thanks for the help Dec 18 16:04:57 sorry i was reading that incorrectly, haven't had my coffee yet Dec 18 16:05:01 :D Dec 18 16:05:04 why do you need sp for a spinner size ? Dec 18 16:05:24 how do you know it is not equallying what you expect it to? Dec 18 16:05:40 just use sp for fonts Dec 18 16:05:42 I need to have the same amount of text visible for every user Dec 18 16:06:26 .. better worded: the items may not be cut off, and I want the spinner to be just wide enough Dec 18 16:06:39 you should use dp Dec 18 16:06:49 if "same amount of text visible for every user" Dec 18 16:06:57 since sp will change if the user clocked it out Dec 18 16:07:18 but if someone has big font Dec 18 16:07:27 "abcdef" could become "ab..." right? Dec 18 16:07:33 which is what I want to avoid Dec 18 16:08:12 not if you set the text size as dp Dec 18 16:08:23 yeah use dp it'll force it to always be same size Dec 18 16:08:26 (but you are disregarding the user's font size, which I personalyl don't like but sometimes have to do) Dec 18 16:08:51 I wouldn't like doing that either. so can't I just leave the spinner to use sp? Dec 18 16:09:13 is there any way to disable google play from asking me to add money to my account every other time i download a f-king app? Dec 18 16:09:17 well it will be even worse altcp no ? Dec 18 16:09:27 if the spinner is sp, it will be even bigger with a huge font size Dec 18 16:09:39 and less room for your test Dec 18 16:09:42 text Dec 18 16:09:52 if the spinner is bigger, why would it have less room? Dec 18 16:09:58 the text would have less room Dec 18 16:10:09 or is your text the size of the spinner ? Dec 18 16:10:12 the text outside of the spigger you mean? Dec 18 16:10:17 eh spinner Dec 18 16:10:17 after all, I don't know how your layout is :) Dec 18 16:10:42 well I would like to scale the spinner proportionate to the text size, so the items inside won't get cut off (like "abcdef" -> "ab...") Dec 18 16:10:54 oh so you've got text IN the spinner ? Dec 18 16:11:00 Dream_Team, it seems that drawables do not have their own density property Dec 18 16:11:06 yeah Dec 18 16:11:12 cyonic: it's always the screen's ? Dec 18 16:11:38 altcp: i'd put the spinner in a layout with the text view, wrap_content everything, the spinner will scale Dec 18 16:11:47 you have to cast a drawable to a bitmapdrawable and then use getBitmap to get the density of the bitmap, but thats traditional density, not dpi Dec 18 16:11:48 but otherwise, best way to go is like lasserix said, dimen Dec 18 16:12:01 that seems so Dec 18 16:12:07 okay Dec 18 16:12:26 Well, in any case he needs to set a density :) Dec 18 16:12:50 the problem is, I have multiple such spinners stacked on each other, with several small texts inside them, but "wrap_content" would make the width vary, and therefore make it ugly no? Dec 18 16:13:53 yeah probably. Dec 18 16:13:57 so I wonder, why would you use "dp" rather than "sp", since text is involved? Dec 18 16:14:20 Well, knowing all of that, I'd give sp a shot Dec 18 16:14:30 because dp will make it always the same size across all devices Dec 18 16:14:35 sp will scale it according to user preferences Dec 18 16:15:17 That's what he wants though Dec 18 16:15:36 for his spinner to scale just like the text scales Dec 18 16:17:00 has anyone here successfully integrated google+ into their app with the new a la carte google play services? Dec 18 16:31:09 hey guys. getting a headache researching how to do direct access to screen pixels. want to make a particle emulator, which is high performance, and either sets pixels (or squares of say 3x3 pixels) then swaps the buffers around to put it on screen... needs to be THE fasted way... think NDK + NJI is the way to go right? Dec 18 16:31:52 *JNI Dec 18 16:32:00 depends Dec 18 16:32:40 well, app would be fullscreen, black background and move individual pixels around. thousands of them per frame. Dec 18 16:33:08 or at least hundreds. Dec 18 16:35:25 so I want to access a rectangle of the screen, then use c++ to play with the pixels. Dec 18 16:35:43 as java is a sack of shit. Dec 18 16:36:54 any input on if this is right? Dec 18 16:38:40 if you want to do that, I'd say full NDK Dec 18 16:38:44 and skip jni totally Dec 18 16:38:54 <_Auron_> yeah, if you really need the performance Dec 18 16:38:57 Since 2.3, you have AndroidNativeActivity, that allows you to go full C,, Dec 18 16:39:05 C++ Dec 18 16:41:41 Log.d("TAG","aString") works perfect, but Log.d("TAG","aString: " + intValue) results in two logcat messages. What is wrong? Dec 18 16:42:38 ok, how does the rest work, do you still set up all the ui with xml... see I don't see how you will do it that way, I am just looking at it, never done it. Dec 18 16:42:53 if you go C++, you don't do the UI in xml Dec 18 16:43:03 like you said, you have a rectangle, you draw on it Dec 18 16:43:34 but what about where the rectangle isn't? as in at the bottom I want a small ui. Dec 18 16:43:38 If you want to mix standard android UI and your rectangle, it will be harder, and you will have to mix a lot of stuff Dec 18 16:43:54 Don't really know how to do it. Maybe surfaceview Dec 18 16:44:03 ok... Dec 18 16:44:09 so full c++... Dec 18 16:44:24 fastest. Dec 18 16:44:42 but then, for doing the ui, isn't it painful? Dec 18 16:45:00 generally when doing full C++, you’re doing a custom UI with something like OpenGL Dec 18 16:45:10 can you do one screen c++, one screen java? Dec 18 16:45:24 go read some Dec 18 16:45:50 you could, but I wouldn’t recomend it Dec 18 16:45:57 have read a lot, need some human input to guide my direction of next reading. Dec 18 16:46:10 you could do your UI/UX in java, and your logic in C++ Dec 18 16:46:15 Using JNI Dec 18 16:46:42 so all the java easy interface would be gone, and I would need to draw it in opengl. Dec 18 16:47:18 right, that was what I was thinking, engine for particles and drawing in c++ and ui in JNI... but would that suck? Dec 18 16:48:01 why don't you use something like Unity? Dec 18 16:49:47 Can you reference a string resource in a string resouce? Dec 18 16:50:10 unity? Dec 18 16:53:25 smellymoo Dec 18 16:53:35 you should really look at using unity3d Dec 18 16:53:53 http://unity3d.com/ Dec 18 16:54:15 its a game engine that will do all the shit that you're talking about without having to do NDK bullshit Dec 18 16:54:33 and it will allow you to compile (for the most part) across multiple platforms Dec 18 16:54:58 They have a great UI framework Dec 18 16:55:00 it's an unbelievably robust tool with tons of resources and support around it Dec 18 16:55:03 yup Dec 18 16:55:18 pretty much everything about unity is great Dec 18 16:55:40 hmm Dec 18 16:55:51 but is it really low-level? Dec 18 16:56:01 what are your concerns? Dec 18 16:56:04 performance? Dec 18 16:56:06 yes Dec 18 16:56:13 you won't have to worry about it Dec 18 16:56:21 unity is excellent with performance Dec 18 16:56:23 chances are unity will do things better than you will Dec 18 16:56:26 don't need to draw graphics, like lines and 3d, etc... Dec 18 16:56:27 since it's a mature framework Dec 18 16:56:29 yup Dec 18 16:56:38 trevor-e is exactly right Dec 18 16:56:50 it's not like its a couple yahoo's fucking around Dec 18 16:56:52 but overhead. Dec 18 16:57:07 dude, your overthinking it Dec 18 16:57:12 unity is the tits Dec 18 16:57:19 why use it when I have no plan to do 3d, or even 2d shapes. Dec 18 16:57:28 what are you trying to do exactly? Dec 18 16:57:35 unity supports 2d btw Dec 18 16:57:38 I need to set individual pixels. Dec 18 16:57:52 and swap buffers. that is it. Dec 18 16:58:11 well if thats really all your doing Dec 18 16:58:16 then i guess ndk is your best bet Dec 18 16:58:31 just trying to figure out what could possibly need just that Dec 18 16:58:34 to make a particle simulator, like falling sand, or spinning round orbits... etc Dec 18 16:59:16 but your just trying to do a particle simulator with nothing else in the environment except the simulator? Dec 18 16:59:23 the code is doing the work, the graphics just needs to be fast and draw pixels / squares. Dec 18 16:59:48 well, I need a small simple rectangle of tools at the bottom. Dec 18 16:59:59 Are you sure that java is too slow for that ? Dec 18 17:00:13 yes. java is totally shit. Dec 18 17:00:17 uh Dec 18 17:00:18 disagree Dec 18 17:00:34 how much work have you done trying to make it work with java? Dec 18 17:00:36 any? Dec 18 17:00:36 <_Auron_> lol. Dec 18 17:00:46 seen the apps similar, c++ or java... it's clear which is which. put it that way. Dec 18 17:01:21 Define "too slow". Too slow for what? Dec 18 17:01:24 <_Auron_> languages can have their limitations, but code has its limitations from the programmer who wrote it Dec 18 17:01:32 ^^ Dec 18 17:01:39 made it in c++ before, and I know the problem I want to similate will be a bitch to do in java, with all it's uness objects... I would prefer to do it in asm. Dec 18 17:01:39 you can do it in java Dec 18 17:02:05 but java is shit at cpu intensive... this is what I will be doing. Dec 18 17:02:06 Well, if you want a simple toolbar at the bottom, it shouldn't be too hard to make that yourself in C Dec 18 17:02:09 _Auron_: He has a point though, as Java restricts memory management heavily, but that'd be vastly important for handling many thousands of particles. Dec 18 17:02:13 the faster it can run, the more particles. Dec 18 17:02:14 use opengl Dec 18 17:02:22 and nio buffers Dec 18 17:02:33 nio buffers bypass the dalvik GC heap Dec 18 17:02:35 still trying to wrap my head around a situation where you just want a particle simulator and nothing else Dec 18 17:02:46 smellymoo: Actually... some Java implementations perform pretty decent, CPU-wise. Dec 18 17:02:49 he wants floating breasts bouncing around Dec 18 17:02:56 lasserix: lol Dec 18 17:02:58 the problem in that case is probably the GC Dec 18 17:03:05 I have looked lots at people online with slightly similar tasks (many pixel sets per frame) and java falls apart like a sack of shit. Dec 18 17:03:08 <_Auron_> flan3002: yeah I know, this particular instance pure java wouldn't be as fast Dec 18 17:03:13 nah its easy to outwit the GC you just preallocate everything Dec 18 17:03:17 that's not ture Dec 18 17:03:18 yeah lasserix Dec 18 17:03:21 you can make it work in java Dec 18 17:03:22 but you have to think about it Dec 18 17:03:33 you just have to be smart about it: preallocate, nio buffers etc Dec 18 17:03:33 you can't do it naively and alloc new objects all over the place Dec 18 17:03:38 sounds like workaround it. Dec 18 17:03:40 I mean... Minecraft /does/ work. (Though the native clones feel much better) Dec 18 17:03:52 smellymoo: just don't rely too much on JNI Dec 18 17:03:54 of course if you do it native it's going to be faster cause you removed a layer Dec 18 17:04:00 the JNI method call overhead is costly Dec 18 17:04:01 So... it can be done, but is a pain for tasks that require detailed memory management. Dec 18 17:04:16 nah its quite easy, just make a root object pool Dec 18 17:04:24 smellymoo what are you trying to accomplish? Dec 18 17:04:30 your all java fanboys... this is clearly a case for c++. Dec 18 17:04:38 lol Dec 18 17:04:46 No, it's about data locality and caching too. You can't optimize that with an Object pool... Dec 18 17:04:49 says the guy who walks into an android developer room and talks shit about java Dec 18 17:04:54 <_Auron_> ^ Dec 18 17:04:54 not a java fanboy, just saying Chris Preugget proved you can do this in java: ever see replica island? its all java Dec 18 17:04:58 said, pixel setting, buffer swapping, and moving particles around by set rules. Dec 18 17:05:04 flan not true Dec 18 17:05:10 lasserix: So? Dec 18 17:05:13 look at replica island Dec 18 17:05:21 proof you can do this in java Dec 18 17:05:35 lasserix: Do you mean me, about Replica Island? Dec 18 17:05:36 smellymoo: so you prolly want to use opengl Dec 18 17:05:37 I want to develop for android... but doesn't mean I like java. Dec 18 17:05:50 you can go native or not, either will work Dec 18 17:05:56 what are your particles? Dec 18 17:06:07 can you simply render them as bitmaps or do you need full 3d support? Dec 18 17:06:14 still ocnvinced unity is the best option Dec 18 17:06:26 no 3d. Dec 18 17:06:29 2d. Dec 18 17:06:29 Chris pruget or whatever showed the fastest way to render is use opengl and push everything as a texture Dec 18 17:06:33 it can be 2d Dec 18 17:06:38 Unity is certainly pretty decent, though probably not best for special needs. Dec 18 17:06:41 and the have very robust particle emitters Dec 18 17:06:42 yeah so you can just use opengl, render your particles as textures Dec 18 17:06:59 the physics engine you can use box2d Dec 18 17:07:02 that sounds wasteful Dec 18 17:07:09 its not its' the fastest way to do it Dec 18 17:07:13 smellymoo: for performance, most of Android's UI is rendered using opengl Dec 18 17:07:17 What does? Using OpenGL? Dec 18 17:07:20 if it’s 2D, Java will be just fine, and Box2D will be perfect Dec 18 17:07:35 rendering textures, rather than pixel setting. Dec 18 17:07:36 it was the only way they could manage smoothness with huge screens and limited ressources Dec 18 17:07:57 s73v3r: Not in all cases, but in most, agreed. Dec 18 17:08:02 http://i.stack.imgur.com/y4F28.png Dec 18 17:08:07 <_Auron_> openGL is using the GPU for graphics processing instead of using up the CPU too, but GL calls are costly too. just depends on how much you need to draw Dec 18 17:08:14 <_Auron_> and how you use it Dec 18 17:08:40 g1 android 1.1 sdk.... Dec 18 17:08:46 it will be moving hundreds or thousands of pixels around. Dec 18 17:08:50 if you are just making pixels colorize and move obsviousily set pixel is what you want to do but that can be done with a canvas and a surfaceview not even opengl is needed Dec 18 17:09:07 so? Dec 18 17:09:17 Have you actually tried it? Dec 18 17:09:26 Hello!! Dec 18 17:09:27 i would recomend using surfaceview then if performance is that bad switch to opengl Dec 18 17:09:40 unless you are familiar with opengl Dec 18 17:09:45 when I looked around, benchmarks for that were slow... NDK was the only fast way to do many pixel sets. Dec 18 17:09:51 but if you do surfaceview first, it should be easy to migrate Dec 18 17:09:58 and usrfaceview you can develop much faster Dec 18 17:10:02 I doubt he will get passed hello world Dec 18 17:10:25 <_Auron_> smellymoo: why do you just get something working -first-, then optimize it? Dec 18 17:10:28 <_Auron_> don't you* Dec 18 17:10:34 do it for yourself before passing judgement. You don’t really know what those benchmarks are doing Dec 18 17:10:39 I wrote it for the gameboy advance, that has fuck all resources, and it ran fast, I can do it, don't mock me. Dec 18 17:11:11 smellymoo: can you give some insight into the app as a whole beyond this one single operation? Dec 18 17:11:18 you don't get something working first, then optimize it, you pick the best way to start then work from there. Dec 18 17:11:29 lol Dec 18 17:11:30 we’re not saying you can’t do it. We’re saying that this concentration of “It has to be fast!” is not constructive Dec 18 17:11:36 <_Auron_> yeah. Dec 18 17:11:44 especially without you actually seeing if the given way to do it is fast enough Dec 18 17:12:03 Does Robolectric mostly just mock stuff? When my fragment manager guy doesn't get called, I think. Dec 18 17:12:12 <_Auron_> you come in here complaining about speed and talking crap about java and continue to complain. that's nice you wrote it for GBA, so what's your problem? you already decided C++ is faster. why are you still bitching? Dec 18 17:12:22 but that is the main part, as it needs to move many many virtual particles, and the only thing it needs to do is do it smoothly at high frame rate, so that is constructive. Dec 18 17:12:26 if you wrote it for GBA Dec 18 17:12:28 seriously, stop trying to show how big your e-penis is Dec 18 17:12:40 making the UI natively yourself shouldn't be hard Dec 18 17:12:49 so go with AndroidNativeActivity, and draw everything yourself Dec 18 17:12:58 it will be much easier than some frankenstein combination of stuff Dec 18 17:13:05 <_Auron_> smellymoo: that's awesome. however, if you were a real programmer at all, you'd know you can't approach something perfectly the first time, and talking shit to other people when asking for opinions isn't constructive in the least Dec 18 17:13:09 lets just leave him alone, obviously just came in here to measure his epeen and talk shit on java Dec 18 17:13:11 What does smellymoo wan to do? Dec 18 17:13:21 <_Auron_> so until you want to stop trolling I'm going to ignore you Dec 18 17:13:25 something with particles Dec 18 17:13:32 haha! actually, when I was reading and looking for a solution, I found a forum with people working for android, and they suggested fast pixel setting would be best on NDK.. so actually you are just being java fanboys Dec 18 17:13:46 anyway Dec 18 17:14:02 has anyone here had any success adding google+ login into their app? Dec 18 17:14:05 i can't seem to get it working Dec 18 17:14:11 you found one forum with people reinforcing your opinion, and now you’ve found another forum suggesting the other way Dec 18 17:14:11 Setting pixels? Dec 18 17:14:24 how do you know they’re not C++ fanboys? Dec 18 17:14:35 what’s wrong with G+ login? Dec 18 17:14:44 err, what’s your problem? Dec 18 17:14:53 smellymoo: What is your goal? Dec 18 17:14:58 smellymoo you are just being a dick troll, we offered suggestions so stfu Dec 18 17:15:09 hi guys! :) Dec 18 17:15:24 hello everybody Dec 18 17:15:33 Hello, HikaruBG you Japanese Bulgarian. Dec 18 17:15:57 there's some way when I press button back of device does go to expecific fragment ? Dec 18 17:16:01 :) Japanese-Bulgarian - I like that... :) Dec 18 17:16:12 s73v3r: ive run through the tutorial in the dev console help and i just get a blinking screen that is re-running onResume and theres a toast of "Internal Error Occured" Dec 18 17:16:14 override OnBackPress in your activity Dec 18 17:16:17 fernandopaiva: You can override the function "onBackPressed" Dec 18 17:16:52 OK - so I have implemented the tutorial app from Android dev. site for barcode scanning application, using zxing and intents. Dec 18 17:17:27 first thought is that the tutorial app is crashing somewhere Dec 18 17:17:45 talking to me s73v3r? Dec 18 17:17:49 my question is this: How to enable the camera flash while scanning? Dec 18 17:17:54 Man, I wanted to see some Java hating. Dec 18 17:18:16 anyone? Dec 18 17:18:29 cyonic: yes Dec 18 17:18:43 HikaruBG: you would probably have to hack that into zxing Dec 18 17:18:48 they're controlling the camera Dec 18 17:18:55 so you can't enable the flash beforehand Dec 18 17:19:05 Hm... so tweak their code - Got it! Dec 18 17:19:07 thanks! :) Dec 18 17:19:08 HikaruBG: this_ http://stackoverflow.com/questions/6068803/how-to-turn-on-camera-flash-light-programmatically-in-android Dec 18 17:19:13 hmm, i haven't fuxed with the sample app at all Dec 18 17:19:52 Thanks marrrk Dec 18 17:19:53 :) Dec 18 17:20:08 cyonic: Do you mean fucked? Dec 18 17:20:27 lol yes Dec 18 17:20:40 Okay, please say that then. There are foreigners here, you know :) Dec 18 17:20:52 That will happen after lunch! :) Have a good one everyone! Dec 18 17:22:28 Hmm, so he/she is neither in Bulgaria nor Japan. Dec 18 17:25:02 im having an issue calling some native code from java Dec 18 17:25:16 the library does load, but i think i have the naming convention wrong Dec 18 17:25:27 https://developers.google.com/+/mobile/android/getting-started this is the article i followed just to initialize the google+ service Dec 18 17:25:35 and im still having issues even after getting to the end of it Dec 18 17:25:48 http://pastebin.com/EFPNa0H2 Dec 18 17:25:56 thats my native code Dec 18 17:26:14 the code thats calling it is a package within the app Dec 18 17:29:46 nevermind :D Dec 18 17:29:59 i just needed to add extern "C" to the declaration Dec 18 17:30:54 lol Dec 18 17:31:15 thanks Dream_Team, what would you recommend is best for doing the direct buffer access? (still double / triple buffered of cause) Dec 18 17:35:38 ahh interesting point about how the android framework automatically saves state-- "if a View doesn't have an ID - it's state will not be saved into container (the savestate container)" Dec 18 17:37:18 home time, back soon Dec 18 17:37:32 Napalm: the demon developers site is broken! Dec 18 17:41:32 marrrk, thanks ! Dec 18 17:45:22 Question: If I want to build hardware to run Android TV. Is there a good resource to read Dec 18 17:45:42 build hardware? Dec 18 17:45:45 as in builda tv? Dec 18 17:45:57 why would this be throwing a "cannot resolve constructor" error? .setStartDate(new Date()); Dec 18 17:46:15 wrong import of date? Dec 18 17:47:02 lasserix: https://www.google.com/nexus/player/ Dec 18 17:47:19 android tv doesn't have to be installed directly on a tv Dec 18 17:47:32 lasserix I checked that, only option is java.sql. ahh, yes, that doesn't have an empty constructor. so java.sql is the only date object huh? didnt realize Dec 18 17:48:06 no Dec 18 17:48:08 java.util.date Dec 18 17:48:18 lasserix no biggie, just need to initialize with System.currentTime, just surprised me Dec 18 17:48:25 no Dec 18 17:48:27 dont use sql Dec 18 17:48:35 Last you checked, you obviously didn't check d.android.com Dec 18 17:48:41 http://developer.android.com/reference/java/util/Date.html Dec 18 17:49:07 andrewreedy: still not following, so there is a player? you want to develop an output display piece of hardware for it? Dec 18 17:51:34 lasserix, trevor-e ahh, sorry, I was going off the IntelliJ autocomplete and since my POJO had imported java.sql it only gave java.sql as an import option Dec 18 17:51:42 lasserix: no i want to build my own player and put Android TV on it Dec 18 17:51:55 andrewreedy: you own player device? Dec 18 17:52:04 yes Dec 18 17:52:18 http://www.ladyada.net/make/ybox2/ Dec 18 17:52:26 google: diy settop box Dec 18 17:53:02 I know how to do the hardware just not actually getting Android TV on to it Dec 18 17:53:06 kinddaaa seems like a huge commitment and there are probably better things you could be doing, but good luck! sounds like a fun project Dec 18 17:53:26 actually its super easy Dec 18 17:53:28 i imagine you need to get an image of the android tv Dec 18 17:53:34 yea exactly haha Dec 18 17:53:37 you should ask around in #android-root Dec 18 17:53:41 oh okay Dec 18 17:53:44 thanks Dec 18 17:54:07 ahh you did it with a rpi i bet? Dec 18 17:54:47 is android tv actually running android under the hood? Dec 18 17:56:15 s73v3r, the new one yes Dec 18 17:56:57 in xml, whne an attribute value has a prefix of? what does that mean? as in android:background="?android:dadada" Dec 18 17:57:37 it's referencing an android system attribute Dec 18 17:58:02 just a weird notation for it Dec 18 17:58:13 so its the equivalent of like android.R.whatever ? Dec 18 17:59:02 yea I believe so, someone can correct me if I'm wrong Dec 18 17:59:58 oh ok thanks Dec 18 18:00:00 makes sense Dec 18 18:00:55 http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes Dec 18 18:01:05 lets you reference style attributes Dec 18 18:02:16 Google xml namespace Dec 18 18:02:18 That's what it is Dec 18 18:02:37 ahh thanks Dec 18 18:29:26 If I make some hdpi assets and run it on an xhdpi device, the assets would be scaled up. But would the Bitmap.getWidth/Height() still have the same values? Dec 18 18:30:00 So if I were to get into app development, I should default to Android Studio? Dec 18 18:30:35 Kake_Fisk: Nope Dec 18 18:30:45 Oh, that's nice to hear Dec 18 18:48:42 Does quiting Looper terminate the associated thread too? Dec 18 18:50:09 yes Dec 18 18:50:15 what else should it mean Dec 18 18:50:33 well, it quits assuming you don't have any code following Looper.loop() Dec 18 18:50:40 Threads end when their run() method returns.. So maybe, depends on your implementation Dec 18 18:51:15 Quitting a Looper just makes it return from Looper#loop Dec 18 18:55:24 Hi again Guys! :) Dec 18 18:55:52 yes, what I said :p Dec 18 18:56:23 another quick question: Can I launch every app with Intent request or the app I intend to use must have such API to return the data to my main activity? Dec 18 18:56:29 Anyone? :) Dec 18 18:57:16 thanka guys Dec 18 18:59:47 +r Dec 18 19:00:54 you csna launch any app with an intent Dec 18 19:01:00 most wont give you anything back Dec 18 19:03:13 hey folks Dec 18 19:05:21 is there a way to change the update rate from within a watchface Dec 18 19:05:46 i need it to run faster when showing the watch face Dec 18 19:09:28 In robolectric tests, NavUtils.getParentActivityIntent(this) always returns null. Does anyone happen to know why or how to deal with it? Dec 18 19:11:35 yeah, don't test it with robolectric :p Dec 18 19:11:43 Hey all Dec 18 19:11:55 how can I find cpu-hogging areas of some android code? Dec 18 19:12:04 like, figuring out what's eating the battery Dec 18 19:12:45 pfn: I'm trying to unit test, but a certain chain of events ends up calling it and resulting in a null pointer exception every time. I suppose I could try/catch in my tests and test everything up to that point... Dec 18 19:14:38 Is there possibly a way I could stub the NavUtils method in testing? Dec 18 19:15:38 * pfn shrugs Dec 18 19:15:42 look up how it's implemented :p Dec 18 19:17:06 matt_j: traceview Dec 18 19:17:24 is the volta stuff released ? Dec 18 19:18:07 dumpsys batterystats Dec 18 19:18:32 matt_j https://developer.android.com/about/versions/android-5.0.html#Power Dec 18 19:18:45 https://github.com/google/battery-historian Dec 18 19:18:51 What do yall think would be the best way to run a bunch of synchronous Retrofit calls in series? I'd rather stay away from AsyncTask. Dec 18 19:18:52 > adb-shell uptime Dec 18 19:18:52 [info] up time: 12:41:46, idle time: 1 days, 07:32:34, sleep time: 03:27:41 Dec 18 19:18:52 heh Dec 18 19:18:58 idle for longer than it's been up, nice Dec 18 19:19:06 mattblang: RxJava is good for that Dec 18 19:19:12 flatMap all the way down Dec 18 19:19:39 JakeWharton sweet, been meaning to check out RxJava, will use this as an excuse to Dec 18 19:19:51 * pfn ponders adding retrolambda as an option to android-sdk-plugin Dec 18 19:20:19 pfn do you use retrolambda? Dec 18 19:20:22 no Dec 18 19:20:29 lol, deep pondering awaits Dec 18 19:20:29 but it might give me an excuse to Dec 18 19:20:38 well, it should be a pretty trivial step Dec 18 19:20:43 retrolambda classes.jar Dec 18 19:20:43 done Dec 18 19:21:08 pfn where is the ... profit part ? Dec 18 19:21:16 :) Dec 18 19:21:25 hoping at some point google may want to buy it off me Dec 18 19:21:27 :p Dec 18 19:21:33 which is pretty much never Dec 18 19:22:45 pfn, in your app if you remove action bar, the channel would have more space which is better Dec 18 19:22:59 gdrc, sure, but I don't like Dec 18 19:23:16 tried? Dec 18 19:24:11 not completely, no Dec 18 19:25:03 maybe an immersive mode Dec 18 19:26:15 immersive is dumb for irc, who focuses on it that much Dec 18 19:27:28 immersive is dumb for a lot of apps. I’m currently using a Reddit client that uses it. Dec 18 19:28:04 if it's not games or media, immersive mode is mostly junk Dec 18 19:29:40 well, then you can do what Play does, and other gapps and just scroll the actionbar away Dec 18 19:29:50 pull up to reveal it again Dec 18 19:30:47 guess it depends on how many people asked for it ( gdrc , you the only one ??! ) Dec 18 19:30:59 yeah, I've considered hiding the action bar Dec 18 19:31:11 not worth the effort at this time Dec 18 19:31:21 ugh, I'm starting to get lazy with my vacation nearing Dec 18 19:32:18 for GA tracking in v4, if I want automatic screen measurement do I need to have the XML file or is it optional? Dec 18 19:32:32 but yeah, I'lll consider integrating retrolambda, might make java bearable again for some projects Dec 18 19:32:38 I really hate the GA docs they're surprisingly vague Dec 18 19:32:53 pfn just got here and missed the conversation, but retrolambda makes debugging quite annoying Dec 18 19:33:09 android studio already collapses code to look like lambdas, it it really that "unbearable"? Dec 18 19:33:25 JacobTabak, I imagine line numbers don't necessarily match, that's interesting if that's the case Dec 18 19:33:32 retrolambda should be able to emit that information Dec 18 19:33:41 there's also issues accessing closures and parameters Dec 18 19:33:53 fff Dec 18 19:34:03 thanks for the info JacobTabak Dec 18 19:34:08 im working on 2 major projs right now, one with retrolambda and one without it Dec 18 19:34:10 JacobTabak, details? Dec 18 19:34:19 i'll try to grab a screenshot to demonstrate, sec Dec 18 19:34:23 on not being able to access locals/closures Dec 18 19:34:49 no issue with line numbers though Dec 18 19:34:58 https://github.com/orfjackal/retrolambda/issues/40 Dec 18 19:34:58 that? Dec 18 19:35:01 * pfn shrugs Dec 18 19:35:04 can be an annoyance Dec 18 19:35:23 immersive mode for carboard sdk Dec 18 19:35:42 lasserix_, cardboard is effectively media Dec 18 19:35:49 pfn yes, that's what i'm referring to Dec 18 19:35:49 oh yeah didn't see next comment Dec 18 19:36:05 pfn it actually makes things really, really really difficult Dec 18 19:36:12 i mean, it makes debugging useless Dec 18 19:36:16 if you cant' see the parameters to a lambda Dec 18 19:36:38 I see, that's too bad Dec 18 19:36:47 I see parameters in scala functions all the time :p Dec 18 19:37:09 still, debugging is something I don't do very often, so not a big deal for me Dec 18 19:37:21 shit I write just works :p Dec 18 19:37:30 must be nice Dec 18 19:37:37 * pfn poops gold Dec 18 19:38:41 oh, retrolambda doesn't read from jar files? that's annoying Dec 18 19:39:15 JacobTabak so do you think retrolambda is worth it ? Dec 18 19:39:34 pfn, how is retro lambda? Dec 18 19:39:45 gdrc, I don't know, I don't use it Dec 18 19:40:06 g00s i'm not sure that it is Dec 18 19:40:15 I use a lot lambda expression in c# Dec 18 19:40:33 i have 2 major projects im working on, one uses it and one does not Dec 18 19:40:34 hey Dec 18 19:40:39 pfn: add retrolamda Dec 18 19:40:39 and it doesn't feel inconvenient to NOT use retrolambda Dec 18 19:40:46 then i guess its either wait for google, kotlin, or groovy Dec 18 19:40:49 retrolambda Dec 18 19:41:14 I use retrolambda, i think its bloody brilliant Dec 18 19:41:18 I keep wanting to learn scala, but I've never used a functional language before Dec 18 19:41:36 so then it's learning two things at once Dec 18 19:41:51 the only reason I really want to possibly look at retrolambda is because scala 2.12 is requiring java 8 Dec 18 19:41:58 Napalm it's definitely nice, and I use it in some projects, but... Dec 18 19:42:00 and thus there is my reason Dec 18 19:42:14 if something like retrolambda will allow me to continue with scala 2.12 on older vm Dec 18 19:42:47 trevor-e, scala gives you lots of rope to hang yourself doing it any way you want Dec 18 19:42:49 yay 5.0.1 update Dec 18 19:43:03 trevor-e, you can write all scala code as if it were java Dec 18 19:43:09 but then there's no advantage in that Dec 18 19:43:10 lol Dec 18 19:45:04 pfn is that the only java 8 feature scala 2.12 will need though ? Dec 18 19:45:14 g00s, dunno, but it's a start to enable it Dec 18 19:45:38 something like retrolambda is probably a good starting point for figuring out requirements Dec 18 19:46:30 JacobTabak, but? Dec 18 19:46:57 but if you look at what its actually doing you ask yourself if you want such a dependency in your project Dec 18 19:47:12 can you really feel good about having something like that in your project Dec 18 19:47:21 if i wasn't using rx so much i probablu wouldn't be thinking about it Dec 18 19:47:30 but this is a build time dependency Dec 18 19:47:47 g00s I'm about to use rx, should I use the Android extensions over the Java? Dec 18 19:47:50 considering that there's reasonable IDE and build integration, it's not a bad tradeoff Dec 18 19:48:00 pfn yes, its reasonable, but not perfect Dec 18 19:48:23 you will run into issues and complexities espeically down the road when if you need to use other build tools, like apt for example Dec 18 19:48:33 mattblang uh, ask JakeWharton i think he's working a bit on rxandroid. i just copied the AndroidSchedulers class, the rest was silly Dec 18 19:48:47 AndroidObservables and ViewObservables are not silly Dec 18 19:48:49 JacobTabak, I don't use apt, the api is far too limited Dec 18 19:49:04 pfn me neither, I had to remove it, which is why i'm reluctant to add other build deps Dec 18 19:49:07 and, for that matter, retrolambda should not affect the use of apt Dec 18 19:49:28 RxAndroid is useless Dec 18 19:49:30 there are also requirements like 'you must apply teh retrolambda plugin before the android plugin' or after Dec 18 19:49:36 just copy the AndroidSchedulers class Dec 18 19:49:54 the viewobservables are nice for form validation, etc Dec 18 19:50:17 i use the androidobservables to bind to activity and make sure that code gets run on ui thread, and not when the activity is finishing or finished Dec 18 19:51:10 unless i missed soemthing, i just observeOn(ui thread) and unsubscribe in onDestroy Dec 18 19:51:29 yep. that's what we do. Dec 18 19:51:34 they evenhave unsubscribeOn now Dec 18 19:53:46 wheres the documentation for that Dec 18 19:54:13 oh it just picks the thread Dec 18 19:54:31 so you still need to create some facility for unsubscribing from your observables ondestroy Dec 18 19:54:53 I can't get the main icon to show up in the Action Bar, even when explicitly calling setIcon() Dec 18 19:55:07 it's just blank Dec 18 19:56:12 appcompat moogoo? Dec 18 19:56:14 moogoo, set display show home enabled Dec 18 19:56:24 Napalm: you here? Dec 18 19:56:43 yus Dec 18 19:56:47 yes, using android.support.v7.app.ActionBarActivity Dec 18 19:56:54 Why is bbc app not compatible with n7? Dec 18 19:57:13 it is Dec 18 19:57:24 Not mine Dec 18 19:57:31 I don' have cellular on it Dec 18 19:57:40 you have to add TELEPHONY not required in manifest or something Dec 18 19:57:49 it doesnt require it Dec 18 19:58:18 says No Carrier Asus Nexus 7 Dec 18 19:58:30 on PlayStore Dec 18 19:58:33 yeah Dec 18 19:58:39 pfn: I tried calling setDisplayShowHomeEnabled(true) but it did not make a difference Dec 18 19:58:44 thats the name of your device and it has no-carrier because it has no sim Dec 18 19:58:49 thats not a problem Dec 18 19:59:06 that's why it wont let me install it: you have to add to manifest Dec 18 19:59:07 thats what its suppose to say for wifi only devices, one of mine has said that Dec 18 19:59:20 lasserix_: no its not Dec 18 19:59:22 but i can't install it on it? Dec 18 19:59:30 I tried inspecting the layout and the ImageView element that should hold the icon is not even there Dec 18 19:59:38 lasserix_: are you in the US? Dec 18 19:59:45 yeah Dec 18 19:59:48 thats why Dec 18 19:59:50 its UK only Dec 18 19:59:51 oh Dec 18 19:59:51 and this is directly from one of the Project creation wizards in Android Studio Dec 18 19:59:55 doh Dec 18 20:00:03 use a proxy, or a google+ account registered to the UK Dec 18 20:00:15 heh Dec 18 20:00:16 ok Dec 18 20:00:37 Anyone know if there a guide/walkthrough for setting up licensing (LVL) in an app with Android Studio? The current one is all about Eclipse (http://developer.android.com/google/play/licensing/setting-up.html) and seems slightly out of date (market_licensing vs play_licensing). Dec 18 20:04:48 if using retrolambda, should it run before or after proguard? Dec 18 20:05:07 Why would you want to copy a bye array before using it? Dec 18 20:05:18 mutability? Dec 18 20:05:59 but why use System.arraycopy()? Dec 18 20:07:41 what else would you use for copying an array Dec 18 20:07:59 =, lol Dec 18 20:08:50 or clone Dec 18 20:08:51 that’s not a copy Dec 18 20:09:15 = will keep the same reference Dec 18 20:09:30 and clone is likely slower Dec 18 20:09:31 shallow copy vs deep copy Dec 18 20:09:32 is there a working fix for android studio font aliasing on windows? At work, I use AS on OS X without any issue Dec 18 20:10:15 Thanks prn, f2prateek_ and trevor-e Dec 18 20:10:20 pfn* Dec 18 20:10:38 np Dec 18 20:11:01 what is the term for the type of variable manipulation that Mathematica has? Dec 18 20:11:51 where if you do: c = a + b; a++; c == a + b + 1 (true) Dec 18 20:13:21 System.arraycopy() is a call into native ... f2prateek_ ... that winds up holding the Java source ref? Dec 18 20:14:10 Hey guys, maybe you have ideas how to transfer some data(GCM device-key) from android application to c# application, without requiring user input ? I don't want to use any servers(mysql and etc.). Dec 18 20:15:24 bluetooth? Dec 18 20:15:47 how far of a distance are we talking? lol Dec 18 20:17:06 I want to do this through internet, lol. Dec 18 20:17:32 How is your phone going to connect to the computer? Dec 18 20:17:59 I mean you could send an e-mail.. and listen for new mail in your c# program.. Dec 18 20:18:17 that’s abotu as simple as you can get without starting some kind of server, I’d think Dec 18 20:19:41 Yeah, maybe that would work. But I would need to create another email for all requests, lol Dec 18 20:20:16 It would send to each other, UDP packets. Dec 18 20:20:37 I don’t know how you expect to open a port and listen to traffic safely Dec 18 20:21:05 and I’m not too sure about sending packets to a target with Android. I use HTTPPost Dec 18 20:21:08 but that requires a server Dec 18 20:22:33 Playing with ports never been safe. When you open the port, listing to the traffic, you always risking. But GCM only suggests 4 KB :/ Dec 18 20:23:02 I would do everything through the GCM if it would be a larger limit Dec 18 20:23:25 maybe look into sockets Dec 18 20:23:58 http://developer.android.com/reference/java/net/Socket.html Dec 18 20:24:14 that’s the client Dec 18 20:24:16 http://msdn.microsoft.com/en-us/library/fx6588te%28v=vs.110%29.aspx Dec 18 20:24:19 that’s the server Dec 18 20:26:00 Oh well, TCP, it's good, but also slow. Dec 18 20:28:18 I mean.. for 4kb it’s not bad.. Dec 18 20:28:34 I don’t know what you expect Dec 18 20:29:31 Leftas_ you could also look into 0mq, mqtt Dec 18 20:31:03 how could I send a JSONObject with Retrofit Dec 18 20:31:08 this JSONOBject http://pastebin.com/hnci0Ssj Dec 18 20:31:28 you shouldn't Dec 18 20:31:57 org.json is gross Dec 18 20:33:27 JakeWharton, how can I do it ? Dec 18 20:33:32 i have no idea Dec 18 20:33:35 never used org.json, never will Dec 18 20:34:00 g00s, Cool, never knew about these. But still you would need to put IP address into one of apps ? tricknology, For example transfering the list of something it wouldn't be sufficient, but maybe transferring something bigger that 4 kb would send through UDP, smaller sizes through the GCM ?By the way, maybe you know does google blocks account, if there are multiple connections and big traffic ? Dec 18 20:34:12 gson/jackson 4lyfe Dec 18 20:34:30 there is also boon, but i don't thin it works on android Dec 18 20:35:08 although unfortunately when we converted a lot of our code over to objectmapper we got lots of OOM crashes, and had to switch to jackson streaming which wasn't much better than org.json Dec 18 20:35:09 https://github.com/RichardHightower/json-parsers-benchmark Dec 18 20:35:46 JakeWharton, I need send this JSON: http://pastebin.com/RtLUqdkg Dec 18 20:36:03 don't use boon Dec 18 20:36:09 with Retrofit how could I create this JSON to send ? Dec 18 20:52:58 fernandopaiva: retrofit does it automatically using gson Dec 18 20:53:29 wouldn’t really work with JSONObject since Gson relies on fields by default Dec 18 20:53:37 you’d have to write a custom adapter Dec 18 20:55:05 f2prateek_: He could also just .toString() the damn thing and send the raw JSON. Dec 18 20:55:24 If, for any reason you end up doing that: http://stackoverflow.com/questions/21398598/how-can-i-post-raw-whole-json-in-the-body-of-a-retrofit-request Dec 18 21:11:57 wow, my device just updated 8 apps :| Dec 18 21:12:37 g00s, yay! :) Dec 18 21:12:53 was there some kind of updatefest ? Dec 18 21:13:42 fernandopaiva definitly don't use org.json, one of the beauties of Retrofit is that it uses Gson to let you map your JSON object out with a POJO Dec 18 21:14:01 JakeWharton do you use retrolambda? Dec 18 21:14:42 I have a fragment who's UI should reflect an IntentService. However, if I leave that fragment and come back, I don't have a good way to repopulate it with the IntentService's status. Dec 18 21:14:44 haha Dec 18 21:15:25 I want to use a @Produce annotation in the service but not sure where I can register...is onCreate and onDestroy an OK spot to register for the Bus? Dec 18 21:15:33 (using Otto) Dec 18 21:19:53 hey, just trying to set android:background property of ListView to use theme's default color background (maybe with custom alpha) Dec 18 21:20:08 i guess that's probably not possible without custom coding :-/ Dec 18 21:21:09 I can get the background color with R.attr.colorBackground, change alpha channel and programatically change the background of ListView - it's quite straightforward to code - but seems very messy Dec 18 21:21:55 luv: maybe you can set it's parent theme in styles.xml Dec 18 21:22:40 i mean, it totally feels like something that sould be set in layout xml file (to maintain good code readabilty and seperation of business logic and presentation layer, indeed) Dec 18 21:23:49 shmooz: it's ok for me to set it for one ListView only - just don't know what fill in android:background - i tried things like @android:attr/colorBackground etc. but no luck Dec 18 21:24:04 attrs are with "?" Dec 18 21:24:09 instead of @ Dec 18 21:24:35 cool :) Dec 18 21:24:44 but cryptic but happy it works :) Dec 18 21:24:52 s/^but/bit/ Dec 18 21:24:55 does it ? Dec 18 21:24:57 hey luv, long time Dec 18 21:25:15 oh didnt try yet Dec 18 21:25:17 Napalm: oh, hey :) Dec 18 21:25:23 luv: You could also create a custom ListView class that applies transparency according to some XML attribute. Dec 18 21:25:42 sharkbutcher: i think we both agree that's a horrible overkill Dec 18 21:26:00 If he's going to re-use that for several layouts, is it? Dec 18 21:26:09 I guess you could create a layered drawable Dec 18 21:26:16 or a shape, I mean any xml drawable Dec 18 21:26:32 add the theme's color as an element of it, and then add the opacity Dec 18 21:26:36 ok, let's forget about the alpha channel for now Dec 18 21:26:58 android:background="?attr/colorBackground" doesn't work even though the theme contains @color/background_holo_light Dec 18 21:26:58 oh, then ?android:attr/somethingThatExists should work Dec 18 21:27:04 luv: you can use an attribute.. android:background="?android:attr/colorBackground" Dec 18 21:27:31 luv: look up android:listViewStyle in style.xml example Dec 18 21:27:36 and it's in R.attr for sure ... http://developer.android.com/reference/android/R.attr.html#colorBackground Dec 18 21:27:51 luv: you need the android: prefix Dec 18 21:28:07 Napalm: true Dec 18 21:28:27 IDE is happy now, let's give it a shot then :) Dec 18 21:28:34 luv: as shmooz also said, if you want to override all ListView backgrounds you can override android:listViewStyle in your theme Dec 18 21:28:51 luv: you probably want ?android:attr/windowBackground Dec 18 21:28:59 try your colorBackground and see Dec 18 21:29:48 colorBackground works fine actually (with Holo.Light at least) Dec 18 21:30:32 setting the alpha channel might be tricky though (maybe I can keep that one in the code for now?) Dec 18 21:30:49 thanks all for helping, indeed :) Dec 18 21:33:14 g00s: you might enjoy this, if you haven't seen it -- https://skillsmatter.com/skillscasts/6088-the-worst-programming-language-ever Dec 18 21:35:16 bankai_ sshh, don't remind android platform devs of this ... Dec 18 21:40:45 bankai_ this is good :0 Dec 18 21:40:54 it's fantastic! Dec 18 21:42:28 Any good guides out there to getting licensing in your app with Android Studio? The official Google document seems a bit out of date (market_licensing vs play_licensing) and I'm having issues getting this up and running as a library or otherwise. Dec 18 21:42:57 g00s: he took the $ prefix from PHP and used a euro sign -- "this is europe after all and i don't care if it's hard to type on your keyboard" lol Dec 18 21:43:38 mattblang: no i don't use retrolambda Dec 18 21:46:41 weird, so I "solved" the missing icon problem by using appcompat-v7:19.1.0 instead of 21.0.3 Dec 18 21:47:00 is that a bug? Dec 18 21:47:05 moogoo: what was the problem? Dec 18 21:47:17 the main icon on the ActionBar was not showing up Dec 18 21:47:18 The action bar was missing the icon? Dec 18 21:47:22 even if set with setIcon() Dec 18 21:47:28 yes Dec 18 21:47:29 use setLogo Dec 18 21:47:42 from v21 ActionBar Icon doesnt exist Dec 18 21:47:45 its only Logo Dec 18 21:47:48 hm Dec 18 21:50:13 Ankhwatcher: lol @ video part where they show "LISP" on the board ;D Dec 18 21:50:16 *bankai Dec 18 21:51:05 dam.. i was watchin that video Dec 18 21:51:09 pretty funny Dec 18 21:51:26 throw exception UNLESS everythings ok Dec 18 21:51:47 Any pointers on how to set up LVL as a library works in Android Studio? Dec 18 21:52:19 Napalm: that still does not show the icon for me Dec 18 21:52:20 Also, what's the difference, if any, between market_licensing and play_licensing? Dec 18 21:52:50 moogoo: sounds like you have a problem elsewhere then Dec 18 21:53:07 moogoo: can you pastebin/gist some code? Dec 18 21:53:25 does anyone here use GA on android? I'm curious about how people are using analytics for mobile. i.e., how do you guys organize your categories, events, actions and labels Dec 18 21:53:36 I could, but this is a fresh Android Studio wizard project that I'm working on Dec 18 21:54:08 moogoo: i have the same issue actually I couldn't even figure out how to get the icon to show haha Dec 18 21:54:12 I'll I'm calling is getSupportActionBar().setLogo(R.drawable.ic_launcher); Dec 18 21:54:47 oh Dec 18 21:54:53 maybe I'm not crazy then Dec 18 21:55:37 I think this is some Lollipop shenanigans Dec 18 21:55:46 <_Auron_> I'm not sure how or why I'm breaking the camera so easily on my phone Dec 18 21:56:03 <_Auron_> I really hate "Can't connect to the camera." Why the hell not, Android? Dec 18 21:56:05 _Auron_: your not releasing the camera Dec 18 21:56:25 <_Auron_> hmm Dec 18 21:59:03 <_Auron_> I'll need to dig through this library then since it handles the camera and associated views internally.. Dec 18 22:00:28 found this http://stackoverflow.com/questions/26966854/app-compat-actionbar-v21-app-icon-is-not-showing Dec 18 22:01:29 ohh Dec 18 22:01:35 the displayOption isnt set Dec 18 22:01:36 lol Dec 18 22:01:52 forgot about that one Dec 18 22:03:51 moogoo: getSupportActionBar().setDisplayHomeAsUpEnabled(true); Dec 18 22:04:07 moogoo: you only need that see write up on this SO question http://stackoverflow.com/questions/26966854/app-compat-actionbar-v21-app-icon-is-not-showing Dec 18 22:04:39 moogoo: sorry i mean http://stackoverflow.com/questions/26926127/home-button-in-action-bar-not-working-in-lollipop Dec 18 22:04:56 how is this asking for "? super Object", nothing is a superclass of Object Dec 18 22:05:06 lool Dec 18 22:05:08 EVERYTHING is Dec 18 22:05:18 every object in Java extends Object Dec 18 22:05:28 super != sub, Napalm Dec 18 22:06:16 I think I see what I did to make it ask for that Dec 18 22:06:48 god I want native lambdas so bad Dec 18 22:07:26 Is there a way of pushing a button on a webpage to create a bookmark to a mobile website inside a mobile browser? Dec 18 22:08:04 good catch, moogoo Dec 18 22:08:34 SimonVT: good catch, i read ? extends Object .. doh! Dec 18 22:08:55 sander^home: yes Dec 18 22:09:03 sander^home: but why are you asking here? Dec 18 22:09:12 there is, i know i’ve done it, but i don’t know what it si Dec 18 22:09:24 i know the Mealime website does it Dec 18 22:09:39 Napalm, I got asked in #phonegap to ask here :) Dec 18 22:09:51 wait, that’s making a shortcut to the website on the phone’s home screen Dec 18 22:10:18 sander^home: but you still have not explained what you are trying to do Dec 18 22:10:18 s73v3r, yes. Dec 18 22:10:32 ah Dec 18 22:10:48 s73v3r: so your making a phonegap app? Dec 18 22:10:53 i mean sander^home Dec 18 22:11:13 Napalm, no. i'm making a responsive website.. which I want bookmarked. Dec 18 22:11:24 i am not. i just remember seeing it used Dec 18 22:11:38 so people easier find it back. Dec 18 22:11:44 sander^home: just use the normal add to favorites type javascript code Dec 18 22:12:20 if you want it as an icon in the system then you might be able to change window.location to an intent href to do it Dec 18 22:12:22 lol what a mess Dec 18 22:12:36 Napalm, do you have a link? i've tried google.. and it gave me this: https://github.com/okamototk/jqm-mobile-bookmark-bubble Dec 18 22:12:42 moogoo: is that a response to my write up? Dec 18 22:13:01 that link yea Dec 18 22:13:24 Napalm, but it didnt work in android. Dec 18 22:13:28 anyone know offhand the style used for text in flat button ? Dec 18 22:13:43 sander^home: you have me interested, let me see if I can formulate a link to do just that Dec 18 22:13:53 g00s: borderless Dec 18 22:14:02 Hello? Dec 18 22:14:04 g00s: borderlessButtonStyle Dec 18 22:14:06 Napalm yeah, but that didn't do anything to the text Dec 18 22:14:07 or some such Dec 18 22:14:38 sander^home: http://developer.android.com/reference/android/content/Intent.html#ACTION_CREATE_SHORTCUT Dec 18 22:15:07 Honest Question: Are people not seeing my questions / messages? Dec 18 22:15:27 When making a custom view that inherits from an established view (such as inheriting from CardView) is it normal to inflate a layout in the custom view code? Dec 18 22:15:30 Napalm, I dont have an app at all. Dec 18 22:15:39 mikeflynn: everyone else reads the docs Dec 18 22:15:52 As do I. Dec 18 22:16:04 I came here for further help. Dec 18 22:16:11 Napalm, hm.. :-D Dec 18 22:16:35 sander^home: im just seeing what I can do, one moment Dec 18 22:16:38 Seriously? Were my questions, and specifically referenced the docs offensive or stupid in some way? Dec 18 22:16:42 Napalm, cool:) Dec 18 22:16:42 *that Dec 18 22:19:04 mikeflynn: what was your question? Dec 18 22:20:22 "A critical Git security vulnerability has been announced today" :O Dec 18 22:21:07 It was about the docs regarding adding licensing to an app. I'm a newbie using Android Studio and the docs are on this subject (http://developer.android.com/google/play/licensing/setting-up.html) are pretty Eclipse specific regarding setting up LVL as a library. I also asked about the differences, if any, between market_license (what's in the docs) vs play_license (the only sdk I can find). Dec 18 22:22:07 mikeflynn LVL is a joke Dec 18 22:22:27 anyone who wants to crack / bypass it will Dec 18 22:22:30 mikeflynn: it was likely renamed when the android market was renamed to the play store Dec 18 22:22:32 mikeflynn: it was just renamed, when Android Market changed to Google Play Dec 18 22:22:41 Yeah, it's not particularly dev friendly so far...but, it's the only option for paid apps, right? Dec 18 22:23:31 Ok, that's what I figured but wanted to check. Sucks that the docs, which are usually very good, are out of date on that subject. Even little things like Eclipse vs AS and market vs play are confusing and make you wonder. Dec 18 22:24:26 bankai_, you promised people might enjoy that video Dec 18 22:24:32 why the hell is BluetoothDevice.getAlias() hidden :( Dec 18 22:25:38 Sculptor: did you not enjoy? Dec 18 22:25:49 lol set indeterminateTint to white and indeterminateTintMode to src_over Dec 18 22:25:54 and then say "wtf" Dec 18 22:27:00 bankai_, that guy is lost in the woods Dec 18 22:27:15 Napalm: so I guess clicking the main icon/title just no longer does anything Dec 18 22:27:18 lame Dec 18 22:27:41 moogoo: read my write up Dec 18 22:28:03 I did, seems like a lot of work for something that used to be automatic Dec 18 22:28:05 moogoo: really your suppose to be using Toolbar.. ActionBar has been deprecated Dec 18 22:28:13 hmm Dec 18 22:30:27 using setActionBar()? Dec 18 22:31:13 no, but thats one way Dec 18 22:32:26 so just nix the ActionBar entierly and use a custom toolbar Dec 18 22:32:54 Napalm do you know why google would go this route, over setting the theme for the activity as a dialog? https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/SessionDetailActivity.java#L295 Dec 18 22:33:20 (Theme.Dialog) Dec 18 22:35:29 nope Dec 18 22:35:35 only thing i can think of Dec 18 22:35:51 Toolbar / actionbar ? Dec 18 22:36:33 you get a loading window based on the Theme before onCreate is called.. and only after the Activity goes into its resumved state does it switch them Dec 18 22:36:57 g00s: so their theme might be transparent and then set it to floating or something to get a nice effect perhaps Dec 18 22:37:43 g00s: see http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#TYPE_APPLICATION_STARTING Dec 18 22:39:43 hmm Dec 18 22:44:47 Is it possible to sell an app on The Google Play store without LVL? Dec 18 22:45:01 yes Dec 18 22:45:28 So the only point is for (easily broken) piracy protection? Dec 18 22:45:56 well, it covers "casual" breaking Dec 18 22:46:00 I suddenly feel like trying to get LVL working with Android Studio has now been a waste of my time. :) Dec 18 22:46:26 the same lib afaik also contained IAP Dec 18 22:52:01 sander^home: looks like its probably just easier to wrap your responsive site in an app and use the app indexing and other features to link it into the OS Dec 18 22:52:43 right, dinner time Dec 18 23:02:51 it would be awesome if there were a visial dictionary of all the theme attributes, as well as checklist of what is available in each version of android - but i have no idea how that could be done practically Dec 18 23:03:39 d.android.com design stuff is still showing stuff from holo, seriously? Dec 18 23:04:04 what a bunch of amateurs Dec 18 23:04:34 g00s: its http://www.google.com/design/spec/ Dec 18 23:04:37 for Material Dec 18 23:04:50 they should at least link it Dec 18 23:05:08 Napalm thats material spec across all platforms Dec 18 23:05:12 very general Dec 18 23:06:06 nm there is no code, or links to code anywhere :) Dec 18 23:08:15 Napalm, oh, how come? Dec 18 23:08:23 [info] [error] An exception has occurred in the compiler (1.8.0_25). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. Dec 18 23:08:28 that sure is promising Dec 18 23:08:56 Napalm i mean they still talk about split action bars http://developer.android.com/design/patterns/actionbar.html Dec 18 23:09:23 pfn is that with retrolambda ? Dec 18 23:09:34 retrolambda hasn't even been hit yet at that point Dec 18 23:09:45 oh yeah, duh Dec 18 23:11:20 com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found Dec 18 23:11:21 hmm Dec 18 23:11:40 probably because I set bootclasspath to android.jar Dec 18 23:22:08 ugh, AS keeps showing me the device chooser when i launch, even though i have 'usa same device' Dec 18 23:49:10 btw pfn re: retrolambda, just got this weird exception: Suppressed: java.lang.ClassNotFoundException: com.blahblah.myactivity$$Lambda$1 Dec 18 23:49:20 just another reason to think twice about retrolambda :) Dec 18 23:50:31 when rebuild/reinstall fixes a crash, .. Dec 18 23:50:36 not a good thing Dec 18 23:53:11 :( Dec 19 00:11:08 How do I get the default list selector? Is there any attr for it? Dec 19 00:11:25 I want to apply it to some specific list items, not for my entire list view Dec 19 00:29:25 is there a way I can force my app to use AeesomePlayer rather than NuPlayer on Android 5.x? Dec 19 00:31:45 yuo have to make your app more Awesome before thats possible Dec 19 00:34:55 is overriding onSaveInstanceState/onRestore in an alert dialog sufficient for it to reappear after config change? Dec 19 00:37:41 Hi. I have a question. I have https://aur.archlinux.org/packages/android-platform/ installed but android-studio says it can't find android-21? Dec 19 00:37:53 sdk manager Dec 19 00:38:07 lasserix: Aren't you supposed to use DialogFragment? In any case, DialogFragments reappear. Dec 19 00:38:24 I dunno about AlertDialog (never used it outside of a DialogFragment). Dec 19 00:38:26 lasserix: I'm a bit of a newbie. Could you provide a few more details? Dec 19 00:39:35 TacticalJoke: extending library Dec 19 00:39:50 RAD open up the Android SDK Manager and install 21 Dec 19 00:40:44 TacticalJoke: but in fact i am just going to say no to config changes and be done with it Dec 19 00:41:07 lasserix: the thing with that is it tends to mess with AUR permissions. Dec 19 00:42:15 Rad idk then sorry Dec 19 00:43:36 meh okay. thank you lasserix Dec 19 00:43:43 i might do that as a last resort Dec 19 00:44:18 i dont understand-- you don't have sdk 21 installed but expect AS to find it? Dec 19 00:44:38 Android SDK platform API Dec 19 00:44:38 Install the desired Android SDK Platform package from the AUR: Dec 19 00:44:39 android-platform (latest) Dec 19 00:46:12 Rad-: I think you have to use the SDK Manager, regardless of OS. I can't imagine there being any other way. Dec 19 00:48:22 Rad- did you have previous sdks installed? Dec 19 00:48:30 no Dec 19 00:48:42 i removed them all and reinstalled from the AUR Dec 19 00:48:48 where did that package install to? Dec 19 00:49:01 just point AS to where you installed Dec 19 00:49:38 whatitis: https://aur.archlinux.org/packages/an/android-platform/PKGBUILD Dec 19 00:49:44 AFAIK /opt/android-sdk/platforms Dec 19 00:49:57 latest comment on that link suggest if you wanted it in /opt/ you have to fix the script Dec 19 00:50:18 previous link* Dec 19 00:50:20 ahh screenOrientation=portrait makes so many problems go away Dec 19 00:50:32 ah didn't see that. thanks whatitis Dec 19 00:50:49 creates more lasserix Dec 19 00:50:51 i'll try that Dec 19 00:50:59 lasserix: no Dec 19 00:51:04 lasserix: it just hides them Dec 19 00:51:06 locking portrait is a horrible idea Dec 19 00:51:34 so you say but substantiate your claim Dec 19 00:51:53 simple, I dont want a portrait layout in landscape Dec 19 00:52:12 ? Dec 19 00:53:08 you optimize per layout orientation, portrait you have more headspace, landscape you have more you can do with width to not cramp height Dec 19 00:53:22 the app in landscape mode makes no sense Dec 19 00:53:33 the row of the listview is about 95% of the screen Dec 19 00:53:46 on any phone Dec 19 00:53:48 on tablet Dec 19 00:53:59 but i dont really care at this point, i just want to be done with it Dec 19 00:54:06 so normally id agree with you, but for now. Dec 19 00:54:08 landscape lets you maximize height restriction and push controls on a left right instead of top Dec 19 00:54:17 let them eat portrait! Dec 19 00:54:24 yeah if the app had any Dec 19 00:54:26 it doesn't Dec 19 00:54:45 it just displays a list, wherein the rows almost taller than the screen is high in landscape Dec 19 00:54:50 if I publish an app under account A, can I use Account B googl+ to create a community for beta testing ? or do I need to use Account A ? Dec 19 00:55:00 A Dec 19 00:55:03 damn it Dec 19 00:55:09 well, that makes sense Dec 19 00:55:17 lasserix: Just curious -- can you lock both portraits? Dec 19 00:55:25 ? Dec 19 00:55:28 I hate apps that lock one portrait (when I'm using my tablet). Dec 19 00:55:34 oh Dec 19 00:55:39 i think so not sure Dec 19 00:55:45 yeah Dec 19 00:55:48 reverse portrait Dec 19 00:55:54 I use my tablet upside-down because the charge port is on the bottom (great design, right). Dec 19 00:56:35 TacticalJoke: i do that too lol Dec 19 00:56:36 whatitis in this case because of the conditions of this app i just will do portrait mode only isntead of setting up all the -- to handle restoring the dialogs Dec 19 00:57:16 TacticalJoke: I don't see how that makes sense, you want the cable sticking out on the top? Dec 19 00:57:23 Yeah. Dec 19 00:57:35 Because if it's sticking out of the bottom then it's digging into me and getting potentially damaged. Dec 19 00:57:38 i do that too Dec 19 00:57:49 same here. cable sticking out the top makes it easier to route around when I’m holding the tablet Dec 19 00:58:20 I think the top is the best place. When it's at the side, cables get damaged more easily. Dec 19 00:58:26 Also ports get damaged more easily. Dec 19 00:58:32 I guess I haven't held any tablet long enough, on phones it would seem really weird to have the cable on top Dec 19 00:58:38 Why? Dec 19 00:58:47 That's the place farthest from you and everything else (generally). :) Dec 19 00:58:58 The side isn't great, because cables get bent too easily. Dec 19 00:59:05 The bottom is terrible because that's where the user is. Dec 19 00:59:33 Imagine holding a phone with a cable coming out of the bottom. Just gets in the way. Dec 19 00:59:43 applicationId is what distinguishes the URL in the google playstore link? Dec 19 01:00:07 Then again, I guess it depends on whether you're standing or sitting. Dec 19 01:00:11 I don't just imagine, I do that all the time, having it hang off the top of my phone seems weird :) Dec 19 01:00:23 I guess bottom is better for standing and top is better for sitting. Dec 19 01:01:57 Which is why having an app which can simply flip itself based on whether it’s upside down or not is the best of all worlds Dec 19 01:02:08 I, can you help me, i'm a beginner in a developpement, i'm study vb.net (Shit langage i know), but i'm need to study for develop for mobile android AND ios, can you help me for choose a langage compatible please? sorry for my english, i'm belgian Dec 19 01:02:52 FN android uses JAVA Dec 19 01:03:21 Android is java, iOS is Objective-C or Swift Dec 19 01:03:23 tho you can do native coding with C. also some people use SCALA and/or PYTHON. but standard is java Dec 19 01:03:47 if you really want to do both at once, there’s also C# through Xamarin, although that costs money Dec 19 01:04:27 it isn't possible to code for ios with java? Dec 19 01:05:03 hm whatitis it still seems to be broken Dec 19 01:05:24 so, Python is a easy langage i believe Dec 19 01:05:40 it’s possible; it’s what LibGDX uses to provide iOS support Dec 19 01:06:22 did it install the sdk? Dec 19 01:06:52 not yet Dec 19 01:06:53 I get the impression that you might as well just use Java for Android development. Dec 19 01:06:57 whatitis: yeah it installed it into here /opt/android-sdk/platforms/android-21 Dec 19 01:06:59 Unless you're l33t or something. Dec 19 01:07:04 Even then, it's debateable. Dec 19 01:07:11 debatable* Dec 19 01:07:32 The tooling all assumes you're using Java. Dec 19 01:07:41 rad-, then open AS and point it to the android-sdk folder Dec 19 01:08:00 yeah, you’re not going to find much, if any support if you’re using something other than Java. Dec 19 01:08:11 not the full platform folder, just /opt/android-sdk/ Dec 19 01:08:16 Xamarin provides support for C#, but again, it costs $$$ Dec 19 01:08:36 thanks you Dec 19 01:08:41 i'm going to study java Dec 19 01:09:02 whatitis: path variables? Dec 19 01:09:18 and if, after I get there I would learn a language compatible ios Dec 19 01:09:45 hi, how i can download 2 files with DownloadManager ? Dec 19 01:10:53 whatitis: found it. it's already pointed at /opt/android-sdk Dec 19 01:11:38 so what error are you getting? Dec 19 01:12:09 how did you install sdk, as user or root, make sure you have permissions Dec 19 01:12:25 whatitis: same one Dec 19 01:17:20 not sure, as long as you are pointing it to the sdk I dunno. some others may, no gradle errors or anything else? is it a new project? Dec 19 01:19:31 God, I hate merging two changesets that touch the same 10 files. Dec 19 01:20:10 so wait, Android Studio has been released? Dec 19 01:20:42 Yar. Dec 19 01:21:03 took them long enough Dec 19 01:21:09 Not like we have a practically omniscient search engine that can answer such questions. Dec 19 01:21:15 i never heard when it was officially released though Dec 19 01:21:59 It was released a few days ago. Dec 19 01:23:07 Ugh. I might end up using the Visitor pattern. Dec 19 01:26:55 whatitis: sort of. i can scrap it and delete it if neeeded Dec 19 01:33:18 that being said whatitis it's looking for 21.1.1 when i have warning: android-sdk-build-tools-r21.1.2-1 is up to date -- reinstalling Dec 19 01:33:28 21.1.2... Dec 19 01:36:18 build tools are at 21.1.1, unless I missed an update Dec 19 01:37:19 its 21.1.2 is the latest Dec 19 01:39:31 cool Dec 19 01:39:59 So.... android studio is seraching for an outdated build tool? Dec 19 01:40:32 why are there so many versions of the build tools? Dec 19 01:40:40 is there a reason you wouldn't use the most recent? Dec 19 01:42:33 So uh.. I’m not really much of a UI guy but.. I have a textview inside a linearlayout with a background drawable which is a rectangle. The text is left-justified though and I want it center. How to? Dec 19 01:43:00 tried gravity Dec 19 01:43:26 is textview match parent? Dec 19 01:43:33 yah that ^ Dec 19 01:44:18 nope Dec 19 01:44:23 should it be? Dec 19 01:44:49 for the gravity to have any effect Dec 19 01:44:52 yes Dec 19 01:45:21 android:gravity="center|center_horizontal|center_vertical" Dec 19 01:45:30 lol none of that is doing what I want it to :/ Dec 19 01:45:55 RustyShackleford: i'm going through the "how to build an android app" tutorial so... i haven't any idea Dec 19 01:46:50 try just android:gravity="center_horizontal" Dec 19 01:47:39 if the text view's layout_width is match_parent Dec 19 01:47:45 any idea how to set android studios build tools versoin Dec 19 01:48:13 Rad, in your build.gradle file Dec 19 01:48:50 under your android {...} set buildToolsVersion "21.1.2" Dec 19 01:48:54 thanks r0adkll Dec 19 01:49:04 np Dec 19 01:49:14 but now i get Dec 19 01:49:14 Error:Failed to find: com.android.support:appcompat-v7:21.0.3 Dec 19 01:49:15 Install Repository and sync project
Open File
Open in Project Structure dialog Dec 19 01:49:23 .-. Dec 19 01:49:46 tricknology: werent you asking this stuff yesterday or before, and you were mixing layoutGravity and gravity for text? Dec 19 01:49:52 change that to com.android.support:appcompat-v7:21.+ Dec 19 01:50:23 r0adkll: this line? compile 'com.android.support:appcompat-v7:21.0.3' Dec 19 01:50:28 yes :D Dec 19 01:50:36 thank you Dec 19 01:50:54 does the + ensure i don't have to keep doing this? Dec 19 01:50:55 >.> Dec 19 01:51:46 yes, the + means it will grab the latest version whenever you sync your gradle file Dec 19 01:52:04 can i do that to my setbuildtolls version too? Dec 19 01:52:08 21.+ ? Dec 19 01:52:15 at least until they bump the major build version # above 21 Dec 19 01:52:22 I don't think so Dec 19 01:52:33 dang Dec 19 01:52:37 so i have to keep updating that Dec 19 01:52:38 thanks Dec 19 01:53:57 r0adkill, now the text is upper left corner Dec 19 01:54:36 hmmm Dec 19 01:54:53 ioll pastebin the xml Dec 19 01:54:59 yah, do that Dec 19 01:56:23 http://pastebin.com/UZLh2d8e Dec 19 01:57:01 …paddingLeft Dec 19 01:57:14 that seemed to be it.. Dec 19 01:57:27 set your root LinearLayout's android:layout_width="match_parent" Dec 19 01:57:50 otherwise it will supercede the text view's layout_width Dec 19 01:58:15 oh ok good to know, thanks Dec 19 02:07:51 android weekly has had some great articles Dec 19 02:07:57 just found out about it Dec 19 02:09:39 + versions are a very bad practice Dec 19 02:14:30 i think its ok to use for some projects using semver on y in w.x.y Dec 19 02:17:01 TacticalJoke is quiet, he must be coding :) Dec 19 02:17:15 Yes. lol Dec 19 02:17:34 Implementing the "load more comments..." thing. It's kinda awkwardly complicated. Dec 19 02:21:53 pfn, yes when you use them for the entire version (i.e. com.example:artifact:+) but their fine when their for the patch/build part of the version # (i.e 21.0.+) and even google tells you to use it that way (see http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html) Dec 19 02:22:07 they're* Dec 19 02:24:14 TacticalJoke: how are you doing it? with a custom scroll listener? Dec 19 02:26:11 ugh, 4.2.2 I hate you! Dec 19 02:26:17 For the post list, I'm gonna use a scroll listener to auto-load-more posts (I'm currently using a "Load More" button, but it's tedious. For the comment list, I'm gonna allow them to click "load N more comments". Dec 19 02:26:31 s/./)./ Dec 19 02:26:40 is there something I can do on android 4.2.2 to keep android from connecting to "disabled" or "turned off" wifi networks? Dec 19 02:26:47 this behaviour doesn't happen on 4.1.2! Dec 19 02:27:02 and I see nothing in the logs about who is triggering this connect Dec 19 02:28:08 TacticalJoke: why not have everything endlessly scrolling ? Dec 19 02:29:12 These "load more comments" nodes are all over the place. It's not desirable to auto-load them. Dec 19 02:29:21 Maybe it's desirable to auto-load the ones underneath, but I'm not sure. Dec 19 02:29:29 Consider this page: http://www.reddit.com/r/AdviceAnimals/comments/2pq35m/i_thought_it_was_a_taboo_thing_to_do_within_the/ Dec 19 02:29:34 Ctrl+F "load more comments". Dec 19 02:29:39 They're everywhere. Dec 19 02:29:54 ahh ok so midway through a thread... makes sense Dec 19 02:37:41 lol, how does a post on /r/androiddev about Services get upvoted in 2014 that doesn't provide some amazing insight Dec 19 02:40:12 so... Dec 19 02:40:28 In order to get my layouts to work properly, I've been putting view.post inside of view.post inside of view.post... Dec 19 02:40:41 (often to satisfy Gingerbread) Dec 19 02:41:31 uirunception? Dec 19 02:41:44 yeah! Dec 19 02:41:45 :D Dec 19 02:41:49 matt_j that doesn't smell good Dec 19 02:42:05 sounds like a crime scene :) Dec 19 02:42:05 Actually, it's not so bad. It does work Dec 19 02:42:21 because you can't get view measurements until after they're rendered, right? Dec 19 02:42:37 ugh reddit doesn't search in nested coments Dec 19 02:42:42 I also have WebViews Dec 19 02:42:48 which are a crime scene in themselves :( Dec 19 02:42:57 matt_j there are a couple of ways to do that Dec 19 02:43:02 what are you trying to do? Dec 19 02:43:26 That's an excellent question. I really don't have time to explain it on here Dec 19 02:43:33 especially when I've got it working on 2.3 and up Dec 19 02:43:35 finally Dec 19 02:43:45 umm okay Dec 19 02:44:16 basically I have a bunch of views that need to size themselves based on the width of the screen etc Dec 19 02:44:37 is this in an activity or custom viewgroup? Dec 19 02:44:38 how can Android be automatically connecting me to an AP that has been disabled or "turned off" as it shows in the connection manager? Dec 19 02:45:02 lasserix_: in a fragment, actually Dec 19 02:45:39 and man, I had some weird issues. My original code worked until the same fragment was opened in a different activity Dec 19 02:45:45 http://stackoverflow.com/questions/7733813/how-can-you-tell-when-a-layout-has-been-drawn Dec 19 02:46:15 that could work too, heh Dec 19 02:46:24 it will work and is probably much better Dec 19 02:46:29 but if you want to do what you are doing Dec 19 02:46:35 just have one runnable, run it onactvitycreated Dec 19 02:46:44 if width/height returns 0 postdelayed again Dec 19 02:46:52 if not, remove the callback Dec 19 02:46:55 the fragments are actually inside a viewpager Dec 19 02:46:58 but don't call it from within the view over and over again Dec 19 02:47:24 TacticalJoke: on reddit web is there a way to expand all comments? Dec 19 02:48:10 I don't think so, but you can add ?limit=500 to the URL. Dec 19 02:48:45 It won't go over 500, unfortunately. Dec 19 02:49:33 man people who say "no don't do it you'll be over your head are so f0ked" Dec 19 02:51:00 is this you TJ http://www.reddit.com/r/androiddev/comments/2pprhw/what_specific_jar_files_do_i_need_to_work_with/ ? Dec 19 02:53:04 does WifiNative -> callSECApiBoolean reset the wifi adapter and potentionally re-enable all disabled networks? Dec 19 02:53:09 No. lol Dec 19 02:53:13 What kind of noob would use a Reddit wrapper? Dec 19 02:53:32 a noobidity noob Dec 19 02:58:13 bankai_au http://www.gizmag.com/petpace-pet-health-monitoring-collar/32368/ Dec 19 02:58:16 I don't know whether to support "Continue this thread --->" Feels like a pain. Dec 19 02:58:53 damn Dec 19 02:58:59 thats the kickstarter i should have done Dec 19 02:59:00 damn **** ENDING LOGGING AT Fri Dec 19 02:59:59 2014