Added code to include an ActionBar object and protected it against
being run in Android versions Gingerbread and before.