如何设置ICS系统范围的代理 [英] How to set system wide proxy in ICS

查看:163
本文介绍了如何设置ICS系统范围的代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关的Andr​​oid 3.x和之前,你可以把一个名为com.android.settings.ProxySelector隐藏UI。它在Settings.Secure.HTTP_PROXY设置和移动网络(WiFi网络并不总是)使用。然而,对于ICS,我仍然可以打开这个隐藏用户界面,但它似乎并没有设置代理服务器了。当我点击完成,然后我检查Settings.Secure.HTTP_PROXY或系统属性http.proxyHost,都没有设置。

For Android 3.x and before, you can bring up a hidden UI called com.android.settings.ProxySelector. It is set in Settings.Secure.HTTP_PROXY and used by Mobile network (WiFi network does not always work). However for ICS, I can still bring up this hidden UI, but it does not seem to set proxy anymore. When I click "Done", then I check Settings.Secure.HTTP_PROXY or system property http.proxyHost, neither is set.

那么,有没有在ICS的方式,让我设置全局代理很像我可以用com.android.settings.ProxySelector UI之前呢?谢谢!

So is there a way in ICS that would allow me to set global proxy much like what I can do before with the com.android.settings.ProxySelector UI? Thanks!

推荐答案

不幸的是,隐藏的活动com.android.settings.ProxySelector不适合设置Wi-Fi网络代理。事实上,你可以设置使用这一活动的全球代理,但对于标准的应用,你将不会看到的变化。

Unfortunately the hidden activity "com.android.settings.ProxySelector" is not designed for setting the proxy for Wi-Fi networks. In fact you can set a global proxy using this activity but for standard applications you won't see a change.

例如默认的浏览器使用此设置只对移动网络和完全忽略它的的Wi-Fi 网络。

For example the default browser use this setting only for MOBILE networks and completely ignore it for Wi-Fi networks.

当然你也可以使用此阅读您的个人应用程序的设置,但你不能指望其他应用程序会做相同的:(

Of course you can read the settings in your personal app using this library, but you can't expect that other applications will do the same :(

请让我知道一切都清楚了。无论如何,我试图掩盖问题这里,所以你可以找到关于此主题的更多资源。

Please let me know if everything is clear. Anyway I'm trying to cover the problem here, so you can find more resources on this topic.

这篇关于如何设置ICS系统范围的代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