目前有三种方式去给Android Emulator设置proxy.
1. -http-proxy option
详见 http://developer.android.com/guide/developing/tools/emulator.html#proxy
这种方法,我没有成功。
2. Add value to settings.db
1) Connect to the emulator using the "adb shell" command
2) Once you have a prompt, issue the following command:
sqlite3 /data/data/com.google.android.providers.settings/databases/ settings.db "INSERT INTO system VALUES(99,'http_proxy','proxy server:proxy port');"
这种方法,我也没有成功。
3. Emulator default APN 'TelKila'中设定proxy. Proxy中输入代理IP, port输入端口,另外别忘了输入你的username and password.
这个方法成功.
本文介绍了三种为Android Emulator配置代理的方法:使用-http-proxy选项、修改settings.db以及通过Emulator默认APN 'TelKila'设置代理。最终确认第三种方法有效。
2323

被折叠的 条评论
为什么被折叠?



