tags:

views:

813

answers:

2

Guys,

I want to to use the browser inside the Android Emulator, and i want to use the proxy settings on my machine, how can i setup this.

Reading the very good manuals of android, they tell me i should start android using the following command

emulator -avd myavd -http-proxy http://168.192.1.2:3300

But still am not able to use the emulator browser.

Please note am using the IPAddress for my proxy server.

What am i doing wrong

Gath

A: 

Hi, there's some explaination on google groups

I hope this will help you. Michaël

Michaël
+2  A: 

This will not help for the browser, but you can also define a proxy in your code to use with a HTTP client:

// proxy
private static final String PROXY = "123.123.123.123";
// proxy host
private static final HttpHost PROXY_HOST = new HttpHost(PROXY, 8080);
HttpParams httpParameters = new BasicHttpParams();
DefaultHttpClient httpClient = new DefaultHttpClient(httpParameters);
httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, PROXY_HOST);
kuester2000
You should not put "127.0.0.1" for String PROXY.
Michaël