android.net.Proxy has four static methods:
getDefaultHost getDefaultPort getHost(Context) getPort(Context) According to the javadocs: - (getDefaultHost, getDefaultPort) are for a carrier proxy - (getHost, getPort) are for a user specified proxy I'm looking for methods that will return the user specified proxy username and password. I looked at the source code for android.net.Proxy and I don't see any methods for retrieving the username or password: http://git.source.android.com/?p=platform/frameworks/base.git;a=blob;f=core/java/android/net/Proxy.java;h=86e1d5b64c6ff9a19b190b4f3100afe9c78e184c;hb=54b6cfa9a9e5b861a9930af873580d6dc20f773c Are there other API's that I should be looking at? android.net.ConnectivityManager looked promising but I did not see any methods for retrieving proxy configuration: http://code.google.com/android/reference/android/net/ConnectivityManager.html android.net.http.AndroidHttpClient doesn't seem to help either. The source code doesn't reveal how Android handles proxies: http://git.source.android.com/?p=platform/frameworks/base.git;a=blob;f=core/java/android/net/http/AndroidHttpClient.java;h=01442aecaac13c7907d98352b259886bf4e6e3d0;hb=54b6cfa9a9e5b861a9930af873580d6dc20f773c Sean On Oct 26, 3:32 pm, Charlie Collins <[EMAIL PROTECTED]> wrote: > I believe the android.net.Proxy class is intended to be used for > default carrier proxies, which don't require credentials (but rather > use the fact that the device is on the private carrier network as > auth) not for connecting through your own proxy server with > authentication. > > You should be able to do your own proxy stuff though, with > credentials, using the straight up HttpClient classes - looks like you > are almost there. Check out the HttpClient 4 examples. > > http://hc.apache.org/httpcomponents-client/examples.html > > This specific example should work on Android, all these classes are > there (or so it appears from a quick > glance):http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/modul... > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---