开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