How on Earth do I remove a scene?

koragg97

Senior Member
Aug 16, 2013
1,663
430
113
23
Sofia
www.classicracing.cba.pl
Pretty much like the title says - neither HideScene nor DestroyScene work. I'm using ShowScene to activate it and it's fine but i need to remove it after a 5 second Wait statement and can't figure out how. Any help is appreciated.
 

ktmom

Retired Forum Moderator
Apr 22, 2015
5,186
3,372
0
Deep Space Station K7
It works fine in my device so...
What version tasker?
What device?
What OS?
What does the log say?

Please export and paste here a DESCRIPTION of the task. Long press the task, 3-dot menu -> export -> Description to Clipboard

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
 

koragg97

Senior Member
Aug 16, 2013
1,663
430
113
23
Sofia
www.classicracing.cba.pl
I'm using version 5.1 of Tasker on my Galaxy S5 running Nemesis Reborn ROM which is android 6.0.1. And here's the task description:
HTML:
AOD On (12)
	A1: Java Function [ Return:cr Class Or Object:CONTEXT Function:getContentResolver
{ContentResolver} () Param: Param: Param: Param: Param: Param: Param: ] 
	A2: Java Function [ Return: Class Or Object:android.provider.Settings$System Function:putInt
{boolean} (ContentResolver, String, int) Param:cr Param:aod_mode Param:1 Param: Param: Param: Param: ] 
	A3: If [ %LOCKED eq 1 ]
	A4: Show Scene [ Name:BlackScene Display As:Activity, No Bar, No Status, No Nav Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:eek:ff Show Over Keyguard:eek:n Continue Task Immediately:eek:ff ] 
	A5: Secure Settings [ Configuration:Screen Bright
1 Second Timeout (Seconds):3 ] 
	A6: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ] 
	A7: Hide Scene [ Name:BlackScene Animation:System ] 
	A8: End If
The %LOCKED variable is set correctly so that's not the problem. The log is attached below.
After ID 12.4 there should be a Wait 5 seconds task and then the HideScene task but there is nothing, yet the moment I unlock my phone those two tasks execute (12.6, 12.7 and 12.8 at the top). At least that's how I understand it. Is it a problem that I want to hide the scene while the screen is locked and off? Honestly I have no idea what could be wrong. There are also no errors in the log.
 

Attachments

Last edited:

ktmom

Retired Forum Moderator
Apr 22, 2015
5,186
3,372
0
Deep Space Station K7
Is tasker excluded from battery optimization? Have you tried using "Reliable Alarms” in preferences?

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
 

ktmom

Retired Forum Moderator
Apr 22, 2015
5,186
3,372
0
Deep Space Station K7
Try pausing the requirement for a locked device. I suspect, as you do, that the looked screen is the problem. The handling changed starting in Marshmallow.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
 

koragg97

Senior Member
Aug 16, 2013
1,663
430
113
23
Sofia
www.classicracing.cba.pl
Try pausing the requirement for a locked device. I suspect, as you do, that the looked screen is the problem. The handling changed starting in Marshmallow.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
I somehow made it work now. Changed the profile/tasks a bit and does exactly what I want it to (at least for the past 10mins lol). Will observe it today and if all's well will make a new topic here as tutorial as what I did was fix a bug preventing the Always-On Display to appear while the phone is locked and screen is off (normally it needs a screen cycle for changes to take effect). Thanks for your help mate :) Hopefully it continues to work as intended.

PS: I also shut down Tasker completely after each change and before each test. Maybe it had some old variables stuck before so that's why it didn't work yesterday, who knows? :D