[DESCRIPTION]
1.连接蓝牙耳机
2.经过语音通话后,蓝牙耳机播放声音无声
[SOLUTION]
针对问题的原因是startBluetoothSco,stopBluetoothSco使用未配对或AudioService未能将命令送给蓝牙。
1,检查startBluetoothSco和stopBluetoothSco是否是成对出现的,即startBluetoothSco和stopBluetoothSco的次数是否相同。
不相同,则是APP的问题;相同,则看下一步。
可以在AudioManager.java文件中添加callstack来查看。
public void startBluetoothSco(){
Log.d(TAG, "startBluetoothSco()",new Exception("xxx"));
public void stopBluetoothSco(){
Log.d(TAG, "stopBluetoothSco()",new Exception("xxx"));
例如:同一APP调用startBluetoothSco和stopBluetoothSco的次数相同,但由于第二次使用不同的pid调用stopBluetoothSco,这个stopBluetoothSco是不被执行的,这个归类为调用次数不配对的情况,需要APP来解决。
35565 07-05 18:27:25.6777