问题 I'm making an authenticator following the tutorial: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ The login Activity requires to extend AccountAuthenticatorActivity , the issue starts here: AccountAuthenticatorActivity extends the regular Activity and not AppCompatActivity . Using the regular Activity in AppCompat results in a Activity without ActionBar . I want to use AccountAuthenticatorActivity AND having an ActionBar . 回答1: The key is AppCompatDelegate , my code