title: android dev: problem with mobile internet connection after phone wake up
body: <p>I've encountered a problem with mobile internet connection after phone wake up from sleep mode. There is an application which updates some data periodically. <code>AlarmManager</code> triggers my <code>BroadcastReceiver</code> which starts <code>service</code>. <code>service</code> acquires <code>PARTIAL_WAKE_LOCK</code> and some http requests are sent. Unfortunately when update interval is quite big (5h) <code>service</code> could not send/download anything. Problem doesn't appear when I'm using WIFI connection instead of mobile and <code>WIFI sleep policy</code> is set to <code>never</code>. Everything is OK on mobile connection when update interval is short (less than half an hour). I'm also sure 5h event is received by my <code>BroadcastReceiver</code> because I've checked it. </p>
  
  <p>How such events should be handled. I've tried to check whether connection is established by <code>ConnectivityManager</code> and retry 5 times if not but still same problem appears.</p>
  
  <p>Thanks for any answer in advance   </p>