Scene transitions in new versions of Tasker/Android

237 views
Skip to first unread message

Nenea Aglaia

unread,
Oct 9, 2017, 10:06:23 AM10/9/17
to Tasker
With the new versions of Tasker/Android (5, 7), one nasty thing happens to scenes when trying to destroy them behind another scene....scene comes top most on the screen, and that creates this flash effect that is really disturbing...

I have done everything I could think of...tried all the effects, fading, switched scene type from overlay, dialog etc, but the flashing happens for all.
In the end, I created a blank scene (all black background, since my scenes are on a dark theme) which I load in the beginning and keep alive for the time the scene-to-scene transitions are happening.
The problem is now destroying this one, because it creates a flash effect, too.

So, do you have any suggestions on how to do this?

This is my current transition strategy
  • Load blank scene
  • ....
  • ....
  • Create scene 3
  • Destroy scene 2 (no effect)
  • Show scene 3 (slide in from right)
  • ...
  • ...
  • Destroy blank scene (flash effect happens)

What I was trying (and it was working in Android 6 and Tasker 4)...didn't need a third, background scene, at all...
  • ....
  • Create scene 3
  • Show scene 3
  • Destroy scene 2
  • ...



Thank you in advance.

Alexander Graetz

unread,
Oct 10, 2017, 2:52:56 PM10/10/17
to Tasker
Use Hide Scene instead. Destroy all scene if main scene/app is closed.

Nenea Aglaia

unread,
Oct 11, 2017, 1:43:07 PM10/11/17
to Tasker
Hide doesn't help, forgot to say that my Destroy routine calls Hide before it destroys.
That being said, I saw another post here that explained the same phenomenon, in both Android 7.0, 7.1...Pent mentioned there he'd be looking at it...if it's on his list, I'm good...

Tasker Pro

unread,
Oct 11, 2017, 3:28:46 PM10/11/17
to Tasker
Instead of a blank scene with an all black background - use a scene that has a transparent background and contains only one element - an all black rectangle the full size of the scene. (or whatever size you need it at).

Then you should be able to use the "Element Visbility" action to slowly fade it out. (The Animation Time parameter controls how long it will take).

After the rectangle has disappeared, you should be able to destroy that Scene without it flashing, since the Scene's background is transparent.

Alexander Graetz

unread,
Oct 11, 2017, 5:09:24 PM10/11/17
to Tasker
Use hide and just don't destroy. Leave them created. Destroy your scenes when your home scene is exited = your app is closed. @Pent a "destroy all" would help.

Delords Arthur

unread,
Jul 17, 2018, 1:52:03 AM7/17/18
to Tasker
Hi Alexander

How does this workaround affect memory? Most of my scenes have 20+ elements in them, hiding them would still keep them in memory and cause crashes wouldn't it?

Also I'd have to perform a sort of "reset" on the scene in order to populate it with fresh data. I just hope we'll get a fix soon...

Alexander Graetz

unread,
Jul 17, 2018, 4:53:45 PM7/17/18
to Tasker
You're right hiding doesn't work well. It will fill up the ram pretty fast. Don't expect a workaround anytime soon. I don't think this is anywhere near the top of the list of priorities.

What I do is use a scene as "background" that I keep open and my work scene layered on top of it. Now if I need to switch the work scene, I destroy it and create/show the next one. The background scene is briefly visible in between. It's not great but the best I could do. I've explained this a little more some time ago here. Please search for it

Delords Arthur

unread,
Jul 20, 2018, 3:08:44 AM7/20/18
to tas...@googlegroups.com
Alright, thanks

On Tue, Jul 17, 2018, 20:53 'Alexander Graetz' via Tasker <tas...@googlegroups.com> wrote:
You're right hiding doesn't work well. It will fill up the ram pretty fast. Don't expect a workaround anytime soon. I don't think this is anywhere near the top of the list of priorities.

What I do is use a scene as "background" that I keep open and my work scene layered on top of it. Now if I need to switch the work scene, I destroy it and create/show the next one. The background scene is briefly visible in between. It's not great but the best I could do. I've explained this a little more some time ago here. Please search for it

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/r55TUnR1qnA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages