navigation from one screen to other screen in android
<pre><code>public class Check extends Activity implements OnClickListener {
    //private check2 check2;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button usemirror = (Button)findViewById(R.id.widget28);
        usemirror.setOnClickListener(this);

    }
    public void onClick(View view){


        Intent mi = new Intent(this , check2.class);
        startActivity(mi);
}
}

package com.exaple;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class check2 extends Activity {
    public void onCreate(Bundle savedInstanceState) {
       // super.onCreate(savedInstanceState);
       // setContentView(R.layout.main);

        Toast.makeText(
                this,
                "Welcome to second page", Toast.LENGTH_LONG).show();
        finish();  

    }

}
</code></pre>

<p>ANDROID manifest.xml</p>

<pre><code>&lt;activity android:name=".check2" &gt;
</code></pre>

<p>I am doing this but doesn't show me the message written in my other activities</p>
