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
更新者: