showing progress Dialog inside an async method
<p>I want to show progress Dialog inside an async event listener method. Right now, the UI compnent is only visible once the async method is finished executing. Here's my code:</p>

<pre><code>async void process_Click(object sender, EventArgs e)
    {

        launchRingProgressDialog();

        var comp = await Start();

    }

public void launchRingProgressDialog()
    {
        Activity.RunOnUiThread(() =&gt;
        {
            ProgressDialog ringProgressDialog = ProgressDialog.Show(Activity, "Processing", "Please wait", true);
            ringProgressDialog.SetCancelable(true);
        });
    }
</code></pre>

<p>The progress Dialog shows when I call the method <code>launchRingProgressDialog()</code>outside the async method, but not while the async method is running. How do I make the async method so it doesn't block the UI component?</p>

<p><strong>Edit</strong></p>

<p>As I understand, the async method runs inside the UI thread so RunOnUiThread isn't needed. I've changed my code as below but I'm still facing the same issue.</p>

<pre><code> async void process_Click(object sender, EventArgs e)
    {

        ringProgressDialog = ProgressDialog.Show(Activity, "Processing", "Please wait", true);

        var comp = await Start();

        ringProgressDialog.Dismiss();

        }
</code></pre>