开发者

Which is better way to communicate with database in Android and Why?

开发者 https://www.devze.com 2023-01-30 19:10 出处:网络
As of now , I know 2 methods to interact with database , using openOrCreateDatabase() or extending SQLiteOpenH开发者_如何学Pythonelper class !

As of now , I know 2 methods to interact with database ,

using openOrCreateDatabase() or extending SQLiteOpenH开发者_如何学Pythonelper class !

Which is better to use and why ?


I can remember using SQLiteOpenHelper class in Google's beginner tutorial Notepad
So this seems to be the "recommended" way to the database..
Some opinions: Link, Link
Also take a look at the api to compare eachother:
SQLiteOpenHelper, openOrCreateDatabase


I've used openOrCreateDatabase() method because it seems simple and easy to me.

0

精彩评论

暂无评论...
验证码 换一张
取 消