Equipment use state recovery method, device and equipment

Through a small amount of input from the user, the near-field communication connection between the main device and the auxiliary device is achieved through a small amount of input from the user, and the problem of time-consuming and labor-intensive recovery of the device status is solved by the user's manual recovery of the device status.

CN119536825APending Publication Date: 2025-02-28VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410870960.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When users exit multiple interconnected electronic devices, they need to manually reopen multiple documents and applications and perform split-screen operations, which is time-consuming and labor-intensive.

Method used

By performing a small amount of input by the user, using the receiving module and the recovery module, the near-field communication connection between the main device and the auxiliary device, in response to user input, the device usage status is restored to the historical state.

Benefits of technology

It greatly simplifies user operations and quickly restores the equipment usage status of the main and auxiliary equipment, saving time and effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536825A_ABST
    Figure CN119536825A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment use state recovery method, device and equipment, and relates to the technical field of communication. The equipment use state recovery method comprises the following steps: receiving a first input of a user; the first input comprises at least one of the following items: input for a state recovery control, input for adjusting the folding state of the main equipment, input for a state recovery control area of the main equipment, input for controlling the main equipment and the auxiliary equipment to establish near field communication connection, and input for the main equipment and the auxiliary equipment; in response to the first input, recovering the device use states of the main device and the auxiliary device to a historical device use state; wherein the device use state comprises at least one of the following states: a screen projection state of the main device and the auxiliary device, a screen extension connection state, a screen splitting state, a file use state and a program interface display state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a method, device and equipment for restoring the usage status of a device. Background Art

[0002] More and more users frequently use multiple interconnected electronic devices when working or studying, and on these electronic devices, users may open multiple documents and applications at the same time, and perform operations such as split screen to perform a task. After the user exits the use state of each electronic device and wants to resume the use state of each electronic device, the user needs to manually reopen multiple documents and applications on each electronic device and perform operations such as split screen, which is time-consuming and laborious. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, apparatus and device for restoring device usage status, which can restore the device usage status of both the main device and the auxiliary device to the historical usage status through a small amount of input by the user, greatly simplifying the user's operation.

[0004] In a first aspect, an embodiment of the present application provides a method for restoring a device usage status, comprising:

[0005] Receive a first input from a user; the first input includes at least one of the following: input to a state recovery control, input to adjust a folded state of the main device, input to a state recovery control area of ​​the main device, input to control the main device to establish a near field communication connection with the auxiliary device, and input to the main device and the auxiliary device;

[0006] In response to the first input, restoring the device usage states of the primary device and the secondary device to historical device usage states;

[0007] Among them, the device usage status includes at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0008] In a second aspect, an embodiment of the present application provides a device for restoring a device usage status, including:

[0009] A receiving module, configured to receive a first input from a user; the first input includes at least one of the following: an input to a state recovery control, an input to adjust a folded state of a primary device, an input to a state recovery control area of ​​a primary device, an input to control a primary device to establish a near field communication connection with a secondary device, and an input to a primary device and a secondary device;

[0010] A recovery module, configured to restore the device usage status of the primary device and the secondary device to a historical device usage status in response to the first input;

[0011] Among them, the device usage status includes at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.

[0016] The embodiment of the present application receives a first input; the first input includes at least one of the following: input to a state recovery control, input to adjust the folding state of the main device, input to the state recovery control area of ​​the main device, input to control the main device and the auxiliary device to establish a near field communication connection, and input to the main device and the auxiliary device; in response to the first input, the device usage state of the main device and the auxiliary device is restored to the historical device usage state; wherein the device usage state includes at least one of the following: the projection state of the main device and the auxiliary device, the screen extension connection state, the screen split state, the file usage state, and the program interface display state. That is, the embodiment of the present application can restore the device usage state of both the main device and the auxiliary device to the historical usage state by the user performing a small amount of input, which greatly simplifies the user's operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of a method for restoring device usage status provided in some embodiments of the present application;

[0018] Figure 2 A schematic diagram of a state recovery control area provided for some embodiments of the present application;

[0019] Figure 3 A schematic diagram of a first input provided for some embodiments of the present application;

[0020] Figure 4A schematic diagram of a first input provided for some embodiments of the present application;

[0021] Figure 5 A schematic diagram of an interface of an auxiliary device provided for some embodiments of the present application;

[0022] Figure 6 A schematic diagram of an interface of a main device provided for some embodiments of the present application;

[0023] Figure 7 A schematic diagram of a multi-device interconnection center interface provided for some embodiments of the present application;

[0024] Figure 8 A schematic diagram of a second input provided for some embodiments of the present application;

[0025] Fig. 9 A schematic diagram of a pop-up window interface provided for some embodiments of the present application;

[0026] Fig.10 A schematic diagram of a second input provided for some embodiments of the present application;

[0027] Fig.11 A schematic diagram of a pop-up window interface provided for some embodiments of the present application;

[0028] Fig.12 A schematic diagram of a pop-up window interface provided for some embodiments of the present application;

[0029] Fig.13 A schematic diagram of the structure of a device usage status recovery apparatus provided in some embodiments of the present application;

[0030] Fig.14 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application;

[0031] Fig.15 A schematic diagram of the hardware structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0033] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0034] The following is a detailed description of the device usage status recovery method, apparatus and device provided in the embodiments of the present application in combination with specific embodiments and their application scenarios.

[0035] It should be noted that the device usage status recovery method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the device usage status recovery method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the device usage status recovery method.

[0036] The device usage status recovery method provided in the embodiment of the present application can be applied to the scenario where the user uses multiple electronic devices for office or study, and of course it can also be applied to the scenario where multiple electronic devices are used to perform other tasks. Among them, a specific application scenario is that the user opens application (Application, App) 1 and file 1 on electronic device A, and App1 and file 1 are displayed in split screen on electronic device A. App2 and file 2 are opened on electronic device B, and the content of the entire screen of electronic device B is projected onto electronic device A and displayed in the form of a small window on electronic device A.

[0037] Another specific application scenario is that the user opens file 1 and file 2, as well as App1 and App2 on electronic device A, opens App3 on electronic device B, opens file 4 and App4 on electronic device C, and the screen of electronic device C is extendedly connected to the screen of electronic device A, that is, the display interface of electronic device A can be partially displayed on electronic device A and partially displayed on electronic device C.

