title: Is it correct to call WebServices inside onReceive of BroadcastReceiver?
body: <p>I've a BroadcastReciever on a separate class, i register that receiver on one of the activities, and this broadcast receiver trigger when there is an Internet connectivity. Inside <code>onReceive()</code> of the receiver, i execute a method for getting token from the server. </p>
  
  <p>But when i gone through the documentation i found that; "<em>When it runs on the main thread you should never perform long-running operations in it (there is a timeout of 10 seconds that the system allows before considering the receiver to be blocked and a candidate to be killed).</em>" </p>
  
  <p>Please help me with the correct way of doing it.</p>