I’m trying to make my application listen to incoming text messages, in a persistent manner. What would be the best approach for this?
Currently, I’ve got a working BroadcastReceiver and I’m playing around with implementing a local service for my app. Is somehow implementing the BroadcastReceiver into the service the correct way of doing this? Will the service work in a low memory condition?
Yes broadcast receiver is best way for listening to incoming texts.if an incoming sms recvied use IntentService for your work what u want to do on sms recived.u can register a reciver for incoming sms as:
manifest file
Java File
and second way you can register a ContentObserver for
content://sms/inboxfor listening incoming sms in inbox