@@ -0,0 +1,596 @@
+package cat.ereza.customactivityoncrash.activity;%0A%0Aimport android.app.Activity;%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0A%0Aimport cat.ereza.customactivityoncrash.CustomActivityOnCrash;%0A%0A/**%0A * Created by zhy on 15/8/4.%0A */%0Apublic class ClearStack extends Activity%0A%7B%0A%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState)%0A    %7B%0A        super.onCreate(savedInstanceState);%0A%0A        Intent intent = getIntent().getParcelableExtra(CustomActivityOnCrash.KEY_CURRENT_INTENT);%0A        startActivity(intent);%0A        finish();%0A        Runtime.getRuntime().exit(0);%0A    %7D%0A%7D%0A

add clear stack function