hey VIbhor. using http-proxy when launching an emulator from terminal
works in my case with 1.6. it should work with 2.1 as well.. but if
not then i would really need to know as well coz i plan to shift to
2.1 soon. hope you get it solved soon

On 2/19/10, Vibhor Mahajan <mahajan.vib...@gmail.com> wrote:
> Hello,
>
> I am trying to configure http_proxy settings for Internet access from
> Android emulator (behind a proxy). I tried following options:
>
> 1. -http-proxy option using emulator command.
> 2. setting http_proxy environment and then launching the emulator.
> 3. Settings proxy using APN settings (Telkilla) (this worked till
> Android 1.6 version)
> 4. adding an entry in settings.db <adb shell  sqlite3 /data/data/
> com.android.providers.settings/databases/settings.db "INSERT INTO
> system VALUES(101,'http_proxy','10.0.0.27:80');">
> adb shell  sqlite3 /data/data/com.android.providers.settings/databases/
> settings.db "SELECT * FROM system"
>
> I also checked -debug-proxy log messages and it showed below messages
> emulator.exe -avd avd_21 -debug-proxy -http-proxy
> http://vibhor.mahajan:xyz~1...@10.0.0.27:80
> proxy_http_setup: creating http proxy service connecting to:
> 10.0.0.27:80
> server name '10.0.0.27' resolved to 10.0.0.27:80
> proxy_http_setup: creating HTTP Proxy Service Footer is (len=63):
> 'Proxy-authorization: Basic dmliaG9yLm1haGFqYW46eHl6fjEyMzQ=
>
> '
> http_service_connect: trying to connect to 209.85.231.104:80
> http_service_connect: using HTTP rewriter
> tcp:209.85.231.104:80(1496): cannot connect to proxy: <unknown error>
> http_service_connect: trying to connect to 209.85.231.104:80
> http_service_connect: using HTTP rewriter
> tcp:209.85.231.104:80(1496): cannot connect to proxy: <unknown error>
> http_service_connect: trying to connect to 209.85.231.104:80
> http_service_connect: using HTTP rewriter
> tcp:209.85.231.104:80(1456): cannot connect to proxy: <unknown error>
> http_service_connect: trying to connect to 209.85.231.104:80
> http_service_connect: using HTTP rewriter
> tcp:209.85.231.104:80(1440): cannot connect to proxy: <unknown error>
> http_service_connect: trying to connect to 10.0.0.22:80
> http_service_connect: using HTTP rewriter
> tcp:10.0.0.22:80(1440): cannot connect to proxy: <unknown error>
> http_service_connect: trying to connect to 10.0.0.22:80
> http_service_connect: using HTTP rewriter
> tcp:10.0.0.22:80(1440): cannot connect to proxy: <unknown error>
>
> Kindly suggest how can we access Internet from emulator (behind a
> proxy).
>
> Thanks,
> Vibhor
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>


-- 
Wahib-ul-haq

Communications Engineering Student,
NUST, Pakistan.
www.sizzlotech.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to