Example of using the action attribute of intent in Android tutorial (text message sent by intent)
•
Android
Action: Specifies the action to be completed by intent. It is a string constant. Use setaction () to set the action property and getaction () to get the action property. You can either use the built-in action of the system or define it yourself. System defined actions, such as action_ VIEW,ACTION_ EDIT,ACTION_ Main, wait.
1. User defined action
Specify the action constant in androidmanifest.xml of the destination activity.
2. System action
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码