Created
November 24, 2015 14:48
-
-
Save Aiur3908/785039a19b65f4531923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main2); | |
//取得上一頁傳過來的 Key為Name的 Value | |
String Name = getIntent().getStringExtra("Name"); | |
//取得上一頁傳過來的 Key為Year的 Value , 若是沒值則為0 | |
int Year = getIntent().getIntExtra("Year" , 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment