title: How do I delay text from being displayed in textView - using input from the user
body: <p>I am trying to make a simple application where every so many seconds the text being displayed is changed to another, the input is given by the user before the onClick and set to different strings.  I can't find a way to have the different strings displayed at different times - and is it even possible to use one single textView to display different text at different times, never at the same time....</p>
  
  <p>Any help is appreciated. Thanks.</p>
  
  <p>Andrew</p>
  
  <p>This is my code so far...</p>
  
  <pre><code>public class ThunderActivity extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
    //when the game button is pressed
      final Button button1 = (Button) findViewById(R.id.button1);
      button1.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
  
              //Enter names
              //player one
              final EditText player1 = (EditText) findViewById(R.id.editText1);
              final String player = player1.getText().toString().trim();
              //player 2
              final EditText player2 = (EditText) findViewById(R.id.editText2);
              final String player11 = player2.getText().toString().trim();
              //player 3
              final EditText player3 = (EditText) findViewById(R.id.editText3);
              final String player111 = player3.getText().toString().trim();
  
              //switches to second screen - the play xml file
              setContentView(R.layout.main2);
  
              //starts the song
              MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.drawable.thunderstruck);
              mp.start();
  
              //shuffle names and display them
  
              //displays name - testing purposes
              v = (TextView) findViewById(R.id.textView1);
              String text = player;
              ((TextView) v).setText(text);
              //v = (TextView) findViewById(R.id.textView2);
              //String text2 = player11;
              //((TextView) v).setText(text2);    
          }           
      });           
  }   
  </code></pre>
  
  <p>}</p>