How to Use Proxy to Access Network in Android

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Use Proxy to Access Network in Android

How to Use Proxy to Access Network in Android


Sometimes we need to use proxy to access network with Ethernet. Here are the steps for how to set proxy in Gingerbread and ICS.

Gingerbread

1. Enable http proxy

>  sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure VALUES (99, 'http_proxy', 'wwwgate0.freescale.net:1080');"

With this setting, you can access network for web browsing.

If you want to play some http streaming content, you need to set a property for the player,

> setprop rw.HTTP_PROXY http://wwwgate0-az.freescale.net:1080

2. Disable http proxy

>  sqlite3 /data/data/com.android.providers.settings/databases/settings.db "delete from secure where name='http_proxy'"

>  setprop rw.HTTP_PROXY ""

ICS

1. Enable http proxy

>  setprop net.proxy wwwgate0-az.freescale.net:1080

With this setting, you can access network for web browsing.

If you want to play some http streaming content, you need to set a proxy property for the player,

>  setprop rw.HTTP_PROXY http://wwwgate0-az.freescale.net:1080

2. Disable http proxy

>  setprop net.proxy ""

>  setprop rw.HTTP_PROXY ""

标签 (1)
无评分
版本历史
最后更新:
‎10-08-2012 11:59 PM
更新人: