Java Reference
In-Depth Information
class ShowCandidate implements Runnable {
Display disp = null;
String contact = null;
public ShowCandidate(String cont) {
contact = cont;
}
public void run() {
mDateContact.setText(contact );
}
}
}
OBEX server handling uses a listener inherited from ServerRequestHandler . In Listing 12-4,
the private OperationHandler is used for this purpose. Since the OBEX callback is performed on
a system thread, the actual work of processRequest() is not performed there. Instead, thread
synchronization is used to ensure that the work is performed on the mServer thread.
Summary
The Java API for Bluetooth is an optional API that provides MIDP applications with access to a
device's support for radio connectivity with nearby devices. Using Bluetooth, devices can offer
services to one another, or consume services provided by nearby network resources. You use
the familiar CLDC GCF when working with Bluetooth connections.
JSR 82 specifies the Java API for Bluetooth, as well as an API for the OBEX protocol. The
OBEX protocol provides a simple and standard way of creating communicating MIDP applica-
tions that utilizes the infrared link hardware available on some devices.
Search WWH ::




Custom Search