Showing toast before an intesive work of processor
<p>I need to show a Toast message before a method using an intense processor work. The problem is that the Toast only shows after this method, even calling this method in another Thread.</p>

<p>How can i show the Toast before ?</p>

<p>EDIT: The code is too long for showing here ... but i will resume it ... </p>

<p>...</p>

<pre><code>Toast.makeText(getBaseContext(),"Text", Toast.LENGTH_SHORT).show();
proccess.setRun();
</code></pre>

<p>//In the Proccess class that implements Runnable ...</p>

<pre><code>public void setRun(){
    thread= new Thread(this);
    thread.setPriority(Thread.NORM_PRIORITY);
    thread.start();
    running=true;
}
public void run() {
        bytes=byteGrooveMaker();
        prepare(grBytes);
}
</code></pre>

<p>//byteGrooveMaker() is a method in Proccess class that requires lot of processor work.</p>
