Null pointer exception with “setDisplayHomeAsUpEnabled(boolean)” [duplicate]
You have to set the supportActionBar: mToolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(mToolbar);
You have to set the supportActionBar: mToolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(mToolbar);