Categorized | Android Dev, Tips

Tips: Howto Connect Android Emulator behind proxy

Posted on 18 November 2007 by Hatem Ben Yacoub

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 :

  1. ./adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’ [host_or_IP]:[port]’);\”"
  2. Change [host_or_ip] and [port] to your correct proxy values
  3. 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 :

  1. ./adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “\”SELECT * FROM system\”"
  2. This will return :
    1|music_volume|3
    2|voice_volume|3
    3|ringer_volume|3

OHM

Share This

Popularity: 56%

« First week of Android and the first SDK update | Home | Android got new Fonts from Ascender »

9 Comments For This Post

  1. Ufux Says:

    So the hack works for the browser … fair enough.
    Unfortunately it does not for the map viewer.

    Ufux

  2. molo Says:

    Tnx,
    It works.

  3. molo Says:

    2 Ufux

    The same :(

  4. gaojinxuan Says:

    How can i connect to the Map in Android through a proxy server which need username and password?

    Thanks :)

  5. senthil Says:

    Hi,
    i set the proxy…browser works fine. but i can’t view the map.anyone can tell me…what is the solution..

  6. rmeph Says:

    i have same problem Blank screen without any map show on my Android emulator……plz help how to acess map on android emulator??

  7. Swap Says:

    What should i give in ‘http_proxy’ field?

    I am not getting it.

    My IP is DHCP enabled. So is there any problem caused by this?

    Plz reply..

  8. Mitchell Says:

    How if the proxy setting is automatically by a http://xx.xx.xx/xx.pac

  9. Ewan Says:

    How can i connect to the Map in Android through a proxy server which need username and password?

Leave a Reply

Advertise Here
Advertise Here
Close
E-mail It