Android实现不同Active页面间的跳转

Android实现不同Active页面间的跳转
             Intent intent = new Intent();   
             intent.setClass(ErrorPageActive.this, LoginActive.class);   
             startActivity(intent);  

就这么简单,如果要把一个页面的参数带到另一个页面,则需要
 Bundle bundle = new Bundle();   
 bundle.putString("USERNAME", et_username.getText().toString());   
intent.putExtras(bundle);

通过以上三行代码现实,带参数跳转。

你可能感兴趣的:(Android实现不同Active页面间的跳转)