Results 1 to 2 of 2

i got my pearl 8100 awhile ago and i just got a bluetooth headset to ... BlackBerry Pearl forum

  1. #1
    Mitchigator's Avatar
    Mitchigator no está en línea Stack level 1
    Join Date
    Dec 2007
    Posts
    3

    please help im really starting to get frustrated

    Advertisement



    i got my pearl 8100 awhile ago and i just got a bluetooth headset to listen to music cuz i kept breaking the ones with cords and i find out that you cant stream music to bluetooth with the 8100 but then after reading on the blackberry website i could update the os to 4.2.2 i searched but couldnt find it so then i read on the blackberry website a code that i could enter to allow me to set it so i could use my headset for music and i dont have any idea where or how to enter it
    can somebody please help me???

    the code i read is....


    Description

    The AudioPathControl interface in the BlackBerry smartphone application programming interface (API) set allows an application to specify the route that is used to play back or record audio. This means your application could play back and/or record audio using a specified speaker and microphone. For example, you can specify the speaker and microphone built into the BlackBerry smartphone, a Bluetooth® headset, or a wired headset.
    The following portion of code shows how to route audio to a Bluetooth headset:
    try {
    Player p =
    javax.microedition.media.Manager.createPlayer("h://mycompany/test.mp3");
    p.realize();
    p.prefetch();
    Control[] c = p.getControls();
    for(int i=c.length-1; i>=0; --i) {
    if(c[i] instanceof AudioPathControl) {
    AudioPathControl apc = (AudioPathControl)c[i];

    try{
    //Route the audio to Bluetooth. For more
    audio path options see the AudioPathControl javadocs.
    apc.setAudioPath(AudioPathControl.AUDIO_PATH_BLUET OOTH);
    } catch(Exception e) {
    System.err.println(e.toString()); }
    }
    }
    p.start();
    }
    catch(Exception e) { System.err.println(e.toString());
    }
    -------
    Quote Originally Posted by Mitchigator View Post
    i got my pearl 8100 awhile ago and i just got a bluetooth headset to listen to music cuz i kept breaking the ones with cords and i find out that you cant stream music to bluetooth with the 8100 but then after reading on the blackberry website i could update the os to 4.2.2 i searched but couldnt find it so then i read on the blackberry website a code that i could enter to allow me to set it so i could use my headset for music and i dont have any idea where or how to enter it
    can somebody please help me???

    the code i read is....


    Description

    The AudioPathControl interface in the BlackBerry smartphone application programming interface (API) set allows an application to specify the route that is used to play back or record audio. This means your application could play back and/or record audio using a specified speaker and microphone. For example, you can specify the speaker and microphone built into the BlackBerry smartphone, a Bluetooth® headset, or a wired headset.
    The following portion of code shows how to route audio to a Bluetooth headset:
    try {
    Player p =
    javax.microedition.media.Manager.createPlayer("h://mycompany/test.mp3");
    p.realize();
    p.prefetch();
    Control[] c = p.getControls();
    for(int i=c.length-1; i>=0; --i) {
    if(c[i] instanceof AudioPathControl) {
    AudioPathControl apc = (AudioPathControl)c[i];

    try{
    //Route the audio to Bluetooth. For more
    audio path options see the AudioPathControl javadocs.
    apc.setAudioPath(AudioPathControl.AUDIO_PATH_BLUET OOTH);
    } catch(Exception e) {
    System.err.println(e.toString()); }
    }
    }
    p.start();
    }
    catch(Exception e) { System.err.println(e.toString());
    }
    i had to take the ttp out of the link cuz it wouldnt let me post it
    Last edited by Mitchigator; 12-21-2007 at 07:56 PM. Reason: Automerged.

  2. #2
    jeffallen8's Avatar
    jeffallen8 no está en línea Stack Professional
    Join Date
    Oct 2007
    PIN/ID
    Huh?
    Posts
    1,734

    Re: please help im really starting to get frustrated

    8100 do not support api sorry bro

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •