Welcome
github-learning-lab opened this issue · comments
👋 Welcome to the TomTom Maps SDK course!
Hello and welcome to this Learning Lab where I will walk you through creating an Android
application that displays a TomTom map using the TomTom Maps SDK for Android.
By the end of this course you will have an application that displays a TomTom map. All these running on your Android phone 📱
Get started
In general you have two options for using a development environment:
- Android Studio or
- Terminal + Gradle
For simplicity reasons this course will provide you instructions on using the
terminal and Gradle.
Apart from that you will need an Android phone so that you will be able to install
the created application on your own phone.
Now let's cover the pre-requisites.
Step 1: Build the project locally
⌨️ Activity: Set up your Android development environment
- Ensure you have Java 1.8 installed (eg. https://adoptopenjdk.net/installation.html)
- Go to the Android Studio page: https://developer.android.com/studio.
- Go to the
Command line tools only
section or search forsdk-tools-
. There you will find the zips which are around 150MB. - Download the SDK tools for your platform.
- Extract and set your
ANDROID_SDK_ROOT
environment variable to the extracted location. Add this environment variable to your~/.bashrc
or~/.bash_profile
. - Go to the
$ANDROID_SDK_ROOT/tools/bin/
folder - Run the
sdkmanager
command to accept all unaccepted licensesJust say./sdkmanager --licenses
y
for all
⌨️ Activity: Clone the repository and build the project
- Open your terminal
- Change directories into a location where you want to keep this project
- Clone this repository:
git clone https://github.com/asmita08/lab-maps-sdk-android-display-a-map
- Move into the repository's directory:
cd lab-maps-sdk-android-display-a-map
- In your repository folder, run the following build command:
This command will download Gradle, pull dependencies, build the sample app and run some tests.
./gradlew build
In upcoming steps you will learn how to install the app on your phone and extend the app with many more features.
⌨️ Activity: Open a Pull Request
- Create a pull request to base
master
fromchanges
branch - Title your pull request
Changes
I'll respond with next steps in your pull request.