在ActionBarActivity中不使用 actionBar=getActionBar()获取活动条,而是使用 actionBar=getSupportActionBar()获取。 使用前者得到的是null