When using Emulator to develop apps, sometimes it can not connect to the internet. That is, you can't test your app for API calling, or loading WebView, etc...
If you are using Eclipse, you can fix it by:
- In Eclipse Menu, open Window » Preferences (or press Alt + W).
- Select Android Launch to open Launch Settings.
- In Default emulator options, fill -dns-server 8.8.8.8,8.8.4.4 (Google DNS).
- Reset the Emulator.
Categories
- Tutorials ( 11 )
- Code snippets ( 9 )
- Other tips and tricks ( 5 )
About Me
- monopoly
-
monopoly.vn@gmail.com
Follow me on Twitter