Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
So now we’re going to create our own helper class to help us open our Yamba database (see Example 9-1). We’ll call the class DbHelper. It will create the database file if one doesn’t already exist, or it will upgrade the user’s database if the schema has changed between versions.
Like many other classes in Android, we usually start by subclassing a framework class, in this case SQLiteOpenHelper. We then need to implement the class’s constructor, as well as onCreate() and onUpgrade() methods.