You need android.permission.INTERNET declared in your manifest.

Cheers,
Justin
Android Team @ Google

On Jan 9, 5:07 pm, Jamie <[email protected]> wrote:
> Thanks for the slides!! Do you know of any current resources for
> accessing web API's (examples, explanations, etc.)?  The android
> implementation has undergone some changes and most resources I have
> found do not work any longer.  Also, I am not familiar with Web
> protocol, so documentation is unclear both on the android and apache
> sites.
>
> Evertime I execute this code:
>
> HttpClient httpClient = new DefaultHttpClient();
> HttpContext localContext = new BasicHttpContext();
> HttpGet get_request = new HttpGet(URI);
> HttpResponse response = httpClient.execute(get_request, localContext);
>
> It throws a Socket Exception on the last line.  Any ideas why??
--~--~---------~--~----~------------~-------~--~----~
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