I need some help where to look for api or code example on how to control an external screen from an Android app. My Android app will most of the time run on devices which have no built in screen, instead you connect an external screen with hdmi or dvi. I want to be able to control standby on this screen by disabling the hdmi output signal and then re-enable it again.
Its not a problem if this requires system-app privileges.
Thanks.
According to this link Can we turn on/off hdmi settings from our app programmatically
as stated by CommonsWare it looks like it isn't so easy.
Though, according to docs you should try the Presentation class from Api 17: http://developer.android.com/reference/android/app/Presentation.html
Either way, when you're connected to an external display and not sending any data/video to it, it should shutdown/sleep by itself.
Another thing, if the device you aim, has only the hdmi/dvi maybe it can be mounted as an "internal screen" like in the phone.