List of usage examples for android.os Build MODEL
String MODEL
To view the source code for android.os Build MODEL.
Click Source Link
From source file:Main.java
public static final String getDeviceName() { return Build.MODEL; }
From source file:Main.java
public static boolean wakeUpCheck() { if (Build.MODEL == null) { return false; } else {/*from www . java 2s. c o m*/ boolean result = Build.MODEL.contains("SM-N900") || Build.MODEL.contains("OPPO"); return result; } }
From source file:Main.java
public static boolean isThis_MODEL(String mode) { return Build.MODEL.equals(mode); }
From source file:Main.java
public static String getModel() { String model = Build.MODEL; if (model != null) { model = model.trim().replaceAll("\\s*", ""); } else {//from w ww . j av a 2 s .com model = ""; } return model; }
From source file:Main.java
public static String getPhoneName() { return Build.MANUFACTURER + "." + Build.MODEL; }
From source file:Main.java
public static String getDeviceInfo() { return Build.MANUFACTURER + " " + Build.MODEL; }
From source file:Main.java
public static String getModel() { String model = null; model = Build.MODEL.replace(" ", "_"); return model; }
From source file:Main.java
public static String getOsModel() { return Build.MODEL; }
From source file:Main.java
public static final String getPhoneModelWithManufacturer() { return Build.MANUFACTURER + " " + Build.MODEL; }
From source file:Main.java
public static void setFlash(Camera.Parameters parameters) { if (Build.MODEL.contains("Behold II") && Build.VERSION.SDK_INT == 3) { // 3 parameters.set("flash-value", 1); } else {//from ww w .j a v a 2s .co m parameters.set("flash-value", 2); } parameters.set("flash-mode", "off"); }