Control Method and Electronic Device

By monitoring and responding to target operations exiting the front-end operation on electronic devices, the control learning application is restored to the state before the operation, solving the problem that students may interrupt learning in online teaching, and improving the continuity and efficiency of learning.

CN113742190BActive Publication Date: 2025-05-27LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111039343.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2025-05-27
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

During online teaching, students may interrupt their learning and open entertainment applications, resulting in a decrease in learning efficiency and parents need to monitor to prevent this situation.

Method used

It provides a control method and electronic device to monitor whether the target application receives a target operation exiting the foreground operation, and after receiving the operation, the target application is controlled to restore to the operating state before the operation, thereby preventing the user from accidentally exiting the learning application.

Benefits of technology

It realizes automatic recovery of application tasks when users try to exit the learning application, reducing the need for parental supervision and improving the continuity and efficiency of learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742190B_ABST
    Figure CN113742190B_ABST
Patent Text Reader

Abstract

The present application discloses a control method and an electronic device. The method includes: when an application task of a target application on the electronic device is running, monitoring whether a target operation on the target application is received, where the target operation is used to at least indicate that the application task of the target application exits the foreground operation; after receiving the target operation, controlling the target application to be in the running state before receiving the target operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a control method and an electronic device. Background Art

[0002] With the development of society, online teaching has become more and more popular, and various teaching applications have also increased. Students can start teaching applications on a computer to achieve online learning. In this process, parents need to supervise students to prevent them from interrupting learning and opening entertainment applications. Summary of the Invention

[0003] In view of this, this application provides a control method and an electronic device as follows:

[0004] A control method includes:

[0005] When the application task of a target application on an electronic device is running, monitoring whether a target operation on the target application is received, where the target operation is used to at least indicate that the application task of the target application exits the foreground;

[0006] After receiving the target operation, controlling the target application to be in the running state before receiving the target operation.

[0007] In the above method, preferably, the target operation includes: an operation of closing the application process of the target application in the task manager of the electronic device;

[0008] Among them, controlling the target application to be in the running state before receiving the target operation includes:

[0009] Through the daemon process in the electronic device, controlling the application process of the target application to resume to the process state before the application process of the target application is closed; the daemon process has a daemon attribute, and the daemon attribute enables the daemon process to be closed after being started at least when the application task of the target application is completed;

[0010] Or, the target operation includes: an operation of switching the application window of a first application to the foreground of the electronic device, where the first application is different from the target application;

[0011] Among them, controlling the target application to be in the running state before receiving the target operation includes:

[0012] Switching the task window of the application task of the target application to the foreground of the electronic device;

[0013] Or, the target operation includes: an operation of closing the application window of the target application;

[0014] Among them, controlling the target application to be in the running state before receiving the target operation includes:

[0015] Controlling the target application to maintain the running state before receiving the target operation.

[0016] Preferably, the above method further includes:

[0017] Monitoring the number of times the target operation is received;

[0018] When the number reaches the first threshold, output an abnormal exit message and output a first exit request;

[0019] When receiving the exit authorization information for the first exit request, control the target application to be in the state where the target operation is responded to;

[0020] When no exit authorization information is received, execute the following: controlling the target application to be in the running state before receiving the target operation.

[0021] Preferably, in the above method, where:

[0022] The output of the first exit request includes:

[0023] Output a first window on the electronic device, where the first window is used to input exit authorization information;

[0024] Or,

[0025] The output of the first exit request includes:

[0026] Send the first exit request to at least one target device associated with the electronic device, so that a second window is output on the target device, the second window is used to input exit authorization information, so that the target device obtains the input exit authorization information and outputs the exit authorization information to the electronic device.

[0027] Preferably, when the target application on the electronic device is running, the above method further includes:

[0028] Monitoring whether an open operation for a second application is received;

[0029] When the open operation is received, if the second application matches the preset application identifier, control the second application to start;

[0030] If the second application does not match the application identifier, when receiving the application authorization information, control the second application to start, and when receiving the application prohibition information, prohibit the second application from starting;

[0031] Among them, the application authorization information at least includes an authorized running duration, so that the second application runs according to the authorized running duration, and the authorized running duration corresponds to an authorized user, and different authorized users correspond to different authorized running durations.

[0032] Preferably, in the case where the second application is a browser application, the method further includes:

[0033] Monitoring whether the target address in the address access request received in the second application matches a preset address identifier;

[0034] If the target address matches the address identifier, accessing, on the electronic device, the page corresponding to the target address through the second application;

[0035] If the target address does not match the address identifier, outputting a page access request, where the page access request includes the target address and / or multimedia information related to the target address, and in the case of receiving address authorization information for the page access request, accessing, on the electronic device, the page corresponding to the target address through the second application.

[0036] Preferably, the method further includes:

[0037] When the application task of the target application is completed, obtaining a task score of the application task and concentration information of the current user for the application task, where the task score is used to characterize the accuracy rate of the current user in completing the application task, and the concentration information is used to characterize the degree of concentration of the current user in the process of completing the application task;

[0038] When the task score and the concentration information meet a preset auxiliary condition, if a target operation on the target application is received, controlling the target application to be in a state corresponding to the target operation;

[0039] When the task score and the concentration information do not meet the auxiliary condition, if a target operation on the target application is received, outputting a second exit request, and in the case of receiving exit authorization information for the second exit request, controlling the target application to be in a state corresponding to the target operation, and in the case of not receiving exit authorization information for the second exit request, controlling the target application to be in the running state before receiving the target operation.

[0040] Preferably, when the application task of the target application is completed, the method further includes:

[0041] Obtain the application running information of at least one other application on the electronic device, where the application running information includes the application identifier of the other application and / or the accessed content corresponding to the other application, and the other application is an application program started on the electronic device when the application task of the target application is completed;

[0042] Output the application running information.

[0043] Preferably, in the above method, the target application is started when the electronic device is awakened from the sleep state and obtains the login information;

[0044] Wherein, the electronic device is awakened when it is monitored that the current time matches the task time of the application task of the target application in the sleep state; and, a prompt message for the application task is output on the awakened electronic device, and the prompt message is used to prompt the current user to perform the operation content corresponding to the application task;

[0045] The login information is: the information obtained through face recognition after the electronic device collects the face image of the current user.

[0046] An electronic device, comprising:

[0047] A memory, configured to store application programs and data generated by the running of the application programs;

[0048] A processor, configured to execute the application program to implement: when the application task of the target application on the electronic device is running, monitor whether a target operation for the target application is received, and the target operation is used to at least indicate that the application task of the target application exits the foreground; after receiving the target operation, control the target application to be in the running state before receiving the target operation.

[0049] It can be seen from the above technical solutions that in a control method and an electronic device disclosed in the present application, when the target application on the electronic device is running, if it is monitored that a target operation that at least causes the application task to exit the foreground is received, then the target application can be controlled to be in the running state before receiving the target operation. It can be seen that in the present application, by monitoring the target operation that at least indicates that the application task exits the foreground, when the user performs an operation to exit the application task or even exit the target application, the application task of the target application can be automatically restored to the running state before receiving the target operation, without the need for other users to intervene and supervise. Description of the Drawings

[0050] To more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings required for the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0051] Figure 1 It is a flowchart of a control method provided in the first embodiment of the present application;

[0052] Figures 2 - 4 They are respectively application example diagrams of the embodiments of the present application;

[0053] Figure 5 It is another flowchart of a control method provided in the first embodiment of the present application;

[0054] Figure 6 And Figure 7 They are respectively another application example diagrams of the embodiments of the present application;

[0055] Figure 8 It is another flowchart of a control method provided in the first embodiment of the present application;

[0056] Figure 9 And Figure 10 They are respectively another application example diagrams of the embodiments of the present application;

[0057] Figure 11 It is another flowchart of a control method provided in the first embodiment of the present application;

[0058] Figure 12 It is another application example diagram of the embodiments of the present application;

[0059] Figure 13 It is another flowchart of a control method provided in the first embodiment of the present application;

[0060] Figure 14 And Figure 17 They are respectively another application example diagrams of the embodiments of the present application;

[0061] Figure 18 It is a partial flowchart of a control method provided in the first embodiment of the present application;

