The previous articles are written in the mobile phone and mobile phone to communicate with each other through Bluetooth, this article began to talk about how to use Bluetooth technology to achieve the communication between the mobile phone and PC connection, the completion of this step we can further develop this communication on the basis of a computer-like control of the phone remote.
In fact, the author later felt that this article is actually not much to write, the reason is that from the mobile phone to the PC is not the difficulty of coding, but the J2SE itself does not provide the implementation of the JSR-82 specification. Therefore, the crux of the problem is how to support the development of Bluetooth applications on the J2SE platform. Here, later I found an open source component Bluecove.jar package on the Internet, the jar package implements the JSR-82 specification, it can be developed into the application of Bluetooth as an external jar package into our program.
Originally intended to write a simple mobile phone and PC communication program, later think or forget, because the feeling code and the previous article in the code to give little difference, so decided to the next post (the last one, the knot) to achieve a simple mobile phone remote control computer program, provide the source code for everyone to download learning Exchange. So, in this article I just introduced how to use the Bluecove components!
First build a J2SE project (New->java Project), and then copy the downloaded Bluecover jar package to the project root directory. Then the right key item name finds "Build Path->configure build Path" and a window appears, as follows:
In the tab of the window that appears, look for the "libraries" option, and then click "Add JARS" on the right. In the window that appears, the items in the current eclipse are listed, and the jar packages that are copied in the current project can be found, and after the selection, click OK to configure, so simple as this:
Through the above configuration, you can want to develop a Bluetooth program on the J2ME application platform as smooth and unimpeded. If there is any confusion, welcome to communicate with the author, your support will be the author's greatest power ~
This article supporting source code