安卓Build使用与传参
**
Build用法
Intent intent = new Intent(context,GoTo.class);
Bundle bundle = new Bundle();
bundle.putBoolean(“boolean”, false);
bundle.putString(“string”, PrisonerId);
intent.putExtras(bundle);
context.startActivity(intent);
接受
Bundle bundle = getIntent().getExtras();
String str = bundle.getString(“string”);
Boolean bool = bundle.getString(“boolean”);