Unable to resolve host

  • Replies:0
Siddharth Verma
  • Forum posts: 1

May 1, 2015, 5:49:54 PM via Website

Hi, I have been trying to run an application that stores and retrieves data from MySQL using PHP and Android. The whole project is on androidhive website.
I am getting the following error
image

image

I have connected both my phone and the server(laptop-localhost) to the wifi. I have checked the ping after checking the ipconfig to know the ip address of localhost.

Ip address is 192.168.1.34
image

ping is working fine
image

this address is working in browser
image

, I have searched a lot and got the same answer to include foll. in manifest file

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

But I had already included it and still facing the same problem.
Here is my code of manifest file.

<!--  Internet Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Please help and oblige
Thank You

Reply