13

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.

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.

The complete line is: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value

The app doesn't have nothing to do with such Android global setting.

Any hint?

Thanks.

3
  • Are you using any third-party libraries that might be accessing this? Commented Oct 3, 2013 at 17:01
  • Well, thanks. I didn't think about them. Could be BugSense checking for connections (just a thought). I'll try commenting out the calls to this library to see what happens.
    – dentex
    Commented Oct 3, 2013 at 17:10
  • It's not BugSense: the line has spawned again.
    – dentex
    Commented Oct 3, 2013 at 17:49

1 Answer 1

31

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

4
  • Glad you figured it out - you can accept your own answer for reputation.
    – Pedantic
    Commented Oct 4, 2013 at 13:50
  • 1
    @dentex - I've got the same problem. I just wonder; what did you do to solve this? Where did you find these lines? In the Picasso source? And did you remove those lines? Doesn't that break anything? Any more information on this would be very welcome!
    – kramer65
    Commented Dec 24, 2013 at 8:37
  • 1
    @kramer65: I just ignore the warning. It makes no harm. Yes it's from the Picasso source. I went to find the link to this issue: github.com/square/picasso/issues/274 but noticed you already found it ;)
    – dentex
    Commented Dec 24, 2013 at 10:06
  • Nice catch. Thanks for sharing the root cause. Commented Mar 9, 2019 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.