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?

风流意气都作罢 提交于 2019-11-30 17:39:58

It was the Picasso library.

And the calls generating the warning (for API level > 17) are:

import static android.provider.Settings.System.AIRPLANE_MODE_ON;

and

static boolean isAirplaneModeOn(Context context) {
  ContentResolver contentResolver = context.getContentResolver();
  return Settings.System.getInt(contentResolver, AIRPLANE_MODE_ON, 0) != 0;
}

See docs ref: https://developer.android.com/reference/android/provider/Settings.System.html#AIRPLANE_MODE_ON

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!