ACTION_LOCATION_SOURCE_SETTINGS:无法解析或不是字段 [英] ACTION_LOCATION_SOURCE_SETTINGS : cannot be resolved or is not a field
本文介绍了ACTION_LOCATION_SOURCE_SETTINGS:无法解析或不是字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过Intent调用ACTION_LOCATION_SOURCE_SETTINGS.它表明无法解决,或者不是从外部导入Project时引起的字段.我现在该怎么办?
I'm calling ACTION_LOCATION_SOURCE_SETTINGS via Intent.its is showing cannot be resolved or is not a field caused while importing Project from outside. What should i do now ?
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);
这篇关于ACTION_LOCATION_SOURCE_SETTINGS:无法解析或不是字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文