Android - Redirect sending of SMS message

Posted by Donal Rafferty on Stack Overflow See other posts from Stack Overflow or by Donal Rafferty
Published on 2010-03-31T13:30:50Z Indexed on 2010/03/31 13:33 UTC
Read the original article Hit count: 501

Filed under:
|
|
|
|

I currently use a ContentObserver to listen for changes in the SMS ContentProvider and tell my application whether a message has been sent or received.

Upon getting notification that a message is being sent I would like to present the user the option to send that SMS normally over GSM/CDMA or if connected to Wifi to send the SMS over an ip connection.

I am aware of how to present my own application as an option to create and send an SMS when a user clicks on a contacts information and "Send SMS" but this is not what I want.

I want the user to be able to use the native or a 3rd party SMS application and when they try to send an SMS present them with a dialog screen giving them the option to send the SMS in whichever direction they want.

So is it possible that once I get notified an SMS is being sent to pause it, allow the user to pick the desired route to send it and then change the sms from being sent over GSM/CDMA to being sent using a protocol over IP if required?

© Stack Overflow or respective owner

Related posts about android

Related posts about sms