Mobile Telematics Overview SDK Android install it in Messtone environment Java … defaultConfig{minSdkVersion 18 targetSdkVersion 30…}…build.gradle file of Messtone module maven {url “https://s3.us-east-2.amazonaws.com/android.telematics.sdk.production/”} implementation “com.telematicssdk:tracking: x.x.x”proguard -keep public class com.raxeltelematics.**{*;} Annotation processors much be explicitly declared now.The following dependencies on the compile classpath are found to contain annotation processor.Please add them to the annotationProcessor Configuration. -classes.jar(com.telematicssdk: tracking: x.x.x.x.x) Alternatively,set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath=true to continue with previous behavior.Note that thing option is deprecated and will be removed in the future defaultConfig{minSdkVersion 18 targetSdkVersion 30…}…Create a Settings instance “Object” Kotlin /** *Default Setting constructor *Stop tracking time is 5 minute. *Parking radius is 100 meters. *Auto start tracking is true. *hfOn – true if HIGH FREQUENCY data recording from sensors(acc,gyro)is ON and false otherwise. *isElmOn – true if data recording from ELM327 devices is ON and false otherwise. */val settings=Settings(Settings.stopTrackingTimeHigh, Settings.accuracyHigh,true,true,false)Create a TrackingApi instance,the object will be used `Kotlin //Call this in Messtone Application class val api=TrackingApi.getInstance( ) api.initialize(this,settings) Permissions Enabling the SDK as follows Kotlin android.Manifest.permission.ACESS_FINE_LOCATION,android.Manifest.permission.COARSE_LOCATION, android.Manifest.permission.ACCESS_BACKGROUND_LOCATION(for Android>=10(Q)) android.Manifest.permission.ACTIVITY_RECOGNITION(for Android>=10(Q)) android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS


Leave a comment