[0062] Figure 19 And Figure 20 They are respectively another application example diagrams of the embodiments of the present application;

[0063] Figure 21 It is a partial flowchart of a control method provided in the first embodiment of the present application;

[0064] Figure 22 And Figure 23Another application example diagram of the embodiment of the present application;

[0065] Figure 24 and Figure 25 Partial flowcharts of a control method provided in the first embodiment of the present application;

[0066] Figure 26 Another application example diagram of the embodiment of the present application;

[0067] Figure 27 Schematic structural diagram of a control device provided in the second embodiment of the present application;

[0068] Figure 28 Another schematic structural diagram of a control device provided in the second embodiment of the present application;

[0069] Figure 29 Schematic structural diagram of an electronic device provided in the third embodiment of the present application;

[0070] Figures 30 - 36 Diagram examples of controlling educational software used by students when the present application is applicable to a notebook. Detailed implementation manners

[0071] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0072] Refer to Figure 1 As shown, it is a flowchart for implementing a control method provided in the first embodiment of the present application. This method can be applicable to electronic devices capable of installing and running application programs, such as mobile phones, pads, notebooks, and computers. Specifically, the technical solution in this embodiment is mainly used to automatically resume the application tasks exited by the user during the process of the target application performing application tasks without the supervision of other users.

[0073] Specifically, the method in this embodiment may include the following steps:

[0074] Step 101: When the application task of the target application on the electronic device is running, monitor whether a target operation on the target application is received. If the target operation is received, execute Step 102; otherwise, continue to execute Step 101, that is, continue to monitor the target operation.

[0075] Among them, the target operation is used to at least indicate that the application task of the target application in the electronic device exits the foreground operation. The target application has an application task. Here, the application task refers to the current task executed after the target application is started, such as a teaching video playback task, a subject test scoring task, and so on. Based on this, the target operation at least indicates that the target application exits the application task, including the situation of indicating to exit the target application and the situation of indicating to only exit the application task without exiting the target application. Exiting the target application can include the situation of closing the target application. Exiting the application task includes: the situation of switching the application task to the background and no longer having an editing focus, and the situation of closing the task interface of the application task.

[0076] Specifically, the target operation is used to at least indicate that the application task of the target application in the electronic device exits the foreground operation, which can include various situations. For example, the target operation can be used to indicate switching the application task of the target application to the background operation, and the task window of the application task no longer has an editing focus; the target operation can be used to indicate closing the application process of the target application, so that the target application is closed; the target operation can be used to indicate closing the application window of the target application, so that the target application is closed.

[0077] For example, the target application can be an online intelligent teaching application for middle school students, such as Figure 2 As shown in, running this teaching application on a notebook, which includes teaching items for various subjects, such as mathematics, Chinese, and English, etc. The application task corresponding to the teaching application can be a subject online test task or a subject online teaching task. Based on this, during the process of the user using the teaching application on the notebook to execute the subject online test task, the notebook monitors whether an operation to exit the test task or even exit the teaching application is received. If an operation to exit the test task or an operation to directly exit the teaching application is detected, then step 102 is executed.

[0078] Step 102: Control the target application to be in the running state before receiving the target operation.

[0079] In one case, if the target operation indicates switching the application task to the background or closing the application task, then in this embodiment, control the application task in the target application to restart and restore to the task progress state before being switched or closed;

[0080] In another case, if the target operation indicates exiting the target application, then in this embodiment, after the target application is closed, the target application can be controlled to restart, and the application task in the target application can be started, and the application task can be restored to the task progress state before being exited. Or, in this embodiment, the target application can be prohibited from closing, and the target application can be controlled to maintain the running state before receiving the target operation.

[0081] For example, during the process of a user performing an online subject test task on an educational application, when the user has filled in the answers to the 3rd question and then performs a target operation of closing the educational application, as Figure 3 shown. Based on this, in this embodiment, the educational application to be closed is restarted and the online subject test task is restored to the state where the answers to the 3rd question have been filled in, thus eliminating the need for parental supervision.

[0082] Furthermore, in this embodiment, after receiving the target operation, an exception prompt message can also be output on the electronic device to prompt the user of the electronic device to prohibit privately exiting the application task. For example, if a student privately closes the educational application before completing the online subject test task, then an exception prompt message is output on the student's notebook, as Figure 3 shown, to prompt that the test task has not been completed and exiting is prohibited.

[0083] As can be seen from the above solution, in a control method provided in Embodiment 1 of the present application, when a target application on an electronic device is running, if it is monitored that at least a target operation that causes the application task to exit the foreground is received, then the target application can be controlled to be in the running state before receiving the target operation. It can be seen that in the present application, by monitoring at least the target operation indicating that the application task exits the foreground, when the user performs an operation to exit the application task or even exit the target application, the application task of the target application can be automatically restored to the running state before receiving the target operation without the intervention and supervision of other users.

[0084] In one case, the target operation can be: an operation of closing the application process of the target application in the task manager of the electronic device. Among them, the task manager contains the application processes of various running application programs. The user can perform a target operation of ending the application process in the task manager. Based on this, in this embodiment, after monitoring this target operation, step 102 is executed.

[0085] For example, as Figure 4 shown, the user invokes the task manager of the operating system on the notebook, and there are the application processes of the educational application and the browser application in the task manager. Based on this, the user can perform an ending operation on the application processes in the task manager. For example, the user can click the "End Task" control after selecting the application process of the educational application. Another example is that the user can select the "End Task" option in the right-click menu after selecting the application process of the educational application, and so on. Thus, in this embodiment, when an operation capable of ending the application process of the educational application is monitored, step 102 is executed.

[0086] Based on the above implementation, when controlling the target application to be in the running state before receiving the target operation in step 102, it can be specifically implemented in the following ways, such as Figure 5 as shown in

[0087] Through the daemon process in the electronic device, control the application process of the target application to resume to the process state before the application process of the target application was closed, so that the application tasks of the target application are in the task progress state before the application process was closed.

[0088] The daemon process here has a pre-set daemon attribute, and the daemon attribute enables the daemon process to be closed at least when the application task is completed after being started. For example, the daemon attribute includes the attributes of being non-pausable and non-terminable, and the daemon process can only be paused or terminated when the application task is completed. The situations where the application task is completed here include: the situation where the application task is exited after the application task is completed, and the situation where the target application is exited after the application task is completed. That is to say, in this embodiment, a daemon process is maintained on the electronic device. When it is detected that there is an operation to close the application process of the target application through the task manager, the application process of the target application can be restored to the process state before the application process was closed by the daemon process. Thus, on the electronic device, the target application continues to run according to the process state before the application process was closed, providing application services for the user, and this process does not require other user interventions.

[0089] For example, as Figure 6 shown in, the user invokes the task manager of the operating system on the notebook. There are the application processes of the teaching application and the browser application in the task manager. After that, the user selects the application process of the teaching application and clicks the "End Task" control to try to stop the online subject test task. At this time, when the notebook detects the operation that the user selects the application process of the teaching application and clicks the "End Task" control, the daemon process maintained on the notebook is used to restore the application process of the teaching application and restore it to the task state before it was ended, that is, restore the online subject test task to the state where the answer to the 3rd question has been filled in.

[0090] In another case, the target operation can be: the operation of switching the application window of the first application to the foreground of the electronic device, so that the first application is running in the foreground while the target application is running in the background. At this time, the editing focus on the electronic device is on the application window of the first application, and the target application has no editing focus. The first application is different from the target application. For example, the first application can be a browser application or an entertainment application, etc. The user switches the application window of the entertainment application different from the target application to the foreground, as Figure 7As shown in [the figure], at this time, the application window of the teaching application has been switched to a state without an editing focus, such as a state blocked by the application window of the entertainment application. The teaching application is running in the background, and the user's attention is on the entertainment application. Therefore, in this embodiment, when it is detected that an operation can switch the application window of the teaching application to the background and switch the application window of another application to the foreground, step 102 is executed.

[0091] Based on the above implementation, when controlling the target application to be in the running state before receiving the target operation in step 102, it can be specifically implemented in the following ways, such as Figure 8 as shown in [the figure]:

