**** BEGIN LOGGING AT Mon Nov 24 03:00:33 2014 Nov 24 03:00:33 i posted the info here http://stackoverflow.com/questions/27096641/only-1-phone-shows-parcelable-encountered-ioexception-writing-serializable-objec Nov 24 03:00:49 even the write to disk function Nov 24 03:03:09 i can make it serializable and parcelable, and all the objects inside... but is that a good solution? Nov 24 03:04:20 maybe im missing/forgetting something Nov 24 03:05:08 Do most devs use loaders when connecting with data? Nov 24 03:09:18 eghdk_ state of the art practices in android are kinda like web, always changing - because the existing situation is always still too painful :) Nov 24 03:10:06 if you have content provider, cursorloader can be pretty convenient Nov 24 03:10:28 cliffreich_: the code you've posted is just you converting to json and writing text Nov 24 03:11:23 huh Nov 24 03:13:17 bankai_au i thought that the at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1344) meant that it was an error trying to write to disk Nov 24 03:13:38 does at android.os.Parcel.writeBundle(Parcel.java:663) started it? so the error came from writing to bundle? Nov 24 03:15:05 i think i'm kinda lost, that's why i posted the stack Nov 24 03:16:00 cliffreich_ are you trying to parcel to disk ? Nov 24 03:16:25 g00s I'm converting to json a parcelable object Nov 24 03:16:32 g00s please check http://stackoverflow.com/questions/27096641/only-1-phone-shows-parcelable-encountered-ioexception-writing-serializable-objec Nov 24 03:16:39 yeah, it made no sense to me Nov 24 03:16:51 it's stemmed from android.app.ActivityManagerProxy.activityStopped, so ... are you putting this object in a bundle ? Nov 24 03:17:33 i've actually never used json Nov 24 03:17:35 bankai_au yes i save the object to the bundle, but as it's parcelable i can't see the problem. it works for most users Nov 24 03:19:08 eghdk_: you can also use mActivity.runOnUiThread(mRunnable) Nov 24 03:20:42 why in the hell a "write to bundle" operation will throw a serializable exception for a parcelable object? Nov 24 03:25:20 even if we talk about arrays of parcelable objects it makes no sense, because it works on most phones Nov 24 03:26:14 g00s: Thanks. That's actaully a little reassuring that the practices always evolve. Appreciate the tips Nov 24 03:26:29 and lasserix thanks for the Activity.runOnUI... tip! Nov 24 03:26:31 "Parcelable object -> contains an array of parcelable objects" Nov 24 03:37:08 oh wait wait Nov 24 03:46:24 bankai_au it makes sense that Android is trying to save to disk the bundle? Nov 24 03:46:42 trying to save the bundle to disk* Nov 24 03:50:33 So problem is: android save CHashMap to bundle, store bundle to disk, uses writeSerializable for parcel internal values Nov 24 03:50:58 and boom, it was parcelable, not serializable Nov 24 03:55:39 shneikey's Nov 24 04:01:17 hey Nov 24 04:01:27 how do you guys A/B test different versions of your apps Nov 24 04:01:33 if you only ship one to the appstore Nov 24 04:07:42 we dont Nov 24 04:07:56 most probably don't even A test most of the time Nov 24 04:08:06 nm A/B :) Nov 24 04:08:30 g00s: :P Nov 24 04:08:59 jokes Nov 24 04:09:05 nick9998: any thoughts? Nov 24 04:09:36 hmm i'll have to get back to you Nov 24 04:12:23 >: Nov 24 04:18:48 ship 2 versions in a single app... Nov 24 04:19:43 yes then base which bucket they go into by their birthdate or social security number Nov 24 04:19:44 use all sorts of neat tricks to select one at runtime Nov 24 04:20:44 mawhtin https://developer.amazon.com/appsandservices/apis/manage/ab-testing/doc/faq Nov 24 04:21:03 Do I need to distribute my App with Amazon to use the service? No Nov 24 04:21:51 wats up toronto impulse Nov 24 04:21:52 wow about damn time amazon changed their develop UI Nov 24 04:22:03 thanks g00s Nov 24 04:34:27 about time they changed it in general Nov 24 04:34:31 so cluttered Nov 24 04:36:37 gobl: new one’s nice :) Nov 24 04:46:10 looking through the code of WifiStateMachine - kinda amazed this thing works. so complicated Nov 24 04:47:37 hey, i have a question Nov 24 04:48:04 can i set proc/sys/net/ipv4/tcp_low_latency from android? Nov 24 04:55:32 nick9998: no; you generally can't change system-wide options like that except as root Nov 24 04:55:42 nick9998: if you somehow have root, then I don't see why not Nov 24 04:56:54 cool thanks Nov 24 04:58:43 haha u are a joker barry Nov 24 05:00:46 In android we can multiple of the SAME activity... but can we have multiplate instances of the same service? Nov 24 05:02:27 no Nov 24 05:06:48 I'm still learning about services Nov 24 05:07:07 I just figured out how to make a callback using ReceiveResult WOOOO~~~ Nov 24 05:07:14 Nothing can stop me now. Nov 24 05:11:47 do you mean ResultReceiver ? Nov 24 05:14:33 dragorn see this? fun http://seclists.org/fulldisclosure/2014/Nov/74 Nov 24 05:15:13 g00s: Really? That's simplifies things a lot for me... but I'm finding it hard to believe. I was a little confused because I didn't know what happens if you call startService in one activity and stopService() in another activity how would it know which instance of that particular service to stop. Nov 24 05:16:15 the only one there is :) Nov 24 05:17:53 Got it. Makes sense. Thanks for clearing things up. on that note I'm out for the night. Appreciate your help tonight g00s Nov 24 05:18:13 gnight Nov 24 05:21:55 g00s: I had not, but it doesn't surprise me Nov 24 06:09:15 Why I am getting ClassCastException for imageview cannot be cast to edittext Nov 24 06:09:29 I tried deleting the R file and cleaning the project and rebuilt Nov 24 06:09:36 still its not helping Nov 24 06:09:47 I'm wondering why would my app seems to take so much more memory on Android vs. Windows? Nov 24 06:10:27 e.g. 760 mb vs. 120 mb ? Nov 24 06:10:45 sorry its edittext cannot be cast to imageview Nov 24 06:17:30 ESphynx using windows phone ? Nov 24 06:17:56 g00s: no just comparing my app running on Windows vs on Android Nov 24 06:18:07 even my Hello world shows up using 725,772 kb in ps ? Nov 24 06:18:23 that cna't be right? Nov 24 06:23:08 Well dumpsys meminfo paints a very different picture Nov 24 06:31:02 <[R]> i need something like ListPopupWindow, but something that I can stick drawables into... does something like that exist? Nov 24 06:33:26 <[R]> hrm, looks like i can use PopupWindow Nov 24 06:43:04 oh nice, bruce schneier coming out with a new book http://www.amazon.com/Data-Goliath-Battles-Collect-Control-ebook/dp/B00L3KQ1LI Nov 24 06:59:37 a book just about "apps" http://www.amazon.com/gp/product/0262027488 Nov 24 06:59:48 from MIT press Nov 24 07:19:59 MIT trying to stop education Nov 24 07:20:36 first app inventor and then this lala land book Nov 24 07:21:01 I think i've constructed my app in a way that i've confused myself lol Nov 24 07:21:41 lol Nov 24 07:21:50 looks like you search book to buy g00s Nov 24 07:23:10 I know how to get an activity to open from a fragment, but I have a list fragment and trying to open a specific activity based on that list's position Nov 24 07:29:24 adq always on the lookout :) Nov 24 07:29:37 :)) Nov 24 07:30:13 shmooz lala land book :D Nov 24 07:47:29 http://support.mobileapptracking.com/entries/22544802-Google-Play-Direct-Measurement-URLs-for-Android Nov 24 07:47:33 what is this Nov 24 07:47:39 how do I access the query string? Nov 24 08:04:30 Why is there so much blood Nov 24 08:05:32 i got it Nov 24 08:05:37 https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-how Nov 24 08:06:30 Its not blood Darklust you just need to turn the lights on Nov 24 08:06:48 Darklust where there is oil, there is blood Nov 24 08:07:02 but yeah, make sure it isn't ketchup first :) Nov 24 08:15:22 Nov 24 08:15:26 Is that space deadly? Nov 24 08:17:28 everyone is catching some z’s Nov 24 08:24:11 interesting, i guess the forthcoming gradle 2.2.1 fixes https://issues.gradle.org/browse/GRADLE-3194 Nov 24 08:33:18 lol Dalvik incorrectly allowed subclasses to override package-private methods. Nov 24 08:44:38 I have a Gridview and several selectable ImageViews within that. What is the best way to get the coordinates of every touch event on the Gridview (including those on the inner view)? Nov 24 08:45:14 TouchEvent ? but why would you want the exact coords ? Nov 24 08:45:19 I tried creating an OnTouchListener for the GridView, but it seems to not register touches on the inner view. Nov 24 08:45:51 StingRay_: I need the coordinates to pass them somewhere and then do some action on the contents of the GridView. Nov 24 08:46:05 Sort of like my own gesture detector Nov 24 08:46:42 but the exact coords ? Nov 24 08:47:44 StingRay_: Yeah, the exact coordinates are necessary because the library I am building will take them as input. Nov 24 08:48:27 I saw some documentation about ViewGroups being suitable somehow, but I'm not sure how they fit into the whole thing. If I had a custom ViewGroup, what does that really mean? Nov 24 08:49:53 not sure I understand what you are asking Nov 24 08:50:21 it's a view that extends viewGroup Nov 24 08:50:35 like linear frame relative layouts do Nov 24 08:50:51 StingRay_: When there are views with child views within, I'd like the touch event to go through the parent view and then the child. Nov 24 08:51:07 it does by default Nov 24 08:51:11 unless you handle it Nov 24 08:51:34 as in if something gets the touch before the child Nov 24 08:51:49 by something I mean an interface/listener Nov 24 08:52:42 StingRay_: It does? I have a GridView containing ImageViews. I used gridview.setOnTouchListener(new View.OnTouchListener() {...}) and it is not registering any touch events when I click directly on the Child view. Nov 24 08:54:09 StingRay_: When I come out of the View.OnTouchListener, I return false. I assumed that meant that the touch event would propagate to the child view, but it doesn't even hit the parent. Nov 24 08:54:24 Ok Nov 24 08:54:34 So I need to make a BroadCastReceiver Nov 24 08:54:43 that sends the INSTALL_REFERRER Nov 24 08:54:48 can't find anything Nov 24 08:56:15 in AS i have 2 panels on the bottom Android and Gradle Console. When I want to see the editor fully, i have to click 'down' arrow for both. which is kinda pain. is there any way i can hide those in one click ? Nov 24 08:56:52 StingRay_: http://stackoverflow.com/a/12168506/759019 says it propagates in the opposite direction. :-o That is so weird. Trying that out though. Nov 24 08:57:55 child sits above parent Nov 24 08:58:02 in the view tree Nov 24 08:58:13 as in rendered last, so you could say first visible Nov 24 08:58:44 I see... So, I should return false in the child and let the parent return true and complete "handling" it. Nov 24 08:58:57 so no, not odd, but still not sure what the exact coords you want are... you mean relative to the scroll inside the grid ? Nov 24 08:59:02 or screen space ? or what ? Nov 24 09:00:40 StingRay_: Screen space Nov 24 09:01:54 so window/app/full entire screen ? Nov 24 09:02:02 what are these coords used for btw ? Nov 24 09:02:29 StingRay_: Yes. There is a function I am going to write, which will convert coordinates in that space to the index that they point to within the GridView. Nov 24 09:03:03 so why not attach a touch listener to an item Nov 24 09:03:09 then you get it direct ? Nov 24 09:03:41 StingRay_: I want a generic implementation which does this for any given view containing subviews, without having to attach listeners to everything. This is one particular case. Nov 24 09:04:16 seems really odd, what is the end goal Nov 24 09:04:28 cause sure there is a simpler faster way, depending on what you want Nov 24 09:05:39 StingRay_: The end goal is to implement the detection of gestures on arbitrary view containing subviews, and handling each gesture in a different way. I have looked at the GestureDetector class, but I'd like finer control of the whole thing, and I would like the library to be self-contained, in that it should be possible to use it outside of Android (i.e. perhaps in Swing GUIs) Nov 24 09:06:35 Such a portable library would depend only on the input coordinates, map it to the elements within the coordinate system, and then perform actions. Nov 24 09:08:31 ok i got it Nov 24 09:09:10 StingRay_: So, in essence, it is a pure Java library which takes coordinates and calls back registered functions with its interpretation of what the gesture is. The application then handles its view according to the feedback it receives. Nov 24 09:09:22 Does that make sense? Nov 24 09:13:58 trying to understand what this means " CATEGORY_LAUNCHER means it should appear in the Launcher as a top-level application," Nov 24 09:14:06 what is Launcher and what is top-level application? Nov 24 09:15:55 a launcher is what you use to...erm..launch apps Nov 24 09:16:35 like GE,Nova,etc Nov 24 09:17:31 StingRay_: Did the explanation of what I am trying to do make sense? Nov 24 09:18:29 i launch from my home screen usually Nov 24 09:18:57 and the home screen is part of the "launcher" Nov 24 09:19:00 Overriding the onTouchListener on the child view and returning false, and then the onTouchListener on the parent view to return true does the trick. But it seems like a cumbersome method. I think a ViewGroup makes more sense, because then I can intercept the touch event before it goes to any of the child views, which is pretty much what I want. Nov 24 09:19:30 DarkCthulhu you are using many ViewGroups Nov 24 09:19:38 gridView is a viewGroup Nov 24 09:19:44 linearLayout etc Nov 24 09:19:47 all viewGroups Nov 24 09:20:41 StingRay_: I understand. But I'd like to build a custom one, if that makes sense. That way, if someone wanted to use the mechanism I build, they'd simply have to put all their views as children of my parent ViewGroup and get the right behavior. Nov 24 09:21:44 Should I instead be building a custom view? Nov 24 09:22:36 ok, 2 questions then. how do i know what launcher it is for me and what does it mean to appear as top-level app when i specify category_laucnher in my main activity in manifest? Nov 24 09:23:31 shmoon have a look at what is running ... but the launcher should be irrelevant to you Nov 24 09:23:47 top-level means it runs when you click it I guess :) Nov 24 09:24:08 DarkCthulhu up to you but sounds like you are writing gesture detector Nov 24 09:24:34 and really if you wanted it modular you would want some interface you attach to view that exist Nov 24 09:25:11 StingRay_: Hmm.. An interface sounds like a cleaner approach. I'll give that some thought. Nov 24 09:25:34 If Java had convenient mixins *sigh* Nov 24 09:26:03 s/Java/Java <8/ Nov 24 09:28:16 I guess I could have the library user's parent view (within which he wants to detect these gestures) extend my viewgroup. That way, I can get the intercepted touch events and it's not too much effort. Nov 24 09:28:40 hmm so if i have multiple launchers installed, all of them have their own home screen? Nov 24 09:28:49 and by default android has its own launcher which is called ... ? Nov 24 09:28:55 is there some doc on this Nov 24 09:29:11 G.E.L. Nov 24 09:29:22 Google Experience Launcher Nov 24 09:29:45 but like I said, this should be quite irrelevant to you Nov 24 09:29:56 unless you are doing a launcher :) Nov 24 09:30:40 true ok, was trying to understand category_launcher, hence Nov 24 09:34:47 hello! Nov 24 09:35:05 any guys of you succeeded with bcmon on SGS2 ? Nov 24 09:45:41 what is the correct way to get a context from a fragment ? Nov 24 09:46:02 when I switch from portrait to landscape, getActivity returns null Nov 24 09:46:21 and hence crashes my listview in my fragment Nov 24 09:50:38 where are you calling 'getActivity' ? Nov 24 09:54:37 can someone exaplin what category_alternative is for? Nov 24 09:55:41 bankai_au: in onCreateView in a nested fragment Nov 24 10:19:08 listView.setAdapter(new BANewsEventListAdapter(getActivity(), R.layout.newsevent_list_item, newsEventListItems)); Nov 24 10:19:37 the BANewsEventListAdapter constructor crashes with a nullpointer, since getActivity() returns null on orientation change Nov 24 10:57:33 c03: i wonder if you're holding stale references to your fragment Nov 24 10:58:16 hm Nov 24 10:58:30 the fragment is kept in a NavigationDrawer Nov 24 11:01:38 bankai_au: it's my fragment in a viewpager that acts up Nov 24 11:12:32 c03: have you accidently added the fragment twice? Nov 24 11:13:22 bankai_au: to the FragmentPagerAdapter? Nov 24 11:13:29 I just return a new instance Nov 24 11:13:39 in getItem(int i).. Nov 24 11:16:40 Hello. Nov 24 11:17:26 Am I blind or is there not simple way to get the android version code name like ( icecream etc ) via code ? Nov 24 11:18:31 android.os.Build.* Nov 24 11:18:34 Unknown0BC: int sdk = android.os.Build.VERSION.SDK_INT; Nov 24 11:19:55 Yeah gives the SDK number. Nov 24 11:19:59 I want the name. Nov 24 11:20:03 of the OS version. Nov 24 11:20:12 c03 Nov 24 11:20:21 c03: by 'new instance' are you creating a new fragment every time or (re)fetching an instance? Nov 24 11:20:43 Unknown0BC: no, it gives an int that points to a version Nov 24 11:20:46 Unknown0BC: if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) Nov 24 11:20:53 Unknown0BC: http://developer.android.com/reference/android/os/Build.VERSION_CODES.html Nov 24 11:21:17 bankai_au: a new fragment each time Nov 24 11:21:41 that's probably your problem then Nov 24 11:21:48 c03, but it looks like I still must convert to a name string in my code ? Nov 24 11:22:31 bankai_au: =o how should I refetch the old one ? Nov 24 11:22:44 bankai_au: It's done this way in the docs Nov 24 11:23:23 my app must display the actual NAME of the OS version. Nov 24 11:23:35 Like "Jelly Bean". Nov 24 11:24:04 switch(versioncode) case LALA: textview.setText("beans n' shit); Nov 24 11:24:27 So it looks like I must go if (sdk == android.os.Build.VERSION_CODES.JELLY_BEAN) {string versionName = "Jelly Bean"} Nov 24 11:24:31 What a long way around ? Nov 24 11:24:51 yeah switch the hell out of it. Nov 24 11:24:54 man Nov 24 11:25:02 c03: i think the andriod recommended way is with statics Nov 24 11:25:05 So if my program grows old its not going to know the latest version names. Nov 24 11:25:40 bankai_au: yea, and the static creates a new instance. Nov 24 11:25:55 bankai_au: so, new instance every time Nov 24 11:26:09 Thats it you cant retrieve an actual string ? Nov 24 11:26:34 hmm Nov 24 11:33:34 any way thanks for the input hey c03 Nov 24 11:33:56 np Unknown0BC, hope you find a lean solution Nov 24 11:34:09 I would have done it the shitty way ;) Nov 24 11:34:24 or googled for a string output Nov 24 11:34:25 I am going to do it the shitty way :) Nov 24 11:35:11 sometimes progress is preferable to perfection Nov 24 11:36:10 I did google. Nov 24 11:36:41 Its a natural instinct. Nov 24 11:36:48 a first reflex. Nov 24 11:37:14 like a random bowel movement Nov 24 11:41:18 I just spent 2 days coding an adapter 100 ways that compile, not realizing my getCount was returning 0 all along :P Nov 24 11:44:03 Thats what happens when you snort bowel movements. Nov 24 11:44:27 I must have told eclipse to fill in the missing methods or something stupid like that Nov 24 11:44:52 I normally don't unless I feel lucky Nov 24 11:45:36 ok so now I gotta find the next problem to pull my hair about Nov 24 11:45:37 :) Nov 24 11:47:33 I find it odd that the android os does not know its own name. Nov 24 11:47:39 Just the version number and the SDK. Nov 24 11:48:05 The actual string does not seem to be stored anywhere. Nov 24 11:48:08 can this be right ? Nov 24 11:50:22 can't you translate the version to name yourself ? Nov 24 11:52:26 Yes man thats the issue. Nov 24 11:52:29 having to do that. Nov 24 11:52:43 and then when your app grows old you don't have the name of the latest versions. Nov 24 11:53:07 I see Nov 24 11:55:08 well there doesn't seem to be another way Nov 24 11:59:15 Unknown0BC: you can try scanning Build.VERSION_CODES constants somehow maybe ? Nov 24 11:59:54 Possibly one could get the constant names and convert them to strings. Nov 24 11:59:56 not sure.... Nov 24 12:00:13 But i'm done making the switch table already... Nov 24 12:09:16 I am having a really hard time changing the icon of an apk everytime I decompile it and recompile it it fails to recompile - anyone willing to lend a hand> Nov 24 12:09:18 ? Nov 24 12:10:11 only if you share the revenue. Nov 24 12:10:18 ;) Nov 24 12:12:06 Unknown0BC: you better hope this is the whatsapp guy Nov 24 12:12:40 sadly no open source modified version of xbmc / kodi Nov 24 12:13:02 though you would be greatly helping the nexus player community so thats a bonus Nov 24 12:13:28 Just write it from scratch man, takes 5 minutes. Nov 24 12:13:34 ;) Nov 24 12:14:23 oh right they released a new nexus player Nov 24 12:14:34 can someone please tell me why my android simulator freezes every 5 runs on a mac? Nov 24 12:15:28 there might be ants on the circuit board. Nov 24 12:15:40 ant poo. Nov 24 12:16:31 pangelovski: use genymotion Nov 24 12:19:29 all i want to do is slightly modify android manifest and the image... Nov 24 12:21:18 Time to get going. Nov 24 12:21:21 \0 Nov 24 12:21:53 hi guys, can someone please let me know why this is not animating at all https://gist.github.com/pangelovski/96dc6abe93335d760a8c Nov 24 12:22:43 try to delay the start of your animation pangelovski Nov 24 12:22:58 it's a bit too early in oncreate, it will start the animation before the activity is even visible Nov 24 12:23:50 you could also animate your activity instead (check overridePendingTransition ), and keep in mind a logo is bad Nov 24 12:24:05 adq, what do you mean a logo is bad Nov 24 12:24:05 you activity should display its stuff ASAP Nov 24 12:24:14 it's against the recommandation iirc Nov 24 12:24:39 you should not display a logo, except in rare case like it takes a lot of time to launch your activity (because lot of stuff under the hood is processed) Nov 24 12:25:38 adq, that is exactly what i am doing, I am loading things from the background. Nov 24 12:26:01 I was not precise Nov 24 12:26:18 mornin happy android people Nov 24 12:26:22 I made a spinner that has a custom adapter with icons and text next to them, is it possible to have the selector show only the icon without text, and the dropdown show icon with text ? Nov 24 12:26:52 so the spinner wouldn't take up so much room Nov 24 12:26:59 adq, im coming from ios and there you have a method viewWillAppear or viewDidAppear. I have looked on the internet but i cannot find something similar for android Nov 24 12:27:24 pangelovski, search for overridePendingTransition or how to animate your activity Nov 24 12:27:28 this is probably what you want Nov 24 12:32:58 lemonxah, are u smurfing? Nov 24 12:33:16 ok I probably have to detect the spinner dropped down state and closed state and change the adapter according to that somehow Nov 24 12:39:58 got it! there's a getDropDownView() Nov 24 12:41:16 So I have a NavigationDrawer that has a fragment, that has a viewpager that has fragments, that has a Listview Nov 24 12:41:49 In the viewpager fragment, when I get call getActivity after an orientation change, it returns null Nov 24 12:42:20 and thus my code crashes in the instantiation of the listview, that needs a context for it's adapter Nov 24 13:04:24 Hello. I'm using Retrofit and having problem with streaming file, and using this https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit/Utils.java#L38-L48 to convert stream to byte array. But it throws `android.os.NetworkOnMainThreadException` on line 43 while ((r = stream.read(buf)) != -1) Nov 24 13:06:28 It only occurs when I removed setLogLevel(LogLevel.FULL). And it works when I add `setLogLevel(LogLevel.FULL)` Nov 24 13:06:58 lnoskhen: create a class that implements TypedOutput and use that. Nov 24 13:07:29 http://square.github.io/retrofit/javadoc/retrofit/mime/TypedOutput.html Nov 24 13:08:23 I want to build a library which intercepts touch events on a view, records the X and Y coordinate on screen and then passes it on to the inner view/user action. What would be the best way to do this in a library? I was thinking ViewGroup, but I'm not sure how to make it fit. Nov 24 13:09:40 What is the "library" way to do this, which lets the library user do the least amount of effort in his views, and get this additional functionality. Nov 24 13:17:28 hi guys, i have an app that currently is only supporting 4 screen layouts (small, normal, large, xlarge). I have a galaxy 2 tab that for some reason cannot install the app in google play, is it because of the screenlayouts? i have added the xxhdpi and xxlarge forlders in the app, also disabled the requiredments for camera autofocus, flash, etc, but i still cant get compatibilty. Any idea? Nov 24 13:31:29 jsonobject is deforming escaped unicode characters like '\u00c3' im not sure how to handle it. do i need to do something to the inputstream before i send it toString and ultimately jsonobject? Nov 24 13:44:48 aaearon, what do you mean deforming? Nov 24 13:45:02 do you have actual UTF chars in the String or do you have escaped values? Nov 24 13:45:57 escaped values. heres what i am experiencing: http://pastebin.com/sJaYpuAv Nov 24 13:46:19 those characters should be ü Nov 24 13:51:28 aaearon, doh Nov 24 13:51:42 aaearon, of course that is what happens Nov 24 13:51:44 you have a string Nov 24 13:51:50 "\u5843" Nov 24 13:51:58 not an actual unicode char with 5843 code in it Nov 24 13:52:19 obviously JSONObject will escape your backslash and leave everything else in place Nov 24 13:52:32 it's not going to do parsing on it, that would make no sense :) Nov 24 13:52:47 aaearon, you NEED to make sure your have actual unicode chars in the string, not JSON values Nov 24 13:53:15 hrm ok Nov 24 13:57:45 so i need to convert the escaped JSON unicode values to actual unicode and then pass that actual unicode to the json object, do i have that right? Nov 24 13:58:28 yes Nov 24 13:58:37 aaearon, you're having that issue because you're not actually decoding JSON properly Nov 24 13:58:48 (or you're not setting values correctly) Nov 24 13:58:57 your strings are essentially still JSON encoded Nov 24 13:59:10 makes sense Nov 24 14:03:58 aa Nov 24 14:09:56 guys, in google play, when i publish, some devices arent supported, how to check why? it only displays they arent supported, but i was wondering how to find out the reason for that Nov 24 14:11:47 #join #c++ Nov 24 14:11:50 oops Nov 24 14:14:21 hello Nov 24 14:17:09 I recently upgraded to last buold tools. Now when I build the release apk, I get a lot of warning causing building fail. I'm using android studio. How can ignore them to build it correctly? Nov 24 14:17:48 Can someone tell me if there are any differences between payment methods I should be aware off as a developer in googles In-app Billing? Nov 24 14:18:44 alright my json that includes unicode is coming from an api. if i understand correctly i should be decoding the JSON escaped unicode with my input stream reader but that doesnt seem to be the case. what am i missing? http://pastebin.com/x70KEi4e Nov 24 14:22:39 hi guys, i got an array of imageviews. what i want to do is to scale each imageview however, i want the following. start scaling first imageview, after 500ms, start the second imageview scale, and so on. is this possible? Nov 24 14:23:48 set animation start time for each with 500ms increments? Nov 24 14:25:55 Mavrik:i tried experimenting with alpha and wanting the same effect, i have this https://gist.github.com/pangelovski/4e8664c7d2a244263dc7 but this make all the animations happen at once Nov 24 14:28:08 pangelovski, you're assigning same animation object to each view Nov 24 14:28:13 of course you'll get the same animation. Nov 24 14:28:42 create a new instance for each Nov 24 14:28:46 or better, use en shorthand Nov 24 14:29:13 imageview.animate().alpha(1.0f).setStartDelay(500) Nov 24 14:29:31 oh i did not know you could do that Nov 24 14:30:22 see traning on view property animators on developer.android.com :) Nov 24 14:35:10 Mavrik:thanks Nov 24 14:35:51 is there a real way to disable proguard? Nov 24 14:39:19 gdrc, minify false. Nov 24 14:39:42 ok. will my app be decompilable? Nov 24 14:40:32 Your app is always decompilable. Nov 24 14:41:52 ... and human readable? Nov 24 14:48:37 always Nov 24 14:58:30 Should soft keyboard automatically close on clicking the "done" (or "tick" in lollipop) button? Nov 24 14:58:51 I apparently get a call to my OnEditorActionListener but the keyboard doesn't disappear Nov 24 14:59:10 probably a bug in your code somewhere Nov 24 14:59:12 Also, I'm trying to use this to update an underlying model, is there a better way to bind a model value to the UI? Nov 24 14:59:14 no Nov 24 14:59:20 it doesn't automatically close Nov 24 14:59:32 there doesnt seem to be an easy way to convert escaped unicode from a json string. what is the recommended way? Nov 24 14:59:38 well, depends on options you set Nov 24 15:00:08 aaearon, that's a basic java question, google has the answer Nov 24 15:01:17 pfn: In the EditText? Is there a way to get the keyboard to close on done? Nov 24 15:01:45 look at imeOptions Nov 24 15:02:32 and you shouldn't be returning true from your on editor action Nov 24 15:03:35 Ah ok, well I've got actionDone, which seems right, but I'm returning true Nov 24 15:04:07 Presumably that means that whatever should close the keyboard doesn't get the action, doh ;) Nov 24 15:04:43 when i try to reproduce a sound twice in my mediaplayer, isPlaying returns false ... Nov 24 15:06:10 Now my only problem is that if the user just hides the keyboard, the edit is still applied to the text field, but I get no action so the model is not updated Nov 24 15:12:58 hi guys, i am scaling an imageview 20% more by using scaleXBy(0.2f). but how can i reset it to its original size Nov 24 15:19:47 trepidaciousMBR, use a text watcher Nov 24 15:20:06 pfn: Thanks, I'll have a look at that Nov 24 15:20:21 I'm still trying to get a feel for how stuff is done in Android ;) Nov 24 15:27:05 pfn: Thanks, that works well Nov 24 15:32:16 Hi all. i have created something to take a picture and send it as base64 to my server (python), there isn't an error on both sides but the image isn't created on the server. Any advice or tips? I haven't much experience with server, it's something basic that did work a year ago Nov 24 15:34:59 @offtopic @humor http://bad.solutions/ Nov 24 15:39:43 anyone using hockeyapp and can tell me what device the MID7200 is? manufacturer is listed as unknown Nov 24 15:43:09 Syzygy_, http://lmgtfy.com/?q=MID7200 Nov 24 15:44:08 i did google it but got some results from the USDA forest service... Nov 24 15:45:03 I would suspect http://pc-newtech.en.made-in-china.com/product/xepQymBVCoWF/China-7-Inch-Capacitive-Touch-Screen-Tablet-PC-With-Android-2-3-OS-MID-7200-.html Nov 24 15:51:56 <_Auron_> I just made a new blank activity project in eclipse and it's screaming about a nullpointerexception error. Has anyone encountered this before? Nov 24 15:52:35 hi guys, i got an array of imageviews. what i want to do is to scale each imageview however, i want the following. start scaling first imageview, after 500ms, start the second imageview scale, and so on. is this possible? Nov 24 15:53:26 I have the following https://gist.github.com/pangelovski/523cf3b54fc3f730fe37 but this causes all of the imageViews to animate at the same time Nov 24 15:55:10 how long does it usually take to get approved for crashlytics? Nov 24 15:56:20 pangelovski: you are doing the same thing for all imageViews Nov 24 15:57:19 osxorgate: so how would i do this? Like i mentioned before. I want the im1 to start animation, delay 500ms, start im2 animation, delay 500ms, start im3 animation, etc. Nov 24 15:58:43 several ways Nov 24 15:58:59 you can try to .setStartDelay(500 * i) Nov 24 15:58:59 pangelovski, why are you setting same start delay Nov 24 15:59:06 pangelovski, if you want a different start delay for each? Nov 24 15:59:35 Mavrik:I was thinking that this is how you do it Nov 24 15:59:51 by setting 500ms of start delay for each image? Nov 24 15:59:57 well like i said, you loop over all imageviews, but make no distinction in what they should do Nov 24 16:00:04 Since updating to 5.0, my test device prints "AUDIO_OUTPUT_FLAG_FAST denied by client" to the log for every single sound played in my app through SoundPool. Did not find anything definite about it easily... should I react to it on my end or is it just an AudioTrack/SoundPool issue I can't affect? Nov 24 16:00:04 even though you want 0 for first, 500ms for second, 1000ms for third, etc._ Nov 24 16:00:05 ? Nov 24 16:00:07 so they all do the same thing Nov 24 16:00:35 i see your point Marvrik Nov 24 16:00:37 Mavrik: Nov 24 16:00:53 <_Auron_> omfg, why can't I even make a new project without eclipse spiraling into an unknown error Nov 24 16:00:59 <_Auron_> this makes no sense at all. Nov 24 16:01:11 also i'm not sure about scaleXBy but 1 * 1.2 * 0.8 is not 1 Nov 24 16:01:52 i dont understand why my emulator freezes constantly Nov 24 16:02:11 is this a known issue on mac? Nov 24 16:03:52 osxorgate:i noticed that scaleby adds whatever value you provide to it. e.g. if scale is 1 and you set 0.2f, then the new scale will be 1.5, so if you want ot reset, you need to set scaleby to -0.2f Nov 24 16:04:10 *1.2f Nov 24 16:05:06 pangelovski, that's why you use "scale" not "scaleBy" Nov 24 16:05:23 What determines the order in which services are destroyed (like when the app is closed)? i'd need a service A to call service B when it's destroyed, but currently service B is destroyed first so A creates a new B instead of calling the existing B before that one ends. Nov 24 16:05:32 Mavrik:thakns Nov 24 16:06:29 Mavrik:make sense :) Nov 24 16:06:53 Android Studio is sooooo buggy on Mac Nov 24 16:07:53 <_Auron_> developing for android is a complete nightmare sometimes when the compiler goes full retard. Nov 24 16:07:59 Morg0th: I don't know, but I'd guess the order in which you unbind or stop them. Nov 24 16:08:08 <_Auron_> I can't even attempt to make a new project without it immediately giving an error. Nov 24 16:08:27 _Auron_: Which IDE? Nov 24 16:09:00 Probably Android Studio Nov 24 16:09:01 <_Auron_> eclipse with ADT Nov 24 16:09:06 :) Nov 24 16:09:12 Project > Clean helps a lot. Nov 24 16:09:16 I don't get many issues with Eclipse nowadays. Nov 24 16:09:33 Though I'm using Luna and not the lame version in the "Eclipse ADT Bundle". Nov 24 16:09:33 <_Auron_> I normally don't either, but I've never had eclipse give a nullpointerexception error the moment I make a new empty project Nov 24 16:10:21 <_Auron_> this is what happens: http://i.imgur.com/gU4abMN.png Nov 24 16:10:50 Weird. Never seen that exact exception before. Nov 24 16:11:00 Did you change something Eclipse-related recently? Nov 24 16:11:05 <_Auron_> no Nov 24 16:11:17 <_Auron_> I haven't used eclipse since friday when I was working on my main project Nov 24 16:12:02 <_Auron_> which works just fine, but if I make a new one (which I need to for a side project) it gives that error Nov 24 16:13:04 It has some Google results: http://goo.gl/sPdP9P Nov 24 16:13:17 <_Auron_> yeah I've been searching around but can't find a solution yet Nov 24 16:13:35 Okay. Nov 24 16:13:44 The worst case scenario is an Eclipse reinstall, I guess. Nov 24 16:13:47 worst-case* Nov 24 16:13:50 <_Auron_> ugh Nov 24 16:14:10 If you do reinstall, go with the latest (Luna) and not the "ADT Bundle". Nov 24 16:14:12 The latter sucks so much. Nov 24 16:14:32 <_Auron_> hmm Nov 24 16:14:33 It's easy to install ADT into a stand-alone Eclipse. Nov 24 16:14:46 <_Auron_> yeah, I did years ago Nov 24 16:14:50 They should take the bundle down, IMO. Nov 24 16:14:56 It's something like a two-year-old version of Eclipse. Nov 24 16:15:04 They even downgraded it to an older one recently. Nov 24 16:15:06 <_Auron_> it's so weird, I don't get any errors at all except that pop-up when I make a new project or run a Clean Nov 24 16:15:13 <_Auron_> or attempt to compile Nov 24 16:15:21 <_Auron_> ah wow Nov 24 16:15:25 I had an issue like that once with Eclipse. Nov 24 16:15:32 Everything worked; just had an annoying error. Nov 24 16:15:43 I reinstalled Eclipse to get rid of it. Nov 24 16:15:53 (And updated ADT and the Android SDK stuff.) Nov 24 16:17:58 I have an Android question. I wanna grab the current system time *once* every time my BaseAdapter subclass's data is updated. Is it sensible to override notifyDataSetChanged and do it there? Nov 24 16:18:04 Seems to work; just making sure this isn't an insane thing to do. Nov 24 16:18:13 <_Auron_> ugh I really don't want to spend half my work day re-installing eclipse but I may need to Nov 24 16:18:22 sounds reasonable Nov 24 16:18:27 K. Thanks. Nov 24 16:18:37 That's how I'm gonna solve the problem of calling for the system time only once. :) Nov 24 16:18:48 I think it's neater than having a public "setLastListingTime" thing. Nov 24 16:23:22 hi Nov 24 16:33:28 Anyone else on Android Studio 1.0.rc1? Nov 24 16:33:29 I get a keyboard left open after using an Intent to send an email (with gmail), I can find lots of people with the problem, but no solutions Nov 24 16:33:42 and possibly having an issue with gradle building more than once? Nov 24 16:34:12 Follow Field Naming Conventions Non-public, non-static field names start with m. Nov 24 16:34:17 do you do that in your app? Nov 24 16:34:40 I Keep getting the error "Unable to locate a Java Runtime to invoke." If I run ./gradlew clean packageDebug, I can build from AS again, but only I can only do it one time before I get the same error again Nov 24 16:37:20 yoavst: No. Nov 24 16:37:24 yoavst: It's not a good practice, IMO. Nov 24 16:37:45 why? Nov 24 16:37:55 It just makes code harder to read without any real benefit. Nov 24 16:38:04 All identifiers should be easily pronounceable. Nov 24 16:38:24 Consider "mCount". You'd say "emm count". That's not natural at all. Nov 24 16:38:29 how can i show loading circle in middle of screen like gmail in sdk 21 and appcompat 21 Nov 24 16:38:35 It's much easier to read, understand, and remember "count" than "emm count". Nov 24 16:39:07 (Note that people pronounce the identifier names in their minds. This isn't about reading out loud.) Nov 24 16:39:39 yoavst: It's a holder-over from the days when IDEs didn't syntax-highlight fields, and when people used too-long methods. Nov 24 16:39:42 hold* Nov 24 16:41:00 Some people also do this with paramenters. 'a' is a common prefix. But, again, it just makes code harder to read: "aMoveCandidate" versus "moveCandidate". Nov 24 16:41:55 That sounds like unscientific bullshit Nov 24 16:42:39 Even if you think that, it's still the case that "mWhatever" doesn't add anything. Any modern IDE will auto-highlight fields. Nov 24 16:43:12 I'm not disagreeing with that Nov 24 16:43:22 But your argument sounds like bullshit Nov 24 16:43:22 You talking about Android's coding standards? Nov 24 16:43:47 yes Nov 24 16:43:58 help please! Nov 24 16:43:59 Cool. Nov 24 16:43:59 how can i show loading circle in middle of screen like gmail in sdk 21 and appcompat 21 Nov 24 16:44:07 I'm not sure why Android picked that standard. As far as I know, it's not common in the Java world in general. Nov 24 16:44:46 hey all, i am working from a tutorial and i am getting an error in eclipse here http://pastie.org/9740611 line 13 that CustomPagerAdapter(FragmentManager, SitePagerActivity) is undefined and i should change it the constructor to CustomPagerActivity(FragmentManager, Context) Nov 24 16:44:52 lazy guys slept Nov 24 16:45:28 yoavst: Note that that coding standard is for people writing code for Android itself. For contributors to the OS source base. Nov 24 16:46:00 if I got wifiP2pDevice.deviceAddress Nov 24 16:46:10 can I create InetAddress from that? Nov 24 16:47:22 deviceAddress is "The device MAC address uniquely identifies a Wi-Fi p2p device" while InetAddress is "An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address" Nov 24 16:47:39 someone kick me out Nov 24 16:49:14 TacticalJoke: mWhatever does add one thing though, it eliminates the necessity of this.whatever. Although it also breaks autogeneration of get/set methods. And I would disagree that "emm count" is harder to read/remember than "count", to me the "emm" has just become an easier way of thinking "the count that is a member". I wouldn't force the standard on anyone though, but I do prefer it. Nov 24 16:49:27 \mSg Nov 24 16:50:20 Right. I do think it takes more effort to get into a mindset where "mCount" is as easy to read as "count", though. Nov 24 16:50:39 I did Win32 programming with that hideous form of Hungarian notation. I got so used to it that I felt it was easy to read, after some months/years. Nov 24 16:50:41 Thorbear: Intellij handles autogenerating getters/setters for m-prefixed fields Nov 24 16:50:53 yea, that very stupid, can't Android studio know that if it mVariable then you probably want getVariable? Nov 24 16:50:53 Since forever Nov 24 16:51:17 SimonVT: AndroidStudio doesn't for some reason, it always suggests getmCount() Nov 24 16:52:10 TacticalJoke: You are probably correct in that thought. Nov 24 16:53:02 Thorbear: You have to tell it your prefixes under code style Nov 24 16:53:04 maybe because it's bad to prefix with m? :) (tbh, i don't care, sometimes i prefix with m, sometimes not) Nov 24 16:53:44 I remember stuff like "p_szFirstName" in Hungarian. Eww. Nov 24 16:53:51 A pointer to a null-terminated string called "first name". Nov 24 16:53:55 Oops. Nov 24 16:54:04 It probably would've been "m_pszFirstName", now that I think of it. Nov 24 16:54:35 It reminds me of those old Yahoo! Chatters. x0x0x0x_th3_r3gulat0r_x0x0x0x or something. Nov 24 16:55:08 on windows, lot of stuff with psz Nov 24 16:55:15 (in cpp) Nov 24 16:55:17 Yeah, it got really ugly. Nov 24 16:55:26 yeah but it's a hint Nov 24 16:55:30 "hwndFoo" was horrible enough. Nov 24 16:55:38 m_hwndMainWindow Nov 24 16:55:40 LPWSTR *ppszItem :) Nov 24 16:55:43 :D Nov 24 16:55:50 the different string/char is more horrible Nov 24 16:56:06 lpstr lpwstr wchar, wchat_t, etc... so many variants Nov 24 16:56:13 Right. Such a mess. Nov 24 16:56:15 oops wchar* Nov 24 16:56:29 dw prefix for DWORD Nov 24 16:56:58 u32LastWindowMessage Nov 24 16:57:02 huhu Nov 24 16:57:41 *ppwszPassword this one is nice too Nov 24 16:57:54 the prefix is soon longer than its radical Nov 24 16:58:32 So glad the world evolved beyond that stage. Nov 24 16:59:00 depends on the world you're in ;) Nov 24 17:00:24 I seem to remember MFC using a 'C' prefix for class names. Nov 24 17:00:27 Seemed kinda pointless. Nov 24 17:00:45 I guess it was for disambiguation somewhere. Nov 24 17:01:49 what was it again #ifnotdefined WIN32_LEAN_AND_MEAN_SEX_MACHINE Nov 24 17:02:36 loo Nov 24 17:02:37 lol* Nov 24 17:02:44 Something like that. Nov 24 17:03:57 those gave the best kind of .exe's Nov 24 17:04:11 MFC was garbage Nov 24 17:04:42 Yeah, I actually preferred using Win32 directly. Nov 24 17:04:46 MFC was so horrible. Nov 24 17:05:03 Various levels of abstraction made code a mess. Nov 24 17:06:00 I ended up moving to Borland C++ Builder and Delphi. They did a great job with the VCL. Nov 24 17:06:27 deviceAddress is "The device MAC address uniquely identifies a Wi-Fi p2p device" while InetAddress is "An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address". can I create a InetAddress from the deviceAddress? Nov 24 17:09:01 yoavst: I don't think so Nov 24 17:09:33 maybe local IP's only Nov 24 17:10:10 yoavst: they are 2 totally different things Nov 24 17:10:23 I love how we can use _ in number literals in Java 7. :) Nov 24 17:29:00 anyone else running android studio on mac yosemite? Nov 24 17:30:03 people actually use android studio? Nov 24 17:30:14 I thought that was just for extreme beginners. Nov 24 17:31:07 Some knowledgeable developers use it. Nov 24 17:31:41 I'm not so sure "knowledgeable" is the right word in that case. Nov 24 17:32:27 Which IDE do you suggest? Nov 24 17:33:58 finally got that stupid genymotion lollipop emulator working with gapps.. Nov 24 17:34:02 now back to dev! Nov 24 17:35:13 pangelovski: I am Nov 24 17:35:20 I use vim and the command-line Android and java tools, as well as some stand-alones like MAT. Nov 24 17:35:33 danijoo: oh, that is nice :) Nov 24 17:35:52 pragma-: but vim is for noobs, better to use nano Nov 24 17:36:20 vim? lol. i use terminal and echo each line to files Nov 24 17:36:23 nano is still too noob-friendly, better to use pico. Nov 24 17:36:35 love nano Nov 24 17:36:40 yeah, was thinking about pico, forgot the name ;( Nov 24 17:36:47 echo "public class MyActivty extends Activity {" >> MyActivity.java is the way to go Nov 24 17:36:47 JakeWharton: yeah, until I end putting a lot of :x Nov 24 17:36:56 when editing files on the terminal Nov 24 17:37:27 JakeWharton: btw, in the setup we like to use in AS, you know how to close the bottom panel (the one that shows when you run the app) Nov 24 17:37:40 But seriously though, once you learn how to use vim's modal editing mode and macros, you can do some amazingly powerful things in incredibly few keystrokes. Nov 24 17:37:41 there is a shortcut there, but I don't understand it, can change it, but it is now curiosity Nov 24 17:37:51 You'll never go back to a conventional editor. Nov 24 17:37:53 Foxandxss: cmd+6 Nov 24 17:38:04 pragma-: same for every IDE.. Nov 24 17:38:06 uh, let me try Nov 24 17:38:18 danijoo: you clearly have never tried vim! Nov 24 17:38:26 i use it regulary. Nov 24 17:38:42 not powerfully enough! Nov 24 17:38:51 JakeWharton: works, but how does that "6" relates to: http://puu.sh/d3Ott/c634ef60f7.png ? Nov 24 17:38:57 you must know :) Nov 24 17:39:00 that circle with the arrow Nov 24 17:39:09 Foxandxss: 6 is on the tab name Nov 24 17:39:22 1 is project explorer, 4 is run window, 5 is debug window, etc. Nov 24 17:39:24 ohh, that is true Nov 24 17:39:33 danijoo: a true vim power-user would never make the sort of comments you have made! Nov 24 17:39:40 I hide that, forgot it (I do a lot of cmd + 1 to show the project tho) Nov 24 17:39:47 still, curious about that weird icon Nov 24 17:40:12 pragma-: oh. so just because i use an IDE (like 99% of android devs)? :p Nov 24 17:40:29 I really really love intellij stuff Nov 24 17:40:31 Android Studio - My app module suddenly dissapeared from my build variants list and now I can't build. What to do? Nov 24 17:40:38 IMO, using vim and the command line just limits you. Nov 24 17:40:44 ^ this Nov 24 17:40:46 IDEs have real benefits. Nov 24 17:40:48 <_Auron_> TacticalJoke: Luna fixed my problem btw Nov 24 17:40:53 _Auron_: Awesome! Nov 24 17:40:59 <_Auron_> thanks for the suggestion. That error was just bizarre. Nov 24 17:41:01 TacticalJoke: such as? Nov 24 17:41:46 There's nothing an IDE can do that some command-line wizardry cannot do. Nov 24 17:41:55 Easy debugging is one example. Nov 24 17:42:00 jdb is easy. Nov 24 17:42:09 xml preview Nov 24 17:42:09 Faster, too. Nov 24 17:42:17 As easy as double-clicking an editor margin and pressing F5 (or equivalent)? Nov 24 17:42:23 easier. Nov 24 17:42:30 How do you set breakpoints? Nov 24 17:42:57 love those debates. i already know how this will end Nov 24 17:43:00 Just put them in the jdb script once and forget about them! Nov 24 17:43:04 lol Nov 24 17:43:06 That's really easy. Nov 24 17:43:08 makes me feel like a wizard who can see the future Nov 24 17:43:17 nah, VIM is useful, real useful, still prefer IDEs Nov 24 17:44:12 i am following this documentation. http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html is there a way i can get a list of the import statements for this code example? Nov 24 17:44:16 Your IDE method is waiting several seconds for the IDE to load, using the mouse to find the right source tab, find the right source file, and scroll to the right line number... Nov 24 17:44:25 Mine is just `./debug` Nov 24 17:44:30 I think a problem with editors such as vim is that people get "hammer syndrome" (or whatever it's called). Nov 24 17:44:40 They think the universe can be fixed by vim. Nov 24 17:45:03 That's not what `hammer syndrome` is... Nov 24 17:45:10 It's "if I had a hammer" syndrome. Nov 24 17:45:27 I feel like I'm arguing with a casual user. Nov 24 17:45:27 can you move this discussion into a private chat or just accept "its a matter of taste" please? Nov 24 17:45:29 I'm not necessarily talking about the "everything looks like a nail" thing, BTW. Nov 24 17:46:13 pragma-: i don't know if you know this, but vim isn't the only tool that has keyboard shortcuts for all those actions Nov 24 17:46:25 It's not just keyboard shortcuts... Nov 24 17:46:33 I feel like I'm arguing with someone who makes his life difficult in the name of l33tness. Nov 24 17:46:43 Android Studio - My app module suddenly dissapeared from my build variants list and now I can't build. What to do? Nov 24 17:46:45 Easier, rather. Nov 24 17:46:53 yeah, I don't use keyboard on android studio Nov 24 17:46:56 I used to use vim for everything. I too thought it was amazing. Nov 24 17:47:16 Obviously you didn't use it correctly, otherwise you'd still think it is amazing. Nov 24 17:47:17 s/keyboard/mouse Nov 24 17:47:18 Though I haven't used vim for Android development. Nov 24 17:47:58 AS is lovely for auto imports, to see what code you are not using, bad arguments, nice preview stuf... Nov 24 17:48:26 refactoring, vcs integration, layoutlib previews Nov 24 17:48:31 It's just a far better experience being able to move around source files and edit and move lines around as if you were playing a piano, rather than the cumbersome mouse point-and-clicking and awkward editing of conventional editors. Nov 24 17:48:53 you don't have to use the mouse in an IDE Nov 24 17:48:55 pragma-: you can do all that in an ide too. Nov 24 17:48:57 I don't use the mouse at all when editing. Nov 24 17:49:00 Unless I'm doing something really weird. Nov 24 17:49:02 It's not the same. Nov 24 17:49:09 it's actually exactly the same Nov 24 17:49:18 as TacticalJoke said. you can configure nearly every ide editor to act nearly the same that vim does Nov 24 17:49:23 pragma-: I bet loads of people here have done this vim thing you do. Nov 24 17:49:31 It's not like you have knowledge nobody else does. Nov 24 17:49:33 I don't use too much the vcs integration, but it is nice to see what branch you're on Nov 24 17:49:37 ctrl right arrow to move a word is hardly as intuitive and fluid as the vim shortcuts. Nov 24 17:49:38 Regarding text editing. Nov 24 17:49:47 wait, the highlight on the lines for changes and additions is quite good Nov 24 17:49:50 Yeah, but vim is also a pain much of the time. Nov 24 17:49:53 sadly you cant argue with someone who just wants to show how cool he is q.q Nov 24 17:49:53 I have to keep hitting Esc. Nov 24 17:49:54 That's fun. Nov 24 17:49:59 I have to keep changing modes. Nov 24 17:50:15 yeah the modes thing is dumb Nov 24 17:50:18 A true pianist doesn't know he's pressing the keys to using his foot on the pedals. Nov 24 17:50:25 i also love watching vim users save every 3 seconds Nov 24 17:50:27 Much like a true vim user isn't aware of Esc or the keystrokes! Nov 24 17:50:33 I play piano Nov 24 17:50:34 and use AS Nov 24 17:50:36 damn Nov 24 17:50:40 I play the piano and use Eclipse. :D Nov 24 17:50:46 To start up a different argument... what the hell do you guys use for databases in android? Raw SQL? ORM? ContentProviders? None of these solutions seem right Nov 24 17:50:47 Foxandxss: not a real pianist then ! Nov 24 17:50:47 pretty sure pragma- is just a bot Nov 24 17:50:54 You're aware of the keys and the pedal when you're performing. Nov 24 17:50:56 danijoo: that is probably true tho Nov 24 17:50:57 Real bots use vim! Nov 24 17:51:02 They suddenly become real. Nov 24 17:51:05 because it's like hitting all the stereotypical vim user arguments Nov 24 17:51:07 And terrifying. Nov 24 17:51:59 I also like the new "android" view on AS, splitting gradle stuff in the one hand, and project in the other Nov 24 17:51:59 ideavim Nov 24 17:52:00 I use Nov 24 17:52:00 See, you're not a power pianist. Nov 24 17:52:01 happy Nov 24 17:52:01 easier to see Nov 24 17:52:21 eclipse doesn't have any good way of doing vim keybindings Nov 24 17:52:27 * pfn paid for viplugin once upon a time Nov 24 17:52:29 it sucked Nov 24 17:53:00 pragma-: I just edited my Android code and used Ctrl+F5 to run its related (JVM) unit test. Nov 24 17:53:02 Instant. Nov 24 17:53:11 I Ctrl+F5ed from a whole different project. Nov 24 17:53:12 I could do it 3 seconds faster! Nov 24 17:53:44 (Yeah, I use VS shortcuts.) Nov 24 17:53:46 It's hard to break habits. Nov 24 17:54:06 TacticalJoke: I used to as well :P Nov 24 17:54:11 For me, vim was like that sexy woman you can't be with for long. It just won't work out. Nov 24 17:54:13 JakeWharton: vim users don't save every 3 seconds. vim already has built-in .swp files... Nov 24 17:54:16 As much as you wanted to. Nov 24 17:54:19 Life just pushes you apart. Nov 24 17:54:27 pragma-: i watch them all day, they do Nov 24 17:54:30 Foxandxss: Did you switch to native IntelliJ shortcuts? Nov 24 17:54:34 .swp files are so annoying Nov 24 17:54:43 TacticalJoke: yeah, I used VS shortcuts on window Nov 24 17:54:43 esc, colon, w... every 3 seconds Nov 24 17:54:49 They're doing it wrong. Nov 24 17:54:50 it's the most fantastic tick Nov 24 17:54:54 Cool. I might switch to IntelliJ shortcuts when I move to Android Studio. Nov 24 17:54:58 well, duh, they're using vim Nov 24 17:55:00 I feel like sticking with VS shortcuts might be holding me back. Nov 24 17:55:02 * pragma- snorts. Nov 24 17:55:02 but when I switched to mac, I started to get real weird stuff with VS shortcuts on mac (like some overlapping) so I had to swap Nov 24 17:55:12 Ah, I see. Nov 24 17:55:26 I feel weird when I do something "because I'm used to it". Nov 24 17:55:30 as today, I don't even remember VS shortcuts (well, ctrl + f5 is quite obvious one) Nov 24 17:55:30 There's usually something better. Nov 24 17:55:41 nah, that is not true Nov 24 17:55:54 you have to use what you like, not what other do Nov 24 17:56:00 What do you guys use for databases in android? Raw SQL? ORM? ContentProviders? This new Realm db? Nov 24 17:56:02 As long as IntelliJ shortcuts aren't, like, Ctrl+Shift+F11. :D Nov 24 17:56:09 God, some shortcuts suck. Nov 24 17:56:17 Though I don't know IntelliJ's, so I have no idea. Nov 24 17:56:18 just remap them all Nov 24 17:56:19 Try using emacs, if you want shitty shortcuts. Nov 24 17:56:26 I remap all shortcuts to suit me Nov 24 17:56:30 ^R to run Nov 24 17:56:31 I change a lot of keymaps anyway Nov 24 17:56:32 I find it so hard to choose. Nov 24 17:56:34 ^D to debug Nov 24 17:56:39 etc. Nov 24 17:56:53 Good idea. Nov 24 17:57:03 the intellij android tool window is ALT-8, so I use ^8 to debug a running app on-device Nov 24 17:57:04 etc. Nov 24 17:58:12 Is roboelectric any good? I heard it doesn't need to be run on a device Nov 24 17:58:25 It runs on the JVM. I haven't used it, but it looks really good. Nov 24 17:58:36 I'll probably switch to it soon. Nov 24 17:58:54 haven't try any testing solution tbh, I am not an android dev per se (just starting) Nov 24 17:59:03 but having to load the tests on the device doesn't sound like fast Nov 24 18:00:13 Right now, I'm just testing the parts of my project that don't touch android.*. You can do that on the JVM. (Well, in Eclipse, anyway.) Nov 24 18:00:17 Foxandxss, depends on what you're testing. Nov 24 18:00:30 Mavrik: that is a good question tho Nov 24 18:00:33 Foxandxss, it's still just a mock framework that will run on a different VM and hardware implementation than your end product. Nov 24 18:00:34 I think Robolectric lets you test code that touches the android.* stuff, too, on the JVM. Nov 24 18:01:02 I never did any serious mobile, so I have no idea what to test Nov 24 18:01:09 Foxandxss, it's fine for testing SDK/backend related code quickly, but actual UI tests should still be done with instrumentation framework on a device not with Robolectric mocks Nov 24 18:01:20 on web dev, I test my rest api, my business logic and in front (javascript) well, angualr stuff :P Nov 24 18:01:30 IMO, there are three issues with "instrumentation tests": 1. They tend to be slow. 2. They require an attached device (or the emulator). 3. They require (I think) the use of JUnit 3. Nov 24 18:01:34 at the end of the day even instrumentation tests aren't that slow, our test runs are at 3minutes on Jenkins server with x86 emulator now Nov 24 18:01:52 which isn't really long Nov 24 18:01:55 Mavrik: Do you have to use JUnit 3? Nov 24 18:02:00 yes Nov 24 18:02:02 well, the good part of instrumentation tests (if I got it right) is that you don't need to run them that many times Nov 24 18:02:05 Using JUnit 3 feels like going back in time 10 years. :/ Nov 24 18:02:11 how so? Nov 24 18:02:16 it is an old version? Nov 24 18:02:18 Yes. Nov 24 18:02:22 Every test must start with "test". Nov 24 18:02:26 Such an annoying restriction. Nov 24 18:02:33 test or @test? Nov 24 18:02:42 public void testFoo() { } Nov 24 18:02:48 ah Nov 24 18:02:48 No "Test" annotation. Nov 24 18:02:58 It sounds like a small thing, but IMO it's not. Nov 24 18:03:04 It makes tests harder to read. Nov 24 18:03:10 IMO it is :D Nov 24 18:03:25 I like to use unit tests pretty much as a specification. Nov 24 18:03:25 well, I learnt while ago that it is important to do the stuff and not looking if it is pretty or not Nov 24 18:03:26 It's annoying yes. Nov 24 18:03:35 do your best Nov 24 18:03:38 My tests basically say "This class does X, Y, and Z". Nov 24 18:04:04 I will take a look when I have some app to test :P Nov 24 18:04:43 It's a shame that automated testing on Android isn't better. Testing is so important. Nov 24 18:04:47 Makes everything better. Nov 24 18:05:04 there are a lot of frameworks which puts testing aside Nov 24 18:05:14 and when they realize that testing is needed, they force it in Nov 24 18:05:16 didnt they promise like 2 years ago to work on better test framework? Nov 24 18:05:20 Espresso is ok as a testing framework Nov 24 18:05:20 and sometimes it ends on a weird way Nov 24 18:05:21 then you never heard again of it Nov 24 18:05:33 danijoo, there's been bunch of new stuff in last two releases Nov 24 18:05:46 also Gradle does make testing significantly easier. Nov 24 18:05:56 gradle is marvelous Nov 24 18:05:59 builtin coverage, stuff like that Nov 24 18:06:00 You'd think they could upgrade to JUnit 4, at least. Nov 24 18:06:02 Mavrik: yeah but im still waiting for something like robolectric from an "official" side Nov 24 18:06:08 danijoo, why? Nov 24 18:06:19 That would be a dumb waste of Google resources Nov 24 18:06:25 Even JUnit 4 isn't anything to write home about. Nov 24 18:06:28 Mavrik: thats your opinion Nov 24 18:06:32 Parameterized tests, for example, suck. Nov 24 18:06:37 After all, Google team makes sure Robolectric works Nov 24 18:06:43 theres a reason why lots of people use it. and its not because its bad Nov 24 18:06:44 no need to duplicate an already working solution Nov 24 18:07:08 I wish they'd finally let Android Studio do JVM unit testing without jumping through hoops. Nov 24 18:07:13 I'm considering not using an actionbar completely and just using a custom view at the top of my app. Any reason why I shouldn't do this? Nov 24 18:07:21 google HAD to do it right from beginning but having a couple of options today, I am with Mavrik , it is not that good idea to waste resources now Nov 24 18:07:29 ciree, the new Toolbar from appcompat-v7 is exactly this :) Nov 24 18:07:45 ciree: because user expect an actionbar Nov 24 18:07:50 v7 got updated for 5.0 correct? Nov 24 18:07:55 ciree, mhm. Nov 24 18:08:02 danijoo: Its going to be basically the same functionality Nov 24 18:08:10 pretty much all new 5.0 apps use the toolbar which acts as a view, not as an actionbar Nov 24 18:08:10 Mavrik: thanks, I'll check it out Nov 24 18:08:13 Mavrik: looking through google, saw that putting an icon on that new appcompat actionbar is not that easy, should we put a toolbar if we want to "tune" it? Nov 24 18:08:15 which lets you do that stuff Nov 24 18:08:20 ciree: then use the toolbar. i think thats exactly what you want Nov 24 18:08:21 I see Nov 24 18:08:22 :P Nov 24 18:08:24 thanks Nov 24 18:08:33 Foxandxss, honestly I haven't ported my apps to that yet so I can't tell you :) Nov 24 18:08:41 no time :/ Nov 24 18:08:54 I see material design marvelous, can't wait to do stuff with it :P Nov 24 18:08:57 yeah, time is a problem Nov 24 18:09:43 I'm less enthusiastic about Material Design after using the latest Google apps. Nov 24 18:09:48 They all look so bland and similar. Nov 24 18:10:05 I like them tho :P Nov 24 18:10:07 The one thing I do like, though, is the icons. Nov 24 18:10:09 whats up with the support for material design? On their guidelines page you can't use half of the stuff still correct? Nov 24 18:10:41 ciree, what do you mean? Nov 24 18:10:56 Snackbar, EditText validation, etc Nov 24 18:11:11 http://www.google.com/design/spec/patterns/errors.html# Nov 24 18:11:51 Not sure what do you mean Nov 24 18:11:54 that's a design guideline Nov 24 18:12:11 It shows how material apps should be designed, what's stopping you from making your app look like that? Nov 24 18:12:26 Native snackbar functionality Nov 24 18:12:33 I don't believe that exists? Nov 24 18:12:40 And? Nov 24 18:12:51 it's just a view that pops on the bottom of the screen Nov 24 18:13:06 okay...do it myself Nov 24 18:13:08 like few lines of xml in a relativelayout :) Nov 24 18:13:08 got it Nov 24 18:13:34 there are a few snackbar implementations on google Nov 24 18:13:52 Foxandxss: I'm using one actually, just was wondering if there were native options Nov 24 18:15:41 Googlers said on I/O they're not going to bother creating those trivial widgets Nov 24 18:15:50 since most apps customize them anyway so there's not much point Nov 24 18:16:13 Hey yall Nov 24 18:16:33 ohayo Nov 24 18:16:57 so.. I have some code that spawns an alertDialog but the code completes before the dialog is brought up. I need a value from that dialog that is determined onClick. What is the best way to go about this? Nov 24 18:18:15 tricknology, em, setPositive and setNegativebutton functions have callbacks as parameters Nov 24 18:18:26 if you have a basic alertdialog Nov 24 18:18:30 Yeah, do the callback thing. Showing a DialogFragment is, as you've found, async. Nov 24 18:18:45 Yeah, didn’t ever find that out til now hah Nov 24 18:18:55 Same with starting activities. Nov 24 18:18:56 callback it is.. interface or otherwise? Nov 24 18:19:02 There are all kinds of race conditions that can pop up. Nov 24 18:19:13 no me gusta race conditions Nov 24 18:19:19 they lead to bugs Nov 24 18:19:23 The standard pattern is for the DialogFragment to define a "listener" interface. Nov 24 18:19:25 a mi tampoco Nov 24 18:19:35 And it casts getActivity to this interface and calls it. Nov 24 18:20:00 Or casts on onAttach if you want to throw an exception if they're not implementing our listener. Nov 24 18:20:01 Yeah, I prefer to use messagebus Nov 24 18:20:20 Bunch of orientation/configuration change race conditions and bugs otherwise Nov 24 18:20:31 at this time i am not using fragments Nov 24 18:21:08 I think using DialogFragment is recommended. Nov 24 18:21:12 Is there any reason you don't want to? Nov 24 18:21:40 because this project is not going to be upgraded to use fragments Nov 24 18:21:46 there is a 2nd version I am working on that will Nov 24 18:22:17 Hi! Nov 24 18:22:20 FWIW, the documentation (as far as I recall) basically states "don't create AlertDialogs manually; use DialogFragments". Nov 24 18:22:26 I'm looking to update two TextViews, but I don't want to just update it dynamically as I must localise the app afterwards. I've created 4 strings in strings.xml. Is there any way to update the text by just switching the strings being used? Nov 24 18:22:35 I have a button that starts an asynchronous task (B) in the backround. that button is initialized with an onClickListener and then disabled until another task (A) that B depends on finishes (button.setEnabled(true) within the onFinishListener() of A). so B should depend on A. for some reason A sometimes won't run because B is already running though. A is only started once within onActivityCreated(). Any idea what could cause this? Nov 24 18:22:38 This project is years old so giving it a fragment facelift would be pointless due to the fact that there is a 2nd version in the works that does jsut that. i just need a quick patch I giess Nov 24 18:22:52 AnDaghdha, can you elaborate more? Nov 24 18:22:55 tricknology: Using DialogFragment is so easy. Nov 24 18:22:57 It's not clear what your issue is. Nov 24 18:23:23 Does anyone know how to fix the problem where Android Studio doesn't recognize the JDK path? Nov 24 18:23:33 You just subclass it and then in the Activity say "new FooDialogFragment.show(get[Support]FragmentManager(), null);" or whatever. Nov 24 18:23:39 You don't have to do any voodoo with Fragments. Nov 24 18:23:59 ok Nov 24 18:24:19 another thing I learned.. interfaces can’t be subclasses of the class in which they are extended from Nov 24 18:24:43 *from which they are extended Nov 24 18:24:51 I'm not sure what you mean. Nov 24 18:25:49 A nested interface can't implement its enclosing class? Nov 24 18:26:04 class B is an interface and is a subclass of A, I can’t implement B Nov 24 18:26:21 in A Nov 24 18:26:34 class A implements B Nov 24 18:26:54 Sure. I'm making a BMI calculator. I have two TextViews asking to enter a height and weight in centimetres and kilogrammes and I've radio buttons to switch between Metric and Imperial (Inches/Pounds). I want to change the text on both TextViews in a way that I can have both versions of the possible texts in strings.xml for localisation. Nov 24 18:27:13 Hello Nov 24 18:27:17 Hi! Nov 24 18:27:27 I still need help implementing a broadcast receiver Nov 24 18:27:34 I'm not clear on some things... Nov 24 18:27:40 AnDaghdha: textview.setText(R.string.some_text)? Nov 24 18:27:53 tricknology: You mean this? public class Enclosing { public interface Nested implements Enclosing { } } Nov 24 18:27:55 I'm working off of these two files: Nov 24 18:27:56 https://raw.githubusercontent.com/apache/cordova-plugin-battery-status/master/src/android/BatteryListener.java Nov 24 18:28:00 http://www.oodlestechnologies.com/blogs/Tracking-Install-Referrer-or-Campaign-Referrer-for-Android-App-in-Titanium Nov 24 18:28:05 no Nov 24 18:28:06 AnDaghdha, setText() on TextView has a version where it just takes a resource ID from strings Nov 24 18:28:20 so setText(R.string.metres) and setText(R.string.miles) etc. Nov 24 18:28:28 AnDaghdha, create an onSelectionChanged listener (or something like that, look it up) and do a check (if (selection == metric) tv.setText(R.string.metricwhatever) else tv.setText(R.string.imperialwhatever) Nov 24 18:28:35 TacticalJoke: public class Enclosing implements Nested{ public interface Nested { } } Nov 24 18:28:49 What I need to do is to send the intent URI when I get a broadcast from INSTALL_REFERRER .. I think Nov 24 18:28:50 I see. Nov 24 18:29:10 was it you who had the pretty non-anonymous OnClickListeners? Nov 24 18:29:18 I got the idea to do that after seeing that code Nov 24 18:29:21 Mavrik, you must be tall if you consider measuring height in miles Nov 24 18:29:25 Yeah. Nov 24 18:29:32 I hate anonymous classes with a passion. Nov 24 18:29:34 Pretty anonymous OnClickListeners? Nov 24 18:29:45 They're like peacocks with damage feathers. Nov 24 18:29:46 Syzygy_, you'd be surprised :P Nov 24 18:29:51 Lambdas or just .setOnClickListener(new OnClickListener...? Nov 24 18:29:53 damaged* Nov 24 18:30:05 no he made subclasses for all of his OnClickListeners Nov 24 18:30:08 JakeWharton's butterknife does a really awesome non-anonymous onclicklisteners Nov 24 18:30:15 Oh ouch Nov 24 18:30:17 it really makes the code more readable Nov 24 18:30:20 I use *named* nested classes for all listeners. Nov 24 18:30:24 Rather than anonymous ones. Nov 24 18:30:29 ^ Nov 24 18:30:33 @OnClick(R.id.mybutton) public void foo() { ... }) Nov 24 18:30:40 without the last ) Nov 24 18:30:42 lol old school Nov 24 18:31:00 I see that simply awesome Nov 24 18:31:01 Oh is that his, what I call "Annotate everything" library? Nov 24 18:31:04 Not because its bad Nov 24 18:31:10 But because I dont understand them and see them lots :( Nov 24 18:31:13 I have some random code I whipped up, testing it now Nov 24 18:31:25 TacticalJoke: why? just added boilerplate with no advantage Nov 24 18:31:27 and @InjectView(R.id.foo) Button mybutton; Nov 24 18:31:39 anyone have any good tips or suggestions for working with multiple map tile providers/overlays? i'm getting slammed with memory issues! :) Nov 24 18:32:02 Damn. Didn't think of that at all. Sorry about that. Didn't get any sleep last night. :P Thanks, Ashiren and Syzgy_ Nov 24 18:32:13 JakeWharton: I find anonymous classes really ugly. Nov 24 18:32:24 I know I could just use ButterKinfe. Nov 24 18:32:25 Knife* Nov 24 18:32:36 In fact, "Butter Knife". Nov 24 18:32:58 a small question though Nov 24 18:33:08 it is lovely TacticalJoke Nov 24 18:33:10 will this break? Note the space in front.. 'android:name=" com.google.android.gms.analytics.CampaignTrackingReceiver"' Nov 24 18:33:31 are spaces significant? Nov 24 18:33:45 I think that capital letters are not welcomed Nov 24 18:33:54 can you change the priority of a thread after it has started? Nov 24 18:33:58 but don't quote me on that Nov 24 18:34:01 I'm working off of https://developers.google.com/analytics/devguides/collection/android/v4/campaigns Nov 24 18:34:07 ChrisUK: yes Nov 24 18:34:10 They have a space in front Nov 24 18:34:11 Agamemnus: yes Nov 24 18:34:13 wondering if it's deadly Nov 24 18:34:16 I see Nov 24 18:34:17 AWESOME Nov 24 18:34:27 well, i don't know. but just don't do it Nov 24 18:34:46 This is the kinda thing I prefer: http://pastebin.com/n4K8T7uJ Nov 24 18:35:18 Actually, that's really badly named. Nov 24 18:35:24 But that pattern. Nov 24 18:35:37 It looks great when used as part of the "builder" pattern. Nov 24 18:35:38 agam: ok thanks Nov 24 18:35:42 Why? Nov 24 18:35:46 Do you do that for all listeners? Nov 24 18:35:50 Even OnClick etc? Nov 24 18:35:51 Yeah. Nov 24 18:35:53 Everything. Nov 24 18:36:00 Simple, consistent, neat. Nov 24 18:36:02 well, you can do that yes Nov 24 18:36:04 basically I want to do some heavy duty processing in the background but I dont want it messing up my UI thread Nov 24 18:36:07 Anonymous classes are a whole new class inside a method. Nov 24 18:36:09 I don't like it, but you can do that :P Nov 24 18:36:18 if I set it to a low priority it wont cause stutter? Nov 24 18:36:19 never findViewById(R.id.foo).setOnClickListener(new OnClickListener(){ //code }};? Nov 24 18:36:22 You're reading a method and... whoa. A new class! Nov 24 18:36:30 Yeah Nov 24 18:36:31 Yeah, never. Nov 24 18:36:43 But otherwise...classes everywhere rather than just localised to what they effect. Nov 24 18:36:46 better locality and scoping though Nov 24 18:37:11 True. Though of course we have to use "final" if you wanna get the enclosing scope's stuff. Nov 24 18:37:15 s/you/we/ Nov 24 18:37:22 Final everywhere isnt a bad thing Nov 24 18:37:33 Anthaas: I think it harms readability. Nov 24 18:37:36 I think it was JakeWharton who told me I should aim to have all my objects to be immutable if possible. Nov 24 18:37:38 I wish Java variables were final by default. Nov 24 18:37:44 Because immutability is awesome. Nov 24 18:37:53 But 'final' everywhere is so much bloat. Nov 24 18:37:55 I sent google a note via their forums Nov 24 18:38:03 how can i show loading circle in middle of screen like gmail in sdk 21 and appcompat 21 Nov 24 18:38:04 I've done my good deed for the day..... https://groups.google.com/forum/?fromgroups#!topic/ga-mobile-app-analytics/oNvL_nApkT8 Nov 24 18:38:20 Imagine how cool it'd be if we had to opt *in* to mutability. Nov 24 18:38:27 Perhaps with a 'var' keyword or something. Nov 24 18:38:36 Hmm. Nov 24 18:38:55 Almost all of my variables are immutable. It's so rare that I assign more than once. Nov 24 18:39:16 TacticalJoke: get some rest man, you need rest Nov 24 18:39:38 Anthaas: Do you use 'final' everywhere? Just curious. Nov 24 18:39:56 The way I handle structuring apps, generally, is in onCreate() I'll create an initViews() method to set all the listeners - nice and clean and collapsable and in one place then Nov 24 18:39:58 I've seen quite a lot of code that does. Nov 24 18:40:03 One annoying thing here must be onCreate handlers and stuff. Nov 24 18:40:08 Haha, I want to say I do, I use it a fair amount... Nov 24 18:40:13 You can't use final fields for stuff assigned only in onCreate. Nov 24 18:40:21 But nowhere near the scale that would be good for design. Nov 24 18:40:53 Anthaas: BTW, I'm implementing your idea. :) Nov 24 18:40:56 http://en.wikipedia.org/wiki/Final_%28Java%29 Nov 24 18:40:58 About "1 min, 5 secs". Nov 24 18:41:05 If the latter is 0, I won't show it. Nov 24 18:41:09 Ooooh nice :D Nov 24 18:41:11 If it's not, they get two values. Nov 24 18:41:23 It seems bad to show "1 hour, 0 mins". Nov 24 18:41:27 Of course. Nov 24 18:41:39 It'll be "1 hour" or "1 hour, 1 min" or "1 hour, 2 mins". And so on. Nov 24 18:41:54 Yeah :D sounds good! Nov 24 18:41:57 Only "minute" and "second" are shortened. Everything else (up to "year") is short enough. Nov 24 18:42:13 Thanks for the idea. :) Nov 24 18:42:21 Talking about all that yesterday has made me wish I was making a client now! :P or at least doing some app stuff.... Nov 24 18:42:25 Welcome :-) Nov 24 18:42:36 Might even change client if yours offers enough :P Nov 24 18:42:37 Aww. I know what you mean. Nov 24 18:42:50 This one should be good. If it's not, I won't even release. Nov 24 18:42:54 All or nothing. Nov 24 18:43:05 Haha, I dont really touch any programming at the moment :( Nov 24 18:43:08 Yeah makes sense. Nov 24 18:43:15 Are you too busy? Nov 24 18:43:44 PhD Nov 24 18:43:49 Ah, of course. Nov 24 18:44:00 Just had the targets slightly readjusted today haha Nov 24 18:44:11 Anthaas: good luck on that mate Nov 24 18:44:22 my gf suffered quite a bit with it :P Nov 24 18:44:31 Thanks :D Nov 24 18:44:32 It'd be so cool to be able to say "Yeah, I have a PhD". Nov 24 18:44:39 Its been OK so far, interesting to say the least. Nov 24 18:44:40 A PhD in AI. Nov 24 18:45:01 Haha :D Nov 24 18:45:07 AI is a very broad subject Nov 24 18:45:08 it all comes down if your thesis is interesting Nov 24 18:45:10 But yeah - I can't wait. Nov 24 18:45:12 It does. Nov 24 18:45:13 If aliens ever visit, you're gonna be our spokesperson. Nov 24 18:45:14 Wait, that's ETI. Nov 24 18:45:21 Haha Nov 24 18:45:31 What I am doing currently is completely novel. Nov 24 18:45:42 What kinda stuff are you doing? Nov 24 18:45:45 What, you can actually get a PhD in AI now?? Nov 24 18:45:51 Reasoning and Knowledge Representation. Nov 24 18:45:56 Interesting. Nov 24 18:46:00 I love the field of AI. Nov 24 18:46:04 Know almost nothing about it, though. Nov 24 18:46:18 I used to struggle with trying to make a chat bot talk like a human. It was so difficult. Nov 24 18:46:29 I felt like I needed a PhD. Nov 24 18:46:40 Anthaas: knowledge representation? Nov 24 18:46:44 Even CleverBot is really poor. Nov 24 18:47:03 It basically tries to connect two sources of human input. Nov 24 18:47:37 Currently, I am showing that Answer Set Programming is an efficient paradigm to use when reasoning with spaciotemporal data. Nov 24 18:47:55 Are genetic algorithms big in that field? Nov 24 18:48:16 The whole "biological natural selection applied to computer science" thing. Nov 24 18:48:21 The ultimate goal though is how to implement/utilise single agent preferences in spaciotemporal data within the context of the semantic web. Nov 24 18:48:32 Turing test FTW Nov 24 18:48:44 NP-hard dude Nov 24 18:48:50 Exactly. Nov 24 18:48:56 ASP is used for NP-hard problems. Nov 24 18:49:03 Natural selection is such a creative "algorithm". Applying it to computer science yields results people couldn't even imagine. Nov 24 18:49:04 And is not turing complete. Nov 24 18:49:18 we have to wait more paralleling processing being enable for the masse :) Nov 24 18:49:26 Since it created human brains, imagine what software it could create. Nov 24 18:49:42 or we will never defeat all these "decidability" issue ;) Nov 24 18:49:52 (in a reasonable amount of time) Nov 24 18:50:31 I bet women love that. "Yeah, ladies, I have a PhD." Nov 24 18:50:34 Just a side note. Nov 24 18:50:42 I'm assuming you're male. Nov 24 18:50:43 My girlfriend likes to drop the fact I am doing one haha. Nov 24 18:50:45 I am. Nov 24 18:50:46 your future employer will love that lol Nov 24 18:50:48 Nice. lol Nov 24 18:51:07 I just hope my wallet loves it! Nov 24 18:51:26 is a PhD useful outside university on USA? Nov 24 18:51:26 you just killed the spirit lol! Nov 24 18:52:01 I couldnt say, Im from the UK Nov 24 18:52:09 ok so i need help now Nov 24 18:52:22 back to the Google page: Nov 24 18:52:22 and what about there? in spain is not that useful Nov 24 18:52:27 well, in spain anything is useful as today Nov 24 18:52:40 https://developers.google.com/analytics/devguides/collection/android/v4/campaigns Nov 24 18:52:54 I need to, I think, do something like: Nov 24 18:52:57 "intentFilter.addAction(Intent.INSTALL_REFERRER);" Nov 24 18:53:12 but... that crashes, cannot find symbol Nov 24 18:53:17 any help? Nov 24 18:53:41 Yeah it is here. Nov 24 18:54:01 Anthaas: Essex here. Nov 24 18:54:05 I know my University won't employ anyone without a PhD now or aiming for one.... Nov 24 18:54:06 Agamemnus, did you add the corresponding lib? Nov 24 18:54:12 (to your project) Nov 24 18:54:13 TacticalJoke: Somerset originally here, but West Yorkshire. Nov 24 18:54:19 Ay-up. Nov 24 18:54:27 which lib am I supposed to add? Nov 24 18:54:34 Haha, whas tha' doin' on t'internet? Nov 24 18:55:26 the corresponding one, analyticsservices Nov 24 18:55:58 Well Nov 24 18:56:06 First of all I'm not sure I need to add a lib. Nov 24 18:56:12 I only want to get the URI. Nov 24 18:56:13 yes you do Nov 24 18:56:14 playservice Nov 24 18:56:15 https://developer.android.com/google/play-services/setup.html Nov 24 18:56:41 i have that Nov 24 18:56:46 https://developers.google.com/analytics/devguides/collection/android/v4/ "Before you Begin" Nov 24 18:57:05 I don't really know what I'm doing Nov 24 18:57:18 I just want the install uri Nov 24 18:57:37 I have the full version of google-play-services as a lib Nov 24 18:58:08 guys, in this tutorial the guy declares the date picker's fragment and the activity class in the same file, is it encouraged behavior or is it preferred to make a separate file for the fragment class? Nov 24 18:58:10 (http://javapapers.com/android/android-datepicker/) Nov 24 18:58:21 here is what i have right now: http://pastebin.com/wEihBLHf Nov 24 18:58:21 I don't know more Agamemnus Nov 24 18:58:38 I see Nov 24 19:03:00 http://developer.android.com/guide/components/intents-filters.html : Nov 24 19:03:11 are you using single spaces Agamemnus? Nov 24 19:03:18 *convnetion Nov 24 19:03:29 so I am at "Example filters" Nov 24 19:03:29 yes Nov 24 19:03:51 Sorry, I don’t do anythign with Cordova so I can’t help Nov 24 19:03:52 I see the examples xml, but there's no code to go with it. Nov 24 19:04:12 If you look at that link above, you'll see it's on developer.android.com Nov 24 19:04:43 what are you tryign to do? Nov 24 19:04:52 I need onReceive to run when I get the com.android.vending.INSTALL_REFERRER action Nov 24 19:04:58 I think. Nov 24 19:05:06 https://developers.google.com/analytics/devguides/collection/android/v4/campaigns see #1 Nov 24 19:05:43 so I am not sure what the syntax is Nov 24 19:06:52 I think you ened to call execute at least once Nov 24 19:07:00 so that you can regiser the receiver Nov 24 19:07:24 Yes, I do that Nov 24 19:07:36 the error is in intentFilter.addAction(Intent.INSTALL_REFERRER); Nov 24 19:07:42 i don't think that's correct Nov 24 19:07:45 but what IS? Nov 24 19:07:58 what is the error? Nov 24 19:08:07 compiler error? Nov 24 19:08:28 cannot find symbol Nov 24 19:08:38 for INSTALL_REFERRER Nov 24 19:09:55 com.android.vending.INSTALL_REFERRER Nov 24 19:10:51 http://support.mobileapptracking.com/entries/22561636-How-Google-Play-Install-Referrer-Works Nov 24 19:10:53 trying it.. Nov 24 19:11:06 i saw this one too Nov 24 19:11:07 no code Nov 24 19:11:17 their intent filter is in their manifest Nov 24 19:11:18 that doesn't work Nov 24 19:11:26 yes i added it also Nov 24 19:11:40 im not sure where com.android.vending lives Nov 24 19:11:59 am I correct to use intentFilter.addAction ? Nov 24 19:12:19 I just restarted my IntelliJ and one of my activity layout's component trees is wiped clean and the phone screen in the design view isn't showing up. But I can clearly see all my xml. Tried rebuilding. Tried dragging components over to start again. But then my other activities are all working as normal. Sorry if it's not really android related. Just wondering if anybody else has run into Nov 24 19:12:19 this. Nov 24 19:12:26 you see this? http://stackoverflow.com/questions/14864109/com-android-vending-install-referrer-isnt-working Nov 24 19:12:31 yes Nov 24 19:12:47 I'm thinking of naming my unit-test methods using snake_case (because they tend to be sentences or sentence fragments). Nov 24 19:12:49 Does anyone do this? Nov 24 19:13:01 Example: correctly_displays_text Nov 24 19:13:02 Or something. Nov 24 19:13:04 meh no Nov 24 19:13:07 Nah Nov 24 19:13:10 correctlyDisplaysText Nov 24 19:13:31 testSomethingToTest tests somethingToTest Nov 24 19:13:38 ^ Nov 24 19:13:40 Thats how I do it Nov 24 19:13:52 so, testCorrectlyDisplaysText Nov 24 19:14:00 Although really the test part isnt really necessary Nov 24 19:14:08 @Test shows they are tests Nov 24 19:14:13 oh nice Nov 24 19:14:15 and the fact they are in a Unit Test class. Nov 24 19:14:31 I had eclipse yell at me because my test case did not begin with “test" Nov 24 19:14:36 good to know you can @Test Nov 24 19:15:22 tricknology: i see Nov 24 19:15:27 that is version 1 though Nov 24 19:15:31 and a different issue Nov 24 19:15:35 this is version 4 Nov 24 19:15:52 Sorted. Just deleted some problem xml and it redisplayed. Nov 24 19:16:22 tricknology: Need JUnit 4 for "@Test". JUnit 3 requires a "test" method-name prefix. Nov 24 19:17:05 ^ Nov 24 19:17:19 aah Nov 24 19:17:32 Thanks for the clarification Nov 24 19:17:39 Poor assumption on my part that he'd be using 4. Thanks. Nov 24 19:18:14 idk why I’m using 3.. first one I could get to work maybe? Nov 24 19:18:38 Yeah, snake_case is too ugly. Nov 24 19:18:43 Can't bear to look at it. Nov 24 19:18:52 I do it for variables sometimes Nov 24 19:18:54 tricknology: The Android instrumentation thingy needs JUnit 3. Nov 24 19:19:01 oh that’s why then Nov 24 19:19:05 If you ever touch CORBA in Java, youll have to get used to it haha Nov 24 19:19:15 or c++ Nov 24 19:19:23 C++ seems to bum the heck out of snake case. Nov 24 19:19:37 any way to make a script that signs and builds multiple .apks? Nov 24 19:19:53 we have liek 6 white-lable apps and it’s annoying to build and sign all of them :( Nov 24 19:20:01 i'm going to try to do it without intentFilter.addAction Nov 24 19:21:19 I used to hate how C++ code often went between snake_case and camelCase. Nov 24 19:21:36 And snake_case class names are ugly as hell. Nov 24 19:21:51 I can't take a class seriously with such a name. Nov 24 19:21:58 snake_case was for vars, no? camelCase was for functions? Nov 24 19:22:01 ContactManager versus contact_manager. Nov 24 19:22:01 So much of C++ seems to be base around "Meh, I felt like doing it this way today..." Nov 24 19:22:03 Guys, What exactly do i have to specify in GROUP in the /etc/udev/rules.d/51-android.rules file??? According to android docs: "GROUP defines which Unix group owns the device node". But how do i konw which unix group should handle/own the device node? Nov 24 19:22:39 std::priority_queue Nov 24 19:22:49 Should it be the group in which Eclipse is a member of? (side note: i don get the idea of groups completely, still a unix beginner as a matter of fact) Nov 24 19:23:25 Anthaas: Right. One of my favourite quotes is this: "C++: An octopus made by nailing extra legs onto a dog." Nov 24 19:23:47 hahaha Nov 24 19:24:00 lol Nov 24 19:29:29 why is appcompat v7 distributed as a project instead of a jar? Nov 24 19:29:54 this dependency project instead of a jar is extremely problematic Nov 24 19:30:02 I think because it uses resources. Nov 24 19:30:39 TacticalJoke, my app works great. Thanks for your yesterday's input (+patience). Nov 24 19:31:01 No worries. Glad you got it working. :) Nov 24 19:31:32 Beket: what app is that ? Nov 24 19:32:43 ok i am trying a different approach... Nov 24 19:33:13 the stackoverflow post helped Nov 24 19:33:15 Norrin: With Gradle (e.g., in Android Studio), I think it's just a case of adding a single line to a file. Nov 24 19:33:18 TacticalJoke, it's being a nightmare to get this working with maven Nov 24 19:33:21 Though I'm not using AS personally. Nov 24 19:33:30 Or Gradle. Nov 24 19:33:42 shmooz, it's a mobile portal of some medical site with drugs, substances, ICD10 codes, etc etc Nov 24 19:33:45 nothing fancy Nov 24 19:34:00 Hmm, I haven't tried using v7 from Maven. Nov 24 19:34:11 cool Nov 24 19:34:23 Beket: using webView I guess ? Nov 24 19:34:34 Multithreading, good or bad for games with libgdx? Nov 24 19:34:40 shmooz, yeh for displaying the content Nov 24 19:36:07 shmooz, http://dl.dropbox.com/u/25202446/1.png http://dl.dropbox.com/u/25202446/2.png Nov 24 19:36:16 (language is greek) Nov 24 19:37:09 TacticalJoke, yeah the latest error is a runtime error. 11-20 21:15:24.340: E/AndroidRuntime(2538): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable; Nov 24 19:37:25 TacticalJoke, that's a resource issue? Nov 24 19:37:44 Beket: it's all greek to me ;) Nov 24 19:37:59 shmooz, haha, well played :) Nov 24 19:38:03 TacticalJoke, i didn't know maven had one Nov 24 19:38:10 literally Nov 24 19:40:08 when i use and intent.putExtra(key, value) if the value is not a string, how to i retrieve it? i have found getExtra().getString(key) but it's only for strings, right? Nov 24 19:40:33 skrite: theres also getInt(), getBoolean and so on Nov 24 19:40:39 getSerialisable? Nov 24 19:40:40 read the docs man Nov 24 19:41:00 getInt? Nov 24 19:41:08 ah, good deal, thanks Nov 24 19:41:39 Norrin: Hmm. I guess so. Have you seen this? http://stackoverflow.com/questions/17851783/error-implementing-support-library-action-bar Nov 24 19:42:24 "T-Mobile proudly announces their Nexus 6 won’t have logos, bloatware" .. tmo ftw \o/ Nov 24 19:43:49 how come T-Mobile is so successful but other third parties suffer Nov 24 19:44:15 Are you telling me your heart bleeds for AT&T or something? Nov 24 19:44:23 maybe it's a front made by the monopolies to keep the money in the family nudge nudge Nov 24 19:44:56 i see Nov 24 19:45:11 at&t phones have encrypted bootloader shit since at least 2013 Nov 24 19:45:27 as i found out Nov 24 19:45:55 It's hard to know where to stop with unit tests sometimes. Nov 24 19:46:11 TacticalJoke i'm guessing you never stop Nov 24 19:46:55 "Galaxy S5's international sales have fallen 40% below the company's expectations." oii Nov 24 19:47:04 There's no stopping someone who will stop at nothing! Nov 24 19:47:20 it's a bit easier if you have specs stating what is returned as output and what is inserted at input Nov 24 19:48:07 have you played Flappy Droid yet? Nov 24 19:48:15 ... Nov 24 19:48:22 it's AMAZANG! Nov 24 19:48:23 shmooz impeccable logic ! :D Nov 24 19:48:45 well, I called it Flappy Droid, but it's really the game hidden under the Android version entry in device settings Nov 24 19:48:49 it's better than flappy bird Nov 24 19:48:58 TacticalJoke, yeah, just how do you do that in maven? Nov 24 19:50:37 that's the current question. does anyone know if maven can do dependency PROJECTS instead of dependency jars? (to include resources?) Nov 24 19:50:52 Odaym: I found it impossible to play Nov 24 19:51:06 because you're putting the full weight of your finger; this one understands pressure Nov 24 19:51:19 so pro Nov 24 19:51:45 Norrin: Some people on SO are talking about maven-android-sdk-deployer. I've never used it, though. Nov 24 19:51:52 if you keep pressing, the droid keeps going up Nov 24 19:51:54 e.g., this: http://stackoverflow.com/questions/18380337/android-support-library-setup-with-maven Nov 24 19:51:57 well that's not really pressure, lol Nov 24 19:52:46 please help, ubuntu 14.04 does not connect to Galaxy S3 (android 4.3) Nov 24 19:52:51 already setup the udev rules Nov 24 19:52:55 TacticalJoke, i'll definitely check out. have to run an errand real quick. i'll be back in about an hour Nov 24 19:52:58 did everything i could Nov 24 19:53:04 Where is the SDK Manager binary? Nov 24 19:53:24 but still gives the error "Unable to open MTP device" . "couldn't find matching udev device" Nov 24 19:53:45 Strat: did you try different cable and different USB ports ? Nov 24 19:54:10 yes Nov 24 19:54:29 before, i had fedora running and that was doing everything okay. But switched to ubuntu and the headache began Nov 24 19:54:55 and i REALLY want to test my Location apps Nov 24 19:55:03 and use the sensors Nov 24 20:00:17 maven android sdk deployer is so stupid Nov 24 20:00:22 really really stupid... Nov 24 20:00:51 Norrin, apklib/aar Nov 24 20:00:58 Norrin, is how maven does dependency projects Nov 24 20:01:08 well, for published dependencies at least Nov 24 20:02:30 Strat: First things first: go to #ubuntu and ask your question there (it's not an Android development question). Second: Do you need MTP? Can you use PTP? Third: Can you post the output of lsusb and dmesg ? Nov 24 20:04:15 MarkyC, thnx for ur response! Unfortunately, i got no responses on #ubuntu. I don't need MTP or PTP, all i want is t upload my testprojects from Eclipse Nov 24 20:05:00 My lsusb: http://pastebin.com/HdJEyaFp Nov 24 20:06:36 andy my dmesg: http://pastebin.com/RZhMbJWK Nov 24 20:06:41 Strat: Have you tried installing mtpfs? It will allow you to mount the Android filesystem on your machine http://packages.ubuntu.com/trusty/mtpfs . Go to #ubuntu , I'll help you there, this is not android-dev related Nov 24 20:07:11 okay MarkyC , see you there Nov 24 20:07:41 Im trying to set up android gstreamer dev setup, im following these instructions http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development, after ndk-build I get this error: https://www.zerobin.net/?e96f26e65ac7b0df#wCOzdk10fI/EkvwJdwqtaBKFbtIhYTfwafyegM8R+hw= anyone any clue? Nov 24 20:11:30 I have an activity and onCreate it add()'s a fragment. Then on a button click in FragmentA I replace() with FragmentB(). What happened to FragmentA now? Did onStop() get called? Did onDestroy() get called? Where is it? Nov 24 20:11:47 read the docs and see what it says it does? Nov 24 20:14:41 is there a way to call getSkuDetails from the server, during server-side Play receipt verification? Nov 24 20:14:47 * g00s discovers TRIM_MEMORY_UI_HIDDEN Nov 24 20:15:54 or to otherwise get the price and currency for an SKU? Nov 24 20:19:10 I'm trying to create an instrumentTest folder, but the java folder is just a normal folder not the green one that let's you create package directories Nov 24 20:23:15 ummm Nov 24 20:23:30 can I set a baseadapter for a view pager? Nov 24 20:23:50 FragmentStatePagerAdapter from this example http://developer.android.com/training/animation/screen-slide.html doesn't have a getView, it's loading the same view again and again for the number of pages Nov 24 20:24:22 Odaym how is your BLE code doing on 5.0 ? Nov 24 20:24:27 just fine Nov 24 20:24:36 that terrific Nov 24 20:24:37 they made it BETTER Nov 24 20:24:43 the scanning is now "fixed" Nov 24 20:24:52 and you can now be in peripheral Nov 24 20:25:00 yeah saw changes around scanning Nov 24 20:25:07 the previous impl was so stupid Nov 24 20:26:23 ahhh getItem is the fragment's getView Nov 24 20:29:36 onCreateView is what Im looking for Nov 24 20:31:51 eghdk_: Note that you can check stuff with Log.whatever. Nov 24 20:40:19 Is there a way to increase the height of a CardView using animation? Nov 24 20:40:51 I know I can change the LayoutParam, but that doesn't look very nice. I'd like a smooth animation, but I'm sort of lost on how. Nov 24 20:41:56 Hi! I just changed my app, tested it on my tablet, removed the debug version, uploaded it to the play store, and installed it from the play store (expecting the old version with the update somewhere tomorrowmorning) Nov 24 20:42:15 but instead I got the new version, within 5 minutes after uploading... Nov 24 20:42:31 how nice is that? Nov 24 20:42:48 the listing on my laptop still is for the old version though Nov 24 20:43:40 it worked out of the box Nov 24 20:43:44 very nice sample code Nov 24 20:43:55 sample code that works? Nov 24 20:44:02 thats impossibru! Nov 24 20:44:07 worked out of the box with what I wanted of course, lots of tweaking, but the base is really good Nov 24 20:44:07 http://developer.android.com/training/animation/screen-slide.html Nov 24 20:44:23 I know Fragments now Nov 24 20:44:29 Im pro now Nov 24 20:45:24 Can you specify height as a percentage? Nov 24 20:45:31 yea Nov 24 20:45:33 Like I want a CardView to cover 40% Nov 24 20:45:35 but why would you Nov 24 20:45:38 you have weight Nov 24 20:45:42 and many other ways Nov 24 20:45:44 ah Nov 24 20:45:58 I dont think % works, I dont remember Nov 24 20:47:22 Didn't know about weight, but I'm reading about it now. Nov 24 20:47:59 yea you can have 3 elements be like [ -------- -- -- ] or [ --------- --------- --------- ] or [ -- --------- -- ] etc... Nov 24 20:48:15 better to use RelativeLayout though Nov 24 20:48:22 Probably a silly question, but does it also work with height? Nov 24 20:48:24 the end all be all of layouts Nov 24 20:48:38 the weight itself is the span of the thing you're giving the weight to Nov 24 20:48:50 if it has the largest weight, it'll be the largest element among the others Nov 24 20:48:56 just use RelativeLayout, so much easier Nov 24 20:49:00 you can achieve any layout Nov 24 20:49:29 you can anchor elements according to other elements Nov 24 20:49:38 relative to other elements* Nov 24 20:54:03 wish I could write layouts for a living Nov 24 20:58:58 you do? Nov 24 20:58:59 heh Nov 24 21:00:01 can i use 3rd party java libraries with robovm or codename one? (ex retrofit, okhttp, picasso...) i guess no but better ask Nov 24 21:01:51 can you use a preferences activity/fragment for things that aren't shared preferences? Nov 24 21:02:10 Android Studio let's me create new folders but not new packages. Any ideas? Nov 24 21:07:06 shekibobo: yes Nov 24 21:07:44 do they have to be defined in an XML file? Nov 24 21:08:18 i forget. presumably no since the XML is just shorthand for code Nov 24 21:10:25 Hello! Nov 24 21:13:18 i guess i cant use robovm with complex jav 3rd party libraries Nov 24 21:19:02 are there any nice libraries that provide the material widgets to pre 5.0 devices? Nov 24 21:19:45 this is interesting, someone is trying to port picasso to xamarin Nov 24 21:20:04 marrrk: appcompat Nov 24 21:20:43 Widget wise, that one is quite incomplete, isn't it? For instance it doesn't have the seek bars last time I checked. Nov 24 21:21:29 cliffreich, why wouldn't you be able to, it's a full jvm Nov 24 21:21:36 cliffreich, as long as it doesn't use android api, it's safe Nov 24 21:22:52 pfn oh ok, i'll try as soon as i have my iOS dev lic Nov 24 21:23:02 damn expensive apple heh Nov 24 21:23:12 I know, the stock price jumped 2% today Nov 24 21:24:10 bankai_au golden retriever FTW ! http://digg.com/video/golden-retriever-and-german-shepard-face-off-in-spaghetti-eating-competition Nov 24 21:24:12 http://www.androidpolice.com/2014/11/24/verizon-moto-x-2014-android-lollipop-update-now-way-devices/ Nov 24 21:24:14 yesh Nov 24 21:24:44 * pfn updates Nov 24 21:24:56 * cliffreich cries with his tmobile S3 Nov 24 21:24:57 is there something like a super ultimate onPostExecute which waits for all async tasks to finish? T_T Nov 24 21:25:21 g00s: hahaha what spaghetti? Nov 24 21:25:30 day, pretty easy to setup something of your own using something like a countdownlatch Nov 24 21:26:24 cliffreich: you fix your bundle problem ? Nov 24 21:26:30 my golden ate 2 pounds of cheese within 30 seconds, i think it took more time to steal it Nov 24 21:27:12 markelite: https://github.com/navasmdc/MaterialDesignLibrary Nov 24 21:27:30 marrrk: ^ sorry (otehr mark) Nov 24 21:27:57 bankai_au i found a writeSerializable in an parcelable object (remember that i had a custom parcelable with other parcelable objects inside). i fixed that and pushed an update Nov 24 21:28:19 hwrdprkns: Have you tried that out? I'm a bit reluctant. Nov 24 21:28:30 it doesn't explain why it failed with only 1 phone, most phones are ok. but for now i don;t have more clues Nov 24 21:28:36 Nope, just adding another library to the fray Nov 24 21:29:12 cliffreich: are you sure it's not an OS version thing? Nov 24 21:29:56 ooh, what's new in builder 0.14.4 Nov 24 21:29:59 The checkbox is also messed up for me from appcompat Nov 24 21:30:00 * pfn runs a smoketest Nov 24 21:30:09 checkbox looks good in appcompat Nov 24 21:30:13 whatyouonabout Nov 24 21:30:25 bankai_au i thought about that, but right now i don't have access to a lollipop device. So i'd be force to check android source code Nov 24 21:30:42 just accept and move on? lol Nov 24 21:30:57 I must be using it wrong Nov 24 21:31:42 I will try again. On this Lollipop ROM it seems fine. Nov 24 21:32:06 pfn, "published dependencies", what's that mean? Nov 24 21:32:15 nah ill dig into it... woulr need to check what happens between writeBundle, writeParcel and ObjectOuputStream Nov 24 21:32:41 marrrk does it matter? imho, if google gives in appcompat use it, otherwise just use the platform do what it usually does Nov 24 21:32:46 Norrin, stuff you publish into a maven repo Nov 24 21:33:22 g00s: The blue from holo looks wrong. Nov 24 21:33:42 maybe some theme attr has to be set Nov 24 21:33:51 without doing anything it looks aqua Nov 24 21:33:56 I wonder about using JSON in place of Parcelable (as a general idea). Nov 24 21:34:02 Can you change that for holo? I thought that only worked with appcomapt. Nov 24 21:34:06 appcompat* Nov 24 21:34:20 Especially for classes that already do JSON stuff. Nov 24 21:34:52 pfn, so i have to maven-ify the appcompat-v7 project, make an aar, upload that artifact, then use that new aar as a dependency? Nov 24 21:35:33 lol Odaym, I wish I could never write a layotu again Nov 24 21:35:37 will anything else make the aar? like eclipse? because that's a lot of work to maven-ify something i only need to build once Nov 24 21:36:01 Norrin, the appcompat-v7 is already an aar Nov 24 21:36:08 Norrin, if you're doing that, you're doing it wrong... Nov 24 21:36:46 TacticalJoke someone need to compare parcelable vs JSON passing it thought activities (i guess passing JSON objects as strings to reconstruct objects later) Nov 24 21:36:52 ugh, builder 0.14.4 has api changes, again Nov 24 21:37:11 Okay, so my problem is that before I press the checkbox once it is white (or invisible). Then it turns pink and I get the pink outline if I press it again Nov 24 21:37:22 jej Nov 24 21:37:24 heh Nov 24 21:37:28 marrrk, that's your theming problem Nov 24 21:37:29 pfn, where is the aar? Nov 24 21:37:35 Norrin, android support repository in sdk Nov 24 21:37:41 pfn, oh ok Nov 24 21:37:57 So, I'm setting it wrong in the theme? Nov 24 21:38:05 pfn, thanks a lot!! Nov 24 21:38:13 TacticalJoke, thanks too! Nov 24 21:38:27 * Norrin been fighting this for 3 days Nov 24 21:38:55 marrrk, probably Nov 24 21:39:03 my intellij doesn't help me with AppCompat either, that's quite annoying. Nov 24 21:39:10 I didn't really do anything, but I'm glad you're finding answers. :D Nov 24 21:42:14 Okay Nov 24 21:42:43 i wonder where in the hell i can check my app with a 5.0 device for free. already spent appthwack credits :/ Nov 24 21:42:48 I refuse to take full blame for that: http://stackoverflow.com/a/26850668 Nov 24 21:42:56 If I wanted to get html from a webpage using retrofit, is there a predefined way to do that, or should I just get the raw response and get it out of the input stream? Nov 24 21:42:59 the enumlator Nov 24 21:43:02 emulator Nov 24 21:43:17 lol enumlater Nov 24 21:43:27 my fingers are trained Nov 24 21:43:29 ^^ Nov 24 21:43:38 hahahaha Nov 24 21:44:37 Is there a way to use ripple but not duplicate the selector code into the ripple drawable? Nov 24 21:44:40 How do you persons do the shadows for your floating action buttons? Nov 24 21:44:40 JakeWharton my aspire 7745g without vt-x won't run lollipop, and any <5 runs extremely slow Nov 24 21:45:07 with haxe and GPU accel? Nov 24 21:45:15 The Intel HAXM thing is quite fast for me. Nov 24 21:45:37 Where "quite fast" means "launches within one's lifetime". Nov 24 21:45:38 My computer won't run emulators. Nov 24 21:45:40 cliffreich: You can try Genymotion Nov 24 21:45:51 Genymotion++ Nov 24 21:45:53 JakeWharton already modified laptop BIOS and unlocked intel VT-X but for some reason genymotion and intel utility still say i don't have that property Nov 24 21:47:13 kinda risy developing for a platform when main piece of the tooling doesn't work on your machine :| Nov 24 21:47:14 Man, months are a pain. I feel like not worrying about months. Does this look weird? "Created 1 year and 42 weeks ago". Nov 24 21:47:36 So Nov 24 21:47:41 Are there humans who count in weeks like that? Nov 24 21:47:44 can i send TextView Ids to objects and use them to fill those textviews later down the road? Nov 24 21:47:44 I'm still stuck on broadcast receivers Nov 24 21:47:48 I guess they do that with pregnancy. Nov 24 21:47:48 TacticalJoke: Doesn't JodaTime solve that? Nov 24 21:47:54 Yeah, I think so. Nov 24 21:48:02 that would be awesome :D Nov 24 21:48:12 I hate when people give a baby's age in weeks Nov 24 21:48:17 6 weeks Nov 24 21:48:22 come one one and a half months! Nov 24 21:48:28 day: You can store references to TextViews or access resource IDs at any time. Nov 24 21:48:36 Yeah, I hate that. Nov 24 21:48:38 marrrk: and they seem to do it for years! Nov 24 21:48:39 i guess i need a new laptop or borrow one *rub hands with evilness* Nov 24 21:48:51 TacticalJoke: i wasnt sure if it would screw over the gridview, if i start filling it randomly Nov 24 21:48:52 "yeah she's so cute, she's 46 weeks now" Nov 24 21:48:53 Like, damn, don't make me do mathematics now. Nov 24 21:48:56 marrrk: worst is... 20 months Nov 24 21:48:58 Yeah, same shit: 18 months Nov 24 21:49:00 marrrk, because prenatal gestation is measured in weeks Nov 24 21:49:04 and early baby development is quite fast Nov 24 21:49:08 so weeks is appropriate Nov 24 21:49:24 I'll probably move to Joda-Time eventually. Nov 24 21:49:27 I know it makes sense but it still irritates me. Nov 24 21:49:27 guys, you are not supposed to listen to baby blabla Nov 24 21:49:33 But, for now, I might use "2 years, 47 weeks". Nov 24 21:49:37 i dont even bother to do the math Nov 24 21:49:50 TacticalJoke: How can you do any time calculations without JodaTime? Nov 24 21:49:54 marrrk, that's because you're not part of the in crowd Nov 24 21:49:57 marrrk, Calendar Nov 24 21:49:58 duh Nov 24 21:50:23 i guess unix timestamp whats the real deal so you wont worry about human readable dates Nov 24 21:50:26 Yeah my babies are all still in the -x week range. Nov 24 21:50:40 It'd be cool to be born on the Unix epoch. Nov 24 21:50:41 Calendar seems a bit masochistic. Nov 24 21:50:45 Exactly at midnight. Nov 24 21:51:03 oops, I put my moto skip on top of some of my credit cards... Nov 24 21:52:04 hope I didn't wipe 'em Nov 24 21:52:55 pfn it probably stole the numbers and sent them to russia Nov 24 21:53:06 ol Nov 24 21:53:07 lol Nov 24 21:53:08 before wiping them :) Nov 24 21:53:12 your cards EMV? Nov 24 21:53:21 To russia? Nov 24 21:53:29 yeah man russia does all the credit card hacks Nov 24 21:53:49 if you create a thread is it owned by the activity that creates it? Nov 24 21:53:54 ChrisUK, no Nov 24 21:54:00 a thread is a GC root, it owns itself Nov 24 21:54:04 Oh yeah, I guess the NSA doesn't have to go through so much trouble just for your credit card details :) Nov 24 21:54:20 lol probably not Nov 24 21:54:31 maybe a little more trouble to get details on transactions on those cards Nov 24 21:54:38 argh Nov 24 21:54:41 it's all over the place Nov 24 21:54:44 https://github.com/rengwuxian/MaterialEditText Nov 24 21:55:12 ? Nov 24 21:55:24 I should probably learn more about how java GC works, instead of just assuming it works Nov 24 21:55:28 AppCompat also does not provide styles for EditTexts Nov 24 21:55:28 why the hell doesn’t Google step up and give us material design methods? Nov 24 21:55:34 and styles Nov 24 21:55:35 tricknology, android L Nov 24 21:55:37 they did Nov 24 21:55:52 * pfn twiddles his thumbs while his moto X boots into L Nov 24 21:56:02 Damn you! Nov 24 21:56:02 but if I am designing for < 5.0 then what? Nov 24 21:56:04 appcompat? Nov 24 21:56:07 tricknology, yes Nov 24 21:56:10 i fid it best to match their laziness. if they give, use it, if not, screw it Nov 24 21:56:13 *find Nov 24 21:56:29 appcompat 21? lol Nov 24 21:56:43 does 21 contain 7 and 4 too? Nov 24 21:56:54 tricknology, you clearly don't understand the naming Nov 24 21:57:00 And make your apps look like this: http://ilivetotravel.me/wp-content/uploads/2013/08/IMG_0516.jpg Nov 24 21:57:01 appcompat-v7 version 21 Nov 24 21:57:04 I guess not Nov 24 21:57:08 ah i see Nov 24 21:57:13 and 7 contains 4? Nov 24 21:57:16 no Nov 24 21:57:24 -v7 means api7 and up Nov 24 21:57:28 so if I use 7, forget about 4? Nov 24 21:57:31 just like how it's used in resource-discriminators Nov 24 21:57:32 ah i see Nov 24 21:57:48 so I should probably have forgotten about 4 by now.. Nov 24 21:57:53 "Android is upgrading..." Nov 24 21:57:55 * pfn twiddles Nov 24 21:58:15 i like how 5.0 has included swipe Nov 24 21:58:26 swipe what Nov 24 21:58:34 keyboard Nov 24 21:58:41 google keyboard has had swipe to type forever Nov 24 21:58:42 Google Keyboard has had that for a long time. Nov 24 21:58:43 you dont have to lift your finger to make words Nov 24 21:58:53 ah well my last phone didn’t Nov 24 21:58:55 You were probably using the AOSP keyboard, tricknology. Nov 24 21:58:57 Or something. Nov 24 21:59:16 Non-Google keyboard have also had gesture typing for a long time. Nov 24 21:59:23 am i doing something illegal here? at least my program crashs if i try to write to the TextView from the animeList object Nov 24 21:59:23 keyboards* Nov 24 21:59:26 TextView tv = new TextView(ctx); animeList[position].textViewId=tv; Nov 24 21:59:26 They probably hadn't patented that, right? Nov 24 21:59:49 * pfn wonders what high profile apps are going to be updating for the thanksgiving holiday Nov 24 22:00:20 What's with this weird double swipe down in 5.0? Nov 24 22:00:43 eh? Nov 24 22:00:55 To get to quick settings. Nov 24 22:01:02 I had two-finger swipe. Nov 24 22:01:04 oh I hate that Nov 24 22:01:14 it's not a double swipe Nov 24 22:01:17 No? Nov 24 22:01:19 it's a tap on the top bar to get it to flip Nov 24 22:01:20 They might as well as the user to spin on his head while clapping. Nov 24 22:01:39 day: I think you're doing something wrong. Nov 24 22:01:40 Oh you're right Nov 24 22:01:40 well i guess it achieves the same thing pfn Nov 24 22:01:41 although it supports the swipe as well Nov 24 22:01:44 In case that helps. Nov 24 22:01:51 for people that don't know any better, like marrrk Nov 24 22:01:52 ;-) Nov 24 22:01:53 it’s 1 more action than it was Nov 24 22:01:58 tricknology, no it isn't Nov 24 22:02:05 For my Dad's phone, I installed some widget thing. Nov 24 22:02:05 it's always been an additional tap to get quicksettings Nov 24 22:02:08 Moto G 2013. Nov 24 22:02:18 Otherwise, he'd have to two-finger swipe to get to Quick Settings. Nov 24 22:02:19 TacticalJoke: well the TextView isnt usable from my animeobjects :/ Nov 24 22:02:26 Wasn't it this silly rotation animation after a press somewhere before? Nov 24 22:02:31 nope, not on this S5 I have here in front of me Nov 24 22:02:34 In which universe can we just create TextViews out of thin air like that? Nov 24 22:02:41 marrrk, yes, top right of the notification tray Nov 24 22:02:55 Does that two finger swipe still work? Nov 24 22:02:55 now the whole top is tappable Nov 24 22:03:01 I can't do it with just one mouse :) Nov 24 22:03:07 yes Nov 24 22:03:15 * pfn really needs to get a replacement for his nexus 7 Nov 24 22:03:17 damn thing... Nov 24 22:03:24 Alrighty. Was it also impossible before to do a reboot? Nov 24 22:03:26 I’ll sell you a Tab 2 Nov 24 22:03:26 cracked screen makes it so hard to use Nov 24 22:03:29 lol Nov 24 22:03:35 huh Nov 24 22:03:46 So many people I see outside have cracked screens. Usually Samsungs or iPhones. Nov 24 22:03:52 pfn: which one? Nov 24 22:03:53 http://www.samsung.com/global/microsite/galaxytab2/7.0/index.html?type=find Nov 24 22:04:14 the nexus 7 didn't have hardened screens, apparently Nov 24 22:04:17 it's like plate-glass Nov 24 22:04:25 and oddly, the crack also screwed up the digitizer Nov 24 22:04:27 ive zero issues with mine :/ Nov 24 22:04:31 I semi-sat on my Tesco Hudl 2 the other day. Nov 24 22:04:36 I guess that is the bigger problem Nov 24 22:04:43 Like, I went to sit down and stopped at about 50% body weight. Nov 24 22:05:00 TacticalJoke: Probably most people also have Samsung or iPhones Nov 24 22:05:00 except for the loose parts in it and the occasional i dont wanna load issues ;P Nov 24 22:05:01 My Hudl seems okay about it. Nov 24 22:05:06 java.net.SocketTimeoutException: Read timed out.. server not responding or taking too long? Nov 24 22:05:06 marrrk: True. Nov 24 22:05:26 I sat on my Nexus 6.. nothing Nov 24 22:05:36 but I’m not a hambeast like you guys Nov 24 22:05:41 I'm slim. Nov 24 22:05:49 I’m joking :P Nov 24 22:06:11 If my Hudl had broken, that would've been one of those Shallow Hal moments. Nov 24 22:06:17 At the end, I mean. Nov 24 22:06:18 What better protection than a flabby bum? Nov 24 22:06:40 Solid design Nov 24 22:06:48 Intelligent Design Nov 24 22:07:23 ugh, goddamnit, updating to lollipop wiped my google now launcher settings Nov 24 22:07:25 that's annoying Nov 24 22:07:26 Kangaroos are really made for phablets Nov 24 22:08:36 Apps that show "there are 1 file(s)" are so lazy. Nov 24 22:09:12 Are they? Couldn't this be a localisation disaster if you tried to catch all of these cases? Nov 24 22:09:49 I don't see why it would be. If you're supporting language foo, actually support it. Nov 24 22:10:05 that would be a pain in the ass Nov 24 22:10:13 since plural con completely change the word in some instances Nov 24 22:10:48 But if you're using a pattern such as "file(s)", aren't you gonna be using that in every language anyway? Nov 24 22:11:06 most languages have something for 0 files, 1 file and 'many' files Nov 24 22:11:09 are textviews somehow classlimited? Class A creates an array of Class Bs. I write my TextView ids in a Class B variable. I can write to the TextView via the Class B variable as long as i use it from Class A (in which the TextView was created) Nov 24 22:11:12 not necessarily android-dev specific, is there anywhere I can go to pester someone about a lollipop wifi connection bug? it has ~150 stars on b.android.com Nov 24 22:11:20 but some have specific things for 2 files and many files Nov 24 22:11:20 and no acknowledgement from google Nov 24 22:11:21 and more Nov 24 22:11:27 I think in Arabic and maybe Mandarin the "are" could be different for 2 files. Nov 24 22:11:29 and if we’re going g00s’ route, might as well be lazy, we might as well translate everythign badly.. “All your base are belong to us" Nov 24 22:11:39 localisation The Right Way (tm) is a disaster. or impossible. or both. Nov 24 22:11:44 “All your base(s) are belong to us Nov 24 22:11:47 day: They're not class limited. Nov 24 22:11:52 tricknology always best to match laziness in group dynamics :) Nov 24 22:11:52 day: What exactly are you trying to do? Nov 24 22:11:58 This whole "writing my TextView IDs" thing sounds weird. Nov 24 22:11:59 Does anyone know if "adb shell am broadcast" works without root? Nov 24 22:12:56 Agamemnus, works fine Nov 24 22:12:56 idk i can try it Nov 24 22:13:10 i must be doing something wrong Nov 24 22:13:31 TacticalJoke and tricknology and others, pleas watch this video: https://www.youtube.com/watch?v=0j74jcxSunY Nov 24 22:13:34 please* Nov 24 22:13:51 TacticalJoke: http://dpaste.com/1092TSY line 45/46 Nov 24 22:14:03 cool. thanks :) cuz we’re actuallyg going to be doing this soon :( Nov 24 22:14:07 Can someone help me on how I would start to debug this issue? Or common gotchas that could be causing this? I have one activity that can host a decent number of fragments. The first fragment is the only one that I call add() every other one I call replace() sometimes I can see on fragment on top of the other and duplicate menu items. Ideas? Nov 24 22:15:11 Worst is when some ignorant people think it's a good idea to force their english words through google translate and then sell that as a "translation". Nov 24 22:15:23 day: Is it working? Nov 24 22:15:34 TacticalJoke: that what you see does work Nov 24 22:15:58 TacticalJoke: but i can not use the animeList[position].textViewId from the animeList class Nov 24 22:16:09 eghdk_: If you're calling FragmentTransaction.add in onCreate, are you doing it only when savedInstanceState is null? Nov 24 22:16:10 /object Nov 24 22:17:18 day: Why do you want to? Nov 24 22:17:34 TacticalJoke: Yes Nov 24 22:17:35 TacticalJoke: because i need to wait for an async task which runs in the object Nov 24 22:17:46 eghdk_: You might need to post the code for the Activity. Nov 24 22:17:53 TacticalJoke: http://dpaste.com/0QS22YX line 19 does not work Nov 24 22:18:04 wow, this internationalisation video, I just re-watched it, and I want to start crying now Nov 24 22:18:10 really, not kidding Nov 24 22:18:27 Peetz0r it looks like a lot of suck Nov 24 22:18:51 it *is* a lot of suck, unless you can get away with english-only or something Nov 24 22:19:13 TacticalJoke: Think I found a hint. I never call .findFragmentById(); should I be? Nov 24 22:19:14 Arabic haha fml Nov 24 22:19:31 has anyone here done server-side play store receipt validation? If so do you know if there's a way to get the info from a getSkuDetails() call made from the server? Nov 24 22:19:35 I produce my apps in 2 languages, english and dutch, and I only support european/ISO date and number formats and SI units (because american formats basically just suck) Nov 24 22:19:51 day: You get a NullPointerException? Nov 24 22:20:09 english because de-facto world language, and dutch because it's my native language (so I don't have to deal with translators other than myself) Nov 24 22:20:21 eghdk_: Not necessarily. Depends on what you're doing. Nov 24 22:20:37 and I've even written an app that has so little UI text that I don't need any of this at all (which is a huuuge relief) Nov 24 22:21:25 TacticalJoke: theres a lot of red, but yes Nullpointer exceptions as well Nov 24 22:21:30 Why not contract a developer to port the app in their native language? Nov 24 22:21:40 all framework is still there, give them some creative leeway Nov 24 22:21:40 tricknology: a developer is not a translator Nov 24 22:21:41 day: You're saying "textViewId.setText" when textViewId is null. Nov 24 22:21:59 TacticalJoke: but im setting the variable dont i ? Nov 24 22:22:03 Not until later. Nov 24 22:22:06 I’ve seen ads for developers who speak German to translate an app from Engligh to German Nov 24 22:22:13 contract stuff Nov 24 22:22:15 TacticalJoke: Dang. My activty code is pretty large... and the only parts touching fragments is so little, but I think it may have something with .findFragmentById(R.id.details); I'm gonna do more research on my own in this case and come back around tomorrow with a clear example of what my issue is if it still persists. Nov 24 22:22:27 TacticalJoke: ah wait you are right :X i initialize the object way before that Nov 24 22:22:41 tricknology: yeah, but a dedicated developer for each language is much more expensive than hiring a translating service Nov 24 22:22:49 true that Nov 24 22:22:57 I like his last point. Nov 24 22:23:08 it works if your app has maybe 5 languages, and your conmpany mas many apps supporting the same set of languages Nov 24 22:23:22 yeah, that's basically what I did Nov 24 22:23:29 TacticalJoke: http://dpaste.com/1092TSY Line 45. should set the variable, but its to late at that point? Nov 24 22:23:47 because im initializing the whole thing @line 15 Nov 24 22:24:00 I suppoort only one set of date/time/number/etc and two languages to choose from (because I love to see my own app in my own language) :) Nov 24 22:24:01 check this out: http://android-developers.blogspot.com/2013/11/app-translation-service-now-available.html Nov 24 22:24:09 The appcompat checkboxes don't use the right colour on Lollipop. I do not konw why that is. Nov 24 22:24:17 Yes, too late. The constructor runs as soon as the instance is created. Nov 24 22:24:19 tricknology: yeah, have to pay for that, not gonna do that Nov 24 22:24:27 The constructor is trying to access something that isn't there yet. Nov 24 22:24:28 * Peetz0r makes apps for hobby and fun Nov 24 22:25:11 just take the other $174 that you would have paid for an Apple dev license Nov 24 22:25:38 ./s Nov 24 22:26:02 hmm. i wonder how i would use rx to chain db operations within a single transaction Nov 24 22:26:15 composing operators of course Nov 24 22:27:26 ah, rxjdbc dependsOn seems decent Nov 24 22:27:41 Can I disable the colours showing when the user tries to scroll past the limit of a scrollview? Nov 24 22:31:30 WHo should I see.. Rebecca and Fiona, Arty, or Joseph Capriati? Nov 24 22:32:31 Is this a common issue: The volume panel, set to auto expand, is cut off. I guess it's due to xposed and/or touchwiz. Nov 24 22:32:46 TacticalJoke: not in functional languages Nov 24 22:33:17 >multithreading is messy everywhere Nov 24 22:34:58 They don't have to worry about atomicity, memory observability, etc.? Nov 24 22:35:37 functional languages use most, if not all, immutable variables Nov 24 22:35:38 i see TacticalJoke isn't keeping up with the trends Nov 24 22:36:12 thats ok, here in android land we're still using oldschool stuff :) Nov 24 22:36:19 you can use scala Nov 24 22:36:21 join the master race Nov 24 22:36:23 I haven't done much functional programming. Nov 24 22:36:36 Almost none, I guess. Nov 24 22:37:01 benwaffle: Atomicity still has to be an issue, though. Nov 24 22:37:03 At times. Nov 24 22:37:08 Or the lack of it. Nov 24 22:37:47 its not an issue with immutable variables Nov 24 22:38:25 Surely some part of the software has to be mutable. Nov 24 22:38:28 although occasionally, compromises are made as the real world is mutable Nov 24 22:38:30 yes Nov 24 22:38:37 e.g. databases Nov 24 22:42:50 has anyone made a good sum of money from publishing an android app with ads? Nov 24 22:43:15 google Nov 24 22:43:24 <_Auron_> rovio Nov 24 22:43:54 flappy bird Nov 24 22:44:06 in this channel.... Nov 24 22:44:10 _Auron_ yeah but, "The Pigs Win: Angry Birds Maker Announces Layoffs" Nov 24 22:44:42 angry birds got boring 3yrs ago Nov 24 22:44:45 <_Auron_> heh Nov 24 22:44:48 so, no wonder Nov 24 22:44:52 <_Auron_> yeah, I haven't played it in a long time Nov 24 22:45:03 topic pauser: bill cosby.... Nov 24 22:45:09 <_Auron_> but he didn't ask "made a good sum of money without losing it" Nov 24 22:45:11 someone important theorized/proved that games are a fad and fads are cyclic Nov 24 22:45:13 2048 game is great Nov 24 22:45:27 TechEffigy, what about that sexual predator? Nov 24 22:45:49 angry birds remind me of bill cosby Nov 24 22:46:05 angry chix vs cosby Nov 24 22:46:15 pissed birds Nov 24 22:46:58 so lg g3 32gb arrives in two days. can't wait Nov 24 22:46:58 TacticalJoke: hmm. It works now, but its extremely slow and the first item never shows up. But thanks for your help. It really was the initialization issue Nov 24 22:48:10 To be honest, that code looked really confused. Nov 24 22:48:33 TacticalJoke: you dont wanna see the first two attempts :D Nov 24 22:48:47 TacticalJoke: what did tho? Nov 24 22:48:59 I don't remember exactly, but the second class looked like a God Object. Nov 24 22:49:09 It did too much, I think. Nov 24 22:49:35 it did too much? As in? Nov 24 22:49:36 And why was it update a TextView? Nov 24 22:49:39 updating* Nov 24 22:49:46 Shouldn't your adapter be the thing updating the TextView? Nov 24 22:50:23 yes. but it runs in a main thread, so i cant make it wait for the objects to be usable, can i? Nov 24 22:51:08 Well, a key point here is that one class could have code that runs in multiple threads. It doesn't have to be one thread per class. Nov 24 22:51:12 thats why i thought i let the adapter create the grid, and then fill them from the items via onPost Nov 24 22:52:24 If your AsyncTask is so closely related to your adapter, I think it could be declared as a nested class of your adapter's class. Nov 24 22:52:44 If it's updating a TextView related to your adapter, it seems that it's very closely related to that adapter. Nov 24 22:53:31 TacticalJoke: hm. i guess i could pull out the whole onPostExecute from the object and put it into the adapter, but what would that change? Nov 24 22:53:57 Not sure, but if I'm right that the other class is a God Object then this could help you to see and fix that. :D Nov 24 22:54:40 can i have two onPostExecutes for the same async? :P Nov 24 22:54:57 WHAT? Nov 24 22:54:59 then i could update the variables within the class and then update the view from the adapter :D Nov 24 22:55:16 What you just said adds weight to my point above, BTW. Nov 24 22:55:33 What is the purpose of your second class? Nov 24 22:55:39 Could you easily describe it in a sentence? Nov 24 22:55:43 If not, it probably needs refactoring. Nov 24 22:55:51 the second class is my anime object :/ Nov 24 22:55:56 i think that makes sense Nov 24 22:55:56 Or if the sentence is "it does X and Y and Z". Nov 24 22:56:17 What's an anime object? Nov 24 22:56:44 it basically only contains properties (links, names, episode count) and the necessary functions to fill those variables Nov 24 22:57:06 So it's like a database *and* a UI-presentation thing? Nov 24 22:57:12 If so, it's two classes in one. Nov 24 22:57:42 well the ui persentation is in there because the class needs a onpostexecute. Thats where the problem starts Nov 24 22:58:00 Could you link to the code again? Sorry, I lost it. Nov 24 22:58:08 I had to mass-purge Chrome tabs (since I had about 200 open). Nov 24 22:58:18 the ui needs a picture link. the picture link comes from a html parse which ofc. has to wait for the download to finish. :/ Nov 24 22:58:37 http://dpaste.com/3ZGPJ3R Nov 24 22:58:40 Does the "anime object" also do HTML parsing? Nov 24 22:58:42 thats the animeclass Nov 24 22:58:48 TacticalJoke: ofc :D Nov 24 22:58:55 So that's at least three major things. Nov 24 22:59:14 Just from looking at the imports I can see that it needs refactoring. Nov 24 22:59:21 Picasso + HTTP + Views. Nov 24 22:59:48 Crazy try catch madness. Nov 24 23:00:36 mmh Nov 24 23:00:47 That code just gave me cancer. Nov 24 23:00:55 well dont go to much into the details, im learning :< Nov 24 23:01:06 its like my 5th day max. of java Nov 24 23:01:30 Maybe you can still be saved Nov 24 23:01:35 haha Nov 24 23:01:45 It's adventurous code for only five days. Nov 24 23:02:23 I hape everyone is doing well today Nov 24 23:02:31 hope even Nov 24 23:02:55 day, you'll improve :) Nov 24 23:03:10 yes, i will Nov 24 23:03:15 I think one key point is that this line should be in the Adapter code: "this.textViewId.setText(animeName);" Nov 24 23:03:44 TacticalJoke: i would LOVE to put it in there. but as you can see its in the onPost Nov 24 23:04:07 and i dont know how to transistion that to the adapter Nov 24 23:04:22 I think it needs a callback. Nov 24 23:05:12 The AsyncTask should just say "let our listener know that we're done", with our listener being the adapter. Nov 24 23:05:24 I've not done async stuff with an adapter yet, but I think this is the only sane way. Nov 24 23:05:25 I see this pattern for singletons in a few libraries that I use. Does context.getApplicationContext() always return an application context? Nov 24 23:06:06 shadynastys, uh, yes, as the name says :) Nov 24 23:07:05 shadynastys must be confusing it with getRandomContext() Nov 24 23:07:06 I am being told by that context.getApplicationContext most often returns the same activity context that is referred to by context Nov 24 23:07:30 I disagree but i wanted a consensus Nov 24 23:07:43 from people that know more than me Nov 24 23:08:01 put them on a raft and get consensus :) Nov 24 23:08:17 heh Nov 24 23:08:33 hi, trying to debug some camera crashes in a cordova, using the `monitor` tool, wondering about all the GC logs I'm seeing Nov 24 23:08:39 for instance, if I get multiple lines of the following, am I actually leaking memory/growing the heap? Nov 24 23:08:47 11-24 18:01:07.706: I/dalvikvm-heap(4875): Grow heap (frag case) to 20.268MB for 1843216-byte allocation Nov 24 23:08:51 growing the heap Nov 24 23:08:51 it seems like i'm not leaking memory since it always says 20.268 MB and the same alloc amount Nov 24 23:09:03 I think those messages are normal Nov 24 23:09:09 especially when dealing with images Nov 24 23:09:46 http://stackoverflow.com/questions/8381617/android-i-see-heap-growing-but-i-want-it-to-stop Nov 24 23:10:26 tricknology: but that seems to be a case where it's actually growing Nov 24 23:10:32 doesn't seem like it's growing in my case Nov 24 23:10:40 just kinda sucky that so many GC events are happening Nov 24 23:10:47 TacticalJoke: oh i didnt know i can write a onPostExecute listener. That sounds good Nov 24 23:11:25 Well, just a general listener. Nov 24 23:11:33 http://stackoverflow.com/questions/4976566/what-do-gc-for-malloc-gc-explicit-and-other-gc-mean-in-android-logcat Nov 24 23:12:01 anyone else need to take their watch off to dev? Nov 24 23:13:39 no, tricknology nobody else Nov 24 23:14:17 ./s? Nov 24 23:14:56 There isn't one other person in the world with your crazy taking-the-watch-off-for-coding-fetish! Nov 24 23:16:55 I still cannot get any broadcast receiver to work Nov 24 23:17:09 I'm at wit's end.... http://pastebin.com/pqGJcmVf Nov 24 23:17:14 that's what I get from logcat Nov 24 23:17:17 Is that normal? Nov 24 23:18:23 Ok so if context.getApplicationContext returns aplication context is there any reason not to use it in a singleton lazy init like https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Picasso.java#L637 Nov 24 23:19:04 shadynastys: probably not. You could dagger your application dependency if you want though Nov 24 23:19:47 shadynastys, no, you actually should do that Nov 24 23:20:02 shadynastys, otherwise you can cause memoryleak by holding an activity reference Nov 24 23:21:07 I have someone arguing that i should move my 2 singletons inits to an extends application because Nov 24 23:21:14 "Calling Context.getApplicationContext doesn't guarantee that you will get the reference of Application. Actually it usually return the same "context" object" Nov 24 23:21:47 shadynastys, it does basically guarantee you'll get the same Application object Nov 24 23:21:58 shadynastys, the only case where it doesn't happen is when you're using a multiprocess app Nov 24 23:21:59 From what i am getting here this person is wrong Nov 24 23:22:06 which i am not Nov 24 23:22:26 shadynastys, you'll always get the same Application object in most usecases Nov 24 23:22:26 shadynastys have him fired Nov 24 23:22:39 shadynastys or off with his head :) Nov 24 23:22:49 lol my company paid for his advice that is why i am making sure Nov 24 23:23:14 our advice is free (and correct), doesn't seem like a good deal ! Nov 24 23:23:33 I know Nov 24 23:23:35 well then, at least smack him Nov 24 23:23:42 they wanted a full code review though Nov 24 23:23:57 so thank you for you awesome help again Nov 24 23:24:28 woot, got my android-5 email client working ok, too Nov 24 23:25:07 shadynastys well this is what google does: Nov 24 23:25:11 232: AnalyticsManager.initializeAnalyticsTracker(getApplicationContext()); Nov 24 23:25:30 maybe have the consultant review their code :) Nov 24 23:25:32 requestFeature must e called before adding content. I am not explicitly calling rquest feature, what is? Nov 24 23:25:44 marrrk using ActionBarActivity ? Nov 24 23:25:57 Yeah Nov 24 23:26:06 calling super() will Nov 24 23:26:37 i can't get my alarm to work. https://bpaste.net/show/8e03e0d7661c i can see in logcat "sending alarm Alarm" events every 30 seconds, but otherwise nothing happens Nov 24 23:26:38 This is for a dialog. Nov 24 23:26:40 any clue?.. Nov 24 23:27:30 Does calling super on the activity still apply in that case? Nov 24 23:30:08 if i do it this way, should i register the receiver in any way? Nov 24 23:32:08 now to figure out wtf the keyguard manager isn't happen when I change the password behind its back Nov 24 23:32:24 at least when I set it to a blank password, it doesn't revert to the swipe-to-unlock Nov 24 23:34:41 tricknology: i think in my case i was seeing a constant cycle of Grow Heap and then GC event on a 1.5 MB allocation (an image) Nov 24 23:34:53 so i think in the GC event "shrunk" the heap (does that make sense?) Nov 24 23:34:55 bitmap.recycle() Nov 24 23:35:02 yeah it does Nov 24 23:35:16 I only every saw them when I was doing things with animations and images Nov 24 23:35:26 drawing and recycling Nov 24 23:36:35 also from Nov 24 23:36:45 iamge array would crash the app, out of memory Nov 24 23:37:12 I was trying to load like 20 100Kb images Nov 24 23:37:32 It was fine on newer devices but older ones would crash out Nov 24 23:37:56 does android recycle preferencechangelistener automatically or can they cause memory leaks? Nov 24 23:41:18 danijoo you should unregister it :| Nov 24 23:41:27 g00s: :/ Nov 24 23:41:43 that breaks my design but thanks :) Nov 24 23:42:15 The animated checkboxes in lollipop are so nice! Nov 24 23:44:50 i will animate all your checkboxes, raaage Nov 24 23:46:59 * Rob_TheRetroGuy kicks android Nov 24 23:47:38 I don't understand how lollipop's smart lock works with nfc Nov 24 23:49:14 I would like to draw over the canvas of an ImageView. Nov 24 23:49:56 Canvas is probably just a monoid, right? Nov 24 23:50:51 um, not really Nov 24 23:51:03 tricknology: if I see "Grow heap (frag case) to 19.815MB for 3110416-byte allocation" does that mean there was literally a single instance of `new SomeGiantThing[]` that amounted to 3110416, or could multiple allocations aggregate into that log message? Nov 24 23:51:15 I cant seem to get a fragment to load from a list fragment Nov 24 23:51:37 eeh, I’m afraid I don;t know too much about GC to answer that :( Nov 24 23:51:49 how disappointing Nov 24 23:52:02 if you REALLY want to know then try to reproduce it in some test case or dummy code and change things 1 at a time Nov 24 23:52:05 Intent newActivity = new Intent(v.getContext(), AnotherList.class); doesnt like me Nov 24 23:52:29 why v.getContext()? Nov 24 23:52:43 Okay, how about I take the old image, draw the other image over it and set that as the new image? Nov 24 23:53:31 usually I do somethign like this: in activity A: Context context = (Context) this; then instantiate B like B b = new B(context, args…) Nov 24 23:53:55 take the old image and call image.recycle(); Nov 24 23:54:03 image.setImage(R.Id.whatever) Nov 24 23:54:47 eeh that is if your image is a bitmap Nov 24 23:54:47 I want to draw the second image over the first one. Nov 24 23:55:02 you don’t want to reuse its object? Nov 24 23:55:07 then sure just draw another one Nov 24 23:55:08 I have an ImageView right now Nov 24 23:55:20 I don't even know how to get the Bitmap out of it Nov 24 23:55:26 Probably getDrawable and then cast. Nov 24 23:55:57 ((BitmapDrawable)imageView.getDrawable()).getBitmap().recycle(); Nov 24 23:56:30 but if you jsut want to keep addign images on top of another then your heap is goign to grow Nov 24 23:56:31 I don't think I can recycle it there yet. Nov 24 23:57:02 you recycle it after your imageview is finished with it Nov 24 23:57:22 marrrk, when you say one over the other.. are the images the same bounds? Nov 24 23:57:28 yes Nov 24 23:57:36 so you’re completely covering up the other? Nov 24 23:57:40 dude ise recycle Nov 24 23:57:42 use* Nov 24 23:57:42 yes with alpha Nov 24 23:57:44 ooh Nov 24 23:57:51 so you have some transparency that you need Nov 24 23:58:38 just hope you don’t get OOM Nov 24 23:58:48 I would test with an emulator that has a smaller heap Nov 24 23:58:55 to mimmic older phones Nov 24 23:59:19 I still don't see why that should happen Nov 25 00:00:21 I load one other bitmap then I draw to the first so I'm back to one Bitmap in memory, right? Nov 25 00:01:39 If you are trying to display one over the other for alpha that means you have 2 decoded bitmaps in memory Nov 25 00:01:59 depending on size that could cause OOm Nov 25 00:02:59 has anyone seen such an apocalyptic android crash such as this? http://cl.ly/image/0v0M0i38420z/unnamed.jpg Nov 25 00:03:09 ^^ Nov 25 00:03:10 Yeah, well hopefully I can keep three bitmaps in memory at the same time then I should be fine. Nov 25 00:03:11 how do i categorize such a crash for future reference? Nov 25 00:03:21 even the native buttons get effed Nov 25 00:03:25 you don’t need to marrrk, IIRC Nov 25 00:03:44 I think the bitmap object is just to populate the imageview Nov 25 00:03:48 not sur ethough Nov 25 00:04:34 btu can’t youL 1) create bitmap, 2) populate imageview with bitmap, 3) recycle bitmap and load image #2, 4) populate imageView with bitmap.. recycle Nov 25 00:04:56 fucking finally, google added the auto-rotate quick setting to phones Nov 25 00:05:00 most annoying shit ever... Nov 25 00:05:30 YUP Nov 25 00:05:51 http://stackoverflow.com/questions/10200256/out-of-memory-error-imageview-issue/18197453#18197453 Nov 25 00:08:08 I just fear you’ll get OOM errors marrrk and I don;t know enough about imageViews and Bitmaps to help in this instance Nov 25 00:08:21 I can only tell you what to look otu for and a couple ways to try to avoid OOM Nov 25 00:08:30 Yeah, I'm not that worried. Nov 25 00:08:40 jsut make sure you test with a low quality phone Nov 25 00:08:45 or an emulator with a small heap Nov 25 00:08:48 I wonder if the Bitmaps in an BitmapDrawable are mutable. Nov 25 00:09:03 toggleButton.setText(R.string.hello_world); works but toggleButton.setTextOn(R.string.hello_world); does not (the difference is setText vs SetTextOn) Nov 25 00:09:07 annoying... Nov 25 00:09:31 http://stackoverflow.com/questions/10677850/android-understanding-heap-sizes Nov 25 00:10:21 they are mutable I think.. you can change them, no? Nov 25 00:10:44 haha try bitmap.isMutable() Nov 25 00:10:55 I could try that, I guess Nov 25 00:11:06 you can also set them to be immutable Nov 25 00:11:19 copy(Bitmap.Config config, boolean isMutable) Nov 25 00:11:30 returns a mutable bitmap Nov 25 00:12:04 I just think it would be cool if I could draw over the existing one (memory wise, not coding wise) Nov 25 00:12:33 what would you expect the VM to do with that object then? Nov 25 00:12:35 just let it sit? Nov 25 00:12:56 I eman I can see fi you’re laying images with transparent parts.. Nov 25 00:13:03 but why not just swap out the whole image? Nov 25 00:13:11 and make more images? Nov 25 00:13:45 because you keep on telling me to be afraid to bust the heap :) Nov 25 00:14:02 tricknology: it probably seemed like i was joking but can you imagine what could have gone so wrong that the nav buttons would get screwed up as well? (http://cl.ly/image/0v0M0i38420z/unnamed.jpg) Nov 25 00:14:27 i mean like.. if C is A on top of B why not make C its own image which is a combination of A and B Nov 25 00:14:36 less memorty used in the end Nov 25 00:14:41 however, your resources get bigger Nov 25 00:15:27 That's actually what I am doing. Nov 25 00:15:38 oh then you should be fine Nov 25 00:15:40 well trying to Nov 25 00:15:47 matchy, that sucks.. Nov 25 00:15:54 what happened? lol Nov 25 00:16:07 Your action bar is just gone! Nov 25 00:16:10 But now I thought, I could also just draw B over A directly without having to instantiate a third bitmap. Nov 25 00:16:26 it might be ok with one or two Nov 25 00:16:34 depending on the resolution of the img Nov 25 00:16:52 btu once I started getting like 20 in an animation-list things started going OOM on me Nov 25 00:17:02 Okay it is immutable. Nov 25 00:17:18 hm, good to know Nov 25 00:17:20 tricknology: i don't know. i'm hoping it's related to memory issues that i can fix, but it seems like a bizarre way to crash Nov 25 00:17:21 So I don't need to think about that then. Nov 25 00:17:36 hella.. Nov 25 00:17:39 I’ve never seen that before Nov 25 00:18:33 #android-root Nov 25 00:18:37 weird thing is that the children are bing drawin in the second to last one Nov 25 00:18:55 oops Nov 25 00:35:21 oh g00s i remembered what i wanted to tell you the other day Nov 25 00:35:43 did you know you can exclude certain things from auto-import (for example, non-rx Observables Nov 25 00:35:55 so alt-enter will only auto import the correct thing Nov 25 00:41:19 now it would be cool if I could animate the change of the bitmap Nov 25 00:41:51 Ok so Nov 25 00:43:20 True or false? Using an Activity getApplicationContext doesn't guarantee access to a reference of a Context object that can be used across threads or across different activities since it seems to be a memory reference that can be lost if the activity that returns it is destroyed. Nov 25 00:44:51 well thats a weird error... Nov 25 00:45:18 "Unable to instantiate activity /.../ cannot be cast to android.app.Activity" Nov 25 00:45:25 shady just read the definition of that method Nov 25 00:47:01 ok Nov 25 00:47:05 Apparently it was Nov 25 00:47:08 intentFilter.addAction("com.android.vending.INSTALL_REFERRER"); ._. Nov 25 00:47:52 what is the vertical “…” on the action bar? Nov 25 00:48:14 tricknology, overflow menu Nov 25 00:48:18 thanks Nov 25 00:49:18 how do you declare a fragment in the manifest? Nov 25 00:49:34 I tried but it no likey Nov 25 00:49:47 Rob_TheRetroGuy: you don't Nov 25 00:50:13 you can only declare activities right? Nov 25 00:50:56 whatitis-: I have. But the guy i am debating with says that "documentation and what's implemented differs, and that's why developers can tell for certain what's going on." I can understand this might happen but this seems like an important part that would not get overlooked on documentation. Nov 25 00:51:08 right Nov 25 00:51:44 no not only activities Nov 25 00:52:44 well.. classes I mean and the class extends the activity Nov 25 00:53:37 there we go, got it working Nov 25 00:59:09 hmm I got it to open the fragment, but its not displaying anything its just blank Nov 25 01:01:03 if I change public class DataPage extends Activity { to public class DataPage extends Fragment { it crashes Nov 25 01:06:07 Hey all, I am fairly new to app development and was wondering if i couple pick someones brain for 5 minutes in relation to angular JS/mongo. I would appreciate it so much Nov 25 01:07:15 :( Nov 25 01:10:19 http://www.theregister.co.uk/2014/11/24/html5_vs_native_and_the_truth_about_mudblood_apps/ Nov 25 01:13:12 maybe has something to do with this? http://pastebin.com/FAc8K0xX Nov 25 01:17:04 I'm at a loss Nov 25 01:18:25 answering my own question: broadcast receivers should be registered in the manifest. Nov 25 01:18:36 i like it how the tutorial misses this entierly. Nov 25 01:19:55 halilujah for aar's.... finally got this maven build working Nov 25 01:20:47 sqrr1: sure Nov 25 01:23:00 sqrr1? srsly Nov 25 01:23:31 isn't that your name? Nov 25 01:24:13 Agamemnus, type sqr, then enter Nov 25 01:24:16 see what happens Nov 25 01:24:31 oh Nov 25 01:24:42 sorry Nov 25 01:42:11 howdy. Anyone running ADT (linux, eclipse, SDK) kit that knows of an issue with eclipse not seeing the emulator file in /tools even though the full file and path is 755 Nov 25 02:11:28 Can someone please explain to me why a stock ROM (such as 5.0) must be ported to devices, and why it's such an involved process? Is it mainly an issue of writing drivers? Nov 25 02:12:24 drivers, radios, performance, suitability, GUI bloat crapware compat Nov 25 02:13:04 also some manufacturers just don't want you to have new stuff, so you buy the next model up Nov 25 02:14:56 bankai_au, it's just weird ... don't most components use standard architectures these days? Nov 25 02:15:32 not exactly Nov 25 02:33:40 I want to reuse the same drawable shape in 3 places, but I want to use a different background colour ('solid') for each usage - how do I do that? Note I have to change the colour programmatically. Nov 25 02:51:50 Nivag: imageView.setColorFilter(Color.argb(255, 255, 255, 255)); Nov 25 02:53:26 JacobTabak oh thanks, how di dyou do that ? Nov 25 02:54:18 g00s arrow to the right in qiuck fix when it suggests that one Nov 25 02:54:21 highlight it and navigate in Nov 25 02:54:29 theres an option for 'exclude from auot import' Nov 25 02:55:22 hmm Nov 25 02:56:01 i'll keep that in mind, can't find it atm Nov 25 02:56:03 thanks Nov 25 02:59:39 i think it only pops up when therea re more than one option to auto import **** ENDING LOGGING AT Tue Nov 25 02:59:57 2014