'Can an XML application element have multiple metadata tags?
I'm trying to make an Android app that uses the Google Maps API, and the basic guide that Google has in its documentation says to add a declaration within the application element, then gives the example:
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
However, the code we JUST edited in the guide is used to connect my app to the maps API:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" />
Do I just use both? like this:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
