protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Main); if (SupportFragmentManager.FindFragmentByTag (FRAGTAG) == null ) { Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction (); var fragment = new MyCloudFragment (); transaction.Add (fragment, FRAGTAG); transaction.Commit (); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); if (SupportFragmentManager.FindFragmentByTag(FRAGTAG) == null) { Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction(); var fragment = new MyCloudFragment(); transaction.Add(fragment, FRAGTAG); transaction.Commit(); } }