I followed the official Android documentation on adding the navigation drawer to my project which was very straight forward.
How can I switch to a new activity and keep the activity and keep the navigation drawer?
if (id == R.id.nav_camera) {
Intent intent = new Intent(getApplicationContext(), Account.class);
startActivity(intent);
} else if (id == R.id.nav_gallery) {
} else if (id == R.id.nav_slideshow) {
}
I added this code which brings me to the new activity but does obviously not have the navigation drawer.
What is the best practice for switching between activities and keeping the navigation drawer?
How can I switch to a new activity and keep the activity and keep the navigation drawer?
if (id == R.id.nav_camera) {
Intent intent = new Intent(getApplicationContext(), Account.class);
startActivity(intent);
} else if (id == R.id.nav_gallery) {
} else if (id == R.id.nav_slideshow) {
}
I added this code which brings me to the new activity but does obviously not have the navigation drawer.
What is the best practice for switching between activities and keeping the navigation drawer?