Difference between revisions of "Trigger: Application Launched/Closed"

m
Line 1: Line 1:
This trigger fires when an application is launched or closed. There are also two methods, due to recent changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
+
<pre style="color: black">
 +
This trigger fires when an application is launched or closed.
 +
 
 +
There are also two methods, due to recent changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
  
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
  
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
 +
</pre>
 +
<pre style="color: Teal">
 +
Supported configurations:
 +
 +
Force legacy mechanism:
 +
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.
 +
 +
Prevent notifications interfering:
 +
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.
 +
</pre>
  
 
'''Example Usage'''<br/>
 
'''Example Usage'''<br/>
Line 9: Line 22:
  
 
Application closed youtube > disable screen rotation.
 
Application closed youtube > disable screen rotation.
 +
 +
'''Example Usage:'''<br/>
 +
When the activity is recognized (in the vehicle) it connects to the car's bluetooth and will start the music on spotify (if your music application is not active in the background, it may need additional configuration.
 +
<pre style="color: Red">
 +
Activity recognition (In vehicle)
 +
</pre>
 +
<pre style="color: #3498DB">
 +
Bluethoot configure (Enable bluethooth)
 +
Bluethoot configure (Connect audio device "My car")
 +
Control media (Simulate media button (Play)"Spotify")
 +
</pre>
 +
<pre style="color: Green">
 +
</pre>

Revision as of 23:13, 20 October 2022

This trigger fires when an application is launched or closed.

There are also two methods, due to recent changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'

Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.

Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
Supported configurations:

Force legacy mechanism:
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.

Prevent notifications interfering:
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.

Example Usage
Application launched youtube > enable screen rotation.

Application closed youtube > disable screen rotation.

Example Usage:
When the activity is recognized (in the vehicle) it connects to the car's bluetooth and will start the music on spotify (if your music application is not active in the background, it may need additional configuration.

Activity recognition (In vehicle)
Bluethoot configure (Enable bluethooth)
Bluethoot configure (Connect audio device "My car")
Control media (Simulate media button (Play)"Spotify")