1

Variable API Key for Google Maps v2

view story
linux-howto

http://stackoverflow.com – Once upon a time in a magical land you were able to set the API key of the old MapView by adding it in it's constructor. This was helpful as I could have something along the lines of: mMapView = new MapView(getActivity(), Environment.GOOGLE_MAPS_API_KEY); This allowed me to have a key that could be changed based on whether the code was production or not (via swapping out Environment which contains a number of other lovely things). Looking at the new Google maps API docs, code and related posts there doesn't seem to be a way to do this or something similar. I do have one idea of a workaroun (HowTos)