New Intent doesn't open on button click
<blockquote>
  <p>Blockquote</p>
</blockquote>

<p>I try to change the display by simply clicking the button. I guess I should use Intent for doing this but no any effect, please help me :(
here is my code:</p>

<p>FYP.JAVA</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    final Button ProfileTemplate = (Button)findViewById(R.id.ProfileTemplate);
    ProfileTemplate.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            Intent mIntent = new Intent(FYP.this, ProfileTemplate.class);
            startActivity(mIntent);
            finish();
        }
    });



public class ProfileTemplate extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.profiletemplate);
    }
}
</code></pre>
