由网友(悲伤撕不开止不住的流逝)分享简介:我需要得到用户的位置。我把清单I need to get location of user. I put in manifest <使用-权限的Android:名称=android.permission.ACCESS_FINE_LOCATION/> 我需要得到用户的位置。我把清单
I need to get location of user. I put in manifest
<使用-权限的Android:名称=android.permission.ACCESS_FINE_LOCATION/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
如何提示用户启用GPS_PROVIDER和/或NETWORK_PROVIDER?
How to prompt user to enable GPS_PROVIDER and/or NETWORK_PROVIDER ?
推荐答案
您可以开始选择意向的位置的设置。
You can start an options intent for the location settings.
Intent gpsOptionsIntent = new Intent(
android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(gpsOptionsIntent);
相关推荐
最新文章