Go back to the page and refresh the page data again

Source: Internet
Author: User

Why refresh it all over again?

For example, if we click on an entry for the ListView and Audit the entry, the entry should disappear after returning to the ListView.

How to achieve it?

1, re-call the onCreate () method inside the Onresume () method. This method is more resource-intensive because we don't need to do anything about the layout, like we don't need to load the controls repeatedly

2, in the previous activity inside the method of the end of the page, the establishment of intent, the implementation of page jumps, and the first method, the same will consume resources.

3, in the Onresume () method to recall the method you defined loading data , if you want to load the method of loading data, the method can be recommended .

Jiangzi ...

Go back to the page and refresh the page data again

Related Article

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.