传递方:
Intent intent = new Intent();
Bundle bundle = new Bundle();
bundle.putString("XXX", XXX);
intent.setClass(ActivityMain.this,XXX.class);
intent.putExtras(bundle);
startActivity(intent);
接收方:
Bundle bundle = new Bundle();
bundle = this.getIntent().getExtras();
double XXX= bundle.getString("XXX");