Returning to previous screen after receiver activity
<p>I have a app that has a activity that can be started from the start
menu and a activity that is started by a broadcast receiver.</p>

<p><img src="http://i.stack.imgur.com/iTQZi.jpg" alt="enter image description here"></p>

<p>Now on boot , if the receiver is called , the "event viewer" activity is
started...after backing out of this activity user returns to previous
screen (could be homescreen or whatever user was doing) .. this is how it
should be.</p>

<p>But if i start the "main" activity from the main launcher, and press
the home button to go back to the home screen..the problem begins.
Now if the receiver is called the "event viewer" activity is shown.
if the user backs out of the "event viewer" activity (or i call finish() ) it will show the "main" activity(still running in background) instead of the previous thing the user was doing (like home screen).</p>

<p>This is not how i want it..because it causes users after dismissing a
calendar event (the purpose of my app) to return to eg the settings
from the main app..</p>

<p>If i call finish() in onpause , it works ok...but that is not the way
it should work.</p>

<p>Any clues?</p>

<p>Hope the problem is clear , since english isn't my first language i
found it hard to explain the problem :-)</p>

<p>Thanks..</p>
