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
Very simple...
1- just grab activity by getActivity() in the fragment
getActivity()
2- then call finish();
finish();
So just getActivity().finish(); will finish the parent activity.
getActivity().finish();