Confusing messaging on HTTP Proxy (Android 4.x versus Android 3.x)

37 views
Skip to first unread message

Balbir Singh

unread,
Feb 8, 2012, 5:47:52 AM2/8/12
to android-platform
Hi,

Up until Android 3.x we had Secure.Settings.HTTP_PROXY/GLOBAL_HTTP_PROXY_HOST/GLOBAL_HTTP_PROXY_PORT working. When I moved to Android 4.x, there are exported routines as per websearch for setGlobalProxy()/loadGlobalProxy(), but they don't seem to be exported on the 4.0.3 emulator. I can correctly see the system creating new entries for setting a global proxy, all though one can set proxies for APN's (Wifi is not supported on the emulator).

Question 1: Is there a good way to get the old style GLOBAL_HTTP_PROXY_* working on Android 4.x?
Question 2: The new API's don't seem to show up on the emulator - so I presume they are not usable
Question 3: Is setting the APN proxy explicitly the only way - the access I presume is public, the user or any program can change it. How does one test wireless proxy if this is the approach possible

Answers: Looking for good ones :)

Comments?

Thanks,
Balbir

Marco Pagliari

unread,
Feb 12, 2012, 9:46:45 AM2/12/12
to android-...@googlegroups.com
Maybe this OSS library can help you: http://code.google.com/p/android-proxy-library/ 
Reply all
Reply to author
Forward
0 new messages