views:

171

answers:

3

Is it possible to intercept an SMS coming from a certain number and direct it to a certain application on the iPhone/Android where it will be processed? Thanks.

A: 

For Android the answer is no. You can implement a BroadcastReceiver that is called whenever the device receives an SMS text message but cannot keep other applications (e.g. the built-in Messaging app) from receiving them too.

Josef
+1  A: 

In Android, what you can do is register a BroadcastReceiver to be notified that an SMS has been received, mark the message as read in the SMS Content Provider and then delete that specific message from the content provider. This will prevent any other applications from being able to read the message once you have deleted it and no notifications will be shown in the notification space. That said, I have no idea what will happen to the applications that receive the Intent indicating that a message has been received but then cannot access it in the database. This could result in unpredictable behavior as a result of a number of race conditions.

Chris Thompson
A: 

Thanks for your answer! Too bad! Well, my point was to find a way to send data to an application without going through internet. With my modest knowledge in network technology, I could only think of SMS (and then SMS interception). Are there ways to send data from a server to A SPECIFIC Android/iPhone application through the mobile network, if any? Thanks in advance and please excuse my ignorance!

Monty Burns