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:
DialogFragment, as a Fragment, is always attached to activity. Hence, you do not need to call
getCallingPackage. Instead, from within your dialog fragment, just call