Reputation: 1
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.
Upvotes: 0
Views: 107
Reputation: 1693
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…)
Upvotes: 1