Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to set the Android Maps API v2 key programmatically?

Is it possible to set the API v2 key programmatically instead of setting this value in the AndroidManifest file?

I was able to do this with API v1 keys but I can't find some method-constructor in the MapView to do this with the current API.

like image 819
IsaacCisneros Avatar asked Jul 11 '13 08:07

IsaacCisneros


1 Answers

AFAIK this is not possible in Google API V2. The documentation suggest the same thing, the API key has to be assigned using the Manifest file:

https://developers.google.com/maps/documentation/android/start#adding_the_api_key_to_your_application

like image 170
Emil Adz Avatar answered Nov 02 '22 04:11

Emil Adz