1. Hands MDM SDK
  2. Android Quickstart
  3. MDM Modules

MDM Modules

If you chose to initialize each module separately, add the directives to your build.gradle as follows:

In build.gradle at the project level, add the repository:

allprojects {
    repositories {
        maven { url "http://nexus.hands.com.br/repository/maven-repository/" }
    }
}

 

In build.gradle at the level do app, add the dependency:

dependencies {
    // Chosen Modules
}

 


Include the modules that you will use in your application as a dependency in build.gradle and initialize the module in your Application class.

GeoBehavior

compile "br.com.hands.mdm.libs.android:mdm-geobehavior:3.11.0"
String appId = "YOUR_APP_ID";

MDMCore.start(getApplicationContext(), appId, new OnStartListener() {
    @Override
    public void onStart() {
        MDMGeoBehavior.start(getApplicationContext());
    }
});

 

AppBehavior

compile "br.com.hands.mdm.libs.android:mdm-appbehavior:3.11.0"
String appId = "YOUR_APP_ID";

MDMCore.start(getApplicationContext(), appId, new OnStartListener() {
    @Override
    public void onStart() {
        MDMAppBehavior.start(getApplicationContext());
    }
});

 

Notification

compile "br.com.hands.mdm.libs.android:mdm-notification:3.11.0"
String appId = "YOUR_APP_ID";

MDMCore.start(getApplicationContext(), appId, new OnStartListener() {
    @Override
    public void onStart() {
        MDMNotification.start(getApplicationContext());
    }
});

 


Each module’s implementation: