How do I disable the sms function in android?? so that when someone sends a text, it shows sms delivery failed in the sender's phone?? I want to leave the call function as it is.
I tried using a broadcast receiver and aborting the message, but it'll show delivery success in the sender's phone.
Thank you.

AFAIK you can't, that's something you'll have to ask your service provider to disable for your account.
What you experienced is simply that the message was indeed received for you by the network, and sent on to your device, where it was received.
After reception it is then simply discarded because you told the device to discard those messages.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.