title: How to change the network state of device from source code in Android?
body: <p>I am trying to change the network state of the device from the source code.<br>
  I observed that there is a permission to grant to the applications for changing the network state i.e., CHANGE_NETWORK_STATE.</p>
  
  <p>But I am not able to find any example or code that can change the network state of a device.</p>
  
  <p>Please let me know if anyone knows or have an example to change the network state of a device.</p>
  
  <p>Regards,<br>
  SSuman185</p>