You will have to create and start a new activity on the click event of the menu option. In your code, you will have something like this
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.my_menu, menu);
return true;
}
The above code will inflate the menu XML file. Now, to take some action when an menu option is clicked, you use this code:
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.settings:
//start your activity here
return true;
default:
return super.onOptionsItemSelected(item);
}
}