I am having difficulties trying to remove the back/home button from the action bar.
getActionBar().setDisplayShowHomeEnabled(false); //disable back button
In case where you have used toolbar as Action bar:-
Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar);
Use the below code to hide navigation button:-
toolbar.setNavigationIcon(null);