Beispiel #1
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

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

            LoadApplication(new App());

            if (!PushNotifications.Check(this))
            {
                Finish();
            }

            AndroidKeyboard.Init(this);
            AndroidClipboard.Init(this);
            AndroidSendBackup.Init(this);

            // File opened with this launch?
            //string action = Intent.Action;
            //string type = Intent.Type;

            //if (Intent.ActionView.Equals(action) && !string.IsNullOrEmpty(type))
            //{
            //	Android.Net.Uri fileUri = Intent.Data;

            //	string json = File.ReadAllText(fileUri.Path, Encoding.UTF8);

            //	ApplicationCenter.Receive(json);
            //}

            CheckData(Intent);
        }