sending intent with droidscript and receiving with tasker

439 views
Skip to first unread message

Larry Coleman

unread,
Aug 27, 2018, 5:10:33 PM8/27/18
to DroidScript
Hi all. i am new to droidscript and love the app. i am trying to launch a task in tasker with droidscript but can not figure it out or find any good info on how to perform this.I know i have to use intent but everything i try does not work. Any help in the right direction would be much appreciated.
larry

Steve Garman

unread,
Aug 28, 2018, 3:47:57 AM8/28/18
to DroidScript
I'm speaking from a vast fund of ignorance here as I almost never use Tasker.

I do have a note though, which I think came from some old Tasker documentation

"Tasker can only receive intents which are sent to broadcast receiver components, not to activities or services."

So you may have more luck with app.BroadcastIntent()

Larry Coleman

unread,
Aug 29, 2018, 6:31:19 AM8/29/18
to DroidScript
thanks for the reply steve! oh i see. this explains why it is not working. so if i was to send BroadcastIntent would it be app.Broadcastintent( com.tasker.test, null, "android.intent.action.testing123" null, null, null, null ); and on tasker i put in the intent action line test123. is this correct?

Larry Coleman

unread,
Sep 4, 2018, 3:06:20 PM9/4/18
to DroidScript
any help in the right direction would sure be appreciated. thanks

Steve Garman

unread,
Sep 4, 2018, 3:41:00 PM9/4/18
to DroidScript
app.BroadcastIntent(action,category,data,type,extras,options )
does not take a packagename so you can drop the com.tasker.test

The action is the first argument so you can drop the first null.

I don't know how tasker deals with intents but if you really don't want any payload, that could be enough to test it.

Bill DeWitt

unread,
Sep 4, 2018, 3:43:53 PM9/4/18
to DroidScript
I would be interested in anything done on this too. I am in the middle of something else, but I have a lot of stuff in Tasker that I would love to be able to fire up with DroidScript. Especially if I could sent it a message and get one back. 

Steve Garman

unread,
Sep 4, 2018, 3:47:57 PM9/4/18
to DroidScript
Getting a message back from Tasker is a piece of cake.

That's what the original "Receive Intent" sample did before DS could even send intents, if I recall correctly.

Take a look in the samples that come with DroidScript.

Steve Garman

unread,
Sep 4, 2018, 3:59:59 PM9/4/18
to DroidScript
These were the original instructions for what became the "Receive Intent" sample https://groups.google.com/d/msg/androidscript/Ozq8f-mc8R4/Fq5J8y18zggJ
Reply all
Reply to author
Forward
0 new messages