Chalom.E
Chalom.E

Reputation: 697

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.

Upvotes: 0

Views: 899

Answers (2)

forgemo
forgemo

Reputation: 4884

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.

Upvotes: 0

Ian
Ian

Reputation: 3520

Android is designed such that each app is in it's own world and doesn't know anything about other apps. So no.

You could only know when the internet, location services, etc, is available.

So you could know when your location has changed and catch that update, but you have no way of knowing if some other app is using that data.

Upvotes: 1

Related Questions