Instead of having a FragmentAlerDialog
activity, you could define somewhere an interface (by somewhere I mean either a public static interface
in DialogFragment class, or a separate public interface
Java file), and any Activity
that wishes to display the dialog could implement this interface.
One common practice that I use is to have a root Activity
for all my project activities. Make that root activity implement that interface and then you can display that DialogFragment
from anywhere.