开发者

Is there a way to intercept Android SMS sending to forward to different transport?

开发者 https://www.devze.com 2023-03-14 15:34 出处:网络
For example, can I listen for some broadcast from the app layer (e.g., messaging) and consume the message prior to the telephony layer sends it out of 开发者_开发知识库the device?You can receive an in

For example, can I listen for some broadcast from the app layer (e.g., messaging) and consume the message prior to the telephony layer sends it out of 开发者_开发知识库the device?


You can receive an intent and process a message on receipt of a message, however there is nothing you can do to stop and outgoing text message. Many people want to be able to detect for sent messages, and that in itself can be difficult. The only way that that can be done is by reading the SMS ContentProvider, which isn't something that comes recommended by many.


No. There are no broadcast intents for outgoing messages, only incoming.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号