How to send sms when turning off the phone in Android?

I have a broadCast receiver class that listens about disconnecting a phone. Now I want to send SMS when the phone is off. Is this possible or not?

+5
source share
3 answers

Yes it is possible. Take a look SmsManagerand you will see an API that you can use.

+3
source

1) Take a multimedia phone. This is necessary because these types of phones will never be disconnected with this SMS. 2) Then go to menu →> Message →> Write a new message 3) Type 51 layout (for some versions of phones or OS phones you need to use 79 commas instead of 51) ['], as shown below (these are quotation marks)

0
source

All Articles