is Hong Mi phone - Android android.system

Android examples for android.system:Os Version

Description

is Hong Mi phone

Demo Code

import android.os.Build;

public class Main {

  private final static String[] hms = new String[] { "hm", "2012022", "2012023", "2013022", "2013023", "2013028",
      "2014011", "2014017" };

  static public boolean isHongMi() {
    boolean value = false;
    for (String str : hms) {
      if (Build.MODEL.toLowerCase().contains(str)) {
        value = true;//from  w w w.  ja  v  a 2  s  . c o  m
        break;
      }
    }
    return value;
  }

}

Related Tutorials