I have been looking for a way to block the SMS to the default inbox on mobile phones when I am running the application (that I have to do only at a certain number for example, issuer 546513224). In the search I found that before it could be done through abortBroadcast () and configuring the manifest so that the app remains as the primary receiver. Now, is there a way to do it from API 19 and when the application is closed, the SMS input tray will be the default one again?