为什么我有"设置airplane_mode_on从android.provider.Settings.System [...]&QUOT移动;到时,我的应用程序无关,与该logcat的? [英] Why I have "Setting airplane_mode_on has moved from android.provider.Settings.System [...]" into the logcat when my app has nothing to do with that?
问题描述
我没有找到上线任何引用。只是一些与logcat中在同一行,显然是从Android 4.2以上版本,并可能从CyanogenMod的设备,如GT-I9100我自己。
I didn't found any reference on-line. Just some logcat with the same line, apparently from Android 4.2+ and possibly from CyanogenMod devices, like the GT-I9100 I own.
我开发Android应用程序在Eclipse中,我不断收到这条线,过一段时间,到LogCat中视图,自动过滤,用我的应用程序的软件包名称。因此,它似乎是从哪里来的,或者至少造成,我的应用程序。
Developing my android App in Eclipse, I keep getting this line, once in a while, into the LogCat view, auto-filtered with my app's package name. So it seems to be coming from, or at least caused by, my app.
整条生产线为:设置airplane_mode_on已经从android.provider.Settings.System搬到android.provider.Settings.Global,返回只读值
应用程序不什么都没有做这样的Android全局设置。
The app doesn't have nothing to do with such Android global setting.
任何暗示?
感谢。
推荐答案
这是毕加索库。
和调用生成警告(对于API级> 17):
And the calls generating the warning (for API level > 17) are:
import static android.provider.Settings.System.AIRPLANE_MODE_ON;
和
static boolean isAirplaneModeOn(Context context) {
ContentResolver contentResolver = context.getContentResolver();
return Settings.System.getInt(contentResolver, AIRPLANE_MODE_ON, 0) != 0;
}
请参阅文档参考:
<一href=\"https://developer.android.com/reference/android/provider/Settings.System.html#AIRPLANE_MODE_ON\">https://developer.android.com/reference/android/provider/Settings.System.html#AIRPLANE_MODE_ON
这篇关于为什么我有&QUOT;设置airplane_mode_on从android.provider.Settings.System [...]&QUOT移动;到时,我的应用程序无关,与该logcat的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!