Example usage for android.os Build MANUFACTURER

List of usage examples for android.os Build MANUFACTURER

Introduction

In this page you can find the example usage for android.os Build MANUFACTURER.

Prototype

String MANUFACTURER

To view the source code for android.os Build MANUFACTURER.

Click Source Link

Document

The manufacturer of the product/hardware.

Usage

From source file:Main.java

public static boolean isMiui() {
    boolean bool = false;
    if ((Build.MANUFACTURER.contains("MIUI")) || (Build.ID.contains("MIUI")) || (Build.MODEL.contains("MIUI"))
            || (Build.MODEL.startsWith("MI-ONE"))) {
        bool = true;//  w  w  w.  j  av a2  s. c  o m
    }
    return bool;
}

From source file:Main.java

static public String getDeviceName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;//ww w  . j  a v a2  s. c  om
    if (model.startsWith(manufacturer)) {
        return capitalize(model);
    } else {
        return capitalize(manufacturer) + " " + model;
    }
}

From source file:Main.java

public static String getDeviceName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;/*from   w  w w .j av a2 s .  c  om*/
    if (model.startsWith(manufacturer)) {
        return capitalize(model);
    } else {
        return capitalize(manufacturer) + " " + model;
    }
}

From source file:Main.java

public static String getDeviceModelName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;/*ww w . j  av  a  2s.  c  o m*/
    if (model.startsWith(manufacturer)) {
        return capitalize(model);
    } else {
        return capitalize(manufacturer) + " " + model;
    }
}

From source file:Main.java

public static String getCurrentDeviceFullModel() {
    String deviceFullModel = "";
    if (Build.MANUFACTURER == null || Build.MODEL == null)
        return deviceFullModel;
    deviceFullModel = Build.MANUFACTURER + "(" + Build.MODEL + ")";
    return deviceFullModel;
}

From source file:Main.java

public static String getDeviceName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;/*from   ww  w.j av a2 s .  c o  m*/
    return model.startsWith(manufacturer) ? model : manufacturer + " " + model;
}

From source file:Main.java

/**
 */
public static String getBuildModel() {

    return Build.MANUFACTURER + Build.MODEL;
}

From source file:Main.java

public static String getDeviceSerial() {
    return "Build.SERIAL: " + Build.SERIAL + "\n" + "Build.MANUFACTURER: " + Build.MANUFACTURER + "\n"
            + "Build.MODEL: " + Build.MODEL + "\n";
}

From source file:Main.java

public static String getDeviceModel(Context ctxt) {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;/*from   w w  w. ja  va2  s .  co  m*/
    if (model.startsWith(manufacturer)) {
        return model;
    } else {
        return manufacturer + " " + model;
    }
}

From source file:Main.java

/** Returns the consumer friendly device name */
public static String getDeviceName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;/*from  w w  w . ja va2s  . c  o  m*/

    return manufacturer + " " + model;
}