**** BEGIN LOGGING AT Fri May 08 02:59:59 2015 May 08 03:04:07 having trouble getting android instrumentation tests to run May 08 03:04:14 anyone have experience getting that working? May 08 03:04:31 hm, i did with ASTL & junit 4 May 08 03:04:45 or ATSL May 08 03:04:49 currently getting an error during :app:dexDebugAndroidTest May 08 03:04:57 oh oh May 08 03:05:18 says command finished with non-zero exit: value 2 May 08 03:06:30 com.android.dex.DexException: Multiple dex files define Landroid/support/test/BuildConfig; May 08 03:07:01 joshkovach are you using the latest gradle-plugin ? May 08 03:07:07 1.2.3 May 08 03:07:09 aslo from AS or command line ? May 08 03:07:38 i'm still having problems with AS giving me weird build errors that don't exist from command line May 08 03:07:45 I get the Multiple dex files stacktrace from command line, but also trying to run with AS, and neither is working May 08 03:08:11 oh, i haven't used multidex. sounds like cancer May 08 03:08:54 I don't think I am May 08 03:36:45 I don't understand where this multidex stuff is coming from May 08 03:37:55 and it only happens when I'm running instrumentation tests May 08 04:24:48 http://www.theverge.com/2015/5/5/8550321/apple-watch-microsoft-hololens-us-future-vision-compete May 08 04:44:25 when i learn from tutorials i feel liked i know how to use something... but i don't understand how the internals work May 08 04:45:08 is that really, REALLY bad? May 08 04:46:10 Pwnies: i find that eventually on the second or third time around you will understand the function depending on what it is May 08 04:46:40 for example i felt the same way with CustomAdapters but now after 2 or 3 times of going to through the tutorial i totally understand them and can do it on my own May 08 04:46:54 but even if you dont its not the end of the world to check a resource for something complicated May 08 04:47:31 i'm talking about the low level stuff. how the library works, the actual code of the library and how it works with the sdk May 08 04:47:51 can you give an example? May 08 04:48:06 like whats going on when findViewById() is being called? May 08 04:48:10 Pwnies i dont think you want to know how the sausage is made :P May 08 04:48:28 DadFoundMy, yeah exactly May 08 04:48:54 g00s: i know how the sausage is made, and i still love them damn it. May 08 04:49:47 Pwnies: i mean i don't think it's too bad to not understand that stuff but i find it helps me memorize the process if i understand howit works at a base level May 08 04:50:02 for a lot of the functions i use a lot ill check the source code to see how it works May 08 04:51:17 g00s: but when i bite into them there's always that "the part that snaps is intestine" afterthought. May 08 04:51:38 groxx android studio 1.2.1.1 May 08 04:51:42 most these days are made with synthetic skin May 08 04:53:07 DadFoundMy: what would prompt you to look at the source code? debugging and whatnot? May 08 04:53:46 Pwnies: if i want to understand how or why something works May 08 04:54:13 that's inferior sausage bankai_ May 08 04:54:31 on a whim? May 08 04:59:43 how cares if it's intestines, it's still good May 08 04:59:56 who May 08 05:01:38 Will unicode render properly on API 14+? May 08 05:15:24 depends on what proper means May 08 05:21:41 depends on what codepoints May 08 05:27:49 ^ May 08 05:27:59 there are some which do on 20 which don’t in 14 May 08 05:28:48 Hi, I'm developing an app with four fragments on the main page. Once clicked they expand to fill the screen, how can I do to achieve the Google Keep expandig effect of the notes. Thx in advance May 08 05:30:59 YW in advance May 08 05:31:25 What have you tried? May 08 05:32:42 Nothing for now because I was developing another part of the app May 08 05:33:13 Should try something first, then come back when having issues with it. May 08 05:33:18 g00s: if I could install it via my phone, it would already be installing May 08 05:33:46 In the past I used a Fragment Transaction, but know I've the fragments already on the screen, so I only need to expand them May 08 05:34:09 Exactly, so start trying May 08 05:34:43 You know you want the fragment that is selected to take fullscreen, so go about that by adjusting X and Y May 08 05:57:46 hello, what is wrong with this query http://paste.ubuntu.com/11020990/ May 08 06:11:16 can someone give me some pointers on implementing a complex Preference widget for this http://bit.ly/1IlxT6y May 08 06:11:36 The user can click on the grid quarters and also swipe to advance to another page May 08 06:11:45 slani, you should probably use placeholders May 08 06:12:13 ravilov: thanks May 08 06:12:24 use keys universally stored so you dont have to keep track of them all changing them from each piece of code May 08 06:12:34 use default preference May 08 06:12:40 redengin: nothing personal, but that's horrible May 08 06:12:56 Leeds, what is horrible? May 08 06:13:02 that UI May 08 06:13:09 UI is whack May 08 06:13:39 I'm open to changes, this is controller a watch that will end up looking like what that image shows May 08 06:15:11 that looks more like a game than an app/widget, lol May 08 06:15:29 it looks like an old Windows program May 08 06:16:04 its low resolution, but the battery lasts a week May 08 06:16:28 back when hardware vendors completely ignored platform design standards May 08 06:16:49 were there any standards back in the day? May 08 06:17:09 Leeds, are you talking about the icons and such? May 08 06:17:12 anyway, there sure are now, and any dev pertaining to a particular platform should probably adhere to them May 08 06:17:17 redengin: pretty much everything May 08 06:17:32 the colours, the icons, the text, the layout... May 08 06:19:56 here is a picture of the watch in operation to give you an idea: http://bit.ly/1cdMOlc May 08 06:20:48 so I'm confused, is this an android watch and you're making an app for it, or are you making a standard android app that looks like that watch? May 08 06:20:54 the Preference View I implement will simply match the watch (2 color, bad resolution) May 08 06:21:13 tight, that's fine, but that's a watch with a non-standard UI... doesn't mean the phone app should ape it May 08 06:21:35 its not an android watch, its an open firmware watch, that I'm rewriting the firmware for May 08 06:22:00 by using android apps? May 08 06:22:13 I'm also writing the watch controller, since it doesn't have enough memory to run apps onboard May 08 06:22:53 the controller will seek out apps with metawatch intents and add them to the list of widgets that can be displayed on the watch May 08 06:23:08 interesting May 08 06:24:27 I think I have a pretty good handle on the rest of the project, but I just want to find out what the pattern is for creating a custom PreferenceView May 08 06:24:53 can it be designed in the android studio, or do I need to code it up by hand? May 08 06:25:21 it being the Preference View May 08 06:28:46 can you help me out? or do you need more info? May 08 06:29:44 redengin, you are outta your element May 08 06:30:15 canvs2321, how so? May 08 06:30:42 exactly May 08 06:31:41 canvs2321, so your suggestion is to just code it up in the View rather than use the android studio tools? May 08 06:32:02 do you know what a View is? May 08 06:32:10 what AS tools? May 08 06:32:25 someone brought you here, tell them to f off May 08 06:32:36 I know what views are in other contexts, and I know my custom Preference has the abibility to paint into it May 08 06:32:45 I came here on my own May 08 06:32:57 then keep going with that, just /part this channel May 08 06:33:29 1 star review - "At least write in Italian and will give 5 stars" (google translate) app reviewers are such a pain May 08 06:33:47 canvs2321, the layout tool appears to do things, but it doesn't seem integrated to a view. in other UI sdk's I've seen the ability to create the view skeleton from a layout May 08 06:34:09 redengin, that is babble May 08 06:34:23 /part #android-dev May 08 06:35:06 redengin: if you're interested in doing this right, you need to step back from what you want to do, and think about what you need to change before you restart May 08 06:35:20 canvs2321, hey now, tone it down May 08 06:35:33 ravilov, please help him then May 08 06:35:38 Leeds, thats what I'm asking for your guidance on May 08 06:35:49 canvs2321, no, you can tone it down even without me doing stuff May 08 06:35:50 so stop talking about your PreferenceView May 08 06:35:50 ravilov, unless you are only interested in me May 08 06:36:06 ravilov, i'm takin sorry :/ May 08 06:36:59 redengin: are you interested in developing a 'proper' native Android app? May 08 06:37:04 Leeds, howso, its a view that is used by the Preference extension May 08 06:37:10 Leeds, certainly May 08 06:37:21 then start by completely throwing away that UI May 08 06:38:00 ok, what UX would you suggest? May 08 06:38:22 ravilov konws redengin, direct your msgs toward him May 08 06:38:30 http://developer.android.com/design/index.html May 08 06:38:47 good evening everyone, i have a small project that does finger drawing, all functionality works, but id like to extend it to support drawing with multiple fingers (no gestures, just each finger draw as a main one works now) cant find a good tutorial explaining how multi touch would be implemented, seems like information is all over the place May 08 06:39:04 if someone know a good read/tutorial/video would appreciate a link May 08 06:39:38 DmitryS, it's pretty well documented on multi-touch May 08 06:40:38 the examples i found all seem to deal with it in a different way, I tried to adjust my project to use that method but it does not seem to work, was thinking if there is maybe an up to date tutorial available May 08 06:41:25 it's all the same, single touch, got it, add a touch got it, add another got it May 08 06:42:15 it's all about them pointers May 08 06:43:07 DmitryS, post your search query May 08 06:43:20 DmitryS: On ACTION_DOWN and ACTION_POINTER_DOWN get the pointer id (getActionIndex() -> getPointerId()) and record the position May 08 06:43:34 On ACTION_MOVE, loop through your pointer id's and get their new position May 08 06:43:44 redundant May 08 06:43:46 what i tried to do is originally my onTouch in a custom view deals with event.getAction, and than uses the Action Down/Move/Up to capture the start, middle and end of the drawing May 08 06:43:46 DmitryS, http://developer.android.com/reference/android/view/MotionEvent.html - always assume every MotionEvent can carry the information for multiple pointers May 08 06:43:50 On ACTION_UP and ACTION_POINTER_UP, remove that pointer id from your list of pointer ids May 08 06:44:01 That's the tl;dr May 08 06:44:44 Oh, and remember ACTION_CANCEL as well.. May 08 06:44:55 Leeds, http://developer.android.com/design/get-started/principles.html >Design Principles>Pictures are faster than words May 08 06:45:07 redengin: ok May 08 06:45:53 thank you, thats what i tried to re-implement, guess i didnt do it right, ill re-read the documentation and try to figure out an error May 08 06:46:05 hello May 08 06:46:25 when I install my apk, I don't see appwidget into drawer app widget list May 08 06:46:51 I don't figure out, logcat says anything usefult about, no error messages related May 08 06:46:57 *useful May 08 06:47:14 Any ideas? May 08 06:47:29 I can post logcat output and manifest May 08 06:47:30 what about restarting the device/emulator? May 08 06:47:51 might need to refres May 08 06:47:52 h May 08 06:48:15 ravilov, I've made many tests (including rebooting) May 08 06:49:05 Maybe you registered it wrong in your manifest May 08 06:49:48 ravilov, SimonVT logcat: http://pastebin.com/NqqrhJ0z May 08 06:50:49 SimonVT, in a previous apk version, widget appeared in widget list (strangely), in the previous previous version, it didn't appeared (without any reasons) May 08 06:51:04 now, it doesn't appear May 08 06:51:09 *anymore May 08 06:51:30 ok, if I don't get any more help on patterns I'm going back to this http://developer.android.com/guide/topics/ui/settings.html#Custom May 08 06:52:24 SimonVT, ravilov manifest: http://pastebin.com/qBPZuMTe May 08 06:53:35 SimonVT, in manifest, I've only replaced APPWIDGET_UPDATE with APPWIDGET_ENABLED May 08 06:53:53 but it should not affect widget list May 08 06:54:44 Should be pretty easy to test if it does May 08 06:54:57 How? May 08 06:55:06 ok May 08 06:55:10 I can do it May 08 06:55:12 ... change it back to APPWIDGET_UPDATE May 08 06:56:02 SimonVT, ok, I do it. but what can I check if nothing changes? May 08 06:56:36 oh man, finally Xchat is working again! May 08 06:56:54 Maybe you should just do that the documentation says: https://developer.android.com/guide/topics/appwidgets/index.html May 08 06:57:01 anyway, I've created a java file with public void onEnabled(Context context) <-- empty method May 08 06:57:07 Then make your own changes afterwards, step back when you break something May 08 06:57:18 SimonVT, I looked at it, many times May 08 06:57:38 Yet you're not doing what it says May 08 06:57:42 I've taken it as source May 08 06:58:12 hi there May 08 06:58:13 Anyway, the documentation works.. Start comparing, see where you didn't do exactly what it says May 08 06:58:15 hi here May 08 06:58:23 SimonVT, what am I wrong with it? May 08 06:58:31 hi nowhere May 08 06:58:36 hi everywhere May 08 06:58:36 SimonVT, in manifest, I've only replaced APPWIDGET_UPDATE with APPWIDGET_ENABLED May 08 06:58:44 there's someone who can help me with style? May 08 06:58:46 The documentation, which works, doesn't do that May 08 06:58:56 SimonVT, yes, I said Im going to do it May 08 06:58:59 That's 1 place you're not following the documentation May 08 06:59:06 If it still doesn't work, I'm sure there's others May 08 06:59:09 style isn't something that we can help you with, it's something you either have or you don't really, icemanbp :P May 08 06:59:19 previously it was APPWIDGET_UPDATE May 08 06:59:26 (at first) May 08 06:59:30 ahahahahah :D yes Odaym May 08 06:59:39 ask May 08 06:59:42 so, how to apply my great style to my app May 08 06:59:45 So follow the documentation and your widget will work.. Then start making your own changes until you break something May 08 06:59:46 ousk May 08 06:59:58 icemanbp, don't ever ask for "someone", this is not a place for one-on-one support May 08 07:00:09 Odaym, musk? May 08 07:00:11 well you define it under a file and apply it as a theme for your app in the manifest May 08 07:00:18 ez May 08 07:00:40 the docs have the way how to do it May 08 07:01:00 guys,im having trouble with creating a rounded view,anyone can help me ? i need to get a circular view(layout viewpager or smth) May 08 07:01:08 how is it possible that in the preview of Android studio I see my style well apply, then on device, some attribute doesn't work? May 08 07:01:18 SimonVT, ok, but I'm not talking about if widget is working or not, but displaying it in widget list (drawer). If widget appears in widget list, I can drag it in hoemscreen and check if it's working prperly May 08 07:01:25 *properly May 08 07:01:34 because it's a different API, you have to have the style respectively in other folders so it can be applied to the corresponding API May 08 07:01:43 but , now I can restore action in manifest :) May 08 07:02:05 both at android 4.4.2 (API 19) May 08 07:02:10 what's layout view pager got to do with circular view sci-fic May 08 07:02:18 If you can't use your app widget, it obviously doesn't work May 08 07:02:37 Your app widget isn't just the layout May 08 07:03:08 yes, I know May 08 07:03:21 Anyway, good luck May 08 07:03:26 Hi! I really need help to animate an ImageButton layout_height value. I've tried setting android:animateLayoutChanges="true" and creating a PropertyAnimator and calling setLayoutParams but that does not animate my button :( May 08 07:03:53 Odaym: for instance in ios, we set a property to true something like setClipChildren, and it works May 08 07:03:59 so, i cahnge also the kava code, replacing public void onEnabled method with OnUpdate method (always empty) May 08 07:04:05 works to achieve what? a circular view? May 08 07:04:08 *java May 08 07:04:10 if i setClipChildren to relative layout nothing happens May 08 07:04:17 it mask the child views May 08 07:04:36 that's not how you use clipChildren.. May 08 07:05:12 anyway aren't you asking for circular view? look up android circular view you will get an easy xml of it May 08 07:05:36 setClipChildren sets whether child view are clipped within the parent bounds May 08 07:05:54 Odaym:this is exactly what i want http://paste.ubuntu.com/11021702/. It gives me correct looking but it has really performance problems May 08 07:06:15 I can't read your code and understand it, sorry May 08 07:06:44 I'd just define an XML circle background and apply it to any view, so much easier than wrapping my own relative layout May 08 07:07:45 You can override dispatchDraw and use Canvas#clipPath to clip it in a circular shape May 08 07:08:00 call super, then restore after May 08 07:08:30 sci-fic, you're doing a lot of graphics-intensive stuff in there, copying and drawing back and forth... no wonder it's slow May 08 07:09:00 plus you're extending RelativeLayout which some say is the slowest and most sluggish of them all May 08 07:09:22 yes it seems like overkill, why not use the shape of a circle in XML i don't understand May 08 07:09:30 Could anyone help me with an animation? May 08 07:09:52 Because he wants to clip the content? May 08 07:10:10 otherwise it would seem like the content is still showing inside the circle? May 08 07:10:36 yea probably, ok May 08 07:10:36 With a circular background, the content would either be drawn outside the bounds of the circle May 08 07:10:42 Or enough padding for it to be completely inside May 08 07:10:42 yep May 08 07:11:25 so he puts a thing inside the view that is of type custom relative layout and does clipChildren on it and it doesn't work May 08 07:12:41 setClipChildren isn't for that, no May 08 07:12:47 What I said is May 08 07:13:05 i tried a drawable xml shape with padding and corner radius May 08 07:13:14 yea that won't work May 08 07:13:20 Or, if you just support lollipop, set a ViewOutlineProvider, Outline#setRoundRect, View#setClipToOutline May 08 07:13:51 man that's nice May 08 07:15:09 Yeah, it's <10 lines of code vs >50 pre-lollipop May 08 07:16:35 it's like css3, they noticed what people are using a lot (shadows, transitions etc) so decided to include it in the standard May 08 07:17:16 more of their team needs to hang out here May 08 07:17:43 first they will see how genius I am and they will hire me, second they will be more in touch with the community May 08 07:20:31 what should the be the size of input image used with Android Asset Studio for creating ActionBar logo? As big as the device with most DPIs which would be xxxdpi and image size would translate to 128x128 May 08 07:21:51 you're asking and answering yourself? May 08 07:24:32 aren't those the best kind of questions? May 08 07:33:14 I'm trying again May 08 07:33:16 :) May 08 07:33:38 cause you're a pro, bro May 08 07:33:40 I've define a style, and put it as a theme of entire application in the Manifest.xml May 08 07:33:46 look at this, it's funny http://9gag.com/gag/a33zZv3 May 08 07:34:44 on Android studio, all it's fine May 08 07:34:57 cool story bro May 08 07:35:09 button, edittext and textview looks as I want May 08 07:35:30 perfect, you're set for greatness May 08 07:35:48 hum.... May 08 07:36:02 Odaym, only noobs can relate May 08 07:36:37 hehe true May 08 07:36:42 this hasn't happened to me in a long time May 08 07:36:46 I wonder why May 08 07:36:53 still very liable to happen but it never does\ May 08 07:37:02 at the end... If I apply them to the single views it works, as theme in manifest no May 08 07:38:04 another victim of android's theming system :D May 08 07:41:10 there are a lot of things you must take care of when theming icemanbp May 08 07:41:20 only you can prevent forest fires May 08 07:41:56 I just want to set default TextView colors :D and some dimensions... May 08 07:42:10 and why, if I set to single element works? May 08 07:42:49 yea that's called primaryColor May 08 07:43:04 there's a list of all of them man, and what each does May 08 07:44:03 for textView there's textColor May 08 07:45:06 these are singular properties that can be applied to the element itself, not theme properties May 08 07:45:19 there's primaryTextColor I think May 08 07:45:59 get this working and then work on the pre-lollipop https://developer.android.com/training/material/theme.html May 08 07:46:02 so easier May 08 07:47:22 omg a CPU monitor :3 May 08 07:47:41 ok, its a new hour, who knows how to use android studio to create a view (for a preference)? May 08 07:48:00 excuse you? May 08 07:48:09 you're asking how you create a file? May 08 07:50:31 Odaym, are you askign me? May 08 07:51:00 colorPrimary it's not only for textColor May 08 07:55:40 Is there a way to keep the main method when using proguard? I know no one uses a main method on Android but for a specific project I need it. May 08 07:57:08 surf2b1, how do you override the main method in an android app? O.o May 08 07:57:19 its not visible and only used by the system afaik May 08 07:57:26 there's no main method :D May 08 07:57:52 icemanbp, there is. its just nothing that YOU create/use/override May 08 07:58:00 but every java application has one May 08 07:58:25 surf2b1, you can customize exactly what proguard does in pretty great detail May 08 07:58:56 is it not possible to have a googlemap beneath other elements? May 08 07:59:07 danijoo_: I need a main method to call this: https://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/internal/util/WithFramework.java The app I'm working on has some root features May 08 07:59:57 how do you intend to make use of an *internal* api? May 08 08:00:35 nevermind figured it out May 08 08:00:48 calling "dalvikvm com.android.internal.util.WithFramework path.to.some.Class some args" in a shell May 08 08:01:10 hacky, lol May 08 08:01:28 obviously this is not meant to run on newer frameworks that are ART based May 08 08:01:34 yup May 08 08:01:42 works fine on ark May 08 08:01:44 * art May 08 08:01:44 Odaym: I wasn't sure. Thinking out loud helps. thanks. May 08 08:02:01 afaik you cant edit main() May 08 08:02:31 or at least i never heard of anyone doing it May 08 08:02:43 ok, thats it, canvs2321 you're on my shit list May 08 08:03:36 o.O May 08 08:04:01 :D May 08 08:04:06 i love fridays May 08 08:04:25 yes jutsi May 08 08:04:40 we all do danijoo May 08 08:04:57 redengin i haven't seen him say anything O.o May 08 08:05:12 wtf May 08 08:05:16 haha May 08 08:05:20 unless it was way before May 08 08:05:33 poor guy has numbers in his name, really seems harmless May 08 08:05:34 will a googlemap be awkward inside a scrollview? Like will it stop scrolling the view and scroll the map instead? May 08 08:05:39 g00s, might be PM :p May 08 08:05:41 of course jutsi May 08 08:05:48 really don't do that May 08 08:05:53 darn May 08 08:06:01 ravilov redengin i hope not May 08 08:06:14 jutsi, its fine if you also put the scrollview inside a gridview May 08 08:06:26 well wait, actually you can have a map inside a segment of the view and it would be fine if the whole view is scrolling May 08 08:06:36 so what May 08 08:06:40 ah so it scrolls the view separate from the map? May 08 08:06:45 yea of course May 08 08:06:59 jutsi, not everything that is possible is also desired :) May 08 08:07:00 clever May 08 08:07:07 no one does that though May 08 08:07:10 might give you a pretty bad user experience May 08 08:07:14 mostly everyone expects the map to take up the whole view May 08 08:07:15 i guess May 08 08:07:18 its just expected May 08 08:07:36 would it be better if i put a button on the view that opens up the map instead of including it? May 08 08:08:00 based on zero data that I've gathered from nowhere May 08 08:08:05 dont forget there is a lightweight map now , that you can include like a bitmap May 08 08:08:09 depends what you're doing man May 08 08:09:18 well im making a page for my app thats about berrypicking... I want to point out, on a map, all teh sweet spots to pick berries, but atm its on the same page as where i explain some more about the berries etc May 08 08:09:45 you should try the lightweight May 08 08:09:49 first time I hear about it May 08 08:10:20 what is the lightweight one? I'm using api v2 and it puts the map on a fragment, though it is still a googleMap May 08 08:10:37 yea I have no idea what that is, just googled couldn't find anything May 08 08:14:07 jutsi https://developers.google.com/maps/documentation/android/lite May 08 08:16:21 Hi, how would one implement a 'timed' refresh of a drawable, e.g. to visualize the decay of some value. Is using a timer object the right approach? May 08 08:17:50 freiform, post a task on a handler May 08 08:17:56 with delay set May 08 08:18:27 + May 08 08:19:49 and implement the redraw/update in an associated runnable? May 08 08:20:35 yea in the runnable you are posting to the handler May 08 08:21:04 using postDelayed May 08 08:21:52 freiform, how long timed? A simple animation might just do it May 08 08:22:16 still has to go in a handler May 08 08:22:23 who is going to tell it to repeat every X? May 08 08:22:35 Troffel, this is for the update and decay of a level-meter May 08 08:22:47 ah, well a count down timer can do it too :) May 08 08:22:56 like how? May 08 08:23:02 do you build that timer May 08 08:23:05 http://developer.android.com/reference/android/os/CountDownTimer.html May 08 08:23:21 amazing May 08 08:23:22 thanks May 08 08:23:34 who tells it to repeat itself? May 08 08:23:54 black magic May 08 08:24:04 it won't repeat itself May 08 08:24:20 I suppose using a handler would be more flexible? I do need variable delay times depending on the max value.. May 08 08:24:33 it will call tick every x milisec until the timer is done May 08 08:24:44 I'd do what Mavrik says May 08 08:24:45 just 'repeat' inside every tick? May 08 08:24:51 he is Mavrik May 08 08:24:52 its like a thing here May 08 08:24:53 being Mavrik May 08 08:25:30 freiform, no, you'd just call invalidateSelf(); in the runnable May 08 08:25:39 freiform, and handle the proper drawing state in onDraw() May 08 08:25:48 (I don't know how much state do you have to update) May 08 08:26:06 if it's actually a Drawable obj May 08 08:26:37 ?android:attr/textColor May 08 08:27:01 yea icemanbp May 08 08:27:16 Odaym, could it be? May 08 08:27:23 could? it is May 08 08:27:25 I'll play around with it, thanks for the suggestions. May 08 08:27:30 becouse I get an Exception.... May 08 08:27:30 told you that long ago, and the docs say it too May 08 08:27:44 you must use AppCompat kind of theme May 08 08:27:59 if not lollipop, or it will throw an exception May 08 08:28:19 Theme.AppCompat.Light.NoActionBar May 08 08:28:41 thats one of them May 08 08:28:44 The default textColor is textColorPrimary May 08 08:28:49 Circular reference May 08 08:29:04 ohhhh May 08 08:29:08 but I want different color for different elements, in this way it gets the color from the attr "textColor"? May 08 08:29:41 It raise this kind Resource is not a ColorStateList May 08 08:30:04 textColor takes from textColorPrimary May 08 08:30:18 you cannot set textColor to be textPrimaryColor May 08 08:30:30 I thought you were referring to your own color there May 08 08:30:54 get your own color, then feed it @color/myColor, it will work May 08 08:31:27 ok, but I need pink for textView, black for EditText and yellow for buttons May 08 08:31:34 it's not one for all May 08 08:31:49 Then set a textViewStyle, editTextStyle and buttonStyle in your theme May 08 08:31:52 With those colors May 08 08:32:07 (attribute names might not be accurate, look them up) May 08 08:32:16 exactly what I've done May 08 08:32:34 @style/MyTheme.TextView May 08 08:33:30 You should probably just pastebin your styles May 08 08:34:58 how about just... May 08 08:35:23 but in that way I've to set for all TextViews in my project... May 08 08:36:02 true but it'd work :p May 08 08:36:26 May 08 08:36:31 ... May 08 08:36:37 never EVER paste code chunks in-channel May 08 08:36:52 ok May 08 08:36:57 it can give you cancer in the long run May 08 08:37:01 cancer of the fingers! May 08 08:37:07 lol May 08 08:37:11 it can set your nick on fire May 08 08:37:24 and you're all ice and stuff, wouldn't be very pleasant May 08 08:37:42 ok ok, I'm sorry May 08 08:37:49 never again May 08 08:37:58 Fitbit went public :o May 08 08:40:47 <_genuser_> hello ppl May 08 08:41:01 How do you refer to Android's logo in xml? May 08 08:41:28 what logo May 08 08:43:29 May 08 08:45:27 ravilov: thanks May 08 08:46:10 * ravilov wasn't serious... May 08 08:46:23 Thanks ravilov, that just solved all my problems May 08 08:46:33 <_genuser_> yo ravilov May 08 08:46:40 VnM, the fact I wasn't serious? cool dude May 08 08:46:41 ravilov: lol that looked familiar that android:src thing May 08 08:47:00 _genuser_, did you finish your code yet? :p May 08 08:47:24 <_genuser_> ravilov: the entire app? nah, it's way too big for that to be done right away. May 08 08:47:36 <_genuser_> ravilov: we need to hire web devs to do the web component so I can do login integration etc. May 08 08:48:39 <_genuser_> then data sync bits (upload & download). sync limited amount vs. sync 100%. make it user prefs. May 08 08:49:09 nah I mean whatever you decided not to do the other day and go to bed instead May 08 08:50:05 <_genuser_> ravilov: hmm, can't remember. I think I wanted to clear up some user prefs read/write bits. I did finish about 80% of that. May 08 08:50:23 <_genuser_> i'm trying to research the web bit now. otherwise, I'll tackle the rest. May 08 08:51:16 <_genuser_> had a power outage (thunderstorms). now trying to bring up my network. May 08 08:53:49 Do you know *light* pdf library for 10/14+? May 08 08:54:29 not sure which is worse, power outage or internet outage May 08 08:54:34 * ravilov had the latter happen yesterday May 08 08:55:57 ravilov: not being able to see anything and no idea how you're gonna find candles in the dark is worse May 08 08:56:49 while your fridge melts and floods your kitchen floor May 08 08:57:15 And raccoons get in cos the doors are unlocked May 08 08:57:59 it's like a horror movie without popcorn May 08 08:59:18 has facebook really stopped giving access to friend list ? May 08 08:59:46 no way May 08 09:00:02 As standard permission yeah, it's removed afaik May 08 09:00:12 that will break so many apps May 08 09:00:13 at the end, I've to set element by element Odaym... :-/ May 08 09:00:28 And their new permission system is a pain in the ass, people can uncheck permissions May 08 09:00:43 icemanbp cause you gave up May 08 09:00:59 deadlines are deadlines May 08 09:01:13 shmooz, lol, fair point May 08 09:02:09 icemanbp, yeah, all your lines are dead :p May 08 09:02:31 ah... ah... ah.... funny :-/ May 08 09:03:16 which company do you work for icemanbp May 08 09:03:18 can you tell? May 08 09:03:35 freelance May 08 09:03:40 ah ok May 08 09:03:57 VnM: HOW to access friendlist ? May 08 09:04:51 we dont have any friends :v May 08 09:05:38 <_genuser_> ravilov: internet outage for sure. May 08 09:05:54 <_genuser_> I keep thinking should get a UPS. May 08 09:06:17 I heard Tesla made batteries for your home May 08 09:06:24 maybe you can use those May 08 09:06:40 ye 3000$ May 08 09:07:10 <_genuser_> I'm kinda thinking to move my desktop to a laptop, so power outages won't affect it. only ones lasting more than 3hours. May 08 09:07:25 <_genuser_> it would leave my servers without UPS. May 08 09:07:49 <_genuser_> I just don't like extra units and more cables. otherwise, a decent UPS with 10min battery power for my entire rig it about 100.00 May 08 09:07:51 make laptop servers May 08 09:08:58 <_genuser_> one server is because it's a quad core 2.6GHz , 4GB ram - my older desktop. May 08 09:09:26 <_genuser_> the other is a full raid 1 system that fits inside this case: http://www.amazon.com/Antec-ISK110-VESA-Mini-ITX-Case/dp/B0064LWISQ May 08 09:09:30 i want to get friends list of the user logged in my app !! May 08 09:11:08 i want cookies May 08 09:11:18 visit yahoo May 08 09:11:41 they'll give you cookies ;P May 08 09:11:45 <_genuser_> rohit7roy: http://lmgtfy.com/?q=android+get+facebook+friend+list May 08 09:14:21 ahahahahhahaha :D May 08 09:15:15 would be funny if the first result was something like May 08 09:15:32 "how to make friends on facebook if you're an android user" May 08 09:15:41 <_genuser_> lol May 08 09:15:47 _genuser_: IRC is not my first stop !!! if im asking anything then its very much obvious tht I hv googledit !! thanks alot for ur kind help !! May 08 09:16:08 search for intent May 08 09:16:19 maybe you can use it May 08 09:16:31 <_genuser_> well you ask an open ended question. you didn't say what you did and what broke. so in absence of that, anyone will give you the first steps towards doign what you're looking to do. May 08 09:16:49 LOL, "Konversation terminated!" May 08 09:16:51 talk about ragequit May 08 09:16:52 <_genuser_> lol, he got pissed and left? May 08 09:17:05 ye May 08 09:17:06 <_genuser_> wow, my first internet ragequit... May 08 09:17:17 you must be like 15 or so :p May 08 09:17:37 <_genuser_> who me? May 08 09:19:31 nah the other genuser May 08 09:19:31 :p May 08 09:20:03 oh man ragequit makes me want to play online games May 08 09:20:06 <_genuser_> oh, heh, I'd gladly be 15 again!! sounded funny that a simple lmgtfy link drove him nuts. May 08 09:20:34 <_genuser_> If he'd mention a specific problem, I'd googel that one and pasted the SO link or whatever. May 08 09:20:49 <_genuser_> but if people come in here saying "I want cookies", can't do much May 08 09:20:53 * _genuser_ eyes danijoo May 08 09:21:17 _genuser_ likes pushing buttons ;) May 08 09:21:49 <_genuser_> shmooz: nah, I've talkign to these fine fellows the past few weeks. I'm sure they wouldn't mind. (exception: ragequit feller) May 08 09:22:00 danijoo will now probably send some girl to the kitchen to get him cookies :p May 08 09:22:08 <_genuser_> lol May 08 09:29:24 Where can I find the source for ImageButton? May 08 09:30:18 in the android source tree I would assume May 08 09:30:44 Petazz: google: grepcode android imagebutton :) May 08 09:32:20 thana: Thx, I was trying to go through the whole Android source in github but don't know which repo to look in May 08 09:32:39 What repo is that actually out of https://github.com/android May 08 09:33:10 ravilov, lol May 08 09:33:37 all of them will have roughly the same implementation of imagebutton... May 08 09:34:06 Petazz: yep that has always been my problem, too. finally i found grepcode \o/ May 08 09:34:20 Has anyone started working with android and firebase? May 08 09:34:22 Download sources in your sdk, search for the file name May 08 09:34:23 <_genuser_> man, I finish a music tack track and then I listen to someone other music and think how much that one I finish sucks. May 08 09:34:39 <_genuser_> teh same with apps, UI design, web designs. argh! May 08 09:35:16 Hmm.. This does not really help now.. Is there any way I can just set the height of the image in the imagebutton? May 08 09:35:48 I want to resize the whole button (animate) and at the same time resize the image inside. Fiddling with padding causes weird effects May 08 09:36:21 <_genuser_> oh, I was about to suggest padding. guess that won't work. May 08 09:38:11 _genuser_: yea animatin the height and the padding causes the padding to race ahead first enlargening the image and then again making it smaller May 08 09:38:13 <_genuser_> I see somethign on SO about rotating images. is taht what you want? May 08 09:38:29 <_genuser_> I enlarging and shrinking... May 08 09:38:33 <_genuser_> *I see, May 08 09:40:01 <_genuser_> Petazz: here is something like it. talking about expanding the entire button, etc. May 08 09:40:04 <_genuser_> http://stackoverflow.com/questions/14060692/animate-imagebutton-resize-to-fit-screen May 08 09:41:24 hi, i'm trying to achieve this kind functionality - https://www.youtube.com/watch?v=X02lCaNZFls May 08 09:42:44 get portion of pexels and colors and draw with a paint on canvas May 08 09:42:51 *pixels May 08 09:44:06 i played a little with some code and managed to get one pixel color only May 08 09:44:11 http://pastebin.com/iNihE6RS May 08 09:46:07 my problem is to take a portion of pixels and their colors and make draw them on canvas May 08 09:46:42 now i only can take specific pixel color and draw with that color May 08 09:47:44 anyone have an idia how to implement it ? ;] May 08 10:20:36 Hi, is the device id a unique identifier of a device? Can the device id be modified when a user does factory reset on the phone? May 08 10:20:59 kinda; yes May 08 10:21:23 ravilov, where can I look for the long answer, the kinda part :) May 08 10:22:13 ravilov, and yes whether it is unique or whether it is modifiable? May 08 10:22:52 a new device id gets generated after each factory reset May 08 10:23:28 also, as far as I know the device id is just another system setting and is therefore easily modifiable if you know where to look and have root May 08 10:24:17 also, certain apps claim to be able to save/restore your device id, but that doesn't always work right May 08 10:25:24 a lot of banking apps use device id as part of the key for activation, so you have to activate the app if you get a new device, or as it turns out, if you do a factory reset May 08 10:25:40 have to reactivate(* May 08 10:26:46 ravilov thanks May 08 10:26:57 :) May 08 10:35:16 The FrameLayout should lay the "z-index" based on the order of the elements right? Why does my button get over my ImageView? http://ibin.co/210eLJUynd3H May 08 10:35:33 The button is the white part May 08 10:37:23 Even if I change the order nothing changes May 08 10:53:50 AS 1.2.1.1? May 08 11:03:03 hi guys. i was wondering.. when the device goes into sleep mode, activity's onPause() is called, and broadcast receivers must be unregistered. so how i'm supposed to catch intents from the RTC alarm if all receivers are unregistered? May 08 11:04:16 er May 08 11:04:25 who says receivers have to be unregistered? May 08 11:05:31 ravilov, doesn't it drain the battery otherwise? May 08 11:06:12 You'd usually have your receivers for alarms registered in your manifest.. Those are permanent May 08 11:06:59 fsestini, no, why would it be? May 08 11:07:18 -be May 08 11:08:18 ravilov, well, android documentation says that to avoid system overhead May 08 11:09:44 <_genuser_> apparently, the mysql installation I had on one of my servers... isn't there. May 08 11:12:55 <_genuser_> ravilov: man oh man. I was thinking, nice I already have a mysql let me push some data in there. and then bam! no mysql. May 08 11:15:15 is there any way to change the tab (\t) size of a textview? when searching i can only find results for tabhost etc. May 08 11:16:39 Hi, on Android Studio, with the most recent atualization, they change the button to view the line number, do you know how i can turn this visible? May 08 11:17:43 _genuser_: sounds like mysql ;) May 08 11:18:33 p_l: no it doesn't. May 08 11:18:57 Spider_Man, File->Settings->Editor->General->Appearance->Show line numbers May 08 11:22:18 <_genuser_> p_l: typcial. you install it and it walks off!! May 08 11:22:41 <_genuser_> I rebuilt this server once, it's likely I didn't re-install it. I don't think I would have uninstalled it and not remembered. May 08 11:22:42 YiamiYo: Thanks :) May 08 11:30:36 <_genuser_> geez 20,000 links to navigate just to download mysql. thanks oracle for screwing that up too. May 08 11:31:02 you're not using a packag emanager? May 08 11:31:19 <_genuser_> windows 7 server May 08 11:31:48 hey guys, when building an android library with Android Studio, and gradle, I’d like to build against an external jar, but not package it May 08 11:31:54 _genuser_, wow dude, you really expected android to contain mysql May 08 11:31:55 dang May 08 11:32:07 <_genuser_> ravilov: contain? May 08 11:32:17 “ dependencies { compile files('/Applications/Unity/Unity.app/Contents/PlaybackEngines/AndroidPlayer/development/bin/classes.jar') } “ May 08 11:32:39 <_genuser_> ravilov: I'm installing it to do quick and short php scripts that can return json, so I can hit it up from my android app. May 08 11:32:41 _genuser_, um dunno... include? have running? depend on? May 08 11:32:47 oh May 08 11:32:52 this bin/classes.jar file is ending up in the aar’s /libs folder May 08 11:33:10 <_genuser_> ravilov: then for real app, I'll worry about outsourcing this bit to devs who do web dev for a living. May 08 11:33:19 which then breaks on final build, because those classes are present May 08 11:33:39 I see May 08 11:33:58 * ravilov tends to steer away from mysql in general :p May 08 11:34:34 <_genuser_> ravilov: well, in production it could be anything, mysql, oracle, !! Microsoft SQL Server !!. May 08 11:34:41 ravilov: have you used it? May 08 11:34:46 um duh May 08 11:35:03 <_genuser_> I'd only care about hitting a web service getting a valid login token and then doing subsequent requests. :) May 08 11:35:10 because it's been rock solid for me for dozens of projects across nearly 2 decades May 08 11:35:12 of course I've used it, that's why I like to steer away if possible :p May 08 11:35:23 myke, have you tried anything else? May 08 11:35:39 so i wonder where this knee-jerk "mysql sucks!" nonsense comes from May 08 11:35:40 mysql is known to silently destroy your data if you're not careful enough and know all of its caveats May 08 11:35:43 <_genuser_> I have kinda liked mysql after Microsoft SQL Server. liked Oracle the least. it's still stuck in the 80s. May 08 11:36:26 ravilov: have you experienced that or are you parroting the same crap everyone else does? May 08 11:36:30 http://sql-info.de/mysql/gotchas.html May 08 11:36:30 <_genuser_> problem with MSSQL is, you can't just install it whenever you feel like it. Even tho, I actually have a valid license, mysql would work better with php since I can then upload this to any cheap hosting site. May 08 11:36:38 myke, yes I have actually experienced it May 08 11:36:43 it's not actually all that hard to "experience" it May 08 11:37:20 myke, but you're clearly a diehard mysql fan so I'll stop right here ;) May 08 11:38:53 <_genuser_> I've used it for personal projects and school projects. For work I installed it for a wordpress instalaltion. Then I've indirectly used it with hosted wordpress. May 08 11:38:57 Hi I'm developing an app that uses an API. I want to update data in the app without the app being turned on. First I thought maybe sending push messages from the API when new data gets available was a good idea but this requires some work on the backend and some work on the frontend to handle the push messages. My other idea is to have a scheduled background task in the app that runs like once or twic May 08 11:39:03 e a day and fetched data from the API. Has anyone done anything similar because i am torn on the issue and would really like some advice :-) May 08 11:39:04 ravilov: that is well out of date "no innodb support", innodb is the default engine now - also, mysql powers facebook and twitter with the galera cluster (iirc) May 08 11:39:09 <_genuser_> It's been a pretty decent lightweight solution for me. May 08 11:39:15 <_genuser_> but I'll be more aware of the issues now that you mentioned them. May 08 11:39:28 doc_savage, a HEAVILY MODIFIED versions of mysql and php is what powers facebook May 08 11:40:03 ravilov: yes, well, facebook is an extreme use case considering the user base May 08 11:40:30 and those modifications are mostly for scalability/clustering May 08 11:40:40 a lot of the other gotchas still stand though so it is unwise to grasp for a single one that happens to not be true anymore May 08 11:40:56 ravilov: btw your link doesn't say anything about data loss/corruption, at least not listed as an index line item May 08 11:41:07 good evening, I am trying to make a drawing program that can accept input from multiple fingers (drawing with each one separately in the same time), but i cant get the multi touch functionality to work it would seem May 08 11:41:08 http://pastebin.com/7bjkiNWe May 08 11:41:25 not sure what am i doing wrong, if someone have a moment to take a look, would appreciate any pointers May 08 11:41:32 myke, might not be on that page, I've been to a web conference where a guy showed in real time all those corruptions May 08 11:41:45 but anyway May 08 11:41:48 mysql != android May 08 11:43:47 <_genuser_> yeah, you're right, we don't need to worry about it so much in the android conversation/context. May 08 11:44:02 <_genuser_> as long as it provide the minimal backend stuff I need for a skeleton web service. :) May 08 11:50:23 Hi all. I need to show a custom dialog on a specific hour each day in my app. like: at 6pm how a message "Hello world!". What should I use to make this work? May 08 11:51:06 dialogs May 08 11:51:23 i run a reservatiom system with a half million entries used by 40-50 agents daily, so small but not quite a school/hobby project either May 08 11:51:41 FrancescoV, probably AlarmManager, start a Service that creates the DialogFragment. May 08 11:52:09 hi anyone had maybe problem on mac with older system images of google play services ? I keep getting Requires 7327000 but found 6774470 May 08 11:52:18 android studio May 08 11:52:42 lut4rp: ok thanks, i'll check it out May 08 11:53:39 Hi, I'm looking to create an overflow menu on a view that isn't action/toolbar. I've currently made a button with onClick event which opens a PopupMenu. The only issue is it automatically locates it above/below the view depending on available space, however according to Google's material design the menu should be over the top of the view. May 08 11:54:01 Anybody experienced the same thing and got any suggestions? I'm unable to find a way to relocate the menu on the fly. May 08 11:54:10 shoooxz, maybe update your repositories in sdk manager May 08 11:55:32 Retrofit requires Callback on services... How can I have a Callback without specific POJO response? Any base response class? May 08 11:55:46 Because my REST API returns an empty response May 08 11:56:55 dimitrovskif, you can make it a Callback May 08 11:57:10 that will give you the plain response obj. May 08 11:57:13 danijoo: Thanks, which package is Response in? retrofit? May 08 11:57:25 ofc May 08 11:57:44 danijoo how to update repositories to newest versions .. i dont have update state ... i think its newest May 08 11:57:54 danijoo: Nope, seems to be okhttp? May 08 11:58:12 dimitrovskif, look at the source. im not sure May 08 11:58:35 i've got system images api 22 rev 1 May 08 11:58:59 shoooxz, 7327000 is newest May 08 11:59:01 still they dont have newest version of google play services May 08 11:59:14 maybe you define the wrong version in your build.gradle May 08 11:59:19 no May 08 11:59:21 i synced May 08 11:59:24 it 7.3.0 May 08 11:59:33 thats the correct one. May 08 11:59:34 the version of app is nwest May 08 11:59:35 should work May 08 11:59:39 device dont have newest May 08 11:59:44 ah ^^ May 08 11:59:48 well. update in play store :p May 08 11:59:57 hmm May 08 12:00:06 i mean May 08 12:00:12 emulator device May 08 12:00:22 danijoo: Lol now the class must define success(Response, Response)... May 08 12:00:41 system images got 6+ version and its up to date version from googles May 08 12:00:42 emulators dont have play services installed. you cant test google play services on the normal android emulator May 08 12:00:56 they do May 08 12:01:00 but lower versions May 08 12:01:03 dimitrovskif, yeah thats a bit wired but it works ^^ May 08 12:01:11 shmooz, test on a real device or genymotion May 08 12:01:21 sry shoooxz i mean ^^ May 08 12:01:24 danijoo: Is it bad if I name the second one "_" (that's at least the pythonic way of dealing with a redundant useless var) May 08 12:01:38 danijoo: success(Response response, Response _) May 08 12:01:49 is _ a legal variable name in java? May 08 12:01:56 maybe May 08 12:01:58 oh no not another one May 08 12:02:04 lol May 08 12:02:09 shmooz, :D May 08 12:02:21 all these wannabes May 08 12:02:29 there is only one shmooz ; May 08 12:02:51 I think _ is a legal variable, but I will name it uselessResponse... F*king generics. May 08 12:03:18 first world problems.. May 08 12:03:35 Well it's a big prob, onSuccess(Response, Response) is redundant and ugly May 08 12:03:56 dimitrovskif: elcome to java! May 08 12:04:28 myke: I actually like Java, those "it's verbose" arguments are not that valid May 08 12:04:33 redundant and ugly is encouraged so "people reading your code don't get confused" May 08 12:05:19 myke: I love my Android dev experience so far, I started with Android 2.2 and Eclipse+ant, stopped working with Android, now working with Android Studio + Gradle + Android lvl 22 May 08 12:05:56 I added retrofit, gson and appcompat and everything works beautifully on all devices. May 08 12:07:42 dimitrovskif: what is your minimum API ? May 08 12:07:54 I really love Android Studio, I tried my luck a few years ago using Eclipse and it was terrible May 08 12:07:57 shmooz: 11 May 08 12:08:12 I think the Emulators have advanced a lot, or maybe I was just using the wrong ones. May 08 12:08:14 cool May 08 12:08:21 hey everyone, my RecyclerVie only update when I scroll (I'm trying to implement a filter... I call notifyDataSetChanged in publishResults but it update only when I scroll the RecyclerView). what should I do? May 08 12:08:55 Oh and I like RecyclerViews, really fast and easy to use although the adapter and viewholder pattern is a bit verbose May 08 12:08:59 I think the Emulators have advanced a lot << I never expected to hear anyone say that :D May 08 12:09:15 it updates the item only when it's not showed on the screen, so if I scroll will refresh, but if I don't, no luck for me =( I tried notifyDataSetChanged inside a Handler too May 08 12:09:40 The Emulator I used to run on Eclipse took about 45 mins to start up May 08 12:09:49 diofeher_: post the ViewHolder and Adapter May 08 12:09:53 The one on Android Studio takes about 30 seconds May 08 12:10:03 MattEmery, and still you cant test anything on the real emulator because its so slow at runtime ;) May 08 12:10:04 diofeher_: And the way you a new items May 08 12:10:12 ok May 08 12:10:24 This is true... I say they've advanced but I don't actually use them for testing May 08 12:10:29 Mainly use my own devices May 08 12:10:44 Very limited testing however May 08 12:11:01 https://gist.github.com/diofeher/cda050541a7d4ec94f87 dimitrovskif May 08 12:11:12 Has anybody got an answer or suggestion for my above question regarding PopupMenus? May 08 12:12:51 I test on my device, it's so faster than emulator... I only try emulators when someone report bugs on a specific device May 08 12:13:39 MattEmery: repost it plz? May 08 12:14:38 dimitrovskif, and in my activity I do mAdapter.getFilter().filter(newText.toString()); May 08 12:14:56 Anyone willing to give constructive feedback about an app? May 08 12:15:13 it filters fine, but the recycler view updates only when I scroll May 08 12:15:15 anyone can help to implement some code ? ;] May 08 12:15:16 Meowser: me May 08 12:15:16 It is a math game May 08 12:16:04 sent you a pm May 08 12:16:56 MattEmery, Theres another popupmenu constructor that takes a gravity May 08 12:17:04 im trying to get this kind of result https://www.youtube.com/watch?v=X02lCaNZFls May 08 12:17:05 which lets you align the popup May 08 12:17:26 for example you can use Gravity.START May 08 12:17:37 dimitrovskif: we have been getting a lot of "its great" feedback, we know it isn't because we don't have 500million downloads :) so any constructive feedback you can give is appreciated May 08 12:17:55 to get a range of pixels and colors and draw it with a pain on canvas May 08 12:18:03 *paint May 08 12:18:05 Meowser: It's great != everybody will like it May 08 12:18:38 Meowser: Besides, it doesn't have to be great for people to like it... myspace was piece of shit, people used it for years before Facebook (a better alternative) existed May 08 12:19:11 i can get the pixels but i don't know how to draw diffrent colors with paint on canvas May 08 12:20:09 Candyman, what do you not understand ? May 08 12:21:18 dimitrovskif: that is true.. May 08 12:21:24 create a Pain object, set Color on that pain object and then call canvas.drawPoint(x, y, pain) May 08 12:21:37 Pain = Paint ^^ May 08 12:21:39 what is the best way to get the range of pixels from a bitmap from x to y get the colors and draw this on canvas May 08 12:21:50 like in this app https://www.youtube.com/watch?v=X02lCaNZFls May 08 12:22:51 Candyman, have you checked the documentation of bitmap class? May 08 12:22:57 yeah May 08 12:23:15 there is a method getPixel(x,y) that returns you the color of that pixel May 08 12:23:24 i managed to get a single pixel color May 08 12:23:36 yeah but this give me single color May 08 12:24:09 there is also getPixels() if you want the colors of multiple pixels May 08 12:24:42 yeah i saw that also and my problem is really how i draw this colors May 08 12:24:47 on the canvas May 08 12:24:59 the single color i managed to draw May 08 12:25:25 but how i do this with an array and paint, im not exactly sure May 08 12:25:31 you draw multiple single colors one by one ;) May 08 12:26:03 maybe you have a little sample or so May 08 12:26:25 cause im kinda stuck hehe May 08 12:26:33 no May 08 12:26:52 you said you can draw a single pixel May 08 12:26:56 yeah May 08 12:26:58 so just do that multiple times May 08 12:28:32 ok il try that May 08 12:28:37 maybe I dont see where your problem is.. May 08 12:30:38 I have an EditText that opens a popop when clicked. However, I have to click twice, once to focus and then once again once focused to click. How can I get the popup to show as soon as the EditText has focus without the extra click? May 08 12:30:54 is there a way to get members of a clipdrawable, e.g. mBounds? May 08 12:31:15 barq, do you want to show search suggestions? May 08 12:31:58 danijoo: No, the input can only be done throug the popupdialog, not through the EditText directly. May 08 12:32:21 what listener are you using for the popup? May 08 12:32:24 onClickListener? May 08 12:33:06 I do Popup.show in performClick May 08 12:33:51 performClick? May 08 12:34:03 why dont you use an OnClickListener? May 08 12:34:50 I am extending TextView and then override performClick. I have problems getting the second View to get the focus when leaving the first dialog, that's why I am trying to move away from onClick to onFocusChanged. May 08 12:34:56 Might not be the best option though. May 08 12:35:19 use an onclicklistener May 08 12:35:40 I have an OnItemClickListener on top of that performClick though. May 08 12:35:48 does anyone happen to have a gradle file that successfully uses the new android testing support libraries *and* appcompat? May 08 12:35:49 And a OnFocusChangeListener as well. May 08 12:37:29 Tricknology: I'm looking to create an overflow menu on a view that isn't action/toolbar. I've currently made a button with onClick event which opens a PopupMenu. The only issue is it automatically locates it above/below the view depending on available space, however according to Google's material design the menu should be over the top of the view.] May 08 12:38:03 So I'm basically looking for a way to inflate the menu on top of the view rather than above or below it. May 08 12:38:49 MattEmery, did you read my suggestion? May 08 12:38:59 No I didn't see it, one sec May 08 12:39:25 Oh excellent May 08 12:39:29 Man, I really want first-order inline functions in my code. :[ May 08 12:39:29 :) May 08 12:39:52 Wanna make a change to significantly improve things, but it'd be way wasteful with Java-7-style closures. May 08 12:40:01 new PopupMenu(context, overflowButton, Gravity.CENTER) ? May 08 12:40:03 Dammit! May 08 12:40:06 Oops. :D May 08 12:40:12 Didn't mean to send that. May 08 12:40:57 MattEmery, or START maybe May 08 12:41:13 I'll try that when I get home from work... wish I could just develop my app here! May 08 12:41:16 i dont recall the guidelines in that detaul :) May 08 12:41:21 Okay thanks, danijoo. May 08 12:41:50 What do you all think about the material design guidelines? May 08 12:42:06 I personally love them, but I know it does divide some people May 08 12:42:27 I think it wastes too much space. May 08 12:42:36 And makes everything look airy and shallow. May 08 12:43:29 I still dont like that I have to wrap viewgroups in other viewgroups to get that design May 08 12:43:30 I can appreciate that, but it's still nice to have a standard May 08 12:43:33 I don't mind material if you changes certain aspects (e.g., no space wasting). May 08 12:43:40 ie using a cardview to wrap a linearlayout May 08 12:43:54 Hello!!1 After uninstall application can leave redundant/residual files(folder) on sdcard. How to detect that this files(folder) belong to uninstalled application and to the existing or to system. For example after uninstalling golauncher i have 13MB on sd external storage (/storage/emulated/0/golauncherex) ? May 08 12:44:02 CardView only accepts one child? May 08 12:44:09 MattEmery: no May 08 12:44:22 MattEmery, no its like a framelayout May 08 12:44:28 Oh I see May 08 12:44:43 I've not found a use for CardView, I think they've been overused since the release of material May 08 12:45:28 I think cards are nice in some cases, but they're a bad idea in others (e.g., reddit clients). May 08 12:45:42 TacticalJoke, thats even what the guidelines say :) May 08 12:45:47 True. :) May 08 12:45:49 that you shoudnt use it for things like reddit May 08 12:46:25 I think the main problem is people following the guidelines half-hearted May 08 12:46:38 Even google themselves publishing inconsistent apps May 08 12:46:45 and guidelines May 08 12:46:54 Not, that designers doesn't care about guidlines May 08 12:47:41 A lot of them are guided by "ios, ios everywhere" May 08 12:49:06 or just ask designer about his own phone May 08 12:49:37 When is M coming? May 08 12:52:10 I personally think material design apps are nicer looking than iOS but maybe I'm biased May 08 12:52:39 I personally think iOS 5 had better looks May 08 12:52:56 M? May 08 12:53:03 Android M May 08 12:53:14 the next major version May 08 12:53:26 L at 20% and you already want M? ^^ May 08 12:53:27 What do you think of https://events.google.com/io2015/ , MattEmery? It's material, I guess. May 08 12:53:30 napster: should be announced at I/O from what I've heard May 08 12:53:47 So this month itself? cool May 08 12:54:10 Won't be released then, napster May 08 12:54:12 well. anounced can mean it will take another half year or so. May 08 12:54:26 I see May 08 12:54:32 I wish they'd just fix current issues rather than release new stuff most people won't use for a long time. May 08 12:54:39 I also think it will be a pretty small one, because L was huge May 08 12:54:42 napster: i think irt will be not M but MR ;) May 08 12:54:55 :) May 08 12:55:16 and then MR2 3 4 May 08 12:55:31 I'm gonna take a walk outside. Beautiful weather... :) May 08 12:55:33 One example is the fact that the only official development language is becoming ancient technology. Official support for Kotlin would be a big step forward. May 08 12:56:10 C++ is ancient too :p May 08 12:56:14 and still its used May 08 12:56:52 I am looking forward to the new Nexus. But afraid that it is question of far future :( I don't want nexus 6 (too big) and nexus 5 (to old ;)) May 08 12:56:59 but I said the exact same thing when I started playing arround with scala a year ago :p May 08 12:57:20 Hmm, I don't really see C++ as a positive thing to emulate. In any case, we're stuck with Java 7. May 08 12:57:24 Nexus 5 too old? its still a flagship that can run anything May 08 12:57:28 everything* May 08 12:57:54 and its an awesome phone May 08 12:57:55 :) May 08 12:59:12 looks like you is nexus 5 owner) May 08 12:59:43 Just ordered my N5, Should arrive today :) May 08 12:59:59 i like mine May 08 13:00:04 what color did you get? May 08 13:00:11 black May 08 13:00:11 so, i can say only: May 08 13:00:25 xgearx, bought one right after i realized the 6 cant fit in pockets May 08 13:00:27 "xperia SL, when you don't care" May 08 13:00:37 i have only seen the black and red(i have the red) May 08 13:00:52 they are different materials, the black is kind of "sticky" May 08 13:01:00 the red is hard plastic and slick May 08 13:03:57 danijoo: in our country we call such phones as 6 "shovel" :) May 08 13:04:22 my gf has the 6 May 08 13:04:28 she cant hold it in one hand which is great May 08 13:04:31 :O May 08 13:04:32 no texting and driving May 08 13:04:35 is she from thailand May 08 13:04:38 i have it :) May 08 13:04:54 would get a n5 May 08 13:05:08 "she cant hold it in one hand which is great" if you know what i mean :) May 08 13:05:12 i can almost not hold the 6 in one hand May 08 13:05:15 xgearx, we call it phablet May 08 13:05:16 haha May 08 13:05:16 its actually metal and theres a nifty little attachement you can get on rainforrest May 08 13:05:37 the atachemtn is magnetic and fits in the cd player May 08 13:07:05 I'm curious what google is going to release this year May 08 13:07:10 JakeWharton: The ActivityTestRule in android testing support should be same usage as the one in your gist, right? `@Rule public final ActivityTestRule activityRule = new ActivityTestRule<>(MyActivity.class);` ? May 08 13:17:20 heya folks May 08 13:17:33 i'm having a really weird error on a fresh project: May 08 13:17:39 Error:(1,0) Plugin with id 'com.android.application' not found. May 08 13:17:52 that's when i open my basically freshly generated studio project in studio :( May 08 13:19:25 I'm looking for the offical place you can download Volley... can't really find it on developer.android.com ... any idea? May 08 13:20:14 joshkovach: basically May 08 13:20:23 they have some different options May 08 13:21:13 I think I got it, had to use the (Class, boolean, boolean) constructor and it works great now May 08 13:22:42 is there any simple way zooming out without using sendevnents? May 08 13:28:57 assertj-android: .hasInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS); => java.lang.AssertionError: Expected input type <32> but was <65569>. May 08 13:29:01 amd I doing something wrong? May 08 13:34:05 Is there any sane way of having camera preview in-app that works on most devices? Like Snapchat? May 08 13:36:34 Bump? May 08 13:54:09 Hey guys. I have used the navigation drawer activity to create my run tracking app. I have added a map with inflater but nothing I do in setupmap() displays. ie if i set a marker it never shows. Any ideas? May 08 13:57:52 joshkovach: looks like we might be treating that as a value instead of a bit field May 08 14:06:27 the right way to delete an AsyncTask is to call task.cancel(true) and then inside of task check sometimes if is canceled, right? May 08 14:12:22 http://mysticpaste.com/view/Jo6GfYWXOM;jsessionid=10wfr31h731tqbc9vk9wncbca?2 May 08 14:12:34 I want to avoid overriding performClick, and call mPopup.show(...) from AutoCompleteDialog explicitly.How can I achieve this? May 08 14:16:25 I bricked my LG g2 and I can't mount /usb-otg on TWPR to load a ROM to the phone May 08 14:16:34 any idea why usb-otg won't mount? May 08 14:17:05 JMAFOU: #android-root May 08 14:17:31 trying sideload on TWRP but it is stuck on loading side load feature May 08 14:17:42 thanks Leeds May 08 14:19:41 joshkovach: yep. will fix. May 08 14:30:51 i'd like anim fragment slide left out riight in. I create this anim and it works May 08 14:30:52 android:duration="500" May 08 14:30:52 android:propertyName="x" May 08 14:30:52 android:valueFrom="0" May 08 14:30:52 android:valueTo="-1280" May 08 14:30:54 android:valueType="floatType" /> May 08 14:31:09 it work but with 1280 pixel May 08 14:31:21 use % May 08 14:31:42 Oh, doesn't work for x May 08 14:31:44 Oh well May 08 14:31:46 devuser: pastebin that ish. May 08 14:32:02 TacticalJoke, excuse me May 08 14:36:52 Hi all May 08 14:37:28 Does someone ever created a app which has support for landscape and portrait AND phone and tablet support ? May 08 14:38:01 yes May 08 14:38:39 When i read at the developer site, i'm very confused, could you help me ? May 08 14:39:19 no May 08 14:39:34 Ok May 08 14:39:43 i need percentage in objectAnimator xml May 08 14:39:46 You have to ask the actual question, fLm. Nobody is gonna commit to answering an undefinted question. May 08 14:39:50 undefined* May 08 14:40:13 Hm ok :) May 08 14:40:15 nvm May 08 15:09:12 In RxJava, what if I want to run code after multiple subscriptions finish. For example, I have a screen with a SwipeRefresh indicator and two TextView counts that are updated from the web and database respectively. I would update those TextViews in each subscription, when the database query finishes and when the rest call returns. I don't want to stop the SwipeRefresh indicator though until both of those subscriptions have finished. May 08 15:12:36 theblang, so keep a state that says how many things are going on, decrement it (or set booleans, or whatever), and on each completion, check if all the others have completed May 08 15:13:11 if multiple async things affect the same display, then you need to have each one check to see if it's the last one May 08 15:14:54 theblang, so merge them? May 08 15:22:01 meh, guess I'll just switch to using a different host for my bnc May 08 15:23:04 fuck sake, spend 30 min figuring out why my drawer listener wasn't working, when it was just being overwritten somewhere later >_> May 08 15:25:03 I don';t understand why people still buy my android 3.0 app May 08 15:25:25 must be useful May 08 15:26:38 not really May 08 15:26:42 pfn so combine the two observables into one and just return a data object with both of my counts in them maybe? May 08 15:27:15 theblang, depends? if you're just looking for completion, then merge them and consider it completed when you get oncompleted May 08 15:27:33 if you still want your individual results, you can still continue to subscribe to the individual observables May 08 15:28:25 pfn so could I construct it in a way where I subscribe to both observables individually to update the counts separately, but then also observe when both are done in order to stop the refresh? May 08 15:28:34 theblang, yes May 08 15:28:40 pfn stop the refresh indicator I meant May 08 15:30:11 * pfn ponders pulling rx into his apps May 08 15:30:20 but then again, I don't have much in the way of streams to process May 08 15:33:31 http://arstechnica.com/security/2014/11/using-a-password-manager-on-android-it-may-be-wide-open-to-sniffing-attacks/ May 08 15:33:38 yay, keepshare is now invulnerable to that May 08 15:33:39 :) May 08 15:33:42 at least on lollipop + May 08 15:34:51 why would anyone use online password manager :? May 08 15:35:42 how can it be secure May 08 15:36:13 online? May 08 15:36:21 has nothing to do with online May 08 15:36:48 I'm pretty content with Distraction free mode these days, but I was wondering if there was a way to center all of the text like Distraction free mode does, when not in Distraction free mode May 08 15:39:38 the problem is that any app on android can listen to clipboard change events; because of that, when a password manager copies username/password into clipboard, a malicious app can detect and steal May 08 15:40:18 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/AccessibilityService.scala#L322 May 08 15:40:19 my fix May 08 15:40:45 yiati: I don't think so. Best way I've seen is to have the Project tool window on the left. May 08 15:42:42 of course, oddly, I have no idea how my algorithm works by looking at it anymore :-/ May 08 15:45:16 TacticalJoke: :P yeah that's what I was doing for the longest time until Distraction free mode. Always bothered me having it open simply so that I wouldn't be looking left all day long May 08 15:46:46 <_genuser_> so github doesn't allow private repos unless you pay May 08 15:46:48 yeesh, distraction free sucks, why do people keep talking about it? good for presentations, I suppose May 08 15:46:52 _genuser_, of course May 08 15:46:56 Beginner Dev here with hopefully a quick question: I am looking to create list of items (uniform looking) but click on them differs in functionality. On click some will open a web address in the device's browser, the other will open a child layout. Should I be using ListView construct this, or just a LinearLayout of views? May 08 15:47:00 pfn: damn you and your scala May 08 15:47:08 <_genuser_> pfn: so I guess I'll stay with bitbucket. May 08 15:47:25 i've found using no tabs and just cleaning up the toolbars and stuff is better than no-distraction mode May 08 15:47:27 <_genuser_> pfn: I just thought it would be nice to get familiar wth github blah blah. and host some projects on it. May 08 15:47:31 jwhitsit: how many items? May 08 15:47:50 pfn: I personally love it May 08 15:47:53 _genuser_: I wish GitHub supported Mercurial. :\ May 08 15:47:54 less than 20 May 08 15:48:11 TacticalJoke: MercHub May 08 15:48:16 TacticalJoke: could be...misleading May 08 15:48:51 similar to a website, some will be external resources, some will "link" internally within the app May 08 15:49:00 <_genuser_> TacticalJoke: yeah that would be nice. since it's quite popular, I thought it'd be nice to familiarize myself with it. May 08 15:49:27 <_genuser_> TacticalJoke: but bitbucket is quite nice and for my mercurial stuff I'm using that. already upto the 5 free projects they allow. May 08 15:49:33 Yeah, Bitbucket is nice. May 08 15:49:46 Bitbucket allows unlimited free projects, doesn't it? May 08 15:50:01 Oh, unlimited private ones. May 08 15:50:15 <_genuser_> TacticalJoke: geez, I misread it. 5 users on free plan. so projects should be unlimited. May 08 15:50:39 jwhitsit: A ListView would definitely work there. May 08 15:51:13 <_genuser_> lol mIRC32. that names is inspired May 08 15:51:46 okay thanks. I didn't want to start going down the wrong path May 08 15:51:54 TacticalJoke++ May 08 15:52:07 <_genuser_> you'll just make him fatter\ May 08 15:52:09 yiati, I usually just use fullscreen mode May 08 15:52:13 <_genuser_> by ++'ing him May 08 15:52:22 burntcookie90, expressiveness OP May 08 15:52:58 _genuser_ *= 2; May 08 15:53:17 <_genuser_> TacticalJoke: no, I workout!! May 08 15:53:27 * _genuser_ gets on the treadmill May 08 16:10:24 can my linux android sdk installation be used in windows? May 08 16:15:42 hey, anyone know how I would display some HTML from a string (i’ve injected some JS into the HTML) in the regular web browser and not a WebView? May 08 16:16:50 ah content:// May 08 16:18:36 content://com.android.htmlfileprovider May 08 16:26:21 TacticalJoke: Nice, I can kind of do the reverse with Distraction free mode. I turned on line numbers, and the navigation bar which is all I want, and now I have those with the centered text of distraction free mode May 08 16:28:10 tricknology, eh? May 08 16:35:38 pfn: aah im messing around with javascript injection May 08 16:35:57 tricknology, into what? May 08 16:36:13 theres a deeplink which is clicked, starts our app, our app does stuff, inserts results via injection into their webpage. May 08 16:36:44 I don’t want to display the page in a WebView, instead I want the native browser that initiated the deeplink to display it May 08 16:37:24 durrently I am about to try that with intent.setData(Uri.fromFile(file)) May 08 16:37:46 intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); May 08 16:37:55 startActivity(intent) May 08 16:39:18 and it worked May 08 16:39:27 my injection did not but it’s displaying the page at least.. May 08 17:01:12 has aonyone ever observed the selectableItemBackground ripple effect in foreground of a view ? as if android:foreground="?selectableItemBackground" May 08 17:01:26 in Dagger2, if I have a @PerActivity scope on a provided object, it appears I can't reference things provided in the @Singleton scope... Is that right? May 08 17:26:20 Hello! Noob question here. I have 16 togglebuttons in my app with no text and one onclicklistener for all of them, however I also need to identify which one was clicked, but i dont know how to do it. May 08 17:27:50 tushigushi: Check the View that is passed to onClick. May 08 17:28:27 yeah, you can probably switch on view.getId() too May 08 17:30:27 public void onClick(View v) { ToggleButton t = (ToggleButton) v;...} May 08 17:30:57 i've got some shitty timing issue with my recyclerview & action mode & activated drawables :( May 08 17:31:09 this is what i have, but when i call t.getId() and log it it gives me 10 digit number which i cannot operate on May 08 17:31:46 switch (v.getId()) { case R.id.foo: doStuff(); break; } May 08 17:32:25 can I get id as i have it in activity.xml ? May 08 17:33:34 You can't easily get the string "R.id.foo", AFAIK. Why do you want to, anyway? May 08 17:34:03 Hmm. Someone on SO says you can. But it seems like a misguided thing to do. May 08 17:34:44 well maybe it is a bad idea but i want to extract an int from id name =/ May 08 17:35:12 <_genuser_> wait, you're sayhing you should get R.id.str in code? May 08 17:35:40 tushigushi: `R.id.foo` is an int. May 08 17:35:41 <_genuser_> oh, nm, you're saying you shouldn't get the resource id May 08 17:35:55 <_genuser_> for a moment I thougth @string/str lol. May 08 17:36:29 yeah i know, it is an int i can not operate on May 08 17:36:42 i think you are confused May 08 17:37:07 Yeah seems so May 08 17:37:47 I just don't want to create 16 separate onclicklisteners May 08 17:37:57 tushigushi: What is your ultimate goal? May 08 17:38:55 hello everyone May 08 17:39:31 Well I have 16 Togglebuttons, with no text on them. As soon as one button clicked I want call a method, which parameter is number of this togglebutton. May 08 17:40:11 I have togglebutton1 , togglebutton2 etc. May 08 17:40:51 got a question my nephew has a cheep tablet bought on ebay and i need to change the SD card layout as it is not using the external sd when moving applications it is android 4.4 which i cant use the vold.fstab method does anyone here know an alternative May 08 17:42:12 <_genuser_> just set their tags, no? May 08 17:42:42 Tag? Do you mean text? May 08 17:42:43 <_genuser_> toggle_monsterosity1.setTag(1); , etc. etc. May 08 17:42:56 no, tag May 08 17:42:58 <_genuser_> then in onClick(View v), v.getTag(), no? May 08 17:43:08 i have tried ;link2sd but the dev of the tablet created an extra sd partition and apps transfer there May 08 17:43:11 <_genuser_> ravilog.setTag("why not?"); May 08 17:43:18 I cant see a tag property in xml May 08 17:43:23 jrmbdl, wrong channel May 08 17:43:35 _genuser_, I'm answering him May 08 17:43:49 <_genuser_> ravilov: oh, I thought you meant, "no tag" as in do'nt use tags. May 08 17:43:50 also I would avoid using ints as tags May 08 17:43:51 ravilov, which channel and im sorry May 08 17:43:57 You can set the tag in XML: android:tag="1" May 08 17:44:11 jrmbdl, #android-root May 08 17:44:14 <_genuser_> ravilov: and I was curious if tags were somehow discouraged in android dev May 08 17:44:15 Then again, that'd require transforming the String. Hmm. May 08 17:44:17 ok thank you May 08 17:44:20 says so in the topic, jrmbdl May 08 17:44:33 _genuser_, just for you :p May 08 17:44:35 tushigushi: Just curious -- what will your method (which takes 1, 2, 3, etc.) do? May 08 17:44:42 <_genuser_> ravilov: heh. May 08 17:47:57 _genuser_, btw using an int variant of .setTag() implies the int is actually a pre-declared id May 08 17:48:28 <_genuser_> I thought .setTag(Object) would just cast it to an object. May 08 17:50:18 hm May 08 17:50:21 I guess so May 08 17:50:26 i tried to set Tag in xml and then v.getTag() but it outputs null May 08 17:50:50 tushigushi, might be time to post some actual code May 08 17:51:56 _genuser_, I guess you're right May 08 17:52:54 ok May 08 17:54:52 this is xml chunk http://pastebin.com/G7Xqv6q1 May 08 17:57:52 What's the opposite of TMI? May 08 17:58:00 We need that initialism in here. May 08 17:58:08 NED May 08 17:58:12 not enough data May 08 17:58:37 so with the U2020 example, its structured in a way you have one AppContainer, which is pretty much the Drawer and the FrameLayout to hold contents of a View (TrendingView in its example). If we want to add different types of the View, is the correct way of using the U2020 structure just to inflate another View inside the container (when clicking a drawer item or some type of trigger)? Also how would backstack be managed with this May 08 17:58:37 type of structure? May 08 17:59:12 http://pastebin.com/fF1yeTYD May 08 17:59:27 mainactivity.java chunk May 08 18:00:55 tushigushi, what you posted makes no sense May 08 18:01:21 Set all the click listeners! May 08 18:01:32 s/click/on-click/ May 08 18:01:51 tushigushi, you set the tag for the view with @+id/kick, but then you don't use that view anywhere in the posted code May 08 18:03:43 Ahhhh damn! sorry, wrong chunk! May 08 18:04:29 It might be easiest to create these views in Java code, add them to a ViewGroup, and use ViewGroup.indexOfChild(View) to figure out the index of the clicked one. May 08 18:04:44 Though I guess the drawback is that you'll still have to set the text for each one. May 08 18:05:41 Hi, if i set a proxy for mobile networks do i have in my application to set this setting? May 08 18:06:05 http://pastebin.com/C3a5Wis8 May 08 18:06:17 XML chunk May 08 18:06:40 tushigushi: There's no mention of "tag" in there. May 08 18:08:03 It's easy: `android:tag="whatever"` in XML; `v.getTag()` in Java. May 08 18:09:35 I mixed up ToggleButtons when i checked tag thing. =/ May 08 18:10:36 This why I sent you wrong chunk in he beginning, guess i need to have a rest =/ Sorry, that is very dumb May 08 18:11:55 I do regret to inform you that we charge extra for mistaken code pastes. However, the secretary will deal with this. May 08 18:12:40 we'll fax you the bill May 08 18:14:08 I checked tag again and it works, you were right. Send the bill to 696969 CheesyPasters st. 1, Stupidville, Dumbland May 08 18:14:41 fax machine sez: PC LOAD LETTER. wtf u broke it May 08 18:14:53 ok my android studio crashed btw =) May 08 18:14:54 we'll bill you for that too May 08 18:15:02 our vengeance is swift! May 08 18:15:11 AS has never crashed for me post-1.0. May 08 18:15:22 Apart from the very occasional "Internal IDE error has occurred" thing. May 08 18:15:52 More trivia: Eclipse Luna never crashed for me. May 08 18:16:02 it got frozen for quite some time while May 08 18:16:20 Luna crashed like weekly for me. branch changes / changes to project description files / etc -> kablewy May 08 18:17:00 tushigushi: AS does seem to have a memory leak or something, my heap grows slowly but continuously. then eventually it gets stuck doing so much garbage-collection that a build takes like 10 minutes and/or fails, and the only fix is to restart AS entirely. May 08 18:18:30 yeah, I haven't restarted it since yesterday, so it seems that what you've said happened. May 08 18:19:35 anyways, thanks a lot! I'll carry on, see you! May 08 18:19:41 Starting AS is a pretty big event here, with 4GB RAM. I sometimes celebrate once it's over. May 08 18:19:53 i'll send you fax machine, I made it myself May 08 18:20:14 it might explode though. May 08 18:20:20 buy May 08 18:20:22 that sounds like normal operation for a fax machine May 08 18:20:37 bye May 08 18:20:55 coz i made all of them May 08 18:25:02 hm. 1.2.1.1 has a commit claiming to fix the forever-gradle-sync: https://android-review.googlesource.com/#/c/149159/ May 08 18:31:33 Are there any good examples of how to use retrofit-mock in integration tests? May 08 18:31:51 u2020's mock mode May 08 18:32:01 we force mock mode in our test runner May 08 18:42:17 Hey JakeWharton, with your u2020 example what is the best way to manage multiple Views and backstack? I trying to learn to the setup and on clicks I just inflate another view inside the content container and hide previously created ones? Am i going about this correctly? May 08 18:44:17 In MVP, where would you put code that uses SQLiteOpenHelper, since it needs a Context? May 08 18:45:07 theblang: give it application context May 08 18:45:28 codepete: we have an internal library to manage that which isn't open source. that's why it's missing from u2020 May 08 18:45:48 i thought about just making u2020 have a few fragments so it could do a bit more... May 08 18:46:13 JakeWharton: A bit more awesome, since Fragments are so awesome? May 08 18:46:32 JakeWharton ohhh ok. Could you nudge me in the right direction on how to implement something of my own? May 08 18:46:32 how is char 4 is greater than int 5 ? May 08 18:46:41 JakeWharton any blog posts? May 08 18:46:48 s9iper1: '4' != 4 May 08 18:47:01 and '4' > 4 May 08 18:47:14 hmm May 08 18:47:40 i need to convert char to int to compare i guess May 08 18:47:53 subtract '0' May 08 18:48:05 groovy:000> '4' - '0' May 08 18:48:05 ===> 4 May 08 18:48:36 and, for reference: (int) '4' ===> 52 May 08 18:48:54 ok May 08 18:49:24 s9iper1 what is a navigation trajectory look like? a linked list mayybee? May 08 18:49:57 JakeWharton does LeakCanary only report when there's an OOM? May 08 18:50:05 no May 08 18:50:24 lasserix, sorry i did'nt get you May 08 18:50:43 Nice! thanks May 08 18:50:46 codepete: there's flow: https://github.com/square/flow but ultimately it boils down to "serialize state so you can restore it, put it in a stack, check stack on back" no matter what you do. (unless you drop the serializing part, but that's pretty valuable) May 08 18:51:05 i wrote the original version of flow May 08 18:51:14 or switch "stack" for "other structure". stacks don't always work. May 08 18:51:16 it's long since mutated beyond my recognition May 08 18:51:34 the basic principle is there May 08 18:51:35 s9iper1: oops that was for codepete May 08 18:51:52 probably still useful for example code for "how to replace the back stack"? May 08 18:52:26 JakeWharton: would you recommend looking at an earlier commit, for that purpose? May 08 18:52:36 groxx: it was long before open sourcing May 08 18:52:45 aah May 08 18:54:19 groxx perfect thanks for that explanation. I'll take a look at Flow or try doing what you suggested. Right now I'm just playing around with the u2020 structure (lots to learn) and just curious how we could manage state of views and backstack with just one Activity and many views. May 08 18:55:07 codepete: something like a linked list May 08 18:55:18 ArrayDeque May 08 18:55:22 LinkedList is wasteful! May 08 18:55:51 List<> May 08 18:56:11 That's an interface/abstract class, you can't create an instance of List. May 08 18:56:19 ArrayDeque– a better queue than Queue, a better stack than stack, a better list than List May 08 18:56:26 only arrays! May 08 18:56:47 ArrayDeque is indeed the right choice. Stack is deprecated (at least on normal java, I think on android, too though.) May 08 18:56:51 Does it happen to you that instead of showing an AD, admob shows on the banner the returned json object of the ad request? May 08 18:56:55 LinkedList is eh. May 08 18:57:07 it doesn't happen always, but I've seen that in my app May 08 18:58:16 i always thought stack was just sophisticated arraylist May 08 18:59:00 Do we just clearAllViews in the ViewGroup and essentially load up a new view? If populating through the backstack we pass the previous state to the view prior to adding it into the ViewGroup? May 08 18:59:07 Am I in the right direction here? May 08 19:00:05 not sure off-hand how to trigger view state restoring. probably call restoreHierarchyState with the saved parcel from before? May 08 19:00:18 never tried though. May 08 19:02:26 Oh interesting. Hmmm. Thanks everyone for the advice. May 08 19:02:34 CircularArray with a get method > ArrayDeque May 08 19:02:59 the other way :/ May 08 19:05:17 codepete: you animate the current view out with an end animation listener that calls parent.removeView(exitingChild) May 08 19:05:19 {"adtype":"banner","qdata":"x","adnetwork":[{"adapters"... May 08 19:05:35 codepete: and you parent.addView(incomingChild) with an animation in May 08 19:05:35 this is what is printed sometimes instead of showing an ad banner May 08 19:05:38 wtf? May 08 19:05:53 JakeWharton: Thanks! May 08 19:07:22 oh wut, CircularArray allows null now?! May 08 19:08:38 nvm May 08 19:09:56 hey, what's the best practice for storing static configuration? (api keys and stuff like that, for instance) May 08 19:13:22 oh, sweet, lollipop added a SET_TEXT accessibility event May 08 19:13:28 my obfuscator has become irrelevant May 08 19:13:30 and I didn't even realize May 08 19:16:08 Hello, i have flashed my Sony Xperia J (android (4.0.4) but USB OTG still doesn't work. Can anybody help me? May 08 19:16:28 osho0000: probably #android-root May 08 19:16:50 thanks May 08 19:18:11 eeh.. google?? are you messing with me? May 08 19:18:16 “The default value is true for API level ICE_CREAM_SANDWICH_MR1 and below, and false for API level JELLY_BEAN and above.” May 08 19:18:24 http://developer.android.com/reference/android/webkit/WebSettings.html#setAllowUniversalAccessFromFileURLs(boolean) May 08 19:18:34 this method is not available below api 16 May 08 19:19:08 orly? interesting May 08 19:19:49 maybe it is there, set false and unavailable before 16? May 08 19:19:58 exposed in 16? May 08 19:20:14 is 16 not jellybean? /me forgets May 08 19:20:25 but then above that, “To prevent possible violation of same domain policy on ICE_CREAM_SANDWICH and earlier devices, you should explicitly set this value to false.” May 08 19:20:34 16 is JB May 08 19:20:57 how can I explicitely set it if the method is unavailable? May 08 19:22:19 so it's default true for 15 and below, and default false but configurable for 16 and up. I don't really see a problem there... May 08 19:22:30 aah May 08 19:22:51 reflection to the rescue? May 08 19:22:55 ^^ May 08 19:23:17 or can't you just check for version first? May 08 19:23:44 i've seen tnat for other cases May 08 19:23:44 14 and 15 are ics, 16-18 are jelly bean May 08 19:23:48 why would videoview.seekTo(1000) still show a black screen on the videoview before hitting play May 08 19:24:40 anyone knows how to create this kind of curve ? May 08 19:24:41 http://perfectionkills.com/images/drawing_techniques/pattern_rainbow.png May 08 19:24:45 with canvas May 08 19:25:52 Candyman: I think there's a Paint that accepts a bitmap texture May 08 19:26:01 groxx: it’s the other way around, false default, configurable for 16 May 08 19:26:18 not sure if that will wreck what I’m trying to do. I guess TIaS May 08 19:26:32 tricknology: your quote says default true May 08 19:26:45 in < 16 May 08 19:26:46 ah my bad May 08 19:26:57 wow May 08 19:27:02 groxx: can you elaborate May 08 19:27:10 and I’m trying to set it to true so.. no problem there May 08 19:27:15 If retrofit throws an error, is there a way to instantiate the pojo from the response? May 08 19:27:38 ha thanks, groxx May 08 19:27:45 tricknology: lol, np May 08 19:28:56 Candyman: in a bit. walking around at the moment. but tldr: that's probably canvas.drawPath with a Paint that has that pattern May 08 19:31:41 Hey, anyone knows why my app makes 2 sounds on menu button click? One at click down and one at click up. This is not normal May 08 19:33:35 anyone work with a videoView in the past? May 08 19:33:48 you of all people should know, Toubsi, it is your app after all May 08 19:34:18 well i search for hours but can't find the reason May 08 19:34:19 groxx: Seems like if I just keep a ArrayDeque as my backstack its as simple as removing a child View from its ViewGroup and adding it to the ArrayDeque, then when I hit onBackPressed I can just pop it off and add it back to the container. It saves the state and all that jazz. May 08 19:36:55 even this code is doing it: http://codepad.org/ZeYpic9W so completely reduced May 08 19:37:51 I'm guessing it's down to your device, Toubsi May 08 19:38:19 Lonesoldier728: yeah May 08 19:38:21 well I tried other apps and they don't do it =/ May 08 19:38:44 codepete: that won't restore after process death, and might waste memory because view objects aren't very light, but in principle, in-process, yeah. that should work. May 08 19:38:58 lasserix any clue why I cannot get a thumbnail or better yet the video to show a preview of the video and not a black screen? I tried seekTo(1000) and still nothing shows May 08 19:39:37 that is why i used texture view + mediaplayer May 08 19:41:03 lasserix: getBody() will use the normal success type May 08 19:41:06 there's also getBodyAs() May 08 19:41:36 thanks May 08 19:42:28 groxx: Ah ok. Basically if its sitting there for a bit it gets garbage collected and "poof" goes all my Views. Thats essentially why I would need to serialize the data and save it so that I can persist the data. May 08 19:43:04 how so lasserix can you direct me to an example or something? May 08 19:43:14 JakeWharton: great interview on fragmented May 08 19:43:29 Lonesoldier728: you don't use a videoview, you use a mediaplayer with a textureview May 08 19:43:45 then you register on prepared listener, when you get that call, you can do textureView.getBitmap May 08 19:44:30 mediaplayer has like setSurface and you have to use texturelistener ontexturecreated on the textureview to make a surface via the surface that's passed May 08 19:44:38 lasserix: thatnks! May 08 19:44:45 but with proper spelling! May 08 19:45:16 Lonesoldier728: there is also another class 16+api mediaclassextractor or something, that you can pull frames from a stream May 08 19:46:29 is there benefits using videoview as oppose to mediaplayer or? May 08 19:46:42 no May 08 19:46:52 it is supposed to make it easier May 08 19:47:06 codepete: also it's that _normally_ if you go back to an app in your recent-apps-list, the process may have died since you last used it. then the normal activity / fragment / view / back-stack data is all restored as if it never happened. unless you save it to disk somewhere before your process dies, you can't do that, because the current state is lost for May 08 19:47:06 good. May 08 19:47:12 but often if you have anything remotly complicated it will make you cry May 08 19:47:34 groxx: you can use save/restore and just throw your bundle May 08 19:47:46 *view state parceable May 08 19:47:55 which is using the normal saved state methods, which save to disk, yeah May 08 19:49:01 well, or at least out of your process, which requires serialization too. on lollipop it is definitely on disk at some point, not sure prior to that. May 08 19:49:52 Does someone know how to keep your versioned styles neat because it basically is a copy paste every time and changing something. May 08 19:50:13 anybody has an idea with my problem? May 08 19:50:29 Toubsi: Have you tried your app on other devices? May 08 19:50:34 Toubsi, what problem? I just joined. May 08 19:50:35 Muchoz: use style inheritance? then you only need to specify the changes from the values/ version. May 08 19:50:46 groxx, you can inherit from other versions? May 08 19:51:10 my app makes 2 sounds on menu button click... but I have only one device here May 08 19:51:25 anybody here done anything with libgdx? May 08 19:51:30 Toubsi: Try creating a new project and running it. May 08 19:51:34 Toubsi: See whether it happens there. May 08 19:51:57 Muchoz: afaik your versions would inherit from the values/ version, not across versions. I haven't poked at styles enough to know _all_ your options though, someone else might have a better idea May 08 19:52:01 the logcat says also sendUserActionEvent() mView == null but that seems to be no problem May 08 19:52:47 Muchoz: and I forget if values-v21/ will inherit from values-v16/ and values/, or if it's just values/. May 08 19:53:08 I don't see why accessibilitynodeinfo bothers with action list May 08 19:53:14 it's not like the list of actions is comprehensive May 08 19:53:24 groxx, ya I was wondering about that. Guess I should've rephrased that quesiton. May 08 19:53:31 question* May 08 19:54:00 Hi May 08 19:54:04 Is there anyone under linux? May 08 19:54:19 define "linux". does OSX count? May 08 19:54:22 Would you recommend using Android Studio or ADT? May 08 19:54:28 lsfret_, just ask your quest. May 08 19:54:28 Android Studio. May 08 19:54:33 question May 08 19:54:38 ADT is dead (officially). May 08 19:54:56 I feel to move to Linux and not sure about the drivers and etc.. May 08 19:55:08 And I don't even have drivers.. May 08 19:55:17 lsfret_, only for Android development cause I don't think this is the place to ask. May 08 19:55:23 What do you say, for who have linux? May 08 19:55:39 Go to ##linux for Linux related questions. May 08 19:55:41 Just want to know who is under linux. Is it bad to say? May 08 19:55:55 hmm interesting even if I create a new project and change nothing it is doing it May 08 19:56:02 What version of Eclipse do you recommend for ADT? May 08 19:56:21 groxx, any idea how I could test it? Can't be bothered downloading all of the version images. May 08 19:56:31 barq: Don't use ADT; use Android Studio. May 08 19:56:32 Neither can I seem to find anything on the subject. May 08 19:56:44 Toubsi: Which device is that? May 08 19:56:51 I'm used to ADT, I heard getting used to Android Studio is painful. May 08 19:57:01 a note 3 but it worked before May 08 19:57:17 barq, nope. You can use Eclipse's keymaps if you want. You only need to get used to modules and stuff. May 08 19:57:30 Before what? May 08 19:57:46 It's IntelliJ based, though, so I can't use my old workspaces. May 08 19:58:29 barq, why not? May 08 19:58:42 some days ago when i was developing it worked not sure what changed May 08 19:58:52 I'll get both, but still, which Eclipse would I get? Classic or for Java Developers? May 08 19:59:09 barq, why do you want to get both suddenly? May 08 19:59:37 You can import Eclipse projects into AS. May 08 19:59:37 I wanted to get ADT and just realised it is no longer supported. May 08 20:01:11 Android links to some Eclipse Mobile May 08 20:01:14 http://eclipse.org/mobile/ May 08 20:03:54 I guess Eclipse for Java Developers? May 08 20:04:04 http://eclipse.org/downloads/packages/eclipse-ide-java-developers/lunasr2 May 08 20:05:23 Eclipse for People Unwilling to Try Something New? :D May 08 20:05:43 I will try it, but I need to get work done, so can't waste time right now. May 08 20:07:31 Hello, does super.onCreate on a fragment would call onCreate of its activity? May 08 20:07:40 no May 08 20:07:55 emulator makes also only one sound i don't get it I should reset my phone I guess May 08 20:08:08 It's a Samsung, so anything could happen. May 08 20:09:27 well yeah thanks for your help it seems to be the phone really May 08 20:10:03 It could be related to AppCompat. I think I'd try removing AppCompat from that new project just out of curosity. May 08 20:10:59 Muchoz: now that I think about it, I think the way you have to build it is you have values/