Package clustering all MDM modules, which makes platform integration and initialization easier. If you use all SDK modules, utilizing the bundle is more convenient.
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 app level, add the dependency:
dependencies {
compile "br.com.hands.mdm.libs.android:mdm-bundle:3.11.0"
}
The library is asynchronically initialized. Initializing SDK in the Application’s onCreate event is recommended:
String appId = "YOUR_APP_ID";
MDMCore.start(getApplicationContext(), appId, new OnStartListener() {
@Override
public void onStart() {
MDMBundle.start(getApplicationContext());
}
});
Or
String appId = "YOUR_APP_ID";
MDMCore.start(getApplicationContext(), appId, new OnStartListener() {
@Override
public void onStart() {
MDMBundle.start(getApplicationContext(), new OnStartListener() {
@Override
public void onStart() {
// MDM initialized
}
});
}
});
Next steps:
Once the bundle is initialized, it is necessary to implement each module’s particularities.
Follow the instructions for the following modules.