我通过 Intent 调用 ACTION_LOCATION_SOURCE_SETTINGS。它显示无法解析或不是从外部导入项目时引起的字段。我现在该怎么办?
Intent viewIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(viewIntent);
试试这个..
我猜你的导入是错误的
使用
import android.provider.Settings;
或者尝试像下面这样。
Intent viewIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(viewIntent);
试试这个,
startActivity(Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS))
在 Eclipse 中检查项目的属性,选择“Android”并检查目标名称是“Android 6.0”或 +