Calling getActionBar
returns null
. This has been frequently reported so I've made sure to include the solutions others have used: My minSdkVersion=11
, I do have a titlebar, and I'm calling getActionBar
after setContentView
. Also, my activity is not a child activity.
setContentView(R.layout.main);
// experiment with the ActionBar
ActionBar actionBar = getActionBar();
actionBar.hide();
Device is a Samsung Galaxy Tab 10.1 running Android 3.2
Thanks in advance for any ideas or suggestions!
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…