I'm trying to use the new SettingsApi (https://developer.android.com/reference/com/google/android/gms/location/SettingsApi.html) from GooglePlayServices to detect the need for changes on users settings without exiting the app.
My problem is that the dialog appears, but it only says it will require the Wifi and internet to access location. I also want it to request the GPS (this, is the High Accuracy mode or the device only mode).
My code for getting the LocationSettingsRequest:
public static LocationSettingsRequest getHighPriorityLocationSettingsRequest() {
LocationRequest locationRequest = LocationRequest.create();
locationRequest.setFastestInterval(FASTEST_INTERVAL);
locationRequest.setInterval(UPDATE_INTERVAL_ACTIVE);
locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
return new LocationSettingsRequest.Builder()
.addLocationRequest(locationRequest)
.setAlwaysShow(true)
.build();
}
Thank you!