Can you explain me why there is a new activity class?

It works very nicely, it's just that I don't understand the need for a activity?
Wouldn't a FragmentDialog be enough for it?