Change Location Mode to High Accuracy Programmatically Android
问题 Is it possible to get the information on the location mode which the user has selected among the three modes under the location settings options i.e 1.Hight Accuracy 2.Battery Saving 3.GPS Only I want to programmatically check if user has selected High Accuracy mode if not then enable it automatically. Is it possible ? Please advice. 回答1: It is possible to get the device's current location mode since API level 19 (Kitkat) : public int getLocationMode(Context context) { return Settings.Secure