简体   繁体   English

如何指定多个Google Maps Android API?

[英]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.

相关问题 如何在Android上使用Google Maps Directions API? - How do I use Google Maps Directions API on Android? 如何只用一根手指就能在Google Maps API(android)上旋转? - How can I rotate on Google Maps API(android) with only 1 finger? 我可以编辑适用于Android的Google Maps API吗? - Can I edit the Google maps api for android? 如何使用 Google Maps API 在我的 Google Maps Android 应用程序中添加路线? - How can I add a route in my Google Maps Android application using Google Maps API? 给定纬度和经度界限后,如何将 Google Maps API 限制到特定区域? - How do I restrict Google Maps API to a specific area when its latitude and longitude bound is given? Google map android:如何通过点击按钮将驾驶或步行路线添加到特定的地理位置? - Google maps android: How do I add driving or walking directions to a specific geopoint with a button onclick? 如何在Android Studio中使用Google Maps Api v2创建Android应用程序? - How can I create an Android application in Android Studio that uses the Google Maps Api v2? Google Maps API(适用于Android):我能否获得*避免*航路点的路线? - Google Maps API (for Android): Can I get directions to *avoid* a waypoint? 如何刷新 Google Maps Android API 实用程序库中热图图层的点? - How do I refresh points for a Heatmap Layer in Google Maps Android API utility library? 如何使用Google Maps Api在Android中的两个LatLng对象之间绘制路线? - How do I draw a route between two LatLng objects in Android using the Google Maps Api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM