Android 2.3.6 support library v7 option menu is missing -


i'm using samsung gt-s5570i a busy cat http://jawal123.com/mobilesimages/bigimages/250/-471741899_27492.jpg can see screen small.
os android 2.3.6. want create app action bar , menu (the 3 dots on right side on bar) using support library v7 i'll have backward compatibility .

my prblem is, action bar shown option menu missing, tried run same code on api 17 , worked.

i dont know whats problem, resolution? or old api?

thanks.

public class mainactivity extends actionbaractivity {     actionbar ab;      @override     protected void oncreate(bundle savedinstancestate)     {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);           ab = getsupportactionbar();             ab.settitle("test");     }      @override     public boolean oncreateoptionsmenu(menu menu)     {         menu.add("normal item");         return true; } 

i suspect device has menu button. press menu button access overflow. standard behavior api level 11+ action bar, , expect action bar backport behave same.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -