I want to send some data (NOT MULTIMEDIA) through an SMS message in Android. Can this be done? I just want to send a very small amount of data from one phone to another, as XML or something.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct way to do this would be by using sendDataMessage from SmsManager class.
Here’s a little code (SMSSender):
Here’s another little code (SMSReceiver):
Here’s what you should add to your AndroidManifest.xml: