算上发送短信 [英] Count sent SMS messages

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

问题描述

我有被用户或其他一些应用程序来计算所有已发送短信(SMS)。

I have to count all sent text messages (SMS) by user or by some other app.

我的应用程序将运行服务(背景)和count发送的邮件。

My app will run as Service (in background) and count sent messages.

最后,当发送的消息数量超过一定值时,我会触发操作。

Finally, when number of sent messages is greater than some value, I'll trigger an action.

对此有何想法?

感谢

推荐答案

YOC可以从听指望短信用户或设备的任何其他机应用发送的短信的ContentProvider 使用 ContentObserver

Yoc can count SMS Sent by user or any other Appliction on device from listening SMS ContentProvider by using ContentObserver

有关完整的例子,你如何注册 ContentObserver 短信的ContentProvider 的看到<一个href=\"http://stackoverflow.com/questions/9520277/practical-way-to-find-out-if-sms-has-been-sent/9659025#9659025\">this帖子我的答案

for complete example how you can register ContentObserver for SMS ContentProvider see in this post my answer

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

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