No internet on Android emulator - why and how to fix?


I am trying to use internet with the Android emulator, but with no success. Any ideas?

2/5/2010 11:28:24 AM

Accepted Answer

If by "use internet", you mean you can not access the internet from an activity while testing on the emulator, make sure you have set the internet permission in your AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" /> 

If you are using the web browser, refer to Donal's post

2/5/2010 11:35:55 AM

In order to use internet on emulator if you are setting behind a proxy server perform the following steps:

  1. Go to settings->Wireless & networks->mobile networks->Access Point Names.
  2. Press menu button. an option menu will appear.

  3. from the option menu select New APN.

  4. Click on Name. provide name to apn say My APN.
  5. Click on APN. Enter www.
  6. Click on Proxy. enter your proxy server IP. you can get it from internet explorers internet options menu.
  7. click on Port. enter port number in my case it was 8080. you can get it from internet explorers internet options menu.
  8. Click on User-name. provide user-name in format domain\user-name. generally it is your systems login.
  9. Click on password. provide your systems password.
  10. press menu button again. an option menu will appear.
  11. press save. try n run your browser. hope its work for you it worked for me. good luck.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow