Hi all,
I am getting UnknownHostException - host is unresolved - in my app when trying to connect the emulator to server on my laptop(running on localhost).
The URL I am using is:
HttpHost host = new HttpHost("http://10.0.2.2/Nrti/recommendation_saver");
I have android.permission.INTERNET permission set in my AndroidMenifest.xml. Moreover, with this URL, I am able to connect to my machine's server when I use the browser on the emulator.
Has anyone faced and solved such problem. If yes, I would really like to know the solution.
Thanks in advance.
Regards,
Vaibhav Gathibandhe


