Try debugging and check if you are able to get the InputStream from the
specified URL.
If not :

Get the InputStream from the below example

HttpClient httpclient = new DefaultHttpClient();

HttpPost httppost = new HttpPost(url); // url is URL.toString()

HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
InputStream instream = entity.getContent();

You basically are using a HTTPEntity here to get the stream from the
response.

This should work.

A normal HttpConnection hangs some times and doesn't fetch us the
InputStream.

Thanks,
Gyan.

--~--~---------~--~----~------------~-------~--~----~
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