| Reply | « Previous Thread | Next Thread » |
|
Hi all:
I am developing an application that has the server on PC running on windows 2000,XP and the client on a mobile . I writing my code on J2ME ,I am using the wireless toolkit 2.2 to emulate the client mobile when I try to run my code on the server, I mean make the server on the discoverable mode I have the following exception : can't set the discoverable mode exception....... javax.bluetooth.BluetoothStateException java.Lang.unsatisfiedLinkError:isNetworkMonitorActive at javax.microedition.io.Connecter.isNetworkMonitorActive<Native Method> and I want to ask that if I use USB bluetooth will the problem be solved????To be more specifis I want to run my code on the emulater..........but how i can do that whren the server is A pc not amobile *********here are part of server code:****************************** Note : I run the the code from main by declaration an object of BTServer BTServer( ){ Thread accepterThread = new Thread(this); accepterThread.start(); } public void run(){ try { local = LocalDevice.getLocalDevice(); String address=local.getBluetoothAddress(); System.out.println("bluetooth address of server device is"+address); local.setDiscoverable(DiscoveryAgent.GIAC); if (!local.setDiscoverable(DiscoveryAgent.GIAC)) System.err.println("Can't set discoverable mode..."); else System.out.println("in discvored mode"); } catch (BluetoothStateException e) { System.err.println("Can't set discoverable mode Exception..."+e); } } please can anyone help me?????????? ![]() |
|
I used WTK2.2 (only) on windows to start the server.
It is working but it does not use any real BT device. I can connect application to aplication. But when I start Nokia Connectivity Framework and try to load midlet app using Nokia stuff it does not work. Tell me more details about you configuration. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|