title: unresolved onOptionsItemSelected android
body: <p>I'm getting an:</p>
  <pre><code>Cannot resolved method &quot;onOptionsItemSelected(android.view.MenuItem(View)&quot; 
  </code></pre>
  <p>when I try to return <code>super.onOptionsItemSelected(item);</code></p>
  <p>Here is what I have:</p>
  <pre><code>public class customView extends View {
      @Override
          public boolean onOptionsItemSelected(MenuItem item){
      
              switch (item.getItemId())
              {
                  case R.id.action_undo:
                      lines.remove(lines.size()-1);
                      return true;
                  default:
                      return super.onOptionsItemSelected(item);
              }
  }
  </code></pre>
  <p>Is there anything I am doing wrong? When I remove that line then I get</p>
  <pre><code>Method does not override method from its superclass 
  </code></pre>
  <p>error</p>