I m new programmer of Android Studio, I Just wanna know How to Print a string in a textview when the string is taken from previous activity by Bundle. I Want to take value from one activity and show it to another activity through TextView. The Code I Use was:
public void imagebtn10(View view) {
Intent StartNewActivity = new Intent(this, FinalPage.class);
String code="Easy";
Bundle bundle = new Bundle();
bundle.putString("stuff", code);
StartNewActivity.putExtras(bundle);
startActivity(StartNewActivity);
overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
}
AND THIS IS MY FINAL ACTIVITY
Bundle bundle = getIntent().getExtras();
String stuff = bundle.getString(“stuff”);
But Now I Want to show the String "stuff" in Textview So, Can Anyone tell How is it Possible??