Any fragment can call getActivity() to find the activity that hosts it. In our case,
the only activity that will possibly host this fragment is
StaticFragmentsDemoActivity, so we can cast the result of getActivity() to
StaticFragmentsDemoActivity, so that we can call methods on our activity