Specification parameters of intent


For the use of  intent Activity Manager command parameters, you can use the following options to specify intent:

-a action
Intent specified operation, such as "android.intent.action.VIEW". This statement can only be specified once.
-d data_uri
Intent data specified URI, such as "content: // contacts / people / 1". This statement can only be specified once.
-t mime_type
Specifies intent MIME type, such as "image / png". This statement can only be specified once.
-c category
Specify the intent categories, such as "android.intent.category.APP_CONTACTS".
-n component
Specify the component name prefixed with the package name to create an explicit intent, such as "com.example.app/.ExampleActivity".
-f flags
Add the logo to  setFlags()  support the intent.
--esn extra_key
Add a null extra. URI intent does not support this option.
-e|--es extra_key extra_string_value
Add the string data as a key-value pair.
--ez extra_key extra_boolean_value
Add Boolean data as pairs.
--ei extra_key extra_int_value
Adding integer data as pairs.
--el extra_key extra_long_value
Add long integer data as a key-value pair.
--ef extra_key extra_float_value
Add floating-point data as pairs.
--eu extra_key extra_uri_value
Add URI data as pairs.
--ecn extra_key extra_component_name_value
Adding component name, as the  ComponentName  object transfer and conversion.
--eia extra_key extra_int_value[,extra_int_value...]
Add an array of integers.
--ela extra_key extra_long_value[,extra_long_value...]
Add long integer array.
--efa extra_key extra_float_value[,extra_float_value...]
Add floating-point array.
--grant-read-uri-permission
It contains flag  FLAG_GRANT_READ_URI_PERMISSION .
--grant-write-uri-permission
It contains flag  FLAG_GRANT_WRITE_URI_PERMISSION .
--debug-log-resolution
It contains flag  FLAG_DEBUG_LOG_RESOLUTION .
--exclude-stopped-packages
It contains flag  FLAG_EXCLUDE_STOPPED_PACKAGES .
--include-stopped-packages
It contains flag  FLAG_INCLUDE_STOPPED_PACKAGES .
--activity-brought-to-front
It contains flag  FLAG_ACTIVITY_BROUGHT_TO_FRONT .
--activity-clear-top
It contains flag  FLAG_ACTIVITY_CLEAR_TOP .
--activity-clear-when-task-reset
It contains flag  FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET .
--activity-exclude-from-recents
It contains flag  FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS .
--activity-launched-from-history
It contains flag  FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY .
--activity-multiple-task
It contains flag  FLAG_ACTIVITY_MULTIPLE_TASK .
--activity-no-animation
It contains flag  FLAG_ACTIVITY_NO_ANIMATION .
--activity-no-history
It contains flag  FLAG_ACTIVITY_NO_HISTORY .
--activity-no-user-action
It contains flag  FLAG_ACTIVITY_NO_USER_ACTION .
--activity-previous-is-top
It contains flag  FLAG_ACTIVITY_PREVIOUS_IS_TOP .
--activity-reorder-to-front
It contains flag  FLAG_ACTIVITY_REORDER_TO_FRONT .
--activity-reset-task-if-needed
It contains flag  FLAG_ACTIVITY_RESET_TASK_IF_NEEDED .
--activity-single-top
It contains flag  FLAG_ACTIVITY_SINGLE_TOP .
--activity-clear-task
It contains flag  FLAG_ACTIVITY_CLEAR_TASK .
--activity-task-on-home
It contains flag  FLAG_ACTIVITY_TASK_ON_HOME .
--receiver-registered-only
It contains flag  FLAG_RECEIVER_REGISTERED_ONLY .
--receiver-replace-pending
It contains flag  FLAG_RECEIVER_REPLACE_PENDING .
--selector
You need to use  -d  and  -t  the option to set the intent and data types.
URI component package
If the above restrictions with an option, you can specify the URI, the package name, and component name directly. When the parameter is not limited, if the parameter comprises a ":" (colon), the tool assumes a parameter is the URI; if parameter contains a "/" (forward slash), the tool assumes that the name parameter is a component; otherwise, this argument assumes that the tool is a software package name.

Guess you like

Origin www.cnblogs.com/goodhacker/p/11287063.html