is Motorola Mobile - Android android.system

Android examples for android.system:Os Version

Description

is Motorola Mobile

Demo Code

public class Main {

  public final static String Manufacture = android.os.Build.MANUFACTURER;
  public final static String Model = android.os.Build.MODEL;
  public static final String MOTOROLA_DEVICE = "olympus";
  public static final String MOTOROLA_MANUFACTURE = "motorola";
  public static final String MOTOROLA_MODEL = "MB860";
  public final static String Device = android.os.Build.DEVICE;

  public static boolean isMotorlaMobile() {
    if (MOTOROLA_MODEL.equals(Model) && MOTOROLA_DEVICE.equals(Device) && MOTOROLA_MANUFACTURE.equals(Manufacture)) {
      return true;
    }/*from  w w w . ja  v a 2s  .  c  o  m*/
    return false;
  }

}

Related Tutorials