On Wednesday, October 24, 2012 1:53:48 PM UTC+2, Ahmed Abdelfattah wrote:
--I have written a simple app that records and plays audio through a Bluetooth Mono headset using
startBluetoothSco()
. The app works fine on Gingerbread but fails to work on ICS. The output of logcat is strangeD/BluetoothSocket.cpp( 1554): ...connect(76, SCO) = 0 (errno 115)
D/BluetoothSocket( 1554): called connectNative
D/Bluetooth HS/HF( 1554): mOutgoingSco.connect() success!
D/Bluetooth HS/HF( 1554): connectSco()
D/Bluetooth HS/HF( 1554): Routing audio for outgoing SCO conection
D/BluetoothHeadset( 1554): setAudioState
D/BluetoothHeadset( 1554): setAudioState
D/Bluetooth HSHFP( 1554): AudioStateIntent: 00:23:7F:EB:4F:10 State: 12 PrevState: 11
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNativeIt keeps calling the Native read from socket function till the app (sco connection) is terminated . It's worth mentioning that tried tha app on Samsung Galaxy Mini(Gingerbread) , HTC (Gingerbread) , pandaboard(ICS) and ODROID-X(ICS).
Any suggestions for why the app stucks and readNative is being repeatably called ?
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment