Checking If Your App Is Running On The Almer Arc
In order to have custom behavior directed towards the Arc or if your app has to adapt to certain restrictions the Almer Arc imposes, you might want to know at runtime if your app is running on the Almer Arc.
This is achieved by checking the Build.MODEL
and Build.MANUFACTURER
properties.
Example
- java
- kotlin
import android.os.Build;
String deviceModel = Build.MODEL;
String deviceManufacturer = Build.MANUFACTURER;
if (deviceModel.equals("Arc 2") && deviceManufacturer.equals("Almer")) {
System.out.println("this app runs on Almer Arc 2");
}
import android.os.Build
val deviceModel = Build.MODEL
val deviceManufacturer = Build.MANUFACTURER
if(deviceModel == "Arc 2" && deviceManufacturer == "Almer"){
println( "this app runs on Almer Arc 2" )
}