No internet on Android emulator - why and how to fix?
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
If you are using eclipse try:
Window > Preferences > Android > Launch
Default emulator options: -dns-server 8.8.8.8,8.8.4.4
In order to use internet on emulator if you are setting behind a proxy server perform the following steps:
- Go to settings->Wireless & networks->mobile networks->Access Point Names.
Press menu button. an option menu will appear.
from the option menu select New APN.
- Click on Name. provide name to apn say My APN.
- Click on APN. Enter www.
- Click on Proxy. enter your proxy server IP. you can get it from internet explorers internet options menu.
- click on Port. enter port number in my case it was 8080. you can get it from internet explorers internet options menu.
- Click on User-name. provide user-name in format domain\user-name. generally it is your systems login.
- Click on password. provide your systems password.
- press menu button again. an option menu will appear.
- press save. try n run your browser. hope its work for you it worked for me. good luck.