jsr82

Why does my J2ME Bluetooth code hangs after an incoming RFCOMM connection?

纵然是瞬间 提交于 2019-12-24 13:44:17
问题 All I want to do is send "hello" to the first incoming RFCOMM Bluetooth connection and then exit. My code works on Nokia N73 but not on more modern devices like Nokia E52. In Nokia E52, the application hangs just after: streamConnectionNotifier.acceptAndOpen(); Here is the code: All the code is inside the run() method of my Thread: public class BTTest extends Thread { public void run() { ... } } I first set my bluetooth device discoverable: try { LocalDevice localDevice = LocalDevice

Bluetooth client/server communication between computer and mobile phone

﹥>﹥吖頭↗ 提交于 2019-11-27 04:38:32
问题 I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth . A good link/website to start from is also appreciated. Server part (computer part) can be made on many programming languages ( Java , C++ , Python or even something else). Client part (mobile phone) must be a Java Micro Edition MIDlet. 回答1: After many days of research, I managed to make an application that sends (in real time) screenshots of area around the mouse cursor on a computer to