65.9K
CodeProject is changing. Read more.
Home

Android Proxy Configuration for Emulator[Solved]

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Apr 17, 2011

CPOL
viewsIcon

47682

It is actually for configuring proxy on Android emulator so that the users can access the internet from their Android emulators.

Introduction

This is a post for all those working on Android and wanting to access the internet over Android.
Just follow these simple steps:

  1. First of all, open cmd.
  2. Move to tools directory of your Android folder. For example, in my case:
    :cd E:/Downloads/software/android-sdk-windows/tools/
  3. Run the Android (Do so by eclipse or using Android.bat).
  4. Now when you have reached the menu screen of Android, then type adb shell in cmd.
  5. Your prompt should change like #
    Now type:
    sqlite3 /data/data/com.android.providers.settings/ databases/settings.db
  6. Now your command prompt will look like sqlite>
  7. Enter this command where Proxy IP is the IP of your Proxy server and port is its port value.
    INSERT INTO system VALUES(99,’http_proxy’,'Proxy IP:port’);
  8. Check your entry by typing:
    select * from system;
  9. If you found your entry, then move over to your Android mobile.
  10. Click the home button.
  11. Click on menu button.
  12. Click on settings.
  13. Click on wireless control.
  14. Click on mobile networks.
  15. Click on access point name.
  16. Click on the access point shown.
  17. Now a menu comes fill your proxy, port, username, password, etc. information on that page.
  18. Now you can access the net from the Android emulator.