Skip to content

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:

1
2
3
4
5
6
7
8
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.

Permissions

1
<uses-permission android:name="android.permission.INTERNET" /> 

Allow application to get access to the Network State.

Permissions

1
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Allow application to get access to WiFi State.

Permissions

1
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

Allow application to start a service in foreground.

Permissions

1
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>