In the previous post, I have done the guide to run shell actions and I was asked few times to share similar write up about the intents. I seen another post that focuses on listing intents, so there was no point typing it all again, but instead I focused on how to find, construct and use intents in tasker, either through the Tasker Intent action or AutoShare.
I hope you will find this useful!
Android Intents in Tasker
Related
I was wondering if it would be possible to use tasker to send intents to activate certain moto features during more refined contexts. Like have the command talk to me executed to turn on "talk to me" or sleeping mode etc. I don't have programming experience so not sure what to look for in the APK.
rapiollymega said:
I was wondering if it would be possible to use tasker to send intents to activate certain moto features during more refined contexts. Like have the command talk to me executed to turn on "talk to me" or sleeping mode etc. I don't have programming experience so not sure what to look for in the APK.
Click to expand...
Click to collapse
Its possible to send intents to apps using Tasker, I'm doing it to control my media app and my home automation app. All you need to do is to find what intents you need to use then its easy to configure tasker to send it. Maybe you could use an app to find your the correct ones like
This app might help you intercepting/identifying intents: https://play.google.com/store/apps/details?id=uk.co.ashtonbrsc.android.intentintercept
Hello everyone,
I want an event to trigger such that whenever a text is shared from any app (context) by using the SHARE button , say Chrome browser or Opera mobile, a sound should PLAY (task). how do I achieve the event trigger?
Many thanks for helping.
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Ratchet_Guy said:
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Click to expand...
Click to collapse
Thank you for the reply.
I actuallly succeded doing the thing with Autoshare. [https://play.google.com/store/apps/details?id=com.joaomgcd.autoshare&hl=en]
1. Taker> Event> Plugin> Autoshare> Command=android.intent.action.SEND (rest all parameters default)
2. Taker> Task> Alert> Beep.
So, whenever I share any data, I automatically hear a beep!
Many thanks!
Quit scratching your head trying to remember how to configure Tasker and use my initial Tasker configuration checklist!
Features include a bullet list of configuration and setting preference I typically use when I installing Tasker on a wiped or new device.
Article Link
Enjoy!
hello, you know if there is a way to do this with a task?
kurokirasama said:
hello, you know if there is a way to do this with a task?
Click to expand...
Click to collapse
Hey there! Unfortunately I do not... I wish there was though! If you are rooted there is always TiBu, I used to just do that until I stopped rooting my devices a few years ago. Thanks for reading my post!
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
alienyd said:
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
Click to expand...
Click to collapse
That method can do a few things however it will handle a very limited amount of items compared to my list. Hope that helps!
I am interested in placing a google Home mini in my old parents home and have it remind them of tasks and activities they should be doing every day.
Once the time of the task is over, ask them simple canned questions like did you do it? did you go there? was the task completed? and based on the answer to log the results in a table I will create to follow up on them living the plan we put together.
Their daily plan will be in an online table list of activities I will be creating as an excel table on a weekly basis.
The initial challenge is to turn a task list into scheduled reminders that will be read out loud at the set times on their mini speaker.
The other Challenge is to ask if the tasks was completed and the score they gave to it and and log it in the table I will read daily.
Is someone here familiar enough with Google home to help create the solution?
Thanks in Advance
Dany
Hello, I think that your question is very interesting.
I don't have much experience with google home but what you are trying to achieve should be doable.
I think that you could schedule a custom routine (https://support.google.com/googlehome/answer/7029585?co=GENIE.Platform=Android&hl=en) that triggers a custom action (that will handle the conversation to acknowledge the task and store this information in your online excel table). The most tricky part is obviously the custom action. I think that you have at least 2 options here:
1) writing you custom action with the Action SDK (https://developers.google.com/actions/sdk/), mainly in Javascript creating a Node.js app running for example on Firebase (aka Google cloud).
2) using a platform called dialogflow (https://dialogflow.com/) to create the action without programming.
You can find some examples here: https://developers.google.com/actions/samples/github
Keep us posted!
If you are a programmer, you can develop a little software in python using a script that send programmaticaly voice to google home. I wrote a post on my blog www dot gioexperience com. Sorry but in XDA I cannot write links
On my blog you can see how to send programmaticaly in python voice command to google home without human interaction... also detect and erase alarms ecc ecc
www dot gioexperience com
Hey guys just wanted to share some tips I've found.
1. If the action you're looking for isn't within Taskers list of actions. There's a good chance that "Custom Setting" will accomplish what you're trying to do. You can control almost anything with Custom Settings and control settings that usually requires ADB to accomplish. Check it out.
2. If you're unsure how to do something, check out other projects. Usually you can find new and complex patterns that help make sense of a situation.
3. To make your dialogs and fonts look good and stand out, use html tags.
Example: <b><font color=green>This text will be green and bold</font></b>
4. AutoTools and AutoInput is a must have plugin for any Tasker enthusiast, however the rest can be ignored as most of them have been implemented into Tasker over the years except maybe AutoNotifications if what you're trying to do involves Notifications.
5. There's a 99% chance anything you want to accomplish can be done using Tasker. You just need to dig deep to find the method of accomplishing it.
6. Be sure to give Tasker WRITE_SECURE_SETTINGS permission and any other adb specific permission. It's a one time thing and gives Tasker tons of power.
7. When creating open source projects you intend to share publicly, try to use as few plugins as possible. If there's a native Tasker method, use it. Use as few permissions as possible. Use Tasker's native command options instead of AutoApps.
8. The better you understand variables and arrays, the more you'll be able to do. Once you understand loops (if, for, etc) and variables, you're ready to start making projects. Always use local variables unless a global variable is required. Use project variables instead of global variables if the variable in question is only used within the same project. Global variables should only be used when you need to use it's value universally across Tasker. Take note, that once you start using an action that requires dynamic monitoring, Tasker will always monitor that action requiring more memory use.