Destroy a scene running in the background without using wait timer

365 views
Skip to first unread message

Amardeep Kahali

unread,
Sep 3, 2013, 3:59:20 PM9/3/13
to tas...@googlegroups.com
I have a simple "Sound Profiles" selector scene that I run from tasker widget. I click on the widget, scene is displayed as a dialog, I select an option and then scene is "destroyed".
Instead if I were to press the Back/Home button the scene will run in the background, as expected. To stop this, I used a wait timer to destroy the scene.
The problem with that is during the wait timer countdown, clicking the widget will not display the scene. You have to wait for the timer to complete in order to run it again.
Does anyone have a solution to this?

Matt R

unread,
Sep 3, 2013, 4:19:34 PM9/3/13
to tas...@googlegroups.com
In your Show Scene action, uncheck "Continue Task Immediately" and add an action right after that to destroy the scene.

Matt

Amardeep Kahali

unread,
Sep 3, 2013, 11:07:47 PM9/3/13
to tas...@googlegroups.com
Ahh... that was embarrassingly simple!!
Thanks a lot Matt.

writer

unread,
Sep 4, 2013, 10:43:40 PM9/4/13
to tas...@googlegroups.com
In your Show Scene action, uncheck "Continue Task Immediately" and add an action right after that to destroy the scene. 

Matt

It's a great idea. But it doesn't  be used in the complex scenes.
For example, make a activity scene and want input a text with a dialog scene. The dialog doesn't disappear until the activity scene is destroyed.

Besides, the scene's status is 'hide' when press back button and it is 'visible' when press home button.
And I can destroy the scene when the status is 'hide' with back button. But I cannot destroy the scene when it is 'visible' with home button.

Any more ideas?

Wes Stacey

unread,
Sep 5, 2013, 10:54:24 AM9/5/13
to tas...@googlegroups.com
This issue was brought up int he Beta thread, basically when other activities are run scene's disappear but still show up as "visible" when running the scene test action, and Tasker seems to crash (at least for me) when you attempt to destroy them though the "Destroy Scene" action when they are in this state. You have to manually destroy them from within the app.

Like i said Pent should have fix in the next Beta. wether the fix is for the "hidden"/"visible" reporting issue or the fact that other actives hide the scenes.

writer

unread,
Sep 5, 2013, 11:55:17 AM9/5/13
to tas...@googlegroups.com
It's just me. I brought it to the beta thread. The above words are written before Pent's reply

2013년 9월 5일 목요일 오후 11시 54분 24초 UTC+9, Wes Stacey 님의 말:
Reply all
Reply to author
Forward
0 new messages