Disable "back" button from killing scene or alternate ways to kill task

564 views
Skip to first unread message

hollywoodfrodo

unread,
Jan 18, 2013, 4:47:40 PM1/18/13
to tas...@googlegroups.com
I have a task that pops up a scene and uses "Say" command to read large amount of text that is broken up into 5-8 pieces (variables).  There are buttons on scene to "exit" and "stop" the speaking. 

Here's my problem... If I display scene as "blocking overlay" then the back button has no affect on it BUT when a call comes through it shows up BEHIND the scene when I would prefer a call to be on top of the scene; however, if I display the scene as a dialog or activity (which allows incoming calls to be seen on top of them) then you can press the "back button" on your phone which will clear the scene but won't stop the task from running so now the scene is gone with no button to press to stop the task running and it'll keep talking until it gets the end of the entire dialogue because you now have no way to stop it.

Incidentally, I noticed that when faced with the above using the "cancel" button back in tasker on the main task kills everything EVEN if it's in the middle of a "say" task - is there any feature in tasker I can use to implement that kind of killing power?

Thanks,
Eric

GermainZ

unread,
Jan 19, 2013, 6:41:43 AM1/19/13
to Tasker
Before launching your scene, launch a task that will monitor the
scene's status.
Should the status become hidden, stop all tasks and destroy the scene.
If it becomes uncreated, just stop the monitor task.

An easier way would be to uncheck the "Continue task immediately"
button when displaying the scene, but that only works in simpler tasks
(if you don't need to do anything once the scene is displayed).

Pent

unread,
Jan 19, 2013, 7:26:26 AM1/19/13
to Tasker
> I display the scene as a dialog or activity (which allows incoming calls to
> be seen on top of them) then you can press the "back button" on your phone
> which will clear the scene but won't stop the task from running so now the
> scene is gone with no button to press to stop the task running and it'll
> keep talking until it gets the end of the entire dialogue because you now
> have no way to stop it.

Back configuration is coming before too long.

> Incidentally, I noticed that when faced with the above using the "cancel"
> button back in tasker on the main task kills everything EVEN if it's in the
> middle of a "say" task - is there any feature in tasker I can use to
> implement that kind of killing power?

Nope. But you can stop a say in the middle if you check Continue
Immediately in the Say action. The Shut Up action will then stop it
mid-speech.

Pent

hollywoodfrodo

unread,
Jan 21, 2013, 4:16:19 PM1/21/13
to tas...@googlegroups.com
Hi Pent,

Back configuration sounds great!  Look forward to that.

I can't do "continue immediately" & "shutu'" because then it starts to "say" the next section before it's through with the current section. I did try that...turned my phone into a blabbering mess. :-)

Sam

unread,
May 31, 2013, 7:00:12 AM5/31/13
to tas...@googlegroups.com
how is back configuration coming along?

Danielo515

unread,
Jul 18, 2014, 1:44:31 AM7/18/14
to tas...@googlegroups.com
I have a very similar problem.

Why not just let tasker "kill" a task? You can do it from the tasker UI

Pent

unread,
Jul 18, 2014, 1:54:35 AM7/18/14
to tas...@googlegroups.com

I have a very similar problem.

Wasn't clear to me which problem you mean.

Why not just let tasker "kill" a task? You can do it from the tasker UI

You can use the Stop action.

Pent 

Danielo515

unread,
Jul 18, 2014, 3:32:57 AM7/18/14
to tas...@googlegroups.com
I have opened a new thread with my exact problem a while ago:


Thanks
Reply all
Reply to author
Forward
0 new messages