为什么我有"设置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?

查看:1343
本文介绍了为什么我有"设置airplane_mode_on从android.provider.Settings.System [...]&QUOT移动;到时,我的应用程序无关,与该logcat的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有找到上线任何引用。只是一些与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,返回只读值

应用程序不什么都没有做这样的Andr​​oid全局设置。

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