Android Development: Undefined Method -


hi i´m new android , eclipse. have following tutorial developer.android.com. right i´m in adding actionbar

right i´m @ part

@override public boolean onoptionsitemselected(menuitem item) {     // handle presses on action bar items     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 have received error opensearch() , opensettings(). said method opensettings() undefined type displaymessageactivity. shoud now? thanks

opensearch() , opensettings() methods author of tutorial created in order perform other operations. search code, there must somewhere declaration of methods, if author made them visible.

they should this:

public void opensearch() {     //do here. }  public void opensettings() {     //do here. } 

replacing //do here code implementation present in tutorial.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -