I'm creating an application to which I've added a Botton Navigation View but I don't know if there is any way that it appears in all the Activity or if on the contrary I would have to specify it in each of them to appear, as well as adding all its functionality on each screen, since this last option I see a little cumbersome.
The other question is for the button Home of this bar, I have added a button that is home to return to the main Activity each time I pulse, in the way that I have done has been with an Intent that goes to that screen itself, but I do not know if there is another method:
bottomNavigation.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
switch (menuItem.getItemId()) {
case R.id.btnHome:
Intent intent = new Intent(MainActivity.this, MainActivity.class);
startActivity(intent);
break;