1

I am developing a banking application. We have a binary SMS functionality where the application listens to a specific port for SMS. The application is able to receive SMS but a copy of SMS is also stored in inbox. I do not want the SMS to be stored in inbox. It must be receid only by the application. Can you please help me on how to overcome this issue?

regards, Chinnadurai

2 Answers2

0

you can set priority to your broadcast recevier like this if your are registering receiver in code filter.setPriority(10); otherwise like this in manifest

Naresh Kaushik
  • 302
  • 1
  • 3
  • 10
-1

I do not think that this is possible using SMS. Your option is to delete the SMS as soon as possible. How to do that has already been answered here.

Community
  • 1
  • 1
Joakim Berglund
  • 2,859
  • 1
  • 22
  • 30
  • I haven't tried it for binary SMS, but this may be a better solution: http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox/2566199#2566199 – Christopher Orr Dec 15 '10 at 11:07
  • Is it possible to delete the SMS from inbox even before the user is notified about new message? My solution need is that the user should not be notified that there is a new SMS. Is it possible to do that? – chinnadurai Dec 15 '10 at 11:48
  • chinnadurai: I don't think so. – Joakim Berglund Dec 17 '10 at 12:54
  • I have now tested the approach I mentioned in my first comment and it does work. Using that, the SMS will never appear in the user's inbox, so there is no need to delete it. – Christopher Orr Jan 12 '11 at 18:59