The getActionBar method returns null
This question already has an answer here:
For AppCompat v21:
All of your Activities must extend from ActionBarActivity
You then use getSupportActionBar() to retrieve the Action Bar.
链接地址: http://www.djcxy.com/p/78918.html上一篇: 我如何在偏好片段中创建登录表单
下一篇: getActionBar方法返回null