Back to project page BatteryFu.
The source code is released under:
GNU General Public License
If you think the Android project BatteryFu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tobykurien.batteryfu.compat; /*w w w . j a v a 2 s. c o m*/ import android.annotation.TargetApi; import android.content.Context; import android.os.Build; @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) public class Api17 { public static boolean isAirplaneMode(Context context) { return android.provider.Settings.Global.getInt(context.getContentResolver(), android.provider.Settings.Global.AIRPLANE_MODE_ON, 0) == 1; } }