Which is better way to communicate with database in Android and Why?
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.
精彩评论