This image shows a fixed Text only
protected String doInBackground(String... params) {
// TODO Auto-generated method stub
// SaveAndCheck sac=new SaveAndCheck(getApplicationContext());
System.out.println("comes");
ar.clear();
getContacts(check_string);
return null;
}
从getContacts(check_string)方法获取联系人姓名; .want在进度条中显示名称
答案 0 :(得分:0)
您可以在runOnUiThread
方法
doInBackGround()
runOnUiThread(new Runnable() {
@Override
public void run() {
txtView.setText("VARIABLE");
}
});
或者你可以使用onProgressUpdate()