[0038] When each electronic device exits the above state, the user's first input can quickly restore the device usage state of each electronic device to the above state, without the user having to manually operate one by one, saving time and effort. For example, for the first application scenario, through the user's first input, electronic device A can open App1 and file 1, and display App1 and file 1 in split screen. Electronic device B can open App2 and file 2, and the content of the entire screen of electronic device B is projected onto electronic device A and displayed in the form of a small window on electronic device A.

[0039] For the second application scenario, through the user's first input, electronic device A can open file 1 and file 2, as well as App1 and App2, electronic device B can open App3, and electronic device C can open file 4 and App4, and the screen of electronic device C is extendedly connected to the screen of electronic device A, that is, the display interface of electronic device A can be partially displayed on electronic device A and partially displayed on electronic device C.

[0040] It should be noted that the above application scenario is only an example, and other application scenarios may also be included in actual application.

[0041] Figure 1 The present invention provides a flowchart of a method for restoring the device usage status. The method can be applied to a main device, which can be any electronic device in the above application scenario. Figure 1 As shown, the device usage status recovery method may include the following steps:

[0042] Step 110: Receive a first input from a user.

[0043] Among them, the first input includes at least one of the following: input to the state recovery control, input to adjust the folding state of the main device, input to the state recovery control area of ​​the main device, input to control the main device and the auxiliary device to establish a near field communication connection, and input to the main device and the auxiliary device.

[0044] In some embodiments of the present application, the first input is used to control the device usage status of the main device and the auxiliary device to be restored to the historical device usage status, and the first input can be a first operation. Exemplarily, the above-mentioned first input includes but is not limited to: the user's touch input to the display screen of the electronic device through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual usage requirements, and the embodiments of the present application are not limited. The specific gesture in the embodiments of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiments of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first input can be: a user's click input of the state recovery control displayed on the electronic device.

[0045] Step 120: In response to the first input, restore the device usage status of the primary device and the secondary device to the historical device usage status.

[0046] Among them, the device usage status includes at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0047] In the embodiment of the present application, the device usage status of the main device and the auxiliary device can be restored to the historical usage status by the user performing a small amount of input, which greatly simplifies the user's operation.

[0048] The above steps are described in detail below:

[0049] In step 110, the types of the electronic devices may be the same or different. For example, the electronic devices may be any one of a mobile phone, a tablet computer, a laptop computer, etc., or some may be mobile phones and some may be notebook computers or tablet computers, etc.

[0050] The multiple electronic devices here may include a main device and an auxiliary device. The main device may be any one of the multiple electronic devices, and the auxiliary device may be an electronic device other than the main device among the multiple electronic devices. There may be one or more auxiliary devices. That is, the embodiment of the present application can simultaneously restore the device usage status of at least two electronic devices to the historical device usage status through the first input, saving time and effort.

[0051] In the embodiment of the present application, the primary device may directly receive the first input of the user, or may receive the first input after the primary device establishes a communication connection with the secondary device.

[0052] The communication connection between the primary device and the secondary device may be automatically established by the primary device and the secondary device. For example, when the primary device detects that the secondary device and the primary device log in to the same user account, the primary device may automatically establish a connection with the secondary device. The connection method may include but is not limited to Bluetooth and Wireless-Fidelity (Wi-Fi).

[0053] Of course, the communication connection between the primary device and the secondary device can also be established by the user.

[0054] Exemplarily, the first input may include at least one of the following: input to a state recovery control, input to adjust the folded state of the main device, input to a state recovery control area of ​​the main device, input to control the main device to establish a near field communication connection with the auxiliary device, and input to the main device and the auxiliary device. That is, the first input may act on the main device, or may act on both the main device and the auxiliary device at the same time.

[0055] It should be noted that, in the case where the primary device and the secondary device have established a communication connection, the first input may no longer include an input for controlling the primary device and the secondary device to establish a near field communication connection.

[0056] The specific form of the first input is described in detail below, as shown below:

[0057] In some embodiments, when the first input includes an input to a state restoration control, the state restoration control may be in the form of a button, such as a state restoration button in a task menu, or in the form of an icon, such as a desktop icon.

[0058] Based on this, before step 110, the device using the state recovery method may further include the following steps: displaying a state recovery control;

[0059] Accordingly, the above step 110 may include the following steps: receiving a first input of a user to a state restoration control.

[0060] Taking the status recovery button in the task menu as an example, illustratively, the user can use gestures, voice, touch, etc. to make the main device display the task menu. The first input can be gesture input, touch input, etc. of the status recovery button in the task menu. The touch input can, for example, include click, double-click, slide and other operations.

[0061] Taking a desktop icon as an example, illustratively, the first input may be an operation such as clicking, double-clicking, long pressing, or sliding the desktop icon.

[0062] The embodiment of the present application can restore the device usage status of the main device and the auxiliary device to the historical device usage status with one click by performing a simple single-click, double-click, long press, etc. operation on the status recovery control in the main device, which greatly simplifies the user's operation and improves the speed of status recovery.

[0063] In some embodiments, when the main device is a foldable device, the first input may also be an input for adjusting the folding state of the main device. Exemplarily, the above step 110 may include the following steps:

[0064] A first input from a user controlling the main device to adjust from a first folding state to a second folding state is received.

[0065] Exemplarily, the first folding state may be a state in which the two split screens of the main device are completely folded in half. The second folding state may be a state in which the two split screens of the main device are completely opened. When the user fully opens the main control device, it is considered that the user wishes to restore the device usage state of each electronic device to the historical device usage state. Of course, the first folding state may also be a state in which the two split screens are in between being completely folded in half and being completely opened, that is, a state corresponding to an angle between the two split screens being greater than 0° and less than 180°, wherein 0° indicates that the two split screens are completely folded in half, and 180° indicates that the two split screens are completely opened.

[0066] Exemplarily, the first input may act on one of the two split screens, or may act on both split screens simultaneously.

[0067] In the embodiment of the present application, when the main device is a folding device, the device usage status of the main device and the auxiliary device can be restored to the historical device usage status by adjusting the folding state of the main device. There is no need to perform other operations on the main device, nor to perform any operations on the auxiliary device, which greatly simplifies the user's operation and improves the speed of status recovery.

[0068] In some embodiments, the first input may also be an input to a status recovery control area of ​​the main device. Accordingly, the above step 110 may include the following steps: receiving a first input from a user to a status recovery control area on a display screen of the main device.

[0069] The state recovery control area can be any area on the display screen of the main device. For example, when the main device is a large-screen device, that is, a device with a large screen size such as a tablet, the state recovery control area can be a split-screen area of ​​the main device. Figure 2 As shown, when the display screen of the main device 200 is divided into two split screens, the state recovery control area can be an area 210 where the two split screens are connected.

[0070] Figure 2For example, the display screen of the main device 200 is divided into two split screens, left split screen 2001 and right split screen 2002. The left split screen 2001 displays the App 220 opened by the user, and the right split screen 2002 displays the file 230 opened by the user. The App 220 may be a video App, and the file 230 may be a courseware. Of course, the display screen of the main device 200 may also be divided into two split screens, upper and lower. In this case, the state recovery control area may be the area where the upper and lower split screens meet. It should be noted that Figure 2 The width of the area 210 in the horizontal direction is only an example, and in actual application, the width may be smaller.

[0071] In addition, when the display screen of the main device can be divided into three or more split screens, the state recovery control area can also be an area where any two split screens are connected.

[0072] The first input may be a single click, double click, long press, slide, or other operation on the state recovery control area.

[0073] The embodiment of the present application can restore the device usage status of the main device and the auxiliary device to the historical device usage status with one click by performing a simple single-click, double-click, long press, slide, etc. on the status recovery control area on the main device display screen, thereby making full use of the large-screen characteristics of the large-screen device, without the user having to perform other additional operations, greatly improving the speed of status recovery.

[0074] In some embodiments, when both the primary device and the secondary device have a near field communication (NFC) function, the first input may also be an input for controlling the primary device to establish an NFC connection with the secondary device. Accordingly, the above step 110 may include the following steps:

[0075] A first input of a user controlling a primary device to establish an NFC connection with a secondary device is received.

[0076] For example, Figure 3As shown, when the distance between the NFC area of ​​the main device 300 and the NFC area of ​​the auxiliary device 301 is less than the reference distance, the main device 300 can establish an NFC connection with the auxiliary device 301 to perform near field communication. That is, the first input can be an input that controls the distance between the NFC area of ​​the main device 300 and the NFC area of ​​the auxiliary device 301 to be less than the reference distance. Among them, the main device 300 can display the App 302 and file 303 opened by the user in split screen. For example, App 302 can be an instant messaging app, and file 303 can be a note. The auxiliary device 301 can display the App 304 and file 305 opened by the user in split screen. For example, App 304 can be a video app, and file 305 can be a courseware. The Apps or files opened in the main device 300 and the auxiliary device 301 can be adjusted according to the needs of the user, and the display method of the Apps or files can also be adjusted according to the needs of the user.

[0077] The reference distance may be determined based on the effective working distance of the NFC technology. For example, normally, the effective working distance of the NFC technology is within 10 centimeters, and the reference distance may be set to a value less than 10 cm.

[0078] When both the main device and the auxiliary device have NFC functions, the embodiment of the present application can fully utilize the NFC functions of the main device and the auxiliary device, control the main device and the auxiliary device to establish a near-field communication connection, and restore the device usage status of the main device and the auxiliary device with one click, which is more efficient.

[0079] In some embodiments, the first input may also be for multiple devices, for example, it may be input to a primary device and a secondary device. Accordingly, the above step 110 may include the following steps: receiving gesture control input from the user on the display screen of the primary device and the display screen of the secondary device.

[0080] There may be many ways of gesture control input. For example, in some embodiments, the gesture control input may be an input of performing a pinch gesture on the display screen of the primary device and the display screen of the secondary device, such as Figure 4 As shown, one finger of the user performs a gesture on the left edge of the display screen of the primary device 300, and another finger performs a gesture on the right edge of the display screen of the secondary device 301, and the two gestures together constitute a pinch gesture. The arrow represents the direction of the gesture.

[0081] For example, when performing the pinch gesture, the main device 300 and the auxiliary device 301 may be placed side by side. Figure 4 Taking the example of placing the main device 300 and the auxiliary device 301 side by side on the left and right, in actual application, the main device 300 and the auxiliary device 301 can also be placed side by side on the top and bottom.

[0082] Exemplarily, the gesture control input may also be a sliding gesture input performed on the display screen of the main device 300 and the display screen of the auxiliary device 301. For example, it may be a gesture input of sliding from the display screen of the main device 300 to the display screen of the auxiliary device 301. It may also be other forms of gesture input, which is not specifically limited in the embodiments of the present application.

[0083] The embodiment of the present application restores the device usage status of the main device and the auxiliary device by performing gesture control input on the display screen of the main device and the display screen of the auxiliary device, thereby simplifying user operations and ensuring the accuracy of status recovery.

[0084] In step 120, after the primary device receives the first input from the user, the device usage status of the primary device and the secondary device can be restored to the historical device usage status.

[0085] Among them, the device usage status may include at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0086] The screen projection status may include the screen projection end, the screen projection end, the screen projection content, and the screen projection position. In the embodiment of the present application, the screen projection end can be a main device or a secondary device. For example, when the screen projection end is the main device, the screen projection end can be a secondary device, and when the screen projection end is the secondary device, the screen projection end can be the main device. Of course, when there are multiple secondary devices, the screen projection end and the screen projection end can also be different secondary devices.

[0087] The projection content can be the display content of the entire screen of the projection end, or it can be the display content of part of the entire screen of the projection end. The projection position can be the display position of the projection content on the projection end, for example, it can be displayed in the form of a small window in the upper left corner or upper right corner of the display screen of the projection end.

[0088] Take the auxiliary device 301 including a mobile phone as an example. Figure 5 As shown, it is assumed that the user opens the note 303 and the instant messaging App 302 on the mobile phone and displays them in split screen. Take the main device 300 including a tablet as an example. Figure 6 As shown, it is assumed that the user opens the video app 304 and the courseware 305 on the tablet and splits the screen. For example, the screen projection state can be that the entire screen of the mobile phone is projected onto the tablet, and can be displayed in the form of a small window 601 in the upper right corner of the tablet, which will not affect the user's use of the displayed content on the tablet.

[0089] The screen extension connection state may include the relative position relationship between the screen for extension connection and the screen for extension connection. There may be multiple screens for extension connection. Taking the screen of the main device A and the screen of the auxiliary device B for example, the screen of the main device A may be located on the left side of the screen of the auxiliary device B, or on the right side of the screen of the auxiliary device B, or may be in other relative position relationships.

[0090] When at least two screens are extended and connected, the at least two screens can be used as one large screen, thereby increasing the screen size and making it more convenient for users to operate. Still taking the example of extending and connecting the screen of the main device A and the screen of the auxiliary device B, after the two screens are extended and connected, a part of the document A displayed on the main device A can be displayed on the screen of the main device A, and another part can be displayed on the screen of the auxiliary device B.

[0091] The screen split status may include a split screen device and a split screen mode. The split screen device may include at least one of a primary device and a secondary device. The split screen mode may include left-right split screen, top-bottom split screen, etc.

[0092] The file usage status may include which files are opened by at least one of the primary device and the secondary device and the display positions of these files on the display screen. For example, for the same device, all the contents opened by the device can be displayed in full screen. It can also be displayed in split screen, such as Figure 5 or Figure 6 shown.

[0093] The program interface display status may include which apps are opened on at least one of the primary device and the secondary device, and the display position of the corresponding program interface. The display method of the program interface may be similar to the display method of the file. For example, if a user opens a file and an app on the same device at the same time, the file and the app may be displayed in split screens, that is, one split screen may display the file and the other split screen may display the app. Figure 5 or Figure 6 shown.

[0094] Illustratively, after the main device receives the first input from the user, it can restore at least one of the above-mentioned device usage states of the main device and the auxiliary device to the historical device usage state, which greatly simplifies the user's operation and saves time and effort.

[0095] In some embodiments, before step 110, the device usage state recovery method may further include the following steps:

[0096] receiving a second input from the user;

[0097] In response to the second input, storing the historical device usage status of the primary device and the secondary device through the device usage status script;

[0098] Accordingly, the above step 120 may include the following steps:

[0099] Get the historical device usage status of the primary device and the secondary device stored in the device usage status script;

[0100] Restore the device usage status of the primary device and the secondary device to the historical device usage status.

[0101] The second input may be an input for saving the historical device usage status of the main device and the auxiliary device, and the second input may be a second operation. Exemplarily, the second input includes, but is not limited to: a touch input of the display screen of the electronic device by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which may be determined according to actual usage requirements, and are not limited in the embodiments of the present application. The specific gesture in the embodiments of the present application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiments of the present application may be a single-click input, a double-click input, or any number of click inputs, etc., and may also be a long press input or a short press input. For example, the second input may be: a click input of the user on the setting control displayed on the electronic device.

[0102] In the embodiment of the present application, when the primary device receives the second input from the user, the historical device usage status of the primary device and the secondary device can be saved through the device usage status script. The device usage status script is used to record information that can characterize the historical device usage status of the primary device and the secondary device.

[0103] Exemplarily, after receiving the first input, the master device can obtain the historical device usage status of the master device and the slave device stored in the device usage status script, and restore the device usage status of the master device and the slave device to the historical device usage status with higher accuracy.

[0104] The specific form of the second input and the specific content stored in the device usage status script are described in detail below.

[0105] In some embodiments, the second input may include a sub-input to a setting control, a sub-input to a multi-device interconnection center control, and a sub-input to a state restoration button.

[0106] For example, when the user clicks, double-clicks, or long presses the setting control, the main device may display the multi-device interconnection center control. Figure 7 As shown, the main device 300 can display a multi-device interconnection center interface 700 , and the multi-device interconnection center interface 700 can include a state recovery button 701 .

[0107] When the user clicks the status recovery button 701, the primary device 300 can save the historical device usage status of the primary device 300 and the secondary device 301, and create a desktop icon on the desktop. That is, the user can not only restore the device usage status of the primary device 300 and the secondary device 301 to the pre-saved historical device usage status through the status recovery button 701, but also save the historical device usage status of the primary device 300 and the secondary device 301.

[0108] In some embodiments, when the main device 300 is a foldable device, the second input may include a sub-input for a folding area of ​​the foldable device and a sub-input for saving the device usage status, such as Figure 8 As shown, when the user clicks on the fold area 800, the Fig. 9 The pop-up window 901 shown includes a flip quick open control 902, an add control 903, and a cancel control 904. It should be noted that Figure 8 The crease area 800 shown is only an example. In actual application, the width of the crease area in the horizontal direction may be smaller.

[0109] The flip quick open control 902 is used to indicate that the foldable device is fully opened to a large-screen device. Exemplarily, when the user selects the flip quick open control 902, it means that the historical device usage status of the main device 300 and the auxiliary device 301 is saved.

[0110] Add control 903 is used to create a desktop icon that can restore the device usage status. For example, when the user selects Add control 903, the main device 300 can create a corresponding desktop icon on the desktop. The user can subsequently restore the device usage status of the main device 300 and the auxiliary device 301 by adjusting the folding state of the folding device or clicking the desktop icon.

[0111] The cancel control 904 is used to cancel the operation of the flip quick open control 902 and the add control 903 .

[0112] In some embodiments, the second input may also include an input to the state recovery control area of ​​the main device. For example, a large-screen device Fig.10 As shown, the second input may be an input to the split screen area 1001 of the large screen device. For example, when the user clicks the split screen area 1001, the main device 300 may save the historical device usage status of the main device 300 and the auxiliary device 301. It should be noted that Fig.10 The split screen area 1001 in the figure is only an example. In actual application, the width of the split screen area 1001 in the horizontal direction can be smaller.

