GetActionBar() Works Fine On Devices/simulator But Returns Null In Testcases
Application supports minSdk=14 and have ActionBar on every Activity. Application works fine since a long time and shows ActionBar on every Activity. Now I am writing Android JUnit
Solution 1:
getActionBar() is probably returning null here. The title needs to be visible, make sure you don't have things like this there:
android:theme="@android:style/Theme.Black.NoTitleBar
This would cause an error in getActionBar() being null.
Post a Comment for "GetActionBar() Works Fine On Devices/simulator But Returns Null In Testcases"