I'm working on an app that will auto reply with an pre-coded SMS to the sender. Sending a message is easy. My problem is I can't seem to get the message and get the sender's address/number. I have searched over and over and over for this answer. All I need is to know is how to get the sender's address and only the address. Nothing else is needed. Everything that I've tried to reference just throws a ton of code at me that I don't need. Can anyone help me?
Asked
Active
Viewed 85 times
-3
-
Have you looked through this https://stackoverflow.com/questions/13098472/any-way-to-get-the-sender-phone-number-from-a-received-sms-on-android? – Elvis Chweya Feb 19 '16 at 03:55
1 Answers
0
I am assuming that you are receiving the sms through the sms broadcast. You can extract the sender address from the intent. Example:

Phuong Nguyen
- 909
- 7
- 20
-
Exactly what I needed. Thanks. Was beating my head against the wall trying to figure this out. – Justin Simmons Feb 19 '16 at 21:40