在我的Android项目中,我正在使用谷歌地图v2及其工作。作为更改请求,我需要在AutoCompleteTextview中包含搜索位置。
I did the following steps to get map in Google console.
1) I have registered app.
2) Placed SHA1 key and generated Android key.
3) And made all procedure and get map.
Now I include Google places search in an auto complete textview.
1) go to the project enabled places api in the service pane. (picture 1)
2) I give sample company name and web site url (http://www.google.com). (picture 2)
3) now I get browser key and used it in app. (picture 3)
需要使用什么密钥(浏览器密钥或android app密钥)。我用过这两个。
但是我得到了Request Denied Exception。我希望我做的一切都是正确的。
我引用了site中的示例。
屏幕快照:
之后:
答案 0 :(得分:1)
我使用 Server key
而不是使用更详细的密钥来解决问题。
答案 1 :(得分:-1)
只需在键值之前添加key = 。你的密钥应该是“key = AIzaSyAVQJO-cp6RcEVUJ-6Yb_b”