**** BEGIN LOGGING AT Sun Dec 14 02:59:58 2014 Dec 14 03:00:09 <_genuser_> lasserix_: I like it, I suppose I can just go this route and not worry about it. :) hx Dec 14 03:00:12 <_genuser_> *thx Dec 14 03:00:27 _genuser_: this is the recomended way of doing it! via developer site Dec 14 03:01:04 I switched and it still doesn't work with 1.0.0, same error Dec 14 03:01:41 You said ' apply plugin: 'com.android.application' " right? Dec 14 03:01:43 <_genuser_> lasserix_: nice, thanks again. let me code it up and see how the camera surfaceview behaves with lives changes. Dec 14 03:01:52 <_genuser_> *live changes Dec 14 03:02:01 csto17: look where the project view is, switch it to android and see if you have multiple manifests in the Manifest folder Dec 14 03:02:23 csto17: yeah but android appPlugin are probably equivalent macros Dec 14 03:03:42 csto17: http://snag.gy/lYHrH.jpg Dec 14 03:04:08 oops Dec 14 03:04:32 lasserix_: Well It doesn't actually show a manifest folder, and there is only one AndroidManifest.xml that i can see Dec 14 03:04:37 yyeah Dec 14 03:04:40 you have to switch it to Android Dec 14 03:04:44 lollololo Dec 14 03:04:46 right now it's probably Project Dec 14 03:04:59 It was, i didi Dec 14 03:05:03 weird Dec 14 03:05:04 dunno Dec 14 03:05:15 make a new project just copy your stuff over if all else fails Dec 14 03:07:29 lasserix_: http://puu.sh/dtKzk/d33f857944.png Dec 14 03:08:50 csto17: i want to say it did not import it correctly Dec 14 03:08:56 try importng it but using other options Dec 14 03:09:06 on that screen where it say use default gradle wrapper or whatever Dec 14 03:09:20 because thats definitly not how Android project view is supposed to be organized Dec 14 03:09:31 csto17: do you still have the eclipse project? Dec 14 03:10:47 lasserix_: I do Dec 14 03:10:55 open it up Dec 14 03:11:00 goto file export as gradle project Dec 14 03:11:06 then try importing it Dec 14 03:11:11 if you didn't do that before Dec 14 03:12:29 lasserix_: Do you mean this: http://puu.sh/dtKWs/c8d590dd34.png Dec 14 03:12:43 umm yeah Dec 14 03:12:48 been a while since i did it but think so Dec 14 03:18:04 Well that's sort of better lasserix_ : http://puu.sh/dtLi4/38592edcc1.png Dec 14 03:19:42 whats in libs? Dec 14 03:20:15 here's what i would try next Dec 14 03:20:21 remove the libraries from your eclipse project Dec 14 03:20:23 export it Dec 14 03:20:31 add them back in via gradle declaration Dec 14 03:21:10 http://puu.sh/dtLsw/8f2715da16.png Dec 14 03:21:12 hmm Dec 14 03:21:31 make sure you are using right version of google play Dec 14 03:22:40 6.5.+ Dec 14 03:23:03 * StingRay_ loves new google play Dec 14 03:23:17 about time the broke it up. been on my wish list for years Dec 14 03:26:26 K. now what do you mean by gradle declaration? Dec 14 03:26:41 Like just paste them in and add them to the build.gradle Dec 14 03:29:13 yeah Dec 14 03:29:16 in the dependencies node Dec 14 03:30:13 eg http://snag.gy/xaCgL.jpg Dec 14 03:30:26 actually Dec 14 03:30:28 you can goto Dec 14 03:30:58 Module Settings Dec 14 03:31:13 which is f4 or right click in the project/android view select Module Settings Dec 14 03:31:47 click on your app module under Modules on the left hand side, then click dependencies tab, then click the plus button -> Library and select the support and google play services you need Dec 14 03:35:42 lasserix_: Right, i think its better http://puu.sh/dtMmk/eddc2ff68e.png Dec 14 03:35:56 but the build stills hates 1.0.0 Dec 14 03:36:45 http://pastebin.com/nX2Ky6cp Dec 14 03:38:43 I found a way better solution to my indent-showing-line thing. Dec 14 03:38:44 Just create a custom View that paints its own line. Much simpler. Dec 14 03:39:36 csto switch AppPlugin to com.android.application Dec 14 03:40:12 csto17 at this point id seriousily just manually copy the files over into a new project, it'd take all of 15 minutes Dec 14 03:40:24 It's probably a good idea to manually copy files over, anyway. Dec 14 03:40:29 That's what I'm gonna do when I move to AS. Dec 14 03:40:35 oh wait Dec 14 03:40:51 csto17: what's your module build.gradle file look like? Dec 14 03:43:30 wow http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/1.5_r4/android/widget/EditText.java/?v=source edit text is so simple! Dec 14 03:44:29 Think i lagged out Dec 14 03:44:52 csto17: so at this point id recomend just copying manually your files over, will take all of 10 minutes Dec 14 03:44:56 but before you do that Dec 14 03:45:02 what's your build.gradle in module look like? Dec 14 03:45:18 Yeah, gonna make a new project Dec 14 03:45:25 I only have a project level build.gradle Dec 14 03:45:29 ... Dec 14 03:45:40 ohh Dec 14 03:45:41 no wonder Dec 14 03:45:43 yeah Dec 14 03:46:01 android studio uses "modules" which are kinda equivalent to projects in a workspace Dec 14 03:46:43 anyways, make a new project, first thing to do is goto Module Settings, click 'app' module (default module) click dependencies tab, click the plus button, click library, add the play services you need Dec 14 03:47:11 Right, thanks for all the help Dec 14 03:47:12 anyways i usually copy manually in this order: dependencies, drawables, values, layouts, classes Dec 14 03:54:05 oh my, blade runner 2 Dec 14 03:58:28 heheh Dec 14 03:58:47 the screnplay is writtenby the guy who wrote hte original screenplay is like 80 years old Dec 14 03:59:25 oh my wow that's cool Dec 14 03:59:34 flat input text view is super easy to do Dec 14 04:00:15 shucks i wanted to make a library and upload it to github Dec 14 04:01:02 lasserix_: So what do i put in and not in module/project level build.gradles? Dec 14 04:01:10 Assuming its important Dec 14 04:01:16 ? Dec 14 04:01:35 you might put a specific maven server repo in the project level build Dec 14 04:02:22 Oh i should have just read the pre generated comments in the files...derp Dec 14 04:02:27 in the module you put dependencies, you can also customize the way the project is built eg set global variables you can use in your code or other stuff if it's like debug release versus production release, or if you have paid/free you can chose to include different classes/libraries etc Dec 14 04:06:51 kawa example for android http://www.gnu.org/software/kawa/Android-view-construction.html Dec 14 04:06:57 interesting , want to play ! Dec 14 04:22:14 Custom views are so handy. My class earlier was violating the SRP before I extracted a custom View. Dec 14 04:22:27 Custom-view all the things, IMO. Dec 14 04:23:41 God, Android is tough. Dec 14 04:23:57 I feel like I'm learning crazy amounts in around two-hour segments. Dec 14 04:24:05 I don't even know how my brain is coping. Dec 14 04:24:19 each row is a custom view? Dec 14 04:24:24 Oh, I'd already done that. Dec 14 04:24:29 you handle identying by just setting an offset right? Dec 14 04:24:30 This is a custom view for the indent thing. Dec 14 04:24:35 oh Dec 14 04:24:36 Nah, I'll show you... Dec 14 04:24:48 wait so the text part of the row is that just a textview? Dec 14 04:24:52 (I was using padding.) Dec 14 04:25:21 why can't you continue to? Dec 14 04:26:42 <_genuser_> ugh, there's not default listview with radiobuttons. Dec 14 04:26:56 http://pastebin.com/Xrz4azyf Dec 14 04:27:04 That code probably sucks; I'm too tired to think right now. Dec 14 04:27:08 I'll rebase it when it doesn't suck. Dec 14 04:27:14 genuser use that material dialog library has exactly that! Dec 14 04:27:19 <_genuser_> guess I have to create a listadapter, etc, etc. the faster I try to finish, the more it forces me to slow down. Dec 14 04:27:23 lasserix_: I could, but then my row class does way too much. Dec 14 04:27:30 Now, my row class does one thing (basically). Dec 14 04:27:35 genuser anyways its really easy just do a base adapter, add a radiobutton, on select clear all and thenr eset Dec 14 04:27:40 (I know I should extract those strings; just haven't yet.) Dec 14 04:27:52 <_genuser_> lasserix_: doesn't that require api level 21, etc? Dec 14 04:28:05 <_genuser_> lasserix_: yeah, I thought a simple adapter would be easy enough, so I was just going to do that. Dec 14 04:28:13 <_genuser_> heck I was just going to copy/paste one of my other projects. Dec 14 04:28:24 _genuser_ is this for the preferences ? Dec 14 04:28:51 TacticalJoke: for clarity you should rename yourt resource ident size to default ident size Dec 14 04:28:55 I could, in theory, move the "resize the indent" code to CommentIndentView, but it seems wrong. Dec 14 04:29:02 Yeah, I thought about that. Dec 14 04:29:03 genuser no it requires 14 i think Dec 14 04:29:11 <_genuser_> g00s: yes and no. dialog box will show listview with radio buttons. as the user clicks one, the mainactivity will react without dismissing the dialog box. when the user hit OK only then it will save the preference to shared preferences. Dec 14 04:29:14 or maybe even 11 but you have to do some other stuff to make it work properly Dec 14 04:29:30 The other thing seems wrong because then CommentIndentView knows about its container type (LinearLayout). Dec 14 04:29:33 It's kinda awkward. Dec 14 04:29:53 <_genuser_> lasserix_: choices chocies. I have AS setup, I can move my project to it. Or I can get material design working in eclipse with api level 18. Dec 14 04:30:17 _genuser_: just move to as Dec 14 04:30:18 <_genuser_> lasserix_: I'll think about it rationally and pick one and go with that. :) can't over over think a simple app Dec 14 04:30:23 you're going to have to sooner or later Dec 14 04:30:35 TacticalJoke: why is that awkard? Dec 14 04:30:39 <_genuser_> lasserix_: yeah, AS is completely setup since this morning and ready to go. maybe I will just move to it. Dec 14 04:30:53 lasserix_: Then CommentIndentView is coupled with my ViewGroup choice. Dec 14 04:30:57 TacticalJoke: i dont think the ident in the row is a bad idea, you can just set it to zero for no ident Dec 14 04:31:09 If I change from LinearLayout to something else, I then have to make that change in both CommentView.java and CommentIndentView.java. Dec 14 04:31:22 ahh yeah Dec 14 04:31:41 Yeah, it goes to zero at times. And then the line doesn't get drawn, too. Dec 14 04:31:47 ah Dec 14 04:31:50 The line is drawn to the left. Dec 14 04:31:55 So it's all easy peasy. Dec 14 04:32:15 TacticalJoke: if i were you i'd just implement the row as a custom view Dec 14 04:32:20 draw everything via onDraw Dec 14 04:32:22 (I like the fact that non-indented comments don't get a line.) Dec 14 04:32:22 ie text and all Dec 14 04:32:25 it'll be a lot faster Dec 14 04:32:32 and you can customize it a lot more Dec 14 04:32:35 Really? Hmm. Dec 14 04:32:40 Hadn't thought of that. Dec 14 04:32:42 and then you dont have to worry about container type Dec 14 04:32:56 So it's faster to draw text manually than call TextView.setText? Dec 14 04:32:58 yeah the most pain in the ass thing is wrapping the text but all you need is one method to do that Dec 14 04:33:02 oh definatly Dec 14 04:33:10 its not just setText its layout inflation of the viewgroup etc etc Dec 14 04:33:14 The biggest bottleneck of my ListView is TextView.setText right now. Dec 14 04:33:16 since this is for a listview Dec 14 04:33:18 oh yeah Dec 14 04:33:21 When someone has a huge comment, I sometimes notice a little stutter. Dec 14 04:33:21 it'll be a LOT faster Dec 14 04:33:52 Yeah, but layout inflation happens only around 6/7 times on my phone (around 12 times on my tablet). Dec 14 04:34:07 layout inflation is slow, doesn't matter count Dec 14 04:34:12 err Dec 14 04:34:19 look at it this way, per row you have to look up 4 views Dec 14 04:34:32 findViewById is so expensive viewholder pattern was invented Dec 14 04:34:37 Yeah, but only after inflation. Dec 14 04:34:47 by using custom view class, you avoid findViewById entirely Dec 14 04:34:52 The biggest lag by far seems to be TextView.setText with huge comments. Dec 14 04:34:57 True. Dec 14 04:35:00 not to mention you flattenyour viewhierarchy by entire branch Dec 14 04:35:02 <_genuser_> heh, I just realized I don't even need the radio button. I can just set the color of the selected item and be done. Dec 14 04:35:14 Hmm, is it really hard, though? Dec 14 04:35:17 Like, getting it all lined up. Dec 14 04:35:18 no Dec 14 04:35:24 just draw it on paper first Dec 14 04:35:33 so youknow all the variables Dec 14 04:35:37 Yeah. Dec 14 04:35:40 I might do that. Hmm. Dec 14 04:35:44 Or at least try. Dec 14 04:35:45 you'lll need a method that measures the text width Dec 14 04:35:48 Would be nice to have crazy speed. Dec 14 04:35:50 so you know when to break the lines Dec 14 04:35:52 <_genuser_> paper, like doing story boards, etc? Dec 14 04:36:01 I mean, it's fast already. Just those long comments sometimes cause a tiny bit of stutter. Dec 14 04:36:24 TacticalJoke: well it'll be a good exercise + faster + you can customizeit more Dec 14 04:36:27 It's not very noticeable, but it is to me. Dec 14 04:36:29 Yeah. Dec 14 04:36:49 stupid terrible isp Dec 14 04:36:51 lasserix_: Do i have to do anything else with the google services other than just adding with the project settings? getting a no class def found error at runtime for any google serviceslasserix_: Do i have to do anything else with the google services other than just adding with the project settings? getting a no class def found error at runtime for any google services Dec 14 04:37:02 oh no lasserix_ sends TacticalJoke back to the drawingboard Dec 14 04:37:18 haha Dec 14 04:37:26 lasserix_ always does that. Dec 14 04:37:28 whoops double message Dec 14 04:37:33 I talk about something, and he's like "You should do it like this!". Dec 14 04:37:35 :D Dec 14 04:37:37 TacticalJoke: that's his mission Dec 14 04:37:38 csto17: google play services changed, now it's been modularized so you may have to alter your code --i honestly dont know haven't used it since new update Dec 14 04:37:43 Joking aside, I like the feedback. Dec 14 04:38:01 TacticalJoke: it's fast on your device, but that's one in a couple thousand Dec 14 04:38:02 I might end up using a custom view. Certainly sounds likely to be fast. Dec 14 04:38:10 Layout must be so slow, with resizing TextViews and stuff. Dec 14 04:38:20 eggxactly Dec 14 04:38:51 TacticalJoke: while you're at it why don't use a OpenGL surfaceview, nothing is faster than that Dec 14 04:39:22 nah opengl is a pain to set up Dec 14 04:39:24 your app will have more FPS than Call of Duty Dec 14 04:39:27 lol Dec 14 04:39:41 have you done any custom view / ondrawing? Dec 14 04:39:59 The second class in that link uses custom drawing, yeah. Dec 14 04:40:01 http://pastebin.com/Xrz4azyf Dec 14 04:40:09 I gave you two classes for the price of one. Dec 14 04:40:13 i mean more than just like drawline Dec 14 04:40:25 also you dont need the super call to onDraw Dec 14 04:40:31 Oh, okay. lol Dec 14 04:40:32 No. Dec 14 04:40:37 Oh. Why don't I need that? Dec 14 04:40:46 what does a generic view do in ondraw? Dec 14 04:41:08 omg.. i hate linux dist upgrades Dec 14 04:41:14 I'll look. lol Dec 14 04:41:28 broke tones of crap.. just spent the last 4 hours fixing everything Dec 14 04:41:32 6042 protected void More ...onDraw(Canvas canvas) { Dec 14 04:41:32 6043 } Dec 14 04:41:32 6044 Dec 14 04:41:41 luckly its a remote virtual machine.. so.. not so bad Dec 14 04:41:48 Napalm sounds like you had it easy :) Dec 14 04:41:49 TacticalJoke: does abs nothing Dec 14 04:41:55 Ya. Dec 14 04:41:56 fuck you g00s :D Dec 14 04:42:03 im just fast Dec 14 04:42:04 What is it good for? Absolutely nothing! Dec 14 04:42:10 wasnt friggin easy Dec 14 04:42:15 Napalm time to use gentoo, get some linux chops Dec 14 04:42:27 dude, i use to run it Dec 14 04:42:30 then went to slackware Dec 14 04:42:42 and then you became a slacker, and see what happened Dec 14 04:42:46 OpenBSD or die! Dec 14 04:42:48 lol Dec 14 04:42:53 lasserix_: I might stick with TextViews for now and optimise (with custom views) later. Dec 14 04:43:02 Especially when I've got everything done. Dec 14 04:43:04 * Napalm watches the distro flame wars start Dec 14 04:43:18 sounds reasonably but im dissapointed ;p Dec 14 04:43:26 TacticalJoke: what are you trying to do? Dec 14 04:43:31 Why? Lol. I've got *loads* of stuff to do. Dec 14 04:43:42 I might have already solved it Dec 14 04:43:44 yeah yeah Dec 14 04:43:46 i think i have Dec 14 04:43:59 Napalm: I'm making a Reddit client, and right now my adapter returns a row that has four TextViews. Dec 14 04:44:07 lasserix_ suggested making a custom view, with custom text drawing. Dec 14 04:44:08 TacticalJoke: have you read ? http://blog.xebia.com/2013/07/22/viewholder-considered-harmful/ Dec 14 04:44:18 Yeah, lasserix_. I'm using that pattern. Dec 14 04:44:22 you can simplify your getView call and itd be fairly simple to do Dec 14 04:44:24 oh Dec 14 04:44:27 did you read the second part? Dec 14 04:44:33 Yeah, but I don't like that so much. Dec 14 04:44:37 I prefer the first idea. Dec 14 04:44:55 ah Dec 14 04:44:56 I like that my adapter inflates it. It's consistent with other adapter shenanigans. Dec 14 04:45:05 It feels weird for it to inflate itself. Dec 14 04:45:13 ocd man Dec 14 04:45:15 And then we can't specify a parent for the layout params. Dec 14 04:45:22 That doesn't support theming, does it? Dec 14 04:45:28 sure you can just pass it in Dec 14 04:45:30 If we don't give it the parent's thingamajigs. Dec 14 04:45:41 just passit in the constructor Dec 14 04:45:46 TacticalJoke: i think he was taking you the long route, https://github.com/lucasr/android-layout-samples http://lucasr.org/2014/05/12/custom-layouts-on-android/ Dec 14 04:46:17 Napalm: what is that? Dec 14 04:46:23 Okay, one sec. Dec 14 04:46:24 the solution Dec 14 04:46:35 lasserix_: You're talking about this, right? http://blog.xebia.com/2013/07/30/a-better-custom-viewgroup/ Dec 14 04:46:49 i see a few apps/games with a "keywords:" list at the bottom of this description Dec 14 04:46:58 no BS, need to know if this is allowed or not Dec 14 04:47:01 can't find anything Dec 14 04:47:10 TacticalJoke: yeah Dec 14 04:47:20 makes your getview simpler Dec 14 04:47:23 Okay, I guess we can pass the parent. Dec 14 04:47:37 the adapter doesn't care about inflating, just wants a view Dec 14 04:47:49 Napalm: Interesting. Dec 14 04:47:53 Agamemnus: https://play.google.com/about/developer-content-policy.html and that links to the developer distro agreement Dec 14 04:47:56 lasserix_: Yeah, but I love consistency. lol Dec 14 04:48:03 If I want another view, my adapter has to inflate. Dec 14 04:48:05 consistency with the herd? Dec 14 04:48:08 I like it to inflate all the things. Dec 14 04:48:18 I also feel weird as hell having a view that inflates *itself*. Dec 14 04:48:21 only because that's how 80 examples do it Dec 14 04:48:25 TacticalJoke: if your only dealing with 4 textViews.. whats the big deal? Dec 14 04:48:26 Napalm: I see there's one use of the word "keywords", but I'm not convinced Dec 14 04:48:28 hehe that's cause your OCD is kicking in Dec 14 04:48:34 Napalm: Oh, no big deal. Just bike-shedding. lol Dec 14 04:48:38 I'd like to see something that says "Yes, you can use keywords" Dec 14 04:48:46 Napalm: it's just cooler to do a custom view Dec 14 04:48:48 Napalm: Though *huge* Reddit comments occasionally cause a little stutter. Dec 14 04:49:03 Napalm: The bottleneck seems to be TextView.setText or something around that. Dec 14 04:49:03 Agamemnus: search for description.. "Do not use irrelevant, misleading, or excessive keywords in apps descriptions, titles, or metadata. " Dec 14 04:49:04 TacticalJoke: that's probably because you need a lazy load maybe? Dec 14 04:49:31 napalm, but that still doesn't hel Dec 14 04:49:32 You can't lazily load the text when the user is trying to view it. :D Dec 14 04:49:33 let it return the view and set the text afterward if it is too long Dec 14 04:49:33 help Dec 14 04:49:38 Agamemnus: so in otherwords.. its a no no if those keywords are irrelevant, misloeading or excessive Dec 14 04:49:38 lol Dec 14 04:49:47 like is having a "keywords:" list excessive or not? Dec 14 04:50:01 TacticalJoke: yeah you can, just check the length, if it is longer than x, lazy load it or only load up to 200 characters and then lazy load it Dec 14 04:50:04 idk Dec 14 04:50:11 seems strange setText take so long Dec 14 04:50:16 It doesn't take very long. Dec 14 04:50:17 detect their eyeballs and load only where they stare Dec 14 04:50:28 I'm talking about scrolling a ListView as fast as possible and seeing the tiniest stutter. Dec 14 04:50:30 you can do that if they have front facing camera! Dec 14 04:50:30 Agamemnus: welcome to the world of "law" Dec 14 04:50:31 No sane user would notice it. Dec 14 04:50:37 But I'm looking under the microscope. Dec 14 04:50:37 napalm: google law :/ Dec 14 04:50:38 Agamemnus: just dont do it Dec 14 04:50:45 lol shmooz Dec 14 04:50:47 TacticalJoke: oh that may be cause are you using drawchingcacheenabeld? Dec 14 04:50:49 I know, I'll ask customer support YEY :D Dec 14 04:50:52 lol what did Agamemnus do now Dec 14 04:51:08 TacticalJoke: http://leftshift.io/6-ways-to-make-your-lists-scroll-faster-than-the-wind Dec 14 04:51:10 TacticalJoke: whats all this about hte length? whats the prob.. bob Dec 14 04:51:29 lasserix_: What is that? Dec 14 04:51:43 Napalm: I'm being OC and thinking about tiny stutters on huge comments. Dec 14 04:51:53 What is what? Dec 14 04:52:01 lasserix_: drawingcacheenabled Dec 14 04:52:04 eld* Dec 14 04:52:06 :D Dec 14 04:52:28 TacticalJoke: doesn't reddit have a complex hierarchical view? Dec 14 04:52:31 Agamemnus: bes mart about it, keywords list -> simple description list seperated by semicolons Dec 14 04:52:35 Napalm: For comments, yeah. Dec 14 04:52:41 didn't you ever write a paper in school? pad that Dec 14 04:52:53 TacticalJoke: read http://leftshift.io/6-ways-to-make-your-lists-scroll-faster-than-the-wind Dec 14 04:53:04 number 4 Dec 14 04:53:08 TacticalJoke: and your using a ListView? Dec 14 04:53:13 Napalm: Yeah. Dec 14 04:53:17 nuts Dec 14 04:53:20 Napalm: Why? Dec 14 04:53:48 lasserix_: Checking it out. Thanks. Dec 14 04:53:49 Napalm: thats wh yi was saying use a custom view but it's really just because it'd be (faster) but good for TacticalJoketo do Dec 14 04:53:53 anything more complex than a basic list of items is not worth pains of ListView Dec 14 04:54:02 Napalm: Are you suggesting RecyclerView? Dec 14 04:54:06 yes Dec 14 04:54:14 I'm finding ListView really easy so far, to be honest. Dec 14 04:54:20 And the app is performing really well. Dec 14 04:54:36 Of course, nesting is very easy to display: just have an indent. Dec 14 04:54:58 wait till concurrency bites you Dec 14 04:55:03 I can tell you now.. from many years of experience.. try and make that main view any more complex.. and your going to have issues Dec 14 04:55:05 why not commas Dec 14 04:55:15 More complex than what? Dec 14 04:55:19 lasserix_: Sure, that's what I want to do Dec 14 04:55:36 TacticalJoke: even unbounded textView heights can throw a spanner in the mix with ListView's Dec 14 04:55:49 TacticalJoke: as i said "than a basic list of items" Dec 14 04:56:02 " anything more complex than a basic list of items is not worth pains of ListView" Dec 14 04:56:05 I see. Dec 14 04:56:11 I think almost every Reddit client uses ListView, though. Dec 14 04:56:24 and its probably why they are all shit Dec 14 04:56:50 Napalm: why does recyclerview solve the problem? Dec 14 04:57:08 They're bad because they have awful UIs. Dec 14 04:57:15 its totally unbounded in its approach Dec 14 04:57:27 Such as wasting so much space that you get to see like three comments at a time on a small screen. Dec 14 04:57:30 he can portray the complex heirarchy with the padding lines Dec 14 04:57:57 Napalm: So far, I am returning a View containing three TextViews. It's working fine. Dec 14 04:58:03 It's simple; it's fast. Dec 14 04:58:08 I will definitely check out RecyclerView. Dec 14 04:58:11 But I can't move right now. Dec 14 04:58:17 Agamemnus: commas are not grammar correct. use semicolon like "This app does it all: enables ; promotes ; makes life ; finally, blah blah blah" that way it doesn't look like a list but just a overly fattened description Dec 14 04:58:25 TacticalJoke: don't let them derail you, continue what you were doing Dec 14 04:58:31 :D Dec 14 04:58:38 TacticalJoke: and then you can go back and try other ways Dec 14 04:58:43 Yeah. Dec 14 04:58:54 TacticalJoke: if you do.. check these blog posts out http://blog.stylingandroid.com/category/recyclerview/ Dec 14 04:59:06 Napalm: Just curious -- what did you mean by "unbounded TextView heights"? Dec 14 04:59:08 K. Thanks. Dec 14 04:59:11 Napalm: why does recycler view solve the problem? Dec 14 04:59:17 TacticalJoke: he means with many new lines Dec 14 04:59:26 a variable amount of them, Dec 14 04:59:34 \n stuff? Dec 14 04:59:35 a textview without maxLines or singleLine true.. and layout_height=wrap_content Dec 14 04:59:45 Hmm. What can go wrong? Dec 14 05:00:08 which device Dec 14 05:00:08 lol Dec 14 05:00:09 TacticalJoke: no if you have like lots of text you have to keep wrapping hence unbounded which causes problem because wrap content means layout pass happens again i guess Dec 14 05:00:20 Napalm: what is it about RecyclyerView that solves this problem? Dec 14 05:01:41 Part of why I didn't start with RecyclerView is that I heard it had a lot of new bugs. Dec 14 05:01:45 And it was so new. Dec 14 05:01:50 lasserix_: just imagine the control of ViewGroup to layout your views however you like.. with the simplicity of an adapter and also child views get recycled.. and bonus multiple RecyclerView's can share the same View pool.. meaning you can recycle views across pages in a ViewPager say Dec 14 05:02:37 So RecyclerView doesn't have problems with unbounded TextViews? Dec 14 05:02:55 i wish google did make the 80% case easier with recyclerview though, seems just doing basic stuff is pita Dec 14 05:03:28 oh naplam i see because of layout manager Dec 14 05:03:31 ahh that's pretty cool Dec 14 05:03:34 no, not really.. because layout doesnt work the same way. but it still depends on device.. Dec 14 05:03:38 TacticalJoke: no i dont think it'll solve the problem Dec 14 05:03:41 kindle/amazon compat is a bitch Dec 14 05:03:47 i copied the decorator from the samples to make listview like lines between items, the stupid thing was using all deprecated methods Dec 14 05:03:47 they fuck with TextView Dec 14 05:03:56 TacticalJoke: thats why i say use custom view because you won't have the problem you can compute the height upfront Dec 14 05:04:08 What is the unbounded-height thing, exactly? Dec 14 05:04:15 Does it relate to appearance? Dec 14 05:04:29 when a textview has to wrap the text it contains i believe it causes more layout passes? Dec 14 05:04:38 So the problem is lag? Dec 14 05:04:54 takes longer to do layout inflation yeah Dec 14 05:05:06 g00s: that was probably the beta decorator with the release recyclerview Dec 14 05:05:10 I see. Dec 14 05:05:22 g00s: i mean preview not beta Dec 14 05:05:28 TacticalJoke: make sure you set drawingcacheenabled or that scrollcache thing on that link is ent you, basically makes the scrollview cache the bitmap when scrolling instead of relayouting it out Dec 14 05:05:29 Maybe that's why really-long comments are slow. I dunno. (Then again, EditText.setText might be slow with long text.) Dec 14 05:05:42 In any case, the performance does seem good (on my devices, anyway). Dec 14 05:05:55 Okay. Still reading that. Dec 14 05:06:07 TacticalJoke: you're fine for now, like i said you should roll your own custom view class ultimatly just for kicks if no other reason Dec 14 05:06:39 Yeah. Dec 14 05:06:43 lasserix: inflation takes the same.. its the setText that takes forever because its more complicated to calculate the wrapping/text-bounds Dec 14 05:06:44 It seems like an appropriate thing to do. Dec 14 05:07:12 If I used a custom view, would there still be much reason to move to RecyclerView? Dec 14 05:07:23 yes Dec 14 05:07:26 I guess it might still be more appropriate in some ways. Dec 14 05:07:49 they should have just @deprecated ListView class Dec 14 05:07:57 RecyclerView is ListView2 Dec 14 05:08:04 + steroids Dec 14 05:08:06 :) Dec 14 05:08:32 Okay. lol Dec 14 05:08:41 g00s: I think google would have done themselves a favour if they made a ListView2 based off of RecyclerView with the same feature set. thats for sure. Dec 14 05:09:00 Making a custom view would still be useful if I eventually move to RecyclerView, right? Dec 14 05:10:20 Napalm yeah, they could have just at least given us some external helpers / samples on what they had in mind wrt Cursors, etc Dec 14 05:10:32 TacticalJoke: I suggest you do this http://blog.xebia.com/2013/07/30/a-better-custom-viewgroup/ Dec 14 05:10:38 as you showed before Dec 14 05:11:12 Yeah, I do that. Dec 14 05:11:14 you would have a RedditCommentView extends RelativeLayout or some such Dec 14 05:11:21 I meant custom drawing of text instead of using TextViews. Dec 14 05:11:27 bill phillips just did a basic RV blog http://www.bignerdranch.com/blog/recyclerview-part-1-fundamentals-for-listview-experts/ Dec 14 05:11:49 your actual RedditCommentView then becomes your "ViewHolder" and you can stop using that stupid pattern Dec 14 05:12:02 Yeah, I don't use ViewHolder (hate it). Dec 14 05:12:40 g00s: nope. i saw that.. so basic.. nothing great Dec 14 05:13:27 TacticalJoke: ps. the ViewHolder system RecyclerView uses. is not the same pattern you see in ListView per-se Dec 14 05:13:28 oh i like what they guy says in the commend Dec 14 05:13:36 "What about the next things:" :D Dec 14 05:13:42 9 things , lol Dec 14 05:14:20 Ah, okay. Dec 14 05:14:51 TacticalJoke i would think the item decorator could come in play in your comments Dec 14 05:15:19 So what does RecyclerView do different with regard to TextViews with unbounded heights? Does it lay them out more efficiently? Dec 14 05:19:56 TacticalJoke: nothing directly. but it gives you the flexiblity to work around any issues easily as compared to ListView which is just pain beyond belief. Dec 14 05:20:26 what is the reddit Android app promotion+discussion channel? Dec 14 05:20:28 er I mean Dec 14 05:20:33 subreddit Dec 14 05:20:36 I don't remember Dec 14 05:25:18 TacticalJoke: so what reddit client do you use on Android Dec 14 05:28:32 he uses telnet -- he's hardcore Dec 14 05:29:35 from emacs Dec 14 05:30:35 i was thinking of doing a little custom Reddit view Dec 14 05:30:44 using RecyclerView and all that jazz Dec 14 05:30:50 once I figure out their api Dec 14 05:32:59 Does anyone know where I can find a way to download the Verizon OVA containing N910VVRU1AJN5 to my Android 4.4.4 device? Dec 14 05:36:14 ahh cool rv vh handles click event Dec 14 05:36:24 Lann #android-root Dec 14 05:36:45 lasserix_: it doesnt by default.. but you could make it do that Dec 14 05:36:54 umm Dec 14 05:36:57 it does? Dec 14 05:37:03 if you look at that link g00s just posted Dec 14 05:37:05 thanks Dec 14 05:37:25 Napalm: RecyclerView.ViewHolder has method onClick you override Dec 14 05:37:47 lasserix_: "implements View.OnClickListener" Dec 14 05:37:47 lol Dec 14 05:37:53 "itemView.setOnClickListener(this);" Dec 14 05:38:02 its not built in.. he's making it do that Dec 14 05:38:10 but this is the thing.. its flexible Dec 14 05:38:19 :O shock horror Dec 14 05:39:57 oh oops Dec 14 05:39:59 well Dec 14 05:40:04 none the less its cool Dec 14 05:40:12 well i think so anyways cause that's what i was doing already ;p Dec 14 05:49:38 lasserix_: If I do custom text-drawing, is it easy to handle links? Dec 14 05:50:44 TacticalJoke: yes Dec 14 05:50:53 K. Dec 14 05:51:12 Napalm: Just curious -- what is it about RecyclerView that makes it faster for handling TextViews with unbounded heights? Dec 14 05:52:56 TacticalJoke: I already answered that earlier Dec 14 05:53:34 Oh. I must've missed it. Dec 14 05:54:29 Nothing in particular, but recyclerview has much much more Dec 14 05:54:45 in the same way you should move to AS you should probably move to RV ;p Dec 14 05:54:50 lasserix_: I was thinking: custom drawing could be WAY faster. Dec 14 05:55:02 Even this thing I did today is just creating a view for an indent. Dec 14 05:55:02 it probably would be Dec 14 05:55:08 TacticalJoke you started using AS/IJ yet ? Dec 14 05:55:09 I could so easily do that with a drawing offset. Dec 14 05:55:11 Not yet. Dec 14 05:55:16 TacticalJoke: yeah exactly Dec 14 05:55:25 lasserix_: BTW, RV seems to miss so many things (e.g., dividers). Dec 14 05:55:33 I don't think it'd be wise for me to move to it (at least now). Dec 14 05:55:36 You just add those to your views very simple Dec 14 05:55:54 Yeah, it's simpler even in principle (at least some of it is). Dec 14 05:55:56 If anyone has access to the verizon/sprint/att Over the air update N910VVRU1AJN5 (recently released) I will paypal money for the working file Dec 14 05:56:15 TacticalJoke: are you suggesting custom drawing would be way faster than RecyclerView? Dec 14 05:56:22 StingRay_: They're working on adding unit testing to Android Studio. I'll move then. :) Dec 14 05:56:26 When it's done. Dec 14 05:56:36 Napalm: No. Faster than showing TextViews. Dec 14 05:56:47 TacticalJoke: you can already use unit tests on Android Studio? Dec 14 05:56:48 Whether we're using ListView or RecyclerView. Dec 14 05:56:55 Not easily. Dec 14 05:57:25 I mean "JVM unit tests". Dec 14 05:57:38 I used the term "unit test" because that is what the AS developers are calling it. Dec 14 06:00:20 Lann: email FingFongFang https://forums.oculus.com/viewtopic.php?f=62&t=17585&start=40 Dec 14 06:09:19 TacticalJoke: you about? Dec 14 06:10:48 ffucckk.. I got a dead-pixel on my Nexus 9 Dec 14 06:10:51 :'( Dec 14 06:14:41 damn Dec 14 06:14:46 are you sure it's just not dirt Dec 14 06:14:52 its red :| Dec 14 06:15:03 just put it in water, and then set a flamethrower to it Dec 14 06:15:12 hmm Dec 14 06:15:13 then all the pixels will work the same :) Dec 14 06:15:17 im not sure now Dec 14 06:15:29 i cant see it.. but it was on the back bootload background.. Dec 14 06:15:31 reboot time Dec 14 06:16:11 yup i see it Dec 14 06:19:32 Never used tabs before but now i need them, what's the best way to implement? Dec 14 06:21:02 no idea, no idea Dec 14 06:21:08 https://android-arsenal.com/details/1/1105? Dec 14 06:21:11 https://android-arsenal.com/details/1/1105 ? Dec 14 06:22:13 looks ok Dec 14 06:22:32 so does anyone know how to download stock roms straight from Samsung without kies? Dec 14 06:23:56 gbit86: did you ask in #android-root or on #xda-devs Dec 14 06:24:18 I did earlier in root, I have not tried xda-devs Dec 14 06:24:20 thanks Dec 14 06:24:27 guess not does not support tabs Dec 14 06:24:51 gbit86: i think theres also #xda-developers Dec 14 06:25:37 Napalm: Ya. Dec 14 06:26:18 gbit86: no no Dec 14 06:26:36 gbit86: http://sammobile.com has what you might want Dec 14 06:26:47 but xda-developers links will likely work better Dec 14 06:26:59 especially if you have AT&T or Verizon phones. Dec 14 06:27:04 only the tmobile, I prefer the metropcs one Dec 14 06:27:33 had I known I would have used kies the moment I got this phone to make certain that restoring to stock would be possible. Dec 14 06:28:17 oh wow g00s see what you mean about realm.io they totally messed up by requiring NDK stuff Dec 14 06:29:17 How would someone use a custom view in a RecyclerView? Dec 14 06:29:39 The stuff I'm looking at all extends a RecyclerView.Adapter. Dec 14 06:30:09 Oh, I guess that class would wrap the custom view. Dec 14 06:30:27 g00s: know why they require you to build the jar? can't they just release the jar for mutliple platforms? Dec 14 06:31:10 gbit86: it is usually possible Dec 14 06:31:15 not 100.00% stock Dec 14 06:31:17 but 99.999% Dec 14 06:32:08 what is the complexity of a single query with an index Dec 14 06:32:15 is it O(n) or O(1) ? Dec 14 06:32:19 lasserix_: yea and realm also have some bloody horrible implementation Dec 14 06:33:03 lasserix_: two things i really dislike. the way you have to beginTransaction and then edit your model fields to get those changes in the transactions and second.. they Proxy EVERY model object Dec 14 06:33:04 ./r/upliftingnews has some of the most depressing stories I've ever read. Dec 14 06:33:07 It's almost a parody. Dec 14 06:33:35 TacticalJoke: what are you talking about custom view and recyclerview and wrapping? Dec 14 06:33:48 yes it is Dec 14 06:34:09 I'm thinking of replacing my code that uses multiple TextViews with a single, custom-drawn view. Dec 14 06:34:17 To be used in my ListView. Dec 14 06:34:33 s/code that uses// Dec 14 06:38:45 TacticalJoke: http://i.imgur.com/KcKoJpy.png Dec 14 06:38:57 they may look the same but they are not Dec 14 06:39:07 the top one is a TextView and the bottom one is my custom view Dec 14 06:39:28 idea was to have a SimplyFastTextView Dec 14 06:39:31 :) Dec 14 06:40:26 Nice. Dec 14 06:41:01 Napalm: stats? Dec 14 06:41:28 lasserix_: perf stats on the View? Dec 14 06:42:39 So I guess the key advantage of me moving to custom-drawing would be that the size is determine once, right? Dec 14 06:42:48 I can just determine the size; no messing around. Dec 14 06:42:53 yes Dec 14 06:42:55 K. Dec 14 06:42:56 read that article i sent you Dec 14 06:43:12 TacticalJoke: http://lucasr.org/2014/05/12/custom-layouts-on-android/ Dec 14 06:43:15 explains it all Dec 14 06:43:21 Ya. Still got it. I'll check it out. Dec 14 06:45:18 aye Dec 14 06:45:46 how much faster Dec 14 06:45:52 and then add a lot of text and how much faster? Dec 14 06:45:58 btw how did you wrap text in the custom view? Dec 14 06:46:14 with magic Dec 14 06:46:19 #;) Dec 14 06:46:30 i'll make it open source when im done Dec 14 06:46:43 Is wrapping hard? Dec 14 06:46:54 no Dec 14 06:47:56

