detect media button and registered the receivers.