[0092] Switch the task window of the application task of the target application to the foreground of the electronic device. This application task is in the task progress state before being switched to the background.

[0093] That is to say, in this embodiment, when it is detected that there is an operation to switch the application window of the target application to the background and switch the application window of the first application to the foreground through a window switching operation, the application window of the target application can be switched back to the foreground through window switching. Thus, on the electronic device, the target application continues to run according to the state before the application window is switched, providing application services to the user, and this process does not require other user interventions.

[0094] Furthermore, in this embodiment, after the target operation is responded to, that is, after the task window of the application task of the target application is switched to the background of the electronic device, a certain time delay can be set, such as a delay of 5 seconds, and then step 102 is executed to switch the task window of the application task of the target application to the foreground of the electronic device.

[0095] For example, as Figure 9 shown in [the figure], the user uses the combination key Alt+Tab on the notebook to bring the window of the video playback application to the foreground and tries to watch the video, no longer performing the online subject test task. At this time, when the notebook detects that the user's operation of switching the application window makes the teaching application run in the background, the application window of the teaching application is restored to the foreground through window switching and restored to the task state before being switched, that is, the online subject test task is restored to the state where the answer to the 3rd question has been filled in.

[0096] In another case, the target operation can be: an operation to close the application window of the target application. There is a control on the application window to implement closing the target application, and the user can click on this control to try to close the target application. Based on this, in this embodiment, after detecting this target operation, step 102 is executed.

[0097] Such as Figure 10As shown, the user can click on the close control of the application window of the teaching application in the notebook. Thus, in this embodiment, when the click operation is detected, step 102 is executed.

[0098] Based on the above implementation, when controlling the target application to be in the running state before receiving the target operation in step 102, it can be specifically implemented in the following manner, such as Figure 11 as shown in

[0099] Control the target application to maintain the running state before receiving the target operation, so that the application task of the target application remains in the task progress state when the application window is clicked on the close control.

[0100] That is to say, in this embodiment, when it is detected that the user performs a close operation on the application window of the target application, the close operation can be not responded to, that is, the target application is not closed, but the running state of the target application before receiving the close operation is maintained. Thus, on the electronic device, the target application continues to run in the state before the application window is closed, providing application services to the user, and no other user intervention is required during this process.

[0101] For example, as Figure 12 shown, the user can click on the close control "X" of the application window of the teaching application in the notebook. When the notebook detects the user's click operation on the close control, the teaching application is maintained in the running state before the close control is clicked, that is, the online subject test task on the teaching application remains in the state where the answer to the 3rd question has been filled in.

[0102] In one implementation manner, if the target operation is received in step 101, before step 102, the method in this embodiment may further include the following steps, such as Figure 13 shown in

[0103] Step 103: Monitor the number of times the target operation is received. If the number reaches the first threshold, execute step 104. If the number does not reach the first threshold, then execute step 102.

[0104] Among them, in the initial state, the value of the number is 0. Each time the target operation is received, the value of the number is incremented by 1. Before the value of the number reaches the first threshold, step 102 is executed. That is, before the number reaches the first threshold, each time the received target operation is received, the target application is controlled to be in the running state before receiving the target operation, until the value of the number is consistent with the first threshold, and then step 104 is executed first.

[0105] Step 104: Output an abnormal exit message and output a first exit request.

[0106] Among them, the abnormal exit information is used to prompt that the application task of the target application is being executed with an abnormal exit operation. For example, a student privately closes the teaching application before completing the online subject test task, and so on.

[0107] Specifically, the abnormal exit information can be output on the electronic device or output to at least one target device associated with the electronic device to prompt the user of the target device to pay attention to the user of the electronic device. For example, if the number of times a student privately closes the teaching application before completing the online subject test task reaches 5 times, then the abnormal exit information is output on the student's notebook, such as Figure 14 As shown in, to prompt the student to contact the parent due to multiple abnormal operations. Another example is that if the number of times a student privately closes the teaching application before completing the online subject test task reaches 5 times, then the abnormal exit information is output on both the student's notebook and the parent's mobile phone at the same time, such as Figure 15 As shown in, to prompt the student to contact the parent due to multiple abnormal operations and at the same time prompt the parent to pay close attention to multiple abnormal operations.

[0108] In addition, the first exit request is used to indicate obtaining the exit authorization information, and the exit authorization information indicates that the authorized user allows the function corresponding to the target operation to be executed on the electronic device, that is, at least controls the target application to exit the foreground operation. For example, allowing the application process of the target application to be closed, so that the target application is closed; another example is allowing the application window of the first application to be switched to the foreground of the electronic device, so that the task window of the application task of the target application is switched to the background; another example is allowing the application window of the target application to be closed, so that the target application is closed, and so on.

[0109] Step 105: Monitor whether the exit authorization information for the first exit request is received. If the exit authorization information for the first exit request is received, execute Step 106. If the exit authorization information is not received, execute Step 102.

[0110] Among them, the exit authorization information can be the information received on the electronic device or the information transmitted by other devices received by the electronic device. Specifically, the exit authorization information can be a string containing one or more numbers, letters, or characters, etc.

[0111] In one implementation, when outputting the first exit request in Step 104, specifically, a first window can be output on the electronic device, and this first window is used to input the exit authorization information. In addition, input prompt information is also output on the electronic device to prompt to input the exit authorization information in the first window. Based on this, after the authorized user inputs the exit authorization information in the first window, the electronic device can obtain the exit authorization information. Here, the authorized user is different from the current user of the electronic device. For example, the current user of the electronic device is a student, and the authorized user is a parent or a teacher.

[0112] For example, as Figure 16 shown, if the number of times a student privately closes the teaching application before completing the online test task of a subject reaches 5 times, then while the abnormal exit information is output on the student's notebook, a password input window is also output to prompt the parent to enter the authorization password on the notebook. After the parent enters the authorization password, the authorization password entered by the parent can be received on the notebook, that is, the exit authorization information is obtained.

[0113] In another implementation manner, when step 104 outputs the first exit request, specifically, the first exit request can be sent to at least one target device associated with the electronic device, so that a second window for inputting the exit authorization information is output on the target device, so that the target device obtains the input exit authorization information and outputs the exit authorization information to the electronic device. In addition, input prompt information is also output on the target device to prompt to input the exit authorization information in the second window. Based on this, the authorized user can input the exit authorization information on his own target device.

[0114] For example, as Figure 17 shown, if the number of times a student privately closes the teaching application before completing the online test task of a subject reaches 5 times, then while the abnormal exit information is output on the student's notebook, a prompt message waiting for authorization is also output. In addition, a password input window is output on the parent's mobile phone to prompt the parent to enter the authorization password on the mobile phone. After the parent enters the authorization password, the mobile phone sends the authorization password entered by the parent to the notebook, and the authorization password entered by the parent can be received on the notebook, that is, the exit authorization information is obtained.

[0115] Step 106: Control the target application to be in a state where the target operation is responded to.

[0116] If the target operation is to close the application process of the target application in the task manager of the electronic device, then the application process of the target application is closed. At this time, in this embodiment, when it is monitored that the received target operation reaches the first threshold, step 102 is not executed, but step 106 is executed to maintain the application process of the target application in a closed state. That is to say, in this embodiment, when the operation of closing the application process of the first threshold is received, if the exit authorization information is received, then the application process of the target application is not restored. If the exit authorization information is not received, but the prohibition of exit information is received, then step 102 is continued to be executed, that is, the application process of the target application is restored. For example, if the number of times of the operation of privately closing the application process of the teaching application on the notebook task manager reaches 5 times when the answer to the 3rd question in the online subject test task of the student is filled in, then while the abnormal exit information is output on the student's notebook, a password input window is output on the parent's mobile phone to prompt the parent to input the authorization password on the mobile phone. If the parent inputs the authorization password on the mobile phone, then the authorization password input by the parent sent by the mobile phone is received on the notebook. At this time, the application process of the teaching application is not restored on the notebook. If the parent does not input the authorization password on the mobile phone but clicks the prohibited control, then the authorization password cannot be received on the notebook. At this time, the application process of the teaching application is restored on the notebook, and the online subject test task on the teaching application remains in the state where the answer to the 3rd question is filled in.

