[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-04-21 Thread Otherwish
Hi, String websiteData = null; DefaultHttpClient client = new DefaultHttpClient(); URI uri = new URI(url); HttpGet method = new HttpGet(uri); HttpHost proxy = new HttpHost(proxy, port);

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-04-17 Thread Andrey M.
Pratap, could you explain in more details how did you solve this problem? On 26 фев, 15:27, Pratap pratap.sola...@gmail.com wrote: Problem Solved...we need to the following lines of code.         DefaultHttpClient client = new DefaultHttpClient();        

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-02-26 Thread Pratap
Problem Solved...we need to the following lines of code. DefaultHttpClient client = new DefaultHttpClient(); HttpHost proxy = new HttpHost(http_proxy:ip_address, port_no, protocol); client.getParams().setParameter (ConnRoutePNames.DEFAULT_PROXY,

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-02-25 Thread dillirao malipeddi
if you want to set connection time out use bellow code int TIMEOUT_MILLISEC = 1; //=10sec HttpParams my_httpParams = new BasicHttpParams();; HttpConnectionParams.setConnectionTimeout(my_httpParams, TIMEOUT_MILLISEC); //set conn time out HttpConnectionParams.setSoTimeout(my_httpParams,

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-02-25 Thread AlCapwn
Do you have permission to access the Internet declared in your manifest? On Feb 25, 10:53 am, Pratap pratap.sola...@gmail.com wrote: I'm developing an app which needs to connect to the internet, but when i send a request using DefaultHtpClient.execute() method it takes 2-3 minutes and then

[android-developers] Re: java.net.SocketException: The operation timed out............not behind proxy

2009-02-25 Thread PRATAP SOLAPUR
Thanks for your suggestion. but its still not workingNow it says 02-26 00:37:55.890: WARN/System.err(578): java.net.SocketTimeoutException: Socket is not connected Do u know any thing abt that.and another thing , the exception s being thrown only when i try to connect to