AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); am.registerMediaButtonEventReceiver(mbr);
AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); am.unregisterMediaButtonEventReceiver(mbr);