[0113] In some embodiments, when both the primary device and the secondary device are NFC devices, the second input may also include a sub-input for controlling the primary device to establish a near field communication connection with the secondary device and a sub-input for saving the device usage status. For example, Figure 3 As shown in FIG. 1 , when the NFC area of ​​the primary device 300 touches the NFC area of ​​the secondary device 301, as shown in FIG. Fig.11 As shown, a pop-up window 1101 "Do you want to save the device usage status of the main device and the auxiliary device" may be displayed on the main device 300. When the user clicks "Yes", the main device 300 can save the historical device usage status of the main device 300 and the auxiliary device 301, and can also create a corresponding desktop icon on the desktop. The user can then quickly restore the device usage status of the main device 300 and the auxiliary device 301 by controlling the main device 300 to establish an NFC connection with the auxiliary device 301 or clicking the desktop icon.

[0114] In some embodiments, the second input may also include a gesture control sub-input for the primary device and the secondary device and a sub-input for saving the device usage status. Figure 4 As shown, the main device 300 and the auxiliary device 301 are placed side by side. When the user performs a pinch gesture on the screens of the main device 300 and the auxiliary device 301, as shown in FIG. Fig.12 As shown, the main device 300 may display a pop-up window 1201 "Do you want to save the device usage status of the main device and the auxiliary device?" When the user clicks "Yes," the main device 300 can save the historical device usage status of the main device 300 and the auxiliary device 301, and can also create a desktop icon on the desktop. The user can then perform a specific gesture input on the main device 300 and the auxiliary device 301 or click on the desktop icon to quickly restore the saved device usage status of the main device 300 and the auxiliary device 301.

[0115] In some embodiments, when the device usage status includes the screen projection status, the device usage status script may include the IP address of the screen projection end, the IP address of the screen projection end, the screen projection content, and the screen projection position of the screen projection content on the screen projection end. According to the IP address of the screen projection end, the IP address of the screen projection end, the screen projection content, and the screen projection position of the screen projection content on the screen projection end recorded in the device usage status script, the primary device may restore the device usage status of itself and the secondary device to the historical usage status.

[0116] For example, if the projection end is the main device and the projection end is the auxiliary device, the main device can generate a projection instruction based on the projection content and the projection position of the projection content on the auxiliary device, and send the projection instruction to the corresponding auxiliary device according to the IP address, so that the auxiliary device can display the projection content according to the projection position.

[0117] For another example, if the screen projection end is a secondary device and the screen projection end is a primary device, the primary device can generate a screen projection instruction based on the IP address of the primary device and the projection content, and send the projection instruction to the corresponding secondary device according to the IP address, so that the secondary device sends the corresponding projection content to the primary device corresponding to the IP address. After the primary device receives the projection content sent by the secondary device, it can display the projection content according to the projection position recorded by the device usage status script.

[0118] In some embodiments, when the device usage status includes a screen split status, the device usage status script may include the IP address of the split-screen device and the split-screen mode.

[0119] Taking the split screen of the main device as an example, the main device can split the screen according to the split screen mode recorded by the device usage status script. Taking the split screen of the auxiliary device as an example, the main device can generate a split screen instruction based on the split screen mode, and send the split screen instruction to the auxiliary device corresponding to the IP address. After receiving the split screen instruction, the auxiliary device can split the screen according to the split screen mode.

[0120] In some embodiments, when the device usage status includes a file usage status, the device usage status script includes the file name, storage location, and display location of a file opened by at least one of the primary device and the secondary device.

[0121] Taking restoring the file usage status of the main device as an example, illustratively, the main device can obtain and open the corresponding file from the corresponding storage location based on the file name and storage location of the opened file recorded in the device usage status script, and display it according to the recorded display location.

[0122] Taking the restoration of the file usage status of the auxiliary device as an example, illustratively, the main device can generate a file usage instruction based on the file name, storage location and display location of the file opened by the auxiliary device recorded in the device usage status script, and send the file usage instruction to the corresponding auxiliary device, so that the auxiliary device opens the corresponding file and displays it according to the display location. It should be noted that the storage location may include the IP address of the device where the file is located.

[0123] In some embodiments, when the device usage status includes the program interface display status, the device usage status script includes the program identifier of the App opened by at least one of the primary device and the secondary device, the display position of the program interface, and the IP address of the device to which the App belongs.

[0124] Taking restoring the program interface display status of the main device as an example, illustratively, the main device can open the corresponding App based on the program identifier and display position of the program interface of the opened App recorded in the device usage status script, and display the program interface of the App according to the recorded display position.

[0125] Taking restoring the program interface display status of the auxiliary device as an example, illustratively, the main device can generate an App usage instruction based on the program identifier of the App of the file opened by the auxiliary device recorded in the device usage status script and the display position of the program interface, and send the App usage instruction to the auxiliary device corresponding to the IP address, so that the auxiliary device opens the corresponding App and displays the corresponding program interface according to the display position.

[0126] That is, the embodiment of the present application records information corresponding to the historical device usage status of the primary device and the secondary device through a device usage status script, and when the primary device receives a first input, the device usage status of the primary device and the secondary device can be restored based on the information recorded in the device usage status script, which can greatly reduce user operations and make the status recovery results more accurate.

[0127] In some embodiments, the embodiments of the present application can also selectively restore the device usage status of the main device and the auxiliary device according to the user's needs to meet the user's personalized needs.

[0128] Exemplarily, the historical device usage status includes a historical usage status of at least one device object;

[0129] The device object includes at least one of the following: a screen projection object, a screen extension object, a screen split object, a file object, and a program interface object;

[0130] The first input also includes a selection input for selecting a device object of a historical device usage status;

[0131] Accordingly, the above step 120 may further include the following steps:

[0132] displaying at least one device object option, wherein the device object option indicates a device object with a historical usage status;

[0133] When receiving a selection input of at least one device object option from the user, the device object indicated by the device object option selected in the selection input is determined as the target device object, and the device usage status of the target device objects of the primary device and the secondary device is restored to the historical device usage status.

[0134] Among them, the projection object, screen extension object, screen split-screen object, file object, and program interface object correspond one by one to the projection status, screen extension connection status, screen split-screen status, file usage status, and program interface display status in the above embodiments. Please refer to the above embodiments for details. For the sake of brevity, they will not be repeated here.

[0135] The selection input may be a single click, double click, long press, or slide operation by the user on a device object option.

[0136] Exemplarily, after receiving the user's first input, the main device can display at least one device object option, and selectively restore the device usage status based on the user's selection input of at least one device object option, thereby achieving flexible recovery of the device usage status and meeting different user needs.

