Displaying Android SQLite Data

I'm a bit new to android development and I'm a little confused about content providers

. content providers

are used to share your data with another application, but is it right to use it to retrieve your data from SQLite database

and display it, for example listView

? What's the best solution for displaying data from db? Thanks to

+3


source to share


2 answers


Yes, it is legal to use ContentProvider to fetch data from SQLite database while it works fine with SQLiteOpenHelper and just uses it.



It all depends on the needs of your application, me individually for my own application, if there is no need for data sharing, will not use a content provider.

0


source


if you don't need to share the database with your application, there is no need to use a content provider



0


source







All Articles