I am a little confused about the network proxy API of android. It
seems there are several proxy APIs in different network packages and
they use different proxy settings. I found no global proxy setting
entry.

 The “android.net” package uses the “Proxy” class. From code of
“Proxy.getHost(…)” method we can see that it gets proxy from item of
"Settings.Secure.HTTP_PROXY” in database or  returns the property
value of “net.gprs.http-proxy”. This API is used by the browser app.

The “ProxySelector” class in "java.net" package gets proxy value from
system properties of “http.proxyHost”, “socksProxyHost”… This API is
used by applications such as the Gears and IM.

Some apps, such as the email, use the dalvik “Socket” API directly and
do not realize the proxy.

I think it is better to provide a global system proxy setting used by
applications. And considering different network types, such as the
WIFI, carrier and bluetooth network, proxy switch is also needed when
network is switched.

Thanks
Kchen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to