Fix Action bar not showing NullPointerException error in android

How to solve action bar not displaying into android application error.

Action bar is a part of android activity themes and now most of android developers are facing the issue that action bar dose not shows in their newly creating android projects so they cannot modify action bar. If they trying to modify action bar without showing then it will show NullPointerException  error that is pretty much hard to solve. So in this tutorial we are simply showing the way to display action bar into your current default project, So here is the complete step by step tutorial for Fix Action bar not showing NullPointerException error in android.

How to Fix Action bar not showing NullPointerException error in android.

1. Locate and Open your android project’s AndroidManifest.xml file.

2. Find android:theme=”@style/AppTheme”  or any other pre-defined theme.

3. Replace it with android:theme=”@android:style/Theme.Holo.Light” .

4. Now set android:minSdkVersion=”11″ .Because action bar requires minimum api level 11 and dose not work below 11 api level.

Here you go now run your project into emulator or your mobile device and you will see that action bar starts showing up on your project.

Screenshot before changing theme style:

without-action-bar

Screenshot after changing theme style:

Fix Action bar not showing NullPointerException error in android