**** BEGIN LOGGING AT Mon Nov 17 03:00:00 2014 Nov 17 03:00:41 its not using android at all i just thought id ask here if someone knew those error codes and thought maybe it was an AIDE isue with properties or something Nov 17 03:02:20 callMeQ You won't have internet access without a manifest. Nov 17 03:04:48 Thank you Nov 17 03:08:25 Has anyone seen JakeWharton? :D Nov 17 03:08:28 i have Nov 17 03:08:31 :) Nov 17 03:09:46 do not summon Him unless you have the appropriate tribute Nov 17 03:10:19 JakeWharton: I'm using OkHttp. I'm liking it. I'm holding an OkHttpClient globally ("public static OkHttpClient Globals.httpClient = new OkHttpClient();"). Should I ever close the OkHttpClient or the Response? Nov 17 03:10:26 Is it okay to just never close anything here? Nov 17 03:10:40 you should close responses Nov 17 03:11:15 Oh my word, after over 20 hours of working on this... it took a one word google search to find the answer. Jasus. Nov 17 03:11:36 Should I close the response body? I don't see a 'close' method on Request. Hmm. Nov 17 03:12:04 ThymeCypher: and what was that answer? (and/or that search) Nov 17 03:12:09 Wait, my brain's not working. Nov 17 03:12:19 Wait, it is working. lol Nov 17 03:12:33 I thought I was mixing up requests and responses for a moment. Nov 17 03:13:44 Leeds ContactsAccountType Nov 17 03:14:23 Which lead to "You need an EditSchema", which is all I've been looking for this whole time :P Nov 17 03:15:10 JakeWharton: So, I'm only using the body (httpClient.body().getStream()), should I simply close the body and nothing else (httpClient.body().close())? Nov 17 03:15:34 s/httpClient/response/ Nov 17 03:15:48 that's should be fine Nov 17 03:16:54 Okay. Also, if I'm using something such as Jackson to parse (e.g., "objectMapper.readTree(response.body().charStream());"), it's okay to allow Jackson to auto-close and stuff, right? Nov 17 03:16:57 JakeWharton should is a dangerous word :) Nov 17 03:17:13 Because Jackson apparently likes auto-closing. Nov 17 03:17:16 TacticalJoke: yes Nov 17 03:17:20 JakeWharton: Thanks. Nov 17 03:17:38 I guess I was worried about interfering with keep-alive, but I suppose that's separate (in OkHttpClient, not response.body()). Nov 17 03:18:26 Then again, OkHttpClient doesn't have a 'close' method at all. So I guess it's simpler than I was thinking. Nov 17 03:21:07 keep-alive is directly correlated with closing the response body Nov 17 03:21:51 Hmm. So if I close the response body then I don't get keep-alive? Nov 17 03:22:16 no Nov 17 03:22:24 you have to close Nov 17 03:23:01 Oh. I guess you meant that I have to close to get keep-alive at all. Nov 17 03:26:24 I see. From WP: "If the client does not close the connection when all of the data it needs has been received, the resources needed to keep the connection open on the server will be unavailable for other clients." Nov 17 03:26:48 Actually, scratch that; I'm looking at the wrong section. Nov 17 03:33:17 I'm so rusty on HTTP. I guess keep-alive (from the client's point of view) applies to the request, not the response. Is that right? Nov 17 03:33:26 it applies to the connection Nov 17 03:33:34 which spans both Nov 17 03:34:06 Okay. I'm trying to figure out why closing the response body doesn't prevent keep-alive. Nov 17 03:35:54 ok I may have hit a bump... Nov 17 03:36:07 it wont let me set the gravity in listview... Nov 17 03:40:11 is it possible to start a background job independent of respective process ? Nov 17 03:41:05 not quite sure what the end of that means, but you can use an intent service which is in its own process Nov 17 03:41:19 JakeWharton: So there's no way that response.body().close() will prevent keep-alive, right? Just making sure I understand. Nov 17 03:41:20 why i need it is: i want to monitor package removed event separately. once the app is uninstalled that background job will do some cleaning works and kill itself. Nov 17 03:41:30 TacticalJoke: yes Nov 17 03:41:47 Okay. Nov 17 03:42:06 t2mkn: uninstall will kill all your processes Nov 17 03:43:19 JakeWharton: ya thats the issue. that is why i need the app to start something which should not be killed immediately after uninstall. Nov 17 03:43:56 that won't work Nov 17 03:45:07 JakeWharton: using NDK its possible. some says so. but i want it in only java Nov 17 03:46:38 its important to get an uninstall notification. say i need to get some survey as why user uninstalled my app. Nov 17 03:46:49 I made a Closeables.closeIfNotNull method. It saves one line but it makes code *way* easier to read. Nov 17 03:47:03 Also, of course, Closeables.closeQuietly. Nov 17 03:47:09 (Which calls Closeables.closeIfNotNull.) Nov 17 03:49:31 t2mkn you can forget about that ;) Nov 17 03:49:54 do what other apps do, put a 'submit feedback' thing in the overflow menu / nav drawer Nov 17 03:50:12 "try-with-resouces" would be nicer than all of the above, though. Nov 17 03:50:16 resources Nov 17 03:50:56 g00s: that i have done. but not all uses give a review. like 80-90% users just install and uninstall. so want them give me some sort of information as to why they uninstalled. Nov 17 03:51:31 you can't force them Nov 17 03:52:12 but a popup in browser can give me some info Nov 17 03:52:17 beside, if an app required me filling a questionnaire after uninstall, i'd just click (x) Other: fuck off Nov 17 03:52:54 its about you g00s, but not all do. Nov 17 03:53:00 most do Nov 17 03:53:29 bad enough when apps do that when they're still installed Nov 17 03:54:35 JakeWharton: ya if you annoy them a lot. :D Nov 17 03:55:18 i pretty much insta-uninstall anything which displays unsolicited notifications Nov 17 03:55:21 Overly attached app: "Why are you going into app settings?" Nov 17 04:09:35 t2mkn: maybe if you make an excuse to take them to a site like to compare their scores to other players or something like that .. Nov 17 04:12:07 shmooz: the actual requirement is different. i need to start a processes which will not be a part of my app process. when my app get uninstalled, the other started processes will do some background job and kill itself. Nov 17 04:12:54 t2mkn: then try doing it without letting the user know so that they don't get annoyed Nov 17 04:15:59 shmooz: ya thats why m looking for the solution. Nov 17 04:18:25 so you will install 2 apps? Nov 17 04:18:31 only way it could work Nov 17 04:19:40 he probably wants to take over the device to punish the user ;) Nov 17 04:19:51 pfn: 2 apps, no not a good way. Nov 17 04:19:54 how dare you uninstall my app! now you pay! Nov 17 04:20:23 shmooz: hahaha ya hope so :D Nov 17 04:20:50 t2mkn you're going to have to look for more lefit way to find out why users uninstall your app Nov 17 04:20:56 *legit Nov 17 04:21:31 its not like you're the only one asking this question (why don't people engage?) Nov 17 04:21:57 g00s: lots of user uninstall because they dont want to use it. but some find some other app better then mine. i need to know what make them switch. Nov 17 04:22:04 what about all the people who never install it in the first place ? Nov 17 04:22:51 you can't even get their reason Nov 17 04:23:39 if i can get 1 reason, i may keep 100 users in new install Nov 17 04:23:44 like i said, engagement is a basic metric and there are lots of tools to measure this - pick any. any that aren't going to get your app banned because it tried some stupid behavior Nov 17 04:24:00 so interested in ONE cause Nov 17 04:24:45 the ONE cause would be the fact that you are lingering after I have uninstalled Nov 17 04:26:15 if I hear from someone the app has that behaviour, it's good enough reason not to try it, and people will talk about it in the comments on google play Nov 17 04:26:47 shmooz: :D but people will never know that its happening. Nov 17 04:28:08 t2mkn: not everyone is clueless Nov 17 04:29:57 shmooz: i can do that easy way. make a shell script, execute it using exec() and destroy every thing. the code will never be found in my app also. cause i will make them from web and memory. Nov 17 04:30:02 hows that :D Nov 17 04:31:28 sounds evil Nov 17 04:31:51 shmooz i don't think we're talking to someone with all marbles intact Nov 17 04:32:12 the answer could be: because it's a casual market? and only big apps or extremly useful apps are remembered Nov 17 04:32:25 and most of dev does not follow the evolution of the ui? Nov 17 04:33:04 there are too many factors, but i think the biggest is the shadows created by big apps Nov 17 04:34:15 bpe: ya thats also a cause Nov 17 04:38:33 UI is not a big factor of popularity, if it is then Google might not have got popular at its early stage. Nov 17 04:39:07 humm disappointing gmail update, thought it'd look a bit happier, like Inbox Nov 17 04:39:11 not sure, i think most of ppl react more on the ui than on the content itself Nov 17 04:40:06 talking about evil behavior, if you register your app in device administrator at install (need user acknowledgement), few weeks later when this same user will want to uninstall this same app, he would have probably forgot of this device administrator thing Nov 17 04:40:19 and this block the uninstall of an app, you have to first unregister from dev admin Nov 17 04:40:52 and there is no message telling you that, at least until 4.4 (i haven't tried on L) Nov 17 04:41:01 play store shows it... Nov 17 04:41:27 that device admin has to be disabled Nov 17 04:41:36 ahh Nov 17 04:41:58 good, was not the case since ages with the regular uninstall from system/apps/ Nov 17 04:42:10 s/system/settings/ Nov 17 04:44:06 i went to go blacklist / eclude a device today, didn' realize there are like 20 different samsung note 3s Nov 17 04:44:13 bpe: that also bring 1 star ratings. like "How the hell I uninstall?" etc. Nov 17 04:44:28 yup, this is how i discovered that lol Nov 17 04:46:11 useful snippet for disabling ALL devices (or renabling) from the console dev: switches = document.getElementsByClassName("GGL*****EB"); for(i = 0; i < switches.length; i++) switches[i].click(); Nov 17 04:46:23 you have to replace "GGL*****EB" by the corresponding classname though Nov 17 04:50:46 adq: so what u did next, removed device admin from app :D Nov 17 04:52:03 * g00s wishes there was some way to know if service was bound without having to carry around an isBound flag set in **Bound callbacks Nov 17 04:52:16 which is some kind of code smell Nov 17 04:52:47 t2mkn, i don't recall, probably updated the desc and responded individually when ppl expresses their issue, but i could not remove it since i needed it from keyguard Nov 17 04:53:54 Hmm, I think I prefer Gson to Jackson. Nov 17 04:53:55 Small and simple. Nov 17 04:53:58 adq: ya one can respond politely to those 1 star for nothing. and nothing happens next. they dont re-rate Nov 17 04:54:17 On my JVM tests, Gson tree-parsing is showing as way faster than Jackson tree-parsing. Especially the first run. Nov 17 04:54:21 Though my tests may be bad. Nov 17 04:54:37 yup, around or less than 1/5 are changing their ratings after I replied Nov 17 04:55:00 it's an average from my apps Nov 17 04:55:22 ya, thats an issue. my average is like 1/25 Nov 17 04:55:32 wow even worst Nov 17 04:55:40 yap Nov 17 04:56:41 TacticalJoke, you should go on, it has been few days now that you're looking for perf on your reddit parsing and json Nov 17 04:56:48 adq: the solution is, need to get a broadcast event, just before uninstall. Nov 17 04:57:19 adq: How do you mean? Nov 17 04:57:45 t2mkn, not sure it is possible Nov 17 04:58:32 TacticalJoke, i meant, you are struggling with performances and also design of how you should parse the reddit tree Nov 17 04:58:44 you should continue your dev and go back on that later Nov 17 04:58:45 :)) Nov 17 04:58:58 Oh. Performance seems fine. I'm just a perfectionist. :) Nov 17 04:59:04 I think I have the answer now, finally, though. Nov 17 04:59:11 :) Nov 17 04:59:28 wonder when Chainfire will upload stuff about 5.0 and root Nov 17 04:59:40 i'm spending too much time on little details, despite i am not a perfectionist Nov 17 04:59:43 pclover: bing harder Nov 17 04:59:55 adq: its not possible i guess, unless u start a separate process independent of your apps process. and track the files or directories Nov 17 05:00:12 to bad there isn't a simple selinux switch Nov 17 05:00:16 like normal linux does Nov 17 05:01:47 wonder if it affect people that have to use loki probably not afik Nov 17 05:03:01 enough tried, now i should dev something different app. Nov 17 05:04:01 Just curious if it's possible to pre patch a kernel outside of the device say on your pc before flashing or does that require rebuilding it. Hum Nov 17 05:04:13 fingers getting excited, mind rolling on with music. but but but.... what should i develop next? Nov 17 05:04:41 i'm playing with particules on Android Wear right now: http://imgur.com/a/TQrvC#1 Nov 17 05:05:00 (no OpenGL, just a surfaceview/canvas) Nov 17 05:05:04 TacticalJoke: nothing is perfect Nov 17 05:05:37 adq: nice one. Nov 17 05:06:02 any running video Nov 17 05:06:29 yup but with other renderers: https://www.youtube.com/watch?v=1ZMdNf0IhJs Nov 17 05:06:44 i also made the colors more vivid for the fractal tree Nov 17 05:07:02 going to release a free version (but light) Nov 17 05:07:44 especially on android ;) Nov 17 05:08:06 yeah, i hesitated to go ono the in-app road and make pack of renderers & co Nov 17 05:08:21 but it's too much work tbh, and not very cool for the users Nov 17 05:09:05 m liking it. šŸ‘ Nov 17 05:09:10 :) Nov 17 05:10:43 What do you folks think about using System.nanoTime() to time code running on Android? Nov 17 05:10:54 very expensive compared to currentmillisec Nov 17 05:11:05 and not sure you will have always a precision of nano order Nov 17 05:12:23 TacticalJoke: ya its expensive and not always perfect. i have tried. Nov 17 05:15:38 Ok, so I have listview, and I am curious how can I center the text under each of my frozen columns? I can with tablerot table layout just fine, but I want this to populate when user connects to my app. Nov 17 05:16:43 I tried using gravity center but that just centers all the text to the middle. Nov 17 05:18:18 Demon_Jester, take a look at space: http://android-developers.blogspot.fr/2011/11/new-layout-widgets-space-and-gridlayout.html if you are targetting API >= 14 maybe Nov 17 05:18:31 otherwise it's hard to answer your question without more precise info Nov 17 05:18:48 well this will be on my tablet and its 19 Nov 17 05:18:53 so that should be fine. Nov 17 05:19:18 otherwise everything is possible with linearlayout and relativelayout Nov 17 05:20:19 yeah its possible if I put gaps that are long enough to reach china Nov 17 05:24:09 adq I wish I could use textview with array adapter Nov 17 05:24:50 I am just looking for something I can use in array adapter, and can center my text under each frozen column. Nov 17 05:25:03 Demon_Jester: Could you use ListView? Nov 17 05:25:38 TacticalJoke I can but to center the data that is given when user connects doesn't line up with frozen columns. Nov 17 05:26:38 I can use table row and table layout, but I can't use arrayadapter, and if more than one person connects the app crashes. Nov 17 05:26:52 Connects? Nov 17 05:27:36 hi. I'm trying to use the NsdManager to look for a network service. I have some very basic discovery code, but every time I tell the app to search, it either a) crashes the AVD b) it crashes the real device Nov 17 05:28:39 the app is really basic - based on the single activity project, with only a few lines of code added Nov 17 05:29:54 You can pull apart a kernel and put it back together yeah? Nov 17 05:30:04 well the ramdisk Nov 17 05:31:37 If I'm doing something like "foo = a.b().c().d();", would it be bad form to catch a potential NPE (where the NPE just shouldn't happen but my app should probably try to deal with it cleanly anyway)? Nov 17 05:31:59 (catch NullPointerException e) just feels wrong. lol Nov 17 05:32:29 catch ( Nov 17 05:35:03 I'm adding items to my list, then calling notifyDatasetChanged, but it doesnt update the items in the listview Nov 17 05:35:07 Do I need to do something else? Nov 17 05:35:19 ciree: Could you post code? Nov 17 05:35:20 be sure to call it from uithread Nov 17 05:35:28 and that your array has changed Nov 17 05:36:13 @Subscribe Nov 17 05:36:15 public void onCatsLoadedEvent(CategoriesLoadedEvent ev){ Nov 17 05:36:17 mCategoriesList.addAll(ev.getCategories()); Nov 17 05:36:19 mAdapter.notifyDataSetChanged(); Nov 17 05:36:21 } Nov 17 05:36:38 TacticalJoke my irc client messed up, did you say anything after "could you use listview" Nov 17 05:36:51 ciree use pastebin.org don't do that again. Nov 17 05:36:52 Oh, no. Nov 17 05:37:16 It updates if my adapter getView returns a new view each time, if I check for null it doesn't update Nov 17 05:37:27 Its kind of laggy, so I'm trying to check for null Nov 17 05:37:39 Demon_Jester: my bad Nov 17 05:38:30 http://pastebin.com/t4pd9jAY Nov 17 05:38:32 pasty Nov 17 05:38:57 hi, id there a market place for android controls like there is for iOSā€¦ cocopods, coacocontrols.com, etcā€¦??? Nov 17 05:39:06 Is there a bug in your getView method? Nov 17 05:39:27 http://pastebin.com/NmCTbXWz Nov 17 05:39:44 So....it doesn't update if my getView does the null check Nov 17 05:39:50 If I don't have the if there, it updates Nov 17 05:39:54 TacticalJoke I may have to use expandable listview or something.. Nov 17 05:40:00 check a tutorial with listview and viewholder ciree Nov 17 05:40:00 But I was noticing performance...so i was wondering if I was doing it wrong Nov 17 05:40:04 ciree: That's wrong. Nov 17 05:40:11 inflating like this is wrong in getview Nov 17 05:40:31 Whats wrong about it? What should I look up? Nov 17 05:40:48 Its acutally a grid view Nov 17 05:40:50 You're not doing anything when there is a recycled view. Nov 17 05:41:04 You need to setText and so on in both cases. Nov 17 05:41:23 sooo...inflate only if null. otherwise do the sets? Nov 17 05:41:31 Do setText in both cases. Nov 17 05:41:35 inflate() only if null. Nov 17 05:41:36 awesome Nov 17 05:41:40 your great! Nov 17 05:42:14 As adq said, you should read the tutorials. Nov 17 05:47:47 Hi, is there a source of controls and fragments and stuff for Androidā€¦? Sort of like cocoacontrols.com is fo iOS...? Nov 17 05:48:56 * regan sees some controls from telerik and tutorials and stuff but is there no real common market place..? Nov 17 05:55:21 hey Nov 17 05:57:09 regan: thats a good question, i'm curious as well Nov 17 05:57:51 * regan is reading something of stackoverflow about it Nov 17 05:58:07 http://stackoverflow.com/questions/10745360/open-source-android-libraries-reusable-views-viewgroups-adapters-etc Nov 17 06:05:24 how can I get a button to fill the entire width of the the screen? like a really wide rectangle button at the very bottom of the screen Nov 17 06:05:29 what are 5 good reasons to avoid Xamarin..? Nov 17 06:05:52 I have android:weight=1 but that doesn't seem to do anything Nov 17 06:06:48 bilb_ono do you have android:width="0dp" ? Nov 17 06:06:54 layout_width Nov 17 06:08:10 http://arstechnica.com/gadgets/2014/11/the-nexus-10-lollipop-and-the-problem-with-big-android-tablets Nov 17 06:08:11 so android:layout_with="0dp" and android:weight="1" ? Nov 17 06:08:25 " It's just that there aren't many reasons to use an Android tablet with a screen this large, and if Google isn't willing to make its redesigned OS and apps work great on these big widescreen tablets, why should other developers bother?" Nov 17 06:14:01 wow, according to this my flea bitten lumia 521 will get Windows Phone 10 Nov 17 06:15:00 g00s: Interesting article. Nov 17 06:16:09 jfpoole i'm not the kind to comment on websites about stuff, but when i read things like this i want to should "you guys, have no idea what a PITA it is to create responsive android apps" Nov 17 06:16:18 *to shout Nov 17 06:16:47 g00s: This is the problem, though ā€” it should be *easier* to create responsive Android apps. Itā€™s a lot easier on iOS, for example. Nov 17 06:19:02 i've never found google to very cognizant of developer UX; whether tools or android apis anyhow - seems like their attitude is "we have you a way to do it (no matter how hard) so do it Nov 17 06:19:20 s/have/gave Nov 17 06:19:29 for example, fragments Nov 17 06:19:34 Blergh. Nov 17 06:19:47 Iā€™m shocked at how much time we waste on Android. Nov 17 06:19:53 Esp. compared to iOS. Nov 17 06:22:44 i spent the batter half of a day debugging a bluetooth problem with a user owning a sammy note 3; just wound up excluding it (and its 20 brethren) from developer console Nov 17 06:23:20 Heh. Nov 17 06:23:35 The only problematic devices we deal with are Tegra 2 devices that run Android 4.x. Nov 17 06:23:47 oh, i'm doing BT so all devices are problematic Nov 17 06:23:50 :) Nov 17 06:23:53 g00s: is iOS really that much easier to develop for? Nov 17 06:24:03 g00s: and why do you think that is? Nov 17 06:24:17 RustyShackleford i haven't in a while so I can't comment; you'll have to ask jfpoole Nov 17 06:24:25 Moo? Nov 17 06:24:38 RustyShackleford: Tools are *so* *much* *better*. Nov 17 06:25:18 the tools in eclipse monitor are so embarassing Nov 17 06:25:23 interesting, i've never tried any of them. I thought people didn't like Objective-C Nov 17 06:25:33 you can use swift now anyhow Nov 17 06:25:46 I always thought that android seemed much easier to develop for compared to desktop applications Nov 17 06:25:58 O.o Nov 17 06:26:14 Objective-C is a little ā€¦ odd Nov 17 06:26:36 That said itā€™s nice to be able to call C and C++ code directly than having to go through the PITA that is JNI and the NDK. Nov 17 06:26:43 i like it. i like the message passing aspects anyhow. wish it had namespaces Nov 17 06:26:53 jfpoole yeah Nov 17 06:27:15 java is kinda isolationist, unless you're on the jvm Nov 17 06:27:40 but heh, java 9 is getting JNI 2 - can't wait to see that on android :P Nov 17 06:29:32 jna is a good solution for ffi Nov 17 06:29:42 that it's not popular in android is sad Nov 17 06:29:55 google looked at it one time, just decided too slow i think Nov 17 06:30:14 it doesn't have to be google endorsed Nov 17 06:30:21 do you think we'll ever see .NET on android? Nov 17 06:30:33 there's xamarin Nov 17 06:30:40 i think it was the codinghorror guy who said that we should have used .NET instead of Java Nov 17 06:30:40 and that is net on android Nov 17 06:30:54 I disagree Nov 17 06:31:03 android is successful because of java Nov 17 06:31:45 ios was successful with a "weird" language. devs learn if there is a payoff Nov 17 06:32:09 android was succesfull because it was the only free viable alternative to iOS , oems had nothing Nov 17 06:32:22 even MS was caught surprised, nothing great to show Nov 17 06:33:03 there was this company called blackberry ... Nov 17 06:33:04 ios had the reason of being first to market behind its success Nov 17 06:33:16 iOS wasnā€™t first to market. Nov 17 06:33:30 BlackBerry, Windows Phone, etc. were there before iOS. Nov 17 06:33:39 i think for a touch UI though, it was Nov 17 06:33:54 blackberry and pocketpc can't even be compared to what ios did Nov 17 06:35:20 pocketpc was just a sad attempt at slapping win32 on mobile Nov 17 06:35:51 and blackberry was the status quo with j2me garbage Nov 17 06:36:45 Is manual tree parsing gonna be faster than object mapping in something like Gson/Jackson? Nov 17 06:36:57 Yes, but does it matter Nov 17 06:36:58 I'm guessing so, because the latter uses reflection. Nov 17 06:37:02 Okay. Nov 17 06:37:51 network IO takes seconds, the fact that your post processing afterward takes 100ms vs 50ms is pretty irrelevant Nov 17 06:40:47 True. Nov 17 06:50:19 hi anyone know how to fix 'EGL_emulationļ¹• eglSurfaceAttrib not implemented' ? Nov 17 07:07:19 Cervantes: is that in genymotion? If so I just restart the virtual device and it's gone Nov 17 07:12:11 jush: nah, its android studio Nov 17 07:33:20 Does there exist an Android DatePicker which autocompletes the century? I.e. if I enter 03 it autocompletes to 2003 (the closest date within the last 100 years?) Nov 17 07:55:24 I am using DatePickerDialog Nov 17 08:16:14 barq: shoudnt be hard to do that on your own Nov 17 08:16:22 i dont think there is a picker or that Nov 17 08:16:31 Hello, I'm developing an app and not sure about the 'correct' use of a Service. I want to use a Service to change the active Activity. The Service is listening for commands via a TCP connection. From what I know, this is the kind of job, Services are covering. Am I right or missing some important point? Nov 17 08:17:08 change the active activity ? Nov 17 08:18:35 I have more than one Activity in my project and depending on the incoming commands, I have to change the Activity, shown on screen Nov 17 08:20:08 Echsenkoenig: its possible that way, although it sounds a bit.. inelegantly Nov 17 08:23:44 hi..what the best way to make the "rate my app" functionality from within an app? Nov 17 08:23:55 Just add link to product page in Google play? Nov 17 08:24:08 Assault: yep Nov 17 08:24:18 but dont make it a popping up dialog :> Nov 17 08:24:32 ok..so there is no more direct approach, like take the user directly to review page? Nov 17 08:24:40 yeah, no popups..just a link Nov 17 08:24:59 The Activities, showing different Activities on command and using a TCP connection to receive commands are given demands. Apart from this I'm free to do what I want. Nov 17 08:25:29 or is the product page in google play actually the same page where reviews are given (im new to Google play and Android dev in general) Nov 17 08:25:29 Assault: you can make a button that opens the play store app showing your app Nov 17 08:25:33 but thats all i think Nov 17 08:25:37 Hi I have a doubt here. I am validating each field while the field looses focus. That works fine. Now while submitting I want to check if any field still has error messages or isEmpty and want to disable the submit icon/button Nov 17 08:27:07 Assault: and whatever you do, don't do what EA do... pop up a dialog which offers the chance to rate 5*, or 1*-4* - and have the 1*-4* option take the user to your own feedback form, so only people who say they're going to rate 5* actually get sent to the store to rate the game Nov 17 08:27:11 Should I have an array to store the errors and check if error[] is empty if empty submit should work or else if error[]!=null submit is disabled Nov 17 08:27:30 Leeds, yeah sure Nov 17 08:29:17 so..if I use market instead of http in the start of the google play url, the devices open the google play insteda of browser, right? Nov 17 08:29:55 also, there are probably 10 libraries that do this Nov 17 08:30:18 you've seen this, right? http://developer.android.com/distribute/tools/promote/linking.html Nov 17 08:30:36 Assault: there are intents for that Nov 17 08:30:44 use an intent dedicated to market Nov 17 08:31:16 danijoo, so..is that a "yes"? =) Nov 17 08:31:29 thats a "read the link" Nov 17 08:31:41 +) Nov 17 08:31:53 ok Nov 17 08:32:17 (just double checking so I have understood correctly, i dont have an android device right now so I cannot test it) Nov 17 08:33:00 test it on an emulator Nov 17 08:33:16 an emu with play :) Nov 17 08:33:22 yep Nov 17 08:33:33 so the first thing you might want to consider is getting a device running the platform you're developing for Nov 17 08:33:50 Using the DatePickerDialog, is there a way to parse the date while the dialog is open or only after closing the dialog? Nov 17 08:34:28 Leeds, i have one, just now with me right now Nov 17 08:34:30 barq: DatePickerDialog#onDataChanged(...) Nov 17 08:34:42 onDateChanged* Nov 17 08:35:01 thats called everytime the date changes Nov 17 08:35:33 any idea about getting SERVICE_NOT_AVAILABLE on gcm.register(sender_id) ? Nov 17 08:36:09 shmoon: have you tried to google it? Nov 17 08:37:24 yup Nov 17 08:37:40 what does it say :) Nov 17 08:37:50 either GCM wasn't able to registeror you need to retry Nov 17 08:38:04 there you go ;) Nov 17 08:38:15 not available -> retry (later!) Nov 17 08:39:34 i have been trying for the last 1 day Nov 17 08:39:34 you cant really do anything else. The error might be on googles side of the wire Nov 17 08:39:40 hmm Nov 17 08:39:42 oh hm Nov 17 08:39:44 thats strange Nov 17 08:40:18 did you check if play services was installed on the device? Nov 17 08:40:28 and prompt the user to install/update otherwise? Nov 17 08:41:30 i am trying in my emulator actually. Nov 17 08:41:35 is play store app different from play services? Nov 17 08:41:45 Anyone here had problem with google maps gett OOM errors? Nov 17 08:43:04 yes, it's different Nov 17 08:44:56 shizzle; i have something in a service updating a notification, and then onDestroy calls stopForeground(true) but the notification is still there Nov 17 08:51:34 JakeWharton: ok I'll read up on play services. although this is funny http://pastie.org/9724661 Nov 17 08:51:46 first says its missing then the value dumped is 1 (true?) Nov 17 08:52:47 i have no idea what value is referring to since it's not in your code but it's likely an implementation detail of the play services client SDK so you can't know it means true Nov 17 08:56:48 ok Nov 17 09:17:39 wow, cool sensor http://www.gizmag.com/bsxinsight-wearable-lactate-threshold-sensor/34774/ Nov 17 09:17:43 lactate threshold Nov 17 09:31:19 Morning all Nov 17 09:33:22 * capella when'd the sun come up :? Nov 17 09:34:06 capella: it's 9:30 and we're still waiting Nov 17 09:34:43 yah ... 4:34a EST and covered in snow Nov 17 09:35:14 capella: are you *still* up or are you *already* up? Nov 17 09:35:17 Is there an easy way to color the status bar for Lollipop whilst using Theme.Holo? Nov 17 09:35:41 Estel: yes, the old way Nov 17 09:35:44 Goodmorning :) Nov 17 09:35:57 Ankhwatcher: I was hoping that there'd be some nice attr you could set >_> Nov 17 09:36:48 heh - *still up* Nov 17 09:36:57 Estel: well there is but you'll be setting a drawable background value to it Nov 17 09:37:50 Estel: http://jgilfelt.github.io/android-actionbarstylegenerator/ Nov 17 09:40:02 There's no status bar on the generator? Nov 17 09:40:20 Either way though, if it's not a trivial theme attribute, there's no timmmeee Nov 17 09:40:23 Estel: oh sorry, I thought you meant the actionbar Nov 17 09:40:41 No, I meant the status bar :P Nov 17 09:41:18 yeah, I think you may be stuffed on that one you can use the AppCompat theme or the Material theme to set the statusbar color, but I don't think the attribute will mean anything in any other context Nov 17 09:42:25 Estel: this person claims to have a solution: http://stackoverflow.com/questions/22192291/how-to-change-the-status-bar-color-in-android Nov 17 09:42:53 aye, but hassle Nov 17 09:43:13 well if you don't want hassle USE APPCOMAT! :D Nov 17 09:43:19 *COMPAT Nov 17 09:43:43 it makes theming so much easier it would make your head spin Nov 17 09:44:15 This is a project 90% done in Holo that needs to be feature complete tomorrow, I am not completely redoing the theme today ^.^ Nov 17 09:44:58 yeah yeah, I know Nov 17 09:45:32 but you should really check out AppCompat when you get a chance, it's so much easier to theme it makes me wonder how we survived Nov 17 09:50:18 is the api 21, google api system images not listing as a target for creating a virtual device in AS for anyone else? Nov 17 09:58:43 aaearon same, just tested Nov 17 10:07:50 Hi. I'm running an OpenCV capture app on my Nexus 4. When I quit the app by tapping the home button and when I tap the recent app list button, the process com.android.systemui crashes with an OOM. I checked the traceback on logcat and it is because of some code in android.graphics.BitmapFactory. I even tried setting excludeFromRecents="true" in my activity declaration. Any insights? Nov 17 10:09:15 yati maybe it's more your use of BitmapFactory rather than code problems inside it :) Nov 17 10:09:54 I aslo doubt it has anything to do with recents list appearance, more to do with your control or resume Nov 17 10:10:20 StingRay_, That's the confusing part. I am not using BitmapFactory at all. Nov 17 10:11:38 something is :) Nov 17 10:11:40 StingRay_, hmm, control or resume - can you tell me more Nov 17 10:12:11 StingRay_, Well com.android.systemui is. That's what the traceback says. Nov 17 10:13:07 pastebin the "whole" stacktrace Nov 17 10:17:23 StingRay_, there: https://dpaste.de/ewDh Nov 17 10:18:20 I've pasted some extra context. The action starts around line 25 Nov 17 10:19:31 so you are saying that in the activity that it is "returning/resuming" to you do not have an async that loads a drawable to a bitmap ? Nov 17 10:20:38 No. Nov 17 10:21:48 Anyway, if my code was somehow calling that function, won't the stacktrace contain my package name towards the bottom? Nov 17 10:22:01 Rather the exact call-site Nov 17 10:22:33 failing inside the thread that is controlled by the asyncTask Nov 17 10:22:39 so not sure, dont think it would Nov 17 10:23:00 Hmm I see. Nov 17 10:24:29 not sure, but do you do any loading of huge bitmaps ? Nov 17 10:24:31 must do Nov 17 10:24:34 somewhere :) Nov 17 10:27:10 Is it ok to subclass Activity, and pass to special property (specified in subclass) the data from one activity to another ? Nov 17 10:27:20 StingRay_, Trust me, I don't. Here's what my app does: It uses the OpenCV Camera to feed frames to a callback in my class, which does some magic on it with help from some JNI code. All is fine when the app is up. No errors. No OOMs. The moment I exit my app, this systemui process crashes. Nov 17 10:27:30 (I don't want to create serializable, and copy data... it is sooo ugly for me I think) Nov 17 10:27:47 And OpenCV does not use Bitmaps. They have their own structure for storing images. Nov 17 10:28:00 *I don't want to create intent and put extras that need to be copied. Nov 17 10:28:36 yati right the huge bitmap is from the camera feed then Nov 17 10:29:44 StingRay_, But it doesn't crash in the normal course of operation. Only when I exit the app. Nov 17 10:37:01 ? Nov 17 10:47:52 bluesm, what's wrong with extras? Nov 17 10:48:13 yati: Because to send an object, I need to make it seriazable == it's copied ? Nov 17 10:49:41 I'm a little confused. what is this google play services thing? Nov 17 10:50:37 like if i want to work with google apps this sdk helps ? but then I was thinking intents does that job no? Nov 17 10:52:08 bluesm, Hmm. I can't see how else to do that :\ Nov 17 10:52:17 Hi all, somebody experience with phonegap? Nov 17 10:52:37 FrancescoV: Phonegap #phonegap ? ;) Nov 17 10:52:39 shmoon: https://developer.android.com/google/play-services/index.html Nov 17 10:52:54 i cant find google play services in play store on android phone but on the web i do see it https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en - wonder why Nov 17 10:52:58 who has ops in here? can you add #phonegap ? Nov 17 10:53:41 bluesm: I know but looks like every user is sleeping in that channel Nov 17 10:54:23 yati: Well, maybe I shouldn't use new activities then. Nov 17 10:55:19 bankai_au: yeah read that Nov 17 10:55:43 what i understand is play services includes all the google apps (gmail, g+, maps, hangouts, etc.) to which you can interact through the place services client library (sdk) Nov 17 10:55:49 JakeWharton, Hello Nov 17 10:56:11 am I correct? Nov 17 10:56:15 JakeWharton, it looks like Picasso doesn't take into account image rotation Nov 17 10:56:31 Am i misunderstanding how this works, or am I right in saying that it's not being handled? Nov 17 10:56:55 For example: uploaded a photo taken on the phone, then downloaded it again. Photo is sitting at 90* Nov 17 10:57:18 Surely somewhere in the meta it would describe the image rotation or something? Nov 17 10:57:36 shmoon erm, all the components backend services required to use said elements yes Nov 17 10:58:14 everything from playGames to IAP's to ads Nov 17 10:59:23 ok Nov 17 11:00:11 Need a bit help with Android Time Square please. How do i allow user thath he can select only backward dates and dont even display further months only backward Nov 17 11:04:15 i think android has less tutorials/resources covering all the topics compared to the web development arena. not complaining just wondering if it's only me who finds that to be true. Nov 17 11:06:18 probably the same ratio as it is to age Nov 17 11:06:25 What's the best way to apply different color filters to different states of a drawable? (assuming I cannot change the drawable) Nov 17 11:07:32 how can I start emulator without android studio? Nov 17 11:08:09 EugenA: http://developer.android.com/tools/devices/managing-avds-cmdline.html Nov 17 11:08:43 EugenA: http://developer.android.com/tools/devices/emulator.html#starting Nov 17 11:08:54 found some information on the internet, but I cannot find all the binaries like android, emulator or avd Nov 17 11:09:42 but everything works fine if I work with android studio Nov 17 11:11:55 Ankhwatcher you can change the drawable is all respects, as in use a different one and also change the single one to many and different with .mutate() Nov 17 11:12:04 but not really sure what you mean change :) Nov 17 11:12:46 you can use filters on a muate() drawable to have 2 diff versions/colors, if thats what you mean Nov 17 11:15:58 StingRay_: I'm using a custom view (https://github.com/brendanw/PaymentKit-Droid 's FieldHolder) and although it is being told to style like an EditText AppCompat is not applying the brand color to it on Android versions < 5.0 Nov 17 11:16:23 as a result it looks like an EditText but where all the other ones turn blue when selected it stays black Nov 17 11:17:03 ok? Nov 17 11:17:04 so I wanted to (in Java) pull out the AppCompat Material EditText background and color it myself Nov 17 11:17:22 but it should only be colored in it's selected and activated states Nov 17 11:17:35 well is it not just drawable/bitmaps (9patches) ? Nov 17 11:17:45 in a stateListDrawable ? Nov 17 11:17:55 I just found a lazyman's solution though Nov 17 11:18:19 yes, so the question was how do I access and apply a color filter to some of the states and not all of them Nov 17 11:18:52 personally I would have a new one Nov 17 11:19:00 (the lazyman's solution: take one of the regular EditTexts on the screen and copy it's background) Nov 17 11:19:28 Ankhwatcher lol, no idea what that means Nov 17 11:19:39 copy it's background ? Nov 17 11:20:05 StingRay_: bzzzt wrong anwser: the Appcompat library changes regularly and putting somthing custom in an app to match it won't automatically adapt to the changes to it Nov 17 11:20:15 yes Nov 17 11:21:17 I mean I dont know what that means Nov 17 11:25:17 it's background drawable... looks and behaves exactly like I want the one being used by the FieldHolder to behave... so I copy it... Nov 17 11:26:06 ah, you mean copy the class lol. I thought you where meaning a mutate on the object :) Nov 17 11:26:20 well technically there is no such thing as a background drawable Nov 17 11:26:26 it's a stateListDrawable Nov 17 11:26:33 set as the background :) Nov 17 11:27:45 StingRay_: I mean copying it during execution in java, after AppCompat has tinted it and made it work the way I want it to Nov 17 11:33:29 hi, how i can solve this problem in my listview? http://cl.ly/image/0z3Y351z1j1R Nov 17 11:35:33 (18:12:07) malroy: >>JakeWharton: you'd have to pass the scoped ObjectGraph through the non-configuration instance of Activity Nov 17 11:35:33 (18:12:07) malroy: I'm wondering, but if I want to use presenter in fragment, how can I save ObjectGraph ? One of the solutions is to use Fragment.setRetainInstance(true). Ā But this can only be used with fragments not in the back stack. So what to do in that case ? Not use backstack for fragments or not use ObjectGraph if fragments but only in activities ? Nov 17 11:35:36 hi guys Nov 17 11:37:56 the last row is cutted Nov 17 11:38:06 JakeWharton there maybe? Nov 17 11:38:15 Timezones... Nov 17 11:41:08 anyone familiar with Bintray and jcenter? I am having trouble adding my project to jcenter Nov 17 11:46:20 StingRay_, Got the problem finally :) - I wouldn't have imagined this would be the problem. My graphics guy accidentally gave me a huge (~1MB) image for the launcher. Now when you tap the recents button, it needs to create a thumbnail of the launchers for all the recent apps. That's where it was getting the OOM. Nov 17 11:54:44 can you use the main camera as a light sensor? Nov 17 12:03:16 when I use FLASH_MODE_ON\FLASH_MODE_AUTO with my Nexus 4 I always get a dark picture. Is there a way to make the flash work like it is in the native camera application? Nov 17 12:04:56 anyone used pubnub and push notifications? Nov 17 12:06:31 TADP is a good way to set up an environment for an overwhelmed newcomer? Nov 17 12:06:55 ApplesInArrays: what do you want to do? Nov 17 12:07:20 Use OpenCV with a phone's camera preview to put boxes around faces. Nov 17 12:09:07 what is the correct way to determine if my app is the active one, i want to know if i should create a notfication or not when receiving a push message Nov 17 12:25:23 Still waiting on getting approved for the NVidia program req'd to download TADP Nov 17 12:27:08 is the api 21, google api system images not listing as a target for creating a virtual device in AS for anyone else? i cant find something online about this Nov 17 12:32:12 JakeWharton, ignore that I said previously. I see there is an open ticket regarding this where someone just needs to write test cases for the fix to be merged Nov 17 12:32:38 JakeWharton, if you could add this to the 2.5 goal that would be great :D Nov 17 12:35:18 does anyone have any ideas how I can detect if someone puts the finger over the camera Nov 17 12:35:19 Hi guys. Does emulator destroy and recreate activity on orientation change (Ctrl+F12) just like real devices do? Or it just redraw the picture? Nov 17 12:35:21 to detect a tap? Nov 17 12:36:07 Is there a nice way to try-catch a block of operations in Java/Android with a timeout exception? Nov 17 12:59:34 I found that onCreate() method is called twice for activities when I'm back to them if orientation was changed in activity started for result. Like, for instance, I start camera activity for result, change orientation there, make a shot, go back to my activity and onCreate is called twice. Nov 17 13:00:19 Is that because the first time it's trying to recreate and finds out that orientation is changed and then recreates again? Nov 17 13:00:34 This is the only explanation I came to so far... Nov 17 13:03:14 HI Nov 17 13:03:42 what is better, use parse to push notifications or create my own server side? Nov 17 13:08:33 TEGRA seems like a niec way to go Nov 17 13:08:39 NVidia Shield/TEGRA. Nov 17 13:13:03 somebody with some experience with phonegap. If you have a cordova plugin, how can you use this in your native app? Nov 17 13:16:54 im using sqlite database to store values parsed from a json feed. every time i increment the database version, along with the database, my preferences are also wiped out. is this the intented behavior and if so can i change it? Nov 17 13:28:25 FrancescoV better to ask in phonegap channel rather than here, this is android dev only Nov 17 13:28:57 StingRay_: ok Nov 17 13:29:03 phonegap/cordova is not native btw, and neither is your app if it uses Nov 17 13:29:04 :) Nov 17 13:29:26 Huh, never heard of phonegap. Nov 17 13:29:39 crapy thing, dont bother looking at it ;) Nov 17 13:29:57 Ehh, I looked. It seems to not be what I need, though. Nov 17 13:31:44 ApplesInArrays what do you need ? Nov 17 13:32:01 Use OpenCV with a phone's camera preview to put boxes around faces.\ Nov 17 13:32:20 you mean like androids facedetect ? Nov 17 13:32:32 perhaps. is that a project? Nov 17 13:33:05 no, it a part of android Nov 17 13:33:11 http://developer.android.com/reference/android/media/FaceDetector.html Nov 17 13:33:24 actually ,face detect is a part of what I need Nov 17 13:33:31 but I know I need to use other tools in OpenCV Nov 17 13:33:42 the face box was just an example. but now I know it won't work. Nov 17 13:33:46 Let's say... boxes around the eyes Nov 17 13:33:49 never looked at openCV Nov 17 13:34:00 hi, how would you test / qualify an android developer (qualification test for android developers) ? what is important? Nov 17 13:34:03 dont even know what it is Nov 17 13:34:07 I've been harassing grad students around America figuring out how their projects work Nov 17 13:34:19 what is better, use parse to push notifications or create my own server side? Nov 17 13:34:24 android-dev864 thats to vaige Nov 17 13:34:28 t0th_-_ GCM Nov 17 13:34:36 how i can put a admob fixed in a layout with listview? Nov 17 13:34:38 I'm really just in the most preliminary stages of development. Figuring out my environment, for instance. Nov 17 13:35:13 t0th_-_ you put it in the partent layou...your question sux :) Nov 17 13:35:17 layout* Nov 17 13:41:29 thanks master StingRay_ Nov 17 13:41:51 Phonegap is interesting as far as website wrappers go, yaeh? Nov 17 14:00:54 ahoy. How can I delete an image from the media store and the SD card, given only the content URI? Nov 17 14:01:09 without using the DATA column of the mediastore images table Nov 17 14:10:09 you mean without using File.delete() ? Nov 17 14:16:30 samskiter: File file = new File(cURI); file.delete(); Nov 17 14:31:41 is it possible to run the text to speech activity in the background? Nov 17 14:37:31 90 minutes in nvidia tells me I need a $300 Visual Studio to use its free, complete environment. Nov 17 14:38:54 surprise! Nov 17 14:41:06 It's not on setup requirements anywhere, and says it downloads VS... It mentions it after 10.9GB of downloads and setup. Nov 17 14:41:24 Setup will now exit. Nov 17 14:43:39 shmooz: That wonā€™t work will it? canā€™t use a content URI for a file? Nov 17 14:44:04 it won't Nov 17 14:44:40 yea, i just checked, the File(Uri) constructor requires a uri with the file scheme Nov 17 14:50:22 samskiter: yeah you have to get the DATA column and make your cURI equal that Nov 17 14:50:52 shmooz: I donā€™t even think thatā€™s correct. the Data column isnā€™t docā€™d to hold a file uri Nov 17 14:53:08 well it works for me on MediaStore.Video.VideoColumns.DATA Nov 17 14:53:17 I know when Iā€™m inserting, i grab my file uri and run a MediaStore.Images.Media.insert() and that returns a content URI. similarly for videos I have to use MediaScannerConnection Nov 17 14:54:04 shmooz: have you tried that code on kitkat? http://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework Nov 17 14:54:19 yes I have Nov 17 14:55:30 but with Video instead of images, and the user can delete the video that way Nov 17 14:56:48 worked on kitkat and gingerbread, but you still need to update parts of the mediastore like update and remove the thumbnail Nov 17 15:02:22 hi,i hope its okay to ask about emulator here. im doing unyaffs/mkyaffs2 to system.img and without even changing any files, emulator wont boot anymore, like it cant mount root http://pastie.org/9722340 . Is there some magic in packing back? Nov 17 15:02:40 dimer, try #android-root Nov 17 15:02:46 stop asking here Nov 17 15:02:54 so annoying Nov 17 15:03:34 lol, sorry for annoying you, but im asking only second time and just because first time was on a weekend Nov 17 15:04:59 and obviously, android-root is about something totally different, however im asking about development-related things Nov 17 15:05:06 so sorry for annoying you again! Nov 17 15:05:42 shmooz. could you do a contentResolver().delete() on the contentURI to get rid of those:? Nov 17 15:09:26 Now I've sunk 53 hours so far into figuring out how I should start. Nov 17 15:10:01 How should I go about setting up an environment for an app which uses OpenCV on an Android App which takes a feed from the camera preview? Nov 17 15:11:23 dimer, nope, not different Nov 17 15:11:33 android root is about system images Nov 17 15:11:45 here is all about app development Nov 17 15:13:43 ApplesInArrays: Did you check out http://opencv.org/platforms/android.html Nov 17 15:13:50 Yep Nov 17 15:14:36 There are step by step instructions in there... Nov 17 15:14:50 I think I need to keep a little log of the reasons why the tutorials fail Nov 17 15:15:20 I've been through quite a few of those instructions already Nov 17 15:16:48 A lot of the instructions are incomplete, a few of the sections are labeled "Theory" Nov 17 15:23:41 Is this (remove ad button next to the banner) allowed by the current admob policy? http://t.sql01.com/sc/eb55a3b2_1416232995.png Nov 17 15:24:52 samskiter: yeah you'd do like getContentResolver().delete(uri, null, null); Nov 17 15:25:56 shmooz: and thatā€™d take out the thumbnails? Nov 17 15:26:15 it should Nov 17 15:26:45 does anyone know how I would test that an exception is raised using robolectric/fest-android/junit? Nov 17 15:27:09 when I first load my MapFragment it is doing something heavy on the UI thread. Subsequent loads, even from different Activities, are fine. It is just that very first one. Any idea what it is? Nov 17 15:39:22 is it possible to use a service and listen to system events? Nov 17 15:41:45 How do we vertically align a GridLayout to CENTER? Nov 17 16:00:57 Is there a way to "lock" the user into a fragment until he's met a certain condition? Nov 17 16:01:52 Don't put logic into the fragment to navigate away until the condition is met. Nov 17 16:05:17 Hello guys, first time in this chat. Nov 17 16:05:27 anyone here using Google Maps? Nov 17 16:05:32 I have a developer account, but I want to publish apps both under my personal name, and apps under a brand name. Is it possible to have like "two publishers" under the same account? Nov 17 16:06:01 pieces029, that's what I'm currently doing, but there's still the back button and the main button. I assume I neither can nor should do something against the home button, but against the back button I should be able to do something Nov 17 16:11:06 I have a form in my app that loads in via fragment. The form has an ā€œadvancedā€ fields section that only shows up if the user clicks a button. What is best practice? Create another fragment or dynamically show/hide fields? Nov 17 16:15:41 updating my sqlite db's database version also seems to wipe out my shared preferences values. is that intended? Nov 17 16:17:53 Syzygy__: you can override the back button. But don't Nov 17 16:19:44 pieces029, not in a fragment Nov 17 16:20:14 you can... Nov 17 16:20:22 I have a developer account, but I want to publish apps both under my personal name, and apps under a brand name. Is it possible to have like "two publishers" under the same account? Nov 17 16:20:25 Anyone here have any experience with apps being listed as "Not Installed" after uninstalling them? Nov 17 16:20:43 And then getting: "Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]" because of it? Nov 17 16:25:22 i am having trouble with what a class is supposed to return. http://pastie.org/9725479 eclipse complains that this class must return a type Site, but it should be. Nov 17 16:29:53 skrite: You need to always return something, not just when a Site with that siteId is found in the ArrayList Nov 17 16:30:01 xim_of_compumax: No Nov 17 16:30:12 Sim Nov 17 16:30:16 SimonVT: thanks Nov 17 16:31:30 SimonVT: is there a way the list can return null unless the element is found? Nov 17 16:32:15 I don't understand the question Nov 17 16:32:24 skrite just put "return null;" at the end. Nov 17 16:33:00 If the element doesn't exist, then the iterator will exhaust. Nov 17 16:33:15 ThymeCypher: brilliant, thanks Nov 17 16:34:16 samskiter: you still there ? Nov 17 16:36:49 ooh, intellij 14 is out Nov 17 16:36:53 must download Nov 17 16:37:56 thou shalt Nov 17 16:41:07 hello Nov 17 16:42:47 Well this is annoying... Finally got it so that my account would be recognized and the one device I need said contacts to work on is being listed as "Device-Only, Unsynched" Nov 17 16:43:00 samskiter: try this way ... Uri uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id); getContentResolver().delete(uri, null, null); Nov 17 16:43:04 I can't believe how archaic Android's contact system is -_- Nov 17 16:51:55 I have two projects - a library and an app. When I install the app, it tries to launch the activity from the libraries package, anyone see this happen before? Nov 17 16:53:16 ThymeCypher: sounds like there is an activity in your library that is marked as launcher activity Nov 17 16:54:05 danijoo My manifest is completely empty - no activities or anything. Nov 17 16:54:23 Also did a file search, the package name it installs under does not exist in the source code at all. >< Nov 17 16:54:24 the libraries manifest Nov 17 16:54:40 Yep, that's what I'm talking about. All it has is a permission. Nov 17 16:54:55 thats expected. library project will be "merged" into your project with the same package name Nov 17 16:55:03 and manifests will be merged too Nov 17 16:55:24 Welp, I just changed the package name - the name doesn't exist at all in any library nor application source. Nov 17 16:55:29 Still insists on using it >< Nov 17 16:55:50 Anyone mess with the new material design stuff. I am using the new theming stuff and cant figur out how to theme a button background and have ripple still work Nov 17 16:56:22 When all else fails, clear cache. Here goes nothing. Nov 17 16:57:35 oops... Nov 17 16:57:44 eclipse crashes whenever I build and sign a package.. Nov 17 16:59:12 davidcorrado: The background is a ripple drawable https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html Nov 17 17:00:12 SimonVT: So in order to do a colored background and keep ripple you have to create the ripple drawable? Nov 17 17:00:34 Yes Nov 17 17:05:59 shmooz: thanks, will give it a go. will need to go an fetch the id too though :( Nov 17 17:06:28 any Google Map users here? Nov 17 17:06:48 where can I find best practises to deal with multiple connections to GCM per App basis? I read http://developer.android.com/google/gcm/adv.html#throttling but I don't know stuff such as how many connection from a single IP? Would them throttled as well moreover the per App and per collapse_key basis? Nov 17 17:07:03 mattblang: yes Nov 17 17:07:14 pieces029 do you use Support or regular MapFragment Nov 17 17:07:29 How do we vertically align (to center) elements contained in a GridLayout? Nov 17 17:07:47 samskiter: you get the id from BaseColumns._ID Nov 17 17:07:54 mattblang: neither, use the mapview Nov 17 17:07:56 Right now, they're aligned top-left, when I want middle-center Nov 17 17:08:25 mattblang: I use the MapView*, none-support if there is a support version. Nov 17 17:08:42 pieces029 ahh, I didn't have a key for API v2. It was removed right? Nov 17 17:10:01 samskiter: Uri uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; String[] proj = { BaseColumns._ID }; Cursor c = cr.query(uri, proj, null, null, null); int id = c.getInt(0); Nov 17 17:10:28 mattblang: not sure Nov 17 17:12:52 samskiter: and forgot to declare ContentResolver cr = getContentResolver(); Nov 17 17:13:38 Following the tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html . I edited it slightly http://pastebin.com/3p2iPjjz . Why won't the XML get loaded? Nov 17 17:13:54 Layout XML Nov 17 17:14:24 or maybe the new TextView pushes everything off the screen? Nov 17 17:14:57 Nm. There's another setContentView(textView). Nov 17 17:15:12 How would I add the textView to the layout instead of just showing a single textview? Nov 17 17:15:20 how do I figure this kind of stuff out on my own? Nov 17 17:16:14 or have the LayoutXML contain an empty TextView and update the text with the string in the received Intent after onCreate()? Nov 17 17:25:17 I have a ViewFlipper with 2 children: A ProgressBar and a Button. I want the The ProgressBar to be in the center of the ViewFlipper. Setting the ViewFlipper's gravity to center:both is not helping. What am I doing wrong? Nov 17 17:27:26 Does anyone have some recommended vmoptions for AS/IntelliJ to make it behave not awfully Nov 17 17:29:56 How can I go about copying from LogCat? Ctrl+C doesn't seem to do it Nov 17 17:30:38 ApplesInArrays In what? Nov 17 17:30:59 ThymeCypher: eclipse LogCat Nov 17 17:31:20 If Ctrl+C fails, usually right clicking and selecting copy works. Nov 17 17:31:30 right click does nothing Nov 17 17:32:03 Oh, I'm sorry .Figured it out. If I have the LogCat window detached, then I can't copy. Nov 17 17:32:08 Weird. Nov 17 17:32:27 if it's docked on the bottom, I can. Eclipse is becoming more fun by the day. Nov 17 17:34:25 http://pastebin.com/ediiH3Rg where do i start looking for ways to fix it? Nov 17 17:35:57 more verbose error: http://pastebin.com/qx65wstq Nov 17 17:40:38 ApplesInArrays: you are ending your try ending it with just /> Nov 17 17:41:07 Thanks, SimonVT Nov 17 17:41:21 just noticed the myself. Trying again. Nov 17 17:42:06 same error Nov 17 17:42:34 ApplesInArrays: and you have above the requestFocus line error too android:ems="10" > Nov 17 17:42:46 ApplesInArrays: that line should not end with a > Nov 17 17:44:28 repaste of everything: http://pastebin.com/MeMpKAPV Nov 17 17:44:35 I'm slowly deleting everything to try to figure out what's wrong Nov 17 17:45:25 What I changed is all in the onCreate(), so I imagine the error is somewhere in there. Nov 17 17:46:52 hi all ! I got an imageView, and I want that when users perform a double click on it, it's displayed "fullScreen" with the possiblity to pinch for zooming. Do I have to do a lot of custom dev for that, or is it natively implemented ? Nov 17 17:47:09 I send a broadcast via sendOrderedBroadcast(). From the broadcastReceiver i check whether it was send as an ordered broadcast via isOrderedBroadcast and if so, I will need to let the sender know that the intent was received. HOW do i do the last part? (letting sender know the intent was received) Nov 17 17:47:36 The error doesn't occur if I comment out // messageHolder.setText(messageToSay,TextView.BufferType.EDITABLE); Nov 17 17:47:43 here is part of my solution Nov 17 17:48:00 i set a resultCode from the broadcastReceiver, via setResultCode() Nov 17 17:49:03 but what i do not know, is whether i need to manually 'send' this resultCode back to the sender? And if so, how? Would i need a broadcastReceiver in the sender too to receive the resultCode? Or does Android handle this automatically? Nov 17 17:51:42 ok. editTexts shouldn't have a setText, they should use a setHint("string"); Nov 17 17:57:20 I figured it out Nov 17 17:57:44 setContentView must be called first, otherwise editText1 doesn't exist. It is the nullpointer, I suppose. Nov 17 17:58:23 g00s: This McDowell book is killing me :/ Nov 17 17:58:51 capella :D Nov 17 17:58:58 this is funny http://imgur.com/Y3g96lV Nov 17 17:59:48 Tis a rational market Nov 17 18:00:09 this is also funny Errors = (More Code)Ā² or E=MCĀ² Nov 17 18:00:50 * capella likes that one :p Nov 17 18:01:58 five stars Nov 17 18:02:11 false Nov 17 18:02:27 (More Code)Ā² leads to MĀ²CĀ² Nov 17 18:03:00 I don't know what to say. Nov 17 18:03:20 just admit to error Nov 17 18:03:27 I am Error Nov 17 18:06:13 I keep putting stuff in through the Graphical Layout... I'd like a TextView but I keep getting EditViews. Any reason why? Nov 17 18:10:34 is the Graphical Layout buggy? Nov 17 18:12:46 it sucks, yes Nov 17 18:16:36 is there a way of surpressing the app not responding message? Nov 17 18:16:55 please don't Nov 17 18:17:09 or atleast extend the waiting time Nov 17 18:17:57 no Nov 17 18:18:16 and it would be very counter productive if it would be possible Nov 17 18:18:19 no, you fix your app Nov 17 18:18:23 not extend the time Nov 17 18:18:25 well Nov 17 18:18:29 there is no well Nov 17 18:18:30 it might be to do with unity Nov 17 18:18:32 fix your app Nov 17 18:18:32 just move your stuff out of the main thread. Nov 17 18:18:32 no my app Nov 17 18:18:53 if you're asking here, it's your app Nov 17 18:19:01 ok Nov 17 18:19:04 if it's someone else's app, we don't care Nov 17 18:19:10 ok Nov 17 18:23:00 lol Nov 17 18:23:23 "is there a way of making it appear as if there are no issues with an app whatsoever?" Nov 17 18:23:30 instead of fixing the issues Nov 17 18:24:12 Yes, shoddy. Nov 17 18:26:05 "Lollipop's App Switcher Has A Bug That Shows Random Cards After You've Cleared Them All" lol, did anyone test ? Nov 17 18:26:44 Um so, on an emulator when you click on a edittext texfield no keyboard pops up. If I were to run my app on a real android device it would pop up right? Nov 17 18:27:04 Like I don't have to handle keyboard generation. Nov 17 18:27:13 can someone tell me if I can animate Vector Drawables through code? Nov 17 18:28:35 "Android TV Apps Will Be Screened And Approved By Google Before Being Available In The Play Store" -- so if you have an app that uses another piece of HW which Google reviewers would not have, what to do ? Nov 17 18:29:02 g00s: Like what? Nov 17 18:29:18 pieces029 ? Nov 17 18:29:26 What kind of hardware Nov 17 18:29:32 they can't use the app without the other piece of HW Nov 17 18:29:44 Right, but what kind of hardware are you reffering too? Nov 17 18:29:54 not relevant Nov 17 18:29:57 We have stuff setup for Apple and Microsft for when we submit our apps. Nov 17 18:30:00 It is relevent... Nov 17 18:30:21 oh yeah, but i'm not going on a trip to mountainview Nov 17 18:30:23 I'm sure if it's a piece they physically need you just send it in. Nov 17 18:30:35 i'll just, forget about tv for now Nov 17 18:31:26 Can someone tell me if the on-screen keyboard auto-generates itself when you run your app on a real android device? Because it doesn't in an emulator for me. Nov 17 18:32:11 redfeather touch the textview Nov 17 18:32:24 redfeather: you can enable/disable that on emulator Nov 17 18:34:48 oh man, seems the 5.0 update to the 2013 n7 breaks all media playack in all apps Nov 17 18:35:37 this guy and androidpolice "When is the tech press going to start calling Google on their shit?" Nov 17 18:35:58 well, i do my part here, ya'all know about that Nov 17 18:37:44 thanks Nov 17 18:38:13 I have a relative layout, in it is a centered textview, but to the left of it i want to display an icon that doesn't offset the center of the textview Nov 17 18:39:15 I'm tried both alignLeft as well as toLeftOf Nov 17 18:46:32 anyone know how to match a string of events in rxjava ( 'a b c' )? no lookahead required Nov 17 18:47:12 filter? Nov 17 18:47:38 for some reason my device keeps getting disconnected from ADB Nov 17 18:47:50 i have to physically unplug it and replug it and itā€™s good for maybe 1 min Nov 17 18:48:12 pieces029 ah by having filter accumulate events ? Nov 17 18:48:51 what do you mean by accumulated? Nov 17 18:49:56 when i see a sequence of onNext() that match a pattern , i'd like to emit something from an operator Nov 17 18:50:48 Filter would filter out events that don't match before onNext is called. Otherwise you can just do something inside of onNext or a map/flatmap depending on what you want to do. Nov 17 18:50:49 i guess if i understand you correctly, my filter() operator would have to accumulate last n-1 things (where pattern length is n) Nov 17 18:50:56 https://gist.github.com/benjchristensen/04eef9ca0851f3a5d7bf might be helpful. Nov 17 18:52:39 oh man, lambdas makes that so nice Nov 17 18:53:20 hm bus.toObservable().filter(EventBus::IS_NUMBER) Nov 17 18:53:37 this muct be a java 8 thing ? public static boolean IS_NUMBER Nov 17 19:00:59 g00s: yeah Nov 17 19:01:26 it's just calling the function IS_NUMBER. Nov 17 19:02:14 pieces029 hm, don't see how that event bus applies. so lets say i have an observable that emits things, and i need to know when a sequence of 2 kinds of events has been onNext'd. Like A B. Nov 17 19:02:31 B A won't match Nov 17 19:02:50 essentially now this becomes a grammar recognizer Nov 17 19:03:36 maybe i need to rethink this Nov 17 19:03:41 It shows how you an use the filter / maping to get the output you want. I guess I still don't know what you are looking for. Nov 17 19:03:57 thats ok, thanks Nov 17 19:04:47 You you want to know if item1, and item2 combined create the squence of AB? (assuming items have a .getValue that returns those letters)? Nov 17 19:08:37 g00s: maybe more relevent? https://gist.github.com/benjchristensen/a962c4bfa8adae286daf Nov 17 19:12:08 pieces029 thanks lemme look Nov 17 19:13:33 why does ---> Intent intent = new Intent(this, MainActivity.class); startActivity(intent); ---- have 'this' in there? Nov 17 19:14:11 ApplesInArrays: are you reading the docs? Nov 17 19:14:23 guilty. Nov 17 19:14:43 do so. Nov 17 19:14:57 pieces029 ah thanks, scan is what i need Nov 17 19:15:05 by docs you mean http://developer.android.com/training/basics/ materials, or the actual http://developer.android.com/guide/components/intents-filters.html Nov 17 19:15:27 i mean the java docs Nov 17 19:15:28 http://developer.android.com/reference/android/content/Intent.html Nov 17 19:15:57 is there a PDF of CHM anywherE? Nov 17 19:16:05 or* Nov 17 19:16:23 yes. in your sdk Nov 17 19:16:26 chm ? lol Nov 17 19:16:38 does MS still use CHM ? Nov 17 19:16:44 AutoHotKey has a great CHM Nov 17 19:17:03 what does it tell you about me that i dont even know what chm is Nov 17 19:17:30 You can put executable headers in it, so it's fun for the whole family. Nov 17 19:17:52 danijoo: it's just an ebook format. I think it's the windows help file format, too. Or I'm remembering wrong. Nov 17 19:18:22 dragorn: so its just microsoft wanting their own format for something you can already do in 20 other formats? Nov 17 19:18:26 Oh, the SDK HTML files are great. Nov 17 19:18:30 danijoo: chm is old Nov 17 19:18:42 CHM is since microsoft bob Nov 17 19:18:51 oh well. im in my mid 20s, so maybe to old for me :) Nov 17 19:18:53 since 1997 Nov 17 19:18:55 http://en.wikipedia.org/wiki/Microsoft_Compiled_HTML_Help Nov 17 19:19:14 oops. Microsoft Bob is 1995. Nov 17 19:19:27 As usual, Bob is just not hip enough. Nov 17 19:19:28 danijoo: nah. It's from more the original "lets have a structured doc file" diaspora. It's a pretty open format, too. Nov 17 19:19:44 It's actually pretty nice. It's a good format for its purpose. Nov 17 19:21:39 This room should have people using either: Eclipse, Android Studio, or TEGRA/Visual Studio as an IDE, yeah? Nov 17 19:25:37 only black terminals with green text color Nov 17 19:44:30 hate to sound like a broken record, maybe someone is on now that can help answer this "can someone tell me if I can animate Vector Drawables through code?" Nov 17 19:52:54 does anyone know what java.util.zip.zipEntry is for in Android? Nov 17 19:54:21 I'm having almost a two second load when using a SupportMapFragment, in between onCreateView and onViewCreated. It is ONLY for the very first time I load the SupportMapFragment. I can go to a completely different Activity and it is still fast as long as I have loaded SupportMapFragment once already. Nov 17 19:54:34 I did two traces, the first (and slow) load has a bunch of calls to java/util/zip/zipEntry Nov 17 19:55:47 public class ZipEntry Nov 17 19:55:47 extends Object Nov 17 19:55:47 implements Cloneable Nov 17 19:55:49 This class is used to represent a ZIP file entry. Nov 17 19:56:29 I just have trouble believing that people use the MapFragment if it takes two seconds to load the first time, but I have eliminated everything I am doing myself. Not sure what else I can do. Nov 17 19:58:52 Is anyone else using the MapFragment? I'd love to just have confirmation that it typically works without such a delay. Nov 17 19:59:20 http://stackoverflow.com/questions/14418927/setcontentview-slow-with-map-fragment Nov 17 20:01:09 ApplesInArrays yup, that sounds like my issue. Thank you for this Nov 17 20:05:46 hi, what is the best way to create a pojos from json? Nov 17 20:06:18 there is no best way Nov 17 20:06:24 thanks Nov 17 20:06:27 create a file, add values you want that maps to json? Nov 17 20:06:29 what you use? Nov 17 20:06:56 my hands and a lot of lines of code Nov 17 20:06:59 Sometimes htis works http://www.jsonschema2pojo.org/ Nov 17 20:07:11 but most of the time not as well as you would like. Nov 17 20:07:16 use gson if you want it easy Nov 17 20:07:59 That doesn't create pojos, that maps values from json into a pojo Nov 17 20:09:10 oh didnt understand the question right Nov 17 20:09:22 then the answer really is "my hands" Nov 17 20:09:53 bla bla bla danijoo Nov 17 20:10:43 cuddly Nov 17 20:16:45 Hi people ! Nov 17 20:18:41 good evening Nov 17 20:19:41 I need some help :) I'm using DrawerNavigation for my application ( my first one ) i just want to link the DrawerNavigation with my 3 activities. I can load activities when i use new intent(); but the ActionBar is not usable. Can someone told me quickly how DrawerNavigation works ? Thank's in advance and sorry for my english .. Nov 17 20:20:48 The DrawerNavigation work on the mainActivity but the activity that is called don't have the action bar Nov 17 20:34:56 how can I debug 32bit a application on a 64bit android L tablet? Nov 17 20:37:52 sorry more specifically how can I debug a native 32bit application on a 64bit android L tablet? Nov 17 20:38:43 i'd expect you could attach adb the same way Nov 17 20:38:48 adb and gdb, that is Nov 17 20:38:55 do apps have to add extra code to deal with phone shut down? Nov 17 20:39:15 ChrisUK: I don't think you can do anything; you usually just get the destroy event (if you're lucky) Nov 17 20:39:18 I get the old armeabi is not supported message when I try to run the debugger Nov 17 20:39:30 jdm07: ah. Dunno; haven't tried Nov 17 20:39:39 :) Nov 17 20:40:14 system update available. "Later" :) Nov 17 20:41:20 ye that's what I'm afraid of. Nov 17 20:42:49 I could recompile for am64-v8a and debug 64bit but I'd have to spend ages making my code 64bit compatible first:( Nov 17 20:43:51 Anyone here that uses MapFragments from Google Maps API? Nov 17 20:44:58 Hi, people. Nov 17 20:49:25 Have I asked a really simple question??? Nov 17 20:50:08 skinux: I'm sure you have at some point in your life. Nov 17 20:50:25 Well, I've asked the quesiton 2-3 times without any responses, so. Nov 17 20:50:55 I don't see it in my logs, so I don't know what to tell you. Nov 17 20:51:19 I want a GridLayout to be centered horizontally, but I'm not finding a way to do it. Nov 17 20:51:29 Or, vertically I mean Nov 17 20:51:47 is it best practive to always instantiate a Fragment to show it? or is it better to keep a reference to it and pass that around? Nov 17 20:52:13 skinux: what is the parent view? Nov 17 20:52:29 FrameLayout Nov 17 20:53:48 android:gravity="center_vertical" Nov 17 20:54:24 Not working Nov 17 20:55:37 how is it not working? Nov 17 20:55:44 It isn't making a difference. Nov 17 20:56:03 Designer view isn't showing anything different. Nov 17 20:56:53 You are providing very little information, so it is very hard to help. Nov 17 20:57:35 What information do you need that I haven't provided? Nov 17 20:58:47 my nexus 7 is stuck on the boot animation now that I flashed the lollipop image, nice... Nov 17 20:59:45 pfn: ota or did you messed it up on your own :) Nov 17 20:59:48 pfn sure? it just takes a long time the first boot Nov 17 20:59:48 Any willing testers? Nov 17 21:00:01 Memorion, that long? hmm, ok Nov 17 21:00:09 gonna try again after I finish reflashing Nov 17 21:01:11 What the heck!? My alpha installer says my game requires 1.6 and up. no minSdk is 15...how can this be? Nov 17 21:02:16 and of course a fresh install disables debugging, so annoying Nov 17 21:06:09 success: What kind of game are you writing? Nov 17 21:06:18 if have an image that can either be horizontal or vertical, what's the best way to scale across the device width? Nov 17 21:06:59 I tried fitStart, but if the image was smaller it would leave space, and center crop chopped of the top part Nov 17 21:07:26 what can i use that works like centercrop, but starts from the top? Nov 17 21:09:57 or should i dynamically adjust the scaletype based on whether it is horizontal or vertical? Nov 17 21:10:03 Hey, does anyone know of a component for android that is similar to RichText? Nov 17 21:10:18 So that the user can type in different colours, etc. Nov 17 21:16:37 suddenly one of my adunitids isnt working anymore Nov 17 21:16:38 In Android Studio, when I run my robolectric/fest tests, I get a lot of tests that fail because of character encodings, typically on non-alphanumeric characters. I was unable to reproduce this on my Mac from the command line, but another team member is now getting the same failures as I get in android studio, but from the command line. Anyone have any thoughts on how we might get past this? Nov 17 21:16:40 without any reason Nov 17 21:20:50 new output in logcat steals the focus and makes the AS javadoc dialog disappear ;[ Nov 17 21:22:17 is it safe to have tx and rx in different threads for a socket? would doing a transmit while doing a receive in a different thread bugger things up? Nov 17 21:22:44 it is useless if your socket is blocking Nov 17 21:22:59 the socket is blocking :/ Nov 17 21:23:03 if not, you might run into big issue between producer and consumer Nov 17 21:23:15 if they are not well sync together Nov 17 21:23:17 define producer/consumer? Nov 17 21:23:24 thread x and y Nov 17 21:23:29 oh ok Nov 17 21:23:37 producer being tx and consumer being rx Nov 17 21:23:46 yup, or the contrary, as you wish :) Nov 17 21:24:02 i have a thread to receive incoming messages. it blocks till a message is received Nov 17 21:24:25 i need to be able to receive incomming data at the same time as transmitting results of operations that have been done previously Nov 17 21:24:36 think of the server as a command shell. commands come in, results are sent back Nov 17 21:25:05 but the results cal be no result, one result, many results Nov 17 21:25:37 actually this might be moot lol i might have been thinking things out WAY too deply lol Nov 17 21:25:46 back to thinking things out... . . Nov 17 21:25:49 ty tho :) Nov 17 21:27:55 actually, how would one implement an irc client. that should be able to tx and rx at same time Nov 17 21:28:14 make the tx and rx threads non blocking and synchronized? Nov 17 21:30:15 is it possible to copy one imageview's image into another imageview ? Nov 17 21:30:22 Darn. I closed the Window that had the Visual designer and XML source. Where do I find that file?? Nov 17 21:32:49 I need some help :) I'm using DrawerNavigation for my application ( my first one ) i just want to link the DrawerNavigation with my 3 activities. I can load activities when i use new intent(); but the ActionBar is not usable. Can someone told me quickly how DrawerNavigation works ? Thank's Nov 17 21:42:12 Anyone know how I can make a rich text editor in android? Nov 17 21:42:18 Is there such a component? Nov 17 21:42:43 Can I ask about changing the Android system in this channel? (Adding a service / API to Android) ? Nov 17 21:44:12 deadmund: explain what your talking about then at least we can advise Nov 17 21:48:17 is there some native implementation of "zooming by pinch" for imageview ? Nov 17 21:48:36 yosemite 10.10.1 Nov 17 21:48:59 blusky: yes just use a scale gesture Nov 17 21:49:44 should I pause infinite animations in onPause? Nov 17 21:50:19 Ok, well. I'm trying to add a class (a service). I'm following this guide: http://processors.wiki.ti.com/index.php/Android-Adding_SystemService And I am getting an error saying that I am missing "@hide" from my methods. Here is a pastebin with the errors and the source. http://pastebin.com/MxX1xzR4 Nov 17 21:50:21 What's the best android developer book? (not google documentation) Nov 17 21:51:00 m8 depends on what you know already Nov 17 21:51:05 Also, do I need to run source build/envsetup.sh and lunch before every compile? Even if I only change 1 file? Nov 17 21:51:25 Memorion, other programming languages, and java base Nov 17 21:51:38 Memorion, google doc is too large i need a line Nov 17 21:52:12 So my internet went down. Nov 17 21:52:17 anyone that wanted to test my app? Nov 17 21:52:23 deadmund: this channel is app side ypu probably want to ask in #android or #android-root Nov 17 21:52:27 anybody use an embedded Google MapFragment in their app? Nov 17 21:52:29 multiple balls in maze puzzle/arcade game Nov 17 21:52:42 what exactly is a context ? Nov 17 21:52:49 Napalm, literally, #android-root sent me here Nov 17 21:53:01 How is there no channel clearly defined for modifying the android system Nov 17 21:53:48 m8 If you're experienced in other stuff already I'd say http://commonsware.com/Android/ is the best, if you want to start lower try http://www.bignerdranch.com/we-write/android-programming.html Nov 17 21:54:35 deadmund i think this has been explained to you on multiple occasions Nov 17 21:55:27 g00s, I should use the mailing list? Nov 17 21:55:43 deadmund anything, not here though Nov 17 21:55:56 g00s, huh? "anything" ? Nov 17 21:56:25 yeah, like "anything except here, because its OT" Nov 17 21:56:55 ugh, thanks anyway Nov 17 21:57:21 Memorion, good! Nov 17 21:57:59 Memorion, in the first book there are examples apps? Nov 17 21:58:26 m8 https://github.com/commonsguy/cw-omnibus here are the examples Nov 17 21:58:50 Memorion, very good in the book there are images? Nov 17 21:59:12 m8 yes Nov 17 22:01:46 m8 you can look at older versions of the book here http://commonsware.com/Android/4-2-free just to get a feeling for content and writing Nov 17 22:08:56 thanks Memorion! Nov 17 22:09:11 Memorion, it's what i'm finding! Nov 17 22:10:15 hey all. i have a grid view. when i rotate the items get really large. any idea why the items aren't staying the same size? Nov 17 22:18:08 textbox.setText(b.getString(Key.str)) gives me ā€˜Invalid Int: ā€œ*ā€ ā€˜ Nov 17 22:18:14 the string is ******** Nov 17 22:18:25 what is going on here? Nov 17 22:20:50 tricknology you are screwing up, thats whats going on Nov 17 22:21:03 I guess thatā€™s obvious Nov 17 22:21:10 :) Nov 17 22:21:51 heh, but why Invalid Int on ā€œ*ā€ Nov 17 22:22:35 b.getString(key), its value has ā€œ*ā€ in it Nov 17 22:22:36 how do you normally implement search in an app using sqlite? Nov 17 22:22:55 use LIKE Nov 17 22:23:18 https://www.sqlite.org/queryplanner.html Nov 17 22:23:19 I'm trying with full text search but it doesn't seem to support partial match, like searching by "mach" when you have "Machine" in the DB Nov 17 22:23:37 so my internet is weird today Nov 17 22:23:42 thatā€™s why I said use ā€œLIKE" Nov 17 22:23:44 anyine want to try my app? Nov 17 22:24:04 SELECT something FROM table WHERE field LIKE searchterm Nov 17 22:24:08 tricknology, LIKE is supposed to be many times slower than FTS Nov 17 22:24:24 and you can't search "mach" in "this machine rocks" Nov 17 22:24:33 Mattx you want to use the FTS extension Nov 17 22:24:37 http://blog.andresteingress.com/2011/09/30/android-quick-tip-using-sqlite-fts-tables/ Nov 17 22:24:54 you didnā€™t mention FTS.. lol Nov 17 22:25:14 I said full text search Nov 17 22:25:56 aah Nov 17 22:26:29 SELECT * FROM table WHERE CHARINDEX(ā€˜machā€™,name ) > 0 Nov 17 22:27:46 Is there a component in android similar to the rich text box? Nov 17 22:28:08 g00s, so the key idea is to append "*" to all terms in the query? Nov 17 22:28:16 ;_; Nov 17 22:28:54 Mattx i haven't used the FTS extension personally. i recall seeing it enabled in the android sqlite build Nov 17 22:29:18 Cl-Martin, not i am aware off. Thus, you have to implement it yourself, or find a third-party lib Nov 17 22:29:21 it is enabled but the tips mentioned there are weird Nov 17 22:29:43 why would you append but not prepend "*"? Nov 17 22:30:05 How can this cause a NPE? http://pastebin.com/xD8cxJXk Nov 17 22:30:19 Cl-Martin, a simple search (android+richtext) would have answered that Nov 17 22:36:02 Can't you measure distance with the proximity sensor? Just FAR/CLOSE? Nov 17 22:37:37 eeh Nov 17 22:40:56 kolossen: depends on the phone Nov 17 22:43:26 yeah i read more and saw that Nov 17 22:43:45 bankai_au, would you like to alpha test, my app? Nov 17 22:44:05 no Nov 17 22:44:23 ok Nov 17 22:48:15 this looks cool https://hush.technology/ Nov 17 22:48:36 i thought it was rocktron hush, oh well Nov 17 22:51:08 My bank charged me like $5 because I used my credit card to pay for an Android Developer account (because the item was in USD and I'm in England). Nov 17 22:51:35 Does it really cost $5 for someone to google "n usd in gbp"? Nov 17 22:52:58 It's not what it costs, it's what they can charge you. Nov 17 22:54:13 <_Auron_> is anyone here aware of reasons why a ListView would have completely unclickable items when using a custom listview adapter? Nov 17 22:55:14 setItemEnabled returning false ? Nov 17 22:56:10 sorry , isEnabled(position) Nov 17 22:57:32 <_Auron_> list.isEnabled() ? Nov 17 22:57:50 hello Nov 17 22:57:53 _Auron_: adapter.isEnabled() Nov 17 22:58:19 <_Auron_> let me check Nov 17 22:59:46 Is there a simple self-contained example of saving to Key-Value sets somewhere? Nov 17 22:59:55 <_Auron_> they're all true Nov 17 23:00:16 ApplesInArrays you can use sqlite. index the key column Nov 17 23:00:41 I'm just trying to figure out the basics. Maybe SQLite is the way to go? Nov 17 23:00:47 Im trying to set up the gstreamer android build environment, Im now at the point where I have to ndk-build, it tells me https://www.zerobin.net/?da24179eecbf2338#J5HelcDy59SMxsGg4QYHtqsZYDziaioA5Irbi8cd5YY= Nov 17 23:01:41 but to be honest, I'm too stupid to get http://developer.android.com/training/basics/data-storage/databases.html to fit in the most basic app Nov 17 23:02:15 ApplesInArrays: not a shame. sqlite developing on android is a cumberstone Nov 17 23:02:46 <_Auron_> I have several lists that I use custom adapters for that work just fine, but this one has two linearlayouts instead of one like the others; not sure if that makes a difference as to why the items aren't clickable. Nov 17 23:03:06 ApplesInArrays: you can look at ormlite Nov 17 23:03:19 its a lbrary that does all the database stuff for you Nov 17 23:03:37 heh Nov 17 23:03:38 if its only a few key+values, you can use sharedpreferences Nov 17 23:03:48 I still haven't gotten the courage to use an outside library. Nov 17 23:03:55 ApplesInArrays another java library for k/v storage is mvstore from H2 Nov 17 23:03:57 I'd better try to use key-value sets first. Nov 17 23:04:22 it masically implements a Map interface, but is stored on disk Nov 17 23:04:45 you just have to use the builder, and then the rest of the code treats it as an in-memory data structure Nov 17 23:05:03 g00s: interessting Nov 17 23:05:39 since its the storage engine for H2, it should be reliable. but its still beta Nov 17 23:05:50 anyhow, beter than some pondunk library from estonia Nov 17 23:05:56 *podunk Nov 17 23:08:18 Hey guys, Iā€™ve been contacting some review sites for a few weeks now but havenā€™t had any replies so Iā€™m thinking about releasing my app anyway - its my first attempt so Iā€™m really just doing it to learn how things work. Nov 17 23:08:32 Are there any tips besides using keywords in the description I should implement before releasing? Nov 17 23:08:47 don't use too many keywords :D Nov 17 23:09:08 Hehe I was aiming for about 6 times each without spamming :) Nov 17 23:09:34 <_Auron_> I've even tried android:descendantFocusability="blocksDescendants" in my adapter layout, list.setClickable(true); , and list.setEnabled(true); Nov 17 23:09:42 when I was researching I came across many that just dumped them in without even making sense Nov 17 23:11:05 Is it hard to get say 100 downloads a day just from keywords alone? Nov 17 23:12:51 <_Auron_> any other thoughts as to why items wouldn't be selectable? Nov 17 23:12:51 I spoke to a friend about his experience he want from 0 -> 11 > 20 then slowly back to zero again. So Iā€™m trying to learn as much as possible to prevent this Nov 17 23:12:55 Or atleast try :D Nov 17 23:15:52 How do we re-open the GUI XML file after we've closed it? I can't find the file anywhere in the project. Nov 17 23:17:13 Open the XML file and switch to the GUI view. Nov 17 23:17:24 There are two views for each such file. Nov 17 23:27:27 someone nows whats up with hardware video encoding and gstreamer on android phones? Nov 17 23:31:18 I have a switch which starts a service, but if the activity is destroyed and recreated the switch is set to false with the service still running, how do I determine whether the service is still active? Nov 17 23:35:51 JesusFreke: thanks Nov 17 23:35:55 i'll have a look! :) Nov 17 23:36:02 np Nov 17 23:36:46 play services update with a "Donate wth Google" button! Nov 17 23:37:15 we're all donating to google, all the time Nov 17 23:38:18 yeah, but recently I lot of apps got pulled for their "Donate with Paypal" button and now they have some kind of official alternative Nov 17 23:39:02 really? did that just happen today ? Nov 17 23:40:33 not sure, but someone complained in /r/androiddev about his app being pulled and someone immediately asked him if he had a donate button, which was the case so I guess that wasn't the first case of this Nov 17 23:43:40 Memorion: why not just have a static AtomicInteger in your service that you increment in Service.onCreate and decrement in Service.onDestroy. and a static getter.. if its > 1 then you have a service Nov 17 23:43:47 i mean > 0 Nov 17 23:44:36 Napalm so I would have to get an instance of my service in the activity? Nov 17 23:44:45 erm? Nov 17 23:44:47 what Nov 17 23:45:34 my problem is that I don't know how to access anything from the service once I started it Nov 17 23:45:46 if its a static method it doesnt require a instance Nov 17 23:46:07 Memorion: have you even read the docs? Nov 17 23:46:27 Napalm sorry, I just blanked, thanks m( Nov 17 23:46:43 Memorion: but you want to access the service? Nov 17 23:47:41 Memorion: http://developer.android.com/guide/components/services.html Nov 17 23:49:55 Napalm I read the docs I'm just really new at programming more than little swing programs from university, but I think you already helped, thanks! Nov 18 00:00:59 is there documentation for the new lollipop trust agents anywhere? Nov 18 00:01:56 is the easiest way to stop a service from a notification really to restart it and check for special intent extras in onStartCommand? Nov 18 00:02:02 is that even available to third party apps? It was my understanding that it had to be a system app or something like that Nov 18 00:02:45 <_Auron_> JesusFreke: heyo Nov 18 00:03:38 JesusFreke, that's dumb... :( Nov 18 00:04:29 _Auron_: hey :) Nov 18 00:04:47 <_Auron_> JesusFreke: I finally got into the programming industry :P Nov 18 00:05:39 oh, nice! working for a game company or something? Nov 18 00:05:59 <_Auron_> sortof, not a realtime game but a GPS+QR code scavenger hunt game company Nov 18 00:06:11 <_Auron_> called Munzee Nov 18 00:07:32 nice :) Nov 18 00:07:53 android.service.trust.*( Nov 18 00:07:53 hmm Nov 18 00:08:47 *

