broadcastreceiver onReceive problem ACTION_MEDIA_BUTTON Android
I've found a lot of pages about this in the web, but none of them helped me. I've been for hours stucked in this problem. That's why i decided to make my own question. What I want to do is an application that receives an intent of the type ACTION_MEDIA_BUTTON and the method onReceive() of the Broadcastreceiver does something. My Activity is like this: public class MusicControlActivity extends Activity { private MediaButtonIntentReceiver receiver = new MediaButtonIntentReceiver(); @Override public void onCreate(Bundle p_SavedInstanceState) { super.onCreate(p_SavedInstanceState); setContentView