Mario Drouga
Lurker
I know java basics but, I don't know what I'm suppose to do here:
@override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case R.id.action_search:
openSearch();
return true;
case R.id.action_settings:
openSettings();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
I want to display strings when I press on the actionbar buttons, so what am I going to have to do?
@override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case R.id.action_search:
openSearch();
return true;
case R.id.action_settings:
openSettings();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
I want to display strings when I press on the actionbar buttons, so what am I going to have to do?