Chapter 2 P2P communication

Source: Internet
Author: User

In this chapter, you will learn how to use the P2P text and data communication protocols of Android, especially instant messaging and SMS (short message service ). With these technologies, you can create applications that communicate between devices, including multi-user games and mobile communication applications.

 

In this chapter, the android SDK contains an easy-to-understand instant messaging (IM) Service (Gtalk), which provides access to the instant messaging framework. Unfortunately, the im api is removed from the SDK based on security considerations, even though we all hope to provide access interfaces to the IM framework in the later Android release version. This chapter, this technology in earlier Android versions-sending instant text messages and broadcasting intent to distant devices-is a mechanism that allows you to create applications that interact in real time between devices.

 

Android still provides full access to the SMS function, allowing you to send and receive SMS text messages in your application. Using the android API, you can create your own SMS client program and replace the local application as part of the software stack. In addition, you can create applications that contain the SMS function.

 

At the end of this chapter, you will use SMS manager in a project that shows how to create an emergency SMS responder. In an emergency, it allows users to quickly or automatically respond to people who care about their safety.

BTW: I'm busy learning cars recently. Let's get started in Chapter 9th. If I have time, I will flip it over. I believe I can stick to it...

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.