04-13-2009, 07:21 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
| 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 void setDeviceListener(DeviceListener l)
{
this.listener = l;
}
public void connectionEstablished()
{
this.add(new LabelField("Connection established"));
this.doPaint();
}
}
public class Client extends Thread{
public void run()
{
}
} |
| Offline
| |