I have the first layout with a button and I would like to go to second layout.
This is my code:
butonSubmit.setOnClickListener(new View.OnClickListener(){
        @Override
        public void onClick(View v) {
            Intent i = new Intent(getApplicationContext(),Verificare.class);
            startActivity(i);
        }
    });
I created a second Java class Verificare and a layout verify that I designed something and I tried this in the second Java class:
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.verify);
}
I also added this:
<activity android:name=".Verificare" >
</activity>
to the AndroidManifest.
When I press the button the page doesn`t change. What is wrong ? Thanks in advance i am beginner in Android
 
     
     
     
    