How do I know if my Android location services are enabled?

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. Settings > Location > Mode > Battery Saving .

Sizin İçin Seçtik  1 tl kaç NFT?

Leave a Reply

Your email address will not be published. Required fields are marked *