I am trying to check the location/connection settings of the user's device to take advantage of Google Fused API and provide the user's location. I've read a lot of samples such as the one at: (https://github.com/googlesamples/android-play-location/blob/master/LocationSettings/app/src/main/java/com/google/android/gms/location/sample/locationsettings/MainActivity.java)
I've simplified my project to let the MainActivity do all the job (implement Google interfaces etc.) but still face the same problem.
When the device has not all the prerequisite settings (Location enabled and set at High Accuracy & WiFi scanning always on), I attempt to initiate a resolution. The problem is that when the user clicks Ok, OnActivityResult always receives resultCode = Result.Canceled. The strange thing is that the device settings are changed indeed after Ok is clicked to the ones that satisfy Google's prerequisites for Fused API to work.
There's a similar post: https://forums.xamarin.com/discussion/81994/locationsettings-kitkat-emulator-result-canceled, but no reply yet for this behavior. I would be grateful if anyone could let us know what is going wrong.