is Motorola Mobile - Android Hardware

Android examples for Hardware:Vendor

Description

is Motorola Mobile

Demo Code


//package com.java2s;

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

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

Related Tutorials