Header 1

This is bold and italic and bold italic and nested bold italic and perhaps strike-through.
Dec 14 06:48:04 straight forward Dec 14 06:48:12 just works Dec 14 06:48:21 I mean wrapping when custom-drawing text. Dec 14 06:48:37 yes, obvious above no line break so its soft Dec 14 06:49:13 stats! Dec 14 06:49:30 also you should dump a lot of text, reduce font size: ie make it like what TacticalJoke needs it for Dec 14 06:49:34 so stats are real use cae ;p Dec 14 06:50:08 I like the idea of manually wrapping. Would be nice if I got to choose which characters are wrappable and which aren't. Dec 14 06:50:12 As long as it's not a huge pain. Dec 14 06:50:33 thats easy, Java already provides an interface for it Dec 14 06:50:51 http://developer.android.com/reference/java/text/BreakIterator.html Dec 14 06:51:35 Someone needs to create a custom view utils library Dec 14 06:51:37 Doh Dec 14 06:51:55 Nice. Dec 14 06:52:01 And that article even has examples. Wow. Dec 14 06:52:16 TacticalJoke: --> FlatCustomView ftw Dec 14 06:52:24 also going to add smooth text sizing Dec 14 06:52:30 Yeah, flatness is nice. Dec 14 06:52:37 ? Dec 14 06:52:45 so you can resize text and it smoothly gets larger and smaller Dec 14 06:52:55 you mean it animates text size changes? Dec 14 06:53:14 iOS dev's pissing me off.. "you cant do that on Android" I'm like yea you can.. just nobody does Dec 14 06:53:17 ugh Dec 14 06:53:21 I'll show em Dec 14 06:53:23 :D Dec 14 06:53:42 such as what? Dec 14 06:53:49 run binaries? Dec 14 06:54:00 share application databases? Dec 14 06:54:08 make app widgets? Dec 14 06:54:12 lasserix_: you talking to me? Dec 14 06:54:17 heh yeah Dec 14 06:54:25 no idea what your going on about Dec 14 06:54:36 i was being sarcastic since iOs is very limited in what it can do Dec 14 06:55:07 ios: no content providers, app widgets, can't run binaries etc etc Dec 14 06:56:03 Napalm: how fast is break iterator? someting to do async? Dec 14 06:56:17 yea, might do that Dec 14 06:56:40 I've not seen any issues so far.. but I've not put it to the test really Dec 14 06:56:56 I wanted to start by getting spannables working perfectly Dec 14 06:56:59 and links Dec 14 07:00:19 #android-root Dec 14 07:06:57 Napalm: how does RV handle multiple types? Dec 14 07:07:30 I need something like a preferences activity, but its not for preferences, so i am just curious whether i should look into implementing RV or just use my own scrollview Dec 14 07:07:43 lasserix_: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html#getItemViewType%28int%29 Dec 14 07:07:55 it pretty much says it all Dec 14 07:08:10 "Unlike ListView adapters, types need not be contiguous. Consider using id resources to uniquely identify item view types." Dec 14 07:08:30 you also have hasStableIds(); Dec 14 07:08:58 What does not need to be contiguous mean? Dec 14 07:09:10 contiguous in what sense? Dec 14 07:09:21 oh you mean 1 2 3 it can be 1 100 2 50 ? Dec 14 07:09:25 lasserix_: oh and if multiple RecyclerView's share the same RecycledViewPool then they id's are unique in that Dec 14 07:09:30 lasserix_: yes Dec 14 07:12:33 ahh so theoretically i can do a viewpager with two listviews using shared pool to do tabs? Dec 14 07:12:39 yes Dec 14 07:12:43 thats what i said earlier Dec 14 07:12:47 whats really cool about that Dec 14 07:12:55 no more GC all the time for views Dec 14 07:12:56 yay! Dec 14 07:14:28 nice Dec 14 07:14:32 where are the stats Dec 14 07:16:24 hg up main Dec 14 07:16:29 Dammit. Dec 14 07:16:38 Had tablet in one hand. lol Dec 14 07:16:39 argh can't believe i waited this long to init git Dec 14 07:16:48 Init git? Dec 14 07:16:56 init a git repo for my project Dec 14 07:17:30 Nowadays, I check in almost immediately, usually. Dec 14 07:17:35 Though it's hard to create meaningful changes at first. Dec 14 07:17:42 .gitignore! Dec 14 07:17:58 TacticalJoke: did you read this yet? http://www.kdgregory.com/index.php?page=java.refobj Dec 14 07:18:05 My repository has 45 changesets so far. Dec 14 07:18:11 I started around four weeks ago. Dec 14 07:18:14 http://www.hisdigital.com/us/product2-745.shtml Dec 14 07:18:19 oops Dec 14 07:18:21 Not a huge number. Hmm. Dec 14 07:18:30 bad other lasserix! Dec 14 07:18:32 Oh, no. Not yet. Dec 14 07:19:05 In fact, I started on Nov 14. Dec 14 07:19:08 It's Dec 14 here now. Dec 14 07:19:17 God, that is scary. Dec 14 07:19:20 11 days till Christmas. Dec 14 07:19:21 funny how spacetime works Dec 14 07:19:43 My first changeset is titled "Create project". Dec 14 07:19:49 I think it's just a bare-bones project. Dec 14 07:24:43 right, night all.. sun's coming up.. thats my queue to leave Dec 14 07:26:11 Haha. I'm a night owl too! Dec 14 07:26:44 wait what about the stats? Dec 14 07:26:54 how much faster in custom ondraw text for multiple lines!??! Dec 14 07:26:57 noooo Dec 14 07:27:20 going to keep me up all night, won't be able to sleep with that question hanging over my head like the sword of damocles Dec 14 07:28:31 Reddit must be freaked out by me. Dec 14 07:28:38 ? Dec 14 07:28:40 "Why does this guy read the same thread, over and over and over?" Dec 14 07:28:47 "Even with multiple clients." Dec 14 07:28:52 ovd Dec 14 07:28:54 Actually, it's quite obvious when you look at the user agents. Dec 14 07:29:07 Mine shows "/unreleased" at the end. Dec 14 07:29:16 I'll change it to /1.0 and so on. Dec 14 07:29:20 When it's released. Dec 14 07:36:45 Why is my list data automatically retained through orientations with a ListFragment? I have another Fragment, with a ListView, and it seems I need to put that data in onSaveInstanceState and onViewStateRestorted. HOWEVER, this would collide with the idea that I have to manually implement the list retention in the standard Fragment. Dec 14 07:37:24 I looked up the ListFragment source code and didn't see any magic in their instance state saving Dec 14 07:38:32 achuinard: Hmm. I wouldn't expect ListView to save its state. Dec 14 07:39:01 Oh, actually, the ListFragment is just reloading the data every time Dec 14 07:39:04 So it appears that way.... Dec 14 07:39:28 Well, it retains the scroll position Dec 14 07:39:29 so I'm not sure Dec 14 07:39:43 If it were reloading itself in the ListFragment, I'd think the scroll pos went back to top Dec 14 07:40:16 Yes, it should retain the scroll position. Dec 14 07:40:20 setretain is true? Dec 14 07:40:24 No, it won't go back to the top. Dec 14 07:40:37 If you simply have an ID for it in a layout file, it'll retain the scroll position. Dec 14 07:40:54 It's like how EditText remembers the selection. Dec 14 07:41:00 Though EditText also remembers the text. Dec 14 07:41:14 lasserix: setRetain is not true Dec 14 07:41:34 TacticalJoke: I'm confused how it'd save the scroll position given that the data is being reset Dec 14 07:41:58 Not sure, but I've read the code where it saves the scroll position, so I know it does. Dec 14 07:42:22 listview retains scroll position thru config change? Dec 14 07:42:26 It just.. saves it.. Puts it in a variable, reads that variable Dec 14 07:42:27 thought just onpause/onresume Dec 14 07:42:37 Yes, lasserix. Dec 14 07:43:41 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/AbsListView.java#1806 Dec 14 07:43:49 TacticalJoke: well, I'm actually loading my data in onCreate Dec 14 07:43:54 of the ListFragment Dec 14 07:44:06 and i believe that isn't called when fragment is recreated through orientation change Dec 14 07:44:27 so i'm doing it right there - and Android is nicely retaining scroll pos as well as data for me. great. Dec 14 07:44:45 so maybe i'm doing something wrong, my data should be retained through my fragment (which is right next to it) Dec 14 07:45:05 my fragment is right next to listfragment. lf behaves well, f is not retaining listview data Dec 14 07:45:52 hi? Dec 14 07:46:16 i am sending values via intent extra but the values dont get updated. Dec 14 07:47:04 the first values is sent fine but when i send a second value, a retrieve gives me the first value. Dec 14 07:47:07 would using a navigation drawer where configuration options (just simple titles) are listed, such that when clicked the drawer closes, and the content of the main updates to load the config details for that option, with a preview of the resulting change underneath be better than like a list in the main content with a dialog popping up that contains the details/preview? Dec 14 07:47:17 gmg85: Maybe pastebin code. Dec 14 07:47:18 SimonVT: do you have any advice on this? Dec 14 07:47:21 achuinard: I'm confused about what you're asking. Dec 14 07:47:57 TacticalJoke, basically values in intent.putExtra are not getting updated. Dec 14 07:49:23 e.g i have an intent i then I add an int i.putExtra("comment_id",1); Retrieving the comment id value works the first time....then i go a head and set another comment id....e.g i.putExtra("comment_id",2). Dec 14 07:49:39 retreiving comment id for the second time gives me 2 instead of 1 Dec 14 07:50:39 correction Dec 14 07:50:46 gives me 1 instead of 2 Dec 14 07:51:04 TacticalJoke: is onCreate supposed to be called in fragment when host activity has orientation change? Dec 14 07:52:11 Not sure, but I wouldn't expect it to be called. The Activity retains its FragmentManager (which keeps hold of the Fragments). Dec 14 07:52:28 mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll Dec 14 07:52:30 oops Dec 14 07:52:32 no suggets? Dec 14 07:52:56 TacticalJoke: the fragment's onCreate is being called when I rotate the screen. this is why the data is appearing to be retained, since I load it through sharedPrefs in onCreate() Dec 14 07:53:09 this is the listfragment Dec 14 07:53:15 lasserix_: your question didn't really make sense to me Dec 14 07:53:24 Yes, fragments are recreated along with the Activity Dec 14 07:55:07 SimonVT: Thanks Dec 14 07:55:18 TacticalJoke: thank you, too. think i got it figured it Dec 14 07:55:20 figured out Dec 14 07:55:57 Okay, so it a normal preference activity there's a list of options. You either click something in the row, or clicking the row a dialog pops up and you set the option. INSTEAD i wanted to use a navigation drawer to list the titles of the options, when an option is clicked the main content of the layout is updated for that configuration option (ie, it's settings like if its a color chooser it'll present the color chosing mechanism) Dec 14 07:55:57 with the finished result (as a preview at the bottom) Dec 14 07:56:31 the preview is a customized view that takes up to no greater than a quarter of the screen height and generally matches the screen width Dec 14 07:56:44 did i phrase it better? Dec 14 07:56:46 so it sounds like you should have 2 fragments for your main screen Dec 14 07:56:51 gmg85: Can you post some code? Intent.putExtra(String, int) calls Bundle.putInt(String, int), which should replace any original value. Dec 14 07:56:57 the top one will be dynamic as the nav drawer options are clicked Dec 14 07:57:11 no fragments but continue Dec 14 07:57:14 and the bottom one will be a live view of whatever your current state is Dec 14 07:57:22 Actually, it calls BaseBundle.putInt(String, int). Dec 14 07:57:28 well, it would be uglier, but you could use a ViewFlipper Dec 14 07:57:29 instead of fragments Dec 14 07:57:30 achuinard: yeah that's the idea Dec 14 07:57:33 no Dec 14 07:57:40 no fragments, i dont use them anymore Dec 14 07:57:46 i said ViewFlipper Dec 14 07:57:47 TacticalJoke, came across this http://stackoverflow.com/questions/19529965/intent-extras-remain-the-same-even-when-updated it might help let me try it... Dec 14 07:57:58 i won't use viewflipper but that's not the question Dec 14 07:58:26 my question is if the nav drawer idea is better or worse than the conventional way Dec 14 07:58:48 the whole reason is that sometimes the configuration details can be a little complicated and the live preview is necessary Dec 14 07:58:56 ahhh ok Dec 14 07:59:06 maybe you should consider putting the nav drawer on the right side of the screen Dec 14 07:59:21 i think the design guidelines recommend app-wide nav on the left and screen-specific options on the right? Dec 14 07:59:28 well that's just a detail, my question is is the nav drawer a bad idea to begin with? Dec 14 07:59:41 achuinard: this is settings for a keyboard Dec 14 07:59:50 so the standard stuff kind of is non applicable Dec 14 08:00:04 but anyways is the nav drawer a bad idea to begin with? Dec 14 08:00:07 i like the live preview Dec 14 08:00:10 i think this is not a bad idea Dec 14 08:00:20 it's your app though Dec 14 08:00:42 you think this is a better idea than just a listview with popup above a live preview? Dec 14 08:00:51 with popups Dec 14 08:01:19 TacticalJoke: any input? Dec 14 08:01:30 ok so live preview either way Dec 14 08:01:46 do you have to swipe more to keep opening the drawer Dec 14 08:01:47 Sorry, I missed most of it. Dec 14 08:01:49 the listview might be faster Dec 14 08:01:52 Messing around with sizes and stuff. Dec 14 08:01:59 Personally, I dislike navigation bars. Dec 14 08:02:12 TacticalJoke: its not for naviation tho Dec 14 08:02:32 Okay, so it a normal preference activity there's a list of options. You either click something in the row, or clicking the row a dialog pops up and you set the option. INSTEAD i wanted to use a navigation drawer to list the titles of the options, when an option is clicked the main content of the layout is updated for that configuration option (ie, it's settings like if its a color chooser it'll present the color chosing mechanism) Dec 14 08:02:32 with the finished result (as a preview at the bottom) Dec 14 08:02:39 (repost) Dec 14 08:02:45 *in a Dec 14 08:03:18 howdy all Dec 14 08:03:27 alternatively i could do a thing where each row expands when you click on it Dec 14 08:03:29 sarbs: just about to implement that persistancy fix you helped figure out Dec 14 08:03:38 I didnt get a chance to say thanks the other day Dec 14 08:03:56 hmm maybe that's the best, each row expands with the details, and moves to the align its top to the top of screen Dec 14 08:06:51 My brain has given up. Dec 14 08:06:57 I can't even picture stuff anymore. Dec 14 08:07:23 TacticalJoke: youve been at it a long time Dec 14 08:07:25 take a break Dec 14 08:07:27 smoke a joint Dec 14 08:07:29 drink a beer Dec 14 08:07:33 watch the simpsons Dec 14 08:07:46 :) Dec 14 08:07:56 I didn't even leave the house today. Dec 14 08:08:02 That's how motivated I am to finish this project. Dec 14 08:08:14 Actually, for the most part, I just wanna get it usable. Wanna use it every day. Dec 14 08:08:28 I literally spent all day doing this. How sad is that? Dec 14 08:08:39 not sad at all Dec 14 08:08:42 lol Dec 14 08:08:55 My life was completely different two months ago. It's a weird world. Dec 14 08:08:56 do you do android work for a living? Dec 14 08:09:09 Nah. Work in finance. Dec 14 08:09:19 oh u an accountant Dec 14 08:09:21 I'm not sure whether I'd wanna program for a living. Dec 14 08:09:25 Basically. lol Dec 14 08:09:41 I like programming being my hobby only. Dec 14 08:09:53 Though doing it for pay might also be awesome. I just don't know Dec 14 08:10:01 . Dec 14 08:10:12 well, making 50-100$ an hour is nice Dec 14 08:10:19 Yeah. Dec 14 08:10:42 espicially if you can get a list of returning clients to freelance for Dec 14 08:10:49 Do you do it for a living? Dec 14 08:11:07 then you can roll down to the beach cafe, program a couple hours and make more than the people working their do in a ocuple weeks Dec 14 08:11:08 yeah Dec 14 08:11:15 i hate working for clients Dec 14 08:11:23 Nice. Dec 14 08:11:33 I want to work on a project with ever expanding scope Dec 14 08:11:36 Yeah, clients must suck. Dec 14 08:11:53 working on personal projects is more fun Dec 14 08:11:59 but its hard to think of awsome ideas Dec 14 08:12:05 lasserix_ knows how to deal with clients. :D Dec 14 08:12:11 Buttons should retain enabled state on fragment rotate, no? Dec 14 08:12:22 What determines whether or not a view state is maintained Dec 14 08:12:34 I used to work for a CEO, and every message he e-mailed he set the "high priority" e-mail flag on Exchange or whatever the hell it was Dec 14 08:12:43 One way of checking is looking for onSaveInstanceState in the source for the class. Dec 14 08:12:44 theres a list somewhere but achuinard its usually the basic UI state Dec 14 08:13:01 you don't need awesome ideas Dec 14 08:13:12 you do if you want your apps to sell Dec 14 08:13:21 Excellent execution of existing ideas can put you in the black Dec 14 08:13:29 ^^^^^^ Dec 14 08:13:38 yeh true execution is as important as concept Dec 14 08:13:47 so many garbage apps out there Dec 14 08:13:48 Ologn: whhat does that mean? Dec 14 08:13:49 do it right do it nice Dec 14 08:13:59 it means find an app say i can do this better and do it Dec 14 08:14:09 lasserix_, look at the popular apps, make a version that does what they do but is good Dec 14 08:14:14 Button doesn't seem to override onSaveInstanceState. Dec 14 08:14:14 so many garbage apps out there because app developers afraid to make their apps not for free Dec 14 08:14:25 TacticalJoke: thank you for looking it up Dec 14 08:14:31 I have two apps each making $1000+ this month on ads Dec 14 08:14:32 Ologn: in black is good thing orbad thing? Dec 14 08:14:41 lasserix_, red is bad, black is good Dec 14 08:14:45 oh ok Dec 14 08:14:48 It extends TextView, which doesn't seem to remember its enabled state. Dec 14 08:14:57 red: debt, black: profit Dec 14 08:15:42 Actually one app will probably make over $2000+ this month on ads Dec 14 08:15:53 TacticalJoke: who decided what retains Dec 14 08:15:53 mind mentioning which apps? Dec 14 08:15:54 heh Dec 14 08:16:22 Ologn: that's my idea: want to make at lest 2k on my ow apps per month Dec 14 08:16:32 Ologn: how many unique users do you have every day? Dec 14 08:16:43 im making my first app/game... i will be happy if it makes £100 a month Dec 14 08:16:52 lasserix_, the probable $2000+ for this month is https://play.google.com/store/apps/details?id=com.panaceasupplies.android.reader Dec 14 08:17:33 lasserix_, the other one has someone else involved so that's under wraps currently...it deals with sound though... Dec 14 08:18:14 Ologn: you had to make ereader free because of where you get source material? Dec 14 08:18:26 Ologn: ah np thanks for sharing first one Dec 14 08:18:29 lasserix_, for a few reasons Dec 14 08:18:38 that is one of the reasons tho? Dec 14 08:18:39 lasserix_, actually I sell some books from that too Dec 14 08:18:49 lasserix_, but ads are like 98% of revenue Dec 14 08:18:55 ahh you are smart to make it multilanguage Dec 14 08:18:59 that's key i think these days Dec 14 08:19:17 lasserix_, sure. I was making lots of money in Holland but blocked it there. Dec 14 08:19:28 Ologn: one hell of a title ;p Dec 14 08:19:47 with a PriorityBlockingQueue, is it better to use a Comparator at construct time or to holds Comparable items ? Dec 14 08:19:56 I am not sure if the two are equivalent Dec 14 08:20:02 get your books off gutenberg or something? Dec 14 08:20:08 lasserix_, well hitting the big keywords is important. Also, I'm true to the keywords, it does do those things. Dec 14 08:20:12 lasserix_, mostly Dec 14 08:20:17 Marlinski: comparator probably Dec 14 08:20:44 lasserix_, I made over $1200 from Holland in the past year with that app but had to block Holland Dec 14 08:20:51 lasserix_: any idea why, or is it just a random guess ? :) Dec 14 08:21:14 Marlinski: probably doesn't matter but interfaces tend to be slower Dec 14 08:21:26 alright Dec 14 08:21:35 lasserix_, have you done any apps of your own? I don't mean heavy efforts, but like messing around as well? Dec 14 08:22:07 Marlinski: also http://stackoverflow.com/questions/2266827/when-to-use-comparable-and-comparator read first comment, sounds like you a specific use case therefore comparator Dec 14 08:22:27 thank you Dec 14 08:22:33 Ologn: i have a whole stack of nearly finished apps, two of which I'd release after a major refactor i made while learning android Dec 14 08:23:12 have one in the store for the company i worked for--mostly works but their tek we used was kinda buggy so there are some problems (i have an update in the works but since i am no longer being paid by them it's low priority) Dec 14 08:23:31 just finished one for a client hat will go on the store soon and am working on a keyboard as my active project Dec 14 08:26:21 My projects tend to fit in two categories: things which won't make money in any conceivable short term, and things which can make money but are very boring and I have to flog myself to write them Dec 14 08:28:42 heh 20% time Dec 14 08:32:41 Anyone able to send a json object using Volley? Dec 14 08:33:23 I passed in the params as well as overrode getParams() and still nothing received at the server (android gets response though) Dec 14 08:35:52 Ok, this is pretty strange. Why is it that when I make a replace transaction on fragment A with fragment B, then if I hit back on fragment B, my ListView data is there but my ViewFlipper is back to child position 0 Dec 14 08:37:18 achuinard: grep the source and see what sets onSaveinstancestate as TacticalJoke recomended Dec 14 08:38:10 well I already got things working fine through saveInstanceState methods for activity rotation / fragment recreate Dec 14 08:38:23 so I'd expect the behavior to be the exact same when fragment gets replace and then comes back through a back button press Dec 14 08:38:58 rdnt can you do get with success from the server? Dec 14 08:39:11 achuinard: no Dec 14 08:39:22 recreate calls ondestroy replace does not Dec 14 08:40:36 lasserix: i can but not easily, there are lots of params to send. Dec 14 08:40:49 I found a work around to try: http://stackoverflow.com/questions/19837820/volley-jsonobjectrequest-post-request-not-working?lq=1 Dec 14 08:51:25 hey all Dec 14 08:51:46 anyone gotten android 5.0 avd running with play store installed/working? :) Dec 14 08:51:55 feel free to PM me if youd prefer Dec 14 08:54:15 lasserix_: Do you know whether setting TextView.maxLines to an arbitrary value (e.g., 100) would help with performance? Dec 14 08:54:22 Napalm|afk seemed to say something like that earlier. Dec 14 08:55:02 What I might do, actually, is set a max length for long comments (and show an ellipsis or something). Dec 14 08:55:21 This would probably help performance and also avoid that annoying issue where someone has posted a monster comment and it takes ages to scroll past it. Dec 14 08:55:38 The user could tap the comment to expand it (whereafter tapping reverts to the normal behaviour: collapsing threads). Dec 14 08:59:35 TacticalJoke: probably Dec 14 08:59:40 not sure tho Dec 14 08:59:41 maybe not Dec 14 08:59:46 the key Dec 14 08:59:52 is not to use wrap height Dec 14 09:00:07 i believe, not sure tho Dec 14 09:00:27 K. Dec 14 09:00:51 Ahhh tactical Dec 14 09:00:55 setText causes ToString Dec 14 09:01:53 TacticalJoke: http://stackoverflow.com/questions/10804436/simple-textview-settext-causes-40-cpu-usage Dec 14 09:01:53 Oh, I'm giving it strings in the first place. Dec 14 09:02:55 Interesting. Dec 14 09:29:05 help Dec 14 09:29:08 what does this mean? Dec 14 09:29:09 http://flyingsoft.pw/dpa23d.png Dec 14 09:30:26 it means you are filtering on DP23D Dec 14 09:30:45 no Dec 14 09:30:50 look at the grey square Dec 14 09:30:59 what does that mean?? Dec 14 09:31:04 I'm unable to remove it Dec 14 09:31:16 I think it's not supported because it's wifi only. Dec 14 09:31:18 And yet. Dec 14 09:31:29 I got a rating on it. So wtf. Dec 14 09:31:56 you changed something? Dec 14 09:32:20 it always required internet access. Dec 14 09:32:45 well Dec 14 09:32:48 it works without it. Dec 14 09:32:53 But there's a nag screen. Dec 14 09:33:17 but why is someone with an unsupported device able to install my game Dec 14 09:33:24 see the dropdown says: Dec 14 09:33:44 supported devices Dec 14 09:33:46 all devices Dec 14 09:33:51 unsupported Dec 14 09:33:54 manually excluded Dec 14 09:33:57 Agamemnus: because they sweettalked the play store into serving them the apk? Dec 14 09:34:08 The DP23D is unsupported Dec 14 09:34:20 And to top it off. They gave me 1 star out of 5. Dec 14 09:35:08 so respond saying that it's an unsupported device, so they shouldn't have been installable? Dec 14 09:36:25 That's useless. But I did email Google Play Dec 14 09:36:32 They're pissing me off so much lately Dec 14 09:36:34 Google I mean Dec 14 09:36:55 they didn't give a review, by the way. just a rating Dec 14 09:37:15 I decided to use google's ridiculous system for downloading my rating data Dec 14 09:37:22 and found all the ratings and user names Dec 14 09:37:51 DPA23D I meant Dec 14 09:38:42 everyone who rated my game a 3 or below are on a hit list Dec 14 09:38:57 news at 11.. Dec 14 09:39:04 hacker arrested for forming hit list.. Dec 14 09:41:43 their system is ridiculously slow by the way Dec 14 09:42:08 a minute to download 10kb of data Dec 14 09:44:08 Agamemnus: if they rooted they can change some files on their device that let them bypass restrictions Dec 14 09:44:19 uhuh Dec 14 09:44:21 makes sense Dec 14 09:44:39 in fact there's an app for it! http://codekiem.com/2013/02/13/market-helper/ ;p Dec 14 09:44:46 what doesn't make sense is google not checking whether or not they can post a review Dec 14 09:45:34 I wonder if some kid downloaded my game Dec 14 09:45:39 and his father rooted it Dec 14 09:45:42 or what Dec 14 09:45:53 or is it malicious... how are we supposed to test for this shit Dec 14 09:46:24 I have weird behaviour with comparator on PriorityBlockingQueue Dec 14 09:46:42 does using a Comparator avoid the need to have Comparable object ? Dec 14 09:47:05 so I just need to implement compare(T obj1, T obj2) right ? Dec 14 09:47:05 i mean, ok, so let's just test every permutation of incompatible phone Dec 14 09:47:14 or even let's just test every freaking phone Dec 14 09:47:19 out of 7000+ Dec 14 09:47:29 ,_, Dec 14 09:47:46 well, that is my rant for tonight Dec 14 09:47:48 later Dec 14 09:49:10 Marlinski: yes Dec 14 09:49:38 hmm it behave very weirdly Dec 14 09:53:01 why doesnt the android keyboard have tab key Dec 14 09:53:25 also DroidEdit text editor doesnt display tabs in text files Dec 14 09:53:54 weird Dec 14 10:24:08 my TreeSet behave well if the comparator but the same implementation with a PriorityBlockingQueue gives me total non sense on the ordering Dec 14 10:24:55 if im making a game which has no animations, just icons and static images. i shouldnt need opengl right? Dec 14 10:27:36 hi folks. Please help me make Android studio see my smartphone: http://fpaste.org/159573/ Dec 14 10:28:32 slidecrank: install drivers, toggle connection mode on phone from media/MTP to camera and back otherwise dunno Dec 14 10:28:34 njcomsec: yep Dec 14 10:28:57 thanks lazer Dec 14 10:31:31 lasserix, what drivers? I'm on Linux. I have "USB debugging" enabled on the phone. What else am I missing? Dec 14 10:32:06 and where do I change connection mode? Dec 14 10:37:28 when I connect the phone, it displays "usb debugging connected" at the same time I see this on my desktop: "IQ4417 Quad Open with files Eject" Dec 14 10:40:50 what OS are you on? Dec 14 10:41:07 oh orry i see linux Dec 14 10:41:22 yeh linux has a lot of problems with drivers Dec 14 10:42:55 when i was using ubuntu i had to install some extra library for mtp support Dec 14 11:25:47 I'm trying to identify which letter in a TextView was touched using getLineForVertical and getOffsetForHorizontal, but it's off by half a character. I've tried subtracting padding, and reading the location on a separate thread - no difference. Any trick I should know about? Dec 14 11:44:34 i have a relativelayout containing two view: A => align to top left, with 100dp width, and B right of A, width "match_parent" as width (in order to fill the rest of the screen). When I change A's width, B is stretched. I would like B to have a fixed width, and have a part of it "out of the screen". Is it possible ? Dec 14 12:04:27 blusky: yes Dec 14 12:26:56 hi is there something i have to change to debug on lollipop? i do not see any logcat but the device shows up in adb Dec 14 12:48:10 ktwo: Not as far as I know, did you try running adb logcat in a terminal? Dec 14 12:48:52 logcat read failure: No such file or directory Dec 14 12:52:13 ktwo: That's not normal, what does it say after that? Dec 14 12:52:28 device disconnected - but it isnt, i can still browse the device via windows explorer Dec 14 12:52:41 for me it sounds like something is wrong with the sdk Dec 14 12:52:52 and system/bin/logcat is there Dec 14 12:53:05 i can even open it with a text editor (but its gibberish but i guess its normal) Dec 14 12:54:17 interesting, I've never had any issues with logcat on L Dec 14 12:55:22 i have the s4 with custom GPE rom (it was released some days ago) maybe something is wrong with that.. Dec 14 14:09:31 whats the way to select block then function etc in IJ? Dec 14 14:18:51 I still cant create 2 equal columns table layout Dec 14 14:33:03 can anybody say what Im doing wrong when I want just 2 columns to be equals, independently on its content: https://gist.github.com/878fb3183466e577e760 Dec 14 14:41:14 Hello, please how to update firmware on a GT90H baidu tablet? Dec 14 14:41:25 google Dec 14 14:41:38 baidu actually Dec 14 14:41:49 already googled but rare model Dec 14 14:42:01 baidu is in japanese and I dont anderstand Dec 14 14:42:19 I have one img file Dec 14 14:42:30 and I can ener the e3 rcovery Dec 14 14:42:59 I renamed the img file update.zip, like this the recovery see it, but nothings update Dec 14 14:43:03 ekinox001: Try #android, this channel is for app dev Dec 14 14:43:10 #android-root Dec 14 14:43:20 thank you Dec 14 14:45:08 hey guys anyone android studio being really sluggish on mac? Dec 14 14:49:22 hert, nop Dec 14 14:49:47 SimonVT Did you take down that torrent client of your's from play store? Dec 14 14:50:50 i'm experiencing long delay between typing and word showing on screen or even deleting a letter or just moving cursor around Dec 14 15:16:18 hert,What you mean? Dec 14 15:17:03 android studio is really sluggish sometimes practically non responsive Dec 14 15:20:01 hert: buy more ram Dec 14 15:20:21 hert, hmm, what's your machine? Dec 14 15:20:22 am at 16 Dec 14 15:20:33 hert, do you have gradle daemon running? any strange heap settings? Dec 14 15:20:40 CPU use? Dec 14 15:20:46 mac mini 2.66 Dec 14 15:21:13 grade takes over 1mn run is that normal? Dec 14 15:22:23 depends. Dec 14 15:23:43 Mavrik you are o na mc too? Dec 14 15:23:51 yes Dec 14 15:24:34 hert,I got mac to Dec 14 15:25:41 seems i'm theonly with this Dec 14 15:29:02 i've reinstalled twice since yesterday no change Dec 14 15:32:13 how can I share a file using apps like (dropbox, drive,...) in android? Dec 14 15:35:28 hert,what about the hardrive? Dec 14 15:35:38 just a thought Dec 14 15:36:09 i run an ssd Dec 14 15:36:19 how can I share a file using apps like (dropbox, drive,...) in android? Is there any sample code ? Dec 14 15:37:11 hert,really i thinking of upgrade to one. Dec 14 15:40:36 Hi all I have an unusual problem, I am using the latest version of android studio with all updates on ubuntu 14.04 lts 64 bit, even after shutting down the ide my system is very sluggish to the point of being unusable an the only option is a reboot, has anyone experienced this or have a solution? Dec 14 15:45:30 DrDroid: hi, I'm using the latest version of android too, I'm running Arch Linux 64 bit Gnome shell and I not have your problem Dec 14 15:46:35 DrDroid: haven't had the problem. look at 'top' and see what is eating resources. Dec 14 15:47:03 htop is more cool :) Dec 14 15:47:48 The only other thing that I can think of is vlc media studio which I use to listen to music whilst I code :-) Dec 14 15:51:51 DrDroid: check the process with system monitor, top or htop Dec 14 15:52:13 of course thanks Dec 14 15:53:26 I'll be back Dec 14 15:53:37 DrDroid: ok, I only learn English Dec 14 15:53:52 ? Dec 14 15:55:07 DrDroid: I just want to learn English writing so much Dec 14 15:56:41 Should I switch to Android Studio? Are there any downsides now that it's a 1.0 release? Dec 14 15:56:49 I've been using Eclipse ever since I started learning Java Dec 14 15:57:05 even in beta Android studio was better than eclipse Dec 14 15:57:28 so yes you should Dec 14 15:57:39 Okay Dec 14 15:57:51 It's easy to transfer projects, right? Dec 14 15:58:07 i havnt tried Dec 14 15:58:25 it shouldnt be hard Dec 14 15:58:41 liuwenhao: design is better in android studio Dec 14 15:59:40 konarr do you know if I can just drag and drop my file structure into an Android Studio workspace? Or will I need to go through the export wizard in Eclipse Dec 14 16:01:15 liuwenhao: mm i don't know Dec 14 16:01:55 I don't work in Eclipse Dec 14 16:02:51 Well I only have one project that needs to be imported so hopefully it works easily. Just waiting for Android Studio to download now Dec 14 16:03:38 liuwenhao: cool Dec 14 16:05:36 hi all Dec 14 16:05:40 keep your old sdk Dec 14 16:05:47 AS doesnt come with one anmore Dec 14 16:06:44 I'm using ADT, and I'm wondering why my logcat behaves strangely, when logs scroll to the top, it erases itself Dec 14 16:09:00 zoraj_: I think that logcat is a circular buffer Dec 14 16:09:33 so it has a specified amount of memory and when you write more, the begining of the buffer is discarted Dec 14 16:09:56 is there any way to set this amount of memory ? Dec 14 16:10:37 http://i.imgur.com/RLnrrJQ.png Which options should I be choosing? Anyone have an idea? Dec 14 16:10:54 googling http://stackoverflow.com/questions/6321555/what-is-the-size-limit-for-logcat Dec 14 16:11:07 seems that there is no way to set the memory size Dec 14 16:11:17 ok t hanks Dec 14 16:11:24 but you can log everything down to a file :) Dec 14 16:11:29 Hi! How can I get the rotation of the device in body coordinates? I believe TYPE_ROTATION_VECTOR gives the orientation in global coordinates. Dec 14 16:11:46 kozko2001, how can I log it into a file ? Dec 14 16:11:53 hm.. let me google that :) Dec 14 16:11:58 thx anyway Dec 14 16:12:03 see see the post on so Dec 14 17:40:02 So... for a hobby project, what is the least painful setup with AS that isn't Java 7 or Scala? Kotlin/Ceylon? Does AS even allow for those, or is IJ required for that? Dec 14 17:41:32 flan3002 kolin seems pretty easy Dec 14 17:42:06 you can also try kawa. i's like to know more about ceylon too Dec 14 17:42:25 i think the xtend guys are working on intellij support also Dec 14 17:42:38 g00s: The language does look easy, but have you tried using it with the SDK and AS? Dec 14 17:42:51 and of course, you can do groovy Dec 14 17:42:59 I know how to get along with Java, but... I don't want to. Dec 14 17:43:02 flan3002 i did, i was very easy - just add a plugin to build.gradle Dec 14 17:43:14 but i didn't really do anything with it Dec 14 17:43:29 Kawa looks sweet. Dec 14 17:43:31 Hi there, I have an ArrayList of an object Cat that I want to list on ListView, each row there is two cats, Dec 14 17:44:02 my pb is that the adapter show the number of item on ArrayList Dec 14 17:44:24 whereas it should be divided by 2 because there is 2 items on each row Dec 14 17:44:47 you have 2 cats in Cat? Dec 14 17:45:08 no, I have two cats in each row of ListView Dec 14 17:45:14 g00s: Thanks, g00s. I guess Kotlin will be my first try, because of its relation to Jetbrains... Dec 14 17:45:45 Ashiren, whereas the adapter looks at the ArrayList count Dec 14 17:46:09 flan3002 JakeWharton has been messing around with it, maybe you can hit him up for more info Dec 14 17:46:34 zoraj_: yes, what did you expect Dec 14 17:46:36 g00s: I'll do, if I hit problems that I can't solve. :) Dec 14 17:47:24 Ashiren, let's say I have 50 cats, that should be listed on a ListView, I put it on an ArrayList and pass it on the adapter which contains 2 columns that showing 2 cats for each row Dec 14 17:47:46 so my listview should have 25 rows in final Dec 14 17:47:47 ahh columns.. Dec 14 17:48:11 yep :) Dec 14 17:48:42 so each row has ustom xml, which is basically 2 columns? Dec 14 17:48:56 yes you got it :) Dec 14 17:49:01 just on getCount return arraylist.size() /2 Dec 14 17:49:06 and on getview Dec 14 17:49:31 get your items by .get(2*position) and .get(2*position+1) Dec 14 17:51:33 thank you, I didn't know about this Override method Dec 14 17:58:39 I want a bar at the bottom of my home screen that when slid upwards starts a new activity and the new activity appears in the space below the bar that is being slid up. Is there a way to do this? Dec 14 17:58:53 Im not even sure what to google/search developer site with Dec 14 18:02:56 Is there any way to automatically identify with user/pass when joining freenode? Dec 14 18:11:16 Poor Rayne. Will there be a service? Dec 14 18:49:43 hey y'all Dec 14 18:49:59 still trying to get google play services/play store working on a 5.0 avd Dec 14 18:50:03 if anyone can help at all Dec 14 18:50:16 feel free to pm me if you prefer, I don't mind at all :> Dec 14 19:25:59 hi all, I'm trying to figure out if it's possible for an app to inspect other apps' user interface (view hierarchy), if the app has system permissions. Any clues? Dec 14 19:26:27 this channel is empty on sundays Dec 14 19:27:15 bilb_ono: weird. developers haven't social life. Dec 14 19:27:48 maybe they're playing bf4 Dec 14 19:28:13 gdrc, haha thats what Im always hoping. but I'm wrong most sunday mornings :p Dec 14 19:28:28 probably all of clubbing or something Dec 14 19:32:43 hi there, is it possible to swipe out a row within a ListView, then it won't be removed but just change something on it ? let's say the background colour or the row being swiped? Dec 14 19:33:00 of the row* Dec 14 19:33:02 of course it is. Dec 14 19:33:35 ok thx Dec 14 19:33:55 zoraj, see the Google I/O talk about listview animations Dec 14 19:34:07 use the code for removing the items just... don't remove them :P Dec 14 19:34:53 mavrik, ok, well I think the first I have to search now is how to handle swiping then I will look at what you are talking about after, Dec 14 19:35:21 zoraj, https://www.youtube.com/watch?v=YCHNAi9kJI4 Dec 14 19:35:26 someone here needs a quick response about it but I had no idea about swiping, that's why Dec 14 19:35:28 step by step is here. Dec 14 19:35:40 Mavrik, cool ! thanks Dec 14 19:35:44 let me look at that Dec 14 19:35:45 you just omit the whole collapse and delete part :) Dec 14 19:35:51 okey Dec 14 19:36:44 Hey guys, colored status bar should work on API 19? Dec 14 19:37:27 ArcaneWater, there's no colored status bar per-se on API 19 Dec 14 19:37:32 ArcaneWater, only transparent one Dec 14 19:37:46 but SystemBarTintManager library can fake it for you Dec 14 19:38:29 Mavrik worth using lib ? Dec 14 19:38:31 hello Dec 14 19:38:38 ArcaneWater, your call Dec 14 19:39:01 So by default only Lolipop API Dec 14 19:39:06 you make it sound like using a lib is painful :P Dec 14 19:40:00 Mavrik hah :) Nah but i dont feel like using lib for this since at lolipop is default :D Dec 14 19:45:33 hmm, there's the way it should be done, and then there's the way it has to be done :\ Dec 14 19:49:55 lollipop api doesn't have tinted translucent bars Dec 14 19:49:57 annoying Dec 14 19:50:08 if you want them colored, they will be solid Dec 14 19:50:11 lollipoop Dec 14 19:51:05 lol-lie-poop Dec 14 19:51:29 loli poop Dec 14 19:51:33 :e Dec 14 20:00:14 Hi. I'm not a dev at all, but I had a question I think you guys can help me with: in 5.0 (on the Nexus 4 and Nexus 6), I've noticed that there's no /proc/last_kmsg created after a reboot; either random or user-specified. Is this by design, or a bug? Is there another way I can determine why a reboot happened? Dec 14 20:00:57 no idea, but are you rooted? Dec 14 20:01:04 the bars could still be tinted with the library though Dec 14 20:01:27 lasserix: Are you here? Dec 14 20:01:32 prdxg, try android root Dec 14 20:01:35 not here Dec 14 20:01:44 Agamemnus, yeah Dec 14 20:03:43 don't know Dec 14 20:08:31 my vision is coming back, yay Dec 14 20:13:51 hello, why I'm getting this error http://paste.ubuntu.com/9519559/ (oracle-java8-installer is installed) when I try to run a project? Dec 14 20:14:33 slani, because you installed a JRE> Dec 14 20:14:51 slani, the error message is telling you pretty clearly you need a JDK Dec 14 20:18:30 Mavrik: I thought tath sudo apt-get install oracle-java7-installer install java JDK and JRE) Dec 14 20:21:45 Is there such a thing as a slider that opens up into a new activity (when you slide it)? What would this be calleD? Dec 14 20:22:25 bilb_ono: nav drawer Dec 14 20:23:28 shmooz, that seems to be good for menus. I want one that slides from the bottom and opens up another app's activity in the process. Is this still the thing to use? Dec 14 20:23:49 probably Dec 14 20:24:16 bilb_ono, you want to drag a whole activity in as a user interation? Dec 14 20:26:22 bilb_ono: that's how you start google now , so it would conflict with that Dec 14 20:26:39 Mavrik, yeah I want it to drag in the default photo gallery with an intent Dec 14 20:28:07 bilb_ono, yeah, that' won't work :/ Dec 14 20:28:10 bilb_ono, you can animate it in Dec 14 20:28:29 but you can't control views from another activity in your own Dec 14 20:31:02 Mavrik, really? I can already get a button to do it with this: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("content://media/internal/images/media")); Dec 14 20:31:13 I just want it to be a sliding drawer thingy, not a button you press Dec 14 20:31:28 "do it?" Dec 14 20:31:42 you can get a button to control where another activity is drawn without stopping code in your activity? :) Dec 14 20:32:22 ahh you're right about the starting google thing though shmooz Dec 14 20:32:50 Mavrik, well when I press that button in my app, it loads the photos in my "photos" application Dec 14 20:33:10 not sure if thats what you mean? Dec 14 20:33:45 my app is crashing but not showing a stacktrace or anything like it Dec 14 20:33:51 anyone know what would cause something like that? Dec 14 20:33:56 I was using getHandler() but I removed that code. Dec 14 20:41:46 I am using ViewPager with Xamarin. I have a handler set to the Click event, but the event arguments are simply of type "EventArgs". How do I get the view from that? Dec 14 20:42:25 snooplsm: You probably need to post code or something. Dec 14 20:44:29 hi Dec 14 20:45:19 TacticalJoke: I don't want to burden you guys.... Dec 14 20:45:22 let me commit to github Dec 14 20:46:30 snooplsm: Most of the time, it /does/ show a stacktrace or else, but you just oversee it. Make sure you don't filter it from your logcat... Dec 14 20:47:15 i'm doing a raw logcat Dec 14 20:48:02 i figured it out Dec 14 20:48:02 snooplsm: And you read all of it? Dec 14 20:50:05 flan3002: yea Dec 14 20:50:12 https://github.com/snooplsm/happyschedule/blob/master/libraries/library/src/main/java/us/wmwm/happyschedule/fragment/ChatFragment.java Dec 14 20:52:11 do you have to remove all Log.d calls before you release an app on play store? Dec 14 20:53:13 ChrisUK: no, but for your users sake and performance you should Dec 14 20:53:44 You can use proguard to do this: Dec 14 20:53:45 https://github.com/snooplsm/happyschedule/blob/master/libraries/library/proguard-project.txt Dec 14 20:53:54 make sure you are also using optimize from android-project-optimize.txt Dec 14 20:54:24 log.d has a big performance hit? Dec 14 20:55:25 String generation + outputting to the system, yea Dec 14 20:55:44 are you proguarding your app? Dec 14 20:56:08 no Dec 14 20:56:11 what does it do Dec 14 20:56:19 shrinks the size of your application Dec 14 20:56:22 obfuscates your code Dec 14 20:56:31 and it can optimize your code too Dec 14 20:56:35 remove code that doesn't do anything Dec 14 20:56:56 is it a good idea to obfusticate java code? Dec 14 20:57:20 every little bit helps Dec 14 20:57:28 it is easy to reverse engineer? Dec 14 20:57:32 yea Dec 14 20:57:33 or decompile? Dec 14 20:57:34 ChrisUK: I don't know whether it's a good idea. It comes with complications. Dec 14 20:57:47 everything is reversible, if someone wants to break your app they can Dec 14 20:57:53 For example, if you're using onClick="whatever", you have to configure ProGuard not to remove that "whatever". Dec 14 20:57:56 my code is already obfusticated ;) Dec 14 20:58:33 look for something called dex2jar Dec 14 20:58:36 then install jd-gui Dec 14 20:58:44 and you can basically look at all the code Dec 14 20:59:20 of any installed android app? Dec 14 21:00:39 yea Dec 14 21:00:40 I decompiled one of my apps. Got almost exactly the same source code back. Dec 14 21:00:53 well my code isnt that exciting Dec 14 21:01:07 proguard does help with optimization though Dec 14 21:01:15 obfuscation is only needed if you want to hide sanything. Dec 14 21:03:27 how does it optimize the code? Dec 14 21:03:31 Why tablet emulator not recognize layout in layout-sw600dp folder?Why tablet emulator not recognize layout in layout-sw600dp folder? Dec 14 21:03:59 hi Dec 14 21:04:03 hi Dec 14 21:04:14 i need 5 million for my startup AngelInvestor777 Dec 14 21:04:19 haha Dec 14 21:04:33 i'm sure :) Dec 14 21:05:03 better give me one, than lose 5 to his project Dec 14 21:05:21 how are you doing guys Dec 14 21:05:24 We have 5 users, so only 1 million per user. Dec 14 21:05:28 hows the day Dec 14 21:05:39 snooplsm: only - i see. lol. Dec 14 21:05:41 Day sucked, played gta v toolong Dec 14 21:05:45 is that including a discount Dec 14 21:05:53 ok could be worse though Dec 14 21:06:08 what about lottery apps - everyone buys an ap for $10. the winner gets 50% of the loot Dec 14 21:06:27 it's a wonderful idea Dec 14 21:06:30 the problem is Dec 14 21:06:33 and probably illegal Dec 14 21:06:38 deos apple allow such apps? Dec 14 21:06:42 does * Dec 14 21:06:44 I think the play store and gov't will shut that down before you can place a winner Dec 14 21:06:46 I'm running this test opengles application https://developer.android.com/training/graphics/opengl/index.html on a real device but the triangle and square are not displayed. I can only change the background colour. What could be the problem? Dec 14 21:06:50 real question is: do govts allow such apps Dec 14 21:06:51 It is called ponzi Dec 14 21:06:51 yeah exactly Dec 14 21:06:53 no, they don't Dec 14 21:07:12 but it's a good idea i can't say i haven't heard someone mention such an idea to me before Dec 14 21:08:25 snooplsm: too much GTA V will turn you into Trevor Dec 14 21:08:57 too much cocaine will turn you into trevor Dec 14 21:12:40 For performance reasons, I'm thinking of creating a class that lays out views manually (instead of using a LinearLayout or whatever). Is it possible to get good performance with something like this? Dec 14 21:12:57 My child views are four TextViews. Dec 14 21:13:01 i'm not sure i'd bother vs. relative Dec 14 21:13:04 Okay. Dec 14 21:13:16 My other option is to do custom text drawing (which sounds like it'd definitely be faster). Dec 14 21:13:22 I strongly suspect that falls into optimizing the wrong stuff Dec 14 21:14:00 My bottleneck is probably TextView.setText causing measurement-releated lag. Dec 14 21:14:04 related* Dec 14 21:16:09 it only needs to be faster if you're detecting lag Dec 14 21:16:24 on a slow device Dec 14 21:16:26 well i am here looking for a few serious UI/UX developers or seasoned professional graphics developers. i need to perform some paid graphics work on skinning a new application i have recently invested into, but i am not happy with the graphics that have been placed on the application. please private message me or query me if you are looking for work and fit the requirement. thanks. Dec 14 21:16:53 TacticalJoke: nested linearlayouts? Dec 14 21:17:00 Yeah, snooplsm. Dec 14 21:17:18 shmooz: A little on a big screen. It's not a big deal, though. Dec 14 21:17:31 Yea it is sort of a pain. Remove the weighted lienarlayouts from the top and you are good. Dec 14 21:17:44 This is a ListView row. Dec 14 21:17:51 Variable-height TextViews. Dec 14 21:17:58 you can do something like getViewTreeObserver().setOnGlobalLayoutListener and then resize the children and then remove the globallayoutlistener Dec 14 21:18:02 I'll probably end up using custom text-drawing. Dec 14 21:18:22 but remove the observer, otherwise you have the same problem as weighted Dec 14 21:18:30 Googling that. Dec 14 21:18:32 custom text-drawing is a pain in the ass Dec 14 21:18:36 have you looked at textview's source? Dec 14 21:18:41 Does anyone have an S3 mini or S4 mini Dec 14 21:18:49 Not yet. Dec 14 21:18:53 or let's see Dec 14 21:19:36 7040N, SGH-T999L, SAMSUNG-SGH-I257, GT-I8190, SM-G900T Dec 14 21:19:46 does anyone have any of these and can test my game for 2 min Dec 14 21:20:06 snooplsm: This is for a Reddit client. Ideally, my ListViews would scroll with no lag whatsoever. Dec 14 21:20:15 In reality, there is sometimes a tiny stutter with some really long posts. Dec 14 21:20:27 It's worse on my tablet (because the screen is bigger). Dec 14 21:20:52 yea, do you have a listview in a linearlayout with a weight? Dec 14 21:20:52 Most users won't notice it, I guess. But of course I can't help but notice it. lol Dec 14 21:21:08 No weight in the case I'm thinking of. Dec 14 21:21:08 my game is failing on multiple devices Dec 14 21:21:17 I think the issue relates to TextView resizing. Dec 14 21:21:18 TacticalJoke: don't bother asking us, you already know what you're gonna do ;) Dec 14 21:21:23 or people are just extremely stupid Dec 14 21:21:29 fragmentation sucks Dec 14 21:21:35 shmooz: True, but my idea could be terrible. lol Dec 14 21:21:38 when i dealt with the tablets for "At Bat", we had that problem. Turned out there was some decimal rounding that kept resizing and measuring the views. Dec 14 21:21:38 does anyone have an S5? Dec 14 21:22:07 yes Agamemnus Dec 14 21:22:14 TacticalJoke: if you see a faster way, do it the faster way Dec 14 21:22:19 i chose G3 over S5 Dec 14 21:22:25 hey can you test my game real quick? I also have some ideas about your graphics problem :) Dec 14 21:22:27 yeah i have g3 and s5 Dec 14 21:22:32 I mean faster performance, not faster coding Dec 14 21:22:37 Agamemnus i can sure why not Dec 14 21:22:38 Yeah. Dec 14 21:22:41 what is there to test ? Dec 14 21:22:46 I don't mind complex code if there's some real performance benefit. Dec 14 21:22:53 I hate it when there's no real benefit. Dec 14 21:22:55 AngelInvestor777, xposed + g3 tweaksbox -> victory Dec 14 21:22:55 I PMed you Dec 14 21:23:49 TacticalJoke: simple way to test it is to make the text view have fixed height, then ellipsize... Dec 14 21:24:41 Hmm, yeah, I tried that. I actually seemed to get the same lag with a fixed height if the height was a high number. Dec 14 21:24:57 But with extremes such as maxLines="1" I got way better performance. Dec 14 21:25:43 There's a good chance I'll limit the height regardless. It's annoying when someone's written a huge comment you have to scroll past. Dec 14 21:25:55 Then present some kind of button to view the remainder of the comment. Dec 14 21:26:12 (But it'll allow a large number of lines before it kicks in.) Dec 14 21:26:51 lasserix: Another idea I had was writing some kind of view that instantiates its own TextViews and lays them out manually. Dec 14 21:27:13 Did you set height of just the comment textview or the row itself? Dec 14 21:27:19 lasserix: But I don't know whether that would improve upon the performance of something like LinearLayout. Dec 14 21:27:29 Oh, just the TextView. Dec 14 21:27:33 Why make a reddit client? Aren't there like 40 of them? Dec 14 21:27:44 snooplsm: I haven't found one I like. Dec 14 21:27:47 Despite trying about 12. Dec 14 21:27:49 TacticalJoke: listView.seScrollingCacheEnabled(false); Dec 14 21:27:56 TacticalJoke, LinearLayout is very fast Dec 14 21:28:05 TacticalJoke, are you sure it's linearlayout that's taking a long while? Dec 14 21:28:08 Yea, thats why I made my own scheduling app, couldn't find one I like. Dec 14 21:28:17 Mavrik: I'm not sure, but I think it relates to TextView.setText. Dec 14 21:28:28 TacticalJoke, well, setText triggers alot of stuff Dec 14 21:28:42 TacticalJoke, so do run a profiler, it's probably the reflow calculation that's expensive Dec 14 21:28:52 that's why you're seeing performance boost with lines= parameter Dec 14 21:29:02 TacticalJoke: listView.seScrollingCacheEnabled(false); Dec 14 21:29:12 I'm just saying that if you do your own view and TextView layout is slow you're not going to improve on performance :) Dec 14 21:29:25 lasserix: Yeah, I tried that. Didn't notice much of a difference, but I have those tabs open to investigate further. Dec 14 21:29:28 dont listen to him Dec 14 21:29:33 Mavrik: Yeah, that makes sense. Dec 14 21:29:43 Mavrik: I'm also thinking of custom text-drawing. Dec 14 21:30:20 TacticalJoke: since you can branch it easily just do it both ways and compare the speeds Dec 14 21:30:25 hmm Dec 14 21:30:32 shmooz: That's the awesome thing about revision control. :D Dec 14 21:30:38 and then we'll see who was right Dec 14 21:30:49 I'll try to give lasserix stats if I do that. Dec 14 21:30:58 or if the lag was caused by what you thought it was caused by Dec 14 21:31:08 Laying out the custom-draw view 1,000 times versus laying out the LinearLayout 1,000 times. Dec 14 21:32:08 Mavrik: Yesterday, Napalm was saying it's crazy to use ListView for a Reddit client. Do you agree? Sounded a bit extreme to me. Dec 14 21:32:11 TacticalJoke: http://martinadamek.com/2011/01/05/performance-of-android-listview-containing-textviews/ Dec 14 21:32:14 Especially since RecyclerView has only *just* come out. Dec 14 21:32:46 lasserix_: Oh yeah. That's the last link I looked at before falling asleep. lol Dec 14 21:32:48 I don't like recyclerview Dec 14 21:33:03 TacticalJoke, RecyclerView is just a ListView with saner and more flexible API Dec 14 21:33:04 hello other lasserix! Dec 14 21:33:10 hello! Dec 14 21:33:15 it's not inherently slower or faster. Dec 14 21:33:18 Mavrik: K. Dec 14 21:33:33 Yeah, I would be surprised to see better performance here with RecyclerView. Dec 14 21:33:33 actually it is inherently faster since it forces you to use viewholder Dec 14 21:33:34 TacticalJoke, but I'm not sure why ListView would be crazy for a reddit client, Dec 14 21:33:43 Seems that the bottle neck is not the view; it's something relating to layout out the TextViews. Dec 14 21:33:55 but yes, as lasserix linked, it seems that ellipsis / linebreak calculation is the bottleneck for setText() Dec 14 21:34:19 K. Dec 14 21:34:26 TacticalJoke: you can just wait for Naplan to finish his library project Dec 14 21:34:42 lol Dec 14 21:34:50 Well, I won't optimize this for a long time, probably. Way too much else to do. Dec 14 21:34:58 So if he releases something magical I'll take note. Dec 14 21:35:19 that's like offshoring procrastination to another procrastinator Dec 14 21:35:20 can someone test my app out? Dec 14 21:35:28 The performance is more than acceptable right now, IMO. This is just me obsessing over details. Dec 14 21:35:34 lol shmooz Dec 14 21:35:40 I want to test chat, it requires facebook though. Dec 14 21:36:01 nice try zuckerberg. Dec 14 21:36:08 I don't even have Facebook. ;o Dec 14 21:36:13 I think I'm one of about 12 humans. Dec 14 21:36:27 Even cats and dogs have their own pages, from what I've seen. Dec 14 21:36:52 Though those pages seem suspiciously human-created. Dec 14 21:36:57 jokes on you, you have a fb page Dec 14 21:37:01 you just don't know about it Dec 14 21:37:04 my dog had his own page Dec 14 21:37:12 I thought of that the other day, leiux. That'd suck. Dec 14 21:37:27 courtesy of Zuck's generosity Dec 14 21:37:38 populated with all the data scraped from all the sites with FB integration Dec 14 21:37:39 my dog was a cutie pie tho Dec 14 21:37:40 https://scontent-a-lga.xx.fbcdn.net/hphotos-xfp1/t31.0-8/1655673_1493262024295843_2304506578426906170_o.jpg Dec 14 21:37:50 wonder if that wouldbe legal since creating a database of people whoa re not yet signed up wouldn't be that difficult Dec 14 21:37:51 Aww. lol Dec 14 21:37:52 is his name coffee cup? Dec 14 21:38:03 his name was catdog Dec 14 21:38:11 lasserix_not illegal, i think linkedin did this at one point Dec 14 21:38:15 Looks like a chihuahua crossed with one of those other little dogs. Dec 14 21:38:21 Dog looks like he needs some coffee Dec 14 21:38:22 With a furry little dog. Dec 14 21:38:37 i think he was a chihuahua with japanese chin Dec 14 21:38:43 Right. :) Dec 14 21:38:48 yea, his favorite thing to do was sleep Dec 14 21:38:55 Did he pass away? Dec 14 21:39:03 no, he got adopted Dec 14 21:39:17 lasserix, they call those "shadow profiles" Dec 14 21:39:21 Ah, okay. Dec 14 21:39:24 and yes, they have them :) Dec 14 21:39:54 I should have adopted him but I wasn't sure if I could handle it. Dec 14 21:40:02 It's a big commitment. Dec 14 21:40:04 Fostered this guy recently: https://plus.google.com/photos/107341867814816119255/albums/6056718813230022449 Dec 14 21:40:22 snoop my dogs name is jakedog Dec 14 21:40:38 why jakedog? Dec 14 21:40:41 What breed is that? Dec 14 21:40:46 You adopt dogs from rescue till theyare adopted by someone permenantly? Dec 14 21:40:53 Looks like a mix between X and Y where I can't remember X. :D Dec 14 21:41:00 well it was jake but that sounded too human, so we called him jakedog Dec 14 21:41:03 snooplsm would have called him let me guess, snoop doggy dog Dec 14 21:41:07 A wild cat appears. Dec 14 21:41:22 * literallycat is domesticated Dec 14 21:41:23 TacticalJoke: that was a shiba inu Dec 14 21:41:25 :D Dec 14 21:41:29 Shiba! That's it. Dec 14 21:41:36 The doge thing. Dec 14 21:41:58 I just foster dogs, normally they are abandoned. Catdog was a stray in los angeles, griffin (shiba), his family moved to japan. Dec 14 21:42:37 "Catdog" sounds slightly terrifying. Dec 14 21:42:51 it's a kids cartoon... Dec 14 21:42:57 Oh, never seen. Dec 14 21:43:14 It is slightly terrifying. Dec 14 21:43:28 What the human centipede guy worked as a trial expirment Dec 14 21:43:31 what does a catdog do, chase it's own tail endlessly ? Dec 14 21:43:35 A lot of kids' shows are surprisingly scary. Dec 14 21:43:54 snooplsm do you remember every dog you fostered? Dec 14 21:43:58 God, Human Centipede. The first wasn't too bad, but the second... Dec 14 21:44:02 or just remember certain ones? Dec 14 21:45:43 I only fostered 2. In April I moved into my first apt that allowed dogs. Dec 14 21:46:12 ah i see Dec 14 21:46:31 I've never had a dog; have always wanted one. Dec 14 21:47:29 get a lab Dec 14 21:47:38 Labs must be awesome. Dec 14 21:47:46 Though I read they have so much energy. Dec 14 21:47:56 not really, they sleep a lot Dec 14 21:48:08 I always been scared of pitbulls but the ones I see at the parks and stuff with a proper owner are the most loyal Dec 14 21:48:29 I might upgrade to more troubled dogs after the new year. Dec 14 21:48:30 Some pits are gorgeous. Dec 14 21:48:40 I like Staffodshire Bull Terriers a lot. Dec 14 21:48:43 Staffordshire* Dec 14 21:48:51 right now the shiba inu rescue has a steady supply and they go after a few weeks. Dec 14 21:49:09 Shiba owners could get loads of Reddit karma. Dec 14 21:49:20 I like the way Bull Terriers look Dec 14 21:49:21 aren't they very hard to take care of? Dec 14 21:49:32 snooplsm: are you in japan ? Dec 14 21:49:32 my last one tried running away twice. Dec 14 21:49:34 My dad's friend has a couple of pitbulls. He says they're a nightmare. Dec 14 21:49:36 Constantly challenging him. Dec 14 21:49:45 shmooz: i'm in nyc Dec 14 21:50:13 oh, shiba inu sounds japanese ? do they send them to japan ? Dec 14 21:50:25 I think they are japanese breed. Dec 14 21:50:27 *inserts joke about restaurants* Dec 14 21:51:23 I wonder how a dog compares to a cat. Used to have a really nice cat. Dec 14 21:51:33 ok Dec 14 21:51:34 I'm guessing a dog is basically a more-fun cat. Dec 14 21:51:35 anyone else Dec 14 21:51:39 S5, S3 mini, S4 mini Dec 14 21:51:47 TacticalJoke: they are harder to care of than cats Dec 14 21:51:49 hi, I'm testing an application which uses the camera on Nexus 5, and it seems the picture always comes out too white. When using the native camera this problem doesn't occur. This also doesn't happen on Nexus 4. What could be causing this? Dec 14 21:51:52 AngelInvestor777 disappeared Dec 14 21:52:16 TacticalJoke: you have to take them for walks and pick up their poops and wash their coat with shampoo and stuff Dec 14 21:52:17 I have the s5 at work Agamemnus Dec 14 21:52:22 Ya. Dec 14 21:52:29 TacticalJoke: with cats you don't have to do any of that Dec 14 21:52:30 I see Dec 14 21:52:38 need it now though but thanks for the offer Dec 14 21:52:46 Shibas you only need to clean up poop, they can clean themselves but if they run around in shit, i guess that would warrant a shampooing. Dec 14 21:52:50 unless you're at work :D Dec 14 21:52:56 shmooz i have to take my cat for walks Dec 14 21:53:08 lol lasserix Dec 14 21:53:20 Don't cats want to be independent and go out alone? Dec 14 21:53:28 I didn't go to work today, should have. Dec 14 21:54:00 We have coyotes in the area, so after 3 run ins i walk him Dec 14 21:54:45 I see. Dec 14 21:56:36 if I wanted to start a gallery activity with a certain folder passed in the intent, would ACTION_VIEW or ACTION_GET_CONTENT be more appropriate Dec 14 21:58:49 S5, S3 mini, S4 mini -- can anyone with any of these give me 3 minutes of their time Dec 14 21:59:05 ? Dec 14 21:59:38 Hi all :) Dec 14 22:01:58 I have a problem with Fragment/AsyncTask and Interface... I want to put the result of an AsyncTask into a FragmentView . Some website are talking about creating an interface.I tried it but i think i missed some things .. :/ Dec 14 22:03:35 btor: so how can we help Dec 14 22:08:38 is it an expected behavior that startActivityForResult with an ACTION_SENDTO Intent (built with Intent.createChooser) takes several seconds to display the apps chooser? (on a fresh and high-end device) Dec 14 22:09:45 Napalm, My code doesn't work, i have a null pointer exception. I'm new on java and Android, i'll put the code Dec 14 22:11:22 slmb do you have a lot of apps installed on your device? Dec 14 22:12:13 leiux, no, but there seem to be ~10 installed apps that declare a sendto intent Dec 14 22:12:31 (10 plus the default ones) Dec 14 22:13:26 Fragment : http://pastebin.com/g511hygW /// AsyncTask : http://pastebin.com/5mZgdzX3 /// Interface : http://pastebin.com/SPJFxcNU /// MainActivity : http://pastebin.com/wr0RGreR Dec 14 22:13:31 but that's almost a fresh install with the usual, viber, whatsapp, twitter, ..., so it looks like a pretty common scenario Dec 14 22:13:53 what yall think of my design? https://www.youtube.com/watch?v=vKy7LR1Ac5s Dec 14 22:14:17 Error : http://pastebin.com/stU4ty88 Dec 14 22:15:01 btor: Generally, people will appreciate if you put all relevant code into /one/ gist. Dec 14 22:15:13 flan3002, Oh .. sorry :/ Dec 14 22:15:25 Don't excuse, do it better next time. Dec 14 22:15:48 flan3002, i'll thank's for the warning :) Dec 14 22:16:10 btor: check line 42 of http://pastebin.com/g511hygW you dont pass the interface in in the constructor Dec 14 22:16:39 snooplsm, you should pick an other refresh/switch double-arrow icon Dec 14 22:16:39 Napalm, Ok i'll check Dec 14 22:16:53 slmb: what ya recommend? Dec 14 22:17:02 it is a switch icon but yea Dec 14 22:17:06 it is from the old design Dec 14 22:17:31 hi i am here looking for a few serious UI/UX developers or seasoned professional graphics developers. i need to perform some paid graphics work on skinning a new application i have recently invested into, but i am not happy with the graphics that have been placed on the application. please private message me or query me if you are looking for work and fit the requirement. thanks. Dec 14 22:17:54 Napalm, thank you for watching my code ! Dec 14 22:17:59 any other one, this one doesn't look good Dec 14 22:20:09 is anyone working on any tv apps? Dec 14 22:21:46 btor: new Targets().execute(argsTargets); to new Targets((GetResultInterface)getActivity()).execute(argsTargets); Dec 14 22:22:25 I got the error: https://gist.github.com/snooplsm/aec29cbdd5b488f6cdda Dec 14 22:24:00 Napalm : Eclipse saying "the constructor(GetResultInterface) is undefined" Dec 14 22:24:10 Targets(GetResultInterface) Dec 14 22:25:08 btor: get rid of void from line 27 in http://pastebin.com/5mZgdzX3 Dec 14 22:26:35 Damn .. Napalm, i love you Dec 14 22:27:16 Thank's a lot ! it works ! Dec 14 22:34:16 how difficult is it to build an android app where you can pin locations on a google map? Dec 14 22:34:30 and what if i only want to show my apps pins on the map and no other pins? Dec 14 22:35:56 AngelInvestor777, you there dude? Dec 14 22:35:56 look at the maps api; it has a mechanism for putting arbitrary drawables on a mapview. Dec 14 22:37:07 what usb 3.0 devices are there? Dec 14 22:39:41 snooplsm: you don't really expect us to answer that Dec 14 22:46:43 If I have a LinearLayout like [fixed-width view] [view that fills the remaining space], I can set the width to match_parent for the second and it works. Can I rely on this behaviour? Dec 14 22:47:17 If I have the opposite -- [view that fills the remaining space] [fixed-width view] -- that doesn't work. I need to use layout_weight (which I think is slower). Dec 14 22:48:04 Is it okay not to use layout_weight in the first case? Dec 14 22:50:10 I'm using gradle to build an example Android app but I'm getting errors saying it cannot find some of the dependencies from bintray. Is this a common issue? What can I do about it? Dec 14 22:53:42 Actually, would there be a difference? Dec 14 23:12:47 spuz, need to add bintray as a repo for gradle to search Dec 14 23:13:14 pfn, the error is: Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/21.0.2/support-v4-21.0.2.pom ... etc Dec 14 23:13:22 TacticalJoke, you can't rely on that behavior Dec 14 23:13:27 K. Dec 14 23:13:34 match parent is the same size as oarent Dec 14 23:13:37 There are 4 missing dependencies and each one says it searched in bintray Dec 14 23:13:37 parent Dec 14 23:13:38 As far as I can tell, using layout_weight seems just as fast. Dec 14 23:13:50 it might look like it's correct, but it isn't Dec 14 23:13:51 so I assume that bintray is already in a list of repos for gradle to search Dec 14 23:13:54 Okay. Dec 14 23:14:09 spuz, support libs aren't uploaded to public repos Dec 14 23:14:16 spuz, run SDK manager and download Android and Google repositories Dec 14 23:14:17 TacticalJoke, text views look correct with short text, etc Dec 14 23:14:25 spuz, + support libraries 21.0.2 :) Dec 14 23:14:35 (or fix dependencies to whatever you have) Dec 14 23:14:42 spuz, support lib isn't in a public repo Dec 14 23:14:44 only local Dec 14 23:17:04 Mavrik, I don't see an option to download Android and Google repositories Dec 14 23:46:55 after switching to android-studio, I'm having issues to use proguard with project modules Dec 14 23:47:17 it seems as if proguard is run independently on the module first, then the project Dec 14 23:53:18 if i want to have a viewpager populating three tabs with gridviews, would it be better to have them simply inflate those views or to have a fragment for each gridview? im going to be using recyclerview, and i need to load images into the cards, probably using picasso Dec 15 00:02:36 What's the best way to store money data in the sqlite database. I'm just taking the values I want to store, multiplying them by 1000 (giving an accuracy to the thousands place) and storing them as ints. Dec 15 00:02:41 ? Dec 15 00:04:43 string ? Dec 15 00:05:29 String seems weird, because then I'd always have to have some way of knowing how I stored it. Dec 15 00:05:43 guess the same with int. Dec 15 00:05:55 why not go a step further and render them as jpgs and store them in binary blobs =) Dec 15 00:06:01 BigDecimal takes a string anyway I guess. Dec 15 00:06:40 int seems better i guess because if I'm going to be doing calulations with them i don't have to convert them, i can do the calculations with ints Dec 15 00:06:57 with string i'd have to convert it to some number format first Dec 15 00:07:04 oddalot, you're working with sqlite, right? Dec 15 00:07:08 correct Dec 15 00:07:45 oddalot, what you're doing sounds pretty sane then. Dec 15 00:08:16 woah, first time i've ever heard that, thanks Dec 15 00:08:21 oddalot, you might ask #sqlite or even #sql though. Dec 15 00:08:47 yeah, good call Dec 15 00:09:21 oddalot, well, some databases support decimal types explicitly. near as i know, sqlite doesn't. https://www.sqlite.org/datatype3.html shows the base types values are stored in. i think there isn't much more to it than that. Dec 15 00:09:34 oddalot, under "type affinity" Dec 15 00:10:14 yeah, think Strings and ints are the only thing you can store in androids version Dec 15 00:17:36 oddalot: one currency or multiple currency types? Dec 15 00:17:40 no Dec 15 00:17:47 sqlite supports real integer text blob Dec 15 00:18:29 what kind of database doesn't support real numeric type? Dec 15 00:18:33 no database at all Dec 15 00:19:36 what do you mean by currency types? Dec 15 00:19:57 pesus dollars liras etc etc Dec 15 00:20:09 anyways doesn't matter Dec 15 00:20:14 you can just store your stuff as a real Dec 15 00:20:29 (a real is decimal type_ Dec 15 00:21:20 lasserix, it will record one tenth correctly? Dec 15 00:21:43 oh, just US dollars for now. Dec 15 00:21:49 yeah Dec 15 00:22:02 what kind of databases have you used? Dec 15 00:22:02 But maybe one day the app with expand into those other markets. Dec 15 00:22:23 then you just add another column as int which you can do a map to currency type but anyways Dec 15 00:22:29 I'm not very good with SQL, but i've used mysql, sqlite, and postgresql in the past Dec 15 00:22:43 but i'm using whatever android uses now, sqlite Dec 15 00:22:48 or their version of it Dec 15 00:22:56 its not their version Dec 15 00:22:59 its sqlite 3 Dec 15 00:23:05 ahhhh Dec 15 00:23:06 same version of sqlite everyone uses Dec 15 00:30:43 woah, i just realized you can unsubscribe from emails. This has opened up a whole new world for me. Dec 15 00:36:19 oddalot, you what now? Dec 15 00:36:53 lasserix: yo Dec 15 00:37:20 hello Dec 15 00:40:59 lasserix: yea, I'll generate some stats for the custom TextView once im done with it.. I'll ping you the details when I have them Dec 15 00:41:09 cool Dec 15 00:41:30 you should let tJ know too so he can switch his reddit client up :p Dec 15 00:42:50 I have a quite a large feature set for this.. i want it to support exclusion zones and RTL and BiDi text.. so we'll see Dec 15 00:43:02 i little Christmas project for me Dec 15 00:43:05 :) Dec 15 01:00:30 wanting to use three tabs with recyclerviews, is it better to simply inflate them, or use fragments containing them? Dec 15 01:15:46 repo start newbranch . error: system/core/: cannot start newbranch Dec 15 01:15:54 anyone know how to fix or workaround that? Dec 15 01:32:53 hey all could someone tell me where the `binder` include directory exists in the AOSP tree? Dec 15 01:33:03 specifically `binder/ProcessState.h` Dec 15 01:33:34 if you could, a kitkat tree would be desired Dec 15 01:35:46 I found it Dec 15 01:35:52 ac_slater: its always been in the same place https://android.googlesource.com/platform/frameworks/native/+/kitkat-release/include/binder/ Dec 15 01:36:18 Napalm: I just wondered why there isnt a github repo for frameworks/native Dec 15 01:36:20 thanks Napalm Dec 15 01:59:08 anyone? Dec 15 02:11:56 Is listview getView position relative or absolute? Dec 15 02:16:00 nm Dec 15 02:23:38 Would setting [android:textStyle="bold"] on a TextView and using [setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);] at run-time be equally fast? Dec 15 02:23:42 Do they do the same thing under the hood? Dec 15 02:24:36 ive been told that spans are slower, but i could be wrong Dec 15 02:26:06 How slow are spans in general? Dec 15 02:26:23 Here is my situation: I have a LinearLayout that has two TextViews: one to the left, one to the right. Dec 15 02:26:35 The left one has android:textStyle="bold"; the right one has no style. Dec 15 02:26:48 I could convert this into one TextView, but I'd have to use a bold span for the left-side text. Dec 15 02:27:14 I'm guessing it'd be faster to have the single TextView (even if spans are slower than android:textStyle="bold"), but it's hard to say for sure. Dec 15 02:27:38 Just trying to optimise my ListView row. Dec 15 02:27:44 test it ... Dec 15 02:28:25 What's the easiest way to profile? Dec 15 02:28:37 doesn't DDMS have a thingy for that now ? Dec 15 02:28:48 K. I'll google. Dec 15 02:29:12 TacticalJoke http://developer.android.com/tools/debugging/debugging-tracing.html Dec 15 02:29:17 Thanks. Dec 15 02:29:54 i think there is an i/o session 2 or 3 years ago on how to use it Dec 15 02:30:04 i dont find many of these android tools intuitive at all Dec 15 02:30:13 it's kinda interesting writing code for iOS and android, you learn how simple things are just awesomely fast in android, but absolutely kill performance on iOS (vice versa) Dec 15 02:31:05 bankai_au what things have you found to be faster in android ? Dec 15 02:31:13 html rendering Dec 15 02:31:50 so awesomely fast in android, but i had to redesign my ios text highlighting coz i couldn't make it fast enough on iOS not to lag UI Dec 15 02:32:47 in which android ? Dec 15 02:32:52 i would think objc -> webkit on iOS would be faster than java -> chrome Dec 15 02:32:56 pre kitkat webview is slow Dec 15 02:33:02 not webview Dec 15 02:33:37 bankai_au: maybe you're using swift? :D Dec 15 02:33:41 oh actually i use a webview as well and it's much faster on android (yes pre-kk) Dec 15 02:33:46 TacticalJoke: depends on which you want to profile Dec 15 02:33:47 pfft i'm using java :P fuck swift Dec 15 02:34:07 I mean on iphone Dec 15 02:34:15 so did i Dec 15 02:34:56 UIWebView vs WKWebView? Dec 15 02:35:41 g00s: i would have thought so too, but it doesn't seem to be and it's quite a common complaint. That's how i found my dodgy workaround. Probably did what i was doing a strange way anyway :/ Dec 15 02:37:16 lasserix_: Trying this right now. Trying to find the file it created. lol Dec 15 02:37:49 the hprof or the trace? Dec 15 02:38:23 Oops. Just tried to cat the trace file. Dec 15 02:38:26 Computer won't stop beeping. Dec 15 02:38:34 you set where it saves Dec 15 02:38:47 or if you do it manually from ddms, you save it manually Dec 15 02:40:42 I found the file but it won't let me do the "adb pull" thing. Dec 15 02:40:45 Says "device not found". Dec 15 02:41:19 I'm guessing this is gonna be another five-hour headache. Dec 15 02:41:29 Which is the case with everything new with Android. Dec 15 02:43:20 You know, I find that it's not generally the case that Android is technically difficult. It's just a complete pain. Dec 15 02:53:31 I think I'll stick with timing it myself. Otherwise I'll waste hours trying to get this to work. Dec 15 02:57:18 can you hurry up and produce something we can see? everyone's quite keen to see what you've been doing **** ENDING LOGGING AT Mon Dec 15 02:59:59 2014