title: Open a new Activity Xamarin restarts my application
body: <p>Using Xamarin.Forms I have my main application running Forms. But I have Mapbox Navigation which is Xamarin.Android that I am using, I ma trying to open the navigation from Forms so I am doing the following:</p>
  <p>FORMS CODE</p>
  <pre><code> public interface INavigation
  {
      void StartNativeIntentOrActivity();
  }
  </code></pre>
  <p>The void above is then called through DependencyService in Forms</p>
  <p>XAMARIN.ANDROID Code</p>
  <pre><code> using Android.Content;
   using MapleLMCApp.Classes;
   using MapleLMCApp.Droid;
   using MapleLMCApp.Droid.NavigationUI;
   using System;
   using Xamarin.Forms;
  
   [assembly: Xamarin.Forms.Dependency(typeof(NavInitializer))]
   namespace MapleLMCApp.Droid
   {   
       class NavInitializer : INavigation
       {    
           public void StartNativeIntentOrActivity()
           {
               //Begin Navigation Form
               try
               {
                   var intent = new Intent(Android.App.Application.Context, typeof(EmbeddedNavigationActivity));
                   intent.SetFlags(ActivityFlags.NewTask);   
                   Android.App.Application.Context.StartActivity(intent);           
              
               }
               catch (Exception ex)
               {
                   LogFileCreation lg = new LogFileCreation();
                   lg.CreateLog(ex.ToString(), &quot;NAV Initilizer Error&quot;);
               }
           }
       }
   }
  </code></pre>
  <p>The above works perfectly in the emulator for API &lt;28 and API &gt;28</p>
  <p>The second I try the code above on my Huawei P30 Pro the second the new activity appears the App restarts itself or auto closes...</p>
  <p>Any ideas on what might be causing this? some security setting or Manifest property that needs to be set or something along those lines?</p>