Showing posts with label Spinner Progress Bar Xamarin Android C#. Show all posts
Showing posts with label Spinner Progress Bar Xamarin Android C#. Show all posts

Saturday, 7 January 2017

Spinner-Progress-Bar-Xamarin-Android-C#

Spinner-Progress-Bar-Xamarin-Android-C#


 
var progressDialog = ProgressDialog.Show(this, "Please wait...", "Checking info...", true);
    new Thread(new ThreadStart(delegate
    {
    //Your Code
    RunOnUiThread(() => Toast.MakeText(this, "Toast within progress dialog.", ToastLength.Long).Show());
//Hide Progress Dialog after completion of Task
            RunOnUiThread(() => progressDialog.Hide());
  })).Start();