android - Broadcast receiver for GPS state? -
Is there a way to be notified when the GPS is turned on / off?
When I saw the device stops again, getLastKnownLocation (provider) is zero. So I want to save the location when the GPS stops in a database.
Register for a Broadcast Receiver Listen to the intention of LocationManager, it will be broadcast when the GPS provider (and Other providers) are enabled / disabled
Comments
Post a Comment