abortBroadcast() is used for disabling system notification for new SMS messages, but is there anyway to do it for new MMS messages? I’ve tried using abortBroadcast() but it doesn’t seem to work. Any help would be appreciated, thanks.
Edit:
I have tried using the following codes so that my application will catches the intent first, but it prevents the MMS message from entering my inbox.
<application android:icon="@drawable/icon" android:label="@string/app_name">
<receiver android:name=".MMSReceiver" android:enabled="true">
<intent-filter android:priority="100">
<action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
To be more specific, is there any way to detect system notifications for new MMS messages and suppress them programmatically?
try this:
Note: In your manifest file add the BroadcastReceiver –
Add this permission: