The repository is a collection of examples showing off the Mapbox Navigation Android SDK. In order to support minSdkVersion 21, Android Auto and preview features, there are three example apps.
Make sure you follow the steps under the Installation guide. Once you have your public and secret access tokens ready, do the following:
git clone git@github.com:mapbox/mapbox-navigation-android-examples.git
app/src/main/res/values
mapbox_access_token.xml
YOUR_ACCESS_TOKEN_HERE
with your public access token.<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="mapbox_access_token">YOUR_ACCESS_TOKEN_HERE</string>
</resources>
gradle.properties
as described in the installation guide.app
.If you're looking for code examples from previous versions of the Navigation SDK, you can access them through the following links:
We welcome feedback and code contributions! Please see CONTRIBUTING.md for details.