[0117] If the target operation is to switch the application window of the first application to the foreground of the electronic device, then the application window of the first application is switched to the foreground while the task window of the application task of the target application is switched to the background. At this time, in this embodiment, when it is monitored that the received target operation reaches the first threshold, step 102 is not executed, but step 106 is executed to maintain the state where the task window of the application task of the target application is in the background and the application window of the first application is in the foreground. That is to say, in this embodiment, when the operation of switching windows reaches the first threshold, if the exit authorization information is received, then the task window of the application task of the target application is not switched back to the foreground. For example, if the number of times of switching the game application to the foreground reaches 5 times when the answer to the 3rd question in the online subject test task of a student is filled in, then while an abnormal exit message is output on the student's notebook, a password input window is output on the parent's mobile phone to prompt the parent to enter the authorization password on the mobile phone. If the parent enters the authorization password on the mobile phone, then the notebook receives the authorization password entered by the parent sent from the mobile phone. At this time, the notebook does not switch the task window of the online subject test task to the foreground. If the parent does not enter the authorization password on the mobile phone but clicks the prohibited control, then the notebook cannot receive the authorization password. At this time, the notebook switches the task window of the online subject test task to the foreground. At this time, the online subject test task on the teaching application remains in the state where the answer to the 3rd question is filled in.

[0118] If the target operation is an operation to close the application window of the target application, in this embodiment, when it is monitored that the received target operation reaches the first threshold, step 102 is not executed, but step 106 is executed to close the application window of the target application, thereby exiting the target application on the electronic device. That is to say, in this embodiment, when the operation of closing the window reaches the first threshold, if the exit authorization information is received, the application window of the target application can be directly closed to exit the target application. If the exit authorization information is not received but the prohibited exit information is received, then step 102 is continued to be executed, that is, the application window is closed and the target application is exited. For example, if the number of times of privately closing the application window of the teaching application on the notebook task manager reaches 5 times when the answer to the 3rd question in the subject online test task of the student is filled out, then while an abnormal exit message is output on the student's notebook, a password input window is output on the parent's mobile phone to prompt the parent to enter the authorization password on the mobile phone. If the parent enters the authorization password on the mobile phone, then the notebook receives the authorization password entered by the parent sent from the mobile phone. At this time, the teaching application is closed on the notebook. If the parent does not enter the authorization password on the mobile phone but clicks the prohibited control, then the notebook cannot receive the authorization password. At this time, the teaching application remains running on the notebook, and the subject online test task on the teaching application remains in the state where the answer to the 3rd question is filled out.

[0119] In one implementation, when the application task of the target application on the electronic device is running, in this embodiment, while monitoring whether the target operation is received, the following steps may also be included, as Figure 18 shown below:

[0120] Step 107: Monitor whether an open operation for the second application is received. If the open operation is received, execute step 108. If the open operation is not received, then continue to execute step 107, that is, continue to monitor whether an open operation for the second application is received.

[0121] Among them, the second application can be an application program different from the target application, such as a calculator application and a browser application related to the teaching application, and a game application and a video playback application unrelated to the teaching application, etc.

[0122] Step 108: Determine whether the second application matches the preset application identifier. If the second application matches the application identifier, execute step 109. If the second application does not match the application identifier, execute step 110.

[0123] Among them, there can be one or more application identifiers, such as the application name or application code of an application. These application identifiers form an application whitelist. In this embodiment, when it is detected that there is an open operation on a second application, the second application on which the open operation is performed is first compared one by one with the application identifiers in the application whitelist. If there is an application identifier in the application whitelist that matches the second application, then step 109 is executed. If none of the application identifiers in the application whitelist match the second application, then step 110 is executed.

[0124] Step 109: Control the second application to start.

[0125] That is to say, during the running of the target application, if the user performs an open operation on a second application that matches the application identifier on the electronic device, then the second application is allowed to start on the electronic device. For example, when a student is using a teaching application to perform an online subject test task, if the student performs an open operation on the calculator in the notebook, then check in the whitelist to see if there is an application identifier corresponding to the calculator. If there is, then the calculator is allowed to be opened on the notebook, and the student can use the calculator while performing the online subject test task.

[0126] Step 110: Monitor and receive application authorization information or application prohibition information. If application authorization information is received, execute step 109. If application prohibition information is received, execute step 111.

[0127] Step 111: Prohibit the second application from starting.

[0128] Among them, if the second application does not match any of the application identifiers in the whitelist, it indicates that the second application is not a legal application pre-authorized by the user. At this time, the authorized user needs to input application authorization information or application prohibition information. In addition to the control information allowing the second application to start, the application authorization information can also include the authorized running duration of the second application, so that the second application runs according to the authorized running duration. When the second application continues from the start until the authorized running duration, the second application is closed. In addition, there is an authorized user corresponding to the authorized running duration, and different authorized users correspond to different authorized running durations. For example, different parents can have different allowed usage durations for students to use game applications.

[0129] In one implementation, in step 110, an authorization selection control corresponding to the application authorization request can be output on the electronic device first. The authorization selection control includes an allow control corresponding to the application authorization information and a prohibit control corresponding to the application prohibition information. On the allow control, there is a menu option for the authorized running duration, and the authorized running duration has an initial default value. Additionally, the authorized user can also modify the authorized running duration by selecting the menu option. Based on this, the authorized user can select the allow control or the prohibit control on the authorization selection control, and can also modify the authorized running duration when selecting the allow control. Thus, the electronic device can obtain the application authorization information or the application prohibition information.

[0130] For example, as Figure 19 shown, if a student tries to open a game application during an online subject test task, since the game application is not in the application whitelist, that is, there is no application identifier matching the game application, then an authorization selection control for the application is output on the student's notebook to prompt the parent to select the allow control to allow the game application to start or the prohibit control to prohibit the game application from starting on the notebook. After the parent enters the authorization password, selects the allow control, and modifies the authorized running duration, the notebook can receive the corresponding application authorization information. At this time, the game application can be allowed to start and run according to the authorized running duration. If the parent selects the prohibit control, then the notebook can receive the corresponding application prohibition information. At this time, the game application is prohibited from starting on the notebook.

[0131] In another implementation, in step 110, the application authorization request can be sent to at least one target device associated with the electronic device, so that an authorization selection control corresponding to the application authorization request is output on the target device. The authorization selection control includes an allow control corresponding to the application authorization information and a prohibit control corresponding to the application prohibition information. On the allow control, there is a menu option for the authorized running duration, and the authorized running duration has an initial default value. Additionally, the authorized user can also modify the authorized running duration by selecting the menu option. Based on this, the authorized user can select the allow control or the prohibit control on the authorization selection control, and can also modify the authorized running duration when selecting the allow control. Thus, the target device can send the received application authorization information or application prohibition information to the electronic device. Thus, the electronic device can obtain the application authorization information or the application prohibition information.

[0132] For example, as Figure 20As shown, if a student tries to open a game application during an online subject test task, since the game application is not in the application whitelist, that is, there is no application identifier matching the game application, an authorization selection control for the application will be output to the parent's mobile phone on the student's notebook. Thus, a permission control for allowing the game application to start or a prohibition control for prohibiting the game application from starting will be prompted on the parent's mobile phone for the parent to select on the notebook. After the parent selects the permission control and modifies the authorized running duration, the parent's mobile phone will send the corresponding application authorization information to the student's notebook, and the notebook can receive the corresponding application authorization information. At this time, the game application can be allowed to start and run according to the authorized running duration. If the parent selects the prohibition control, the parent's mobile phone will send the corresponding application prohibition information to the student's notebook, and then the notebook can receive the corresponding application prohibition information. At this time, the game application is prohibited from starting on the notebook. In this example, as parents, they can modify the authorized running duration according to their own wishes. For example, the mother only allows the student to play games for 10 minutes, and the father allows the student to play games for 20 minutes.

