Launch App with Parameter

Post your questions and help other users.

Moderator: Martin

Post Reply
roborat
Posts: 2
Joined: 06 May 2013 05:12

Launch App with Parameter

Post by roborat » 11 Sep 2015 05:06

Hi there

I have a few automation apps but since getting Automagic the others have gone by the by. I have recently discovered one little setback though and I am hoping someone can help me out as I am sure there will be a way to do this.

I have an app that can take parameters from Tasker to perform the function. This works using Taskers "Launch App" feature and putting the parameter in the Data field.

It would be great if I could get this working with Automagic, but the "Launch App" for Automagic does not have this feature.

Any ideas on how this can be achieved?

Cheers

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Launch App with Parameter

Post by Martin » 11 Sep 2015 18:06

Hi,

You can use action Start Activity if you want full control over the intent used to start the app.

To start an app you should usually use following configuration:
Action: android.intent.action.MAIN
Category: android.intent.category.LAUNCHER
Data URI: <the value you like>
Explicit Component: checked
Package Name: <the app to start>
Class Name: <the activity to start>

The examples-button in the action also contains templates for some common configurations.

Regards,
Martin

roborat
Posts: 2
Joined: 06 May 2013 05:12

Re: Launch App with Parameter

Post by roborat » 17 Sep 2015 01:43

OMG, that's amazing.

Thank you so much Martin. I suspected it was an intent but couldn't get it right. Can't believe I put up with it how it was for so long.

Thanks also for a great product by the way... I've been through a couple but Automagic is so intuative and versatile that it has easily outclassed the rest.

Cheers

Post Reply