activity顯示意圖跳轉


activity顯示意圖跳轉兩種方式:

方式1:

Intent intent = new Intent();
//參數二:所要跳轉的頁面的字節碼文件名
intent.setClass(this, SecordActivity.class);
this.startActivity(intent);


方式2:

Intent intent=new Intent(this,SecordActivity.class);
startActivity(intent);



Demo下載地址:http://download.csdn.net/detail/k2514091675/9792103

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章