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; //from w w w .java2 s. c o m import android.content.Context; public class Api3 { @SuppressWarnings("deprecation") public static boolean isAirplaneMode(Context context) { return android.provider.Settings.System.getInt(context.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, 0) == 1; } }