j2me : how to test bluetooth app on emulator ?
Hi
i want to write an app that send text from one device to an other , how can i test it with emulator on pc ? is it possible with wtk ?
thanks
mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0
You need to run two emulator instances in same time and do not forget to give them unique IDs which you can lookup by easily
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0
i try to test it with wtk 2.5.2
1. i run project
2. propertise>>manage emulator >>tools & extensions >> open preferences>>Bloutooth/OBEX
3.i change "bluetooth adress of next emulator"
4.on BCC properties i change frindly name
5. run project
but this is out put :
Running in the identified_third_party security domain
java.io.IOException: JSR082 support is not available.
at com.sun.kvem.jsr082.impl.bluetooth.BluetoothContro ller.initialize(BluetoothController.java:621)
at com.sun.kvem.jsr082.bluetooth.LocalDeviceImpl.(LocalDeviceImpl.java:166)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDe vice.java:94)
at Midlet.doDeviceDiscovery(Midlet.java:60)
at Midlet.commandAction(Midlet.java:44)
at javax.microedition.lcdui.Display$DisplayAccessor.c ommandAction(Display.java:1992)
at javax.microedition.lcdui.Display$DisplayManagerImp l.commandAction(Display.java:2825)
at com.sun.midp.lcdui.DefaultEventHandler.commandEven t(DefaultEventHandler.java:303)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEv ent(AutomatedEventHandler.java:670)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEvent Handler.handleVmEvent(+186)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEvent Handler.run(+57)
javax.bluetooth.BluetoothStateException: JSR082 support is not available.
at com.sun.kvem.jsr082.bluetooth.LocalDeviceImpl.(LocalDeviceImpl.java:185)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDe vice.java:94)
at Midlet.doDeviceDiscovery(Midlet.java:60)
at Midlet.commandAction(Midlet.java:44)
at javax.microedition.lcdui.Display$DisplayAccessor.c ommandAction(Display.java:1992)
at javax.microedition.lcdui.Display$DisplayManagerImp l.commandAction(Display.java:2825)
at com.sun.midp.lcdui.DefaultEventHandler.commandEven t(DefaultEventHandler.java:303)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEv ent(AutomatedEventHandler.java:670)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEvent Handler.handleVmEvent(+186)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEvent Handler.run(+57)
mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0