Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 public void FindFragment()
 {
     fragment = (ActiveNotificationFragment)FragmentManager
                .FindFragmentById(Resource.Id.sample_content_fragment);
 }