IP Library › Granted Patent US 10,565,105
Granted Patent B2
US 10,565,105 · App. 15/750,176 · Granted Feb 18, 2020

Method and apparatus for logging out of application

Inventor: Lei Zhang (Wuhan, CN)
Assignee: WUHAN DOUYU NETWORK TECHNOLOGY CO., LTD.
G06F12/0253G06F9/442G06F9/44557G06F9/44594G06F9/5016
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 10,565,105
App. No.
15/750,176
Granted
Feb 18, 2020
Kind
B2
Abstract

The present invention discloses a method and apparatus for logging out of an application. The method includes: starting a transparent interface after a starting operation for starting the application is received, wherein the transparent interface is displayed in a transparent state, and the transparent interface is marked as a single task starting mode; starting a main interface of the application to press the transparent interface to the bottom of a system stack memory, wherein interfaces are arranged from the stack bottom to the stack top according to the starting sequence in the system stack memory; starting the transparent interface after a closing operation for closing the application is received to pop up the main interface from the system stack memory; and destroying the transparent interface to close the application. By adopting the method and apparatus provided by the present application, the technical problem that complete logout and memory leak avoidance cannot be achieved at the same time in the method for logging out of an application program in an Android system in the prior art can be solved. The technical effect of both complete logout of the application and memory leak avoidance is achieved.

Claims (39)

1. A method for logging out of an application, comprising:

starting a transparent interface after a starting operation for starting the application is received, wherein the transparent interface is displayed in a transparent state, and the transparent interface is marked as a single task starting mode;

starting a main interface of the application to press the transparent interface to the bottom of a system stack memory, wherein interfaces are arranged from the stack bottom to the stack top according to the starting sequence in the system stack memory;

starting the transparent interface after a closing operation for closing the application is received to pop up the main interface from the system stack memory; and

destroying the transparent interface to close the application.

2. The method of claim 1 , wherein the application is an application based on the Android system.

3. The method of claim 2 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

4. The method of claim 1 , wherein before the transparent interface is started, the method further comprises:

starting a guide interface for transitioning to the main interface after the starting operation for starting the application is received; and

destroying the guide interface to reserve a bottom position of the system stack memory for the transparent interface.

5. The method of claim 4 , wherein after the guide interface is destroyed, the method further comprises:

obtaining the current amount of free space of the system memory; and

recycling system resources consumed by the guide interface when the current amount of free space is smaller than a preset threshold.

6. The method of claim 5 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

7. The method of claim 4 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

8. The method of claim 1 , wherein:

after the main interface of the application is started, the method further comprises: starting a first interface to press the main interface to a position located between the transparent interface and the first interface in the system stack memory; and

starting the transparent interface comprises: starting the transparent interface to pop up all interfaces located above the transparent interface in the system stack memory.

9. The method of claim 8 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

10. The method of claim 1 , wherein the main interface is marked as a standard starting mode.

11. The method of claim 10 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

12. The method of claim 1 , wherein destroying the transparent interface comprises:

calling a destroying function to finish destroying the transparent interface.

13. An apparatus for logging out of an application, comprising a memory stored with computer program instructions and a processor, and wherein the computer program instructions, when executed by the processor, cause the processor to implement the following steps:

starting a transparent interface after a starting operation for starting the application is received, wherein the transparent interface is displayed in a transparent state, and the transparent interface is marked as a single task starting mode;

starting a main interface of the application to press the transparent interface to the bottom of a system stack memory, wherein interfaces are arranged from the stack bottom to the stack top according to the starting sequence in the system stack memory;

starting the transparent interface after a closing operation for closing the application is received to pop up the main interface from the system stack memory; and

destroying the transparent interface to close the application.

14. The apparatus of claim 13 , wherein the computer program instructions, when executed by the processor, cause the processor to implement the following steps:

starting a guide interface for transitioning to the main interface after the starting operation for starting the application is received; and

destroying the guide interface to reserve a bottom position of the system stack memory for the transparent interface.

15. The apparatus of claim 13 , wherein the computer program instructions, when executed by the processor, cause the processor to implement the following steps:

starting a first interface to press the main interface to a position located between the transparent interface and the first interface in the system stack memory; and

starting the transparent interface to pop up all interfaces located above the transparent interface in the system stack memory.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 2, 2018
From: ZHANG, LEI
To: WUHAN DOUYU NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 044825/0264 →
Priority Claims (1)
CN 2016 1 1024324 · Nov 17, 2016 · national
Continuity (1)
Related Publication 20190004830A1 · Jan 3, 2019