Within my dialog fragment, I am looking to display the name of the activity from which the dialog fragment was created.
I have tried the following:
getActivity().getCallingPackage().getClass().getSimpleName();
But this throws a null point exception on getClass().
Any idea of how I could the class name the dialog fragment was created from?