[0133] Furthermore, after the second application is allowed to start, the second application automatically closes after running for the authorized running duration, and the target application is controlled on the electronic device to resume the state before the second application was opened, so that the current user of the electronic device can continue to use the target application to facilitate continuing the application task of the target application. For example, after the parent selects the permission control and modifies the authorized running duration, the parent's mobile phone will send the corresponding application authorization information to the student's notebook, and the notebook can receive the corresponding application authorization information. At this time, the game application can be allowed to start and run according to the authorized running duration. When the running duration of the game application reaches 20 minutes, the game application is automatically closed on the notebook and resumes to the state before the student opened the game application, that is, the online subject test task on the teaching application remains in the state where the answer to the 3rd question has been filled in.

[0134] Furthermore, in the case where the second application is a browser application, the user can access web pages on the network through the browser application. Based on this, the method in this embodiment may further include the following steps after step 109, as Figure 21 shown:

[0135] Step 112: Monitor whether the target address in the address access request received in the second application matches a preset address identifier. If the target address matches the address identifier, execute step 113. If the target address does not match the address identifier, execute step 114.

[0136] Among them, the address access request is a request generated by the user's access operation for web page access in the second application. The address access request contains a target address, that is, the page address of the web page that the user needs to access. And there can be one or more address identifiers, such as the address string of the web address or the abbreviated address of the web address, etc. These address identifiers form an address whitelist, and the address identifiers in the address whitelist are the addresses of the legally accessible pages preset by the authorized user. In this embodiment, after the second application is started, it is monitored whether the target address that the user needs to access matches the address identifiers in the address whitelist, that is, the target address is compared one by one with the address identifiers in the address whitelist. If there is an address identifier in the address whitelist that matches the target address, then step 113 is executed. If there is no address identifier in the address whitelist that matches the target address, then step 114 is executed.

[0137] Step 113: Access the page corresponding to the target address on the electronic device through the second application.

[0138] That is to say, in the case where there is an address identifier in the address whitelist that matches the target address, in this embodiment, the user is allowed to access the page corresponding to the target address on the second application on the electronic device. After the electronic device receives the page content of the target address, the page content can be output on the electronic device. For example, during the process of a student using a teaching application on a notebook for an online subject test task, the student opens the browser application allowed to run in the application whitelist. When the student clicks on the address link of "binary linear function" and wants to obtain the relevant introduction images and texts of the binary linear function, after the notebook compares the address link of the binary linear function with the address identifiers in the address whitelist, it is found that the address whitelist contains this address link. Therefore, the notebook allows the browser application to receive the relevant introduction images and texts of the binary linear function on the Internet for the student to refer to.

[0139] Step 114: Output a page access request.

[0140] Among them, the page access request contains the target address and / or multimedia information related to the target address. The target address refers to the page address of the page to be accessed. The multimedia information can include: text information and / or picture information and other contents in the page to be accessed.

[0141] That is to say, in the case where there is an address identifier in the address whitelist that matches the target address, in this embodiment, it is necessary to request the authorized user for page access. At this time, a page access request is generated and output to the electronic device or at least one target device related to the electronic device, and the authorized user decides whether to input address authorization information or address prohibition information on the electronic device or the target device.

[0142] Step 115: Monitor whether address authorization information for the page access request is received. If the address authorization information for the page access request is received, execute Step 113. If the address authorization information is not received, but instead address prohibition information is received, then execute Step 116.

[0143] Step 116: Prohibit accessing the page corresponding to the target address through the second application.

[0144] In one implementation, in Step 114, a selection control corresponding to the page access request can be output on the electronic device first. The selection control includes an allow control corresponding to the address authorization information and a prohibit control corresponding to the address prohibition information. The target address and / or multimedia information related to the target address can also be output on the selection control to prompt the authorized user of the address that the electronic device needs to access. Based on this, the authorized user can select the allow control or the prohibit control on the selection control, and the electronic device can obtain the address authorization information or the address prohibition information.

[0145] For example, as Figure 22 shown, if a student tries to open the browser application during an online subject test task, since the browser application is in the application whitelist, the browser application is allowed to start on the notebook at this time. The student browses the page in the browser and clicks on a certain page, such as the page of "Level 3 Helmet". Since the page link is not in the address whitelist, a selection control for the address and a picture of the Level 3 Helmet are output on the student's notebook at this time to prompt the parent to select the allow control to allow access to the Level 3 Helmet page or the prohibit control to prohibit access to the Level 3 Helmet page on the notebook. After the parent enters the authorization password and selects the allow control, the notebook can receive the corresponding address authorization information. At this time, the browser application is allowed to output the page content of the Level 3 Helmet to the student. If the parent selects the prohibit control, then the notebook can receive the corresponding address prohibition information. At this time, the notebook does not allow the browser application to output the page content of the Level 3 Helmet.

[0146] In another implementation, in Step 114, the page access request can be sent to at least one target device related to the electronic device, so that a selection control corresponding to the page access request is output on the target device. The selection control includes an allow control corresponding to the address authorization information and a prohibit control corresponding to the address prohibition information. The target address and / or multimedia information related to the target address can also be output on the selection control to prompt the authorized user of the address that the electronic device needs to access. Based on this, the authorized user can select the allow control or the prohibit control on the selection control on their own target device, and the target device then sends the obtained address authorization information or address prohibition information to the electronic device, and the electronic device can obtain the address authorization information or address prohibition information.

[0147] For example, as Figure 23 shown, if a student tries to open a browser application during an online subject test task, since the browser application is in the application whitelist, the browser application is allowed to start on the laptop at this time. The student browses the page in the browser and clicks on a certain page, such as the page of "Level 3 Helmet". Since the page link is not in the address whitelist, at this time, a selection control for the address is output on the mobile phones of the parents, such as the father and the mother, to prompt the parents to select an allow control to allow access to the Level 3 Helmet page or a prohibit control to prohibit access to the Level 3 Helmet page on their own mobile phones. After any one of the parents selects the allow control, the address authorization information received by the parent's mobile phone is sent to the laptop. At this time, the laptop can receive the corresponding address authorization information, and at this time, the browser application is allowed to output the page content of the Level 3 Helmet to the student. If the parent selects the prohibit control and the address prohibition information received by the parent's mobile phone is sent to the laptop, then the laptop can receive the corresponding address prohibition information. At this time, the browser application is not allowed to output the page content of the Level 3 Helmet on the laptop.

[0148] In one implementation, in this embodiment, through Figure 1 the technical solution shown in, the process in which the application task of the target application is not completed is continuously monitored. In the case where the application task is not completed, even if a target operation is received, the target application is continuously controlled to be in the running state before receiving the target operation until the application task is completed. Therefore, in this embodiment, it is continuously monitored whether the application task of the target application is completed. If the application task is not completed, then step 101 and subsequent steps are executed. If the application task is completed, then in the case where the application task of the target application is completed, the method in this embodiment may further include the following steps, as Figure 24 shown in:

[0149] Step 117: Obtain the task score of the application task and the concentration information of the current user for the application task.

[0150] Among them, the task score is used to represent the accuracy rate of the current user in completing the application task, and the concentration information is used to represent the degree of concentration of the current user during the process of completing the application task.

[0151] Specifically, the task score can be compared with the preset standard task and the task result completed by the current user, so as to obtain the accuracy rate of the current user in completing the application task. For example, the standard answer is used to score the online test papers of the subjects completed by the students to obtain the scores of the students in completing the papers. The concentration information can be collected by components such as an image acquisition device (such as a camera) on the electronic device for the face image of the current user during the process of completing the application task, and the face image is recognized to obtain the attention duration of the current user for the application task in a specific time period, such as the duration when the student's line of sight is directed towards the notebook, etc. Thus, after normalizing the attention duration and other processing, the concentration information is obtained.

[0152] Step 118: Determine whether the task score and the concentration information meet the preset auxiliary conditions. If the task score and the concentration information meet the auxiliary conditions, execute Step 119. If the task score and the concentration information do not meet the auxiliary conditions, execute Step 120.

[0153] Among them, the auxiliary conditions can be divided into two parts: the score condition and the concentration condition. The score condition includes: the task score is greater than or equal to the score threshold, or the task score corresponds to the target score level. For example, the student's test paper score is greater than or equal to 80 points, or the student's test paper score corresponds to the level of good or excellent. The concentration condition includes: the concentration value in the concentration information is greater than or equal to the concentration threshold, or the concentration value corresponds to the target concentration level. For example, the student's concentration is greater than or equal to 0.7, and the concentration is a value greater than or equal to 0 and less than or equal to 1, or the student's concentration corresponds to the level of highly concentrated.

