dimitri-tholen
1/15/2019 - 10:29 AM

Code to show a splash screen on Android

Code to show a splash screen on Android

Task startupWork = new Task(async () =>
{
    await Task.Delay(1000);
});

startupWork.ContinueWith(t =>
{
    StartActivity(new Intent(Application.Context, typeof(MainActivity)));
}, TaskScheduler.FromCurrentSynchronizationContext());

startupWork.Start();