Solve action bar null pointer exception ActionBarImplICS notitle


When we using actionbar appcompat, we should enable window title applications. But, it’s ugly to have window title in our apps. Here is the solution :

Update your Android SupportLibrary and use

1
2
3
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_home);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.