Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Gobal类在Android 4.2.2中不起作用?_Java_Android - Fatal编程技术网

Java Gobal类在Android 4.2.2中不起作用?

Java Gobal类在Android 4.2.2中不起作用?,java,android,Java,Android,我使用上述类显示以下结果: AIRPLANE_MODE_ON=0 AIRPLANE_MODE_RADIOS=cell,bluetooth,wifi,nfc,wimax 我使用的代码如下: Log.d("Airplane_mode_on",Settings.Global.getInt(mcontex.getContentResolver(), Global.AIRPLANE_MODE_ON)) Log.d("Airplane_mode_radios",Settings.Global.getStr

我使用上述类显示以下结果:

AIRPLANE_MODE_ON=0
AIRPLANE_MODE_RADIOS=cell,bluetooth,wifi,nfc,wimax
我使用的代码如下:

Log.d("Airplane_mode_on",Settings.Global.getInt(mcontex.getContentResolver(), Global.AIRPLANE_MODE_ON))
Log.d("Airplane_mode_radios",Settings.Global.getString(mcontex.getContentResolver(),Global.AIRPLANE_MODE_RADIOS))
在Logcat中,它显示“未找到类异常”。当我阅读Settings.Global的文档时,它说这个类与API 17兼容。有什么建议吗?

请参阅我的代码中的@Cloudream,设置。安全类和设置。系统类工作非常好。唯一的问题是我不理解这门课