ContentObserver用于短信 [英] ContentObserver used for SMS

查看:136
本文介绍了ContentObserver用于短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图提取发来的短信。我知道有没有BroadcastReciver这一点。所以,我发现我可以使用ContentObserver听变化分贝。

I'm trying to extract the sent SMS. I know there is no BroadcastReciver for this. So I've found that I can use ContentObserver to listen changes in the db.

我如何实现这一点?我的目标是为只得到新的发短信,并通过张贴在DB

How can I implement this? My objective is to get only the new sms sent and send it via POST on the DB

感谢

推荐答案

是的,它可以通过注册的 ContentObserver 内容://短信/

yes it is possible to Listen for new SMS by Registering ContentObserver to content://sms/

看到这个帖子我的回答我们怎么注册ContentObserver内容://短信/

see in this post my answer how we Register ContentObserver to content://sms/

<一个href="http://stackoverflow.com/questions/9520277/practical-way-to-find-out-if-sms-has-been-sent/9659025#9659025">Practical办法找出如果短信已发送

,你也可以从这里下载工作示例

and you can also download working example from here

Contentovserver

这篇关于ContentObserver用于短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