I am trying to call a method in an activty from a Fragment screen.
I have a method called myMethod() which is in an activity called MyActivity; I have a fragment called Screen1Fragment.
I would like to call MyActivity.myMethod() from inside the Screen1Fragment but I am not sure how to do this.
Previously the Screen1Fragment was an activity and so I was extending MyActivity so that I could directly call myMethod(). But I have had to change the activity to a fragment for sliding tabs usage.
Thanks in advance.