Android实现界面跳转
2013-01-27 17:04
337 查看
实现界面跳转的代码如下:
第一种:
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();
第一种:
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();
相关文章推荐
- android中利用代理模式简单实现界面之间的跳转与传值
- android——框架的实现系列(界面跳转的控制)
- Android九宫格界面实现点击每个格点击跳转界面
- Android关于界面一定时间无操作自动跳转到指定界面的实现
- android 实现延迟1秒界面发生跳转
- Android关于界面一定时间无操作自动跳转到指定界面的实现
- Android实现intent跳转界面传递数据(1)
- Android 欢迎界面四个跳转页(Fragment实现渐变渲染)。
- 在游戏中实现跳转到webView界面(Android实现)
- Android程序中实现按钮按下后的界面跳转
- Android开发(25)--framebyframe帧动画并实现启动界面到主界面的跳转
- Android实现两个Activity界面的跳转并传值
- 23、Android开发基础之通过隐式意图来实现界面的跳转
- Android 界面跳转问题:开发实现连续跳转几个界面后在最后一个界面完美跳回最初的界面
- android中如何实现进入一个界面不做任何动作过10秒钟自动跳转到其他activity?
- Android——实现欢迎界面的自动跳转(转)
- Android实现欢迎界面的自动跳转
- android中如何实现进入一个界面不做任何动作过10秒钟(有操作从新计时)自动跳转到待机activity,点击待机界面回到原来的界面
- Android中使用Intent实现界面跳转
- Android开发实现连续跳转几个界面后在最后一个界面完美跳回最初的界面