出错代码
Intent intent = new Intent(mActivity, MainActivity.class);
intent.putExtra(Constants.MAIN_TYPE,
RechargeFragment.class.getSimpleName());
mActivity.startActivity(intent);
//发现根本跳不过去
正确代码
Intent intent = new Intent(mActivity, MainActivity.class);
intent.putExtra(Constants.MAIN_TYPE,
RechargeFragment.class.getSimpleName());
mActivity.startActivity(intent);
mActivity.finish();//其实已经跳过去了,只是当前Activity没有finish