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

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -