Thanks to pointing that out.
If we can't use this solution I'll have to figure sth out, because checking if some activity has been finished is not enough, because in application flow we close some activities explicitly.

Has any one done sth like that before?