If you're on Windows, I used to use FreeProxy succesfully a few years ago to
deal with an anal-retentive corporate proxy.
It has a rather nice GUI to setup everything.

http://www.handcraftedsoftware.org/index.php?page=5


On Thu, May 28, 2009 at 9:44 AM, Chronos <g358279012044...@gmail.com> wrote:

>
> Thanks for the reply - if anyone has a "simple" setup for the local
> proxy, plz post it, since I am not likely to investigate this problem
> any further.
>
> On 25 Mai, 12:16, David Turner <di...@android.com> wrote:
> > It's a known bug in the 1.5 emulator. It only happens under specific
> network
> > conditions that are hard to replicate
> > but should be fixed in a later release (you can try to rebuild the
> emulator
> > from the open-source depot if you want the fix).
> >
> > One potential way to fix this is to run an intermediate proxy on your
> > localhost interface, and direct the emulator to use it, as in:
> >
> > emulator  ----> local proxy ----> real proxy
> >
> > There are many free programs that do that very well. Hope this helps.
> >
> > On Mon, May 18, 2009 at 12:42 PM, Chronos <g358279012044...@gmail.com
> >wrote:
> >
> >
> >
> >
> >
> > > Unfortunately, this problem isn't solved :( In addition to the steps
> > > Gerald has taken already, we also:
> >
> > >  - provided the -http-proxy option at emulator start; still no success
> > > neither for the browser application, nor for our own application
> > > (which works perfectly without proxy)
> > >  - tried IP addresses instead of domain names in order to circumvent
> > > possible DNS problems => still no success
> > >  - tried -debug-proxy with the following unsuccessful output:
> >
> > > #emulator -avd standard_1_5 -http-proxy browser:3128 -debug-proxy
> > > proxy_http_setup: creating http proxy service connecting to browser:
> > > 3128
> > > server name 'browser' resolved to 192.168.1.122:3128
> > > proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
> > > '
> > > '
> > > http_service_connect: trying to connect to 209.85.135.99:8028
> > > http_service_connect: using HTTP rewriter
> > > tcp:209.85.135.99:8028(1576): cannot connect to proxy: <unknown error>
> > > http_service_connect: trying to connect to w.x.y.z:808028
> > > http_service_connect: using HTTP rewriter
> > > tcp:w.x.y.z:808028(1576): cannot connect to proxy: <unknown error>
> > > http_service_free
> >
> > > I have obfuscated the second IP - but I strongly wonder about those
> > > obviously wrong port numbers... I hope this is just a string formating
> > > bug. Anyway we're stuck here... Can't anybody help ?
> >
> > > On May 9, 9:16 am, "sujoydas1...@gmail.com" <sujoydas1...@gmail.com>
> > > wrote:
> > > > Worked for me. Go to Tools directory and type
> >
> > > > >emulator-http-proxy<proxy-address>:<proxy-port>
> >
> > > > On May 8, 2:50 am, Gerald Logor <gerald.lo...@gmail.com> wrote:
> >
> > > > >  Well if that's the case, if the -http-proxy<proxy> command-line
> option
> > > is
> > > > > not supplied, thenemulatorshould 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 <
> > > androidmai...@gmail.com>wrote:
> >
> > > > > > SDK 1.5 release notes mention this,
> > > > > > "In some cases, you may encounter problems when using the browser
> on
> > > an
> > > > > >emulatorstarted 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 <
> gerald.lo...@gmail.com
> > > >wrote:
> >
> > > > > >> After spending hours of research and different ways to connect
> > > myemulator
> > > > > >> 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 theemulatorusing 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 theemulator, 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
> Additionalemulatorcommand
> > > > > >> line options.
> > > > > >> Still, no happiness.
> >
> > > > > >> 3. I also tried (in Eclipse),
> Windows->Preferences->Android->Default
> > > > > >>Emulatoroption, and insertinghttp-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.- Zitierten Text
> ausblenden -
> >
> > - Zitierten Text anzeigen -
> >
>

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

Reply via email to