] Hi all,
I want to create a settings activity for my app, that uses Material Design.
From Android Studio, i select new -> Activity -> Settings activity.
When i try to open this activity, i get a nullpointer exception:
Attempt to invoke virtual method 'void android.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
I'm just try to run the boilerplate code. How can i fix this? Why dosen't android studio provide a sample working settings activity?