call external program...

Post your questions and help other users.

Moderator: Martin

Post Reply
juffle
Posts: 4
Joined: 16 Jan 2014 02:15

call external program...

Post by juffle » 16 Jan 2014 02:31

Hi,

I would like to call volume profile of "volume ace"...

I know it can be done with tasker this way:

Send intent,
Action: it.braincrash.volumeace.SET_PROFILE
Extra: profile:PROFILE_NAME
Package: it.braincrash.volumeace
Class: it.braincrash.volumeace.ProfileSet
Target: activity

So I was wondering if it's possible with automagic to do the same ?

Thank you

juffle
Posts: 4
Joined: 16 Jan 2014 02:15

Re: call external program...

Post by juffle » 16 Jan 2014 13:32

I've found that I could use the root command action with the following...

am start -a it.braincrash .volumeace.SET_PROFILE -n it.braincrash.volumeace/.ProfileSet

But I'm not sure where to write the extra... Profile:PROFILE_NAME

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

Re: call external program...

Post by Martin » 17 Jan 2014 11:01

Hi,

You can add extras in the field Extras like this:
putString("profile", "PROFILE_NAME");

There's also an example available on the help page of the action Start Activity that shows how a predefined subject can be passed to a mail client.

Regards,
Martin

juffle
Posts: 4
Joined: 16 Jan 2014 02:15

Re: call external program...

Post by juffle » 19 Jan 2014 19:53

Thank you,

I've found it is working this way also...

am start -a it.braincrash.volumeace.SET_PROFILE -e Profile PROFILE_NAME -n it.braincrash.volumeace/.ProfileSet

Post Reply