Android - Is it possible to use ui api in the other class and thread expect Activity?
<p>I have some questions about android ui api.</p>

<p>Give a example, that I want to implement.</p>

<p>Main_UI_Thread.java :</p>

<pre><code>public class Main_UI_Thread extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        /*** do something about layout ***/
        ...

        DisplayClass dc = new DisplayClass();
        Thread th = new Thread(dc);
        th.start();
    }
}
</code></pre>

<p>DisplayClass.java :</p>

<pre><code>public class DisplayClass extends Thread{
    @Override
    public void run() {
        if( something happen ) {
             to display Dialog or Toast show
             and handle the ui listener
        }
    }
}
</code></pre>

<p>I know the message passing can be do that;</p>

<p>But I want the ui program is be implemented in DisplayClass.java</p>

<p>Is it possible??</p>

<p>My English is  not well.^^" </p>

<p>Thanks everybody to give me some suggestions. :P</p>
