In my Android application for reading RSS links, I am getting this error:
java.net.UnknownHostException:
Unable to resolve host “example.com”;
No address associated with hostname.
In my emulator I can connect to Google through a browser.
Please help me to resolve this issue.
You probably don’t have the
INTERNETpermission. Try adding this to yourAndroidManifest.xmlfile, right before</manifest>:Note: the above doesn’t have to be right before the
</manifest>tag, but that is a good / correct place to put it.Note: if this answer doesn’t help in your case, read the other answers!