airplanemode is enabled but its not changed in the settings->Wireless networks
<p>i am enabling the airplanemode.its not calling the broadcastreceiver for the state change of airplanemode. after setting the airplanemode when i reaad back i am getting the airplanemode is on. but its not actualy gone to airplanemode because i can able to make a call...</p>

<p>This is my code </p>

<p>Check to see if it is enabled or not:</p>

<pre><code>boolean isEnabled=Settings.System.getInt(this.getContentResolver(),Settings.System.AIRPLANE_MODE_ON, 0) == 1;
</code></pre>

<p>To toggle it:</p>

<pre><code>// toggle airplane mode
Settings.System.putInt(this.getContentResolver(),Settings.System.AIRPLANE_MODE_ON, isEnabled ? 0 : 1);
// Post an intent to reload
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", !isEnabled);
sendBroadcast(intent);
</code></pre>

<p>To get notifications on state change:</p>

<pre><code>IntentFilter intentFilter = new IntentFilter("android.intent.action.SERVICE_STATE");
BroadcastReceiver receiver = new BroadcastReceiver() {      
@Override
public void onReceive(Context context, Intent intent) {
  Log.d("AirplaneMode", "Service state changed");
  }
}
this.registerReceiver(receiver, intentFilter);
</code></pre>

<p>i am not getting the mode change detection and also its not actualy enabled since i can able to make a call.i need to do any other things. can any one please help me</p>
