Clear Backstack / History Navigationdrawer Item Selected
In the MainActivity I have the NavigationDrawer which looks like this: private void displayView(int position) { ListFragment listFragment = null; switch (position) {
Solution 1:
Use of android.support.v4.content.IntentCompat like this:
Intent intent = IntentCompat.makeRestartActivityTask(newComponentName(DrawerActivity.this, Tracksfragment.class));
startActivity(intent);
Post a Comment for "Clear Backstack / History Navigationdrawer Item Selected"