How can I monitor another application's database for changes?

前端 未结 4 2068
北荒
北荒 2021-02-19 10:35

I\'d like to monitor changes to another applications SQLite database. Since the Android doesn\'t allow me to access another application\'s internal data, I need a root applicati

4条回答
  •  我在风中等你
    2021-02-19 11:38

    One option would be to encapsulate your database with a content provider, and then the other application can subscribe for changes in the tables/URIs with the ContentObserver class

提交回复
热议问题