activate Flow from MIT App Inventor

Post your questions and help other users.

Moderator: Martin

Post Reply
eggger
Posts: 13
Joined: 16 May 2013 15:19

activate Flow from MIT App Inventor

Post by eggger » 13 Mar 2016 09:54

I want to activate Flow from "MIT App Inventor"

I thought of using shortcut trigger for the flow
and activate it by ActivityStarter from app inventor

I need some help to fill those fields
snip_20160313115315.png
snip_20160313115315.png (46.84 KiB) Viewed 16051 times

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

Re: activate Flow from MIT App Inventor

Post by Martin » 14 Mar 2016 18:56

Hi,

I would recommend to start the flow using a broadcast intent. Does MIT App Inventor support a way to send a broadcast?
If yes, you could add a trigger General Broadcast with field action set to start.your.flow and then send a broadcast intent with this action from App Inventor.

Regards,
Martin

eggger
Posts: 13
Joined: 16 May 2013 15:19

Re: activate Flow from MIT App Inventor

Post by eggger » 15 Mar 2016 06:23

I don't think broadcast intent is possible ,
can you suggest another way to start a Flow?

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

Re: activate Flow from MIT App Inventor

Post by Martin » 15 Mar 2016 19:50

Then you can try using the shortcut-trigger. Try to fill in following values in the UI shown on your screenshot:
Action: ch.gridvision.ppam.androidautomagic.intent.action.TRIGGER_SHORTCUT
ExtraKey: name
ExtraValue: the title defined within the trigger shortcut in Automagic

eggger
Posts: 13
Joined: 16 May 2013 15:19

Re: activate Flow from MIT App Inventor

Post by eggger » 16 Mar 2016 14:43

it doesn't worked :(
Screenshot_2016-03-16-16-39-33.png
Screenshot_2016-03-16-16-39-33.png (126.02 KiB) Viewed 16009 times

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

Re: activate Flow from MIT App Inventor

Post by Martin » 16 Mar 2016 20:40

I've missed the DataType. Please enter application/x-androidautomagic in field DataType and see if it works.

eggger
Posts: 13
Joined: 16 May 2013 15:19

Re: activate Flow from MIT App Inventor

Post by eggger » 16 Mar 2016 20:58

great success :D

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

Re: activate Flow from MIT App Inventor

Post by Martin » 17 Mar 2016 19:20

:D

Post Reply