• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps I Need Help

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?
 
You just do that or whatever you want in the openSearch() and openSearch() methods that you define yourself.
 
Back
Top Bottom