Receive long volume-key press
<p>The Google-Music-App <em>(on a OnePlus One, Cyanogen OS-Version 12.1)</em> plays the next Song when the Volume-Up <strong>Hardware-Key is long-pressed</strong> and plays the previous Song on a Volume-Down Key long-press.</p>

<p>Is it possible to <strong>receive those actions</strong> in a BroadcastReceiver? 
Or does the OS just handle those long-clicks as a MEDIA_BUTTON Action? (If none of my two assumptions is right, how does Google Play do this?)</p>

<p><strong>Edit 1:</strong></p>

<p>Seems like it's a MEDIA_BUTTON Action with "MEDIA_NEXT". But why does my receiver not receive the action?</p>

<pre><code>String action = intent.getAction();
    if(action.equalsIgnoreCase(Intent.ACTION_MEDIA_BUTTON)) {
            KeyEvent event = (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
            if (KeyEvent.KEYCODE_MEDIA_PLAY == event.getKeyCode()) {
                //my play code
            }else if (KeyEvent.KEYCODE_MEDIA_NEXT == event.getKeyCode()) {
                //my play next code
            }else if (KeyEvent.KEYCODE_MEDIA_PREVIOUS == event.getKeyCode()) {
            //my play prev code
        }else if (KeyEvent.KEYCODE_MEDIA_PAUSE == event.getKeyCode()) {
            //my pause code
        }
    }
</code></pre>

<p>it's registered in the manifest with:</p>

<pre><code>&lt;receiver android:name=".receiver.AudioPlayerBroadcastReceiver"&gt;
        &lt;intent-filter&gt;
            //other actions (they all work fine)
            &lt;action android:name="android.intent.action.MEDIA_BUTTON" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
</code></pre>