title: "java.net.SocketException: Network unreachable" in Service Android
body: <p>My problem is:</p>
  
  <p>I am developing an android application with a service. This service uses the Internet to consume a webservice. It works perfect, but if I leave the phone locked a long time, the following error occurs in the </p>
  
  <pre><code>log: "java.net.SocketException: Network unreachable".
  </code></pre>
  
  <p>The application works again perfect to unlock the phone.</p>
  
  <p>I guess after some time to save battery disables internet until you activate the phone again.</p>
  
  <p>Any solution?</p>
  
  <p>Thank You!</p>