How to call fragment method from main activity
<p>I have method in fragment class. I want to call that method from main activity but I don't want to use FragmentById (or) FragmentByTag.</p>

<p>My fragment method:</p>

<pre><code>public void setItemFromDrawer(String sourceTag, String destTag) {
    //dosomething
}
</code></pre>

<p>How to call above method from main activity without using FragmentById (or) FragmentByTag?</p>