[0154] Step 119: Monitor whether a target operation on the target application is received. If a target operation on the target application is received, execute Step 121. If a target operation on the target application is not received, continue to execute Step 119, that is, continue to monitor whether a target operation on the target application is received.

[0155] Step 120: Monitor whether a target operation on the target application is received. If a target operation on the target application is received, execute Step 122. If a target operation on the target application is not received, continue to execute Step 120, that is, continue to monitor whether a target operation on the target application is received.

[0156] Step 121: At least control the application task of the target application to exit the foreground operation, that is, control the target application to be in the state where the target operation is responded to.

[0157] Step 122: Output a second exit request.

[0158] That is to say, after the application task is completed, regardless of whether the task score and concentration information meet the auxiliary conditions, in this embodiment, it is monitored whether at least a target operation for instructing the application task to exit the foreground operation is received. In the two cases where the task score and concentration information meet the auxiliary conditions and do not meet the auxiliary conditions, different processing methods are adopted for the received operations. That is: when the application task is completed and the task score and concentration information meet the auxiliary conditions, for the received target operation, an immediate response can be made, that is, at least control the application task of the target application to exit the foreground operation, such as closing the task window of the application task, closing the application window of the target application, or closing the target application, etc.; while when the application task is completed but the task score and concentration information do not meet the auxiliary conditions, for the received target operation, an immediate response will not be made, but a second exit request is output to request the authorized user to exit the application task or the target application.

[0159] Step 123: Monitor whether an exit authorization information for the second exit request is received. If the exit authorization information for the second exit request is received, execute Step 121, that is, at least control the application task of the target application to exit the foreground operation. If the exit authorization information for the second exit request is not received, execute Step 124.

[0160] Step 124: Control the target application to be in the running state before the target operation is received.

[0161] Specifically, in this embodiment, the second exit request can be output on the electronic device or at least one target device related to the electronic device. For example, a window for inputting exit authorization information is output on the student's notebook, or a window for exit authorization information is output on the parent's mobile phone. Based on this, the authorized user, such as the parent, can input the exit authorization information for the second exit request or not input the exit authorization information. Thus, the electronic device can receive the exit authorization information directly input by the authorized user or the exit authorization information sent by the target device. Accordingly, the electronic device can respond to the target operation, that is, execute Step 121; while if the authorized user does not input the exit authorization information but selects an operation to prohibit the exit, then the electronic device cannot obtain the exit authorization information for the second exit request. At this time, the electronic device continues to keep the target application in the running state before the target operation is received.

[0162] For example, after a student completes an online subject test task, if both the test score and concentration are high, then for the student's operation of closing the teaching application, the teaching application can be directly closed on the student's notebook.

[0163] For example, after a student completes an online subject test task, if both the test score and the concentration level are low, then for the student's operation of closing the teaching application, when an abnormal exit message is output on the student's notebook, a password input window is also output to prompt the parent to enter an authorization password on the notebook. After the parent enters the authorization password, the notebook can receive the authorization password entered by the parent, that is, obtain the exit authorization information, and the teaching application can be closed on the notebook. If the parent does not enter the authorization password, the teaching application remains running on the notebook.

[0164] For example, after a student completes an online subject test task, if both the test score and the concentration level are low, then for the student's operation of closing the teaching application, a password input window is output on the parent's mobile phone to prompt the parent to enter an authorization password on the mobile phone. After the parent enters the authorization password, the mobile phone sends the authorization password entered by the parent to the notebook, and the notebook can receive the authorization password entered by the parent, that is, obtain the exit authorization information, and the teaching application can be closed on the notebook. If the parent does not enter the authorization password, the teaching application remains running on the notebook.

[0165] Based on the above implementation, when the application task of the target application is completed in this embodiment, the method in this embodiment may further include the following steps, as Figure 25 shown below:

[0166] Step 125: Obtain the application running information of at least one other application on the electronic device.

[0167] Among them, the other application is an application program started on the electronic device when the application task of the target application is completed. That is to say, the other application is an application program invoked by the current user on the electronic device when the application task is completed. For example, after a student completes an online subject test task, an operation to open a game application or an operation to open a video playback application is performed. For example, when the task score and concentration information do not meet the auxiliary conditions, if other applications on the electronic device are started, in this embodiment, application authorization information needs to be obtained, and it is also allowed to run the started application programs on the electronic device, but the application running information of these application programs needs to be obtained.

[0168] Specifically, the application running information includes the application identifier of the other application and / or the access content corresponding to the other application. Such as the application name and the content such as images or texts in the application.

[0169] Step 126: Output the application running information.

[0170] Among them, in this embodiment, the application running information can be output to the server, and authorized users can access the application running information in the server through the target device. For example, parents can access the information of students' use of game applications saved in the cloud through their mobile phones.

[0171] In one implementation, the target application starts when the electronic device is awakened from the sleep state and obtains the login information.

[0172] Among them, the electronic device is awakened when it monitors that the current time matches the task time of the application task of the target application in the sleep state; and, a prompt message for the application task is output on the awakened electronic device, and the prompt message is used to prompt the current user to perform the operation content corresponding to the application task. The prompt message can be output through a sound player or a display screen, etc. For example, the prompt message is played through a speaker or output through a notebook display screen.

[0173] The login information here is: the information obtained through face recognition after the electronic device captures the face image of the current user.

[0174] That is to say, when the electronic device is in the sleep state, it continuously monitors whether the current time matches the application time of the application task of the target application. If the current time matches the application time of the application task, then the electronic device wakes up from the sleep state and outputs a prompt message for the application task to prompt the current user that they can perform the operation content related to the application task. Then, when the face image of the current user is captured and the login information is obtained through face recognition, the target application is started.

[0175] For example, as Figure 26 shown, the notebook monitors in the sleep state with low power consumption whether it reaches 15 minutes before the subject online test task, such as 1:45 pm. If it reaches 1:45 pm, the notebook wakes up from the sleep state and outputs a prompt message for the subject online test task on the notebook screen, such as playing a sound signal of "The test task is about to start" through the speaker and outputting character information such as "Please prepare draft paper, pen and calculator" through the display screen. During this process, the notebook turns on the camera to continuously capture images and perform face recognition. If a student is in front of the notebook screen, then the notebook can capture the student's face image through the camera. After face recognition, the teaching application is automatically started and logged in to the teaching application with the corresponding student account based on the recognition result of face recognition.

[0176] Refer to Figure 27, which is a schematic structural diagram of a control device provided in the second embodiment of the present application. This device can be configured in an electronic device capable of installing and running application programs, such as mobile phones, pads, notebooks, and computers. Specifically, the technical solution in this embodiment is mainly used to automatically resume the application task exited by the user during the process of the target application performing an application task, without the supervision of other users.

[0177] Specifically, the device in this embodiment may include the following units:

[0178] The monitoring unit 2701 is used to monitor whether a target operation on the target application is received when the target application on the electronic device is running. The target operation is used to at least indicate that the target application exits the foreground operation.

[0179] The operation control unit 2702 is used to control the target application to be in the running state before receiving the target operation after the monitoring unit 2701 monitors that the target operation is received.

[0180] It can be seen from the above technical solution that in a control device provided in the second embodiment of the present application, when the target application on the electronic device is running, if it is monitored that a target operation that at least causes the application task to exit the foreground operation is received, then the target application can be controlled to be in the running state before receiving the target operation. It can be seen that in the present application, by monitoring the target operation that at least indicates the application task to exit the foreground operation, when the user performs an operation to exit the application task or even exit the target application, the application task of the target application can be automatically resumed to the running state before receiving the target operation, without the intervention and supervision of other users.

[0181] In one implementation, the target operation includes: an operation of closing the application process of the target application in the task manager of the electronic device; specifically, the operation control unit 2702 is used to: through the daemon process in the electronic device, control the application process of the target application to resume to the process state before the application process of the target application is closed; the daemon process has a daemon attribute, and the daemon attribute enables the daemon process to be closed at least when the application task of the target application is completed after being started.

