@Override
protected void onCreate(Bundle savedInstanceState) {
Log.i("CampusApp", "Event: onCreate");
+
+ if(CampusAppContext.DEBUG) {
+ final Thread.UncaughtExceptionHandler systemExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
+ final CampusAppExceptionHandler oExceptionHandler = new CampusAppExceptionHandler();
+ Thread.setDefaultUncaughtExceptionHandler (new Thread.UncaughtExceptionHandler() {
+ @Override
+ public void uncaughtException(Thread thread, Throwable e) {
+ oExceptionHandler.handleUncaughtException(thread, e);
+ //systemExceptionHandler.uncaughtException(thread, e);
+ System.exit(1);
+ }
+ });
+ }
+
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_campus_app);
AppContext = new CampusAppContext(this, R.id.fragment_container, R.id.nav_view);
else
AppContext.setMainActivity(this);
-
+
super.onResume();
Log.i("CampusApp", "onResume event");
AppContext.getNfcCardListener().resumeForefrontDispatcher();