Back to project page student_travel_app.
The source code is released under:
Apache License
If you think the Android project student_travel_app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.piasy.simpletravel.dao; /*w w w . j av a 2 s . co m*/ import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class DBManager { private DBHelper helper; private SQLiteDatabase database; public DBManager(Context context) { helper = new DBHelper(context); database = helper.getWritableDatabase(); } public boolean dbIsOpen() { return database.isOpen(); } public void openDB() { database = helper.getWritableDatabase(); } public void closeDB() { database.close(); } }