If you are behind a proxy and looking to connect the emulator to Internet,
following are detail steps to set proxy for the emulator.
It uses the command line and the adb utility.
First change directory to the emulator tools folder, you will find also the adb utility there.
If you run the the following emulator command line: (according to the help of adb)
emulator -http-proxy http://proxy.someone.com:8000 -verbose-proxy
(But you will find that it is not working at all! A bug of adb?)
Instead do following:
emulator
adb shell
# sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db
sqlite>.tables
android_metadata bookmarks gservices
bluetooth_devices favorites system
sqlite>.schema system
CREATE TABLE system (_id INTEGER PRIMARY KEY,name TEXT UNIQUE,value TEXT);
CREATE INDEX systemIndex1 ON system (name);
sqlite>SELECT * FROM system;
1|music_volume|3
2|voice_volume|3
3|ringer_volume|3
4|dim_screen|0
5|stay_on_while_plugged_in|1
6|screen_off_timeout|30000
7|font_scale|1.0
sqlite>INSERT INTO system VALUES(99, "http_proxy" ,"proxy.someone.com:8000");
(when you finish test, you can do)
sqlite>DELETE FROM system WHERE _id=99;
|