[0182] Or, the target operation includes: an operation of switching the application window of the first application to the foreground of the electronic device, where the first application is different from the target application; specifically, the operation control unit 2702 is used to: switch the task window of the application task of the target application to the foreground of the electronic device.

[0183] Alternatively, the target operation includes: an operation to close the application window of the target application; wherein, the running control unit 2702 is specifically configured to: control the target application to maintain the running state before receiving the target operation.

[0184] In one implementation, the device in this embodiment may further include the following units, as Figure 28 shown in

[0185] Output unit 2703. Based on this, the monitoring unit 2701 is further configured to: monitor the number of times the target operation is received; when the number reaches a first threshold, trigger the output unit 2703 to output an abnormal exit message and output a first exit request; when receiving the exit authorization information for the first exit request, trigger the running control unit 2702 to control the target application to be in the state where the target operation is responded to; when no exit authorization information is received, trigger the running control unit 2702 to control the target application to maintain the running state before receiving the target operation.

[0186] In one implementation, the output unit 2703 is specifically configured to: output a first window on the electronic device, where the first window is used to input exit authorization information; or, send the first exit request to at least one target device associated with the electronic device, so that a second window is output on the target device, and the second window is used to input exit authorization information, so that the target device obtains the input exit authorization information and outputs the exit authorization information to the electronic device.

[0187] In one implementation, when the target application on the electronic device is running, the monitoring unit 2701 is further configured to: monitor whether an open operation for a second application is received; when the open operation is received, if the second application matches a preset application identifier, trigger the running control unit 2702 to control the second application to start; if the second application does not match the application identifier, when receiving application authorization information, trigger the running control unit 2702 to control the second application to start, and when receiving application prohibition information, trigger the running control unit 2702 to prohibit the second application from starting; wherein, the application authorization information includes at least an authorized running duration, so that the second application runs according to the authorized running duration, and the authorized running duration corresponds to an authorized user, and different authorized users correspond to different authorized running durations.

[0188] Based on the above implementation, when the second application is a browser application, the monitoring unit 2702 is further configured to: monitor whether the target address in the address access request received in the second application matches a preset address identifier; if the target address matches the address identifier, trigger the operation control unit 2702 to access, through the second application on the electronic device, the page corresponding to the target address; if the target address does not match the address identifier, trigger the operation control unit 2702 to output a page access request, where the page access request includes the target address and / or multimedia information related to the target address, and when receiving address authorization information for the page access request, trigger the operation control unit 2702 to access, through the second application on the electronic device, the page corresponding to the target address.

[0189] In one implementation, the monitoring unit 2701 is further configured to: when the application task of the target application is completed, obtain the task score of the application task and the concentration information of the current user for the application task, where the task score is used to represent the accuracy rate of the current user in completing the application task, and the concentration information is used to represent the concentration degree of the current user in the process of completing the application task; when the task score and the concentration information meet a preset auxiliary condition, if receiving a target operation on the target application, trigger the operation control unit 2702 to control the target application to be in a state corresponding to the target operation; when the task score and the concentration information do not meet the auxiliary condition, if receiving a target operation on the target application, trigger the operation control unit 2702 to output a second exit request, and when receiving exit authorization information for the second exit request, trigger the operation control unit 2702 to control the target application to be in a state corresponding to the target operation, and when not receiving exit authorization information for the second exit request, trigger the operation control unit 2702 to control the target application to be in the running state before receiving the target operation.

[0190] In one implementation, the monitoring unit 2701 is further configured to: when the application task of the target application is completed, obtain the application running information of at least one other application on the electronic device, where the application running information includes the application identifier of the other application and / or the access content corresponding to the other application, and the other application is an application program started on the electronic device when the application task of the target application is completed; output the application running information.

[0191] In one implementation, the target application starts when the electronic device is awakened from the sleep state and login information is obtained; wherein, the electronic device is awakened when it monitors that the current time matches the task time of the application task of the target application in the sleep state; and, a prompt message for the application task is output on the awakened electronic device, and the prompt message is used to prompt the current user to perform operation content corresponding to the application task; the login information is: the information obtained through face recognition after the electronic device captures the face image of the current user.

[0192] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the previous text, and will not be elaborated here.

[0193] Refer to Figure 29 , which is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present application. The electronic device can be an electronic device capable of installing and running application programs, such as mobile phones, pads, notebooks, and computers. Specifically, the technical solution in this embodiment is mainly used to automatically restore the application task exited by the user during the process of the target application performing the application task without the supervision of other users.

[0194] Specifically, the electronic device in this embodiment may include the following structure:

[0195] A memory 2901, configured to store application programs and data generated by the running of the application programs;

[0196] A processor 2902, configured to execute the application program to implement: when the target application on the electronic device is running, monitor whether a target operation for the target application is received, and the target operation is used to at least indicate that the target application exits the foreground operation; after receiving the target operation, control the target application to be in the running state before receiving the target operation.

[0197] It can be seen from the above technical solution that in an electronic device provided in Embodiment 3 of the present application, when the target application on the electronic device is running, if it is monitored that a target operation that at least causes the application task to exit the foreground operation is received, then the target application can be controlled to be in the running state before receiving the target operation. It can be seen that in the present application, by monitoring the target operation that at least indicates exiting the foreground operation of the application task, when the user performs an operation to exit the application task or even exit the target application, the application task of the target application can be automatically restored to the running state before receiving the target operation without the intervention and supervision of other users.

[0198] Taking an electronic device as a notebook as an example, there is currently no good learning mode service or software on Windows that can enable children to focus on learning. It is necessary to prevent children from running unauthorized software on Windows. Since the Windows environment is more open than Android, it is impossible to implement a customized UI. In this application, a learning mode application for educational personal computers (PCs) is designed in response to the actual limitations and problems of Windows. It can not only implement the Kids Mode but also cultivate children's good self-disciplined learning habits through specifications.

[0199] Therefore, the technical solution of this application mainly solves the following problems: 1. How to assist parents to remind children to complete their homework, remind children to take online classes, and remind children to pay attention to eye health; 2. How to guide children, when children try to cut out the software reminder interaction and the interaction of browsing websites; 3. How to cultivate children's good habits of learning efficiently and having fun.

[0200] The specific solutions are as follows:

[0201] 1. First, help parents remind children when to have classes and when to complete their homework. As Figure 30 shown, the class schedules of children are preset on both the server and the notebook. A wake-up instruction is issued on the server or the notebook according to the children's class schedules, so that the notebook is woken up from the sleep or AOAC (always on / always connected) state. After waking up, text is output on the lock screen page of the notebook or the children are reminded by voice through the speaker about the content related to the courses to be taken.

[0202] 2. When the child sits in front of the computer, they log in to the local Windows account of the educational application through face recognition. This account can be initialized by the parent to assist the child during the first use. Thus, after face recognition, the educational software is automatically started and applied full screen, as Figure 31 shown.

[0203] During the process of the child using the educational software, if the child tries to exit the learning mode, they need to enter the parent password, as Figure 32 shown. If the child tries to open a non-learning application (i.e., an application that does not match the application identifier in the application whitelist), parental authorization is required, as Figure 33 shown. On the parent's mobile phone, the parent can allow or prohibit the authorization application after receiving it, as Figure 34As shown, the student notebook can receive the authorization message, and then non-learning applications can be launched. In the specific implementation, parents can authorize whether their children can play games and the duration of playing games. After reaching this duration, the education software automatically switches back to the learning mode.

[0204] It should be noted that in some cases, such as children using the Windows hotkeys to bring up the task manager, trying to kill the education process, or using the hotkeys to minimize the window, or using the Windows key to pop up the start menu and open non-learning tools or software. Therefore, in the technical solution of this application, a self-protection mode is configured for the learning mode on the notebook. Specifically: when a child tries to use the task manager to end the process of the learning mode, this application can give a reminder to the student on the teaching software; in addition, even if the child successfully kills the process of the learning mode, the protection mechanism Service on the education software in this application will be started and the learning mode interface of the teaching software will be reopened.

[0205] If a child tries to switch to other non-learning-related apps through Alt+Tab, the student will also be reminded, and after 5 seconds, the window of the learning mode on the notebook will automatically be brought to the front.

