ActivityGroup

ActivityGroup:

	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		super.onActivityResult(requestCode, resultCode, data);
		if (requestCode == 1) {
			// PageDetailEditActivity activit = (PageDetailEditActivity)
			// getLocalActivityManager().getCurrentActivity();
			// String str = activit.handleActivityResult();
			String str2 = this.getIntent().getStringExtra("FFFF");
			Toast.makeText(this, str2, Toast.LENGTH_LONG).show();
			linearLayoutPageDetail.removeAllViews();
			linearLayoutPageDetail.setVisibility(View.GONE);
			RelativeLayout relativeLayoutPageListTileShow = (RelativeLayout) findViewById(R.id.relativeLayoutPageListTileShow);
			relativeLayoutPageListTileShow.setVisibility(View.VISIBLE);
		}

	}

子activity:

Intent intent = getParent().getIntent();
			intent.putExtra("FFFF", "bbb");
			getParent().startActivityForResult(intent, 1);


你可能感兴趣的:(ActivityGroup)