谷歌Android则以拒绝API返回的请求 [英] Android google places api return request denied
本文介绍了谷歌Android则以拒绝API返回的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Android项目我使用谷歌地图v2和其工作。作为变更请求我需要在AutoCompleteTextview搜索的地方。
In my Android project I am using Google map v2 and its working. As a change request I need to include search places in 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应用程序键)。我已经都使用了。
what key need to use (browser key or android app key). I have used both.
但我请求被拒绝例外。我希望我做了所有的事情都是正确的。
But I got Request Denied Exception. I hope I made all things are correct.
我从<一提到样本href=\"http://wptrafficanalyzer.in/blog/android-autocompletetextview-with-google-places-autocomplete-api/\"相对=nofollow>网站。
屏幕图片:
之后:
推荐答案
我用的 服务器密钥
,而不是使用布劳尔重点解决的问题
I solved the problem by using Server key
instead of using brower key.
这篇关于谷歌Android则以拒绝API返回的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文