I've found many different posts across a large time span using both direct intent filtering and the SMSinterceptor object from the Phone library with different bits of code/manifest snippets scattered throughout the threads but I have not found one consolidated working example of intercepting/sending a SMS message and preventing it from reaching the default handler that anyone has posted / uploaded.
So, to sum up:
1. The SMSInterceptor object is now more of an "SMSEavesdropper" and the Boolean return value from the event handler is ignored, correct?
2. From Erel's reply in the https://www.b4x.com/android/forum/t...t-notification-android-4-4.37171/#post-227969 post it seems you need to add manifest text for three services, then create three services following the code template from Erel's tutorial at https://www.b4x.com/android/forum/t...cepting-sms-messages-in-the-background.20103/ changing the intent you're looking for in each service to match the manifest entries. My question, why have three different services? Could you not just have one service and parse the intent in the Service_Start, or would that create issues with simultaneous sends/receives?
3. Does anyone have a short, working, example project on Android 4.4+ that they would be willing to share which sends/intercepts SMS messages and prevents them from reaching the default message handling app?
TIA
Edit -- Also, if #1 is correct you should probably update the Phone Library documentation at (https://www.b4x.com/android/help/phone.html#smsinterceptor)
So, to sum up:
1. The SMSInterceptor object is now more of an "SMSEavesdropper" and the Boolean return value from the event handler is ignored, correct?
2. From Erel's reply in the https://www.b4x.com/android/forum/t...t-notification-android-4-4.37171/#post-227969 post it seems you need to add manifest text for three services, then create three services following the code template from Erel's tutorial at https://www.b4x.com/android/forum/t...cepting-sms-messages-in-the-background.20103/ changing the intent you're looking for in each service to match the manifest entries. My question, why have three different services? Could you not just have one service and parse the intent in the Service_Start, or would that create issues with simultaneous sends/receives?
3. Does anyone have a short, working, example project on Android 4.4+ that they would be willing to share which sends/intercepts SMS messages and prevents them from reaching the default message handling app?
TIA
Edit -- Also, if #1 is correct you should probably update the Phone Library documentation at (https://www.b4x.com/android/help/phone.html#smsinterceptor)
Last edited: