@Override public void onCreate() { super.onCreate(); boolean debugEnabled = getResources().getBoolean(R.bool.debug_mode); Mint.initAndStartSession( getApplicationContext(), getResources().getString(R.string.SPLUNK_MINT_KEY)); ParseCrashReporting.enable(getApplicationContext()); Parse.initialize( getApplicationContext(), SupplierConfig.PARSE_APP_ID, SupplierConfig.PARSE_CLIENT_ID); // For push notification ParseInstallation.getCurrentInstallation().saveInBackground(); VolleyRequestQueue.singleton.initRequestQueue(getApplicationContext()); MyLog.d(TAG, "SupplierApplication's currrent State is " + appCurrentState); MyLog.setDebugEnabled(debugEnabled); }
@Override public void onTerminate() { super.onTerminate(); DBHelper.getInstance(getApplicationContext()).dispose(); }