Android implements page jumps and passes parameters

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.