在 1.x 和 2.x Android 设备上为 WIFI 网络设置电话 HTTP 代理
我想知道是否可以为 Wifi 网络设置 HTTP 代理。 我设法设置代理(通过代码或使用 Any Cut 等应用程序调用“com.android.settings.ProxySelector”活动),但是当我连接到 Wifi 时,似乎代理设置被忽略(我是尝试使用多个“默认”应用程序,如浏览器、地图等)
有时,浏览器似乎可以正确读取设置,并且代理可以正常工作,但它似乎更像是应用程序上的错误(因为真的很难来重现它)。这里有人对这个话题有明确的想法吗?
I would like to know if it's possible to setup an HTTP Proxy for Wifi networks.
I managed to setup the proxy (calling the "com.android.settings.ProxySelector" activity by code or using an app like Any Cut) but when I'm connected to the Wifi it seems that the proxy settings are ignored (I'm trying with multiple "default" apps like browser, maps, ...)
Sometimes it seems that the settings is read correctly by the browser and the proxy works without problems, but it seems more like a bug on the app (because is really hard to reproduce it). Anyone here that have clear ideas about this topic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须由开发人员在应用程序级别单独设置代理。谷歌似乎没有什么好的办法来解决这个问题。您可能会发现此链接很有用:http://android-proxy.blogspot.com/
You've to set proxy at app level separately by developers. Google doesn't seem to have any good solution to this problem. you may find this link useful: http://android-proxy.blogspot.com/
也许这会起作用。
无需root手机即可设置WiFi代理
如果你只需要一个浏览器,Opera浏览器是一个很好的解决方案。它包含代理设置(在地址栏中输入 opera:config )
may be this will work.
Set WiFi proxy without rooting phone
if u only need a browser, Opera browser is a good solution. it contains proxy settings (type opera:config in the address bar)
您也可以对 Android 的默认浏览器执行此操作。
Android 4 及更高版本中提供了一项设置。以下是有关如何使用屏幕截图进行操作的分步指南。无需root。
http://mobilebroadband.gishan.net/entry/84 /wi-fi-proxy-settings-for-android
You can do this for Android's default browser too.
There's a setting available from Android 4 and up. Here is the step by step guide on how to do it with screenshots. No need to root.
http://mobilebroadband.gishan.net/entry/84/wi-fi-proxy-settings-for-android