receiving SmS messages
Besides sending SMS messages from your Android applications, you can also receive incoming SMS
messages from within your application by using a BroadcastReceiver object. This is useful when you
want your application to perform an action when a certain SMS message is received. For example,
you might want to track the location of your phone in case it is lost or stolen. In this case, you can
write an application that automatically listens for SMS messages containing some secret code. Once
that message is received, you can then send an SMS message containing the location’s coordinates
back to the sender
Besides sending SMS messages from your Android applications, you can also receive incoming SMS
messages from within your application by using a BroadcastReceiver object. This is useful when you
want your application to perform an action when a certain SMS message is received. For example,
you might want to track the location of your phone in case it is lost or stolen. In this case, you can
write an application that automatically listens for SMS messages containing some secret code. Once
that message is received, you can then send an SMS message containing the location’s coordinates
back to the sender