protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.activity_main); deleteReceiver = new ANBroadcastReceiver (this); if (bundle == null) { FragmentTransaction transaction = FragmentManager.BeginTransaction (); var fragment = new ActiveNotificationFragment (); transaction.Replace (Resource.Id.sample_content_fragment, fragment); transaction.Commit (); } }
public void FindFragment () { fragment = (ActiveNotificationFragment)FragmentManager .FindFragmentById (Resource.Id.sample_content_fragment); }