 <p>In your fragment, you can use</p> <p><code>((MainActivity)getActivity()).myMethod()</code></p> <p>to call myMethod of MainActivity. This solution assumes, that your fragment is located in MainActivity (getActivity must return MainActivity instance) :-)</p>