Thanks a lot! It works now!
As I couldn't find an example, I'm posting what I created to help someone else.
Tasker always appears in the notification area, so I had to create a verification for
Tasker to be the first in line -> Don't expand the status bar,
OR another app has a notification, thus Tasker not first in line -> Expand the status bar.
A profile is created with event : Display Unlocked redirecting to the following task :
//create a variable with a return
1. Variable Set
Name: %ret
To: (fill in one return/enter)
//This dumps a lot of info concerning the notifications in the variable %Running
2. Run Shell
Command: dumpsys notification
Timeout: 0
User Root: Checked
Store Output in: %Running
//Split the text from variable %Running (set in point 2) at each break/return (set in point 1)
3. Variable Split
Name: %Running
Splitter: %ret
//If tasker doesn't appear in the 3rd line of the notification dump, it means another app has a notification
4. If: Running3 !~ *tasker*
//Expand the status bar
5. Status Bar
Set: Expanded
//End if
6. End if
At last... I hope there wasn't a much easier method :-)
Op zaterdag 30 april 2016 05:30:38 UTC+2 schreef Rich D: