Page 1 of 1

call external program...

Posted: 16 Jan 2014 02:31
by juffle
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

Re: call external program...

Posted: 16 Jan 2014 13:32
by juffle
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

Re: call external program...

Posted: 17 Jan 2014 11:01
by Martin
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

Re: call external program...

Posted: 19 Jan 2014 19:53
by juffle
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