Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            AndroidUtils.SetMainActicity(this);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            LoadApplication(new App());
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            ZXing.Mobile.MobileBarcodeScanner.Initialize(Application);

            base.OnCreate(bundle);

            AndroidUtils.SetMainActicity(this);

            /*SimpleContainer container = new SimpleContainer();
             * container.Register<IDevice>(t => AndroidDevice.CurrentDevice);
             * container.Register<INetwork>(t => t.Resolve<IDevice>().Network);
             *
             * if (!Resolver.IsSet)
             *  Resolver.SetResolver(container.GetResolver());*/

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }