我有 3 个窗口(活动)。window1 按钮带有旧图片,window2 选项改变window1 的旧图片,window3 预览图片。
在window3中进行选择时,我想跳过window2 + window3并跳回window1。我们怎么能做到这一点?
窗口1:
Intent MyRotationsAddPicture2 = new Intent(getBaseContext(), MyRotationsAddPicture.class);
MyRotationsAddPicture2.putExtra("Title", "r2.jpg");
startActivityForResult(MyRotationsAddPicture2,0);
窗口 2 / 窗口 3 ?
String whichImage = getIntent().getExtras().getString("Title");
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == 0) {
finish();
startActivity(getIntent());
}
}
setResult(0);
this.finish();
System.exit(0);