My app runs on standard phones but it also runs on Android players which I connect via HDMI to my TV and work with a mouse to navigate. Is there a way to programatically deterrmine whether the device has touch screen support so I can distinguish between the two ways of navigation?
I tried this, but it returns true on both devices:
getPackageManager().hasSystemFeature("android.hardware.touchscreen");