Async task can't update GUI
<p>My basic question is how do you update the GUI with AsyncTask.  I am setting a <code>String</code> in <code>onPostExecute</code> that the GUI thread references.  Using logging, I can see the <code>String</code> getting set in the <code>onPostExecute</code> method, but it never gets set on my GUI under my <code>onClickListener</code> to update the GUI.  Any help is appreciated.</p>

<p>Main Program:</p>

<blockquote>
  <p>public class Main extends Activity {</p>

<pre><code>/** Called when the activity is first created. */
Arduino.ToAndroid.Temperature.GetJSON jsonHttpClass = new Arduino.ToAndroid.Temperature.GetJSON();

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    new GetJSON().execute(url_to_Http);
}
View.OnClickListener temperatureListener = new View.OnClickListener() {
    public void onClick(View v) {
        // TODO Auto-generated method stub
        // buttonTemperature = json.getTemp();
        tempView.setText(jsonHttpClass.value);
        Log.i("ROSS LOG", "Button Clicked");
    }
}; }
</code></pre>
</blockquote>

<p>Async Task:</p>

<blockquote>
  <p>class GetJSON extends AsyncTask {</p>

<pre><code>public String value;

@Override
protected String doInBackground(String... url) {
    String result = this.getHttpJson(url[0]);
    return result;
}

@Override
protected void onPostExecute(String result) {
    value = new String(result);
    Log.i("ROSS LOG", value);
} 
</code></pre>
  
  <p>}</p>
</blockquote>
