Custom Functions in Thread
<p>I have a simple Question:</p>

<p>I have a Thread named rlMF. I created it this way:</p>

<pre><code>public Thread rlMF = new Thread(new Runnable() {
    public void run() {
        reloadMissingFiles();
        stopTh();
    }

    public void stopTh() {
        activityStopped = true;
    }
});
</code></pre>

<p>Now i want to call the stopTh Function from outer Thread. Why can't i simply call rlMF.stopTh(); and what can i do else?</p>

<p>Example: </p>

<pre><code>protected void onPause() {
    Log.d("Info", "destroying...");
    activityStopped = true;
    rlMF.stopTh();
    super.onPause();
}
</code></pre>

<p>Is not working...</p>
