How to resolve request time failed exception?
<p>I have developed one application which talks to the server to send and receive data, for that we have implemented activities and one background service so each activity has to register with the service when it needs to send any request so service will further forward that request to the server via Wi-Fi router.we have established socket connection with the server and data flows through it.</p>

<p>Problem: when device goes to sleep mode and after some time if you turns on device my app is disconnected from the server and in logcat following exception comes:</p>

<blockquote>
  <p>SntpClient(789): request time failed: java.net.SocketTimeoutException: Try again</p>
</blockquote>

<p>I would like to know why this exception comes and how to resolve it.</p>
