title: How to detect external displays in android prior API 17
body: <p>I'm working in app that has copyrighted videos that should work only in Android device and not in external display connected via HDMI or wirelessly. I found great API <a href="http://developer.android.com/reference/android/app/Presentation.html">Presentation</a> and <a href="http://developer.android.com/reference/android/hardware/display/DisplayManager.html">DisplayManager</a> to detect and control which content to be displayed on external displays but this API's available only in API 17 (android 4.2) and plus. Any idea in how to do this below android 4.2 or at least to detect and be notified for connected displays.</p>
  
  <p>Question #2:
  What about if android device is connected to PC for screen recording. Can <a href="http://developer.android.com/reference/android/app/Presentation.html">Presentation</a> or <a href="http://developer.android.com/reference/android/hardware/display/DisplayManager.html">DisplayManager</a> API help to detect that?</p>