I am trying to create an application that, when the phone receives an incoming SMS, reads its contents plus the number and writes it into its database . The application receives SMS information via the BroadcastReceiver , working in the background.
The following is required: the application should recover after the system kills it due to lack of resources.
How to implement it?