Application is starting even after closing
<p>This is my first activity and when I press the back button in the phone , the app closes, but the second activty is popping up even after it closes! may be because the thread is still running? but i tried destroying it but of no avail! any suggestions </p>

<pre><code>protected void onCreate(Bundle myclass) {
    super.onCreate(myclass);
    setContentView(R.layout.splash);
    timer = new Thread() {
        public void run() {
            try {
                sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            } 
            finally {
                Intent openStarting = new Intent("nik.tri.MENU");
                startActivity(openStarting);
            }
        }
    };
    timer.start();
}

@Override
protected void onPause() {
    super.onPause();
    timer.destroy(); // tried timer.stop() as well 
    finish();
}
</code></pre>

<p>}</p>
