Start Activity without bringing Application to front

In the manifest set the task affinity of the lock screen. That should sort you out without using FLAG_ACTIVITY_MULTIPLE_TASK.


After a lot of searching I was able to get the results I desired by adding a FLAG_ACTIVITY_MULTIPLE_TASK. This allows the lock activity to start and end without bringing the parent application to the front.

I will continue to test this solution and post any drawbacks I find. If anyone else would like to chime in on this feel free...I know this flag has drawn criticism in the past.

Thanks, Josh