protected override void OnResume()
{
base.OnResume();
ProgressDialog progressDialog1 = ProgressDialog.Show(Parent, "", "Please wait...",false);
new Thread(new ThreadStart(() => {
RunOnUiThread(() =>
{
try
{
string st="";
}
catch (System.Exception ex)
{
}
progressDialog1.Dismiss();
});
})).Start();
}
当我在 try catch 块内放置断点时,进度对话框不可见。但相同的代码在按钮单击事件中工作正常。有人面临同样的问题吗?