For that matter, it'd be nice if I could stop certain apps from running in the background at all. A task killer isn't the answer here - a few seconds is enough to gather some data and transmit it, and at that point the damage is done.
What would be interesting IMO were some way to see which app has registered which intents and possibly an option to override those registrations.
When the app goes into the background the system invalidates the token, so any work waiting in queue somewhere will actually fail on the token check when it comes up.
If you want to ask a background service (of your own), or fire off an intent, you pass the ForegroundToken with it. If the work starts while your app is still in the foreground peachy, if not, it fails.
In a foreground > background > foreground cycle, your app gets a new ForegroundToken on every onResume event.
If you want apps to have true background access to a permission, that is a separate toggle (yes more complicated I know, but theoretically possible). They then can pass null into the ForegroundToken argument.
1. More finegrained permissions (per api call basically)
2. Ability to give/deny permission per use case or some time.
[0]: http://forum.xda-developers.com/android/apps-games/app-micro...
Classic living in the bubble.
> You can try to deny Google Play access to your handheld's location by opening the Settings app and digging through Apps -> Google Play Store -> Permissions, and flipping the switch on "location."
So it appears the article is talking about M or later.
(my location permission was actually already off for the Play Store, and flipping it on and off again gave no prompt, so not sure what the author was talking about with "but you'll be told you can't at that fine-grain level")
Classic finding things to be offended about.
This article (as originally written, they've updated it since) was stating that a privacy feature that never existed had been taken away. There never was a location services toggle for specifically Maps, and pre-M it's not possible to make one that works (at least, not one that someone who doesn't trust maps with their location should be using).
These GPS changes started in 4.0.4 (or was it 4.1?) which means 98% of devices (96%) include this:
You can, of course, switch off location for google maps on android, and I'm surprised this article wasn't fact-checked for that. Settings->Apps->Maps->Permissions. Same as any other app.
I'm assuming the confusion is because the 'location settings' option in maps settings takes you to the phone's global location settings screen, which does only offer a global toggle. I don't think there's anything nefarious there, it's just that the settings menu isn't terribly well thought out.
disclaimer: googler on maps, but not android maps
edit: The article has been updated and now reads: "Although it makes far more sense for Maps to have access to your location, the latest build doesn't give you a decent option of turning it off. If you do cut off Maps' access to your location, "basic features of your device may no longer function as intended," the operating system warns."
Not that they've bothered to update the rest of the article.