I am Xamarin developer and I studied this: https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi
I want to call the method "startResolutionForResult" but to do that I need to know the value of REQUEST_CHECK_SETTINGS. In the Xamarin GPS Api, the second argument of this method is just an integer.
It may sound like a stupid question but the value is not documented and there is only one page in the android documentation that refers to it: https://www.google.nl/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site:developers.google.com+REQUEST_CHECK_SETTINGS&filter=0
Holy crap, after much searching I found the official Google sample, which defines this constant to 0x1
.
protected static final int REQUEST_CHECK_SETTINGS = 0x1;
The Sample and the constant in question can be found on GitHub.
(old github link is broken. Check the new one)
It seems this value is just an int just like when you use StartActivityForResult()
to make sure we are returning from something we requested.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With