protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Platform.Init(); ImageCircleRenderer.Init(); ZXing.Net.Mobile.Forms.Android.Platform.Init(); global::Xamarin.Forms.Forms.Init(this, bundle); FFImageLoading.Forms.Droid.CachedImageRenderer.Init(); var config = new FFImageLoading.Config.Configuration() { VerboseLogging = false, VerbosePerformanceLogging = false, VerboseMemoryCacheLogging = false, VerboseLoadingCancelledLogging = false }; ImageService.Instance.Initialize(config); // Initialization for Azure Mobile Apps CurrentPlatform.Init(); // This MobileServiceClient has been configured to communicate with the Azure Mobile App and // Azure Gateway using the application url. You're all set to start working with your Mobile App! var sgsappClient = new MobileServiceClient( "https://sgsapp.azurewebsites.net"); try { Forms.Init(this, bundle); //XamForms.Controls.Droid.Calendar.Init(); LoadApplication(new App()); // LoadApplication(Player.CreateApplication(this, new Config("Good Gorilla").RegisterAssembliesFromTypes<CircleImage, RoundedCornerView, ZXingBarcodeImageView>())); // Force refresh of the token. If we redeploy the app, no new token will be sent but the old one will // be invalid. #if DEBUG Task.Run(() => { // This may not be executed on the main thread. FirebaseInstanceId.Instance.DeleteInstanceId(); Console.WriteLine("Forced token: " + FirebaseInstanceId.Instance.Token); }); #endif } catch (Exception ex) { } }
protected override void OnCreate(Bundle bundle) { var parameters = new object[] { AppSettings.Current().ProjectWorkUserFolder, this, bundle, new PlatformOptions { SmallIconDrawable = Resource.Drawable.ic_notification }, }; var initializer = new BissInitializer(); if (!initializer.Initialize(parameters)) { throw new ApplicationException("Initialization failed"); } TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); FormsMaps.Init(this, bundle); InitializeDisplayOrientations(); Platform.Init(); LoadApplication(new App(initializer)); if (Intent?.Extras != null) { var dict = new Dictionary <string, string>(); foreach (var key in Intent.Extras.KeySet()) { var value = Intent.Extras.Get(key); Log.Debug("BissAndroidMainActivity", "Key: {0} Value: {1}", key, value); dict.Add(key, value.ToString()); } ProjectViewModelBase.PushReceived(dict); } var pushOk = PushAzure.Init(this, NotificationService); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Rg.Plugins.Popup.Popup.Init(this); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Platform.Init(); Forms.Init(this, savedInstanceState); var dbFile = "settings_db.db3"; var folderPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); var dbFileCompletePath = Path.Combine(folderPath, dbFile); CoreSampleBrowser.Init(Resources, this); LoadApplication(new App(dbFileCompletePath)); Toolbar toolbar = this.FindViewById <Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); int uiOptions = (int)Window.DecorView.SystemUiVisibility; uiOptions |= (int)SystemUiFlags.LowProfile; uiOptions |= (int)SystemUiFlags.Fullscreen; uiOptions |= (int)SystemUiFlags.HideNavigation; uiOptions |= (int)SystemUiFlags.ImmersiveSticky; Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions; Window.SetSoftInputMode(SoftInput.AdjustResize); Instance = this; }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Platform.Init(); // Initialization for Azure Mobile Apps CurrentPlatform.Init(); // This MobileServiceClient has been configured to communicate with the Azure Mobile App and // Azure Gateway using the application url. You're all set to start working with your Mobile App! var sgsappClient = new MobileServiceClient( "https://sgsapp.azurewebsites.net"); try { Forms.Init(this, bundle); //XamForms.Controls.Droid.Calendar.Init(); LoadApplication(new App()); // Force refresh of the token. If we redeploy the app, no new token will be sent but the old one will // be invalid. #if DEBUG Task.Run(() => { // This may not be executed on the main thread. FirebaseInstanceId.Instance.DeleteInstanceId(); Console.WriteLine("Forced token: " + FirebaseInstanceId.Instance.Token); }); #endif } catch (Exception ex) { } }