Getting Started with Android SDK

Set minSdkVersion

In the build.gradle file from the module that use VoicemodSDK library, set your minSdkVersion to 19.

Add the precompiled VoicemodSDK-$VERSION.aar to your app proyect.

The first step you have to do to add Voicemod SDK in your application is add the precompiled library in your project structure.

Gradle will find the precompiled library if you add the path where it is located to flatdirs.

In the example application, for easy access to the .aar file, we have located it inside the root of the zip file, modifiying the project build.gradle.

Dependencies

There are two dependencies that must be added: The version of play-services-lib that best suits your project and the VoicemodSDK precompiled library.

Modifying $VERSION with the suffix of the aar file version.

Now you can sync your project for the next step.

Proguard

If you are using proguard add this line to proguard-rules.pro file.

Initialize the SDK

Override your Application OnCreate method

To initialize Voicemod SDK make a call to the start method.

This call must be made in the OnCreate method of the class that overrides the Application class, using this as the parameter value. In the sample application this task is performed by the AppOverrideExample class.

Remember to modify AndroidManifest.xml indicating in the application label the parameter name.

Add “voicemod.clientKey” meta-data tag.

Then, in the file AndroidManifest.xml, inside Application tag, you will have to add the client key, that you obtained in the dashboard, on an meta-data tag named “voicemod.clientKey” as follows: