android-samples/docs/GET_AN_API_KEY.md
Chris Arriola 2ab19b7e0d
feat: Using local.properties to provide API key (#398)
* feat: Using local.properties to provide API key instead of secure.properties.

* Remove redundant declaration in main AndroidManifest.xml

* Migrate ApiDemos - Kotlin to use local.properties.

* Update README for tutorials.

* Genericize.

* Remove references to secure.properties.

* s/master/main
2020-11-25 13:38:00 -08:00

522 B

Getting an API Key

The demos found in this repository require an API key. To create and use an API key:

  1. Get a Maps API key
  2. Open the file in the root directory of the sample called local.properties (by default, this file is NOT under version control)
  3. Add a single line to local.properties that looks like MAPS_API_KEY=YOUR_API_KEY, where YOUR_API_KEY is the API key you obtained in the first step
  4. Build and run