0

Basically,I want to restart the activity ,each time the textview will display a different text that i have stored in a vector.

1 Answers1

0

You could use this:

public void recreate();

Note: Cause the Activity to be recreated with a new instance. This results in essentially the same flow as when the Activity is created due to a configuration change -- the current instance will go through its lifecycle to onDestroy() and a new instance then created after it.

Daniel Conde Marin
  • 7,588
  • 4
  • 35
  • 44