get a string value from a thread
<p>can someone tell me, how do get a Stringvalue from a thread to the mainActivity?</p>

<p>i have a thread like this:</p>

<pre><code>public class XMLHandler extends DefaultHandler {

XMLDataCollected data = new XMLDataCollected();

    ......
    ......

public String getInformation() {

    String information = "";

        if (data.getData().equals("residential")) {
            information = "Stadt";
        }           
        return information;
}   

}
</code></pre>

<p>in the mainActivity i tried to set the value into a textview like this:</p>

<pre><code>textView.setText(xmlHandler.getInformation());
</code></pre>

<p>i does not work after all. what i am doing wrong? any solutions and advices? thanks in advance</p>
