Example usage for android.media AudioManager ACTION_HDMI_AUDIO_PLUG

List of usage examples for android.media AudioManager ACTION_HDMI_AUDIO_PLUG

Introduction

In this page you can find the example usage for android.media AudioManager ACTION_HDMI_AUDIO_PLUG.

Prototype

String ACTION_HDMI_AUDIO_PLUG

To view the source code for android.media AudioManager ACTION_HDMI_AUDIO_PLUG.

Click Source Link

Document

Broadcast Action: A sticky broadcast indicating an HDMI cable was plugged or unplugged.

Usage

From source file:systems.byteswap.publicstream.MainActivity.java

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void registerV21() {
    final IntentFilter intentFilter = new IntentFilter(AudioManager.ACTION_HDMI_AUDIO_PLUG);
    registerReceiver(mReceiverV21, intentFilter);
}