Saturday, September 28, 2013

[android-developers] android httpURL connection problem

Hi,

         i use below code to make http connection.

 URL url = new URL(filePath);
 HttpURLConnection con = (HttpURLConnection) url.openConnection();
 con.setReadTimeout(10*1000);
 con.setConnectTimeout(10*1000);

but when i use setReadTimeout and connectTimeout values then
java.net.SocketTimeoutException: Transport endpoint is not connected



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate