[英]How do I can specific multiple Google Maps Android API?
I've a android project where I use a Google Maps API. 我有一个使用Google Maps API的android项目。 This is a team project so I need a numbers of API keys as how many members we are.
这是一个团队项目,所以我需要与我们有多少个成员一样数量的API密钥。
However I don't know how to define in google_maps_api.xml the total keys we have. 但是我不知道如何在google_maps_api.xml中定义我们拥有的总键。 Instead each member needs to write his key.
相反,每个成员都需要写他的密钥。
So I would like to know if it's possible to automate this: insert all keys and when any user run the project it will check all possible keys. 因此,我想知道是否可以自动化:插入所有键,并且当任何用户运行该项目时,它将检查所有可能的键。
From Google Maps API v2 you can have a unique api key for multiple signing keys. 在Google Maps API v2中,您可以具有用于多个签名密钥的唯一api密钥。 This is useful in situations like yours, or when you will need to add the release key.
在像您这样的情况下,或者当您需要添加释放密钥时,这很有用。
Assuming you are using the newest version of the site, go API Manager -> Credentials -> API keys. 假设您使用的是该网站的最新版本,请转到API管理器->凭据-> API密钥。 There you can add one line for each developer:
您可以在其中为每个开发人员添加一行:
Package Key
com.your.package key1
com.your.package key2 ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.