Back to project page mobilib.
The source code is released under:
MIT License
If you think the Android project mobilib 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.datdo.mobilib.api; /*from w ww . j a va2s . c o m*/ import com.datdo.mobilib.util.MblUtils; import android.database.sqlite.SQLiteDatabase; abstract class DBBase { private static SQLiteDatabase sDb; protected static SQLiteDatabase getDatabase() { if (sDb == null) { sDb = DBHelper.getInstance(MblUtils.getCurrentContext()).getWritableDatabase(); } return sDb; } }