Reputation: 1501
I was following this example to implement autocomplete functionality from google for my Android application. https://developers.google.com/places/training/autocomplete-android
But from JSON response I get the following:
02-07 12:53:31.202: D/JSON String(6815): {
02-07 12:53:31.202: D/JSON String(6815): "predictions" : [],
02-07 12:53:31.202: D/JSON String(6815): "status" : "REQUEST_DENIED"
02-07 12:53:31.202: D/JSON String(6815): }
I know that my API_KEY
is right, because in the same activity I have implemented google map which works fine. Any ideas what's wrong?
SOLUTION:
You need to use Key for browser apps (with referers)
from APIs console and not the one for Android apps!
Upvotes: 0
Views: 1916
Reputation: 1501
For Places API you need to use Key for browser apps from APIs console even if you are implementing this functionality in Android application!
Upvotes: 1