Arguments For And Against The Android Sqlite Usage
I am unsure if I should use or not Android SQLite database with my Android program. The program has several tables, and I have operations for quering, updating and displaying these
Solution 1:
The concept of a ContentProvider
abstracts away from the actual technique used to persist your data. It allows you to nicely separate the implementation of your data source and the visualization of this data. In this respect, I don't think that easiness of implementation is a good argument for or against SQLite. If you use Cursors
, you probably will use a ContentProvider
anyway.
If you perform a lot of (complext) queries, the query performance might be an argument in favor of SQLite since this is what is is built for. Moreover, it seems much easier to debug an SQL database than a flat file.
Post a Comment for "Arguments For And Against The Android Sqlite Usage"