The Android developer docs say the following about Settings.Secure.HTTP_PROXY:
Host name and port for global http proxy. Uses ‘:’ seperator for between host and port TODO – deprecate in favor of global_http_proxy_host, etc
But there is not any information about global_http_proxy_host. Now I always get null when trying to read Settings.Secure.HTTP_PROXY.
Settings.Secure.HTTP_PROXY was working properly in all releases before ICS.
You can use Java Reflection to set the global proxy tested on ICS.
UPDATED CODE
NOW you can filter out the urls using proxy server.
OR look at this blog this is in Chinese but you can read the code it is fairly easy to understand.