protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.activity_main);

			if (bundle == null) {
				FragmentTransaction transaction = FragmentManager.BeginTransaction ();
				CardEmulationFragment fragment = new CardEmulationFragment ();
				transaction.Replace (Resource.Id.sample_content_fragment, fragment);
				transaction.Commit ();
			}
		}
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.activity_main);

            if (bundle == null)
            {
                FragmentTransaction   transaction = FragmentManager.BeginTransaction();
                CardEmulationFragment fragment    = new CardEmulationFragment();
                transaction.Replace(Resource.Id.sample_content_fragment, fragment);
                transaction.Commit();
            }
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.activity_main);
			Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction();
			CardEmulationFragment fragment = new CardEmulationFragment();
			transaction.Replace (Resource.Id.sample_content_fragment, fragment);
			transaction.Commit ();
			//Intent intent = new Intent (this, typeof(CardService));
			//StartService (intent);
		}
Esempio n. 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);
            Android.Support.V4.App.FragmentTransaction transaction = SupportFragmentManager.BeginTransaction();
            CardEmulationFragment fragment = new CardEmulationFragment();

            transaction.Replace(Resource.Id.sample_content_fragment, fragment);
            transaction.Commit();
            //Intent intent = new Intent (this, typeof(CardService));
            //StartService (intent);
        }