If you are behind a proxy and looking to connect the emulator to Internet, Luisa Magarian have posted the way 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. Run the emulator, then from command line :
- ./adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’ [host_or_IP]:[port]‘);\””
- Change [host_or_ip] and [port] to your correct proxy values
- Try to connect from Android and it should be working fine.
Luisa posted also the way to access some Android’s system setting using SQLite, this will help to get more information on how Android work, for example to retrieve all settings :
- ./adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “\”SELECT * FROM system\””
- This will return :