开发者

Database helper class

Can you tell me why we are usin开发者_StackOverflowg Database Helper class in Android? What is the function of this class?


Because it...helps?

http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html :

A helper class to manage database creation and version management.

I personally find it's really handy and it makes the SQLite DB handling in my application very easy. I was surprised how simple it is to implement DB handling.

I also enjoy the fact that I just use the instance of my helper class and getWriteableDatabase() or getReadableDatabase() depending on what I need and it just works.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