示例#1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            AndroidUtils.SetMainActicity(this);

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

            LoadApplication(new App());
        }
示例#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());
        }