Android Disable airplane mode at version >=4.1
<p>I need to disable airplane mode in my kiosk app, i tried snippet below to overwrite device settings </p>

<pre><code>try {
    int airplane = Settings.System.getInt(getApplicationContext().getContentResolver(), "airplane_mode_on");
    if (airplane == 1) {
        getApplicationContext().sendBroadcast(new Intent("android.intent.action.AIRPLANE_MODE").putExtra("state", false));
    }
} catch (SettingNotFoundException e) {
    e.printStackTrace();
}
</code></pre>

<p>This code seems to work up to android version 4.0, whereas in 4.1 and above it doesn't works.I hope to make it work by rooting the device to access the system settings.
Actually my task to disable airplane mode feature from status bar in nexus tablet. Let me know any suggestions on these to implement.</p>
