vetalitet vetalitet - 1 year ago 127
Android Question

onCreateOptionsMenu is not called

I have simple application.

Here is

public class MyActivity extends Activity {
* Called when the activity is first created.
public void onCreate(Bundle savedInstanceState) {

public boolean onCreateOptionsMenu(Menu menu) {
return super.onCreateOptionsMenu(menu);

And I don't really understand why method
is called on phone and is not called on tablet?

Answer Source

there is concept called ActionBar from API 11, so option menu is not use for tablet version.

check for ActionBar tutorial.. see below link