How to turn airplane mode on or off in an Android application
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5533881">Toggle airplane mode in Android</a>  </p>
</blockquote>



<p>Is there a way to turn airplane mode on or off with either a custom button or a dialogue box (preferred)?</p>

<p>In my application I'm telling the user whether or not he/she has a signal and to check for airplane mode being on or off, then give them the option to turn it off if it's on. </p>

<p>Is there any class/function/method available in Android to do this?</p>
