Best practices for SQLite DB and ContentProvider

后端 未结 5 1758
借酒劲吻你
借酒劲吻你 2021-01-29 22:42

My Android app is reading and writing to a local SQLite DB from a few different Activities and a Service. Pretty standard. But I\'m not happy with the way I\'ve got all the DB d

5条回答
  •  我在风中等你
    2021-01-29 22:58

    I don't know that I have an answer, other than I don't really like how this is handled, I find it very messy as well. I usually follow the pattern given in the notepad example that comes w/ the SDK.

    Due to this I am working on my own mini ORM framework, using annotation and managing all of this. So far things are working ok, but I haven't worked everything out yet.

提交回复
热议问题