Design and implementation of Android Bluetooth chat program

Source: Internet
Author: User

The author introduces This example here is the Google SDK provides a Bluetooth chat program, simple but the information is huge, very suitable for beginners to learn Bluetooth knowledge.

Before learning This example, please read and understand the working principle and implementation mechanism of the socket, the author of this blog has a detailed description:

http://blog.csdn.net/dlutbrucezhang/article/details/8577810

In the android1.x, the relevant API is very imperfect, not easy to use Bluetooth development, there is an open source project can help programmers use, develop Bluetooth, support direct method Bluetooth protocol stack. After Android2, the framework provides some official APIs for Bluetooth communication, but the current program is less sophisticated. This article mainly discusses the API usage of Bluetooth communication after Android2.

First look at the chat room effect chart:

The process of connecting a Bluetooth device is shown in the following illustration:

The following diagram shows a sequence diagram of a Bluetooth chat:

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.