1. Check out our companion app, Forums for Android! Download from Google Play

bluetooth streaming example a2dp

Discussion in 'Application Development' started by vccrest, Oct 6, 2010.

  1. vccrest

    vccrest New Member
    Thread Starter
    5

    Feb 11, 2010
    2
    0
    5
    i am trying to stream audio (example: mp3 file) from Samsung Galaxy (2.1) to a a2dp compatible bluetooth headset (blueant q1)

    Code (Text):
    1. AudioManager am = (AudioManager)context.getSystemService(context.AUDIO_SERVICE);
    2.  
    3. am.setBluetoothA2dpOn(true);
    4. 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 (Text):
    1. am.setBluetoothScoOn(true);
    2.          boolean   test2 = am.isBluetoothScoOn(); //returns true
     

    Advertisement

Share This Page

Loading...