hi guys,
According to the
http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox/2566199#2566199
it is possible to delete a SMS before it reaches inbox by setting
android:priority attribute on the listener and calling
abortBroadcast() to stop propagating it to other apps.
is this feature still working in Android 2.2? I tried this on the
emulator and i can see the top notification bar shows the new message
upon arrival. I tried calling
BroadcastReceiver
@Override
public void onReceive(Context context, Intent intent) {
abortBroadcast();
setResultData(null);
}
AndroidManifest.xml
<receiver android:name=".SMSReceiver" android:enabled="true"
android:priority = "100" >
<intent-filter>
<action
android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
still no luck. How can i make it work? please advice
Thank a lot
-Walpappa
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en