Falied to assign value to textview in a thread class
<p>I have a textview in one of the page named txtdownloadStatus.I have thread class that downloads some data and if completed i want to show completed in the textview that is placed in the page i told earilier.</p>

<p>My user interface name is </p>

<pre><code>download_manifest.txtdownloadStatus.setText("Completed Download");
</code></pre>

<p>The thread class is as given below</p>

<pre><code>public class thread_download extends Thread {
    private download_helper downloadhelper;
    private Context context;
    public thread_download(Context context) {
        this.context = context;
    }
     public void run() {

           downloadhelper = new download_helper(this.context);

            try {
                downloadhelper.DownloadProblemAndReasonCode();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            try {
                downloadhelper.DownloadNewManifest();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            try {
                downloadhelper.DownloadNewMessages();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            downloadhelper.DeleteOldManifest();
            try {
            download_manifest.txtdownloadStatus.setText("Cpmpleted");
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

}
</code></pre>

<p>The problem is that when i tried to set value to the textview in the thread class.It shows an error like given below</p>

<p>android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.</p>

<p>Will anyone help me</p>
