This app provides a simple scaffold to start building an app with HMKit on Android. These things have been done:
- New Gradle project created in Android Studio
- SDK imported and added to dependencies
- SDK initialised with snippet from the Developer Center
- One example included to send a telematics command to the car
- One example included to send a Bluetooth command to the car
Before running the app, make sure to configure the following in MainActivity.java
:
-
Initialise HMKit with a valid
Device Certiticate
from the Developer Center https://developers.high-mobility.com/ -
Follow the introduction and setup https://high-mobility.com/learn/tutorials/sdk/android/#introduction-and-setup
-
Create an
Access Token
in the car emulator and paste in the source code to download anAccess Certificate
from the server
Run the app on your phone or the Android emulator to try out sending a few commands to the car. Note that Bluetooth only works on a real device.