**** BEGIN LOGGING AT Sat Jun 15 02:59:59 2013 Jun 15 03:05:24 so what's the best way to do automated tests for android-dev? Jun 15 03:05:41 something that could fit into a TDD workflow Jun 15 03:05:43 * capella hmmm ... not throwing ... so I think kevinb got it with |silently fails if the view is not attached to a window when the post is done| Jun 15 03:06:19 i remembered it did one of those things, couldn't remember which Jun 15 03:09:08 I'm wondering what the best way is to achieve something like the Google TV Youtube app, which constantly listens for connections in the background Jun 15 03:10:00 I was thinking I'd need to request RECEIVE_BOOT_COMPLETED and start a process upon startup, but I see that the GTV YT app doesn't use that permission Jun 15 03:16:56 well its a little uglier ... "boiled down better" http://pastebin.mozilla.org/2525919 Jun 15 03:16:57 Log line |<<<<<<<<<<<<<<<<| may or may not run depending on timing of my shutdown / restart processing Jun 15 03:22:36 design wise, you're probably putting more logic than you should in the view. It'd probably be cleaner as a fragment, with it's own handler that can run regardless of the view's attached state. If you want to keep just using a view, you can still create your own handler there that you know will stick around regardless of the attached state. Jun 15 03:27:12 Yah, I'm trying to backup to the original intent ... (didn't write it) ... it actually is part of a larger fragment ... checking its onAttach() and onDetach() timings now ... Jun 15 03:27:58 and by |original intent| I mean design, not Intent Jun 15 03:29:58 problem started while examining behaviour of App when user sets System |don't keep activities| Jun 15 03:31:49 so what's the best way to do automated tests for android-dev? Jun 15 03:32:05 codebutler ^ Jun 15 03:32:11 StingRay_ ^ Jun 15 03:44:24 jUnit ?? Jun 15 03:47:47 i want a loon antenna ! Jun 15 03:47:59 hi. in this app https://itunes.apple.com/us/app/5-0-radio-police-scanner-lite/id356336433?mt=8 what is the keyword using which i can search images on google where keyword = name of that image which in under the text "LAPD - Citywide Dispatch and Hot Shots/Code 3" Jun 15 03:48:24 os* Jun 15 03:48:26 is* Jun 15 03:50:11 Norrin: just use the android instrumentation stuff. Jun 15 03:51:30 good old junir 3 Jun 15 03:51:35 *junit Jun 15 03:51:43 * capella I said it first Jun 15 03:51:50 :p Jun 15 03:52:33 capella i think the testNG guy works on the android team Jun 15 03:52:39 or he did Jun 15 03:53:43 ? testing guy? Jun 15 03:55:04 yeah, he designed TestNG Jun 15 03:58:22 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 15 03:59:10 capella, codebutler, will look into those Jun 15 03:59:25 I am new to this, how do you know what you need to declare permissions for in your manifest? Jun 15 03:59:55 if the docs say it needs a permission Jun 15 04:00:50 Okay Jun 15 04:01:10 danl, yo, i'm a newb. that's just the common sense answer to me Jun 15 04:01:19 I haven Jun 15 04:01:49 or you could write code and if it fails say to yourself hmmm ... i wonder if I need to declare permissions for in my manifest? Jun 15 04:02:00 capella: that was what I was thinking Jun 15 04:02:06 I did that once but thats the hard way XD Jun 15 04:02:08 <.< Jun 15 04:03:38 "Which" keyword i can use to search google images to get background exactly like this one http://imagebin.org/261413 Jun 15 04:03:46 to use in my own app Jun 15 04:04:31 those look like stiples Jun 15 04:05:25 stipple Jun 15 04:06:52 ok Jun 15 04:13:28 very iOS Jun 15 04:17:49 niples? Jun 15 05:18:52 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 15 05:38:45 Is there an api for checking whether a device uses softkeys, or would I need to peak at the build.prop? Jun 15 05:39:18 anyone here familiar with repo? I'm trying to check out a Gerrit patchset, and already asked on #android Jun 15 05:39:37 I'm following this instruction: http://source.android.com/source/submit-patches.html#downloading-changes-from-gerrit Jun 15 05:40:45 but the repo tool is just giving me "error: project not found" Jun 15 05:42:59 how should I be invoking it? Jun 15 05:46:24 ah, got it; it should be the id in the review URL, not the Change-Id Jun 15 06:01:55 anyone have experience with renderscript? I can't seem to make my surfaceview translucent despite the seemingly simple instructions Jun 15 06:02:00 * JakeWharton prepares for crickets Jun 15 06:03:28 kevinb: Thanks for earlier ... I isolated it ... View.post() returns a result boolean, but might Jun 15 06:03:30 // Assume that post will succeed later Jun 15 06:03:31 return true; Jun 15 06:06:27 it's pretty amusing that Renderscript had to pivot to compute Jun 15 06:44:06 I'm trying to create a simple Service that can receive "Share" (action.SEND) intents Jun 15 06:44:41 BHSPitMonkey: A service or an activity? Jun 15 06:44:43 I threw the appropriate intent-filter into the tag in the manifest, but my app isn't appearing in the list when I try to share something Jun 15 06:44:46 pjdelport: Service Jun 15 06:45:22 I get the impression this is easier done with activities, but I'm not looking to have a UI appear when you share something with this service Jun 15 06:45:31 just want some invisible code to execute Jun 15 06:46:00 I think you'll need an activity to receive the intent and bounce things off to the service Jun 15 06:46:29 are you certain? intent filters are supposed to work with activites, services, and broadcast receivers alike Jun 15 06:47:05 They work analogously, but they're different sets of intents. Jun 15 06:48:06 okay Jun 15 06:48:29 Intents are used for a number of non-overlapping things; they're not a universal common bus, or anything like that. Jun 15 06:48:34 I just looked at a "Copy to Clipboard" sharing target example, and it indeed uses an Activity Jun 15 06:48:41 I guess they would have used a Service if it were possible Jun 15 06:48:53 e.g. the intent filters associated with services are used when you call startService() Jun 15 06:49:11 pjdelport: yeah, that made me suspect that might be the case Jun 15 06:49:33 right; in those cases, the intents are specifically for launching activities Jun 15 06:51:49 in a simplified nutshell, startActivity(intent) will go and find all activities that are available, and then filter them by whether they're interested in that intent Jun 15 06:53:04 the intent filters attached to each activity are purely passive metadata; it's only startActivity() that gives them any meaning/behavior Jun 15 06:53:13 by looking at them Jun 15 06:54:04 same for startService(), etc. Jun 15 06:56:27 pjdelport: so is there a way to make this activity not present a UI? Jun 15 06:58:07 http://stackoverflow.com/questions/2704084/how-to-launch-an-activity-without-a-ui Jun 15 06:59:36 something along those lines Jun 15 07:00:16 hmm yeah, looks like I need to go with the Translucent.NoTitleBar hack since I don't have control over how the intent is getting shipped out Jun 15 07:01:03 actually no, I bet I can use NoDisplay because this isn't the same activity I'm using for my app drawer launcher. Jun 15 07:01:36 success! thanks a bunch, pjdelport Jun 15 07:05:04 BHSPitMonkey: I think the Theme.NoDisplay theme is better for that Jun 15 07:05:13 pjdelport: yep Jun 15 07:05:14 it's specifically for activities without UI Jun 15 07:05:29 ah, right, yes Jun 15 07:05:41 and yeah, you'll want them to be separate activities Jun 15 07:06:00 fortunately that's how I want things organized anyway Jun 15 07:08:05 How can I make the content of a