我知道,我可以使用Build object的android.os.Build.MANUFACTURER字段。但是对于Nook设备,必须包含此字段值是什么?
谢谢。
发布于 2013-08-13 09:13:57
在Nook Simple Touch Glow (Eink)上测试和工作。警告:不知道HD节点会返回什么。
public static boolean isNook()
{
String thisManufacturer=android.os.Build.MANUFACTURER;
Log.d(TAG, "UTIL: Manu: "+thisManufacturer);
// 'BarnesAndNoble' on Nook Simple Touch with GlowLite
String thisProduct=android.os.Build.PRODUCT;
Log.d(TAG, "UTIL: PRODUCT "+thisProduct);
// 'NOOK' on Nook Simple Touch with GlowLite
//String thisBrand=android.os.Build.BRAND;
//Log.d(TAG, "UTIL: Brand "+thisBrand);
// 'nook' on Nook Simple Touch with GlowLite
//String thisModel=android.os.Build.MODEL;
//Log.d(TAG, "UTIL: Model "+thisModel);
// 'unknown' on Nook Simple Touch with GlowLite
if( thisManufacturer.equals("BarnesAndNoble") &&
thisProduct.equals("NOOK"))
return(true);
else
return(false);
} 发布于 2012-07-31 19:00:45
Foxconn最好是在真实的设备上测试。
https://stackoverflow.com/questions/11737352
复制相似问题