【发布时间】:2013-12-23 10:52:41
【问题描述】:
我想在将结果输入 OStateUserId 对象后运行此语句。
details.Text = OStateUserID.name + "\n" + OStateUserID.population);
bStateuserID.Click += async delegate
{
details.Text=" ";
Guid x = new Guid("33F8A8D5-0DF2-47A0-9C79-002351A95F88");
state OStateUserID =(state) await obj.GetStateByUserId(x.ToString());
details.Text = OStateUserID.name + "\n" + OStateUserID.population);
};
GetStateByUserId()方法返回class State的对象。
它异步运行。完成操作后,我想将 name 和 population 分配给 TextView 详细信息。
在这种情况下我该如何使用RunOnUIThread()?
【问题讨论】: