List of usage examples for android.os Build MANUFACTURER
String MANUFACTURER
To view the source code for android.os Build MANUFACTURER.
Click Source Link
From source file:Main.java
public static boolean isSupportHeif() { Log.e("ljn",// ww w . j a v a2 s . co m "Build.MANUFACTURER:" + Build.MANUFACTURER + ", Build.VERSION.SDK_INT:" + Build.VERSION.SDK_INT); return "HUAWEI".equals(Build.MANUFACTURER) && Build.VERSION.SDK_INT > 27; }
From source file:Main.java
public static boolean checkIs360Rom() { //fix issue https://github.com/zhaozepeng/FloatWindowPermission/issues/9 return Build.MANUFACTURER.contains("QiKU") || Build.MANUFACTURER.contains("360"); }
From source file:Main.java
public static String getDeviceName() { String manufacturer = Build.MANUFACTURER; String model = Build.MODEL;//from w ww .ja va2 s . c o m if (model.startsWith(manufacturer)) return (capitial(model)); else return capitial(manufacturer) + "" + model; }
From source file:Main.java
public static String getDeviceName() { String manufacturer = Build.MANUFACTURER; String model = Build.MODEL;/*www . j av a2s.c o m*/ if (model.startsWith(manufacturer)) { return capitalize(model); } if (manufacturer.equalsIgnoreCase("HTC")) { return "HTC " + model; } return capitalize(manufacturer) + " " + model; }
From source file:Main.java
/** * Returns Device manufacturer * * @return String */ public static String getManufacturer() { return Build.MANUFACTURER; }
From source file:Main.java
public static boolean isSamsungDevice() { return SAMSUNG_MANUFACTURER.equals(Build.MANUFACTURER.toLowerCase()); }
From source file:Main.java
public static String getManufacturer() { return Build.MANUFACTURER.trim(); }
From source file:Main.java
static boolean isSamsungDevice() { return SAMSUNG_MANUFACTURER.equals(Build.MANUFACTURER.toLowerCase()); }
From source file:Main.java
public static boolean supportsExtraOutput(String intentAction) { if (Build.MANUFACTURER.equalsIgnoreCase("samsung") && (Build.MODEL.startsWith("GT-") || Build.MODEL.startsWith("SM-"))) { // Samsung *Galaxy Models* contain a Camera app that does not implement EXTRA_OUTPUT properly. // Either doesn't support it or have a different behavior than the specified (e.g. Copies the // media file to both the destination path in the uri and the default gallery path). return false; }// ww w. j av a 2 s .com if (MediaStore.ACTION_IMAGE_CAPTURE.equals(intentAction)) { // Nexus One and other devices must use EXTRA_OUTPUT due to a bug with the default mechanism. // http://thanksmister.com/2012/03/16/android_null_data_camera_intent/ return true; } else if (MediaStore.ACTION_VIDEO_CAPTURE.equals(intentAction)) { // Some older devices like the Nexus One for ACTION_VIDEO_CAPTURE, don't support it. Use only on >= ICS. // Also, make sure to use EXTRA_OUTPUT due to a bug in Android 4.3 and later if not using it. // https://code.google.com/p/android/issues/detail?id=57996 return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH); } else { // MediaStore.Audio.Media.RECORD_SOUND_ACTION return true; } }
From source file:Main.java
/** Returns the consumer friendly device name */ public static String getDeviceName() { final String manufacturer = Build.MANUFACTURER; final String model = Build.MODEL; if (model.startsWith(manufacturer)) { return capitalize(model); }// w w w . j ava2 s.c o m if (manufacturer.equalsIgnoreCase("HTC")) { // make sure "HTC" is fully capitalized. return "HTC " + model; } return capitalize(manufacturer) + " " + model; }