Thanks for the response.

I am able to connect to Server through HTTPConnection.I have included
permission.

Most frequently i get Socket Connection Error.

It times out very frequently.

Like I am doing a online streaming application.It will play for sometime and
after afterwards it will close the connection.

so i need to set any other thing for this?


On Mon, Oct 11, 2010 at 5:00 PM, pramod.deore <[email protected]>wrote:

> did you write permission in manifest as
> <uses-permission android:name="android.permission.INTERNET" />
>
> On Oct 11, 4:17 pm, kavitha b <[email protected]> wrote:
> > Hi All,
> >
> > I am getting this error frequently when making HTTPConnection.
> >
> > Sometimes it connects and sometimes not.
> >
> > I have tried with various link.It behaves same with all.
> >
> > What may be the cause?
> >
> > W/System.err( 1845): java.net.SocketException: The operation timed out
> > W/System.err( 1845):     at
> > org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native
> > Method)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.java:478)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:565)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readln(HttpURLConnection.java:1178)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readServerResponse(HttpURLConnect...)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.sendRequest(HttpURLConnection.jav...)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal(HttpURLConnecti...)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest(HttpURLConnection.java:...)
> > W/System.err( 1845):     at
> >
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection....)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to