[0206] For example, since the education software can have its process ended by the task manager, in this application, a daemon service process is maintained on the notebook. When the process of the education software appears abnormal, such as using the task manager to close the process or using other tools to cause the process to not run properly, etc., the education software can be automatically launched to ensure that the education software can work properly in the scenario where it is closed without the consent of the parents. The code implementation of the attribute settings of the daemon service process is as follows:

[0207] ServiceStatus.dwControlsAccepted = ServiceStatus.dwControlsAccepted & ~SERVICE_ACCEPT_STOP; / / Attribute that the daemon service process cannot be ended

[0208] ServiceStatus.dwControlsAccepted = ServiceStatus.dwControlsAccepted & ~SERVICE_ACCEPT_PAUSE_CONTINUE; / / Attribute that the daemon service process cannot be paused

[0209] If the child needs to open the browser to query learning materials, the secure browser on the notebook will be automatically launched in this application to ensure that the child can only access the green websites within the whitelist. If the child accesses an illegal website (a website not in the whitelist), this website needs to be reviewed by the parent's mobile phone, as Figure 35 shown.

[0210] In specific implementation, in order to further reduce the burden on parents in this embodiment, the following implementation solutions can be adopted:

[0211] 1. Logic implementation for the child to switch out of and close Kids Mode:

[0212] If the child has not completed the daily homework and online courses, level 1 assistance will be launched. Specifically: when the child completes an illegal operation, no control will be exerted within 10 seconds, and a reminder will be displayed: informing the child that the class tasks have not been completed and will automatically return to kids mode in 10 seconds.

[0213] If the child's illegal operations exceed 4 times, as Figure 36 shown, the parent will be reported. At this time, if the child determines to exit the learning mode, the parent password needs to be provided.

[0214] If the child has completed the daily homework and online courses (combined with hardware detection), the homework correct rate is low, and the class concentration detected through the camera on the notebook is very poor, level 2 assistance will be launched. Specifically: the child is allowed to switch out of the learning mode and do what he wants for 1 hour. The websites visited and applications opened by the child will be reported to the server in real time, and the parent can query them through the mobile phone. Exiting the learning mode requires the parent's consent, and an application will be sent to the parent's mobile phone through the server.

[0215] If the child has completed the daily homework, the homework grading level is excellent, and the child's online course concentration is above good, level 3 assistance will be launched. Here, excellent can mean a high homework score, and the homework score can be achieved through the automatic grading function, while the concentration is obtained by using the camera to detect the real-time samples of the child's attention to the screen during class. Specifically: the child can switch out of or exit the learning mode interface, and the entertainment time is not restricted in any way until the latest bedtime set by the parents. The machine will remind the child in advance and prepare to shut down.

[0216] And if it is the weekend, level 3 assistance will remind the child according to the continuous entertainment time not exceeding 2 - 3 hours. The time can be adjusted by the parent according to the actual situation.

[0217] In summary, after adopting the technical solution of the present application, the burden on parents can be reduced. Even when the child returns home from school, he can assist the parents in managing the child's study. Moreover, even when the parents are not at home, there is no need to worry that the child will be affected by other information unrelated to learning when using the PC to study. Thus, the learning effect is guaranteed, the child is prevented from playing games excessively, and education is integrated with entertainment.

[0218] The various embodiments in this specification are described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part.

[0219] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0220] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0221] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method, comprising: when an application task of a target application on an electronic device is running, if it is monitored that a target operation on the target application is received, the target operation is used to at least indicate that the application task of the target application exits the foreground operation; after receiving the target operation, controlling the target application to be in the running state before receiving the target operation; if it is monitored that an opening operation for a second application is received, if the second application matches a preset application identifier, controlling the second application to start; if the second application does not match the application identifier, when application authorization information is received, controlling the second application to start, and when application prohibition information is received, prohibiting the second application from starting; wherein, the application authorization information at least includes an authorized running duration, so that the second application runs according to the authorized running duration.

2. The method according to claim 1, the target operation comprising: an operation of closing the application process of the target application in the task manager of the electronic device; wherein, controlling the target application to be in the running state before receiving the target operation includes: controlling, through a daemon process in the electronic device, the application process of the target application to resume to the process state before the application process of the target application is closed; the daemon process has a daemon attribute, and the daemon attribute enables the daemon process to be closed after at least the application task of the target application is completed after being started; or, the target operation includes: an operation of switching the application window of a first application to the foreground of the electronic device, the first application being different from the target application; wherein, controlling the target application to be in the running state before receiving the target operation includes: switching the task window of the application task of the target application to the foreground of the electronic device; or, the target operation includes: an operation of closing the application window of the target application; wherein, controlling the target application to be in the running state before receiving the target operation includes: controlling the target application to maintain the running state before receiving the target operation.

3. The method according to claim 1 or 2, the method further comprising: monitoring the number of times the target operation is received; when the number reaches a first threshold, outputting an abnormal exit message and outputting a first exit request; when exit authorization information for the first exit request is received, controlling the target application to be in the state where the target operation is responded to; when no exit authorization information is received, performing the following: controlling the target application to be in the running state before receiving the target operation.

4. The method according to claim 3, wherein: the outputting of the first exit request includes: outputting a first window on the electronic device, the first window being used to input exit authorization information; or, the outputting of the first exit request includes: Send a first exit request to at least one target device associated with the electronic device, so that a second window is output on the target device, and the second window is used to input exit authorization information, so that the target device obtains the input exit authorization information and outputs the exit authorization information to the electronic device.

5. The method according to claim 1 or 2, wherein the authorized running duration corresponds to an authorized user, and different authorized users correspond to different authorized running durations.

6. The method according to claim 5, wherein when the second application is a browser application, the method further includes: Monitoring whether a target address in an address access request received in the second application matches a preset address identifier; If the target address matches the address identifier, access a page corresponding to the target address on the electronic device through the second application; If the target address does not match the address identifier, output a page access request, where the page access request includes the target address and / or multimedia information related to the target address, and when receiving address authorization information for the page access request, access a page corresponding to the target address on the electronic device through the second application.

7. The method according to claim 1 or 2, the method further includes: When the application task of the target application is completed, obtain the task score of the application task and the concentration information of the current user for the application task, where the task score is used to characterize the accuracy rate of the current user in completing the application task, and the concentration information is used to characterize the concentration degree of the current user in the process of completing the application task; When the task score and the concentration information meet a preset auxiliary condition, if a target operation on the target application is received, control the target application to be in a state corresponding to the target operation; When the task score and the concentration information do not meet the auxiliary condition, if a target operation on the target application is received, output a second exit request, and when receiving exit authorization information for the second exit request, control the target application to be in a state corresponding to the target operation, and when no exit authorization information for the second exit request is received, control the target application to be in the running state before receiving the target operation.

8. The method according to claim 7, when the application task of the target application is completed, the method further includes: Obtain application running information of at least one other application on the electronic device, where the application running information includes the application identifier of the other application and / or the access content corresponding to the other application, and the other application is an application program started on the electronic device when the application task of the target application is completed; Output the application running information.

9. The method according to claim 1 or 2, the target application starts when the electronic device is awakened from the sleep state and obtains login information; Wherein, The electronic device is woken up when it monitors that the current moment matches the task moment of the application task of the target application in the sleep state; and, a prompt message of the application task is output on the woken-up electronic device, and the prompt message is used to prompt the current user to perform operation content corresponding to the application task; The login information is: the information obtained through face recognition after the electronic device collects the face image of the current user.

10. An electronic device, including: a memory, configured to store an application program and data generated by running the application program; a processor, configured to execute the application program to implement: when the application task of the target application on the electronic device is running, if it monitors and receives a target operation on the target application, where the target operation is used to at least indicate that the application task of the target application exits the foreground running, after receiving the target operation, control the target application to be in the running state before receiving the target operation; if it monitors and receives an open operation for a second application, if the second application matches a preset application identifier, control the second application to start; if the second application does not match the application identifier, control the second application to start when receiving application authorization information, and prohibit the second application from starting when receiving application prohibition information; where the application authorization information at least includes an authorized running duration, so that the second application runs according to the authorized running duration.

Citation Information

Patent Citations

  • Control method and device of target application , storage medium and electronic device

    CN112181224A