shortcut format

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

shortcut format

Post by rsegoly » 24 Aug 2013 11:10

I'd like to create Android app with various buttons which call Automagic to preform actions.
I can create single shortcut using Automagic but what is the format of the message it sends so I can include in my app?

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

Re: shortcut format

Post by Martin » 24 Aug 2013 11:27

Hi,

Automagic does not allow to execute arbitrary actions from an external app. You always have to create a trigger within Automagic to handle the event and execute a flow.
There are two triggers that could be used to achieve this:
-trigger General Broadcast (you can also pass extras to Automagic)
-trigger Plugin

The plugin-trigger is probably the most flexible way and also works with other automation tools like Locale and Tasker:
http://www.twofortyfouram.com/developer

Regards,
Martin

rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

Re: shortcut format

Post by rsegoly » 24 Aug 2013 19:12

Thanks Martin
I am looking for easy solution for a demo. I have no issue calling shortcut created by AM and not AM directly, I already created some shortcuts which perform all actions but it is different files and I want to call it from one application.

Post Reply