Monday, July 26, 2010

[android-developers] Re: Using DefaultHttpClient in Eclipse for AndroidApp

Did you remember to declare the INTERNET permission in the
Manifest.xml file?

Can you talk to the internet via the browser in your emulator?

Your pseudo-code looks okay to me.

On Jul 24, 7:48 am, ArtworkAD <artjomzabe...@googlemail.com> wrote:
> Hi all,
>
> I just want to make a http request...thats all:
>
>     String url = "http://www.google.de";
>     DefaultHttpClient client = new DefaultHttpClient();
>     HttpGet method = new HttpGet(url);
>     HttpResponse res = client.execute(method);
>
> I started the debugger and viewed the params of client, all of them
> are set to null. res var has a lot of 'null' too and execute has no
> result
>
> I do not see what is wrong...please help

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

No comments:

Post a Comment