Best practices for joining tables and notifying ContentObservers in Android ContentProvider

前端 未结 1 1732
后悔当初
后悔当初 2021-02-02 16:04

I have a ContentProvider which handles all the data insertion and retrieval related to my application, I\'m following the pattern suggested by Virgil Dobjanschi on Google I/O. I

相关标签:
1条回答
  • 2021-02-02 16:32

    Checkout ContactsProvider2, in it they set the notification uri to the AUTHORITY_URI which appears to be a catch all for the other URIs in the provider. I had the same probem and I have tried this myself for a provider with multiple tables and joins on those tables, and it works fine.

    0 讨论(0)
提交回复
热议问题