Switch to app instead of launch app?

316 views
Skip to first unread message

Xuefer Tinys

unread,
Oct 18, 2014, 1:07:16 AM10/18/14
to tas...@googlegroups.com
How to switch to app instead of launch app?

There's a difference between Tasker launcher app vs Launcher that "open" an app
with Launcher, it will run a new instance the app if the app is not already running, but will switch to the app if it's already running
with Tasker launch app action, it will always try to open a new app (and of course only 1 instance is running). The running app may be bring back to home/first/initial page of the app, reinitialize something, or even stop (forget) what it is doing currently. I thought it would open a new tab for chrome but it doesn't. But it happens with Amap (http://mobile.amap.com/download.html)

Rich D

unread,
Oct 18, 2014, 7:06:07 AM10/18/14
to Tasker Google Groups Post


> How to switch to app instead of launch app?
>
> There's a difference between Tasker launcher app vs Launcher that "open" an app

Hopefully someone with more knowledge of this will chime in.  This is what I think i know about this.

The way a app is launched is controlled by 'flags' that are set in the 'intent' that  calls for the launch.  Tasker has a 'send intent' action however you can not set flags with this action.  I have blindly hammered out a few intents to solve these types of issues. The only way i know of to do this with tasker is with the shell command 'am start'  this is much more of a advanced feature and will require a lot of research if you are not familiar with it.  There is a lot of info on this forum on how to construct a 'intent' but it can prove very challenging.  

Pent

unread,
Feb 20, 2015, 3:58:47 PM2/20/15
to tas...@googlegroups.com
I've added an option for this for next update.

Pent
Reply all
Reply to author
Forward
0 new messages