Google Place API for Android to Find City

I have seen the tutorial to find the city using autocomplete text view in android.i have done everything that is instructed but now when I hit this url.

It always throws me an exception saying : java.net.UnknownHostException: Unable to resolve host "maps.googleapis.com": No address associated with hostname

but the same url work fine when i hit through browser and i am getting the results also.

Here is the code I’m hitting with :

 

READ  PlayFramework: Run and Debug Using IDE

oops! sorry guys. I have found the solution that was a silly mistake.I had not defined the INTERNET permission in the manifest.

 

Leave a Reply

Your email address will not be published. Required fields are marked *