Exemple #1
0
        protected override void OnNewIntent(Intent intent)
        {
            base.OnNewIntent(intent);

            // Plugin NFC: Tag Discovery Interception
            CrossNFC.OnNewIntent(intent);
        }
Exemple #2
0
        protected override void OnResume()
        {
            base.OnResume();

            // Plugin NFC: Restart NFC listening on resume (needed for Android 10+)
            CrossNFC.OnResume();
        }
Exemple #3
0
        protected override void OnNewIntent(Intent intent)
        {
            // base.OnNewIntent(intent);
            // CreateNotificationFromIntent(intent);

            // Plugin NFC: Tag Discovery Interception
            CrossNFC.OnNewIntent(intent);
        }
Exemple #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            CrossNFC.Init(this);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Exemple #5
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.admin);
     ComponentLocalizer();
     warentyDefault = warentyImage.Drawable;
     specDefault    = specImage.Drawable;
     ActionHooker();
     nfcText.Text = GetString(Resource.String.scanON);
     CrossNFC.Init(this);
 }
Exemple #6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            // https://github.com/franckbour/Plugin.NFC
            // Plugin NFC: Initialization
            CrossNFC.Init(this);

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App(new AndroidInitializer()));
        }
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            MobileBarcodeScanner.Initialize(this.Application);
            SmsAndroid.dev = this;
            await CrossMedia.Current.Initialize();

            CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.icon;
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            Xamarin.FormsMaps.Init(this, savedInstanceState);
            CachedImageRenderer.Init(true);
            NfcManager NfcManager = (NfcManager)Android.App.Application.Context.GetSystemService(Context.NfcService);

            NFCdevice = NfcManager.DefaultAdapter;
            CrossNFC.Init(this);
            Xamarin.Forms.DependencyService.Register <INfcForms, NfcForms>();
            x = Xamarin.Forms.DependencyService.Get <INfcForms>() as NfcForms;

#if portifolio
            CrossBadge.Current.SetBadge(9);
            LoadApplication(new App(new SoapService(), new OpenCVActivity(), new SmsAndroid()));
#else
            if (!OpenCVLoader.InitDebug())
            {
                System.Console.WriteLine("Init OpenCV failed!!");
            }
            else
            {
                System.Console.WriteLine("Init OpenCV succefuly!!");
            }


            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);


            mOpenCvCameraView            = FindViewById <CameraBridgeViewBase>(Resource.Id.fd_activity_surface_view);
            mOpenCvCameraView.Visibility = ViewStates.Visible;
            mOpenCvCameraView.SetCvCameraViewListener2(this);
            mLoaderCallback = new Callback(this, this, mOpenCvCameraView);
#endif
        }
Exemple #8
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            await CrossMedia.Current.Initialize();

            CrossNFC.Init(this);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            this.Window.SetFlags(WindowManagerFlags.KeepScreenOn, WindowManagerFlags.KeepScreenOn);
            // Add this...
            global::ZXing.Net.Mobile.Forms.Android.Platform.Init();
            ZXing.Mobile.MobileBarcodeScanner.Initialize(Application);
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState);

            LoadApplication(new App());
        }
Exemple #9
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            // Plugin NFC: Initialization
            CrossNFC.Init(this);
            Task.Run(() =>
            {
                CrossNFC.Current.StartListening();
            });

            global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            // Plugin NFC: Initialization
            CrossNFC.Init(this);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            mContext     = this;
            tef          = new TEF.Tef();
            satFunctions = new SatFunctions(Application.Context);

            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            System.Net.ServicePointManager.ServerCertificateValidationCallback +=
                (sender, cert, chain, sslPolicyErrors) =>
            {
                System.Diagnostics.Debug.WriteLine(cert.GetSerialNumberString());
                System.Diagnostics.Debug.WriteLine(cert.Issuer);
                System.Diagnostics.Debug.WriteLine(cert.Subject);
                return(true);
            };

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
            UserDialogs.Init(this);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);

            CrossNFC.Init(this);
            CrossNFC.OnNewIntent(Intent);

            CrossAppShortcuts.Current.Init();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);

            FirebasePushNotificationManager.ProcessIntent(this, Intent);
            OxyPlot.Xamarin.Forms.Platform.Android.PlotViewRenderer.Init();
            ZXing.Net.Mobile.Forms.Android.Platform.Init();
            XamEffects.Droid.Effects.Init();
            Xamarin.FormsMaps.Init(this, savedInstanceState);
            LocalNotificationsImplementation.NotificationIconId = Resource.Mipmap.ic_launcher_round;
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(savedInstanceState);

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);

            LoadApplication(new App());
            FirebaseApp.InitializeApp(this);
        }
Exemple #12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            CrossNFC.Init(this);
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.login);
            ComponentLocalizer();
            ActionHooker();
            NfcAdapter nfcAdapter = NfcAdapter.GetDefaultAdapter(this);

            if (nfcAdapter == null)
            {
                Android.Support.V7.App.AlertDialog.Builder alertDialog = new Android.Support.V7.App.AlertDialog.Builder(this);
                alertDialog.SetTitle(GetString(Resource.String.noNFC));
                alertDialog.SetIcon(Resource.Drawable.ic1c_192x192);
                alertDialog.SetMessage(GetString(Resource.String.noSupport));
                alertDialog.SetCancelable(false);
                alertDialog.SetNeutralButton(GetString(Resource.String.exit), delegate
                {
                    Finish();
                });
                alertDialog.Show();
            }
            CreateNotificationChannel();
        }
Exemple #13
0
 protected override void OnNewIntent(Intent intent)
 {
     base.OnNewIntent(intent);
     CrossNFC.OnNewIntent(intent);
 }
Exemple #14
0
 protected override void OnResume()
 {
     base.OnResume();
     CrossNFC.OnResume();
 }
 protected override void OnNewIntent(Intent intent)
 {
     base.OnNewIntent(intent);
     FirebasePushNotificationManager.ProcessIntent(this, intent);
     CrossNFC.OnNewIntent(intent);
 }