It's an Android database question.

Asked 2 years ago, Updated 2 years ago, 25 views

Hi, everyone. Solution 1 | Uses low-level APIs using SQLiteOpenHelper and SQLiteDatabase. Room 2 | Use the content provider and cursor loader. I'm confident that room 1 will have a better performance advantage without knowing the rationale. Actually, it's hard to understand the concept of content provider.

android

2022-09-22 19:44

1 Answers

I think it's more about why we use it and what's the difference than performance.

Simply put, SQLite Database is used to store data from the applications that created the database, and Content Provider is used to share data between multiple applications (ex contacts, media files, etc.).

If it's data that you don't need to share with other applications, you might use SQLite Database.

The Android reference (content provider) is well translated into Korean.


2022-09-22 19:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.