android - onCreateOptionsMenu is not called -
i have simple application.
here myactivity.java
public class myactivity extends activity { /** * called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); } @override public boolean oncreateoptionsmenu(menu menu) { return super.oncreateoptionsmenu(menu); } } and don't understand why method oncreateoptionsmenu called on phone , not called on tablet?
there concept called actionbar api 11, option menu not use tablet version.
check actionbar tutorial.. see below link
Comments
Post a Comment