title: How to check the device is Tablet, Mobile or Android TV in android
body: <p>I am making an application which will behave differently on different devices. Is there any way to check that my application is running on TV Device, Mobile or Tablet? Even I want to check I am running my application on Emulator. In some links I have seen we can check build number or things like these. I just want to make sure which is the main thing which can let us know that devices are different?</p>