我需要得到用户的位置。我把清单
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);