这是活动A的意图
Intent checkStatus = new Intent(Home.this, CheckOrder.class);
checkStatus.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(checkStatus);
我在活动B上调用此方法,但之后没有执行 完成了活动A,该方法仅在应用被终止后才能执行
@Override
public void onBackPressed() {
Boolean betul = Boolean.parseBoolean(Common.currentUser.getCurrentJob());
if (betul.equals(currentRequest)) {
//super.onBackPressed();
Toast.makeText(this, "You Job Are Still On Progress", Toast.LENGTH_SHORT).show();
} else {
Intent currentJob = new Intent(CheckOrder.this, Home.class);
startActivity(currentJob);
}
}