diff --git a/Xamarin.Forms.ControlGallery.Android/Activity1.cs b/Xamarin.Forms.ControlGallery.Android/Activity1.cs index 3426ce218d9..9dbd4b636f5 100644 --- a/Xamarin.Forms.ControlGallery.Android/Activity1.cs +++ b/Xamarin.Forms.ControlGallery.Android/Activity1.cs @@ -188,7 +188,7 @@ protected override void OnCreate(Bundle bundle) base.OnCreate(bundle); if (!Debugger.IsAttached) - Insights.Initialize(App.InsightsApiKey, this.ApplicationContext); + Insights.Initialize(App.Secrets["InsightsApiKey"], this.ApplicationContext); Forms.Init(this, bundle); FormsMaps.Init(this, bundle);