Joke Collection Website - Public benefit messages - How to send information regularly in android
How to send information regularly in android
private Handler mHandler = new Handler() {
/*
*Send control
*/
@Override
public void handleMessage(Message msg) {
switch(msg.what) {
case 123:
SmsManager manager = SmsManager.getDefault();//Get the default SmsManager.
/** destinationAddress: receiver’s mobile phone number
scAddress: sender’s mobile phone number
text: message content
sentIntent :Receipt of successful sending.
DeliveryIntent: Receipt of successful receipt. */
manager.sendTextMessage("1234", "1234", "1234", null, null);
default:
break;
p>}
}
};
/*
*Sending function, the parameters are from the current time to the sending Time interval
*/
public void send(int duration) {
mHandler.sendEmptyMessageDelayed(123, duration);
}
- Related articles
- Why can't my mobile phone receive information?
- June 1 day funny joke
- When did you feel the most at ease in a long-distance relationship?
- How much is the information fee of China Unicom? How to cancel?
- How does the official account of SMS WeChat achieve brand promotion?
- Interesting China jokes 100 questions
- The whole network is black, and no text messages are returned.
- Will there be a power outage when the electricity bill expires?
- My ICBC credit card has a limit of 654.38 million. Why is there no line for e-loan?
- How to restore SMS blocking?