Programmatically detect a Nook tablet

319 Views Asked by At

I know, that i can using the android.os.Build.MANUFACTURER field of Build object. But what value must be contain this field for Nook devices?

Thanks.

2

There are 2 best solutions below

1
On BEST ANSWER

Tested and working on Nook Simple Touch Glow (Eink). Caveat: no idea what the HD nooks return.

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);
    }    
0
On

Foxconn Its better you test on a real device.