**** BEGIN LOGGING AT Wed Nov 05 03:00:00 2014 Nov 05 03:00:29 Are you sure? It doesn't appear to be bound to a Context. Nov 05 03:00:34 that'd be in the fragmentmanager code, what are you doing that is defying I Nov 05 03:00:51 I'm not doing anything that's defying it. I'm just trying to understand it all. :D Nov 05 03:00:55 it Nov 05 03:01:20 it what sense though? Nov 05 03:01:25 in Nov 05 03:01:37 what is your question Nov 05 03:01:41 Well, soon, I'm gonna make an app that will (probably) make heavy use of Fragments. Nov 05 03:01:45 Therefore, I wanna know everything about them. Nov 05 03:01:53 So, where could I view the source for the exact version of the Messaging App? Nov 05 03:02:02 Or is it relatively unchanged recently. Nov 05 03:02:13 CyberstormFox mostly unchanged in years I think Nov 05 03:02:14 you can know about the them in your usage Nov 05 03:02:16 I don't want to create a huge codebase and have a nasty surprise. Nov 05 03:02:20 Much better to be fully informed in advance. Nov 05 03:02:29 Heh, kinda suspect, except for the material design Nov 05 03:02:32 CyberstormFox is there not the new messaging app coming ? Nov 05 03:02:56 another one? :/ Nov 05 03:03:01 Well, in KitKat, messaging was left out, to try to force using hangouts Nov 05 03:03:18 yes, in L there will be a shiny new one though Nov 05 03:03:21 But, in Lollipop image, they put it back in Nov 05 03:03:26 a "new" "google" one Nov 05 03:03:47 I use 9 fragments in my activity, I have 0 problems with having them retained and such.. what is your issue? Nov 05 03:03:50 Well, is it that version I mentioned? Messaging, version 5.0? Nov 05 03:03:56 I love the new Gmail-app icon. Nov 05 03:04:04 https://gigaom.com/2014/10/16/android-lollipop-has-a-new-default-text-messaging-app/ Nov 05 03:04:05 Not sure how much I like the Material thing in the app yet, though. Nov 05 03:04:33 whatitis: I told you: I want to become a Fragment expert before creating the Reddit client. I want zero surprises. Nov 05 03:04:37 Either that or I'll just use Views. Nov 05 03:04:47 TacticalJoke just use views Nov 05 03:05:03 StingRay_: Mind if I ask why? Just curious. :) Nov 05 03:05:07 It's another aethetic phase,...remember when icons and items were rounded and shiny? Nov 05 03:05:09 I will consider it, in any case. Nov 05 03:05:15 expert how though? fragments arent really an experted issue Nov 05 03:05:29 whatitis: With regard to exactly what they do under the hood. Nov 05 03:05:31 And why they do it. Nov 05 03:05:31 TacticalJoke cause at a nice level where things just dont change that much… views Nov 05 03:06:11 TacticalJoke let everyone else complain action bar this, overflow that, blaaa how do I etc… just do views :) Nov 05 03:06:31 there are two ways to use fragments, isnt really needing expert usage, just a know Nov 05 03:06:37 know Nov 05 03:06:43 edge of m Nov 05 03:06:59 crap enter is so close Nov 05 03:07:00 whatitis: Unfortunately, Android seems to be the kinda SDK that requires getting one's hands dirty. :[ Nov 05 03:07:01 Sometimes. Nov 05 03:07:16 Can't just trust that the API works. Gotta get knee-deep in the code sometimes. Nov 05 03:07:47 Thank goodness for GrepCode, BTW. Nov 05 03:07:48 nope, just an understanding of programming Nov 05 03:07:59 Just discovered that page Nov 05 03:08:03 and tria Nov 05 03:08:09 l&error Nov 05 03:08:33 whatitis: you need a new keyboard Nov 05 03:08:52 just need my fat fingers to work :) Nov 05 03:09:14 what's "GrepCode" ? Nov 05 03:09:38 or virtual keyboard to understand my fat fingers :) Nov 05 03:09:40 ok now I see Nov 05 03:09:59 whatitis: or simply stop writing :) Nov 05 03:10:30 It's a site that lists a lot of Java code, with easy navigation. Nov 05 03:10:35 It has the Android code. Nov 05 03:11:26 or dat :) but everyone else is retarded Nov 05 03:13:49 Hello.. I was wondering, is there a way to run Espresso tests without a deivce or emulator (like purely using a simulator _like_ Robolectric... but still have them Espresso tests.._ ?? Nov 05 03:14:04 what comes after_r ? Nov 05 03:14:17 nothing Nov 05 03:14:22 its the last one Nov 05 03:14:24 :O Nov 05 03:15:07 after_r: the answer is - no Nov 05 03:15:08 simulator is = emulator w android? Nov 05 03:15:30 unless you write simulator ;) Nov 05 03:16:08 Hmm, ScrollView scroll positions aren't saved on screen rotation. Nov 05 03:16:20 I remember looking at a template (forgot now what it is) that ran espresso tests without anything plugged in Nov 05 03:16:24 and no emulator running Nov 05 03:16:26 after_r, what are you testing? Nov 05 03:16:42 I am just setting up my app testing framework Nov 05 03:16:59 I want to get it right Nov 05 03:17:22 tacticaljoke, cant you save it then? Nov 05 03:18:18 and itd be position such as float, compared to int? Nov 05 03:18:18 Yeah, you can. Annoying, though. Nov 05 03:18:41 It seems to be ints. Nov 05 03:18:51 For X and Y positions. Nov 05 03:19:04 just never expect android to save it Nov 05 03:19:21 float seems more appropriate for scrollview Nov 05 03:20:11 pixel = int Nov 05 03:20:29 whatitis: Android saves the cursor position of an EditText. Nov 05 03:20:31 scrollview = pixel? Nov 05 03:20:36 Even a TextView, in case it becomes editable later (I guess). Nov 05 03:20:41 And as Scott Myers says, do as the ints! (any hard core c++ devs will catch that one) Nov 05 03:21:08 im saying scrollview is a float, index of absview would be I t Nov 05 03:21:10 int Nov 05 03:21:29 you were talking about scroll position saving Nov 05 03:21:41 scrollview position Nov 05 03:22:21 scrollView scroll is in pixels though right ? Nov 05 03:22:30 doubt it Nov 05 03:22:39 what else would it be ? Nov 05 03:23:00 float, how can a pixel be set outside screen Nov 05 03:23:31 what ? Nov 05 03:24:00 scrollview can be outside limits of visible Nov 05 03:24:11 yes Nov 05 03:24:20 as can any view Nov 05 03:24:39 by means of parent or negative pixel margins Nov 05 03:25:16 scrollview isnt bound by 0-1, it canbe inbetween Nov 05 03:25:38 Okay, the "Why does it save the FragmentManager?" thing seems obvious now. Nov 05 03:25:39 you mean you are unitising the screen space ? Nov 05 03:25:55 It simply has to save their View data (e.g., if one of the Fragments has an EditText, it needs to save that text). Nov 05 03:25:58 made up word? Nov 05 03:25:59 how can I test my app for devices which doesnt have camera.autofocus ? Nov 05 03:26:33 and screen space isnt equal to not on screen Nov 05 03:26:36 I have a question for y'all -- what's an easy, consistent way of making Android kill my app (which is running in the background)? Nov 05 03:26:46 e.g., by using loads of RAM or something. Nov 05 03:27:06 whatitis hmmm, I aint no programmer, but you appear to be talking bollox :) Nov 05 03:27:54 tactical if refering to activities you can set debugging to kill them Nov 05 03:28:09 StingRay_: i wish you'd stop saying that. you're in here, you code, you're a programmer... suffer the title ;) Nov 05 03:28:10 Yeah, I mean the app process rather than an Activity. Nov 05 03:28:10 bollox = bollocks? Nov 05 03:28:22 if so yea you dunno Nov 05 03:28:38 I once programmed a VCR. Nov 05 03:29:00 whatitis http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.1_r1/android/view/View.java#View.scrollTo%28int%2Cint%29 Nov 05 03:29:03 pixels yeah Nov 05 03:29:06 bollocks :) Nov 05 03:29:28 long link to 2.3.1 of nonsense Nov 05 03:29:44 erm… not quite sure that has changed since ;) Nov 05 03:29:52 it's a view…with erm…. scroll Nov 05 03:30:02 scrollview? Nov 05 03:30:07 view Nov 05 03:30:15 scrollview? Nov 05 03:30:20 omg Nov 05 03:30:25 * StingRay_ walks away Nov 05 03:30:28 good Nov 05 03:30:43 most positions are float Nov 05 03:30:51 so walk away Nov 05 03:31:07 yes my master lol Nov 05 03:31:26 bankai_au I still dont think I am, you can have people here that are not Nov 05 03:31:38 When my app is first run, I'm showing a tutorial Activity. Right now, I'm doing this in MainActivity.onCreate. Nov 05 03:31:53 I notice that I see MainActivity for a moment, and then TutorialActivity. It doesn't look optimal. Nov 05 03:32:03 Is there a simple way of showing TutorialActivity *before* MainActivity has shown itself? Nov 05 03:32:08 StingRay_: we'll take a vote next time you're not around Nov 05 03:32:11 I don't want TutorialActivity to be the launcher Activity. Nov 05 03:32:45 StingRay_ the converse is, if you aren't a programmer why should we listen to you :D Nov 05 03:32:50 tactical dont make it an activity Nov 05 03:33:00 It's an Activity with Fragments. Nov 05 03:33:05 I kinda need it to be an Activity. Nov 05 03:33:10 g00s dont, ffs I dont … no1 else should either Nov 05 03:33:25 this channel is mostly getting on to be just noise anways :) Nov 05 03:33:31 anyways* Nov 05 03:33:35 doesnt lolipop animations need fragments ? Nov 05 03:33:39 *dont Nov 05 03:33:49 no you dont, if you want something to launch, but dont really want it thats silly Nov 05 03:34:10 whatitis: I want it to show on first app launch. Thereafter, I want it to show whenever the user selects "Tutorial" from the menu. Nov 05 03:34:14 create a layer based on whatever that has popups Nov 05 03:34:16 (i might be wrong here) Nov 05 03:34:17 It being a secondary Activity makes the most sense. Nov 05 03:35:26 I made a big mistake... Nov 05 03:35:33 secondary activity is a new layer, keep single and add appropriate popups Nov 05 03:35:42 didnt set gradle to offline mode Nov 05 03:36:07 Popups? Nov 05 03:36:28 gordon_: Download all the things! Nov 05 03:36:40 Yes, create intial activity if flags arent met, add exfras Nov 05 03:36:48 TacticalJoke: 7 minutes later... Nov 05 03:38:48 tacticaljoke, there is some stuff out there that show/hide navigation drawer ti Nov 05 03:39:04 til learned. same witb yoh approach Nov 05 03:39:30 damn my typing sucks :) Nov 05 03:41:26 Don't you use swipe-typing? Nov 05 03:41:29 Or "gesture typing". Nov 05 03:42:45 nope im old school press whatever and hope works :) Nov 05 03:43:27 then realize it fai Nov 05 03:43:41 ed, correct :) like now haha Nov 05 03:44:45 just trying to help, but it sometimes fs up Nov 05 03:48:11 anywho tactical, if wanting to show on first use, u can use sharedprefs etc to determine understanding, if they dont get it, show it again Nov 05 03:49:19 Yes. I'm gonna store the number of app runs (I think). Nov 05 03:49:27 g00s: not new, but have you seen http://www.samsung.com/global/microsite/gearvr/gearvr_specs.html ? Nov 05 03:49:29 Could be really useful information in future. Nov 05 03:49:33 This is like a self-help app. Nov 05 03:49:52 just set a flag of completion, then skip tuturia Nov 05 03:50:01 tutorials after Nov 05 03:50:32 bankai_au cool thanks Nov 05 03:50:44 If they finish the tutorial, the shared preference will update. Else, it won't. Nov 05 03:50:53 Else, it'll consider this not a real "app run". Nov 05 03:50:58 g00s: actually it's not as exciting as i thought, it's just cardboard, but made out of plastic lol Nov 05 03:51:02 but to try to show a 2nd activity seems a bit much Nov 05 03:51:10 g00s: What do you think of the new Gmail icon? Nov 05 03:51:12 heh Nov 05 03:51:13 whatitis: It's a tutorial. Nov 05 03:51:17 With multiple screens. Nov 05 03:51:20 TacticalJoke i haven't seen it Nov 05 03:51:24 Text and (perhaps) images. Nov 05 03:51:33 I might even use a ViewPager or something. Nov 05 03:51:48 tactical, but a tutorial can be a layer on first Nov 05 03:53:07 and if they really need a tutorial, maybe they dont need it Nov 05 03:53:08 It's unfortunate that my app needs a tutorial, but it's actually impossible for most people to figure stuff out without one. Nov 05 03:53:18 No matter how user-friendly (and it is user-friendly). Nov 05 03:53:36 whatitis: If they need a tutorial they don't need a tutorial? Nov 05 03:53:50 no they dont need app Nov 05 03:54:01 whatitis: You make so many bizarre assumptions. lol Nov 05 03:54:34 unless you are developing for idiots, why would they need it? Nov 05 03:55:10 It's basically a game. Nov 05 03:55:10 whats the app that they need to be told how to use it? Nov 05 03:55:16 They need to learn to play the game. It's a new idea. Nov 05 03:55:44 It's not strictly a game, though. Nov 05 03:55:44 but does them messing up destroy the game? Nov 05 03:55:47 It's hard to describe. Nov 05 03:55:54 It makes them not realise what it's all about. Nov 05 03:56:05 but they wanted it Nov 05 03:56:43 and yes I make bizarre assutions cause thats what I do ; Nov 05 03:57:30 I question everything :) so dont let that discourage you :) Nov 05 03:58:54 I know. A tutorial is a neccessary evil, really. I didn't plan to add one. Nov 05 03:59:02 necessary* Nov 05 04:00:50 then dont add that to your work. describe it in play, and let them know they can contact you with questions, instead of adding that layer of walking them through what theg wanted Nov 05 04:01:30 whatitis: You're judging an app you've never seen. :p Nov 05 04:02:05 and you are asking questions of an app not complete :) Nov 05 04:03:53 all im telling you is, ppl will have questions. relevant or not, you have to decide what sized spoon you want to give t o users Nov 05 04:05:34 users WILL hate a color you've used. ALWAYS! deal with it if you have a quality project Nov 05 04:06:39 I might create a "material" icon for my app, even if I'm not using Theme.Material or whatever. Nov 05 04:06:44 Those icons look pretty nice, some of them. Nov 05 04:07:10 TacticalJoke I put a vote up for my users and new icon Nov 05 04:07:29 24% favor current and 64% new material one Nov 05 04:07:38 In a discussion forum? Nov 05 04:07:39 but someone will hate it, how to deal with that Nov 05 04:07:41 Nice. Nov 05 04:07:47 TacticalJoke not really Nov 05 04:07:52 thats bad Nov 05 04:07:52 If they hate it, I'll listen to their feedback. Nov 05 04:08:02 one person? Nov 05 04:08:10 StingRay_: Why is it bad? Nov 05 04:08:13 it happens Nov 05 04:08:27 well cause no change you dont really upset anyone Nov 05 04:08:32 someone will always hate it Nov 05 04:08:37 change and you know you upset 25% ish Nov 05 04:08:51 so thats the prob Nov 05 04:08:52 thats not anyone then Nov 05 04:09:49 TacticalJoke I always kinda said that if it were 25% against I would probably not do it, and it is …… Nov 05 04:10:04 oh balls, just gone to 25.3% now :( Nov 05 04:10:11 I see. Nov 05 04:10:32 It'll look good alongside the new Google apps, though. Nov 05 04:10:38 Then again, it might already look good. I wouldn't know. Nov 05 04:10:53 I know it does, I already switched it in my dev version Nov 05 04:11:09 I like it … hence why it's bad that over 25% wont :( Nov 05 04:13:05 well I actually gave 3 options, people are not voting for an app logo + shadow icon…. surprised at that Nov 05 04:13:53 my hardest issue is one person hating, one person is related to the whole world, so maybe .01%, but it sucks, but it also sucks that they hate it. Basically there are always haters, how do you justify? Nov 05 04:15:29 Hmm, still no luck tracing the origin of the error "Message not sent" in the source for com.android.mms Nov 05 04:16:15 CyberstormFox I said what it could be, there will be more info logged I would think… also you are not on release software Nov 05 04:16:22 so not sure how relevant any of it is Nov 05 04:16:55 They'll get used to it. Nov 05 04:16:58 But kinda assume messaging hasn't changed much in ages Nov 05 04:17:39 not sure how relevant that is Nov 05 04:17:55 there will be things not complete … that should be enough Nov 05 04:18:06 well enough to think, wait till release Nov 05 04:18:23 is it with all apps ? or just the aosp mms one ? Nov 05 04:18:38 wait is this not a rom issue ? Nov 05 04:18:45 Well, it's a developer preview, so...developers should study it and look at how it works Nov 05 04:18:47 or an android support user thing ? Nov 05 04:19:17 "And so far, just the AOSP MMS one Nov 05 04:19:31 CyberstormFox I think you maybe in the wrong place… this is app dev Nov 05 04:20:33 Not OS dev? Nov 05 04:20:39 no :) Nov 05 04:20:45 read topic Nov 05 04:20:50 Well...it's technically an app...that's really central Nov 05 04:21:28 Which room would be more core-OS related then? Nov 05 04:21:48 read topic …rom builders in android-root I think Nov 05 04:24:41 Well, studying the core apps was still informative! Nov 05 04:32:20 If Android kills my app running in the background, will LogCat say anything (using my app's tag)? Nov 05 04:33:37 cant you try it and see ? Nov 05 04:34:12 I am trying. lol Nov 05 04:35:08 I'm not sure how to kill my background app reliably. Nov 05 04:35:19 TacticalJoke am kill ? Nov 05 04:35:30 also see am force-quit maybe Nov 05 04:36:55 g00s: Hmm. I'm trying to get Android to kill my app's process while it's running in the background, to see exactly what happens. I'm checking the saveInstanceState stuff (I'm guessing that it doesn't restore instance state when the process is killed to reclaim memory). Is "am kill" the same kinda thing? Nov 05 04:37:10 TacticalJoke turn on "dont keep background" in dev options on device Nov 05 04:37:14 I opened about 80 Google Chrome tabs and it still didn't kill my app. Sigh. Nov 05 04:37:21 That's Activities, StingRay_. Nov 05 04:37:32 don't keep background isn't going to kill the app Nov 05 04:37:41 it just means the activities are destroyed Nov 05 04:37:41 Wait. Nov 05 04:38:01 It says "Background process limit" ---> "No background processes". Nov 05 04:38:16 if you buck with that, all hell can break loose :) Nov 05 04:38:49 TacticalJoke are you telling me, am kill isn't working ? Nov 05 04:39:00 Whoa. Nov 05 04:39:01 there are places where i read root view is a framelayout, then places that say rootview is something called decorview. which one is true and what is decorview ? :S Nov 05 04:39:02 I did it... Nov 05 04:39:07 And it did restore the instance state! Nov 05 04:39:18 g00s: I didn't try that. Nov 05 04:39:24 I did the "no background processes" thing. Nov 05 04:39:33 jesus Nov 05 04:39:42 When I switched back to my Activity, it got onCreate and it did restore the instance state. Nov 05 04:39:44 What voodoo is this. Nov 05 04:40:02 Maybe it only killed the Activity, and not the process. Hmm. Nov 05 04:45:12 Sorry, got disconnected. Nov 05 04:45:20 I was saying that I'm reading that this setting does kill background processes. Nov 05 04:45:30 So it seems that the onSaveInstanceState thing persists even if the process goes down. Nov 05 04:47:59 this is pretty interesting about AS getting sqlite browser https://groups.google.com/forum/#!topic/adt-dev/Jqw9VslC_Vw Nov 05 04:48:04 g00s: I tried "am kill". Nov 05 04:48:10 Same result! Instance state is persisted. Nov 05 04:48:40 My main Activity gets onCreate and everything. Nov 05 04:50:35 "am kill-all" doesn't seem to do anything to my app. Nov 05 04:50:39 Even when running in the background. Nov 05 04:55:35 hey anyone kone about HBCE? Nov 05 04:56:26 so this twitter fabric thing https://dev.twitter.com/products/fabric Nov 05 04:56:48 i'm clueless, but does it have an API for me to easily emit tweets from my app , beside all the other stuff ? Nov 05 04:57:13 sign in is useful i guess , but 'embed tweets' seems like embedding content in your app, not sending it Nov 05 05:11:00 TacticalJoke, instance state is a bundle that gets persisted to disk Nov 05 05:14:14 hence savedInstanceState Nov 05 05:18:31 pfn: Ah, interesting. Nov 05 05:30:42 Such death Nov 05 05:31:01 i just got my first crashreport in play console in about a year Nov 05 05:31:17 oh shit Nov 05 05:31:28 tricknology: Yeah, but "saved" could mean anything. :D Nov 05 05:32:42 I use way too many Log.whatever calls while debugging. My LogCat becomes a mess. Nov 05 05:32:51 Though that Log class is so handy. Nov 05 05:35:21 Haha. There are people on SO asking "Shall I disable background processes in Android? Will this speed up my phone?". Nov 05 05:35:50 Android is smarter than they are. Nov 05 05:37:55 Answer is, yes. You'll also remove a lot of bloat if you root and execute rm -rf /* Nov 05 05:38:29 make sure you mount system as rw, so that the rm script can find all the bloat that Google put in Nov 05 05:38:35 Sticking their head in a woodchipper would remove the majority of bloat as well Nov 05 05:38:47 Disabling background processes and setting "Do not keep activities" really weeds out the badly made apps. Nov 05 05:39:07 which is like 99% of the apps Nov 05 05:39:09 Ya. Nov 05 05:39:23 In a way, it's handy that Android is so difficult (in ways). Nov 05 05:39:47 Because it means that people who know what they're doing are in the minority (and perhaps sought after). Nov 05 05:45:36 Suddenly eclipse stopped showing any default proposals or autocompletion mechanism Nov 05 05:45:57 I can see the same is working inside onCreate method but not outside it Nov 05 05:46:51 I tried to check the Editor advanced preferences under java .But nothing seems to work Nov 05 05:47:34 pressing ctrl+spacebar gives me no default proposal message Nov 05 05:51:17 http://stackoverflow.com/questions/908489/eclipse-java-code-completion-not-working Nov 05 06:11:21 Welcome to Zombo com. Nov 05 07:04:27 Is there any library for creating "swipable" listView ? Nov 05 07:04:33 Like in the MailBox app ? Nov 05 07:05:00 morning Nov 05 07:05:25 Morning. Nov 05 07:16:04 The another question is whether is there any dependency manager. Nov 05 07:27:46 lol, looks like if you want things done right - gotta do it yourself https://code.google.com/p/android/issues/detail?id=60002 Nov 05 07:28:21 "all you had to do , is show a dialog with allow or deny android ... thats all" Nov 05 07:38:52 Hello, When I tried to Sign-in with Google+ (integrated from my app) and getting error - "Unfortunately, Google+ couldn't set up your profile. Try again later." Nov 05 07:39:58 ..and I've searched from web but there's no such problem like said above. Nov 05 07:40:37 hi Nov 05 07:41:05 aren't asynctasks supposed to run in parallel? Nov 05 07:46:02 they run in series Nov 05 07:46:35 alright, well there's my problem then Nov 05 07:46:38 http://developer.android.com/reference/android/os/AsyncTask.html - read "Order of execution" Nov 05 07:47:21 wait, so they went from serial to parallel to serial? Nov 05 07:48:56 and thanks Leeds, much appreciated =) Nov 05 07:49:19 yeah, it's a bit messy... easiest to forget about honeycomb - everyone else is trying to Nov 05 07:49:50 well I need mine to run in parallel, so it looks like I Nov 05 07:49:59 have to use executeOnExecutor Nov 05 07:57:01 or do your own thread management Nov 05 07:58:16 * g00s hits ravioli with a crunchwrap supreme Nov 05 07:59:47 yuck Nov 05 08:00:15 usually new Thread() ftl Nov 05 08:01:42 I said thread management, that doesn't mean creating a new thread every time Nov 05 08:01:52 but that's what AsyncTask does too, or is supposed to Nov 05 08:02:06 if that doesn't work to expectations, then make your own Nov 05 08:02:58 ok then :) Nov 05 08:06:45 JakeWharton, how does one POST an empty array using retrofit? Nov 05 08:07:04 my PUT has a field which could contain an empty array of ints Nov 05 08:07:05 Collections.emptyList() Nov 05 08:07:10 it ends up sending nothing Nov 05 08:07:12 new int[0] Nov 05 08:07:16 completely empty body Nov 05 08:07:32 11-05 10:04:01.622 7134-7280/com.byteorbit.impressme D/Retrofit﹕ Content-Length: 0 Nov 05 08:07:34 ;( Nov 05 08:07:52 what's the body type? Nov 05 08:08:45 http://pastebin.com/eXNHstij Nov 05 08:09:15 the docs of @Field say that it iterates over arrays and lists Nov 05 08:09:25 so use Collections.singletonList(new int[0]) Nov 05 08:10:08 So the interface stays the same; but calling it requires the above mentioned? Nov 05 08:10:11 although that's just going to call String.valueOf on int[] which isn't what you want Nov 05 08:10:20 what is an empty array in form-url encoding look like? Nov 05 08:10:23 ye im in a huge pickle Nov 05 08:10:38 i dont know :/ Nov 05 08:11:04 if you don't know what your desired output is then i really can't help you Nov 05 08:13:18 i need to set favourites to an empty array Nov 05 08:13:47 in json, it'll be like {"favourites": [] } Nov 05 08:14:05 Im not sure what the form url encoding will look like for posting an empty array Nov 05 08:14:16 not posting, putting Nov 05 08:16:02 wouldn't that depend on what the other side expects as well? Nov 05 08:18:13 an empty array is apparently '' Nov 05 08:18:56 that makes the content-length of 0 correct Nov 05 08:23:03 I just sent the data using @Body rather instead of a @Field Nov 05 08:26:59 form-url encoding has no concept of arrays Nov 05 08:27:10 so whatever you are doing is specific to your backend infrastructure Nov 05 08:41:56 JakeWharton, someone used ActionBarSherlock as 1 of 3 java projects on github for a language study Nov 05 08:42:00 src: http://macbeth.cs.ucdavis.edu/lang_study.pdf Nov 05 08:42:46 probably because it's the #3 most starred Java project (those are the top 3) Nov 05 08:43:27 must feel good :p Nov 05 08:44:43 people telling me that they've stopped using it feels better Nov 05 08:45:03 it had its time Nov 05 08:45:22 at one point it almost overtook elasticsearch Nov 05 08:45:30 Gingerbread 4ever! Nov 05 08:45:36 Until there is something else that android 5 or later has, and then you want to use it in good ol 4.x Nov 05 08:45:38 and you can't Nov 05 08:45:42 THEN ITS MY TIME TO SHINE Nov 05 08:45:53 that's what appcompat-v7 is for Nov 05 08:46:15 Google wised up this go around to all our benefits Nov 05 08:46:46 Can't rely on Google for everything though Nov 05 08:46:54 They are bound to have another oopsy Nov 05 08:47:14 Well, there are people that think that 3rd party libraries are THE DEVIL Nov 05 08:47:27 and if it's not provided by google (or IBM) it can't be used :P Nov 05 08:48:40 wtf Nov 05 08:49:01 Im not going to lie, when i started programming my friend suggested I use a library (was making an irc bot) Nov 05 08:49:18 because i was young and naive, i decided to do it all on my lonesome Nov 05 08:49:25 regrets, regrets everywhere Nov 05 08:49:56 generally, there is someone on the internet that has done what you want to do, and has done it better than you can Nov 05 08:50:03 \:D/ Nov 05 08:52:19 I once wrote an IRC bot in perl completely from scratch, down from the socket level up Nov 05 08:52:28 looking back, I now see that was a good decision Nov 05 08:52:37 learned a lot about how IRC works Nov 05 08:52:38 I once ate a whole apple Nov 05 08:52:58 ravilov, from a production point of view i regret my decision Nov 05 08:53:07 from a learning point of view, i don't Nov 05 08:53:57 i feels its important to be able to incorporate both aspects Nov 05 08:54:07 VnM, liar, no you didn't, there's proof everywhere - http://bit.ly/1x5hV8t Nov 05 08:54:22 don't reinvent the wheel when it comes to production / employment stuff Nov 05 08:54:30 kevel, of course it is, I never said either approach is better/worse Nov 05 08:54:35 and do w/e in your own time for gain and growth Nov 05 08:54:45 there are people where i work which don't do the latter Nov 05 08:54:48 and i cringe at it Nov 05 08:54:52 MONEY PRINTING MUST GO ON Nov 05 08:55:23 * g00s proposes currency backed by bacon Nov 05 08:55:49 what's wrong with this fiat situation? Nov 05 08:56:04 everybody trusts the government anyway, don't they? Nov 05 08:57:06 once they mine meteors for rare metals, they will be useless (supply/demand). afaik bacon can not be found on metoerites and will always be in great demand Nov 05 08:57:41 one meteor could have 1000 years worth of gold / diamonds :| Nov 05 08:58:00 NO BACON Nov 05 08:58:07 bacon backed money would kill the middle east Nov 05 08:58:23 deebo: oil based money already is doing that... Nov 05 08:58:40 g00s, I was about to propose a currency backed by human stupidity but then I realized the horrible inflation rate... Nov 05 08:58:41 mmmmm.... bacon ..... Nov 05 08:58:56 I want this to happen just to see PETAs reaction. Nov 05 08:59:32 you don't like them, do yo :p Nov 05 08:59:35 you* Nov 05 08:59:45 was a member once ^^' Nov 05 09:00:04 what, until you realized they despise bacon? :p Nov 05 09:00:15 but theres a reason why they are called vegan-police. Nov 05 09:00:44 someone has to be, there's people policing all kinds of things Nov 05 09:01:06 except the police Nov 05 09:01:18 yeah but peta is like "you are not vegan? -> you are the most evil person on earth" Nov 05 09:01:38 if you dont comply 100% with their thoughts, you are against them Nov 05 09:01:42 that's when you eat them Nov 05 09:01:44 its like scientology Nov 05 09:02:12 they have their own kind of "religion" and if you dont 100% agree there is no place for you Nov 05 09:03:17 a lot of people also see the world as black and white Nov 05 09:03:26 they are commonly referred to fanatics and extremists Nov 05 09:03:34 to as * Nov 05 09:03:36 item.setOnTouchListener(...), the item is in a ListView, and I found that OnTouchListener cannot get ACTION_UP, which may be blocked by ListView. How to make the item receive ACTION_UP Nov 05 09:04:08 danijoo_, if you're not a part of the solution, you're a part of the problem :p Nov 05 09:04:17 correct. Nov 05 09:04:47 but they forget about the "part". you are the solution or you arent Nov 05 09:08:50 its all coming to an end anyhow. i think the republicans won the senate; we're at a pivotal moment in our earth's history wrt climate change. the wrong bunch of people got voted in if the planet is to be spared Nov 05 09:09:31 * g00s hopes rest of the world showes better leadership in this area Nov 05 09:10:24 g00s Republicans will do it, just without bankrupting the country :p Nov 05 09:10:25 g00s, don't worry, PETA will save us all Nov 05 09:10:54 also Nov 05 09:10:58 ooh, goodie, politics Nov 05 09:11:03 #android is such a lovely place Nov 05 09:11:05 Nov 05 09:11:05 * SpeedEvil is farting. Nov 05 09:11:05 * SpeedEvil has stopped farting. Nov 05 09:11:06 Nov 05 09:12:17 Yeah there is this other turd in #android as well Nov 05 09:12:17 Inhofe will be taking over the Senate Environmental Committee; he wrote the (ludicrous) book about global warming denialism. how does this guy get put in charge ... Nov 05 09:12:19 SPAM SPAM SPAM SPAM Nov 05 09:12:28 that was relevant Nov 05 09:12:38 The climate trick is getting China involved Nov 05 09:12:41 Excuses Nov 05 09:12:55 capella-s3 problem is we outsource a lot of pollution to china Nov 05 09:13:07 all that cheap crap in walmat = pollution in china Nov 05 09:13:08 having a good excuse makes all the difference Nov 05 09:13:24 including all of (y)our phones ;) Nov 05 09:13:27 Er wat? heh Nov 05 09:13:44 g00s: yeah, you bastards - it's your fault I can't breath outside Nov 05 09:14:03 get an air purifier and stay inside :p Nov 05 09:14:25 yeah, seeing those people with surgical masks ... crazy (they don't do a thing) Nov 05 09:15:25 "The youngest known lung cancer patient in eastern China is an 8-year-old girl whose home is next to a dust-choked road in heavily industrialized Jiangsu province." Nov 05 09:15:27 actually, a lot of them aren't surgical, they're particulate, in which case they do do something... and particularly in HK, people are *very* concerned about infection, so they'll wear a mask when they feel at all sick Nov 05 09:15:28 g00s, they totally provide a false sense of security, that's gotta count for something! Nov 05 09:15:50 Export liberals to China... they need an opposition... though the life expectancy isnt real long Nov 05 09:15:52 Leeds yeah if they are nd9 masks thats better Nov 05 09:15:57 *n95 Nov 05 09:16:56 you can get some cool ones from respro http://respro.com/ Nov 05 09:17:01 * g00s used these mtb racing Nov 05 09:17:16 I go to work in one of those biohazard suits with CDC written on it, I always have all the space I need in public transports Nov 05 09:17:37 but is it comfy? Nov 05 09:17:51 Gets a bit warm Nov 05 09:18:07 what happens if you fart in it ? Nov 05 09:18:20 e^wwwwww Nov 05 09:18:22 You die Nov 05 09:18:50 g00s, http://blog.thepartybazaar.com/wp-content/uploads/2013/09/HA8710900.jpg Nov 05 09:19:06 hahahaha Nov 05 09:19:07 ravilov haha Nov 05 09:23:57 Oregon and DC legalized \o/ Nov 05 09:29:05 man I wish we'd have a CPU profiler that doesn't suck Nov 05 09:32:37 pretty much everything in ddms / monitor is crapola Nov 05 09:33:03 TraceView display is very broken on OS X Nov 05 09:33:17 its 2014 and my main debugging tool is effing log statements Nov 05 09:33:23 debugging animations with that is also kinda shitty Nov 05 09:33:23 and logcat sucks too Nov 05 09:36:56 capella-s3: Legalized android development? Nov 05 09:37:42 Yah... those Apple dudes were tough to beat Nov 05 09:42:31 Hello. what is the preffered way transfering data via wifi, bluetooth, 3g, (maybe NFC)? Text and Binary. Using TCP and a ServerSoftware and writing a Cascade between? Nov 05 09:42:35 g00s: lol? Nov 05 09:42:57 g00s: Why not use the debugger? Nov 05 09:43:29 too mainstream Nov 05 09:59:27 what is dispatchTouchEvent's return value based on? Nov 05 10:00:44 shmoon_: "True if the event was handled by the view, false otherwise." Nov 05 10:01:18 shmoon_: so it is based on whether the view handled the event or not. =) Nov 05 10:04:42 ah cool thanks Nov 05 10:04:49 apple :D Nov 05 10:31:47 Greetings humans. Nov 05 10:32:54 I see here that even a hello world program is like 2mb when you crate a distribution package. Nov 05 10:33:11 I am trying to figure out what is packaged in it that it is so big... Nov 05 10:33:22 I am using eclipse. Nov 05 10:34:03 Is it just me ? Nov 05 10:35:30 Are you all sleeping ? Nov 05 10:37:23 it's the library you are using with it Unknown0BC Nov 05 10:37:38 otherwise the footprint should be lesser than few hundred of K Nov 05 10:38:27 Is appcompat_v7 the culprit ? Nov 05 10:38:41 you should use Android Studio, with gradle 14.1 you have something called shrinkResources (goes with useMinify, new var for enabling proguard) Nov 05 10:38:50 i think so Unknown0BC Nov 05 10:39:03 Unknown0BC: proguard Nov 05 10:39:03 it is probably using lot of icons and code for providing you retrocompatibility Nov 05 10:39:06 including stuff you don't use Nov 05 10:41:31 gordon_: Can you use proguard in eclipse? Nov 05 10:44:24 you can Nov 05 10:44:27 why not ? :D Nov 05 10:45:29 * Unknown0BC looks into proguard Nov 05 10:45:52 I thought it was enabled already... Nov 05 10:46:06 that would be terrible Nov 05 10:46:13 indeed Nov 05 10:46:44 proguard can only ever be harmful until configured properly, which is usually done on a per project basis Nov 05 10:48:43 not even that Nov 05 10:48:49 it takes some time too Nov 05 10:49:44 Ah at least its now down to 1.3mb :) Nov 05 10:49:49 the distribution file size. Nov 05 10:50:13 from 2.1 mb. Nov 05 10:50:24 still not exactly small... for a hello world program. Nov 05 10:50:46 look into your libs/ subfolder Nov 05 10:51:04 Must be these causing the big file size: Nov 05 10:51:04 android.library.reference.1=../appcompat_v7 Nov 05 10:51:04 android.library.reference.2=../google-play-services_lib Nov 05 10:51:10 all the stuff in there is included in the app, whether it uses it or not Nov 05 10:51:17 ... wat Nov 05 10:51:24 why are you including all that for a hello world? Nov 05 10:52:00 (a hello world app should not even be "a few hundred kb" as previously stated, it should be no larger than 30-40kb) Nov 05 10:52:06 Its not really a hello world program, but it does so little its just about the same thing :). Nov 05 10:52:07 ;) Nov 05 10:52:11 ravilov: probably the create new project wizard helping out =) Nov 05 10:52:11 (depending on icons and other resources) Nov 05 10:52:20 Its already distributed on google play. Nov 05 10:52:27 with nifty little ads :). Nov 05 10:52:33 ew Nov 05 10:52:57 no wonder it's so gigantic Nov 05 10:53:13 * Unknown0BC nods Nov 05 10:53:25 Still I would not have expected it to be that big. Nov 05 10:53:35 >nifty little ads Nov 05 10:53:40 * Darklust shudders Nov 05 10:53:50 Darklust, I know, no such thing, right? Nov 05 10:53:59 People LOVE ads. Nov 05 10:54:03 * Unknown0BC giggles Nov 05 10:54:09 Unknown0BC, if you use ads, expect just about *anything* Nov 05 10:54:09 That's what they want you to think :p Nov 05 10:54:43 * lewellyn stuck ads in an app once... it kept toggling between pro-christian and pro-islam ads. Nov 05 10:54:49 that didn't last long. Nov 05 10:54:58 anyway, so when you use appcompat and google services you TINY little program just ends up big. Nov 05 10:55:09 I will have to accept that ? Cant remove anything ? Nov 05 10:56:14 correct Nov 05 10:56:27 The programs I wrote with older versions of everything was not so big. like 280k for programs that did more... Nov 05 10:56:31 ( with ads ;) ) Nov 05 10:56:46 welcome to the world of new android releases Nov 05 10:56:55 yeah Nov 05 10:56:57 * Unknown0BC shakes head Nov 05 10:57:02 If you continue to butcher it with proguard it'll just stop working Nov 05 10:57:13 So ~1mb is good as it gets Nov 05 10:57:28 Unknown0BC: it's like including guava + google play services and wodering why my app is big Nov 05 10:57:29 Darklust, but it will be really small! Nov 05 10:57:31 Fine, I will not touch the proguard settings. Nov 05 10:57:33 add facebook sdk Nov 05 10:57:48 Unknown0BC: by default proguard does nothing I guess Nov 05 10:57:58 ravilov: It's 1kb! But it still shows ads so it's a good app! Nov 05 10:58:07 Its not enabled by default in eclipse you have to uncomment a line. Nov 05 10:58:08 :D Nov 05 10:58:22 Unknown0BC: proguard settings are empty -> it does nothing Nov 05 10:58:51 it made the apk size about half the size when I uncommented that one line. Nov 05 10:58:59 * Unknown0BC blinks Nov 05 10:59:04 I will just tell you one thing -> the sooner you start using it properly, the better it will be later Nov 05 10:59:08 I quess i'm happy now :) Nov 05 10:59:29 later it will be impossilbe or it will take time Nov 05 10:59:36 for testing if app works Nov 05 10:59:38 and stuff Nov 05 10:59:48 now you only have like 2 libs and app so it's easy Nov 05 11:00:41 When I use to do j2me I recall just setting the obfustication level until the app works again. Nov 05 11:01:33 Unknown0BC, you do understand what proguard does, right? Nov 05 11:01:41 if not, do NOT enable it ever Nov 05 11:02:15 scary Nov 05 11:02:31 did you have big issues with it ravilov ? Nov 05 11:02:58 Decompile an obfuscated package, just look at all the evil lovecraftian shit it does to the class fields Nov 05 11:03:31 Unknown0BC, I've never used it, but I know how it works and what all can go wrong Nov 05 11:03:41 in short: A LOT can go wrong Nov 05 11:03:56 Yeah darklust. Nov 05 11:04:07 ravilov, not here to troll but if you quote me, quote me properly: " lesser than few hundred of K", you forgot lesser in your sentence: " (a hello world app should not even be "a few hundred kb" as previously stated, it should be no larger than 30-40kb)", and i am far from knowing by heart how much size a hello world from someone else, including unknown library, unknown buildtools, etc.. would Nov 05 11:04:07 take Nov 05 11:04:41 private int mymotherlovestea becomes, private int b; Nov 05 11:04:43 and stuff. Nov 05 11:04:58 anyway not time to lose. Nov 05 11:05:09 Thanks for all the input on my huge apk size "issue". Nov 05 11:05:19 anyway no* time to lose. Nov 05 11:06:08 Unknown0BC, worse yet, it becomes some weird unpronounceable unicode symbol name Nov 05 11:06:25 unholy Nov 05 11:06:29 ! Nov 05 11:06:42 how you gonna get the code properly decompiled ? Nov 05 11:06:52 um, you don't? Nov 05 11:06:52 and recompiled ? Nov 05 11:06:55 never Nov 05 11:07:00 good stuff ;) Nov 05 11:07:01 that is the whole point of proguard Nov 05 11:07:38 side-effect: makes stack dumps utterly useless without a translation table (generated upon compiling/proguarding) Nov 05 11:07:53 adq, I apologize if you were offended, it was just a quick correction to your statement, I didn't really think much of it Nov 05 11:09:17 lol no offense, just to be clear Nov 05 11:09:20 but thx Nov 05 11:15:42 proguard is very hard to wrk with Nov 05 11:17:18 Aloah Nov 05 11:18:02 Could anyone tell me what is the best practice in storing uploadqueues on android? Nov 05 11:18:07 Could proguard ever, if the apk installs and works on one device, be the cause of problems on another ? Nov 05 11:18:59 Lets say i add 50 upload jobs to some queue and then my battery dies, how can i persistenly store the queue on my phone Nov 05 11:19:20 would sqllite make sence here? Nov 05 11:23:06 Unknown0BC, yes Nov 05 11:23:17 an app working on one device proves nothing Nov 05 11:23:22 thats dangerous, what are the chances of that happening ? Nov 05 11:23:43 yeah, but proguard being the cause thats at question... Nov 05 11:23:52 various devices have various versions of android, all bundled with various libs and stuff Nov 05 11:24:18 theoretically the possibility is relatively low, but it's not nonexistent Nov 05 11:25:03 Yeah well theoretically there could be a giant pink elephant on the dark side of the moon... Nov 05 11:25:29 Unknown0BC: The chances that there are dragons inside proguard are higher Nov 05 11:25:46 I believe you. Nov 05 11:26:41 Unknown0BC, best thing to do is to read up on proguard A LOT and then decide for yourself Nov 05 11:27:13 and then maybe you'll become KnownOBC, anything is possible Nov 05 11:27:58 Well the shrunk app is working fine so far. Nov 05 11:28:15 high five to proguard Nov 05 11:28:19 :) Nov 05 11:29:09 Last time i high-fived proguard, I had ~900 user complaints Nov 05 11:29:11 Never again Nov 05 11:29:18 could you suggest some readings ravilov ? Nov 05 11:29:48 other than official google docs at d.android.com, no Nov 05 11:30:36 never went any further because I never needed it so far Nov 05 11:31:52 I only activated it to shrink my app. I don't mind if someone wants to waste his time decompiling my apps. Nov 05 11:33:27 like I said... I never needed it before, I don't use random overbloated libs in my apps so my apps don't need shrinking :p Nov 05 11:33:31 What if I told you... there are ways to write apps to consolidate size efficiently without sacrificing usability Nov 05 11:39:54 \0 Nov 05 12:09:39 i'm using Google Maps in my application and they are working fine but logcat keep throwing this error "Error processing: com.google.maps.api.android.lib6.b.d@4207a580 not retrying". What is wrong here? Nov 05 12:19:56 shael: perhaps http://stackoverflow.com/questions/26171251/google-map-on-android-do-not-load ? Nov 05 12:22:17 appell: I have already tried this..but this does not seems to be the problem. Nov 05 12:23:16 well this is fun... going to app page in settings causes settings to crash in lollipop emulator and killing the app with adb just ends up with the system restarting it -.- Nov 05 12:28:58 hmm, can I filter bottom traceview window by thread? Nov 05 12:29:50 nasty piece of work, that app Nov 05 12:55:55 oh great, taking a screenshot of an emulator with monitor doesn't work Nov 05 12:56:07 -> hierarchy viewer doesn't work Nov 05 12:58:05 can't you take a screenshot of an emulator by simply pressing print screen? Nov 05 12:58:52 ravilov, sure, but it's more effort to prepare the image Nov 05 12:59:07 also, ui hierarchy viewer doesn't work Nov 05 12:59:46 i got an email from QA where they took photos of the app using another phone instead of screen shotting Nov 05 13:00:00 taking a photo of a phone with another phone Nov 05 13:00:03 why.jpg Nov 05 13:01:03 kevel, I had to do that once back in the day... we were using htc's usb networking thing to pass the traffic through the computer and it blocked all adb access :E Nov 05 13:01:12 there was someone in #android the other day, when told it's not clear what he's talking about and to take a screenshot, the response was "uh, screenshot? how do I do that?" Nov 05 13:01:58 all i can think about is a spidermon meme Nov 05 13:02:07 how does i shot web Nov 05 13:02:25 back in the day only awesome custom ROMs had that feature built in, nowadays almost all devices have it, yet people don't even know it's there or how to use it Nov 05 13:02:43 I mean I can understand when my mom is not aware of taking a screenshot, but... Nov 05 13:05:35 http://eclipser.xmms2.org/controls2.png I wonder why this smallIcon gets scaled up like: http://eclipser.xmms2.org/controls3.png :p Nov 05 13:06:26 Can I create a 'selector' in java? Nov 05 13:06:41 like spinner? Nov 05 13:06:51 in java? Nov 05 13:06:55 elaborate Nov 05 13:08:03 the selector drawable Nov 05 13:09:39 file:///C:/Users/ee207555/Android/android-sdk/docs/reference/android/graphics/drawable/StateListDrawable.html Nov 05 13:09:42 erf Nov 05 13:09:43 wrong site apparently Nov 05 13:09:57 http://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html Nov 05 13:10:00 there Nov 05 13:10:28 Zharf, thank you Nov 05 13:10:30 did you download all the android site docs? neat Nov 05 13:10:45 oh its the sdk docs Nov 05 13:10:49 I don't think your windows drive is a "site" anyway :p Nov 05 13:10:50 cliffreich, you can get it from sdk manager Nov 05 13:11:24 I normally don't use it, but I was checking something yesterday and forgot to close the tab Nov 05 13:11:36 I have a around 50 tabs of android docs open at any given time -.- Nov 05 13:11:58 Zharf, dat username Nov 05 13:12:13 hello Zharf aka ee207555 Nov 05 13:12:26 company policy based user name I guess, I didn't pick it Nov 05 13:12:45 I normally use Eclipser on all my private computers Nov 05 13:13:13 u poor windows fool Nov 05 13:13:15 :( Nov 05 13:13:39 I also don't use windows exclusively, and I have a bunch of different operating systems in virtual machines -.- Nov 05 13:13:54 lol dont worry, i use windows at home Nov 05 13:14:08 yet but a single choice still when it comes to emotes Nov 05 13:14:09 they're all equally crap but some are more useful for some things than others Nov 05 13:14:10 i had OSX but without vtx is like masoquism Nov 05 13:14:13 how else can i play dota and csgo with decent frames Nov 05 13:14:14 ;_; Nov 05 13:14:23 ravilov, I also use :E Nov 05 13:14:32 don't get hung up on my emote use! Nov 05 13:14:39 Zharf, I stand corrected Nov 05 13:14:45 i can play dota and cs with good framerate in my gentoo :^) Nov 05 13:15:20 steam in-home streaming is quite awesome as well, for games that don't have linux support Nov 05 13:15:38 or games that my hp elitebook can't run Nov 05 13:16:55 but i have a laptop only Nov 05 13:17:27 aaaaaanyway... back to figuring out why the bigmode notification icon gets so *big* Nov 05 13:17:37 anyone who get tess-two library to work in android studio? Nov 05 13:18:31 whatever that is Nov 05 13:18:35 some context would be helpful Nov 05 13:35:43 I have an image, I can access it with R.drawable.image1 Nov 05 13:35:59 how can I access it, if the image name is in array? Nov 05 13:37:46 what? Nov 05 13:41:09 don't put the name in the array, put the ID Nov 05 13:42:39 how can you specify an area when taking a picture such taht that area is only captured? Like QR code scanners do it? Nov 05 13:43:37 Leeds: how else can I access image ressource= Nov 05 13:43:42 ? Nov 05 13:43:48 you access them by their ID Nov 05 13:44:14 Zharf, either you have a twin or you have two nicks here Nov 05 13:44:22 Zharf, why is album art on the lock screen so zoomed in Nov 05 13:44:51 if that's pre lollipop I know the answer to that Nov 05 13:44:53 EugenA, when it comes to android resources, filenames are next to useless Nov 05 13:45:10 it's because the system keeps fits the album art into a 256x256 bitmap and upscales it if needed Nov 05 13:45:14 Hi, I'm trying to modify pciture from camera before preview. In onPreviewFrame I want to do something like c = mCamSH.lockCanvas(); but always got E/SurfaceHolder﹕ Exception locking surface Nov 05 13:45:14 java.lang.IllegalArgumentException. The whole source is here: http://pastebin.com/SKeuxuv1 Do you have any idea what could be wrong, please? Nov 05 13:45:14 it's a piece of crap system Nov 05 13:45:25 lovely Nov 05 13:45:42 allart, never paste directly in the channel, use a pasting service instead Nov 05 13:45:57 if you want to save the aspect ratio you need to render the image into a transparent 256x256 bitmap before giving it to the remotecontrolclient Nov 05 13:46:07 ravilov: I put it to pastebin Nov 05 13:46:12 ok, how should I manage my category images. I'm building custom grid activity, listing all the categories (about 50) - image and text Nov 05 13:46:29 use image IDs like you've been told several times Nov 05 13:47:08 sorry, I don't know how to use image ids Nov 05 13:47:13 ravilov, http://eclipser.xmms2.org/git/xmms2-android.git/tree/src/org/xmms2/service/misc/CoverArt.java#n20 my solution to that problem Nov 05 13:47:32 EugenA, yes you do, you said you're using them already Nov 05 13:48:01 Zharf, pretty sure they aren't a dev, just a user Nov 05 13:48:06 eh little help with this: does translationY really moves the view? im experimenting with some animations and i need to actually move a view1 so the view2 below can fill the empty space left. Nov 05 13:48:06 ah' Nov 05 13:48:24 lollipop deprecated the remotecontrolclient though... there's only Notification.MediaStyle that you can use, which is what I'm trying to figure out Nov 05 13:48:44 in bigmode notification it scales up my small icon into ridiculous proportions Nov 05 13:49:49 and with always c = mCamSH.lockCanvas(null); get E/SurfaceHolder﹕ Exception locking surface java.lang.IllegalArgumentException Whole source is here http://pastebin.com/WJs1kyfq Nov 05 13:50:29 ... Nov 05 13:50:33 so, how can I get the image if I have it's in in images[3] ? Nov 05 13:50:43 so, how can I get the image if I have it's ID in in images[3] ? Nov 05 13:50:55 how would you get it otherwise? Nov 05 13:51:12 seems like visibilty as gone when onAnimationStop isn't a good idea for my purpose Nov 05 13:51:38 R.drawable.meat Nov 05 13:51:50 there you go Nov 05 13:57:56 idea 14 released Nov 05 13:58:59 maybe I'm missing some java knowledge.. but this is not working R.drawable.categories[position].toString() Nov 05 13:59:19 i'm java beginner Nov 05 13:59:28 VERY much Nov 05 13:59:42 inspect what R.drawable.whatever actually is Nov 05 13:59:56 hmm no arm v8a system images yet. That's depressing Nov 05 14:01:30 oh i fixed this thingy Nov 05 14:02:19 EugenA, if you're so vastly unfamiliar with java, maybe you should learn that first... which means this is not exactly android related anymore Nov 05 14:07:51 in this example, how would I set env variables? https://gist.github.com/pboos/5802233#file-signing-build-gradle Nov 05 14:21:04 it's public static final int in a class. so? Nov 05 14:21:57 think about it Nov 05 14:22:02 use your brain Nov 05 14:22:23 how do you expect to index into a simple int? Nov 05 14:22:36 EugenA, yes, learn java first, then dive into Android. You'll be all the better for it Nov 05 14:22:39 :D I love irc Nov 05 14:23:45 this channel is not here to point out your noob java misconceptions and mistakes, sorry Nov 05 14:25:16 ravilov: i see Nov 05 14:27:26 so I cannot use nice image names and should use ugly 0x7f020008 ?? Nov 05 14:29:25 correct Nov 05 14:29:47 like I said... filenames are irrelevant and useless Nov 05 14:30:36 but you should also never hardcode any resources directly Nov 05 14:30:51 that is what the R class is there for Nov 05 14:31:07 it is first try, so they are hardcoded for now Nov 05 14:31:33 and then your code crashed Nov 05 14:31:37 i know what R is Nov 05 14:34:00 never EVER hardcode resource IDs, not even for the first try!!! Nov 05 14:34:40 EugenA, we mean not to be mean, there are just thousands and thousands of people who don't know that you must learn Java first, and then Android. It gets tiresome here.... Learn a bit, come back, and we'll welcome you with open arms. Nov 05 14:35:07 we will? Nov 05 14:35:13 well, I will. Nov 05 14:35:19 :p Nov 05 14:35:22 resource IDs get overwritten and regenerated upon every change/compile Nov 05 14:35:23 well, I probably won't. Nov 05 14:35:29 but it's still nice to say :D Nov 05 14:35:43 well.. i have res. names in xml, so I wanted to use them, not hardcoded IDs Nov 05 14:35:54 ... Nov 05 14:35:56 thats why you use R file Nov 05 14:36:01 that has the res name in it Nov 05 14:36:02 Is there any way to nicely generate the launcher icons? Nov 05 14:36:02 forget about any "names" Nov 05 14:36:20 for example: http://romannurik.github.io/AndroidAssetStudio mucks up the xxdpi and xxxdpi icons now Nov 05 14:36:32 and http://jgilfelt.github.io/AndroidAssetStudio creates very small icons Nov 05 14:36:51 MikeWallaceDev, if it will stop him from asking any more of these questions, I will concue Nov 05 14:36:56 concur even Nov 05 14:37:07 ;) Nov 05 14:37:09 how should I assing images to categories (cats are defined in xml)? Nov 05 14:37:44 it's android question :-) Nov 05 14:38:11 It is, but we also said that you have to read up a bit :) Nov 05 14:39:03 We really should create an android-dev-beginner channel... Nov 05 14:39:15 why not Nov 05 14:39:23 There are many noobs, they should have somewhere to go Nov 05 14:39:31 blind leading the blind Nov 05 14:39:32 EugenA, this is your original question - no, you will not get an answer until you show at least some intent on learning java first Nov 05 14:39:45 that's true joshkovach , good point Nov 05 14:40:10 after you learn java, the answer to this question will become blatantly obvious automatically Nov 05 14:40:15 but then again, at least they would be led Nov 05 14:41:18 hi! we have a problem, but dont understand it. have a main class, and in onCreate method have an Init.java singleton class. we see from the logs the init.java (at start)is ran once, but the onCreate method ran twice. is possible? Nov 05 14:41:23 MikeWallaceDev, sounds like one of those crappy homes for the elderly where the staff does nothing and inhabitants are ledt with taking care od each other :p Nov 05 14:41:32 besides, I would gladly logon to a noobs channel to help out from time to time. It's about context. I expect programmers here, in a noob channel I would expect noob questions... Nov 05 14:41:35 left* Nov 05 14:42:02 ravilov, as long as they're not shitting on the floor here! :D Nov 05 14:42:28 * lewellyn sees himself out ;) Nov 05 14:42:50 it would also be quicker to send them there then to try to explain why we don't want to help them Nov 05 14:42:52 ;) Nov 05 14:42:57 GTFO!! Nov 05 14:43:00 :D Nov 05 14:43:05 "hmm, I have some spare energy and mental power left, what can I do with it? I know, I'll go answer some dumb noob questions!" :p Nov 05 14:43:45 otoh, MikeWallaceDev does have a point Nov 05 14:43:52 there used to be an android-beginners google group - they closed it in favour of stackoverflow Nov 05 14:44:21 ravilov: pickup a random girl ;) Nov 05 14:44:23 that was years ago Leeds Nov 05 14:44:35 yes, I know Nov 05 14:44:37 far too many noobs think this channel is THE best place to start Nov 05 14:44:44 exactly ravilov Nov 05 14:44:52 it's the worst channel to start! Nov 05 14:45:06 It really is... Nov 05 14:45:14 yeah, you guys are terrible Nov 05 14:45:22 from what I've seen, we have a bad rep... Nov 05 14:45:46 (an understandable rep, but a bad one) Nov 05 14:45:55 we all like to think noobs are totally welcome here, but the truth is... they're not Nov 05 14:45:58 It's just not their place Nov 05 14:45:58 it's not us, it's the newbies jumping way too deep too fast Nov 05 14:46:12 and for a reason Nov 05 14:46:18 usually when I ask a question, I get an infuriatingly close, but incomplete, answer :\ Nov 05 14:46:22 but I take what I can get Nov 05 14:46:25 and I learn from it Nov 05 14:46:26 exactly Zharf , but WE still get the bad rep Nov 05 14:46:50 joshkovach, that is exactly it... YOU are a dev, noobs are not Nov 05 14:47:26 We RTFM, try to understand, scratch our heads THEN ask the question. Nov 05 14:47:43 with 12 years development experience, android was incredibly easy to jump into around 4 years ago Nov 05 14:47:45 bah, would have been quicker to start a channel than talk about it :D Nov 05 14:48:10 Zharf, ever maintained an app and then been blamed by users for corrupting some data, only to later learn users did it to themselves? but you still get blamed, because USERS ARE NEVER WRONG Nov 05 14:48:10 Yeah, Android is a breeze :) Nov 05 14:48:15 same with noobs Nov 05 14:48:34 ravilov, I don't deal with users Nov 05 14:48:42 I don't care about users Nov 05 14:48:50 Well, it was a breeze, now it's patch over patch over patch :-/ Nov 05 14:49:06 oh I forgot... you don't care about the real world :p Nov 05 14:49:19 What is this "real world" you speak of? Nov 05 14:49:41 The Great Outside Nov 05 14:49:44 I live in The Matrix!!! :D hahaha I am The One! Nov 05 14:49:58 ok, that was lame. Nov 05 14:50:05 * MikeWallaceDev slaps himself Nov 05 14:50:26 what's a good way to store variables for a gradle build outside of source control? i.e. signingConfigs, etc Nov 05 14:50:33 most people who try my apps on google play can't figure out that it's split into a service apk and client apk, frankly I just laugh at them silently and ignore them Nov 05 14:51:24 Zharf, the problem with that is the 1*s :( Nov 05 14:51:45 Many people didn't understand my app Focus, I had to make a user guide video Nov 05 14:52:10 my average is 4.6 though Nov 05 14:52:11 hi! we have a problem, but dont understand it. have a main class, and in onCreate method have an Init.java singleton class. we see from the logs the init.java (at start)is ran once, but the onCreate method ran twice. is possible? Nov 05 14:52:12 so, you would say this is wrong way to store categories? http://pastebin.com/VkVx1fHq Nov 05 14:52:28 so my ratings are mostly 5*s and 1*s of people that didn't get it... Nov 05 14:52:28 anyone can help ? Nov 05 14:55:02 hi all, I get this message as I run my project: Errors running builder 'Android Package Builder' on project 'helloWorld'. sun/security/x509/X500Name Nov 05 14:55:17 but then I have around 6k downloads anyway... around 400 installs has been about constant for the past year or so Nov 05 14:55:35 so the semihigh rating isn't polluted Nov 05 14:57:34 My pollution is low ratings. "Your app sucks, crashed!!" 1*, fix the crash, never comes back to update the rating. Nov 05 14:57:52 yep because they uninstalled it Nov 05 14:57:52 well... no.. I don't crash :D Nov 05 14:58:06 mostly, don't know how to use Nov 05 14:58:14 exactly... Nov 05 14:58:42 I've only rated one app on play, gave it one star for locking i nto portrait and being heavily text input based Nov 05 14:58:47 I don't mind the 1*, I just wish that it would be updated when fixed... Nov 05 14:58:52 play store should probably lower the weight of uninstalled reviews Nov 05 14:58:57 Did anyone use Android Asset Studio lately ? Nov 05 14:58:59 pfn, nice Nov 05 14:59:08 nowadays I can't rate on play store because they requre g+ Nov 05 14:59:22 MikeWallaceDev, I wish... Nov 05 14:59:23 how come you're not on G+? Nov 05 14:59:33 it's the only site I use :) Nov 05 14:59:37 Stupid Facebook. Nov 05 14:59:41 g+ is easy, get on it Nov 05 14:59:44 I don't use non-irc social networks Nov 05 14:59:54 i have some users with an old version that keep crashing sometimes, and they still use it instead update Nov 05 14:59:57 what's to use, just sign up Nov 05 15:00:03 oh, black and white CRT, I understand. Nov 05 15:00:04 pfn, no Nov 05 15:00:23 the fact that they force it on people is enough to never sign up Nov 05 15:00:36 oh brother Nov 05 15:00:46 It's a login! Nov 05 15:01:04 there's nothing to sign up Nov 05 15:01:04 so is google account, why would I need another Nov 05 15:01:17 what's a Google account? Nov 05 15:01:17 but whatever Nov 05 15:01:23 (method to login) Nov 05 15:01:25 GMail? Nov 05 15:01:39 do you mean GMail? Nov 05 15:01:41 just activate g+ on your google signin Nov 05 15:01:43 done Nov 05 15:01:52 you don't even have to use it Nov 05 15:02:07 pfn, I know it's easy but I don't see why it's needed Nov 05 15:02:17 does it matter Nov 05 15:02:40 it's a yet another useless social entwork piece of crap that's trying to beat fecesbook by forcing itself on people Nov 05 15:02:40 The thing to think about here Zharf , is that Google doesn't give a flaming shit if YOU sign up or not. The only one losing out here is you... Nov 05 15:03:14 How is it forcing itself on people?? I never did understand that statement Nov 05 15:03:26 MikeWallaceDev, what am I losing though? Nov 05 15:04:56 G+ Comments :) Ratings, Play, My cat posts, login on different sites... Nov 05 15:05:06 (joke, I don't like cats.) Nov 05 15:05:25 login on sites tyhat I don't use? useful Nov 05 15:05:29 but whatever man Nov 05 15:05:44 only android apps I use are my own or my friend's Nov 05 15:05:59 (xmms2 and irssi connectbot) Nov 05 15:06:13 shameful plug noted Nov 05 15:06:14 :D Nov 05 15:06:26 no, shameless plug :D Nov 05 15:07:24 I also don't use other common services like github Nov 05 15:07:45 got my own server with cgit Nov 05 15:08:28 Seriously Zharf, I'm all about calling Google out when they do shit. And I'm also all about not using bullshit. But you're the only one losing out here... Your vandetta serves no purpose. Nov 05 15:08:52 Even if it gives you only 1% good, why not take it? Nov 05 15:09:15 I see no benefit at all in it Nov 05 15:09:26 then we're done here :) Nov 05 15:09:47 have to stop arguing anyway, my fingers are freezing Nov 05 15:09:52 hahaha Nov 05 15:12:01 I have a stacktrace with a crash, that I know is my fault, but that doesn't have any of my functions in it. It's a different thread and only has Android calls. Bitch. Nov 05 15:17:30 MikeWallaceDev: i debug for money! Nov 05 15:17:51 monsti I debug for food! Nov 05 15:17:59 Hi all. I have a menu.xml with 3 items, on my device I see them all 3. But on another device there are only 2 items visible, what can be the problem? Nov 05 15:18:03 MikeWallaceDev, yeah, I hate those, Nov 05 15:18:17 app code causing framework crashes sucks hard Nov 05 15:18:41 pfn: there is one more Nov 05 15:19:02 app code causing no crashes on my devices but on some devices... **** BEGIN LOGGING AT Wed Nov 05 15:22:11 2014 Nov 05 15:23:48 monsti, ... that's what I have, the logcat is in a crash report ;) Nov 05 15:24:19 so yeah... good luck with that. Nov 05 15:24:53 I might just have to push a new version with only log.d added :-/ Nov 05 15:27:33 I'm having a hell of a time getting elevation to show in different views :/ Nov 05 15:35:23 hello hello Nov 05 15:36:01 So is it worth it to also use amazon to distribute android apps or is that a waste of time if you are using google Play ? Nov 05 15:36:21 Amazon generates a bit of money as well Nov 05 15:36:25 not as much as Play though Nov 05 15:36:39 distribute in china :D Nov 05 15:36:46 it does ? :D Nov 05 15:36:50 every bit counts. Nov 05 15:36:57 (I have to admit my apps don't actually run on Amazon devices though, so I only get paid for people who use Amazon on non-Amazon devices, which is more significant than I had thought) Nov 05 15:36:59 in china my china Nov 05 15:37:30 so why does your apps not run on Amazon devices ? Nov 05 15:37:58 Will my apps run on Amazon devices ? Nov 05 15:38:01 not sure about this.... Nov 05 15:38:05 :\ Nov 05 15:38:17 because then they don't have to go through as rigorous testing, and the Amazon people have pissed me off enough that I rather not talk to them at all if possible Nov 05 15:38:25 do you use google services/maps/etc? Then no. Otherwise, maybe. Nov 05 15:38:32 they redefine the meaning of "pushy" Nov 05 15:39:17 I don't think i've even seen a fire or an amazon kindle tablet in person :P Nov 05 15:39:34 if I'd use server in separate process Nov 05 15:39:35 Some people don't like to lift a finger for another ( unless its the middle finger ), they like to sit around in a coma and call it earning money. Nov 05 15:39:48 or doing their job. Nov 05 15:39:55 can I make network calls without creating thread ? Nov 05 15:40:21 gordon_: can you do it w/out tripping the network on main exception? probably. Should you? almost definitely not. Use a thread. Nov 05 15:40:40 gordon, I think i've done that without a thread before. Or tried. And ended up just using a thread rather. Nov 05 15:40:42 ok, thanks for tip Nov 05 15:41:09 tried to learn new language Nov 05 15:41:13 If you arbitrarily block a service you stand a moderately good chance of screwing up other things which might be expecting the service to respond Nov 05 15:41:17 ended up with threads and services Nov 05 15:41:22 so I've this piece of code running in a runnable every 5 seconds - http://pastie.org/private/ic25tzgvlie5wtqnlnouxa - the thing is I'm using adapter.notifyDataSetChanged() - but even then my listview scroll position is lost and not maintained. so the listview keeps on coming to the bottom as soon as refreshed. how do I solve this problem? Nov 05 15:41:36 Even if you don't get explicitly killed by android for doing networking, you've got a moderately good chance of having real issues Nov 05 15:42:18 dragorn: well if normaly it's the same process Nov 05 15:42:29 but in new process I though it might be for that case Nov 05 15:42:40 gordon_: at the risk of sending you far down a rabbithole when you're new, you could also look at something like eventbus or otto; simple async notification across objects Nov 05 15:42:43 better ask than doing stupid things, right? ;) Nov 05 15:43:05 dragorn: I want to write xmpp chat ;) Nov 05 15:43:17 service is first thing which came to my mind Nov 05 15:43:24 gordon_: you've gained yourself a bunch of other problems with doing a separate process thread, too :P like not being able to directly pass bundles Nov 05 15:43:26 any advantages of xmpp? Nov 05 15:43:33 shmoon_: vs what? Nov 05 15:44:00 dragorn: I'm not new, I've never make service before Nov 05 15:44:03 *made Nov 05 15:44:04 http i guess, basically i have never used this xmpp thing. on the web I used long polling (http) and websockets. Nov 05 15:44:19 i am trying to build a chat functionality in my android app that i am developing Nov 05 15:44:29 currently doing a hack where every 5seconds it refreshes (data comes from parse.com) Nov 05 15:44:44 gordon_: your model would generally be, holding the xmpp connection in a service, doing all the network IO in threads in that service, and then doing callbacks to your UI when new data arrives. Nov 05 15:45:05 gordon_: you can replace callbacks with eventbus/otto if you feel daring, but if it's one of your first projects, maybe don't be daring. Nov 05 15:46:45 so if I use google-play-services.jar in my app is that some problem with amazon devices ? Nov 05 15:46:47 dragorn: well I want service with thread which runs inside it and call methods with bindService Nov 05 15:46:51 or what would be exactly ? Nov 05 15:47:05 sorry that was big mind shortcut :D Nov 05 15:47:15 I cant read and write at the same time Nov 05 15:47:31 does anyone know if moveImage transition is the same as changeImageTransform? Nov 05 15:48:48 anyone know how to use the space with android:digits=? Nov 05 15:48:55 without using textwatcher? is there a way to allow space? Nov 05 15:49:01 nvm, this is pretty helpful https://developer.android.com/sdk/api_diff/preview-21/changes.html Nov 05 15:50:17 Unknown0BC: if you use any of the google services it (almost definitely) won't work on a non-google device. The amazon branded devices (fire, kindle tab, etc) don't have any google services. So if you use location services, maps, play/games services, etc, you'll break. Nov 05 15:51:52 * Unknown0BC blinks Nov 05 15:52:09 oh, also push notifications / gcm Nov 05 15:52:28 I will be looking into that. Nov 05 15:52:54 generally if you need an API key to do something, it probably won't work on a non-google device Nov 05 15:54:13 in the case of maps make calls to their javascript api Nov 05 15:56:19 anyone know how to run ADB wirelessly? all these cords are bothering th ehell out of me Nov 05 15:56:24 maybe over TCPIP? Nov 05 15:57:29 tricknology_: try putting "adb wifi" into Bing Nov 05 15:57:42 did you really just recommend bing>? Nov 05 15:57:55 http://stackoverflow.com/questions/14358882/connecting-adb-using-wifi-for-non-rooted-device Nov 05 15:58:32 well, I assumed there was a reason why you couldn't use Google, or you would have... Nov 05 15:58:42 haha Nov 05 15:58:57 hah Nov 05 15:58:59 http://www.grossmanburncenter.com/ Nov 05 15:59:17 good burn Nov 05 16:02:22 dragorn, does that mean that the latest admob/google adserving is not going to work ? (it requires google-services jar ) Nov 05 16:02:33 dragorn, on amazon devices. Nov 05 16:03:56 Unknown0BC: I'd be surprised if it did, but I don't have one Nov 05 16:05:47 Can I use the built-in security stuff (unblock pattern, face recognition, etc) in my own app to block sections of it to non authorized users? Nov 05 16:05:54 or is it a bad idea? Nov 05 16:08:46 I don't think you can access the phone pin/pw stuff. There are some third-party implementations of the lock pattern and such you could use Nov 05 16:08:53 Wow, moving from support-v4 and appcompat-v7 to just use the normal Fragments / Activites is harder than I expected. If you've got nested fragments you have to bump to minSdkVersion 17 or it won't work. And nested fragments are borked in the support library - talk about catch 22 Nov 05 16:09:08 dragorn: oh, great, that would work too Nov 05 16:09:25 My gf needs to store some notes / images under a pin/pw so I thought about the built-in functions Nov 05 16:09:25 Foxandxss: i think android-arsenal.com Nov 05 16:09:42 Nice site Nov 05 16:09:43 Foxandxss: they've got a repo of different widgets you can use Nov 05 16:10:28 this of course raises the question of how much actual security you need - are you protecting it from a classmate using the phone or something, or does it actually have to have real security from someone attacking the phone Nov 05 16:10:29 yeah, thank you Nov 05 16:10:52 nah, no one messing around with her stuff Nov 05 16:10:56 parents / friends Nov 05 16:11:17 Hi, I have a webview and a series of buttons that change the content of said webview. When the buttons are pressed, the webview fades out, loads content, and fades back in again, but occasionally it still displayed the old content until touched. Anyone know a way to force it to redraw the content? (btw invalidate() doesn't appear to be working) Nov 05 16:11:34 yeah; as just a gatekeeper you can do something like that, just store the data inside the app storage and not in the media store / on the external storage. Won't prevent someone w/ root going in, but should do the trick. Nov 05 16:12:39 dragorn: yes, that is the idea, won't prevent root users going on, but for her use case, taht is not an issue Nov 05 16:12:53 Foxandxss: cool. Nov 05 16:13:33 kewl cheers \0 Nov 05 16:13:44 android-dev571: stupid hacky way, expand a new webview while its faded out and bring in the new one? Nov 05 16:13:52 will look for a pin/pw solution or build my own, shouldn't be any hard Nov 05 16:14:13 Foxandxss: I know there's a pattern widget out there that cones the pattern unlock Nov 05 16:14:31 when I said pattern, I am happy with a 4 digit password :P Nov 05 16:14:49 Foxandxss: A pin unlock wouldn't be hard; if you want something that looks very nice take a look at 'betterpickers'; i'm not sure if they have a pure numerical input or if they're exclusively time-focused Nov 05 16:15:40 for picking time, date, numbers, and other things. Nov 05 16:15:47 so it is an option Nov 05 16:16:47 do yall know any other good open source app examples like the IO 2014 app? Nov 05 16:17:06 Foxandxss: https://github.com/coderkiss/AppLock Nov 05 16:17:52 oh, cool Nov 05 16:18:04 mattblang: square & jake wharton release a bunch of demo apps for their libraries which are often useful. there's also giant stuff, like K9, which is open Nov 05 16:18:29 square & jake stuff is really really awesome stuff Nov 05 16:20:43 Now I need to learn android dev tho, heh Nov 05 16:20:49 if you say his name three times he appears like beetlejuice Nov 05 16:20:49 Does anyone want a 6month commonsware code? Nov 05 16:22:26 well, everybody knows android then :P Nov 05 16:22:55 i mean i'd take one if you were just giving it away Nov 05 16:23:09 I've paid for one a couple of times, never really got round to using it Nov 05 16:23:37 Leeds: awesome resource but can scare you out pretty quickly tho Nov 05 16:24:11 I recently reinstalled Android Studio on Mac OS, and now it can't find the android SDK. If I go into module settings for my project the SDK is blank, and if I put in the SDK it just ignores it without any errors. Anyone have any advise on how to correct this? Nov 05 16:24:18 wmoran: this one Nov 05 16:24:53 mevans10: I would like to give one away to someone who is actually going to read it :P Nov 05 16:25:28 wmoran: The new Android Studio can't have the android sdk in its program folder Nov 05 16:25:49 you need to install the android sdk manually and then point android studio to it Nov 05 16:25:57 there are places where i read root view is a framelayout, then places that say rootview is something called decorview. which one is true and what is decorview ? :S Nov 05 16:26:12 android studio is an amazing tool, it gets a lot of love Nov 05 16:26:28 does it? Nov 05 16:26:56 yes Nov 05 16:27:39 I like it more than I like eclipse anyhow Nov 05 16:27:55 every little update brings lot of new stuff Nov 05 16:28:08 gman23, I know. I first tried moving it to the Applications folder as recommended, when that didn't work, I completely uninstalled and reinstalled it. Nov 05 16:28:15 Exact same problem Nov 05 16:28:31 I just love tools Nov 05 16:29:32 oh, genymotion doesn't have lollipop support yet? I guess it will have soon since the source went out recently Nov 05 16:30:26 Foxandxss: can't promise i would :P Nov 05 16:30:34 just never read it before Nov 05 16:31:42 gman23, I mean, consider I did a new install of AS and checked out a previous project to go to work on, but am getting this error. Nov 05 16:34:33 um Nov 05 16:34:43 I don't know then Nov 05 16:34:50 was pretty easy for me, but I'm on a Windows machine Nov 05 16:35:07 gman23, yeah ... mystified myself, you figure if a complete filure like this were common, people would be screaming Nov 05 16:35:18 But I don't know what I did to cause it Nov 05 16:35:20 I don't think it's common Nov 05 16:36:31 wmoran works fine for me Nov 05 16:36:42 and lots of others in the chan with OSX :) Nov 05 16:37:41 StingRay_, I know ... that's why I'm hoping someone can suggest what I've done to hose myself Nov 05 16:37:57 well I dont know what the error is really Nov 05 16:38:10 what exactly is the problem Nov 05 16:38:54 Hey StingRay_ , what's up bud? :) Nov 05 16:38:57 AS doesn't recognize the SDK. If I open module properties the SDK location is blank. If I select the location, it just ignores it. Nov 05 16:39:16 MikeWallaceDev heya :) Nov 05 16:39:22 wmoran what location ? Nov 05 16:39:44 /Applications Nov 05 16:40:10 I mean where have you got the SDK ? Nov 05 16:40:17 hi Nov 05 16:40:20 /Applications Nov 05 16:40:23 Like I said Nov 05 16:40:28 I just put it in /Applications Nov 05 16:40:45 where you not just told to install the sdk separate to AS ? Nov 05 16:40:47 Why Google in iosched doesn't provide all variant of drawables, they provide only xxhdpi? Nov 05 16:41:00 StingRay_, I did Nov 05 16:41:00 /Applications/android-sdk ? Nov 05 16:41:44 gman23, yes, but technically, /Applications/android-sdk-macosx Nov 05 16:41:52 Did you copy the sdk folder? Nov 05 16:41:55 ok Nov 05 16:41:59 wmoran put it in a profile path that you have access to Nov 05 16:42:14 What kind of "access" are you referring to? Nov 05 16:42:25 Let me try moving it around arbitrarily Nov 05 16:42:34 well no Nov 05 16:42:37 dragorn, foxandxss thanks for the suggestions! Nov 05 16:42:43 /Users/you/myDev etc Nov 05 16:43:07 i mean absolute permissions Nov 05 16:43:14 not access, Nov 05 16:43:37 Well, that worked ... thanks Nov 05 16:43:50 :) Nov 05 16:43:52 What kind of fucked up magic Apple permissions were missing? Nov 05 16:44:34 execute :) Nov 05 16:44:45 EXTERMINATE Nov 05 16:44:49 there are many bins from the sdk AS needs Nov 05 16:44:50 :) Nov 05 16:44:51 That will be nice if I want to allow other users to use this machine ... I can just copy the SDK around for each user ... grr ... Nov 05 16:45:26 Anyway, thanks for the help ... I'm used to FreeBSD/Linux machines that don't hide stuff from you like Macintosh does Nov 05 16:45:59 yw, and not really hidden, just more…erm…dumb proof rather than pro friendly Nov 05 16:46:20 wmoran, linux can be installed on macs too Nov 05 16:46:31 osx is for people who cant really work computers :) most of the time Nov 05 16:46:37 like my parents :) Nov 05 16:46:50 StingRay_, and you apparently :p Nov 05 16:47:22 well I'm not a fanboy…put it that way Nov 05 16:47:58 wait, your parents are?? Nov 05 16:48:00 actually not a fan of windows or linux or osx or bsd…. dam… I think i hate EVERYTHING 0.0 Nov 05 16:48:24 well my mother cant use windows and can somehow screw her machine up Nov 05 16:48:27 didn't mention android, so there's that... Nov 05 16:48:38 me replacing it with a macbook means I save hours on the phone :) Nov 05 16:49:03 most of my family use Macs and iThings, except I got my dad a cheap windows laptop for his birthday to stop him trying to work on his iPad... my mum agreed many years ago that she'd happily use Linux, if I was less than 6000 miles away to help her with it, which seemed fair Nov 05 16:49:45 ... Nov 05 16:49:55 less than 6000 miles aways is a very low bar to meet Nov 05 16:50:45 dammit, Google says 5942 miles - although I guess that depends on where exactly it's measuring from/to Nov 05 16:51:33 away* Nov 05 16:52:01 I might have to move east by about 60 miles Nov 05 16:52:43 pick the car when she calls and you say, sorry, bit far Nov 05 16:53:13 er... pick the car? Nov 05 16:53:29 to drive 60 miles away Nov 05 16:54:17 ok... anyway, point is that I'm a bit far away for convenient support, hence she happily uses a Mac and I happily don't have to support it Nov 05 16:55:01 yeah, mac doesn't give problems normally Nov 05 16:56:50 nexus 9 just got here :P Nov 05 16:56:56 yay! Nov 05 16:57:05 still debating whether to buy or not Nov 05 16:57:06 \o/ Nov 05 16:57:26 mostly, I think I'd like to hold one in my hands first Nov 05 16:58:01 I always think 4:3 is good for anything other than movies etc Nov 05 17:02:49 N9 got some quite defeating and disappointing reviews I hear Nov 05 17:03:09 either it's crappy or people expected too much Nov 05 17:03:38 my problem is that most of the reviews basically start with "so we're going to compare this with the ipad air, which we love..." Nov 05 17:04:27 I want to compare it with the tab s 8.4 Nov 05 17:04:52 I want to compare it with what I have right now Nov 05 17:04:56 * ravilov doesn't own a tablet Nov 05 17:05:46 I own... a tab s 8.4. And a few N7s. And a Tab 10.1. And a couple of random Chinese things Nov 05 17:06:44 made in China is everywhere :) Nov 05 17:07:01 wow, you were not kidding when you said big boys' toys is your game Nov 05 17:07:09 s/is/are/ Nov 05 17:07:33 Does IntelliJ 14 include everything from Android Studio? :o http://www.jetbrains.com/idea/whatsnew/?v14 Nov 05 17:08:01 they're not actually that expensive, in the scheme of things - if it's $350 a year, say, it's a hell of a lot cheaper than running a car, or paying European taxes, or many other things I don't do Nov 05 17:08:29 except $475 for the N9 :) Nov 05 17:08:53 could still put that money aside and in a few years buy a house for cash :p Nov 05 17:09:00 (not really but still) Nov 05 17:09:02 I have a flat already Nov 05 17:09:35 fully paid for? Nov 05 17:09:38 and that would be many many years... Nov 05 17:09:41 er, paid off* Nov 05 17:10:03 not paid off, but the rent is more the double the mortgage at this point... I don't live in it Nov 05 17:10:21 dunno, I used to be just like that, just looking what's the next hi-tech toy I can buy Nov 05 17:10:35 now not a day goes by that I don't regret not putting the money aside Nov 05 17:12:39 I've got some money aside... enough that the cost of a gadget or two doesn't make much difference... Nov 05 17:14:20 I guess that depends on your plans and ambitions. mine are to move to the US, so every little penny counts ;) Nov 05 17:14:52 I already emigrated once :) Nov 05 17:15:04 +1 Eclipse crash for the day Nov 05 17:17:19 yeah, away from your mom's computer, I know :p Nov 05 17:18:50 we’re goign to need to open up a #burnunit Nov 05 17:19:37 http://goo.gl/UfzZPr Nov 05 17:23:48 what is this com.coffestainstudios.goatsimulator? Nov 05 17:24:26 it's a game - bit of a cult favourite, came out for Android a couple of months ago Nov 05 17:24:35 it is, quite literally, a goat simulator Nov 05 17:24:42 lol Nov 05 17:25:08 and the SDK needs to know about its existence...why? Nov 05 17:25:17 in every gallery app there is the "set as" dialog that give you the option to set the image as - *wallpaper *contact image... What is the intent for that? Nov 05 17:25:21 talk about weird easter eggs Nov 05 17:25:54 from the app description: "Disclaimer: Goat Simulator is a completely stupid game and, to be honest, you should probably spend your money on something else, such as a hula hoop, a pile of bricks, or maybe pool your money together with your friends and buy a real goat." Nov 05 17:26:09 Poor goat ;_; Nov 05 17:26:29 yoavst, android.intent.action.SET_WALLPAPER Nov 05 17:26:39 what... im adding a view from code to a LinearLayout that has a child defined in XML, if i add the view with index 0 it'll work but if i set it to 1, as should be another child, it will display an empty space Nov 05 17:26:53 ravilov: as the link explains, isUserAGoat is a joke call that's been in the SDK for a couple of years... someone updated it for L to actually check if maybe, the user is actually a goat sometimes Nov 05 17:27:09 Leeds, lol I see Nov 05 17:27:13 weird google is weird Nov 05 17:27:32 ravilov: in the doc it doesn't say how to put the image to the intent Nov 05 17:27:53 they used to put jokes directly in the SDK changelogs, but presumably someone got upset, so now they have to hide them better Nov 05 17:27:54 same as for android.intent.action.SEND Nov 05 17:28:08 EXTRA_STREAM? Nov 05 17:28:24 wait, no sorry Nov 05 17:28:31 android.intent.action.VIEW Nov 05 17:29:27 also note some of the constants here... http://developer.android.com/reference/android/hardware/SensorManager.html Nov 05 17:30:58 ravilov: sorry, didnt get it Nov 05 17:37:29 oh who thought that orientation was that important hehe Nov 05 17:37:44 why bindService(intent, mConnection, Context.BIND_AUTO_CREATE) calls onCreate but not onStart ? Nov 05 18:02:08 wow man, I only see a few people from back in the day in here Nov 05 18:10:50 anyone familiar with the cafebabe build errors? Nov 05 18:11:42 I swear it was working earlier Nov 05 18:12:04 using compileOptions sourceCompatability JavaVersion.VERSION_1_8 Nov 05 18:12:18 if I remove those, it will build fine, apparently Nov 05 18:14:35 UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version Nov 05 18:16:32 Nexus 6 stock gone again already Nov 05 18:16:41 damn Nov 05 18:17:17 not even released here yet so not really bothered :) Nov 05 18:17:32 actually not all that bothered with phablets tbh Nov 05 18:17:33 eh... I plan to change phone so.. Nov 05 18:17:39 I saw 32gb blue in stock for about a minute, then i kept refreshing on the white one. Finally got add to cart, clicked it and then went to a page saying my cart was empty. refreshed again and got out of inventory Nov 05 18:18:00 birbeck: which country ? Nov 05 18:18:25 got a nexus 6 order owoo Nov 05 18:18:56 gordon_: US Nov 05 18:19:10 mikedg: You ordered one? Nov 05 18:19:27 yeah, they just showed up Nov 05 18:19:34 on the play store Nov 05 18:19:48 Yeah, gone already Nov 05 18:19:55 lucky you Nov 05 18:20:15 I could have gotten midnight blue Nov 05 18:21:04 D/Retrofit﹕ java.lang.NoSuchMethodError: com.squareup.okhttp.OkHttpClient.open - Anyone know why I am getting this error so confused Nov 05 18:21:22 google leaves me clueless as well Nov 05 18:21:22 that method doesn't exist anymore Nov 05 18:21:41 hence, "no such method" Nov 05 18:23:06 intellij 14 Nov 05 18:23:21 joshkovach: dx can't handle class files targeted at Java 8, use 7 Nov 05 18:23:34 JakeWharton: ok, thanks Nov 05 18:24:00 I'd use 6... Nov 05 18:24:08 why? Nov 05 18:24:23 will it work on ICS / jelly bean ? Nov 05 18:24:24 do you use an icebox too? Nov 05 18:24:31 yes Nov 05 18:24:36 oh Nov 05 18:24:40 didnt know that Nov 05 18:25:08 since when dx can do that ? Nov 05 18:25:18 since build tools 17 or 18 Nov 05 18:25:19 or I'm messing things up now Nov 05 18:25:25 about a year Nov 05 18:25:42 so I can use java7 normally for android or it's not the same ? Nov 05 18:25:57 you can use the language features Nov 05 18:26:05 the runtime features are only supported on KitKat+ Nov 05 18:26:21 ok, so I messed up a little bit Nov 05 18:26:22 thanks Nov 05 18:27:12 if it's not one thing it's another... anyone know why genymotion devices wouldn't show up in Android Studio list when they would show up before? Nov 05 18:28:04 when I am calling that method... http://pastebin.com/z992BnLP in retrofit though? Nov 05 18:28:23 your probably just on some ancient version of Retrofit Nov 05 18:28:26 *you're Nov 05 18:28:31 (damnit) Nov 05 18:28:33 yeah i am Nov 05 18:28:41 from last year Nov 05 18:29:26 just subclass UrlConnectionClient and override the prepareRequest method (or something) and use the new OkHttps APIs Nov 05 18:29:28 or upgrade Nov 05 18:29:58 v1.7.1 is looking mighty sexy Nov 05 18:30:39 I was on 1.4.1 hah Nov 05 18:31:49 well that did it, upgrading it thanks Nov 05 18:46:07 Hey guys, I add some images into my drawable and I have them display in my imageview, and I set my image view the same resolution as the image, but when the image displays its slightly blurry its not stretched or anything. Nov 05 18:46:19 What could be the problem to have the image display more crisp? Nov 05 18:46:21 resolution? Nov 05 18:46:32 use wrap_content not set widths and heights Nov 05 18:46:44 dp (display pixels) are going to be different than actual pixels Nov 05 18:47:42 wrap content? ok I have tried both dp and sp but you say wrap content would be better? Ok. I will give it a shot. Nov 05 18:49:08 Ok I put the widt and height to wrap content but now it wont display the image. Nov 05 18:51:52 I just got a 32GB White! Nov 05 18:57:24 those of you using recyclerview & action modes, is this the standard way of doing it? http://www.grokkingandroid.com/statelistdrawables-for-recyclerview-selection/ Nov 05 19:07:01 about IntelliJ 14 : "I wonder if HiDPI support for Linux (and Windows) finally works." Nov 05 19:07:13 "Looks like Oracle is not going to support it out of the box in upcoming JREs, so we're going to do it by ourselves in our custom jdk." Nov 05 19:07:21 ffuuu Nov 05 19:13:16 Question for the java gurus: In an abstract class, can a method return an object that has the type of the subclass class implementation? Nov 05 19:13:36 yes, you need to use generics though Nov 05 19:14:16 abstract class Foo> {} Nov 05 19:14:16 class Bar extends Foo{} Nov 05 19:15:01 that'll force you to do an unsafe cast, if you want a safe version it's a bit longer... Nov 05 19:15:26 Would prefer to not have to cast. Is that in the butterknife source? Nov 05 19:15:35 no Nov 05 19:15:44 one sec i'll whip up the safe cast version Nov 05 19:16:32 Cool. I will be using it to extend the Model class in ActiveAndroid ORM if you are familiar with it. Nov 05 19:16:56 https://www.irccloud.com/pastebin/NR80Jvy6 Nov 05 19:18:05 Bar constructor should be public, but you get the idea Nov 05 19:18:14 test Nov 05 19:18:41 Thanks, I’ll try it out. Nov 05 19:25:09 hi everyone Nov 05 19:25:21 I have a question about CardScrollView Nov 05 19:26:27 if I am in an activity with a CardScrollView and I hold two fingers down on glass, the view zooms out and I see many cards. If I depress my two fingers, the view zooms back in to the card. Nov 05 19:26:42 how can I capture those events? Nov 05 19:27:03 it seems like they are a combination of OnDown and OnTwoLongPress events Nov 05 19:27:39 I want to do something in my activity when it zooms out, and then again when it zooms back in Nov 05 19:30:52 JacobTabak: around? Nov 05 19:35:42 evenin Nov 05 19:41:31 Mavrik where you based ? Nov 05 19:41:52 yurop Nov 05 19:42:28 JakeWharton hello Nov 05 19:42:33 where abouts lol Nov 05 19:42:44 OpenGL seems like there is loads to learn. will I not achieve a speedup unless I really get into it? Nov 05 19:42:50 JacobTabak: i'm updating our unit testing stuff. can I see your latest to build off of? Nov 05 19:43:18 for the java module? Nov 05 19:43:20 yeah Nov 05 19:43:21 ya Nov 05 19:43:47 Isn't SufaceView fast enough for a ball in maze game? 30 fps doesnt cut it. I need 60 but rendering takes 17-19 ms on a Samsung Galaxy S4 mini. Nov 05 19:45:34 S4 mini is a shitty device Nov 05 19:45:44 but 16ms should be achievable, did you check systrace? Nov 05 19:45:54 if I want an asynctask to hold the UI.. should I put a runnable in there and runOnUiThread(runnable)? Nov 05 19:46:02 "hold"? Nov 05 19:46:15 eh, i’ll describe it a bit better Nov 05 19:46:20 :) Nov 05 19:46:49 JakeWharton http://pastebin.com/uNZMjmCU Nov 05 19:46:50 you're already scaring us all with Asynctask Nov 05 19:47:22 JacobTabak: cool. i'll send you mine what i'm done if i make any improvements. thanks Nov 05 19:47:23 https://imgflip.com/i/du72p Nov 05 19:47:25 pretty much. Nov 05 19:47:29 thx Nov 05 19:47:50 i have this device that uses a method in an SDK.. well there is a thread in there that does stupid thing so that if I hit the back button from activity B to A, then go back to B, that thread is still running and problems occur.. so to circumvent this, I want to make a countdown timer that “delays” the back button press for whoever much time is left in the thread Nov 05 19:47:50 i also couldnt figure out how to exclude dexmaker, but i don't think you ahve that issue Nov 05 19:47:57 so i just remove the dep from teh main module if i need to debug in the IDE Nov 05 19:48:04 works fine from cli, though Nov 05 19:48:14 probably the longest sentence I’ve ever written in here. Nov 05 19:49:34 I lioke the asynctask because it has nice callbacks. Nov 05 19:49:36 like* Nov 05 19:50:16 ^@JakeWharton Nov 05 19:53:08 tricknology_ what if there is a prob and it never finishes ? what if I press home ? what if…. :) Nov 05 19:53:42 hehe the thread is on a 10 sec timer. You can’t block the home button anymore so no worries Nov 05 19:54:02 you can’t even catch the home button press anymore Nov 05 19:54:06 liek sense it.. Nov 05 19:54:46 I think there maybe a design flaw in the way you are approaching it though Nov 05 19:54:55 blocking user actions are never a good thing Nov 05 19:55:01 the design flaw is in the SDK Nov 05 19:55:34 the SDK doesnt want to block user actions :) Nov 05 19:55:42 I think it's quite the opposite Nov 05 19:56:09 the mesed up method in the SDK contains a while loop that is on a timer that depends on a value you give it, in my case 10 seconds. it doesnt EVER quit until the time expires, not with a back button press, not anything Nov 05 19:56:21 question on custom xmlns:app settings Nov 05 19:56:22 tricknology: so disassociate it from your activity Nov 05 19:56:23 there should be another flag condition in ther but whatever.. not my code. Nov 05 19:56:35 randomly blocking the back button would make me immediately rage-uninstall an app Nov 05 19:56:36 aaah but the problem is that the user might need it again Nov 05 19:56:49 this is an external device Nov 05 19:56:53 so broker it through a service and present the user a proper async interface Nov 05 19:57:52 if I have builds that modify the applicationId, my app can no longer figure out how to find things defined by xmlns:app scheam Nov 05 19:57:59 schema Nov 05 19:58:13 is there a good/correct way to allow this? Nov 05 19:58:21 if I let it be… then the user hits back and goes back into the activity that starts the device and the device becomes unresponsive.. whatever i do I AUBSOLUTELY need to let that timer on the thread expire Nov 05 19:58:42 truest me, blocking the back button for 10 seconds is not an issue Nov 05 19:58:47 especially for this app Nov 05 19:59:03 it used to be that the back button was blocked COMPLETELY Nov 05 19:59:55 answering my own question: auto-res Nov 05 20:00:03 :D Nov 05 20:00:27 res-auto Nov 05 20:00:38 I’m just going to turn by ASYNC task into a runnable and runOnUiThread() Nov 05 20:01:07 * StingRay_ mind blown Nov 05 20:01:49 With the Android SDK do I need to download all of the SDK Platforms or do I just need the latest one? Nov 05 20:02:32 I'm building an app with minimum API 15 Nov 05 20:02:43 So do I need to download every SDK platform between 15 and 21? Nov 05 20:03:57 no, you need the one you're compiling with. Nov 05 20:05:45 If I want a system image do I need the SDK Platform for that version to run the emulator? Nov 05 20:06:12 well it kinda works.. held the UI alright but now its stuck with a countdown of 1, lol Nov 05 20:07:34 has there been any progress with gradle+android-testing since I last bugged everyone about it? Nov 05 20:08:23 hahahahaha no Nov 05 20:08:29 k, awesome Nov 05 20:08:38 not me anyway, maybe JacobTabak, lol Nov 05 20:08:40 I gave up Nov 05 20:08:48 back to Eclipse.. Mavericks even.. Nov 05 20:08:54 I inherited an android app that was building using maven, that seems to have a test suite Nov 05 20:09:07 there's absolutely no issue testing android with gradle Nov 05 20:09:11 I'm working on migrating it to gradle Nov 05 20:09:17 unless you're referring to jvm unit tests Nov 05 20:09:59 I'm not really sure what I'm referring to, but a few months ago when I was trying to get robolectric working on a gradle/android project, it was all headaches and nothing ever seemed to work right Nov 05 20:10:22 yeah it is all headaches Nov 05 20:10:37 joshkovach: yes and it does not support recent android API Nov 05 20:10:38 robolectric by nature is a headache Nov 05 20:11:14 selenium in web development as well Nov 05 20:12:03 so it’s not gradle+android-testing but a roboelectric thing? Nov 05 20:12:03 one thing I understand in android dev. You have to split app to libs and test them independently Nov 05 20:12:17 which is SOOO UGLY Nov 05 20:12:49 you could just create an entire test project which depends on the app you’re testing Nov 05 20:12:58 then test all the methods you like Nov 05 20:14:41 all of my tests use a HelloWorld dummy activity but instead of HelloWorld is says “There has to be a better way to test than this” Nov 05 20:16:09 anyone familiar with this? http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Nov 05 20:16:38 qustion abotu runnables.. when I am on the UI thread and exec a runable, does it go on to the next function/copmmand under it? Nov 05 20:16:50 like runnable.run(); goDoThis() Nov 05 20:17:05 does it wait for runnable to complete or does it just go straight for the goDoThis()? Nov 05 20:17:14 blocking Nov 05 20:17:32 blocking, that is the word, thanks StingRay_ Nov 05 20:21:30 OOh it’s so ugly but it works. runnable with a thread containing a timed while loop that utilizes a synchronized thread.wait(time) Nov 05 20:22:46 *runnabel containing a thread... Nov 05 20:23:29 Mavrik, what is bad about S4 mini? i think it is great as a user Nov 05 20:23:56 before you try to debug on a phone do you normally have to install the drivers for that phone? Nov 05 20:24:07 success, and you're noticing it's not as great as a developer Nov 05 20:24:44 Mavrik, but that could be me not being so great :) Nov 05 20:25:49 anyway, i want 60 fps on lower end devices, not just S4 mini Nov 05 20:26:03 i noticed i need 45+ fps for the game to work well Nov 05 20:26:11 (roughly) Nov 05 20:28:15 I have a project that is currently using the maven-replacer-plugin to change code depending on an env variable... is there an equivalent/accepted way to use code based on the build type in gradle? Nov 05 20:29:15 looks like main/ debug/ release/ and have different versions of the files based on the location? Nov 05 20:29:34 s/location/buildtype Nov 05 20:29:55 am I on the right path? Nov 05 20:31:39 what can i do if im receiving an event after onSaveState is being called so itll lost when system recreates my activity. shoild i call onsave myself? Nov 05 20:32:03 be lost* Nov 05 20:32:20 oh an event from EventBus, so thats the reason Nov 05 20:35:22 app/src/main/java/com/... app/src/debug/java/com/.. app/src/release/java/com/... Nov 05 20:35:39 getting complaints about duplicate class files.... Nov 05 20:35:49 how far off am I? Nov 05 20:44:52 danijoo_ are you around Nov 05 20:45:01 yeah Nov 05 20:45:11 im like a dschinn Nov 05 20:45:19 just call my name or rub my lamp Nov 05 20:46:34 oh im glad i can skip the part of rubbing your lamp Nov 05 20:46:43 im having this issue: Nov 05 20:46:47 what can i do if im receiving an event after onSaveState is being called so itll lost when system recreates my activity. shoild i call onsave myself? Nov 05 20:47:23 posted here too http://stackoverflow.com/questions/26766671/event-from-eventbus-is-lost-received-after-onsaveinstancestate Nov 05 20:47:42 any help? Nov 05 20:47:50 with EventBus Nov 05 20:48:34 mh never used an eventbus Nov 05 20:48:43 cliffreich sounds like bad design … service ? Nov 05 20:48:45 :) Nov 05 20:48:46 but you need some method to retain that handler then.. Nov 05 20:48:58 or maybe use a broadcastreceiver. Nov 05 20:49:15 what are you doing? is this some kind of listener you are attaching in your activity? Nov 05 20:51:41 I'm just doing something like, getWeather... stuff gets weather from internet... post when its ready and there is, after onSave Nov 05 20:52:14 thats exactly what broadcastreceivers are for .. Nov 05 20:52:37 or you detach a listener for it and reattach it in the new instance Nov 05 20:53:26 uh Nov 05 20:53:33 cliffreich, why aren't you using sticky events? Nov 05 20:54:02 send loaded data as a sticky event and it'll get redelivered as soon as the recreated activity registers in onResume Nov 05 20:54:16 if your process gets killed you'll have to fully reload data, but that's usually desireable anyway Nov 05 20:54:30 i'm trying to write my first app using eclipse. I followed a tutorial to the point of "Run As" - Android application.. then I get a message that says there are errors. Where can I see the errors? Nov 05 20:54:45 ohh! Nov 05 20:55:22 wow - after fifteen minutes of looking, all I had to do was ask, then I found it myself. Nov 05 20:55:26 cliffreich: what exactly are you trying to do? Nov 05 20:55:28 Problems... not errors. Nov 05 20:55:45 cliffreich, you'll just have to use registerSticky and postSticky and that's it... and keep in mind that the data will hang around in queue until you clear it manually :) Nov 05 20:56:17 cliffreich: let me restate it, you are doing a network request and then want to display it, but also have it save the information for when your activity goes away and comes back (like navigating to another screen)? Nov 05 20:56:59 herriojr: no he is talking about activity recreation because of config state change Nov 05 20:57:01 or is this something that you need persisted even when you application shuts down? Nov 05 20:57:10 like screen rotation Nov 05 20:57:11 ah, he should just use a fragment then Nov 05 20:57:23 what? Oo Nov 05 20:57:35 setRetainInstance() Nov 05 20:57:45 eclipse is such a disaster Nov 05 20:57:50 ugh, using fragments in that way was always horrible for me Nov 05 20:57:57 Mavrik: same here. Nov 05 20:57:59 especially the way Google recommends headless fragments for that O.o Nov 05 20:58:40 well, you don't necessarily have to use headless fragments Nov 05 20:58:52 Also I think its kinda pointless to only add a fragment to work arround correct configuration state handling. Nov 05 20:59:05 headless fragments are nice when you need to share the data between multiple fragments Nov 05 20:59:15 in that you don't have to requery Nov 05 20:59:27 hey, can anyone recommend an android emulator for linux, that's very lightweight (i can't download the whole sdk) just want to try one app Nov 05 20:59:42 I usually do this with fragmentinterfaces in my activity Nov 05 20:59:42 but in a situation like this, you can do the query within the fragment via AsyncTask and cache it in the Fragment itself Nov 05 21:00:05 danijoo_: yeah, it depends on the use-case Nov 05 21:00:15 AsyncTask, another API that has to die a horrible death :) Nov 05 21:00:50 Mavrik: well, people just need to know to either declare statically or in a separate file Nov 05 21:01:13 herriojr It was about data obtained through EventBus Nov 05 21:01:38 yeah, I was trying to look that up, that's not a standard API is it? (been a while since I did Android) Nov 05 21:01:45 chris_99, genymotion Nov 05 21:02:12 I'm just on here today because I'm feeling nostalgic Nov 05 21:02:25 cheers Afzal! Nov 05 21:02:31 possible to track what kind of ads users click on? Nov 05 21:02:35 using admob Nov 05 21:02:50 and analytics Nov 05 21:03:14 ah, EventBus is a third party api Nov 05 21:04:00 i definitly have to look into eventbus some day Nov 05 21:04:13 everybody seems to use it.. Nov 05 21:04:37 Mavrik, any better alternatives to AsyncTask? From what I know, you can either using AsyncTask or run your own thread with a handler to post once the thread is done Nov 05 21:04:48 danijoo_ I think many use it cause scared of services and binds Nov 05 21:05:05 use* Nov 05 21:05:20 but I think you should use it if design dictates loose couplings etc Nov 05 21:05:37 yeah, it's way less boilerplatey and faster than services Nov 05 21:05:51 also, getting fragments and activities talking between them is significantly easier Nov 05 21:05:55 Afzal: whats wrong with AsyncTasks? Nov 05 21:06:07 it pretty much removes bunch of stupid attach bugs with fragments and issues with tablet layouts Nov 05 21:06:15 danijoo_, nothing really besides the boilerplate Nov 05 21:06:30 Afzal, alot of new libs remove need for asynctasks themselves (e.g. Retrofit, OkHttp, etc.) Nov 05 21:06:41 rxjava ! :D Nov 05 21:06:45 also, I prefer using clear-cut Executors, ExecutorServices and RxJava stuff Nov 05 21:07:10 it makes for a noticably cleaner API, especially when you talk task cancellation, scheduling and prettier callbacks Nov 05 21:07:16 Executor is pretty nice, I will agree with that Nov 05 21:08:21 AsyncTask uses an Executors under the hood mind yo Nov 05 21:08:43 basically, AsyncTask was created early on because people were doing their own threading wrong Nov 05 21:09:25 Mavrik, sure but those libraries do way more than AsyncTask does. Say, you have a list that you need to load from a local database, you'd still pretty much use AsyncTask for it Nov 05 21:09:39 I wouldn't, but ok :) Nov 05 21:09:43 or loaders, but lets not get into that Nov 05 21:09:49 what would you use/recommend? Nov 05 21:09:59 Right now, I'd probably use RxJava Nov 05 21:10:41 I also preferred to use EventBus pattern (dispatch load task on executor, return data as message on eventbus) so I wouldn't have issues across multiple fragments Nov 05 21:11:35 I see Nov 05 21:11:55 I just don't like the visual clutter AsyncTasks cause and the ugly interface you have to use as soon as you have any parameters to them Nov 05 21:12:29 meh.. killed a fuse Nov 05 21:12:52 possible to track what kind of ads users click on? using admob and analytics Nov 05 21:16:58 Could someone provide me with a good website or a working tutorial to help me get a handle on writing android app? Nov 05 21:18:09 ninebits: honestly, check out the android source code for google apps Nov 05 21:18:17 ninebits, training on developer.android.com is pretty much the best starting point Nov 05 21:18:34 it's the most up to date Nov 05 21:18:39 well, i'm pretty frustrated with that Nov 05 21:18:56 it seems like everything i've tried somehow doesn't work Nov 05 21:18:56 I think I successfully migrated this whole thing from maven to gradle Nov 05 21:19:04 ninebits: what's your issue? Nov 05 21:19:15 except tests Nov 05 21:19:20 currently, the hello world tutorial doesn't work Nov 05 21:19:35 but so far, everything's been a huge struggle Nov 05 21:19:35 what's the stack trace? Nov 05 21:19:42 ADB was a nightmare to figure out Nov 05 21:19:43 ninebits, can you elaborate "doesn't work" ? Nov 05 21:19:50 ninebits: every new platform you will pick up will be like that Nov 05 21:19:53 lol Nov 05 21:19:55 true Nov 05 21:20:15 actually, i don't think i've used a platform since CodeWarrior for mac os 8 lol Nov 05 21:20:28 oh well, delphi is a platform - that worked great Nov 05 21:20:50 ninebits: can you pastebin your stack trace, and then after that, I'll ask for some more stuff Nov 05 21:20:52 sorry - i'm really frustrated. so the only advice is google's dev site. Nov 05 21:20:59 i don't know how to get my stack trace Nov 05 21:21:10 what IDE are you using? Nov 05 21:21:13 eclipse Nov 05 21:21:20 can you recommend an alternate? Nov 05 21:21:21 are you running your app via eclipse? Nov 05 21:21:37 or are you running it via command line? Nov 05 21:21:38 trying.. i'm clicking the Run As menu and picking as android app Nov 05 21:21:38 Hey, I've been trying to compile android-5.0.0_r2 for my Nexus 7 (Grouper). Its compiled just fine but flashing it just leaves me with a device that wont boot. Just sits at the Google logo. I don't have access to UART or JTAG. Any ideas? I also had the same issue with the master branch Nov 05 21:21:45 wow, this moultedx thing is bullshit Nov 05 21:21:48 no, i'm using eclipse Nov 05 21:21:50 multidex* Nov 05 21:21:57 ninebits: ok, and so what happens? Nov 05 21:22:38 basically, the hello world tutorial says "just click next, click next, ..." then at the end it says click "Run As Android App"... then I get a dialog box that says there were errors. Nov 05 21:22:47 I found the Windows | Problems Nov 05 21:22:58 and I only vaguely understand the 20 or so errors there Nov 05 21:23:07 are you running on a phone or an emulator? Nov 05 21:23:08 no idea how to proceed Nov 05 21:23:21 well, I had my phone connected via usb Nov 05 21:23:27 adb recognized it Nov 05 21:23:30 ok Nov 05 21:23:34 adb devices listed it, i mean Nov 05 21:24:42 ok, what errors did it throw when you hit run? Nov 05 21:25:21 the first three say "ActionBarActivity cannot be resolved to a type" Nov 05 21:25:41 the "activity_main can not be resolved or is not a field" Nov 05 21:26:01 ok, those are stack traces it sounds like Nov 05 21:26:08 or build errors? Nov 05 21:26:32 this is coming from a tab titled "Problems" in the eclipse window Nov 05 21:26:36 so for your activity_main, it sounds like it is for a line like: "R.layout.activity_main" Nov 05 21:26:48 yes, that one's there, too Nov 05 21:26:58 so make sure you're importing your application's R class and not android.R Nov 05 21:27:02 i was playing around and tried to import it, but got a new error saying not to do that lol Nov 05 21:27:25 ahhh ok... that sounds like a path i could try to follow Nov 05 21:28:43 so yeah, those are compilation errors btw Nov 05 21:29:13 if you're using eclipse, you should get little red squigglies on bad lines IIRC Nov 05 21:30:04 Hi Nov 05 21:30:34 what's IIRC in this context? Nov 05 21:30:45 if i remember correctly Nov 05 21:30:49 If I recall correctly Nov 05 21:30:59 ah Nov 05 21:31:18 o lol Nov 05 21:31:19 Hi I have a stupid logic question. Nov 05 21:31:34 ok, well, i have a little lightbulb with a red x by every single line Nov 05 21:31:37 there are no stupid questions, just stupid people :P Nov 05 21:31:44 <--- stupid person Nov 05 21:31:48 I want a button to show up in a viewpager if all the views are viewed Nov 05 21:31:59 I thought it would be smart to do something like this: http://pastebin.com/iqZLyYFc Nov 05 21:32:01 i'm thinking i must have eclipse installed incorrectly Nov 05 21:32:12 ninebits: probably not Nov 05 21:32:22 but that only makes the save button visible on the last page and not all the previous pages Nov 05 21:32:42 ninebits: if it says every line is screwed up, it usually means you missed a brace Nov 05 21:32:52 or parenthesis or something Nov 05 21:33:12 but i didn't alter any code Nov 05 21:33:27 ninebits: can you put your code in pastebin? Nov 05 21:33:32 pastebin.com Nov 05 21:33:36 i was just following the world's simplest tutorial steps - all done for me... Nov 05 21:34:17 ya, i'd be happy to pastebin anything, but... it's just that I didn't write any code Nov 05 21:34:24 ninebits: that's fine Nov 05 21:34:30 ninebits: I need to pinpoint the issue Nov 05 21:34:30 hey can anyone tell me why my Android.mk file just isn't pulling in my .so files? Nov 05 21:34:32 http://pastebin.com/0jGbMcLN Nov 05 21:35:08 childofthehorn: which so's? Nov 05 21:35:36 ok - so there are just a ton of files... the only java i see is MainActivity.java Nov 05 21:35:39 libutils libtinyWRAP libplugin_audio_codecs Nov 05 21:35:42 childofthehorn: anyways, it's been a while, I remember at one point, you had to declare your so's as separate packages to build Nov 05 21:35:43 that's what to post? Nov 05 21:36:08 ninebits: yes, post your MainActivity.java first Nov 05 21:36:15 I just need them to pull into /libs when done Nov 05 21:36:42 childofthehorn: my knowledge of android jni is limited to about 2 years ago at this point Nov 05 21:36:49 I got ANT buid system working, but I am neededing to do Androidmk because of some of the features required Nov 05 21:36:59 http://pastebin.com/nFa9BubQ Nov 05 21:37:04 @ herriojr Nov 05 21:37:18 ninebits: first off, you're importing andorid.R which is wrong Nov 05 21:37:19 yeah, I do JNI pretty often, and just never had to deal with prebuilt so files Nov 05 21:37:35 *android.R that is Nov 05 21:37:42 uh Nov 05 21:37:49 yeah, you can't just define .so as a src file Nov 05 21:37:53 src files are the ones that are compiled Nov 05 21:38:05 just pass the library dir of the .so as an LDFLAG and do -l Nov 05 21:38:12 Mavrik: back in the day, you had to do a build package for a prebuilt so then depend on that Nov 05 21:38:14 Tried LOCAL_SHARED_LIBRARIES Nov 05 21:38:16 as well Nov 05 21:38:24 herriojr, either approach works Nov 05 21:38:33 http://www.kandroid.org/ndk/docs/PREBUILTS.html Nov 05 21:38:37 herriojr, but the thing is Nov 05 21:38:43 its also whats referenced in the NDK docs Nov 05 21:38:49 but they have been wrong before Nov 05 21:38:51 you basically have to tell Android.mk to issue -L and -l to linker, nothing more Nov 05 21:39:18 Mavrik: yeah, I don't disagree, I was just used to messing with building Android which uses a very similar make process Nov 05 21:39:23 hey Mavrik - mind pastbining an example? Nov 05 21:39:30 herriojr, i've removed that line and tried to run. In problems, there now appears a line "R cannot be resolved to a variable" Nov 05 21:39:52 ninebits: so R pre-compile step that generates an R.java file Nov 05 21:39:52 childofthehorn, if you want to follow that example, you need to create a separate module with it's own Android.mk that has that contents - that is SRC and PREBIULT_... as a script Nov 05 21:39:56 and then include it as a module Nov 05 21:40:12 what is your package declared as in your AndroidManifest? Nov 05 21:40:24 or you can just manually set the LDFLAGS and send that to hell, NDK is just gcc anyway :P Nov 05 21:40:24 I would realy just prefer a 1-stop makefile on this Nov 05 21:40:53 well, use 1-stop makefile then :) Nov 05 21:41:12 ninebits: or rather just pastebin your AndroidManifest.xml Nov 05 21:41:13 so what corrections do I make to the one I have here Nov 05 21:41:14 http://www.kandroid.org/ndk/docs/PREBUILTS.html Nov 05 21:41:55 http://pastebin.com/0jGbMcLN Nov 05 21:42:04 what ines do I change of add Nov 05 21:42:06 ? Nov 05 21:42:28 herriojr, http://pastebin.com/PqzGSC6L Nov 05 21:42:44 childofthehorn, well first you have to start thinking about what you write Nov 05 21:43:05 ninebits: import com.example.myfirstapp2.R Nov 05 21:43:08 you're declaring an .so as a source file and then telling the build system to link to that same .so as it generates that .so... which makes no sense Nov 05 21:43:20 also splitting it up would help, but it's probably not strictly required Nov 05 21:43:54 herriojr, that goes at the top of MainActivity.java ? Nov 05 21:44:03 ninebits: have you done java before? Nov 05 21:44:27 possible to track what kind of ads users click on? using admob and analytics Nov 05 21:44:49 Quacked: what? Nov 05 21:44:54 so move it back to LOCAL_SHARED_LIBRARIES ? Nov 05 21:45:18 long ago Nov 05 21:45:20 yes Nov 05 21:45:23 herriojr, basically I want to know what ads are most popular to click on in my apps Nov 05 21:46:36 Mavrik? Nov 05 21:46:39 Quacked: you could potentially record the URI that they use when they send an intent Nov 05 21:46:46 Quacked: but you'd have to make a ContextWrapper Nov 05 21:47:11 to record when they call a startActivity(), assuming they send it from the View Nov 05 21:47:16 right.. but does that URI give away anything I can use to identify the ad? Nov 05 21:48:01 well, the URI would have to be a unique identifier in some way to match the image with what URL to go to Nov 05 21:48:31 yeah typically in applications where I am using prebuilts, I am using ANT Nov 05 21:48:32 hey Nov 05 21:48:36 the multidex stuff was just released Nov 05 21:48:43 but they only explain how to do it with gradle Nov 05 21:48:53 and when doing JARs and libs, using Android.mk Nov 05 21:48:55 we haven't switched to gradle yet. is it possible to use it with ant or ADT? Nov 05 21:48:59 or working on AOSP Nov 05 21:49:02 Quacked: the only problem is if they supply a different URI per person Nov 05 21:49:15 Quacked: so the only way you'd know is if you visited all the sites Nov 05 21:49:16 lagann: its time then ;) Nov 05 21:50:10 are you saying i can't get it to work in ant/adt? Nov 05 21:51:23 ok, heriojr.. now there's no R.java in com.example.myfirstapp2.. Nov 05 21:52:06 you said something earlier that i didn't understand... R pre-compile step that generates an R.java file Nov 05 21:52:12 herriojr, hmm... sounds like a lot of effort for something that might not work :) Nov 05 21:52:25 i didnt use adt for ages lagann but i think they wont "backport" new features to it Nov 05 21:52:33 Quacked: yes Nov 05 21:52:39 but you can check if there is a --multidex arg like gradle had Nov 05 21:53:25 wouldve been nice though. could remove the ad types that nobody clicks on Nov 05 21:53:34 ninebits: before compiling your java code, what android's build process does is generate an R.java file based on your resource directory Nov 05 21:53:42 ninebits: so there should be a gen/ folder Nov 05 21:53:43 danijoo_: adt and eclipse are still the recommended platform Nov 05 21:54:01 i see it, herriojr Nov 05 21:54:03 dunno why they won't "backport" when that's what's considered stable and is still listed right there when you go to their website to download Nov 05 21:54:07 the gen folder, i mean Nov 05 21:54:16 seems that I may have driven Mavrik away Nov 05 21:54:26 inside the gen folder you should have an R.java in com/example/…/R.java Nov 05 21:54:51 lagann: it is. but you can clearly see a shift to gradle+AS in the docs Nov 05 21:54:55 ninebits: basically, anything in the gen/ folder is built during a pre-compile step Nov 05 21:55:08 no, ther'es only a BuildConfig.java there Nov 05 21:55:18 which is hella confusing Nov 05 21:55:24 ninebits: do you have it on auto-build? Nov 05 21:55:26 maybe i should "clean" the project and try to compile again Nov 05 21:55:33 lagann: true.. Nov 05 21:55:34 try that Nov 05 21:55:38 brb Nov 05 21:55:47 yes, that's right - auto-build is checked Nov 05 21:58:24 what's the most likely command I would run on a project with maven to run tests? Nov 05 21:58:53 ninebits: did that generate it or no? Nov 05 21:59:01 no Nov 05 21:59:13 in your errors, does it complain about any xml files? Nov 05 21:59:35 JacobTabak: my version isn't any more novel than yours Nov 05 21:59:37 ...yet Nov 05 21:59:38 ninebits: basically, if it can't generate your R.java, it means one of your xml files are screwed up Nov 05 21:59:42 ok Nov 05 21:59:44 would anyone be able to point me in the right direction for troubleshooting the following error "Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!" ? Nov 05 21:59:47 thanks for the help though Nov 05 22:00:00 this happens when attempt to get a uiautomator dump Nov 05 22:00:27 JacobTabak: https://gist.github.com/JakeWharton/bc2c7920c0743f5776ee Nov 05 22:00:50 man, canadiancow is the only name I recognize in here anymore Nov 05 22:00:58 yeah Nov 05 22:01:09 that's why i don't talk much anymore Nov 05 22:01:10 :P Nov 05 22:01:25 canadiancow: I guess everyone fell off the face of the earth like me? :P Nov 05 22:03:27 ninebits: did I lose you? Nov 05 22:03:41 no Nov 05 22:03:52 what errors do you have now? Nov 05 22:04:13 i've created the tutorial from scratch again - MyFirstApp3 Nov 05 22:04:19 OK Nov 05 22:04:36 I'm going to add the import again Nov 05 22:04:50 then see if it precompiles R Nov 05 22:04:51 ninebits: if you keep switching code like this, I can't help Nov 05 22:05:21 Does anyone know how to change onClick selection color for material design actiuonbar overflow menu? Nov 05 22:07:50 does gradle have ndk support? Nov 05 22:08:04 just saw that android studio lists ndk support as "coming soon" Nov 05 22:09:09 yes it has Nov 05 22:09:21 lol Nov 05 22:09:43 kk Nov 05 22:10:29 danijoo_: does this help you? http://stackoverflow.com/questions/19659637/how-to-change-the-background-color-of-action-bars-option-menu-in-android-4-2 Nov 05 22:11:37 herriojr: not really. meterial design seems to come with a shitload of new xml arguments to do this. Nov 05 22:11:45 but none of them are documented ^^ Nov 05 22:12:07 danijoo_: yeah, usually I look things like this up in the Android source code in their resources directory Nov 05 22:12:21 yeah thats whay i currently do. Nov 05 22:12:53 just hoped there is already a nice blogpost someone could link to :) Nov 05 22:13:06 danijoo_: unfortunately, I haven't been doing android dev for the past two years, so I can't say :) Nov 05 22:14:33 danijoo_, umm set the PopupTheme in styles.xml Nov 05 22:15:03 JakeWharton that probably will solve the issue i had with google play services Nov 05 22:15:05 JacobTabak: when you cmd+click on an app class from the test do you go to the source file or the decompiled class file? Nov 05 22:15:28 danijoo_, do you mean ActionBar or Toolbar, because I switched to Toolbar so my answer probably applies to that Nov 05 22:15:29 how hard would it be to completely copy a apps gui and just write a new backend Nov 05 22:15:39 i had to add testCompile project(":app") Nov 05 22:15:44 to link it for source/refactoring Nov 05 22:15:56 djshotglass: depends on the project Nov 05 22:16:06 Afzal: its the same for both. seems like if you set popupTheme in AppTheme, it is applied to toolbar AND actionbar Nov 05 22:16:23 ninebits: still having issues? Nov 05 22:16:33 im a programmer that sucks with ui and want to use textras ui Nov 05 22:16:35 and wow, who knew Error inflating class could mean ANY of your properties might be applying to an older API :/ Nov 05 22:16:35 actually, i think i've found the problem Nov 05 22:16:46 to create an app that allows me to send texts from my tablet via my phone Nov 05 22:16:47 android.support.v7 is being imported, but it doesn't exist here Nov 05 22:16:54 i'm looking fo it in the SDK manager Nov 05 22:16:59 for* Nov 05 22:17:04 danijoo_, try this: http://hastebin.com/oxopijavon.xml Nov 05 22:17:12 well, with dark theme Nov 05 22:17:33 thanks for your help so far, herriojr ... it definitely served to get my brain on the right track Nov 05 22:17:53 Afzal: my problem is if i set android:background in my PopupTheme, the selector show strange rects arround texts on click Nov 05 22:17:58 let me show you a screenshot Nov 05 22:18:30 ah, I think I know what you're talking about, the clipped press state thingy Nov 05 22:18:54 Mavrik, what is bad about the Samsung galaxy s4 mini? Nov 05 22:20:18 JakeWharton also since i switched to intellij 14 sometimes my breakpoints land in decomplied class files...even when i'm not testing Nov 05 22:20:33 have to manually attach the source, several times a day... that happen to you? Nov 05 22:21:26 Afzal: style: http://pastebin.com/9LNkNn0q and screenshot: http://postimg.org/image/69wy0nfwp/ Nov 05 22:21:47 the selector does not seem to affect the "textview" in the menu anymore Nov 05 22:22:13 I think the problem is that background is applied to every view in it so that textview isnt transparent any more Nov 05 22:22:16 Q about location.. if I start getting location data willy nilly, it’s not very fine and later adjusts its accuracy until the device acquires more satelites. what are some best practices to make sure that this data is as accurate as can be before sending location data without killing the battery? Nov 05 22:24:09 danijoo_, that sounds like a bug. One sec, lemme run the emulator and test this Nov 05 22:24:58 Mavrik i think that a broadcastreceiver is a better option as my activity already register for regular Events. I'm not sure if everything will work if i register for sticky, need to receive both kind of events... Nov 05 22:26:10 Afzal: ok Nov 05 22:30:19 danijoo_, yup, happens on 4.4.4 and 5.0 :/ Nov 05 22:30:23 weid Nov 05 22:30:54 Afzal: maybe there is some new attribute to replace android:background for ThemeOverlays. mh Nov 05 22:31:29 Yeah, it doesn't happen when you use another ThemeOverlay theme like ThemeOverlay.AppCompat.Dark Nov 05 22:31:39 maybe looking into that would help Nov 05 22:33:08 apparently windowBackground @ danijoo_ Nov 05 22:34:29 or maybe it's colorControlHighlight Nov 05 22:34:33 nvm Nov 05 22:35:03 windowBackground seems to not have any effect at all on PopupThemes. Nov 05 22:35:24 another thing i have to play arround with before doing the actual work. Nov 05 22:35:37 nope Nov 05 22:35:45 but thanks for confirming its not a layer 8 problem here ;) Nov 05 22:35:56 Can some tell me why on API 19 drawing this, ,http://lpaste.net/113836 just creates the stroke (intended) but while on API 16 there is black in the middle instead of showing the view background? Nov 05 22:36:33 oh, I think it's colorBackground Nov 05 22:37:21 yup danijoo_ colorBackground works! Nov 05 22:38:09 you are right! Nov 05 22:38:14 thank you very much Nov 05 22:42:44 can anyone help me out with a relatively simple exercise of converting an asynctask to a thread? Nov 05 22:48:54 cbot`: do you have a specific question about it? Nov 05 22:52:32 not really JesusFreke I was given a couple of practice problems and I'm stuck on this one Nov 05 22:52:45 I know I can simulate doInBackground with the run in thread Nov 05 22:53:00 but idk what to do about postexecute Nov 05 22:53:22 pass in a Handler that's bound to the thread that you want postexecute to be executed on Nov 05 22:53:53 and then send a Runnable to that Handler at the end, after doing whatever would be in doInBackground Nov 05 22:54:08 Anyone good with Shapes in xml? http://lpaste.net/113836 Nov 05 22:54:24 Why is it black in the middle on API 16 but shows the background in API19? Nov 05 22:54:30 cbot`: it might also be helpful to take a look at the AsyncTask implementation, to see how it works internally Nov 05 22:55:40 e.g. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/os/AsyncTask.java Nov 05 22:55:45 hello, I have an app that was suspended by mistake AFAIK Nov 05 22:55:54 is there a way to reinstate the app? Nov 05 22:56:34 zeemdev: I believe your suspension email should have details on how to appeal Nov 05 22:57:00 I did send an appeal but all I've got was automated email Nov 05 22:57:07 *response Nov 05 22:58:50 it's just sad to see how your work just goes down the drain and there is no one to give basic information on any reasons Nov 05 22:59:43 we're not the people for that Nov 05 23:00:36 thank you JesusFreke if I come into any problems can I pm you? Nov 05 23:00:48 Just keep it in-channel :) Nov 05 23:01:09 I may or may not be around, but someone else can jump in as well. Nov 05 23:02:03 JustFreak just wanted to check if someone else have had similar problems and found a solution as I am pretty much stuck Nov 05 23:02:37 off topic question. is it considered rude to pm someone without asking? I’ve seen different channels with different expectations around pms Nov 05 23:02:47 anyway thanks for the time Nov 05 23:03:29 dcow: most consider it to be so Nov 05 23:03:52 JesusFreke is there a reason so that might predate my usage of IRC? Nov 05 23:04:01 or is it just convention? Nov 05 23:04:01 zeemdev https://plus.google.com/u/0/+MikeWallaceDev/posts/PUJ2qyRvTj3 Nov 05 23:04:38 I’ve only been around for ~15yrs as far as IRC usage goes Nov 05 23:05:58 there doesn’t seem to be the same unspoken “ask before pm” culture in any other service that offers private messages that I’ve used Nov 05 23:06:09 dcow, sometimes people are WTFy about it, I’m not Nov 05 23:06:19 PM’s can cause problems if you accept a DCC though Nov 05 23:06:29 my initial thought was probably that people would PM assuming the message is private—which it’s not to the server Nov 05 23:07:09 sometimes pm’s are generally frowned upon because they take away from the group learning experience. Nov 05 23:07:27 like “pm gossipgirl24 hey remember how you said you hate the server admin over dinner last night” Nov 05 23:07:37 that probably wouldn’t go over well Nov 05 23:07:51 tricknology_: interesting Nov 05 23:08:27 MikeWallaceDev: thanks for the link, completely agree, I was even thinking to swith to iPhone and remove all of my Android apps and in my perception that borders with madnes :) Nov 05 23:08:33 generally, people are in the IRC chat because it is a community. PMs take away from the community Nov 05 23:09:27 if I were looking for developers in the LA area for an app idea I have (which I am) i would expect the discussion to take place in a PM rather than over here Nov 05 23:09:34 there is a time and place for everything I guess Nov 05 23:10:22 zeemdev, abandoning Android is still in my mind, but I won't go to iOS though... Nov 05 23:10:23 sure. that actually makes the most sense (the community argumet) Nov 05 23:11:35 https://github.com/urbit/urbit is the future MikeWallaceDev. Everyone should just switch to that. Nov 05 23:12:17 as for the PM thing, I don't mind them, as long as they make sense. It's no worse than always mentioning someone in the Chanel (re: thank you Je$u$Freke if I come into any problems can I pm you?) Nov 05 23:13:44 Yeah, it's interesting to look back at how my behavior and preferences around that sort of thing have changed over time :) Nov 05 23:13:45 dcow what's a 'programming environment' ? IDE? Nov 05 23:14:14 JesusFreke, I hope that didn't Ping you, I put the $ in so that it wouldn't Nov 05 23:14:23 MikeWallaceDev: no worries :) Nov 05 23:14:33 sorry mate... Nov 05 23:14:40 The irony is not lost on me :D Nov 05 23:14:42 MikeWallaceDev: you didn't :) Nov 05 23:14:47 Back in the g1 days, I tended to be much more friendly/helpful Nov 05 23:15:06 but I eventually got much more jaded, after dealing with.. some sorts of people Nov 05 23:15:31 yeah... I hear ya Nov 05 23:15:39 MikeWallaceDev: I’m half joking. Urbit is a new ground up functinal stack for general distributed computing (which will take over the whole mobile/server divide). Nov 05 23:15:39 I have a much lower ignore threshold now Nov 05 23:15:58 I still want to help, but man, if you don't RTFM then GTFO :D Nov 05 23:16:20 gotcha dcow Nov 05 23:16:23 dcow: except that it's completely unintelligible :) Nov 05 23:16:45 I like it JesusFreke. Then again, I have more schooling in that realm. Nov 05 23:17:57 well, all you have to do is hoon your peen, so that your bilms can dort the virt and narfle the garthok. Nov 05 23:18:30 For me, asking "can I PM you" is like me going to your house to ask if I can phone you :) Nov 05 23:19:05 JesusFreke well properly hooning your peen takes some practice Nov 05 23:20:00 dcow: the ask before pm thing started because the google guys kept getting pms very often Nov 05 23:20:22 herriojr perhaps here. I’ve seen in in many other communites. Nov 05 23:20:29 that predate this one Nov 05 23:20:42 yeah, I just know how it happened early on in this channel :) Nov 05 23:21:34 which it seems like none of them are here anymore Nov 05 23:21:42 or at least not the ones I knew Nov 05 23:23:28 yeah. I question why they still market this as the official support channel Nov 05 23:23:46 how laughably wrong is this JesusFreke http://puu.sh/cEQUS/3a866db58b.png ? Nov 05 23:24:23 cbot`: rather :) Nov 05 23:24:31 You don't need a looper thread :) Nov 05 23:24:59 alright fair enough Nov 05 23:25:19 I like Fetchr Nov 05 23:25:23 XD Nov 05 23:25:33 lol Nov 05 23:25:58 I think what I'm posting is wrong also yes? Nov 05 23:27:48 hi, i have a custom font rendering problem which occurs very rarely and randomly, looks pretty much like https://i.imgur.com/8C0zUp4.png or https://i.imgur.com/nUjT87F.jpg, no errors or exceptions... any thoughts what to check/look out for? Nov 05 23:29:23 anyone know of an easy way to consume server sent events in an android app? Nov 05 23:35:19 ckoch786: you mean server initiated requests? Nov 05 23:35:48 herriojr, no http://www.w3schools.com/html/html5_serversentevents.asp Nov 05 23:35:51 ckoch786: you either have to do in-app-messaging or a persistent connection Nov 05 23:36:23 ckoch786: depends on the use case Nov 05 23:37:45 I would like to consume events sent similar to this example Nov 05 23:37:52 https://community.spark.io/t/tutorial-getting-started-with-spark-publish/3422 Nov 05 23:41:50 I think maybe I can use this to consume it http://developer.android.com/reference/javax/net/ssl/HttpsURLConnection.html Nov 05 23:42:12 based on the curl example here: http://blog.spark.io/2014/03/11/spark-publish/ Nov 05 23:42:19 Is there a better way to handle navigation for 3 activities? I have a menu -> gameplay -> endofgame and I want the endofgame to go back to the menu. Is loading the activity the best way to do this or should i "cycle" back to the first menu activity? Nov 05 23:45:43 * g00s looks at recyclerview in fear Nov 05 23:46:28 I am changing the background color of a tablerow on click, when the user clicks the table row it will take them to a new activity. Upon returning to the main activity using the back button I try to change the tablerow back to normal in the onPause() method, this is not working though as the tablerow "shrinks" what am I doing wrong? Nov 05 23:47:14 I am using a shape for the tablerow and using tr.setBackgroundResource(layout.rounded_rows); in the onPause() method Nov 05 23:49:05 to change it back, the only problem is that the layout_{width and height} are set in the layout fragment so when I am calling the setBGResource method it is not setting it to the desired h/w causing the row to shrink. Is there a way to apply layout_w/h from java to the element? Nov 05 23:53:45 a few months ago i watched a DevBytes and ListView drag & drop reording. i thought it was awful complicated. So with RecyclerView, even if it doesn't implement it out-of-the-box - is it easier to implement ? Nov 05 23:58:52 g00s: shouldn't they have filter and sort options instead of dragging pointlessly to reorder (for what?) Nov 05 23:59:29 its a dashboard kinda - i'd like the user to arrange it as they see fit Nov 06 00:01:00 yeah its nice to have the option I guess Nov 06 00:01:47 but you long press and start dragging, what if your listview already has long press popping up a context menu ? can it differentiate the drag before it pops up the context menu ? Nov 06 00:02:21 i guess the views should have a drag handle Nov 06 00:02:39 whether its there all the time or only a certain mode Nov 06 00:04:40 "A battery draining WiFi wake-up bug could be what’s causing delays with the rollout of Android 5.0 Lollipop for the Nexus 5 and other devices." Nov 06 00:04:41 oops Nov 06 00:06:19 Is there a better way to handle navigation for 3 activities? I have a menu -> gameplay -> endofgame and I want the endofgame to go back to the menu. Is loading the activity the best way to do this or should i "cycle" back to the first menu activity? Nov 06 00:07:49 gopirate: end of game should give the user a choice to replay or goto menu Nov 06 00:08:21 and there's your chance to pop up an ad too ;) Nov 06 00:10:09 shmooz: good point. Is my previous menu activity sleeping in the background or was it killed? Nov 06 00:10:43 probably paused and might be killed Nov 06 00:11:15 so starting a new one is acceptable? Nov 06 00:11:22 if the system needs memory, so you probably need to take precautions in onPause and onResume to save and restore states Nov 06 00:11:54 I don't want to get into a loop... menu -> game -> menu -> game -> menu (5 activities going..) Nov 06 00:12:19 gopirate, relaunch the menu activity from endofgame but with FLAG_ACTIVITY_CLEAR_TOP Nov 06 00:12:56 go read the Intent documentation about flags Nov 06 00:13:07 MikeWallaceDev: thanks. and if i want to replay the game, go "back" ? Nov 06 00:13:26 that's a design decision, do whatever you want Nov 06 00:13:36 alright, thanks Nov 06 00:13:44 no problemo muchacho Nov 06 00:23:12 I'm trying to use ActivityOptionsCompat as per http://android-developers.blogspot.gr/2014/10/implementing-material-design-in-your.html Nov 06 00:23:48 my code is http://pastebin.com/hV76Uw0b ( just a few lines ) and in the new activity I use : ViewCompat.setTransitionName(imageView, "transitionimage"); Nov 06 00:24:16 but I don't see anything being animated/displayed Nov 06 00:27:40 oh, there's an example on https://developer.android.com/training/material/animations.html - didn't notice that before, I'll check it now Nov 06 00:40:19 Um hi, I was wondering why does it say 'Note: The lunch command in the build step will ensure that the Sun JDK is used instead of any previously installed JDK.' on this page? https://source.android.com/source/initializing.html Nov 06 00:40:43 im wondering because it says that its ok to install the openjdk Nov 06 00:41:05 is the sun jdk required to build the sdk from source or something? Nov 06 00:42:28 oracle* and yes probably. why bother building it ? Nov 06 00:43:12 so… on LocationManager.. minDistance minimum distance between location updates, in meters Nov 06 00:43:37 but.. how does the LocationManager know that I’ve moved, say, 100 meters if I’m updating every 100 mins? Nov 06 00:44:07 bankai_au: so the oracle sdk is required to build it... but to use it I can use openjdk? and sun is oracle right? Nov 06 00:44:52 lunch command is my favorite Nov 06 00:45:25 ./away lunch? Nov 06 00:45:31 google's build systems are just awful .. Nov 06 00:46:01 Been having a nightmare trying to figure out how to implement modding in my little app.. someone willing to lend a hand to a new dev? Nov 06 00:46:28 I believe DEX is the correct format of file to use for this, and to import it dynamically? Nov 06 00:46:44 The recommended builds for the various devices are available through the lunch menu, accessed when running the lunch command with no arguments. Factory images and binaries for Nexus devices can be downloaded from: Nov 06 00:49:34 they are served on a platter Nov 06 00:49:48 is that a typo or are they trying to be funny? Nov 06 00:50:44 anyone who can give some advice? Nov 06 00:50:52 mayyybeeee Nov 06 00:51:21 I am trying to make my app import jar files dynamically, but I think DEX is the way to do this in android? I am looking for a modding like system Nov 06 00:52:08 I have the gist of this process in normal java, but I am lost in android Nov 06 00:52:17 by normal java, i mean for pcs Nov 06 00:53:17 Mad3ngineer btw, this violates Play TOS Nov 06 00:53:27 oh really? Nov 06 00:53:44 so if I want my app to have mods, its against tos? Nov 06 00:53:54 it has to update through Play Nov 06 00:54:21 so a play app can't use code that is distributed somewhere besides play? Nov 06 00:54:32 to prevent hacking, i suppose Nov 06 00:54:38 Can someone help me out? http://puu.sh/cEWFY/e47ef5ee99.png I changed my Asynctask to a thread as a part of an exercise and it works fine until I pause the app, in that case it gives me an NPE Nov 06 00:54:59 cbot`: why did you take a screenshot of text? Nov 06 00:55:08 use pastebin and post your ST Nov 06 00:55:13 alright Nov 06 00:55:58 http://pastebin.com/GpKQnCPS Nov 06 00:56:18 found the source in the TOS: "An app downloaded from Google Play may not modify, replace or update its own APK binary code using any method other than Google Play's update mechanism." Nov 06 00:56:27 thank's for the catch @g00s Nov 06 00:58:17 Mad3ngineer i'm trying to find it Nov 06 00:58:57 is there another way to implement mods through google services? I would like to have mods for my app, but I don't want to violate TOS Nov 06 01:06:10 Mad3ngineer https://play.google.com/about/developer-content-policy.html Nov 06 01:06:18 "An app downloaded from Google Play may not modify, replace or update its own APK binary code using any method other than Google Play's update mechanism." Nov 06 01:06:43 i'm not a lawyer, so you'll have to decide ;) Nov 06 01:19:24 thanks yeah i read through and it seems like it isn't violating the tos as long as i treat mods like an external library. does this sound right to you g00s? Nov 06 01:19:44 i didn't see anything else in it besides that Nov 06 01:37:26 I need help with setting fixed widths on Buttons with text and EditTexts within the cells of a TableLayout. It's driving me crazy because with the current layout code, the buttons keep shrinking to the width of the single up-arrow and down-arrow characters in them, and the EditText boxes keep shrinking to the width of the text within them. Nov 06 01:37:55 What's worse is that those EditText boxes don't even expand when the number of characters of text in them increases. Nov 06 01:38:13 This is the current code: http://pastebin.com/rdTX5rM4 Nov 06 01:39:31 Does anyone know why this is cut off in the emulator, but not in the design view? http://i.gyazo.com/b9ada6f41ceab324a8251c81d2f7e52e.png Nov 06 01:39:50 I can't scroll down, but the rest of the UI seems to be there Nov 06 01:43:48 Basically, what I'm trying to do is just create a time span spinner that looks similar to the time picker and date picker, but with days, hours, and minutes. If someone knows of an open source example of implementing this, could you please give me the link so that I can see how its UI has been coded? Nov 06 01:45:11 I've already figured out the code side, but trying to get the XML UI side to look properly is driving me crazy. Nov 06 01:45:31 chaos, what are all the warnings on the editor? Nov 06 01:47:31 There are no warnings given by the IDE. It just doesn't look right at runtime. Nov 06 01:52:53 I was talking about the warning signs Nov 06 01:53:01 not text/compile warnings Nov 06 01:53:21 if my AppModule has a @Singleton Bus provider, how can I make an "extension module" that uses that same singleton? Nov 06 01:54:52 Ah, okay. Well, in the editor it actually looks like it should, but when I run it on my Droid 3 running Android 2.3.4, all the buttons and textedits get really narrow. Nov 06 01:58:05 I can't use the NumberPicker because my Droid 3 only supports up to API 10. Nov 06 02:05:46 Hi, all. It has been quite some time since I coded for android, so please bare with me. As I understand it, webview uses android's stock webkit? Is there a way I can use Chrome's? Essentially, I've designed a web application, and I simply want to launch it using a compatible browser, without any navigation elements such as the address bar, back/forward, et cetera. In fact, I'm pretty sure the site will do fine with stock, but Chrome would be pre Nov 06 02:05:46 ferable. Nov 06 02:16:34 ChaosMageX: I feel like I can relate >_> Nov 06 02:19:15 I think I might try overhauling it and using nested LinearLayouts. Nov 06 02:21:49 cuppy check out phonegap or cordova Nov 06 02:25:37 Hey guys I want to use two arraylist and have them mix the list together like one list will have boots, leggings, chestplate and another list will have diamond, iron, leather etc... and result would be diamong boots, diamond helmet etc... same with iron leather. Nov 06 02:27:47 tricknology, what advantage does this give me as opposed to using standard webview? Can I import Chrome's engine using this or something? Nov 06 02:28:23 is there a way to know if onSaveInstance has been called? i already has my code in onPostResume but i need it if the activity is normally running too. Nov 06 02:29:45 because orientation changes are scary Nov 06 02:30:28 http://stackoverflow.com/questions/26770298/unable-to-stop-activity-npe what does Gero mean by this? Nov 06 02:31:23 this process from forcing portrait mode to have a layout-land and tablet version is being so funny Nov 06 02:32:06 anyone have a galaxy note 3? Nov 06 02:32:43 i think its weird as an android developer, i know more about apple's HW lineup than samsungs Nov 06 02:32:58 * g00s lost count of the stuff samsung puts out Nov 06 02:40:58 Oh, wow https://developer.chrome.com/multidevice/webview/overview Nov 06 02:41:07 Well, that helps. Nov 06 02:41:12 cuppy: you can probably call chrome with an intent and with switches to hide the things you need hidden Nov 06 02:41:31 shmooz, that would be better. Nov 06 02:42:04 I'm just guessing though, never did it myself Nov 06 02:42:07 shmooz, but then the user would also have to have chrome. x + y = z and all that. Nov 06 02:42:26 yeah, normally Intent just tells the OS to use default browser Nov 06 02:48:12 cuppy: doesn't webview allow you to hide elements ? Nov 06 02:48:32 hello good morning :D Nov 06 02:48:35 The nested LinearLayouts worked! :D I should have just used them from the start. Nov 06 02:49:42 shmoon_, yes, it does. But the thing is, some functions of stock webview don't work with my web app. Like, when I load the site on android's stock browser, my swipe function doesn't work. Which, okay -- I suppose I could fix that instead. Nov 06 02:50:14 shmooz, ^^^ ugh btw that other guy is killing your tab completion Nov 06 02:50:33 cuppy: yeah , because you have no guarantee of chrome or whatever existing on the system, you're better off depending on webview Nov 06 02:50:37 guys, i would like to know about how to create an scroll action like timeline Nov 06 02:50:57 any API suggestion Nov 06 02:51:03 shmooz, well, it seems there might be a solution with this https://developer.chrome.com/multidevice/webview/overview Nov 06 02:51:18 I think it's a lib that I can include. Still need to check. Nov 06 02:51:32 cool Nov 06 02:51:56 cuppy: let me know if it works out Nov 06 02:52:41 anyone get gmail 5 yet ? Nov 06 02:52:48 I guess that'll only work on kitkat and higher Nov 06 02:53:10 g00s, nah. But it's mirrored out there if you want it now Nov 06 02:53:43 shmooz, yah I was just reading about that. Nov 06 02:54:42 i always seem to be one of the last to get gapps; seems like i get it and phandroid is talking about the next one already Nov 06 02:54:44 like weeks later Nov 06 02:59:14 It is pretty interesting that android is leaving stock behind. Chrome-based webview is default for 4.4.3 onward. Hm. Nov 06 02:59:39 That sure helps me in the future. Nov 06 02:59:49 doesn't help amazon :D **** ENDING LOGGING AT Thu Nov 06 03:00:00 2014