My navigation method, appears to go to somewhere else RRS feed

  • Question

  • User394276 posted

    Hello community

    I have two pages, the fist one is going to be the splash screen, with a .git on it. Ten I have another screen that with a label and that it.

    The way that I go from A to B, is that I create a Timer (To simulate the end of the animation) the when that animation is finished, I create a new Task to navigate to my other screen

    It will navigate, but I do not see my label or anything

    And if I remove the create a new task, i get this Android.Util.AndroidRuntimeException: 'Only the original thread that created a view hierarchy can touch its views.'

    Sunday, May 24, 2020 6:05 AM


  • User394276 posted

    I did it

    I use ``` Device.StartTimer(TimeSpan.FromSeconds(3), TimerElapsed); }

        private bool TimerElapsed() {
            Device.BeginInvokeOnMainThread(() => {
                Navigation.PushAsync(new RegisterScreen());
            return false;


    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, May 24, 2020 6:32 AM