IP Library › Granted Patent US 12,197,924
Granted Patent B2
US 12,197,924 · App. 18/034,560 · Granted Jan 14, 2025

Application starting method, electronic device, and readable storage medium

Inventor: Jiwei Xiao (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
G06F9/44505G06F9/451
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,197,924
App. No.
18/034,560
Filed
Apr 28, 2023
Granted
Jan 14, 2025
Kind
B2
Art Unit
2176
USPC
713/2
Abstract

This application provides an application starting method, an electronic device, and a readable storage medium, and relates to the field of terminal application technologies. The method includes: when an application is switched from a foreground to a background for running, saving a final interface (namely, a first interface) displayed before the application is switched to the background for running as a snapshot; when a user clicks an icon of the application on a system desktop to start the application again, in a case that a process of the application does not end, a first activity corresponding to the first interface is not destroyed, and anew activity needs to be created when the application is started. Therefore, from the user's point of view, the start response speed of application software is improved.

Claims (94)

1. An application starting method, the method comprising:

displaying, by an electronic device, a first interface of a first application;

receiving, by the electronic device, a first operation inputted by a user;

switching, by the electronic device in response to the first operation, the first application to a background for running;

receiving, by the electronic device, a second operation inputted by the user;

starting, by the electronic device, the first application in response to the second operation;

in a process of starting the first application, in a case that the first application meets a preset condition, displaying, by the electronic device, a first image, wherein the first image is related to the first interface, and the preset condition comprises the following: a process of the first application does not end, a first activity corresponding to the first interface is not destroyed, and a second activity needs to be created in a case that the first application is started; and

displaying, by the electronic device, the first interface after the electronic device resumes the first activity.

2. The method according to claim 1 , wherein after the receiving, by the electronic device, the first operation inputted by the user, the method further comprises:

obtaining, by the electronic device, a second image based on the first interface; and

caching, by the electronic device, the second image, wherein the second image comprises the first image.

3. The method according to claim 1 , wherein before the displaying, by the electronic device, the first image, the method further comprises:

determining, by the electronic device, that the process of the first application does not end;

determining, by the electronic device, that the first activity corresponding to the first interface is not destroyed; and

determining, by the electronic device, that the second activity needs to be created in a case that the first application is started.

4. The method according to claim 3 , wherein the electronic device comprises a logic determination component and an activity task management component, and the activity task management component is configured to record a status of a process of an application; and

wherein the determining, by the electronic device, that the process of the first application does not end comprises:

obtaining, by the logic determination component, a status of the process of the first application from the activity task management component; and

determining, by the logic determination component according to the status of the process of the first application, that the process of the first application does not end.

5. The method according to claim 4 , wherein the electronic device comprises an activity recording component, and the activity recording component is configured to record a status of an activity; and

wherein the determining, by the electronic device, that the first activity corresponding to the first interface is not destroyed comprises:

obtaining, by the logic determination component, a status of the first activity from the activity recording component; and

determining, by the logic determination component according to the status of the first activity, that the first activity is not destroyed.

6. The method according to claim 5 , wherein the activity task management component is configured to send start information of the first application to the logic determination component in a case that the first application is started, and the start information of the first application comprises a target activity in a case that the first application is started; and

wherein before the obtaining, by the logic determination component, a status of the first activity from the activity recording component, the method further comprises:

receiving, by the logic determination component, the start information of the first application sent by the activity task management component; and

determining, by the logic determination component according to the start information of the first application, that the target activity is the first activity in a case that the first application is started.

7. The method according to claim 6 , wherein the activity task management component is configured to send the start information of the first application to the logic determination component in a case that the first application is started, and the start information of the first application comprises creating the second activity;

wherein before the determining, by the electronic device, that the second activity needs to be created in a case that the first application is started, the method further comprises:

receiving, by the logic determination component, the start information of the first application sent by the activity task management component; and

wherein the determining, by the electronic device, that the second activity needs to be created in a case that the first application is started comprises:

determining, by the logic determination component according to the start information of the first application, that the second activity needs to be created in a case that the first application is started.

8. The method according to claim 6 , wherein the electronic device further comprises a desktop launcher;

wherein the receiving, by the electronic device, the second operation inputted by the user comprises:

receiving, by the desktop launcher, the second operation inputted by the user; and

wherein the method further comprises:

sending, by the desktop launcher in response to the second operation, a start instruction of the first application to the activity task management component;

obtaining, by the activity task management component in response to receiving the start instruction, the start information of the first application; and

sending, by the activity task management component, the start information of the first application to the logic determination component.

9. The method according to claim 2 , wherein the electronic device comprises: an activity task management component, a logic determination component, a snapshot module, and a drawing service;

wherein the caching, by the electronic device, the second image comprises:

caching, by the snapshot module, the second image; and

wherein the in a case that the first application meets the preset condition, displaying, by the electronic device, a first image comprises:

in a case that the logic determination component determines that the first application meets the preset condition, sending, by the logic determination component, first information to the activity task management component, wherein the first information is used for indicating that the first application meets the preset condition;

in a case that the first information is received, sending, by the activity task management component, second information to the snapshot module, wherein the second information is used for instructing the snapshot module to send the second image to the drawing service;

sending, by the snapshot module, the second image to the drawing service; and

controlling, by the drawing service, the electronic device to display the first image based on the second image.

10. The method according to claim 9 , wherein the electronic device comprises: an activity recording component; and

wherein the sending, by the activity task management component, the second information to the snapshot module comprises:

sending, by the activity task management component, the second information to the snapshot module by using the activity recording component.

11. The method according to claim 9 ,

wherein the first image is same as the second image, and the first image is same as an image of the first interface; or

wherein the first image is same as the image of the first interface, the second image comprises the image of the first interface and first status bar content, and the first status bar content is status bar content of the electronic device in a case that the electronic device caches the second image.

12. The method according to claim 9 , wherein after the sending, by the snapshot module, the second image to the drawing service, the method further comprises:

sending, by the snapshot module, information that the second image is successfully added to the activity task management component; and

in response to receiving the information that the second image is successfully added, sending, by the activity task management component, a first instruction to the drawing service by using the snapshot module, wherein the first instruction is used for instructing the drawing service to control the electronic device to display the first image based on the second image.

13. The method according to claim 12 , wherein the electronic device comprises an activity recording component; and

wherein the sending, by the snapshot module, information that the second image is successfully added to the activity task management component comprises:

sending, by the snapshot module, the information that the second image is successfully added to the activity task management component by using the activity recording component.

14. The method according to claim 12 , wherein the second operation is an operation acting on an icon of the first application displayed on a system desktop of the electronic device, and the electronic device further comprises a desktop launcher; and

wherein after the sending, by the activity task management component, the first instruction to the drawing service by using the snapshot module, the method further comprises:

sending, by the activity task management component, third information to the desktop launcher, wherein the third information is used for instructing the desktop launcher to stop displaying the system desktop.

15. The method according to claim 9 ,

wherein the caching, by the snapshot module, the second image comprises:

caching, by the snapshot module, the second image in a snapshot cache file; and

wherein the sending, by the snapshot module, the second image to the drawing service comprises:

obtaining, by the snapshot module, the second image from the snapshot cache file; and

sending, by the snapshot module, the second image to the drawing service.

16. The method according to claim 1 , wherein before the receiving, by the electronic device, the second operation inputted by the user, the method further comprises:

receiving, by the electronic device, a third operation inputted by the user; and

starting, by the electronic device, a second application in response to the third operation, and displaying a second interface of the second application.

17. The method according to claim 1 , wherein before the electronic device resumes the first activity, the method further comprises:

creating, by the electronic device, the second activity.

18. The method according to claim 1 , wherein the first operation comprises:

a gesture operation on a touch screen of the electronic device; or

an air gesture operation within a field of view of a camera of the electronic device.

19. An electronic device, comprising:

a memory storing a computer program; and

a processor, wherein the processor is configured to run the computer program stored in the memory to cause the electronic device to implement operations comprising:

displaying a first interface of a first application;

receiving a first operation inputted by a user;

switching, in response to the first operation, the first application to a background for running;

receiving a second operation inputted by the user;

starting the first application in response to the second operation;

in a process of starting the first application, in a case that the first application meets a preset condition, displaying a first image, wherein the first image is related to the first interface, and the preset condition comprises the following: a process of the first application does not end, a first activity corresponding to the first interface is not destroyed, and a second activity needs to be created in a case that the first application is started; and

displaying the first interface after the electronic device resumes the first activity.

20. A non-transitory computer-readable storage medium storing a computer program that, when run on a processor, causes an electronic device to implement operations comprising:

displaying a first interface of a first application;

receiving a first operation inputted by a user;

switching, in response to the first operation, the first application to a background for running;

receiving a second operation inputted by the user;

starting the first application in response to the second operation;

in a process of starting the first application, in a case that the first application meets a preset condition, displaying a first image, wherein the first image is related to the first interface, and the preset condition comprises the following: a process of the first application does not end, a first activity corresponding to the first interface is not destroyed, and a second activity needs to be created in a case that the first application is started; and

displaying the first interface after the electronic device resumes the first activity.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 8, 2024
From: XIAO, JIWEI
To: HONOR DEVICE CO., LTD.
Reel/Frame 067036/0464 →
Priority Claims (1)
CN 202111449783.8 · Nov 30, 2021 · national
Continuity (1)
Related Publication 20240330012A1 · Oct 3, 2024
References Cited (28)
US 7484220B2 · Kelley et al. · 2009 [cited by applicant]
US 9430333B2 · D'Amato et al. · 2016 [cited by applicant]
US 10911540B1 · Gunasekaran et al. · 2021 [cited by applicant]
US 11150791B1 · Garibaldi et al. · 2021 [cited by applicant]
US 20120311490A1 · Ammon et al. · 2012 [cited by applicant]
US 20130227419A1 · Lee et al. · 2013 [cited by applicant]
US 20150149907A1 · Wu · 2015 [cited by examiner]
US 20180088764A1 · Lu et al. · 2018 [cited by applicant]
US 20180335939A1 · Karunamuni · 2018 [cited by examiner]
US 20190369830A1 · Alonso Ruiz et al. · 2019 [cited by applicant]
US 20200341598A1 · Vora et al. · 2020 [cited by applicant]
US 20230025276A1 · Wang · 2023 [cited by applicant]
CN 1977246A · 2007 [cited by applicant]
CN 103019841A · 2013 [cited by applicant]
CN 103593254A · 2014 [cited by applicant]
CN 105144113A · 2015 [cited by applicant]
CN 107748686A · 2018 [cited by applicant]
CN 107832113A · 2018 [cited by applicant]
CN 109947317A · 2019 [cited by applicant]
CN 110007981A · 2019 [cited by applicant]
CN 110096329A · 2019 [cited by applicant]
CN 111435299A · 2020 [cited by applicant]
CN 111459381A · 2020 [cited by applicant]
CN 112114808A · 2020 [cited by applicant]
CN 112860145A · 2021 [cited by applicant]
CN 113268286A · 2021 [cited by applicant]
CN 114327179A · 2022 [cited by applicant]
Listen to the Truth, “The problem that the Activity is covered by the application snapshot after opening,” Retrieved from the Internet, URL: https://blog.csdn.net/zhangying1994/article/details/104030994 (Jan. 18, 2020). [cited by applicant]