×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    8

    Talk via bluetooth..log&look

    Hi all...

    I'm working in my graduation project using J2ME

    it's about Talk via bluetooth

    capture audio work well.
    device discovery work well.
    send a test message work well in NetBeans emulator

    BUT..

    when I run it in a mobile it is not received anythink.

    I'm using IBM package


    Plz I need any help

    /*
    * This code discover devices & send/receive message
    * Hudhiafa Shatnawi / Jordan / AABU / CS
    */
    public class Millcovery
    extends MIDlet
    implements CommandListener, BTEventListener {
    public Millcovery() {
    ...
    manager = new BTManager();
    manager.addBTEventListener( this );

    ...
    } // END: Millcovery constructor

    public void commandAction( Command theCommand, Displayable theDisplay ) {
    if ( theCommand.getLabel().equals( "Discover Devices" ) ) {
    ...
    manager.searchForDevices();
    deviceCache = manager.getDevices();

    ...
    } else if ( theCommand.getLabel().equals( "Call" ) ) {
    selectedDevice = discovered.getSelectedIndex();
    ...
    try {
    RemoteDevice remoteDevice = deviceCache[ selectedDevice ];
    manager.sendMessage( ( RemoteDevice ) deviceCache[ selectedDevice ], LocalDevice.getLocalDevice().getFriendlyName() + "\ncall you!" );
    } catch (...) {}
    ...
    } // END: if..else
    } // END: commandAction

    public void messageReceived( BTEvent event ) { // Print received message < event.getSource() > }
    public void messageSent( BTEvent event ) { // Print sent message < event.getSource() > }
    public void devicesDiscovered( BTEvent event ) { // Show discovred devices }
    public void diagnosticMessage( BTEvent event ) { // Print diagnostic message < event.getSource() > }
    public void errorMessage( BTEvent event ) { // Print error message < event.getSource() > }
    public void alert( String m, Screen nextScreen ) { // Promt alert }

    protected Display display;
    protected BTManager manager; // It is a class from IBM package
    protected RemoteDevice[] deviceCache;
    protected DiscoveredDevice discovered; // It is a class extends List

    } // END: class Millcovery

    Plz I need any help quikly...

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Talk via bluetooth..log&look

    Hi,

    Please tell us which phone u r testing ur application?/

    Wang

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    8

    Re: Talk via bluetooth..log&look

    Nokia S60 & N70

    & SonyEricson k??

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Talk via bluetooth..log&look

    Hi hudhaifa,

    What's the IBM package? I suppose you're talking about the BT events package -
    http://www-128.ibm.com/developerwork...y/wi-javablue/

    when I run it in a mobile it is not received anythink.
    Have you run the examples? What's the problem or error? Your problem solving information/requirements are poor...

    Nokia S60 & N70 & SonyEricson k??
    You should be more specific on devices, just stating platform may not be enough for people to help you...believe me, mobile dev is somewhat fragmented...

    I advise you to take a look at Bluetooth documentation from this same Forum Nokia. You can get them here - http://forum.nokia.com/main/1,,1_0_10_8,00.html

    Hope it helps.

    BR,

    Juarez Junior

Similar Threads

  1. Call via bluetooth..log&look
    By hudhaifa in forum Bluetooth Technology
    Replies: 10
    Last Post: 2009-06-18, 22:19
  2. Bluelet - Rapid Bluetooth App Development (Free source)
    By huiben in forum Mobile Java General
    Replies: 4
    Last Post: 2008-07-25, 15:52
  3. PC Suite not detect 6600 with Bluetooth connection
    By spinacle in forum Bluetooth Technology
    Replies: 29
    Last Post: 2004-03-14, 23:24
  4. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  5. Suggestion for resolving PC suite connection via bluetooth
    By Kazi in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-03-14, 19:35

Posting Permissions

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