public boolean onOPtionsItemSelected(MenuItem)item){
Intent intent;
int index;
switch(item。getItemId()){
case R。id。action_add:
intent = new Intent(this,AddActivity。class);
startActivity(intent);
return true;
return super。onOptionsItemSelected(item);
Android的生日管家管理软件的设计+源代码(3):http://www.youerw.com/jisuanji/lunwen_199638.html