Making sure old task completed when launching activity form service
<p>When you want to launch an activity from a service you have to add the FLAG_ACTIVITY_NEW_TASK</p>

<p>my activity marked as singleTask launch mode,
but when i start it again from the service, i get a new instance of it.
and I get to the unwanted situation where i get 2 instances of same activity, in different tasks.</p>

<p>how do I avoid this situation? is there an option to tell the service to kill old task? or use it?</p>
