I\'m trying to change the activity title from a fragment (in this case, it\'s an android.support.v4.app.Fragment). To this end, I save the activity in an attrib
Nowadays you can call requiredActivity() too that return FragmentActivityobject and if fragment doesn't come from an Activity, method throws a IllegalStateException