How to pass the intent to open another activity with button?
You have to create an onclicklistener on the button write something like:
button.setOnclickListener(new View.OnClickListener()
{
Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class);
CurrentActivity.this.startActivity(myIntent);
}
Create new activity in manifest.
Have a look at this tutorial http://www.warriorpoint.com/blog/2009/05/24/android-how-to-switch-between-activities/
精彩评论