### Opening a code sample in IDX with URL parameters Source: https://github.com/googlemaps-samples/android-samples/blob/main/open-in-idx-template/README.md This URL demonstrates how to open a code sample in IDX by specifying the git URL, subdirectory, launch activity, and API key as query parameters. The API key is required to run the sample. ```HTML https://idx.google.com/new ?template=https://github.com/googlemaps-samples/android-samples/open-in-idx-template &giturl=https://github.com/googlemaps-samples/android-samples &subdir=tutorials/java/CurrentPlaceDetailsOnMap/ &launchactivity=com.example.currentplacedetailsonmap/.MapsActivityCurrentPlace &apikey=AIzaXXXXXXXXXXXXXXXX ``` -------------------------------- ### Opening a code sample in IDX with default values Source: https://github.com/googlemaps-samples/android-samples/blob/main/open-in-idx-template/README.md This HTML snippet shows a link that opens a code sample in IDX using default values specified in the idx-template.json file. The API key will be requested during the IDX workspace creation dialog. ```HTML Open in IDX ``` -------------------------------- ### Setting Google Maps API Key in secrets.properties Source: https://github.com/googlemaps-samples/android-samples/blob/main/WearOS/README.md This snippet shows how to securely store your Google Maps API key in the `secrets.properties` file, which is excluded from version control. Replace `YOUR_API_KEY` with your actual API key. This file should be located in the top-level directory of your project, alongside `local.properties`. If the file does not exist, create it. ```properties MAPS_API_KEY=YOUR_API_KEY ``` -------------------------------- ### Setting Dataset IDs in secrets.properties Source: https://github.com/googlemaps-samples/android-samples/blob/main/ApiDemos/resources/README.md This snippet shows how to set the dataset IDs for Boulder, New York, and Kyoto in the secrets.properties file. These IDs are used to link the datasets to the map style for data-driven styling. ```properties BOULDER_DATASET_ID= NEW_YORK_DATASET_ID= KYOTO_DATASET_ID= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.