how to decide between direct database access and content provider?

前端 未结 3 1208
时光取名叫无心
时光取名叫无心 2020-12-29 08:15

I am writing an application that consists of business logic and UI parts. There is quite big amount of data to be stored and accessed/modified by both BL and UI. In most of

3条回答
  •  醉话见心
    2020-12-29 08:27

    IMO: Single APK == direct access through a persistence layer. Multple APKs (either your own or wanting to provide access to the data to others' apps) == Content Provider by simple necessity.

提交回复
热议问题