Worked for me. Go to Tools directory and type

>emulator -http-proxy <proxy-address>:<proxy-port>

On May 8, 2:50 am, Gerald Logor <[email protected]> wrote:
>  Well if that's the case, if the -http-proxy <proxy> command-line option is
> not supplied, then emulator should by default looks up the
> http_proxyenvironment variable (which I did set it using sqlite3 in
> the settingsdb
> file) and automatically uses any value matching the <proxy> format. However,
> it still cannot go online.
> Thanks for the reference to the releasenotes though.
>
> Gerald Logor
>
> On Fri, May 8, 2009 at 11:22 AM, Android Users <[email protected]>wrote:
>
>
>
> > SDK 1.5 release notes mention this,
> > "In some cases, you may encounter problems when using the browser on an
> > emulator started with the command-line option -http-proxy."
> > Ref :http://developer.android.com/sdk/RELEASENOTES.html
>
> > On Fri, May 8, 2009 at 8:50 AM, Gerald Logor <[email protected]>wrote:
>
> >> After spending hours of research and different ways to connect my emulator
> >> to the internet (i.e just accessing any ordinary webpages), I'm still
> >> hitting a brick wall.
>
> >> My current internet setting is that I'm behind a corporate internet
> >> connection thus connecting via a proxy (154.23.x.yy:80zz)
>
> >> Ways I tried:
>
> >> 1. Connect to the emulator using the "adb shell" command (From "tools"
> >> folder of SDK)
> >> *adb shell*
> >> enter this..
> >> *# sqlite3
> >> /data/data/com.android.providers.settings/databases/settings.db
> >> sqlite> INSERT INTO system
> >> VALUES(99,'http_proxy','<PROXY_IP>:<PROXY_Port>');*
> >> Restarting the emulator, it's still showing "WebPage unavailable"
>
> >> 2. Using Eclipse as my IDE, I Go to Run -> Run Configurations ->Target in
> >> eclipse and enter
> >> *-http-proxy <PROXY_IP>:<PROXY_Port> * in Additional emulator command
> >> line options.
> >> Still, no happiness.
>
> >> 3. I also tried (in Eclipse), Windows->Preferences->Android->Default
> >> Emulator option, and inserting http-proxy *<PROXY_IP>:<PROXY_Port>
>
> >> *4. I'm not creating any of my own view or activity, thus did not need to
> >> setup INTERNET permissions in my manifest file.
>
> >> Any helps would be appreciated. Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to