HDMI port detection on Android device

I am working on an Android application that should detect an HDMI port. Can someone explain to me how I can programmatically detect the HDMI port in the andorid device.

Thanks at Advance

+5
source share
1 answer

You can try to listen to the broadcast of hidden intentions of Android.

"android.intent.action.HDMI_PLUGGED" 

if you use Android 4.0 or higher or use a Sony device:

 "com.sonyericsson.intent.action.HDMI_EVENT" 

Check out this guide for more information: http://developer.sonymobile.com/2012/05/29/how-to-use-the-hidden-hdmi-api-tutorial/

There are also third-party liberals such as KernelSwitchObserverLib http://forum.xda-developers.com/showthread.php?t=1963785

+5
source

All Articles