Development of Bluetooth from mobile phone to PC "4"--communication between mobile phone and PC

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.