How can I receive SMS on Android?

How can I receive SMS on Android?
Answer
To send SMS messages from within your app, add the “android.permission.SEND_SMS” permission to the AndroidManifest.xml file: Use the sendTextMessage() method of the SmsManager class to send the message, which takes the following parameters: destinationAddress : The string for the phone number to receive the message.
 

Tìm kiếm

Back
Top