Resume form ResultReceiver
<p>I have an activity which update my progress-bar through <code>ResultReceiver</code>, If I click on the back button and reopen the activity again my progress-bar will not update so I need to continue from <code>ResultReceiver</code>.</p>

<p>here is the code, any ideas?</p>

<pre><code>private class downloadReceiver extends ResultReceiver
{

    public downloadReceiver(Handler handler) 
    {
        super(handler);
    }

    @Override
    protected void onReceiveResult(int resultCode, Bundle resultData)
    {
        super.onReceiveResult(resultCode, resultData);
        int currProgress = 0;
        if (resultCode == downloadManager.UPDATE_PROGRESS) 
        {
            downloadProgressBar.setIndeterminate(false);
            currProgress = resultData.getInt("progress");
            downloadProgressBar.setProgress(currProgress);
            downloadProgressBar.setVisibility(View.VISIBLE);
            if (currProgress &gt;= 100)
            {
                downloadProgressBar.setVisibility(View.GONE);
                isDownloadRemain = false;
            }
        }
    }
}
</code></pre>

<p>my activity start service</p>

<pre><code>            isDownloadRemain = true;
            downloadProgressBar.setVisibility(View.VISIBLE);
            downloadProgressBar.setIndeterminate(true);
            downloadProgressBar.setMax(100);
            Intent intent = new Intent(showcaseActivity.this
                    , downloadManager.class);
            intent.putExtra("url", "http://dl1.androidina.net/dl/soft/DashClock_Widget_v1.2_%28www.Androidina.Net%29.apk");
            intent.putExtra("receiver", mDownloadReceiver);
            startService(intent);
</code></pre>
