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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com