Skip to content Skip to sidebar Skip to footer

Looper Threads Issue? But Not Using Animator

I am running a loop to SynthesizeToFile (in this example I will run the loop 10 times) for(int i = 0; i< 10; i++) { textToSpeech.SynthesizeToFile('SOME TEXT', null, new Java

Solution 1:

Place your UI changes within a RunOnUithread Action:

ie.

RunOnUiThread(() => 
{
    FloatingActionButtonFAB= FindViewById<FloatingActionButton>(Resource.Id.fab);
    FAB.Visibility = ViewStates.Visible;
});

Post a Comment for "Looper Threads Issue? But Not Using Animator"