[0137] The embodiment of the present application can not only restore the device usage status of the main device and the auxiliary device with one click through the status control, but also use the device characteristics of foldable devices, large-screen devices, NFC devices, gestures, etc. to restore the device usage status of the main device and the auxiliary device, which is more efficient. The above methods can greatly simplify the user's operation and save time and effort.

[0138] It should be noted that the device usage status recovery method provided in the embodiment of the present application can be executed by a device usage status recovery device, or a processing module in the device usage status recovery device for executing the device usage status recovery method. In the embodiment of the present application, the device usage status recovery device provided in the embodiment of the present application is described by taking the device usage status recovery device executing the device usage status recovery method as an example.

[0139] Fig.13 A schematic diagram of the structure of a device usage status recovery apparatus provided in an embodiment of the present application.

[0140] like Fig.13 As shown, the device usage status recovery device 1300 may include:

[0141] The receiving module 1301 is used for a first input of a user; the first input includes at least one of the following: an input to a state recovery control, an input to adjust a folded state of a primary device, an input to a state recovery control area of ​​a primary device, an input to control a primary device to establish a near field communication connection with a secondary device, and an input to a primary device and a secondary device;

[0142] A recovery module 1302, configured to recover the device usage status of the primary device and the secondary device to the historical device usage status in response to the first input;

[0143] Among them, the device usage status includes at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0144] The embodiment of the present application receives a first input; the first input includes at least one of the following: input to a state recovery control, input to adjust the folding state of the main device, input to the state recovery control area of ​​the main device, input to control the main device and the auxiliary device to establish a near field communication connection, and input to the main device and the auxiliary device; in response to the first input, the device usage state of the main device and the auxiliary device is restored to the historical device usage state; wherein the device usage state includes at least one of the following: the projection state of the main device and the auxiliary device, the screen extension connection state, the screen split state, the file usage state, and the program interface display state. That is, the embodiment of the present application can restore the device usage state of both the main device and the auxiliary device to the historical usage state by the user performing a small amount of input, which greatly simplifies the user's operation.

[0145] In some possible implementations of the embodiments of the present application, the device usage state recovery device 1300 may further include:

[0146] A display module, used for displaying a state recovery control before the receiving module 1301 receives the first input from the user;

[0147] The receiving module 1301 is specifically used for:

[0148] A first user input to a state restoration control is received.

[0149] In some possible implementations of the embodiments of the present application, when the main device is a foldable device, the receiving module 1301 is specifically configured to:

[0150] A first input from a user controlling the main device to adjust from a first folding state to a second folding state is received.

[0151] In some possible implementations of the embodiments of the present application, the receiving module 1301 is specifically configured to:

[0152] Receive a first input from a user to a status recovery control area on a display screen of a main device.

[0153] In some possible implementations of the embodiments of the present application, the receiving module 1301 is specifically configured to:

[0154] A first input of a user controlling a main device to establish a near field communication connection with a secondary device is received.

[0155] In some possible implementations of the embodiments of the present application, the receiving module 1301 is specifically configured to:

[0156] Receive gesture control input from a user on a display screen of a primary device and a display screen of a secondary device.

[0157] In some possible implementations of the embodiments of the present application, the receiving module 1301 is further configured to receive a second input from the user before receiving the first input from the user;

[0158] The device usage status recovery device 1300 may further include:

[0159] A storage module, configured to store historical device usage states of the primary device and the secondary device via a device usage state script in response to a second input;

[0160] The recovery module 1302 is specifically used for:

[0161] Get the historical device usage status of the primary device and the secondary device stored in the device usage status script;

[0162] Restore the device usage status of the primary device and the secondary device to the historical device usage status.

[0163] In some possible implementations of the embodiments of the present application, when the device usage status includes a screen projection status, the device usage status script includes an IP address of the screen projection terminal, an IP address of the screen projection terminal, the screen projection content, and a projection position of the screen projection content on the screen projection terminal;

[0164] In the case where the device usage status includes the screen extension connection status, the device usage status script includes the IP address of the device to which the screen performing the extension connection belongs and the relative position relationship of the screen performing the extension connection;

[0165] In the case where the device usage status includes a screen split status, the device usage status script includes an IP address of the split-screen device and a split-screen mode;

[0166] In the case where the device usage status includes a file usage status, the device usage status script includes a file name, a storage location, and a display location of a file opened by at least one of the primary device and the secondary device;

[0167] In the case where the device usage status includes a program interface display status, the device usage status script includes a program identifier of an application program opened by at least one of the primary device and the secondary device and a display position of the program interface.

[0168] In some possible implementations of the embodiments of the present application, the historical device usage status includes a historical usage status of at least one device object;

[0169] The device object includes at least one of the following: a screen projection object, a screen extension object, a screen split object, a file object, and a program interface object;

[0170] The first input also includes a selection input for selecting a device object of a historical device usage status;

[0171] The display module is further used to display at least one device object option, where the device object option indicates a device object with a historical usage status;

[0172] The recovery module 1302 is specifically used for:

[0173] When receiving a selection input of at least one device object option from the user, the device object indicated by the device object option selected in the selection input is determined as the target device object, and the device usage status of the target device objects of the primary device and the secondary device is restored to the historical device usage status.

[0174] The embodiment of the present application can not only restore the device usage status of the main device and the auxiliary device with one click through the status control, but also use the device characteristics of foldable devices, large-screen devices, NFC devices, gestures, etc. to restore the device usage status of the main device and the auxiliary device, which is more efficient. The above methods can greatly simplify the user's operation and save time and effort.

[0175] The device usage status recovery device in the embodiment of the present application can be a device, or a component in an electronic device, such as an integrated circuit or a chip. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmentedreality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personaldigital assistant, PDA), etc., and can also be a server, a network attached storage (Network AttachedStorage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0176] The electronic device in the embodiment of the present application may be a terminal with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0177] The device usage status recovery device provided in the embodiment of the present application can achieve Figure 1 The various processes in the device usage status recovery method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.

[0178] like Fig.14As shown, an embodiment of the present application also provides an electronic device 1400, including a processor 1401 and a memory 1402, wherein the memory 1402 stores programs or instructions that can be executed on the processor 1401, and when the program or instructions are executed by the processor 1401, the various steps of the above-mentioned device usage status recovery method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0179] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile terminals and non-mobile terminals.

