How can I start a flow from my own android app

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
moster67
Posts: 2
Joined: 24 Jul 2017 12:22

How can I start a flow from my own android app

Post by moster67 » 13 Sep 2017 20:41

Hi,
I have written an app and I want somehow launch a flow from my app. How can I do that. Can I make Automagic listen to an intent or can I create a broadcast which Automagic can intercept to run my flow?

Help will be appreciated.

Thanks
Mike

User avatar
Desmanto
Posts: 2476
Joined: 21 Jul 2017 17:50

Re: How can I start a flow from my own android app

Post by Desmanto » 14 Sep 2017 03:22

Yes you can. Use General Broadcast Trigger at the flow. Then from your app, broadcast the intent to automagic. You can check the example here http://automagic4android.com/forum/view ... f=5&t=6868
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

moster67
Posts: 2
Joined: 24 Jul 2017 12:22

Re: How can I start a flow from my own android app

Post by moster67 » 18 Sep 2017 17:54

Thanks, works fine.

Post Reply