Android: TabActivity, Creating Menu
Posted
by Waqas
on Stack Overflow
See other posts from Stack Overflow
or by Waqas
Published on 2010-05-05T09:23:40Z
Indexed on
2010/05/05
9:28 UTC
Read the original article
Hit count: 335
android
Hi, i have created 3 tabs using the TabActivity. The class declaration is like this.
public class ABTM extends TabActivity {
........ some code ..........
}
now i want to create a Menu with three menu items. but the problem is that the
**@Override public boolean OnCreateOptionsMenu(Menu menu){
}**
gives error. It says that i should remove the @Override. When i remove the @Override the error is gone and the application runs fine but pressing the menu button does nothing.
What am i doing wrong here?
© Stack Overflow or respective owner