title: How to detect device status Offline/Online in Android
body: <p>I am noob in Android. I want to display device status at web dashboard whether device is offline/online. Is GCM helpful for this to do or something what should I use for this . </p>
  
  <p>Or Should I call any Web API continuous to send the phone status from phone to server until phone is ON so that I can display here "Online" status of phone at web dashboard ?? </p>
  
  <p>Offline status when your device is OFF &amp; Online status when your device is ON</p>
  
  <p>Any idea ??</p>