- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我是 Xamarin 开发人员,我研究了这个: https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi
我想调用方法“startResolutionForResult”,但为此我需要知道 REQUEST_CHECK_SETTINGS 的值。在 Xamarin GPS Api 中,此方法的第二个参数只是一个整数。
这听起来像是一个愚蠢的问题,但没有记录该值,并且 android 文档中只有一页引用它: 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
最佳答案
天哪,经过大量搜索我找到了官方的 Google 示例,它将此常量定义为 0x1
。
protected static final int REQUEST_CHECK_SETTINGS = 0x1;
sample 和有问题的常量 can be found on GitHub .
(旧的 github 链接已损坏。Check the new one)
看起来这个值只是一个整数,就像您使用 StartActivityForResult()
来确保我们从请求的内容中返回一样。
关于android - REQUEST_CHECK_SETTINGS 的值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31572323/
我正在关注此文档:https://developer.android.com/training/location/change-location-settings.html REQUEST_CHECK
我是 Xamarin 开发人员,我研究了这个: https://developers.google.com/android/reference/com/google/android/gms/locat
我正在尝试使用 OuterClass.this 从 ResultCallback 接口(interface)访问顶级 Activity (MainActivity),但错误显示: cannot res
我是一名优秀的程序员,十分优秀!