title: android - How to set Timeout
body: <p>In My application i am calling the web service method but it takes more time for the response. </p>
  
  <p>Because of without time specifying,  i got the following Exception. How to handle it.
   java.net.socketException: connection Reset.</p>
  
  <p>So i want to implement the timeout for that particular web service method. It means suppose web service response not get after the specified time then it will generate timeout exception. how to implement it. </p>
  
  <p>can anybody help me? </p>
  
  <p>thanks</p>