How to Determine if Android Device has Television Feature

public static final String FEATURE_TELEVISION was added in API level 16
Feature for getSystemAvailableFeatures() and hasSystemFeature(String): This is a device dedicated to showing UI on a television. Television here is defined to be a typical living room television experience: displayed on a big screen, where the user is sitting far away from it, and the dominant form of input will be something like a DPAD, not through touch or mouse.
Constant Value: "android.hardware.type.television"

1. Get a PackageManager Instance named myPackageManager.

2. Create a Boolean Variable named bolTVSupported

3. Set the Minimum and Target SDK version  to 16 or greater. 

4. In the onCreate method, add the below code. This will return the television ability to a boolean named bolTVSupported. It will then display a toast displaying the television ability of the device to the user.

bolTVSupported = myPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEVISION);
if (bolTVSupported) {
Toast.makeText(this, "Device has Television capability", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "No Television capability!", Toast.LENGTH_LONG).show();

5. Compile and run!