实现界面跳转的代码如下:

第一种:

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();

相关文章:

  • 2021-09-24
  • 2022-01-01
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-12-19
猜你喜欢
  • 2022-01-01
  • 2021-06-10
  • 2021-10-09
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案