Android:用户打开短信应用程序或电话应用程序/未接来电列表时的通知
我希望当用户阅读以前未读的短信或打开未接来电列表时,我的 AppWidgetProvider(它是 BroadcastReceiver 的直接子类)收到通知。到目前为止,我发现似乎不可能将 Intent 传递到 BroadcastReceiver,因为打开(短信/电话)活动的操作不是广播操作。
是否有另一种方法可以让广播接收器知道何时读取了未读短信或打开了未读来电列表?
I want my AppWidgetProvider (which is a direct subclass of BroadcastReceiver) to be notified when the user reads a previously unread sms or when he opens the list of missed calls. So far I gound out that it seems to be impossible to get a Intent delivered to the BroadcastReceiver as the actions that open the (sms/phone) activities are not broadcast actions.
Is there another way to let a BroadcastReceiver know when an unread sms is read or the missed calls list is opened?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:不,抱歉。
“未读短信已读取”和“未读来电列表已打开”都不是操作系统的一部分。它们是应用程序的功能。这些应用程序的不同实现可以在不同的设备上找到。没有人有任何类型的这种性质的广播,AFAIK,主要是因为没有人有任何类型的授权和支持的 API 供开发人员使用。
Short answer: no, sorry.
Neither "unread sms is read" nor "missed calls list is opened" are part of the operating system. They are features of applications. Different implementations of those applications are found on different devices. None have any sort of broadcasts of this nature, AFAIK, mostly because none have any sort of authorized and supported API for developers to use.