bluetooth streaming example a2dp


Last Updated:

  1. vccrest

    vccrest New Member This Topic's Starter

    Joined:
    Feb 11, 2010
    Messages:
    2
    Likes Received:
    0
    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...