***Update: 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.***
Are you working on an Android™ app that you’d like users to experience on an external device like a TV or monitor? If your Xperia™ smartphone (or other Android™ device) has an HDMI port, then your app should detect when it’s plugged into a powered high-definition screen to ensure the display is rendered properly on the larger screen. This quick tutorial includes some code that shows you how. Read more after the jump.