Joke Collection Website - Blessing messages - How to judge whether Android SMS sending is successful?
How to judge whether Android SMS sending is successful?
1. Allow receiving SMS.
2. Allow sending short messages
After that, you need to start the functions of two simulator test programs. The following is a screenshot of the implementation. Look at the first screenshot first. One simulator receives a short message from another simulator and displays it in the notification bar:
You will see that the port number of this simulator is 5554, which is equivalent to the mobile phone number. Just use this number as your mobile phone number and send a text message. The following screenshot is a screenshot of the main program. Click the send button and the message will be sent. At the same time, if successful, the system will send broadcast information.
The screenshot is as follows:
- Related articles
- How to restore the contents of oppoA7X mobile phone notepad after accidentally deleting it?
- How to set the refusal to store in the hive?
- Change the real-name authentication information of mobile phone number
- Mobile phone vivox5, why didn't you receive the previous text message today?
- What does it mean to show that the mobile phone number is bound when Jiji.com's resume is released?
- Country Garden Phoenix Cloud owners cannot be certified.
- I applied for the Industrial Bank credit card online, and after a few minutes, I sent a text message saying that I passed and asked for verification. I don't have Industrial Bank here, so I don't want
- 2013 Essay: What did Edison think of mobile phones?
- What happened when "my daughter" sent a text message to buy a degree in Tsinghua?
- Heshan CDC reminds people who travel to and from Shenzhen, Macao and Zhuhai to pay attention to epidemic prevention (June 19)