Back to project page SNISI-droid.
The source code is released under:
Apache License
If you think the Android project SNISI-droid 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.yeleman.snisidroid; // w w w.j a v a 2 s. c o m import com.orm.SugarApp; import com.orm.SugarContext; import android.util.Log; public class SNISIApp extends SugarApp { private static final String TAG = Constants.getLogTag("SNISIApp"); @Override public void onCreate() { super.onCreate(); Log.i(TAG, "Init Database"); Log.d("Sugar", "DB init"); SugarContext.init(this); Log.d("Sugar", "DB inited"); Log.i(TAG, "DB inited"); ReportData x = ReportData.findById(ReportData.class, 1); } @Override public void onTerminate() { SugarContext.terminate(); super.onTerminate(); } }