Reputation: 125
I am working on a Chat application. I need to verify user that only the valid user is installing the apllication on his mobile. For that i am getting the Mobile No of the user and when he/she send that, Onclick i need to send verification message/code to that mobile number specified (Sameuser). How can i achive it.
Pls Note: Send message form android application to the MSISDN number.
Pls guide me with any available link.
Thanks a lot in advance.
Upvotes: 0
Views: 807
Reputation: 1015
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phonenumber, null, msg, sentPI, DeliveredPI);
Here the phone number is the number which u will be getting from the user
you can check the stackoverflow sms application
Upvotes: 1