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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -