I have an activity that has a fragment.
XML:
<fragment android:name="com.example.androidcalculator.ResultFragment" android:id="@+id/result_fragment" android:layout_weight="1" android:layout_width="match_parent" android:layout_height="wrap_content" />
And I want to call the method from ResultFragment from the method in Activity, but getSupportFragmentManager "does not exist":
FragmentManager fragMan = getSupportFragmentManager();
How can i solve this?
android android-activity android-fragments
Taru Nov 18 '12 at 19:37 2012-11-18 19:37
source share