Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A page refreshing method of an Android application

A page refresh and page technology, applied in the computer field, can solve problems such as memory leaks, crashes, and increased memory overhead, and achieve the effect of avoiding memory leaks, avoiding excessive memory overhead, and improving user experience

Pending Publication Date: 2019-06-14
XUNLEI COMP SHENZHEN CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The main purpose of the present invention is to provide a page refresh method, device, system, and computer-readable storage medium for Android applications, aiming to solve the problem that a large number of pages in the traditional page refresh method register listeners in a single instance, which may easily cause memory leaks , and because a large number of pages will perform refresh operations immediately and simultaneously after monitoring the execution of a certain business logic, this greatly increases memory overhead and even causes technical problems such as crashes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A page refreshing method of an Android application
  • A page refreshing method of an Android application
  • A page refreshing method of an Android application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] refer to figure 1 , figure 1 It is an implementation flowchart of Embodiment 1 of a page refresh method for an Android application provided by the present invention. In Embodiment 1, the method specifically includes:

[0042] Step S11: During the process of executing business operations on the first page, use the broadcast receiver of the second page to monitor the broadcast transmitter of the first page.

[0043] Wherein, the first page and the second page are pages of the same Android application, and the first page is a page obtained from the second page through one or more page jumps, that is to say, the first page and the second page are in Business logically related pages. The above-mentioned first page is pre-registered with a broadcast transmitter, which is used to send broadcasts after the first page performs the above-mentioned business operations. Correspondingly, the second page is pre-registered with a broadcast receiver, which is used for but not limited...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a page refreshing method of an Android application. When the service operation is executed in a first page, a broadcast receiver of a second page is used for monitoring a broadcast transmitter of the first page, and after the broadcast is monitored and when the second page is in the activated state, the refreshing instruction is generated according to the broadcast so as toexecute the corresponding refreshing operation on the second page. The invention further discloses a page refreshing device and system of the Android application and a computer readable storage medium. Visibly, the monitoring process is realized by using the broadcast receiver of the page; the broadcast receiver does not exceed the life cycle of the page; therefore, the problem of memory leakageis avoided, in addition, the page does not execute refreshing immediately after receiving the broadcast, but refreshing is executed only when the page is in the activated state, so that the problem ofoverlarge memory cost caused by simultaneous refreshing of a large number of pages is avoided, and the use experience of a user is improved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a page refresh method, device, system and computer-readable storage medium for Android applications. Background technique [0002] We often encounter such a business scenario: jumping from a page A to page N (with one or more pages in the middle), and completing a certain business logic on page N, and then returning to page A, on the page Execute page refresh or other business logic when visible in A life cycle. The ideal situation is: refresh the page when it is visible in the life cycle of page A, and do not refresh when page A is not visible. [0003] The traditional technical solution is: create a singleton Z with a global life cycle, page A registers a listener to Z, when page A jumps to page N, page N executes business logic operations, and passes through Z after the execution is completed Notify all pages registered with listeners (including page A), and page A performs ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F16/957
Inventor 何武昭
Owner XUNLEI COMP SHENZHEN CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products