In order to capture incoming SMS in Android, I know that I can either use a ContentObserver that looks at content:/sms/
, or I can register a BroadcastReceiver.
What are the pros and cons of these two methods? Is one more reliable than the other? Is one more efficient? Are there any other benefits or drawbacks to one or the other?
I'm writing an app which needs to run under ICS or later, if that makes any difference.
By the way, I have indeed read this discussion: ContentObserver vs. BroadCastReceiver : Battery Usage, Ram, CPU?
I just want to know if there are issues besides battery usage, RAM, and CPU which would favor the use of either a ContentObserver
or a BroadcastReceiver
for monitoring incoming SMS.