Hi,
I implements PushRegistry for Bluetooth connection using Nokia 6680.
The midlet starts, but does not received any data (that is acceptAndOpen() does not returns).
The JAD file contains the following lines:
MIDlet-1: M-CliniQ,/Bird_image.png,BTECG.MainApp
MIDlet-Permissions: javax.microedition.io.PushRegistry,javax.microedition.io.Connector.bluetooth.server,javax.microedition.io.Connector.bluetooth.client
The relevant source code fragments are:
public final static String btUrl = "btspp://localhost:1101";
if (PushRegistry.getMIDlet(btUrl) == null)
PushRegistry.registerConnection(btUrl, getClass().getName(), "*");
StreamConnectionNotifier notifier = (StreamConnectionNotifier) Connector.open(btUrl);
StreamConnection streamConnection = notifier.acceptAndOpen();
Any idea or suggestion will be appreciated.

Reply With Quote

