Joke Collection Website - Public benefit messages - Can't android4.4 send SMS with sendMultipartTextMessage?
Can't android4.4 send SMS with sendMultipartTextMessage?
Android 4.4 can use sendMultipartTextMessage to send multiple short messages, which may be wrong in the api. The correct method is as follows:
What if? (message.length()? & gt? 70)? {?
ArrayList & lt string & gt? msgs? =? Sms.divideMessage (message); ?
ArrayList & ltpending content & gt; ? Perception? =? New? ArrayList & ltpending content & gt; (); ?
for(int? Me? =? 0; I< msgs.size (); i++){?
sent intents . add(sent pi); ?
}?
Sms.sendMultipartTextMessage (phone number,? null,? Text message? Perception? null); ?
}? Or what? {?
Sms.sendTextMessage (phone number,? null,? News? sentPI,? deliver pi); ?
}
- Previous article:Apple swallows short messages
- Next article:The icon in the upper right corner of QD does not disappear
- Related articles
- I am making a loan, and the loan is successful. The text messages have all been sent. It's been four days today and the money hasn't arrived yet.
- Apple Quick Help on How to Add Songs
- How many text messages did MUJI send to sign the contract?
- The mobile phone verification code of Shanghai New Energy Vehicle Selection cannot be received.
- Thank you for your work and hospitality.
- Peace is hard-won, so we should cherish it —— Planning activities to commemorate the 73rd anniversary of the victory of the Anti-Japanese War
- What do you do when a woman receives an indecent photo from a stranger on the subway?
- Short message about the change of dining place
- Is the small umbrella insurance formal?
- How to send a screenshot of chat information in WeChat to a circle of friends?