Trust agents may only be provided by the platform. It is expected that there is only Nov 18 00:08:48 oh come on Nov 18 00:11:45 in the example on http://developer.android.com/training/basics/data-storage/shared-preferences.html#GetSharedPreferences what should I substitute "preference_file_key" for? Nov 18 00:13:32 http://pastebin.com/Pk6PcCgV Nov 18 00:14:33 <_Auron_> JesusFreke: thus far I'm just having difficulty coping with android's weird API Nov 18 00:14:46 <_Auron_> because I almost exclusively did stuff with my own engine and OpenGL Nov 18 00:15:27 ah, yeah Nov 18 00:16:48 <_Auron_> right now I'm trying to get a listview with a custom adapter that has two linearlayouts in it, to work for an onclicklistener Nov 18 00:18:53 _Auron_: should be setonitemclicklistener or something similar on the listview itself; otherwise if you have clickable things inside your layouts you need to play some other tricks Nov 18 00:20:26 <_Auron_> well the other thing is to get my activity to display correctly I had to put the linearlayouts inside a TableLayout, which I think is half the problem Nov 18 00:23:09 Hmm, does it make sense if my code throws a JsonSyntaxException? Nov 18 00:23:14 I guess it does, but it feels kinda weird. Nov 18 00:23:56 <_Auron_> if you're doing something wrong with json objects perhaps; it'd be weird if you weren't doing anything with json and got errors :P Nov 18 00:24:03 haha Nov 18 00:25:03 <_Auron_> okay, so it turns out that I have to have android:onClick="rowClick" in my tablelayout's TableRow for this listview to recognize any clicks at all Nov 18 00:33:36 the AdbTest README.txt file says that the app is supposed to display the log output in a text view, but I don't see anything when i run AdbTest on my phone Nov 18 00:33:54 i only see the text "ADB Test" at the top Nov 18 00:34:46 What's a good way to invoke the Ā  protected void onStop(){ function? Nov 18 00:34:58 add it to a button? Nov 18 00:35:49 eeeeeh Nov 18 00:35:53 call finish()?? Nov 18 00:36:28 ApplesInArrays you don't call onStop. thats why its prefixed with 'On" Nov 18 00:36:35 it calls you :D Nov 18 00:36:54 trying to figure out how to exit the program Nov 18 00:36:58 http://developer.android.com/reference/android/app/Activity.html Nov 18 00:37:00 call finish() Nov 18 00:37:19 ApplesInArrays android programs generall don't exit, but you can exit the activity with finish ^^ Nov 18 00:37:20 Yeah, I just read the lifecycle part Nov 18 00:37:34 Ok. I'll connect finish to a button. Nov 18 00:37:46 it might do something you donā€™t expect though Nov 18 00:37:52 say you go from Activity A to Activity B Nov 18 00:37:57 and call finsih() from B Nov 18 00:38:05 it will most likely bring up A Nov 18 00:38:09 oh, my. Nov 18 00:38:27 startActivityForResult() Nov 18 00:38:31 onActivityResult() Nov 18 00:39:15 well.. It wil do that if you donā€™t call finish() in A before/after starting B Nov 18 00:39:37 damn. exiting gracefully is more difficult than I thought. Nov 18 00:40:14 So one way is to call finish() in each activity that has started? Nov 18 00:40:26 Ugh. Does anyone know whether it's possible to avoid this yucky code when using Gson? http://pastebin.com/r7KiyGJK Nov 18 00:40:28 I can only imagine doing that through intents. Nov 18 00:40:34 I know I can avoid it using Jackson, but I'm not a fan of Jackson's API. Nov 18 00:40:40 Since right now, I only have intents under my belt. Nov 18 00:40:52 or you can do something like this: Activity A uses startActivityForResult() to start B. Then in B when you call finish() also call setResult(RESULT_OK) or setResult(RESULT_CANCELLED) Nov 18 00:41:16 then in Activity A, you have a method onActivityResult() that will catch the result of activity B Nov 18 00:41:51 Oh wow Nov 18 00:41:54 that kind of makes sense Nov 18 00:42:43 you can send intents through that as well Nov 18 00:42:45 I haven't played with startActivityForResult() yet, but it sounds fun. It's basically just a function that returns a boolean from another activity? Nov 18 00:42:50 so you can get all the data you want in a bundle Nov 18 00:42:57 I could just catch the NullPointerException and ClassCastException, but that's dirty. Nov 18 00:43:17 http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int) Nov 18 00:43:22 it doesnā€™t return anything Nov 18 00:43:27 but there is a ā€œcallbackā€ per se Nov 18 00:43:50 once Activity B finishes, onActivityResult() will be fired off in Activity A Nov 18 00:43:50 it makes it so you can call another function which gives a result based on the first function and its termination in another activity, right? Nov 18 00:43:53 Gson, y u no support Null Object pattern?! Nov 18 00:43:57 ahh, I see. Nov 18 00:44:02 Damn, that's really cool. Nov 18 00:44:04 http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent) Nov 18 00:44:12 youll have to copy that link, it didnt paste right Nov 18 00:44:50 ..then onActivityResult spits back the request code you gave it (So that you can descipher from where you are getting results ) usually I use a switch/case on that Nov 18 00:45:07 then your resultCode is what comes through on setResult(RESULT_OK) in activity B Nov 18 00:45:28 and Intent data.. well thatā€™s there for you to pass data between activities if you need to Nov 18 00:45:47 use Bundle b = data.getExtras() I think Nov 18 00:46:05 then b.getString(ā€œmykeyā€) to get a string Nov 18 00:46:09 getInt() to get int.. etc Nov 18 00:46:29 check out soem examples.. that is like meat and potatoes for Android Nov 18 00:46:44 anyone try the ADBTest sample? Nov 18 00:46:54 I've been very slowly going through the tutorials Nov 18 00:47:06 I've been able to do the two activities example Nov 18 00:47:10 also be aware that even if you call finish() from your root activity, it will still b visible in the little menu thing, with a thumbnail of itā€™s last state Nov 18 00:47:10 but not the activity bar one Nov 18 00:47:20 why not? Nov 18 00:47:34 never have impulse, no reason to? Nov 18 00:47:50 It's been about 12 hours... but I think I had trouble getting the menu xml set up correctly\ Nov 18 00:47:51 Havenā€™t looked at Activity bar sample Nov 18 00:47:58 it kept showing up as a folder isntead of xml file Nov 18 00:48:07 oh you using Eclipse? Nov 18 00:48:08 and in the folder was main.xml Nov 18 00:48:10 I am Nov 18 00:48:14 oh wtf? Nov 18 00:48:26 you right click, new, file? Nov 18 00:48:40 I used Android add new XML wizard or whatever Nov 18 00:48:50 I'll try right-click adding, though, Like I did for classes. Nov 18 00:49:03 I'm advancing at a retard's pace, to be honest. Nov 18 00:49:07 yeah wizards are kind of crappy Nov 18 00:49:16 no worries, it took me 3 years to get here and iā€™m still retarded Nov 18 00:49:23 up until like level 14 at least! Nov 18 00:49:31 (probably because I donā€™t RTFM when I chould) Nov 18 00:49:55 I've been getting more help from stackoverflow and tutorialspoint.com than android, tbh. Nov 18 00:50:05 heh that will be the case Nov 18 00:50:13 android assumes you know what theyre talking about Nov 18 00:50:17 the documents for anything is like 80 pages long Nov 18 00:50:18 kind of hard when youā€™re new Nov 18 00:50:21 and I don't have a basic lay of the land yet Nov 18 00:50:25 i'm trying to write a usb device driver Nov 18 00:50:28 SO and here will help a lot Nov 18 00:50:43 impulse, do you have the docs for that USB device? Nov 18 00:50:53 some devices require strictly formatted hex commands Nov 18 00:50:56 Anyways, tomorrow I'm going to tackle: sharedpreferences, onactivityresult/startactivityforresult, finish, intents for passing data, mysqlite Nov 18 00:51:06 no, but i reverse engineered it and wrote a driver for linux Nov 18 00:51:17 aaah I would save SQLite for another day Nov 18 00:51:20 hopefully I can understand a little more every day, then i can start writing something without being such a copy/paste bitch Nov 18 00:51:34 do the shared prefs and intents and activity stuff Nov 18 00:51:37 I've done MySQL for a while Nov 18 00:51:41 oh ok Nov 18 00:51:56 sqlite is a bit different in android, it has itā€™s own functions you can use Nov 18 00:51:59 after that, I'll bother people in the channel and ask how to send shit to my server Nov 18 00:52:08 btu you can always use sql commands and execute them Nov 18 00:52:14 if youā€™re more comfortable Nov 18 00:52:20 I use RESTlet Nov 18 00:52:24 and JSON Nov 18 00:52:32 I don't know either of those, but I should. Nov 18 00:52:36 I'm still a PHP-tard as well. Nov 18 00:52:46 oh you can use PHP i guess Nov 18 00:52:47 read the REST wiki 100x and still don't know wha tI'm looking at. Nov 18 00:52:55 I just knew Java so I went for RESTlet because itā€™s all Java Nov 18 00:53:29 today i learned 2 things. tomorrow hopefully 3. Nov 18 00:53:35 email me and I can send you some sample of how the restlet stuff works Nov 18 00:53:53 in Android? Nov 18 00:54:00 no this is on a backend server Nov 18 00:54:04 Apache Nov 18 00:54:08 generate a .WAR file Nov 18 00:54:19 Oh, sure Nov 18 00:54:22 great, thanks Nov 18 00:54:29 will do Nov 18 00:54:31 GTG, off work for the last 15 mins Nov 18 00:54:32 haha Nov 18 00:54:34 laters Nov 18 00:54:34 cheers Nov 18 00:57:53 Why does Eclipse often do nothing when I hit "run" Nov 18 00:57:56 this is so irritating Nov 18 01:00:03 How do people generally insert lines to between items in a ListView? Do you insert an image or is it done in xml? Nov 18 01:00:55 matt_j: Starting the emulator? Nov 18 01:05:15 HearWa: divider ? Nov 18 01:07:02 Nevermind, yes, bankai_au you are right. android:divider and android:dividerHeight. I had it set to transparent so I didn't think it was working... ugh Nov 18 01:14:45 TacticalJoke: nah, just device Nov 18 01:25:26 Hi, anyone have any experience with using Paint.setShadowLayer() when drawing text to a Canvas? I can't seem to get it to draw any shadow at all.. Nov 18 01:31:08 Grr. If Gson's JsonObject were not final, I could subclass it and (along with helper methods) implement the Null Object pattern. Nov 18 01:33:47 can someone tell me if I can animate Vector Drawables through code? Nov 18 01:34:07 Hi people. My app has this feature that users can view offline cached content. I'd like somehow to give users a visual hint that they are viewing cached content, which maybe outdated. How could I do that? Nov 18 01:34:24 I'd like something beautiful, not just a message dialog box Nov 18 01:40:11 Beket: A view in your layout? Nov 18 01:40:17 Maybe something like a crouton at the top. Nov 18 01:40:54 https://github.com/keyboardsurfer/Crouton Nov 18 01:41:21 let me check that TacticalJoke -- thanks! Nov 18 01:42:42 It looks nice. I suppose I could display it like for 5 seconds and then hide it, so that it doesn't eat space Nov 18 01:43:50 I don't know your app, but generally speaking another option could be a "touch to dismiss" thing. Nov 18 01:44:23 mm Nov 18 01:45:01 (it's an app portal to some medical website where you can find information for drugs, watch how much they cost, side effects, etc) Nov 18 01:45:58 Perhaps a combination of: (crouton or touch to dismiss) + a pesristent visual hint like a very thin red frame around the results Nov 18 01:47:08 I guess the crouton could be touch-to-dismiss (though I haven't tried that library, so I'm not sure). Yeah, that sounds like a nice idea. Nov 18 01:47:48 Thanks a lot for your suggestions TacticalJoke Nov 18 01:47:59 Will try them and see what's best Nov 18 01:57:38 Does anyone know of a JSON library that is small like Gson but supports Jackson's "path()" thing? Nov 18 01:57:58 Where we can say "foo.path("bar").path("baz")" and never worry about NPEs. Nov 18 02:02:27 TacticalJoke: at this point, you should probably just write your own library ;) Nov 18 02:03:36 lol Nov 18 02:04:02 I'd be lying if I said the thought hadn't crossed my mind. Nov 18 02:08:04 just use Jackson then... Nov 18 02:09:10 call it Jokeson or something :p **** ENDING LOGGING AT Tue Nov 18 02:59:59 2014