Disconnect the headset microphone

Asked

Viewed 208 times

1

I want to force the device to use its own microphone, not the headset I tried using the command "android.intent.action.HEADSET_PLUG" in the shell but I think I’m using it wrong.

Can someone help me

Note have root .

  • This is within your application?

  • This is not a command, it is a constant of android. When you use it in a BroadcastReceiver, android notifies you every time the user plugs in or unplugs the headset. Use the library Audiomanager

  • Correct me if I’m wrong, to use a constant I need to use a class first ?

  • I’m very new in programming I only know how to read in Java and it’s not even there those things, I wanted to do a function in an application (Tasker) Oday time I put the phone it automatically turns off the headset’s microphone on the device

  • Don’t you have any kind of command like this (low_power 0 global put Settings) to turn off the headset microphone? I’m gonna have to write a whole code for that ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.