**** BEGIN LOGGING AT Sun Feb 22 02:59:59 2015 Feb 22 03:13:29 Is it a good idea for a reddit app to use WebView for animated GIFs? (Or is that just a cop-out?) Feb 22 03:13:49 I kinda feel like it's a cop-out but it'd be cool if I could convince myself otherwise. Feb 22 03:15:38 One problem with WebView is that I don't seem to have much control over the initial zoom level. Feb 22 03:22:28 I have an app that pulls superimposes a bitmap on top of another bitmap (captured image). However, its very low quality. I notice when I load the image as a png image view, it looks fine. Its only when its converted to a bitmap that the quality drops. Is there a way to add it so that it appears in the same way that an imageview png would appear (vector)? Feb 22 03:24:39 Does Picasso give me any help with animated GIFs? Feb 22 03:25:56 I wouldn't expect so, but the author of ImageViewEx, which seems to be about displaying animated GIFs, has deprecated it in favour of Picasso. Weird. Feb 22 03:31:02 TacticalJoke: you can do AnimationDrawable Feb 22 03:31:05 dump the frames in it Feb 22 03:31:51 also check Joel's answer http://stackoverflow.com/questions/7777315/showing-gif-in-android Feb 22 03:37:44 Thanks; I'll look at AnimationDrawable. Feb 22 03:37:53 Is using Movie a good idea? I've heard good and bad things about it. Feb 22 03:47:25 Romain Guy said "You can use the android.graphics.Movie class to play animated GIFs". Feb 22 03:52:36 If I'm using Picasso to download an image, what's the best to determine whether the downloaded image is an animated GIF? Feb 22 03:58:03 and a requesthandler? Feb 22 03:59:16 <_genuser_> lol, "who wants to chew the fat with chair lemur table?" Feb 22 04:07:36 anyone import u2020 to as? Feb 22 04:24:09 Whats up TacticalJoke Feb 22 04:32:14 hi, I am having issues getting retrofit to work with proguard under Android Studio Feb 22 04:32:43 I am using -keep and -nowarn but the library isn't working after proguad does stuff to it Feb 22 04:39:41 Did rxjava android change it's id from rxjava-android to rxandroid? Feb 22 04:39:45 Hey, drose379. Feb 22 04:39:55 Whats up? Hows the theming coming Feb 22 04:41:04 Oh, I've gone off on a tangent. Feb 22 04:41:13 Thinking about animated GIFs. Feb 22 04:41:24 "Tangent" good or bad? Feb 22 04:41:34 Sounds like youve gotten side tracked into something Feb 22 04:41:36 Happens to me alot Feb 22 04:41:42 Sometimes results in a cool feature though :D Feb 22 04:41:47 This is probably a good one. Feb 22 04:41:48 Yeah. Feb 22 04:42:03 So what are the GIFs for? Feb 22 04:43:47 Animated GIFs that people post on reddit. Feb 22 04:43:56 I'm currently showing them in a WebView but it's suboptimal. Feb 22 04:44:08 Ah ok, looking for other options? Feb 22 04:45:58 Yeah. Feb 22 04:46:05 I'd better run. It's so late. :D Feb 22 04:46:12 Aight, night Feb 22 04:46:15 Thanks for the help earlier Feb 22 04:46:33 No worries. Thanks for the APK! Feb 22 04:46:36 Talk to you later. Feb 22 04:55:20 hey guys Feb 22 04:55:25 I want to make an app Feb 22 04:55:33 is there a way though to load an app inside an app? Feb 22 04:55:40 since its largely an accessory app to another app Feb 22 04:56:01 I found some macro engines with root I can use potentially Feb 22 04:56:09 but itd be way better if I could just open the app inside my app Feb 22 04:56:12 and trigger clicks on it Feb 22 04:56:26 sounds horrible Feb 22 04:57:37 well its not an app about usability really Feb 22 04:57:39 yeah Feb 22 04:57:42 sounds like trojan Feb 22 04:57:43 its largely like glyd bot Feb 22 04:57:51 but for an android game Feb 22 04:57:54 instead of WoW Feb 22 05:00:42 sounds like a great way to get kicked from play :D Feb 22 05:01:04 Actually I read the Terms of Service and it's not against them directly Feb 22 05:01:16 I would feel bad.. if it wasn't one of the biggest money making games on Android Feb 22 05:01:22 and if it wasn't horribly unbalanced Feb 22 05:01:36 well I don't think anyone here will help you do that :P Feb 22 05:01:39 Pay2win meets pay MJCD 2 win Feb 22 05:01:48 *shrug* I can do it, I know two ways already Feb 22 05:01:59 I just thought there might be a way to make it an actual app Feb 22 05:02:06 rather than a script, which is less than robust Feb 22 05:02:42 There's people in this game who pay like $1200 a week just so they can stomp on little players lol Feb 22 05:02:53 they dont even get anything out of it, every time they attack it literally costs them money Feb 22 05:02:59 and they do it anyway Feb 22 05:03:02 so I don't feel bad Feb 22 05:03:04 help help help Feb 22 05:03:07 at giving the little guys an actual chance Feb 22 05:03:20 without spending tonnes anyway Feb 22 05:03:20 heh Feb 22 05:03:30 In an intent filter, what is ''? Feb 22 05:03:46 too hard to google this Feb 22 05:04:06 It's a filter on the intent's listed in the games manifest file Feb 22 05:04:11 probably for one called MESSAGE :P Feb 22 05:04:19 ok, but wtf is that? Feb 22 05:04:29 Its to interract with another app from within your app Feb 22 05:04:39 to invoke one of its manifested intents Feb 22 05:04:49 like....? Feb 22 05:04:49 as I say, in this case, quite likely to display a message Feb 22 05:05:33 like Feb 22 05:05:36 an alert? Feb 22 05:06:07 a message.... on the screen? Feb 22 05:06:10 could be lol Feb 22 05:06:11 Agamemnus intents are architectural backbone to android, with plenty of documentation - i see you're still not up for reading those however Feb 22 05:06:25 or it could just be called MESSAGE and actually kill a chicken in afghanistan Feb 22 05:06:30 FFS Feb 22 05:06:31 for all we know Feb 22 05:06:32 lol Feb 22 05:06:39 g00s: lol yeah Feb 22 05:06:44 that's Agamemnus for you Feb 22 05:06:56 Agamemnus: it's defined within the app, no way to know, it's just a label Feb 22 05:06:56 ................................................................................................................................ Feb 22 05:07:03 you can't do shit without having an intent filter for one activity in your manifest, maybe its time to figure out what that does Feb 22 05:07:10 lol ^^ Feb 22 05:07:11 jesus christ Feb 22 05:07:14 yep Feb 22 05:07:20 jesus christ indeed Feb 22 05:07:36 It's funny mainly because i've never made an app and even I know the basics of intents Feb 22 05:07:51 Yet half the time we have to listen to Agamemnus's confusion that his puzzle game isnt making him rich Feb 22 05:07:57 who cares, you still don't know what MESSAGE does Feb 22 05:07:59 (in other channels) Feb 22 05:08:07 in which you are banned Feb 22 05:08:16 lol right. Feb 22 05:08:55 It's like I ask, how do I fly a cessna Feb 22 05:09:05 It really isn't like that at all. Feb 22 05:09:14 and you say lol wut, learn the basics of how to fly an airplane Feb 22 05:09:23 Its more like you ask how to fly an airplane you made, with your own proprietary controls. Feb 22 05:09:31 Or an airplane your friend made Feb 22 05:09:44 and we go "Find the yolk" and you're like "It has no yolk, how to plane??" Feb 22 05:09:58 Mmm, now I want eggs. Feb 22 05:10:01 I think it is a Cordova thing (which you and g00s should know by now), but Google doesn't let me search for MESSAGE in caps. Feb 22 05:10:30 Agamemnus you should know by now, you're probably the only one here using cordova :D Feb 22 05:10:35 there is a reason for that XD Feb 22 05:10:39 hehe Feb 22 05:10:39 :| Feb 22 05:10:57 don't make me go Alladin on you Feb 22 05:11:03 So I was just on ##java and had DateTimeFormatter recommended to me over SimpleDateFormat - any opinions from you guys? Feb 22 05:11:54 Aladdin* Feb 22 05:14:37 AsyncTask AsyncTask is bad and you should feel bad Feb 22 05:14:42 haha Feb 22 05:14:54 what'd you say about me?!?! Feb 22 05:17:28 http://simonvt.net/2014/04/17/asynctask-is-bad-and-you-should-feel-bad/ Feb 22 05:17:34 actually not a bad article for noobs like me Feb 22 05:17:53 lol Feb 22 05:18:04 come back my n00bs Feb 22 05:18:07 I've seen that article - pretty cool Feb 22 05:18:32 Rx has certainly added some clarity and correction to the problems AsyncTask suffers from (nothing personal, AsyncTask) Feb 22 05:18:48 :'( Feb 22 05:18:59 Are you guys really just going to throw me to the curb like that? Feb 22 05:19:04 "What happens if the AsyncTask finishes between onDestroy of on Activity and onCreate of the next?" :p Feb 22 05:19:22 AsyncTask: You can fix it yourself, just pick a different nick! Feb 22 05:19:29 ++ :) Feb 22 05:19:32 capella: Yeah that's one of the main problems with AsyncTask Feb 22 05:19:45 CedricBeust: I could, but deep down inside I am still an AsyncTask! Feb 22 05:19:48 I like ansyctask Feb 22 05:19:55 er, the software variety Feb 22 05:20:00 XD Feb 22 05:20:36 Can you imagine someone with the nick |null| ? Feb 22 05:20:48 capella: lol Feb 22 05:20:55 you just segfault'd my brain Feb 22 05:21:01 masochist :p Feb 22 05:22:02 i dont think any library has done more to improve my android life than rxjava; i think now its all over my app except views aren't observables. i like libraries / technologies that change the way you think Feb 22 05:22:13 Thats not a problem of async task, thats the problem of bad coding. Feb 22 05:22:48 g00s can you make views observables? since you can view them as streams Feb 22 05:22:58 coming into and out of (eg onattach/detach) Feb 22 05:23:05 lasserix i think so people do, isn't there stuff for that in rxandroid ? Feb 22 05:23:17 g00s: I'm getting there too, thinking more and more of everything in terms of Observable/Subscriber/Filter Feb 22 05:23:47 and the strict grammar also makes you think clearly about who things are done, and torn down Feb 22 05:24:02 onNext (onError | inCompleted)? Feb 22 05:24:09 oops, i even messed that up Feb 22 05:24:19 back later :) Feb 22 05:25:37 There are gotchas though, and it didn't take me long to hit them. But you figure them out one by one Feb 22 05:26:47 yeah i still hit gotchas. lasserix one thing to remember about rx is everything is decorated (they use decorator pattern all over) Feb 22 05:26:59 my last gotcha was mixing hot and cold observables Feb 22 05:27:13 which is fine, i just didn't know what i was doing Feb 22 05:29:17 I suspect I am bumping my head against an android build tool vs. Gradle or Maven, as I created a pom.xml to build the same artifact and am seeing the same behavior. Specifically, the R.class and all of its inner static classes are not being included in the generated .aar. The BuildConfig.class is, however despite the R.class existing side-by-side in the intermediate directory, it is not included in the archive. Feb 22 05:29:52 E sho Feb 22 05:30:02 R should never be included in the aar Feb 22 05:30:54 R is generated by the consuming project Feb 22 05:31:08 R.txt is included in the aar Feb 22 05:31:54 Maybe a stupid question, but why not? This isn't my library I am trying to build. It is the android-support-v4-preferencefragment project on GitHub. It has it's own resources which are required. Feb 22 05:32:40 I'm just getting a NoClassDefFoundError on the R$layout class when I try to use the library. Feb 22 05:33:40 you aren't using it right Feb 22 05:34:30 build config really shouldn't be included in the aar either... Feb 22 05:35:37 Okay... Based on the error, what stupid mistake could I have made. I merely included the project in my dependencies and extended the provided wrapper class. Feb 22 05:36:49 how can I make a ListView row with a checkbox, where any part of the row can be tapped to tick or untick the checkbox? Feb 22 05:36:57 sounds like you unpacked the aar and included the jar inside Feb 22 05:37:42 Can someone help me with restructuring this method to get around some of the "This Variable Might Not Have Been Initialized" errors I'm getting? http://pastebin.com/hX8Unn0Y Feb 22 05:37:45 but since you expect people to read minds, that's all the help you're gonna get Feb 22 05:38:10 t0astt, then initialize your variables first Feb 22 05:38:13 + Feb 22 05:38:27 = null or 0 or 1 or whatever as appropriate Feb 22 05:41:29 pfn: That won't help because since I'm accessing some of the variables within inner methods they need to be declared final. I have one thing I just thought of to try, though Feb 22 05:42:23 assign a new variable after calculating Feb 22 05:43:18 instead of that, can I just inflate a layout before I use it in my MaterialDialog.Builder() ? That would solve this problem right away Feb 22 05:43:30 Because right now I'm doing this Feb 22 05:43:32 .customView(R.layout.myshifts_new_shift_dialog) Feb 22 05:43:44 But if I can inflate it before I need to call it there, it'd make it simpler Feb 22 05:43:55 :) Sorry. I can provide more info. And no I did not unpack the aar. I just included it as a dependency in the Maven pom. For some reason, when I deploy to the device and it attempts to execute, it wants the R$layout class, so I get a NoClassDefFoundError, which makes sense since the .aar does not contain the class. So I was trying to rebuild it. Feb 22 05:44:47 ok, I tried adding a checkbox to the list row, and setting an onclicklistener on the whole row that toggles the checkbox Feb 22 05:44:57 However, the original question was why the archive tool would not package up the R.class and its inner static classes, when it would include the BuildConfig.class was sitting in the same intermediate directory. Feb 22 05:44:57 it works, but doesn't animate how I'd like it to :( Feb 22 05:45:42 because, the aar spec says no R Feb 22 05:46:32 And there is no way of overriding that? Feb 22 05:46:38 But that is great info. Feb 22 05:46:58 Thank you. Feb 22 05:47:41 After I saw the same behavior in both Gradle and Maven, I figured it had to be the tool they were both invoking. Feb 22 05:55:56 your consuming tool is broken Feb 22 05:56:06 the maven plugin sucks Feb 22 05:56:43 speaking of plugins, someone's using retrolambda in my plugin, neat... Feb 22 05:58:51 fbrier, build using gradle, not maven Feb 22 06:00:19 fbrier, or update your maven plugin Feb 22 06:04:16 <_genuser_> anybody have recommendation for irssi plugin for marking user away? Feb 22 06:04:58 pfn did you add plugins / scripting to qicr ? Feb 22 06:05:02 <_genuser_> nvm, google should have been first stop Feb 22 06:05:03 js / lua Feb 22 06:05:07 no Feb 22 06:05:09 not yet Feb 22 06:05:31 it's quite low on my list of things to do Feb 22 06:05:46 sure, probably headache for support Feb 22 06:09:05 hm, this is irritating. not until API 21, can you hint BLE about connection priority. so if the peripheral isn't smart enough to do upgrade priority when lots of data will xfer, then you'll be forced to run at low priority and things take forreeevvverrr Feb 22 06:09:39 * g00s seriosuly thinking about limiting ble functions to api 21 just for less hassle Feb 22 06:09:54 <_genuser_> ugh brb Feb 22 06:10:49 <_genuser_> hey ppls Feb 22 06:10:54 <_genuser_> hey ppls. Feb 22 06:11:33 hey thepoosh Feb 22 06:11:37 ! Feb 22 06:11:43 ! indeed Feb 22 06:11:45 sick today Feb 22 06:11:49 man flu ? Feb 22 06:12:09 thepoosh all that sprinting .... Feb 22 06:12:17 nah Feb 22 06:12:23 it snowed over the weekend Feb 22 06:12:47 you dont get sick from the cold Feb 22 06:12:56 in fact, cold improves your immune system Feb 22 06:15:08 yes i know Feb 22 06:15:14 my sister is a doctor Feb 22 06:15:23 i got something from my kidsa Feb 22 06:15:25 kid Feb 22 06:15:28 kids Feb 22 06:15:52 and staying home locked up moving from AC to snow kinda messed me up Feb 22 06:18:08 thepoosh so you're going to take it easy for a while and work from home :) Feb 22 06:18:16 maybe Feb 22 06:18:24 for now, i'm resting Feb 22 06:24:12 <_genuser_> can someone highlight my nick and say something? please. Feb 22 06:25:37 _genuser_: Feb 22 06:27:35 <_genuser_> thepoosh: does it send you back an away message? I'm messing with an away script. Feb 22 06:27:42 no Feb 22 06:27:56 <_genuser_> oh well, need to mess with it more then. :) thanks. Feb 22 06:28:43 <_genuser_> it's nice that it keeps an away log.. Feb 22 06:29:17 thepoosh what do the kids like to do in their spare time Feb 22 06:29:35 <_genuser_> his kids or all kids? Feb 22 06:29:36 g00s do you have any example code you could post from your project that shows how to use observer/subscriber for something Feb 22 06:29:39 my oldest is 3 and the youngest is 1 Feb 22 06:29:45 <_genuser_> pretty open ended question there. Feb 22 06:29:55 they don't really dio anything Feb 22 06:30:04 <_genuser_> 3 and 1. that's an awesome time. Feb 22 06:30:11 :D Feb 22 06:30:26 <_genuser_> boys girls? Feb 22 06:30:52 <_genuser_> I think a girl is the only time men openly get all girly and freely admit to doing girly stuff and actually nobody thinks of them any different. Feb 22 06:31:17 but then girls get cooties sometime around 5 Feb 22 06:32:37 lasserix there are lots of good tuts, did you see parts 1-4 http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/ Feb 22 06:32:47 yeah but those are snippets Feb 22 06:32:52 lasserix also , do you know JS ? Feb 22 06:32:53 i kinda wanted to see in a an actual project Feb 22 06:32:58 nah not really Feb 22 06:33:00 ah, ok Feb 22 06:33:06 i can kinda read it Feb 22 06:33:13 <_genuser_> g00s: I meant daughters. Feb 22 06:34:07 hi Feb 22 06:35:03 like for instance, i have a custom view. has some compound views, lots of text, fits in a big scrollview. right now the user can pick locations, where each location has one of those. to get the data from the web api, takes 2 seconds. So what I was thinking is to starta service, download all of them, prepare them for view modeling, then serialize them and also put them in a map that a presenter can subscribe to. so when the map Feb 22 06:35:04 changes, the presenters (that are subscribed by onattach living with the view) will udpate the display (only when they are visible) otherwise the data will be serialized down so it can also be read offline/ loaded faster Feb 22 06:35:44 for rx stuff, just trying to figure out what;s the best way to for instance, let the presenters suscribe to the map observable Feb 22 06:35:54 lasserix: https://github.com/path/android-priority-jobqueue Feb 22 06:35:56 guess that would be what DI / dagger is for Feb 22 06:35:58 sounds like you want that Feb 22 06:36:00 naplam no Feb 22 06:36:08 oh no? Feb 22 06:36:09 i want to download ALL of the locations, regardless of priority Feb 22 06:36:16 lool Feb 22 06:36:22 they must be available for offline viewing, so the priority is not so much the question Feb 22 06:36:24 what's the best way to fetch a text file from a http server and have the content end up in a String rather than a file? Feb 22 06:36:42 tegee okhttp response response = requet.response.body.tostring Feb 22 06:36:48 or something like that Feb 22 06:36:50 lasserix: ok, whatever.. Feb 22 06:36:55 its too late.. been working too hard Feb 22 06:36:59 nighty night people Feb 22 06:37:02 Napalm: priority queue to solve which problem? just loading Feb 22 06:37:03 cya g00s Feb 22 06:37:04 oh ok goodnight Feb 22 06:37:10 hey Napalm Feb 22 06:37:10 lasserix: yes Feb 22 06:37:10 priority queue is just one small part of it ;p Feb 22 06:37:18 oh going, gnight Napalm :) Feb 22 06:37:58 lasserix: thx, I'll have a go Feb 22 06:37:58 just wish there were more github projects with rx java Feb 22 06:38:41 anyone know the basis of creating a chooser that allows a user to pick a new default even though one is already set? Feb 22 06:40:37 knapper_tech: think you can take user to clear default for that intnet, then onresult launch yours so they can pick it as default Feb 22 06:42:01 lasserix, I've gotten that workflow up and running. I've seen some apps that seem to be able to force the "always" "just once" buttons to show up Feb 22 06:42:17 the prompt when the resolver doesnt' find a default Feb 22 06:43:40 close to just disassembling one =X Feb 22 07:00:15 lasserix: I can't find the "body" bit. snippets on the web all seem to use a bufferedReader to assemble the HttpEntity content into a string Feb 22 07:00:17 lasserix i wouldn't rx all the things yet. just use it on the periphery for now Feb 22 07:01:28 get a firm grasp of the basics, subscription side effects ... and then build larger chains that encompass more and more things Feb 22 07:02:07 I think a first step toward converting to Rx is whenever you use some observable interface (onError/onSuccess, or any similar listener interface) Feb 22 07:03:57 yeah. like i made observables out of my bt-classic and ble device scanners. and the blacklist is an observable. and the cached devices is an observable, whalla - all these get chained together, no state Feb 22 07:06:15 lasserix if you watch the video, there is one rule: dont mutate state outside of the chain ;) Feb 22 07:08:01 besides upping the view pager limit, what's the goto-way to reduce the work required to re-dislpay a bunch of views? Feb 22 07:09:13 CedricBeust presumably, you are pretty good at java concurrency ? Feb 22 07:10:01 g00s: Enough to know that I'll never understand the subject fully :) Feb 22 07:11:06 i was going through the android BLE code and think i found some serious concurrency-related design flaws (multiple threads accessing unsynchronized state). one of those, holy cow this is either super serious - or i just don't know what i'm doing. if i write up the bug on pastebin, would you look it over before submitting it? Feb 22 07:11:33 before i submit it (and make an ass out of myself :) Feb 22 07:11:46 Sure, but no promise :) Feb 22 07:12:16 thanks Feb 22 07:12:42 g00s what i saw of the bl code seems like a lot of the multithreaded stuff is based on principles of emergent state Feb 22 07:13:03 What's the principle of emergent state? Feb 22 07:13:23 ~you don't really need to synchronize what is transient, or at least its not as important Feb 22 07:13:39 *transient and cyclic, i guess Feb 22 07:14:27 Not sure I understand. Not synchronizing when reading means you might read stale values (best case scenarios) or corrupt ones (if the writes aren't atomic) Feb 22 07:15:02 yeah. the BLE apis require you register a listener. that listener is called on one of several binder threads. state there is being mutated on those binder threads and your app's thread. its not good Feb 22 07:15:17 Yeah doesn't sound good Feb 22 07:16:06 you mean 4.3+ ble api or 5.0+? Feb 22 07:16:11 when i saw that i thougt, you have to be kidding ... but surely, this was written by googlers and they know what they are doing :) Feb 22 07:16:21 Ashiren both Feb 22 07:19:02 Ashiren are you familiar with the BLE apis ? Feb 22 07:19:55 nah Feb 22 07:24:36 although Feb 22 07:24:52 is this common to lose so many ble advertising packets? Feb 22 07:25:07 i have something that advertises every second, it lies next to phone Feb 22 07:25:33 but sometimes phone picks up every 2, 3 or even 5 seconds Feb 22 07:26:01 its hard to say. if on 5 you will be using different scanning apis. on 4.x on some device, startLeScan only gives you the first received packet Feb 22 07:26:29 so you have to repeatedly start/stop the scans Feb 22 07:26:40 i do that on one device Feb 22 07:26:44 the other one works fine Feb 22 07:26:50 i mean still loses packets Feb 22 07:26:54 but i dont need to restart Feb 22 07:28:44 ok Feb 22 07:28:47 so Feb 22 07:29:11 Someone clicked an ad in my game Feb 22 07:29:18 from Australia Feb 22 07:29:31 lets celebrate! Feb 22 07:29:40 $2.62 Feb 22 07:29:51 well, 2 people clicked Feb 22 07:29:53 that will buy a vegamite sandwich Feb 22 07:29:54 $554.45 eCPM Feb 22 07:30:05 from Australia at least Feb 22 07:30:12 Actually I have never made this much money Feb 22 07:30:23 $5.38 Feb 22 07:30:36 last two weeks were crap though Feb 22 07:30:52 0 yesterday, and $.01 the day before. Feb 22 07:34:37 Agamemnus i hate to break it to you, but you're not getting rich, or even coming across circumstance altering amount of money from a javascript jigsaw puzzle Feb 22 07:34:53 or from advertising on mobile in general Feb 22 07:37:45 Agamemnus: I dare you to do an app the normal way, that we do it ... Feb 22 07:38:45 Agamemnus i friend recommended this to me http://www.amazon.com/How-Build-Billion-Dollar-Entrepreneurs-ebook/dp/B00J3C4RE6 Feb 22 07:38:57 i plan on reading it too. maybe it will give you some ideas Feb 22 07:39:02 Agamemnus: I also dare you to not be evil Feb 22 07:43:27 shmooz, sorry, what's the normal way? Feb 22 07:43:46 not using phoneGap Feb 22 07:43:51 I SEE Feb 22 07:43:53 Like it matters Feb 22 07:44:02 The better the game gets, the less people click Feb 22 07:44:12 and then you have fit about basic things like Intents Feb 22 07:44:24 go Aladdin on us Feb 22 07:44:28 I will Feb 22 07:44:37 show you the... Feb 22 07:44:45 Agamemnus: your business plan wasn't really going to stack up though: youmade a game for 5 year olds, who typically don't buy much on their own... Feb 22 07:45:05 I'm "pivoting". Feb 22 07:45:43 actually 5-year olds are probably the best audience Feb 22 07:45:52 they just click randomly Feb 22 07:46:06 how does one pivot a jigsaw game ? Feb 22 07:46:09 That's why parents lock their phones from buying Feb 22 07:46:17 <_genuser_> no, you want games that even grampas will play. Feb 22 07:46:20 Source: parent of a five year old Feb 22 07:46:20 we should force him to learn java Feb 22 07:46:24 Yeah you should probably make fun parts of your UI look more like the ads... Feb 22 07:46:32 <_genuser_> like candy crush and they'll actually do IAP's and mean it. Feb 22 07:47:16 I meant that I am trying a new audience Feb 22 07:48:02 <_genuser_> anybody actually working on any game? Feb 22 07:48:27 I am targeting females on facebook... Feb 22 07:48:37 from rich countries... Feb 22 07:48:44 <_genuser_> first you said children. then you said females. Feb 22 07:48:51 <_genuser_> is it time to /ignore you? Feb 22 07:48:58 Well, you can't target children on facebook Feb 22 07:49:12 Only 13+. Feb 22 07:49:23 Not young children, anyway. Feb 22 07:49:32 he is being as evil as he can without breaking the law Feb 22 07:49:43 I basically targeted anyone who liked jigsaw games Feb 22 07:49:57 and then he stalks them Feb 22 07:50:01 But it turned out that 97% of the installs (from facebook) were female. Feb 22 07:50:21 So I started targeting females only -- that makes installs cheaper as I'm paying per view/impression. Feb 22 07:51:25 females what age? Feb 22 07:51:30 i am guessing mothers? Feb 22 07:51:43 since jigsaws puzzle games are primarly the entertainment of 5 year olds Feb 22 07:51:55 What age? I don't know what age actually. I've been trying to figure this out, still trying to find that. Feb 22 07:53:22 Ok, I got it Feb 22 07:53:24 if they don't play for awhile, he'll email them saying, how come you stopped playing? Feb 22 07:53:43 or something like that Feb 22 07:53:51 tell them how you stalk your app users Feb 22 07:53:53 There are 4 categories Feb 22 07:54:28 13-17, 18-24, 25-34, 35-44, 45-54, 55-64, and 65+ Feb 22 07:54:33 ok, that's 7 categories Feb 22 07:55:24 Trying to figure out who's installing Feb 22 07:55:47 take a picture when they smile Feb 22 07:56:28 don't forget to mute the shutter sound Feb 22 07:57:05 this is a little confusing because they combine installs and likes in one metric Feb 22 07:57:10 Not sure how to separate it. Feb 22 07:57:21 but, no likes today Feb 22 07:57:34 or you can take a picture when they press 'I Agree' Feb 22 07:58:46 weird pidcat isn't working on my laptop, worked on my desktop, should be same OS Feb 22 07:58:51 adb logcat works Feb 22 07:58:52 my strongest category is in the 45-54 and 55-64 ages Feb 22 07:59:10 yes as people age they become like children Feb 22 07:59:16 grandparents trying to keep their offsrpings offsprings busy Feb 22 07:59:27 Well Feb 22 07:59:37 So it's like this, this is lifetime installs Feb 22 07:59:51 24-78-64-60-52-40 Feb 22 07:59:58 The first category is 65+ Feb 22 08:00:05 last category is 18-24 Feb 22 08:00:14 congrats, you have taken over the world! Feb 22 08:00:34 the 13-17 range I just added so I didn't write it Feb 22 08:01:00 basically it's older females (maybe for their kids or themselves?) but really old females (65+) aren't downloading as much Feb 22 08:03:40 It also looks like Great Britain likes me a lot. Feb 22 08:03:49 at the end of the day how much you do really expect to make off a jigsaw puzzle game? Feb 22 08:04:09 I'm planning something else Feb 22 08:04:14 It's a lot worse than I expected Feb 22 08:04:18 I do like the statistics Feb 22 08:05:54 Hello Feb 22 08:06:05 hello Feb 22 08:06:10 How have I to change the manifest if I use libsuperuser calls in java code? Feb 22 08:06:20 Any ideas? Feb 22 08:06:45 The only thing that I can say is that you should never release a game that you think is better than other games where there are 1000000000000000 competitors Feb 22 08:07:04 because it is a sea of trash Feb 22 08:07:16 lol Feb 22 08:09:12 actually i got 45 ad impressions and $0 revenue from the UK today but almost all the revenue was from australia and the US. Feb 22 08:10:56 I am still really struggling with demographics Feb 22 08:11:27 It's very easy to ascribe the demographics I see to women with children. Feb 22 08:11:40 But is it really the case? I'm not convinced Feb 22 08:13:28 lol, a review of yelp app http://imgur.com/EJtzeCz Feb 22 08:13:32 the holy grail here is to know with certainty. There are a lot of things that can be improved if it was only kids Feb 22 08:14:02 Agamemnus can you take this to /r/androidapps or something ? Feb 22 08:14:20 g00s: they deserved it Feb 22 08:14:39 "sorry", I'm done for today Feb 22 08:15:24 lol Feb 22 08:15:50 g00s: thanks though Feb 22 08:16:11 I did post in /r/android but if it wasn't for IRC it'd have like 30 downvotes Feb 22 08:16:26 I'll try re-posting on /r/androidapps soon Feb 22 08:25:18 * jfpoole headdesks Feb 22 08:25:31 I can’t believe Android doesn’t have log2(). Feb 22 08:25:37 hi there Feb 22 09:34:04 anyone awake? Feb 22 09:38:44 * capella shhhhhhh :p Feb 22 09:39:04 :-x Feb 22 09:50:29 hi everybody... anybody can give me good tutorial about manage new tab browser app i have created little browser and i want to add multitab. Feb 22 10:10:26 hi all Feb 22 10:10:38 I activated the develop options in my android ... but I can't list the device in my ubuntu with adb Feb 22 10:10:52 my goal is to open a console Feb 22 10:14:11 neither with sudo I can list it Feb 22 10:49:47 aLeSD: try changing the USB mode it's connected as Feb 22 11:52:02 is it very expensive to redraw entire canvas every frame? if i want to handle basic 2d animation this way Feb 22 11:53:17 is canvas meant to be used this way. or will it feel abused and implode on me Feb 22 11:55:18 by ever frame i mean about 30fps Feb 22 11:57:02 isnt that how canvas works? Feb 22 11:58:31 i know it has it's own animation methods, but maybe they use some kind of built in optimization/hacks which give a performance boost i would not get manually doing it all myself Feb 22 11:59:45 but yeh i will probaby be ok. maybe even have a second canvas frame to draw everything on before removing the old frame and making the new frame visible Feb 22 12:02:07 i guess i could also go tile based and just redraw the previous tile(background) after moving an entity on top.... but making my graphics into a tile system just for this when the performance increase wont matter seems a bit pointless now Feb 22 12:06:05 <_genuser_> so while(byte_var=fis.read()!=-1){ str+=byte_var; } is going to be quite slow due to string being immutable. any suggestions? Feb 22 12:06:47 <_genuser_> don't want to allocate really large buffer to read. just want to read and store. Feb 22 12:17:29 is there a best practice way to store datepicker values to sqlite, through a content provider, seeing as ContentValues won't hold any of the date types? (I'm thinking of using a formatted string for contentvalues and then saving as a datetime in sqlite) Feb 22 12:19:31 why cant I use the class LatLngInterpolater Feb 22 12:41:05 _genuser_: Use StringBuilder? Feb 22 12:47:31 hey guys Feb 22 12:47:35 anyone here using RxJava? Feb 22 12:54:35 looking for an adapterview class that supports a tree structure, if anyone knows of one.. ExpandableListView is sort of along those lines but only supports 2 levels it seems Feb 22 12:55:02 thinking of just flattening my data structure and tracking the "level" of each node which might just be the easier way, though it seems like a hack Feb 22 13:23:06 <_genuser_> yknils: heh, I just realized I should use BufferedReader and use readLine since I know it's just text. Feb 22 13:24:37 Anyone worked with this : https://github.com/neokree/MaterialNavigationDrawer ? Feb 22 13:26:46 _genuser_: In any case you should really never do += for String in a loop. Feb 22 13:28:04 _genuser_: use StringBuilder Feb 22 13:37:04 I've got a resource png file. I get is a drawable, convert it to bitmap, and use it as the actionbar icon Feb 22 13:37:33 Then i got a lot of margin left on the icon shifting the image and the title alot to the right Feb 22 13:37:50 why is that? and how can I prevent it Feb 22 13:38:05 the image is perfectly cropped Feb 22 13:42:39 hi ... why I sudo sdb devices doesn't list my device ? Feb 22 13:43:59 aleSD there could be many reasons Feb 22 13:44:03 aLeSD: Did you enable usb device debuging ? Feb 22 13:44:05 if you are on windows, sometimes restarting helps Feb 22 13:44:11 Did you install drivers ? Feb 22 13:45:52 Nightwalkerkg yes Feb 22 13:45:58 I am on ubuntu Feb 22 13:46:13 aLeSD: Udev rule missing with the ids? Feb 22 13:47:07 yknils: yes ... but I am running the adb as superuser Feb 22 13:47:59 Do you get any errors or it's just not showing up ? Feb 22 13:48:03 yknils: Do I need udev rules with superuser privileges ? Feb 22 13:48:32 aLeSD: http://stackoverflow.com/questions/21236049/list-of-devices-attached-is-empty-on-ubuntu-12-04 Feb 22 13:49:14 aLeSD: I think the adb_usb.ini mentioned on that page is the right way, i remembered similar problems... Feb 22 13:49:22 Nightwalkerkg: however it's not showing up Feb 22 13:49:52 aLeSD: No, the rules should not be needed with superuser. Feb 22 13:52:30 aLeSD: ps waux|grep adb, is the adb-server running as root? Feb 22 13:53:25 root 6639 0.0 0.0 22324 1464 pts/2 Sl 14:49 0:00 adb -P 5037 fork-server server Feb 22 13:54:18 [16293.744407] usb 3-1: Product: Aquaris_E5_HD Feb 22 13:54:24 that's from dmesg Feb 22 13:54:29 aLeSD: Good, did you try adding the id to /root/.android/adb_usb.ini ? Feb 22 13:55:37 aLeSD: ...And restarting adb-server Feb 22 13:57:00 no way Feb 22 13:57:21 [16293.744399] usb 3-1: New USB device found, idVendor=2a47, idProduct=0c02 Feb 22 13:57:36 I just added 2a47 in that file Feb 22 13:58:31 at this point I think the problem is device side Feb 22 13:58:57 i debugging options I have USB debugging active Feb 22 14:12:15 I did it ! Feb 22 14:16:30 I want my app to be navigable by tags in the bottom of the screen Feb 22 14:17:26 but I don't want new Activities for each tab Feb 22 14:18:17 I was looking at TabHosts Feb 22 14:18:23 which uses activities for each tab Feb 22 14:18:38 Is there new ways, or is that still the way to go? Feb 22 14:35:04 Hello people Feb 22 14:35:44 Do I need to know computer science to do Android Development? Feb 22 14:39:50 hm? Feb 22 14:40:07 yes probably Feb 22 14:40:21 at least java basics and/or some programming experience Feb 22 14:43:07 So I should start with a computer science code? Learn all about algorithms etc? Feb 22 14:44:36 a java tutorial would be a good start Feb 22 14:47:24 i think there are some java tutorials out there with an android focus too Feb 22 14:49:25 Thanks for the tip. I guess I'm not too late to join the android development field. Feb 22 14:49:56 I find it very interesting that companies are willing to pay good salaries for android developers but when you look at the earning of the applications, it isn't much Feb 22 14:50:04 Very contradicting Feb 22 14:50:13 earning of applications? Feb 22 14:50:41 Ads, In-app Feb 22 14:50:56 like when you read case studies, they all say the same thing Feb 22 14:51:15 its about the amount Feb 22 14:51:44 when 1.000.000 buy in in-app purchase for a dollar, im still a millionaire :) Feb 22 14:51:58 also it depends what are the apps for Feb 22 14:52:04 Come on man, Feb 22 14:52:07 are they for broad audience in google play? Feb 22 14:52:33 Honestly, I don't even know where the real money in Android is Feb 22 14:52:35 or like in my company, i write some alert system which connects to detectors Feb 22 14:52:58 I identified a bitmap that is resulting in massiveme memory consumption Feb 22 14:52:59 Ashiren: that's what I was thinking Feb 22 14:53:01 megaloden: most companies don’t earn money using their apps Feb 22 14:53:03 ok "massive" Feb 22 14:53:07 apps are just a gateway to their services Feb 22 14:53:17 or also what you might call something to control the "smart house" Feb 22 14:53:29 Working for enterprise and building business softwares like for the banks, hospitals etc Feb 22 14:53:29 but still, it's the root cause of my memory bump. I know for a fact that I only need 8 bits to render it sufficiently Feb 22 14:54:06 I need to pull it out into a custom image view or...? Feb 22 14:54:27 Ashiren: you are working for a company which build 'smart' products for the home? I too am into this gig but really far behind everyone who are actually developing :( Feb 22 14:55:43 megaloden: its a startup. yeah, you could say that, but for now theyre focused on other companies than home Feb 22 14:56:58 so they dont get money from selling apps alone Feb 22 14:57:04 automating industrial warehouse for example? Feb 22 14:57:13 apps are just part of the product, like drivers to printers Feb 22 14:57:20 the big android money is made with games i guess Feb 22 14:58:00 and nowadays, sometimes apps arent for earning money Feb 22 14:58:05 danijoo: that what i thought, but just a few make a lot. the majority make bread crumbs, from what I observed by reading case studies. I might be wrong Feb 22 14:58:16 like banks have websites, so they have also apps Feb 22 14:58:24 to make theirs services reachable in mobile Feb 22 14:59:00 so to be successful in this field, you need a contract from an establish business Feb 22 14:59:11 instead of making money from your own application Feb 22 14:59:13 interesting Feb 22 14:59:15 in my opinion, if you want to sell app/games or IAP on your own, it might be hard and you would need hell of a luck Feb 22 14:59:42 youll be better off just learning android and getting job somewhere Feb 22 15:00:02 megaloden, small money can mean a lot for an indie dev Feb 22 15:00:54 That kind of comforts me, Ashiren I always thought it was about IN-app, ad method which from the case studies gave me nightmare. People working for years and year and still not breakeven on their application. Whereas some people get recruited at a startup with just 2 years of self taught experience and earning 220,000 Feb 22 15:01:28 Ashiren: do you work online for your android work or do you actually work at a physical location for the job? Feb 22 15:02:02 both Feb 22 15:02:06 i used to online Feb 22 15:02:15 but right now were at finishing stage Feb 22 15:02:31 so i need to be there physically Feb 22 15:02:41 but when its over, ill work online again. Feb 22 15:03:15 because another thing is we have several phones in company which we can test Feb 22 15:03:31 Most of the gigs you get are from freelancer/odesk type sites or do you have network who recruit you via referrals etc? Feb 22 15:03:38 so i have ACCESS_FINE_LOCATION in my manifest. it seems that even if i dont turn location tracking on, android still turns GPS on while my app is launching, causing it to appear as “High battery use” in the location manager Feb 22 15:03:48 is this known behaviour? Feb 22 15:04:05 and any way of stopping it? i only need fine location for one specific subscreen of th app Feb 22 15:04:27 anyway will talk to you guys later. need to go. peace Feb 22 15:10:36 samskiter: are you maybe using flurry? do you remove location listener? Feb 22 15:10:54 FINE_LOCATION will have high battery use, no matter what Feb 22 15:11:02 while location is using Feb 22 15:11:06 *being used Feb 22 15:11:13 * sry too much caffeine pills Feb 22 15:11:18 bluecup: ahhhh yes i am using flurry Feb 22 15:11:22 :) Feb 22 15:11:29 does that grab full network location? Feb 22 15:11:32 samskiter: happened already Feb 22 15:11:40 you have to deactivate location reporting in flurry Feb 22 15:11:54 it activates automatically if it finds location permission in manifest Feb 22 15:12:09 bluecup: thanks very much! i was slowly removing things from the app and wondering where this location request came from Feb 22 15:12:24 that was legendary debugging :) Feb 22 15:13:21 samskiter: no problem, had that issue a few times already :) Feb 22 15:16:40 hi guys I'm having issues with a progress notification: I probably update it too often and it results in too much cpu usage. What do you suggest? How much should I wait to update my notification? Feb 22 15:16:41 anyone here doing something in RxJava? Feb 22 15:17:05 or should I do something else such as queuing the updates with a handler or something like that Feb 22 15:17:58 I am looking for a website which presents every kind of native interface (tabs, effect...) Feb 22 15:19:13 I’d go with this one: http://androidniceties.tumblr.com/ Feb 22 15:19:23 if you think anything besides google’s design guide Feb 22 15:20:02 thx Feb 22 15:31:46 hi, I'm trying to load a listview as another listviews footer (I know, selection adapter).. but for some reason I only get 1 view to display in the footer listview, any suggestions....(using the same code same everything but using include in xml instead of add footer in the program works just fine) Feb 22 15:38:41 I still have some issues with the common "adaptor" issue. where i have a object class that handle the download of the object ect ... and contert to class via gson. How when i add this object to the adaptor. and then user EG: scroll to end of the list. and i tell the dataholder object to load a next set. i get er (adapter is not modified from a background thread). i figured out i could use object.clone() to prevent this. so that the object added Feb 22 15:39:28 Any peeps can helpout a newbie with android x86? Feb 22 15:47:48 Terramd, If I remember right, android-x86 project has its own channel in freenode Feb 22 15:49:51 I dont see it on the list channel Feb 22 15:50:06 Terramd, dont know the name sorry Feb 22 16:00:57 hey.. anyone know how to install play store on rooted GT-P7500 chinese version? Tried Google Play services 6.7.76 (1745988-030 & 032) w/Play Store 5.2.13 & 5.1.11 & 5.0.32.... no luck Feb 22 16:01:50 Tried downloading a pack from xda-dev? Feb 22 16:02:04 tried a few various packs from xda-dev Feb 22 16:02:31 closest i can get is run the app, login, instant crash at EULA Feb 22 16:02:50 i've cleared cache/data, turned off connected services/apps in the google account... Feb 22 16:03:35 Just place all the necessary files in /system Feb 22 16:03:54 And reboot Feb 22 16:06:13 i guess part of the problem might be i don't know what 0xx of google play services i need on GT-P7500 because it didn't come with play services, so i can't figure that out Feb 22 16:06:15 anyone know? Feb 22 16:06:25 Holla! Feb 22 16:07:09 RabbiGlickman: this is more of a #android-root question Feb 22 16:07:31 k i'll try there Feb 22 16:07:34 thanks Feb 22 17:05:20 anyone in here work for google? Feb 22 17:06:52 why do you care :P Feb 22 17:07:18 i was hoping to get some tips on the application process Feb 22 17:07:44 just ask your question Feb 22 17:10:03 it's not really a specific questions, just some general tips Feb 22 17:21:12 hello Is it possible to install APK without user interaction Feb 22 17:21:14 ? Feb 22 17:21:29 guys, I built an android app now I want to build many alternative apps using it by just changing some links and icons, how best to achieve this, please help Feb 22 17:22:01 min2, adb install example.apk Feb 22 17:22:20 programmatically i want to achieve this Feb 22 17:22:37 sounds like a couple malware questions just hit the chan Feb 22 17:22:50 You can say Feb 22 17:23:31 I have an app in user mobile which will download other app in user phone without user insteraction Feb 22 17:24:31 parco, just coincidence :D Feb 22 17:25:14 min2, I do not think you can achieve that Feb 22 17:26:18 I have seen apps and heard about these Feb 22 17:26:19 hello meadhikari, i have to make the same, an app for many entreprises, and i will change the logo, some colors and database...but for the moment i dont have reflected to this problem. Maybe with gradle... Feb 22 17:26:20 things Feb 22 17:26:34 means someone in this world made it possible Feb 22 17:28:13 jerome[fr], i was searching for something like, "Blank Activity" "Fragment Activity" as shown when you create a new project in android studio, I just do not know the right word to search for Feb 22 17:29:53 mhhh maybe i dont understand what you want Feb 22 17:30:48 jerome[fr], I want exactly what you described, i put my variables in gradle too but I wanted to ease it a bit further Feb 22 17:33:55 meadhikari: okey, you are much more avanced than me, i dont know if it is a better solution...android specific classes ? or just do a big app and select your ressources case by case, if your ressources is not too big Feb 22 17:37:54 Hey guys, i'm working on an an app which requires video playback. I'm doing all video frame rendering in OpenGL and C through JNI - there's 3d elements involved and want to keep the codebase for this non-platform dependent Feb 22 17:38:24 Is there any drawback in using hte media player in Java and passing the OpenGL texture ID to the C side? Feb 22 17:38:41 I have this working, just wondering if there's much performance overhead to doing the video decoding on the Java side vs. native Feb 22 17:38:54 I'd imagine it's mostly forwarding functions Feb 22 18:06:37 hi guys, using card layout, i have some items have alpha set as 0.5 based on some condition but as I scroll I multiple element having aplha set as 0.5, how do I fix this. Please help Feb 22 18:09:25 meadhikari: What is the condition? Are you using ListView? Feb 22 18:09:44 TacticalJoke, its cardlayout Feb 22 18:10:15 its a simple if condition to check if the item already exists in preference Feb 22 18:10:46 The image and other text are not repeated just the alpha thing is being repeated Feb 22 18:16:21 Hello everyone, does anyone have a link to how to set up CI using Jenkins for Android? Feb 22 18:16:22 :) Feb 22 18:16:54 When Picasso loads images into a ListView, if the user scrolls really quickly, does Picasso cancel the downloads for the views going off screen? If so, does it cache the partial download and resume? Just curious. Feb 22 18:17:02 cancels Feb 22 18:17:06 K. Feb 22 18:17:49 hi all, just got my knickers in a twist with an object containing a context that inherits from a class marked serializable. seems that you could come up with version of serializable that *requires* you to pass in a context during deserialization. has anyone, by chance, already invented a de/serializer that does this? Feb 22 18:20:50 your architecture is whack if you're trying to serialize objects that contain context Feb 22 18:21:15 you could use gson or some other lib that allows you to customize serialization Feb 22 18:23:22 JacobTabak: yea. well it evolved like this: I have a class of objects that store ‘locations’. I shows these in a list in a fragment so i add them to “args” by serializing them. Then I decided I also wanted to show the “current location” at the head of the list, so i used some polymorphism on location to create a ‘CurrentLocation’. In order to back itselt with data about the actual current location, the current Feb 22 18:23:23 location class needs a context (to access google apis etc)… Feb 22 18:24:30 you should serialize a model Feb 22 18:24:40 it seems like you're serializing a model+controller Feb 22 18:24:50 make it 2 separate classes Feb 22 18:25:04 specifically don't put methods in your models Feb 22 18:25:24 just make the thing that gets serialized contain pure data Feb 22 18:25:38 i have a separate ‘locationmamnaer’ singleton. but the currentlocation object still needs a context to talk to it Feb 22 18:26:08 you can pass in the context later Feb 22 18:26:10 don't serialize it Feb 22 18:26:17 JacobTabak: yes i’ve done that Feb 22 18:26:34 but that means that all my ‘location’ object methods have context passed in as an argument Feb 22 18:26:37 seemed sub-optiomal Feb 22 18:26:42 thats the way to do it Feb 22 18:26:48 thats why every android api method has context as a parameter Feb 22 18:27:35 fair enough. seemed like bad encapsulation that suddenly because i’ve added a currentlocation object, now all my regular locations need contexts passed in Feb 22 18:27:51 (is in, it’s in their metho sign, but unued) Feb 22 18:27:52 maybe inheritance isn't the right approach then Feb 22 18:27:56 method signature* Feb 22 18:28:10 and yea youe'r right that's not good Feb 22 18:28:29 bit stumped about what to do then Feb 22 18:28:33 if not inheritance Feb 22 18:28:41 seems a perfect case for polymorphism. Feb 22 18:29:17 seems to me like these methods shouldn't be wrapped up on the model Feb 22 18:29:22 also, needing the contexts passed in means i can’t have methods like ‘equals’ up in the abstract class Feb 22 18:29:26 model represents data, gets serialized Feb 22 18:29:33 other classes can work with the models Feb 22 18:29:50 samskiter: try to think in terms of data and operations on data Feb 22 18:29:54 as two separate things Feb 22 18:31:19 hi i am trying to create a simple image view activity, for some reasons i am getting endless nested views like http://i59.tinypic.com/2vxhhk8.png Feb 22 18:32:01 there is no looping nothing, still entire activity looks like gone into endless loop presenting multiple windows Feb 22 18:33:23 jacres: JacobTabak thing is, i cant event easily subscribe the current location object to location data when it is reseialized - I have no context to do that :(* Feb 22 18:33:29 all i have used is ImageView imgView=(ImageView) findViewById(R.id.imageViewer); Feb 22 18:33:37 imgView.setImageResource(R.drawable.ic_notifications_welcome); Feb 22 18:33:45 in the onCreate Feb 22 18:34:06 and not sure why its creating funny endless loop of views Feb 22 18:35:12 as in, i could remove all knowledge of context from current location and externally subscribe it to the location object. but i’d like to do this once it’s reserialized… i suppose it’s not too critical and in the case of an android app i can just use a resume callback in the application class. (CurrentLocation is fine as a singleton) Feb 22 18:35:52 “externally subscribe it to the location manager” ** Feb 22 18:35:55 i have pasted the code here http://fpaste.org/188978/14246301/ Feb 22 18:37:57 Anyone know how to reverse the direction of a RotateAnimation? Feb 22 18:39:01 ServerCrash, are you supplying a background to your activity? Had issues like that on my galaxy nexus with transparent background on parent layout if scrolling would smear Feb 22 18:39:43 whatitis: yes , let me try to remove that Feb 22 18:39:57 What is your background Feb 22 18:40:18 android:background="@color/black_overlay" Feb 22 18:40:22 i removed that still same issue Feb 22 18:40:53 did black overlay have an alpha? Feb 22 18:41:04 set it to a solid color and test Feb 22 18:41:42 Anyone know why even while using a service my activity gets closed while being in the background for a while? Feb 22 18:42:03 whatitis i removed the background, still the issue is same. here is the layout http://fpaste.org/188987/42463049/ Feb 22 18:42:06 AndreYonadam: you activity has nothing to do with your service right? Feb 22 18:42:29 jacres: so are you saying it’s fine to have refactored and added a ‘context’ argument to all location object methods? Feb 22 18:42:59 samskiter: to be honest, I don't have experience in using location objects Feb 22 18:43:26 ServerCrash, do you have a App Theme set, what is the default background for your theme? Try setting that relative layout background to a solid color to test, or check theme background Feb 22 18:43:26 samskiter: originally, my app is like a gps app so it has to keep running in the BG. So I decided to start it from a service to keep it running in the background but that didn't help. I don't know how all these navigation apps and music player apps don't get shutdown while being in the background. Feb 22 18:43:33 samskiter: but, it's often a good idea to separate data (model) from operations on the data Feb 22 18:43:49 jacres: these are home grown location object, just what happens to be in my moder. the general thing going on here is - i had a bunch of model objects that didnt need a contet. then i have a special kind of model object that now does need a context. Feb 22 18:44:14 samskiter: can you have a .context member of each location object? Feb 22 18:44:19 whatitis