Intent intent=new Intent(this,ReceiveOtherActivity.class); 组件间通信的载体。翻译:意图
Bundle mBundle = new Bundle(); 翻译:一捆,一批
mBundle.putSerializable(EXTRA_MESSAGE,jg_receive);
intent.putExtras(mBundle);传递参数
intent.putExtra(EXTRA_FLAG,isCheck);传递参数
startActivity(intent);跳转
接收:oncreate中:
_receive = (JG_Receive)getIntent().getSerializableExtra(ReceiveActivity.EXTRA_MESSAGE);
isCheckBarcode=getIntent().getBooleanExtra(ReceiveActivity.EXTRA_FLAG,false);