The three profiles shown below are meant to activate for three different apps:
Profile: FBReader (117)
Application: FB Library
Enter: Anon (124)
A1: Flash [ Text:Fbreader triggered Long:Off ]
A2: Perform Task [ Name:Library2 Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A3: Perform Task [ Name:CoverTimer Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
Profile: Ebookdroid (47)
Application: Bookshelf
Enter: Anon (132)
A1: Flash [ Text:Ebookdroid trigger Long:Off ]
A2: Perform Task [ Name:Library3 Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A3: Perform Task [ Name:CoverTimer Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
Profile: PerfectViewer (125)
Application: My Bookshelf
Enter: Anon (133)
A1: Flash [ Text:Perfect viewer triggered Long:Off ]
A2: Perform Task [ Name:Library4 Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A3: Perform Task [ Name:CoverTimer Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
I've been chasing odd behavior in an AppFactory-made app and am back with the Tasker routines. I only discovered what was happening because I wanted to set a variable when the profile kicked in. I saw the variable was not being set correctly and that led me to add the flash steps. To my surprise, selecting any one of the three apps fires up all three profiles! Whichever gets in there last is the one that takes over.
What in the world can be causing this effect?
Better, how can I get around it? Please don't say "just use such-and-such plugin app" because I am working with an Android 2.1 e-reader and it's all got to be done mostly the hard way with an ancient version of Tasker.
I would hate to poll for the app in the foreground via shell script, but right now that's the only thing that comes to mind.