Joke Collection Website - Public benefit messages - Ask all the gods how to automatically edit a short message with one click and send it to a fixed mobile phone number in Android development.
Ask all the gods how to automatically edit a short message with one click and send it to a fixed mobile phone number in Android development.
Just send a short message in the click event. . . .
I don't know how to send text messages. I searched a lot on the internet. . . Here is a way to pay attention to adding permissions.
pending Intent pi = pending Intent . get activity(this,0,new Intent(this,testSms.class),0);
SMS manager SMS = SMS manager . get default();
sms.sendTextMessage(phone,null,Message,pi,null);
Permission:
& ltuses-permission Android:name = " Android . permission . send _ SMS " & gt; & lt/uses-permission & gt;
& ltuses-permission Android:name = " Android . permission . read _ SMS " & gt; & lt/uses-permission & gt;
& ltuses-permission Android:name = " Android . permission . receive _ SMS " & gt; & lt/uses-permission & gt;
- Previous article:Bank card short message payment
- Next article:Does Dongguan unemployment benefit fail to be issued by SMS?
- Related articles
- Why are there text messages recommending stocks? What is their purpose?
- How to inquire about the electrician operation certificate of Ningbo Safety Supervision Bureau?
- Blessings for retirees
- Does Hebei Unicom send an interview invitation by SMS after the written examination?
- Xianyang latest epidemic prevention regulations (Xianyang latest epidemic prevention regulations 2022)
- What is China Mobile's messaging service?
- Redmi's 1S mobile phone has been receiving traffic query messages from 10086 all morning. How to stop it?
- Is there a safety net in the classroom window of Shenzhen Baoan Leite New Kindergarten?
- Can I send text messages for free?
- What's the telephone number of Chengdu Tianfu International Airport?