Back to project page field-data-app.
The source code is released under:
MIT License
If you think the Android project field-data-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 nz.cri.gns.springs.fragments; //w ww. j a v a2 s .c o m import nz.cri.gns.springs.db.SpringsDbHelper; import android.support.v4.app.DialogFragment; import com.j256.ormlite.android.apptools.OpenHelperManager; public class SpringsDialogFragment extends DialogFragment { protected SpringsDbHelper databaseHelper = null; @Override public void onDestroy() { super.onDestroy(); if (databaseHelper != null) { OpenHelperManager.releaseHelper(); databaseHelper = null; } } protected SpringsDbHelper getHelper() { if (databaseHelper == null) { databaseHelper = OpenHelperManager.getHelper(this.getActivity(), SpringsDbHelper.class); } return databaseHelper; } }