I have been able to create my navigation drawer following the example from AndroidDevelopers. I have to put this navigation drawer in all the activities, and in all of them, it will be exactly the same.
That's why I have thought about abstracting this part of the activity and setting a method such as showNavigationDrawer() in a different class, that would show all the navigation drawer. I don't know how to do this. Should I extend Activity in this new class or should I enter into parameters the activity and the context?
Thank you very much.