user1239393
user1239393

Reputation: 125

How can i send a message from android application to specified MSISDN number

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

Answers (1)

user1203673
user1203673

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

Related Questions