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

Multi-window leakage processing method and device and computer readable storage medium

A processing method and multi-window technology, applied in the field of mobile communications, can solve problems such as mobile phone freezes, uneven stability and performance, and mobile phone freezes, so as to avoid freezes, enhance user experience, and improve fluency Effect

Pending Publication Date: 2022-03-29
深圳市中兴移动软件有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing technology, with the continuous development of smart terminal devices, although the running memory of mobile phones and other devices has been increasing, when users actually use mobile phones, there are still more and more applications installed and more and more usage scenarios. The more the phone freezes, one of the most important reasons is that the memory leak of the application causes the phone to freeze during operation.
Due to the uneven stability and performance of the application, the application will re-window and leak, resulting in memory leakage, making the phone more and more stuck due to simultaneous drawing of multiple windows and lack of memory
The above scenario is an unpredictable problem, and it is difficult to solve it from the source

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
  • Multi-window leakage processing method and device and computer readable storage medium
  • Multi-window leakage processing method and device and computer readable storage medium
  • Multi-window leakage processing method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] image 3 It is a flow chart of the first embodiment of the multi-window leakage processing method of the present invention. A multi-window leakage processing method, the method comprising:

[0072] S1. Acquire the process ID of the application when the application requests to display a window.

[0073] S2. Obtain the number of applications corresponding to the application from the preset hash data according to the process number.

[0074] S3. Judging whether the number of applications is greater than a preset value.

[0075] S4. If the number of applications is greater than the preset value, kill the process corresponding to the application, and if the number of applications is smaller than the preset value, execute the application for the number of applications in the hash data plus 1.

[0076] In this embodiment, the technical idea adopted is that when the system detects that there is a window leak in the application, for example, when it is greater than 50, the s...

Embodiment 2

[0089] Figure 4 It is a flow chart of the second embodiment of the multi-window leakage processing method of the present invention. Based on the above embodiment, when the application applies for displaying a window, the process number of the application is acquired, which includes:

[0090] S01. Create a data structure of HashMap type.

[0091] S02. Record the number of windows created by the application through the data structure of the HashMap type.

[0092] The beneficial effect of this embodiment is that, by creating a data structure of type HashMap, the number of windows created by the application is recorded through the data structure of type HashMap. An efficient application multi-window memory leak processing solution is realized. Through clear and concise logical condition judgment, the window creation is effectively controlled, avoiding the stuck phenomenon, improving the fluency of the system, and enhancing the user experience.

Embodiment 3

[0094] Figure 5 It is a flow chart of the third embodiment of the multi-window leakage processing method of the present invention. Based on the above embodiment, when the application applies for displaying a window, the process number of the application is obtained, and before that, it also includes:

[0095] S03. Use the process ID PID of the application as the value key of the data structure of the HashMap type.

[0096] S04, setting the data type of the customized process item ProcessItem.

[0097] The beneficial effect of this embodiment is that, by using the process number PID of the application as the value key of the data structure of the HashMap type, the data type of the customized process item ProcessItem is set. An efficient application multi-window memory leak processing solution is realized. Through clear and concise logical condition judgment, the window creation is effectively controlled, avoiding the stuck phenomenon, improving the fluency of the system, and ...

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 multi-window leakage processing method and device and a computer readable storage medium, and the method comprises the steps: obtaining a process number of an application when the application applies to display a window; obtaining application times corresponding to the application in preset hash data according to the process number; judging whether the application frequency is greater than a preset value or not; if the number of times of application is larger than the preset value, a process corresponding to the application is killed, and if the number of times of application is smaller than the preset value, 1 is added to the number of times of application in the hash data. According to the technical scheme, an efficient memory leak processing scheme applying multiple windows is achieved, window creation is effectively controlled through clear and simple logic condition judgment, the jamming phenomenon is avoided, the fluency of a system is improved, and the use experience of a user is enhanced.

Description

technical field [0001] The present invention relates to the field of mobile communication, in particular to a multi-window leakage processing method, device and computer-readable storage medium. Background technique [0002] In the existing technology, with the continuous development of smart terminal devices, although the running memory of mobile phones and other devices has been increasing, when users actually use mobile phones, there are still more and more applications installed and more and more usage scenarios. The more it causes the phone to freeze, one of the important reasons is that the memory leak of the application causes the phone to freeze during operation. Due to the uneven stability and performance of applications, the application will re-window and leak, resulting in memory leaks, making the phone more and more stuck due to simultaneous drawing of multiple windows and lack of memory. The above scenario is an unpredictable problem, and it is difficult to sol...

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): G06F9/48G06F9/50G06F16/29H04M1/72448
CPCG06F9/4812G06F9/5016G06F9/5022G06F16/29H04M1/72448
Inventor 张乐
Owner 深圳市中兴移动软件有限公司
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