Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
Print
(untagged)

Android Proxy Configuration for Emulator[Solved]

0.00/5 (No votes)
17 Apr 2011 1  
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:
    Plain Text
    :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:
    Plain Text
    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.
    SQL
    INSERT INTO system VALUES(99,’http_proxy’,'Proxy IP:port’);
  8. Check your entry by typing:
    SQL
    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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here