Child Application Data Restoration via Main Memory Caching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing application data processing methods fail to quickly restore the status and display previous pages of a child application when it is reopened, leading to inefficiencies in user experience and resource utilization.
Innovation Solution
The method involves storing the child application identifier and task in the main memory upon quitting, generating a foreground and background switching entry, and using this entry to quickly restore the application's status and page data when reopened, allowing for seamless switching between foreground and background modes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the application status is restored by re-establishing connection and obtaining page data from server, then the application can be reopened, but the restoration speed is slow and user experience is degraded
Solution Approach 1:
The patent applies preliminary action by storing the application status data (including page data and task information) in the terminal's main memory before the application is closed. When the application is reopened, the system directly retrieves the pre-stored status from main memory rather than re-establishing connection and obtaining data from the server, thereby achieving rapid restoration of application state and significantly reducing the time loss.
2Productivity
If the application data is stored in main memory for quick restoration, then the restoration speed improves, but the memory resource consumption increases
Solution Approach 1:
The patent applies local quality by selectively storing only the necessary application status data (page data and task information) in the main memory rather than storing all application data. This targeted approach ensures that the most critical data needed for quick restoration is preserved in high-speed memory, while balancing memory resource consumption by avoiding unnecessary data storage.
3Quantity of substance
If the application completely closes when quitted, then the memory resources are freed, but the application cannot quickly restore previous status upon reopening
Solution Approach 1:
The patent applies the taking out principle by extracting and separating the essential application status data (page data and task information) from the complete application state, storing only this extracted essential data in the main memory. This allows the application to be fully closed and free memory resources while preserving the critical information needed for accurate status restoration upon reopening, without retaining the entire application state in memory.
Data Source
Figure 1~2
Figure 3a
Figure 3b
AI summary
Embodiments of the present disclosure relate to an application data processing method and apparatus. The method includes: obtaining a quit instruction corresponding to a child application; in response to the quit instruction: obtaining, a child application identifier of the child application and a child application task corresponding to the child application identifier, and storing a mapping between the child application identifier and the child application task into a main memory; generating a foreground and background switching entry corresponding to the child application, and displaying the foreground and background switching entry on a parent application interface; in response to an operation performed on the foreground and background switching entry: obtaining the child application identifier obtaining the child application task from the main memory according to the child application identifier; and switching the child application corresponding to the child application identifier to foreground according to the child application task. This disclosure further provides a corresponding apparatus and a storage medium.