I have a fragment in an activity that I am using as a navigation drawer. It contains buttons that when clicked start new activities (startActivity from a fragment simply ca
You should use getActivity() method in order to finish the activity from the fragment.
getActivity().finish();