How do I know if my location is turned on Android?

How do I know if my location is turned on Android?
Answer
To get current Geo location in android google maps,you should turn on your device location option.To check whether the location is on or not,you can simple call this method from your onCreate() method. I use such way for NETWORK_PROVIDER but you can add and for GPS.
 

Tìm kiếm

Back
Top