[0180] Fig.15 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0181] The electronic device 1500 includes but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510 and other components.

[0182] Those skilled in the art will appreciate that the electronic device 1500 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.15 The structure of the electronic device 1500 shown in the figure does not constitute a limitation of the electronic device 1500. The electronic device 1500 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0183] The user input unit 1507 is used to receive a first input from a user; the first input includes at least one of the following: an input to a state recovery control, an input to adjust the folding state of the main device, an input to a state recovery control area of ​​the main device, an input to control the main device to establish a near field communication connection with the auxiliary device, and an input to the main device and the auxiliary device;

[0184] The processor 1510 is configured to restore the device usage status of the primary device and the secondary device to the historical device usage status in response to the first input;

[0185] Among them, the device usage status includes at least one of the following: screen projection status of the main device and the auxiliary device, screen extension connection status, screen split status, file usage status, and program interface display status.

[0186] The embodiment of the present application receives a first input; the first input includes at least one of the following: input to a state recovery control, input to adjust the folding state of the main device, input to the state recovery control area of ​​the main device, input to control the main device and the auxiliary device to establish a near field communication connection, and input to the main device and the auxiliary device; in response to the first input, the device usage state of the main device and the auxiliary device is restored to the historical device usage state; wherein the device usage state includes at least one of the following: the projection state of the main device and the auxiliary device, the screen extension connection state, the screen split state, the file usage state, and the program interface display state. That is, the embodiment of the present application can restore the device usage state of both the main device and the auxiliary device to the historical usage state by the user performing a small amount of input, which greatly simplifies the user's operation.

[0187] In some possible implementations of the embodiments of the present application, the display unit 1506 is configured to display a state recovery control before the user input unit 1507 receives a first input from the user;

[0188] The user input unit 1507 is specifically used for:

[0189] A first user input to a state restoration control is received.

[0190] In some possible implementations of the embodiments of the present application, when the main device is a foldable device, the user input unit 1507 is specifically used to:

[0191] A first input from a user controlling the main device to adjust from a first folding state to a second folding state is received.

[0192] In some possible implementations of the embodiments of the present application, the user input unit 1507 is specifically used to:

[0193] Receive a first input from a user to a status recovery control area on a display screen of a main device.

[0194] In some possible implementations of the embodiments of the present application, the user input unit 1507 is specifically used to:

[0195] A first input of a user controlling a main device to establish a near field communication connection with a secondary device is received.

[0196] In some possible implementations of the embodiments of the present application, the user input unit 1507 is specifically used to:

[0197] Receive gesture control input from a user on a display screen of a primary device and a display screen of a secondary device.

[0198] In some possible implementations of the embodiments of the present application, the user input unit 1507 is further configured to receive a second input from the user before receiving a first input from the user;

[0199] The processor 1510 is further configured to store the historical device usage status of the primary device and the secondary device via a device usage status script in response to the second input;

[0200] Get the historical device usage status of the primary device and the secondary device stored in the device usage status script;

[0201] Restore the device usage status of the primary device and the secondary device to the historical device usage status.

[0202] In some possible implementations of the embodiments of the present application, when the device usage status includes a screen projection status, the device usage status script includes an IP address of the screen projection terminal, an IP address of the screen projection terminal, the screen projection content, and a projection position of the screen projection content on the screen projection terminal;

[0203] In the case where the device usage status includes the screen extension connection status, the device usage status script includes the IP address of the device to which the screen performing the extension connection belongs and the relative position relationship of the screen performing the extension connection;

[0204] In the case where the device usage status includes a screen split status, the device usage status script includes an IP address of the split-screen device and a split-screen mode;

[0205] In the case where the device usage status includes a file usage status, the device usage status script includes a file name, a storage location, and a display location of a file opened by at least one of the primary device and the secondary device;

[0206] In the case where the device usage status includes a program interface display status, the device usage status script includes a program identifier of an application program opened by at least one of the primary device and the secondary device and a display position of the program interface.

[0207] In some possible implementations of the embodiments of the present application, the historical device usage status includes a historical usage status of at least one device object;

[0208] The device object includes at least one of the following: a screen projection object, a screen extension object, a screen split object, a file object, and a program interface object;

[0209] The first input also includes a selection input for selecting a device object of a historical device usage status;

[0210] The display unit 1506 is further used to display at least one device object option, where the device object option indicates a device object with a historical usage status;

[0211] Processor 1510 is specifically used to: upon receiving a user's selection input for at least one device object option, determine the device object indicated by the device object option selected in the selection input as the target device object, and restore the device usage status of the target device objects of the primary device and the secondary device to the historical device usage status.

[0212] The embodiment of the present application can not only restore the device usage status of the main device and the auxiliary device with one click through the status control, but also use the device characteristics of foldable devices, large-screen devices, NFC devices, gestures, etc. to restore the device usage status of the main device and the auxiliary device, which is more efficient. The above methods can greatly simplify the user's operation and save time and effort.

[0213] It should be understood that in the embodiment of the present application, the input unit 1504 may include a graphics processor (Graphics Processing Unit, GPU) 15041 and a microphone 15042, and the graphics processor 15041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1506 may include a display panel 15061, and the display panel 15061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1507 includes a touch panel 15071 and at least one of other input devices 15072. The touch panel 15071 is also called a touch screen. The touch panel 15071 may include two parts: a touch detection device and a touch controller. Other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0214] The memory 1509 can be used to store software programs and various data. The memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1509 may include a volatile memory or a non-volatile memory, or the memory 1509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0215] The processor 1510 may include one or more processing units; optionally, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1510.

[0216] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned device usage status recovery method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0217] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0218] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned device usage status recovery method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0219] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0220] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned device usage status recovery method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0221] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0222] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0223] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for restoring the usage status of a device, characterized in that: include: Receive a first input from a user; the first input includes at least one of the following: input to a state recovery control, input to adjust a folded state of a main device, input to a state recovery control area of ​​the main device, input to control a main device to establish a near field communication connection with a secondary device, and input to the main device and the secondary device; In response to the first input, restoring the device usage status of the primary device and the secondary device to the historical device usage status; Among them, the device usage status includes at least one of the following: the screen projection status of the main device and the auxiliary device, the screen extension connection status, the screen split status, the file usage status, and the program interface display status.

