I want to write an Android application which has an SQLite database.
I have seen this question, but it (as well as the answer) is 7 years old, which has also been pointed by CommonsWare in a comment, in which they have also suggested to use this library. But the comment is also from 2013. The last commit in the library is also in Dec. 2014.
On the other hand, in this official guide, they are saying that the recommended method for creating an SQLite database is to subclass SQLiteOpenHelper
, from which one can infer that Google is now recommending the use of native Android API to create and work with databases.
So my question is what way should I follow? That is, now as of 2016, what is the recommended way of creating and working with and shipping an SQLite database in an Android application?
Aucun commentaire:
Enregistrer un commentaire