title: Xamarin.Forms app freeze on launch (issue with startupWork.ContinueWith)
body: <p>We have a Xamarin.Forms app. Our latest update introduced an issue for some users (namely Samsung S3, Galaxy S7 Edge, and S5 Neo).</p>
  
  <p>We can test and replicate in-house on S5 Neo. On launch, screen becomes unresponsive and looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/7BNXq.jpg" rel="nofollow noreferrer">S5 Neo screenshot</a></p>
  
  <p>Debugging leads me to think issue is with:</p>
  
  <pre><code>protected override void OnResume()
      {
          base.OnResume();
  
          Task startupWork = new Task(() =&gt;
          {
  
          });
  
  
          startupWork.ContinueWith(t =&gt;
          {
              StartActivity(new Intent(Application.Context, typeof(MainActivity)));
          }, TaskScheduler.FromCurrentSynchronizationContext());
  
          startupWork.Start();
  
      }
  </code></pre>
  
  <p>I have tried:</p>
  
  <ul>
  <li>Searching Google and SO</li>
  <li><a href="https://stackoverflow.com/questions/8245926/the-current-synchronizationcontext-may-not-be-used-as-a-taskscheduler">The current SynchronizationContext may not be used as a TaskScheduler</a></li>
  <li><a href="https://stackoverflow.com/questions/21370904/top-level-task-causes-error-the-current-synchronizationcontext-may-not-be-used">Top Level Task Causes Error &quot;The current SynchronizationContext may not be used as a TaskScheduler.&quot;</a></li>
  </ul>
  
  <p>I'm running out of ideas. Can you help?</p>