getActionBar() returns null

前端 未结 24 1294
暗喜
暗喜 2020-11-22 13:31

I\'m having an odd problem. I am making an app with targetsdk 13.

In my main activity\'s onCreate method i call getActionBar() to setup my actionbar. T

24条回答
  •  死守一世寂寞
    2020-11-22 13:34

    I faced the above issue where getActionBar() method returns null. I was calling the getActionBar() after setting the setContentView() and still its returning a null.

    I resolved the issue by setting the min-sdk version in Android Manifest file that was missing initially.

提交回复
热议问题