Sample Code

The sample code described here is available on GitHub.

To import the complete sample applications into Android Studio, simply go to File->New->Project From Version Control->GitHub.

For the Git Repository URL - type in https://github.com/trxsystems/neon-api-samples.git. Then give the directory name for where the project will be stored on your local machine.

Hit Clone to load the sample project.

The sample will not compile without adding a Google Maps API Key, as described in Location on Google Maps. To compile, get an API Key and add the following line to res/values/strings.xml:

<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">INSERT_YOUR_API_KEY_HERE</string>

If you entered a valid key, google maps should load the next time you run your application.