Toggling A2DP Device (Android)

后端 未结 2 1193
别那么骄傲
别那么骄傲 2021-02-13 18:15

I have two paired bluetooth devices (my car\'s head-unit for phone audio and a separate bluetooth receiver for A2DP). On my phone there\'s a checkbox for \"Use for media audio\

2条回答
  •  暖寄归人
    2021-02-13 18:36

    First you need to set the program to activate the Bluetooth on the phone and select the device that it should pair with via

    bluetoothAdapter.disable() / enable() 
    

    (im not sure about the pairing but this must be done via some config activity)

    Then you should set A2DP to connect to the car's stereo

    follow this link to try and find the code for it, if i have time i will try and find it for you but its a start =]

    hidden & internal api's

提交回复
热议问题