I am using the below code to open another fragment from one fragment:
track nextFrag= new track();
login.this.getFragmentManager().beginTransaction()
.replace(R.id.content_frame, nextFrag, null)
.addToBackStack(null)
.commit();
Code works fine ( I can se ethe new fragment loaded) but the drawer keeps on highlighting the old one (as currently selected). How can I open a fragment and at the same time show it as currently selected in the drawer.