IP Library Granted Patent US 10,078,434
Granted Patent B2
US 10,078,434 · App. 14/262,171 · Granted Sep 18, 2018

Method and apparatus for taking screenshot of screen of application in mobile terminal

Inventor: Weibin Wu (Beijing, CN)
Assignee: HUAWEI DEVICE (SHENZHEN) CO., LTD.
G06F3/04845G06F9/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 10,078,434
App. No.
14/262,171
Granted
Sep 18, 2018
Kind
B2
Abstract

The present invention relates to the field of mobile terminals and discloses a method and an apparatus for taking a screenshot of a screen of an application. An instruction is received for closing a screen of a designated application. A designated area of the screen of the designated application is captured to obtain a screenshot of the designated area. The screenshot of the designated area is saved and the screen of the designated application is closed.

Claims (45)

1. A method for taking a screenshot of an application, implemented by a mobile terminal, the method comprising:

displaying an application on a display of the mobile terminal;

receiving an instruction for switching an application state of the application to running in background with a screen of the application closed;

zooming a designated area of the screen of the designated application according to a size of the display and a preset zoom ratio;

capturing a thumbnail after the zooming;

obtaining a screenshot of the designated area thumbnail, including a status bar of the display, by invoking a drawFB( ) method in response to the receiving the instruction for switching the designated application state, after an onPause method is invoked, and before an onStop method is invoked, wherein the drawFB( ) method is a drawing method that obtains a current image of a display invoking a preset display device, reading a buffer pixel of the preset display device is read, and generating a bitmap image using the buffer pixel, and wherein the drawFB( ) method has a range that includes the status bar of the display;

storing the screenshot of the designated application and switching the designated application state to running in background;

receiving an instruction for viewing an application running in background; and

displaying the screenshot of the application in response to the receiving the instruction for viewing the application running in background.

2. The method according to claim 1 , the method further comprising displaying the screen of the application when the onPause method is invoked.

3. The method according to claim 1 , wherein the designated area of the screen of the application is an entire screen of the application.

4. The method according to claim 1 , the method further comprising:

receiving an operational instruction; and

switching the designated application state from running in background to running in foreground according to the operational instruction.

5. A mobile terminal, comprising:

a display;

one or more processors; and

a non-transitory computer-readable storage medium storing a first software application and a program to be executed by the processor, the program including instructions for:

displaying the first software application on the display of the mobile terminal;

receiving an instruction for switching an application state of the first software application to running in background with a screen of the designated application closed;

zooming a designated area of the screen of the designated application according to a size of the display and a preset zoom ratio;

capturing a thumbnail after the zooming;

obtaining a screenshot of the designated area thumbnail, including a status bar of the display, by invoking a drawFB( ) method in response to the receiving the instruction for switching the application state, after an onPause method is invoked, and before an onStop method is invoked, wherein the drawFB( ) method is a drawing method that obtains a current image of a display invoking a preset display device, reading a buffer pixel of the preset display device is read, and generating a bitmap image using the buffer pixel, and wherein the drawFB( ) method has a range that includes the status bar of the display;

storing the screenshot of the first software application and switching the designated application state to running in background;

receiving an instruction for viewing an application running in background; and

displaying the screenshot of the first software application in response to the receiving the instruction for viewing the designated application running in background.

6. The mobile terminal according to claim 5 , the program further including instructions for displaying the screen of the application when the onPause method is invoked.

7. The mobile terminal according to claim 5 , wherein the designated area of a screen of the application is an entire screen of the application.

8. The mobile terminal according to claim 5 , the program further including instructions for:

receiving an operational instruction; and

switching the designated application from running in background to running in foreground according to the operational instruction.

9. A non-transitory computer readable storage medium storing one or more programs, the one or more programs including instructions, which, when executed by a mobile terminal with a display, and one or more processors, cause the mobile terminal to:

display an application on the display of the mobile terminal;

receive an instruction for switching an application state of the application to running in background with a screen of the application closed;

zooming a designated area of the screen of the designated application according to a size of the display and a preset zoom ratio;

capturing a thumbnail after the zooming;

obtain a screenshot of the designated area thumbnail, including a status bar of the display, by invoking a drawFB( ) method in response to receiving the instruction for switching the application state, after an onPause method is invoked, and before an onStop method is invoked, wherein the drawFB( ) method is a drawing method that obtains a current image of a display invoking a preset display device, reading a buffer pixel of the preset display device is read, and generating a bitmap image using the buffer pixel, and wherein the drawFB( ) method has a range that includes the status bar of the display;

store the screenshot of the designated application and switch the designated application state to running in background;

receive an instruction for viewing an application running in background; and

display the screenshot of the application in response to receiving the instruction for viewing the application running in background.

10. The computer readable storage medium according to claim 9 , wherein the instructions further cause the mobile terminal to display the screen of the application when the onPause method is invoked.

11. The computer readable storage medium according to claim 9 , wherein the designated area of a screen of the application is an entire screen of the application.

12. The computer readable storage medium according to claim 9 , wherein the instructions further cause the mobile terminal to:

receive an operational instruction; and

switch the designated application state from running in background to running in foreground according to the operational instruction.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI DEVICE CO.,LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 056413/0883 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2018
From: HUAWEI DEVICE (SHENZHEN) CO., LTD.
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 047603/0039 →
CHANGE OF NAME Recorded Jun 12, 2018
From: HUAWEI DEVICE CO.,LTD.
To: HUAWEI DEVICE (SHENZHEN) CO., LTD.
Reel/Frame 046340/0590 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 25, 2014
From: WU, WEIBIN
To: HUAWEI DEVICE CO., LTD
Reel/Frame 032760/0601 →
Priority Claims (1)
CN 2011 1 0329295 · Oct 26, 2011 · national
Continuity (2)
Continuation PCTCN2012083012 · Oct 16, 2012
Related Publication 20140237405A1 · Aug 21, 2014