Change to ActionBarActivity and use ActionBarCompat library project.