Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to use RunOnUiThread in Xamarin.Forms?

$
0
0

I want to show some animation while application getting data from the cloud so that's my code in my Button_Click method:

        private async void Button_Clicked(object sender, EventArgs e)
        {
            await Task.Run(() => Play_Animation());
            Get_Date_From_Cloud();
            Stop_Animation();
        }

I got an error "Android.Util.AndroidRuntimeException: " and searched for it the Android native says use RunOnUiThread method but I don't know how to use it in Xamarin.Forms, Anyone can help me please?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>