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?