Android - Querying the SMS ContentProvider?

前端 未结 2 1194
名媛妹妹
名媛妹妹 2020-12-04 11:58

I currently register a content observer on the following URI \"content://sms/\" to listen out for incoming and outgoing messages being sent.

This seems to work ok an

2条回答
  •  不知归路
    2020-12-04 12:09

    This was already discussed.

    To read SMS from the Content provider check: - android-1-5-reading-sms-messages

    Check this threads:

    • delete-sms-in-android-1-5
    • how-to-delete-sms-from-inbox-in-android-programmatically
    • can-we-delete-an-sms-in-android-before-it-reaches-the-inbox

    About your comment saying that you are deleting a whole thread instead of a single sms: Have you tried out this code?

提交回复
热议问题