CalledFromWrongThreadException:Only the original thread that created a view hierarchy can touch its views
<p>I tried to change a value of a ListView adapter using a thread, but it throws an exception that is CalledFromWrongThreadException
can anyone call a thread that changes a value of any View element?
here is my code:</p>

<pre><code>new Thread(new Runnable(){

    public void run() 
    {
        ap=(ArrayList&lt;Application&gt;) getBoughtApps(android_id);
        adapter1 = new MyCustomAdapter(ap);
        listView = ( ListView ) MainActivity.this.findViewById(R.id.listview);
            changeAdapter();    
    }
}).start();
</code></pre>
