getActionBar() returns Null (AppCompat-v7 21)

You need to call getSupportActionBar() on an ActionBarActivity. Do not call getActionBar() — that is not available on older devices, and for the new r21 edition of appcompat-v7, I would expect it to return null all the time, as the new ActionBarActivity disables and replaces the system action bar.

Leave a Comment