Google 地图是否以编程方式启用 GPS?
Google map is enabling GPS programmatically?
我注意到随着 google 地图的新更新,如果您的 GPS 已关闭,它会警告您准确性。这是新事物,如果您点击确定,它就会为您启用 GPS。这意味着它以编程方式启用 GPS,而不是我去设置。我在三星 S4
上安装了 Kitkat 运行
这是否意味着有官方的方式来以编程方式启用 GPS?如果是,那么如何?
谢谢
GooglePlay服务7.0及以上版本有此功能
In Google Play services 7.0, we’re introducing a standard mechanism to
check that the necessary location settings are enabled for a given
LocationRequest to succeed. If there are possible improvements, you
can display a one touch control for the user to change their settings
without leaving your app.
http://android-developers.blogspot.in/2015/03/google-play-services-70-places-everyone.html
我注意到随着 google 地图的新更新,如果您的 GPS 已关闭,它会警告您准确性。这是新事物,如果您点击确定,它就会为您启用 GPS。这意味着它以编程方式启用 GPS,而不是我去设置。我在三星 S4
上安装了 Kitkat 运行这是否意味着有官方的方式来以编程方式启用 GPS?如果是,那么如何?
谢谢
GooglePlay服务7.0及以上版本有此功能
In Google Play services 7.0, we’re introducing a standard mechanism to check that the necessary location settings are enabled for a given LocationRequest to succeed. If there are possible improvements, you can display a one touch control for the user to change their settings without leaving your app.
http://android-developers.blogspot.in/2015/03/google-play-services-70-places-everyone.html