我在网上没有找到任何参考资料。只有一些相同行的logcat,显然来自Android 4.2+,也可能来自CyanogenMod设备,比如我拥有的GT-I9100。
在Eclipse中开发我的android应用程序时,我偶尔会在LogCat视图中看到这一行,并使用应用程序的包名进行自动过滤。因此,它似乎来自我的应用程序,或者至少是由我的应用程序引起的。
完整的一行是:Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value
这个应用程序与Android的全局设置没有任何关系。
有什么提示吗?
谢谢。
发布于 2013-10-04 21:03:08
那是毕加索图书馆。
产生警告的调用( API级别> 17)为:
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;
}请参阅文档ref:https://developer.android.com/reference/android/provider/Settings.System.html#AIRPLANE_MODE_ON
https://stackoverflow.com/questions/19164389
复制相似问题