PC's Internet and Android emulator
If PC's Internet connection is configured with manual proxy settings, Follow the below steps.
1) You can launch your Emulator from command line with DNS server detail.
Syntax : "emulator -dns-server <DNS Server IP address>
Example: emulator -dns-server 8.8.8.8 (8.8.8.8 is Google's Public DNS Server)
(or)
Goto Eclipse->Window->Preferences->Android->Launch and give "-dns-server
2) In emulator goto "Settings->Wireless & Networks->Mobile Networks->"
2.1) Ensure that "Data roaming" is checked.
2.2) Select Access Point Names
2.3) Select an APN. (eg. Telkila )
2.4) Manually set the Proxy Server and Port details.
If PC's Internet connection is configured with Automatic proxy settings, Follow above steps except step 2.4 and ensure that No proxy server detail or port detail is mentioned for the selected APN.
You are done. Launch browser or Google Maps and test the internet connectivity before testing it from your application.
Code ! Code ! Code!
Comments
also emulator is not recognizable command inn command line...how to set -dns-server ??
Go to command prompt
go to \tools
then type "emulator -dns-server
Example: emulator -dns-server 8.8.8.8
or
To launch from Eclipse.
Go to Window Menu, Select Preferences then select Android and select launch under Android
then type "-dns-server "
September 14, 2011 9:52 AM