What is the best way to communicate with a database in Android and why?

At the moment, I know 2 methods for interacting with the database
using openOrCreateDatabase () or extending the SQLiteOpenHelper class!
What is better to use and why?

+3
source share
2 answers

I can remember using the SQLiteOpenHelper class in the Google Notepad Primer
so this is apparently "recommended" in the database.
Some opinions: Link , Link
Also take a look at the api to compare each other:
SQLiteOpenHelper , openOrCreateDatabase

+2
source

openOrCreateDatabase(), .

+1

Source: https://habr.com/ru/post/1779926/


All Articles