android headphones/pressy button plugged prevents phone dial keys sound -
i have purchased pressy button , seek few things it. able hear pressy clicks using media_button receiver.
however noticed when plug pressy button device headphones slot, , seek create call, dial clicks sounds gone. device acting headphones connected, sound not go speakers.
i have found post : enter link description here
but solution there not suitable me, because if forcefulness sound mode_call, receiver no longer receiving pressy clicks.
i know possible because there app on playstore, klick, able this.
anyone can help me? give thanks you
i have found solution, noticed on samsung device has no effect. sound played in device speakers when headphones plugged.
audiomanager = (audiomanager) getsystemservice(context.audio_service); am.registermediabuttoneventreceiver(new componentname(getpackagename(), broadcastreceiverpressybutton.class.getname())); // forcefulness sound through speakers when pressy button plugged in am.setmode(audiomanager.mode_in_communication); am.setspeakerphoneon(true);
android android-intent
No comments:
Post a Comment