Android: How To Detect When Activity Inside a Thread is Finished
<p>I'm starting an activity inside a thread like this:</p>

<pre><code>Thread newPage = new Thread() {
    @Override
    public void run() {
        Intent i = new Intent();
        i.setClass(getBaseContext(), Page.class);
        i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_ANIMATION);
        getBaseContext().startActivity(i);
    }
};
newPage.start();
</code></pre>

<p>and I want to call a function when the activity finishes - how can i do that?</p>
