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; // ww w . j a v a 2 s. com import com.j256.ormlite.android.apptools.OpenHelperManager; import nz.cri.gns.springs.db.SpringsDbHelper; import android.support.v4.app.Fragment; public class SpringsFragment extends Fragment { private 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; } }