Reputation: 1043
I'm developing an app that listens to incoming SMS. Everything is working fine, but the problem is in onReceive()
method of Broadcast receiver, it is also receiving the SIM card's push (Class 0) messages (like balance info / SMS remaining, etc which comes as pop up after sending an SMS or making a call).
I want to handle only the SMS messages in that method. Is there any check by which I can distinguish between these messages in onReceive()
?
Upvotes: 2
Views: 113