0

I am try'g to create an Simple application in Android. In one of my module I have to call the options menu that appears underneath the screen, when I click the menu button in the Android emulator.

Since I have to invoke a new activity, when one of my menu items in option menu is tapped, I put @Override before the method onOptionsSelectedItem(MenuItem menuitem) in order to implement my own definition instead of calling the parent activity.

Once I put the annotation @Override before onOptionsSelectedItem(MenuItem menuitem) method, its showing the following error...(in compile time itself)

The method onOptionsitemSelected(MenuItem) of type SingleShooterRecordShots (MyClass) must override a superclass method....

JJD
  • 50,076
  • 60
  • 203
  • 339
Nandagopal T
  • 2,037
  • 9
  • 42
  • 54

1 Answers1

0

This (more general) question has the same answer: 'Must Override a Superclass Method' Errors after importing a project into Eclipse

Community
  • 1
  • 1
Nate Parsons
  • 14,431
  • 13
  • 51
  • 67