Tasker: launch app when you plug in headphones
Another Tasker post, I love how you can automate almost everything you usually have to do manually. This is a very easy task, but I find it very useful. When I am at work, I listen to Noisli. I find this helps me keep my focus, but you can also do this with Spotify or any other app. I listen to this on my phone, but when I have a meeting, I do take my phone with me.
Therefore I made a task that will launch Noisli when I plug in my headphones, and kill the app when I unplug them:
- Go to the tab
TASKS
and add a new one, calledLaunch Noisli
. - Add an action
App -> Launch App
, and select the app you want to open. - Press back button to confirm.
- Add another task called
Kill Noisli
. - Add the action
App -> Kill App
, and select the app you want to close when you unplug your headphones. - In tab
PROFILES
, add a new profileState -> Hardware -> Headset Plugged
. Press back button to confirm. - Link task
Launch Noisli
. This will launch the app when your headset is plugged in. - Long press
Launch Noisli
in the profile and pressAdd Exit Task
. - Link
Kill Noisli
to the exit task and it will kill the app when you disconnect your headphones.