Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            TKGoogleMaps.Init(this, bundle);


            base.OnCreate(bundle);

            if (Intent.Extras != null)
            {
                foreach (var key in Intent.Extras.KeySet())
                {
                    if (key != null)
                    {
                        var value = Intent.Extras.GetString(key);
                        Log.Debug(TAG, "Key: {0} Value: {1}", key, value);
                    }
                }
            }

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LeoJHarris.FormsPlugin.Droid.EnhancedEntryRenderer.Init(this);

            Xamarin.FormsMaps.Init(this, bundle);



            LoadApplication(new App());
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            Rg.Plugins.Popup.Popup.Init(this, bundle);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);


            // [END configure_signin]

            // [START build_client]

            // [END build_client]
            global::Xamarin.Forms.Forms.Init(this, bundle);
            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);
            TKGoogleMaps.Init(this, bundle);

            Xamarin.FormsMaps.Init(this, bundle);
            GoogleInfo.GetInstance(this);
            // Convert Android.Net.Url to Uri
            Uri uri;

            if (Intent.Data != null)
            {
                uri = new Uri(Intent.Data.ToString());

                // Load redirectUrl page
                AuthenticationState.Authenticator.OnPageLoading(uri);
            }
            LoadApplication(new App());
        }
Пример #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            ChechSdk();
            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            ImageCircleRenderer.Init();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            var options = new FirebaseOptions.Builder()
                          .SetApplicationId("1:622412870107:android:6aec2d0b1210b5bc")
                          .SetApiKey("AIzaSyDIs8cX6YYLC-tXrOFMS4DfTwLGW7c6yGQ")
                          .SetGcmSenderId("622412870107")
                          .Build();

            try
            {
                FirebaseApp.InitializeApp(this, options);
                var refreshedToken = FirebaseInstanceId.Instance.Token;
                Settings.UserFirebaseToken = refreshedToken;
                //  AndroidAppLinks.Init(this);
            }
            catch
            {
                // ignored
            }

            OneSignal.Current.StartInit("1126a3d0-1d80-42ee-94db-d0449ac0a62c").EndInit();

            TKGoogleMaps.Init(this, savedInstanceState);


            LoadApplication(new App());
        }
Пример #4
0
 protected override void OnCreate(Bundle bundle)
 {
     try
     {
         TabLayoutResource = Resource.Layout.Tabbar;
         ToolbarResource   = Resource.Layout.Toolbar;
         Rg.Plugins.Popup.Popup.Init(this, bundle);
         base.OnCreate(bundle);
         Rg.Plugins.Popup.Popup.Init(this, bundle);
         Helpers.Settings.CantidadSeguimientoPage  = 0;
         Helpers.Settings.CantidadCalificacionPage = 0;
         if (Intent.Extras != null)
         {
             foreach (var key in Intent.Extras.KeySet())
             {
                 if (key != null)
                 {
                     var value = Intent.Extras.GetString(key);
                     Log.Debug(TAG, "Key: {0} Value: {1}", key, value);
                 }
             }
         }
         FacebookClientManager.Initialize(this);
         global::Xamarin.Forms.Forms.Init(this, bundle);
         Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this;
         Xamarin.FormsMaps.Init(this, bundle);
         TKGoogleMaps.Init(this, bundle);
         LoadApplication(new App());
     }
     catch (Exception ex)
     {
         var a = ex.Message;
         throw;
     }
 }
Пример #5
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            CrossCurrentActivity.Current.Init(this, bundle);
            Instance = this;
            global::Xamarin.Forms.Forms.Init(this, bundle);
            FormsGoogleMaps.Init(this, bundle);
            FormsMaps.Init(this, bundle);
            TKGoogleMaps.Init(this, bundle);
            var width   = Resources.DisplayMetrics.WidthPixels;
            var height  = Resources.DisplayMetrics.HeightPixels;
            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (width - 0.5f) / density;
            App.ScreenHeight = (height - 0.5f) / density;

            LoadApplication(new App());

            AppCenter.Start("66fd97a2-5b59-45a3-afdf-1af54967204a",
                            typeof(Analytics), typeof(Crashes));
            AppCenter.Start("66fd97a2-5b59-45a3-afdf-1af54967204a", typeof(Analytics), typeof(Crashes));
        }
Пример #6
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     UserDialogs.Init(this);
     TKGoogleMaps.Init(this, bundle);
     Xamarin.FormsMaps.Init(this, bundle);
     Forms.Init(this, bundle);
     LoadApplication(new App());
 }
Пример #7
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            TKGoogleMaps.Init(this, bundle);
            LoadApplication(new App());
        }
Пример #8
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            Const.Root = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            TKGoogleMaps.Init(this, savedInstanceState);

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Пример #9
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            global::Xamarin.Forms.Forms.Init(this, bundle);
            Xamarin.FormsMaps.Init(this, bundle);
            CachedImageRenderer.Init(enableFastRenderer: false);
            TKGoogleMaps.Init(this, bundle);
            LoadApplication(new App());
        }
Пример #10
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            //ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;

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

            ToolbarResource   = Resource.Layout.toolbar;
            TabLayoutResource = Resource.Layout.tabs;

            //Xamarin.FormsMaps.Init(this, bundle);
            LoadApplication(new App());
        }
Пример #11
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.SetTheme(Resource.Style.MainTheme);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            ChechSdk();
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            TKGoogleMaps.Init(this, savedInstanceState);

            // CrossCurrentActivity.Current.Activity(this, savedInstanceState);

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Пример #12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            App.DbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "RentalDb.db");
            UserDialogs.Init(this);
            TKGoogleMaps.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Пример #13
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            CachedImageRenderer.Init(true);

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



            InitDeviceValues();
            //LoadApplication(new App());
            ImageCircleRenderer.Init();
            AnimationViewRenderer.Init();


            SetPage(App.Instance.GetMainPage());
        }
Пример #14
0
        protected override async void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(bundle);
            var renderer = new TKCustomMapRenderer(this);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.book;
            UserDialogs.Init(this);
            TKGoogleMaps.Init(this, bundle);
            var db = new RealmDataBase();

            if (db.FirstRun())
            {
                var temp = new ResourceHelper(this.ApplicationContext, "RhodesMap.geojson", "Venues.txt");
                LoadApplication(new App(temp.ReadLocalFile(), temp.GetParsedVenuesWithSubjects()));
            }
            else
            {
                LoadApplication(new App());
            }
            await GetLocationPermissionAsync();
        }