title: How can I listen for network connectivity in android
body: <p>Can you please tell me how can I detect  network connectivity in android?</p>
  
  <p>An example is when the airplane mode is on and off. How can I listen for that?</p>
  
  <p>Thank you.</p>