I have 2 Fragments for a activity.
e.g. FragmentA and FragmentB
I have a public method funA in FragmentA
Now I want call funA from FragmentB of FragmentA.
I have replaced FragmentA with FragmentB.
I am using support libs as I am making application on Android 2.2
That’s not a good idea, because you are coupling the fragments; FragmentB should not know about methods from FragmentA, or vice versa.
A better solution is described in section “Creating event callbacks to the activity” here: http://developer.android.com/guide/topics/fundamentals/fragments.html