public void onResume() { super.onResume(); Log.d(TAG, "OnResume called"); if (Global.isForceExiting(mContext)) { Log.d(TAG, "force exiting"); finish(); } refreshDisplay(); if (orderInfo == null) { Intent intent = new Intent(mContext, LoginActivity.class); mContext.startActivity(intent); this.finish(); } }