Forum Xamarin.Android

Activity to Android.Support.V4.App.Fragment

dqmarkdqmark UAMember ✭✭

How should I change

FragmentManager.FindFragmentById(Resource.Id.map).GetMapAsync(this);

if i'm doing it not in the Activity, but in Android.Support.V4.App.Fragment ? How can I get the same result within Android.Support.V4.App.Fragment ? The reason for it I want to remake my Activity into Fragment to put into my main app (to peroform map in the Fragment of my other Acitivity in other project).

Answers

  • dqmarkdqmark UAMember ✭✭

    The answer is:

    Activity.FragmentManager.FindFragmentById(Resource.Id.map).GetMapAsync(this);

Sign In or Register to comment.