Search code examples
androidgpslocationbroadcast

Broadcast Receiver when Location/GPS is called


Is there any Broadcast, Intent-Filter for location, network, gps, Google? I mean like a Firewall. I want to intercept any app which tries to localize your cellphone.


Solution

  • You can use the passive location provider to get informed every time an app receives a location update.

    http://developer.android.com/reference/android/location/LocationManager.html#PASSIVE_PROVIDER

    This, however, will not let you intercept location updates in a way that "consumes" them.