Joke Collection Website - Blessing messages - In eclipse, how to make a button and click it to send the specified message to the specified number? Find the specific code
In eclipse, how to make a button and click it to send the specified message to the specified number? Find the specific code
& lt answer? Href = "SMS:139xxxxxxxx" > Send SMS with one click.
2, Android.
/**?
*? Call the SMS interface directly to send SMS?
*? @param? Phone number?
*? @param? Leave a message
*/?
Public? Invalid? SendSMS (string? Phone number, string? Message) {?
//Get the SMS Manager
android.telephony.SmsManager? smsManager? =? Android . telephony . SMS manager . get default(); ?
//Split SMS content (SMS length limit)
List & lt string & gt? Dividend content? =? SmsManager.divideMessage (message);
For what? (string? Words? :? divideContents)? {
SmsManager.sendTextMessage (phone number,? null,? Text,? sentPI,? deliver pi);
}?
} Just execute this method in the click event of the button.
- Related articles
- What information should I pay attention to when booking a hotel on Ctrip?
- Lucky greetings
- How to apply for an e-mail address
- Nokia SMS Center Number Setting Method
- How to send a message to the teacher?
- I accidentally left my OPPO phone on the bus. How can I get it back?
- Will Credit China send text messages?
- Notice on flood prevention safety and typhoon prevention
- Does SMS verification code consume traffic?
- How can I see the information withdrawn by the other party?