任何侦听器在Android中删除短信 [英] any listener for delete sms in android

查看:282
本文介绍了任何侦听器在Android中删除短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用我想获得SMS信息,同时从收件箱中删除用户。因为这是没有任何听众或别的吗?你的任何一个PLZ帮助我。有没有aletrnate ....
ThanQ。

in my application i would like to get sms information while is deleting from inbox by user. For this is there any listener or else? any one of you plz help me. is there any aletrnate.... ThanQ.

推荐答案

您将需要使用BroadcastReciever来监听android.provider.Telephony.SMS_RECEIVED的意图。 此页面有如何得到它建立了一个很好的例子。

You will need to use a BroadcastReciever to listen for the "android.provider.Telephony.SMS_RECEIVED" intent. This page has a nice example of how to get it set up.

编辑:
我不认为(但我没有绝对的把握)有什么办法当消息即将被删除得到通知。为什么你的应用程序需要访问它们删除用户的短信?

I don't think(But I am not absolutely sure) there is any way to get notified when a message is about to get deleted. Why does your application need access to the users SMS messages that they are deleting?

这篇关于任何侦听器在Android中删除短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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