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

http://developer.android.com/guide/topics/ui/actionbar.html


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -