Proxy which requires authentication with Android Emulator
Solution 1:
I Managed to do it in the Adndroid 2.2 Emulator.
Go to "Settings" -> "Wireless & Networks" -> "Mobile Networks" -> "Access Point Names" -> "Telkila"
Over there set the proxy host name in the property "Proxy" and the Proxy port in the property "Port"
Solution 2:
It seems like SDK 1.5 onwards, the -http-proxy
flag also doesn't work. What did work for me is to boot the android image in the emulator and then once Android is running, go to Home > Menu > Settings > Wireless Controls > Mobile Networks > Access Point Names
and then setup the http proxy settings for the default access point.
With the APN proxy settings in place, I can get the emulator's browser to surf the web. However, other stuff like Maps still doesn't work.
Solution 3:
I remember having the same problem - After searching on the web, I found this solution - From the command line,
1. > adb shell
2. # sqlite3 /data/data/com.android.providers.settings/databases/settings.db
3. sqlite> INSERT INTO system VALUES(99,’http_proxy', 'proxy:port');
4. sqlite>.exit
EDIT: Edited answer to reflect the latest version of Android.
Solution 4:
Apparently this problems runs only with Android 2.x and Windows. There is a opened bug here : http://code.google.com/p/android/issues/detail?id=5508&q=emulator%20proxy&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
Solution 5:
Find the file
androidtool.cfg
atC:\Documents and Settings\YOUR USER NAME\.android\
-
Add this line:
http.proxyLogin=USER@PASSWORD
Save the file and try to open the Android SDK.