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);
通過以上三行代碼現實,帶參數跳轉。
posted on 2009-04-13 00:40
有貓相伴的日子 閱讀(4207)
評論(1) 編輯 收藏 所屬分類:
Android