我知道,我可以使用 Build 对象的android.os.Build.MANUFACTURER
字段。但是对于 Nook 设备,必须包含此字段什么值?
谢谢
1
测试并在 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);
}
1
Foxconn
最好在真实设备上进行测试。
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(54条)