Android examples for android.system:Os Version
is MX
import android.os.Build; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class Main{ public static boolean isMX() { try {//from w w w .ja v a 2 s . c o m String toLowerCase = Build.MODEL.toLowerCase(); boolean result = toLowerCase.contains("m353") || toLowerCase.contains("mx4"); return result; } catch (Exception e) { e.printStackTrace(); return false; } } }