title: How to make app wait and then start activity or go back?
body: <p>I want my activity to show a screen for 3 seconds, then go back to previous screen. But when i use </p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.welcome_layout);
          TextView tvResult = (TextView)findViewById(R.id.textView1)
          Thread.sleep(3000);
              Intent i = new Intent(this,myActivity.class);
              startActivity(i);
  </code></pre>
  
  <p>But unfortunately, this does not work. This doesent show the activity waits 3 seconds and goes back. However, i want it to show its contents before going back. How can i do it ?</p>