I have a problem with activity launching in my project.
My 'Home' activity (H) allows to choose some service in it. Lets say S11->...-> S1n is an activity flow for the service (S1). H is the LAUNCHER activity for my app.
Also, i need to switch to another app from H and back to it. As I cannot change that app behaviour, i have to declare my H activity as 'singleTask' to prevent from having several instances of it in my activity stack.
The problem is that my app cannot be relaunched without cutting away the activities that had been pushed after H. So for example if I have H-S11-S12, then press HOME and relaunch from recent apps menu I get H as a foreground activity.
Any ideas? Is there any way to get this combination working? Thanks!