0

If my mobile is not reachable or switched off when someone calls then I want to send sms to that particular person by automatically. How can i achieve this through code? Please help me.

Sridhar
  • 668
  • 1
  • 11
  • 22

2 Answers2

2

This, I believe, is impossible. If someone rings you, and you have no signal, then how is your phone meant to know? If it did know, surely your phone would actually RING instead?

jbutler483
  • 24,074
  • 9
  • 92
  • 145
0

You need to create service with phone state listener ANdroid Development - Call state of the phone

and when you have call back send sms Sending text messages programmatically in android

Community
  • 1
  • 1
QArea
  • 4,955
  • 1
  • 12
  • 22