简体   繁体   中英

How can I start a call via Intent, but make sure it goes via Bluetooth Headset?

I can start a call with

  Intent intent = new Intent(Intent.ACTION_CALL);
  intent.setData(Uri.parse("tel://" + number));
  startActivity(intent);

But I want to make sure that when that call is started, it will be handled via the connected Bluetooth Headset, not via the phone's own mic and speaker. How can I do that? The solution can be specific to Samsung devices, if that helps.

Thanks a lot!

You need to give permission to the Maniefest in your application.

Here is the detailed answer about call via headset. But make sure you are connected with the bluetooth headset.

https://stackoverflow.com/a/14993590/2931489

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM