Getting Started
Integrate the HomeControl Data, by adding the following to your code.
1. Dependencies
Open the build.gradle file for your project and add the following dependency:
| dependencies {
// check out the latest version from artifactory
implementation "com.telenav.sdk.vivid:android-sdk-homecontrol-data:${sdk_version}"
//For userservice integration of without contentprovider use this (less dependenant on TN services)
implementation "com.telenav.sdk.vivid.userservice:vivid-sdk-userservice:${project.userservice_version}"
//For userservice integration with contentprovider use this
implementation "com.telenav.sdk.vivid.userservice:vivid-sdk-userservice-contentprovider:${project.userservice_version}"
}
|
2. Permissions
Open the AndroidManifest.xml file and add the permissions below:
Allow application to get access to the Internet.
| <uses-permission android:name="android.permission.INTERNET" />
|
Allow application to get access to the Network State.
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
Allow application to get access to WiFi State.
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
Allow application to start a service in foreground.
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|