[android-developers] Re: Problem with Internet connection through emulator

2009-05-28 Thread Chronos

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.comwrote:





  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-proxyproxy-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-proxyproxy 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.comwrote:

 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-proxyPROXY_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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-28 Thread David Turner
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-proxyproxy-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-proxyproxy 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.comwrote:
 
  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-proxyPROXY_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 

[android-developers] Re: Problem with Internet connection through emulator

2009-05-25 Thread Chronos

Yes, thats for sure. Unfortunately I am required to work behind it -
this is pretty annoying, even more since there are about 10
programmers here, ALL suffering from this - this isn't just in some
cases :(.

On May 25, 4:15 am, Gerald Logor gerald.lo...@gmail.com wrote:
 I guess working behind a (bureaucracy corporate) proxy raises the difficulty
 in working with the emulator. I tried running it from home (with an internet
 provider assigned IP within a designated DNS address) and it worked
 properly.

 On Mon, May 18, 2009 at 5: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-proxyproxy-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-proxyproxy 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.comwrote:

 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-proxyPROXY_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.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-25 Thread David Turner
The emulator does just that, but the variable must be defined in the
environment on the host.

Adding http_proxy on the device itself is not supported as far as I know. I
may have worked in previous SDK releases, but I don't think it is guaranteed
to work on 1.5 or future releases.

On Fri, May 8, 2009 at 9: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, 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 androidmai...@gmail.comwrote:



 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 gerald.lo...@gmail.comwrote:

 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 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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-25 Thread David Turner
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.comwrote:


 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-proxyproxy-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-proxyproxy 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.comwrote:
 
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-proxyPROXY_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.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-24 Thread Gerald Logor
I guess working behind a (bureaucracy corporate) proxy raises the difficulty
in working with the emulator. I tried running it from home (with an internet
provider assigned IP within a designated DNS address) and it worked
properly.

On Mon, May 18, 2009 at 5: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-proxyproxy-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-proxyproxy 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.comwrote:
 
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-proxyPROXY_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.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-18 Thread Chronos

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-proxyproxy-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-proxyproxy 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.comwrote:

   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.comwrote:

   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-proxyPROXY_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.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-11 Thread sujoydas1...@gmail.com

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, 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 androidmai...@gmail.comwrote:



  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 gerald.lo...@gmail.comwrote:

  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 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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-08 Thread Gerald Logor
 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 androidmai...@gmail.comwrote:



 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 gerald.lo...@gmail.comwrote:

 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 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
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with Internet connection through emulator

2009-05-07 Thread Android Users
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 gerald.lo...@gmail.com 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 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
-~--~~~~--~~--~--~---