Navigation drawer, handling the back button to go to previous fragments?
I'm using the built in navigation drawer to run my app. I can't quite figure out how to handle the back button. When it's pressed I want it to load the very first fragment again. Fragment1. So when the app launches you see Fragment1 launched. They can then click on Fragment 2-5 to go to other pages. Within all of these pages I want the back button to take the user back to Fragment1. The only place the user should be able to exit the app via the back button is Fragment1. SInce it's all handled by a FragmentActivity I tried messing with the backbutton there. I keep getting a force close error