title: Android device to detect display is on or off using the hdmi cable
body: <p>I am creating a app where videos are played in T.v by connecting the android device to T.v through HDMI cable.I want detect if T.V is turned off using the HDMI cable.I also tried a method mentioned in this link but its not working.
  <a href="https://stackoverflow.com/questions/8644665/how-to-check-the-hdmi-device-connection-status-in-android">How to check the HDMI device connection status in Android?</a> </p>