2013年10月29日火曜日

Android emulator setting memo

Solution1:
1.Add Android SDK path to system environment variables path.
2.cmd --> start emulator
For example: emulator -avd avd
3.cmd
>>adb shell
>>sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO system VALUES(99,'http_proxy',' 10.33.176.166 :8080')"
>>sqlite3 /data/data/com.android.providers.settings/databases/settings.db "SELECT * FROM system"
4.Restart android emulator

Soultion2:
1. settings->Wireless controls->Mobile networks->Access Point Names
2. Set Parament
- Proxy : your proxy address
- Port : your proxy port
- Username : your username if needed, or <Not set>  Password : your password if needed, or <Not set>
3. set DNS
>>adb shell
>>getprop
>>setprop net.dns1 192.168.1.1
or
>>setprop net.dns1 192.158.0.1

0 件のコメント :

コメントを投稿