**** BEGIN LOGGING AT Sun Mar 29 02:59:59 2015 Mar 29 03:12:16 From what I saw before (and from reading up), it is possible to add methods to existing classes in Kotlin, isnt it? e.g. String.myNewMethod()? Mar 29 03:12:29 Also, g00s that song by Roysopp is brilliant. Mar 29 03:12:42 All Royksopp I've heard before is fairly chill. Mar 29 04:49:03 Anthaas: Yes: http://kotlinlang.org/docs/reference/extensions.html Mar 29 05:04:04 dang, i have a rx.exceptions.OnErrorNotImplementedException and i have no idea where this is coming from Mar 29 05:09:56 g00s: Most likely, you are using an Action1() and an error occurred Mar 29 05:10:12 CedricBeust yeah ... but i have no idea where ! Mar 29 05:10:14 If errors can occur, don't use Action1(), use a real subscriber Mar 29 05:10:32 Then create a real subscriber, implement onError() and put a break point there Mar 29 05:11:07 the stack trace doesn't have any information about which chain of rx operations this is. Mar 29 05:11:31 Which CI system do you guys use generally? Mar 29 05:11:35 lol, i have to see where i used action1 Mar 29 05:14:09 napster: Kochiku! Mar 29 05:14:26 but it's a bit heavyweight :) Mar 29 05:14:26 Travis? Mar 29 05:14:29 ok Mar 29 05:14:52 thanks JakeWharton Mar 29 05:15:06 yeah, came across travis - heavyweight too Mar 29 05:15:06 :) Mar 29 05:15:13 Trivial to set up Mar 29 05:15:14 travis is lightweight Mar 29 05:15:22 you can be up and running in 5m Mar 29 05:15:26 kochiku would probably take you 5 hours Mar 29 05:15:33 oh Mar 29 05:15:37 another one https://ship.io/ Mar 29 05:15:49 yes there's plenty of -as-a-service CIs Mar 29 05:16:04 hmm, comparing these now... Mar 29 05:16:10 I like CircleCI Mar 29 05:16:36 as-a-service for the win! Mar 29 05:20:26 until it goes away Mar 29 05:20:34 lol Mar 29 05:21:02 So for my AP computer science class i need to make a mancala game in a group. If i could show you this guys code im pretty sure you would scratch your eyes out Mar 29 05:21:08 HE STARTS HIS ARRAYS AT 1 Mar 29 05:21:45 im trying to work with his code to make it work with this android version and i think i developed ptsd Mar 29 05:21:59 arrays starting at 0 are only a convention due to pointer arithmetic Mar 29 05:22:33 well considering it's a stanard in java, and he's working with other people who obviously use that stardard i think he should follow it Mar 29 05:23:53 he expects inputs that are reversed depending on the spot of the 2day array Mar 29 05:23:56 *2d Mar 29 05:24:01 It's been a de factor standard for at least three decades. Anyone who starts their arrays at one knows very little about CS Mar 29 05:24:11 sorry for the rant I'm just going crazy over this code Mar 29 05:24:29 CedricBeust: he's been coding for 2 years and this is a AP comp sci class, i just dont get it Mar 29 05:24:39 AP? Mar 29 05:24:53 college level classes in high school Mar 29 05:25:09 Maybe he knows R or fortran :D Mar 29 05:25:11 Ok (never studied in the US, not familiar with the lingo Mar 29 05:25:22 similar to IB in eu i think Mar 29 05:25:29 He's just a junior developer, nothing wrong about that, but he probably shouldn't be teaching Mar 29 05:25:47 DadFoundMy: I'm from the EU and that doesn't sound any more familiar :) Mar 29 05:26:02 CedricBeust: after coding for more than two years he should know that. its not that we dont have experience ive been in his class for over 2 years Mar 29 05:26:16 weve completed many projects including several android ones Mar 29 05:26:22 Yeah maybe I'm being too nice. Maybe he's the one who could use some teaching Mar 29 05:27:12 AP classes are just classes offered at highschools that are "advanced" at the end of the year students can take tests on the course and if they pass they can skip some university courses on teh subject Mar 29 05:27:26 Understood. Mar 29 05:27:39 Gaining a few credits ahead of time Mar 29 05:27:57 his code isnt even consisitent. if the player is player 1 it returns an index spot 0-5, but if its player two it returns a spot 6-1 Mar 29 05:28:43 so if its player two and returns a value of 4 the actual index spot is 1 Mar 29 05:28:47 maybe it's on purpose Mar 29 05:29:13 JakeWharton: well its on purpose because it works, but it makes no sense to anyone looking in Mar 29 05:30:06 keep in mind he had to code this knowing his entire group would be relying on understanding it and being able to work inside it. It's taken 4 of us hours of looking at this code to understand it enough to make changes. it just so happens he's on vacation this weekend :/ Mar 29 05:30:27 then he has no say if you refactor and fix it Mar 29 05:31:02 thats what we should have done days ago but its too late now. The project is due monday, and the method is somewhat complicated :/ Mar 29 05:31:16 maybe i should just bite the bullet and pull an all nighter or something Mar 29 05:32:42 DadFoundMy: you learned something important about managing a development team Mar 29 05:32:58 herding cats :) Mar 29 05:33:33 back in uni my software engineering class was pretty much designed to be so ambitious it would almost have to fail spectacularily Mar 29 05:33:41 myke: deffinetly, I wont put 100% on the blame on him because we never specifed parameters or anything else other than "it should return and recieve index spots of a 2d array" Mar 29 05:34:05 yep fond memories, a day before the project is due "what do you mean the protocol can't pass floats??" Mar 29 05:34:35 atleast if it took odd inputs we could just change inputs, but they arent even considtent Mar 29 05:34:52 it has so much "hacky" code that we cant even work around that Mar 29 05:35:08 im going to accept my F in peace knowing I did all i could :D Mar 29 05:52:00 how do i force HttpUrlConnection to send basic auth headers? it works but it looks like it's always getting a 401 and then doing the same request with auth Mar 29 06:11:43 conn.addRequestParameter("Authorization", "Basic " + hash") Mar 29 06:43:20 HARRO Mar 29 06:43:26 anyone around? gots me a few questions Mar 29 06:43:48 i have 2 seekbars on my layout, and i am using my activity to hold the callback Mar 29 06:43:50 huh, I never noticed, kotlin doesn't have type inference in its lambda syntax? yuck Mar 29 06:44:14 i want to update their respective labels to show the selected value, how can i findViewById() from the seekbar itself? Mar 29 06:44:35 since seekBar.getId() returns an int i can't just append "Label" to the ID Mar 29 06:44:53 or do i just have to redundantly declare 2 listeners Mar 29 06:45:48 or is it just for clarity in your case study, CedricBeust? Mar 29 06:48:41 there must be some inference, otherwise 'it' would never work Mar 29 06:51:32 ProLoser: By "label", do you mean "TextView"? Mar 29 06:53:29 yes Mar 29 06:54:12 @TacticalJoke Mar 29 06:54:59 this isn't twitter Mar 29 06:55:12 So you're wanting to use the same SeekBar.OnSeekBarChangedListener for two SeekBars, and you're wanting to update each SeekBar's corresponding TextView in onProgressChanged? Mar 29 06:55:55 If so, I guess one solution is to set the related TextView as each SeekBar's tag, and then say "(TextView) seekBar.getTag()" in onProgressChanged. Mar 29 06:57:07 There are other ways, but this way might be the lesser evil. Mar 29 06:58:00 is it evil to do what i'm describing? Mar 29 06:58:09 tags... okay i'll look that up Mar 29 06:58:12 I don't know. Is my summary correct? Mar 29 06:58:18 yup sounds good Mar 29 06:58:24 No, I don't think that's evil. Mar 29 06:58:38 how do i set it as a tag? Mar 29 06:58:48 android:tag="@id+/thelabelid"? Mar 29 06:58:51 seekBar.setTag(textView); Mar 29 06:59:54 there's no way to do it via xml? Mar 29 07:00:15 I don't think so. The TextViews aren't instantiated until run time. Mar 29 07:00:28 Otherwise you could set some identifier in XML and then use a conditional statement at run time. Mar 29 07:00:40 well i figured since you could position stuff in xml in reference to other items you could tag it too Mar 29 07:03:03 You can only use strings for android:tag, I think. Mar 29 07:03:21 hey folks do HTTPpost queries automatically re execute on timeouts without any exception? Mar 29 07:03:30 wouldn't that be enough? i could do findViewById(seekbar.getTag()) Mar 29 07:04:59 yup that works Mar 29 07:07:10 the http post request i make is executing a php script twice. i have no idea why :| Mar 29 07:09:37 ProLoser: I don't see how that could work. Mar 29 07:09:43 A string is not an integer. Mar 29 07:09:55 Never mind the compile-time problems. Mar 29 07:10:51 findViewById((int)seekBar.getTag()) Mar 29 07:11:08 android:tag="@id+/seekbarLabel" Mar 29 07:11:26 or String.valueOf() Mar 29 07:11:39 id+ ? Mar 29 07:12:28 In any case, you can't just cast a String to an int like that. You must be getting a ClassCastException at run time. Mar 29 07:13:06 Maybe String.valueOf will work. I'll check. Mar 29 07:16:20 get tag returns an object, does it get box'd to primitive int? Mar 29 07:17:06 No. In this case, the tag is set as a String. Mar 29 07:20:33 String -> int => Integer.parseInt() Mar 29 07:22:01 One possible solution is to set the SeekBar and the TextView to have the same XML tag, and then at run time say "(TextView) findViewWithTag(seekBar.getTag())". Mar 29 07:22:07 Using one tag for each pair. Mar 29 07:22:20 Though it still feels kinda hacky. Mar 29 07:22:40 Otherwise just use two listeners. :p Mar 29 07:23:34 In any case, it'd be interesting to find out what's going on with ProLoser. There's no way that thing he said could work. :D Mar 29 07:23:54 you don't think it could? Mar 29 07:25:06 Yeah. For a start, android:tag="@id+/seekbarLabel" isn't even valid. Mar 29 07:25:12 Overlooking that, the valid way doesn't work either. Mar 29 07:25:27 why isn't that valid? Mar 29 07:25:39 ProLoser: Did you really try it? Mar 29 07:25:43 i'm still coding it Mar 29 07:25:54 trying to fix the layout Mar 29 07:25:57 Did you run it and verify that it worked? Mar 29 07:27:50 not yet Mar 29 07:27:52 going to in a minute Mar 29 07:29:36 Your "yup that worked" was hugely misleading. :| Mar 29 07:29:48 s/worked/works/ Mar 29 07:30:23 lol Mar 29 07:30:31 i was going off of the IDE's ability to autocomplete Mar 29 07:30:37 i will test and play with it Mar 29 07:30:53 worse comes to worse i can do it programmatically like you initially suggested Mar 29 07:31:12 i just don't like hardcoding the id names in my onCreate when i can just declare them in the xml Mar 29 07:32:06 i also wish i could do setOnSeekBarChangeListener declaritively Mar 29 07:32:57 would it be silly to like set the context of the seekbar to my activity? Mar 29 07:33:26 nvm i think i'm just being silly Mar 29 07:33:39 What do you mean by "set the context of the seekbar"? Mar 29 07:34:37 erm nvm i was being silly honestly Mar 29 07:35:37 I agree about the declaration of the OnSeekBarChangedListener. I think Koan enables a declarative style for any such thing: https://github.com/yanex/koan Mar 29 07:35:54 In fact, they have a SeekBar example on that page: https://github.com/yanex/koan#listeners Mar 29 07:36:12 s/Changed/Change/ Mar 29 07:36:47 i am getting annoyed at having to unplug/replug my phone Mar 29 07:36:53 cuz it like stops being seen in the ide Mar 29 07:37:33 it shows up in adb devices Mar 29 07:39:36 I don't have that issue. In any case, I use adb wirelessly much of the time. Avoids my having to worry about charging my phone too much (as well as cable annoyance). Mar 29 07:42:27 hmm Mar 29 07:42:36 okay well anyway you were right about doing the variable in the tag doesn't work Mar 29 07:42:40 it was giving me false Mar 29 07:42:58 so why can't i do tag="@id+/theotherelement" Mar 29 07:43:52 Ignoring the incorrect "@id+" thing, I don't see why you'd expect it to work. As far as I know, you can set String tags and that's it. Mar 29 07:44:00 (There is a way to do what you want, but it's a huge hack involving the ? operator.) Mar 29 07:46:25 well i was figuring if you set other attributes such as like layout_below Mar 29 07:46:30 and you pass the id of another element Mar 29 07:46:35 why could you not use that variable for tags? Mar 29 07:48:02 It'd be nice if it were possible. They seem not to have implemented that feature. Mar 29 07:48:53 ProLoser, can't you use your own (vs generated ids)? Mar 29 07:49:02 my own what? Mar 29 07:49:10 @id/something vs @+id/something Mar 29 07:49:28 i'm confused slightly at what the difference is Mar 29 07:49:47 the first you define in as a resource in an xml file Mar 29 07:49:57 the latter the android plugin generates for you Mar 29 07:50:30 iprime: He's wanting to reference another View in android:tag. As far I know, this is not possible. Mar 29 07:50:33 so if i did id="@+id/something" i can't do tag="@id/something" elsewhere in the same xml file? Mar 29 07:50:47 Actually, there is one way, but it's a hack: ?id/name Mar 29 07:50:53 Then you get ?234234234. Mar 29 07:50:56 technically i just need the id Mar 29 07:51:01 oh Mar 29 07:51:16 ProLoser: The cleanest solution is probably to use two listeners. Mar 29 07:51:26 meh Mar 29 07:51:30 setTag() worked fine Mar 29 07:51:39 i don't like the idea of more listeners Mar 29 07:51:44 Why? Mar 29 07:51:45 super unnecessarily verbose Mar 29 07:52:06 this is what i ended up doing: http://hastebin.com/aqovifowoj Mar 29 07:52:07 works fine Mar 29 07:52:47 Why not set the actual TextView? Mar 29 07:52:49 if you're using setTag why not pass the view Mar 29 07:52:53 exactly Mar 29 07:52:59 Then it's just "TextView textView = (TextView) seekBar.getTag();". Mar 29 07:54:27 i have to go find it Mar 29 07:54:33 it's less lines of code Mar 29 07:54:37 You can find it and then setTag. Mar 29 07:54:46 why not make it an instance field Mar 29 07:55:00 oh touche i guess it would be doing too many searches this way Mar 29 07:55:04 an instance field? Mar 29 07:55:04 He's using the same listener for two things. Mar 29 07:55:08 ah Mar 29 07:59:13 okay i just did it your guys' way Mar 29 08:00:04 i'd subclass the listener interface, especially if i had to use it in more than 2 cases Mar 29 08:00:20 ProLoser: Here's another solution: http://pastebin.com/jhqPY9Md Mar 29 08:00:28 Yeah, that's what I was thinking, iprime. Mar 29 08:00:43 Oops, I forgot the @Override things. Mar 29 08:00:58 much cleaner indeed Mar 29 08:04:01 is the number of steps / notches in the volume adjustment different from devices? Mar 29 08:05:27 oh you're adjusting the audio? consider you have to show a warning after some threshold Mar 29 08:05:36 or have the system show it or something Mar 29 08:05:51 was a problem i had with some samsung Mar 29 08:07:07 depending on the type of the audio you're playing, that is Mar 29 08:09:18 your right, i like that better Mar 29 08:09:22 TacticalJoke: thanks, i converted to that Mar 29 08:09:38 i forget that you can create private classes inside classes for such things, i'm not used to doing that Mar 29 08:10:07 Anonymous classes are just shorthand for that. Mar 29 08:11:21 yay Mar 29 08:11:29 okay now i have most of the base functionality of my first app done Mar 29 08:11:33 all i need now is to get alarms working Mar 29 08:11:45 although i really should go to bed Mar 29 08:12:53 if you're getting to bed so late your alarm better not be working ) Mar 29 08:13:26 is it possible to store a couple of pieces of data in an alarm? Mar 29 08:13:36 or should i just store like an id or something and then look up the data? Mar 29 08:13:47 really i just want 1 string and 2 ints Mar 29 08:14:08 meh i'm sure i'll want more data later so i guess i might as well change it to look it up Mar 29 08:14:27 yeah, it's your own data, android doesn't care Mar 29 08:15:07 how do you store data in an alarm? Mar 29 08:15:15 like the id of the record to open Mar 29 08:15:22 define 'an alarm' Mar 29 08:15:54 http://hastebin.com/ujuleyomop Mar 29 08:16:19 obviously the interval will be changed or so Mar 29 08:16:23 but this is just early prototype Mar 29 08:16:40 maybe you need better persistence Mar 29 08:16:43 like sql Mar 29 08:17:02 as your app grows you might need to associate more data with your alarm Mar 29 08:17:45 yeah i probably will Mar 29 08:17:50 with some orm libs you won't even need to understand how sqlite works Mar 29 08:18:00 but even then i'll at LEAST need an id of the record Mar 29 08:18:02 so how do i store that Mar 29 08:18:23 why not use the time as an id Mar 29 08:18:32 are you going to allow multiple alarms at the same time? Mar 29 08:18:56 hmmm Mar 29 08:19:08 it would be inexact tho to use the current time as an id Mar 29 08:19:24 like i would think the execution might lag or something and mess up the current time Mar 29 08:19:31 is there no way to pass an id in an alarm intent? Mar 29 08:20:01 well, why don't you just try? Mar 29 08:20:10 set some data and see if you get it back in your intent Mar 29 08:20:53 where do i set it? Mar 29 08:20:55 on the eintent? Mar 29 08:21:15 on the intent indeed Mar 29 08:21:22 using setExtra()? Mar 29 08:21:24 Intent intent = new Intent(this, AlarmReceiver.class); Mar 29 08:21:25 yes Mar 29 08:21:32 should i set it on the intent or the alarmIntent Mar 29 08:21:34 the thing with pending intents is that they can be reused Mar 29 08:22:38 on the intent Mar 29 08:25:22 when you create an intent, the second arg is the class (context?), if i am in my receiver and want to go into an activity, do i need to create a new intent or can/should i make a new one and explicitly pass the extras to it? Mar 29 08:26:38 This is my receiver: http://hastebin.com/kopivurere note that an intent is passed in AND i am making a new one, instead of manually getting and setting is there a better way? Mar 29 08:26:45 you create a new intent, you can 'forward' the extras from the BR intent Mar 29 08:28:08 hey, can someone which layouts do i need to create to support 360 and 320 dpi? Mar 29 08:28:36 oops , can someone tell me Mar 29 08:30:40 iprime: startAlarm.putExtras(intent); got it! thanks! Mar 29 08:31:03 okay theoretically NOW all i have to do is just get the interval setup correctly Mar 29 08:31:05 great, try triggering two alarms and see if your data is different Mar 29 08:31:22 i will continue tomorrow Mar 29 08:31:27 i have a film shoot in the morning i have to go to Mar 29 08:31:32 latter, danke for help Mar 29 08:31:33 joroci, what do you mean which layouts? Mar 29 08:31:43 ProLoser, aba bidde :) Mar 29 08:32:47 ok so mdpi is 320x480 and the default layout folder will work for phones with 320x480, 480x800 Mar 29 08:33:11 but my phone lg g2 dpi width is 360 Mar 29 08:33:30 well, there's layout-large, layout-extralarge Mar 29 08:34:05 are your layouts very different for the different screens? Mar 29 08:34:07 these folders are for android 3.2+? Mar 29 08:34:37 i have one screen with gridlayout 3x2 with 6 circles Mar 29 08:34:52 there are no layouts for dpi, only drawables Mar 29 08:35:04 you can specify layout-small, layout-large, layout-xlarge Mar 29 08:35:09 so what's layout-sw600d? Mar 29 08:35:09 but this is for screen size only Mar 29 08:35:37 its for 600dp+ width screens Mar 29 08:36:28 i read you shouldn't use layout-large etc.. for android 3.2+, is that incorrect/ Mar 29 08:36:32 ? Mar 29 08:37:02 joroci, what exactly are you trying to achieve? do you want different layouts for different densities or screens? Mar 29 08:37:17 well yes and no Mar 29 08:37:30 if your min is pre-3.2, they wont recognize sw600dp Mar 29 08:37:55 i want my gridlayout to look the same for all handsets Mar 29 08:38:12 'the same' is subjective :) Mar 29 08:38:30 do you want a grid item to have the same physical size on all devices? Mar 29 08:38:33 same proportion Mar 29 08:38:44 yes Mar 29 08:40:24 same physical size is correct Mar 29 08:40:48 so provided your grit item uses dps, woudln't you just have to recalc the column count Mar 29 08:41:01 lol @ grit Mar 29 08:41:21 i want the grid to be always 3 columns and 2 rows Mar 29 08:41:33 gritty grid :) Mar 29 08:41:51 maybe the grid isn't the way to go but it did at start Mar 29 08:41:54 joroci, so you can't get the same physical size on all devices Mar 29 08:42:13 how about same proportions? Mar 29 08:42:54 i mean for 320dp width it's ok but for 360dp width i got extra spaces from the sides Mar 29 08:43:07 tweak your grid item layout then Mar 29 08:43:18 make the sizes in it relative, not absolute Mar 29 08:43:35 relative to the whole grid item, i mean Mar 29 08:44:33 setting it for dp isn't enough? Mar 29 08:44:43 no Mar 29 08:45:12 so i'm not sure how do i make it relative to the grid, by code? Mar 29 08:45:24 you can do that in the xml I guess Mar 29 08:45:28 really depends on your layout Mar 29 08:46:06 if height is important then maybe also in code Mar 29 08:46:57 e.g. your grid needs to display circles, your grid item is a view with shape drawable background, your grid item view width = match_parent.. that will make it look the same on 320 and 360 Mar 29 08:47:00 the grid items are cirlces so the height will change anyway Mar 29 08:47:07 but the height you have to set in code Mar 29 08:47:20 or createa a custom view Mar 29 08:49:50 i'll try that, thanks iprime Mar 29 08:56:55 did someone tried https://github.com/facebook/fresco? Mar 29 09:06:08 danijoo: just saw this today: https://code.facebook.com/posts/366199913563917/introducing-fresco-a-new-image-library-for-android/ Mar 29 09:06:14 will read some more later Mar 29 09:06:59 thats what I saw and is why im asking :p Mar 29 09:07:16 Hoped someone already tested it to see if its worth a try Mar 29 09:08:17 ahhh, they just released it, it will take at least a few days before commonsguy will write a blog post about it Mar 29 09:09:25 Occasionally Avahi runs a stop job when I shut down my computer and it goes for the full 1 minutes 30 seconds. I don't remember even installing avahi - do I need it? Mar 29 09:15:08 whats avahi Mar 29 09:23:15 don't ask me, danijoo :p Mar 29 09:24:24 doesnt sound android-related Mar 29 09:27:08 oh sorry I meant to post this in #archlinux Mar 29 09:27:12 just realised, oops Mar 29 09:27:19 :) Mar 29 10:32:15 g00s: have you seen the emails where someone offers to "tip" you primecoin for open source work? Mar 29 10:33:10 oic he's crashed :/ Mar 29 11:48:56 Alright, so after a day of looking how to check whether the keyboard is active I haven't found anything that works. The only problem is that when the softkeyboard opens up the immersive mode is disabled and isn't enabled again when the keyboard is gone. Does anyone know how to do this? Mar 29 12:29:05 How can I make a WebView zoom out so that its contents are shown at a 100% zoom level? Mar 29 12:29:33 In this case, the contents are just an . Using "" almost gets me what I want -- that works fine if the width is greater than the height. Mar 29 12:29:46 But if the height is greater then the image scrolls vertically. Mar 29 12:29:57 Nothing I'm trying is working (I badly want to avoid jQuery). Mar 29 12:41:14 TacticalJoke, how about setting the viewport? Mar 29 12:42:10 Yeah, tried that. Doesn't seem to make a difference. Mar 29 12:44:09 Well, I guess it's not the end of the world if the image scrolls vertically. Mar 29 12:44:57 This might sound crazy, but I'm making a reddit client and I've written loads of code for displaying, caching, whatever-ing images, and everything works. Only thing I haven't done is animated GIFs. Here's the crazy part: I'm realising that I can do all of this (including animated GIFs) quite nicely using WebView. Mar 29 12:45:05 I could literally delete hundreds of lines of code by using WebView. Mar 29 12:45:38 But everyone seems to hate using WebView for this stuff, saying it's slow and so on. How are they measuring the speed? Mar 29 12:45:57 I don't get any hint in LogCat or the Android Studio memory thing. Mar 29 12:46:32 In fact, WebView seems super-fast (and possibly light) on all my devices for this. Mar 29 12:46:56 During my view creation, I'm expecting to see certain custom attributes. I'm not. Is the TypedArray binary format documented? What's the best way to debug this? (I've done a clean build to no avail....) Mar 29 12:47:06 I know from testing that using Glide, Picasso, or my own code requires a lot of RAM and CPU time. I have no idea how much WebView uses. Mar 29 12:49:25 webview => a lot Mar 29 12:49:37 TacticalJoke, why don't reize the image? Mar 29 12:50:00 Resize in WebView or resize in my own image-processing code? Mar 29 12:50:01 the webview also spawns a new process iirc Mar 29 12:50:18 Do you know how I could check how much RAM and CPU time WebView is using? Mar 29 12:50:30 hmm, maybe i don't have a good idea of what exactly you're doing Mar 29 12:50:40 is your whole app webview hosted Mar 29 12:50:44 Nah. Mar 29 12:50:53 Never mind. Mar 29 12:51:34 I guess my position is this: given how well WebView works here (it gives me image downloading, caching, displaying, zooming, and animating), I think it would be insane not to considering using it. :) Mar 29 12:51:50 And I'm thinking "Why does nobody seem to use WebView for this?". Mar 29 12:52:22 For displaying a single image in an Activity, I mean. Mar 29 12:52:23 TacticalJoke, webview has some weird behaviours on some phones :p Mar 29 12:52:34 thats one of the reasons Mar 29 12:52:48 Yeah, there is that. But, for a single image, I wonder whether there'd ever be a problem. Mar 29 12:53:20 I could enormously simplify my code by using WebView for single images on an Activity and Glide/Picasso for ListView/RecyclerView thumbnails. Mar 29 12:53:22 hey, i am looking for a good architecture to seperate the turned based stuff and invitation stuff. Both needs to have access to the GoogleApiClient. Has someone a good idea? Mar 29 12:53:44 TacticalJoke, FB's first android app was HTML5 Mar 29 12:53:45 (Of course, I'm not crazy enough to consider using WebViews in a ListView. :D) Mar 29 12:53:50 Ah, yeah Mar 29 12:53:51 they quickly realized that's not the way to go Mar 29 12:54:04 the google play games example is a large 800 loc activity class Mar 29 12:54:09 TacticalJoke, titanium & co are crazy enough tho ;) Mar 29 12:54:13 Yeah, a whole app in a WebView is kinda crazy. Mar 29 12:54:41 what's wrong with using glide/picasso/etc for a single image? Mar 29 12:54:57 There are things I don't get such as download-progress indicators. Mar 29 12:55:03 ahh Mar 29 12:55:17 oh well, do the downloading yourself Mar 29 12:55:45 why not show an indeterminate progress instead Mar 29 12:55:49 Yeah, my current code does that. :) I don't like how large it is, though. Mar 29 12:55:57 (Downloading myself.) Mar 29 12:56:00 you can tweak the style Mar 29 12:56:02 ah Mar 29 12:56:11 I basically am looking for a reason to delete code. :D Mar 29 12:56:40 I do most of my development using IntelliJ + the Emulator. Lately, when I get " has stopped unexpectedly", I cannot find a stacktrace. Where should I expect to find that? Mar 29 12:57:03 dcorbin: In such cases it may be worth disabling all filters and setting the "Log level" to "Error". Mar 29 12:57:08 dcorbin, do you mean Android Studio when you say IntelliJ? Mar 29 12:57:18 so you still have a large activity? or service class? Mar 29 12:58:19 maybe there is a solution to inject the GoogleApiClient via guice Mar 29 12:58:25 Android Studio's logcat is buggy.. I sometimes have to use ADT Mar 29 12:59:42 dcorbin: Some log messages don't get tagged with our app ID. That's why disabling filters is sometimes needed. Mar 29 13:00:23 Yeah, AS's LogCat seems less reliable than Eclipse's. I also hate how laggy it is sometimes. Mar 29 13:03:58 philipp_dev_, bad arch in the google samples? Mar 29 13:05:54 maybe the example is based on the "keep it simple" principle. see here https://github.com/playgameservices/android-basic-samples/blob/master/BasicSamples/SkeletonTbmp/src/main/java/com/google/example/tbmpskeleton/SkeletonActivity.java Mar 29 13:08:42 iprime: No, I mean Intellij. Mar 29 13:08:54 TacticalJoke: where are those filters and log level set? Mar 29 13:10:59 If you press Alt+6, they're there. Mar 29 13:11:09 Or a Mac-friendly equivalent. Mar 29 13:11:32 (The Android tool window.) Mar 29 13:13:06 Hmm, I wonder whether any other reddit client uses WebView for viewing single images. Mar 29 13:13:06 Alt-6 yields nothing. I AM on a Mac. but I'd expect it to be the same. Mar 29 13:13:07 philipp_dev_, or ... keep it long ) Mar 29 13:13:20 dcorbin: View --> Tool Windows --> Android. Mar 29 13:13:39 :) Mar 29 13:14:16 this could be the solution: Mar 29 13:14:18 "It's not expensive to create multiple instances of GoogleApiClient. In fact it will help with efficiency if you use more than just one API. Only the services you specifically request will be spooled up. So if one activity uses Plus and another uses Drive, the Plus service doesn't have to be spooled up when you're on the Drive activity." Mar 29 13:14:38 ah Mar 29 13:14:44 so then you can create whatever arch Mar 29 13:15:12 TacticalJoke: thanks Mar 29 13:15:33 i will try it ;) Mar 29 13:19:48 TacticalJoke: that did not help me find the stacktrace, but thanks. Mar 29 13:20:19 dcorbin: You picked "No Filters" on the right and "Log level: Error"? Mar 29 13:21:27 Yes. And I go not output. Mar 29 13:22:01 Do you have any output if you set Log level to Verbose? Mar 29 13:22:48 TacticalJoke: Yes. This run, I see the stacktrace. Mar 29 13:23:46 All over the web, people are saying "WebView uses a lot of memory". How do people measure this? Mar 29 13:23:57 It's just not consistent. Mar 29 13:25:32 TacticalJoke: I have no answer for you, but it seems logical. HTML and JavaScript are not lightwight. Mar 29 13:25:39 *lightweight Mar 29 13:26:09 Yeah. Thing is, creating bitmaps is also far from lightweight. Mar 29 13:26:27 I wouldn't be surprised if WebView did a better job than us lowly mortals in some cases of processing bitmaps. Mar 29 13:43:26 a bitmap cant be much more lightweight than it is. Mar 29 13:44:49 you need 4 byte per pixel, no matter how you load it Mar 29 13:45:38 3* Mar 29 13:47:54 rgb565 is two bytes Mar 29 13:48:27 True. Maybe animated GIFs are optimized, though? Mar 29 13:48:38 I think argb8888 is four, if I'm not mistaken. Mar 29 13:48:46 yeah 4 Mar 29 13:51:48 gifs are up to 1 bit per px Mar 29 13:51:53 what are you using to play the gif? Mar 29 13:51:59 WebView, so far. :D Mar 29 13:52:06 :D Mar 29 13:52:14 It's super-fast on all my devices. Mar 29 13:52:16 gif is compressed Mar 29 13:52:17 yeah now i see why you needed the wv Mar 29 13:52:22 glide can do gifs too, cant it? Mar 29 13:52:29 Yeah, danijoo. Mar 29 13:52:33 But no download progress. :[ Mar 29 13:52:37 to give u another alternative TacticalJoke Mar 29 13:52:42 argb8888 takes 4 bytes (at least), because 0xFFFFFFFF <- A R G B Mar 29 13:52:42 did you tried fresco? Mar 29 13:52:46 from facebook Mar 29 13:52:48 Not yet. Mar 29 13:53:00 its out since a week or so Mar 29 13:53:15 and they pretend to be better than the others on stuff like that Mar 29 13:54:07 Maybe I should just go with WebView. If users complain, I'll learn that it was a bad solution and then I can use Glide or Fresco. :D Mar 29 13:54:12 User-driven development. Mar 29 13:55:01 just making sure you saw this: https://twitter.com/jessewilson/status/581235604740042752 Mar 29 13:55:10 I notice the "toString" output for a View has a symbolic version of the ID. Is that available from the view? What method? Mar 29 13:55:44 How big is Fresco in MB? Mar 29 13:55:51 TacticalJoke, convert the gifs to videos ;) Mar 29 13:56:13 fasbook as its finest.. They love their apis to have 99999 methods Mar 29 13:56:15 Yeah, the nice thing about Picasso is that it's tiny. Mar 29 13:56:20 I've read pretty much all of their code. Mar 29 13:56:30 It's nicely made. Mar 29 13:56:43 but I guess you can reduce this by half with proguard Mar 29 13:57:00 TacticalJoke https://github.com/dlew/android-gfycat you could try to never deal with actual gifs Mar 29 13:57:15 my second project already ran into the 65k methods limit because of kotlin Mar 29 13:57:19 and its pretty smal Mar 29 13:57:36 Does it upload them to gfycat? Mar 29 13:58:16 Oh, I guess it converts them on the server side. Mar 29 13:58:38 About Fresco, Romain Guy said "I’m more worried about the lockPixels hack they describe in the announcement blog post". Mar 29 13:59:21 well we all love leaked memory don't we :P Mar 29 14:00:16 https://twitter.com/readyState/status/581356729276989440 :D Mar 29 14:01:36 if gfycat already has a copy of the gif you're trying to upload it just gives you the webm Mar 29 14:02:10 also you don't need to upload it, you can just give it a url Mar 29 14:05:18 Hi!, i'm looking the way to create a custom image gallery, currently I need to create bottom images thumbnails like this http://picpaste.com/Screenshot_2015-03-29-10-59-25-Mon4gIUE.png Mar 29 14:06:16 and whats your problem with it? Mar 29 14:06:32 How to build that? LinearLayout with ImageView as every images? Mar 29 14:06:48 hmmm. Mar 29 14:07:03 maybe viewpager Mar 29 14:07:13 with a huge offset so it shows multiple pages Mar 29 14:09:48 ok :) Mar 29 14:09:55 will learn that :) Mar 29 14:14:39 but my app will not support viewpager :( any alternativa ? Mar 29 14:15:05 i mean... not support "support library" Mar 29 14:22:58 danijoo: That’s very surprising, do you have it on github? Mar 29 14:25:30 feathersanddown, support library is essential Mar 29 14:28:07 why? seems is not only for backward compatibility? Mar 29 14:29:28 nope Mar 29 14:30:07 is not only for backward compatibility Mar 29 14:30:40 viewpager is an obvious example Mar 29 14:31:12 oohh Mar 29 14:31:14 uhm :( Mar 29 14:35:19 any other example about why I need the support library? Mar 29 14:41:47 feathersanddown: couldn't you come up with a better name ? Mar 29 14:42:25 it seems out of place Mar 29 14:43:36 xD Mar 29 14:50:15 TacticalJoke: what about WebView being vulnerable for devices lower than 4.4 ? Mar 29 14:50:33 that's one other reason to avoid it Mar 29 15:16:14 aahh "appcompat library" is different than "support library", appcompat bring actionbar support and others backward compatibility features, while "support library" have more apis to use in current development Mar 29 15:16:20 i'm right? Mar 29 15:16:49 just don't think about the names, the naming is pretty horrible Mar 29 15:18:12 you can use appcompat in "current development", too Mar 29 15:18:15 so ... :p Mar 29 15:18:58 jaja anyway.... i've learned something new today :) thanks Mar 29 15:38:20 Sup TacticalJoke Mar 29 16:00:29 Hey. Mar 29 16:01:00 Whats up? Mar 29 16:01:31 TacticalJoke: you should write your own .GIF animation lib Mar 29 16:02:12 Not much; just Sundaying. Mar 29 16:02:23 ah yes Mar 29 16:02:25 shmooz: I'm not hugely into image stuff. Never have been. Mar 29 16:02:50 I also kinda hate the GIF format. It should've died years ago. Mar 29 16:03:05 how hard could it be to parse it manual? Mar 29 16:03:29 Displaying an animated GIF in a memory-efficient way looks pretty hard. Mar 29 16:03:37 TacticalJoke just use gfycat for everything :D Mar 29 16:03:41 People seem to use C or C++ and call the stuff from Java. Mar 29 16:04:19 Then my app has a dependency on some arbitrary website. :D Mar 29 16:04:45 reddit slide does that too Mar 29 16:05:03 As far as I can see, WebView is good for showing animated GIFs. Mar 29 16:05:28 i disagree Mar 29 16:05:36 it's not because it works that it's good Mar 29 16:05:40 TacticalJoke: will it be safe from the vulnerability it has for 4.4 and below which google said it would not patch Mar 29 16:05:47 ? Mar 29 16:05:47 it's #@! incredibly heavy to use a webview just for gif animation Mar 29 16:05:50 shmooz: To be honest, I have no idea yet. Mar 29 16:05:55 why not use a complete operating system next time? Mar 29 16:05:57 adq: How are you measuring that? Mar 29 16:06:06 according the what the job of webview is Mar 29 16:06:16 rendering web stuff, not only animated gif Mar 29 16:06:19 But what if WebView is already largely (or totally) loaded into memory? Mar 29 16:06:21 according to* Mar 29 16:06:38 It might then be *less* memory intensive to use WebView than to use, say, GifDrawable. Mar 29 16:06:45 Though I'm not sure whether that's the case. Mar 29 16:06:46 ah! if you already use webview, it might be different Mar 29 16:06:46 yeah if you are already using it , you might as well use it for gif too Mar 29 16:06:57 I'm using it for normal web content, yeah. Mar 29 16:07:02 you can profile to know, at any time Mar 29 16:07:04 but yes it's heavy, maybe you can make it non vulnerable for your app Mar 29 16:07:30 WebView seems to break the rules. For example, I don't get GC-related messages at all in LogCat when using WebView (not just for my app -- for my entire device). Mar 29 16:07:43 Unless it's amazingly memory-efficient or something (which I doubt) Mar 29 16:07:47 maybe its native Mar 29 16:07:59 i would stay as much as possible far from a webview, but i understand your need and you're developping a reddit client Mar 29 16:08:00 Yeah, true. It must be that. Mar 29 16:08:01 TacticalJoke, that's because it's C++ webkit? :P Mar 29 16:08:14 Rendered with OGL as well Mar 29 16:08:15 Makes sense. haha Mar 29 16:08:57 android in a nutshell: using a webbrowser engine to animate gif :)) Mar 29 16:09:09 no wonder why it takes a week to make a hello world for a neophyte Mar 29 16:09:10 :D Mar 29 16:09:31 i'm so full of sarcasm Mar 29 16:10:43 I would definitely avoid WebView if I could. I kinda hate it. On the plus side, though, it's less bad (and of course updated) with new Android versions. Mar 29 16:10:51 so youre experienced in android Mar 29 16:11:23 Hi all, quick question for everyone here. What are your favorite Android dev blogs/RSS feeds? I'm trying to build my library. Thanks! Mar 29 16:34:43 CAn anyone tell me how i can access the row span of a button (in a grid layout) in the program Mar 29 16:36:18 Hello thebiffman Mar 29 16:36:21 faul Mar 29 16:36:24 *fail Mar 29 16:36:31 hello ulli909 :D:D:D:D:D Mar 29 16:36:32 Hello thepoosh Mar 29 16:36:36 :D Mar 29 16:36:40 hi Mar 29 16:36:53 oh thebiffman can you help me? Mar 29 16:37:10 Hello JohnR^^ Mar 29 16:39:07 Hi, I have a custom adapter (http://pastebin.com/KU0ZLdQf) and I'm trying to pass multiple strings from my MainActivity (http://pastebin.com/FEN04ydQ) to my DetailActivity (http://pastebin.com/ypVPMhiA) but it's not getting picked up. I used Log.d to see what's getting passed around and it's language name, not the description. Any ideas how to do this properly? Mar 29 16:41:51 Quintasan, what excactly is the adapter for? Mar 29 16:41:59 What line should someone look at, Quintasan? Mar 29 16:43:17 ulli909: Well, this just stores informations about programming languages, we were supposed to create a "showcase" application which uses a listview with images and then displays details when one clicks at certain item Mar 29 16:44:26 TacticalJoke: Well, DetailActivity:74-75 are the problematic lines, I want to pass the description string, not the name string and somehow getStringExtra still return the language name Mar 29 16:47:18 At line 67 and 68 which methods should I use? http://pastebin.com/yi2qs0Hs Mar 29 16:50:27 ... Mar 29 16:50:42 Quintasan: Have you checked whether "description" has the right value at line 83 in MainActivity.java? Mar 29 16:51:07 ulli909, TacticalJoke: I actually figured out what's wrong. I used the same array twice...sorry for taking your time. Mar 29 16:51:35 Quintasan, np have fun Mar 29 16:51:47 I just saw that Mar 29 16:52:05 line 81 and line 83 Mar 29 16:52:26 so can anyone help me Mar 29 16:52:46 Quintasan: Log all the things! Mar 29 16:54:11 TacticalJoke: when should he log it? Mar 29 16:54:13 NOW! Mar 29 16:55:05 Hey guys, what would be the easiest way to run a HTTP server from an android app Mar 29 16:55:18 no inbuilt android functionality for doing this? Mar 29 16:55:39 http://pastebin.com/jqE92uCu Mar 29 16:55:51 webglider, dont think so Mar 29 16:56:14 https://github.com/NanoHttpd/nanohttpd Mar 29 16:56:20 first result on google Mar 29 16:56:23 where can i find a good tutorial on writing a service api ? Mar 29 16:57:15 ulli909: yeah I was looking at that, just wanted to know if any native way of doing it existed Mar 29 16:57:45 webglider, nope Mar 29 16:58:32 TacticalJoke, do you know anything about GridLayouts Mar 29 16:58:51 ulli909: thanks anyway Mar 29 16:59:06 I've heard people talking about them. :D Mar 29 16:59:29 webglider, I'm still a "noob" in android standards but I'm always happy to help Mar 29 16:59:35 TacticalJoke, nice Mar 29 16:59:54 ulli909: good to know Mar 29 17:01:21 ah very nice http://cogitas.net/blog/2015/03/27/the-analytics-checklist-what-to-measure-and-look-for/ Mar 29 17:02:26 ulli909: What is it that you're trying to get? Mar 29 17:02:42 the row span of the button Mar 29 17:03:02 line 67 and 68 http://pastebin.com/jqE92uCu Mar 29 17:06:51 anyone notice that the "setPrimaryItem" method is being called twice and getting the same fragment on FragmentPagerAdapter?? Mar 29 17:10:42 ulli909: Is this related? http://stackoverflow.com/questions/13532084/set-rowspan-or-colspan-of-a-child-of-a-gridlayout-programmatically Mar 29 17:11:01 nsh Mar 29 17:11:05 *nah Mar 29 17:11:25 its setting it Mar 29 17:11:47 not reading Mar 29 17:12:29 Isn't that what you're trying to do, though? You're trying to set the width and height. Mar 29 17:13:04 Maybe I misunderstand the concept. Interesting, though. Mar 29 17:14:45 which one is better tablet? http://www.gsmarena.com/nokia_n1-6814.php OR http://www.gsmarena.com/xiaomi_mi_pad_7_9-6365.php Mar 29 17:14:50 ulli909, what about getLayoutParams().height ... Mar 29 17:15:04 wait a sec Mar 29 17:15:57 pmarino, i think thats the entire height or just the button height Mar 29 17:17:16 so it seems as those onCancel listener works for datePickerDislogs, butnot TimePickerDialogs :/ Mar 29 17:19:58 DadFoundMy: Check the source. Mar 29 17:20:46 nooooo Mar 29 17:20:49 github pages is down! Mar 29 17:21:00 TacticalJoke: whats the command to do that in AS? Mar 29 17:21:09 Middle-click or google. Mar 29 17:21:19 Or Ctrl+Click if you can't/won't middle-click. Mar 29 17:21:28 thanks Mar 29 17:22:43 whoa, why doesn't butterknife do InjectFragment? >_< Mar 29 17:22:48 sounds logical, doesn't it? Mar 29 17:23:21 I'm using porterduff clear to remove something in an arc Mar 29 17:23:26 However, it seems to just draw black Mar 29 17:23:26 how should I got about implementing mergesort on my custom data container that I store in a list? Mar 29 17:23:27 http://i.imgur.com/cV4wiPP.png Mar 29 17:23:38 hmm so it seems onCancle doesnt work for timePickers but i does for dates, only onDismiss works for timePickers Mar 29 17:23:46 seems like stackoverflow is comfirming this also Mar 29 17:23:48 Everything I've read on SO suggests I draw to a transparent bitmap, which will only make the circle edges choppy Mar 29 17:24:22 TheKarlBrown implement comparable in your items and don't Mar 29 17:24:48 Afzal: because fragments are not UI Mar 29 17:24:57 ah fine Mar 29 17:25:48 pmarino, it returns -2 Mar 29 17:25:52 DadFoundMy: Oh, I thought you meant a custom library thingy. Mar 29 17:26:10 TacticalJoke: nah normal TimePicker Mar 29 18:00:37 Hi all! Mar 29 18:01:48 I am getting a “Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1)”, and I could use some help deciphering the dump. Mar 29 18:02:00 Anyone up for some friendly coaching? Mar 29 18:02:12 donV: sucks for you, are you dealing with bitmaps? Mar 29 18:02:18 that might be recycled? Mar 29 18:02:32 Should not be, no. Mar 29 18:02:41 where is it happening? Mar 29 18:02:49 are you writing in NDK? Mar 29 18:03:31 I _am_ using JRuby which does have some native components, but they _should_ be disabled due to system property jruby.native.enabled = false Mar 29 18:04:10 jruby on android must be pretty dang slow ... Mar 29 18:04:36 thepoosh: example of dump: https://travis-ci.org/ruboto/ruboto/jobs/56295096#L7546 Mar 29 18:05:49 thepoosh: Line 7546 Mar 29 18:06:10 dude, I know nothing about SIGSEGV, just that it's a pain in the ass Mar 29 18:06:18 especially if you're not writing in java Mar 29 18:06:36 where I at least tackled it once or twice Mar 29 18:06:45 it would be native only Mar 29 18:06:54 thepoosh: OK, thanks. Mar 29 18:07:07 Ashiren: Yeah, but which component… Mar 29 18:07:11 Ashiren: not true, it's easy to do that when dealing with OpenGL or Bitmaps Mar 29 18:07:30 donV, hrmf, unless your symbols are smashed, it looks like the crash is actually inside an internal VM/JIT method Mar 29 18:07:45 making me think you're either using something that's trying to patch the code in incompatible way Mar 29 18:07:51 or the JRuby runtime is broken Mar 29 18:09:53 Mavrik: Hi! Thanks for the reply! What is weird is that lots of variants work fine. It may be a change in newer JRuby. Mar 29 18:10:09 Could a general out of memory error cause this? Mar 29 18:10:14 Nah Mar 29 18:10:22 Increased code size? Mar 29 18:10:31 hmmm Mar 29 18:10:38 “JIT code cache reset” ? Mar 29 18:11:22 I see it is most like an error inside JRuby or my packaging thereof, but how to debug? Mar 29 18:11:23 it looks more like some native code corrupted your memory Mar 29 18:11:44 Mavrik: OK, yeah, most likely. Mar 29 18:11:56 since the backtrace doesn't make much sense Mar 29 18:13:41 Mavrik: looking now at the method that threw this crash it looks very weird indeed Mar 29 18:14:42 Mavrik, thepoosh: Another example: https://travis-ci.org/ruboto/ruboto/jobs/56295081#L6141 Mar 29 18:17:56 is dvm running out of heap ? Mar 29 18:18:54 I'm trying to build a project someone else wrote. I'm using Android Studio 1.1.0 under Windows 8.1 and I'm trying to add a library dependency. Under Linux I would go to Project Structure and use the + button in the top right corner to browse through a list of libraries. Under Windows I don't get the + and - in the top right corner. How can I see the list of available libraries I could add? Mar 29 18:19:10 oh well, in past experience - these things can't be explained looking at the numbers much - it will probably require surgical use of gdb & breakpoints with debugging info enabled, etc Mar 29 18:19:41 Plugh just add it to gradle build file ;) Mar 29 18:19:47 urgh, why is the documentation on frament transitions so unclear Mar 29 18:20:13 Darkwater: no worries, the behaviour is not much better Mar 29 18:20:22 so they suit each other perfectly Mar 29 18:20:26 g00s: I would if I knew what I needed to add. Mar 29 18:20:36 g00s: I see dalvi-heap mentioned a lot. Mar 29 18:21:07 I can see the management features in my own project but not in this one that was originally maintained via Eclipse. Mar 29 18:21:27 thepoosh: I just want my fragment to slide in from the bottom, why does that have to be so hard :< Mar 29 18:21:44 shouldn't be Mar 29 18:21:53 it's part of the FragmentTransaction transitions Mar 29 18:22:13 well, right now my fragment fades out only when returning to the previous one Mar 29 18:22:25 also I actually want one view to slide in from the bottom, and the other from the top Mar 29 18:22:32 it's a tabstrip and a viewpager Mar 29 18:24:10 currently calling set{Enter,Exit}Tranmsition in the target fragment's onCreateView Mar 29 18:24:32 and only enter seems to do anything, but that actually sets the transition for going back to the first fragment Mar 29 18:24:36 Darkwater: https://medium.com/@BashaChris/the-android-viewpager-has-become-a-fairly-popular-component-among-android-apps-its-simple-6bca403b16d4 Mar 29 18:25:16 it's not about the viewpager Mar 29 18:25:25 that;s just a view in my target fragment Mar 29 18:25:31 oh, well. I'll go back to square one and reimport the project from Eclipse and see if it will let me manage the project dependencies Mar 29 18:25:49 Plugh: The Windows Android Studio has that button. Mar 29 18:26:25 I've had a lot of bad luck w/ importing from eclipse into AS lately Mar 29 18:26:33 enough that it's easier to just manually move it all over Mar 29 18:26:41 Project Structure > app > Dependencies > + Mar 29 18:26:47 TacticalJoke: I can't find it. It isn't where it is in my own projects Mar 29 18:27:30 g00s: i'm starting 3 days off tomorrow morning Mar 29 18:27:56 thepoosh i'm surprised they are letting you take off with the deadline ! Mar 29 18:28:03 TacticalJoke: I have the File drop down menu and it has an entry "Project Structure...". That opens a dialog box and there is no "app" entry. Mar 29 18:28:05 boss seems pretty rough Mar 29 18:28:15 i told by boss about it over a month ago Mar 29 18:28:15 You should see "Modules" on the left. Mar 29 18:28:47 yes. There are three listed. One is the project and the other two are depenendencies. Mar 29 18:28:47 plus i'm working from home without clocking in and have been working weekends Mar 29 18:28:48 thepoosh where i used to work, this just meant that upto the weeks of vacation, you just worked twice as hard, and when you came back, as well also :D Mar 29 18:28:53 Select the project. Mar 29 18:29:15 been working my ass off for the past week Mar 29 18:29:15 TacticalJoke: It is highlighted. Mar 29 18:29:30 Then Dependencies on the right. Mar 29 18:29:39 Nothing is shown on the right. Mar 29 18:30:35 Is there some setting in AS that could prevent it from showing the depenency information on the right side of the project structure dialog? Mar 29 18:30:42 Which tabs do you see? Mar 29 18:31:20 no tabs. Just an empty gray area. Mar 29 18:31:50 Its strange. I usually see stuff on the right when I open my own project. Mar 29 18:34:05 I moved the project to a different directory. Perhaps there is a bad path in some file. I'll search for it and see if I can find one. Mar 29 18:49:55 okay, fuck this Mar 29 18:50:18 what is the simplest way to add any somewhat decent transition to a fragment transaction? Mar 29 18:50:36 Hi, what exactly am I supposed to download to get android studio? Mar 29 18:51:05 I gave up and started over. I started with a fresh copy of the source and reimported it from Eclipse and now Project Structure dialog has a lot of what I expect to see but that was missing from the previous version. All I can figure is that moving the project to a sub-directory of where it was originally being worked on confused Android Studio. Mar 29 18:51:18 teotwaki: Which OS? Mar 29 18:51:19 <_Auron_> teotwaki: http://developer.android.com/sdk/index.html <-- click on the download link? Mar 29 18:51:22 I got android-studio-ide-135.1740770-linux.zip from developer.android.com, but am not figuring out where studio.sh is supposed to be? Mar 29 18:51:23 <_Auron_> if you're on Windows Mar 29 18:51:28 TacticalJoke: fedora Mar 29 18:51:35 Now I just need to re-add modules and dependenecies. Mar 29 18:51:40 can't you get it with rpm? Mar 29 18:51:52 <_Auron_> ah nm Mar 29 18:52:14 Darkwater: haven't checked to be honest, but I'd rather not install any useless RPMs if you can prevent it. Mar 29 18:52:45 shouldn't the first source for software be your package manager though? Mar 29 18:53:17 I've never really used fedora but it's like that for debian (incl. ubuntu) and arch Mar 29 18:53:45 o_O Mar 29 18:53:47 Darkwater: I didn't see any notice on d.a.c that said "Check your package manager first prior to using these official releases." Mar 29 18:53:55 but I guess that could make sense. Mar 29 18:53:56 not necessarily, that all depends on your specific config Mar 29 18:54:02 see there's a reason people made package managers Mar 29 18:54:09 dac? Mar 29 18:54:15 developer.android.com Mar 29 18:54:22 oh Mar 29 18:54:30 teotwaki: Did you grab the right package? It should have a .tgz extension Mar 29 18:54:31 wait Mar 29 18:54:32 * ravilov checs Mar 29 18:54:34 checks* Mar 29 18:54:43 is this still the android dev channek? Mar 29 18:54:48 oh, odd. they do put it in to a .zip. Mar 29 18:54:48 l* Mar 29 18:55:11 Plugh: yeah, also noticed that some tutorial reference a "bundle" file, whereas now it's called "ide" Mar 29 18:55:37 You can get a bundle on Windows; not sure about on other OSes. Mar 29 18:56:03 also, not seeing anything related to studio in yum. Mar 29 18:56:39 teotwaki: If you downloaded that .zip for Linux have you extracted the contents somewhere on your machine? Mar 29 18:56:46 Plugh: aye Mar 29 18:57:00 Plugh: also ran tools/android to get whatever images and stuff I needed. Mar 29 18:57:20 I'm currently under Windows. I don't have my Linux machine running to check how I set up AS under Linux. Mar 29 18:57:52 teotwaki: ok, so you have made some progress. Mar 29 18:58:21 teotwaki: if you have gotten that far, what part has you stuck? Mar 29 18:58:22 anyway, ran `find . -name '*studio*'`, but the only results are a jpg and a jar. Mar 29 18:58:41 Plugh: I don't know what to run to actually launch the studio main binary :D Mar 29 19:01:34 Is there a bin directory at the top level of the stuff you extracted? Mar 29 19:01:40 nope Mar 29 19:01:57 top-dir: add-ons build-tools extras platforms platform-tools samples SDK Readme.txt sources system-images temp tools Mar 29 19:02:36 find . -type d -name bin: ./tools/apps/SdkController/bin ./tools/proguard/bin Mar 29 19:04:34 There should be an executable to run or a shell script. Mar 29 19:04:46 what about files ending in .sh? Mar 29 19:05:06 what about executable files? Mar 29 19:05:09 only stuff in ./tools/proguard/bin Mar 29 19:06:57 https://gist.github.com/teotwaki/7588a41251b3a591b75d Mar 29 19:07:01 Darkwater: ^ Mar 29 19:07:27 oh god, that's terrible Mar 29 19:07:29 teotwaki: The doc at http://developer.android.com/sdk/installing/index.html?pkg=studio hasn't helped? Mar 29 19:09:14 Plugh & Darkwater: ok, nevermind. I must be missing something. Will put it to rest for tonight and see again tomorrow or something. Thanks for your help and patience. Mar 29 19:10:01 tomorrow, check if you got the right zip Mar 29 19:10:09 will do Mar 29 19:10:14 good luck Mar 29 19:10:19 just going to scratch everything, redownload and all. Mar 29 19:10:22 must have messed up somewhere. Mar 29 19:11:42 Possibly. I don't recall having any trouble getting AS running. I was more confused by all the stuff I had to do and download before I could do something with it. Mar 29 19:13:14 It is such a pain not having Linux running on one of my machines with my main computer down. Mar 29 19:13:59 we dont have to call something like ButterKnife.inject(this) for KotterKnife? Mar 29 19:15:29 No Mar 29 19:15:47 Sweet! thanks Mar 29 19:21:43 Plugh & Darkwater: Figured it out: Don't try to unzip using tar. return I_AM_AN_IDIOT. Mar 29 19:21:59 tar isn't zip... Mar 29 19:22:37 is github down ? Mar 29 19:22:43 combine that with zsh's magic complete, I kept untaring the sdk instead of unzipping the studio. Mar 29 19:22:50 WFM. Mar 29 19:22:56 It's been up and down recently, though. Mar 29 19:23:06 g00s: they're under a massive DDOS Mar 29 19:23:31 g00s: https://status.github.com/messages?latest Mar 29 19:23:34 as more and more projects migrate to github, that will probably happen more. just one big centralized place that everyone will target Mar 29 19:23:57 making your decentralized version control system centralized ;) Mar 29 19:24:11 you can always publish a repo somewhere else Mar 29 19:24:15 teotwaki: The extension should have told you that. Good that you figured it out. :) Mar 29 19:24:34 the problem is centralized documentation and issue management Mar 29 19:25:04 teotwaki: *laughs a bit internally* Mar 29 19:25:05 you can continue to work without github being up Mar 29 19:25:10 I think you need some sleep :v Mar 29 19:25:45 well if you are browsing repos and going through code to find something, github down is pretty much show stopper. whare are you going to do, clone the whole fucking thing? Mar 29 19:25:56 duh Mar 29 19:26:01 g00s: clone with a depth of 1? Mar 29 19:26:22 yeah, 'clone all github repos' Mar 29 19:26:25 granted, only works if you're looking for something in the history. Mar 29 19:26:33 Clone them once a day, every day. Mar 29 19:26:44 someone should make a git repo with each and every git repo in it as submodule Mar 29 19:26:46 i'll keep a backup of those on my phone Mar 29 19:26:51 including itself Mar 29 19:26:51 g00s: github offers a global rsync, no? Mar 29 19:27:50 Hi) Is it good practice to use ViewPager 'column mode'? It seems to be an easy pattern. But looks like it's unpopular. Any disadvantages? Mar 29 19:28:10 what's the preferred way to publish android code in git? include idea files or leave them out? Mar 29 19:28:39 yawkat no .iml, .idea, or .gradle files Mar 29 19:28:50 icedp what is 'column mode' Mar 29 19:29:16 .gradle files seem kinda necessary, i come from maven and we usually include poms, how are .gradles different? Mar 29 19:29:33 not build.gradle, .gradle dirs Mar 29 19:29:43 ah okay, thanks Mar 29 19:29:47 g00s: returning less then 1.0 in getPageWidth Mar 29 19:29:47 so i should say *.iml, .idea, and .gradle Mar 29 19:30:06 yawkat yes, make sure you have your gradle build files ! Mar 29 19:30:10 g00s: in fragment adapter Mar 29 19:30:17 im guessing no gradle wrapper stuff either? like gradlew etc Mar 29 19:30:28 icedp ah, never tried that Mar 29 19:30:41 yawkat that should be in Mar 29 19:30:44 My .hgignore (not rooted) is this: .gradle/, .idea/, build/, local.properties, *.iml Mar 29 19:30:54 okay thank you Mar 29 19:30:56 icedp look at a jakewharton project, do what he does Mar 29 19:31:25 icedp sorry, i mean yawkat Mar 29 19:31:42 TacticalJoke, similar here, also added *.apk Mar 29 19:31:52 gradlewrapper seems to be a convenience, including them with a project seems kinda lame Mar 29 19:32:17 yawkat https://github.com/JakeWharton/NotRxAndroid/blob/master/.gitignore Mar 29 19:32:37 yep thank you, ill use TacticalJokes list, it seems like its mostly the same Mar 29 19:41:07 hi :) Mar 29 19:41:47 i'm installing android studio in linux, do i need to install the oracle java runtime environment before the jdk? Mar 29 19:42:17 jasabella: jdk will install that too Mar 29 19:42:26 JRE is a part of the JDK Mar 29 19:43:11 ahhh Mar 29 19:43:30 now i gotta uninstall openjdk Mar 29 19:43:35 (first) Mar 29 20:04:56 hi, suppose i have a long contents and i put it inside a scrollview, the user reads the middle of the article or contents and navigates away or close the app using the back button. next time he opens the app can it automatically goes to where he last read the article using this method: https://asishinwp.wordpress.com/2013/04/15/save-scrollview-position-resume-scrollview-from-that-position/ Mar 29 20:13:05 I can't seem to get my activity to resize when the keyboard appears. I've tried android:windowSoftInputMode="adjustResize" in the manifest as well as WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE in the activity and all that happens is the keyboard appears over the activity Mar 29 20:15:37 johnc--: probably should use this in onSave(Restore)InstanceState Mar 29 20:18:00 I posted this here earlier, but I didn't get a response, appologies for the repeat messages Mar 29 20:18:15 I have a canvas in a view, and I use PorterDuff.Mode.Clear to clear a hole in what I'm drawing Mar 29 20:18:19 however all this does is draw black Mar 29 20:18:28 http://i.imgur.com/cV4wiPP.png Mar 29 20:18:55 All SO suggest is to us a bitmap instead, which I would prefer to avoid, since bitmaps and circles are generally pretty terrible Mar 29 20:19:00 huh Mar 29 20:19:09 ollien, what did you expect for it to happen? Mar 29 20:19:14 Mavrik: It to be a transparent hole Mar 29 20:20:04 is your view set as transparent? Mar 29 20:20:30 Mavrik: no, let me give that a shot Mar 29 20:20:33 does drawing a circle of the same size with 0x00000000 color do the same? Mar 29 20:20:38 it's just view.setAlpha(0), correct? Mar 29 20:20:54 ugh Mar 29 20:21:19 I didn't mean setAlpha Mar 29 20:21:24 (what would that accomplish? :P ) Mar 29 20:21:38 Mavrik: Wait, duh, that would make the whole thing transparent Mar 29 20:21:58 what float action button library do you guys recommend? Mar 29 20:22:04 icedp: like this? http://sunil-android.blogspot.in/2013/03/save-and-restore-instance-state.html Mar 29 20:22:10 ollien, i meant the isOpaque call Mar 29 20:22:14 also Mavrik drawing a circle with 0x00000000 draws a transparent circle, but it doesn't have the same transfer mode that I need Mar 29 20:22:32 ollien, I don't understand really Mar 29 20:22:42 Mavrik: hang on Mar 29 20:22:50 rendering "0" color will make that part of the view transparent Mar 29 20:22:50 johnc--: yes Mar 29 20:23:05 ok thanks, will give it a try. Mar 29 20:23:26 Mavrik: it looks like this if I draw a transparent circle, or not Mar 29 20:23:27 http://i.imgur.com/GGlNoSI.png Mar 29 20:23:43 I want that extra bit on the red slice to be transparent Mar 29 20:23:53 the blue circle and the red are two separate views Mar 29 20:24:03 When packaging classes, do you guys package by functionality, or by class types? Mar 29 20:24:25 For example, all classes involved in logging in, would you group them, all together, or have all networking classes in one package, all activities in another, etc? Mar 29 20:24:43 ollien, two separate views or just two separate canvas calls? Mar 29 20:24:49 Mavrik: two seperate views Mar 29 20:24:53 why. Mar 29 20:25:05 Mavrik: because I need to be able to change them dynamically Mar 29 20:25:05 do you need the center to be partially transparent? Mar 29 20:25:14 ollien, no, why two separate views. Mar 29 20:25:32 Mavrik: two reasons Mar 29 20:25:48 1) I will have multiple slices. I want to be bale to change their angles dynamically without redrawing hte whole thing Mar 29 20:25:58 2) Those angles need their own shadows Mar 29 20:26:08 hmm Mar 29 20:26:22 if I can cut a transparent hole in the red view, I'll be all set Mar 29 20:26:28 also Mavrik I called isOpaque, it returned false Mar 29 20:26:29 100% transparent? Mar 29 20:26:35 ollien: you can just draw a circle having antialising mode enabled Mar 29 20:26:37 Mavrik: as in it would show the blue view behind it Mar 29 20:26:44 ollien: If I recall correctly Mar 29 20:26:48 icedp: antialiasing on what, a bitmap? Mar 29 20:26:48 <_Auron_> I believe what you want is bitmap masking Mar 29 20:27:04 ollien, I'm still no sure why just drawing a 0x0 color with SRC mode wouldn't work for you Mar 29 20:27:06 or just using a mask yes :) Mar 29 20:27:08 ollien: on canvas Mar 29 20:27:46 ollien, basically on red view you overwrite the internal pixels with color that has alpha component on 0xFF Mar 29 20:27:51 and SRC mode will always do that Mar 29 20:28:06 so draw red circle and immediately draw a smaller circle of Color.TRANSPARENT with SRC mode Mar 29 20:28:07 icedp: where would I set that? Sorry, I'm not wholly sure. ctrl-f on the canvas docs don't come up with a function call to use Mar 29 20:28:13 ollien: make a custom view, draw anything you want like circles segment with paint in onDraw Mar 29 20:28:23 icedp: right Mar 29 20:28:28 icecube45: paint should have .setAntiAlias(true) Mar 29 20:28:34 Mavrik: The paint should have SRC mode? Mar 29 20:28:55 icecube45: sorry Mar 29 20:28:58 ollien: was for you Mar 29 20:29:12 icedp: how would AA solve the transparency issue? Mar 29 20:29:33 mhm Mar 29 20:29:38 ollien, you did see this doc right: file:///Users/jernej/Library/Application%20Support/Dash/DocSets/Android/Android.docset/Contents/Resources/Documents/docs/reference/android/graphics/PorterDuff.Mode.html Mar 29 20:29:40 er. Mar 29 20:29:47 silly dash Mar 29 20:29:51 https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html Mar 29 20:30:06 Mavrik: yes, I use PorterDuff.Mode.Clear prsently Mar 29 20:30:16 Mavrik you like dash ? Mar 29 20:30:19 i guess so Mar 29 20:30:26 g00s, mhm Mar 29 20:30:29 one sec, giving src a shot Mar 29 20:30:46 Mavrik: no dice. Still a black circle. Mar 29 20:30:54 that means that you somehow mess up the alpha Mar 29 20:31:04 either your Canvas mode is wrong Mar 29 20:31:06 ollien: it should blend nicely at the edges which you don't have now, and unpainted areas should be transparent for sure Mar 29 20:31:12 or some other optimization is disabling the alpha component Mar 29 20:32:09 ollien, hmm, I missed that, are you rendering on a custom view Canvas or on a bitmap? Mar 29 20:32:18 Mavrik: custom view canvas Mar 29 20:32:30 strange. Mar 29 20:32:33 Would anybody mind answering my question re: packages? Mar 29 20:32:40 Mavrik: Here's some truncated source Mar 29 20:32:42 https://gist.github.com/ollien/197676916c6a1e7427fd Mar 29 20:32:49 Anthaas: Sorry, I'm not one to do that normally Mar 29 20:32:52 I would answer if I could Mar 29 20:33:02 What do you mean? Mar 29 20:33:06 You dont use packages? Mar 29 20:33:14 Anthaas: Not to seperate classes no Mar 29 20:33:23 not unless it's an external library Mar 29 20:33:26 You just bung it all under the main default package? Mar 29 20:33:38 Anthaas: ..yes? Mar 29 20:33:42 Ahh fair enough, I see your point. Mar 29 20:33:57 I guess there is no real benefit other than making it easier to see (if you see it that way) Mar 29 20:36:19 Hmm, those that do? Mar 29 20:36:27 Or is there a suggested method? Mar 29 20:36:37 Or is the majority vote just to whack it all in the default package? Mar 29 20:37:04 Mavrik: anything I can do? Mar 29 20:38:00 many people do it many different ways Anthaas. Until your design requires package scoping do whatever feels comfortable Mar 29 20:38:43 ollien, hrmf, no idea really what's going on there, it looks like Android is trying to be too smart Mar 29 20:38:51 Hmm, I've tended to group classes by functionalties, for example, com.example.myapp.activities (for all activity classes), com.example.myapp.networking for all networking classes, etc. Mar 29 20:38:52 ollien, can you set layertype to software and try again Mar 29 20:38:58 Mavrik: yep hang on Mar 29 20:39:28 Mavrik: should I just do that in my constructor or just before I draw the transparent circle? Mar 29 20:39:35 MikeWallaceDev saw this today https://blog.stylingandroid.com/custom-colour-spans/ Mar 29 20:39:39 MikeWallaceDev: Oops, that was supposed to be a reply to you Mar 29 20:39:47 ollien, you should set layertype of the view before it's being drawn the first time Mar 29 20:39:49 thanks g00s already saw it ;) Mar 29 20:39:59 I saw it Anthaas :) Mar 29 20:40:04 MikeWallaceDev: got it. Any specific paint I should or shouldn't use? Mar 29 20:40:08 ollien, if that fails, I suggest you render mask to a bitmap, and then use porterduff modes to render masked circle :/ Mar 29 20:40:24 Mavrik: :/ I was hoping to avoid that Mar 29 20:40:28 or someone else comes here and explains what the heck is going on Mar 29 20:40:43 Mavrik: BOOM. Mar 29 20:40:46 as it looks like the alpha layer is probably stored separately and it's not being cleared properly. Mar 29 20:40:55 Mavrik: setLayerType(LAYER_TYPE_SOFTWARE,new Paint()); in the constructor did it Mar 29 20:41:37 so it's a hardware acceleration optimization issue Mar 29 20:41:39 still wierd Mar 29 20:41:54 http://i.imgur.com/bRAaSlx.png Mar 29 20:41:57 woo! Mar 29 20:42:54 Mavrik: Thanks so much! Mar 29 20:43:03 this issue has been testing me for days Mar 29 20:43:24 *sigh* Mar 29 20:43:31 Google really needs to document the HW rendering pipeline better Mar 29 20:43:45 a few I/O talks from Romain and Chet just don't cut it Mar 29 20:43:54 Mavrik: Google? Documentation? You're hysterical. Mar 29 20:44:39 http://developer.android.com/guide/topics/graphics/hardware-accel.html Mar 29 20:44:55 i did not backlog, but some operation on canvas are well-known to NOT being supported Mar 29 20:44:57 adq, do you want me to kick your ass? Mar 29 20:45:06 * Mavrik prepares a Samsung phone. Mar 29 20:45:08 lol Mar 29 20:45:18 Mavrik: I'm curious as to why that didn't work Mar 29 20:45:24 I'm not too familiar with HW vs SW rendering Mar 29 20:45:39 * adq runs Mar 29 20:45:51 :o Mar 29 20:45:52 As I said, I think Android remembers which pixels you touched when rendering the view Mar 29 20:45:54 adq: be thankful it's not a snapdragon 810 Mar 29 20:45:59 and then uses that as alpha Mar 29 20:46:03 got it Mar 29 20:46:05 but really have to check the source Mar 29 20:46:09 *shrugs* Mar 29 20:46:10 to see what's really goin on Mar 29 20:46:12 i just wanted to pointed the "unsupported drawing op" Mar 29 20:46:23 to point* (sic) Mar 29 20:47:02 adq, mhm, but the issue was a simple draw circle with 100% alpha color :) Mar 29 20:47:59 :)) Mar 29 20:49:32 I can't seem to get my activity to resize when the keyboard appears. I've tried android:windowSoftInputMode="adjustResize" in the manifest as well as WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE in the activity and all that happens is the keyboard appears over the activity Mar 29 20:50:05 cr5315, using that kitkat full screen mode? Mar 29 20:50:18 translucent status and nav bar? known bug Mar 29 20:51:32 I do have the status bar set to translucent on API 21+ Mar 29 20:51:57 bug 63777 Mar 29 20:52:08 dont know if it also happens on 21 Mar 29 20:52:53 ollien: sorry, what do you want to get in the end? an circle/segment with a transparent middle? Mar 29 20:53:03 icedp: yeah. Mar 29 20:53:04 I got it though Mar 29 20:53:15 just had to use the software rendering pipeline Mar 29 20:53:16 http://i.imgur.com/bRAaSlx.png Mar 29 20:54:17 ollien: wrong picture? Mar 29 20:54:26 icedp: no, right picture Mar 29 20:54:29 hm Mar 29 20:54:29 cr5315, https://code.google.com/p/android/issues/detail?id=63777 Mar 29 20:54:31 the alternative was Mar 29 20:54:42 http://i.imgur.com/GGlNoSI.png Mar 29 20:55:17 according to the resolution, it should be fixed in api21 Mar 29 20:55:38 pfn: it's obselete Mar 29 20:55:50 Someone just went through and did this to a ton of issues back in december Mar 29 20:55:56 that's what obsolete means in their issue tracker Mar 29 20:56:11 pfn: then what's FutureRelease Mar 29 20:56:13 means they think they fixed it and are lazy as fuck about manually verifying Mar 29 20:56:23 it means they definitely fixed it Mar 29 20:56:51 pfn: check out this /r/android post Mar 29 20:56:52 http://www.reddit.com/r/Android/comments/2qjkuf/someone_silently_closed_37_1952_of_android_bugs/ Mar 29 20:56:53 it means they fixed in a future release, whether that release has been released is unknown :D Mar 29 20:56:56 same thing in all of these Mar 29 20:57:01 basically they rewrote a bunch of code for api21 and think they fixed the problem in general, they went and marked them as obsolete Mar 29 20:57:05 just a bunch of issues they did it with Mar 29 20:57:29 Obsolete: Similar to Unreproducible, but with a reasonable certainty that the bug did exist in the reported version but was already fixed in a later release. Mar 29 20:57:35 FutureRelease: This bug has been fixed (or feature implemented) in a source tree, but has not yet been included in a formal release. Mar 29 20:57:39 that's from https://source.android.com/source/life-of-a-bug.html Mar 29 20:57:55 basically, Obsolete means "we fixed it on accident" :P Mar 29 20:57:55 ollien, I know, they marked a bunch of my issues I reported as obsolete, for the most part, they've all been fixed in 21 for me Mar 29 20:57:58 lewellyn: themoreyouknow.gif Mar 29 20:58:06 lewellyn, basically Mar 29 20:58:47 pfn, well it's happening for me on api 21 Mar 29 20:59:07 I'm trying something in a SO linked on the bug Mar 29 20:59:13 are you actually running on android 5?or just setting target 21 Mar 29 20:59:43 CyanogeMod 12, so yes Mar 29 20:59:54 * pfn is still using the workaround code on 21 buy because the workaround isn't broken Mar 29 21:00:11 cr5315, test on actual android 5.0 and report the issue again Mar 29 21:00:27 https://gist.github.com/pfn/cdb7f1b4288c38993345 Mar 29 21:00:42 something I wrote that makes it work for my particular case Mar 29 21:01:32 pfn: did not know you could use scala on android Mar 29 21:01:33 the more you know Mar 29 21:01:37 Cyanogemod 12 is actual 5.0 Mar 29 21:01:51 I missed the n again >.> Mar 29 21:02:04 I'll go grab my nexus 7 and test on 5.1 Mar 29 21:02:17 ollien: if you're masochistic enough, you can use almost anything. Mar 29 21:02:28 lewellyn, no masochism involved Mar 29 21:02:40 lewellyn: write it in branfuck Mar 29 21:02:42 pfn: someone had to be masochistic, even if not you :) Mar 29 21:02:51 ollien: i'm sure there are brainfuck android apps. :( Mar 29 21:03:05 lewellyn: also, can you reverse entropy if you're masochistic? Mar 29 21:03:28 ollien: that's getting into the realm of existentialism. i think that's considered off topic :) Mar 29 21:03:38 hah Mar 29 21:05:18 one of these days, i should wire up cobol to draw android widgets. PERFORM JUMPS THRU FLAMING-HOOPS UNTIL HELL-FREEZES-OVER. Mar 29 21:05:21 :) Mar 29 21:06:13 maybe the gtk+ or vala stuff could be useful for that. Mar 29 21:09:23 This is annoying. I set the width of the Google Signin Button AND the Facebook Login Button to 250dp. The Facebook button is wider. Mar 29 21:10:09 facebook thinks it's better. Mar 29 21:10:56 They are wrong, its way to short, and annoyingly wider than I asked it to be. Mar 29 21:11:07 (or googles is not wide enough - Im not sure which) Mar 29 21:11:55 Has anyone had any experience getting these buttons to look similar? Mar 29 21:13:08 gradle website looks pretty shnazzy. man these guys must be desperate to be bought Mar 29 21:13:14 i dont think i used dp. but i made accurate UI using percentage coordinates Mar 29 21:13:17 use hierarchy viewer and see why they aren't the same visually Mar 29 21:13:53 well just %pixels for the UI I mean Mar 29 21:13:59 g00s: i've noticed many sites are slick...i guess there's a lot of underutilized webdev talent out there Mar 29 21:14:24 now that I ported all of keepasslib to java, I should rewrite keepshare to use it instead of junky keepassdroid Mar 29 21:15:06 take a screenshot, open in an image editor, measure pixel width of both :p Mar 29 21:15:06 can turn keepshare into a much more fully fledged setup Mar 29 21:15:34 hierarchy viewer will help you figure out why they appear different. Mar 29 21:15:35 use it Mar 29 21:20:05 pfn, I ended up just disabling the translucent status bar and everything works now. Thanks for the help Mar 29 21:20:20 I wish google would fix accessibility services fucking up performance Mar 29 21:20:27 😣 Mar 29 21:20:44 cr5315, except now you don't have translucent status bars anymore... Mar 29 21:21:01 it was only aesthetic anyway Mar 29 21:21:11 it's a nice aesthetic Mar 29 21:21:16 imo it looks better without Mar 29 21:21:20 not at all Mar 29 21:21:36 more consistent to not have it for pre-lollipop users Mar 29 21:21:48 google keep try to stealing from iOS u_u Mar 29 21:21:49 myke, kitkat Mar 29 21:21:50 i only had it enable for lollipop+ Mar 29 21:21:55 orly Mar 29 21:21:59 i need to get newer devices :/ Mar 29 21:22:29 I don't recall ios having translucent status bars Mar 29 21:23:05 pfn: right. but it's start the thing about change color of Mar 29 21:23:07 Its almost not worth bothering with Google AND Facebook sign in Mar 29 21:23:26 Anthaas: should be easy to have the other once you ahve the first, they're both oauth flows Mar 29 21:23:27 abara, what? Mar 29 21:23:37 myke: Its the layout thats the pain. Mar 29 21:23:39 http://imgur.com/PlEgzJg Mar 29 21:23:51 That is them by default, and when I try and fix their sizes, they are still somehow different. Mar 29 21:24:07 Anthaas: can't you make your own buttons? just get an official icon image and do a regular button? Mar 29 21:24:11 abara, you mean changing status bar color? that's kind of a natural evolution of translucent status bars Mar 29 21:24:12 with a layout that has the image Mar 29 21:24:54 i assume there's some api for getting those buttons directly as images? is that what you guys are doing? Mar 29 21:25:26 pfn: yes, but the "evolution" came first. so the translucente is the evolution. Mar 29 21:25:45 Could do, and they are part of the Google Play Services Lib and Facebook SDK Mar 29 21:25:54 ah ok Mar 29 21:25:56 abara, kitkat was a couple years ago, ios 7 did this? Mar 29 21:25:57 So they are provided. Mar 29 21:25:58 the one thing i haven't messed with Mar 29 21:26:02 doesn't sound like first Mar 29 21:26:07 the official sdks from google and facebook Mar 29 21:26:08 Just seems absolutely ridiculous that you can't fix their sizes to be the same size.... Mar 29 21:26:17 i've been using generic oauth and Spring, etc Mar 29 21:26:19 pfn: humm Mar 29 21:26:58 Anthaas: reminds me of everything i hate about the web. i'd just download an approved icon for each and make my own button Mar 29 21:27:07 and for that matter, tinting the status bar and nav was also possible on kitkat, just not provided by the platform Mar 29 21:27:23 Anthaas, set the layout properly... Mar 29 21:27:45 pfn: Explain please? Mar 29 21:27:56 I've already told you what to do Mar 29 21:27:59 you ignore Mar 29 21:28:11 hierarchy viewer, examine, fix Mar 29 21:28:23 pfn: 4.4W released on June 25, 2014 Mar 29 21:28:31 iOS 7 2013 Mar 29 21:28:31 abara, that's W Mar 29 21:28:35 not 4.4 Mar 29 21:29:24 pfn: Ahh sorry, it wasn't an ignore, because you didn't tag me I figured you were talking to the same person throughout. Mar 29 21:29:42 pfn: true! sorry about the mistakes. 4.4 was released (almost) 1 month later Mar 29 21:30:01 abara, same time for all intents and purposes Mar 29 21:30:12 pfn: yes. Mar 29 21:30:20 u_u Mar 29 21:30:41 in any case, I like translucent nav and status a lot Mar 29 21:30:50 I wish it were used much more often Mar 29 21:31:13 stupid google camera and photos+ don't even do it right Mar 29 21:31:33 pfn: i kinda like it, but sometimes people decide to use an Yellow over there. Mar 29 21:31:34 hey guys... just wondering if there is some workaround to this issue. I need to get a screenshot of a device through a Service... i know you need to pass a View in order to get a screenshot sooo is this even possible if my Activity is destroyed? Mar 29 21:31:41 this just burn my eyes Mar 29 21:32:21 that's a different issue Mar 29 21:32:30 people sometimes have poor design taste Mar 29 21:32:57 I'm having trouble getting my autocompletetextview to show results... any ideas what's up with that? Mar 29 21:33:20 MartialLaw: afaik, if its destroyed there is no hope Mar 29 21:33:26 t0astt you figured out your pre lollipop elevation? Mar 29 21:33:28 https://gist.github.com/t0astt/9759fd751471e9eac88d Mar 29 21:33:49 memorion: I did not, unfortunately. I'm going to tackle that after I get some more functinality done Mar 29 21:34:06 t0astt okay Mar 29 21:34:27 I was trying what you gave me yesterday but I was getting some NPE when my app started up Mar 29 21:35:00 t0astt: what a code dude .-. Mar 29 21:35:32 abara: good/bad/not enough ? Mar 29 21:36:12 t0astt: can't say nothing so straight, but i have issues looking a runnable starting another thread .-. Mar 29 21:36:34 are you talking about the runOnUiThread(new Runnable() ) ? Mar 29 21:36:57 I had to do that in order to set the adapter on the autocompletetextview... it was working last night but now it's not working for some reason :P Mar 29 21:37:06 Hahaha brilliant Mar 29 21:37:20 Release HierarchyViewer. Don't allow it to be used on non-rooted devices. Mar 29 21:37:28 (Without external code added) Mar 29 21:37:29 Anthaas, view server Mar 29 21:37:33 ^^ Mar 29 21:37:40 use it, trivial Mar 29 21:37:48 or just use genymotion Mar 29 21:37:48 t0astt: dude, i need some air now to figure it out! peace/out/! Mar 29 21:37:57 exit Mar 29 21:44:34 pfn: https://plus.google.com/+ColtMcAnlis/posts/cNYPmpDZy3i Mar 29 21:45:51 Anthaas, nice tip Mar 29 21:46:32 ugh dealing with text wrapping Mar 29 21:48:10 Anthaas you asked about reactive programming yesterday right? wanted to send you this but couldn't find it in time https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 Mar 29 21:48:27 memorion: Ahh cool - thanks :D I'll take a look in a sec Mar 29 21:50:02 pfn: Also, from code.google.com, a developer has said they are planning on properly integrating HV into AS at some point this year so none of this is a problem. Mar 29 21:52:49 neat, I suppose, I'll look forward to its integration into intellij Mar 29 22:16:39 hmm Mar 29 22:16:48 is there any good way of structuring touch event stuff Mar 29 22:16:54 so you don't end up with 2500 line classes? Mar 29 22:19:32 pfn: Decided to go with the ViewServer class, couldnt get the other way working, although I would have preferred to. Mar 29 22:20:49 Not entirely sure what I should be looking for, but the obvious things seem to look right. Mar 29 22:20:59 do you guys know how to do ViewHolder in Kotlin? Mar 29 22:28:09 hierarchy viewer shows them as the same size Mar 29 22:29:28 Anthaas maybe enable show layout bounds on the device just to check of they have some weird padding? Mar 29 22:30:02 memorion: Bingo! Mar 29 22:30:10 ffs Google, you've let me down for the last time. Mar 29 22:30:23 (empty threat...) Mar 29 22:30:37 errr, is there a way to get rid of that? haha Mar 29 22:31:55 no idea, how do you use the buttons? Mar 29 22:32:19 So what exactly counts as a Google Places API Request? I keep hitting my daily quota of 1k, however I only see 231 response codes in my "Usage" section. Does each search result count as a request? Mar 29 22:33:02 memorion: What do you mean? I have them defined in XML. Mar 29 22:33:35 Anthaas can you just try to set the padding manually then? Mar 29 22:34:07 memorion: Tried that already :/ no effect. Mar 29 22:34:48 maybe wrap them each in a linearlayout or something? no idea if that could help Mar 29 22:39:59 Argh. Mar 29 22:40:03 CHEEZOID KILL SELF! Mar 29 22:41:31 whats the best place to get peple to beta test apps? Mar 29 22:42:16 DadFoundMy: right here haha Mar 29 22:43:15 i guess ill just post the apk and let whoever try it try it Mar 29 22:44:25 https://drive.google.com/open?id=0B71NR7FwdIltNVhrOGlKNWlkN0U&authuser=0 Mar 29 22:44:33 i think that link works for the apk Mar 29 22:45:04 no permission here Mar 29 22:45:25 sorry try this one https://drive.google.com/file/d/0B71NR7FwdIltNVhrOGlKNWlkN0U/view?usp=sharing Mar 29 22:46:01 DadFoundMy: Might want to give a heads up as to what it does Mar 29 22:46:12 Anthaas: it's a high school agenda book Mar 29 22:46:17 Anthaas, hierarchy viewer would have shown that they have different padding Mar 29 22:46:46 Anthaas, either by looking at the screen shot of the particular view, or looking at the view dimension properties Mar 29 22:47:48 pfn: Yeah, I missed that, I did see it after - thanks though :-) I feel like an idiot right now :/ Mar 29 22:48:13 Trying to work out a way to remove the padding in XML Mar 29 22:50:07 depends, you can set padding in xml Mar 29 22:50:18 which means you can set it to 0 Mar 29 22:50:44 Tried, doesn't work :/ Mar 29 22:50:48 but if what you're working with contains child views, you can't change the padding on those Mar 29 22:51:07 Yeah, thats what is going on (according to hierarchy viewer (I think ) ) Mar 29 22:51:15 The button contains a view which is the button. Mar 29 22:51:18 If that makes sense Mar 29 22:51:23 in any case, you can still look at hv to see what introduces the padding Mar 29 22:51:51 Yeah, it is the child view. Mar 29 22:51:51 you can add a similar padding to the button that doesn't behave the same way Mar 29 22:54:00 do you know an app that has the buttons the same size? maybe lookl at that with debug layoutbounds Mar 29 22:54:55 runkeeper does it Mar 29 22:55:48 Values in the HV are in px, right? Mar 29 22:59:00 yes Mar 29 23:02:10 DadFoundMy: nice app so far Mar 29 23:02:42 * Anthaas sighs Mar 29 23:04:20 I almost give up haha Mar 29 23:04:33 The parent view has the layout, but the child view adds the padding. Mar 29 23:04:44 never quit Mar 29 23:05:02 I've been sat for far too long trying to get two buttons to be the same width and height. Mar 29 23:05:05 Far far too long. Mar 29 23:05:06 Anthaas maybe I'm saving you just gice me a sex Mar 29 23:05:08 sex Mar 29 23:05:09 sec Mar 29 23:05:10 lol Mar 29 23:05:37 memorion: If you do, my love will be undying haha Mar 29 23:06:00 o_O Mar 29 23:06:56 wow. did i wander into #android-love? Mar 29 23:07:20 I'm thinking Mar 29 23:07:38 hm maybe it's easier if I just tell you what I'm doing :D I downloaded the runkeeper.apk from apkmirror and there are 9patches for your buttons in it Mar 29 23:07:44 There is probably an area of the internet where....nvm, Mar 29 23:08:37 Anthaas: can you set negative padding? Mar 29 23:08:53 Anthaas: just a blind guess Mar 29 23:09:47 icedp: Nope - not sure that makes sense either, would mean the view could be drawn beyond the bounds of the view. Mar 29 23:10:38 Anthaas: yes, but I though you need to remove (or compensate) the padding of the child that you cannot change.. so.. Mar 29 23:10:45 Anthaas http://imgur.com/8U8lF5V would these help you? Mar 29 23:10:48 Anthaas: I don't know if it's allowed though Mar 29 23:12:35 memorion: Oooh, I've just understood what you were doing! Sorry! Thanks! :D Mar 29 23:12:54 memorion: https://developers.google.com/+/branding-guidelines#sign-in-button Mar 29 23:14:03 Anthaas ? Mar 29 23:15:11 in the runkeeper apk are all the components you need "/res/drawable-xx/common_signin_..." Mar 29 23:15:40 Does anyone know why when using android:windowSoftInputMode="adjustPan" on an activity it only works when you activate the keyboard the first time? It doesn't pan anymore once you close the keyboard and try it again. Mar 29 23:16:47 Anthaas: Those are the .9 images of the button. Mar 29 23:17:23 yes, can't you make your own button with those and make it the size you want? Mar 29 23:17:41 memorion: Yeah - I am now :-) thanks for your help. Mar 29 23:18:08 is there a minimum age to sumbit an app to the play store? Mar 29 23:18:25 Anthaas no problem, still pretty weird to have to jump to those hoops Mar 29 23:18:57 memorion: Yeah :/ seems a bit odd that they would add that padding to their button by default and not let you add it yourself if you want it. Mar 29 23:19:33 9-patches always bring in their own padding Mar 29 23:19:43 because the alternative is even worse. Mar 29 23:19:59 Anthaas, you can change the padding. Mar 29 23:20:25 Muchoz, hmm, never seen that case, maybe you're overriding something in layout? Mar 29 23:20:37 Anthaas, change minWidth and minHeight to 0dp and then add paddingTop etc. < Mavrik Mar 29 23:21:11 I'm using it right now. Mar 29 23:21:30 https://i.imgur.com/Mi7oZ2y.png Mar 29 23:22:24 Muchoz: com.google.android.gms.common.SignInButton - the padding is added in the buttons childView, can't be edited. Mar 29 23:22:46 Anthaas, you want to see a working preview? Mar 29 23:22:55 Don't believe me if you want to. Mar 29 23:23:25 Muchoz: Please. Its not that I don't believe you, I am not finding it possible to change com.google.android.gms.common.SignInButton in XML. android.widget.Button maybe, but not the SignInButton Mar 29 23:24:25 Make your own then? Mar 29 23:24:37 Which is what I just said I am doing :P Mar 29 23:24:49 Ah, I'm not up to date with the chat. Mar 29 23:25:09 np :P Thanks anyway - I do appreciate it. Mar 29 23:30:24 Well there seems to be another bug in Android: adjustPan doesn't work after the first try if android:gravity or android:layout_gravity is set to a centering option. Mar 29 23:35:43 can anyone tell me that if I call ViewGroup.layout(int, int, int, int) on a ViewGroup, without changing its size, does the layout pass happen on all of its childern? Mar 29 23:36:15 if yes is there an efficient way of translating a ViewGroup? Mar 30 00:01:58 Crunching Cruncher failed. Mar 30 00:02:16 Sounds almost like what I'm calling it... Mar 30 00:32:00 What does it mean? It goes every 1 second. - I mean „set a wokeup alarm" https://usercontent.irccloud-cdn.com/file/WB9rtzUs/Screen+Shot+2015-03-30+at+02.30.18.png Mar 30 01:00:25 Does a widget's id have to be set with @+id/name even if the first reference to it is before it's existence? https://gist.github.com/wldcordeiro/9e2d2dff45a71c5585f2#file-gistfile1-xml-L11 Mar 30 01:00:41 I'm going through the Busy coder's book and this is what one of the examples shows. Mar 30 01:01:13 But Android Studio says there's an error here, if I change line 17's id value to @+id/entry then all is well. Mar 30 01:03:32 wldcordeiro: you're adding id as '@+id/` Mar 30 01:04:00 but for positioning layout (for example rightOf='') you use '@id/' Mar 30 01:04:36 gordon_: That's what I thought, the book just seems to mistake it saying that it's the first appearance that needs the + Mar 30 01:05:03 So for the id attribute you use the + but when referencing you just use @id/ Mar 30 01:05:09 yes Mar 30 01:05:24 well, sometimes you use @+id for layout too Mar 30 01:05:34 but I wouldn't recommend it Mar 30 01:05:50 for me it seems like your design is bad Mar 30 01:05:59 if you need to use @+id for positioning Mar 30 01:06:21 ayy Mar 30 01:06:26 \ ( ^_^)/ Mar 30 01:06:27 This is example code from the book Mar 30 01:09:10 * Muchoz_ hates designing for Android. Mar 30 01:11:07 https://www.youtube.com/watch?v=WsPfSXJaelk Mar 30 01:14:00 wldcordeiro: the book is right... @+id is creating id. it's not compiling with "no resource found that matches" if you use @id first Mar 30 01:14:04 wldcordeiro: at least for me Mar 30 01:15:09 icedp: The code as is from the book doesn't compile. Mar 30 01:15:49 I had to change line 17's value to use @+id/entry instead of @id/entry Mar 30 01:17:40 wldcordeiro: oh ok got it Mar 30 01:18:00 anyone working on a cool app here Mar 30 01:19:29 icedp: basically the book says that the first time in the file that an id is referenced is where the + should be used, but the reality is that it's in the widget's id attribute that the + should be used (from what I can infer.) Mar 30 01:20:19 DragonPunch: I'm building an app for a college radio station for streaming the live stream and past shows. It's kind of cool. :P Mar 30 01:20:46 wldcordeiro: now you are confusing me again. the first time you reference the id + should be used. either it's referenced in id attribute or layout_below attribute - doesn't matter Mar 30 01:21:00 wldcordeiro: as in your gist Mar 30 01:22:27 In the gist the first time is at line 11. without adding the plus to line 17 I get an error about the resource not being found. Mar 30 01:23:48 where does it complain? runtime compile time or render rpeview? Mar 30 01:24:03 memorion: the preview. Mar 30 01:24:33 sync gradle files and try again, that might fix it Mar 30 01:24:48 ah, I mean try again and then sync Mar 30 01:25:45 wldcordeiro: http://t.sql01.com/sc/b7549d19_1427678199.png Mar 30 01:25:52 wldcordeiro: http://t.sql01.com/sc/a7dc8b73_1427678723.png Mar 30 01:26:03 yeah you're right the render preview doesn't understand that but it works Mar 30 01:26:15 Ah okay so it's only the render preview. Mar 30 01:26:44 icedp: What color scheme are you using btw? Mar 30 01:26:49 Is that just darkula? Mar 30 01:26:57 you can also just put a + everywhere and it works I think Mar 30 01:27:18 choose here: http://www.ideacolorthemes.org/home/ Mar 30 01:27:54 memorion: That seems to be the most explicit way to get it to work. Mar 30 01:28:12 Appears that's a bug with the preview if the api level is 21 in the preview. Mar 30 01:28:27 wldcordeiro: ha preview doesn't work in either way for me. didn't notice it since I usually don't use it. it lies almost as often as always Mar 30 01:28:36 wldcordeiro: yes just darkula with different font Mar 30 01:28:40 memorion: I've used that site I was just curious about his in particular. Mar 30 01:29:53 wldcordeiro I have the bug in all API levels Mar 30 01:37:04 wlcordeiro: WOW that sounds like fUN! Mar 30 01:41:36 lamb of god Mar 30 01:41:57 bear of sheeva Mar 30 01:42:17 stout or lager? Mar 30 01:42:26 cider Mar 30 01:42:32 yay Mar 30 01:44:18 raven of odin owns them all! Mar 30 01:44:43 whats up here for real? we are scheduling a pagan ritual or just chilling? Mar 30 01:45:04 the robot god needs the bloog of the organics! Mar 30 01:45:13 Anyone know where I might find that Facebook F logo/icon for a button drawable? Mar 30 01:45:18 The one with the transparent background. Mar 30 01:45:35 http://www.androidicons.com/ Mar 30 01:45:42 http://www.androidicons.com/ Mar 30 01:45:48 https://www.iconfinder.com/ Mar 30 01:45:50 https://www.google.com/search?q=facebook+icon&rlz=1C1CHWA_enUS574US574&espv=2&biw=1097&bih=526&source=lnms&tbm=isch&sa=X&ei=uaoYVbSqIdTYoATy8oA4&ved=0CAYQ_AUoAQ#q=facebook+icon&tbs=isz:i,ic:trans&tbm=isch Mar 30 01:46:12 http://www.androidguys.com/wp-content/uploads/2010/10/icon_facebook_f-300x300.png Mar 30 01:46:18 like that? Mar 30 01:46:37 Anthaas that's in there to isn't it? Mar 30 01:46:46 too* Mar 30 01:47:15 memorion: Its in the button, but its too small and doesn't seem to want to resize when I do resize it. Im creating the buttons myself. Mar 30 01:48:20 m3chanical: Nah, the one with the white bit (outlining the F), but no blue but a transparent background instead Mar 30 01:48:54 but it works in runkeeper so it's not impossible Mar 30 01:49:09 Anthaas, no luck setting padding manually so it matches up? Mar 30 01:49:23 com_faceboook_button_like_icon.png in the apk Mar 30 01:49:24 pfn: The font didn't line up :/ Mar 30 01:50:13 because the Facebook image is so small compared to the G+ one, although I've just created a button using the image provided by google for the background, and added "Sign In " as the text to fix. Mar 30 01:50:21 The button just seem so....messy. Mar 30 01:50:25 buttons* Mar 30 01:50:46 the font shouldn't match though... Mar 30 01:51:12 whats not messy on android anyway? .-. Mar 30 01:51:29 Sorry, I worded that poorly, pfn. What I mean was they weren't aligned with each other. Mar 30 01:51:50 and by font I meant text. Mar 30 01:52:17 http://imgur.com/MCtPwji this how it looks like in runkeeper Mar 30 01:52:36 memorion: is what I want :( Mar 30 01:52:54 Except "in" not "up" Mar 30 01:56:13 well, the text still shouldn't line up Mar 30 01:56:27 they have their different looks Mar 30 01:57:17 but it looks a lot nicer the same and I don't think the runkeeper version conflicts with either of their guidelines Mar 30 01:59:02 memorion: I agree, uploading what it would look like otherwise... Mar 30 02:00:05 pfn: memorion http://imgur.com/hna5m8B Mar 30 02:00:17 I found the f in the runkeeper apk buttons_primary_facebook_normal_dr.png Mar 30 02:00:20 See what I mean? Doesn't look right when they aren't aligned. Mar 30 02:00:52 Indeed Mar 30 02:01:25 Anthaas you use the wrong fb image try buttons_primary_facebook_normal_dr.png Mar 30 02:01:43 memorion: That is the image that Facebook uses in their LoginButton Mar 30 02:01:48 I havent set that. Mar 30 02:02:05 ah you only create the g+ button yourself? Mar 30 02:02:48 Yeah currently, Facebook handles ALL of the logging in for you if you use their button. Mar 30 02:02:53 Which is nice. Mar 30 02:03:44 I see, but their button looks weird, the logo looks too small doesn't it? Mar 30 02:03:51 Oh, an interesting thing about the image I just sent you Mar 30 02:04:06 make the g+ logo smaller ) Mar 30 02:04:16 The gap between the buttons hasn't been programmed in, that is the padding between the parent view and the child view which actually has the layout. Mar 30 02:04:33 If they were any two other buttons, they'd be touching. Mar 30 02:05:33 so I'm trying to brainstorm a good name for my agenda book app. It has an interesting twist that allows you to quickly take pictures of a "homework board" and it will also automaticly sort your assignments into its respective class by time Mar 30 02:05:42 I've been thinking AutoAgenda Mar 30 02:06:01 or maybe simply "Simple School Planner" Mar 30 02:06:06 any ideas? Mar 30 02:06:50 Secret Agend ;) Mar 30 02:07:31 Also I need to make an icon Mar 30 02:07:35 this is going to be rough Mar 30 02:09:21 call it Secret Agend and make the icon like this http://www.gamesofmovies.com/sites/default/files/imagecache/node-wallpaper1024x768/Homer-the-simpsons-6345102-1024-768.jpg with a textbook in the middle or a blackboard something like that Mar 30 02:09:35 lmao Mar 30 02:09:50 honestly i dont think that is so bad of an idea Mar 30 02:10:58 your welcome, that makes 1000$ :D Mar 30 02:11:11 you're Mar 30 02:11:23 +/u/bitcointip memorion $1000 verify Mar 30 02:11:39 oh sorry didnt work, damn, maybe next time Mar 30 02:11:44 * DadFoundMy runs aray Mar 30 02:11:46 *away Mar 30 02:12:13 :D Mar 30 02:19:46 yo! any UI experts there? Mar 30 02:20:18 How can I prevent shadow overlap? any ideas? Mar 30 02:21:21 shadow overlap while doing what Mar 30 02:21:54 like I'm trying to make a View shaped like an inverted 'U'. Doing it by making an arc and a rectangle Mar 30 02:22:34 but when I add shadows to each one, they overlap a little, making a darker appearance in between the 2 shapes Mar 30 02:28:01 ugh; AS won't resolve my R class but it builds fine. i haven't touched this library module in months, but when i open up the files red error markers galore Mar 30 02:28:15 so, when is this stuff going to work ? Mar 30 02:28:27 Anthaas weird idea, can't you make your own facebook button add the original one but make it invisible and onclick of your button you trigger the invisible one? Mar 30 02:30:18 capella check this out, there is a firefox version http://www.amazon.com/gp/product/B000BNQC58/ Mar 30 02:31:02 * capella-s3 reads Mar 30 02:31:24 its the 10th one Mar 30 02:31:43 lol Mar 30 02:31:48 can anyone help with the shadow stuff? Its not on stackOverflow :( Mar 30 02:32:42 if its not on SO, kinda like 'abandon all hope' Mar 30 02:33:28 eeesh... Mar 30 02:34:26 g00s: you're R file is not being build? Mar 30 02:35:13 thats what AS says so, i'll just do ther eclipse err AS dance (clean , rebuild, invalidate caches, etc) Mar 30 02:35:26 the AS dance has one extra move : gradle sync Mar 30 02:35:41 Anthaas, new FacebookButton(). onClick(null) Mar 30 02:35:56 Anthaas, problem solved Mar 30 02:36:39 or dispatchClick() Mar 30 02:36:43 whatever Mar 30 02:37:22 yeah R file usually don't build if the dependencies in the gradle file are wrong, or some error in code Mar 30 02:37:34 the dance will fix it Mar 30 02:41:04 I need some advice on how to make my app "persist" after being paused (ie. not open but in the app switcher). So right now I have an activity, DecisionActivity, that decides if the user is logged in or not, as well as their user registration status. Once that activity determines if they're logged in/logs them in, it passes them to the MainActivity, which is essentially a navigation drawer that lets users instantiate fragments into the MainActivity. Mar 30 02:52:28 Hi!, reading this: https://developer.android.com/tools/support-library/features.html#v4 say that "Here are a few of the key classes included in the v4 library:" when listing some features of v4 support library... is there a list of *full (not "a few") list of what v4 support library provide ? Mar 30 02:58:18 Why is the loader with the same id running twice? **** ENDING LOGGING AT Mon Mar 30 02:59:59 2015