实现界面跳转的代码如下:
第一种:
Intent mIntent = new Intent();
mIntent.setClassName(mcureeActivity.this, nextActivity.class);
startActivity(mIntent)
第二种:
Intent mIntent = new Intent();
mIntent.setClassName("com.android.test", "com.android.test.next");
startActivity(mIntent);
第三种:设置可以通过setResult()返回值给nextActivity
Intent mIntent = new Intent(mcureeActivity.this, nextActivity.class);
setResult(NUMBER,mIntent);
mcureeActivity.this.finish();
时间: 2024-12-29 16:05:54