Splash Screen Thread Prioritization for Smooth App Startup
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The Android system often fails to invoke the splash screen thread in a timely manner, leading to application startup freezing, which affects user experience.
Innovation Solution
The method involves adjusting the priority of the splash screen thread to a higher level when the user interacts with the application icon, ensuring timely invocation even under high system load, and includes buffering the thread identifier during startup to reduce delays.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the splash screen thread uses initial priority, then system resource allocation is balanced, but the splash screen cannot be invoked in a timely manner leading to startup freezing
Solution Approach 1:
The patent dynamically adjusts the thread priority of the splash screen based on system conditions. When the system detects that the splash screen thread needs to be invoked, it temporarily elevates the thread priority from initial level to a higher level, ensuring timely invocation. After the splash screen is displayed, the priority is restored to the initial level. This dynamic adjustment resolves the contradiction between maintaining balanced system resource allocation and ensuring timely splash screen invocation.
Solution Approach 2:
The patent changes the priority parameter of the splash screen thread to resolve the invocation timing issue. By modifying the priority parameter from its initial value to a higher value during critical invocation periods, the system ensures the splash screen thread is executed promptly. This parameter change approach directly addresses the technical contradiction by making the thread more responsive when needed while maintaining system balance overall.
2Ease of operation
If the splash screen thread priority is increased, then startup freezing is avoided, but system resource allocation becomes unbalanced
Solution Approach 1:
The patent implements periodic adjustment of thread priority rather than maintaining a permanently high priority. The splash screen thread priority is elevated only during specific periods when invocation is needed, and restored to normal levels afterward. This periodic action ensures smooth startup when required while preventing continuous system resource imbalance, thus resolving the contradiction between startup smoothness and resource allocation balance.
Solution Approach 2:
The system performs preliminary detection and preparation before the splash screen thread needs to execute. By monitoring system state in advance and proactively adjusting priority only when necessary, the system prepares for smooth startup without continuously consuming excessive resources. This preliminary action approach resolves the contradiction by being ready to help when needed but not interfering with normal resource allocation during routine operation.
3Reliability
If the splash screen thread is invoked under high system load, then user experience is maintained, but other system processes may be affected
Solution Approach 1:
The patent implements a feedback mechanism that monitors system load conditions before and during splash screen thread invocation. The system continuously evaluates whether increasing thread priority will adversely affect other critical processes. Based on this feedback, the system intelligently decides whether to elevate priority or maintain normal levels, ensuring splash screen reliability when system conditions permit while adapting to high load scenarios when they arise. This feedback-driven approach resolves the contradiction between maintaining display reliability and adapting to varying system loads.
Data Source
Figure 1
Figure 2
Figure 3(a)
AI summary
This application provides a method and an apparatus for starting an application, and an electronic device. The method includes: An electronic device displays a desktop in response to a first operation of a user, and adjusts a priority of a splash screen thread to a first priority, where the desktop includes a first icon, the first icon is an icon of a first application, and the first priority is higher than an initial priority of the splash screen; invokes the splash screen thread based on the first priority in response to a second operation performed by the user on the first icon; displays a splash screen of the first application through the splash screen thread; and displays an interface of the first application after displaying the splash screen of the first application. According to the method for starting an application in this application, when the electronic device displays the desktop, the priority of the splash screen thread may be increased; and when the user triggers startup of an application, a system invokes the splash screen thread with an increased priority, to avoid freezing of a splash screen of the application, and improve user experience.