开发者

Sending any SMS message displays an icon to display the message is "pending to networks" and "delivered to network" in Andorid

开发者 https://www.devze.com 2023-04-03 23:25 出处:网络
Sending any SMS message displays an icon to display the message is \"pending to networks\" and \"delivered to network\" but never displays the \"delivered

Sending any SMS message displays an icon to display the message is "pending to networks" and "delivered to network" but never displays the "delivered to handset" (or "delivered upstream") SMS status.

What is problem ? i am unable to simulate this issue ? please hel开发者_StackOverflow社区p ....


you need to setup broadcast receivers and also declare them in your manifest file. The Sms Manager has two places where the broad cast receiver works

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);

SentPI and delivered PI will do the intended work that you want.


i think the following link solve your problem,

http://mobiforge.com/developing/story/sms-messaging-android

use your code instead of Toast message.

0

精彩评论

暂无评论...
验证码 换一张
取 消