Sms ContentObserver onChange() fires multiple times

后端 未结 4 1800
春和景丽
春和景丽 2020-12-09 13:36

I know this question has been asked multiple times, but nobody has been able to come up with a working answer from what I have seen.

Im working on an app to intercep

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 13:41

    If the two are identical:
    store each message recv'd
    compare it to previous messages recv'd
    if not found, process
    if found, discard the message

    The life of the messages stored should be infinitesimal, a little circular buffer of 5 messages should be fine.

提交回复
热议问题