Sms Notification from Android Apps

丶灬走出姿态 提交于 2019-12-12 02:29:36

问题


we need to develop an android application for our customers .Our main objective is when the customer will place an order we should be notified on our mobile via SMS. Any suggestion will be highly appreciated.


回答1:


then try following method:

//---sends an SMS message to another device---
private void sendSMS(String phoneNumber, String message)
{
    SmsManager sms = SmsManager.getDefault();
    sms.sendTextMessage(phoneNumber, null, message, null, null);
}

And call that method for an sms send:

sendSMS(“5556”, “Hello my friends!”);

(Of course, that would also mean you would have to pay the fees incurred in sending all those SMS messages…)



来源:https://stackoverflow.com/questions/18503480/sms-notification-from-android-apps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!