作者:giee旗舰店_姬儿皮衣_256 | 来源:互联网 | 2023-09-18 18:34
初学,这段代码也是在网上找的
Intent intentSimple = new Intent();
intentSimple.setClass(Layout_1.this,Layout_2.class);
Bundle bundleSimple = new Bundle();
bundleSimple.putString("username", username);
bundleSimple.putString("password",password);
intentSimple.putExtras(bundleSimple);
startActivity(intentSimple);
请问为什么出现错误?