2. The method according to claim 1, characterized in that Before receiving the first input from the user, the method further includes: Display state restoration controls; The receiving a first input from a user comprises: A first input of a user to the state restoration control is received.

3. The method according to claim 1, characterized in that In the case where the main device is a foldable device, the receiving a first input from a user includes: A first input from a user controlling the main device to adjust from a first folding state to a second folding state is received.

4. The method according to claim 1, characterized in that: The receiving a first input from a user comprises: Receive a first input from a user to a status recovery control area on the display screen of the main device.

5. The method according to claim 1, characterized in that The receiving a first input from a user comprises: A first input of a user controlling a main device to establish a near field communication connection with a secondary device is received.

6. The method according to claim 1, characterized in that The receiving a first input from a user comprises: Receive gesture control input from a user on a display screen of a primary device and a display screen of a secondary device.

7. The method according to claim 1, characterized in that Before receiving the first input from the user, the method further includes: receiving a second input from the user; In response to the second input, storing historical device usage status of the primary device and the secondary device through a device usage status script; The step of restoring the device usage status of the primary device and the secondary device to the historical device usage status includes: Obtain the historical device usage status of the primary device and the secondary device stored in the device usage status script; The device usage status of the primary device and the secondary device is restored to the historical device usage status.

8. The method according to claim 7, characterized in that In the case where the device usage status includes the screen projection status, the device usage status script includes the IP address of the screen projection terminal, the IP address of the screen projection terminal, the screen projection content, and the projection position of the screen projection content on the screen projection terminal; In the case where the device usage status includes the screen extension connection status, the device usage status script includes the IP address of the device to which the screen performing the extension connection belongs and the relative position relationship of the screen performing the extension connection; In the case where the device usage status includes the screen split status, the device usage status script includes the IP address of the split screen device and the split screen mode; In the case where the device usage status includes the file usage status, the device usage status script includes the file name, storage location and display location of the file opened by at least one of the primary device and the secondary device; When the device usage status includes the display status of the program interface, the device usage status script includes the program identifier of the application opened by at least one of the primary device and the secondary device, the display position of the program interface and the IP address of the device to which the application belongs.

9. The method according to claim 7 or 8, characterized in that: The historical device usage status includes a historical usage status of at least one device object; The device object includes at least one of the following: a screen projection object, a screen extension object, a screen split object, a file object, and a program interface object; The first input also includes a selection input for selecting a device object of a historical device usage status; The step of restoring the device usage status of the primary device and the secondary device to the historical device usage status includes: displaying at least one device object option, wherein the device object option indicates a device object with a historical usage status; When receiving a selection input of the at least one device object option by the user, the device object indicated by the device object option selected by the selection input is determined as the target device object, and the device usage status of the target device object of the primary device and the secondary device is restored to the historical device usage status.

10. A device for restoring the usage status of a device, characterized in that: include: A receiving module, configured to receive a first input from a user; the first input includes at least one of the following: an input to a state recovery control, an input to adjust a folded state of a main device, an input to a state recovery control area of ​​the main device, an input to control a main device to establish a near field communication connection with a secondary device, and an input to the main device and the secondary device; A recovery module, configured to restore the device usage status of the primary device and the secondary device to a historical device usage status in response to the first input; Among them, the device usage status includes at least one of the following: the screen projection status of the main device and the auxiliary device, the screen extension connection status, the screen split status, the file usage status, and the program interface display status.

11. The device according to claim 10, characterized in that The device also includes: A display module, configured to display a state recovery control before the receiving module receives a first input from a user; The receiving module is specifically used to receive a first input of the user to the state restoration control.

12. The device according to claim 10, characterized in that In the case that the main device is a folding device, the receiving module is specifically used to: receive a first input from a user to control the main device to adjust from a first folding state to a second folding state.

13. The device according to claim 10, characterized in that The receiving module is specifically used to receive a first input from a user to the status recovery control area on the display screen of the main device.

14. The device according to claim 10, characterized in that The receiving module is specifically used to receive a first input from a user to control the main device to establish a near field communication connection with the auxiliary device.

15. The device according to claim 10, characterized in that The receiving module is specifically used to receive gesture control input from the user on the display screen of the main device and the display screen of the auxiliary device.

16. The device according to claim 10, characterized in that The receiving module is further configured to receive a second input from the user before receiving the first input from the user; The device also includes: A storage module, configured to store historical device usage status of the primary device and the secondary device via a device usage status script in response to the second input; The recovery module is specifically used for: Obtain the historical device usage status of the primary device and the secondary device stored in the device usage status script; The device usage status of the primary device and the secondary device is restored to the historical device usage status.

17. The device according to claim 16, characterized in that In the case where the device usage status includes the screen projection status, the device usage status script includes the IP address of the screen projection terminal, the IP address of the screen projection terminal, the screen projection content, and the projection position of the screen projection content on the screen projection terminal; In the case where the device usage status includes the screen extension connection status, the device usage status script includes the IP address of the device to which the screen performing the extension connection belongs and the relative position relationship of the screen performing the extension connection; In the case where the device usage status includes the screen split status, the device usage status script includes the IP address of the split screen device and the split screen mode; In the case where the device usage status includes the file usage status, the device usage status script includes the file name, storage location and display location of the file opened by at least one of the primary device and the secondary device; In the case where the device usage status includes the display status of the program interface, the device usage status script includes a program identifier of an application opened by at least one of the primary device and the secondary device and a display position of the program interface.

18. The device according to claim 16 or 17, characterized in that The historical device usage status includes a historical usage status of at least one device object; The device object includes at least one of the following: a screen projection object, a screen extension object, a screen split object, a file object, and a program interface object; The first input also includes a selection input for selecting a device object of a historical device usage status; The display module is further used to display at least one device object option, wherein the device object option indicates a device object with a historical usage status; The recovery module is specifically used to: upon receiving a user's selection input for at least one device object option, determine the device object indicated by the device object option selected by the selection input as the target device object, and restore the device usage status of the target device object of the primary device and the secondary device to the historical device usage status.

19. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.