Step 1: Add any functions you want to call into the interface (EventListener).
Step 2: Implement those functions in your MainActivity.
Step 3: Create the listener in your Fragment and attach it to the Activity.
Step 4: Call any functions on the listener.
how about call a function in the parent Frament from within a Activity.
Thanks :((