• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps bluetooth streaming example a2dp

vccrest

Lurker
i am trying to stream audio (example: mp3 file) from Samsung Galaxy (2.1) to a a2dp compatible bluetooth headset (blueant q1)

Code:
AudioManager am = (AudioManager)context.getSystemService(context.AUDIO_SERVICE);

am.setBluetoothA2dpOn(true);
boolean test1 = am.isBluetoothA2dpOn(); //always returing false

The device is paired well, and i can listen to the call audio from the bluettoth device. but the mp3 audio does not come from bluetooth. Can sombody please help.

Note:
Code:
am.setBluetoothScoOn(true);
         boolean   test2 = am.isBluetoothScoOn(); //returns true
 
Back
Top Bottom