Verhelst
Verhelst

Reputation: 1503

Detect HDMI connection

How do I detect whether an HDMI cable is plugged or removed from the device? Is there an intent that is send and that I can intercept with Broadcast receivers. Or is there a hidden api to detect the mounting of HDMI? I want to start an activity whenever hdmi is plugged in the device.

Upvotes: 1

Views: 2577

Answers (1)

Kartik Domadiya
Kartik Domadiya

Reputation: 29968

For Sony devices you can refer their official blog : How to use Hidden HDMI API ?

Blog says : This Sony specific API will be deprecated. Please use the hidden Android intent “android.intent.action.HDMI_PLUGGED” instead. This is supported on smartphones running Ice Cream Sandwich and Jellybean. Stay tuned to Developer World for more information going forward.

Upvotes: 4

Related Questions