Changes

757 bytes added ,  19:22, 7 February 2024
m
Undo revision 1658 by JosueGd (talk)
Line 1: Line 1: −
This action can be used to call an Android Intent. The Intent action is one of the more complex and powerful actions of MacroDroid. Do you know the [[Action:_Launch_Application|Launch Application]] MacroDroid action? It uses intent to launch the application and can be replaced with a properly set intent action. Do you know the [[Action:_Open_Website_/_HTTP_GET|Open Website]] action? It also uses intent to open the website. Do you know the [[Action:_Launch_Shortcut|Launch Shortcut]] action?
+
This action can be used to call an Android Intent. The Intent action is one of the more complex and powerful actions of MacroDroid. Do you know the [[Action:_Launch_Application|Launch Application]] MacroDroid action? It uses intent to launch the application and can be replaced with a properly set intent action. Do you know the [[Action:_Open_Website_/_HTTP_GET|Open Website]] action? It also uses intent to open the website. Do you know the [[Action:_Launch_Shortcut|Launch Shortcut]] action?...
    
If you are not afraid of technical words and terms, you can also dive into [https://developer.android.com/reference/android/content/Intent official android developers' documentation].
 
If you are not afraid of technical words and terms, you can also dive into [https://developer.android.com/reference/android/content/Intent official android developers' documentation].
   −
= Parameters =
+
A more readable description of what intent really is can also be found in this [https://en.wikipedia.org/wiki/Intent_%28Android%29?wprov=sfla1 Wikipedia article about Android intents].
<hr>
+
 
 +
= Input parameters =
    
== Target ==
 
== Target ==
Line 25: Line 26:     
== Data (optional) ==
 
== Data (optional) ==
To be continued...
+
The Data parameter in an intent allows you to specify additional information or data to be passed along with the intent. It can be used to provide context or instructions to the target activity, broadcast receiver, or service. The data can be passed in form of an URI ([https://en.wikipedia.org/wiki/Uniform_Resource_Identifier Uniform Resource Identifier]) which is just a string at its base. The URI can represent various types of data, such as a website URL, a file path, or a specific content URI. For example if you would want to open website https://example.com/ you would simply use <code>https://example.com/</code> as a data parameter.
   −
= How should I know what parameter values to use? =
+
= Input parameter values =
<hr>
     −
I know. It's a complex mess. So how should you know what intent parameters to use when you want to quickly open Google Web search inside Google app? Some useful intents can be found online or in the [[Action:_Send_Intent#Examples|Examples]] section of this article.
+
So how should you know what intent parameters to use when you want to quickly open Google web search inside Google app? Some useful intents can be found online or in the [[Action:_Send_Intent#Examples|Examples]] section of this article.
    
One of the most helpful things regarding this action I personally stumbled upon and can recommend is an app called [https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker Shortcut Maker]. It provides a simple UI that allows you to discover all of the different activity intents that can be launched on the phone and tinker with their parameters as you please. You can either copy all of the parameters to the MacroDroid '''Send Intent action''' or use the MacroDroid '''Launch Shortcut''' action, choose '''Shortcut Maker''' and choose the activity intent using the app UI.
 
One of the most helpful things regarding this action I personally stumbled upon and can recommend is an app called [https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker Shortcut Maker]. It provides a simple UI that allows you to discover all of the different activity intents that can be launched on the phone and tinker with their parameters as you please. You can either copy all of the parameters to the MacroDroid '''Send Intent action''' or use the MacroDroid '''Launch Shortcut''' action, choose '''Shortcut Maker''' and choose the activity intent using the app UI.
editors
1,599

edits