First, let's take a look at the implemented functionality:
Second, let's take a look at what files and code will be exposed to this function in total.
1, the implementation of this function in total involves the following 6 files
2, the implementation of this function, a total of the following 6 files in the following code:
(1)
Effect:
(2) Write the response event function for the button sendMessage
(3) Create a second activity, the second page, and write the method of page initialization in the OnCreate method (equivalent to Initview in iOS). The process of initializing here is to receive the data that the response event passes over and display.
(4) The system automatically generates a second activity XML file.
(5)
(6) A complete XML file that is automatically generated by the system
Android implements page jumps and passes parameters