Try starting the emulator with "emulator .... -http-proxy http://proxyserver:port"
This will make the emulator use the specified proxy "globally" and will work fine for development and testing. I'm not sure what happens if one of your users needs to use a proxy later on. I'd guess there's a way to retrieve the proxy settings? I do know that a proxy can be specicified in HttpClient. Wait, let me google that for you: HttpClient client = new HttpClient(); client.getHostConfiguration().setProxy(proxyHost, port); I cannot tell you how to retrieve the connection's proxy settings in Android, but luckily, that was not your question :-) On 18 Mrz., 07:31, Nirmal Patel <[email protected]> wrote: > I am confused with how the Proxy settings work in the Android emulator. > > I am able to access internet in the browser by configuring my Proxy settings > on the APN (TelKila) > However, my App is not able to access internet. (uses-permission mentioned > in AndroidManifest.xml) > > I am using HttpClient in my app to make a web service call which fails with > a UnknownHostException. > To access internet through HttpClient; I have to add proxy settings to > HttpClient explicitly in my code. > > Shouldn't HttpClient pick up the proxy settings configured on the APN?? -- 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

