Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the value of REQUEST_CHECK_SETTINGS?

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

like image 679
Daan Avatar asked Jul 22 '15 19:07

Daan


1 Answers

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.

like image 74
Cheesebaron Avatar answered Nov 02 '22 20:11

Cheesebaron