// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. Insights.Initialize("6ca83ad11a57fefc22f797ed2a3236805a3e6649"); UIApplication.Main(args, null, "AppDelegate"); }
public override void DidFinishLaunching(NSNotification notification) { /* * new System.Threading.Thread (() => * { * while (true) { * System.Threading.Thread.Sleep (1000); * Debug("GC.Collect: " + DateTime.Now.ToString()); * GC.Collect (); * } * }).Start (); */ Insights.HasPendingCrashReport += (sender, isStartupCrash) => { if (isStartupCrash) { Insights.PurgePendingCrashReports().Wait(); } }; Insights.Initialize("39819b4f3c0a9fbe38391c6413f6a9d48e0d6cd5", "1.0", "Disk Reporter"); mainWindowController = new MainWindowController(); mainWindowController.Window.MakeKeyAndOrderFront(this); }
// This is the main entry point of the application. static void Main(string[] args) { Insights.Initialize("686a40fe20d76b5c2fed471bd75db89b7bdf5e97"); // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. UIApplication.Main(args, null, "AppDelegate"); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Override point for customization after application launch. // If not required for your application you can safely delete this method string dbpath = FileAccessHelper.GetLocalFilePath("ethanslist.db3"); databaseConnection = new DatabaseConnection(dbpath); // Code to start the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); UINavigationBar.Appearance.BarTintColor = ColorScheme.WetAsphalt; UINavigationBar.Appearance.TintColor = ColorScheme.Clouds; UINavigationBar.Appearance.TitleTextAttributes = new UIStringAttributes() { Font = UIFont.FromName(Constants.NormalFont, 16f), ForegroundColor = ColorScheme.Clouds, }; #if RELEASE Insights.Initialize("ec87be89090cdee48f57cce9ee5ca4d230b1f314"); #endif return(true); }
public override void OnCreate() { base.OnCreate(); RegisterActivityLifecycleCallbacks(this); Insights.Initialize("e5ec1fda54cb302d05a3cec7c65b6e98a14402ce", Context); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Insights.Initialize("7ac2ff3a51b2790eb6e2dceead2b2f5c6611d7c3", this); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { ServicePointManager .ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; Insights.HasPendingCrashReport += (sender, isStartupCrash) => { if (isStartupCrash) { Insights.PurgePendingCrashReports().Wait(); } }; Insights.Initialize("d1b792655ba13200116b009b175104c32487cc25", ApplicationContext); base.OnCreate(bundle); var metrics = Resources.DisplayMetrics; App.ScreenWidth = ConvertPixelsToDp(metrics.WidthPixels); App.ScreenHeight = ConvertPixelsToDp(metrics.HeightPixels); OxyPlot.Xamarin.Forms.Platform.Android.Forms.Init(); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); // Code for starting up the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif Insights.Initialize("4cdef01b1dc979920d5d485896d5fe50e9c752a6"); Insights.Track("iOS/Start"); Ubertesters.Shared.InitializeWithOptions(UbertestersOptions.ActivationModeWidget | UbertestersOptions.LockingModeDisableUbertesters); AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) => { CrashHandler.PostCrash(e); }; App.Version = GetBuildNumber(); App.ClipboardService = new ClipboardService(); LoadApplication(new App()); UIApplication.SharedApplication.IdleTimerDisabled = true; return(base.FinishedLaunching(app, options)); }
// This is the main entry point of the application. static void Main(string[] args) { Insights.Initialize("Your API key"); // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. UIApplication.Main(args, null, "AppDelegate"); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); if (!Debugger.IsAttached) { Insights.Initialize(App.InsightsApiKey, ApplicationContext); } Forms.SetFlags("Fake_Flag"); // So we can test for flag initialization issues Forms.Init(this, bundle); FormsMaps.Init(this, bundle); Forms.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.ContentDescription = e.View.StyleId; } }; // uncomment to verify turning off title bar works. This is not intended to be dynamic really. //Forms.SetTitleBarVisibility (AndroidTitleBarVisibility.Never); var app = _app = new App(); // When the native control gallery loads up, it'll let us know so we can add the nested native controls MessagingCenter.Subscribe <NestedNativeControlGalleryPage>(this, NestedNativeControlGalleryPage.ReadyForNativeControlsMessage, AddNativeControls); // When the native binding gallery loads up, it'll let us know so we can set up the native bindings MessagingCenter.Subscribe <NativeBindingGalleryPage>(this, NativeBindingGalleryPage.ReadyForNativeBindingsMessage, AddNativeBindings); SetUpForceRestartTest(); LoadApplication(app); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Insights.Initialize("5b243cb723e5b05157176fca5c95856f6877699a", this); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Insights.Initialize("fbe45ea4c25df48a8eeb15f1bdd929cf14482e4b", ApplicationContext); Forms.Init(this, bundle); if (Device.Idiom == TargetIdiom.Phone) { this.RequestedOrientation = ScreenOrientation.Portrait; } var uiContext = new UiContext { CurrentContext = this }; //Mvx.Resolve<IMvxPageNavigationHost>().NavigationProvider = this; var formsApp = new App(); LoadApplication(formsApp); var presenter = (MvxFormsDroidPagePresenter)Mvx.Resolve <IMvxViewPresenter>(); presenter.MvxFormsApp = formsApp; Mvx.Resolve <IMvxAppStart>().Start(); }
// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. Insights.Initialize("b4e84f033d5a063b8a2efcce69c58b8bd0ed5b6c"); UIApplication.Main(args, null, "AppDelegate"); }
// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. Insights.Initialize("5f7125ed05d7368a4f301901b240636eeaa70000"); UIApplication.Main(args, null, "AppDelegate"); }
/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used when the application is launched to open a specific file, to display /// search results, and so forth. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); // TODO: change this value to a cache size that is appropriate for your application rootFrame.CacheSize = 1; Insights.Initialize(CoderCamp.App.XamarinInsightsKey); Xamarin.Forms.Forms.Init(e); if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { // TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (rootFrame.Content == null) { // Removes the turnstile navigation for startup. if (rootFrame.ContentTransitions != null) { this.transitions = new TransitionCollection(); foreach (var c in rootFrame.ContentTransitions) { this.transitions.Add(c); } } rootFrame.ContentTransitions = null; rootFrame.Navigated += this.RootFrame_FirstNavigated; // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter if (!rootFrame.Navigate(typeof(MainPage), e.Arguments)) { throw new Exception("Failed to create initial page"); } } // Ensure the current window is active Window.Current.Activate(); }
//public const string HOCKEYAPP_APPID = "YOUR-APP-ID"; protected override void OnCreate(Bundle bundle) { //// Register the crash manager before Initializing the trace writer //HockeyApp.CrashManager.Register(this, HOCKEYAPP_APPID); ////Register to with the Update Manager //HockeyApp.UpdateManager.Register(this, HOCKEYAPP_APPID); //// Initialize the Trace Writer //HockeyApp.TraceWriter.Initialize(); //// Wire up Unhandled Expcetion handler from Android //AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => //{ // // Use the trace writer to log exceptions so HockeyApp finds them // HockeyApp.TraceWriter.WriteTrace(args.Exception); // args.Handled = true; //}; //// Wire up the .NET Unhandled Exception handler //AppDomain.CurrentDomain.UnhandledException += (sender, args) => HockeyApp.TraceWriter.WriteTrace(args.ExceptionObject); //// Wire up the unobserved task exception handler //TaskScheduler.UnobservedTaskException += (sender, args) => HockeyApp.TraceWriter.WriteTrace(args.Exception); Insights.Initialize("faec20791c9e72b9442a82c2ed86839842845b1b", this.ApplicationContext); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
//TODO: The commented out code is related to the orientation stuff //public override void OnConfigurationChanged(global::Android.Content.Res.Configuration newConfig) //{ // base.OnConfigurationChanged(newConfig); // DeviceOrientationImplementation.NotifyOrientationChange(newConfig); //} protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Insights.HasPendingCrashReport += (sender, isStartupCrash) => { if (isStartupCrash) { Insights.PurgePendingCrashReports().Wait(); } }; Insights.Initialize("c3073d3e8d28a2b889bdd692f98ece61abfb3090", Application.Context); global::Xamarin.Forms.Forms.Init(this, bundle); #region Old Code Related to Device Orientation //DeviceOrientationImplementation.Init(); // Locks the device into portrait mode //if (Device.Idiom == TargetIdiom.Phone) //{ // this.RequestedOrientation = ScreenOrientation.SensorPortrait; //} #endregion LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Azure Mobile Services initilization Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); Forms.Init(this, bundle); FormsMaps.Init(this, bundle); new SfChartRenderer(); // This is necessary for initializing SyncFusion charts. //#if DEBUG //Insights.Initialize(Insights.DebugModeKey, this); //#else Insights.Initialize("2b82ddc37582e6c1bece7e5901e8bae3bf7bfb26", this); //#endif LoadApplication(new App()); if ((int)Build.VERSION.SdkInt >= 21) { ActionBar.SetIcon(new ColorDrawable(Resources.GetColor(Android.Resource.Color.Transparent))); } }
public static void Init() { var analyticsKey = Insights.DebugModeKey; Insights.Initialize(analyticsKey, false); InsightsHelper.ResetUser(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Insights.Initialize(App.XamarinInsightsKey, this); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); App.Initialize(ApplicationContext); Insights.Initialize(Configuration.InsightsKey, Application.Context); ServiceLocator.Current.GetInstance <ICategoryService>().FetchSpeculativelyAsync(); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Insights.Initialize(App.XamarinInsightsKey); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
static void Main(string[] args) { if (!Debugger.IsAttached) { Insights.Initialize(App.InsightsApiKey); } UIApplication.Main(args, null, "AppDelegate"); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); Insights.Initialize("5b243cb723e5b05157176fca5c95856f6877699a"); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; Insights.Initialize("5b243cb723e5b05157176fca5c95856f6877699a"); LoadApplication(new LacunaExpanse.App()); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Insights.Initialize("7ac2ff3a51b2790eb6e2dceead2b2f5c6611d7c3"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
private void InitPlugins() { Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); CurrentPlatform.Init(); CachedImageRenderer.Init(); Toolkit.Init(); Insights.Initialize(Keys.XamarinInsightsKey); }
protected override void InitializeXamarinInsights() { Insights.Initialize(XAMARIN_INSIGHTS_APP_KEY); if (Insights.IsInitialized) { Insights.Identify(DeviceId, "Device ID", DeviceId); } }
protected override void OnCreate(Bundle bundle) { ToolbarResource = Resource.Layout.Toolbar; TabLayoutResource = Resource.Layout.Tabbar; // Uncomment the next line to run this as a full screen app (no status bar) //Window.AddFlags(WindowManagerFlags.Fullscreen | WindowManagerFlags.TurnScreenOn); base.OnCreate(bundle); if (!Debugger.IsAttached) { Insights.Initialize(App.InsightsApiKey, ApplicationContext); } #if TEST_EXPERIMENTAL_RENDERERS Forms.SetFlags("FastRenderers_Experimental"); #else Forms.SetFlags("Fake_Flag"); // So we can test for flag initialization issues #endif Forms.Init(this, bundle); FormsMaps.Init(this, bundle); AndroidAppLinks.Init(this); Forms.ViewInitialized += (sender, e) => { // if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { // e.NativeView.ContentDescription = e.View.StyleId; // } }; // uncomment to verify turning off title bar works. This is not intended to be dynamic really. //Forms.SetTitleBarVisibility (AndroidTitleBarVisibility.Never); if (RestartAppTest.App != null) { _app = (App)RestartAppTest.App; RestartAppTest.Reinit = true; } else { _app = new App(); } // When the native control gallery loads up, it'll let us know so we can add the nested native controls MessagingCenter.Subscribe <NestedNativeControlGalleryPage>(this, NestedNativeControlGalleryPage.ReadyForNativeControlsMessage, AddNativeControls); // When the native binding gallery loads up, it'll let us know so we can set up the native bindings MessagingCenter.Subscribe <NativeBindingGalleryPage>(this, NativeBindingGalleryPage.ReadyForNativeBindingsMessage, AddNativeBindings); // Listen for the message from the status bar color toggle test MessagingCenter.Subscribe <AndroidStatusBarColor>(this, AndroidStatusBarColor.Message, color => SetStatusBarColor(global::Android.Graphics.Color.Red)); SetUpForceRestartTest(); LoadApplication(_app); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Insights.Initialize("faec20791c9e72b9442a82c2ed86839842845b1b"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }