Skip to content Skip to sidebar Skip to footer

Actionbar.sethomebuttonenabled Gives Error In Fragment As Null Pointer Exception

I am trying to create swipeable tabs in fragment.So add tab in viewpager.But it gives me error when actionBar.setHomeButtonEnabled(false) as null pointer exception unable instastai

Solution 1:

In your Android manifest file under activity add

android:theme="@android:style/Theme.Holo"

I wanted to add this as a comment, but I couldn't due to the number of reputations.

Post a Comment for "Actionbar.sethomebuttonenabled Gives Error In Fragment As Null Pointer Exception"