In Windows, After configuring the adroid environment variable (such as adding D:/android-sdk-windows-1.0_r1/tools to the system variable path), enter in the command line window:
Emulator
After the android simulator is started, enter:
ADB Shell
Enter the ADB shell mode:
Write the network connection proxy settings to the configuration database. If your Internet proxy IP address is 10.193.xx.xx:
Sqlite3/data/COM. android. providers. settings/databases/settings. DB "insert into system values (99, 'HTTP _ proxy', '10. 193. XX. XX: 1080 ')"
Check whether the system settings have been successfully changed:
Sqlite3/data/COM. Android. providers. Settings/databases/settings. DB "select * from System"
The result should contain 99 | http_proxy | 10.193.xx.xx: 1080.
Restart the simulator and use the Internet on browser.
How to delete the configuration information just written:
Sqlite3/data/COM. Android. providers. Settings/databases/settings. DB "delete from system where _ id = 99"