When you say 'HttpClient', I assume you mean Apache HTTPClient? If so, this is a toolkit for accessing HTTP content from a Java context, whether Java is running in Android, in a Java applet running in Firefox on Windows or running in a backend Unix Application server. HttpClient is not specific to Android and therefore doesn't intrinsicly know how to 'talk' to Android to discover how Android is configured with a Proxy. You will need to bridge this gap.
On Friday, March 18, 2011 6:31:36 AM UTC, Nirmal Patel 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

