I am working on one app which I want to run in background and it should handle the event when any sms gets received and my application should receive that sms even if this application is closed. Till now my application is getting sms only when it is opened . I want it to catch all messages received even it is closed. Similarly I want this for sent messages .
Could anyone please tell me how should I do this?