BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-13-2009, 07:25 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: storm
PIN: N/A
Carrier: no
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Problem with events

Please Login to Remove!

Hello I'am developing a bluetooth application on BB Storm
I got a class "client" which opens a bluetooth connection via jsr 82.

That works fine, I am able to establish the connection and send data.

But the events provided by the client class are not raised in the Application.

The HelloWorldScreen-Class implements a device listener, the client class has a device listener object.

public class HelloWorldScreen extends MainScreen implements DeviceListener {

public HelloWorldScreen()
{
try
{
client = new Client("btspp://"+mac+":1;authenticate=false;encrypt=false;master= false");
client.setDeviceListener(this);
}
catch(Exception ex)
{
add(new LabelField("Error Establishing BT Connection"));
}

}
public void setDeviceListener(DeviceListener l)
{
this.listener = l;
}

public void connectionEstablished()
{
this.add(new LabelField("Connection established"));
this.doPaint();

}


}

public class Client extends Thread{

DeviceListner listener;
public void run()
{
if (listener != null)
listener.connectionEstablished();
}


}

Any Idea why the event doesn't raised in der HelloWorldScreen?
Thx for Help...
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

NEC Univerge SV8300 Business Phone VoIP, CD-16DLCA, CD-4COTB CHS2U
$179.99
NEC Univerge SV8300 Business Phone VoIP, CD-16DLCA, CD-4COTB CHS2U pictureNEC Univerge SV8300 Business Phone VoIP, CD-16DLCA, CD-4COTB, CC-CP31, CHS2U-1U
$219.99
NEC Univerge SV8300 Business Phone VoIP, CD-16DLCA, CD-4COTB, CC-CP31, CHS2U-1U picturePolycom Soundpoint IP450 3-Line SIP w/PoE 2200-12450-025 VoIP - Refurbished
$89.0
Polycom Soundpoint IP450 3-Line SIP w/PoE 2200-12450-025 VoIP - Refurbished pictureESI IVX RNC 12 RMT/LOCAL VOIP Networking Card
$395.0
ESI IVX RNC 12 RMT/LOCAL VOIP Networking Card  picturePolycom CX600 2201-15942-001 VoIP PoE Phone for Microsoft Lync
$9.99
Polycom CX600 2201-15942-001 VoIP PoE Phone for Microsoft Lync picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.