Application Keepalive Priority for Seamless App Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
When a user switches between applications on an electronic device, background applications are often killed due to insufficient system resources, causing the foreground application to restart and lose its previous state, leading to a poor user experience.
Innovation Solution
An application keepalive method that calculates the callback probability of a background application based on user behavior patterns and adjusts its keepalive priority accordingly, ensuring it remains active when needed.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the electronic device clears background applications in ascending order of keepalive priorities when system resources are insufficient, then system resources are released to avoid interface freezing and slow response of the foreground application, but the background application may be terminated unnecessarily, requiring restart and losing running status, which reduces user experience
Solution Approach 1:
The patent dynamically adjusts the keepalive priority parameter of background applications based on their callback probability. Applications with high callback probability (likely to be switched back to) are assigned higher keepalive priorities, while those with low probability receive lower priorities. This parameter change allows the system to preserve important background applications without manually increasing complexity of the resource management system
Solution Approach 2:
The patent implements a feedback mechanism by monitoring user switching behavior between applications. The system calculates callback probability based on historical switching patterns and uses this feedback to adjust keepalive priorities. This closed-loop feedback enables the system to learn from user behavior and optimize resource allocation automatically, balancing application preservation with system resource efficiency
2Ease of operation
If the electronic device maintains all background applications active, then user experience is improved by preserving application states and enabling seamless switching, but system resources are consumed unnecessarily, leading to interface freezing and slow response
Solution Approach 1:
The patent changes the keepalive priority parameter dynamically based on calculated callback probabilities. Instead of maintaining all applications at a high priority level, the system adjusts each application's priority parameter according to its likelihood of being switched back to. This selective parameter adjustment ensures smooth switching for frequently used applications while reducing resource consumption for less frequently used ones
Solution Approach 2:
The patent applies partial action by selectively maintaining only those background applications that have high callback probability. Rather than preserving all background applications equally, the system focuses resources on the subset of applications that users are most likely to switch back to, achieving smooth switching experience where needed while avoiding unnecessary resource consumption
Data Source
AI summary
An application keepalive method includes, when a foreground application run by the electronic device is switched from a first application to a second application, a callback probability of the second application relative to the first application is obtained, and when the callback probability of the second application relative to the first application is greater than a preset threshold, a keepalive priority of the first application is increased when the first application is used as a background application. When system resources are insufficient, the electronic device ends a process of at least one background application in ascending order of keepalive priorities to release system resources.


