IP Library › Granted Patent US 11,132,219
Granted Patent B2
US 11,132,219 · App. 16/277,559 · Granted Sep 28, 2021

Starting method for applications which are closed automatically based on the insufficient memory of the system

Inventors: Qiulin Chen (Shanghai, CN); Bailin Wen (Hangzhou, CN); Xicai Chen (Hangzhou, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F9/485G06F9/48G06F9/4843G06F9/4881G06F12/023
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 11,132,219
App. No.
16/277,559
Granted
Sep 28, 2021
Kind
B2
Abstract

A method and related apparatus for restarting an application being closed because of insufficient memory are provided. The method includes storing application identifiers of the applications which are closed when the free memory of the system is insufficient into a target application list, then when determining the free memory of the system is greater than a preset threshold, automatically starting a process of at least one application indicating by the target application lists.

Claims (44)

1. A starting method for applications that are closed automatically based on the insufficient memory of the system, comprising:

receiving, by a terminal, a request for starting a first application;

releasing, by the terminal, memory occupied by at least one application of a plurality of running applications when a size of the memory requested by the first application is greater than a size of free memory until the size of the free memory is equal to or greater than the size of the memory requested by the first application;

starting, by the terminal, the first application;

storing, by the terminal, an application identifier of the at least one application into a target application list;

obtaining, by the terminal, the target application list when the size of the free memory is greater than a preset threshold;

starting, in the background by the terminal, a process of a second application identified by at least one identifier in the target application list; and

starting, in the background by the terminal, an activity of the second application identified by the at least one identifier in the target application list by:

creating, by the terminal, a new task for the second application; and

storing, by the terminal, the new task into an application stack when the application stack is comprised in a first stack, where the application stack stores a task for another application different from all applications that are identified by identifiers stored in the target application list, wherein the application stack is located at the top of the first stack, and wherein the new task is stored close to a bottom of the application stack.

2. The method of claim 1 , wherein starting, in the background by the terminal, the activity of the second application identified by the at least one identifier in the target application list comprises creating, by the terminal, the application stack when a first stack does not comprise any application stack.

3. The method of claim 1 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, where a priority of the second application ranks in a top n of priorities of the applications that are identified by the identifiers stored in the target application list, and wherein n is greater than 0.

4. The method of claim 1 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, and wherein a quantity of times of using the second application is not less than a preset quantity of times.

5. The method of claim 1 , further comprising starting, in the background by the terminal, a process of an associated application, wherein the associated application is an application associated with the second application.

6. A terminal, comprising:

a processor; and

a memory comprising instructions that when executed by the processor cause the processor to be configured to:

receive a request for starting a first application;

release memory occupied by at least one application of a plurality of running applications when a size of the memory requested by the first application is greater than a size of free memory until the size of the free memory is equal to or greater than the size of the memory requested by the first application;

start the first application;

store an application identifier of the at least one application into a target application list;

obtain the target application list when the size of the free memory is greater than a preset threshold;

start, in the background, a process of a second application identified by at least one identifier in the target application list; and

start, in the background, an activity of the second application identified by the at least one identifier in the target application list, wherein to start the activity of the second application, the instructions further cause the processor to be configured to:

create a new task for the second application; and

store the new task into an application stack when the application stack is comprised in a first stack, where the application stack stores a task for another application different from all applications that are identified by identifiers stored in the target application list, wherein the application stack is located at the top of the first stack, and wherein the new task is stored close to a bottom of the application stack.

7. The terminal of claim 6 , wherein the instructions further cause the processor to be configured to create an application stack when a first stack used to store a task does not comprise any application stack.

8. The terminal of claim 6 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, wherein a priority of the second application ranks in a top n of priorities of the applications that are identified by the identifiers stored in the target application list, and wherein n is greater than 0.

9. The terminal of claim 6 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, and wherein a quantity of times of using the second application is not less than a preset quantity of times.

10. The terminal of claim 6 , wherein the instructions further cause the processor to be configured to start, in the background, a process of an associated application, wherein the associated application is an application associated with the second application.

11. A non-transitory computer readable medium configured to store a computer program product comprising computer executable instructions that, when executed by a processor of a terminal, cause the processor to:

receive a request for starting a first application;

release memory occupied by at least one application of a plurality of running applications when a size of the memory requested by the first application is greater than a size of free memory until the size of the free memory is equal to or greater than the size of the memory requested by the first application;

start the first application;

store an application identifier of the at least one application into a target application list;

obtain the target application list when the size of the free memory is greater than a preset threshold;

start, in the background, a process of a second application identified by at least one identifier in the target application list; and

start, in the background by the terminal, an activity of the second application identified by the at least one identifier in the target application list, wherein to start the activity of the second application, the computer executable instructions further cause the processor to:

create a new task for the second application; and

store the new task into an application stack when the application stack is comprised in a first stack, where the application stack stores a task for another application different from all applications that are identified by identifiers stored in the target application list, wherein the application stack is located at the top of the first stack, and wherein the new task is stored close to a bottom of the application stack.

12. The non-transitory computer readable medium of claim 11 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, wherein a priority of the second application ranks in the top n of priorities of the applications that are identified by the identifiers stored in the target application list, and wherein n is greater than 0.

13. The non-transitory computer readable medium of claim 11 , wherein a size of memory occupied by the second application is not greater than the size of the free memory, and wherein a quantity of times of using the second application is not less than a preset quantity of times.

14. The non-transitory computer readable medium of claim 11 , wherein the computer executable instructions further cause the processor to start, in the background, a process of an associated application, wherein the associated application is an application associated with the second application.

15. The non-transitory computer readable medium of claim 11 , wherein the computer executable instructions further cause the processor to create the application stack when a first stack used to store a task does not comprise any application stack.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 28, 2019
From: CHEN, QIULIN; WEN, BAILIN; CHEN, XICAI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 048471/0299 →
Priority Claims (1)
CN 201610680862.2 · Aug 17, 2016 · national
Continuity (2)
Continuation PCTCN2017079792 · Apr 7, 2017
Related Publication 20190179662A1 · Jun 13, 2019
Cited By (2)
US 12,386,653 US 12,498,968