Here is the code
Variable declared
public String gpu2dcurent = \"1234567\";
Asynctask, after finished it should update variable gpu2dc
try to put setText into onPostExecute
protected void onPostExecute(String result) {
TextView tx = (TextView)findViewById(R.id.textView3);
tx.setText(result);
// Pass the result data back to the main activity
gpu2dcurent = result;
//Toast.makeText(getBaseContext(), result,
//Toast.LENGTH_SHORT).show();
gpu.this.data = result;
if (gpu.this.pd != null) {
//gpu.this.pd.dismiss();
}
}